diff --git a/go/cmd/vtctldclient/command/vschema.go b/go/cmd/vtctldclient/command/vschema.go new file mode 100644 index 00000000000..f3b004d0bc2 --- /dev/null +++ b/go/cmd/vtctldclient/command/vschema.go @@ -0,0 +1,549 @@ +/* +Copyright 2025 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 command + +import ( + "fmt" + "os" + "strings" + + "github.com/spf13/cobra" + + "vitess.io/vitess/go/cmd/vtctldclient/cli" + + vtctldatapb "vitess.io/vitess/go/vt/proto/vtctldata" +) + +var ( + VSchema = &cobra.Command{ + Use: "VSchema --name [command] [command-flags]", + Short: "Performs CRUD operations on VSchema.", + DisableFlagsInUseLine: true, + Args: cobra.MinimumNArgs(2), + Aliases: []string{"vschema"}, + } + Create = &cobra.Command{ + Use: "create", + Short: "Create a new keyspace. Either an initial vschema json is specified in which case it starts off with that spec or it creates an empty vschema which can be built iteratively.", + Example: `vtctldclient --server localhost:15999 vschema --name customer create --vschema-file "vschema.json" --sharded --draft`, + DisableFlagsInUseLine: true, + Aliases: []string{"Create"}, + Args: cobra.NoArgs, + RunE: commandCreate, + } + Get = &cobra.Command{ + Use: "get", + Short: "Retrieve the VSchema for a keyspace. By default, only published (draft: false) VSchemas are returned.", + Example: `vtctldclient --server localhost:15999 vschema --name customer get --include-drafts`, + DisableFlagsInUseLine: true, + Aliases: []string{"Get"}, + Args: cobra.NoArgs, + RunE: commandGet, + } + Update = &cobra.Command{ + Use: "update", + Short: "Update the VSchema metadata.", + Example: `vtctldclient --server localhost:15999 vschema --name customer update --sharded --foreign-key-mode "managed"`, + DisableFlagsInUseLine: true, + Aliases: []string{"Update"}, + Args: cobra.NoArgs, + RunE: commandUpdate, + } + Publish = &cobra.Command{ + Use: "publish", + Short: "Publish a VSchema marking it as non-draft.", + Example: `vtctldclient --server localhost:15999 vschema --name customer publish`, + DisableFlagsInUseLine: true, + Aliases: []string{"Set-Reference"}, + Args: cobra.NoArgs, + RunE: commandPublish, + } + AddVindex = &cobra.Command{ + Use: "add-vindex --name --type [--params key1=val1,key2=val2]", + Short: "Add a new vindex to the vschema.", + Example: `vtctldclient --server localhost:15999 vschema --name customer add-vindex --name "hash_vdx" --type "hash"`, + DisableFlagsInUseLine: true, + Aliases: []string{"AddVindex"}, + Args: cobra.NoArgs, + RunE: commandAddVindex, + } + RemoveVindex = &cobra.Command{ + Use: "remove-vindex --vindex ", + Short: "Remove an existing vindex from the vschema.", + Example: `vtctldclient --server localhost:15999 vschema --name customer remove-vindex --vindex "hash_vdx"`, + DisableFlagsInUseLine: true, + Aliases: []string{"RemoveVindex"}, + Args: cobra.NoArgs, + RunE: commandRemoveVindex, + } + AddLookupVindex = &cobra.Command{ + Use: "add-lookup-vindex --name --type --table --from [--owner ]", + Short: "Add a lookup vindex to the vschema.", + Example: `vtctldclient --server localhost:15999 vschema --name customer add-lookup-vindex --name "name_keyspace_idx" --type "lookup" --table "name_keyspace_idx" --from "name" --owner "user"`, + DisableFlagsInUseLine: true, + Aliases: []string{"AddLookupVindex"}, + Args: cobra.NoArgs, + RunE: commandAddLookupVindex, + } + AddTables = &cobra.Command{ + Use: "add-tables --tables [--all] --primary-vindex --columns ", + Short: "Add one or more tables to the vschema, along with a designated primary vindex and associated columns.", + Example: `vtctldclient --server localhost:15999 vschema --name customer add-tables --tables "corder,customer" --all --primary-vindex "hash_vdx" --columns "customer_id"`, + DisableFlagsInUseLine: true, + Aliases: []string{"AddTables"}, + Args: cobra.NoArgs, + RunE: commandAddTables, + } + RemoveTables = &cobra.Command{ + Use: "remove-tables --tables ", + Short: "Remove one or more tables from the vschema.", + Example: `vtctldclient --server localhost:15999 vschema --name customer remove-tables --tables "corder,customer"`, + DisableFlagsInUseLine: true, + Aliases: []string{"RemoveTables"}, + Args: cobra.NoArgs, + RunE: commandRemoveTables, + } + SetPrimaryVindex = &cobra.Command{ + Use: "set-primary-vindex --tables --primary-vindex --columns ", + Short: "Set or update the primary vindex for one or more tables, specifying the columns associated with the vindex.", + Example: `vtctldclient --server localhost:15999 vschema --name customer set-primary-vindex --tables "corder,customer" --primary-vindex "hash_vdx" --columns "customer_id"`, + DisableFlagsInUseLine: true, + Aliases: []string{"SetPrimaryVindex"}, + Args: cobra.NoArgs, + RunE: commandSetPrimaryVindex, + } + SetSequence = &cobra.Command{ + Use: "set-sequence --table --column --sequence-source ", + Short: "Specify that a table column uses a sequence from an unsharded source.", + Example: `vtctldclient --server localhost:15999 vschema --name customer set-sequence --table "user" --column "user_id" --sequence-source "unsharded_ks.user_seq"`, + DisableFlagsInUseLine: true, + Aliases: []string{"SetSequence"}, + Args: cobra.NoArgs, + RunE: commandSetSequence, + } + SetReference = &cobra.Command{ + Use: "set-reference --table --source ", + Short: "Set up a reference table, which points to a source table in another vschema.", + Example: `vtctldclient --server localhost:15999 vschema --name customer set-reference --table "corder" --source "commerce.corder"`, + DisableFlagsInUseLine: true, + Aliases: []string{"SetReference"}, + Args: cobra.NoArgs, + RunE: commandSetReference, + } + commonOptions = struct { + Name string + }{} + createOptions = struct { + Sharded bool + Draft bool + VSchema string + VSchemaFile string + }{} + getOptions = struct { + IncludeDrafts bool + }{} + updateOptions = struct { + Sharded bool + ForeignKeyMode string + MultiTenant bool + TenantIdColumn string + TenantIdColumnType string + Draft bool + }{} + addVindexOptions = struct { + VindexName string + VindexType string + // A key-value pair slice + Params []string + }{} + removeVindexOptions = struct { + VindexName string + }{} + addLookupVindexOptions = struct { + VindexName string + LookupVindexType string + Table string + From []string + Owner string + IgnoreNulls bool + }{} + addTablesOptions = struct { + Tables []string + PrimaryVindexName string + Columns []string + AddAll bool + }{} + removeTablesOptions = struct { + Tables []string + }{} + setPrimaryVindexOptions = struct { + Tables []string + PrimaryVindexName string + Columns []string + }{} + setSequenceOptions = struct { + Table string + Source string + Column string + }{} + setReferenceOptions = struct { + Table string + Source string + }{} +) + +func commandCreate(cmd *cobra.Command, args []string) error { + cli.FinishedParsing(cmd) + if createOptions.VSchema != "" && createOptions.VSchemaFile != "" { + return fmt.Errorf("cannot specify both --vschema and --vschema-file") + } + + if createOptions.VSchemaFile != "" { + vschema, err := os.ReadFile(createOptions.VSchemaFile) + if err != nil { + return err + } + createOptions.VSchema = string(vschema) + } + + _, err := client.VSchemaCreate(commandCtx, &vtctldatapb.VSchemaCreateRequest{ + VSchemaName: commonOptions.Name, + Sharded: createOptions.Sharded, + Draft: createOptions.Draft, + VSchemaJson: createOptions.VSchema, + }) + if err != nil { + return err + } + + fmt.Printf("Keyspace '%s' has been successfully created.\n", commonOptions.Name) + return nil +} + +func commandGet(cmd *cobra.Command, args []string) error { + cli.FinishedParsing(cmd) + + resp, err := client.VSchemaGet(commandCtx, &vtctldatapb.VSchemaGetRequest{ + VSchemaName: commonOptions.Name, + IncludeDrafts: getOptions.IncludeDrafts, + }) + if err != nil { + return err + } + + data, err := cli.MarshalJSON(resp.VSchema) + if err != nil { + return err + } + + fmt.Printf("%s\n", data) + return nil +} + +func commandUpdate(cmd *cobra.Command, args []string) error { + cli.FinishedParsing(cmd) + + var ( + sharded, draft, multiTenant *bool + foreignKeyMode, tenantIdColumn, tenantIdColumnType *string + ) + if !cmd.Flags().Changed("sharded") { + sharded = nil + } else { + sharded = &updateOptions.Sharded + } + if !cmd.Flags().Changed("draft") { + draft = nil + } else { + draft = &updateOptions.Draft + } + if !cmd.Flags().Changed("foreign-key-mode") { + foreignKeyMode = nil + } else { + foreignKeyMode = &updateOptions.ForeignKeyMode + } + if !cmd.Flags().Changed("multi-tenant") { + multiTenant = nil + } else { + multiTenant = &updateOptions.MultiTenant + } + if !cmd.Flags().Changed("tenant-id-column") { + tenantIdColumn = nil + } else { + tenantIdColumn = &updateOptions.TenantIdColumn + } + if !cmd.Flags().Changed("tenant-id-column-type") { + tenantIdColumnType = nil + } else { + tenantIdColumnType = &updateOptions.TenantIdColumnType + } + + _, err := client.VSchemaUpdate(commandCtx, &vtctldatapb.VSchemaUpdateRequest{ + VSchemaName: commonOptions.Name, + Sharded: sharded, + Draft: draft, + ForeignKeyMode: foreignKeyMode, + MultiTenant: multiTenant, + TenantIdColumnName: tenantIdColumn, + TenantIdColumnType: tenantIdColumnType, + }) + if err != nil { + return err + } + + fmt.Printf("VSchema '%s' successfully updated.\n", commonOptions.Name) + return nil +} + +func commandPublish(cmd *cobra.Command, args []string) error { + cli.FinishedParsing(cmd) + + _, err := client.VSchemaPublish(commandCtx, &vtctldatapb.VSchemaPublishRequest{ + VSchemaName: commonOptions.Name, + }) + if err != nil { + return err + } + + fmt.Printf("VSchema '%s' successfully published.\n", commonOptions.Name) + return nil +} + +func commandAddVindex(cmd *cobra.Command, args []string) error { + cli.FinishedParsing(cmd) + + params := map[string]string{} + for _, param := range addVindexOptions.Params { + kv := strings.Split(param, "=") + if len(kv) != 2 { + return fmt.Errorf("--params flag should contain params in key-value pair") + } + params[kv[0]] = kv[1] + } + + _, err := client.VSchemaAddVindex(commandCtx, &vtctldatapb.VSchemaAddVindexRequest{ + VSchemaName: commonOptions.Name, + VindexName: addVindexOptions.VindexName, + VindexType: addVindexOptions.VindexType, + Params: params, + }) + if err != nil { + return err + } + + fmt.Printf("Vindex '%s' has been successfully added in VSchema '%s'.\n", addVindexOptions.VindexName, commonOptions.Name) + return nil +} + +func commandRemoveVindex(cmd *cobra.Command, args []string) error { + cli.FinishedParsing(cmd) + + _, err := client.VSchemaRemoveVindex(commandCtx, &vtctldatapb.VSchemaRemoveVindexRequest{ + VSchemaName: commonOptions.Name, + VindexName: removeVindexOptions.VindexName, + }) + if err != nil { + return err + } + + fmt.Printf("Vindex '%s' has been successfully removed from VSchema '%s'.\n", removeVindexOptions.VindexName, commonOptions.Name) + return nil +} + +func commandAddLookupVindex(cmd *cobra.Command, args []string) error { + cli.FinishedParsing(cmd) + + _, err := client.VSchemaAddLookupVindex(commandCtx, &vtctldatapb.VSchemaAddLookupVindexRequest{ + VSchemaName: commonOptions.Name, + VindexName: addLookupVindexOptions.VindexName, + LookupVindexType: addLookupVindexOptions.LookupVindexType, + FromColumns: addLookupVindexOptions.From, + TableName: addLookupVindexOptions.Table, + Owner: addLookupVindexOptions.Owner, + IgnoreNulls: addLookupVindexOptions.IgnoreNulls, + }) + if err != nil { + return err + } + + fmt.Printf("Lookup Vindex '%s' has been successfully added in VSchema '%s'.\n", addLookupVindexOptions.VindexName, commonOptions.Name) + return nil +} + +func commandAddTables(cmd *cobra.Command, args []string) error { + cli.FinishedParsing(cmd) + + _, err := client.VSchemaAddTables(commandCtx, &vtctldatapb.VSchemaAddTablesRequest{ + VSchemaName: commonOptions.Name, + Tables: addTablesOptions.Tables, + PrimaryVindexName: addTablesOptions.PrimaryVindexName, + Columns: addTablesOptions.Columns, + AddAll: addTablesOptions.AddAll, + }) + if err != nil { + return err + } + + fmt.Printf("Tables %s has been successfully added in VSchema '%s'.\n", strings.Join(addTablesOptions.Tables, ", "), commonOptions.Name) + return nil +} + +func commandRemoveTables(cmd *cobra.Command, args []string) error { + cli.FinishedParsing(cmd) + + _, err := client.VSchemaRemoveTables(commandCtx, &vtctldatapb.VSchemaRemoveTablesRequest{ + VSchemaName: commonOptions.Name, + Tables: removeTablesOptions.Tables, + }) + if err != nil { + return err + } + + fmt.Printf("Tables %s has been successfully removed from VSchema '%s'.\n", strings.Join(removeTablesOptions.Tables, ", "), commonOptions.Name) + return nil +} + +func commandSetPrimaryVindex(cmd *cobra.Command, args []string) error { + cli.FinishedParsing(cmd) + + _, err := client.VSchemaSetPrimaryVindex(commandCtx, &vtctldatapb.VSchemaSetPrimaryVindexRequest{ + VSchemaName: commonOptions.Name, + VindexName: setPrimaryVindexOptions.PrimaryVindexName, + Tables: setPrimaryVindexOptions.Tables, + Columns: setPrimaryVindexOptions.Columns, + }) + if err != nil { + return err + } + + fmt.Printf("Primary Vindex '%s' has been successfully set up for tables %s in VSchema '%s'.\n", + setPrimaryVindexOptions.PrimaryVindexName, strings.Join(setPrimaryVindexOptions.Tables, ", "), commonOptions.Name) + return nil +} + +func commandSetSequence(cmd *cobra.Command, args []string) error { + cli.FinishedParsing(cmd) + + _, err := client.VSchemaSetSequence(commandCtx, &vtctldatapb.VSchemaSetSequenceRequest{ + VSchemaName: commonOptions.Name, + TableName: setSequenceOptions.Table, + Column: setSequenceOptions.Column, + SequenceSource: setSequenceOptions.Source, + }) + if err != nil { + return err + } + + fmt.Printf("Column '%s' in table '%s' has been configured to use sequence from source '%s'. Use get to view VSchema.\n", + setSequenceOptions.Column, setSequenceOptions.Table, setSequenceOptions.Source) + return nil +} + +func commandSetReference(cmd *cobra.Command, args []string) error { + cli.FinishedParsing(cmd) + + _, err := client.VSchemaSetReference(commandCtx, &vtctldatapb.VSchemaSetReferenceRequest{ + VSchemaName: commonOptions.Name, + TableName: setReferenceOptions.Table, + Source: setReferenceOptions.Source, + }) + if err != nil { + return err + } + + fmt.Printf("Reference table '%s' has been successfully set up in VSchema '%s'.\n", setReferenceOptions.Table, commonOptions.Name) + return nil +} + +func init() { + Create.Flags().BoolVar(&createOptions.Sharded, "sharded", false, "Specifies whether the keyspace is sharded.") + Create.Flags().BoolVar(&createOptions.Draft, "draft", false, "Specifies whether the vschema is a draft.") + Create.Flags().StringVar(&createOptions.VSchemaFile, "vschema-file", "", "Path to the initial vschema JSON file.") + Create.Flags().StringVar(&createOptions.VSchema, "vschema", "", "Initial vschema JSON string.") + VSchema.AddCommand(Create) + + Get.Flags().BoolVar(&getOptions.IncludeDrafts, "include-drafts", false, "Include draft vschemas in the response.") + VSchema.AddCommand(Get) + + Update.Flags().BoolVar(&updateOptions.Sharded, "sharded", false, "Specifies whether the keyspace is sharded. Use this flag only if updating the sharded status is required.") + Update.Flags().BoolVar(&updateOptions.Draft, "draft", false, "Specifies whether the vschema is a draft. Use this flag only if updating the draft status is required.") + Update.Flags().StringVar(&updateOptions.ForeignKeyMode, "foreign-key-mode", "", "Specifies the foreign key mode. Use this flag only if updating the foreign key mode is required.") + Update.Flags().BoolVar(&updateOptions.MultiTenant, "multi-tenant", false, "Specifies whether the vschema is multi-tenant. Use this flag only if updating the multi-tenant metadata is required. Marking this as false removes the multi-tenant spec from vschema.") + Update.Flags().StringVar(&updateOptions.TenantIdColumn, "tenant-id-column", "", "Specifies the tenant ID column. Use this flag only if updating the tenant ID column is required.") + Update.Flags().StringVar(&updateOptions.TenantIdColumnType, "tenant-id-column-type", "", "Specifies the tenant ID column type. Use this flag only if updating the tenant ID column type is required.") + VSchema.AddCommand(Update) + + VSchema.AddCommand(Publish) + + AddVindex.Flags().StringVar(&addVindexOptions.VindexName, "name", "", "The name of the vindex to add.") + AddVindex.MarkFlagRequired("name") + AddVindex.Flags().StringVar(&addVindexOptions.VindexType, "type", "", "The type of the vindex to add.") + AddVindex.MarkFlagRequired("type") + AddVindex.Flags().StringSliceVar(&addVindexOptions.Params, "params", nil, "Key-value pairs for vindex parameters.") + VSchema.AddCommand(AddVindex) + + RemoveVindex.Flags().StringVar(&removeVindexOptions.VindexName, "name", "", "The name of the vindex to remove.") + RemoveVindex.MarkFlagRequired("name") + VSchema.AddCommand(RemoveVindex) + + AddLookupVindex.Flags().StringVar(&addLookupVindexOptions.VindexName, "name", "", "The name of the lookup vindex to add.") + AddLookupVindex.MarkFlagRequired("name") + AddLookupVindex.Flags().StringVar(&addLookupVindexOptions.LookupVindexType, "type", "", "The type of the lookup vindex to add.") + AddLookupVindex.MarkFlagRequired("type") + AddLookupVindex.Flags().StringVar(&addLookupVindexOptions.Table, "table", "", "The table name for the lookup vindex.") + AddLookupVindex.MarkFlagRequired("table") + AddLookupVindex.Flags().StringSliceVar(&addLookupVindexOptions.From, "from", nil, "The columns associated with the lookup vindex.") + AddLookupVindex.MarkFlagRequired("from") + AddLookupVindex.Flags().StringVar(&addLookupVindexOptions.Owner, "owner", "", "The owner table for the lookup vindex.") + AddLookupVindex.Flags().BoolVar(&addLookupVindexOptions.IgnoreNulls, "ignore-nulls", false, "Specifies whether to ignore null values.") + VSchema.AddCommand(AddLookupVindex) + + AddTables.Flags().StringSliceVar(&addTablesOptions.Tables, "tables", nil, "The tables to add to the vschema.") + AddTables.MarkFlagRequired("tables") + AddTables.Flags().StringVar(&addTablesOptions.PrimaryVindexName, "primary-vindex", "", "The primary vindex for the tables.") + AddTables.Flags().StringSliceVar(&addTablesOptions.Columns, "columns", nil, "The columns associated with the primary vindex.") + AddTables.Flags().BoolVar(&addTablesOptions.AddAll, "all", false, "Add all tables to the vschema.") + VSchema.AddCommand(AddTables) + + RemoveTables.Flags().StringSliceVar(&removeTablesOptions.Tables, "tables", nil, "The tables to remove from the vschema.") + RemoveTables.MarkFlagRequired("tables") + VSchema.AddCommand(RemoveTables) + + SetPrimaryVindex.Flags().StringSliceVar(&setPrimaryVindexOptions.Tables, "tables", nil, "The tables to set the primary vindex for.") + SetPrimaryVindex.MarkFlagRequired("tables") + SetPrimaryVindex.Flags().StringVar(&setPrimaryVindexOptions.PrimaryVindexName, "primary-vindex", "", "The primary vindex to set.") + SetPrimaryVindex.MarkFlagRequired("primary-vindex") + SetPrimaryVindex.Flags().StringSliceVar(&setPrimaryVindexOptions.Columns, "columns", nil, "The columns associated with the primary vindex.") + SetPrimaryVindex.MarkFlagRequired("columns") + VSchema.AddCommand(SetPrimaryVindex) + + SetSequence.Flags().StringVar(&setSequenceOptions.Table, "table", "", "The table name for the sequence.") + SetSequence.MarkFlagRequired("table") + SetSequence.Flags().StringVar(&setSequenceOptions.Column, "column", "", "The column name for the sequence.") + SetSequence.MarkFlagRequired("column") + SetSequence.Flags().StringVar(&setSequenceOptions.Source, "sequence-source", "", "The source of the sequence in qualified form.") + SetSequence.MarkFlagRequired("sequence-source") + VSchema.AddCommand(SetSequence) + + SetReference.Flags().StringVar(&setReferenceOptions.Table, "table", "", "The name of the table that will be set as reference table.") + SetReference.MarkFlagRequired("table") + SetReference.Flags().StringVar(&setReferenceOptions.Source, "source", "", "Source of the reference table in qualified form i.e. ..") + VSchema.AddCommand(SetReference) + + VSchema.Flags().StringVar(&commonOptions.Name, "name", "", "The name of the vschema/keyspace.") + Root.AddCommand(VSchema) +} diff --git a/go/flags/endtoend/vtctldclient.txt b/go/flags/endtoend/vtctldclient.txt index 0e0c91fbf7d..cd47b9c1f9d 100644 --- a/go/flags/endtoend/vtctldclient.txt +++ b/go/flags/endtoend/vtctldclient.txt @@ -103,6 +103,7 @@ Available Commands: UpdateCellsAlias Updates the content of a CellsAlias with the provided parameters, creating the CellsAlias if it does not exist. UpdateThrottlerConfig Update the tablet throttler configuration for all tablets in the given keyspace (across all cells) VDiff Perform commands related to diffing tables involved in a VReplication workflow between the source and target. + VSchema Performs CRUD operations on VSchema. Validate Validates that all nodes reachable from the global replication graph, as well as all tablets in discoverable cells, are consistent. ValidateKeyspace Validates that all nodes reachable from the specified keyspace are consistent. ValidatePermissionsKeyspace Validates that the permissions on the primary of the first shard match those of all of the other tablets in the keyspace. diff --git a/go/vt/proto/vschema/vschema.pb.go b/go/vt/proto/vschema/vschema.pb.go index 60edc17e446..e2294537a24 100644 --- a/go/vt/proto/vschema/vschema.pb.go +++ b/go/vt/proto/vschema/vschema.pb.go @@ -205,8 +205,10 @@ type Keyspace struct { ForeignKeyMode Keyspace_ForeignKeyMode `protobuf:"varint,5,opt,name=foreign_key_mode,json=foreignKeyMode,proto3,enum=vschema.Keyspace_ForeignKeyMode" json:"foreign_key_mode,omitempty"` // multi_tenant_mode specifies that the keyspace is multi-tenant. Currently used during migrations with MoveTables. MultiTenantSpec *MultiTenantSpec `protobuf:"bytes,6,opt,name=multi_tenant_spec,json=multiTenantSpec,proto3" json:"multi_tenant_spec,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // If draft is true, it means keyspace vschema is not ready. + Draft bool `protobuf:"varint,7,opt,name=draft,proto3" json:"draft,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Keyspace) Reset() { @@ -281,6 +283,13 @@ func (x *Keyspace) GetMultiTenantSpec() *MultiTenantSpec { return nil } +func (x *Keyspace) GetDraft() bool { + if x != nil { + return x.Draft + } + return false +} + type MultiTenantSpec struct { state protoimpl.MessageState `protogen:"open.v1"` // tenant_column is the name of the column that specifies the tenant id. @@ -1149,7 +1158,7 @@ var file_vschema_proto_rawDesc = string([]byte{ 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x72, 0x6f, 0x6d, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x22, 0xca, 0x04, 0x0a, + 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x22, 0xe0, 0x04, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x65, 0x64, 0x12, 0x3b, 0x0a, 0x08, 0x76, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, @@ -1172,148 +1181,149 @@ var file_vschema_proto_rawDesc = string([]byte{ 0x65, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x53, - 0x70, 0x65, 0x63, 0x1a, 0x4c, 0x0a, 0x0d, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, - 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x1a, 0x49, 0x0a, 0x0b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x24, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0e, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4b, 0x0a, 0x0e, - 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0f, - 0x0a, 0x0b, 0x75, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x10, 0x00, 0x12, - 0x0c, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x10, 0x01, 0x12, 0x0d, 0x0a, - 0x09, 0x75, 0x6e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x10, 0x03, 0x22, 0x84, 0x01, 0x0a, 0x0f, 0x4d, 0x75, - 0x6c, 0x74, 0x69, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x31, 0x0a, - 0x15, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x74, 0x65, - 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x3e, 0x0a, 0x15, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x5f, 0x63, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x0b, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x12, 0x74, 0x65, - 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, - 0x22, 0xa2, 0x01, 0x0a, 0x06, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x33, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x1a, 0x39, 0x0a, 0x0b, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb1, 0x02, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x0f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x76, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x76, - 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x56, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x56, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x65, 0x73, 0x12, 0x3d, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x69, 0x6e, 0x63, 0x72, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x16, 0x0a, - 0x06, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, - 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, - 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x61, 0x74, 0x69, 0x76, - 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x54, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, - 0x43, 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, - 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, - 0x65, 0x6e, 0x63, 0x65, 0x22, 0x8c, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x0b, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x6e, 0x76, 0x69, 0x73, 0x69, 0x62, - 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x25, 0x0a, 0x0e, - 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x1f, 0x0a, - 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x48, - 0x00, 0x52, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x16, - 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, - 0x62, 0x6c, 0x65, 0x22, 0xb5, 0x03, 0x0a, 0x0a, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x12, 0x40, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, - 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x73, 0x12, 0x3a, 0x0a, 0x0d, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, - 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x76, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, - 0x65, 0x73, 0x52, 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, - 0x12, 0x4a, 0x0a, 0x13, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, - 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x6f, 0x75, - 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x11, 0x73, 0x68, 0x61, 0x72, 0x64, - 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x53, 0x0a, 0x16, - 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, - 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x76, - 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, - 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x14, 0x6b, 0x65, 0x79, + 0x70, 0x65, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x72, 0x61, 0x66, 0x74, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x05, 0x64, 0x72, 0x61, 0x66, 0x74, 0x1a, 0x4c, 0x0a, 0x0d, 0x56, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x76, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x49, 0x0a, 0x0b, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0x4b, 0x0a, 0x0e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79, + 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x75, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, + 0x69, 0x65, 0x64, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, + 0x77, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x75, 0x6e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, + 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x10, 0x03, 0x22, + 0x84, 0x01, 0x0a, 0x0f, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x53, + 0x70, 0x65, 0x63, 0x12, 0x31, 0x0a, 0x15, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, + 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x12, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x43, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x15, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, + 0x5f, 0x69, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x12, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x43, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0xa2, 0x01, 0x0a, 0x06, 0x56, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, + 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x1a, 0x39, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb1, 0x02, 0x0a, 0x05, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x0f, 0x63, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x5f, 0x76, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x12, 0x3d, 0x0a, 0x0e, 0x61, 0x75, 0x74, + 0x6f, 0x5f, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x75, 0x74, 0x6f, + 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x6f, 0x49, + 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x76, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x63, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x74, 0x61, 0x74, 0x69, 0x76, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, + 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x74, 0x61, 0x74, 0x69, 0x76, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, + 0x54, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, + 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x43, 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, + 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x1a, + 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x8c, 0x02, 0x0a, 0x06, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, + 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, + 0x6e, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6c, 0x6c, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, + 0x61, 0x6c, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x88, 0x01, 0x01, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x09, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x0b, 0x0a, 0x09, + 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x22, 0xb5, 0x03, 0x0a, 0x0a, 0x53, 0x72, + 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x40, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x09, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x3a, 0x0a, 0x0d, 0x72, 0x6f, + 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, + 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, + 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x13, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, + 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, + 0x11, 0x73, 0x68, 0x61, 0x72, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, + 0x65, 0x73, 0x12, 0x53, 0x0a, 0x16, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x72, + 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, - 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, - 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x2e, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x0b, 0x6d, - 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x4f, 0x0a, 0x0e, 0x4b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, - 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x44, 0x0a, 0x11, 0x53, - 0x68, 0x61, 0x72, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, - 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, - 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, - 0x73, 0x22, 0x6e, 0x0a, 0x10, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, - 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x6b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x72, - 0x6f, 0x6d, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, - 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, - 0x68, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, - 0x64, 0x22, 0x4a, 0x0a, 0x14, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x6f, 0x75, - 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x05, 0x72, 0x75, 0x6c, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, - 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x5b, 0x0a, - 0x13, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, - 0x52, 0x75, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x6b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x72, 0x6f, - 0x6d, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x5f, - 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x38, 0x0a, 0x0b, 0x4d, 0x69, - 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x05, 0x72, 0x75, 0x6c, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x2e, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, - 0x75, 0x6c, 0x65, 0x73, 0x22, 0x60, 0x0a, 0x0a, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, - 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x72, 0x6f, 0x6d, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x70, - 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x42, 0x26, 0x5a, 0x24, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, - 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x52, 0x14, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, + 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x6d, 0x69, 0x72, 0x72, 0x6f, + 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x52, 0x0b, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x73, + 0x1a, 0x4f, 0x0a, 0x0e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0x44, 0x0a, 0x11, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, + 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, + 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x6e, 0x0a, 0x10, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x66, + 0x72, 0x6f, 0x6d, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x66, 0x72, 0x6f, 0x6d, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x22, 0x4a, 0x0a, 0x14, 0x4b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, + 0x32, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, + 0x6c, 0x65, 0x73, 0x22, 0x5b, 0x0a, 0x13, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, + 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x72, + 0x6f, 0x6d, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x66, 0x72, 0x6f, 0x6d, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x22, 0x38, 0x0a, 0x0b, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, + 0x29, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, + 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, + 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x60, 0x0a, 0x0a, 0x4d, 0x69, + 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x72, 0x6f, 0x6d, + 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x72, + 0x6f, 0x6d, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x5f, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x02, 0x52, 0x07, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x42, 0x26, 0x5a, 0x24, + 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, + 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, }) var ( diff --git a/go/vt/proto/vschema/vschema_vtproto.pb.go b/go/vt/proto/vschema/vschema_vtproto.pb.go index f2b0410d4af..1be6d7adae8 100644 --- a/go/vt/proto/vschema/vschema_vtproto.pb.go +++ b/go/vt/proto/vschema/vschema_vtproto.pb.go @@ -76,6 +76,7 @@ func (m *Keyspace) CloneVT() *Keyspace { r.RequireExplicitRouting = m.RequireExplicitRouting r.ForeignKeyMode = m.ForeignKeyMode r.MultiTenantSpec = m.MultiTenantSpec.CloneVT() + r.Draft = m.Draft if rhs := m.Vindexes; rhs != nil { tmpContainer := make(map[string]*Vindex, len(rhs)) for k, v := range rhs { @@ -528,6 +529,16 @@ func (m *Keyspace) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.Draft { + i-- + if m.Draft { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } if m.MultiTenantSpec != nil { size, err := m.MultiTenantSpec.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { @@ -1485,6 +1496,9 @@ func (m *Keyspace) SizeVT() (n int) { l = m.MultiTenantSpec.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.Draft { + n += 2 + } n += len(m.unknownFields) return n } @@ -2388,6 +2402,26 @@ func (m *Keyspace) UnmarshalVT(dAtA []byte) error { return err } iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Draft", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Draft = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) diff --git a/go/vt/proto/vtadmin/vtadmin.pb.go b/go/vt/proto/vtadmin/vtadmin.pb.go index 642c8278202..1587537293b 100644 --- a/go/vt/proto/vtadmin/vtadmin.pb.go +++ b/go/vt/proto/vtadmin/vtadmin.pb.go @@ -7182,6 +7182,474 @@ func (x *VExplainResponse) GetResponse() string { return "" } +type VSchemaPublishRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Request *vtctldata.VSchemaPublishRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaPublishRequest) Reset() { + *x = VSchemaPublishRequest{} + mi := &file_vtadmin_proto_msgTypes[128] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaPublishRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaPublishRequest) ProtoMessage() {} + +func (x *VSchemaPublishRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[128] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaPublishRequest.ProtoReflect.Descriptor instead. +func (*VSchemaPublishRequest) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{128} +} + +func (x *VSchemaPublishRequest) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" +} + +func (x *VSchemaPublishRequest) GetRequest() *vtctldata.VSchemaPublishRequest { + if x != nil { + return x.Request + } + return nil +} + +type VSchemaAddVindexRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Request *vtctldata.VSchemaAddVindexRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaAddVindexRequest) Reset() { + *x = VSchemaAddVindexRequest{} + mi := &file_vtadmin_proto_msgTypes[129] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaAddVindexRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaAddVindexRequest) ProtoMessage() {} + +func (x *VSchemaAddVindexRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[129] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaAddVindexRequest.ProtoReflect.Descriptor instead. +func (*VSchemaAddVindexRequest) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{129} +} + +func (x *VSchemaAddVindexRequest) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" +} + +func (x *VSchemaAddVindexRequest) GetRequest() *vtctldata.VSchemaAddVindexRequest { + if x != nil { + return x.Request + } + return nil +} + +type VSchemaRemoveVindexRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Request *vtctldata.VSchemaRemoveVindexRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaRemoveVindexRequest) Reset() { + *x = VSchemaRemoveVindexRequest{} + mi := &file_vtadmin_proto_msgTypes[130] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaRemoveVindexRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaRemoveVindexRequest) ProtoMessage() {} + +func (x *VSchemaRemoveVindexRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[130] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaRemoveVindexRequest.ProtoReflect.Descriptor instead. +func (*VSchemaRemoveVindexRequest) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{130} +} + +func (x *VSchemaRemoveVindexRequest) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" +} + +func (x *VSchemaRemoveVindexRequest) GetRequest() *vtctldata.VSchemaRemoveVindexRequest { + if x != nil { + return x.Request + } + return nil +} + +type VSchemaAddLookupVindexRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Request *vtctldata.VSchemaAddLookupVindexRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaAddLookupVindexRequest) Reset() { + *x = VSchemaAddLookupVindexRequest{} + mi := &file_vtadmin_proto_msgTypes[131] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaAddLookupVindexRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaAddLookupVindexRequest) ProtoMessage() {} + +func (x *VSchemaAddLookupVindexRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[131] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaAddLookupVindexRequest.ProtoReflect.Descriptor instead. +func (*VSchemaAddLookupVindexRequest) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{131} +} + +func (x *VSchemaAddLookupVindexRequest) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" +} + +func (x *VSchemaAddLookupVindexRequest) GetRequest() *vtctldata.VSchemaAddLookupVindexRequest { + if x != nil { + return x.Request + } + return nil +} + +type VSchemaAddTablesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Request *vtctldata.VSchemaAddTablesRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaAddTablesRequest) Reset() { + *x = VSchemaAddTablesRequest{} + mi := &file_vtadmin_proto_msgTypes[132] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaAddTablesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaAddTablesRequest) ProtoMessage() {} + +func (x *VSchemaAddTablesRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[132] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaAddTablesRequest.ProtoReflect.Descriptor instead. +func (*VSchemaAddTablesRequest) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{132} +} + +func (x *VSchemaAddTablesRequest) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" +} + +func (x *VSchemaAddTablesRequest) GetRequest() *vtctldata.VSchemaAddTablesRequest { + if x != nil { + return x.Request + } + return nil +} + +type VSchemaRemoveTablesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Request *vtctldata.VSchemaRemoveTablesRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaRemoveTablesRequest) Reset() { + *x = VSchemaRemoveTablesRequest{} + mi := &file_vtadmin_proto_msgTypes[133] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaRemoveTablesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaRemoveTablesRequest) ProtoMessage() {} + +func (x *VSchemaRemoveTablesRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[133] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaRemoveTablesRequest.ProtoReflect.Descriptor instead. +func (*VSchemaRemoveTablesRequest) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{133} +} + +func (x *VSchemaRemoveTablesRequest) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" +} + +func (x *VSchemaRemoveTablesRequest) GetRequest() *vtctldata.VSchemaRemoveTablesRequest { + if x != nil { + return x.Request + } + return nil +} + +type VSchemaSetPrimaryVindexRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Request *vtctldata.VSchemaSetPrimaryVindexRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaSetPrimaryVindexRequest) Reset() { + *x = VSchemaSetPrimaryVindexRequest{} + mi := &file_vtadmin_proto_msgTypes[134] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaSetPrimaryVindexRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaSetPrimaryVindexRequest) ProtoMessage() {} + +func (x *VSchemaSetPrimaryVindexRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[134] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaSetPrimaryVindexRequest.ProtoReflect.Descriptor instead. +func (*VSchemaSetPrimaryVindexRequest) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{134} +} + +func (x *VSchemaSetPrimaryVindexRequest) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" +} + +func (x *VSchemaSetPrimaryVindexRequest) GetRequest() *vtctldata.VSchemaSetPrimaryVindexRequest { + if x != nil { + return x.Request + } + return nil +} + +type VSchemaSetSequenceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Request *vtctldata.VSchemaSetSequenceRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaSetSequenceRequest) Reset() { + *x = VSchemaSetSequenceRequest{} + mi := &file_vtadmin_proto_msgTypes[135] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaSetSequenceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaSetSequenceRequest) ProtoMessage() {} + +func (x *VSchemaSetSequenceRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[135] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaSetSequenceRequest.ProtoReflect.Descriptor instead. +func (*VSchemaSetSequenceRequest) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{135} +} + +func (x *VSchemaSetSequenceRequest) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" +} + +func (x *VSchemaSetSequenceRequest) GetRequest() *vtctldata.VSchemaSetSequenceRequest { + if x != nil { + return x.Request + } + return nil +} + +type VSchemaSetReferenceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Request *vtctldata.VSchemaSetReferenceRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaSetReferenceRequest) Reset() { + *x = VSchemaSetReferenceRequest{} + mi := &file_vtadmin_proto_msgTypes[136] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaSetReferenceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaSetReferenceRequest) ProtoMessage() {} + +func (x *VSchemaSetReferenceRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[136] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaSetReferenceRequest.ProtoReflect.Descriptor instead. +func (*VSchemaSetReferenceRequest) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{136} +} + +func (x *VSchemaSetReferenceRequest) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" +} + +func (x *VSchemaSetReferenceRequest) GetRequest() *vtctldata.VSchemaSetReferenceRequest { + if x != nil { + return x.Request + } + return nil +} + type Schema_ShardTableSize struct { state protoimpl.MessageState `protogen:"open.v1"` RowCount uint64 `protobuf:"varint,1,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"` @@ -7192,7 +7660,7 @@ type Schema_ShardTableSize struct { func (x *Schema_ShardTableSize) Reset() { *x = Schema_ShardTableSize{} - mi := &file_vtadmin_proto_msgTypes[131] + mi := &file_vtadmin_proto_msgTypes[140] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7204,7 +7672,7 @@ func (x *Schema_ShardTableSize) String() string { func (*Schema_ShardTableSize) ProtoMessage() {} func (x *Schema_ShardTableSize) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[131] + mi := &file_vtadmin_proto_msgTypes[140] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7247,7 +7715,7 @@ type Schema_TableSize struct { func (x *Schema_TableSize) Reset() { *x = Schema_TableSize{} - mi := &file_vtadmin_proto_msgTypes[132] + mi := &file_vtadmin_proto_msgTypes[141] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7259,7 +7727,7 @@ func (x *Schema_TableSize) String() string { func (*Schema_TableSize) ProtoMessage() {} func (x *Schema_TableSize) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[132] + mi := &file_vtadmin_proto_msgTypes[141] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7306,7 +7774,7 @@ type GetSchemaMigrationsRequest_ClusterRequest struct { func (x *GetSchemaMigrationsRequest_ClusterRequest) Reset() { *x = GetSchemaMigrationsRequest_ClusterRequest{} - mi := &file_vtadmin_proto_msgTypes[134] + mi := &file_vtadmin_proto_msgTypes[143] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7318,7 +7786,7 @@ func (x *GetSchemaMigrationsRequest_ClusterRequest) String() string { func (*GetSchemaMigrationsRequest_ClusterRequest) ProtoMessage() {} func (x *GetSchemaMigrationsRequest_ClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[134] + mi := &file_vtadmin_proto_msgTypes[143] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7364,7 +7832,7 @@ type ReloadSchemasResponse_KeyspaceResult struct { func (x *ReloadSchemasResponse_KeyspaceResult) Reset() { *x = ReloadSchemasResponse_KeyspaceResult{} - mi := &file_vtadmin_proto_msgTypes[137] + mi := &file_vtadmin_proto_msgTypes[146] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7376,7 +7844,7 @@ func (x *ReloadSchemasResponse_KeyspaceResult) String() string { func (*ReloadSchemasResponse_KeyspaceResult) ProtoMessage() {} func (x *ReloadSchemasResponse_KeyspaceResult) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[137] + mi := &file_vtadmin_proto_msgTypes[146] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7422,7 +7890,7 @@ type ReloadSchemasResponse_ShardResult struct { func (x *ReloadSchemasResponse_ShardResult) Reset() { *x = ReloadSchemasResponse_ShardResult{} - mi := &file_vtadmin_proto_msgTypes[138] + mi := &file_vtadmin_proto_msgTypes[147] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7434,7 +7902,7 @@ func (x *ReloadSchemasResponse_ShardResult) String() string { func (*ReloadSchemasResponse_ShardResult) ProtoMessage() {} func (x *ReloadSchemasResponse_ShardResult) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[138] + mi := &file_vtadmin_proto_msgTypes[147] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7481,7 +7949,7 @@ type ReloadSchemasResponse_TabletResult struct { func (x *ReloadSchemasResponse_TabletResult) Reset() { *x = ReloadSchemasResponse_TabletResult{} - mi := &file_vtadmin_proto_msgTypes[139] + mi := &file_vtadmin_proto_msgTypes[148] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7493,7 +7961,7 @@ func (x *ReloadSchemasResponse_TabletResult) String() string { func (*ReloadSchemasResponse_TabletResult) ProtoMessage() {} func (x *ReloadSchemasResponse_TabletResult) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[139] + mi := &file_vtadmin_proto_msgTypes[148] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8530,410 +8998,537 @@ var file_vtadmin_proto_rawDesc = string([]byte{ 0x09, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x22, 0x2e, 0x0a, 0x10, 0x56, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x80, 0x32, 0x0a, 0x07, 0x56, 0x54, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0x12, 0x4c, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x70, 0x70, 0x6c, - 0x79, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, - 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x6a, 0x0a, 0x15, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x76, 0x74, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x28, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x16, - 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, - 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x6e, - 0x75, 0x70, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x17, 0x43, - 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x70, - 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, - 0x13, 0x43, 0x6f, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, - 0x6f, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, - 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x72, 0x0a, 0x15, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3a, + 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x76, 0x0a, 0x17, 0x56, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x56, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x22, 0x7c, 0x0a, 0x1a, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x3f, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x22, 0x82, 0x01, 0x0a, 0x1d, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x4c, + 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x42, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x56, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x76, 0x0a, 0x17, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x41, 0x64, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x3c, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x7c, 0x0a, + 0x1a, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x07, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x84, 0x01, 0x0a, 0x1e, + 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, + 0x79, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x43, 0x0a, + 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, + 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x53, 0x65, 0x74, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x56, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x22, 0x7a, 0x0a, 0x19, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, + 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3e, + 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x7c, + 0x0a, 0x1a, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x07, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76, + 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x53, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x32, 0x87, 0x39, 0x0a, + 0x07, 0x56, 0x54, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x4c, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, + 0x79, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, - 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x12, 0x1c, 0x2e, - 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, - 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, - 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, - 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, - 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1c, - 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, - 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6b, 0x0a, - 0x16, 0x45, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x46, 0x61, 0x69, 0x6c, 0x6f, 0x76, - 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x26, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x45, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x46, 0x61, 0x69, 0x6c, 0x6f, - 0x76, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x27, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x6d, 0x65, 0x72, 0x67, 0x65, - 0x6e, 0x63, 0x79, 0x46, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x0a, 0x46, 0x69, - 0x6e, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x61, - 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x42, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x73, - 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, - 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, - 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, - 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x56, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, + 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, 0x0a, 0x15, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x25, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x16, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x76, + 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x70, 0x0a, 0x17, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x2e, 0x76, + 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6e, 0x63, + 0x6c, 0x75, 0x64, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x0e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1e, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, + 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x1b, 0x2e, + 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x63, + 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, + 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1e, + 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, + 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x61, + 0x72, 0x64, 0x73, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x6b, 0x0a, 0x16, 0x45, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, + 0x46, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x26, 0x2e, + 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, + 0x79, 0x46, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x45, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x46, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, + 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x3b, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1a, + 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x76, 0x74, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x00, 0x12, 0x47, 0x0a, + 0x0a, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x1a, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, + 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, + 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x56, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, + 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, + 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, + 0x0b, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1b, 0x2e, 0x76, + 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0d, 0x47, 0x65, 0x74, + 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, + 0x08, 0x47, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x73, 0x12, 0x18, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, + 0x74, 0x47, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x3f, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, + 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x76, + 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, + 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x73, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x39, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x19, 0x2e, + 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x47, + 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x62, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x24, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7d, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x53, + 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x56, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x53, 0x72, + 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x56, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, - 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, - 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, - 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, - 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x47, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x47, 0x61, - 0x74, 0x65, 0x73, 0x12, 0x18, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, - 0x74, 0x47, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, - 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x0b, 0x47, 0x65, - 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x47, - 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x1c, 0x2e, 0x76, 0x74, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x09, 0x47, 0x65, - 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x19, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x73, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, - 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x62, - 0x0a, 0x13, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, 0x74, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x7d, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x2c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, - 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, - 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x56, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, - 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x56, 0x0a, 0x0f, 0x47, 0x65, 0x74, - 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x1f, 0x2e, 0x76, - 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, - 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x45, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, - 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x13, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x72, 0x76, 0x56, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x53, - 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, - 0x09, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x19, 0x2e, 0x76, 0x74, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x58, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, - 0x50, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, - 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x50, 0x61, 0x74, - 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x12, 0x47, - 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, - 0x0a, 0x19, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x29, 0x2e, 0x76, 0x74, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x73, 0x6f, 0x6c, - 0x76, 0x65, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, - 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x10, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x73, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, - 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x47, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x73, 0x12, 0x1a, - 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x74, 0x63, 0x74, - 0x6c, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x0b, 0x47, 0x65, 0x74, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, - 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x11, 0x47, 0x65, 0x74, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, + 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x53, 0x72, + 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x00, 0x12, 0x53, + 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, + 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, + 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x12, 0x19, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x22, 0x00, 0x12, 0x47, + 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x12, 0x1a, 0x2e, 0x76, + 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x58, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x6f, + 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x2e, 0x76, 0x74, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, + 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, + 0x6f, 0x67, 0x79, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x61, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x73, + 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x29, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x55, + 0x6e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x76, + 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, + 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0a, + 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x0b, 0x47, 0x65, + 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56, 0x74, 0x63, + 0x74, 0x6c, 0x64, 0x73, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, + 0x65, 0x74, 0x56, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x3f, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0c, 0x53, - 0x74, 0x6f, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x1c, 0x2e, 0x76, 0x74, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, - 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, - 0x0a, 0x15, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, - 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, - 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x12, 0x4d, 0x6f, - 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, - 0x12, 0x22, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x22, 0x00, + 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, + 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, + 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x5b, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, + 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x0d, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x1d, 0x2e, + 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, + 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x51, 0x0a, 0x0c, 0x53, 0x74, 0x6f, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x6f, 0x70, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, 0x0a, 0x15, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, + 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x61, 0x0a, 0x12, 0x4d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x43, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6c, - 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x59, 0x0a, - 0x10, 0x4d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x6f, 0x76, 0x65, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x11, 0x4d, 0x61, 0x74, 0x65, - 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x21, 0x2e, - 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, - 0x69, 0x7a, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x24, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x61, 0x74, - 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x50, 0x69, 0x6e, 0x67, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x69, 0x6e, - 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x65, 0x0a, 0x14, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x46, 0x61, 0x69, 0x6c, - 0x6f, 0x76, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x24, 0x2e, 0x76, 0x74, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x46, 0x61, 0x69, 0x6c, 0x6f, - 0x76, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x25, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, + 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x74, 0x63, + 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x10, 0x4d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, + 0x0a, 0x11, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, + 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, + 0x0a, 0x0a, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1a, 0x2e, 0x76, + 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x65, 0x0a, 0x14, 0x50, 0x6c, 0x61, 0x6e, 0x6e, + 0x65, 0x64, 0x46, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, + 0x24, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x46, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x65, 0x0a, 0x14, 0x52, 0x65, 0x62, 0x75, - 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, - 0x12, 0x24, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, - 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x46, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x53, + 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x65, + 0x0a, 0x14, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x12, 0x24, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x4d, 0x0a, 0x0c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, - 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, - 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x83, - 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x12, 0x2e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x66, 0x72, - 0x65, 0x73, 0x68, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x66, 0x72, - 0x65, 0x73, 0x68, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0d, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, - 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5c, 0x0a, 0x11, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x21, 0x2e, 0x76, 0x74, + 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, + 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x4b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, + 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x83, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0d, 0x52, 0x65, + 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, - 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x5f, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, - 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, - 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x14, 0x52, 0x65, 0x74, 0x72, 0x79, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, - 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x79, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x52, 0x65, 0x74, 0x72, 0x79, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x53, - 0x0a, 0x0e, 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x48, 0x65, - 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x48, 0x65, - 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x68, 0x61, 0x72, 0x64, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, - 0x65, 0x73, 0x68, 0x61, 0x72, 0x64, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x52, - 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, - 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x57, - 0x72, 0x69, 0x74, 0x65, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, - 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, - 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x56, - 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x6f, 0x70, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x6f, - 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x71, 0x0a, 0x18, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, - 0x65, 0x64, 0x12, 0x28, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x62, + 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5c, 0x0a, 0x11, + 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x6c, 0x6f, + 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, + 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5f, 0x0a, 0x12, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, + 0x12, 0x22, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x14, 0x52, + 0x65, 0x74, 0x72, 0x79, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, + 0x74, 0x72, 0x79, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x79, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x0e, 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, + 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x0d, 0x52, 0x65, 0x73, + 0x68, 0x61, 0x72, 0x64, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x68, 0x61, 0x72, 0x64, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, + 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x1b, 0x2e, + 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x4f, + 0x6e, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x53, 0x65, + 0x74, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x10, 0x53, 0x74, 0x61, + 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x2e, + 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x21, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x56, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x71, 0x0a, 0x18, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, + 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x64, 0x12, 0x28, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x6c, 0x79, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x50, 0x72, 0x6f, - 0x6d, 0x6f, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x76, - 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x45, 0x78, 0x74, - 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x08, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1b, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, - 0x0a, 0x10, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x16, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x26, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x6d, 0x6f, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x43, 0x0a, 0x08, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x10, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, + 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x6d, 0x0a, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x26, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, - 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0d, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x1d, 0x2e, 0x76, 0x74, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, - 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x74, 0x63, - 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, - 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, - 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x27, 0x2e, 0x76, 0x74, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x67, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x24, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, - 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0b, 0x56, 0x44, 0x69, - 0x66, 0x66, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x56, 0x44, 0x69, 0x66, 0x66, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x56, 0x44, 0x69, 0x66, 0x66, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x09, 0x56, 0x44, 0x69, 0x66, 0x66, - 0x53, 0x68, 0x6f, 0x77, 0x12, 0x19, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, - 0x44, 0x69, 0x66, 0x66, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x44, 0x69, 0x66, 0x66, 0x53, - 0x68, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, - 0x09, 0x56, 0x54, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x12, 0x19, 0x2e, 0x76, 0x74, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x54, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x52, 0x65, + 0x12, 0x52, 0x0a, 0x0d, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, + 0x27, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x24, + 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x4c, 0x0a, 0x0b, 0x56, 0x44, 0x69, 0x66, 0x66, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1b, + 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x44, 0x69, 0x66, 0x66, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x44, 0x69, 0x66, 0x66, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, + 0x09, 0x56, 0x44, 0x69, 0x66, 0x66, 0x53, 0x68, 0x6f, 0x77, 0x12, 0x19, 0x2e, 0x76, 0x74, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x44, 0x69, 0x66, 0x66, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x56, 0x54, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x08, 0x56, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x12, - 0x18, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x45, 0x78, 0x70, 0x6c, 0x61, - 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x76, 0x74, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, 0x0a, - 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, - 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x12, 0x25, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, - 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, - 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x26, 0x5a, 0x24, 0x76, 0x69, 0x74, - 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, - 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x56, 0x44, 0x69, 0x66, 0x66, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x09, 0x56, 0x54, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, + 0x12, 0x19, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x54, 0x45, 0x78, 0x70, + 0x6c, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x54, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x08, 0x56, 0x45, 0x78, + 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x56, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x19, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x45, 0x78, 0x70, 0x6c, 0x61, + 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0e, + 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x1e, + 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, + 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x10, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, + 0x64, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x56, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, + 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x64, 0x0a, 0x13, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x56, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, + 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x16, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x41, 0x64, 0x64, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x12, 0x26, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x41, 0x64, 0x64, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x56, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x4c, + 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x10, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x41, 0x64, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, + 0x64, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, + 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x17, 0x56, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x56, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x12, 0x27, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x56, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x76, + 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x53, 0x65, 0x74, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x12, 0x56, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, + 0x12, 0x22, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x53, 0x65, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, + 0x13, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, 0x0a, 0x15, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x66, + 0x66, 0x69, 0x63, 0x12, 0x25, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x66, + 0x66, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x76, 0x74, 0x63, + 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, + 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x26, 0x5a, 0x24, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, + 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, }) var ( @@ -8949,7 +9544,7 @@ func file_vtadmin_proto_rawDescGZIP() []byte { } var file_vtadmin_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_vtadmin_proto_msgTypes = make([]protoimpl.MessageInfo, 141) +var file_vtadmin_proto_msgTypes = make([]protoimpl.MessageInfo, 150) var file_vtadmin_proto_goTypes = []any{ (Tablet_ServingState)(0), // 0: vtadmin.Tablet.ServingState (*Cluster)(nil), // 1: vtadmin.Cluster @@ -9080,360 +9675,414 @@ var file_vtadmin_proto_goTypes = []any{ (*VTExplainResponse)(nil), // 126: vtadmin.VTExplainResponse (*VExplainRequest)(nil), // 127: vtadmin.VExplainRequest (*VExplainResponse)(nil), // 128: vtadmin.VExplainResponse - nil, // 129: vtadmin.ClusterCellsAliases.AliasesEntry - nil, // 130: vtadmin.Keyspace.ShardsEntry - nil, // 131: vtadmin.Schema.TableSizesEntry - (*Schema_ShardTableSize)(nil), // 132: vtadmin.Schema.ShardTableSize - (*Schema_TableSize)(nil), // 133: vtadmin.Schema.TableSize - nil, // 134: vtadmin.Schema.TableSize.ByShardEntry - (*GetSchemaMigrationsRequest_ClusterRequest)(nil), // 135: vtadmin.GetSchemaMigrationsRequest.ClusterRequest - nil, // 136: vtadmin.GetSrvKeyspacesResponse.SrvKeyspacesEntry - nil, // 137: vtadmin.GetWorkflowsResponse.WorkflowsByClusterEntry - (*ReloadSchemasResponse_KeyspaceResult)(nil), // 138: vtadmin.ReloadSchemasResponse.KeyspaceResult - (*ReloadSchemasResponse_ShardResult)(nil), // 139: vtadmin.ReloadSchemasResponse.ShardResult - (*ReloadSchemasResponse_TabletResult)(nil), // 140: vtadmin.ReloadSchemasResponse.TabletResult - nil, // 141: vtadmin.VDiffShowResponse.ShardReportEntry - (*mysqlctl.BackupInfo)(nil), // 142: mysqlctl.BackupInfo - (*topodata.CellInfo)(nil), // 143: topodata.CellInfo - (*vtctldata.ShardReplicationPositionsResponse)(nil), // 144: vtctldata.ShardReplicationPositionsResponse - (*vtctldata.Keyspace)(nil), // 145: vtctldata.Keyspace - (*tabletmanagerdata.TableDefinition)(nil), // 146: tabletmanagerdata.TableDefinition - (*vtctldata.SchemaMigration)(nil), // 147: vtctldata.SchemaMigration - (*vtctldata.Shard)(nil), // 148: vtctldata.Shard - (*vschema.SrvVSchema)(nil), // 149: vschema.SrvVSchema - (*topodata.Tablet)(nil), // 150: topodata.Tablet - (*vschema.Keyspace)(nil), // 151: vschema.Keyspace - (*vtctldata.Workflow)(nil), // 152: vtctldata.Workflow - (*vtctldata.WorkflowDeleteRequest)(nil), // 153: vtctldata.WorkflowDeleteRequest - (*vtctldata.WorkflowSwitchTrafficRequest)(nil), // 154: vtctldata.WorkflowSwitchTrafficRequest - (*vtctldata.ApplySchemaRequest)(nil), // 155: vtctldata.ApplySchemaRequest - (*vtctldata.CancelSchemaMigrationRequest)(nil), // 156: vtctldata.CancelSchemaMigrationRequest - (*vtctldata.CleanupSchemaMigrationRequest)(nil), // 157: vtctldata.CleanupSchemaMigrationRequest - (*vtctldata.CompleteSchemaMigrationRequest)(nil), // 158: vtctldata.CompleteSchemaMigrationRequest - (*vtctldata.CreateKeyspaceRequest)(nil), // 159: vtctldata.CreateKeyspaceRequest - (*vtctldata.CreateShardRequest)(nil), // 160: vtctldata.CreateShardRequest - (*vtctldata.DeleteKeyspaceRequest)(nil), // 161: vtctldata.DeleteKeyspaceRequest - (*vtctldata.DeleteShardsRequest)(nil), // 162: vtctldata.DeleteShardsRequest - (*topodata.TabletAlias)(nil), // 163: topodata.TabletAlias - (*vtctldata.EmergencyReparentShardRequest)(nil), // 164: vtctldata.EmergencyReparentShardRequest - (*logutil.Event)(nil), // 165: logutil.Event - (*vtctldata.GetBackupsRequest)(nil), // 166: vtctldata.GetBackupsRequest - (*vtctldata.GetTransactionInfoRequest)(nil), // 167: vtctldata.GetTransactionInfoRequest - (*vtctldata.LaunchSchemaMigrationRequest)(nil), // 168: vtctldata.LaunchSchemaMigrationRequest - (*vtctldata.MaterializeCreateRequest)(nil), // 169: vtctldata.MaterializeCreateRequest - (*vtctldata.MoveTablesCompleteRequest)(nil), // 170: vtctldata.MoveTablesCompleteRequest - (*vtctldata.MoveTablesCreateRequest)(nil), // 171: vtctldata.MoveTablesCreateRequest - (*vtctldata.PlannedReparentShardRequest)(nil), // 172: vtctldata.PlannedReparentShardRequest - (*vtctldata.RetrySchemaMigrationRequest)(nil), // 173: vtctldata.RetrySchemaMigrationRequest - (*vtctldata.ReshardCreateRequest)(nil), // 174: vtctldata.ReshardCreateRequest - (*vtctldata.VDiffCreateRequest)(nil), // 175: vtctldata.VDiffCreateRequest - (*vtctldata.VDiffShowRequest)(nil), // 176: vtctldata.VDiffShowRequest - (*topodata.CellsAlias)(nil), // 177: topodata.CellsAlias - (*vtctldata.GetSchemaMigrationsRequest)(nil), // 178: vtctldata.GetSchemaMigrationsRequest - (*vtctldata.GetSrvKeyspacesResponse)(nil), // 179: vtctldata.GetSrvKeyspacesResponse - (*vtctldata.ApplySchemaResponse)(nil), // 180: vtctldata.ApplySchemaResponse - (*vtctldata.CancelSchemaMigrationResponse)(nil), // 181: vtctldata.CancelSchemaMigrationResponse - (*vtctldata.CleanupSchemaMigrationResponse)(nil), // 182: vtctldata.CleanupSchemaMigrationResponse - (*vtctldata.CompleteSchemaMigrationResponse)(nil), // 183: vtctldata.CompleteSchemaMigrationResponse - (*vtctldata.ConcludeTransactionResponse)(nil), // 184: vtctldata.ConcludeTransactionResponse - (*vtctldata.CreateShardResponse)(nil), // 185: vtctldata.CreateShardResponse - (*vtctldata.DeleteKeyspaceResponse)(nil), // 186: vtctldata.DeleteKeyspaceResponse - (*vtctldata.DeleteShardsResponse)(nil), // 187: vtctldata.DeleteShardsResponse - (*vtctldata.GetFullStatusResponse)(nil), // 188: vtctldata.GetFullStatusResponse - (*vtctldata.GetTopologyPathResponse)(nil), // 189: vtctldata.GetTopologyPathResponse - (*vtctldata.GetTransactionInfoResponse)(nil), // 190: vtctldata.GetTransactionInfoResponse - (*vtctldata.GetUnresolvedTransactionsResponse)(nil), // 191: vtctldata.GetUnresolvedTransactionsResponse - (*vtctldata.WorkflowStatusResponse)(nil), // 192: vtctldata.WorkflowStatusResponse - (*vtctldata.WorkflowUpdateResponse)(nil), // 193: vtctldata.WorkflowUpdateResponse - (*vtctldata.LaunchSchemaMigrationResponse)(nil), // 194: vtctldata.LaunchSchemaMigrationResponse - (*vtctldata.MoveTablesCompleteResponse)(nil), // 195: vtctldata.MoveTablesCompleteResponse - (*vtctldata.MaterializeCreateResponse)(nil), // 196: vtctldata.MaterializeCreateResponse - (*vtctldata.RetrySchemaMigrationResponse)(nil), // 197: vtctldata.RetrySchemaMigrationResponse - (*vtctldata.ValidateResponse)(nil), // 198: vtctldata.ValidateResponse - (*vtctldata.ValidateKeyspaceResponse)(nil), // 199: vtctldata.ValidateKeyspaceResponse - (*vtctldata.ValidateSchemaKeyspaceResponse)(nil), // 200: vtctldata.ValidateSchemaKeyspaceResponse - (*vtctldata.ValidateShardResponse)(nil), // 201: vtctldata.ValidateShardResponse - (*vtctldata.ValidateVersionKeyspaceResponse)(nil), // 202: vtctldata.ValidateVersionKeyspaceResponse - (*vtctldata.ValidateVersionShardResponse)(nil), // 203: vtctldata.ValidateVersionShardResponse - (*vtctldata.VDiffCreateResponse)(nil), // 204: vtctldata.VDiffCreateResponse - (*vtctldata.WorkflowDeleteResponse)(nil), // 205: vtctldata.WorkflowDeleteResponse - (*vtctldata.WorkflowSwitchTrafficResponse)(nil), // 206: vtctldata.WorkflowSwitchTrafficResponse + (*VSchemaPublishRequest)(nil), // 129: vtadmin.VSchemaPublishRequest + (*VSchemaAddVindexRequest)(nil), // 130: vtadmin.VSchemaAddVindexRequest + (*VSchemaRemoveVindexRequest)(nil), // 131: vtadmin.VSchemaRemoveVindexRequest + (*VSchemaAddLookupVindexRequest)(nil), // 132: vtadmin.VSchemaAddLookupVindexRequest + (*VSchemaAddTablesRequest)(nil), // 133: vtadmin.VSchemaAddTablesRequest + (*VSchemaRemoveTablesRequest)(nil), // 134: vtadmin.VSchemaRemoveTablesRequest + (*VSchemaSetPrimaryVindexRequest)(nil), // 135: vtadmin.VSchemaSetPrimaryVindexRequest + (*VSchemaSetSequenceRequest)(nil), // 136: vtadmin.VSchemaSetSequenceRequest + (*VSchemaSetReferenceRequest)(nil), // 137: vtadmin.VSchemaSetReferenceRequest + nil, // 138: vtadmin.ClusterCellsAliases.AliasesEntry + nil, // 139: vtadmin.Keyspace.ShardsEntry + nil, // 140: vtadmin.Schema.TableSizesEntry + (*Schema_ShardTableSize)(nil), // 141: vtadmin.Schema.ShardTableSize + (*Schema_TableSize)(nil), // 142: vtadmin.Schema.TableSize + nil, // 143: vtadmin.Schema.TableSize.ByShardEntry + (*GetSchemaMigrationsRequest_ClusterRequest)(nil), // 144: vtadmin.GetSchemaMigrationsRequest.ClusterRequest + nil, // 145: vtadmin.GetSrvKeyspacesResponse.SrvKeyspacesEntry + nil, // 146: vtadmin.GetWorkflowsResponse.WorkflowsByClusterEntry + (*ReloadSchemasResponse_KeyspaceResult)(nil), // 147: vtadmin.ReloadSchemasResponse.KeyspaceResult + (*ReloadSchemasResponse_ShardResult)(nil), // 148: vtadmin.ReloadSchemasResponse.ShardResult + (*ReloadSchemasResponse_TabletResult)(nil), // 149: vtadmin.ReloadSchemasResponse.TabletResult + nil, // 150: vtadmin.VDiffShowResponse.ShardReportEntry + (*mysqlctl.BackupInfo)(nil), // 151: mysqlctl.BackupInfo + (*topodata.CellInfo)(nil), // 152: topodata.CellInfo + (*vtctldata.ShardReplicationPositionsResponse)(nil), // 153: vtctldata.ShardReplicationPositionsResponse + (*vtctldata.Keyspace)(nil), // 154: vtctldata.Keyspace + (*tabletmanagerdata.TableDefinition)(nil), // 155: tabletmanagerdata.TableDefinition + (*vtctldata.SchemaMigration)(nil), // 156: vtctldata.SchemaMigration + (*vtctldata.Shard)(nil), // 157: vtctldata.Shard + (*vschema.SrvVSchema)(nil), // 158: vschema.SrvVSchema + (*topodata.Tablet)(nil), // 159: topodata.Tablet + (*vschema.Keyspace)(nil), // 160: vschema.Keyspace + (*vtctldata.Workflow)(nil), // 161: vtctldata.Workflow + (*vtctldata.WorkflowDeleteRequest)(nil), // 162: vtctldata.WorkflowDeleteRequest + (*vtctldata.WorkflowSwitchTrafficRequest)(nil), // 163: vtctldata.WorkflowSwitchTrafficRequest + (*vtctldata.ApplySchemaRequest)(nil), // 164: vtctldata.ApplySchemaRequest + (*vtctldata.CancelSchemaMigrationRequest)(nil), // 165: vtctldata.CancelSchemaMigrationRequest + (*vtctldata.CleanupSchemaMigrationRequest)(nil), // 166: vtctldata.CleanupSchemaMigrationRequest + (*vtctldata.CompleteSchemaMigrationRequest)(nil), // 167: vtctldata.CompleteSchemaMigrationRequest + (*vtctldata.CreateKeyspaceRequest)(nil), // 168: vtctldata.CreateKeyspaceRequest + (*vtctldata.CreateShardRequest)(nil), // 169: vtctldata.CreateShardRequest + (*vtctldata.DeleteKeyspaceRequest)(nil), // 170: vtctldata.DeleteKeyspaceRequest + (*vtctldata.DeleteShardsRequest)(nil), // 171: vtctldata.DeleteShardsRequest + (*topodata.TabletAlias)(nil), // 172: topodata.TabletAlias + (*vtctldata.EmergencyReparentShardRequest)(nil), // 173: vtctldata.EmergencyReparentShardRequest + (*logutil.Event)(nil), // 174: logutil.Event + (*vtctldata.GetBackupsRequest)(nil), // 175: vtctldata.GetBackupsRequest + (*vtctldata.GetTransactionInfoRequest)(nil), // 176: vtctldata.GetTransactionInfoRequest + (*vtctldata.LaunchSchemaMigrationRequest)(nil), // 177: vtctldata.LaunchSchemaMigrationRequest + (*vtctldata.MaterializeCreateRequest)(nil), // 178: vtctldata.MaterializeCreateRequest + (*vtctldata.MoveTablesCompleteRequest)(nil), // 179: vtctldata.MoveTablesCompleteRequest + (*vtctldata.MoveTablesCreateRequest)(nil), // 180: vtctldata.MoveTablesCreateRequest + (*vtctldata.PlannedReparentShardRequest)(nil), // 181: vtctldata.PlannedReparentShardRequest + (*vtctldata.RetrySchemaMigrationRequest)(nil), // 182: vtctldata.RetrySchemaMigrationRequest + (*vtctldata.ReshardCreateRequest)(nil), // 183: vtctldata.ReshardCreateRequest + (*vtctldata.VDiffCreateRequest)(nil), // 184: vtctldata.VDiffCreateRequest + (*vtctldata.VDiffShowRequest)(nil), // 185: vtctldata.VDiffShowRequest + (*vtctldata.VSchemaPublishRequest)(nil), // 186: vtctldata.VSchemaPublishRequest + (*vtctldata.VSchemaAddVindexRequest)(nil), // 187: vtctldata.VSchemaAddVindexRequest + (*vtctldata.VSchemaRemoveVindexRequest)(nil), // 188: vtctldata.VSchemaRemoveVindexRequest + (*vtctldata.VSchemaAddLookupVindexRequest)(nil), // 189: vtctldata.VSchemaAddLookupVindexRequest + (*vtctldata.VSchemaAddTablesRequest)(nil), // 190: vtctldata.VSchemaAddTablesRequest + (*vtctldata.VSchemaRemoveTablesRequest)(nil), // 191: vtctldata.VSchemaRemoveTablesRequest + (*vtctldata.VSchemaSetPrimaryVindexRequest)(nil), // 192: vtctldata.VSchemaSetPrimaryVindexRequest + (*vtctldata.VSchemaSetSequenceRequest)(nil), // 193: vtctldata.VSchemaSetSequenceRequest + (*vtctldata.VSchemaSetReferenceRequest)(nil), // 194: vtctldata.VSchemaSetReferenceRequest + (*topodata.CellsAlias)(nil), // 195: topodata.CellsAlias + (*vtctldata.GetSchemaMigrationsRequest)(nil), // 196: vtctldata.GetSchemaMigrationsRequest + (*vtctldata.GetSrvKeyspacesResponse)(nil), // 197: vtctldata.GetSrvKeyspacesResponse + (*vtctldata.ApplySchemaResponse)(nil), // 198: vtctldata.ApplySchemaResponse + (*vtctldata.CancelSchemaMigrationResponse)(nil), // 199: vtctldata.CancelSchemaMigrationResponse + (*vtctldata.CleanupSchemaMigrationResponse)(nil), // 200: vtctldata.CleanupSchemaMigrationResponse + (*vtctldata.CompleteSchemaMigrationResponse)(nil), // 201: vtctldata.CompleteSchemaMigrationResponse + (*vtctldata.ConcludeTransactionResponse)(nil), // 202: vtctldata.ConcludeTransactionResponse + (*vtctldata.CreateShardResponse)(nil), // 203: vtctldata.CreateShardResponse + (*vtctldata.DeleteKeyspaceResponse)(nil), // 204: vtctldata.DeleteKeyspaceResponse + (*vtctldata.DeleteShardsResponse)(nil), // 205: vtctldata.DeleteShardsResponse + (*vtctldata.GetFullStatusResponse)(nil), // 206: vtctldata.GetFullStatusResponse + (*vtctldata.GetTopologyPathResponse)(nil), // 207: vtctldata.GetTopologyPathResponse + (*vtctldata.GetTransactionInfoResponse)(nil), // 208: vtctldata.GetTransactionInfoResponse + (*vtctldata.GetUnresolvedTransactionsResponse)(nil), // 209: vtctldata.GetUnresolvedTransactionsResponse + (*vtctldata.WorkflowStatusResponse)(nil), // 210: vtctldata.WorkflowStatusResponse + (*vtctldata.WorkflowUpdateResponse)(nil), // 211: vtctldata.WorkflowUpdateResponse + (*vtctldata.LaunchSchemaMigrationResponse)(nil), // 212: vtctldata.LaunchSchemaMigrationResponse + (*vtctldata.MoveTablesCompleteResponse)(nil), // 213: vtctldata.MoveTablesCompleteResponse + (*vtctldata.MaterializeCreateResponse)(nil), // 214: vtctldata.MaterializeCreateResponse + (*vtctldata.RetrySchemaMigrationResponse)(nil), // 215: vtctldata.RetrySchemaMigrationResponse + (*vtctldata.ValidateResponse)(nil), // 216: vtctldata.ValidateResponse + (*vtctldata.ValidateKeyspaceResponse)(nil), // 217: vtctldata.ValidateKeyspaceResponse + (*vtctldata.ValidateSchemaKeyspaceResponse)(nil), // 218: vtctldata.ValidateSchemaKeyspaceResponse + (*vtctldata.ValidateShardResponse)(nil), // 219: vtctldata.ValidateShardResponse + (*vtctldata.ValidateVersionKeyspaceResponse)(nil), // 220: vtctldata.ValidateVersionKeyspaceResponse + (*vtctldata.ValidateVersionShardResponse)(nil), // 221: vtctldata.ValidateVersionShardResponse + (*vtctldata.VDiffCreateResponse)(nil), // 222: vtctldata.VDiffCreateResponse + (*vtctldata.VSchemaPublishResponse)(nil), // 223: vtctldata.VSchemaPublishResponse + (*vtctldata.VSchemaAddVindexResponse)(nil), // 224: vtctldata.VSchemaAddVindexResponse + (*vtctldata.VSchemaRemoveVindexResponse)(nil), // 225: vtctldata.VSchemaRemoveVindexResponse + (*vtctldata.VSchemaAddLookupVindexResponse)(nil), // 226: vtctldata.VSchemaAddLookupVindexResponse + (*vtctldata.VSchemaAddTablesResponse)(nil), // 227: vtctldata.VSchemaAddTablesResponse + (*vtctldata.VSchemaRemoveTablesResponse)(nil), // 228: vtctldata.VSchemaRemoveTablesResponse + (*vtctldata.VSchemaSetPrimaryVindexResponse)(nil), // 229: vtctldata.VSchemaSetPrimaryVindexResponse + (*vtctldata.VSchemaSetSequenceResponse)(nil), // 230: vtctldata.VSchemaSetSequenceResponse + (*vtctldata.VSchemaSetReferenceResponse)(nil), // 231: vtctldata.VSchemaSetReferenceResponse + (*vtctldata.WorkflowDeleteResponse)(nil), // 232: vtctldata.WorkflowDeleteResponse + (*vtctldata.WorkflowSwitchTrafficResponse)(nil), // 233: vtctldata.WorkflowSwitchTrafficResponse } var file_vtadmin_proto_depIdxs = []int32{ 1, // 0: vtadmin.ClusterBackup.cluster:type_name -> vtadmin.Cluster - 142, // 1: vtadmin.ClusterBackup.backup:type_name -> mysqlctl.BackupInfo + 151, // 1: vtadmin.ClusterBackup.backup:type_name -> mysqlctl.BackupInfo 1, // 2: vtadmin.ClusterCellsAliases.cluster:type_name -> vtadmin.Cluster - 129, // 3: vtadmin.ClusterCellsAliases.aliases:type_name -> vtadmin.ClusterCellsAliases.AliasesEntry + 138, // 3: vtadmin.ClusterCellsAliases.aliases:type_name -> vtadmin.ClusterCellsAliases.AliasesEntry 1, // 4: vtadmin.ClusterCellInfo.cluster:type_name -> vtadmin.Cluster - 143, // 5: vtadmin.ClusterCellInfo.cell_info:type_name -> topodata.CellInfo + 152, // 5: vtadmin.ClusterCellInfo.cell_info:type_name -> topodata.CellInfo 1, // 6: vtadmin.ClusterShardReplicationPosition.cluster:type_name -> vtadmin.Cluster - 144, // 7: vtadmin.ClusterShardReplicationPosition.position_info:type_name -> vtctldata.ShardReplicationPositionsResponse + 153, // 7: vtadmin.ClusterShardReplicationPosition.position_info:type_name -> vtctldata.ShardReplicationPositionsResponse 16, // 8: vtadmin.ClusterWorkflows.workflows:type_name -> vtadmin.Workflow 1, // 9: vtadmin.Keyspace.cluster:type_name -> vtadmin.Cluster - 145, // 10: vtadmin.Keyspace.keyspace:type_name -> vtctldata.Keyspace - 130, // 11: vtadmin.Keyspace.shards:type_name -> vtadmin.Keyspace.ShardsEntry + 154, // 10: vtadmin.Keyspace.keyspace:type_name -> vtctldata.Keyspace + 139, // 11: vtadmin.Keyspace.shards:type_name -> vtadmin.Keyspace.ShardsEntry 1, // 12: vtadmin.Schema.cluster:type_name -> vtadmin.Cluster - 146, // 13: vtadmin.Schema.table_definitions:type_name -> tabletmanagerdata.TableDefinition - 131, // 14: vtadmin.Schema.table_sizes:type_name -> vtadmin.Schema.TableSizesEntry + 155, // 13: vtadmin.Schema.table_definitions:type_name -> tabletmanagerdata.TableDefinition + 140, // 14: vtadmin.Schema.table_sizes:type_name -> vtadmin.Schema.TableSizesEntry 1, // 15: vtadmin.SchemaMigration.cluster:type_name -> vtadmin.Cluster - 147, // 16: vtadmin.SchemaMigration.schema_migration:type_name -> vtctldata.SchemaMigration + 156, // 16: vtadmin.SchemaMigration.schema_migration:type_name -> vtctldata.SchemaMigration 1, // 17: vtadmin.Shard.cluster:type_name -> vtadmin.Cluster - 148, // 18: vtadmin.Shard.shard:type_name -> vtctldata.Shard + 157, // 18: vtadmin.Shard.shard:type_name -> vtctldata.Shard 1, // 19: vtadmin.SrvVSchema.cluster:type_name -> vtadmin.Cluster - 149, // 20: vtadmin.SrvVSchema.srv_v_schema:type_name -> vschema.SrvVSchema + 158, // 20: vtadmin.SrvVSchema.srv_v_schema:type_name -> vschema.SrvVSchema 1, // 21: vtadmin.Tablet.cluster:type_name -> vtadmin.Cluster - 150, // 22: vtadmin.Tablet.tablet:type_name -> topodata.Tablet + 159, // 22: vtadmin.Tablet.tablet:type_name -> topodata.Tablet 0, // 23: vtadmin.Tablet.state:type_name -> vtadmin.Tablet.ServingState 1, // 24: vtadmin.VSchema.cluster:type_name -> vtadmin.Cluster - 151, // 25: vtadmin.VSchema.v_schema:type_name -> vschema.Keyspace + 160, // 25: vtadmin.VSchema.v_schema:type_name -> vschema.Keyspace 1, // 26: vtadmin.Vtctld.cluster:type_name -> vtadmin.Cluster 1, // 27: vtadmin.VTGate.cluster:type_name -> vtadmin.Cluster 1, // 28: vtadmin.Workflow.cluster:type_name -> vtadmin.Cluster - 152, // 29: vtadmin.Workflow.workflow:type_name -> vtctldata.Workflow - 153, // 30: vtadmin.WorkflowDeleteRequest.request:type_name -> vtctldata.WorkflowDeleteRequest - 154, // 31: vtadmin.WorkflowSwitchTrafficRequest.request:type_name -> vtctldata.WorkflowSwitchTrafficRequest - 155, // 32: vtadmin.ApplySchemaRequest.request:type_name -> vtctldata.ApplySchemaRequest - 156, // 33: vtadmin.CancelSchemaMigrationRequest.request:type_name -> vtctldata.CancelSchemaMigrationRequest - 157, // 34: vtadmin.CleanupSchemaMigrationRequest.request:type_name -> vtctldata.CleanupSchemaMigrationRequest - 158, // 35: vtadmin.CompleteSchemaMigrationRequest.request:type_name -> vtctldata.CompleteSchemaMigrationRequest - 159, // 36: vtadmin.CreateKeyspaceRequest.options:type_name -> vtctldata.CreateKeyspaceRequest + 161, // 29: vtadmin.Workflow.workflow:type_name -> vtctldata.Workflow + 162, // 30: vtadmin.WorkflowDeleteRequest.request:type_name -> vtctldata.WorkflowDeleteRequest + 163, // 31: vtadmin.WorkflowSwitchTrafficRequest.request:type_name -> vtctldata.WorkflowSwitchTrafficRequest + 164, // 32: vtadmin.ApplySchemaRequest.request:type_name -> vtctldata.ApplySchemaRequest + 165, // 33: vtadmin.CancelSchemaMigrationRequest.request:type_name -> vtctldata.CancelSchemaMigrationRequest + 166, // 34: vtadmin.CleanupSchemaMigrationRequest.request:type_name -> vtctldata.CleanupSchemaMigrationRequest + 167, // 35: vtadmin.CompleteSchemaMigrationRequest.request:type_name -> vtctldata.CompleteSchemaMigrationRequest + 168, // 36: vtadmin.CreateKeyspaceRequest.options:type_name -> vtctldata.CreateKeyspaceRequest 7, // 37: vtadmin.CreateKeyspaceResponse.keyspace:type_name -> vtadmin.Keyspace - 160, // 38: vtadmin.CreateShardRequest.options:type_name -> vtctldata.CreateShardRequest - 161, // 39: vtadmin.DeleteKeyspaceRequest.options:type_name -> vtctldata.DeleteKeyspaceRequest - 162, // 40: vtadmin.DeleteShardsRequest.options:type_name -> vtctldata.DeleteShardsRequest - 163, // 41: vtadmin.DeleteTabletRequest.alias:type_name -> topodata.TabletAlias + 169, // 38: vtadmin.CreateShardRequest.options:type_name -> vtctldata.CreateShardRequest + 170, // 39: vtadmin.DeleteKeyspaceRequest.options:type_name -> vtctldata.DeleteKeyspaceRequest + 171, // 40: vtadmin.DeleteShardsRequest.options:type_name -> vtctldata.DeleteShardsRequest + 172, // 41: vtadmin.DeleteTabletRequest.alias:type_name -> topodata.TabletAlias 1, // 42: vtadmin.DeleteTabletResponse.cluster:type_name -> vtadmin.Cluster - 164, // 43: vtadmin.EmergencyFailoverShardRequest.options:type_name -> vtctldata.EmergencyReparentShardRequest + 173, // 43: vtadmin.EmergencyFailoverShardRequest.options:type_name -> vtctldata.EmergencyReparentShardRequest 1, // 44: vtadmin.EmergencyFailoverShardResponse.cluster:type_name -> vtadmin.Cluster - 163, // 45: vtadmin.EmergencyFailoverShardResponse.promoted_primary:type_name -> topodata.TabletAlias - 165, // 46: vtadmin.EmergencyFailoverShardResponse.events:type_name -> logutil.Event + 172, // 45: vtadmin.EmergencyFailoverShardResponse.promoted_primary:type_name -> topodata.TabletAlias + 174, // 46: vtadmin.EmergencyFailoverShardResponse.events:type_name -> logutil.Event 61, // 47: vtadmin.FindSchemaRequest.table_size_options:type_name -> vtadmin.GetSchemaTableSizeOptions - 166, // 48: vtadmin.GetBackupsRequest.request_options:type_name -> vtctldata.GetBackupsRequest + 175, // 48: vtadmin.GetBackupsRequest.request_options:type_name -> vtctldata.GetBackupsRequest 2, // 49: vtadmin.GetBackupsResponse.backups:type_name -> vtadmin.ClusterBackup 4, // 50: vtadmin.GetCellInfosResponse.cell_infos:type_name -> vtadmin.ClusterCellInfo 3, // 51: vtadmin.GetCellsAliasesResponse.aliases:type_name -> vtadmin.ClusterCellsAliases 1, // 52: vtadmin.GetClustersResponse.clusters:type_name -> vtadmin.Cluster - 163, // 53: vtadmin.GetFullStatusRequest.alias:type_name -> topodata.TabletAlias + 172, // 53: vtadmin.GetFullStatusRequest.alias:type_name -> topodata.TabletAlias 15, // 54: vtadmin.GetGatesResponse.gates:type_name -> vtadmin.VTGate 7, // 55: vtadmin.GetKeyspacesResponse.keyspaces:type_name -> vtadmin.Keyspace 61, // 56: vtadmin.GetSchemaRequest.table_size_options:type_name -> vtadmin.GetSchemaTableSizeOptions 61, // 57: vtadmin.GetSchemasRequest.table_size_options:type_name -> vtadmin.GetSchemaTableSizeOptions 8, // 58: vtadmin.GetSchemasResponse.schemas:type_name -> vtadmin.Schema - 135, // 59: vtadmin.GetSchemaMigrationsRequest.cluster_requests:type_name -> vtadmin.GetSchemaMigrationsRequest.ClusterRequest + 144, // 59: vtadmin.GetSchemaMigrationsRequest.cluster_requests:type_name -> vtadmin.GetSchemaMigrationsRequest.ClusterRequest 9, // 60: vtadmin.GetSchemaMigrationsResponse.schema_migrations:type_name -> vtadmin.SchemaMigration 5, // 61: vtadmin.GetShardReplicationPositionsResponse.replication_positions:type_name -> vtadmin.ClusterShardReplicationPosition - 136, // 62: vtadmin.GetSrvKeyspacesResponse.srv_keyspaces:type_name -> vtadmin.GetSrvKeyspacesResponse.SrvKeyspacesEntry + 145, // 62: vtadmin.GetSrvKeyspacesResponse.srv_keyspaces:type_name -> vtadmin.GetSrvKeyspacesResponse.SrvKeyspacesEntry 11, // 63: vtadmin.GetSrvVSchemasResponse.srv_v_schemas:type_name -> vtadmin.SrvVSchema - 163, // 64: vtadmin.GetTabletRequest.alias:type_name -> topodata.TabletAlias + 172, // 64: vtadmin.GetTabletRequest.alias:type_name -> topodata.TabletAlias 12, // 65: vtadmin.GetTabletsResponse.tablets:type_name -> vtadmin.Tablet - 167, // 66: vtadmin.GetTransactionInfoRequest.request:type_name -> vtctldata.GetTransactionInfoRequest + 176, // 66: vtadmin.GetTransactionInfoRequest.request:type_name -> vtctldata.GetTransactionInfoRequest 13, // 67: vtadmin.GetVSchemasResponse.v_schemas:type_name -> vtadmin.VSchema 14, // 68: vtadmin.GetVtctldsResponse.vtctlds:type_name -> vtadmin.Vtctld - 137, // 69: vtadmin.GetWorkflowsResponse.workflows_by_cluster:type_name -> vtadmin.GetWorkflowsResponse.WorkflowsByClusterEntry - 168, // 70: vtadmin.LaunchSchemaMigrationRequest.request:type_name -> vtctldata.LaunchSchemaMigrationRequest - 169, // 71: vtadmin.MaterializeCreateRequest.request:type_name -> vtctldata.MaterializeCreateRequest - 170, // 72: vtadmin.MoveTablesCompleteRequest.request:type_name -> vtctldata.MoveTablesCompleteRequest - 171, // 73: vtadmin.MoveTablesCreateRequest.request:type_name -> vtctldata.MoveTablesCreateRequest - 163, // 74: vtadmin.PingTabletRequest.alias:type_name -> topodata.TabletAlias + 146, // 69: vtadmin.GetWorkflowsResponse.workflows_by_cluster:type_name -> vtadmin.GetWorkflowsResponse.WorkflowsByClusterEntry + 177, // 70: vtadmin.LaunchSchemaMigrationRequest.request:type_name -> vtctldata.LaunchSchemaMigrationRequest + 178, // 71: vtadmin.MaterializeCreateRequest.request:type_name -> vtctldata.MaterializeCreateRequest + 179, // 72: vtadmin.MoveTablesCompleteRequest.request:type_name -> vtctldata.MoveTablesCompleteRequest + 180, // 73: vtadmin.MoveTablesCreateRequest.request:type_name -> vtctldata.MoveTablesCreateRequest + 172, // 74: vtadmin.PingTabletRequest.alias:type_name -> topodata.TabletAlias 1, // 75: vtadmin.PingTabletResponse.cluster:type_name -> vtadmin.Cluster - 172, // 76: vtadmin.PlannedFailoverShardRequest.options:type_name -> vtctldata.PlannedReparentShardRequest + 181, // 76: vtadmin.PlannedFailoverShardRequest.options:type_name -> vtctldata.PlannedReparentShardRequest 1, // 77: vtadmin.PlannedFailoverShardResponse.cluster:type_name -> vtadmin.Cluster - 163, // 78: vtadmin.PlannedFailoverShardResponse.promoted_primary:type_name -> topodata.TabletAlias - 165, // 79: vtadmin.PlannedFailoverShardResponse.events:type_name -> logutil.Event - 163, // 80: vtadmin.RefreshStateRequest.alias:type_name -> topodata.TabletAlias + 172, // 78: vtadmin.PlannedFailoverShardResponse.promoted_primary:type_name -> topodata.TabletAlias + 174, // 79: vtadmin.PlannedFailoverShardResponse.events:type_name -> logutil.Event + 172, // 80: vtadmin.RefreshStateRequest.alias:type_name -> topodata.TabletAlias 1, // 81: vtadmin.RefreshStateResponse.cluster:type_name -> vtadmin.Cluster - 163, // 82: vtadmin.ReloadSchemasRequest.tablets:type_name -> topodata.TabletAlias - 138, // 83: vtadmin.ReloadSchemasResponse.keyspace_results:type_name -> vtadmin.ReloadSchemasResponse.KeyspaceResult - 139, // 84: vtadmin.ReloadSchemasResponse.shard_results:type_name -> vtadmin.ReloadSchemasResponse.ShardResult - 140, // 85: vtadmin.ReloadSchemasResponse.tablet_results:type_name -> vtadmin.ReloadSchemasResponse.TabletResult - 165, // 86: vtadmin.ReloadSchemaShardResponse.events:type_name -> logutil.Event - 163, // 87: vtadmin.RefreshTabletReplicationSourceRequest.alias:type_name -> topodata.TabletAlias - 163, // 88: vtadmin.RefreshTabletReplicationSourceResponse.primary:type_name -> topodata.TabletAlias + 172, // 82: vtadmin.ReloadSchemasRequest.tablets:type_name -> topodata.TabletAlias + 147, // 83: vtadmin.ReloadSchemasResponse.keyspace_results:type_name -> vtadmin.ReloadSchemasResponse.KeyspaceResult + 148, // 84: vtadmin.ReloadSchemasResponse.shard_results:type_name -> vtadmin.ReloadSchemasResponse.ShardResult + 149, // 85: vtadmin.ReloadSchemasResponse.tablet_results:type_name -> vtadmin.ReloadSchemasResponse.TabletResult + 174, // 86: vtadmin.ReloadSchemaShardResponse.events:type_name -> logutil.Event + 172, // 87: vtadmin.RefreshTabletReplicationSourceRequest.alias:type_name -> topodata.TabletAlias + 172, // 88: vtadmin.RefreshTabletReplicationSourceResponse.primary:type_name -> topodata.TabletAlias 1, // 89: vtadmin.RefreshTabletReplicationSourceResponse.cluster:type_name -> vtadmin.Cluster - 173, // 90: vtadmin.RetrySchemaMigrationRequest.request:type_name -> vtctldata.RetrySchemaMigrationRequest - 163, // 91: vtadmin.RunHealthCheckRequest.alias:type_name -> topodata.TabletAlias + 182, // 90: vtadmin.RetrySchemaMigrationRequest.request:type_name -> vtctldata.RetrySchemaMigrationRequest + 172, // 91: vtadmin.RunHealthCheckRequest.alias:type_name -> topodata.TabletAlias 1, // 92: vtadmin.RunHealthCheckResponse.cluster:type_name -> vtadmin.Cluster - 174, // 93: vtadmin.ReshardCreateRequest.request:type_name -> vtctldata.ReshardCreateRequest - 163, // 94: vtadmin.SetReadOnlyRequest.alias:type_name -> topodata.TabletAlias - 163, // 95: vtadmin.SetReadWriteRequest.alias:type_name -> topodata.TabletAlias - 163, // 96: vtadmin.StartReplicationRequest.alias:type_name -> topodata.TabletAlias + 183, // 93: vtadmin.ReshardCreateRequest.request:type_name -> vtctldata.ReshardCreateRequest + 172, // 94: vtadmin.SetReadOnlyRequest.alias:type_name -> topodata.TabletAlias + 172, // 95: vtadmin.SetReadWriteRequest.alias:type_name -> topodata.TabletAlias + 172, // 96: vtadmin.StartReplicationRequest.alias:type_name -> topodata.TabletAlias 1, // 97: vtadmin.StartReplicationResponse.cluster:type_name -> vtadmin.Cluster - 163, // 98: vtadmin.StopReplicationRequest.alias:type_name -> topodata.TabletAlias + 172, // 98: vtadmin.StopReplicationRequest.alias:type_name -> topodata.TabletAlias 1, // 99: vtadmin.StopReplicationResponse.cluster:type_name -> vtadmin.Cluster - 163, // 100: vtadmin.TabletExternallyPromotedRequest.alias:type_name -> topodata.TabletAlias + 172, // 100: vtadmin.TabletExternallyPromotedRequest.alias:type_name -> topodata.TabletAlias 1, // 101: vtadmin.TabletExternallyPromotedResponse.cluster:type_name -> vtadmin.Cluster - 163, // 102: vtadmin.TabletExternallyPromotedResponse.new_primary:type_name -> topodata.TabletAlias - 163, // 103: vtadmin.TabletExternallyPromotedResponse.old_primary:type_name -> topodata.TabletAlias - 163, // 104: vtadmin.TabletExternallyReparentedRequest.alias:type_name -> topodata.TabletAlias - 175, // 105: vtadmin.VDiffCreateRequest.request:type_name -> vtctldata.VDiffCreateRequest - 176, // 106: vtadmin.VDiffShowRequest.request:type_name -> vtctldata.VDiffShowRequest + 172, // 102: vtadmin.TabletExternallyPromotedResponse.new_primary:type_name -> topodata.TabletAlias + 172, // 103: vtadmin.TabletExternallyPromotedResponse.old_primary:type_name -> topodata.TabletAlias + 172, // 104: vtadmin.TabletExternallyReparentedRequest.alias:type_name -> topodata.TabletAlias + 184, // 105: vtadmin.VDiffCreateRequest.request:type_name -> vtctldata.VDiffCreateRequest + 185, // 106: vtadmin.VDiffShowRequest.request:type_name -> vtctldata.VDiffShowRequest 122, // 107: vtadmin.VDiffShardReport.progress:type_name -> vtadmin.VDiffProgress - 141, // 108: vtadmin.VDiffShowResponse.shard_report:type_name -> vtadmin.VDiffShowResponse.ShardReportEntry - 177, // 109: vtadmin.ClusterCellsAliases.AliasesEntry.value:type_name -> topodata.CellsAlias - 148, // 110: vtadmin.Keyspace.ShardsEntry.value:type_name -> vtctldata.Shard - 133, // 111: vtadmin.Schema.TableSizesEntry.value:type_name -> vtadmin.Schema.TableSize - 134, // 112: vtadmin.Schema.TableSize.by_shard:type_name -> vtadmin.Schema.TableSize.ByShardEntry - 132, // 113: vtadmin.Schema.TableSize.ByShardEntry.value:type_name -> vtadmin.Schema.ShardTableSize - 178, // 114: vtadmin.GetSchemaMigrationsRequest.ClusterRequest.request:type_name -> vtctldata.GetSchemaMigrationsRequest - 179, // 115: vtadmin.GetSrvKeyspacesResponse.SrvKeyspacesEntry.value:type_name -> vtctldata.GetSrvKeyspacesResponse - 6, // 116: vtadmin.GetWorkflowsResponse.WorkflowsByClusterEntry.value:type_name -> vtadmin.ClusterWorkflows - 7, // 117: vtadmin.ReloadSchemasResponse.KeyspaceResult.keyspace:type_name -> vtadmin.Keyspace - 165, // 118: vtadmin.ReloadSchemasResponse.KeyspaceResult.events:type_name -> logutil.Event - 10, // 119: vtadmin.ReloadSchemasResponse.ShardResult.shard:type_name -> vtadmin.Shard - 165, // 120: vtadmin.ReloadSchemasResponse.ShardResult.events:type_name -> logutil.Event - 12, // 121: vtadmin.ReloadSchemasResponse.TabletResult.tablet:type_name -> vtadmin.Tablet - 123, // 122: vtadmin.VDiffShowResponse.ShardReportEntry.value:type_name -> vtadmin.VDiffShardReport - 19, // 123: vtadmin.VTAdmin.ApplySchema:input_type -> vtadmin.ApplySchemaRequest - 20, // 124: vtadmin.VTAdmin.CancelSchemaMigration:input_type -> vtadmin.CancelSchemaMigrationRequest - 21, // 125: vtadmin.VTAdmin.CleanupSchemaMigration:input_type -> vtadmin.CleanupSchemaMigrationRequest - 22, // 126: vtadmin.VTAdmin.CompleteSchemaMigration:input_type -> vtadmin.CompleteSchemaMigrationRequest - 23, // 127: vtadmin.VTAdmin.ConcludeTransaction:input_type -> vtadmin.ConcludeTransactionRequest - 24, // 128: vtadmin.VTAdmin.CreateKeyspace:input_type -> vtadmin.CreateKeyspaceRequest - 26, // 129: vtadmin.VTAdmin.CreateShard:input_type -> vtadmin.CreateShardRequest - 27, // 130: vtadmin.VTAdmin.DeleteKeyspace:input_type -> vtadmin.DeleteKeyspaceRequest - 28, // 131: vtadmin.VTAdmin.DeleteShards:input_type -> vtadmin.DeleteShardsRequest - 29, // 132: vtadmin.VTAdmin.DeleteTablet:input_type -> vtadmin.DeleteTabletRequest - 31, // 133: vtadmin.VTAdmin.EmergencyFailoverShard:input_type -> vtadmin.EmergencyFailoverShardRequest - 33, // 134: vtadmin.VTAdmin.FindSchema:input_type -> vtadmin.FindSchemaRequest - 34, // 135: vtadmin.VTAdmin.GetBackups:input_type -> vtadmin.GetBackupsRequest - 36, // 136: vtadmin.VTAdmin.GetCellInfos:input_type -> vtadmin.GetCellInfosRequest - 38, // 137: vtadmin.VTAdmin.GetCellsAliases:input_type -> vtadmin.GetCellsAliasesRequest - 40, // 138: vtadmin.VTAdmin.GetClusters:input_type -> vtadmin.GetClustersRequest - 42, // 139: vtadmin.VTAdmin.GetFullStatus:input_type -> vtadmin.GetFullStatusRequest - 43, // 140: vtadmin.VTAdmin.GetGates:input_type -> vtadmin.GetGatesRequest - 45, // 141: vtadmin.VTAdmin.GetKeyspace:input_type -> vtadmin.GetKeyspaceRequest - 46, // 142: vtadmin.VTAdmin.GetKeyspaces:input_type -> vtadmin.GetKeyspacesRequest - 48, // 143: vtadmin.VTAdmin.GetSchema:input_type -> vtadmin.GetSchemaRequest - 49, // 144: vtadmin.VTAdmin.GetSchemas:input_type -> vtadmin.GetSchemasRequest - 51, // 145: vtadmin.VTAdmin.GetSchemaMigrations:input_type -> vtadmin.GetSchemaMigrationsRequest - 53, // 146: vtadmin.VTAdmin.GetShardReplicationPositions:input_type -> vtadmin.GetShardReplicationPositionsRequest - 55, // 147: vtadmin.VTAdmin.GetSrvKeyspace:input_type -> vtadmin.GetSrvKeyspaceRequest - 56, // 148: vtadmin.VTAdmin.GetSrvKeyspaces:input_type -> vtadmin.GetSrvKeyspacesRequest - 58, // 149: vtadmin.VTAdmin.GetSrvVSchema:input_type -> vtadmin.GetSrvVSchemaRequest - 59, // 150: vtadmin.VTAdmin.GetSrvVSchemas:input_type -> vtadmin.GetSrvVSchemasRequest - 62, // 151: vtadmin.VTAdmin.GetTablet:input_type -> vtadmin.GetTabletRequest - 63, // 152: vtadmin.VTAdmin.GetTablets:input_type -> vtadmin.GetTabletsRequest - 65, // 153: vtadmin.VTAdmin.GetTopologyPath:input_type -> vtadmin.GetTopologyPathRequest - 66, // 154: vtadmin.VTAdmin.GetTransactionInfo:input_type -> vtadmin.GetTransactionInfoRequest - 67, // 155: vtadmin.VTAdmin.GetUnresolvedTransactions:input_type -> vtadmin.GetUnresolvedTransactionsRequest - 68, // 156: vtadmin.VTAdmin.GetVSchema:input_type -> vtadmin.GetVSchemaRequest - 69, // 157: vtadmin.VTAdmin.GetVSchemas:input_type -> vtadmin.GetVSchemasRequest - 71, // 158: vtadmin.VTAdmin.GetVtctlds:input_type -> vtadmin.GetVtctldsRequest - 73, // 159: vtadmin.VTAdmin.GetWorkflow:input_type -> vtadmin.GetWorkflowRequest - 77, // 160: vtadmin.VTAdmin.GetWorkflows:input_type -> vtadmin.GetWorkflowsRequest - 74, // 161: vtadmin.VTAdmin.GetWorkflowStatus:input_type -> vtadmin.GetWorkflowStatusRequest - 75, // 162: vtadmin.VTAdmin.StartWorkflow:input_type -> vtadmin.StartWorkflowRequest - 76, // 163: vtadmin.VTAdmin.StopWorkflow:input_type -> vtadmin.StopWorkflowRequest - 79, // 164: vtadmin.VTAdmin.LaunchSchemaMigration:input_type -> vtadmin.LaunchSchemaMigrationRequest - 81, // 165: vtadmin.VTAdmin.MoveTablesComplete:input_type -> vtadmin.MoveTablesCompleteRequest - 82, // 166: vtadmin.VTAdmin.MoveTablesCreate:input_type -> vtadmin.MoveTablesCreateRequest - 80, // 167: vtadmin.VTAdmin.MaterializeCreate:input_type -> vtadmin.MaterializeCreateRequest - 83, // 168: vtadmin.VTAdmin.PingTablet:input_type -> vtadmin.PingTabletRequest - 85, // 169: vtadmin.VTAdmin.PlannedFailoverShard:input_type -> vtadmin.PlannedFailoverShardRequest - 87, // 170: vtadmin.VTAdmin.RebuildKeyspaceGraph:input_type -> vtadmin.RebuildKeyspaceGraphRequest - 89, // 171: vtadmin.VTAdmin.RefreshState:input_type -> vtadmin.RefreshStateRequest - 95, // 172: vtadmin.VTAdmin.RefreshTabletReplicationSource:input_type -> vtadmin.RefreshTabletReplicationSourceRequest - 91, // 173: vtadmin.VTAdmin.ReloadSchemas:input_type -> vtadmin.ReloadSchemasRequest - 93, // 174: vtadmin.VTAdmin.ReloadSchemaShard:input_type -> vtadmin.ReloadSchemaShardRequest - 97, // 175: vtadmin.VTAdmin.RemoveKeyspaceCell:input_type -> vtadmin.RemoveKeyspaceCellRequest - 99, // 176: vtadmin.VTAdmin.RetrySchemaMigration:input_type -> vtadmin.RetrySchemaMigrationRequest - 100, // 177: vtadmin.VTAdmin.RunHealthCheck:input_type -> vtadmin.RunHealthCheckRequest - 102, // 178: vtadmin.VTAdmin.ReshardCreate:input_type -> vtadmin.ReshardCreateRequest - 103, // 179: vtadmin.VTAdmin.SetReadOnly:input_type -> vtadmin.SetReadOnlyRequest - 105, // 180: vtadmin.VTAdmin.SetReadWrite:input_type -> vtadmin.SetReadWriteRequest - 107, // 181: vtadmin.VTAdmin.StartReplication:input_type -> vtadmin.StartReplicationRequest - 109, // 182: vtadmin.VTAdmin.StopReplication:input_type -> vtadmin.StopReplicationRequest - 111, // 183: vtadmin.VTAdmin.TabletExternallyPromoted:input_type -> vtadmin.TabletExternallyPromotedRequest - 114, // 184: vtadmin.VTAdmin.Validate:input_type -> vtadmin.ValidateRequest - 115, // 185: vtadmin.VTAdmin.ValidateKeyspace:input_type -> vtadmin.ValidateKeyspaceRequest - 116, // 186: vtadmin.VTAdmin.ValidateSchemaKeyspace:input_type -> vtadmin.ValidateSchemaKeyspaceRequest - 117, // 187: vtadmin.VTAdmin.ValidateShard:input_type -> vtadmin.ValidateShardRequest - 118, // 188: vtadmin.VTAdmin.ValidateVersionKeyspace:input_type -> vtadmin.ValidateVersionKeyspaceRequest - 119, // 189: vtadmin.VTAdmin.ValidateVersionShard:input_type -> vtadmin.ValidateVersionShardRequest - 120, // 190: vtadmin.VTAdmin.VDiffCreate:input_type -> vtadmin.VDiffCreateRequest - 121, // 191: vtadmin.VTAdmin.VDiffShow:input_type -> vtadmin.VDiffShowRequest - 125, // 192: vtadmin.VTAdmin.VTExplain:input_type -> vtadmin.VTExplainRequest - 127, // 193: vtadmin.VTAdmin.VExplain:input_type -> vtadmin.VExplainRequest - 17, // 194: vtadmin.VTAdmin.WorkflowDelete:input_type -> vtadmin.WorkflowDeleteRequest - 18, // 195: vtadmin.VTAdmin.WorkflowSwitchTraffic:input_type -> vtadmin.WorkflowSwitchTrafficRequest - 180, // 196: vtadmin.VTAdmin.ApplySchema:output_type -> vtctldata.ApplySchemaResponse - 181, // 197: vtadmin.VTAdmin.CancelSchemaMigration:output_type -> vtctldata.CancelSchemaMigrationResponse - 182, // 198: vtadmin.VTAdmin.CleanupSchemaMigration:output_type -> vtctldata.CleanupSchemaMigrationResponse - 183, // 199: vtadmin.VTAdmin.CompleteSchemaMigration:output_type -> vtctldata.CompleteSchemaMigrationResponse - 184, // 200: vtadmin.VTAdmin.ConcludeTransaction:output_type -> vtctldata.ConcludeTransactionResponse - 25, // 201: vtadmin.VTAdmin.CreateKeyspace:output_type -> vtadmin.CreateKeyspaceResponse - 185, // 202: vtadmin.VTAdmin.CreateShard:output_type -> vtctldata.CreateShardResponse - 186, // 203: vtadmin.VTAdmin.DeleteKeyspace:output_type -> vtctldata.DeleteKeyspaceResponse - 187, // 204: vtadmin.VTAdmin.DeleteShards:output_type -> vtctldata.DeleteShardsResponse - 30, // 205: vtadmin.VTAdmin.DeleteTablet:output_type -> vtadmin.DeleteTabletResponse - 32, // 206: vtadmin.VTAdmin.EmergencyFailoverShard:output_type -> vtadmin.EmergencyFailoverShardResponse - 8, // 207: vtadmin.VTAdmin.FindSchema:output_type -> vtadmin.Schema - 35, // 208: vtadmin.VTAdmin.GetBackups:output_type -> vtadmin.GetBackupsResponse - 37, // 209: vtadmin.VTAdmin.GetCellInfos:output_type -> vtadmin.GetCellInfosResponse - 39, // 210: vtadmin.VTAdmin.GetCellsAliases:output_type -> vtadmin.GetCellsAliasesResponse - 41, // 211: vtadmin.VTAdmin.GetClusters:output_type -> vtadmin.GetClustersResponse - 188, // 212: vtadmin.VTAdmin.GetFullStatus:output_type -> vtctldata.GetFullStatusResponse - 44, // 213: vtadmin.VTAdmin.GetGates:output_type -> vtadmin.GetGatesResponse - 7, // 214: vtadmin.VTAdmin.GetKeyspace:output_type -> vtadmin.Keyspace - 47, // 215: vtadmin.VTAdmin.GetKeyspaces:output_type -> vtadmin.GetKeyspacesResponse - 8, // 216: vtadmin.VTAdmin.GetSchema:output_type -> vtadmin.Schema - 50, // 217: vtadmin.VTAdmin.GetSchemas:output_type -> vtadmin.GetSchemasResponse - 52, // 218: vtadmin.VTAdmin.GetSchemaMigrations:output_type -> vtadmin.GetSchemaMigrationsResponse - 54, // 219: vtadmin.VTAdmin.GetShardReplicationPositions:output_type -> vtadmin.GetShardReplicationPositionsResponse - 179, // 220: vtadmin.VTAdmin.GetSrvKeyspace:output_type -> vtctldata.GetSrvKeyspacesResponse - 57, // 221: vtadmin.VTAdmin.GetSrvKeyspaces:output_type -> vtadmin.GetSrvKeyspacesResponse - 11, // 222: vtadmin.VTAdmin.GetSrvVSchema:output_type -> vtadmin.SrvVSchema - 60, // 223: vtadmin.VTAdmin.GetSrvVSchemas:output_type -> vtadmin.GetSrvVSchemasResponse - 12, // 224: vtadmin.VTAdmin.GetTablet:output_type -> vtadmin.Tablet - 64, // 225: vtadmin.VTAdmin.GetTablets:output_type -> vtadmin.GetTabletsResponse - 189, // 226: vtadmin.VTAdmin.GetTopologyPath:output_type -> vtctldata.GetTopologyPathResponse - 190, // 227: vtadmin.VTAdmin.GetTransactionInfo:output_type -> vtctldata.GetTransactionInfoResponse - 191, // 228: vtadmin.VTAdmin.GetUnresolvedTransactions:output_type -> vtctldata.GetUnresolvedTransactionsResponse - 13, // 229: vtadmin.VTAdmin.GetVSchema:output_type -> vtadmin.VSchema - 70, // 230: vtadmin.VTAdmin.GetVSchemas:output_type -> vtadmin.GetVSchemasResponse - 72, // 231: vtadmin.VTAdmin.GetVtctlds:output_type -> vtadmin.GetVtctldsResponse - 16, // 232: vtadmin.VTAdmin.GetWorkflow:output_type -> vtadmin.Workflow - 78, // 233: vtadmin.VTAdmin.GetWorkflows:output_type -> vtadmin.GetWorkflowsResponse - 192, // 234: vtadmin.VTAdmin.GetWorkflowStatus:output_type -> vtctldata.WorkflowStatusResponse - 193, // 235: vtadmin.VTAdmin.StartWorkflow:output_type -> vtctldata.WorkflowUpdateResponse - 193, // 236: vtadmin.VTAdmin.StopWorkflow:output_type -> vtctldata.WorkflowUpdateResponse - 194, // 237: vtadmin.VTAdmin.LaunchSchemaMigration:output_type -> vtctldata.LaunchSchemaMigrationResponse - 195, // 238: vtadmin.VTAdmin.MoveTablesComplete:output_type -> vtctldata.MoveTablesCompleteResponse - 192, // 239: vtadmin.VTAdmin.MoveTablesCreate:output_type -> vtctldata.WorkflowStatusResponse - 196, // 240: vtadmin.VTAdmin.MaterializeCreate:output_type -> vtctldata.MaterializeCreateResponse - 84, // 241: vtadmin.VTAdmin.PingTablet:output_type -> vtadmin.PingTabletResponse - 86, // 242: vtadmin.VTAdmin.PlannedFailoverShard:output_type -> vtadmin.PlannedFailoverShardResponse - 88, // 243: vtadmin.VTAdmin.RebuildKeyspaceGraph:output_type -> vtadmin.RebuildKeyspaceGraphResponse - 90, // 244: vtadmin.VTAdmin.RefreshState:output_type -> vtadmin.RefreshStateResponse - 96, // 245: vtadmin.VTAdmin.RefreshTabletReplicationSource:output_type -> vtadmin.RefreshTabletReplicationSourceResponse - 92, // 246: vtadmin.VTAdmin.ReloadSchemas:output_type -> vtadmin.ReloadSchemasResponse - 94, // 247: vtadmin.VTAdmin.ReloadSchemaShard:output_type -> vtadmin.ReloadSchemaShardResponse - 98, // 248: vtadmin.VTAdmin.RemoveKeyspaceCell:output_type -> vtadmin.RemoveKeyspaceCellResponse - 197, // 249: vtadmin.VTAdmin.RetrySchemaMigration:output_type -> vtctldata.RetrySchemaMigrationResponse - 101, // 250: vtadmin.VTAdmin.RunHealthCheck:output_type -> vtadmin.RunHealthCheckResponse - 192, // 251: vtadmin.VTAdmin.ReshardCreate:output_type -> vtctldata.WorkflowStatusResponse - 104, // 252: vtadmin.VTAdmin.SetReadOnly:output_type -> vtadmin.SetReadOnlyResponse - 106, // 253: vtadmin.VTAdmin.SetReadWrite:output_type -> vtadmin.SetReadWriteResponse - 108, // 254: vtadmin.VTAdmin.StartReplication:output_type -> vtadmin.StartReplicationResponse - 110, // 255: vtadmin.VTAdmin.StopReplication:output_type -> vtadmin.StopReplicationResponse - 112, // 256: vtadmin.VTAdmin.TabletExternallyPromoted:output_type -> vtadmin.TabletExternallyPromotedResponse - 198, // 257: vtadmin.VTAdmin.Validate:output_type -> vtctldata.ValidateResponse - 199, // 258: vtadmin.VTAdmin.ValidateKeyspace:output_type -> vtctldata.ValidateKeyspaceResponse - 200, // 259: vtadmin.VTAdmin.ValidateSchemaKeyspace:output_type -> vtctldata.ValidateSchemaKeyspaceResponse - 201, // 260: vtadmin.VTAdmin.ValidateShard:output_type -> vtctldata.ValidateShardResponse - 202, // 261: vtadmin.VTAdmin.ValidateVersionKeyspace:output_type -> vtctldata.ValidateVersionKeyspaceResponse - 203, // 262: vtadmin.VTAdmin.ValidateVersionShard:output_type -> vtctldata.ValidateVersionShardResponse - 204, // 263: vtadmin.VTAdmin.VDiffCreate:output_type -> vtctldata.VDiffCreateResponse - 124, // 264: vtadmin.VTAdmin.VDiffShow:output_type -> vtadmin.VDiffShowResponse - 126, // 265: vtadmin.VTAdmin.VTExplain:output_type -> vtadmin.VTExplainResponse - 128, // 266: vtadmin.VTAdmin.VExplain:output_type -> vtadmin.VExplainResponse - 205, // 267: vtadmin.VTAdmin.WorkflowDelete:output_type -> vtctldata.WorkflowDeleteResponse - 206, // 268: vtadmin.VTAdmin.WorkflowSwitchTraffic:output_type -> vtctldata.WorkflowSwitchTrafficResponse - 196, // [196:269] is the sub-list for method output_type - 123, // [123:196] is the sub-list for method input_type - 123, // [123:123] is the sub-list for extension type_name - 123, // [123:123] is the sub-list for extension extendee - 0, // [0:123] is the sub-list for field type_name + 150, // 108: vtadmin.VDiffShowResponse.shard_report:type_name -> vtadmin.VDiffShowResponse.ShardReportEntry + 186, // 109: vtadmin.VSchemaPublishRequest.request:type_name -> vtctldata.VSchemaPublishRequest + 187, // 110: vtadmin.VSchemaAddVindexRequest.request:type_name -> vtctldata.VSchemaAddVindexRequest + 188, // 111: vtadmin.VSchemaRemoveVindexRequest.request:type_name -> vtctldata.VSchemaRemoveVindexRequest + 189, // 112: vtadmin.VSchemaAddLookupVindexRequest.request:type_name -> vtctldata.VSchemaAddLookupVindexRequest + 190, // 113: vtadmin.VSchemaAddTablesRequest.request:type_name -> vtctldata.VSchemaAddTablesRequest + 191, // 114: vtadmin.VSchemaRemoveTablesRequest.request:type_name -> vtctldata.VSchemaRemoveTablesRequest + 192, // 115: vtadmin.VSchemaSetPrimaryVindexRequest.request:type_name -> vtctldata.VSchemaSetPrimaryVindexRequest + 193, // 116: vtadmin.VSchemaSetSequenceRequest.request:type_name -> vtctldata.VSchemaSetSequenceRequest + 194, // 117: vtadmin.VSchemaSetReferenceRequest.request:type_name -> vtctldata.VSchemaSetReferenceRequest + 195, // 118: vtadmin.ClusterCellsAliases.AliasesEntry.value:type_name -> topodata.CellsAlias + 157, // 119: vtadmin.Keyspace.ShardsEntry.value:type_name -> vtctldata.Shard + 142, // 120: vtadmin.Schema.TableSizesEntry.value:type_name -> vtadmin.Schema.TableSize + 143, // 121: vtadmin.Schema.TableSize.by_shard:type_name -> vtadmin.Schema.TableSize.ByShardEntry + 141, // 122: vtadmin.Schema.TableSize.ByShardEntry.value:type_name -> vtadmin.Schema.ShardTableSize + 196, // 123: vtadmin.GetSchemaMigrationsRequest.ClusterRequest.request:type_name -> vtctldata.GetSchemaMigrationsRequest + 197, // 124: vtadmin.GetSrvKeyspacesResponse.SrvKeyspacesEntry.value:type_name -> vtctldata.GetSrvKeyspacesResponse + 6, // 125: vtadmin.GetWorkflowsResponse.WorkflowsByClusterEntry.value:type_name -> vtadmin.ClusterWorkflows + 7, // 126: vtadmin.ReloadSchemasResponse.KeyspaceResult.keyspace:type_name -> vtadmin.Keyspace + 174, // 127: vtadmin.ReloadSchemasResponse.KeyspaceResult.events:type_name -> logutil.Event + 10, // 128: vtadmin.ReloadSchemasResponse.ShardResult.shard:type_name -> vtadmin.Shard + 174, // 129: vtadmin.ReloadSchemasResponse.ShardResult.events:type_name -> logutil.Event + 12, // 130: vtadmin.ReloadSchemasResponse.TabletResult.tablet:type_name -> vtadmin.Tablet + 123, // 131: vtadmin.VDiffShowResponse.ShardReportEntry.value:type_name -> vtadmin.VDiffShardReport + 19, // 132: vtadmin.VTAdmin.ApplySchema:input_type -> vtadmin.ApplySchemaRequest + 20, // 133: vtadmin.VTAdmin.CancelSchemaMigration:input_type -> vtadmin.CancelSchemaMigrationRequest + 21, // 134: vtadmin.VTAdmin.CleanupSchemaMigration:input_type -> vtadmin.CleanupSchemaMigrationRequest + 22, // 135: vtadmin.VTAdmin.CompleteSchemaMigration:input_type -> vtadmin.CompleteSchemaMigrationRequest + 23, // 136: vtadmin.VTAdmin.ConcludeTransaction:input_type -> vtadmin.ConcludeTransactionRequest + 24, // 137: vtadmin.VTAdmin.CreateKeyspace:input_type -> vtadmin.CreateKeyspaceRequest + 26, // 138: vtadmin.VTAdmin.CreateShard:input_type -> vtadmin.CreateShardRequest + 27, // 139: vtadmin.VTAdmin.DeleteKeyspace:input_type -> vtadmin.DeleteKeyspaceRequest + 28, // 140: vtadmin.VTAdmin.DeleteShards:input_type -> vtadmin.DeleteShardsRequest + 29, // 141: vtadmin.VTAdmin.DeleteTablet:input_type -> vtadmin.DeleteTabletRequest + 31, // 142: vtadmin.VTAdmin.EmergencyFailoverShard:input_type -> vtadmin.EmergencyFailoverShardRequest + 33, // 143: vtadmin.VTAdmin.FindSchema:input_type -> vtadmin.FindSchemaRequest + 34, // 144: vtadmin.VTAdmin.GetBackups:input_type -> vtadmin.GetBackupsRequest + 36, // 145: vtadmin.VTAdmin.GetCellInfos:input_type -> vtadmin.GetCellInfosRequest + 38, // 146: vtadmin.VTAdmin.GetCellsAliases:input_type -> vtadmin.GetCellsAliasesRequest + 40, // 147: vtadmin.VTAdmin.GetClusters:input_type -> vtadmin.GetClustersRequest + 42, // 148: vtadmin.VTAdmin.GetFullStatus:input_type -> vtadmin.GetFullStatusRequest + 43, // 149: vtadmin.VTAdmin.GetGates:input_type -> vtadmin.GetGatesRequest + 45, // 150: vtadmin.VTAdmin.GetKeyspace:input_type -> vtadmin.GetKeyspaceRequest + 46, // 151: vtadmin.VTAdmin.GetKeyspaces:input_type -> vtadmin.GetKeyspacesRequest + 48, // 152: vtadmin.VTAdmin.GetSchema:input_type -> vtadmin.GetSchemaRequest + 49, // 153: vtadmin.VTAdmin.GetSchemas:input_type -> vtadmin.GetSchemasRequest + 51, // 154: vtadmin.VTAdmin.GetSchemaMigrations:input_type -> vtadmin.GetSchemaMigrationsRequest + 53, // 155: vtadmin.VTAdmin.GetShardReplicationPositions:input_type -> vtadmin.GetShardReplicationPositionsRequest + 55, // 156: vtadmin.VTAdmin.GetSrvKeyspace:input_type -> vtadmin.GetSrvKeyspaceRequest + 56, // 157: vtadmin.VTAdmin.GetSrvKeyspaces:input_type -> vtadmin.GetSrvKeyspacesRequest + 58, // 158: vtadmin.VTAdmin.GetSrvVSchema:input_type -> vtadmin.GetSrvVSchemaRequest + 59, // 159: vtadmin.VTAdmin.GetSrvVSchemas:input_type -> vtadmin.GetSrvVSchemasRequest + 62, // 160: vtadmin.VTAdmin.GetTablet:input_type -> vtadmin.GetTabletRequest + 63, // 161: vtadmin.VTAdmin.GetTablets:input_type -> vtadmin.GetTabletsRequest + 65, // 162: vtadmin.VTAdmin.GetTopologyPath:input_type -> vtadmin.GetTopologyPathRequest + 66, // 163: vtadmin.VTAdmin.GetTransactionInfo:input_type -> vtadmin.GetTransactionInfoRequest + 67, // 164: vtadmin.VTAdmin.GetUnresolvedTransactions:input_type -> vtadmin.GetUnresolvedTransactionsRequest + 68, // 165: vtadmin.VTAdmin.GetVSchema:input_type -> vtadmin.GetVSchemaRequest + 69, // 166: vtadmin.VTAdmin.GetVSchemas:input_type -> vtadmin.GetVSchemasRequest + 71, // 167: vtadmin.VTAdmin.GetVtctlds:input_type -> vtadmin.GetVtctldsRequest + 73, // 168: vtadmin.VTAdmin.GetWorkflow:input_type -> vtadmin.GetWorkflowRequest + 77, // 169: vtadmin.VTAdmin.GetWorkflows:input_type -> vtadmin.GetWorkflowsRequest + 74, // 170: vtadmin.VTAdmin.GetWorkflowStatus:input_type -> vtadmin.GetWorkflowStatusRequest + 75, // 171: vtadmin.VTAdmin.StartWorkflow:input_type -> vtadmin.StartWorkflowRequest + 76, // 172: vtadmin.VTAdmin.StopWorkflow:input_type -> vtadmin.StopWorkflowRequest + 79, // 173: vtadmin.VTAdmin.LaunchSchemaMigration:input_type -> vtadmin.LaunchSchemaMigrationRequest + 81, // 174: vtadmin.VTAdmin.MoveTablesComplete:input_type -> vtadmin.MoveTablesCompleteRequest + 82, // 175: vtadmin.VTAdmin.MoveTablesCreate:input_type -> vtadmin.MoveTablesCreateRequest + 80, // 176: vtadmin.VTAdmin.MaterializeCreate:input_type -> vtadmin.MaterializeCreateRequest + 83, // 177: vtadmin.VTAdmin.PingTablet:input_type -> vtadmin.PingTabletRequest + 85, // 178: vtadmin.VTAdmin.PlannedFailoverShard:input_type -> vtadmin.PlannedFailoverShardRequest + 87, // 179: vtadmin.VTAdmin.RebuildKeyspaceGraph:input_type -> vtadmin.RebuildKeyspaceGraphRequest + 89, // 180: vtadmin.VTAdmin.RefreshState:input_type -> vtadmin.RefreshStateRequest + 95, // 181: vtadmin.VTAdmin.RefreshTabletReplicationSource:input_type -> vtadmin.RefreshTabletReplicationSourceRequest + 91, // 182: vtadmin.VTAdmin.ReloadSchemas:input_type -> vtadmin.ReloadSchemasRequest + 93, // 183: vtadmin.VTAdmin.ReloadSchemaShard:input_type -> vtadmin.ReloadSchemaShardRequest + 97, // 184: vtadmin.VTAdmin.RemoveKeyspaceCell:input_type -> vtadmin.RemoveKeyspaceCellRequest + 99, // 185: vtadmin.VTAdmin.RetrySchemaMigration:input_type -> vtadmin.RetrySchemaMigrationRequest + 100, // 186: vtadmin.VTAdmin.RunHealthCheck:input_type -> vtadmin.RunHealthCheckRequest + 102, // 187: vtadmin.VTAdmin.ReshardCreate:input_type -> vtadmin.ReshardCreateRequest + 103, // 188: vtadmin.VTAdmin.SetReadOnly:input_type -> vtadmin.SetReadOnlyRequest + 105, // 189: vtadmin.VTAdmin.SetReadWrite:input_type -> vtadmin.SetReadWriteRequest + 107, // 190: vtadmin.VTAdmin.StartReplication:input_type -> vtadmin.StartReplicationRequest + 109, // 191: vtadmin.VTAdmin.StopReplication:input_type -> vtadmin.StopReplicationRequest + 111, // 192: vtadmin.VTAdmin.TabletExternallyPromoted:input_type -> vtadmin.TabletExternallyPromotedRequest + 114, // 193: vtadmin.VTAdmin.Validate:input_type -> vtadmin.ValidateRequest + 115, // 194: vtadmin.VTAdmin.ValidateKeyspace:input_type -> vtadmin.ValidateKeyspaceRequest + 116, // 195: vtadmin.VTAdmin.ValidateSchemaKeyspace:input_type -> vtadmin.ValidateSchemaKeyspaceRequest + 117, // 196: vtadmin.VTAdmin.ValidateShard:input_type -> vtadmin.ValidateShardRequest + 118, // 197: vtadmin.VTAdmin.ValidateVersionKeyspace:input_type -> vtadmin.ValidateVersionKeyspaceRequest + 119, // 198: vtadmin.VTAdmin.ValidateVersionShard:input_type -> vtadmin.ValidateVersionShardRequest + 120, // 199: vtadmin.VTAdmin.VDiffCreate:input_type -> vtadmin.VDiffCreateRequest + 121, // 200: vtadmin.VTAdmin.VDiffShow:input_type -> vtadmin.VDiffShowRequest + 125, // 201: vtadmin.VTAdmin.VTExplain:input_type -> vtadmin.VTExplainRequest + 127, // 202: vtadmin.VTAdmin.VExplain:input_type -> vtadmin.VExplainRequest + 129, // 203: vtadmin.VTAdmin.VSchemaPublish:input_type -> vtadmin.VSchemaPublishRequest + 130, // 204: vtadmin.VTAdmin.VSchemaAddVindex:input_type -> vtadmin.VSchemaAddVindexRequest + 131, // 205: vtadmin.VTAdmin.VSchemaRemoveVindex:input_type -> vtadmin.VSchemaRemoveVindexRequest + 132, // 206: vtadmin.VTAdmin.VSchemaAddLookupVindex:input_type -> vtadmin.VSchemaAddLookupVindexRequest + 133, // 207: vtadmin.VTAdmin.VSchemaAddTables:input_type -> vtadmin.VSchemaAddTablesRequest + 134, // 208: vtadmin.VTAdmin.VSchemaRemoveTables:input_type -> vtadmin.VSchemaRemoveTablesRequest + 135, // 209: vtadmin.VTAdmin.VSchemaSetPrimaryVindex:input_type -> vtadmin.VSchemaSetPrimaryVindexRequest + 136, // 210: vtadmin.VTAdmin.VSchemaSetSequence:input_type -> vtadmin.VSchemaSetSequenceRequest + 137, // 211: vtadmin.VTAdmin.VSchemaSetReference:input_type -> vtadmin.VSchemaSetReferenceRequest + 17, // 212: vtadmin.VTAdmin.WorkflowDelete:input_type -> vtadmin.WorkflowDeleteRequest + 18, // 213: vtadmin.VTAdmin.WorkflowSwitchTraffic:input_type -> vtadmin.WorkflowSwitchTrafficRequest + 198, // 214: vtadmin.VTAdmin.ApplySchema:output_type -> vtctldata.ApplySchemaResponse + 199, // 215: vtadmin.VTAdmin.CancelSchemaMigration:output_type -> vtctldata.CancelSchemaMigrationResponse + 200, // 216: vtadmin.VTAdmin.CleanupSchemaMigration:output_type -> vtctldata.CleanupSchemaMigrationResponse + 201, // 217: vtadmin.VTAdmin.CompleteSchemaMigration:output_type -> vtctldata.CompleteSchemaMigrationResponse + 202, // 218: vtadmin.VTAdmin.ConcludeTransaction:output_type -> vtctldata.ConcludeTransactionResponse + 25, // 219: vtadmin.VTAdmin.CreateKeyspace:output_type -> vtadmin.CreateKeyspaceResponse + 203, // 220: vtadmin.VTAdmin.CreateShard:output_type -> vtctldata.CreateShardResponse + 204, // 221: vtadmin.VTAdmin.DeleteKeyspace:output_type -> vtctldata.DeleteKeyspaceResponse + 205, // 222: vtadmin.VTAdmin.DeleteShards:output_type -> vtctldata.DeleteShardsResponse + 30, // 223: vtadmin.VTAdmin.DeleteTablet:output_type -> vtadmin.DeleteTabletResponse + 32, // 224: vtadmin.VTAdmin.EmergencyFailoverShard:output_type -> vtadmin.EmergencyFailoverShardResponse + 8, // 225: vtadmin.VTAdmin.FindSchema:output_type -> vtadmin.Schema + 35, // 226: vtadmin.VTAdmin.GetBackups:output_type -> vtadmin.GetBackupsResponse + 37, // 227: vtadmin.VTAdmin.GetCellInfos:output_type -> vtadmin.GetCellInfosResponse + 39, // 228: vtadmin.VTAdmin.GetCellsAliases:output_type -> vtadmin.GetCellsAliasesResponse + 41, // 229: vtadmin.VTAdmin.GetClusters:output_type -> vtadmin.GetClustersResponse + 206, // 230: vtadmin.VTAdmin.GetFullStatus:output_type -> vtctldata.GetFullStatusResponse + 44, // 231: vtadmin.VTAdmin.GetGates:output_type -> vtadmin.GetGatesResponse + 7, // 232: vtadmin.VTAdmin.GetKeyspace:output_type -> vtadmin.Keyspace + 47, // 233: vtadmin.VTAdmin.GetKeyspaces:output_type -> vtadmin.GetKeyspacesResponse + 8, // 234: vtadmin.VTAdmin.GetSchema:output_type -> vtadmin.Schema + 50, // 235: vtadmin.VTAdmin.GetSchemas:output_type -> vtadmin.GetSchemasResponse + 52, // 236: vtadmin.VTAdmin.GetSchemaMigrations:output_type -> vtadmin.GetSchemaMigrationsResponse + 54, // 237: vtadmin.VTAdmin.GetShardReplicationPositions:output_type -> vtadmin.GetShardReplicationPositionsResponse + 197, // 238: vtadmin.VTAdmin.GetSrvKeyspace:output_type -> vtctldata.GetSrvKeyspacesResponse + 57, // 239: vtadmin.VTAdmin.GetSrvKeyspaces:output_type -> vtadmin.GetSrvKeyspacesResponse + 11, // 240: vtadmin.VTAdmin.GetSrvVSchema:output_type -> vtadmin.SrvVSchema + 60, // 241: vtadmin.VTAdmin.GetSrvVSchemas:output_type -> vtadmin.GetSrvVSchemasResponse + 12, // 242: vtadmin.VTAdmin.GetTablet:output_type -> vtadmin.Tablet + 64, // 243: vtadmin.VTAdmin.GetTablets:output_type -> vtadmin.GetTabletsResponse + 207, // 244: vtadmin.VTAdmin.GetTopologyPath:output_type -> vtctldata.GetTopologyPathResponse + 208, // 245: vtadmin.VTAdmin.GetTransactionInfo:output_type -> vtctldata.GetTransactionInfoResponse + 209, // 246: vtadmin.VTAdmin.GetUnresolvedTransactions:output_type -> vtctldata.GetUnresolvedTransactionsResponse + 13, // 247: vtadmin.VTAdmin.GetVSchema:output_type -> vtadmin.VSchema + 70, // 248: vtadmin.VTAdmin.GetVSchemas:output_type -> vtadmin.GetVSchemasResponse + 72, // 249: vtadmin.VTAdmin.GetVtctlds:output_type -> vtadmin.GetVtctldsResponse + 16, // 250: vtadmin.VTAdmin.GetWorkflow:output_type -> vtadmin.Workflow + 78, // 251: vtadmin.VTAdmin.GetWorkflows:output_type -> vtadmin.GetWorkflowsResponse + 210, // 252: vtadmin.VTAdmin.GetWorkflowStatus:output_type -> vtctldata.WorkflowStatusResponse + 211, // 253: vtadmin.VTAdmin.StartWorkflow:output_type -> vtctldata.WorkflowUpdateResponse + 211, // 254: vtadmin.VTAdmin.StopWorkflow:output_type -> vtctldata.WorkflowUpdateResponse + 212, // 255: vtadmin.VTAdmin.LaunchSchemaMigration:output_type -> vtctldata.LaunchSchemaMigrationResponse + 213, // 256: vtadmin.VTAdmin.MoveTablesComplete:output_type -> vtctldata.MoveTablesCompleteResponse + 210, // 257: vtadmin.VTAdmin.MoveTablesCreate:output_type -> vtctldata.WorkflowStatusResponse + 214, // 258: vtadmin.VTAdmin.MaterializeCreate:output_type -> vtctldata.MaterializeCreateResponse + 84, // 259: vtadmin.VTAdmin.PingTablet:output_type -> vtadmin.PingTabletResponse + 86, // 260: vtadmin.VTAdmin.PlannedFailoverShard:output_type -> vtadmin.PlannedFailoverShardResponse + 88, // 261: vtadmin.VTAdmin.RebuildKeyspaceGraph:output_type -> vtadmin.RebuildKeyspaceGraphResponse + 90, // 262: vtadmin.VTAdmin.RefreshState:output_type -> vtadmin.RefreshStateResponse + 96, // 263: vtadmin.VTAdmin.RefreshTabletReplicationSource:output_type -> vtadmin.RefreshTabletReplicationSourceResponse + 92, // 264: vtadmin.VTAdmin.ReloadSchemas:output_type -> vtadmin.ReloadSchemasResponse + 94, // 265: vtadmin.VTAdmin.ReloadSchemaShard:output_type -> vtadmin.ReloadSchemaShardResponse + 98, // 266: vtadmin.VTAdmin.RemoveKeyspaceCell:output_type -> vtadmin.RemoveKeyspaceCellResponse + 215, // 267: vtadmin.VTAdmin.RetrySchemaMigration:output_type -> vtctldata.RetrySchemaMigrationResponse + 101, // 268: vtadmin.VTAdmin.RunHealthCheck:output_type -> vtadmin.RunHealthCheckResponse + 210, // 269: vtadmin.VTAdmin.ReshardCreate:output_type -> vtctldata.WorkflowStatusResponse + 104, // 270: vtadmin.VTAdmin.SetReadOnly:output_type -> vtadmin.SetReadOnlyResponse + 106, // 271: vtadmin.VTAdmin.SetReadWrite:output_type -> vtadmin.SetReadWriteResponse + 108, // 272: vtadmin.VTAdmin.StartReplication:output_type -> vtadmin.StartReplicationResponse + 110, // 273: vtadmin.VTAdmin.StopReplication:output_type -> vtadmin.StopReplicationResponse + 112, // 274: vtadmin.VTAdmin.TabletExternallyPromoted:output_type -> vtadmin.TabletExternallyPromotedResponse + 216, // 275: vtadmin.VTAdmin.Validate:output_type -> vtctldata.ValidateResponse + 217, // 276: vtadmin.VTAdmin.ValidateKeyspace:output_type -> vtctldata.ValidateKeyspaceResponse + 218, // 277: vtadmin.VTAdmin.ValidateSchemaKeyspace:output_type -> vtctldata.ValidateSchemaKeyspaceResponse + 219, // 278: vtadmin.VTAdmin.ValidateShard:output_type -> vtctldata.ValidateShardResponse + 220, // 279: vtadmin.VTAdmin.ValidateVersionKeyspace:output_type -> vtctldata.ValidateVersionKeyspaceResponse + 221, // 280: vtadmin.VTAdmin.ValidateVersionShard:output_type -> vtctldata.ValidateVersionShardResponse + 222, // 281: vtadmin.VTAdmin.VDiffCreate:output_type -> vtctldata.VDiffCreateResponse + 124, // 282: vtadmin.VTAdmin.VDiffShow:output_type -> vtadmin.VDiffShowResponse + 126, // 283: vtadmin.VTAdmin.VTExplain:output_type -> vtadmin.VTExplainResponse + 128, // 284: vtadmin.VTAdmin.VExplain:output_type -> vtadmin.VExplainResponse + 223, // 285: vtadmin.VTAdmin.VSchemaPublish:output_type -> vtctldata.VSchemaPublishResponse + 224, // 286: vtadmin.VTAdmin.VSchemaAddVindex:output_type -> vtctldata.VSchemaAddVindexResponse + 225, // 287: vtadmin.VTAdmin.VSchemaRemoveVindex:output_type -> vtctldata.VSchemaRemoveVindexResponse + 226, // 288: vtadmin.VTAdmin.VSchemaAddLookupVindex:output_type -> vtctldata.VSchemaAddLookupVindexResponse + 227, // 289: vtadmin.VTAdmin.VSchemaAddTables:output_type -> vtctldata.VSchemaAddTablesResponse + 228, // 290: vtadmin.VTAdmin.VSchemaRemoveTables:output_type -> vtctldata.VSchemaRemoveTablesResponse + 229, // 291: vtadmin.VTAdmin.VSchemaSetPrimaryVindex:output_type -> vtctldata.VSchemaSetPrimaryVindexResponse + 230, // 292: vtadmin.VTAdmin.VSchemaSetSequence:output_type -> vtctldata.VSchemaSetSequenceResponse + 231, // 293: vtadmin.VTAdmin.VSchemaSetReference:output_type -> vtctldata.VSchemaSetReferenceResponse + 232, // 294: vtadmin.VTAdmin.WorkflowDelete:output_type -> vtctldata.WorkflowDeleteResponse + 233, // 295: vtadmin.VTAdmin.WorkflowSwitchTraffic:output_type -> vtctldata.WorkflowSwitchTrafficResponse + 214, // [214:296] is the sub-list for method output_type + 132, // [132:214] is the sub-list for method input_type + 132, // [132:132] is the sub-list for extension type_name + 132, // [132:132] is the sub-list for extension extendee + 0, // [0:132] is the sub-list for field type_name } func init() { file_vtadmin_proto_init() } @@ -9447,7 +10096,7 @@ func file_vtadmin_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_vtadmin_proto_rawDesc), len(file_vtadmin_proto_rawDesc)), NumEnums: 1, - NumMessages: 141, + NumMessages: 150, NumExtensions: 0, NumServices: 1, }, diff --git a/go/vt/proto/vtadmin/vtadmin_grpc.pb.go b/go/vt/proto/vtadmin/vtadmin_grpc.pb.go index b1b84e6c2db..1ebea28bd4d 100644 --- a/go/vt/proto/vtadmin/vtadmin_grpc.pb.go +++ b/go/vt/proto/vtadmin/vtadmin_grpc.pb.go @@ -218,6 +218,29 @@ type VTAdminClient interface { // VExplain provides information on how Vitess plans to execute a // particular query. VExplain(ctx context.Context, in *VExplainRequest, opts ...grpc.CallOption) (*VExplainResponse, error) + // VSchemaPublish publishes a VSchema marking it as non-draft. + VSchemaPublish(ctx context.Context, in *VSchemaPublishRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaPublishResponse, error) + // VSchemaAddVindex adds a vindex in vschema. It doesn't expect it to be a lookup + // vindex, so owner is not set/required. + VSchemaAddVindex(ctx context.Context, in *VSchemaAddVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaAddVindexResponse, error) + // VSchemaRemoveVindex removes an existing vindex from the vschema. + VSchemaRemoveVindex(ctx context.Context, in *VSchemaRemoveVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaRemoveVindexResponse, error) + // VSchemaAddLookupVindex adds a lookup vindex to the vschema. + VSchemaAddLookupVindex(ctx context.Context, in *VSchemaAddLookupVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaAddLookupVindexResponse, error) + // VSchemaAddTables adds one or more tables to the vschema, along with a + // designated primary vindex and associated columns. + VSchemaAddTables(ctx context.Context, in *VSchemaAddTablesRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaAddTablesResponse, error) + // VSchemaRemoveTables removes one or more tables from the vschema. + VSchemaRemoveTables(ctx context.Context, in *VSchemaRemoveTablesRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaRemoveTablesResponse, error) + // VSchemaSetPrimaryVindex sets or updates the primary vindex for one or + // more tables, specifying the columns associated with the vindex. + VSchemaSetPrimaryVindex(ctx context.Context, in *VSchemaSetPrimaryVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaSetPrimaryVindexResponse, error) + // VSchemaSetSequence sets up a table column to use a sequence from an + // unsharded source. + VSchemaSetSequence(ctx context.Context, in *VSchemaSetSequenceRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaSetSequenceResponse, error) + // VSchemaSetReference sets up a reference table, which points to a source + // table in another vschema. + VSchemaSetReference(ctx context.Context, in *VSchemaSetReferenceRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaSetReferenceResponse, error) // WorkflowDelete deletes a vreplication workflow. WorkflowDelete(ctx context.Context, in *WorkflowDeleteRequest, opts ...grpc.CallOption) (*vtctldata.WorkflowDeleteResponse, error) // WorkflowSwitchTraffic switches traffic for a VReplication workflow. @@ -871,6 +894,87 @@ func (c *vTAdminClient) VExplain(ctx context.Context, in *VExplainRequest, opts return out, nil } +func (c *vTAdminClient) VSchemaPublish(ctx context.Context, in *VSchemaPublishRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaPublishResponse, error) { + out := new(vtctldata.VSchemaPublishResponse) + err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/VSchemaPublish", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vTAdminClient) VSchemaAddVindex(ctx context.Context, in *VSchemaAddVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaAddVindexResponse, error) { + out := new(vtctldata.VSchemaAddVindexResponse) + err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/VSchemaAddVindex", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vTAdminClient) VSchemaRemoveVindex(ctx context.Context, in *VSchemaRemoveVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaRemoveVindexResponse, error) { + out := new(vtctldata.VSchemaRemoveVindexResponse) + err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/VSchemaRemoveVindex", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vTAdminClient) VSchemaAddLookupVindex(ctx context.Context, in *VSchemaAddLookupVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaAddLookupVindexResponse, error) { + out := new(vtctldata.VSchemaAddLookupVindexResponse) + err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/VSchemaAddLookupVindex", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vTAdminClient) VSchemaAddTables(ctx context.Context, in *VSchemaAddTablesRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaAddTablesResponse, error) { + out := new(vtctldata.VSchemaAddTablesResponse) + err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/VSchemaAddTables", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vTAdminClient) VSchemaRemoveTables(ctx context.Context, in *VSchemaRemoveTablesRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaRemoveTablesResponse, error) { + out := new(vtctldata.VSchemaRemoveTablesResponse) + err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/VSchemaRemoveTables", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vTAdminClient) VSchemaSetPrimaryVindex(ctx context.Context, in *VSchemaSetPrimaryVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaSetPrimaryVindexResponse, error) { + out := new(vtctldata.VSchemaSetPrimaryVindexResponse) + err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/VSchemaSetPrimaryVindex", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vTAdminClient) VSchemaSetSequence(ctx context.Context, in *VSchemaSetSequenceRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaSetSequenceResponse, error) { + out := new(vtctldata.VSchemaSetSequenceResponse) + err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/VSchemaSetSequence", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vTAdminClient) VSchemaSetReference(ctx context.Context, in *VSchemaSetReferenceRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaSetReferenceResponse, error) { + out := new(vtctldata.VSchemaSetReferenceResponse) + err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/VSchemaSetReference", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *vTAdminClient) WorkflowDelete(ctx context.Context, in *WorkflowDeleteRequest, opts ...grpc.CallOption) (*vtctldata.WorkflowDeleteResponse, error) { out := new(vtctldata.WorkflowDeleteResponse) err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/WorkflowDelete", in, out, opts...) @@ -1088,6 +1192,29 @@ type VTAdminServer interface { // VExplain provides information on how Vitess plans to execute a // particular query. VExplain(context.Context, *VExplainRequest) (*VExplainResponse, error) + // VSchemaPublish publishes a VSchema marking it as non-draft. + VSchemaPublish(context.Context, *VSchemaPublishRequest) (*vtctldata.VSchemaPublishResponse, error) + // VSchemaAddVindex adds a vindex in vschema. It doesn't expect it to be a lookup + // vindex, so owner is not set/required. + VSchemaAddVindex(context.Context, *VSchemaAddVindexRequest) (*vtctldata.VSchemaAddVindexResponse, error) + // VSchemaRemoveVindex removes an existing vindex from the vschema. + VSchemaRemoveVindex(context.Context, *VSchemaRemoveVindexRequest) (*vtctldata.VSchemaRemoveVindexResponse, error) + // VSchemaAddLookupVindex adds a lookup vindex to the vschema. + VSchemaAddLookupVindex(context.Context, *VSchemaAddLookupVindexRequest) (*vtctldata.VSchemaAddLookupVindexResponse, error) + // VSchemaAddTables adds one or more tables to the vschema, along with a + // designated primary vindex and associated columns. + VSchemaAddTables(context.Context, *VSchemaAddTablesRequest) (*vtctldata.VSchemaAddTablesResponse, error) + // VSchemaRemoveTables removes one or more tables from the vschema. + VSchemaRemoveTables(context.Context, *VSchemaRemoveTablesRequest) (*vtctldata.VSchemaRemoveTablesResponse, error) + // VSchemaSetPrimaryVindex sets or updates the primary vindex for one or + // more tables, specifying the columns associated with the vindex. + VSchemaSetPrimaryVindex(context.Context, *VSchemaSetPrimaryVindexRequest) (*vtctldata.VSchemaSetPrimaryVindexResponse, error) + // VSchemaSetSequence sets up a table column to use a sequence from an + // unsharded source. + VSchemaSetSequence(context.Context, *VSchemaSetSequenceRequest) (*vtctldata.VSchemaSetSequenceResponse, error) + // VSchemaSetReference sets up a reference table, which points to a source + // table in another vschema. + VSchemaSetReference(context.Context, *VSchemaSetReferenceRequest) (*vtctldata.VSchemaSetReferenceResponse, error) // WorkflowDelete deletes a vreplication workflow. WorkflowDelete(context.Context, *WorkflowDeleteRequest) (*vtctldata.WorkflowDeleteResponse, error) // WorkflowSwitchTraffic switches traffic for a VReplication workflow. @@ -1312,6 +1439,33 @@ func (UnimplementedVTAdminServer) VTExplain(context.Context, *VTExplainRequest) func (UnimplementedVTAdminServer) VExplain(context.Context, *VExplainRequest) (*VExplainResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VExplain not implemented") } +func (UnimplementedVTAdminServer) VSchemaPublish(context.Context, *VSchemaPublishRequest) (*vtctldata.VSchemaPublishResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaPublish not implemented") +} +func (UnimplementedVTAdminServer) VSchemaAddVindex(context.Context, *VSchemaAddVindexRequest) (*vtctldata.VSchemaAddVindexResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaAddVindex not implemented") +} +func (UnimplementedVTAdminServer) VSchemaRemoveVindex(context.Context, *VSchemaRemoveVindexRequest) (*vtctldata.VSchemaRemoveVindexResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaRemoveVindex not implemented") +} +func (UnimplementedVTAdminServer) VSchemaAddLookupVindex(context.Context, *VSchemaAddLookupVindexRequest) (*vtctldata.VSchemaAddLookupVindexResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaAddLookupVindex not implemented") +} +func (UnimplementedVTAdminServer) VSchemaAddTables(context.Context, *VSchemaAddTablesRequest) (*vtctldata.VSchemaAddTablesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaAddTables not implemented") +} +func (UnimplementedVTAdminServer) VSchemaRemoveTables(context.Context, *VSchemaRemoveTablesRequest) (*vtctldata.VSchemaRemoveTablesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaRemoveTables not implemented") +} +func (UnimplementedVTAdminServer) VSchemaSetPrimaryVindex(context.Context, *VSchemaSetPrimaryVindexRequest) (*vtctldata.VSchemaSetPrimaryVindexResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaSetPrimaryVindex not implemented") +} +func (UnimplementedVTAdminServer) VSchemaSetSequence(context.Context, *VSchemaSetSequenceRequest) (*vtctldata.VSchemaSetSequenceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaSetSequence not implemented") +} +func (UnimplementedVTAdminServer) VSchemaSetReference(context.Context, *VSchemaSetReferenceRequest) (*vtctldata.VSchemaSetReferenceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaSetReference not implemented") +} func (UnimplementedVTAdminServer) WorkflowDelete(context.Context, *WorkflowDeleteRequest) (*vtctldata.WorkflowDeleteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method WorkflowDelete not implemented") } @@ -2609,6 +2763,168 @@ func _VTAdmin_VExplain_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +func _VTAdmin_VSchemaPublish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VSchemaPublishRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VTAdminServer).VSchemaPublish(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtadmin.VTAdmin/VSchemaPublish", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VTAdminServer).VSchemaPublish(ctx, req.(*VSchemaPublishRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VTAdmin_VSchemaAddVindex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VSchemaAddVindexRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VTAdminServer).VSchemaAddVindex(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtadmin.VTAdmin/VSchemaAddVindex", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VTAdminServer).VSchemaAddVindex(ctx, req.(*VSchemaAddVindexRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VTAdmin_VSchemaRemoveVindex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VSchemaRemoveVindexRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VTAdminServer).VSchemaRemoveVindex(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtadmin.VTAdmin/VSchemaRemoveVindex", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VTAdminServer).VSchemaRemoveVindex(ctx, req.(*VSchemaRemoveVindexRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VTAdmin_VSchemaAddLookupVindex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VSchemaAddLookupVindexRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VTAdminServer).VSchemaAddLookupVindex(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtadmin.VTAdmin/VSchemaAddLookupVindex", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VTAdminServer).VSchemaAddLookupVindex(ctx, req.(*VSchemaAddLookupVindexRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VTAdmin_VSchemaAddTables_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VSchemaAddTablesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VTAdminServer).VSchemaAddTables(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtadmin.VTAdmin/VSchemaAddTables", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VTAdminServer).VSchemaAddTables(ctx, req.(*VSchemaAddTablesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VTAdmin_VSchemaRemoveTables_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VSchemaRemoveTablesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VTAdminServer).VSchemaRemoveTables(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtadmin.VTAdmin/VSchemaRemoveTables", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VTAdminServer).VSchemaRemoveTables(ctx, req.(*VSchemaRemoveTablesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VTAdmin_VSchemaSetPrimaryVindex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VSchemaSetPrimaryVindexRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VTAdminServer).VSchemaSetPrimaryVindex(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtadmin.VTAdmin/VSchemaSetPrimaryVindex", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VTAdminServer).VSchemaSetPrimaryVindex(ctx, req.(*VSchemaSetPrimaryVindexRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VTAdmin_VSchemaSetSequence_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VSchemaSetSequenceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VTAdminServer).VSchemaSetSequence(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtadmin.VTAdmin/VSchemaSetSequence", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VTAdminServer).VSchemaSetSequence(ctx, req.(*VSchemaSetSequenceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VTAdmin_VSchemaSetReference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VSchemaSetReferenceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VTAdminServer).VSchemaSetReference(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtadmin.VTAdmin/VSchemaSetReference", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VTAdminServer).VSchemaSetReference(ctx, req.(*VSchemaSetReferenceRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _VTAdmin_WorkflowDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(WorkflowDeleteRequest) if err := dec(in); err != nil { @@ -2936,6 +3252,42 @@ var VTAdmin_ServiceDesc = grpc.ServiceDesc{ MethodName: "VExplain", Handler: _VTAdmin_VExplain_Handler, }, + { + MethodName: "VSchemaPublish", + Handler: _VTAdmin_VSchemaPublish_Handler, + }, + { + MethodName: "VSchemaAddVindex", + Handler: _VTAdmin_VSchemaAddVindex_Handler, + }, + { + MethodName: "VSchemaRemoveVindex", + Handler: _VTAdmin_VSchemaRemoveVindex_Handler, + }, + { + MethodName: "VSchemaAddLookupVindex", + Handler: _VTAdmin_VSchemaAddLookupVindex_Handler, + }, + { + MethodName: "VSchemaAddTables", + Handler: _VTAdmin_VSchemaAddTables_Handler, + }, + { + MethodName: "VSchemaRemoveTables", + Handler: _VTAdmin_VSchemaRemoveTables_Handler, + }, + { + MethodName: "VSchemaSetPrimaryVindex", + Handler: _VTAdmin_VSchemaSetPrimaryVindex_Handler, + }, + { + MethodName: "VSchemaSetSequence", + Handler: _VTAdmin_VSchemaSetSequence_Handler, + }, + { + MethodName: "VSchemaSetReference", + Handler: _VTAdmin_VSchemaSetReference_Handler, + }, { MethodName: "WorkflowDelete", Handler: _VTAdmin_WorkflowDelete_Handler, diff --git a/go/vt/proto/vtadmin/vtadmin_vtproto.pb.go b/go/vt/proto/vtadmin/vtadmin_vtproto.pb.go index 93001e5d228..bcc144e7621 100644 --- a/go/vt/proto/vtadmin/vtadmin_vtproto.pb.go +++ b/go/vt/proto/vtadmin/vtadmin_vtproto.pb.go @@ -2837,6 +2837,168 @@ func (m *VExplainResponse) CloneMessageVT() proto.Message { return m.CloneVT() } +func (m *VSchemaPublishRequest) CloneVT() *VSchemaPublishRequest { + if m == nil { + return (*VSchemaPublishRequest)(nil) + } + r := new(VSchemaPublishRequest) + r.ClusterId = m.ClusterId + r.Request = m.Request.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaPublishRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaAddVindexRequest) CloneVT() *VSchemaAddVindexRequest { + if m == nil { + return (*VSchemaAddVindexRequest)(nil) + } + r := new(VSchemaAddVindexRequest) + r.ClusterId = m.ClusterId + r.Request = m.Request.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaAddVindexRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaRemoveVindexRequest) CloneVT() *VSchemaRemoveVindexRequest { + if m == nil { + return (*VSchemaRemoveVindexRequest)(nil) + } + r := new(VSchemaRemoveVindexRequest) + r.ClusterId = m.ClusterId + r.Request = m.Request.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaRemoveVindexRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaAddLookupVindexRequest) CloneVT() *VSchemaAddLookupVindexRequest { + if m == nil { + return (*VSchemaAddLookupVindexRequest)(nil) + } + r := new(VSchemaAddLookupVindexRequest) + r.ClusterId = m.ClusterId + r.Request = m.Request.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaAddLookupVindexRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaAddTablesRequest) CloneVT() *VSchemaAddTablesRequest { + if m == nil { + return (*VSchemaAddTablesRequest)(nil) + } + r := new(VSchemaAddTablesRequest) + r.ClusterId = m.ClusterId + r.Request = m.Request.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaAddTablesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaRemoveTablesRequest) CloneVT() *VSchemaRemoveTablesRequest { + if m == nil { + return (*VSchemaRemoveTablesRequest)(nil) + } + r := new(VSchemaRemoveTablesRequest) + r.ClusterId = m.ClusterId + r.Request = m.Request.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaRemoveTablesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaSetPrimaryVindexRequest) CloneVT() *VSchemaSetPrimaryVindexRequest { + if m == nil { + return (*VSchemaSetPrimaryVindexRequest)(nil) + } + r := new(VSchemaSetPrimaryVindexRequest) + r.ClusterId = m.ClusterId + r.Request = m.Request.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaSetPrimaryVindexRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaSetSequenceRequest) CloneVT() *VSchemaSetSequenceRequest { + if m == nil { + return (*VSchemaSetSequenceRequest)(nil) + } + r := new(VSchemaSetSequenceRequest) + r.ClusterId = m.ClusterId + r.Request = m.Request.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaSetSequenceRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaSetReferenceRequest) CloneVT() *VSchemaSetReferenceRequest { + if m == nil { + return (*VSchemaSetReferenceRequest)(nil) + } + r := new(VSchemaSetReferenceRequest) + r.ClusterId = m.ClusterId + r.Request = m.Request.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaSetReferenceRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + func (m *Cluster) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -9990,416 +10152,520 @@ func (m *VExplainResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Cluster) SizeVT() (n int) { +func (m *VSchemaPublishRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return nil, nil } - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *ClusterBackup) SizeVT() (n int) { +func (m *VSchemaPublishRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaPublishRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.Cluster != nil { - l = m.Cluster.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.Backup != nil { - l = m.Backup.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Request != nil { + size, err := m.Request.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - n += len(m.unknownFields) - return n + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *ClusterCellsAliases) SizeVT() (n int) { +func (m *VSchemaAddVindexRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 - } - var l int - _ = l - if m.Cluster != nil { - l = m.Cluster.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return nil, nil } - if len(m.Aliases) > 0 { - for k, v := range m.Aliases { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *ClusterCellInfo) SizeVT() (n int) { +func (m *VSchemaAddVindexRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaAddVindexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.Cluster != nil { - l = m.Cluster.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Request != nil { + size, err := m.Request.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - if m.CellInfo != nil { - l = m.CellInfo.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0xa } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *ClusterShardReplicationPosition) SizeVT() (n int) { +func (m *VSchemaRemoveVindexRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil } - var l int - _ = l - if m.Cluster != nil { - l = m.Cluster.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Shard) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.PositionInfo != nil { - l = m.PositionInfo.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *ClusterWorkflows) SizeVT() (n int) { +func (m *VSchemaRemoveVindexRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaRemoveVindexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if len(m.Workflows) > 0 { - for _, e := range m.Workflows { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if len(m.Warnings) > 0 { - for _, s := range m.Warnings { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Request != nil { + size, err := m.Request.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - n += len(m.unknownFields) - return n + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *Keyspace) SizeVT() (n int) { +func (m *VSchemaAddLookupVindexRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 - } - var l int - _ = l - if m.Cluster != nil { - l = m.Cluster.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Keyspace != nil { - l = m.Keyspace.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return nil, nil } - if len(m.Shards) > 0 { - for k, v := range m.Shards { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *Schema_ShardTableSize) SizeVT() (n int) { +func (m *VSchemaAddLookupVindexRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaAddLookupVindexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.RowCount != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.RowCount)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.DataLength != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.DataLength)) + if m.Request != nil { + size, err := m.Request.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - n += len(m.unknownFields) - return n + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *Schema_TableSize) SizeVT() (n int) { +func (m *VSchemaAddTablesRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 - } - var l int - _ = l - if m.RowCount != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.RowCount)) - } - if m.DataLength != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.DataLength)) + return nil, nil } - if len(m.ByShard) > 0 { - for k, v := range m.ByShard { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *Schema) SizeVT() (n int) { +func (m *VSchemaAddTablesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaAddTablesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.Cluster != nil { - l = m.Cluster.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if len(m.TableDefinitions) > 0 { - for _, e := range m.TableDefinitions { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Request != nil { + size, err := m.Request.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - if len(m.TableSizes) > 0 { - for k, v := range m.TableSizes { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0xa } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *SchemaMigration) SizeVT() (n int) { +func (m *VSchemaRemoveTablesRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 - } - var l int - _ = l - if m.Cluster != nil { - l = m.Cluster.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return nil, nil } - if m.SchemaMigration != nil { - l = m.SchemaMigration.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *Shard) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Cluster != nil { - l = m.Cluster.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Shard != nil { - l = m.Shard.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - n += len(m.unknownFields) - return n +func (m *VSchemaRemoveTablesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *SrvVSchema) SizeVT() (n int) { +func (m *VSchemaRemoveTablesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Cell) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.Cluster != nil { - l = m.Cluster.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Request != nil { + size, err := m.Request.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - if m.SrvVSchema != nil { - l = m.SrvVSchema.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0xa } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *Tablet) SizeVT() (n int) { +func (m *VSchemaSetPrimaryVindexRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VSchemaSetPrimaryVindexRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaSetPrimaryVindexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.Cluster != nil { - l = m.Cluster.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.Tablet != nil { - l = m.Tablet.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Request != nil { + size, err := m.Request.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - if m.State != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.State)) + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0xa } - l = len(m.FQDN) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return len(dAtA) - i, nil +} + +func (m *VSchemaSetSequenceRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - n += len(m.unknownFields) - return n + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func (m *VSchema) SizeVT() (n int) { +func (m *VSchemaSetSequenceRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaSetSequenceRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Request != nil { + size, err := m.Request.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *VSchemaSetReferenceRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VSchemaSetReferenceRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaSetReferenceRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Request != nil { + size, err := m.Request.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Cluster) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Cluster != nil { - l = m.Cluster.SizeVT() + l = len(m.Id) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Name) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.VSchema != nil { - l = m.VSchema.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *Vtctld) SizeVT() (n int) { +func (m *ClusterBackup) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Hostname) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } if m.Cluster != nil { l = m.Cluster.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.FQDN) - if l > 0 { + if m.Backup != nil { + l = m.Backup.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *VTGate) SizeVT() (n int) { +func (m *ClusterCellsAliases) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Hostname) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Pool) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Cell) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } if m.Cluster != nil { l = m.Cluster.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Keyspaces) > 0 { - for _, s := range m.Keyspaces { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Aliases) > 0 { + for k, v := range m.Aliases { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } } - l = len(m.FQDN) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *Workflow) SizeVT() (n int) { +func (m *ClusterCellInfo) SizeVT() (n int) { if m == nil { return 0 } @@ -10409,280 +10675,365 @@ func (m *Workflow) SizeVT() (n int) { l = m.Cluster.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Keyspace) + l = len(m.Name) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Workflow != nil { - l = m.Workflow.SizeVT() + if m.CellInfo != nil { + l = m.CellInfo.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *WorkflowDeleteRequest) SizeVT() (n int) { +func (m *ClusterShardReplicationPosition) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) + if m.Cluster != nil { + l = m.Cluster.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Request != nil { - l = m.Request.SizeVT() + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.PositionInfo != nil { + l = m.PositionInfo.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *WorkflowSwitchTrafficRequest) SizeVT() (n int) { +func (m *ClusterWorkflows) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Workflows) > 0 { + for _, e := range m.Workflows { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if m.Request != nil { - l = m.Request.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Warnings) > 0 { + for _, s := range m.Warnings { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *ApplySchemaRequest) SizeVT() (n int) { +func (m *Keyspace) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Sql) - if l > 0 { + if m.Cluster != nil { + l = m.Cluster.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.CallerId) - if l > 0 { + if m.Keyspace != nil { + l = m.Keyspace.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Request != nil { - l = m.Request.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Shards) > 0 { + for k, v := range m.Shards { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } } n += len(m.unknownFields) return n } -func (m *CancelSchemaMigrationRequest) SizeVT() (n int) { +func (m *Schema_ShardTableSize) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.RowCount != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.RowCount)) } - if m.Request != nil { - l = m.Request.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.DataLength != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.DataLength)) } n += len(m.unknownFields) return n } -func (m *CleanupSchemaMigrationRequest) SizeVT() (n int) { +func (m *Schema_TableSize) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.RowCount != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.RowCount)) } - if m.Request != nil { - l = m.Request.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.DataLength != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.DataLength)) + } + if len(m.ByShard) > 0 { + for k, v := range m.ByShard { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } } n += len(m.unknownFields) return n } -func (m *CompleteSchemaMigrationRequest) SizeVT() (n int) { +func (m *Schema) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { + if m.Cluster != nil { + l = m.Cluster.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Request != nil { - l = m.Request.SizeVT() + l = len(m.Keyspace) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if len(m.TableDefinitions) > 0 { + for _, e := range m.TableDefinitions { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.TableSizes) > 0 { + for k, v := range m.TableSizes { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } n += len(m.unknownFields) return n } -func (m *ConcludeTransactionRequest) SizeVT() (n int) { +func (m *SchemaMigration) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { + if m.Cluster != nil { + l = m.Cluster.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Dtid) - if l > 0 { + if m.SchemaMigration != nil { + l = m.SchemaMigration.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *CreateKeyspaceRequest) SizeVT() (n int) { +func (m *Shard) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { + if m.Cluster != nil { + l = m.Cluster.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Options != nil { - l = m.Options.SizeVT() + if m.Shard != nil { + l = m.Shard.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *CreateKeyspaceResponse) SizeVT() (n int) { +func (m *SrvVSchema) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Keyspace != nil { - l = m.Keyspace.SizeVT() + l = len(m.Cell) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Cluster != nil { + l = m.Cluster.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.SrvVSchema != nil { + l = m.SrvVSchema.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *CreateShardRequest) SizeVT() (n int) { +func (m *Tablet) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { + if m.Cluster != nil { + l = m.Cluster.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Options != nil { - l = m.Options.SizeVT() + if m.Tablet != nil { + l = m.Tablet.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.State != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.State)) + } + l = len(m.FQDN) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *DeleteKeyspaceRequest) SizeVT() (n int) { +func (m *VSchema) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) + if m.Cluster != nil { + l = m.Cluster.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Name) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Options != nil { - l = m.Options.SizeVT() + if m.VSchema != nil { + l = m.VSchema.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *DeleteShardsRequest) SizeVT() (n int) { +func (m *Vtctld) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) + l = len(m.Hostname) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Options != nil { - l = m.Options.SizeVT() + if m.Cluster != nil { + l = m.Cluster.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.FQDN) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *DeleteTabletRequest) SizeVT() (n int) { +func (m *VTGate) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Alias != nil { - l = m.Alias.SizeVT() + l = len(m.Hostname) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { + l = len(m.Pool) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Cell) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Cluster != nil { + l = m.Cluster.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Keyspaces) > 0 { + for _, s := range m.Keyspaces { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if m.AllowPrimary { - n += 2 + l = len(m.FQDN) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *DeleteTabletResponse) SizeVT() (n int) { +func (m *Workflow) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Status) + if m.Cluster != nil { + l = m.Cluster.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Cluster != nil { - l = m.Cluster.SizeVT() + if m.Workflow != nil { + l = m.Workflow.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *EmergencyFailoverShardRequest) SizeVT() (n int) { +func (m *WorkflowDeleteRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -10692,218 +11043,199 @@ func (m *EmergencyFailoverShardRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Options != nil { - l = m.Options.SizeVT() + if m.Request != nil { + l = m.Request.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *EmergencyFailoverShardResponse) SizeVT() (n int) { +func (m *WorkflowSwitchTrafficRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Cluster != nil { - l = m.Cluster.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Shard) + l = len(m.ClusterId) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.PromotedPrimary != nil { - l = m.PromotedPrimary.SizeVT() + if m.Request != nil { + l = m.Request.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } n += len(m.unknownFields) return n } -func (m *FindSchemaRequest) SizeVT() (n int) { +func (m *ApplySchemaRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Table) + l = len(m.ClusterId) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Sql) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.TableSizeOptions != nil { - l = m.TableSizeOptions.SizeVT() + l = len(m.CallerId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Request != nil { + l = m.Request.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetBackupsRequest) SizeVT() (n int) { +func (m *CancelSchemaMigrationRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.Keyspaces) > 0 { - for _, s := range m.Keyspaces { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.KeyspaceShards) > 0 { - for _, s := range m.KeyspaceShards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.RequestOptions != nil { - l = m.RequestOptions.SizeVT() + if m.Request != nil { + l = m.Request.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetBackupsResponse) SizeVT() (n int) { +func (m *CleanupSchemaMigrationRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Backups) > 0 { - for _, e := range m.Backups { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetCellInfosRequest) SizeVT() (n int) { +func (m *CompleteSchemaMigrationRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.NamesOnly { - n += 2 + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetCellInfosResponse) SizeVT() (n int) { +func (m *ConcludeTransactionRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.CellInfos) > 0 { - for _, e := range m.CellInfos { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Dtid) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetCellsAliasesRequest) SizeVT() (n int) { +func (m *CreateKeyspaceRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Options != nil { + l = m.Options.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetCellsAliasesResponse) SizeVT() (n int) { +func (m *CreateKeyspaceResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Aliases) > 0 { - for _, e := range m.Aliases { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.Keyspace != nil { + l = m.Keyspace.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetClustersRequest) SizeVT() (n int) { +func (m *CreateShardRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Options != nil { + l = m.Options.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *GetClustersResponse) SizeVT() (n int) { +func (m *DeleteKeyspaceRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Clusters) > 0 { - for _, e := range m.Clusters { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Options != nil { + l = m.Options.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetFullStatusRequest) SizeVT() (n int) { +func (m *DeleteShardsRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -10913,47 +11245,56 @@ func (m *GetFullStatusRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Alias != nil { - l = m.Alias.SizeVT() + if m.Options != nil { + l = m.Options.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetGatesRequest) SizeVT() (n int) { +func (m *DeleteTabletRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if m.Alias != nil { + l = m.Alias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } if len(m.ClusterIds) > 0 { for _, s := range m.ClusterIds { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } + if m.AllowPrimary { + n += 2 + } n += len(m.unknownFields) return n } -func (m *GetGatesResponse) SizeVT() (n int) { +func (m *DeleteTabletResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Gates) > 0 { - for _, e := range m.Gates { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Status) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Cluster != nil { + l = m.Cluster.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetKeyspaceRequest) SizeVT() (n int) { +func (m *EmergencyFailoverShardRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -10963,38 +11304,38 @@ func (m *GetKeyspaceRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Keyspace) - if l > 0 { + if m.Options != nil { + l = m.Options.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetKeyspacesRequest) SizeVT() (n int) { +func (m *EmergencyFailoverShardResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.Cluster != nil { + l = m.Cluster.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - n += len(m.unknownFields) - return n -} - -func (m *GetKeyspacesResponse) SizeVT() (n int) { - if m == nil { - return 0 + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - var l int - _ = l - if len(m.Keyspaces) > 0 { - for _, e := range m.Keyspaces { + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.PromotedPrimary != nil { + l = m.PromotedPrimary.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Events) > 0 { + for _, e := range m.Events { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -11003,24 +11344,22 @@ func (m *GetKeyspacesResponse) SizeVT() (n int) { return n } -func (m *GetSchemaRequest) SizeVT() (n int) { +func (m *FindSchemaRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } l = len(m.Table) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } if m.TableSizeOptions != nil { l = m.TableSizeOptions.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) @@ -11029,7 +11368,7 @@ func (m *GetSchemaRequest) SizeVT() (n int) { return n } -func (m *GetSchemasRequest) SizeVT() (n int) { +func (m *GetBackupsRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -11041,22 +11380,34 @@ func (m *GetSchemasRequest) SizeVT() (n int) { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if m.TableSizeOptions != nil { - l = m.TableSizeOptions.SizeVT() + if len(m.Keyspaces) > 0 { + for _, s := range m.Keyspaces { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.KeyspaceShards) > 0 { + for _, s := range m.KeyspaceShards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.RequestOptions != nil { + l = m.RequestOptions.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetSchemasResponse) SizeVT() (n int) { +func (m *GetBackupsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Schemas) > 0 { - for _, e := range m.Schemas { + if len(m.Backups) > 0 { + for _, e := range m.Backups { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -11065,48 +11416,39 @@ func (m *GetSchemasResponse) SizeVT() (n int) { return n } -func (m *GetSchemaMigrationsRequest_ClusterRequest) SizeVT() (n int) { +func (m *GetCellInfosRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Request != nil { - l = m.Request.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - n += len(m.unknownFields) - return n -} - -func (m *GetSchemaMigrationsRequest) SizeVT() (n int) { - if m == nil { - return 0 + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - var l int - _ = l - if len(m.ClusterRequests) > 0 { - for _, e := range m.ClusterRequests { - l = e.SizeVT() + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } + if m.NamesOnly { + n += 2 + } n += len(m.unknownFields) return n } -func (m *GetSchemaMigrationsResponse) SizeVT() (n int) { +func (m *GetCellInfosResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.SchemaMigrations) > 0 { - for _, e := range m.SchemaMigrations { + if len(m.CellInfos) > 0 { + for _, e := range m.CellInfos { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -11115,7 +11457,7 @@ func (m *GetSchemaMigrationsResponse) SizeVT() (n int) { return n } -func (m *GetShardReplicationPositionsRequest) SizeVT() (n int) { +func (m *GetCellsAliasesRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -11127,30 +11469,18 @@ func (m *GetShardReplicationPositionsRequest) SizeVT() (n int) { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if len(m.Keyspaces) > 0 { - for _, s := range m.Keyspaces { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.KeyspaceShards) > 0 { - for _, s := range m.KeyspaceShards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } n += len(m.unknownFields) return n } -func (m *GetShardReplicationPositionsResponse) SizeVT() (n int) { +func (m *GetCellsAliasesResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.ReplicationPositions) > 0 { - for _, e := range m.ReplicationPositions { + if len(m.Aliases) > 0 { + for _, e := range m.Aliases { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -11159,45 +11489,25 @@ func (m *GetShardReplicationPositionsResponse) SizeVT() (n int) { return n } -func (m *GetSrvKeyspaceRequest) SizeVT() (n int) { +func (m *GetClustersRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } n += len(m.unknownFields) return n } -func (m *GetSrvKeyspacesRequest) SizeVT() (n int) { +func (m *GetClustersResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) + if len(m.Clusters) > 0 { + for _, e := range m.Clusters { + l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } @@ -11205,30 +11515,7 @@ func (m *GetSrvKeyspacesRequest) SizeVT() (n int) { return n } -func (m *GetSrvKeyspacesResponse) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.SrvKeyspaces) > 0 { - for k, v := range m.SrvKeyspaces { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } - } - n += len(m.unknownFields) - return n -} - -func (m *GetSrvVSchemaRequest) SizeVT() (n int) { +func (m *GetFullStatusRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -11238,15 +11525,15 @@ func (m *GetSrvVSchemaRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Cell) - if l > 0 { + if m.Alias != nil { + l = m.Alias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetSrvVSchemasRequest) SizeVT() (n int) { +func (m *GetGatesRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -11258,24 +11545,18 @@ func (m *GetSrvVSchemasRequest) SizeVT() (n int) { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } n += len(m.unknownFields) return n } -func (m *GetSrvVSchemasResponse) SizeVT() (n int) { +func (m *GetGatesResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.SrvVSchemas) > 0 { - for _, e := range m.SrvVSchemas { + if len(m.Gates) > 0 { + for _, e := range m.Gates { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -11284,43 +11565,25 @@ func (m *GetSrvVSchemasResponse) SizeVT() (n int) { return n } -func (m *GetSchemaTableSizeOptions) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AggregateSizes { - n += 2 - } - if m.IncludeNonServingShards { - n += 2 - } - n += len(m.unknownFields) - return n -} - -func (m *GetTabletRequest) SizeVT() (n int) { +func (m *GetKeyspaceRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Alias != nil { - l = m.Alias.SizeVT() + l = len(m.ClusterId) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetTabletsRequest) SizeVT() (n int) { +func (m *GetKeyspacesRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -11336,14 +11599,14 @@ func (m *GetTabletsRequest) SizeVT() (n int) { return n } -func (m *GetTabletsResponse) SizeVT() (n int) { +func (m *GetKeyspacesResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Tablets) > 0 { - for _, e := range m.Tablets { + if len(m.Keyspaces) > 0 { + for _, e := range m.Keyspaces { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -11352,7 +11615,7 @@ func (m *GetTabletsResponse) SizeVT() (n int) { return n } -func (m *GetTopologyPathRequest) SizeVT() (n int) { +func (m *GetSchemaRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -11362,54 +11625,59 @@ func (m *GetTopologyPathRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Path) + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Table) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.TableSizeOptions != nil { + l = m.TableSizeOptions.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *GetTransactionInfoRequest) SizeVT() (n int) { +func (m *GetSchemasRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if m.Request != nil { - l = m.Request.SizeVT() + if m.TableSizeOptions != nil { + l = m.TableSizeOptions.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetUnresolvedTransactionsRequest) SizeVT() (n int) { +func (m *GetSchemasResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.AbandonAge != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.AbandonAge)) + if len(m.Schemas) > 0 { + for _, e := range m.Schemas { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *GetVSchemaRequest) SizeVT() (n int) { +func (m *GetSchemaMigrationsRequest_ClusterRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -11419,23 +11687,23 @@ func (m *GetVSchemaRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Keyspace) - if l > 0 { + if m.Request != nil { + l = m.Request.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetVSchemasRequest) SizeVT() (n int) { +func (m *GetSchemaMigrationsRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { - l = len(s) + if len(m.ClusterRequests) > 0 { + for _, e := range m.ClusterRequests { + l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } @@ -11443,14 +11711,14 @@ func (m *GetVSchemasRequest) SizeVT() (n int) { return n } -func (m *GetVSchemasResponse) SizeVT() (n int) { +func (m *GetSchemaMigrationsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.VSchemas) > 0 { - for _, e := range m.VSchemas { + if len(m.SchemaMigrations) > 0 { + for _, e := range m.SchemaMigrations { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -11459,7 +11727,7 @@ func (m *GetVSchemasResponse) SizeVT() (n int) { return n } -func (m *GetVtctldsRequest) SizeVT() (n int) { +func (m *GetShardReplicationPositionsRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -11471,18 +11739,30 @@ func (m *GetVtctldsRequest) SizeVT() (n int) { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } + if len(m.Keyspaces) > 0 { + for _, s := range m.Keyspaces { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.KeyspaceShards) > 0 { + for _, s := range m.KeyspaceShards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *GetVtctldsResponse) SizeVT() (n int) { +func (m *GetShardReplicationPositionsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Vtctlds) > 0 { - for _, e := range m.Vtctlds { + if len(m.ReplicationPositions) > 0 { + for _, e := range m.ReplicationPositions { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -11491,7 +11771,7 @@ func (m *GetVtctldsResponse) SizeVT() (n int) { return n } -func (m *GetWorkflowRequest) SizeVT() (n int) { +func (m *GetSrvKeyspaceRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -11505,62 +11785,62 @@ func (m *GetWorkflowRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.ActiveOnly { - n += 2 + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *GetWorkflowStatusRequest) SizeVT() (n int) { +func (m *GetSrvKeyspacesRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *StartWorkflowRequest) SizeVT() (n int) { +func (m *GetSrvKeyspacesResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Workflow) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.SrvKeyspaces) > 0 { + for k, v := range m.SrvKeyspaces { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } } n += len(m.unknownFields) return n } -func (m *StopWorkflowRequest) SizeVT() (n int) { +func (m *GetSrvVSchemaRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -11570,11 +11850,7 @@ func (m *StopWorkflowRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Workflow) + l = len(m.Cell) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -11582,7 +11858,7 @@ func (m *StopWorkflowRequest) SizeVT() (n int) { return n } -func (m *GetWorkflowsRequest) SizeVT() (n int) { +func (m *GetSrvVSchemasRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -11594,17 +11870,8 @@ func (m *GetWorkflowsRequest) SizeVT() (n int) { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if m.ActiveOnly { - n += 2 - } - if len(m.Keyspaces) > 0 { - for _, s := range m.Keyspaces { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.IgnoreKeyspaces) > 0 { - for _, s := range m.IgnoreKeyspaces { + if len(m.Cells) > 0 { + for _, s := range m.Cells { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -11613,144 +11880,127 @@ func (m *GetWorkflowsRequest) SizeVT() (n int) { return n } -func (m *GetWorkflowsResponse) SizeVT() (n int) { +func (m *GetSrvVSchemasResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.WorkflowsByCluster) > 0 { - for k, v := range m.WorkflowsByCluster { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + if len(m.SrvVSchemas) > 0 { + for _, e := range m.SrvVSchemas { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) return n } -func (m *LaunchSchemaMigrationRequest) SizeVT() (n int) { +func (m *GetSchemaTableSizeOptions) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.AggregateSizes { + n += 2 } - if m.Request != nil { - l = m.Request.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.IncludeNonServingShards { + n += 2 } n += len(m.unknownFields) return n } -func (m *MaterializeCreateRequest) SizeVT() (n int) { +func (m *GetTabletRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.TableSettings) - if l > 0 { + if m.Alias != nil { + l = m.Alias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Request != nil { - l = m.Request.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *MoveTablesCompleteRequest) SizeVT() (n int) { +func (m *GetTabletsRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Request != nil { - l = m.Request.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *MoveTablesCreateRequest) SizeVT() (n int) { +func (m *GetTabletsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Request != nil { - l = m.Request.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Tablets) > 0 { + for _, e := range m.Tablets { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *PingTabletRequest) SizeVT() (n int) { +func (m *GetTopologyPathRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Alias != nil { - l = m.Alias.SizeVT() + l = len(m.ClusterId) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Path) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *PingTabletResponse) SizeVT() (n int) { +func (m *GetTransactionInfoRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Status) + l = len(m.ClusterId) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Cluster != nil { - l = m.Cluster.SizeVT() + if m.Request != nil { + l = m.Request.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *PlannedFailoverShardRequest) SizeVT() (n int) { +func (m *GetUnresolvedTransactionsRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -11760,97 +12010,73 @@ func (m *PlannedFailoverShardRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Options != nil { - l = m.Options.SizeVT() + l = len(m.Keyspace) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.AbandonAge != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.AbandonAge)) + } n += len(m.unknownFields) return n } -func (m *PlannedFailoverShardResponse) SizeVT() (n int) { +func (m *GetVSchemaRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Cluster != nil { - l = m.Cluster.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Keyspace) + l = len(m.ClusterId) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.PromotedPrimary != nil { - l = m.PromotedPrimary.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } n += len(m.unknownFields) return n } -func (m *RebuildKeyspaceGraphRequest) SizeVT() (n int) { +func (m *GetVSchemasRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.Cells) > 0 { - for _, s := range m.Cells { + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if m.AllowPartial { - n += 2 - } n += len(m.unknownFields) return n } -func (m *RebuildKeyspaceGraphResponse) SizeVT() (n int) { +func (m *GetVSchemasResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Status) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.VSchemas) > 0 { + for _, e := range m.VSchemas { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *RefreshStateRequest) SizeVT() (n int) { +func (m *GetVtctldsRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Alias != nil { - l = m.Alias.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } if len(m.ClusterIds) > 0 { for _, s := range m.ClusterIds { l = len(s) @@ -11861,155 +12087,92 @@ func (m *RefreshStateRequest) SizeVT() (n int) { return n } -func (m *RefreshStateResponse) SizeVT() (n int) { +func (m *GetVtctldsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Status) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Cluster != nil { - l = m.Cluster.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Vtctlds) > 0 { + for _, e := range m.Vtctlds { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *ReloadSchemasRequest) SizeVT() (n int) { +func (m *GetWorkflowRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Keyspaces) > 0 { - for _, s := range m.Keyspaces { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.KeyspaceShards) > 0 { - for _, s := range m.KeyspaceShards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.Tablets) > 0 { - for _, e := range m.Tablets { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if m.Concurrency != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Concurrency)) + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.WaitPosition) + l = len(m.Name) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.IncludePrimary { + if m.ActiveOnly { n += 2 } n += len(m.unknownFields) return n } -func (m *ReloadSchemasResponse_KeyspaceResult) SizeVT() (n int) { +func (m *GetWorkflowStatusRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Keyspace != nil { - l = m.Keyspace.SizeVT() + l = len(m.ClusterId) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - n += len(m.unknownFields) - return n -} - -func (m *ReloadSchemasResponse_ShardResult) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Shard != nil { - l = m.Shard.SizeVT() + l = len(m.Keyspace) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ReloadSchemasResponse_TabletResult) SizeVT() (n int) { +func (m *StartWorkflowRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Tablet != nil { - l = m.Tablet.SizeVT() + l = len(m.ClusterId) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Result) + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - n += len(m.unknownFields) - return n -} - -func (m *ReloadSchemasResponse) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.KeyspaceResults) > 0 { - for _, e := range m.KeyspaceResults { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.ShardResults) > 0 { - for _, e := range m.ShardResults { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.TabletResults) > 0 { - for _, e := range m.TabletResults { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Workflow) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ReloadSchemaShardRequest) SizeVT() (n int) { +func (m *StopWorkflowRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -12023,33 +12186,38 @@ func (m *ReloadSchemaShardRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.WaitPosition) + l = len(m.Workflow) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.IncludePrimary { - n += 2 - } - if m.Concurrency != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Concurrency)) - } n += len(m.unknownFields) return n } -func (m *ReloadSchemaShardResponse) SizeVT() (n int) { +func (m *GetWorkflowsRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.SizeVT() + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.ActiveOnly { + n += 2 + } + if len(m.Keyspaces) > 0 { + for _, s := range m.Keyspaces { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.IgnoreKeyspaces) > 0 { + for _, s := range m.IgnoreKeyspaces { + l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } @@ -12057,53 +12225,48 @@ func (m *ReloadSchemaShardResponse) SizeVT() (n int) { return n } -func (m *RefreshTabletReplicationSourceRequest) SizeVT() (n int) { +func (m *GetWorkflowsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Alias != nil { - l = m.Alias.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.WorkflowsByCluster) > 0 { + for k, v := range m.WorkflowsByCluster { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } } n += len(m.unknownFields) return n } -func (m *RefreshTabletReplicationSourceResponse) SizeVT() (n int) { +func (m *LaunchSchemaMigrationRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Shard) + l = len(m.ClusterId) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Primary != nil { - l = m.Primary.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Cluster != nil { - l = m.Cluster.SizeVT() + if m.Request != nil { + l = m.Request.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *RemoveKeyspaceCellRequest) SizeVT() (n int) { +func (m *MaterializeCreateRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -12113,39 +12276,37 @@ func (m *RemoveKeyspaceCellRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Keyspace) + l = len(m.TableSettings) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Cell) - if l > 0 { + if m.Request != nil { + l = m.Request.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Force { - n += 2 - } - if m.Recursive { - n += 2 - } n += len(m.unknownFields) return n } -func (m *RemoveKeyspaceCellResponse) SizeVT() (n int) { +func (m *MoveTablesCompleteRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Status) + l = len(m.ClusterId) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *RetrySchemaMigrationRequest) SizeVT() (n int) { +func (m *MoveTablesCreateRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -12163,7 +12324,7 @@ func (m *RetrySchemaMigrationRequest) SizeVT() (n int) { return n } -func (m *RunHealthCheckRequest) SizeVT() (n int) { +func (m *PingTabletRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -12183,7 +12344,7 @@ func (m *RunHealthCheckRequest) SizeVT() (n int) { return n } -func (m *RunHealthCheckResponse) SizeVT() (n int) { +func (m *PingTabletResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -12201,7 +12362,7 @@ func (m *RunHealthCheckResponse) SizeVT() (n int) { return n } -func (m *ReshardCreateRequest) SizeVT() (n int) { +func (m *PlannedFailoverShardRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -12211,27 +12372,39 @@ func (m *ReshardCreateRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Request != nil { - l = m.Request.SizeVT() + if m.Options != nil { + l = m.Options.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *SetReadOnlyRequest) SizeVT() (n int) { +func (m *PlannedFailoverShardResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Alias != nil { - l = m.Alias.SizeVT() + if m.Cluster != nil { + l = m.Cluster.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { - l = len(s) + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.PromotedPrimary != nil { + l = m.PromotedPrimary.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Events) > 0 { + for _, e := range m.Events { + l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } @@ -12239,47 +12412,48 @@ func (m *SetReadOnlyRequest) SizeVT() (n int) { return n } -func (m *SetReadOnlyResponse) SizeVT() (n int) { +func (m *RebuildKeyspaceGraphRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - n += len(m.unknownFields) - return n -} - -func (m *SetReadWriteRequest) SizeVT() (n int) { - if m == nil { - return 0 + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - var l int - _ = l - if m.Alias != nil { - l = m.Alias.SizeVT() + l = len(m.Keyspace) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { + if len(m.Cells) > 0 { + for _, s := range m.Cells { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } + if m.AllowPartial { + n += 2 + } n += len(m.unknownFields) return n } -func (m *SetReadWriteResponse) SizeVT() (n int) { +func (m *RebuildKeyspaceGraphResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + l = len(m.Status) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *StartReplicationRequest) SizeVT() (n int) { +func (m *RefreshStateRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -12299,7 +12473,7 @@ func (m *StartReplicationRequest) SizeVT() (n int) { return n } -func (m *StartReplicationResponse) SizeVT() (n int) { +func (m *RefreshStateResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -12317,15 +12491,29 @@ func (m *StartReplicationResponse) SizeVT() (n int) { return n } -func (m *StopReplicationRequest) SizeVT() (n int) { +func (m *ReloadSchemasRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Alias != nil { - l = m.Alias.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Keyspaces) > 0 { + for _, s := range m.Keyspaces { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.KeyspaceShards) > 0 { + for _, s := range m.KeyspaceShards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.Tablets) > 0 { + for _, e := range m.Tablets { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if len(m.ClusterIds) > 0 { for _, s := range m.ClusterIds { @@ -12333,41 +12521,99 @@ func (m *StopReplicationRequest) SizeVT() (n int) { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } + if m.Concurrency != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Concurrency)) + } + l = len(m.WaitPosition) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IncludePrimary { + n += 2 + } n += len(m.unknownFields) return n } -func (m *StopReplicationResponse) SizeVT() (n int) { +func (m *ReloadSchemasResponse_KeyspaceResult) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Status) - if l > 0 { + if m.Keyspace != nil { + l = m.Keyspace.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Cluster != nil { - l = m.Cluster.SizeVT() + if len(m.Events) > 0 { + for _, e := range m.Events { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ReloadSchemasResponse_ShardResult) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Shard != nil { + l = m.Shard.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if len(m.Events) > 0 { + for _, e := range m.Events { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *TabletExternallyPromotedRequest) SizeVT() (n int) { +func (m *ReloadSchemasResponse_TabletResult) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Alias != nil { - l = m.Alias.SizeVT() + if m.Tablet != nil { + l = m.Tablet.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.ClusterIds) > 0 { - for _, s := range m.ClusterIds { - l = len(s) + l = len(m.Result) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ReloadSchemasResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.KeyspaceResults) > 0 { + for _, e := range m.KeyspaceResults { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.ShardResults) > 0 { + for _, e := range m.ShardResults { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.TabletResults) > 0 { + for _, e := range m.TabletResults { + l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } @@ -12375,14 +12621,14 @@ func (m *TabletExternallyPromotedRequest) SizeVT() (n int) { return n } -func (m *TabletExternallyPromotedResponse) SizeVT() (n int) { +func (m *ReloadSchemaShardRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Cluster != nil { - l = m.Cluster.SizeVT() + l = len(m.ClusterId) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Keyspace) @@ -12393,19 +12639,37 @@ func (m *TabletExternallyPromotedResponse) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.NewPrimary != nil { - l = m.NewPrimary.SizeVT() + l = len(m.WaitPosition) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.OldPrimary != nil { - l = m.OldPrimary.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.IncludePrimary { + n += 2 + } + if m.Concurrency != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Concurrency)) } n += len(m.unknownFields) return n } -func (m *TabletExternallyReparentedRequest) SizeVT() (n int) { +func (m *ReloadSchemaShardResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Events) > 0 { + for _, e := range m.Events { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *RefreshTabletReplicationSourceRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -12425,24 +12689,33 @@ func (m *TabletExternallyReparentedRequest) SizeVT() (n int) { return n } -func (m *ValidateRequest) SizeVT() (n int) { +func (m *RefreshTabletReplicationSourceResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.PingTablets { - n += 2 + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Primary != nil { + l = m.Primary.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Cluster != nil { + l = m.Cluster.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ValidateKeyspaceRequest) SizeVT() (n int) { +func (m *RemoveKeyspaceCellRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -12456,24 +12729,27 @@ func (m *ValidateKeyspaceRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.PingTablets { + l = len(m.Cell) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Force { + n += 2 + } + if m.Recursive { n += 2 } n += len(m.unknownFields) return n } -func (m *ValidateSchemaKeyspaceRequest) SizeVT() (n int) { +func (m *RemoveKeyspaceCellResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Keyspace) + l = len(m.Status) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -12481,7 +12757,7 @@ func (m *ValidateSchemaKeyspaceRequest) SizeVT() (n int) { return n } -func (m *ValidateShardRequest) SizeVT() (n int) { +func (m *RetrySchemaMigrationRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -12491,62 +12767,53 @@ func (m *ValidateShardRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Shard) - if l > 0 { + if m.Request != nil { + l = m.Request.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.PingTablets { - n += 2 - } n += len(m.unknownFields) return n } -func (m *ValidateVersionKeyspaceRequest) SizeVT() (n int) { +func (m *RunHealthCheckRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { + if m.Alias != nil { + l = m.Alias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *ValidateVersionShardRequest) SizeVT() (n int) { +func (m *RunHealthCheckResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Keyspace) + l = len(m.Status) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) - if l > 0 { + if m.Cluster != nil { + l = m.Cluster.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *VDiffCreateRequest) SizeVT() (n int) { +func (m *ReshardCreateRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -12564,103 +12831,236 @@ func (m *VDiffCreateRequest) SizeVT() (n int) { return n } -func (m *VDiffShowRequest) SizeVT() (n int) { +func (m *SetReadOnlyRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClusterId) - if l > 0 { + if m.Alias != nil { + l = m.Alias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Request != nil { - l = m.Request.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *VDiffProgress) SizeVT() (n int) { +func (m *SetReadOnlyResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Percentage != 0 { - n += 9 - } - l = len(m.Eta) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *VDiffShardReport) SizeVT() (n int) { +func (m *SetReadWriteRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.State) - if l > 0 { + if m.Alias != nil { + l = m.Alias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.RowsCompared != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.RowsCompared)) - } - if m.HasMismatch { - n += 2 + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - l = len(m.StartedAt) + n += len(m.unknownFields) + return n +} + +func (m *SetReadWriteResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *StartReplicationRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Alias != nil { + l = m.Alias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *StartReplicationResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Status) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.CompletedAt) + if m.Cluster != nil { + l = m.Cluster.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *StopReplicationRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Alias != nil { + l = m.Alias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *StopReplicationResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Status) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Progress != nil { - l = m.Progress.SizeVT() + if m.Cluster != nil { + l = m.Cluster.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *VDiffShowResponse) SizeVT() (n int) { +func (m *TabletExternallyPromotedRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.ShardReport) > 0 { - for k, v := range m.ShardReport { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + if m.Alias != nil { + l = m.Alias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) return n } -func (m *VTExplainRequest) SizeVT() (n int) { +func (m *TabletExternallyPromotedResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Cluster) + if m.Cluster != nil { + l = m.Cluster.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.NewPrimary != nil { + l = m.NewPrimary.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.OldPrimary != nil { + l = m.OldPrimary.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *TabletExternallyReparentedRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Alias != nil { + l = m.Alias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ValidateRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.PingTablets { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *ValidateKeyspaceRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -12668,7 +13068,24 @@ func (m *VTExplainRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Sql) + if m.PingTablets { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *ValidateSchemaKeyspaceRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -12676,21 +13093,32 @@ func (m *VTExplainRequest) SizeVT() (n int) { return n } -func (m *VTExplainResponse) SizeVT() (n int) { +func (m *ValidateShardRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Response) + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.PingTablets { + n += 2 + } n += len(m.unknownFields) return n } -func (m *VExplainRequest) SizeVT() (n int) { +func (m *ValidateVersionKeyspaceRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -12704,7 +13132,25 @@ func (m *VExplainRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Sql) + n += len(m.unknownFields) + return n +} + +func (m *ValidateVersionShardRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Shard) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -12712,21 +13158,1603 @@ func (m *VExplainRequest) SizeVT() (n int) { return n } -func (m *VExplainResponse) SizeVT() (n int) { +func (m *VDiffCreateRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Response) + l = len(m.ClusterId) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - n += len(m.unknownFields) - return n -} + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VDiffShowRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VDiffProgress) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Percentage != 0 { + n += 9 + } + l = len(m.Eta) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VDiffShardReport) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.State) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.RowsCompared != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.RowsCompared)) + } + if m.HasMismatch { + n += 2 + } + l = len(m.StartedAt) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.CompletedAt) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Progress != nil { + l = m.Progress.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VDiffShowResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ShardReport) > 0 { + for k, v := range m.ShardReport { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *VTExplainRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Cluster) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Sql) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VTExplainResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Response) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VExplainRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Sql) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VExplainResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Response) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaPublishRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaAddVindexRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaRemoveVindexRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaAddLookupVindexRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaAddTablesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaRemoveTablesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaSetPrimaryVindexRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaSetSequenceRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaSetReferenceRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Cluster) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Cluster: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Cluster: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClusterBackup) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClusterBackup: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterBackup: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Backup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Backup == nil { + m.Backup = &mysqlctl.BackupInfo{} + } + if err := m.Backup.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClusterCellsAliases) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClusterCellsAliases: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterCellsAliases: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aliases", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aliases == nil { + m.Aliases = make(map[string]*topodata.CellsAlias) + } + var mapkey string + var mapvalue *topodata.CellsAlias + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &topodata.CellsAlias{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Aliases[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClusterCellInfo) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClusterCellInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterCellInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CellInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CellInfo == nil { + m.CellInfo = &topodata.CellInfo{} + } + if err := m.CellInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClusterShardReplicationPosition) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClusterShardReplicationPosition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterShardReplicationPosition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Shard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PositionInfo == nil { + m.PositionInfo = &vtctldata.ShardReplicationPositionsResponse{} + } + if err := m.PositionInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClusterWorkflows) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClusterWorkflows: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterWorkflows: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Workflows", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Workflows = append(m.Workflows, &Workflow{}) + if err := m.Workflows[len(m.Workflows)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Warnings", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Warnings = append(m.Warnings, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Keyspace) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Keyspace: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Keyspace: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Keyspace == nil { + m.Keyspace = &vtctldata.Keyspace{} + } + if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Shards == nil { + m.Shards = make(map[string]*vtctldata.Shard) + } + var mapkey string + var mapvalue *vtctldata.Shard + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &vtctldata.Shard{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Shards[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Schema_ShardTableSize) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Schema_ShardTableSize: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Schema_ShardTableSize: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RowCount", wireType) + } + m.RowCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RowCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DataLength", wireType) + } + m.DataLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DataLength |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } -func (m *Cluster) UnmarshalVT(dAtA []byte) error { + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Schema_TableSize) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12749,17 +14777,17 @@ func (m *Cluster) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Cluster: wiretype end group for non-group") + return fmt.Errorf("proto: Schema_TableSize: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Cluster: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Schema_TableSize: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RowCount", wireType) } - var stringLen uint64 + m.RowCount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -12769,29 +14797,35 @@ func (m *Cluster) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.RowCount |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DataLength", wireType) } - if postIndex > l { - return io.ErrUnexpectedEOF + m.DataLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DataLength |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ByShard", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -12801,23 +14835,120 @@ func (m *Cluster) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + if m.ByShard == nil { + m.ByShard = make(map[string]*Schema_ShardTableSize) + } + var mapkey string + var mapvalue *Schema_ShardTableSize + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &Schema_ShardTableSize{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ByShard[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -12841,7 +14972,7 @@ func (m *Cluster) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ClusterBackup) UnmarshalVT(dAtA []byte) error { +func (m *Schema) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12864,10 +14995,10 @@ func (m *ClusterBackup) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ClusterBackup: wiretype end group for non-group") + return fmt.Errorf("proto: Schema: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterBackup: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Schema: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -12908,9 +15039,9 @@ func (m *ClusterBackup) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Backup", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -12920,82 +15051,27 @@ func (m *ClusterBackup) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Backup == nil { - m.Backup = &mysqlctl.BackupInfo{} - } - if err := m.Backup.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterCellsAliases) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterCellsAliases: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterCellsAliases: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TableDefinitions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13022,16 +15098,14 @@ func (m *ClusterCellsAliases) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} - } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.TableDefinitions = append(m.TableDefinitions, &tabletmanagerdata.TableDefinition{}) + if err := m.TableDefinitions[len(m.TableDefinitions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Aliases", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TableSizes", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13058,11 +15132,11 @@ func (m *ClusterCellsAliases) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Aliases == nil { - m.Aliases = make(map[string]*topodata.CellsAlias) + if m.TableSizes == nil { + m.TableSizes = make(map[string]*Schema_TableSize) } var mapkey string - var mapvalue *topodata.CellsAlias + var mapvalue *Schema_TableSize for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -13136,7 +15210,7 @@ func (m *ClusterCellsAliases) UnmarshalVT(dAtA []byte) error { if postmsgIndex > l { return io.ErrUnexpectedEOF } - mapvalue = &topodata.CellsAlias{} + mapvalue = &Schema_TableSize{} if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { return err } @@ -13156,7 +15230,7 @@ func (m *ClusterCellsAliases) UnmarshalVT(dAtA []byte) error { iNdEx += skippy } } - m.Aliases[mapkey] = mapvalue + m.TableSizes[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -13180,7 +15254,7 @@ func (m *ClusterCellsAliases) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ClusterCellInfo) UnmarshalVT(dAtA []byte) error { +func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13203,10 +15277,10 @@ func (m *ClusterCellInfo) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ClusterCellInfo: wiretype end group for non-group") + return fmt.Errorf("proto: SchemaMigration: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterCellInfo: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SchemaMigration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -13247,39 +15321,7 @@ func (m *ClusterCellInfo) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CellInfo", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SchemaMigration", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13306,10 +15348,10 @@ func (m *ClusterCellInfo) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CellInfo == nil { - m.CellInfo = &topodata.CellInfo{} + if m.SchemaMigration == nil { + m.SchemaMigration = &vtctldata.SchemaMigration{} } - if err := m.CellInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SchemaMigration.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13335,7 +15377,7 @@ func (m *ClusterCellInfo) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ClusterShardReplicationPosition) UnmarshalVT(dAtA []byte) error { +func (m *Shard) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13358,10 +15400,10 @@ func (m *ClusterShardReplicationPosition) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ClusterShardReplicationPosition: wiretype end group for non-group") + return fmt.Errorf("proto: Shard: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterShardReplicationPosition: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Shard: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -13402,9 +15444,9 @@ func (m *ClusterShardReplicationPosition) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13414,27 +15456,82 @@ func (m *ClusterShardReplicationPosition) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + if m.Shard == nil { + m.Shard = &vtctldata.Shard{} + } + if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 3: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SrvVSchema) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SrvVSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SrvVSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13462,11 +15559,11 @@ func (m *ClusterShardReplicationPosition) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) + m.Cell = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionInfo", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13493,10 +15590,46 @@ func (m *ClusterShardReplicationPosition) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.PositionInfo == nil { - m.PositionInfo = &vtctldata.ShardReplicationPositionsResponse{} + if m.Cluster == nil { + m.Cluster = &Cluster{} } - if err := m.PositionInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SrvVSchema", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SrvVSchema == nil { + m.SrvVSchema = &vschema.SrvVSchema{} + } + if err := m.SrvVSchema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13522,7 +15655,7 @@ func (m *ClusterShardReplicationPosition) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ClusterWorkflows) UnmarshalVT(dAtA []byte) error { +func (m *Tablet) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13545,15 +15678,15 @@ func (m *ClusterWorkflows) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ClusterWorkflows: wiretype end group for non-group") + return fmt.Errorf("proto: Tablet: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterWorkflows: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Tablet: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflows", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13580,14 +15713,71 @@ func (m *ClusterWorkflows) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Workflows = append(m.Workflows, &Workflow{}) - if err := m.Workflows[len(m.Workflows)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Warnings", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tablet == nil { + m.Tablet = &topodata.Tablet{} + } + if err := m.Tablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= Tablet_ServingState(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FQDN", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13615,7 +15805,7 @@ func (m *ClusterWorkflows) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Warnings = append(m.Warnings, string(dAtA[iNdEx:postIndex])) + m.FQDN = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -13639,7 +15829,7 @@ func (m *ClusterWorkflows) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Keyspace) UnmarshalVT(dAtA []byte) error { +func (m *VSchema) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13662,10 +15852,10 @@ func (m *Keyspace) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Keyspace: wiretype end group for non-group") + return fmt.Errorf("proto: VSchema: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Keyspace: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchema: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -13706,9 +15896,9 @@ func (m *Keyspace) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13718,31 +15908,27 @@ func (m *Keyspace) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Keyspace == nil { - m.Keyspace = &vtctldata.Keyspace{} - } - if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchema", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13769,105 +15955,12 @@ func (m *Keyspace) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Shards == nil { - m.Shards = make(map[string]*vtctldata.Shard) + if m.VSchema == nil { + m.VSchema = &vschema.Keyspace{} } - var mapkey string - var mapvalue *vtctldata.Shard - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &vtctldata.Shard{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.VSchema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Shards[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -13891,7 +15984,7 @@ func (m *Keyspace) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Schema_ShardTableSize) UnmarshalVT(dAtA []byte) error { +func (m *Vtctld) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13914,17 +16007,17 @@ func (m *Schema_ShardTableSize) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Schema_ShardTableSize: wiretype end group for non-group") + return fmt.Errorf("proto: Vtctld: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Schema_ShardTableSize: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Vtctld: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RowCount", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) } - m.RowCount = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13934,16 +16027,29 @@ func (m *Schema_ShardTableSize) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RowCount |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hostname = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DataLength", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } - m.DataLength = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13953,105 +16059,33 @@ func (m *Schema_ShardTableSize) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DataLength |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Schema_TableSize) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Schema_TableSize: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Schema_TableSize: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RowCount", wireType) - } - m.RowCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RowCount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DataLength", wireType) + if m.Cluster == nil { + m.Cluster = &Cluster{} } - m.DataLength = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DataLength |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } + iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ByShard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FQDN", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -14061,120 +16095,23 @@ func (m *Schema_TableSize) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.ByShard == nil { - m.ByShard = make(map[string]*Schema_ShardTableSize) - } - var mapkey string - var mapvalue *Schema_ShardTableSize - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Schema_ShardTableSize{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ByShard[mapkey] = mapvalue + m.FQDN = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -14198,7 +16135,7 @@ func (m *Schema_TableSize) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Schema) UnmarshalVT(dAtA []byte) error { +func (m *VTGate) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14221,17 +16158,17 @@ func (m *Schema) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Schema: wiretype end group for non-group") + return fmt.Errorf("proto: VTGate: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Schema: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VTGate: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -14241,31 +16178,27 @@ func (m *Schema) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} - } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Hostname = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14293,13 +16226,13 @@ func (m *Schema) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Pool = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableDefinitions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -14309,29 +16242,27 @@ func (m *Schema) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.TableDefinitions = append(m.TableDefinitions, &tabletmanagerdata.TableDefinition{}) - if err := m.TableDefinitions[len(m.TableDefinitions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Cell = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableSizes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14358,105 +16289,76 @@ func (m *Schema) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TableSizes == nil { - m.TableSizes = make(map[string]*Schema_TableSize) + if m.Cluster == nil { + m.Cluster = &Cluster{} } - var mapkey string - var mapvalue *Schema_TableSize - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Schema_TableSize{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break } } - m.TableSizes[mapkey] = mapvalue + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspaces = append(m.Keyspaces, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FQDN", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FQDN = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -14480,7 +16382,7 @@ func (m *Schema) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { +func (m *Workflow) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14503,10 +16405,10 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SchemaMigration: wiretype end group for non-group") + return fmt.Errorf("proto: Workflow: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SchemaMigration: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Workflow: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -14547,7 +16449,39 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SchemaMigration", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14574,10 +16508,10 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SchemaMigration == nil { - m.SchemaMigration = &vtctldata.SchemaMigration{} + if m.Workflow == nil { + m.Workflow = &vtctldata.Workflow{} } - if err := m.SchemaMigration.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Workflow.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14603,7 +16537,7 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Shard) UnmarshalVT(dAtA []byte) error { +func (m *WorkflowDeleteRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14626,17 +16560,17 @@ func (m *Shard) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Shard: wiretype end group for non-group") + return fmt.Errorf("proto: WorkflowDeleteRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Shard: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: WorkflowDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -14646,31 +16580,27 @@ func (m *Shard) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} - } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14697,10 +16627,10 @@ func (m *Shard) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Shard == nil { - m.Shard = &vtctldata.Shard{} + if m.Request == nil { + m.Request = &vtctldata.WorkflowDeleteRequest{} } - if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14726,7 +16656,7 @@ func (m *Shard) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SrvVSchema) UnmarshalVT(dAtA []byte) error { +func (m *WorkflowSwitchTrafficRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14749,15 +16679,15 @@ func (m *SrvVSchema) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SrvVSchema: wiretype end group for non-group") + return fmt.Errorf("proto: WorkflowSwitchTrafficRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SrvVSchema: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: WorkflowSwitchTrafficRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14785,47 +16715,11 @@ func (m *SrvVSchema) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cell = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Cluster == nil { - m.Cluster = &Cluster{} - } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SrvVSchema", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14852,10 +16746,10 @@ func (m *SrvVSchema) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SrvVSchema == nil { - m.SrvVSchema = &vschema.SrvVSchema{} + if m.Request == nil { + m.Request = &vtctldata.WorkflowSwitchTrafficRequest{} } - if err := m.SrvVSchema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14881,7 +16775,7 @@ func (m *SrvVSchema) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Tablet) UnmarshalVT(dAtA []byte) error { +func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14904,17 +16798,17 @@ func (m *Tablet) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Tablet: wiretype end group for non-group") + return fmt.Errorf("proto: ApplySchemaRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Tablet: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ApplySchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -14924,33 +16818,29 @@ func (m *Tablet) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} - } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -14960,33 +16850,29 @@ func (m *Tablet) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Tablet == nil { - m.Tablet = &topodata.Tablet{} - } - if err := m.Tablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Sql = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) } - m.State = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -14996,16 +16882,29 @@ func (m *Tablet) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= Tablet_ServingState(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CallerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FQDN", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -15015,23 +16914,27 @@ func (m *Tablet) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.FQDN = string(dAtA[iNdEx:postIndex]) + if m.Request == nil { + m.Request = &vtctldata.ApplySchemaRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -15055,7 +16958,7 @@ func (m *Tablet) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VSchema) UnmarshalVT(dAtA []byte) error { +func (m *CancelSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15078,51 +16981,15 @@ func (m *VSchema) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VSchema: wiretype end group for non-group") + return fmt.Errorf("proto: CancelSchemaMigrationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VSchema: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CancelSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Cluster == nil { - m.Cluster = &Cluster{} - } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -15150,11 +17017,11 @@ func (m *VSchema) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VSchema", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15181,10 +17048,10 @@ func (m *VSchema) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.VSchema == nil { - m.VSchema = &vschema.Keyspace{} + if m.Request == nil { + m.Request = &vtctldata.CancelSchemaMigrationRequest{} } - if err := m.VSchema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15210,7 +17077,7 @@ func (m *VSchema) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Vtctld) UnmarshalVT(dAtA []byte) error { +func (m *CleanupSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15233,15 +17100,15 @@ func (m *Vtctld) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Vtctld: wiretype end group for non-group") + return fmt.Errorf("proto: CleanupSchemaMigrationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Vtctld: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CleanupSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -15269,11 +17136,11 @@ func (m *Vtctld) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Hostname = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15300,45 +17167,13 @@ func (m *Vtctld) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} + if m.Request == nil { + m.Request = &vtctldata.CleanupSchemaMigrationRequest{} } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FQDN", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FQDN = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -15361,7 +17196,7 @@ func (m *Vtctld) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VTGate) UnmarshalVT(dAtA []byte) error { +func (m *CompleteSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15384,15 +17219,15 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VTGate: wiretype end group for non-group") + return fmt.Errorf("proto: CompleteSchemaMigrationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VTGate: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CompleteSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -15420,13 +17255,13 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Hostname = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -15436,27 +17271,82 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Pool = string(dAtA[iNdEx:postIndex]) + if m.Request == nil { + m.Request = &vtctldata.CompleteSchemaMigrationRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 3: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConcludeTransactionRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ConcludeTransactionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConcludeTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -15484,13 +17374,13 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cell = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -15500,31 +17390,78 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} + m.Dtid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 5: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateKeyspaceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -15552,13 +17489,13 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspaces = append(m.Keyspaces, string(dAtA[iNdEx:postIndex])) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 6: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FQDN", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -15568,23 +17505,27 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.FQDN = string(dAtA[iNdEx:postIndex]) + if m.Options == nil { + m.Options = &vtctldata.CreateKeyspaceRequest{} + } + if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -15608,7 +17549,7 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Workflow) UnmarshalVT(dAtA []byte) error { +func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15631,15 +17572,15 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Workflow: wiretype end group for non-group") + return fmt.Errorf("proto: CreateKeyspaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Workflow: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15666,16 +17607,67 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} + if m.Keyspace == nil { + m.Keyspace = &Keyspace{} } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateShardRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -15703,11 +17695,11 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15734,10 +17726,10 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Workflow == nil { - m.Workflow = &vtctldata.Workflow{} + if m.Options == nil { + m.Options = &vtctldata.CreateShardRequest{} } - if err := m.Workflow.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15763,7 +17755,7 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *WorkflowDeleteRequest) UnmarshalVT(dAtA []byte) error { +func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15786,10 +17778,10 @@ func (m *WorkflowDeleteRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WorkflowDeleteRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteKeyspaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -15826,7 +17818,7 @@ func (m *WorkflowDeleteRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15853,10 +17845,10 @@ func (m *WorkflowDeleteRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Request == nil { - m.Request = &vtctldata.WorkflowDeleteRequest{} + if m.Options == nil { + m.Options = &vtctldata.DeleteKeyspaceRequest{} } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15882,7 +17874,7 @@ func (m *WorkflowDeleteRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *WorkflowSwitchTrafficRequest) UnmarshalVT(dAtA []byte) error { +func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15905,10 +17897,10 @@ func (m *WorkflowSwitchTrafficRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WorkflowSwitchTrafficRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteShardsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowSwitchTrafficRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteShardsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -15945,7 +17937,7 @@ func (m *WorkflowSwitchTrafficRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15972,10 +17964,10 @@ func (m *WorkflowSwitchTrafficRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Request == nil { - m.Request = &vtctldata.WorkflowSwitchTrafficRequest{} + if m.Options == nil { + m.Options = &vtctldata.DeleteShardsRequest{} } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -16001,7 +17993,7 @@ func (m *WorkflowSwitchTrafficRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { +func (m *DeleteTabletRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16024,17 +18016,17 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ApplySchemaRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteTabletRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ApplySchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -16044,27 +18036,31 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + if m.Alias == nil { + m.Alias = &topodata.TabletAlias{} + } + if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16092,11 +18088,82 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Sql = string(dAtA[iNdEx:postIndex]) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowPrimary", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllowPrimary = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteTabletResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteTabletResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteTabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16124,11 +18191,11 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CallerId = string(dAtA[iNdEx:postIndex]) + m.Status = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16155,10 +18222,10 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Request == nil { - m.Request = &vtctldata.ApplySchemaRequest{} + if m.Cluster == nil { + m.Cluster = &Cluster{} } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -16184,7 +18251,7 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CancelSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { +func (m *EmergencyFailoverShardRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16207,10 +18274,10 @@ func (m *CancelSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CancelSchemaMigrationRequest: wiretype end group for non-group") + return fmt.Errorf("proto: EmergencyFailoverShardRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CancelSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EmergencyFailoverShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -16247,7 +18314,7 @@ func (m *CancelSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16274,10 +18341,10 @@ func (m *CancelSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Request == nil { - m.Request = &vtctldata.CancelSchemaMigrationRequest{} + if m.Options == nil { + m.Options = &vtctldata.EmergencyReparentShardRequest{} } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -16303,7 +18370,7 @@ func (m *CancelSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CleanupSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { +func (m *EmergencyFailoverShardResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16326,15 +18393,51 @@ func (m *CleanupSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CleanupSchemaMigrationRequest: wiretype end group for non-group") + return fmt.Errorf("proto: EmergencyFailoverShardResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CleanupSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EmergencyFailoverShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16362,11 +18465,43 @@ func (m *CleanupSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Shard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PromotedPrimary", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16393,10 +18528,44 @@ func (m *CleanupSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Request == nil { - m.Request = &vtctldata.CleanupSchemaMigrationRequest{} + if m.PromotedPrimary == nil { + m.PromotedPrimary = &topodata.TabletAlias{} } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PromotedPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Events = append(m.Events, &logutil.Event{}) + if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -16422,7 +18591,7 @@ func (m *CleanupSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CompleteSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { +func (m *FindSchemaRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16445,15 +18614,15 @@ func (m *CompleteSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CompleteSchemaMigrationRequest: wiretype end group for non-group") + return fmt.Errorf("proto: FindSchemaRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CompleteSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: FindSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16481,11 +18650,43 @@ func (m *CompleteSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.Table = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableSizeOptions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16512,10 +18713,10 @@ func (m *CompleteSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Request == nil { - m.Request = &vtctldata.CompleteSchemaMigrationRequest{} + if m.TableSizeOptions == nil { + m.TableSizeOptions = &GetSchemaTableSizeOptions{} } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TableSizeOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -16541,7 +18742,7 @@ func (m *CompleteSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ConcludeTransactionRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16564,15 +18765,15 @@ func (m *ConcludeTransactionRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ConcludeTransactionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetBackupsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ConcludeTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetBackupsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16600,11 +18801,11 @@ func (m *ConcludeTransactionRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16629,65 +18830,14 @@ func (m *ConcludeTransactionRequest) UnmarshalVT(dAtA []byte) error { if postIndex < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Dtid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateKeyspaceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspaces = append(m.Keyspaces, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceShards", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16715,11 +18865,11 @@ func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.KeyspaceShards = append(m.KeyspaceShards, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 2: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RequestOptions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16746,10 +18896,10 @@ func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Options == nil { - m.Options = &vtctldata.CreateKeyspaceRequest{} + if m.RequestOptions == nil { + m.RequestOptions = &vtctldata.GetBackupsRequest{} } - if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.RequestOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -16775,7 +18925,7 @@ func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetBackupsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16798,15 +18948,15 @@ func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateKeyspaceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetBackupsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetBackupsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Backups", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16833,10 +18983,8 @@ func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Keyspace == nil { - m.Keyspace = &Keyspace{} - } - if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Backups = append(m.Backups, &ClusterBackup{}) + if err := m.Backups[len(m.Backups)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -16862,7 +19010,7 @@ func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetCellInfosRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16885,15 +19033,15 @@ func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetCellInfosRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetCellInfosRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16921,13 +19069,13 @@ func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -16937,28 +19085,44 @@ func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Options == nil { - m.Options = &vtctldata.CreateShardRequest{} + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NamesOnly", wireType) } - if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex + m.NamesOnly = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -16981,7 +19145,7 @@ func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetCellInfosResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17004,47 +19168,15 @@ func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetCellInfosResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetCellInfosResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CellInfos", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17071,10 +19203,8 @@ func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Options == nil { - m.Options = &vtctldata.DeleteKeyspaceRequest{} - } - if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.CellInfos = append(m.CellInfos, &ClusterCellInfo{}) + if err := m.CellInfos[len(m.CellInfos)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -17100,7 +19230,7 @@ func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetCellsAliasesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17123,15 +19253,15 @@ func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteShardsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetCellsAliasesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteShardsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetCellsAliasesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -17159,43 +19289,7 @@ func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Options == nil { - m.Options = &vtctldata.DeleteShardsRequest{} - } - if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -17219,7 +19313,7 @@ func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteTabletRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetCellsAliasesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17242,15 +19336,15 @@ func (m *DeleteTabletRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteTabletRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetCellsAliasesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetCellsAliasesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Aliases", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17270,72 +19364,18 @@ func (m *DeleteTabletRequest) UnmarshalVT(dAtA []byte) error { if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Alias == nil { - m.Alias = &topodata.TabletAlias{} - } - if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowPrimary", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowPrimary = bool(v != 0) + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Aliases = append(m.Aliases, &ClusterCellsAliases{}) + if err := m.Aliases[len(m.Aliases)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -17358,7 +19398,7 @@ func (m *DeleteTabletRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteTabletResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetClustersRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17381,47 +19421,66 @@ func (m *DeleteTabletResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteTabletResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetClustersRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteTabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetClustersRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetClustersResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Status = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetClustersResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetClustersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Clusters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17448,10 +19507,8 @@ func (m *DeleteTabletResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} - } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Clusters = append(m.Clusters, &Cluster{}) + if err := m.Clusters[len(m.Clusters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -17477,7 +19534,7 @@ func (m *DeleteTabletResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *EmergencyFailoverShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetFullStatusRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17500,10 +19557,10 @@ func (m *EmergencyFailoverShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EmergencyFailoverShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetFullStatusRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EmergencyFailoverShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetFullStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -17540,7 +19597,7 @@ func (m *EmergencyFailoverShardRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17567,10 +19624,10 @@ func (m *EmergencyFailoverShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Options == nil { - m.Options = &vtctldata.EmergencyReparentShardRequest{} + if m.Alias == nil { + m.Alias = &topodata.TabletAlias{} } - if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -17596,7 +19653,7 @@ func (m *EmergencyFailoverShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *EmergencyFailoverShardResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetGatesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17619,51 +19676,15 @@ func (m *EmergencyFailoverShardResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EmergencyFailoverShardResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetGatesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EmergencyFailoverShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetGatesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Cluster == nil { - m.Cluster = &Cluster{} - } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -17691,79 +19712,62 @@ func (m *EmergencyFailoverShardResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PromotedPrimary", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetGatesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.PromotedPrimary == nil { - m.PromotedPrimary = &topodata.TabletAlias{} - } - if err := m.PromotedPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 5: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetGatesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetGatesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Gates", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17790,8 +19794,8 @@ func (m *EmergencyFailoverShardResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Events = append(m.Events, &logutil.Event{}) - if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Gates = append(m.Gates, &VTGate{}) + if err := m.Gates[len(m.Gates)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -17817,7 +19821,7 @@ func (m *EmergencyFailoverShardResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *FindSchemaRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetKeyspaceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17840,15 +19844,15 @@ func (m *FindSchemaRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: FindSchemaRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetKeyspaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: FindSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -17876,11 +19880,11 @@ func (m *FindSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Table = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -17908,13 +19912,64 @@ func (m *FindSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetKeyspacesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetKeyspacesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetKeyspacesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableSizeOptions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -17924,27 +19979,23 @@ func (m *FindSchemaRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.TableSizeOptions == nil { - m.TableSizeOptions = &GetSchemaTableSizeOptions{} - } - if err := m.TableSizeOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -17968,7 +20019,7 @@ func (m *FindSchemaRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetKeyspacesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17991,17 +20042,17 @@ func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetBackupsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetKeyspacesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetBackupsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetKeyspacesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -18011,27 +20062,80 @@ func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.Keyspaces = append(m.Keyspaces, &Keyspace{}) + if err := m.Keyspaces[len(m.Keyspaces)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetSchemaRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetSchemaRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -18059,11 +20163,11 @@ func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspaces = append(m.Keyspaces, string(dAtA[iNdEx:postIndex])) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceShards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -18091,13 +20195,13 @@ func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.KeyspaceShards = append(m.KeyspaceShards, string(dAtA[iNdEx:postIndex])) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestOptions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -18107,82 +20211,27 @@ func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.RequestOptions == nil { - m.RequestOptions = &vtctldata.GetBackupsRequest{} - } - if err := m.RequestOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetBackupsResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetBackupsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetBackupsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Table = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Backups", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TableSizeOptions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -18209,8 +20258,10 @@ func (m *GetBackupsResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Backups = append(m.Backups, &ClusterBackup{}) - if err := m.Backups[len(m.Backups)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.TableSizeOptions == nil { + m.TableSizeOptions = &GetSchemaTableSizeOptions{} + } + if err := m.TableSizeOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -18236,7 +20287,7 @@ func (m *GetBackupsResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetCellInfosRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetSchemasRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18259,10 +20310,10 @@ func (m *GetCellInfosRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetCellInfosRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetSchemasRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetCellInfosRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSchemasRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -18299,9 +20350,9 @@ func (m *GetCellInfosRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TableSizeOptions", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -18311,44 +20362,28 @@ func (m *GetCellInfosRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NamesOnly", wireType) + if m.TableSizeOptions == nil { + m.TableSizeOptions = &GetSchemaTableSizeOptions{} } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.TableSizeOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.NamesOnly = bool(v != 0) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -18371,7 +20406,7 @@ func (m *GetCellInfosRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetCellInfosResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetSchemasResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18394,15 +20429,15 @@ func (m *GetCellInfosResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetCellInfosResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetSchemasResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetCellInfosResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSchemasResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CellInfos", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Schemas", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -18429,8 +20464,8 @@ func (m *GetCellInfosResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CellInfos = append(m.CellInfos, &ClusterCellInfo{}) - if err := m.CellInfos[len(m.CellInfos)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Schemas = append(m.Schemas, &Schema{}) + if err := m.Schemas[len(m.Schemas)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -18456,7 +20491,7 @@ func (m *GetCellInfosResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetCellsAliasesRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetSchemaMigrationsRequest_ClusterRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18479,15 +20514,15 @@ func (m *GetCellsAliasesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetCellsAliasesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetSchemaMigrationsRequest_ClusterRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetCellsAliasesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSchemaMigrationsRequest_ClusterRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -18515,7 +20550,43 @@ func (m *GetCellsAliasesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Request == nil { + m.Request = &vtctldata.GetSchemaMigrationsRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -18539,7 +20610,7 @@ func (m *GetCellsAliasesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetCellsAliasesResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetSchemaMigrationsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18562,15 +20633,15 @@ func (m *GetCellsAliasesResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetCellsAliasesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetSchemaMigrationsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetCellsAliasesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSchemaMigrationsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Aliases", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterRequests", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -18597,8 +20668,8 @@ func (m *GetCellsAliasesResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Aliases = append(m.Aliases, &ClusterCellsAliases{}) - if err := m.Aliases[len(m.Aliases)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.ClusterRequests = append(m.ClusterRequests, &GetSchemaMigrationsRequest_ClusterRequest{}) + if err := m.ClusterRequests[len(m.ClusterRequests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -18624,58 +20695,7 @@ func (m *GetCellsAliasesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetClustersRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetClustersRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetClustersRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetClustersResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetSchemaMigrationsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18698,15 +20718,15 @@ func (m *GetClustersResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetClustersResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetSchemaMigrationsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetClustersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSchemaMigrationsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Clusters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SchemaMigrations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -18733,8 +20753,8 @@ func (m *GetClustersResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Clusters = append(m.Clusters, &Cluster{}) - if err := m.Clusters[len(m.Clusters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.SchemaMigrations = append(m.SchemaMigrations, &SchemaMigration{}) + if err := m.SchemaMigrations[len(m.SchemaMigrations)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -18760,7 +20780,7 @@ func (m *GetClustersResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetFullStatusRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetShardReplicationPositionsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18783,15 +20803,15 @@ func (m *GetFullStatusRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetFullStatusRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetShardReplicationPositionsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetFullStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetShardReplicationPositionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -18819,13 +20839,13 @@ func (m *GetFullStatusRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -18835,27 +20855,55 @@ func (m *GetFullStatusRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Alias == nil { - m.Alias = &topodata.TabletAlias{} + m.Keyspaces = append(m.Keyspaces, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceShards", wireType) } - if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF } + m.KeyspaceShards = append(m.KeyspaceShards, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -18879,7 +20927,7 @@ func (m *GetFullStatusRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetGatesRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetShardReplicationPositionsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18902,17 +20950,17 @@ func (m *GetGatesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetGatesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetShardReplicationPositionsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetGatesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetShardReplicationPositionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReplicationPositions", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -18922,23 +20970,25 @@ func (m *GetGatesRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.ReplicationPositions = append(m.ReplicationPositions, &ClusterShardReplicationPosition{}) + if err := m.ReplicationPositions[len(m.ReplicationPositions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -18962,7 +21012,7 @@ func (m *GetGatesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetGatesResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetSrvKeyspaceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18985,17 +21035,17 @@ func (m *GetGatesResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetGatesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetSrvKeyspaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetGatesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSrvKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Gates", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -19005,25 +21055,87 @@ func (m *GetGatesResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Gates = append(m.Gates, &VTGate{}) - if err := m.Gates[len(m.Gates)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -19047,7 +21159,7 @@ func (m *GetGatesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetSrvKeyspacesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19070,15 +21182,15 @@ func (m *GetKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetSrvKeyspacesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSrvKeyspacesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -19106,11 +21218,11 @@ func (m *GetKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -19138,7 +21250,7 @@ func (m *GetKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -19162,7 +21274,7 @@ func (m *GetKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetKeyspacesRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetSrvKeyspacesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19185,17 +21297,17 @@ func (m *GetKeyspacesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetKeyspacesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetSrvKeyspacesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetKeyspacesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSrvKeyspacesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SrvKeyspaces", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -19205,23 +21317,120 @@ func (m *GetKeyspacesRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + if m.SrvKeyspaces == nil { + m.SrvKeyspaces = make(map[string]*vtctldata.GetSrvKeyspacesResponse) + } + var mapkey string + var mapvalue *vtctldata.GetSrvKeyspacesResponse + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &vtctldata.GetSrvKeyspacesResponse{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.SrvKeyspaces[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -19245,7 +21454,7 @@ func (m *GetKeyspacesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetKeyspacesResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19268,17 +21477,49 @@ func (m *GetKeyspacesResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetKeyspacesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetSrvVSchemaRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetKeyspacesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSrvVSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -19288,25 +21529,23 @@ func (m *GetKeyspacesResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspaces = append(m.Keyspaces, &Keyspace{}) - if err := m.Keyspaces[len(m.Keyspaces)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Cell = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -19330,7 +21569,7 @@ func (m *GetKeyspacesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSchemaRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetSrvVSchemasRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19353,15 +21592,15 @@ func (m *GetSchemaRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSchemaRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetSrvVSchemasRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSrvVSchemasRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -19389,11 +21628,11 @@ func (m *GetSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -19421,43 +21660,62 @@ func (m *GetSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetSrvVSchemasResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Table = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetSrvVSchemasResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetSrvVSchemasResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableSizeOptions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SrvVSchemas", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -19484,10 +21742,8 @@ func (m *GetSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TableSizeOptions == nil { - m.TableSizeOptions = &GetSchemaTableSizeOptions{} - } - if err := m.TableSizeOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.SrvVSchemas = append(m.SrvVSchemas, &SrvVSchema{}) + if err := m.SrvVSchemas[len(m.SrvVSchemas)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -19513,7 +21769,7 @@ func (m *GetSchemaRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSchemasRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetSchemaTableSizeOptions) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19536,17 +21792,17 @@ func (m *GetSchemasRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSchemasRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetSchemaTableSizeOptions: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSchemasRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSchemaTableSizeOptions: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregateSizes", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -19556,29 +21812,17 @@ func (m *GetSchemasRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex + m.AggregateSizes = bool(v != 0) case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableSizeOptions", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeNonServingShards", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -19588,28 +21832,12 @@ func (m *GetSchemasRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TableSizeOptions == nil { - m.TableSizeOptions = &GetSchemaTableSizeOptions{} - } - if err := m.TableSizeOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.IncludeNonServingShards = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -19632,7 +21860,7 @@ func (m *GetSchemasRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSchemasResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetTabletRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19655,15 +21883,15 @@ func (m *GetSchemasResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSchemasResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetTabletRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSchemasResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Schemas", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -19690,11 +21918,45 @@ func (m *GetSchemasResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Schemas = append(m.Schemas, &Schema{}) - if err := m.Schemas[len(m.Schemas)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Alias == nil { + m.Alias = &topodata.TabletAlias{} + } + if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -19717,7 +21979,7 @@ func (m *GetSchemasResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSchemaMigrationsRequest_ClusterRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetTabletsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19740,49 +22002,17 @@ func (m *GetSchemaMigrationsRequest_ClusterRequest) UnmarshalVT(dAtA []byte) err fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSchemaMigrationsRequest_ClusterRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetTabletsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSchemaMigrationsRequest_ClusterRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetTabletsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -19792,27 +22022,23 @@ func (m *GetSchemaMigrationsRequest_ClusterRequest) UnmarshalVT(dAtA []byte) err } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Request == nil { - m.Request = &vtctldata.GetSchemaMigrationsRequest{} - } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -19836,7 +22062,7 @@ func (m *GetSchemaMigrationsRequest_ClusterRequest) UnmarshalVT(dAtA []byte) err } return nil } -func (m *GetSchemaMigrationsRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetTabletsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19859,15 +22085,15 @@ func (m *GetSchemaMigrationsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSchemaMigrationsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetTabletsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSchemaMigrationsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetTabletsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterRequests", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tablets", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -19894,8 +22120,8 @@ func (m *GetSchemaMigrationsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterRequests = append(m.ClusterRequests, &GetSchemaMigrationsRequest_ClusterRequest{}) - if err := m.ClusterRequests[len(m.ClusterRequests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Tablets = append(m.Tablets, &Tablet{}) + if err := m.Tablets[len(m.Tablets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -19921,7 +22147,7 @@ func (m *GetSchemaMigrationsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSchemaMigrationsResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetTopologyPathRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19944,17 +22170,17 @@ func (m *GetSchemaMigrationsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSchemaMigrationsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetTopologyPathRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSchemaMigrationsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetTopologyPathRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SchemaMigrations", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -19964,25 +22190,55 @@ func (m *GetSchemaMigrationsResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.SchemaMigrations = append(m.SchemaMigrations, &SchemaMigration{}) - if err := m.SchemaMigrations[len(m.SchemaMigrations)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF } + m.Path = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -20006,7 +22262,7 @@ func (m *GetSchemaMigrationsResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetShardReplicationPositionsRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetTransactionInfoRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20029,15 +22285,15 @@ func (m *GetShardReplicationPositionsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetShardReplicationPositionsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetTransactionInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetShardReplicationPositionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetTransactionInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20065,13 +22321,13 @@ func (m *GetShardReplicationPositionsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -20081,55 +22337,27 @@ func (m *GetShardReplicationPositionsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspaces = append(m.Keyspaces, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceShards", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if m.Request == nil { + m.Request = &vtctldata.GetTransactionInfoRequest{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.KeyspaceShards = append(m.KeyspaceShards, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -20153,7 +22381,7 @@ func (m *GetShardReplicationPositionsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetShardReplicationPositionsResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetUnresolvedTransactionsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20176,17 +22404,17 @@ func (m *GetShardReplicationPositionsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetShardReplicationPositionsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetUnresolvedTransactionsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetShardReplicationPositionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetUnresolvedTransactionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationPositions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -20196,26 +22424,75 @@ func (m *GetShardReplicationPositionsResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ReplicationPositions = append(m.ReplicationPositions, &ClusterShardReplicationPosition{}) - if err := m.ReplicationPositions[len(m.ReplicationPositions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AbandonAge", wireType) + } + m.AbandonAge = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AbandonAge |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -20238,7 +22515,7 @@ func (m *GetShardReplicationPositionsResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSrvKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetVSchemaRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20261,10 +22538,10 @@ func (m *GetSrvKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSrvKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetVSchemaRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetVSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -20331,9 +22608,60 @@ func (m *GetSrvKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetVSchemasRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetVSchemasRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetVSchemasRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20361,7 +22689,7 @@ func (m *GetSrvKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -20385,7 +22713,7 @@ func (m *GetSrvKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSrvKeyspacesRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetVSchemasResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20408,17 +22736,17 @@ func (m *GetSrvKeyspacesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSrvKeyspacesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetVSchemasResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvKeyspacesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetVSchemasResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchemas", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -20428,27 +22756,80 @@ func (m *GetSrvKeyspacesRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.VSchemas = append(m.VSchemas, &VSchema{}) + if err := m.VSchemas[len(m.VSchemas)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetVtctldsRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetVtctldsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetVtctldsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20476,7 +22857,7 @@ func (m *GetSrvKeyspacesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -20500,7 +22881,7 @@ func (m *GetSrvKeyspacesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSrvKeyspacesResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetVtctldsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20523,15 +22904,15 @@ func (m *GetSrvKeyspacesResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSrvKeyspacesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetVtctldsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvKeyspacesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetVtctldsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SrvKeyspaces", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vtctlds", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -20558,105 +22939,10 @@ func (m *GetSrvKeyspacesResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SrvKeyspaces == nil { - m.SrvKeyspaces = make(map[string]*vtctldata.GetSrvKeyspacesResponse) - } - var mapkey string - var mapvalue *vtctldata.GetSrvKeyspacesResponse - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &vtctldata.GetSrvKeyspacesResponse{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + m.Vtctlds = append(m.Vtctlds, &Vtctld{}) + if err := m.Vtctlds[len(m.Vtctlds)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.SrvKeyspaces[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -20680,7 +22966,7 @@ func (m *GetSrvKeyspacesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetWorkflowRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20703,10 +22989,10 @@ func (m *GetSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSrvVSchemaRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetWorkflowRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvVSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -20743,7 +23029,39 @@ func (m *GetSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20771,8 +23089,28 @@ func (m *GetSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cell = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActiveOnly = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -20795,7 +23133,7 @@ func (m *GetSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSrvVSchemasRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetWorkflowStatusRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20818,15 +23156,15 @@ func (m *GetSrvVSchemasRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSrvVSchemasRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetWorkflowStatusRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvVSchemasRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetWorkflowStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20854,11 +23192,11 @@ func (m *GetSrvVSchemasRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20886,64 +23224,13 @@ func (m *GetSrvVSchemasRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetSrvVSchemasResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetSrvVSchemasResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvVSchemasResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SrvVSchemas", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -20953,25 +23240,23 @@ func (m *GetSrvVSchemasResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.SrvVSchemas = append(m.SrvVSchemas, &SrvVSchema{}) - if err := m.SrvVSchemas[len(m.SrvVSchemas)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -20995,7 +23280,7 @@ func (m *GetSrvVSchemasResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSchemaTableSizeOptions) UnmarshalVT(dAtA []byte) error { +func (m *StartWorkflowRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21018,17 +23303,17 @@ func (m *GetSchemaTableSizeOptions) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSchemaTableSizeOptions: wiretype end group for non-group") + return fmt.Errorf("proto: StartWorkflowRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSchemaTableSizeOptions: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StartWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregateSizes", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -21038,17 +23323,29 @@ func (m *GetSchemaTableSizeOptions) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.AggregateSizes = bool(v != 0) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeNonServingShards", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -21058,12 +23355,56 @@ func (m *GetSchemaTableSizeOptions) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IncludeNonServingShards = bool(v != 0) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Workflow = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -21086,7 +23427,7 @@ func (m *GetSchemaTableSizeOptions) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetTabletRequest) UnmarshalVT(dAtA []byte) error { +func (m *StopWorkflowRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21109,51 +23450,15 @@ func (m *GetTabletRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetTabletRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StopWorkflowRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StopWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Alias == nil { - m.Alias = &topodata.TabletAlias{} - } - if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -21181,62 +23486,43 @@ func (m *GetTabletRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetTabletsRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetTabletsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetTabletsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -21264,7 +23550,7 @@ func (m *GetTabletsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.Workflow = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -21288,7 +23574,7 @@ func (m *GetTabletsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetTabletsResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetWorkflowsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21311,17 +23597,17 @@ func (m *GetTabletsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetTabletsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetWorkflowsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetTabletsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetWorkflowsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablets", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -21331,80 +23617,47 @@ func (m *GetTabletsResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Tablets = append(m.Tablets, &Tablet{}) - if err := m.Tablets[len(m.Tablets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetTopologyPathRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveOnly", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetTopologyPathRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetTopologyPathRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.ActiveOnly = bool(v != 0) + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -21432,11 +23685,11 @@ func (m *GetTopologyPathRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.Keyspaces = append(m.Keyspaces, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 2: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IgnoreKeyspaces", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -21464,7 +23717,7 @@ func (m *GetTopologyPathRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Path = string(dAtA[iNdEx:postIndex]) + m.IgnoreKeyspaces = append(m.IgnoreKeyspaces, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -21488,7 +23741,7 @@ func (m *GetTopologyPathRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetTransactionInfoRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetWorkflowsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21511,17 +23764,17 @@ func (m *GetTransactionInfoRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetTransactionInfoRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetWorkflowsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetTransactionInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetWorkflowsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WorkflowsByCluster", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -21531,59 +23784,120 @@ func (m *GetTransactionInfoRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + if m.WorkflowsByCluster == nil { + m.WorkflowsByCluster = make(map[string]*ClusterWorkflows) } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var mapkey string + var mapvalue *ClusterWorkflows + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &ClusterWorkflows{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &vtctldata.GetTransactionInfoRequest{} - } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.WorkflowsByCluster[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -21607,7 +23921,7 @@ func (m *GetTransactionInfoRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetUnresolvedTransactionsRequest) UnmarshalVT(dAtA []byte) error { +func (m *LaunchSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21630,10 +23944,10 @@ func (m *GetUnresolvedTransactionsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetUnresolvedTransactionsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: LaunchSchemaMigrationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetUnresolvedTransactionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LaunchSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21670,9 +23984,9 @@ func (m *GetUnresolvedTransactionsRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -21682,43 +23996,28 @@ func (m *GetUnresolvedTransactionsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AbandonAge", wireType) + if m.Request == nil { + m.Request = &vtctldata.LaunchSchemaMigrationRequest{} } - m.AbandonAge = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AbandonAge |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -21741,7 +24040,7 @@ func (m *GetUnresolvedTransactionsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetVSchemaRequest) UnmarshalVT(dAtA []byte) error { +func (m *MaterializeCreateRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21764,10 +24063,10 @@ func (m *GetVSchemaRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetVSchemaRequest: wiretype end group for non-group") + return fmt.Errorf("proto: MaterializeCreateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetVSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MaterializeCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21804,7 +24103,7 @@ func (m *GetVSchemaRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TableSettings", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -21832,64 +24131,13 @@ func (m *GetVSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.TableSettings = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetVSchemasRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetVSchemasRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetVSchemasRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -21899,23 +24147,27 @@ func (m *GetVSchemasRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + if m.Request == nil { + m.Request = &vtctldata.MaterializeCreateRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -21939,7 +24191,7 @@ func (m *GetVSchemasRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetVSchemasResponse) UnmarshalVT(dAtA []byte) error { +func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21962,17 +24214,17 @@ func (m *GetVSchemasResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetVSchemasResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MoveTablesCompleteRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetVSchemasResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MoveTablesCompleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VSchemas", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -21982,82 +24234,29 @@ func (m *GetVSchemasResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.VSchemas = append(m.VSchemas, &VSchema{}) - if err := m.VSchemas[len(m.VSchemas)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetVtctldsRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetVtctldsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetVtctldsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -22067,23 +24266,27 @@ func (m *GetVtctldsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + if m.Request == nil { + m.Request = &vtctldata.MoveTablesCompleteRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -22107,7 +24310,7 @@ func (m *GetVtctldsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetVtctldsResponse) UnmarshalVT(dAtA []byte) error { +func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22130,15 +24333,47 @@ func (m *GetVtctldsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetVtctldsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MoveTablesCreateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetVtctldsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MoveTablesCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vtctlds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -22165,8 +24400,10 @@ func (m *GetVtctldsResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Vtctlds = append(m.Vtctlds, &Vtctld{}) - if err := m.Vtctlds[len(m.Vtctlds)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Request == nil { + m.Request = &vtctldata.MoveTablesCreateRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -22192,7 +24429,7 @@ func (m *GetVtctldsResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetWorkflowRequest) UnmarshalVT(dAtA []byte) error { +func (m *PingTabletRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22215,17 +24452,17 @@ func (m *GetWorkflowRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetWorkflowRequest: wiretype end group for non-group") + return fmt.Errorf("proto: PingTabletRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PingTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -22235,59 +24472,31 @@ func (m *GetWorkflowRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if m.Alias == nil { + m.Alias = &topodata.TabletAlias{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -22315,28 +24524,8 @@ func (m *GetWorkflowRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ActiveOnly = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -22359,7 +24548,7 @@ func (m *GetWorkflowRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetWorkflowStatusRequest) UnmarshalVT(dAtA []byte) error { +func (m *PingTabletResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22382,15 +24571,15 @@ func (m *GetWorkflowStatusRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetWorkflowStatusRequest: wiretype end group for non-group") + return fmt.Errorf("proto: PingTabletResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetWorkflowStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PingTabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -22418,13 +24607,13 @@ func (m *GetWorkflowStatusRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.Status = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -22434,55 +24623,27 @@ func (m *GetWorkflowStatusRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if m.Cluster == nil { + m.Cluster = &Cluster{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -22506,7 +24667,7 @@ func (m *GetWorkflowStatusRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *StartWorkflowRequest) UnmarshalVT(dAtA []byte) error { +func (m *PlannedFailoverShardRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22529,10 +24690,10 @@ func (m *StartWorkflowRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StartWorkflowRequest: wiretype end group for non-group") + return fmt.Errorf("proto: PlannedFailoverShardRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StartWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PlannedFailoverShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22569,9 +24730,9 @@ func (m *StartWorkflowRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -22581,55 +24742,27 @@ func (m *StartWorkflowRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if m.Options == nil { + m.Options = &vtctldata.PlannedReparentShardRequest{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Workflow = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -22653,7 +24786,7 @@ func (m *StartWorkflowRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *StopWorkflowRequest) UnmarshalVT(dAtA []byte) error { +func (m *PlannedFailoverShardResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22676,15 +24809,51 @@ func (m *StopWorkflowRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StopWorkflowRequest: wiretype end group for non-group") + return fmt.Errorf("proto: PlannedFailoverShardResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StopWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PlannedFailoverShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -22712,11 +24881,11 @@ func (m *StopWorkflowRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -22744,13 +24913,13 @@ func (m *StopWorkflowRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PromotedPrimary", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -22760,23 +24929,61 @@ func (m *StopWorkflowRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Workflow = string(dAtA[iNdEx:postIndex]) + if m.PromotedPrimary == nil { + m.PromotedPrimary = &topodata.TabletAlias{} + } + if err := m.PromotedPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Events = append(m.Events, &logutil.Event{}) + if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -22800,7 +25007,7 @@ func (m *StopWorkflowRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetWorkflowsRequest) UnmarshalVT(dAtA []byte) error { +func (m *RebuildKeyspaceGraphRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22823,15 +25030,15 @@ func (m *GetWorkflowsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetWorkflowsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RebuildKeyspaceGraphRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetWorkflowsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RebuildKeyspaceGraphRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -22859,13 +25066,13 @@ func (m *GetWorkflowsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveOnly", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -22875,15 +25082,27 @@ func (m *GetWorkflowsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.ActiveOnly = bool(v != 0) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -22911,13 +25130,13 @@ func (m *GetWorkflowsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspaces = append(m.Keyspaces, string(dAtA[iNdEx:postIndex])) + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IgnoreKeyspaces", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowPartial", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -22927,24 +25146,12 @@ func (m *GetWorkflowsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IgnoreKeyspaces = append(m.IgnoreKeyspaces, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex + m.AllowPartial = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -22967,7 +25174,7 @@ func (m *GetWorkflowsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetWorkflowsResponse) UnmarshalVT(dAtA []byte) error { +func (m *RebuildKeyspaceGraphResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22990,17 +25197,17 @@ func (m *GetWorkflowsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetWorkflowsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: RebuildKeyspaceGraphResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetWorkflowsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RebuildKeyspaceGraphResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowsByCluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -23009,121 +25216,24 @@ func (m *GetWorkflowsResponse) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowsByCluster == nil { - m.WorkflowsByCluster = make(map[string]*ClusterWorkflows) - } - var mapkey string - var mapvalue *ClusterWorkflows - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ClusterWorkflows{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break } } - m.WorkflowsByCluster[mapkey] = mapvalue + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -23147,7 +25257,7 @@ func (m *GetWorkflowsResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *LaunchSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { +func (m *RefreshStateRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23170,17 +25280,17 @@ func (m *LaunchSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LaunchSchemaMigrationRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RefreshStateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LaunchSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RefreshStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -23190,29 +25300,33 @@ func (m *LaunchSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + if m.Alias == nil { + m.Alias = &topodata.TabletAlias{} + } + if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -23222,27 +25336,23 @@ func (m *LaunchSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Request == nil { - m.Request = &vtctldata.LaunchSchemaMigrationRequest{} - } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -23266,7 +25376,7 @@ func (m *LaunchSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MaterializeCreateRequest) UnmarshalVT(dAtA []byte) error { +func (m *RefreshStateResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23289,15 +25399,15 @@ func (m *MaterializeCreateRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MaterializeCreateRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RefreshStateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MaterializeCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RefreshStateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -23325,43 +25435,11 @@ func (m *MaterializeCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.Status = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableSettings", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TableSettings = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23388,10 +25466,10 @@ func (m *MaterializeCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Request == nil { - m.Request = &vtctldata.MaterializeCreateRequest{} + if m.Cluster == nil { + m.Cluster = &Cluster{} } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -23417,7 +25495,7 @@ func (m *MaterializeCreateRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { +func (m *ReloadSchemasRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23440,15 +25518,15 @@ func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MoveTablesCompleteRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ReloadSchemasRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MoveTablesCompleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReloadSchemasRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -23476,11 +25554,43 @@ func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.Keyspaces = append(m.Keyspaces, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceShards", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KeyspaceShards = append(m.KeyspaceShards, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tablets", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23507,67 +25617,65 @@ func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Request == nil { - m.Request = &vtctldata.MoveTablesCompleteRequest{} - } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Tablets = append(m.Tablets, &topodata.TabletAlias{}) + if err := m.Tablets[len(m.Tablets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Concurrency", wireType) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MoveTablesCreateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MoveTablesCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Concurrency = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Concurrency |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WaitPosition", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -23595,13 +25703,13 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.WaitPosition = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludePrimary", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -23611,28 +25719,12 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &vtctldata.MoveTablesCreateRequest{} - } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.IncludePrimary = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -23655,7 +25747,7 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *PingTabletRequest) UnmarshalVT(dAtA []byte) error { +func (m *ReloadSchemasResponse_KeyspaceResult) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23678,15 +25770,15 @@ func (m *PingTabletRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PingTabletRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ReloadSchemasResponse_KeyspaceResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PingTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReloadSchemasResponse_KeyspaceResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23713,18 +25805,18 @@ func (m *PingTabletRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Alias == nil { - m.Alias = &topodata.TabletAlias{} + if m.Keyspace == nil { + m.Keyspace = &Keyspace{} } - if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -23734,23 +25826,25 @@ func (m *PingTabletRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.Events = append(m.Events, &logutil.Event{}) + if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -23774,7 +25868,7 @@ func (m *PingTabletRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *PingTabletResponse) UnmarshalVT(dAtA []byte) error { +func (m *ReloadSchemasResponse_ShardResult) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23797,17 +25891,17 @@ func (m *PingTabletResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PingTabletResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ReloadSchemasResponse_ShardResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PingTabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReloadSchemasResponse_ShardResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -23817,27 +25911,31 @@ func (m *PingTabletResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Status = string(dAtA[iNdEx:postIndex]) + if m.Shard == nil { + m.Shard = &Shard{} + } + if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23864,10 +25962,8 @@ func (m *PingTabletResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} - } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Events = append(m.Events, &logutil.Event{}) + if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -23893,7 +25989,7 @@ func (m *PingTabletResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *PlannedFailoverShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *ReloadSchemasResponse_TabletResult) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23916,17 +26012,17 @@ func (m *PlannedFailoverShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PlannedFailoverShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ReloadSchemasResponse_TabletResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PlannedFailoverShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReloadSchemasResponse_TabletResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -23936,29 +26032,33 @@ func (m *PlannedFailoverShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + if m.Tablet == nil { + m.Tablet = &Tablet{} + } + if err := m.Tablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -23968,27 +26068,23 @@ func (m *PlannedFailoverShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Options == nil { - m.Options = &vtctldata.PlannedReparentShardRequest{} - } - if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Result = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -24012,7 +26108,7 @@ func (m *PlannedFailoverShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *PlannedFailoverShardResponse) UnmarshalVT(dAtA []byte) error { +func (m *ReloadSchemasResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24035,15 +26131,15 @@ func (m *PlannedFailoverShardResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PlannedFailoverShardResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ReloadSchemasResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PlannedFailoverShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReloadSchemasResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceResults", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -24070,80 +26166,14 @@ func (m *PlannedFailoverShardResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} - } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.KeyspaceResults = append(m.KeyspaceResults, &ReloadSchemasResponse_KeyspaceResult{}) + if err := m.KeyspaceResults[len(m.KeyspaceResults)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PromotedPrimary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ShardResults", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -24170,16 +26200,14 @@ func (m *PlannedFailoverShardResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.PromotedPrimary == nil { - m.PromotedPrimary = &topodata.TabletAlias{} - } - if err := m.PromotedPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.ShardResults = append(m.ShardResults, &ReloadSchemasResponse_ShardResult{}) + if err := m.ShardResults[len(m.ShardResults)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletResults", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -24206,8 +26234,8 @@ func (m *PlannedFailoverShardResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Events = append(m.Events, &logutil.Event{}) - if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.TabletResults = append(m.TabletResults, &ReloadSchemasResponse_TabletResult{}) + if err := m.TabletResults[len(m.TabletResults)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -24233,7 +26261,7 @@ func (m *PlannedFailoverShardResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RebuildKeyspaceGraphRequest) UnmarshalVT(dAtA []byte) error { +func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24256,15 +26284,47 @@ func (m *RebuildKeyspaceGraphRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RebuildKeyspaceGraphRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ReloadSchemaShardRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RebuildKeyspaceGraphRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReloadSchemaShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -24292,11 +26352,11 @@ func (m *RebuildKeyspaceGraphRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -24324,11 +26384,11 @@ func (m *RebuildKeyspaceGraphRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WaitPosition", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -24356,11 +26416,11 @@ func (m *RebuildKeyspaceGraphRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + m.WaitPosition = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowPartial", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IncludePrimary", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -24377,7 +26437,26 @@ func (m *RebuildKeyspaceGraphRequest) UnmarshalVT(dAtA []byte) error { break } } - m.AllowPartial = bool(v != 0) + m.IncludePrimary = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Concurrency", wireType) + } + m.Concurrency = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Concurrency |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -24400,7 +26479,7 @@ func (m *RebuildKeyspaceGraphRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RebuildKeyspaceGraphResponse) UnmarshalVT(dAtA []byte) error { +func (m *ReloadSchemaShardResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24423,17 +26502,17 @@ func (m *RebuildKeyspaceGraphResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RebuildKeyspaceGraphResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ReloadSchemaShardResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RebuildKeyspaceGraphResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReloadSchemaShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -24443,23 +26522,25 @@ func (m *RebuildKeyspaceGraphResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Status = string(dAtA[iNdEx:postIndex]) + m.Events = append(m.Events, &logutil.Event{}) + if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -24483,7 +26564,7 @@ func (m *RebuildKeyspaceGraphResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RefreshStateRequest) UnmarshalVT(dAtA []byte) error { +func (m *RefreshTabletReplicationSourceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24506,10 +26587,10 @@ func (m *RefreshStateRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RefreshStateRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RefreshTabletReplicationSourceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RefreshStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RefreshTabletReplicationSourceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -24602,7 +26683,7 @@ func (m *RefreshStateRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RefreshStateResponse) UnmarshalVT(dAtA []byte) error { +func (m *RefreshTabletReplicationSourceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24625,15 +26706,15 @@ func (m *RefreshStateResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RefreshStateResponse: wiretype end group for non-group") + return fmt.Errorf("proto: RefreshTabletReplicationSourceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RefreshStateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RefreshTabletReplicationSourceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -24661,9 +26742,77 @@ func (m *RefreshStateResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Status = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Shard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Primary", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Primary == nil { + m.Primary = &topodata.TabletAlias{} + } + if err := m.Primary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } @@ -24721,7 +26870,7 @@ func (m *RefreshStateResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReloadSchemasRequest) UnmarshalVT(dAtA []byte) error { +func (m *RemoveKeyspaceCellRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24744,15 +26893,15 @@ func (m *ReloadSchemasRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReloadSchemasRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RemoveKeyspaceCellRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReloadSchemasRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RemoveKeyspaceCellRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -24780,77 +26929,11 @@ func (m *ReloadSchemasRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspaces = append(m.Keyspaces, string(dAtA[iNdEx:postIndex])) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceShards", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KeyspaceShards = append(m.KeyspaceShards, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tablets = append(m.Tablets, &topodata.TabletAlias{}) - if err := m.Tablets[len(m.Tablets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -24872,36 +26955,17 @@ func (m *ReloadSchemasRequest) UnmarshalVT(dAtA []byte) error { return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Concurrency", wireType) - } - m.Concurrency = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Concurrency |= int32(b&0x7F) << shift - if b < 0x80 { - break - } + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - case 6: + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WaitPosition", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -24929,11 +26993,11 @@ func (m *ReloadSchemasRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.WaitPosition = string(dAtA[iNdEx:postIndex]) + m.Cell = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 7: + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludePrimary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -24950,7 +27014,27 @@ func (m *ReloadSchemasRequest) UnmarshalVT(dAtA []byte) error { break } } - m.IncludePrimary = bool(v != 0) + m.Force = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Recursive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Recursive = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -24973,7 +27057,7 @@ func (m *ReloadSchemasRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReloadSchemasResponse_KeyspaceResult) UnmarshalVT(dAtA []byte) error { +func (m *RemoveKeyspaceCellResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24996,53 +27080,17 @@ func (m *ReloadSchemasResponse_KeyspaceResult) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReloadSchemasResponse_KeyspaceResult: wiretype end group for non-group") + return fmt.Errorf("proto: RemoveKeyspaceCellResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReloadSchemasResponse_KeyspaceResult: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RemoveKeyspaceCellResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Keyspace == nil { - m.Keyspace = &Keyspace{} - } - if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -25052,25 +27100,23 @@ func (m *ReloadSchemasResponse_KeyspaceResult) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Events = append(m.Events, &logutil.Event{}) - if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Status = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -25094,7 +27140,7 @@ func (m *ReloadSchemasResponse_KeyspaceResult) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReloadSchemasResponse_ShardResult) UnmarshalVT(dAtA []byte) error { +func (m *RetrySchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25117,17 +27163,17 @@ func (m *ReloadSchemasResponse_ShardResult) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReloadSchemasResponse_ShardResult: wiretype end group for non-group") + return fmt.Errorf("proto: RetrySchemaMigrationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReloadSchemasResponse_ShardResult: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RetrySchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -25137,31 +27183,27 @@ func (m *ReloadSchemasResponse_ShardResult) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Shard == nil { - m.Shard = &Shard{} - } - if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -25188,8 +27230,10 @@ func (m *ReloadSchemasResponse_ShardResult) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Events = append(m.Events, &logutil.Event{}) - if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Request == nil { + m.Request = &vtctldata.RetrySchemaMigrationRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -25215,7 +27259,7 @@ func (m *ReloadSchemasResponse_ShardResult) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReloadSchemasResponse_TabletResult) UnmarshalVT(dAtA []byte) error { +func (m *RunHealthCheckRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25238,15 +27282,15 @@ func (m *ReloadSchemasResponse_TabletResult) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReloadSchemasResponse_TabletResult: wiretype end group for non-group") + return fmt.Errorf("proto: RunHealthCheckRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReloadSchemasResponse_TabletResult: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RunHealthCheckRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -25273,16 +27317,16 @@ func (m *ReloadSchemasResponse_TabletResult) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Tablet == nil { - m.Tablet = &Tablet{} + if m.Alias == nil { + m.Alias = &topodata.TabletAlias{} } - if err := m.Tablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -25310,7 +27354,7 @@ func (m *ReloadSchemasResponse_TabletResult) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Result = string(dAtA[iNdEx:postIndex]) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -25334,7 +27378,7 @@ func (m *ReloadSchemasResponse_TabletResult) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReloadSchemasResponse) UnmarshalVT(dAtA []byte) error { +func (m *RunHealthCheckResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25357,17 +27401,17 @@ func (m *ReloadSchemasResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReloadSchemasResponse: wiretype end group for non-group") + return fmt.Errorf("proto: RunHealthCheckResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReloadSchemasResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RunHealthCheckResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceResults", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -25377,29 +27421,27 @@ func (m *ReloadSchemasResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.KeyspaceResults = append(m.KeyspaceResults, &ReloadSchemasResponse_KeyspaceResult{}) - if err := m.KeyspaceResults[len(m.KeyspaceResults)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Status = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardResults", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -25426,14 +27468,99 @@ func (m *ReloadSchemasResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ShardResults = append(m.ShardResults, &ReloadSchemasResponse_ShardResult{}) - if err := m.ShardResults[len(m.ShardResults)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { return err } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReshardCreateRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReshardCreateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReshardCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletResults", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -25460,8 +27587,10 @@ func (m *ReloadSchemasResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TabletResults = append(m.TabletResults, &ReloadSchemasResponse_TabletResult{}) - if err := m.TabletResults[len(m.TabletResults)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Request == nil { + m.Request = &vtctldata.ReshardCreateRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -25487,7 +27616,7 @@ func (m *ReloadSchemasResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *SetReadOnlyRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25510,17 +27639,17 @@ func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReloadSchemaShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SetReadOnlyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReloadSchemaShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetReadOnlyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -25530,27 +27659,31 @@ func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + if m.Alias == nil { + m.Alias = &topodata.TabletAlias{} + } + if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -25578,13 +27711,115 @@ func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 3: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetReadOnlyResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetReadOnlyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetReadOnlyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetReadWriteRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetReadWriteRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetReadWriteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -25594,27 +27829,31 @@ func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) + if m.Alias == nil { + m.Alias = &topodata.TabletAlias{} + } + if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WaitPosition", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -25642,47 +27881,8 @@ func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.WaitPosition = string(dAtA[iNdEx:postIndex]) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludePrimary", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludePrimary = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Concurrency", wireType) - } - m.Concurrency = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Concurrency |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -25705,7 +27905,7 @@ func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReloadSchemaShardResponse) UnmarshalVT(dAtA []byte) error { +func (m *SetReadWriteResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25721,53 +27921,19 @@ func (m *ReloadSchemaShardResponse) UnmarshalVT(dAtA []byte) error { b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReloadSchemaShardResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReloadSchemaShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Events = append(m.Events, &logutil.Event{}) - if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if b < 0x80 { + break } - iNdEx = postIndex + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetReadWriteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetReadWriteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -25790,7 +27956,7 @@ func (m *ReloadSchemaShardResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RefreshTabletReplicationSourceRequest) UnmarshalVT(dAtA []byte) error { +func (m *StartReplicationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25813,10 +27979,10 @@ func (m *RefreshTabletReplicationSourceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RefreshTabletReplicationSourceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StartReplicationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RefreshTabletReplicationSourceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StartReplicationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -25909,7 +28075,7 @@ func (m *RefreshTabletReplicationSourceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RefreshTabletReplicationSourceResponse) UnmarshalVT(dAtA []byte) error { +func (m *StartReplicationResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25932,15 +28098,15 @@ func (m *RefreshTabletReplicationSourceResponse) UnmarshalVT(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RefreshTabletReplicationSourceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: StartReplicationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RefreshTabletReplicationSourceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StartReplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -25968,77 +28134,9 @@ func (m *RefreshTabletReplicationSourceResponse) UnmarshalVT(dAtA []byte) error if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Status = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Primary", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Primary == nil { - m.Primary = &topodata.TabletAlias{} - } - if err := m.Primary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } @@ -26096,7 +28194,7 @@ func (m *RefreshTabletReplicationSourceResponse) UnmarshalVT(dAtA []byte) error } return nil } -func (m *RemoveKeyspaceCellRequest) UnmarshalVT(dAtA []byte) error { +func (m *StopReplicationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -26119,81 +28217,17 @@ func (m *RemoveKeyspaceCellRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RemoveKeyspaceCellRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StopReplicationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveKeyspaceCellRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StopReplicationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26203,118 +28237,31 @@ func (m *RemoveKeyspaceCellRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cell = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Force = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Recursive", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Recursive = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveKeyspaceCellResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.Alias == nil { + m.Alias = &topodata.TabletAlias{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RemoveKeyspaceCellResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveKeyspaceCellResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -26342,7 +28289,7 @@ func (m *RemoveKeyspaceCellResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Status = string(dAtA[iNdEx:postIndex]) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -26366,7 +28313,7 @@ func (m *RemoveKeyspaceCellResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RetrySchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { +func (m *StopReplicationResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -26389,15 +28336,15 @@ func (m *RetrySchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RetrySchemaMigrationRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StopReplicationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RetrySchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StopReplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -26425,11 +28372,11 @@ func (m *RetrySchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.Status = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -26456,10 +28403,10 @@ func (m *RetrySchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Request == nil { - m.Request = &vtctldata.RetrySchemaMigrationRequest{} + if m.Cluster == nil { + m.Cluster = &Cluster{} } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -26485,7 +28432,7 @@ func (m *RetrySchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RunHealthCheckRequest) UnmarshalVT(dAtA []byte) error { +func (m *TabletExternallyPromotedRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -26508,10 +28455,10 @@ func (m *RunHealthCheckRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RunHealthCheckRequest: wiretype end group for non-group") + return fmt.Errorf("proto: TabletExternallyPromotedRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RunHealthCheckRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TabletExternallyPromotedRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -26604,7 +28551,7 @@ func (m *RunHealthCheckRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RunHealthCheckResponse) UnmarshalVT(dAtA []byte) error { +func (m *TabletExternallyPromotedResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -26627,17 +28574,17 @@ func (m *RunHealthCheckResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RunHealthCheckResponse: wiretype end group for non-group") + return fmt.Errorf("proto: TabletExternallyPromotedResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RunHealthCheckResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TabletExternallyPromotedResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26647,29 +28594,33 @@ func (m *RunHealthCheckResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Status = string(dAtA[iNdEx:postIndex]) + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26679,84 +28630,61 @@ func (m *RunHealthCheckResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} - } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReshardCreateRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReshardCreateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReshardCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Shard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NewPrimary", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26766,27 +28694,31 @@ func (m *ReshardCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + if m.NewPrimary == nil { + m.NewPrimary = &topodata.TabletAlias{} + } + if err := m.NewPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OldPrimary", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -26813,10 +28745,10 @@ func (m *ReshardCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Request == nil { - m.Request = &vtctldata.ReshardCreateRequest{} + if m.OldPrimary == nil { + m.OldPrimary = &topodata.TabletAlias{} } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.OldPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -26842,7 +28774,7 @@ func (m *ReshardCreateRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SetReadOnlyRequest) UnmarshalVT(dAtA []byte) error { +func (m *TabletExternallyReparentedRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -26865,10 +28797,10 @@ func (m *SetReadOnlyRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetReadOnlyRequest: wiretype end group for non-group") + return fmt.Errorf("proto: TabletExternallyReparentedRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetReadOnlyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TabletExternallyReparentedRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -26961,7 +28893,7 @@ func (m *SetReadOnlyRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SetReadOnlyResponse) UnmarshalVT(dAtA []byte) error { +func (m *ValidateRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -26974,22 +28906,74 @@ func (m *SetReadOnlyResponse) UnmarshalVT(dAtA []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ValidateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PingTablets", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SetReadOnlyResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetReadOnlyResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + m.PingTablets = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -27012,7 +28996,7 @@ func (m *SetReadOnlyResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SetReadWriteRequest) UnmarshalVT(dAtA []byte) error { +func (m *ValidateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27035,17 +29019,17 @@ func (m *SetReadWriteRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetReadWriteRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateKeyspaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetReadWriteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27055,31 +29039,27 @@ func (m *SetReadWriteRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Alias == nil { - m.Alias = &topodata.TabletAlias{} - } - if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -27107,59 +29087,28 @@ func (m *SetReadWriteRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SetReadWriteResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PingTablets", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SetReadWriteResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetReadWriteResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + m.PingTablets = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -27182,7 +29131,7 @@ func (m *SetReadWriteResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *StartReplicationRequest) UnmarshalVT(dAtA []byte) error { +func (m *ValidateSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27205,17 +29154,17 @@ func (m *StartReplicationRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StartReplicationRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateSchemaKeyspaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StartReplicationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateSchemaKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27225,31 +29174,27 @@ func (m *StartReplicationRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Alias == nil { - m.Alias = &topodata.TabletAlias{} - } - if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -27277,7 +29222,7 @@ func (m *StartReplicationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -27301,7 +29246,7 @@ func (m *StartReplicationRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *StartReplicationResponse) UnmarshalVT(dAtA []byte) error { +func (m *ValidateShardRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27324,15 +29269,15 @@ func (m *StartReplicationResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StartReplicationResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateShardRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StartReplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -27360,13 +29305,13 @@ func (m *StartReplicationResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Status = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27376,28 +29321,76 @@ func (m *StartReplicationResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF } + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PingTablets", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PingTablets = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -27420,7 +29413,7 @@ func (m *StartReplicationResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *StopReplicationRequest) UnmarshalVT(dAtA []byte) error { +func (m *ValidateVersionKeyspaceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27443,17 +29436,17 @@ func (m *StopReplicationRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StopReplicationRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateVersionKeyspaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StopReplicationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateVersionKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27463,31 +29456,27 @@ func (m *StopReplicationRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Alias == nil { - m.Alias = &topodata.TabletAlias{} - } - if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -27515,7 +29504,7 @@ func (m *StopReplicationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -27539,7 +29528,7 @@ func (m *StopReplicationRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *StopReplicationResponse) UnmarshalVT(dAtA []byte) error { +func (m *ValidateVersionShardRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27562,15 +29551,15 @@ func (m *StopReplicationResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StopReplicationResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateVersionShardRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StopReplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateVersionShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -27598,13 +29587,13 @@ func (m *StopReplicationResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Status = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27614,27 +29603,55 @@ func (m *StopReplicationResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF } + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -27658,7 +29675,7 @@ func (m *StopReplicationResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *TabletExternallyPromotedRequest) UnmarshalVT(dAtA []byte) error { +func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27681,17 +29698,17 @@ func (m *TabletExternallyPromotedRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TabletExternallyPromotedRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffCreateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TabletExternallyPromotedRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27701,33 +29718,29 @@ func (m *TabletExternallyPromotedRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Alias == nil { - m.Alias = &topodata.TabletAlias{} - } - if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27737,23 +29750,27 @@ func (m *TabletExternallyPromotedRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + if m.Request == nil { + m.Request = &vtctldata.VDiffCreateRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -27777,7 +29794,7 @@ func (m *TabletExternallyPromotedRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *TabletExternallyPromotedResponse) UnmarshalVT(dAtA []byte) error { +func (m *VDiffShowRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27800,83 +29817,15 @@ func (m *TabletExternallyPromotedResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TabletExternallyPromotedResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffShowRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TabletExternallyPromotedResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffShowRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Cluster == nil { - m.Cluster = &Cluster{} - } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -27904,47 +29853,11 @@ func (m *TabletExternallyPromotedResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewPrimary", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NewPrimary == nil { - m.NewPrimary = &topodata.TabletAlias{} - } - if err := m.NewPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OldPrimary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -27971,10 +29884,10 @@ func (m *TabletExternallyPromotedResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.OldPrimary == nil { - m.OldPrimary = &topodata.TabletAlias{} + if m.Request == nil { + m.Request = &vtctldata.VDiffShowRequest{} } - if err := m.OldPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -28000,7 +29913,7 @@ func (m *TabletExternallyPromotedResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *TabletExternallyReparentedRequest) UnmarshalVT(dAtA []byte) error { +func (m *VDiffProgress) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28023,51 +29936,26 @@ func (m *TabletExternallyReparentedRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TabletExternallyReparentedRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffProgress: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TabletExternallyReparentedRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffProgress: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Percentage", wireType) } - if postIndex > l { + var v uint64 + if (iNdEx + 8) > l { return io.ErrUnexpectedEOF } - if m.Alias == nil { - m.Alias = &topodata.TabletAlias{} - } - if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Percentage = float64(math.Float64frombits(v)) case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Eta", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28095,7 +29983,7 @@ func (m *TabletExternallyReparentedRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.Eta = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -28119,7 +30007,7 @@ func (m *TabletExternallyReparentedRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateRequest) UnmarshalVT(dAtA []byte) error { +func (m *VDiffShardReport) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28142,15 +30030,15 @@ func (m *ValidateRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffShardReport: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffShardReport: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28178,13 +30066,13 @@ func (m *ValidateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.State = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PingTablets", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RowsCompared", wireType) } - var v int + m.RowsCompared = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -28194,66 +30082,34 @@ func (m *ValidateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.RowsCompared |= int64(b&0x7F) << shift if b < 0x80 { break } } - m.PingTablets = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HasMismatch", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidateKeyspaceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.HasMismatch = bool(v != 0) + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28281,11 +30137,11 @@ func (m *ValidateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.StartedAt = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CompletedAt", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28313,13 +30169,13 @@ func (m *ValidateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.CompletedAt = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PingTablets", wireType) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -28329,12 +30185,28 @@ func (m *ValidateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.PingTablets = bool(v != 0) + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Progress == nil { + m.Progress = &VDiffProgress{} + } + if err := m.Progress.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -28357,7 +30229,7 @@ func (m *ValidateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *VDiffShowResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28380,17 +30252,17 @@ func (m *ValidateSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateSchemaKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffShowResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateSchemaKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffShowResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ShardReport", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -28400,55 +30272,120 @@ func (m *ValidateSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + if m.ShardReport == nil { + m.ShardReport = make(map[string]*VDiffShardReport) } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var mapkey string + var mapvalue *VDiffShardReport + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &VDiffShardReport{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.ShardReport[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -28472,7 +30409,7 @@ func (m *ValidateSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *VTExplainRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28495,15 +30432,15 @@ func (m *ValidateShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VTExplainRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VTExplainRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28531,7 +30468,7 @@ func (m *ValidateShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.Cluster = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -28567,7 +30504,7 @@ func (m *ValidateShardRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28595,28 +30532,8 @@ func (m *ValidateShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) + m.Sql = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PingTablets", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.PingTablets = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -28639,7 +30556,7 @@ func (m *ValidateShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateVersionKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *VTExplainResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28662,47 +30579,15 @@ func (m *ValidateVersionKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateVersionKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VTExplainResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateVersionKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VTExplainResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28730,7 +30615,7 @@ func (m *ValidateVersionKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Response = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -28754,7 +30639,7 @@ func (m *ValidateVersionKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateVersionShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *VExplainRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28777,10 +30662,10 @@ func (m *ValidateVersionShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateVersionShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VExplainRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateVersionShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VExplainRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -28849,7 +30734,7 @@ func (m *ValidateVersionShardRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28877,7 +30762,7 @@ func (m *ValidateVersionShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) + m.Sql = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -28901,7 +30786,7 @@ func (m *ValidateVersionShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { +func (m *VExplainResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28924,15 +30809,15 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VDiffCreateRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VExplainResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VExplainResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28960,43 +30845,7 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &vtctldata.VDiffCreateRequest{} - } - if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Response = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -29020,7 +30869,7 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VDiffShowRequest) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaPublishRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29043,10 +30892,10 @@ func (m *VDiffShowRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VDiffShowRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaPublishRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffShowRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaPublishRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -29111,7 +30960,7 @@ func (m *VDiffShowRequest) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Request == nil { - m.Request = &vtctldata.VDiffShowRequest{} + m.Request = &vtctldata.VSchemaPublishRequest{} } if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err @@ -29139,101 +30988,7 @@ func (m *VDiffShowRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VDiffProgress) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VDiffProgress: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffProgress: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Percentage", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Percentage = float64(math.Float64frombits(v)) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Eta", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Eta = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VDiffShardReport) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaAddVindexRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29256,15 +31011,15 @@ func (m *VDiffShardReport) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VDiffShardReport: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaAddVindexRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffShardReport: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaAddVindexRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29292,52 +31047,13 @@ func (m *VDiffShardReport) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.State = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RowsCompared", wireType) - } - m.RowsCompared = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RowsCompared |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HasMismatch", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HasMismatch = bool(v != 0) - case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29347,27 +31063,82 @@ func (m *VDiffShardReport) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.StartedAt = string(dAtA[iNdEx:postIndex]) + if m.Request == nil { + m.Request = &vtctldata.VSchemaAddVindexRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 5: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VSchemaRemoveVindexRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VSchemaRemoveVindexRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VSchemaRemoveVindexRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompletedAt", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29395,11 +31166,11 @@ func (m *VDiffShardReport) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CompletedAt = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 6: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -29426,10 +31197,10 @@ func (m *VDiffShardReport) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Progress == nil { - m.Progress = &VDiffProgress{} + if m.Request == nil { + m.Request = &vtctldata.VSchemaRemoveVindexRequest{} } - if err := m.Progress.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -29455,7 +31226,7 @@ func (m *VDiffShardReport) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VDiffShowResponse) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaAddLookupVindexRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29478,17 +31249,17 @@ func (m *VDiffShowResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VDiffShowResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaAddLookupVindexRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffShowResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaAddLookupVindexRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardReport", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29498,120 +31269,59 @@ func (m *VDiffShowResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.ShardReport == nil { - m.ShardReport = make(map[string]*VDiffShardReport) + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var mapkey string - var mapvalue *VDiffShardReport - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &VDiffShardReport{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break } } - m.ShardReport[mapkey] = mapvalue + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Request == nil { + m.Request = &vtctldata.VSchemaAddLookupVindexRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -29635,7 +31345,7 @@ func (m *VDiffShowResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VTExplainRequest) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaAddTablesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29658,15 +31368,15 @@ func (m *VTExplainRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VTExplainRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaAddTablesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VTExplainRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaAddTablesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29694,13 +31404,13 @@ func (m *VTExplainRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cluster = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29710,55 +31420,27 @@ func (m *VTExplainRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if m.Request == nil { + m.Request = &vtctldata.VSchemaAddTablesRequest{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Sql = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -29782,7 +31464,7 @@ func (m *VTExplainRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VTExplainResponse) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaRemoveTablesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29805,15 +31487,15 @@ func (m *VTExplainResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VTExplainResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaRemoveTablesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VTExplainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaRemoveTablesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29841,7 +31523,43 @@ func (m *VTExplainResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Response = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Request == nil { + m.Request = &vtctldata.VSchemaRemoveTablesRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -29865,7 +31583,7 @@ func (m *VTExplainResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VExplainRequest) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaSetPrimaryVindexRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29888,10 +31606,10 @@ func (m *VExplainRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VExplainRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaSetPrimaryVindexRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VExplainRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaSetPrimaryVindexRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -29928,9 +31646,9 @@ func (m *VExplainRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29940,27 +31658,82 @@ func (m *VExplainRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + if m.Request == nil { + m.Request = &vtctldata.VSchemaSetPrimaryVindexRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 3: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VSchemaSetSequenceRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VSchemaSetSequenceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VSchemaSetSequenceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29988,7 +31761,43 @@ func (m *VExplainRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Sql = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Request == nil { + m.Request = &vtctldata.VSchemaSetSequenceRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -30012,7 +31821,7 @@ func (m *VExplainRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VExplainResponse) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaSetReferenceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30035,15 +31844,15 @@ func (m *VExplainResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VExplainResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaSetReferenceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VExplainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaSetReferenceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30071,7 +31880,43 @@ func (m *VExplainResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Response = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Request == nil { + m.Request = &vtctldata.VSchemaSetReferenceRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex diff --git a/go/vt/proto/vtctldata/vtctldata.pb.go b/go/vt/proto/vtctldata/vtctldata.pb.go index 42a944117ec..b9bfa16f765 100644 --- a/go/vt/proto/vtctldata/vtctldata.pb.go +++ b/go/vt/proto/vtctldata/vtctldata.pb.go @@ -15353,6 +15353,1238 @@ func (*VDiffStopResponse) Descriptor() ([]byte, []int) { return file_vtctldata_proto_rawDescGZIP(), []int{253} } +type VSchemaCreateRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + VSchemaName string `protobuf:"bytes,1,opt,name=v_schema_name,json=vSchemaName,proto3" json:"v_schema_name,omitempty"` + Sharded bool `protobuf:"varint,2,opt,name=sharded,proto3" json:"sharded,omitempty"` + Draft bool `protobuf:"varint,3,opt,name=draft,proto3" json:"draft,omitempty"` + VSchemaJson string `protobuf:"bytes,4,opt,name=v_schema_json,json=vSchemaJson,proto3" json:"v_schema_json,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaCreateRequest) Reset() { + *x = VSchemaCreateRequest{} + mi := &file_vtctldata_proto_msgTypes[254] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaCreateRequest) ProtoMessage() {} + +func (x *VSchemaCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[254] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaCreateRequest.ProtoReflect.Descriptor instead. +func (*VSchemaCreateRequest) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{254} +} + +func (x *VSchemaCreateRequest) GetVSchemaName() string { + if x != nil { + return x.VSchemaName + } + return "" +} + +func (x *VSchemaCreateRequest) GetSharded() bool { + if x != nil { + return x.Sharded + } + return false +} + +func (x *VSchemaCreateRequest) GetDraft() bool { + if x != nil { + return x.Draft + } + return false +} + +func (x *VSchemaCreateRequest) GetVSchemaJson() string { + if x != nil { + return x.VSchemaJson + } + return "" +} + +type VSchemaCreateResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaCreateResponse) Reset() { + *x = VSchemaCreateResponse{} + mi := &file_vtctldata_proto_msgTypes[255] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaCreateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaCreateResponse) ProtoMessage() {} + +func (x *VSchemaCreateResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[255] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaCreateResponse.ProtoReflect.Descriptor instead. +func (*VSchemaCreateResponse) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{255} +} + +type VSchemaGetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + VSchemaName string `protobuf:"bytes,1,opt,name=v_schema_name,json=vSchemaName,proto3" json:"v_schema_name,omitempty"` + IncludeDrafts bool `protobuf:"varint,2,opt,name=include_drafts,json=includeDrafts,proto3" json:"include_drafts,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaGetRequest) Reset() { + *x = VSchemaGetRequest{} + mi := &file_vtctldata_proto_msgTypes[256] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaGetRequest) ProtoMessage() {} + +func (x *VSchemaGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[256] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaGetRequest.ProtoReflect.Descriptor instead. +func (*VSchemaGetRequest) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{256} +} + +func (x *VSchemaGetRequest) GetVSchemaName() string { + if x != nil { + return x.VSchemaName + } + return "" +} + +func (x *VSchemaGetRequest) GetIncludeDrafts() bool { + if x != nil { + return x.IncludeDrafts + } + return false +} + +type VSchemaGetResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + VSchema *vschema.Keyspace `protobuf:"bytes,1,opt,name=v_schema,json=vSchema,proto3" json:"v_schema,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaGetResponse) Reset() { + *x = VSchemaGetResponse{} + mi := &file_vtctldata_proto_msgTypes[257] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaGetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaGetResponse) ProtoMessage() {} + +func (x *VSchemaGetResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[257] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaGetResponse.ProtoReflect.Descriptor instead. +func (*VSchemaGetResponse) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{257} +} + +func (x *VSchemaGetResponse) GetVSchema() *vschema.Keyspace { + if x != nil { + return x.VSchema + } + return nil +} + +type VSchemaUpdateRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + VSchemaName string `protobuf:"bytes,1,opt,name=v_schema_name,json=vSchemaName,proto3" json:"v_schema_name,omitempty"` + Sharded *bool `protobuf:"varint,2,opt,name=sharded,proto3,oneof" json:"sharded,omitempty"` + ForeignKeyMode *string `protobuf:"bytes,3,opt,name=foreign_key_mode,json=foreignKeyMode,proto3,oneof" json:"foreign_key_mode,omitempty"` + Draft *bool `protobuf:"varint,4,opt,name=draft,proto3,oneof" json:"draft,omitempty"` + MultiTenant *bool `protobuf:"varint,5,opt,name=multi_tenant,json=multiTenant,proto3,oneof" json:"multi_tenant,omitempty"` + TenantIdColumnName *string `protobuf:"bytes,6,opt,name=tenant_id_column_name,json=tenantIdColumnName,proto3,oneof" json:"tenant_id_column_name,omitempty"` + TenantIdColumnType *string `protobuf:"bytes,7,opt,name=tenant_id_column_type,json=tenantIdColumnType,proto3,oneof" json:"tenant_id_column_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaUpdateRequest) Reset() { + *x = VSchemaUpdateRequest{} + mi := &file_vtctldata_proto_msgTypes[258] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaUpdateRequest) ProtoMessage() {} + +func (x *VSchemaUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[258] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaUpdateRequest.ProtoReflect.Descriptor instead. +func (*VSchemaUpdateRequest) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{258} +} + +func (x *VSchemaUpdateRequest) GetVSchemaName() string { + if x != nil { + return x.VSchemaName + } + return "" +} + +func (x *VSchemaUpdateRequest) GetSharded() bool { + if x != nil && x.Sharded != nil { + return *x.Sharded + } + return false +} + +func (x *VSchemaUpdateRequest) GetForeignKeyMode() string { + if x != nil && x.ForeignKeyMode != nil { + return *x.ForeignKeyMode + } + return "" +} + +func (x *VSchemaUpdateRequest) GetDraft() bool { + if x != nil && x.Draft != nil { + return *x.Draft + } + return false +} + +func (x *VSchemaUpdateRequest) GetMultiTenant() bool { + if x != nil && x.MultiTenant != nil { + return *x.MultiTenant + } + return false +} + +func (x *VSchemaUpdateRequest) GetTenantIdColumnName() string { + if x != nil && x.TenantIdColumnName != nil { + return *x.TenantIdColumnName + } + return "" +} + +func (x *VSchemaUpdateRequest) GetTenantIdColumnType() string { + if x != nil && x.TenantIdColumnType != nil { + return *x.TenantIdColumnType + } + return "" +} + +type VSchemaUpdateResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaUpdateResponse) Reset() { + *x = VSchemaUpdateResponse{} + mi := &file_vtctldata_proto_msgTypes[259] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaUpdateResponse) ProtoMessage() {} + +func (x *VSchemaUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[259] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaUpdateResponse.ProtoReflect.Descriptor instead. +func (*VSchemaUpdateResponse) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{259} +} + +type VSchemaPublishRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + VSchemaName string `protobuf:"bytes,1,opt,name=v_schema_name,json=vSchemaName,proto3" json:"v_schema_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaPublishRequest) Reset() { + *x = VSchemaPublishRequest{} + mi := &file_vtctldata_proto_msgTypes[260] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaPublishRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaPublishRequest) ProtoMessage() {} + +func (x *VSchemaPublishRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[260] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaPublishRequest.ProtoReflect.Descriptor instead. +func (*VSchemaPublishRequest) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{260} +} + +func (x *VSchemaPublishRequest) GetVSchemaName() string { + if x != nil { + return x.VSchemaName + } + return "" +} + +type VSchemaPublishResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaPublishResponse) Reset() { + *x = VSchemaPublishResponse{} + mi := &file_vtctldata_proto_msgTypes[261] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaPublishResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaPublishResponse) ProtoMessage() {} + +func (x *VSchemaPublishResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[261] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaPublishResponse.ProtoReflect.Descriptor instead. +func (*VSchemaPublishResponse) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{261} +} + +type VSchemaAddVindexRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + VSchemaName string `protobuf:"bytes,1,opt,name=v_schema_name,json=vSchemaName,proto3" json:"v_schema_name,omitempty"` + VindexName string `protobuf:"bytes,2,opt,name=vindex_name,json=vindexName,proto3" json:"vindex_name,omitempty"` + VindexType string `protobuf:"bytes,3,opt,name=vindex_type,json=vindexType,proto3" json:"vindex_type,omitempty"` + Params map[string]string `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaAddVindexRequest) Reset() { + *x = VSchemaAddVindexRequest{} + mi := &file_vtctldata_proto_msgTypes[262] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaAddVindexRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaAddVindexRequest) ProtoMessage() {} + +func (x *VSchemaAddVindexRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[262] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaAddVindexRequest.ProtoReflect.Descriptor instead. +func (*VSchemaAddVindexRequest) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{262} +} + +func (x *VSchemaAddVindexRequest) GetVSchemaName() string { + if x != nil { + return x.VSchemaName + } + return "" +} + +func (x *VSchemaAddVindexRequest) GetVindexName() string { + if x != nil { + return x.VindexName + } + return "" +} + +func (x *VSchemaAddVindexRequest) GetVindexType() string { + if x != nil { + return x.VindexType + } + return "" +} + +func (x *VSchemaAddVindexRequest) GetParams() map[string]string { + if x != nil { + return x.Params + } + return nil +} + +type VSchemaAddVindexResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaAddVindexResponse) Reset() { + *x = VSchemaAddVindexResponse{} + mi := &file_vtctldata_proto_msgTypes[263] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaAddVindexResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaAddVindexResponse) ProtoMessage() {} + +func (x *VSchemaAddVindexResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[263] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaAddVindexResponse.ProtoReflect.Descriptor instead. +func (*VSchemaAddVindexResponse) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{263} +} + +type VSchemaRemoveVindexRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + VSchemaName string `protobuf:"bytes,1,opt,name=v_schema_name,json=vSchemaName,proto3" json:"v_schema_name,omitempty"` + VindexName string `protobuf:"bytes,2,opt,name=vindex_name,json=vindexName,proto3" json:"vindex_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaRemoveVindexRequest) Reset() { + *x = VSchemaRemoveVindexRequest{} + mi := &file_vtctldata_proto_msgTypes[264] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaRemoveVindexRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaRemoveVindexRequest) ProtoMessage() {} + +func (x *VSchemaRemoveVindexRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[264] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaRemoveVindexRequest.ProtoReflect.Descriptor instead. +func (*VSchemaRemoveVindexRequest) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{264} +} + +func (x *VSchemaRemoveVindexRequest) GetVSchemaName() string { + if x != nil { + return x.VSchemaName + } + return "" +} + +func (x *VSchemaRemoveVindexRequest) GetVindexName() string { + if x != nil { + return x.VindexName + } + return "" +} + +type VSchemaRemoveVindexResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaRemoveVindexResponse) Reset() { + *x = VSchemaRemoveVindexResponse{} + mi := &file_vtctldata_proto_msgTypes[265] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaRemoveVindexResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaRemoveVindexResponse) ProtoMessage() {} + +func (x *VSchemaRemoveVindexResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[265] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaRemoveVindexResponse.ProtoReflect.Descriptor instead. +func (*VSchemaRemoveVindexResponse) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{265} +} + +type VSchemaAddLookupVindexRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + VSchemaName string `protobuf:"bytes,1,opt,name=v_schema_name,json=vSchemaName,proto3" json:"v_schema_name,omitempty"` + VindexName string `protobuf:"bytes,2,opt,name=vindex_name,json=vindexName,proto3" json:"vindex_name,omitempty"` + LookupVindexType string `protobuf:"bytes,3,opt,name=lookup_vindex_type,json=lookupVindexType,proto3" json:"lookup_vindex_type,omitempty"` + TableName string `protobuf:"bytes,4,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + FromColumns []string `protobuf:"bytes,5,rep,name=from_columns,json=fromColumns,proto3" json:"from_columns,omitempty"` + Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` + IgnoreNulls bool `protobuf:"varint,7,opt,name=ignore_nulls,json=ignoreNulls,proto3" json:"ignore_nulls,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaAddLookupVindexRequest) Reset() { + *x = VSchemaAddLookupVindexRequest{} + mi := &file_vtctldata_proto_msgTypes[266] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaAddLookupVindexRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaAddLookupVindexRequest) ProtoMessage() {} + +func (x *VSchemaAddLookupVindexRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[266] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaAddLookupVindexRequest.ProtoReflect.Descriptor instead. +func (*VSchemaAddLookupVindexRequest) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{266} +} + +func (x *VSchemaAddLookupVindexRequest) GetVSchemaName() string { + if x != nil { + return x.VSchemaName + } + return "" +} + +func (x *VSchemaAddLookupVindexRequest) GetVindexName() string { + if x != nil { + return x.VindexName + } + return "" +} + +func (x *VSchemaAddLookupVindexRequest) GetLookupVindexType() string { + if x != nil { + return x.LookupVindexType + } + return "" +} + +func (x *VSchemaAddLookupVindexRequest) GetTableName() string { + if x != nil { + return x.TableName + } + return "" +} + +func (x *VSchemaAddLookupVindexRequest) GetFromColumns() []string { + if x != nil { + return x.FromColumns + } + return nil +} + +func (x *VSchemaAddLookupVindexRequest) GetOwner() string { + if x != nil { + return x.Owner + } + return "" +} + +func (x *VSchemaAddLookupVindexRequest) GetIgnoreNulls() bool { + if x != nil { + return x.IgnoreNulls + } + return false +} + +type VSchemaAddLookupVindexResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaAddLookupVindexResponse) Reset() { + *x = VSchemaAddLookupVindexResponse{} + mi := &file_vtctldata_proto_msgTypes[267] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaAddLookupVindexResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaAddLookupVindexResponse) ProtoMessage() {} + +func (x *VSchemaAddLookupVindexResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[267] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaAddLookupVindexResponse.ProtoReflect.Descriptor instead. +func (*VSchemaAddLookupVindexResponse) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{267} +} + +type VSchemaAddTablesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + VSchemaName string `protobuf:"bytes,1,opt,name=v_schema_name,json=vSchemaName,proto3" json:"v_schema_name,omitempty"` + Tables []string `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"` + PrimaryVindexName string `protobuf:"bytes,3,opt,name=primary_vindex_name,json=primaryVindexName,proto3" json:"primary_vindex_name,omitempty"` + Columns []string `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"` + AddAll bool `protobuf:"varint,5,opt,name=add_all,json=addAll,proto3" json:"add_all,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaAddTablesRequest) Reset() { + *x = VSchemaAddTablesRequest{} + mi := &file_vtctldata_proto_msgTypes[268] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaAddTablesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaAddTablesRequest) ProtoMessage() {} + +func (x *VSchemaAddTablesRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[268] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaAddTablesRequest.ProtoReflect.Descriptor instead. +func (*VSchemaAddTablesRequest) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{268} +} + +func (x *VSchemaAddTablesRequest) GetVSchemaName() string { + if x != nil { + return x.VSchemaName + } + return "" +} + +func (x *VSchemaAddTablesRequest) GetTables() []string { + if x != nil { + return x.Tables + } + return nil +} + +func (x *VSchemaAddTablesRequest) GetPrimaryVindexName() string { + if x != nil { + return x.PrimaryVindexName + } + return "" +} + +func (x *VSchemaAddTablesRequest) GetColumns() []string { + if x != nil { + return x.Columns + } + return nil +} + +func (x *VSchemaAddTablesRequest) GetAddAll() bool { + if x != nil { + return x.AddAll + } + return false +} + +type VSchemaAddTablesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaAddTablesResponse) Reset() { + *x = VSchemaAddTablesResponse{} + mi := &file_vtctldata_proto_msgTypes[269] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaAddTablesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaAddTablesResponse) ProtoMessage() {} + +func (x *VSchemaAddTablesResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[269] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaAddTablesResponse.ProtoReflect.Descriptor instead. +func (*VSchemaAddTablesResponse) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{269} +} + +type VSchemaRemoveTablesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + VSchemaName string `protobuf:"bytes,1,opt,name=v_schema_name,json=vSchemaName,proto3" json:"v_schema_name,omitempty"` + Tables []string `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaRemoveTablesRequest) Reset() { + *x = VSchemaRemoveTablesRequest{} + mi := &file_vtctldata_proto_msgTypes[270] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaRemoveTablesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaRemoveTablesRequest) ProtoMessage() {} + +func (x *VSchemaRemoveTablesRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[270] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaRemoveTablesRequest.ProtoReflect.Descriptor instead. +func (*VSchemaRemoveTablesRequest) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{270} +} + +func (x *VSchemaRemoveTablesRequest) GetVSchemaName() string { + if x != nil { + return x.VSchemaName + } + return "" +} + +func (x *VSchemaRemoveTablesRequest) GetTables() []string { + if x != nil { + return x.Tables + } + return nil +} + +type VSchemaRemoveTablesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaRemoveTablesResponse) Reset() { + *x = VSchemaRemoveTablesResponse{} + mi := &file_vtctldata_proto_msgTypes[271] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaRemoveTablesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaRemoveTablesResponse) ProtoMessage() {} + +func (x *VSchemaRemoveTablesResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[271] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaRemoveTablesResponse.ProtoReflect.Descriptor instead. +func (*VSchemaRemoveTablesResponse) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{271} +} + +type VSchemaSetPrimaryVindexRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + VSchemaName string `protobuf:"bytes,1,opt,name=v_schema_name,json=vSchemaName,proto3" json:"v_schema_name,omitempty"` + Tables []string `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"` + VindexName string `protobuf:"bytes,3,opt,name=vindex_name,json=vindexName,proto3" json:"vindex_name,omitempty"` + Columns []string `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaSetPrimaryVindexRequest) Reset() { + *x = VSchemaSetPrimaryVindexRequest{} + mi := &file_vtctldata_proto_msgTypes[272] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaSetPrimaryVindexRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaSetPrimaryVindexRequest) ProtoMessage() {} + +func (x *VSchemaSetPrimaryVindexRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[272] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaSetPrimaryVindexRequest.ProtoReflect.Descriptor instead. +func (*VSchemaSetPrimaryVindexRequest) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{272} +} + +func (x *VSchemaSetPrimaryVindexRequest) GetVSchemaName() string { + if x != nil { + return x.VSchemaName + } + return "" +} + +func (x *VSchemaSetPrimaryVindexRequest) GetTables() []string { + if x != nil { + return x.Tables + } + return nil +} + +func (x *VSchemaSetPrimaryVindexRequest) GetVindexName() string { + if x != nil { + return x.VindexName + } + return "" +} + +func (x *VSchemaSetPrimaryVindexRequest) GetColumns() []string { + if x != nil { + return x.Columns + } + return nil +} + +type VSchemaSetPrimaryVindexResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaSetPrimaryVindexResponse) Reset() { + *x = VSchemaSetPrimaryVindexResponse{} + mi := &file_vtctldata_proto_msgTypes[273] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaSetPrimaryVindexResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaSetPrimaryVindexResponse) ProtoMessage() {} + +func (x *VSchemaSetPrimaryVindexResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[273] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaSetPrimaryVindexResponse.ProtoReflect.Descriptor instead. +func (*VSchemaSetPrimaryVindexResponse) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{273} +} + +type VSchemaSetSequenceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + VSchemaName string `protobuf:"bytes,1,opt,name=v_schema_name,json=vSchemaName,proto3" json:"v_schema_name,omitempty"` + TableName string `protobuf:"bytes,2,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + Column string `protobuf:"bytes,3,opt,name=column,proto3" json:"column,omitempty"` + SequenceSource string `protobuf:"bytes,4,opt,name=sequence_source,json=sequenceSource,proto3" json:"sequence_source,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaSetSequenceRequest) Reset() { + *x = VSchemaSetSequenceRequest{} + mi := &file_vtctldata_proto_msgTypes[274] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaSetSequenceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaSetSequenceRequest) ProtoMessage() {} + +func (x *VSchemaSetSequenceRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[274] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaSetSequenceRequest.ProtoReflect.Descriptor instead. +func (*VSchemaSetSequenceRequest) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{274} +} + +func (x *VSchemaSetSequenceRequest) GetVSchemaName() string { + if x != nil { + return x.VSchemaName + } + return "" +} + +func (x *VSchemaSetSequenceRequest) GetTableName() string { + if x != nil { + return x.TableName + } + return "" +} + +func (x *VSchemaSetSequenceRequest) GetColumn() string { + if x != nil { + return x.Column + } + return "" +} + +func (x *VSchemaSetSequenceRequest) GetSequenceSource() string { + if x != nil { + return x.SequenceSource + } + return "" +} + +type VSchemaSetSequenceResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaSetSequenceResponse) Reset() { + *x = VSchemaSetSequenceResponse{} + mi := &file_vtctldata_proto_msgTypes[275] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaSetSequenceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaSetSequenceResponse) ProtoMessage() {} + +func (x *VSchemaSetSequenceResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[275] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaSetSequenceResponse.ProtoReflect.Descriptor instead. +func (*VSchemaSetSequenceResponse) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{275} +} + +type VSchemaSetReferenceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + VSchemaName string `protobuf:"bytes,1,opt,name=v_schema_name,json=vSchemaName,proto3" json:"v_schema_name,omitempty"` + TableName string `protobuf:"bytes,2,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaSetReferenceRequest) Reset() { + *x = VSchemaSetReferenceRequest{} + mi := &file_vtctldata_proto_msgTypes[276] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaSetReferenceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaSetReferenceRequest) ProtoMessage() {} + +func (x *VSchemaSetReferenceRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[276] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaSetReferenceRequest.ProtoReflect.Descriptor instead. +func (*VSchemaSetReferenceRequest) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{276} +} + +func (x *VSchemaSetReferenceRequest) GetVSchemaName() string { + if x != nil { + return x.VSchemaName + } + return "" +} + +func (x *VSchemaSetReferenceRequest) GetTableName() string { + if x != nil { + return x.TableName + } + return "" +} + +func (x *VSchemaSetReferenceRequest) GetSource() string { + if x != nil { + return x.Source + } + return "" +} + +type VSchemaSetReferenceResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VSchemaSetReferenceResponse) Reset() { + *x = VSchemaSetReferenceResponse{} + mi := &file_vtctldata_proto_msgTypes[277] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VSchemaSetReferenceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VSchemaSetReferenceResponse) ProtoMessage() {} + +func (x *VSchemaSetReferenceResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[277] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VSchemaSetReferenceResponse.ProtoReflect.Descriptor instead. +func (*VSchemaSetReferenceResponse) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{277} +} + type WorkflowDeleteRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Keyspace string `protobuf:"bytes,1,opt,name=keyspace,proto3" json:"keyspace,omitempty"` @@ -15374,7 +16606,7 @@ type WorkflowDeleteRequest struct { func (x *WorkflowDeleteRequest) Reset() { *x = WorkflowDeleteRequest{} - mi := &file_vtctldata_proto_msgTypes[254] + mi := &file_vtctldata_proto_msgTypes[278] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15386,7 +16618,7 @@ func (x *WorkflowDeleteRequest) String() string { func (*WorkflowDeleteRequest) ProtoMessage() {} func (x *WorkflowDeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[254] + mi := &file_vtctldata_proto_msgTypes[278] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15399,7 +16631,7 @@ func (x *WorkflowDeleteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowDeleteRequest.ProtoReflect.Descriptor instead. func (*WorkflowDeleteRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{254} + return file_vtctldata_proto_rawDescGZIP(), []int{278} } func (x *WorkflowDeleteRequest) GetKeyspace() string { @@ -15461,7 +16693,7 @@ type WorkflowDeleteResponse struct { func (x *WorkflowDeleteResponse) Reset() { *x = WorkflowDeleteResponse{} - mi := &file_vtctldata_proto_msgTypes[255] + mi := &file_vtctldata_proto_msgTypes[279] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15473,7 +16705,7 @@ func (x *WorkflowDeleteResponse) String() string { func (*WorkflowDeleteResponse) ProtoMessage() {} func (x *WorkflowDeleteResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[255] + mi := &file_vtctldata_proto_msgTypes[279] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15486,7 +16718,7 @@ func (x *WorkflowDeleteResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowDeleteResponse.ProtoReflect.Descriptor instead. func (*WorkflowDeleteResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{255} + return file_vtctldata_proto_rawDescGZIP(), []int{279} } func (x *WorkflowDeleteResponse) GetSummary() string { @@ -15514,7 +16746,7 @@ type WorkflowStatusRequest struct { func (x *WorkflowStatusRequest) Reset() { *x = WorkflowStatusRequest{} - mi := &file_vtctldata_proto_msgTypes[256] + mi := &file_vtctldata_proto_msgTypes[280] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15526,7 +16758,7 @@ func (x *WorkflowStatusRequest) String() string { func (*WorkflowStatusRequest) ProtoMessage() {} func (x *WorkflowStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[256] + mi := &file_vtctldata_proto_msgTypes[280] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15539,7 +16771,7 @@ func (x *WorkflowStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowStatusRequest.ProtoReflect.Descriptor instead. func (*WorkflowStatusRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{256} + return file_vtctldata_proto_rawDescGZIP(), []int{280} } func (x *WorkflowStatusRequest) GetKeyspace() string { @@ -15575,7 +16807,7 @@ type WorkflowStatusResponse struct { func (x *WorkflowStatusResponse) Reset() { *x = WorkflowStatusResponse{} - mi := &file_vtctldata_proto_msgTypes[257] + mi := &file_vtctldata_proto_msgTypes[281] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15587,7 +16819,7 @@ func (x *WorkflowStatusResponse) String() string { func (*WorkflowStatusResponse) ProtoMessage() {} func (x *WorkflowStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[257] + mi := &file_vtctldata_proto_msgTypes[281] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15600,7 +16832,7 @@ func (x *WorkflowStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowStatusResponse.ProtoReflect.Descriptor instead. func (*WorkflowStatusResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{257} + return file_vtctldata_proto_rawDescGZIP(), []int{281} } func (x *WorkflowStatusResponse) GetTableCopyState() map[string]*WorkflowStatusResponse_TableCopyState { @@ -15644,7 +16876,7 @@ type WorkflowSwitchTrafficRequest struct { func (x *WorkflowSwitchTrafficRequest) Reset() { *x = WorkflowSwitchTrafficRequest{} - mi := &file_vtctldata_proto_msgTypes[258] + mi := &file_vtctldata_proto_msgTypes[282] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15656,7 +16888,7 @@ func (x *WorkflowSwitchTrafficRequest) String() string { func (*WorkflowSwitchTrafficRequest) ProtoMessage() {} func (x *WorkflowSwitchTrafficRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[258] + mi := &file_vtctldata_proto_msgTypes[282] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15669,7 +16901,7 @@ func (x *WorkflowSwitchTrafficRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowSwitchTrafficRequest.ProtoReflect.Descriptor instead. func (*WorkflowSwitchTrafficRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{258} + return file_vtctldata_proto_rawDescGZIP(), []int{282} } func (x *WorkflowSwitchTrafficRequest) GetKeyspace() string { @@ -15768,7 +17000,7 @@ type WorkflowSwitchTrafficResponse struct { func (x *WorkflowSwitchTrafficResponse) Reset() { *x = WorkflowSwitchTrafficResponse{} - mi := &file_vtctldata_proto_msgTypes[259] + mi := &file_vtctldata_proto_msgTypes[283] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15780,7 +17012,7 @@ func (x *WorkflowSwitchTrafficResponse) String() string { func (*WorkflowSwitchTrafficResponse) ProtoMessage() {} func (x *WorkflowSwitchTrafficResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[259] + mi := &file_vtctldata_proto_msgTypes[283] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15793,7 +17025,7 @@ func (x *WorkflowSwitchTrafficResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowSwitchTrafficResponse.ProtoReflect.Descriptor instead. func (*WorkflowSwitchTrafficResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{259} + return file_vtctldata_proto_rawDescGZIP(), []int{283} } func (x *WorkflowSwitchTrafficResponse) GetSummary() string { @@ -15836,7 +17068,7 @@ type WorkflowUpdateRequest struct { func (x *WorkflowUpdateRequest) Reset() { *x = WorkflowUpdateRequest{} - mi := &file_vtctldata_proto_msgTypes[260] + mi := &file_vtctldata_proto_msgTypes[284] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15848,7 +17080,7 @@ func (x *WorkflowUpdateRequest) String() string { func (*WorkflowUpdateRequest) ProtoMessage() {} func (x *WorkflowUpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[260] + mi := &file_vtctldata_proto_msgTypes[284] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15861,7 +17093,7 @@ func (x *WorkflowUpdateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowUpdateRequest.ProtoReflect.Descriptor instead. func (*WorkflowUpdateRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{260} + return file_vtctldata_proto_rawDescGZIP(), []int{284} } func (x *WorkflowUpdateRequest) GetKeyspace() string { @@ -15888,7 +17120,7 @@ type WorkflowUpdateResponse struct { func (x *WorkflowUpdateResponse) Reset() { *x = WorkflowUpdateResponse{} - mi := &file_vtctldata_proto_msgTypes[261] + mi := &file_vtctldata_proto_msgTypes[285] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15900,7 +17132,7 @@ func (x *WorkflowUpdateResponse) String() string { func (*WorkflowUpdateResponse) ProtoMessage() {} func (x *WorkflowUpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[261] + mi := &file_vtctldata_proto_msgTypes[285] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15913,7 +17145,7 @@ func (x *WorkflowUpdateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowUpdateResponse.ProtoReflect.Descriptor instead. func (*WorkflowUpdateResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{261} + return file_vtctldata_proto_rawDescGZIP(), []int{285} } func (x *WorkflowUpdateResponse) GetSummary() string { @@ -15938,7 +17170,7 @@ type GetMirrorRulesRequest struct { func (x *GetMirrorRulesRequest) Reset() { *x = GetMirrorRulesRequest{} - mi := &file_vtctldata_proto_msgTypes[262] + mi := &file_vtctldata_proto_msgTypes[286] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15950,7 +17182,7 @@ func (x *GetMirrorRulesRequest) String() string { func (*GetMirrorRulesRequest) ProtoMessage() {} func (x *GetMirrorRulesRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[262] + mi := &file_vtctldata_proto_msgTypes[286] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15963,7 +17195,7 @@ func (x *GetMirrorRulesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMirrorRulesRequest.ProtoReflect.Descriptor instead. func (*GetMirrorRulesRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{262} + return file_vtctldata_proto_rawDescGZIP(), []int{286} } type GetMirrorRulesResponse struct { @@ -15975,7 +17207,7 @@ type GetMirrorRulesResponse struct { func (x *GetMirrorRulesResponse) Reset() { *x = GetMirrorRulesResponse{} - mi := &file_vtctldata_proto_msgTypes[263] + mi := &file_vtctldata_proto_msgTypes[287] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -15987,7 +17219,7 @@ func (x *GetMirrorRulesResponse) String() string { func (*GetMirrorRulesResponse) ProtoMessage() {} func (x *GetMirrorRulesResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[263] + mi := &file_vtctldata_proto_msgTypes[287] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16000,7 +17232,7 @@ func (x *GetMirrorRulesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMirrorRulesResponse.ProtoReflect.Descriptor instead. func (*GetMirrorRulesResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{263} + return file_vtctldata_proto_rawDescGZIP(), []int{287} } func (x *GetMirrorRulesResponse) GetMirrorRules() *vschema.MirrorRules { @@ -16022,7 +17254,7 @@ type WorkflowMirrorTrafficRequest struct { func (x *WorkflowMirrorTrafficRequest) Reset() { *x = WorkflowMirrorTrafficRequest{} - mi := &file_vtctldata_proto_msgTypes[264] + mi := &file_vtctldata_proto_msgTypes[288] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16034,7 +17266,7 @@ func (x *WorkflowMirrorTrafficRequest) String() string { func (*WorkflowMirrorTrafficRequest) ProtoMessage() {} func (x *WorkflowMirrorTrafficRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[264] + mi := &file_vtctldata_proto_msgTypes[288] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16047,7 +17279,7 @@ func (x *WorkflowMirrorTrafficRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowMirrorTrafficRequest.ProtoReflect.Descriptor instead. func (*WorkflowMirrorTrafficRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{264} + return file_vtctldata_proto_rawDescGZIP(), []int{288} } func (x *WorkflowMirrorTrafficRequest) GetKeyspace() string { @@ -16089,7 +17321,7 @@ type WorkflowMirrorTrafficResponse struct { func (x *WorkflowMirrorTrafficResponse) Reset() { *x = WorkflowMirrorTrafficResponse{} - mi := &file_vtctldata_proto_msgTypes[265] + mi := &file_vtctldata_proto_msgTypes[289] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16101,7 +17333,7 @@ func (x *WorkflowMirrorTrafficResponse) String() string { func (*WorkflowMirrorTrafficResponse) ProtoMessage() {} func (x *WorkflowMirrorTrafficResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[265] + mi := &file_vtctldata_proto_msgTypes[289] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16114,7 +17346,7 @@ func (x *WorkflowMirrorTrafficResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowMirrorTrafficResponse.ProtoReflect.Descriptor instead. func (*WorkflowMirrorTrafficResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{265} + return file_vtctldata_proto_rawDescGZIP(), []int{289} } func (x *WorkflowMirrorTrafficResponse) GetSummary() string { @@ -16148,7 +17380,7 @@ type Workflow_ReplicationLocation struct { func (x *Workflow_ReplicationLocation) Reset() { *x = Workflow_ReplicationLocation{} - mi := &file_vtctldata_proto_msgTypes[268] + mi := &file_vtctldata_proto_msgTypes[292] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16160,7 +17392,7 @@ func (x *Workflow_ReplicationLocation) String() string { func (*Workflow_ReplicationLocation) ProtoMessage() {} func (x *Workflow_ReplicationLocation) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[268] + mi := &file_vtctldata_proto_msgTypes[292] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16201,7 +17433,7 @@ type Workflow_ShardStream struct { func (x *Workflow_ShardStream) Reset() { *x = Workflow_ShardStream{} - mi := &file_vtctldata_proto_msgTypes[269] + mi := &file_vtctldata_proto_msgTypes[293] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16213,7 +17445,7 @@ func (x *Workflow_ShardStream) String() string { func (*Workflow_ShardStream) ProtoMessage() {} func (x *Workflow_ShardStream) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[269] + mi := &file_vtctldata_proto_msgTypes[293] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16286,7 +17518,7 @@ type Workflow_Stream struct { func (x *Workflow_Stream) Reset() { *x = Workflow_Stream{} - mi := &file_vtctldata_proto_msgTypes[270] + mi := &file_vtctldata_proto_msgTypes[294] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16298,7 +17530,7 @@ func (x *Workflow_Stream) String() string { func (*Workflow_Stream) ProtoMessage() {} func (x *Workflow_Stream) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[270] + mi := &file_vtctldata_proto_msgTypes[294] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16465,7 +17697,7 @@ type Workflow_Stream_CopyState struct { func (x *Workflow_Stream_CopyState) Reset() { *x = Workflow_Stream_CopyState{} - mi := &file_vtctldata_proto_msgTypes[271] + mi := &file_vtctldata_proto_msgTypes[295] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16477,7 +17709,7 @@ func (x *Workflow_Stream_CopyState) String() string { func (*Workflow_Stream_CopyState) ProtoMessage() {} func (x *Workflow_Stream_CopyState) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[271] + mi := &file_vtctldata_proto_msgTypes[295] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16530,7 +17762,7 @@ type Workflow_Stream_Log struct { func (x *Workflow_Stream_Log) Reset() { *x = Workflow_Stream_Log{} - mi := &file_vtctldata_proto_msgTypes[272] + mi := &file_vtctldata_proto_msgTypes[296] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16542,7 +17774,7 @@ func (x *Workflow_Stream_Log) String() string { func (*Workflow_Stream_Log) ProtoMessage() {} func (x *Workflow_Stream_Log) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[272] + mi := &file_vtctldata_proto_msgTypes[296] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16624,7 +17856,7 @@ type Workflow_Stream_ThrottlerStatus struct { func (x *Workflow_Stream_ThrottlerStatus) Reset() { *x = Workflow_Stream_ThrottlerStatus{} - mi := &file_vtctldata_proto_msgTypes[273] + mi := &file_vtctldata_proto_msgTypes[297] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16636,7 +17868,7 @@ func (x *Workflow_Stream_ThrottlerStatus) String() string { func (*Workflow_Stream_ThrottlerStatus) ProtoMessage() {} func (x *Workflow_Stream_ThrottlerStatus) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[273] + mi := &file_vtctldata_proto_msgTypes[297] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16675,7 +17907,7 @@ type ApplyVSchemaResponse_ParamList struct { func (x *ApplyVSchemaResponse_ParamList) Reset() { *x = ApplyVSchemaResponse_ParamList{} - mi := &file_vtctldata_proto_msgTypes[276] + mi := &file_vtctldata_proto_msgTypes[300] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16687,7 +17919,7 @@ func (x *ApplyVSchemaResponse_ParamList) String() string { func (*ApplyVSchemaResponse_ParamList) ProtoMessage() {} func (x *ApplyVSchemaResponse_ParamList) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[276] + mi := &file_vtctldata_proto_msgTypes[300] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16719,7 +17951,7 @@ type GetSrvKeyspaceNamesResponse_NameList struct { func (x *GetSrvKeyspaceNamesResponse_NameList) Reset() { *x = GetSrvKeyspaceNamesResponse_NameList{} - mi := &file_vtctldata_proto_msgTypes[288] + mi := &file_vtctldata_proto_msgTypes[312] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16731,7 +17963,7 @@ func (x *GetSrvKeyspaceNamesResponse_NameList) String() string { func (*GetSrvKeyspaceNamesResponse_NameList) ProtoMessage() {} func (x *GetSrvKeyspaceNamesResponse_NameList) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[288] + mi := &file_vtctldata_proto_msgTypes[312] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16765,7 +17997,7 @@ type MoveTablesCreateResponse_TabletInfo struct { func (x *MoveTablesCreateResponse_TabletInfo) Reset() { *x = MoveTablesCreateResponse_TabletInfo{} - mi := &file_vtctldata_proto_msgTypes[292] + mi := &file_vtctldata_proto_msgTypes[316] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16777,7 +18009,7 @@ func (x *MoveTablesCreateResponse_TabletInfo) String() string { func (*MoveTablesCreateResponse_TabletInfo) ProtoMessage() {} func (x *MoveTablesCreateResponse_TabletInfo) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[292] + mi := &file_vtctldata_proto_msgTypes[316] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16818,7 +18050,7 @@ type WorkflowDeleteResponse_TabletInfo struct { func (x *WorkflowDeleteResponse_TabletInfo) Reset() { *x = WorkflowDeleteResponse_TabletInfo{} - mi := &file_vtctldata_proto_msgTypes[302] + mi := &file_vtctldata_proto_msgTypes[327] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16830,7 +18062,7 @@ func (x *WorkflowDeleteResponse_TabletInfo) String() string { func (*WorkflowDeleteResponse_TabletInfo) ProtoMessage() {} func (x *WorkflowDeleteResponse_TabletInfo) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[302] + mi := &file_vtctldata_proto_msgTypes[327] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16843,7 +18075,7 @@ func (x *WorkflowDeleteResponse_TabletInfo) ProtoReflect() protoreflect.Message // Deprecated: Use WorkflowDeleteResponse_TabletInfo.ProtoReflect.Descriptor instead. func (*WorkflowDeleteResponse_TabletInfo) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{255, 0} + return file_vtctldata_proto_rawDescGZIP(), []int{279, 0} } func (x *WorkflowDeleteResponse_TabletInfo) GetTablet() *topodata.TabletAlias { @@ -16874,7 +18106,7 @@ type WorkflowStatusResponse_TableCopyState struct { func (x *WorkflowStatusResponse_TableCopyState) Reset() { *x = WorkflowStatusResponse_TableCopyState{} - mi := &file_vtctldata_proto_msgTypes[303] + mi := &file_vtctldata_proto_msgTypes[328] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16886,7 +18118,7 @@ func (x *WorkflowStatusResponse_TableCopyState) String() string { func (*WorkflowStatusResponse_TableCopyState) ProtoMessage() {} func (x *WorkflowStatusResponse_TableCopyState) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[303] + mi := &file_vtctldata_proto_msgTypes[328] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16899,7 +18131,7 @@ func (x *WorkflowStatusResponse_TableCopyState) ProtoReflect() protoreflect.Mess // Deprecated: Use WorkflowStatusResponse_TableCopyState.ProtoReflect.Descriptor instead. func (*WorkflowStatusResponse_TableCopyState) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{257, 0} + return file_vtctldata_proto_rawDescGZIP(), []int{281, 0} } func (x *WorkflowStatusResponse_TableCopyState) GetRowsCopied() int64 { @@ -16958,7 +18190,7 @@ type WorkflowStatusResponse_ShardStreamState struct { func (x *WorkflowStatusResponse_ShardStreamState) Reset() { *x = WorkflowStatusResponse_ShardStreamState{} - mi := &file_vtctldata_proto_msgTypes[304] + mi := &file_vtctldata_proto_msgTypes[329] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -16970,7 +18202,7 @@ func (x *WorkflowStatusResponse_ShardStreamState) String() string { func (*WorkflowStatusResponse_ShardStreamState) ProtoMessage() {} func (x *WorkflowStatusResponse_ShardStreamState) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[304] + mi := &file_vtctldata_proto_msgTypes[329] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16983,7 +18215,7 @@ func (x *WorkflowStatusResponse_ShardStreamState) ProtoReflect() protoreflect.Me // Deprecated: Use WorkflowStatusResponse_ShardStreamState.ProtoReflect.Descriptor instead. func (*WorkflowStatusResponse_ShardStreamState) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{257, 1} + return file_vtctldata_proto_rawDescGZIP(), []int{281, 1} } func (x *WorkflowStatusResponse_ShardStreamState) GetId() int32 { @@ -17037,7 +18269,7 @@ type WorkflowStatusResponse_ShardStreams struct { func (x *WorkflowStatusResponse_ShardStreams) Reset() { *x = WorkflowStatusResponse_ShardStreams{} - mi := &file_vtctldata_proto_msgTypes[305] + mi := &file_vtctldata_proto_msgTypes[330] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17049,7 +18281,7 @@ func (x *WorkflowStatusResponse_ShardStreams) String() string { func (*WorkflowStatusResponse_ShardStreams) ProtoMessage() {} func (x *WorkflowStatusResponse_ShardStreams) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[305] + mi := &file_vtctldata_proto_msgTypes[330] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17062,7 +18294,7 @@ func (x *WorkflowStatusResponse_ShardStreams) ProtoReflect() protoreflect.Messag // Deprecated: Use WorkflowStatusResponse_ShardStreams.ProtoReflect.Descriptor instead. func (*WorkflowStatusResponse_ShardStreams) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{257, 2} + return file_vtctldata_proto_rawDescGZIP(), []int{281, 2} } func (x *WorkflowStatusResponse_ShardStreams) GetStreams() []*WorkflowStatusResponse_ShardStreamState { @@ -17084,7 +18316,7 @@ type WorkflowUpdateResponse_TabletInfo struct { func (x *WorkflowUpdateResponse_TabletInfo) Reset() { *x = WorkflowUpdateResponse_TabletInfo{} - mi := &file_vtctldata_proto_msgTypes[308] + mi := &file_vtctldata_proto_msgTypes[333] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17096,7 +18328,7 @@ func (x *WorkflowUpdateResponse_TabletInfo) String() string { func (*WorkflowUpdateResponse_TabletInfo) ProtoMessage() {} func (x *WorkflowUpdateResponse_TabletInfo) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[308] + mi := &file_vtctldata_proto_msgTypes[333] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17109,7 +18341,7 @@ func (x *WorkflowUpdateResponse_TabletInfo) ProtoReflect() protoreflect.Message // Deprecated: Use WorkflowUpdateResponse_TabletInfo.ProtoReflect.Descriptor instead. func (*WorkflowUpdateResponse_TabletInfo) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{261, 0} + return file_vtctldata_proto_rawDescGZIP(), []int{285, 0} } func (x *WorkflowUpdateResponse_TabletInfo) GetTablet() *topodata.TabletAlias { @@ -19592,213 +20824,368 @@ var file_vtctldata_proto_rawDesc = string([]byte{ 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x22, 0x13, 0x0a, 0x11, 0x56, 0x44, 0x69, 0x66, 0x66, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x94, 0x02, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, + 0x22, 0x8e, 0x01, 0x0a, 0x14, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x76, 0x5f, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x72, 0x61, 0x66, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x64, 0x72, 0x61, 0x66, 0x74, 0x12, 0x22, 0x0a, + 0x0d, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4a, 0x73, 0x6f, + 0x6e, 0x22, 0x17, 0x0a, 0x15, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5e, 0x0a, 0x11, 0x56, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x22, 0x0a, 0x0d, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x64, + 0x72, 0x61, 0x66, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x6e, 0x63, + 0x6c, 0x75, 0x64, 0x65, 0x44, 0x72, 0x61, 0x66, 0x74, 0x73, 0x22, 0x42, 0x0a, 0x12, 0x56, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2c, 0x0a, 0x08, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x07, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0xab, + 0x03, 0x0a, 0x14, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x76, 0x5f, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x73, + 0x68, 0x61, 0x72, 0x64, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x07, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x2d, 0x0a, 0x10, 0x66, 0x6f, + 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0e, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, + 0x65, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x64, 0x72, 0x61, + 0x66, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x05, 0x64, 0x72, 0x61, 0x66, + 0x74, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x74, 0x65, + 0x6e, 0x61, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x48, 0x03, 0x52, 0x0b, 0x6d, 0x75, + 0x6c, 0x74, 0x69, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x36, 0x0a, 0x15, + 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x12, 0x74, + 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, + 0x65, 0x88, 0x01, 0x01, 0x12, 0x36, 0x0a, 0x15, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x05, 0x52, 0x12, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, + 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x65, 0x64, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x66, 0x6f, 0x72, + 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x42, 0x08, 0x0a, + 0x06, 0x5f, 0x64, 0x72, 0x61, 0x66, 0x74, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x6d, 0x75, 0x6c, 0x74, + 0x69, 0x5f, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x74, 0x65, 0x6e, + 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, + 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x17, 0x0a, 0x15, + 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x0a, 0x15, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, + 0x0a, 0x0d, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, + 0x6d, 0x65, 0x22, 0x18, 0x0a, 0x16, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x75, 0x62, + 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x82, 0x02, 0x0a, + 0x17, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x56, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x76, 0x5f, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, + 0x76, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x76, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, + 0x0b, 0x76, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x76, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x46, + 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, + 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x41, 0x64, 0x64, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0x1a, 0x0a, 0x18, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x56, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x61, 0x0a, + 0x1a, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x56, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x76, + 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x76, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x4e, 0x61, 0x6d, 0x65, + 0x22, 0x1d, 0x0a, 0x1b, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x8d, 0x02, 0x0a, 0x1d, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x4c, 0x6f, + 0x6f, 0x6b, 0x75, 0x70, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, + 0x5f, 0x76, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x10, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x63, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x72, 0x6f, 0x6d, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, + 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0b, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x4e, 0x75, 0x6c, 0x6c, 0x73, 0x22, + 0x20, 0x0a, 0x1e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x4c, 0x6f, 0x6f, + 0x6b, 0x75, 0x70, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0xb8, 0x01, 0x0a, 0x17, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, + 0x0d, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x72, 0x69, + 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x76, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x56, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x5f, 0x61, 0x6c, 0x6c, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x64, 0x64, 0x41, 0x6c, 0x6c, 0x22, 0x1a, 0x0a, 0x18, + 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0x0a, 0x1a, 0x56, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x76, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x73, 0x22, 0x1d, 0x0a, 0x1b, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x97, 0x01, 0x0a, 0x1e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, + 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x76, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x21, 0x0a, 0x1f, 0x56, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, + 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9f, + 0x01, 0x0a, 0x19, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x53, 0x65, 0x71, + 0x75, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0d, + 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, + 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0e, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x22, 0x1c, 0x0a, 0x1a, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x53, 0x65, + 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x77, + 0x0a, 0x1a, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0d, + 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x1d, 0x0a, 0x1b, 0x56, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x53, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x94, 0x02, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x65, 0x70, + 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65, 0x65, + 0x70, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2c, 0x0a, 0x12, 0x6b, 0x65, 0x65, 0x70, 0x5f, 0x72, 0x6f, + 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x10, 0x6b, 0x65, 0x65, 0x70, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, 0x05, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x64, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x69, 0x67, 0x6e, 0x6f, 0x72, + 0x65, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xd1, 0x01, + 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, + 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, + 0x72, 0x79, 0x12, 0x46, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x1a, 0x55, 0x0a, 0x0a, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2d, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, + 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x64, 0x22, 0x67, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x65, 0x70, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6b, 0x65, 0x65, 0x70, 0x44, 0x61, 0x74, 0x61, 0x12, - 0x2c, 0x0a, 0x12, 0x6b, 0x65, 0x65, 0x70, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, - 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6b, 0x65, 0x65, - 0x70, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x68, 0x61, 0x72, 0x64, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, - 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x69, 0x7a, - 0x65, 0x12, 0x34, 0x0a, 0x16, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x14, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, - 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xd1, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x46, 0x0a, 0x07, - 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, + 0x6f, 0x77, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x22, 0xe6, 0x07, 0x0a, 0x16, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x10, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, + 0x6f, 0x70, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x35, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, + 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x58, 0x0a, 0x0d, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, + 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x64, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x1a, 0x55, 0x0a, 0x0a, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x2d, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x22, 0x67, 0x0a, 0x15, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, + 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, + 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0xe8, 0x01, 0x0a, 0x0e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, + 0x6f, 0x70, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x6f, 0x77, 0x73, + 0x5f, 0x63, 0x6f, 0x70, 0x69, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, + 0x6f, 0x77, 0x73, 0x43, 0x6f, 0x70, 0x69, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x6f, 0x77, + 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, + 0x6f, 0x77, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x6f, 0x77, 0x73, + 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x02, 0x52, 0x0e, 0x72, 0x6f, 0x77, 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, + 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x69, 0x65, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x43, 0x6f, + 0x70, 0x69, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, + 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x29, 0x0a, 0x10, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x70, + 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52, + 0x0f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, + 0x1a, 0xbc, 0x01, 0x0a, 0x10, 0x53, 0x68, 0x61, 0x72, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x06, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, + 0x68, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x69, + 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x1a, + 0x5c, 0x0a, 0x0c, 0x53, 0x68, 0x61, 0x72, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12, + 0x4c, 0x0a, 0x07, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x32, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x52, 0x07, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x1a, 0x73, 0x0a, + 0x13, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x46, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, + 0x70, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x1a, 0x6f, 0x0a, 0x11, 0x53, 0x68, 0x61, 0x72, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0x85, 0x04, 0x0a, 0x1c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x16, 0x0a, 0x06, - 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x68, - 0x61, 0x72, 0x64, 0x73, 0x22, 0xe6, 0x07, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x5f, 0x0a, 0x10, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x5f, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x76, 0x74, 0x63, 0x74, - 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x0e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x58, 0x0a, 0x0d, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x73, 0x68, - 0x61, 0x72, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x72, - 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, - 0xe8, 0x01, 0x0a, 0x0e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x69, 0x65, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x6f, 0x77, 0x73, 0x43, 0x6f, 0x70, - 0x69, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, - 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x6f, 0x77, 0x73, 0x54, 0x6f, 0x74, - 0x61, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, - 0x6e, 0x74, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0e, 0x72, 0x6f, 0x77, - 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, - 0x79, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x69, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x70, 0x69, 0x65, 0x64, 0x12, 0x1f, - 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, - 0x29, 0x0a, 0x10, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, - 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0f, 0x62, 0x79, 0x74, 0x65, 0x73, - 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x1a, 0xbc, 0x01, 0x0a, 0x10, 0x53, - 0x68, 0x61, 0x72, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x2d, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x21, - 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, - 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x1a, 0x5c, 0x0a, 0x0c, 0x53, 0x68, 0x61, - 0x72, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12, 0x4c, 0x0a, 0x07, 0x73, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x74, 0x63, - 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x68, - 0x61, 0x72, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x07, - 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x1a, 0x73, 0x0a, 0x13, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x43, 0x6f, 0x70, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x46, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x30, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x6f, 0x0a, 0x11, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x85, 0x04, - 0x0a, 0x1c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, - 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x12, 0x37, 0x0a, 0x0c, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x4f, 0x0a, 0x1b, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x61, 0x67, 0x5f, 0x61, 0x6c, 0x6c, - 0x6f, 0x77, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x6d, 0x61, - 0x78, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x61, 0x67, 0x41, - 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x12, 0x3c, 0x0a, 0x1a, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x65, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x52, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x44, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x17, - 0x0a, 0x07, 0x64, 0x72, 0x79, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x06, 0x64, 0x72, 0x79, 0x52, 0x75, 0x6e, 0x12, 0x3e, 0x0a, 0x1b, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, - 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x12, - 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, - 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0xa7, 0x01, 0x0a, 0x1d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, - 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, - 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, - 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x64, 0x72, 0x79, 0x5f, 0x72, - 0x75, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x0d, 0x64, 0x72, 0x79, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, - 0x90, 0x01, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x5b, 0x0a, 0x0e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x52, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x22, 0xd1, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, + 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x14, 0x0a, 0x05, + 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, + 0x6c, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x4f, 0x0a, 0x1b, 0x6d, + 0x61, 0x78, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, + 0x61, 0x67, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x76, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x18, 0x6d, 0x61, 0x78, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4c, 0x61, 0x67, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x12, 0x3c, 0x0a, 0x1a, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f, 0x72, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x18, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x69, + 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, + 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, + 0x6f, 0x75, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, + 0x65, 0x6f, 0x75, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x72, 0x79, 0x5f, 0x72, 0x75, 0x6e, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x64, 0x72, 0x79, 0x52, 0x75, 0x6e, 0x12, 0x3e, 0x0a, + 0x1b, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x19, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x54, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x16, 0x0a, + 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, + 0x68, 0x61, 0x72, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0xa7, 0x01, 0x0a, 0x1d, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, 0x72, + 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x46, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x1a, - 0x55, 0x0a, 0x0a, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2d, 0x0a, - 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, - 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, - 0x6c, 0x69, 0x61, 0x73, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4d, 0x69, 0x72, - 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x51, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0c, 0x6d, 0x69, 0x72, - 0x72, 0x6f, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x14, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, - 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x0b, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, - 0x65, 0x73, 0x22, 0xa9, 0x01, 0x0a, 0x1c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, - 0x69, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, - 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x37, 0x0a, 0x0c, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x22, 0x7f, - 0x0a, 0x1d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, - 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x75, - 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2a, - 0x4a, 0x0a, 0x15, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x55, 0x53, 0x54, - 0x4f, 0x4d, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x4f, 0x56, 0x45, 0x54, 0x41, 0x42, 0x4c, - 0x45, 0x53, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x4c, 0x4f, - 0x4f, 0x4b, 0x55, 0x50, 0x49, 0x4e, 0x44, 0x45, 0x58, 0x10, 0x02, 0x2a, 0x38, 0x0a, 0x0d, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x08, 0x0a, 0x04, - 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x43, 0x45, 0x4e, 0x44, - 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x53, 0x43, 0x45, 0x4e, 0x44, - 0x49, 0x4e, 0x47, 0x10, 0x02, 0x2a, 0x42, 0x0a, 0x1c, 0x53, 0x68, 0x61, 0x72, 0x64, 0x65, 0x64, - 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x6e, - 0x64, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x09, 0x0a, 0x05, 0x4c, 0x45, 0x41, 0x56, 0x45, 0x10, 0x00, - 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, - 0x52, 0x45, 0x50, 0x4c, 0x41, 0x43, 0x45, 0x10, 0x02, 0x42, 0x28, 0x5a, 0x26, 0x76, 0x69, 0x74, - 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, - 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x26, 0x0a, + 0x0f, 0x64, 0x72, 0x79, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x72, 0x79, 0x52, 0x75, 0x6e, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x90, 0x01, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x5b, 0x0a, 0x0e, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xd1, 0x01, 0x0a, 0x16, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x46, 0x0a, + 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, + 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x64, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x1a, 0x55, 0x0a, 0x0a, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x49, + 0x6e, 0x66, 0x6f, 0x12, 0x2d, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x22, 0x17, 0x0a, 0x15, + 0x47, 0x65, 0x74, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x51, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4d, 0x69, 0x72, 0x72, + 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x37, 0x0a, 0x0c, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, + 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x0b, 0x6d, 0x69, 0x72, + 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, 0xa9, 0x01, 0x0a, 0x1c, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x72, 0x61, 0x66, 0x66, + 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x12, 0x37, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x65, + 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x70, 0x65, 0x72, + 0x63, 0x65, 0x6e, 0x74, 0x22, 0x7f, 0x0a, 0x1d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, + 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x2a, 0x4a, 0x0a, 0x15, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, + 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x0a, + 0x0a, 0x06, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x4f, + 0x56, 0x45, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x53, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x52, + 0x45, 0x41, 0x54, 0x45, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x49, 0x4e, 0x44, 0x45, 0x58, 0x10, + 0x02, 0x2a, 0x38, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x69, + 0x6e, 0x67, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, + 0x41, 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x44, + 0x45, 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x2a, 0x42, 0x0a, 0x1c, 0x53, + 0x68, 0x61, 0x72, 0x64, 0x65, 0x64, 0x41, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x09, 0x0a, 0x05, 0x4c, + 0x45, 0x41, 0x56, 0x45, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, + 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x50, 0x4c, 0x41, 0x43, 0x45, 0x10, 0x02, 0x42, + 0x28, 0x5a, 0x26, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, + 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, }) var ( @@ -19814,7 +21201,7 @@ func file_vtctldata_proto_rawDescGZIP() []byte { } var file_vtctldata_proto_enumTypes = make([]protoimpl.EnumInfo, 5) -var file_vtctldata_proto_msgTypes = make([]protoimpl.MessageInfo, 309) +var file_vtctldata_proto_msgTypes = make([]protoimpl.MessageInfo, 334) var file_vtctldata_proto_goTypes = []any{ (MaterializationIntent)(0), // 0: vtctldata.MaterializationIntent (QueryOrdering)(0), // 1: vtctldata.QueryOrdering @@ -20075,359 +21462,386 @@ var file_vtctldata_proto_goTypes = []any{ (*VDiffShowResponse)(nil), // 256: vtctldata.VDiffShowResponse (*VDiffStopRequest)(nil), // 257: vtctldata.VDiffStopRequest (*VDiffStopResponse)(nil), // 258: vtctldata.VDiffStopResponse - (*WorkflowDeleteRequest)(nil), // 259: vtctldata.WorkflowDeleteRequest - (*WorkflowDeleteResponse)(nil), // 260: vtctldata.WorkflowDeleteResponse - (*WorkflowStatusRequest)(nil), // 261: vtctldata.WorkflowStatusRequest - (*WorkflowStatusResponse)(nil), // 262: vtctldata.WorkflowStatusResponse - (*WorkflowSwitchTrafficRequest)(nil), // 263: vtctldata.WorkflowSwitchTrafficRequest - (*WorkflowSwitchTrafficResponse)(nil), // 264: vtctldata.WorkflowSwitchTrafficResponse - (*WorkflowUpdateRequest)(nil), // 265: vtctldata.WorkflowUpdateRequest - (*WorkflowUpdateResponse)(nil), // 266: vtctldata.WorkflowUpdateResponse - (*GetMirrorRulesRequest)(nil), // 267: vtctldata.GetMirrorRulesRequest - (*GetMirrorRulesResponse)(nil), // 268: vtctldata.GetMirrorRulesResponse - (*WorkflowMirrorTrafficRequest)(nil), // 269: vtctldata.WorkflowMirrorTrafficRequest - (*WorkflowMirrorTrafficResponse)(nil), // 270: vtctldata.WorkflowMirrorTrafficResponse - nil, // 271: vtctldata.WorkflowOptions.ConfigEntry - nil, // 272: vtctldata.Workflow.ShardStreamsEntry - (*Workflow_ReplicationLocation)(nil), // 273: vtctldata.Workflow.ReplicationLocation - (*Workflow_ShardStream)(nil), // 274: vtctldata.Workflow.ShardStream - (*Workflow_Stream)(nil), // 275: vtctldata.Workflow.Stream - (*Workflow_Stream_CopyState)(nil), // 276: vtctldata.Workflow.Stream.CopyState - (*Workflow_Stream_Log)(nil), // 277: vtctldata.Workflow.Stream.Log - (*Workflow_Stream_ThrottlerStatus)(nil), // 278: vtctldata.Workflow.Stream.ThrottlerStatus - nil, // 279: vtctldata.ApplySchemaResponse.RowsAffectedByShardEntry - nil, // 280: vtctldata.ApplyVSchemaResponse.UnknownVindexParamsEntry - (*ApplyVSchemaResponse_ParamList)(nil), // 281: vtctldata.ApplyVSchemaResponse.ParamList - nil, // 282: vtctldata.CancelSchemaMigrationResponse.RowsAffectedByShardEntry - nil, // 283: vtctldata.ChangeTabletTagsRequest.TagsEntry - nil, // 284: vtctldata.ChangeTabletTagsResponse.BeforeTagsEntry - nil, // 285: vtctldata.ChangeTabletTagsResponse.AfterTagsEntry - nil, // 286: vtctldata.CleanupSchemaMigrationResponse.RowsAffectedByShardEntry - nil, // 287: vtctldata.CompleteSchemaMigrationResponse.RowsAffectedByShardEntry - nil, // 288: vtctldata.FindAllShardsInKeyspaceResponse.ShardsEntry - nil, // 289: vtctldata.ForceCutOverSchemaMigrationResponse.RowsAffectedByShardEntry - nil, // 290: vtctldata.GetCellsAliasesResponse.AliasesEntry - nil, // 291: vtctldata.GetShardReplicationResponse.ShardReplicationByCellEntry - nil, // 292: vtctldata.GetSrvKeyspaceNamesResponse.NamesEntry - (*GetSrvKeyspaceNamesResponse_NameList)(nil), // 293: vtctldata.GetSrvKeyspaceNamesResponse.NameList - nil, // 294: vtctldata.GetSrvKeyspacesResponse.SrvKeyspacesEntry - nil, // 295: vtctldata.GetSrvVSchemasResponse.SrvVSchemasEntry - nil, // 296: vtctldata.LaunchSchemaMigrationResponse.RowsAffectedByShardEntry - (*MoveTablesCreateResponse_TabletInfo)(nil), // 297: vtctldata.MoveTablesCreateResponse.TabletInfo - nil, // 298: vtctldata.RetrySchemaMigrationResponse.RowsAffectedByShardEntry - nil, // 299: vtctldata.ShardReplicationPositionsResponse.ReplicationStatusesEntry - nil, // 300: vtctldata.ShardReplicationPositionsResponse.TabletMapEntry - nil, // 301: vtctldata.ValidateResponse.ResultsByKeyspaceEntry - nil, // 302: vtctldata.ValidateKeyspaceResponse.ResultsByShardEntry - nil, // 303: vtctldata.ValidateSchemaKeyspaceResponse.ResultsByShardEntry - nil, // 304: vtctldata.ValidateVersionKeyspaceResponse.ResultsByShardEntry - nil, // 305: vtctldata.ValidateVSchemaResponse.ResultsByShardEntry - nil, // 306: vtctldata.VDiffShowResponse.TabletResponsesEntry - (*WorkflowDeleteResponse_TabletInfo)(nil), // 307: vtctldata.WorkflowDeleteResponse.TabletInfo - (*WorkflowStatusResponse_TableCopyState)(nil), // 308: vtctldata.WorkflowStatusResponse.TableCopyState - (*WorkflowStatusResponse_ShardStreamState)(nil), // 309: vtctldata.WorkflowStatusResponse.ShardStreamState - (*WorkflowStatusResponse_ShardStreams)(nil), // 310: vtctldata.WorkflowStatusResponse.ShardStreams - nil, // 311: vtctldata.WorkflowStatusResponse.TableCopyStateEntry - nil, // 312: vtctldata.WorkflowStatusResponse.ShardStreamsEntry - (*WorkflowUpdateResponse_TabletInfo)(nil), // 313: vtctldata.WorkflowUpdateResponse.TabletInfo - (*logutil.Event)(nil), // 314: logutil.Event - (tabletmanagerdata.TabletSelectionPreference)(0), // 315: tabletmanagerdata.TabletSelectionPreference - (*topodata.Keyspace)(nil), // 316: topodata.Keyspace - (*vttime.Time)(nil), // 317: vttime.Time - (*topodata.TabletAlias)(nil), // 318: topodata.TabletAlias - (*vttime.Duration)(nil), // 319: vttime.Duration - (*topodata.Shard)(nil), // 320: topodata.Shard - (*topodata.CellInfo)(nil), // 321: topodata.CellInfo - (*vschema.KeyspaceRoutingRules)(nil), // 322: vschema.KeyspaceRoutingRules - (*vschema.RoutingRules)(nil), // 323: vschema.RoutingRules - (*vschema.ShardRoutingRules)(nil), // 324: vschema.ShardRoutingRules - (*vtrpc.CallerID)(nil), // 325: vtrpc.CallerID - (*vschema.Keyspace)(nil), // 326: vschema.Keyspace - (topodata.TabletType)(0), // 327: topodata.TabletType - (*topodata.Tablet)(nil), // 328: topodata.Tablet - (*tabletmanagerdata.CheckThrottlerResponse)(nil), // 329: tabletmanagerdata.CheckThrottlerResponse - (topodata.KeyspaceType)(0), // 330: topodata.KeyspaceType - (*query.QueryResult)(nil), // 331: query.QueryResult - (*tabletmanagerdata.ExecuteHookRequest)(nil), // 332: tabletmanagerdata.ExecuteHookRequest - (*tabletmanagerdata.ExecuteHookResponse)(nil), // 333: tabletmanagerdata.ExecuteHookResponse - (*mysqlctl.BackupInfo)(nil), // 334: mysqlctl.BackupInfo - (*replicationdata.FullStatus)(nil), // 335: replicationdata.FullStatus - (*tabletmanagerdata.Permissions)(nil), // 336: tabletmanagerdata.Permissions - (*tabletmanagerdata.SchemaDefinition)(nil), // 337: tabletmanagerdata.SchemaDefinition - (*topodata.ThrottledAppRule)(nil), // 338: topodata.ThrottledAppRule - (*vschema.SrvVSchema)(nil), // 339: vschema.SrvVSchema - (*tabletmanagerdata.GetThrottlerStatusResponse)(nil), // 340: tabletmanagerdata.GetThrottlerStatusResponse - (*query.TransactionMetadata)(nil), // 341: query.TransactionMetadata - (*query.Target)(nil), // 342: query.Target - (*topodata.ShardReplicationError)(nil), // 343: topodata.ShardReplicationError - (*topodata.KeyRange)(nil), // 344: topodata.KeyRange - (*topodata.CellsAlias)(nil), // 345: topodata.CellsAlias - (*tabletmanagerdata.UpdateVReplicationWorkflowRequest)(nil), // 346: tabletmanagerdata.UpdateVReplicationWorkflowRequest - (*vschema.MirrorRules)(nil), // 347: vschema.MirrorRules - (*topodata.Shard_TabletControl)(nil), // 348: topodata.Shard.TabletControl - (*binlogdata.BinlogSource)(nil), // 349: binlogdata.BinlogSource - (*topodata.ShardReplication)(nil), // 350: topodata.ShardReplication - (*topodata.SrvKeyspace)(nil), // 351: topodata.SrvKeyspace - (*replicationdata.Status)(nil), // 352: replicationdata.Status - (*tabletmanagerdata.VDiffResponse)(nil), // 353: tabletmanagerdata.VDiffResponse + (*VSchemaCreateRequest)(nil), // 259: vtctldata.VSchemaCreateRequest + (*VSchemaCreateResponse)(nil), // 260: vtctldata.VSchemaCreateResponse + (*VSchemaGetRequest)(nil), // 261: vtctldata.VSchemaGetRequest + (*VSchemaGetResponse)(nil), // 262: vtctldata.VSchemaGetResponse + (*VSchemaUpdateRequest)(nil), // 263: vtctldata.VSchemaUpdateRequest + (*VSchemaUpdateResponse)(nil), // 264: vtctldata.VSchemaUpdateResponse + (*VSchemaPublishRequest)(nil), // 265: vtctldata.VSchemaPublishRequest + (*VSchemaPublishResponse)(nil), // 266: vtctldata.VSchemaPublishResponse + (*VSchemaAddVindexRequest)(nil), // 267: vtctldata.VSchemaAddVindexRequest + (*VSchemaAddVindexResponse)(nil), // 268: vtctldata.VSchemaAddVindexResponse + (*VSchemaRemoveVindexRequest)(nil), // 269: vtctldata.VSchemaRemoveVindexRequest + (*VSchemaRemoveVindexResponse)(nil), // 270: vtctldata.VSchemaRemoveVindexResponse + (*VSchemaAddLookupVindexRequest)(nil), // 271: vtctldata.VSchemaAddLookupVindexRequest + (*VSchemaAddLookupVindexResponse)(nil), // 272: vtctldata.VSchemaAddLookupVindexResponse + (*VSchemaAddTablesRequest)(nil), // 273: vtctldata.VSchemaAddTablesRequest + (*VSchemaAddTablesResponse)(nil), // 274: vtctldata.VSchemaAddTablesResponse + (*VSchemaRemoveTablesRequest)(nil), // 275: vtctldata.VSchemaRemoveTablesRequest + (*VSchemaRemoveTablesResponse)(nil), // 276: vtctldata.VSchemaRemoveTablesResponse + (*VSchemaSetPrimaryVindexRequest)(nil), // 277: vtctldata.VSchemaSetPrimaryVindexRequest + (*VSchemaSetPrimaryVindexResponse)(nil), // 278: vtctldata.VSchemaSetPrimaryVindexResponse + (*VSchemaSetSequenceRequest)(nil), // 279: vtctldata.VSchemaSetSequenceRequest + (*VSchemaSetSequenceResponse)(nil), // 280: vtctldata.VSchemaSetSequenceResponse + (*VSchemaSetReferenceRequest)(nil), // 281: vtctldata.VSchemaSetReferenceRequest + (*VSchemaSetReferenceResponse)(nil), // 282: vtctldata.VSchemaSetReferenceResponse + (*WorkflowDeleteRequest)(nil), // 283: vtctldata.WorkflowDeleteRequest + (*WorkflowDeleteResponse)(nil), // 284: vtctldata.WorkflowDeleteResponse + (*WorkflowStatusRequest)(nil), // 285: vtctldata.WorkflowStatusRequest + (*WorkflowStatusResponse)(nil), // 286: vtctldata.WorkflowStatusResponse + (*WorkflowSwitchTrafficRequest)(nil), // 287: vtctldata.WorkflowSwitchTrafficRequest + (*WorkflowSwitchTrafficResponse)(nil), // 288: vtctldata.WorkflowSwitchTrafficResponse + (*WorkflowUpdateRequest)(nil), // 289: vtctldata.WorkflowUpdateRequest + (*WorkflowUpdateResponse)(nil), // 290: vtctldata.WorkflowUpdateResponse + (*GetMirrorRulesRequest)(nil), // 291: vtctldata.GetMirrorRulesRequest + (*GetMirrorRulesResponse)(nil), // 292: vtctldata.GetMirrorRulesResponse + (*WorkflowMirrorTrafficRequest)(nil), // 293: vtctldata.WorkflowMirrorTrafficRequest + (*WorkflowMirrorTrafficResponse)(nil), // 294: vtctldata.WorkflowMirrorTrafficResponse + nil, // 295: vtctldata.WorkflowOptions.ConfigEntry + nil, // 296: vtctldata.Workflow.ShardStreamsEntry + (*Workflow_ReplicationLocation)(nil), // 297: vtctldata.Workflow.ReplicationLocation + (*Workflow_ShardStream)(nil), // 298: vtctldata.Workflow.ShardStream + (*Workflow_Stream)(nil), // 299: vtctldata.Workflow.Stream + (*Workflow_Stream_CopyState)(nil), // 300: vtctldata.Workflow.Stream.CopyState + (*Workflow_Stream_Log)(nil), // 301: vtctldata.Workflow.Stream.Log + (*Workflow_Stream_ThrottlerStatus)(nil), // 302: vtctldata.Workflow.Stream.ThrottlerStatus + nil, // 303: vtctldata.ApplySchemaResponse.RowsAffectedByShardEntry + nil, // 304: vtctldata.ApplyVSchemaResponse.UnknownVindexParamsEntry + (*ApplyVSchemaResponse_ParamList)(nil), // 305: vtctldata.ApplyVSchemaResponse.ParamList + nil, // 306: vtctldata.CancelSchemaMigrationResponse.RowsAffectedByShardEntry + nil, // 307: vtctldata.ChangeTabletTagsRequest.TagsEntry + nil, // 308: vtctldata.ChangeTabletTagsResponse.BeforeTagsEntry + nil, // 309: vtctldata.ChangeTabletTagsResponse.AfterTagsEntry + nil, // 310: vtctldata.CleanupSchemaMigrationResponse.RowsAffectedByShardEntry + nil, // 311: vtctldata.CompleteSchemaMigrationResponse.RowsAffectedByShardEntry + nil, // 312: vtctldata.FindAllShardsInKeyspaceResponse.ShardsEntry + nil, // 313: vtctldata.ForceCutOverSchemaMigrationResponse.RowsAffectedByShardEntry + nil, // 314: vtctldata.GetCellsAliasesResponse.AliasesEntry + nil, // 315: vtctldata.GetShardReplicationResponse.ShardReplicationByCellEntry + nil, // 316: vtctldata.GetSrvKeyspaceNamesResponse.NamesEntry + (*GetSrvKeyspaceNamesResponse_NameList)(nil), // 317: vtctldata.GetSrvKeyspaceNamesResponse.NameList + nil, // 318: vtctldata.GetSrvKeyspacesResponse.SrvKeyspacesEntry + nil, // 319: vtctldata.GetSrvVSchemasResponse.SrvVSchemasEntry + nil, // 320: vtctldata.LaunchSchemaMigrationResponse.RowsAffectedByShardEntry + (*MoveTablesCreateResponse_TabletInfo)(nil), // 321: vtctldata.MoveTablesCreateResponse.TabletInfo + nil, // 322: vtctldata.RetrySchemaMigrationResponse.RowsAffectedByShardEntry + nil, // 323: vtctldata.ShardReplicationPositionsResponse.ReplicationStatusesEntry + nil, // 324: vtctldata.ShardReplicationPositionsResponse.TabletMapEntry + nil, // 325: vtctldata.ValidateResponse.ResultsByKeyspaceEntry + nil, // 326: vtctldata.ValidateKeyspaceResponse.ResultsByShardEntry + nil, // 327: vtctldata.ValidateSchemaKeyspaceResponse.ResultsByShardEntry + nil, // 328: vtctldata.ValidateVersionKeyspaceResponse.ResultsByShardEntry + nil, // 329: vtctldata.ValidateVSchemaResponse.ResultsByShardEntry + nil, // 330: vtctldata.VDiffShowResponse.TabletResponsesEntry + nil, // 331: vtctldata.VSchemaAddVindexRequest.ParamsEntry + (*WorkflowDeleteResponse_TabletInfo)(nil), // 332: vtctldata.WorkflowDeleteResponse.TabletInfo + (*WorkflowStatusResponse_TableCopyState)(nil), // 333: vtctldata.WorkflowStatusResponse.TableCopyState + (*WorkflowStatusResponse_ShardStreamState)(nil), // 334: vtctldata.WorkflowStatusResponse.ShardStreamState + (*WorkflowStatusResponse_ShardStreams)(nil), // 335: vtctldata.WorkflowStatusResponse.ShardStreams + nil, // 336: vtctldata.WorkflowStatusResponse.TableCopyStateEntry + nil, // 337: vtctldata.WorkflowStatusResponse.ShardStreamsEntry + (*WorkflowUpdateResponse_TabletInfo)(nil), // 338: vtctldata.WorkflowUpdateResponse.TabletInfo + (*logutil.Event)(nil), // 339: logutil.Event + (tabletmanagerdata.TabletSelectionPreference)(0), // 340: tabletmanagerdata.TabletSelectionPreference + (*topodata.Keyspace)(nil), // 341: topodata.Keyspace + (*vttime.Time)(nil), // 342: vttime.Time + (*topodata.TabletAlias)(nil), // 343: topodata.TabletAlias + (*vttime.Duration)(nil), // 344: vttime.Duration + (*topodata.Shard)(nil), // 345: topodata.Shard + (*topodata.CellInfo)(nil), // 346: topodata.CellInfo + (*vschema.KeyspaceRoutingRules)(nil), // 347: vschema.KeyspaceRoutingRules + (*vschema.RoutingRules)(nil), // 348: vschema.RoutingRules + (*vschema.ShardRoutingRules)(nil), // 349: vschema.ShardRoutingRules + (*vtrpc.CallerID)(nil), // 350: vtrpc.CallerID + (*vschema.Keyspace)(nil), // 351: vschema.Keyspace + (topodata.TabletType)(0), // 352: topodata.TabletType + (*topodata.Tablet)(nil), // 353: topodata.Tablet + (*tabletmanagerdata.CheckThrottlerResponse)(nil), // 354: tabletmanagerdata.CheckThrottlerResponse + (topodata.KeyspaceType)(0), // 355: topodata.KeyspaceType + (*query.QueryResult)(nil), // 356: query.QueryResult + (*tabletmanagerdata.ExecuteHookRequest)(nil), // 357: tabletmanagerdata.ExecuteHookRequest + (*tabletmanagerdata.ExecuteHookResponse)(nil), // 358: tabletmanagerdata.ExecuteHookResponse + (*mysqlctl.BackupInfo)(nil), // 359: mysqlctl.BackupInfo + (*replicationdata.FullStatus)(nil), // 360: replicationdata.FullStatus + (*tabletmanagerdata.Permissions)(nil), // 361: tabletmanagerdata.Permissions + (*tabletmanagerdata.SchemaDefinition)(nil), // 362: tabletmanagerdata.SchemaDefinition + (*topodata.ThrottledAppRule)(nil), // 363: topodata.ThrottledAppRule + (*vschema.SrvVSchema)(nil), // 364: vschema.SrvVSchema + (*tabletmanagerdata.GetThrottlerStatusResponse)(nil), // 365: tabletmanagerdata.GetThrottlerStatusResponse + (*query.TransactionMetadata)(nil), // 366: query.TransactionMetadata + (*query.Target)(nil), // 367: query.Target + (*topodata.ShardReplicationError)(nil), // 368: topodata.ShardReplicationError + (*topodata.KeyRange)(nil), // 369: topodata.KeyRange + (*topodata.CellsAlias)(nil), // 370: topodata.CellsAlias + (*tabletmanagerdata.UpdateVReplicationWorkflowRequest)(nil), // 371: tabletmanagerdata.UpdateVReplicationWorkflowRequest + (*vschema.MirrorRules)(nil), // 372: vschema.MirrorRules + (*topodata.Shard_TabletControl)(nil), // 373: topodata.Shard.TabletControl + (*binlogdata.BinlogSource)(nil), // 374: binlogdata.BinlogSource + (*topodata.ShardReplication)(nil), // 375: topodata.ShardReplication + (*topodata.SrvKeyspace)(nil), // 376: topodata.SrvKeyspace + (*replicationdata.Status)(nil), // 377: replicationdata.Status + (*tabletmanagerdata.VDiffResponse)(nil), // 378: tabletmanagerdata.VDiffResponse } var file_vtctldata_proto_depIdxs = []int32{ - 314, // 0: vtctldata.ExecuteVtctlCommandResponse.event:type_name -> logutil.Event + 339, // 0: vtctldata.ExecuteVtctlCommandResponse.event:type_name -> logutil.Event 7, // 1: vtctldata.MaterializeSettings.table_settings:type_name -> vtctldata.TableMaterializeSettings 0, // 2: vtctldata.MaterializeSettings.materialization_intent:type_name -> vtctldata.MaterializationIntent - 315, // 3: vtctldata.MaterializeSettings.tablet_selection_preference:type_name -> tabletmanagerdata.TabletSelectionPreference + 340, // 3: vtctldata.MaterializeSettings.tablet_selection_preference:type_name -> tabletmanagerdata.TabletSelectionPreference 12, // 4: vtctldata.MaterializeSettings.workflow_options:type_name -> vtctldata.WorkflowOptions - 316, // 5: vtctldata.Keyspace.keyspace:type_name -> topodata.Keyspace + 341, // 5: vtctldata.Keyspace.keyspace:type_name -> topodata.Keyspace 3, // 6: vtctldata.SchemaMigration.strategy:type_name -> vtctldata.SchemaMigration.Strategy - 317, // 7: vtctldata.SchemaMigration.added_at:type_name -> vttime.Time - 317, // 8: vtctldata.SchemaMigration.requested_at:type_name -> vttime.Time - 317, // 9: vtctldata.SchemaMigration.ready_at:type_name -> vttime.Time - 317, // 10: vtctldata.SchemaMigration.started_at:type_name -> vttime.Time - 317, // 11: vtctldata.SchemaMigration.liveness_timestamp:type_name -> vttime.Time - 317, // 12: vtctldata.SchemaMigration.completed_at:type_name -> vttime.Time - 317, // 13: vtctldata.SchemaMigration.cleaned_up_at:type_name -> vttime.Time + 342, // 7: vtctldata.SchemaMigration.added_at:type_name -> vttime.Time + 342, // 8: vtctldata.SchemaMigration.requested_at:type_name -> vttime.Time + 342, // 9: vtctldata.SchemaMigration.ready_at:type_name -> vttime.Time + 342, // 10: vtctldata.SchemaMigration.started_at:type_name -> vttime.Time + 342, // 11: vtctldata.SchemaMigration.liveness_timestamp:type_name -> vttime.Time + 342, // 12: vtctldata.SchemaMigration.completed_at:type_name -> vttime.Time + 342, // 13: vtctldata.SchemaMigration.cleaned_up_at:type_name -> vttime.Time 4, // 14: vtctldata.SchemaMigration.status:type_name -> vtctldata.SchemaMigration.Status - 318, // 15: vtctldata.SchemaMigration.tablet:type_name -> topodata.TabletAlias - 319, // 16: vtctldata.SchemaMigration.artifact_retention:type_name -> vttime.Duration - 317, // 17: vtctldata.SchemaMigration.last_throttled_at:type_name -> vttime.Time - 317, // 18: vtctldata.SchemaMigration.cancelled_at:type_name -> vttime.Time - 317, // 19: vtctldata.SchemaMigration.reviewed_at:type_name -> vttime.Time - 317, // 20: vtctldata.SchemaMigration.ready_to_complete_at:type_name -> vttime.Time - 320, // 21: vtctldata.Shard.shard:type_name -> topodata.Shard + 343, // 15: vtctldata.SchemaMigration.tablet:type_name -> topodata.TabletAlias + 344, // 16: vtctldata.SchemaMigration.artifact_retention:type_name -> vttime.Duration + 342, // 17: vtctldata.SchemaMigration.last_throttled_at:type_name -> vttime.Time + 342, // 18: vtctldata.SchemaMigration.cancelled_at:type_name -> vttime.Time + 342, // 19: vtctldata.SchemaMigration.reviewed_at:type_name -> vttime.Time + 342, // 20: vtctldata.SchemaMigration.ready_to_complete_at:type_name -> vttime.Time + 345, // 21: vtctldata.Shard.shard:type_name -> topodata.Shard 2, // 22: vtctldata.WorkflowOptions.sharded_auto_increment_handling:type_name -> vtctldata.ShardedAutoIncrementHandling - 271, // 23: vtctldata.WorkflowOptions.config:type_name -> vtctldata.WorkflowOptions.ConfigEntry - 273, // 24: vtctldata.Workflow.source:type_name -> vtctldata.Workflow.ReplicationLocation - 273, // 25: vtctldata.Workflow.target:type_name -> vtctldata.Workflow.ReplicationLocation - 272, // 26: vtctldata.Workflow.shard_streams:type_name -> vtctldata.Workflow.ShardStreamsEntry + 295, // 23: vtctldata.WorkflowOptions.config:type_name -> vtctldata.WorkflowOptions.ConfigEntry + 297, // 24: vtctldata.Workflow.source:type_name -> vtctldata.Workflow.ReplicationLocation + 297, // 25: vtctldata.Workflow.target:type_name -> vtctldata.Workflow.ReplicationLocation + 296, // 26: vtctldata.Workflow.shard_streams:type_name -> vtctldata.Workflow.ShardStreamsEntry 12, // 27: vtctldata.Workflow.options:type_name -> vtctldata.WorkflowOptions - 321, // 28: vtctldata.AddCellInfoRequest.cell_info:type_name -> topodata.CellInfo - 322, // 29: vtctldata.ApplyKeyspaceRoutingRulesRequest.keyspace_routing_rules:type_name -> vschema.KeyspaceRoutingRules - 322, // 30: vtctldata.ApplyKeyspaceRoutingRulesResponse.keyspace_routing_rules:type_name -> vschema.KeyspaceRoutingRules - 323, // 31: vtctldata.ApplyRoutingRulesRequest.routing_rules:type_name -> vschema.RoutingRules - 324, // 32: vtctldata.ApplyShardRoutingRulesRequest.shard_routing_rules:type_name -> vschema.ShardRoutingRules - 319, // 33: vtctldata.ApplySchemaRequest.wait_replicas_timeout:type_name -> vttime.Duration - 325, // 34: vtctldata.ApplySchemaRequest.caller_id:type_name -> vtrpc.CallerID - 279, // 35: vtctldata.ApplySchemaResponse.rows_affected_by_shard:type_name -> vtctldata.ApplySchemaResponse.RowsAffectedByShardEntry - 326, // 36: vtctldata.ApplyVSchemaRequest.v_schema:type_name -> vschema.Keyspace - 326, // 37: vtctldata.ApplyVSchemaResponse.v_schema:type_name -> vschema.Keyspace - 280, // 38: vtctldata.ApplyVSchemaResponse.unknown_vindex_params:type_name -> vtctldata.ApplyVSchemaResponse.UnknownVindexParamsEntry - 318, // 39: vtctldata.BackupRequest.tablet_alias:type_name -> topodata.TabletAlias - 319, // 40: vtctldata.BackupRequest.mysql_shutdown_timeout:type_name -> vttime.Duration - 318, // 41: vtctldata.BackupResponse.tablet_alias:type_name -> topodata.TabletAlias - 314, // 42: vtctldata.BackupResponse.event:type_name -> logutil.Event - 319, // 43: vtctldata.BackupShardRequest.mysql_shutdown_timeout:type_name -> vttime.Duration - 325, // 44: vtctldata.CancelSchemaMigrationRequest.caller_id:type_name -> vtrpc.CallerID - 282, // 45: vtctldata.CancelSchemaMigrationResponse.rows_affected_by_shard:type_name -> vtctldata.CancelSchemaMigrationResponse.RowsAffectedByShardEntry - 318, // 46: vtctldata.ChangeTabletTagsRequest.tablet_alias:type_name -> topodata.TabletAlias - 283, // 47: vtctldata.ChangeTabletTagsRequest.tags:type_name -> vtctldata.ChangeTabletTagsRequest.TagsEntry - 284, // 48: vtctldata.ChangeTabletTagsResponse.before_tags:type_name -> vtctldata.ChangeTabletTagsResponse.BeforeTagsEntry - 285, // 49: vtctldata.ChangeTabletTagsResponse.after_tags:type_name -> vtctldata.ChangeTabletTagsResponse.AfterTagsEntry - 318, // 50: vtctldata.ChangeTabletTypeRequest.tablet_alias:type_name -> topodata.TabletAlias - 327, // 51: vtctldata.ChangeTabletTypeRequest.db_type:type_name -> topodata.TabletType - 328, // 52: vtctldata.ChangeTabletTypeResponse.before_tablet:type_name -> topodata.Tablet - 328, // 53: vtctldata.ChangeTabletTypeResponse.after_tablet:type_name -> topodata.Tablet - 318, // 54: vtctldata.CheckThrottlerRequest.tablet_alias:type_name -> topodata.TabletAlias - 318, // 55: vtctldata.CheckThrottlerResponse.tablet_alias:type_name -> topodata.TabletAlias - 329, // 56: vtctldata.CheckThrottlerResponse.Check:type_name -> tabletmanagerdata.CheckThrottlerResponse - 325, // 57: vtctldata.CleanupSchemaMigrationRequest.caller_id:type_name -> vtrpc.CallerID - 286, // 58: vtctldata.CleanupSchemaMigrationResponse.rows_affected_by_shard:type_name -> vtctldata.CleanupSchemaMigrationResponse.RowsAffectedByShardEntry - 325, // 59: vtctldata.CompleteSchemaMigrationRequest.caller_id:type_name -> vtrpc.CallerID - 287, // 60: vtctldata.CompleteSchemaMigrationResponse.rows_affected_by_shard:type_name -> vtctldata.CompleteSchemaMigrationResponse.RowsAffectedByShardEntry - 318, // 61: vtctldata.CopySchemaShardRequest.source_tablet_alias:type_name -> topodata.TabletAlias - 319, // 62: vtctldata.CopySchemaShardRequest.wait_replicas_timeout:type_name -> vttime.Duration - 330, // 63: vtctldata.CreateKeyspaceRequest.type:type_name -> topodata.KeyspaceType - 317, // 64: vtctldata.CreateKeyspaceRequest.snapshot_time:type_name -> vttime.Time + 346, // 28: vtctldata.AddCellInfoRequest.cell_info:type_name -> topodata.CellInfo + 347, // 29: vtctldata.ApplyKeyspaceRoutingRulesRequest.keyspace_routing_rules:type_name -> vschema.KeyspaceRoutingRules + 347, // 30: vtctldata.ApplyKeyspaceRoutingRulesResponse.keyspace_routing_rules:type_name -> vschema.KeyspaceRoutingRules + 348, // 31: vtctldata.ApplyRoutingRulesRequest.routing_rules:type_name -> vschema.RoutingRules + 349, // 32: vtctldata.ApplyShardRoutingRulesRequest.shard_routing_rules:type_name -> vschema.ShardRoutingRules + 344, // 33: vtctldata.ApplySchemaRequest.wait_replicas_timeout:type_name -> vttime.Duration + 350, // 34: vtctldata.ApplySchemaRequest.caller_id:type_name -> vtrpc.CallerID + 303, // 35: vtctldata.ApplySchemaResponse.rows_affected_by_shard:type_name -> vtctldata.ApplySchemaResponse.RowsAffectedByShardEntry + 351, // 36: vtctldata.ApplyVSchemaRequest.v_schema:type_name -> vschema.Keyspace + 351, // 37: vtctldata.ApplyVSchemaResponse.v_schema:type_name -> vschema.Keyspace + 304, // 38: vtctldata.ApplyVSchemaResponse.unknown_vindex_params:type_name -> vtctldata.ApplyVSchemaResponse.UnknownVindexParamsEntry + 343, // 39: vtctldata.BackupRequest.tablet_alias:type_name -> topodata.TabletAlias + 344, // 40: vtctldata.BackupRequest.mysql_shutdown_timeout:type_name -> vttime.Duration + 343, // 41: vtctldata.BackupResponse.tablet_alias:type_name -> topodata.TabletAlias + 339, // 42: vtctldata.BackupResponse.event:type_name -> logutil.Event + 344, // 43: vtctldata.BackupShardRequest.mysql_shutdown_timeout:type_name -> vttime.Duration + 350, // 44: vtctldata.CancelSchemaMigrationRequest.caller_id:type_name -> vtrpc.CallerID + 306, // 45: vtctldata.CancelSchemaMigrationResponse.rows_affected_by_shard:type_name -> vtctldata.CancelSchemaMigrationResponse.RowsAffectedByShardEntry + 343, // 46: vtctldata.ChangeTabletTagsRequest.tablet_alias:type_name -> topodata.TabletAlias + 307, // 47: vtctldata.ChangeTabletTagsRequest.tags:type_name -> vtctldata.ChangeTabletTagsRequest.TagsEntry + 308, // 48: vtctldata.ChangeTabletTagsResponse.before_tags:type_name -> vtctldata.ChangeTabletTagsResponse.BeforeTagsEntry + 309, // 49: vtctldata.ChangeTabletTagsResponse.after_tags:type_name -> vtctldata.ChangeTabletTagsResponse.AfterTagsEntry + 343, // 50: vtctldata.ChangeTabletTypeRequest.tablet_alias:type_name -> topodata.TabletAlias + 352, // 51: vtctldata.ChangeTabletTypeRequest.db_type:type_name -> topodata.TabletType + 353, // 52: vtctldata.ChangeTabletTypeResponse.before_tablet:type_name -> topodata.Tablet + 353, // 53: vtctldata.ChangeTabletTypeResponse.after_tablet:type_name -> topodata.Tablet + 343, // 54: vtctldata.CheckThrottlerRequest.tablet_alias:type_name -> topodata.TabletAlias + 343, // 55: vtctldata.CheckThrottlerResponse.tablet_alias:type_name -> topodata.TabletAlias + 354, // 56: vtctldata.CheckThrottlerResponse.Check:type_name -> tabletmanagerdata.CheckThrottlerResponse + 350, // 57: vtctldata.CleanupSchemaMigrationRequest.caller_id:type_name -> vtrpc.CallerID + 310, // 58: vtctldata.CleanupSchemaMigrationResponse.rows_affected_by_shard:type_name -> vtctldata.CleanupSchemaMigrationResponse.RowsAffectedByShardEntry + 350, // 59: vtctldata.CompleteSchemaMigrationRequest.caller_id:type_name -> vtrpc.CallerID + 311, // 60: vtctldata.CompleteSchemaMigrationResponse.rows_affected_by_shard:type_name -> vtctldata.CompleteSchemaMigrationResponse.RowsAffectedByShardEntry + 343, // 61: vtctldata.CopySchemaShardRequest.source_tablet_alias:type_name -> topodata.TabletAlias + 344, // 62: vtctldata.CopySchemaShardRequest.wait_replicas_timeout:type_name -> vttime.Duration + 355, // 63: vtctldata.CreateKeyspaceRequest.type:type_name -> topodata.KeyspaceType + 342, // 64: vtctldata.CreateKeyspaceRequest.snapshot_time:type_name -> vttime.Time 9, // 65: vtctldata.CreateKeyspaceResponse.keyspace:type_name -> vtctldata.Keyspace 9, // 66: vtctldata.CreateShardResponse.keyspace:type_name -> vtctldata.Keyspace 11, // 67: vtctldata.CreateShardResponse.shard:type_name -> vtctldata.Shard 11, // 68: vtctldata.DeleteShardsRequest.shards:type_name -> vtctldata.Shard - 318, // 69: vtctldata.DeleteTabletsRequest.tablet_aliases:type_name -> topodata.TabletAlias - 318, // 70: vtctldata.EmergencyReparentShardRequest.new_primary:type_name -> topodata.TabletAlias - 318, // 71: vtctldata.EmergencyReparentShardRequest.ignore_replicas:type_name -> topodata.TabletAlias - 319, // 72: vtctldata.EmergencyReparentShardRequest.wait_replicas_timeout:type_name -> vttime.Duration - 318, // 73: vtctldata.EmergencyReparentShardRequest.expected_primary:type_name -> topodata.TabletAlias - 318, // 74: vtctldata.EmergencyReparentShardResponse.promoted_primary:type_name -> topodata.TabletAlias - 314, // 75: vtctldata.EmergencyReparentShardResponse.events:type_name -> logutil.Event - 318, // 76: vtctldata.ExecuteFetchAsAppRequest.tablet_alias:type_name -> topodata.TabletAlias - 331, // 77: vtctldata.ExecuteFetchAsAppResponse.result:type_name -> query.QueryResult - 318, // 78: vtctldata.ExecuteFetchAsDBARequest.tablet_alias:type_name -> topodata.TabletAlias - 331, // 79: vtctldata.ExecuteFetchAsDBAResponse.result:type_name -> query.QueryResult - 318, // 80: vtctldata.ExecuteHookRequest.tablet_alias:type_name -> topodata.TabletAlias - 332, // 81: vtctldata.ExecuteHookRequest.tablet_hook_request:type_name -> tabletmanagerdata.ExecuteHookRequest - 333, // 82: vtctldata.ExecuteHookResponse.hook_result:type_name -> tabletmanagerdata.ExecuteHookResponse - 318, // 83: vtctldata.ExecuteMultiFetchAsDBARequest.tablet_alias:type_name -> topodata.TabletAlias - 331, // 84: vtctldata.ExecuteMultiFetchAsDBAResponse.results:type_name -> query.QueryResult - 288, // 85: vtctldata.FindAllShardsInKeyspaceResponse.shards:type_name -> vtctldata.FindAllShardsInKeyspaceResponse.ShardsEntry - 325, // 86: vtctldata.ForceCutOverSchemaMigrationRequest.caller_id:type_name -> vtrpc.CallerID - 289, // 87: vtctldata.ForceCutOverSchemaMigrationResponse.rows_affected_by_shard:type_name -> vtctldata.ForceCutOverSchemaMigrationResponse.RowsAffectedByShardEntry - 334, // 88: vtctldata.GetBackupsResponse.backups:type_name -> mysqlctl.BackupInfo - 321, // 89: vtctldata.GetCellInfoResponse.cell_info:type_name -> topodata.CellInfo - 290, // 90: vtctldata.GetCellsAliasesResponse.aliases:type_name -> vtctldata.GetCellsAliasesResponse.AliasesEntry - 318, // 91: vtctldata.GetFullStatusRequest.tablet_alias:type_name -> topodata.TabletAlias - 335, // 92: vtctldata.GetFullStatusResponse.status:type_name -> replicationdata.FullStatus + 343, // 69: vtctldata.DeleteTabletsRequest.tablet_aliases:type_name -> topodata.TabletAlias + 343, // 70: vtctldata.EmergencyReparentShardRequest.new_primary:type_name -> topodata.TabletAlias + 343, // 71: vtctldata.EmergencyReparentShardRequest.ignore_replicas:type_name -> topodata.TabletAlias + 344, // 72: vtctldata.EmergencyReparentShardRequest.wait_replicas_timeout:type_name -> vttime.Duration + 343, // 73: vtctldata.EmergencyReparentShardRequest.expected_primary:type_name -> topodata.TabletAlias + 343, // 74: vtctldata.EmergencyReparentShardResponse.promoted_primary:type_name -> topodata.TabletAlias + 339, // 75: vtctldata.EmergencyReparentShardResponse.events:type_name -> logutil.Event + 343, // 76: vtctldata.ExecuteFetchAsAppRequest.tablet_alias:type_name -> topodata.TabletAlias + 356, // 77: vtctldata.ExecuteFetchAsAppResponse.result:type_name -> query.QueryResult + 343, // 78: vtctldata.ExecuteFetchAsDBARequest.tablet_alias:type_name -> topodata.TabletAlias + 356, // 79: vtctldata.ExecuteFetchAsDBAResponse.result:type_name -> query.QueryResult + 343, // 80: vtctldata.ExecuteHookRequest.tablet_alias:type_name -> topodata.TabletAlias + 357, // 81: vtctldata.ExecuteHookRequest.tablet_hook_request:type_name -> tabletmanagerdata.ExecuteHookRequest + 358, // 82: vtctldata.ExecuteHookResponse.hook_result:type_name -> tabletmanagerdata.ExecuteHookResponse + 343, // 83: vtctldata.ExecuteMultiFetchAsDBARequest.tablet_alias:type_name -> topodata.TabletAlias + 356, // 84: vtctldata.ExecuteMultiFetchAsDBAResponse.results:type_name -> query.QueryResult + 312, // 85: vtctldata.FindAllShardsInKeyspaceResponse.shards:type_name -> vtctldata.FindAllShardsInKeyspaceResponse.ShardsEntry + 350, // 86: vtctldata.ForceCutOverSchemaMigrationRequest.caller_id:type_name -> vtrpc.CallerID + 313, // 87: vtctldata.ForceCutOverSchemaMigrationResponse.rows_affected_by_shard:type_name -> vtctldata.ForceCutOverSchemaMigrationResponse.RowsAffectedByShardEntry + 359, // 88: vtctldata.GetBackupsResponse.backups:type_name -> mysqlctl.BackupInfo + 346, // 89: vtctldata.GetCellInfoResponse.cell_info:type_name -> topodata.CellInfo + 314, // 90: vtctldata.GetCellsAliasesResponse.aliases:type_name -> vtctldata.GetCellsAliasesResponse.AliasesEntry + 343, // 91: vtctldata.GetFullStatusRequest.tablet_alias:type_name -> topodata.TabletAlias + 360, // 92: vtctldata.GetFullStatusResponse.status:type_name -> replicationdata.FullStatus 9, // 93: vtctldata.GetKeyspacesResponse.keyspaces:type_name -> vtctldata.Keyspace 9, // 94: vtctldata.GetKeyspaceResponse.keyspace:type_name -> vtctldata.Keyspace - 318, // 95: vtctldata.GetPermissionsRequest.tablet_alias:type_name -> topodata.TabletAlias - 336, // 96: vtctldata.GetPermissionsResponse.permissions:type_name -> tabletmanagerdata.Permissions - 322, // 97: vtctldata.GetKeyspaceRoutingRulesResponse.keyspace_routing_rules:type_name -> vschema.KeyspaceRoutingRules - 323, // 98: vtctldata.GetRoutingRulesResponse.routing_rules:type_name -> vschema.RoutingRules - 318, // 99: vtctldata.GetSchemaRequest.tablet_alias:type_name -> topodata.TabletAlias - 337, // 100: vtctldata.GetSchemaResponse.schema:type_name -> tabletmanagerdata.SchemaDefinition + 343, // 95: vtctldata.GetPermissionsRequest.tablet_alias:type_name -> topodata.TabletAlias + 361, // 96: vtctldata.GetPermissionsResponse.permissions:type_name -> tabletmanagerdata.Permissions + 347, // 97: vtctldata.GetKeyspaceRoutingRulesResponse.keyspace_routing_rules:type_name -> vschema.KeyspaceRoutingRules + 348, // 98: vtctldata.GetRoutingRulesResponse.routing_rules:type_name -> vschema.RoutingRules + 343, // 99: vtctldata.GetSchemaRequest.tablet_alias:type_name -> topodata.TabletAlias + 362, // 100: vtctldata.GetSchemaResponse.schema:type_name -> tabletmanagerdata.SchemaDefinition 4, // 101: vtctldata.GetSchemaMigrationsRequest.status:type_name -> vtctldata.SchemaMigration.Status - 319, // 102: vtctldata.GetSchemaMigrationsRequest.recent:type_name -> vttime.Duration + 344, // 102: vtctldata.GetSchemaMigrationsRequest.recent:type_name -> vttime.Duration 1, // 103: vtctldata.GetSchemaMigrationsRequest.order:type_name -> vtctldata.QueryOrdering 10, // 104: vtctldata.GetSchemaMigrationsResponse.migrations:type_name -> vtctldata.SchemaMigration - 291, // 105: vtctldata.GetShardReplicationResponse.shard_replication_by_cell:type_name -> vtctldata.GetShardReplicationResponse.ShardReplicationByCellEntry + 315, // 105: vtctldata.GetShardReplicationResponse.shard_replication_by_cell:type_name -> vtctldata.GetShardReplicationResponse.ShardReplicationByCellEntry 11, // 106: vtctldata.GetShardResponse.shard:type_name -> vtctldata.Shard - 324, // 107: vtctldata.GetShardRoutingRulesResponse.shard_routing_rules:type_name -> vschema.ShardRoutingRules - 292, // 108: vtctldata.GetSrvKeyspaceNamesResponse.names:type_name -> vtctldata.GetSrvKeyspaceNamesResponse.NamesEntry - 294, // 109: vtctldata.GetSrvKeyspacesResponse.srv_keyspaces:type_name -> vtctldata.GetSrvKeyspacesResponse.SrvKeyspacesEntry - 338, // 110: vtctldata.UpdateThrottlerConfigRequest.throttled_app:type_name -> topodata.ThrottledAppRule - 339, // 111: vtctldata.GetSrvVSchemaResponse.srv_v_schema:type_name -> vschema.SrvVSchema - 295, // 112: vtctldata.GetSrvVSchemasResponse.srv_v_schemas:type_name -> vtctldata.GetSrvVSchemasResponse.SrvVSchemasEntry - 318, // 113: vtctldata.GetTabletRequest.tablet_alias:type_name -> topodata.TabletAlias - 328, // 114: vtctldata.GetTabletResponse.tablet:type_name -> topodata.Tablet - 318, // 115: vtctldata.GetTabletsRequest.tablet_aliases:type_name -> topodata.TabletAlias - 327, // 116: vtctldata.GetTabletsRequest.tablet_type:type_name -> topodata.TabletType - 328, // 117: vtctldata.GetTabletsResponse.tablets:type_name -> topodata.Tablet - 318, // 118: vtctldata.GetThrottlerStatusRequest.tablet_alias:type_name -> topodata.TabletAlias - 340, // 119: vtctldata.GetThrottlerStatusResponse.status:type_name -> tabletmanagerdata.GetThrottlerStatusResponse + 349, // 107: vtctldata.GetShardRoutingRulesResponse.shard_routing_rules:type_name -> vschema.ShardRoutingRules + 316, // 108: vtctldata.GetSrvKeyspaceNamesResponse.names:type_name -> vtctldata.GetSrvKeyspaceNamesResponse.NamesEntry + 318, // 109: vtctldata.GetSrvKeyspacesResponse.srv_keyspaces:type_name -> vtctldata.GetSrvKeyspacesResponse.SrvKeyspacesEntry + 363, // 110: vtctldata.UpdateThrottlerConfigRequest.throttled_app:type_name -> topodata.ThrottledAppRule + 364, // 111: vtctldata.GetSrvVSchemaResponse.srv_v_schema:type_name -> vschema.SrvVSchema + 319, // 112: vtctldata.GetSrvVSchemasResponse.srv_v_schemas:type_name -> vtctldata.GetSrvVSchemasResponse.SrvVSchemasEntry + 343, // 113: vtctldata.GetTabletRequest.tablet_alias:type_name -> topodata.TabletAlias + 353, // 114: vtctldata.GetTabletResponse.tablet:type_name -> topodata.Tablet + 343, // 115: vtctldata.GetTabletsRequest.tablet_aliases:type_name -> topodata.TabletAlias + 352, // 116: vtctldata.GetTabletsRequest.tablet_type:type_name -> topodata.TabletType + 353, // 117: vtctldata.GetTabletsResponse.tablets:type_name -> topodata.Tablet + 343, // 118: vtctldata.GetThrottlerStatusRequest.tablet_alias:type_name -> topodata.TabletAlias + 365, // 119: vtctldata.GetThrottlerStatusResponse.status:type_name -> tabletmanagerdata.GetThrottlerStatusResponse 123, // 120: vtctldata.GetTopologyPathResponse.cell:type_name -> vtctldata.TopologyCell - 341, // 121: vtctldata.GetUnresolvedTransactionsResponse.transactions:type_name -> query.TransactionMetadata - 341, // 122: vtctldata.GetTransactionInfoResponse.metadata:type_name -> query.TransactionMetadata + 366, // 121: vtctldata.GetUnresolvedTransactionsResponse.transactions:type_name -> query.TransactionMetadata + 366, // 122: vtctldata.GetTransactionInfoResponse.metadata:type_name -> query.TransactionMetadata 127, // 123: vtctldata.GetTransactionInfoResponse.shard_states:type_name -> vtctldata.ShardTransactionState - 342, // 124: vtctldata.ConcludeTransactionRequest.participants:type_name -> query.Target - 318, // 125: vtctldata.GetVersionRequest.tablet_alias:type_name -> topodata.TabletAlias - 326, // 126: vtctldata.GetVSchemaResponse.v_schema:type_name -> vschema.Keyspace + 367, // 124: vtctldata.ConcludeTransactionRequest.participants:type_name -> query.Target + 343, // 125: vtctldata.GetVersionRequest.tablet_alias:type_name -> topodata.TabletAlias + 351, // 126: vtctldata.GetVSchemaResponse.v_schema:type_name -> vschema.Keyspace 13, // 127: vtctldata.GetWorkflowsResponse.workflows:type_name -> vtctldata.Workflow - 318, // 128: vtctldata.InitShardPrimaryRequest.primary_elect_tablet_alias:type_name -> topodata.TabletAlias - 319, // 129: vtctldata.InitShardPrimaryRequest.wait_replicas_timeout:type_name -> vttime.Duration - 314, // 130: vtctldata.InitShardPrimaryResponse.events:type_name -> logutil.Event - 325, // 131: vtctldata.LaunchSchemaMigrationRequest.caller_id:type_name -> vtrpc.CallerID - 296, // 132: vtctldata.LaunchSchemaMigrationResponse.rows_affected_by_shard:type_name -> vtctldata.LaunchSchemaMigrationResponse.RowsAffectedByShardEntry - 326, // 133: vtctldata.LookupVindexCreateRequest.vindex:type_name -> vschema.Keyspace - 327, // 134: vtctldata.LookupVindexCreateRequest.tablet_types:type_name -> topodata.TabletType - 315, // 135: vtctldata.LookupVindexCreateRequest.tablet_selection_preference:type_name -> tabletmanagerdata.TabletSelectionPreference + 343, // 128: vtctldata.InitShardPrimaryRequest.primary_elect_tablet_alias:type_name -> topodata.TabletAlias + 344, // 129: vtctldata.InitShardPrimaryRequest.wait_replicas_timeout:type_name -> vttime.Duration + 339, // 130: vtctldata.InitShardPrimaryResponse.events:type_name -> logutil.Event + 350, // 131: vtctldata.LaunchSchemaMigrationRequest.caller_id:type_name -> vtrpc.CallerID + 320, // 132: vtctldata.LaunchSchemaMigrationResponse.rows_affected_by_shard:type_name -> vtctldata.LaunchSchemaMigrationResponse.RowsAffectedByShardEntry + 351, // 133: vtctldata.LookupVindexCreateRequest.vindex:type_name -> vschema.Keyspace + 352, // 134: vtctldata.LookupVindexCreateRequest.tablet_types:type_name -> topodata.TabletType + 340, // 135: vtctldata.LookupVindexCreateRequest.tablet_selection_preference:type_name -> tabletmanagerdata.TabletSelectionPreference 8, // 136: vtctldata.MaterializeCreateRequest.settings:type_name -> vtctldata.MaterializeSettings - 327, // 137: vtctldata.MigrateCreateRequest.tablet_types:type_name -> topodata.TabletType - 315, // 138: vtctldata.MigrateCreateRequest.tablet_selection_preference:type_name -> tabletmanagerdata.TabletSelectionPreference - 327, // 139: vtctldata.MoveTablesCreateRequest.tablet_types:type_name -> topodata.TabletType - 315, // 140: vtctldata.MoveTablesCreateRequest.tablet_selection_preference:type_name -> tabletmanagerdata.TabletSelectionPreference + 352, // 137: vtctldata.MigrateCreateRequest.tablet_types:type_name -> topodata.TabletType + 340, // 138: vtctldata.MigrateCreateRequest.tablet_selection_preference:type_name -> tabletmanagerdata.TabletSelectionPreference + 352, // 139: vtctldata.MoveTablesCreateRequest.tablet_types:type_name -> topodata.TabletType + 340, // 140: vtctldata.MoveTablesCreateRequest.tablet_selection_preference:type_name -> tabletmanagerdata.TabletSelectionPreference 12, // 141: vtctldata.MoveTablesCreateRequest.workflow_options:type_name -> vtctldata.WorkflowOptions - 297, // 142: vtctldata.MoveTablesCreateResponse.details:type_name -> vtctldata.MoveTablesCreateResponse.TabletInfo - 318, // 143: vtctldata.PingTabletRequest.tablet_alias:type_name -> topodata.TabletAlias - 318, // 144: vtctldata.PlannedReparentShardRequest.new_primary:type_name -> topodata.TabletAlias - 318, // 145: vtctldata.PlannedReparentShardRequest.avoid_primary:type_name -> topodata.TabletAlias - 319, // 146: vtctldata.PlannedReparentShardRequest.wait_replicas_timeout:type_name -> vttime.Duration - 319, // 147: vtctldata.PlannedReparentShardRequest.tolerable_replication_lag:type_name -> vttime.Duration - 318, // 148: vtctldata.PlannedReparentShardRequest.expected_primary:type_name -> topodata.TabletAlias - 318, // 149: vtctldata.PlannedReparentShardResponse.promoted_primary:type_name -> topodata.TabletAlias - 314, // 150: vtctldata.PlannedReparentShardResponse.events:type_name -> logutil.Event - 318, // 151: vtctldata.RefreshStateRequest.tablet_alias:type_name -> topodata.TabletAlias - 318, // 152: vtctldata.ReloadSchemaRequest.tablet_alias:type_name -> topodata.TabletAlias - 314, // 153: vtctldata.ReloadSchemaKeyspaceResponse.events:type_name -> logutil.Event - 314, // 154: vtctldata.ReloadSchemaShardResponse.events:type_name -> logutil.Event - 318, // 155: vtctldata.ReparentTabletRequest.tablet:type_name -> topodata.TabletAlias - 318, // 156: vtctldata.ReparentTabletResponse.primary:type_name -> topodata.TabletAlias - 327, // 157: vtctldata.ReshardCreateRequest.tablet_types:type_name -> topodata.TabletType - 315, // 158: vtctldata.ReshardCreateRequest.tablet_selection_preference:type_name -> tabletmanagerdata.TabletSelectionPreference + 321, // 142: vtctldata.MoveTablesCreateResponse.details:type_name -> vtctldata.MoveTablesCreateResponse.TabletInfo + 343, // 143: vtctldata.PingTabletRequest.tablet_alias:type_name -> topodata.TabletAlias + 343, // 144: vtctldata.PlannedReparentShardRequest.new_primary:type_name -> topodata.TabletAlias + 343, // 145: vtctldata.PlannedReparentShardRequest.avoid_primary:type_name -> topodata.TabletAlias + 344, // 146: vtctldata.PlannedReparentShardRequest.wait_replicas_timeout:type_name -> vttime.Duration + 344, // 147: vtctldata.PlannedReparentShardRequest.tolerable_replication_lag:type_name -> vttime.Duration + 343, // 148: vtctldata.PlannedReparentShardRequest.expected_primary:type_name -> topodata.TabletAlias + 343, // 149: vtctldata.PlannedReparentShardResponse.promoted_primary:type_name -> topodata.TabletAlias + 339, // 150: vtctldata.PlannedReparentShardResponse.events:type_name -> logutil.Event + 343, // 151: vtctldata.RefreshStateRequest.tablet_alias:type_name -> topodata.TabletAlias + 343, // 152: vtctldata.ReloadSchemaRequest.tablet_alias:type_name -> topodata.TabletAlias + 339, // 153: vtctldata.ReloadSchemaKeyspaceResponse.events:type_name -> logutil.Event + 339, // 154: vtctldata.ReloadSchemaShardResponse.events:type_name -> logutil.Event + 343, // 155: vtctldata.ReparentTabletRequest.tablet:type_name -> topodata.TabletAlias + 343, // 156: vtctldata.ReparentTabletResponse.primary:type_name -> topodata.TabletAlias + 352, // 157: vtctldata.ReshardCreateRequest.tablet_types:type_name -> topodata.TabletType + 340, // 158: vtctldata.ReshardCreateRequest.tablet_selection_preference:type_name -> tabletmanagerdata.TabletSelectionPreference 12, // 159: vtctldata.ReshardCreateRequest.workflow_options:type_name -> vtctldata.WorkflowOptions - 318, // 160: vtctldata.RestoreFromBackupRequest.tablet_alias:type_name -> topodata.TabletAlias - 317, // 161: vtctldata.RestoreFromBackupRequest.backup_time:type_name -> vttime.Time - 317, // 162: vtctldata.RestoreFromBackupRequest.restore_to_timestamp:type_name -> vttime.Time - 318, // 163: vtctldata.RestoreFromBackupResponse.tablet_alias:type_name -> topodata.TabletAlias - 314, // 164: vtctldata.RestoreFromBackupResponse.event:type_name -> logutil.Event - 325, // 165: vtctldata.RetrySchemaMigrationRequest.caller_id:type_name -> vtrpc.CallerID - 298, // 166: vtctldata.RetrySchemaMigrationResponse.rows_affected_by_shard:type_name -> vtctldata.RetrySchemaMigrationResponse.RowsAffectedByShardEntry - 318, // 167: vtctldata.RunHealthCheckRequest.tablet_alias:type_name -> topodata.TabletAlias - 316, // 168: vtctldata.SetKeyspaceDurabilityPolicyResponse.keyspace:type_name -> topodata.Keyspace - 316, // 169: vtctldata.SetKeyspaceShardingInfoResponse.keyspace:type_name -> topodata.Keyspace - 320, // 170: vtctldata.SetShardIsPrimaryServingResponse.shard:type_name -> topodata.Shard - 327, // 171: vtctldata.SetShardTabletControlRequest.tablet_type:type_name -> topodata.TabletType - 320, // 172: vtctldata.SetShardTabletControlResponse.shard:type_name -> topodata.Shard - 318, // 173: vtctldata.SetWritableRequest.tablet_alias:type_name -> topodata.TabletAlias - 318, // 174: vtctldata.ShardReplicationAddRequest.tablet_alias:type_name -> topodata.TabletAlias - 343, // 175: vtctldata.ShardReplicationFixResponse.error:type_name -> topodata.ShardReplicationError - 299, // 176: vtctldata.ShardReplicationPositionsResponse.replication_statuses:type_name -> vtctldata.ShardReplicationPositionsResponse.ReplicationStatusesEntry - 300, // 177: vtctldata.ShardReplicationPositionsResponse.tablet_map:type_name -> vtctldata.ShardReplicationPositionsResponse.TabletMapEntry - 318, // 178: vtctldata.ShardReplicationRemoveRequest.tablet_alias:type_name -> topodata.TabletAlias - 318, // 179: vtctldata.SleepTabletRequest.tablet_alias:type_name -> topodata.TabletAlias - 319, // 180: vtctldata.SleepTabletRequest.duration:type_name -> vttime.Duration - 344, // 181: vtctldata.SourceShardAddRequest.key_range:type_name -> topodata.KeyRange - 320, // 182: vtctldata.SourceShardAddResponse.shard:type_name -> topodata.Shard - 320, // 183: vtctldata.SourceShardDeleteResponse.shard:type_name -> topodata.Shard - 318, // 184: vtctldata.StartReplicationRequest.tablet_alias:type_name -> topodata.TabletAlias - 318, // 185: vtctldata.StopReplicationRequest.tablet_alias:type_name -> topodata.TabletAlias - 318, // 186: vtctldata.TabletExternallyReparentedRequest.tablet:type_name -> topodata.TabletAlias - 318, // 187: vtctldata.TabletExternallyReparentedResponse.new_primary:type_name -> topodata.TabletAlias - 318, // 188: vtctldata.TabletExternallyReparentedResponse.old_primary:type_name -> topodata.TabletAlias - 321, // 189: vtctldata.UpdateCellInfoRequest.cell_info:type_name -> topodata.CellInfo - 321, // 190: vtctldata.UpdateCellInfoResponse.cell_info:type_name -> topodata.CellInfo - 345, // 191: vtctldata.UpdateCellsAliasRequest.cells_alias:type_name -> topodata.CellsAlias - 345, // 192: vtctldata.UpdateCellsAliasResponse.cells_alias:type_name -> topodata.CellsAlias - 301, // 193: vtctldata.ValidateResponse.results_by_keyspace:type_name -> vtctldata.ValidateResponse.ResultsByKeyspaceEntry - 302, // 194: vtctldata.ValidateKeyspaceResponse.results_by_shard:type_name -> vtctldata.ValidateKeyspaceResponse.ResultsByShardEntry - 303, // 195: vtctldata.ValidateSchemaKeyspaceResponse.results_by_shard:type_name -> vtctldata.ValidateSchemaKeyspaceResponse.ResultsByShardEntry - 304, // 196: vtctldata.ValidateVersionKeyspaceResponse.results_by_shard:type_name -> vtctldata.ValidateVersionKeyspaceResponse.ResultsByShardEntry - 305, // 197: vtctldata.ValidateVSchemaResponse.results_by_shard:type_name -> vtctldata.ValidateVSchemaResponse.ResultsByShardEntry - 327, // 198: vtctldata.VDiffCreateRequest.tablet_types:type_name -> topodata.TabletType - 315, // 199: vtctldata.VDiffCreateRequest.tablet_selection_preference:type_name -> tabletmanagerdata.TabletSelectionPreference - 319, // 200: vtctldata.VDiffCreateRequest.filtered_replication_wait_time:type_name -> vttime.Duration - 319, // 201: vtctldata.VDiffCreateRequest.wait_update_interval:type_name -> vttime.Duration - 319, // 202: vtctldata.VDiffCreateRequest.max_diff_duration:type_name -> vttime.Duration - 306, // 203: vtctldata.VDiffShowResponse.tablet_responses:type_name -> vtctldata.VDiffShowResponse.TabletResponsesEntry - 307, // 204: vtctldata.WorkflowDeleteResponse.details:type_name -> vtctldata.WorkflowDeleteResponse.TabletInfo - 311, // 205: vtctldata.WorkflowStatusResponse.table_copy_state:type_name -> vtctldata.WorkflowStatusResponse.TableCopyStateEntry - 312, // 206: vtctldata.WorkflowStatusResponse.shard_streams:type_name -> vtctldata.WorkflowStatusResponse.ShardStreamsEntry - 327, // 207: vtctldata.WorkflowSwitchTrafficRequest.tablet_types:type_name -> topodata.TabletType - 319, // 208: vtctldata.WorkflowSwitchTrafficRequest.max_replication_lag_allowed:type_name -> vttime.Duration - 319, // 209: vtctldata.WorkflowSwitchTrafficRequest.timeout:type_name -> vttime.Duration - 346, // 210: vtctldata.WorkflowUpdateRequest.tablet_request:type_name -> tabletmanagerdata.UpdateVReplicationWorkflowRequest - 313, // 211: vtctldata.WorkflowUpdateResponse.details:type_name -> vtctldata.WorkflowUpdateResponse.TabletInfo - 347, // 212: vtctldata.GetMirrorRulesResponse.mirror_rules:type_name -> vschema.MirrorRules - 327, // 213: vtctldata.WorkflowMirrorTrafficRequest.tablet_types:type_name -> topodata.TabletType - 274, // 214: vtctldata.Workflow.ShardStreamsEntry.value:type_name -> vtctldata.Workflow.ShardStream - 275, // 215: vtctldata.Workflow.ShardStream.streams:type_name -> vtctldata.Workflow.Stream - 348, // 216: vtctldata.Workflow.ShardStream.tablet_controls:type_name -> topodata.Shard.TabletControl - 318, // 217: vtctldata.Workflow.Stream.tablet:type_name -> topodata.TabletAlias - 349, // 218: vtctldata.Workflow.Stream.binlog_source:type_name -> binlogdata.BinlogSource - 317, // 219: vtctldata.Workflow.Stream.transaction_timestamp:type_name -> vttime.Time - 317, // 220: vtctldata.Workflow.Stream.time_updated:type_name -> vttime.Time - 276, // 221: vtctldata.Workflow.Stream.copy_states:type_name -> vtctldata.Workflow.Stream.CopyState - 277, // 222: vtctldata.Workflow.Stream.logs:type_name -> vtctldata.Workflow.Stream.Log - 278, // 223: vtctldata.Workflow.Stream.throttler_status:type_name -> vtctldata.Workflow.Stream.ThrottlerStatus - 327, // 224: vtctldata.Workflow.Stream.tablet_types:type_name -> topodata.TabletType - 315, // 225: vtctldata.Workflow.Stream.tablet_selection_preference:type_name -> tabletmanagerdata.TabletSelectionPreference - 317, // 226: vtctldata.Workflow.Stream.Log.created_at:type_name -> vttime.Time - 317, // 227: vtctldata.Workflow.Stream.Log.updated_at:type_name -> vttime.Time - 317, // 228: vtctldata.Workflow.Stream.ThrottlerStatus.time_throttled:type_name -> vttime.Time - 281, // 229: vtctldata.ApplyVSchemaResponse.UnknownVindexParamsEntry.value:type_name -> vtctldata.ApplyVSchemaResponse.ParamList - 11, // 230: vtctldata.FindAllShardsInKeyspaceResponse.ShardsEntry.value:type_name -> vtctldata.Shard - 345, // 231: vtctldata.GetCellsAliasesResponse.AliasesEntry.value:type_name -> topodata.CellsAlias - 350, // 232: vtctldata.GetShardReplicationResponse.ShardReplicationByCellEntry.value:type_name -> topodata.ShardReplication - 293, // 233: vtctldata.GetSrvKeyspaceNamesResponse.NamesEntry.value:type_name -> vtctldata.GetSrvKeyspaceNamesResponse.NameList - 351, // 234: vtctldata.GetSrvKeyspacesResponse.SrvKeyspacesEntry.value:type_name -> topodata.SrvKeyspace - 339, // 235: vtctldata.GetSrvVSchemasResponse.SrvVSchemasEntry.value:type_name -> vschema.SrvVSchema - 318, // 236: vtctldata.MoveTablesCreateResponse.TabletInfo.tablet:type_name -> topodata.TabletAlias - 352, // 237: vtctldata.ShardReplicationPositionsResponse.ReplicationStatusesEntry.value:type_name -> replicationdata.Status - 328, // 238: vtctldata.ShardReplicationPositionsResponse.TabletMapEntry.value:type_name -> topodata.Tablet - 236, // 239: vtctldata.ValidateResponse.ResultsByKeyspaceEntry.value:type_name -> vtctldata.ValidateKeyspaceResponse - 242, // 240: vtctldata.ValidateKeyspaceResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse - 242, // 241: vtctldata.ValidateSchemaKeyspaceResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse - 242, // 242: vtctldata.ValidateVersionKeyspaceResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse - 242, // 243: vtctldata.ValidateVSchemaResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse - 353, // 244: vtctldata.VDiffShowResponse.TabletResponsesEntry.value:type_name -> tabletmanagerdata.VDiffResponse - 318, // 245: vtctldata.WorkflowDeleteResponse.TabletInfo.tablet:type_name -> topodata.TabletAlias - 318, // 246: vtctldata.WorkflowStatusResponse.ShardStreamState.tablet:type_name -> topodata.TabletAlias - 309, // 247: vtctldata.WorkflowStatusResponse.ShardStreams.streams:type_name -> vtctldata.WorkflowStatusResponse.ShardStreamState - 308, // 248: vtctldata.WorkflowStatusResponse.TableCopyStateEntry.value:type_name -> vtctldata.WorkflowStatusResponse.TableCopyState - 310, // 249: vtctldata.WorkflowStatusResponse.ShardStreamsEntry.value:type_name -> vtctldata.WorkflowStatusResponse.ShardStreams - 318, // 250: vtctldata.WorkflowUpdateResponse.TabletInfo.tablet:type_name -> topodata.TabletAlias - 251, // [251:251] is the sub-list for method output_type - 251, // [251:251] is the sub-list for method input_type - 251, // [251:251] is the sub-list for extension type_name - 251, // [251:251] is the sub-list for extension extendee - 0, // [0:251] is the sub-list for field type_name + 343, // 160: vtctldata.RestoreFromBackupRequest.tablet_alias:type_name -> topodata.TabletAlias + 342, // 161: vtctldata.RestoreFromBackupRequest.backup_time:type_name -> vttime.Time + 342, // 162: vtctldata.RestoreFromBackupRequest.restore_to_timestamp:type_name -> vttime.Time + 343, // 163: vtctldata.RestoreFromBackupResponse.tablet_alias:type_name -> topodata.TabletAlias + 339, // 164: vtctldata.RestoreFromBackupResponse.event:type_name -> logutil.Event + 350, // 165: vtctldata.RetrySchemaMigrationRequest.caller_id:type_name -> vtrpc.CallerID + 322, // 166: vtctldata.RetrySchemaMigrationResponse.rows_affected_by_shard:type_name -> vtctldata.RetrySchemaMigrationResponse.RowsAffectedByShardEntry + 343, // 167: vtctldata.RunHealthCheckRequest.tablet_alias:type_name -> topodata.TabletAlias + 341, // 168: vtctldata.SetKeyspaceDurabilityPolicyResponse.keyspace:type_name -> topodata.Keyspace + 341, // 169: vtctldata.SetKeyspaceShardingInfoResponse.keyspace:type_name -> topodata.Keyspace + 345, // 170: vtctldata.SetShardIsPrimaryServingResponse.shard:type_name -> topodata.Shard + 352, // 171: vtctldata.SetShardTabletControlRequest.tablet_type:type_name -> topodata.TabletType + 345, // 172: vtctldata.SetShardTabletControlResponse.shard:type_name -> topodata.Shard + 343, // 173: vtctldata.SetWritableRequest.tablet_alias:type_name -> topodata.TabletAlias + 343, // 174: vtctldata.ShardReplicationAddRequest.tablet_alias:type_name -> topodata.TabletAlias + 368, // 175: vtctldata.ShardReplicationFixResponse.error:type_name -> topodata.ShardReplicationError + 323, // 176: vtctldata.ShardReplicationPositionsResponse.replication_statuses:type_name -> vtctldata.ShardReplicationPositionsResponse.ReplicationStatusesEntry + 324, // 177: vtctldata.ShardReplicationPositionsResponse.tablet_map:type_name -> vtctldata.ShardReplicationPositionsResponse.TabletMapEntry + 343, // 178: vtctldata.ShardReplicationRemoveRequest.tablet_alias:type_name -> topodata.TabletAlias + 343, // 179: vtctldata.SleepTabletRequest.tablet_alias:type_name -> topodata.TabletAlias + 344, // 180: vtctldata.SleepTabletRequest.duration:type_name -> vttime.Duration + 369, // 181: vtctldata.SourceShardAddRequest.key_range:type_name -> topodata.KeyRange + 345, // 182: vtctldata.SourceShardAddResponse.shard:type_name -> topodata.Shard + 345, // 183: vtctldata.SourceShardDeleteResponse.shard:type_name -> topodata.Shard + 343, // 184: vtctldata.StartReplicationRequest.tablet_alias:type_name -> topodata.TabletAlias + 343, // 185: vtctldata.StopReplicationRequest.tablet_alias:type_name -> topodata.TabletAlias + 343, // 186: vtctldata.TabletExternallyReparentedRequest.tablet:type_name -> topodata.TabletAlias + 343, // 187: vtctldata.TabletExternallyReparentedResponse.new_primary:type_name -> topodata.TabletAlias + 343, // 188: vtctldata.TabletExternallyReparentedResponse.old_primary:type_name -> topodata.TabletAlias + 346, // 189: vtctldata.UpdateCellInfoRequest.cell_info:type_name -> topodata.CellInfo + 346, // 190: vtctldata.UpdateCellInfoResponse.cell_info:type_name -> topodata.CellInfo + 370, // 191: vtctldata.UpdateCellsAliasRequest.cells_alias:type_name -> topodata.CellsAlias + 370, // 192: vtctldata.UpdateCellsAliasResponse.cells_alias:type_name -> topodata.CellsAlias + 325, // 193: vtctldata.ValidateResponse.results_by_keyspace:type_name -> vtctldata.ValidateResponse.ResultsByKeyspaceEntry + 326, // 194: vtctldata.ValidateKeyspaceResponse.results_by_shard:type_name -> vtctldata.ValidateKeyspaceResponse.ResultsByShardEntry + 327, // 195: vtctldata.ValidateSchemaKeyspaceResponse.results_by_shard:type_name -> vtctldata.ValidateSchemaKeyspaceResponse.ResultsByShardEntry + 328, // 196: vtctldata.ValidateVersionKeyspaceResponse.results_by_shard:type_name -> vtctldata.ValidateVersionKeyspaceResponse.ResultsByShardEntry + 329, // 197: vtctldata.ValidateVSchemaResponse.results_by_shard:type_name -> vtctldata.ValidateVSchemaResponse.ResultsByShardEntry + 352, // 198: vtctldata.VDiffCreateRequest.tablet_types:type_name -> topodata.TabletType + 340, // 199: vtctldata.VDiffCreateRequest.tablet_selection_preference:type_name -> tabletmanagerdata.TabletSelectionPreference + 344, // 200: vtctldata.VDiffCreateRequest.filtered_replication_wait_time:type_name -> vttime.Duration + 344, // 201: vtctldata.VDiffCreateRequest.wait_update_interval:type_name -> vttime.Duration + 344, // 202: vtctldata.VDiffCreateRequest.max_diff_duration:type_name -> vttime.Duration + 330, // 203: vtctldata.VDiffShowResponse.tablet_responses:type_name -> vtctldata.VDiffShowResponse.TabletResponsesEntry + 351, // 204: vtctldata.VSchemaGetResponse.v_schema:type_name -> vschema.Keyspace + 331, // 205: vtctldata.VSchemaAddVindexRequest.params:type_name -> vtctldata.VSchemaAddVindexRequest.ParamsEntry + 332, // 206: vtctldata.WorkflowDeleteResponse.details:type_name -> vtctldata.WorkflowDeleteResponse.TabletInfo + 336, // 207: vtctldata.WorkflowStatusResponse.table_copy_state:type_name -> vtctldata.WorkflowStatusResponse.TableCopyStateEntry + 337, // 208: vtctldata.WorkflowStatusResponse.shard_streams:type_name -> vtctldata.WorkflowStatusResponse.ShardStreamsEntry + 352, // 209: vtctldata.WorkflowSwitchTrafficRequest.tablet_types:type_name -> topodata.TabletType + 344, // 210: vtctldata.WorkflowSwitchTrafficRequest.max_replication_lag_allowed:type_name -> vttime.Duration + 344, // 211: vtctldata.WorkflowSwitchTrafficRequest.timeout:type_name -> vttime.Duration + 371, // 212: vtctldata.WorkflowUpdateRequest.tablet_request:type_name -> tabletmanagerdata.UpdateVReplicationWorkflowRequest + 338, // 213: vtctldata.WorkflowUpdateResponse.details:type_name -> vtctldata.WorkflowUpdateResponse.TabletInfo + 372, // 214: vtctldata.GetMirrorRulesResponse.mirror_rules:type_name -> vschema.MirrorRules + 352, // 215: vtctldata.WorkflowMirrorTrafficRequest.tablet_types:type_name -> topodata.TabletType + 298, // 216: vtctldata.Workflow.ShardStreamsEntry.value:type_name -> vtctldata.Workflow.ShardStream + 299, // 217: vtctldata.Workflow.ShardStream.streams:type_name -> vtctldata.Workflow.Stream + 373, // 218: vtctldata.Workflow.ShardStream.tablet_controls:type_name -> topodata.Shard.TabletControl + 343, // 219: vtctldata.Workflow.Stream.tablet:type_name -> topodata.TabletAlias + 374, // 220: vtctldata.Workflow.Stream.binlog_source:type_name -> binlogdata.BinlogSource + 342, // 221: vtctldata.Workflow.Stream.transaction_timestamp:type_name -> vttime.Time + 342, // 222: vtctldata.Workflow.Stream.time_updated:type_name -> vttime.Time + 300, // 223: vtctldata.Workflow.Stream.copy_states:type_name -> vtctldata.Workflow.Stream.CopyState + 301, // 224: vtctldata.Workflow.Stream.logs:type_name -> vtctldata.Workflow.Stream.Log + 302, // 225: vtctldata.Workflow.Stream.throttler_status:type_name -> vtctldata.Workflow.Stream.ThrottlerStatus + 352, // 226: vtctldata.Workflow.Stream.tablet_types:type_name -> topodata.TabletType + 340, // 227: vtctldata.Workflow.Stream.tablet_selection_preference:type_name -> tabletmanagerdata.TabletSelectionPreference + 342, // 228: vtctldata.Workflow.Stream.Log.created_at:type_name -> vttime.Time + 342, // 229: vtctldata.Workflow.Stream.Log.updated_at:type_name -> vttime.Time + 342, // 230: vtctldata.Workflow.Stream.ThrottlerStatus.time_throttled:type_name -> vttime.Time + 305, // 231: vtctldata.ApplyVSchemaResponse.UnknownVindexParamsEntry.value:type_name -> vtctldata.ApplyVSchemaResponse.ParamList + 11, // 232: vtctldata.FindAllShardsInKeyspaceResponse.ShardsEntry.value:type_name -> vtctldata.Shard + 370, // 233: vtctldata.GetCellsAliasesResponse.AliasesEntry.value:type_name -> topodata.CellsAlias + 375, // 234: vtctldata.GetShardReplicationResponse.ShardReplicationByCellEntry.value:type_name -> topodata.ShardReplication + 317, // 235: vtctldata.GetSrvKeyspaceNamesResponse.NamesEntry.value:type_name -> vtctldata.GetSrvKeyspaceNamesResponse.NameList + 376, // 236: vtctldata.GetSrvKeyspacesResponse.SrvKeyspacesEntry.value:type_name -> topodata.SrvKeyspace + 364, // 237: vtctldata.GetSrvVSchemasResponse.SrvVSchemasEntry.value:type_name -> vschema.SrvVSchema + 343, // 238: vtctldata.MoveTablesCreateResponse.TabletInfo.tablet:type_name -> topodata.TabletAlias + 377, // 239: vtctldata.ShardReplicationPositionsResponse.ReplicationStatusesEntry.value:type_name -> replicationdata.Status + 353, // 240: vtctldata.ShardReplicationPositionsResponse.TabletMapEntry.value:type_name -> topodata.Tablet + 236, // 241: vtctldata.ValidateResponse.ResultsByKeyspaceEntry.value:type_name -> vtctldata.ValidateKeyspaceResponse + 242, // 242: vtctldata.ValidateKeyspaceResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse + 242, // 243: vtctldata.ValidateSchemaKeyspaceResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse + 242, // 244: vtctldata.ValidateVersionKeyspaceResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse + 242, // 245: vtctldata.ValidateVSchemaResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse + 378, // 246: vtctldata.VDiffShowResponse.TabletResponsesEntry.value:type_name -> tabletmanagerdata.VDiffResponse + 343, // 247: vtctldata.WorkflowDeleteResponse.TabletInfo.tablet:type_name -> topodata.TabletAlias + 343, // 248: vtctldata.WorkflowStatusResponse.ShardStreamState.tablet:type_name -> topodata.TabletAlias + 334, // 249: vtctldata.WorkflowStatusResponse.ShardStreams.streams:type_name -> vtctldata.WorkflowStatusResponse.ShardStreamState + 333, // 250: vtctldata.WorkflowStatusResponse.TableCopyStateEntry.value:type_name -> vtctldata.WorkflowStatusResponse.TableCopyState + 335, // 251: vtctldata.WorkflowStatusResponse.ShardStreamsEntry.value:type_name -> vtctldata.WorkflowStatusResponse.ShardStreams + 343, // 252: vtctldata.WorkflowUpdateResponse.TabletInfo.tablet:type_name -> topodata.TabletAlias + 253, // [253:253] is the sub-list for method output_type + 253, // [253:253] is the sub-list for method input_type + 253, // [253:253] is the sub-list for extension type_name + 253, // [253:253] is the sub-list for extension extendee + 0, // [0:253] is the sub-list for field type_name } func init() { file_vtctldata_proto_init() } @@ -20437,13 +21851,14 @@ func file_vtctldata_proto_init() { } file_vtctldata_proto_msgTypes[23].OneofWrappers = []any{} file_vtctldata_proto_msgTypes[244].OneofWrappers = []any{} + file_vtctldata_proto_msgTypes[258].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_vtctldata_proto_rawDesc), len(file_vtctldata_proto_rawDesc)), NumEnums: 5, - NumMessages: 309, + NumMessages: 334, NumExtensions: 0, NumServices: 0, }, diff --git a/go/vt/proto/vtctldata/vtctldata_vtproto.pb.go b/go/vt/proto/vtctldata/vtctldata_vtproto.pb.go index 7bfad34bf7a..9899350263a 100644 --- a/go/vt/proto/vtctldata/vtctldata_vtproto.pb.go +++ b/go/vt/proto/vtctldata/vtctldata_vtproto.pb.go @@ -5571,6 +5571,484 @@ func (m *VDiffStopResponse) CloneMessageVT() proto.Message { return m.CloneVT() } +func (m *VSchemaCreateRequest) CloneVT() *VSchemaCreateRequest { + if m == nil { + return (*VSchemaCreateRequest)(nil) + } + r := new(VSchemaCreateRequest) + r.VSchemaName = m.VSchemaName + r.Sharded = m.Sharded + r.Draft = m.Draft + r.VSchemaJson = m.VSchemaJson + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaCreateRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaCreateResponse) CloneVT() *VSchemaCreateResponse { + if m == nil { + return (*VSchemaCreateResponse)(nil) + } + r := new(VSchemaCreateResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaCreateResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaGetRequest) CloneVT() *VSchemaGetRequest { + if m == nil { + return (*VSchemaGetRequest)(nil) + } + r := new(VSchemaGetRequest) + r.VSchemaName = m.VSchemaName + r.IncludeDrafts = m.IncludeDrafts + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaGetRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaGetResponse) CloneVT() *VSchemaGetResponse { + if m == nil { + return (*VSchemaGetResponse)(nil) + } + r := new(VSchemaGetResponse) + r.VSchema = m.VSchema.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaGetResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaUpdateRequest) CloneVT() *VSchemaUpdateRequest { + if m == nil { + return (*VSchemaUpdateRequest)(nil) + } + r := new(VSchemaUpdateRequest) + r.VSchemaName = m.VSchemaName + if rhs := m.Sharded; rhs != nil { + tmpVal := *rhs + r.Sharded = &tmpVal + } + if rhs := m.ForeignKeyMode; rhs != nil { + tmpVal := *rhs + r.ForeignKeyMode = &tmpVal + } + if rhs := m.Draft; rhs != nil { + tmpVal := *rhs + r.Draft = &tmpVal + } + if rhs := m.MultiTenant; rhs != nil { + tmpVal := *rhs + r.MultiTenant = &tmpVal + } + if rhs := m.TenantIdColumnName; rhs != nil { + tmpVal := *rhs + r.TenantIdColumnName = &tmpVal + } + if rhs := m.TenantIdColumnType; rhs != nil { + tmpVal := *rhs + r.TenantIdColumnType = &tmpVal + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaUpdateRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaUpdateResponse) CloneVT() *VSchemaUpdateResponse { + if m == nil { + return (*VSchemaUpdateResponse)(nil) + } + r := new(VSchemaUpdateResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaUpdateResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaPublishRequest) CloneVT() *VSchemaPublishRequest { + if m == nil { + return (*VSchemaPublishRequest)(nil) + } + r := new(VSchemaPublishRequest) + r.VSchemaName = m.VSchemaName + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaPublishRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaPublishResponse) CloneVT() *VSchemaPublishResponse { + if m == nil { + return (*VSchemaPublishResponse)(nil) + } + r := new(VSchemaPublishResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaPublishResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaAddVindexRequest) CloneVT() *VSchemaAddVindexRequest { + if m == nil { + return (*VSchemaAddVindexRequest)(nil) + } + r := new(VSchemaAddVindexRequest) + r.VSchemaName = m.VSchemaName + r.VindexName = m.VindexName + r.VindexType = m.VindexType + if rhs := m.Params; rhs != nil { + tmpContainer := make(map[string]string, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v + } + r.Params = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaAddVindexRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaAddVindexResponse) CloneVT() *VSchemaAddVindexResponse { + if m == nil { + return (*VSchemaAddVindexResponse)(nil) + } + r := new(VSchemaAddVindexResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaAddVindexResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaRemoveVindexRequest) CloneVT() *VSchemaRemoveVindexRequest { + if m == nil { + return (*VSchemaRemoveVindexRequest)(nil) + } + r := new(VSchemaRemoveVindexRequest) + r.VSchemaName = m.VSchemaName + r.VindexName = m.VindexName + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaRemoveVindexRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaRemoveVindexResponse) CloneVT() *VSchemaRemoveVindexResponse { + if m == nil { + return (*VSchemaRemoveVindexResponse)(nil) + } + r := new(VSchemaRemoveVindexResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaRemoveVindexResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaAddLookupVindexRequest) CloneVT() *VSchemaAddLookupVindexRequest { + if m == nil { + return (*VSchemaAddLookupVindexRequest)(nil) + } + r := new(VSchemaAddLookupVindexRequest) + r.VSchemaName = m.VSchemaName + r.VindexName = m.VindexName + r.LookupVindexType = m.LookupVindexType + r.TableName = m.TableName + r.Owner = m.Owner + r.IgnoreNulls = m.IgnoreNulls + if rhs := m.FromColumns; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.FromColumns = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaAddLookupVindexRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaAddLookupVindexResponse) CloneVT() *VSchemaAddLookupVindexResponse { + if m == nil { + return (*VSchemaAddLookupVindexResponse)(nil) + } + r := new(VSchemaAddLookupVindexResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaAddLookupVindexResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaAddTablesRequest) CloneVT() *VSchemaAddTablesRequest { + if m == nil { + return (*VSchemaAddTablesRequest)(nil) + } + r := new(VSchemaAddTablesRequest) + r.VSchemaName = m.VSchemaName + r.PrimaryVindexName = m.PrimaryVindexName + r.AddAll = m.AddAll + if rhs := m.Tables; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.Tables = tmpContainer + } + if rhs := m.Columns; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.Columns = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaAddTablesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaAddTablesResponse) CloneVT() *VSchemaAddTablesResponse { + if m == nil { + return (*VSchemaAddTablesResponse)(nil) + } + r := new(VSchemaAddTablesResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaAddTablesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaRemoveTablesRequest) CloneVT() *VSchemaRemoveTablesRequest { + if m == nil { + return (*VSchemaRemoveTablesRequest)(nil) + } + r := new(VSchemaRemoveTablesRequest) + r.VSchemaName = m.VSchemaName + if rhs := m.Tables; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.Tables = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaRemoveTablesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaRemoveTablesResponse) CloneVT() *VSchemaRemoveTablesResponse { + if m == nil { + return (*VSchemaRemoveTablesResponse)(nil) + } + r := new(VSchemaRemoveTablesResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaRemoveTablesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaSetPrimaryVindexRequest) CloneVT() *VSchemaSetPrimaryVindexRequest { + if m == nil { + return (*VSchemaSetPrimaryVindexRequest)(nil) + } + r := new(VSchemaSetPrimaryVindexRequest) + r.VSchemaName = m.VSchemaName + r.VindexName = m.VindexName + if rhs := m.Tables; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.Tables = tmpContainer + } + if rhs := m.Columns; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.Columns = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaSetPrimaryVindexRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaSetPrimaryVindexResponse) CloneVT() *VSchemaSetPrimaryVindexResponse { + if m == nil { + return (*VSchemaSetPrimaryVindexResponse)(nil) + } + r := new(VSchemaSetPrimaryVindexResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaSetPrimaryVindexResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaSetSequenceRequest) CloneVT() *VSchemaSetSequenceRequest { + if m == nil { + return (*VSchemaSetSequenceRequest)(nil) + } + r := new(VSchemaSetSequenceRequest) + r.VSchemaName = m.VSchemaName + r.TableName = m.TableName + r.Column = m.Column + r.SequenceSource = m.SequenceSource + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaSetSequenceRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaSetSequenceResponse) CloneVT() *VSchemaSetSequenceResponse { + if m == nil { + return (*VSchemaSetSequenceResponse)(nil) + } + r := new(VSchemaSetSequenceResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaSetSequenceResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaSetReferenceRequest) CloneVT() *VSchemaSetReferenceRequest { + if m == nil { + return (*VSchemaSetReferenceRequest)(nil) + } + r := new(VSchemaSetReferenceRequest) + r.VSchemaName = m.VSchemaName + r.TableName = m.TableName + r.Source = m.Source + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaSetReferenceRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *VSchemaSetReferenceResponse) CloneVT() *VSchemaSetReferenceResponse { + if m == nil { + return (*VSchemaSetReferenceResponse)(nil) + } + r := new(VSchemaSetReferenceResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *VSchemaSetReferenceResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + func (m *WorkflowDeleteRequest) CloneVT() *WorkflowDeleteRequest { if m == nil { return (*WorkflowDeleteRequest)(nil) @@ -21168,7 +21646,7 @@ func (m *VDiffStopResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *WorkflowDeleteRequest) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaCreateRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -21181,12 +21659,12 @@ func (m *WorkflowDeleteRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WorkflowDeleteRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaCreateRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowDeleteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaCreateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -21198,68 +21676,44 @@ func (m *WorkflowDeleteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.IgnoreSourceKeyspace { - i-- - if m.IgnoreSourceKeyspace { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.DeleteBatchSize != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.DeleteBatchSize)) + if len(m.VSchemaJson) > 0 { + i -= len(m.VSchemaJson) + copy(dAtA[i:], m.VSchemaJson) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VSchemaJson))) i-- - dAtA[i] = 0x30 - } - if len(m.Shards) > 0 { - for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Shards[iNdEx]) - copy(dAtA[i:], m.Shards[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Shards[iNdEx]))) - i-- - dAtA[i] = 0x2a - } + dAtA[i] = 0x22 } - if m.KeepRoutingRules { + if m.Draft { i-- - if m.KeepRoutingRules { + if m.Draft { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- - dAtA[i] = 0x20 + dAtA[i] = 0x18 } - if m.KeepData { + if m.Sharded { i-- - if m.KeepData { + if m.Sharded { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- - dAtA[i] = 0x18 - } - if len(m.Workflow) > 0 { - i -= len(m.Workflow) - copy(dAtA[i:], m.Workflow) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Workflow))) - i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } - if len(m.Keyspace) > 0 { - i -= len(m.Keyspace) - copy(dAtA[i:], m.Keyspace) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Keyspace))) + if len(m.VSchemaName) > 0 { + i -= len(m.VSchemaName) + copy(dAtA[i:], m.VSchemaName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VSchemaName))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *WorkflowDeleteResponse_TabletInfo) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaCreateResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -21272,12 +21726,12 @@ func (m *WorkflowDeleteResponse_TabletInfo) MarshalVT() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *WorkflowDeleteResponse_TabletInfo) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaCreateResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowDeleteResponse_TabletInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaCreateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -21289,30 +21743,10 @@ func (m *WorkflowDeleteResponse_TabletInfo) MarshalToSizedBufferVT(dAtA []byte) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Deleted { - i-- - if m.Deleted { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.Tablet != nil { - size, err := m.Tablet.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *WorkflowDeleteResponse) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaGetRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -21325,12 +21759,12 @@ func (m *WorkflowDeleteResponse) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WorkflowDeleteResponse) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaGetRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowDeleteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaGetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -21342,29 +21776,27 @@ func (m *WorkflowDeleteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Details) > 0 { - for iNdEx := len(m.Details) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Details[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 + if m.IncludeDrafts { + i-- + if m.IncludeDrafts { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x10 } - if len(m.Summary) > 0 { - i -= len(m.Summary) - copy(dAtA[i:], m.Summary) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Summary))) + if len(m.VSchemaName) > 0 { + i -= len(m.VSchemaName) + copy(dAtA[i:], m.VSchemaName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VSchemaName))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *WorkflowStatusRequest) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaGetResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -21377,12 +21809,12 @@ func (m *WorkflowStatusRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WorkflowStatusRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaGetResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowStatusRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaGetResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -21394,33 +21826,20 @@ func (m *WorkflowStatusRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Shards) > 0 { - for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Shards[iNdEx]) - copy(dAtA[i:], m.Shards[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Shards[iNdEx]))) - i-- - dAtA[i] = 0x1a + if m.VSchema != nil { + size, err := m.VSchema.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } - } - if len(m.Workflow) > 0 { - i -= len(m.Workflow) - copy(dAtA[i:], m.Workflow) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Workflow))) - i-- - dAtA[i] = 0x12 - } - if len(m.Keyspace) > 0 { - i -= len(m.Keyspace) - copy(dAtA[i:], m.Keyspace) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Keyspace))) + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *WorkflowStatusResponse_TableCopyState) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaUpdateRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -21433,12 +21852,12 @@ func (m *WorkflowStatusResponse_TableCopyState) MarshalVT() (dAtA []byte, err er return dAtA[:n], nil } -func (m *WorkflowStatusResponse_TableCopyState) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaUpdateRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowStatusResponse_TableCopyState) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaUpdateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -21450,42 +21869,68 @@ func (m *WorkflowStatusResponse_TableCopyState) MarshalToSizedBufferVT(dAtA []by i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.BytesPercentage != 0 { - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.BytesPercentage)))) + if m.TenantIdColumnType != nil { + i -= len(*m.TenantIdColumnType) + copy(dAtA[i:], *m.TenantIdColumnType) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.TenantIdColumnType))) i-- - dAtA[i] = 0x35 + dAtA[i] = 0x3a } - if m.BytesTotal != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BytesTotal)) + if m.TenantIdColumnName != nil { + i -= len(*m.TenantIdColumnName) + copy(dAtA[i:], *m.TenantIdColumnName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.TenantIdColumnName))) + i-- + dAtA[i] = 0x32 + } + if m.MultiTenant != nil { + i-- + if *m.MultiTenant { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } i-- dAtA[i] = 0x28 } - if m.BytesCopied != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BytesCopied)) + if m.Draft != nil { + i-- + if *m.Draft { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } i-- dAtA[i] = 0x20 } - if m.RowsPercentage != 0 { - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.RowsPercentage)))) + if m.ForeignKeyMode != nil { + i -= len(*m.ForeignKeyMode) + copy(dAtA[i:], *m.ForeignKeyMode) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.ForeignKeyMode))) i-- - dAtA[i] = 0x1d + dAtA[i] = 0x1a } - if m.RowsTotal != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RowsTotal)) + if m.Sharded != nil { + i-- + if *m.Sharded { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } i-- dAtA[i] = 0x10 } - if m.RowsCopied != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RowsCopied)) + if len(m.VSchemaName) > 0 { + i -= len(m.VSchemaName) + copy(dAtA[i:], m.VSchemaName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VSchemaName))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *WorkflowStatusResponse_ShardStreamState) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaUpdateResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -21498,12 +21943,12 @@ func (m *WorkflowStatusResponse_ShardStreamState) MarshalVT() (dAtA []byte, err return dAtA[:n], nil } -func (m *WorkflowStatusResponse_ShardStreamState) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaUpdateResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowStatusResponse_ShardStreamState) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaUpdateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -21515,53 +21960,10 @@ func (m *WorkflowStatusResponse_ShardStreamState) MarshalToSizedBufferVT(dAtA [] i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Info) > 0 { - i -= len(m.Info) - copy(dAtA[i:], m.Info) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Info))) - i-- - dAtA[i] = 0x32 - } - if len(m.Status) > 0 { - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x2a - } - if len(m.Position) > 0 { - i -= len(m.Position) - copy(dAtA[i:], m.Position) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Position))) - i-- - dAtA[i] = 0x22 - } - if len(m.SourceShard) > 0 { - i -= len(m.SourceShard) - copy(dAtA[i:], m.SourceShard) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SourceShard))) - i-- - dAtA[i] = 0x1a - } - if m.Tablet != nil { - size, err := m.Tablet.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - } - if m.Id != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 - } return len(dAtA) - i, nil } -func (m *WorkflowStatusResponse_ShardStreams) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaPublishRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -21574,12 +21976,12 @@ func (m *WorkflowStatusResponse_ShardStreams) MarshalVT() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *WorkflowStatusResponse_ShardStreams) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaPublishRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowStatusResponse_ShardStreams) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaPublishRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -21591,22 +21993,17 @@ func (m *WorkflowStatusResponse_ShardStreams) MarshalToSizedBufferVT(dAtA []byte i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Streams) > 0 { - for iNdEx := len(m.Streams) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Streams[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - } + if len(m.VSchemaName) > 0 { + i -= len(m.VSchemaName) + copy(dAtA[i:], m.VSchemaName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VSchemaName))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *WorkflowStatusResponse) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaPublishResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -21619,12 +22016,12 @@ func (m *WorkflowStatusResponse) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WorkflowStatusResponse) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaPublishResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowStatusResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaPublishResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -21636,61 +22033,10 @@ func (m *WorkflowStatusResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.TrafficState) > 0 { - i -= len(m.TrafficState) - copy(dAtA[i:], m.TrafficState) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TrafficState))) - i-- - dAtA[i] = 0x1a - } - if len(m.ShardStreams) > 0 { - for k := range m.ShardStreams { - v := m.ShardStreams[k] - baseI := i - size, err := v.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.TableCopyState) > 0 { - for k := range m.TableCopyState { - v := m.TableCopyState[k] - baseI := i - size, err := v.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } return len(dAtA) - i, nil } -func (m *WorkflowSwitchTrafficRequest) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaAddVindexRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -21703,12 +22049,12 @@ func (m *WorkflowSwitchTrafficRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WorkflowSwitchTrafficRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaAddVindexRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowSwitchTrafficRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaAddVindexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -21720,128 +22066,50 @@ func (m *WorkflowSwitchTrafficRequest) MarshalToSizedBufferVT(dAtA []byte) (int, i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Force { - i-- - if m.Force { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x60 - } - if len(m.Shards) > 0 { - for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Shards[iNdEx]) - copy(dAtA[i:], m.Shards[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Shards[iNdEx]))) + if len(m.Params) > 0 { + for k := range m.Params { + v := m.Params[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(v))) i-- - dAtA[i] = 0x5a - } - } - if m.InitializeTargetSequences { - i-- - if m.InitializeTargetSequences { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x50 - } - if m.DryRun { - i-- - if m.DryRun { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if m.Timeout != nil { - size, err := m.Timeout.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x42 - } - if m.Direction != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Direction)) - i-- - dAtA[i] = 0x38 - } - if m.EnableReverseReplication { - i-- - if m.EnableReverseReplication { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.MaxReplicationLagAllowed != nil { - size, err := m.MaxReplicationLagAllowed.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x22 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x2a } - if len(m.TabletTypes) > 0 { - var pksize2 int - for _, num := range m.TabletTypes { - pksize2 += protohelpers.SizeOfVarint(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num1 := range m.TabletTypes { - num := uint64(num1) - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) + if len(m.VindexType) > 0 { + i -= len(m.VindexType) + copy(dAtA[i:], m.VindexType) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VindexType))) i-- - dAtA[i] = 0x22 - } - if len(m.Cells) > 0 { - for iNdEx := len(m.Cells) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Cells[iNdEx]) - copy(dAtA[i:], m.Cells[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Cells[iNdEx]))) - i-- - dAtA[i] = 0x1a - } + dAtA[i] = 0x1a } - if len(m.Workflow) > 0 { - i -= len(m.Workflow) - copy(dAtA[i:], m.Workflow) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Workflow))) + if len(m.VindexName) > 0 { + i -= len(m.VindexName) + copy(dAtA[i:], m.VindexName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VindexName))) i-- dAtA[i] = 0x12 } - if len(m.Keyspace) > 0 { - i -= len(m.Keyspace) - copy(dAtA[i:], m.Keyspace) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Keyspace))) + if len(m.VSchemaName) > 0 { + i -= len(m.VSchemaName) + copy(dAtA[i:], m.VSchemaName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VSchemaName))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *WorkflowSwitchTrafficResponse) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaAddVindexResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -21854,12 +22122,12 @@ func (m *WorkflowSwitchTrafficResponse) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WorkflowSwitchTrafficResponse) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaAddVindexResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowSwitchTrafficResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaAddVindexResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -21871,40 +22139,10 @@ func (m *WorkflowSwitchTrafficResponse) MarshalToSizedBufferVT(dAtA []byte) (int i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.DryRunResults) > 0 { - for iNdEx := len(m.DryRunResults) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.DryRunResults[iNdEx]) - copy(dAtA[i:], m.DryRunResults[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DryRunResults[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.CurrentState) > 0 { - i -= len(m.CurrentState) - copy(dAtA[i:], m.CurrentState) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CurrentState))) - i-- - dAtA[i] = 0x1a - } - if len(m.StartState) > 0 { - i -= len(m.StartState) - copy(dAtA[i:], m.StartState) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StartState))) - i-- - dAtA[i] = 0x12 - } - if len(m.Summary) > 0 { - i -= len(m.Summary) - copy(dAtA[i:], m.Summary) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Summary))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *WorkflowUpdateRequest) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaRemoveVindexRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -21917,12 +22155,12 @@ func (m *WorkflowUpdateRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WorkflowUpdateRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaRemoveVindexRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowUpdateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaRemoveVindexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -21934,27 +22172,24 @@ func (m *WorkflowUpdateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.TabletRequest != nil { - size, err := m.TabletRequest.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if len(m.VindexName) > 0 { + i -= len(m.VindexName) + copy(dAtA[i:], m.VindexName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VindexName))) i-- dAtA[i] = 0x12 } - if len(m.Keyspace) > 0 { - i -= len(m.Keyspace) - copy(dAtA[i:], m.Keyspace) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Keyspace))) + if len(m.VSchemaName) > 0 { + i -= len(m.VSchemaName) + copy(dAtA[i:], m.VSchemaName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VSchemaName))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *WorkflowUpdateResponse_TabletInfo) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaRemoveVindexResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -21967,12 +22202,12 @@ func (m *WorkflowUpdateResponse_TabletInfo) MarshalVT() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *WorkflowUpdateResponse_TabletInfo) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaRemoveVindexResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowUpdateResponse_TabletInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaRemoveVindexResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -21984,30 +22219,10 @@ func (m *WorkflowUpdateResponse_TabletInfo) MarshalToSizedBufferVT(dAtA []byte) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Changed { - i-- - if m.Changed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.Tablet != nil { - size, err := m.Tablet.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *WorkflowUpdateResponse) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaAddLookupVindexRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -22020,12 +22235,12 @@ func (m *WorkflowUpdateResponse) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WorkflowUpdateResponse) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaAddLookupVindexRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowUpdateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaAddLookupVindexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -22037,29 +22252,64 @@ func (m *WorkflowUpdateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Details) > 0 { - for iNdEx := len(m.Details) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Details[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if m.IgnoreNulls { + i-- + if m.IgnoreNulls { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x32 + } + if len(m.FromColumns) > 0 { + for iNdEx := len(m.FromColumns) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.FromColumns[iNdEx]) + copy(dAtA[i:], m.FromColumns[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.FromColumns[iNdEx]))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x2a } } - if len(m.Summary) > 0 { - i -= len(m.Summary) - copy(dAtA[i:], m.Summary) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Summary))) + if len(m.TableName) > 0 { + i -= len(m.TableName) + copy(dAtA[i:], m.TableName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TableName))) + i-- + dAtA[i] = 0x22 + } + if len(m.LookupVindexType) > 0 { + i -= len(m.LookupVindexType) + copy(dAtA[i:], m.LookupVindexType) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.LookupVindexType))) + i-- + dAtA[i] = 0x1a + } + if len(m.VindexName) > 0 { + i -= len(m.VindexName) + copy(dAtA[i:], m.VindexName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VindexName))) + i-- + dAtA[i] = 0x12 + } + if len(m.VSchemaName) > 0 { + i -= len(m.VSchemaName) + copy(dAtA[i:], m.VSchemaName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VSchemaName))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *GetMirrorRulesRequest) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaAddLookupVindexResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -22072,12 +22322,12 @@ func (m *GetMirrorRulesRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetMirrorRulesRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaAddLookupVindexResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *GetMirrorRulesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaAddLookupVindexResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -22092,7 +22342,7 @@ func (m *GetMirrorRulesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *GetMirrorRulesResponse) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaAddTablesRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -22105,12 +22355,12 @@ func (m *GetMirrorRulesResponse) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetMirrorRulesResponse) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaAddTablesRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *GetMirrorRulesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaAddTablesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -22122,20 +22372,52 @@ func (m *GetMirrorRulesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.MirrorRules != nil { - size, err := m.MirrorRules.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if m.AddAll { + i-- + if m.AddAll { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x28 + } + if len(m.Columns) > 0 { + for iNdEx := len(m.Columns) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Columns[iNdEx]) + copy(dAtA[i:], m.Columns[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Columns[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.PrimaryVindexName) > 0 { + i -= len(m.PrimaryVindexName) + copy(dAtA[i:], m.PrimaryVindexName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PrimaryVindexName))) + i-- + dAtA[i] = 0x1a + } + if len(m.Tables) > 0 { + for iNdEx := len(m.Tables) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tables[iNdEx]) + copy(dAtA[i:], m.Tables[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Tables[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.VSchemaName) > 0 { + i -= len(m.VSchemaName) + copy(dAtA[i:], m.VSchemaName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VSchemaName))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *WorkflowMirrorTrafficRequest) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaAddTablesResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -22148,12 +22430,12 @@ func (m *WorkflowMirrorTrafficRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WorkflowMirrorTrafficRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaAddTablesResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowMirrorTrafficRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaAddTablesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -22165,51 +22447,59 @@ func (m *WorkflowMirrorTrafficRequest) MarshalToSizedBufferVT(dAtA []byte) (int, i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Percent != 0 { - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Percent)))) - i-- - dAtA[i] = 0x25 + return len(dAtA) - i, nil +} + +func (m *VSchemaRemoveTablesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - if len(m.TabletTypes) > 0 { - var pksize2 int - for _, num := range m.TabletTypes { - pksize2 += protohelpers.SizeOfVarint(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num1 := range m.TabletTypes { - num := uint64(num1) - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x1a + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - if len(m.Workflow) > 0 { - i -= len(m.Workflow) - copy(dAtA[i:], m.Workflow) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Workflow))) - i-- - dAtA[i] = 0x12 + return dAtA[:n], nil +} + +func (m *VSchemaRemoveTablesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaRemoveTablesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil } - if len(m.Keyspace) > 0 { - i -= len(m.Keyspace) - copy(dAtA[i:], m.Keyspace) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Keyspace))) + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Tables) > 0 { + for iNdEx := len(m.Tables) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tables[iNdEx]) + copy(dAtA[i:], m.Tables[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Tables[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.VSchemaName) > 0 { + i -= len(m.VSchemaName) + copy(dAtA[i:], m.VSchemaName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VSchemaName))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *WorkflowMirrorTrafficResponse) MarshalVT() (dAtA []byte, err error) { +func (m *VSchemaRemoveTablesResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -22222,12 +22512,12 @@ func (m *WorkflowMirrorTrafficResponse) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WorkflowMirrorTrafficResponse) MarshalToVT(dAtA []byte) (int, error) { +func (m *VSchemaRemoveTablesResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *WorkflowMirrorTrafficResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *VSchemaRemoveTablesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -22239,1312 +22529,1747 @@ func (m *WorkflowMirrorTrafficResponse) MarshalToSizedBufferVT(dAtA []byte) (int i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.CurrentState) > 0 { - i -= len(m.CurrentState) - copy(dAtA[i:], m.CurrentState) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CurrentState))) - i-- - dAtA[i] = 0x1a - } - if len(m.StartState) > 0 { - i -= len(m.StartState) - copy(dAtA[i:], m.StartState) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StartState))) - i-- - dAtA[i] = 0x12 + return len(dAtA) - i, nil +} + +func (m *VSchemaSetPrimaryVindexRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - if len(m.Summary) > 0 { - i -= len(m.Summary) - copy(dAtA[i:], m.Summary) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Summary))) - i-- - dAtA[i] = 0xa + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return dAtA[:n], nil } -func (m *ExecuteVtctlCommandRequest) SizeVT() (n int) { +func (m *VSchemaSetPrimaryVindexRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaSetPrimaryVindexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if len(m.Args) > 0 { - for _, s := range m.Args { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Columns) > 0 { + for iNdEx := len(m.Columns) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Columns[iNdEx]) + copy(dAtA[i:], m.Columns[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Columns[iNdEx]))) + i-- + dAtA[i] = 0x22 } } - if m.ActionTimeout != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.ActionTimeout)) + if len(m.VindexName) > 0 { + i -= len(m.VindexName) + copy(dAtA[i:], m.VindexName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VindexName))) + i-- + dAtA[i] = 0x1a } - n += len(m.unknownFields) - return n + if len(m.Tables) > 0 { + for iNdEx := len(m.Tables) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tables[iNdEx]) + copy(dAtA[i:], m.Tables[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Tables[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.VSchemaName) > 0 { + i -= len(m.VSchemaName) + copy(dAtA[i:], m.VSchemaName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VSchemaName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *ExecuteVtctlCommandResponse) SizeVT() (n int) { +func (m *VSchemaSetPrimaryVindexResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil } - var l int - _ = l - if m.Event != nil { - l = m.Event.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *TableMaterializeSettings) SizeVT() (n int) { +func (m *VSchemaSetPrimaryVindexResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaSetPrimaryVindexResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.TargetTable) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - l = len(m.SourceExpression) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return len(dAtA) - i, nil +} + +func (m *VSchemaSetSequenceRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - l = len(m.CreateDdl) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *MaterializeSettings) SizeVT() (n int) { +func (m *VSchemaSetSequenceRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaSetSequenceRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Workflow) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - l = len(m.SourceKeyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.SequenceSource) > 0 { + i -= len(m.SequenceSource) + copy(dAtA[i:], m.SequenceSource) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SequenceSource))) + i-- + dAtA[i] = 0x22 } - l = len(m.TargetKeyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Column) > 0 { + i -= len(m.Column) + copy(dAtA[i:], m.Column) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Column))) + i-- + dAtA[i] = 0x1a } - if m.StopAfterCopy { - n += 2 + if len(m.TableName) > 0 { + i -= len(m.TableName) + copy(dAtA[i:], m.TableName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TableName))) + i-- + dAtA[i] = 0x12 } - if len(m.TableSettings) > 0 { - for _, e := range m.TableSettings { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if len(m.VSchemaName) > 0 { + i -= len(m.VSchemaName) + copy(dAtA[i:], m.VSchemaName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VSchemaName))) + i-- + dAtA[i] = 0xa } - l = len(m.Cell) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return len(dAtA) - i, nil +} + +func (m *VSchemaSetSequenceResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - l = len(m.TabletTypes) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - l = len(m.ExternalCluster) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return dAtA[:n], nil +} + +func (m *VSchemaSetSequenceResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaSetSequenceResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil } - if m.MaterializationIntent != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.MaterializationIntent)) + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - l = len(m.SourceTimeZone) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return len(dAtA) - i, nil +} + +func (m *VSchemaSetReferenceRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - l = len(m.TargetTimeZone) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - if len(m.SourceShards) > 0 { - for _, s := range m.SourceShards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + return dAtA[:n], nil +} + +func (m *VSchemaSetReferenceRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaSetReferenceRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil } - l = len(m.OnDdl) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.DeferSecondaryKeys { - n += 2 + if len(m.Source) > 0 { + i -= len(m.Source) + copy(dAtA[i:], m.Source) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Source))) + i-- + dAtA[i] = 0x1a } - if m.TabletSelectionPreference != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletSelectionPreference)) + if len(m.TableName) > 0 { + i -= len(m.TableName) + copy(dAtA[i:], m.TableName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TableName))) + i-- + dAtA[i] = 0x12 } - if m.AtomicCopy { - n += 3 + if len(m.VSchemaName) > 0 { + i -= len(m.VSchemaName) + copy(dAtA[i:], m.VSchemaName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.VSchemaName))) + i-- + dAtA[i] = 0xa } - if m.WorkflowOptions != nil { - l = m.WorkflowOptions.SizeVT() - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + return len(dAtA) - i, nil +} + +func (m *VSchemaSetReferenceResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - if len(m.ReferenceTables) > 0 { - for _, s := range m.ReferenceTables { - l = len(s) - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *Keyspace) SizeVT() (n int) { +func (m *VSchemaSetReferenceResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VSchemaSetReferenceResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.Keyspace != nil { - l = m.Keyspace.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return len(dAtA) - i, nil +} + +func (m *WorkflowDeleteRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - n += len(m.unknownFields) - return n + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func (m *SchemaMigration) SizeVT() (n int) { +func (m *WorkflowDeleteRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *WorkflowDeleteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Uuid) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.IgnoreSourceKeyspace { + i-- + if m.IgnoreSourceKeyspace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 } - l = len(m.Shard) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.DeleteBatchSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.DeleteBatchSize)) + i-- + dAtA[i] = 0x30 } - l = len(m.Schema) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Shards) > 0 { + for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Shards[iNdEx]) + copy(dAtA[i:], m.Shards[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Shards[iNdEx]))) + i-- + dAtA[i] = 0x2a + } } - l = len(m.Table) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.KeepRoutingRules { + i-- + if m.KeepRoutingRules { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 } - l = len(m.MigrationStatement) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.KeepData { + i-- + if m.KeepData { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 } - if m.Strategy != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Strategy)) + if len(m.Workflow) > 0 { + i -= len(m.Workflow) + copy(dAtA[i:], m.Workflow) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Workflow))) + i-- + dAtA[i] = 0x12 } - l = len(m.Options) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Keyspace) > 0 { + i -= len(m.Keyspace) + copy(dAtA[i:], m.Keyspace) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Keyspace))) + i-- + dAtA[i] = 0xa } - if m.AddedAt != nil { - l = m.AddedAt.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return len(dAtA) - i, nil +} + +func (m *WorkflowDeleteResponse_TabletInfo) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - if m.RequestedAt != nil { - l = m.RequestedAt.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - if m.ReadyAt != nil { - l = m.ReadyAt.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.StartedAt != nil { - l = m.StartedAt.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.LivenessTimestamp != nil { - l = m.LivenessTimestamp.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.CompletedAt != nil { - l = m.CompletedAt.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.CleanedUpAt != nil { - l = m.CleanedUpAt.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Status != 0 { - n += 2 + protohelpers.SizeOfVarint(uint64(m.Status)) - } - l = len(m.LogPath) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + return dAtA[:n], nil +} + +func (m *WorkflowDeleteResponse_TabletInfo) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *WorkflowDeleteResponse_TabletInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil } - l = len(m.Artifacts) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.Retries != 0 { - n += 2 + protohelpers.SizeOfVarint(uint64(m.Retries)) + if m.Deleted { + i-- + if m.Deleted { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 } if m.Tablet != nil { - l = m.Tablet.SizeVT() - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.TabletFailure { - n += 3 - } - if m.Progress != 0 { - n += 6 - } - l = len(m.MigrationContext) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.DdlAction) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.EtaSeconds != 0 { - n += 2 + protohelpers.SizeOfVarint(uint64(m.EtaSeconds)) - } - if m.RowsCopied != 0 { - n += 2 + protohelpers.SizeOfVarint(uint64(m.RowsCopied)) - } - if m.TableRows != 0 { - n += 2 + protohelpers.SizeOfVarint(uint64(m.TableRows)) - } - if m.AddedUniqueKeys != 0 { - n += 2 + protohelpers.SizeOfVarint(uint64(m.AddedUniqueKeys)) - } - if m.RemovedUniqueKeys != 0 { - n += 2 + protohelpers.SizeOfVarint(uint64(m.RemovedUniqueKeys)) - } - l = len(m.LogFile) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.ArtifactRetention != nil { - l = m.ArtifactRetention.SizeVT() - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.PostponeCompletion { - n += 3 - } - l = len(m.RemovedUniqueKeyNames) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.DroppedNoDefaultColumnNames) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.ExpandedColumnNames) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.RevertibleNotes) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.AllowConcurrent { - n += 3 - } - l = len(m.RevertedUuid) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.IsView { - n += 3 - } - if m.ReadyToComplete { - n += 3 - } - if m.VitessLivenessIndicator != 0 { - n += 2 + protohelpers.SizeOfVarint(uint64(m.VitessLivenessIndicator)) - } - if m.UserThrottleRatio != 0 { - n += 6 - } - l = len(m.SpecialPlan) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.LastThrottledAt != nil { - l = m.LastThrottledAt.SizeVT() - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.ComponentThrottled) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.CancelledAt != nil { - l = m.CancelledAt.SizeVT() - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.PostponeLaunch { - n += 3 - } - l = len(m.Stage) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.CutoverAttempts != 0 { - n += 2 + protohelpers.SizeOfVarint(uint64(m.CutoverAttempts)) - } - if m.IsImmediateOperation { - n += 3 - } - if m.ReviewedAt != nil { - l = m.ReviewedAt.SizeVT() - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.ReadyToCompleteAt != nil { - l = m.ReadyToCompleteAt.SizeVT() - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.RemovedForeignKeyNames) - if l > 0 { - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + size, err := m.Tablet.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *Shard) SizeVT() (n int) { +func (m *WorkflowDeleteResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return nil, nil } - if m.Shard != nil { - l = m.Shard.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *WorkflowOptions) SizeVT() (n int) { +func (m *WorkflowDeleteResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *WorkflowDeleteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.TenantId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.ShardedAutoIncrementHandling != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.ShardedAutoIncrementHandling)) - } - if len(m.Shards) > 0 { - for _, s := range m.Shards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if len(m.Config) > 0 { - for k, v := range m.Config { - _ = k - _ = v - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + len(v) + protohelpers.SizeOfVarint(uint64(len(v))) - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + if len(m.Details) > 0 { + for iNdEx := len(m.Details) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Details[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } } - l = len(m.GlobalKeyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Summary) > 0 { + i -= len(m.Summary) + copy(dAtA[i:], m.Summary) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Summary))) + i-- + dAtA[i] = 0xa } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *Workflow_ReplicationLocation) SizeVT() (n int) { +func (m *WorkflowStatusRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return nil, nil } - if len(m.Shards) > 0 { - for _, s := range m.Shards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *Workflow_ShardStream) SizeVT() (n int) { +func (m *WorkflowStatusRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *WorkflowStatusRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if len(m.Streams) > 0 { - for _, e := range m.Streams { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if len(m.TabletControls) > 0 { - for _, e := range m.TabletControls { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Shards) > 0 { + for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Shards[iNdEx]) + copy(dAtA[i:], m.Shards[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Shards[iNdEx]))) + i-- + dAtA[i] = 0x1a } } - if m.IsPrimaryServing { - n += 2 + if len(m.Workflow) > 0 { + i -= len(m.Workflow) + copy(dAtA[i:], m.Workflow) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Workflow))) + i-- + dAtA[i] = 0x12 } - n += len(m.unknownFields) - return n + if len(m.Keyspace) > 0 { + i -= len(m.Keyspace) + copy(dAtA[i:], m.Keyspace) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Keyspace))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *Workflow_Stream_CopyState) SizeVT() (n int) { +func (m *WorkflowStatusResponse_TableCopyState) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Table) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.LastPk) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return nil, nil } - if m.StreamId != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.StreamId)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *Workflow_Stream_Log) SizeVT() (n int) { +func (m *WorkflowStatusResponse_TableCopyState) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *WorkflowStatusResponse_TableCopyState) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.Id != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Id)) - } - if m.StreamId != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.StreamId)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - l = len(m.Type) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.BytesPercentage != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.BytesPercentage)))) + i-- + dAtA[i] = 0x35 } - l = len(m.State) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.BytesTotal != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BytesTotal)) + i-- + dAtA[i] = 0x28 } - if m.CreatedAt != nil { - l = m.CreatedAt.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.BytesCopied != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BytesCopied)) + i-- + dAtA[i] = 0x20 } - if m.UpdatedAt != nil { - l = m.UpdatedAt.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.RowsPercentage != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.RowsPercentage)))) + i-- + dAtA[i] = 0x1d } - l = len(m.Message) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.RowsTotal != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RowsTotal)) + i-- + dAtA[i] = 0x10 } - if m.Count != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Count)) + if m.RowsCopied != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RowsCopied)) + i-- + dAtA[i] = 0x8 } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *Workflow_Stream_ThrottlerStatus) SizeVT() (n int) { +func (m *WorkflowStatusResponse_ShardStreamState) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ComponentThrottled) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return nil, nil } - if m.TimeThrottled != nil { - l = m.TimeThrottled.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *Workflow_Stream) SizeVT() (n int) { +func (m *WorkflowStatusResponse_ShardStreamState) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *WorkflowStatusResponse_ShardStreamState) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.Id != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Id)) - } - l = len(m.Shard) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Tablet != nil { - l = m.Tablet.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.BinlogSource != nil { - l = m.BinlogSource.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Info) > 0 { + i -= len(m.Info) + copy(dAtA[i:], m.Info) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Info))) + i-- + dAtA[i] = 0x32 } - l = len(m.Position) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x2a } - l = len(m.StopPosition) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Position) > 0 { + i -= len(m.Position) + copy(dAtA[i:], m.Position) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Position))) + i-- + dAtA[i] = 0x22 } - l = len(m.State) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.SourceShard) > 0 { + i -= len(m.SourceShard) + copy(dAtA[i:], m.SourceShard) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SourceShard))) + i-- + dAtA[i] = 0x1a } - l = len(m.DbName) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.TransactionTimestamp != nil { - l = m.TransactionTimestamp.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.TimeUpdated != nil { - l = m.TimeUpdated.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.CopyStates) > 0 { - for _, e := range m.CopyStates { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Tablet != nil { + size, err := m.Tablet.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - if len(m.Logs) > 0 { - for _, e := range m.Logs { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.Id != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 } - l = len(m.LogFetchError) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return len(dAtA) - i, nil +} + +func (m *WorkflowStatusResponse_ShardStreams) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - if m.RowsCopied != 0 { - n += 2 + protohelpers.SizeOfVarint(uint64(m.RowsCopied)) + return dAtA[:n], nil +} + +func (m *WorkflowStatusResponse_ShardStreams) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *WorkflowStatusResponse_ShardStreams) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil } - if m.ThrottlerStatus != nil { - l = m.ThrottlerStatus.SizeVT() - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if len(m.TabletTypes) > 0 { - l = 0 - for _, e := range m.TabletTypes { - l += protohelpers.SizeOfVarint(uint64(e)) + if len(m.Streams) > 0 { + for iNdEx := len(m.Streams) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Streams[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - n += 2 + protohelpers.SizeOfVarint(uint64(l)) + l } - if m.TabletSelectionPreference != 0 { - n += 2 + protohelpers.SizeOfVarint(uint64(m.TabletSelectionPreference)) + return len(dAtA) - i, nil +} + +func (m *WorkflowStatusResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *Workflow) SizeVT() (n int) { +func (m *WorkflowStatusResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *WorkflowStatusResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Source != nil { - l = m.Source.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Target != nil { - l = m.Target.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.MaxVReplicationLag != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.MaxVReplicationLag)) + if len(m.TrafficState) > 0 { + i -= len(m.TrafficState) + copy(dAtA[i:], m.TrafficState) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TrafficState))) + i-- + dAtA[i] = 0x1a } if len(m.ShardStreams) > 0 { - for k, v := range m.ShardStreams { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() + for k := range m.ShardStreams { + v := m.ShardStreams[k] + baseI := i + size, err := v.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x12 } } - l = len(m.WorkflowType) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.WorkflowSubType) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.MaxVReplicationTransactionLag != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.MaxVReplicationTransactionLag)) - } - if m.DeferSecondaryKeys { - n += 2 - } - if m.Options != nil { - l = m.Options.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.TableCopyState) > 0 { + for k := range m.TableCopyState { + v := m.TableCopyState[k] + baseI := i + size, err := v.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *AddCellInfoRequest) SizeVT() (n int) { +func (m *WorkflowSwitchTrafficRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return nil, nil } - if m.CellInfo != nil { - l = m.CellInfo.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *AddCellInfoResponse) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += len(m.unknownFields) - return n +func (m *WorkflowSwitchTrafficRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *AddCellsAliasRequest) SizeVT() (n int) { +func (m *WorkflowSwitchTrafficRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Force { + i-- + if m.Force { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 + } + if len(m.Shards) > 0 { + for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Shards[iNdEx]) + copy(dAtA[i:], m.Shards[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Shards[iNdEx]))) + i-- + dAtA[i] = 0x5a + } + } + if m.InitializeTargetSequences { + i-- + if m.InitializeTargetSequences { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 + } + if m.DryRun { + i-- + if m.DryRun { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if m.Timeout != nil { + size, err := m.Timeout.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x42 + } + if m.Direction != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Direction)) + i-- + dAtA[i] = 0x38 + } + if m.EnableReverseReplication { + i-- + if m.EnableReverseReplication { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.MaxReplicationLagAllowed != nil { + size, err := m.MaxReplicationLagAllowed.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if len(m.TabletTypes) > 0 { + var pksize2 int + for _, num := range m.TabletTypes { + pksize2 += protohelpers.SizeOfVarint(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num1 := range m.TabletTypes { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x22 } if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + for iNdEx := len(m.Cells) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Cells[iNdEx]) + copy(dAtA[i:], m.Cells[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Cells[iNdEx]))) + i-- + dAtA[i] = 0x1a } } - n += len(m.unknownFields) - return n + if len(m.Workflow) > 0 { + i -= len(m.Workflow) + copy(dAtA[i:], m.Workflow) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Workflow))) + i-- + dAtA[i] = 0x12 + } + if len(m.Keyspace) > 0 { + i -= len(m.Keyspace) + copy(dAtA[i:], m.Keyspace) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Keyspace))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *AddCellsAliasResponse) SizeVT() (n int) { +func (m *WorkflowSwitchTrafficResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil } - var l int - _ = l - n += len(m.unknownFields) - return n + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func (m *ApplyKeyspaceRoutingRulesRequest) SizeVT() (n int) { +func (m *WorkflowSwitchTrafficResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *WorkflowSwitchTrafficResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.KeyspaceRoutingRules != nil { - l = m.KeyspaceRoutingRules.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.SkipRebuild { - n += 2 + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if len(m.RebuildCells) > 0 { - for _, s := range m.RebuildCells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.DryRunResults) > 0 { + for iNdEx := len(m.DryRunResults) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.DryRunResults[iNdEx]) + copy(dAtA[i:], m.DryRunResults[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DryRunResults[iNdEx]))) + i-- + dAtA[i] = 0x22 } } - n += len(m.unknownFields) - return n + if len(m.CurrentState) > 0 { + i -= len(m.CurrentState) + copy(dAtA[i:], m.CurrentState) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CurrentState))) + i-- + dAtA[i] = 0x1a + } + if len(m.StartState) > 0 { + i -= len(m.StartState) + copy(dAtA[i:], m.StartState) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StartState))) + i-- + dAtA[i] = 0x12 + } + if len(m.Summary) > 0 { + i -= len(m.Summary) + copy(dAtA[i:], m.Summary) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Summary))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *ApplyKeyspaceRoutingRulesResponse) SizeVT() (n int) { +func (m *WorkflowUpdateRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil } - var l int - _ = l - if m.KeyspaceRoutingRules != nil { - l = m.KeyspaceRoutingRules.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *ApplyRoutingRulesRequest) SizeVT() (n int) { +func (m *WorkflowUpdateRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *WorkflowUpdateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.RoutingRules != nil { - l = m.RoutingRules.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.SkipRebuild { - n += 2 + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if len(m.RebuildCells) > 0 { - for _, s := range m.RebuildCells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.TabletRequest != nil { + size, err := m.TabletRequest.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - n += len(m.unknownFields) - return n + if len(m.Keyspace) > 0 { + i -= len(m.Keyspace) + copy(dAtA[i:], m.Keyspace) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Keyspace))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *ApplyRoutingRulesResponse) SizeVT() (n int) { +func (m *WorkflowUpdateResponse_TabletInfo) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil } - var l int - _ = l - n += len(m.unknownFields) - return n + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func (m *ApplyShardRoutingRulesRequest) SizeVT() (n int) { +func (m *WorkflowUpdateResponse_TabletInfo) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *WorkflowUpdateResponse_TabletInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.ShardRoutingRules != nil { - l = m.ShardRoutingRules.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.SkipRebuild { - n += 2 + if m.Changed { + i-- + if m.Changed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 } - if len(m.RebuildCells) > 0 { - for _, s := range m.RebuildCells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Tablet != nil { + size, err := m.Tablet.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *ApplyShardRoutingRulesResponse) SizeVT() (n int) { +func (m *WorkflowUpdateResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil } - var l int - _ = l - n += len(m.unknownFields) - return n + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func (m *ApplySchemaRequest) SizeVT() (n int) { +func (m *WorkflowUpdateResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *WorkflowUpdateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if len(m.Sql) > 0 { - for _, s := range m.Sql { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Details) > 0 { + for iNdEx := len(m.Details) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Details[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } } - l = len(m.DdlStrategy) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Summary) > 0 { + i -= len(m.Summary) + copy(dAtA[i:], m.Summary) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Summary))) + i-- + dAtA[i] = 0xa } - if len(m.UuidList) > 0 { - for _, s := range m.UuidList { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + return len(dAtA) - i, nil +} + +func (m *GetMirrorRulesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - l = len(m.MigrationContext) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - if m.WaitReplicasTimeout != nil { - l = m.WaitReplicasTimeout.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return dAtA[:n], nil +} + +func (m *GetMirrorRulesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetMirrorRulesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil } - if m.CallerId != nil { - l = m.CallerId.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.BatchSize != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.BatchSize)) + return len(dAtA) - i, nil +} + +func (m *GetMirrorRulesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - n += len(m.unknownFields) - return n + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func (m *ApplySchemaResponse) SizeVT() (n int) { +func (m *GetMirrorRulesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetMirrorRulesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if len(m.UuidList) > 0 { - for _, s := range m.UuidList { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if len(m.RowsAffectedByShard) > 0 { - for k, v := range m.RowsAffectedByShard { - _ = k - _ = v - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + protohelpers.SizeOfVarint(uint64(v)) - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + if m.MirrorRules != nil { + size, err := m.MirrorRules.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *ApplyVSchemaRequest) SizeVT() (n int) { +func (m *WorkflowMirrorTrafficRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkflowMirrorTrafficRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *WorkflowMirrorTrafficRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.SkipRebuild { - n += 2 + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.DryRun { - n += 2 + if m.Percent != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Percent)))) + i-- + dAtA[i] = 0x25 } - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.TabletTypes) > 0 { + var pksize2 int + for _, num := range m.TabletTypes { + pksize2 += protohelpers.SizeOfVarint(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num1 := range m.TabletTypes { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ } + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x1a } - if m.VSchema != nil { - l = m.VSchema.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Workflow) > 0 { + i -= len(m.Workflow) + copy(dAtA[i:], m.Workflow) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Workflow))) + i-- + dAtA[i] = 0x12 } - l = len(m.Sql) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Keyspace) > 0 { + i -= len(m.Keyspace) + copy(dAtA[i:], m.Keyspace) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Keyspace))) + i-- + dAtA[i] = 0xa } - if m.Strict { - n += 2 + return len(dAtA) - i, nil +} + +func (m *WorkflowMirrorTrafficResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - n += len(m.unknownFields) - return n + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func (m *ApplyVSchemaResponse_ParamList) SizeVT() (n int) { +func (m *WorkflowMirrorTrafficResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *WorkflowMirrorTrafficResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if len(m.Params) > 0 { - for _, s := range m.Params { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - n += len(m.unknownFields) - return n + if len(m.CurrentState) > 0 { + i -= len(m.CurrentState) + copy(dAtA[i:], m.CurrentState) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CurrentState))) + i-- + dAtA[i] = 0x1a + } + if len(m.StartState) > 0 { + i -= len(m.StartState) + copy(dAtA[i:], m.StartState) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StartState))) + i-- + dAtA[i] = 0x12 + } + if len(m.Summary) > 0 { + i -= len(m.Summary) + copy(dAtA[i:], m.Summary) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Summary))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *ApplyVSchemaResponse) SizeVT() (n int) { +func (m *ExecuteVtctlCommandRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.VSchema != nil { - l = m.VSchema.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.UnknownVindexParams) > 0 { - for k, v := range m.UnknownVindexParams { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + if len(m.Args) > 0 { + for _, s := range m.Args { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } + if m.ActionTimeout != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.ActionTimeout)) + } n += len(m.unknownFields) return n } -func (m *BackupRequest) SizeVT() (n int) { +func (m *ExecuteVtctlCommandResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.AllowPrimary { - n += 2 - } - if m.Concurrency != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Concurrency)) - } - l = len(m.IncrementalFromPos) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.UpgradeSafe { - n += 2 - } - if m.BackupEngine != nil { - l = len(*m.BackupEngine) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.MysqlShutdownTimeout != nil { - l = m.MysqlShutdownTimeout.SizeVT() + if m.Event != nil { + l = m.Event.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *BackupResponse) SizeVT() (n int) { +func (m *TableMaterializeSettings) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Keyspace) + l = len(m.TargetTable) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) + l = len(m.SourceExpression) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Event != nil { - l = m.Event.SizeVT() + l = len(m.CreateDdl) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *BackupShardRequest) SizeVT() (n int) { +func (m *MaterializeSettings) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) + l = len(m.Workflow) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) + l = len(m.SourceKeyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.AllowPrimary { + l = len(m.TargetKeyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.StopAfterCopy { n += 2 } - if m.Concurrency != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Concurrency)) + if len(m.TableSettings) > 0 { + for _, e := range m.TableSettings { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if m.UpgradeSafe { - n += 2 + l = len(m.Cell) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.IncrementalFromPos) + l = len(m.TabletTypes) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.MysqlShutdownTimeout != nil { - l = m.MysqlShutdownTimeout.SizeVT() + l = len(m.ExternalCluster) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - n += len(m.unknownFields) - return n -} - -func (m *CancelSchemaMigrationRequest) SizeVT() (n int) { - if m == nil { - return 0 + if m.MaterializationIntent != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.MaterializationIntent)) } - var l int - _ = l - l = len(m.Keyspace) + l = len(m.SourceTimeZone) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Uuid) + l = len(m.TargetTimeZone) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.CallerId != nil { - l = m.CallerId.SizeVT() + if len(m.SourceShards) > 0 { + for _, s := range m.SourceShards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.OnDdl) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.DeferSecondaryKeys { + n += 2 + } + if m.TabletSelectionPreference != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletSelectionPreference)) + } + if m.AtomicCopy { + n += 3 + } + if m.WorkflowOptions != nil { + l = m.WorkflowOptions.SizeVT() + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.ReferenceTables) > 0 { + for _, s := range m.ReferenceTables { + l = len(s) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *CancelSchemaMigrationResponse) SizeVT() (n int) { +func (m *Keyspace) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.RowsAffectedByShard) > 0 { - for k, v := range m.RowsAffectedByShard { - _ = k - _ = v - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + protohelpers.SizeOfVarint(uint64(v)) - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Keyspace != nil { + l = m.Keyspace.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ChangeTabletTagsRequest) SizeVT() (n int) { +func (m *SchemaMigration) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() + l = len(m.Uuid) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Tags) > 0 { - for k, v := range m.Tags { - _ = k - _ = v - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + len(v) + protohelpers.SizeOfVarint(uint64(len(v))) - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Replace { - n += 2 + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - n += len(m.unknownFields) - return n -} - -func (m *ChangeTabletTagsResponse) SizeVT() (n int) { - if m == nil { - return 0 + l = len(m.Schema) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - var l int - _ = l - if len(m.BeforeTags) > 0 { - for k, v := range m.BeforeTags { - _ = k - _ = v - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + len(v) + protohelpers.SizeOfVarint(uint64(len(v))) - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } + l = len(m.Table) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.AfterTags) > 0 { - for k, v := range m.AfterTags { - _ = k - _ = v - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + len(v) + protohelpers.SizeOfVarint(uint64(len(v))) - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } + l = len(m.MigrationStatement) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - n += len(m.unknownFields) - return n -} - -func (m *ChangeTabletTypeRequest) SizeVT() (n int) { - if m == nil { - return 0 + if m.Strategy != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Strategy)) } - var l int - _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() + l = len(m.Options) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.DbType != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.DbType)) - } - if m.DryRun { - n += 2 + if m.AddedAt != nil { + l = m.AddedAt.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - n += len(m.unknownFields) - return n -} - -func (m *ChangeTabletTypeResponse) SizeVT() (n int) { - if m == nil { - return 0 + if m.RequestedAt != nil { + l = m.RequestedAt.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - var l int - _ = l - if m.BeforeTablet != nil { - l = m.BeforeTablet.SizeVT() + if m.ReadyAt != nil { + l = m.ReadyAt.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.AfterTablet != nil { - l = m.AfterTablet.SizeVT() + if m.StartedAt != nil { + l = m.StartedAt.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.WasDryRun { - n += 2 + if m.LivenessTimestamp != nil { + l = m.LivenessTimestamp.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - n += len(m.unknownFields) - return n -} - -func (m *CheckThrottlerRequest) SizeVT() (n int) { - if m == nil { - return 0 + if m.CompletedAt != nil { + l = m.CompletedAt.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - var l int - _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() + if m.CleanedUpAt != nil { + l = m.CleanedUpAt.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.AppName) + if m.Status != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.Status)) + } + l = len(m.LogPath) if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Scope) + l = len(m.Artifacts) if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.SkipRequestHeartbeats { - n += 2 + if m.Retries != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.Retries)) } - if m.OkIfNotExists { - n += 2 + if m.Tablet != nil { + l = m.Tablet.SizeVT() + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } - n += len(m.unknownFields) - return n -} - -func (m *CheckThrottlerResponse) SizeVT() (n int) { - if m == nil { - return 0 + if m.TabletFailure { + n += 3 } - var l int - _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Progress != 0 { + n += 6 } - if m.Check != nil { - l = m.Check.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + l = len(m.MigrationContext) + if l > 0 { + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.DdlAction) + if l > 0 { + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.EtaSeconds != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.EtaSeconds)) + } + if m.RowsCopied != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.RowsCopied)) + } + if m.TableRows != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.TableRows)) + } + if m.AddedUniqueKeys != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.AddedUniqueKeys)) + } + if m.RemovedUniqueKeys != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.RemovedUniqueKeys)) + } + l = len(m.LogFile) + if l > 0 { + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ArtifactRetention != nil { + l = m.ArtifactRetention.SizeVT() + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.PostponeCompletion { + n += 3 + } + l = len(m.RemovedUniqueKeyNames) + if l > 0 { + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.DroppedNoDefaultColumnNames) + if l > 0 { + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ExpandedColumnNames) + if l > 0 { + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.RevertibleNotes) + if l > 0 { + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.AllowConcurrent { + n += 3 + } + l = len(m.RevertedUuid) + if l > 0 { + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IsView { + n += 3 + } + if m.ReadyToComplete { + n += 3 + } + if m.VitessLivenessIndicator != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.VitessLivenessIndicator)) + } + if m.UserThrottleRatio != 0 { + n += 6 + } + l = len(m.SpecialPlan) + if l > 0 { + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.LastThrottledAt != nil { + l = m.LastThrottledAt.SizeVT() + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ComponentThrottled) + if l > 0 { + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.CancelledAt != nil { + l = m.CancelledAt.SizeVT() + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.PostponeLaunch { + n += 3 + } + l = len(m.Stage) + if l > 0 { + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.CutoverAttempts != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.CutoverAttempts)) + } + if m.IsImmediateOperation { + n += 3 + } + if m.ReviewedAt != nil { + l = m.ReviewedAt.SizeVT() + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ReadyToCompleteAt != nil { + l = m.ReadyToCompleteAt.SizeVT() + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.RemovedForeignKeyNames) + if l > 0 { + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *CleanupSchemaMigrationRequest) SizeVT() (n int) { +func (m *Shard) SizeVT() (n int) { if m == nil { return 0 } @@ -23554,37 +24279,54 @@ func (m *CleanupSchemaMigrationRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Uuid) + l = len(m.Name) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.CallerId != nil { - l = m.CallerId.SizeVT() + if m.Shard != nil { + l = m.Shard.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *CleanupSchemaMigrationResponse) SizeVT() (n int) { +func (m *WorkflowOptions) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.RowsAffectedByShard) > 0 { - for k, v := range m.RowsAffectedByShard { + l = len(m.TenantId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ShardedAutoIncrementHandling != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.ShardedAutoIncrementHandling)) + } + if len(m.Shards) > 0 { + for _, s := range m.Shards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.Config) > 0 { + for k, v := range m.Config { _ = k _ = v - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + protohelpers.SizeOfVarint(uint64(v)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + len(v) + protohelpers.SizeOfVarint(uint64(len(v))) n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } } + l = len(m.GlobalKeyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *CompleteSchemaMigrationRequest) SizeVT() (n int) { +func (m *Workflow_ReplicationLocation) SizeVT() (n int) { if m == nil { return 0 } @@ -23594,189 +24336,218 @@ func (m *CompleteSchemaMigrationRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Uuid) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.CallerId != nil { - l = m.CallerId.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - n += len(m.unknownFields) - return n -} - -func (m *CompleteSchemaMigrationResponse) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.RowsAffectedByShard) > 0 { - for k, v := range m.RowsAffectedByShard { - _ = k - _ = v - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + protohelpers.SizeOfVarint(uint64(v)) - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + if len(m.Shards) > 0 { + for _, s := range m.Shards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) return n } -func (m *CopySchemaShardRequest) SizeVT() (n int) { +func (m *Workflow_ShardStream) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.SourceTabletAlias != nil { - l = m.SourceTabletAlias.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.Tables) > 0 { - for _, s := range m.Tables { - l = len(s) + if len(m.Streams) > 0 { + for _, e := range m.Streams { + l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if len(m.ExcludeTables) > 0 { - for _, s := range m.ExcludeTables { - l = len(s) + if len(m.TabletControls) > 0 { + for _, e := range m.TabletControls { + l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if m.IncludeViews { - n += 2 - } - if m.SkipVerify { + if m.IsPrimaryServing { n += 2 } - if m.WaitReplicasTimeout != nil { - l = m.WaitReplicasTimeout.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.DestinationKeyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.DestinationShard) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *CopySchemaShardResponse) SizeVT() (n int) { +func (m *Workflow_Stream_CopyState) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + l = len(m.Table) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.LastPk) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.StreamId != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.StreamId)) + } n += len(m.unknownFields) return n } -func (m *CreateKeyspaceRequest) SizeVT() (n int) { +func (m *Workflow_Stream_Log) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Force { - n += 2 + if m.Id != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Id)) } - if m.AllowEmptyVSchema { - n += 2 + if m.StreamId != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.StreamId)) } - if m.Type != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Type)) + l = len(m.Type) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.BaseKeyspace) + l = len(m.State) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.SnapshotTime != nil { - l = m.SnapshotTime.SizeVT() + if m.CreatedAt != nil { + l = m.CreatedAt.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.DurabilityPolicy) - if l > 0 { + if m.UpdatedAt != nil { + l = m.UpdatedAt.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.SidecarDbName) + l = len(m.Message) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.Count != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Count)) + } n += len(m.unknownFields) return n } -func (m *CreateKeyspaceResponse) SizeVT() (n int) { +func (m *Workflow_Stream_ThrottlerStatus) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Keyspace != nil { - l = m.Keyspace.SizeVT() + l = len(m.ComponentThrottled) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.TimeThrottled != nil { + l = m.TimeThrottled.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *CreateShardRequest) SizeVT() (n int) { +func (m *Workflow_Stream) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) + if m.Id != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Id)) + } + l = len(m.Shard) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.ShardName) + if m.Tablet != nil { + l = m.Tablet.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.BinlogSource != nil { + l = m.BinlogSource.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Position) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Force { - n += 2 + l = len(m.StopPosition) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.IncludeParent { - n += 2 + l = len(m.State) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - n += len(m.unknownFields) - return n -} - -func (m *CreateShardResponse) SizeVT() (n int) { - if m == nil { - return 0 + l = len(m.DbName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - var l int - _ = l - if m.Keyspace != nil { - l = m.Keyspace.SizeVT() + if m.TransactionTimestamp != nil { + l = m.TransactionTimestamp.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Shard != nil { - l = m.Shard.SizeVT() + if m.TimeUpdated != nil { + l = m.TimeUpdated.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.ShardAlreadyExists { - n += 2 + l = len(m.Message) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.CopyStates) > 0 { + for _, e := range m.CopyStates { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.Logs) > 0 { + for _, e := range m.Logs { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.LogFetchError) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.RowsCopied != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.RowsCopied)) + } + if m.ThrottlerStatus != nil { + l = m.ThrottlerStatus.SizeVT() + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.TabletTypes) > 0 { + l = 0 + for _, e := range m.TabletTypes { + l += protohelpers.SizeOfVarint(uint64(e)) + } + n += 2 + protohelpers.SizeOfVarint(uint64(l)) + l + } + if m.TabletSelectionPreference != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.TabletSelectionPreference)) + } + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *DeleteCellInfoRequest) SizeVT() (n int) { +func (m *Workflow) SizeVT() (n int) { if m == nil { return 0 } @@ -23786,14 +24557,71 @@ func (m *DeleteCellInfoRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Force { + if m.Source != nil { + l = m.Source.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Target != nil { + l = m.Target.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.MaxVReplicationLag != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.MaxVReplicationLag)) + } + if len(m.ShardStreams) > 0 { + for k, v := range m.ShardStreams { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } + l = len(m.WorkflowType) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.WorkflowSubType) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.MaxVReplicationTransactionLag != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.MaxVReplicationTransactionLag)) + } + if m.DeferSecondaryKeys { n += 2 } + if m.Options != nil { + l = m.Options.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *DeleteCellInfoResponse) SizeVT() (n int) { +func (m *AddCellInfoRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.CellInfo != nil { + l = m.CellInfo.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *AddCellInfoResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -23803,7 +24631,7 @@ func (m *DeleteCellInfoResponse) SizeVT() (n int) { return n } -func (m *DeleteCellsAliasRequest) SizeVT() (n int) { +func (m *AddCellsAliasRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -23813,11 +24641,17 @@ func (m *DeleteCellsAliasRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *DeleteCellsAliasResponse) SizeVT() (n int) { +func (m *AddCellsAliasResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -23827,62 +24661,67 @@ func (m *DeleteCellsAliasResponse) SizeVT() (n int) { return n } -func (m *DeleteKeyspaceRequest) SizeVT() (n int) { +func (m *ApplyKeyspaceRoutingRulesRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { + if m.KeyspaceRoutingRules != nil { + l = m.KeyspaceRoutingRules.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Recursive { + if m.SkipRebuild { n += 2 } - if m.Force { - n += 2 + if len(m.RebuildCells) > 0 { + for _, s := range m.RebuildCells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *DeleteKeyspaceResponse) SizeVT() (n int) { +func (m *ApplyKeyspaceRoutingRulesResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if m.KeyspaceRoutingRules != nil { + l = m.KeyspaceRoutingRules.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *DeleteShardsRequest) SizeVT() (n int) { +func (m *ApplyRoutingRulesRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Shards) > 0 { - for _, e := range m.Shards { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if m.Recursive { - n += 2 + if m.RoutingRules != nil { + l = m.RoutingRules.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.EvenIfServing { + if m.SkipRebuild { n += 2 } - if m.Force { - n += 2 + if len(m.RebuildCells) > 0 { + for _, s := range m.RebuildCells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *DeleteShardsResponse) SizeVT() (n int) { +func (m *ApplyRoutingRulesResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -23892,21 +24731,30 @@ func (m *DeleteShardsResponse) SizeVT() (n int) { return n } -func (m *DeleteSrvVSchemaRequest) SizeVT() (n int) { +func (m *ApplyShardRoutingRulesRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Cell) - if l > 0 { + if m.ShardRoutingRules != nil { + l = m.ShardRoutingRules.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.SkipRebuild { + n += 2 + } + if len(m.RebuildCells) > 0 { + for _, s := range m.RebuildCells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *DeleteSrvVSchemaResponse) SizeVT() (n int) { +func (m *ApplyShardRoutingRulesResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -23916,36 +24764,76 @@ func (m *DeleteSrvVSchemaResponse) SizeVT() (n int) { return n } -func (m *DeleteTabletsRequest) SizeVT() (n int) { +func (m *ApplySchemaRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.TabletAliases) > 0 { - for _, e := range m.TabletAliases { - l = e.SizeVT() + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Sql) > 0 { + for _, s := range m.Sql { + l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if m.AllowPrimary { - n += 2 + l = len(m.DdlStrategy) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.UuidList) > 0 { + for _, s := range m.UuidList { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.MigrationContext) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.WaitReplicasTimeout != nil { + l = m.WaitReplicasTimeout.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.CallerId != nil { + l = m.CallerId.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.BatchSize != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.BatchSize)) } n += len(m.unknownFields) return n } -func (m *DeleteTabletsResponse) SizeVT() (n int) { +func (m *ApplySchemaResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if len(m.UuidList) > 0 { + for _, s := range m.UuidList { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.RowsAffectedByShard) > 0 { + for k, v := range m.RowsAffectedByShard { + _ = k + _ = v + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + protohelpers.SizeOfVarint(uint64(v)) + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } n += len(m.unknownFields) return n } -func (m *EmergencyReparentShardRequest) SizeVT() (n int) { +func (m *ApplyVSchemaRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -23955,67 +24843,77 @@ func (m *EmergencyReparentShardRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.SkipRebuild { + n += 2 } - if m.NewPrimary != nil { - l = m.NewPrimary.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.DryRun { + n += 2 } - if len(m.IgnoreReplicas) > 0 { - for _, e := range m.IgnoreReplicas { - l = e.SizeVT() + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if m.WaitReplicasTimeout != nil { - l = m.WaitReplicasTimeout.SizeVT() + if m.VSchema != nil { + l = m.VSchema.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.PreventCrossCellPromotion { - n += 2 + l = len(m.Sql) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.WaitForAllTablets { + if m.Strict { n += 2 } - if m.ExpectedPrimary != nil { - l = m.ExpectedPrimary.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *EmergencyReparentShardResponse) SizeVT() (n int) { +func (m *ApplyVSchemaResponse_ParamList) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Params) > 0 { + for _, s := range m.Params { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - l = len(m.Shard) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + n += len(m.unknownFields) + return n +} + +func (m *ApplyVSchemaResponse) SizeVT() (n int) { + if m == nil { + return 0 } - if m.PromotedPrimary != nil { - l = m.PromotedPrimary.SizeVT() + var l int + _ = l + if m.VSchema != nil { + l = m.VSchema.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.UnknownVindexParams) > 0 { + for k, v := range m.UnknownVindexParams { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } } n += len(m.unknownFields) return n } -func (m *ExecuteFetchAsAppRequest) SizeVT() (n int) { +func (m *BackupRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -24025,76 +24923,133 @@ func (m *ExecuteFetchAsAppRequest) SizeVT() (n int) { l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Query) + if m.AllowPrimary { + n += 2 + } + if m.Concurrency != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Concurrency)) + } + l = len(m.IncrementalFromPos) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.MaxRows != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.MaxRows)) - } - if m.UsePool { + if m.UpgradeSafe { n += 2 } + if m.BackupEngine != nil { + l = len(*m.BackupEngine) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.MysqlShutdownTimeout != nil { + l = m.MysqlShutdownTimeout.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *ExecuteFetchAsAppResponse) SizeVT() (n int) { +func (m *BackupResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Result != nil { - l = m.Result.SizeVT() + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Event != nil { + l = m.Event.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ExecuteFetchAsDBARequest) SizeVT() (n int) { +func (m *BackupShardRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() + l = len(m.Keyspace) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Query) + l = len(m.Shard) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.MaxRows != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.MaxRows)) - } - if m.DisableBinlogs { + if m.AllowPrimary { n += 2 } - if m.ReloadSchema { + if m.Concurrency != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Concurrency)) + } + if m.UpgradeSafe { n += 2 } + l = len(m.IncrementalFromPos) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.MysqlShutdownTimeout != nil { + l = m.MysqlShutdownTimeout.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *ExecuteFetchAsDBAResponse) SizeVT() (n int) { +func (m *CancelSchemaMigrationRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Result != nil { - l = m.Result.SizeVT() + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Uuid) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.CallerId != nil { + l = m.CallerId.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ExecuteHookRequest) SizeVT() (n int) { +func (m *CancelSchemaMigrationResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.RowsAffectedByShard) > 0 { + for k, v := range m.RowsAffectedByShard { + _ = k + _ = v + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + protohelpers.SizeOfVarint(uint64(v)) + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ChangeTabletTagsRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -24104,29 +25059,48 @@ func (m *ExecuteHookRequest) SizeVT() (n int) { l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.TabletHookRequest != nil { - l = m.TabletHookRequest.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Tags) > 0 { + for k, v := range m.Tags { + _ = k + _ = v + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + len(v) + protohelpers.SizeOfVarint(uint64(len(v))) + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } + if m.Replace { + n += 2 } n += len(m.unknownFields) return n } -func (m *ExecuteHookResponse) SizeVT() (n int) { +func (m *ChangeTabletTagsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.HookResult != nil { - l = m.HookResult.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.BeforeTags) > 0 { + for k, v := range m.BeforeTags { + _ = k + _ = v + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + len(v) + protohelpers.SizeOfVarint(uint64(len(v))) + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } + if len(m.AfterTags) > 0 { + for k, v := range m.AfterTags { + _ = k + _ = v + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + len(v) + protohelpers.SizeOfVarint(uint64(len(v))) + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } } n += len(m.unknownFields) return n } -func (m *ExecuteMultiFetchAsDBARequest) SizeVT() (n int) { +func (m *ChangeTabletTypeRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -24136,77 +25110,84 @@ func (m *ExecuteMultiFetchAsDBARequest) SizeVT() (n int) { l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Sql) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.MaxRows != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.MaxRows)) - } - if m.DisableBinlogs { - n += 2 + if m.DbType != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.DbType)) } - if m.ReloadSchema { + if m.DryRun { n += 2 } n += len(m.unknownFields) return n } -func (m *ExecuteMultiFetchAsDBAResponse) SizeVT() (n int) { +func (m *ChangeTabletTypeResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Results) > 0 { - for _, e := range m.Results { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.BeforeTablet != nil { + l = m.BeforeTablet.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.AfterTablet != nil { + l = m.AfterTablet.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.WasDryRun { + n += 2 } n += len(m.unknownFields) return n } -func (m *FindAllShardsInKeyspaceRequest) SizeVT() (n int) { +func (m *CheckThrottlerRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.AppName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Scope) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.SkipRequestHeartbeats { + n += 2 + } + if m.OkIfNotExists { + n += 2 + } n += len(m.unknownFields) return n } -func (m *FindAllShardsInKeyspaceResponse) SizeVT() (n int) { +func (m *CheckThrottlerResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Shards) > 0 { - for k, v := range m.Shards { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Check != nil { + l = m.Check.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ForceCutOverSchemaMigrationRequest) SizeVT() (n int) { +func (m *CleanupSchemaMigrationRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -24228,7 +25209,7 @@ func (m *ForceCutOverSchemaMigrationRequest) SizeVT() (n int) { return n } -func (m *ForceCutOverSchemaMigrationResponse) SizeVT() (n int) { +func (m *CleanupSchemaMigrationResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -24246,7 +25227,7 @@ func (m *ForceCutOverSchemaMigrationResponse) SizeVT() (n int) { return n } -func (m *GetBackupsRequest) SizeVT() (n int) { +func (m *CompleteSchemaMigrationRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -24256,68 +25237,81 @@ func (m *GetBackupsRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) + l = len(m.Uuid) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Limit != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Limit)) - } - if m.Detailed { - n += 2 - } - if m.DetailedLimit != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.DetailedLimit)) + if m.CallerId != nil { + l = m.CallerId.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetBackupsResponse) SizeVT() (n int) { +func (m *CompleteSchemaMigrationResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Backups) > 0 { - for _, e := range m.Backups { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.RowsAffectedByShard) > 0 { + for k, v := range m.RowsAffectedByShard { + _ = k + _ = v + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + protohelpers.SizeOfVarint(uint64(v)) + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } } n += len(m.unknownFields) return n } -func (m *GetCellInfoRequest) SizeVT() (n int) { +func (m *CopySchemaShardRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Cell) - if l > 0 { + if m.SourceTabletAlias != nil { + l = m.SourceTabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - n += len(m.unknownFields) - return n -} - -func (m *GetCellInfoResponse) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CellInfo != nil { - l = m.CellInfo.SizeVT() + if len(m.Tables) > 0 { + for _, s := range m.Tables { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.ExcludeTables) > 0 { + for _, s := range m.ExcludeTables { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.IncludeViews { + n += 2 + } + if m.SkipVerify { + n += 2 + } + if m.WaitReplicasTimeout != nil { + l = m.WaitReplicasTimeout.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.DestinationKeyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.DestinationShard) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetCellInfoNamesRequest) SizeVT() (n int) { +func (m *CopySchemaShardResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -24327,116 +25321,138 @@ func (m *GetCellInfoNamesRequest) SizeVT() (n int) { return n } -func (m *GetCellInfoNamesResponse) SizeVT() (n int) { +func (m *CreateKeyspaceRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Names) > 0 { - for _, s := range m.Names { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - n += len(m.unknownFields) - return n -} - -func (m *GetCellsAliasesRequest) SizeVT() (n int) { - if m == nil { - return 0 + if m.Force { + n += 2 + } + if m.AllowEmptyVSchema { + n += 2 + } + if m.Type != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Type)) + } + l = len(m.BaseKeyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.SnapshotTime != nil { + l = m.SnapshotTime.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.DurabilityPolicy) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.SidecarDbName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - var l int - _ = l n += len(m.unknownFields) return n } -func (m *GetCellsAliasesResponse) SizeVT() (n int) { +func (m *CreateKeyspaceResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Aliases) > 0 { - for k, v := range m.Aliases { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } + if m.Keyspace != nil { + l = m.Keyspace.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetFullStatusRequest) SizeVT() (n int) { +func (m *CreateShardRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ShardName) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.Force { + n += 2 + } + if m.IncludeParent { + n += 2 + } n += len(m.unknownFields) return n } -func (m *GetFullStatusResponse) SizeVT() (n int) { +func (m *CreateShardResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Status != nil { - l = m.Status.SizeVT() + if m.Keyspace != nil { + l = m.Keyspace.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Shard != nil { + l = m.Shard.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.ShardAlreadyExists { + n += 2 + } n += len(m.unknownFields) return n } -func (m *GetKeyspacesRequest) SizeVT() (n int) { +func (m *DeleteCellInfoRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Force { + n += 2 + } n += len(m.unknownFields) return n } -func (m *GetKeyspacesResponse) SizeVT() (n int) { +func (m *DeleteCellInfoResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Keyspaces) > 0 { - for _, e := range m.Keyspaces { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } n += len(m.unknownFields) return n } -func (m *GetKeyspaceRequest) SizeVT() (n int) { +func (m *DeleteCellsAliasRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) + l = len(m.Name) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -24444,149 +25460,135 @@ func (m *GetKeyspaceRequest) SizeVT() (n int) { return n } -func (m *GetKeyspaceResponse) SizeVT() (n int) { +func (m *DeleteCellsAliasResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Keyspace != nil { - l = m.Keyspace.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *GetPermissionsRequest) SizeVT() (n int) { +func (m *DeleteKeyspaceRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() + l = len(m.Keyspace) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.Recursive { + n += 2 + } + if m.Force { + n += 2 + } n += len(m.unknownFields) return n } -func (m *GetPermissionsResponse) SizeVT() (n int) { +func (m *DeleteKeyspaceResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Permissions != nil { - l = m.Permissions.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *GetKeyspaceRoutingRulesRequest) SizeVT() (n int) { +func (m *DeleteShardsRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if len(m.Shards) > 0 { + for _, e := range m.Shards { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.Recursive { + n += 2 + } + if m.EvenIfServing { + n += 2 + } + if m.Force { + n += 2 + } n += len(m.unknownFields) return n } -func (m *GetKeyspaceRoutingRulesResponse) SizeVT() (n int) { +func (m *DeleteShardsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.KeyspaceRoutingRules != nil { - l = m.KeyspaceRoutingRules.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *GetRoutingRulesRequest) SizeVT() (n int) { +func (m *DeleteSrvVSchemaRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + l = len(m.Cell) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *GetRoutingRulesResponse) SizeVT() (n int) { +func (m *DeleteSrvVSchemaResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.RoutingRules != nil { - l = m.RoutingRules.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *GetSchemaRequest) SizeVT() (n int) { +func (m *DeleteTabletsRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.Tables) > 0 { - for _, s := range m.Tables { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.ExcludeTables) > 0 { - for _, s := range m.ExcludeTables { - l = len(s) + if len(m.TabletAliases) > 0 { + for _, e := range m.TabletAliases { + l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if m.IncludeViews { - n += 2 - } - if m.TableNamesOnly { - n += 2 - } - if m.TableSizesOnly { - n += 2 - } - if m.TableSchemaOnly { + if m.AllowPrimary { n += 2 } n += len(m.unknownFields) return n } -func (m *GetSchemaResponse) SizeVT() (n int) { +func (m *DeleteTabletsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Schema != nil { - l = m.Schema.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *GetSchemaMigrationsRequest) SizeVT() (n int) { +func (m *EmergencyReparentShardRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -24596,42 +25598,58 @@ func (m *GetSchemaMigrationsRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Uuid) + l = len(m.Shard) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.MigrationContext) - if l > 0 { + if m.NewPrimary != nil { + l = m.NewPrimary.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Status != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Status)) + if len(m.IgnoreReplicas) > 0 { + for _, e := range m.IgnoreReplicas { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if m.Recent != nil { - l = m.Recent.SizeVT() + if m.WaitReplicasTimeout != nil { + l = m.WaitReplicasTimeout.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Order != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Order)) + if m.PreventCrossCellPromotion { + n += 2 } - if m.Limit != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Limit)) + if m.WaitForAllTablets { + n += 2 } - if m.Skip != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Skip)) + if m.ExpectedPrimary != nil { + l = m.ExpectedPrimary.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetSchemaMigrationsResponse) SizeVT() (n int) { +func (m *EmergencyReparentShardResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Migrations) > 0 { - for _, e := range m.Migrations { + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.PromotedPrimary != nil { + l = m.PromotedPrimary.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Events) > 0 { + for _, e := range m.Events { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -24640,134 +25658,153 @@ func (m *GetSchemaMigrationsResponse) SizeVT() (n int) { return n } -func (m *GetShardReplicationRequest) SizeVT() (n int) { +func (m *ExecuteFetchAsAppRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) + l = len(m.Query) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.MaxRows != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.MaxRows)) + } + if m.UsePool { + n += 2 } n += len(m.unknownFields) return n } -func (m *GetShardReplicationResponse) SizeVT() (n int) { +func (m *ExecuteFetchAsAppResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.ShardReplicationByCell) > 0 { - for k, v := range m.ShardReplicationByCell { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } + if m.Result != nil { + l = m.Result.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetShardRequest) SizeVT() (n int) { +func (m *ExecuteFetchAsDBARequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.ShardName) + l = len(m.Query) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.MaxRows != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.MaxRows)) + } + if m.DisableBinlogs { + n += 2 + } + if m.ReloadSchema { + n += 2 + } n += len(m.unknownFields) return n } -func (m *GetShardResponse) SizeVT() (n int) { +func (m *ExecuteFetchAsDBAResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Shard != nil { - l = m.Shard.SizeVT() + if m.Result != nil { + l = m.Result.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetShardRoutingRulesRequest) SizeVT() (n int) { +func (m *ExecuteHookRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.TabletHookRequest != nil { + l = m.TabletHookRequest.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *GetShardRoutingRulesResponse) SizeVT() (n int) { +func (m *ExecuteHookResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.ShardRoutingRules != nil { - l = m.ShardRoutingRules.SizeVT() + if m.HookResult != nil { + l = m.HookResult.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetSrvKeyspaceNamesRequest) SizeVT() (n int) { +func (m *ExecuteMultiFetchAsDBARequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Sql) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.MaxRows != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.MaxRows)) + } + if m.DisableBinlogs { + n += 2 + } + if m.ReloadSchema { + n += 2 } n += len(m.unknownFields) return n } -func (m *GetSrvKeyspaceNamesResponse_NameList) SizeVT() (n int) { +func (m *ExecuteMultiFetchAsDBAResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Names) > 0 { - for _, s := range m.Names { - l = len(s) + if len(m.Results) > 0 { + for _, e := range m.Results { + l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } @@ -24775,14 +25812,28 @@ func (m *GetSrvKeyspaceNamesResponse_NameList) SizeVT() (n int) { return n } -func (m *GetSrvKeyspaceNamesResponse) SizeVT() (n int) { +func (m *FindAllShardsInKeyspaceRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Names) > 0 { - for k, v := range m.Names { + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *FindAllShardsInKeyspaceResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Shards) > 0 { + for k, v := range m.Shards { _ = k _ = v l = 0 @@ -24798,7 +25849,7 @@ func (m *GetSrvKeyspaceNamesResponse) SizeVT() (n int) { return n } -func (m *GetSrvKeyspacesRequest) SizeVT() (n int) { +func (m *ForceCutOverSchemaMigrationRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -24808,32 +25859,29 @@ func (m *GetSrvKeyspacesRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Uuid) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.CallerId != nil { + l = m.CallerId.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetSrvKeyspacesResponse) SizeVT() (n int) { +func (m *ForceCutOverSchemaMigrationResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.SrvKeyspaces) > 0 { - for k, v := range m.SrvKeyspaces { + if len(m.RowsAffectedByShard) > 0 { + for k, v := range m.RowsAffectedByShard { _ = k _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + protohelpers.SizeOfVarint(uint64(v)) n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } } @@ -24841,7 +25889,7 @@ func (m *GetSrvKeyspacesResponse) SizeVT() (n int) { return n } -func (m *UpdateThrottlerConfigRequest) SizeVT() (n int) { +func (m *GetBackupsRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -24851,61 +25899,40 @@ func (m *UpdateThrottlerConfigRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Enable { - n += 2 - } - if m.Disable { - n += 2 - } - if m.Threshold != 0 { - n += 9 - } - l = len(m.CustomQuery) + l = len(m.Shard) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.CustomQuerySet { - n += 2 - } - if m.CheckAsCheckSelf { - n += 2 + if m.Limit != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Limit)) } - if m.CheckAsCheckShard { + if m.Detailed { n += 2 } - if m.ThrottledApp != nil { - l = m.ThrottledApp.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.MetricName) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.AppName) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.AppCheckedMetrics) > 0 { - for _, s := range m.AppCheckedMetrics { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.DetailedLimit != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.DetailedLimit)) } n += len(m.unknownFields) return n } -func (m *UpdateThrottlerConfigResponse) SizeVT() (n int) { +func (m *GetBackupsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if len(m.Backups) > 0 { + for _, e := range m.Backups { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *GetSrvVSchemaRequest) SizeVT() (n int) { +func (m *GetCellInfoRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -24919,48 +25946,68 @@ func (m *GetSrvVSchemaRequest) SizeVT() (n int) { return n } -func (m *GetSrvVSchemaResponse) SizeVT() (n int) { +func (m *GetCellInfoResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.SrvVSchema != nil { - l = m.SrvVSchema.SizeVT() + if m.CellInfo != nil { + l = m.CellInfo.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetSrvVSchemasRequest) SizeVT() (n int) { +func (m *GetCellInfoNamesRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } n += len(m.unknownFields) return n } -func (m *GetSrvVSchemasResponse) SizeVT() (n int) { +func (m *GetCellInfoNamesResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.SrvVSchemas) > 0 { - for k, v := range m.SrvVSchemas { - _ = k - _ = v - l = 0 - if v != nil { + if len(m.Names) > 0 { + for _, s := range m.Names { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *GetCellsAliasesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *GetCellsAliasesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Aliases) > 0 { + for k, v := range m.Aliases { + _ = k + _ = v + l = 0 + if v != nil { l = v.SizeVT() } l += 1 + protohelpers.SizeOfVarint(uint64(l)) @@ -24972,7 +26019,7 @@ func (m *GetSrvVSchemasResponse) SizeVT() (n int) { return n } -func (m *GetTabletRequest) SizeVT() (n int) { +func (m *GetFullStatusRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -24986,64 +26033,38 @@ func (m *GetTabletRequest) SizeVT() (n int) { return n } -func (m *GetTabletResponse) SizeVT() (n int) { +func (m *GetFullStatusResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Tablet != nil { - l = m.Tablet.SizeVT() + if m.Status != nil { + l = m.Status.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetTabletsRequest) SizeVT() (n int) { +func (m *GetKeyspacesRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Shard) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if m.Strict { - n += 2 - } - if len(m.TabletAliases) > 0 { - for _, e := range m.TabletAliases { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if m.TabletType != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletType)) - } n += len(m.unknownFields) return n } -func (m *GetTabletsResponse) SizeVT() (n int) { +func (m *GetKeyspacesResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Tablets) > 0 { - for _, e := range m.Tablets { + if len(m.Keyspaces) > 0 { + for _, e := range m.Keyspaces { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -25052,189 +26073,208 @@ func (m *GetTabletsResponse) SizeVT() (n int) { return n } -func (m *GetThrottlerStatusRequest) SizeVT() (n int) { +func (m *GetKeyspaceRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() + l = len(m.Keyspace) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetThrottlerStatusResponse) SizeVT() (n int) { +func (m *GetKeyspaceResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Status != nil { - l = m.Status.SizeVT() + if m.Keyspace != nil { + l = m.Keyspace.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetTopologyPathRequest) SizeVT() (n int) { +func (m *GetPermissionsRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Path) - if l > 0 { + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Version != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Version)) - } - if m.AsJson { - n += 2 - } n += len(m.unknownFields) return n } -func (m *GetTopologyPathResponse) SizeVT() (n int) { +func (m *GetPermissionsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Cell != nil { - l = m.Cell.SizeVT() + if m.Permissions != nil { + l = m.Permissions.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *TopologyCell) SizeVT() (n int) { +func (m *GetKeyspaceRoutingRulesRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Path) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + n += len(m.unknownFields) + return n +} + +func (m *GetKeyspaceRoutingRulesResponse) SizeVT() (n int) { + if m == nil { + return 0 } - l = len(m.Data) - if l > 0 { + var l int + _ = l + if m.KeyspaceRoutingRules != nil { + l = m.KeyspaceRoutingRules.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Children) > 0 { - for _, s := range m.Children { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if m.Version != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Version)) + n += len(m.unknownFields) + return n +} + +func (m *GetRoutingRulesRequest) SizeVT() (n int) { + if m == nil { + return 0 } + var l int + _ = l n += len(m.unknownFields) return n } -func (m *GetUnresolvedTransactionsRequest) SizeVT() (n int) { +func (m *GetRoutingRulesResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { + if m.RoutingRules != nil { + l = m.RoutingRules.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.AbandonAge != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.AbandonAge)) - } n += len(m.unknownFields) return n } -func (m *GetUnresolvedTransactionsResponse) SizeVT() (n int) { +func (m *GetSchemaRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Transactions) > 0 { - for _, e := range m.Transactions { - l = e.SizeVT() + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Tables) > 0 { + for _, s := range m.Tables { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.ExcludeTables) > 0 { + for _, s := range m.ExcludeTables { + l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } + if m.IncludeViews { + n += 2 + } + if m.TableNamesOnly { + n += 2 + } + if m.TableSizesOnly { + n += 2 + } + if m.TableSchemaOnly { + n += 2 + } n += len(m.unknownFields) return n } -func (m *GetTransactionInfoRequest) SizeVT() (n int) { +func (m *GetSchemaResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Dtid) - if l > 0 { + if m.Schema != nil { + l = m.Schema.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ShardTransactionState) SizeVT() (n int) { +func (m *GetSchemaMigrationsRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Shard) + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.State) + l = len(m.Uuid) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Message) + l = len(m.MigrationContext) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.TimeCreated != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.TimeCreated)) + if m.Status != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Status)) } - if len(m.Statements) > 0 { - for _, s := range m.Statements { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.Recent != nil { + l = m.Recent.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Order != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Order)) + } + if m.Limit != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Limit)) + } + if m.Skip != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Skip)) } n += len(m.unknownFields) return n } -func (m *GetTransactionInfoResponse) SizeVT() (n int) { +func (m *GetSchemaMigrationsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Metadata != nil { - l = m.Metadata.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.ShardStates) > 0 { - for _, e := range m.ShardStates { + if len(m.Migrations) > 0 { + for _, e := range m.Migrations { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -25243,19 +26283,23 @@ func (m *GetTransactionInfoResponse) SizeVT() (n int) { return n } -func (m *ConcludeTransactionRequest) SizeVT() (n int) { +func (m *GetShardReplicationRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Dtid) + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Participants) > 0 { - for _, e := range m.Participants { - l = e.SizeVT() + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } @@ -25263,17 +26307,30 @@ func (m *ConcludeTransactionRequest) SizeVT() (n int) { return n } -func (m *ConcludeTransactionResponse) SizeVT() (n int) { +func (m *GetShardReplicationResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if len(m.ShardReplicationByCell) > 0 { + for k, v := range m.ShardReplicationByCell { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } n += len(m.unknownFields) return n } -func (m *GetVSchemaRequest) SizeVT() (n int) { +func (m *GetShardRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -25283,77 +26340,76 @@ func (m *GetVSchemaRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + l = len(m.ShardName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *GetVersionRequest) SizeVT() (n int) { +func (m *GetShardResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() + if m.Shard != nil { + l = m.Shard.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetVersionResponse) SizeVT() (n int) { +func (m *GetShardRoutingRulesRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Version) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *GetVSchemaResponse) SizeVT() (n int) { +func (m *GetShardRoutingRulesResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.VSchema != nil { - l = m.VSchema.SizeVT() + if m.ShardRoutingRules != nil { + l = m.ShardRoutingRules.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *GetWorkflowsRequest) SizeVT() (n int) { +func (m *GetSrvKeyspaceNamesRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.ActiveOnly { - n += 2 - } - if m.NameOnly { - n += 2 - } - l = len(m.Workflow) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if m.IncludeLogs { - n += 2 + n += len(m.unknownFields) + return n +} + +func (m *GetSrvKeyspaceNamesResponse_NameList) SizeVT() (n int) { + if m == nil { + return 0 } - if len(m.Shards) > 0 { - for _, s := range m.Shards { + var l int + _ = l + if len(m.Names) > 0 { + for _, s := range m.Names { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -25362,23 +26418,30 @@ func (m *GetWorkflowsRequest) SizeVT() (n int) { return n } -func (m *GetWorkflowsResponse) SizeVT() (n int) { +func (m *GetSrvKeyspaceNamesResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Workflows) > 0 { - for _, e := range m.Workflows { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Names) > 0 { + for k, v := range m.Names { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } } n += len(m.unknownFields) return n } -func (m *InitShardPrimaryRequest) SizeVT() (n int) { +func (m *GetSrvKeyspacesRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -25388,42 +26451,40 @@ func (m *InitShardPrimaryRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.PrimaryElectTabletAlias != nil { - l = m.PrimaryElectTabletAlias.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Force { - n += 2 - } - if m.WaitReplicasTimeout != nil { - l = m.WaitReplicasTimeout.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *InitShardPrimaryResponse) SizeVT() (n int) { +func (m *GetSrvKeyspacesResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.SrvKeyspaces) > 0 { + for k, v := range m.SrvKeyspaces { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } } n += len(m.unknownFields) return n } -func (m *LaunchSchemaMigrationRequest) SizeVT() (n int) { +func (m *UpdateThrottlerConfigRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -25433,51 +26494,67 @@ func (m *LaunchSchemaMigrationRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Uuid) + if m.Enable { + n += 2 + } + if m.Disable { + n += 2 + } + if m.Threshold != 0 { + n += 9 + } + l = len(m.CustomQuery) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.CallerId != nil { - l = m.CallerId.SizeVT() + if m.CustomQuerySet { + n += 2 + } + if m.CheckAsCheckSelf { + n += 2 + } + if m.CheckAsCheckShard { + n += 2 + } + if m.ThrottledApp != nil { + l = m.ThrottledApp.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.MetricName) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + l = len(m.AppName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.AppCheckedMetrics) > 0 { + for _, s := range m.AppCheckedMetrics { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *LaunchSchemaMigrationResponse) SizeVT() (n int) { +func (m *UpdateThrottlerConfigResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.RowsAffectedByShard) > 0 { - for k, v := range m.RowsAffectedByShard { - _ = k - _ = v - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + protohelpers.SizeOfVarint(uint64(v)) - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } - } n += len(m.unknownFields) return n } -func (m *LookupVindexCompleteRequest) SizeVT() (n int) { +func (m *GetSrvVSchemaRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.TableKeyspace) + l = len(m.Cell) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -25485,109 +26562,88 @@ func (m *LookupVindexCompleteRequest) SizeVT() (n int) { return n } -func (m *LookupVindexCompleteResponse) SizeVT() (n int) { +func (m *GetSrvVSchemaResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if m.SrvVSchema != nil { + l = m.SrvVSchema.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *LookupVindexCreateRequest) SizeVT() (n int) { +func (m *GetSrvVSchemasRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Workflow) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } if len(m.Cells) > 0 { for _, s := range m.Cells { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if m.Vindex != nil { - l = m.Vindex.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.ContinueAfterCopyWithOwner { - n += 2 - } - if len(m.TabletTypes) > 0 { - l = 0 - for _, e := range m.TabletTypes { - l += protohelpers.SizeOfVarint(uint64(e)) - } - n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l - } - if m.TabletSelectionPreference != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletSelectionPreference)) - } n += len(m.unknownFields) return n } -func (m *LookupVindexCreateResponse) SizeVT() (n int) { +func (m *GetSrvVSchemasResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if len(m.SrvVSchemas) > 0 { + for k, v := range m.SrvVSchemas { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } n += len(m.unknownFields) return n } -func (m *LookupVindexExternalizeRequest) SizeVT() (n int) { +func (m *GetTabletRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.TableKeyspace) - if l > 0 { + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.DeleteWorkflow { - n += 2 - } n += len(m.unknownFields) return n } -func (m *LookupVindexExternalizeResponse) SizeVT() (n int) { +func (m *GetTabletResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.WorkflowStopped { - n += 2 - } - if m.WorkflowDeleted { - n += 2 + if m.Tablet != nil { + l = m.Tablet.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *LookupVindexInternalizeRequest) SizeVT() (n int) { +func (m *GetTabletsRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -25597,225 +26653,181 @@ func (m *LookupVindexInternalizeRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Name) + l = len(m.Shard) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.TableKeyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.Strict { + n += 2 + } + if len(m.TabletAliases) > 0 { + for _, e := range m.TabletAliases { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.TabletType != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletType)) } n += len(m.unknownFields) return n } -func (m *LookupVindexInternalizeResponse) SizeVT() (n int) { +func (m *GetTabletsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if len(m.Tablets) > 0 { + for _, e := range m.Tablets { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *MaterializeCreateRequest) SizeVT() (n int) { +func (m *GetThrottlerStatusRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Settings != nil { - l = m.Settings.SizeVT() + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *MaterializeCreateResponse) SizeVT() (n int) { +func (m *GetThrottlerStatusResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if m.Status != nil { + l = m.Status.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *MigrateCreateRequest) SizeVT() (n int) { +func (m *GetTopologyPathRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Workflow) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.SourceKeyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.TargetKeyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.MountName) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.TabletTypes) > 0 { - l = 0 - for _, e := range m.TabletTypes { - l += protohelpers.SizeOfVarint(uint64(e)) - } - n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l - } - if m.TabletSelectionPreference != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletSelectionPreference)) - } - if m.AllTables { - n += 2 - } - if len(m.IncludeTables) > 0 { - for _, s := range m.IncludeTables { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.ExcludeTables) > 0 { - for _, s := range m.ExcludeTables { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - l = len(m.SourceTimeZone) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.OnDdl) + l = len(m.Path) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.StopAfterCopy { - n += 2 - } - if m.DropForeignKeys { - n += 2 + if m.Version != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Version)) } - if m.DeferSecondaryKeys { + if m.AsJson { n += 2 } - if m.AutoStart { - n += 3 - } - if m.NoRoutingRules { - n += 3 - } n += len(m.unknownFields) return n } -func (m *MigrateCompleteRequest) SizeVT() (n int) { +func (m *GetTopologyPathResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Workflow) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.TargetKeyspace) - if l > 0 { + if m.Cell != nil { + l = m.Cell.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.KeepData { - n += 2 - } - if m.KeepRoutingRules { - n += 2 - } - if m.RenameTables { - n += 2 - } - if m.DryRun { - n += 2 - } n += len(m.unknownFields) return n } -func (m *MigrateCompleteResponse) SizeVT() (n int) { +func (m *TopologyCell) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Summary) + l = len(m.Name) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.DryRunResults) > 0 { - for _, s := range m.DryRunResults { + l = len(m.Path) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Data) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Children) > 0 { + for _, s := range m.Children { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } + if m.Version != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Version)) + } n += len(m.unknownFields) return n } -func (m *MountRegisterRequest) SizeVT() (n int) { +func (m *GetUnresolvedTransactionsRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.TopoType) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.TopoServer) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.TopoRoot) + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.AbandonAge != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.AbandonAge)) } n += len(m.unknownFields) return n } -func (m *MountRegisterResponse) SizeVT() (n int) { +func (m *GetUnresolvedTransactionsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if len(m.Transactions) > 0 { + for _, e := range m.Transactions { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *MountUnregisterRequest) SizeVT() (n int) { +func (m *GetTransactionInfoRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Name) + l = len(m.Dtid) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -25823,57 +26835,78 @@ func (m *MountUnregisterRequest) SizeVT() (n int) { return n } -func (m *MountUnregisterResponse) SizeVT() (n int) { +func (m *ShardTransactionState) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.State) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.TimeCreated != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.TimeCreated)) + } + if len(m.Statements) > 0 { + for _, s := range m.Statements { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *MountShowRequest) SizeVT() (n int) { +func (m *GetTransactionInfoResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Name) - if l > 0 { + if m.Metadata != nil { + l = m.Metadata.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if len(m.ShardStates) > 0 { + for _, e := range m.ShardStates { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *MountShowResponse) SizeVT() (n int) { +func (m *ConcludeTransactionRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.TopoType) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.TopoServer) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.TopoRoot) + l = len(m.Dtid) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Participants) > 0 { + for _, e := range m.Participants { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *MountListRequest) SizeVT() (n int) { +func (m *ConcludeTransactionResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -25883,176 +26916,83 @@ func (m *MountListRequest) SizeVT() (n int) { return n } -func (m *MountListResponse) SizeVT() (n int) { +func (m *GetVSchemaRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Names) > 0 { - for _, s := range m.Names { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *MoveTablesCreateRequest) SizeVT() (n int) { +func (m *GetVersionRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Workflow) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.SourceKeyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.TargetKeyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.TabletTypes) > 0 { - l = 0 - for _, e := range m.TabletTypes { - l += protohelpers.SizeOfVarint(uint64(e)) - } - n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l - } - if m.TabletSelectionPreference != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletSelectionPreference)) - } - if len(m.SourceShards) > 0 { - for _, s := range m.SourceShards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if m.AllTables { - n += 2 - } - if len(m.IncludeTables) > 0 { - for _, s := range m.IncludeTables { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.ExcludeTables) > 0 { - for _, s := range m.ExcludeTables { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - l = len(m.ExternalClusterName) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.SourceTimeZone) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.OnDdl) - if l > 0 { + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.StopAfterCopy { - n += 2 - } - if m.DropForeignKeys { - n += 2 - } - if m.DeferSecondaryKeys { - n += 3 - } - if m.AutoStart { - n += 3 - } - if m.NoRoutingRules { - n += 3 - } - if m.AtomicCopy { - n += 3 - } - if m.WorkflowOptions != nil { - l = m.WorkflowOptions.SizeVT() - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *MoveTablesCreateResponse_TabletInfo) SizeVT() (n int) { +func (m *GetVersionResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Tablet != nil { - l = m.Tablet.SizeVT() + l = len(m.Version) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Created { - n += 2 - } n += len(m.unknownFields) return n } -func (m *MoveTablesCreateResponse) SizeVT() (n int) { +func (m *GetVSchemaResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Summary) - if l > 0 { + if m.VSchema != nil { + l = m.VSchema.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Details) > 0 { - for _, e := range m.Details { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } n += len(m.unknownFields) return n } -func (m *MoveTablesCompleteRequest) SizeVT() (n int) { +func (m *GetWorkflowsRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Workflow) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.TargetKeyspace) + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.KeepData { + if m.ActiveOnly { n += 2 } - if m.KeepRoutingRules { + if m.NameOnly { n += 2 } - if m.RenameTables { - n += 2 + l = len(m.Workflow) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.DryRun { + if m.IncludeLogs { n += 2 } if len(m.Shards) > 0 { @@ -26061,26 +27001,19 @@ func (m *MoveTablesCompleteRequest) SizeVT() (n int) { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if m.IgnoreSourceKeyspace { - n += 2 - } n += len(m.unknownFields) return n } -func (m *MoveTablesCompleteResponse) SizeVT() (n int) { +func (m *GetWorkflowsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Summary) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.DryRunResults) > 0 { - for _, s := range m.DryRunResults { - l = len(s) + if len(m.Workflows) > 0 { + for _, e := range m.Workflows { + l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } @@ -26088,31 +27021,7 @@ func (m *MoveTablesCompleteResponse) SizeVT() (n int) { return n } -func (m *PingTabletRequest) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - n += len(m.unknownFields) - return n -} - -func (m *PingTabletResponse) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += len(m.unknownFields) - return n -} - -func (m *PlannedReparentShardRequest) SizeVT() (n int) { +func (m *InitShardPrimaryRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -26126,51 +27035,27 @@ func (m *PlannedReparentShardRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.NewPrimary != nil { - l = m.NewPrimary.SizeVT() + if m.PrimaryElectTabletAlias != nil { + l = m.PrimaryElectTabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.AvoidPrimary != nil { - l = m.AvoidPrimary.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Force { + n += 2 } if m.WaitReplicasTimeout != nil { l = m.WaitReplicasTimeout.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.TolerableReplicationLag != nil { - l = m.TolerableReplicationLag.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.AllowCrossCellPromotion { - n += 2 - } - if m.ExpectedPrimary != nil { - l = m.ExpectedPrimary.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *PlannedReparentShardResponse) SizeVT() (n int) { +func (m *InitShardPrimaryResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Shard) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.PromotedPrimary != nil { - l = m.PromotedPrimary.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } if len(m.Events) > 0 { for _, e := range m.Events { l = e.SizeVT() @@ -26181,7 +27066,7 @@ func (m *PlannedReparentShardResponse) SizeVT() (n int) { return n } -func (m *RebuildKeyspaceGraphRequest) SizeVT() (n int) { +func (m *LaunchSchemaMigrationRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -26191,70 +27076,59 @@ func (m *RebuildKeyspaceGraphRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if m.AllowPartial { - n += 2 + l = len(m.Uuid) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - n += len(m.unknownFields) - return n -} - -func (m *RebuildKeyspaceGraphResponse) SizeVT() (n int) { - if m == nil { - return 0 + if m.CallerId != nil { + l = m.CallerId.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - var l int - _ = l n += len(m.unknownFields) return n } -func (m *RebuildVSchemaGraphRequest) SizeVT() (n int) { +func (m *LaunchSchemaMigrationResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Cells) > 0 { - for _, s := range m.Cells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.RowsAffectedByShard) > 0 { + for k, v := range m.RowsAffectedByShard { + _ = k + _ = v + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + protohelpers.SizeOfVarint(uint64(v)) + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } } n += len(m.unknownFields) return n } -func (m *RebuildVSchemaGraphResponse) SizeVT() (n int) { +func (m *LookupVindexCompleteRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - n += len(m.unknownFields) - return n -} - -func (m *RefreshStateRequest) SizeVT() (n int) { - if m == nil { - return 0 + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - var l int - _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.TableKeyspace) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *RefreshStateResponse) SizeVT() (n int) { +func (m *LookupVindexCompleteResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -26264,7 +27138,7 @@ func (m *RefreshStateResponse) SizeVT() (n int) { return n } -func (m *RefreshStateByShardRequest) SizeVT() (n int) { +func (m *LookupVindexCreateRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -26274,7 +27148,7 @@ func (m *RefreshStateByShardRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) + l = len(m.Workflow) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -26284,52 +27158,79 @@ func (m *RefreshStateByShardRequest) SizeVT() (n int) { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - n += len(m.unknownFields) + if m.Vindex != nil { + l = m.Vindex.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ContinueAfterCopyWithOwner { + n += 2 + } + if len(m.TabletTypes) > 0 { + l = 0 + for _, e := range m.TabletTypes { + l += protohelpers.SizeOfVarint(uint64(e)) + } + n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l + } + if m.TabletSelectionPreference != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletSelectionPreference)) + } + n += len(m.unknownFields) return n } -func (m *RefreshStateByShardResponse) SizeVT() (n int) { +func (m *LookupVindexCreateResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.IsPartialRefresh { - n += 2 - } - l = len(m.PartialRefreshDetails) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *ReloadSchemaRequest) SizeVT() (n int) { +func (m *LookupVindexExternalizeRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.TableKeyspace) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.DeleteWorkflow { + n += 2 + } n += len(m.unknownFields) return n } -func (m *ReloadSchemaResponse) SizeVT() (n int) { +func (m *LookupVindexExternalizeResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if m.WorkflowStopped { + n += 2 + } + if m.WorkflowDeleted { + n += 2 + } n += len(m.unknownFields) return n } -func (m *ReloadSchemaKeyspaceRequest) SizeVT() (n int) { +func (m *LookupVindexInternalizeRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -26339,137 +27240,209 @@ func (m *ReloadSchemaKeyspaceRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.WaitPosition) + l = len(m.Name) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.IncludePrimary { - n += 2 + l = len(m.TableKeyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Concurrency != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Concurrency)) + n += len(m.unknownFields) + return n +} + +func (m *LookupVindexInternalizeResponse) SizeVT() (n int) { + if m == nil { + return 0 } + var l int + _ = l n += len(m.unknownFields) return n } -func (m *ReloadSchemaKeyspaceResponse) SizeVT() (n int) { +func (m *MaterializeCreateRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.Settings != nil { + l = m.Settings.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ReloadSchemaShardRequest) SizeVT() (n int) { +func (m *MaterializeCreateResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) + n += len(m.unknownFields) + return n +} + +func (m *MigrateCreateRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Workflow) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) + l = len(m.SourceKeyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.WaitPosition) + l = len(m.TargetKeyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.IncludePrimary { - n += 2 + l = len(m.MountName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Concurrency != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Concurrency)) + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - n += len(m.unknownFields) - return n -} - -func (m *ReloadSchemaShardResponse) SizeVT() (n int) { - if m == nil { - return 0 + if len(m.TabletTypes) > 0 { + l = 0 + for _, e := range m.TabletTypes { + l += protohelpers.SizeOfVarint(uint64(e)) + } + n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l } - var l int - _ = l - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.SizeVT() + if m.TabletSelectionPreference != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletSelectionPreference)) + } + if m.AllTables { + n += 2 + } + if len(m.IncludeTables) > 0 { + for _, s := range m.IncludeTables { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.ExcludeTables) > 0 { + for _, s := range m.ExcludeTables { + l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } + l = len(m.SourceTimeZone) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OnDdl) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.StopAfterCopy { + n += 2 + } + if m.DropForeignKeys { + n += 2 + } + if m.DeferSecondaryKeys { + n += 2 + } + if m.AutoStart { + n += 3 + } + if m.NoRoutingRules { + n += 3 + } n += len(m.unknownFields) return n } -func (m *RemoveBackupRequest) SizeVT() (n int) { +func (m *MigrateCompleteRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) + l = len(m.Workflow) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) + l = len(m.TargetKeyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.KeepData { + n += 2 + } + if m.KeepRoutingRules { + n += 2 + } + if m.RenameTables { + n += 2 + } + if m.DryRun { + n += 2 } n += len(m.unknownFields) return n } -func (m *RemoveBackupResponse) SizeVT() (n int) { +func (m *MigrateCompleteResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + l = len(m.Summary) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.DryRunResults) > 0 { + for _, s := range m.DryRunResults { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *RemoveKeyspaceCellRequest) SizeVT() (n int) { +func (m *MountRegisterRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) + l = len(m.TopoType) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Cell) + l = len(m.TopoServer) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Force { - n += 2 + l = len(m.TopoRoot) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Recursive { - n += 2 + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *RemoveKeyspaceCellResponse) SizeVT() (n int) { +func (m *MountRegisterResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -26479,35 +27452,21 @@ func (m *RemoveKeyspaceCellResponse) SizeVT() (n int) { return n } -func (m *RemoveShardCellRequest) SizeVT() (n int) { +func (m *MountUnregisterRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.ShardName) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Cell) + l = len(m.Name) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Force { - n += 2 - } - if m.Recursive { - n += 2 - } n += len(m.unknownFields) return n } -func (m *RemoveShardCellResponse) SizeVT() (n int) { +func (m *MountUnregisterResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -26517,43 +27476,73 @@ func (m *RemoveShardCellResponse) SizeVT() (n int) { return n } -func (m *ReparentTabletRequest) SizeVT() (n int) { +func (m *MountShowRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Tablet != nil { - l = m.Tablet.SizeVT() + l = len(m.Name) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ReparentTabletResponse) SizeVT() (n int) { +func (m *MountShowResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) + l = len(m.TopoType) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) + l = len(m.TopoServer) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Primary != nil { - l = m.Primary.SizeVT() + l = len(m.TopoRoot) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Name) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ReshardCreateRequest) SizeVT() (n int) { +func (m *MountListRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *MountListResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Names) > 0 { + for _, s := range m.Names { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *MoveTablesCreateRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -26563,21 +27552,13 @@ func (m *ReshardCreateRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Keyspace) + l = len(m.SourceKeyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.SourceShards) > 0 { - for _, s := range m.SourceShards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.TargetShards) > 0 { - for _, s := range m.TargetShards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.TargetKeyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Cells) > 0 { for _, s := range m.Cells { @@ -26595,9 +27576,35 @@ func (m *ReshardCreateRequest) SizeVT() (n int) { if m.TabletSelectionPreference != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletSelectionPreference)) } - if m.SkipSchemaCopy { + if len(m.SourceShards) > 0 { + for _, s := range m.SourceShards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.AllTables { n += 2 } + if len(m.IncludeTables) > 0 { + for _, s := range m.IncludeTables { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.ExcludeTables) > 0 { + for _, s := range m.ExcludeTables { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.ExternalClusterName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.SourceTimeZone) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } l = len(m.OnDdl) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) @@ -26605,122 +27612,126 @@ func (m *ReshardCreateRequest) SizeVT() (n int) { if m.StopAfterCopy { n += 2 } - if m.DeferSecondaryKeys { + if m.DropForeignKeys { n += 2 } + if m.DeferSecondaryKeys { + n += 3 + } if m.AutoStart { - n += 2 + n += 3 + } + if m.NoRoutingRules { + n += 3 + } + if m.AtomicCopy { + n += 3 } if m.WorkflowOptions != nil { l = m.WorkflowOptions.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *RestoreFromBackupRequest) SizeVT() (n int) { +func (m *MoveTablesCreateResponse_TabletInfo) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.BackupTime != nil { - l = m.BackupTime.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.RestoreToPos) - if l > 0 { + if m.Tablet != nil { + l = m.Tablet.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.DryRun { + if m.Created { n += 2 } - if m.RestoreToTimestamp != nil { - l = m.RestoreToTimestamp.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.AllowedBackupEngines) > 0 { - for _, s := range m.AllowedBackupEngines { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } n += len(m.unknownFields) return n } -func (m *RestoreFromBackupResponse) SizeVT() (n int) { +func (m *MoveTablesCreateResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Shard) + l = len(m.Summary) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Event != nil { - l = m.Event.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Details) > 0 { + for _, e := range m.Details { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *RetrySchemaMigrationRequest) SizeVT() (n int) { +func (m *MoveTablesCompleteRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) + l = len(m.Workflow) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Uuid) + l = len(m.TargetKeyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.CallerId != nil { - l = m.CallerId.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.KeepData { + n += 2 + } + if m.KeepRoutingRules { + n += 2 + } + if m.RenameTables { + n += 2 + } + if m.DryRun { + n += 2 + } + if len(m.Shards) > 0 { + for _, s := range m.Shards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.IgnoreSourceKeyspace { + n += 2 } n += len(m.unknownFields) return n } -func (m *RetrySchemaMigrationResponse) SizeVT() (n int) { +func (m *MoveTablesCompleteResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.RowsAffectedByShard) > 0 { - for k, v := range m.RowsAffectedByShard { - _ = k - _ = v - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + protohelpers.SizeOfVarint(uint64(v)) - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + l = len(m.Summary) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.DryRunResults) > 0 { + for _, s := range m.DryRunResults { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) return n } -func (m *RunHealthCheckRequest) SizeVT() (n int) { +func (m *PingTabletRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -26734,7 +27745,7 @@ func (m *RunHealthCheckRequest) SizeVT() (n int) { return n } -func (m *RunHealthCheckResponse) SizeVT() (n int) { +func (m *PingTabletResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -26744,7 +27755,7 @@ func (m *RunHealthCheckResponse) SizeVT() (n int) { return n } -func (m *SetKeyspaceDurabilityPolicyRequest) SizeVT() (n int) { +func (m *PlannedReparentShardRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -26754,29 +27765,66 @@ func (m *SetKeyspaceDurabilityPolicyRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.DurabilityPolicy) + l = len(m.Shard) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.NewPrimary != nil { + l = m.NewPrimary.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.AvoidPrimary != nil { + l = m.AvoidPrimary.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.WaitReplicasTimeout != nil { + l = m.WaitReplicasTimeout.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.TolerableReplicationLag != nil { + l = m.TolerableReplicationLag.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.AllowCrossCellPromotion { + n += 2 + } + if m.ExpectedPrimary != nil { + l = m.ExpectedPrimary.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *SetKeyspaceDurabilityPolicyResponse) SizeVT() (n int) { +func (m *PlannedReparentShardResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Keyspace != nil { - l = m.Keyspace.SizeVT() + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.PromotedPrimary != nil { + l = m.PromotedPrimary.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if len(m.Events) > 0 { + for _, e := range m.Events { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *SetKeyspaceShardingInfoRequest) SizeVT() (n int) { +func (m *RebuildKeyspaceGraphRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -26786,63 +27834,80 @@ func (m *SetKeyspaceShardingInfoRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Force { + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.AllowPartial { n += 2 } n += len(m.unknownFields) return n } -func (m *SetKeyspaceShardingInfoResponse) SizeVT() (n int) { +func (m *RebuildKeyspaceGraphResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Keyspace != nil { - l = m.Keyspace.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *SetShardIsPrimaryServingRequest) SizeVT() (n int) { +func (m *RebuildVSchemaGraphRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Shard) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if m.IsServing { - n += 2 + n += len(m.unknownFields) + return n +} + +func (m *RebuildVSchemaGraphResponse) SizeVT() (n int) { + if m == nil { + return 0 } + var l int + _ = l n += len(m.unknownFields) return n } -func (m *SetShardIsPrimaryServingResponse) SizeVT() (n int) { +func (m *RefreshStateRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Shard != nil { - l = m.Shard.SizeVT() + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *SetShardTabletControlRequest) SizeVT() (n int) { +func (m *RefreshStateResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *RefreshStateByShardRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -26856,46 +27921,34 @@ func (m *SetShardTabletControlRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.TabletType != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletType)) - } if len(m.Cells) > 0 { for _, s := range m.Cells { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if len(m.DeniedTables) > 0 { - for _, s := range m.DeniedTables { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if m.DisableQueryService { - n += 2 - } - if m.Remove { - n += 2 - } n += len(m.unknownFields) return n } -func (m *SetShardTabletControlResponse) SizeVT() (n int) { +func (m *RefreshStateByShardResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Shard != nil { - l = m.Shard.SizeVT() + if m.IsPartialRefresh { + n += 2 + } + l = len(m.PartialRefreshDetails) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *SetWritableRequest) SizeVT() (n int) { +func (m *ReloadSchemaRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -26905,14 +27958,11 @@ func (m *SetWritableRequest) SizeVT() (n int) { l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Writable { - n += 2 - } n += len(m.unknownFields) return n } -func (m *SetWritableResponse) SizeVT() (n int) { +func (m *ReloadSchemaResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -26922,7 +27972,7 @@ func (m *SetWritableResponse) SizeVT() (n int) { return n } -func (m *ShardReplicationAddRequest) SizeVT() (n int) { +func (m *ReloadSchemaKeyspaceRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -26932,29 +27982,37 @@ func (m *ShardReplicationAddRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) + l = len(m.WaitPosition) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.IncludePrimary { + n += 2 + } + if m.Concurrency != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Concurrency)) } n += len(m.unknownFields) return n } -func (m *ShardReplicationAddResponse) SizeVT() (n int) { +func (m *ReloadSchemaKeyspaceResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if len(m.Events) > 0 { + for _, e := range m.Events { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *ShardReplicationFixRequest) SizeVT() (n int) { +func (m *ReloadSchemaShardRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -26968,29 +28026,37 @@ func (m *ShardReplicationFixRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Cell) + l = len(m.WaitPosition) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.IncludePrimary { + n += 2 + } + if m.Concurrency != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Concurrency)) + } n += len(m.unknownFields) return n } -func (m *ShardReplicationFixResponse) SizeVT() (n int) { +func (m *ReloadSchemaShardResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Error != nil { - l = m.Error.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Events) > 0 { + for _, e := range m.Events { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *ShardReplicationPositionsRequest) SizeVT() (n int) { +func (m *RemoveBackupRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -27004,47 +28070,25 @@ func (m *ShardReplicationPositionsRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *ShardReplicationPositionsResponse) SizeVT() (n int) { +func (m *RemoveBackupResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.ReplicationStatuses) > 0 { - for k, v := range m.ReplicationStatuses { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } - } - if len(m.TabletMap) > 0 { - for k, v := range m.TabletMap { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } - } n += len(m.unknownFields) return n } -func (m *ShardReplicationRemoveRequest) SizeVT() (n int) { +func (m *RemoveKeyspaceCellRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -27054,19 +28098,21 @@ func (m *ShardReplicationRemoveRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Shard) + l = len(m.Cell) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Force { + n += 2 + } + if m.Recursive { + n += 2 } n += len(m.unknownFields) return n } -func (m *ShardReplicationRemoveResponse) SizeVT() (n int) { +func (m *RemoveKeyspaceCellResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -27076,25 +28122,35 @@ func (m *ShardReplicationRemoveResponse) SizeVT() (n int) { return n } -func (m *SleepTabletRequest) SizeVT() (n int) { +func (m *RemoveShardCellRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() + l = len(m.Keyspace) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Duration != nil { - l = m.Duration.SizeVT() + l = len(m.ShardName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Cell) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.Force { + n += 2 + } + if m.Recursive { + n += 2 + } n += len(m.unknownFields) return n } -func (m *SleepTabletResponse) SizeVT() (n int) { +func (m *RemoveShardCellResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -27104,7 +28160,21 @@ func (m *SleepTabletResponse) SizeVT() (n int) { return n } -func (m *SourceShardAddRequest) SizeVT() (n int) { +func (m *ReparentTabletRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Tablet != nil { + l = m.Tablet.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ReparentTabletResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -27118,51 +28188,125 @@ func (m *SourceShardAddRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Uid != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Uid)) + if m.Primary != nil { + l = m.Primary.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.SourceKeyspace) + n += len(m.unknownFields) + return n +} + +func (m *ReshardCreateRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Workflow) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.SourceShard) + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.KeyRange != nil { - l = m.KeyRange.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.SourceShards) > 0 { + for _, s := range m.SourceShards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if len(m.Tables) > 0 { - for _, s := range m.Tables { + if len(m.TargetShards) > 0 { + for _, s := range m.TargetShards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.Cells) > 0 { + for _, s := range m.Cells { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } + if len(m.TabletTypes) > 0 { + l = 0 + for _, e := range m.TabletTypes { + l += protohelpers.SizeOfVarint(uint64(e)) + } + n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l + } + if m.TabletSelectionPreference != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletSelectionPreference)) + } + if m.SkipSchemaCopy { + n += 2 + } + l = len(m.OnDdl) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.StopAfterCopy { + n += 2 + } + if m.DeferSecondaryKeys { + n += 2 + } + if m.AutoStart { + n += 2 + } + if m.WorkflowOptions != nil { + l = m.WorkflowOptions.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *SourceShardAddResponse) SizeVT() (n int) { +func (m *RestoreFromBackupRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Shard != nil { - l = m.Shard.SizeVT() + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.BackupTime != nil { + l = m.BackupTime.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.RestoreToPos) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.DryRun { + n += 2 + } + if m.RestoreToTimestamp != nil { + l = m.RestoreToTimestamp.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.AllowedBackupEngines) > 0 { + for _, s := range m.AllowedBackupEngines { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *SourceShardDeleteRequest) SizeVT() (n int) { +func (m *RestoreFromBackupResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) @@ -27171,52 +28315,55 @@ func (m *SourceShardDeleteRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Uid != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Uid)) + if m.Event != nil { + l = m.Event.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *SourceShardDeleteResponse) SizeVT() (n int) { +func (m *RetrySchemaMigrationRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Shard != nil { - l = m.Shard.SizeVT() + l = len(m.Keyspace) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - n += len(m.unknownFields) - return n -} - -func (m *StartReplicationRequest) SizeVT() (n int) { - if m == nil { - return 0 + l = len(m.Uuid) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - var l int - _ = l - if m.TabletAlias != nil { - l = m.TabletAlias.SizeVT() + if m.CallerId != nil { + l = m.CallerId.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *StartReplicationResponse) SizeVT() (n int) { +func (m *RetrySchemaMigrationResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if len(m.RowsAffectedByShard) > 0 { + for k, v := range m.RowsAffectedByShard { + _ = k + _ = v + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + protohelpers.SizeOfVarint(uint64(v)) + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } n += len(m.unknownFields) return n } -func (m *StopReplicationRequest) SizeVT() (n int) { +func (m *RunHealthCheckRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -27230,7 +28377,7 @@ func (m *StopReplicationRequest) SizeVT() (n int) { return n } -func (m *StopReplicationResponse) SizeVT() (n int) { +func (m *RunHealthCheckResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -27240,207 +28387,185 @@ func (m *StopReplicationResponse) SizeVT() (n int) { return n } -func (m *TabletExternallyReparentedRequest) SizeVT() (n int) { +func (m *SetKeyspaceDurabilityPolicyRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Tablet != nil { - l = m.Tablet.SizeVT() + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.DurabilityPolicy) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *TabletExternallyReparentedResponse) SizeVT() (n int) { +func (m *SetKeyspaceDurabilityPolicyResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Shard) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.NewPrimary != nil { - l = m.NewPrimary.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.OldPrimary != nil { - l = m.OldPrimary.SizeVT() + if m.Keyspace != nil { + l = m.Keyspace.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *UpdateCellInfoRequest) SizeVT() (n int) { +func (m *SetKeyspaceShardingInfoRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Name) + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.CellInfo != nil { - l = m.CellInfo.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Force { + n += 2 } n += len(m.unknownFields) return n } -func (m *UpdateCellInfoResponse) SizeVT() (n int) { +func (m *SetKeyspaceShardingInfoResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.CellInfo != nil { - l = m.CellInfo.SizeVT() + if m.Keyspace != nil { + l = m.Keyspace.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *UpdateCellsAliasRequest) SizeVT() (n int) { +func (m *SetShardIsPrimaryServingRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Name) + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.CellsAlias != nil { - l = m.CellsAlias.SizeVT() + l = len(m.Shard) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.IsServing { + n += 2 + } n += len(m.unknownFields) return n } -func (m *UpdateCellsAliasResponse) SizeVT() (n int) { +func (m *SetShardIsPrimaryServingResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.CellsAlias != nil { - l = m.CellsAlias.SizeVT() + if m.Shard != nil { + l = m.Shard.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ValidateRequest) SizeVT() (n int) { +func (m *SetShardTabletControlRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.PingTablets { + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.TabletType != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletType)) + } + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.DeniedTables) > 0 { + for _, s := range m.DeniedTables { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.DisableQueryService { + n += 2 + } + if m.Remove { n += 2 } n += len(m.unknownFields) return n } -func (m *ValidateResponse) SizeVT() (n int) { +func (m *SetShardTabletControlResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Results) > 0 { - for _, s := range m.Results { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.ResultsByKeyspace) > 0 { - for k, v := range m.ResultsByKeyspace { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } + if m.Shard != nil { + l = m.Shard.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ValidateKeyspaceRequest) SizeVT() (n int) { +func (m *SetWritableRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.PingTablets { + if m.Writable { n += 2 } n += len(m.unknownFields) return n } -func (m *ValidateKeyspaceResponse) SizeVT() (n int) { +func (m *SetWritableResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Results) > 0 { - for _, s := range m.Results { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.ResultsByShard) > 0 { - for k, v := range m.ResultsByShard { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } - } n += len(m.unknownFields) return n } -func (m *ValidatePermissionsKeyspaceRequest) SizeVT() (n int) { +func (m *ShardReplicationAddRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -27450,17 +28575,19 @@ func (m *ValidatePermissionsKeyspaceRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Shards) > 0 { - for _, s := range m.Shards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ValidatePermissionsKeyspaceResponse) SizeVT() (n int) { +func (m *ShardReplicationAddResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -27470,7 +28597,7 @@ func (m *ValidatePermissionsKeyspaceResponse) SizeVT() (n int) { return n } -func (m *ValidateSchemaKeyspaceRequest) SizeVT() (n int) { +func (m *ShardReplicationFixRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -27480,61 +28607,33 @@ func (m *ValidateSchemaKeyspaceRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.ExcludeTables) > 0 { - for _, s := range m.ExcludeTables { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if m.IncludeViews { - n += 2 + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.SkipNoPrimary { - n += 2 - } - if m.IncludeVschema { - n += 2 - } - if len(m.Shards) > 0 { - for _, s := range m.Shards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Cell) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ValidateSchemaKeyspaceResponse) SizeVT() (n int) { +func (m *ShardReplicationFixResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Results) > 0 { - for _, s := range m.Results { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.ResultsByShard) > 0 { - for k, v := range m.ResultsByShard { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } + if m.Error != nil { + l = m.Error.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ValidateShardRequest) SizeVT() (n int) { +func (m *ShardReplicationPositionsRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -27548,57 +28647,31 @@ func (m *ValidateShardRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.PingTablets { - n += 2 - } - n += len(m.unknownFields) - return n -} - -func (m *ValidateShardResponse) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Results) > 0 { - for _, s := range m.Results { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - n += len(m.unknownFields) - return n -} - -func (m *ValidateVersionKeyspaceRequest) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Keyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *ValidateVersionKeyspaceResponse) SizeVT() (n int) { +func (m *ShardReplicationPositionsResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Results) > 0 { - for _, s := range m.Results { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.ReplicationStatuses) > 0 { + for k, v := range m.ReplicationStatuses { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } } - if len(m.ResultsByShard) > 0 { - for k, v := range m.ResultsByShard { + if len(m.TabletMap) > 0 { + for k, v := range m.TabletMap { _ = k _ = v l = 0 @@ -27614,7 +28687,7 @@ func (m *ValidateVersionKeyspaceResponse) SizeVT() (n int) { return n } -func (m *ValidateVersionShardRequest) SizeVT() (n int) { +func (m *ShardReplicationRemoveRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -27628,123 +28701,80 @@ func (m *ValidateVersionShardRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *ValidateVersionShardResponse) SizeVT() (n int) { +func (m *ShardReplicationRemoveResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Results) > 0 { - for _, s := range m.Results { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } n += len(m.unknownFields) return n } -func (m *ValidateVSchemaRequest) SizeVT() (n int) { +func (m *SleepTabletRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) - if l > 0 { + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Shards) > 0 { - for _, s := range m.Shards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.ExcludeTables) > 0 { - for _, s := range m.ExcludeTables { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if m.IncludeViews { - n += 2 + if m.Duration != nil { + l = m.Duration.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *ValidateVSchemaResponse) SizeVT() (n int) { +func (m *SleepTabletResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Results) > 0 { - for _, s := range m.Results { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.ResultsByShard) > 0 { - for k, v := range m.ResultsByShard { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } - } n += len(m.unknownFields) return n } -func (m *VDiffCreateRequest) SizeVT() (n int) { +func (m *SourceShardAddRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Workflow) + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.TargetKeyspace) + l = len(m.Shard) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Uuid) + if m.Uid != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Uid)) + } + l = len(m.SourceKeyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.SourceCells) > 0 { - for _, s := range m.SourceCells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.TargetCells) > 0 { - for _, s := range m.TargetCells { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if len(m.TabletTypes) > 0 { - l = 0 - for _, e := range m.TabletTypes { - l += protohelpers.SizeOfVarint(uint64(e)) - } - n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l + l = len(m.SourceShard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.TabletSelectionPreference != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletSelectionPreference)) + if m.KeyRange != nil { + l = m.KeyRange.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Tables) > 0 { for _, s := range m.Tables { @@ -27752,130 +28782,74 @@ func (m *VDiffCreateRequest) SizeVT() (n int) { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if m.Limit != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Limit)) - } - if m.FilteredReplicationWaitTime != nil { - l = m.FilteredReplicationWaitTime.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.DebugQuery { - n += 2 - } - if m.OnlyPKs { - n += 2 - } - if m.UpdateTableStats { - n += 2 - } - if m.MaxExtraRowsToCompare != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.MaxExtraRowsToCompare)) - } - if m.Wait { - n += 2 - } - if m.WaitUpdateInterval != nil { - l = m.WaitUpdateInterval.SizeVT() - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.AutoRetry { - n += 3 - } - if m.Verbose { - n += 3 - } - if m.MaxReportSampleRows != 0 { - n += 2 + protohelpers.SizeOfVarint(uint64(m.MaxReportSampleRows)) - } - if m.MaxDiffDuration != nil { - l = m.MaxDiffDuration.SizeVT() - n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.RowDiffColumnTruncateAt != 0 { - n += 2 + protohelpers.SizeOfVarint(uint64(m.RowDiffColumnTruncateAt)) - } - if m.AutoStart != nil { - n += 3 - } n += len(m.unknownFields) return n } -func (m *VDiffCreateResponse) SizeVT() (n int) { +func (m *SourceShardAddResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.UUID) - if l > 0 { + if m.Shard != nil { + l = m.Shard.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *VDiffDeleteRequest) SizeVT() (n int) { +func (m *SourceShardDeleteRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Workflow) + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.TargetKeyspace) + l = len(m.Shard) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Arg) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Uid != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Uid)) } n += len(m.unknownFields) return n } -func (m *VDiffDeleteResponse) SizeVT() (n int) { +func (m *SourceShardDeleteResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if m.Shard != nil { + l = m.Shard.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *VDiffResumeRequest) SizeVT() (n int) { +func (m *StartReplicationRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Workflow) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.TargetKeyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Uuid) - if l > 0 { + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.TargetShards) > 0 { - for _, s := range m.TargetShards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } n += len(m.unknownFields) return n } -func (m *VDiffResumeResponse) SizeVT() (n int) { +func (m *StartReplicationResponse) SizeVT() (n int) { if m == nil { return 0 } @@ -27885,284 +28859,215 @@ func (m *VDiffResumeResponse) SizeVT() (n int) { return n } -func (m *VDiffShowRequest) SizeVT() (n int) { +func (m *StopReplicationRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Workflow) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.TargetKeyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Arg) - if l > 0 { + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *VDiffShowResponse) SizeVT() (n int) { +func (m *StopReplicationResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.TabletResponses) > 0 { - for k, v := range m.TabletResponses { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } - } n += len(m.unknownFields) return n } -func (m *VDiffStopRequest) SizeVT() (n int) { +func (m *TabletExternallyReparentedRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Workflow) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.TargetKeyspace) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Uuid) - if l > 0 { + if m.Tablet != nil { + l = m.Tablet.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.TargetShards) > 0 { - for _, s := range m.TargetShards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } n += len(m.unknownFields) return n } -func (m *VDiffStopResponse) SizeVT() (n int) { +func (m *TabletExternallyReparentedResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Shard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.NewPrimary != nil { + l = m.NewPrimary.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.OldPrimary != nil { + l = m.OldPrimary.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *WorkflowDeleteRequest) SizeVT() (n int) { +func (m *UpdateCellInfoRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) + l = len(m.Name) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Workflow) - if l > 0 { + if m.CellInfo != nil { + l = m.CellInfo.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.KeepData { - n += 2 - } - if m.KeepRoutingRules { - n += 2 - } - if len(m.Shards) > 0 { - for _, s := range m.Shards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if m.DeleteBatchSize != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.DeleteBatchSize)) - } - if m.IgnoreSourceKeyspace { - n += 2 - } n += len(m.unknownFields) return n } -func (m *WorkflowDeleteResponse_TabletInfo) SizeVT() (n int) { +func (m *UpdateCellInfoResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Tablet != nil { - l = m.Tablet.SizeVT() + l = len(m.Name) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Deleted { - n += 2 + if m.CellInfo != nil { + l = m.CellInfo.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *WorkflowDeleteResponse) SizeVT() (n int) { +func (m *UpdateCellsAliasRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Summary) + l = len(m.Name) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Details) > 0 { - for _, e := range m.Details { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.CellsAlias != nil { + l = m.CellsAlias.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *WorkflowStatusRequest) SizeVT() (n int) { +func (m *UpdateCellsAliasResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) + l = len(m.Name) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Workflow) - if l > 0 { + if m.CellsAlias != nil { + l = m.CellsAlias.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Shards) > 0 { - for _, s := range m.Shards { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } n += len(m.unknownFields) return n } -func (m *WorkflowStatusResponse_TableCopyState) SizeVT() (n int) { +func (m *ValidateRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.RowsCopied != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.RowsCopied)) - } - if m.RowsTotal != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.RowsTotal)) - } - if m.RowsPercentage != 0 { - n += 5 - } - if m.BytesCopied != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.BytesCopied)) - } - if m.BytesTotal != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.BytesTotal)) - } - if m.BytesPercentage != 0 { - n += 5 + if m.PingTablets { + n += 2 } n += len(m.unknownFields) return n } -func (m *WorkflowStatusResponse_ShardStreamState) SizeVT() (n int) { +func (m *ValidateResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Id != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Id)) - } - if m.Tablet != nil { - l = m.Tablet.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.SourceShard) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Position) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Status) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Results) > 0 { + for _, s := range m.Results { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - l = len(m.Info) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.ResultsByKeyspace) > 0 { + for k, v := range m.ResultsByKeyspace { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } } n += len(m.unknownFields) return n } -func (m *WorkflowStatusResponse_ShardStreams) SizeVT() (n int) { +func (m *ValidateKeyspaceRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Streams) > 0 { - for _, e := range m.Streams { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.PingTablets { + n += 2 } n += len(m.unknownFields) return n } -func (m *WorkflowStatusResponse) SizeVT() (n int) { +func (m *ValidateKeyspaceResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.TableCopyState) > 0 { - for k, v := range m.TableCopyState { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + if len(m.Results) > 0 { + for _, s := range m.Results { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if len(m.ShardStreams) > 0 { - for k, v := range m.ShardStreams { + if len(m.ResultsByShard) > 0 { + for k, v := range m.ResultsByShard { _ = k _ = v l = 0 @@ -28174,15 +29079,11 @@ func (m *WorkflowStatusResponse) SizeVT() (n int) { n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } } - l = len(m.TrafficState) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *WorkflowSwitchTrafficRequest) SizeVT() (n int) { +func (m *ValidatePermissionsKeyspaceRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -28192,41 +29093,49 @@ func (m *WorkflowSwitchTrafficRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Workflow) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.Cells) > 0 { - for _, s := range m.Cells { + if len(m.Shards) > 0 { + for _, s := range m.Shards { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if len(m.TabletTypes) > 0 { - l = 0 - for _, e := range m.TabletTypes { - l += protohelpers.SizeOfVarint(uint64(e)) - } - n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l + n += len(m.unknownFields) + return n +} + +func (m *ValidatePermissionsKeyspaceResponse) SizeVT() (n int) { + if m == nil { + return 0 } - if m.MaxReplicationLagAllowed != nil { - l = m.MaxReplicationLagAllowed.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *ValidateSchemaKeyspaceRequest) SizeVT() (n int) { + if m == nil { + return 0 } - if m.EnableReverseReplication { - n += 2 + var l int + _ = l + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Direction != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Direction)) + if len(m.ExcludeTables) > 0 { + for _, s := range m.ExcludeTables { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if m.Timeout != nil { - l = m.Timeout.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.IncludeViews { + n += 2 } - if m.DryRun { + if m.SkipNoPrimary { n += 2 } - if m.InitializeTargetSequences { + if m.IncludeVschema { n += 2 } if len(m.Shards) > 0 { @@ -28235,42 +29144,120 @@ func (m *WorkflowSwitchTrafficRequest) SizeVT() (n int) { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if m.Force { - n += 2 + n += len(m.unknownFields) + return n +} + +func (m *ValidateSchemaKeyspaceResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Results) > 0 { + for _, s := range m.Results { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.ResultsByShard) > 0 { + for k, v := range m.ResultsByShard { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } } n += len(m.unknownFields) return n } -func (m *WorkflowSwitchTrafficResponse) SizeVT() (n int) { +func (m *ValidateShardRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Summary) + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.StartState) + l = len(m.Shard) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.CurrentState) + if m.PingTablets { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *ValidateShardResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Results) > 0 { + for _, s := range m.Results { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ValidateVersionKeyspaceRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Keyspace) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.DryRunResults) > 0 { - for _, s := range m.DryRunResults { + n += len(m.unknownFields) + return n +} + +func (m *ValidateVersionKeyspaceResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Results) > 0 { + for _, s := range m.Results { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } + if len(m.ResultsByShard) > 0 { + for k, v := range m.ResultsByShard { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } n += len(m.unknownFields) return n } -func (m *WorkflowUpdateRequest) SizeVT() (n int) { +func (m *ValidateVersionShardRequest) SizeVT() (n int) { if m == nil { return 0 } @@ -28280,157 +29267,2785 @@ func (m *WorkflowUpdateRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.TabletRequest != nil { - l = m.TabletRequest.SizeVT() + l = len(m.Shard) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *WorkflowUpdateResponse_TabletInfo) SizeVT() (n int) { +func (m *ValidateVersionShardResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Tablet != nil { - l = m.Tablet.SizeVT() + if len(m.Results) > 0 { + for _, s := range m.Results { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ValidateVSchemaRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Keyspace) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Changed { + if len(m.Shards) > 0 { + for _, s := range m.Shards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.ExcludeTables) > 0 { + for _, s := range m.ExcludeTables { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.IncludeViews { n += 2 } n += len(m.unknownFields) return n } -func (m *WorkflowUpdateResponse) SizeVT() (n int) { +func (m *ValidateVSchemaResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Summary) + if len(m.Results) > 0 { + for _, s := range m.Results { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.ResultsByShard) > 0 { + for k, v := range m.ResultsByShard { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *VDiffCreateRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Workflow) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.Details) > 0 { - for _, e := range m.Details { - l = e.SizeVT() + l = len(m.TargetKeyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Uuid) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.SourceCells) > 0 { + for _, s := range m.SourceCells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.TargetCells) > 0 { + for _, s := range m.TargetCells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.TabletTypes) > 0 { + l = 0 + for _, e := range m.TabletTypes { + l += protohelpers.SizeOfVarint(uint64(e)) + } + n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l + } + if m.TabletSelectionPreference != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.TabletSelectionPreference)) + } + if len(m.Tables) > 0 { + for _, s := range m.Tables { + l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } + if m.Limit != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Limit)) + } + if m.FilteredReplicationWaitTime != nil { + l = m.FilteredReplicationWaitTime.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.DebugQuery { + n += 2 + } + if m.OnlyPKs { + n += 2 + } + if m.UpdateTableStats { + n += 2 + } + if m.MaxExtraRowsToCompare != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.MaxExtraRowsToCompare)) + } + if m.Wait { + n += 2 + } + if m.WaitUpdateInterval != nil { + l = m.WaitUpdateInterval.SizeVT() + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.AutoRetry { + n += 3 + } + if m.Verbose { + n += 3 + } + if m.MaxReportSampleRows != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.MaxReportSampleRows)) + } + if m.MaxDiffDuration != nil { + l = m.MaxDiffDuration.SizeVT() + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.RowDiffColumnTruncateAt != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.RowDiffColumnTruncateAt)) + } + if m.AutoStart != nil { + n += 3 + } n += len(m.unknownFields) return n } -func (m *GetMirrorRulesRequest) SizeVT() (n int) { +func (m *VDiffCreateResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + l = len(m.UUID) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *GetMirrorRulesResponse) SizeVT() (n int) { +func (m *VDiffDeleteRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.MirrorRules != nil { - l = m.MirrorRules.SizeVT() + l = len(m.Workflow) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.TargetKeyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Arg) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *WorkflowMirrorTrafficRequest) SizeVT() (n int) { +func (m *VDiffDeleteResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Keyspace) + n += len(m.unknownFields) + return n +} + +func (m *VDiffResumeRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Workflow) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + l = len(m.TargetKeyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Uuid) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.TargetShards) > 0 { + for _, s := range m.TargetShards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *VDiffResumeResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *VDiffShowRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l l = len(m.Workflow) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if len(m.TabletTypes) > 0 { - l = 0 - for _, e := range m.TabletTypes { - l += protohelpers.SizeOfVarint(uint64(e)) + l = len(m.TargetKeyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Arg) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VDiffShowResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TabletResponses) > 0 { + for k, v := range m.TabletResponses { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } - n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l } - if m.Percent != 0 { - n += 5 + n += len(m.unknownFields) + return n +} + +func (m *VDiffStopRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Workflow) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.TargetKeyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Uuid) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.TargetShards) > 0 { + for _, s := range m.TargetShards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n } -func (m *WorkflowMirrorTrafficResponse) SizeVT() (n int) { +func (m *VDiffStopResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Summary) + n += len(m.unknownFields) + return n +} + +func (m *VSchemaCreateRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VSchemaName) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.StartState) + if m.Sharded { + n += 2 + } + if m.Draft { + n += 2 + } + l = len(m.VSchemaJson) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.CurrentState) + n += len(m.unknownFields) + return n +} + +func (m *VSchemaCreateResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *VSchemaGetRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VSchemaName) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.IncludeDrafts { + n += 2 + } n += len(m.unknownFields) return n } -func (m *ExecuteVtctlCommandRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow +func (m *VSchemaGetResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.VSchema != nil { + l = m.VSchema.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaUpdateRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VSchemaName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Sharded != nil { + n += 2 + } + if m.ForeignKeyMode != nil { + l = len(*m.ForeignKeyMode) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Draft != nil { + n += 2 + } + if m.MultiTenant != nil { + n += 2 + } + if m.TenantIdColumnName != nil { + l = len(*m.TenantIdColumnName) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.TenantIdColumnType != nil { + l = len(*m.TenantIdColumnType) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaUpdateResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *VSchemaPublishRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VSchemaName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaPublishResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *VSchemaAddVindexRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VSchemaName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.VindexName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.VindexType) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Params) > 0 { + for k, v := range m.Params { + _ = k + _ = v + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + len(v) + protohelpers.SizeOfVarint(uint64(len(v))) + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaAddVindexResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *VSchemaRemoveVindexRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VSchemaName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.VindexName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaRemoveVindexResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *VSchemaAddLookupVindexRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VSchemaName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.VindexName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.LookupVindexType) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.TableName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.FromColumns) > 0 { + for _, s := range m.FromColumns { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IgnoreNulls { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaAddLookupVindexResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *VSchemaAddTablesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VSchemaName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Tables) > 0 { + for _, s := range m.Tables { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.PrimaryVindexName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Columns) > 0 { + for _, s := range m.Columns { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.AddAll { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaAddTablesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *VSchemaRemoveTablesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VSchemaName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Tables) > 0 { + for _, s := range m.Tables { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaRemoveTablesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *VSchemaSetPrimaryVindexRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VSchemaName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Tables) > 0 { + for _, s := range m.Tables { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.VindexName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Columns) > 0 { + for _, s := range m.Columns { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaSetPrimaryVindexResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *VSchemaSetSequenceRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VSchemaName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.TableName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Column) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.SequenceSource) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaSetSequenceResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *VSchemaSetReferenceRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VSchemaName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.TableName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Source) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VSchemaSetReferenceResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *WorkflowDeleteRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Workflow) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.KeepData { + n += 2 + } + if m.KeepRoutingRules { + n += 2 + } + if len(m.Shards) > 0 { + for _, s := range m.Shards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.DeleteBatchSize != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.DeleteBatchSize)) + } + if m.IgnoreSourceKeyspace { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *WorkflowDeleteResponse_TabletInfo) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Tablet != nil { + l = m.Tablet.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Deleted { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *WorkflowDeleteResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Summary) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Details) > 0 { + for _, e := range m.Details { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *WorkflowStatusRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Workflow) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Shards) > 0 { + for _, s := range m.Shards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *WorkflowStatusResponse_TableCopyState) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RowsCopied != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.RowsCopied)) + } + if m.RowsTotal != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.RowsTotal)) + } + if m.RowsPercentage != 0 { + n += 5 + } + if m.BytesCopied != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.BytesCopied)) + } + if m.BytesTotal != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.BytesTotal)) + } + if m.BytesPercentage != 0 { + n += 5 + } + n += len(m.unknownFields) + return n +} + +func (m *WorkflowStatusResponse_ShardStreamState) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Id)) + } + if m.Tablet != nil { + l = m.Tablet.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.SourceShard) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Position) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Info) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *WorkflowStatusResponse_ShardStreams) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Streams) > 0 { + for _, e := range m.Streams { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *WorkflowStatusResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TableCopyState) > 0 { + for k, v := range m.TableCopyState { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } + if len(m.ShardStreams) > 0 { + for k, v := range m.ShardStreams { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } + l = len(m.TrafficState) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *WorkflowSwitchTrafficRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Workflow) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.TabletTypes) > 0 { + l = 0 + for _, e := range m.TabletTypes { + l += protohelpers.SizeOfVarint(uint64(e)) + } + n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l + } + if m.MaxReplicationLagAllowed != nil { + l = m.MaxReplicationLagAllowed.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.EnableReverseReplication { + n += 2 + } + if m.Direction != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Direction)) + } + if m.Timeout != nil { + l = m.Timeout.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.DryRun { + n += 2 + } + if m.InitializeTargetSequences { + n += 2 + } + if len(m.Shards) > 0 { + for _, s := range m.Shards { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.Force { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *WorkflowSwitchTrafficResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Summary) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.StartState) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.CurrentState) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.DryRunResults) > 0 { + for _, s := range m.DryRunResults { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *WorkflowUpdateRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.TabletRequest != nil { + l = m.TabletRequest.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *WorkflowUpdateResponse_TabletInfo) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Tablet != nil { + l = m.Tablet.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Changed { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *WorkflowUpdateResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Summary) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Details) > 0 { + for _, e := range m.Details { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *GetMirrorRulesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *GetMirrorRulesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MirrorRules != nil { + l = m.MirrorRules.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *WorkflowMirrorTrafficRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Workflow) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.TabletTypes) > 0 { + l = 0 + for _, e := range m.TabletTypes { + l += protohelpers.SizeOfVarint(uint64(e)) + } + n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l + } + if m.Percent != 0 { + n += 5 + } + n += len(m.unknownFields) + return n +} + +func (m *WorkflowMirrorTrafficResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Summary) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.StartState) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.CurrentState) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ExecuteVtctlCommandRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExecuteVtctlCommandRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExecuteVtctlCommandRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActionTimeout", wireType) + } + m.ActionTimeout = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ActionTimeout |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ExecuteVtctlCommandResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExecuteVtctlCommandResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExecuteVtctlCommandResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Event == nil { + m.Event = &logutil.Event{} + } + if err := m.Event.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TableMaterializeSettings) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TableMaterializeSettings: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TableMaterializeSettings: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetTable", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetTable = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceExpression", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceExpression = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateDdl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreateDdl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MaterializeSettings: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MaterializeSettings: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Workflow = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceKeyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceKeyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StopAfterCopy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StopAfterCopy = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableSettings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableSettings = append(m.TableSettings, &TableMaterializeSettings{}) + if err := m.TableSettings[len(m.TableSettings)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cell = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TabletTypes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TabletTypes = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalCluster", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExternalCluster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaterializationIntent", wireType) + } + m.MaterializationIntent = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaterializationIntent |= MaterializationIntent(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceTimeZone", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceTimeZone = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetTimeZone", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetTimeZone = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceShards", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceShards = append(m.SourceShards, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnDdl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnDdl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeferSecondaryKeys", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DeferSecondaryKeys = bool(v != 0) + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TabletSelectionPreference", wireType) + } + m.TabletSelectionPreference = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TabletSelectionPreference |= tabletmanagerdata.TabletSelectionPreference(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AtomicCopy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AtomicCopy = bool(v != 0) + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkflowOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.WorkflowOptions == nil { + m.WorkflowOptions = &WorkflowOptions{} + } + if err := m.WorkflowOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReferenceTables", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReferenceTables = append(m.ReferenceTables, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Keyspace) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Keyspace: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Keyspace: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Keyspace == nil { + m.Keyspace = &topodata.Keyspace{} + } + if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SchemaMigration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SchemaMigration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uuid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Shard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Schema = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Table = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MigrationStatement", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MigrationStatement = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType) + } + m.Strategy = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Strategy |= SchemaMigration_Strategy(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Options = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AddedAt == nil { + m.AddedAt = &vttime.Time{} + } + if err := m.AddedAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RequestedAt == nil { + m.RequestedAt = &vttime.Time{} + } + if err := m.RequestedAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadyAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ReadyAt == nil { + m.ReadyAt = &vttime.Time{} + } + if err := m.ReadyAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StartedAt == nil { + m.StartedAt = &vttime.Time{} + } + if err := m.StartedAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LivenessTimestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LivenessTimestamp == nil { + m.LivenessTimestamp = &vttime.Time{} + } + if err := m.LivenessTimestamp.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CompletedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.CompletedAt == nil { + m.CompletedAt = &vttime.Time{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecuteVtctlCommandRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecuteVtctlCommandRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if err := m.CompletedAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CleanedUpAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CleanedUpAt == nil { + m.CleanedUpAt = &vttime.Time{} + } + if err := m.CleanedUpAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= SchemaMigration_Status(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LogPath", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28458,13 +32073,13 @@ func (m *ExecuteVtctlCommandRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) + m.LogPath = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActionTimeout", wireType) + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Artifacts", wireType) } - m.ActionTimeout = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -28474,65 +32089,46 @@ func (m *ExecuteVtctlCommandRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ActionTimeout |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + intStringLen + if postIndex < 0 { return protohelpers.ErrInvalidLength } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExecuteVtctlCommandResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + m.Artifacts = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Retries", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Retries = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Retries |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecuteVtctlCommandResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecuteVtctlCommandResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 20: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -28559,67 +32155,79 @@ func (m *ExecuteVtctlCommandResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Event == nil { - m.Event = &logutil.Event{} + if m.Tablet == nil { + m.Tablet = &topodata.TabletAlias{} } - if err := m.Event.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Tablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 21: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TabletFailure", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { + m.TabletFailure = bool(v != 0) + case 22: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType) + } + var v uint32 + if (iNdEx + 4) > l { return io.ErrUnexpectedEOF } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TableMaterializeSettings) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Progress = float32(math.Float32frombits(v)) + case 23: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MigrationContext", wireType) } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TableMaterializeSettings: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TableMaterializeSettings: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MigrationContext = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 24: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetTable", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DdlAction", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28647,11 +32255,11 @@ func (m *TableMaterializeSettings) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetTable = string(dAtA[iNdEx:postIndex]) + m.DdlAction = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 25: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceExpression", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28679,11 +32287,106 @@ func (m *TableMaterializeSettings) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SourceExpression = string(dAtA[iNdEx:postIndex]) + m.Message = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 26: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EtaSeconds", wireType) + } + m.EtaSeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EtaSeconds |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 27: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RowsCopied", wireType) + } + m.RowsCopied = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RowsCopied |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 28: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TableRows", wireType) + } + m.TableRows = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TableRows |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 29: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AddedUniqueKeys", wireType) + } + m.AddedUniqueKeys = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AddedUniqueKeys |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 30: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RemovedUniqueKeys", wireType) + } + m.RemovedUniqueKeys = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RemovedUniqueKeys |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 31: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateDdl", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LogFile", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28711,62 +32414,99 @@ func (m *TableMaterializeSettings) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CreateDdl = string(dAtA[iNdEx:postIndex]) + m.LogFile = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 32: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArtifactRetention", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { return protohelpers.ErrInvalidLength } - if (iNdEx + skippy) > l { + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { return io.ErrUnexpectedEOF } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + if m.ArtifactRetention == nil { + m.ArtifactRetention = &vttime.Duration{} } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if err := m.ArtifactRetention.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + iNdEx = postIndex + case 33: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PostponeCompletion", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PostponeCompletion = bool(v != 0) + case 34: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemovedUniqueKeyNames", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MaterializeSettings: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MaterializeSettings: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RemovedUniqueKeyNames = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 35: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DroppedNoDefaultColumnNames", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28794,11 +32534,11 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Workflow = string(dAtA[iNdEx:postIndex]) + m.DroppedNoDefaultColumnNames = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 36: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ExpandedColumnNames", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28826,11 +32566,11 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SourceKeyspace = string(dAtA[iNdEx:postIndex]) + m.ExpandedColumnNames = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 37: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RevertibleNotes", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28858,11 +32598,11 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) + m.RevertibleNotes = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 38: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StopAfterCopy", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AllowConcurrent", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -28879,12 +32619,12 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { break } } - m.StopAfterCopy = bool(v != 0) - case 5: + m.AllowConcurrent = bool(v != 0) + case 39: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableSettings", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RevertedUuid", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -28894,31 +32634,29 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.TableSettings = append(m.TableSettings, &TableMaterializeSettings{}) - if err := m.TableSettings[len(m.TableSettings)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.RevertedUuid = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + case 40: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsView", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -28928,29 +32666,37 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + m.IsView = bool(v != 0) + case 41: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadyToComplete", wireType) } - if postIndex > l { - return io.ErrUnexpectedEOF + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - m.Cell = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletTypes", wireType) + m.ReadyToComplete = bool(v != 0) + case 42: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VitessLivenessIndicator", wireType) } - var stringLen uint64 + m.VitessLivenessIndicator = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -28960,27 +32706,25 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.VitessLivenessIndicator |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + case 43: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field UserThrottleRatio", wireType) } - if postIndex > l { + var v uint32 + if (iNdEx + 4) > l { return io.ErrUnexpectedEOF } - m.TabletTypes = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.UserThrottleRatio = float32(math.Float32frombits(v)) + case 44: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalCluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SpecialPlan", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29008,13 +32752,13 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ExternalCluster = string(dAtA[iNdEx:postIndex]) + m.SpecialPlan = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaterializationIntent", wireType) + case 45: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastThrottledAt", wireType) } - m.MaterializationIntent = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29024,14 +32768,31 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaterializationIntent |= MaterializationIntent(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 10: + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LastThrottledAt == nil { + m.LastThrottledAt = &vttime.Time{} + } + if err := m.LastThrottledAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 46: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceTimeZone", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ComponentThrottled", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29059,13 +32820,13 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SourceTimeZone = string(dAtA[iNdEx:postIndex]) + m.ComponentThrottled = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 11: + case 47: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetTimeZone", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CancelledAt", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29075,29 +32836,33 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetTimeZone = string(dAtA[iNdEx:postIndex]) + if m.CancelledAt == nil { + m.CancelledAt = &vttime.Time{} + } + if err := m.CancelledAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceShards", wireType) + case 48: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PostponeLaunch", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29107,27 +32872,15 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SourceShards = append(m.SourceShards, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 13: + m.PostponeLaunch = bool(v != 0) + case 49: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OnDdl", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Stage", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29155,13 +32908,13 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.OnDdl = string(dAtA[iNdEx:postIndex]) + m.Stage = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 14: + case 50: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeferSecondaryKeys", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CutoverAttempts", wireType) } - var v int + m.CutoverAttempts = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29171,17 +32924,16 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.CutoverAttempts |= uint32(b&0x7F) << shift if b < 0x80 { break } } - m.DeferSecondaryKeys = bool(v != 0) - case 15: + case 51: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletSelectionPreference", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsImmediateOperation", wireType) } - m.TabletSelectionPreference = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29191,16 +32943,17 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TabletSelectionPreference |= tabletmanagerdata.TabletSelectionPreference(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AtomicCopy", wireType) + m.IsImmediateOperation = bool(v != 0) + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReviewedAt", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29210,15 +32963,31 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.AtomicCopy = bool(v != 0) - case 17: + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ReviewedAt == nil { + m.ReviewedAt = &vttime.Time{} + } + if err := m.ReviewedAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 53: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowOptions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReadyToCompleteAt", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -29245,16 +33014,16 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.WorkflowOptions == nil { - m.WorkflowOptions = &WorkflowOptions{} + if m.ReadyToCompleteAt == nil { + m.ReadyToCompleteAt = &vttime.Time{} } - if err := m.WorkflowOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ReadyToCompleteAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 18: + case 54: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReferenceTables", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RemovedForeignKeyNames", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29282,7 +33051,7 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ReferenceTables = append(m.ReferenceTables, string(dAtA[iNdEx:postIndex])) + m.RemovedForeignKeyNames = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -29306,7 +33075,7 @@ func (m *MaterializeSettings) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Keyspace) UnmarshalVT(dAtA []byte) error { +func (m *Shard) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29329,13 +33098,45 @@ func (m *Keyspace) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Keyspace: wiretype end group for non-group") + return fmt.Errorf("proto: Shard: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Keyspace: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Shard: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } @@ -29367,9 +33168,9 @@ func (m *Keyspace) UnmarshalVT(dAtA []byte) error { } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -29396,10 +33197,10 @@ func (m *Keyspace) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Keyspace == nil { - m.Keyspace = &topodata.Keyspace{} + if m.Shard == nil { + m.Shard = &topodata.Shard{} } - if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -29425,7 +33226,7 @@ func (m *Keyspace) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { +func (m *WorkflowOptions) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29448,15 +33249,15 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SchemaMigration: wiretype end group for non-group") + return fmt.Errorf("proto: WorkflowOptions: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SchemaMigration: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: WorkflowOptions: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TenantId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29484,13 +33285,13 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Uuid = string(dAtA[iNdEx:postIndex]) + m.TenantId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShardedAutoIncrementHandling", wireType) } - var stringLen uint64 + m.ShardedAutoIncrementHandling = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29500,27 +33301,14 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.ShardedAutoIncrementHandling |= ShardedAutoIncrementHandling(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29548,13 +33336,13 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) + m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29564,27 +33352,122 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Schema = string(dAtA[iNdEx:postIndex]) + if m.Config == nil { + m.Config = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Config[mapkey] = mapvalue iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GlobalKeyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29612,11 +33495,62 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Table = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: + m.GlobalKeyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Workflow_ReplicationLocation) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Workflow_ReplicationLocation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Workflow_ReplicationLocation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MigrationStatement", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29644,30 +33578,11 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.MigrationStatement = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType) - } - m.Strategy = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Strategy |= SchemaMigration_Strategy(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29695,11 +33610,62 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Options = string(dAtA[iNdEx:postIndex]) + m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 9: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Workflow_ShardStream) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Workflow_ShardStream: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Workflow_ShardStream: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AddedAt", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Streams", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -29726,16 +33692,14 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AddedAt == nil { - m.AddedAt = &vttime.Time{} - } - if err := m.AddedAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Streams = append(m.Streams, &Workflow_Stream{}) + if err := m.Streams[len(m.Streams)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 10: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestedAt", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletControls", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -29762,18 +33726,16 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RequestedAt == nil { - m.RequestedAt = &vttime.Time{} - } - if err := m.RequestedAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.TabletControls = append(m.TabletControls, &topodata.Shard_TabletControl{}) + if err := m.TabletControls[len(m.TabletControls)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyAt", wireType) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsPrimaryServing", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29783,33 +33745,68 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength + m.IsPrimaryServing = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.ReadyAt == nil { - m.ReadyAt = &vttime.Time{} + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Workflow_Stream_CopyState) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if err := m.ReadyAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 12: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Workflow_Stream_CopyState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Workflow_Stream_CopyState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29819,33 +33816,29 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.StartedAt == nil { - m.StartedAt = &vttime.Time{} - } - if err := m.StartedAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Table = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 13: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LivenessTimestamp", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LastPk", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29855,33 +33848,29 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.LivenessTimestamp == nil { - m.LivenessTimestamp = &vttime.Time{} - } - if err := m.LivenessTimestamp.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.LastPk = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompletedAt", wireType) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StreamId", wireType) } - var msglen int + m.StreamId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29891,33 +33880,67 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.StreamId |= int64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.CompletedAt == nil { - m.CompletedAt = &vttime.Time{} + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Workflow_Stream_Log) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if err := m.CompletedAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CleanedUpAt", wireType) + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - var msglen int + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Workflow_Stream_Log: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Workflow_Stream_Log: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29927,33 +33950,16 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Id |= int64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CleanedUpAt == nil { - m.CleanedUpAt = &vttime.Time{} - } - if err := m.CleanedUpAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StreamId", wireType) } - m.Status = 0 + m.StreamId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29963,14 +33969,14 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Status |= SchemaMigration_Status(b&0x7F) << shift + m.StreamId |= int64(b&0x7F) << shift if b < 0x80 { break } } - case 17: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LogPath", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29998,11 +34004,11 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.LogPath = string(dAtA[iNdEx:postIndex]) + m.Type = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 18: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Artifacts", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30030,30 +34036,11 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Artifacts = string(dAtA[iNdEx:postIndex]) + m.State = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 19: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Retries", wireType) - } - m.Retries = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Retries |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 20: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30080,18 +34067,18 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Tablet == nil { - m.Tablet = &topodata.TabletAlias{} + if m.CreatedAt == nil { + m.CreatedAt = &vttime.Time{} } - if err := m.Tablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.CreatedAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 21: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletFailure", wireType) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAt", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30101,26 +34088,31 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.TabletFailure = bool(v != 0) - case 22: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType) + if msglen < 0 { + return protohelpers.ErrInvalidLength } - var v uint32 - if (iNdEx + 4) > l { + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { return io.ErrUnexpectedEOF } - v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.Progress = float32(math.Float32frombits(v)) - case 23: + if m.UpdatedAt == nil { + m.UpdatedAt = &vttime.Time{} + } + if err := m.UpdatedAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MigrationContext", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30148,13 +34140,13 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.MigrationContext = string(dAtA[iNdEx:postIndex]) + m.Message = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 24: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DdlAction", wireType) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) } - var stringLen uint64 + m.Count = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30164,27 +34156,65 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.Count |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.DdlAction = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 25: + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Workflow_Stream_ThrottlerStatus) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Workflow_Stream_ThrottlerStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Workflow_Stream_ThrottlerStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ComponentThrottled", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30212,51 +34242,13 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Message = string(dAtA[iNdEx:postIndex]) + m.ComponentThrottled = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 26: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EtaSeconds", wireType) - } - m.EtaSeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EtaSeconds |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 27: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RowsCopied", wireType) - } - m.RowsCopied = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RowsCopied |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 28: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TableRows", wireType) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeThrottled", wireType) } - m.TableRows = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30266,35 +34258,84 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TableRows |= int64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 29: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AddedUniqueKeys", wireType) + if msglen < 0 { + return protohelpers.ErrInvalidLength } - m.AddedUniqueKeys = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AddedUniqueKeys |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - case 30: + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TimeThrottled == nil { + m.TimeThrottled = &vttime.Time{} + } + if err := m.TimeThrottled.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Workflow_Stream: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Workflow_Stream: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RemovedUniqueKeys", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } - m.RemovedUniqueKeys = 0 + m.Id = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30304,14 +34345,14 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RemovedUniqueKeys |= uint32(b&0x7F) << shift + m.Id |= int64(b&0x7F) << shift if b < 0x80 { break } } - case 31: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LogFile", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30339,11 +34380,11 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.LogFile = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 32: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ArtifactRetention", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30370,18 +34411,18 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ArtifactRetention == nil { - m.ArtifactRetention = &vttime.Duration{} + if m.Tablet == nil { + m.Tablet = &topodata.TabletAlias{} } - if err := m.ArtifactRetention.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Tablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 33: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PostponeCompletion", wireType) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BinlogSource", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30391,15 +34432,31 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.PostponeCompletion = bool(v != 0) - case 34: + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BinlogSource == nil { + m.BinlogSource = &binlogdata.BinlogSource{} + } + if err := m.BinlogSource.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RemovedUniqueKeyNames", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30427,11 +34484,11 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RemovedUniqueKeyNames = string(dAtA[iNdEx:postIndex]) + m.Position = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 35: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DroppedNoDefaultColumnNames", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StopPosition", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30459,11 +34516,11 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.DroppedNoDefaultColumnNames = string(dAtA[iNdEx:postIndex]) + m.StopPosition = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 36: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpandedColumnNames", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30491,11 +34548,11 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ExpandedColumnNames = string(dAtA[iNdEx:postIndex]) + m.State = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 37: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RevertibleNotes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DbName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30523,13 +34580,13 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RevertibleNotes = string(dAtA[iNdEx:postIndex]) + m.DbName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 38: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowConcurrent", wireType) + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransactionTimestamp", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30539,17 +34596,33 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.AllowConcurrent = bool(v != 0) - case 39: + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TransactionTimestamp == nil { + m.TransactionTimestamp = &vttime.Time{} + } + if err := m.TransactionTimestamp.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RevertedUuid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TimeUpdated", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30559,29 +34632,33 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.RevertedUuid = string(dAtA[iNdEx:postIndex]) + if m.TimeUpdated == nil { + m.TimeUpdated = &vttime.Time{} + } + if err := m.TimeUpdated.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 40: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsView", wireType) + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30591,17 +34668,29 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsView = bool(v != 0) - case 41: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyToComplete", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - var v int + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Message = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CopyStates", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30611,17 +34700,31 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.ReadyToComplete = bool(v != 0) - case 42: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VitessLivenessIndicator", wireType) + if msglen < 0 { + return protohelpers.ErrInvalidLength } - m.VitessLivenessIndicator = 0 + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CopyStates = append(m.CopyStates, &Workflow_Stream_CopyState{}) + if err := m.CopyStates[len(m.CopyStates)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30631,25 +34734,29 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.VitessLivenessIndicator |= int64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 43: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field UserThrottleRatio", wireType) + if msglen < 0 { + return protohelpers.ErrInvalidLength } - var v uint32 - if (iNdEx + 4) > l { + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { return io.ErrUnexpectedEOF } - v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.UserThrottleRatio = float32(math.Float32frombits(v)) - case 44: + m.Logs = append(m.Logs, &Workflow_Stream_Log{}) + if err := m.Logs[len(m.Logs)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SpecialPlan", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LogFetchError", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30677,13 +34784,13 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SpecialPlan = string(dAtA[iNdEx:postIndex]) + m.LogFetchError = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 45: + case 15: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastThrottledAt", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30693,33 +34800,29 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.LastThrottledAt == nil { - m.LastThrottledAt = &vttime.Time{} - } - if err := m.LastThrottledAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 46: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ComponentThrottled", wireType) + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RowsCopied", wireType) } - var stringLen uint64 + m.RowsCopied = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30729,27 +34832,14 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.RowsCopied |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ComponentThrottled = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 47: + case 17: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelledAt", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ThrottlerStatus", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30776,18 +34866,87 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CancelledAt == nil { - m.CancelledAt = &vttime.Time{} + if m.ThrottlerStatus == nil { + m.ThrottlerStatus = &Workflow_Stream_ThrottlerStatus{} } - if err := m.CancelledAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ThrottlerStatus.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 48: + case 18: + if wireType == 0 { + var v topodata.TabletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= topodata.TabletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TabletTypes = append(m.TabletTypes, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + if elementCount != 0 && len(m.TabletTypes) == 0 { + m.TabletTypes = make([]topodata.TabletType, 0, elementCount) + } + for iNdEx < postIndex { + var v topodata.TabletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= topodata.TabletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TabletTypes = append(m.TabletTypes, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field TabletTypes", wireType) + } + case 19: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PostponeLaunch", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletSelectionPreference", wireType) } - var v int + m.TabletSelectionPreference = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30797,15 +34956,97 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.TabletSelectionPreference |= tabletmanagerdata.TabletSelectionPreference(b&0x7F) << shift if b < 0x80 { break } } - m.PostponeLaunch = bool(v != 0) - case 49: + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Workflow) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Workflow: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Workflow: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stage", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30833,13 +35074,13 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Stage = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 50: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CutoverAttempts", wireType) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) } - m.CutoverAttempts = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30849,34 +35090,31 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CutoverAttempts |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 51: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsImmediateOperation", wireType) + if msglen < 0 { + return protohelpers.ErrInvalidLength } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - m.IsImmediateOperation = bool(v != 0) - case 52: + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Source == nil { + m.Source = &Workflow_ReplicationLocation{} + } + if err := m.Source.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReviewedAt", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30903,16 +35141,35 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ReviewedAt == nil { - m.ReviewedAt = &vttime.Time{} + if m.Target == nil { + m.Target = &Workflow_ReplicationLocation{} } - if err := m.ReviewedAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 53: + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxVReplicationLag", wireType) + } + m.MaxVReplicationLag = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxVReplicationLag |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyToCompleteAt", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ShardStreams", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30939,16 +35196,109 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ReadyToCompleteAt == nil { - m.ReadyToCompleteAt = &vttime.Time{} + if m.ShardStreams == nil { + m.ShardStreams = make(map[string]*Workflow_ShardStream) } - if err := m.ReadyToCompleteAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var mapkey string + var mapvalue *Workflow_ShardStream + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &Workflow_ShardStream{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } + m.ShardStreams[mapkey] = mapvalue iNdEx = postIndex - case 54: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RemovedForeignKeyNames", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30976,62 +35326,11 @@ func (m *SchemaMigration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RemovedForeignKeyNames = string(dAtA[iNdEx:postIndex]) + m.WorkflowType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Shard) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Shard: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Shard: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WorkflowSubType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31059,13 +35358,13 @@ func (m *Shard) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.WorkflowSubType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxVReplicationTransactionLag", wireType) } - var stringLen uint64 + m.MaxVReplicationTransactionLag = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -31075,27 +35374,34 @@ func (m *Shard) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.MaxVReplicationTransactionLag |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeferSecondaryKeys", wireType) } - if postIndex > l { - return io.ErrUnexpectedEOF + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: + m.DeferSecondaryKeys = bool(v != 0) + case 10: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31122,10 +35428,10 @@ func (m *Shard) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Shard == nil { - m.Shard = &topodata.Shard{} + if m.Options == nil { + m.Options = &WorkflowOptions{} } - if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -31151,7 +35457,7 @@ func (m *Shard) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *WorkflowOptions) UnmarshalVT(dAtA []byte) error { +func (m *AddCellInfoRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31174,15 +35480,15 @@ func (m *WorkflowOptions) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WorkflowOptions: wiretype end group for non-group") + return fmt.Errorf("proto: AddCellInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowOptions: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AddCellInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TenantId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31210,32 +35516,13 @@ func (m *WorkflowOptions) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TenantId = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardedAutoIncrementHandling", wireType) - } - m.ShardedAutoIncrementHandling = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardedAutoIncrementHandling |= ShardedAutoIncrementHandling(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CellInfo", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -31245,154 +35532,165 @@ func (m *WorkflowOptions) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) + if m.CellInfo == nil { + m.CellInfo = &topodata.CellInfo{} } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.CellInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - if msglen < 0 { - return protohelpers.ErrInvalidLength + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.Config == nil { - m.Config = make(map[string]string) + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AddCellInfoResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AddCellInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddCellInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AddCellsAliasRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AddCellsAliasRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddCellsAliasRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break } } - m.Config[mapkey] = mapvalue + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GlobalKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31420,7 +35718,7 @@ func (m *WorkflowOptions) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.GlobalKeyspace = string(dAtA[iNdEx:postIndex]) + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -31444,7 +35742,7 @@ func (m *WorkflowOptions) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Workflow_ReplicationLocation) UnmarshalVT(dAtA []byte) error { +func (m *AddCellsAliasResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31467,17 +35765,68 @@ func (m *Workflow_ReplicationLocation) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Workflow_ReplicationLocation: wiretype end group for non-group") + return fmt.Errorf("proto: AddCellsAliasResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Workflow_ReplicationLocation: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AddCellsAliasResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplyKeyspaceRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplyKeyspaceRoutingRulesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplyKeyspaceRoutingRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceRoutingRules", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -31487,27 +35836,51 @@ func (m *Workflow_ReplicationLocation) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + if m.KeyspaceRoutingRules == nil { + m.KeyspaceRoutingRules = &vschema.KeyspaceRoutingRules{} + } + if err := m.KeyspaceRoutingRules.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SkipRebuild", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SkipRebuild = bool(v != 0) + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RebuildCells", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31535,7 +35908,7 @@ func (m *Workflow_ReplicationLocation) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) + m.RebuildCells = append(m.RebuildCells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -31559,7 +35932,7 @@ func (m *Workflow_ReplicationLocation) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Workflow_ShardStream) UnmarshalVT(dAtA []byte) error { +func (m *ApplyKeyspaceRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31582,15 +35955,15 @@ func (m *Workflow_ShardStream) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Workflow_ShardStream: wiretype end group for non-group") + return fmt.Errorf("proto: ApplyKeyspaceRoutingRulesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Workflow_ShardStream: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ApplyKeyspaceRoutingRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Streams", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceRoutingRules", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31617,14 +35990,67 @@ func (m *Workflow_ShardStream) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Streams = append(m.Streams, &Workflow_Stream{}) - if err := m.Streams[len(m.Streams)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.KeyspaceRoutingRules == nil { + m.KeyspaceRoutingRules = &vschema.KeyspaceRoutingRules{} + } + if err := m.KeyspaceRoutingRules.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplyRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplyRoutingRulesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplyRoutingRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletControls", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RoutingRules", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31651,14 +36077,16 @@ func (m *Workflow_ShardStream) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TabletControls = append(m.TabletControls, &topodata.Shard_TabletControl{}) - if err := m.TabletControls[len(m.TabletControls)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.RoutingRules == nil { + m.RoutingRules = &vschema.RoutingRules{} + } + if err := m.RoutingRules.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsPrimaryServing", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SkipRebuild", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -31675,7 +36103,39 @@ func (m *Workflow_ShardStream) UnmarshalVT(dAtA []byte) error { break } } - m.IsPrimaryServing = bool(v != 0) + m.SkipRebuild = bool(v != 0) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RebuildCells", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RebuildCells = append(m.RebuildCells, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -31698,7 +36158,7 @@ func (m *Workflow_ShardStream) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Workflow_Stream_CopyState) UnmarshalVT(dAtA []byte) error { +func (m *ApplyRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31721,17 +36181,68 @@ func (m *Workflow_Stream_CopyState) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Workflow_Stream_CopyState: wiretype end group for non-group") + return fmt.Errorf("proto: ApplyRoutingRulesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Workflow_Stream_CopyState: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ApplyRoutingRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplyShardRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplyShardRoutingRulesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplyShardRoutingRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ShardRoutingRules", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -31741,27 +36252,51 @@ func (m *Workflow_Stream_CopyState) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Table = string(dAtA[iNdEx:postIndex]) + if m.ShardRoutingRules == nil { + m.ShardRoutingRules = &vschema.ShardRoutingRules{} + } + if err := m.ShardRoutingRules.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SkipRebuild", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SkipRebuild = bool(v != 0) + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastPk", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RebuildCells", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31789,27 +36324,59 @@ func (m *Workflow_Stream_CopyState) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.LastPk = string(dAtA[iNdEx:postIndex]) + m.RebuildCells = append(m.RebuildCells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StreamId", wireType) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - m.StreamId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StreamId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplyShardRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplyShardRoutingRulesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplyShardRoutingRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -31832,7 +36399,7 @@ func (m *Workflow_Stream_CopyState) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Workflow_Stream_Log) UnmarshalVT(dAtA []byte) error { +func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31855,17 +36422,17 @@ func (m *Workflow_Stream_Log) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Workflow_Stream_Log: wiretype end group for non-group") + return fmt.Errorf("proto: ApplySchemaRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Workflow_Stream_Log: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ApplySchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - m.Id = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -31875,16 +36442,29 @@ func (m *Workflow_Stream_Log) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StreamId", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - m.StreamId = 0 + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType) + } + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -31894,14 +36474,27 @@ func (m *Workflow_Stream_Log) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StreamId |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 3: + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sql = append(m.Sql, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DdlStrategy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31929,11 +36522,11 @@ func (m *Workflow_Stream_Log) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Type = string(dAtA[iNdEx:postIndex]) + m.DdlStrategy = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UuidList", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31961,13 +36554,13 @@ func (m *Workflow_Stream_Log) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.State = string(dAtA[iNdEx:postIndex]) + m.UuidList = append(m.UuidList, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 5: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MigrationContext", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -31977,31 +36570,27 @@ func (m *Workflow_Stream_Log) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.CreatedAt == nil { - m.CreatedAt = &vttime.Time{} - } - if err := m.CreatedAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.MigrationContext = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 6: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAt", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WaitReplicasTimeout", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -32028,18 +36617,18 @@ func (m *Workflow_Stream_Log) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.UpdatedAt == nil { - m.UpdatedAt = &vttime.Time{} + if m.WaitReplicasTimeout == nil { + m.WaitReplicasTimeout = &vttime.Duration{} } - if err := m.UpdatedAt.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.WaitReplicasTimeout.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 7: + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -32049,29 +36638,33 @@ func (m *Workflow_Stream_Log) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Message = string(dAtA[iNdEx:postIndex]) + if m.CallerId == nil { + m.CallerId = &vtrpc.CallerID{} + } + if err := m.CallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 8: + case 10: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BatchSize", wireType) } - m.Count = 0 + m.BatchSize = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -32081,7 +36674,7 @@ func (m *Workflow_Stream_Log) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= int64(b&0x7F) << shift + m.BatchSize |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -32108,7 +36701,7 @@ func (m *Workflow_Stream_Log) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Workflow_Stream_ThrottlerStatus) UnmarshalVT(dAtA []byte) error { +func (m *ApplySchemaResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -32131,15 +36724,15 @@ func (m *Workflow_Stream_ThrottlerStatus) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Workflow_Stream_ThrottlerStatus: wiretype end group for non-group") + return fmt.Errorf("proto: ApplySchemaResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Workflow_Stream_ThrottlerStatus: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ApplySchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ComponentThrottled", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UuidList", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -32167,11 +36760,11 @@ func (m *Workflow_Stream_ThrottlerStatus) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ComponentThrottled = string(dAtA[iNdEx:postIndex]) + m.UuidList = append(m.UuidList, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeThrottled", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RowsAffectedByShard", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -32198,12 +36791,89 @@ func (m *Workflow_Stream_ThrottlerStatus) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TimeThrottled == nil { - m.TimeThrottled = &vttime.Time{} + if m.RowsAffectedByShard == nil { + m.RowsAffectedByShard = make(map[string]uint64) } - if err := m.TimeThrottled.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var mapkey string + var mapvalue uint64 + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } + m.RowsAffectedByShard[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -32227,7 +36897,7 @@ func (m *Workflow_Stream_ThrottlerStatus) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { +func (m *ApplyVSchemaRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -32250,17 +36920,17 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Workflow_Stream: wiretype end group for non-group") + return fmt.Errorf("proto: ApplyVSchemaRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Workflow_Stream: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ApplyVSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - m.Id = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -32270,16 +36940,29 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SkipRebuild", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -32289,29 +36972,37 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + m.SkipRebuild = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) } - if postIndex > l { - return io.ErrUnexpectedEOF + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: + m.DryRun = bool(v != 0) + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -32321,31 +37012,27 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Tablet == nil { - m.Tablet = &topodata.TabletAlias{} - } - if err := m.Tablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 4: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BinlogSource", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchema", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -32372,16 +37059,16 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.BinlogSource == nil { - m.BinlogSource = &binlogdata.BinlogSource{} + if m.VSchema == nil { + m.VSchema = &vschema.Keyspace{} } - if err := m.BinlogSource.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.VSchema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -32409,13 +37096,13 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Position = string(dAtA[iNdEx:postIndex]) + m.Sql = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StopPosition", wireType) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Strict", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -32425,27 +37112,66 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + m.Strict = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.StopPosition = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplyVSchemaResponse_ParamList) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplyVSchemaResponse_ParamList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplyVSchemaResponse_ParamList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -32473,13 +37199,64 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.State = string(dAtA[iNdEx:postIndex]) + m.Params = append(m.Params, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 8: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplyVSchemaResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplyVSchemaResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplyVSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DbName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchema", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -32489,27 +37266,31 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.DbName = string(dAtA[iNdEx:postIndex]) + if m.VSchema == nil { + m.VSchema = &vschema.Keyspace{} + } + if err := m.VSchema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 9: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TransactionTimestamp", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UnknownVindexParams", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -32526,26 +37307,170 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UnknownVindexParams == nil { + m.UnknownVindexParams = make(map[string]*ApplyVSchemaResponse_ParamList) + } + var mapkey string + var mapvalue *ApplyVSchemaResponse_ParamList + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &ApplyVSchemaResponse_ParamList{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.UnknownVindexParams[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.TransactionTimestamp == nil { - m.TransactionTimestamp = &vttime.Time{} + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if err := m.TransactionTimestamp.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 10: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeUpdated", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -32572,18 +37497,18 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TimeUpdated == nil { - m.TimeUpdated = &vttime.Time{} + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} } - if err := m.TimeUpdated.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowPrimary", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -32593,29 +37518,17 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CopyStates", wireType) + m.AllowPrimary = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Concurrency", wireType) } - var msglen int + m.Concurrency = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -32625,31 +37538,16 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Concurrency |= int32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CopyStates = append(m.CopyStates, &Workflow_Stream_CopyState{}) - if err := m.CopyStates[len(m.CopyStates)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IncrementalFromPos", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -32659,31 +37557,29 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Logs = append(m.Logs, &Workflow_Stream_Log{}) - if err := m.Logs[len(m.Logs)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.IncrementalFromPos = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LogFetchError", wireType) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpgradeSafe", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -32693,27 +37589,15 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LogFetchError = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 15: + m.UpgradeSafe = bool(v != 0) + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BackupEngine", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -32741,30 +37625,12 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + s := string(dAtA[iNdEx:postIndex]) + m.BackupEngine = &s iNdEx = postIndex - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RowsCopied", wireType) - } - m.RowsCopied = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RowsCopied |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 17: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ThrottlerStatus", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MysqlShutdownTimeout", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -32791,133 +37657,13 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ThrottlerStatus == nil { - m.ThrottlerStatus = &Workflow_Stream_ThrottlerStatus{} + if m.MysqlShutdownTimeout == nil { + m.MysqlShutdownTimeout = &vttime.Duration{} } - if err := m.ThrottlerStatus.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.MysqlShutdownTimeout.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 18: - if wireType == 0 { - var v topodata.TabletType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= topodata.TabletType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TabletTypes = append(m.TabletTypes, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.TabletTypes) == 0 { - m.TabletTypes = make([]topodata.TabletType, 0, elementCount) - } - for iNdEx < postIndex { - var v topodata.TabletType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= topodata.TabletType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TabletTypes = append(m.TabletTypes, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field TabletTypes", wireType) - } - case 19: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletSelectionPreference", wireType) - } - m.TabletSelectionPreference = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TabletSelectionPreference |= tabletmanagerdata.TabletSelectionPreference(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -32940,7 +37686,7 @@ func (m *Workflow_Stream) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Workflow) UnmarshalVT(dAtA []byte) error { +func (m *BackupResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -32963,17 +37709,17 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Workflow: wiretype end group for non-group") + return fmt.Errorf("proto: BackupResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Workflow: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BackupResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -32983,29 +37729,33 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} + } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -33015,33 +37765,29 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Source == nil { - m.Source = &Workflow_ReplicationLocation{} - } - if err := m.Source.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -33051,50 +37797,27 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Target == nil { - m.Target = &Workflow_ReplicationLocation{} - } - if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxVReplicationLag", wireType) - } - m.MaxVReplicationLag = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxVReplicationLag |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardStreams", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -33104,126 +37827,84 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ShardStreams == nil { - m.ShardStreams = make(map[string]*Workflow_ShardStream) - } - var mapkey string - var mapvalue *Workflow_ShardStream - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Workflow_ShardStream{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Event == nil { + m.Event = &logutil.Event{} + } + if err := m.Event.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.ShardStreams[mapkey] = mapvalue iNdEx = postIndex - case 6: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupShardRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupShardRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -33251,11 +37932,11 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.WorkflowType = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 7: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowSubType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -33283,13 +37964,13 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.WorkflowSubType = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxVReplicationTransactionLag", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AllowPrimary", wireType) } - m.MaxVReplicationTransactionLag = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -33299,14 +37980,34 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxVReplicationTransactionLag |= int64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 9: + m.AllowPrimary = bool(v != 0) + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeferSecondaryKeys", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Concurrency", wireType) + } + m.Concurrency = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Concurrency |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpgradeSafe", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -33323,10 +38024,42 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { break } } - m.DeferSecondaryKeys = bool(v != 0) - case 10: + m.UpgradeSafe = bool(v != 0) + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IncrementalFromPos", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IncrementalFromPos = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MysqlShutdownTimeout", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -33353,10 +38086,10 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Options == nil { - m.Options = &WorkflowOptions{} + if m.MysqlShutdownTimeout == nil { + m.MysqlShutdownTimeout = &vttime.Duration{} } - if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.MysqlShutdownTimeout.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -33382,7 +38115,7 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *AddCellInfoRequest) UnmarshalVT(dAtA []byte) error { +func (m *CancelSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -33405,15 +38138,15 @@ func (m *AddCellInfoRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AddCellInfoRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CancelSchemaMigrationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AddCellInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CancelSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -33441,11 +38174,43 @@ func (m *AddCellInfoRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CellInfo", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uuid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -33472,10 +38237,10 @@ func (m *AddCellInfoRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CellInfo == nil { - m.CellInfo = &topodata.CellInfo{} + if m.CallerId == nil { + m.CallerId = &vtrpc.CallerID{} } - if err := m.CellInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.CallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -33501,7 +38266,7 @@ func (m *AddCellInfoRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *AddCellInfoResponse) UnmarshalVT(dAtA []byte) error { +func (m *CancelSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -33524,12 +38289,125 @@ func (m *AddCellInfoResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AddCellInfoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: CancelSchemaMigrationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AddCellInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CancelSchemaMigrationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RowsAffectedByShard", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RowsAffectedByShard == nil { + m.RowsAffectedByShard = make(map[string]uint64) + } + var mapkey string + var mapvalue uint64 + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.RowsAffectedByShard[mapkey] = mapvalue + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -33552,7 +38430,7 @@ func (m *AddCellInfoResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *AddCellsAliasRequest) UnmarshalVT(dAtA []byte) error { +func (m *ChangeTabletTagsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -33575,17 +38453,17 @@ func (m *AddCellsAliasRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AddCellsAliasRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ChangeTabletTagsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AddCellsAliasRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ChangeTabletTagsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -33595,29 +38473,33 @@ func (m *AddCellsAliasRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} + } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -33627,75 +38509,139 @@ func (m *AddCellsAliasRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + if m.Tags == nil { + m.Tags = make(map[string]string) } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AddCellsAliasResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + m.Tags[mapkey] = mapvalue + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Replace", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AddCellsAliasResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddCellsAliasResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + m.Replace = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -33718,7 +38664,7 @@ func (m *AddCellsAliasResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ApplyKeyspaceRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { +func (m *ChangeTabletTagsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -33741,15 +38687,15 @@ func (m *ApplyKeyspaceRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ApplyKeyspaceRoutingRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ChangeTabletTagsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ApplyKeyspaceRoutingRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ChangeTabletTagsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceRoutingRules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BeforeTags", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -33776,119 +38722,107 @@ func (m *ApplyKeyspaceRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.KeyspaceRoutingRules == nil { - m.KeyspaceRoutingRules = &vschema.KeyspaceRoutingRules{} - } - if err := m.KeyspaceRoutingRules.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipRebuild", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SkipRebuild = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RebuildCells", wireType) + if m.BeforeTags == nil { + m.BeforeTags = make(map[string]string) } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RebuildCells = append(m.RebuildCells, string(dAtA[iNdEx:postIndex])) + m.BeforeTags[mapkey] = mapvalue iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ApplyKeyspaceRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ApplyKeyspaceRoutingRulesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ApplyKeyspaceRoutingRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceRoutingRules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AfterTags", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -33915,12 +38849,103 @@ func (m *ApplyKeyspaceRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.KeyspaceRoutingRules == nil { - m.KeyspaceRoutingRules = &vschema.KeyspaceRoutingRules{} + if m.AfterTags == nil { + m.AfterTags = make(map[string]string) } - if err := m.KeyspaceRoutingRules.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } + m.AfterTags[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -33944,7 +38969,7 @@ func (m *ApplyKeyspaceRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ApplyRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { +func (m *ChangeTabletTypeRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -33967,15 +38992,15 @@ func (m *ApplyRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ApplyRoutingRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ChangeTabletTypeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ApplyRoutingRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ChangeTabletTypeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoutingRules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34002,18 +39027,18 @@ func (m *ApplyRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RoutingRules == nil { - m.RoutingRules = &vschema.RoutingRules{} + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} } - if err := m.RoutingRules.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipRebuild", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DbType", wireType) } - var v int + m.DbType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -34023,17 +39048,16 @@ func (m *ApplyRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.DbType |= topodata.TabletType(b&0x7F) << shift if b < 0x80 { break } } - m.SkipRebuild = bool(v != 0) case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RebuildCells", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -34043,75 +39067,12 @@ func (m *ApplyRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RebuildCells = append(m.RebuildCells, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ApplyRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ApplyRoutingRulesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ApplyRoutingRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + m.DryRun = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -34134,7 +39095,7 @@ func (m *ApplyRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ApplyShardRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { +func (m *ChangeTabletTypeResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -34157,15 +39118,15 @@ func (m *ApplyShardRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ApplyShardRoutingRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ChangeTabletTypeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ApplyShardRoutingRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ChangeTabletTypeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardRoutingRules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BeforeTablet", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34192,38 +39153,18 @@ func (m *ApplyShardRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ShardRoutingRules == nil { - m.ShardRoutingRules = &vschema.ShardRoutingRules{} + if m.BeforeTablet == nil { + m.BeforeTablet = &topodata.Tablet{} } - if err := m.ShardRoutingRules.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.BeforeTablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipRebuild", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SkipRebuild = bool(v != 0) - case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RebuildCells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AfterTablet", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -34233,75 +39174,48 @@ func (m *ApplyShardRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.RebuildCells = append(m.RebuildCells, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ApplyShardRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + if m.AfterTablet == nil { + m.AfterTablet = &topodata.Tablet{} } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if err := m.AfterTablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WasDryRun", wireType) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ApplyShardRoutingRulesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ApplyShardRoutingRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.WasDryRun = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -34324,7 +39238,7 @@ func (m *ApplyShardRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { +func (m *CheckThrottlerRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -34347,17 +39261,17 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ApplySchemaRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CheckThrottlerRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ApplySchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CheckThrottlerRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -34367,27 +39281,31 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} + } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -34415,11 +39333,11 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Sql = append(m.Sql, string(dAtA[iNdEx:postIndex])) + m.AppName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DdlStrategy", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -34447,13 +39365,13 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.DdlStrategy = string(dAtA[iNdEx:postIndex]) + m.Scope = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UuidList", wireType) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SkipRequestHeartbeats", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -34463,29 +39381,17 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UuidList = append(m.UuidList, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MigrationContext", wireType) + m.SkipRequestHeartbeats = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OkIfNotExists", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -34495,27 +39401,66 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + m.OkIfNotExists = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.MigrationContext = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CheckThrottlerResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CheckThrottlerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CheckThrottlerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WaitReplicasTimeout", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34542,16 +39487,16 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.WaitReplicasTimeout == nil { - m.WaitReplicasTimeout = &vttime.Duration{} + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} } - if err := m.WaitReplicasTimeout.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 9: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Check", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34578,32 +39523,13 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CallerId == nil { - m.CallerId = &vtrpc.CallerID{} + if m.Check == nil { + m.Check = &tabletmanagerdata.CheckThrottlerResponse{} } - if err := m.CallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Check.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BatchSize", wireType) - } - m.BatchSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BatchSize |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -34626,7 +39552,7 @@ func (m *ApplySchemaRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ApplySchemaResponse) UnmarshalVT(dAtA []byte) error { +func (m *CleanupSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -34649,15 +39575,15 @@ func (m *ApplySchemaResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ApplySchemaResponse: wiretype end group for non-group") + return fmt.Errorf("proto: CleanupSchemaMigrationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ApplySchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CleanupSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UuidList", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -34685,9 +39611,128 @@ func (m *ApplySchemaResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.UuidList = append(m.UuidList, string(dAtA[iNdEx:postIndex])) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uuid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CallerId == nil { + m.CallerId = &vtrpc.CallerID{} + } + if err := m.CallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CleanupSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CleanupSchemaMigrationResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CleanupSchemaMigrationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RowsAffectedByShard", wireType) } @@ -34822,7 +39867,7 @@ func (m *ApplySchemaResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ApplyVSchemaRequest) UnmarshalVT(dAtA []byte) error { +func (m *CompleteSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -34845,10 +39890,10 @@ func (m *ApplyVSchemaRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ApplyVSchemaRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CompleteSchemaMigrationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ApplyVSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CompleteSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -34884,48 +39929,8 @@ func (m *ApplyVSchemaRequest) UnmarshalVT(dAtA []byte) error { m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipRebuild", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SkipRebuild = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DryRun = bool(v != 0) - case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -34953,11 +39958,11 @@ func (m *ApplyVSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + m.Uuid = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VSchema", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34984,147 +39989,12 @@ func (m *ApplyVSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.VSchema == nil { - m.VSchema = &vschema.Keyspace{} - } - if err := m.VSchema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sql = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Strict", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Strict = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ApplyVSchemaResponse_ParamList) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ApplyVSchemaResponse_ParamList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ApplyVSchemaResponse_ParamList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if m.CallerId == nil { + m.CallerId = &vtrpc.CallerID{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.CallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Params = append(m.Params, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -35148,7 +40018,7 @@ func (m *ApplyVSchemaResponse_ParamList) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ApplyVSchemaResponse) UnmarshalVT(dAtA []byte) error { +func (m *CompleteSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -35171,51 +40041,15 @@ func (m *ApplyVSchemaResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ApplyVSchemaResponse: wiretype end group for non-group") + return fmt.Errorf("proto: CompleteSchemaMigrationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ApplyVSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CompleteSchemaMigrationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VSchema", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VSchema == nil { - m.VSchema = &vschema.Keyspace{} - } - if err := m.VSchema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UnknownVindexParams", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RowsAffectedByShard", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -35242,11 +40076,11 @@ func (m *ApplyVSchemaResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.UnknownVindexParams == nil { - m.UnknownVindexParams = make(map[string]*ApplyVSchemaResponse_ParamList) + if m.RowsAffectedByShard == nil { + m.RowsAffectedByShard = make(map[string]uint64) } var mapkey string - var mapvalue *ApplyVSchemaResponse_ParamList + var mapvalue uint64 for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -35295,7 +40129,6 @@ func (m *ApplyVSchemaResponse) UnmarshalVT(dAtA []byte) error { mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey } else if fieldNum == 2 { - var mapmsglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -35305,26 +40138,11 @@ func (m *ApplyVSchemaResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapmsglen |= int(b&0x7F) << shift + mapvalue |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ApplyVSchemaResponse_ParamList{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex } else { iNdEx = entryPreIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -35340,7 +40158,7 @@ func (m *ApplyVSchemaResponse) UnmarshalVT(dAtA []byte) error { iNdEx += skippy } } - m.UnknownVindexParams[mapkey] = mapvalue + m.RowsAffectedByShard[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -35364,7 +40182,7 @@ func (m *ApplyVSchemaResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *BackupRequest) UnmarshalVT(dAtA []byte) error { +func (m *CopySchemaShardRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -35387,15 +40205,15 @@ func (m *BackupRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BackupRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CopySchemaShardRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BackupRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CopySchemaShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SourceTabletAlias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -35422,18 +40240,18 @@ func (m *BackupRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} + if m.SourceTabletAlias == nil { + m.SourceTabletAlias = &topodata.TabletAlias{} } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SourceTabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowPrimary", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tables", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -35443,34 +40261,27 @@ func (m *BackupRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.AllowPrimary = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Concurrency", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - m.Concurrency = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Concurrency |= int32(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - case 4: + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tables = append(m.Tables, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IncrementalFromPos", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTables", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -35498,11 +40309,11 @@ func (m *BackupRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.IncrementalFromPos = string(dAtA[iNdEx:postIndex]) + m.ExcludeTables = append(m.ExcludeTables, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 5: + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpgradeSafe", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IncludeViews", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -35519,45 +40330,12 @@ func (m *BackupRequest) UnmarshalVT(dAtA []byte) error { break } } - m.UpgradeSafe = bool(v != 0) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BackupEngine", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.BackupEngine = &s - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MysqlShutdownTimeout", wireType) + m.IncludeViews = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SkipVerify", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -35567,82 +40345,15 @@ func (m *BackupRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MysqlShutdownTimeout == nil { - m.MysqlShutdownTimeout = &vttime.Duration{} - } - if err := m.MysqlShutdownTimeout.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BackupResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BackupResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BackupResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.SkipVerify = bool(v != 0) + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WaitReplicasTimeout", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -35669,16 +40380,16 @@ func (m *BackupResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} + if m.WaitReplicasTimeout == nil { + m.WaitReplicasTimeout = &vttime.Duration{} } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.WaitReplicasTimeout.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DestinationKeyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -35706,11 +40417,11 @@ func (m *BackupResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.DestinationKeyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DestinationShard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -35738,44 +40449,59 @@ func (m *BackupResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) + m.DestinationShard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.Event == nil { - m.Event = &logutil.Event{} + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CopySchemaShardResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if err := m.Event.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CopySchemaShardResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CopySchemaShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -35798,7 +40524,7 @@ func (m *BackupResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *BackupShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -35821,15 +40547,15 @@ func (m *BackupShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BackupShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CreateKeyspaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BackupShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -35857,43 +40583,11 @@ func (m *BackupShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowPrimary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -35910,12 +40604,12 @@ func (m *BackupShardRequest) UnmarshalVT(dAtA []byte) error { break } } - m.AllowPrimary = bool(v != 0) - case 4: + m.Force = bool(v != 0) + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Concurrency", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AllowEmptyVSchema", wireType) } - m.Concurrency = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -35925,16 +40619,17 @@ func (m *BackupShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Concurrency |= int32(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 5: + m.AllowEmptyVSchema = bool(v != 0) + case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpgradeSafe", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) } - var v int + m.Type = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -35944,15 +40639,14 @@ func (m *BackupShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.Type |= topodata.KeyspaceType(b&0x7F) << shift if b < 0x80 { break } } - m.UpgradeSafe = bool(v != 0) - case 6: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IncrementalFromPos", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BaseKeyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -35971,109 +40665,22 @@ func (m *BackupShardRequest) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IncrementalFromPos = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MysqlShutdownTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MysqlShutdownTimeout == nil { - m.MysqlShutdownTimeout = &vttime.Duration{} - } - if err := m.MysqlShutdownTimeout.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CancelSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CancelSchemaMigrationRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancelSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BaseKeyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTime", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -36083,27 +40690,31 @@ func (m *CancelSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + if m.SnapshotTime == nil { + m.SnapshotTime = &vttime.Time{} + } + if err := m.SnapshotTime.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: + case 10: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DurabilityPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -36131,13 +40742,13 @@ func (m *CancelSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Uuid = string(dAtA[iNdEx:postIndex]) + m.DurabilityPolicy = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 11: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SidecarDbName", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -36147,27 +40758,23 @@ func (m *CancelSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.CallerId == nil { - m.CallerId = &vtrpc.CallerID{} - } - if err := m.CallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.SidecarDbName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -36191,7 +40798,7 @@ func (m *CancelSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CancelSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { +func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -36214,15 +40821,15 @@ func (m *CancelSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CancelSchemaMigrationResponse: wiretype end group for non-group") + return fmt.Errorf("proto: CreateKeyspaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CancelSchemaMigrationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RowsAffectedByShard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -36249,89 +40856,12 @@ func (m *CancelSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RowsAffectedByShard == nil { - m.RowsAffectedByShard = make(map[string]uint64) + if m.Keyspace == nil { + m.Keyspace = &Keyspace{} } - var mapkey string - var mapvalue uint64 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.RowsAffectedByShard[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -36355,7 +40885,7 @@ func (m *CancelSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ChangeTabletTagsRequest) UnmarshalVT(dAtA []byte) error { +func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -36378,17 +40908,17 @@ func (m *ChangeTabletTagsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ChangeTabletTagsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CreateShardRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ChangeTabletTagsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -36398,33 +40928,29 @@ func (m *ChangeTabletTagsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} - } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ShardName", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -36434,122 +40960,47 @@ func (m *ChangeTabletTagsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Tags == nil { - m.Tags = make(map[string]string) + m.ShardName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break } } - m.Tags[mapkey] = mapvalue - iNdEx = postIndex - case 3: + m.Force = bool(v != 0) + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IncludeParent", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -36566,7 +41017,7 @@ func (m *ChangeTabletTagsRequest) UnmarshalVT(dAtA []byte) error { break } } - m.Replace = bool(v != 0) + m.IncludeParent = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -36589,7 +41040,7 @@ func (m *ChangeTabletTagsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ChangeTabletTagsResponse) UnmarshalVT(dAtA []byte) error { +func (m *CreateShardResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -36612,15 +41063,15 @@ func (m *ChangeTabletTagsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ChangeTabletTagsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: CreateShardResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ChangeTabletTagsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeforeTags", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -36647,107 +41098,16 @@ func (m *ChangeTabletTagsResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.BeforeTags == nil { - m.BeforeTags = make(map[string]string) + if m.Keyspace == nil { + m.Keyspace = &Keyspace{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.BeforeTags[mapkey] = mapvalue iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AfterTags", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -36774,104 +41134,33 @@ func (m *ChangeTabletTagsResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AfterTags == nil { - m.AfterTags = make(map[string]string) + if m.Shard == nil { + m.Shard = &Shard{} } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShardAlreadyExists", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break } } - m.AfterTags[mapkey] = mapvalue - iNdEx = postIndex + m.ShardAlreadyExists = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -36894,7 +41183,7 @@ func (m *ChangeTabletTagsResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ChangeTabletTypeRequest) UnmarshalVT(dAtA []byte) error { +func (m *DeleteCellInfoRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -36917,17 +41206,17 @@ func (m *ChangeTabletTypeRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ChangeTabletTypeRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteCellInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ChangeTabletTypeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteCellInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -36937,50 +41226,27 @@ func (m *ChangeTabletTypeRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} - } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DbType", wireType) - } - m.DbType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DbType |= topodata.TabletType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -36997,7 +41263,7 @@ func (m *ChangeTabletTypeRequest) UnmarshalVT(dAtA []byte) error { break } } - m.DryRun = bool(v != 0) + m.Force = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -37020,7 +41286,7 @@ func (m *ChangeTabletTypeRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ChangeTabletTypeResponse) UnmarshalVT(dAtA []byte) error { +func (m *DeleteCellInfoResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -37043,17 +41309,68 @@ func (m *ChangeTabletTypeResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ChangeTabletTypeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteCellInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ChangeTabletTypeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteCellInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteCellsAliasRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteCellsAliasRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteCellsAliasRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeforeTablet", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -37063,33 +41380,131 @@ func (m *ChangeTabletTypeResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.BeforeTablet == nil { - m.BeforeTablet = &topodata.Tablet{} + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - if err := m.BeforeTablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteCellsAliasResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteCellsAliasResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteCellsAliasResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 2: + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteKeyspaceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AfterTablet", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -37099,31 +41514,47 @@ func (m *ChangeTabletTypeResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.AfterTablet == nil { - m.AfterTablet = &topodata.Tablet{} + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Recursive", wireType) } - if err := m.AfterTablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex + m.Recursive = bool(v != 0) case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WasDryRun", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -37140,7 +41571,7 @@ func (m *ChangeTabletTypeResponse) UnmarshalVT(dAtA []byte) error { break } } - m.WasDryRun = bool(v != 0) + m.Force = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -37163,7 +41594,7 @@ func (m *ChangeTabletTypeResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CheckThrottlerRequest) UnmarshalVT(dAtA []byte) error { +func (m *DeleteKeyspaceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -37186,15 +41617,66 @@ func (m *CheckThrottlerRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CheckThrottlerRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteKeyspaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CheckThrottlerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteShardsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteShardsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -37221,18 +41703,16 @@ func (m *CheckThrottlerRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} - } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Shards = append(m.Shards, &Shard{}) + if err := m.Shards[len(m.Shards)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AppName", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Recursive", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -37242,29 +41722,17 @@ func (m *CheckThrottlerRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AppName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) + m.Recursive = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EvenIfServing", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -37274,27 +41742,15 @@ func (m *CheckThrottlerRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Scope = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: + m.EvenIfServing = bool(v != 0) + case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipRequestHeartbeats", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -37311,12 +41767,114 @@ func (m *CheckThrottlerRequest) UnmarshalVT(dAtA []byte) error { break } } - m.SkipRequestHeartbeats = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field OkIfNotExists", wireType) + m.Force = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - var v int + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteShardsResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteShardsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteShardsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteSrvVSchemaRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteSrvVSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + } + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -37326,12 +41884,24 @@ func (m *CheckThrottlerRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.OkIfNotExists = bool(v != 0) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cell = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -37354,7 +41924,7 @@ func (m *CheckThrottlerRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CheckThrottlerResponse) UnmarshalVT(dAtA []byte) error { +func (m *DeleteSrvVSchemaResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -37377,84 +41947,12 @@ func (m *CheckThrottlerResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CheckThrottlerResponse: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteSrvVSchemaResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CheckThrottlerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteSrvVSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} - } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Check", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Check == nil { - m.Check = &tabletmanagerdata.CheckThrottlerResponse{} - } - if err := m.Check.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -37477,7 +41975,7 @@ func (m *CheckThrottlerResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CleanupSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { +func (m *DeleteTabletsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -37500,17 +41998,17 @@ func (m *CleanupSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CleanupSchemaMigrationRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteTabletsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CleanupSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteTabletsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAliases", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -37520,61 +42018,31 @@ func (m *CleanupSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF + m.TabletAliases = append(m.TabletAliases, &topodata.TabletAlias{}) + if err := m.TabletAliases[len(m.TabletAliases)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Uuid = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowPrimary", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -37584,28 +42052,12 @@ func (m *CleanupSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CallerId == nil { - m.CallerId = &vtrpc.CallerID{} - } - if err := m.CallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.AllowPrimary = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -37628,7 +42080,7 @@ func (m *CleanupSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CleanupSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { +func (m *DeleteTabletsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -37651,125 +42103,12 @@ func (m *CleanupSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CleanupSchemaMigrationResponse: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteTabletsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CleanupSchemaMigrationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteTabletsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RowsAffectedByShard", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RowsAffectedByShard == nil { - m.RowsAffectedByShard = make(map[string]uint64) - } - var mapkey string - var mapvalue uint64 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.RowsAffectedByShard[mapkey] = mapvalue - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -37792,7 +42131,7 @@ func (m *CleanupSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CompleteSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { +func (m *EmergencyReparentShardRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -37815,10 +42154,10 @@ func (m *CompleteSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CompleteSchemaMigrationRequest: wiretype end group for non-group") + return fmt.Errorf("proto: EmergencyReparentShardRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CompleteSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EmergencyReparentShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -37855,7 +42194,7 @@ func (m *CompleteSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -37883,11 +42222,11 @@ func (m *CompleteSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Uuid = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NewPrimary", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -37914,67 +42253,50 @@ func (m *CompleteSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CallerId == nil { - m.CallerId = &vtrpc.CallerID{} + if m.NewPrimary == nil { + m.NewPrimary = &topodata.TabletAlias{} } - if err := m.CallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.NewPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IgnoreReplicas", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + if msglen < 0 { + return protohelpers.ErrInvalidLength } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CompleteSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.IgnoreReplicas = append(m.IgnoreReplicas, &topodata.TabletAlias{}) + if err := m.IgnoreReplicas[len(m.IgnoreReplicas)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CompleteSchemaMigrationResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CompleteSchemaMigrationResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RowsAffectedByShard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WaitReplicasTimeout", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -38001,89 +42323,88 @@ func (m *CompleteSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RowsAffectedByShard == nil { - m.RowsAffectedByShard = make(map[string]uint64) + if m.WaitReplicasTimeout == nil { + m.WaitReplicasTimeout = &vttime.Duration{} } - var mapkey string - var mapvalue uint64 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.WaitReplicasTimeout.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventCrossCellPromotion", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreventCrossCellPromotion = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WaitForAllTablets", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.WaitForAllTablets = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedPrimary", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break } } - m.RowsAffectedByShard[mapkey] = mapvalue + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExpectedPrimary == nil { + m.ExpectedPrimary = &topodata.TabletAlias{} + } + if err := m.ExpectedPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -38107,7 +42428,7 @@ func (m *CompleteSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CopySchemaShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *EmergencyReparentShardResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -38130,17 +42451,17 @@ func (m *CopySchemaShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CopySchemaShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: EmergencyReparentShardResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CopySchemaShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EmergencyReparentShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceTabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -38150,31 +42471,27 @@ func (m *CopySchemaShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.SourceTabletAlias == nil { - m.SourceTabletAlias = &topodata.TabletAlias{} - } - if err := m.SourceTabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tables", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -38202,13 +42519,13 @@ func (m *CopySchemaShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Tables = append(m.Tables, string(dAtA[iNdEx:postIndex])) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTables", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PromotedPrimary", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -38218,29 +42535,33 @@ func (m *CopySchemaShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ExcludeTables = append(m.ExcludeTables, string(dAtA[iNdEx:postIndex])) + if m.PromotedPrimary == nil { + m.PromotedPrimary = &topodata.TabletAlias{} + } + if err := m.PromotedPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeViews", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -38250,35 +42571,80 @@ func (m *CopySchemaShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.IncludeViews = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipVerify", wireType) + if msglen < 0 { + return protohelpers.ErrInvalidLength } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - m.SkipVerify = bool(v != 0) - case 6: + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Events = append(m.Events, &logutil.Event{}) + if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ExecuteFetchAsAppRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExecuteFetchAsAppRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExecuteFetchAsAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WaitReplicasTimeout", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -38305,16 +42671,16 @@ func (m *CopySchemaShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.WaitReplicasTimeout == nil { - m.WaitReplicasTimeout = &vttime.Duration{} + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} } - if err := m.WaitReplicasTimeout.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 7: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DestinationKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -38342,13 +42708,13 @@ func (m *CopySchemaShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.DestinationKeyspace = string(dAtA[iNdEx:postIndex]) + m.Query = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DestinationShard", wireType) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxRows", wireType) } - var stringLen uint64 + m.MaxRows = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -38358,24 +42724,31 @@ func (m *CopySchemaShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.MaxRows |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UsePool", wireType) } - if postIndex > l { - return io.ErrUnexpectedEOF + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - m.DestinationShard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + m.UsePool = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -38398,7 +42771,7 @@ func (m *CopySchemaShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CopySchemaShardResponse) UnmarshalVT(dAtA []byte) error { +func (m *ExecuteFetchAsAppResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -38421,12 +42794,48 @@ func (m *CopySchemaShardResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CopySchemaShardResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ExecuteFetchAsAppResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CopySchemaShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ExecuteFetchAsAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Result == nil { + m.Result = &query.QueryResult{} + } + if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -38449,7 +42858,7 @@ func (m *CopySchemaShardResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *ExecuteFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -38472,17 +42881,17 @@ func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ExecuteFetchAsDBARequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ExecuteFetchAsDBARequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -38492,86 +42901,31 @@ func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Force = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowEmptyVSchema", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowEmptyVSchema = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= topodata.KeyspaceType(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - case 8: + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BaseKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -38599,13 +42953,13 @@ func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BaseKeyspace = string(dAtA[iNdEx:postIndex]) + m.Query = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTime", wireType) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxRows", wireType) } - var msglen int + m.MaxRows = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -38615,33 +42969,16 @@ func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.MaxRows |= int64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SnapshotTime == nil { - m.SnapshotTime = &vttime.Time{} - } - if err := m.SnapshotTime.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DurabilityPolicy", wireType) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DisableBinlogs", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -38651,29 +42988,17 @@ func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DurabilityPolicy = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SidecarDbName", wireType) + m.DisableBinlogs = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReloadSchema", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -38683,24 +43008,12 @@ func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SidecarDbName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + m.ReloadSchema = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -38723,7 +43036,7 @@ func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { +func (m *ExecuteFetchAsDBAResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -38746,15 +43059,15 @@ func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateKeyspaceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ExecuteFetchAsDBAResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ExecuteFetchAsDBAResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -38781,10 +43094,10 @@ func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Keyspace == nil { - m.Keyspace = &Keyspace{} + if m.Result == nil { + m.Result = &query.QueryResult{} } - if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -38810,7 +43123,7 @@ func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *ExecuteHookRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -38833,17 +43146,17 @@ func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ExecuteHookRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ExecuteHookRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -38853,29 +43166,33 @@ func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} + } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletHookRequest", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -38885,64 +43202,28 @@ func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ShardName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Force = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeParent", wireType) + if m.TabletHookRequest == nil { + m.TabletHookRequest = &tabletmanagerdata.ExecuteHookRequest{} } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.TabletHookRequest.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.IncludeParent = bool(v != 0) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -38965,7 +43246,7 @@ func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CreateShardResponse) UnmarshalVT(dAtA []byte) error { +func (m *ExecuteHookResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -38988,51 +43269,15 @@ func (m *CreateShardResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateShardResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ExecuteHookResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ExecuteHookResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Keyspace == nil { - m.Keyspace = &Keyspace{} - } - if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HookResult", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -39059,33 +43304,13 @@ func (m *CreateShardResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Shard == nil { - m.Shard = &Shard{} + if m.HookResult == nil { + m.HookResult = &tabletmanagerdata.ExecuteHookResponse{} } - if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.HookResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardAlreadyExists", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ShardAlreadyExists = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -39108,7 +43333,7 @@ func (m *CreateShardResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteCellInfoRequest) UnmarshalVT(dAtA []byte) error { +func (m *ExecuteMultiFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39131,15 +43356,51 @@ func (m *DeleteCellInfoRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteCellInfoRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ExecuteMultiFetchAsDBARequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteCellInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ExecuteMultiFetchAsDBARequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} + } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -39167,11 +43428,30 @@ func (m *DeleteCellInfoRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Sql = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MaxRows", wireType) + } + m.MaxRows = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxRows |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DisableBinlogs", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -39188,7 +43468,27 @@ func (m *DeleteCellInfoRequest) UnmarshalVT(dAtA []byte) error { break } } - m.Force = bool(v != 0) + m.DisableBinlogs = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReloadSchema", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReloadSchema = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -39211,7 +43511,7 @@ func (m *DeleteCellInfoRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteCellInfoResponse) UnmarshalVT(dAtA []byte) error { +func (m *ExecuteMultiFetchAsDBAResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39234,12 +43534,46 @@ func (m *DeleteCellInfoResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteCellInfoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ExecuteMultiFetchAsDBAResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteCellInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ExecuteMultiFetchAsDBAResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Results = append(m.Results, &query.QueryResult{}) + if err := m.Results[len(m.Results)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -39262,7 +43596,7 @@ func (m *DeleteCellInfoResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteCellsAliasRequest) UnmarshalVT(dAtA []byte) error { +func (m *FindAllShardsInKeyspaceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39285,15 +43619,15 @@ func (m *DeleteCellsAliasRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteCellsAliasRequest: wiretype end group for non-group") + return fmt.Errorf("proto: FindAllShardsInKeyspaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteCellsAliasRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: FindAllShardsInKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -39321,7 +43655,7 @@ func (m *DeleteCellsAliasRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -39345,7 +43679,7 @@ func (m *DeleteCellsAliasRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteCellsAliasResponse) UnmarshalVT(dAtA []byte) error { +func (m *FindAllShardsInKeyspaceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39368,12 +43702,141 @@ func (m *DeleteCellsAliasResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteCellsAliasResponse: wiretype end group for non-group") + return fmt.Errorf("proto: FindAllShardsInKeyspaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteCellsAliasResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: FindAllShardsInKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Shards == nil { + m.Shards = make(map[string]*Shard) + } + var mapkey string + var mapvalue *Shard + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &Shard{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Shards[mapkey] = mapvalue + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -39396,7 +43859,7 @@ func (m *DeleteCellsAliasResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *ForceCutOverSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39419,10 +43882,10 @@ func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ForceCutOverSchemaMigrationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ForceCutOverSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -39458,10 +43921,10 @@ func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Recursive", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -39471,17 +43934,29 @@ func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.Recursive = bool(v != 0) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uuid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -39491,12 +43966,28 @@ func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.Force = bool(v != 0) + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CallerId == nil { + m.CallerId = &vtrpc.CallerID{} + } + if err := m.CallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -39519,7 +44010,7 @@ func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteKeyspaceResponse) UnmarshalVT(dAtA []byte) error { +func (m *ForceCutOverSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39542,12 +44033,125 @@ func (m *DeleteKeyspaceResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteKeyspaceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ForceCutOverSchemaMigrationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ForceCutOverSchemaMigrationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RowsAffectedByShard", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RowsAffectedByShard == nil { + m.RowsAffectedByShard = make(map[string]uint64) + } + var mapkey string + var mapvalue uint64 + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.RowsAffectedByShard[mapkey] = mapvalue + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -39570,7 +44174,7 @@ func (m *DeleteKeyspaceResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39593,17 +44197,17 @@ func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteShardsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetBackupsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteShardsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetBackupsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -39613,31 +44217,61 @@ func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Shards = append(m.Shards, &Shard{}) - if err := m.Shards[len(m.Shards)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Shard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Recursive", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } - var v int + m.Limit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -39647,15 +44281,14 @@ func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.Limit |= uint32(b&0x7F) << shift if b < 0x80 { break } } - m.Recursive = bool(v != 0) case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EvenIfServing", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Detailed", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -39672,12 +44305,12 @@ func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { break } } - m.EvenIfServing = bool(v != 0) + m.Detailed = bool(v != 0) case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DetailedLimit", wireType) } - var v int + m.DetailedLimit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -39687,12 +44320,11 @@ func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.DetailedLimit |= uint32(b&0x7F) << shift if b < 0x80 { break } } - m.Force = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -39715,7 +44347,7 @@ func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteShardsResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetBackupsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39738,12 +44370,46 @@ func (m *DeleteShardsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteShardsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetBackupsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteShardsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetBackupsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Backups", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Backups = append(m.Backups, &mysqlctl.BackupInfo{}) + if err := m.Backups[len(m.Backups)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -39766,7 +44432,7 @@ func (m *DeleteShardsResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetCellInfoRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39789,10 +44455,10 @@ func (m *DeleteSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteSrvVSchemaRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetCellInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteSrvVSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetCellInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -39849,58 +44515,7 @@ func (m *DeleteSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteSrvVSchemaResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteSrvVSchemaResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteSrvVSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteTabletsRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetCellInfoResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -39923,15 +44538,15 @@ func (m *DeleteTabletsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteTabletsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetCellInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteTabletsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetCellInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAliases", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CellInfo", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -39958,31 +44573,13 @@ func (m *DeleteTabletsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TabletAliases = append(m.TabletAliases, &topodata.TabletAlias{}) - if err := m.TabletAliases[len(m.TabletAliases)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.CellInfo == nil { + m.CellInfo = &topodata.CellInfo{} + } + if err := m.CellInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowPrimary", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowPrimary = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -40005,7 +44602,7 @@ func (m *DeleteTabletsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteTabletsResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetCellInfoNamesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -40028,10 +44625,10 @@ func (m *DeleteTabletsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteTabletsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetCellInfoNamesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteTabletsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetCellInfoNamesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -40056,7 +44653,7 @@ func (m *DeleteTabletsResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *EmergencyReparentShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetCellInfoNamesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -40079,15 +44676,15 @@ func (m *EmergencyReparentShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EmergencyReparentShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetCellInfoNamesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EmergencyReparentShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetCellInfoNamesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -40115,113 +44712,113 @@ func (m *EmergencyReparentShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewPrimary", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetCellsAliasesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.NewPrimary == nil { - m.NewPrimary = &topodata.TabletAlias{} + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - if err := m.NewPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetCellsAliasesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetCellsAliasesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IgnoreReplicas", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetCellsAliasesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.IgnoreReplicas = append(m.IgnoreReplicas, &topodata.TabletAlias{}) - if err := m.IgnoreReplicas[len(m.IgnoreReplicas)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 5: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetCellsAliasesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetCellsAliasesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WaitReplicasTimeout", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Aliases", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -40248,56 +44845,160 @@ func (m *EmergencyReparentShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.WaitReplicasTimeout == nil { - m.WaitReplicasTimeout = &vttime.Duration{} + if m.Aliases == nil { + m.Aliases = make(map[string]*topodata.CellsAlias) } - if err := m.WaitReplicasTimeout.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + var mapkey string + var mapvalue *topodata.CellsAlias + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &topodata.CellsAlias{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Aliases[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PreventCrossCellPromotion", wireType) + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetFullStatusRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - m.PreventCrossCellPromotion = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WaitForAllTablets", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - m.WaitForAllTablets = bool(v != 0) - case 8: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetFullStatusRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetFullStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpectedPrimary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -40324,10 +45025,10 @@ func (m *EmergencyReparentShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ExpectedPrimary == nil { - m.ExpectedPrimary = &topodata.TabletAlias{} + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} } - if err := m.ExpectedPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -40353,7 +45054,7 @@ func (m *EmergencyReparentShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *EmergencyReparentShardResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetFullStatusResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -40376,17 +45077,17 @@ func (m *EmergencyReparentShardResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EmergencyReparentShardResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetFullStatusResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EmergencyReparentShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetFullStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -40396,95 +45097,133 @@ func (m *EmergencyReparentShardResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + if m.Status == nil { + m.Status = &replicationdata.FullStatus{} } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PromotedPrimary", wireType) + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetKeyspacesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if iNdEx >= l { + return io.ErrUnexpectedEOF } - if msglen < 0 { - return protohelpers.ErrInvalidLength + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - postIndex := iNdEx + msglen - if postIndex < 0 { + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetKeyspacesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetKeyspacesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.PromotedPrimary == nil { - m.PromotedPrimary = &topodata.TabletAlias{} + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetKeyspacesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if err := m.PromotedPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 4: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetKeyspacesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetKeyspacesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -40511,8 +45250,8 @@ func (m *EmergencyReparentShardResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Events = append(m.Events, &logutil.Event{}) - if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Keyspaces = append(m.Keyspaces, &Keyspace{}) + if err := m.Keyspaces[len(m.Keyspaces)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -40538,7 +45277,7 @@ func (m *EmergencyReparentShardResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ExecuteFetchAsAppRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetKeyspaceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -40561,51 +45300,15 @@ func (m *ExecuteFetchAsAppRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ExecuteFetchAsAppRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetKeyspaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ExecuteFetchAsAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} - } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -40633,47 +45336,8 @@ func (m *ExecuteFetchAsAppRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Query = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxRows", wireType) - } - m.MaxRows = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxRows |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UsePool", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.UsePool = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -40696,7 +45360,7 @@ func (m *ExecuteFetchAsAppRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ExecuteFetchAsAppResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetKeyspaceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -40719,15 +45383,15 @@ func (m *ExecuteFetchAsAppResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ExecuteFetchAsAppResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetKeyspaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ExecuteFetchAsAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -40754,10 +45418,10 @@ func (m *ExecuteFetchAsAppResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Result == nil { - m.Result = &query.QueryResult{} + if m.Keyspace == nil { + m.Keyspace = &Keyspace{} } - if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -40783,7 +45447,7 @@ func (m *ExecuteFetchAsAppResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ExecuteFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { +func (m *GetPermissionsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -40806,10 +45470,10 @@ func (m *ExecuteFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ExecuteFetchAsDBARequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetPermissionsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ExecuteFetchAsDBARequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetPermissionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -40848,11 +45512,62 @@ func (m *ExecuteFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { return err } iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetPermissionsResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetPermissionsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetPermissionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -40862,83 +45577,79 @@ func (m *ExecuteFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Query = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxRows", wireType) + if m.Permissions == nil { + m.Permissions = &tabletmanagerdata.Permissions{} } - m.MaxRows = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxRows |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.Permissions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DisableBinlogs", wireType) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength } - m.DisableBinlogs = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReloadSchema", wireType) + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetKeyspaceRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - m.ReloadSchema = bool(v != 0) + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetKeyspaceRoutingRulesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetKeyspaceRoutingRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -40961,7 +45672,7 @@ func (m *ExecuteFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ExecuteFetchAsDBAResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetKeyspaceRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -40984,15 +45695,15 @@ func (m *ExecuteFetchAsDBAResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ExecuteFetchAsDBAResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetKeyspaceRoutingRulesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ExecuteFetchAsDBAResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetKeyspaceRoutingRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceRoutingRules", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -41019,10 +45730,10 @@ func (m *ExecuteFetchAsDBAResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Result == nil { - m.Result = &query.QueryResult{} + if m.KeyspaceRoutingRules == nil { + m.KeyspaceRoutingRules = &vschema.KeyspaceRoutingRules{} } - if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.KeyspaceRoutingRules.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -41048,7 +45759,7 @@ func (m *ExecuteFetchAsDBAResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ExecuteHookRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -41071,84 +45782,12 @@ func (m *ExecuteHookRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ExecuteHookRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetRoutingRulesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ExecuteHookRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetRoutingRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} - } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletHookRequest", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TabletHookRequest == nil { - m.TabletHookRequest = &tabletmanagerdata.ExecuteHookRequest{} - } - if err := m.TabletHookRequest.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -41171,7 +45810,7 @@ func (m *ExecuteHookRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ExecuteHookResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -41194,15 +45833,15 @@ func (m *ExecuteHookResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ExecuteHookResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetRoutingRulesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ExecuteHookResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetRoutingRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HookResult", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RoutingRules", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -41229,10 +45868,10 @@ func (m *ExecuteHookResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.HookResult == nil { - m.HookResult = &tabletmanagerdata.ExecuteHookResponse{} + if m.RoutingRules == nil { + m.RoutingRules = &vschema.RoutingRules{} } - if err := m.HookResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.RoutingRules.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -41258,7 +45897,7 @@ func (m *ExecuteHookResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ExecuteMultiFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { +func (m *GetSchemaRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -41281,10 +45920,10 @@ func (m *ExecuteMultiFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ExecuteMultiFetchAsDBARequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetSchemaRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ExecuteMultiFetchAsDBARequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -41325,7 +45964,7 @@ func (m *ExecuteMultiFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tables", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -41353,13 +45992,13 @@ func (m *ExecuteMultiFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Sql = string(dAtA[iNdEx:postIndex]) + m.Tables = append(m.Tables, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxRows", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTables", wireType) } - m.MaxRows = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -41369,14 +46008,27 @@ func (m *ExecuteMultiFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxRows |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExcludeTables = append(m.ExcludeTables, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DisableBinlogs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IncludeViews", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -41393,10 +46045,10 @@ func (m *ExecuteMultiFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { break } } - m.DisableBinlogs = bool(v != 0) + m.IncludeViews = bool(v != 0) case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReloadSchema", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TableNamesOnly", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -41413,7 +46065,47 @@ func (m *ExecuteMultiFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { break } } - m.ReloadSchema = bool(v != 0) + m.TableNamesOnly = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TableSizesOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TableSizesOnly = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TableSchemaOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TableSchemaOnly = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -41436,7 +46128,7 @@ func (m *ExecuteMultiFetchAsDBARequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ExecuteMultiFetchAsDBAResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetSchemaResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -41459,15 +46151,15 @@ func (m *ExecuteMultiFetchAsDBAResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ExecuteMultiFetchAsDBAResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetSchemaResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ExecuteMultiFetchAsDBAResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -41494,8 +46186,10 @@ func (m *ExecuteMultiFetchAsDBAResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Results = append(m.Results, &query.QueryResult{}) - if err := m.Results[len(m.Results)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Schema == nil { + m.Schema = &tabletmanagerdata.SchemaDefinition{} + } + if err := m.Schema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -41521,7 +46215,7 @@ func (m *ExecuteMultiFetchAsDBAResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *FindAllShardsInKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetSchemaMigrationsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -41544,10 +46238,10 @@ func (m *FindAllShardsInKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: FindAllShardsInKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetSchemaMigrationsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: FindAllShardsInKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSchemaMigrationsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -41582,6 +46276,182 @@ func (m *FindAllShardsInKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uuid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MigrationContext", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MigrationContext = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= SchemaMigration_Status(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Recent", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Recent == nil { + m.Recent = &vttime.Duration{} + } + if err := m.Recent.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType) + } + m.Order = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Order |= QueryOrdering(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Skip", wireType) + } + m.Skip = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Skip |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -41604,7 +46474,7 @@ func (m *FindAllShardsInKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *FindAllShardsInKeyspaceResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetSchemaMigrationsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -41627,15 +46497,15 @@ func (m *FindAllShardsInKeyspaceResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: FindAllShardsInKeyspaceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetSchemaMigrationsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: FindAllShardsInKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSchemaMigrationsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Migrations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -41662,105 +46532,10 @@ func (m *FindAllShardsInKeyspaceResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Shards == nil { - m.Shards = make(map[string]*Shard) - } - var mapkey string - var mapvalue *Shard - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Shard{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + m.Migrations = append(m.Migrations, &SchemaMigration{}) + if err := m.Migrations[len(m.Migrations)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Shards[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -41784,7 +46559,7 @@ func (m *FindAllShardsInKeyspaceResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ForceCutOverSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetShardReplicationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -41807,10 +46582,10 @@ func (m *ForceCutOverSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ForceCutOverSchemaMigrationRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetShardReplicationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ForceCutOverSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetShardReplicationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -41847,7 +46622,7 @@ func (m *ForceCutOverSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -41875,13 +46650,13 @@ func (m *ForceCutOverSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Uuid = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -41891,27 +46666,23 @@ func (m *ForceCutOverSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.CallerId == nil { - m.CallerId = &vtrpc.CallerID{} - } - if err := m.CallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -41935,7 +46706,7 @@ func (m *ForceCutOverSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ForceCutOverSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetShardReplicationResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -41958,15 +46729,15 @@ func (m *ForceCutOverSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ForceCutOverSchemaMigrationResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetShardReplicationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ForceCutOverSchemaMigrationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetShardReplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RowsAffectedByShard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ShardReplicationByCell", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -41993,11 +46764,11 @@ func (m *ForceCutOverSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RowsAffectedByShard == nil { - m.RowsAffectedByShard = make(map[string]uint64) + if m.ShardReplicationByCell == nil { + m.ShardReplicationByCell = make(map[string]*topodata.ShardReplication) } var mapkey string - var mapvalue uint64 + var mapvalue *topodata.ShardReplication for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -42046,6 +46817,7 @@ func (m *ForceCutOverSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey } else if fieldNum == 2 { + var mapmsglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -42055,11 +46827,26 @@ func (m *ForceCutOverSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapvalue |= uint64(b&0x7F) << shift + mapmsglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &topodata.ShardReplication{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex } else { iNdEx = entryPreIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -42075,7 +46862,7 @@ func (m *ForceCutOverSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { iNdEx += skippy } } - m.RowsAffectedByShard[mapkey] = mapvalue + m.ShardReplicationByCell[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -42099,7 +46886,7 @@ func (m *ForceCutOverSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetShardRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -42122,10 +46909,10 @@ func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetBackupsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetShardRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetBackupsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -42162,7 +46949,7 @@ func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ShardName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -42190,52 +46977,64 @@ func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) + m.ShardName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - m.Limit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Limit |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Detailed", wireType) + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetShardResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - m.Detailed = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DetailedLimit", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF } - m.DetailedLimit = 0 + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetShardResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -42245,11 +47044,28 @@ func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DetailedLimit |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Shard == nil { + m.Shard = &Shard{} + } + if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -42272,7 +47088,7 @@ func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetBackupsResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetShardRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -42295,15 +47111,66 @@ func (m *GetBackupsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetBackupsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetShardRoutingRulesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetBackupsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetShardRoutingRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetShardRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetShardRoutingRulesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetShardRoutingRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Backups", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ShardRoutingRules", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -42330,8 +47197,10 @@ func (m *GetBackupsResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Backups = append(m.Backups, &mysqlctl.BackupInfo{}) - if err := m.Backups[len(m.Backups)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.ShardRoutingRules == nil { + m.ShardRoutingRules = &vschema.ShardRoutingRules{} + } + if err := m.ShardRoutingRules.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -42357,7 +47226,7 @@ func (m *GetBackupsResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetCellInfoRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetSrvKeyspaceNamesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -42380,15 +47249,15 @@ func (m *GetCellInfoRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetCellInfoRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetSrvKeyspaceNamesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetCellInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSrvKeyspaceNamesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -42416,7 +47285,7 @@ func (m *GetCellInfoRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cell = string(dAtA[iNdEx:postIndex]) + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -42440,7 +47309,7 @@ func (m *GetCellInfoRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetCellInfoResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetSrvKeyspaceNamesResponse_NameList) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -42463,17 +47332,17 @@ func (m *GetCellInfoResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetCellInfoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetSrvKeyspaceNamesResponse_NameList: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetCellInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSrvKeyspaceNamesResponse_NameList: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CellInfo", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -42483,27 +47352,23 @@ func (m *GetCellInfoResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.CellInfo == nil { - m.CellInfo = &topodata.CellInfo{} - } - if err := m.CellInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -42527,7 +47392,7 @@ func (m *GetCellInfoResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetCellInfoNamesRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetSrvKeyspaceNamesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -42546,16 +47411,145 @@ func (m *GetCellInfoNamesRequest) UnmarshalVT(dAtA []byte) error { if b < 0x80 { break } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetCellInfoNamesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetCellInfoNamesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetSrvKeyspaceNamesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetSrvKeyspaceNamesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Names == nil { + m.Names = make(map[string]*GetSrvKeyspaceNamesResponse_NameList) + } + var mapkey string + var mapvalue *GetSrvKeyspaceNamesResponse_NameList + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &GetSrvKeyspaceNamesResponse_NameList{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Names[mapkey] = mapvalue + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -42578,7 +47572,7 @@ func (m *GetCellInfoNamesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetCellInfoNamesResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetSrvKeyspacesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -42601,15 +47595,15 @@ func (m *GetCellInfoNamesResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetCellInfoNamesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetSrvKeyspacesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetCellInfoNamesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSrvKeyspacesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -42637,59 +47631,40 @@ func (m *GetCellInfoNamesResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetCellsAliasesRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetCellsAliasesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetCellsAliasesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -42712,7 +47687,7 @@ func (m *GetCellsAliasesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetCellsAliasesResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetSrvKeyspacesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -42735,15 +47710,15 @@ func (m *GetCellsAliasesResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetCellsAliasesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetSrvKeyspacesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetCellsAliasesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSrvKeyspacesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Aliases", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SrvKeyspaces", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -42770,11 +47745,11 @@ func (m *GetCellsAliasesResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Aliases == nil { - m.Aliases = make(map[string]*topodata.CellsAlias) + if m.SrvKeyspaces == nil { + m.SrvKeyspaces = make(map[string]*topodata.SrvKeyspace) } var mapkey string - var mapvalue *topodata.CellsAlias + var mapvalue *topodata.SrvKeyspace for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -42848,7 +47823,7 @@ func (m *GetCellsAliasesResponse) UnmarshalVT(dAtA []byte) error { if postmsgIndex > l { return io.ErrUnexpectedEOF } - mapvalue = &topodata.CellsAlias{} + mapvalue = &topodata.SrvKeyspace{} if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { return err } @@ -42868,7 +47843,7 @@ func (m *GetCellsAliasesResponse) UnmarshalVT(dAtA []byte) error { iNdEx += skippy } } - m.Aliases[mapkey] = mapvalue + m.SrvKeyspaces[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -42892,7 +47867,7 @@ func (m *GetCellsAliasesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetFullStatusRequest) UnmarshalVT(dAtA []byte) error { +func (m *UpdateThrottlerConfigRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -42915,15 +47890,190 @@ func (m *GetFullStatusRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetFullStatusRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateThrottlerConfigRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetFullStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateThrottlerConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Enable = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Disable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Disable = bool(v != 0) + case 4: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Threshold", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Threshold = float64(math.Float64frombits(v)) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomQuery", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomQuery = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomQuerySet", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CustomQuerySet = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CheckAsCheckSelf", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CheckAsCheckSelf = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CheckAsCheckShard", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CheckAsCheckShard = bool(v != 0) + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ThrottledApp", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -42950,13 +48100,109 @@ func (m *GetFullStatusRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} + if m.ThrottledApp == nil { + m.ThrottledApp = &topodata.ThrottledAppRule{} } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ThrottledApp.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetricName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AppName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AppName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AppCheckedMetrics", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AppCheckedMetrics = append(m.AppCheckedMetrics, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -42979,7 +48225,7 @@ func (m *GetFullStatusRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetFullStatusResponse) UnmarshalVT(dAtA []byte) error { +func (m *UpdateThrottlerConfigResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43002,48 +48248,12 @@ func (m *GetFullStatusResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetFullStatusResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateThrottlerConfigResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetFullStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateThrottlerConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &replicationdata.FullStatus{} - } - if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -43066,7 +48276,7 @@ func (m *GetFullStatusResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetKeyspacesRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43089,12 +48299,44 @@ func (m *GetKeyspacesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetKeyspacesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetSrvVSchemaRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetKeyspacesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSrvVSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cell = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -43117,7 +48359,7 @@ func (m *GetKeyspacesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetKeyspacesResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetSrvVSchemaResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43140,15 +48382,15 @@ func (m *GetKeyspacesResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetKeyspacesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetSrvVSchemaResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetKeyspacesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSrvVSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SrvVSchema", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -43175,8 +48417,10 @@ func (m *GetKeyspacesResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspaces = append(m.Keyspaces, &Keyspace{}) - if err := m.Keyspaces[len(m.Keyspaces)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.SrvVSchema == nil { + m.SrvVSchema = &vschema.SrvVSchema{} + } + if err := m.SrvVSchema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -43202,7 +48446,7 @@ func (m *GetKeyspacesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetSrvVSchemasRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43225,15 +48469,15 @@ func (m *GetKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetSrvVSchemasRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSrvVSchemasRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -43261,7 +48505,7 @@ func (m *GetKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -43285,7 +48529,7 @@ func (m *GetKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetKeyspaceResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetSrvVSchemasResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43308,15 +48552,15 @@ func (m *GetKeyspaceResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetKeyspaceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetSrvVSchemasResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetSrvVSchemasResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SrvVSchemas", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -43343,12 +48587,105 @@ func (m *GetKeyspaceResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Keyspace == nil { - m.Keyspace = &Keyspace{} + if m.SrvVSchemas == nil { + m.SrvVSchemas = make(map[string]*vschema.SrvVSchema) } - if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var mapkey string + var mapvalue *vschema.SrvVSchema + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &vschema.SrvVSchema{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } + m.SrvVSchemas[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -43372,7 +48709,7 @@ func (m *GetKeyspaceResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetPermissionsRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetTabletRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43395,10 +48732,10 @@ func (m *GetPermissionsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetPermissionsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetTabletRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetPermissionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -43459,7 +48796,7 @@ func (m *GetPermissionsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetPermissionsResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetTabletResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43482,15 +48819,15 @@ func (m *GetPermissionsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetPermissionsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetTabletResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetPermissionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetTabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -43517,10 +48854,10 @@ func (m *GetPermissionsResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Permissions == nil { - m.Permissions = &tabletmanagerdata.Permissions{} + if m.Tablet == nil { + m.Tablet = &topodata.Tablet{} } - if err := m.Permissions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Tablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -43546,7 +48883,7 @@ func (m *GetPermissionsResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetKeyspaceRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetTabletsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43569,12 +48906,181 @@ func (m *GetKeyspaceRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetKeyspaceRoutingRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetTabletsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetKeyspaceRoutingRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetTabletsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Shard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Strict", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Strict = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TabletAliases", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TabletAliases = append(m.TabletAliases, &topodata.TabletAlias{}) + if err := m.TabletAliases[len(m.TabletAliases)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TabletType", wireType) + } + m.TabletType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TabletType |= topodata.TabletType(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -43597,7 +49103,7 @@ func (m *GetKeyspaceRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetKeyspaceRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetTabletsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43620,15 +49126,15 @@ func (m *GetKeyspaceRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetKeyspaceRoutingRulesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetTabletsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetKeyspaceRoutingRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetTabletsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceRoutingRules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tablets", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -43655,10 +49161,8 @@ func (m *GetKeyspaceRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.KeyspaceRoutingRules == nil { - m.KeyspaceRoutingRules = &vschema.KeyspaceRoutingRules{} - } - if err := m.KeyspaceRoutingRules.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Tablets = append(m.Tablets, &topodata.Tablet{}) + if err := m.Tablets[len(m.Tablets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -43684,7 +49188,7 @@ func (m *GetKeyspaceRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetThrottlerStatusRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43707,12 +49211,48 @@ func (m *GetRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetRoutingRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetThrottlerStatusRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetRoutingRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetThrottlerStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} + } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -43735,7 +49275,7 @@ func (m *GetRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetThrottlerStatusResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43758,15 +49298,15 @@ func (m *GetRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetRoutingRulesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetThrottlerStatusResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetRoutingRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetThrottlerStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoutingRules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -43793,10 +49333,10 @@ func (m *GetRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RoutingRules == nil { - m.RoutingRules = &vschema.RoutingRules{} + if m.Status == nil { + m.Status = &tabletmanagerdata.GetThrottlerStatusResponse{} } - if err := m.RoutingRules.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -43822,7 +49362,7 @@ func (m *GetRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSchemaRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetTopologyPathRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43845,83 +49385,15 @@ func (m *GetSchemaRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSchemaRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetTopologyPathRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetTopologyPathRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} - } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tables", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tables = append(m.Tables, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTables", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -43949,53 +49421,13 @@ func (m *GetSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ExcludeTables = append(m.ExcludeTables, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeViews", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeViews = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TableNamesOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TableNamesOnly = bool(v != 0) - case 6: + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TableSizesOnly", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) } - var v int + m.Version = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -44005,15 +49437,14 @@ func (m *GetSchemaRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.Version |= int64(b&0x7F) << shift if b < 0x80 { break } } - m.TableSizesOnly = bool(v != 0) - case 7: + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TableSchemaOnly", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsJson", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -44030,7 +49461,7 @@ func (m *GetSchemaRequest) UnmarshalVT(dAtA []byte) error { break } } - m.TableSchemaOnly = bool(v != 0) + m.AsJson = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -44053,7 +49484,7 @@ func (m *GetSchemaRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSchemaResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetTopologyPathResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -44076,15 +49507,15 @@ func (m *GetSchemaResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSchemaResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetTopologyPathResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetTopologyPathResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -44111,10 +49542,10 @@ func (m *GetSchemaResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Schema == nil { - m.Schema = &tabletmanagerdata.SchemaDefinition{} + if m.Cell == nil { + m.Cell = &TopologyCell{} } - if err := m.Schema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Cell.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -44140,7 +49571,7 @@ func (m *GetSchemaResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSchemaMigrationsRequest) UnmarshalVT(dAtA []byte) error { +func (m *TopologyCell) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -44163,15 +49594,15 @@ func (m *GetSchemaMigrationsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSchemaMigrationsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: TopologyCell: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSchemaMigrationsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TopologyCell: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -44199,11 +49630,11 @@ func (m *GetSchemaMigrationsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -44231,11 +49662,11 @@ func (m *GetSchemaMigrationsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Uuid = string(dAtA[iNdEx:postIndex]) + m.Path = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MigrationContext", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -44263,32 +49694,13 @@ func (m *GetSchemaMigrationsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.MigrationContext = string(dAtA[iNdEx:postIndex]) + m.Data = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= SchemaMigration_Status(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Recent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -44298,71 +49710,29 @@ func (m *GetSchemaMigrationsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Recent == nil { - m.Recent = &vttime.Duration{} - } - if err := m.Recent.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Children = append(m.Children, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType) - } - m.Order = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Order |= QueryOrdering(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - m.Limit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Limit |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: + case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Skip", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) } - m.Skip = 0 + m.Version = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -44372,7 +49742,7 @@ func (m *GetSchemaMigrationsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Skip |= uint64(b&0x7F) << shift + m.Version |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -44399,7 +49769,7 @@ func (m *GetSchemaMigrationsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSchemaMigrationsResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetUnresolvedTransactionsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -44422,17 +49792,17 @@ func (m *GetSchemaMigrationsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSchemaMigrationsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetUnresolvedTransactionsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSchemaMigrationsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetUnresolvedTransactionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Migrations", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -44442,26 +49812,43 @@ func (m *GetSchemaMigrationsResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Migrations = append(m.Migrations, &SchemaMigration{}) - if err := m.Migrations[len(m.Migrations)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AbandonAge", wireType) + } + m.AbandonAge = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AbandonAge |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -44484,7 +49871,7 @@ func (m *GetSchemaMigrationsResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetShardReplicationRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetUnresolvedTransactionsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -44507,49 +49894,17 @@ func (m *GetShardReplicationRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetShardReplicationRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetUnresolvedTransactionsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetShardReplicationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetUnresolvedTransactionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Transactions", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -44559,55 +49914,25 @@ func (m *GetShardReplicationRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF + m.Transactions = append(m.Transactions, &query.TransactionMetadata{}) + if err := m.Transactions[len(m.Transactions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -44631,7 +49956,7 @@ func (m *GetShardReplicationRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetShardReplicationResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetTransactionInfoRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -44654,17 +49979,17 @@ func (m *GetShardReplicationResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetShardReplicationResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetTransactionInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetShardReplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetTransactionInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardReplicationByCell", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -44674,120 +49999,23 @@ func (m *GetShardReplicationResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.ShardReplicationByCell == nil { - m.ShardReplicationByCell = make(map[string]*topodata.ShardReplication) - } - var mapkey string - var mapvalue *topodata.ShardReplication - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &topodata.ShardReplication{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ShardReplicationByCell[mapkey] = mapvalue + m.Dtid = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -44811,7 +50039,7 @@ func (m *GetShardReplicationResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *ShardTransactionState) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -44834,15 +50062,15 @@ func (m *GetShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ShardTransactionState: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ShardTransactionState: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -44870,11 +50098,11 @@ func (m *GetShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -44902,7 +50130,90 @@ func (m *GetShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ShardName = string(dAtA[iNdEx:postIndex]) + m.State = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Message = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeCreated", wireType) + } + m.TimeCreated = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TimeCreated |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statements", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Statements = append(m.Statements, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -44926,7 +50237,7 @@ func (m *GetShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetShardResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetTransactionInfoResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -44949,15 +50260,51 @@ func (m *GetShardResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetShardResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetTransactionInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetTransactionInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &query.TransactionMetadata{} + } + if err := m.Metadata.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ShardStates", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -44984,10 +50331,8 @@ func (m *GetShardResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Shard == nil { - m.Shard = &Shard{} - } - if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.ShardStates = append(m.ShardStates, &ShardTransactionState{}) + if err := m.ShardStates[len(m.ShardStates)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -45013,7 +50358,7 @@ func (m *GetShardResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetShardRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { +func (m *ConcludeTransactionRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -45036,66 +50381,47 @@ func (m *GetShardRoutingRulesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetShardRoutingRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ConcludeTransactionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetShardRoutingRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ConcludeTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetShardRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetShardRoutingRulesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetShardRoutingRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Dtid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardRoutingRules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Participants", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -45122,10 +50448,8 @@ func (m *GetShardRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ShardRoutingRules == nil { - m.ShardRoutingRules = &vschema.ShardRoutingRules{} - } - if err := m.ShardRoutingRules.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Participants = append(m.Participants, &query.Target{}) + if err := m.Participants[len(m.Participants)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -45151,7 +50475,7 @@ func (m *GetShardRoutingRulesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSrvKeyspaceNamesRequest) UnmarshalVT(dAtA []byte) error { +func (m *ConcludeTransactionResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -45174,44 +50498,12 @@ func (m *GetSrvKeyspaceNamesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSrvKeyspaceNamesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ConcludeTransactionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvKeyspaceNamesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ConcludeTransactionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -45234,7 +50526,7 @@ func (m *GetSrvKeyspaceNamesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSrvKeyspaceNamesResponse_NameList) UnmarshalVT(dAtA []byte) error { +func (m *GetVSchemaRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -45257,15 +50549,15 @@ func (m *GetSrvKeyspaceNamesResponse_NameList) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSrvKeyspaceNamesResponse_NameList: wiretype end group for non-group") + return fmt.Errorf("proto: GetVSchemaRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvKeyspaceNamesResponse_NameList: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetVSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -45293,7 +50585,7 @@ func (m *GetSrvKeyspaceNamesResponse_NameList) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -45317,7 +50609,7 @@ func (m *GetSrvKeyspaceNamesResponse_NameList) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSrvKeyspaceNamesResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetVersionRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -45340,15 +50632,15 @@ func (m *GetSrvKeyspaceNamesResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSrvKeyspaceNamesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetVersionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvKeyspaceNamesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetVersionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -45375,105 +50667,12 @@ func (m *GetSrvKeyspaceNamesResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Names == nil { - m.Names = make(map[string]*GetSrvKeyspaceNamesResponse_NameList) + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} } - var mapkey string - var mapvalue *GetSrvKeyspaceNamesResponse_NameList - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &GetSrvKeyspaceNamesResponse_NameList{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Names[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -45497,7 +50696,7 @@ func (m *GetSrvKeyspaceNamesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSrvKeyspacesRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetVersionResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -45520,47 +50719,15 @@ func (m *GetSrvKeyspacesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSrvKeyspacesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetVersionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvKeyspacesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetVersionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -45588,7 +50755,7 @@ func (m *GetSrvKeyspacesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + m.Version = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -45612,7 +50779,7 @@ func (m *GetSrvKeyspacesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSrvKeyspacesResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetVSchemaResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -45635,15 +50802,15 @@ func (m *GetSrvKeyspacesResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSrvKeyspacesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetVSchemaResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvKeyspacesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetVSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SrvKeyspaces", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchema", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -45670,105 +50837,12 @@ func (m *GetSrvKeyspacesResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SrvKeyspaces == nil { - m.SrvKeyspaces = make(map[string]*topodata.SrvKeyspace) + if m.VSchema == nil { + m.VSchema = &vschema.Keyspace{} } - var mapkey string - var mapvalue *topodata.SrvKeyspace - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &topodata.SrvKeyspace{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.VSchema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.SrvKeyspaces[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -45792,7 +50866,7 @@ func (m *GetSrvKeyspacesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *UpdateThrottlerConfigRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetWorkflowsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -45815,10 +50889,10 @@ func (m *UpdateThrottlerConfigRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateThrottlerConfigRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetWorkflowsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateThrottlerConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetWorkflowsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -45853,112 +50927,9 @@ func (m *UpdateThrottlerConfigRequest) UnmarshalVT(dAtA []byte) error { } m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enable = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Disable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Disable = bool(v != 0) - case 4: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Threshold", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Threshold = float64(math.Float64frombits(v)) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CustomQuery", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CustomQuery = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CustomQuerySet", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CustomQuerySet = bool(v != 0) - case 7: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CheckAsCheckSelf", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ActiveOnly", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -45975,10 +50946,10 @@ func (m *UpdateThrottlerConfigRequest) UnmarshalVT(dAtA []byte) error { break } } - m.CheckAsCheckSelf = bool(v != 0) - case 8: + m.ActiveOnly = bool(v != 0) + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CheckAsCheckShard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NameOnly", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -45995,46 +50966,10 @@ func (m *UpdateThrottlerConfigRequest) UnmarshalVT(dAtA []byte) error { break } } - m.CheckAsCheckShard = bool(v != 0) - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ThrottledApp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ThrottledApp == nil { - m.ThrottledApp = &topodata.ThrottledAppRule{} - } - if err := m.ThrottledApp.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: + m.NameOnly = bool(v != 0) + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -46062,13 +50997,13 @@ func (m *UpdateThrottlerConfigRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.MetricName = string(dAtA[iNdEx:postIndex]) + m.Workflow = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AppName", wireType) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeLogs", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -46078,27 +51013,15 @@ func (m *UpdateThrottlerConfigRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AppName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: + m.IncludeLogs = bool(v != 0) + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AppCheckedMetrics", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -46126,7 +51049,7 @@ func (m *UpdateThrottlerConfigRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AppCheckedMetrics = append(m.AppCheckedMetrics, string(dAtA[iNdEx:postIndex])) + m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -46150,7 +51073,7 @@ func (m *UpdateThrottlerConfigRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *UpdateThrottlerConfigResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetWorkflowsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -46173,12 +51096,46 @@ func (m *UpdateThrottlerConfigResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateThrottlerConfigResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetWorkflowsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateThrottlerConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetWorkflowsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Workflows", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Workflows = append(m.Workflows, &Workflow{}) + if err := m.Workflows[len(m.Workflows)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -46201,7 +51158,7 @@ func (m *UpdateThrottlerConfigResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { +func (m *InitShardPrimaryRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -46224,15 +51181,15 @@ func (m *GetSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSrvVSchemaRequest: wiretype end group for non-group") + return fmt.Errorf("proto: InitShardPrimaryRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvVSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: InitShardPrimaryRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -46260,7 +51217,131 @@ func (m *GetSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cell = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Shard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrimaryElectTabletAlias", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrimaryElectTabletAlias == nil { + m.PrimaryElectTabletAlias = &topodata.TabletAlias{} + } + if err := m.PrimaryElectTabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Force = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WaitReplicasTimeout", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.WaitReplicasTimeout == nil { + m.WaitReplicasTimeout = &vttime.Duration{} + } + if err := m.WaitReplicasTimeout.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -46284,7 +51365,7 @@ func (m *GetSrvVSchemaRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSrvVSchemaResponse) UnmarshalVT(dAtA []byte) error { +func (m *InitShardPrimaryResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -46307,15 +51388,15 @@ func (m *GetSrvVSchemaResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSrvVSchemaResponse: wiretype end group for non-group") + return fmt.Errorf("proto: InitShardPrimaryResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvVSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: InitShardPrimaryResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SrvVSchema", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -46342,10 +51423,8 @@ func (m *GetSrvVSchemaResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SrvVSchema == nil { - m.SrvVSchema = &vschema.SrvVSchema{} - } - if err := m.SrvVSchema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Events = append(m.Events, &logutil.Event{}) + if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -46371,7 +51450,7 @@ func (m *GetSrvVSchemaResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSrvVSchemasRequest) UnmarshalVT(dAtA []byte) error { +func (m *LaunchSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -46394,15 +51473,47 @@ func (m *GetSrvVSchemasRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSrvVSchemasRequest: wiretype end group for non-group") + return fmt.Errorf("proto: LaunchSchemaMigrationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvVSchemasRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LaunchSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -46430,7 +51541,43 @@ func (m *GetSrvVSchemasRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + m.Uuid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CallerId == nil { + m.CallerId = &vtrpc.CallerID{} + } + if err := m.CallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -46454,7 +51601,7 @@ func (m *GetSrvVSchemasRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetSrvVSchemasResponse) UnmarshalVT(dAtA []byte) error { +func (m *LaunchSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -46477,15 +51624,15 @@ func (m *GetSrvVSchemasResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetSrvVSchemasResponse: wiretype end group for non-group") + return fmt.Errorf("proto: LaunchSchemaMigrationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetSrvVSchemasResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LaunchSchemaMigrationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SrvVSchemas", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RowsAffectedByShard", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -46512,11 +51659,11 @@ func (m *GetSrvVSchemasResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SrvVSchemas == nil { - m.SrvVSchemas = make(map[string]*vschema.SrvVSchema) + if m.RowsAffectedByShard == nil { + m.RowsAffectedByShard = make(map[string]uint64) } var mapkey string - var mapvalue *vschema.SrvVSchema + var mapvalue uint64 for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -46565,7 +51712,6 @@ func (m *GetSrvVSchemasResponse) UnmarshalVT(dAtA []byte) error { mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey } else if fieldNum == 2 { - var mapmsglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -46575,26 +51721,11 @@ func (m *GetSrvVSchemasResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapmsglen |= int(b&0x7F) << shift + mapvalue |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &vschema.SrvVSchema{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex } else { iNdEx = entryPreIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -46610,7 +51741,7 @@ func (m *GetSrvVSchemasResponse) UnmarshalVT(dAtA []byte) error { iNdEx += skippy } } - m.SrvVSchemas[mapkey] = mapvalue + m.RowsAffectedByShard[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -46634,7 +51765,7 @@ func (m *GetSrvVSchemasResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetTabletRequest) UnmarshalVT(dAtA []byte) error { +func (m *LookupVindexCompleteRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -46657,17 +51788,17 @@ func (m *GetTabletRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetTabletRequest: wiretype end group for non-group") + return fmt.Errorf("proto: LookupVindexCompleteRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LookupVindexCompleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -46677,84 +51808,61 @@ func (m *GetTabletRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} - } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetTabletResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetTabletResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetTabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TableKeyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -46764,28 +51872,75 @@ func (m *GetTabletResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableKeyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LookupVindexCompleteResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.Tablet == nil { - m.Tablet = &topodata.Tablet{} - } - if err := m.Tablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LookupVindexCompleteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LookupVindexCompleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -46808,7 +51963,7 @@ func (m *GetTabletResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetTabletsRequest) UnmarshalVT(dAtA []byte) error { +func (m *LookupVindexCreateRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -46831,10 +51986,10 @@ func (m *GetTabletsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetTabletsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: LookupVindexCreateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetTabletsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LookupVindexCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -46871,7 +52026,7 @@ func (m *GetTabletsRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -46899,7 +52054,7 @@ func (m *GetTabletsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) + m.Workflow = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -46934,28 +52089,8 @@ func (m *GetTabletsRequest) UnmarshalVT(dAtA []byte) error { m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Strict", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Strict = bool(v != 0) - case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAliases", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vindex", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -46982,16 +52117,107 @@ func (m *GetTabletsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TabletAliases = append(m.TabletAliases, &topodata.TabletAlias{}) - if err := m.TabletAliases[len(m.TabletAliases)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Vindex == nil { + m.Vindex = &vschema.Keyspace{} + } + if err := m.Vindex.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContinueAfterCopyWithOwner", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ContinueAfterCopyWithOwner = bool(v != 0) case 6: + if wireType == 0 { + var v topodata.TabletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= topodata.TabletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TabletTypes = append(m.TabletTypes, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + if elementCount != 0 && len(m.TabletTypes) == 0 { + m.TabletTypes = make([]topodata.TabletType, 0, elementCount) + } + for iNdEx < postIndex { + var v topodata.TabletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= topodata.TabletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TabletTypes = append(m.TabletTypes, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field TabletTypes", wireType) + } + case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletSelectionPreference", wireType) } - m.TabletType = 0 + m.TabletSelectionPreference = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -47001,7 +52227,7 @@ func (m *GetTabletsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TabletType |= topodata.TabletType(b&0x7F) << shift + m.TabletSelectionPreference |= tabletmanagerdata.TabletSelectionPreference(b&0x7F) << shift if b < 0x80 { break } @@ -47028,7 +52254,7 @@ func (m *GetTabletsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetTabletsResponse) UnmarshalVT(dAtA []byte) error { +func (m *LookupVindexCreateResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -47051,46 +52277,12 @@ func (m *GetTabletsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetTabletsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: LookupVindexCreateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetTabletsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LookupVindexCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tablets = append(m.Tablets, &topodata.Tablet{}) - if err := m.Tablets[len(m.Tablets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -47113,7 +52305,7 @@ func (m *GetTabletsResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetThrottlerStatusRequest) UnmarshalVT(dAtA []byte) error { +func (m *LookupVindexExternalizeRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -47136,17 +52328,17 @@ func (m *GetThrottlerStatusRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetThrottlerStatusRequest: wiretype end group for non-group") + return fmt.Errorf("proto: LookupVindexExternalizeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetThrottlerStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LookupVindexExternalizeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -47156,28 +52348,108 @@ func (m *GetThrottlerStatusRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableKeyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableKeyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeleteWorkflow", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DeleteWorkflow = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -47200,7 +52472,7 @@ func (m *GetThrottlerStatusRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetThrottlerStatusResponse) UnmarshalVT(dAtA []byte) error { +func (m *LookupVindexExternalizeResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -47223,17 +52495,17 @@ func (m *GetThrottlerStatusResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetThrottlerStatusResponse: wiretype end group for non-group") + return fmt.Errorf("proto: LookupVindexExternalizeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetThrottlerStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LookupVindexExternalizeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkflowStopped", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -47243,28 +52515,32 @@ func (m *GetThrottlerStatusResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &tabletmanagerdata.GetThrottlerStatusResponse{} + m.WorkflowStopped = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkflowDeleted", wireType) } - if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex + m.WorkflowDeleted = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -47287,7 +52563,7 @@ func (m *GetThrottlerStatusResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetTopologyPathRequest) UnmarshalVT(dAtA []byte) error { +func (m *LookupVindexInternalizeRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -47310,15 +52586,15 @@ func (m *GetTopologyPathRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetTopologyPathRequest: wiretype end group for non-group") + return fmt.Errorf("proto: LookupVindexInternalizeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetTopologyPathRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LookupVindexInternalizeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -47346,13 +52622,13 @@ func (m *GetTopologyPathRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Path = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - m.Version = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -47362,16 +52638,29 @@ func (m *GetTopologyPathRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AsJson", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableKeyspace", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -47381,12 +52670,24 @@ func (m *GetTopologyPathRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.AsJson = bool(v != 0) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableKeyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -47409,7 +52710,7 @@ func (m *GetTopologyPathRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetTopologyPathResponse) UnmarshalVT(dAtA []byte) error { +func (m *LookupVindexInternalizeResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -47432,15 +52733,66 @@ func (m *GetTopologyPathResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetTopologyPathResponse: wiretype end group for non-group") + return fmt.Errorf("proto: LookupVindexInternalizeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetTopologyPathResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LookupVindexInternalizeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MaterializeCreateRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MaterializeCreateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MaterializeCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Settings", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -47464,16 +52816,67 @@ func (m *GetTopologyPathResponse) UnmarshalVT(dAtA []byte) error { if postIndex < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Settings == nil { + m.Settings = &MaterializeSettings{} + } + if err := m.Settings.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MaterializeCreateResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.Cell == nil { - m.Cell = &TopologyCell{} - } - if err := m.Cell.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MaterializeCreateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MaterializeCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -47496,7 +52899,7 @@ func (m *GetTopologyPathResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *TopologyCell) UnmarshalVT(dAtA []byte) error { +func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -47519,15 +52922,15 @@ func (m *TopologyCell) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TopologyCell: wiretype end group for non-group") + return fmt.Errorf("proto: MigrateCreateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TopologyCell: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MigrateCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -47555,11 +52958,11 @@ func (m *TopologyCell) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Workflow = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SourceKeyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -47587,11 +52990,11 @@ func (m *TopologyCell) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Path = string(dAtA[iNdEx:postIndex]) + m.SourceKeyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -47619,11 +53022,11 @@ func (m *TopologyCell) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Data = string(dAtA[iNdEx:postIndex]) + m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MountName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -47651,13 +53054,13 @@ func (m *TopologyCell) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Children = append(m.Children, string(dAtA[iNdEx:postIndex])) + m.MountName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } - m.Version = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -47667,65 +53070,135 @@ func (m *TopologyCell) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + intStringLen + if postIndex < 0 { return protohelpers.ErrInvalidLength } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetUnresolvedTransactionsRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType == 0 { + var v topodata.TabletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= topodata.TabletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TabletTypes = append(m.TabletTypes, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + if elementCount != 0 && len(m.TabletTypes) == 0 { + m.TabletTypes = make([]topodata.TabletType, 0, elementCount) + } + for iNdEx < postIndex { + var v topodata.TabletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= topodata.TabletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TabletTypes = append(m.TabletTypes, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field TabletTypes", wireType) } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TabletSelectionPreference", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.TabletSelectionPreference = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TabletSelectionPreference |= tabletmanagerdata.TabletSelectionPreference(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetUnresolvedTransactionsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetUnresolvedTransactionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllTables", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllTables = bool(v != 0) + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IncludeTables", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -47753,13 +53226,13 @@ func (m *GetUnresolvedTransactionsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.IncludeTables = append(m.IncludeTables, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AbandonAge", wireType) + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTables", wireType) } - m.AbandonAge = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -47769,67 +53242,29 @@ func (m *GetUnresolvedTransactionsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AbandonAge |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetUnresolvedTransactionsResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetUnresolvedTransactionsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetUnresolvedTransactionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.ExcludeTables = append(m.ExcludeTables, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 11: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Transactions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SourceTimeZone", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -47839,80 +53274,27 @@ func (m *GetUnresolvedTransactionsResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Transactions = append(m.Transactions, &query.TransactionMetadata{}) - if err := m.Transactions[len(m.Transactions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.SourceTimeZone = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetTransactionInfoRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetTransactionInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetTransactionInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 12: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OnDdl", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -47940,8 +53322,108 @@ func (m *GetTransactionInfoRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Dtid = string(dAtA[iNdEx:postIndex]) + m.OnDdl = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StopAfterCopy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StopAfterCopy = bool(v != 0) + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DropForeignKeys", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DropForeignKeys = bool(v != 0) + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeferSecondaryKeys", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DeferSecondaryKeys = bool(v != 0) + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoStart", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AutoStart = bool(v != 0) + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoRoutingRules", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoRoutingRules = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -47964,7 +53446,7 @@ func (m *GetTransactionInfoRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ShardTransactionState) UnmarshalVT(dAtA []byte) error { +func (m *MigrateCompleteRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -47987,15 +53469,15 @@ func (m *ShardTransactionState) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ShardTransactionState: wiretype end group for non-group") + return fmt.Errorf("proto: MigrateCompleteRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ShardTransactionState: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MigrateCompleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -48023,11 +53505,11 @@ func (m *ShardTransactionState) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) + m.Workflow = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -48055,13 +53537,13 @@ func (m *ShardTransactionState) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.State = string(dAtA[iNdEx:postIndex]) + m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeepData", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -48071,29 +53553,37 @@ func (m *ShardTransactionState) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + m.KeepData = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeepRoutingRules", wireType) } - if postIndex > l { - return io.ErrUnexpectedEOF + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: + m.KeepRoutingRules = bool(v != 0) + case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeCreated", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RenameTables", wireType) } - m.TimeCreated = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -48103,16 +53593,17 @@ func (m *ShardTransactionState) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TimeCreated |= int64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Statements", wireType) + m.RenameTables = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -48122,24 +53613,12 @@ func (m *ShardTransactionState) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Statements = append(m.Statements, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex + m.DryRun = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -48162,7 +53641,7 @@ func (m *ShardTransactionState) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetTransactionInfoResponse) UnmarshalVT(dAtA []byte) error { +func (m *MigrateCompleteResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -48185,17 +53664,17 @@ func (m *GetTransactionInfoResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetTransactionInfoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MigrateCompleteResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetTransactionInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MigrateCompleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Summary", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -48205,33 +53684,29 @@ func (m *GetTransactionInfoResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Metadata == nil { - m.Metadata = &query.TransactionMetadata{} - } - if err := m.Metadata.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Summary = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardStates", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DryRunResults", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -48241,25 +53716,23 @@ func (m *GetTransactionInfoResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ShardStates = append(m.ShardStates, &ShardTransactionState{}) - if err := m.ShardStates[len(m.ShardStates)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.DryRunResults = append(m.DryRunResults, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -48283,7 +53756,7 @@ func (m *GetTransactionInfoResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ConcludeTransactionRequest) UnmarshalVT(dAtA []byte) error { +func (m *MountRegisterRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -48306,15 +53779,15 @@ func (m *ConcludeTransactionRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ConcludeTransactionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: MountRegisterRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ConcludeTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MountRegisterRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TopoType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -48342,13 +53815,13 @@ func (m *ConcludeTransactionRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Dtid = string(dAtA[iNdEx:postIndex]) + m.TopoType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Participants", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TopoServer", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -48358,131 +53831,27 @@ func (m *ConcludeTransactionRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Participants = append(m.Participants, &query.Target{}) - if err := m.Participants[len(m.Participants)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.TopoServer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ConcludeTransactionResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ConcludeTransactionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ConcludeTransactionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetVSchemaRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetVSchemaRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetVSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TopoRoot", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -48510,64 +53879,13 @@ func (m *GetVSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.TopoRoot = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetVersionRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetVersionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetVersionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -48577,27 +53895,23 @@ func (m *GetVersionRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} - } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -48621,7 +53935,7 @@ func (m *GetVersionRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetVersionResponse) UnmarshalVT(dAtA []byte) error { +func (m *MountRegisterResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -48644,44 +53958,12 @@ func (m *GetVersionResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetVersionResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MountRegisterResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetVersionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MountRegisterResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -48704,7 +53986,7 @@ func (m *GetVersionResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetVSchemaResponse) UnmarshalVT(dAtA []byte) error { +func (m *MountUnregisterRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -48727,17 +54009,17 @@ func (m *GetVSchemaResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetVSchemaResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MountUnregisterRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetVSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MountUnregisterRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VSchema", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -48747,27 +54029,23 @@ func (m *GetVSchemaResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.VSchema == nil { - m.VSchema = &vschema.Keyspace{} - } - if err := m.VSchema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -48791,7 +54069,7 @@ func (m *GetVSchemaResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetWorkflowsRequest) UnmarshalVT(dAtA []byte) error { +func (m *MountUnregisterResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -48814,168 +54092,12 @@ func (m *GetWorkflowsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetWorkflowsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: MountUnregisterResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetWorkflowsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MountUnregisterResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ActiveOnly = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NameOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.NameOnly = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Workflow = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeLogs", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeLogs = bool(v != 0) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -48998,7 +54120,7 @@ func (m *GetWorkflowsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetWorkflowsResponse) UnmarshalVT(dAtA []byte) error { +func (m *MountShowRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -49021,17 +54143,17 @@ func (m *GetWorkflowsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetWorkflowsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MountShowRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetWorkflowsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MountShowRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflows", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -49041,25 +54163,23 @@ func (m *GetWorkflowsResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Workflows = append(m.Workflows, &Workflow{}) - if err := m.Workflows[len(m.Workflows)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -49083,7 +54203,7 @@ func (m *GetWorkflowsResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *InitShardPrimaryRequest) UnmarshalVT(dAtA []byte) error { +func (m *MountShowResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -49106,15 +54226,15 @@ func (m *InitShardPrimaryRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: InitShardPrimaryRequest: wiretype end group for non-group") + return fmt.Errorf("proto: MountShowResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: InitShardPrimaryRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MountShowResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TopoType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -49142,11 +54262,11 @@ func (m *InitShardPrimaryRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.TopoType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TopoServer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -49174,13 +54294,13 @@ func (m *InitShardPrimaryRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) + m.TopoServer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PrimaryElectTabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TopoRoot", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -49190,53 +54310,29 @@ func (m *InitShardPrimaryRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.PrimaryElectTabletAlias == nil { - m.PrimaryElectTabletAlias = &topodata.TabletAlias{} - } - if err := m.PrimaryElectTabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.TopoRoot = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Force = bool(v != 0) - case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WaitReplicasTimeout", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -49246,28 +54342,75 @@ func (m *InitShardPrimaryRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.WaitReplicasTimeout == nil { - m.WaitReplicasTimeout = &vttime.Duration{} - } - if err := m.WaitReplicasTimeout.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MountListRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MountListRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MountListRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -49290,7 +54433,7 @@ func (m *InitShardPrimaryRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *InitShardPrimaryResponse) UnmarshalVT(dAtA []byte) error { +func (m *MountListResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -49313,17 +54456,17 @@ func (m *InitShardPrimaryResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: InitShardPrimaryResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MountListResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: InitShardPrimaryResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MountListResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -49333,25 +54476,23 @@ func (m *InitShardPrimaryResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Events = append(m.Events, &logutil.Event{}) - if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -49375,7 +54516,7 @@ func (m *InitShardPrimaryResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *LaunchSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { +func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -49398,15 +54539,15 @@ func (m *LaunchSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LaunchSchemaMigrationRequest: wiretype end group for non-group") + return fmt.Errorf("proto: MoveTablesCreateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LaunchSchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MoveTablesCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -49434,11 +54575,11 @@ func (m *LaunchSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Workflow = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SourceKeyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -49466,13 +54607,13 @@ func (m *LaunchSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Uuid = string(dAtA[iNdEx:postIndex]) + m.SourceKeyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -49482,84 +54623,29 @@ func (m *LaunchSchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.CallerId == nil { - m.CallerId = &vtrpc.CallerID{} - } - if err := m.CallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LaunchSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LaunchSchemaMigrationResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LaunchSchemaMigrationResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RowsAffectedByShard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -49569,29 +54655,27 @@ func (m *LaunchSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.RowsAffectedByShard == nil { - m.RowsAffectedByShard = make(map[string]uint64) - } - var mapkey string - var mapvalue uint64 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType == 0 { + var v topodata.TabletType for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -49601,42 +54685,44 @@ func (m *LaunchSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + v |= topodata.TabletType(b&0x7F) << shift if b < 0x80 { break } } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength + m.TabletTypes = append(m.TabletTypes, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if postStringIndexmapkey > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + if elementCount != 0 && len(m.TabletTypes) == 0 { + m.TabletTypes = make([]topodata.TabletType, 0, elementCount) + } + for iNdEx < postIndex { + var v topodata.TabletType for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -49646,84 +54732,21 @@ func (m *LaunchSchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapvalue |= uint64(b&0x7F) << shift + v |= topodata.TabletType(b&0x7F) << shift if b < 0x80 { break } } - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + m.TabletTypes = append(m.TabletTypes, v) } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field TabletTypes", wireType) } - m.RowsAffectedByShard[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LookupVindexCompleteRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LookupVindexCompleteRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LookupVindexCompleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TabletSelectionPreference", wireType) } - var stringLen uint64 + m.TabletSelectionPreference = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -49733,27 +54756,14 @@ func (m *LookupVindexCompleteRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.TabletSelectionPreference |= tabletmanagerdata.TabletSelectionPreference(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SourceShards", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -49781,13 +54791,13 @@ func (m *LookupVindexCompleteRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.SourceShards = append(m.SourceShards, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableKeyspace", wireType) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllTables", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -49797,129 +54807,47 @@ func (m *LookupVindexCompleteRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TableKeyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LookupVindexCompleteResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.AllTables = bool(v != 0) + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeTables", wireType) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LookupVindexCompleteResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LookupVindexCompleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if (skippy < 0) || (iNdEx+skippy) < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LookupVindexCreateRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LookupVindexCreateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LookupVindexCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.IncludeTables = append(m.IncludeTables, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 10: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTables", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -49947,11 +54875,11 @@ func (m *LookupVindexCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.ExcludeTables = append(m.ExcludeTables, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 2: + case 11: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ExternalClusterName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -49979,11 +54907,11 @@ func (m *LookupVindexCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Workflow = string(dAtA[iNdEx:postIndex]) + m.ExternalClusterName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 12: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SourceTimeZone", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -50011,13 +54939,13 @@ func (m *LookupVindexCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + m.SourceTimeZone = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 13: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vindex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OnDdl", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -50027,31 +54955,47 @@ func (m *LookupVindexCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Vindex == nil { - m.Vindex = &vschema.Keyspace{} + m.OnDdl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StopAfterCopy", wireType) } - if err := m.Vindex.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - case 5: + m.StopAfterCopy = bool(v != 0) + case 15: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContinueAfterCopyWithOwner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DropForeignKeys", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -50068,81 +55012,72 @@ func (m *LookupVindexCreateRequest) UnmarshalVT(dAtA []byte) error { break } } - m.ContinueAfterCopyWithOwner = bool(v != 0) - case 6: - if wireType == 0 { - var v topodata.TabletType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= topodata.TabletType(b&0x7F) << shift - if b < 0x80 { - break - } + m.DropForeignKeys = bool(v != 0) + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeferSecondaryKeys", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - m.TabletTypes = append(m.TabletTypes, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if iNdEx >= l { + return io.ErrUnexpectedEOF } - if packedLen < 0 { - return protohelpers.ErrInvalidLength + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + } + m.DeferSecondaryKeys = bool(v != 0) + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoStart", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - var elementCount int - if elementCount != 0 && len(m.TabletTypes) == 0 { - m.TabletTypes = make([]topodata.TabletType, 0, elementCount) + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break } - for iNdEx < postIndex { - var v topodata.TabletType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= topodata.TabletType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TabletTypes = append(m.TabletTypes, v) + } + m.AutoStart = bool(v != 0) + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoRoutingRules", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field TabletTypes", wireType) } - case 7: + m.NoRoutingRules = bool(v != 0) + case 19: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletSelectionPreference", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AtomicCopy", wireType) } - m.TabletSelectionPreference = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -50152,11 +55087,48 @@ func (m *LookupVindexCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TabletSelectionPreference |= tabletmanagerdata.TabletSelectionPreference(b&0x7F) << shift + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AtomicCopy = bool(v != 0) + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkflowOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.WorkflowOptions == nil { + m.WorkflowOptions = &WorkflowOptions{} + } + if err := m.WorkflowOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -50179,7 +55151,7 @@ func (m *LookupVindexCreateRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *LookupVindexCreateResponse) UnmarshalVT(dAtA []byte) error { +func (m *MoveTablesCreateResponse_TabletInfo) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -50202,12 +55174,68 @@ func (m *LookupVindexCreateResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LookupVindexCreateResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MoveTablesCreateResponse_TabletInfo: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LookupVindexCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MoveTablesCreateResponse_TabletInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tablet == nil { + m.Tablet = &topodata.TabletAlias{} + } + if err := m.Tablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Created = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -50230,7 +55258,7 @@ func (m *LookupVindexCreateResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *LookupVindexExternalizeRequest) UnmarshalVT(dAtA []byte) error { +func (m *MoveTablesCreateResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -50253,15 +55281,15 @@ func (m *LookupVindexExternalizeRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LookupVindexExternalizeRequest: wiretype end group for non-group") + return fmt.Errorf("proto: MoveTablesCreateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LookupVindexExternalizeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MoveTablesCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Summary", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -50289,11 +55317,96 @@ func (m *LookupVindexExternalizeRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Summary = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Details = append(m.Details, &MoveTablesCreateResponse_TabletInfo{}) + if err := m.Details[len(m.Details)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MoveTablesCompleteRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MoveTablesCompleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -50321,11 +55434,11 @@ func (m *LookupVindexExternalizeRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Workflow = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -50353,11 +55466,11 @@ func (m *LookupVindexExternalizeRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TableKeyspace = string(dAtA[iNdEx:postIndex]) + m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteWorkflow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeepData", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -50374,61 +55487,50 @@ func (m *LookupVindexExternalizeRequest) UnmarshalVT(dAtA []byte) error { break } } - m.DeleteWorkflow = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + m.KeepData = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeepRoutingRules", wireType) } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LookupVindexExternalizeResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + m.KeepRoutingRules = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RenameTables", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LookupVindexExternalizeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LookupVindexExternalizeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.RenameTables = bool(v != 0) + case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowStopped", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -50445,10 +55547,42 @@ func (m *LookupVindexExternalizeResponse) UnmarshalVT(dAtA []byte) error { break } } - m.WorkflowStopped = bool(v != 0) - case 2: + m.DryRun = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 9: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowDeleted", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IgnoreSourceKeyspace", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -50465,7 +55599,7 @@ func (m *LookupVindexExternalizeResponse) UnmarshalVT(dAtA []byte) error { break } } - m.WorkflowDeleted = bool(v != 0) + m.IgnoreSourceKeyspace = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -50488,7 +55622,7 @@ func (m *LookupVindexExternalizeResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *LookupVindexInternalizeRequest) UnmarshalVT(dAtA []byte) error { +func (m *MoveTablesCompleteResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -50511,15 +55645,15 @@ func (m *LookupVindexInternalizeRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LookupVindexInternalizeRequest: wiretype end group for non-group") + return fmt.Errorf("proto: MoveTablesCompleteResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LookupVindexInternalizeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MoveTablesCompleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Summary", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -50547,43 +55681,11 @@ func (m *LookupVindexInternalizeRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Summary = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DryRunResults", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -50611,7 +55713,7 @@ func (m *LookupVindexInternalizeRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TableKeyspace = string(dAtA[iNdEx:postIndex]) + m.DryRunResults = append(m.DryRunResults, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -50635,58 +55737,7 @@ func (m *LookupVindexInternalizeRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *LookupVindexInternalizeResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LookupVindexInternalizeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LookupVindexInternalizeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MaterializeCreateRequest) UnmarshalVT(dAtA []byte) error { +func (m *PingTabletRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -50709,15 +55760,15 @@ func (m *MaterializeCreateRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MaterializeCreateRequest: wiretype end group for non-group") + return fmt.Errorf("proto: PingTabletRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MaterializeCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PingTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Settings", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -50744,10 +55795,10 @@ func (m *MaterializeCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Settings == nil { - m.Settings = &MaterializeSettings{} + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} } - if err := m.Settings.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -50773,7 +55824,7 @@ func (m *MaterializeCreateRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MaterializeCreateResponse) UnmarshalVT(dAtA []byte) error { +func (m *PingTabletResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -50796,10 +55847,10 @@ func (m *MaterializeCreateResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MaterializeCreateResponse: wiretype end group for non-group") + return fmt.Errorf("proto: PingTabletResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MaterializeCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PingTabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -50824,7 +55875,7 @@ func (m *MaterializeCreateResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { +func (m *PlannedReparentShardRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -50847,15 +55898,15 @@ func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MigrateCreateRequest: wiretype end group for non-group") + return fmt.Errorf("proto: PlannedReparentShardRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MigrateCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PlannedReparentShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -50883,11 +55934,11 @@ func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Workflow = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -50915,13 +55966,13 @@ func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SourceKeyspace = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NewPrimary", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -50931,29 +55982,33 @@ func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) + if m.NewPrimary == nil { + m.NewPrimary = &topodata.TabletAlias{} + } + if err := m.NewPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MountName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AvoidPrimary", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -50963,29 +56018,33 @@ func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.MountName = string(dAtA[iNdEx:postIndex]) + if m.AvoidPrimary == nil { + m.AvoidPrimary = &topodata.TabletAlias{} + } + if err := m.AvoidPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WaitReplicasTimeout", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -50995,98 +56054,33 @@ func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + if m.WaitReplicasTimeout == nil { + m.WaitReplicasTimeout = &vttime.Duration{} + } + if err := m.WaitReplicasTimeout.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 6: - if wireType == 0 { - var v topodata.TabletType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= topodata.TabletType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TabletTypes = append(m.TabletTypes, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.TabletTypes) == 0 { - m.TabletTypes = make([]topodata.TabletType, 0, elementCount) - } - for iNdEx < postIndex { - var v topodata.TabletType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= topodata.TabletType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TabletTypes = append(m.TabletTypes, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field TabletTypes", wireType) - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletSelectionPreference", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TolerableReplicationLag", wireType) } - m.TabletSelectionPreference = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -51096,14 +56090,31 @@ func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TabletSelectionPreference |= tabletmanagerdata.TabletSelectionPreference(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 8: + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TolerableReplicationLag == nil { + m.TolerableReplicationLag = &vttime.Duration{} + } + if err := m.TolerableReplicationLag.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllTables", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AllowCrossCellPromotion", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -51120,12 +56131,12 @@ func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { break } } - m.AllTables = bool(v != 0) - case 9: + m.AllowCrossCellPromotion = bool(v != 0) + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeTables", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedPrimary", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -51135,59 +56146,82 @@ func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.IncludeTables = append(m.IncludeTables, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTables", wireType) + if m.ExpectedPrimary == nil { + m.ExpectedPrimary = &topodata.TabletAlias{} } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.ExpectedPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.ExcludeTables = append(m.ExcludeTables, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 11: + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PlannedReparentShardResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PlannedReparentShardResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PlannedReparentShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceTimeZone", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -51215,11 +56249,11 @@ func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SourceTimeZone = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 12: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OnDdl", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -51245,75 +56279,15 @@ func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { return protohelpers.ErrInvalidLength } if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OnDdl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StopAfterCopy", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.StopAfterCopy = bool(v != 0) - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DropForeignKeys", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DropForeignKeys = bool(v != 0) - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeferSecondaryKeys", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + return io.ErrUnexpectedEOF } - m.DeferSecondaryKeys = bool(v != 0) - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AutoStart", wireType) + m.Shard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PromotedPrimary", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -51323,17 +56297,33 @@ func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.AutoStart = bool(v != 0) - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NoRoutingRules", wireType) + if msglen < 0 { + return protohelpers.ErrInvalidLength } - var v int + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PromotedPrimary == nil { + m.PromotedPrimary = &topodata.TabletAlias{} + } + if err := m.PromotedPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -51343,12 +56333,26 @@ func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.NoRoutingRules = bool(v != 0) + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Events = append(m.Events, &logutil.Event{}) + if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -51371,7 +56375,7 @@ func (m *MigrateCreateRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MigrateCompleteRequest) UnmarshalVT(dAtA []byte) error { +func (m *RebuildKeyspaceGraphRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -51394,15 +56398,15 @@ func (m *MigrateCompleteRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MigrateCompleteRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RebuildKeyspaceGraphRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MigrateCompleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RebuildKeyspaceGraphRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -51430,11 +56434,11 @@ func (m *MigrateCompleteRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Workflow = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -51462,11 +56466,11 @@ func (m *MigrateCompleteRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 4: + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeepData", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AllowPartial", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -51483,67 +56487,58 @@ func (m *MigrateCompleteRequest) UnmarshalVT(dAtA []byte) error { break } } - m.KeepData = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeepRoutingRules", wireType) + m.AllowPartial = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength } - m.KeepRoutingRules = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RenameTables", wireType) + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RebuildKeyspaceGraphResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - m.RenameTables = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - m.DryRun = bool(v != 0) + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RebuildKeyspaceGraphResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RebuildKeyspaceGraphResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -51566,7 +56561,7 @@ func (m *MigrateCompleteRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MigrateCompleteResponse) UnmarshalVT(dAtA []byte) error { +func (m *RebuildVSchemaGraphRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -51589,15 +56584,15 @@ func (m *MigrateCompleteResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MigrateCompleteResponse: wiretype end group for non-group") + return fmt.Errorf("proto: RebuildVSchemaGraphRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MigrateCompleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RebuildVSchemaGraphRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Summary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -51625,13 +56620,115 @@ func (m *MigrateCompleteResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Summary = string(dAtA[iNdEx:postIndex]) + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RebuildVSchemaGraphResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RebuildVSchemaGraphResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RebuildVSchemaGraphResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RefreshStateRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RefreshStateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RefreshStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DryRunResults", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -51641,23 +56738,27 @@ func (m *MigrateCompleteResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.DryRunResults = append(m.DryRunResults, string(dAtA[iNdEx:postIndex])) + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} + } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -51681,7 +56782,7 @@ func (m *MigrateCompleteResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MountRegisterRequest) UnmarshalVT(dAtA []byte) error { +func (m *RefreshStateResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -51704,15 +56805,66 @@ func (m *MountRegisterRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MountRegisterRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RefreshStateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MountRegisterRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RefreshStateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RefreshStateByShardRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RefreshStateByShardRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RefreshStateByShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TopoType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -51740,11 +56892,11 @@ func (m *MountRegisterRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TopoType = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TopoServer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -51772,11 +56924,114 @@ func (m *MountRegisterRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TopoServer = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TopoRoot", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RefreshStateByShardResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RefreshStateByShardResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RefreshStateByShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsPartialRefresh", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsPartialRefresh = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PartialRefreshDetails", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -51801,16 +57056,67 @@ func (m *MountRegisterRequest) UnmarshalVT(dAtA []byte) error { if postIndex < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PartialRefreshDetails = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReloadSchemaRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.TopoRoot = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReloadSchemaRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReloadSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -51820,23 +57126,27 @@ func (m *MountRegisterRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} + } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -51860,7 +57170,7 @@ func (m *MountRegisterRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MountRegisterResponse) UnmarshalVT(dAtA []byte) error { +func (m *ReloadSchemaResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -51883,10 +57193,10 @@ func (m *MountRegisterResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MountRegisterResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ReloadSchemaResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MountRegisterResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReloadSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -51911,7 +57221,7 @@ func (m *MountRegisterResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MountUnregisterRequest) UnmarshalVT(dAtA []byte) error { +func (m *ReloadSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -51934,15 +57244,15 @@ func (m *MountUnregisterRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MountUnregisterRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ReloadSchemaKeyspaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MountUnregisterRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReloadSchemaKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 4: + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -51970,59 +57280,79 @@ func (m *MountUnregisterRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WaitPosition", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - if (iNdEx + skippy) > l { + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { return io.ErrUnexpectedEOF } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MountUnregisterResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + m.WaitPosition = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludePrimary", wireType) } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.IncludePrimary = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Concurrency", wireType) + } + m.Concurrency = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Concurrency |= int32(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MountUnregisterResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MountUnregisterResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -52045,7 +57375,7 @@ func (m *MountUnregisterResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MountShowRequest) UnmarshalVT(dAtA []byte) error { +func (m *ReloadSchemaKeyspaceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -52068,17 +57398,17 @@ func (m *MountShowRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MountShowRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ReloadSchemaKeyspaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MountShowRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReloadSchemaKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 4: + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -52088,23 +57418,25 @@ func (m *MountShowRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Events = append(m.Events, &logutil.Event{}) + if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -52128,7 +57460,7 @@ func (m *MountShowRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MountShowResponse) UnmarshalVT(dAtA []byte) error { +func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -52151,15 +57483,15 @@ func (m *MountShowResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MountShowResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ReloadSchemaShardRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MountShowResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReloadSchemaShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TopoType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -52187,11 +57519,11 @@ func (m *MountShowResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TopoType = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TopoServer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -52219,11 +57551,11 @@ func (m *MountShowResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TopoServer = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TopoRoot", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WaitPosition", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -52251,13 +57583,13 @@ func (m *MountShowResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TopoRoot = string(dAtA[iNdEx:postIndex]) + m.WaitPosition = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludePrimary", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -52267,75 +57599,31 @@ func (m *MountShowResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MountListRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + m.IncludePrimary = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Concurrency", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Concurrency = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Concurrency |= int32(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MountListRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MountListRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -52358,7 +57646,7 @@ func (m *MountListRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MountListResponse) UnmarshalVT(dAtA []byte) error { +func (m *ReloadSchemaShardResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -52381,17 +57669,17 @@ func (m *MountListResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MountListResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ReloadSchemaShardResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MountListResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReloadSchemaShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -52401,23 +57689,25 @@ func (m *MountListResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) + m.Events = append(m.Events, &logutil.Event{}) + if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -52441,7 +57731,7 @@ func (m *MountListResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { +func (m *RemoveBackupRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -52464,15 +57754,15 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MoveTablesCreateRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RemoveBackupRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MoveTablesCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RemoveBackupRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -52500,11 +57790,11 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Workflow = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -52532,11 +57822,11 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SourceKeyspace = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -52564,114 +57854,115 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveBackupResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveBackupResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveBackupResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType == 0 { - var v topodata.TabletType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= topodata.TabletType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TabletTypes = append(m.TabletTypes, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.TabletTypes) == 0 { - m.TabletTypes = make([]topodata.TabletType, 0, elementCount) - } - for iNdEx < postIndex { - var v topodata.TabletType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= topodata.TabletType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TabletTypes = append(m.TabletTypes, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field TabletTypes", wireType) + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveKeyspaceCellRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletSelectionPreference", wireType) + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - m.TabletSelectionPreference = 0 + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveKeyspaceCellRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveKeyspaceCellRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -52681,14 +57972,27 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TabletSelectionPreference |= tabletmanagerdata.TabletSelectionPreference(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 7: + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceShards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -52716,11 +58020,11 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SourceShards = append(m.SourceShards, string(dAtA[iNdEx:postIndex])) + m.Cell = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllTables", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -52737,12 +58041,12 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { break } } - m.AllTables = bool(v != 0) - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeTables", wireType) + m.Force = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Recursive", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -52752,59 +58056,117 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + m.Recursive = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.IncludeTables = append(m.IncludeTables, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTables", wireType) + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveKeyspaceCellResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if iNdEx >= l { + return io.ErrUnexpectedEOF } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveKeyspaceCellResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveKeyspaceCellResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.ExcludeTables = append(m.ExcludeTables, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 11: + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveShardCellRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveShardCellRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveShardCellRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalClusterName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -52832,11 +58194,11 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ExternalClusterName = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 12: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceTimeZone", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ShardName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -52864,11 +58226,11 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SourceTimeZone = string(dAtA[iNdEx:postIndex]) + m.ShardName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 13: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OnDdl", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -52896,91 +58258,11 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.OnDdl = string(dAtA[iNdEx:postIndex]) + m.Cell = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StopAfterCopy", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.StopAfterCopy = bool(v != 0) - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DropForeignKeys", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DropForeignKeys = bool(v != 0) - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeferSecondaryKeys", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DeferSecondaryKeys = bool(v != 0) - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AutoStart", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AutoStart = bool(v != 0) - case 18: + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NoRoutingRules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -52997,10 +58279,10 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { break } } - m.NoRoutingRules = bool(v != 0) - case 19: + m.Force = bool(v != 0) + case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AtomicCopy", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Recursive", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -53017,43 +58299,58 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { break } } - m.AtomicCopy = bool(v != 0) - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength + m.Recursive = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.WorkflowOptions == nil { - m.WorkflowOptions = &WorkflowOptions{} + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveShardCellResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if err := m.WorkflowOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveShardCellResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveShardCellResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -53076,7 +58373,7 @@ func (m *MoveTablesCreateRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MoveTablesCreateResponse_TabletInfo) UnmarshalVT(dAtA []byte) error { +func (m *ReparentTabletRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -53099,10 +58396,10 @@ func (m *MoveTablesCreateResponse_TabletInfo) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MoveTablesCreateResponse_TabletInfo: wiretype end group for non-group") + return fmt.Errorf("proto: ReparentTabletRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MoveTablesCreateResponse_TabletInfo: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReparentTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -53141,26 +58438,6 @@ func (m *MoveTablesCreateResponse_TabletInfo) UnmarshalVT(dAtA []byte) error { return err } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Created = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -53183,7 +58460,7 @@ func (m *MoveTablesCreateResponse_TabletInfo) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MoveTablesCreateResponse) UnmarshalVT(dAtA []byte) error { +func (m *ReparentTabletResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -53206,15 +58483,15 @@ func (m *MoveTablesCreateResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MoveTablesCreateResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ReparentTabletResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MoveTablesCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReparentTabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Summary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -53242,11 +58519,43 @@ func (m *MoveTablesCreateResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Summary = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Shard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Primary", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -53273,8 +58582,10 @@ func (m *MoveTablesCreateResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Details = append(m.Details, &MoveTablesCreateResponse_TabletInfo{}) - if err := m.Details[len(m.Details)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Primary == nil { + m.Primary = &topodata.TabletAlias{} + } + if err := m.Primary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -53300,7 +58611,7 @@ func (m *MoveTablesCreateResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { +func (m *ReshardCreateRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -53323,10 +58634,10 @@ func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MoveTablesCompleteRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ReshardCreateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MoveTablesCompleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReshardCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -53361,9 +58672,41 @@ func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { } m.Workflow = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SourceShards", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -53391,13 +58734,13 @@ func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) + m.SourceShards = append(m.SourceShards, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeepData", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetShards", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -53407,17 +58750,29 @@ func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.KeepData = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeepRoutingRules", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetShards = append(m.TargetShards, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -53427,17 +58782,98 @@ func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.KeepRoutingRules = bool(v != 0) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex case 6: + if wireType == 0 { + var v topodata.TabletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= topodata.TabletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TabletTypes = append(m.TabletTypes, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + if elementCount != 0 && len(m.TabletTypes) == 0 { + m.TabletTypes = make([]topodata.TabletType, 0, elementCount) + } + for iNdEx < postIndex { + var v topodata.TabletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= topodata.TabletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TabletTypes = append(m.TabletTypes, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field TabletTypes", wireType) + } + case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RenameTables", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletSelectionPreference", wireType) } - var v int + m.TabletSelectionPreference = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -53447,15 +58883,14 @@ func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.TabletSelectionPreference |= tabletmanagerdata.TabletSelectionPreference(b&0x7F) << shift if b < 0x80 { break } } - m.RenameTables = bool(v != 0) - case 7: + case 8: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SkipSchemaCopy", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -53472,10 +58907,10 @@ func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { break } } - m.DryRun = bool(v != 0) - case 8: + m.SkipSchemaCopy = bool(v != 0) + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OnDdl", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -53503,11 +58938,11 @@ func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) + m.OnDdl = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 9: + case 10: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IgnoreSourceKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StopAfterCopy", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -53524,63 +58959,12 @@ func (m *MoveTablesCompleteRequest) UnmarshalVT(dAtA []byte) error { break } } - m.IgnoreSourceKeyspace = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MoveTablesCompleteResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MoveTablesCompleteResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MoveTablesCompleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Summary", wireType) + m.StopAfterCopy = bool(v != 0) + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeferSecondaryKeys", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -53590,29 +58974,17 @@ func (m *MoveTablesCompleteResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Summary = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DryRunResults", wireType) + m.DeferSecondaryKeys = bool(v != 0) + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoStart", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -53622,78 +58994,15 @@ func (m *MoveTablesCompleteResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DryRunResults = append(m.DryRunResults, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PingTabletRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PingTabletRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PingTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.AutoStart = bool(v != 0) + case 13: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WorkflowOptions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -53720,10 +59029,10 @@ func (m *PingTabletRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} + if m.WorkflowOptions == nil { + m.WorkflowOptions = &WorkflowOptions{} } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.WorkflowOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -53749,58 +59058,7 @@ func (m *PingTabletRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *PingTabletResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PingTabletResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PingTabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PlannedReparentShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *RestoreFromBackupRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -53823,17 +59081,17 @@ func (m *PlannedReparentShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PlannedReparentShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RestoreFromBackupRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PlannedReparentShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RestoreFromBackupRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -53843,59 +59101,31 @@ func (m *PlannedReparentShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewPrimary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BackupTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -53922,18 +59152,18 @@ func (m *PlannedReparentShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.NewPrimary == nil { - m.NewPrimary = &topodata.TabletAlias{} + if m.BackupTime == nil { + m.BackupTime = &vttime.Time{} } - if err := m.NewPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.BackupTime.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AvoidPrimary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RestoreToPos", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -53943,33 +59173,29 @@ func (m *PlannedReparentShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.AvoidPrimary == nil { - m.AvoidPrimary = &topodata.TabletAlias{} - } - if err := m.AvoidPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.RestoreToPos = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WaitReplicasTimeout", wireType) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -53979,31 +59205,15 @@ func (m *PlannedReparentShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WaitReplicasTimeout == nil { - m.WaitReplicasTimeout = &vttime.Duration{} - } - if err := m.WaitReplicasTimeout.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: + m.DryRun = bool(v != 0) + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TolerableReplicationLag", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RestoreToTimestamp", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -54030,38 +59240,18 @@ func (m *PlannedReparentShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TolerableReplicationLag == nil { - m.TolerableReplicationLag = &vttime.Duration{} + if m.RestoreToTimestamp == nil { + m.RestoreToTimestamp = &vttime.Time{} } - if err := m.TolerableReplicationLag.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.RestoreToTimestamp.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowCrossCellPromotion", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowCrossCellPromotion = bool(v != 0) - case 8: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpectedPrimary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AllowedBackupEngines", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -54071,27 +59261,23 @@ func (m *PlannedReparentShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.ExpectedPrimary == nil { - m.ExpectedPrimary = &topodata.TabletAlias{} - } - if err := m.ExpectedPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.AllowedBackupEngines = append(m.AllowedBackupEngines, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -54115,7 +59301,7 @@ func (m *PlannedReparentShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *PlannedReparentShardResponse) UnmarshalVT(dAtA []byte) error { +func (m *RestoreFromBackupResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -54138,17 +59324,17 @@ func (m *PlannedReparentShardResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PlannedReparentShardResponse: wiretype end group for non-group") + return fmt.Errorf("proto: RestoreFromBackupResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PlannedReparentShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RestoreFromBackupResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -54158,27 +59344,31 @@ func (m *PlannedReparentShardResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} + } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -54206,13 +59396,13 @@ func (m *PlannedReparentShardResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PromotedPrimary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -54222,31 +59412,27 @@ func (m *PlannedReparentShardResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.PromotedPrimary == nil { - m.PromotedPrimary = &topodata.TabletAlias{} - } - if err := m.PromotedPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -54273,8 +59459,10 @@ func (m *PlannedReparentShardResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Events = append(m.Events, &logutil.Event{}) - if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Event == nil { + m.Event = &logutil.Event{} + } + if err := m.Event.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -54300,7 +59488,7 @@ func (m *PlannedReparentShardResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RebuildKeyspaceGraphRequest) UnmarshalVT(dAtA []byte) error { +func (m *RetrySchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -54323,10 +59511,10 @@ func (m *RebuildKeyspaceGraphRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RebuildKeyspaceGraphRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RetrySchemaMigrationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RebuildKeyspaceGraphRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RetrySchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -54363,7 +59551,7 @@ func (m *RebuildKeyspaceGraphRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -54391,13 +59579,13 @@ func (m *RebuildKeyspaceGraphRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + m.Uuid = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowPartial", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -54407,63 +59595,28 @@ func (m *RebuildKeyspaceGraphRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.AllowPartial = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + if msglen < 0 { + return protohelpers.ErrInvalidLength } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + msglen + if postIndex < 0 { return protohelpers.ErrInvalidLength } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RebuildKeyspaceGraphResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.CallerId == nil { + m.CallerId = &vtrpc.CallerID{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.CallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RebuildKeyspaceGraphResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RebuildKeyspaceGraphResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -54486,7 +59639,7 @@ func (m *RebuildKeyspaceGraphResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RebuildVSchemaGraphRequest) UnmarshalVT(dAtA []byte) error { +func (m *RetrySchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -54509,17 +59662,17 @@ func (m *RebuildVSchemaGraphRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RebuildVSchemaGraphRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RetrySchemaMigrationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RebuildVSchemaGraphRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RetrySchemaMigrationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RowsAffectedByShard", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -54529,75 +59682,105 @@ func (m *RebuildVSchemaGraphRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RebuildVSchemaGraphResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.RowsAffectedByShard == nil { + m.RowsAffectedByShard = make(map[string]uint64) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var mapkey string + var mapvalue uint64 + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RebuildVSchemaGraphResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RebuildVSchemaGraphResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + m.RowsAffectedByShard[mapkey] = mapvalue + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -54620,7 +59803,7 @@ func (m *RebuildVSchemaGraphResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RefreshStateRequest) UnmarshalVT(dAtA []byte) error { +func (m *RunHealthCheckRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -54643,10 +59826,10 @@ func (m *RefreshStateRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RefreshStateRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RunHealthCheckRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RefreshStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RunHealthCheckRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -54707,7 +59890,7 @@ func (m *RefreshStateRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RefreshStateResponse) UnmarshalVT(dAtA []byte) error { +func (m *RunHealthCheckResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -54730,10 +59913,10 @@ func (m *RefreshStateResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RefreshStateResponse: wiretype end group for non-group") + return fmt.Errorf("proto: RunHealthCheckResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RefreshStateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RunHealthCheckResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -54758,7 +59941,7 @@ func (m *RefreshStateResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RefreshStateByShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *SetKeyspaceDurabilityPolicyRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -54781,10 +59964,10 @@ func (m *RefreshStateByShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RefreshStateByShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SetKeyspaceDurabilityPolicyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RefreshStateByShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetKeyspaceDurabilityPolicyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -54821,39 +60004,7 @@ func (m *RefreshStateByShardRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DurabilityPolicy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -54881,7 +60032,7 @@ func (m *RefreshStateByShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) + m.DurabilityPolicy = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -54905,7 +60056,7 @@ func (m *RefreshStateByShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RefreshStateByShardResponse) UnmarshalVT(dAtA []byte) error { +func (m *SetKeyspaceDurabilityPolicyResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -54928,37 +60079,17 @@ func (m *RefreshStateByShardResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RefreshStateByShardResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SetKeyspaceDurabilityPolicyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RefreshStateByShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetKeyspaceDurabilityPolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsPartialRefresh", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsPartialRefresh = bool(v != 0) - case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PartialRefreshDetails", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -54968,23 +60099,27 @@ func (m *RefreshStateByShardResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.PartialRefreshDetails = string(dAtA[iNdEx:postIndex]) + if m.Keyspace == nil { + m.Keyspace = &topodata.Keyspace{} + } + if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -55008,7 +60143,7 @@ func (m *RefreshStateByShardResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReloadSchemaRequest) UnmarshalVT(dAtA []byte) error { +func (m *SetKeyspaceShardingInfoRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -55031,17 +60166,17 @@ func (m *ReloadSchemaRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReloadSchemaRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SetKeyspaceShardingInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReloadSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetKeyspaceShardingInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -55051,28 +60186,44 @@ func (m *ReloadSchemaRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex + m.Force = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -55095,7 +60246,7 @@ func (m *ReloadSchemaRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReloadSchemaResponse) UnmarshalVT(dAtA []byte) error { +func (m *SetKeyspaceShardingInfoResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -55118,12 +60269,48 @@ func (m *ReloadSchemaResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReloadSchemaResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SetKeyspaceShardingInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReloadSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetKeyspaceShardingInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Keyspace == nil { + m.Keyspace = &topodata.Keyspace{} + } + if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -55146,7 +60333,7 @@ func (m *ReloadSchemaResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReloadSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *SetShardIsPrimaryServingRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -55169,10 +60356,10 @@ func (m *ReloadSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReloadSchemaKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SetShardIsPrimaryServingRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReloadSchemaKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetShardIsPrimaryServingRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -55209,7 +60396,7 @@ func (m *ReloadSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WaitPosition", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -55237,11 +60424,11 @@ func (m *ReloadSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.WaitPosition = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludePrimary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsServing", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -55258,26 +60445,7 @@ func (m *ReloadSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { break } } - m.IncludePrimary = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Concurrency", wireType) - } - m.Concurrency = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Concurrency |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } + m.IsServing = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -55300,7 +60468,7 @@ func (m *ReloadSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReloadSchemaKeyspaceResponse) UnmarshalVT(dAtA []byte) error { +func (m *SetShardIsPrimaryServingResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -55323,15 +60491,15 @@ func (m *ReloadSchemaKeyspaceResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReloadSchemaKeyspaceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SetShardIsPrimaryServingResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReloadSchemaKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetShardIsPrimaryServingResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -55358,8 +60526,10 @@ func (m *ReloadSchemaKeyspaceResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Events = append(m.Events, &logutil.Event{}) - if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Shard == nil { + m.Shard = &topodata.Shard{} + } + if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -55385,7 +60555,7 @@ func (m *ReloadSchemaKeyspaceResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *SetShardTabletControlRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -55408,10 +60578,10 @@ func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReloadSchemaShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SetShardTabletControlRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReloadSchemaShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetShardTabletControlRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -55479,8 +60649,27 @@ func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TabletType", wireType) + } + m.TabletType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TabletType |= topodata.TabletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WaitPosition", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -55508,11 +60697,43 @@ func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.WaitPosition = string(dAtA[iNdEx:postIndex]) + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 4: + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeniedTables", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DeniedTables = append(m.DeniedTables, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludePrimary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DisableQueryService", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -55529,12 +60750,12 @@ func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { break } } - m.IncludePrimary = bool(v != 0) - case 5: + m.DisableQueryService = bool(v != 0) + case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Concurrency", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Remove", wireType) } - m.Concurrency = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -55544,11 +60765,12 @@ func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Concurrency |= int32(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } + m.Remove = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -55571,7 +60793,7 @@ func (m *ReloadSchemaShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReloadSchemaShardResponse) UnmarshalVT(dAtA []byte) error { +func (m *SetShardTabletControlResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -55594,15 +60816,102 @@ func (m *ReloadSchemaShardResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReloadSchemaShardResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SetShardTabletControlResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReloadSchemaShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetShardTabletControlResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 2: + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Shard == nil { + m.Shard = &topodata.Shard{} + } + if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetWritableRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetWritableRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetWritableRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -55626,14 +60935,87 @@ func (m *ReloadSchemaShardResponse) UnmarshalVT(dAtA []byte) error { if postIndex < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} + } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Writable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Writable = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetWritableResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Events = append(m.Events, &logutil.Event{}) - if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetWritableResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetWritableResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -55656,7 +61038,7 @@ func (m *ReloadSchemaShardResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RemoveBackupRequest) UnmarshalVT(dAtA []byte) error { +func (m *ShardReplicationAddRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -55679,10 +61061,10 @@ func (m *RemoveBackupRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RemoveBackupRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ShardReplicationAddRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveBackupRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ShardReplicationAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -55751,9 +61133,9 @@ func (m *RemoveBackupRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -55763,23 +61145,27 @@ func (m *RemoveBackupRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} + } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -55803,7 +61189,7 @@ func (m *RemoveBackupRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RemoveBackupResponse) UnmarshalVT(dAtA []byte) error { +func (m *ShardReplicationAddResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -55826,10 +61212,10 @@ func (m *RemoveBackupResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RemoveBackupResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ShardReplicationAddResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveBackupResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ShardReplicationAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -55854,7 +61240,7 @@ func (m *RemoveBackupResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RemoveKeyspaceCellRequest) UnmarshalVT(dAtA []byte) error { +func (m *ShardReplicationFixRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -55877,10 +61263,10 @@ func (m *RemoveKeyspaceCellRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RemoveKeyspaceCellRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ShardReplicationFixRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveKeyspaceCellRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ShardReplicationFixRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -55917,7 +61303,7 @@ func (m *RemoveKeyspaceCellRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -55945,13 +61331,13 @@ func (m *RemoveKeyspaceCellRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cell = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -55961,32 +61347,24 @@ func (m *RemoveKeyspaceCellRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.Force = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Recursive", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - m.Recursive = bool(v != 0) + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cell = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -56009,7 +61387,7 @@ func (m *RemoveKeyspaceCellRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RemoveKeyspaceCellResponse) UnmarshalVT(dAtA []byte) error { +func (m *ShardReplicationFixResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -56032,12 +61410,48 @@ func (m *RemoveKeyspaceCellResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RemoveKeyspaceCellResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ShardReplicationFixResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveKeyspaceCellResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ShardReplicationFixResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &topodata.ShardReplicationError{} + } + if err := m.Error.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -56060,7 +61474,7 @@ func (m *RemoveKeyspaceCellResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RemoveShardCellRequest) UnmarshalVT(dAtA []byte) error { +func (m *ShardReplicationPositionsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -56083,10 +61497,10 @@ func (m *RemoveShardCellRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RemoveShardCellRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ShardReplicationPositionsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveShardCellRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ShardReplicationPositionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -56123,39 +61537,7 @@ func (m *RemoveShardCellRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ShardName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -56183,48 +61565,8 @@ func (m *RemoveShardCellRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Cell = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Force = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Recursive", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Recursive = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -56247,7 +61589,7 @@ func (m *RemoveShardCellRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RemoveShardCellResponse) UnmarshalVT(dAtA []byte) error { +func (m *ShardReplicationPositionsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -56270,66 +61612,144 @@ func (m *RemoveShardCellResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RemoveShardCellResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ShardReplicationPositionsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveShardCellResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ShardReplicationPositionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplicationStatuses", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + if msglen < 0 { + return protohelpers.ErrInvalidLength } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReparentTabletRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.ReplicationStatuses == nil { + m.ReplicationStatuses = make(map[string]*replicationdata.Status) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReparentTabletRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReparentTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + var mapkey string + var mapvalue *replicationdata.Status + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &replicationdata.Status{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ReplicationStatuses[mapkey] = mapvalue + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletMap", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -56346,22 +61766,115 @@ func (m *ReparentTabletRequest) UnmarshalVT(dAtA []byte) error { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Tablet == nil { - m.Tablet = &topodata.TabletAlias{} - } - if err := m.Tablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TabletMap == nil { + m.TabletMap = make(map[string]*topodata.Tablet) + } + var mapkey string + var mapvalue *topodata.Tablet + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &topodata.Tablet{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.TabletMap[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -56385,7 +61898,7 @@ func (m *ReparentTabletRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReparentTabletResponse) UnmarshalVT(dAtA []byte) error { +func (m *ShardReplicationRemoveRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -56408,10 +61921,10 @@ func (m *ReparentTabletResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReparentTabletResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ShardReplicationRemoveRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReparentTabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ShardReplicationRemoveRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -56480,7 +61993,7 @@ func (m *ReparentTabletResponse) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Primary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -56507,10 +62020,10 @@ func (m *ReparentTabletResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Primary == nil { - m.Primary = &topodata.TabletAlias{} + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} } - if err := m.Primary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -56536,7 +62049,7 @@ func (m *ReparentTabletResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ReshardCreateRequest) UnmarshalVT(dAtA []byte) error { +func (m *ShardReplicationRemoveResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -56559,81 +62072,68 @@ func (m *ReshardCreateRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReshardCreateRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ShardReplicationRemoveResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReshardCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ShardReplicationRemoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.Workflow = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SleepTabletRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SleepTabletRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SleepTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceShards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -56643,61 +62143,33 @@ func (m *ReshardCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.SourceShards = append(m.SourceShards, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetShards", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.TargetShards = append(m.TargetShards, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 5: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -56707,260 +62179,79 @@ func (m *ReshardCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType == 0 { - var v topodata.TabletType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= topodata.TabletType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TabletTypes = append(m.TabletTypes, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.TabletTypes) == 0 { - m.TabletTypes = make([]topodata.TabletType, 0, elementCount) - } - for iNdEx < postIndex { - var v topodata.TabletType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= topodata.TabletType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TabletTypes = append(m.TabletTypes, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field TabletTypes", wireType) - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletSelectionPreference", wireType) - } - m.TabletSelectionPreference = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TabletSelectionPreference |= tabletmanagerdata.TabletSelectionPreference(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipSchemaCopy", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SkipSchemaCopy = bool(v != 0) - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OnDdl", wireType) + if m.Duration == nil { + m.Duration = &vttime.Duration{} } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.Duration.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.OnDdl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StopAfterCopy", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.StopAfterCopy = bool(v != 0) - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeferSecondaryKeys", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DeferSecondaryKeys = bool(v != 0) - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AutoStart", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AutoStart = bool(v != 0) - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SleepTabletResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.WorkflowOptions == nil { - m.WorkflowOptions = &WorkflowOptions{} - } - if err := m.WorkflowOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SleepTabletResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SleepTabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -56983,7 +62274,7 @@ func (m *ReshardCreateRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RestoreFromBackupRequest) UnmarshalVT(dAtA []byte) error { +func (m *SourceShardAddRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -57006,17 +62297,49 @@ func (m *RestoreFromBackupRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RestoreFromBackupRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SourceShardAddRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RestoreFromBackupRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SourceShardAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -57026,33 +62349,29 @@ func (m *RestoreFromBackupRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} - } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BackupTime", wireType) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) } - var msglen int + m.Uid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -57062,31 +62381,14 @@ func (m *RestoreFromBackupRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Uid |= int32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.BackupTime == nil { - m.BackupTime = &vttime.Time{} - } - if err := m.BackupTime.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RestoreToPos", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SourceKeyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -57114,13 +62416,13 @@ func (m *RestoreFromBackupRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RestoreToPos = string(dAtA[iNdEx:postIndex]) + m.SourceKeyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceShard", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -57130,15 +62432,27 @@ func (m *RestoreFromBackupRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.DryRun = bool(v != 0) - case 5: + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceShard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RestoreToTimestamp", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyRange", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -57165,16 +62479,16 @@ func (m *RestoreFromBackupRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RestoreToTimestamp == nil { - m.RestoreToTimestamp = &vttime.Time{} + if m.KeyRange == nil { + m.KeyRange = &topodata.KeyRange{} } - if err := m.RestoreToTimestamp.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.KeyRange.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 6: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedBackupEngines", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tables", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -57202,7 +62516,7 @@ func (m *RestoreFromBackupRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AllowedBackupEngines = append(m.AllowedBackupEngines, string(dAtA[iNdEx:postIndex])) + m.Tables = append(m.Tables, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -57226,7 +62540,7 @@ func (m *RestoreFromBackupRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RestoreFromBackupResponse) UnmarshalVT(dAtA []byte) error { +func (m *SourceShardAddResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -57249,15 +62563,15 @@ func (m *RestoreFromBackupResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RestoreFromBackupResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SourceShardAddResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RestoreFromBackupResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SourceShardAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -57284,14 +62598,65 @@ func (m *RestoreFromBackupResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} + if m.Shard == nil { + m.Shard = &topodata.Shard{} } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SourceShardDeleteRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SourceShardDeleteRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SourceShardDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } @@ -57323,7 +62688,7 @@ func (m *RestoreFromBackupResponse) UnmarshalVT(dAtA []byte) error { } m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } @@ -57355,11 +62720,11 @@ func (m *RestoreFromBackupResponse) UnmarshalVT(dAtA []byte) error { } m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) } - var msglen int + m.Uid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -57369,28 +62734,11 @@ func (m *RestoreFromBackupResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Uid |= int32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Event == nil { - m.Event = &logutil.Event{} - } - if err := m.Event.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -57413,7 +62761,7 @@ func (m *RestoreFromBackupResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RetrySchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { +func (m *SourceShardDeleteResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -57436,79 +62784,15 @@ func (m *RetrySchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RetrySchemaMigrationRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SourceShardDeleteResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RetrySchemaMigrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SourceShardDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uuid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -57535,10 +62819,10 @@ func (m *RetrySchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CallerId == nil { - m.CallerId = &vtrpc.CallerID{} + if m.Shard == nil { + m.Shard = &topodata.Shard{} } - if err := m.CallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -57564,7 +62848,7 @@ func (m *RetrySchemaMigrationRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RetrySchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { +func (m *StartReplicationRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -57587,15 +62871,15 @@ func (m *RetrySchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RetrySchemaMigrationResponse: wiretype end group for non-group") + return fmt.Errorf("proto: StartReplicationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RetrySchemaMigrationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StartReplicationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RowsAffectedByShard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -57622,89 +62906,12 @@ func (m *RetrySchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RowsAffectedByShard == nil { - m.RowsAffectedByShard = make(map[string]uint64) + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} } - var mapkey string - var mapvalue uint64 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.RowsAffectedByShard[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -57728,7 +62935,7 @@ func (m *RetrySchemaMigrationResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RunHealthCheckRequest) UnmarshalVT(dAtA []byte) error { +func (m *StartReplicationResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -57751,10 +62958,61 @@ func (m *RunHealthCheckRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RunHealthCheckRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StartReplicationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RunHealthCheckRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StartReplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StopReplicationRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StopReplicationRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StopReplicationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -57815,7 +63073,58 @@ func (m *RunHealthCheckRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RunHealthCheckResponse) UnmarshalVT(dAtA []byte) error { +func (m *StopReplicationResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StopReplicationResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StopReplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TabletExternallyReparentedRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -57828,22 +63137,58 @@ func (m *RunHealthCheckResponse) UnmarshalVT(dAtA []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TabletExternallyReparentedRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TabletExternallyReparentedRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tablet == nil { + m.Tablet = &topodata.TabletAlias{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RunHealthCheckResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RunHealthCheckResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + if err := m.Tablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -57866,7 +63211,7 @@ func (m *RunHealthCheckResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SetKeyspaceDurabilityPolicyRequest) UnmarshalVT(dAtA []byte) error { +func (m *TabletExternallyReparentedResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -57889,10 +63234,10 @@ func (m *SetKeyspaceDurabilityPolicyRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetKeyspaceDurabilityPolicyRequest: wiretype end group for non-group") + return fmt.Errorf("proto: TabletExternallyReparentedResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetKeyspaceDurabilityPolicyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TabletExternallyReparentedResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -57929,7 +63274,7 @@ func (m *SetKeyspaceDurabilityPolicyRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DurabilityPolicy", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -57957,7 +63302,79 @@ func (m *SetKeyspaceDurabilityPolicyRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.DurabilityPolicy = string(dAtA[iNdEx:postIndex]) + m.Shard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewPrimary", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NewPrimary == nil { + m.NewPrimary = &topodata.TabletAlias{} + } + if err := m.NewPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OldPrimary", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OldPrimary == nil { + m.OldPrimary = &topodata.TabletAlias{} + } + if err := m.OldPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -57981,7 +63398,7 @@ func (m *SetKeyspaceDurabilityPolicyRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SetKeyspaceDurabilityPolicyResponse) UnmarshalVT(dAtA []byte) error { +func (m *UpdateCellInfoRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -58004,15 +63421,47 @@ func (m *SetKeyspaceDurabilityPolicyResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetKeyspaceDurabilityPolicyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateCellInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetKeyspaceDurabilityPolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateCellInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CellInfo", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -58039,10 +63488,10 @@ func (m *SetKeyspaceDurabilityPolicyResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Keyspace == nil { - m.Keyspace = &topodata.Keyspace{} + if m.CellInfo == nil { + m.CellInfo = &topodata.CellInfo{} } - if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.CellInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -58068,7 +63517,7 @@ func (m *SetKeyspaceDurabilityPolicyResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SetKeyspaceShardingInfoRequest) UnmarshalVT(dAtA []byte) error { +func (m *UpdateCellInfoResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -58091,15 +63540,15 @@ func (m *SetKeyspaceShardingInfoRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetKeyspaceShardingInfoRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateCellInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetKeyspaceShardingInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateCellInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -58127,13 +63576,13 @@ func (m *SetKeyspaceShardingInfoRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CellInfo", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -58143,12 +63592,28 @@ func (m *SetKeyspaceShardingInfoRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.Force = bool(v != 0) + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CellInfo == nil { + m.CellInfo = &topodata.CellInfo{} + } + if err := m.CellInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -58171,7 +63636,7 @@ func (m *SetKeyspaceShardingInfoRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SetKeyspaceShardingInfoResponse) UnmarshalVT(dAtA []byte) error { +func (m *UpdateCellsAliasRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -58194,15 +63659,47 @@ func (m *SetKeyspaceShardingInfoResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetKeyspaceShardingInfoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateCellsAliasRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetKeyspaceShardingInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateCellsAliasRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CellsAlias", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -58229,10 +63726,10 @@ func (m *SetKeyspaceShardingInfoResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Keyspace == nil { - m.Keyspace = &topodata.Keyspace{} + if m.CellsAlias == nil { + m.CellsAlias = &topodata.CellsAlias{} } - if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.CellsAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -58258,7 +63755,7 @@ func (m *SetKeyspaceShardingInfoResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SetShardIsPrimaryServingRequest) UnmarshalVT(dAtA []byte) error { +func (m *UpdateCellsAliasResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -58281,15 +63778,15 @@ func (m *SetShardIsPrimaryServingRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetShardIsPrimaryServingRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateCellsAliasResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetShardIsPrimaryServingRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateCellsAliasResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -58317,13 +63814,13 @@ func (m *SetShardIsPrimaryServingRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CellsAlias", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -58333,44 +63830,28 @@ func (m *SetShardIsPrimaryServingRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsServing", wireType) + if m.CellsAlias == nil { + m.CellsAlias = &topodata.CellsAlias{} } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.CellsAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.IsServing = bool(v != 0) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -58393,7 +63874,7 @@ func (m *SetShardIsPrimaryServingRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SetShardIsPrimaryServingResponse) UnmarshalVT(dAtA []byte) error { +func (m *ValidateRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -58416,17 +63897,17 @@ func (m *SetShardIsPrimaryServingResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetShardIsPrimaryServingResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetShardIsPrimaryServingResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PingTablets", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -58436,28 +63917,12 @@ func (m *SetShardIsPrimaryServingResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Shard == nil { - m.Shard = &topodata.Shard{} - } - if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.PingTablets = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -58480,7 +63945,7 @@ func (m *SetShardIsPrimaryServingResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SetShardTabletControlRequest) UnmarshalVT(dAtA []byte) error { +func (m *ValidateResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -58503,15 +63968,15 @@ func (m *SetShardTabletControlRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetShardTabletControlRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetShardTabletControlRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -58539,13 +64004,13 @@ func (m *SetShardTabletControlRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Results = append(m.Results, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ResultsByKeyspace", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -58555,78 +64020,175 @@ func (m *SetShardTabletControlRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletType", wireType) + if m.ResultsByKeyspace == nil { + m.ResultsByKeyspace = make(map[string]*ValidateKeyspaceResponse) } - m.TabletType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var mapkey string + var mapvalue *ValidateKeyspaceResponse + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - b := dAtA[iNdEx] - iNdEx++ - m.TabletType |= topodata.TabletType(b&0x7F) << shift - if b < 0x80 { - break + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &ValidateKeyspaceResponse{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + m.ResultsByKeyspace[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ValidateKeyspaceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidateKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeniedTables", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -58654,31 +64216,11 @@ func (m *SetShardTabletControlRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.DeniedTables = append(m.DeniedTables, string(dAtA[iNdEx:postIndex])) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DisableQueryService", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DisableQueryService = bool(v != 0) - case 7: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Remove", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PingTablets", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -58695,7 +64237,7 @@ func (m *SetShardTabletControlRequest) UnmarshalVT(dAtA []byte) error { break } } - m.Remove = bool(v != 0) + m.PingTablets = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -58718,7 +64260,7 @@ func (m *SetShardTabletControlRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SetShardTabletControlResponse) UnmarshalVT(dAtA []byte) error { +func (m *ValidateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -58741,15 +64283,47 @@ func (m *SetShardTabletControlResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetShardTabletControlResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateKeyspaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetShardTabletControlResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Results = append(m.Results, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResultsByShard", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -58776,12 +64350,105 @@ func (m *SetShardTabletControlResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Shard == nil { - m.Shard = &topodata.Shard{} + if m.ResultsByShard == nil { + m.ResultsByShard = make(map[string]*ValidateShardResponse) } - if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var mapkey string + var mapvalue *ValidateShardResponse + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &ValidateShardResponse{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } + m.ResultsByShard[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -58805,7 +64472,7 @@ func (m *SetShardTabletControlResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SetWritableRequest) UnmarshalVT(dAtA []byte) error { +func (m *ValidatePermissionsKeyspaceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -58828,17 +64495,17 @@ func (m *SetWritableRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetWritableRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ValidatePermissionsKeyspaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetWritableRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidatePermissionsKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -58848,33 +64515,29 @@ func (m *SetWritableRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} - } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Writable", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -58884,12 +64547,24 @@ func (m *SetWritableRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.Writable = bool(v != 0) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -58912,7 +64587,7 @@ func (m *SetWritableRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SetWritableResponse) UnmarshalVT(dAtA []byte) error { +func (m *ValidatePermissionsKeyspaceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -58935,10 +64610,10 @@ func (m *SetWritableResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetWritableResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ValidatePermissionsKeyspaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetWritableResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidatePermissionsKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -58963,7 +64638,7 @@ func (m *SetWritableResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ShardReplicationAddRequest) UnmarshalVT(dAtA []byte) error { +func (m *ValidateSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -58986,10 +64661,10 @@ func (m *ShardReplicationAddRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ShardReplicationAddRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateSchemaKeyspaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ShardReplicationAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateSchemaKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -59026,7 +64701,7 @@ func (m *ShardReplicationAddRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTables", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -59054,13 +64729,73 @@ func (m *ShardReplicationAddRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) + m.ExcludeTables = append(m.ExcludeTables, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeViews", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeViews = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SkipNoPrimary", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SkipNoPrimary = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeVschema", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeVschema = bool(v != 0) + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -59070,27 +64805,23 @@ func (m *ShardReplicationAddRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} - } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -59114,7 +64845,7 @@ func (m *ShardReplicationAddRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ShardReplicationAddResponse) UnmarshalVT(dAtA []byte) error { +func (m *ValidateSchemaKeyspaceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -59137,12 +64868,173 @@ func (m *ShardReplicationAddResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ShardReplicationAddResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateSchemaKeyspaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ShardReplicationAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateSchemaKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Results = append(m.Results, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResultsByShard", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResultsByShard == nil { + m.ResultsByShard = make(map[string]*ValidateShardResponse) + } + var mapkey string + var mapvalue *ValidateShardResponse + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &ValidateShardResponse{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ResultsByShard[mapkey] = mapvalue + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -59165,7 +65057,7 @@ func (m *ShardReplicationAddResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ShardReplicationFixRequest) UnmarshalVT(dAtA []byte) error { +func (m *ValidateShardRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -59188,10 +65080,10 @@ func (m *ShardReplicationFixRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ShardReplicationFixRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateShardRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ShardReplicationFixRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -59259,10 +65151,10 @@ func (m *ShardReplicationFixRequest) UnmarshalVT(dAtA []byte) error { m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PingTablets", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -59271,25 +65163,13 @@ func (m *ShardReplicationFixRequest) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - m.Cell = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + m.PingTablets = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -59312,7 +65192,7 @@ func (m *ShardReplicationFixRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ShardReplicationFixResponse) UnmarshalVT(dAtA []byte) error { +func (m *ValidateShardResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -59335,17 +65215,17 @@ func (m *ShardReplicationFixResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ShardReplicationFixResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateShardResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ShardReplicationFixResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -59355,27 +65235,23 @@ func (m *ShardReplicationFixResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Error == nil { - m.Error = &topodata.ShardReplicationError{} - } - if err := m.Error.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Results = append(m.Results, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -59399,7 +65275,7 @@ func (m *ShardReplicationFixResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ShardReplicationPositionsRequest) UnmarshalVT(dAtA []byte) error { +func (m *ValidateVersionKeyspaceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -59422,10 +65298,10 @@ func (m *ShardReplicationPositionsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ShardReplicationPositionsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateVersionKeyspaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ShardReplicationPositionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateVersionKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -59460,38 +65336,6 @@ func (m *ShardReplicationPositionsRequest) UnmarshalVT(dAtA []byte) error { } m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -59514,7 +65358,7 @@ func (m *ShardReplicationPositionsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ShardReplicationPositionsResponse) UnmarshalVT(dAtA []byte) error { +func (m *ValidateVersionKeyspaceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -59537,17 +65381,17 @@ func (m *ShardReplicationPositionsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ShardReplicationPositionsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateVersionKeyspaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ShardReplicationPositionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateVersionKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationStatuses", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -59557,124 +65401,27 @@ func (m *ShardReplicationPositionsResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.ReplicationStatuses == nil { - m.ReplicationStatuses = make(map[string]*replicationdata.Status) - } - var mapkey string - var mapvalue *replicationdata.Status - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &replicationdata.Status{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ReplicationStatuses[mapkey] = mapvalue + m.Results = append(m.Results, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletMap", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ResultsByShard", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -59701,11 +65448,11 @@ func (m *ShardReplicationPositionsResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletMap == nil { - m.TabletMap = make(map[string]*topodata.Tablet) + if m.ResultsByShard == nil { + m.ResultsByShard = make(map[string]*ValidateShardResponse) } var mapkey string - var mapvalue *topodata.Tablet + var mapvalue *ValidateShardResponse for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -59779,7 +65526,7 @@ func (m *ShardReplicationPositionsResponse) UnmarshalVT(dAtA []byte) error { if postmsgIndex > l { return io.ErrUnexpectedEOF } - mapvalue = &topodata.Tablet{} + mapvalue = &ValidateShardResponse{} if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { return err } @@ -59799,7 +65546,7 @@ func (m *ShardReplicationPositionsResponse) UnmarshalVT(dAtA []byte) error { iNdEx += skippy } } - m.TabletMap[mapkey] = mapvalue + m.ResultsByShard[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -59823,7 +65570,7 @@ func (m *ShardReplicationPositionsResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ShardReplicationRemoveRequest) UnmarshalVT(dAtA []byte) error { +func (m *ValidateVersionShardRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -59846,10 +65593,10 @@ func (m *ShardReplicationRemoveRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ShardReplicationRemoveRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateVersionShardRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ShardReplicationRemoveRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateVersionShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -59916,93 +65663,6 @@ func (m *ShardReplicationRemoveRequest) UnmarshalVT(dAtA []byte) error { } m.Shard = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} - } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ShardReplicationRemoveResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ShardReplicationRemoveResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ShardReplicationRemoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -60025,7 +65685,7 @@ func (m *ShardReplicationRemoveResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SleepTabletRequest) UnmarshalVT(dAtA []byte) error { +func (m *ValidateVersionShardResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -60048,53 +65708,17 @@ func (m *SleepTabletRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SleepTabletRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateVersionShardResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SleepTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateVersionShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} - } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -60104,27 +65728,23 @@ func (m *SleepTabletRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Duration == nil { - m.Duration = &vttime.Duration{} - } - if err := m.Duration.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Results = append(m.Results, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -60148,172 +65768,38 @@ func (m *SleepTabletRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SleepTabletResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SleepTabletResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SleepTabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SourceShardAddRequest) UnmarshalVT(dAtA []byte) error { +func (m *ValidateVSchemaRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SourceShardAddRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SourceShardAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) - } - m.Uid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Uid |= int32(b&0x7F) << shift - if b < 0x80 { - break - } + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - case 4: + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ValidateVSchemaRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidateVSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -60341,11 +65827,11 @@ func (m *SourceShardAddRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SourceKeyspace = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceShard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -60373,13 +65859,13 @@ func (m *SourceShardAddRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SourceShard = string(dAtA[iNdEx:postIndex]) + m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 6: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyRange", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTables", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -60389,33 +65875,29 @@ func (m *SourceShardAddRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.KeyRange == nil { - m.KeyRange = &topodata.KeyRange{} - } - if err := m.KeyRange.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ExcludeTables = append(m.ExcludeTables, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tables", wireType) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeViews", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -60425,24 +65907,12 @@ func (m *SourceShardAddRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tables = append(m.Tables, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex + m.IncludeViews = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -60465,7 +65935,7 @@ func (m *SourceShardAddRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SourceShardAddResponse) UnmarshalVT(dAtA []byte) error { +func (m *ValidateVSchemaResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -60488,15 +65958,47 @@ func (m *SourceShardAddResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SourceShardAddResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateVSchemaResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SourceShardAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateVSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Results = append(m.Results, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResultsByShard", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -60523,12 +66025,105 @@ func (m *SourceShardAddResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Shard == nil { - m.Shard = &topodata.Shard{} + if m.ResultsByShard == nil { + m.ResultsByShard = make(map[string]*ValidateShardResponse) } - if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var mapkey string + var mapvalue *ValidateShardResponse + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &ValidateShardResponse{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } + m.ResultsByShard[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -60552,7 +66147,7 @@ func (m *SourceShardAddResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SourceShardDeleteRequest) UnmarshalVT(dAtA []byte) error { +func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -60575,15 +66170,15 @@ func (m *SourceShardDeleteRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SourceShardDeleteRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffCreateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SourceShardDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -60611,11 +66206,11 @@ func (m *SourceShardDeleteRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Workflow = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -60643,13 +66238,13 @@ func (m *SourceShardDeleteRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) + m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) } - m.Uid = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -60659,67 +66254,61 @@ func (m *SourceShardDeleteRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Uid |= int32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + intStringLen + if postIndex < 0 { return protohelpers.ErrInvalidLength } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SourceShardDeleteResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + m.Uuid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceCells", wireType) } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SourceShardDeleteResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SourceShardDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceCells = append(m.SourceCells, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TargetCells", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -60729,82 +66318,166 @@ func (m *SourceShardDeleteResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Shard == nil { - m.Shard = &topodata.Shard{} + m.TargetCells = append(m.TargetCells, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType == 0 { + var v topodata.TabletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= topodata.TabletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TabletTypes = append(m.TabletTypes, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + if elementCount != 0 && len(m.TabletTypes) == 0 { + m.TabletTypes = make([]topodata.TabletType, 0, elementCount) + } + for iNdEx < postIndex { + var v topodata.TabletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= topodata.TabletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TabletTypes = append(m.TabletTypes, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field TabletTypes", wireType) } - if err := m.Shard.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TabletSelectionPreference", wireType) } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + m.TabletSelectionPreference = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TabletSelectionPreference |= tabletmanagerdata.TabletSelectionPreference(b&0x7F) << shift + if b < 0x80 { + break + } } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tables", wireType) } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StartReplicationRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Tables = append(m.Tables, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StartReplicationRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StartReplicationRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FilteredReplicationWaitTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -60831,118 +66504,115 @@ func (m *StartReplicationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} + if m.FilteredReplicationWaitTime == nil { + m.FilteredReplicationWaitTime = &vttime.Duration{} } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.FilteredReplicationWaitTime.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DebugQuery", wireType) } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StartReplicationResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + m.DebugQuery = bool(v != 0) + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OnlyPKs", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StartReplicationResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StartReplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + m.OnlyPKs = bool(v != 0) + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateTableStats", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + m.UpdateTableStats = bool(v != 0) + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxExtraRowsToCompare", wireType) } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StopReplicationRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + m.MaxExtraRowsToCompare = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxExtraRowsToCompare |= int64(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Wait", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StopReplicationRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StopReplicationRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Wait = bool(v != 0) + case 16: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WaitUpdateInterval", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -60969,118 +66639,75 @@ func (m *StopReplicationRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TabletAlias == nil { - m.TabletAlias = &topodata.TabletAlias{} + if m.WaitUpdateInterval == nil { + m.WaitUpdateInterval = &vttime.Duration{} } - if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.WaitUpdateInterval.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StopReplicationResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StopReplicationResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StopReplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoRetry", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + m.AutoRetry = bool(v != 0) + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Verbose", wireType) } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TabletExternallyReparentedRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + m.Verbose = bool(v != 0) + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxReportSampleRows", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.MaxReportSampleRows = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxReportSampleRows |= int64(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TabletExternallyReparentedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TabletExternallyReparentedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 20: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MaxDiffDuration", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -61107,13 +66734,53 @@ func (m *TabletExternallyReparentedRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Tablet == nil { - m.Tablet = &topodata.TabletAlias{} + if m.MaxDiffDuration == nil { + m.MaxDiffDuration = &vttime.Duration{} } - if err := m.Tablet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.MaxDiffDuration.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 21: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RowDiffColumnTruncateAt", wireType) + } + m.RowDiffColumnTruncateAt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RowDiffColumnTruncateAt |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 22: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoStart", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AutoStart = &b default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -61136,7 +66803,7 @@ func (m *TabletExternallyReparentedRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *TabletExternallyReparentedResponse) UnmarshalVT(dAtA []byte) error { +func (m *VDiffCreateResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -61159,47 +66826,15 @@ func (m *TabletExternallyReparentedResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TabletExternallyReparentedResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffCreateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TabletExternallyReparentedResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -61220,86 +66855,14 @@ func (m *TabletExternallyReparentedResponse) UnmarshalVT(dAtA []byte) error { if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewPrimary", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NewPrimary == nil { - m.NewPrimary = &topodata.TabletAlias{} - } - if err := m.NewPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OldPrimary", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.OldPrimary == nil { - m.OldPrimary = &topodata.TabletAlias{} - } - if err := m.OldPrimary.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.UUID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -61323,7 +66886,7 @@ func (m *TabletExternallyReparentedResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *UpdateCellInfoRequest) UnmarshalVT(dAtA []byte) error { +func (m *VDiffDeleteRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -61346,15 +66909,15 @@ func (m *UpdateCellInfoRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateCellInfoRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffDeleteRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateCellInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -61382,13 +66945,13 @@ func (m *UpdateCellInfoRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Workflow = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CellInfo", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -61398,27 +66961,55 @@ func (m *UpdateCellInfoRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.CellInfo == nil { - m.CellInfo = &topodata.CellInfo{} + m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Arg", wireType) } - if err := m.CellInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF } + m.Arg = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -61442,7 +67033,7 @@ func (m *UpdateCellInfoRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *UpdateCellInfoResponse) UnmarshalVT(dAtA []byte) error { +func (m *VDiffDeleteResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -61465,80 +67056,12 @@ func (m *UpdateCellInfoResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateCellInfoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffDeleteResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateCellInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CellInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CellInfo == nil { - m.CellInfo = &topodata.CellInfo{} - } - if err := m.CellInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -61561,7 +67084,7 @@ func (m *UpdateCellInfoResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *UpdateCellsAliasRequest) UnmarshalVT(dAtA []byte) error { +func (m *VDiffResumeRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -61584,15 +67107,15 @@ func (m *UpdateCellsAliasRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateCellsAliasRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffResumeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateCellsAliasRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffResumeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -61620,13 +67143,13 @@ func (m *UpdateCellsAliasRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Workflow = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CellsAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -61636,82 +67159,27 @@ func (m *UpdateCellsAliasRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.CellsAlias == nil { - m.CellsAlias = &topodata.CellsAlias{} - } - if err := m.CellsAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateCellsAliasResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateCellsAliasResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateCellsAliasResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -61739,13 +67207,13 @@ func (m *UpdateCellsAliasResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Uuid = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CellsAlias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TargetShards", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -61755,27 +67223,23 @@ func (m *UpdateCellsAliasResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.CellsAlias == nil { - m.CellsAlias = &topodata.CellsAlias{} - } - if err := m.CellsAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.TargetShards = append(m.TargetShards, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -61799,7 +67263,7 @@ func (m *UpdateCellsAliasResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateRequest) UnmarshalVT(dAtA []byte) error { +func (m *VDiffResumeResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -61822,32 +67286,12 @@ func (m *ValidateRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffResumeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffResumeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PingTablets", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.PingTablets = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -61870,7 +67314,7 @@ func (m *ValidateRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateResponse) UnmarshalVT(dAtA []byte) error { +func (m *VDiffShowRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -61893,15 +67337,15 @@ func (m *ValidateResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffShowRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffShowRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -61929,13 +67373,13 @@ func (m *ValidateResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Results = append(m.Results, string(dAtA[iNdEx:postIndex])) + m.Workflow = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResultsByKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -61945,175 +67389,27 @@ func (m *ValidateResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.ResultsByKeyspace == nil { - m.ResultsByKeyspace = make(map[string]*ValidateKeyspaceResponse) - } - var mapkey string - var mapvalue *ValidateKeyspaceResponse - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ValidateKeyspaceResponse{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ResultsByKeyspace[mapkey] = mapvalue + m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidateKeyspaceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Arg", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -62141,28 +67437,8 @@ func (m *ValidateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Arg = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PingTablets", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.PingTablets = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -62185,7 +67461,7 @@ func (m *ValidateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { +func (m *VDiffShowResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -62208,47 +67484,15 @@ func (m *ValidateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateKeyspaceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffShowResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffShowResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Results = append(m.Results, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResultsByShard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TabletResponses", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -62275,11 +67519,11 @@ func (m *ValidateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ResultsByShard == nil { - m.ResultsByShard = make(map[string]*ValidateShardResponse) + if m.TabletResponses == nil { + m.TabletResponses = make(map[string]*tabletmanagerdata.VDiffResponse) } var mapkey string - var mapvalue *ValidateShardResponse + var mapvalue *tabletmanagerdata.VDiffResponse for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -62353,7 +67597,7 @@ func (m *ValidateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { if postmsgIndex > l { return io.ErrUnexpectedEOF } - mapvalue = &ValidateShardResponse{} + mapvalue = &tabletmanagerdata.VDiffResponse{} if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { return err } @@ -62373,7 +67617,7 @@ func (m *ValidateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { iNdEx += skippy } } - m.ResultsByShard[mapkey] = mapvalue + m.TabletResponses[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -62397,7 +67641,7 @@ func (m *ValidateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidatePermissionsKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *VDiffStopRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -62420,15 +67664,15 @@ func (m *ValidatePermissionsKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidatePermissionsKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffStopRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatePermissionsKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffStopRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -62456,11 +67700,11 @@ func (m *ValidatePermissionsKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.Workflow = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -62488,7 +67732,71 @@ func (m *ValidatePermissionsKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) + m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uuid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetShards", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetShards = append(m.TargetShards, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -62512,7 +67820,7 @@ func (m *ValidatePermissionsKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidatePermissionsKeyspaceResponse) UnmarshalVT(dAtA []byte) error { +func (m *VDiffStopResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -62535,10 +67843,10 @@ func (m *ValidatePermissionsKeyspaceResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidatePermissionsKeyspaceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VDiffStopResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatePermissionsKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VDiffStopResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -62563,7 +67871,7 @@ func (m *ValidatePermissionsKeyspaceResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaCreateRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -62586,15 +67894,15 @@ func (m *ValidateSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateSchemaKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaCreateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateSchemaKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchemaName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -62622,63 +67930,11 @@ func (m *ValidateSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.VSchemaName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTables", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExcludeTables = append(m.ExcludeTables, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeViews", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeViews = bool(v != 0) - case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipNoPrimary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Sharded", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -62695,10 +67951,10 @@ func (m *ValidateSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { break } } - m.SkipNoPrimary = bool(v != 0) - case 5: + m.Sharded = bool(v != 0) + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeVschema", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Draft", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -62715,10 +67971,10 @@ func (m *ValidateSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { break } } - m.IncludeVschema = bool(v != 0) - case 6: + m.Draft = bool(v != 0) + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchemaJson", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -62746,7 +68002,7 @@ func (m *ValidateSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) + m.VSchemaJson = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -62770,7 +68026,7 @@ func (m *ValidateSchemaKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateSchemaKeyspaceResponse) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaCreateResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -62793,173 +68049,12 @@ func (m *ValidateSchemaKeyspaceResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateSchemaKeyspaceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaCreateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateSchemaKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Results = append(m.Results, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResultsByShard", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ResultsByShard == nil { - m.ResultsByShard = make(map[string]*ValidateShardResponse) - } - var mapkey string - var mapvalue *ValidateShardResponse - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ValidateShardResponse{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ResultsByShard[mapkey] = mapvalue - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -62982,7 +68077,7 @@ func (m *ValidateSchemaKeyspaceResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaGetRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -63005,15 +68100,15 @@ func (m *ValidateShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaGetRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchemaName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -63041,43 +68136,11 @@ func (m *ValidateShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.VSchemaName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Shard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PingTablets", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IncludeDrafts", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -63094,7 +68157,7 @@ func (m *ValidateShardRequest) UnmarshalVT(dAtA []byte) error { break } } - m.PingTablets = bool(v != 0) + m.IncludeDrafts = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -63117,7 +68180,7 @@ func (m *ValidateShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateShardResponse) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaGetResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -63140,17 +68203,17 @@ func (m *ValidateShardResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateShardResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaGetResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaGetResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchema", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -63160,23 +68223,27 @@ func (m *ValidateShardResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Results = append(m.Results, string(dAtA[iNdEx:postIndex])) + if m.VSchema == nil { + m.VSchema = &vschema.Keyspace{} + } + if err := m.VSchema.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -63200,7 +68267,7 @@ func (m *ValidateShardResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateVersionKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaUpdateRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -63223,15 +68290,15 @@ func (m *ValidateVersionKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateVersionKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaUpdateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateVersionKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchemaName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -63259,62 +68326,107 @@ func (m *ValidateVersionKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.VSchemaName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sharded", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Sharded = &b + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ForeignKeyMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - if (iNdEx + skippy) > l { + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { return io.ErrUnexpectedEOF } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidateVersionKeyspaceResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + s := string(dAtA[iNdEx:postIndex]) + m.ForeignKeyMode = &s + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Draft", wireType) } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + b := bool(v != 0) + m.Draft = &b + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MultiTenant", wireType) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidateVersionKeyspaceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateVersionKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.MultiTenant = &b + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TenantIdColumnName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -63342,13 +68454,14 @@ func (m *ValidateVersionKeyspaceResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Results = append(m.Results, string(dAtA[iNdEx:postIndex])) + s := string(dAtA[iNdEx:postIndex]) + m.TenantIdColumnName = &s iNdEx = postIndex - case 2: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResultsByShard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TenantIdColumnType", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -63358,120 +68471,24 @@ func (m *ValidateVersionKeyspaceResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.ResultsByShard == nil { - m.ResultsByShard = make(map[string]*ValidateShardResponse) - } - var mapkey string - var mapvalue *ValidateShardResponse - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ValidateShardResponse{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ResultsByShard[mapkey] = mapvalue + s := string(dAtA[iNdEx:postIndex]) + m.TenantIdColumnType = &s iNdEx = postIndex default: iNdEx = preIndex @@ -63495,7 +68512,7 @@ func (m *ValidateVersionKeyspaceResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateVersionShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaUpdateResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -63518,47 +68535,66 @@ func (m *ValidateVersionShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateVersionShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaUpdateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateVersionShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaUpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VSchemaPublishRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VSchemaPublishRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VSchemaPublishRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchemaName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -63586,7 +68622,7 @@ func (m *ValidateVersionShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shard = string(dAtA[iNdEx:postIndex]) + m.VSchemaName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -63610,7 +68646,7 @@ func (m *ValidateVersionShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateVersionShardResponse) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaPublishResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -63633,44 +68669,12 @@ func (m *ValidateVersionShardResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateVersionShardResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaPublishResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateVersionShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaPublishResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Results = append(m.Results, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -63693,7 +68697,7 @@ func (m *ValidateVersionShardResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateVSchemaRequest) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaAddVindexRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -63716,15 +68720,15 @@ func (m *ValidateVSchemaRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateVSchemaRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaAddVindexRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateVSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaAddVindexRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchemaName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -63752,11 +68756,11 @@ func (m *ValidateVSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.VSchemaName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VindexName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -63784,11 +68788,11 @@ func (m *ValidateVSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) + m.VindexName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTables", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VindexType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -63816,13 +68820,13 @@ func (m *ValidateVSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ExcludeTables = append(m.ExcludeTables, string(dAtA[iNdEx:postIndex])) + m.VindexType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeViews", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -63832,12 +68836,119 @@ func (m *ValidateVSchemaRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.IncludeViews = bool(v != 0) + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Params == nil { + m.Params = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Params[mapkey] = mapvalue + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -63860,7 +68971,7 @@ func (m *ValidateVSchemaRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ValidateVSchemaResponse) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaAddVindexResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -63883,15 +68994,66 @@ func (m *ValidateVSchemaResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidateVSchemaResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaAddVindexResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateVSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaAddVindexResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VSchemaRemoveVindexRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VSchemaRemoveVindexRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VSchemaRemoveVindexRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchemaName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -63919,13 +69081,13 @@ func (m *ValidateVSchemaResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Results = append(m.Results, string(dAtA[iNdEx:postIndex])) + m.VSchemaName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResultsByShard", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VindexName", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -63935,121 +69097,75 @@ func (m *ValidateVSchemaResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.ResultsByShard == nil { - m.ResultsByShard = make(map[string]*ValidateShardResponse) - } - var mapkey string - var mapvalue *ValidateShardResponse - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ValidateShardResponse{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + m.VindexName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - m.ResultsByShard[mapkey] = mapvalue - iNdEx = postIndex + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VSchemaRemoveVindexResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VSchemaRemoveVindexResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VSchemaRemoveVindexResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -64072,7 +69188,7 @@ func (m *ValidateVSchemaResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaAddLookupVindexRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -64095,15 +69211,15 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VDiffCreateRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaAddLookupVindexRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaAddLookupVindexRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchemaName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -64131,11 +69247,11 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Workflow = string(dAtA[iNdEx:postIndex]) + m.VSchemaName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VindexName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -64163,11 +69279,11 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) + m.VindexName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LookupVindexType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -64195,11 +69311,11 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Uuid = string(dAtA[iNdEx:postIndex]) + m.LookupVindexType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceCells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -64227,11 +69343,11 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SourceCells = append(m.SourceCells, string(dAtA[iNdEx:postIndex])) + m.TableName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetCells", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FromColumns", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -64259,99 +69375,11 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetCells = append(m.TargetCells, string(dAtA[iNdEx:postIndex])) + m.FromColumns = append(m.FromColumns, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 6: - if wireType == 0 { - var v topodata.TabletType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= topodata.TabletType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TabletTypes = append(m.TabletTypes, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.TabletTypes) == 0 { - m.TabletTypes = make([]topodata.TabletType, 0, elementCount) - } - for iNdEx < postIndex { - var v topodata.TabletType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= topodata.TabletType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TabletTypes = append(m.TabletTypes, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field TabletTypes", wireType) - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletSelectionPreference", wireType) - } - m.TabletSelectionPreference = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TabletSelectionPreference |= tabletmanagerdata.TabletSelectionPreference(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tables", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -64379,13 +69407,13 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Tables = append(m.Tables, string(dAtA[iNdEx:postIndex])) + m.Owner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 9: + case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IgnoreNulls", wireType) } - m.Limit = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -64395,112 +69423,119 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= int64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FilteredReplicationWaitTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + m.IgnoreNulls = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - if msglen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VSchemaAddLookupVindexResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.FilteredReplicationWaitTime == nil { - m.FilteredReplicationWaitTime = &vttime.Duration{} + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - if err := m.FilteredReplicationWaitTime.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VSchemaAddLookupVindexResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VSchemaAddLookupVindexResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DebugQuery", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength } - m.DebugQuery = bool(v != 0) - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field OnlyPKs", wireType) + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VSchemaAddTablesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - m.OnlyPKs = bool(v != 0) - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateTableStats", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - m.UpdateTableStats = bool(v != 0) - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxExtraRowsToCompare", wireType) + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VSchemaAddTablesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VSchemaAddTablesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VSchemaName", wireType) } - m.MaxExtraRowsToCompare = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -64510,36 +69545,29 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxExtraRowsToCompare |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Wait", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - m.Wait = bool(v != 0) - case 16: + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VSchemaName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WaitUpdateInterval", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tables", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -64549,33 +69577,29 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.WaitUpdateInterval == nil { - m.WaitUpdateInterval = &vttime.Duration{} - } - if err := m.WaitUpdateInterval.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Tables = append(m.Tables, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AutoRetry", wireType) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrimaryVindexName", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -64585,56 +69609,29 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.AutoRetry = bool(v != 0) - case 18: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Verbose", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - m.Verbose = bool(v != 0) - case 19: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxReportSampleRows", wireType) + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - m.MaxReportSampleRows = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxReportSampleRows |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + if postIndex > l { + return io.ErrUnexpectedEOF } - case 20: + m.PrimaryVindexName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxDiffDuration", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Columns", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -64644,50 +69641,27 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.MaxDiffDuration == nil { - m.MaxDiffDuration = &vttime.Duration{} - } - if err := m.MaxDiffDuration.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Columns = append(m.Columns, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 21: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RowDiffColumnTruncateAt", wireType) - } - m.RowDiffColumnTruncateAt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RowDiffColumnTruncateAt |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 22: + case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AutoStart", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AddAll", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -64704,8 +69678,7 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { break } } - b := bool(v != 0) - m.AutoStart = &b + m.AddAll = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -64728,7 +69701,7 @@ func (m *VDiffCreateRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VDiffCreateResponse) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaAddTablesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -64751,44 +69724,12 @@ func (m *VDiffCreateResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VDiffCreateResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaAddTablesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaAddTablesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UUID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -64811,7 +69752,7 @@ func (m *VDiffCreateResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VDiffDeleteRequest) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaRemoveTablesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -64834,15 +69775,15 @@ func (m *VDiffDeleteRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VDiffDeleteRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaRemoveTablesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaRemoveTablesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchemaName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -64870,43 +69811,11 @@ func (m *VDiffDeleteRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Workflow = string(dAtA[iNdEx:postIndex]) + m.VSchemaName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Arg", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tables", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -64934,7 +69843,7 @@ func (m *VDiffDeleteRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Arg = string(dAtA[iNdEx:postIndex]) + m.Tables = append(m.Tables, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -64958,7 +69867,7 @@ func (m *VDiffDeleteRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VDiffDeleteResponse) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaRemoveTablesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -64981,10 +69890,10 @@ func (m *VDiffDeleteResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VDiffDeleteResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaRemoveTablesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaRemoveTablesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -65009,7 +69918,7 @@ func (m *VDiffDeleteResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VDiffResumeRequest) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaSetPrimaryVindexRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -65032,15 +69941,15 @@ func (m *VDiffResumeRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VDiffResumeRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaSetPrimaryVindexRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffResumeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaSetPrimaryVindexRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchemaName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -65068,11 +69977,11 @@ func (m *VDiffResumeRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Workflow = string(dAtA[iNdEx:postIndex]) + m.VSchemaName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tables", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -65100,11 +70009,11 @@ func (m *VDiffResumeRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) + m.Tables = append(m.Tables, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VindexName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -65132,11 +70041,11 @@ func (m *VDiffResumeRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Uuid = string(dAtA[iNdEx:postIndex]) + m.VindexName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetShards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Columns", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -65164,7 +70073,7 @@ func (m *VDiffResumeRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetShards = append(m.TargetShards, string(dAtA[iNdEx:postIndex])) + m.Columns = append(m.Columns, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -65188,7 +70097,7 @@ func (m *VDiffResumeRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VDiffResumeResponse) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaSetPrimaryVindexResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -65211,10 +70120,10 @@ func (m *VDiffResumeResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VDiffResumeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaSetPrimaryVindexResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffResumeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaSetPrimaryVindexResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -65239,7 +70148,7 @@ func (m *VDiffResumeResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VDiffShowRequest) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaSetSequenceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -65262,15 +70171,15 @@ func (m *VDiffShowRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VDiffShowRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaSetSequenceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffShowRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaSetSequenceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchemaName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -65298,11 +70207,11 @@ func (m *VDiffShowRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Workflow = string(dAtA[iNdEx:postIndex]) + m.VSchemaName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -65330,11 +70239,11 @@ func (m *VDiffShowRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) + m.TableName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Arg", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Column", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -65362,7 +70271,39 @@ func (m *VDiffShowRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Arg = string(dAtA[iNdEx:postIndex]) + m.Column = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SequenceSource", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SequenceSource = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -65386,7 +70327,7 @@ func (m *VDiffShowRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VDiffShowResponse) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaSetSequenceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -65409,141 +70350,12 @@ func (m *VDiffShowResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VDiffShowResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaSetSequenceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffShowResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaSetSequenceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TabletResponses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TabletResponses == nil { - m.TabletResponses = make(map[string]*tabletmanagerdata.VDiffResponse) - } - var mapkey string - var mapvalue *tabletmanagerdata.VDiffResponse - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &tabletmanagerdata.VDiffResponse{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.TabletResponses[mapkey] = mapvalue - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -65566,7 +70378,7 @@ func (m *VDiffShowResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VDiffStopRequest) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaSetReferenceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -65589,15 +70401,15 @@ func (m *VDiffStopRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VDiffStopRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaSetReferenceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffStopRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaSetReferenceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VSchemaName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -65625,11 +70437,11 @@ func (m *VDiffStopRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Workflow = string(dAtA[iNdEx:postIndex]) + m.VSchemaName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetKeyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -65657,43 +70469,11 @@ func (m *VDiffStopRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetKeyspace = string(dAtA[iNdEx:postIndex]) + m.TableName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uuid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetShards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -65721,7 +70501,7 @@ func (m *VDiffStopRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetShards = append(m.TargetShards, string(dAtA[iNdEx:postIndex])) + m.Source = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -65745,7 +70525,7 @@ func (m *VDiffStopRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VDiffStopResponse) UnmarshalVT(dAtA []byte) error { +func (m *VSchemaSetReferenceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -65768,10 +70548,10 @@ func (m *VDiffStopResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VDiffStopResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VSchemaSetReferenceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VDiffStopResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VSchemaSetReferenceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: diff --git a/go/vt/proto/vtctlservice/vtctlservice.pb.go b/go/vt/proto/vtctlservice/vtctlservice.pb.go index 9e4da8c5778..4461c75dce8 100644 --- a/go/vt/proto/vtctlservice/vtctlservice.pb.go +++ b/go/vt/proto/vtctlservice/vtctlservice.pb.go @@ -52,7 +52,7 @@ var file_vtctlservice_proto_rawDesc = string([]byte{ 0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x56, 0x74, 0x63, 0x74, 0x6c, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x32, 0xc0, 0x5e, 0x0a, 0x06, 0x56, 0x74, 0x63, 0x74, 0x6c, + 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x32, 0xd2, 0x67, 0x0a, 0x06, 0x56, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x12, 0x4e, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, @@ -772,46 +772,119 @@ var file_vtctlservice_proto_rawDesc = string([]byte{ 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x44, 0x69, 0x66, 0x66, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x44, 0x69, 0x66, 0x66, 0x53, 0x74, 0x6f, 0x70, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x57, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x76, 0x74, - 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, - 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, 0x56, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x2e, 0x76, 0x74, 0x63, + 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x4b, 0x0a, 0x0a, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x65, 0x74, 0x12, 0x1c, 0x2e, + 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, + 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x2e, + 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, + 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x75, 0x62, + 0x6c, 0x69, 0x73, 0x68, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x15, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, - 0x66, 0x66, 0x69, 0x63, 0x12, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, - 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, + 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, + 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x56, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, + 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x13, 0x56, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x56, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x12, 0x25, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x56, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x16, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, + 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x28, 0x2e, 0x76, + 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x41, 0x64, 0x64, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x4c, 0x6f, 0x6f, + 0x6b, 0x75, 0x70, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, + 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x64, 0x64, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, + 0x64, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x66, 0x0a, 0x13, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x72, 0x0a, 0x17, 0x56, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x56, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x29, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x50, 0x72, 0x69, 0x6d, + 0x61, 0x72, 0x79, 0x56, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x56, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, + 0x0a, 0x12, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x53, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x74, 0x63, + 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, + 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x13, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, + 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x25, 0x2e, 0x76, 0x74, 0x63, + 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, + 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x57, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x76, 0x74, - 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, + 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, + 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, + 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x12, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x77, 0x69, 0x74, 0x63, + 0x68, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x28, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, + 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, - 0x75, 0x6c, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x6f, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4d, 0x69, 0x72, 0x72, 0x6f, + 0x72, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, 0x6c, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x15, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x72, 0x61, - 0x66, 0x66, 0x69, 0x63, 0x12, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x54, - 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, - 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2b, 0x5a, 0x29, 0x76, 0x69, 0x74, - 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, - 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, + 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x54, + 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x12, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x72, 0x72, 0x6f, + 0x72, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x28, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, + 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2b, 0x5a, 0x29, 0x76, + 0x69, 0x74, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f, + 0x67, 0x6f, 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, }) var file_vtctlservice_proto_goTypes = []any{ @@ -937,136 +1010,160 @@ var file_vtctlservice_proto_goTypes = []any{ (*vtctldata.VDiffResumeRequest)(nil), // 119: vtctldata.VDiffResumeRequest (*vtctldata.VDiffShowRequest)(nil), // 120: vtctldata.VDiffShowRequest (*vtctldata.VDiffStopRequest)(nil), // 121: vtctldata.VDiffStopRequest - (*vtctldata.WorkflowDeleteRequest)(nil), // 122: vtctldata.WorkflowDeleteRequest - (*vtctldata.WorkflowStatusRequest)(nil), // 123: vtctldata.WorkflowStatusRequest - (*vtctldata.WorkflowSwitchTrafficRequest)(nil), // 124: vtctldata.WorkflowSwitchTrafficRequest - (*vtctldata.WorkflowUpdateRequest)(nil), // 125: vtctldata.WorkflowUpdateRequest - (*vtctldata.GetMirrorRulesRequest)(nil), // 126: vtctldata.GetMirrorRulesRequest - (*vtctldata.WorkflowMirrorTrafficRequest)(nil), // 127: vtctldata.WorkflowMirrorTrafficRequest - (*vtctldata.ExecuteVtctlCommandResponse)(nil), // 128: vtctldata.ExecuteVtctlCommandResponse - (*vtctldata.AddCellInfoResponse)(nil), // 129: vtctldata.AddCellInfoResponse - (*vtctldata.AddCellsAliasResponse)(nil), // 130: vtctldata.AddCellsAliasResponse - (*vtctldata.ApplyRoutingRulesResponse)(nil), // 131: vtctldata.ApplyRoutingRulesResponse - (*vtctldata.ApplySchemaResponse)(nil), // 132: vtctldata.ApplySchemaResponse - (*vtctldata.ApplyKeyspaceRoutingRulesResponse)(nil), // 133: vtctldata.ApplyKeyspaceRoutingRulesResponse - (*vtctldata.ApplyShardRoutingRulesResponse)(nil), // 134: vtctldata.ApplyShardRoutingRulesResponse - (*vtctldata.ApplyVSchemaResponse)(nil), // 135: vtctldata.ApplyVSchemaResponse - (*vtctldata.BackupResponse)(nil), // 136: vtctldata.BackupResponse - (*vtctldata.CancelSchemaMigrationResponse)(nil), // 137: vtctldata.CancelSchemaMigrationResponse - (*vtctldata.ChangeTabletTagsResponse)(nil), // 138: vtctldata.ChangeTabletTagsResponse - (*vtctldata.ChangeTabletTypeResponse)(nil), // 139: vtctldata.ChangeTabletTypeResponse - (*vtctldata.CheckThrottlerResponse)(nil), // 140: vtctldata.CheckThrottlerResponse - (*vtctldata.CleanupSchemaMigrationResponse)(nil), // 141: vtctldata.CleanupSchemaMigrationResponse - (*vtctldata.CompleteSchemaMigrationResponse)(nil), // 142: vtctldata.CompleteSchemaMigrationResponse - (*vtctldata.ConcludeTransactionResponse)(nil), // 143: vtctldata.ConcludeTransactionResponse - (*vtctldata.CopySchemaShardResponse)(nil), // 144: vtctldata.CopySchemaShardResponse - (*vtctldata.CreateKeyspaceResponse)(nil), // 145: vtctldata.CreateKeyspaceResponse - (*vtctldata.CreateShardResponse)(nil), // 146: vtctldata.CreateShardResponse - (*vtctldata.DeleteCellInfoResponse)(nil), // 147: vtctldata.DeleteCellInfoResponse - (*vtctldata.DeleteCellsAliasResponse)(nil), // 148: vtctldata.DeleteCellsAliasResponse - (*vtctldata.DeleteKeyspaceResponse)(nil), // 149: vtctldata.DeleteKeyspaceResponse - (*vtctldata.DeleteShardsResponse)(nil), // 150: vtctldata.DeleteShardsResponse - (*vtctldata.DeleteSrvVSchemaResponse)(nil), // 151: vtctldata.DeleteSrvVSchemaResponse - (*vtctldata.DeleteTabletsResponse)(nil), // 152: vtctldata.DeleteTabletsResponse - (*vtctldata.EmergencyReparentShardResponse)(nil), // 153: vtctldata.EmergencyReparentShardResponse - (*vtctldata.ExecuteFetchAsAppResponse)(nil), // 154: vtctldata.ExecuteFetchAsAppResponse - (*vtctldata.ExecuteFetchAsDBAResponse)(nil), // 155: vtctldata.ExecuteFetchAsDBAResponse - (*vtctldata.ExecuteHookResponse)(nil), // 156: vtctldata.ExecuteHookResponse - (*vtctldata.ExecuteMultiFetchAsDBAResponse)(nil), // 157: vtctldata.ExecuteMultiFetchAsDBAResponse - (*vtctldata.FindAllShardsInKeyspaceResponse)(nil), // 158: vtctldata.FindAllShardsInKeyspaceResponse - (*vtctldata.ForceCutOverSchemaMigrationResponse)(nil), // 159: vtctldata.ForceCutOverSchemaMigrationResponse - (*vtctldata.GetBackupsResponse)(nil), // 160: vtctldata.GetBackupsResponse - (*vtctldata.GetCellInfoResponse)(nil), // 161: vtctldata.GetCellInfoResponse - (*vtctldata.GetCellInfoNamesResponse)(nil), // 162: vtctldata.GetCellInfoNamesResponse - (*vtctldata.GetCellsAliasesResponse)(nil), // 163: vtctldata.GetCellsAliasesResponse - (*vtctldata.GetFullStatusResponse)(nil), // 164: vtctldata.GetFullStatusResponse - (*vtctldata.GetKeyspaceResponse)(nil), // 165: vtctldata.GetKeyspaceResponse - (*vtctldata.GetKeyspacesResponse)(nil), // 166: vtctldata.GetKeyspacesResponse - (*vtctldata.GetKeyspaceRoutingRulesResponse)(nil), // 167: vtctldata.GetKeyspaceRoutingRulesResponse - (*vtctldata.GetPermissionsResponse)(nil), // 168: vtctldata.GetPermissionsResponse - (*vtctldata.GetRoutingRulesResponse)(nil), // 169: vtctldata.GetRoutingRulesResponse - (*vtctldata.GetSchemaResponse)(nil), // 170: vtctldata.GetSchemaResponse - (*vtctldata.GetSchemaMigrationsResponse)(nil), // 171: vtctldata.GetSchemaMigrationsResponse - (*vtctldata.GetShardReplicationResponse)(nil), // 172: vtctldata.GetShardReplicationResponse - (*vtctldata.GetShardResponse)(nil), // 173: vtctldata.GetShardResponse - (*vtctldata.GetShardRoutingRulesResponse)(nil), // 174: vtctldata.GetShardRoutingRulesResponse - (*vtctldata.GetSrvKeyspaceNamesResponse)(nil), // 175: vtctldata.GetSrvKeyspaceNamesResponse - (*vtctldata.GetSrvKeyspacesResponse)(nil), // 176: vtctldata.GetSrvKeyspacesResponse - (*vtctldata.UpdateThrottlerConfigResponse)(nil), // 177: vtctldata.UpdateThrottlerConfigResponse - (*vtctldata.GetSrvVSchemaResponse)(nil), // 178: vtctldata.GetSrvVSchemaResponse - (*vtctldata.GetSrvVSchemasResponse)(nil), // 179: vtctldata.GetSrvVSchemasResponse - (*vtctldata.GetTabletResponse)(nil), // 180: vtctldata.GetTabletResponse - (*vtctldata.GetTabletsResponse)(nil), // 181: vtctldata.GetTabletsResponse - (*vtctldata.GetThrottlerStatusResponse)(nil), // 182: vtctldata.GetThrottlerStatusResponse - (*vtctldata.GetTopologyPathResponse)(nil), // 183: vtctldata.GetTopologyPathResponse - (*vtctldata.GetTransactionInfoResponse)(nil), // 184: vtctldata.GetTransactionInfoResponse - (*vtctldata.GetUnresolvedTransactionsResponse)(nil), // 185: vtctldata.GetUnresolvedTransactionsResponse - (*vtctldata.GetVersionResponse)(nil), // 186: vtctldata.GetVersionResponse - (*vtctldata.GetVSchemaResponse)(nil), // 187: vtctldata.GetVSchemaResponse - (*vtctldata.GetWorkflowsResponse)(nil), // 188: vtctldata.GetWorkflowsResponse - (*vtctldata.InitShardPrimaryResponse)(nil), // 189: vtctldata.InitShardPrimaryResponse - (*vtctldata.LaunchSchemaMigrationResponse)(nil), // 190: vtctldata.LaunchSchemaMigrationResponse - (*vtctldata.LookupVindexCompleteResponse)(nil), // 191: vtctldata.LookupVindexCompleteResponse - (*vtctldata.LookupVindexCreateResponse)(nil), // 192: vtctldata.LookupVindexCreateResponse - (*vtctldata.LookupVindexExternalizeResponse)(nil), // 193: vtctldata.LookupVindexExternalizeResponse - (*vtctldata.LookupVindexInternalizeResponse)(nil), // 194: vtctldata.LookupVindexInternalizeResponse - (*vtctldata.MaterializeCreateResponse)(nil), // 195: vtctldata.MaterializeCreateResponse - (*vtctldata.WorkflowStatusResponse)(nil), // 196: vtctldata.WorkflowStatusResponse - (*vtctldata.MountRegisterResponse)(nil), // 197: vtctldata.MountRegisterResponse - (*vtctldata.MountUnregisterResponse)(nil), // 198: vtctldata.MountUnregisterResponse - (*vtctldata.MountShowResponse)(nil), // 199: vtctldata.MountShowResponse - (*vtctldata.MountListResponse)(nil), // 200: vtctldata.MountListResponse - (*vtctldata.MoveTablesCompleteResponse)(nil), // 201: vtctldata.MoveTablesCompleteResponse - (*vtctldata.PingTabletResponse)(nil), // 202: vtctldata.PingTabletResponse - (*vtctldata.PlannedReparentShardResponse)(nil), // 203: vtctldata.PlannedReparentShardResponse - (*vtctldata.RebuildKeyspaceGraphResponse)(nil), // 204: vtctldata.RebuildKeyspaceGraphResponse - (*vtctldata.RebuildVSchemaGraphResponse)(nil), // 205: vtctldata.RebuildVSchemaGraphResponse - (*vtctldata.RefreshStateResponse)(nil), // 206: vtctldata.RefreshStateResponse - (*vtctldata.RefreshStateByShardResponse)(nil), // 207: vtctldata.RefreshStateByShardResponse - (*vtctldata.ReloadSchemaResponse)(nil), // 208: vtctldata.ReloadSchemaResponse - (*vtctldata.ReloadSchemaKeyspaceResponse)(nil), // 209: vtctldata.ReloadSchemaKeyspaceResponse - (*vtctldata.ReloadSchemaShardResponse)(nil), // 210: vtctldata.ReloadSchemaShardResponse - (*vtctldata.RemoveBackupResponse)(nil), // 211: vtctldata.RemoveBackupResponse - (*vtctldata.RemoveKeyspaceCellResponse)(nil), // 212: vtctldata.RemoveKeyspaceCellResponse - (*vtctldata.RemoveShardCellResponse)(nil), // 213: vtctldata.RemoveShardCellResponse - (*vtctldata.ReparentTabletResponse)(nil), // 214: vtctldata.ReparentTabletResponse - (*vtctldata.RestoreFromBackupResponse)(nil), // 215: vtctldata.RestoreFromBackupResponse - (*vtctldata.RetrySchemaMigrationResponse)(nil), // 216: vtctldata.RetrySchemaMigrationResponse - (*vtctldata.RunHealthCheckResponse)(nil), // 217: vtctldata.RunHealthCheckResponse - (*vtctldata.SetKeyspaceDurabilityPolicyResponse)(nil), // 218: vtctldata.SetKeyspaceDurabilityPolicyResponse - (*vtctldata.SetShardIsPrimaryServingResponse)(nil), // 219: vtctldata.SetShardIsPrimaryServingResponse - (*vtctldata.SetShardTabletControlResponse)(nil), // 220: vtctldata.SetShardTabletControlResponse - (*vtctldata.SetWritableResponse)(nil), // 221: vtctldata.SetWritableResponse - (*vtctldata.ShardReplicationAddResponse)(nil), // 222: vtctldata.ShardReplicationAddResponse - (*vtctldata.ShardReplicationFixResponse)(nil), // 223: vtctldata.ShardReplicationFixResponse - (*vtctldata.ShardReplicationPositionsResponse)(nil), // 224: vtctldata.ShardReplicationPositionsResponse - (*vtctldata.ShardReplicationRemoveResponse)(nil), // 225: vtctldata.ShardReplicationRemoveResponse - (*vtctldata.SleepTabletResponse)(nil), // 226: vtctldata.SleepTabletResponse - (*vtctldata.SourceShardAddResponse)(nil), // 227: vtctldata.SourceShardAddResponse - (*vtctldata.SourceShardDeleteResponse)(nil), // 228: vtctldata.SourceShardDeleteResponse - (*vtctldata.StartReplicationResponse)(nil), // 229: vtctldata.StartReplicationResponse - (*vtctldata.StopReplicationResponse)(nil), // 230: vtctldata.StopReplicationResponse - (*vtctldata.TabletExternallyReparentedResponse)(nil), // 231: vtctldata.TabletExternallyReparentedResponse - (*vtctldata.UpdateCellInfoResponse)(nil), // 232: vtctldata.UpdateCellInfoResponse - (*vtctldata.UpdateCellsAliasResponse)(nil), // 233: vtctldata.UpdateCellsAliasResponse - (*vtctldata.ValidateResponse)(nil), // 234: vtctldata.ValidateResponse - (*vtctldata.ValidateKeyspaceResponse)(nil), // 235: vtctldata.ValidateKeyspaceResponse - (*vtctldata.ValidatePermissionsKeyspaceResponse)(nil), // 236: vtctldata.ValidatePermissionsKeyspaceResponse - (*vtctldata.ValidateSchemaKeyspaceResponse)(nil), // 237: vtctldata.ValidateSchemaKeyspaceResponse - (*vtctldata.ValidateShardResponse)(nil), // 238: vtctldata.ValidateShardResponse - (*vtctldata.ValidateVersionKeyspaceResponse)(nil), // 239: vtctldata.ValidateVersionKeyspaceResponse - (*vtctldata.ValidateVersionShardResponse)(nil), // 240: vtctldata.ValidateVersionShardResponse - (*vtctldata.ValidateVSchemaResponse)(nil), // 241: vtctldata.ValidateVSchemaResponse - (*vtctldata.VDiffCreateResponse)(nil), // 242: vtctldata.VDiffCreateResponse - (*vtctldata.VDiffDeleteResponse)(nil), // 243: vtctldata.VDiffDeleteResponse - (*vtctldata.VDiffResumeResponse)(nil), // 244: vtctldata.VDiffResumeResponse - (*vtctldata.VDiffShowResponse)(nil), // 245: vtctldata.VDiffShowResponse - (*vtctldata.VDiffStopResponse)(nil), // 246: vtctldata.VDiffStopResponse - (*vtctldata.WorkflowDeleteResponse)(nil), // 247: vtctldata.WorkflowDeleteResponse - (*vtctldata.WorkflowSwitchTrafficResponse)(nil), // 248: vtctldata.WorkflowSwitchTrafficResponse - (*vtctldata.WorkflowUpdateResponse)(nil), // 249: vtctldata.WorkflowUpdateResponse - (*vtctldata.GetMirrorRulesResponse)(nil), // 250: vtctldata.GetMirrorRulesResponse - (*vtctldata.WorkflowMirrorTrafficResponse)(nil), // 251: vtctldata.WorkflowMirrorTrafficResponse + (*vtctldata.VSchemaCreateRequest)(nil), // 122: vtctldata.VSchemaCreateRequest + (*vtctldata.VSchemaGetRequest)(nil), // 123: vtctldata.VSchemaGetRequest + (*vtctldata.VSchemaUpdateRequest)(nil), // 124: vtctldata.VSchemaUpdateRequest + (*vtctldata.VSchemaPublishRequest)(nil), // 125: vtctldata.VSchemaPublishRequest + (*vtctldata.VSchemaAddVindexRequest)(nil), // 126: vtctldata.VSchemaAddVindexRequest + (*vtctldata.VSchemaRemoveVindexRequest)(nil), // 127: vtctldata.VSchemaRemoveVindexRequest + (*vtctldata.VSchemaAddLookupVindexRequest)(nil), // 128: vtctldata.VSchemaAddLookupVindexRequest + (*vtctldata.VSchemaAddTablesRequest)(nil), // 129: vtctldata.VSchemaAddTablesRequest + (*vtctldata.VSchemaRemoveTablesRequest)(nil), // 130: vtctldata.VSchemaRemoveTablesRequest + (*vtctldata.VSchemaSetPrimaryVindexRequest)(nil), // 131: vtctldata.VSchemaSetPrimaryVindexRequest + (*vtctldata.VSchemaSetSequenceRequest)(nil), // 132: vtctldata.VSchemaSetSequenceRequest + (*vtctldata.VSchemaSetReferenceRequest)(nil), // 133: vtctldata.VSchemaSetReferenceRequest + (*vtctldata.WorkflowDeleteRequest)(nil), // 134: vtctldata.WorkflowDeleteRequest + (*vtctldata.WorkflowStatusRequest)(nil), // 135: vtctldata.WorkflowStatusRequest + (*vtctldata.WorkflowSwitchTrafficRequest)(nil), // 136: vtctldata.WorkflowSwitchTrafficRequest + (*vtctldata.WorkflowUpdateRequest)(nil), // 137: vtctldata.WorkflowUpdateRequest + (*vtctldata.GetMirrorRulesRequest)(nil), // 138: vtctldata.GetMirrorRulesRequest + (*vtctldata.WorkflowMirrorTrafficRequest)(nil), // 139: vtctldata.WorkflowMirrorTrafficRequest + (*vtctldata.ExecuteVtctlCommandResponse)(nil), // 140: vtctldata.ExecuteVtctlCommandResponse + (*vtctldata.AddCellInfoResponse)(nil), // 141: vtctldata.AddCellInfoResponse + (*vtctldata.AddCellsAliasResponse)(nil), // 142: vtctldata.AddCellsAliasResponse + (*vtctldata.ApplyRoutingRulesResponse)(nil), // 143: vtctldata.ApplyRoutingRulesResponse + (*vtctldata.ApplySchemaResponse)(nil), // 144: vtctldata.ApplySchemaResponse + (*vtctldata.ApplyKeyspaceRoutingRulesResponse)(nil), // 145: vtctldata.ApplyKeyspaceRoutingRulesResponse + (*vtctldata.ApplyShardRoutingRulesResponse)(nil), // 146: vtctldata.ApplyShardRoutingRulesResponse + (*vtctldata.ApplyVSchemaResponse)(nil), // 147: vtctldata.ApplyVSchemaResponse + (*vtctldata.BackupResponse)(nil), // 148: vtctldata.BackupResponse + (*vtctldata.CancelSchemaMigrationResponse)(nil), // 149: vtctldata.CancelSchemaMigrationResponse + (*vtctldata.ChangeTabletTagsResponse)(nil), // 150: vtctldata.ChangeTabletTagsResponse + (*vtctldata.ChangeTabletTypeResponse)(nil), // 151: vtctldata.ChangeTabletTypeResponse + (*vtctldata.CheckThrottlerResponse)(nil), // 152: vtctldata.CheckThrottlerResponse + (*vtctldata.CleanupSchemaMigrationResponse)(nil), // 153: vtctldata.CleanupSchemaMigrationResponse + (*vtctldata.CompleteSchemaMigrationResponse)(nil), // 154: vtctldata.CompleteSchemaMigrationResponse + (*vtctldata.ConcludeTransactionResponse)(nil), // 155: vtctldata.ConcludeTransactionResponse + (*vtctldata.CopySchemaShardResponse)(nil), // 156: vtctldata.CopySchemaShardResponse + (*vtctldata.CreateKeyspaceResponse)(nil), // 157: vtctldata.CreateKeyspaceResponse + (*vtctldata.CreateShardResponse)(nil), // 158: vtctldata.CreateShardResponse + (*vtctldata.DeleteCellInfoResponse)(nil), // 159: vtctldata.DeleteCellInfoResponse + (*vtctldata.DeleteCellsAliasResponse)(nil), // 160: vtctldata.DeleteCellsAliasResponse + (*vtctldata.DeleteKeyspaceResponse)(nil), // 161: vtctldata.DeleteKeyspaceResponse + (*vtctldata.DeleteShardsResponse)(nil), // 162: vtctldata.DeleteShardsResponse + (*vtctldata.DeleteSrvVSchemaResponse)(nil), // 163: vtctldata.DeleteSrvVSchemaResponse + (*vtctldata.DeleteTabletsResponse)(nil), // 164: vtctldata.DeleteTabletsResponse + (*vtctldata.EmergencyReparentShardResponse)(nil), // 165: vtctldata.EmergencyReparentShardResponse + (*vtctldata.ExecuteFetchAsAppResponse)(nil), // 166: vtctldata.ExecuteFetchAsAppResponse + (*vtctldata.ExecuteFetchAsDBAResponse)(nil), // 167: vtctldata.ExecuteFetchAsDBAResponse + (*vtctldata.ExecuteHookResponse)(nil), // 168: vtctldata.ExecuteHookResponse + (*vtctldata.ExecuteMultiFetchAsDBAResponse)(nil), // 169: vtctldata.ExecuteMultiFetchAsDBAResponse + (*vtctldata.FindAllShardsInKeyspaceResponse)(nil), // 170: vtctldata.FindAllShardsInKeyspaceResponse + (*vtctldata.ForceCutOverSchemaMigrationResponse)(nil), // 171: vtctldata.ForceCutOverSchemaMigrationResponse + (*vtctldata.GetBackupsResponse)(nil), // 172: vtctldata.GetBackupsResponse + (*vtctldata.GetCellInfoResponse)(nil), // 173: vtctldata.GetCellInfoResponse + (*vtctldata.GetCellInfoNamesResponse)(nil), // 174: vtctldata.GetCellInfoNamesResponse + (*vtctldata.GetCellsAliasesResponse)(nil), // 175: vtctldata.GetCellsAliasesResponse + (*vtctldata.GetFullStatusResponse)(nil), // 176: vtctldata.GetFullStatusResponse + (*vtctldata.GetKeyspaceResponse)(nil), // 177: vtctldata.GetKeyspaceResponse + (*vtctldata.GetKeyspacesResponse)(nil), // 178: vtctldata.GetKeyspacesResponse + (*vtctldata.GetKeyspaceRoutingRulesResponse)(nil), // 179: vtctldata.GetKeyspaceRoutingRulesResponse + (*vtctldata.GetPermissionsResponse)(nil), // 180: vtctldata.GetPermissionsResponse + (*vtctldata.GetRoutingRulesResponse)(nil), // 181: vtctldata.GetRoutingRulesResponse + (*vtctldata.GetSchemaResponse)(nil), // 182: vtctldata.GetSchemaResponse + (*vtctldata.GetSchemaMigrationsResponse)(nil), // 183: vtctldata.GetSchemaMigrationsResponse + (*vtctldata.GetShardReplicationResponse)(nil), // 184: vtctldata.GetShardReplicationResponse + (*vtctldata.GetShardResponse)(nil), // 185: vtctldata.GetShardResponse + (*vtctldata.GetShardRoutingRulesResponse)(nil), // 186: vtctldata.GetShardRoutingRulesResponse + (*vtctldata.GetSrvKeyspaceNamesResponse)(nil), // 187: vtctldata.GetSrvKeyspaceNamesResponse + (*vtctldata.GetSrvKeyspacesResponse)(nil), // 188: vtctldata.GetSrvKeyspacesResponse + (*vtctldata.UpdateThrottlerConfigResponse)(nil), // 189: vtctldata.UpdateThrottlerConfigResponse + (*vtctldata.GetSrvVSchemaResponse)(nil), // 190: vtctldata.GetSrvVSchemaResponse + (*vtctldata.GetSrvVSchemasResponse)(nil), // 191: vtctldata.GetSrvVSchemasResponse + (*vtctldata.GetTabletResponse)(nil), // 192: vtctldata.GetTabletResponse + (*vtctldata.GetTabletsResponse)(nil), // 193: vtctldata.GetTabletsResponse + (*vtctldata.GetThrottlerStatusResponse)(nil), // 194: vtctldata.GetThrottlerStatusResponse + (*vtctldata.GetTopologyPathResponse)(nil), // 195: vtctldata.GetTopologyPathResponse + (*vtctldata.GetTransactionInfoResponse)(nil), // 196: vtctldata.GetTransactionInfoResponse + (*vtctldata.GetUnresolvedTransactionsResponse)(nil), // 197: vtctldata.GetUnresolvedTransactionsResponse + (*vtctldata.GetVersionResponse)(nil), // 198: vtctldata.GetVersionResponse + (*vtctldata.GetVSchemaResponse)(nil), // 199: vtctldata.GetVSchemaResponse + (*vtctldata.GetWorkflowsResponse)(nil), // 200: vtctldata.GetWorkflowsResponse + (*vtctldata.InitShardPrimaryResponse)(nil), // 201: vtctldata.InitShardPrimaryResponse + (*vtctldata.LaunchSchemaMigrationResponse)(nil), // 202: vtctldata.LaunchSchemaMigrationResponse + (*vtctldata.LookupVindexCompleteResponse)(nil), // 203: vtctldata.LookupVindexCompleteResponse + (*vtctldata.LookupVindexCreateResponse)(nil), // 204: vtctldata.LookupVindexCreateResponse + (*vtctldata.LookupVindexExternalizeResponse)(nil), // 205: vtctldata.LookupVindexExternalizeResponse + (*vtctldata.LookupVindexInternalizeResponse)(nil), // 206: vtctldata.LookupVindexInternalizeResponse + (*vtctldata.MaterializeCreateResponse)(nil), // 207: vtctldata.MaterializeCreateResponse + (*vtctldata.WorkflowStatusResponse)(nil), // 208: vtctldata.WorkflowStatusResponse + (*vtctldata.MountRegisterResponse)(nil), // 209: vtctldata.MountRegisterResponse + (*vtctldata.MountUnregisterResponse)(nil), // 210: vtctldata.MountUnregisterResponse + (*vtctldata.MountShowResponse)(nil), // 211: vtctldata.MountShowResponse + (*vtctldata.MountListResponse)(nil), // 212: vtctldata.MountListResponse + (*vtctldata.MoveTablesCompleteResponse)(nil), // 213: vtctldata.MoveTablesCompleteResponse + (*vtctldata.PingTabletResponse)(nil), // 214: vtctldata.PingTabletResponse + (*vtctldata.PlannedReparentShardResponse)(nil), // 215: vtctldata.PlannedReparentShardResponse + (*vtctldata.RebuildKeyspaceGraphResponse)(nil), // 216: vtctldata.RebuildKeyspaceGraphResponse + (*vtctldata.RebuildVSchemaGraphResponse)(nil), // 217: vtctldata.RebuildVSchemaGraphResponse + (*vtctldata.RefreshStateResponse)(nil), // 218: vtctldata.RefreshStateResponse + (*vtctldata.RefreshStateByShardResponse)(nil), // 219: vtctldata.RefreshStateByShardResponse + (*vtctldata.ReloadSchemaResponse)(nil), // 220: vtctldata.ReloadSchemaResponse + (*vtctldata.ReloadSchemaKeyspaceResponse)(nil), // 221: vtctldata.ReloadSchemaKeyspaceResponse + (*vtctldata.ReloadSchemaShardResponse)(nil), // 222: vtctldata.ReloadSchemaShardResponse + (*vtctldata.RemoveBackupResponse)(nil), // 223: vtctldata.RemoveBackupResponse + (*vtctldata.RemoveKeyspaceCellResponse)(nil), // 224: vtctldata.RemoveKeyspaceCellResponse + (*vtctldata.RemoveShardCellResponse)(nil), // 225: vtctldata.RemoveShardCellResponse + (*vtctldata.ReparentTabletResponse)(nil), // 226: vtctldata.ReparentTabletResponse + (*vtctldata.RestoreFromBackupResponse)(nil), // 227: vtctldata.RestoreFromBackupResponse + (*vtctldata.RetrySchemaMigrationResponse)(nil), // 228: vtctldata.RetrySchemaMigrationResponse + (*vtctldata.RunHealthCheckResponse)(nil), // 229: vtctldata.RunHealthCheckResponse + (*vtctldata.SetKeyspaceDurabilityPolicyResponse)(nil), // 230: vtctldata.SetKeyspaceDurabilityPolicyResponse + (*vtctldata.SetShardIsPrimaryServingResponse)(nil), // 231: vtctldata.SetShardIsPrimaryServingResponse + (*vtctldata.SetShardTabletControlResponse)(nil), // 232: vtctldata.SetShardTabletControlResponse + (*vtctldata.SetWritableResponse)(nil), // 233: vtctldata.SetWritableResponse + (*vtctldata.ShardReplicationAddResponse)(nil), // 234: vtctldata.ShardReplicationAddResponse + (*vtctldata.ShardReplicationFixResponse)(nil), // 235: vtctldata.ShardReplicationFixResponse + (*vtctldata.ShardReplicationPositionsResponse)(nil), // 236: vtctldata.ShardReplicationPositionsResponse + (*vtctldata.ShardReplicationRemoveResponse)(nil), // 237: vtctldata.ShardReplicationRemoveResponse + (*vtctldata.SleepTabletResponse)(nil), // 238: vtctldata.SleepTabletResponse + (*vtctldata.SourceShardAddResponse)(nil), // 239: vtctldata.SourceShardAddResponse + (*vtctldata.SourceShardDeleteResponse)(nil), // 240: vtctldata.SourceShardDeleteResponse + (*vtctldata.StartReplicationResponse)(nil), // 241: vtctldata.StartReplicationResponse + (*vtctldata.StopReplicationResponse)(nil), // 242: vtctldata.StopReplicationResponse + (*vtctldata.TabletExternallyReparentedResponse)(nil), // 243: vtctldata.TabletExternallyReparentedResponse + (*vtctldata.UpdateCellInfoResponse)(nil), // 244: vtctldata.UpdateCellInfoResponse + (*vtctldata.UpdateCellsAliasResponse)(nil), // 245: vtctldata.UpdateCellsAliasResponse + (*vtctldata.ValidateResponse)(nil), // 246: vtctldata.ValidateResponse + (*vtctldata.ValidateKeyspaceResponse)(nil), // 247: vtctldata.ValidateKeyspaceResponse + (*vtctldata.ValidatePermissionsKeyspaceResponse)(nil), // 248: vtctldata.ValidatePermissionsKeyspaceResponse + (*vtctldata.ValidateSchemaKeyspaceResponse)(nil), // 249: vtctldata.ValidateSchemaKeyspaceResponse + (*vtctldata.ValidateShardResponse)(nil), // 250: vtctldata.ValidateShardResponse + (*vtctldata.ValidateVersionKeyspaceResponse)(nil), // 251: vtctldata.ValidateVersionKeyspaceResponse + (*vtctldata.ValidateVersionShardResponse)(nil), // 252: vtctldata.ValidateVersionShardResponse + (*vtctldata.ValidateVSchemaResponse)(nil), // 253: vtctldata.ValidateVSchemaResponse + (*vtctldata.VDiffCreateResponse)(nil), // 254: vtctldata.VDiffCreateResponse + (*vtctldata.VDiffDeleteResponse)(nil), // 255: vtctldata.VDiffDeleteResponse + (*vtctldata.VDiffResumeResponse)(nil), // 256: vtctldata.VDiffResumeResponse + (*vtctldata.VDiffShowResponse)(nil), // 257: vtctldata.VDiffShowResponse + (*vtctldata.VDiffStopResponse)(nil), // 258: vtctldata.VDiffStopResponse + (*vtctldata.VSchemaCreateResponse)(nil), // 259: vtctldata.VSchemaCreateResponse + (*vtctldata.VSchemaGetResponse)(nil), // 260: vtctldata.VSchemaGetResponse + (*vtctldata.VSchemaUpdateResponse)(nil), // 261: vtctldata.VSchemaUpdateResponse + (*vtctldata.VSchemaPublishResponse)(nil), // 262: vtctldata.VSchemaPublishResponse + (*vtctldata.VSchemaAddVindexResponse)(nil), // 263: vtctldata.VSchemaAddVindexResponse + (*vtctldata.VSchemaRemoveVindexResponse)(nil), // 264: vtctldata.VSchemaRemoveVindexResponse + (*vtctldata.VSchemaAddLookupVindexResponse)(nil), // 265: vtctldata.VSchemaAddLookupVindexResponse + (*vtctldata.VSchemaAddTablesResponse)(nil), // 266: vtctldata.VSchemaAddTablesResponse + (*vtctldata.VSchemaRemoveTablesResponse)(nil), // 267: vtctldata.VSchemaRemoveTablesResponse + (*vtctldata.VSchemaSetPrimaryVindexResponse)(nil), // 268: vtctldata.VSchemaSetPrimaryVindexResponse + (*vtctldata.VSchemaSetSequenceResponse)(nil), // 269: vtctldata.VSchemaSetSequenceResponse + (*vtctldata.VSchemaSetReferenceResponse)(nil), // 270: vtctldata.VSchemaSetReferenceResponse + (*vtctldata.WorkflowDeleteResponse)(nil), // 271: vtctldata.WorkflowDeleteResponse + (*vtctldata.WorkflowSwitchTrafficResponse)(nil), // 272: vtctldata.WorkflowSwitchTrafficResponse + (*vtctldata.WorkflowUpdateResponse)(nil), // 273: vtctldata.WorkflowUpdateResponse + (*vtctldata.GetMirrorRulesResponse)(nil), // 274: vtctldata.GetMirrorRulesResponse + (*vtctldata.WorkflowMirrorTrafficResponse)(nil), // 275: vtctldata.WorkflowMirrorTrafficResponse } var file_vtctlservice_proto_depIdxs = []int32{ 0, // 0: vtctlservice.Vtctl.ExecuteVtctlCommand:input_type -> vtctldata.ExecuteVtctlCommandRequest @@ -1191,142 +1288,166 @@ var file_vtctlservice_proto_depIdxs = []int32{ 119, // 119: vtctlservice.Vtctld.VDiffResume:input_type -> vtctldata.VDiffResumeRequest 120, // 120: vtctlservice.Vtctld.VDiffShow:input_type -> vtctldata.VDiffShowRequest 121, // 121: vtctlservice.Vtctld.VDiffStop:input_type -> vtctldata.VDiffStopRequest - 122, // 122: vtctlservice.Vtctld.WorkflowDelete:input_type -> vtctldata.WorkflowDeleteRequest - 123, // 123: vtctlservice.Vtctld.WorkflowStatus:input_type -> vtctldata.WorkflowStatusRequest - 124, // 124: vtctlservice.Vtctld.WorkflowSwitchTraffic:input_type -> vtctldata.WorkflowSwitchTrafficRequest - 125, // 125: vtctlservice.Vtctld.WorkflowUpdate:input_type -> vtctldata.WorkflowUpdateRequest - 126, // 126: vtctlservice.Vtctld.GetMirrorRules:input_type -> vtctldata.GetMirrorRulesRequest - 127, // 127: vtctlservice.Vtctld.WorkflowMirrorTraffic:input_type -> vtctldata.WorkflowMirrorTrafficRequest - 128, // 128: vtctlservice.Vtctl.ExecuteVtctlCommand:output_type -> vtctldata.ExecuteVtctlCommandResponse - 129, // 129: vtctlservice.Vtctld.AddCellInfo:output_type -> vtctldata.AddCellInfoResponse - 130, // 130: vtctlservice.Vtctld.AddCellsAlias:output_type -> vtctldata.AddCellsAliasResponse - 131, // 131: vtctlservice.Vtctld.ApplyRoutingRules:output_type -> vtctldata.ApplyRoutingRulesResponse - 132, // 132: vtctlservice.Vtctld.ApplySchema:output_type -> vtctldata.ApplySchemaResponse - 133, // 133: vtctlservice.Vtctld.ApplyKeyspaceRoutingRules:output_type -> vtctldata.ApplyKeyspaceRoutingRulesResponse - 134, // 134: vtctlservice.Vtctld.ApplyShardRoutingRules:output_type -> vtctldata.ApplyShardRoutingRulesResponse - 135, // 135: vtctlservice.Vtctld.ApplyVSchema:output_type -> vtctldata.ApplyVSchemaResponse - 136, // 136: vtctlservice.Vtctld.Backup:output_type -> vtctldata.BackupResponse - 136, // 137: vtctlservice.Vtctld.BackupShard:output_type -> vtctldata.BackupResponse - 137, // 138: vtctlservice.Vtctld.CancelSchemaMigration:output_type -> vtctldata.CancelSchemaMigrationResponse - 138, // 139: vtctlservice.Vtctld.ChangeTabletTags:output_type -> vtctldata.ChangeTabletTagsResponse - 139, // 140: vtctlservice.Vtctld.ChangeTabletType:output_type -> vtctldata.ChangeTabletTypeResponse - 140, // 141: vtctlservice.Vtctld.CheckThrottler:output_type -> vtctldata.CheckThrottlerResponse - 141, // 142: vtctlservice.Vtctld.CleanupSchemaMigration:output_type -> vtctldata.CleanupSchemaMigrationResponse - 142, // 143: vtctlservice.Vtctld.CompleteSchemaMigration:output_type -> vtctldata.CompleteSchemaMigrationResponse - 143, // 144: vtctlservice.Vtctld.ConcludeTransaction:output_type -> vtctldata.ConcludeTransactionResponse - 144, // 145: vtctlservice.Vtctld.CopySchemaShard:output_type -> vtctldata.CopySchemaShardResponse - 145, // 146: vtctlservice.Vtctld.CreateKeyspace:output_type -> vtctldata.CreateKeyspaceResponse - 146, // 147: vtctlservice.Vtctld.CreateShard:output_type -> vtctldata.CreateShardResponse - 147, // 148: vtctlservice.Vtctld.DeleteCellInfo:output_type -> vtctldata.DeleteCellInfoResponse - 148, // 149: vtctlservice.Vtctld.DeleteCellsAlias:output_type -> vtctldata.DeleteCellsAliasResponse - 149, // 150: vtctlservice.Vtctld.DeleteKeyspace:output_type -> vtctldata.DeleteKeyspaceResponse - 150, // 151: vtctlservice.Vtctld.DeleteShards:output_type -> vtctldata.DeleteShardsResponse - 151, // 152: vtctlservice.Vtctld.DeleteSrvVSchema:output_type -> vtctldata.DeleteSrvVSchemaResponse - 152, // 153: vtctlservice.Vtctld.DeleteTablets:output_type -> vtctldata.DeleteTabletsResponse - 153, // 154: vtctlservice.Vtctld.EmergencyReparentShard:output_type -> vtctldata.EmergencyReparentShardResponse - 154, // 155: vtctlservice.Vtctld.ExecuteFetchAsApp:output_type -> vtctldata.ExecuteFetchAsAppResponse - 155, // 156: vtctlservice.Vtctld.ExecuteFetchAsDBA:output_type -> vtctldata.ExecuteFetchAsDBAResponse - 156, // 157: vtctlservice.Vtctld.ExecuteHook:output_type -> vtctldata.ExecuteHookResponse - 157, // 158: vtctlservice.Vtctld.ExecuteMultiFetchAsDBA:output_type -> vtctldata.ExecuteMultiFetchAsDBAResponse - 158, // 159: vtctlservice.Vtctld.FindAllShardsInKeyspace:output_type -> vtctldata.FindAllShardsInKeyspaceResponse - 159, // 160: vtctlservice.Vtctld.ForceCutOverSchemaMigration:output_type -> vtctldata.ForceCutOverSchemaMigrationResponse - 160, // 161: vtctlservice.Vtctld.GetBackups:output_type -> vtctldata.GetBackupsResponse - 161, // 162: vtctlservice.Vtctld.GetCellInfo:output_type -> vtctldata.GetCellInfoResponse - 162, // 163: vtctlservice.Vtctld.GetCellInfoNames:output_type -> vtctldata.GetCellInfoNamesResponse - 163, // 164: vtctlservice.Vtctld.GetCellsAliases:output_type -> vtctldata.GetCellsAliasesResponse - 164, // 165: vtctlservice.Vtctld.GetFullStatus:output_type -> vtctldata.GetFullStatusResponse - 165, // 166: vtctlservice.Vtctld.GetKeyspace:output_type -> vtctldata.GetKeyspaceResponse - 166, // 167: vtctlservice.Vtctld.GetKeyspaces:output_type -> vtctldata.GetKeyspacesResponse - 167, // 168: vtctlservice.Vtctld.GetKeyspaceRoutingRules:output_type -> vtctldata.GetKeyspaceRoutingRulesResponse - 168, // 169: vtctlservice.Vtctld.GetPermissions:output_type -> vtctldata.GetPermissionsResponse - 169, // 170: vtctlservice.Vtctld.GetRoutingRules:output_type -> vtctldata.GetRoutingRulesResponse - 170, // 171: vtctlservice.Vtctld.GetSchema:output_type -> vtctldata.GetSchemaResponse - 171, // 172: vtctlservice.Vtctld.GetSchemaMigrations:output_type -> vtctldata.GetSchemaMigrationsResponse - 172, // 173: vtctlservice.Vtctld.GetShardReplication:output_type -> vtctldata.GetShardReplicationResponse - 173, // 174: vtctlservice.Vtctld.GetShard:output_type -> vtctldata.GetShardResponse - 174, // 175: vtctlservice.Vtctld.GetShardRoutingRules:output_type -> vtctldata.GetShardRoutingRulesResponse - 175, // 176: vtctlservice.Vtctld.GetSrvKeyspaceNames:output_type -> vtctldata.GetSrvKeyspaceNamesResponse - 176, // 177: vtctlservice.Vtctld.GetSrvKeyspaces:output_type -> vtctldata.GetSrvKeyspacesResponse - 177, // 178: vtctlservice.Vtctld.UpdateThrottlerConfig:output_type -> vtctldata.UpdateThrottlerConfigResponse - 178, // 179: vtctlservice.Vtctld.GetSrvVSchema:output_type -> vtctldata.GetSrvVSchemaResponse - 179, // 180: vtctlservice.Vtctld.GetSrvVSchemas:output_type -> vtctldata.GetSrvVSchemasResponse - 180, // 181: vtctlservice.Vtctld.GetTablet:output_type -> vtctldata.GetTabletResponse - 181, // 182: vtctlservice.Vtctld.GetTablets:output_type -> vtctldata.GetTabletsResponse - 182, // 183: vtctlservice.Vtctld.GetThrottlerStatus:output_type -> vtctldata.GetThrottlerStatusResponse - 183, // 184: vtctlservice.Vtctld.GetTopologyPath:output_type -> vtctldata.GetTopologyPathResponse - 184, // 185: vtctlservice.Vtctld.GetTransactionInfo:output_type -> vtctldata.GetTransactionInfoResponse - 185, // 186: vtctlservice.Vtctld.GetUnresolvedTransactions:output_type -> vtctldata.GetUnresolvedTransactionsResponse - 186, // 187: vtctlservice.Vtctld.GetVersion:output_type -> vtctldata.GetVersionResponse - 187, // 188: vtctlservice.Vtctld.GetVSchema:output_type -> vtctldata.GetVSchemaResponse - 188, // 189: vtctlservice.Vtctld.GetWorkflows:output_type -> vtctldata.GetWorkflowsResponse - 189, // 190: vtctlservice.Vtctld.InitShardPrimary:output_type -> vtctldata.InitShardPrimaryResponse - 190, // 191: vtctlservice.Vtctld.LaunchSchemaMigration:output_type -> vtctldata.LaunchSchemaMigrationResponse - 191, // 192: vtctlservice.Vtctld.LookupVindexComplete:output_type -> vtctldata.LookupVindexCompleteResponse - 192, // 193: vtctlservice.Vtctld.LookupVindexCreate:output_type -> vtctldata.LookupVindexCreateResponse - 193, // 194: vtctlservice.Vtctld.LookupVindexExternalize:output_type -> vtctldata.LookupVindexExternalizeResponse - 194, // 195: vtctlservice.Vtctld.LookupVindexInternalize:output_type -> vtctldata.LookupVindexInternalizeResponse - 195, // 196: vtctlservice.Vtctld.MaterializeCreate:output_type -> vtctldata.MaterializeCreateResponse - 196, // 197: vtctlservice.Vtctld.MigrateCreate:output_type -> vtctldata.WorkflowStatusResponse - 197, // 198: vtctlservice.Vtctld.MountRegister:output_type -> vtctldata.MountRegisterResponse - 198, // 199: vtctlservice.Vtctld.MountUnregister:output_type -> vtctldata.MountUnregisterResponse - 199, // 200: vtctlservice.Vtctld.MountShow:output_type -> vtctldata.MountShowResponse - 200, // 201: vtctlservice.Vtctld.MountList:output_type -> vtctldata.MountListResponse - 196, // 202: vtctlservice.Vtctld.MoveTablesCreate:output_type -> vtctldata.WorkflowStatusResponse - 201, // 203: vtctlservice.Vtctld.MoveTablesComplete:output_type -> vtctldata.MoveTablesCompleteResponse - 202, // 204: vtctlservice.Vtctld.PingTablet:output_type -> vtctldata.PingTabletResponse - 203, // 205: vtctlservice.Vtctld.PlannedReparentShard:output_type -> vtctldata.PlannedReparentShardResponse - 204, // 206: vtctlservice.Vtctld.RebuildKeyspaceGraph:output_type -> vtctldata.RebuildKeyspaceGraphResponse - 205, // 207: vtctlservice.Vtctld.RebuildVSchemaGraph:output_type -> vtctldata.RebuildVSchemaGraphResponse - 206, // 208: vtctlservice.Vtctld.RefreshState:output_type -> vtctldata.RefreshStateResponse - 207, // 209: vtctlservice.Vtctld.RefreshStateByShard:output_type -> vtctldata.RefreshStateByShardResponse - 208, // 210: vtctlservice.Vtctld.ReloadSchema:output_type -> vtctldata.ReloadSchemaResponse - 209, // 211: vtctlservice.Vtctld.ReloadSchemaKeyspace:output_type -> vtctldata.ReloadSchemaKeyspaceResponse - 210, // 212: vtctlservice.Vtctld.ReloadSchemaShard:output_type -> vtctldata.ReloadSchemaShardResponse - 211, // 213: vtctlservice.Vtctld.RemoveBackup:output_type -> vtctldata.RemoveBackupResponse - 212, // 214: vtctlservice.Vtctld.RemoveKeyspaceCell:output_type -> vtctldata.RemoveKeyspaceCellResponse - 213, // 215: vtctlservice.Vtctld.RemoveShardCell:output_type -> vtctldata.RemoveShardCellResponse - 214, // 216: vtctlservice.Vtctld.ReparentTablet:output_type -> vtctldata.ReparentTabletResponse - 196, // 217: vtctlservice.Vtctld.ReshardCreate:output_type -> vtctldata.WorkflowStatusResponse - 215, // 218: vtctlservice.Vtctld.RestoreFromBackup:output_type -> vtctldata.RestoreFromBackupResponse - 216, // 219: vtctlservice.Vtctld.RetrySchemaMigration:output_type -> vtctldata.RetrySchemaMigrationResponse - 217, // 220: vtctlservice.Vtctld.RunHealthCheck:output_type -> vtctldata.RunHealthCheckResponse - 218, // 221: vtctlservice.Vtctld.SetKeyspaceDurabilityPolicy:output_type -> vtctldata.SetKeyspaceDurabilityPolicyResponse - 219, // 222: vtctlservice.Vtctld.SetShardIsPrimaryServing:output_type -> vtctldata.SetShardIsPrimaryServingResponse - 220, // 223: vtctlservice.Vtctld.SetShardTabletControl:output_type -> vtctldata.SetShardTabletControlResponse - 221, // 224: vtctlservice.Vtctld.SetWritable:output_type -> vtctldata.SetWritableResponse - 222, // 225: vtctlservice.Vtctld.ShardReplicationAdd:output_type -> vtctldata.ShardReplicationAddResponse - 223, // 226: vtctlservice.Vtctld.ShardReplicationFix:output_type -> vtctldata.ShardReplicationFixResponse - 224, // 227: vtctlservice.Vtctld.ShardReplicationPositions:output_type -> vtctldata.ShardReplicationPositionsResponse - 225, // 228: vtctlservice.Vtctld.ShardReplicationRemove:output_type -> vtctldata.ShardReplicationRemoveResponse - 226, // 229: vtctlservice.Vtctld.SleepTablet:output_type -> vtctldata.SleepTabletResponse - 227, // 230: vtctlservice.Vtctld.SourceShardAdd:output_type -> vtctldata.SourceShardAddResponse - 228, // 231: vtctlservice.Vtctld.SourceShardDelete:output_type -> vtctldata.SourceShardDeleteResponse - 229, // 232: vtctlservice.Vtctld.StartReplication:output_type -> vtctldata.StartReplicationResponse - 230, // 233: vtctlservice.Vtctld.StopReplication:output_type -> vtctldata.StopReplicationResponse - 231, // 234: vtctlservice.Vtctld.TabletExternallyReparented:output_type -> vtctldata.TabletExternallyReparentedResponse - 232, // 235: vtctlservice.Vtctld.UpdateCellInfo:output_type -> vtctldata.UpdateCellInfoResponse - 233, // 236: vtctlservice.Vtctld.UpdateCellsAlias:output_type -> vtctldata.UpdateCellsAliasResponse - 234, // 237: vtctlservice.Vtctld.Validate:output_type -> vtctldata.ValidateResponse - 235, // 238: vtctlservice.Vtctld.ValidateKeyspace:output_type -> vtctldata.ValidateKeyspaceResponse - 236, // 239: vtctlservice.Vtctld.ValidatePermissionsKeyspace:output_type -> vtctldata.ValidatePermissionsKeyspaceResponse - 237, // 240: vtctlservice.Vtctld.ValidateSchemaKeyspace:output_type -> vtctldata.ValidateSchemaKeyspaceResponse - 238, // 241: vtctlservice.Vtctld.ValidateShard:output_type -> vtctldata.ValidateShardResponse - 239, // 242: vtctlservice.Vtctld.ValidateVersionKeyspace:output_type -> vtctldata.ValidateVersionKeyspaceResponse - 240, // 243: vtctlservice.Vtctld.ValidateVersionShard:output_type -> vtctldata.ValidateVersionShardResponse - 241, // 244: vtctlservice.Vtctld.ValidateVSchema:output_type -> vtctldata.ValidateVSchemaResponse - 242, // 245: vtctlservice.Vtctld.VDiffCreate:output_type -> vtctldata.VDiffCreateResponse - 243, // 246: vtctlservice.Vtctld.VDiffDelete:output_type -> vtctldata.VDiffDeleteResponse - 244, // 247: vtctlservice.Vtctld.VDiffResume:output_type -> vtctldata.VDiffResumeResponse - 245, // 248: vtctlservice.Vtctld.VDiffShow:output_type -> vtctldata.VDiffShowResponse - 246, // 249: vtctlservice.Vtctld.VDiffStop:output_type -> vtctldata.VDiffStopResponse - 247, // 250: vtctlservice.Vtctld.WorkflowDelete:output_type -> vtctldata.WorkflowDeleteResponse - 196, // 251: vtctlservice.Vtctld.WorkflowStatus:output_type -> vtctldata.WorkflowStatusResponse - 248, // 252: vtctlservice.Vtctld.WorkflowSwitchTraffic:output_type -> vtctldata.WorkflowSwitchTrafficResponse - 249, // 253: vtctlservice.Vtctld.WorkflowUpdate:output_type -> vtctldata.WorkflowUpdateResponse - 250, // 254: vtctlservice.Vtctld.GetMirrorRules:output_type -> vtctldata.GetMirrorRulesResponse - 251, // 255: vtctlservice.Vtctld.WorkflowMirrorTraffic:output_type -> vtctldata.WorkflowMirrorTrafficResponse - 128, // [128:256] is the sub-list for method output_type - 0, // [0:128] is the sub-list for method input_type + 122, // 122: vtctlservice.Vtctld.VSchemaCreate:input_type -> vtctldata.VSchemaCreateRequest + 123, // 123: vtctlservice.Vtctld.VSchemaGet:input_type -> vtctldata.VSchemaGetRequest + 124, // 124: vtctlservice.Vtctld.VSchemaUpdate:input_type -> vtctldata.VSchemaUpdateRequest + 125, // 125: vtctlservice.Vtctld.VSchemaPublish:input_type -> vtctldata.VSchemaPublishRequest + 126, // 126: vtctlservice.Vtctld.VSchemaAddVindex:input_type -> vtctldata.VSchemaAddVindexRequest + 127, // 127: vtctlservice.Vtctld.VSchemaRemoveVindex:input_type -> vtctldata.VSchemaRemoveVindexRequest + 128, // 128: vtctlservice.Vtctld.VSchemaAddLookupVindex:input_type -> vtctldata.VSchemaAddLookupVindexRequest + 129, // 129: vtctlservice.Vtctld.VSchemaAddTables:input_type -> vtctldata.VSchemaAddTablesRequest + 130, // 130: vtctlservice.Vtctld.VSchemaRemoveTables:input_type -> vtctldata.VSchemaRemoveTablesRequest + 131, // 131: vtctlservice.Vtctld.VSchemaSetPrimaryVindex:input_type -> vtctldata.VSchemaSetPrimaryVindexRequest + 132, // 132: vtctlservice.Vtctld.VSchemaSetSequence:input_type -> vtctldata.VSchemaSetSequenceRequest + 133, // 133: vtctlservice.Vtctld.VSchemaSetReference:input_type -> vtctldata.VSchemaSetReferenceRequest + 134, // 134: vtctlservice.Vtctld.WorkflowDelete:input_type -> vtctldata.WorkflowDeleteRequest + 135, // 135: vtctlservice.Vtctld.WorkflowStatus:input_type -> vtctldata.WorkflowStatusRequest + 136, // 136: vtctlservice.Vtctld.WorkflowSwitchTraffic:input_type -> vtctldata.WorkflowSwitchTrafficRequest + 137, // 137: vtctlservice.Vtctld.WorkflowUpdate:input_type -> vtctldata.WorkflowUpdateRequest + 138, // 138: vtctlservice.Vtctld.GetMirrorRules:input_type -> vtctldata.GetMirrorRulesRequest + 139, // 139: vtctlservice.Vtctld.WorkflowMirrorTraffic:input_type -> vtctldata.WorkflowMirrorTrafficRequest + 140, // 140: vtctlservice.Vtctl.ExecuteVtctlCommand:output_type -> vtctldata.ExecuteVtctlCommandResponse + 141, // 141: vtctlservice.Vtctld.AddCellInfo:output_type -> vtctldata.AddCellInfoResponse + 142, // 142: vtctlservice.Vtctld.AddCellsAlias:output_type -> vtctldata.AddCellsAliasResponse + 143, // 143: vtctlservice.Vtctld.ApplyRoutingRules:output_type -> vtctldata.ApplyRoutingRulesResponse + 144, // 144: vtctlservice.Vtctld.ApplySchema:output_type -> vtctldata.ApplySchemaResponse + 145, // 145: vtctlservice.Vtctld.ApplyKeyspaceRoutingRules:output_type -> vtctldata.ApplyKeyspaceRoutingRulesResponse + 146, // 146: vtctlservice.Vtctld.ApplyShardRoutingRules:output_type -> vtctldata.ApplyShardRoutingRulesResponse + 147, // 147: vtctlservice.Vtctld.ApplyVSchema:output_type -> vtctldata.ApplyVSchemaResponse + 148, // 148: vtctlservice.Vtctld.Backup:output_type -> vtctldata.BackupResponse + 148, // 149: vtctlservice.Vtctld.BackupShard:output_type -> vtctldata.BackupResponse + 149, // 150: vtctlservice.Vtctld.CancelSchemaMigration:output_type -> vtctldata.CancelSchemaMigrationResponse + 150, // 151: vtctlservice.Vtctld.ChangeTabletTags:output_type -> vtctldata.ChangeTabletTagsResponse + 151, // 152: vtctlservice.Vtctld.ChangeTabletType:output_type -> vtctldata.ChangeTabletTypeResponse + 152, // 153: vtctlservice.Vtctld.CheckThrottler:output_type -> vtctldata.CheckThrottlerResponse + 153, // 154: vtctlservice.Vtctld.CleanupSchemaMigration:output_type -> vtctldata.CleanupSchemaMigrationResponse + 154, // 155: vtctlservice.Vtctld.CompleteSchemaMigration:output_type -> vtctldata.CompleteSchemaMigrationResponse + 155, // 156: vtctlservice.Vtctld.ConcludeTransaction:output_type -> vtctldata.ConcludeTransactionResponse + 156, // 157: vtctlservice.Vtctld.CopySchemaShard:output_type -> vtctldata.CopySchemaShardResponse + 157, // 158: vtctlservice.Vtctld.CreateKeyspace:output_type -> vtctldata.CreateKeyspaceResponse + 158, // 159: vtctlservice.Vtctld.CreateShard:output_type -> vtctldata.CreateShardResponse + 159, // 160: vtctlservice.Vtctld.DeleteCellInfo:output_type -> vtctldata.DeleteCellInfoResponse + 160, // 161: vtctlservice.Vtctld.DeleteCellsAlias:output_type -> vtctldata.DeleteCellsAliasResponse + 161, // 162: vtctlservice.Vtctld.DeleteKeyspace:output_type -> vtctldata.DeleteKeyspaceResponse + 162, // 163: vtctlservice.Vtctld.DeleteShards:output_type -> vtctldata.DeleteShardsResponse + 163, // 164: vtctlservice.Vtctld.DeleteSrvVSchema:output_type -> vtctldata.DeleteSrvVSchemaResponse + 164, // 165: vtctlservice.Vtctld.DeleteTablets:output_type -> vtctldata.DeleteTabletsResponse + 165, // 166: vtctlservice.Vtctld.EmergencyReparentShard:output_type -> vtctldata.EmergencyReparentShardResponse + 166, // 167: vtctlservice.Vtctld.ExecuteFetchAsApp:output_type -> vtctldata.ExecuteFetchAsAppResponse + 167, // 168: vtctlservice.Vtctld.ExecuteFetchAsDBA:output_type -> vtctldata.ExecuteFetchAsDBAResponse + 168, // 169: vtctlservice.Vtctld.ExecuteHook:output_type -> vtctldata.ExecuteHookResponse + 169, // 170: vtctlservice.Vtctld.ExecuteMultiFetchAsDBA:output_type -> vtctldata.ExecuteMultiFetchAsDBAResponse + 170, // 171: vtctlservice.Vtctld.FindAllShardsInKeyspace:output_type -> vtctldata.FindAllShardsInKeyspaceResponse + 171, // 172: vtctlservice.Vtctld.ForceCutOverSchemaMigration:output_type -> vtctldata.ForceCutOverSchemaMigrationResponse + 172, // 173: vtctlservice.Vtctld.GetBackups:output_type -> vtctldata.GetBackupsResponse + 173, // 174: vtctlservice.Vtctld.GetCellInfo:output_type -> vtctldata.GetCellInfoResponse + 174, // 175: vtctlservice.Vtctld.GetCellInfoNames:output_type -> vtctldata.GetCellInfoNamesResponse + 175, // 176: vtctlservice.Vtctld.GetCellsAliases:output_type -> vtctldata.GetCellsAliasesResponse + 176, // 177: vtctlservice.Vtctld.GetFullStatus:output_type -> vtctldata.GetFullStatusResponse + 177, // 178: vtctlservice.Vtctld.GetKeyspace:output_type -> vtctldata.GetKeyspaceResponse + 178, // 179: vtctlservice.Vtctld.GetKeyspaces:output_type -> vtctldata.GetKeyspacesResponse + 179, // 180: vtctlservice.Vtctld.GetKeyspaceRoutingRules:output_type -> vtctldata.GetKeyspaceRoutingRulesResponse + 180, // 181: vtctlservice.Vtctld.GetPermissions:output_type -> vtctldata.GetPermissionsResponse + 181, // 182: vtctlservice.Vtctld.GetRoutingRules:output_type -> vtctldata.GetRoutingRulesResponse + 182, // 183: vtctlservice.Vtctld.GetSchema:output_type -> vtctldata.GetSchemaResponse + 183, // 184: vtctlservice.Vtctld.GetSchemaMigrations:output_type -> vtctldata.GetSchemaMigrationsResponse + 184, // 185: vtctlservice.Vtctld.GetShardReplication:output_type -> vtctldata.GetShardReplicationResponse + 185, // 186: vtctlservice.Vtctld.GetShard:output_type -> vtctldata.GetShardResponse + 186, // 187: vtctlservice.Vtctld.GetShardRoutingRules:output_type -> vtctldata.GetShardRoutingRulesResponse + 187, // 188: vtctlservice.Vtctld.GetSrvKeyspaceNames:output_type -> vtctldata.GetSrvKeyspaceNamesResponse + 188, // 189: vtctlservice.Vtctld.GetSrvKeyspaces:output_type -> vtctldata.GetSrvKeyspacesResponse + 189, // 190: vtctlservice.Vtctld.UpdateThrottlerConfig:output_type -> vtctldata.UpdateThrottlerConfigResponse + 190, // 191: vtctlservice.Vtctld.GetSrvVSchema:output_type -> vtctldata.GetSrvVSchemaResponse + 191, // 192: vtctlservice.Vtctld.GetSrvVSchemas:output_type -> vtctldata.GetSrvVSchemasResponse + 192, // 193: vtctlservice.Vtctld.GetTablet:output_type -> vtctldata.GetTabletResponse + 193, // 194: vtctlservice.Vtctld.GetTablets:output_type -> vtctldata.GetTabletsResponse + 194, // 195: vtctlservice.Vtctld.GetThrottlerStatus:output_type -> vtctldata.GetThrottlerStatusResponse + 195, // 196: vtctlservice.Vtctld.GetTopologyPath:output_type -> vtctldata.GetTopologyPathResponse + 196, // 197: vtctlservice.Vtctld.GetTransactionInfo:output_type -> vtctldata.GetTransactionInfoResponse + 197, // 198: vtctlservice.Vtctld.GetUnresolvedTransactions:output_type -> vtctldata.GetUnresolvedTransactionsResponse + 198, // 199: vtctlservice.Vtctld.GetVersion:output_type -> vtctldata.GetVersionResponse + 199, // 200: vtctlservice.Vtctld.GetVSchema:output_type -> vtctldata.GetVSchemaResponse + 200, // 201: vtctlservice.Vtctld.GetWorkflows:output_type -> vtctldata.GetWorkflowsResponse + 201, // 202: vtctlservice.Vtctld.InitShardPrimary:output_type -> vtctldata.InitShardPrimaryResponse + 202, // 203: vtctlservice.Vtctld.LaunchSchemaMigration:output_type -> vtctldata.LaunchSchemaMigrationResponse + 203, // 204: vtctlservice.Vtctld.LookupVindexComplete:output_type -> vtctldata.LookupVindexCompleteResponse + 204, // 205: vtctlservice.Vtctld.LookupVindexCreate:output_type -> vtctldata.LookupVindexCreateResponse + 205, // 206: vtctlservice.Vtctld.LookupVindexExternalize:output_type -> vtctldata.LookupVindexExternalizeResponse + 206, // 207: vtctlservice.Vtctld.LookupVindexInternalize:output_type -> vtctldata.LookupVindexInternalizeResponse + 207, // 208: vtctlservice.Vtctld.MaterializeCreate:output_type -> vtctldata.MaterializeCreateResponse + 208, // 209: vtctlservice.Vtctld.MigrateCreate:output_type -> vtctldata.WorkflowStatusResponse + 209, // 210: vtctlservice.Vtctld.MountRegister:output_type -> vtctldata.MountRegisterResponse + 210, // 211: vtctlservice.Vtctld.MountUnregister:output_type -> vtctldata.MountUnregisterResponse + 211, // 212: vtctlservice.Vtctld.MountShow:output_type -> vtctldata.MountShowResponse + 212, // 213: vtctlservice.Vtctld.MountList:output_type -> vtctldata.MountListResponse + 208, // 214: vtctlservice.Vtctld.MoveTablesCreate:output_type -> vtctldata.WorkflowStatusResponse + 213, // 215: vtctlservice.Vtctld.MoveTablesComplete:output_type -> vtctldata.MoveTablesCompleteResponse + 214, // 216: vtctlservice.Vtctld.PingTablet:output_type -> vtctldata.PingTabletResponse + 215, // 217: vtctlservice.Vtctld.PlannedReparentShard:output_type -> vtctldata.PlannedReparentShardResponse + 216, // 218: vtctlservice.Vtctld.RebuildKeyspaceGraph:output_type -> vtctldata.RebuildKeyspaceGraphResponse + 217, // 219: vtctlservice.Vtctld.RebuildVSchemaGraph:output_type -> vtctldata.RebuildVSchemaGraphResponse + 218, // 220: vtctlservice.Vtctld.RefreshState:output_type -> vtctldata.RefreshStateResponse + 219, // 221: vtctlservice.Vtctld.RefreshStateByShard:output_type -> vtctldata.RefreshStateByShardResponse + 220, // 222: vtctlservice.Vtctld.ReloadSchema:output_type -> vtctldata.ReloadSchemaResponse + 221, // 223: vtctlservice.Vtctld.ReloadSchemaKeyspace:output_type -> vtctldata.ReloadSchemaKeyspaceResponse + 222, // 224: vtctlservice.Vtctld.ReloadSchemaShard:output_type -> vtctldata.ReloadSchemaShardResponse + 223, // 225: vtctlservice.Vtctld.RemoveBackup:output_type -> vtctldata.RemoveBackupResponse + 224, // 226: vtctlservice.Vtctld.RemoveKeyspaceCell:output_type -> vtctldata.RemoveKeyspaceCellResponse + 225, // 227: vtctlservice.Vtctld.RemoveShardCell:output_type -> vtctldata.RemoveShardCellResponse + 226, // 228: vtctlservice.Vtctld.ReparentTablet:output_type -> vtctldata.ReparentTabletResponse + 208, // 229: vtctlservice.Vtctld.ReshardCreate:output_type -> vtctldata.WorkflowStatusResponse + 227, // 230: vtctlservice.Vtctld.RestoreFromBackup:output_type -> vtctldata.RestoreFromBackupResponse + 228, // 231: vtctlservice.Vtctld.RetrySchemaMigration:output_type -> vtctldata.RetrySchemaMigrationResponse + 229, // 232: vtctlservice.Vtctld.RunHealthCheck:output_type -> vtctldata.RunHealthCheckResponse + 230, // 233: vtctlservice.Vtctld.SetKeyspaceDurabilityPolicy:output_type -> vtctldata.SetKeyspaceDurabilityPolicyResponse + 231, // 234: vtctlservice.Vtctld.SetShardIsPrimaryServing:output_type -> vtctldata.SetShardIsPrimaryServingResponse + 232, // 235: vtctlservice.Vtctld.SetShardTabletControl:output_type -> vtctldata.SetShardTabletControlResponse + 233, // 236: vtctlservice.Vtctld.SetWritable:output_type -> vtctldata.SetWritableResponse + 234, // 237: vtctlservice.Vtctld.ShardReplicationAdd:output_type -> vtctldata.ShardReplicationAddResponse + 235, // 238: vtctlservice.Vtctld.ShardReplicationFix:output_type -> vtctldata.ShardReplicationFixResponse + 236, // 239: vtctlservice.Vtctld.ShardReplicationPositions:output_type -> vtctldata.ShardReplicationPositionsResponse + 237, // 240: vtctlservice.Vtctld.ShardReplicationRemove:output_type -> vtctldata.ShardReplicationRemoveResponse + 238, // 241: vtctlservice.Vtctld.SleepTablet:output_type -> vtctldata.SleepTabletResponse + 239, // 242: vtctlservice.Vtctld.SourceShardAdd:output_type -> vtctldata.SourceShardAddResponse + 240, // 243: vtctlservice.Vtctld.SourceShardDelete:output_type -> vtctldata.SourceShardDeleteResponse + 241, // 244: vtctlservice.Vtctld.StartReplication:output_type -> vtctldata.StartReplicationResponse + 242, // 245: vtctlservice.Vtctld.StopReplication:output_type -> vtctldata.StopReplicationResponse + 243, // 246: vtctlservice.Vtctld.TabletExternallyReparented:output_type -> vtctldata.TabletExternallyReparentedResponse + 244, // 247: vtctlservice.Vtctld.UpdateCellInfo:output_type -> vtctldata.UpdateCellInfoResponse + 245, // 248: vtctlservice.Vtctld.UpdateCellsAlias:output_type -> vtctldata.UpdateCellsAliasResponse + 246, // 249: vtctlservice.Vtctld.Validate:output_type -> vtctldata.ValidateResponse + 247, // 250: vtctlservice.Vtctld.ValidateKeyspace:output_type -> vtctldata.ValidateKeyspaceResponse + 248, // 251: vtctlservice.Vtctld.ValidatePermissionsKeyspace:output_type -> vtctldata.ValidatePermissionsKeyspaceResponse + 249, // 252: vtctlservice.Vtctld.ValidateSchemaKeyspace:output_type -> vtctldata.ValidateSchemaKeyspaceResponse + 250, // 253: vtctlservice.Vtctld.ValidateShard:output_type -> vtctldata.ValidateShardResponse + 251, // 254: vtctlservice.Vtctld.ValidateVersionKeyspace:output_type -> vtctldata.ValidateVersionKeyspaceResponse + 252, // 255: vtctlservice.Vtctld.ValidateVersionShard:output_type -> vtctldata.ValidateVersionShardResponse + 253, // 256: vtctlservice.Vtctld.ValidateVSchema:output_type -> vtctldata.ValidateVSchemaResponse + 254, // 257: vtctlservice.Vtctld.VDiffCreate:output_type -> vtctldata.VDiffCreateResponse + 255, // 258: vtctlservice.Vtctld.VDiffDelete:output_type -> vtctldata.VDiffDeleteResponse + 256, // 259: vtctlservice.Vtctld.VDiffResume:output_type -> vtctldata.VDiffResumeResponse + 257, // 260: vtctlservice.Vtctld.VDiffShow:output_type -> vtctldata.VDiffShowResponse + 258, // 261: vtctlservice.Vtctld.VDiffStop:output_type -> vtctldata.VDiffStopResponse + 259, // 262: vtctlservice.Vtctld.VSchemaCreate:output_type -> vtctldata.VSchemaCreateResponse + 260, // 263: vtctlservice.Vtctld.VSchemaGet:output_type -> vtctldata.VSchemaGetResponse + 261, // 264: vtctlservice.Vtctld.VSchemaUpdate:output_type -> vtctldata.VSchemaUpdateResponse + 262, // 265: vtctlservice.Vtctld.VSchemaPublish:output_type -> vtctldata.VSchemaPublishResponse + 263, // 266: vtctlservice.Vtctld.VSchemaAddVindex:output_type -> vtctldata.VSchemaAddVindexResponse + 264, // 267: vtctlservice.Vtctld.VSchemaRemoveVindex:output_type -> vtctldata.VSchemaRemoveVindexResponse + 265, // 268: vtctlservice.Vtctld.VSchemaAddLookupVindex:output_type -> vtctldata.VSchemaAddLookupVindexResponse + 266, // 269: vtctlservice.Vtctld.VSchemaAddTables:output_type -> vtctldata.VSchemaAddTablesResponse + 267, // 270: vtctlservice.Vtctld.VSchemaRemoveTables:output_type -> vtctldata.VSchemaRemoveTablesResponse + 268, // 271: vtctlservice.Vtctld.VSchemaSetPrimaryVindex:output_type -> vtctldata.VSchemaSetPrimaryVindexResponse + 269, // 272: vtctlservice.Vtctld.VSchemaSetSequence:output_type -> vtctldata.VSchemaSetSequenceResponse + 270, // 273: vtctlservice.Vtctld.VSchemaSetReference:output_type -> vtctldata.VSchemaSetReferenceResponse + 271, // 274: vtctlservice.Vtctld.WorkflowDelete:output_type -> vtctldata.WorkflowDeleteResponse + 208, // 275: vtctlservice.Vtctld.WorkflowStatus:output_type -> vtctldata.WorkflowStatusResponse + 272, // 276: vtctlservice.Vtctld.WorkflowSwitchTraffic:output_type -> vtctldata.WorkflowSwitchTrafficResponse + 273, // 277: vtctlservice.Vtctld.WorkflowUpdate:output_type -> vtctldata.WorkflowUpdateResponse + 274, // 278: vtctlservice.Vtctld.GetMirrorRules:output_type -> vtctldata.GetMirrorRulesResponse + 275, // 279: vtctlservice.Vtctld.WorkflowMirrorTraffic:output_type -> vtctldata.WorkflowMirrorTrafficResponse + 140, // [140:280] is the sub-list for method output_type + 0, // [0:140] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name diff --git a/go/vt/proto/vtctlservice/vtctlservice_grpc.pb.go b/go/vt/proto/vtctlservice/vtctlservice_grpc.pb.go index e906754620f..5c856772c29 100644 --- a/go/vt/proto/vtctlservice/vtctlservice_grpc.pb.go +++ b/go/vt/proto/vtctlservice/vtctlservice_grpc.pb.go @@ -471,6 +471,20 @@ type VtctldClient interface { VDiffResume(ctx context.Context, in *vtctldata.VDiffResumeRequest, opts ...grpc.CallOption) (*vtctldata.VDiffResumeResponse, error) VDiffShow(ctx context.Context, in *vtctldata.VDiffShowRequest, opts ...grpc.CallOption) (*vtctldata.VDiffShowResponse, error) VDiffStop(ctx context.Context, in *vtctldata.VDiffStopRequest, opts ...grpc.CallOption) (*vtctldata.VDiffStopResponse, error) + VSchemaCreate(ctx context.Context, in *vtctldata.VSchemaCreateRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaCreateResponse, error) + VSchemaGet(ctx context.Context, in *vtctldata.VSchemaGetRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaGetResponse, error) + VSchemaUpdate(ctx context.Context, in *vtctldata.VSchemaUpdateRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaUpdateResponse, error) + VSchemaPublish(ctx context.Context, in *vtctldata.VSchemaPublishRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaPublishResponse, error) + VSchemaAddVindex(ctx context.Context, in *vtctldata.VSchemaAddVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaAddVindexResponse, error) + VSchemaRemoveVindex(ctx context.Context, in *vtctldata.VSchemaRemoveVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaRemoveVindexResponse, error) + VSchemaAddLookupVindex(ctx context.Context, in *vtctldata.VSchemaAddLookupVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaAddLookupVindexResponse, error) + VSchemaAddTables(ctx context.Context, in *vtctldata.VSchemaAddTablesRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaAddTablesResponse, error) + VSchemaRemoveTables(ctx context.Context, in *vtctldata.VSchemaRemoveTablesRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaRemoveTablesResponse, error) + VSchemaSetPrimaryVindex(ctx context.Context, in *vtctldata.VSchemaSetPrimaryVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaSetPrimaryVindexResponse, error) + VSchemaSetSequence(ctx context.Context, in *vtctldata.VSchemaSetSequenceRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaSetSequenceResponse, error) + // VSchemaSetReference sets up a reference table, which points to a source + // table in another vschema. + VSchemaSetReference(ctx context.Context, in *vtctldata.VSchemaSetReferenceRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaSetReferenceResponse, error) // WorkflowDelete deletes a vreplication workflow. WorkflowDelete(ctx context.Context, in *vtctldata.WorkflowDeleteRequest, opts ...grpc.CallOption) (*vtctldata.WorkflowDeleteResponse, error) WorkflowStatus(ctx context.Context, in *vtctldata.WorkflowStatusRequest, opts ...grpc.CallOption) (*vtctldata.WorkflowStatusResponse, error) @@ -1649,6 +1663,114 @@ func (c *vtctldClient) VDiffStop(ctx context.Context, in *vtctldata.VDiffStopReq return out, nil } +func (c *vtctldClient) VSchemaCreate(ctx context.Context, in *vtctldata.VSchemaCreateRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaCreateResponse, error) { + out := new(vtctldata.VSchemaCreateResponse) + err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/VSchemaCreate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vtctldClient) VSchemaGet(ctx context.Context, in *vtctldata.VSchemaGetRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaGetResponse, error) { + out := new(vtctldata.VSchemaGetResponse) + err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/VSchemaGet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vtctldClient) VSchemaUpdate(ctx context.Context, in *vtctldata.VSchemaUpdateRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaUpdateResponse, error) { + out := new(vtctldata.VSchemaUpdateResponse) + err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/VSchemaUpdate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vtctldClient) VSchemaPublish(ctx context.Context, in *vtctldata.VSchemaPublishRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaPublishResponse, error) { + out := new(vtctldata.VSchemaPublishResponse) + err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/VSchemaPublish", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vtctldClient) VSchemaAddVindex(ctx context.Context, in *vtctldata.VSchemaAddVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaAddVindexResponse, error) { + out := new(vtctldata.VSchemaAddVindexResponse) + err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/VSchemaAddVindex", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vtctldClient) VSchemaRemoveVindex(ctx context.Context, in *vtctldata.VSchemaRemoveVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaRemoveVindexResponse, error) { + out := new(vtctldata.VSchemaRemoveVindexResponse) + err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/VSchemaRemoveVindex", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vtctldClient) VSchemaAddLookupVindex(ctx context.Context, in *vtctldata.VSchemaAddLookupVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaAddLookupVindexResponse, error) { + out := new(vtctldata.VSchemaAddLookupVindexResponse) + err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/VSchemaAddLookupVindex", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vtctldClient) VSchemaAddTables(ctx context.Context, in *vtctldata.VSchemaAddTablesRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaAddTablesResponse, error) { + out := new(vtctldata.VSchemaAddTablesResponse) + err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/VSchemaAddTables", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vtctldClient) VSchemaRemoveTables(ctx context.Context, in *vtctldata.VSchemaRemoveTablesRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaRemoveTablesResponse, error) { + out := new(vtctldata.VSchemaRemoveTablesResponse) + err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/VSchemaRemoveTables", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vtctldClient) VSchemaSetPrimaryVindex(ctx context.Context, in *vtctldata.VSchemaSetPrimaryVindexRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaSetPrimaryVindexResponse, error) { + out := new(vtctldata.VSchemaSetPrimaryVindexResponse) + err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/VSchemaSetPrimaryVindex", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vtctldClient) VSchemaSetSequence(ctx context.Context, in *vtctldata.VSchemaSetSequenceRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaSetSequenceResponse, error) { + out := new(vtctldata.VSchemaSetSequenceResponse) + err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/VSchemaSetSequence", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vtctldClient) VSchemaSetReference(ctx context.Context, in *vtctldata.VSchemaSetReferenceRequest, opts ...grpc.CallOption) (*vtctldata.VSchemaSetReferenceResponse, error) { + out := new(vtctldata.VSchemaSetReferenceResponse) + err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/VSchemaSetReference", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *vtctldClient) WorkflowDelete(ctx context.Context, in *vtctldata.WorkflowDeleteRequest, opts ...grpc.CallOption) (*vtctldata.WorkflowDeleteResponse, error) { out := new(vtctldata.WorkflowDeleteResponse) err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/WorkflowDelete", in, out, opts...) @@ -2042,6 +2164,20 @@ type VtctldServer interface { VDiffResume(context.Context, *vtctldata.VDiffResumeRequest) (*vtctldata.VDiffResumeResponse, error) VDiffShow(context.Context, *vtctldata.VDiffShowRequest) (*vtctldata.VDiffShowResponse, error) VDiffStop(context.Context, *vtctldata.VDiffStopRequest) (*vtctldata.VDiffStopResponse, error) + VSchemaCreate(context.Context, *vtctldata.VSchemaCreateRequest) (*vtctldata.VSchemaCreateResponse, error) + VSchemaGet(context.Context, *vtctldata.VSchemaGetRequest) (*vtctldata.VSchemaGetResponse, error) + VSchemaUpdate(context.Context, *vtctldata.VSchemaUpdateRequest) (*vtctldata.VSchemaUpdateResponse, error) + VSchemaPublish(context.Context, *vtctldata.VSchemaPublishRequest) (*vtctldata.VSchemaPublishResponse, error) + VSchemaAddVindex(context.Context, *vtctldata.VSchemaAddVindexRequest) (*vtctldata.VSchemaAddVindexResponse, error) + VSchemaRemoveVindex(context.Context, *vtctldata.VSchemaRemoveVindexRequest) (*vtctldata.VSchemaRemoveVindexResponse, error) + VSchemaAddLookupVindex(context.Context, *vtctldata.VSchemaAddLookupVindexRequest) (*vtctldata.VSchemaAddLookupVindexResponse, error) + VSchemaAddTables(context.Context, *vtctldata.VSchemaAddTablesRequest) (*vtctldata.VSchemaAddTablesResponse, error) + VSchemaRemoveTables(context.Context, *vtctldata.VSchemaRemoveTablesRequest) (*vtctldata.VSchemaRemoveTablesResponse, error) + VSchemaSetPrimaryVindex(context.Context, *vtctldata.VSchemaSetPrimaryVindexRequest) (*vtctldata.VSchemaSetPrimaryVindexResponse, error) + VSchemaSetSequence(context.Context, *vtctldata.VSchemaSetSequenceRequest) (*vtctldata.VSchemaSetSequenceResponse, error) + // VSchemaSetReference sets up a reference table, which points to a source + // table in another vschema. + VSchemaSetReference(context.Context, *vtctldata.VSchemaSetReferenceRequest) (*vtctldata.VSchemaSetReferenceResponse, error) // WorkflowDelete deletes a vreplication workflow. WorkflowDelete(context.Context, *vtctldata.WorkflowDeleteRequest) (*vtctldata.WorkflowDeleteResponse, error) WorkflowStatus(context.Context, *vtctldata.WorkflowStatusRequest) (*vtctldata.WorkflowStatusResponse, error) @@ -2422,6 +2558,42 @@ func (UnimplementedVtctldServer) VDiffShow(context.Context, *vtctldata.VDiffShow func (UnimplementedVtctldServer) VDiffStop(context.Context, *vtctldata.VDiffStopRequest) (*vtctldata.VDiffStopResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VDiffStop not implemented") } +func (UnimplementedVtctldServer) VSchemaCreate(context.Context, *vtctldata.VSchemaCreateRequest) (*vtctldata.VSchemaCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaCreate not implemented") +} +func (UnimplementedVtctldServer) VSchemaGet(context.Context, *vtctldata.VSchemaGetRequest) (*vtctldata.VSchemaGetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaGet not implemented") +} +func (UnimplementedVtctldServer) VSchemaUpdate(context.Context, *vtctldata.VSchemaUpdateRequest) (*vtctldata.VSchemaUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaUpdate not implemented") +} +func (UnimplementedVtctldServer) VSchemaPublish(context.Context, *vtctldata.VSchemaPublishRequest) (*vtctldata.VSchemaPublishResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaPublish not implemented") +} +func (UnimplementedVtctldServer) VSchemaAddVindex(context.Context, *vtctldata.VSchemaAddVindexRequest) (*vtctldata.VSchemaAddVindexResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaAddVindex not implemented") +} +func (UnimplementedVtctldServer) VSchemaRemoveVindex(context.Context, *vtctldata.VSchemaRemoveVindexRequest) (*vtctldata.VSchemaRemoveVindexResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaRemoveVindex not implemented") +} +func (UnimplementedVtctldServer) VSchemaAddLookupVindex(context.Context, *vtctldata.VSchemaAddLookupVindexRequest) (*vtctldata.VSchemaAddLookupVindexResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaAddLookupVindex not implemented") +} +func (UnimplementedVtctldServer) VSchemaAddTables(context.Context, *vtctldata.VSchemaAddTablesRequest) (*vtctldata.VSchemaAddTablesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaAddTables not implemented") +} +func (UnimplementedVtctldServer) VSchemaRemoveTables(context.Context, *vtctldata.VSchemaRemoveTablesRequest) (*vtctldata.VSchemaRemoveTablesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaRemoveTables not implemented") +} +func (UnimplementedVtctldServer) VSchemaSetPrimaryVindex(context.Context, *vtctldata.VSchemaSetPrimaryVindexRequest) (*vtctldata.VSchemaSetPrimaryVindexResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaSetPrimaryVindex not implemented") +} +func (UnimplementedVtctldServer) VSchemaSetSequence(context.Context, *vtctldata.VSchemaSetSequenceRequest) (*vtctldata.VSchemaSetSequenceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaSetSequence not implemented") +} +func (UnimplementedVtctldServer) VSchemaSetReference(context.Context, *vtctldata.VSchemaSetReferenceRequest) (*vtctldata.VSchemaSetReferenceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VSchemaSetReference not implemented") +} func (UnimplementedVtctldServer) WorkflowDelete(context.Context, *vtctldata.WorkflowDeleteRequest) (*vtctldata.WorkflowDeleteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method WorkflowDelete not implemented") } @@ -4640,6 +4812,222 @@ func _Vtctld_VDiffStop_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +func _Vtctld_VSchemaCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(vtctldata.VSchemaCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VtctldServer).VSchemaCreate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtctlservice.Vtctld/VSchemaCreate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VtctldServer).VSchemaCreate(ctx, req.(*vtctldata.VSchemaCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Vtctld_VSchemaGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(vtctldata.VSchemaGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VtctldServer).VSchemaGet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtctlservice.Vtctld/VSchemaGet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VtctldServer).VSchemaGet(ctx, req.(*vtctldata.VSchemaGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Vtctld_VSchemaUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(vtctldata.VSchemaUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VtctldServer).VSchemaUpdate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtctlservice.Vtctld/VSchemaUpdate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VtctldServer).VSchemaUpdate(ctx, req.(*vtctldata.VSchemaUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Vtctld_VSchemaPublish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(vtctldata.VSchemaPublishRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VtctldServer).VSchemaPublish(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtctlservice.Vtctld/VSchemaPublish", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VtctldServer).VSchemaPublish(ctx, req.(*vtctldata.VSchemaPublishRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Vtctld_VSchemaAddVindex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(vtctldata.VSchemaAddVindexRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VtctldServer).VSchemaAddVindex(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtctlservice.Vtctld/VSchemaAddVindex", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VtctldServer).VSchemaAddVindex(ctx, req.(*vtctldata.VSchemaAddVindexRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Vtctld_VSchemaRemoveVindex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(vtctldata.VSchemaRemoveVindexRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VtctldServer).VSchemaRemoveVindex(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtctlservice.Vtctld/VSchemaRemoveVindex", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VtctldServer).VSchemaRemoveVindex(ctx, req.(*vtctldata.VSchemaRemoveVindexRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Vtctld_VSchemaAddLookupVindex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(vtctldata.VSchemaAddLookupVindexRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VtctldServer).VSchemaAddLookupVindex(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtctlservice.Vtctld/VSchemaAddLookupVindex", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VtctldServer).VSchemaAddLookupVindex(ctx, req.(*vtctldata.VSchemaAddLookupVindexRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Vtctld_VSchemaAddTables_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(vtctldata.VSchemaAddTablesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VtctldServer).VSchemaAddTables(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtctlservice.Vtctld/VSchemaAddTables", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VtctldServer).VSchemaAddTables(ctx, req.(*vtctldata.VSchemaAddTablesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Vtctld_VSchemaRemoveTables_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(vtctldata.VSchemaRemoveTablesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VtctldServer).VSchemaRemoveTables(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtctlservice.Vtctld/VSchemaRemoveTables", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VtctldServer).VSchemaRemoveTables(ctx, req.(*vtctldata.VSchemaRemoveTablesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Vtctld_VSchemaSetPrimaryVindex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(vtctldata.VSchemaSetPrimaryVindexRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VtctldServer).VSchemaSetPrimaryVindex(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtctlservice.Vtctld/VSchemaSetPrimaryVindex", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VtctldServer).VSchemaSetPrimaryVindex(ctx, req.(*vtctldata.VSchemaSetPrimaryVindexRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Vtctld_VSchemaSetSequence_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(vtctldata.VSchemaSetSequenceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VtctldServer).VSchemaSetSequence(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtctlservice.Vtctld/VSchemaSetSequence", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VtctldServer).VSchemaSetSequence(ctx, req.(*vtctldata.VSchemaSetSequenceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Vtctld_VSchemaSetReference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(vtctldata.VSchemaSetReferenceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VtctldServer).VSchemaSetReference(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtctlservice.Vtctld/VSchemaSetReference", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VtctldServer).VSchemaSetReference(ctx, req.(*vtctldata.VSchemaSetReferenceRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Vtctld_WorkflowDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(vtctldata.WorkflowDeleteRequest) if err := dec(in); err != nil { @@ -5227,6 +5615,54 @@ var Vtctld_ServiceDesc = grpc.ServiceDesc{ MethodName: "VDiffStop", Handler: _Vtctld_VDiffStop_Handler, }, + { + MethodName: "VSchemaCreate", + Handler: _Vtctld_VSchemaCreate_Handler, + }, + { + MethodName: "VSchemaGet", + Handler: _Vtctld_VSchemaGet_Handler, + }, + { + MethodName: "VSchemaUpdate", + Handler: _Vtctld_VSchemaUpdate_Handler, + }, + { + MethodName: "VSchemaPublish", + Handler: _Vtctld_VSchemaPublish_Handler, + }, + { + MethodName: "VSchemaAddVindex", + Handler: _Vtctld_VSchemaAddVindex_Handler, + }, + { + MethodName: "VSchemaRemoveVindex", + Handler: _Vtctld_VSchemaRemoveVindex_Handler, + }, + { + MethodName: "VSchemaAddLookupVindex", + Handler: _Vtctld_VSchemaAddLookupVindex_Handler, + }, + { + MethodName: "VSchemaAddTables", + Handler: _Vtctld_VSchemaAddTables_Handler, + }, + { + MethodName: "VSchemaRemoveTables", + Handler: _Vtctld_VSchemaRemoveTables_Handler, + }, + { + MethodName: "VSchemaSetPrimaryVindex", + Handler: _Vtctld_VSchemaSetPrimaryVindex_Handler, + }, + { + MethodName: "VSchemaSetSequence", + Handler: _Vtctld_VSchemaSetSequence_Handler, + }, + { + MethodName: "VSchemaSetReference", + Handler: _Vtctld_VSchemaSetReference_Handler, + }, { MethodName: "WorkflowDelete", Handler: _Vtctld_WorkflowDelete_Handler, diff --git a/go/vt/vtadmin/api.go b/go/vt/vtadmin/api.go index 6ed5762f96e..296c08ef300 100644 --- a/go/vt/vtadmin/api.go +++ b/go/vt/vtadmin/api.go @@ -428,6 +428,15 @@ func (api *API) Handler() http.Handler { router.HandleFunc("/transaction/{cluster_id}/{dtid}/conclude", httpAPI.Adapt(vtadminhttp.ConcludeTransaction)).Name("API.ConcludeTransaction") router.HandleFunc("/transaction/{cluster_id}/{dtid}/info", httpAPI.Adapt(vtadminhttp.GetTransactionInfo)).Name("API.GetTransactionInfo") router.HandleFunc("/vschema/{cluster_id}/{keyspace}", httpAPI.Adapt(vtadminhttp.GetVSchema)).Name("API.GetVSchema") + router.HandleFunc("/vschema/{cluster_id}/publish", httpAPI.Adapt(vtadminhttp.VSchemaPublish)).Name("API.VSchemaPublish") + router.HandleFunc("/vschema/{cluster_id}/add_vindex", httpAPI.Adapt(vtadminhttp.VSchemaAddVindex)).Name("API.VSchemaAddVindex") + router.HandleFunc("/vschema/{cluster_id}/remove_vindex", httpAPI.Adapt(vtadminhttp.VSchemaRemoveVindex)).Name("API.VSchemaRemoveVindex") + router.HandleFunc("/vschema/{cluster_id}/add_lookup_vindex", httpAPI.Adapt(vtadminhttp.VSchemaAddLookupVindex)).Name("API.VSchemaAddLookupVindex") + router.HandleFunc("/vschema/{cluster_id}/add_tables", httpAPI.Adapt(vtadminhttp.VSchemaAddTables)).Name("API.VSchemaAddTables") + router.HandleFunc("/vschema/{cluster_id}/remove_tables", httpAPI.Adapt(vtadminhttp.VSchemaRemoveTables)).Name("API.VSchemaRemoveTables") + router.HandleFunc("/vschema/{cluster_id}/set_primary_vindex", httpAPI.Adapt(vtadminhttp.VSchemaSetPrimaryVindex)).Name("API.VSchemaSetPrimaryVindex") + router.HandleFunc("/vschema/{cluster_id}/set_sequence", httpAPI.Adapt(vtadminhttp.VSchemaSetSequence)).Name("API.VSchemaSetSequence") + router.HandleFunc("/vschema/{cluster_id}/set_reference", httpAPI.Adapt(vtadminhttp.VSchemaSetReference)).Name("API.VSchemaSetReference") router.HandleFunc("/vschemas", httpAPI.Adapt(vtadminhttp.GetVSchemas)).Name("API.GetVSchemas") router.HandleFunc("/vdiff/{cluster_id}/", httpAPI.Adapt(vtadminhttp.VDiffCreate)).Name("API.VDiffCreate").Methods("POST") router.HandleFunc("/vdiff/{cluster_id}/show", httpAPI.Adapt(vtadminhttp.VDiffShow)).Name("API.VDiffShow") @@ -2842,6 +2851,177 @@ func (api *API) VTExplain(ctx context.Context, req *vtadminpb.VTExplainRequest) }, nil } +// VSchemaPublish is part of the vtadminpb.VTAdminServer interface. +func (api *API) VSchemaPublish(ctx context.Context, req *vtadminpb.VSchemaPublishRequest) (*vtctldatapb.VSchemaPublishResponse, error) { + span, ctx := trace.NewSpan(ctx, "API.VSchemaPublish") + defer span.Finish() + + span.Annotate("cluster_id", req.ClusterId) + + if !api.authz.IsAuthorized(ctx, req.ClusterId, rbac.VSchemaResource, rbac.VSchemaUpdateAction) { + return nil, fmt.Errorf("%w: cannot modify vschema in %s", errors.ErrUnauthorized, req.ClusterId) + } + + c, err := api.getClusterForRequest(req.ClusterId) + if err != nil { + return nil, err + } + + return c.Vtctld.VSchemaPublish(ctx, req.Request) +} + +// VSchemaAddVindex is part of the vtadminpb.VTAdminServer interface. +func (api *API) VSchemaAddVindex(ctx context.Context, req *vtadminpb.VSchemaAddVindexRequest) (*vtctldatapb.VSchemaAddVindexResponse, error) { + span, ctx := trace.NewSpan(ctx, "API.VSchemaAddVindex") + defer span.Finish() + + span.Annotate("cluster_id", req.ClusterId) + + if !api.authz.IsAuthorized(ctx, req.ClusterId, rbac.VSchemaResource, rbac.VSchemaUpdateAction) { + return nil, fmt.Errorf("%w: cannot modify vschema in %s", errors.ErrUnauthorized, req.ClusterId) + } + + c, err := api.getClusterForRequest(req.ClusterId) + if err != nil { + return nil, err + } + + return c.Vtctld.VSchemaAddVindex(ctx, req.Request) +} + +// VSchemaRemoveVindex is part of the vtadminpb.VTAdminServer interface. +func (api *API) VSchemaRemoveVindex(ctx context.Context, req *vtadminpb.VSchemaRemoveVindexRequest) (*vtctldatapb.VSchemaRemoveVindexResponse, error) { + span, ctx := trace.NewSpan(ctx, "API.VSchemaRemoveVindex") + defer span.Finish() + + span.Annotate("cluster_id", req.ClusterId) + + if !api.authz.IsAuthorized(ctx, req.ClusterId, rbac.VSchemaResource, rbac.VSchemaUpdateAction) { + return nil, fmt.Errorf("%w: cannot modify vschema in %s", errors.ErrUnauthorized, req.ClusterId) + } + + c, err := api.getClusterForRequest(req.ClusterId) + if err != nil { + return nil, err + } + + return c.Vtctld.VSchemaRemoveVindex(ctx, req.Request) +} + +// VSchemaAddLookupVindex is part of the vtadminpb.VTAdminServer interface. +func (api *API) VSchemaAddLookupVindex(ctx context.Context, req *vtadminpb.VSchemaAddLookupVindexRequest) (*vtctldatapb.VSchemaAddLookupVindexResponse, error) { + span, ctx := trace.NewSpan(ctx, "API.VSchemaAddLookupVindex") + defer span.Finish() + + span.Annotate("cluster_id", req.ClusterId) + + if !api.authz.IsAuthorized(ctx, req.ClusterId, rbac.VSchemaResource, rbac.VSchemaUpdateAction) { + return nil, fmt.Errorf("%w: cannot modify vschema in %s", errors.ErrUnauthorized, req.ClusterId) + } + + c, err := api.getClusterForRequest(req.ClusterId) + if err != nil { + return nil, err + } + + return c.Vtctld.VSchemaAddLookupVindex(ctx, req.Request) +} + +// VSchemaAddTables is part of the vtadminpb.VTAdminServer interface. +func (api *API) VSchemaAddTables(ctx context.Context, req *vtadminpb.VSchemaAddTablesRequest) (*vtctldatapb.VSchemaAddTablesResponse, error) { + span, ctx := trace.NewSpan(ctx, "API.VSchemaAddTables") + defer span.Finish() + + span.Annotate("cluster_id", req.ClusterId) + + if !api.authz.IsAuthorized(ctx, req.ClusterId, rbac.VSchemaResource, rbac.VSchemaUpdateAction) { + return nil, fmt.Errorf("%w: cannot modify vschema in %s", errors.ErrUnauthorized, req.ClusterId) + } + + c, err := api.getClusterForRequest(req.ClusterId) + if err != nil { + return nil, err + } + + return c.Vtctld.VSchemaAddTables(ctx, req.Request) +} + +// VSchemaRemoveTables is part of the vtadminpb.VTAdminServer interface. +func (api *API) VSchemaRemoveTables(ctx context.Context, req *vtadminpb.VSchemaRemoveTablesRequest) (*vtctldatapb.VSchemaRemoveTablesResponse, error) { + span, ctx := trace.NewSpan(ctx, "API.VSchemaRemoveTables") + defer span.Finish() + + span.Annotate("cluster_id", req.ClusterId) + + if !api.authz.IsAuthorized(ctx, req.ClusterId, rbac.VSchemaResource, rbac.VSchemaUpdateAction) { + return nil, fmt.Errorf("%w: cannot modify vschema in %s", errors.ErrUnauthorized, req.ClusterId) + } + + c, err := api.getClusterForRequest(req.ClusterId) + if err != nil { + return nil, err + } + + return c.Vtctld.VSchemaRemoveTables(ctx, req.Request) +} + +// VSchemaSetPrimaryVindex is part of the vtadminpb.VTAdminServer interface. +func (api *API) VSchemaSetPrimaryVindex(ctx context.Context, req *vtadminpb.VSchemaSetPrimaryVindexRequest) (*vtctldatapb.VSchemaSetPrimaryVindexResponse, error) { + span, ctx := trace.NewSpan(ctx, "API.VSchemaSetPrimaryVindex") + defer span.Finish() + + span.Annotate("cluster_id", req.ClusterId) + + if !api.authz.IsAuthorized(ctx, req.ClusterId, rbac.VSchemaResource, rbac.VSchemaUpdateAction) { + return nil, fmt.Errorf("%w: cannot modify vschema in %s", errors.ErrUnauthorized, req.ClusterId) + } + + c, err := api.getClusterForRequest(req.ClusterId) + if err != nil { + return nil, err + } + + return c.Vtctld.VSchemaSetPrimaryVindex(ctx, req.Request) +} + +// VSchemaSetSequence is part of the vtadminpb.VTAdminServer interface. +func (api *API) VSchemaSetSequence(ctx context.Context, req *vtadminpb.VSchemaSetSequenceRequest) (*vtctldatapb.VSchemaSetSequenceResponse, error) { + span, ctx := trace.NewSpan(ctx, "API.VSchemaSetSequence") + defer span.Finish() + + span.Annotate("cluster_id", req.ClusterId) + + if !api.authz.IsAuthorized(ctx, req.ClusterId, rbac.VSchemaResource, rbac.VSchemaUpdateAction) { + return nil, fmt.Errorf("%w: cannot modify vschema in %s", errors.ErrUnauthorized, req.ClusterId) + } + + c, err := api.getClusterForRequest(req.ClusterId) + if err != nil { + return nil, err + } + + return c.Vtctld.VSchemaSetSequence(ctx, req.Request) +} + +// VSchemaSetReference is part of the vtadminpb.VTAdminServer interface. +func (api *API) VSchemaSetReference(ctx context.Context, req *vtadminpb.VSchemaSetReferenceRequest) (*vtctldatapb.VSchemaSetReferenceResponse, error) { + span, ctx := trace.NewSpan(ctx, "API.VSchemaSetReference") + defer span.Finish() + + span.Annotate("cluster_id", req.ClusterId) + + if !api.authz.IsAuthorized(ctx, req.ClusterId, rbac.VSchemaResource, rbac.VSchemaUpdateAction) { + return nil, fmt.Errorf("%w: cannot modify vschema in %s", errors.ErrUnauthorized, req.ClusterId) + } + + c, err := api.getClusterForRequest(req.ClusterId) + if err != nil { + return nil, err + } + + return c.Vtctld.VSchemaSetReference(ctx, req.Request) +} + // WorkflowDelete is part of the vtadminpb.VTAdminServer interface. func (api *API) WorkflowDelete(ctx context.Context, req *vtadminpb.WorkflowDeleteRequest) (*vtctldatapb.WorkflowDeleteResponse, error) { span, ctx := trace.NewSpan(ctx, "API.WorkflowDelete") diff --git a/go/vt/vtadmin/http/vschema.go b/go/vt/vtadmin/http/vschema.go new file mode 100644 index 00000000000..61a2430e8b4 --- /dev/null +++ b/go/vt/vtadmin/http/vschema.go @@ -0,0 +1,233 @@ +/* +Copyright 2025 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 http + +import ( + "context" + "encoding/json" + + vtadminpb "vitess.io/vitess/go/vt/proto/vtadmin" + vtctldatapb "vitess.io/vitess/go/vt/proto/vtctldata" + "vitess.io/vitess/go/vt/vtadmin/errors" +) + +// VSchemaPublish implements the http wrapper for the +// /vschema/{cluster_id}/publish route. +func VSchemaPublish(ctx context.Context, r Request, api *API) *JSONResponse { + vars := r.Vars() + + decoder := json.NewDecoder(r.Body) + defer r.Body.Close() + + var req vtctldatapb.VSchemaPublishRequest + if err := decoder.Decode(&req); err != nil { + return NewJSONResponse(nil, &errors.BadRequest{ + Err: err, + }) + } + + resp, err := api.server.VSchemaPublish(ctx, &vtadminpb.VSchemaPublishRequest{ + ClusterId: vars["cluster_id"], + Request: &req, + }) + + return NewJSONResponse(resp, err) +} + +// VSchemaAddVindex implements the http wrapper for the +// /vschema/{cluster_id}/add_vindex route. +func VSchemaAddVindex(ctx context.Context, r Request, api *API) *JSONResponse { + vars := r.Vars() + + decoder := json.NewDecoder(r.Body) + defer r.Body.Close() + + var req vtctldatapb.VSchemaAddVindexRequest + if err := decoder.Decode(&req); err != nil { + return NewJSONResponse(nil, &errors.BadRequest{ + Err: err, + }) + } + + resp, err := api.server.VSchemaAddVindex(ctx, &vtadminpb.VSchemaAddVindexRequest{ + ClusterId: vars["cluster_id"], + Request: &req, + }) + + return NewJSONResponse(resp, err) +} + +// VSchemaRemoveVindex implements the http wrapper for the +// /vschema/{cluster_id}/remove_vindex route. +func VSchemaRemoveVindex(ctx context.Context, r Request, api *API) *JSONResponse { + vars := r.Vars() + + decoder := json.NewDecoder(r.Body) + defer r.Body.Close() + + var req vtctldatapb.VSchemaRemoveVindexRequest + if err := decoder.Decode(&req); err != nil { + return NewJSONResponse(nil, &errors.BadRequest{ + Err: err, + }) + } + + resp, err := api.server.VSchemaRemoveVindex(ctx, &vtadminpb.VSchemaRemoveVindexRequest{ + ClusterId: vars["cluster_id"], + Request: &req, + }) + + return NewJSONResponse(resp, err) +} + +// VSchemaAddLookupVindex implements the http wrapper for the +// /vschema/{cluster_id}/add_lookup_vindex route. +func VSchemaAddLookupVindex(ctx context.Context, r Request, api *API) *JSONResponse { + vars := r.Vars() + + decoder := json.NewDecoder(r.Body) + defer r.Body.Close() + + var req vtctldatapb.VSchemaAddLookupVindexRequest + if err := decoder.Decode(&req); err != nil { + return NewJSONResponse(nil, &errors.BadRequest{ + Err: err, + }) + } + + resp, err := api.server.VSchemaAddLookupVindex(ctx, &vtadminpb.VSchemaAddLookupVindexRequest{ + ClusterId: vars["cluster_id"], + Request: &req, + }) + + return NewJSONResponse(resp, err) +} + +// VSchemaAddTables implements the http wrapper for the +// /vschema/{cluster_id}/add_tables route. +func VSchemaAddTables(ctx context.Context, r Request, api *API) *JSONResponse { + vars := r.Vars() + + decoder := json.NewDecoder(r.Body) + defer r.Body.Close() + + var req vtctldatapb.VSchemaAddTablesRequest + if err := decoder.Decode(&req); err != nil { + return NewJSONResponse(nil, &errors.BadRequest{ + Err: err, + }) + } + + resp, err := api.server.VSchemaAddTables(ctx, &vtadminpb.VSchemaAddTablesRequest{ + ClusterId: vars["cluster_id"], + Request: &req, + }) + + return NewJSONResponse(resp, err) +} + +// VSchemaRemoveTables implements the http wrapper for the +// /vschema/{cluster_id}/remove_tables route. +func VSchemaRemoveTables(ctx context.Context, r Request, api *API) *JSONResponse { + vars := r.Vars() + + decoder := json.NewDecoder(r.Body) + defer r.Body.Close() + + var req vtctldatapb.VSchemaRemoveTablesRequest + if err := decoder.Decode(&req); err != nil { + return NewJSONResponse(nil, &errors.BadRequest{ + Err: err, + }) + } + + resp, err := api.server.VSchemaRemoveTables(ctx, &vtadminpb.VSchemaRemoveTablesRequest{ + ClusterId: vars["cluster_id"], + Request: &req, + }) + + return NewJSONResponse(resp, err) +} + +// VSchemaSetPrimaryVindex implements the http wrapper for the +// /vschema/{cluster_id}/set_primary_vindex route. +func VSchemaSetPrimaryVindex(ctx context.Context, r Request, api *API) *JSONResponse { + vars := r.Vars() + + decoder := json.NewDecoder(r.Body) + defer r.Body.Close() + + var req vtctldatapb.VSchemaSetPrimaryVindexRequest + if err := decoder.Decode(&req); err != nil { + return NewJSONResponse(nil, &errors.BadRequest{ + Err: err, + }) + } + + resp, err := api.server.VSchemaSetPrimaryVindex(ctx, &vtadminpb.VSchemaSetPrimaryVindexRequest{ + ClusterId: vars["cluster_id"], + Request: &req, + }) + + return NewJSONResponse(resp, err) +} + +// VSchemaSetSequence implements the http wrapper for the +// /vschema/{cluster_id}/set_sequence route. +func VSchemaSetSequence(ctx context.Context, r Request, api *API) *JSONResponse { + vars := r.Vars() + + decoder := json.NewDecoder(r.Body) + defer r.Body.Close() + + var req vtctldatapb.VSchemaSetSequenceRequest + if err := decoder.Decode(&req); err != nil { + return NewJSONResponse(nil, &errors.BadRequest{ + Err: err, + }) + } + + resp, err := api.server.VSchemaSetSequence(ctx, &vtadminpb.VSchemaSetSequenceRequest{ + ClusterId: vars["cluster_id"], + Request: &req, + }) + + return NewJSONResponse(resp, err) +} + +// VSchemaSetReference implements the http wrapper for the +// /vschema/{cluster_id}/set_reference route. +func VSchemaSetReference(ctx context.Context, r Request, api *API) *JSONResponse { + vars := r.Vars() + + decoder := json.NewDecoder(r.Body) + defer r.Body.Close() + + var req vtctldatapb.VSchemaSetReferenceRequest + if err := decoder.Decode(&req); err != nil { + return NewJSONResponse(nil, &errors.BadRequest{ + Err: err, + }) + } + + resp, err := api.server.VSchemaSetReference(ctx, &vtadminpb.VSchemaSetReferenceRequest{ + ClusterId: vars["cluster_id"], + Request: &req, + }) + + return NewJSONResponse(resp, err) +} diff --git a/go/vt/vtadmin/rbac/rbac.go b/go/vt/vtadmin/rbac/rbac.go index 1184b57f7ab..9d2af6e388b 100644 --- a/go/vt/vtadmin/rbac/rbac.go +++ b/go/vt/vtadmin/rbac/rbac.go @@ -94,6 +94,10 @@ const ( ManageTabletReplicationAction Action = "manage_tablet_replication" // Start/Stop Replication ManageTabletWritabilityAction Action = "manage_tablet_writability" // SetRead{Only,Write} RefreshTabletReplicationSourceAction Action = "refresh_tablet_replication_source" + + /* vschema-specific actions */ + + VSchemaUpdateAction Action = "update" ) // Resource is an enum representing all resources managed by vtadmin. diff --git a/go/vt/vtctl/grpcvtctldclient/client_gen.go b/go/vt/vtctl/grpcvtctldclient/client_gen.go index 368c0573bd7..a27021b1d2a 100644 --- a/go/vt/vtctl/grpcvtctldclient/client_gen.go +++ b/go/vt/vtctl/grpcvtctldclient/client_gen.go @@ -1055,6 +1055,114 @@ func (client *gRPCVtctldClient) VDiffStop(ctx context.Context, in *vtctldatapb.V return client.c.VDiffStop(ctx, in, opts...) } +// VSchemaAddLookupVindex is part of the vtctlservicepb.VtctldClient interface. +func (client *gRPCVtctldClient) VSchemaAddLookupVindex(ctx context.Context, in *vtctldatapb.VSchemaAddLookupVindexRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaAddLookupVindexResponse, error) { + if client.c == nil { + return nil, status.Error(codes.Unavailable, connClosedMsg) + } + + return client.c.VSchemaAddLookupVindex(ctx, in, opts...) +} + +// VSchemaAddTables is part of the vtctlservicepb.VtctldClient interface. +func (client *gRPCVtctldClient) VSchemaAddTables(ctx context.Context, in *vtctldatapb.VSchemaAddTablesRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaAddTablesResponse, error) { + if client.c == nil { + return nil, status.Error(codes.Unavailable, connClosedMsg) + } + + return client.c.VSchemaAddTables(ctx, in, opts...) +} + +// VSchemaAddVindex is part of the vtctlservicepb.VtctldClient interface. +func (client *gRPCVtctldClient) VSchemaAddVindex(ctx context.Context, in *vtctldatapb.VSchemaAddVindexRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaAddVindexResponse, error) { + if client.c == nil { + return nil, status.Error(codes.Unavailable, connClosedMsg) + } + + return client.c.VSchemaAddVindex(ctx, in, opts...) +} + +// VSchemaCreate is part of the vtctlservicepb.VtctldClient interface. +func (client *gRPCVtctldClient) VSchemaCreate(ctx context.Context, in *vtctldatapb.VSchemaCreateRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaCreateResponse, error) { + if client.c == nil { + return nil, status.Error(codes.Unavailable, connClosedMsg) + } + + return client.c.VSchemaCreate(ctx, in, opts...) +} + +// VSchemaGet is part of the vtctlservicepb.VtctldClient interface. +func (client *gRPCVtctldClient) VSchemaGet(ctx context.Context, in *vtctldatapb.VSchemaGetRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaGetResponse, error) { + if client.c == nil { + return nil, status.Error(codes.Unavailable, connClosedMsg) + } + + return client.c.VSchemaGet(ctx, in, opts...) +} + +// VSchemaPublish is part of the vtctlservicepb.VtctldClient interface. +func (client *gRPCVtctldClient) VSchemaPublish(ctx context.Context, in *vtctldatapb.VSchemaPublishRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaPublishResponse, error) { + if client.c == nil { + return nil, status.Error(codes.Unavailable, connClosedMsg) + } + + return client.c.VSchemaPublish(ctx, in, opts...) +} + +// VSchemaRemoveTables is part of the vtctlservicepb.VtctldClient interface. +func (client *gRPCVtctldClient) VSchemaRemoveTables(ctx context.Context, in *vtctldatapb.VSchemaRemoveTablesRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaRemoveTablesResponse, error) { + if client.c == nil { + return nil, status.Error(codes.Unavailable, connClosedMsg) + } + + return client.c.VSchemaRemoveTables(ctx, in, opts...) +} + +// VSchemaRemoveVindex is part of the vtctlservicepb.VtctldClient interface. +func (client *gRPCVtctldClient) VSchemaRemoveVindex(ctx context.Context, in *vtctldatapb.VSchemaRemoveVindexRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaRemoveVindexResponse, error) { + if client.c == nil { + return nil, status.Error(codes.Unavailable, connClosedMsg) + } + + return client.c.VSchemaRemoveVindex(ctx, in, opts...) +} + +// VSchemaSetPrimaryVindex is part of the vtctlservicepb.VtctldClient interface. +func (client *gRPCVtctldClient) VSchemaSetPrimaryVindex(ctx context.Context, in *vtctldatapb.VSchemaSetPrimaryVindexRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaSetPrimaryVindexResponse, error) { + if client.c == nil { + return nil, status.Error(codes.Unavailable, connClosedMsg) + } + + return client.c.VSchemaSetPrimaryVindex(ctx, in, opts...) +} + +// VSchemaSetReference is part of the vtctlservicepb.VtctldClient interface. +func (client *gRPCVtctldClient) VSchemaSetReference(ctx context.Context, in *vtctldatapb.VSchemaSetReferenceRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaSetReferenceResponse, error) { + if client.c == nil { + return nil, status.Error(codes.Unavailable, connClosedMsg) + } + + return client.c.VSchemaSetReference(ctx, in, opts...) +} + +// VSchemaSetSequence is part of the vtctlservicepb.VtctldClient interface. +func (client *gRPCVtctldClient) VSchemaSetSequence(ctx context.Context, in *vtctldatapb.VSchemaSetSequenceRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaSetSequenceResponse, error) { + if client.c == nil { + return nil, status.Error(codes.Unavailable, connClosedMsg) + } + + return client.c.VSchemaSetSequence(ctx, in, opts...) +} + +// VSchemaUpdate is part of the vtctlservicepb.VtctldClient interface. +func (client *gRPCVtctldClient) VSchemaUpdate(ctx context.Context, in *vtctldatapb.VSchemaUpdateRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaUpdateResponse, error) { + if client.c == nil { + return nil, status.Error(codes.Unavailable, connClosedMsg) + } + + return client.c.VSchemaUpdate(ctx, in, opts...) +} + // Validate is part of the vtctlservicepb.VtctldClient interface. func (client *gRPCVtctldClient) Validate(ctx context.Context, in *vtctldatapb.ValidateRequest, opts ...grpc.CallOption) (*vtctldatapb.ValidateResponse, error) { if client.c == nil { diff --git a/go/vt/vtctl/grpcvtctldserver/server.go b/go/vt/vtctl/grpcvtctldserver/server.go index d3c88016990..3b678f192f1 100644 --- a/go/vt/vtctl/grpcvtctldserver/server.go +++ b/go/vt/vtctl/grpcvtctldserver/server.go @@ -74,6 +74,7 @@ import ( "vitess.io/vitess/go/vt/vtctl/reparentutil" "vitess.io/vitess/go/vt/vtctl/reparentutil/policy" "vitess.io/vitess/go/vt/vtctl/schematools" + "vitess.io/vitess/go/vt/vtctl/vschema" "vitess.io/vitess/go/vt/vtctl/workflow" "vitess.io/vitess/go/vt/vtenv" "vitess.io/vitess/go/vt/vterrors" @@ -92,9 +93,10 @@ const ( // VtctldServer implements the Vtctld RPC service protocol. type VtctldServer struct { vtctlservicepb.UnimplementedVtctldServer - ts *topo.Server - tmc tmclient.TabletManagerClient - ws *workflow.Server + ts *topo.Server + tmc tmclient.TabletManagerClient + ws *workflow.Server + vapi *vschema.VSchemaAPI } // NewVtctldServer returns a new VtctldServer for the given topo server. @@ -102,9 +104,10 @@ func NewVtctldServer(env *vtenv.Environment, ts *topo.Server) *VtctldServer { tmc := tmclient.NewTabletManagerClient() return &VtctldServer{ - ts: ts, - tmc: tmc, - ws: workflow.NewServer(env, ts, tmc), + ts: ts, + tmc: tmc, + ws: workflow.NewServer(env, ts, tmc), + vapi: vschema.NewVSchemaAPI(ts, env.Parser()), } } @@ -5537,6 +5540,191 @@ func (s *VtctldServer) WorkflowDelete(ctx context.Context, req *vtctldatapb.Work return resp, err } +// VSchemaCreate is part of the vtctlservicepb.VtctldServer interface. +func (s *VtctldServer) VSchemaCreate(ctx context.Context, req *vtctldatapb.VSchemaCreateRequest) (resp *vtctldatapb.VSchemaCreateResponse, err error) { + span, ctx := trace.NewSpan(ctx, "VtctldServer.VSchemaCreate") + defer span.Finish() + + defer panicHandler(&err) + + span.Annotate("vschema_name", req.VSchemaName) + span.Annotate("sharded", req.Sharded) + span.Annotate("draft", req.Draft) + + err = s.vapi.Create(ctx, req) + return &vtctldatapb.VSchemaCreateResponse{}, err +} + +// VSchemaGet is part of the vtctlservicepb.VtctldServer interface. +func (s *VtctldServer) VSchemaGet(ctx context.Context, req *vtctldatapb.VSchemaGetRequest) (resp *vtctldatapb.VSchemaGetResponse, err error) { + span, ctx := trace.NewSpan(ctx, "VtctldServer.VSchemaGet") + defer span.Finish() + + defer panicHandler(&err) + + span.Annotate("vschema_name", req.VSchemaName) + span.Annotate("include_drafts", req.IncludeDrafts) + + vschema, err := s.vapi.Get(ctx, req) + + resp = &vtctldatapb.VSchemaGetResponse{ + VSchema: vschema, + } + return resp, err +} + +// VSchemaUpdate is part of the vtctlservicepb.VtctldServer interface. +func (s *VtctldServer) VSchemaUpdate(ctx context.Context, req *vtctldatapb.VSchemaUpdateRequest) (resp *vtctldatapb.VSchemaUpdateResponse, err error) { + span, ctx := trace.NewSpan(ctx, "VtctldServer.VSchemaUpdate") + defer span.Finish() + + defer panicHandler(&err) + + span.Annotate("vschema_name", req.VSchemaName) + + err = s.vapi.Update(ctx, req) + return &vtctldatapb.VSchemaUpdateResponse{}, err +} + +// VSchemaPublish is part of the vtctlservicepb.VtctldServer interface. +func (s *VtctldServer) VSchemaPublish(ctx context.Context, req *vtctldatapb.VSchemaPublishRequest) (resp *vtctldatapb.VSchemaPublishResponse, err error) { + span, ctx := trace.NewSpan(ctx, "VtctldServer.VSchemaPublish") + defer span.Finish() + + defer panicHandler(&err) + + span.Annotate("vschema_name", req.VSchemaName) + + err = s.vapi.Publish(ctx, req) + return &vtctldatapb.VSchemaPublishResponse{}, err +} + +// VSchemaAddVindex is part of the vtctlservicepb.VtctldServer interface. +func (s *VtctldServer) VSchemaAddVindex(ctx context.Context, req *vtctldatapb.VSchemaAddVindexRequest) (resp *vtctldatapb.VSchemaAddVindexResponse, err error) { + span, ctx := trace.NewSpan(ctx, "VtctldServer.VSchemaAddVindex") + defer span.Finish() + + defer panicHandler(&err) + + span.Annotate("vschema_name", req.VSchemaName) + span.Annotate("vindex_name", req.VindexName) + span.Annotate("vindex_type", req.VindexType) + + err = s.vapi.AddVindex(ctx, req) + return &vtctldatapb.VSchemaAddVindexResponse{}, err +} + +// VSchemaRemoveVindex is part of the vtctlservicepb.VtctldServer interface. +func (s *VtctldServer) VSchemaRemoveVindex(ctx context.Context, req *vtctldatapb.VSchemaRemoveVindexRequest) (resp *vtctldatapb.VSchemaRemoveVindexResponse, err error) { + span, ctx := trace.NewSpan(ctx, "VtctldServer.VSchemaRemoveVindex") + defer span.Finish() + + defer panicHandler(&err) + + span.Annotate("vschema_name", req.VSchemaName) + span.Annotate("vindex_name", req.VindexName) + + err = s.vapi.RemoveVindex(ctx, req) + return &vtctldatapb.VSchemaRemoveVindexResponse{}, err +} + +// VSchemaAddLookupVindex is part of the vtctlservicepb.VtctldServer interface. +func (s *VtctldServer) VSchemaAddLookupVindex(ctx context.Context, req *vtctldatapb.VSchemaAddLookupVindexRequest) (resp *vtctldatapb.VSchemaAddLookupVindexResponse, err error) { + span, ctx := trace.NewSpan(ctx, "VtctldServer.VSchemaAddLookupVindex") + defer span.Finish() + + defer panicHandler(&err) + + span.Annotate("vschema_name", req.VSchemaName) + span.Annotate("vindex_name", req.VindexName) + span.Annotate("lookup_vindex_type", req.LookupVindexType) + span.Annotate("table_name", req.TableName) + span.Annotate("owner", req.Owner) + span.Annotate("from_columns", req.FromColumns) + span.Annotate("ignore_nulls", req.IgnoreNulls) + + err = s.vapi.AddLookupVindex(ctx, req) + return &vtctldatapb.VSchemaAddLookupVindexResponse{}, err +} + +// VSchemaAddTables is part of the vtctlservicepb.VtctldServer interface. +func (s *VtctldServer) VSchemaAddTables(ctx context.Context, req *vtctldatapb.VSchemaAddTablesRequest) (resp *vtctldatapb.VSchemaAddTablesResponse, err error) { + span, ctx := trace.NewSpan(ctx, "VtctldServer.VSchemaAddTables") + defer span.Finish() + + defer panicHandler(&err) + + span.Annotate("vschema_name", req.VSchemaName) + span.Annotate("tables", req.Tables) + span.Annotate("primary_vindex_name", req.PrimaryVindexName) + span.Annotate("columns", req.Columns) + span.Annotate("add_all", req.AddAll) + + err = s.vapi.AddTables(ctx, req) + return &vtctldatapb.VSchemaAddTablesResponse{}, err +} + +// VSchemaRemoveTables is part of the vtctlservicepb.VtctldServer interface. +func (s *VtctldServer) VSchemaRemoveTables(ctx context.Context, req *vtctldatapb.VSchemaRemoveTablesRequest) (resp *vtctldatapb.VSchemaRemoveTablesResponse, err error) { + span, ctx := trace.NewSpan(ctx, "VtctldServer.VSchemaRemoveTables") + defer span.Finish() + + defer panicHandler(&err) + + span.Annotate("vschema_name", req.VSchemaName) + span.Annotate("tables", req.Tables) + + err = s.vapi.RemoveTables(ctx, req) + return &vtctldatapb.VSchemaRemoveTablesResponse{}, err +} + +// VSchemaSetPrimaryVindex is part of the vtctlservicepb.VtctldServer interface. +func (s *VtctldServer) VSchemaSetPrimaryVindex(ctx context.Context, req *vtctldatapb.VSchemaSetPrimaryVindexRequest) (resp *vtctldatapb.VSchemaSetPrimaryVindexResponse, err error) { + span, ctx := trace.NewSpan(ctx, "VtctldServer.VSchemaSetPrimaryVindex") + defer span.Finish() + + defer panicHandler(&err) + + span.Annotate("vschema_name", req.VSchemaName) + span.Annotate("vindex_name", req.VindexName) + span.Annotate("tables", req.Tables) + span.Annotate("columns", req.Columns) + + err = s.vapi.SetPrimaryVindex(ctx, req) + return &vtctldatapb.VSchemaSetPrimaryVindexResponse{}, err +} + +// VSchemaSetSequence is part of the vtctlservicepb.VtctldServer interface. +func (s *VtctldServer) VSchemaSetSequence(ctx context.Context, req *vtctldatapb.VSchemaSetSequenceRequest) (resp *vtctldatapb.VSchemaSetSequenceResponse, err error) { + span, ctx := trace.NewSpan(ctx, "VtctldServer.VSchemaSetSequence") + defer span.Finish() + + defer panicHandler(&err) + + span.Annotate("vschema_name", req.VSchemaName) + span.Annotate("table", req.TableName) + span.Annotate("sequence_source", req.SequenceSource) + span.Annotate("column", req.Column) + + err = s.vapi.SetSequence(ctx, req) + return &vtctldatapb.VSchemaSetSequenceResponse{}, err +} + +// VSchemaSetReference is part of the vtctlservicepb.VtctldServer interface. +func (s *VtctldServer) VSchemaSetReference(ctx context.Context, req *vtctldatapb.VSchemaSetReferenceRequest) (resp *vtctldatapb.VSchemaSetReferenceResponse, err error) { + span, ctx := trace.NewSpan(ctx, "VtctldServer.VSchemaSetReference") + defer span.Finish() + + defer panicHandler(&err) + + span.Annotate("vschema_name", req.VSchemaName) + span.Annotate("table_name", req.TableName) + span.Annotate("source", req.Source) + + err = s.vapi.SetReference(ctx, req) + return &vtctldatapb.VSchemaSetReferenceResponse{}, err +} + // WorkflowStatus is part of the vtctlservicepb.VtctldServer interface. func (s *VtctldServer) WorkflowStatus(ctx context.Context, req *vtctldatapb.WorkflowStatusRequest) (resp *vtctldatapb.WorkflowStatusResponse, err error) { span, ctx := trace.NewSpan(ctx, "VtctldServer.WorkflowStatus") diff --git a/go/vt/vtctl/localvtctldclient/client_gen.go b/go/vt/vtctl/localvtctldclient/client_gen.go index 53b8f2d1b8c..ce00d78942a 100644 --- a/go/vt/vtctl/localvtctldclient/client_gen.go +++ b/go/vt/vtctl/localvtctldclient/client_gen.go @@ -737,6 +737,66 @@ func (client *localVtctldClient) VDiffStop(ctx context.Context, in *vtctldatapb. return client.s.VDiffStop(ctx, in) } +// VSchemaAddLookupVindex is part of the vtctlservicepb.VtctldClient interface. +func (client *localVtctldClient) VSchemaAddLookupVindex(ctx context.Context, in *vtctldatapb.VSchemaAddLookupVindexRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaAddLookupVindexResponse, error) { + return client.s.VSchemaAddLookupVindex(ctx, in) +} + +// VSchemaAddTables is part of the vtctlservicepb.VtctldClient interface. +func (client *localVtctldClient) VSchemaAddTables(ctx context.Context, in *vtctldatapb.VSchemaAddTablesRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaAddTablesResponse, error) { + return client.s.VSchemaAddTables(ctx, in) +} + +// VSchemaAddVindex is part of the vtctlservicepb.VtctldClient interface. +func (client *localVtctldClient) VSchemaAddVindex(ctx context.Context, in *vtctldatapb.VSchemaAddVindexRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaAddVindexResponse, error) { + return client.s.VSchemaAddVindex(ctx, in) +} + +// VSchemaCreate is part of the vtctlservicepb.VtctldClient interface. +func (client *localVtctldClient) VSchemaCreate(ctx context.Context, in *vtctldatapb.VSchemaCreateRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaCreateResponse, error) { + return client.s.VSchemaCreate(ctx, in) +} + +// VSchemaGet is part of the vtctlservicepb.VtctldClient interface. +func (client *localVtctldClient) VSchemaGet(ctx context.Context, in *vtctldatapb.VSchemaGetRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaGetResponse, error) { + return client.s.VSchemaGet(ctx, in) +} + +// VSchemaPublish is part of the vtctlservicepb.VtctldClient interface. +func (client *localVtctldClient) VSchemaPublish(ctx context.Context, in *vtctldatapb.VSchemaPublishRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaPublishResponse, error) { + return client.s.VSchemaPublish(ctx, in) +} + +// VSchemaRemoveTables is part of the vtctlservicepb.VtctldClient interface. +func (client *localVtctldClient) VSchemaRemoveTables(ctx context.Context, in *vtctldatapb.VSchemaRemoveTablesRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaRemoveTablesResponse, error) { + return client.s.VSchemaRemoveTables(ctx, in) +} + +// VSchemaRemoveVindex is part of the vtctlservicepb.VtctldClient interface. +func (client *localVtctldClient) VSchemaRemoveVindex(ctx context.Context, in *vtctldatapb.VSchemaRemoveVindexRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaRemoveVindexResponse, error) { + return client.s.VSchemaRemoveVindex(ctx, in) +} + +// VSchemaSetPrimaryVindex is part of the vtctlservicepb.VtctldClient interface. +func (client *localVtctldClient) VSchemaSetPrimaryVindex(ctx context.Context, in *vtctldatapb.VSchemaSetPrimaryVindexRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaSetPrimaryVindexResponse, error) { + return client.s.VSchemaSetPrimaryVindex(ctx, in) +} + +// VSchemaSetReference is part of the vtctlservicepb.VtctldClient interface. +func (client *localVtctldClient) VSchemaSetReference(ctx context.Context, in *vtctldatapb.VSchemaSetReferenceRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaSetReferenceResponse, error) { + return client.s.VSchemaSetReference(ctx, in) +} + +// VSchemaSetSequence is part of the vtctlservicepb.VtctldClient interface. +func (client *localVtctldClient) VSchemaSetSequence(ctx context.Context, in *vtctldatapb.VSchemaSetSequenceRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaSetSequenceResponse, error) { + return client.s.VSchemaSetSequence(ctx, in) +} + +// VSchemaUpdate is part of the vtctlservicepb.VtctldClient interface. +func (client *localVtctldClient) VSchemaUpdate(ctx context.Context, in *vtctldatapb.VSchemaUpdateRequest, opts ...grpc.CallOption) (*vtctldatapb.VSchemaUpdateResponse, error) { + return client.s.VSchemaUpdate(ctx, in) +} + // Validate is part of the vtctlservicepb.VtctldClient interface. func (client *localVtctldClient) Validate(ctx context.Context, in *vtctldatapb.ValidateRequest, opts ...grpc.CallOption) (*vtctldatapb.ValidateResponse, error) { return client.s.Validate(ctx, in) diff --git a/go/vt/vtctl/vschema/utils.go b/go/vt/vtctl/vschema/utils.go new file mode 100644 index 00000000000..3f7797d1b22 --- /dev/null +++ b/go/vt/vtctl/vschema/utils.go @@ -0,0 +1,124 @@ +/* +Copyright 2025 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 vschema + +import ( + "context" + "strings" + + "vitess.io/vitess/go/vt/topo" + "vitess.io/vitess/go/vt/vterrors" + "vitess.io/vitess/go/vt/vtgate/vindexes" + + querypb "vitess.io/vitess/go/vt/proto/query" + vschemapb "vitess.io/vitess/go/vt/proto/vschema" + vtrpcpb "vitess.io/vitess/go/vt/proto/vtrpc" +) + +func getVSchemaAndTable(ctx context.Context, ts *topo.Server, vschemaName string, tableName string) (*topo.KeyspaceVSchemaInfo, *vschemapb.Table, error) { + vsInfo, err := ts.GetVSchema(ctx, vschemaName) + if err != nil { + return nil, nil, vterrors.Wrapf(err, "failed to retrieve vschema for '%s' keyspace:", vschemaName) + } + + table, ok := vsInfo.Tables[tableName] + if !ok { + return nil, nil, vterrors.Errorf(vtrpcpb.Code_NOT_FOUND, "table '%s' not found in '%s' keyspace", tableName, vschemaName) + } + + return vsInfo, table, nil +} + +func ensureTablesExist(vsInfo *topo.KeyspaceVSchemaInfo, tables []string) error { + var missingTables []string + for _, tableName := range tables { + if _, ok := vsInfo.Tables[tableName]; !ok { + missingTables = append(missingTables, tableName) + } + } + if len(missingTables) > 0 { + return vterrors.Errorf(vtrpcpb.Code_NOT_FOUND, "table(s) %s not found in '%s' keyspace", + strings.Join(missingTables, ", "), vsInfo.Name) + } + return nil +} + +func ensureTablesDoNotExist(vsInfo *topo.KeyspaceVSchemaInfo, tables []string) error { + var alreadyExistingTables []string + for _, tableName := range tables { + if _, ok := vsInfo.Tables[tableName]; ok { + alreadyExistingTables = append(alreadyExistingTables, tableName) + } + } + if len(alreadyExistingTables) > 0 { + return vterrors.Errorf(vtrpcpb.Code_ALREADY_EXISTS, "table(s) %s already exist in '%s' keyspace", + strings.Join(alreadyExistingTables, ", "), vsInfo.Name) + } + return nil +} + +// validateNewVindex validates if we can create a vindex with given vindexName +// vindexType and params. +func validateNewVindex(vsInfo *topo.KeyspaceVSchemaInfo, vindexName string, vindexType string, params map[string]string) error { + if _, ok := vsInfo.Vindexes[vindexName]; ok { + return vterrors.Errorf(vtrpcpb.Code_ALREADY_EXISTS, "vindex '%s' already exists in '%s' vschema", + vindexName, vsInfo.Name) + } + + // Validate if we can create the vindex without any errors. + if _, err := vindexes.CreateVindex(vindexType, vindexName, params); err != nil { + return vterrors.Wrapf(err, "failed to create vindex '%s'", vindexName) + } + return nil +} + +func parseForeignKeyMode(foreignKeyMode string) (vschemapb.Keyspace_ForeignKeyMode, error) { + fkMode := strings.ToLower(foreignKeyMode) + fkModeValue, ok := vschemapb.Keyspace_ForeignKeyMode_value[fkMode] + if !ok { + return 0, vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "invalid value provided for foreign key mode: %s", fkMode) + } + return vschemapb.Keyspace_ForeignKeyMode(fkModeValue), nil +} + +func parseTenantIdColumnType(tenantType string) (querypb.Type, error) { + tenantIdColType := strings.ToUpper(tenantType) + typ, ok := querypb.Type_value[tenantIdColType] + if !ok { + return 0, vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "invalid tenant id column type: %s", tenantType) + } + return querypb.Type(typ), nil +} + +// validateQualifiedTableType validates that the specified table name is +// qualified, and exists in the keyspace and it matches the specified expected type. +// Also, returns corresponding vschema. +func validateQualifiedTableType(ctx context.Context, ts *topo.Server, qualifiedTableName string, expectedType string) (*topo.KeyspaceVSchemaInfo, error) { + ksName, tableName, err := vindexes.ExtractTableParts(qualifiedTableName, false) + if err != nil { + return nil, err + } + ks, table, err := getVSchemaAndTable(ctx, ts, ksName, tableName) + if err != nil { + return nil, err + } + if table.Type != expectedType { + return ks, vterrors.Errorf(vtrpcpb.Code_FAILED_PRECONDITION, "table '%s' is not a %s table", + tableName, expectedType) + } + return ks, nil +} diff --git a/go/vt/vtctl/vschema/vschema_api.go b/go/vt/vtctl/vschema/vschema_api.go new file mode 100644 index 00000000000..71718208fa1 --- /dev/null +++ b/go/vt/vtctl/vschema/vschema_api.go @@ -0,0 +1,456 @@ +/* +Copyright 2025 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 vschema + +import ( + "context" + "fmt" + "slices" + "strings" + + "vitess.io/vitess/go/json2" + "vitess.io/vitess/go/vt/sqlparser" + "vitess.io/vitess/go/vt/topo" + "vitess.io/vitess/go/vt/vterrors" + "vitess.io/vitess/go/vt/vtgate/vindexes" + + topodatapb "vitess.io/vitess/go/vt/proto/topodata" + vschemapb "vitess.io/vitess/go/vt/proto/vschema" + vtctldatapb "vitess.io/vitess/go/vt/proto/vtctldata" + vtrpcpb "vitess.io/vitess/go/vt/proto/vtrpc" +) + +// VSchemaAPI performs CRUD operations on VSchema. +type VSchemaAPI struct { + ts *topo.Server + parser *sqlparser.Parser +} + +var _ IVSchemaAPI = (*VSchemaAPI)(nil) + +// NewVSchemaAPI returns a new VSchemaAPI instance. +func NewVSchemaAPI(ts *topo.Server, parser *sqlparser.Parser) *VSchemaAPI { + return &VSchemaAPI{ + ts: ts, + parser: parser, + } +} + +// Create creates a new keyspace. Either an initial vschema json is specified +// in which case it starts off with that spec or it creates an empty vschema +// which can be built iteratively. +func (api *VSchemaAPI) Create(ctx context.Context, req *vtctldatapb.VSchemaCreateRequest) error { + topoKs := &topodatapb.Keyspace{} + err := api.ts.CreateKeyspace(ctx, req.VSchemaName, topoKs) + if err != nil { + return vterrors.Wrapf(err, "unable to create keyspace '%s'", req.VSchemaName) + } + + vsks := &vschemapb.Keyspace{} + err = json2.UnmarshalPB([]byte(req.VSchemaJson), vsks) + if err != nil { + return vterrors.Wrapf(err, "unable to unmarshal vschema JSON") + } + + if _, err := vindexes.BuildKeyspace(vsks, api.parser); err != nil { + return vterrors.Wrapf(err, "failed to build vschema '%s'", req.VSchemaName) + } + + vsks.Draft = req.Draft + vsks.Sharded = req.Sharded + vsInfo := &topo.KeyspaceVSchemaInfo{ + Name: req.VSchemaName, + Keyspace: vsks, + } + if err := api.ts.SaveVSchema(ctx, vsInfo); err != nil { + return vterrors.Wrapf(err, "failed to save updated vschema '%v' in the '%s' keyspace", + vsInfo, req.VSchemaName) + } + return err +} + +// Get retrieves the VSchema for a keyspace. Returns an error if the VSchema +// is marked as draft and IncludeDrafts is false. +func (api *VSchemaAPI) Get(ctx context.Context, req *vtctldatapb.VSchemaGetRequest) (*vschemapb.Keyspace, error) { + vsInfo, err := api.ts.GetVSchema(ctx, req.VSchemaName) + if err != nil { + return nil, vterrors.Wrapf(err, "failed to retrieve vschema for '%s' keyspace", req.VSchemaName) + } + if !req.IncludeDrafts && vsInfo.Draft { + return nil, vterrors.Errorf(vtrpcpb.Code_NOT_FOUND, "vschema for '%s' keyspace is still marked as draft", req.VSchemaName) + } + return vsInfo.Keyspace, nil +} + +// Update sets/updates the VSchema metadata. +func (api *VSchemaAPI) Update(ctx context.Context, req *vtctldatapb.VSchemaUpdateRequest) error { + vsInfo, err := api.ts.GetVSchema(ctx, req.VSchemaName) + if err != nil { + return vterrors.Wrapf(err, "failed to retrieve vschema for '%s' keyspace", req.VSchemaName) + } + if req.Sharded != nil { + vsInfo.Sharded = *req.Sharded + } + if req.ForeignKeyMode != nil { + fkMode, err := parseForeignKeyMode(*req.ForeignKeyMode) + if err != nil { + return err + } + vsInfo.ForeignKeyMode = fkMode + } + if req.Draft != nil { + vsInfo.Draft = *req.Draft + } + if req.MultiTenant != nil { + if *req.MultiTenant { + // If we are updating both tenantIdColumnName and tenantIdColumnType, + // we can directly replace the entire MultiTenantSpec. However, if + // we are looking to update only either column type or column name, + // we should check if MultiTenantSpec existed before. If it doesn't + // exist, we should return an error that both column name and column + // type should be provided. + // + // Also, if multiTenant was true but neither tenantIdColumnName was + // specified nor tenantIdColumnType, we shouldn't return any error + // in that case and do nothing. + switch { + case req.TenantIdColumnType != nil && req.TenantIdColumnName != nil: + if *req.TenantIdColumnName == "" { + return vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "tenant id column name not specified") + } + typ, err := parseTenantIdColumnType(*req.TenantIdColumnType) + if err != nil { + return err + } + vsInfo.MultiTenantSpec = &vschemapb.MultiTenantSpec{ + TenantIdColumnName: *req.TenantIdColumnName, + TenantIdColumnType: typ, + } + case req.TenantIdColumnType != nil: + if vsInfo.MultiTenantSpec == nil { + return vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "both tenant id column name and column type should be provided") + } + typ, err := parseTenantIdColumnType(*req.TenantIdColumnType) + if err != nil { + return err + } + vsInfo.MultiTenantSpec.TenantIdColumnType = typ + case req.TenantIdColumnName != nil: + if vsInfo.MultiTenantSpec == nil { + return vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "both tenant id column name and column type should be provided") + } + if *req.TenantIdColumnName == "" { + return vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "tenant id column name not specified") + } + vsInfo.MultiTenantSpec.TenantIdColumnName = *req.TenantIdColumnName + default: + if vsInfo.MultiTenantSpec == nil { + return vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "both tenant id column name and column type should be provided") + } + return vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "nothing to update since neither tenant id column name nor column type has been provided") + } + } else { + // If it's not multi-tenant but tenantIdColumnName and + // tenantIdColumnType are specified, we should throw error. + // Else remove the MultiTenantSpec from VSchema. + if req.TenantIdColumnName != nil || req.TenantIdColumnType != nil { + return vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "cannot specify tenant-id-column-name or tenant-id-column-type if multi-tenant is false") + } + vsInfo.MultiTenantSpec = nil + } + } + + if err := api.ts.SaveVSchema(ctx, vsInfo); err != nil { + return vterrors.Wrapf(err, "failed to save updated vschema '%v' in the '%s' keyspace", + vsInfo, req.VSchemaName) + } + return nil +} + +// Publish publishes a VSchema marking it as non-draft. +func (api *VSchemaAPI) Publish(ctx context.Context, req *vtctldatapb.VSchemaPublishRequest) error { + vsInfo, err := api.ts.GetVSchema(ctx, req.VSchemaName) + if err != nil { + return vterrors.Wrapf(err, "failed to retrieve vschema for '%s' keyspace", req.VSchemaName) + } + if !vsInfo.Draft { + return vterrors.Errorf(vtrpcpb.Code_FAILED_PRECONDITION, "vschema '%s' is already published", req.VSchemaName) + } + vsInfo.Draft = false + if err := api.ts.SaveVSchema(ctx, vsInfo); err != nil { + return vterrors.Wrapf(err, "failed to save updated vschema '%v' in the '%s' keyspace", + vsInfo, req.VSchemaName) + } + return nil +} + +// AddVindex adds a vindex in vschema. It doesn't expect it to be a lookup +// vindex, so owner is not set/required. +func (api *VSchemaAPI) AddVindex(ctx context.Context, req *vtctldatapb.VSchemaAddVindexRequest) error { + vsInfo, err := api.ts.GetVSchema(ctx, req.VSchemaName) + if err != nil { + return vterrors.Wrapf(err, "failed to retrieve vschema for '%s' keyspace", req.VSchemaName) + } + if err := validateNewVindex(vsInfo, req.VindexName, req.VindexType, req.Params); err != nil { + return err + } + vindex := &vschemapb.Vindex{ + Type: req.VindexType, + Params: req.Params, + } + if vsInfo.Vindexes == nil { + vsInfo.Vindexes = make(map[string]*vschemapb.Vindex, 1) + } + vsInfo.Vindexes[req.VindexName] = vindex + if err := api.ts.SaveVSchema(ctx, vsInfo); err != nil { + return vterrors.Wrapf(err, "failed to save updated vschema '%v' in the '%s' keyspace", + vsInfo, req.VSchemaName) + } + return nil +} + +// RemoveVindex removes an existing vindex from the vschema. +func (api *VSchemaAPI) RemoveVindex(ctx context.Context, req *vtctldatapb.VSchemaRemoveVindexRequest) error { + vsInfo, err := api.ts.GetVSchema(ctx, req.VSchemaName) + if err != nil { + return vterrors.Wrapf(err, "failed to retrieve vschema for '%s' keyspace", req.VSchemaName) + } + if _, ok := vsInfo.Vindexes[req.VindexName]; !ok { + return vterrors.Errorf(vtrpcpb.Code_NOT_FOUND, "vindex '%s' doesn't exist in '%s' vschema", + req.VindexName, req.VSchemaName) + } + delete(vsInfo.Vindexes, req.VindexName) + + // Remove all the column vindexes that were using the vindex. + for _, table := range vsInfo.Tables { + table.ColumnVindexes = slices.DeleteFunc(table.ColumnVindexes, func(colVindex *vschemapb.ColumnVindex) bool { + return colVindex.Name == req.VindexName + }) + } + + if err := api.ts.SaveVSchema(ctx, vsInfo); err != nil { + return vterrors.Wrapf(err, "failed to save updated vschema '%v' in the '%s' keyspace", + vsInfo, req.VSchemaName) + } + return nil +} + +// AddLookupVindex adds a lookup vindex to the vschema. +func (api *VSchemaAPI) AddLookupVindex(ctx context.Context, req *vtctldatapb.VSchemaAddLookupVindexRequest) error { + vsInfo, err := api.ts.GetVSchema(ctx, req.VSchemaName) + if err != nil { + return vterrors.Wrapf(err, "failed to retrieve vschema for '%s' keyspace", req.VSchemaName) + } + req.LookupVindexType = strings.ToLower(req.LookupVindexType) + if !strings.HasPrefix(req.LookupVindexType, "lookup") { + return vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "invalid lookup vindex type: %s", req.LookupVindexType) + } + if len(req.FromColumns) == 0 { + return vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "at least 1 column should be specified for lookup vindex") + } + if _, err := validateQualifiedTableType(ctx, api.ts, req.TableName, vindexes.TypeTable); err != nil { + return vterrors.Wrapf(err, "invalid lookup table") + } + params := map[string]string{ + "table": req.TableName, + "from": strings.Join(req.FromColumns, ","), + "to": "keyspace_id", + "ignore_nulls": fmt.Sprintf("%t", req.IgnoreNulls), + } + if err := validateNewVindex(vsInfo, req.VindexName, req.LookupVindexType, params); err != nil { + return err + } + vindex := &vschemapb.Vindex{ + Type: req.LookupVindexType, + Params: params, + Owner: req.Owner, + } + if vsInfo.Vindexes == nil { + vsInfo.Vindexes = make(map[string]*vschemapb.Vindex, 1) + } + vsInfo.Vindexes[req.VindexName] = vindex + + // Add column vindex to the owner. + if req.Owner != "" { + ownerTable, ok := vsInfo.Tables[req.Owner] + if !ok { + return vterrors.Errorf(vtrpcpb.Code_NOT_FOUND, "table '%s' not found in '%s' keyspace", req.Owner, req.VSchemaName) + } + ownerTable.ColumnVindexes = append(ownerTable.ColumnVindexes, &vschemapb.ColumnVindex{ + Name: req.VindexName, + Columns: req.FromColumns, + }) + } + if err := api.ts.SaveVSchema(ctx, vsInfo); err != nil { + return vterrors.Wrapf(err, "failed to save updated vschema '%v' in the '%s' keyspace", + vsInfo, req.VSchemaName) + } + return nil +} + +// AddTables adds one or more tables to the vschema, along with a designated +// primary vindex and associated columns. If AddAll is true, it adds primary +// vindex to each table, else adds it to the first table from Tables. +func (api *VSchemaAPI) AddTables(ctx context.Context, req *vtctldatapb.VSchemaAddTablesRequest) error { + vsInfo, err := api.ts.GetVSchema(ctx, req.VSchemaName) + if err != nil { + return vterrors.Wrapf(err, "failed to retrieve vschema for '%s' keyspace", req.VSchemaName) + } + if len(req.Tables) == 0 { + return vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "no tables found in the request") + } + if err := ensureTablesDoNotExist(vsInfo, req.Tables); err != nil { + return err + } + if vsInfo.Tables == nil { + vsInfo.Tables = make(map[string]*vschemapb.Table, len(req.Tables)) + } + for _, tableName := range req.Tables { + vsInfo.Tables[tableName] = &vschemapb.Table{} + } + if req.PrimaryVindexName != "" { + if _, ok := vsInfo.Vindexes[req.PrimaryVindexName]; !ok { + return vterrors.Errorf(vtrpcpb.Code_NOT_FOUND, "vindex '%s' not found in vschema '%s'", req.PrimaryVindexName, req.VSchemaName) + } + colVindex := &vschemapb.ColumnVindex{ + Name: req.PrimaryVindexName, + Columns: req.Columns, + } + if req.AddAll { + for _, tableName := range req.Tables { + vsInfo.Tables[tableName].ColumnVindexes = []*vschemapb.ColumnVindex{colVindex} + } + } else { + firstTableName := req.Tables[0] + vsInfo.Tables[firstTableName].ColumnVindexes = []*vschemapb.ColumnVindex{colVindex} + } + } + if err := api.ts.SaveVSchema(ctx, vsInfo); err != nil { + return vterrors.Wrapf(err, "failed to save updated vschema '%v' in the '%s' keyspace", + vsInfo, req.VSchemaName) + } + return nil +} + +// RemoveTables removes one or more tables from the vschema. +func (api *VSchemaAPI) RemoveTables(ctx context.Context, req *vtctldatapb.VSchemaRemoveTablesRequest) error { + vsInfo, err := api.ts.GetVSchema(ctx, req.VSchemaName) + if err != nil { + return vterrors.Wrapf(err, "failed to retrieve vschema for '%s' keyspace", req.VSchemaName) + } + if err := ensureTablesExist(vsInfo, req.Tables); err != nil { + return err + } + for _, tableName := range req.Tables { + delete(vsInfo.Tables, tableName) + } + if err := api.ts.SaveVSchema(ctx, vsInfo); err != nil { + return vterrors.Wrapf(err, "failed to save updated vschema '%v' in the '%s' keyspace", + vsInfo, req.VSchemaName) + } + return nil +} + +// SetPrimaryVindex sets or updates the primary vindex for one or more tables, +// specifying the columns associated with the vindex. +func (api *VSchemaAPI) SetPrimaryVindex(ctx context.Context, req *vtctldatapb.VSchemaSetPrimaryVindexRequest) error { + vsInfo, err := api.ts.GetVSchema(ctx, req.VSchemaName) + if err != nil { + return vterrors.Wrapf(err, "failed to retrieve vschema for '%s' keyspace", req.VSchemaName) + } + if len(req.Columns) == 0 { + return vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "at least 1 column should be specified for vindex") + } + if err := ensureTablesExist(vsInfo, req.Tables); err != nil { + return err + } + if _, ok := vsInfo.Vindexes[req.VindexName]; !ok { + return vterrors.Errorf(vtrpcpb.Code_NOT_FOUND, "vindex '%s' not found in vschema '%s'", req.VindexName, req.VSchemaName) + } + colVindex := &vschemapb.ColumnVindex{ + Name: req.VindexName, + Columns: req.Columns, + } + for _, tableName := range req.Tables { + if len(vsInfo.Tables[tableName].ColumnVindexes) > 0 { + // We will update the primary vindex if it already exists. + vsInfo.Tables[tableName].ColumnVindexes[0] = colVindex + } else { + vsInfo.Tables[tableName].ColumnVindexes = []*vschemapb.ColumnVindex{colVindex} + } + } + if err := api.ts.SaveVSchema(ctx, vsInfo); err != nil { + return vterrors.Wrapf(err, "failed to save updated vschema '%v' in the '%s' keyspace", + vsInfo, req.VSchemaName) + } + return nil +} + +// SetSequence sets up a table column to use a sequence from an unsharded source. +func (api *VSchemaAPI) SetSequence(ctx context.Context, req *vtctldatapb.VSchemaSetSequenceRequest) error { + vsInfo, table, err := getVSchemaAndTable(ctx, api.ts, req.VSchemaName, req.TableName) + if err != nil { + return err + } + if req.SequenceSource == "" { + return vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "sequence source cannot be empty") + } + if req.Column == "" { + return vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "column name cannot be empty") + } + sourceKs, err := validateQualifiedTableType(ctx, api.ts, req.SequenceSource, vindexes.TypeSequence) + if err != nil { + return vterrors.Wrapf(err, "invalid sequence table source") + } + if sourceKs.Sharded { + return vterrors.Errorf(vtrpcpb.Code_FAILED_PRECONDITION, "sequence table '%s' cannot be sharded", req.SequenceSource) + } + table.AutoIncrement = &vschemapb.AutoIncrement{ + Column: req.Column, + Sequence: req.SequenceSource, + } + if err := api.ts.SaveVSchema(ctx, vsInfo); err != nil { + return vterrors.Wrapf(err, "failed to save updated vschema '%v' in the '%s' keyspace", + vsInfo, req.VSchemaName) + } + return nil +} + +// SetReference sets up a reference table, which points to a source table in +// another vschema. +func (api *VSchemaAPI) SetReference(ctx context.Context, req *vtctldatapb.VSchemaSetReferenceRequest) error { + vsInfo, table, err := getVSchemaAndTable(ctx, api.ts, req.VSchemaName, req.TableName) + if err != nil { + return err + } + if table.Type == vindexes.TypeReference { + return vterrors.Errorf(vtrpcpb.Code_FAILED_PRECONDITION, "table '%s' is already a reference table", req.TableName) + } + if req.Source != "" { + if _, err := validateQualifiedTableType(ctx, api.ts, req.Source, vindexes.TypeReference); err != nil { + return vterrors.Wrapf(err, "invalid reference table source") + } + } + + table.Source = req.Source + table.Type = vindexes.TypeReference + if err := api.ts.SaveVSchema(ctx, vsInfo); err != nil { + return vterrors.Wrapf(err, "failed to save updated vschema '%v' in the '%s' keyspace", + vsInfo, req.VSchemaName) + } + return nil +} diff --git a/go/vt/vtctl/vschema/vschema_api_interface.go b/go/vt/vtctl/vschema/vschema_api_interface.go new file mode 100644 index 00000000000..7e3cabfa874 --- /dev/null +++ b/go/vt/vtctl/vschema/vschema_api_interface.go @@ -0,0 +1,47 @@ +/* +Copyright 2025 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 vschema + +import ( + "context" + + vschemapb "vitess.io/vitess/go/vt/proto/vschema" + vtctldatapb "vitess.io/vitess/go/vt/proto/vtctldata" +) + +// IVSchemaAPI is an interface for VSchemaAPI responsible for performing CRUD +// operations on VSchema. +type IVSchemaAPI interface { + Create(ctx context.Context, req *vtctldatapb.VSchemaCreateRequest) error + Get(ctx context.Context, req *vtctldatapb.VSchemaGetRequest) (*vschemapb.Keyspace, error) + Update(ctx context.Context, req *vtctldatapb.VSchemaUpdateRequest) error + Publish(ctx context.Context, req *vtctldatapb.VSchemaPublishRequest) error + + // Vindex related functions + + AddVindex(ctx context.Context, req *vtctldatapb.VSchemaAddVindexRequest) error + RemoveVindex(ctx context.Context, req *vtctldatapb.VSchemaRemoveVindexRequest) error + AddLookupVindex(ctx context.Context, req *vtctldatapb.VSchemaAddLookupVindexRequest) error + + // Table related functions + + AddTables(ctx context.Context, req *vtctldatapb.VSchemaAddTablesRequest) error + RemoveTables(ctx context.Context, req *vtctldatapb.VSchemaRemoveTablesRequest) error + SetPrimaryVindex(ctx context.Context, req *vtctldatapb.VSchemaSetPrimaryVindexRequest) error + SetSequence(ctx context.Context, req *vtctldatapb.VSchemaSetSequenceRequest) error + SetReference(ctx context.Context, req *vtctldatapb.VSchemaSetReferenceRequest) error +} diff --git a/go/vt/vtctl/vschema/vschema_api_test.go b/go/vt/vtctl/vschema/vschema_api_test.go new file mode 100644 index 00000000000..e96cdc8f6a8 --- /dev/null +++ b/go/vt/vtctl/vschema/vschema_api_test.go @@ -0,0 +1,1435 @@ +/* +Copyright 2025 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 vschema + +import ( + "context" + "fmt" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" + + "vitess.io/vitess/go/ptr" + "vitess.io/vitess/go/vt/sqlparser" + "vitess.io/vitess/go/vt/topo" + "vitess.io/vitess/go/vt/topo/memorytopo" + "vitess.io/vitess/go/vt/vtgate/vindexes" + + "vitess.io/vitess/go/vt/proto/query" + topodatapb "vitess.io/vitess/go/vt/proto/topodata" + vschemapb "vitess.io/vitess/go/vt/proto/vschema" + "vitess.io/vitess/go/vt/proto/vtctldata" +) + +func TestCreate(t *testing.T) { + ctx := context.Background() + ts := memorytopo.NewServer(ctx, "cell") + defer ts.Close() + + api := NewVSchemaAPI(ts, sqlparser.NewTestParser()) + + tests := []struct { + name string + req *vtctldata.VSchemaCreateRequest + wantErrContains string + validate func(t *testing.T, vsInfo *vschemapb.Keyspace) + }{ + { + name: "create keyspace with valid vschema JSON", + req: &vtctldata.VSchemaCreateRequest{ + VSchemaName: "ks", + VSchemaJson: `{"tables": {"table1": {}}}`, + Sharded: true, + Draft: false, + }, + validate: func(t *testing.T, vsInfo *vschemapb.Keyspace) { + assert.NotNil(t, vsInfo) + assert.True(t, vsInfo.Sharded) + assert.False(t, vsInfo.Draft) + assert.Contains(t, vsInfo.Tables, "table1") + }, + }, + { + name: "create keyspace with empty vschema JSON", + req: &vtctldata.VSchemaCreateRequest{ + VSchemaName: "ks_empty", + VSchemaJson: `{}`, + Sharded: false, + Draft: true, + }, + validate: func(t *testing.T, vsInfo *vschemapb.Keyspace) { + assert.NotNil(t, vsInfo) + assert.False(t, vsInfo.Sharded) + assert.True(t, vsInfo.Draft) + assert.Empty(t, vsInfo.Tables) + }, + }, + { + name: "invalid vschema JSON", + req: &vtctldata.VSchemaCreateRequest{ + VSchemaName: "ks_invalid", + VSchemaJson: `invalid_json`, + }, + wantErrContains: "unable to unmarshal vschema JSON", + }, + { + name: "duplicate keyspace creation", + req: &vtctldata.VSchemaCreateRequest{ + VSchemaName: "ks", + VSchemaJson: `{"tables": {"table1": {}}}`, + }, + wantErrContains: "node already exists", + }, + } + + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + err := api.Create(ctx, tc.req) + if tc.wantErrContains != "" { + assert.ErrorContains(t, err, tc.wantErrContains) + return + } + + assert.NoError(t, err) + + vsInfo, err := ts.GetVSchema(ctx, tc.req.VSchemaName) + require.NoError(t, err) + + if tc.validate != nil { + tc.validate(t, vsInfo.Keyspace) + } + }) + } +} + +func TestGet(t *testing.T) { + ctx := context.Background() + ts := memorytopo.NewServer(ctx, "cell") + defer ts.Close() + + ks := "ks" + err := ts.CreateKeyspace(ctx, ks, &topodatapb.Keyspace{}) + require.NoError(t, err) + vsInfo := &topo.KeyspaceVSchemaInfo{ + Name: ks, + Keyspace: &vschemapb.Keyspace{ + Tables: map[string]*vschemapb.Table{ + "t1": {}, + "t2": {}, + }, + // Initially marking this as draft. + Draft: true, + }, + } + err = ts.SaveVSchema(ctx, vsInfo) + require.NoError(t, err) + + api := NewVSchemaAPI(ts, sqlparser.NewTestParser()) + _, err = api.Get(ctx, &vtctldata.VSchemaGetRequest{ + VSchemaName: "non_existent_ks", + }) + assert.ErrorContains(t, err, "failed to retrieve vschema") + + _, err = api.Get(ctx, &vtctldata.VSchemaGetRequest{ + VSchemaName: ks, + }) + assert.ErrorContains(t, err, "draft") + + vschema, err := api.Get(ctx, &vtctldata.VSchemaGetRequest{ + VSchemaName: ks, + IncludeDrafts: true, + }) + assert.NoError(t, err) + assert.True(t, proto.Equal(vsInfo.Keyspace, vschema), "want: %v, got: %v", vsInfo.Keyspace, vschema) + + // Marking it as ready i.e. non-draft. + vsInfo.Draft = false + + err = ts.SaveVSchema(ctx, vsInfo) + require.NoError(t, err) + + vschema, err = api.Get(ctx, &vtctldata.VSchemaGetRequest{ + VSchemaName: ks, + }) + assert.NoError(t, err) + assert.True(t, proto.Equal(vsInfo.Keyspace, vschema), "want: %v, got: %v", vsInfo.Keyspace, vschema) + + vschema, err = api.Get(ctx, &vtctldata.VSchemaGetRequest{ + VSchemaName: ks, + IncludeDrafts: true, + }) + assert.NoError(t, err) + assert.True(t, proto.Equal(vsInfo.Keyspace, vschema), "want: %v, got: %v", vsInfo.Keyspace, vschema) +} + +func TestUpdate(t *testing.T) { + ctx := context.Background() + ts := memorytopo.NewServer(ctx, "cell") + defer ts.Close() + + ks := "ks" + err := ts.CreateKeyspace(ctx, ks, &topodatapb.Keyspace{}) + require.NoError(t, err) + origKs := &vschemapb.Keyspace{} + err = ts.SaveVSchema(ctx, + &topo.KeyspaceVSchemaInfo{ + Name: ks, + Keyspace: origKs, + }) + require.NoError(t, err) + + multiTenantKs := "mks" + err = ts.CreateKeyspace(ctx, multiTenantKs, &topodatapb.Keyspace{}) + require.NoError(t, err) + origMultiTenantKs := &vschemapb.Keyspace{ + MultiTenantSpec: &vschemapb.MultiTenantSpec{ + TenantIdColumnName: "orig_col_name", + TenantIdColumnType: query.Type_INT64, + }, + } + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: multiTenantKs, + Keyspace: origMultiTenantKs, + }) + require.NoError(t, err) + api := NewVSchemaAPI(ts, sqlparser.NewTestParser()) + + tests := []struct { + name string + req *vtctldata.VSchemaUpdateRequest + wantErrContains string + expectedKeyspace *vschemapb.Keyspace + // updatesMultiTenantKs should be true if the test case changes + // `multiTenantKs` vsInfo/vschema, this will set it back to the + // original vsinfo/vschema state after the test case is run, else `ks` + // will be set back to it's original vschema after the test is run. + updatesMultiTenantKs bool + }{ + { + name: "non existent ks", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: "non_existent_ks", + }, + wantErrContains: "failed to retrieve vschema", + }, + { + name: "invalid fkmode", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: ks, + ForeignKeyMode: ptr.Of("invalid_fkmode"), + }, + wantErrContains: "invalid value provided for foreign key mode", + }, + { + name: "update fkmode", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: ks, + ForeignKeyMode: ptr.Of("managed"), + }, + expectedKeyspace: &vschemapb.Keyspace{ + ForeignKeyMode: vschemapb.Keyspace_managed, + }, + }, + { + name: "update draft", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: ks, + Draft: ptr.Of(true), + }, + expectedKeyspace: &vschemapb.Keyspace{ + Draft: true, + }, + }, + { + name: "update sharded", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: ks, + Sharded: ptr.Of(true), + }, + expectedKeyspace: &vschemapb.Keyspace{ + Sharded: true, + }, + }, + { + name: "nothing to update but multi tenant", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: multiTenantKs, + MultiTenant: ptr.Of(true), + }, + wantErrContains: "nothing to update", + }, + { + name: "no multi-tenant param provided", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: ks, + MultiTenant: ptr.Of(true), + }, + wantErrContains: "both tenant id column name and column type should be provided", + }, + { + name: "only one param, tenant spec nil", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: ks, + MultiTenant: ptr.Of(true), + TenantIdColumnName: ptr.Of("col_name"), + }, + wantErrContains: "both tenant id column name and column type", + }, + { + name: "only one param, tenant spec nil", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: ks, + MultiTenant: ptr.Of(true), + TenantIdColumnType: ptr.Of("varchar"), + }, + wantErrContains: "both tenant id column name and column type", + }, + { + name: "invalid tenant column type", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: ks, + MultiTenant: ptr.Of(true), + TenantIdColumnName: ptr.Of("col_name"), + TenantIdColumnType: ptr.Of("invalid_type"), + }, + wantErrContains: "invalid tenant id column type", + }, + { + name: "cannot specify tenant id with multi tenant false", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: ks, + MultiTenant: ptr.Of(false), + TenantIdColumnName: ptr.Of("col_name"), + TenantIdColumnType: ptr.Of("invalid_type"), + }, + wantErrContains: "cannot specify tenant-id-column-name or tenant-id-column-type", + }, + { + name: "set new tenant spec", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: ks, + MultiTenant: ptr.Of(true), + TenantIdColumnName: ptr.Of("col_name"), + TenantIdColumnType: ptr.Of("varchar"), + }, + expectedKeyspace: &vschemapb.Keyspace{ + MultiTenantSpec: &vschemapb.MultiTenantSpec{ + TenantIdColumnName: "col_name", + TenantIdColumnType: query.Type_VARCHAR, + }, + }, + }, + { + name: "update tenant spec, col name", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: multiTenantKs, + MultiTenant: ptr.Of(true), + TenantIdColumnName: ptr.Of("col_name"), + }, + expectedKeyspace: &vschemapb.Keyspace{ + MultiTenantSpec: &vschemapb.MultiTenantSpec{ + TenantIdColumnName: "col_name", + TenantIdColumnType: query.Type_INT64, + }, + }, + updatesMultiTenantKs: true, + }, + { + name: "remove multi tenant spec", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: multiTenantKs, + MultiTenant: ptr.Of(false), + }, + expectedKeyspace: &vschemapb.Keyspace{}, + updatesMultiTenantKs: true, + }, + { + name: "update tenant spec, col type", + req: &vtctldata.VSchemaUpdateRequest{ + VSchemaName: multiTenantKs, + MultiTenant: ptr.Of(true), + TenantIdColumnType: ptr.Of("varchar"), + }, + expectedKeyspace: &vschemapb.Keyspace{ + MultiTenantSpec: &vschemapb.MultiTenantSpec{ + TenantIdColumnName: "orig_col_name", + TenantIdColumnType: query.Type_VARCHAR, + }, + }, + updatesMultiTenantKs: true, + }, + } + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + err = api.Update(ctx, tc.req) + if tc.wantErrContains != "" { + assert.ErrorContains(t, err, tc.wantErrContains) + return + } + assert.NoError(t, err) + ksInfo, err := ts.GetVSchema(ctx, tc.req.VSchemaName) + require.NoError(t, err) + assert.True(t, proto.Equal(tc.expectedKeyspace, ksInfo.Keyspace)) + + // Bring back to it's original ksinfo. + if !tc.updatesMultiTenantKs { + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: ks, + Keyspace: origKs, + }) + require.NoError(t, err) + } else { + // Update to original multi-tenant vschema. + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: multiTenantKs, + Keyspace: origMultiTenantKs, + }) + require.NoError(t, err) + } + }) + } +} + +func TestPublish(t *testing.T) { + ctx := context.Background() + ts := memorytopo.NewServer(ctx, "cell") + defer ts.Close() + + ks := "ks" + err := ts.CreateKeyspace(ctx, ks, &topodatapb.Keyspace{}) + require.NoError(t, err) + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: ks, + Keyspace: &vschemapb.Keyspace{}, + }) + require.NoError(t, err) + + api := NewVSchemaAPI(ts, sqlparser.NewTestParser()) + err = api.Publish(ctx, &vtctldata.VSchemaPublishRequest{ + VSchemaName: "non_existent_ks", + }) + assert.ErrorContains(t, err, "failed to retrieve vschema") + + // Already published. + err = api.Publish(ctx, &vtctldata.VSchemaPublishRequest{ + VSchemaName: ks, + }) + assert.ErrorContains(t, err, "already published") + + // Marking it as draft now. + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: ks, + Keyspace: &vschemapb.Keyspace{ + Draft: true, + }, + }) + require.NoError(t, err) + + err = api.Publish(ctx, &vtctldata.VSchemaPublishRequest{ + VSchemaName: ks, + }) + assert.NoError(t, err) + + ksInfo, err := ts.GetVSchema(ctx, ks) + require.NoError(t, err) + + ksInfo.Draft = false +} + +func TestAddVindex(t *testing.T) { + ctx := context.Background() + ts := memorytopo.NewServer(ctx, "cell") + defer ts.Close() + + api := NewVSchemaAPI(ts, sqlparser.NewTestParser()) + + ks := "ks" + err := ts.CreateKeyspace(ctx, ks, &topodatapb.Keyspace{}) + require.NoError(t, err) + + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: ks, + Keyspace: &vschemapb.Keyspace{ + Vindexes: map[string]*vschemapb.Vindex{ + "existing_vindex": { + Type: "hash", + }, + }, + }, + }) + require.NoError(t, err) + + tests := []struct { + name string + req *vtctldata.VSchemaAddVindexRequest + wantErrContains string + }{ + { + name: "non-existent keyspace", + req: &vtctldata.VSchemaAddVindexRequest{ + VSchemaName: "non_existent_keyspace", + VindexName: "new_vindex", + VindexType: "hash", + }, + wantErrContains: "failed to retrieve vschema", + }, + { + name: "duplicate vindex", + req: &vtctldata.VSchemaAddVindexRequest{ + VSchemaName: ks, + VindexName: "existing_vindex", + VindexType: "hash", + }, + wantErrContains: "vindex 'existing_vindex' already exists", + }, + { + name: "invalid vindex type", + req: &vtctldata.VSchemaAddVindexRequest{ + VSchemaName: ks, + VindexName: "invalid_vindex", + VindexType: "invalid_type", + }, + wantErrContains: "failed to create vindex 'invalid_vindex'", + }, + { + name: "successful addition", + req: &vtctldata.VSchemaAddVindexRequest{ + VSchemaName: ks, + VindexName: "new_vindex", + VindexType: "hash", + Params: map[string]string{ + "param1": "value1", + }, + }, + wantErrContains: "", + }, + } + + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + err := api.AddVindex(ctx, tc.req) + if tc.wantErrContains != "" { + assert.ErrorContains(t, err, tc.wantErrContains) + return + } + + assert.NoError(t, err) + + vsInfo, err := ts.GetVSchema(ctx, tc.req.VSchemaName) + require.NoError(t, err) + + vindex, ok := vsInfo.Vindexes[tc.req.VindexName] + assert.True(t, ok, "vindex should exist in the VSchema") + assert.Equal(t, tc.req.VindexType, vindex.Type) + assert.Equal(t, tc.req.Params, vindex.Params) + }) + } +} + +func TestRemoveVindex(t *testing.T) { + ctx := context.Background() + ts := memorytopo.NewServer(ctx, "cell") + defer ts.Close() + + ks := "ks" + err := ts.CreateKeyspace(ctx, ks, &topodatapb.Keyspace{}) + require.NoError(t, err) + + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: ks, + Keyspace: &vschemapb.Keyspace{ + Vindexes: map[string]*vschemapb.Vindex{ + "vindex1": {Type: "hash"}, + }, + Tables: map[string]*vschemapb.Table{ + "table1": { + ColumnVindexes: []*vschemapb.ColumnVindex{ + {Name: "vindex1", Columns: []string{"col1"}}, + }, + }, + "table2": { + ColumnVindexes: []*vschemapb.ColumnVindex{ + {Name: "vindex1", Columns: []string{"col2"}}, + }, + }, + }, + }, + }) + require.NoError(t, err) + + api := NewVSchemaAPI(ts, sqlparser.NewTestParser()) + + tests := []struct { + name string + req *vtctldata.VSchemaRemoveVindexRequest + wantErrContains string + validate func(t *testing.T, vsInfo *vschemapb.Keyspace) + }{ + { + name: "non-existent keyspace", + req: &vtctldata.VSchemaRemoveVindexRequest{ + VSchemaName: "non_existent_keyspace", + VindexName: "vindex1", + }, + wantErrContains: "failed to retrieve vschema", + }, + { + name: "non-existent vindex", + req: &vtctldata.VSchemaRemoveVindexRequest{ + VSchemaName: ks, + VindexName: "non_existent_vindex", + }, + wantErrContains: "vindex 'non_existent_vindex' doesn't exist", + }, + { + name: "successful removal", + req: &vtctldata.VSchemaRemoveVindexRequest{ + VSchemaName: ks, + VindexName: "vindex1", + }, + validate: func(t *testing.T, vsInfo *vschemapb.Keyspace) { + _, exists := vsInfo.Vindexes["vindex1"] + assert.False(t, exists, "vindex1 should be removed") + + for _, table := range vsInfo.Tables { + for _, colVindex := range table.ColumnVindexes { + assert.NotEqual(t, "vindex1", colVindex.Name, "vindex1 should be removed from all tables") + } + } + }, + }, + } + + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + err := api.RemoveVindex(ctx, tc.req) + if tc.wantErrContains != "" { + assert.ErrorContains(t, err, tc.wantErrContains) + return + } + + assert.NoError(t, err) + + vsInfo, err := ts.GetVSchema(ctx, tc.req.VSchemaName) + require.NoError(t, err) + + _, exists := vsInfo.Vindexes[tc.req.VindexName] + assert.False(t, exists, "vindex1 should be removed") + + for _, table := range vsInfo.Tables { + for _, colVindex := range table.ColumnVindexes { + assert.NotEqual(t, tc.req.VindexName, colVindex.Name, "vindex1 should be removed from all tables") + } + } + if tc.validate != nil { + tc.validate(t, vsInfo.Keyspace) + } + }) + } +} + +func TestAddLookupVindex(t *testing.T) { + ctx := context.Background() + ts := memorytopo.NewServer(ctx, "cell") + defer ts.Close() + + ks := "ks" + err := ts.CreateKeyspace(ctx, ks, &topodatapb.Keyspace{}) + require.NoError(t, err) + + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: ks, + Keyspace: &vschemapb.Keyspace{ + Tables: map[string]*vschemapb.Table{ + "owner_table": {}, + }, + }, + }) + require.NoError(t, err) + + ks2 := "ks2" + err = ts.CreateKeyspace(ctx, ks2, &topodatapb.Keyspace{}) + require.NoError(t, err) + + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: ks2, + Keyspace: &vschemapb.Keyspace{ + Tables: map[string]*vschemapb.Table{ + "lookup_table": { + Type: vindexes.TypeTable, + }, + }, + }, + }) + require.NoError(t, err) + + api := NewVSchemaAPI(ts, sqlparser.NewTestParser()) + + tests := []struct { + name string + req *vtctldata.VSchemaAddLookupVindexRequest + wantErrContains string + validate func(t *testing.T, vsInfo *vschemapb.Keyspace) + }{ + { + name: "non-existent keyspace", + req: &vtctldata.VSchemaAddLookupVindexRequest{ + VSchemaName: "non_existent_keyspace", + VindexName: "lookup_vindex", + LookupVindexType: "lookup_hash", + TableName: "lookup_table", + FromColumns: []string{"col1"}, + Owner: "owner_table", + }, + wantErrContains: "failed to retrieve vschema", + }, + { + name: "invalid lookup vindex type", + req: &vtctldata.VSchemaAddLookupVindexRequest{ + VSchemaName: ks, + VindexName: "invalid_lookup_vindex", + LookupVindexType: "invalid_type", + TableName: "ks2.lookup_table", + FromColumns: []string{"col1"}, + Owner: "owner_table", + }, + wantErrContains: "invalid lookup vindex type", + }, + { + name: "no from columns specified", + req: &vtctldata.VSchemaAddLookupVindexRequest{ + VSchemaName: ks, + VindexName: "lookup_vindex", + LookupVindexType: "lookup_hash", + TableName: "ks2.lookup_table", + Owner: "owner_table", + }, + wantErrContains: "at least 1 column should be specified for lookup vindex", + }, + { + name: "invalid lookup table, invalid ks", + req: &vtctldata.VSchemaAddLookupVindexRequest{ + VSchemaName: ks, + VindexName: "lookup_vindex", + LookupVindexType: "lookup_hash", + TableName: "non_existent_ks.non_existent_table", + FromColumns: []string{"col1"}, + Owner: "owner_table", + }, + wantErrContains: "invalid lookup table", + }, + { + name: "invalid lookup table", + req: &vtctldata.VSchemaAddLookupVindexRequest{ + VSchemaName: ks, + VindexName: "lookup_vindex", + LookupVindexType: "lookup_hash", + TableName: "ks2.non_existent_table", + FromColumns: []string{"col1"}, + Owner: "owner_table", + }, + wantErrContains: "invalid lookup table", + }, + { + name: "invalid lookup type", + req: &vtctldata.VSchemaAddLookupVindexRequest{ + VSchemaName: ks, + VindexName: "lookup_vindex", + LookupVindexType: "lookup_non_existent", + TableName: "ks2.lookup_table", + FromColumns: []string{"col1"}, + Owner: "owner_table", + }, + wantErrContains: "failed to create vindex", + }, + { + name: "non-existent owner table", + req: &vtctldata.VSchemaAddLookupVindexRequest{ + VSchemaName: ks, + VindexName: "lookup_vindex", + LookupVindexType: "lookup_hash", + TableName: "ks2.lookup_table", + FromColumns: []string{"col1"}, + Owner: "non_existent_owner", + }, + wantErrContains: "table 'non_existent_owner' not found", + }, + { + name: "successful addition", + req: &vtctldata.VSchemaAddLookupVindexRequest{ + VSchemaName: ks, + VindexName: "lookup_vindex", + LookupVindexType: "lookup_hash", + TableName: "ks2.lookup_table", + FromColumns: []string{"col1"}, + Owner: "owner_table", + IgnoreNulls: true, + }, + validate: func(t *testing.T, vsInfo *vschemapb.Keyspace) { + vindex, ok := vsInfo.Vindexes["lookup_vindex"] + assert.True(t, ok, "lookup_vindex should exist in the VSchema") + assert.Equal(t, "lookup_hash", vindex.Type) + assert.Equal(t, map[string]string{ + "table": "ks2.lookup_table", + "from": "col1", + "to": "keyspace_id", + "ignore_nulls": "true", + }, vindex.Params) + assert.Equal(t, "owner_table", vindex.Owner) + + ownerTable, ok := vsInfo.Tables["owner_table"] + assert.True(t, ok, "owner_table should exist in the VSchema") + assert.Len(t, ownerTable.ColumnVindexes, 1) + assert.Equal(t, "lookup_vindex", ownerTable.ColumnVindexes[0].Name) + assert.Equal(t, []string{"col1"}, ownerTable.ColumnVindexes[0].Columns) + }, + }, + } + + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + err := api.AddLookupVindex(ctx, tc.req) + if tc.wantErrContains != "" { + assert.ErrorContains(t, err, tc.wantErrContains) + return + } + + assert.NoError(t, err) + + vsInfo, err := ts.GetVSchema(ctx, tc.req.VSchemaName) + require.NoError(t, err) + + if tc.validate != nil { + tc.validate(t, vsInfo.Keyspace) + } + }) + } +} + +func TestAddTables(t *testing.T) { + ctx := context.Background() + ts := memorytopo.NewServer(ctx, "cell") + defer ts.Close() + + ks := "ks" + err := ts.CreateKeyspace(ctx, ks, &topodatapb.Keyspace{}) + require.NoError(t, err) + + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: ks, + Keyspace: &vschemapb.Keyspace{ + Vindexes: map[string]*vschemapb.Vindex{ + "primary_vindex": { + Type: "hash", + }, + }, + Tables: map[string]*vschemapb.Table{ + "existing_table": {}, + }, + }, + }) + require.NoError(t, err) + + api := NewVSchemaAPI(ts, sqlparser.NewTestParser()) + + tests := []struct { + name string + req *vtctldata.VSchemaAddTablesRequest + wantErrContains string + validate func(t *testing.T, vsInfo *vschemapb.Keyspace) + }{ + { + name: "non-existent keyspace", + req: &vtctldata.VSchemaAddTablesRequest{ + VSchemaName: "non_existent_keyspace", + Tables: []string{"new_table"}, + }, + wantErrContains: "failed to retrieve vschema", + }, + { + name: "no tables in request", + req: &vtctldata.VSchemaAddTablesRequest{ + VSchemaName: ks, + }, + wantErrContains: "no tables found in the request", + }, + { + name: "table already exists", + req: &vtctldata.VSchemaAddTablesRequest{ + VSchemaName: ks, + Tables: []string{"existing_table"}, + }, + wantErrContains: "existing_table already exist", + }, + { + name: "primary vindex not found", + req: &vtctldata.VSchemaAddTablesRequest{ + VSchemaName: ks, + Tables: []string{"new_table"}, + PrimaryVindexName: "non_existent_vindex", + }, + wantErrContains: "vindex 'non_existent_vindex' not found", + }, + { + name: "add tables without primary vindex", + req: &vtctldata.VSchemaAddTablesRequest{ + VSchemaName: ks, + Tables: []string{"new_table1", "new_table2"}, + }, + validate: func(t *testing.T, vsInfo *vschemapb.Keyspace) { + assert.Contains(t, vsInfo.Tables, "new_table1") + assert.Contains(t, vsInfo.Tables, "new_table2") + assert.Nil(t, vsInfo.Tables["new_table1"].ColumnVindexes) + assert.Nil(t, vsInfo.Tables["new_table2"].ColumnVindexes) + }, + }, + { + name: "add tables with add all true", + req: &vtctldata.VSchemaAddTablesRequest{ + VSchemaName: ks, + Tables: []string{"new_table3", "new_table4"}, + PrimaryVindexName: "primary_vindex", + Columns: []string{"col1"}, + AddAll: true, + }, + validate: func(t *testing.T, vsInfo *vschemapb.Keyspace) { + for _, tableName := range []string{"new_table3", "new_table4"} { + assert.Contains(t, vsInfo.Tables, tableName) + assert.Len(t, vsInfo.Tables[tableName].ColumnVindexes, 1) + assert.Equal(t, "primary_vindex", vsInfo.Tables[tableName].ColumnVindexes[0].Name) + assert.Equal(t, []string{"col1"}, vsInfo.Tables[tableName].ColumnVindexes[0].Columns) + } + }, + }, + { + name: "add tables with add all false", + req: &vtctldata.VSchemaAddTablesRequest{ + VSchemaName: ks, + Tables: []string{"new_table5", "new_table6"}, + PrimaryVindexName: "primary_vindex", + Columns: []string{"col1"}, + }, + validate: func(t *testing.T, vsInfo *vschemapb.Keyspace) { + assert.Contains(t, vsInfo.Tables, "new_table5") + assert.Contains(t, vsInfo.Tables, "new_table6") + assert.Len(t, vsInfo.Tables["new_table5"].ColumnVindexes, 1) + assert.Equal(t, "primary_vindex", vsInfo.Tables["new_table5"].ColumnVindexes[0].Name) + assert.Equal(t, []string{"col1"}, vsInfo.Tables["new_table5"].ColumnVindexes[0].Columns) + assert.Nil(t, vsInfo.Tables["new_table6"].ColumnVindexes) + }, + }, + } + + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + err := api.AddTables(ctx, tc.req) + if tc.wantErrContains != "" { + assert.ErrorContains(t, err, tc.wantErrContains) + return + } + + assert.NoError(t, err) + + vsInfo, err := ts.GetVSchema(ctx, tc.req.VSchemaName) + require.NoError(t, err) + + if tc.validate != nil { + tc.validate(t, vsInfo.Keyspace) + } + }) + } +} + +func TestRemoveTables(t *testing.T) { + ctx := context.Background() + ts := memorytopo.NewServer(ctx, "cell") + defer ts.Close() + + ks := "ks" + err := ts.CreateKeyspace(ctx, ks, &topodatapb.Keyspace{}) + require.NoError(t, err) + + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: ks, + Keyspace: &vschemapb.Keyspace{ + Tables: map[string]*vschemapb.Table{ + "table1": {}, + "table2": {}, + "table3": {}, + }, + }, + }) + require.NoError(t, err) + + api := NewVSchemaAPI(ts, sqlparser.NewTestParser()) + + tests := []struct { + name string + req *vtctldata.VSchemaRemoveTablesRequest + wantErrContains string + validate func(t *testing.T, vsInfo *vschemapb.Keyspace) + }{ + { + name: "non-existent keyspace", + req: &vtctldata.VSchemaRemoveTablesRequest{ + VSchemaName: "non_existent_keyspace", + Tables: []string{"table1"}, + }, + wantErrContains: "failed to retrieve vschema", + }, + { + name: "non-existent table", + req: &vtctldata.VSchemaRemoveTablesRequest{ + VSchemaName: ks, + Tables: []string{"non_existent_table"}, + }, + wantErrContains: "table(s) non_existent_table not found", + }, + { + name: "remove single table", + req: &vtctldata.VSchemaRemoveTablesRequest{ + VSchemaName: ks, + Tables: []string{"table1"}, + }, + validate: func(t *testing.T, vsInfo *vschemapb.Keyspace) { + _, exists := vsInfo.Tables["table1"] + assert.False(t, exists, "table1 should be removed") + _, exists = vsInfo.Tables["table2"] + assert.True(t, exists, "table2 should still exist") + _, exists = vsInfo.Tables["table3"] + assert.True(t, exists, "table3 should still exist") + }, + }, + { + name: "remove multiple tables", + req: &vtctldata.VSchemaRemoveTablesRequest{ + VSchemaName: ks, + Tables: []string{"table2", "table3"}, + }, + validate: func(t *testing.T, vsInfo *vschemapb.Keyspace) { + _, exists := vsInfo.Tables["table2"] + assert.False(t, exists, "table2 should be removed") + _, exists = vsInfo.Tables["table3"] + assert.False(t, exists, "table3 should be removed") + }, + }, + } + + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + err := api.RemoveTables(ctx, tc.req) + if tc.wantErrContains != "" { + assert.ErrorContains(t, err, tc.wantErrContains) + return + } + + assert.NoError(t, err) + + vsInfo, err := ts.GetVSchema(ctx, tc.req.VSchemaName) + require.NoError(t, err) + + if tc.validate != nil { + tc.validate(t, vsInfo.Keyspace) + } + }) + } +} + +func TestSetPrimaryVindex(t *testing.T) { + ctx := context.Background() + ts := memorytopo.NewServer(ctx, "cell") + defer ts.Close() + + ks := "ks" + err := ts.CreateKeyspace(ctx, ks, &topodatapb.Keyspace{}) + require.NoError(t, err) + + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: ks, + Keyspace: &vschemapb.Keyspace{ + Vindexes: map[string]*vschemapb.Vindex{ + "primary_vindex": { + Type: "hash", + }, + "vindex2": { + Type: "hash", + }, + }, + Tables: map[string]*vschemapb.Table{ + "table1": {}, + "table2": { + ColumnVindexes: []*vschemapb.ColumnVindex{ + { + Name: "vindex2", + Columns: []string{"col1"}, + }, + }, + }, + }, + }, + }) + require.NoError(t, err) + + api := NewVSchemaAPI(ts, sqlparser.NewTestParser()) + + tests := []struct { + name string + req *vtctldata.VSchemaSetPrimaryVindexRequest + wantErrContains string + validate func(t *testing.T, vsInfo *vschemapb.Keyspace) + }{ + { + name: "non-existent keyspace", + req: &vtctldata.VSchemaSetPrimaryVindexRequest{ + VSchemaName: "non_existent_keyspace", + Tables: []string{"table1"}, + VindexName: "primary_vindex", + Columns: []string{"col1"}, + }, + wantErrContains: "failed to retrieve vschema", + }, + { + name: "no columns specified", + req: &vtctldata.VSchemaSetPrimaryVindexRequest{ + VSchemaName: ks, + Tables: []string{"table1"}, + VindexName: "primary_vindex", + }, + wantErrContains: "at least 1 column should be specified for vindex", + }, + { + name: "non-existent table", + req: &vtctldata.VSchemaSetPrimaryVindexRequest{ + VSchemaName: ks, + Tables: []string{"non_existent_table"}, + VindexName: "primary_vindex", + Columns: []string{"col1"}, + }, + wantErrContains: "table(s) non_existent_table not found", + }, + { + name: "non-existent vindex", + req: &vtctldata.VSchemaSetPrimaryVindexRequest{ + VSchemaName: ks, + Tables: []string{"table1"}, + VindexName: "non_existent_vindex", + Columns: []string{"col1"}, + }, + wantErrContains: "vindex 'non_existent_vindex' not found", + }, + { + name: "set primary vindex for single table", + req: &vtctldata.VSchemaSetPrimaryVindexRequest{ + VSchemaName: ks, + Tables: []string{"table1"}, + VindexName: "primary_vindex", + Columns: []string{"col1"}, + }, + validate: func(t *testing.T, vsInfo *vschemapb.Keyspace) { + assert.Contains(t, vsInfo.Tables, "table1") + assert.Len(t, vsInfo.Tables["table1"].ColumnVindexes, 1) + assert.Equal(t, "primary_vindex", vsInfo.Tables["table1"].ColumnVindexes[0].Name) + assert.Equal(t, []string{"col1"}, vsInfo.Tables["table1"].ColumnVindexes[0].Columns) + }, + }, + { + name: "set primary vindex for multiple tables", + req: &vtctldata.VSchemaSetPrimaryVindexRequest{ + VSchemaName: ks, + Tables: []string{"table1", "table2"}, + VindexName: "primary_vindex", + Columns: []string{"col1"}, + }, + validate: func(t *testing.T, vsInfo *vschemapb.Keyspace) { + for _, tableName := range []string{"table1", "table2"} { + assert.Contains(t, vsInfo.Tables, tableName) + assert.Len(t, vsInfo.Tables[tableName].ColumnVindexes, 1) + assert.Equal(t, "primary_vindex", vsInfo.Tables[tableName].ColumnVindexes[0].Name) + assert.Equal(t, []string{"col1"}, vsInfo.Tables[tableName].ColumnVindexes[0].Columns) + } + }, + }, + } + + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + err := api.SetPrimaryVindex(ctx, tc.req) + if tc.wantErrContains != "" { + assert.ErrorContains(t, err, tc.wantErrContains) + return + } + + assert.NoError(t, err) + + vsInfo, err := ts.GetVSchema(ctx, tc.req.VSchemaName) + require.NoError(t, err) + + if tc.validate != nil { + tc.validate(t, vsInfo.Keyspace) + } + }) + } +} + +func TestSetSequence(t *testing.T) { + ctx := context.Background() + ts := memorytopo.NewServer(ctx, "cell") + defer ts.Close() + + ks := "ks" + err := ts.CreateKeyspace(ctx, ks, &topodatapb.Keyspace{}) + require.NoError(t, err) + + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: ks, + Keyspace: &vschemapb.Keyspace{ + Tables: map[string]*vschemapb.Table{ + "table1": {}, + }, + }, + }) + require.NoError(t, err) + + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: "unsharded", + Keyspace: &vschemapb.Keyspace{ + Tables: map[string]*vschemapb.Table{ + "sequence_table": { + Type: "sequence", + }, + }, + }, + }) + require.NoError(t, err) + + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: "sharded", + Keyspace: &vschemapb.Keyspace{ + Sharded: true, + Tables: map[string]*vschemapb.Table{ + "sequence_table": { + Type: "sequence", + }, + }, + }, + }) + require.NoError(t, err) + + api := NewVSchemaAPI(ts, sqlparser.NewTestParser()) + + tests := []struct { + name string + req *vtctldata.VSchemaSetSequenceRequest + wantErrContains string + }{ + { + name: "non-existent keyspace", + req: &vtctldata.VSchemaSetSequenceRequest{ + VSchemaName: "non_existent_keyspace", + TableName: "table1", + Column: "id", + SequenceSource: "unsharded.sequence_table", + }, + wantErrContains: "failed to retrieve vschema", + }, + { + name: "non-existent table", + req: &vtctldata.VSchemaSetSequenceRequest{ + VSchemaName: ks, + TableName: "non_existent_table", + Column: "id", + SequenceSource: "unsharded.sequence_table", + }, + wantErrContains: "table 'non_existent_table' not found", + }, + { + name: "empty sequence source", + req: &vtctldata.VSchemaSetSequenceRequest{ + VSchemaName: ks, + TableName: "table1", + Column: "id", + }, + wantErrContains: "sequence source cannot be empty", + }, + { + name: "empty column name", + req: &vtctldata.VSchemaSetSequenceRequest{ + VSchemaName: ks, + TableName: "table1", + SequenceSource: "unsharded.sequence_table", + }, + wantErrContains: "column name cannot be empty", + }, + { + name: "sharded sequence table", + req: &vtctldata.VSchemaSetSequenceRequest{ + VSchemaName: ks, + TableName: "table1", + Column: "id", + SequenceSource: "sharded.sequence_table", + }, + wantErrContains: "cannot be sharded", + }, + { + name: "valid sequence setup", + req: &vtctldata.VSchemaSetSequenceRequest{ + VSchemaName: ks, + TableName: "table1", + Column: "id", + SequenceSource: "unsharded.sequence_table", + }, + }, + } + + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + err := api.SetSequence(ctx, tc.req) + if tc.wantErrContains != "" { + assert.ErrorContains(t, err, tc.wantErrContains) + return + } + + assert.NoError(t, err) + + vsInfo, err := ts.GetVSchema(ctx, tc.req.VSchemaName) + require.NoError(t, err) + + table, ok := vsInfo.Tables[tc.req.TableName] + require.True(t, ok, "table '%s' should exist", tc.req.TableName) + + assert.NotNil(t, table.AutoIncrement) + assert.Equal(t, "id", table.AutoIncrement.Column) + assert.Equal(t, "unsharded.sequence_table", table.AutoIncrement.Sequence) + }) + } +} + +func TestSetReference(t *testing.T) { + ctx := context.Background() + ts := memorytopo.NewServer(ctx, "cell") + defer ts.Close() + + sourceKs := "sourceKs" + ks := "ks" + err := ts.CreateKeyspace(ctx, sourceKs, &topodatapb.Keyspace{}) + require.NoError(t, err) + + sourceTableName := "t1" + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: sourceKs, + Keyspace: &vschemapb.Keyspace{ + Tables: map[string]*vschemapb.Table{ + sourceTableName: {}, + }, + }, + }) + require.NoError(t, err) + err = ts.CreateKeyspace(ctx, ks, &topodatapb.Keyspace{}) + require.NoError(t, err) + err = ts.SaveVSchema(ctx, &topo.KeyspaceVSchemaInfo{ + Name: ks, + Keyspace: &vschemapb.Keyspace{ + Tables: map[string]*vschemapb.Table{ + "t2": {}, + "t3": {}, + }, + }, + }) + require.NoError(t, err) + + api := NewVSchemaAPI(ts, sqlparser.NewTestParser()) + err = api.SetReference(ctx, &vtctldata.VSchemaSetReferenceRequest{ + VSchemaName: "non_existent_ks", + TableName: "t1", + }) + assert.ErrorContains(t, err, "failed to retrieve vschema") + + err = api.SetReference(ctx, &vtctldata.VSchemaSetReferenceRequest{ + VSchemaName: ks, + TableName: "non_existent_table", + }) + assert.ErrorContains(t, err, "'non_existent_table' not found") + + err = api.SetReference(ctx, &vtctldata.VSchemaSetReferenceRequest{ + VSchemaName: ks, + TableName: "t2", + }) + assert.NoError(t, err) + ksInfo, err := ts.GetVSchema(ctx, ks) + require.NoError(t, err) + table := ksInfo.Tables["t2"] + assert.NotNil(t, table) + assert.Equal(t, vindexes.TypeReference, table.Type) + + err = api.SetReference(ctx, &vtctldata.VSchemaSetReferenceRequest{ + VSchemaName: ks, + TableName: "t2", + }) + assert.ErrorContains(t, err, "already a reference table") + + err = api.SetReference(ctx, &vtctldata.VSchemaSetReferenceRequest{ + VSchemaName: ks, + TableName: "t3", + Source: fmt.Sprintf("%s.%s", sourceKs, "non_existent_source_table"), + }) + assert.ErrorContains(t, err, "'non_existent_source_table' not found") + + err = api.SetReference(ctx, &vtctldata.VSchemaSetReferenceRequest{ + VSchemaName: ks, + TableName: "t3", + Source: fmt.Sprintf("%s.%s", "non_existent_ks", sourceTableName), + }) + assert.ErrorContains(t, err, "failed to retrieve vschema") + + // Unqualified source should return error + err = api.SetReference(ctx, &vtctldata.VSchemaSetReferenceRequest{ + VSchemaName: ks, + TableName: "t3", + Source: "t1", + }) + assert.ErrorContains(t, err, "invalid reference table source") + + // Qualified source + source := fmt.Sprintf("%s.%s", sourceKs, sourceTableName) + err = api.SetReference(ctx, &vtctldata.VSchemaSetReferenceRequest{ + VSchemaName: ks, + TableName: "t3", + Source: source, + }) + assert.ErrorContains(t, err, "not a reference table") + + err = api.SetReference(ctx, &vtctldata.VSchemaSetReferenceRequest{ + VSchemaName: sourceKs, + TableName: "t1", + }) + assert.NoError(t, err) + + err = api.SetReference(ctx, &vtctldata.VSchemaSetReferenceRequest{ + VSchemaName: ks, + TableName: "t3", + Source: source, + }) + assert.NoError(t, err) + ksInfo, err = ts.GetVSchema(ctx, ks) + require.NoError(t, err) + table = ksInfo.Tables["t3"] + assert.NotNil(t, table) + assert.Equal(t, vindexes.TypeReference, table.Type) + assert.Equal(t, source, table.Source) +} diff --git a/go/vt/vtgate/vindexes/vschema.go b/go/vt/vtgate/vindexes/vschema.go index 686c3edcb4e..ebbaee7043e 100644 --- a/go/vt/vtgate/vindexes/vschema.go +++ b/go/vt/vtgate/vindexes/vschema.go @@ -960,7 +960,7 @@ func resolveAutoIncrement(source *vschemapb.SrvVSchema, vschema *VSchema, parser // expects table name of the form . func escapeQualifiedTable(qualifiedTableName string) (string, error) { - keyspace, tableName, err := extractTableParts(qualifiedTableName, false /* allowUnqualified */) + keyspace, tableName, err := ExtractTableParts(qualifiedTableName, false /* allowUnqualified */) if err != nil { return "", err } @@ -976,7 +976,7 @@ func escapeQualifiedTable(qualifiedTableName string) (string, error) { return fmt.Sprintf("%s.%s", keyspace, tableName), nil } -func extractTableParts(tableName string, allowUnqualified bool) (string, string, error) { +func ExtractTableParts(tableName string, allowUnqualified bool) (string, string, error) { errMsgFormat := "invalid table name: '%s', it must be of the " if allowUnqualified { errMsgFormat = errMsgFormat + "unqualified form or the " @@ -999,7 +999,7 @@ func extractTableParts(tableName string, allowUnqualified bool) (string, string, } func parseTable(tableName string) (sqlparser.TableName, error) { - keyspace, tableName, err := extractTableParts(tableName, true /* allowUnqualified */) + keyspace, tableName, err := ExtractTableParts(tableName, true /* allowUnqualified */) if err != nil { return sqlparser.TableName{}, err } diff --git a/proto/vschema.proto b/proto/vschema.proto index f0d12278fcd..648730ad4e9 100644 --- a/proto/vschema.proto +++ b/proto/vschema.proto @@ -57,6 +57,9 @@ message Keyspace { // multi_tenant_mode specifies that the keyspace is multi-tenant. Currently used during migrations with MoveTables. MultiTenantSpec multi_tenant_spec = 6; + + // If draft is true, it means keyspace vschema is not ready. + bool draft = 7; } message MultiTenantSpec { diff --git a/proto/vtadmin.proto b/proto/vtadmin.proto index 1485cb485c2..088e82e5d68 100644 --- a/proto/vtadmin.proto +++ b/proto/vtadmin.proto @@ -228,6 +228,31 @@ service VTAdmin { // VExplain provides information on how Vitess plans to execute a // particular query. rpc VExplain(VExplainRequest) returns (VExplainResponse) {}; + + // VSchemaPublish publishes a VSchema marking it as non-draft. + rpc VSchemaPublish(VSchemaPublishRequest) returns (vtctldata.VSchemaPublishResponse) {}; + // VSchemaAddVindex adds a vindex in vschema. It doesn't expect it to be a lookup + // vindex, so owner is not set/required. + rpc VSchemaAddVindex(VSchemaAddVindexRequest) returns (vtctldata.VSchemaAddVindexResponse) {}; + // VSchemaRemoveVindex removes an existing vindex from the vschema. + rpc VSchemaRemoveVindex(VSchemaRemoveVindexRequest) returns (vtctldata.VSchemaRemoveVindexResponse) {}; + // VSchemaAddLookupVindex adds a lookup vindex to the vschema. + rpc VSchemaAddLookupVindex(VSchemaAddLookupVindexRequest) returns (vtctldata.VSchemaAddLookupVindexResponse) {}; + // VSchemaAddTables adds one or more tables to the vschema, along with a + // designated primary vindex and associated columns. + rpc VSchemaAddTables(VSchemaAddTablesRequest) returns (vtctldata.VSchemaAddTablesResponse) {}; + // VSchemaRemoveTables removes one or more tables from the vschema. + rpc VSchemaRemoveTables(VSchemaRemoveTablesRequest) returns (vtctldata.VSchemaRemoveTablesResponse) {}; + // VSchemaSetPrimaryVindex sets or updates the primary vindex for one or + // more tables, specifying the columns associated with the vindex. + rpc VSchemaSetPrimaryVindex(VSchemaSetPrimaryVindexRequest) returns (vtctldata.VSchemaSetPrimaryVindexResponse) {}; + // VSchemaSetSequence sets up a table column to use a sequence from an + // unsharded source. + rpc VSchemaSetSequence(VSchemaSetSequenceRequest) returns (vtctldata.VSchemaSetSequenceResponse) {}; + // VSchemaSetReference sets up a reference table, which points to a source + // table in another vschema. + rpc VSchemaSetReference(VSchemaSetReferenceRequest) returns (vtctldata.VSchemaSetReferenceResponse) {}; + // WorkflowDelete deletes a vreplication workflow. rpc WorkflowDelete(WorkflowDeleteRequest) returns (vtctldata.WorkflowDeleteResponse) {}; // WorkflowSwitchTraffic switches traffic for a VReplication workflow. @@ -1110,3 +1135,48 @@ message VExplainRequest { message VExplainResponse { string response = 1; } + +message VSchemaPublishRequest { + string cluster_id = 1; + vtctldata.VSchemaPublishRequest request = 2; +} + +message VSchemaAddVindexRequest { + string cluster_id = 1; + vtctldata.VSchemaAddVindexRequest request = 2; +} + +message VSchemaRemoveVindexRequest { + string cluster_id = 1; + vtctldata.VSchemaRemoveVindexRequest request = 2; +} + +message VSchemaAddLookupVindexRequest { + string cluster_id = 1; + vtctldata.VSchemaAddLookupVindexRequest request = 2; +} + +message VSchemaAddTablesRequest { + string cluster_id = 1; + vtctldata.VSchemaAddTablesRequest request = 2; +} + +message VSchemaRemoveTablesRequest { + string cluster_id = 1; + vtctldata.VSchemaRemoveTablesRequest request = 2; +} + +message VSchemaSetPrimaryVindexRequest { + string cluster_id = 1; + vtctldata.VSchemaSetPrimaryVindexRequest request = 2; +} + +message VSchemaSetSequenceRequest { + string cluster_id = 1; + vtctldata.VSchemaSetSequenceRequest request = 2; +} + +message VSchemaSetReferenceRequest { + string cluster_id = 1; + vtctldata.VSchemaSetReferenceRequest request = 2; +} \ No newline at end of file diff --git a/proto/vtctldata.proto b/proto/vtctldata.proto index eaeac441fbc..902dc001596 100644 --- a/proto/vtctldata.proto +++ b/proto/vtctldata.proto @@ -2130,6 +2130,125 @@ message VDiffStopRequest { message VDiffStopResponse { } +message VSchemaCreateRequest { + string v_schema_name = 1; + bool sharded = 2; + bool draft = 3; + string v_schema_json = 4; +} + +message VSchemaCreateResponse { +} + +message VSchemaGetRequest { + string v_schema_name = 1; + bool include_drafts = 2; +} + +message VSchemaGetResponse { + vschema.Keyspace v_schema = 1; +} + +message VSchemaUpdateRequest { + string v_schema_name = 1; + optional bool sharded = 2; + optional string foreign_key_mode = 3; + optional bool draft = 4; + + optional bool multi_tenant = 5; + optional string tenant_id_column_name = 6; + optional string tenant_id_column_type = 7; +} + +message VSchemaUpdateResponse { +} + +message VSchemaPublishRequest { + string v_schema_name = 1; +} + +message VSchemaPublishResponse { +} + +message VSchemaAddVindexRequest { + string v_schema_name = 1; + string vindex_name = 2; + string vindex_type = 3; + map params = 4; +} + +message VSchemaAddVindexResponse { +} + +message VSchemaRemoveVindexRequest { + string v_schema_name = 1; + string vindex_name = 2; +} + +message VSchemaRemoveVindexResponse { +} + +message VSchemaAddLookupVindexRequest { + string v_schema_name = 1; + string vindex_name = 2; + string lookup_vindex_type = 3; + string table_name = 4; + repeated string from_columns = 5; + string owner = 6; + bool ignore_nulls = 7; +} + +message VSchemaAddLookupVindexResponse { +} + +message VSchemaAddTablesRequest { + string v_schema_name = 1; + repeated string tables = 2; + string primary_vindex_name = 3; + repeated string columns = 4; + bool add_all = 5; +} + +message VSchemaAddTablesResponse { +} + +message VSchemaRemoveTablesRequest { + string v_schema_name = 1; + repeated string tables = 2; +} + +message VSchemaRemoveTablesResponse { +} + +message VSchemaSetPrimaryVindexRequest { + string v_schema_name = 1; + repeated string tables = 2; + string vindex_name = 3; + repeated string columns = 4; +} + +message VSchemaSetPrimaryVindexResponse { +} + +message VSchemaSetSequenceRequest { + string v_schema_name = 1; + string table_name = 2; + string column = 3; + string sequence_source = 4; +} + +message VSchemaSetSequenceResponse { +} + +message VSchemaSetReferenceRequest { + string v_schema_name = 1; + string table_name = 2; + string source = 3; +} + +message VSchemaSetReferenceResponse { +} + message WorkflowDeleteRequest { string keyspace = 1; string workflow = 2; diff --git a/proto/vtctlservice.proto b/proto/vtctlservice.proto index 1f07de4c523..74bdea2a480 100644 --- a/proto/vtctlservice.proto +++ b/proto/vtctlservice.proto @@ -371,6 +371,24 @@ service Vtctld { rpc VDiffResume(vtctldata.VDiffResumeRequest) returns (vtctldata.VDiffResumeResponse) {}; rpc VDiffShow(vtctldata.VDiffShowRequest) returns (vtctldata.VDiffShowResponse) {}; rpc VDiffStop(vtctldata.VDiffStopRequest) returns (vtctldata.VDiffStopResponse) {}; + + rpc VSchemaCreate(vtctldata.VSchemaCreateRequest) returns (vtctldata.VSchemaCreateResponse) {}; + rpc VSchemaGet(vtctldata.VSchemaGetRequest) returns (vtctldata.VSchemaGetResponse) {}; + rpc VSchemaUpdate(vtctldata.VSchemaUpdateRequest) returns (vtctldata.VSchemaUpdateResponse) {}; + rpc VSchemaPublish(vtctldata.VSchemaPublishRequest) returns (vtctldata.VSchemaPublishResponse) {}; + + rpc VSchemaAddVindex(vtctldata.VSchemaAddVindexRequest) returns (vtctldata.VSchemaAddVindexResponse) {}; + rpc VSchemaRemoveVindex(vtctldata.VSchemaRemoveVindexRequest) returns (vtctldata.VSchemaRemoveVindexResponse) {}; + rpc VSchemaAddLookupVindex(vtctldata.VSchemaAddLookupVindexRequest) returns (vtctldata.VSchemaAddLookupVindexResponse) {}; + + rpc VSchemaAddTables(vtctldata.VSchemaAddTablesRequest) returns (vtctldata.VSchemaAddTablesResponse) {}; + rpc VSchemaRemoveTables(vtctldata.VSchemaRemoveTablesRequest) returns (vtctldata.VSchemaRemoveTablesResponse) {}; + rpc VSchemaSetPrimaryVindex(vtctldata.VSchemaSetPrimaryVindexRequest) returns (vtctldata.VSchemaSetPrimaryVindexResponse) {}; + rpc VSchemaSetSequence(vtctldata.VSchemaSetSequenceRequest) returns (vtctldata.VSchemaSetSequenceResponse) {}; + // VSchemaSetReference sets up a reference table, which points to a source + // table in another vschema. + rpc VSchemaSetReference(vtctldata.VSchemaSetReferenceRequest) returns (vtctldata.VSchemaSetReferenceResponse) {}; + // WorkflowDelete deletes a vreplication workflow. rpc WorkflowDelete(vtctldata.WorkflowDeleteRequest) returns (vtctldata.WorkflowDeleteResponse) {}; rpc WorkflowStatus(vtctldata.WorkflowStatusRequest) returns (vtctldata.WorkflowStatusResponse) {}; diff --git a/web/vtadmin/src/proto/vtadmin.d.ts b/web/vtadmin/src/proto/vtadmin.d.ts index 49da5095c26..5459c54f28b 100644 --- a/web/vtadmin/src/proto/vtadmin.d.ts +++ b/web/vtadmin/src/proto/vtadmin.d.ts @@ -1017,6 +1017,132 @@ export namespace vtadmin { */ public vExplain(request: vtadmin.IVExplainRequest): Promise; + /** + * Calls VSchemaPublish. + * @param request VSchemaPublishRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VSchemaPublishResponse + */ + public vSchemaPublish(request: vtadmin.IVSchemaPublishRequest, callback: vtadmin.VTAdmin.VSchemaPublishCallback): void; + + /** + * Calls VSchemaPublish. + * @param request VSchemaPublishRequest message or plain object + * @returns Promise + */ + public vSchemaPublish(request: vtadmin.IVSchemaPublishRequest): Promise; + + /** + * Calls VSchemaAddVindex. + * @param request VSchemaAddVindexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VSchemaAddVindexResponse + */ + public vSchemaAddVindex(request: vtadmin.IVSchemaAddVindexRequest, callback: vtadmin.VTAdmin.VSchemaAddVindexCallback): void; + + /** + * Calls VSchemaAddVindex. + * @param request VSchemaAddVindexRequest message or plain object + * @returns Promise + */ + public vSchemaAddVindex(request: vtadmin.IVSchemaAddVindexRequest): Promise; + + /** + * Calls VSchemaRemoveVindex. + * @param request VSchemaRemoveVindexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VSchemaRemoveVindexResponse + */ + public vSchemaRemoveVindex(request: vtadmin.IVSchemaRemoveVindexRequest, callback: vtadmin.VTAdmin.VSchemaRemoveVindexCallback): void; + + /** + * Calls VSchemaRemoveVindex. + * @param request VSchemaRemoveVindexRequest message or plain object + * @returns Promise + */ + public vSchemaRemoveVindex(request: vtadmin.IVSchemaRemoveVindexRequest): Promise; + + /** + * Calls VSchemaAddLookupVindex. + * @param request VSchemaAddLookupVindexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VSchemaAddLookupVindexResponse + */ + public vSchemaAddLookupVindex(request: vtadmin.IVSchemaAddLookupVindexRequest, callback: vtadmin.VTAdmin.VSchemaAddLookupVindexCallback): void; + + /** + * Calls VSchemaAddLookupVindex. + * @param request VSchemaAddLookupVindexRequest message or plain object + * @returns Promise + */ + public vSchemaAddLookupVindex(request: vtadmin.IVSchemaAddLookupVindexRequest): Promise; + + /** + * Calls VSchemaAddTables. + * @param request VSchemaAddTablesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VSchemaAddTablesResponse + */ + public vSchemaAddTables(request: vtadmin.IVSchemaAddTablesRequest, callback: vtadmin.VTAdmin.VSchemaAddTablesCallback): void; + + /** + * Calls VSchemaAddTables. + * @param request VSchemaAddTablesRequest message or plain object + * @returns Promise + */ + public vSchemaAddTables(request: vtadmin.IVSchemaAddTablesRequest): Promise; + + /** + * Calls VSchemaRemoveTables. + * @param request VSchemaRemoveTablesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VSchemaRemoveTablesResponse + */ + public vSchemaRemoveTables(request: vtadmin.IVSchemaRemoveTablesRequest, callback: vtadmin.VTAdmin.VSchemaRemoveTablesCallback): void; + + /** + * Calls VSchemaRemoveTables. + * @param request VSchemaRemoveTablesRequest message or plain object + * @returns Promise + */ + public vSchemaRemoveTables(request: vtadmin.IVSchemaRemoveTablesRequest): Promise; + + /** + * Calls VSchemaSetPrimaryVindex. + * @param request VSchemaSetPrimaryVindexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VSchemaSetPrimaryVindexResponse + */ + public vSchemaSetPrimaryVindex(request: vtadmin.IVSchemaSetPrimaryVindexRequest, callback: vtadmin.VTAdmin.VSchemaSetPrimaryVindexCallback): void; + + /** + * Calls VSchemaSetPrimaryVindex. + * @param request VSchemaSetPrimaryVindexRequest message or plain object + * @returns Promise + */ + public vSchemaSetPrimaryVindex(request: vtadmin.IVSchemaSetPrimaryVindexRequest): Promise; + + /** + * Calls VSchemaSetSequence. + * @param request VSchemaSetSequenceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VSchemaSetSequenceResponse + */ + public vSchemaSetSequence(request: vtadmin.IVSchemaSetSequenceRequest, callback: vtadmin.VTAdmin.VSchemaSetSequenceCallback): void; + + /** + * Calls VSchemaSetSequence. + * @param request VSchemaSetSequenceRequest message or plain object + * @returns Promise + */ + public vSchemaSetSequence(request: vtadmin.IVSchemaSetSequenceRequest): Promise; + + /** + * Calls VSchemaSetReference. + * @param request VSchemaSetReferenceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VSchemaSetReferenceResponse + */ + public vSchemaSetReference(request: vtadmin.IVSchemaSetReferenceRequest, callback: vtadmin.VTAdmin.VSchemaSetReferenceCallback): void; + + /** + * Calls VSchemaSetReference. + * @param request VSchemaSetReferenceRequest message or plain object + * @returns Promise + */ + public vSchemaSetReference(request: vtadmin.IVSchemaSetReferenceRequest): Promise; + /** * Calls WorkflowDelete. * @param request WorkflowDeleteRequest message or plain object @@ -1545,6 +1671,69 @@ export namespace vtadmin { */ type VExplainCallback = (error: (Error|null), response?: vtadmin.VExplainResponse) => void; + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaPublish}. + * @param error Error, if any + * @param [response] VSchemaPublishResponse + */ + type VSchemaPublishCallback = (error: (Error|null), response?: vtctldata.VSchemaPublishResponse) => void; + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaAddVindex}. + * @param error Error, if any + * @param [response] VSchemaAddVindexResponse + */ + type VSchemaAddVindexCallback = (error: (Error|null), response?: vtctldata.VSchemaAddVindexResponse) => void; + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaRemoveVindex}. + * @param error Error, if any + * @param [response] VSchemaRemoveVindexResponse + */ + type VSchemaRemoveVindexCallback = (error: (Error|null), response?: vtctldata.VSchemaRemoveVindexResponse) => void; + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaAddLookupVindex}. + * @param error Error, if any + * @param [response] VSchemaAddLookupVindexResponse + */ + type VSchemaAddLookupVindexCallback = (error: (Error|null), response?: vtctldata.VSchemaAddLookupVindexResponse) => void; + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaAddTables}. + * @param error Error, if any + * @param [response] VSchemaAddTablesResponse + */ + type VSchemaAddTablesCallback = (error: (Error|null), response?: vtctldata.VSchemaAddTablesResponse) => void; + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaRemoveTables}. + * @param error Error, if any + * @param [response] VSchemaRemoveTablesResponse + */ + type VSchemaRemoveTablesCallback = (error: (Error|null), response?: vtctldata.VSchemaRemoveTablesResponse) => void; + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaSetPrimaryVindex}. + * @param error Error, if any + * @param [response] VSchemaSetPrimaryVindexResponse + */ + type VSchemaSetPrimaryVindexCallback = (error: (Error|null), response?: vtctldata.VSchemaSetPrimaryVindexResponse) => void; + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaSetSequence}. + * @param error Error, if any + * @param [response] VSchemaSetSequenceResponse + */ + type VSchemaSetSequenceCallback = (error: (Error|null), response?: vtctldata.VSchemaSetSequenceResponse) => void; + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaSetReference}. + * @param error Error, if any + * @param [response] VSchemaSetReferenceResponse + */ + type VSchemaSetReferenceCallback = (error: (Error|null), response?: vtctldata.VSchemaSetReferenceResponse) => void; + /** * Callback as used by {@link vtadmin.VTAdmin#workflowDelete}. * @param error Error, if any @@ -15608,4517 +15797,4232 @@ export namespace vtadmin { */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} - -/** Namespace logutil. */ -export namespace logutil { - - /** Level enum. */ - enum Level { - INFO = 0, - WARNING = 1, - ERROR = 2, - CONSOLE = 3 - } - - /** Properties of an Event. */ - interface IEvent { - - /** Event time */ - time?: (vttime.ITime|null); - - /** Event level */ - level?: (logutil.Level|null); - /** Event file */ - file?: (string|null); + /** Properties of a VSchemaPublishRequest. */ + interface IVSchemaPublishRequest { - /** Event line */ - line?: (number|Long|null); + /** VSchemaPublishRequest cluster_id */ + cluster_id?: (string|null); - /** Event value */ - value?: (string|null); + /** VSchemaPublishRequest request */ + request?: (vtctldata.IVSchemaPublishRequest|null); } - /** Represents an Event. */ - class Event implements IEvent { + /** Represents a VSchemaPublishRequest. */ + class VSchemaPublishRequest implements IVSchemaPublishRequest { /** - * Constructs a new Event. + * Constructs a new VSchemaPublishRequest. * @param [properties] Properties to set */ - constructor(properties?: logutil.IEvent); - - /** Event time. */ - public time?: (vttime.ITime|null); - - /** Event level. */ - public level: logutil.Level; - - /** Event file. */ - public file: string; + constructor(properties?: vtadmin.IVSchemaPublishRequest); - /** Event line. */ - public line: (number|Long); + /** VSchemaPublishRequest cluster_id. */ + public cluster_id: string; - /** Event value. */ - public value: string; + /** VSchemaPublishRequest request. */ + public request?: (vtctldata.IVSchemaPublishRequest|null); /** - * Creates a new Event instance using the specified properties. + * Creates a new VSchemaPublishRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Event instance + * @returns VSchemaPublishRequest instance */ - public static create(properties?: logutil.IEvent): logutil.Event; + public static create(properties?: vtadmin.IVSchemaPublishRequest): vtadmin.VSchemaPublishRequest; /** - * Encodes the specified Event message. Does not implicitly {@link logutil.Event.verify|verify} messages. - * @param message Event message or plain object to encode + * Encodes the specified VSchemaPublishRequest message. Does not implicitly {@link vtadmin.VSchemaPublishRequest.verify|verify} messages. + * @param message VSchemaPublishRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: logutil.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtadmin.IVSchemaPublishRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Event message, length delimited. Does not implicitly {@link logutil.Event.verify|verify} messages. - * @param message Event message or plain object to encode + * Encodes the specified VSchemaPublishRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaPublishRequest.verify|verify} messages. + * @param message VSchemaPublishRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: logutil.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtadmin.IVSchemaPublishRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Event message from the specified reader or buffer. + * Decodes a VSchemaPublishRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Event + * @returns VSchemaPublishRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): logutil.Event; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.VSchemaPublishRequest; /** - * Decodes an Event message from the specified reader or buffer, length delimited. + * Decodes a VSchemaPublishRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Event + * @returns VSchemaPublishRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): logutil.Event; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.VSchemaPublishRequest; /** - * Verifies an Event message. + * Verifies a VSchemaPublishRequest message. * @param message Plain 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 Event message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaPublishRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Event + * @returns VSchemaPublishRequest */ - public static fromObject(object: { [k: string]: any }): logutil.Event; + public static fromObject(object: { [k: string]: any }): vtadmin.VSchemaPublishRequest; /** - * Creates a plain object from an Event message. Also converts values to other types if specified. - * @param message Event + * Creates a plain object from a VSchemaPublishRequest message. Also converts values to other types if specified. + * @param message VSchemaPublishRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: logutil.Event, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtadmin.VSchemaPublishRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Event to JSON. + * Converts this VSchemaPublishRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Event + * Gets the default type url for VSchemaPublishRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} - -/** Namespace vttime. */ -export namespace vttime { - /** Properties of a Time. */ - interface ITime { + /** Properties of a VSchemaAddVindexRequest. */ + interface IVSchemaAddVindexRequest { - /** Time seconds */ - seconds?: (number|Long|null); + /** VSchemaAddVindexRequest cluster_id */ + cluster_id?: (string|null); - /** Time nanoseconds */ - nanoseconds?: (number|null); + /** VSchemaAddVindexRequest request */ + request?: (vtctldata.IVSchemaAddVindexRequest|null); } - /** Represents a Time. */ - class Time implements ITime { + /** Represents a VSchemaAddVindexRequest. */ + class VSchemaAddVindexRequest implements IVSchemaAddVindexRequest { /** - * Constructs a new Time. + * Constructs a new VSchemaAddVindexRequest. * @param [properties] Properties to set */ - constructor(properties?: vttime.ITime); + constructor(properties?: vtadmin.IVSchemaAddVindexRequest); - /** Time seconds. */ - public seconds: (number|Long); + /** VSchemaAddVindexRequest cluster_id. */ + public cluster_id: string; - /** Time nanoseconds. */ - public nanoseconds: number; + /** VSchemaAddVindexRequest request. */ + public request?: (vtctldata.IVSchemaAddVindexRequest|null); /** - * Creates a new Time instance using the specified properties. + * Creates a new VSchemaAddVindexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Time instance + * @returns VSchemaAddVindexRequest instance */ - public static create(properties?: vttime.ITime): vttime.Time; + public static create(properties?: vtadmin.IVSchemaAddVindexRequest): vtadmin.VSchemaAddVindexRequest; /** - * Encodes the specified Time message. Does not implicitly {@link vttime.Time.verify|verify} messages. - * @param message Time message or plain object to encode + * Encodes the specified VSchemaAddVindexRequest message. Does not implicitly {@link vtadmin.VSchemaAddVindexRequest.verify|verify} messages. + * @param message VSchemaAddVindexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vttime.ITime, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtadmin.IVSchemaAddVindexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Time message, length delimited. Does not implicitly {@link vttime.Time.verify|verify} messages. - * @param message Time message or plain object to encode + * Encodes the specified VSchemaAddVindexRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaAddVindexRequest.verify|verify} messages. + * @param message VSchemaAddVindexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vttime.ITime, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtadmin.IVSchemaAddVindexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Time message from the specified reader or buffer. + * Decodes a VSchemaAddVindexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Time + * @returns VSchemaAddVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vttime.Time; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.VSchemaAddVindexRequest; /** - * Decodes a Time message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddVindexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Time + * @returns VSchemaAddVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vttime.Time; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.VSchemaAddVindexRequest; /** - * Verifies a Time message. + * Verifies a VSchemaAddVindexRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Time message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaAddVindexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Time + * @returns VSchemaAddVindexRequest */ - public static fromObject(object: { [k: string]: any }): vttime.Time; + public static fromObject(object: { [k: string]: any }): vtadmin.VSchemaAddVindexRequest; /** - * Creates a plain object from a Time message. Also converts values to other types if specified. - * @param message Time + * Creates a plain object from a VSchemaAddVindexRequest message. Also converts values to other types if specified. + * @param message VSchemaAddVindexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vttime.Time, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtadmin.VSchemaAddVindexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Time to JSON. + * Converts this VSchemaAddVindexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Time + * Gets the default type url for VSchemaAddVindexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Duration. */ - interface IDuration { + /** Properties of a VSchemaRemoveVindexRequest. */ + interface IVSchemaRemoveVindexRequest { - /** Duration seconds */ - seconds?: (number|Long|null); + /** VSchemaRemoveVindexRequest cluster_id */ + cluster_id?: (string|null); - /** Duration nanos */ - nanos?: (number|null); + /** VSchemaRemoveVindexRequest request */ + request?: (vtctldata.IVSchemaRemoveVindexRequest|null); } - /** Represents a Duration. */ - class Duration implements IDuration { + /** Represents a VSchemaRemoveVindexRequest. */ + class VSchemaRemoveVindexRequest implements IVSchemaRemoveVindexRequest { /** - * Constructs a new Duration. + * Constructs a new VSchemaRemoveVindexRequest. * @param [properties] Properties to set */ - constructor(properties?: vttime.IDuration); + constructor(properties?: vtadmin.IVSchemaRemoveVindexRequest); - /** Duration seconds. */ - public seconds: (number|Long); + /** VSchemaRemoveVindexRequest cluster_id. */ + public cluster_id: string; - /** Duration nanos. */ - public nanos: number; + /** VSchemaRemoveVindexRequest request. */ + public request?: (vtctldata.IVSchemaRemoveVindexRequest|null); /** - * Creates a new Duration instance using the specified properties. + * Creates a new VSchemaRemoveVindexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Duration instance + * @returns VSchemaRemoveVindexRequest instance */ - public static create(properties?: vttime.IDuration): vttime.Duration; + public static create(properties?: vtadmin.IVSchemaRemoveVindexRequest): vtadmin.VSchemaRemoveVindexRequest; /** - * Encodes the specified Duration message. Does not implicitly {@link vttime.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode + * Encodes the specified VSchemaRemoveVindexRequest message. Does not implicitly {@link vtadmin.VSchemaRemoveVindexRequest.verify|verify} messages. + * @param message VSchemaRemoveVindexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vttime.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtadmin.IVSchemaRemoveVindexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link vttime.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode + * Encodes the specified VSchemaRemoveVindexRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaRemoveVindexRequest.verify|verify} messages. + * @param message VSchemaRemoveVindexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vttime.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtadmin.IVSchemaRemoveVindexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Duration message from the specified reader or buffer. + * Decodes a VSchemaRemoveVindexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Duration + * @returns VSchemaRemoveVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vttime.Duration; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.VSchemaRemoveVindexRequest; /** - * Decodes a Duration message from the specified reader or buffer, length delimited. + * Decodes a VSchemaRemoveVindexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Duration + * @returns VSchemaRemoveVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vttime.Duration; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.VSchemaRemoveVindexRequest; /** - * Verifies a Duration message. + * Verifies a VSchemaRemoveVindexRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaRemoveVindexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Duration + * @returns VSchemaRemoveVindexRequest */ - public static fromObject(object: { [k: string]: any }): vttime.Duration; + public static fromObject(object: { [k: string]: any }): vtadmin.VSchemaRemoveVindexRequest; /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. - * @param message Duration + * Creates a plain object from a VSchemaRemoveVindexRequest message. Also converts values to other types if specified. + * @param message VSchemaRemoveVindexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vttime.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtadmin.VSchemaRemoveVindexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Duration to JSON. + * Converts this VSchemaRemoveVindexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Duration + * Gets the default type url for VSchemaRemoveVindexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} -/** Namespace mysqlctl. */ -export namespace mysqlctl { + /** Properties of a VSchemaAddLookupVindexRequest. */ + interface IVSchemaAddLookupVindexRequest { - /** Properties of a StartRequest. */ - interface IStartRequest { + /** VSchemaAddLookupVindexRequest cluster_id */ + cluster_id?: (string|null); - /** StartRequest mysqld_args */ - mysqld_args?: (string[]|null); + /** VSchemaAddLookupVindexRequest request */ + request?: (vtctldata.IVSchemaAddLookupVindexRequest|null); } - /** Represents a StartRequest. */ - class StartRequest implements IStartRequest { + /** Represents a VSchemaAddLookupVindexRequest. */ + class VSchemaAddLookupVindexRequest implements IVSchemaAddLookupVindexRequest { /** - * Constructs a new StartRequest. + * Constructs a new VSchemaAddLookupVindexRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IStartRequest); + constructor(properties?: vtadmin.IVSchemaAddLookupVindexRequest); - /** StartRequest mysqld_args. */ - public mysqld_args: string[]; + /** VSchemaAddLookupVindexRequest cluster_id. */ + public cluster_id: string; + + /** VSchemaAddLookupVindexRequest request. */ + public request?: (vtctldata.IVSchemaAddLookupVindexRequest|null); /** - * Creates a new StartRequest instance using the specified properties. + * Creates a new VSchemaAddLookupVindexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StartRequest instance + * @returns VSchemaAddLookupVindexRequest instance */ - public static create(properties?: mysqlctl.IStartRequest): mysqlctl.StartRequest; + public static create(properties?: vtadmin.IVSchemaAddLookupVindexRequest): vtadmin.VSchemaAddLookupVindexRequest; /** - * Encodes the specified StartRequest message. Does not implicitly {@link mysqlctl.StartRequest.verify|verify} messages. - * @param message StartRequest message or plain object to encode + * Encodes the specified VSchemaAddLookupVindexRequest message. Does not implicitly {@link vtadmin.VSchemaAddLookupVindexRequest.verify|verify} messages. + * @param message VSchemaAddLookupVindexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IStartRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtadmin.IVSchemaAddLookupVindexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StartRequest message, length delimited. Does not implicitly {@link mysqlctl.StartRequest.verify|verify} messages. - * @param message StartRequest message or plain object to encode + * Encodes the specified VSchemaAddLookupVindexRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaAddLookupVindexRequest.verify|verify} messages. + * @param message VSchemaAddLookupVindexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IStartRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtadmin.IVSchemaAddLookupVindexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartRequest message from the specified reader or buffer. + * Decodes a VSchemaAddLookupVindexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StartRequest + * @returns VSchemaAddLookupVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.StartRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.VSchemaAddLookupVindexRequest; /** - * Decodes a StartRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddLookupVindexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartRequest + * @returns VSchemaAddLookupVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.StartRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.VSchemaAddLookupVindexRequest; /** - * Verifies a StartRequest message. + * Verifies a VSchemaAddLookupVindexRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StartRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaAddLookupVindexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartRequest + * @returns VSchemaAddLookupVindexRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.StartRequest; + public static fromObject(object: { [k: string]: any }): vtadmin.VSchemaAddLookupVindexRequest; /** - * Creates a plain object from a StartRequest message. Also converts values to other types if specified. - * @param message StartRequest + * Creates a plain object from a VSchemaAddLookupVindexRequest message. Also converts values to other types if specified. + * @param message VSchemaAddLookupVindexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.StartRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtadmin.VSchemaAddLookupVindexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartRequest to JSON. + * Converts this VSchemaAddLookupVindexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StartRequest + * Gets the default type url for VSchemaAddLookupVindexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StartResponse. */ - interface IStartResponse { + /** Properties of a VSchemaAddTablesRequest. */ + interface IVSchemaAddTablesRequest { + + /** VSchemaAddTablesRequest cluster_id */ + cluster_id?: (string|null); + + /** VSchemaAddTablesRequest request */ + request?: (vtctldata.IVSchemaAddTablesRequest|null); } - /** Represents a StartResponse. */ - class StartResponse implements IStartResponse { + /** Represents a VSchemaAddTablesRequest. */ + class VSchemaAddTablesRequest implements IVSchemaAddTablesRequest { /** - * Constructs a new StartResponse. + * Constructs a new VSchemaAddTablesRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IStartResponse); + constructor(properties?: vtadmin.IVSchemaAddTablesRequest); + + /** VSchemaAddTablesRequest cluster_id. */ + public cluster_id: string; + + /** VSchemaAddTablesRequest request. */ + public request?: (vtctldata.IVSchemaAddTablesRequest|null); /** - * Creates a new StartResponse instance using the specified properties. + * Creates a new VSchemaAddTablesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StartResponse instance + * @returns VSchemaAddTablesRequest instance */ - public static create(properties?: mysqlctl.IStartResponse): mysqlctl.StartResponse; + public static create(properties?: vtadmin.IVSchemaAddTablesRequest): vtadmin.VSchemaAddTablesRequest; /** - * Encodes the specified StartResponse message. Does not implicitly {@link mysqlctl.StartResponse.verify|verify} messages. - * @param message StartResponse message or plain object to encode + * Encodes the specified VSchemaAddTablesRequest message. Does not implicitly {@link vtadmin.VSchemaAddTablesRequest.verify|verify} messages. + * @param message VSchemaAddTablesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IStartResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtadmin.IVSchemaAddTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StartResponse message, length delimited. Does not implicitly {@link mysqlctl.StartResponse.verify|verify} messages. - * @param message StartResponse message or plain object to encode + * Encodes the specified VSchemaAddTablesRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaAddTablesRequest.verify|verify} messages. + * @param message VSchemaAddTablesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IStartResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtadmin.IVSchemaAddTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartResponse message from the specified reader or buffer. + * Decodes a VSchemaAddTablesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StartResponse + * @returns VSchemaAddTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.StartResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.VSchemaAddTablesRequest; /** - * Decodes a StartResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddTablesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartResponse + * @returns VSchemaAddTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.StartResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.VSchemaAddTablesRequest; /** - * Verifies a StartResponse message. + * Verifies a VSchemaAddTablesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StartResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaAddTablesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartResponse + * @returns VSchemaAddTablesRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.StartResponse; + public static fromObject(object: { [k: string]: any }): vtadmin.VSchemaAddTablesRequest; /** - * Creates a plain object from a StartResponse message. Also converts values to other types if specified. - * @param message StartResponse + * Creates a plain object from a VSchemaAddTablesRequest message. Also converts values to other types if specified. + * @param message VSchemaAddTablesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.StartResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtadmin.VSchemaAddTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartResponse to JSON. + * Converts this VSchemaAddTablesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StartResponse + * Gets the default type url for VSchemaAddTablesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ShutdownRequest. */ - interface IShutdownRequest { + /** Properties of a VSchemaRemoveTablesRequest. */ + interface IVSchemaRemoveTablesRequest { - /** ShutdownRequest wait_for_mysqld */ - wait_for_mysqld?: (boolean|null); + /** VSchemaRemoveTablesRequest cluster_id */ + cluster_id?: (string|null); - /** ShutdownRequest mysql_shutdown_timeout */ - mysql_shutdown_timeout?: (vttime.IDuration|null); + /** VSchemaRemoveTablesRequest request */ + request?: (vtctldata.IVSchemaRemoveTablesRequest|null); } - /** Represents a ShutdownRequest. */ - class ShutdownRequest implements IShutdownRequest { + /** Represents a VSchemaRemoveTablesRequest. */ + class VSchemaRemoveTablesRequest implements IVSchemaRemoveTablesRequest { /** - * Constructs a new ShutdownRequest. + * Constructs a new VSchemaRemoveTablesRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IShutdownRequest); + constructor(properties?: vtadmin.IVSchemaRemoveTablesRequest); - /** ShutdownRequest wait_for_mysqld. */ - public wait_for_mysqld: boolean; + /** VSchemaRemoveTablesRequest cluster_id. */ + public cluster_id: string; - /** ShutdownRequest mysql_shutdown_timeout. */ - public mysql_shutdown_timeout?: (vttime.IDuration|null); + /** VSchemaRemoveTablesRequest request. */ + public request?: (vtctldata.IVSchemaRemoveTablesRequest|null); /** - * Creates a new ShutdownRequest instance using the specified properties. + * Creates a new VSchemaRemoveTablesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ShutdownRequest instance + * @returns VSchemaRemoveTablesRequest instance */ - public static create(properties?: mysqlctl.IShutdownRequest): mysqlctl.ShutdownRequest; + public static create(properties?: vtadmin.IVSchemaRemoveTablesRequest): vtadmin.VSchemaRemoveTablesRequest; /** - * Encodes the specified ShutdownRequest message. Does not implicitly {@link mysqlctl.ShutdownRequest.verify|verify} messages. - * @param message ShutdownRequest message or plain object to encode + * Encodes the specified VSchemaRemoveTablesRequest message. Does not implicitly {@link vtadmin.VSchemaRemoveTablesRequest.verify|verify} messages. + * @param message VSchemaRemoveTablesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IShutdownRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtadmin.IVSchemaRemoveTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ShutdownRequest message, length delimited. Does not implicitly {@link mysqlctl.ShutdownRequest.verify|verify} messages. - * @param message ShutdownRequest message or plain object to encode + * Encodes the specified VSchemaRemoveTablesRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaRemoveTablesRequest.verify|verify} messages. + * @param message VSchemaRemoveTablesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IShutdownRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtadmin.IVSchemaRemoveTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShutdownRequest message from the specified reader or buffer. + * Decodes a VSchemaRemoveTablesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShutdownRequest + * @returns VSchemaRemoveTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ShutdownRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.VSchemaRemoveTablesRequest; /** - * Decodes a ShutdownRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaRemoveTablesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShutdownRequest + * @returns VSchemaRemoveTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ShutdownRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.VSchemaRemoveTablesRequest; /** - * Verifies a ShutdownRequest message. + * Verifies a VSchemaRemoveTablesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ShutdownRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaRemoveTablesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShutdownRequest + * @returns VSchemaRemoveTablesRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.ShutdownRequest; + public static fromObject(object: { [k: string]: any }): vtadmin.VSchemaRemoveTablesRequest; /** - * Creates a plain object from a ShutdownRequest message. Also converts values to other types if specified. - * @param message ShutdownRequest + * Creates a plain object from a VSchemaRemoveTablesRequest message. Also converts values to other types if specified. + * @param message VSchemaRemoveTablesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.ShutdownRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtadmin.VSchemaRemoveTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShutdownRequest to JSON. + * Converts this VSchemaRemoveTablesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShutdownRequest + * Gets the default type url for VSchemaRemoveTablesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ShutdownResponse. */ - interface IShutdownResponse { + /** Properties of a VSchemaSetPrimaryVindexRequest. */ + interface IVSchemaSetPrimaryVindexRequest { + + /** VSchemaSetPrimaryVindexRequest cluster_id */ + cluster_id?: (string|null); + + /** VSchemaSetPrimaryVindexRequest request */ + request?: (vtctldata.IVSchemaSetPrimaryVindexRequest|null); } - /** Represents a ShutdownResponse. */ - class ShutdownResponse implements IShutdownResponse { + /** Represents a VSchemaSetPrimaryVindexRequest. */ + class VSchemaSetPrimaryVindexRequest implements IVSchemaSetPrimaryVindexRequest { /** - * Constructs a new ShutdownResponse. + * Constructs a new VSchemaSetPrimaryVindexRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IShutdownResponse); + constructor(properties?: vtadmin.IVSchemaSetPrimaryVindexRequest); + + /** VSchemaSetPrimaryVindexRequest cluster_id. */ + public cluster_id: string; + + /** VSchemaSetPrimaryVindexRequest request. */ + public request?: (vtctldata.IVSchemaSetPrimaryVindexRequest|null); /** - * Creates a new ShutdownResponse instance using the specified properties. + * Creates a new VSchemaSetPrimaryVindexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ShutdownResponse instance + * @returns VSchemaSetPrimaryVindexRequest instance */ - public static create(properties?: mysqlctl.IShutdownResponse): mysqlctl.ShutdownResponse; + public static create(properties?: vtadmin.IVSchemaSetPrimaryVindexRequest): vtadmin.VSchemaSetPrimaryVindexRequest; /** - * Encodes the specified ShutdownResponse message. Does not implicitly {@link mysqlctl.ShutdownResponse.verify|verify} messages. - * @param message ShutdownResponse message or plain object to encode + * Encodes the specified VSchemaSetPrimaryVindexRequest message. Does not implicitly {@link vtadmin.VSchemaSetPrimaryVindexRequest.verify|verify} messages. + * @param message VSchemaSetPrimaryVindexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IShutdownResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtadmin.IVSchemaSetPrimaryVindexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ShutdownResponse message, length delimited. Does not implicitly {@link mysqlctl.ShutdownResponse.verify|verify} messages. - * @param message ShutdownResponse message or plain object to encode + * Encodes the specified VSchemaSetPrimaryVindexRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaSetPrimaryVindexRequest.verify|verify} messages. + * @param message VSchemaSetPrimaryVindexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IShutdownResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtadmin.IVSchemaSetPrimaryVindexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShutdownResponse message from the specified reader or buffer. + * Decodes a VSchemaSetPrimaryVindexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShutdownResponse + * @returns VSchemaSetPrimaryVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ShutdownResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.VSchemaSetPrimaryVindexRequest; /** - * Decodes a ShutdownResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetPrimaryVindexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShutdownResponse + * @returns VSchemaSetPrimaryVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ShutdownResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.VSchemaSetPrimaryVindexRequest; /** - * Verifies a ShutdownResponse message. + * Verifies a VSchemaSetPrimaryVindexRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ShutdownResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaSetPrimaryVindexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShutdownResponse + * @returns VSchemaSetPrimaryVindexRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.ShutdownResponse; + public static fromObject(object: { [k: string]: any }): vtadmin.VSchemaSetPrimaryVindexRequest; /** - * Creates a plain object from a ShutdownResponse message. Also converts values to other types if specified. - * @param message ShutdownResponse + * Creates a plain object from a VSchemaSetPrimaryVindexRequest message. Also converts values to other types if specified. + * @param message VSchemaSetPrimaryVindexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.ShutdownResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtadmin.VSchemaSetPrimaryVindexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShutdownResponse to JSON. + * Converts this VSchemaSetPrimaryVindexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShutdownResponse + * Gets the default type url for VSchemaSetPrimaryVindexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RunMysqlUpgradeRequest. */ - interface IRunMysqlUpgradeRequest { + /** Properties of a VSchemaSetSequenceRequest. */ + interface IVSchemaSetSequenceRequest { + + /** VSchemaSetSequenceRequest cluster_id */ + cluster_id?: (string|null); + + /** VSchemaSetSequenceRequest request */ + request?: (vtctldata.IVSchemaSetSequenceRequest|null); } - /** Represents a RunMysqlUpgradeRequest. */ - class RunMysqlUpgradeRequest implements IRunMysqlUpgradeRequest { + /** Represents a VSchemaSetSequenceRequest. */ + class VSchemaSetSequenceRequest implements IVSchemaSetSequenceRequest { /** - * Constructs a new RunMysqlUpgradeRequest. + * Constructs a new VSchemaSetSequenceRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IRunMysqlUpgradeRequest); + constructor(properties?: vtadmin.IVSchemaSetSequenceRequest); + + /** VSchemaSetSequenceRequest cluster_id. */ + public cluster_id: string; + + /** VSchemaSetSequenceRequest request. */ + public request?: (vtctldata.IVSchemaSetSequenceRequest|null); /** - * Creates a new RunMysqlUpgradeRequest instance using the specified properties. + * Creates a new VSchemaSetSequenceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RunMysqlUpgradeRequest instance + * @returns VSchemaSetSequenceRequest instance */ - public static create(properties?: mysqlctl.IRunMysqlUpgradeRequest): mysqlctl.RunMysqlUpgradeRequest; + public static create(properties?: vtadmin.IVSchemaSetSequenceRequest): vtadmin.VSchemaSetSequenceRequest; /** - * Encodes the specified RunMysqlUpgradeRequest message. Does not implicitly {@link mysqlctl.RunMysqlUpgradeRequest.verify|verify} messages. - * @param message RunMysqlUpgradeRequest message or plain object to encode + * Encodes the specified VSchemaSetSequenceRequest message. Does not implicitly {@link vtadmin.VSchemaSetSequenceRequest.verify|verify} messages. + * @param message VSchemaSetSequenceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IRunMysqlUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtadmin.IVSchemaSetSequenceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunMysqlUpgradeRequest message, length delimited. Does not implicitly {@link mysqlctl.RunMysqlUpgradeRequest.verify|verify} messages. - * @param message RunMysqlUpgradeRequest message or plain object to encode + * Encodes the specified VSchemaSetSequenceRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaSetSequenceRequest.verify|verify} messages. + * @param message VSchemaSetSequenceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IRunMysqlUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtadmin.IVSchemaSetSequenceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunMysqlUpgradeRequest message from the specified reader or buffer. + * Decodes a VSchemaSetSequenceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunMysqlUpgradeRequest + * @returns VSchemaSetSequenceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.RunMysqlUpgradeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.VSchemaSetSequenceRequest; /** - * Decodes a RunMysqlUpgradeRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetSequenceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunMysqlUpgradeRequest + * @returns VSchemaSetSequenceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.RunMysqlUpgradeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.VSchemaSetSequenceRequest; /** - * Verifies a RunMysqlUpgradeRequest message. + * Verifies a VSchemaSetSequenceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunMysqlUpgradeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaSetSequenceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunMysqlUpgradeRequest + * @returns VSchemaSetSequenceRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.RunMysqlUpgradeRequest; + public static fromObject(object: { [k: string]: any }): vtadmin.VSchemaSetSequenceRequest; /** - * Creates a plain object from a RunMysqlUpgradeRequest message. Also converts values to other types if specified. - * @param message RunMysqlUpgradeRequest + * Creates a plain object from a VSchemaSetSequenceRequest message. Also converts values to other types if specified. + * @param message VSchemaSetSequenceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.RunMysqlUpgradeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtadmin.VSchemaSetSequenceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunMysqlUpgradeRequest to JSON. + * Converts this VSchemaSetSequenceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RunMysqlUpgradeRequest + * Gets the default type url for VSchemaSetSequenceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RunMysqlUpgradeResponse. */ - interface IRunMysqlUpgradeResponse { + /** Properties of a VSchemaSetReferenceRequest. */ + interface IVSchemaSetReferenceRequest { + + /** VSchemaSetReferenceRequest cluster_id */ + cluster_id?: (string|null); + + /** VSchemaSetReferenceRequest request */ + request?: (vtctldata.IVSchemaSetReferenceRequest|null); } - /** Represents a RunMysqlUpgradeResponse. */ - class RunMysqlUpgradeResponse implements IRunMysqlUpgradeResponse { + /** Represents a VSchemaSetReferenceRequest. */ + class VSchemaSetReferenceRequest implements IVSchemaSetReferenceRequest { /** - * Constructs a new RunMysqlUpgradeResponse. + * Constructs a new VSchemaSetReferenceRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IRunMysqlUpgradeResponse); + constructor(properties?: vtadmin.IVSchemaSetReferenceRequest); + + /** VSchemaSetReferenceRequest cluster_id. */ + public cluster_id: string; + + /** VSchemaSetReferenceRequest request. */ + public request?: (vtctldata.IVSchemaSetReferenceRequest|null); /** - * Creates a new RunMysqlUpgradeResponse instance using the specified properties. + * Creates a new VSchemaSetReferenceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RunMysqlUpgradeResponse instance + * @returns VSchemaSetReferenceRequest instance */ - public static create(properties?: mysqlctl.IRunMysqlUpgradeResponse): mysqlctl.RunMysqlUpgradeResponse; + public static create(properties?: vtadmin.IVSchemaSetReferenceRequest): vtadmin.VSchemaSetReferenceRequest; /** - * Encodes the specified RunMysqlUpgradeResponse message. Does not implicitly {@link mysqlctl.RunMysqlUpgradeResponse.verify|verify} messages. - * @param message RunMysqlUpgradeResponse message or plain object to encode + * Encodes the specified VSchemaSetReferenceRequest message. Does not implicitly {@link vtadmin.VSchemaSetReferenceRequest.verify|verify} messages. + * @param message VSchemaSetReferenceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IRunMysqlUpgradeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtadmin.IVSchemaSetReferenceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunMysqlUpgradeResponse message, length delimited. Does not implicitly {@link mysqlctl.RunMysqlUpgradeResponse.verify|verify} messages. - * @param message RunMysqlUpgradeResponse message or plain object to encode + * Encodes the specified VSchemaSetReferenceRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaSetReferenceRequest.verify|verify} messages. + * @param message VSchemaSetReferenceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IRunMysqlUpgradeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtadmin.IVSchemaSetReferenceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunMysqlUpgradeResponse message from the specified reader or buffer. + * Decodes a VSchemaSetReferenceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunMysqlUpgradeResponse + * @returns VSchemaSetReferenceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.RunMysqlUpgradeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.VSchemaSetReferenceRequest; /** - * Decodes a RunMysqlUpgradeResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetReferenceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunMysqlUpgradeResponse + * @returns VSchemaSetReferenceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.RunMysqlUpgradeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.VSchemaSetReferenceRequest; /** - * Verifies a RunMysqlUpgradeResponse message. + * Verifies a VSchemaSetReferenceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunMysqlUpgradeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaSetReferenceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunMysqlUpgradeResponse + * @returns VSchemaSetReferenceRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.RunMysqlUpgradeResponse; + public static fromObject(object: { [k: string]: any }): vtadmin.VSchemaSetReferenceRequest; /** - * Creates a plain object from a RunMysqlUpgradeResponse message. Also converts values to other types if specified. - * @param message RunMysqlUpgradeResponse + * Creates a plain object from a VSchemaSetReferenceRequest message. Also converts values to other types if specified. + * @param message VSchemaSetReferenceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.RunMysqlUpgradeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtadmin.VSchemaSetReferenceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunMysqlUpgradeResponse to JSON. + * Converts this VSchemaSetReferenceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RunMysqlUpgradeResponse + * Gets the default type url for VSchemaSetReferenceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of an ApplyBinlogFileRequest. */ - interface IApplyBinlogFileRequest { - - /** ApplyBinlogFileRequest binlog_file_name */ - binlog_file_name?: (string|null); - - /** ApplyBinlogFileRequest binlog_restore_position */ - binlog_restore_position?: (string|null); +/** Namespace logutil. */ +export namespace logutil { - /** ApplyBinlogFileRequest binlog_restore_datetime */ - binlog_restore_datetime?: (vttime.ITime|null); + /** Level enum. */ + enum Level { + INFO = 0, + WARNING = 1, + ERROR = 2, + CONSOLE = 3 } - /** Represents an ApplyBinlogFileRequest. */ - class ApplyBinlogFileRequest implements IApplyBinlogFileRequest { + /** Properties of an Event. */ + interface IEvent { - /** - * Constructs a new ApplyBinlogFileRequest. - * @param [properties] Properties to set - */ - constructor(properties?: mysqlctl.IApplyBinlogFileRequest); + /** Event time */ + time?: (vttime.ITime|null); - /** ApplyBinlogFileRequest binlog_file_name. */ - public binlog_file_name: string; + /** Event level */ + level?: (logutil.Level|null); - /** ApplyBinlogFileRequest binlog_restore_position. */ - public binlog_restore_position: string; + /** Event file */ + file?: (string|null); - /** ApplyBinlogFileRequest binlog_restore_datetime. */ - public binlog_restore_datetime?: (vttime.ITime|null); + /** Event line */ + line?: (number|Long|null); + + /** Event value */ + value?: (string|null); + } + + /** Represents an Event. */ + class Event implements IEvent { /** - * Creates a new ApplyBinlogFileRequest instance using the specified properties. + * Constructs a new Event. * @param [properties] Properties to set - * @returns ApplyBinlogFileRequest instance */ - public static create(properties?: mysqlctl.IApplyBinlogFileRequest): mysqlctl.ApplyBinlogFileRequest; + constructor(properties?: logutil.IEvent); + + /** Event time. */ + public time?: (vttime.ITime|null); + + /** Event level. */ + public level: logutil.Level; + + /** Event file. */ + public file: string; + + /** Event line. */ + public line: (number|Long); + + /** Event value. */ + public value: string; /** - * Encodes the specified ApplyBinlogFileRequest message. Does not implicitly {@link mysqlctl.ApplyBinlogFileRequest.verify|verify} messages. - * @param message ApplyBinlogFileRequest message or plain object to encode + * Creates a new Event instance using the specified properties. + * @param [properties] Properties to set + * @returns Event instance + */ + public static create(properties?: logutil.IEvent): logutil.Event; + + /** + * Encodes the specified Event message. Does not implicitly {@link logutil.Event.verify|verify} messages. + * @param message Event message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IApplyBinlogFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: logutil.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ApplyBinlogFileRequest message, length delimited. Does not implicitly {@link mysqlctl.ApplyBinlogFileRequest.verify|verify} messages. - * @param message ApplyBinlogFileRequest message or plain object to encode + * Encodes the specified Event message, length delimited. Does not implicitly {@link logutil.Event.verify|verify} messages. + * @param message Event message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IApplyBinlogFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: logutil.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplyBinlogFileRequest message from the specified reader or buffer. + * Decodes an Event message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ApplyBinlogFileRequest + * @returns Event * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ApplyBinlogFileRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): logutil.Event; /** - * Decodes an ApplyBinlogFileRequest message from the specified reader or buffer, length delimited. + * Decodes an Event message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplyBinlogFileRequest + * @returns Event * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ApplyBinlogFileRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): logutil.Event; /** - * Verifies an ApplyBinlogFileRequest message. + * Verifies an Event message. * @param message Plain 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 ApplyBinlogFileRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Event message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApplyBinlogFileRequest + * @returns Event */ - public static fromObject(object: { [k: string]: any }): mysqlctl.ApplyBinlogFileRequest; + public static fromObject(object: { [k: string]: any }): logutil.Event; /** - * Creates a plain object from an ApplyBinlogFileRequest message. Also converts values to other types if specified. - * @param message ApplyBinlogFileRequest + * Creates a plain object from an Event message. Also converts values to other types if specified. + * @param message Event * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.ApplyBinlogFileRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: logutil.Event, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApplyBinlogFileRequest to JSON. + * Converts this Event to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApplyBinlogFileRequest + * Gets the default type url for Event * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of an ApplyBinlogFileResponse. */ - interface IApplyBinlogFileResponse { +/** Namespace vttime. */ +export namespace vttime { + + /** Properties of a Time. */ + interface ITime { + + /** Time seconds */ + seconds?: (number|Long|null); + + /** Time nanoseconds */ + nanoseconds?: (number|null); } - /** Represents an ApplyBinlogFileResponse. */ - class ApplyBinlogFileResponse implements IApplyBinlogFileResponse { + /** Represents a Time. */ + class Time implements ITime { /** - * Constructs a new ApplyBinlogFileResponse. + * Constructs a new Time. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IApplyBinlogFileResponse); + constructor(properties?: vttime.ITime); + + /** Time seconds. */ + public seconds: (number|Long); + + /** Time nanoseconds. */ + public nanoseconds: number; /** - * Creates a new ApplyBinlogFileResponse instance using the specified properties. + * Creates a new Time instance using the specified properties. * @param [properties] Properties to set - * @returns ApplyBinlogFileResponse instance + * @returns Time instance */ - public static create(properties?: mysqlctl.IApplyBinlogFileResponse): mysqlctl.ApplyBinlogFileResponse; + public static create(properties?: vttime.ITime): vttime.Time; /** - * Encodes the specified ApplyBinlogFileResponse message. Does not implicitly {@link mysqlctl.ApplyBinlogFileResponse.verify|verify} messages. - * @param message ApplyBinlogFileResponse message or plain object to encode + * Encodes the specified Time message. Does not implicitly {@link vttime.Time.verify|verify} messages. + * @param message Time message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IApplyBinlogFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vttime.ITime, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ApplyBinlogFileResponse message, length delimited. Does not implicitly {@link mysqlctl.ApplyBinlogFileResponse.verify|verify} messages. - * @param message ApplyBinlogFileResponse message or plain object to encode + * Encodes the specified Time message, length delimited. Does not implicitly {@link vttime.Time.verify|verify} messages. + * @param message Time message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IApplyBinlogFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vttime.ITime, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplyBinlogFileResponse message from the specified reader or buffer. + * Decodes a Time message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ApplyBinlogFileResponse + * @returns Time * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ApplyBinlogFileResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vttime.Time; /** - * Decodes an ApplyBinlogFileResponse message from the specified reader or buffer, length delimited. + * Decodes a Time message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplyBinlogFileResponse + * @returns Time * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ApplyBinlogFileResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vttime.Time; /** - * Verifies an ApplyBinlogFileResponse message. + * Verifies a Time message. * @param message Plain 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 ApplyBinlogFileResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Time message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApplyBinlogFileResponse + * @returns Time */ - public static fromObject(object: { [k: string]: any }): mysqlctl.ApplyBinlogFileResponse; + public static fromObject(object: { [k: string]: any }): vttime.Time; /** - * Creates a plain object from an ApplyBinlogFileResponse message. Also converts values to other types if specified. - * @param message ApplyBinlogFileResponse + * Creates a plain object from a Time message. Also converts values to other types if specified. + * @param message Time * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.ApplyBinlogFileResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vttime.Time, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApplyBinlogFileResponse to JSON. + * Converts this Time to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApplyBinlogFileResponse + * Gets the default type url for Time * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadBinlogFilesTimestampsRequest. */ - interface IReadBinlogFilesTimestampsRequest { + /** Properties of a Duration. */ + interface IDuration { - /** ReadBinlogFilesTimestampsRequest binlog_file_names */ - binlog_file_names?: (string[]|null); + /** Duration seconds */ + seconds?: (number|Long|null); + + /** Duration nanos */ + nanos?: (number|null); } - /** Represents a ReadBinlogFilesTimestampsRequest. */ - class ReadBinlogFilesTimestampsRequest implements IReadBinlogFilesTimestampsRequest { + /** Represents a Duration. */ + class Duration implements IDuration { /** - * Constructs a new ReadBinlogFilesTimestampsRequest. + * Constructs a new Duration. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IReadBinlogFilesTimestampsRequest); + constructor(properties?: vttime.IDuration); - /** ReadBinlogFilesTimestampsRequest binlog_file_names. */ - public binlog_file_names: string[]; + /** Duration seconds. */ + public seconds: (number|Long); + + /** Duration nanos. */ + public nanos: number; /** - * Creates a new ReadBinlogFilesTimestampsRequest instance using the specified properties. + * Creates a new Duration instance using the specified properties. * @param [properties] Properties to set - * @returns ReadBinlogFilesTimestampsRequest instance + * @returns Duration instance */ - public static create(properties?: mysqlctl.IReadBinlogFilesTimestampsRequest): mysqlctl.ReadBinlogFilesTimestampsRequest; + public static create(properties?: vttime.IDuration): vttime.Duration; /** - * Encodes the specified ReadBinlogFilesTimestampsRequest message. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsRequest.verify|verify} messages. - * @param message ReadBinlogFilesTimestampsRequest message or plain object to encode + * Encodes the specified Duration message. Does not implicitly {@link vttime.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IReadBinlogFilesTimestampsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vttime.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadBinlogFilesTimestampsRequest message, length delimited. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsRequest.verify|verify} messages. - * @param message ReadBinlogFilesTimestampsRequest message or plain object to encode + * Encodes the specified Duration message, length delimited. Does not implicitly {@link vttime.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IReadBinlogFilesTimestampsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vttime.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadBinlogFilesTimestampsRequest message from the specified reader or buffer. + * Decodes a Duration message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadBinlogFilesTimestampsRequest + * @returns Duration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ReadBinlogFilesTimestampsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vttime.Duration; /** - * Decodes a ReadBinlogFilesTimestampsRequest message from the specified reader or buffer, length delimited. + * Decodes a Duration message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadBinlogFilesTimestampsRequest + * @returns Duration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ReadBinlogFilesTimestampsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vttime.Duration; /** - * Verifies a ReadBinlogFilesTimestampsRequest message. + * Verifies a Duration message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadBinlogFilesTimestampsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Duration message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadBinlogFilesTimestampsRequest + * @returns Duration */ - public static fromObject(object: { [k: string]: any }): mysqlctl.ReadBinlogFilesTimestampsRequest; + public static fromObject(object: { [k: string]: any }): vttime.Duration; /** - * Creates a plain object from a ReadBinlogFilesTimestampsRequest message. Also converts values to other types if specified. - * @param message ReadBinlogFilesTimestampsRequest + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @param message Duration * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.ReadBinlogFilesTimestampsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vttime.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadBinlogFilesTimestampsRequest to JSON. + * Converts this Duration to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadBinlogFilesTimestampsRequest + * Gets the default type url for Duration * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of a ReadBinlogFilesTimestampsResponse. */ - interface IReadBinlogFilesTimestampsResponse { - - /** ReadBinlogFilesTimestampsResponse first_timestamp */ - first_timestamp?: (vttime.ITime|null); - - /** ReadBinlogFilesTimestampsResponse first_timestamp_binlog */ - first_timestamp_binlog?: (string|null); +/** Namespace mysqlctl. */ +export namespace mysqlctl { - /** ReadBinlogFilesTimestampsResponse last_timestamp */ - last_timestamp?: (vttime.ITime|null); + /** Properties of a StartRequest. */ + interface IStartRequest { - /** ReadBinlogFilesTimestampsResponse last_timestamp_binlog */ - last_timestamp_binlog?: (string|null); + /** StartRequest mysqld_args */ + mysqld_args?: (string[]|null); } - /** Represents a ReadBinlogFilesTimestampsResponse. */ - class ReadBinlogFilesTimestampsResponse implements IReadBinlogFilesTimestampsResponse { + /** Represents a StartRequest. */ + class StartRequest implements IStartRequest { /** - * Constructs a new ReadBinlogFilesTimestampsResponse. + * Constructs a new StartRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IReadBinlogFilesTimestampsResponse); - - /** ReadBinlogFilesTimestampsResponse first_timestamp. */ - public first_timestamp?: (vttime.ITime|null); - - /** ReadBinlogFilesTimestampsResponse first_timestamp_binlog. */ - public first_timestamp_binlog: string; - - /** ReadBinlogFilesTimestampsResponse last_timestamp. */ - public last_timestamp?: (vttime.ITime|null); + constructor(properties?: mysqlctl.IStartRequest); - /** ReadBinlogFilesTimestampsResponse last_timestamp_binlog. */ - public last_timestamp_binlog: string; + /** StartRequest mysqld_args. */ + public mysqld_args: string[]; /** - * Creates a new ReadBinlogFilesTimestampsResponse instance using the specified properties. + * Creates a new StartRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadBinlogFilesTimestampsResponse instance + * @returns StartRequest instance */ - public static create(properties?: mysqlctl.IReadBinlogFilesTimestampsResponse): mysqlctl.ReadBinlogFilesTimestampsResponse; + public static create(properties?: mysqlctl.IStartRequest): mysqlctl.StartRequest; /** - * Encodes the specified ReadBinlogFilesTimestampsResponse message. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsResponse.verify|verify} messages. - * @param message ReadBinlogFilesTimestampsResponse message or plain object to encode + * Encodes the specified StartRequest message. Does not implicitly {@link mysqlctl.StartRequest.verify|verify} messages. + * @param message StartRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IReadBinlogFilesTimestampsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IStartRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadBinlogFilesTimestampsResponse message, length delimited. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsResponse.verify|verify} messages. - * @param message ReadBinlogFilesTimestampsResponse message or plain object to encode + * Encodes the specified StartRequest message, length delimited. Does not implicitly {@link mysqlctl.StartRequest.verify|verify} messages. + * @param message StartRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IReadBinlogFilesTimestampsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IStartRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadBinlogFilesTimestampsResponse message from the specified reader or buffer. + * Decodes a StartRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadBinlogFilesTimestampsResponse + * @returns StartRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ReadBinlogFilesTimestampsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.StartRequest; /** - * Decodes a ReadBinlogFilesTimestampsResponse message from the specified reader or buffer, length delimited. + * Decodes a StartRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadBinlogFilesTimestampsResponse + * @returns StartRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ReadBinlogFilesTimestampsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.StartRequest; /** - * Verifies a ReadBinlogFilesTimestampsResponse message. + * Verifies a StartRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadBinlogFilesTimestampsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StartRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadBinlogFilesTimestampsResponse + * @returns StartRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.ReadBinlogFilesTimestampsResponse; + public static fromObject(object: { [k: string]: any }): mysqlctl.StartRequest; /** - * Creates a plain object from a ReadBinlogFilesTimestampsResponse message. Also converts values to other types if specified. - * @param message ReadBinlogFilesTimestampsResponse + * Creates a plain object from a StartRequest message. Also converts values to other types if specified. + * @param message StartRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.ReadBinlogFilesTimestampsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.StartRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadBinlogFilesTimestampsResponse to JSON. + * Converts this StartRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadBinlogFilesTimestampsResponse + * Gets the default type url for StartRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReinitConfigRequest. */ - interface IReinitConfigRequest { + /** Properties of a StartResponse. */ + interface IStartResponse { } - /** Represents a ReinitConfigRequest. */ - class ReinitConfigRequest implements IReinitConfigRequest { + /** Represents a StartResponse. */ + class StartResponse implements IStartResponse { /** - * Constructs a new ReinitConfigRequest. + * Constructs a new StartResponse. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IReinitConfigRequest); + constructor(properties?: mysqlctl.IStartResponse); /** - * Creates a new ReinitConfigRequest instance using the specified properties. + * Creates a new StartResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReinitConfigRequest instance + * @returns StartResponse instance */ - public static create(properties?: mysqlctl.IReinitConfigRequest): mysqlctl.ReinitConfigRequest; + public static create(properties?: mysqlctl.IStartResponse): mysqlctl.StartResponse; /** - * Encodes the specified ReinitConfigRequest message. Does not implicitly {@link mysqlctl.ReinitConfigRequest.verify|verify} messages. - * @param message ReinitConfigRequest message or plain object to encode + * Encodes the specified StartResponse message. Does not implicitly {@link mysqlctl.StartResponse.verify|verify} messages. + * @param message StartResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IReinitConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IStartResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReinitConfigRequest message, length delimited. Does not implicitly {@link mysqlctl.ReinitConfigRequest.verify|verify} messages. - * @param message ReinitConfigRequest message or plain object to encode + * Encodes the specified StartResponse message, length delimited. Does not implicitly {@link mysqlctl.StartResponse.verify|verify} messages. + * @param message StartResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IReinitConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IStartResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReinitConfigRequest message from the specified reader or buffer. + * Decodes a StartResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReinitConfigRequest + * @returns StartResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ReinitConfigRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.StartResponse; /** - * Decodes a ReinitConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a StartResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReinitConfigRequest + * @returns StartResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ReinitConfigRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.StartResponse; /** - * Verifies a ReinitConfigRequest message. + * Verifies a StartResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReinitConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReinitConfigRequest + * @returns StartResponse */ - public static fromObject(object: { [k: string]: any }): mysqlctl.ReinitConfigRequest; + public static fromObject(object: { [k: string]: any }): mysqlctl.StartResponse; /** - * Creates a plain object from a ReinitConfigRequest message. Also converts values to other types if specified. - * @param message ReinitConfigRequest + * Creates a plain object from a StartResponse message. Also converts values to other types if specified. + * @param message StartResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.ReinitConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.StartResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReinitConfigRequest to JSON. + * Converts this StartResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReinitConfigRequest + * Gets the default type url for StartResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReinitConfigResponse. */ - interface IReinitConfigResponse { + /** Properties of a ShutdownRequest. */ + interface IShutdownRequest { + + /** ShutdownRequest wait_for_mysqld */ + wait_for_mysqld?: (boolean|null); + + /** ShutdownRequest mysql_shutdown_timeout */ + mysql_shutdown_timeout?: (vttime.IDuration|null); } - /** Represents a ReinitConfigResponse. */ - class ReinitConfigResponse implements IReinitConfigResponse { + /** Represents a ShutdownRequest. */ + class ShutdownRequest implements IShutdownRequest { /** - * Constructs a new ReinitConfigResponse. + * Constructs a new ShutdownRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IReinitConfigResponse); + constructor(properties?: mysqlctl.IShutdownRequest); + + /** ShutdownRequest wait_for_mysqld. */ + public wait_for_mysqld: boolean; + + /** ShutdownRequest mysql_shutdown_timeout. */ + public mysql_shutdown_timeout?: (vttime.IDuration|null); /** - * Creates a new ReinitConfigResponse instance using the specified properties. + * Creates a new ShutdownRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReinitConfigResponse instance + * @returns ShutdownRequest instance */ - public static create(properties?: mysqlctl.IReinitConfigResponse): mysqlctl.ReinitConfigResponse; + public static create(properties?: mysqlctl.IShutdownRequest): mysqlctl.ShutdownRequest; /** - * Encodes the specified ReinitConfigResponse message. Does not implicitly {@link mysqlctl.ReinitConfigResponse.verify|verify} messages. - * @param message ReinitConfigResponse message or plain object to encode + * Encodes the specified ShutdownRequest message. Does not implicitly {@link mysqlctl.ShutdownRequest.verify|verify} messages. + * @param message ShutdownRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IReinitConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IShutdownRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReinitConfigResponse message, length delimited. Does not implicitly {@link mysqlctl.ReinitConfigResponse.verify|verify} messages. - * @param message ReinitConfigResponse message or plain object to encode + * Encodes the specified ShutdownRequest message, length delimited. Does not implicitly {@link mysqlctl.ShutdownRequest.verify|verify} messages. + * @param message ShutdownRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IReinitConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IShutdownRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReinitConfigResponse message from the specified reader or buffer. + * Decodes a ShutdownRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReinitConfigResponse + * @returns ShutdownRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ReinitConfigResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ShutdownRequest; /** - * Decodes a ReinitConfigResponse message from the specified reader or buffer, length delimited. + * Decodes a ShutdownRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReinitConfigResponse + * @returns ShutdownRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ReinitConfigResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ShutdownRequest; /** - * Verifies a ReinitConfigResponse message. + * Verifies a ShutdownRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReinitConfigResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ShutdownRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReinitConfigResponse + * @returns ShutdownRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.ReinitConfigResponse; + public static fromObject(object: { [k: string]: any }): mysqlctl.ShutdownRequest; /** - * Creates a plain object from a ReinitConfigResponse message. Also converts values to other types if specified. - * @param message ReinitConfigResponse + * Creates a plain object from a ShutdownRequest message. Also converts values to other types if specified. + * @param message ShutdownRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.ReinitConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.ShutdownRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReinitConfigResponse to JSON. + * Converts this ShutdownRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReinitConfigResponse + * Gets the default type url for ShutdownRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RefreshConfigRequest. */ - interface IRefreshConfigRequest { + /** Properties of a ShutdownResponse. */ + interface IShutdownResponse { } - /** Represents a RefreshConfigRequest. */ - class RefreshConfigRequest implements IRefreshConfigRequest { + /** Represents a ShutdownResponse. */ + class ShutdownResponse implements IShutdownResponse { /** - * Constructs a new RefreshConfigRequest. + * Constructs a new ShutdownResponse. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IRefreshConfigRequest); + constructor(properties?: mysqlctl.IShutdownResponse); /** - * Creates a new RefreshConfigRequest instance using the specified properties. + * Creates a new ShutdownResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RefreshConfigRequest instance + * @returns ShutdownResponse instance */ - public static create(properties?: mysqlctl.IRefreshConfigRequest): mysqlctl.RefreshConfigRequest; + public static create(properties?: mysqlctl.IShutdownResponse): mysqlctl.ShutdownResponse; /** - * Encodes the specified RefreshConfigRequest message. Does not implicitly {@link mysqlctl.RefreshConfigRequest.verify|verify} messages. - * @param message RefreshConfigRequest message or plain object to encode + * Encodes the specified ShutdownResponse message. Does not implicitly {@link mysqlctl.ShutdownResponse.verify|verify} messages. + * @param message ShutdownResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IRefreshConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IShutdownResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RefreshConfigRequest message, length delimited. Does not implicitly {@link mysqlctl.RefreshConfigRequest.verify|verify} messages. - * @param message RefreshConfigRequest message or plain object to encode + * Encodes the specified ShutdownResponse message, length delimited. Does not implicitly {@link mysqlctl.ShutdownResponse.verify|verify} messages. + * @param message ShutdownResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IRefreshConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IShutdownResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RefreshConfigRequest message from the specified reader or buffer. + * Decodes a ShutdownResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RefreshConfigRequest + * @returns ShutdownResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.RefreshConfigRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ShutdownResponse; /** - * Decodes a RefreshConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a ShutdownResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RefreshConfigRequest + * @returns ShutdownResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.RefreshConfigRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ShutdownResponse; /** - * Verifies a RefreshConfigRequest message. + * Verifies a ShutdownResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RefreshConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShutdownResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RefreshConfigRequest + * @returns ShutdownResponse */ - public static fromObject(object: { [k: string]: any }): mysqlctl.RefreshConfigRequest; + public static fromObject(object: { [k: string]: any }): mysqlctl.ShutdownResponse; /** - * Creates a plain object from a RefreshConfigRequest message. Also converts values to other types if specified. - * @param message RefreshConfigRequest + * Creates a plain object from a ShutdownResponse message. Also converts values to other types if specified. + * @param message ShutdownResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.RefreshConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.ShutdownResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RefreshConfigRequest to JSON. + * Converts this ShutdownResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RefreshConfigRequest + * Gets the default type url for ShutdownResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RefreshConfigResponse. */ - interface IRefreshConfigResponse { + /** Properties of a RunMysqlUpgradeRequest. */ + interface IRunMysqlUpgradeRequest { } - /** Represents a RefreshConfigResponse. */ - class RefreshConfigResponse implements IRefreshConfigResponse { + /** Represents a RunMysqlUpgradeRequest. */ + class RunMysqlUpgradeRequest implements IRunMysqlUpgradeRequest { /** - * Constructs a new RefreshConfigResponse. + * Constructs a new RunMysqlUpgradeRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IRefreshConfigResponse); + constructor(properties?: mysqlctl.IRunMysqlUpgradeRequest); /** - * Creates a new RefreshConfigResponse instance using the specified properties. + * Creates a new RunMysqlUpgradeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RefreshConfigResponse instance + * @returns RunMysqlUpgradeRequest instance */ - public static create(properties?: mysqlctl.IRefreshConfigResponse): mysqlctl.RefreshConfigResponse; + public static create(properties?: mysqlctl.IRunMysqlUpgradeRequest): mysqlctl.RunMysqlUpgradeRequest; /** - * Encodes the specified RefreshConfigResponse message. Does not implicitly {@link mysqlctl.RefreshConfigResponse.verify|verify} messages. - * @param message RefreshConfigResponse message or plain object to encode + * Encodes the specified RunMysqlUpgradeRequest message. Does not implicitly {@link mysqlctl.RunMysqlUpgradeRequest.verify|verify} messages. + * @param message RunMysqlUpgradeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IRefreshConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IRunMysqlUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RefreshConfigResponse message, length delimited. Does not implicitly {@link mysqlctl.RefreshConfigResponse.verify|verify} messages. - * @param message RefreshConfigResponse message or plain object to encode + * Encodes the specified RunMysqlUpgradeRequest message, length delimited. Does not implicitly {@link mysqlctl.RunMysqlUpgradeRequest.verify|verify} messages. + * @param message RunMysqlUpgradeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IRefreshConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IRunMysqlUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RefreshConfigResponse message from the specified reader or buffer. + * Decodes a RunMysqlUpgradeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RefreshConfigResponse + * @returns RunMysqlUpgradeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.RefreshConfigResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.RunMysqlUpgradeRequest; /** - * Decodes a RefreshConfigResponse message from the specified reader or buffer, length delimited. + * Decodes a RunMysqlUpgradeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RefreshConfigResponse + * @returns RunMysqlUpgradeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.RefreshConfigResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.RunMysqlUpgradeRequest; /** - * Verifies a RefreshConfigResponse message. + * Verifies a RunMysqlUpgradeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RefreshConfigResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RunMysqlUpgradeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RefreshConfigResponse + * @returns RunMysqlUpgradeRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.RefreshConfigResponse; + public static fromObject(object: { [k: string]: any }): mysqlctl.RunMysqlUpgradeRequest; /** - * Creates a plain object from a RefreshConfigResponse message. Also converts values to other types if specified. - * @param message RefreshConfigResponse + * Creates a plain object from a RunMysqlUpgradeRequest message. Also converts values to other types if specified. + * @param message RunMysqlUpgradeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.RefreshConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.RunMysqlUpgradeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RefreshConfigResponse to JSON. + * Converts this RunMysqlUpgradeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RefreshConfigResponse + * Gets the default type url for RunMysqlUpgradeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VersionStringRequest. */ - interface IVersionStringRequest { + /** Properties of a RunMysqlUpgradeResponse. */ + interface IRunMysqlUpgradeResponse { } - /** Represents a VersionStringRequest. */ - class VersionStringRequest implements IVersionStringRequest { + /** Represents a RunMysqlUpgradeResponse. */ + class RunMysqlUpgradeResponse implements IRunMysqlUpgradeResponse { /** - * Constructs a new VersionStringRequest. + * Constructs a new RunMysqlUpgradeResponse. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IVersionStringRequest); + constructor(properties?: mysqlctl.IRunMysqlUpgradeResponse); /** - * Creates a new VersionStringRequest instance using the specified properties. + * Creates a new RunMysqlUpgradeResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VersionStringRequest instance + * @returns RunMysqlUpgradeResponse instance */ - public static create(properties?: mysqlctl.IVersionStringRequest): mysqlctl.VersionStringRequest; + public static create(properties?: mysqlctl.IRunMysqlUpgradeResponse): mysqlctl.RunMysqlUpgradeResponse; /** - * Encodes the specified VersionStringRequest message. Does not implicitly {@link mysqlctl.VersionStringRequest.verify|verify} messages. - * @param message VersionStringRequest message or plain object to encode + * Encodes the specified RunMysqlUpgradeResponse message. Does not implicitly {@link mysqlctl.RunMysqlUpgradeResponse.verify|verify} messages. + * @param message RunMysqlUpgradeResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IVersionStringRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IRunMysqlUpgradeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VersionStringRequest message, length delimited. Does not implicitly {@link mysqlctl.VersionStringRequest.verify|verify} messages. - * @param message VersionStringRequest message or plain object to encode + * Encodes the specified RunMysqlUpgradeResponse message, length delimited. Does not implicitly {@link mysqlctl.RunMysqlUpgradeResponse.verify|verify} messages. + * @param message RunMysqlUpgradeResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IVersionStringRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IRunMysqlUpgradeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VersionStringRequest message from the specified reader or buffer. + * Decodes a RunMysqlUpgradeResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VersionStringRequest + * @returns RunMysqlUpgradeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.VersionStringRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.RunMysqlUpgradeResponse; /** - * Decodes a VersionStringRequest message from the specified reader or buffer, length delimited. + * Decodes a RunMysqlUpgradeResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VersionStringRequest + * @returns RunMysqlUpgradeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.VersionStringRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.RunMysqlUpgradeResponse; /** - * Verifies a VersionStringRequest message. + * Verifies a RunMysqlUpgradeResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VersionStringRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunMysqlUpgradeResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VersionStringRequest + * @returns RunMysqlUpgradeResponse */ - public static fromObject(object: { [k: string]: any }): mysqlctl.VersionStringRequest; + public static fromObject(object: { [k: string]: any }): mysqlctl.RunMysqlUpgradeResponse; /** - * Creates a plain object from a VersionStringRequest message. Also converts values to other types if specified. - * @param message VersionStringRequest + * Creates a plain object from a RunMysqlUpgradeResponse message. Also converts values to other types if specified. + * @param message RunMysqlUpgradeResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.VersionStringRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.RunMysqlUpgradeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VersionStringRequest to JSON. + * Converts this RunMysqlUpgradeResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VersionStringRequest + * Gets the default type url for RunMysqlUpgradeResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VersionStringResponse. */ - interface IVersionStringResponse { + /** Properties of an ApplyBinlogFileRequest. */ + interface IApplyBinlogFileRequest { - /** VersionStringResponse version */ - version?: (string|null); + /** ApplyBinlogFileRequest binlog_file_name */ + binlog_file_name?: (string|null); + + /** ApplyBinlogFileRequest binlog_restore_position */ + binlog_restore_position?: (string|null); + + /** ApplyBinlogFileRequest binlog_restore_datetime */ + binlog_restore_datetime?: (vttime.ITime|null); } - /** Represents a VersionStringResponse. */ - class VersionStringResponse implements IVersionStringResponse { + /** Represents an ApplyBinlogFileRequest. */ + class ApplyBinlogFileRequest implements IApplyBinlogFileRequest { /** - * Constructs a new VersionStringResponse. + * Constructs a new ApplyBinlogFileRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IVersionStringResponse); + constructor(properties?: mysqlctl.IApplyBinlogFileRequest); - /** VersionStringResponse version. */ - public version: string; + /** ApplyBinlogFileRequest binlog_file_name. */ + public binlog_file_name: string; + + /** ApplyBinlogFileRequest binlog_restore_position. */ + public binlog_restore_position: string; + + /** ApplyBinlogFileRequest binlog_restore_datetime. */ + public binlog_restore_datetime?: (vttime.ITime|null); /** - * Creates a new VersionStringResponse instance using the specified properties. + * Creates a new ApplyBinlogFileRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VersionStringResponse instance + * @returns ApplyBinlogFileRequest instance */ - public static create(properties?: mysqlctl.IVersionStringResponse): mysqlctl.VersionStringResponse; + public static create(properties?: mysqlctl.IApplyBinlogFileRequest): mysqlctl.ApplyBinlogFileRequest; /** - * Encodes the specified VersionStringResponse message. Does not implicitly {@link mysqlctl.VersionStringResponse.verify|verify} messages. - * @param message VersionStringResponse message or plain object to encode + * Encodes the specified ApplyBinlogFileRequest message. Does not implicitly {@link mysqlctl.ApplyBinlogFileRequest.verify|verify} messages. + * @param message ApplyBinlogFileRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IVersionStringResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IApplyBinlogFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VersionStringResponse message, length delimited. Does not implicitly {@link mysqlctl.VersionStringResponse.verify|verify} messages. - * @param message VersionStringResponse message or plain object to encode + * Encodes the specified ApplyBinlogFileRequest message, length delimited. Does not implicitly {@link mysqlctl.ApplyBinlogFileRequest.verify|verify} messages. + * @param message ApplyBinlogFileRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IVersionStringResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IApplyBinlogFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VersionStringResponse message from the specified reader or buffer. + * Decodes an ApplyBinlogFileRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VersionStringResponse + * @returns ApplyBinlogFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.VersionStringResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ApplyBinlogFileRequest; /** - * Decodes a VersionStringResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplyBinlogFileRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VersionStringResponse + * @returns ApplyBinlogFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.VersionStringResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ApplyBinlogFileRequest; /** - * Verifies a VersionStringResponse message. + * Verifies an ApplyBinlogFileRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VersionStringResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyBinlogFileRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VersionStringResponse + * @returns ApplyBinlogFileRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.VersionStringResponse; + public static fromObject(object: { [k: string]: any }): mysqlctl.ApplyBinlogFileRequest; /** - * Creates a plain object from a VersionStringResponse message. Also converts values to other types if specified. - * @param message VersionStringResponse + * Creates a plain object from an ApplyBinlogFileRequest message. Also converts values to other types if specified. + * @param message ApplyBinlogFileRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.VersionStringResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.ApplyBinlogFileRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VersionStringResponse to JSON. + * Converts this ApplyBinlogFileRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VersionStringResponse + * Gets the default type url for ApplyBinlogFileRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a HostMetricsRequest. */ - interface IHostMetricsRequest { + /** Properties of an ApplyBinlogFileResponse. */ + interface IApplyBinlogFileResponse { } - /** Represents a HostMetricsRequest. */ - class HostMetricsRequest implements IHostMetricsRequest { + /** Represents an ApplyBinlogFileResponse. */ + class ApplyBinlogFileResponse implements IApplyBinlogFileResponse { /** - * Constructs a new HostMetricsRequest. + * Constructs a new ApplyBinlogFileResponse. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IHostMetricsRequest); + constructor(properties?: mysqlctl.IApplyBinlogFileResponse); /** - * Creates a new HostMetricsRequest instance using the specified properties. + * Creates a new ApplyBinlogFileResponse instance using the specified properties. * @param [properties] Properties to set - * @returns HostMetricsRequest instance + * @returns ApplyBinlogFileResponse instance */ - public static create(properties?: mysqlctl.IHostMetricsRequest): mysqlctl.HostMetricsRequest; + public static create(properties?: mysqlctl.IApplyBinlogFileResponse): mysqlctl.ApplyBinlogFileResponse; /** - * Encodes the specified HostMetricsRequest message. Does not implicitly {@link mysqlctl.HostMetricsRequest.verify|verify} messages. - * @param message HostMetricsRequest message or plain object to encode + * Encodes the specified ApplyBinlogFileResponse message. Does not implicitly {@link mysqlctl.ApplyBinlogFileResponse.verify|verify} messages. + * @param message ApplyBinlogFileResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IHostMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IApplyBinlogFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HostMetricsRequest message, length delimited. Does not implicitly {@link mysqlctl.HostMetricsRequest.verify|verify} messages. - * @param message HostMetricsRequest message or plain object to encode + * Encodes the specified ApplyBinlogFileResponse message, length delimited. Does not implicitly {@link mysqlctl.ApplyBinlogFileResponse.verify|verify} messages. + * @param message ApplyBinlogFileResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IHostMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IApplyBinlogFileResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HostMetricsRequest message from the specified reader or buffer. + * Decodes an ApplyBinlogFileResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HostMetricsRequest + * @returns ApplyBinlogFileResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.HostMetricsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ApplyBinlogFileResponse; /** - * Decodes a HostMetricsRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplyBinlogFileResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HostMetricsRequest + * @returns ApplyBinlogFileResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.HostMetricsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ApplyBinlogFileResponse; /** - * Verifies a HostMetricsRequest message. + * Verifies an ApplyBinlogFileResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a HostMetricsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyBinlogFileResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HostMetricsRequest + * @returns ApplyBinlogFileResponse */ - public static fromObject(object: { [k: string]: any }): mysqlctl.HostMetricsRequest; + public static fromObject(object: { [k: string]: any }): mysqlctl.ApplyBinlogFileResponse; /** - * Creates a plain object from a HostMetricsRequest message. Also converts values to other types if specified. - * @param message HostMetricsRequest + * Creates a plain object from an ApplyBinlogFileResponse message. Also converts values to other types if specified. + * @param message ApplyBinlogFileResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.HostMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.ApplyBinlogFileResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HostMetricsRequest to JSON. + * Converts this ApplyBinlogFileResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for HostMetricsRequest + * Gets the default type url for ApplyBinlogFileResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a HostMetricsResponse. */ - interface IHostMetricsResponse { + /** Properties of a ReadBinlogFilesTimestampsRequest. */ + interface IReadBinlogFilesTimestampsRequest { - /** HostMetricsResponse metrics */ - metrics?: ({ [k: string]: mysqlctl.HostMetricsResponse.IMetric }|null); + /** ReadBinlogFilesTimestampsRequest binlog_file_names */ + binlog_file_names?: (string[]|null); } - /** Represents a HostMetricsResponse. */ - class HostMetricsResponse implements IHostMetricsResponse { + /** Represents a ReadBinlogFilesTimestampsRequest. */ + class ReadBinlogFilesTimestampsRequest implements IReadBinlogFilesTimestampsRequest { /** - * Constructs a new HostMetricsResponse. + * Constructs a new ReadBinlogFilesTimestampsRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IHostMetricsResponse); + constructor(properties?: mysqlctl.IReadBinlogFilesTimestampsRequest); - /** HostMetricsResponse metrics. */ - public metrics: { [k: string]: mysqlctl.HostMetricsResponse.IMetric }; + /** ReadBinlogFilesTimestampsRequest binlog_file_names. */ + public binlog_file_names: string[]; /** - * Creates a new HostMetricsResponse instance using the specified properties. + * Creates a new ReadBinlogFilesTimestampsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns HostMetricsResponse instance + * @returns ReadBinlogFilesTimestampsRequest instance */ - public static create(properties?: mysqlctl.IHostMetricsResponse): mysqlctl.HostMetricsResponse; + public static create(properties?: mysqlctl.IReadBinlogFilesTimestampsRequest): mysqlctl.ReadBinlogFilesTimestampsRequest; /** - * Encodes the specified HostMetricsResponse message. Does not implicitly {@link mysqlctl.HostMetricsResponse.verify|verify} messages. - * @param message HostMetricsResponse message or plain object to encode + * Encodes the specified ReadBinlogFilesTimestampsRequest message. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsRequest.verify|verify} messages. + * @param message ReadBinlogFilesTimestampsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IHostMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IReadBinlogFilesTimestampsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HostMetricsResponse message, length delimited. Does not implicitly {@link mysqlctl.HostMetricsResponse.verify|verify} messages. - * @param message HostMetricsResponse message or plain object to encode + * Encodes the specified ReadBinlogFilesTimestampsRequest message, length delimited. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsRequest.verify|verify} messages. + * @param message ReadBinlogFilesTimestampsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IHostMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IReadBinlogFilesTimestampsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HostMetricsResponse message from the specified reader or buffer. + * Decodes a ReadBinlogFilesTimestampsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HostMetricsResponse + * @returns ReadBinlogFilesTimestampsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.HostMetricsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ReadBinlogFilesTimestampsRequest; /** - * Decodes a HostMetricsResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadBinlogFilesTimestampsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HostMetricsResponse + * @returns ReadBinlogFilesTimestampsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.HostMetricsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ReadBinlogFilesTimestampsRequest; /** - * Verifies a HostMetricsResponse message. + * Verifies a ReadBinlogFilesTimestampsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a HostMetricsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadBinlogFilesTimestampsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HostMetricsResponse + * @returns ReadBinlogFilesTimestampsRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.HostMetricsResponse; + public static fromObject(object: { [k: string]: any }): mysqlctl.ReadBinlogFilesTimestampsRequest; /** - * Creates a plain object from a HostMetricsResponse message. Also converts values to other types if specified. - * @param message HostMetricsResponse + * Creates a plain object from a ReadBinlogFilesTimestampsRequest message. Also converts values to other types if specified. + * @param message ReadBinlogFilesTimestampsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.HostMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.ReadBinlogFilesTimestampsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HostMetricsResponse to JSON. + * Converts this ReadBinlogFilesTimestampsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for HostMetricsResponse + * Gets the default type url for ReadBinlogFilesTimestampsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace HostMetricsResponse { - - /** Properties of a Metric. */ - interface IMetric { - - /** Metric name */ - name?: (string|null); - - /** Metric value */ - value?: (number|null); - - /** Metric error */ - error?: (vtrpc.IRPCError|null); - } - - /** Represents a Metric. */ - class Metric implements IMetric { - - /** - * Constructs a new Metric. - * @param [properties] Properties to set - */ - constructor(properties?: mysqlctl.HostMetricsResponse.IMetric); - - /** Metric name. */ - public name: string; - - /** Metric value. */ - public value: number; - - /** Metric error. */ - public error?: (vtrpc.IRPCError|null); - - /** - * Creates a new Metric instance using the specified properties. - * @param [properties] Properties to set - * @returns Metric instance - */ - public static create(properties?: mysqlctl.HostMetricsResponse.IMetric): mysqlctl.HostMetricsResponse.Metric; + /** Properties of a ReadBinlogFilesTimestampsResponse. */ + interface IReadBinlogFilesTimestampsResponse { - /** - * Encodes the specified Metric message. Does not implicitly {@link mysqlctl.HostMetricsResponse.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: mysqlctl.HostMetricsResponse.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + /** ReadBinlogFilesTimestampsResponse first_timestamp */ + first_timestamp?: (vttime.ITime|null); - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link mysqlctl.HostMetricsResponse.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: mysqlctl.HostMetricsResponse.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + /** ReadBinlogFilesTimestampsResponse first_timestamp_binlog */ + first_timestamp_binlog?: (string|null); - /** - * Decodes a Metric message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.HostMetricsResponse.Metric; + /** ReadBinlogFilesTimestampsResponse last_timestamp */ + last_timestamp?: (vttime.ITime|null); - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.HostMetricsResponse.Metric; + /** ReadBinlogFilesTimestampsResponse last_timestamp_binlog */ + last_timestamp_binlog?: (string|null); + } - /** - * Verifies a Metric message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Represents a ReadBinlogFilesTimestampsResponse. */ + class ReadBinlogFilesTimestampsResponse implements IReadBinlogFilesTimestampsResponse { - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Metric - */ - public static fromObject(object: { [k: string]: any }): mysqlctl.HostMetricsResponse.Metric; + /** + * Constructs a new ReadBinlogFilesTimestampsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: mysqlctl.IReadBinlogFilesTimestampsResponse); - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @param message Metric - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: mysqlctl.HostMetricsResponse.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ReadBinlogFilesTimestampsResponse first_timestamp. */ + public first_timestamp?: (vttime.ITime|null); - /** - * Converts this Metric to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ReadBinlogFilesTimestampsResponse first_timestamp_binlog. */ + public first_timestamp_binlog: string; - /** - * Gets the default type url for Metric - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** ReadBinlogFilesTimestampsResponse last_timestamp. */ + public last_timestamp?: (vttime.ITime|null); - /** Represents a MysqlCtl */ - class MysqlCtl extends $protobuf.rpc.Service { + /** ReadBinlogFilesTimestampsResponse last_timestamp_binlog. */ + public last_timestamp_binlog: string; /** - * Constructs a new MysqlCtl service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Creates a new ReadBinlogFilesTimestampsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadBinlogFilesTimestampsResponse instance */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static create(properties?: mysqlctl.IReadBinlogFilesTimestampsResponse): mysqlctl.ReadBinlogFilesTimestampsResponse; /** - * Creates new MysqlCtl service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Encodes the specified ReadBinlogFilesTimestampsResponse message. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsResponse.verify|verify} messages. + * @param message ReadBinlogFilesTimestampsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MysqlCtl; + public static encode(message: mysqlctl.IReadBinlogFilesTimestampsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls Start. - * @param request StartRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StartResponse + * Encodes the specified ReadBinlogFilesTimestampsResponse message, length delimited. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsResponse.verify|verify} messages. + * @param message ReadBinlogFilesTimestampsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public start(request: mysqlctl.IStartRequest, callback: mysqlctl.MysqlCtl.StartCallback): void; + public static encodeDelimited(message: mysqlctl.IReadBinlogFilesTimestampsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls Start. - * @param request StartRequest message or plain object - * @returns Promise + * Decodes a ReadBinlogFilesTimestampsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadBinlogFilesTimestampsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public start(request: mysqlctl.IStartRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ReadBinlogFilesTimestampsResponse; /** - * Calls Shutdown. - * @param request ShutdownRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ShutdownResponse + * Decodes a ReadBinlogFilesTimestampsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadBinlogFilesTimestampsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public shutdown(request: mysqlctl.IShutdownRequest, callback: mysqlctl.MysqlCtl.ShutdownCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ReadBinlogFilesTimestampsResponse; /** - * Calls Shutdown. - * @param request ShutdownRequest message or plain object - * @returns Promise + * Verifies a ReadBinlogFilesTimestampsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public shutdown(request: mysqlctl.IShutdownRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls RunMysqlUpgrade. - * @param request RunMysqlUpgradeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and RunMysqlUpgradeResponse + * Creates a ReadBinlogFilesTimestampsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadBinlogFilesTimestampsResponse */ - public runMysqlUpgrade(request: mysqlctl.IRunMysqlUpgradeRequest, callback: mysqlctl.MysqlCtl.RunMysqlUpgradeCallback): void; + public static fromObject(object: { [k: string]: any }): mysqlctl.ReadBinlogFilesTimestampsResponse; /** - * Calls RunMysqlUpgrade. - * @param request RunMysqlUpgradeRequest message or plain object - * @returns Promise + * Creates a plain object from a ReadBinlogFilesTimestampsResponse message. Also converts values to other types if specified. + * @param message ReadBinlogFilesTimestampsResponse + * @param [options] Conversion options + * @returns Plain object */ - public runMysqlUpgrade(request: mysqlctl.IRunMysqlUpgradeRequest): Promise; + public static toObject(message: mysqlctl.ReadBinlogFilesTimestampsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ApplyBinlogFile. - * @param request ApplyBinlogFileRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ApplyBinlogFileResponse + * Converts this ReadBinlogFilesTimestampsResponse to JSON. + * @returns JSON object */ - public applyBinlogFile(request: mysqlctl.IApplyBinlogFileRequest, callback: mysqlctl.MysqlCtl.ApplyBinlogFileCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ApplyBinlogFile. - * @param request ApplyBinlogFileRequest message or plain object - * @returns Promise + * Gets the default type url for ReadBinlogFilesTimestampsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public applyBinlogFile(request: mysqlctl.IApplyBinlogFileRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReinitConfigRequest. */ + interface IReinitConfigRequest { + } + + /** Represents a ReinitConfigRequest. */ + class ReinitConfigRequest implements IReinitConfigRequest { /** - * Calls ReadBinlogFilesTimestamps. - * @param request ReadBinlogFilesTimestampsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadBinlogFilesTimestampsResponse + * Constructs a new ReinitConfigRequest. + * @param [properties] Properties to set */ - public readBinlogFilesTimestamps(request: mysqlctl.IReadBinlogFilesTimestampsRequest, callback: mysqlctl.MysqlCtl.ReadBinlogFilesTimestampsCallback): void; + constructor(properties?: mysqlctl.IReinitConfigRequest); /** - * Calls ReadBinlogFilesTimestamps. - * @param request ReadBinlogFilesTimestampsRequest message or plain object - * @returns Promise + * Creates a new ReinitConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReinitConfigRequest instance */ - public readBinlogFilesTimestamps(request: mysqlctl.IReadBinlogFilesTimestampsRequest): Promise; + public static create(properties?: mysqlctl.IReinitConfigRequest): mysqlctl.ReinitConfigRequest; /** - * Calls ReinitConfig. - * @param request ReinitConfigRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReinitConfigResponse + * Encodes the specified ReinitConfigRequest message. Does not implicitly {@link mysqlctl.ReinitConfigRequest.verify|verify} messages. + * @param message ReinitConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public reinitConfig(request: mysqlctl.IReinitConfigRequest, callback: mysqlctl.MysqlCtl.ReinitConfigCallback): void; + public static encode(message: mysqlctl.IReinitConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ReinitConfig. - * @param request ReinitConfigRequest message or plain object - * @returns Promise + * Encodes the specified ReinitConfigRequest message, length delimited. Does not implicitly {@link mysqlctl.ReinitConfigRequest.verify|verify} messages. + * @param message ReinitConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public reinitConfig(request: mysqlctl.IReinitConfigRequest): Promise; + public static encodeDelimited(message: mysqlctl.IReinitConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls RefreshConfig. - * @param request RefreshConfigRequest message or plain object - * @param callback Node-style callback called with the error, if any, and RefreshConfigResponse + * Decodes a ReinitConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReinitConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public refreshConfig(request: mysqlctl.IRefreshConfigRequest, callback: mysqlctl.MysqlCtl.RefreshConfigCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ReinitConfigRequest; /** - * Calls RefreshConfig. - * @param request RefreshConfigRequest message or plain object - * @returns Promise + * Decodes a ReinitConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReinitConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public refreshConfig(request: mysqlctl.IRefreshConfigRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ReinitConfigRequest; /** - * Calls VersionString. - * @param request VersionStringRequest message or plain object - * @param callback Node-style callback called with the error, if any, and VersionStringResponse + * Verifies a ReinitConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public versionString(request: mysqlctl.IVersionStringRequest, callback: mysqlctl.MysqlCtl.VersionStringCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls VersionString. - * @param request VersionStringRequest message or plain object - * @returns Promise + * Creates a ReinitConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReinitConfigRequest */ - public versionString(request: mysqlctl.IVersionStringRequest): Promise; + public static fromObject(object: { [k: string]: any }): mysqlctl.ReinitConfigRequest; /** - * Calls HostMetrics. - * @param request HostMetricsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HostMetricsResponse + * Creates a plain object from a ReinitConfigRequest message. Also converts values to other types if specified. + * @param message ReinitConfigRequest + * @param [options] Conversion options + * @returns Plain object */ - public hostMetrics(request: mysqlctl.IHostMetricsRequest, callback: mysqlctl.MysqlCtl.HostMetricsCallback): void; + public static toObject(message: mysqlctl.ReinitConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls HostMetrics. - * @param request HostMetricsRequest message or plain object - * @returns Promise + * Converts this ReinitConfigRequest to JSON. + * @returns JSON object */ - public hostMetrics(request: mysqlctl.IHostMetricsRequest): Promise; + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReinitConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MysqlCtl { + /** Properties of a ReinitConfigResponse. */ + interface IReinitConfigResponse { + } + + /** Represents a ReinitConfigResponse. */ + class ReinitConfigResponse implements IReinitConfigResponse { /** - * Callback as used by {@link mysqlctl.MysqlCtl#start}. - * @param error Error, if any - * @param [response] StartResponse + * Constructs a new ReinitConfigResponse. + * @param [properties] Properties to set */ - type StartCallback = (error: (Error|null), response?: mysqlctl.StartResponse) => void; + constructor(properties?: mysqlctl.IReinitConfigResponse); /** - * Callback as used by {@link mysqlctl.MysqlCtl#shutdown}. - * @param error Error, if any - * @param [response] ShutdownResponse + * Creates a new ReinitConfigResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReinitConfigResponse instance */ - type ShutdownCallback = (error: (Error|null), response?: mysqlctl.ShutdownResponse) => void; + public static create(properties?: mysqlctl.IReinitConfigResponse): mysqlctl.ReinitConfigResponse; /** - * Callback as used by {@link mysqlctl.MysqlCtl#runMysqlUpgrade}. - * @param error Error, if any - * @param [response] RunMysqlUpgradeResponse + * Encodes the specified ReinitConfigResponse message. Does not implicitly {@link mysqlctl.ReinitConfigResponse.verify|verify} messages. + * @param message ReinitConfigResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type RunMysqlUpgradeCallback = (error: (Error|null), response?: mysqlctl.RunMysqlUpgradeResponse) => void; + public static encode(message: mysqlctl.IReinitConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link mysqlctl.MysqlCtl#applyBinlogFile}. - * @param error Error, if any - * @param [response] ApplyBinlogFileResponse + * Encodes the specified ReinitConfigResponse message, length delimited. Does not implicitly {@link mysqlctl.ReinitConfigResponse.verify|verify} messages. + * @param message ReinitConfigResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ApplyBinlogFileCallback = (error: (Error|null), response?: mysqlctl.ApplyBinlogFileResponse) => void; + public static encodeDelimited(message: mysqlctl.IReinitConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link mysqlctl.MysqlCtl#readBinlogFilesTimestamps}. - * @param error Error, if any - * @param [response] ReadBinlogFilesTimestampsResponse + * Decodes a ReinitConfigResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReinitConfigResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ReadBinlogFilesTimestampsCallback = (error: (Error|null), response?: mysqlctl.ReadBinlogFilesTimestampsResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ReinitConfigResponse; /** - * Callback as used by {@link mysqlctl.MysqlCtl#reinitConfig}. - * @param error Error, if any - * @param [response] ReinitConfigResponse + * Decodes a ReinitConfigResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReinitConfigResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ReinitConfigCallback = (error: (Error|null), response?: mysqlctl.ReinitConfigResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ReinitConfigResponse; /** - * Callback as used by {@link mysqlctl.MysqlCtl#refreshConfig}. - * @param error Error, if any - * @param [response] RefreshConfigResponse + * Verifies a ReinitConfigResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type RefreshConfigCallback = (error: (Error|null), response?: mysqlctl.RefreshConfigResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link mysqlctl.MysqlCtl#versionString}. - * @param error Error, if any - * @param [response] VersionStringResponse + * Creates a ReinitConfigResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReinitConfigResponse */ - type VersionStringCallback = (error: (Error|null), response?: mysqlctl.VersionStringResponse) => void; + public static fromObject(object: { [k: string]: any }): mysqlctl.ReinitConfigResponse; /** - * Callback as used by {@link mysqlctl.MysqlCtl#hostMetrics}. - * @param error Error, if any - * @param [response] HostMetricsResponse + * Creates a plain object from a ReinitConfigResponse message. Also converts values to other types if specified. + * @param message ReinitConfigResponse + * @param [options] Conversion options + * @returns Plain object */ - type HostMetricsCallback = (error: (Error|null), response?: mysqlctl.HostMetricsResponse) => void; - } - - /** Properties of a BackupInfo. */ - interface IBackupInfo { - - /** BackupInfo name */ - name?: (string|null); - - /** BackupInfo directory */ - directory?: (string|null); - - /** BackupInfo keyspace */ - keyspace?: (string|null); - - /** BackupInfo shard */ - shard?: (string|null); - - /** BackupInfo tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + public static toObject(message: mysqlctl.ReinitConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** BackupInfo time */ - time?: (vttime.ITime|null); + /** + * Converts this ReinitConfigResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** BackupInfo engine */ - engine?: (string|null); + /** + * Gets the default type url for ReinitConfigResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** BackupInfo status */ - status?: (mysqlctl.BackupInfo.Status|null); + /** Properties of a RefreshConfigRequest. */ + interface IRefreshConfigRequest { } - /** Represents a BackupInfo. */ - class BackupInfo implements IBackupInfo { + /** Represents a RefreshConfigRequest. */ + class RefreshConfigRequest implements IRefreshConfigRequest { /** - * Constructs a new BackupInfo. + * Constructs a new RefreshConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IBackupInfo); - - /** BackupInfo name. */ - public name: string; - - /** BackupInfo directory. */ - public directory: string; - - /** BackupInfo keyspace. */ - public keyspace: string; - - /** BackupInfo shard. */ - public shard: string; - - /** BackupInfo tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** BackupInfo time. */ - public time?: (vttime.ITime|null); - - /** BackupInfo engine. */ - public engine: string; - - /** BackupInfo status. */ - public status: mysqlctl.BackupInfo.Status; + constructor(properties?: mysqlctl.IRefreshConfigRequest); /** - * Creates a new BackupInfo instance using the specified properties. + * Creates a new RefreshConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BackupInfo instance + * @returns RefreshConfigRequest instance */ - public static create(properties?: mysqlctl.IBackupInfo): mysqlctl.BackupInfo; + public static create(properties?: mysqlctl.IRefreshConfigRequest): mysqlctl.RefreshConfigRequest; /** - * Encodes the specified BackupInfo message. Does not implicitly {@link mysqlctl.BackupInfo.verify|verify} messages. - * @param message BackupInfo message or plain object to encode + * Encodes the specified RefreshConfigRequest message. Does not implicitly {@link mysqlctl.RefreshConfigRequest.verify|verify} messages. + * @param message RefreshConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: mysqlctl.IBackupInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IRefreshConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BackupInfo message, length delimited. Does not implicitly {@link mysqlctl.BackupInfo.verify|verify} messages. - * @param message BackupInfo message or plain object to encode + * Encodes the specified RefreshConfigRequest message, length delimited. Does not implicitly {@link mysqlctl.RefreshConfigRequest.verify|verify} messages. + * @param message RefreshConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: mysqlctl.IBackupInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IRefreshConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BackupInfo message from the specified reader or buffer. + * Decodes a RefreshConfigRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BackupInfo + * @returns RefreshConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.BackupInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.RefreshConfigRequest; /** - * Decodes a BackupInfo message from the specified reader or buffer, length delimited. + * Decodes a RefreshConfigRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BackupInfo + * @returns RefreshConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.BackupInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.RefreshConfigRequest; /** - * Verifies a BackupInfo message. + * Verifies a RefreshConfigRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BackupInfo message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshConfigRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BackupInfo + * @returns RefreshConfigRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.BackupInfo; + public static fromObject(object: { [k: string]: any }): mysqlctl.RefreshConfigRequest; /** - * Creates a plain object from a BackupInfo message. Also converts values to other types if specified. - * @param message BackupInfo + * Creates a plain object from a RefreshConfigRequest message. Also converts values to other types if specified. + * @param message RefreshConfigRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.BackupInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.RefreshConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BackupInfo to JSON. + * Converts this RefreshConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BackupInfo + * Gets the default type url for RefreshConfigRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace BackupInfo { - - /** Status enum. */ - enum Status { - UNKNOWN = 0, - INCOMPLETE = 1, - COMPLETE = 2, - INVALID = 3, - VALID = 4 - } - } -} - -/** Namespace topodata. */ -export namespace topodata { - - /** Properties of a KeyRange. */ - interface IKeyRange { - - /** KeyRange start */ - start?: (Uint8Array|null); - - /** KeyRange end */ - end?: (Uint8Array|null); + /** Properties of a RefreshConfigResponse. */ + interface IRefreshConfigResponse { } - /** Represents a KeyRange. */ - class KeyRange implements IKeyRange { + /** Represents a RefreshConfigResponse. */ + class RefreshConfigResponse implements IRefreshConfigResponse { /** - * Constructs a new KeyRange. + * Constructs a new RefreshConfigResponse. * @param [properties] Properties to set */ - constructor(properties?: topodata.IKeyRange); - - /** KeyRange start. */ - public start: Uint8Array; - - /** KeyRange end. */ - public end: Uint8Array; + constructor(properties?: mysqlctl.IRefreshConfigResponse); /** - * Creates a new KeyRange instance using the specified properties. + * Creates a new RefreshConfigResponse instance using the specified properties. * @param [properties] Properties to set - * @returns KeyRange instance + * @returns RefreshConfigResponse instance */ - public static create(properties?: topodata.IKeyRange): topodata.KeyRange; + public static create(properties?: mysqlctl.IRefreshConfigResponse): mysqlctl.RefreshConfigResponse; /** - * Encodes the specified KeyRange message. Does not implicitly {@link topodata.KeyRange.verify|verify} messages. - * @param message KeyRange message or plain object to encode + * Encodes the specified RefreshConfigResponse message. Does not implicitly {@link mysqlctl.RefreshConfigResponse.verify|verify} messages. + * @param message RefreshConfigResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: topodata.IKeyRange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IRefreshConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified KeyRange message, length delimited. Does not implicitly {@link topodata.KeyRange.verify|verify} messages. - * @param message KeyRange message or plain object to encode + * Encodes the specified RefreshConfigResponse message, length delimited. Does not implicitly {@link mysqlctl.RefreshConfigResponse.verify|verify} messages. + * @param message RefreshConfigResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: topodata.IKeyRange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IRefreshConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KeyRange message from the specified reader or buffer. + * Decodes a RefreshConfigResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns KeyRange + * @returns RefreshConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.KeyRange; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.RefreshConfigResponse; /** - * Decodes a KeyRange message from the specified reader or buffer, length delimited. + * Decodes a RefreshConfigResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns KeyRange + * @returns RefreshConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.KeyRange; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.RefreshConfigResponse; /** - * Verifies a KeyRange message. + * Verifies a RefreshConfigResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a KeyRange message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshConfigResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns KeyRange + * @returns RefreshConfigResponse */ - public static fromObject(object: { [k: string]: any }): topodata.KeyRange; + public static fromObject(object: { [k: string]: any }): mysqlctl.RefreshConfigResponse; /** - * Creates a plain object from a KeyRange message. Also converts values to other types if specified. - * @param message KeyRange + * Creates a plain object from a RefreshConfigResponse message. Also converts values to other types if specified. + * @param message RefreshConfigResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.KeyRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.RefreshConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this KeyRange to JSON. + * Converts this RefreshConfigResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for KeyRange + * Gets the default type url for RefreshConfigResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** KeyspaceType enum. */ - enum KeyspaceType { - NORMAL = 0, - SNAPSHOT = 1 - } - - /** Properties of a TabletAlias. */ - interface ITabletAlias { - - /** TabletAlias cell */ - cell?: (string|null); - - /** TabletAlias uid */ - uid?: (number|null); + /** Properties of a VersionStringRequest. */ + interface IVersionStringRequest { } - /** Represents a TabletAlias. */ - class TabletAlias implements ITabletAlias { + /** Represents a VersionStringRequest. */ + class VersionStringRequest implements IVersionStringRequest { /** - * Constructs a new TabletAlias. + * Constructs a new VersionStringRequest. * @param [properties] Properties to set */ - constructor(properties?: topodata.ITabletAlias); - - /** TabletAlias cell. */ - public cell: string; - - /** TabletAlias uid. */ - public uid: number; + constructor(properties?: mysqlctl.IVersionStringRequest); /** - * Creates a new TabletAlias instance using the specified properties. + * Creates a new VersionStringRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TabletAlias instance + * @returns VersionStringRequest instance */ - public static create(properties?: topodata.ITabletAlias): topodata.TabletAlias; + public static create(properties?: mysqlctl.IVersionStringRequest): mysqlctl.VersionStringRequest; /** - * Encodes the specified TabletAlias message. Does not implicitly {@link topodata.TabletAlias.verify|verify} messages. - * @param message TabletAlias message or plain object to encode + * Encodes the specified VersionStringRequest message. Does not implicitly {@link mysqlctl.VersionStringRequest.verify|verify} messages. + * @param message VersionStringRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: topodata.ITabletAlias, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IVersionStringRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TabletAlias message, length delimited. Does not implicitly {@link topodata.TabletAlias.verify|verify} messages. - * @param message TabletAlias message or plain object to encode + * Encodes the specified VersionStringRequest message, length delimited. Does not implicitly {@link mysqlctl.VersionStringRequest.verify|verify} messages. + * @param message VersionStringRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: topodata.ITabletAlias, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IVersionStringRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TabletAlias message from the specified reader or buffer. + * Decodes a VersionStringRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TabletAlias + * @returns VersionStringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.TabletAlias; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.VersionStringRequest; /** - * Decodes a TabletAlias message from the specified reader or buffer, length delimited. + * Decodes a VersionStringRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TabletAlias + * @returns VersionStringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.TabletAlias; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.VersionStringRequest; /** - * Verifies a TabletAlias message. + * Verifies a VersionStringRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TabletAlias message from a plain object. Also converts values to their respective internal types. + * Creates a VersionStringRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TabletAlias + * @returns VersionStringRequest */ - public static fromObject(object: { [k: string]: any }): topodata.TabletAlias; + public static fromObject(object: { [k: string]: any }): mysqlctl.VersionStringRequest; /** - * Creates a plain object from a TabletAlias message. Also converts values to other types if specified. - * @param message TabletAlias + * Creates a plain object from a VersionStringRequest message. Also converts values to other types if specified. + * @param message VersionStringRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.TabletAlias, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.VersionStringRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TabletAlias to JSON. + * Converts this VersionStringRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TabletAlias + * Gets the default type url for VersionStringRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** TabletType enum. */ - enum TabletType { - UNKNOWN = 0, - PRIMARY = 1, - MASTER = 1, - REPLICA = 2, - RDONLY = 3, - BATCH = 3, - SPARE = 4, - EXPERIMENTAL = 5, - BACKUP = 6, - RESTORE = 7, - DRAINED = 8 + /** Properties of a VersionStringResponse. */ + interface IVersionStringResponse { + + /** VersionStringResponse version */ + version?: (string|null); } - /** Properties of a Tablet. */ - interface ITablet { + /** Represents a VersionStringResponse. */ + class VersionStringResponse implements IVersionStringResponse { - /** Tablet alias */ - alias?: (topodata.ITabletAlias|null); + /** + * Constructs a new VersionStringResponse. + * @param [properties] Properties to set + */ + constructor(properties?: mysqlctl.IVersionStringResponse); - /** Tablet hostname */ - hostname?: (string|null); + /** VersionStringResponse version. */ + public version: string; - /** Tablet port_map */ - port_map?: ({ [k: string]: number }|null); + /** + * Creates a new VersionStringResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns VersionStringResponse instance + */ + public static create(properties?: mysqlctl.IVersionStringResponse): mysqlctl.VersionStringResponse; - /** Tablet keyspace */ - keyspace?: (string|null); + /** + * Encodes the specified VersionStringResponse message. Does not implicitly {@link mysqlctl.VersionStringResponse.verify|verify} messages. + * @param message VersionStringResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: mysqlctl.IVersionStringResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Tablet shard */ - shard?: (string|null); + /** + * Encodes the specified VersionStringResponse message, length delimited. Does not implicitly {@link mysqlctl.VersionStringResponse.verify|verify} messages. + * @param message VersionStringResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: mysqlctl.IVersionStringResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Tablet key_range */ - key_range?: (topodata.IKeyRange|null); + /** + * Decodes a VersionStringResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VersionStringResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.VersionStringResponse; - /** Tablet type */ - type?: (topodata.TabletType|null); + /** + * Decodes a VersionStringResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VersionStringResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.VersionStringResponse; - /** Tablet db_name_override */ - db_name_override?: (string|null); + /** + * Verifies a VersionStringResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Tablet tags */ - tags?: ({ [k: string]: string }|null); + /** + * Creates a VersionStringResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VersionStringResponse + */ + public static fromObject(object: { [k: string]: any }): mysqlctl.VersionStringResponse; - /** Tablet mysql_hostname */ - mysql_hostname?: (string|null); + /** + * Creates a plain object from a VersionStringResponse message. Also converts values to other types if specified. + * @param message VersionStringResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: mysqlctl.VersionStringResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Tablet mysql_port */ - mysql_port?: (number|null); + /** + * Converts this VersionStringResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Tablet primary_term_start_time */ - primary_term_start_time?: (vttime.ITime|null); + /** + * Gets the default type url for VersionStringResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Tablet default_conn_collation */ - default_conn_collation?: (number|null); + /** Properties of a HostMetricsRequest. */ + interface IHostMetricsRequest { } - /** Represents a Tablet. */ - class Tablet implements ITablet { + /** Represents a HostMetricsRequest. */ + class HostMetricsRequest implements IHostMetricsRequest { /** - * Constructs a new Tablet. + * Constructs a new HostMetricsRequest. * @param [properties] Properties to set */ - constructor(properties?: topodata.ITablet); - - /** Tablet alias. */ - public alias?: (topodata.ITabletAlias|null); - - /** Tablet hostname. */ - public hostname: string; - - /** Tablet port_map. */ - public port_map: { [k: string]: number }; - - /** Tablet keyspace. */ - public keyspace: string; - - /** Tablet shard. */ - public shard: string; - - /** Tablet key_range. */ - public key_range?: (topodata.IKeyRange|null); - - /** Tablet type. */ - public type: topodata.TabletType; - - /** Tablet db_name_override. */ - public db_name_override: string; - - /** Tablet tags. */ - public tags: { [k: string]: string }; - - /** Tablet mysql_hostname. */ - public mysql_hostname: string; - - /** Tablet mysql_port. */ - public mysql_port: number; - - /** Tablet primary_term_start_time. */ - public primary_term_start_time?: (vttime.ITime|null); - - /** Tablet default_conn_collation. */ - public default_conn_collation: number; + constructor(properties?: mysqlctl.IHostMetricsRequest); /** - * Creates a new Tablet instance using the specified properties. + * Creates a new HostMetricsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Tablet instance + * @returns HostMetricsRequest instance */ - public static create(properties?: topodata.ITablet): topodata.Tablet; + public static create(properties?: mysqlctl.IHostMetricsRequest): mysqlctl.HostMetricsRequest; /** - * Encodes the specified Tablet message. Does not implicitly {@link topodata.Tablet.verify|verify} messages. - * @param message Tablet message or plain object to encode + * Encodes the specified HostMetricsRequest message. Does not implicitly {@link mysqlctl.HostMetricsRequest.verify|verify} messages. + * @param message HostMetricsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: topodata.ITablet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IHostMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Tablet message, length delimited. Does not implicitly {@link topodata.Tablet.verify|verify} messages. - * @param message Tablet message or plain object to encode + * Encodes the specified HostMetricsRequest message, length delimited. Does not implicitly {@link mysqlctl.HostMetricsRequest.verify|verify} messages. + * @param message HostMetricsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: topodata.ITablet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IHostMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Tablet message from the specified reader or buffer. + * Decodes a HostMetricsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Tablet + * @returns HostMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.Tablet; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.HostMetricsRequest; /** - * Decodes a Tablet message from the specified reader or buffer, length delimited. + * Decodes a HostMetricsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Tablet + * @returns HostMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.Tablet; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.HostMetricsRequest; /** - * Verifies a Tablet message. + * Verifies a HostMetricsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Tablet message from a plain object. Also converts values to their respective internal types. + * Creates a HostMetricsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Tablet + * @returns HostMetricsRequest */ - public static fromObject(object: { [k: string]: any }): topodata.Tablet; + public static fromObject(object: { [k: string]: any }): mysqlctl.HostMetricsRequest; /** - * Creates a plain object from a Tablet message. Also converts values to other types if specified. - * @param message Tablet + * Creates a plain object from a HostMetricsRequest message. Also converts values to other types if specified. + * @param message HostMetricsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.Tablet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.HostMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Tablet to JSON. + * Converts this HostMetricsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Tablet + * Gets the default type url for HostMetricsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Shard. */ - interface IShard { - - /** Shard primary_alias */ - primary_alias?: (topodata.ITabletAlias|null); - - /** Shard primary_term_start_time */ - primary_term_start_time?: (vttime.ITime|null); - - /** Shard key_range */ - key_range?: (topodata.IKeyRange|null); - - /** Shard source_shards */ - source_shards?: (topodata.Shard.ISourceShard[]|null); - - /** Shard tablet_controls */ - tablet_controls?: (topodata.Shard.ITabletControl[]|null); + /** Properties of a HostMetricsResponse. */ + interface IHostMetricsResponse { - /** Shard is_primary_serving */ - is_primary_serving?: (boolean|null); + /** HostMetricsResponse metrics */ + metrics?: ({ [k: string]: mysqlctl.HostMetricsResponse.IMetric }|null); } - /** Represents a Shard. */ - class Shard implements IShard { + /** Represents a HostMetricsResponse. */ + class HostMetricsResponse implements IHostMetricsResponse { /** - * Constructs a new Shard. + * Constructs a new HostMetricsResponse. * @param [properties] Properties to set */ - constructor(properties?: topodata.IShard); - - /** Shard primary_alias. */ - public primary_alias?: (topodata.ITabletAlias|null); - - /** Shard primary_term_start_time. */ - public primary_term_start_time?: (vttime.ITime|null); - - /** Shard key_range. */ - public key_range?: (topodata.IKeyRange|null); - - /** Shard source_shards. */ - public source_shards: topodata.Shard.ISourceShard[]; - - /** Shard tablet_controls. */ - public tablet_controls: topodata.Shard.ITabletControl[]; + constructor(properties?: mysqlctl.IHostMetricsResponse); - /** Shard is_primary_serving. */ - public is_primary_serving: boolean; + /** HostMetricsResponse metrics. */ + public metrics: { [k: string]: mysqlctl.HostMetricsResponse.IMetric }; /** - * Creates a new Shard instance using the specified properties. + * Creates a new HostMetricsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Shard instance + * @returns HostMetricsResponse instance */ - public static create(properties?: topodata.IShard): topodata.Shard; + public static create(properties?: mysqlctl.IHostMetricsResponse): mysqlctl.HostMetricsResponse; /** - * Encodes the specified Shard message. Does not implicitly {@link topodata.Shard.verify|verify} messages. - * @param message Shard message or plain object to encode + * Encodes the specified HostMetricsResponse message. Does not implicitly {@link mysqlctl.HostMetricsResponse.verify|verify} messages. + * @param message HostMetricsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: topodata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IHostMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Shard message, length delimited. Does not implicitly {@link topodata.Shard.verify|verify} messages. - * @param message Shard message or plain object to encode + * Encodes the specified HostMetricsResponse message, length delimited. Does not implicitly {@link mysqlctl.HostMetricsResponse.verify|verify} messages. + * @param message HostMetricsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: topodata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IHostMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Shard message from the specified reader or buffer. + * Decodes a HostMetricsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Shard + * @returns HostMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.Shard; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.HostMetricsResponse; /** - * Decodes a Shard message from the specified reader or buffer, length delimited. + * Decodes a HostMetricsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Shard + * @returns HostMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.Shard; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.HostMetricsResponse; /** - * Verifies a Shard message. + * Verifies a HostMetricsResponse message. * @param message Plain object 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. + * Creates a HostMetricsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Shard + * @returns HostMetricsResponse */ - public static fromObject(object: { [k: string]: any }): topodata.Shard; + public static fromObject(object: { [k: string]: any }): mysqlctl.HostMetricsResponse; /** - * Creates a plain object from a Shard message. Also converts values to other types if specified. - * @param message Shard + * Creates a plain object from a HostMetricsResponse message. Also converts values to other types if specified. + * @param message HostMetricsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.Shard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.HostMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Shard to JSON. + * Converts this HostMetricsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Shard + * Gets the default type url for HostMetricsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Shard { - - /** Properties of a SourceShard. */ - interface ISourceShard { - - /** SourceShard uid */ - uid?: (number|null); + namespace HostMetricsResponse { - /** SourceShard keyspace */ - keyspace?: (string|null); + /** Properties of a Metric. */ + interface IMetric { - /** SourceShard shard */ - shard?: (string|null); + /** Metric name */ + name?: (string|null); - /** SourceShard key_range */ - key_range?: (topodata.IKeyRange|null); + /** Metric value */ + value?: (number|null); - /** SourceShard tables */ - tables?: (string[]|null); + /** Metric error */ + error?: (vtrpc.IRPCError|null); } - /** Represents a SourceShard. */ - class SourceShard implements ISourceShard { + /** Represents a Metric. */ + class Metric implements IMetric { /** - * Constructs a new SourceShard. + * Constructs a new Metric. * @param [properties] Properties to set */ - constructor(properties?: topodata.Shard.ISourceShard); - - /** SourceShard uid. */ - public uid: number; - - /** SourceShard keyspace. */ - public keyspace: string; + constructor(properties?: mysqlctl.HostMetricsResponse.IMetric); - /** SourceShard shard. */ - public shard: string; + /** Metric name. */ + public name: string; - /** SourceShard key_range. */ - public key_range?: (topodata.IKeyRange|null); + /** Metric value. */ + public value: number; - /** SourceShard tables. */ - public tables: string[]; + /** Metric error. */ + public error?: (vtrpc.IRPCError|null); /** - * Creates a new SourceShard instance using the specified properties. + * Creates a new Metric instance using the specified properties. * @param [properties] Properties to set - * @returns SourceShard instance + * @returns Metric instance */ - public static create(properties?: topodata.Shard.ISourceShard): topodata.Shard.SourceShard; + public static create(properties?: mysqlctl.HostMetricsResponse.IMetric): mysqlctl.HostMetricsResponse.Metric; /** - * Encodes the specified SourceShard message. Does not implicitly {@link topodata.Shard.SourceShard.verify|verify} messages. - * @param message SourceShard message or plain object to encode + * Encodes the specified Metric message. Does not implicitly {@link mysqlctl.HostMetricsResponse.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: topodata.Shard.ISourceShard, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.HostMetricsResponse.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SourceShard message, length delimited. Does not implicitly {@link topodata.Shard.SourceShard.verify|verify} messages. - * @param message SourceShard message or plain object to encode + * Encodes the specified Metric message, length delimited. Does not implicitly {@link mysqlctl.HostMetricsResponse.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: topodata.Shard.ISourceShard, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.HostMetricsResponse.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SourceShard message from the specified reader or buffer. + * Decodes a Metric message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SourceShard + * @returns Metric * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.Shard.SourceShard; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.HostMetricsResponse.Metric; /** - * Decodes a SourceShard message from the specified reader or buffer, length delimited. + * Decodes a Metric message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SourceShard + * @returns Metric * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.Shard.SourceShard; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.HostMetricsResponse.Metric; /** - * Verifies a SourceShard message. + * Verifies a Metric message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SourceShard message from a plain object. Also converts values to their respective internal types. + * Creates a Metric message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SourceShard + * @returns Metric */ - public static fromObject(object: { [k: string]: any }): topodata.Shard.SourceShard; + public static fromObject(object: { [k: string]: any }): mysqlctl.HostMetricsResponse.Metric; /** - * Creates a plain object from a SourceShard message. Also converts values to other types if specified. - * @param message SourceShard + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @param message Metric * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.Shard.SourceShard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.HostMetricsResponse.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SourceShard to JSON. + * Converts this Metric to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SourceShard + * Gets the default type url for Metric * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Properties of a TabletControl. */ - interface ITabletControl { - - /** TabletControl tablet_type */ - tablet_type?: (topodata.TabletType|null); + /** Represents a MysqlCtl */ + class MysqlCtl extends $protobuf.rpc.Service { - /** TabletControl cells */ - cells?: (string[]|null); + /** + * Constructs a new MysqlCtl service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** TabletControl denied_tables */ - denied_tables?: (string[]|null); + /** + * Creates new MysqlCtl service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MysqlCtl; - /** TabletControl frozen */ - frozen?: (boolean|null); - } + /** + * Calls Start. + * @param request StartRequest message or plain object + * @param callback Node-style callback called with the error, if any, and StartResponse + */ + public start(request: mysqlctl.IStartRequest, callback: mysqlctl.MysqlCtl.StartCallback): void; - /** Represents a TabletControl. */ - class TabletControl implements ITabletControl { + /** + * Calls Start. + * @param request StartRequest message or plain object + * @returns Promise + */ + public start(request: mysqlctl.IStartRequest): Promise; - /** - * Constructs a new TabletControl. - * @param [properties] Properties to set - */ - constructor(properties?: topodata.Shard.ITabletControl); + /** + * Calls Shutdown. + * @param request ShutdownRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ShutdownResponse + */ + public shutdown(request: mysqlctl.IShutdownRequest, callback: mysqlctl.MysqlCtl.ShutdownCallback): void; - /** TabletControl tablet_type. */ - public tablet_type: topodata.TabletType; + /** + * Calls Shutdown. + * @param request ShutdownRequest message or plain object + * @returns Promise + */ + public shutdown(request: mysqlctl.IShutdownRequest): Promise; - /** TabletControl cells. */ - public cells: string[]; + /** + * Calls RunMysqlUpgrade. + * @param request RunMysqlUpgradeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RunMysqlUpgradeResponse + */ + public runMysqlUpgrade(request: mysqlctl.IRunMysqlUpgradeRequest, callback: mysqlctl.MysqlCtl.RunMysqlUpgradeCallback): void; - /** TabletControl denied_tables. */ - public denied_tables: string[]; + /** + * Calls RunMysqlUpgrade. + * @param request RunMysqlUpgradeRequest message or plain object + * @returns Promise + */ + public runMysqlUpgrade(request: mysqlctl.IRunMysqlUpgradeRequest): Promise; - /** TabletControl frozen. */ - public frozen: boolean; + /** + * Calls ApplyBinlogFile. + * @param request ApplyBinlogFileRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ApplyBinlogFileResponse + */ + public applyBinlogFile(request: mysqlctl.IApplyBinlogFileRequest, callback: mysqlctl.MysqlCtl.ApplyBinlogFileCallback): void; - /** - * Creates a new TabletControl instance using the specified properties. - * @param [properties] Properties to set - * @returns TabletControl instance - */ - public static create(properties?: topodata.Shard.ITabletControl): topodata.Shard.TabletControl; + /** + * Calls ApplyBinlogFile. + * @param request ApplyBinlogFileRequest message or plain object + * @returns Promise + */ + public applyBinlogFile(request: mysqlctl.IApplyBinlogFileRequest): Promise; - /** - * Encodes the specified TabletControl message. Does not implicitly {@link topodata.Shard.TabletControl.verify|verify} messages. - * @param message TabletControl message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: topodata.Shard.ITabletControl, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls ReadBinlogFilesTimestamps. + * @param request ReadBinlogFilesTimestampsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadBinlogFilesTimestampsResponse + */ + public readBinlogFilesTimestamps(request: mysqlctl.IReadBinlogFilesTimestampsRequest, callback: mysqlctl.MysqlCtl.ReadBinlogFilesTimestampsCallback): void; - /** - * Encodes the specified TabletControl message, length delimited. Does not implicitly {@link topodata.Shard.TabletControl.verify|verify} messages. - * @param message TabletControl message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: topodata.Shard.ITabletControl, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls ReadBinlogFilesTimestamps. + * @param request ReadBinlogFilesTimestampsRequest message or plain object + * @returns Promise + */ + public readBinlogFilesTimestamps(request: mysqlctl.IReadBinlogFilesTimestampsRequest): Promise; - /** - * Decodes a TabletControl message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabletControl - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.Shard.TabletControl; + /** + * Calls ReinitConfig. + * @param request ReinitConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReinitConfigResponse + */ + public reinitConfig(request: mysqlctl.IReinitConfigRequest, callback: mysqlctl.MysqlCtl.ReinitConfigCallback): void; - /** - * Decodes a TabletControl message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabletControl - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.Shard.TabletControl; + /** + * Calls ReinitConfig. + * @param request ReinitConfigRequest message or plain object + * @returns Promise + */ + public reinitConfig(request: mysqlctl.IReinitConfigRequest): Promise; - /** - * Verifies a TabletControl message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Calls RefreshConfig. + * @param request RefreshConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RefreshConfigResponse + */ + public refreshConfig(request: mysqlctl.IRefreshConfigRequest, callback: mysqlctl.MysqlCtl.RefreshConfigCallback): void; - /** - * Creates a TabletControl message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabletControl - */ - public static fromObject(object: { [k: string]: any }): topodata.Shard.TabletControl; + /** + * Calls RefreshConfig. + * @param request RefreshConfigRequest message or plain object + * @returns Promise + */ + public refreshConfig(request: mysqlctl.IRefreshConfigRequest): Promise; - /** - * Creates a plain object from a TabletControl message. Also converts values to other types if specified. - * @param message TabletControl - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: topodata.Shard.TabletControl, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Calls VersionString. + * @param request VersionStringRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VersionStringResponse + */ + public versionString(request: mysqlctl.IVersionStringRequest, callback: mysqlctl.MysqlCtl.VersionStringCallback): void; - /** - * Converts this TabletControl to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Calls VersionString. + * @param request VersionStringRequest message or plain object + * @returns Promise + */ + public versionString(request: mysqlctl.IVersionStringRequest): Promise; - /** - * Gets the default type url for TabletControl - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Calls HostMetrics. + * @param request HostMetricsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HostMetricsResponse + */ + public hostMetrics(request: mysqlctl.IHostMetricsRequest, callback: mysqlctl.MysqlCtl.HostMetricsCallback): void; + + /** + * Calls HostMetrics. + * @param request HostMetricsRequest message or plain object + * @returns Promise + */ + public hostMetrics(request: mysqlctl.IHostMetricsRequest): Promise; } - /** Properties of a Keyspace. */ - interface IKeyspace { + namespace MysqlCtl { - /** Keyspace keyspace_type */ - keyspace_type?: (topodata.KeyspaceType|null); + /** + * Callback as used by {@link mysqlctl.MysqlCtl#start}. + * @param error Error, if any + * @param [response] StartResponse + */ + type StartCallback = (error: (Error|null), response?: mysqlctl.StartResponse) => void; - /** Keyspace base_keyspace */ - base_keyspace?: (string|null); + /** + * Callback as used by {@link mysqlctl.MysqlCtl#shutdown}. + * @param error Error, if any + * @param [response] ShutdownResponse + */ + type ShutdownCallback = (error: (Error|null), response?: mysqlctl.ShutdownResponse) => void; - /** Keyspace snapshot_time */ - snapshot_time?: (vttime.ITime|null); + /** + * Callback as used by {@link mysqlctl.MysqlCtl#runMysqlUpgrade}. + * @param error Error, if any + * @param [response] RunMysqlUpgradeResponse + */ + type RunMysqlUpgradeCallback = (error: (Error|null), response?: mysqlctl.RunMysqlUpgradeResponse) => void; - /** Keyspace durability_policy */ - durability_policy?: (string|null); + /** + * Callback as used by {@link mysqlctl.MysqlCtl#applyBinlogFile}. + * @param error Error, if any + * @param [response] ApplyBinlogFileResponse + */ + type ApplyBinlogFileCallback = (error: (Error|null), response?: mysqlctl.ApplyBinlogFileResponse) => void; - /** Keyspace throttler_config */ - throttler_config?: (topodata.IThrottlerConfig|null); + /** + * Callback as used by {@link mysqlctl.MysqlCtl#readBinlogFilesTimestamps}. + * @param error Error, if any + * @param [response] ReadBinlogFilesTimestampsResponse + */ + type ReadBinlogFilesTimestampsCallback = (error: (Error|null), response?: mysqlctl.ReadBinlogFilesTimestampsResponse) => void; - /** Keyspace sidecar_db_name */ - sidecar_db_name?: (string|null); + /** + * Callback as used by {@link mysqlctl.MysqlCtl#reinitConfig}. + * @param error Error, if any + * @param [response] ReinitConfigResponse + */ + type ReinitConfigCallback = (error: (Error|null), response?: mysqlctl.ReinitConfigResponse) => void; + + /** + * Callback as used by {@link mysqlctl.MysqlCtl#refreshConfig}. + * @param error Error, if any + * @param [response] RefreshConfigResponse + */ + type RefreshConfigCallback = (error: (Error|null), response?: mysqlctl.RefreshConfigResponse) => void; + + /** + * Callback as used by {@link mysqlctl.MysqlCtl#versionString}. + * @param error Error, if any + * @param [response] VersionStringResponse + */ + type VersionStringCallback = (error: (Error|null), response?: mysqlctl.VersionStringResponse) => void; + + /** + * Callback as used by {@link mysqlctl.MysqlCtl#hostMetrics}. + * @param error Error, if any + * @param [response] HostMetricsResponse + */ + type HostMetricsCallback = (error: (Error|null), response?: mysqlctl.HostMetricsResponse) => void; } - /** Represents a Keyspace. */ - class Keyspace implements IKeyspace { + /** Properties of a BackupInfo. */ + interface IBackupInfo { + + /** BackupInfo name */ + name?: (string|null); + + /** BackupInfo directory */ + directory?: (string|null); + + /** BackupInfo keyspace */ + keyspace?: (string|null); + + /** BackupInfo shard */ + shard?: (string|null); + + /** BackupInfo tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** BackupInfo time */ + time?: (vttime.ITime|null); + + /** BackupInfo engine */ + engine?: (string|null); + + /** BackupInfo status */ + status?: (mysqlctl.BackupInfo.Status|null); + } + + /** Represents a BackupInfo. */ + class BackupInfo implements IBackupInfo { /** - * Constructs a new Keyspace. + * Constructs a new BackupInfo. * @param [properties] Properties to set */ - constructor(properties?: topodata.IKeyspace); + constructor(properties?: mysqlctl.IBackupInfo); - /** Keyspace keyspace_type. */ - public keyspace_type: topodata.KeyspaceType; + /** BackupInfo name. */ + public name: string; - /** Keyspace base_keyspace. */ - public base_keyspace: string; + /** BackupInfo directory. */ + public directory: string; - /** Keyspace snapshot_time. */ - public snapshot_time?: (vttime.ITime|null); + /** BackupInfo keyspace. */ + public keyspace: string; - /** Keyspace durability_policy. */ - public durability_policy: string; + /** BackupInfo shard. */ + public shard: string; - /** Keyspace throttler_config. */ - public throttler_config?: (topodata.IThrottlerConfig|null); + /** BackupInfo tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); - /** Keyspace sidecar_db_name. */ - public sidecar_db_name: string; + /** BackupInfo time. */ + public time?: (vttime.ITime|null); + + /** BackupInfo engine. */ + public engine: string; + + /** BackupInfo status. */ + public status: mysqlctl.BackupInfo.Status; /** - * Creates a new Keyspace instance using the specified properties. + * Creates a new BackupInfo instance using the specified properties. * @param [properties] Properties to set - * @returns Keyspace instance + * @returns BackupInfo instance */ - public static create(properties?: topodata.IKeyspace): topodata.Keyspace; + public static create(properties?: mysqlctl.IBackupInfo): mysqlctl.BackupInfo; /** - * Encodes the specified Keyspace message. Does not implicitly {@link topodata.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode + * Encodes the specified BackupInfo message. Does not implicitly {@link mysqlctl.BackupInfo.verify|verify} messages. + * @param message BackupInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: topodata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IBackupInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link topodata.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode + * Encodes the specified BackupInfo message, length delimited. Does not implicitly {@link mysqlctl.BackupInfo.verify|verify} messages. + * @param message BackupInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: topodata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IBackupInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Keyspace message from the specified reader or buffer. + * Decodes a BackupInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Keyspace + * @returns BackupInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.Keyspace; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.BackupInfo; /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * Decodes a BackupInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Keyspace + * @returns BackupInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.Keyspace; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.BackupInfo; /** - * Verifies a Keyspace message. + * Verifies a BackupInfo message. * @param message Plain object 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. + * Creates a BackupInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Keyspace + * @returns BackupInfo */ - public static fromObject(object: { [k: string]: any }): topodata.Keyspace; + public static fromObject(object: { [k: string]: any }): mysqlctl.BackupInfo; /** - * Creates a plain object from a Keyspace message. Also converts values to other types if specified. - * @param message Keyspace + * Creates a plain object from a BackupInfo message. Also converts values to other types if specified. + * @param message BackupInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.BackupInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Keyspace to JSON. + * Converts this BackupInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Keyspace + * Gets the default type url for BackupInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ShardReplication. */ - interface IShardReplication { + namespace BackupInfo { - /** ShardReplication nodes */ - nodes?: (topodata.ShardReplication.INode[]|null); + /** Status enum. */ + enum Status { + UNKNOWN = 0, + INCOMPLETE = 1, + COMPLETE = 2, + INVALID = 3, + VALID = 4 + } } +} - /** Represents a ShardReplication. */ - class ShardReplication implements IShardReplication { +/** Namespace topodata. */ +export namespace topodata { + + /** Properties of a KeyRange. */ + interface IKeyRange { + + /** KeyRange start */ + start?: (Uint8Array|null); + + /** KeyRange end */ + end?: (Uint8Array|null); + } + + /** Represents a KeyRange. */ + class KeyRange implements IKeyRange { /** - * Constructs a new ShardReplication. + * Constructs a new KeyRange. * @param [properties] Properties to set */ - constructor(properties?: topodata.IShardReplication); + constructor(properties?: topodata.IKeyRange); - /** ShardReplication nodes. */ - public nodes: topodata.ShardReplication.INode[]; + /** KeyRange start. */ + public start: Uint8Array; + + /** KeyRange end. */ + public end: Uint8Array; /** - * Creates a new ShardReplication instance using the specified properties. + * Creates a new KeyRange instance using the specified properties. * @param [properties] Properties to set - * @returns ShardReplication instance + * @returns KeyRange instance */ - public static create(properties?: topodata.IShardReplication): topodata.ShardReplication; + public static create(properties?: topodata.IKeyRange): topodata.KeyRange; /** - * Encodes the specified ShardReplication message. Does not implicitly {@link topodata.ShardReplication.verify|verify} messages. - * @param message ShardReplication message or plain object to encode + * Encodes the specified KeyRange message. Does not implicitly {@link topodata.KeyRange.verify|verify} messages. + * @param message KeyRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: topodata.IShardReplication, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.IKeyRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ShardReplication message, length delimited. Does not implicitly {@link topodata.ShardReplication.verify|verify} messages. - * @param message ShardReplication message or plain object to encode + * Encodes the specified KeyRange message, length delimited. Does not implicitly {@link topodata.KeyRange.verify|verify} messages. + * @param message KeyRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: topodata.IShardReplication, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.IKeyRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShardReplication message from the specified reader or buffer. + * Decodes a KeyRange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShardReplication + * @returns KeyRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ShardReplication; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.KeyRange; /** - * Decodes a ShardReplication message from the specified reader or buffer, length delimited. + * Decodes a KeyRange message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShardReplication + * @returns KeyRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ShardReplication; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.KeyRange; /** - * Verifies a ShardReplication message. + * Verifies a KeyRange message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ShardReplication message from a plain object. Also converts values to their respective internal types. + * Creates a KeyRange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShardReplication + * @returns KeyRange */ - public static fromObject(object: { [k: string]: any }): topodata.ShardReplication; + public static fromObject(object: { [k: string]: any }): topodata.KeyRange; /** - * Creates a plain object from a ShardReplication message. Also converts values to other types if specified. - * @param message ShardReplication + * Creates a plain object from a KeyRange message. Also converts values to other types if specified. + * @param message KeyRange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.ShardReplication, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.KeyRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShardReplication to JSON. + * Converts this KeyRange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShardReplication + * Gets the default type url for KeyRange * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ShardReplication { + /** KeyspaceType enum. */ + enum KeyspaceType { + NORMAL = 0, + SNAPSHOT = 1 + } - /** Properties of a Node. */ - interface INode { + /** Properties of a TabletAlias. */ + interface ITabletAlias { - /** Node tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } + /** TabletAlias cell */ + cell?: (string|null); - /** Represents a Node. */ - class Node implements INode { + /** TabletAlias uid */ + uid?: (number|null); + } - /** - * Constructs a new Node. - * @param [properties] Properties to set - */ - constructor(properties?: topodata.ShardReplication.INode); + /** Represents a TabletAlias. */ + class TabletAlias implements ITabletAlias { - /** Node tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** + * Constructs a new TabletAlias. + * @param [properties] Properties to set + */ + constructor(properties?: topodata.ITabletAlias); - /** - * Creates a new Node instance using the specified properties. - * @param [properties] Properties to set - * @returns Node instance - */ - public static create(properties?: topodata.ShardReplication.INode): topodata.ShardReplication.Node; + /** TabletAlias cell. */ + public cell: string; - /** - * Encodes the specified Node message. Does not implicitly {@link topodata.ShardReplication.Node.verify|verify} messages. - * @param message Node message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: topodata.ShardReplication.INode, writer?: $protobuf.Writer): $protobuf.Writer; + /** TabletAlias uid. */ + public uid: number; - /** - * Encodes the specified Node message, length delimited. Does not implicitly {@link topodata.ShardReplication.Node.verify|verify} messages. - * @param message Node message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: topodata.ShardReplication.INode, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new TabletAlias instance using the specified properties. + * @param [properties] Properties to set + * @returns TabletAlias instance + */ + public static create(properties?: topodata.ITabletAlias): topodata.TabletAlias; - /** - * Decodes a Node message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Node - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ShardReplication.Node; + /** + * Encodes the specified TabletAlias message. Does not implicitly {@link topodata.TabletAlias.verify|verify} messages. + * @param message TabletAlias message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: topodata.ITabletAlias, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Node message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Node - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ShardReplication.Node; + /** + * Encodes the specified TabletAlias message, length delimited. Does not implicitly {@link topodata.TabletAlias.verify|verify} messages. + * @param message TabletAlias message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: topodata.ITabletAlias, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a Node message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Node message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Node - */ - public static fromObject(object: { [k: string]: any }): topodata.ShardReplication.Node; - - /** - * Creates a plain object from a Node message. Also converts values to other types if specified. - * @param message Node - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: topodata.ShardReplication.Node, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Node to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Node - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a ShardReplicationError. */ - interface IShardReplicationError { - - /** ShardReplicationError type */ - type?: (topodata.ShardReplicationError.Type|null); - - /** ShardReplicationError tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a ShardReplicationError. */ - class ShardReplicationError implements IShardReplicationError { - - /** - * Constructs a new ShardReplicationError. - * @param [properties] Properties to set - */ - constructor(properties?: topodata.IShardReplicationError); - - /** ShardReplicationError type. */ - public type: topodata.ShardReplicationError.Type; - - /** ShardReplicationError tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new ShardReplicationError instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationError instance - */ - public static create(properties?: topodata.IShardReplicationError): topodata.ShardReplicationError; - - /** - * Encodes the specified ShardReplicationError message. Does not implicitly {@link topodata.ShardReplicationError.verify|verify} messages. - * @param message ShardReplicationError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: topodata.IShardReplicationError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationError message, length delimited. Does not implicitly {@link topodata.ShardReplicationError.verify|verify} messages. - * @param message ShardReplicationError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: topodata.IShardReplicationError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ShardReplicationError; + /** + * Decodes a TabletAlias message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabletAlias + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.TabletAlias; /** - * Decodes a ShardReplicationError message from the specified reader or buffer, length delimited. + * Decodes a TabletAlias message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShardReplicationError + * @returns TabletAlias * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ShardReplicationError; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.TabletAlias; /** - * Verifies a ShardReplicationError message. + * Verifies a TabletAlias message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ShardReplicationError message from a plain object. Also converts values to their respective internal types. + * Creates a TabletAlias message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShardReplicationError + * @returns TabletAlias */ - public static fromObject(object: { [k: string]: any }): topodata.ShardReplicationError; + public static fromObject(object: { [k: string]: any }): topodata.TabletAlias; /** - * Creates a plain object from a ShardReplicationError message. Also converts values to other types if specified. - * @param message ShardReplicationError + * Creates a plain object from a TabletAlias message. Also converts values to other types if specified. + * @param message TabletAlias * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.ShardReplicationError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.TabletAlias, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShardReplicationError to JSON. + * Converts this TabletAlias to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShardReplicationError + * Gets the default type url for TabletAlias * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ShardReplicationError { - - /** Type enum. */ - enum Type { - UNKNOWN = 0, - NOT_FOUND = 1, - TOPOLOGY_MISMATCH = 2 - } + /** TabletType enum. */ + enum TabletType { + UNKNOWN = 0, + PRIMARY = 1, + MASTER = 1, + REPLICA = 2, + RDONLY = 3, + BATCH = 3, + SPARE = 4, + EXPERIMENTAL = 5, + BACKUP = 6, + RESTORE = 7, + DRAINED = 8 } - /** Properties of a ShardReference. */ - interface IShardReference { + /** Properties of a Tablet. */ + interface ITablet { - /** ShardReference name */ - name?: (string|null); + /** Tablet alias */ + alias?: (topodata.ITabletAlias|null); - /** ShardReference key_range */ - key_range?: (topodata.IKeyRange|null); - } + /** Tablet hostname */ + hostname?: (string|null); - /** Represents a ShardReference. */ - class ShardReference implements IShardReference { + /** Tablet port_map */ + port_map?: ({ [k: string]: number }|null); - /** - * Constructs a new ShardReference. - * @param [properties] Properties to set - */ - constructor(properties?: topodata.IShardReference); + /** Tablet keyspace */ + keyspace?: (string|null); - /** ShardReference name. */ - public name: string; + /** Tablet shard */ + shard?: (string|null); - /** ShardReference key_range. */ - public key_range?: (topodata.IKeyRange|null); + /** Tablet key_range */ + key_range?: (topodata.IKeyRange|null); - /** - * Creates a new ShardReference instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReference instance - */ - public static create(properties?: topodata.IShardReference): topodata.ShardReference; + /** Tablet type */ + type?: (topodata.TabletType|null); - /** - * Encodes the specified ShardReference message. Does not implicitly {@link topodata.ShardReference.verify|verify} messages. - * @param message ShardReference message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: topodata.IShardReference, writer?: $protobuf.Writer): $protobuf.Writer; + /** Tablet db_name_override */ + db_name_override?: (string|null); - /** - * Encodes the specified ShardReference message, length delimited. Does not implicitly {@link topodata.ShardReference.verify|verify} messages. - * @param message ShardReference message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: topodata.IShardReference, writer?: $protobuf.Writer): $protobuf.Writer; + /** Tablet tags */ + tags?: ({ [k: string]: string }|null); - /** - * Decodes a ShardReference message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ShardReference; + /** Tablet mysql_hostname */ + mysql_hostname?: (string|null); - /** - * Decodes a ShardReference message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ShardReference; + /** Tablet mysql_port */ + mysql_port?: (number|null); - /** - * Verifies a ShardReference message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Tablet primary_term_start_time */ + primary_term_start_time?: (vttime.ITime|null); - /** - * Creates a ShardReference message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReference - */ - public static fromObject(object: { [k: string]: any }): topodata.ShardReference; + /** Tablet default_conn_collation */ + default_conn_collation?: (number|null); + } - /** - * Creates a plain object from a ShardReference message. Also converts values to other types if specified. - * @param message ShardReference - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: topodata.ShardReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a Tablet. */ + class Tablet implements ITablet { /** - * Converts this ShardReference to JSON. - * @returns JSON object + * Constructs a new Tablet. + * @param [properties] Properties to set */ - public toJSON(): { [k: string]: any }; + constructor(properties?: topodata.ITablet); - /** - * Gets the default type url for ShardReference - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Tablet alias. */ + public alias?: (topodata.ITabletAlias|null); - /** Properties of a ShardTabletControl. */ - interface IShardTabletControl { + /** Tablet hostname. */ + public hostname: string; - /** ShardTabletControl name */ - name?: (string|null); + /** Tablet port_map. */ + public port_map: { [k: string]: number }; - /** ShardTabletControl key_range */ - key_range?: (topodata.IKeyRange|null); + /** Tablet keyspace. */ + public keyspace: string; - /** ShardTabletControl query_service_disabled */ - query_service_disabled?: (boolean|null); - } + /** Tablet shard. */ + public shard: string; - /** Represents a ShardTabletControl. */ - class ShardTabletControl implements IShardTabletControl { + /** Tablet key_range. */ + public key_range?: (topodata.IKeyRange|null); - /** - * Constructs a new ShardTabletControl. - * @param [properties] Properties to set - */ - constructor(properties?: topodata.IShardTabletControl); + /** Tablet type. */ + public type: topodata.TabletType; - /** ShardTabletControl name. */ - public name: string; + /** Tablet db_name_override. */ + public db_name_override: string; - /** ShardTabletControl key_range. */ - public key_range?: (topodata.IKeyRange|null); + /** Tablet tags. */ + public tags: { [k: string]: string }; - /** ShardTabletControl query_service_disabled. */ - public query_service_disabled: boolean; + /** Tablet mysql_hostname. */ + public mysql_hostname: string; + + /** Tablet mysql_port. */ + public mysql_port: number; + + /** Tablet primary_term_start_time. */ + public primary_term_start_time?: (vttime.ITime|null); + + /** Tablet default_conn_collation. */ + public default_conn_collation: number; /** - * Creates a new ShardTabletControl instance using the specified properties. + * Creates a new Tablet instance using the specified properties. * @param [properties] Properties to set - * @returns ShardTabletControl instance + * @returns Tablet instance */ - public static create(properties?: topodata.IShardTabletControl): topodata.ShardTabletControl; + public static create(properties?: topodata.ITablet): topodata.Tablet; /** - * Encodes the specified ShardTabletControl message. Does not implicitly {@link topodata.ShardTabletControl.verify|verify} messages. - * @param message ShardTabletControl message or plain object to encode + * Encodes the specified Tablet message. Does not implicitly {@link topodata.Tablet.verify|verify} messages. + * @param message Tablet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: topodata.IShardTabletControl, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.ITablet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ShardTabletControl message, length delimited. Does not implicitly {@link topodata.ShardTabletControl.verify|verify} messages. - * @param message ShardTabletControl message or plain object to encode + * Encodes the specified Tablet message, length delimited. Does not implicitly {@link topodata.Tablet.verify|verify} messages. + * @param message Tablet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: topodata.IShardTabletControl, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.ITablet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShardTabletControl message from the specified reader or buffer. + * Decodes a Tablet message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShardTabletControl + * @returns Tablet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ShardTabletControl; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.Tablet; /** - * Decodes a ShardTabletControl message from the specified reader or buffer, length delimited. + * Decodes a Tablet message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShardTabletControl + * @returns Tablet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ShardTabletControl; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.Tablet; /** - * Verifies a ShardTabletControl message. + * Verifies a Tablet message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ShardTabletControl message from a plain object. Also converts values to their respective internal types. + * Creates a Tablet message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShardTabletControl + * @returns Tablet */ - public static fromObject(object: { [k: string]: any }): topodata.ShardTabletControl; + public static fromObject(object: { [k: string]: any }): topodata.Tablet; /** - * Creates a plain object from a ShardTabletControl message. Also converts values to other types if specified. - * @param message ShardTabletControl + * Creates a plain object from a Tablet message. Also converts values to other types if specified. + * @param message Tablet * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.ShardTabletControl, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.Tablet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShardTabletControl to JSON. + * Converts this Tablet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShardTabletControl + * Gets the default type url for Tablet * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ThrottledAppRule. */ - interface IThrottledAppRule { + /** Properties of a Shard. */ + interface IShard { - /** ThrottledAppRule name */ - name?: (string|null); + /** Shard primary_alias */ + primary_alias?: (topodata.ITabletAlias|null); - /** ThrottledAppRule ratio */ - ratio?: (number|null); + /** Shard primary_term_start_time */ + primary_term_start_time?: (vttime.ITime|null); - /** ThrottledAppRule expires_at */ - expires_at?: (vttime.ITime|null); + /** Shard key_range */ + key_range?: (topodata.IKeyRange|null); - /** ThrottledAppRule exempt */ - exempt?: (boolean|null); + /** Shard source_shards */ + source_shards?: (topodata.Shard.ISourceShard[]|null); + + /** Shard tablet_controls */ + tablet_controls?: (topodata.Shard.ITabletControl[]|null); + + /** Shard is_primary_serving */ + is_primary_serving?: (boolean|null); } - /** Represents a ThrottledAppRule. */ - class ThrottledAppRule implements IThrottledAppRule { + /** Represents a Shard. */ + class Shard implements IShard { /** - * Constructs a new ThrottledAppRule. + * Constructs a new Shard. * @param [properties] Properties to set */ - constructor(properties?: topodata.IThrottledAppRule); + constructor(properties?: topodata.IShard); - /** ThrottledAppRule name. */ - public name: string; + /** Shard primary_alias. */ + public primary_alias?: (topodata.ITabletAlias|null); - /** ThrottledAppRule ratio. */ - public ratio: number; + /** Shard primary_term_start_time. */ + public primary_term_start_time?: (vttime.ITime|null); - /** ThrottledAppRule expires_at. */ - public expires_at?: (vttime.ITime|null); + /** Shard key_range. */ + public key_range?: (topodata.IKeyRange|null); - /** ThrottledAppRule exempt. */ - public exempt: boolean; + /** Shard source_shards. */ + public source_shards: topodata.Shard.ISourceShard[]; + + /** Shard tablet_controls. */ + public tablet_controls: topodata.Shard.ITabletControl[]; + + /** Shard is_primary_serving. */ + public is_primary_serving: boolean; /** - * Creates a new ThrottledAppRule instance using the specified properties. + * Creates a new Shard instance using the specified properties. * @param [properties] Properties to set - * @returns ThrottledAppRule instance + * @returns Shard instance */ - public static create(properties?: topodata.IThrottledAppRule): topodata.ThrottledAppRule; + public static create(properties?: topodata.IShard): topodata.Shard; /** - * Encodes the specified ThrottledAppRule message. Does not implicitly {@link topodata.ThrottledAppRule.verify|verify} messages. - * @param message ThrottledAppRule message or plain object to encode + * Encodes the specified Shard message. Does not implicitly {@link topodata.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: topodata.IThrottledAppRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ThrottledAppRule message, length delimited. Does not implicitly {@link topodata.ThrottledAppRule.verify|verify} messages. - * @param message ThrottledAppRule message or plain object to encode + * Encodes the specified Shard message, length delimited. Does not implicitly {@link topodata.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: topodata.IThrottledAppRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ThrottledAppRule message from the specified reader or buffer. + * 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 ThrottledAppRule + * @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): topodata.ThrottledAppRule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.Shard; /** - * Decodes a ThrottledAppRule message from the specified reader or buffer, length delimited. + * Decodes a Shard message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ThrottledAppRule + * @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)): topodata.ThrottledAppRule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.Shard; /** - * Verifies a ThrottledAppRule message. + * 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 ThrottledAppRule message from a plain object. Also converts values to their respective internal types. + * Creates a Shard message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ThrottledAppRule + * @returns Shard */ - public static fromObject(object: { [k: string]: any }): topodata.ThrottledAppRule; + public static fromObject(object: { [k: string]: any }): topodata.Shard; /** - * Creates a plain object from a ThrottledAppRule message. Also converts values to other types if specified. - * @param message ThrottledAppRule + * 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: topodata.ThrottledAppRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.Shard, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ThrottledAppRule to JSON. + * Converts this Shard to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ThrottledAppRule + * 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 ThrottlerConfig. */ - interface IThrottlerConfig { + namespace Shard { - /** ThrottlerConfig enabled */ - enabled?: (boolean|null); + /** Properties of a SourceShard. */ + interface ISourceShard { - /** ThrottlerConfig threshold */ - threshold?: (number|null); + /** SourceShard uid */ + uid?: (number|null); - /** ThrottlerConfig custom_query */ - custom_query?: (string|null); + /** SourceShard keyspace */ + keyspace?: (string|null); - /** ThrottlerConfig check_as_check_self */ - check_as_check_self?: (boolean|null); + /** SourceShard shard */ + shard?: (string|null); - /** ThrottlerConfig throttled_apps */ - throttled_apps?: ({ [k: string]: topodata.IThrottledAppRule }|null); + /** SourceShard key_range */ + key_range?: (topodata.IKeyRange|null); - /** ThrottlerConfig app_checked_metrics */ - app_checked_metrics?: ({ [k: string]: topodata.ThrottlerConfig.IMetricNames }|null); + /** SourceShard tables */ + tables?: (string[]|null); + } - /** ThrottlerConfig metric_thresholds */ - metric_thresholds?: ({ [k: string]: number }|null); - } + /** Represents a SourceShard. */ + class SourceShard implements ISourceShard { - /** Represents a ThrottlerConfig. */ - class ThrottlerConfig implements IThrottlerConfig { + /** + * Constructs a new SourceShard. + * @param [properties] Properties to set + */ + constructor(properties?: topodata.Shard.ISourceShard); - /** - * Constructs a new ThrottlerConfig. - * @param [properties] Properties to set - */ - constructor(properties?: topodata.IThrottlerConfig); + /** SourceShard uid. */ + public uid: number; - /** ThrottlerConfig enabled. */ - public enabled: boolean; + /** SourceShard keyspace. */ + public keyspace: string; - /** ThrottlerConfig threshold. */ - public threshold: number; + /** SourceShard shard. */ + public shard: string; - /** ThrottlerConfig custom_query. */ - public custom_query: string; + /** SourceShard key_range. */ + public key_range?: (topodata.IKeyRange|null); - /** ThrottlerConfig check_as_check_self. */ - public check_as_check_self: boolean; - - /** ThrottlerConfig throttled_apps. */ - public throttled_apps: { [k: string]: topodata.IThrottledAppRule }; - - /** ThrottlerConfig app_checked_metrics. */ - public app_checked_metrics: { [k: string]: topodata.ThrottlerConfig.IMetricNames }; - - /** ThrottlerConfig metric_thresholds. */ - public metric_thresholds: { [k: string]: number }; - - /** - * Creates a new ThrottlerConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ThrottlerConfig instance - */ - public static create(properties?: topodata.IThrottlerConfig): topodata.ThrottlerConfig; - - /** - * Encodes the specified ThrottlerConfig message. Does not implicitly {@link topodata.ThrottlerConfig.verify|verify} messages. - * @param message ThrottlerConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: topodata.IThrottlerConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ThrottlerConfig message, length delimited. Does not implicitly {@link topodata.ThrottlerConfig.verify|verify} messages. - * @param message ThrottlerConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: topodata.IThrottlerConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ThrottlerConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ThrottlerConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ThrottlerConfig; - - /** - * Decodes a ThrottlerConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ThrottlerConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ThrottlerConfig; - - /** - * Verifies a ThrottlerConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ThrottlerConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ThrottlerConfig - */ - public static fromObject(object: { [k: string]: any }): topodata.ThrottlerConfig; - - /** - * Creates a plain object from a ThrottlerConfig message. Also converts values to other types if specified. - * @param message ThrottlerConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: topodata.ThrottlerConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ThrottlerConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ThrottlerConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ThrottlerConfig { - - /** Properties of a MetricNames. */ - interface IMetricNames { - - /** MetricNames names */ - names?: (string[]|null); - } - - /** Represents a MetricNames. */ - class MetricNames implements IMetricNames { - - /** - * Constructs a new MetricNames. - * @param [properties] Properties to set - */ - constructor(properties?: topodata.ThrottlerConfig.IMetricNames); - - /** MetricNames names. */ - public names: string[]; + /** SourceShard tables. */ + public tables: string[]; /** - * Creates a new MetricNames instance using the specified properties. + * Creates a new SourceShard instance using the specified properties. * @param [properties] Properties to set - * @returns MetricNames instance + * @returns SourceShard instance */ - public static create(properties?: topodata.ThrottlerConfig.IMetricNames): topodata.ThrottlerConfig.MetricNames; + public static create(properties?: topodata.Shard.ISourceShard): topodata.Shard.SourceShard; /** - * Encodes the specified MetricNames message. Does not implicitly {@link topodata.ThrottlerConfig.MetricNames.verify|verify} messages. - * @param message MetricNames message or plain object to encode + * Encodes the specified SourceShard message. Does not implicitly {@link topodata.Shard.SourceShard.verify|verify} messages. + * @param message SourceShard message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: topodata.ThrottlerConfig.IMetricNames, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.Shard.ISourceShard, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MetricNames message, length delimited. Does not implicitly {@link topodata.ThrottlerConfig.MetricNames.verify|verify} messages. - * @param message MetricNames message or plain object to encode + * Encodes the specified SourceShard message, length delimited. Does not implicitly {@link topodata.Shard.SourceShard.verify|verify} messages. + * @param message SourceShard message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: topodata.ThrottlerConfig.IMetricNames, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.Shard.ISourceShard, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MetricNames message from the specified reader or buffer. + * Decodes a SourceShard message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MetricNames + * @returns SourceShard * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ThrottlerConfig.MetricNames; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.Shard.SourceShard; /** - * Decodes a MetricNames message from the specified reader or buffer, length delimited. + * Decodes a SourceShard message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MetricNames + * @returns SourceShard * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ThrottlerConfig.MetricNames; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.Shard.SourceShard; /** - * Verifies a MetricNames message. + * Verifies a SourceShard message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MetricNames message from a plain object. Also converts values to their respective internal types. + * Creates a SourceShard message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MetricNames + * @returns SourceShard */ - public static fromObject(object: { [k: string]: any }): topodata.ThrottlerConfig.MetricNames; + public static fromObject(object: { [k: string]: any }): topodata.Shard.SourceShard; /** - * Creates a plain object from a MetricNames message. Also converts values to other types if specified. - * @param message MetricNames + * Creates a plain object from a SourceShard message. Also converts values to other types if specified. + * @param message SourceShard * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.ThrottlerConfig.MetricNames, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.Shard.SourceShard, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MetricNames to JSON. + * Converts this SourceShard to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MetricNames + * Gets the default type url for SourceShard * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - - /** Properties of a SrvKeyspace. */ - interface ISrvKeyspace { - - /** SrvKeyspace partitions */ - partitions?: (topodata.SrvKeyspace.IKeyspacePartition[]|null); - - /** SrvKeyspace throttler_config */ - throttler_config?: (topodata.IThrottlerConfig|null); - } - - /** Represents a SrvKeyspace. */ - class SrvKeyspace implements ISrvKeyspace { - - /** - * Constructs a new SrvKeyspace. - * @param [properties] Properties to set - */ - constructor(properties?: topodata.ISrvKeyspace); - - /** SrvKeyspace partitions. */ - public partitions: topodata.SrvKeyspace.IKeyspacePartition[]; - - /** SrvKeyspace throttler_config. */ - public throttler_config?: (topodata.IThrottlerConfig|null); - - /** - * Creates a new SrvKeyspace instance using the specified properties. - * @param [properties] Properties to set - * @returns SrvKeyspace instance - */ - public static create(properties?: topodata.ISrvKeyspace): topodata.SrvKeyspace; - - /** - * Encodes the specified SrvKeyspace message. Does not implicitly {@link topodata.SrvKeyspace.verify|verify} messages. - * @param message SrvKeyspace message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: topodata.ISrvKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SrvKeyspace message, length delimited. Does not implicitly {@link topodata.SrvKeyspace.verify|verify} messages. - * @param message SrvKeyspace message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: topodata.ISrvKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SrvKeyspace message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SrvKeyspace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.SrvKeyspace; - - /** - * Decodes a SrvKeyspace message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SrvKeyspace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.SrvKeyspace; - - /** - * Verifies a SrvKeyspace message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SrvKeyspace message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SrvKeyspace - */ - public static fromObject(object: { [k: string]: any }): topodata.SrvKeyspace; - - /** - * Creates a plain object from a SrvKeyspace message. Also converts values to other types if specified. - * @param message SrvKeyspace - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: topodata.SrvKeyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SrvKeyspace to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SrvKeyspace - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - namespace SrvKeyspace { + /** Properties of a TabletControl. */ + interface ITabletControl { - /** Properties of a KeyspacePartition. */ - interface IKeyspacePartition { + /** TabletControl tablet_type */ + tablet_type?: (topodata.TabletType|null); - /** KeyspacePartition served_type */ - served_type?: (topodata.TabletType|null); + /** TabletControl cells */ + cells?: (string[]|null); - /** KeyspacePartition shard_references */ - shard_references?: (topodata.IShardReference[]|null); + /** TabletControl denied_tables */ + denied_tables?: (string[]|null); - /** KeyspacePartition shard_tablet_controls */ - shard_tablet_controls?: (topodata.IShardTabletControl[]|null); + /** TabletControl frozen */ + frozen?: (boolean|null); } - /** Represents a KeyspacePartition. */ - class KeyspacePartition implements IKeyspacePartition { + /** Represents a TabletControl. */ + class TabletControl implements ITabletControl { /** - * Constructs a new KeyspacePartition. + * Constructs a new TabletControl. * @param [properties] Properties to set */ - constructor(properties?: topodata.SrvKeyspace.IKeyspacePartition); + constructor(properties?: topodata.Shard.ITabletControl); - /** KeyspacePartition served_type. */ - public served_type: topodata.TabletType; + /** TabletControl tablet_type. */ + public tablet_type: topodata.TabletType; - /** KeyspacePartition shard_references. */ - public shard_references: topodata.IShardReference[]; + /** TabletControl cells. */ + public cells: string[]; - /** KeyspacePartition shard_tablet_controls. */ - public shard_tablet_controls: topodata.IShardTabletControl[]; + /** TabletControl denied_tables. */ + public denied_tables: string[]; + + /** TabletControl frozen. */ + public frozen: boolean; /** - * Creates a new KeyspacePartition instance using the specified properties. + * Creates a new TabletControl instance using the specified properties. * @param [properties] Properties to set - * @returns KeyspacePartition instance + * @returns TabletControl instance */ - public static create(properties?: topodata.SrvKeyspace.IKeyspacePartition): topodata.SrvKeyspace.KeyspacePartition; + public static create(properties?: topodata.Shard.ITabletControl): topodata.Shard.TabletControl; /** - * Encodes the specified KeyspacePartition message. Does not implicitly {@link topodata.SrvKeyspace.KeyspacePartition.verify|verify} messages. - * @param message KeyspacePartition message or plain object to encode + * Encodes the specified TabletControl message. Does not implicitly {@link topodata.Shard.TabletControl.verify|verify} messages. + * @param message TabletControl message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: topodata.SrvKeyspace.IKeyspacePartition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.Shard.ITabletControl, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified KeyspacePartition message, length delimited. Does not implicitly {@link topodata.SrvKeyspace.KeyspacePartition.verify|verify} messages. - * @param message KeyspacePartition message or plain object to encode + * Encodes the specified TabletControl message, length delimited. Does not implicitly {@link topodata.Shard.TabletControl.verify|verify} messages. + * @param message TabletControl message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: topodata.SrvKeyspace.IKeyspacePartition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.Shard.ITabletControl, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KeyspacePartition message from the specified reader or buffer. + * Decodes a TabletControl message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns KeyspacePartition + * @returns TabletControl * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.SrvKeyspace.KeyspacePartition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.Shard.TabletControl; /** - * Decodes a KeyspacePartition message from the specified reader or buffer, length delimited. + * Decodes a TabletControl message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns KeyspacePartition + * @returns TabletControl * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.SrvKeyspace.KeyspacePartition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.Shard.TabletControl; /** - * Verifies a KeyspacePartition message. + * Verifies a TabletControl message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a KeyspacePartition message from a plain object. Also converts values to their respective internal types. + * Creates a TabletControl message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns KeyspacePartition + * @returns TabletControl */ - public static fromObject(object: { [k: string]: any }): topodata.SrvKeyspace.KeyspacePartition; + public static fromObject(object: { [k: string]: any }): topodata.Shard.TabletControl; /** - * Creates a plain object from a KeyspacePartition message. Also converts values to other types if specified. - * @param message KeyspacePartition + * Creates a plain object from a TabletControl message. Also converts values to other types if specified. + * @param message TabletControl * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.SrvKeyspace.KeyspacePartition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.Shard.TabletControl, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this KeyspacePartition to JSON. + * Converts this TabletControl to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for KeyspacePartition + * Gets the default type url for TabletControl * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -20126,17370 +20030,18582 @@ export namespace topodata { } } - /** Properties of a CellInfo. */ - interface ICellInfo { + /** Properties of a Keyspace. */ + interface IKeyspace { - /** CellInfo server_address */ - server_address?: (string|null); + /** Keyspace keyspace_type */ + keyspace_type?: (topodata.KeyspaceType|null); - /** CellInfo root */ - root?: (string|null); + /** Keyspace base_keyspace */ + base_keyspace?: (string|null); + + /** Keyspace snapshot_time */ + snapshot_time?: (vttime.ITime|null); + + /** Keyspace durability_policy */ + durability_policy?: (string|null); + + /** Keyspace throttler_config */ + throttler_config?: (topodata.IThrottlerConfig|null); + + /** Keyspace sidecar_db_name */ + sidecar_db_name?: (string|null); } - /** Represents a CellInfo. */ - class CellInfo implements ICellInfo { + /** Represents a Keyspace. */ + class Keyspace implements IKeyspace { /** - * Constructs a new CellInfo. + * Constructs a new Keyspace. * @param [properties] Properties to set */ - constructor(properties?: topodata.ICellInfo); + constructor(properties?: topodata.IKeyspace); - /** CellInfo server_address. */ - public server_address: string; + /** Keyspace keyspace_type. */ + public keyspace_type: topodata.KeyspaceType; - /** CellInfo root. */ - public root: string; + /** Keyspace base_keyspace. */ + public base_keyspace: string; + + /** Keyspace snapshot_time. */ + public snapshot_time?: (vttime.ITime|null); + + /** Keyspace durability_policy. */ + public durability_policy: string; + + /** Keyspace throttler_config. */ + public throttler_config?: (topodata.IThrottlerConfig|null); + + /** Keyspace sidecar_db_name. */ + public sidecar_db_name: string; /** - * Creates a new CellInfo instance using the specified properties. + * Creates a new Keyspace instance using the specified properties. * @param [properties] Properties to set - * @returns CellInfo instance + * @returns Keyspace instance */ - public static create(properties?: topodata.ICellInfo): topodata.CellInfo; + public static create(properties?: topodata.IKeyspace): topodata.Keyspace; /** - * Encodes the specified CellInfo message. Does not implicitly {@link topodata.CellInfo.verify|verify} messages. - * @param message CellInfo message or plain object to encode + * Encodes the specified Keyspace message. Does not implicitly {@link topodata.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: topodata.ICellInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CellInfo message, length delimited. Does not implicitly {@link topodata.CellInfo.verify|verify} messages. - * @param message CellInfo message or plain object to encode + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link topodata.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: topodata.ICellInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CellInfo message from the specified reader or buffer. + * 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 CellInfo + * @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): topodata.CellInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.Keyspace; /** - * Decodes a CellInfo message from the specified reader or buffer, length delimited. + * Decodes a Keyspace message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CellInfo + * @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)): topodata.CellInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.Keyspace; /** - * Verifies a CellInfo message. + * 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 CellInfo 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. * @param object Plain object - * @returns CellInfo + * @returns Keyspace */ - public static fromObject(object: { [k: string]: any }): topodata.CellInfo; + public static fromObject(object: { [k: string]: any }): topodata.Keyspace; /** - * Creates a plain object from a CellInfo message. Also converts values to other types if specified. - * @param message CellInfo + * 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: topodata.CellInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CellInfo to JSON. + * Converts this Keyspace to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CellInfo + * 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; } - /** Properties of a CellsAlias. */ - interface ICellsAlias { + /** Properties of a ShardReplication. */ + interface IShardReplication { - /** CellsAlias cells */ - cells?: (string[]|null); + /** ShardReplication nodes */ + nodes?: (topodata.ShardReplication.INode[]|null); } - /** Represents a CellsAlias. */ - class CellsAlias implements ICellsAlias { + /** Represents a ShardReplication. */ + class ShardReplication implements IShardReplication { /** - * Constructs a new CellsAlias. + * Constructs a new ShardReplication. * @param [properties] Properties to set */ - constructor(properties?: topodata.ICellsAlias); + constructor(properties?: topodata.IShardReplication); - /** CellsAlias cells. */ - public cells: string[]; + /** ShardReplication nodes. */ + public nodes: topodata.ShardReplication.INode[]; /** - * Creates a new CellsAlias instance using the specified properties. + * Creates a new ShardReplication instance using the specified properties. * @param [properties] Properties to set - * @returns CellsAlias instance + * @returns ShardReplication instance */ - public static create(properties?: topodata.ICellsAlias): topodata.CellsAlias; + public static create(properties?: topodata.IShardReplication): topodata.ShardReplication; /** - * Encodes the specified CellsAlias message. Does not implicitly {@link topodata.CellsAlias.verify|verify} messages. - * @param message CellsAlias message or plain object to encode + * Encodes the specified ShardReplication message. Does not implicitly {@link topodata.ShardReplication.verify|verify} messages. + * @param message ShardReplication message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: topodata.ICellsAlias, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.IShardReplication, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CellsAlias message, length delimited. Does not implicitly {@link topodata.CellsAlias.verify|verify} messages. - * @param message CellsAlias message or plain object to encode + * Encodes the specified ShardReplication message, length delimited. Does not implicitly {@link topodata.ShardReplication.verify|verify} messages. + * @param message ShardReplication message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: topodata.ICellsAlias, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.IShardReplication, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CellsAlias message from the specified reader or buffer. + * Decodes a ShardReplication message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CellsAlias + * @returns ShardReplication * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.CellsAlias; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ShardReplication; /** - * Decodes a CellsAlias message from the specified reader or buffer, length delimited. + * Decodes a ShardReplication message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CellsAlias + * @returns ShardReplication * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.CellsAlias; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ShardReplication; /** - * Verifies a CellsAlias message. + * Verifies a ShardReplication message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CellsAlias message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplication message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CellsAlias + * @returns ShardReplication */ - public static fromObject(object: { [k: string]: any }): topodata.CellsAlias; + public static fromObject(object: { [k: string]: any }): topodata.ShardReplication; /** - * Creates a plain object from a CellsAlias message. Also converts values to other types if specified. - * @param message CellsAlias + * Creates a plain object from a ShardReplication message. Also converts values to other types if specified. + * @param message ShardReplication * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.CellsAlias, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.ShardReplication, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CellsAlias to JSON. + * Converts this ShardReplication to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CellsAlias + * Gets the default type url for ShardReplication * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TopoConfig. */ - interface ITopoConfig { + namespace ShardReplication { - /** TopoConfig topo_type */ - topo_type?: (string|null); + /** Properties of a Node. */ + interface INode { - /** TopoConfig server */ - server?: (string|null); + /** Node tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } - /** TopoConfig root */ - root?: (string|null); + /** Represents a Node. */ + class Node implements INode { + + /** + * Constructs a new Node. + * @param [properties] Properties to set + */ + constructor(properties?: topodata.ShardReplication.INode); + + /** Node tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new Node instance using the specified properties. + * @param [properties] Properties to set + * @returns Node instance + */ + public static create(properties?: topodata.ShardReplication.INode): topodata.ShardReplication.Node; + + /** + * Encodes the specified Node message. Does not implicitly {@link topodata.ShardReplication.Node.verify|verify} messages. + * @param message Node message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: topodata.ShardReplication.INode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Node message, length delimited. Does not implicitly {@link topodata.ShardReplication.Node.verify|verify} messages. + * @param message Node message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: topodata.ShardReplication.INode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Node message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ShardReplication.Node; + + /** + * Decodes a Node message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ShardReplication.Node; + + /** + * Verifies a Node message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Node message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Node + */ + public static fromObject(object: { [k: string]: any }): topodata.ShardReplication.Node; + + /** + * Creates a plain object from a Node message. Also converts values to other types if specified. + * @param message Node + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: topodata.ShardReplication.Node, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Node to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Node + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a TopoConfig. */ - class TopoConfig implements ITopoConfig { + /** Properties of a ShardReplicationError. */ + interface IShardReplicationError { + + /** ShardReplicationError type */ + type?: (topodata.ShardReplicationError.Type|null); + + /** ShardReplicationError tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a ShardReplicationError. */ + class ShardReplicationError implements IShardReplicationError { /** - * Constructs a new TopoConfig. + * Constructs a new ShardReplicationError. * @param [properties] Properties to set */ - constructor(properties?: topodata.ITopoConfig); - - /** TopoConfig topo_type. */ - public topo_type: string; + constructor(properties?: topodata.IShardReplicationError); - /** TopoConfig server. */ - public server: string; + /** ShardReplicationError type. */ + public type: topodata.ShardReplicationError.Type; - /** TopoConfig root. */ - public root: string; + /** ShardReplicationError tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); /** - * Creates a new TopoConfig instance using the specified properties. + * Creates a new ShardReplicationError instance using the specified properties. * @param [properties] Properties to set - * @returns TopoConfig instance + * @returns ShardReplicationError instance */ - public static create(properties?: topodata.ITopoConfig): topodata.TopoConfig; + public static create(properties?: topodata.IShardReplicationError): topodata.ShardReplicationError; /** - * Encodes the specified TopoConfig message. Does not implicitly {@link topodata.TopoConfig.verify|verify} messages. - * @param message TopoConfig message or plain object to encode + * Encodes the specified ShardReplicationError message. Does not implicitly {@link topodata.ShardReplicationError.verify|verify} messages. + * @param message ShardReplicationError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: topodata.ITopoConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.IShardReplicationError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TopoConfig message, length delimited. Does not implicitly {@link topodata.TopoConfig.verify|verify} messages. - * @param message TopoConfig message or plain object to encode + * Encodes the specified ShardReplicationError message, length delimited. Does not implicitly {@link topodata.ShardReplicationError.verify|verify} messages. + * @param message ShardReplicationError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: topodata.ITopoConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.IShardReplicationError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TopoConfig message from the specified reader or buffer. + * Decodes a ShardReplicationError message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TopoConfig + * @returns ShardReplicationError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.TopoConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ShardReplicationError; /** - * Decodes a TopoConfig message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationError message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TopoConfig + * @returns ShardReplicationError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.TopoConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ShardReplicationError; /** - * Verifies a TopoConfig message. + * Verifies a ShardReplicationError message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TopoConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationError message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TopoConfig + * @returns ShardReplicationError */ - public static fromObject(object: { [k: string]: any }): topodata.TopoConfig; + public static fromObject(object: { [k: string]: any }): topodata.ShardReplicationError; /** - * Creates a plain object from a TopoConfig message. Also converts values to other types if specified. - * @param message TopoConfig + * Creates a plain object from a ShardReplicationError message. Also converts values to other types if specified. + * @param message ShardReplicationError * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.TopoConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.ShardReplicationError, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TopoConfig to JSON. + * Converts this ShardReplicationError to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TopoConfig + * Gets the default type url for ShardReplicationError * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExternalVitessCluster. */ - interface IExternalVitessCluster { + namespace ShardReplicationError { - /** ExternalVitessCluster topo_config */ - topo_config?: (topodata.ITopoConfig|null); + /** Type enum. */ + enum Type { + UNKNOWN = 0, + NOT_FOUND = 1, + TOPOLOGY_MISMATCH = 2 + } } - /** Represents an ExternalVitessCluster. */ - class ExternalVitessCluster implements IExternalVitessCluster { + /** Properties of a ShardReference. */ + interface IShardReference { + + /** ShardReference name */ + name?: (string|null); + + /** ShardReference key_range */ + key_range?: (topodata.IKeyRange|null); + } + + /** Represents a ShardReference. */ + class ShardReference implements IShardReference { /** - * Constructs a new ExternalVitessCluster. + * Constructs a new ShardReference. * @param [properties] Properties to set */ - constructor(properties?: topodata.IExternalVitessCluster); + constructor(properties?: topodata.IShardReference); - /** ExternalVitessCluster topo_config. */ - public topo_config?: (topodata.ITopoConfig|null); + /** ShardReference name. */ + public name: string; + + /** ShardReference key_range. */ + public key_range?: (topodata.IKeyRange|null); /** - * Creates a new ExternalVitessCluster instance using the specified properties. + * Creates a new ShardReference instance using the specified properties. * @param [properties] Properties to set - * @returns ExternalVitessCluster instance + * @returns ShardReference instance */ - public static create(properties?: topodata.IExternalVitessCluster): topodata.ExternalVitessCluster; + public static create(properties?: topodata.IShardReference): topodata.ShardReference; /** - * Encodes the specified ExternalVitessCluster message. Does not implicitly {@link topodata.ExternalVitessCluster.verify|verify} messages. - * @param message ExternalVitessCluster message or plain object to encode + * Encodes the specified ShardReference message. Does not implicitly {@link topodata.ShardReference.verify|verify} messages. + * @param message ShardReference message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: topodata.IExternalVitessCluster, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.IShardReference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExternalVitessCluster message, length delimited. Does not implicitly {@link topodata.ExternalVitessCluster.verify|verify} messages. - * @param message ExternalVitessCluster message or plain object to encode + * Encodes the specified ShardReference message, length delimited. Does not implicitly {@link topodata.ShardReference.verify|verify} messages. + * @param message ShardReference message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: topodata.IExternalVitessCluster, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.IShardReference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExternalVitessCluster message from the specified reader or buffer. + * Decodes a ShardReference message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExternalVitessCluster + * @returns ShardReference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ExternalVitessCluster; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ShardReference; /** - * Decodes an ExternalVitessCluster message from the specified reader or buffer, length delimited. + * Decodes a ShardReference message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExternalVitessCluster + * @returns ShardReference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ExternalVitessCluster; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ShardReference; /** - * Verifies an ExternalVitessCluster message. + * Verifies a ShardReference message. * @param message Plain 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 ExternalVitessCluster message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReference message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExternalVitessCluster + * @returns ShardReference */ - public static fromObject(object: { [k: string]: any }): topodata.ExternalVitessCluster; + public static fromObject(object: { [k: string]: any }): topodata.ShardReference; /** - * Creates a plain object from an ExternalVitessCluster message. Also converts values to other types if specified. - * @param message ExternalVitessCluster + * Creates a plain object from a ShardReference message. Also converts values to other types if specified. + * @param message ShardReference * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.ExternalVitessCluster, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.ShardReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExternalVitessCluster to JSON. + * Converts this ShardReference to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExternalVitessCluster + * Gets the default type url for ShardReference * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExternalClusters. */ - interface IExternalClusters { + /** Properties of a ShardTabletControl. */ + interface IShardTabletControl { - /** ExternalClusters vitess_cluster */ - vitess_cluster?: (topodata.IExternalVitessCluster[]|null); + /** ShardTabletControl name */ + name?: (string|null); + + /** ShardTabletControl key_range */ + key_range?: (topodata.IKeyRange|null); + + /** ShardTabletControl query_service_disabled */ + query_service_disabled?: (boolean|null); } - /** Represents an ExternalClusters. */ - class ExternalClusters implements IExternalClusters { + /** Represents a ShardTabletControl. */ + class ShardTabletControl implements IShardTabletControl { /** - * Constructs a new ExternalClusters. + * Constructs a new ShardTabletControl. * @param [properties] Properties to set */ - constructor(properties?: topodata.IExternalClusters); + constructor(properties?: topodata.IShardTabletControl); - /** ExternalClusters vitess_cluster. */ - public vitess_cluster: topodata.IExternalVitessCluster[]; + /** ShardTabletControl name. */ + public name: string; + + /** ShardTabletControl key_range. */ + public key_range?: (topodata.IKeyRange|null); + + /** ShardTabletControl query_service_disabled. */ + public query_service_disabled: boolean; /** - * Creates a new ExternalClusters instance using the specified properties. + * Creates a new ShardTabletControl instance using the specified properties. * @param [properties] Properties to set - * @returns ExternalClusters instance + * @returns ShardTabletControl instance */ - public static create(properties?: topodata.IExternalClusters): topodata.ExternalClusters; + public static create(properties?: topodata.IShardTabletControl): topodata.ShardTabletControl; /** - * Encodes the specified ExternalClusters message. Does not implicitly {@link topodata.ExternalClusters.verify|verify} messages. - * @param message ExternalClusters message or plain object to encode + * Encodes the specified ShardTabletControl message. Does not implicitly {@link topodata.ShardTabletControl.verify|verify} messages. + * @param message ShardTabletControl message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: topodata.IExternalClusters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.IShardTabletControl, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExternalClusters message, length delimited. Does not implicitly {@link topodata.ExternalClusters.verify|verify} messages. - * @param message ExternalClusters message or plain object to encode + * Encodes the specified ShardTabletControl message, length delimited. Does not implicitly {@link topodata.ShardTabletControl.verify|verify} messages. + * @param message ShardTabletControl message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: topodata.IExternalClusters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.IShardTabletControl, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExternalClusters message from the specified reader or buffer. + * Decodes a ShardTabletControl message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExternalClusters + * @returns ShardTabletControl * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ExternalClusters; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ShardTabletControl; /** - * Decodes an ExternalClusters message from the specified reader or buffer, length delimited. + * Decodes a ShardTabletControl message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExternalClusters + * @returns ShardTabletControl * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ExternalClusters; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ShardTabletControl; /** - * Verifies an ExternalClusters message. + * Verifies a ShardTabletControl message. * @param message Plain 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 ExternalClusters message from a plain object. Also converts values to their respective internal types. + * Creates a ShardTabletControl message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExternalClusters + * @returns ShardTabletControl */ - public static fromObject(object: { [k: string]: any }): topodata.ExternalClusters; + public static fromObject(object: { [k: string]: any }): topodata.ShardTabletControl; /** - * Creates a plain object from an ExternalClusters message. Also converts values to other types if specified. - * @param message ExternalClusters + * Creates a plain object from a ShardTabletControl message. Also converts values to other types if specified. + * @param message ShardTabletControl * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: topodata.ExternalClusters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.ShardTabletControl, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExternalClusters to JSON. + * Converts this ShardTabletControl to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExternalClusters + * Gets the default type url for ShardTabletControl * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} - -/** Namespace vtrpc. */ -export namespace vtrpc { - /** Properties of a CallerID. */ - interface ICallerID { + /** Properties of a ThrottledAppRule. */ + interface IThrottledAppRule { - /** CallerID principal */ - principal?: (string|null); + /** ThrottledAppRule name */ + name?: (string|null); - /** CallerID component */ - component?: (string|null); + /** ThrottledAppRule ratio */ + ratio?: (number|null); - /** CallerID subcomponent */ - subcomponent?: (string|null); + /** ThrottledAppRule expires_at */ + expires_at?: (vttime.ITime|null); - /** CallerID groups */ - groups?: (string[]|null); + /** ThrottledAppRule exempt */ + exempt?: (boolean|null); } - /** Represents a CallerID. */ - class CallerID implements ICallerID { + /** Represents a ThrottledAppRule. */ + class ThrottledAppRule implements IThrottledAppRule { /** - * Constructs a new CallerID. + * Constructs a new ThrottledAppRule. * @param [properties] Properties to set */ - constructor(properties?: vtrpc.ICallerID); + constructor(properties?: topodata.IThrottledAppRule); - /** CallerID principal. */ - public principal: string; + /** ThrottledAppRule name. */ + public name: string; - /** CallerID component. */ - public component: string; + /** ThrottledAppRule ratio. */ + public ratio: number; - /** CallerID subcomponent. */ - public subcomponent: string; + /** ThrottledAppRule expires_at. */ + public expires_at?: (vttime.ITime|null); - /** CallerID groups. */ - public groups: string[]; + /** ThrottledAppRule exempt. */ + public exempt: boolean; /** - * Creates a new CallerID instance using the specified properties. + * Creates a new ThrottledAppRule instance using the specified properties. * @param [properties] Properties to set - * @returns CallerID instance + * @returns ThrottledAppRule instance */ - public static create(properties?: vtrpc.ICallerID): vtrpc.CallerID; + public static create(properties?: topodata.IThrottledAppRule): topodata.ThrottledAppRule; /** - * Encodes the specified CallerID message. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. - * @param message CallerID message or plain object to encode + * Encodes the specified ThrottledAppRule message. Does not implicitly {@link topodata.ThrottledAppRule.verify|verify} messages. + * @param message ThrottledAppRule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtrpc.ICallerID, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.IThrottledAppRule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CallerID message, length delimited. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. - * @param message CallerID message or plain object to encode + * Encodes the specified ThrottledAppRule message, length delimited. Does not implicitly {@link topodata.ThrottledAppRule.verify|verify} messages. + * @param message ThrottledAppRule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtrpc.ICallerID, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.IThrottledAppRule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CallerID message from the specified reader or buffer. + * Decodes a ThrottledAppRule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CallerID + * @returns ThrottledAppRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtrpc.CallerID; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ThrottledAppRule; /** - * Decodes a CallerID message from the specified reader or buffer, length delimited. + * Decodes a ThrottledAppRule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CallerID + * @returns ThrottledAppRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtrpc.CallerID; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ThrottledAppRule; /** - * Verifies a CallerID message. + * Verifies a ThrottledAppRule message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CallerID message from a plain object. Also converts values to their respective internal types. + * Creates a ThrottledAppRule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CallerID + * @returns ThrottledAppRule */ - public static fromObject(object: { [k: string]: any }): vtrpc.CallerID; + public static fromObject(object: { [k: string]: any }): topodata.ThrottledAppRule; /** - * Creates a plain object from a CallerID message. Also converts values to other types if specified. - * @param message CallerID + * Creates a plain object from a ThrottledAppRule message. Also converts values to other types if specified. + * @param message ThrottledAppRule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtrpc.CallerID, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.ThrottledAppRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CallerID to JSON. + * Converts this ThrottledAppRule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CallerID + * Gets the default type url for ThrottledAppRule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Code enum. */ - enum Code { - OK = 0, - CANCELED = 1, - UNKNOWN = 2, - INVALID_ARGUMENT = 3, - DEADLINE_EXCEEDED = 4, - NOT_FOUND = 5, - ALREADY_EXISTS = 6, - PERMISSION_DENIED = 7, - RESOURCE_EXHAUSTED = 8, - FAILED_PRECONDITION = 9, - ABORTED = 10, - OUT_OF_RANGE = 11, - UNIMPLEMENTED = 12, - INTERNAL = 13, - UNAVAILABLE = 14, - DATA_LOSS = 15, - UNAUTHENTICATED = 16, - CLUSTER_EVENT = 17, - READ_ONLY = 18 - } + /** Properties of a ThrottlerConfig. */ + interface IThrottlerConfig { - /** Properties of a RPCError. */ - interface IRPCError { + /** ThrottlerConfig enabled */ + enabled?: (boolean|null); - /** RPCError message */ - message?: (string|null); + /** ThrottlerConfig threshold */ + threshold?: (number|null); - /** RPCError code */ - code?: (vtrpc.Code|null); + /** ThrottlerConfig custom_query */ + custom_query?: (string|null); + + /** ThrottlerConfig check_as_check_self */ + check_as_check_self?: (boolean|null); + + /** ThrottlerConfig throttled_apps */ + throttled_apps?: ({ [k: string]: topodata.IThrottledAppRule }|null); + + /** ThrottlerConfig app_checked_metrics */ + app_checked_metrics?: ({ [k: string]: topodata.ThrottlerConfig.IMetricNames }|null); + + /** ThrottlerConfig metric_thresholds */ + metric_thresholds?: ({ [k: string]: number }|null); } - /** Represents a RPCError. */ - class RPCError implements IRPCError { + /** Represents a ThrottlerConfig. */ + class ThrottlerConfig implements IThrottlerConfig { /** - * Constructs a new RPCError. + * Constructs a new ThrottlerConfig. * @param [properties] Properties to set */ - constructor(properties?: vtrpc.IRPCError); + constructor(properties?: topodata.IThrottlerConfig); - /** RPCError message. */ - public message: string; + /** ThrottlerConfig enabled. */ + public enabled: boolean; - /** RPCError code. */ - public code: vtrpc.Code; + /** ThrottlerConfig threshold. */ + public threshold: number; + + /** ThrottlerConfig custom_query. */ + public custom_query: string; + + /** ThrottlerConfig check_as_check_self. */ + public check_as_check_self: boolean; + + /** ThrottlerConfig throttled_apps. */ + public throttled_apps: { [k: string]: topodata.IThrottledAppRule }; + + /** ThrottlerConfig app_checked_metrics. */ + public app_checked_metrics: { [k: string]: topodata.ThrottlerConfig.IMetricNames }; + + /** ThrottlerConfig metric_thresholds. */ + public metric_thresholds: { [k: string]: number }; /** - * Creates a new RPCError instance using the specified properties. + * Creates a new ThrottlerConfig instance using the specified properties. * @param [properties] Properties to set - * @returns RPCError instance + * @returns ThrottlerConfig instance */ - public static create(properties?: vtrpc.IRPCError): vtrpc.RPCError; + public static create(properties?: topodata.IThrottlerConfig): topodata.ThrottlerConfig; /** - * Encodes the specified RPCError message. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. - * @param message RPCError message or plain object to encode + * Encodes the specified ThrottlerConfig message. Does not implicitly {@link topodata.ThrottlerConfig.verify|verify} messages. + * @param message ThrottlerConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtrpc.IRPCError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.IThrottlerConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RPCError message, length delimited. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. - * @param message RPCError message or plain object to encode + * Encodes the specified ThrottlerConfig message, length delimited. Does not implicitly {@link topodata.ThrottlerConfig.verify|verify} messages. + * @param message ThrottlerConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtrpc.IRPCError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.IThrottlerConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RPCError message from the specified reader or buffer. + * Decodes a ThrottlerConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RPCError + * @returns ThrottlerConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtrpc.RPCError; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ThrottlerConfig; /** - * Decodes a RPCError message from the specified reader or buffer, length delimited. + * Decodes a ThrottlerConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RPCError + * @returns ThrottlerConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtrpc.RPCError; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ThrottlerConfig; /** - * Verifies a RPCError message. + * Verifies a ThrottlerConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RPCError message from a plain object. Also converts values to their respective internal types. + * Creates a ThrottlerConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RPCError + * @returns ThrottlerConfig */ - public static fromObject(object: { [k: string]: any }): vtrpc.RPCError; + public static fromObject(object: { [k: string]: any }): topodata.ThrottlerConfig; /** - * Creates a plain object from a RPCError message. Also converts values to other types if specified. - * @param message RPCError + * Creates a plain object from a ThrottlerConfig message. Also converts values to other types if specified. + * @param message ThrottlerConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtrpc.RPCError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.ThrottlerConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RPCError to JSON. + * Converts this ThrottlerConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RPCError + * Gets the default type url for ThrottlerConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} -/** Namespace tabletmanagerdata. */ -export namespace tabletmanagerdata { + namespace ThrottlerConfig { - /** TabletSelectionPreference enum. */ - enum TabletSelectionPreference { - ANY = 0, - INORDER = 1, - UNKNOWN = 3 - } + /** Properties of a MetricNames. */ + interface IMetricNames { - /** Properties of a TableDefinition. */ - interface ITableDefinition { + /** MetricNames names */ + names?: (string[]|null); + } - /** TableDefinition name */ - name?: (string|null); + /** Represents a MetricNames. */ + class MetricNames implements IMetricNames { - /** TableDefinition schema */ - schema?: (string|null); + /** + * Constructs a new MetricNames. + * @param [properties] Properties to set + */ + constructor(properties?: topodata.ThrottlerConfig.IMetricNames); - /** TableDefinition columns */ - columns?: (string[]|null); + /** MetricNames names. */ + public names: string[]; - /** TableDefinition primary_key_columns */ - primary_key_columns?: (string[]|null); + /** + * Creates a new MetricNames instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricNames instance + */ + public static create(properties?: topodata.ThrottlerConfig.IMetricNames): topodata.ThrottlerConfig.MetricNames; - /** TableDefinition type */ - type?: (string|null); + /** + * Encodes the specified MetricNames message. Does not implicitly {@link topodata.ThrottlerConfig.MetricNames.verify|verify} messages. + * @param message MetricNames message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: topodata.ThrottlerConfig.IMetricNames, writer?: $protobuf.Writer): $protobuf.Writer; - /** TableDefinition data_length */ - data_length?: (number|Long|null); + /** + * Encodes the specified MetricNames message, length delimited. Does not implicitly {@link topodata.ThrottlerConfig.MetricNames.verify|verify} messages. + * @param message MetricNames message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: topodata.ThrottlerConfig.IMetricNames, writer?: $protobuf.Writer): $protobuf.Writer; - /** TableDefinition row_count */ - row_count?: (number|Long|null); + /** + * Decodes a MetricNames message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricNames + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ThrottlerConfig.MetricNames; - /** TableDefinition fields */ - fields?: (query.IField[]|null); - } + /** + * Decodes a MetricNames message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricNames + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ThrottlerConfig.MetricNames; - /** Represents a TableDefinition. */ - class TableDefinition implements ITableDefinition { + /** + * Verifies a MetricNames message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Constructs a new TableDefinition. - * @param [properties] Properties to set - */ - constructor(properties?: tabletmanagerdata.ITableDefinition); + /** + * Creates a MetricNames message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricNames + */ + public static fromObject(object: { [k: string]: any }): topodata.ThrottlerConfig.MetricNames; - /** TableDefinition name. */ - public name: string; + /** + * Creates a plain object from a MetricNames message. Also converts values to other types if specified. + * @param message MetricNames + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: topodata.ThrottlerConfig.MetricNames, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TableDefinition schema. */ - public schema: string; + /** + * Converts this MetricNames to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TableDefinition columns. */ - public columns: string[]; + /** + * Gets the default type url for MetricNames + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** TableDefinition primary_key_columns. */ - public primary_key_columns: string[]; + /** Properties of a SrvKeyspace. */ + interface ISrvKeyspace { - /** TableDefinition type. */ - public type: string; + /** SrvKeyspace partitions */ + partitions?: (topodata.SrvKeyspace.IKeyspacePartition[]|null); - /** TableDefinition data_length. */ - public data_length: (number|Long); + /** SrvKeyspace throttler_config */ + throttler_config?: (topodata.IThrottlerConfig|null); + } - /** TableDefinition row_count. */ - public row_count: (number|Long); + /** Represents a SrvKeyspace. */ + class SrvKeyspace implements ISrvKeyspace { - /** TableDefinition fields. */ - public fields: query.IField[]; + /** + * Constructs a new SrvKeyspace. + * @param [properties] Properties to set + */ + constructor(properties?: topodata.ISrvKeyspace); + + /** SrvKeyspace partitions. */ + public partitions: topodata.SrvKeyspace.IKeyspacePartition[]; + + /** SrvKeyspace throttler_config. */ + public throttler_config?: (topodata.IThrottlerConfig|null); /** - * Creates a new TableDefinition instance using the specified properties. + * Creates a new SrvKeyspace instance using the specified properties. * @param [properties] Properties to set - * @returns TableDefinition instance + * @returns SrvKeyspace instance */ - public static create(properties?: tabletmanagerdata.ITableDefinition): tabletmanagerdata.TableDefinition; + public static create(properties?: topodata.ISrvKeyspace): topodata.SrvKeyspace; /** - * Encodes the specified TableDefinition message. Does not implicitly {@link tabletmanagerdata.TableDefinition.verify|verify} messages. - * @param message TableDefinition message or plain object to encode + * Encodes the specified SrvKeyspace message. Does not implicitly {@link topodata.SrvKeyspace.verify|verify} messages. + * @param message SrvKeyspace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.ITableDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.ISrvKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TableDefinition message, length delimited. Does not implicitly {@link tabletmanagerdata.TableDefinition.verify|verify} messages. - * @param message TableDefinition message or plain object to encode + * Encodes the specified SrvKeyspace message, length delimited. Does not implicitly {@link topodata.SrvKeyspace.verify|verify} messages. + * @param message SrvKeyspace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.ITableDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.ISrvKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TableDefinition message from the specified reader or buffer. + * Decodes a SrvKeyspace message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TableDefinition + * @returns SrvKeyspace * @throws {Error} If the payload is 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.TableDefinition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.SrvKeyspace; /** - * Decodes a TableDefinition message from the specified reader or buffer, length delimited. + * Decodes a SrvKeyspace message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TableDefinition + * @returns SrvKeyspace * @throws {Error} If the 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.TableDefinition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.SrvKeyspace; /** - * Verifies a TableDefinition message. + * Verifies a SrvKeyspace message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TableDefinition message from a plain object. Also converts values to their respective internal types. + * Creates a SrvKeyspace message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TableDefinition + * @returns SrvKeyspace */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.TableDefinition; + public static fromObject(object: { [k: string]: any }): topodata.SrvKeyspace; /** - * Creates a plain object from a TableDefinition message. Also converts values to other types if specified. - * @param message TableDefinition + * Creates a plain object from a SrvKeyspace message. Also converts values to other types if specified. + * @param message SrvKeyspace * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.TableDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.SrvKeyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TableDefinition to JSON. + * Converts this SrvKeyspace to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TableDefinition + * Gets the default type url for SrvKeyspace * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SchemaDefinition. */ - interface ISchemaDefinition { + namespace SrvKeyspace { - /** SchemaDefinition database_schema */ - database_schema?: (string|null); + /** Properties of a KeyspacePartition. */ + interface IKeyspacePartition { - /** SchemaDefinition table_definitions */ - table_definitions?: (tabletmanagerdata.ITableDefinition[]|null); + /** KeyspacePartition served_type */ + served_type?: (topodata.TabletType|null); + + /** KeyspacePartition shard_references */ + shard_references?: (topodata.IShardReference[]|null); + + /** KeyspacePartition shard_tablet_controls */ + shard_tablet_controls?: (topodata.IShardTabletControl[]|null); + } + + /** Represents a KeyspacePartition. */ + class KeyspacePartition implements IKeyspacePartition { + + /** + * Constructs a new KeyspacePartition. + * @param [properties] Properties to set + */ + constructor(properties?: topodata.SrvKeyspace.IKeyspacePartition); + + /** KeyspacePartition served_type. */ + public served_type: topodata.TabletType; + + /** KeyspacePartition shard_references. */ + public shard_references: topodata.IShardReference[]; + + /** KeyspacePartition shard_tablet_controls. */ + public shard_tablet_controls: topodata.IShardTabletControl[]; + + /** + * Creates a new KeyspacePartition instance using the specified properties. + * @param [properties] Properties to set + * @returns KeyspacePartition instance + */ + public static create(properties?: topodata.SrvKeyspace.IKeyspacePartition): topodata.SrvKeyspace.KeyspacePartition; + + /** + * Encodes the specified KeyspacePartition message. Does not implicitly {@link topodata.SrvKeyspace.KeyspacePartition.verify|verify} messages. + * @param message KeyspacePartition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: topodata.SrvKeyspace.IKeyspacePartition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified KeyspacePartition message, length delimited. Does not implicitly {@link topodata.SrvKeyspace.KeyspacePartition.verify|verify} messages. + * @param message KeyspacePartition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: topodata.SrvKeyspace.IKeyspacePartition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KeyspacePartition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KeyspacePartition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.SrvKeyspace.KeyspacePartition; + + /** + * Decodes a KeyspacePartition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KeyspacePartition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.SrvKeyspace.KeyspacePartition; + + /** + * Verifies a KeyspacePartition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a KeyspacePartition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KeyspacePartition + */ + public static fromObject(object: { [k: string]: any }): topodata.SrvKeyspace.KeyspacePartition; + + /** + * Creates a plain object from a KeyspacePartition message. Also converts values to other types if specified. + * @param message KeyspacePartition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: topodata.SrvKeyspace.KeyspacePartition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this KeyspacePartition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KeyspacePartition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a SchemaDefinition. */ - class SchemaDefinition implements ISchemaDefinition { + /** Properties of a CellInfo. */ + interface ICellInfo { + + /** CellInfo server_address */ + server_address?: (string|null); + + /** CellInfo root */ + root?: (string|null); + } + + /** Represents a CellInfo. */ + class CellInfo implements ICellInfo { /** - * Constructs a new SchemaDefinition. + * Constructs a new CellInfo. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISchemaDefinition); + constructor(properties?: topodata.ICellInfo); - /** SchemaDefinition database_schema. */ - public database_schema: string; + /** CellInfo server_address. */ + public server_address: string; - /** SchemaDefinition table_definitions. */ - public table_definitions: tabletmanagerdata.ITableDefinition[]; + /** CellInfo root. */ + public root: string; /** - * Creates a new SchemaDefinition instance using the specified properties. + * Creates a new CellInfo instance using the specified properties. * @param [properties] Properties to set - * @returns SchemaDefinition instance + * @returns CellInfo instance */ - public static create(properties?: tabletmanagerdata.ISchemaDefinition): tabletmanagerdata.SchemaDefinition; + public static create(properties?: topodata.ICellInfo): topodata.CellInfo; /** - * Encodes the specified SchemaDefinition message. Does not implicitly {@link tabletmanagerdata.SchemaDefinition.verify|verify} messages. - * @param message SchemaDefinition message or plain object to encode + * Encodes the specified CellInfo message. Does not implicitly {@link topodata.CellInfo.verify|verify} messages. + * @param message CellInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.ISchemaDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.ICellInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SchemaDefinition message, length delimited. Does not implicitly {@link tabletmanagerdata.SchemaDefinition.verify|verify} messages. - * @param message SchemaDefinition message or plain object to encode + * Encodes the specified CellInfo message, length delimited. Does not implicitly {@link topodata.CellInfo.verify|verify} messages. + * @param message CellInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.ISchemaDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.ICellInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SchemaDefinition message from the specified reader or buffer. + * Decodes a CellInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SchemaDefinition + * @returns CellInfo * @throws {Error} If the payload is 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.SchemaDefinition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.CellInfo; /** - * Decodes a SchemaDefinition message from the specified reader or buffer, length delimited. + * Decodes a CellInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SchemaDefinition + * @returns CellInfo * @throws {Error} If the 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.SchemaDefinition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.CellInfo; /** - * Verifies a SchemaDefinition message. + * Verifies a CellInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SchemaDefinition message from a plain object. Also converts values to their respective internal types. + * Creates a CellInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SchemaDefinition + * @returns CellInfo */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SchemaDefinition; + public static fromObject(object: { [k: string]: any }): topodata.CellInfo; /** - * Creates a plain object from a SchemaDefinition message. Also converts values to other types if specified. - * @param message SchemaDefinition + * Creates a plain object from a CellInfo message. Also converts values to other types if specified. + * @param message CellInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.SchemaDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.CellInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SchemaDefinition to JSON. + * Converts this CellInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SchemaDefinition + * Gets the default type url for CellInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SchemaChangeResult. */ - interface ISchemaChangeResult { - - /** SchemaChangeResult before_schema */ - before_schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** Properties of a CellsAlias. */ + interface ICellsAlias { - /** SchemaChangeResult after_schema */ - after_schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** CellsAlias cells */ + cells?: (string[]|null); } - /** Represents a SchemaChangeResult. */ - class SchemaChangeResult implements ISchemaChangeResult { + /** Represents a CellsAlias. */ + class CellsAlias implements ICellsAlias { /** - * Constructs a new SchemaChangeResult. + * Constructs a new CellsAlias. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISchemaChangeResult); - - /** SchemaChangeResult before_schema. */ - public before_schema?: (tabletmanagerdata.ISchemaDefinition|null); + constructor(properties?: topodata.ICellsAlias); - /** SchemaChangeResult after_schema. */ - public after_schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** CellsAlias cells. */ + public cells: string[]; /** - * Creates a new SchemaChangeResult instance using the specified properties. + * Creates a new CellsAlias instance using the specified properties. * @param [properties] Properties to set - * @returns SchemaChangeResult instance + * @returns CellsAlias instance */ - public static create(properties?: tabletmanagerdata.ISchemaChangeResult): tabletmanagerdata.SchemaChangeResult; + public static create(properties?: topodata.ICellsAlias): topodata.CellsAlias; /** - * Encodes the specified SchemaChangeResult message. Does not implicitly {@link tabletmanagerdata.SchemaChangeResult.verify|verify} messages. - * @param message SchemaChangeResult message or plain object to encode + * Encodes the specified CellsAlias message. Does not implicitly {@link topodata.CellsAlias.verify|verify} messages. + * @param message CellsAlias message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.ISchemaChangeResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.ICellsAlias, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SchemaChangeResult message, length delimited. Does not implicitly {@link tabletmanagerdata.SchemaChangeResult.verify|verify} messages. - * @param message SchemaChangeResult message or plain object to encode + * Encodes the specified CellsAlias message, length delimited. Does not implicitly {@link topodata.CellsAlias.verify|verify} messages. + * @param message CellsAlias message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.ISchemaChangeResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.ICellsAlias, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SchemaChangeResult message from the specified reader or buffer. + * Decodes a CellsAlias message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SchemaChangeResult + * @returns CellsAlias * @throws {Error} If the payload is 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.SchemaChangeResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.CellsAlias; /** - * Decodes a SchemaChangeResult message from the specified reader or buffer, length delimited. + * Decodes a CellsAlias message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SchemaChangeResult + * @returns CellsAlias * @throws {Error} If the 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.SchemaChangeResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.CellsAlias; /** - * Verifies a SchemaChangeResult message. + * Verifies a CellsAlias message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SchemaChangeResult message from a plain object. Also converts values to their respective internal types. + * Creates a CellsAlias message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SchemaChangeResult + * @returns CellsAlias */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SchemaChangeResult; + public static fromObject(object: { [k: string]: any }): topodata.CellsAlias; /** - * Creates a plain object from a SchemaChangeResult message. Also converts values to other types if specified. - * @param message SchemaChangeResult + * Creates a plain object from a CellsAlias message. Also converts values to other types if specified. + * @param message CellsAlias * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.SchemaChangeResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.CellsAlias, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SchemaChangeResult to JSON. + * Converts this CellsAlias to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SchemaChangeResult + * Gets the default type url for CellsAlias * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserPermission. */ - interface IUserPermission { - - /** UserPermission host */ - host?: (string|null); + /** Properties of a TopoConfig. */ + interface ITopoConfig { - /** UserPermission user */ - user?: (string|null); + /** TopoConfig topo_type */ + topo_type?: (string|null); - /** UserPermission password_checksum */ - password_checksum?: (number|Long|null); + /** TopoConfig server */ + server?: (string|null); - /** UserPermission privileges */ - privileges?: ({ [k: string]: string }|null); + /** TopoConfig root */ + root?: (string|null); } - /** Represents a UserPermission. */ - class UserPermission implements IUserPermission { + /** Represents a TopoConfig. */ + class TopoConfig implements ITopoConfig { /** - * Constructs a new UserPermission. + * Constructs a new TopoConfig. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IUserPermission); - - /** UserPermission host. */ - public host: string; + constructor(properties?: topodata.ITopoConfig); - /** UserPermission user. */ - public user: string; + /** TopoConfig topo_type. */ + public topo_type: string; - /** UserPermission password_checksum. */ - public password_checksum: (number|Long); + /** TopoConfig server. */ + public server: string; - /** UserPermission privileges. */ - public privileges: { [k: string]: string }; + /** TopoConfig root. */ + public root: string; /** - * Creates a new UserPermission instance using the specified properties. + * Creates a new TopoConfig instance using the specified properties. * @param [properties] Properties to set - * @returns UserPermission instance + * @returns TopoConfig instance */ - public static create(properties?: tabletmanagerdata.IUserPermission): tabletmanagerdata.UserPermission; + public static create(properties?: topodata.ITopoConfig): topodata.TopoConfig; /** - * Encodes the specified UserPermission message. Does not implicitly {@link tabletmanagerdata.UserPermission.verify|verify} messages. - * @param message UserPermission message or plain object to encode + * Encodes the specified TopoConfig message. Does not implicitly {@link topodata.TopoConfig.verify|verify} messages. + * @param message TopoConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IUserPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.ITopoConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UserPermission message, length delimited. Does not implicitly {@link tabletmanagerdata.UserPermission.verify|verify} messages. - * @param message UserPermission message or plain object to encode + * Encodes the specified TopoConfig message, length delimited. Does not implicitly {@link topodata.TopoConfig.verify|verify} messages. + * @param message TopoConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IUserPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.ITopoConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserPermission message from the specified reader or buffer. + * Decodes a TopoConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserPermission + * @returns TopoConfig * @throws {Error} If the payload is 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.UserPermission; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.TopoConfig; /** - * Decodes a UserPermission message from the specified reader or buffer, length delimited. + * Decodes a TopoConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserPermission + * @returns TopoConfig * @throws {Error} If the 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.UserPermission; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.TopoConfig; /** - * Verifies a UserPermission message. + * Verifies a TopoConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a UserPermission message from a plain object. Also converts values to their respective internal types. + * Creates a TopoConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserPermission + * @returns TopoConfig */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UserPermission; + public static fromObject(object: { [k: string]: any }): topodata.TopoConfig; /** - * Creates a plain object from a UserPermission message. Also converts values to other types if specified. - * @param message UserPermission + * Creates a plain object from a TopoConfig message. Also converts values to other types if specified. + * @param message TopoConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.UserPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.TopoConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserPermission to JSON. + * Converts this TopoConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserPermission + * Gets the default type url for TopoConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DbPermission. */ - interface IDbPermission { - - /** DbPermission host */ - host?: (string|null); - - /** DbPermission db */ - db?: (string|null); - - /** DbPermission user */ - user?: (string|null); + /** Properties of an ExternalVitessCluster. */ + interface IExternalVitessCluster { - /** DbPermission privileges */ - privileges?: ({ [k: string]: string }|null); + /** ExternalVitessCluster topo_config */ + topo_config?: (topodata.ITopoConfig|null); } - /** Represents a DbPermission. */ - class DbPermission implements IDbPermission { + /** Represents an ExternalVitessCluster. */ + class ExternalVitessCluster implements IExternalVitessCluster { /** - * Constructs a new DbPermission. + * Constructs a new ExternalVitessCluster. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IDbPermission); - - /** DbPermission host. */ - public host: string; - - /** DbPermission db. */ - public db: string; - - /** DbPermission user. */ - public user: string; + constructor(properties?: topodata.IExternalVitessCluster); - /** DbPermission privileges. */ - public privileges: { [k: string]: string }; + /** ExternalVitessCluster topo_config. */ + public topo_config?: (topodata.ITopoConfig|null); /** - * Creates a new DbPermission instance using the specified properties. + * Creates a new ExternalVitessCluster instance using the specified properties. * @param [properties] Properties to set - * @returns DbPermission instance + * @returns ExternalVitessCluster instance */ - public static create(properties?: tabletmanagerdata.IDbPermission): tabletmanagerdata.DbPermission; + public static create(properties?: topodata.IExternalVitessCluster): topodata.ExternalVitessCluster; /** - * Encodes the specified DbPermission message. Does not implicitly {@link tabletmanagerdata.DbPermission.verify|verify} messages. - * @param message DbPermission message or plain object to encode + * Encodes the specified ExternalVitessCluster message. Does not implicitly {@link topodata.ExternalVitessCluster.verify|verify} messages. + * @param message ExternalVitessCluster message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IDbPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.IExternalVitessCluster, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DbPermission message, length delimited. Does not implicitly {@link tabletmanagerdata.DbPermission.verify|verify} messages. - * @param message DbPermission message or plain object to encode + * Encodes the specified ExternalVitessCluster message, length delimited. Does not implicitly {@link topodata.ExternalVitessCluster.verify|verify} messages. + * @param message ExternalVitessCluster message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IDbPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.IExternalVitessCluster, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DbPermission message from the specified reader or buffer. + * Decodes an ExternalVitessCluster message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DbPermission + * @returns ExternalVitessCluster * @throws {Error} If the payload is 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.DbPermission; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ExternalVitessCluster; /** - * Decodes a DbPermission message from the specified reader or buffer, length delimited. + * Decodes an ExternalVitessCluster message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DbPermission + * @returns ExternalVitessCluster * @throws {Error} If the 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.DbPermission; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ExternalVitessCluster; /** - * Verifies a DbPermission message. + * Verifies an ExternalVitessCluster message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DbPermission message from a plain object. Also converts values to their respective internal types. + * Creates an ExternalVitessCluster message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DbPermission + * @returns ExternalVitessCluster */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DbPermission; + public static fromObject(object: { [k: string]: any }): topodata.ExternalVitessCluster; /** - * Creates a plain object from a DbPermission message. Also converts values to other types if specified. - * @param message DbPermission + * Creates a plain object from an ExternalVitessCluster message. Also converts values to other types if specified. + * @param message ExternalVitessCluster * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.DbPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.ExternalVitessCluster, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DbPermission to JSON. + * Converts this ExternalVitessCluster to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DbPermission + * Gets the default type url for ExternalVitessCluster * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Permissions. */ - interface IPermissions { - - /** Permissions user_permissions */ - user_permissions?: (tabletmanagerdata.IUserPermission[]|null); + /** Properties of an ExternalClusters. */ + interface IExternalClusters { - /** Permissions db_permissions */ - db_permissions?: (tabletmanagerdata.IDbPermission[]|null); + /** ExternalClusters vitess_cluster */ + vitess_cluster?: (topodata.IExternalVitessCluster[]|null); } - /** Represents a Permissions. */ - class Permissions implements IPermissions { + /** Represents an ExternalClusters. */ + class ExternalClusters implements IExternalClusters { /** - * Constructs a new Permissions. + * Constructs a new ExternalClusters. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPermissions); - - /** Permissions user_permissions. */ - public user_permissions: tabletmanagerdata.IUserPermission[]; + constructor(properties?: topodata.IExternalClusters); - /** Permissions db_permissions. */ - public db_permissions: tabletmanagerdata.IDbPermission[]; + /** ExternalClusters vitess_cluster. */ + public vitess_cluster: topodata.IExternalVitessCluster[]; /** - * Creates a new Permissions instance using the specified properties. + * Creates a new ExternalClusters instance using the specified properties. * @param [properties] Properties to set - * @returns Permissions instance + * @returns ExternalClusters instance */ - public static create(properties?: tabletmanagerdata.IPermissions): tabletmanagerdata.Permissions; + public static create(properties?: topodata.IExternalClusters): topodata.ExternalClusters; /** - * Encodes the specified Permissions message. Does not implicitly {@link tabletmanagerdata.Permissions.verify|verify} messages. - * @param message Permissions message or plain object to encode + * Encodes the specified ExternalClusters message. Does not implicitly {@link topodata.ExternalClusters.verify|verify} messages. + * @param message ExternalClusters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IPermissions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.IExternalClusters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Permissions message, length delimited. Does not implicitly {@link tabletmanagerdata.Permissions.verify|verify} messages. - * @param message Permissions message or plain object to encode + * Encodes the specified ExternalClusters message, length delimited. Does not implicitly {@link topodata.ExternalClusters.verify|verify} messages. + * @param message ExternalClusters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IPermissions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.IExternalClusters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Permissions message from the specified reader or buffer. + * Decodes an ExternalClusters message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Permissions + * @returns ExternalClusters * @throws {Error} If the payload is 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.Permissions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ExternalClusters; /** - * Decodes a Permissions message from the specified reader or buffer, length delimited. + * Decodes an ExternalClusters message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Permissions + * @returns ExternalClusters * @throws {Error} If the 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.Permissions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ExternalClusters; /** - * Verifies a Permissions message. + * Verifies an ExternalClusters message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Permissions message from a plain object. Also converts values to their respective internal types. + * Creates an ExternalClusters message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Permissions + * @returns ExternalClusters */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.Permissions; + public static fromObject(object: { [k: string]: any }): topodata.ExternalClusters; /** - * Creates a plain object from a Permissions message. Also converts values to other types if specified. - * @param message Permissions + * Creates a plain object from an ExternalClusters message. Also converts values to other types if specified. + * @param message ExternalClusters * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.Permissions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.ExternalClusters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Permissions to JSON. + * Converts this ExternalClusters to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Permissions + * Gets the default type url for ExternalClusters * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of a PingRequest. */ - interface IPingRequest { +/** Namespace vtrpc. */ +export namespace vtrpc { - /** PingRequest payload */ - payload?: (string|null); + /** Properties of a CallerID. */ + interface ICallerID { + + /** CallerID principal */ + principal?: (string|null); + + /** CallerID component */ + component?: (string|null); + + /** CallerID subcomponent */ + subcomponent?: (string|null); + + /** CallerID groups */ + groups?: (string[]|null); } - /** Represents a PingRequest. */ - class PingRequest implements IPingRequest { + /** Represents a CallerID. */ + class CallerID implements ICallerID { /** - * Constructs a new PingRequest. + * Constructs a new CallerID. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPingRequest); + constructor(properties?: vtrpc.ICallerID); - /** PingRequest payload. */ - public payload: string; + /** CallerID principal. */ + public principal: string; + + /** CallerID component. */ + public component: string; + + /** CallerID subcomponent. */ + public subcomponent: string; + + /** CallerID groups. */ + public groups: string[]; /** - * Creates a new PingRequest instance using the specified properties. + * Creates a new CallerID instance using the specified properties. * @param [properties] Properties to set - * @returns PingRequest instance + * @returns CallerID instance */ - public static create(properties?: tabletmanagerdata.IPingRequest): tabletmanagerdata.PingRequest; + public static create(properties?: vtrpc.ICallerID): vtrpc.CallerID; /** - * Encodes the specified PingRequest message. Does not implicitly {@link tabletmanagerdata.PingRequest.verify|verify} messages. - * @param message PingRequest message or plain object to encode + * Encodes the specified CallerID message. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * @param message CallerID message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IPingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtrpc.ICallerID, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PingRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PingRequest.verify|verify} messages. - * @param message PingRequest message or plain object to encode + * Encodes the specified CallerID message, length delimited. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * @param message CallerID message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IPingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtrpc.ICallerID, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PingRequest message from the specified reader or buffer. + * Decodes a CallerID message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PingRequest + * @returns CallerID * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PingRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtrpc.CallerID; /** - * Decodes a PingRequest message from the specified reader or buffer, length delimited. + * Decodes a CallerID message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PingRequest + * @returns CallerID * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PingRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtrpc.CallerID; /** - * Verifies a PingRequest message. + * Verifies a CallerID message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PingRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CallerID message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PingRequest + * @returns CallerID */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PingRequest; + public static fromObject(object: { [k: string]: any }): vtrpc.CallerID; /** - * Creates a plain object from a PingRequest message. Also converts values to other types if specified. - * @param message PingRequest + * Creates a plain object from a CallerID message. Also converts values to other types if specified. + * @param message CallerID * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.PingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtrpc.CallerID, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PingRequest to JSON. + * Converts this CallerID to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PingRequest + * Gets the default type url for CallerID * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PingResponse. */ - interface IPingResponse { + /** Code enum. */ + enum Code { + OK = 0, + CANCELED = 1, + UNKNOWN = 2, + INVALID_ARGUMENT = 3, + DEADLINE_EXCEEDED = 4, + NOT_FOUND = 5, + ALREADY_EXISTS = 6, + PERMISSION_DENIED = 7, + RESOURCE_EXHAUSTED = 8, + FAILED_PRECONDITION = 9, + ABORTED = 10, + OUT_OF_RANGE = 11, + UNIMPLEMENTED = 12, + INTERNAL = 13, + UNAVAILABLE = 14, + DATA_LOSS = 15, + UNAUTHENTICATED = 16, + CLUSTER_EVENT = 17, + READ_ONLY = 18 + } - /** PingResponse payload */ - payload?: (string|null); + /** Properties of a RPCError. */ + interface IRPCError { + + /** RPCError message */ + message?: (string|null); + + /** RPCError code */ + code?: (vtrpc.Code|null); } - /** Represents a PingResponse. */ - class PingResponse implements IPingResponse { + /** Represents a RPCError. */ + class RPCError implements IRPCError { /** - * Constructs a new PingResponse. + * Constructs a new RPCError. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPingResponse); + constructor(properties?: vtrpc.IRPCError); - /** PingResponse payload. */ - public payload: string; + /** RPCError message. */ + public message: string; + + /** RPCError code. */ + public code: vtrpc.Code; /** - * Creates a new PingResponse instance using the specified properties. + * Creates a new RPCError instance using the specified properties. * @param [properties] Properties to set - * @returns PingResponse instance + * @returns RPCError instance */ - public static create(properties?: tabletmanagerdata.IPingResponse): tabletmanagerdata.PingResponse; + public static create(properties?: vtrpc.IRPCError): vtrpc.RPCError; /** - * Encodes the specified PingResponse message. Does not implicitly {@link tabletmanagerdata.PingResponse.verify|verify} messages. - * @param message PingResponse message or plain object to encode + * Encodes the specified RPCError message. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * @param message RPCError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IPingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtrpc.IRPCError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PingResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PingResponse.verify|verify} messages. - * @param message PingResponse message or plain object to encode + * Encodes the specified RPCError message, length delimited. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * @param message RPCError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IPingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtrpc.IRPCError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PingResponse message from the specified reader or buffer. + * Decodes a RPCError message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PingResponse + * @returns RPCError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PingResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtrpc.RPCError; /** - * Decodes a PingResponse message from the specified reader or buffer, length delimited. + * Decodes a RPCError message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PingResponse + * @returns RPCError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PingResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtrpc.RPCError; /** - * Verifies a PingResponse message. + * Verifies a RPCError message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PingResponse 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. * @param object Plain object - * @returns PingResponse + * @returns RPCError */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PingResponse; + public static fromObject(object: { [k: string]: any }): vtrpc.RPCError; /** - * Creates a plain object from a PingResponse message. Also converts values to other types if specified. - * @param message PingResponse + * Creates a plain object from a RPCError message. Also converts values to other types if specified. + * @param message RPCError * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.PingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtrpc.RPCError, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PingResponse to JSON. + * Converts this RPCError to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PingResponse + * Gets the default type url for RPCError * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of a SleepRequest. */ - interface ISleepRequest { +/** Namespace tabletmanagerdata. */ +export namespace tabletmanagerdata { - /** SleepRequest duration */ - duration?: (number|Long|null); + /** TabletSelectionPreference enum. */ + enum TabletSelectionPreference { + ANY = 0, + INORDER = 1, + UNKNOWN = 3 } - /** Represents a SleepRequest. */ - class SleepRequest implements ISleepRequest { + /** Properties of a TableDefinition. */ + interface ITableDefinition { - /** - * Constructs a new SleepRequest. - * @param [properties] Properties to set - */ - constructor(properties?: tabletmanagerdata.ISleepRequest); + /** TableDefinition name */ + name?: (string|null); - /** SleepRequest duration. */ - public duration: (number|Long); + /** TableDefinition schema */ + schema?: (string|null); + + /** TableDefinition columns */ + columns?: (string[]|null); + + /** TableDefinition primary_key_columns */ + primary_key_columns?: (string[]|null); + + /** TableDefinition type */ + type?: (string|null); + + /** TableDefinition data_length */ + data_length?: (number|Long|null); + + /** TableDefinition row_count */ + row_count?: (number|Long|null); + + /** TableDefinition fields */ + fields?: (query.IField[]|null); + } + + /** Represents a TableDefinition. */ + class TableDefinition implements ITableDefinition { /** - * Creates a new SleepRequest instance using the specified properties. + * Constructs a new TableDefinition. * @param [properties] Properties to set - * @returns SleepRequest instance */ - public static create(properties?: tabletmanagerdata.ISleepRequest): tabletmanagerdata.SleepRequest; + constructor(properties?: tabletmanagerdata.ITableDefinition); - /** - * Encodes the specified SleepRequest message. Does not implicitly {@link tabletmanagerdata.SleepRequest.verify|verify} messages. - * @param message SleepRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + /** TableDefinition name. */ + public name: string; + + /** TableDefinition schema. */ + public schema: string; + + /** TableDefinition columns. */ + public columns: string[]; + + /** TableDefinition primary_key_columns. */ + public primary_key_columns: string[]; + + /** TableDefinition type. */ + public type: string; + + /** TableDefinition data_length. */ + public data_length: (number|Long); + + /** TableDefinition row_count. */ + public row_count: (number|Long); + + /** TableDefinition fields. */ + public fields: query.IField[]; + + /** + * Creates a new TableDefinition instance using the specified properties. + * @param [properties] Properties to set + * @returns TableDefinition instance */ - public static encode(message: tabletmanagerdata.ISleepRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static create(properties?: tabletmanagerdata.ITableDefinition): tabletmanagerdata.TableDefinition; /** - * Encodes the specified SleepRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SleepRequest.verify|verify} messages. - * @param message SleepRequest message or plain object to encode + * Encodes the specified TableDefinition message. Does not implicitly {@link tabletmanagerdata.TableDefinition.verify|verify} messages. + * @param message TableDefinition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.ISleepRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ITableDefinition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SleepRequest message from the specified reader or buffer. + * Encodes the specified TableDefinition message, length delimited. Does not implicitly {@link tabletmanagerdata.TableDefinition.verify|verify} messages. + * @param message TableDefinition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.ITableDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TableDefinition message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SleepRequest + * @returns TableDefinition * @throws {Error} If the payload is 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.SleepRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.TableDefinition; /** - * Decodes a SleepRequest message from the specified reader or buffer, length delimited. + * Decodes a TableDefinition message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SleepRequest + * @returns TableDefinition * @throws {Error} If the 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.SleepRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.TableDefinition; /** - * Verifies a SleepRequest message. + * Verifies a TableDefinition message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SleepRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TableDefinition message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SleepRequest + * @returns TableDefinition */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SleepRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.TableDefinition; /** - * Creates a plain object from a SleepRequest message. Also converts values to other types if specified. - * @param message SleepRequest + * Creates a plain object from a TableDefinition message. Also converts values to other types if specified. + * @param message TableDefinition * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.SleepRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.TableDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SleepRequest to JSON. + * Converts this TableDefinition to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SleepRequest + * Gets the default type url for TableDefinition * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SleepResponse. */ - interface ISleepResponse { + /** Properties of a SchemaDefinition. */ + interface ISchemaDefinition { + + /** SchemaDefinition database_schema */ + database_schema?: (string|null); + + /** SchemaDefinition table_definitions */ + table_definitions?: (tabletmanagerdata.ITableDefinition[]|null); } - /** Represents a SleepResponse. */ - class SleepResponse implements ISleepResponse { + /** Represents a SchemaDefinition. */ + class SchemaDefinition implements ISchemaDefinition { /** - * Constructs a new SleepResponse. + * Constructs a new SchemaDefinition. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISleepResponse); + constructor(properties?: tabletmanagerdata.ISchemaDefinition); + + /** SchemaDefinition database_schema. */ + public database_schema: string; + + /** SchemaDefinition table_definitions. */ + public table_definitions: tabletmanagerdata.ITableDefinition[]; /** - * Creates a new SleepResponse instance using the specified properties. + * Creates a new SchemaDefinition instance using the specified properties. * @param [properties] Properties to set - * @returns SleepResponse instance + * @returns SchemaDefinition instance */ - public static create(properties?: tabletmanagerdata.ISleepResponse): tabletmanagerdata.SleepResponse; + public static create(properties?: tabletmanagerdata.ISchemaDefinition): tabletmanagerdata.SchemaDefinition; /** - * Encodes the specified SleepResponse message. Does not implicitly {@link tabletmanagerdata.SleepResponse.verify|verify} messages. - * @param message SleepResponse message or plain object to encode + * Encodes the specified SchemaDefinition message. Does not implicitly {@link tabletmanagerdata.SchemaDefinition.verify|verify} messages. + * @param message SchemaDefinition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.ISleepResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISchemaDefinition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SleepResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SleepResponse.verify|verify} messages. - * @param message SleepResponse message or plain object to encode + * Encodes the specified SchemaDefinition message, length delimited. Does not implicitly {@link tabletmanagerdata.SchemaDefinition.verify|verify} messages. + * @param message SchemaDefinition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.ISleepResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISchemaDefinition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SleepResponse message from the specified reader or buffer. + * Decodes a SchemaDefinition message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SleepResponse + * @returns SchemaDefinition * @throws {Error} If the payload is 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.SleepResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SchemaDefinition; /** - * Decodes a SleepResponse message from the specified reader or buffer, length delimited. + * Decodes a SchemaDefinition message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SleepResponse + * @returns SchemaDefinition * @throws {Error} If the 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.SleepResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SchemaDefinition; /** - * Verifies a SleepResponse message. + * Verifies a SchemaDefinition message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SleepResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SchemaDefinition message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SleepResponse + * @returns SchemaDefinition */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SleepResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SchemaDefinition; /** - * Creates a plain object from a SleepResponse message. Also converts values to other types if specified. - * @param message SleepResponse + * Creates a plain object from a SchemaDefinition message. Also converts values to other types if specified. + * @param message SchemaDefinition * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.SleepResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SchemaDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SleepResponse to JSON. + * Converts this SchemaDefinition to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SleepResponse + * Gets the default type url for SchemaDefinition * @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 name */ - name?: (string|null); + /** Properties of a SchemaChangeResult. */ + interface ISchemaChangeResult { - /** ExecuteHookRequest parameters */ - parameters?: (string[]|null); + /** SchemaChangeResult before_schema */ + before_schema?: (tabletmanagerdata.ISchemaDefinition|null); - /** ExecuteHookRequest extra_env */ - extra_env?: ({ [k: string]: string }|null); + /** SchemaChangeResult after_schema */ + after_schema?: (tabletmanagerdata.ISchemaDefinition|null); } - /** Represents an ExecuteHookRequest. */ - class ExecuteHookRequest implements IExecuteHookRequest { + /** Represents a SchemaChangeResult. */ + class SchemaChangeResult implements ISchemaChangeResult { /** - * Constructs a new ExecuteHookRequest. + * Constructs a new SchemaChangeResult. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IExecuteHookRequest); - - /** ExecuteHookRequest name. */ - public name: string; + constructor(properties?: tabletmanagerdata.ISchemaChangeResult); - /** ExecuteHookRequest parameters. */ - public parameters: string[]; + /** SchemaChangeResult before_schema. */ + public before_schema?: (tabletmanagerdata.ISchemaDefinition|null); - /** ExecuteHookRequest extra_env. */ - public extra_env: { [k: string]: string }; + /** SchemaChangeResult after_schema. */ + public after_schema?: (tabletmanagerdata.ISchemaDefinition|null); /** - * Creates a new ExecuteHookRequest instance using the specified properties. + * Creates a new SchemaChangeResult instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteHookRequest instance + * @returns SchemaChangeResult instance */ - public static create(properties?: tabletmanagerdata.IExecuteHookRequest): tabletmanagerdata.ExecuteHookRequest; + public static create(properties?: tabletmanagerdata.ISchemaChangeResult): tabletmanagerdata.SchemaChangeResult; /** - * Encodes the specified ExecuteHookRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteHookRequest.verify|verify} messages. - * @param message ExecuteHookRequest message or plain object to encode + * Encodes the specified SchemaChangeResult message. Does not implicitly {@link tabletmanagerdata.SchemaChangeResult.verify|verify} messages. + * @param message SchemaChangeResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISchemaChangeResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteHookRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteHookRequest.verify|verify} messages. - * @param message ExecuteHookRequest message or plain object to encode + * Encodes the specified SchemaChangeResult message, length delimited. Does not implicitly {@link tabletmanagerdata.SchemaChangeResult.verify|verify} messages. + * @param message SchemaChangeResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISchemaChangeResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteHookRequest message from the specified reader or buffer. + * Decodes a SchemaChangeResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteHookRequest + * @returns SchemaChangeResult * @throws {Error} If the payload is 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.ExecuteHookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SchemaChangeResult; /** - * Decodes an ExecuteHookRequest message from the specified reader or buffer, length delimited. + * Decodes a SchemaChangeResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteHookRequest + * @returns SchemaChangeResult * @throws {Error} If the 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.ExecuteHookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SchemaChangeResult; /** - * Verifies an ExecuteHookRequest message. + * Verifies a SchemaChangeResult message. * @param message Plain 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. + * Creates a SchemaChangeResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteHookRequest + * @returns SchemaChangeResult */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteHookRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SchemaChangeResult; /** - * Creates a plain object from an ExecuteHookRequest message. Also converts values to other types if specified. - * @param message ExecuteHookRequest + * Creates a plain object from a SchemaChangeResult message. Also converts values to other types if specified. + * @param message SchemaChangeResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ExecuteHookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SchemaChangeResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteHookRequest to JSON. + * Converts this SchemaChangeResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteHookRequest + * Gets the default type url for SchemaChangeResult * @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 { + /** Properties of a UserPermission. */ + interface IUserPermission { - /** ExecuteHookResponse exit_status */ - exit_status?: (number|Long|null); + /** UserPermission host */ + host?: (string|null); - /** ExecuteHookResponse stdout */ - stdout?: (string|null); + /** UserPermission user */ + user?: (string|null); - /** ExecuteHookResponse stderr */ - stderr?: (string|null); + /** UserPermission password_checksum */ + password_checksum?: (number|Long|null); + + /** UserPermission privileges */ + privileges?: ({ [k: string]: string }|null); } - /** Represents an ExecuteHookResponse. */ - class ExecuteHookResponse implements IExecuteHookResponse { + /** Represents a UserPermission. */ + class UserPermission implements IUserPermission { /** - * Constructs a new ExecuteHookResponse. + * Constructs a new UserPermission. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IExecuteHookResponse); + constructor(properties?: tabletmanagerdata.IUserPermission); - /** ExecuteHookResponse exit_status. */ - public exit_status: (number|Long); + /** UserPermission host. */ + public host: string; - /** ExecuteHookResponse stdout. */ - public stdout: string; + /** UserPermission user. */ + public user: string; - /** ExecuteHookResponse stderr. */ - public stderr: string; + /** UserPermission password_checksum. */ + public password_checksum: (number|Long); + + /** UserPermission privileges. */ + public privileges: { [k: string]: string }; /** - * Creates a new ExecuteHookResponse instance using the specified properties. + * Creates a new UserPermission instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteHookResponse instance + * @returns UserPermission instance */ - public static create(properties?: tabletmanagerdata.IExecuteHookResponse): tabletmanagerdata.ExecuteHookResponse; + public static create(properties?: tabletmanagerdata.IUserPermission): tabletmanagerdata.UserPermission; /** - * Encodes the specified ExecuteHookResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteHookResponse.verify|verify} messages. - * @param message ExecuteHookResponse message or plain object to encode + * Encodes the specified UserPermission message. Does not implicitly {@link tabletmanagerdata.UserPermission.verify|verify} messages. + * @param message UserPermission message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IUserPermission, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteHookResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteHookResponse.verify|verify} messages. - * @param message ExecuteHookResponse message or plain object to encode + * Encodes the specified UserPermission message, length delimited. Does not implicitly {@link tabletmanagerdata.UserPermission.verify|verify} messages. + * @param message UserPermission message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IUserPermission, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteHookResponse message from the specified reader or buffer. + * Decodes a UserPermission message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteHookResponse + * @returns UserPermission * @throws {Error} If the payload is 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.ExecuteHookResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.UserPermission; /** - * Decodes an ExecuteHookResponse message from the specified reader or buffer, length delimited. + * Decodes a UserPermission message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteHookResponse + * @returns UserPermission * @throws {Error} If the 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.ExecuteHookResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.UserPermission; /** - * Verifies an ExecuteHookResponse message. + * Verifies a UserPermission message. * @param message Plain 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. + * Creates a UserPermission message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteHookResponse + * @returns UserPermission */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteHookResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UserPermission; /** - * Creates a plain object from an ExecuteHookResponse message. Also converts values to other types if specified. - * @param message ExecuteHookResponse + * Creates a plain object from a UserPermission message. Also converts values to other types if specified. + * @param message UserPermission * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ExecuteHookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.UserPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteHookResponse to JSON. + * Converts this UserPermission to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteHookResponse + * Gets the default type url for UserPermission * @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 { + /** Properties of a DbPermission. */ + interface IDbPermission { - /** GetSchemaRequest tables */ - tables?: (string[]|null); + /** DbPermission host */ + host?: (string|null); - /** GetSchemaRequest include_views */ - include_views?: (boolean|null); + /** DbPermission db */ + db?: (string|null); - /** GetSchemaRequest exclude_tables */ - exclude_tables?: (string[]|null); + /** DbPermission user */ + user?: (string|null); - /** GetSchemaRequest table_schema_only */ - table_schema_only?: (boolean|null); + /** DbPermission privileges */ + privileges?: ({ [k: string]: string }|null); } - /** Represents a GetSchemaRequest. */ - class GetSchemaRequest implements IGetSchemaRequest { + /** Represents a DbPermission. */ + class DbPermission implements IDbPermission { /** - * Constructs a new GetSchemaRequest. + * Constructs a new DbPermission. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetSchemaRequest); + constructor(properties?: tabletmanagerdata.IDbPermission); - /** GetSchemaRequest tables. */ - public tables: string[]; + /** DbPermission host. */ + public host: string; - /** GetSchemaRequest include_views. */ - public include_views: boolean; + /** DbPermission db. */ + public db: string; - /** GetSchemaRequest exclude_tables. */ - public exclude_tables: string[]; + /** DbPermission user. */ + public user: string; - /** GetSchemaRequest table_schema_only. */ - public table_schema_only: boolean; + /** DbPermission privileges. */ + public privileges: { [k: string]: string }; /** - * Creates a new GetSchemaRequest instance using the specified properties. + * Creates a new DbPermission instance using the specified properties. * @param [properties] Properties to set - * @returns GetSchemaRequest instance + * @returns DbPermission instance */ - public static create(properties?: tabletmanagerdata.IGetSchemaRequest): tabletmanagerdata.GetSchemaRequest; + public static create(properties?: tabletmanagerdata.IDbPermission): tabletmanagerdata.DbPermission; /** - * Encodes the specified GetSchemaRequest message. Does not implicitly {@link tabletmanagerdata.GetSchemaRequest.verify|verify} messages. - * @param message GetSchemaRequest message or plain object to encode + * Encodes the specified DbPermission message. Does not implicitly {@link tabletmanagerdata.DbPermission.verify|verify} messages. + * @param message DbPermission message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IDbPermission, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetSchemaRequest.verify|verify} messages. - * @param message GetSchemaRequest message or plain object to encode + * Encodes the specified DbPermission message, length delimited. Does not implicitly {@link tabletmanagerdata.DbPermission.verify|verify} messages. + * @param message DbPermission message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IDbPermission, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer. + * Decodes a DbPermission message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSchemaRequest + * @returns DbPermission * @throws {Error} If the payload is 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.GetSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.DbPermission; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a DbPermission message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSchemaRequest + * @returns DbPermission * @throws {Error} If the 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.GetSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.DbPermission; /** - * Verifies a GetSchemaRequest message. + * Verifies a DbPermission message. * @param message Plain object 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. + * Creates a DbPermission message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSchemaRequest + * @returns DbPermission */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetSchemaRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DbPermission; /** - * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. - * @param message GetSchemaRequest + * Creates a plain object from a DbPermission message. Also converts values to other types if specified. + * @param message DbPermission * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.DbPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSchemaRequest to JSON. + * Converts this DbPermission to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSchemaRequest + * Gets the default type url for DbPermission * @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 { + /** Properties of a Permissions. */ + interface IPermissions { - /** GetSchemaResponse schema_definition */ - schema_definition?: (tabletmanagerdata.ISchemaDefinition|null); + /** Permissions user_permissions */ + user_permissions?: (tabletmanagerdata.IUserPermission[]|null); + + /** Permissions db_permissions */ + db_permissions?: (tabletmanagerdata.IDbPermission[]|null); } - /** Represents a GetSchemaResponse. */ - class GetSchemaResponse implements IGetSchemaResponse { + /** Represents a Permissions. */ + class Permissions implements IPermissions { /** - * Constructs a new GetSchemaResponse. + * Constructs a new Permissions. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetSchemaResponse); + constructor(properties?: tabletmanagerdata.IPermissions); - /** GetSchemaResponse schema_definition. */ - public schema_definition?: (tabletmanagerdata.ISchemaDefinition|null); + /** Permissions user_permissions. */ + public user_permissions: tabletmanagerdata.IUserPermission[]; + + /** Permissions db_permissions. */ + public db_permissions: tabletmanagerdata.IDbPermission[]; /** - * Creates a new GetSchemaResponse instance using the specified properties. + * Creates a new Permissions instance using the specified properties. * @param [properties] Properties to set - * @returns GetSchemaResponse instance + * @returns Permissions instance */ - public static create(properties?: tabletmanagerdata.IGetSchemaResponse): tabletmanagerdata.GetSchemaResponse; + public static create(properties?: tabletmanagerdata.IPermissions): tabletmanagerdata.Permissions; /** - * Encodes the specified GetSchemaResponse message. Does not implicitly {@link tabletmanagerdata.GetSchemaResponse.verify|verify} messages. - * @param message GetSchemaResponse message or plain object to encode + * Encodes the specified Permissions message. Does not implicitly {@link tabletmanagerdata.Permissions.verify|verify} messages. + * @param message Permissions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPermissions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetSchemaResponse.verify|verify} messages. - * @param message GetSchemaResponse message or plain object to encode + * Encodes the specified Permissions message, length delimited. Does not implicitly {@link tabletmanagerdata.Permissions.verify|verify} messages. + * @param message Permissions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPermissions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer. + * Decodes a Permissions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSchemaResponse + * @returns Permissions * @throws {Error} If the payload is 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.GetSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.Permissions; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a Permissions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSchemaResponse + * @returns Permissions * @throws {Error} If the 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.GetSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.Permissions; /** - * Verifies a GetSchemaResponse message. + * Verifies a Permissions message. * @param message Plain object 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. + * Creates a Permissions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSchemaResponse + * @returns Permissions */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetSchemaResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.Permissions; /** - * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. - * @param message GetSchemaResponse + * Creates a plain object from a Permissions message. Also converts values to other types if specified. + * @param message Permissions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.Permissions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSchemaResponse to JSON. + * Converts this Permissions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSchemaResponse + * Gets the default type url for Permissions * @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 { + /** Properties of a PingRequest. */ + interface IPingRequest { + + /** PingRequest payload */ + payload?: (string|null); } - /** Represents a GetPermissionsRequest. */ - class GetPermissionsRequest implements IGetPermissionsRequest { + /** Represents a PingRequest. */ + class PingRequest implements IPingRequest { /** - * Constructs a new GetPermissionsRequest. + * Constructs a new PingRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetPermissionsRequest); + constructor(properties?: tabletmanagerdata.IPingRequest); + + /** PingRequest payload. */ + public payload: string; /** - * Creates a new GetPermissionsRequest instance using the specified properties. + * Creates a new PingRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetPermissionsRequest instance + * @returns PingRequest instance */ - public static create(properties?: tabletmanagerdata.IGetPermissionsRequest): tabletmanagerdata.GetPermissionsRequest; + public static create(properties?: tabletmanagerdata.IPingRequest): tabletmanagerdata.PingRequest; /** - * Encodes the specified GetPermissionsRequest message. Does not implicitly {@link tabletmanagerdata.GetPermissionsRequest.verify|verify} messages. - * @param message GetPermissionsRequest message or plain object to encode + * Encodes the specified PingRequest message. Does not implicitly {@link tabletmanagerdata.PingRequest.verify|verify} messages. + * @param message PingRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPingRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPermissionsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetPermissionsRequest.verify|verify} messages. - * @param message GetPermissionsRequest message or plain object to encode + * Encodes the specified PingRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PingRequest.verify|verify} messages. + * @param message PingRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPingRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPermissionsRequest message from the specified reader or buffer. + * Decodes a PingRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPermissionsRequest + * @returns PingRequest * @throws {Error} If the payload is 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.GetPermissionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PingRequest; /** - * Decodes a GetPermissionsRequest message from the specified reader or buffer, length delimited. + * Decodes a PingRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPermissionsRequest + * @returns PingRequest * @throws {Error} If the 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.GetPermissionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PingRequest; /** - * Verifies a GetPermissionsRequest message. + * Verifies a PingRequest message. * @param message Plain object 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. + * Creates a PingRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPermissionsRequest + * @returns PingRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetPermissionsRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PingRequest; /** - * Creates a plain object from a GetPermissionsRequest message. Also converts values to other types if specified. - * @param message GetPermissionsRequest + * Creates a plain object from a PingRequest message. Also converts values to other types if specified. + * @param message PingRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.GetPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.PingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPermissionsRequest to JSON. + * Converts this PingRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPermissionsRequest + * Gets the default type url for PingRequest * @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 { + /** Properties of a PingResponse. */ + interface IPingResponse { - /** GetPermissionsResponse permissions */ - permissions?: (tabletmanagerdata.IPermissions|null); + /** PingResponse payload */ + payload?: (string|null); } - /** Represents a GetPermissionsResponse. */ - class GetPermissionsResponse implements IGetPermissionsResponse { + /** Represents a PingResponse. */ + class PingResponse implements IPingResponse { /** - * Constructs a new GetPermissionsResponse. + * Constructs a new PingResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetPermissionsResponse); + constructor(properties?: tabletmanagerdata.IPingResponse); - /** GetPermissionsResponse permissions. */ - public permissions?: (tabletmanagerdata.IPermissions|null); + /** PingResponse payload. */ + public payload: string; /** - * Creates a new GetPermissionsResponse instance using the specified properties. + * Creates a new PingResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetPermissionsResponse instance + * @returns PingResponse instance */ - public static create(properties?: tabletmanagerdata.IGetPermissionsResponse): tabletmanagerdata.GetPermissionsResponse; + public static create(properties?: tabletmanagerdata.IPingResponse): tabletmanagerdata.PingResponse; /** - * Encodes the specified GetPermissionsResponse message. Does not implicitly {@link tabletmanagerdata.GetPermissionsResponse.verify|verify} messages. - * @param message GetPermissionsResponse message or plain object to encode + * Encodes the specified PingResponse message. Does not implicitly {@link tabletmanagerdata.PingResponse.verify|verify} messages. + * @param message PingResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPingResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPermissionsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetPermissionsResponse.verify|verify} messages. - * @param message GetPermissionsResponse message or plain object to encode + * Encodes the specified PingResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PingResponse.verify|verify} messages. + * @param message PingResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPingResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPermissionsResponse message from the specified reader or buffer. + * Decodes a PingResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPermissionsResponse + * @returns PingResponse * @throws {Error} If the payload is 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.GetPermissionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PingResponse; /** - * Decodes a GetPermissionsResponse message from the specified reader or buffer, length delimited. + * Decodes a PingResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPermissionsResponse + * @returns PingResponse * @throws {Error} If the 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.GetPermissionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PingResponse; /** - * Verifies a GetPermissionsResponse message. + * Verifies a PingResponse message. * @param message Plain object 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. + * Creates a PingResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPermissionsResponse + * @returns PingResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetPermissionsResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PingResponse; /** - * Creates a plain object from a GetPermissionsResponse message. Also converts values to other types if specified. - * @param message GetPermissionsResponse + * Creates a plain object from a PingResponse message. Also converts values to other types if specified. + * @param message PingResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.GetPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.PingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPermissionsResponse to JSON. + * Converts this PingResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPermissionsResponse + * Gets the default type url for PingResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetGlobalStatusVarsRequest. */ - interface IGetGlobalStatusVarsRequest { + /** Properties of a SleepRequest. */ + interface ISleepRequest { - /** GetGlobalStatusVarsRequest variables */ - variables?: (string[]|null); + /** SleepRequest duration */ + duration?: (number|Long|null); } - /** Represents a GetGlobalStatusVarsRequest. */ - class GetGlobalStatusVarsRequest implements IGetGlobalStatusVarsRequest { + /** Represents a SleepRequest. */ + class SleepRequest implements ISleepRequest { /** - * Constructs a new GetGlobalStatusVarsRequest. + * Constructs a new SleepRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetGlobalStatusVarsRequest); + constructor(properties?: tabletmanagerdata.ISleepRequest); - /** GetGlobalStatusVarsRequest variables. */ - public variables: string[]; + /** SleepRequest duration. */ + public duration: (number|Long); /** - * Creates a new GetGlobalStatusVarsRequest instance using the specified properties. + * Creates a new SleepRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetGlobalStatusVarsRequest instance + * @returns SleepRequest instance */ - public static create(properties?: tabletmanagerdata.IGetGlobalStatusVarsRequest): tabletmanagerdata.GetGlobalStatusVarsRequest; + public static create(properties?: tabletmanagerdata.ISleepRequest): tabletmanagerdata.SleepRequest; /** - * Encodes the specified GetGlobalStatusVarsRequest message. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsRequest.verify|verify} messages. - * @param message GetGlobalStatusVarsRequest message or plain object to encode + * Encodes the specified SleepRequest message. Does not implicitly {@link tabletmanagerdata.SleepRequest.verify|verify} messages. + * @param message SleepRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IGetGlobalStatusVarsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISleepRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetGlobalStatusVarsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsRequest.verify|verify} messages. - * @param message GetGlobalStatusVarsRequest message or plain object to encode + * Encodes the specified SleepRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SleepRequest.verify|verify} messages. + * @param message SleepRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IGetGlobalStatusVarsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISleepRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetGlobalStatusVarsRequest message from the specified reader or buffer. + * Decodes a SleepRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetGlobalStatusVarsRequest + * @returns SleepRequest * @throws {Error} If the payload is 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.GetGlobalStatusVarsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SleepRequest; /** - * Decodes a GetGlobalStatusVarsRequest message from the specified reader or buffer, length delimited. + * Decodes a SleepRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetGlobalStatusVarsRequest + * @returns SleepRequest * @throws {Error} If the 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.GetGlobalStatusVarsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SleepRequest; /** - * Verifies a GetGlobalStatusVarsRequest message. + * Verifies a SleepRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetGlobalStatusVarsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SleepRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetGlobalStatusVarsRequest + * @returns SleepRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetGlobalStatusVarsRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SleepRequest; /** - * Creates a plain object from a GetGlobalStatusVarsRequest message. Also converts values to other types if specified. - * @param message GetGlobalStatusVarsRequest + * Creates a plain object from a SleepRequest message. Also converts values to other types if specified. + * @param message SleepRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.GetGlobalStatusVarsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SleepRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetGlobalStatusVarsRequest to JSON. + * Converts this SleepRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetGlobalStatusVarsRequest + * Gets the default type url for SleepRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetGlobalStatusVarsResponse. */ - interface IGetGlobalStatusVarsResponse { - - /** GetGlobalStatusVarsResponse status_values */ - status_values?: ({ [k: string]: string }|null); + /** Properties of a SleepResponse. */ + interface ISleepResponse { } - /** Represents a GetGlobalStatusVarsResponse. */ - class GetGlobalStatusVarsResponse implements IGetGlobalStatusVarsResponse { + /** Represents a SleepResponse. */ + class SleepResponse implements ISleepResponse { /** - * Constructs a new GetGlobalStatusVarsResponse. + * Constructs a new SleepResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetGlobalStatusVarsResponse); - - /** GetGlobalStatusVarsResponse status_values. */ - public status_values: { [k: string]: string }; + constructor(properties?: tabletmanagerdata.ISleepResponse); /** - * Creates a new GetGlobalStatusVarsResponse instance using the specified properties. + * Creates a new SleepResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetGlobalStatusVarsResponse instance + * @returns SleepResponse instance */ - public static create(properties?: tabletmanagerdata.IGetGlobalStatusVarsResponse): tabletmanagerdata.GetGlobalStatusVarsResponse; + public static create(properties?: tabletmanagerdata.ISleepResponse): tabletmanagerdata.SleepResponse; /** - * Encodes the specified GetGlobalStatusVarsResponse message. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsResponse.verify|verify} messages. - * @param message GetGlobalStatusVarsResponse message or plain object to encode + * Encodes the specified SleepResponse message. Does not implicitly {@link tabletmanagerdata.SleepResponse.verify|verify} messages. + * @param message SleepResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IGetGlobalStatusVarsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISleepResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetGlobalStatusVarsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsResponse.verify|verify} messages. - * @param message GetGlobalStatusVarsResponse message or plain object to encode + * Encodes the specified SleepResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SleepResponse.verify|verify} messages. + * @param message SleepResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IGetGlobalStatusVarsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISleepResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetGlobalStatusVarsResponse message from the specified reader or buffer. + * Decodes a SleepResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetGlobalStatusVarsResponse + * @returns SleepResponse * @throws {Error} If the payload is 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.GetGlobalStatusVarsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SleepResponse; /** - * Decodes a GetGlobalStatusVarsResponse message from the specified reader or buffer, length delimited. + * Decodes a SleepResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetGlobalStatusVarsResponse + * @returns SleepResponse * @throws {Error} If the 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.GetGlobalStatusVarsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SleepResponse; /** - * Verifies a GetGlobalStatusVarsResponse message. + * Verifies a SleepResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetGlobalStatusVarsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SleepResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetGlobalStatusVarsResponse + * @returns SleepResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetGlobalStatusVarsResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SleepResponse; /** - * Creates a plain object from a GetGlobalStatusVarsResponse message. Also converts values to other types if specified. - * @param message GetGlobalStatusVarsResponse + * Creates a plain object from a SleepResponse message. Also converts values to other types if specified. + * @param message SleepResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.GetGlobalStatusVarsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SleepResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetGlobalStatusVarsResponse to JSON. + * Converts this SleepResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetGlobalStatusVarsResponse + * Gets the default type url for SleepResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SetReadOnlyRequest. */ - interface ISetReadOnlyRequest { + /** Properties of an ExecuteHookRequest. */ + interface IExecuteHookRequest { + + /** ExecuteHookRequest name */ + name?: (string|null); + + /** ExecuteHookRequest parameters */ + parameters?: (string[]|null); + + /** ExecuteHookRequest extra_env */ + extra_env?: ({ [k: string]: string }|null); } - /** Represents a SetReadOnlyRequest. */ - class SetReadOnlyRequest implements ISetReadOnlyRequest { + /** Represents an ExecuteHookRequest. */ + class ExecuteHookRequest implements IExecuteHookRequest { /** - * Constructs a new SetReadOnlyRequest. + * Constructs a new ExecuteHookRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISetReadOnlyRequest); + constructor(properties?: tabletmanagerdata.IExecuteHookRequest); + + /** ExecuteHookRequest name. */ + public name: string; + + /** ExecuteHookRequest parameters. */ + public parameters: string[]; + + /** ExecuteHookRequest extra_env. */ + public extra_env: { [k: string]: string }; /** - * Creates a new SetReadOnlyRequest instance using the specified properties. + * Creates a new ExecuteHookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SetReadOnlyRequest instance + * @returns ExecuteHookRequest instance */ - public static create(properties?: tabletmanagerdata.ISetReadOnlyRequest): tabletmanagerdata.SetReadOnlyRequest; + public static create(properties?: tabletmanagerdata.IExecuteHookRequest): tabletmanagerdata.ExecuteHookRequest; /** - * Encodes the specified SetReadOnlyRequest message. Does not implicitly {@link tabletmanagerdata.SetReadOnlyRequest.verify|verify} messages. - * @param message SetReadOnlyRequest message or plain object to encode + * Encodes the specified ExecuteHookRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.ISetReadOnlyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SetReadOnlyRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadOnlyRequest.verify|verify} messages. - * @param message SetReadOnlyRequest message or plain object to encode + * Encodes the specified ExecuteHookRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.ISetReadOnlyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetReadOnlyRequest message from the specified reader or buffer. + * 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 SetReadOnlyRequest + * @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): tabletmanagerdata.SetReadOnlyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ExecuteHookRequest; /** - * Decodes a SetReadOnlyRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteHookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetReadOnlyRequest + * @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)): tabletmanagerdata.SetReadOnlyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ExecuteHookRequest; /** - * Verifies a SetReadOnlyRequest message. + * 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 a SetReadOnlyRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteHookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetReadOnlyRequest + * @returns ExecuteHookRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadOnlyRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteHookRequest; /** - * Creates a plain object from a SetReadOnlyRequest message. Also converts values to other types if specified. - * @param message SetReadOnlyRequest + * 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: tabletmanagerdata.SetReadOnlyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ExecuteHookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetReadOnlyRequest to JSON. + * Converts this ExecuteHookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetReadOnlyRequest + * 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 a SetReadOnlyResponse. */ - interface ISetReadOnlyResponse { + /** Properties of an ExecuteHookResponse. */ + interface IExecuteHookResponse { + + /** ExecuteHookResponse exit_status */ + exit_status?: (number|Long|null); + + /** ExecuteHookResponse stdout */ + stdout?: (string|null); + + /** ExecuteHookResponse stderr */ + stderr?: (string|null); } - /** Represents a SetReadOnlyResponse. */ - class SetReadOnlyResponse implements ISetReadOnlyResponse { + /** Represents an ExecuteHookResponse. */ + class ExecuteHookResponse implements IExecuteHookResponse { /** - * Constructs a new SetReadOnlyResponse. + * Constructs a new ExecuteHookResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISetReadOnlyResponse); + constructor(properties?: tabletmanagerdata.IExecuteHookResponse); + + /** ExecuteHookResponse exit_status. */ + public exit_status: (number|Long); + + /** ExecuteHookResponse stdout. */ + public stdout: string; + + /** ExecuteHookResponse stderr. */ + public stderr: string; /** - * Creates a new SetReadOnlyResponse instance using the specified properties. + * Creates a new ExecuteHookResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SetReadOnlyResponse instance + * @returns ExecuteHookResponse instance */ - public static create(properties?: tabletmanagerdata.ISetReadOnlyResponse): tabletmanagerdata.SetReadOnlyResponse; + public static create(properties?: tabletmanagerdata.IExecuteHookResponse): tabletmanagerdata.ExecuteHookResponse; /** - * Encodes the specified SetReadOnlyResponse message. Does not implicitly {@link tabletmanagerdata.SetReadOnlyResponse.verify|verify} messages. - * @param message SetReadOnlyResponse message or plain object to encode + * Encodes the specified ExecuteHookResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.ISetReadOnlyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SetReadOnlyResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadOnlyResponse.verify|verify} messages. - * @param message SetReadOnlyResponse message or plain object to encode + * Encodes the specified ExecuteHookResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.ISetReadOnlyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetReadOnlyResponse message from the specified reader or buffer. + * 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 SetReadOnlyResponse + * @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): tabletmanagerdata.SetReadOnlyResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ExecuteHookResponse; /** - * Decodes a SetReadOnlyResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteHookResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetReadOnlyResponse + * @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)): tabletmanagerdata.SetReadOnlyResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ExecuteHookResponse; /** - * Verifies a SetReadOnlyResponse message. + * 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 a SetReadOnlyResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteHookResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetReadOnlyResponse + * @returns ExecuteHookResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadOnlyResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteHookResponse; /** - * Creates a plain object from a SetReadOnlyResponse message. Also converts values to other types if specified. - * @param message SetReadOnlyResponse + * 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: tabletmanagerdata.SetReadOnlyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ExecuteHookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetReadOnlyResponse to JSON. + * Converts this ExecuteHookResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetReadOnlyResponse + * 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 a SetReadWriteRequest. */ - interface ISetReadWriteRequest { + /** Properties of a GetSchemaRequest. */ + interface IGetSchemaRequest { + + /** GetSchemaRequest tables */ + tables?: (string[]|null); + + /** GetSchemaRequest include_views */ + include_views?: (boolean|null); + + /** GetSchemaRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** GetSchemaRequest table_schema_only */ + table_schema_only?: (boolean|null); } - /** Represents a SetReadWriteRequest. */ - class SetReadWriteRequest implements ISetReadWriteRequest { + /** Represents a GetSchemaRequest. */ + class GetSchemaRequest implements IGetSchemaRequest { /** - * Constructs a new SetReadWriteRequest. + * Constructs a new GetSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISetReadWriteRequest); + constructor(properties?: tabletmanagerdata.IGetSchemaRequest); + + /** GetSchemaRequest tables. */ + public tables: string[]; + + /** GetSchemaRequest include_views. */ + public include_views: boolean; + + /** GetSchemaRequest exclude_tables. */ + public exclude_tables: string[]; + + /** GetSchemaRequest table_schema_only. */ + public table_schema_only: boolean; /** - * Creates a new SetReadWriteRequest instance using the specified properties. + * Creates a new GetSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SetReadWriteRequest instance + * @returns GetSchemaRequest instance */ - public static create(properties?: tabletmanagerdata.ISetReadWriteRequest): tabletmanagerdata.SetReadWriteRequest; + public static create(properties?: tabletmanagerdata.IGetSchemaRequest): tabletmanagerdata.GetSchemaRequest; /** - * Encodes the specified SetReadWriteRequest message. Does not implicitly {@link tabletmanagerdata.SetReadWriteRequest.verify|verify} messages. - * @param message SetReadWriteRequest message or plain object to encode + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.ISetReadWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SetReadWriteRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadWriteRequest.verify|verify} messages. - * @param message SetReadWriteRequest message or plain object to encode + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.ISetReadWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetReadWriteRequest message from the specified reader or buffer. + * 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 SetReadWriteRequest + * @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): tabletmanagerdata.SetReadWriteRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetSchemaRequest; /** - * Decodes a SetReadWriteRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetReadWriteRequest + * @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)): tabletmanagerdata.SetReadWriteRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetSchemaRequest; /** - * Verifies a SetReadWriteRequest message. + * 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 SetReadWriteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetReadWriteRequest + * @returns GetSchemaRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadWriteRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetSchemaRequest; /** - * Creates a plain object from a SetReadWriteRequest message. Also converts values to other types if specified. - * @param message SetReadWriteRequest + * 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: tabletmanagerdata.SetReadWriteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetReadWriteRequest to JSON. + * Converts this GetSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetReadWriteRequest + * 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 SetReadWriteResponse. */ - interface ISetReadWriteResponse { + /** Properties of a GetSchemaResponse. */ + interface IGetSchemaResponse { + + /** GetSchemaResponse schema_definition */ + schema_definition?: (tabletmanagerdata.ISchemaDefinition|null); } - /** Represents a SetReadWriteResponse. */ - class SetReadWriteResponse implements ISetReadWriteResponse { + /** Represents a GetSchemaResponse. */ + class GetSchemaResponse implements IGetSchemaResponse { /** - * Constructs a new SetReadWriteResponse. + * Constructs a new GetSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISetReadWriteResponse); + constructor(properties?: tabletmanagerdata.IGetSchemaResponse); + + /** GetSchemaResponse schema_definition. */ + public schema_definition?: (tabletmanagerdata.ISchemaDefinition|null); /** - * Creates a new SetReadWriteResponse instance using the specified properties. + * Creates a new GetSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SetReadWriteResponse instance + * @returns GetSchemaResponse instance */ - public static create(properties?: tabletmanagerdata.ISetReadWriteResponse): tabletmanagerdata.SetReadWriteResponse; + public static create(properties?: tabletmanagerdata.IGetSchemaResponse): tabletmanagerdata.GetSchemaResponse; /** - * Encodes the specified SetReadWriteResponse message. Does not implicitly {@link tabletmanagerdata.SetReadWriteResponse.verify|verify} messages. - * @param message SetReadWriteResponse message or plain object to encode + * Encodes the specified GetSchemaResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.ISetReadWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SetReadWriteResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadWriteResponse.verify|verify} messages. - * @param message SetReadWriteResponse message or plain object to encode + * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.ISetReadWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetReadWriteResponse message from the specified reader or buffer. + * 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 SetReadWriteResponse + * @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): tabletmanagerdata.SetReadWriteResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetSchemaResponse; /** - * Decodes a SetReadWriteResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetReadWriteResponse + * @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)): tabletmanagerdata.SetReadWriteResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetSchemaResponse; /** - * Verifies a SetReadWriteResponse message. + * 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 SetReadWriteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetReadWriteResponse + * @returns GetSchemaResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadWriteResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetSchemaResponse; /** - * Creates a plain object from a SetReadWriteResponse message. Also converts values to other types if specified. - * @param message SetReadWriteResponse + * 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: tabletmanagerdata.SetReadWriteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetReadWriteResponse to JSON. + * Converts this GetSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetReadWriteResponse + * 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 ChangeTypeRequest. */ - interface IChangeTypeRequest { - - /** ChangeTypeRequest tablet_type */ - tablet_type?: (topodata.TabletType|null); - - /** ChangeTypeRequest semiSync */ - semiSync?: (boolean|null); + /** Properties of a GetPermissionsRequest. */ + interface IGetPermissionsRequest { } - /** Represents a ChangeTypeRequest. */ - class ChangeTypeRequest implements IChangeTypeRequest { + /** Represents a GetPermissionsRequest. */ + class GetPermissionsRequest implements IGetPermissionsRequest { /** - * Constructs a new ChangeTypeRequest. + * Constructs a new GetPermissionsRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IChangeTypeRequest); - - /** ChangeTypeRequest tablet_type. */ - public tablet_type: topodata.TabletType; - - /** ChangeTypeRequest semiSync. */ - public semiSync: boolean; + constructor(properties?: tabletmanagerdata.IGetPermissionsRequest); /** - * Creates a new ChangeTypeRequest instance using the specified properties. + * Creates a new GetPermissionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTypeRequest instance + * @returns GetPermissionsRequest instance */ - public static create(properties?: tabletmanagerdata.IChangeTypeRequest): tabletmanagerdata.ChangeTypeRequest; + public static create(properties?: tabletmanagerdata.IGetPermissionsRequest): tabletmanagerdata.GetPermissionsRequest; /** - * Encodes the specified ChangeTypeRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTypeRequest.verify|verify} messages. - * @param message ChangeTypeRequest message or plain object to encode + * Encodes the specified GetPermissionsRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IChangeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChangeTypeRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTypeRequest.verify|verify} messages. - * @param message ChangeTypeRequest message or plain object to encode + * Encodes the specified GetPermissionsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IChangeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTypeRequest message from the specified reader or buffer. + * 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 ChangeTypeRequest + * @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): tabletmanagerdata.ChangeTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetPermissionsRequest; /** - * Decodes a ChangeTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetPermissionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeTypeRequest + * @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)): tabletmanagerdata.ChangeTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetPermissionsRequest; /** - * Verifies a ChangeTypeRequest message. + * 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 ChangeTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetPermissionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeTypeRequest + * @returns GetPermissionsRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTypeRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetPermissionsRequest; /** - * Creates a plain object from a ChangeTypeRequest message. Also converts values to other types if specified. - * @param message ChangeTypeRequest + * 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: tabletmanagerdata.ChangeTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTypeRequest to JSON. + * Converts this GetPermissionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ChangeTypeRequest + * 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 ChangeTypeResponse. */ - interface IChangeTypeResponse { + /** Properties of a GetPermissionsResponse. */ + interface IGetPermissionsResponse { + + /** GetPermissionsResponse permissions */ + permissions?: (tabletmanagerdata.IPermissions|null); } - /** Represents a ChangeTypeResponse. */ - class ChangeTypeResponse implements IChangeTypeResponse { + /** Represents a GetPermissionsResponse. */ + class GetPermissionsResponse implements IGetPermissionsResponse { /** - * Constructs a new ChangeTypeResponse. + * Constructs a new GetPermissionsResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IChangeTypeResponse); + constructor(properties?: tabletmanagerdata.IGetPermissionsResponse); + + /** GetPermissionsResponse permissions. */ + public permissions?: (tabletmanagerdata.IPermissions|null); /** - * Creates a new ChangeTypeResponse instance using the specified properties. + * Creates a new GetPermissionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTypeResponse instance + * @returns GetPermissionsResponse instance */ - public static create(properties?: tabletmanagerdata.IChangeTypeResponse): tabletmanagerdata.ChangeTypeResponse; + public static create(properties?: tabletmanagerdata.IGetPermissionsResponse): tabletmanagerdata.GetPermissionsResponse; /** - * Encodes the specified ChangeTypeResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTypeResponse.verify|verify} messages. - * @param message ChangeTypeResponse message or plain object to encode + * Encodes the specified GetPermissionsResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IChangeTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChangeTypeResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTypeResponse.verify|verify} messages. - * @param message ChangeTypeResponse message or plain object to encode + * Encodes the specified GetPermissionsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IChangeTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTypeResponse message from the specified reader or buffer. + * 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 ChangeTypeResponse + * @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): tabletmanagerdata.ChangeTypeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetPermissionsResponse; /** - * Decodes a ChangeTypeResponse message from the specified reader or buffer, length delimited. + * Decodes a GetPermissionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeTypeResponse + * @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)): tabletmanagerdata.ChangeTypeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetPermissionsResponse; /** - * Verifies a ChangeTypeResponse message. + * 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 ChangeTypeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetPermissionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeTypeResponse + * @returns GetPermissionsResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTypeResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetPermissionsResponse; /** - * Creates a plain object from a ChangeTypeResponse message. Also converts values to other types if specified. - * @param message ChangeTypeResponse + * 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: tabletmanagerdata.ChangeTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTypeResponse to JSON. + * Converts this GetPermissionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ChangeTypeResponse + * 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 RefreshStateRequest. */ - interface IRefreshStateRequest { + /** Properties of a GetGlobalStatusVarsRequest. */ + interface IGetGlobalStatusVarsRequest { + + /** GetGlobalStatusVarsRequest variables */ + variables?: (string[]|null); } - /** Represents a RefreshStateRequest. */ - class RefreshStateRequest implements IRefreshStateRequest { + /** Represents a GetGlobalStatusVarsRequest. */ + class GetGlobalStatusVarsRequest implements IGetGlobalStatusVarsRequest { /** - * Constructs a new RefreshStateRequest. + * Constructs a new GetGlobalStatusVarsRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IRefreshStateRequest); + constructor(properties?: tabletmanagerdata.IGetGlobalStatusVarsRequest); + + /** GetGlobalStatusVarsRequest variables. */ + public variables: string[]; /** - * Creates a new RefreshStateRequest instance using the specified properties. + * Creates a new GetGlobalStatusVarsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RefreshStateRequest instance + * @returns GetGlobalStatusVarsRequest instance */ - public static create(properties?: tabletmanagerdata.IRefreshStateRequest): tabletmanagerdata.RefreshStateRequest; + public static create(properties?: tabletmanagerdata.IGetGlobalStatusVarsRequest): tabletmanagerdata.GetGlobalStatusVarsRequest; /** - * Encodes the specified RefreshStateRequest message. Does not implicitly {@link tabletmanagerdata.RefreshStateRequest.verify|verify} messages. - * @param message RefreshStateRequest message or plain object to encode + * Encodes the specified GetGlobalStatusVarsRequest message. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsRequest.verify|verify} messages. + * @param message GetGlobalStatusVarsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetGlobalStatusVarsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RefreshStateRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.RefreshStateRequest.verify|verify} messages. - * @param message RefreshStateRequest message or plain object to encode + * Encodes the specified GetGlobalStatusVarsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsRequest.verify|verify} messages. + * @param message GetGlobalStatusVarsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetGlobalStatusVarsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RefreshStateRequest message from the specified reader or buffer. + * Decodes a GetGlobalStatusVarsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RefreshStateRequest + * @returns GetGlobalStatusVarsRequest * @throws {Error} If the payload is 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.RefreshStateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetGlobalStatusVarsRequest; /** - * Decodes a RefreshStateRequest message from the specified reader or buffer, length delimited. + * Decodes a GetGlobalStatusVarsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RefreshStateRequest + * @returns GetGlobalStatusVarsRequest * @throws {Error} If the 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.RefreshStateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetGlobalStatusVarsRequest; /** - * Verifies a RefreshStateRequest message. + * Verifies a GetGlobalStatusVarsRequest message. * @param message Plain object 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. + * Creates a GetGlobalStatusVarsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RefreshStateRequest + * @returns GetGlobalStatusVarsRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RefreshStateRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetGlobalStatusVarsRequest; /** - * Creates a plain object from a RefreshStateRequest message. Also converts values to other types if specified. - * @param message RefreshStateRequest + * Creates a plain object from a GetGlobalStatusVarsRequest message. Also converts values to other types if specified. + * @param message GetGlobalStatusVarsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.RefreshStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetGlobalStatusVarsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RefreshStateRequest to JSON. + * Converts this GetGlobalStatusVarsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RefreshStateRequest + * Gets the default type url for GetGlobalStatusVarsRequest * @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 { + /** Properties of a GetGlobalStatusVarsResponse. */ + interface IGetGlobalStatusVarsResponse { + + /** GetGlobalStatusVarsResponse status_values */ + status_values?: ({ [k: string]: string }|null); } - /** Represents a RefreshStateResponse. */ - class RefreshStateResponse implements IRefreshStateResponse { + /** Represents a GetGlobalStatusVarsResponse. */ + class GetGlobalStatusVarsResponse implements IGetGlobalStatusVarsResponse { /** - * Constructs a new RefreshStateResponse. + * Constructs a new GetGlobalStatusVarsResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IRefreshStateResponse); + constructor(properties?: tabletmanagerdata.IGetGlobalStatusVarsResponse); + + /** GetGlobalStatusVarsResponse status_values. */ + public status_values: { [k: string]: string }; /** - * Creates a new RefreshStateResponse instance using the specified properties. + * Creates a new GetGlobalStatusVarsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RefreshStateResponse instance + * @returns GetGlobalStatusVarsResponse instance */ - public static create(properties?: tabletmanagerdata.IRefreshStateResponse): tabletmanagerdata.RefreshStateResponse; + public static create(properties?: tabletmanagerdata.IGetGlobalStatusVarsResponse): tabletmanagerdata.GetGlobalStatusVarsResponse; /** - * Encodes the specified RefreshStateResponse message. Does not implicitly {@link tabletmanagerdata.RefreshStateResponse.verify|verify} messages. - * @param message RefreshStateResponse message or plain object to encode + * Encodes the specified GetGlobalStatusVarsResponse message. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsResponse.verify|verify} messages. + * @param message GetGlobalStatusVarsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetGlobalStatusVarsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RefreshStateResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.RefreshStateResponse.verify|verify} messages. - * @param message RefreshStateResponse message or plain object to encode + * Encodes the specified GetGlobalStatusVarsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsResponse.verify|verify} messages. + * @param message GetGlobalStatusVarsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetGlobalStatusVarsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RefreshStateResponse message from the specified reader or buffer. + * Decodes a GetGlobalStatusVarsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RefreshStateResponse + * @returns GetGlobalStatusVarsResponse * @throws {Error} If the payload is 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.RefreshStateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetGlobalStatusVarsResponse; /** - * Decodes a RefreshStateResponse message from the specified reader or buffer, length delimited. + * Decodes a GetGlobalStatusVarsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RefreshStateResponse + * @returns GetGlobalStatusVarsResponse * @throws {Error} If the 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.RefreshStateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetGlobalStatusVarsResponse; /** - * Verifies a RefreshStateResponse message. + * Verifies a GetGlobalStatusVarsResponse message. * @param message Plain object 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. + * Creates a GetGlobalStatusVarsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RefreshStateResponse + * @returns GetGlobalStatusVarsResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RefreshStateResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetGlobalStatusVarsResponse; /** - * Creates a plain object from a RefreshStateResponse message. Also converts values to other types if specified. - * @param message RefreshStateResponse + * Creates a plain object from a GetGlobalStatusVarsResponse message. Also converts values to other types if specified. + * @param message GetGlobalStatusVarsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.RefreshStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetGlobalStatusVarsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RefreshStateResponse to JSON. + * Converts this GetGlobalStatusVarsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RefreshStateResponse + * Gets the default type url for GetGlobalStatusVarsResponse * @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 { + /** Properties of a SetReadOnlyRequest. */ + interface ISetReadOnlyRequest { } - /** Represents a RunHealthCheckRequest. */ - class RunHealthCheckRequest implements IRunHealthCheckRequest { + /** Represents a SetReadOnlyRequest. */ + class SetReadOnlyRequest implements ISetReadOnlyRequest { /** - * Constructs a new RunHealthCheckRequest. + * Constructs a new SetReadOnlyRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IRunHealthCheckRequest); + constructor(properties?: tabletmanagerdata.ISetReadOnlyRequest); /** - * Creates a new RunHealthCheckRequest instance using the specified properties. + * Creates a new SetReadOnlyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RunHealthCheckRequest instance + * @returns SetReadOnlyRequest instance */ - public static create(properties?: tabletmanagerdata.IRunHealthCheckRequest): tabletmanagerdata.RunHealthCheckRequest; + public static create(properties?: tabletmanagerdata.ISetReadOnlyRequest): tabletmanagerdata.SetReadOnlyRequest; /** - * Encodes the specified RunHealthCheckRequest message. Does not implicitly {@link tabletmanagerdata.RunHealthCheckRequest.verify|verify} messages. - * @param message RunHealthCheckRequest message or plain object to encode + * Encodes the specified SetReadOnlyRequest message. Does not implicitly {@link tabletmanagerdata.SetReadOnlyRequest.verify|verify} messages. + * @param message SetReadOnlyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISetReadOnlyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunHealthCheckRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.RunHealthCheckRequest.verify|verify} messages. - * @param message RunHealthCheckRequest message or plain object to encode + * Encodes the specified SetReadOnlyRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadOnlyRequest.verify|verify} messages. + * @param message SetReadOnlyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISetReadOnlyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunHealthCheckRequest message from the specified reader or buffer. + * Decodes a SetReadOnlyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunHealthCheckRequest + * @returns SetReadOnlyRequest * @throws {Error} If the payload is 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.RunHealthCheckRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SetReadOnlyRequest; /** - * Decodes a RunHealthCheckRequest message from the specified reader or buffer, length delimited. + * Decodes a SetReadOnlyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunHealthCheckRequest + * @returns SetReadOnlyRequest * @throws {Error} If the 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.RunHealthCheckRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SetReadOnlyRequest; /** - * Verifies a RunHealthCheckRequest message. + * Verifies a SetReadOnlyRequest message. * @param message Plain object 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. + * Creates a SetReadOnlyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunHealthCheckRequest + * @returns SetReadOnlyRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RunHealthCheckRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadOnlyRequest; /** - * Creates a plain object from a RunHealthCheckRequest message. Also converts values to other types if specified. - * @param message RunHealthCheckRequest + * Creates a plain object from a SetReadOnlyRequest message. Also converts values to other types if specified. + * @param message SetReadOnlyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.RunHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SetReadOnlyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunHealthCheckRequest to JSON. + * Converts this SetReadOnlyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RunHealthCheckRequest + * Gets the default type url for SetReadOnlyRequest * @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 { + /** Properties of a SetReadOnlyResponse. */ + interface ISetReadOnlyResponse { } - /** Represents a RunHealthCheckResponse. */ - class RunHealthCheckResponse implements IRunHealthCheckResponse { + /** Represents a SetReadOnlyResponse. */ + class SetReadOnlyResponse implements ISetReadOnlyResponse { /** - * Constructs a new RunHealthCheckResponse. + * Constructs a new SetReadOnlyResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IRunHealthCheckResponse); + constructor(properties?: tabletmanagerdata.ISetReadOnlyResponse); /** - * Creates a new RunHealthCheckResponse instance using the specified properties. + * Creates a new SetReadOnlyResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RunHealthCheckResponse instance + * @returns SetReadOnlyResponse instance */ - public static create(properties?: tabletmanagerdata.IRunHealthCheckResponse): tabletmanagerdata.RunHealthCheckResponse; + public static create(properties?: tabletmanagerdata.ISetReadOnlyResponse): tabletmanagerdata.SetReadOnlyResponse; /** - * Encodes the specified RunHealthCheckResponse message. Does not implicitly {@link tabletmanagerdata.RunHealthCheckResponse.verify|verify} messages. - * @param message RunHealthCheckResponse message or plain object to encode + * Encodes the specified SetReadOnlyResponse message. Does not implicitly {@link tabletmanagerdata.SetReadOnlyResponse.verify|verify} messages. + * @param message SetReadOnlyResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISetReadOnlyResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunHealthCheckResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.RunHealthCheckResponse.verify|verify} messages. - * @param message RunHealthCheckResponse message or plain object to encode + * Encodes the specified SetReadOnlyResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadOnlyResponse.verify|verify} messages. + * @param message SetReadOnlyResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISetReadOnlyResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunHealthCheckResponse message from the specified reader or buffer. + * Decodes a SetReadOnlyResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunHealthCheckResponse + * @returns SetReadOnlyResponse * @throws {Error} If the payload is 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.RunHealthCheckResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SetReadOnlyResponse; /** - * Decodes a RunHealthCheckResponse message from the specified reader or buffer, length delimited. + * Decodes a SetReadOnlyResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunHealthCheckResponse + * @returns SetReadOnlyResponse * @throws {Error} If the 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.RunHealthCheckResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SetReadOnlyResponse; /** - * Verifies a RunHealthCheckResponse message. + * Verifies a SetReadOnlyResponse message. * @param message Plain object 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. + * Creates a SetReadOnlyResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunHealthCheckResponse + * @returns SetReadOnlyResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RunHealthCheckResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadOnlyResponse; /** - * Creates a plain object from a RunHealthCheckResponse message. Also converts values to other types if specified. - * @param message RunHealthCheckResponse + * Creates a plain object from a SetReadOnlyResponse message. Also converts values to other types if specified. + * @param message SetReadOnlyResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.RunHealthCheckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SetReadOnlyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunHealthCheckResponse to JSON. + * Converts this SetReadOnlyResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RunHealthCheckResponse + * Gets the default type url for SetReadOnlyResponse * @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 wait_position */ - wait_position?: (string|null); + /** Properties of a SetReadWriteRequest. */ + interface ISetReadWriteRequest { } - /** Represents a ReloadSchemaRequest. */ - class ReloadSchemaRequest implements IReloadSchemaRequest { + /** Represents a SetReadWriteRequest. */ + class SetReadWriteRequest implements ISetReadWriteRequest { /** - * Constructs a new ReloadSchemaRequest. + * Constructs a new SetReadWriteRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReloadSchemaRequest); - - /** ReloadSchemaRequest wait_position. */ - public wait_position: string; + constructor(properties?: tabletmanagerdata.ISetReadWriteRequest); /** - * Creates a new ReloadSchemaRequest instance using the specified properties. + * Creates a new SetReadWriteRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReloadSchemaRequest instance + * @returns SetReadWriteRequest instance */ - public static create(properties?: tabletmanagerdata.IReloadSchemaRequest): tabletmanagerdata.ReloadSchemaRequest; + public static create(properties?: tabletmanagerdata.ISetReadWriteRequest): tabletmanagerdata.SetReadWriteRequest; /** - * Encodes the specified ReloadSchemaRequest message. Does not implicitly {@link tabletmanagerdata.ReloadSchemaRequest.verify|verify} messages. - * @param message ReloadSchemaRequest message or plain object to encode + * Encodes the specified SetReadWriteRequest message. Does not implicitly {@link tabletmanagerdata.SetReadWriteRequest.verify|verify} messages. + * @param message SetReadWriteRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISetReadWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReloadSchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReloadSchemaRequest.verify|verify} messages. - * @param message ReloadSchemaRequest message or plain object to encode + * Encodes the specified SetReadWriteRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadWriteRequest.verify|verify} messages. + * @param message SetReadWriteRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISetReadWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReloadSchemaRequest message from the specified reader or buffer. + * Decodes a SetReadWriteRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReloadSchemaRequest + * @returns SetReadWriteRequest * @throws {Error} If the payload is 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.ReloadSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SetReadWriteRequest; /** - * Decodes a ReloadSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a SetReadWriteRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReloadSchemaRequest + * @returns SetReadWriteRequest * @throws {Error} If the 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.ReloadSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SetReadWriteRequest; /** - * Verifies a ReloadSchemaRequest message. + * Verifies a SetReadWriteRequest message. * @param message Plain object 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. + * Creates a SetReadWriteRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReloadSchemaRequest + * @returns SetReadWriteRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReloadSchemaRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadWriteRequest; /** - * Creates a plain object from a ReloadSchemaRequest message. Also converts values to other types if specified. - * @param message ReloadSchemaRequest + * Creates a plain object from a SetReadWriteRequest message. Also converts values to other types if specified. + * @param message SetReadWriteRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ReloadSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SetReadWriteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReloadSchemaRequest to JSON. + * Converts this SetReadWriteRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReloadSchemaRequest + * Gets the default type url for SetReadWriteRequest * @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 { + /** Properties of a SetReadWriteResponse. */ + interface ISetReadWriteResponse { } - /** Represents a ReloadSchemaResponse. */ - class ReloadSchemaResponse implements IReloadSchemaResponse { + /** Represents a SetReadWriteResponse. */ + class SetReadWriteResponse implements ISetReadWriteResponse { /** - * Constructs a new ReloadSchemaResponse. + * Constructs a new SetReadWriteResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReloadSchemaResponse); + constructor(properties?: tabletmanagerdata.ISetReadWriteResponse); /** - * Creates a new ReloadSchemaResponse instance using the specified properties. + * Creates a new SetReadWriteResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReloadSchemaResponse instance + * @returns SetReadWriteResponse instance */ - public static create(properties?: tabletmanagerdata.IReloadSchemaResponse): tabletmanagerdata.ReloadSchemaResponse; + public static create(properties?: tabletmanagerdata.ISetReadWriteResponse): tabletmanagerdata.SetReadWriteResponse; /** - * Encodes the specified ReloadSchemaResponse message. Does not implicitly {@link tabletmanagerdata.ReloadSchemaResponse.verify|verify} messages. - * @param message ReloadSchemaResponse message or plain object to encode + * Encodes the specified SetReadWriteResponse message. Does not implicitly {@link tabletmanagerdata.SetReadWriteResponse.verify|verify} messages. + * @param message SetReadWriteResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISetReadWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReloadSchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReloadSchemaResponse.verify|verify} messages. - * @param message ReloadSchemaResponse message or plain object to encode + * Encodes the specified SetReadWriteResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadWriteResponse.verify|verify} messages. + * @param message SetReadWriteResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISetReadWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReloadSchemaResponse message from the specified reader or buffer. + * Decodes a SetReadWriteResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReloadSchemaResponse + * @returns SetReadWriteResponse * @throws {Error} If the payload is 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.ReloadSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SetReadWriteResponse; /** - * Decodes a ReloadSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a SetReadWriteResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReloadSchemaResponse + * @returns SetReadWriteResponse * @throws {Error} If the 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.ReloadSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SetReadWriteResponse; /** - * Verifies a ReloadSchemaResponse message. + * Verifies a SetReadWriteResponse message. * @param message Plain object 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. + * Creates a SetReadWriteResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReloadSchemaResponse + * @returns SetReadWriteResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReloadSchemaResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadWriteResponse; /** - * Creates a plain object from a ReloadSchemaResponse message. Also converts values to other types if specified. - * @param message ReloadSchemaResponse + * Creates a plain object from a SetReadWriteResponse message. Also converts values to other types if specified. + * @param message SetReadWriteResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ReloadSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SetReadWriteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReloadSchemaResponse to JSON. + * Converts this SetReadWriteResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReloadSchemaResponse + * Gets the default type url for SetReadWriteResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PreflightSchemaRequest. */ - interface IPreflightSchemaRequest { + /** Properties of a ChangeTypeRequest. */ + interface IChangeTypeRequest { - /** PreflightSchemaRequest changes */ - changes?: (string[]|null); + /** ChangeTypeRequest tablet_type */ + tablet_type?: (topodata.TabletType|null); + + /** ChangeTypeRequest semiSync */ + semiSync?: (boolean|null); } - /** Represents a PreflightSchemaRequest. */ - class PreflightSchemaRequest implements IPreflightSchemaRequest { + /** Represents a ChangeTypeRequest. */ + class ChangeTypeRequest implements IChangeTypeRequest { /** - * Constructs a new PreflightSchemaRequest. + * Constructs a new ChangeTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPreflightSchemaRequest); + constructor(properties?: tabletmanagerdata.IChangeTypeRequest); - /** PreflightSchemaRequest changes. */ - public changes: string[]; + /** ChangeTypeRequest tablet_type. */ + public tablet_type: topodata.TabletType; + + /** ChangeTypeRequest semiSync. */ + public semiSync: boolean; /** - * Creates a new PreflightSchemaRequest instance using the specified properties. + * Creates a new ChangeTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PreflightSchemaRequest instance + * @returns ChangeTypeRequest instance */ - public static create(properties?: tabletmanagerdata.IPreflightSchemaRequest): tabletmanagerdata.PreflightSchemaRequest; + public static create(properties?: tabletmanagerdata.IChangeTypeRequest): tabletmanagerdata.ChangeTypeRequest; /** - * Encodes the specified PreflightSchemaRequest message. Does not implicitly {@link tabletmanagerdata.PreflightSchemaRequest.verify|verify} messages. - * @param message PreflightSchemaRequest message or plain object to encode + * Encodes the specified ChangeTypeRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTypeRequest.verify|verify} messages. + * @param message ChangeTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IPreflightSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IChangeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PreflightSchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PreflightSchemaRequest.verify|verify} messages. - * @param message PreflightSchemaRequest message or plain object to encode + * Encodes the specified ChangeTypeRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTypeRequest.verify|verify} messages. + * @param message ChangeTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IPreflightSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IChangeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PreflightSchemaRequest message from the specified reader or buffer. + * Decodes a ChangeTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PreflightSchemaRequest + * @returns ChangeTypeRequest * @throws {Error} If the payload is 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.PreflightSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTypeRequest; /** - * Decodes a PreflightSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a ChangeTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PreflightSchemaRequest + * @returns ChangeTypeRequest * @throws {Error} If the 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.PreflightSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTypeRequest; /** - * Verifies a PreflightSchemaRequest message. + * Verifies a ChangeTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PreflightSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PreflightSchemaRequest + * @returns ChangeTypeRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PreflightSchemaRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTypeRequest; /** - * Creates a plain object from a PreflightSchemaRequest message. Also converts values to other types if specified. - * @param message PreflightSchemaRequest + * Creates a plain object from a ChangeTypeRequest message. Also converts values to other types if specified. + * @param message ChangeTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.PreflightSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ChangeTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PreflightSchemaRequest to JSON. + * Converts this ChangeTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PreflightSchemaRequest + * Gets the default type url for ChangeTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PreflightSchemaResponse. */ - interface IPreflightSchemaResponse { - - /** PreflightSchemaResponse change_results */ - change_results?: (tabletmanagerdata.ISchemaChangeResult[]|null); + /** Properties of a ChangeTypeResponse. */ + interface IChangeTypeResponse { } - /** Represents a PreflightSchemaResponse. */ - class PreflightSchemaResponse implements IPreflightSchemaResponse { + /** Represents a ChangeTypeResponse. */ + class ChangeTypeResponse implements IChangeTypeResponse { /** - * Constructs a new PreflightSchemaResponse. + * Constructs a new ChangeTypeResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPreflightSchemaResponse); - - /** PreflightSchemaResponse change_results. */ - public change_results: tabletmanagerdata.ISchemaChangeResult[]; + constructor(properties?: tabletmanagerdata.IChangeTypeResponse); /** - * Creates a new PreflightSchemaResponse instance using the specified properties. + * Creates a new ChangeTypeResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PreflightSchemaResponse instance + * @returns ChangeTypeResponse instance */ - public static create(properties?: tabletmanagerdata.IPreflightSchemaResponse): tabletmanagerdata.PreflightSchemaResponse; + public static create(properties?: tabletmanagerdata.IChangeTypeResponse): tabletmanagerdata.ChangeTypeResponse; /** - * Encodes the specified PreflightSchemaResponse message. Does not implicitly {@link tabletmanagerdata.PreflightSchemaResponse.verify|verify} messages. - * @param message PreflightSchemaResponse message or plain object to encode + * Encodes the specified ChangeTypeResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTypeResponse.verify|verify} messages. + * @param message ChangeTypeResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IPreflightSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IChangeTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PreflightSchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PreflightSchemaResponse.verify|verify} messages. - * @param message PreflightSchemaResponse message or plain object to encode + * Encodes the specified ChangeTypeResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTypeResponse.verify|verify} messages. + * @param message ChangeTypeResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IPreflightSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IChangeTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PreflightSchemaResponse message from the specified reader or buffer. + * Decodes a ChangeTypeResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PreflightSchemaResponse + * @returns ChangeTypeResponse * @throws {Error} If the payload is 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.PreflightSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTypeResponse; /** - * Decodes a PreflightSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a ChangeTypeResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PreflightSchemaResponse + * @returns ChangeTypeResponse * @throws {Error} If the 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.PreflightSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTypeResponse; /** - * Verifies a PreflightSchemaResponse message. + * Verifies a ChangeTypeResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PreflightSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeTypeResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PreflightSchemaResponse + * @returns ChangeTypeResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PreflightSchemaResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTypeResponse; /** - * Creates a plain object from a PreflightSchemaResponse message. Also converts values to other types if specified. - * @param message PreflightSchemaResponse + * Creates a plain object from a ChangeTypeResponse message. Also converts values to other types if specified. + * @param message ChangeTypeResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.PreflightSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ChangeTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PreflightSchemaResponse to JSON. + * Converts this ChangeTypeResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PreflightSchemaResponse + * Gets the default type url for ChangeTypeResponse * @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 sql */ - sql?: (string|null); - - /** ApplySchemaRequest force */ - force?: (boolean|null); - - /** ApplySchemaRequest allow_replication */ - allow_replication?: (boolean|null); - - /** ApplySchemaRequest before_schema */ - before_schema?: (tabletmanagerdata.ISchemaDefinition|null); - - /** ApplySchemaRequest after_schema */ - after_schema?: (tabletmanagerdata.ISchemaDefinition|null); - - /** ApplySchemaRequest sql_mode */ - sql_mode?: (string|null); - - /** ApplySchemaRequest batch_size */ - batch_size?: (number|Long|null); - - /** ApplySchemaRequest disable_foreign_key_checks */ - disable_foreign_key_checks?: (boolean|null); + /** Properties of a RefreshStateRequest. */ + interface IRefreshStateRequest { } - /** Represents an ApplySchemaRequest. */ - class ApplySchemaRequest implements IApplySchemaRequest { + /** Represents a RefreshStateRequest. */ + class RefreshStateRequest implements IRefreshStateRequest { /** - * Constructs a new ApplySchemaRequest. + * Constructs a new RefreshStateRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IApplySchemaRequest); - - /** ApplySchemaRequest sql. */ - public sql: string; - - /** ApplySchemaRequest force. */ - public force: boolean; - - /** ApplySchemaRequest allow_replication. */ - public allow_replication: boolean; - - /** ApplySchemaRequest before_schema. */ - public before_schema?: (tabletmanagerdata.ISchemaDefinition|null); - - /** ApplySchemaRequest after_schema. */ - public after_schema?: (tabletmanagerdata.ISchemaDefinition|null); - - /** ApplySchemaRequest sql_mode. */ - public sql_mode: string; - - /** ApplySchemaRequest batch_size. */ - public batch_size: (number|Long); - - /** ApplySchemaRequest disable_foreign_key_checks. */ - public disable_foreign_key_checks: boolean; + constructor(properties?: tabletmanagerdata.IRefreshStateRequest); /** - * Creates a new ApplySchemaRequest instance using the specified properties. + * Creates a new RefreshStateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ApplySchemaRequest instance + * @returns RefreshStateRequest instance */ - public static create(properties?: tabletmanagerdata.IApplySchemaRequest): tabletmanagerdata.ApplySchemaRequest; + public static create(properties?: tabletmanagerdata.IRefreshStateRequest): tabletmanagerdata.RefreshStateRequest; /** - * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link tabletmanagerdata.ApplySchemaRequest.verify|verify} messages. - * @param message ApplySchemaRequest message or plain object to encode + * Encodes the specified RefreshStateRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IApplySchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ApplySchemaRequest.verify|verify} messages. - * @param message ApplySchemaRequest message or plain object to encode + * Encodes the specified RefreshStateRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IApplySchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer. + * 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 ApplySchemaRequest + * @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): tabletmanagerdata.ApplySchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.RefreshStateRequest; /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a RefreshStateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplySchemaRequest + * @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)): tabletmanagerdata.ApplySchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.RefreshStateRequest; /** - * Verifies an ApplySchemaRequest message. + * 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 an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshStateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApplySchemaRequest + * @returns RefreshStateRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ApplySchemaRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RefreshStateRequest; /** - * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. - * @param message ApplySchemaRequest + * 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: tabletmanagerdata.ApplySchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.RefreshStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApplySchemaRequest to JSON. + * Converts this RefreshStateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApplySchemaRequest + * 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 an ApplySchemaResponse. */ - interface IApplySchemaResponse { - - /** ApplySchemaResponse before_schema */ - before_schema?: (tabletmanagerdata.ISchemaDefinition|null); - - /** ApplySchemaResponse after_schema */ - after_schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** Properties of a RefreshStateResponse. */ + interface IRefreshStateResponse { } - /** Represents an ApplySchemaResponse. */ - class ApplySchemaResponse implements IApplySchemaResponse { + /** Represents a RefreshStateResponse. */ + class RefreshStateResponse implements IRefreshStateResponse { /** - * Constructs a new ApplySchemaResponse. + * Constructs a new RefreshStateResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IApplySchemaResponse); - - /** ApplySchemaResponse before_schema. */ - public before_schema?: (tabletmanagerdata.ISchemaDefinition|null); - - /** ApplySchemaResponse after_schema. */ - public after_schema?: (tabletmanagerdata.ISchemaDefinition|null); + constructor(properties?: tabletmanagerdata.IRefreshStateResponse); /** - * Creates a new ApplySchemaResponse instance using the specified properties. + * Creates a new RefreshStateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ApplySchemaResponse instance + * @returns RefreshStateResponse instance */ - public static create(properties?: tabletmanagerdata.IApplySchemaResponse): tabletmanagerdata.ApplySchemaResponse; + public static create(properties?: tabletmanagerdata.IRefreshStateResponse): tabletmanagerdata.RefreshStateResponse; /** - * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link tabletmanagerdata.ApplySchemaResponse.verify|verify} messages. - * @param message ApplySchemaResponse message or plain object to encode + * Encodes the specified RefreshStateResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IApplySchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ApplySchemaResponse.verify|verify} messages. - * @param message ApplySchemaResponse message or plain object to encode + * Encodes the specified RefreshStateResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IApplySchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer. + * 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 ApplySchemaResponse + * @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): tabletmanagerdata.ApplySchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.RefreshStateResponse; /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a RefreshStateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplySchemaResponse + * @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)): tabletmanagerdata.ApplySchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.RefreshStateResponse; /** - * Verifies an ApplySchemaResponse message. + * 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 an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshStateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApplySchemaResponse + * @returns RefreshStateResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ApplySchemaResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RefreshStateResponse; /** - * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. - * @param message ApplySchemaResponse + * 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: tabletmanagerdata.ApplySchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.RefreshStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApplySchemaResponse to JSON. + * Converts this RefreshStateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApplySchemaResponse + * 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 LockTablesRequest. */ - interface ILockTablesRequest { + /** Properties of a RunHealthCheckRequest. */ + interface IRunHealthCheckRequest { } - /** Represents a LockTablesRequest. */ - class LockTablesRequest implements ILockTablesRequest { + /** Represents a RunHealthCheckRequest. */ + class RunHealthCheckRequest implements IRunHealthCheckRequest { /** - * Constructs a new LockTablesRequest. + * Constructs a new RunHealthCheckRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ILockTablesRequest); + constructor(properties?: tabletmanagerdata.IRunHealthCheckRequest); /** - * Creates a new LockTablesRequest instance using the specified properties. + * Creates a new RunHealthCheckRequest instance using the specified properties. * @param [properties] Properties to set - * @returns LockTablesRequest instance + * @returns RunHealthCheckRequest instance */ - public static create(properties?: tabletmanagerdata.ILockTablesRequest): tabletmanagerdata.LockTablesRequest; + public static create(properties?: tabletmanagerdata.IRunHealthCheckRequest): tabletmanagerdata.RunHealthCheckRequest; /** - * Encodes the specified LockTablesRequest message. Does not implicitly {@link tabletmanagerdata.LockTablesRequest.verify|verify} messages. - * @param message LockTablesRequest message or plain object to encode + * Encodes the specified RunHealthCheckRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.ILockTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LockTablesRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.LockTablesRequest.verify|verify} messages. - * @param message LockTablesRequest message or plain object to encode + * Encodes the specified RunHealthCheckRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.ILockTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LockTablesRequest message from the specified reader or buffer. + * 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 LockTablesRequest + * @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): tabletmanagerdata.LockTablesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.RunHealthCheckRequest; /** - * Decodes a LockTablesRequest message from the specified reader or buffer, length delimited. + * Decodes a RunHealthCheckRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LockTablesRequest + * @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)): tabletmanagerdata.LockTablesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.RunHealthCheckRequest; /** - * Verifies a LockTablesRequest message. + * 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 LockTablesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunHealthCheckRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LockTablesRequest + * @returns RunHealthCheckRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.LockTablesRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RunHealthCheckRequest; /** - * Creates a plain object from a LockTablesRequest message. Also converts values to other types if specified. - * @param message LockTablesRequest + * 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: tabletmanagerdata.LockTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.RunHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LockTablesRequest to JSON. + * Converts this RunHealthCheckRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LockTablesRequest + * 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 LockTablesResponse. */ - interface ILockTablesResponse { + /** Properties of a RunHealthCheckResponse. */ + interface IRunHealthCheckResponse { } - /** Represents a LockTablesResponse. */ - class LockTablesResponse implements ILockTablesResponse { + /** Represents a RunHealthCheckResponse. */ + class RunHealthCheckResponse implements IRunHealthCheckResponse { /** - * Constructs a new LockTablesResponse. + * Constructs a new RunHealthCheckResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ILockTablesResponse); + constructor(properties?: tabletmanagerdata.IRunHealthCheckResponse); /** - * Creates a new LockTablesResponse instance using the specified properties. + * Creates a new RunHealthCheckResponse instance using the specified properties. * @param [properties] Properties to set - * @returns LockTablesResponse instance + * @returns RunHealthCheckResponse instance */ - public static create(properties?: tabletmanagerdata.ILockTablesResponse): tabletmanagerdata.LockTablesResponse; + public static create(properties?: tabletmanagerdata.IRunHealthCheckResponse): tabletmanagerdata.RunHealthCheckResponse; /** - * Encodes the specified LockTablesResponse message. Does not implicitly {@link tabletmanagerdata.LockTablesResponse.verify|verify} messages. - * @param message LockTablesResponse message or plain object to encode + * Encodes the specified RunHealthCheckResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.ILockTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LockTablesResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.LockTablesResponse.verify|verify} messages. - * @param message LockTablesResponse message or plain object to encode + * Encodes the specified RunHealthCheckResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.ILockTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LockTablesResponse message from the specified reader or buffer. + * 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 LockTablesResponse + * @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): tabletmanagerdata.LockTablesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.RunHealthCheckResponse; /** - * Decodes a LockTablesResponse message from the specified reader or buffer, length delimited. + * Decodes a RunHealthCheckResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LockTablesResponse + * @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)): tabletmanagerdata.LockTablesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.RunHealthCheckResponse; /** - * Verifies a LockTablesResponse message. + * 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 LockTablesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RunHealthCheckResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LockTablesResponse + * @returns RunHealthCheckResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.LockTablesResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RunHealthCheckResponse; /** - * Creates a plain object from a LockTablesResponse message. Also converts values to other types if specified. - * @param message LockTablesResponse + * 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: tabletmanagerdata.LockTablesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.RunHealthCheckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LockTablesResponse to JSON. + * Converts this RunHealthCheckResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LockTablesResponse + * 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 an UnlockTablesRequest. */ - interface IUnlockTablesRequest { + /** Properties of a ReloadSchemaRequest. */ + interface IReloadSchemaRequest { + + /** ReloadSchemaRequest wait_position */ + wait_position?: (string|null); } - /** Represents an UnlockTablesRequest. */ - class UnlockTablesRequest implements IUnlockTablesRequest { + /** Represents a ReloadSchemaRequest. */ + class ReloadSchemaRequest implements IReloadSchemaRequest { /** - * Constructs a new UnlockTablesRequest. + * Constructs a new ReloadSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IUnlockTablesRequest); + constructor(properties?: tabletmanagerdata.IReloadSchemaRequest); + + /** ReloadSchemaRequest wait_position. */ + public wait_position: string; /** - * Creates a new UnlockTablesRequest instance using the specified properties. + * Creates a new ReloadSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UnlockTablesRequest instance + * @returns ReloadSchemaRequest instance */ - public static create(properties?: tabletmanagerdata.IUnlockTablesRequest): tabletmanagerdata.UnlockTablesRequest; + public static create(properties?: tabletmanagerdata.IReloadSchemaRequest): tabletmanagerdata.ReloadSchemaRequest; /** - * Encodes the specified UnlockTablesRequest message. Does not implicitly {@link tabletmanagerdata.UnlockTablesRequest.verify|verify} messages. - * @param message UnlockTablesRequest message or plain object to encode + * Encodes the specified ReloadSchemaRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IUnlockTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UnlockTablesRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UnlockTablesRequest.verify|verify} messages. - * @param message UnlockTablesRequest message or plain object to encode + * Encodes the specified ReloadSchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IUnlockTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UnlockTablesRequest message from the specified reader or buffer. + * 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 UnlockTablesRequest + * @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): tabletmanagerdata.UnlockTablesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReloadSchemaRequest; /** - * Decodes an UnlockTablesRequest message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UnlockTablesRequest + * @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)): tabletmanagerdata.UnlockTablesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReloadSchemaRequest; /** - * Verifies an UnlockTablesRequest message. + * 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 an UnlockTablesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UnlockTablesRequest + * @returns ReloadSchemaRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UnlockTablesRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReloadSchemaRequest; /** - * Creates a plain object from an UnlockTablesRequest message. Also converts values to other types if specified. - * @param message UnlockTablesRequest + * 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: tabletmanagerdata.UnlockTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReloadSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UnlockTablesRequest to JSON. + * Converts this ReloadSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UnlockTablesRequest + * 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 an UnlockTablesResponse. */ - interface IUnlockTablesResponse { + /** Properties of a ReloadSchemaResponse. */ + interface IReloadSchemaResponse { } - /** Represents an UnlockTablesResponse. */ - class UnlockTablesResponse implements IUnlockTablesResponse { + /** Represents a ReloadSchemaResponse. */ + class ReloadSchemaResponse implements IReloadSchemaResponse { /** - * Constructs a new UnlockTablesResponse. + * Constructs a new ReloadSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IUnlockTablesResponse); + constructor(properties?: tabletmanagerdata.IReloadSchemaResponse); /** - * Creates a new UnlockTablesResponse instance using the specified properties. + * Creates a new ReloadSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UnlockTablesResponse instance + * @returns ReloadSchemaResponse instance */ - public static create(properties?: tabletmanagerdata.IUnlockTablesResponse): tabletmanagerdata.UnlockTablesResponse; + public static create(properties?: tabletmanagerdata.IReloadSchemaResponse): tabletmanagerdata.ReloadSchemaResponse; /** - * Encodes the specified UnlockTablesResponse message. Does not implicitly {@link tabletmanagerdata.UnlockTablesResponse.verify|verify} messages. - * @param message UnlockTablesResponse message or plain object to encode + * Encodes the specified ReloadSchemaResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IUnlockTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UnlockTablesResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UnlockTablesResponse.verify|verify} messages. - * @param message UnlockTablesResponse message or plain object to encode + * Encodes the specified ReloadSchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IUnlockTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UnlockTablesResponse message from the specified reader or buffer. + * 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 UnlockTablesResponse + * @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): tabletmanagerdata.UnlockTablesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReloadSchemaResponse; /** - * Decodes an UnlockTablesResponse message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UnlockTablesResponse + * @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)): tabletmanagerdata.UnlockTablesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReloadSchemaResponse; /** - * Verifies an UnlockTablesResponse message. + * 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 an UnlockTablesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UnlockTablesResponse + * @returns ReloadSchemaResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UnlockTablesResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReloadSchemaResponse; /** - * Creates a plain object from an UnlockTablesResponse message. Also converts values to other types if specified. - * @param message UnlockTablesResponse + * 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: tabletmanagerdata.UnlockTablesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReloadSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UnlockTablesResponse to JSON. + * Converts this ReloadSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UnlockTablesResponse + * 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 an ExecuteQueryRequest. */ - interface IExecuteQueryRequest { - - /** ExecuteQueryRequest query */ - query?: (Uint8Array|null); - - /** ExecuteQueryRequest db_name */ - db_name?: (string|null); - - /** ExecuteQueryRequest max_rows */ - max_rows?: (number|Long|null); + /** Properties of a PreflightSchemaRequest. */ + interface IPreflightSchemaRequest { - /** ExecuteQueryRequest caller_id */ - caller_id?: (vtrpc.ICallerID|null); + /** PreflightSchemaRequest changes */ + changes?: (string[]|null); } - /** Represents an ExecuteQueryRequest. */ - class ExecuteQueryRequest implements IExecuteQueryRequest { + /** Represents a PreflightSchemaRequest. */ + class PreflightSchemaRequest implements IPreflightSchemaRequest { /** - * Constructs a new ExecuteQueryRequest. + * Constructs a new PreflightSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IExecuteQueryRequest); - - /** ExecuteQueryRequest query. */ - public query: Uint8Array; - - /** ExecuteQueryRequest db_name. */ - public db_name: string; - - /** ExecuteQueryRequest max_rows. */ - public max_rows: (number|Long); + constructor(properties?: tabletmanagerdata.IPreflightSchemaRequest); - /** ExecuteQueryRequest caller_id. */ - public caller_id?: (vtrpc.ICallerID|null); + /** PreflightSchemaRequest changes. */ + public changes: string[]; /** - * Creates a new ExecuteQueryRequest instance using the specified properties. + * Creates a new PreflightSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteQueryRequest instance + * @returns PreflightSchemaRequest instance */ - public static create(properties?: tabletmanagerdata.IExecuteQueryRequest): tabletmanagerdata.ExecuteQueryRequest; + public static create(properties?: tabletmanagerdata.IPreflightSchemaRequest): tabletmanagerdata.PreflightSchemaRequest; /** - * Encodes the specified ExecuteQueryRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteQueryRequest.verify|verify} messages. - * @param message ExecuteQueryRequest message or plain object to encode + * Encodes the specified PreflightSchemaRequest message. Does not implicitly {@link tabletmanagerdata.PreflightSchemaRequest.verify|verify} messages. + * @param message PreflightSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IExecuteQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPreflightSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteQueryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteQueryRequest.verify|verify} messages. - * @param message ExecuteQueryRequest message or plain object to encode + * Encodes the specified PreflightSchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PreflightSchemaRequest.verify|verify} messages. + * @param message PreflightSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IExecuteQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPreflightSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteQueryRequest message from the specified reader or buffer. + * Decodes a PreflightSchemaRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteQueryRequest + * @returns PreflightSchemaRequest * @throws {Error} If the payload is 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.ExecuteQueryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PreflightSchemaRequest; /** - * Decodes an ExecuteQueryRequest message from the specified reader or buffer, length delimited. + * Decodes a PreflightSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteQueryRequest + * @returns PreflightSchemaRequest * @throws {Error} If the 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.ExecuteQueryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PreflightSchemaRequest; /** - * Verifies an ExecuteQueryRequest message. + * Verifies a PreflightSchemaRequest message. * @param message Plain 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 ExecuteQueryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PreflightSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteQueryRequest + * @returns PreflightSchemaRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteQueryRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PreflightSchemaRequest; /** - * Creates a plain object from an ExecuteQueryRequest message. Also converts values to other types if specified. - * @param message ExecuteQueryRequest + * Creates a plain object from a PreflightSchemaRequest message. Also converts values to other types if specified. + * @param message PreflightSchemaRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ExecuteQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.PreflightSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteQueryRequest to JSON. + * Converts this PreflightSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteQueryRequest + * Gets the default type url for PreflightSchemaRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExecuteQueryResponse. */ - interface IExecuteQueryResponse { + /** Properties of a PreflightSchemaResponse. */ + interface IPreflightSchemaResponse { - /** ExecuteQueryResponse result */ - result?: (query.IQueryResult|null); + /** PreflightSchemaResponse change_results */ + change_results?: (tabletmanagerdata.ISchemaChangeResult[]|null); } - /** Represents an ExecuteQueryResponse. */ - class ExecuteQueryResponse implements IExecuteQueryResponse { + /** Represents a PreflightSchemaResponse. */ + class PreflightSchemaResponse implements IPreflightSchemaResponse { /** - * Constructs a new ExecuteQueryResponse. + * Constructs a new PreflightSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IExecuteQueryResponse); + constructor(properties?: tabletmanagerdata.IPreflightSchemaResponse); - /** ExecuteQueryResponse result. */ - public result?: (query.IQueryResult|null); + /** PreflightSchemaResponse change_results. */ + public change_results: tabletmanagerdata.ISchemaChangeResult[]; /** - * Creates a new ExecuteQueryResponse instance using the specified properties. + * Creates a new PreflightSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteQueryResponse instance + * @returns PreflightSchemaResponse instance */ - public static create(properties?: tabletmanagerdata.IExecuteQueryResponse): tabletmanagerdata.ExecuteQueryResponse; + public static create(properties?: tabletmanagerdata.IPreflightSchemaResponse): tabletmanagerdata.PreflightSchemaResponse; /** - * Encodes the specified ExecuteQueryResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteQueryResponse.verify|verify} messages. - * @param message ExecuteQueryResponse message or plain object to encode + * Encodes the specified PreflightSchemaResponse message. Does not implicitly {@link tabletmanagerdata.PreflightSchemaResponse.verify|verify} messages. + * @param message PreflightSchemaResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IExecuteQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPreflightSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteQueryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteQueryResponse.verify|verify} messages. - * @param message ExecuteQueryResponse message or plain object to encode + * Encodes the specified PreflightSchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PreflightSchemaResponse.verify|verify} messages. + * @param message PreflightSchemaResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IExecuteQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPreflightSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteQueryResponse message from the specified reader or buffer. + * Decodes a PreflightSchemaResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteQueryResponse + * @returns PreflightSchemaResponse * @throws {Error} If the payload is 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.ExecuteQueryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PreflightSchemaResponse; /** - * Decodes an ExecuteQueryResponse message from the specified reader or buffer, length delimited. + * Decodes a PreflightSchemaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteQueryResponse + * @returns PreflightSchemaResponse * @throws {Error} If the 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.ExecuteQueryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PreflightSchemaResponse; /** - * Verifies an ExecuteQueryResponse message. + * Verifies a PreflightSchemaResponse message. * @param message Plain 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 ExecuteQueryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PreflightSchemaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteQueryResponse + * @returns PreflightSchemaResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteQueryResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PreflightSchemaResponse; /** - * Creates a plain object from an ExecuteQueryResponse message. Also converts values to other types if specified. - * @param message ExecuteQueryResponse + * Creates a plain object from a PreflightSchemaResponse message. Also converts values to other types if specified. + * @param message PreflightSchemaResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ExecuteQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.PreflightSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteQueryResponse to JSON. + * Converts this PreflightSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteQueryResponse + * Gets the default type url for PreflightSchemaResponse * @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 { + /** Properties of an ApplySchemaRequest. */ + interface IApplySchemaRequest { - /** ExecuteFetchAsDbaRequest query */ - query?: (Uint8Array|null); + /** ApplySchemaRequest sql */ + sql?: (string|null); - /** ExecuteFetchAsDbaRequest db_name */ - db_name?: (string|null); + /** ApplySchemaRequest force */ + force?: (boolean|null); - /** ExecuteFetchAsDbaRequest max_rows */ - max_rows?: (number|Long|null); + /** ApplySchemaRequest allow_replication */ + allow_replication?: (boolean|null); - /** ExecuteFetchAsDbaRequest disable_binlogs */ - disable_binlogs?: (boolean|null); + /** ApplySchemaRequest before_schema */ + before_schema?: (tabletmanagerdata.ISchemaDefinition|null); - /** ExecuteFetchAsDbaRequest reload_schema */ - reload_schema?: (boolean|null); + /** ApplySchemaRequest after_schema */ + after_schema?: (tabletmanagerdata.ISchemaDefinition|null); - /** ExecuteFetchAsDbaRequest disable_foreign_key_checks */ + /** ApplySchemaRequest sql_mode */ + sql_mode?: (string|null); + + /** ApplySchemaRequest batch_size */ + batch_size?: (number|Long|null); + + /** ApplySchemaRequest disable_foreign_key_checks */ disable_foreign_key_checks?: (boolean|null); } - /** Represents an ExecuteFetchAsDbaRequest. */ - class ExecuteFetchAsDbaRequest implements IExecuteFetchAsDbaRequest { + /** Represents an ApplySchemaRequest. */ + class ApplySchemaRequest implements IApplySchemaRequest { /** - * Constructs a new ExecuteFetchAsDbaRequest. + * Constructs a new ApplySchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IExecuteFetchAsDbaRequest); + constructor(properties?: tabletmanagerdata.IApplySchemaRequest); - /** ExecuteFetchAsDbaRequest query. */ - public query: Uint8Array; + /** ApplySchemaRequest sql. */ + public sql: string; - /** ExecuteFetchAsDbaRequest db_name. */ - public db_name: string; + /** ApplySchemaRequest force. */ + public force: boolean; - /** ExecuteFetchAsDbaRequest max_rows. */ - public max_rows: (number|Long); + /** ApplySchemaRequest allow_replication. */ + public allow_replication: boolean; - /** ExecuteFetchAsDbaRequest disable_binlogs. */ - public disable_binlogs: boolean; + /** ApplySchemaRequest before_schema. */ + public before_schema?: (tabletmanagerdata.ISchemaDefinition|null); - /** ExecuteFetchAsDbaRequest reload_schema. */ - public reload_schema: boolean; + /** ApplySchemaRequest after_schema. */ + public after_schema?: (tabletmanagerdata.ISchemaDefinition|null); - /** ExecuteFetchAsDbaRequest disable_foreign_key_checks. */ + /** ApplySchemaRequest sql_mode. */ + public sql_mode: string; + + /** ApplySchemaRequest batch_size. */ + public batch_size: (number|Long); + + /** ApplySchemaRequest disable_foreign_key_checks. */ public disable_foreign_key_checks: boolean; /** - * Creates a new ExecuteFetchAsDbaRequest instance using the specified properties. + * Creates a new ApplySchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteFetchAsDbaRequest instance + * @returns ApplySchemaRequest instance */ - public static create(properties?: tabletmanagerdata.IExecuteFetchAsDbaRequest): tabletmanagerdata.ExecuteFetchAsDbaRequest; + public static create(properties?: tabletmanagerdata.IApplySchemaRequest): tabletmanagerdata.ApplySchemaRequest; /** - * Encodes the specified ExecuteFetchAsDbaRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsDbaRequest.verify|verify} messages. - * @param message ExecuteFetchAsDbaRequest message or plain object to encode + * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IExecuteFetchAsDbaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IApplySchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteFetchAsDbaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsDbaRequest.verify|verify} messages. - * @param message ExecuteFetchAsDbaRequest message or plain object to encode + * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IExecuteFetchAsDbaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IApplySchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteFetchAsDbaRequest message from the specified reader or buffer. + * 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 ExecuteFetchAsDbaRequest + * @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): tabletmanagerdata.ExecuteFetchAsDbaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ApplySchemaRequest; /** - * Decodes an ExecuteFetchAsDbaRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsDbaRequest + * @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)): tabletmanagerdata.ExecuteFetchAsDbaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ApplySchemaRequest; /** - * Verifies an ExecuteFetchAsDbaRequest message. + * 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 ExecuteFetchAsDbaRequest 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. * @param object Plain object - * @returns ExecuteFetchAsDbaRequest + * @returns ApplySchemaRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteFetchAsDbaRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ApplySchemaRequest; /** - * Creates a plain object from an ExecuteFetchAsDbaRequest message. Also converts values to other types if specified. - * @param message ExecuteFetchAsDbaRequest + * 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: tabletmanagerdata.ExecuteFetchAsDbaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ApplySchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteFetchAsDbaRequest to JSON. + * Converts this ApplySchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteFetchAsDbaRequest + * 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 ExecuteFetchAsDbaResponse. */ - interface IExecuteFetchAsDbaResponse { + /** Properties of an ApplySchemaResponse. */ + interface IApplySchemaResponse { - /** ExecuteFetchAsDbaResponse result */ - result?: (query.IQueryResult|null); + /** ApplySchemaResponse before_schema */ + before_schema?: (tabletmanagerdata.ISchemaDefinition|null); + + /** ApplySchemaResponse after_schema */ + after_schema?: (tabletmanagerdata.ISchemaDefinition|null); } - /** Represents an ExecuteFetchAsDbaResponse. */ - class ExecuteFetchAsDbaResponse implements IExecuteFetchAsDbaResponse { + /** Represents an ApplySchemaResponse. */ + class ApplySchemaResponse implements IApplySchemaResponse { /** - * Constructs a new ExecuteFetchAsDbaResponse. + * Constructs a new ApplySchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IExecuteFetchAsDbaResponse); + constructor(properties?: tabletmanagerdata.IApplySchemaResponse); - /** ExecuteFetchAsDbaResponse result. */ - public result?: (query.IQueryResult|null); + /** ApplySchemaResponse before_schema. */ + public before_schema?: (tabletmanagerdata.ISchemaDefinition|null); + + /** ApplySchemaResponse after_schema. */ + public after_schema?: (tabletmanagerdata.ISchemaDefinition|null); /** - * Creates a new ExecuteFetchAsDbaResponse instance using the specified properties. + * Creates a new ApplySchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteFetchAsDbaResponse instance + * @returns ApplySchemaResponse instance */ - public static create(properties?: tabletmanagerdata.IExecuteFetchAsDbaResponse): tabletmanagerdata.ExecuteFetchAsDbaResponse; + public static create(properties?: tabletmanagerdata.IApplySchemaResponse): tabletmanagerdata.ApplySchemaResponse; /** - * Encodes the specified ExecuteFetchAsDbaResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsDbaResponse.verify|verify} messages. - * @param message ExecuteFetchAsDbaResponse message or plain object to encode + * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IExecuteFetchAsDbaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IApplySchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteFetchAsDbaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsDbaResponse.verify|verify} messages. - * @param message ExecuteFetchAsDbaResponse message or plain object to encode + * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IExecuteFetchAsDbaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IApplySchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteFetchAsDbaResponse message from the specified reader or buffer. + * 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 ExecuteFetchAsDbaResponse + * @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): tabletmanagerdata.ExecuteFetchAsDbaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ApplySchemaResponse; /** - * Decodes an ExecuteFetchAsDbaResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsDbaResponse + * @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)): tabletmanagerdata.ExecuteFetchAsDbaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ApplySchemaResponse; /** - * Verifies an ExecuteFetchAsDbaResponse message. + * 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 ExecuteFetchAsDbaResponse 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. * @param object Plain object - * @returns ExecuteFetchAsDbaResponse + * @returns ApplySchemaResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteFetchAsDbaResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ApplySchemaResponse; /** - * Creates a plain object from an ExecuteFetchAsDbaResponse message. Also converts values to other types if specified. - * @param message ExecuteFetchAsDbaResponse + * 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: tabletmanagerdata.ExecuteFetchAsDbaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ApplySchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteFetchAsDbaResponse to JSON. + * Converts this ApplySchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteFetchAsDbaResponse + * 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 ExecuteMultiFetchAsDbaRequest. */ - interface IExecuteMultiFetchAsDbaRequest { - - /** ExecuteMultiFetchAsDbaRequest sql */ - sql?: (Uint8Array|null); - - /** ExecuteMultiFetchAsDbaRequest db_name */ - db_name?: (string|null); - - /** ExecuteMultiFetchAsDbaRequest max_rows */ - max_rows?: (number|Long|null); - - /** ExecuteMultiFetchAsDbaRequest disable_binlogs */ - disable_binlogs?: (boolean|null); - - /** ExecuteMultiFetchAsDbaRequest reload_schema */ - reload_schema?: (boolean|null); - - /** ExecuteMultiFetchAsDbaRequest disable_foreign_key_checks */ - disable_foreign_key_checks?: (boolean|null); + /** Properties of a LockTablesRequest. */ + interface ILockTablesRequest { } - /** Represents an ExecuteMultiFetchAsDbaRequest. */ - class ExecuteMultiFetchAsDbaRequest implements IExecuteMultiFetchAsDbaRequest { + /** Represents a LockTablesRequest. */ + class LockTablesRequest implements ILockTablesRequest { /** - * Constructs a new ExecuteMultiFetchAsDbaRequest. + * Constructs a new LockTablesRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IExecuteMultiFetchAsDbaRequest); - - /** ExecuteMultiFetchAsDbaRequest sql. */ - public sql: Uint8Array; - - /** ExecuteMultiFetchAsDbaRequest db_name. */ - public db_name: string; - - /** ExecuteMultiFetchAsDbaRequest max_rows. */ - public max_rows: (number|Long); - - /** ExecuteMultiFetchAsDbaRequest disable_binlogs. */ - public disable_binlogs: boolean; - - /** ExecuteMultiFetchAsDbaRequest reload_schema. */ - public reload_schema: boolean; - - /** ExecuteMultiFetchAsDbaRequest disable_foreign_key_checks. */ - public disable_foreign_key_checks: boolean; + constructor(properties?: tabletmanagerdata.ILockTablesRequest); /** - * Creates a new ExecuteMultiFetchAsDbaRequest instance using the specified properties. + * Creates a new LockTablesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteMultiFetchAsDbaRequest instance + * @returns LockTablesRequest instance */ - public static create(properties?: tabletmanagerdata.IExecuteMultiFetchAsDbaRequest): tabletmanagerdata.ExecuteMultiFetchAsDbaRequest; + public static create(properties?: tabletmanagerdata.ILockTablesRequest): tabletmanagerdata.LockTablesRequest; /** - * Encodes the specified ExecuteMultiFetchAsDbaRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteMultiFetchAsDbaRequest.verify|verify} messages. - * @param message ExecuteMultiFetchAsDbaRequest message or plain object to encode + * Encodes the specified LockTablesRequest message. Does not implicitly {@link tabletmanagerdata.LockTablesRequest.verify|verify} messages. + * @param message LockTablesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IExecuteMultiFetchAsDbaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ILockTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteMultiFetchAsDbaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteMultiFetchAsDbaRequest.verify|verify} messages. - * @param message ExecuteMultiFetchAsDbaRequest message or plain object to encode + * Encodes the specified LockTablesRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.LockTablesRequest.verify|verify} messages. + * @param message LockTablesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IExecuteMultiFetchAsDbaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ILockTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteMultiFetchAsDbaRequest message from the specified reader or buffer. + * Decodes a LockTablesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteMultiFetchAsDbaRequest + * @returns LockTablesRequest * @throws {Error} If the payload is 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.ExecuteMultiFetchAsDbaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.LockTablesRequest; /** - * Decodes an ExecuteMultiFetchAsDbaRequest message from the specified reader or buffer, length delimited. + * Decodes a LockTablesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteMultiFetchAsDbaRequest + * @returns LockTablesRequest * @throws {Error} If the 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.ExecuteMultiFetchAsDbaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.LockTablesRequest; /** - * Verifies an ExecuteMultiFetchAsDbaRequest message. + * Verifies a LockTablesRequest message. * @param message Plain 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. + * Creates a LockTablesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteMultiFetchAsDbaRequest + * @returns LockTablesRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteMultiFetchAsDbaRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.LockTablesRequest; /** - * Creates a plain object from an ExecuteMultiFetchAsDbaRequest message. Also converts values to other types if specified. - * @param message ExecuteMultiFetchAsDbaRequest + * Creates a plain object from a LockTablesRequest message. Also converts values to other types if specified. + * @param message LockTablesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ExecuteMultiFetchAsDbaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.LockTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteMultiFetchAsDbaRequest to JSON. + * Converts this LockTablesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteMultiFetchAsDbaRequest + * Gets the default type url for LockTablesRequest * @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); + /** Properties of a LockTablesResponse. */ + interface ILockTablesResponse { } - /** Represents an ExecuteMultiFetchAsDbaResponse. */ - class ExecuteMultiFetchAsDbaResponse implements IExecuteMultiFetchAsDbaResponse { + /** Represents a LockTablesResponse. */ + class LockTablesResponse implements ILockTablesResponse { /** - * Constructs a new ExecuteMultiFetchAsDbaResponse. + * Constructs a new LockTablesResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IExecuteMultiFetchAsDbaResponse); - - /** ExecuteMultiFetchAsDbaResponse results. */ - public results: query.IQueryResult[]; + constructor(properties?: tabletmanagerdata.ILockTablesResponse); /** - * Creates a new ExecuteMultiFetchAsDbaResponse instance using the specified properties. + * Creates a new LockTablesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteMultiFetchAsDbaResponse instance + * @returns LockTablesResponse instance */ - public static create(properties?: tabletmanagerdata.IExecuteMultiFetchAsDbaResponse): tabletmanagerdata.ExecuteMultiFetchAsDbaResponse; + public static create(properties?: tabletmanagerdata.ILockTablesResponse): tabletmanagerdata.LockTablesResponse; /** - * Encodes the specified ExecuteMultiFetchAsDbaResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteMultiFetchAsDbaResponse.verify|verify} messages. - * @param message ExecuteMultiFetchAsDbaResponse message or plain object to encode + * Encodes the specified LockTablesResponse message. Does not implicitly {@link tabletmanagerdata.LockTablesResponse.verify|verify} messages. + * @param message LockTablesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IExecuteMultiFetchAsDbaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ILockTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteMultiFetchAsDbaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteMultiFetchAsDbaResponse.verify|verify} messages. - * @param message ExecuteMultiFetchAsDbaResponse message or plain object to encode + * Encodes the specified LockTablesResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.LockTablesResponse.verify|verify} messages. + * @param message LockTablesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IExecuteMultiFetchAsDbaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ILockTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteMultiFetchAsDbaResponse message from the specified reader or buffer. + * Decodes a LockTablesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteMultiFetchAsDbaResponse + * @returns LockTablesResponse * @throws {Error} If the payload is 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.ExecuteMultiFetchAsDbaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.LockTablesResponse; /** - * Decodes an ExecuteMultiFetchAsDbaResponse message from the specified reader or buffer, length delimited. + * Decodes a LockTablesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteMultiFetchAsDbaResponse + * @returns LockTablesResponse * @throws {Error} If the 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.ExecuteMultiFetchAsDbaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.LockTablesResponse; /** - * Verifies an ExecuteMultiFetchAsDbaResponse message. + * Verifies a LockTablesResponse message. * @param message Plain 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. + * Creates a LockTablesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteMultiFetchAsDbaResponse + * @returns LockTablesResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteMultiFetchAsDbaResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.LockTablesResponse; /** - * Creates a plain object from an ExecuteMultiFetchAsDbaResponse message. Also converts values to other types if specified. - * @param message ExecuteMultiFetchAsDbaResponse + * Creates a plain object from a LockTablesResponse message. Also converts values to other types if specified. + * @param message LockTablesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ExecuteMultiFetchAsDbaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.LockTablesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteMultiFetchAsDbaResponse to JSON. + * Converts this LockTablesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteMultiFetchAsDbaResponse + * Gets the default type url for LockTablesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExecuteFetchAsAllPrivsRequest. */ - interface IExecuteFetchAsAllPrivsRequest { - - /** ExecuteFetchAsAllPrivsRequest query */ - query?: (Uint8Array|null); - - /** ExecuteFetchAsAllPrivsRequest db_name */ - db_name?: (string|null); - - /** ExecuteFetchAsAllPrivsRequest max_rows */ - max_rows?: (number|Long|null); - - /** ExecuteFetchAsAllPrivsRequest reload_schema */ - reload_schema?: (boolean|null); + /** Properties of an UnlockTablesRequest. */ + interface IUnlockTablesRequest { } - /** Represents an ExecuteFetchAsAllPrivsRequest. */ - class ExecuteFetchAsAllPrivsRequest implements IExecuteFetchAsAllPrivsRequest { + /** Represents an UnlockTablesRequest. */ + class UnlockTablesRequest implements IUnlockTablesRequest { /** - * Constructs a new ExecuteFetchAsAllPrivsRequest. + * Constructs a new UnlockTablesRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IExecuteFetchAsAllPrivsRequest); - - /** ExecuteFetchAsAllPrivsRequest query. */ - public query: Uint8Array; - - /** ExecuteFetchAsAllPrivsRequest db_name. */ - public db_name: string; - - /** ExecuteFetchAsAllPrivsRequest max_rows. */ - public max_rows: (number|Long); - - /** ExecuteFetchAsAllPrivsRequest reload_schema. */ - public reload_schema: boolean; + constructor(properties?: tabletmanagerdata.IUnlockTablesRequest); /** - * Creates a new ExecuteFetchAsAllPrivsRequest instance using the specified properties. + * Creates a new UnlockTablesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteFetchAsAllPrivsRequest instance + * @returns UnlockTablesRequest instance */ - public static create(properties?: tabletmanagerdata.IExecuteFetchAsAllPrivsRequest): tabletmanagerdata.ExecuteFetchAsAllPrivsRequest; + public static create(properties?: tabletmanagerdata.IUnlockTablesRequest): tabletmanagerdata.UnlockTablesRequest; /** - * Encodes the specified ExecuteFetchAsAllPrivsRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsRequest.verify|verify} messages. - * @param message ExecuteFetchAsAllPrivsRequest message or plain object to encode + * Encodes the specified UnlockTablesRequest message. Does not implicitly {@link tabletmanagerdata.UnlockTablesRequest.verify|verify} messages. + * @param message UnlockTablesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IExecuteFetchAsAllPrivsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IUnlockTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteFetchAsAllPrivsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsRequest.verify|verify} messages. - * @param message ExecuteFetchAsAllPrivsRequest message or plain object to encode + * Encodes the specified UnlockTablesRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UnlockTablesRequest.verify|verify} messages. + * @param message UnlockTablesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IExecuteFetchAsAllPrivsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IUnlockTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteFetchAsAllPrivsRequest message from the specified reader or buffer. + * Decodes an UnlockTablesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteFetchAsAllPrivsRequest + * @returns UnlockTablesRequest * @throws {Error} If the payload is 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.ExecuteFetchAsAllPrivsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.UnlockTablesRequest; /** - * Decodes an ExecuteFetchAsAllPrivsRequest message from the specified reader or buffer, length delimited. + * Decodes an UnlockTablesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsAllPrivsRequest + * @returns UnlockTablesRequest * @throws {Error} If the 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.ExecuteFetchAsAllPrivsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.UnlockTablesRequest; /** - * Verifies an ExecuteFetchAsAllPrivsRequest message. + * Verifies an UnlockTablesRequest message. * @param message Plain 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 ExecuteFetchAsAllPrivsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UnlockTablesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteFetchAsAllPrivsRequest + * @returns UnlockTablesRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteFetchAsAllPrivsRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UnlockTablesRequest; /** - * Creates a plain object from an ExecuteFetchAsAllPrivsRequest message. Also converts values to other types if specified. - * @param message ExecuteFetchAsAllPrivsRequest + * Creates a plain object from an UnlockTablesRequest message. Also converts values to other types if specified. + * @param message UnlockTablesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ExecuteFetchAsAllPrivsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.UnlockTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteFetchAsAllPrivsRequest to JSON. + * Converts this UnlockTablesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteFetchAsAllPrivsRequest + * Gets the default type url for UnlockTablesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExecuteFetchAsAllPrivsResponse. */ - interface IExecuteFetchAsAllPrivsResponse { - - /** ExecuteFetchAsAllPrivsResponse result */ - result?: (query.IQueryResult|null); + /** Properties of an UnlockTablesResponse. */ + interface IUnlockTablesResponse { } - /** Represents an ExecuteFetchAsAllPrivsResponse. */ - class ExecuteFetchAsAllPrivsResponse implements IExecuteFetchAsAllPrivsResponse { + /** Represents an UnlockTablesResponse. */ + class UnlockTablesResponse implements IUnlockTablesResponse { /** - * Constructs a new ExecuteFetchAsAllPrivsResponse. + * Constructs a new UnlockTablesResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IExecuteFetchAsAllPrivsResponse); - - /** ExecuteFetchAsAllPrivsResponse result. */ - public result?: (query.IQueryResult|null); + constructor(properties?: tabletmanagerdata.IUnlockTablesResponse); /** - * Creates a new ExecuteFetchAsAllPrivsResponse instance using the specified properties. + * Creates a new UnlockTablesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteFetchAsAllPrivsResponse instance + * @returns UnlockTablesResponse instance */ - public static create(properties?: tabletmanagerdata.IExecuteFetchAsAllPrivsResponse): tabletmanagerdata.ExecuteFetchAsAllPrivsResponse; + public static create(properties?: tabletmanagerdata.IUnlockTablesResponse): tabletmanagerdata.UnlockTablesResponse; /** - * Encodes the specified ExecuteFetchAsAllPrivsResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsResponse.verify|verify} messages. - * @param message ExecuteFetchAsAllPrivsResponse message or plain object to encode + * Encodes the specified UnlockTablesResponse message. Does not implicitly {@link tabletmanagerdata.UnlockTablesResponse.verify|verify} messages. + * @param message UnlockTablesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IExecuteFetchAsAllPrivsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IUnlockTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteFetchAsAllPrivsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsResponse.verify|verify} messages. - * @param message ExecuteFetchAsAllPrivsResponse message or plain object to encode + * Encodes the specified UnlockTablesResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UnlockTablesResponse.verify|verify} messages. + * @param message UnlockTablesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IExecuteFetchAsAllPrivsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IUnlockTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteFetchAsAllPrivsResponse message from the specified reader or buffer. + * Decodes an UnlockTablesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteFetchAsAllPrivsResponse + * @returns UnlockTablesResponse * @throws {Error} If the payload is 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.ExecuteFetchAsAllPrivsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.UnlockTablesResponse; /** - * Decodes an ExecuteFetchAsAllPrivsResponse message from the specified reader or buffer, length delimited. + * Decodes an UnlockTablesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsAllPrivsResponse + * @returns UnlockTablesResponse * @throws {Error} If the 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.ExecuteFetchAsAllPrivsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.UnlockTablesResponse; /** - * Verifies an ExecuteFetchAsAllPrivsResponse message. + * Verifies an UnlockTablesResponse message. * @param message Plain 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 ExecuteFetchAsAllPrivsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UnlockTablesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteFetchAsAllPrivsResponse + * @returns UnlockTablesResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteFetchAsAllPrivsResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UnlockTablesResponse; /** - * Creates a plain object from an ExecuteFetchAsAllPrivsResponse message. Also converts values to other types if specified. - * @param message ExecuteFetchAsAllPrivsResponse + * Creates a plain object from an UnlockTablesResponse message. Also converts values to other types if specified. + * @param message UnlockTablesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ExecuteFetchAsAllPrivsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.UnlockTablesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteFetchAsAllPrivsResponse to JSON. + * Converts this UnlockTablesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteFetchAsAllPrivsResponse + * Gets the default type url for UnlockTablesResponse * @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 { + /** Properties of an ExecuteQueryRequest. */ + interface IExecuteQueryRequest { - /** ExecuteFetchAsAppRequest query */ + /** ExecuteQueryRequest query */ query?: (Uint8Array|null); - /** ExecuteFetchAsAppRequest max_rows */ + /** ExecuteQueryRequest db_name */ + db_name?: (string|null); + + /** ExecuteQueryRequest max_rows */ max_rows?: (number|Long|null); + + /** ExecuteQueryRequest caller_id */ + caller_id?: (vtrpc.ICallerID|null); } - /** Represents an ExecuteFetchAsAppRequest. */ - class ExecuteFetchAsAppRequest implements IExecuteFetchAsAppRequest { + /** Represents an ExecuteQueryRequest. */ + class ExecuteQueryRequest implements IExecuteQueryRequest { /** - * Constructs a new ExecuteFetchAsAppRequest. + * Constructs a new ExecuteQueryRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IExecuteFetchAsAppRequest); + constructor(properties?: tabletmanagerdata.IExecuteQueryRequest); - /** ExecuteFetchAsAppRequest query. */ + /** ExecuteQueryRequest query. */ public query: Uint8Array; - /** ExecuteFetchAsAppRequest max_rows. */ + /** ExecuteQueryRequest db_name. */ + public db_name: string; + + /** ExecuteQueryRequest max_rows. */ public max_rows: (number|Long); + /** ExecuteQueryRequest caller_id. */ + public caller_id?: (vtrpc.ICallerID|null); + /** - * Creates a new ExecuteFetchAsAppRequest instance using the specified properties. + * Creates a new ExecuteQueryRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteFetchAsAppRequest instance + * @returns ExecuteQueryRequest instance */ - public static create(properties?: tabletmanagerdata.IExecuteFetchAsAppRequest): tabletmanagerdata.ExecuteFetchAsAppRequest; + public static create(properties?: tabletmanagerdata.IExecuteQueryRequest): tabletmanagerdata.ExecuteQueryRequest; /** - * Encodes the specified ExecuteFetchAsAppRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAppRequest.verify|verify} messages. - * @param message ExecuteFetchAsAppRequest message or plain object to encode + * Encodes the specified ExecuteQueryRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteQueryRequest.verify|verify} messages. + * @param message ExecuteQueryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IExecuteQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteFetchAsAppRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAppRequest.verify|verify} messages. - * @param message ExecuteFetchAsAppRequest message or plain object to encode + * Encodes the specified ExecuteQueryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteQueryRequest.verify|verify} messages. + * @param message ExecuteQueryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IExecuteQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer. + * Decodes an ExecuteQueryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteFetchAsAppRequest + * @returns ExecuteQueryRequest * @throws {Error} If the payload is 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.ExecuteFetchAsAppRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ExecuteQueryRequest; /** - * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteQueryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsAppRequest + * @returns ExecuteQueryRequest * @throws {Error} If the 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.ExecuteFetchAsAppRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ExecuteQueryRequest; /** - * Verifies an ExecuteFetchAsAppRequest message. + * Verifies an ExecuteQueryRequest message. * @param message Plain 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. + * Creates an ExecuteQueryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteFetchAsAppRequest + * @returns ExecuteQueryRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteFetchAsAppRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteQueryRequest; /** - * Creates a plain object from an ExecuteFetchAsAppRequest message. Also converts values to other types if specified. - * @param message ExecuteFetchAsAppRequest + * Creates a plain object from an ExecuteQueryRequest message. Also converts values to other types if specified. + * @param message ExecuteQueryRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ExecuteFetchAsAppRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ExecuteQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteFetchAsAppRequest to JSON. + * Converts this ExecuteQueryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteFetchAsAppRequest + * Gets the default type url for ExecuteQueryRequest * @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 { + /** Properties of an ExecuteQueryResponse. */ + interface IExecuteQueryResponse { - /** ExecuteFetchAsAppResponse result */ + /** ExecuteQueryResponse result */ result?: (query.IQueryResult|null); } - /** Represents an ExecuteFetchAsAppResponse. */ - class ExecuteFetchAsAppResponse implements IExecuteFetchAsAppResponse { + /** Represents an ExecuteQueryResponse. */ + class ExecuteQueryResponse implements IExecuteQueryResponse { /** - * Constructs a new ExecuteFetchAsAppResponse. + * Constructs a new ExecuteQueryResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IExecuteFetchAsAppResponse); + constructor(properties?: tabletmanagerdata.IExecuteQueryResponse); - /** ExecuteFetchAsAppResponse result. */ + /** ExecuteQueryResponse result. */ public result?: (query.IQueryResult|null); /** - * Creates a new ExecuteFetchAsAppResponse instance using the specified properties. + * Creates a new ExecuteQueryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteFetchAsAppResponse instance + * @returns ExecuteQueryResponse instance */ - public static create(properties?: tabletmanagerdata.IExecuteFetchAsAppResponse): tabletmanagerdata.ExecuteFetchAsAppResponse; + public static create(properties?: tabletmanagerdata.IExecuteQueryResponse): tabletmanagerdata.ExecuteQueryResponse; /** - * Encodes the specified ExecuteFetchAsAppResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAppResponse.verify|verify} messages. - * @param message ExecuteFetchAsAppResponse message or plain object to encode + * Encodes the specified ExecuteQueryResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteQueryResponse.verify|verify} messages. + * @param message ExecuteQueryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IExecuteQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteFetchAsAppResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAppResponse.verify|verify} messages. - * @param message ExecuteFetchAsAppResponse message or plain object to encode + * Encodes the specified ExecuteQueryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteQueryResponse.verify|verify} messages. + * @param message ExecuteQueryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IExecuteQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer. + * Decodes an ExecuteQueryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteFetchAsAppResponse + * @returns ExecuteQueryResponse * @throws {Error} If the payload is 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.ExecuteFetchAsAppResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ExecuteQueryResponse; /** - * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteQueryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsAppResponse + * @returns ExecuteQueryResponse * @throws {Error} If the 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.ExecuteFetchAsAppResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ExecuteQueryResponse; /** - * Verifies an ExecuteFetchAsAppResponse message. + * Verifies an ExecuteQueryResponse message. * @param message Plain 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. + * Creates an ExecuteQueryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteFetchAsAppResponse + * @returns ExecuteQueryResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteFetchAsAppResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteQueryResponse; /** - * Creates a plain object from an ExecuteFetchAsAppResponse message. Also converts values to other types if specified. - * @param message ExecuteFetchAsAppResponse + * Creates a plain object from an ExecuteQueryResponse message. Also converts values to other types if specified. + * @param message ExecuteQueryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ExecuteFetchAsAppResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ExecuteQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteFetchAsAppResponse to JSON. + * Converts this ExecuteQueryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteFetchAsAppResponse + * Gets the default type url for ExecuteQueryResponse * @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 { + /** Properties of an ExecuteFetchAsDbaRequest. */ + interface IExecuteFetchAsDbaRequest { - /** GetUnresolvedTransactionsRequest abandon_age */ - abandon_age?: (number|Long|null); + /** ExecuteFetchAsDbaRequest query */ + query?: (Uint8Array|null); + + /** ExecuteFetchAsDbaRequest db_name */ + db_name?: (string|null); + + /** ExecuteFetchAsDbaRequest max_rows */ + max_rows?: (number|Long|null); + + /** ExecuteFetchAsDbaRequest disable_binlogs */ + disable_binlogs?: (boolean|null); + + /** ExecuteFetchAsDbaRequest reload_schema */ + reload_schema?: (boolean|null); + + /** ExecuteFetchAsDbaRequest disable_foreign_key_checks */ + disable_foreign_key_checks?: (boolean|null); } - /** Represents a GetUnresolvedTransactionsRequest. */ - class GetUnresolvedTransactionsRequest implements IGetUnresolvedTransactionsRequest { + /** Represents an ExecuteFetchAsDbaRequest. */ + class ExecuteFetchAsDbaRequest implements IExecuteFetchAsDbaRequest { /** - * Constructs a new GetUnresolvedTransactionsRequest. + * Constructs a new ExecuteFetchAsDbaRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetUnresolvedTransactionsRequest); + constructor(properties?: tabletmanagerdata.IExecuteFetchAsDbaRequest); - /** GetUnresolvedTransactionsRequest abandon_age. */ - public abandon_age: (number|Long); + /** ExecuteFetchAsDbaRequest query. */ + public query: Uint8Array; + + /** ExecuteFetchAsDbaRequest db_name. */ + public db_name: string; + + /** ExecuteFetchAsDbaRequest max_rows. */ + public max_rows: (number|Long); + + /** ExecuteFetchAsDbaRequest disable_binlogs. */ + public disable_binlogs: boolean; + + /** ExecuteFetchAsDbaRequest reload_schema. */ + public reload_schema: boolean; + + /** ExecuteFetchAsDbaRequest disable_foreign_key_checks. */ + public disable_foreign_key_checks: boolean; /** - * Creates a new GetUnresolvedTransactionsRequest instance using the specified properties. + * Creates a new ExecuteFetchAsDbaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetUnresolvedTransactionsRequest instance + * @returns ExecuteFetchAsDbaRequest instance */ - public static create(properties?: tabletmanagerdata.IGetUnresolvedTransactionsRequest): tabletmanagerdata.GetUnresolvedTransactionsRequest; + public static create(properties?: tabletmanagerdata.IExecuteFetchAsDbaRequest): tabletmanagerdata.ExecuteFetchAsDbaRequest; /** - * Encodes the specified GetUnresolvedTransactionsRequest message. Does not implicitly {@link tabletmanagerdata.GetUnresolvedTransactionsRequest.verify|verify} messages. - * @param message GetUnresolvedTransactionsRequest message or plain object to encode + * Encodes the specified ExecuteFetchAsDbaRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IExecuteFetchAsDbaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetUnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetUnresolvedTransactionsRequest.verify|verify} messages. - * @param message GetUnresolvedTransactionsRequest message or plain object to encode + * Encodes the specified ExecuteFetchAsDbaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IExecuteFetchAsDbaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer. + * 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 GetUnresolvedTransactionsRequest + * @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): tabletmanagerdata.GetUnresolvedTransactionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ExecuteFetchAsDbaRequest; /** - * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsDbaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetUnresolvedTransactionsRequest + * @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)): tabletmanagerdata.GetUnresolvedTransactionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ExecuteFetchAsDbaRequest; /** - * Verifies a GetUnresolvedTransactionsRequest message. + * 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 a GetUnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsDbaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetUnresolvedTransactionsRequest + * @returns ExecuteFetchAsDbaRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetUnresolvedTransactionsRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteFetchAsDbaRequest; /** - * Creates a plain object from a GetUnresolvedTransactionsRequest message. Also converts values to other types if specified. - * @param message GetUnresolvedTransactionsRequest + * 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: tabletmanagerdata.GetUnresolvedTransactionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ExecuteFetchAsDbaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetUnresolvedTransactionsRequest to JSON. + * Converts this ExecuteFetchAsDbaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetUnresolvedTransactionsRequest + * 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 a GetUnresolvedTransactionsResponse. */ - interface IGetUnresolvedTransactionsResponse { + /** Properties of an ExecuteFetchAsDbaResponse. */ + interface IExecuteFetchAsDbaResponse { - /** GetUnresolvedTransactionsResponse transactions */ - transactions?: (query.ITransactionMetadata[]|null); + /** ExecuteFetchAsDbaResponse result */ + result?: (query.IQueryResult|null); } - /** Represents a GetUnresolvedTransactionsResponse. */ - class GetUnresolvedTransactionsResponse implements IGetUnresolvedTransactionsResponse { + /** Represents an ExecuteFetchAsDbaResponse. */ + class ExecuteFetchAsDbaResponse implements IExecuteFetchAsDbaResponse { /** - * Constructs a new GetUnresolvedTransactionsResponse. + * Constructs a new ExecuteFetchAsDbaResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetUnresolvedTransactionsResponse); + constructor(properties?: tabletmanagerdata.IExecuteFetchAsDbaResponse); - /** GetUnresolvedTransactionsResponse transactions. */ - public transactions: query.ITransactionMetadata[]; + /** ExecuteFetchAsDbaResponse result. */ + public result?: (query.IQueryResult|null); /** - * Creates a new GetUnresolvedTransactionsResponse instance using the specified properties. + * Creates a new ExecuteFetchAsDbaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetUnresolvedTransactionsResponse instance + * @returns ExecuteFetchAsDbaResponse instance */ - public static create(properties?: tabletmanagerdata.IGetUnresolvedTransactionsResponse): tabletmanagerdata.GetUnresolvedTransactionsResponse; + public static create(properties?: tabletmanagerdata.IExecuteFetchAsDbaResponse): tabletmanagerdata.ExecuteFetchAsDbaResponse; /** - * Encodes the specified GetUnresolvedTransactionsResponse message. Does not implicitly {@link tabletmanagerdata.GetUnresolvedTransactionsResponse.verify|verify} messages. - * @param message GetUnresolvedTransactionsResponse message or plain object to encode + * Encodes the specified ExecuteFetchAsDbaResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IGetUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IExecuteFetchAsDbaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetUnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetUnresolvedTransactionsResponse.verify|verify} messages. - * @param message GetUnresolvedTransactionsResponse message or plain object to encode + * Encodes the specified ExecuteFetchAsDbaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IGetUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IExecuteFetchAsDbaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer. + * 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 GetUnresolvedTransactionsResponse + * @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): tabletmanagerdata.GetUnresolvedTransactionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ExecuteFetchAsDbaResponse; /** - * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsDbaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetUnresolvedTransactionsResponse + * @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)): tabletmanagerdata.GetUnresolvedTransactionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ExecuteFetchAsDbaResponse; /** - * Verifies a GetUnresolvedTransactionsResponse message. + * 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 a GetUnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsDbaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetUnresolvedTransactionsResponse + * @returns ExecuteFetchAsDbaResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetUnresolvedTransactionsResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteFetchAsDbaResponse; /** - * Creates a plain object from a GetUnresolvedTransactionsResponse message. Also converts values to other types if specified. - * @param message GetUnresolvedTransactionsResponse + * 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: tabletmanagerdata.GetUnresolvedTransactionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ExecuteFetchAsDbaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetUnresolvedTransactionsResponse to JSON. + * Converts this ExecuteFetchAsDbaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetUnresolvedTransactionsResponse + * 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 a ReadTransactionRequest. */ - interface IReadTransactionRequest { + /** Properties of an ExecuteMultiFetchAsDbaRequest. */ + interface IExecuteMultiFetchAsDbaRequest { - /** ReadTransactionRequest dtid */ - dtid?: (string|null); + /** ExecuteMultiFetchAsDbaRequest sql */ + sql?: (Uint8Array|null); + + /** ExecuteMultiFetchAsDbaRequest db_name */ + db_name?: (string|null); + + /** ExecuteMultiFetchAsDbaRequest max_rows */ + max_rows?: (number|Long|null); + + /** ExecuteMultiFetchAsDbaRequest disable_binlogs */ + disable_binlogs?: (boolean|null); + + /** ExecuteMultiFetchAsDbaRequest reload_schema */ + reload_schema?: (boolean|null); + + /** ExecuteMultiFetchAsDbaRequest disable_foreign_key_checks */ + disable_foreign_key_checks?: (boolean|null); } - /** Represents a ReadTransactionRequest. */ - class ReadTransactionRequest implements IReadTransactionRequest { + /** Represents an ExecuteMultiFetchAsDbaRequest. */ + class ExecuteMultiFetchAsDbaRequest implements IExecuteMultiFetchAsDbaRequest { /** - * Constructs a new ReadTransactionRequest. + * Constructs a new ExecuteMultiFetchAsDbaRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReadTransactionRequest); + constructor(properties?: tabletmanagerdata.IExecuteMultiFetchAsDbaRequest); - /** ReadTransactionRequest dtid. */ - public dtid: string; + /** ExecuteMultiFetchAsDbaRequest sql. */ + public sql: Uint8Array; + + /** ExecuteMultiFetchAsDbaRequest db_name. */ + public db_name: string; + + /** ExecuteMultiFetchAsDbaRequest max_rows. */ + public max_rows: (number|Long); + + /** ExecuteMultiFetchAsDbaRequest disable_binlogs. */ + public disable_binlogs: boolean; + + /** ExecuteMultiFetchAsDbaRequest reload_schema. */ + public reload_schema: boolean; + + /** ExecuteMultiFetchAsDbaRequest disable_foreign_key_checks. */ + public disable_foreign_key_checks: boolean; /** - * Creates a new ReadTransactionRequest instance using the specified properties. + * Creates a new ExecuteMultiFetchAsDbaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadTransactionRequest instance + * @returns ExecuteMultiFetchAsDbaRequest instance */ - public static create(properties?: tabletmanagerdata.IReadTransactionRequest): tabletmanagerdata.ReadTransactionRequest; + public static create(properties?: tabletmanagerdata.IExecuteMultiFetchAsDbaRequest): tabletmanagerdata.ExecuteMultiFetchAsDbaRequest; /** - * Encodes the specified ReadTransactionRequest message. Does not implicitly {@link tabletmanagerdata.ReadTransactionRequest.verify|verify} messages. - * @param message ReadTransactionRequest message or plain object to encode + * Encodes the specified ExecuteMultiFetchAsDbaRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IReadTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IExecuteMultiFetchAsDbaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadTransactionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadTransactionRequest.verify|verify} messages. - * @param message ReadTransactionRequest message or plain object to encode + * Encodes the specified ExecuteMultiFetchAsDbaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IReadTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IExecuteMultiFetchAsDbaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadTransactionRequest message from the specified reader or buffer. + * 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 ReadTransactionRequest + * @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): tabletmanagerdata.ReadTransactionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ExecuteMultiFetchAsDbaRequest; /** - * Decodes a ReadTransactionRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteMultiFetchAsDbaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadTransactionRequest + * @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)): tabletmanagerdata.ReadTransactionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ExecuteMultiFetchAsDbaRequest; /** - * Verifies a ReadTransactionRequest message. + * 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 a ReadTransactionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteMultiFetchAsDbaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadTransactionRequest + * @returns ExecuteMultiFetchAsDbaRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadTransactionRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteMultiFetchAsDbaRequest; /** - * Creates a plain object from a ReadTransactionRequest message. Also converts values to other types if specified. - * @param message ReadTransactionRequest + * 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: tabletmanagerdata.ReadTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ExecuteMultiFetchAsDbaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadTransactionRequest to JSON. + * Converts this ExecuteMultiFetchAsDbaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadTransactionRequest + * 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 a ReadTransactionResponse. */ - interface IReadTransactionResponse { + /** Properties of an ExecuteMultiFetchAsDbaResponse. */ + interface IExecuteMultiFetchAsDbaResponse { - /** ReadTransactionResponse transaction */ - transaction?: (query.ITransactionMetadata|null); + /** ExecuteMultiFetchAsDbaResponse results */ + results?: (query.IQueryResult[]|null); } - /** Represents a ReadTransactionResponse. */ - class ReadTransactionResponse implements IReadTransactionResponse { + /** Represents an ExecuteMultiFetchAsDbaResponse. */ + class ExecuteMultiFetchAsDbaResponse implements IExecuteMultiFetchAsDbaResponse { /** - * Constructs a new ReadTransactionResponse. + * Constructs a new ExecuteMultiFetchAsDbaResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReadTransactionResponse); + constructor(properties?: tabletmanagerdata.IExecuteMultiFetchAsDbaResponse); - /** ReadTransactionResponse transaction. */ - public transaction?: (query.ITransactionMetadata|null); + /** ExecuteMultiFetchAsDbaResponse results. */ + public results: query.IQueryResult[]; /** - * Creates a new ReadTransactionResponse instance using the specified properties. + * Creates a new ExecuteMultiFetchAsDbaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReadTransactionResponse instance + * @returns ExecuteMultiFetchAsDbaResponse instance */ - public static create(properties?: tabletmanagerdata.IReadTransactionResponse): tabletmanagerdata.ReadTransactionResponse; + public static create(properties?: tabletmanagerdata.IExecuteMultiFetchAsDbaResponse): tabletmanagerdata.ExecuteMultiFetchAsDbaResponse; /** - * Encodes the specified ReadTransactionResponse message. Does not implicitly {@link tabletmanagerdata.ReadTransactionResponse.verify|verify} messages. - * @param message ReadTransactionResponse message or plain object to encode + * Encodes the specified ExecuteMultiFetchAsDbaResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IReadTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IExecuteMultiFetchAsDbaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadTransactionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadTransactionResponse.verify|verify} messages. - * @param message ReadTransactionResponse message or plain object to encode + * Encodes the specified ExecuteMultiFetchAsDbaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IReadTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IExecuteMultiFetchAsDbaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadTransactionResponse message from the specified reader or buffer. + * 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 ReadTransactionResponse + * @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): tabletmanagerdata.ReadTransactionResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ExecuteMultiFetchAsDbaResponse; /** - * Decodes a ReadTransactionResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteMultiFetchAsDbaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadTransactionResponse + * @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)): tabletmanagerdata.ReadTransactionResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ExecuteMultiFetchAsDbaResponse; /** - * Verifies a ReadTransactionResponse message. + * 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 a ReadTransactionResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteMultiFetchAsDbaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadTransactionResponse + * @returns ExecuteMultiFetchAsDbaResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadTransactionResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteMultiFetchAsDbaResponse; /** - * Creates a plain object from a ReadTransactionResponse message. Also converts values to other types if specified. - * @param message ReadTransactionResponse + * 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: tabletmanagerdata.ReadTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ExecuteMultiFetchAsDbaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadTransactionResponse to JSON. + * Converts this ExecuteMultiFetchAsDbaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadTransactionResponse + * 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 GetTransactionInfoRequest. */ - interface IGetTransactionInfoRequest { + /** Properties of an ExecuteFetchAsAllPrivsRequest. */ + interface IExecuteFetchAsAllPrivsRequest { - /** GetTransactionInfoRequest dtid */ - dtid?: (string|null); + /** ExecuteFetchAsAllPrivsRequest query */ + query?: (Uint8Array|null); + + /** ExecuteFetchAsAllPrivsRequest db_name */ + db_name?: (string|null); + + /** ExecuteFetchAsAllPrivsRequest max_rows */ + max_rows?: (number|Long|null); + + /** ExecuteFetchAsAllPrivsRequest reload_schema */ + reload_schema?: (boolean|null); } - /** Represents a GetTransactionInfoRequest. */ - class GetTransactionInfoRequest implements IGetTransactionInfoRequest { + /** Represents an ExecuteFetchAsAllPrivsRequest. */ + class ExecuteFetchAsAllPrivsRequest implements IExecuteFetchAsAllPrivsRequest { /** - * Constructs a new GetTransactionInfoRequest. + * Constructs a new ExecuteFetchAsAllPrivsRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetTransactionInfoRequest); + constructor(properties?: tabletmanagerdata.IExecuteFetchAsAllPrivsRequest); - /** GetTransactionInfoRequest dtid. */ - public dtid: string; + /** ExecuteFetchAsAllPrivsRequest query. */ + public query: Uint8Array; + + /** ExecuteFetchAsAllPrivsRequest db_name. */ + public db_name: string; + + /** ExecuteFetchAsAllPrivsRequest max_rows. */ + public max_rows: (number|Long); + + /** ExecuteFetchAsAllPrivsRequest reload_schema. */ + public reload_schema: boolean; /** - * Creates a new GetTransactionInfoRequest instance using the specified properties. + * Creates a new ExecuteFetchAsAllPrivsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTransactionInfoRequest instance + * @returns ExecuteFetchAsAllPrivsRequest instance */ - public static create(properties?: tabletmanagerdata.IGetTransactionInfoRequest): tabletmanagerdata.GetTransactionInfoRequest; + public static create(properties?: tabletmanagerdata.IExecuteFetchAsAllPrivsRequest): tabletmanagerdata.ExecuteFetchAsAllPrivsRequest; /** - * Encodes the specified GetTransactionInfoRequest message. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoRequest.verify|verify} messages. - * @param message GetTransactionInfoRequest message or plain object to encode + * Encodes the specified ExecuteFetchAsAllPrivsRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsRequest.verify|verify} messages. + * @param message ExecuteFetchAsAllPrivsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IGetTransactionInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IExecuteFetchAsAllPrivsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTransactionInfoRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoRequest.verify|verify} messages. - * @param message GetTransactionInfoRequest message or plain object to encode + * Encodes the specified ExecuteFetchAsAllPrivsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsRequest.verify|verify} messages. + * @param message ExecuteFetchAsAllPrivsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IGetTransactionInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IExecuteFetchAsAllPrivsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTransactionInfoRequest message from the specified reader or buffer. + * Decodes an ExecuteFetchAsAllPrivsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTransactionInfoRequest + * @returns ExecuteFetchAsAllPrivsRequest * @throws {Error} If the payload is 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.GetTransactionInfoRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ExecuteFetchAsAllPrivsRequest; /** - * Decodes a GetTransactionInfoRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsAllPrivsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTransactionInfoRequest + * @returns ExecuteFetchAsAllPrivsRequest * @throws {Error} If the 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.GetTransactionInfoRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ExecuteFetchAsAllPrivsRequest; /** - * Verifies a GetTransactionInfoRequest message. + * Verifies an ExecuteFetchAsAllPrivsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetTransactionInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsAllPrivsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTransactionInfoRequest + * @returns ExecuteFetchAsAllPrivsRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetTransactionInfoRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteFetchAsAllPrivsRequest; /** - * Creates a plain object from a GetTransactionInfoRequest message. Also converts values to other types if specified. - * @param message GetTransactionInfoRequest + * Creates a plain object from an ExecuteFetchAsAllPrivsRequest message. Also converts values to other types if specified. + * @param message ExecuteFetchAsAllPrivsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.GetTransactionInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ExecuteFetchAsAllPrivsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTransactionInfoRequest to JSON. + * Converts this ExecuteFetchAsAllPrivsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTransactionInfoRequest + * Gets the default type url for ExecuteFetchAsAllPrivsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTransactionInfoResponse. */ - interface IGetTransactionInfoResponse { - - /** GetTransactionInfoResponse state */ - state?: (string|null); - - /** GetTransactionInfoResponse message */ - message?: (string|null); - - /** GetTransactionInfoResponse time_created */ - time_created?: (number|Long|null); + /** Properties of an ExecuteFetchAsAllPrivsResponse. */ + interface IExecuteFetchAsAllPrivsResponse { - /** GetTransactionInfoResponse statements */ - statements?: (string[]|null); + /** ExecuteFetchAsAllPrivsResponse result */ + result?: (query.IQueryResult|null); } - /** Represents a GetTransactionInfoResponse. */ - class GetTransactionInfoResponse implements IGetTransactionInfoResponse { + /** Represents an ExecuteFetchAsAllPrivsResponse. */ + class ExecuteFetchAsAllPrivsResponse implements IExecuteFetchAsAllPrivsResponse { /** - * Constructs a new GetTransactionInfoResponse. + * Constructs a new ExecuteFetchAsAllPrivsResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetTransactionInfoResponse); - - /** GetTransactionInfoResponse state. */ - public state: string; - - /** GetTransactionInfoResponse message. */ - public message: string; - - /** GetTransactionInfoResponse time_created. */ - public time_created: (number|Long); + constructor(properties?: tabletmanagerdata.IExecuteFetchAsAllPrivsResponse); - /** GetTransactionInfoResponse statements. */ - public statements: string[]; + /** ExecuteFetchAsAllPrivsResponse result. */ + public result?: (query.IQueryResult|null); /** - * Creates a new GetTransactionInfoResponse instance using the specified properties. + * Creates a new ExecuteFetchAsAllPrivsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTransactionInfoResponse instance + * @returns ExecuteFetchAsAllPrivsResponse instance */ - public static create(properties?: tabletmanagerdata.IGetTransactionInfoResponse): tabletmanagerdata.GetTransactionInfoResponse; + public static create(properties?: tabletmanagerdata.IExecuteFetchAsAllPrivsResponse): tabletmanagerdata.ExecuteFetchAsAllPrivsResponse; /** - * Encodes the specified GetTransactionInfoResponse message. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoResponse.verify|verify} messages. - * @param message GetTransactionInfoResponse message or plain object to encode + * Encodes the specified ExecuteFetchAsAllPrivsResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsResponse.verify|verify} messages. + * @param message ExecuteFetchAsAllPrivsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IGetTransactionInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IExecuteFetchAsAllPrivsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTransactionInfoResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoResponse.verify|verify} messages. - * @param message GetTransactionInfoResponse message or plain object to encode + * Encodes the specified ExecuteFetchAsAllPrivsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsResponse.verify|verify} messages. + * @param message ExecuteFetchAsAllPrivsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IGetTransactionInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IExecuteFetchAsAllPrivsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTransactionInfoResponse message from the specified reader or buffer. + * Decodes an ExecuteFetchAsAllPrivsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTransactionInfoResponse + * @returns ExecuteFetchAsAllPrivsResponse * @throws {Error} If the payload is 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.GetTransactionInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ExecuteFetchAsAllPrivsResponse; /** - * Decodes a GetTransactionInfoResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsAllPrivsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTransactionInfoResponse + * @returns ExecuteFetchAsAllPrivsResponse * @throws {Error} If the 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.GetTransactionInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ExecuteFetchAsAllPrivsResponse; /** - * Verifies a GetTransactionInfoResponse message. + * Verifies an ExecuteFetchAsAllPrivsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetTransactionInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsAllPrivsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTransactionInfoResponse + * @returns ExecuteFetchAsAllPrivsResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetTransactionInfoResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteFetchAsAllPrivsResponse; /** - * Creates a plain object from a GetTransactionInfoResponse message. Also converts values to other types if specified. - * @param message GetTransactionInfoResponse + * Creates a plain object from an ExecuteFetchAsAllPrivsResponse message. Also converts values to other types if specified. + * @param message ExecuteFetchAsAllPrivsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.GetTransactionInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ExecuteFetchAsAllPrivsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTransactionInfoResponse to JSON. + * Converts this ExecuteFetchAsAllPrivsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTransactionInfoResponse + * Gets the default type url for ExecuteFetchAsAllPrivsResponse * @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 { + /** Properties of an ExecuteFetchAsAppRequest. */ + interface IExecuteFetchAsAppRequest { - /** ConcludeTransactionRequest dtid */ - dtid?: (string|null); + /** ExecuteFetchAsAppRequest query */ + query?: (Uint8Array|null); - /** ConcludeTransactionRequest mm */ - mm?: (boolean|null); + /** ExecuteFetchAsAppRequest max_rows */ + max_rows?: (number|Long|null); } - /** Represents a ConcludeTransactionRequest. */ - class ConcludeTransactionRequest implements IConcludeTransactionRequest { + /** Represents an ExecuteFetchAsAppRequest. */ + class ExecuteFetchAsAppRequest implements IExecuteFetchAsAppRequest { /** - * Constructs a new ConcludeTransactionRequest. + * Constructs a new ExecuteFetchAsAppRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IConcludeTransactionRequest); + constructor(properties?: tabletmanagerdata.IExecuteFetchAsAppRequest); - /** ConcludeTransactionRequest dtid. */ - public dtid: string; + /** ExecuteFetchAsAppRequest query. */ + public query: Uint8Array; - /** ConcludeTransactionRequest mm. */ - public mm: boolean; + /** ExecuteFetchAsAppRequest max_rows. */ + public max_rows: (number|Long); /** - * Creates a new ConcludeTransactionRequest instance using the specified properties. + * Creates a new ExecuteFetchAsAppRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ConcludeTransactionRequest instance + * @returns ExecuteFetchAsAppRequest instance */ - public static create(properties?: tabletmanagerdata.IConcludeTransactionRequest): tabletmanagerdata.ConcludeTransactionRequest; + public static create(properties?: tabletmanagerdata.IExecuteFetchAsAppRequest): tabletmanagerdata.ExecuteFetchAsAppRequest; /** - * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link tabletmanagerdata.ConcludeTransactionRequest.verify|verify} messages. - * @param message ConcludeTransactionRequest message or plain object to encode + * Encodes the specified ExecuteFetchAsAppRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ConcludeTransactionRequest.verify|verify} messages. - * @param message ConcludeTransactionRequest message or plain object to encode + * Encodes the specified ExecuteFetchAsAppRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. + * 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 ConcludeTransactionRequest + * @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): tabletmanagerdata.ConcludeTransactionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ExecuteFetchAsAppRequest; /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConcludeTransactionRequest + * @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)): tabletmanagerdata.ConcludeTransactionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ExecuteFetchAsAppRequest; /** - * Verifies a ConcludeTransactionRequest message. + * 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 a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsAppRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConcludeTransactionRequest + * @returns ExecuteFetchAsAppRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ConcludeTransactionRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteFetchAsAppRequest; /** - * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. - * @param message ConcludeTransactionRequest + * 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: tabletmanagerdata.ConcludeTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ExecuteFetchAsAppRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConcludeTransactionRequest to JSON. + * Converts this ExecuteFetchAsAppRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConcludeTransactionRequest + * 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 a ConcludeTransactionResponse. */ - interface IConcludeTransactionResponse { + /** Properties of an ExecuteFetchAsAppResponse. */ + interface IExecuteFetchAsAppResponse { + + /** ExecuteFetchAsAppResponse result */ + result?: (query.IQueryResult|null); } - /** Represents a ConcludeTransactionResponse. */ - class ConcludeTransactionResponse implements IConcludeTransactionResponse { + /** Represents an ExecuteFetchAsAppResponse. */ + class ExecuteFetchAsAppResponse implements IExecuteFetchAsAppResponse { /** - * Constructs a new ConcludeTransactionResponse. + * Constructs a new ExecuteFetchAsAppResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IConcludeTransactionResponse); + constructor(properties?: tabletmanagerdata.IExecuteFetchAsAppResponse); + + /** ExecuteFetchAsAppResponse result. */ + public result?: (query.IQueryResult|null); /** - * Creates a new ConcludeTransactionResponse instance using the specified properties. + * Creates a new ExecuteFetchAsAppResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ConcludeTransactionResponse instance + * @returns ExecuteFetchAsAppResponse instance */ - public static create(properties?: tabletmanagerdata.IConcludeTransactionResponse): tabletmanagerdata.ConcludeTransactionResponse; + public static create(properties?: tabletmanagerdata.IExecuteFetchAsAppResponse): tabletmanagerdata.ExecuteFetchAsAppResponse; /** - * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link tabletmanagerdata.ConcludeTransactionResponse.verify|verify} messages. - * @param message ConcludeTransactionResponse message or plain object to encode + * Encodes the specified ExecuteFetchAsAppResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ConcludeTransactionResponse.verify|verify} messages. - * @param message ConcludeTransactionResponse message or plain object to encode + * Encodes the specified ExecuteFetchAsAppResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. + * 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 ConcludeTransactionResponse + * @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): tabletmanagerdata.ConcludeTransactionResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ExecuteFetchAsAppResponse; /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConcludeTransactionResponse + * @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)): tabletmanagerdata.ConcludeTransactionResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ExecuteFetchAsAppResponse; /** - * Verifies a ConcludeTransactionResponse message. + * 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 a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsAppResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConcludeTransactionResponse + * @returns ExecuteFetchAsAppResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ConcludeTransactionResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteFetchAsAppResponse; /** - * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. - * @param message ConcludeTransactionResponse + * 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: tabletmanagerdata.ConcludeTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ExecuteFetchAsAppResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConcludeTransactionResponse to JSON. + * Converts this ExecuteFetchAsAppResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConcludeTransactionResponse + * 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 a MysqlHostMetricsRequest. */ - interface IMysqlHostMetricsRequest { + /** Properties of a GetUnresolvedTransactionsRequest. */ + interface IGetUnresolvedTransactionsRequest { + + /** GetUnresolvedTransactionsRequest abandon_age */ + abandon_age?: (number|Long|null); } - /** Represents a MysqlHostMetricsRequest. */ - class MysqlHostMetricsRequest implements IMysqlHostMetricsRequest { + /** Represents a GetUnresolvedTransactionsRequest. */ + class GetUnresolvedTransactionsRequest implements IGetUnresolvedTransactionsRequest { /** - * Constructs a new MysqlHostMetricsRequest. + * Constructs a new GetUnresolvedTransactionsRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IMysqlHostMetricsRequest); + constructor(properties?: tabletmanagerdata.IGetUnresolvedTransactionsRequest); + + /** GetUnresolvedTransactionsRequest abandon_age. */ + public abandon_age: (number|Long); /** - * Creates a new MysqlHostMetricsRequest instance using the specified properties. + * Creates a new GetUnresolvedTransactionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MysqlHostMetricsRequest instance + * @returns GetUnresolvedTransactionsRequest instance */ - public static create(properties?: tabletmanagerdata.IMysqlHostMetricsRequest): tabletmanagerdata.MysqlHostMetricsRequest; + public static create(properties?: tabletmanagerdata.IGetUnresolvedTransactionsRequest): tabletmanagerdata.GetUnresolvedTransactionsRequest; /** - * Encodes the specified MysqlHostMetricsRequest message. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsRequest.verify|verify} messages. - * @param message MysqlHostMetricsRequest message or plain object to encode + * Encodes the specified GetUnresolvedTransactionsRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IMysqlHostMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MysqlHostMetricsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsRequest.verify|verify} messages. - * @param message MysqlHostMetricsRequest message or plain object to encode + * Encodes the specified GetUnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IMysqlHostMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MysqlHostMetricsRequest message from the specified reader or buffer. + * 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 MysqlHostMetricsRequest + * @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): tabletmanagerdata.MysqlHostMetricsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetUnresolvedTransactionsRequest; /** - * Decodes a MysqlHostMetricsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MysqlHostMetricsRequest + * @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)): tabletmanagerdata.MysqlHostMetricsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetUnresolvedTransactionsRequest; /** - * Verifies a MysqlHostMetricsRequest message. + * 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 MysqlHostMetricsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetUnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MysqlHostMetricsRequest + * @returns GetUnresolvedTransactionsRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.MysqlHostMetricsRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetUnresolvedTransactionsRequest; /** - * Creates a plain object from a MysqlHostMetricsRequest message. Also converts values to other types if specified. - * @param message MysqlHostMetricsRequest + * 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: tabletmanagerdata.MysqlHostMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetUnresolvedTransactionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MysqlHostMetricsRequest to JSON. + * Converts this GetUnresolvedTransactionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MysqlHostMetricsRequest + * 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 MysqlHostMetricsResponse. */ - interface IMysqlHostMetricsResponse { + /** Properties of a GetUnresolvedTransactionsResponse. */ + interface IGetUnresolvedTransactionsResponse { - /** MysqlHostMetricsResponse HostMetrics */ - HostMetrics?: (mysqlctl.IHostMetricsResponse|null); + /** GetUnresolvedTransactionsResponse transactions */ + transactions?: (query.ITransactionMetadata[]|null); } - /** Represents a MysqlHostMetricsResponse. */ - class MysqlHostMetricsResponse implements IMysqlHostMetricsResponse { + /** Represents a GetUnresolvedTransactionsResponse. */ + class GetUnresolvedTransactionsResponse implements IGetUnresolvedTransactionsResponse { /** - * Constructs a new MysqlHostMetricsResponse. + * Constructs a new GetUnresolvedTransactionsResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IMysqlHostMetricsResponse); + constructor(properties?: tabletmanagerdata.IGetUnresolvedTransactionsResponse); - /** MysqlHostMetricsResponse HostMetrics. */ - public HostMetrics?: (mysqlctl.IHostMetricsResponse|null); + /** GetUnresolvedTransactionsResponse transactions. */ + public transactions: query.ITransactionMetadata[]; /** - * Creates a new MysqlHostMetricsResponse instance using the specified properties. + * Creates a new GetUnresolvedTransactionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MysqlHostMetricsResponse instance + * @returns GetUnresolvedTransactionsResponse instance */ - public static create(properties?: tabletmanagerdata.IMysqlHostMetricsResponse): tabletmanagerdata.MysqlHostMetricsResponse; + public static create(properties?: tabletmanagerdata.IGetUnresolvedTransactionsResponse): tabletmanagerdata.GetUnresolvedTransactionsResponse; /** - * Encodes the specified MysqlHostMetricsResponse message. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsResponse.verify|verify} messages. - * @param message MysqlHostMetricsResponse message or plain object to encode + * Encodes the specified GetUnresolvedTransactionsResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IMysqlHostMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MysqlHostMetricsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsResponse.verify|verify} messages. - * @param message MysqlHostMetricsResponse message or plain object to encode + * Encodes the specified GetUnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IMysqlHostMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MysqlHostMetricsResponse message from the specified reader or buffer. + * 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 MysqlHostMetricsResponse + * @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): tabletmanagerdata.MysqlHostMetricsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetUnresolvedTransactionsResponse; /** - * Decodes a MysqlHostMetricsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MysqlHostMetricsResponse + * @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)): tabletmanagerdata.MysqlHostMetricsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetUnresolvedTransactionsResponse; /** - * Verifies a MysqlHostMetricsResponse message. + * 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 MysqlHostMetricsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetUnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MysqlHostMetricsResponse + * @returns GetUnresolvedTransactionsResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.MysqlHostMetricsResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetUnresolvedTransactionsResponse; /** - * Creates a plain object from a MysqlHostMetricsResponse message. Also converts values to other types if specified. - * @param message MysqlHostMetricsResponse + * 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: tabletmanagerdata.MysqlHostMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetUnresolvedTransactionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MysqlHostMetricsResponse to JSON. + * Converts this GetUnresolvedTransactionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MysqlHostMetricsResponse + * 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 ReplicationStatusRequest. */ - interface IReplicationStatusRequest { + /** Properties of a ReadTransactionRequest. */ + interface IReadTransactionRequest { + + /** ReadTransactionRequest dtid */ + dtid?: (string|null); } - /** Represents a ReplicationStatusRequest. */ - class ReplicationStatusRequest implements IReplicationStatusRequest { + /** Represents a ReadTransactionRequest. */ + class ReadTransactionRequest implements IReadTransactionRequest { /** - * Constructs a new ReplicationStatusRequest. + * Constructs a new ReadTransactionRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReplicationStatusRequest); + constructor(properties?: tabletmanagerdata.IReadTransactionRequest); + + /** ReadTransactionRequest dtid. */ + public dtid: string; /** - * Creates a new ReplicationStatusRequest instance using the specified properties. + * Creates a new ReadTransactionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReplicationStatusRequest instance + * @returns ReadTransactionRequest instance */ - public static create(properties?: tabletmanagerdata.IReplicationStatusRequest): tabletmanagerdata.ReplicationStatusRequest; + public static create(properties?: tabletmanagerdata.IReadTransactionRequest): tabletmanagerdata.ReadTransactionRequest; /** - * Encodes the specified ReplicationStatusRequest message. Does not implicitly {@link tabletmanagerdata.ReplicationStatusRequest.verify|verify} messages. - * @param message ReplicationStatusRequest message or plain object to encode + * Encodes the specified ReadTransactionRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IReplicationStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReadTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReplicationStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicationStatusRequest.verify|verify} messages. - * @param message ReplicationStatusRequest message or plain object to encode + * Encodes the specified ReadTransactionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IReplicationStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReadTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReplicationStatusRequest message from the specified reader or buffer. + * 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 ReplicationStatusRequest + * @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): tabletmanagerdata.ReplicationStatusRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReadTransactionRequest; /** - * Decodes a ReplicationStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadTransactionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReplicationStatusRequest + * @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)): tabletmanagerdata.ReplicationStatusRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReadTransactionRequest; /** - * Verifies a ReplicationStatusRequest message. + * 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 ReplicationStatusRequest 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. * @param object Plain object - * @returns ReplicationStatusRequest + * @returns ReadTransactionRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReplicationStatusRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadTransactionRequest; /** - * Creates a plain object from a ReplicationStatusRequest message. Also converts values to other types if specified. - * @param message ReplicationStatusRequest + * 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: tabletmanagerdata.ReplicationStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReadTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReplicationStatusRequest to JSON. + * Converts this ReadTransactionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReplicationStatusRequest + * 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 ReplicationStatusResponse. */ - interface IReplicationStatusResponse { + /** Properties of a ReadTransactionResponse. */ + interface IReadTransactionResponse { - /** ReplicationStatusResponse status */ - status?: (replicationdata.IStatus|null); + /** ReadTransactionResponse transaction */ + transaction?: (query.ITransactionMetadata|null); } - /** Represents a ReplicationStatusResponse. */ - class ReplicationStatusResponse implements IReplicationStatusResponse { + /** Represents a ReadTransactionResponse. */ + class ReadTransactionResponse implements IReadTransactionResponse { /** - * Constructs a new ReplicationStatusResponse. + * Constructs a new ReadTransactionResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReplicationStatusResponse); + constructor(properties?: tabletmanagerdata.IReadTransactionResponse); - /** ReplicationStatusResponse status. */ - public status?: (replicationdata.IStatus|null); + /** ReadTransactionResponse transaction. */ + public transaction?: (query.ITransactionMetadata|null); /** - * Creates a new ReplicationStatusResponse instance using the specified properties. + * Creates a new ReadTransactionResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReplicationStatusResponse instance + * @returns ReadTransactionResponse instance */ - public static create(properties?: tabletmanagerdata.IReplicationStatusResponse): tabletmanagerdata.ReplicationStatusResponse; + public static create(properties?: tabletmanagerdata.IReadTransactionResponse): tabletmanagerdata.ReadTransactionResponse; /** - * Encodes the specified ReplicationStatusResponse message. Does not implicitly {@link tabletmanagerdata.ReplicationStatusResponse.verify|verify} messages. - * @param message ReplicationStatusResponse message or plain object to encode + * Encodes the specified ReadTransactionResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IReplicationStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReadTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReplicationStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicationStatusResponse.verify|verify} messages. - * @param message ReplicationStatusResponse message or plain object to encode + * Encodes the specified ReadTransactionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IReplicationStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReadTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReplicationStatusResponse message from the specified reader or buffer. + * 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 ReplicationStatusResponse + * @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): tabletmanagerdata.ReplicationStatusResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReadTransactionResponse; /** - * Decodes a ReplicationStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadTransactionResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReplicationStatusResponse + * @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)): tabletmanagerdata.ReplicationStatusResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReadTransactionResponse; /** - * Verifies a ReplicationStatusResponse message. + * 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 ReplicationStatusResponse 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. * @param object Plain object - * @returns ReplicationStatusResponse + * @returns ReadTransactionResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReplicationStatusResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadTransactionResponse; /** - * Creates a plain object from a ReplicationStatusResponse message. Also converts values to other types if specified. - * @param message ReplicationStatusResponse + * 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: tabletmanagerdata.ReplicationStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReadTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReplicationStatusResponse to JSON. + * Converts this ReadTransactionResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReplicationStatusResponse + * 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 a PrimaryStatusRequest. */ - interface IPrimaryStatusRequest { + /** Properties of a GetTransactionInfoRequest. */ + interface IGetTransactionInfoRequest { + + /** GetTransactionInfoRequest dtid */ + dtid?: (string|null); } - /** Represents a PrimaryStatusRequest. */ - class PrimaryStatusRequest implements IPrimaryStatusRequest { + /** Represents a GetTransactionInfoRequest. */ + class GetTransactionInfoRequest implements IGetTransactionInfoRequest { /** - * Constructs a new PrimaryStatusRequest. + * Constructs a new GetTransactionInfoRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPrimaryStatusRequest); + constructor(properties?: tabletmanagerdata.IGetTransactionInfoRequest); + + /** GetTransactionInfoRequest dtid. */ + public dtid: string; /** - * Creates a new PrimaryStatusRequest instance using the specified properties. + * Creates a new GetTransactionInfoRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PrimaryStatusRequest instance + * @returns GetTransactionInfoRequest instance */ - public static create(properties?: tabletmanagerdata.IPrimaryStatusRequest): tabletmanagerdata.PrimaryStatusRequest; + public static create(properties?: tabletmanagerdata.IGetTransactionInfoRequest): tabletmanagerdata.GetTransactionInfoRequest; /** - * Encodes the specified PrimaryStatusRequest message. Does not implicitly {@link tabletmanagerdata.PrimaryStatusRequest.verify|verify} messages. - * @param message PrimaryStatusRequest message or plain object to encode + * Encodes the specified GetTransactionInfoRequest message. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoRequest.verify|verify} messages. + * @param message GetTransactionInfoRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IPrimaryStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetTransactionInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrimaryStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryStatusRequest.verify|verify} messages. - * @param message PrimaryStatusRequest message or plain object to encode + * Encodes the specified GetTransactionInfoRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoRequest.verify|verify} messages. + * @param message GetTransactionInfoRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IPrimaryStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetTransactionInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrimaryStatusRequest message from the specified reader or buffer. + * Decodes a GetTransactionInfoRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PrimaryStatusRequest + * @returns GetTransactionInfoRequest * @throws {Error} If the payload is 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.PrimaryStatusRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetTransactionInfoRequest; /** - * Decodes a PrimaryStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTransactionInfoRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrimaryStatusRequest + * @returns GetTransactionInfoRequest * @throws {Error} If the 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.PrimaryStatusRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetTransactionInfoRequest; /** - * Verifies a PrimaryStatusRequest message. + * Verifies a GetTransactionInfoRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PrimaryStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTransactionInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PrimaryStatusRequest + * @returns GetTransactionInfoRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PrimaryStatusRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetTransactionInfoRequest; /** - * Creates a plain object from a PrimaryStatusRequest message. Also converts values to other types if specified. - * @param message PrimaryStatusRequest + * Creates a plain object from a GetTransactionInfoRequest message. Also converts values to other types if specified. + * @param message GetTransactionInfoRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.PrimaryStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetTransactionInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrimaryStatusRequest to JSON. + * Converts this GetTransactionInfoRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PrimaryStatusRequest + * Gets the default type url for GetTransactionInfoRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PrimaryStatusResponse. */ - interface IPrimaryStatusResponse { + /** Properties of a GetTransactionInfoResponse. */ + interface IGetTransactionInfoResponse { - /** PrimaryStatusResponse status */ - status?: (replicationdata.IPrimaryStatus|null); + /** GetTransactionInfoResponse state */ + state?: (string|null); + + /** GetTransactionInfoResponse message */ + message?: (string|null); + + /** GetTransactionInfoResponse time_created */ + time_created?: (number|Long|null); + + /** GetTransactionInfoResponse statements */ + statements?: (string[]|null); } - /** Represents a PrimaryStatusResponse. */ - class PrimaryStatusResponse implements IPrimaryStatusResponse { + /** Represents a GetTransactionInfoResponse. */ + class GetTransactionInfoResponse implements IGetTransactionInfoResponse { /** - * Constructs a new PrimaryStatusResponse. + * Constructs a new GetTransactionInfoResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPrimaryStatusResponse); + constructor(properties?: tabletmanagerdata.IGetTransactionInfoResponse); - /** PrimaryStatusResponse status. */ - public status?: (replicationdata.IPrimaryStatus|null); + /** GetTransactionInfoResponse state. */ + public state: string; + + /** GetTransactionInfoResponse message. */ + public message: string; + + /** GetTransactionInfoResponse time_created. */ + public time_created: (number|Long); + + /** GetTransactionInfoResponse statements. */ + public statements: string[]; /** - * Creates a new PrimaryStatusResponse instance using the specified properties. + * Creates a new GetTransactionInfoResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PrimaryStatusResponse instance + * @returns GetTransactionInfoResponse instance */ - public static create(properties?: tabletmanagerdata.IPrimaryStatusResponse): tabletmanagerdata.PrimaryStatusResponse; + public static create(properties?: tabletmanagerdata.IGetTransactionInfoResponse): tabletmanagerdata.GetTransactionInfoResponse; /** - * Encodes the specified PrimaryStatusResponse message. Does not implicitly {@link tabletmanagerdata.PrimaryStatusResponse.verify|verify} messages. - * @param message PrimaryStatusResponse message or plain object to encode + * Encodes the specified GetTransactionInfoResponse message. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoResponse.verify|verify} messages. + * @param message GetTransactionInfoResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IPrimaryStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetTransactionInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrimaryStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryStatusResponse.verify|verify} messages. - * @param message PrimaryStatusResponse message or plain object to encode + * Encodes the specified GetTransactionInfoResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoResponse.verify|verify} messages. + * @param message GetTransactionInfoResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IPrimaryStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetTransactionInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrimaryStatusResponse message from the specified reader or buffer. + * Decodes a GetTransactionInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PrimaryStatusResponse + * @returns GetTransactionInfoResponse * @throws {Error} If the payload is 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.PrimaryStatusResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetTransactionInfoResponse; /** - * Decodes a PrimaryStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTransactionInfoResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrimaryStatusResponse + * @returns GetTransactionInfoResponse * @throws {Error} If the 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.PrimaryStatusResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetTransactionInfoResponse; /** - * Verifies a PrimaryStatusResponse message. + * Verifies a GetTransactionInfoResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PrimaryStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTransactionInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PrimaryStatusResponse + * @returns GetTransactionInfoResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PrimaryStatusResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetTransactionInfoResponse; /** - * Creates a plain object from a PrimaryStatusResponse message. Also converts values to other types if specified. - * @param message PrimaryStatusResponse + * Creates a plain object from a GetTransactionInfoResponse message. Also converts values to other types if specified. + * @param message GetTransactionInfoResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.PrimaryStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetTransactionInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrimaryStatusResponse to JSON. + * Converts this GetTransactionInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PrimaryStatusResponse + * Gets the default type url for GetTransactionInfoResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PrimaryPositionRequest. */ - interface IPrimaryPositionRequest { + /** Properties of a ConcludeTransactionRequest. */ + interface IConcludeTransactionRequest { + + /** ConcludeTransactionRequest dtid */ + dtid?: (string|null); + + /** ConcludeTransactionRequest mm */ + mm?: (boolean|null); } - /** Represents a PrimaryPositionRequest. */ - class PrimaryPositionRequest implements IPrimaryPositionRequest { + /** Represents a ConcludeTransactionRequest. */ + class ConcludeTransactionRequest implements IConcludeTransactionRequest { /** - * Constructs a new PrimaryPositionRequest. + * Constructs a new ConcludeTransactionRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPrimaryPositionRequest); + constructor(properties?: tabletmanagerdata.IConcludeTransactionRequest); + + /** ConcludeTransactionRequest dtid. */ + public dtid: string; + + /** ConcludeTransactionRequest mm. */ + public mm: boolean; /** - * Creates a new PrimaryPositionRequest instance using the specified properties. + * Creates a new ConcludeTransactionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PrimaryPositionRequest instance + * @returns ConcludeTransactionRequest instance */ - public static create(properties?: tabletmanagerdata.IPrimaryPositionRequest): tabletmanagerdata.PrimaryPositionRequest; + public static create(properties?: tabletmanagerdata.IConcludeTransactionRequest): tabletmanagerdata.ConcludeTransactionRequest; /** - * Encodes the specified PrimaryPositionRequest message. Does not implicitly {@link tabletmanagerdata.PrimaryPositionRequest.verify|verify} messages. - * @param message PrimaryPositionRequest message or plain object to encode + * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IPrimaryPositionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrimaryPositionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryPositionRequest.verify|verify} messages. - * @param message PrimaryPositionRequest message or plain object to encode + * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IPrimaryPositionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrimaryPositionRequest message from the specified reader or buffer. + * 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 PrimaryPositionRequest + * @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): tabletmanagerdata.PrimaryPositionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ConcludeTransactionRequest; /** - * Decodes a PrimaryPositionRequest message from the specified reader or buffer, length delimited. + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrimaryPositionRequest + * @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)): tabletmanagerdata.PrimaryPositionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ConcludeTransactionRequest; /** - * Verifies a PrimaryPositionRequest message. + * 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 PrimaryPositionRequest 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. * @param object Plain object - * @returns PrimaryPositionRequest + * @returns ConcludeTransactionRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PrimaryPositionRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ConcludeTransactionRequest; /** - * Creates a plain object from a PrimaryPositionRequest message. Also converts values to other types if specified. - * @param message PrimaryPositionRequest + * 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: tabletmanagerdata.PrimaryPositionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ConcludeTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrimaryPositionRequest to JSON. + * Converts this ConcludeTransactionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PrimaryPositionRequest + * 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 PrimaryPositionResponse. */ - interface IPrimaryPositionResponse { - - /** PrimaryPositionResponse position */ - position?: (string|null); + /** Properties of a ConcludeTransactionResponse. */ + interface IConcludeTransactionResponse { } - /** Represents a PrimaryPositionResponse. */ - class PrimaryPositionResponse implements IPrimaryPositionResponse { + /** Represents a ConcludeTransactionResponse. */ + class ConcludeTransactionResponse implements IConcludeTransactionResponse { /** - * Constructs a new PrimaryPositionResponse. + * Constructs a new ConcludeTransactionResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPrimaryPositionResponse); - - /** PrimaryPositionResponse position. */ - public position: string; + constructor(properties?: tabletmanagerdata.IConcludeTransactionResponse); /** - * Creates a new PrimaryPositionResponse instance using the specified properties. + * Creates a new ConcludeTransactionResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PrimaryPositionResponse instance + * @returns ConcludeTransactionResponse instance */ - public static create(properties?: tabletmanagerdata.IPrimaryPositionResponse): tabletmanagerdata.PrimaryPositionResponse; + public static create(properties?: tabletmanagerdata.IConcludeTransactionResponse): tabletmanagerdata.ConcludeTransactionResponse; /** - * Encodes the specified PrimaryPositionResponse message. Does not implicitly {@link tabletmanagerdata.PrimaryPositionResponse.verify|verify} messages. - * @param message PrimaryPositionResponse message or plain object to encode + * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IPrimaryPositionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrimaryPositionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryPositionResponse.verify|verify} messages. - * @param message PrimaryPositionResponse message or plain object to encode + * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IPrimaryPositionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrimaryPositionResponse message from the specified reader or buffer. + * 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 PrimaryPositionResponse + * @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): tabletmanagerdata.PrimaryPositionResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ConcludeTransactionResponse; /** - * Decodes a PrimaryPositionResponse message from the specified reader or buffer, length delimited. + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrimaryPositionResponse + * @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)): tabletmanagerdata.PrimaryPositionResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ConcludeTransactionResponse; /** - * Verifies a PrimaryPositionResponse message. + * 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 PrimaryPositionResponse 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. * @param object Plain object - * @returns PrimaryPositionResponse + * @returns ConcludeTransactionResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PrimaryPositionResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ConcludeTransactionResponse; /** - * Creates a plain object from a PrimaryPositionResponse message. Also converts values to other types if specified. - * @param message PrimaryPositionResponse + * 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: tabletmanagerdata.PrimaryPositionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ConcludeTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrimaryPositionResponse to JSON. + * Converts this ConcludeTransactionResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PrimaryPositionResponse + * 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 WaitForPositionRequest. */ - interface IWaitForPositionRequest { - - /** WaitForPositionRequest position */ - position?: (string|null); + /** Properties of a MysqlHostMetricsRequest. */ + interface IMysqlHostMetricsRequest { } - /** Represents a WaitForPositionRequest. */ - class WaitForPositionRequest implements IWaitForPositionRequest { + /** Represents a MysqlHostMetricsRequest. */ + class MysqlHostMetricsRequest implements IMysqlHostMetricsRequest { /** - * Constructs a new WaitForPositionRequest. + * Constructs a new MysqlHostMetricsRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IWaitForPositionRequest); - - /** WaitForPositionRequest position. */ - public position: string; + constructor(properties?: tabletmanagerdata.IMysqlHostMetricsRequest); /** - * Creates a new WaitForPositionRequest instance using the specified properties. + * Creates a new MysqlHostMetricsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WaitForPositionRequest instance + * @returns MysqlHostMetricsRequest instance */ - public static create(properties?: tabletmanagerdata.IWaitForPositionRequest): tabletmanagerdata.WaitForPositionRequest; + public static create(properties?: tabletmanagerdata.IMysqlHostMetricsRequest): tabletmanagerdata.MysqlHostMetricsRequest; /** - * Encodes the specified WaitForPositionRequest message. Does not implicitly {@link tabletmanagerdata.WaitForPositionRequest.verify|verify} messages. - * @param message WaitForPositionRequest message or plain object to encode + * Encodes the specified MysqlHostMetricsRequest message. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsRequest.verify|verify} messages. + * @param message MysqlHostMetricsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IWaitForPositionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IMysqlHostMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WaitForPositionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.WaitForPositionRequest.verify|verify} messages. - * @param message WaitForPositionRequest message or plain object to encode + * Encodes the specified MysqlHostMetricsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsRequest.verify|verify} messages. + * @param message MysqlHostMetricsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IWaitForPositionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IMysqlHostMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WaitForPositionRequest message from the specified reader or buffer. + * Decodes a MysqlHostMetricsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WaitForPositionRequest + * @returns MysqlHostMetricsRequest * @throws {Error} If the payload is 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.WaitForPositionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.MysqlHostMetricsRequest; /** - * Decodes a WaitForPositionRequest message from the specified reader or buffer, length delimited. + * Decodes a MysqlHostMetricsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WaitForPositionRequest + * @returns MysqlHostMetricsRequest * @throws {Error} If the 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.WaitForPositionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.MysqlHostMetricsRequest; /** - * Verifies a WaitForPositionRequest message. + * Verifies a MysqlHostMetricsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WaitForPositionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MysqlHostMetricsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WaitForPositionRequest + * @returns MysqlHostMetricsRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.WaitForPositionRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.MysqlHostMetricsRequest; /** - * Creates a plain object from a WaitForPositionRequest message. Also converts values to other types if specified. - * @param message WaitForPositionRequest + * Creates a plain object from a MysqlHostMetricsRequest message. Also converts values to other types if specified. + * @param message MysqlHostMetricsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.WaitForPositionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.MysqlHostMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WaitForPositionRequest to JSON. + * Converts this MysqlHostMetricsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WaitForPositionRequest + * Gets the default type url for MysqlHostMetricsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WaitForPositionResponse. */ - interface IWaitForPositionResponse { + /** Properties of a MysqlHostMetricsResponse. */ + interface IMysqlHostMetricsResponse { + + /** MysqlHostMetricsResponse HostMetrics */ + HostMetrics?: (mysqlctl.IHostMetricsResponse|null); } - /** Represents a WaitForPositionResponse. */ - class WaitForPositionResponse implements IWaitForPositionResponse { + /** Represents a MysqlHostMetricsResponse. */ + class MysqlHostMetricsResponse implements IMysqlHostMetricsResponse { /** - * Constructs a new WaitForPositionResponse. + * Constructs a new MysqlHostMetricsResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IWaitForPositionResponse); + constructor(properties?: tabletmanagerdata.IMysqlHostMetricsResponse); + + /** MysqlHostMetricsResponse HostMetrics. */ + public HostMetrics?: (mysqlctl.IHostMetricsResponse|null); /** - * Creates a new WaitForPositionResponse instance using the specified properties. + * Creates a new MysqlHostMetricsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns WaitForPositionResponse instance + * @returns MysqlHostMetricsResponse instance */ - public static create(properties?: tabletmanagerdata.IWaitForPositionResponse): tabletmanagerdata.WaitForPositionResponse; + public static create(properties?: tabletmanagerdata.IMysqlHostMetricsResponse): tabletmanagerdata.MysqlHostMetricsResponse; /** - * Encodes the specified WaitForPositionResponse message. Does not implicitly {@link tabletmanagerdata.WaitForPositionResponse.verify|verify} messages. - * @param message WaitForPositionResponse message or plain object to encode + * Encodes the specified MysqlHostMetricsResponse message. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsResponse.verify|verify} messages. + * @param message MysqlHostMetricsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IWaitForPositionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IMysqlHostMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WaitForPositionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.WaitForPositionResponse.verify|verify} messages. - * @param message WaitForPositionResponse message or plain object to encode + * Encodes the specified MysqlHostMetricsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsResponse.verify|verify} messages. + * @param message MysqlHostMetricsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IWaitForPositionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IMysqlHostMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WaitForPositionResponse message from the specified reader or buffer. + * Decodes a MysqlHostMetricsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WaitForPositionResponse + * @returns MysqlHostMetricsResponse * @throws {Error} If the payload is 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.WaitForPositionResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.MysqlHostMetricsResponse; /** - * Decodes a WaitForPositionResponse message from the specified reader or buffer, length delimited. + * Decodes a MysqlHostMetricsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WaitForPositionResponse + * @returns MysqlHostMetricsResponse * @throws {Error} If the 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.WaitForPositionResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.MysqlHostMetricsResponse; /** - * Verifies a WaitForPositionResponse message. + * Verifies a MysqlHostMetricsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WaitForPositionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MysqlHostMetricsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WaitForPositionResponse + * @returns MysqlHostMetricsResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.WaitForPositionResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.MysqlHostMetricsResponse; /** - * Creates a plain object from a WaitForPositionResponse message. Also converts values to other types if specified. - * @param message WaitForPositionResponse + * Creates a plain object from a MysqlHostMetricsResponse message. Also converts values to other types if specified. + * @param message MysqlHostMetricsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.WaitForPositionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.MysqlHostMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WaitForPositionResponse to JSON. + * Converts this MysqlHostMetricsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WaitForPositionResponse + * Gets the default type url for MysqlHostMetricsResponse * @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 { + /** Properties of a ReplicationStatusRequest. */ + interface IReplicationStatusRequest { } - /** Represents a StopReplicationRequest. */ - class StopReplicationRequest implements IStopReplicationRequest { + /** Represents a ReplicationStatusRequest. */ + class ReplicationStatusRequest implements IReplicationStatusRequest { /** - * Constructs a new StopReplicationRequest. + * Constructs a new ReplicationStatusRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IStopReplicationRequest); + constructor(properties?: tabletmanagerdata.IReplicationStatusRequest); /** - * Creates a new StopReplicationRequest instance using the specified properties. + * Creates a new ReplicationStatusRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StopReplicationRequest instance + * @returns ReplicationStatusRequest instance */ - public static create(properties?: tabletmanagerdata.IStopReplicationRequest): tabletmanagerdata.StopReplicationRequest; + public static create(properties?: tabletmanagerdata.IReplicationStatusRequest): tabletmanagerdata.ReplicationStatusRequest; /** - * Encodes the specified StopReplicationRequest message. Does not implicitly {@link tabletmanagerdata.StopReplicationRequest.verify|verify} messages. - * @param message StopReplicationRequest message or plain object to encode + * Encodes the specified ReplicationStatusRequest message. Does not implicitly {@link tabletmanagerdata.ReplicationStatusRequest.verify|verify} messages. + * @param message ReplicationStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReplicationStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopReplicationRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationRequest.verify|verify} messages. - * @param message StopReplicationRequest message or plain object to encode + * Encodes the specified ReplicationStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicationStatusRequest.verify|verify} messages. + * @param message ReplicationStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReplicationStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopReplicationRequest message from the specified reader or buffer. + * Decodes a ReplicationStatusRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopReplicationRequest + * @returns ReplicationStatusRequest * @throws {Error} If the payload is 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.StopReplicationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReplicationStatusRequest; /** - * Decodes a StopReplicationRequest message from the specified reader or buffer, length delimited. + * Decodes a ReplicationStatusRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopReplicationRequest + * @returns ReplicationStatusRequest * @throws {Error} If the 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.StopReplicationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReplicationStatusRequest; /** - * Verifies a StopReplicationRequest message. + * Verifies a ReplicationStatusRequest message. * @param message Plain object 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. + * Creates a ReplicationStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopReplicationRequest + * @returns ReplicationStatusRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StopReplicationRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReplicationStatusRequest; /** - * Creates a plain object from a StopReplicationRequest message. Also converts values to other types if specified. - * @param message StopReplicationRequest + * Creates a plain object from a ReplicationStatusRequest message. Also converts values to other types if specified. + * @param message ReplicationStatusRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.StopReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReplicationStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopReplicationRequest to JSON. + * Converts this ReplicationStatusRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StopReplicationRequest + * Gets the default type url for ReplicationStatusRequest * @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 { + /** Properties of a ReplicationStatusResponse. */ + interface IReplicationStatusResponse { + + /** ReplicationStatusResponse status */ + status?: (replicationdata.IStatus|null); } - /** Represents a StopReplicationResponse. */ - class StopReplicationResponse implements IStopReplicationResponse { + /** Represents a ReplicationStatusResponse. */ + class ReplicationStatusResponse implements IReplicationStatusResponse { /** - * Constructs a new StopReplicationResponse. + * Constructs a new ReplicationStatusResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IStopReplicationResponse); + constructor(properties?: tabletmanagerdata.IReplicationStatusResponse); + + /** ReplicationStatusResponse status. */ + public status?: (replicationdata.IStatus|null); /** - * Creates a new StopReplicationResponse instance using the specified properties. + * Creates a new ReplicationStatusResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StopReplicationResponse instance + * @returns ReplicationStatusResponse instance */ - public static create(properties?: tabletmanagerdata.IStopReplicationResponse): tabletmanagerdata.StopReplicationResponse; + public static create(properties?: tabletmanagerdata.IReplicationStatusResponse): tabletmanagerdata.ReplicationStatusResponse; /** - * Encodes the specified StopReplicationResponse message. Does not implicitly {@link tabletmanagerdata.StopReplicationResponse.verify|verify} messages. - * @param message StopReplicationResponse message or plain object to encode + * Encodes the specified ReplicationStatusResponse message. Does not implicitly {@link tabletmanagerdata.ReplicationStatusResponse.verify|verify} messages. + * @param message ReplicationStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReplicationStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopReplicationResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationResponse.verify|verify} messages. - * @param message StopReplicationResponse message or plain object to encode + * Encodes the specified ReplicationStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicationStatusResponse.verify|verify} messages. + * @param message ReplicationStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReplicationStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopReplicationResponse message from the specified reader or buffer. + * Decodes a ReplicationStatusResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopReplicationResponse + * @returns ReplicationStatusResponse * @throws {Error} If the payload is 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.StopReplicationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReplicationStatusResponse; /** - * Decodes a StopReplicationResponse message from the specified reader or buffer, length delimited. + * Decodes a ReplicationStatusResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopReplicationResponse + * @returns ReplicationStatusResponse * @throws {Error} If the 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.StopReplicationResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReplicationStatusResponse; /** - * Verifies a StopReplicationResponse message. + * Verifies a ReplicationStatusResponse message. * @param message Plain object 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. + * Creates a ReplicationStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopReplicationResponse + * @returns ReplicationStatusResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StopReplicationResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReplicationStatusResponse; /** - * Creates a plain object from a StopReplicationResponse message. Also converts values to other types if specified. - * @param message StopReplicationResponse + * Creates a plain object from a ReplicationStatusResponse message. Also converts values to other types if specified. + * @param message ReplicationStatusResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.StopReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReplicationStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopReplicationResponse to JSON. + * Converts this ReplicationStatusResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StopReplicationResponse + * Gets the default type url for ReplicationStatusResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StopReplicationMinimumRequest. */ - interface IStopReplicationMinimumRequest { - - /** StopReplicationMinimumRequest position */ - position?: (string|null); - - /** StopReplicationMinimumRequest wait_timeout */ - wait_timeout?: (number|Long|null); + /** Properties of a PrimaryStatusRequest. */ + interface IPrimaryStatusRequest { } - /** Represents a StopReplicationMinimumRequest. */ - class StopReplicationMinimumRequest implements IStopReplicationMinimumRequest { + /** Represents a PrimaryStatusRequest. */ + class PrimaryStatusRequest implements IPrimaryStatusRequest { /** - * Constructs a new StopReplicationMinimumRequest. + * Constructs a new PrimaryStatusRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IStopReplicationMinimumRequest); - - /** StopReplicationMinimumRequest position. */ - public position: string; - - /** StopReplicationMinimumRequest wait_timeout. */ - public wait_timeout: (number|Long); + constructor(properties?: tabletmanagerdata.IPrimaryStatusRequest); /** - * Creates a new StopReplicationMinimumRequest instance using the specified properties. + * Creates a new PrimaryStatusRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StopReplicationMinimumRequest instance + * @returns PrimaryStatusRequest instance */ - public static create(properties?: tabletmanagerdata.IStopReplicationMinimumRequest): tabletmanagerdata.StopReplicationMinimumRequest; + public static create(properties?: tabletmanagerdata.IPrimaryStatusRequest): tabletmanagerdata.PrimaryStatusRequest; /** - * Encodes the specified StopReplicationMinimumRequest message. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumRequest.verify|verify} messages. - * @param message StopReplicationMinimumRequest message or plain object to encode + * Encodes the specified PrimaryStatusRequest message. Does not implicitly {@link tabletmanagerdata.PrimaryStatusRequest.verify|verify} messages. + * @param message PrimaryStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IStopReplicationMinimumRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPrimaryStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopReplicationMinimumRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumRequest.verify|verify} messages. - * @param message StopReplicationMinimumRequest message or plain object to encode + * Encodes the specified PrimaryStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryStatusRequest.verify|verify} messages. + * @param message PrimaryStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IStopReplicationMinimumRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPrimaryStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopReplicationMinimumRequest message from the specified reader or buffer. + * Decodes a PrimaryStatusRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopReplicationMinimumRequest + * @returns PrimaryStatusRequest * @throws {Error} If the payload is 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.StopReplicationMinimumRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PrimaryStatusRequest; /** - * Decodes a StopReplicationMinimumRequest message from the specified reader or buffer, length delimited. + * Decodes a PrimaryStatusRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopReplicationMinimumRequest + * @returns PrimaryStatusRequest * @throws {Error} If the 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.StopReplicationMinimumRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PrimaryStatusRequest; /** - * Verifies a StopReplicationMinimumRequest message. + * Verifies a PrimaryStatusRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StopReplicationMinimumRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PrimaryStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopReplicationMinimumRequest + * @returns PrimaryStatusRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StopReplicationMinimumRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PrimaryStatusRequest; /** - * Creates a plain object from a StopReplicationMinimumRequest message. Also converts values to other types if specified. - * @param message StopReplicationMinimumRequest + * Creates a plain object from a PrimaryStatusRequest message. Also converts values to other types if specified. + * @param message PrimaryStatusRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.StopReplicationMinimumRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.PrimaryStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopReplicationMinimumRequest to JSON. + * Converts this PrimaryStatusRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StopReplicationMinimumRequest + * Gets the default type url for PrimaryStatusRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StopReplicationMinimumResponse. */ - interface IStopReplicationMinimumResponse { + /** Properties of a PrimaryStatusResponse. */ + interface IPrimaryStatusResponse { - /** StopReplicationMinimumResponse position */ - position?: (string|null); + /** PrimaryStatusResponse status */ + status?: (replicationdata.IPrimaryStatus|null); } - /** Represents a StopReplicationMinimumResponse. */ - class StopReplicationMinimumResponse implements IStopReplicationMinimumResponse { + /** Represents a PrimaryStatusResponse. */ + class PrimaryStatusResponse implements IPrimaryStatusResponse { /** - * Constructs a new StopReplicationMinimumResponse. + * Constructs a new PrimaryStatusResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IStopReplicationMinimumResponse); + constructor(properties?: tabletmanagerdata.IPrimaryStatusResponse); - /** StopReplicationMinimumResponse position. */ - public position: string; + /** PrimaryStatusResponse status. */ + public status?: (replicationdata.IPrimaryStatus|null); /** - * Creates a new StopReplicationMinimumResponse instance using the specified properties. + * Creates a new PrimaryStatusResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StopReplicationMinimumResponse instance + * @returns PrimaryStatusResponse instance */ - public static create(properties?: tabletmanagerdata.IStopReplicationMinimumResponse): tabletmanagerdata.StopReplicationMinimumResponse; + public static create(properties?: tabletmanagerdata.IPrimaryStatusResponse): tabletmanagerdata.PrimaryStatusResponse; /** - * Encodes the specified StopReplicationMinimumResponse message. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumResponse.verify|verify} messages. - * @param message StopReplicationMinimumResponse message or plain object to encode + * Encodes the specified PrimaryStatusResponse message. Does not implicitly {@link tabletmanagerdata.PrimaryStatusResponse.verify|verify} messages. + * @param message PrimaryStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IStopReplicationMinimumResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPrimaryStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopReplicationMinimumResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumResponse.verify|verify} messages. - * @param message StopReplicationMinimumResponse message or plain object to encode + * Encodes the specified PrimaryStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryStatusResponse.verify|verify} messages. + * @param message PrimaryStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IStopReplicationMinimumResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPrimaryStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopReplicationMinimumResponse message from the specified reader or buffer. + * Decodes a PrimaryStatusResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopReplicationMinimumResponse + * @returns PrimaryStatusResponse * @throws {Error} If the payload is 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.StopReplicationMinimumResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PrimaryStatusResponse; /** - * Decodes a StopReplicationMinimumResponse message from the specified reader or buffer, length delimited. + * Decodes a PrimaryStatusResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopReplicationMinimumResponse + * @returns PrimaryStatusResponse * @throws {Error} If the 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.StopReplicationMinimumResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PrimaryStatusResponse; /** - * Verifies a StopReplicationMinimumResponse message. + * Verifies a PrimaryStatusResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StopReplicationMinimumResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PrimaryStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopReplicationMinimumResponse + * @returns PrimaryStatusResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StopReplicationMinimumResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PrimaryStatusResponse; /** - * Creates a plain object from a StopReplicationMinimumResponse message. Also converts values to other types if specified. - * @param message StopReplicationMinimumResponse + * Creates a plain object from a PrimaryStatusResponse message. Also converts values to other types if specified. + * @param message PrimaryStatusResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.StopReplicationMinimumResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.PrimaryStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopReplicationMinimumResponse to JSON. + * Converts this PrimaryStatusResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StopReplicationMinimumResponse + * Gets the default type url for PrimaryStatusResponse * @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 semiSync */ - semiSync?: (boolean|null); + /** Properties of a PrimaryPositionRequest. */ + interface IPrimaryPositionRequest { } - /** Represents a StartReplicationRequest. */ - class StartReplicationRequest implements IStartReplicationRequest { + /** Represents a PrimaryPositionRequest. */ + class PrimaryPositionRequest implements IPrimaryPositionRequest { /** - * Constructs a new StartReplicationRequest. + * Constructs a new PrimaryPositionRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IStartReplicationRequest); - - /** StartReplicationRequest semiSync. */ - public semiSync: boolean; + constructor(properties?: tabletmanagerdata.IPrimaryPositionRequest); /** - * Creates a new StartReplicationRequest instance using the specified properties. + * Creates a new PrimaryPositionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StartReplicationRequest instance + * @returns PrimaryPositionRequest instance */ - public static create(properties?: tabletmanagerdata.IStartReplicationRequest): tabletmanagerdata.StartReplicationRequest; + public static create(properties?: tabletmanagerdata.IPrimaryPositionRequest): tabletmanagerdata.PrimaryPositionRequest; /** - * Encodes the specified StartReplicationRequest message. Does not implicitly {@link tabletmanagerdata.StartReplicationRequest.verify|verify} messages. - * @param message StartReplicationRequest message or plain object to encode + * Encodes the specified PrimaryPositionRequest message. Does not implicitly {@link tabletmanagerdata.PrimaryPositionRequest.verify|verify} messages. + * @param message PrimaryPositionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPrimaryPositionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StartReplicationRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StartReplicationRequest.verify|verify} messages. - * @param message StartReplicationRequest message or plain object to encode + * Encodes the specified PrimaryPositionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryPositionRequest.verify|verify} messages. + * @param message PrimaryPositionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPrimaryPositionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartReplicationRequest message from the specified reader or buffer. + * Decodes a PrimaryPositionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StartReplicationRequest + * @returns PrimaryPositionRequest * @throws {Error} If the payload is 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.StartReplicationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PrimaryPositionRequest; /** - * Decodes a StartReplicationRequest message from the specified reader or buffer, length delimited. + * Decodes a PrimaryPositionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartReplicationRequest + * @returns PrimaryPositionRequest * @throws {Error} If the 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.StartReplicationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PrimaryPositionRequest; /** - * Verifies a StartReplicationRequest message. + * Verifies a PrimaryPositionRequest message. * @param message Plain object 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. + * Creates a PrimaryPositionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartReplicationRequest + * @returns PrimaryPositionRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StartReplicationRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PrimaryPositionRequest; /** - * Creates a plain object from a StartReplicationRequest message. Also converts values to other types if specified. - * @param message StartReplicationRequest + * Creates a plain object from a PrimaryPositionRequest message. Also converts values to other types if specified. + * @param message PrimaryPositionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.StartReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.PrimaryPositionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartReplicationRequest to JSON. + * Converts this PrimaryPositionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StartReplicationRequest + * Gets the default type url for PrimaryPositionRequest * @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 { + /** Properties of a PrimaryPositionResponse. */ + interface IPrimaryPositionResponse { + + /** PrimaryPositionResponse position */ + position?: (string|null); } - /** Represents a StartReplicationResponse. */ - class StartReplicationResponse implements IStartReplicationResponse { + /** Represents a PrimaryPositionResponse. */ + class PrimaryPositionResponse implements IPrimaryPositionResponse { /** - * Constructs a new StartReplicationResponse. + * Constructs a new PrimaryPositionResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IStartReplicationResponse); + constructor(properties?: tabletmanagerdata.IPrimaryPositionResponse); + + /** PrimaryPositionResponse position. */ + public position: string; /** - * Creates a new StartReplicationResponse instance using the specified properties. + * Creates a new PrimaryPositionResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StartReplicationResponse instance + * @returns PrimaryPositionResponse instance */ - public static create(properties?: tabletmanagerdata.IStartReplicationResponse): tabletmanagerdata.StartReplicationResponse; + public static create(properties?: tabletmanagerdata.IPrimaryPositionResponse): tabletmanagerdata.PrimaryPositionResponse; /** - * Encodes the specified StartReplicationResponse message. Does not implicitly {@link tabletmanagerdata.StartReplicationResponse.verify|verify} messages. - * @param message StartReplicationResponse message or plain object to encode + * Encodes the specified PrimaryPositionResponse message. Does not implicitly {@link tabletmanagerdata.PrimaryPositionResponse.verify|verify} messages. + * @param message PrimaryPositionResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPrimaryPositionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StartReplicationResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StartReplicationResponse.verify|verify} messages. - * @param message StartReplicationResponse message or plain object to encode + * Encodes the specified PrimaryPositionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryPositionResponse.verify|verify} messages. + * @param message PrimaryPositionResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPrimaryPositionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartReplicationResponse message from the specified reader or buffer. + * Decodes a PrimaryPositionResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StartReplicationResponse + * @returns PrimaryPositionResponse * @throws {Error} If the payload is 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.StartReplicationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PrimaryPositionResponse; /** - * Decodes a StartReplicationResponse message from the specified reader or buffer, length delimited. + * Decodes a PrimaryPositionResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartReplicationResponse + * @returns PrimaryPositionResponse * @throws {Error} If the 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.StartReplicationResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PrimaryPositionResponse; /** - * Verifies a StartReplicationResponse message. + * Verifies a PrimaryPositionResponse message. * @param message Plain object 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. + * Creates a PrimaryPositionResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartReplicationResponse + * @returns PrimaryPositionResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StartReplicationResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PrimaryPositionResponse; /** - * Creates a plain object from a StartReplicationResponse message. Also converts values to other types if specified. - * @param message StartReplicationResponse + * Creates a plain object from a PrimaryPositionResponse message. Also converts values to other types if specified. + * @param message PrimaryPositionResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.StartReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.PrimaryPositionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartReplicationResponse to JSON. + * Converts this PrimaryPositionResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StartReplicationResponse + * Gets the default type url for PrimaryPositionResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StartReplicationUntilAfterRequest. */ - interface IStartReplicationUntilAfterRequest { + /** Properties of a WaitForPositionRequest. */ + interface IWaitForPositionRequest { - /** StartReplicationUntilAfterRequest position */ + /** WaitForPositionRequest position */ position?: (string|null); - - /** StartReplicationUntilAfterRequest wait_timeout */ - wait_timeout?: (number|Long|null); } - /** Represents a StartReplicationUntilAfterRequest. */ - class StartReplicationUntilAfterRequest implements IStartReplicationUntilAfterRequest { + /** Represents a WaitForPositionRequest. */ + class WaitForPositionRequest implements IWaitForPositionRequest { /** - * Constructs a new StartReplicationUntilAfterRequest. + * Constructs a new WaitForPositionRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IStartReplicationUntilAfterRequest); + constructor(properties?: tabletmanagerdata.IWaitForPositionRequest); - /** StartReplicationUntilAfterRequest position. */ + /** WaitForPositionRequest position. */ public position: string; - /** StartReplicationUntilAfterRequest wait_timeout. */ - public wait_timeout: (number|Long); - /** - * Creates a new StartReplicationUntilAfterRequest instance using the specified properties. + * Creates a new WaitForPositionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StartReplicationUntilAfterRequest instance + * @returns WaitForPositionRequest instance */ - public static create(properties?: tabletmanagerdata.IStartReplicationUntilAfterRequest): tabletmanagerdata.StartReplicationUntilAfterRequest; + public static create(properties?: tabletmanagerdata.IWaitForPositionRequest): tabletmanagerdata.WaitForPositionRequest; /** - * Encodes the specified StartReplicationUntilAfterRequest message. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterRequest.verify|verify} messages. - * @param message StartReplicationUntilAfterRequest message or plain object to encode + * Encodes the specified WaitForPositionRequest message. Does not implicitly {@link tabletmanagerdata.WaitForPositionRequest.verify|verify} messages. + * @param message WaitForPositionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IStartReplicationUntilAfterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IWaitForPositionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StartReplicationUntilAfterRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterRequest.verify|verify} messages. - * @param message StartReplicationUntilAfterRequest message or plain object to encode + * Encodes the specified WaitForPositionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.WaitForPositionRequest.verify|verify} messages. + * @param message WaitForPositionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IStartReplicationUntilAfterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IWaitForPositionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartReplicationUntilAfterRequest message from the specified reader or buffer. + * Decodes a WaitForPositionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StartReplicationUntilAfterRequest + * @returns WaitForPositionRequest * @throws {Error} If the payload is 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.StartReplicationUntilAfterRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.WaitForPositionRequest; /** - * Decodes a StartReplicationUntilAfterRequest message from the specified reader or buffer, length delimited. + * Decodes a WaitForPositionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartReplicationUntilAfterRequest + * @returns WaitForPositionRequest * @throws {Error} If the 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.StartReplicationUntilAfterRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.WaitForPositionRequest; /** - * Verifies a StartReplicationUntilAfterRequest message. + * Verifies a WaitForPositionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StartReplicationUntilAfterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WaitForPositionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartReplicationUntilAfterRequest + * @returns WaitForPositionRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StartReplicationUntilAfterRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.WaitForPositionRequest; /** - * Creates a plain object from a StartReplicationUntilAfterRequest message. Also converts values to other types if specified. - * @param message StartReplicationUntilAfterRequest + * Creates a plain object from a WaitForPositionRequest message. Also converts values to other types if specified. + * @param message WaitForPositionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.StartReplicationUntilAfterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.WaitForPositionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartReplicationUntilAfterRequest to JSON. + * Converts this WaitForPositionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StartReplicationUntilAfterRequest + * Gets the default type url for WaitForPositionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StartReplicationUntilAfterResponse. */ - interface IStartReplicationUntilAfterResponse { + /** Properties of a WaitForPositionResponse. */ + interface IWaitForPositionResponse { } - /** Represents a StartReplicationUntilAfterResponse. */ - class StartReplicationUntilAfterResponse implements IStartReplicationUntilAfterResponse { + /** Represents a WaitForPositionResponse. */ + class WaitForPositionResponse implements IWaitForPositionResponse { /** - * Constructs a new StartReplicationUntilAfterResponse. + * Constructs a new WaitForPositionResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IStartReplicationUntilAfterResponse); + constructor(properties?: tabletmanagerdata.IWaitForPositionResponse); /** - * Creates a new StartReplicationUntilAfterResponse instance using the specified properties. + * Creates a new WaitForPositionResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StartReplicationUntilAfterResponse instance + * @returns WaitForPositionResponse instance */ - public static create(properties?: tabletmanagerdata.IStartReplicationUntilAfterResponse): tabletmanagerdata.StartReplicationUntilAfterResponse; + public static create(properties?: tabletmanagerdata.IWaitForPositionResponse): tabletmanagerdata.WaitForPositionResponse; /** - * Encodes the specified StartReplicationUntilAfterResponse message. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterResponse.verify|verify} messages. - * @param message StartReplicationUntilAfterResponse message or plain object to encode + * Encodes the specified WaitForPositionResponse message. Does not implicitly {@link tabletmanagerdata.WaitForPositionResponse.verify|verify} messages. + * @param message WaitForPositionResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IStartReplicationUntilAfterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IWaitForPositionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StartReplicationUntilAfterResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterResponse.verify|verify} messages. - * @param message StartReplicationUntilAfterResponse message or plain object to encode + * Encodes the specified WaitForPositionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.WaitForPositionResponse.verify|verify} messages. + * @param message WaitForPositionResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IStartReplicationUntilAfterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IWaitForPositionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartReplicationUntilAfterResponse message from the specified reader or buffer. + * Decodes a WaitForPositionResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StartReplicationUntilAfterResponse + * @returns WaitForPositionResponse * @throws {Error} If the payload is 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.StartReplicationUntilAfterResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.WaitForPositionResponse; /** - * Decodes a StartReplicationUntilAfterResponse message from the specified reader or buffer, length delimited. + * Decodes a WaitForPositionResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartReplicationUntilAfterResponse + * @returns WaitForPositionResponse * @throws {Error} If the 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.StartReplicationUntilAfterResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.WaitForPositionResponse; /** - * Verifies a StartReplicationUntilAfterResponse message. + * Verifies a WaitForPositionResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StartReplicationUntilAfterResponse message from a plain object. Also converts values to their respective internal types. + * Creates a WaitForPositionResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartReplicationUntilAfterResponse + * @returns WaitForPositionResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StartReplicationUntilAfterResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.WaitForPositionResponse; /** - * Creates a plain object from a StartReplicationUntilAfterResponse message. Also converts values to other types if specified. - * @param message StartReplicationUntilAfterResponse + * Creates a plain object from a WaitForPositionResponse message. Also converts values to other types if specified. + * @param message WaitForPositionResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.StartReplicationUntilAfterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.WaitForPositionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartReplicationUntilAfterResponse to JSON. + * Converts this WaitForPositionResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StartReplicationUntilAfterResponse + * Gets the default type url for WaitForPositionResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetReplicasRequest. */ - interface IGetReplicasRequest { + /** Properties of a StopReplicationRequest. */ + interface IStopReplicationRequest { } - /** Represents a GetReplicasRequest. */ - class GetReplicasRequest implements IGetReplicasRequest { + /** Represents a StopReplicationRequest. */ + class StopReplicationRequest implements IStopReplicationRequest { /** - * Constructs a new GetReplicasRequest. + * Constructs a new StopReplicationRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetReplicasRequest); + constructor(properties?: tabletmanagerdata.IStopReplicationRequest); /** - * Creates a new GetReplicasRequest instance using the specified properties. + * Creates a new StopReplicationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetReplicasRequest instance + * @returns StopReplicationRequest instance */ - public static create(properties?: tabletmanagerdata.IGetReplicasRequest): tabletmanagerdata.GetReplicasRequest; + public static create(properties?: tabletmanagerdata.IStopReplicationRequest): tabletmanagerdata.StopReplicationRequest; /** - * Encodes the specified GetReplicasRequest message. Does not implicitly {@link tabletmanagerdata.GetReplicasRequest.verify|verify} messages. - * @param message GetReplicasRequest message or plain object to encode + * Encodes the specified StopReplicationRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IGetReplicasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetReplicasRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetReplicasRequest.verify|verify} messages. - * @param message GetReplicasRequest message or plain object to encode + * Encodes the specified StopReplicationRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IGetReplicasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetReplicasRequest message from the specified reader or buffer. + * 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 GetReplicasRequest + * @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): tabletmanagerdata.GetReplicasRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.StopReplicationRequest; /** - * Decodes a GetReplicasRequest message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetReplicasRequest + * @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)): tabletmanagerdata.GetReplicasRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.StopReplicationRequest; /** - * Verifies a GetReplicasRequest message. + * 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 GetReplicasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetReplicasRequest + * @returns StopReplicationRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetReplicasRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StopReplicationRequest; /** - * Creates a plain object from a GetReplicasRequest message. Also converts values to other types if specified. - * @param message GetReplicasRequest + * 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: tabletmanagerdata.GetReplicasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.StopReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetReplicasRequest to JSON. + * Converts this StopReplicationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetReplicasRequest + * 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 GetReplicasResponse. */ - interface IGetReplicasResponse { - - /** GetReplicasResponse addrs */ - addrs?: (string[]|null); + /** Properties of a StopReplicationResponse. */ + interface IStopReplicationResponse { } - /** Represents a GetReplicasResponse. */ - class GetReplicasResponse implements IGetReplicasResponse { + /** Represents a StopReplicationResponse. */ + class StopReplicationResponse implements IStopReplicationResponse { /** - * Constructs a new GetReplicasResponse. + * Constructs a new StopReplicationResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetReplicasResponse); - - /** GetReplicasResponse addrs. */ - public addrs: string[]; + constructor(properties?: tabletmanagerdata.IStopReplicationResponse); /** - * Creates a new GetReplicasResponse instance using the specified properties. + * Creates a new StopReplicationResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetReplicasResponse instance + * @returns StopReplicationResponse instance */ - public static create(properties?: tabletmanagerdata.IGetReplicasResponse): tabletmanagerdata.GetReplicasResponse; + public static create(properties?: tabletmanagerdata.IStopReplicationResponse): tabletmanagerdata.StopReplicationResponse; /** - * Encodes the specified GetReplicasResponse message. Does not implicitly {@link tabletmanagerdata.GetReplicasResponse.verify|verify} messages. - * @param message GetReplicasResponse message or plain object to encode + * Encodes the specified StopReplicationResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IGetReplicasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetReplicasResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetReplicasResponse.verify|verify} messages. - * @param message GetReplicasResponse message or plain object to encode + * Encodes the specified StopReplicationResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IGetReplicasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetReplicasResponse message from the specified reader or buffer. + * 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 GetReplicasResponse + * @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): tabletmanagerdata.GetReplicasResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.StopReplicationResponse; /** - * Decodes a GetReplicasResponse message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetReplicasResponse + * @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)): tabletmanagerdata.GetReplicasResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.StopReplicationResponse; /** - * Verifies a GetReplicasResponse message. + * 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 GetReplicasResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetReplicasResponse + * @returns StopReplicationResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetReplicasResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StopReplicationResponse; /** - * Creates a plain object from a GetReplicasResponse message. Also converts values to other types if specified. - * @param message GetReplicasResponse + * 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: tabletmanagerdata.GetReplicasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.StopReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetReplicasResponse to JSON. + * Converts this StopReplicationResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetReplicasResponse + * 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 ResetReplicationRequest. */ - interface IResetReplicationRequest { + /** Properties of a StopReplicationMinimumRequest. */ + interface IStopReplicationMinimumRequest { + + /** StopReplicationMinimumRequest position */ + position?: (string|null); + + /** StopReplicationMinimumRequest wait_timeout */ + wait_timeout?: (number|Long|null); } - /** Represents a ResetReplicationRequest. */ - class ResetReplicationRequest implements IResetReplicationRequest { + /** Represents a StopReplicationMinimumRequest. */ + class StopReplicationMinimumRequest implements IStopReplicationMinimumRequest { /** - * Constructs a new ResetReplicationRequest. + * Constructs a new StopReplicationMinimumRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IResetReplicationRequest); + constructor(properties?: tabletmanagerdata.IStopReplicationMinimumRequest); + + /** StopReplicationMinimumRequest position. */ + public position: string; + + /** StopReplicationMinimumRequest wait_timeout. */ + public wait_timeout: (number|Long); /** - * Creates a new ResetReplicationRequest instance using the specified properties. + * Creates a new StopReplicationMinimumRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ResetReplicationRequest instance + * @returns StopReplicationMinimumRequest instance */ - public static create(properties?: tabletmanagerdata.IResetReplicationRequest): tabletmanagerdata.ResetReplicationRequest; + public static create(properties?: tabletmanagerdata.IStopReplicationMinimumRequest): tabletmanagerdata.StopReplicationMinimumRequest; /** - * Encodes the specified ResetReplicationRequest message. Does not implicitly {@link tabletmanagerdata.ResetReplicationRequest.verify|verify} messages. - * @param message ResetReplicationRequest message or plain object to encode + * Encodes the specified StopReplicationMinimumRequest message. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumRequest.verify|verify} messages. + * @param message StopReplicationMinimumRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IResetReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IStopReplicationMinimumRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResetReplicationRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationRequest.verify|verify} messages. - * @param message ResetReplicationRequest message or plain object to encode + * Encodes the specified StopReplicationMinimumRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumRequest.verify|verify} messages. + * @param message StopReplicationMinimumRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IResetReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IStopReplicationMinimumRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResetReplicationRequest message from the specified reader or buffer. + * Decodes a StopReplicationMinimumRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResetReplicationRequest + * @returns StopReplicationMinimumRequest * @throws {Error} If the payload is 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.ResetReplicationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.StopReplicationMinimumRequest; /** - * Decodes a ResetReplicationRequest message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationMinimumRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResetReplicationRequest + * @returns StopReplicationMinimumRequest * @throws {Error} If the 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.ResetReplicationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.StopReplicationMinimumRequest; /** - * Verifies a ResetReplicationRequest message. + * Verifies a StopReplicationMinimumRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResetReplicationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationMinimumRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResetReplicationRequest + * @returns StopReplicationMinimumRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ResetReplicationRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StopReplicationMinimumRequest; /** - * Creates a plain object from a ResetReplicationRequest message. Also converts values to other types if specified. - * @param message ResetReplicationRequest + * Creates a plain object from a StopReplicationMinimumRequest message. Also converts values to other types if specified. + * @param message StopReplicationMinimumRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ResetReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.StopReplicationMinimumRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResetReplicationRequest to JSON. + * Converts this StopReplicationMinimumRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResetReplicationRequest + * Gets the default type url for StopReplicationMinimumRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResetReplicationResponse. */ - interface IResetReplicationResponse { + /** Properties of a StopReplicationMinimumResponse. */ + interface IStopReplicationMinimumResponse { + + /** StopReplicationMinimumResponse position */ + position?: (string|null); } - /** Represents a ResetReplicationResponse. */ - class ResetReplicationResponse implements IResetReplicationResponse { + /** Represents a StopReplicationMinimumResponse. */ + class StopReplicationMinimumResponse implements IStopReplicationMinimumResponse { /** - * Constructs a new ResetReplicationResponse. + * Constructs a new StopReplicationMinimumResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IResetReplicationResponse); + constructor(properties?: tabletmanagerdata.IStopReplicationMinimumResponse); + + /** StopReplicationMinimumResponse position. */ + public position: string; /** - * Creates a new ResetReplicationResponse instance using the specified properties. + * Creates a new StopReplicationMinimumResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ResetReplicationResponse instance + * @returns StopReplicationMinimumResponse instance */ - public static create(properties?: tabletmanagerdata.IResetReplicationResponse): tabletmanagerdata.ResetReplicationResponse; + public static create(properties?: tabletmanagerdata.IStopReplicationMinimumResponse): tabletmanagerdata.StopReplicationMinimumResponse; /** - * Encodes the specified ResetReplicationResponse message. Does not implicitly {@link tabletmanagerdata.ResetReplicationResponse.verify|verify} messages. - * @param message ResetReplicationResponse message or plain object to encode + * Encodes the specified StopReplicationMinimumResponse message. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumResponse.verify|verify} messages. + * @param message StopReplicationMinimumResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IResetReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IStopReplicationMinimumResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResetReplicationResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationResponse.verify|verify} messages. - * @param message ResetReplicationResponse message or plain object to encode + * Encodes the specified StopReplicationMinimumResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumResponse.verify|verify} messages. + * @param message StopReplicationMinimumResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IResetReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IStopReplicationMinimumResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResetReplicationResponse message from the specified reader or buffer. + * Decodes a StopReplicationMinimumResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResetReplicationResponse + * @returns StopReplicationMinimumResponse * @throws {Error} If the payload is 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.ResetReplicationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.StopReplicationMinimumResponse; /** - * Decodes a ResetReplicationResponse message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationMinimumResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResetReplicationResponse + * @returns StopReplicationMinimumResponse * @throws {Error} If the 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.ResetReplicationResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.StopReplicationMinimumResponse; /** - * Verifies a ResetReplicationResponse message. + * Verifies a StopReplicationMinimumResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResetReplicationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationMinimumResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResetReplicationResponse + * @returns StopReplicationMinimumResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ResetReplicationResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StopReplicationMinimumResponse; /** - * Creates a plain object from a ResetReplicationResponse message. Also converts values to other types if specified. - * @param message ResetReplicationResponse + * Creates a plain object from a StopReplicationMinimumResponse message. Also converts values to other types if specified. + * @param message StopReplicationMinimumResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ResetReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.StopReplicationMinimumResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResetReplicationResponse to JSON. + * Converts this StopReplicationMinimumResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResetReplicationResponse + * Gets the default type url for StopReplicationMinimumResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VReplicationExecRequest. */ - interface IVReplicationExecRequest { + /** Properties of a StartReplicationRequest. */ + interface IStartReplicationRequest { - /** VReplicationExecRequest query */ - query?: (string|null); + /** StartReplicationRequest semiSync */ + semiSync?: (boolean|null); } - /** Represents a VReplicationExecRequest. */ - class VReplicationExecRequest implements IVReplicationExecRequest { + /** Represents a StartReplicationRequest. */ + class StartReplicationRequest implements IStartReplicationRequest { /** - * Constructs a new VReplicationExecRequest. + * Constructs a new StartReplicationRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IVReplicationExecRequest); + constructor(properties?: tabletmanagerdata.IStartReplicationRequest); - /** VReplicationExecRequest query. */ - public query: string; + /** StartReplicationRequest semiSync. */ + public semiSync: boolean; /** - * Creates a new VReplicationExecRequest instance using the specified properties. + * Creates a new StartReplicationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VReplicationExecRequest instance + * @returns StartReplicationRequest instance */ - public static create(properties?: tabletmanagerdata.IVReplicationExecRequest): tabletmanagerdata.VReplicationExecRequest; + public static create(properties?: tabletmanagerdata.IStartReplicationRequest): tabletmanagerdata.StartReplicationRequest; /** - * Encodes the specified VReplicationExecRequest message. Does not implicitly {@link tabletmanagerdata.VReplicationExecRequest.verify|verify} messages. - * @param message VReplicationExecRequest message or plain object to encode + * Encodes the specified StartReplicationRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IVReplicationExecRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VReplicationExecRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationExecRequest.verify|verify} messages. - * @param message VReplicationExecRequest message or plain object to encode + * Encodes the specified StartReplicationRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IVReplicationExecRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VReplicationExecRequest message from the specified reader or buffer. + * 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 VReplicationExecRequest + * @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): tabletmanagerdata.VReplicationExecRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.StartReplicationRequest; /** - * Decodes a VReplicationExecRequest message from the specified reader or buffer, length delimited. + * Decodes a StartReplicationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VReplicationExecRequest + * @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)): tabletmanagerdata.VReplicationExecRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.StartReplicationRequest; /** - * Verifies a VReplicationExecRequest message. + * 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 VReplicationExecRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartReplicationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VReplicationExecRequest + * @returns StartReplicationRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VReplicationExecRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StartReplicationRequest; /** - * Creates a plain object from a VReplicationExecRequest message. Also converts values to other types if specified. - * @param message VReplicationExecRequest + * 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: tabletmanagerdata.VReplicationExecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.StartReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VReplicationExecRequest to JSON. + * Converts this StartReplicationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VReplicationExecRequest + * 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 VReplicationExecResponse. */ - interface IVReplicationExecResponse { - - /** VReplicationExecResponse result */ - result?: (query.IQueryResult|null); + /** Properties of a StartReplicationResponse. */ + interface IStartReplicationResponse { } - /** Represents a VReplicationExecResponse. */ - class VReplicationExecResponse implements IVReplicationExecResponse { + /** Represents a StartReplicationResponse. */ + class StartReplicationResponse implements IStartReplicationResponse { /** - * Constructs a new VReplicationExecResponse. + * Constructs a new StartReplicationResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IVReplicationExecResponse); - - /** VReplicationExecResponse result. */ - public result?: (query.IQueryResult|null); + constructor(properties?: tabletmanagerdata.IStartReplicationResponse); /** - * Creates a new VReplicationExecResponse instance using the specified properties. + * Creates a new StartReplicationResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VReplicationExecResponse instance + * @returns StartReplicationResponse instance */ - public static create(properties?: tabletmanagerdata.IVReplicationExecResponse): tabletmanagerdata.VReplicationExecResponse; + public static create(properties?: tabletmanagerdata.IStartReplicationResponse): tabletmanagerdata.StartReplicationResponse; /** - * Encodes the specified VReplicationExecResponse message. Does not implicitly {@link tabletmanagerdata.VReplicationExecResponse.verify|verify} messages. - * @param message VReplicationExecResponse message or plain object to encode + * Encodes the specified StartReplicationResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IVReplicationExecResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VReplicationExecResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationExecResponse.verify|verify} messages. - * @param message VReplicationExecResponse message or plain object to encode + * Encodes the specified StartReplicationResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IVReplicationExecResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VReplicationExecResponse message from the specified reader or buffer. + * 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 VReplicationExecResponse + * @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): tabletmanagerdata.VReplicationExecResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.StartReplicationResponse; /** - * Decodes a VReplicationExecResponse message from the specified reader or buffer, length delimited. + * Decodes a StartReplicationResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VReplicationExecResponse + * @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)): tabletmanagerdata.VReplicationExecResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.StartReplicationResponse; /** - * Verifies a VReplicationExecResponse message. + * 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 VReplicationExecResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StartReplicationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VReplicationExecResponse + * @returns StartReplicationResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VReplicationExecResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StartReplicationResponse; /** - * Creates a plain object from a VReplicationExecResponse message. Also converts values to other types if specified. - * @param message VReplicationExecResponse + * 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: tabletmanagerdata.VReplicationExecResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.StartReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VReplicationExecResponse to JSON. + * Converts this StartReplicationResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VReplicationExecResponse + * 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 VReplicationWaitForPosRequest. */ - interface IVReplicationWaitForPosRequest { - - /** VReplicationWaitForPosRequest id */ - id?: (number|null); + /** Properties of a StartReplicationUntilAfterRequest. */ + interface IStartReplicationUntilAfterRequest { - /** VReplicationWaitForPosRequest position */ + /** StartReplicationUntilAfterRequest position */ position?: (string|null); + + /** StartReplicationUntilAfterRequest wait_timeout */ + wait_timeout?: (number|Long|null); } - /** Represents a VReplicationWaitForPosRequest. */ - class VReplicationWaitForPosRequest implements IVReplicationWaitForPosRequest { + /** Represents a StartReplicationUntilAfterRequest. */ + class StartReplicationUntilAfterRequest implements IStartReplicationUntilAfterRequest { /** - * Constructs a new VReplicationWaitForPosRequest. + * Constructs a new StartReplicationUntilAfterRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IVReplicationWaitForPosRequest); - - /** VReplicationWaitForPosRequest id. */ - public id: number; + constructor(properties?: tabletmanagerdata.IStartReplicationUntilAfterRequest); - /** VReplicationWaitForPosRequest position. */ + /** StartReplicationUntilAfterRequest position. */ public position: string; + /** StartReplicationUntilAfterRequest wait_timeout. */ + public wait_timeout: (number|Long); + /** - * Creates a new VReplicationWaitForPosRequest instance using the specified properties. + * Creates a new StartReplicationUntilAfterRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VReplicationWaitForPosRequest instance + * @returns StartReplicationUntilAfterRequest instance */ - public static create(properties?: tabletmanagerdata.IVReplicationWaitForPosRequest): tabletmanagerdata.VReplicationWaitForPosRequest; + public static create(properties?: tabletmanagerdata.IStartReplicationUntilAfterRequest): tabletmanagerdata.StartReplicationUntilAfterRequest; /** - * Encodes the specified VReplicationWaitForPosRequest message. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosRequest.verify|verify} messages. - * @param message VReplicationWaitForPosRequest message or plain object to encode + * Encodes the specified StartReplicationUntilAfterRequest message. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterRequest.verify|verify} messages. + * @param message StartReplicationUntilAfterRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IVReplicationWaitForPosRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IStartReplicationUntilAfterRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VReplicationWaitForPosRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosRequest.verify|verify} messages. - * @param message VReplicationWaitForPosRequest message or plain object to encode + * Encodes the specified StartReplicationUntilAfterRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterRequest.verify|verify} messages. + * @param message StartReplicationUntilAfterRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IVReplicationWaitForPosRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IStartReplicationUntilAfterRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VReplicationWaitForPosRequest message from the specified reader or buffer. + * Decodes a StartReplicationUntilAfterRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VReplicationWaitForPosRequest + * @returns StartReplicationUntilAfterRequest * @throws {Error} If the payload is 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.VReplicationWaitForPosRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.StartReplicationUntilAfterRequest; /** - * Decodes a VReplicationWaitForPosRequest message from the specified reader or buffer, length delimited. + * Decodes a StartReplicationUntilAfterRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VReplicationWaitForPosRequest + * @returns StartReplicationUntilAfterRequest * @throws {Error} If the 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.VReplicationWaitForPosRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.StartReplicationUntilAfterRequest; /** - * Verifies a VReplicationWaitForPosRequest message. + * Verifies a StartReplicationUntilAfterRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VReplicationWaitForPosRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartReplicationUntilAfterRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VReplicationWaitForPosRequest + * @returns StartReplicationUntilAfterRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VReplicationWaitForPosRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StartReplicationUntilAfterRequest; /** - * Creates a plain object from a VReplicationWaitForPosRequest message. Also converts values to other types if specified. - * @param message VReplicationWaitForPosRequest + * Creates a plain object from a StartReplicationUntilAfterRequest message. Also converts values to other types if specified. + * @param message StartReplicationUntilAfterRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.VReplicationWaitForPosRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.StartReplicationUntilAfterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VReplicationWaitForPosRequest to JSON. + * Converts this StartReplicationUntilAfterRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VReplicationWaitForPosRequest + * Gets the default type url for StartReplicationUntilAfterRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VReplicationWaitForPosResponse. */ - interface IVReplicationWaitForPosResponse { + /** Properties of a StartReplicationUntilAfterResponse. */ + interface IStartReplicationUntilAfterResponse { } - /** Represents a VReplicationWaitForPosResponse. */ - class VReplicationWaitForPosResponse implements IVReplicationWaitForPosResponse { + /** Represents a StartReplicationUntilAfterResponse. */ + class StartReplicationUntilAfterResponse implements IStartReplicationUntilAfterResponse { /** - * Constructs a new VReplicationWaitForPosResponse. + * Constructs a new StartReplicationUntilAfterResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IVReplicationWaitForPosResponse); + constructor(properties?: tabletmanagerdata.IStartReplicationUntilAfterResponse); /** - * Creates a new VReplicationWaitForPosResponse instance using the specified properties. + * Creates a new StartReplicationUntilAfterResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VReplicationWaitForPosResponse instance + * @returns StartReplicationUntilAfterResponse instance */ - public static create(properties?: tabletmanagerdata.IVReplicationWaitForPosResponse): tabletmanagerdata.VReplicationWaitForPosResponse; + public static create(properties?: tabletmanagerdata.IStartReplicationUntilAfterResponse): tabletmanagerdata.StartReplicationUntilAfterResponse; /** - * Encodes the specified VReplicationWaitForPosResponse message. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosResponse.verify|verify} messages. - * @param message VReplicationWaitForPosResponse message or plain object to encode + * Encodes the specified StartReplicationUntilAfterResponse message. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterResponse.verify|verify} messages. + * @param message StartReplicationUntilAfterResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IVReplicationWaitForPosResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IStartReplicationUntilAfterResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VReplicationWaitForPosResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosResponse.verify|verify} messages. - * @param message VReplicationWaitForPosResponse message or plain object to encode + * Encodes the specified StartReplicationUntilAfterResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterResponse.verify|verify} messages. + * @param message StartReplicationUntilAfterResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IVReplicationWaitForPosResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IStartReplicationUntilAfterResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VReplicationWaitForPosResponse message from the specified reader or buffer. + * Decodes a StartReplicationUntilAfterResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VReplicationWaitForPosResponse + * @returns StartReplicationUntilAfterResponse * @throws {Error} If the payload is 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.VReplicationWaitForPosResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.StartReplicationUntilAfterResponse; /** - * Decodes a VReplicationWaitForPosResponse message from the specified reader or buffer, length delimited. + * Decodes a StartReplicationUntilAfterResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VReplicationWaitForPosResponse + * @returns StartReplicationUntilAfterResponse * @throws {Error} If the 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.VReplicationWaitForPosResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.StartReplicationUntilAfterResponse; /** - * Verifies a VReplicationWaitForPosResponse message. + * Verifies a StartReplicationUntilAfterResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VReplicationWaitForPosResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StartReplicationUntilAfterResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VReplicationWaitForPosResponse + * @returns StartReplicationUntilAfterResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VReplicationWaitForPosResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StartReplicationUntilAfterResponse; /** - * Creates a plain object from a VReplicationWaitForPosResponse message. Also converts values to other types if specified. - * @param message VReplicationWaitForPosResponse + * Creates a plain object from a StartReplicationUntilAfterResponse message. Also converts values to other types if specified. + * @param message StartReplicationUntilAfterResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.VReplicationWaitForPosResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.StartReplicationUntilAfterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VReplicationWaitForPosResponse to JSON. + * Converts this StartReplicationUntilAfterResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VReplicationWaitForPosResponse + * Gets the default type url for StartReplicationUntilAfterResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InitPrimaryRequest. */ - interface IInitPrimaryRequest { - - /** InitPrimaryRequest semiSync */ - semiSync?: (boolean|null); + /** Properties of a GetReplicasRequest. */ + interface IGetReplicasRequest { } - /** Represents an InitPrimaryRequest. */ - class InitPrimaryRequest implements IInitPrimaryRequest { + /** Represents a GetReplicasRequest. */ + class GetReplicasRequest implements IGetReplicasRequest { /** - * Constructs a new InitPrimaryRequest. + * Constructs a new GetReplicasRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IInitPrimaryRequest); - - /** InitPrimaryRequest semiSync. */ - public semiSync: boolean; + constructor(properties?: tabletmanagerdata.IGetReplicasRequest); /** - * Creates a new InitPrimaryRequest instance using the specified properties. + * Creates a new GetReplicasRequest instance using the specified properties. * @param [properties] Properties to set - * @returns InitPrimaryRequest instance + * @returns GetReplicasRequest instance */ - public static create(properties?: tabletmanagerdata.IInitPrimaryRequest): tabletmanagerdata.InitPrimaryRequest; + public static create(properties?: tabletmanagerdata.IGetReplicasRequest): tabletmanagerdata.GetReplicasRequest; /** - * Encodes the specified InitPrimaryRequest message. Does not implicitly {@link tabletmanagerdata.InitPrimaryRequest.verify|verify} messages. - * @param message InitPrimaryRequest message or plain object to encode + * Encodes the specified GetReplicasRequest message. Does not implicitly {@link tabletmanagerdata.GetReplicasRequest.verify|verify} messages. + * @param message GetReplicasRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IInitPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetReplicasRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InitPrimaryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.InitPrimaryRequest.verify|verify} messages. - * @param message InitPrimaryRequest message or plain object to encode + * Encodes the specified GetReplicasRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetReplicasRequest.verify|verify} messages. + * @param message GetReplicasRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IInitPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetReplicasRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InitPrimaryRequest message from the specified reader or buffer. + * Decodes a GetReplicasRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InitPrimaryRequest + * @returns GetReplicasRequest * @throws {Error} If the payload is 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.InitPrimaryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetReplicasRequest; /** - * Decodes an InitPrimaryRequest message from the specified reader or buffer, length delimited. + * Decodes a GetReplicasRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InitPrimaryRequest + * @returns GetReplicasRequest * @throws {Error} If the 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.InitPrimaryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetReplicasRequest; /** - * Verifies an InitPrimaryRequest message. + * Verifies a GetReplicasRequest message. * @param message Plain 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 InitPrimaryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetReplicasRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InitPrimaryRequest + * @returns GetReplicasRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.InitPrimaryRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetReplicasRequest; /** - * Creates a plain object from an InitPrimaryRequest message. Also converts values to other types if specified. - * @param message InitPrimaryRequest + * Creates a plain object from a GetReplicasRequest message. Also converts values to other types if specified. + * @param message GetReplicasRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.InitPrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetReplicasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InitPrimaryRequest to JSON. + * Converts this GetReplicasRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InitPrimaryRequest + * Gets the default type url for GetReplicasRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InitPrimaryResponse. */ - interface IInitPrimaryResponse { + /** Properties of a GetReplicasResponse. */ + interface IGetReplicasResponse { - /** InitPrimaryResponse position */ - position?: (string|null); + /** GetReplicasResponse addrs */ + addrs?: (string[]|null); } - /** Represents an InitPrimaryResponse. */ - class InitPrimaryResponse implements IInitPrimaryResponse { + /** Represents a GetReplicasResponse. */ + class GetReplicasResponse implements IGetReplicasResponse { /** - * Constructs a new InitPrimaryResponse. + * Constructs a new GetReplicasResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IInitPrimaryResponse); + constructor(properties?: tabletmanagerdata.IGetReplicasResponse); - /** InitPrimaryResponse position. */ - public position: string; + /** GetReplicasResponse addrs. */ + public addrs: string[]; /** - * Creates a new InitPrimaryResponse instance using the specified properties. + * Creates a new GetReplicasResponse instance using the specified properties. * @param [properties] Properties to set - * @returns InitPrimaryResponse instance + * @returns GetReplicasResponse instance */ - public static create(properties?: tabletmanagerdata.IInitPrimaryResponse): tabletmanagerdata.InitPrimaryResponse; + public static create(properties?: tabletmanagerdata.IGetReplicasResponse): tabletmanagerdata.GetReplicasResponse; /** - * Encodes the specified InitPrimaryResponse message. Does not implicitly {@link tabletmanagerdata.InitPrimaryResponse.verify|verify} messages. - * @param message InitPrimaryResponse message or plain object to encode + * Encodes the specified GetReplicasResponse message. Does not implicitly {@link tabletmanagerdata.GetReplicasResponse.verify|verify} messages. + * @param message GetReplicasResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IInitPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetReplicasResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InitPrimaryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.InitPrimaryResponse.verify|verify} messages. - * @param message InitPrimaryResponse message or plain object to encode + * Encodes the specified GetReplicasResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetReplicasResponse.verify|verify} messages. + * @param message GetReplicasResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IInitPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetReplicasResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InitPrimaryResponse message from the specified reader or buffer. + * Decodes a GetReplicasResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InitPrimaryResponse + * @returns GetReplicasResponse * @throws {Error} If the payload is 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.InitPrimaryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetReplicasResponse; /** - * Decodes an InitPrimaryResponse message from the specified reader or buffer, length delimited. + * Decodes a GetReplicasResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InitPrimaryResponse + * @returns GetReplicasResponse * @throws {Error} If the 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.InitPrimaryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetReplicasResponse; /** - * Verifies an InitPrimaryResponse message. + * Verifies a GetReplicasResponse message. * @param message Plain 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 InitPrimaryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetReplicasResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InitPrimaryResponse + * @returns GetReplicasResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.InitPrimaryResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetReplicasResponse; /** - * Creates a plain object from an InitPrimaryResponse message. Also converts values to other types if specified. - * @param message InitPrimaryResponse + * Creates a plain object from a GetReplicasResponse message. Also converts values to other types if specified. + * @param message GetReplicasResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.InitPrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetReplicasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InitPrimaryResponse to JSON. + * Converts this GetReplicasResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InitPrimaryResponse + * Gets the default type url for GetReplicasResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PopulateReparentJournalRequest. */ - interface IPopulateReparentJournalRequest { - - /** PopulateReparentJournalRequest time_created_ns */ - time_created_ns?: (number|Long|null); - - /** PopulateReparentJournalRequest action_name */ - action_name?: (string|null); - - /** PopulateReparentJournalRequest primary_alias */ - primary_alias?: (topodata.ITabletAlias|null); - - /** PopulateReparentJournalRequest replication_position */ - replication_position?: (string|null); + /** Properties of a ResetReplicationRequest. */ + interface IResetReplicationRequest { } - /** Represents a PopulateReparentJournalRequest. */ - class PopulateReparentJournalRequest implements IPopulateReparentJournalRequest { + /** Represents a ResetReplicationRequest. */ + class ResetReplicationRequest implements IResetReplicationRequest { /** - * Constructs a new PopulateReparentJournalRequest. + * Constructs a new ResetReplicationRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPopulateReparentJournalRequest); - - /** PopulateReparentJournalRequest time_created_ns. */ - public time_created_ns: (number|Long); - - /** PopulateReparentJournalRequest action_name. */ - public action_name: string; - - /** PopulateReparentJournalRequest primary_alias. */ - public primary_alias?: (topodata.ITabletAlias|null); - - /** PopulateReparentJournalRequest replication_position. */ - public replication_position: string; + constructor(properties?: tabletmanagerdata.IResetReplicationRequest); /** - * Creates a new PopulateReparentJournalRequest instance using the specified properties. + * Creates a new ResetReplicationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PopulateReparentJournalRequest instance + * @returns ResetReplicationRequest instance */ - public static create(properties?: tabletmanagerdata.IPopulateReparentJournalRequest): tabletmanagerdata.PopulateReparentJournalRequest; + public static create(properties?: tabletmanagerdata.IResetReplicationRequest): tabletmanagerdata.ResetReplicationRequest; /** - * Encodes the specified PopulateReparentJournalRequest message. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalRequest.verify|verify} messages. - * @param message PopulateReparentJournalRequest message or plain object to encode + * Encodes the specified ResetReplicationRequest message. Does not implicitly {@link tabletmanagerdata.ResetReplicationRequest.verify|verify} messages. + * @param message ResetReplicationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IPopulateReparentJournalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IResetReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PopulateReparentJournalRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalRequest.verify|verify} messages. - * @param message PopulateReparentJournalRequest message or plain object to encode + * Encodes the specified ResetReplicationRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationRequest.verify|verify} messages. + * @param message ResetReplicationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IPopulateReparentJournalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IResetReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PopulateReparentJournalRequest message from the specified reader or buffer. + * Decodes a ResetReplicationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PopulateReparentJournalRequest + * @returns ResetReplicationRequest * @throws {Error} If the payload is 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.PopulateReparentJournalRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ResetReplicationRequest; /** - * Decodes a PopulateReparentJournalRequest message from the specified reader or buffer, length delimited. + * Decodes a ResetReplicationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PopulateReparentJournalRequest + * @returns ResetReplicationRequest * @throws {Error} If the 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.PopulateReparentJournalRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ResetReplicationRequest; /** - * Verifies a PopulateReparentJournalRequest message. + * Verifies a ResetReplicationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PopulateReparentJournalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResetReplicationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PopulateReparentJournalRequest + * @returns ResetReplicationRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PopulateReparentJournalRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ResetReplicationRequest; /** - * Creates a plain object from a PopulateReparentJournalRequest message. Also converts values to other types if specified. - * @param message PopulateReparentJournalRequest + * Creates a plain object from a ResetReplicationRequest message. Also converts values to other types if specified. + * @param message ResetReplicationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.PopulateReparentJournalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ResetReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PopulateReparentJournalRequest to JSON. + * Converts this ResetReplicationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PopulateReparentJournalRequest + * Gets the default type url for ResetReplicationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PopulateReparentJournalResponse. */ - interface IPopulateReparentJournalResponse { + /** Properties of a ResetReplicationResponse. */ + interface IResetReplicationResponse { } - /** Represents a PopulateReparentJournalResponse. */ - class PopulateReparentJournalResponse implements IPopulateReparentJournalResponse { + /** Represents a ResetReplicationResponse. */ + class ResetReplicationResponse implements IResetReplicationResponse { /** - * Constructs a new PopulateReparentJournalResponse. + * Constructs a new ResetReplicationResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPopulateReparentJournalResponse); + constructor(properties?: tabletmanagerdata.IResetReplicationResponse); /** - * Creates a new PopulateReparentJournalResponse instance using the specified properties. + * Creates a new ResetReplicationResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PopulateReparentJournalResponse instance + * @returns ResetReplicationResponse instance */ - public static create(properties?: tabletmanagerdata.IPopulateReparentJournalResponse): tabletmanagerdata.PopulateReparentJournalResponse; + public static create(properties?: tabletmanagerdata.IResetReplicationResponse): tabletmanagerdata.ResetReplicationResponse; /** - * Encodes the specified PopulateReparentJournalResponse message. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalResponse.verify|verify} messages. - * @param message PopulateReparentJournalResponse message or plain object to encode + * Encodes the specified ResetReplicationResponse message. Does not implicitly {@link tabletmanagerdata.ResetReplicationResponse.verify|verify} messages. + * @param message ResetReplicationResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IPopulateReparentJournalResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IResetReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PopulateReparentJournalResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalResponse.verify|verify} messages. - * @param message PopulateReparentJournalResponse message or plain object to encode + * Encodes the specified ResetReplicationResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationResponse.verify|verify} messages. + * @param message ResetReplicationResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IPopulateReparentJournalResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IResetReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PopulateReparentJournalResponse message from the specified reader or buffer. + * Decodes a ResetReplicationResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PopulateReparentJournalResponse + * @returns ResetReplicationResponse * @throws {Error} If the payload is 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.PopulateReparentJournalResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ResetReplicationResponse; /** - * Decodes a PopulateReparentJournalResponse message from the specified reader or buffer, length delimited. + * Decodes a ResetReplicationResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PopulateReparentJournalResponse + * @returns ResetReplicationResponse * @throws {Error} If the 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.PopulateReparentJournalResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ResetReplicationResponse; /** - * Verifies a PopulateReparentJournalResponse message. + * Verifies a ResetReplicationResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PopulateReparentJournalResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ResetReplicationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PopulateReparentJournalResponse + * @returns ResetReplicationResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PopulateReparentJournalResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ResetReplicationResponse; /** - * Creates a plain object from a PopulateReparentJournalResponse message. Also converts values to other types if specified. - * @param message PopulateReparentJournalResponse + * Creates a plain object from a ResetReplicationResponse message. Also converts values to other types if specified. + * @param message ResetReplicationResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.PopulateReparentJournalResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ResetReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PopulateReparentJournalResponse to JSON. + * Converts this ResetReplicationResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PopulateReparentJournalResponse + * Gets the default type url for ResetReplicationResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadReparentJournalInfoRequest. */ - interface IReadReparentJournalInfoRequest { + /** Properties of a VReplicationExecRequest. */ + interface IVReplicationExecRequest { + + /** VReplicationExecRequest query */ + query?: (string|null); } - /** Represents a ReadReparentJournalInfoRequest. */ - class ReadReparentJournalInfoRequest implements IReadReparentJournalInfoRequest { + /** Represents a VReplicationExecRequest. */ + class VReplicationExecRequest implements IVReplicationExecRequest { /** - * Constructs a new ReadReparentJournalInfoRequest. + * Constructs a new VReplicationExecRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReadReparentJournalInfoRequest); + constructor(properties?: tabletmanagerdata.IVReplicationExecRequest); - /** - * Creates a new ReadReparentJournalInfoRequest instance using the specified properties. + /** VReplicationExecRequest query. */ + public query: string; + + /** + * Creates a new VReplicationExecRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadReparentJournalInfoRequest instance + * @returns VReplicationExecRequest instance */ - public static create(properties?: tabletmanagerdata.IReadReparentJournalInfoRequest): tabletmanagerdata.ReadReparentJournalInfoRequest; + public static create(properties?: tabletmanagerdata.IVReplicationExecRequest): tabletmanagerdata.VReplicationExecRequest; /** - * Encodes the specified ReadReparentJournalInfoRequest message. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoRequest.verify|verify} messages. - * @param message ReadReparentJournalInfoRequest message or plain object to encode + * Encodes the specified VReplicationExecRequest message. Does not implicitly {@link tabletmanagerdata.VReplicationExecRequest.verify|verify} messages. + * @param message VReplicationExecRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IReadReparentJournalInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IVReplicationExecRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadReparentJournalInfoRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoRequest.verify|verify} messages. - * @param message ReadReparentJournalInfoRequest message or plain object to encode + * Encodes the specified VReplicationExecRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationExecRequest.verify|verify} messages. + * @param message VReplicationExecRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IReadReparentJournalInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IVReplicationExecRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadReparentJournalInfoRequest message from the specified reader or buffer. + * Decodes a VReplicationExecRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadReparentJournalInfoRequest + * @returns VReplicationExecRequest * @throws {Error} If the payload is 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.ReadReparentJournalInfoRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.VReplicationExecRequest; /** - * Decodes a ReadReparentJournalInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a VReplicationExecRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadReparentJournalInfoRequest + * @returns VReplicationExecRequest * @throws {Error} If the 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.ReadReparentJournalInfoRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.VReplicationExecRequest; /** - * Verifies a ReadReparentJournalInfoRequest message. + * Verifies a VReplicationExecRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadReparentJournalInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VReplicationExecRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadReparentJournalInfoRequest + * @returns VReplicationExecRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadReparentJournalInfoRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VReplicationExecRequest; /** - * Creates a plain object from a ReadReparentJournalInfoRequest message. Also converts values to other types if specified. - * @param message ReadReparentJournalInfoRequest + * Creates a plain object from a VReplicationExecRequest message. Also converts values to other types if specified. + * @param message VReplicationExecRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ReadReparentJournalInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.VReplicationExecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadReparentJournalInfoRequest to JSON. + * Converts this VReplicationExecRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadReparentJournalInfoRequest + * Gets the default type url for VReplicationExecRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadReparentJournalInfoResponse. */ - interface IReadReparentJournalInfoResponse { + /** Properties of a VReplicationExecResponse. */ + interface IVReplicationExecResponse { - /** ReadReparentJournalInfoResponse length */ - length?: (number|null); + /** VReplicationExecResponse result */ + result?: (query.IQueryResult|null); } - /** Represents a ReadReparentJournalInfoResponse. */ - class ReadReparentJournalInfoResponse implements IReadReparentJournalInfoResponse { + /** Represents a VReplicationExecResponse. */ + class VReplicationExecResponse implements IVReplicationExecResponse { /** - * Constructs a new ReadReparentJournalInfoResponse. + * Constructs a new VReplicationExecResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReadReparentJournalInfoResponse); + constructor(properties?: tabletmanagerdata.IVReplicationExecResponse); - /** ReadReparentJournalInfoResponse length. */ - public length: number; + /** VReplicationExecResponse result. */ + public result?: (query.IQueryResult|null); /** - * Creates a new ReadReparentJournalInfoResponse instance using the specified properties. + * Creates a new VReplicationExecResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReadReparentJournalInfoResponse instance + * @returns VReplicationExecResponse instance */ - public static create(properties?: tabletmanagerdata.IReadReparentJournalInfoResponse): tabletmanagerdata.ReadReparentJournalInfoResponse; + public static create(properties?: tabletmanagerdata.IVReplicationExecResponse): tabletmanagerdata.VReplicationExecResponse; /** - * Encodes the specified ReadReparentJournalInfoResponse message. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoResponse.verify|verify} messages. - * @param message ReadReparentJournalInfoResponse message or plain object to encode + * Encodes the specified VReplicationExecResponse message. Does not implicitly {@link tabletmanagerdata.VReplicationExecResponse.verify|verify} messages. + * @param message VReplicationExecResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IReadReparentJournalInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IVReplicationExecResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadReparentJournalInfoResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoResponse.verify|verify} messages. - * @param message ReadReparentJournalInfoResponse message or plain object to encode + * Encodes the specified VReplicationExecResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationExecResponse.verify|verify} messages. + * @param message VReplicationExecResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IReadReparentJournalInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IVReplicationExecResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadReparentJournalInfoResponse message from the specified reader or buffer. + * Decodes a VReplicationExecResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadReparentJournalInfoResponse + * @returns VReplicationExecResponse * @throws {Error} If the payload is 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.ReadReparentJournalInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.VReplicationExecResponse; /** - * Decodes a ReadReparentJournalInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a VReplicationExecResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadReparentJournalInfoResponse + * @returns VReplicationExecResponse * @throws {Error} If the 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.ReadReparentJournalInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.VReplicationExecResponse; /** - * Verifies a ReadReparentJournalInfoResponse message. + * Verifies a VReplicationExecResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadReparentJournalInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VReplicationExecResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadReparentJournalInfoResponse + * @returns VReplicationExecResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadReparentJournalInfoResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VReplicationExecResponse; /** - * Creates a plain object from a ReadReparentJournalInfoResponse message. Also converts values to other types if specified. - * @param message ReadReparentJournalInfoResponse + * Creates a plain object from a VReplicationExecResponse message. Also converts values to other types if specified. + * @param message VReplicationExecResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ReadReparentJournalInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.VReplicationExecResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadReparentJournalInfoResponse to JSON. + * Converts this VReplicationExecResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadReparentJournalInfoResponse + * Gets the default type url for VReplicationExecResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InitReplicaRequest. */ - interface IInitReplicaRequest { - - /** InitReplicaRequest parent */ - parent?: (topodata.ITabletAlias|null); - - /** InitReplicaRequest replication_position */ - replication_position?: (string|null); + /** Properties of a VReplicationWaitForPosRequest. */ + interface IVReplicationWaitForPosRequest { - /** InitReplicaRequest time_created_ns */ - time_created_ns?: (number|Long|null); + /** VReplicationWaitForPosRequest id */ + id?: (number|null); - /** InitReplicaRequest semiSync */ - semiSync?: (boolean|null); + /** VReplicationWaitForPosRequest position */ + position?: (string|null); } - /** Represents an InitReplicaRequest. */ - class InitReplicaRequest implements IInitReplicaRequest { + /** Represents a VReplicationWaitForPosRequest. */ + class VReplicationWaitForPosRequest implements IVReplicationWaitForPosRequest { /** - * Constructs a new InitReplicaRequest. + * Constructs a new VReplicationWaitForPosRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IInitReplicaRequest); - - /** InitReplicaRequest parent. */ - public parent?: (topodata.ITabletAlias|null); - - /** InitReplicaRequest replication_position. */ - public replication_position: string; + constructor(properties?: tabletmanagerdata.IVReplicationWaitForPosRequest); - /** InitReplicaRequest time_created_ns. */ - public time_created_ns: (number|Long); + /** VReplicationWaitForPosRequest id. */ + public id: number; - /** InitReplicaRequest semiSync. */ - public semiSync: boolean; + /** VReplicationWaitForPosRequest position. */ + public position: string; /** - * Creates a new InitReplicaRequest instance using the specified properties. + * Creates a new VReplicationWaitForPosRequest instance using the specified properties. * @param [properties] Properties to set - * @returns InitReplicaRequest instance + * @returns VReplicationWaitForPosRequest instance */ - public static create(properties?: tabletmanagerdata.IInitReplicaRequest): tabletmanagerdata.InitReplicaRequest; + public static create(properties?: tabletmanagerdata.IVReplicationWaitForPosRequest): tabletmanagerdata.VReplicationWaitForPosRequest; /** - * Encodes the specified InitReplicaRequest message. Does not implicitly {@link tabletmanagerdata.InitReplicaRequest.verify|verify} messages. - * @param message InitReplicaRequest message or plain object to encode + * Encodes the specified VReplicationWaitForPosRequest message. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosRequest.verify|verify} messages. + * @param message VReplicationWaitForPosRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IInitReplicaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IVReplicationWaitForPosRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InitReplicaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.InitReplicaRequest.verify|verify} messages. - * @param message InitReplicaRequest message or plain object to encode + * Encodes the specified VReplicationWaitForPosRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosRequest.verify|verify} messages. + * @param message VReplicationWaitForPosRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IInitReplicaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IVReplicationWaitForPosRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InitReplicaRequest message from the specified reader or buffer. + * Decodes a VReplicationWaitForPosRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InitReplicaRequest + * @returns VReplicationWaitForPosRequest * @throws {Error} If the payload is 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.InitReplicaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.VReplicationWaitForPosRequest; /** - * Decodes an InitReplicaRequest message from the specified reader or buffer, length delimited. + * Decodes a VReplicationWaitForPosRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InitReplicaRequest + * @returns VReplicationWaitForPosRequest * @throws {Error} If the 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.InitReplicaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.VReplicationWaitForPosRequest; /** - * Verifies an InitReplicaRequest message. + * Verifies a VReplicationWaitForPosRequest message. * @param message Plain 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 InitReplicaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VReplicationWaitForPosRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InitReplicaRequest + * @returns VReplicationWaitForPosRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.InitReplicaRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VReplicationWaitForPosRequest; /** - * Creates a plain object from an InitReplicaRequest message. Also converts values to other types if specified. - * @param message InitReplicaRequest + * Creates a plain object from a VReplicationWaitForPosRequest message. Also converts values to other types if specified. + * @param message VReplicationWaitForPosRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.InitReplicaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.VReplicationWaitForPosRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InitReplicaRequest to JSON. + * Converts this VReplicationWaitForPosRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InitReplicaRequest + * Gets the default type url for VReplicationWaitForPosRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InitReplicaResponse. */ - interface IInitReplicaResponse { + /** Properties of a VReplicationWaitForPosResponse. */ + interface IVReplicationWaitForPosResponse { } - /** Represents an InitReplicaResponse. */ - class InitReplicaResponse implements IInitReplicaResponse { + /** Represents a VReplicationWaitForPosResponse. */ + class VReplicationWaitForPosResponse implements IVReplicationWaitForPosResponse { /** - * Constructs a new InitReplicaResponse. + * Constructs a new VReplicationWaitForPosResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IInitReplicaResponse); + constructor(properties?: tabletmanagerdata.IVReplicationWaitForPosResponse); /** - * Creates a new InitReplicaResponse instance using the specified properties. + * Creates a new VReplicationWaitForPosResponse instance using the specified properties. * @param [properties] Properties to set - * @returns InitReplicaResponse instance + * @returns VReplicationWaitForPosResponse instance */ - public static create(properties?: tabletmanagerdata.IInitReplicaResponse): tabletmanagerdata.InitReplicaResponse; + public static create(properties?: tabletmanagerdata.IVReplicationWaitForPosResponse): tabletmanagerdata.VReplicationWaitForPosResponse; /** - * Encodes the specified InitReplicaResponse message. Does not implicitly {@link tabletmanagerdata.InitReplicaResponse.verify|verify} messages. - * @param message InitReplicaResponse message or plain object to encode + * Encodes the specified VReplicationWaitForPosResponse message. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosResponse.verify|verify} messages. + * @param message VReplicationWaitForPosResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IInitReplicaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IVReplicationWaitForPosResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InitReplicaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.InitReplicaResponse.verify|verify} messages. - * @param message InitReplicaResponse message or plain object to encode + * Encodes the specified VReplicationWaitForPosResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosResponse.verify|verify} messages. + * @param message VReplicationWaitForPosResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IInitReplicaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IVReplicationWaitForPosResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InitReplicaResponse message from the specified reader or buffer. + * Decodes a VReplicationWaitForPosResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InitReplicaResponse + * @returns VReplicationWaitForPosResponse * @throws {Error} If the payload is 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.InitReplicaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.VReplicationWaitForPosResponse; /** - * Decodes an InitReplicaResponse message from the specified reader or buffer, length delimited. + * Decodes a VReplicationWaitForPosResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InitReplicaResponse + * @returns VReplicationWaitForPosResponse * @throws {Error} If the 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.InitReplicaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.VReplicationWaitForPosResponse; /** - * Verifies an InitReplicaResponse message. + * Verifies a VReplicationWaitForPosResponse message. * @param message Plain 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 InitReplicaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VReplicationWaitForPosResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InitReplicaResponse + * @returns VReplicationWaitForPosResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.InitReplicaResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VReplicationWaitForPosResponse; /** - * Creates a plain object from an InitReplicaResponse message. Also converts values to other types if specified. - * @param message InitReplicaResponse + * Creates a plain object from a VReplicationWaitForPosResponse message. Also converts values to other types if specified. + * @param message VReplicationWaitForPosResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.InitReplicaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.VReplicationWaitForPosResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InitReplicaResponse to JSON. + * Converts this VReplicationWaitForPosResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InitReplicaResponse + * Gets the default type url for VReplicationWaitForPosResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DemotePrimaryRequest. */ - interface IDemotePrimaryRequest { + /** Properties of an InitPrimaryRequest. */ + interface IInitPrimaryRequest { + + /** InitPrimaryRequest semiSync */ + semiSync?: (boolean|null); } - /** Represents a DemotePrimaryRequest. */ - class DemotePrimaryRequest implements IDemotePrimaryRequest { + /** Represents an InitPrimaryRequest. */ + class InitPrimaryRequest implements IInitPrimaryRequest { /** - * Constructs a new DemotePrimaryRequest. + * Constructs a new InitPrimaryRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IDemotePrimaryRequest); + constructor(properties?: tabletmanagerdata.IInitPrimaryRequest); + + /** InitPrimaryRequest semiSync. */ + public semiSync: boolean; /** - * Creates a new DemotePrimaryRequest instance using the specified properties. + * Creates a new InitPrimaryRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DemotePrimaryRequest instance + * @returns InitPrimaryRequest instance */ - public static create(properties?: tabletmanagerdata.IDemotePrimaryRequest): tabletmanagerdata.DemotePrimaryRequest; + public static create(properties?: tabletmanagerdata.IInitPrimaryRequest): tabletmanagerdata.InitPrimaryRequest; /** - * Encodes the specified DemotePrimaryRequest message. Does not implicitly {@link tabletmanagerdata.DemotePrimaryRequest.verify|verify} messages. - * @param message DemotePrimaryRequest message or plain object to encode + * Encodes the specified InitPrimaryRequest message. Does not implicitly {@link tabletmanagerdata.InitPrimaryRequest.verify|verify} messages. + * @param message InitPrimaryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IDemotePrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IInitPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DemotePrimaryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.DemotePrimaryRequest.verify|verify} messages. - * @param message DemotePrimaryRequest message or plain object to encode + * Encodes the specified InitPrimaryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.InitPrimaryRequest.verify|verify} messages. + * @param message InitPrimaryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IDemotePrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IInitPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DemotePrimaryRequest message from the specified reader or buffer. + * Decodes an InitPrimaryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DemotePrimaryRequest + * @returns InitPrimaryRequest * @throws {Error} If the payload is 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.DemotePrimaryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.InitPrimaryRequest; /** - * Decodes a DemotePrimaryRequest message from the specified reader or buffer, length delimited. + * Decodes an InitPrimaryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DemotePrimaryRequest + * @returns InitPrimaryRequest * @throws {Error} If the 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.DemotePrimaryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.InitPrimaryRequest; /** - * Verifies a DemotePrimaryRequest message. + * Verifies an InitPrimaryRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DemotePrimaryRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InitPrimaryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DemotePrimaryRequest + * @returns InitPrimaryRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DemotePrimaryRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.InitPrimaryRequest; /** - * Creates a plain object from a DemotePrimaryRequest message. Also converts values to other types if specified. - * @param message DemotePrimaryRequest + * Creates a plain object from an InitPrimaryRequest message. Also converts values to other types if specified. + * @param message InitPrimaryRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.DemotePrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.InitPrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DemotePrimaryRequest to JSON. + * Converts this InitPrimaryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DemotePrimaryRequest + * Gets the default type url for InitPrimaryRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DemotePrimaryResponse. */ - interface IDemotePrimaryResponse { + /** Properties of an InitPrimaryResponse. */ + interface IInitPrimaryResponse { - /** DemotePrimaryResponse primary_status */ - primary_status?: (replicationdata.IPrimaryStatus|null); + /** InitPrimaryResponse position */ + position?: (string|null); } - /** Represents a DemotePrimaryResponse. */ - class DemotePrimaryResponse implements IDemotePrimaryResponse { + /** Represents an InitPrimaryResponse. */ + class InitPrimaryResponse implements IInitPrimaryResponse { /** - * Constructs a new DemotePrimaryResponse. + * Constructs a new InitPrimaryResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IDemotePrimaryResponse); + constructor(properties?: tabletmanagerdata.IInitPrimaryResponse); - /** DemotePrimaryResponse primary_status. */ - public primary_status?: (replicationdata.IPrimaryStatus|null); + /** InitPrimaryResponse position. */ + public position: string; /** - * Creates a new DemotePrimaryResponse instance using the specified properties. + * Creates a new InitPrimaryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DemotePrimaryResponse instance + * @returns InitPrimaryResponse instance */ - public static create(properties?: tabletmanagerdata.IDemotePrimaryResponse): tabletmanagerdata.DemotePrimaryResponse; + public static create(properties?: tabletmanagerdata.IInitPrimaryResponse): tabletmanagerdata.InitPrimaryResponse; /** - * Encodes the specified DemotePrimaryResponse message. Does not implicitly {@link tabletmanagerdata.DemotePrimaryResponse.verify|verify} messages. - * @param message DemotePrimaryResponse message or plain object to encode + * Encodes the specified InitPrimaryResponse message. Does not implicitly {@link tabletmanagerdata.InitPrimaryResponse.verify|verify} messages. + * @param message InitPrimaryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IDemotePrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IInitPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DemotePrimaryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.DemotePrimaryResponse.verify|verify} messages. - * @param message DemotePrimaryResponse message or plain object to encode + * Encodes the specified InitPrimaryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.InitPrimaryResponse.verify|verify} messages. + * @param message InitPrimaryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IDemotePrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IInitPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DemotePrimaryResponse message from the specified reader or buffer. + * Decodes an InitPrimaryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DemotePrimaryResponse + * @returns InitPrimaryResponse * @throws {Error} If the payload is 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.DemotePrimaryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.InitPrimaryResponse; /** - * Decodes a DemotePrimaryResponse message from the specified reader or buffer, length delimited. + * Decodes an InitPrimaryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DemotePrimaryResponse + * @returns InitPrimaryResponse * @throws {Error} If the 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.DemotePrimaryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.InitPrimaryResponse; /** - * Verifies a DemotePrimaryResponse message. + * Verifies an InitPrimaryResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DemotePrimaryResponse message from a plain object. Also converts values to their respective internal types. + * Creates an InitPrimaryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DemotePrimaryResponse + * @returns InitPrimaryResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DemotePrimaryResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.InitPrimaryResponse; /** - * Creates a plain object from a DemotePrimaryResponse message. Also converts values to other types if specified. - * @param message DemotePrimaryResponse + * Creates a plain object from an InitPrimaryResponse message. Also converts values to other types if specified. + * @param message InitPrimaryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.DemotePrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.InitPrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DemotePrimaryResponse to JSON. + * Converts this InitPrimaryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DemotePrimaryResponse + * Gets the default type url for InitPrimaryResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndoDemotePrimaryRequest. */ - interface IUndoDemotePrimaryRequest { + /** Properties of a PopulateReparentJournalRequest. */ + interface IPopulateReparentJournalRequest { - /** UndoDemotePrimaryRequest semiSync */ - semiSync?: (boolean|null); + /** PopulateReparentJournalRequest time_created_ns */ + time_created_ns?: (number|Long|null); + + /** PopulateReparentJournalRequest action_name */ + action_name?: (string|null); + + /** PopulateReparentJournalRequest primary_alias */ + primary_alias?: (topodata.ITabletAlias|null); + + /** PopulateReparentJournalRequest replication_position */ + replication_position?: (string|null); } - /** Represents an UndoDemotePrimaryRequest. */ - class UndoDemotePrimaryRequest implements IUndoDemotePrimaryRequest { + /** Represents a PopulateReparentJournalRequest. */ + class PopulateReparentJournalRequest implements IPopulateReparentJournalRequest { /** - * Constructs a new UndoDemotePrimaryRequest. + * Constructs a new PopulateReparentJournalRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IUndoDemotePrimaryRequest); + constructor(properties?: tabletmanagerdata.IPopulateReparentJournalRequest); - /** UndoDemotePrimaryRequest semiSync. */ - public semiSync: boolean; + /** PopulateReparentJournalRequest time_created_ns. */ + public time_created_ns: (number|Long); + + /** PopulateReparentJournalRequest action_name. */ + public action_name: string; + + /** PopulateReparentJournalRequest primary_alias. */ + public primary_alias?: (topodata.ITabletAlias|null); + + /** PopulateReparentJournalRequest replication_position. */ + public replication_position: string; /** - * Creates a new UndoDemotePrimaryRequest instance using the specified properties. + * Creates a new PopulateReparentJournalRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UndoDemotePrimaryRequest instance + * @returns PopulateReparentJournalRequest instance */ - public static create(properties?: tabletmanagerdata.IUndoDemotePrimaryRequest): tabletmanagerdata.UndoDemotePrimaryRequest; + public static create(properties?: tabletmanagerdata.IPopulateReparentJournalRequest): tabletmanagerdata.PopulateReparentJournalRequest; /** - * Encodes the specified UndoDemotePrimaryRequest message. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryRequest.verify|verify} messages. - * @param message UndoDemotePrimaryRequest message or plain object to encode + * Encodes the specified PopulateReparentJournalRequest message. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalRequest.verify|verify} messages. + * @param message PopulateReparentJournalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IUndoDemotePrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPopulateReparentJournalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndoDemotePrimaryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryRequest.verify|verify} messages. - * @param message UndoDemotePrimaryRequest message or plain object to encode + * Encodes the specified PopulateReparentJournalRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalRequest.verify|verify} messages. + * @param message PopulateReparentJournalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IUndoDemotePrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPopulateReparentJournalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndoDemotePrimaryRequest message from the specified reader or buffer. + * Decodes a PopulateReparentJournalRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndoDemotePrimaryRequest + * @returns PopulateReparentJournalRequest * @throws {Error} If the payload is 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.UndoDemotePrimaryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PopulateReparentJournalRequest; /** - * Decodes an UndoDemotePrimaryRequest message from the specified reader or buffer, length delimited. + * Decodes a PopulateReparentJournalRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndoDemotePrimaryRequest + * @returns PopulateReparentJournalRequest * @throws {Error} If the 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.UndoDemotePrimaryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PopulateReparentJournalRequest; /** - * Verifies an UndoDemotePrimaryRequest message. + * Verifies a PopulateReparentJournalRequest message. * @param message Plain 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 UndoDemotePrimaryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PopulateReparentJournalRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndoDemotePrimaryRequest + * @returns PopulateReparentJournalRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UndoDemotePrimaryRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PopulateReparentJournalRequest; /** - * Creates a plain object from an UndoDemotePrimaryRequest message. Also converts values to other types if specified. - * @param message UndoDemotePrimaryRequest + * Creates a plain object from a PopulateReparentJournalRequest message. Also converts values to other types if specified. + * @param message PopulateReparentJournalRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.UndoDemotePrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.PopulateReparentJournalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndoDemotePrimaryRequest to JSON. + * Converts this PopulateReparentJournalRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndoDemotePrimaryRequest + * Gets the default type url for PopulateReparentJournalRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndoDemotePrimaryResponse. */ - interface IUndoDemotePrimaryResponse { + /** Properties of a PopulateReparentJournalResponse. */ + interface IPopulateReparentJournalResponse { } - /** Represents an UndoDemotePrimaryResponse. */ - class UndoDemotePrimaryResponse implements IUndoDemotePrimaryResponse { + /** Represents a PopulateReparentJournalResponse. */ + class PopulateReparentJournalResponse implements IPopulateReparentJournalResponse { /** - * Constructs a new UndoDemotePrimaryResponse. + * Constructs a new PopulateReparentJournalResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IUndoDemotePrimaryResponse); + constructor(properties?: tabletmanagerdata.IPopulateReparentJournalResponse); /** - * Creates a new UndoDemotePrimaryResponse instance using the specified properties. + * Creates a new PopulateReparentJournalResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UndoDemotePrimaryResponse instance + * @returns PopulateReparentJournalResponse instance */ - public static create(properties?: tabletmanagerdata.IUndoDemotePrimaryResponse): tabletmanagerdata.UndoDemotePrimaryResponse; + public static create(properties?: tabletmanagerdata.IPopulateReparentJournalResponse): tabletmanagerdata.PopulateReparentJournalResponse; /** - * Encodes the specified UndoDemotePrimaryResponse message. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryResponse.verify|verify} messages. - * @param message UndoDemotePrimaryResponse message or plain object to encode + * Encodes the specified PopulateReparentJournalResponse message. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalResponse.verify|verify} messages. + * @param message PopulateReparentJournalResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IUndoDemotePrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPopulateReparentJournalResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndoDemotePrimaryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryResponse.verify|verify} messages. - * @param message UndoDemotePrimaryResponse message or plain object to encode + * Encodes the specified PopulateReparentJournalResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalResponse.verify|verify} messages. + * @param message PopulateReparentJournalResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IUndoDemotePrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPopulateReparentJournalResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndoDemotePrimaryResponse message from the specified reader or buffer. + * Decodes a PopulateReparentJournalResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndoDemotePrimaryResponse + * @returns PopulateReparentJournalResponse * @throws {Error} If the payload is 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.UndoDemotePrimaryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PopulateReparentJournalResponse; /** - * Decodes an UndoDemotePrimaryResponse message from the specified reader or buffer, length delimited. + * Decodes a PopulateReparentJournalResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndoDemotePrimaryResponse + * @returns PopulateReparentJournalResponse * @throws {Error} If the 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.UndoDemotePrimaryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PopulateReparentJournalResponse; /** - * Verifies an UndoDemotePrimaryResponse message. + * Verifies a PopulateReparentJournalResponse message. * @param message Plain 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 UndoDemotePrimaryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PopulateReparentJournalResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndoDemotePrimaryResponse + * @returns PopulateReparentJournalResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UndoDemotePrimaryResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PopulateReparentJournalResponse; /** - * Creates a plain object from an UndoDemotePrimaryResponse message. Also converts values to other types if specified. - * @param message UndoDemotePrimaryResponse + * Creates a plain object from a PopulateReparentJournalResponse message. Also converts values to other types if specified. + * @param message PopulateReparentJournalResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.UndoDemotePrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.PopulateReparentJournalResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndoDemotePrimaryResponse to JSON. + * Converts this PopulateReparentJournalResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndoDemotePrimaryResponse + * Gets the default type url for PopulateReparentJournalResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReplicaWasPromotedRequest. */ - interface IReplicaWasPromotedRequest { + /** Properties of a ReadReparentJournalInfoRequest. */ + interface IReadReparentJournalInfoRequest { } - /** Represents a ReplicaWasPromotedRequest. */ - class ReplicaWasPromotedRequest implements IReplicaWasPromotedRequest { + /** Represents a ReadReparentJournalInfoRequest. */ + class ReadReparentJournalInfoRequest implements IReadReparentJournalInfoRequest { /** - * Constructs a new ReplicaWasPromotedRequest. + * Constructs a new ReadReparentJournalInfoRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReplicaWasPromotedRequest); + constructor(properties?: tabletmanagerdata.IReadReparentJournalInfoRequest); /** - * Creates a new ReplicaWasPromotedRequest instance using the specified properties. + * Creates a new ReadReparentJournalInfoRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReplicaWasPromotedRequest instance + * @returns ReadReparentJournalInfoRequest instance */ - public static create(properties?: tabletmanagerdata.IReplicaWasPromotedRequest): tabletmanagerdata.ReplicaWasPromotedRequest; + public static create(properties?: tabletmanagerdata.IReadReparentJournalInfoRequest): tabletmanagerdata.ReadReparentJournalInfoRequest; /** - * Encodes the specified ReplicaWasPromotedRequest message. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedRequest.verify|verify} messages. - * @param message ReplicaWasPromotedRequest message or plain object to encode + * Encodes the specified ReadReparentJournalInfoRequest message. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoRequest.verify|verify} messages. + * @param message ReadReparentJournalInfoRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IReplicaWasPromotedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReadReparentJournalInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReplicaWasPromotedRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedRequest.verify|verify} messages. - * @param message ReplicaWasPromotedRequest message or plain object to encode + * Encodes the specified ReadReparentJournalInfoRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoRequest.verify|verify} messages. + * @param message ReadReparentJournalInfoRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IReplicaWasPromotedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReadReparentJournalInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReplicaWasPromotedRequest message from the specified reader or buffer. + * Decodes a ReadReparentJournalInfoRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReplicaWasPromotedRequest + * @returns ReadReparentJournalInfoRequest * @throws {Error} If the payload is 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.ReplicaWasPromotedRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReadReparentJournalInfoRequest; /** - * Decodes a ReplicaWasPromotedRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadReparentJournalInfoRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReplicaWasPromotedRequest + * @returns ReadReparentJournalInfoRequest * @throws {Error} If the 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.ReplicaWasPromotedRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReadReparentJournalInfoRequest; /** - * Verifies a ReplicaWasPromotedRequest message. + * Verifies a ReadReparentJournalInfoRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReplicaWasPromotedRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadReparentJournalInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReplicaWasPromotedRequest + * @returns ReadReparentJournalInfoRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReplicaWasPromotedRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadReparentJournalInfoRequest; /** - * Creates a plain object from a ReplicaWasPromotedRequest message. Also converts values to other types if specified. - * @param message ReplicaWasPromotedRequest + * Creates a plain object from a ReadReparentJournalInfoRequest message. Also converts values to other types if specified. + * @param message ReadReparentJournalInfoRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ReplicaWasPromotedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReadReparentJournalInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReplicaWasPromotedRequest to JSON. + * Converts this ReadReparentJournalInfoRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReplicaWasPromotedRequest + * Gets the default type url for ReadReparentJournalInfoRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReplicaWasPromotedResponse. */ - interface IReplicaWasPromotedResponse { + /** Properties of a ReadReparentJournalInfoResponse. */ + interface IReadReparentJournalInfoResponse { + + /** ReadReparentJournalInfoResponse length */ + length?: (number|null); } - /** Represents a ReplicaWasPromotedResponse. */ - class ReplicaWasPromotedResponse implements IReplicaWasPromotedResponse { + /** Represents a ReadReparentJournalInfoResponse. */ + class ReadReparentJournalInfoResponse implements IReadReparentJournalInfoResponse { /** - * Constructs a new ReplicaWasPromotedResponse. + * Constructs a new ReadReparentJournalInfoResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReplicaWasPromotedResponse); + constructor(properties?: tabletmanagerdata.IReadReparentJournalInfoResponse); + + /** ReadReparentJournalInfoResponse length. */ + public length: number; /** - * Creates a new ReplicaWasPromotedResponse instance using the specified properties. + * Creates a new ReadReparentJournalInfoResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReplicaWasPromotedResponse instance + * @returns ReadReparentJournalInfoResponse instance */ - public static create(properties?: tabletmanagerdata.IReplicaWasPromotedResponse): tabletmanagerdata.ReplicaWasPromotedResponse; + public static create(properties?: tabletmanagerdata.IReadReparentJournalInfoResponse): tabletmanagerdata.ReadReparentJournalInfoResponse; /** - * Encodes the specified ReplicaWasPromotedResponse message. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedResponse.verify|verify} messages. - * @param message ReplicaWasPromotedResponse message or plain object to encode + * Encodes the specified ReadReparentJournalInfoResponse message. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoResponse.verify|verify} messages. + * @param message ReadReparentJournalInfoResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IReplicaWasPromotedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReadReparentJournalInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReplicaWasPromotedResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedResponse.verify|verify} messages. - * @param message ReplicaWasPromotedResponse message or plain object to encode + * Encodes the specified ReadReparentJournalInfoResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoResponse.verify|verify} messages. + * @param message ReadReparentJournalInfoResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IReplicaWasPromotedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReadReparentJournalInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReplicaWasPromotedResponse message from the specified reader or buffer. + * Decodes a ReadReparentJournalInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReplicaWasPromotedResponse + * @returns ReadReparentJournalInfoResponse * @throws {Error} If the payload is 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.ReplicaWasPromotedResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReadReparentJournalInfoResponse; /** - * Decodes a ReplicaWasPromotedResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadReparentJournalInfoResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReplicaWasPromotedResponse + * @returns ReadReparentJournalInfoResponse * @throws {Error} If the 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.ReplicaWasPromotedResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReadReparentJournalInfoResponse; /** - * Verifies a ReplicaWasPromotedResponse message. + * Verifies a ReadReparentJournalInfoResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReplicaWasPromotedResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadReparentJournalInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReplicaWasPromotedResponse + * @returns ReadReparentJournalInfoResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReplicaWasPromotedResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadReparentJournalInfoResponse; /** - * Creates a plain object from a ReplicaWasPromotedResponse message. Also converts values to other types if specified. - * @param message ReplicaWasPromotedResponse + * Creates a plain object from a ReadReparentJournalInfoResponse message. Also converts values to other types if specified. + * @param message ReadReparentJournalInfoResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ReplicaWasPromotedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReadReparentJournalInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReplicaWasPromotedResponse to JSON. + * Converts this ReadReparentJournalInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReplicaWasPromotedResponse + * Gets the default type url for ReadReparentJournalInfoResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResetReplicationParametersRequest. */ - interface IResetReplicationParametersRequest { + /** Properties of an InitReplicaRequest. */ + interface IInitReplicaRequest { + + /** InitReplicaRequest parent */ + parent?: (topodata.ITabletAlias|null); + + /** InitReplicaRequest replication_position */ + replication_position?: (string|null); + + /** InitReplicaRequest time_created_ns */ + time_created_ns?: (number|Long|null); + + /** InitReplicaRequest semiSync */ + semiSync?: (boolean|null); } - /** Represents a ResetReplicationParametersRequest. */ - class ResetReplicationParametersRequest implements IResetReplicationParametersRequest { + /** Represents an InitReplicaRequest. */ + class InitReplicaRequest implements IInitReplicaRequest { /** - * Constructs a new ResetReplicationParametersRequest. + * Constructs a new InitReplicaRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IResetReplicationParametersRequest); + constructor(properties?: tabletmanagerdata.IInitReplicaRequest); + + /** InitReplicaRequest parent. */ + public parent?: (topodata.ITabletAlias|null); + + /** InitReplicaRequest replication_position. */ + public replication_position: string; + + /** InitReplicaRequest time_created_ns. */ + public time_created_ns: (number|Long); + + /** InitReplicaRequest semiSync. */ + public semiSync: boolean; /** - * Creates a new ResetReplicationParametersRequest instance using the specified properties. + * Creates a new InitReplicaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ResetReplicationParametersRequest instance + * @returns InitReplicaRequest instance */ - public static create(properties?: tabletmanagerdata.IResetReplicationParametersRequest): tabletmanagerdata.ResetReplicationParametersRequest; + public static create(properties?: tabletmanagerdata.IInitReplicaRequest): tabletmanagerdata.InitReplicaRequest; /** - * Encodes the specified ResetReplicationParametersRequest message. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersRequest.verify|verify} messages. - * @param message ResetReplicationParametersRequest message or plain object to encode + * Encodes the specified InitReplicaRequest message. Does not implicitly {@link tabletmanagerdata.InitReplicaRequest.verify|verify} messages. + * @param message InitReplicaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IResetReplicationParametersRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IInitReplicaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResetReplicationParametersRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersRequest.verify|verify} messages. - * @param message ResetReplicationParametersRequest message or plain object to encode + * Encodes the specified InitReplicaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.InitReplicaRequest.verify|verify} messages. + * @param message InitReplicaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IResetReplicationParametersRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IInitReplicaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResetReplicationParametersRequest message from the specified reader or buffer. + * Decodes an InitReplicaRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResetReplicationParametersRequest + * @returns InitReplicaRequest * @throws {Error} If the payload is 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.ResetReplicationParametersRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.InitReplicaRequest; /** - * Decodes a ResetReplicationParametersRequest message from the specified reader or buffer, length delimited. + * Decodes an InitReplicaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResetReplicationParametersRequest + * @returns InitReplicaRequest * @throws {Error} If the 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.ResetReplicationParametersRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.InitReplicaRequest; /** - * Verifies a ResetReplicationParametersRequest message. + * Verifies an InitReplicaRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResetReplicationParametersRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InitReplicaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResetReplicationParametersRequest + * @returns InitReplicaRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ResetReplicationParametersRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.InitReplicaRequest; /** - * Creates a plain object from a ResetReplicationParametersRequest message. Also converts values to other types if specified. - * @param message ResetReplicationParametersRequest + * Creates a plain object from an InitReplicaRequest message. Also converts values to other types if specified. + * @param message InitReplicaRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ResetReplicationParametersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.InitReplicaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResetReplicationParametersRequest to JSON. + * Converts this InitReplicaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResetReplicationParametersRequest + * Gets the default type url for InitReplicaRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResetReplicationParametersResponse. */ - interface IResetReplicationParametersResponse { + /** Properties of an InitReplicaResponse. */ + interface IInitReplicaResponse { } - /** Represents a ResetReplicationParametersResponse. */ - class ResetReplicationParametersResponse implements IResetReplicationParametersResponse { + /** Represents an InitReplicaResponse. */ + class InitReplicaResponse implements IInitReplicaResponse { /** - * Constructs a new ResetReplicationParametersResponse. + * Constructs a new InitReplicaResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IResetReplicationParametersResponse); + constructor(properties?: tabletmanagerdata.IInitReplicaResponse); /** - * Creates a new ResetReplicationParametersResponse instance using the specified properties. + * Creates a new InitReplicaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ResetReplicationParametersResponse instance + * @returns InitReplicaResponse instance */ - public static create(properties?: tabletmanagerdata.IResetReplicationParametersResponse): tabletmanagerdata.ResetReplicationParametersResponse; + public static create(properties?: tabletmanagerdata.IInitReplicaResponse): tabletmanagerdata.InitReplicaResponse; /** - * Encodes the specified ResetReplicationParametersResponse message. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersResponse.verify|verify} messages. - * @param message ResetReplicationParametersResponse message or plain object to encode + * Encodes the specified InitReplicaResponse message. Does not implicitly {@link tabletmanagerdata.InitReplicaResponse.verify|verify} messages. + * @param message InitReplicaResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IResetReplicationParametersResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IInitReplicaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResetReplicationParametersResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersResponse.verify|verify} messages. - * @param message ResetReplicationParametersResponse message or plain object to encode + * Encodes the specified InitReplicaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.InitReplicaResponse.verify|verify} messages. + * @param message InitReplicaResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IResetReplicationParametersResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IInitReplicaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResetReplicationParametersResponse message from the specified reader or buffer. + * Decodes an InitReplicaResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResetReplicationParametersResponse + * @returns InitReplicaResponse * @throws {Error} If the payload is 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.ResetReplicationParametersResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.InitReplicaResponse; /** - * Decodes a ResetReplicationParametersResponse message from the specified reader or buffer, length delimited. + * Decodes an InitReplicaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResetReplicationParametersResponse + * @returns InitReplicaResponse * @throws {Error} If the 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.ResetReplicationParametersResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.InitReplicaResponse; /** - * Verifies a ResetReplicationParametersResponse message. + * Verifies an InitReplicaResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResetReplicationParametersResponse message from a plain object. Also converts values to their respective internal types. + * Creates an InitReplicaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResetReplicationParametersResponse + * @returns InitReplicaResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ResetReplicationParametersResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.InitReplicaResponse; /** - * Creates a plain object from a ResetReplicationParametersResponse message. Also converts values to other types if specified. - * @param message ResetReplicationParametersResponse + * Creates a plain object from an InitReplicaResponse message. Also converts values to other types if specified. + * @param message InitReplicaResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ResetReplicationParametersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.InitReplicaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResetReplicationParametersResponse to JSON. + * Converts this InitReplicaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResetReplicationParametersResponse + * Gets the default type url for InitReplicaResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FullStatusRequest. */ - interface IFullStatusRequest { + /** Properties of a DemotePrimaryRequest. */ + interface IDemotePrimaryRequest { } - /** Represents a FullStatusRequest. */ - class FullStatusRequest implements IFullStatusRequest { + /** Represents a DemotePrimaryRequest. */ + class DemotePrimaryRequest implements IDemotePrimaryRequest { /** - * Constructs a new FullStatusRequest. + * Constructs a new DemotePrimaryRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IFullStatusRequest); + constructor(properties?: tabletmanagerdata.IDemotePrimaryRequest); /** - * Creates a new FullStatusRequest instance using the specified properties. + * Creates a new DemotePrimaryRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FullStatusRequest instance + * @returns DemotePrimaryRequest instance */ - public static create(properties?: tabletmanagerdata.IFullStatusRequest): tabletmanagerdata.FullStatusRequest; + public static create(properties?: tabletmanagerdata.IDemotePrimaryRequest): tabletmanagerdata.DemotePrimaryRequest; /** - * Encodes the specified FullStatusRequest message. Does not implicitly {@link tabletmanagerdata.FullStatusRequest.verify|verify} messages. - * @param message FullStatusRequest message or plain object to encode + * Encodes the specified DemotePrimaryRequest message. Does not implicitly {@link tabletmanagerdata.DemotePrimaryRequest.verify|verify} messages. + * @param message DemotePrimaryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IDemotePrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FullStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.FullStatusRequest.verify|verify} messages. - * @param message FullStatusRequest message or plain object to encode + * Encodes the specified DemotePrimaryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.DemotePrimaryRequest.verify|verify} messages. + * @param message DemotePrimaryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IDemotePrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FullStatusRequest message from the specified reader or buffer. + * Decodes a DemotePrimaryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FullStatusRequest + * @returns DemotePrimaryRequest * @throws {Error} If the payload is 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.FullStatusRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.DemotePrimaryRequest; /** - * Decodes a FullStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a DemotePrimaryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FullStatusRequest + * @returns DemotePrimaryRequest * @throws {Error} If the 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.FullStatusRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.DemotePrimaryRequest; /** - * Verifies a FullStatusRequest message. + * Verifies a DemotePrimaryRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FullStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DemotePrimaryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FullStatusRequest + * @returns DemotePrimaryRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.FullStatusRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DemotePrimaryRequest; /** - * Creates a plain object from a FullStatusRequest message. Also converts values to other types if specified. - * @param message FullStatusRequest + * Creates a plain object from a DemotePrimaryRequest message. Also converts values to other types if specified. + * @param message DemotePrimaryRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.FullStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.DemotePrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FullStatusRequest to JSON. + * Converts this DemotePrimaryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FullStatusRequest + * Gets the default type url for DemotePrimaryRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FullStatusResponse. */ - interface IFullStatusResponse { + /** Properties of a DemotePrimaryResponse. */ + interface IDemotePrimaryResponse { - /** FullStatusResponse status */ - status?: (replicationdata.IFullStatus|null); + /** DemotePrimaryResponse primary_status */ + primary_status?: (replicationdata.IPrimaryStatus|null); } - /** Represents a FullStatusResponse. */ - class FullStatusResponse implements IFullStatusResponse { + /** Represents a DemotePrimaryResponse. */ + class DemotePrimaryResponse implements IDemotePrimaryResponse { /** - * Constructs a new FullStatusResponse. + * Constructs a new DemotePrimaryResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IFullStatusResponse); + constructor(properties?: tabletmanagerdata.IDemotePrimaryResponse); - /** FullStatusResponse status. */ - public status?: (replicationdata.IFullStatus|null); + /** DemotePrimaryResponse primary_status. */ + public primary_status?: (replicationdata.IPrimaryStatus|null); /** - * Creates a new FullStatusResponse instance using the specified properties. + * Creates a new DemotePrimaryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns FullStatusResponse instance + * @returns DemotePrimaryResponse instance */ - public static create(properties?: tabletmanagerdata.IFullStatusResponse): tabletmanagerdata.FullStatusResponse; + public static create(properties?: tabletmanagerdata.IDemotePrimaryResponse): tabletmanagerdata.DemotePrimaryResponse; /** - * Encodes the specified FullStatusResponse message. Does not implicitly {@link tabletmanagerdata.FullStatusResponse.verify|verify} messages. - * @param message FullStatusResponse message or plain object to encode + * Encodes the specified DemotePrimaryResponse message. Does not implicitly {@link tabletmanagerdata.DemotePrimaryResponse.verify|verify} messages. + * @param message DemotePrimaryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IDemotePrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FullStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.FullStatusResponse.verify|verify} messages. - * @param message FullStatusResponse message or plain object to encode + * Encodes the specified DemotePrimaryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.DemotePrimaryResponse.verify|verify} messages. + * @param message DemotePrimaryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IDemotePrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FullStatusResponse message from the specified reader or buffer. + * Decodes a DemotePrimaryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FullStatusResponse + * @returns DemotePrimaryResponse * @throws {Error} If the payload is 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.FullStatusResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.DemotePrimaryResponse; /** - * Decodes a FullStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a DemotePrimaryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FullStatusResponse + * @returns DemotePrimaryResponse * @throws {Error} If the 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.FullStatusResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.DemotePrimaryResponse; /** - * Verifies a FullStatusResponse message. + * Verifies a DemotePrimaryResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FullStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DemotePrimaryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FullStatusResponse + * @returns DemotePrimaryResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.FullStatusResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DemotePrimaryResponse; /** - * Creates a plain object from a FullStatusResponse message. Also converts values to other types if specified. - * @param message FullStatusResponse + * Creates a plain object from a DemotePrimaryResponse message. Also converts values to other types if specified. + * @param message DemotePrimaryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.FullStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.DemotePrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FullStatusResponse to JSON. + * Converts this DemotePrimaryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FullStatusResponse + * Gets the default type url for DemotePrimaryResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SetReplicationSourceRequest. */ - interface ISetReplicationSourceRequest { - - /** SetReplicationSourceRequest parent */ - parent?: (topodata.ITabletAlias|null); - - /** SetReplicationSourceRequest time_created_ns */ - time_created_ns?: (number|Long|null); - - /** SetReplicationSourceRequest force_start_replication */ - force_start_replication?: (boolean|null); - - /** SetReplicationSourceRequest wait_position */ - wait_position?: (string|null); + /** Properties of an UndoDemotePrimaryRequest. */ + interface IUndoDemotePrimaryRequest { - /** SetReplicationSourceRequest semiSync */ + /** UndoDemotePrimaryRequest semiSync */ semiSync?: (boolean|null); - - /** SetReplicationSourceRequest heartbeat_interval */ - heartbeat_interval?: (number|null); } - /** Represents a SetReplicationSourceRequest. */ - class SetReplicationSourceRequest implements ISetReplicationSourceRequest { + /** Represents an UndoDemotePrimaryRequest. */ + class UndoDemotePrimaryRequest implements IUndoDemotePrimaryRequest { /** - * Constructs a new SetReplicationSourceRequest. + * Constructs a new UndoDemotePrimaryRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISetReplicationSourceRequest); - - /** SetReplicationSourceRequest parent. */ - public parent?: (topodata.ITabletAlias|null); - - /** SetReplicationSourceRequest time_created_ns. */ - public time_created_ns: (number|Long); - - /** SetReplicationSourceRequest force_start_replication. */ - public force_start_replication: boolean; - - /** SetReplicationSourceRequest wait_position. */ - public wait_position: string; + constructor(properties?: tabletmanagerdata.IUndoDemotePrimaryRequest); - /** SetReplicationSourceRequest semiSync. */ + /** UndoDemotePrimaryRequest semiSync. */ public semiSync: boolean; - /** SetReplicationSourceRequest heartbeat_interval. */ - public heartbeat_interval: number; - /** - * Creates a new SetReplicationSourceRequest instance using the specified properties. + * Creates a new UndoDemotePrimaryRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SetReplicationSourceRequest instance + * @returns UndoDemotePrimaryRequest instance */ - public static create(properties?: tabletmanagerdata.ISetReplicationSourceRequest): tabletmanagerdata.SetReplicationSourceRequest; + public static create(properties?: tabletmanagerdata.IUndoDemotePrimaryRequest): tabletmanagerdata.UndoDemotePrimaryRequest; /** - * Encodes the specified SetReplicationSourceRequest message. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceRequest.verify|verify} messages. - * @param message SetReplicationSourceRequest message or plain object to encode + * Encodes the specified UndoDemotePrimaryRequest message. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryRequest.verify|verify} messages. + * @param message UndoDemotePrimaryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.ISetReplicationSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IUndoDemotePrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SetReplicationSourceRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceRequest.verify|verify} messages. - * @param message SetReplicationSourceRequest message or plain object to encode + * Encodes the specified UndoDemotePrimaryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryRequest.verify|verify} messages. + * @param message UndoDemotePrimaryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.ISetReplicationSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IUndoDemotePrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetReplicationSourceRequest message from the specified reader or buffer. + * Decodes an UndoDemotePrimaryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SetReplicationSourceRequest + * @returns UndoDemotePrimaryRequest * @throws {Error} If the payload is 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.SetReplicationSourceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.UndoDemotePrimaryRequest; /** - * Decodes a SetReplicationSourceRequest message from the specified reader or buffer, length delimited. + * Decodes an UndoDemotePrimaryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetReplicationSourceRequest + * @returns UndoDemotePrimaryRequest * @throws {Error} If the 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.SetReplicationSourceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.UndoDemotePrimaryRequest; /** - * Verifies a SetReplicationSourceRequest message. + * Verifies an UndoDemotePrimaryRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SetReplicationSourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UndoDemotePrimaryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetReplicationSourceRequest + * @returns UndoDemotePrimaryRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReplicationSourceRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UndoDemotePrimaryRequest; /** - * Creates a plain object from a SetReplicationSourceRequest message. Also converts values to other types if specified. - * @param message SetReplicationSourceRequest + * Creates a plain object from an UndoDemotePrimaryRequest message. Also converts values to other types if specified. + * @param message UndoDemotePrimaryRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.SetReplicationSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.UndoDemotePrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetReplicationSourceRequest to JSON. + * Converts this UndoDemotePrimaryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetReplicationSourceRequest + * Gets the default type url for UndoDemotePrimaryRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SetReplicationSourceResponse. */ - interface ISetReplicationSourceResponse { + /** Properties of an UndoDemotePrimaryResponse. */ + interface IUndoDemotePrimaryResponse { } - /** Represents a SetReplicationSourceResponse. */ - class SetReplicationSourceResponse implements ISetReplicationSourceResponse { + /** Represents an UndoDemotePrimaryResponse. */ + class UndoDemotePrimaryResponse implements IUndoDemotePrimaryResponse { /** - * Constructs a new SetReplicationSourceResponse. + * Constructs a new UndoDemotePrimaryResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISetReplicationSourceResponse); + constructor(properties?: tabletmanagerdata.IUndoDemotePrimaryResponse); /** - * Creates a new SetReplicationSourceResponse instance using the specified properties. + * Creates a new UndoDemotePrimaryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SetReplicationSourceResponse instance + * @returns UndoDemotePrimaryResponse instance */ - public static create(properties?: tabletmanagerdata.ISetReplicationSourceResponse): tabletmanagerdata.SetReplicationSourceResponse; + public static create(properties?: tabletmanagerdata.IUndoDemotePrimaryResponse): tabletmanagerdata.UndoDemotePrimaryResponse; /** - * Encodes the specified SetReplicationSourceResponse message. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceResponse.verify|verify} messages. - * @param message SetReplicationSourceResponse message or plain object to encode + * Encodes the specified UndoDemotePrimaryResponse message. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryResponse.verify|verify} messages. + * @param message UndoDemotePrimaryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.ISetReplicationSourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IUndoDemotePrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SetReplicationSourceResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceResponse.verify|verify} messages. - * @param message SetReplicationSourceResponse message or plain object to encode + * Encodes the specified UndoDemotePrimaryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryResponse.verify|verify} messages. + * @param message UndoDemotePrimaryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.ISetReplicationSourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IUndoDemotePrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetReplicationSourceResponse message from the specified reader or buffer. + * Decodes an UndoDemotePrimaryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SetReplicationSourceResponse + * @returns UndoDemotePrimaryResponse * @throws {Error} If the payload is 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.SetReplicationSourceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.UndoDemotePrimaryResponse; /** - * Decodes a SetReplicationSourceResponse message from the specified reader or buffer, length delimited. + * Decodes an UndoDemotePrimaryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetReplicationSourceResponse + * @returns UndoDemotePrimaryResponse * @throws {Error} If the 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.SetReplicationSourceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.UndoDemotePrimaryResponse; /** - * Verifies a SetReplicationSourceResponse message. + * Verifies an UndoDemotePrimaryResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SetReplicationSourceResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UndoDemotePrimaryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetReplicationSourceResponse + * @returns UndoDemotePrimaryResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReplicationSourceResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UndoDemotePrimaryResponse; /** - * Creates a plain object from a SetReplicationSourceResponse message. Also converts values to other types if specified. - * @param message SetReplicationSourceResponse + * Creates a plain object from an UndoDemotePrimaryResponse message. Also converts values to other types if specified. + * @param message UndoDemotePrimaryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.SetReplicationSourceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.UndoDemotePrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetReplicationSourceResponse to JSON. + * Converts this UndoDemotePrimaryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetReplicationSourceResponse + * Gets the default type url for UndoDemotePrimaryResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReplicaWasRestartedRequest. */ - interface IReplicaWasRestartedRequest { - - /** ReplicaWasRestartedRequest parent */ - parent?: (topodata.ITabletAlias|null); + /** Properties of a ReplicaWasPromotedRequest. */ + interface IReplicaWasPromotedRequest { } - /** Represents a ReplicaWasRestartedRequest. */ - class ReplicaWasRestartedRequest implements IReplicaWasRestartedRequest { + /** Represents a ReplicaWasPromotedRequest. */ + class ReplicaWasPromotedRequest implements IReplicaWasPromotedRequest { /** - * Constructs a new ReplicaWasRestartedRequest. + * Constructs a new ReplicaWasPromotedRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReplicaWasRestartedRequest); - - /** ReplicaWasRestartedRequest parent. */ - public parent?: (topodata.ITabletAlias|null); + constructor(properties?: tabletmanagerdata.IReplicaWasPromotedRequest); /** - * Creates a new ReplicaWasRestartedRequest instance using the specified properties. + * Creates a new ReplicaWasPromotedRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReplicaWasRestartedRequest instance + * @returns ReplicaWasPromotedRequest instance */ - public static create(properties?: tabletmanagerdata.IReplicaWasRestartedRequest): tabletmanagerdata.ReplicaWasRestartedRequest; + public static create(properties?: tabletmanagerdata.IReplicaWasPromotedRequest): tabletmanagerdata.ReplicaWasPromotedRequest; /** - * Encodes the specified ReplicaWasRestartedRequest message. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedRequest.verify|verify} messages. - * @param message ReplicaWasRestartedRequest message or plain object to encode + * Encodes the specified ReplicaWasPromotedRequest message. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedRequest.verify|verify} messages. + * @param message ReplicaWasPromotedRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IReplicaWasRestartedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReplicaWasPromotedRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReplicaWasRestartedRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedRequest.verify|verify} messages. - * @param message ReplicaWasRestartedRequest message or plain object to encode + * Encodes the specified ReplicaWasPromotedRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedRequest.verify|verify} messages. + * @param message ReplicaWasPromotedRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IReplicaWasRestartedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReplicaWasPromotedRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReplicaWasRestartedRequest message from the specified reader or buffer. + * Decodes a ReplicaWasPromotedRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReplicaWasRestartedRequest + * @returns ReplicaWasPromotedRequest * @throws {Error} If the payload is 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.ReplicaWasRestartedRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReplicaWasPromotedRequest; /** - * Decodes a ReplicaWasRestartedRequest message from the specified reader or buffer, length delimited. + * Decodes a ReplicaWasPromotedRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReplicaWasRestartedRequest + * @returns ReplicaWasPromotedRequest * @throws {Error} If the 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.ReplicaWasRestartedRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReplicaWasPromotedRequest; /** - * Verifies a ReplicaWasRestartedRequest message. + * Verifies a ReplicaWasPromotedRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReplicaWasRestartedRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReplicaWasPromotedRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReplicaWasRestartedRequest + * @returns ReplicaWasPromotedRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReplicaWasRestartedRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReplicaWasPromotedRequest; /** - * Creates a plain object from a ReplicaWasRestartedRequest message. Also converts values to other types if specified. - * @param message ReplicaWasRestartedRequest + * Creates a plain object from a ReplicaWasPromotedRequest message. Also converts values to other types if specified. + * @param message ReplicaWasPromotedRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ReplicaWasRestartedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReplicaWasPromotedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReplicaWasRestartedRequest to JSON. + * Converts this ReplicaWasPromotedRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReplicaWasRestartedRequest + * Gets the default type url for ReplicaWasPromotedRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReplicaWasRestartedResponse. */ - interface IReplicaWasRestartedResponse { + /** Properties of a ReplicaWasPromotedResponse. */ + interface IReplicaWasPromotedResponse { } - /** Represents a ReplicaWasRestartedResponse. */ - class ReplicaWasRestartedResponse implements IReplicaWasRestartedResponse { + /** Represents a ReplicaWasPromotedResponse. */ + class ReplicaWasPromotedResponse implements IReplicaWasPromotedResponse { /** - * Constructs a new ReplicaWasRestartedResponse. + * Constructs a new ReplicaWasPromotedResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReplicaWasRestartedResponse); + constructor(properties?: tabletmanagerdata.IReplicaWasPromotedResponse); /** - * Creates a new ReplicaWasRestartedResponse instance using the specified properties. + * Creates a new ReplicaWasPromotedResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReplicaWasRestartedResponse instance + * @returns ReplicaWasPromotedResponse instance */ - public static create(properties?: tabletmanagerdata.IReplicaWasRestartedResponse): tabletmanagerdata.ReplicaWasRestartedResponse; + public static create(properties?: tabletmanagerdata.IReplicaWasPromotedResponse): tabletmanagerdata.ReplicaWasPromotedResponse; /** - * Encodes the specified ReplicaWasRestartedResponse message. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedResponse.verify|verify} messages. - * @param message ReplicaWasRestartedResponse message or plain object to encode + * Encodes the specified ReplicaWasPromotedResponse message. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedResponse.verify|verify} messages. + * @param message ReplicaWasPromotedResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IReplicaWasRestartedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReplicaWasPromotedResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReplicaWasRestartedResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedResponse.verify|verify} messages. - * @param message ReplicaWasRestartedResponse message or plain object to encode + * Encodes the specified ReplicaWasPromotedResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedResponse.verify|verify} messages. + * @param message ReplicaWasPromotedResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IReplicaWasRestartedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReplicaWasPromotedResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReplicaWasRestartedResponse message from the specified reader or buffer. + * Decodes a ReplicaWasPromotedResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReplicaWasRestartedResponse + * @returns ReplicaWasPromotedResponse * @throws {Error} If the payload is 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.ReplicaWasRestartedResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReplicaWasPromotedResponse; /** - * Decodes a ReplicaWasRestartedResponse message from the specified reader or buffer, length delimited. + * Decodes a ReplicaWasPromotedResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReplicaWasRestartedResponse + * @returns ReplicaWasPromotedResponse * @throws {Error} If the 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.ReplicaWasRestartedResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReplicaWasPromotedResponse; /** - * Verifies a ReplicaWasRestartedResponse message. + * Verifies a ReplicaWasPromotedResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReplicaWasRestartedResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReplicaWasPromotedResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReplicaWasRestartedResponse + * @returns ReplicaWasPromotedResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReplicaWasRestartedResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReplicaWasPromotedResponse; /** - * Creates a plain object from a ReplicaWasRestartedResponse message. Also converts values to other types if specified. - * @param message ReplicaWasRestartedResponse + * Creates a plain object from a ReplicaWasPromotedResponse message. Also converts values to other types if specified. + * @param message ReplicaWasPromotedResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ReplicaWasRestartedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReplicaWasPromotedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReplicaWasRestartedResponse to JSON. + * Converts this ReplicaWasPromotedResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReplicaWasRestartedResponse + * Gets the default type url for ReplicaWasPromotedResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StopReplicationAndGetStatusRequest. */ - interface IStopReplicationAndGetStatusRequest { - - /** StopReplicationAndGetStatusRequest stop_replication_mode */ - stop_replication_mode?: (replicationdata.StopReplicationMode|null); + /** Properties of a ResetReplicationParametersRequest. */ + interface IResetReplicationParametersRequest { } - /** Represents a StopReplicationAndGetStatusRequest. */ - class StopReplicationAndGetStatusRequest implements IStopReplicationAndGetStatusRequest { + /** Represents a ResetReplicationParametersRequest. */ + class ResetReplicationParametersRequest implements IResetReplicationParametersRequest { /** - * Constructs a new StopReplicationAndGetStatusRequest. + * Constructs a new ResetReplicationParametersRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IStopReplicationAndGetStatusRequest); - - /** StopReplicationAndGetStatusRequest stop_replication_mode. */ - public stop_replication_mode: replicationdata.StopReplicationMode; + constructor(properties?: tabletmanagerdata.IResetReplicationParametersRequest); /** - * Creates a new StopReplicationAndGetStatusRequest instance using the specified properties. + * Creates a new ResetReplicationParametersRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StopReplicationAndGetStatusRequest instance + * @returns ResetReplicationParametersRequest instance */ - public static create(properties?: tabletmanagerdata.IStopReplicationAndGetStatusRequest): tabletmanagerdata.StopReplicationAndGetStatusRequest; + public static create(properties?: tabletmanagerdata.IResetReplicationParametersRequest): tabletmanagerdata.ResetReplicationParametersRequest; /** - * Encodes the specified StopReplicationAndGetStatusRequest message. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusRequest.verify|verify} messages. - * @param message StopReplicationAndGetStatusRequest message or plain object to encode + * Encodes the specified ResetReplicationParametersRequest message. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersRequest.verify|verify} messages. + * @param message ResetReplicationParametersRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IStopReplicationAndGetStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IResetReplicationParametersRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopReplicationAndGetStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusRequest.verify|verify} messages. - * @param message StopReplicationAndGetStatusRequest message or plain object to encode + * Encodes the specified ResetReplicationParametersRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersRequest.verify|verify} messages. + * @param message ResetReplicationParametersRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IStopReplicationAndGetStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IResetReplicationParametersRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopReplicationAndGetStatusRequest message from the specified reader or buffer. + * Decodes a ResetReplicationParametersRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopReplicationAndGetStatusRequest + * @returns ResetReplicationParametersRequest * @throws {Error} If the payload is 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.StopReplicationAndGetStatusRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ResetReplicationParametersRequest; /** - * Decodes a StopReplicationAndGetStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a ResetReplicationParametersRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopReplicationAndGetStatusRequest + * @returns ResetReplicationParametersRequest * @throws {Error} If the 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.StopReplicationAndGetStatusRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ResetReplicationParametersRequest; /** - * Verifies a StopReplicationAndGetStatusRequest message. + * Verifies a ResetReplicationParametersRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StopReplicationAndGetStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResetReplicationParametersRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopReplicationAndGetStatusRequest + * @returns ResetReplicationParametersRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StopReplicationAndGetStatusRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ResetReplicationParametersRequest; /** - * Creates a plain object from a StopReplicationAndGetStatusRequest message. Also converts values to other types if specified. - * @param message StopReplicationAndGetStatusRequest + * Creates a plain object from a ResetReplicationParametersRequest message. Also converts values to other types if specified. + * @param message ResetReplicationParametersRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.StopReplicationAndGetStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ResetReplicationParametersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopReplicationAndGetStatusRequest to JSON. + * Converts this ResetReplicationParametersRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StopReplicationAndGetStatusRequest + * Gets the default type url for ResetReplicationParametersRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StopReplicationAndGetStatusResponse. */ - interface IStopReplicationAndGetStatusResponse { - - /** StopReplicationAndGetStatusResponse status */ - status?: (replicationdata.IStopReplicationStatus|null); + /** Properties of a ResetReplicationParametersResponse. */ + interface IResetReplicationParametersResponse { } - /** Represents a StopReplicationAndGetStatusResponse. */ - class StopReplicationAndGetStatusResponse implements IStopReplicationAndGetStatusResponse { + /** Represents a ResetReplicationParametersResponse. */ + class ResetReplicationParametersResponse implements IResetReplicationParametersResponse { /** - * Constructs a new StopReplicationAndGetStatusResponse. + * Constructs a new ResetReplicationParametersResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IStopReplicationAndGetStatusResponse); - - /** StopReplicationAndGetStatusResponse status. */ - public status?: (replicationdata.IStopReplicationStatus|null); + constructor(properties?: tabletmanagerdata.IResetReplicationParametersResponse); /** - * Creates a new StopReplicationAndGetStatusResponse instance using the specified properties. + * Creates a new ResetReplicationParametersResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StopReplicationAndGetStatusResponse instance + * @returns ResetReplicationParametersResponse instance */ - public static create(properties?: tabletmanagerdata.IStopReplicationAndGetStatusResponse): tabletmanagerdata.StopReplicationAndGetStatusResponse; + public static create(properties?: tabletmanagerdata.IResetReplicationParametersResponse): tabletmanagerdata.ResetReplicationParametersResponse; /** - * Encodes the specified StopReplicationAndGetStatusResponse message. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusResponse.verify|verify} messages. - * @param message StopReplicationAndGetStatusResponse message or plain object to encode + * Encodes the specified ResetReplicationParametersResponse message. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersResponse.verify|verify} messages. + * @param message ResetReplicationParametersResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IStopReplicationAndGetStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IResetReplicationParametersResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopReplicationAndGetStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusResponse.verify|verify} messages. - * @param message StopReplicationAndGetStatusResponse message or plain object to encode + * Encodes the specified ResetReplicationParametersResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersResponse.verify|verify} messages. + * @param message ResetReplicationParametersResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IStopReplicationAndGetStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IResetReplicationParametersResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopReplicationAndGetStatusResponse message from the specified reader or buffer. + * Decodes a ResetReplicationParametersResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopReplicationAndGetStatusResponse + * @returns ResetReplicationParametersResponse * @throws {Error} If the payload is 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.StopReplicationAndGetStatusResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ResetReplicationParametersResponse; /** - * Decodes a StopReplicationAndGetStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a ResetReplicationParametersResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopReplicationAndGetStatusResponse + * @returns ResetReplicationParametersResponse * @throws {Error} If the 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.StopReplicationAndGetStatusResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ResetReplicationParametersResponse; /** - * Verifies a StopReplicationAndGetStatusResponse message. + * Verifies a ResetReplicationParametersResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StopReplicationAndGetStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ResetReplicationParametersResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopReplicationAndGetStatusResponse + * @returns ResetReplicationParametersResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StopReplicationAndGetStatusResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ResetReplicationParametersResponse; /** - * Creates a plain object from a StopReplicationAndGetStatusResponse message. Also converts values to other types if specified. - * @param message StopReplicationAndGetStatusResponse + * Creates a plain object from a ResetReplicationParametersResponse message. Also converts values to other types if specified. + * @param message ResetReplicationParametersResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.StopReplicationAndGetStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ResetReplicationParametersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopReplicationAndGetStatusResponse to JSON. + * Converts this ResetReplicationParametersResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StopReplicationAndGetStatusResponse + * Gets the default type url for ResetReplicationParametersResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PromoteReplicaRequest. */ - interface IPromoteReplicaRequest { - - /** PromoteReplicaRequest semiSync */ - semiSync?: (boolean|null); + /** Properties of a FullStatusRequest. */ + interface IFullStatusRequest { } - /** Represents a PromoteReplicaRequest. */ - class PromoteReplicaRequest implements IPromoteReplicaRequest { + /** Represents a FullStatusRequest. */ + class FullStatusRequest implements IFullStatusRequest { /** - * Constructs a new PromoteReplicaRequest. + * Constructs a new FullStatusRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPromoteReplicaRequest); - - /** PromoteReplicaRequest semiSync. */ - public semiSync: boolean; + constructor(properties?: tabletmanagerdata.IFullStatusRequest); /** - * Creates a new PromoteReplicaRequest instance using the specified properties. + * Creates a new FullStatusRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PromoteReplicaRequest instance + * @returns FullStatusRequest instance */ - public static create(properties?: tabletmanagerdata.IPromoteReplicaRequest): tabletmanagerdata.PromoteReplicaRequest; + public static create(properties?: tabletmanagerdata.IFullStatusRequest): tabletmanagerdata.FullStatusRequest; /** - * Encodes the specified PromoteReplicaRequest message. Does not implicitly {@link tabletmanagerdata.PromoteReplicaRequest.verify|verify} messages. - * @param message PromoteReplicaRequest message or plain object to encode + * Encodes the specified FullStatusRequest message. Does not implicitly {@link tabletmanagerdata.FullStatusRequest.verify|verify} messages. + * @param message FullStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IPromoteReplicaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PromoteReplicaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PromoteReplicaRequest.verify|verify} messages. - * @param message PromoteReplicaRequest message or plain object to encode + * Encodes the specified FullStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.FullStatusRequest.verify|verify} messages. + * @param message FullStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IPromoteReplicaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PromoteReplicaRequest message from the specified reader or buffer. + * Decodes a FullStatusRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PromoteReplicaRequest + * @returns FullStatusRequest * @throws {Error} If the payload is 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.PromoteReplicaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.FullStatusRequest; /** - * Decodes a PromoteReplicaRequest message from the specified reader or buffer, length delimited. + * Decodes a FullStatusRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PromoteReplicaRequest + * @returns FullStatusRequest * @throws {Error} If the 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.PromoteReplicaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.FullStatusRequest; /** - * Verifies a PromoteReplicaRequest message. + * Verifies a FullStatusRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PromoteReplicaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FullStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PromoteReplicaRequest + * @returns FullStatusRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PromoteReplicaRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.FullStatusRequest; /** - * Creates a plain object from a PromoteReplicaRequest message. Also converts values to other types if specified. - * @param message PromoteReplicaRequest + * Creates a plain object from a FullStatusRequest message. Also converts values to other types if specified. + * @param message FullStatusRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.PromoteReplicaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.FullStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PromoteReplicaRequest to JSON. + * Converts this FullStatusRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PromoteReplicaRequest + * Gets the default type url for FullStatusRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PromoteReplicaResponse. */ - interface IPromoteReplicaResponse { + /** Properties of a FullStatusResponse. */ + interface IFullStatusResponse { - /** PromoteReplicaResponse position */ - position?: (string|null); + /** FullStatusResponse status */ + status?: (replicationdata.IFullStatus|null); } - /** Represents a PromoteReplicaResponse. */ - class PromoteReplicaResponse implements IPromoteReplicaResponse { + /** Represents a FullStatusResponse. */ + class FullStatusResponse implements IFullStatusResponse { /** - * Constructs a new PromoteReplicaResponse. + * Constructs a new FullStatusResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPromoteReplicaResponse); + constructor(properties?: tabletmanagerdata.IFullStatusResponse); - /** PromoteReplicaResponse position. */ - public position: string; + /** FullStatusResponse status. */ + public status?: (replicationdata.IFullStatus|null); /** - * Creates a new PromoteReplicaResponse instance using the specified properties. + * Creates a new FullStatusResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PromoteReplicaResponse instance + * @returns FullStatusResponse instance */ - public static create(properties?: tabletmanagerdata.IPromoteReplicaResponse): tabletmanagerdata.PromoteReplicaResponse; + public static create(properties?: tabletmanagerdata.IFullStatusResponse): tabletmanagerdata.FullStatusResponse; /** - * Encodes the specified PromoteReplicaResponse message. Does not implicitly {@link tabletmanagerdata.PromoteReplicaResponse.verify|verify} messages. - * @param message PromoteReplicaResponse message or plain object to encode + * Encodes the specified FullStatusResponse message. Does not implicitly {@link tabletmanagerdata.FullStatusResponse.verify|verify} messages. + * @param message FullStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IPromoteReplicaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PromoteReplicaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PromoteReplicaResponse.verify|verify} messages. - * @param message PromoteReplicaResponse message or plain object to encode + * Encodes the specified FullStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.FullStatusResponse.verify|verify} messages. + * @param message FullStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IPromoteReplicaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PromoteReplicaResponse message from the specified reader or buffer. + * Decodes a FullStatusResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PromoteReplicaResponse + * @returns FullStatusResponse * @throws {Error} If the payload is 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.PromoteReplicaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.FullStatusResponse; /** - * Decodes a PromoteReplicaResponse message from the specified reader or buffer, length delimited. + * Decodes a FullStatusResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PromoteReplicaResponse + * @returns FullStatusResponse * @throws {Error} If the 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.PromoteReplicaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.FullStatusResponse; /** - * Verifies a PromoteReplicaResponse message. + * Verifies a FullStatusResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PromoteReplicaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FullStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PromoteReplicaResponse + * @returns FullStatusResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PromoteReplicaResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.FullStatusResponse; /** - * Creates a plain object from a PromoteReplicaResponse message. Also converts values to other types if specified. - * @param message PromoteReplicaResponse + * Creates a plain object from a FullStatusResponse message. Also converts values to other types if specified. + * @param message FullStatusResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.PromoteReplicaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.FullStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PromoteReplicaResponse to JSON. + * Converts this FullStatusResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PromoteReplicaResponse + * Gets the default type url for FullStatusResponse * @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 { + /** Properties of a SetReplicationSourceRequest. */ + interface ISetReplicationSourceRequest { - /** BackupRequest concurrency */ - concurrency?: (number|null); + /** SetReplicationSourceRequest parent */ + parent?: (topodata.ITabletAlias|null); - /** BackupRequest allow_primary */ - allow_primary?: (boolean|null); + /** SetReplicationSourceRequest time_created_ns */ + time_created_ns?: (number|Long|null); - /** BackupRequest incremental_from_pos */ - incremental_from_pos?: (string|null); + /** SetReplicationSourceRequest force_start_replication */ + force_start_replication?: (boolean|null); - /** BackupRequest upgrade_safe */ - upgrade_safe?: (boolean|null); + /** SetReplicationSourceRequest wait_position */ + wait_position?: (string|null); - /** BackupRequest backup_engine */ - backup_engine?: (string|null); + /** SetReplicationSourceRequest semiSync */ + semiSync?: (boolean|null); - /** BackupRequest mysql_shutdown_timeout */ - mysql_shutdown_timeout?: (vttime.IDuration|null); + /** SetReplicationSourceRequest heartbeat_interval */ + heartbeat_interval?: (number|null); } - /** Represents a BackupRequest. */ - class BackupRequest implements IBackupRequest { + /** Represents a SetReplicationSourceRequest. */ + class SetReplicationSourceRequest implements ISetReplicationSourceRequest { /** - * Constructs a new BackupRequest. + * Constructs a new SetReplicationSourceRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IBackupRequest); + constructor(properties?: tabletmanagerdata.ISetReplicationSourceRequest); - /** BackupRequest concurrency. */ - public concurrency: number; + /** SetReplicationSourceRequest parent. */ + public parent?: (topodata.ITabletAlias|null); - /** BackupRequest allow_primary. */ - public allow_primary: boolean; + /** SetReplicationSourceRequest time_created_ns. */ + public time_created_ns: (number|Long); - /** BackupRequest incremental_from_pos. */ - public incremental_from_pos: string; + /** SetReplicationSourceRequest force_start_replication. */ + public force_start_replication: boolean; - /** BackupRequest upgrade_safe. */ - public upgrade_safe: boolean; + /** SetReplicationSourceRequest wait_position. */ + public wait_position: string; - /** BackupRequest backup_engine. */ - public backup_engine?: (string|null); + /** SetReplicationSourceRequest semiSync. */ + public semiSync: boolean; - /** BackupRequest mysql_shutdown_timeout. */ - public mysql_shutdown_timeout?: (vttime.IDuration|null); + /** SetReplicationSourceRequest heartbeat_interval. */ + public heartbeat_interval: number; /** - * Creates a new BackupRequest instance using the specified properties. + * Creates a new SetReplicationSourceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BackupRequest instance + * @returns SetReplicationSourceRequest instance */ - public static create(properties?: tabletmanagerdata.IBackupRequest): tabletmanagerdata.BackupRequest; + public static create(properties?: tabletmanagerdata.ISetReplicationSourceRequest): tabletmanagerdata.SetReplicationSourceRequest; /** - * Encodes the specified BackupRequest message. Does not implicitly {@link tabletmanagerdata.BackupRequest.verify|verify} messages. - * @param message BackupRequest message or plain object to encode + * Encodes the specified SetReplicationSourceRequest message. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceRequest.verify|verify} messages. + * @param message SetReplicationSourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISetReplicationSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.BackupRequest.verify|verify} messages. - * @param message BackupRequest message or plain object to encode + * Encodes the specified SetReplicationSourceRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceRequest.verify|verify} messages. + * @param message SetReplicationSourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISetReplicationSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BackupRequest message from the specified reader or buffer. + * Decodes a SetReplicationSourceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BackupRequest + * @returns SetReplicationSourceRequest * @throws {Error} If the payload is 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.BackupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SetReplicationSourceRequest; /** - * Decodes a BackupRequest message from the specified reader or buffer, length delimited. + * Decodes a SetReplicationSourceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BackupRequest + * @returns SetReplicationSourceRequest * @throws {Error} If the 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.BackupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SetReplicationSourceRequest; /** - * Verifies a BackupRequest message. + * Verifies a SetReplicationSourceRequest message. * @param message Plain object 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. + * Creates a SetReplicationSourceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BackupRequest + * @returns SetReplicationSourceRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.BackupRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReplicationSourceRequest; /** - * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. - * @param message BackupRequest + * Creates a plain object from a SetReplicationSourceRequest message. Also converts values to other types if specified. + * @param message SetReplicationSourceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.BackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SetReplicationSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BackupRequest to JSON. + * Converts this SetReplicationSourceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BackupRequest + * Gets the default type url for SetReplicationSourceRequest * @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 event */ - event?: (logutil.IEvent|null); + /** Properties of a SetReplicationSourceResponse. */ + interface ISetReplicationSourceResponse { } - /** Represents a BackupResponse. */ - class BackupResponse implements IBackupResponse { + /** Represents a SetReplicationSourceResponse. */ + class SetReplicationSourceResponse implements ISetReplicationSourceResponse { /** - * Constructs a new BackupResponse. + * Constructs a new SetReplicationSourceResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IBackupResponse); - - /** BackupResponse event. */ - public event?: (logutil.IEvent|null); + constructor(properties?: tabletmanagerdata.ISetReplicationSourceResponse); /** - * Creates a new BackupResponse instance using the specified properties. + * Creates a new SetReplicationSourceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BackupResponse instance + * @returns SetReplicationSourceResponse instance */ - public static create(properties?: tabletmanagerdata.IBackupResponse): tabletmanagerdata.BackupResponse; + public static create(properties?: tabletmanagerdata.ISetReplicationSourceResponse): tabletmanagerdata.SetReplicationSourceResponse; /** - * Encodes the specified BackupResponse message. Does not implicitly {@link tabletmanagerdata.BackupResponse.verify|verify} messages. - * @param message BackupResponse message or plain object to encode + * Encodes the specified SetReplicationSourceResponse message. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceResponse.verify|verify} messages. + * @param message SetReplicationSourceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISetReplicationSourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.BackupResponse.verify|verify} messages. - * @param message BackupResponse message or plain object to encode + * Encodes the specified SetReplicationSourceResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceResponse.verify|verify} messages. + * @param message SetReplicationSourceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISetReplicationSourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BackupResponse message from the specified reader or buffer. + * Decodes a SetReplicationSourceResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BackupResponse + * @returns SetReplicationSourceResponse * @throws {Error} If the payload is 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.BackupResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SetReplicationSourceResponse; /** - * Decodes a BackupResponse message from the specified reader or buffer, length delimited. + * Decodes a SetReplicationSourceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BackupResponse + * @returns SetReplicationSourceResponse * @throws {Error} If the 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.BackupResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SetReplicationSourceResponse; /** - * Verifies a BackupResponse message. + * Verifies a SetReplicationSourceResponse message. * @param message Plain object 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. + * Creates a SetReplicationSourceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BackupResponse + * @returns SetReplicationSourceResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.BackupResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReplicationSourceResponse; /** - * Creates a plain object from a BackupResponse message. Also converts values to other types if specified. - * @param message BackupResponse + * Creates a plain object from a SetReplicationSourceResponse message. Also converts values to other types if specified. + * @param message SetReplicationSourceResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.BackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SetReplicationSourceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BackupResponse to JSON. + * Converts this SetReplicationSourceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BackupResponse + * Gets the default type url for SetReplicationSourceResponse * @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 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); + /** Properties of a ReplicaWasRestartedRequest. */ + interface IReplicaWasRestartedRequest { - /** RestoreFromBackupRequest allowed_backup_engines */ - allowed_backup_engines?: (string[]|null); + /** ReplicaWasRestartedRequest parent */ + parent?: (topodata.ITabletAlias|null); } - /** Represents a RestoreFromBackupRequest. */ - class RestoreFromBackupRequest implements IRestoreFromBackupRequest { + /** Represents a ReplicaWasRestartedRequest. */ + class ReplicaWasRestartedRequest implements IReplicaWasRestartedRequest { /** - * Constructs a new RestoreFromBackupRequest. + * Constructs a new ReplicaWasRestartedRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IRestoreFromBackupRequest); - - /** 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); + constructor(properties?: tabletmanagerdata.IReplicaWasRestartedRequest); - /** RestoreFromBackupRequest allowed_backup_engines. */ - public allowed_backup_engines: string[]; + /** ReplicaWasRestartedRequest parent. */ + public parent?: (topodata.ITabletAlias|null); /** - * Creates a new RestoreFromBackupRequest instance using the specified properties. + * Creates a new ReplicaWasRestartedRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RestoreFromBackupRequest instance + * @returns ReplicaWasRestartedRequest instance */ - public static create(properties?: tabletmanagerdata.IRestoreFromBackupRequest): tabletmanagerdata.RestoreFromBackupRequest; + public static create(properties?: tabletmanagerdata.IReplicaWasRestartedRequest): tabletmanagerdata.ReplicaWasRestartedRequest; /** - * Encodes the specified RestoreFromBackupRequest message. Does not implicitly {@link tabletmanagerdata.RestoreFromBackupRequest.verify|verify} messages. - * @param message RestoreFromBackupRequest message or plain object to encode + * Encodes the specified ReplicaWasRestartedRequest message. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedRequest.verify|verify} messages. + * @param message ReplicaWasRestartedRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReplicaWasRestartedRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RestoreFromBackupRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.RestoreFromBackupRequest.verify|verify} messages. - * @param message RestoreFromBackupRequest message or plain object to encode + * Encodes the specified ReplicaWasRestartedRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedRequest.verify|verify} messages. + * @param message ReplicaWasRestartedRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReplicaWasRestartedRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RestoreFromBackupRequest message from the specified reader or buffer. + * Decodes a ReplicaWasRestartedRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RestoreFromBackupRequest + * @returns ReplicaWasRestartedRequest * @throws {Error} If the payload is 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.RestoreFromBackupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReplicaWasRestartedRequest; /** - * Decodes a RestoreFromBackupRequest message from the specified reader or buffer, length delimited. + * Decodes a ReplicaWasRestartedRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RestoreFromBackupRequest + * @returns ReplicaWasRestartedRequest * @throws {Error} If the 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.RestoreFromBackupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReplicaWasRestartedRequest; /** - * Verifies a RestoreFromBackupRequest message. + * Verifies a ReplicaWasRestartedRequest message. * @param message Plain object 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. + * Creates a ReplicaWasRestartedRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RestoreFromBackupRequest + * @returns ReplicaWasRestartedRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RestoreFromBackupRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReplicaWasRestartedRequest; /** - * Creates a plain object from a RestoreFromBackupRequest message. Also converts values to other types if specified. - * @param message RestoreFromBackupRequest + * Creates a plain object from a ReplicaWasRestartedRequest message. Also converts values to other types if specified. + * @param message ReplicaWasRestartedRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.RestoreFromBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReplicaWasRestartedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RestoreFromBackupRequest to JSON. + * Converts this ReplicaWasRestartedRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RestoreFromBackupRequest + * Gets the default type url for ReplicaWasRestartedRequest * @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 event */ - event?: (logutil.IEvent|null); + /** Properties of a ReplicaWasRestartedResponse. */ + interface IReplicaWasRestartedResponse { } - /** Represents a RestoreFromBackupResponse. */ - class RestoreFromBackupResponse implements IRestoreFromBackupResponse { + /** Represents a ReplicaWasRestartedResponse. */ + class ReplicaWasRestartedResponse implements IReplicaWasRestartedResponse { /** - * Constructs a new RestoreFromBackupResponse. + * Constructs a new ReplicaWasRestartedResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IRestoreFromBackupResponse); - - /** RestoreFromBackupResponse event. */ - public event?: (logutil.IEvent|null); + constructor(properties?: tabletmanagerdata.IReplicaWasRestartedResponse); /** - * Creates a new RestoreFromBackupResponse instance using the specified properties. + * Creates a new ReplicaWasRestartedResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RestoreFromBackupResponse instance + * @returns ReplicaWasRestartedResponse instance */ - public static create(properties?: tabletmanagerdata.IRestoreFromBackupResponse): tabletmanagerdata.RestoreFromBackupResponse; + public static create(properties?: tabletmanagerdata.IReplicaWasRestartedResponse): tabletmanagerdata.ReplicaWasRestartedResponse; /** - * Encodes the specified RestoreFromBackupResponse message. Does not implicitly {@link tabletmanagerdata.RestoreFromBackupResponse.verify|verify} messages. - * @param message RestoreFromBackupResponse message or plain object to encode + * Encodes the specified ReplicaWasRestartedResponse message. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedResponse.verify|verify} messages. + * @param message ReplicaWasRestartedResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReplicaWasRestartedResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RestoreFromBackupResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.RestoreFromBackupResponse.verify|verify} messages. - * @param message RestoreFromBackupResponse message or plain object to encode + * Encodes the specified ReplicaWasRestartedResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedResponse.verify|verify} messages. + * @param message ReplicaWasRestartedResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReplicaWasRestartedResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RestoreFromBackupResponse message from the specified reader or buffer. + * Decodes a ReplicaWasRestartedResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RestoreFromBackupResponse + * @returns ReplicaWasRestartedResponse * @throws {Error} If the payload is 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.RestoreFromBackupResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReplicaWasRestartedResponse; /** - * Decodes a RestoreFromBackupResponse message from the specified reader or buffer, length delimited. + * Decodes a ReplicaWasRestartedResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RestoreFromBackupResponse + * @returns ReplicaWasRestartedResponse * @throws {Error} If the 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.RestoreFromBackupResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReplicaWasRestartedResponse; /** - * Verifies a RestoreFromBackupResponse message. + * Verifies a ReplicaWasRestartedResponse message. * @param message Plain object 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. + * Creates a ReplicaWasRestartedResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RestoreFromBackupResponse + * @returns ReplicaWasRestartedResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RestoreFromBackupResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReplicaWasRestartedResponse; /** - * Creates a plain object from a RestoreFromBackupResponse message. Also converts values to other types if specified. - * @param message RestoreFromBackupResponse + * Creates a plain object from a ReplicaWasRestartedResponse message. Also converts values to other types if specified. + * @param message ReplicaWasRestartedResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.RestoreFromBackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReplicaWasRestartedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RestoreFromBackupResponse to JSON. + * Converts this ReplicaWasRestartedResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RestoreFromBackupResponse + * Gets the default type url for ReplicaWasRestartedResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateVReplicationWorkflowRequest. */ - interface ICreateVReplicationWorkflowRequest { - - /** CreateVReplicationWorkflowRequest workflow */ - workflow?: (string|null); - - /** CreateVReplicationWorkflowRequest binlog_source */ - binlog_source?: (binlogdata.IBinlogSource[]|null); - - /** CreateVReplicationWorkflowRequest cells */ - cells?: (string[]|null); - - /** CreateVReplicationWorkflowRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** CreateVReplicationWorkflowRequest tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** CreateVReplicationWorkflowRequest workflow_type */ - workflow_type?: (binlogdata.VReplicationWorkflowType|null); - - /** CreateVReplicationWorkflowRequest workflow_sub_type */ - workflow_sub_type?: (binlogdata.VReplicationWorkflowSubType|null); - - /** CreateVReplicationWorkflowRequest defer_secondary_keys */ - defer_secondary_keys?: (boolean|null); - - /** CreateVReplicationWorkflowRequest auto_start */ - auto_start?: (boolean|null); - - /** CreateVReplicationWorkflowRequest stop_after_copy */ - stop_after_copy?: (boolean|null); + /** Properties of a StopReplicationAndGetStatusRequest. */ + interface IStopReplicationAndGetStatusRequest { - /** CreateVReplicationWorkflowRequest options */ - options?: (string|null); + /** StopReplicationAndGetStatusRequest stop_replication_mode */ + stop_replication_mode?: (replicationdata.StopReplicationMode|null); } - /** Represents a CreateVReplicationWorkflowRequest. */ - class CreateVReplicationWorkflowRequest implements ICreateVReplicationWorkflowRequest { + /** Represents a StopReplicationAndGetStatusRequest. */ + class StopReplicationAndGetStatusRequest implements IStopReplicationAndGetStatusRequest { /** - * Constructs a new CreateVReplicationWorkflowRequest. + * Constructs a new StopReplicationAndGetStatusRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ICreateVReplicationWorkflowRequest); - - /** CreateVReplicationWorkflowRequest workflow. */ - public workflow: string; - - /** CreateVReplicationWorkflowRequest binlog_source. */ - public binlog_source: binlogdata.IBinlogSource[]; - - /** CreateVReplicationWorkflowRequest cells. */ - public cells: string[]; - - /** CreateVReplicationWorkflowRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** CreateVReplicationWorkflowRequest tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** CreateVReplicationWorkflowRequest workflow_type. */ - public workflow_type: binlogdata.VReplicationWorkflowType; - - /** CreateVReplicationWorkflowRequest workflow_sub_type. */ - public workflow_sub_type: binlogdata.VReplicationWorkflowSubType; - - /** CreateVReplicationWorkflowRequest defer_secondary_keys. */ - public defer_secondary_keys: boolean; - - /** CreateVReplicationWorkflowRequest auto_start. */ - public auto_start: boolean; - - /** CreateVReplicationWorkflowRequest stop_after_copy. */ - public stop_after_copy: boolean; + constructor(properties?: tabletmanagerdata.IStopReplicationAndGetStatusRequest); - /** CreateVReplicationWorkflowRequest options. */ - public options: string; + /** StopReplicationAndGetStatusRequest stop_replication_mode. */ + public stop_replication_mode: replicationdata.StopReplicationMode; /** - * Creates a new CreateVReplicationWorkflowRequest instance using the specified properties. + * Creates a new StopReplicationAndGetStatusRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateVReplicationWorkflowRequest instance + * @returns StopReplicationAndGetStatusRequest instance */ - public static create(properties?: tabletmanagerdata.ICreateVReplicationWorkflowRequest): tabletmanagerdata.CreateVReplicationWorkflowRequest; + public static create(properties?: tabletmanagerdata.IStopReplicationAndGetStatusRequest): tabletmanagerdata.StopReplicationAndGetStatusRequest; /** - * Encodes the specified CreateVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowRequest.verify|verify} messages. - * @param message CreateVReplicationWorkflowRequest message or plain object to encode + * Encodes the specified StopReplicationAndGetStatusRequest message. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusRequest.verify|verify} messages. + * @param message StopReplicationAndGetStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.ICreateVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IStopReplicationAndGetStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowRequest.verify|verify} messages. - * @param message CreateVReplicationWorkflowRequest message or plain object to encode + * Encodes the specified StopReplicationAndGetStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusRequest.verify|verify} messages. + * @param message StopReplicationAndGetStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.ICreateVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IStopReplicationAndGetStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateVReplicationWorkflowRequest message from the specified reader or buffer. + * Decodes a StopReplicationAndGetStatusRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateVReplicationWorkflowRequest + * @returns StopReplicationAndGetStatusRequest * @throws {Error} If the payload is 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.CreateVReplicationWorkflowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.StopReplicationAndGetStatusRequest; /** - * Decodes a CreateVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationAndGetStatusRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateVReplicationWorkflowRequest + * @returns StopReplicationAndGetStatusRequest * @throws {Error} If the 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.CreateVReplicationWorkflowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.StopReplicationAndGetStatusRequest; /** - * Verifies a CreateVReplicationWorkflowRequest message. + * Verifies a StopReplicationAndGetStatusRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationAndGetStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateVReplicationWorkflowRequest + * @returns StopReplicationAndGetStatusRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.CreateVReplicationWorkflowRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StopReplicationAndGetStatusRequest; /** - * Creates a plain object from a CreateVReplicationWorkflowRequest message. Also converts values to other types if specified. - * @param message CreateVReplicationWorkflowRequest + * Creates a plain object from a StopReplicationAndGetStatusRequest message. Also converts values to other types if specified. + * @param message StopReplicationAndGetStatusRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.CreateVReplicationWorkflowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.StopReplicationAndGetStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateVReplicationWorkflowRequest to JSON. + * Converts this StopReplicationAndGetStatusRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateVReplicationWorkflowRequest + * Gets the default type url for StopReplicationAndGetStatusRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateVReplicationWorkflowResponse. */ - interface ICreateVReplicationWorkflowResponse { + /** Properties of a StopReplicationAndGetStatusResponse. */ + interface IStopReplicationAndGetStatusResponse { - /** CreateVReplicationWorkflowResponse result */ - result?: (query.IQueryResult|null); + /** StopReplicationAndGetStatusResponse status */ + status?: (replicationdata.IStopReplicationStatus|null); } - /** Represents a CreateVReplicationWorkflowResponse. */ - class CreateVReplicationWorkflowResponse implements ICreateVReplicationWorkflowResponse { + /** Represents a StopReplicationAndGetStatusResponse. */ + class StopReplicationAndGetStatusResponse implements IStopReplicationAndGetStatusResponse { /** - * Constructs a new CreateVReplicationWorkflowResponse. + * Constructs a new StopReplicationAndGetStatusResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ICreateVReplicationWorkflowResponse); + constructor(properties?: tabletmanagerdata.IStopReplicationAndGetStatusResponse); - /** CreateVReplicationWorkflowResponse result. */ - public result?: (query.IQueryResult|null); + /** StopReplicationAndGetStatusResponse status. */ + public status?: (replicationdata.IStopReplicationStatus|null); /** - * Creates a new CreateVReplicationWorkflowResponse instance using the specified properties. + * Creates a new StopReplicationAndGetStatusResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateVReplicationWorkflowResponse instance + * @returns StopReplicationAndGetStatusResponse instance */ - public static create(properties?: tabletmanagerdata.ICreateVReplicationWorkflowResponse): tabletmanagerdata.CreateVReplicationWorkflowResponse; + public static create(properties?: tabletmanagerdata.IStopReplicationAndGetStatusResponse): tabletmanagerdata.StopReplicationAndGetStatusResponse; /** - * Encodes the specified CreateVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowResponse.verify|verify} messages. - * @param message CreateVReplicationWorkflowResponse message or plain object to encode + * Encodes the specified StopReplicationAndGetStatusResponse message. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusResponse.verify|verify} messages. + * @param message StopReplicationAndGetStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.ICreateVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IStopReplicationAndGetStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowResponse.verify|verify} messages. - * @param message CreateVReplicationWorkflowResponse message or plain object to encode + * Encodes the specified StopReplicationAndGetStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusResponse.verify|verify} messages. + * @param message StopReplicationAndGetStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.ICreateVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IStopReplicationAndGetStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateVReplicationWorkflowResponse message from the specified reader or buffer. + * Decodes a StopReplicationAndGetStatusResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateVReplicationWorkflowResponse + * @returns StopReplicationAndGetStatusResponse * @throws {Error} If the payload is 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.CreateVReplicationWorkflowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.StopReplicationAndGetStatusResponse; /** - * Decodes a CreateVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationAndGetStatusResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateVReplicationWorkflowResponse + * @returns StopReplicationAndGetStatusResponse * @throws {Error} If the 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.CreateVReplicationWorkflowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.StopReplicationAndGetStatusResponse; /** - * Verifies a CreateVReplicationWorkflowResponse message. + * Verifies a StopReplicationAndGetStatusResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationAndGetStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateVReplicationWorkflowResponse + * @returns StopReplicationAndGetStatusResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.CreateVReplicationWorkflowResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.StopReplicationAndGetStatusResponse; /** - * Creates a plain object from a CreateVReplicationWorkflowResponse message. Also converts values to other types if specified. - * @param message CreateVReplicationWorkflowResponse + * Creates a plain object from a StopReplicationAndGetStatusResponse message. Also converts values to other types if specified. + * @param message StopReplicationAndGetStatusResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.CreateVReplicationWorkflowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.StopReplicationAndGetStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateVReplicationWorkflowResponse to JSON. + * Converts this StopReplicationAndGetStatusResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateVReplicationWorkflowResponse + * Gets the default type url for StopReplicationAndGetStatusResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTableDataRequest. */ - interface IDeleteTableDataRequest { - - /** DeleteTableDataRequest table_filters */ - table_filters?: ({ [k: string]: string }|null); + /** Properties of a PromoteReplicaRequest. */ + interface IPromoteReplicaRequest { - /** DeleteTableDataRequest batch_size */ - batch_size?: (number|Long|null); + /** PromoteReplicaRequest semiSync */ + semiSync?: (boolean|null); } - /** Represents a DeleteTableDataRequest. */ - class DeleteTableDataRequest implements IDeleteTableDataRequest { + /** Represents a PromoteReplicaRequest. */ + class PromoteReplicaRequest implements IPromoteReplicaRequest { /** - * Constructs a new DeleteTableDataRequest. + * Constructs a new PromoteReplicaRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IDeleteTableDataRequest); - - /** DeleteTableDataRequest table_filters. */ - public table_filters: { [k: string]: string }; + constructor(properties?: tabletmanagerdata.IPromoteReplicaRequest); - /** DeleteTableDataRequest batch_size. */ - public batch_size: (number|Long); + /** PromoteReplicaRequest semiSync. */ + public semiSync: boolean; /** - * Creates a new DeleteTableDataRequest instance using the specified properties. + * Creates a new PromoteReplicaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTableDataRequest instance + * @returns PromoteReplicaRequest instance */ - public static create(properties?: tabletmanagerdata.IDeleteTableDataRequest): tabletmanagerdata.DeleteTableDataRequest; + public static create(properties?: tabletmanagerdata.IPromoteReplicaRequest): tabletmanagerdata.PromoteReplicaRequest; /** - * Encodes the specified DeleteTableDataRequest message. Does not implicitly {@link tabletmanagerdata.DeleteTableDataRequest.verify|verify} messages. - * @param message DeleteTableDataRequest message or plain object to encode + * Encodes the specified PromoteReplicaRequest message. Does not implicitly {@link tabletmanagerdata.PromoteReplicaRequest.verify|verify} messages. + * @param message PromoteReplicaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IDeleteTableDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPromoteReplicaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTableDataRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteTableDataRequest.verify|verify} messages. - * @param message DeleteTableDataRequest message or plain object to encode + * Encodes the specified PromoteReplicaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PromoteReplicaRequest.verify|verify} messages. + * @param message PromoteReplicaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IDeleteTableDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPromoteReplicaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTableDataRequest message from the specified reader or buffer. + * Decodes a PromoteReplicaRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTableDataRequest + * @returns PromoteReplicaRequest * @throws {Error} If the payload is 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.DeleteTableDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PromoteReplicaRequest; /** - * Decodes a DeleteTableDataRequest message from the specified reader or buffer, length delimited. + * Decodes a PromoteReplicaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTableDataRequest + * @returns PromoteReplicaRequest * @throws {Error} If the 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.DeleteTableDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PromoteReplicaRequest; /** - * Verifies a DeleteTableDataRequest message. + * Verifies a PromoteReplicaRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteTableDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PromoteReplicaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTableDataRequest + * @returns PromoteReplicaRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DeleteTableDataRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PromoteReplicaRequest; /** - * Creates a plain object from a DeleteTableDataRequest message. Also converts values to other types if specified. - * @param message DeleteTableDataRequest + * Creates a plain object from a PromoteReplicaRequest message. Also converts values to other types if specified. + * @param message PromoteReplicaRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.DeleteTableDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.PromoteReplicaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTableDataRequest to JSON. + * Converts this PromoteReplicaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTableDataRequest + * Gets the default type url for PromoteReplicaRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTableDataResponse. */ - interface IDeleteTableDataResponse { + /** Properties of a PromoteReplicaResponse. */ + interface IPromoteReplicaResponse { + + /** PromoteReplicaResponse position */ + position?: (string|null); } - /** Represents a DeleteTableDataResponse. */ - class DeleteTableDataResponse implements IDeleteTableDataResponse { + /** Represents a PromoteReplicaResponse. */ + class PromoteReplicaResponse implements IPromoteReplicaResponse { /** - * Constructs a new DeleteTableDataResponse. + * Constructs a new PromoteReplicaResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IDeleteTableDataResponse); + constructor(properties?: tabletmanagerdata.IPromoteReplicaResponse); + + /** PromoteReplicaResponse position. */ + public position: string; /** - * Creates a new DeleteTableDataResponse instance using the specified properties. + * Creates a new PromoteReplicaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTableDataResponse instance + * @returns PromoteReplicaResponse instance */ - public static create(properties?: tabletmanagerdata.IDeleteTableDataResponse): tabletmanagerdata.DeleteTableDataResponse; + public static create(properties?: tabletmanagerdata.IPromoteReplicaResponse): tabletmanagerdata.PromoteReplicaResponse; /** - * Encodes the specified DeleteTableDataResponse message. Does not implicitly {@link tabletmanagerdata.DeleteTableDataResponse.verify|verify} messages. - * @param message DeleteTableDataResponse message or plain object to encode + * Encodes the specified PromoteReplicaResponse message. Does not implicitly {@link tabletmanagerdata.PromoteReplicaResponse.verify|verify} messages. + * @param message PromoteReplicaResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IDeleteTableDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPromoteReplicaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTableDataResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteTableDataResponse.verify|verify} messages. - * @param message DeleteTableDataResponse message or plain object to encode + * Encodes the specified PromoteReplicaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PromoteReplicaResponse.verify|verify} messages. + * @param message PromoteReplicaResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IDeleteTableDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPromoteReplicaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTableDataResponse message from the specified reader or buffer. + * Decodes a PromoteReplicaResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTableDataResponse + * @returns PromoteReplicaResponse * @throws {Error} If the payload is 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.DeleteTableDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PromoteReplicaResponse; /** - * Decodes a DeleteTableDataResponse message from the specified reader or buffer, length delimited. + * Decodes a PromoteReplicaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTableDataResponse + * @returns PromoteReplicaResponse * @throws {Error} If the 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.DeleteTableDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PromoteReplicaResponse; /** - * Verifies a DeleteTableDataResponse message. + * Verifies a PromoteReplicaResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteTableDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PromoteReplicaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTableDataResponse + * @returns PromoteReplicaResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DeleteTableDataResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PromoteReplicaResponse; /** - * Creates a plain object from a DeleteTableDataResponse message. Also converts values to other types if specified. - * @param message DeleteTableDataResponse + * Creates a plain object from a PromoteReplicaResponse message. Also converts values to other types if specified. + * @param message PromoteReplicaResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.DeleteTableDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.PromoteReplicaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTableDataResponse to JSON. + * Converts this PromoteReplicaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTableDataResponse + * Gets the default type url for PromoteReplicaResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteVReplicationWorkflowRequest. */ - interface IDeleteVReplicationWorkflowRequest { + /** Properties of a BackupRequest. */ + interface IBackupRequest { - /** DeleteVReplicationWorkflowRequest workflow */ - workflow?: (string|null); + /** BackupRequest concurrency */ + concurrency?: (number|null); + + /** BackupRequest allow_primary */ + allow_primary?: (boolean|null); + + /** BackupRequest incremental_from_pos */ + incremental_from_pos?: (string|null); + + /** BackupRequest upgrade_safe */ + upgrade_safe?: (boolean|null); + + /** BackupRequest backup_engine */ + backup_engine?: (string|null); + + /** BackupRequest mysql_shutdown_timeout */ + mysql_shutdown_timeout?: (vttime.IDuration|null); } - /** Represents a DeleteVReplicationWorkflowRequest. */ - class DeleteVReplicationWorkflowRequest implements IDeleteVReplicationWorkflowRequest { + /** Represents a BackupRequest. */ + class BackupRequest implements IBackupRequest { /** - * Constructs a new DeleteVReplicationWorkflowRequest. + * Constructs a new BackupRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IDeleteVReplicationWorkflowRequest); + constructor(properties?: tabletmanagerdata.IBackupRequest); - /** DeleteVReplicationWorkflowRequest workflow. */ - public workflow: string; + /** BackupRequest concurrency. */ + public concurrency: number; + + /** BackupRequest allow_primary. */ + public allow_primary: boolean; + + /** 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 mysql_shutdown_timeout. */ + public mysql_shutdown_timeout?: (vttime.IDuration|null); /** - * Creates a new DeleteVReplicationWorkflowRequest instance using the specified properties. + * Creates a new BackupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteVReplicationWorkflowRequest instance + * @returns BackupRequest instance */ - public static create(properties?: tabletmanagerdata.IDeleteVReplicationWorkflowRequest): tabletmanagerdata.DeleteVReplicationWorkflowRequest; + public static create(properties?: tabletmanagerdata.IBackupRequest): tabletmanagerdata.BackupRequest; /** - * Encodes the specified DeleteVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowRequest.verify|verify} messages. - * @param message DeleteVReplicationWorkflowRequest message or plain object to encode + * Encodes the specified BackupRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IDeleteVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowRequest.verify|verify} messages. - * @param message DeleteVReplicationWorkflowRequest message or plain object to encode + * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IDeleteVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteVReplicationWorkflowRequest message from the specified reader or buffer. + * 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 DeleteVReplicationWorkflowRequest + * @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): tabletmanagerdata.DeleteVReplicationWorkflowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.BackupRequest; /** - * Decodes a DeleteVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. + * Decodes a BackupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteVReplicationWorkflowRequest + * @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)): tabletmanagerdata.DeleteVReplicationWorkflowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.BackupRequest; /** - * Verifies a DeleteVReplicationWorkflowRequest message. + * 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 DeleteVReplicationWorkflowRequest 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. * @param object Plain object - * @returns DeleteVReplicationWorkflowRequest + * @returns BackupRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DeleteVReplicationWorkflowRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.BackupRequest; /** - * Creates a plain object from a DeleteVReplicationWorkflowRequest message. Also converts values to other types if specified. - * @param message DeleteVReplicationWorkflowRequest + * 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: tabletmanagerdata.DeleteVReplicationWorkflowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.BackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteVReplicationWorkflowRequest to JSON. + * Converts this BackupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteVReplicationWorkflowRequest + * 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 DeleteVReplicationWorkflowResponse. */ - interface IDeleteVReplicationWorkflowResponse { + /** Properties of a BackupResponse. */ + interface IBackupResponse { - /** DeleteVReplicationWorkflowResponse result */ - result?: (query.IQueryResult|null); + /** BackupResponse event */ + event?: (logutil.IEvent|null); } - /** Represents a DeleteVReplicationWorkflowResponse. */ - class DeleteVReplicationWorkflowResponse implements IDeleteVReplicationWorkflowResponse { + /** Represents a BackupResponse. */ + class BackupResponse implements IBackupResponse { /** - * Constructs a new DeleteVReplicationWorkflowResponse. + * Constructs a new BackupResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IDeleteVReplicationWorkflowResponse); + constructor(properties?: tabletmanagerdata.IBackupResponse); - /** DeleteVReplicationWorkflowResponse result. */ - public result?: (query.IQueryResult|null); + /** BackupResponse event. */ + public event?: (logutil.IEvent|null); /** - * Creates a new DeleteVReplicationWorkflowResponse instance using the specified properties. + * Creates a new BackupResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteVReplicationWorkflowResponse instance + * @returns BackupResponse instance */ - public static create(properties?: tabletmanagerdata.IDeleteVReplicationWorkflowResponse): tabletmanagerdata.DeleteVReplicationWorkflowResponse; + public static create(properties?: tabletmanagerdata.IBackupResponse): tabletmanagerdata.BackupResponse; /** - * Encodes the specified DeleteVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowResponse.verify|verify} messages. - * @param message DeleteVReplicationWorkflowResponse message or plain object to encode + * Encodes the specified BackupResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IDeleteVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowResponse.verify|verify} messages. - * @param message DeleteVReplicationWorkflowResponse message or plain object to encode + * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IDeleteVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteVReplicationWorkflowResponse message from the specified reader or buffer. + * 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 DeleteVReplicationWorkflowResponse + * @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): tabletmanagerdata.DeleteVReplicationWorkflowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.BackupResponse; /** - * Decodes a DeleteVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. + * Decodes a BackupResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteVReplicationWorkflowResponse + * @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)): tabletmanagerdata.DeleteVReplicationWorkflowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.BackupResponse; /** - * Verifies a DeleteVReplicationWorkflowResponse message. + * 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 DeleteVReplicationWorkflowResponse 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. * @param object Plain object - * @returns DeleteVReplicationWorkflowResponse + * @returns BackupResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DeleteVReplicationWorkflowResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.BackupResponse; /** - * Creates a plain object from a DeleteVReplicationWorkflowResponse message. Also converts values to other types if specified. - * @param message DeleteVReplicationWorkflowResponse + * 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: tabletmanagerdata.DeleteVReplicationWorkflowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.BackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteVReplicationWorkflowResponse to JSON. + * Converts this BackupResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteVReplicationWorkflowResponse + * 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 HasVReplicationWorkflowsRequest. */ - interface IHasVReplicationWorkflowsRequest { + /** Properties of a RestoreFromBackupRequest. */ + interface IRestoreFromBackupRequest { + + /** 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 HasVReplicationWorkflowsRequest. */ - class HasVReplicationWorkflowsRequest implements IHasVReplicationWorkflowsRequest { + /** Represents a RestoreFromBackupRequest. */ + class RestoreFromBackupRequest implements IRestoreFromBackupRequest { /** - * Constructs a new HasVReplicationWorkflowsRequest. + * Constructs a new RestoreFromBackupRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IHasVReplicationWorkflowsRequest); + constructor(properties?: tabletmanagerdata.IRestoreFromBackupRequest); + + /** 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 HasVReplicationWorkflowsRequest instance using the specified properties. + * Creates a new RestoreFromBackupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns HasVReplicationWorkflowsRequest instance + * @returns RestoreFromBackupRequest instance */ - public static create(properties?: tabletmanagerdata.IHasVReplicationWorkflowsRequest): tabletmanagerdata.HasVReplicationWorkflowsRequest; + public static create(properties?: tabletmanagerdata.IRestoreFromBackupRequest): tabletmanagerdata.RestoreFromBackupRequest; /** - * Encodes the specified HasVReplicationWorkflowsRequest message. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsRequest.verify|verify} messages. - * @param message HasVReplicationWorkflowsRequest message or plain object to encode + * Encodes the specified RestoreFromBackupRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IHasVReplicationWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HasVReplicationWorkflowsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsRequest.verify|verify} messages. - * @param message HasVReplicationWorkflowsRequest message or plain object to encode + * Encodes the specified RestoreFromBackupRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IHasVReplicationWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HasVReplicationWorkflowsRequest message from the specified reader or buffer. + * 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 HasVReplicationWorkflowsRequest + * @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): tabletmanagerdata.HasVReplicationWorkflowsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.RestoreFromBackupRequest; /** - * Decodes a HasVReplicationWorkflowsRequest message from the specified reader or buffer, length delimited. + * Decodes a RestoreFromBackupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HasVReplicationWorkflowsRequest + * @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)): tabletmanagerdata.HasVReplicationWorkflowsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.RestoreFromBackupRequest; /** - * Verifies a HasVReplicationWorkflowsRequest message. + * 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 HasVReplicationWorkflowsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RestoreFromBackupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HasVReplicationWorkflowsRequest + * @returns RestoreFromBackupRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.HasVReplicationWorkflowsRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RestoreFromBackupRequest; /** - * Creates a plain object from a HasVReplicationWorkflowsRequest message. Also converts values to other types if specified. - * @param message HasVReplicationWorkflowsRequest + * 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: tabletmanagerdata.HasVReplicationWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.RestoreFromBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HasVReplicationWorkflowsRequest to JSON. + * Converts this RestoreFromBackupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for HasVReplicationWorkflowsRequest + * 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 HasVReplicationWorkflowsResponse. */ - interface IHasVReplicationWorkflowsResponse { + /** Properties of a RestoreFromBackupResponse. */ + interface IRestoreFromBackupResponse { - /** HasVReplicationWorkflowsResponse has */ - has?: (boolean|null); + /** RestoreFromBackupResponse event */ + event?: (logutil.IEvent|null); } - /** Represents a HasVReplicationWorkflowsResponse. */ - class HasVReplicationWorkflowsResponse implements IHasVReplicationWorkflowsResponse { + /** Represents a RestoreFromBackupResponse. */ + class RestoreFromBackupResponse implements IRestoreFromBackupResponse { /** - * Constructs a new HasVReplicationWorkflowsResponse. + * Constructs a new RestoreFromBackupResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IHasVReplicationWorkflowsResponse); + constructor(properties?: tabletmanagerdata.IRestoreFromBackupResponse); - /** HasVReplicationWorkflowsResponse has. */ - public has: boolean; + /** RestoreFromBackupResponse event. */ + public event?: (logutil.IEvent|null); /** - * Creates a new HasVReplicationWorkflowsResponse instance using the specified properties. + * Creates a new RestoreFromBackupResponse instance using the specified properties. * @param [properties] Properties to set - * @returns HasVReplicationWorkflowsResponse instance + * @returns RestoreFromBackupResponse instance */ - public static create(properties?: tabletmanagerdata.IHasVReplicationWorkflowsResponse): tabletmanagerdata.HasVReplicationWorkflowsResponse; + public static create(properties?: tabletmanagerdata.IRestoreFromBackupResponse): tabletmanagerdata.RestoreFromBackupResponse; /** - * Encodes the specified HasVReplicationWorkflowsResponse message. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsResponse.verify|verify} messages. - * @param message HasVReplicationWorkflowsResponse message or plain object to encode + * Encodes the specified RestoreFromBackupResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IHasVReplicationWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HasVReplicationWorkflowsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsResponse.verify|verify} messages. - * @param message HasVReplicationWorkflowsResponse message or plain object to encode + * Encodes the specified RestoreFromBackupResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IHasVReplicationWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HasVReplicationWorkflowsResponse message from the specified reader or buffer. + * 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 HasVReplicationWorkflowsResponse + * @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): tabletmanagerdata.HasVReplicationWorkflowsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.RestoreFromBackupResponse; /** - * Decodes a HasVReplicationWorkflowsResponse message from the specified reader or buffer, length delimited. + * Decodes a RestoreFromBackupResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HasVReplicationWorkflowsResponse + * @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)): tabletmanagerdata.HasVReplicationWorkflowsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.RestoreFromBackupResponse; /** - * Verifies a HasVReplicationWorkflowsResponse message. + * 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 HasVReplicationWorkflowsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RestoreFromBackupResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HasVReplicationWorkflowsResponse + * @returns RestoreFromBackupResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.HasVReplicationWorkflowsResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RestoreFromBackupResponse; /** - * Creates a plain object from a HasVReplicationWorkflowsResponse message. Also converts values to other types if specified. - * @param message HasVReplicationWorkflowsResponse + * 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: tabletmanagerdata.HasVReplicationWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.RestoreFromBackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HasVReplicationWorkflowsResponse to JSON. + * Converts this RestoreFromBackupResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for HasVReplicationWorkflowsResponse + * 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 ReadVReplicationWorkflowsRequest. */ - interface IReadVReplicationWorkflowsRequest { + /** Properties of a CreateVReplicationWorkflowRequest. */ + interface ICreateVReplicationWorkflowRequest { - /** ReadVReplicationWorkflowsRequest include_ids */ - include_ids?: (number[]|null); + /** CreateVReplicationWorkflowRequest workflow */ + workflow?: (string|null); - /** ReadVReplicationWorkflowsRequest include_workflows */ - include_workflows?: (string[]|null); + /** CreateVReplicationWorkflowRequest binlog_source */ + binlog_source?: (binlogdata.IBinlogSource[]|null); - /** ReadVReplicationWorkflowsRequest include_states */ - include_states?: (binlogdata.VReplicationWorkflowState[]|null); + /** CreateVReplicationWorkflowRequest cells */ + cells?: (string[]|null); - /** ReadVReplicationWorkflowsRequest exclude_workflows */ - exclude_workflows?: (string[]|null); + /** CreateVReplicationWorkflowRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); - /** ReadVReplicationWorkflowsRequest exclude_states */ - exclude_states?: (binlogdata.VReplicationWorkflowState[]|null); + /** CreateVReplicationWorkflowRequest tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - /** ReadVReplicationWorkflowsRequest exclude_frozen */ - exclude_frozen?: (boolean|null); + /** CreateVReplicationWorkflowRequest workflow_type */ + workflow_type?: (binlogdata.VReplicationWorkflowType|null); + + /** CreateVReplicationWorkflowRequest workflow_sub_type */ + workflow_sub_type?: (binlogdata.VReplicationWorkflowSubType|null); + + /** CreateVReplicationWorkflowRequest defer_secondary_keys */ + defer_secondary_keys?: (boolean|null); + + /** CreateVReplicationWorkflowRequest auto_start */ + auto_start?: (boolean|null); + + /** CreateVReplicationWorkflowRequest stop_after_copy */ + stop_after_copy?: (boolean|null); + + /** CreateVReplicationWorkflowRequest options */ + options?: (string|null); } - /** Represents a ReadVReplicationWorkflowsRequest. */ - class ReadVReplicationWorkflowsRequest implements IReadVReplicationWorkflowsRequest { + /** Represents a CreateVReplicationWorkflowRequest. */ + class CreateVReplicationWorkflowRequest implements ICreateVReplicationWorkflowRequest { /** - * Constructs a new ReadVReplicationWorkflowsRequest. + * Constructs a new CreateVReplicationWorkflowRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReadVReplicationWorkflowsRequest); + constructor(properties?: tabletmanagerdata.ICreateVReplicationWorkflowRequest); - /** ReadVReplicationWorkflowsRequest include_ids. */ - public include_ids: number[]; + /** CreateVReplicationWorkflowRequest workflow. */ + public workflow: string; - /** ReadVReplicationWorkflowsRequest include_workflows. */ - public include_workflows: string[]; + /** CreateVReplicationWorkflowRequest binlog_source. */ + public binlog_source: binlogdata.IBinlogSource[]; - /** ReadVReplicationWorkflowsRequest include_states. */ - public include_states: binlogdata.VReplicationWorkflowState[]; + /** CreateVReplicationWorkflowRequest cells. */ + public cells: string[]; - /** ReadVReplicationWorkflowsRequest exclude_workflows. */ - public exclude_workflows: string[]; + /** CreateVReplicationWorkflowRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; - /** ReadVReplicationWorkflowsRequest exclude_states. */ - public exclude_states: binlogdata.VReplicationWorkflowState[]; + /** CreateVReplicationWorkflowRequest tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - /** ReadVReplicationWorkflowsRequest exclude_frozen. */ - public exclude_frozen: boolean; + /** CreateVReplicationWorkflowRequest workflow_type. */ + public workflow_type: binlogdata.VReplicationWorkflowType; - /** - * Creates a new ReadVReplicationWorkflowsRequest instance using the specified properties. + /** CreateVReplicationWorkflowRequest workflow_sub_type. */ + public workflow_sub_type: binlogdata.VReplicationWorkflowSubType; + + /** CreateVReplicationWorkflowRequest defer_secondary_keys. */ + public defer_secondary_keys: boolean; + + /** CreateVReplicationWorkflowRequest auto_start. */ + public auto_start: boolean; + + /** CreateVReplicationWorkflowRequest stop_after_copy. */ + public stop_after_copy: boolean; + + /** CreateVReplicationWorkflowRequest options. */ + public options: string; + + /** + * Creates a new CreateVReplicationWorkflowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadVReplicationWorkflowsRequest instance + * @returns CreateVReplicationWorkflowRequest instance */ - public static create(properties?: tabletmanagerdata.IReadVReplicationWorkflowsRequest): tabletmanagerdata.ReadVReplicationWorkflowsRequest; + public static create(properties?: tabletmanagerdata.ICreateVReplicationWorkflowRequest): tabletmanagerdata.CreateVReplicationWorkflowRequest; /** - * Encodes the specified ReadVReplicationWorkflowsRequest message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsRequest.verify|verify} messages. - * @param message ReadVReplicationWorkflowsRequest message or plain object to encode + * Encodes the specified CreateVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowRequest.verify|verify} messages. + * @param message CreateVReplicationWorkflowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IReadVReplicationWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ICreateVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadVReplicationWorkflowsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsRequest.verify|verify} messages. - * @param message ReadVReplicationWorkflowsRequest message or plain object to encode + * Encodes the specified CreateVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowRequest.verify|verify} messages. + * @param message CreateVReplicationWorkflowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IReadVReplicationWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ICreateVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadVReplicationWorkflowsRequest message from the specified reader or buffer. + * Decodes a CreateVReplicationWorkflowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadVReplicationWorkflowsRequest + * @returns CreateVReplicationWorkflowRequest * @throws {Error} If the payload is 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.ReadVReplicationWorkflowsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.CreateVReplicationWorkflowRequest; /** - * Decodes a ReadVReplicationWorkflowsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadVReplicationWorkflowsRequest + * @returns CreateVReplicationWorkflowRequest * @throws {Error} If the 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.ReadVReplicationWorkflowsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.CreateVReplicationWorkflowRequest; /** - * Verifies a ReadVReplicationWorkflowsRequest message. + * Verifies a CreateVReplicationWorkflowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadVReplicationWorkflowsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadVReplicationWorkflowsRequest + * @returns CreateVReplicationWorkflowRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadVReplicationWorkflowsRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.CreateVReplicationWorkflowRequest; /** - * Creates a plain object from a ReadVReplicationWorkflowsRequest message. Also converts values to other types if specified. - * @param message ReadVReplicationWorkflowsRequest + * Creates a plain object from a CreateVReplicationWorkflowRequest message. Also converts values to other types if specified. + * @param message CreateVReplicationWorkflowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ReadVReplicationWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.CreateVReplicationWorkflowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadVReplicationWorkflowsRequest to JSON. + * Converts this CreateVReplicationWorkflowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadVReplicationWorkflowsRequest + * Gets the default type url for CreateVReplicationWorkflowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadVReplicationWorkflowsResponse. */ - interface IReadVReplicationWorkflowsResponse { + /** Properties of a CreateVReplicationWorkflowResponse. */ + interface ICreateVReplicationWorkflowResponse { - /** ReadVReplicationWorkflowsResponse workflows */ - workflows?: (tabletmanagerdata.IReadVReplicationWorkflowResponse[]|null); + /** CreateVReplicationWorkflowResponse result */ + result?: (query.IQueryResult|null); } - /** Represents a ReadVReplicationWorkflowsResponse. */ - class ReadVReplicationWorkflowsResponse implements IReadVReplicationWorkflowsResponse { + /** Represents a CreateVReplicationWorkflowResponse. */ + class CreateVReplicationWorkflowResponse implements ICreateVReplicationWorkflowResponse { /** - * Constructs a new ReadVReplicationWorkflowsResponse. + * Constructs a new CreateVReplicationWorkflowResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReadVReplicationWorkflowsResponse); + constructor(properties?: tabletmanagerdata.ICreateVReplicationWorkflowResponse); - /** ReadVReplicationWorkflowsResponse workflows. */ - public workflows: tabletmanagerdata.IReadVReplicationWorkflowResponse[]; + /** CreateVReplicationWorkflowResponse result. */ + public result?: (query.IQueryResult|null); /** - * Creates a new ReadVReplicationWorkflowsResponse instance using the specified properties. + * Creates a new CreateVReplicationWorkflowResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReadVReplicationWorkflowsResponse instance + * @returns CreateVReplicationWorkflowResponse instance */ - public static create(properties?: tabletmanagerdata.IReadVReplicationWorkflowsResponse): tabletmanagerdata.ReadVReplicationWorkflowsResponse; + public static create(properties?: tabletmanagerdata.ICreateVReplicationWorkflowResponse): tabletmanagerdata.CreateVReplicationWorkflowResponse; /** - * Encodes the specified ReadVReplicationWorkflowsResponse message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsResponse.verify|verify} messages. - * @param message ReadVReplicationWorkflowsResponse message or plain object to encode + * Encodes the specified CreateVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowResponse.verify|verify} messages. + * @param message CreateVReplicationWorkflowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IReadVReplicationWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ICreateVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadVReplicationWorkflowsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsResponse.verify|verify} messages. - * @param message ReadVReplicationWorkflowsResponse message or plain object to encode + * Encodes the specified CreateVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowResponse.verify|verify} messages. + * @param message CreateVReplicationWorkflowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IReadVReplicationWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ICreateVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadVReplicationWorkflowsResponse message from the specified reader or buffer. + * Decodes a CreateVReplicationWorkflowResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadVReplicationWorkflowsResponse + * @returns CreateVReplicationWorkflowResponse * @throws {Error} If the payload is 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.ReadVReplicationWorkflowsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.CreateVReplicationWorkflowResponse; /** - * Decodes a ReadVReplicationWorkflowsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadVReplicationWorkflowsResponse + * @returns CreateVReplicationWorkflowResponse * @throws {Error} If the 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.ReadVReplicationWorkflowsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.CreateVReplicationWorkflowResponse; /** - * Verifies a ReadVReplicationWorkflowsResponse message. + * Verifies a CreateVReplicationWorkflowResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadVReplicationWorkflowsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadVReplicationWorkflowsResponse + * @returns CreateVReplicationWorkflowResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadVReplicationWorkflowsResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.CreateVReplicationWorkflowResponse; /** - * Creates a plain object from a ReadVReplicationWorkflowsResponse message. Also converts values to other types if specified. - * @param message ReadVReplicationWorkflowsResponse + * Creates a plain object from a CreateVReplicationWorkflowResponse message. Also converts values to other types if specified. + * @param message CreateVReplicationWorkflowResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ReadVReplicationWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.CreateVReplicationWorkflowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadVReplicationWorkflowsResponse to JSON. + * Converts this CreateVReplicationWorkflowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadVReplicationWorkflowsResponse + * Gets the default type url for CreateVReplicationWorkflowResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadVReplicationWorkflowRequest. */ - interface IReadVReplicationWorkflowRequest { + /** Properties of a DeleteTableDataRequest. */ + interface IDeleteTableDataRequest { - /** ReadVReplicationWorkflowRequest workflow */ - workflow?: (string|null); + /** DeleteTableDataRequest table_filters */ + table_filters?: ({ [k: string]: string }|null); + + /** DeleteTableDataRequest batch_size */ + batch_size?: (number|Long|null); } - /** Represents a ReadVReplicationWorkflowRequest. */ - class ReadVReplicationWorkflowRequest implements IReadVReplicationWorkflowRequest { + /** Represents a DeleteTableDataRequest. */ + class DeleteTableDataRequest implements IDeleteTableDataRequest { /** - * Constructs a new ReadVReplicationWorkflowRequest. + * Constructs a new DeleteTableDataRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReadVReplicationWorkflowRequest); + constructor(properties?: tabletmanagerdata.IDeleteTableDataRequest); - /** ReadVReplicationWorkflowRequest workflow. */ - public workflow: string; + /** DeleteTableDataRequest table_filters. */ + public table_filters: { [k: string]: string }; + + /** DeleteTableDataRequest batch_size. */ + public batch_size: (number|Long); /** - * Creates a new ReadVReplicationWorkflowRequest instance using the specified properties. + * Creates a new DeleteTableDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadVReplicationWorkflowRequest instance + * @returns DeleteTableDataRequest instance */ - public static create(properties?: tabletmanagerdata.IReadVReplicationWorkflowRequest): tabletmanagerdata.ReadVReplicationWorkflowRequest; + public static create(properties?: tabletmanagerdata.IDeleteTableDataRequest): tabletmanagerdata.DeleteTableDataRequest; /** - * Encodes the specified ReadVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowRequest.verify|verify} messages. - * @param message ReadVReplicationWorkflowRequest message or plain object to encode + * Encodes the specified DeleteTableDataRequest message. Does not implicitly {@link tabletmanagerdata.DeleteTableDataRequest.verify|verify} messages. + * @param message DeleteTableDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IReadVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IDeleteTableDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowRequest.verify|verify} messages. - * @param message ReadVReplicationWorkflowRequest message or plain object to encode + * Encodes the specified DeleteTableDataRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteTableDataRequest.verify|verify} messages. + * @param message DeleteTableDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IReadVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IDeleteTableDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadVReplicationWorkflowRequest message from the specified reader or buffer. + * Decodes a DeleteTableDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadVReplicationWorkflowRequest + * @returns DeleteTableDataRequest * @throws {Error} If the payload is 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.ReadVReplicationWorkflowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.DeleteTableDataRequest; /** - * Decodes a ReadVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTableDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadVReplicationWorkflowRequest + * @returns DeleteTableDataRequest * @throws {Error} If the 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.ReadVReplicationWorkflowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.DeleteTableDataRequest; /** - * Verifies a ReadVReplicationWorkflowRequest message. + * Verifies a DeleteTableDataRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTableDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadVReplicationWorkflowRequest + * @returns DeleteTableDataRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadVReplicationWorkflowRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DeleteTableDataRequest; /** - * Creates a plain object from a ReadVReplicationWorkflowRequest message. Also converts values to other types if specified. - * @param message ReadVReplicationWorkflowRequest + * Creates a plain object from a DeleteTableDataRequest message. Also converts values to other types if specified. + * @param message DeleteTableDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ReadVReplicationWorkflowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.DeleteTableDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadVReplicationWorkflowRequest to JSON. + * Converts this DeleteTableDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadVReplicationWorkflowRequest + * Gets the default type url for DeleteTableDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadVReplicationWorkflowResponse. */ - interface IReadVReplicationWorkflowResponse { + /** Properties of a DeleteTableDataResponse. */ + interface IDeleteTableDataResponse { + } - /** ReadVReplicationWorkflowResponse workflow */ - workflow?: (string|null); + /** Represents a DeleteTableDataResponse. */ + class DeleteTableDataResponse implements IDeleteTableDataResponse { - /** ReadVReplicationWorkflowResponse cells */ - cells?: (string|null); + /** + * Constructs a new DeleteTableDataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.IDeleteTableDataResponse); - /** ReadVReplicationWorkflowResponse tablet_types */ - tablet_types?: (topodata.TabletType[]|null); + /** + * Creates a new DeleteTableDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTableDataResponse instance + */ + public static create(properties?: tabletmanagerdata.IDeleteTableDataResponse): tabletmanagerdata.DeleteTableDataResponse; - /** ReadVReplicationWorkflowResponse tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + /** + * Encodes the specified DeleteTableDataResponse message. Does not implicitly {@link tabletmanagerdata.DeleteTableDataResponse.verify|verify} messages. + * @param message DeleteTableDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tabletmanagerdata.IDeleteTableDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** ReadVReplicationWorkflowResponse db_name */ - db_name?: (string|null); + /** + * Encodes the specified DeleteTableDataResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteTableDataResponse.verify|verify} messages. + * @param message DeleteTableDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.IDeleteTableDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** ReadVReplicationWorkflowResponse tags */ - tags?: (string|null); + /** + * Decodes a DeleteTableDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTableDataResponse + * @throws {Error} If the payload is 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.DeleteTableDataResponse; - /** ReadVReplicationWorkflowResponse workflow_type */ - workflow_type?: (binlogdata.VReplicationWorkflowType|null); + /** + * Decodes a DeleteTableDataResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTableDataResponse + * @throws {Error} If the 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.DeleteTableDataResponse; - /** ReadVReplicationWorkflowResponse workflow_sub_type */ - workflow_sub_type?: (binlogdata.VReplicationWorkflowSubType|null); + /** + * Verifies a DeleteTableDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ReadVReplicationWorkflowResponse defer_secondary_keys */ - defer_secondary_keys?: (boolean|null); + /** + * Creates a DeleteTableDataResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTableDataResponse + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DeleteTableDataResponse; - /** ReadVReplicationWorkflowResponse streams */ - streams?: (tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream[]|null); + /** + * Creates a plain object from a DeleteTableDataResponse message. Also converts values to other types if specified. + * @param message DeleteTableDataResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.DeleteTableDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ReadVReplicationWorkflowResponse options */ - options?: (string|null); + /** + * Converts this DeleteTableDataResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ReadVReplicationWorkflowResponse config_overrides */ - config_overrides?: ({ [k: string]: string }|null); + /** + * Gets the default type url for DeleteTableDataResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a ReadVReplicationWorkflowResponse. */ - class ReadVReplicationWorkflowResponse implements IReadVReplicationWorkflowResponse { + /** Properties of a DeleteVReplicationWorkflowRequest. */ + interface IDeleteVReplicationWorkflowRequest { + + /** DeleteVReplicationWorkflowRequest workflow */ + workflow?: (string|null); + } + + /** Represents a DeleteVReplicationWorkflowRequest. */ + class DeleteVReplicationWorkflowRequest implements IDeleteVReplicationWorkflowRequest { /** - * Constructs a new ReadVReplicationWorkflowResponse. + * Constructs a new DeleteVReplicationWorkflowRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IReadVReplicationWorkflowResponse); + constructor(properties?: tabletmanagerdata.IDeleteVReplicationWorkflowRequest); - /** ReadVReplicationWorkflowResponse workflow. */ + /** DeleteVReplicationWorkflowRequest workflow. */ public workflow: string; - /** ReadVReplicationWorkflowResponse cells. */ - public cells: string; + /** + * Creates a new DeleteVReplicationWorkflowRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteVReplicationWorkflowRequest instance + */ + public static create(properties?: tabletmanagerdata.IDeleteVReplicationWorkflowRequest): tabletmanagerdata.DeleteVReplicationWorkflowRequest; - /** ReadVReplicationWorkflowResponse tablet_types. */ - public tablet_types: topodata.TabletType[]; + /** + * Encodes the specified DeleteVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowRequest.verify|verify} messages. + * @param message DeleteVReplicationWorkflowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tabletmanagerdata.IDeleteVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ReadVReplicationWorkflowResponse tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + /** + * Encodes the specified DeleteVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowRequest.verify|verify} messages. + * @param message DeleteVReplicationWorkflowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.IDeleteVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ReadVReplicationWorkflowResponse db_name. */ - public db_name: string; + /** + * Decodes a DeleteVReplicationWorkflowRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteVReplicationWorkflowRequest + * @throws {Error} If the payload is 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.DeleteVReplicationWorkflowRequest; - /** ReadVReplicationWorkflowResponse tags. */ - public tags: string; + /** + * Decodes a DeleteVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteVReplicationWorkflowRequest + * @throws {Error} If the 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.DeleteVReplicationWorkflowRequest; - /** ReadVReplicationWorkflowResponse workflow_type. */ - public workflow_type: binlogdata.VReplicationWorkflowType; + /** + * Verifies a DeleteVReplicationWorkflowRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ReadVReplicationWorkflowResponse workflow_sub_type. */ - public workflow_sub_type: binlogdata.VReplicationWorkflowSubType; + /** + * Creates a DeleteVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteVReplicationWorkflowRequest + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DeleteVReplicationWorkflowRequest; - /** ReadVReplicationWorkflowResponse defer_secondary_keys. */ - public defer_secondary_keys: boolean; + /** + * Creates a plain object from a DeleteVReplicationWorkflowRequest message. Also converts values to other types if specified. + * @param message DeleteVReplicationWorkflowRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.DeleteVReplicationWorkflowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ReadVReplicationWorkflowResponse streams. */ - public streams: tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream[]; + /** + * Converts this DeleteVReplicationWorkflowRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ReadVReplicationWorkflowResponse options. */ - public options: string; + /** + * Gets the default type url for DeleteVReplicationWorkflowRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ReadVReplicationWorkflowResponse config_overrides. */ - public config_overrides: { [k: string]: string }; + /** Properties of a DeleteVReplicationWorkflowResponse. */ + interface IDeleteVReplicationWorkflowResponse { + + /** DeleteVReplicationWorkflowResponse result */ + result?: (query.IQueryResult|null); + } + + /** Represents a DeleteVReplicationWorkflowResponse. */ + class DeleteVReplicationWorkflowResponse implements IDeleteVReplicationWorkflowResponse { /** - * Creates a new ReadVReplicationWorkflowResponse instance using the specified properties. + * Constructs a new DeleteVReplicationWorkflowResponse. * @param [properties] Properties to set - * @returns ReadVReplicationWorkflowResponse instance */ - public static create(properties?: tabletmanagerdata.IReadVReplicationWorkflowResponse): tabletmanagerdata.ReadVReplicationWorkflowResponse; + constructor(properties?: tabletmanagerdata.IDeleteVReplicationWorkflowResponse); + + /** DeleteVReplicationWorkflowResponse result. */ + public result?: (query.IQueryResult|null); /** - * Encodes the specified ReadVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.verify|verify} messages. - * @param message ReadVReplicationWorkflowResponse message or plain object to encode + * Creates a new DeleteVReplicationWorkflowResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteVReplicationWorkflowResponse instance + */ + public static create(properties?: tabletmanagerdata.IDeleteVReplicationWorkflowResponse): tabletmanagerdata.DeleteVReplicationWorkflowResponse; + + /** + * Encodes the specified DeleteVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowResponse.verify|verify} messages. + * @param message DeleteVReplicationWorkflowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IReadVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IDeleteVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.verify|verify} messages. - * @param message ReadVReplicationWorkflowResponse message or plain object to encode + * Encodes the specified DeleteVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowResponse.verify|verify} messages. + * @param message DeleteVReplicationWorkflowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IReadVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IDeleteVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadVReplicationWorkflowResponse message from the specified reader or buffer. + * Decodes a DeleteVReplicationWorkflowResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadVReplicationWorkflowResponse + * @returns DeleteVReplicationWorkflowResponse * @throws {Error} If the payload is 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.ReadVReplicationWorkflowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.DeleteVReplicationWorkflowResponse; /** - * Decodes a ReadVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadVReplicationWorkflowResponse + * @returns DeleteVReplicationWorkflowResponse * @throws {Error} If the 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.ReadVReplicationWorkflowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.DeleteVReplicationWorkflowResponse; /** - * Verifies a ReadVReplicationWorkflowResponse message. + * Verifies a DeleteVReplicationWorkflowResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadVReplicationWorkflowResponse + * @returns DeleteVReplicationWorkflowResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadVReplicationWorkflowResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DeleteVReplicationWorkflowResponse; /** - * Creates a plain object from a ReadVReplicationWorkflowResponse message. Also converts values to other types if specified. - * @param message ReadVReplicationWorkflowResponse + * Creates a plain object from a DeleteVReplicationWorkflowResponse message. Also converts values to other types if specified. + * @param message DeleteVReplicationWorkflowResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ReadVReplicationWorkflowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.DeleteVReplicationWorkflowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadVReplicationWorkflowResponse to JSON. + * Converts this DeleteVReplicationWorkflowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadVReplicationWorkflowResponse + * Gets the default type url for DeleteVReplicationWorkflowResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ReadVReplicationWorkflowResponse { - - /** Properties of a Stream. */ - interface IStream { - - /** Stream id */ - id?: (number|null); + /** Properties of a HasVReplicationWorkflowsRequest. */ + interface IHasVReplicationWorkflowsRequest { + } - /** Stream bls */ - bls?: (binlogdata.IBinlogSource|null); + /** Represents a HasVReplicationWorkflowsRequest. */ + class HasVReplicationWorkflowsRequest implements IHasVReplicationWorkflowsRequest { - /** Stream pos */ - pos?: (string|null); + /** + * Constructs a new HasVReplicationWorkflowsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.IHasVReplicationWorkflowsRequest); - /** Stream stop_pos */ - stop_pos?: (string|null); - - /** Stream max_tps */ - max_tps?: (number|Long|null); - - /** Stream max_replication_lag */ - max_replication_lag?: (number|Long|null); - - /** Stream time_updated */ - time_updated?: (vttime.ITime|null); - - /** Stream transaction_timestamp */ - transaction_timestamp?: (vttime.ITime|null); - - /** Stream state */ - state?: (binlogdata.VReplicationWorkflowState|null); - - /** Stream message */ - message?: (string|null); - - /** Stream rows_copied */ - rows_copied?: (number|Long|null); - - /** Stream time_heartbeat */ - time_heartbeat?: (vttime.ITime|null); - - /** Stream time_throttled */ - time_throttled?: (vttime.ITime|null); - - /** Stream component_throttled */ - component_throttled?: (string|null); - } - - /** Represents a Stream. */ - class Stream implements IStream { - - /** - * Constructs a new Stream. - * @param [properties] Properties to set - */ - constructor(properties?: tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream); - - /** Stream id. */ - public id: number; - - /** Stream bls. */ - public bls?: (binlogdata.IBinlogSource|null); - - /** Stream pos. */ - public pos: string; - - /** Stream stop_pos. */ - public stop_pos: string; - - /** Stream max_tps. */ - public max_tps: (number|Long); - - /** Stream max_replication_lag. */ - public max_replication_lag: (number|Long); - - /** Stream time_updated. */ - public time_updated?: (vttime.ITime|null); - - /** Stream transaction_timestamp. */ - public transaction_timestamp?: (vttime.ITime|null); - - /** Stream state. */ - public state: binlogdata.VReplicationWorkflowState; - - /** Stream message. */ - public message: string; - - /** Stream rows_copied. */ - public rows_copied: (number|Long); - - /** Stream time_heartbeat. */ - public time_heartbeat?: (vttime.ITime|null); - - /** Stream time_throttled. */ - public time_throttled?: (vttime.ITime|null); - - /** Stream component_throttled. */ - public component_throttled: string; - - /** - * Creates a new Stream instance using the specified properties. - * @param [properties] Properties to set - * @returns Stream instance - */ - public static create(properties?: tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream): tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream; - - /** - * Encodes the specified Stream message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.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: tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Stream message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.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: tabletmanagerdata.ReadVReplicationWorkflowResponse.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): tabletmanagerdata.ReadVReplicationWorkflowResponse.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)): tabletmanagerdata.ReadVReplicationWorkflowResponse.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 }): tabletmanagerdata.ReadVReplicationWorkflowResponse.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: tabletmanagerdata.ReadVReplicationWorkflowResponse.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; - } - } - - /** Properties of a ValidateVReplicationPermissionsRequest. */ - interface IValidateVReplicationPermissionsRequest { - } - - /** Represents a ValidateVReplicationPermissionsRequest. */ - class ValidateVReplicationPermissionsRequest implements IValidateVReplicationPermissionsRequest { - - /** - * Constructs a new ValidateVReplicationPermissionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: tabletmanagerdata.IValidateVReplicationPermissionsRequest); - - /** - * Creates a new ValidateVReplicationPermissionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateVReplicationPermissionsRequest instance - */ - public static create(properties?: tabletmanagerdata.IValidateVReplicationPermissionsRequest): tabletmanagerdata.ValidateVReplicationPermissionsRequest; + /** + * Creates a new HasVReplicationWorkflowsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns HasVReplicationWorkflowsRequest instance + */ + public static create(properties?: tabletmanagerdata.IHasVReplicationWorkflowsRequest): tabletmanagerdata.HasVReplicationWorkflowsRequest; /** - * Encodes the specified ValidateVReplicationPermissionsRequest message. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsRequest.verify|verify} messages. - * @param message ValidateVReplicationPermissionsRequest message or plain object to encode + * Encodes the specified HasVReplicationWorkflowsRequest message. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsRequest.verify|verify} messages. + * @param message HasVReplicationWorkflowsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IValidateVReplicationPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IHasVReplicationWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ValidateVReplicationPermissionsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsRequest.verify|verify} messages. - * @param message ValidateVReplicationPermissionsRequest message or plain object to encode + * Encodes the specified HasVReplicationWorkflowsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsRequest.verify|verify} messages. + * @param message HasVReplicationWorkflowsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IValidateVReplicationPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IHasVReplicationWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateVReplicationPermissionsRequest message from the specified reader or buffer. + * Decodes a HasVReplicationWorkflowsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateVReplicationPermissionsRequest + * @returns HasVReplicationWorkflowsRequest * @throws {Error} If the payload is 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.ValidateVReplicationPermissionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.HasVReplicationWorkflowsRequest; /** - * Decodes a ValidateVReplicationPermissionsRequest message from the specified reader or buffer, length delimited. + * Decodes a HasVReplicationWorkflowsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateVReplicationPermissionsRequest + * @returns HasVReplicationWorkflowsRequest * @throws {Error} If the 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.ValidateVReplicationPermissionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.HasVReplicationWorkflowsRequest; /** - * Verifies a ValidateVReplicationPermissionsRequest message. + * Verifies a HasVReplicationWorkflowsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ValidateVReplicationPermissionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a HasVReplicationWorkflowsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateVReplicationPermissionsRequest + * @returns HasVReplicationWorkflowsRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ValidateVReplicationPermissionsRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.HasVReplicationWorkflowsRequest; /** - * Creates a plain object from a ValidateVReplicationPermissionsRequest message. Also converts values to other types if specified. - * @param message ValidateVReplicationPermissionsRequest + * Creates a plain object from a HasVReplicationWorkflowsRequest message. Also converts values to other types if specified. + * @param message HasVReplicationWorkflowsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ValidateVReplicationPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.HasVReplicationWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateVReplicationPermissionsRequest to JSON. + * Converts this HasVReplicationWorkflowsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateVReplicationPermissionsRequest + * Gets the default type url for HasVReplicationWorkflowsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ValidateVReplicationPermissionsResponse. */ - interface IValidateVReplicationPermissionsResponse { - - /** ValidateVReplicationPermissionsResponse user */ - user?: (string|null); + /** Properties of a HasVReplicationWorkflowsResponse. */ + interface IHasVReplicationWorkflowsResponse { - /** ValidateVReplicationPermissionsResponse ok */ - ok?: (boolean|null); + /** HasVReplicationWorkflowsResponse has */ + has?: (boolean|null); } - /** Represents a ValidateVReplicationPermissionsResponse. */ - class ValidateVReplicationPermissionsResponse implements IValidateVReplicationPermissionsResponse { + /** Represents a HasVReplicationWorkflowsResponse. */ + class HasVReplicationWorkflowsResponse implements IHasVReplicationWorkflowsResponse { /** - * Constructs a new ValidateVReplicationPermissionsResponse. + * Constructs a new HasVReplicationWorkflowsResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IValidateVReplicationPermissionsResponse); - - /** ValidateVReplicationPermissionsResponse user. */ - public user: string; + constructor(properties?: tabletmanagerdata.IHasVReplicationWorkflowsResponse); - /** ValidateVReplicationPermissionsResponse ok. */ - public ok: boolean; + /** HasVReplicationWorkflowsResponse has. */ + public has: boolean; /** - * Creates a new ValidateVReplicationPermissionsResponse instance using the specified properties. + * Creates a new HasVReplicationWorkflowsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateVReplicationPermissionsResponse instance + * @returns HasVReplicationWorkflowsResponse instance */ - public static create(properties?: tabletmanagerdata.IValidateVReplicationPermissionsResponse): tabletmanagerdata.ValidateVReplicationPermissionsResponse; + public static create(properties?: tabletmanagerdata.IHasVReplicationWorkflowsResponse): tabletmanagerdata.HasVReplicationWorkflowsResponse; /** - * Encodes the specified ValidateVReplicationPermissionsResponse message. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsResponse.verify|verify} messages. - * @param message ValidateVReplicationPermissionsResponse message or plain object to encode + * Encodes the specified HasVReplicationWorkflowsResponse message. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsResponse.verify|verify} messages. + * @param message HasVReplicationWorkflowsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IValidateVReplicationPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IHasVReplicationWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ValidateVReplicationPermissionsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsResponse.verify|verify} messages. - * @param message ValidateVReplicationPermissionsResponse message or plain object to encode + * Encodes the specified HasVReplicationWorkflowsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsResponse.verify|verify} messages. + * @param message HasVReplicationWorkflowsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IValidateVReplicationPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IHasVReplicationWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateVReplicationPermissionsResponse message from the specified reader or buffer. + * Decodes a HasVReplicationWorkflowsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateVReplicationPermissionsResponse + * @returns HasVReplicationWorkflowsResponse * @throws {Error} If the payload is 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.ValidateVReplicationPermissionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.HasVReplicationWorkflowsResponse; /** - * Decodes a ValidateVReplicationPermissionsResponse message from the specified reader or buffer, length delimited. + * Decodes a HasVReplicationWorkflowsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateVReplicationPermissionsResponse + * @returns HasVReplicationWorkflowsResponse * @throws {Error} If the 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.ValidateVReplicationPermissionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.HasVReplicationWorkflowsResponse; /** - * Verifies a ValidateVReplicationPermissionsResponse message. + * Verifies a HasVReplicationWorkflowsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ValidateVReplicationPermissionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a HasVReplicationWorkflowsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateVReplicationPermissionsResponse + * @returns HasVReplicationWorkflowsResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ValidateVReplicationPermissionsResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.HasVReplicationWorkflowsResponse; /** - * Creates a plain object from a ValidateVReplicationPermissionsResponse message. Also converts values to other types if specified. - * @param message ValidateVReplicationPermissionsResponse + * Creates a plain object from a HasVReplicationWorkflowsResponse message. Also converts values to other types if specified. + * @param message HasVReplicationWorkflowsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ValidateVReplicationPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.HasVReplicationWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateVReplicationPermissionsResponse to JSON. + * Converts this HasVReplicationWorkflowsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateVReplicationPermissionsResponse + * Gets the default type url for HasVReplicationWorkflowsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VDiffRequest. */ - interface IVDiffRequest { + /** Properties of a ReadVReplicationWorkflowsRequest. */ + interface IReadVReplicationWorkflowsRequest { - /** VDiffRequest keyspace */ - keyspace?: (string|null); + /** ReadVReplicationWorkflowsRequest include_ids */ + include_ids?: (number[]|null); - /** VDiffRequest workflow */ - workflow?: (string|null); + /** ReadVReplicationWorkflowsRequest include_workflows */ + include_workflows?: (string[]|null); - /** VDiffRequest action */ - action?: (string|null); + /** ReadVReplicationWorkflowsRequest include_states */ + include_states?: (binlogdata.VReplicationWorkflowState[]|null); - /** VDiffRequest action_arg */ - action_arg?: (string|null); + /** ReadVReplicationWorkflowsRequest exclude_workflows */ + exclude_workflows?: (string[]|null); - /** VDiffRequest vdiff_uuid */ - vdiff_uuid?: (string|null); + /** ReadVReplicationWorkflowsRequest exclude_states */ + exclude_states?: (binlogdata.VReplicationWorkflowState[]|null); - /** VDiffRequest options */ - options?: (tabletmanagerdata.IVDiffOptions|null); + /** ReadVReplicationWorkflowsRequest exclude_frozen */ + exclude_frozen?: (boolean|null); } - /** Represents a VDiffRequest. */ - class VDiffRequest implements IVDiffRequest { + /** Represents a ReadVReplicationWorkflowsRequest. */ + class ReadVReplicationWorkflowsRequest implements IReadVReplicationWorkflowsRequest { /** - * Constructs a new VDiffRequest. + * Constructs a new ReadVReplicationWorkflowsRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IVDiffRequest); + constructor(properties?: tabletmanagerdata.IReadVReplicationWorkflowsRequest); - /** VDiffRequest keyspace. */ - public keyspace: string; + /** ReadVReplicationWorkflowsRequest include_ids. */ + public include_ids: number[]; - /** VDiffRequest workflow. */ - public workflow: string; + /** ReadVReplicationWorkflowsRequest include_workflows. */ + public include_workflows: string[]; - /** VDiffRequest action. */ - public action: string; + /** ReadVReplicationWorkflowsRequest include_states. */ + public include_states: binlogdata.VReplicationWorkflowState[]; - /** VDiffRequest action_arg. */ - public action_arg: string; + /** ReadVReplicationWorkflowsRequest exclude_workflows. */ + public exclude_workflows: string[]; - /** VDiffRequest vdiff_uuid. */ - public vdiff_uuid: string; + /** ReadVReplicationWorkflowsRequest exclude_states. */ + public exclude_states: binlogdata.VReplicationWorkflowState[]; - /** VDiffRequest options. */ - public options?: (tabletmanagerdata.IVDiffOptions|null); + /** ReadVReplicationWorkflowsRequest exclude_frozen. */ + public exclude_frozen: boolean; /** - * Creates a new VDiffRequest instance using the specified properties. + * Creates a new ReadVReplicationWorkflowsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffRequest instance + * @returns ReadVReplicationWorkflowsRequest instance */ - public static create(properties?: tabletmanagerdata.IVDiffRequest): tabletmanagerdata.VDiffRequest; + public static create(properties?: tabletmanagerdata.IReadVReplicationWorkflowsRequest): tabletmanagerdata.ReadVReplicationWorkflowsRequest; /** - * Encodes the specified VDiffRequest message. Does not implicitly {@link tabletmanagerdata.VDiffRequest.verify|verify} messages. - * @param message VDiffRequest message or plain object to encode + * Encodes the specified ReadVReplicationWorkflowsRequest message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsRequest.verify|verify} messages. + * @param message ReadVReplicationWorkflowsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IVDiffRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReadVReplicationWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VDiffRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffRequest.verify|verify} messages. - * @param message VDiffRequest message or plain object to encode + * Encodes the specified ReadVReplicationWorkflowsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsRequest.verify|verify} messages. + * @param message ReadVReplicationWorkflowsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IVDiffRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReadVReplicationWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffRequest message from the specified reader or buffer. + * Decodes a ReadVReplicationWorkflowsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffRequest + * @returns ReadVReplicationWorkflowsRequest * @throws {Error} If the payload is 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.VDiffRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReadVReplicationWorkflowsRequest; /** - * Decodes a VDiffRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadVReplicationWorkflowsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffRequest + * @returns ReadVReplicationWorkflowsRequest * @throws {Error} If the 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.VDiffRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReadVReplicationWorkflowsRequest; /** - * Verifies a VDiffRequest message. + * Verifies a ReadVReplicationWorkflowsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VDiffRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadVReplicationWorkflowsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffRequest + * @returns ReadVReplicationWorkflowsRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadVReplicationWorkflowsRequest; /** - * Creates a plain object from a VDiffRequest message. Also converts values to other types if specified. - * @param message VDiffRequest + * Creates a plain object from a ReadVReplicationWorkflowsRequest message. Also converts values to other types if specified. + * @param message ReadVReplicationWorkflowsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.VDiffRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReadVReplicationWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffRequest to JSON. + * Converts this ReadVReplicationWorkflowsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffRequest + * Gets the default type url for ReadVReplicationWorkflowsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VDiffResponse. */ - interface IVDiffResponse { - - /** VDiffResponse id */ - id?: (number|Long|null); - - /** VDiffResponse output */ - output?: (query.IQueryResult|null); + /** Properties of a ReadVReplicationWorkflowsResponse. */ + interface IReadVReplicationWorkflowsResponse { - /** VDiffResponse vdiff_uuid */ - vdiff_uuid?: (string|null); + /** ReadVReplicationWorkflowsResponse workflows */ + workflows?: (tabletmanagerdata.IReadVReplicationWorkflowResponse[]|null); } - /** Represents a VDiffResponse. */ - class VDiffResponse implements IVDiffResponse { + /** Represents a ReadVReplicationWorkflowsResponse. */ + class ReadVReplicationWorkflowsResponse implements IReadVReplicationWorkflowsResponse { /** - * Constructs a new VDiffResponse. + * Constructs a new ReadVReplicationWorkflowsResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IVDiffResponse); - - /** VDiffResponse id. */ - public id: (number|Long); - - /** VDiffResponse output. */ - public output?: (query.IQueryResult|null); + constructor(properties?: tabletmanagerdata.IReadVReplicationWorkflowsResponse); - /** VDiffResponse vdiff_uuid. */ - public vdiff_uuid: string; + /** ReadVReplicationWorkflowsResponse workflows. */ + public workflows: tabletmanagerdata.IReadVReplicationWorkflowResponse[]; /** - * Creates a new VDiffResponse instance using the specified properties. + * Creates a new ReadVReplicationWorkflowsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffResponse instance + * @returns ReadVReplicationWorkflowsResponse instance */ - public static create(properties?: tabletmanagerdata.IVDiffResponse): tabletmanagerdata.VDiffResponse; + public static create(properties?: tabletmanagerdata.IReadVReplicationWorkflowsResponse): tabletmanagerdata.ReadVReplicationWorkflowsResponse; /** - * Encodes the specified VDiffResponse message. Does not implicitly {@link tabletmanagerdata.VDiffResponse.verify|verify} messages. - * @param message VDiffResponse message or plain object to encode + * Encodes the specified ReadVReplicationWorkflowsResponse message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsResponse.verify|verify} messages. + * @param message ReadVReplicationWorkflowsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IVDiffResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReadVReplicationWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VDiffResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffResponse.verify|verify} messages. - * @param message VDiffResponse message or plain object to encode + * Encodes the specified ReadVReplicationWorkflowsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsResponse.verify|verify} messages. + * @param message ReadVReplicationWorkflowsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IVDiffResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReadVReplicationWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffResponse message from the specified reader or buffer. + * Decodes a ReadVReplicationWorkflowsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffResponse + * @returns ReadVReplicationWorkflowsResponse * @throws {Error} If the payload is 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.VDiffResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReadVReplicationWorkflowsResponse; /** - * Decodes a VDiffResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadVReplicationWorkflowsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffResponse + * @returns ReadVReplicationWorkflowsResponse * @throws {Error} If the 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.VDiffResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReadVReplicationWorkflowsResponse; /** - * Verifies a VDiffResponse message. + * Verifies a ReadVReplicationWorkflowsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VDiffResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadVReplicationWorkflowsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffResponse + * @returns ReadVReplicationWorkflowsResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadVReplicationWorkflowsResponse; /** - * Creates a plain object from a VDiffResponse message. Also converts values to other types if specified. - * @param message VDiffResponse + * Creates a plain object from a ReadVReplicationWorkflowsResponse message. Also converts values to other types if specified. + * @param message ReadVReplicationWorkflowsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.VDiffResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReadVReplicationWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffResponse to JSON. + * Converts this ReadVReplicationWorkflowsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffResponse + * Gets the default type url for ReadVReplicationWorkflowsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VDiffPickerOptions. */ - interface IVDiffPickerOptions { - - /** VDiffPickerOptions tablet_types */ - tablet_types?: (string|null); - - /** VDiffPickerOptions source_cell */ - source_cell?: (string|null); + /** Properties of a ReadVReplicationWorkflowRequest. */ + interface IReadVReplicationWorkflowRequest { - /** VDiffPickerOptions target_cell */ - target_cell?: (string|null); + /** ReadVReplicationWorkflowRequest workflow */ + workflow?: (string|null); } - /** Represents a VDiffPickerOptions. */ - class VDiffPickerOptions implements IVDiffPickerOptions { + /** Represents a ReadVReplicationWorkflowRequest. */ + class ReadVReplicationWorkflowRequest implements IReadVReplicationWorkflowRequest { /** - * Constructs a new VDiffPickerOptions. + * Constructs a new ReadVReplicationWorkflowRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IVDiffPickerOptions); + constructor(properties?: tabletmanagerdata.IReadVReplicationWorkflowRequest); - /** VDiffPickerOptions tablet_types. */ - public tablet_types: string; - - /** VDiffPickerOptions source_cell. */ - public source_cell: string; - - /** VDiffPickerOptions target_cell. */ - public target_cell: string; + /** ReadVReplicationWorkflowRequest workflow. */ + public workflow: string; /** - * Creates a new VDiffPickerOptions instance using the specified properties. + * Creates a new ReadVReplicationWorkflowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffPickerOptions instance + * @returns ReadVReplicationWorkflowRequest instance */ - public static create(properties?: tabletmanagerdata.IVDiffPickerOptions): tabletmanagerdata.VDiffPickerOptions; + public static create(properties?: tabletmanagerdata.IReadVReplicationWorkflowRequest): tabletmanagerdata.ReadVReplicationWorkflowRequest; /** - * Encodes the specified VDiffPickerOptions message. Does not implicitly {@link tabletmanagerdata.VDiffPickerOptions.verify|verify} messages. - * @param message VDiffPickerOptions message or plain object to encode + * Encodes the specified ReadVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowRequest.verify|verify} messages. + * @param message ReadVReplicationWorkflowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IVDiffPickerOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReadVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VDiffPickerOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffPickerOptions.verify|verify} messages. - * @param message VDiffPickerOptions message or plain object to encode + * Encodes the specified ReadVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowRequest.verify|verify} messages. + * @param message ReadVReplicationWorkflowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IVDiffPickerOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReadVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffPickerOptions message from the specified reader or buffer. + * Decodes a ReadVReplicationWorkflowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffPickerOptions + * @returns ReadVReplicationWorkflowRequest * @throws {Error} If the payload is 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.VDiffPickerOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReadVReplicationWorkflowRequest; /** - * Decodes a VDiffPickerOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffPickerOptions + * @returns ReadVReplicationWorkflowRequest * @throws {Error} If the 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.VDiffPickerOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReadVReplicationWorkflowRequest; /** - * Verifies a VDiffPickerOptions message. + * Verifies a ReadVReplicationWorkflowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VDiffPickerOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffPickerOptions + * @returns ReadVReplicationWorkflowRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffPickerOptions; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadVReplicationWorkflowRequest; /** - * Creates a plain object from a VDiffPickerOptions message. Also converts values to other types if specified. - * @param message VDiffPickerOptions + * Creates a plain object from a ReadVReplicationWorkflowRequest message. Also converts values to other types if specified. + * @param message ReadVReplicationWorkflowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.VDiffPickerOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReadVReplicationWorkflowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffPickerOptions to JSON. + * Converts this ReadVReplicationWorkflowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffPickerOptions + * Gets the default type url for ReadVReplicationWorkflowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VDiffReportOptions. */ - interface IVDiffReportOptions { + /** Properties of a ReadVReplicationWorkflowResponse. */ + interface IReadVReplicationWorkflowResponse { - /** VDiffReportOptions only_pks */ - only_pks?: (boolean|null); + /** ReadVReplicationWorkflowResponse workflow */ + workflow?: (string|null); - /** VDiffReportOptions debug_query */ - debug_query?: (boolean|null); + /** ReadVReplicationWorkflowResponse cells */ + cells?: (string|null); - /** VDiffReportOptions format */ - format?: (string|null); + /** ReadVReplicationWorkflowResponse tablet_types */ + tablet_types?: (topodata.TabletType[]|null); - /** VDiffReportOptions max_sample_rows */ - max_sample_rows?: (number|Long|null); + /** ReadVReplicationWorkflowResponse tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - /** VDiffReportOptions row_diff_column_truncate_at */ - row_diff_column_truncate_at?: (number|Long|null); + /** ReadVReplicationWorkflowResponse db_name */ + db_name?: (string|null); + + /** ReadVReplicationWorkflowResponse tags */ + tags?: (string|null); + + /** ReadVReplicationWorkflowResponse workflow_type */ + workflow_type?: (binlogdata.VReplicationWorkflowType|null); + + /** ReadVReplicationWorkflowResponse workflow_sub_type */ + workflow_sub_type?: (binlogdata.VReplicationWorkflowSubType|null); + + /** ReadVReplicationWorkflowResponse defer_secondary_keys */ + defer_secondary_keys?: (boolean|null); + + /** ReadVReplicationWorkflowResponse streams */ + streams?: (tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream[]|null); + + /** ReadVReplicationWorkflowResponse options */ + options?: (string|null); + + /** ReadVReplicationWorkflowResponse config_overrides */ + config_overrides?: ({ [k: string]: string }|null); } - /** Represents a VDiffReportOptions. */ - class VDiffReportOptions implements IVDiffReportOptions { + /** Represents a ReadVReplicationWorkflowResponse. */ + class ReadVReplicationWorkflowResponse implements IReadVReplicationWorkflowResponse { /** - * Constructs a new VDiffReportOptions. + * Constructs a new ReadVReplicationWorkflowResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IVDiffReportOptions); + constructor(properties?: tabletmanagerdata.IReadVReplicationWorkflowResponse); - /** VDiffReportOptions only_pks. */ - public only_pks: boolean; + /** ReadVReplicationWorkflowResponse workflow. */ + public workflow: string; - /** VDiffReportOptions debug_query. */ - public debug_query: boolean; + /** ReadVReplicationWorkflowResponse cells. */ + public cells: string; - /** VDiffReportOptions format. */ - public format: string; + /** ReadVReplicationWorkflowResponse tablet_types. */ + public tablet_types: topodata.TabletType[]; - /** VDiffReportOptions max_sample_rows. */ - public max_sample_rows: (number|Long); + /** ReadVReplicationWorkflowResponse tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - /** VDiffReportOptions row_diff_column_truncate_at. */ - public row_diff_column_truncate_at: (number|Long); + /** ReadVReplicationWorkflowResponse db_name. */ + public db_name: string; + + /** ReadVReplicationWorkflowResponse tags. */ + public tags: string; + + /** ReadVReplicationWorkflowResponse workflow_type. */ + public workflow_type: binlogdata.VReplicationWorkflowType; + + /** ReadVReplicationWorkflowResponse workflow_sub_type. */ + public workflow_sub_type: binlogdata.VReplicationWorkflowSubType; + + /** ReadVReplicationWorkflowResponse defer_secondary_keys. */ + public defer_secondary_keys: boolean; + + /** ReadVReplicationWorkflowResponse streams. */ + public streams: tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream[]; + + /** ReadVReplicationWorkflowResponse options. */ + public options: string; + + /** ReadVReplicationWorkflowResponse config_overrides. */ + public config_overrides: { [k: string]: string }; /** - * Creates a new VDiffReportOptions instance using the specified properties. + * Creates a new ReadVReplicationWorkflowResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffReportOptions instance + * @returns ReadVReplicationWorkflowResponse instance */ - public static create(properties?: tabletmanagerdata.IVDiffReportOptions): tabletmanagerdata.VDiffReportOptions; + public static create(properties?: tabletmanagerdata.IReadVReplicationWorkflowResponse): tabletmanagerdata.ReadVReplicationWorkflowResponse; /** - * Encodes the specified VDiffReportOptions message. Does not implicitly {@link tabletmanagerdata.VDiffReportOptions.verify|verify} messages. - * @param message VDiffReportOptions message or plain object to encode + * Encodes the specified ReadVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.verify|verify} messages. + * @param message ReadVReplicationWorkflowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IVDiffReportOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IReadVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VDiffReportOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffReportOptions.verify|verify} messages. - * @param message VDiffReportOptions message or plain object to encode + * Encodes the specified ReadVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.verify|verify} messages. + * @param message ReadVReplicationWorkflowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IVDiffReportOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IReadVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffReportOptions message from the specified reader or buffer. + * Decodes a ReadVReplicationWorkflowResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffReportOptions + * @returns ReadVReplicationWorkflowResponse * @throws {Error} If the payload is 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.VDiffReportOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ReadVReplicationWorkflowResponse; /** - * Decodes a VDiffReportOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffReportOptions + * @returns ReadVReplicationWorkflowResponse * @throws {Error} If the 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.VDiffReportOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ReadVReplicationWorkflowResponse; /** - * Verifies a VDiffReportOptions message. + * Verifies a ReadVReplicationWorkflowResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VDiffReportOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffReportOptions + * @returns ReadVReplicationWorkflowResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffReportOptions; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ReadVReplicationWorkflowResponse; /** - * Creates a plain object from a VDiffReportOptions message. Also converts values to other types if specified. - * @param message VDiffReportOptions + * Creates a plain object from a ReadVReplicationWorkflowResponse message. Also converts values to other types if specified. + * @param message ReadVReplicationWorkflowResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.VDiffReportOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ReadVReplicationWorkflowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffReportOptions to JSON. + * Converts this ReadVReplicationWorkflowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffReportOptions + * Gets the default type url for ReadVReplicationWorkflowResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VDiffCoreOptions. */ - interface IVDiffCoreOptions { + namespace ReadVReplicationWorkflowResponse { - /** VDiffCoreOptions tables */ - tables?: (string|null); + /** Properties of a Stream. */ + interface IStream { - /** VDiffCoreOptions auto_retry */ - auto_retry?: (boolean|null); + /** Stream id */ + id?: (number|null); - /** VDiffCoreOptions max_rows */ - max_rows?: (number|Long|null); + /** Stream bls */ + bls?: (binlogdata.IBinlogSource|null); - /** VDiffCoreOptions checksum */ - checksum?: (boolean|null); + /** Stream pos */ + pos?: (string|null); - /** VDiffCoreOptions sample_pct */ - sample_pct?: (number|Long|null); + /** Stream stop_pos */ + stop_pos?: (string|null); - /** VDiffCoreOptions timeout_seconds */ - timeout_seconds?: (number|Long|null); + /** Stream max_tps */ + max_tps?: (number|Long|null); - /** VDiffCoreOptions max_extra_rows_to_compare */ - max_extra_rows_to_compare?: (number|Long|null); + /** Stream max_replication_lag */ + max_replication_lag?: (number|Long|null); - /** VDiffCoreOptions update_table_stats */ - update_table_stats?: (boolean|null); + /** Stream time_updated */ + time_updated?: (vttime.ITime|null); - /** VDiffCoreOptions max_diff_seconds */ - max_diff_seconds?: (number|Long|null); + /** Stream transaction_timestamp */ + transaction_timestamp?: (vttime.ITime|null); - /** VDiffCoreOptions auto_start */ - auto_start?: (boolean|null); - } + /** Stream state */ + state?: (binlogdata.VReplicationWorkflowState|null); - /** Represents a VDiffCoreOptions. */ - class VDiffCoreOptions implements IVDiffCoreOptions { + /** Stream message */ + message?: (string|null); - /** - * Constructs a new VDiffCoreOptions. - * @param [properties] Properties to set - */ - constructor(properties?: tabletmanagerdata.IVDiffCoreOptions); + /** Stream rows_copied */ + rows_copied?: (number|Long|null); - /** VDiffCoreOptions tables. */ - public tables: string; + /** Stream time_heartbeat */ + time_heartbeat?: (vttime.ITime|null); - /** VDiffCoreOptions auto_retry. */ - public auto_retry: boolean; + /** Stream time_throttled */ + time_throttled?: (vttime.ITime|null); - /** VDiffCoreOptions max_rows. */ - public max_rows: (number|Long); + /** Stream component_throttled */ + component_throttled?: (string|null); + } - /** VDiffCoreOptions checksum. */ - public checksum: boolean; + /** Represents a Stream. */ + class Stream implements IStream { - /** VDiffCoreOptions sample_pct. */ - public sample_pct: (number|Long); + /** + * Constructs a new Stream. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream); - /** VDiffCoreOptions timeout_seconds. */ - public timeout_seconds: (number|Long); + /** Stream id. */ + public id: number; - /** VDiffCoreOptions max_extra_rows_to_compare. */ - public max_extra_rows_to_compare: (number|Long); + /** Stream bls. */ + public bls?: (binlogdata.IBinlogSource|null); - /** VDiffCoreOptions update_table_stats. */ - public update_table_stats: boolean; + /** Stream pos. */ + public pos: string; - /** VDiffCoreOptions max_diff_seconds. */ - public max_diff_seconds: (number|Long); + /** Stream stop_pos. */ + public stop_pos: string; - /** VDiffCoreOptions auto_start. */ - public auto_start?: (boolean|null); + /** Stream max_tps. */ + public max_tps: (number|Long); + + /** Stream max_replication_lag. */ + public max_replication_lag: (number|Long); + + /** Stream time_updated. */ + public time_updated?: (vttime.ITime|null); + + /** Stream transaction_timestamp. */ + public transaction_timestamp?: (vttime.ITime|null); + + /** Stream state. */ + public state: binlogdata.VReplicationWorkflowState; + + /** Stream message. */ + public message: string; + + /** Stream rows_copied. */ + public rows_copied: (number|Long); + + /** Stream time_heartbeat. */ + public time_heartbeat?: (vttime.ITime|null); + + /** Stream time_throttled. */ + public time_throttled?: (vttime.ITime|null); + + /** Stream component_throttled. */ + public component_throttled: string; + + /** + * Creates a new Stream instance using the specified properties. + * @param [properties] Properties to set + * @returns Stream instance + */ + public static create(properties?: tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream): tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream; + + /** + * Encodes the specified Stream message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.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: tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Stream message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.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: tabletmanagerdata.ReadVReplicationWorkflowResponse.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): tabletmanagerdata.ReadVReplicationWorkflowResponse.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)): tabletmanagerdata.ReadVReplicationWorkflowResponse.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 }): tabletmanagerdata.ReadVReplicationWorkflowResponse.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: tabletmanagerdata.ReadVReplicationWorkflowResponse.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; + } + } + + /** Properties of a ValidateVReplicationPermissionsRequest. */ + interface IValidateVReplicationPermissionsRequest { + } + + /** Represents a ValidateVReplicationPermissionsRequest. */ + class ValidateVReplicationPermissionsRequest implements IValidateVReplicationPermissionsRequest { /** - * Creates a new VDiffCoreOptions instance using the specified properties. + * Constructs a new ValidateVReplicationPermissionsRequest. * @param [properties] Properties to set - * @returns VDiffCoreOptions instance */ - public static create(properties?: tabletmanagerdata.IVDiffCoreOptions): tabletmanagerdata.VDiffCoreOptions; + constructor(properties?: tabletmanagerdata.IValidateVReplicationPermissionsRequest); /** - * Encodes the specified VDiffCoreOptions message. Does not implicitly {@link tabletmanagerdata.VDiffCoreOptions.verify|verify} messages. - * @param message VDiffCoreOptions message or plain object to encode + * Creates a new ValidateVReplicationPermissionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateVReplicationPermissionsRequest instance + */ + public static create(properties?: tabletmanagerdata.IValidateVReplicationPermissionsRequest): tabletmanagerdata.ValidateVReplicationPermissionsRequest; + + /** + * Encodes the specified ValidateVReplicationPermissionsRequest message. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsRequest.verify|verify} messages. + * @param message ValidateVReplicationPermissionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IVDiffCoreOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IValidateVReplicationPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VDiffCoreOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffCoreOptions.verify|verify} messages. - * @param message VDiffCoreOptions message or plain object to encode + * Encodes the specified ValidateVReplicationPermissionsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsRequest.verify|verify} messages. + * @param message ValidateVReplicationPermissionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IVDiffCoreOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IValidateVReplicationPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffCoreOptions message from the specified reader or buffer. + * Decodes a ValidateVReplicationPermissionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffCoreOptions + * @returns ValidateVReplicationPermissionsRequest * @throws {Error} If the payload is 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.VDiffCoreOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ValidateVReplicationPermissionsRequest; /** - * Decodes a VDiffCoreOptions message from the specified reader or buffer, length delimited. + * Decodes a ValidateVReplicationPermissionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffCoreOptions + * @returns ValidateVReplicationPermissionsRequest * @throws {Error} If the 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.VDiffCoreOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ValidateVReplicationPermissionsRequest; /** - * Verifies a VDiffCoreOptions message. + * Verifies a ValidateVReplicationPermissionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VDiffCoreOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVReplicationPermissionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffCoreOptions + * @returns ValidateVReplicationPermissionsRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffCoreOptions; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ValidateVReplicationPermissionsRequest; /** - * Creates a plain object from a VDiffCoreOptions message. Also converts values to other types if specified. - * @param message VDiffCoreOptions + * Creates a plain object from a ValidateVReplicationPermissionsRequest message. Also converts values to other types if specified. + * @param message ValidateVReplicationPermissionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.VDiffCoreOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ValidateVReplicationPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffCoreOptions to JSON. + * Converts this ValidateVReplicationPermissionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffCoreOptions + * Gets the default type url for ValidateVReplicationPermissionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VDiffOptions. */ - interface IVDiffOptions { - - /** VDiffOptions picker_options */ - picker_options?: (tabletmanagerdata.IVDiffPickerOptions|null); + /** Properties of a ValidateVReplicationPermissionsResponse. */ + interface IValidateVReplicationPermissionsResponse { - /** VDiffOptions core_options */ - core_options?: (tabletmanagerdata.IVDiffCoreOptions|null); + /** ValidateVReplicationPermissionsResponse user */ + user?: (string|null); - /** VDiffOptions report_options */ - report_options?: (tabletmanagerdata.IVDiffReportOptions|null); + /** ValidateVReplicationPermissionsResponse ok */ + ok?: (boolean|null); } - /** Represents a VDiffOptions. */ - class VDiffOptions implements IVDiffOptions { + /** Represents a ValidateVReplicationPermissionsResponse. */ + class ValidateVReplicationPermissionsResponse implements IValidateVReplicationPermissionsResponse { /** - * Constructs a new VDiffOptions. + * Constructs a new ValidateVReplicationPermissionsResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IVDiffOptions); - - /** VDiffOptions picker_options. */ - public picker_options?: (tabletmanagerdata.IVDiffPickerOptions|null); + constructor(properties?: tabletmanagerdata.IValidateVReplicationPermissionsResponse); - /** VDiffOptions core_options. */ - public core_options?: (tabletmanagerdata.IVDiffCoreOptions|null); + /** ValidateVReplicationPermissionsResponse user. */ + public user: string; - /** VDiffOptions report_options. */ - public report_options?: (tabletmanagerdata.IVDiffReportOptions|null); + /** ValidateVReplicationPermissionsResponse ok. */ + public ok: boolean; /** - * Creates a new VDiffOptions instance using the specified properties. + * Creates a new ValidateVReplicationPermissionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffOptions instance + * @returns ValidateVReplicationPermissionsResponse instance */ - public static create(properties?: tabletmanagerdata.IVDiffOptions): tabletmanagerdata.VDiffOptions; + public static create(properties?: tabletmanagerdata.IValidateVReplicationPermissionsResponse): tabletmanagerdata.ValidateVReplicationPermissionsResponse; /** - * Encodes the specified VDiffOptions message. Does not implicitly {@link tabletmanagerdata.VDiffOptions.verify|verify} messages. - * @param message VDiffOptions message or plain object to encode + * Encodes the specified ValidateVReplicationPermissionsResponse message. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsResponse.verify|verify} messages. + * @param message ValidateVReplicationPermissionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IVDiffOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IValidateVReplicationPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VDiffOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffOptions.verify|verify} messages. - * @param message VDiffOptions message or plain object to encode + * Encodes the specified ValidateVReplicationPermissionsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsResponse.verify|verify} messages. + * @param message ValidateVReplicationPermissionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IVDiffOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IValidateVReplicationPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffOptions message from the specified reader or buffer. + * Decodes a ValidateVReplicationPermissionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffOptions + * @returns ValidateVReplicationPermissionsResponse * @throws {Error} If the payload is 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.VDiffOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ValidateVReplicationPermissionsResponse; /** - * Decodes a VDiffOptions message from the specified reader or buffer, length delimited. + * Decodes a ValidateVReplicationPermissionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffOptions + * @returns ValidateVReplicationPermissionsResponse * @throws {Error} If the 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.VDiffOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ValidateVReplicationPermissionsResponse; /** - * Verifies a VDiffOptions message. + * Verifies a ValidateVReplicationPermissionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VDiffOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVReplicationPermissionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffOptions + * @returns ValidateVReplicationPermissionsResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffOptions; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ValidateVReplicationPermissionsResponse; /** - * Creates a plain object from a VDiffOptions message. Also converts values to other types if specified. - * @param message VDiffOptions + * Creates a plain object from a ValidateVReplicationPermissionsResponse message. Also converts values to other types if specified. + * @param message ValidateVReplicationPermissionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.VDiffOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ValidateVReplicationPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffOptions to JSON. + * Converts this ValidateVReplicationPermissionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffOptions + * Gets the default type url for ValidateVReplicationPermissionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VDiffTableLastPK. */ - interface IVDiffTableLastPK { + /** Properties of a VDiffRequest. */ + interface IVDiffRequest { - /** VDiffTableLastPK target */ - target?: (query.IQueryResult|null); + /** VDiffRequest keyspace */ + keyspace?: (string|null); - /** VDiffTableLastPK source */ - source?: (query.IQueryResult|null); + /** VDiffRequest workflow */ + workflow?: (string|null); + + /** VDiffRequest action */ + action?: (string|null); + + /** VDiffRequest action_arg */ + action_arg?: (string|null); + + /** VDiffRequest vdiff_uuid */ + vdiff_uuid?: (string|null); + + /** VDiffRequest options */ + options?: (tabletmanagerdata.IVDiffOptions|null); } - /** Represents a VDiffTableLastPK. */ - class VDiffTableLastPK implements IVDiffTableLastPK { + /** Represents a VDiffRequest. */ + class VDiffRequest implements IVDiffRequest { /** - * Constructs a new VDiffTableLastPK. + * Constructs a new VDiffRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IVDiffTableLastPK); + constructor(properties?: tabletmanagerdata.IVDiffRequest); - /** VDiffTableLastPK target. */ - public target?: (query.IQueryResult|null); + /** VDiffRequest keyspace. */ + public keyspace: string; - /** VDiffTableLastPK source. */ - public source?: (query.IQueryResult|null); + /** VDiffRequest workflow. */ + public workflow: string; + + /** VDiffRequest action. */ + public action: string; + + /** VDiffRequest action_arg. */ + public action_arg: string; + + /** VDiffRequest vdiff_uuid. */ + public vdiff_uuid: string; + + /** VDiffRequest options. */ + public options?: (tabletmanagerdata.IVDiffOptions|null); /** - * Creates a new VDiffTableLastPK instance using the specified properties. + * Creates a new VDiffRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffTableLastPK instance + * @returns VDiffRequest instance */ - public static create(properties?: tabletmanagerdata.IVDiffTableLastPK): tabletmanagerdata.VDiffTableLastPK; + public static create(properties?: tabletmanagerdata.IVDiffRequest): tabletmanagerdata.VDiffRequest; /** - * Encodes the specified VDiffTableLastPK message. Does not implicitly {@link tabletmanagerdata.VDiffTableLastPK.verify|verify} messages. - * @param message VDiffTableLastPK message or plain object to encode + * Encodes the specified VDiffRequest message. Does not implicitly {@link tabletmanagerdata.VDiffRequest.verify|verify} messages. + * @param message VDiffRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IVDiffTableLastPK, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IVDiffRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VDiffTableLastPK message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffTableLastPK.verify|verify} messages. - * @param message VDiffTableLastPK message or plain object to encode + * Encodes the specified VDiffRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffRequest.verify|verify} messages. + * @param message VDiffRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IVDiffTableLastPK, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IVDiffRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffTableLastPK message from the specified reader or buffer. + * Decodes a VDiffRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffTableLastPK + * @returns VDiffRequest * @throws {Error} If the payload is 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.VDiffTableLastPK; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.VDiffRequest; /** - * Decodes a VDiffTableLastPK message from the specified reader or buffer, length delimited. + * Decodes a VDiffRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffTableLastPK + * @returns VDiffRequest * @throws {Error} If the 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.VDiffTableLastPK; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.VDiffRequest; /** - * Verifies a VDiffTableLastPK message. + * Verifies a VDiffRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VDiffTableLastPK message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffTableLastPK + * @returns VDiffRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffTableLastPK; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffRequest; /** - * Creates a plain object from a VDiffTableLastPK message. Also converts values to other types if specified. - * @param message VDiffTableLastPK + * Creates a plain object from a VDiffRequest message. Also converts values to other types if specified. + * @param message VDiffRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.VDiffTableLastPK, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.VDiffRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffTableLastPK to JSON. + * Converts this VDiffRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffTableLastPK + * Gets the default type url for VDiffRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateVReplicationWorkflowRequest. */ - interface IUpdateVReplicationWorkflowRequest { - - /** UpdateVReplicationWorkflowRequest workflow */ - workflow?: (string|null); - - /** UpdateVReplicationWorkflowRequest cells */ - cells?: (string[]|null); - - /** UpdateVReplicationWorkflowRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** UpdateVReplicationWorkflowRequest tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** UpdateVReplicationWorkflowRequest on_ddl */ - on_ddl?: (binlogdata.OnDDLAction|null); - - /** UpdateVReplicationWorkflowRequest state */ - state?: (binlogdata.VReplicationWorkflowState|null); + /** Properties of a VDiffResponse. */ + interface IVDiffResponse { - /** UpdateVReplicationWorkflowRequest shards */ - shards?: (string[]|null); + /** VDiffResponse id */ + id?: (number|Long|null); - /** UpdateVReplicationWorkflowRequest config_overrides */ - config_overrides?: ({ [k: string]: string }|null); + /** VDiffResponse output */ + output?: (query.IQueryResult|null); - /** UpdateVReplicationWorkflowRequest message */ - message?: (string|null); + /** VDiffResponse vdiff_uuid */ + vdiff_uuid?: (string|null); } - /** Represents an UpdateVReplicationWorkflowRequest. */ - class UpdateVReplicationWorkflowRequest implements IUpdateVReplicationWorkflowRequest { + /** Represents a VDiffResponse. */ + class VDiffResponse implements IVDiffResponse { /** - * Constructs a new UpdateVReplicationWorkflowRequest. + * Constructs a new VDiffResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowRequest); - - /** UpdateVReplicationWorkflowRequest workflow. */ - public workflow: string; - - /** UpdateVReplicationWorkflowRequest cells. */ - public cells: string[]; - - /** UpdateVReplicationWorkflowRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** UpdateVReplicationWorkflowRequest tablet_selection_preference. */ - public tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** UpdateVReplicationWorkflowRequest on_ddl. */ - public on_ddl?: (binlogdata.OnDDLAction|null); - - /** UpdateVReplicationWorkflowRequest state. */ - public state?: (binlogdata.VReplicationWorkflowState|null); + constructor(properties?: tabletmanagerdata.IVDiffResponse); - /** UpdateVReplicationWorkflowRequest shards. */ - public shards: string[]; + /** VDiffResponse id. */ + public id: (number|Long); - /** UpdateVReplicationWorkflowRequest config_overrides. */ - public config_overrides: { [k: string]: string }; + /** VDiffResponse output. */ + public output?: (query.IQueryResult|null); - /** UpdateVReplicationWorkflowRequest message. */ - public message?: (string|null); + /** VDiffResponse vdiff_uuid. */ + public vdiff_uuid: string; /** - * Creates a new UpdateVReplicationWorkflowRequest instance using the specified properties. + * Creates a new VDiffResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateVReplicationWorkflowRequest instance + * @returns VDiffResponse instance */ - public static create(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowRequest): tabletmanagerdata.UpdateVReplicationWorkflowRequest; + public static create(properties?: tabletmanagerdata.IVDiffResponse): tabletmanagerdata.VDiffResponse; /** - * Encodes the specified UpdateVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowRequest.verify|verify} messages. - * @param message UpdateVReplicationWorkflowRequest message or plain object to encode + * Encodes the specified VDiffResponse message. Does not implicitly {@link tabletmanagerdata.VDiffResponse.verify|verify} messages. + * @param message VDiffResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IUpdateVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IVDiffResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowRequest.verify|verify} messages. - * @param message UpdateVReplicationWorkflowRequest message or plain object to encode + * Encodes the specified VDiffResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffResponse.verify|verify} messages. + * @param message VDiffResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IUpdateVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IVDiffResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateVReplicationWorkflowRequest message from the specified reader or buffer. + * Decodes a VDiffResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateVReplicationWorkflowRequest + * @returns VDiffResponse * @throws {Error} If the payload is 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.UpdateVReplicationWorkflowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.VDiffResponse; /** - * Decodes an UpdateVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateVReplicationWorkflowRequest + * @returns VDiffResponse * @throws {Error} If the 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.UpdateVReplicationWorkflowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.VDiffResponse; /** - * Verifies an UpdateVReplicationWorkflowRequest message. + * Verifies a VDiffResponse message. * @param message Plain 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 UpdateVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateVReplicationWorkflowRequest + * @returns VDiffResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UpdateVReplicationWorkflowRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffResponse; /** - * Creates a plain object from an UpdateVReplicationWorkflowRequest message. Also converts values to other types if specified. - * @param message UpdateVReplicationWorkflowRequest + * Creates a plain object from a VDiffResponse message. Also converts values to other types if specified. + * @param message VDiffResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.UpdateVReplicationWorkflowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.VDiffResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateVReplicationWorkflowRequest to JSON. + * Converts this VDiffResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateVReplicationWorkflowRequest + * Gets the default type url for VDiffResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateVReplicationWorkflowResponse. */ - interface IUpdateVReplicationWorkflowResponse { + /** Properties of a VDiffPickerOptions. */ + interface IVDiffPickerOptions { - /** UpdateVReplicationWorkflowResponse result */ - result?: (query.IQueryResult|null); + /** VDiffPickerOptions tablet_types */ + tablet_types?: (string|null); + + /** VDiffPickerOptions source_cell */ + source_cell?: (string|null); + + /** VDiffPickerOptions target_cell */ + target_cell?: (string|null); } - /** Represents an UpdateVReplicationWorkflowResponse. */ - class UpdateVReplicationWorkflowResponse implements IUpdateVReplicationWorkflowResponse { + /** Represents a VDiffPickerOptions. */ + class VDiffPickerOptions implements IVDiffPickerOptions { /** - * Constructs a new UpdateVReplicationWorkflowResponse. + * Constructs a new VDiffPickerOptions. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowResponse); + constructor(properties?: tabletmanagerdata.IVDiffPickerOptions); - /** UpdateVReplicationWorkflowResponse result. */ - public result?: (query.IQueryResult|null); + /** VDiffPickerOptions tablet_types. */ + public tablet_types: string; + + /** VDiffPickerOptions source_cell. */ + public source_cell: string; + + /** VDiffPickerOptions target_cell. */ + public target_cell: string; /** - * Creates a new UpdateVReplicationWorkflowResponse instance using the specified properties. + * Creates a new VDiffPickerOptions instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateVReplicationWorkflowResponse instance + * @returns VDiffPickerOptions instance */ - public static create(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowResponse): tabletmanagerdata.UpdateVReplicationWorkflowResponse; + public static create(properties?: tabletmanagerdata.IVDiffPickerOptions): tabletmanagerdata.VDiffPickerOptions; /** - * Encodes the specified UpdateVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowResponse.verify|verify} messages. - * @param message UpdateVReplicationWorkflowResponse message or plain object to encode + * Encodes the specified VDiffPickerOptions message. Does not implicitly {@link tabletmanagerdata.VDiffPickerOptions.verify|verify} messages. + * @param message VDiffPickerOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IUpdateVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IVDiffPickerOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowResponse.verify|verify} messages. - * @param message UpdateVReplicationWorkflowResponse message or plain object to encode + * Encodes the specified VDiffPickerOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffPickerOptions.verify|verify} messages. + * @param message VDiffPickerOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IUpdateVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IVDiffPickerOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateVReplicationWorkflowResponse message from the specified reader or buffer. + * Decodes a VDiffPickerOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateVReplicationWorkflowResponse + * @returns VDiffPickerOptions * @throws {Error} If the payload is 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.UpdateVReplicationWorkflowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.VDiffPickerOptions; /** - * Decodes an UpdateVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffPickerOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateVReplicationWorkflowResponse + * @returns VDiffPickerOptions * @throws {Error} If the 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.UpdateVReplicationWorkflowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.VDiffPickerOptions; /** - * Verifies an UpdateVReplicationWorkflowResponse message. + * Verifies a VDiffPickerOptions message. * @param message Plain 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 UpdateVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffPickerOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateVReplicationWorkflowResponse + * @returns VDiffPickerOptions */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UpdateVReplicationWorkflowResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffPickerOptions; /** - * Creates a plain object from an UpdateVReplicationWorkflowResponse message. Also converts values to other types if specified. - * @param message UpdateVReplicationWorkflowResponse + * Creates a plain object from a VDiffPickerOptions message. Also converts values to other types if specified. + * @param message VDiffPickerOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.UpdateVReplicationWorkflowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.VDiffPickerOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateVReplicationWorkflowResponse to JSON. + * Converts this VDiffPickerOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateVReplicationWorkflowResponse + * Gets the default type url for VDiffPickerOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateVReplicationWorkflowsRequest. */ - interface IUpdateVReplicationWorkflowsRequest { - - /** UpdateVReplicationWorkflowsRequest all_workflows */ - all_workflows?: (boolean|null); + /** Properties of a VDiffReportOptions. */ + interface IVDiffReportOptions { - /** UpdateVReplicationWorkflowsRequest include_workflows */ - include_workflows?: (string[]|null); + /** VDiffReportOptions only_pks */ + only_pks?: (boolean|null); - /** UpdateVReplicationWorkflowsRequest exclude_workflows */ - exclude_workflows?: (string[]|null); + /** VDiffReportOptions debug_query */ + debug_query?: (boolean|null); - /** UpdateVReplicationWorkflowsRequest state */ - state?: (binlogdata.VReplicationWorkflowState|null); + /** VDiffReportOptions format */ + format?: (string|null); - /** UpdateVReplicationWorkflowsRequest message */ - message?: (string|null); + /** VDiffReportOptions max_sample_rows */ + max_sample_rows?: (number|Long|null); - /** UpdateVReplicationWorkflowsRequest stop_position */ - stop_position?: (string|null); + /** VDiffReportOptions row_diff_column_truncate_at */ + row_diff_column_truncate_at?: (number|Long|null); } - /** Represents an UpdateVReplicationWorkflowsRequest. */ - class UpdateVReplicationWorkflowsRequest implements IUpdateVReplicationWorkflowsRequest { + /** Represents a VDiffReportOptions. */ + class VDiffReportOptions implements IVDiffReportOptions { /** - * Constructs a new UpdateVReplicationWorkflowsRequest. + * Constructs a new VDiffReportOptions. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowsRequest); - - /** UpdateVReplicationWorkflowsRequest all_workflows. */ - public all_workflows: boolean; + constructor(properties?: tabletmanagerdata.IVDiffReportOptions); - /** UpdateVReplicationWorkflowsRequest include_workflows. */ - public include_workflows: string[]; + /** VDiffReportOptions only_pks. */ + public only_pks: boolean; - /** UpdateVReplicationWorkflowsRequest exclude_workflows. */ - public exclude_workflows: string[]; + /** VDiffReportOptions debug_query. */ + public debug_query: boolean; - /** UpdateVReplicationWorkflowsRequest state. */ - public state?: (binlogdata.VReplicationWorkflowState|null); + /** VDiffReportOptions format. */ + public format: string; - /** UpdateVReplicationWorkflowsRequest message. */ - public message?: (string|null); + /** VDiffReportOptions max_sample_rows. */ + public max_sample_rows: (number|Long); - /** UpdateVReplicationWorkflowsRequest stop_position. */ - public stop_position?: (string|null); + /** VDiffReportOptions row_diff_column_truncate_at. */ + public row_diff_column_truncate_at: (number|Long); /** - * Creates a new UpdateVReplicationWorkflowsRequest instance using the specified properties. + * Creates a new VDiffReportOptions instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateVReplicationWorkflowsRequest instance + * @returns VDiffReportOptions instance */ - public static create(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowsRequest): tabletmanagerdata.UpdateVReplicationWorkflowsRequest; + public static create(properties?: tabletmanagerdata.IVDiffReportOptions): tabletmanagerdata.VDiffReportOptions; /** - * Encodes the specified UpdateVReplicationWorkflowsRequest message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsRequest.verify|verify} messages. - * @param message UpdateVReplicationWorkflowsRequest message or plain object to encode + * Encodes the specified VDiffReportOptions message. Does not implicitly {@link tabletmanagerdata.VDiffReportOptions.verify|verify} messages. + * @param message VDiffReportOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IUpdateVReplicationWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IVDiffReportOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateVReplicationWorkflowsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsRequest.verify|verify} messages. - * @param message UpdateVReplicationWorkflowsRequest message or plain object to encode + * Encodes the specified VDiffReportOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffReportOptions.verify|verify} messages. + * @param message VDiffReportOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IUpdateVReplicationWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IVDiffReportOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateVReplicationWorkflowsRequest message from the specified reader or buffer. + * Decodes a VDiffReportOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateVReplicationWorkflowsRequest + * @returns VDiffReportOptions * @throws {Error} If the payload is 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.UpdateVReplicationWorkflowsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.VDiffReportOptions; /** - * Decodes an UpdateVReplicationWorkflowsRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffReportOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateVReplicationWorkflowsRequest + * @returns VDiffReportOptions * @throws {Error} If the 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.UpdateVReplicationWorkflowsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.VDiffReportOptions; /** - * Verifies an UpdateVReplicationWorkflowsRequest message. + * Verifies a VDiffReportOptions message. * @param message Plain 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 UpdateVReplicationWorkflowsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffReportOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateVReplicationWorkflowsRequest + * @returns VDiffReportOptions */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UpdateVReplicationWorkflowsRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffReportOptions; /** - * Creates a plain object from an UpdateVReplicationWorkflowsRequest message. Also converts values to other types if specified. - * @param message UpdateVReplicationWorkflowsRequest + * Creates a plain object from a VDiffReportOptions message. Also converts values to other types if specified. + * @param message VDiffReportOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.UpdateVReplicationWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.VDiffReportOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateVReplicationWorkflowsRequest to JSON. + * Converts this VDiffReportOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateVReplicationWorkflowsRequest + * Gets the default type url for VDiffReportOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateVReplicationWorkflowsResponse. */ - interface IUpdateVReplicationWorkflowsResponse { + /** Properties of a VDiffCoreOptions. */ + interface IVDiffCoreOptions { - /** UpdateVReplicationWorkflowsResponse result */ - result?: (query.IQueryResult|null); + /** VDiffCoreOptions tables */ + tables?: (string|null); + + /** VDiffCoreOptions auto_retry */ + auto_retry?: (boolean|null); + + /** VDiffCoreOptions max_rows */ + max_rows?: (number|Long|null); + + /** VDiffCoreOptions checksum */ + checksum?: (boolean|null); + + /** VDiffCoreOptions sample_pct */ + sample_pct?: (number|Long|null); + + /** VDiffCoreOptions timeout_seconds */ + timeout_seconds?: (number|Long|null); + + /** VDiffCoreOptions max_extra_rows_to_compare */ + max_extra_rows_to_compare?: (number|Long|null); + + /** VDiffCoreOptions update_table_stats */ + update_table_stats?: (boolean|null); + + /** VDiffCoreOptions max_diff_seconds */ + max_diff_seconds?: (number|Long|null); + + /** VDiffCoreOptions auto_start */ + auto_start?: (boolean|null); } - /** Represents an UpdateVReplicationWorkflowsResponse. */ - class UpdateVReplicationWorkflowsResponse implements IUpdateVReplicationWorkflowsResponse { + /** Represents a VDiffCoreOptions. */ + class VDiffCoreOptions implements IVDiffCoreOptions { /** - * Constructs a new UpdateVReplicationWorkflowsResponse. + * Constructs a new VDiffCoreOptions. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowsResponse); + constructor(properties?: tabletmanagerdata.IVDiffCoreOptions); - /** UpdateVReplicationWorkflowsResponse result. */ - public result?: (query.IQueryResult|null); + /** VDiffCoreOptions tables. */ + public tables: string; - /** - * Creates a new UpdateVReplicationWorkflowsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateVReplicationWorkflowsResponse instance - */ - public static create(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowsResponse): tabletmanagerdata.UpdateVReplicationWorkflowsResponse; + /** VDiffCoreOptions auto_retry. */ + public auto_retry: boolean; - /** - * Encodes the specified UpdateVReplicationWorkflowsResponse message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsResponse.verify|verify} messages. - * @param message UpdateVReplicationWorkflowsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tabletmanagerdata.IUpdateVReplicationWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** VDiffCoreOptions max_rows. */ + public max_rows: (number|Long); - /** - * Encodes the specified UpdateVReplicationWorkflowsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsResponse.verify|verify} messages. - * @param message UpdateVReplicationWorkflowsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tabletmanagerdata.IUpdateVReplicationWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** VDiffCoreOptions checksum. */ + public checksum: boolean; - /** - * Decodes an UpdateVReplicationWorkflowsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from + /** VDiffCoreOptions sample_pct. */ + public sample_pct: (number|Long); + + /** VDiffCoreOptions timeout_seconds. */ + public timeout_seconds: (number|Long); + + /** VDiffCoreOptions max_extra_rows_to_compare. */ + public max_extra_rows_to_compare: (number|Long); + + /** VDiffCoreOptions update_table_stats. */ + public update_table_stats: boolean; + + /** VDiffCoreOptions max_diff_seconds. */ + public max_diff_seconds: (number|Long); + + /** VDiffCoreOptions auto_start. */ + public auto_start?: (boolean|null); + + /** + * Creates a new VDiffCoreOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffCoreOptions instance + */ + public static create(properties?: tabletmanagerdata.IVDiffCoreOptions): tabletmanagerdata.VDiffCoreOptions; + + /** + * Encodes the specified VDiffCoreOptions message. Does not implicitly {@link tabletmanagerdata.VDiffCoreOptions.verify|verify} messages. + * @param message VDiffCoreOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tabletmanagerdata.IVDiffCoreOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffCoreOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffCoreOptions.verify|verify} messages. + * @param message VDiffCoreOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.IVDiffCoreOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffCoreOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateVReplicationWorkflowsResponse + * @returns VDiffCoreOptions * @throws {Error} If the payload is 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.UpdateVReplicationWorkflowsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.VDiffCoreOptions; /** - * Decodes an UpdateVReplicationWorkflowsResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffCoreOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateVReplicationWorkflowsResponse + * @returns VDiffCoreOptions * @throws {Error} If the 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.UpdateVReplicationWorkflowsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.VDiffCoreOptions; /** - * Verifies an UpdateVReplicationWorkflowsResponse message. + * Verifies a VDiffCoreOptions message. * @param message Plain 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 UpdateVReplicationWorkflowsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffCoreOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateVReplicationWorkflowsResponse + * @returns VDiffCoreOptions */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UpdateVReplicationWorkflowsResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffCoreOptions; /** - * Creates a plain object from an UpdateVReplicationWorkflowsResponse message. Also converts values to other types if specified. - * @param message UpdateVReplicationWorkflowsResponse + * Creates a plain object from a VDiffCoreOptions message. Also converts values to other types if specified. + * @param message VDiffCoreOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.UpdateVReplicationWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.VDiffCoreOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateVReplicationWorkflowsResponse to JSON. + * Converts this VDiffCoreOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateVReplicationWorkflowsResponse + * Gets the default type url for VDiffCoreOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResetSequencesRequest. */ - interface IResetSequencesRequest { + /** Properties of a VDiffOptions. */ + interface IVDiffOptions { - /** ResetSequencesRequest tables */ - tables?: (string[]|null); + /** VDiffOptions picker_options */ + picker_options?: (tabletmanagerdata.IVDiffPickerOptions|null); + + /** VDiffOptions core_options */ + core_options?: (tabletmanagerdata.IVDiffCoreOptions|null); + + /** VDiffOptions report_options */ + report_options?: (tabletmanagerdata.IVDiffReportOptions|null); } - /** Represents a ResetSequencesRequest. */ - class ResetSequencesRequest implements IResetSequencesRequest { + /** Represents a VDiffOptions. */ + class VDiffOptions implements IVDiffOptions { /** - * Constructs a new ResetSequencesRequest. + * Constructs a new VDiffOptions. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IResetSequencesRequest); + constructor(properties?: tabletmanagerdata.IVDiffOptions); - /** ResetSequencesRequest tables. */ - public tables: string[]; + /** VDiffOptions picker_options. */ + public picker_options?: (tabletmanagerdata.IVDiffPickerOptions|null); + + /** VDiffOptions core_options. */ + public core_options?: (tabletmanagerdata.IVDiffCoreOptions|null); + + /** VDiffOptions report_options. */ + public report_options?: (tabletmanagerdata.IVDiffReportOptions|null); /** - * Creates a new ResetSequencesRequest instance using the specified properties. + * Creates a new VDiffOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ResetSequencesRequest instance + * @returns VDiffOptions instance */ - public static create(properties?: tabletmanagerdata.IResetSequencesRequest): tabletmanagerdata.ResetSequencesRequest; + public static create(properties?: tabletmanagerdata.IVDiffOptions): tabletmanagerdata.VDiffOptions; /** - * Encodes the specified ResetSequencesRequest message. Does not implicitly {@link tabletmanagerdata.ResetSequencesRequest.verify|verify} messages. - * @param message ResetSequencesRequest message or plain object to encode + * Encodes the specified VDiffOptions message. Does not implicitly {@link tabletmanagerdata.VDiffOptions.verify|verify} messages. + * @param message VDiffOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IResetSequencesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IVDiffOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResetSequencesRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetSequencesRequest.verify|verify} messages. - * @param message ResetSequencesRequest message or plain object to encode + * Encodes the specified VDiffOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffOptions.verify|verify} messages. + * @param message VDiffOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IResetSequencesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IVDiffOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResetSequencesRequest message from the specified reader or buffer. + * Decodes a VDiffOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResetSequencesRequest + * @returns VDiffOptions * @throws {Error} If the payload is 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.ResetSequencesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.VDiffOptions; /** - * Decodes a ResetSequencesRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResetSequencesRequest + * @returns VDiffOptions * @throws {Error} If the 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.ResetSequencesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.VDiffOptions; /** - * Verifies a ResetSequencesRequest message. + * Verifies a VDiffOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResetSequencesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResetSequencesRequest + * @returns VDiffOptions */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ResetSequencesRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffOptions; /** - * Creates a plain object from a ResetSequencesRequest message. Also converts values to other types if specified. - * @param message ResetSequencesRequest + * Creates a plain object from a VDiffOptions message. Also converts values to other types if specified. + * @param message VDiffOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ResetSequencesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.VDiffOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResetSequencesRequest to JSON. + * Converts this VDiffOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResetSequencesRequest + * Gets the default type url for VDiffOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResetSequencesResponse. */ - interface IResetSequencesResponse { + /** Properties of a VDiffTableLastPK. */ + interface IVDiffTableLastPK { + + /** VDiffTableLastPK target */ + target?: (query.IQueryResult|null); + + /** VDiffTableLastPK source */ + source?: (query.IQueryResult|null); } - /** Represents a ResetSequencesResponse. */ - class ResetSequencesResponse implements IResetSequencesResponse { + /** Represents a VDiffTableLastPK. */ + class VDiffTableLastPK implements IVDiffTableLastPK { /** - * Constructs a new ResetSequencesResponse. + * Constructs a new VDiffTableLastPK. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IResetSequencesResponse); + constructor(properties?: tabletmanagerdata.IVDiffTableLastPK); + + /** VDiffTableLastPK target. */ + public target?: (query.IQueryResult|null); + + /** VDiffTableLastPK source. */ + public source?: (query.IQueryResult|null); /** - * Creates a new ResetSequencesResponse instance using the specified properties. + * Creates a new VDiffTableLastPK instance using the specified properties. * @param [properties] Properties to set - * @returns ResetSequencesResponse instance + * @returns VDiffTableLastPK instance */ - public static create(properties?: tabletmanagerdata.IResetSequencesResponse): tabletmanagerdata.ResetSequencesResponse; + public static create(properties?: tabletmanagerdata.IVDiffTableLastPK): tabletmanagerdata.VDiffTableLastPK; /** - * Encodes the specified ResetSequencesResponse message. Does not implicitly {@link tabletmanagerdata.ResetSequencesResponse.verify|verify} messages. - * @param message ResetSequencesResponse message or plain object to encode + * Encodes the specified VDiffTableLastPK message. Does not implicitly {@link tabletmanagerdata.VDiffTableLastPK.verify|verify} messages. + * @param message VDiffTableLastPK message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IResetSequencesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IVDiffTableLastPK, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResetSequencesResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetSequencesResponse.verify|verify} messages. - * @param message ResetSequencesResponse message or plain object to encode + * Encodes the specified VDiffTableLastPK message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffTableLastPK.verify|verify} messages. + * @param message VDiffTableLastPK message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IResetSequencesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IVDiffTableLastPK, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResetSequencesResponse message from the specified reader or buffer. + * Decodes a VDiffTableLastPK message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResetSequencesResponse + * @returns VDiffTableLastPK * @throws {Error} If the payload is 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.ResetSequencesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.VDiffTableLastPK; /** - * Decodes a ResetSequencesResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffTableLastPK message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResetSequencesResponse + * @returns VDiffTableLastPK * @throws {Error} If the 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.ResetSequencesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.VDiffTableLastPK; /** - * Verifies a ResetSequencesResponse message. + * Verifies a VDiffTableLastPK message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResetSequencesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffTableLastPK message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResetSequencesResponse + * @returns VDiffTableLastPK */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ResetSequencesResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.VDiffTableLastPK; /** - * Creates a plain object from a ResetSequencesResponse message. Also converts values to other types if specified. - * @param message ResetSequencesResponse + * Creates a plain object from a VDiffTableLastPK message. Also converts values to other types if specified. + * @param message VDiffTableLastPK * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.ResetSequencesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.VDiffTableLastPK, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResetSequencesResponse to JSON. + * Converts this VDiffTableLastPK to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResetSequencesResponse + * Gets the default type url for VDiffTableLastPK * @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 { + /** Properties of an UpdateVReplicationWorkflowRequest. */ + interface IUpdateVReplicationWorkflowRequest { - /** CheckThrottlerRequest app_name */ - app_name?: (string|null); + /** UpdateVReplicationWorkflowRequest workflow */ + workflow?: (string|null); - /** CheckThrottlerRequest scope */ - scope?: (string|null); + /** UpdateVReplicationWorkflowRequest cells */ + cells?: (string[]|null); - /** CheckThrottlerRequest skip_request_heartbeats */ - skip_request_heartbeats?: (boolean|null); + /** UpdateVReplicationWorkflowRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); - /** CheckThrottlerRequest ok_if_not_exists */ - ok_if_not_exists?: (boolean|null); + /** UpdateVReplicationWorkflowRequest tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + + /** UpdateVReplicationWorkflowRequest on_ddl */ + on_ddl?: (binlogdata.OnDDLAction|null); + + /** UpdateVReplicationWorkflowRequest state */ + state?: (binlogdata.VReplicationWorkflowState|null); + + /** UpdateVReplicationWorkflowRequest shards */ + shards?: (string[]|null); + + /** UpdateVReplicationWorkflowRequest config_overrides */ + config_overrides?: ({ [k: string]: string }|null); + + /** UpdateVReplicationWorkflowRequest message */ + message?: (string|null); } - /** Represents a CheckThrottlerRequest. */ - class CheckThrottlerRequest implements ICheckThrottlerRequest { + /** Represents an UpdateVReplicationWorkflowRequest. */ + class UpdateVReplicationWorkflowRequest implements IUpdateVReplicationWorkflowRequest { /** - * Constructs a new CheckThrottlerRequest. + * Constructs a new UpdateVReplicationWorkflowRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ICheckThrottlerRequest); + constructor(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowRequest); - /** CheckThrottlerRequest app_name. */ - public app_name: string; + /** UpdateVReplicationWorkflowRequest workflow. */ + public workflow: string; - /** CheckThrottlerRequest scope. */ - public scope: string; + /** UpdateVReplicationWorkflowRequest cells. */ + public cells: string[]; - /** CheckThrottlerRequest skip_request_heartbeats. */ - public skip_request_heartbeats: boolean; + /** UpdateVReplicationWorkflowRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; - /** CheckThrottlerRequest ok_if_not_exists. */ - public ok_if_not_exists: boolean; + /** UpdateVReplicationWorkflowRequest tablet_selection_preference. */ + public tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + + /** UpdateVReplicationWorkflowRequest on_ddl. */ + public on_ddl?: (binlogdata.OnDDLAction|null); + + /** UpdateVReplicationWorkflowRequest state. */ + public state?: (binlogdata.VReplicationWorkflowState|null); + + /** UpdateVReplicationWorkflowRequest shards. */ + public shards: string[]; + + /** UpdateVReplicationWorkflowRequest config_overrides. */ + public config_overrides: { [k: string]: string }; + + /** UpdateVReplicationWorkflowRequest message. */ + public message?: (string|null); /** - * Creates a new CheckThrottlerRequest instance using the specified properties. + * Creates a new UpdateVReplicationWorkflowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CheckThrottlerRequest instance + * @returns UpdateVReplicationWorkflowRequest instance */ - public static create(properties?: tabletmanagerdata.ICheckThrottlerRequest): tabletmanagerdata.CheckThrottlerRequest; + public static create(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowRequest): tabletmanagerdata.UpdateVReplicationWorkflowRequest; /** - * Encodes the specified CheckThrottlerRequest message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerRequest.verify|verify} messages. - * @param message CheckThrottlerRequest message or plain object to encode + * Encodes the specified UpdateVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowRequest.verify|verify} messages. + * @param message UpdateVReplicationWorkflowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.ICheckThrottlerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IUpdateVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CheckThrottlerRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerRequest.verify|verify} messages. - * @param message CheckThrottlerRequest message or plain object to encode + * Encodes the specified UpdateVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowRequest.verify|verify} messages. + * @param message UpdateVReplicationWorkflowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.ICheckThrottlerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IUpdateVReplicationWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CheckThrottlerRequest message from the specified reader or buffer. + * Decodes an UpdateVReplicationWorkflowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CheckThrottlerRequest + * @returns UpdateVReplicationWorkflowRequest * @throws {Error} If the payload is 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.CheckThrottlerRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.UpdateVReplicationWorkflowRequest; /** - * Decodes a CheckThrottlerRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CheckThrottlerRequest + * @returns UpdateVReplicationWorkflowRequest * @throws {Error} If the 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.CheckThrottlerRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.UpdateVReplicationWorkflowRequest; /** - * Verifies a CheckThrottlerRequest message. + * Verifies an UpdateVReplicationWorkflowRequest message. * @param message Plain object 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. + * Creates an UpdateVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CheckThrottlerRequest + * @returns UpdateVReplicationWorkflowRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.CheckThrottlerRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UpdateVReplicationWorkflowRequest; /** - * Creates a plain object from a CheckThrottlerRequest message. Also converts values to other types if specified. - * @param message CheckThrottlerRequest + * Creates a plain object from an UpdateVReplicationWorkflowRequest message. Also converts values to other types if specified. + * @param message UpdateVReplicationWorkflowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.CheckThrottlerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.UpdateVReplicationWorkflowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CheckThrottlerRequest to JSON. + * Converts this UpdateVReplicationWorkflowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CheckThrottlerRequest + * Gets the default type url for UpdateVReplicationWorkflowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** CheckThrottlerResponseCode enum. */ - enum CheckThrottlerResponseCode { - UNDEFINED = 0, - OK = 1, - THRESHOLD_EXCEEDED = 2, - APP_DENIED = 3, - UNKNOWN_METRIC = 4, - INTERNAL_ERROR = 5 - } - - /** Properties of a CheckThrottlerResponse. */ - interface ICheckThrottlerResponse { - - /** CheckThrottlerResponse value */ - value?: (number|null); - - /** CheckThrottlerResponse threshold */ - threshold?: (number|null); - - /** CheckThrottlerResponse error */ - error?: (string|null); - - /** CheckThrottlerResponse message */ - message?: (string|null); - - /** CheckThrottlerResponse recently_checked */ - recently_checked?: (boolean|null); - - /** CheckThrottlerResponse metrics */ - metrics?: ({ [k: string]: tabletmanagerdata.CheckThrottlerResponse.IMetric }|null); - - /** CheckThrottlerResponse app_name */ - app_name?: (string|null); - - /** CheckThrottlerResponse summary */ - summary?: (string|null); + /** Properties of an UpdateVReplicationWorkflowResponse. */ + interface IUpdateVReplicationWorkflowResponse { - /** CheckThrottlerResponse response_code */ - response_code?: (tabletmanagerdata.CheckThrottlerResponseCode|null); + /** UpdateVReplicationWorkflowResponse result */ + result?: (query.IQueryResult|null); } - /** Represents a CheckThrottlerResponse. */ - class CheckThrottlerResponse implements ICheckThrottlerResponse { + /** Represents an UpdateVReplicationWorkflowResponse. */ + class UpdateVReplicationWorkflowResponse implements IUpdateVReplicationWorkflowResponse { /** - * Constructs a new CheckThrottlerResponse. + * Constructs a new UpdateVReplicationWorkflowResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ICheckThrottlerResponse); - - /** CheckThrottlerResponse value. */ - public value: number; - - /** CheckThrottlerResponse threshold. */ - public threshold: number; - - /** CheckThrottlerResponse error. */ - public error: string; - - /** CheckThrottlerResponse message. */ - public message: string; - - /** CheckThrottlerResponse recently_checked. */ - public recently_checked: boolean; - - /** CheckThrottlerResponse metrics. */ - public metrics: { [k: string]: tabletmanagerdata.CheckThrottlerResponse.IMetric }; - - /** CheckThrottlerResponse app_name. */ - public app_name: string; - - /** CheckThrottlerResponse summary. */ - public summary: string; + constructor(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowResponse); - /** CheckThrottlerResponse response_code. */ - public response_code: tabletmanagerdata.CheckThrottlerResponseCode; + /** UpdateVReplicationWorkflowResponse result. */ + public result?: (query.IQueryResult|null); /** - * Creates a new CheckThrottlerResponse instance using the specified properties. + * Creates a new UpdateVReplicationWorkflowResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CheckThrottlerResponse instance + * @returns UpdateVReplicationWorkflowResponse instance */ - public static create(properties?: tabletmanagerdata.ICheckThrottlerResponse): tabletmanagerdata.CheckThrottlerResponse; + public static create(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowResponse): tabletmanagerdata.UpdateVReplicationWorkflowResponse; /** - * Encodes the specified CheckThrottlerResponse message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.verify|verify} messages. - * @param message CheckThrottlerResponse message or plain object to encode + * Encodes the specified UpdateVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowResponse.verify|verify} messages. + * @param message UpdateVReplicationWorkflowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.ICheckThrottlerResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IUpdateVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CheckThrottlerResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.verify|verify} messages. - * @param message CheckThrottlerResponse message or plain object to encode + * Encodes the specified UpdateVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowResponse.verify|verify} messages. + * @param message UpdateVReplicationWorkflowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.ICheckThrottlerResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IUpdateVReplicationWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CheckThrottlerResponse message from the specified reader or buffer. + * Decodes an UpdateVReplicationWorkflowResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CheckThrottlerResponse + * @returns UpdateVReplicationWorkflowResponse * @throws {Error} If the payload is 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.CheckThrottlerResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.UpdateVReplicationWorkflowResponse; /** - * Decodes a CheckThrottlerResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CheckThrottlerResponse + * @returns UpdateVReplicationWorkflowResponse * @throws {Error} If the 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.CheckThrottlerResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.UpdateVReplicationWorkflowResponse; /** - * Verifies a CheckThrottlerResponse message. + * Verifies an UpdateVReplicationWorkflowResponse message. * @param message Plain object 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. + * Creates an UpdateVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CheckThrottlerResponse + * @returns UpdateVReplicationWorkflowResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.CheckThrottlerResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UpdateVReplicationWorkflowResponse; /** - * Creates a plain object from a CheckThrottlerResponse message. Also converts values to other types if specified. - * @param message CheckThrottlerResponse + * Creates a plain object from an UpdateVReplicationWorkflowResponse message. Also converts values to other types if specified. + * @param message UpdateVReplicationWorkflowResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.CheckThrottlerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.UpdateVReplicationWorkflowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CheckThrottlerResponse to JSON. + * Converts this UpdateVReplicationWorkflowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CheckThrottlerResponse + * Gets the default type url for UpdateVReplicationWorkflowResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace CheckThrottlerResponse { + /** Properties of an UpdateVReplicationWorkflowsRequest. */ + interface IUpdateVReplicationWorkflowsRequest { - /** Properties of a Metric. */ - interface IMetric { + /** UpdateVReplicationWorkflowsRequest all_workflows */ + all_workflows?: (boolean|null); - /** Metric name */ - name?: (string|null); + /** UpdateVReplicationWorkflowsRequest include_workflows */ + include_workflows?: (string[]|null); - /** Metric value */ - value?: (number|null); + /** UpdateVReplicationWorkflowsRequest exclude_workflows */ + exclude_workflows?: (string[]|null); - /** Metric threshold */ - threshold?: (number|null); + /** UpdateVReplicationWorkflowsRequest state */ + state?: (binlogdata.VReplicationWorkflowState|null); - /** Metric error */ - error?: (string|null); + /** UpdateVReplicationWorkflowsRequest message */ + message?: (string|null); - /** Metric message */ - message?: (string|null); + /** UpdateVReplicationWorkflowsRequest stop_position */ + stop_position?: (string|null); + } - /** Metric scope */ - scope?: (string|null); + /** Represents an UpdateVReplicationWorkflowsRequest. */ + class UpdateVReplicationWorkflowsRequest implements IUpdateVReplicationWorkflowsRequest { - /** Metric response_code */ - response_code?: (tabletmanagerdata.CheckThrottlerResponseCode|null); - } + /** + * Constructs a new UpdateVReplicationWorkflowsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowsRequest); - /** Represents a Metric. */ - class Metric implements IMetric { - - /** - * Constructs a new Metric. - * @param [properties] Properties to set - */ - constructor(properties?: tabletmanagerdata.CheckThrottlerResponse.IMetric); - - /** Metric name. */ - public name: string; - - /** Metric value. */ - public value: number; + /** UpdateVReplicationWorkflowsRequest all_workflows. */ + public all_workflows: boolean; - /** Metric threshold. */ - public threshold: number; + /** UpdateVReplicationWorkflowsRequest include_workflows. */ + public include_workflows: string[]; - /** Metric error. */ - public error: string; + /** UpdateVReplicationWorkflowsRequest exclude_workflows. */ + public exclude_workflows: string[]; - /** Metric message. */ - public message: string; + /** UpdateVReplicationWorkflowsRequest state. */ + public state?: (binlogdata.VReplicationWorkflowState|null); - /** Metric scope. */ - public scope: string; + /** UpdateVReplicationWorkflowsRequest message. */ + public message?: (string|null); - /** Metric response_code. */ - public response_code: tabletmanagerdata.CheckThrottlerResponseCode; + /** UpdateVReplicationWorkflowsRequest stop_position. */ + public stop_position?: (string|null); - /** - * Creates a new Metric instance using the specified properties. - * @param [properties] Properties to set - * @returns Metric instance - */ - public static create(properties?: tabletmanagerdata.CheckThrottlerResponse.IMetric): tabletmanagerdata.CheckThrottlerResponse.Metric; + /** + * Creates a new UpdateVReplicationWorkflowsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateVReplicationWorkflowsRequest instance + */ + public static create(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowsRequest): tabletmanagerdata.UpdateVReplicationWorkflowsRequest; - /** - * Encodes the specified Metric message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tabletmanagerdata.CheckThrottlerResponse.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateVReplicationWorkflowsRequest message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsRequest.verify|verify} messages. + * @param message UpdateVReplicationWorkflowsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tabletmanagerdata.IUpdateVReplicationWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tabletmanagerdata.CheckThrottlerResponse.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateVReplicationWorkflowsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsRequest.verify|verify} messages. + * @param message UpdateVReplicationWorkflowsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.IUpdateVReplicationWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Metric message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Metric - * @throws {Error} If the payload is 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.CheckThrottlerResponse.Metric; + /** + * Decodes an UpdateVReplicationWorkflowsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateVReplicationWorkflowsRequest + * @throws {Error} If the payload is 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.UpdateVReplicationWorkflowsRequest; - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Metric - * @throws {Error} If the 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.CheckThrottlerResponse.Metric; + /** + * Decodes an UpdateVReplicationWorkflowsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateVReplicationWorkflowsRequest + * @throws {Error} If the 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.UpdateVReplicationWorkflowsRequest; - /** - * Verifies a Metric message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies an UpdateVReplicationWorkflowsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Metric - */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.CheckThrottlerResponse.Metric; + /** + * Creates an UpdateVReplicationWorkflowsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateVReplicationWorkflowsRequest + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UpdateVReplicationWorkflowsRequest; - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @param message Metric - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tabletmanagerdata.CheckThrottlerResponse.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an UpdateVReplicationWorkflowsRequest message. Also converts values to other types if specified. + * @param message UpdateVReplicationWorkflowsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.UpdateVReplicationWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Metric to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this UpdateVReplicationWorkflowsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for Metric - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for UpdateVReplicationWorkflowsRequest + * @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 { + /** Properties of an UpdateVReplicationWorkflowsResponse. */ + interface IUpdateVReplicationWorkflowsResponse { + + /** UpdateVReplicationWorkflowsResponse result */ + result?: (query.IQueryResult|null); } - /** Represents a GetThrottlerStatusRequest. */ - class GetThrottlerStatusRequest implements IGetThrottlerStatusRequest { + /** Represents an UpdateVReplicationWorkflowsResponse. */ + class UpdateVReplicationWorkflowsResponse implements IUpdateVReplicationWorkflowsResponse { /** - * Constructs a new GetThrottlerStatusRequest. + * Constructs a new UpdateVReplicationWorkflowsResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetThrottlerStatusRequest); + constructor(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowsResponse); + + /** UpdateVReplicationWorkflowsResponse result. */ + public result?: (query.IQueryResult|null); /** - * Creates a new GetThrottlerStatusRequest instance using the specified properties. + * Creates a new UpdateVReplicationWorkflowsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetThrottlerStatusRequest instance + * @returns UpdateVReplicationWorkflowsResponse instance */ - public static create(properties?: tabletmanagerdata.IGetThrottlerStatusRequest): tabletmanagerdata.GetThrottlerStatusRequest; + public static create(properties?: tabletmanagerdata.IUpdateVReplicationWorkflowsResponse): tabletmanagerdata.UpdateVReplicationWorkflowsResponse; /** - * Encodes the specified GetThrottlerStatusRequest message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusRequest.verify|verify} messages. - * @param message GetThrottlerStatusRequest message or plain object to encode + * Encodes the specified UpdateVReplicationWorkflowsResponse message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsResponse.verify|verify} messages. + * @param message UpdateVReplicationWorkflowsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IGetThrottlerStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IUpdateVReplicationWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetThrottlerStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusRequest.verify|verify} messages. - * @param message GetThrottlerStatusRequest message or plain object to encode + * Encodes the specified UpdateVReplicationWorkflowsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsResponse.verify|verify} messages. + * @param message UpdateVReplicationWorkflowsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IGetThrottlerStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IUpdateVReplicationWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer. + * Decodes an UpdateVReplicationWorkflowsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetThrottlerStatusRequest + * @returns UpdateVReplicationWorkflowsResponse * @throws {Error} If the payload is 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.GetThrottlerStatusRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.UpdateVReplicationWorkflowsResponse; /** - * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateVReplicationWorkflowsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetThrottlerStatusRequest + * @returns UpdateVReplicationWorkflowsResponse * @throws {Error} If the 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.GetThrottlerStatusRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.UpdateVReplicationWorkflowsResponse; /** - * Verifies a GetThrottlerStatusRequest message. + * Verifies an UpdateVReplicationWorkflowsResponse message. * @param message Plain object 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. + * Creates an UpdateVReplicationWorkflowsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetThrottlerStatusRequest + * @returns UpdateVReplicationWorkflowsResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetThrottlerStatusRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UpdateVReplicationWorkflowsResponse; /** - * Creates a plain object from a GetThrottlerStatusRequest message. Also converts values to other types if specified. - * @param message GetThrottlerStatusRequest + * Creates a plain object from an UpdateVReplicationWorkflowsResponse message. Also converts values to other types if specified. + * @param message UpdateVReplicationWorkflowsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.GetThrottlerStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.UpdateVReplicationWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetThrottlerStatusRequest to JSON. + * Converts this UpdateVReplicationWorkflowsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetThrottlerStatusRequest + * Gets the default type url for UpdateVReplicationWorkflowsResponse * @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 tablet_alias */ - tablet_alias?: (string|null); - - /** GetThrottlerStatusResponse keyspace */ - keyspace?: (string|null); - - /** GetThrottlerStatusResponse shard */ - shard?: (string|null); - - /** GetThrottlerStatusResponse is_leader */ - is_leader?: (boolean|null); - - /** GetThrottlerStatusResponse is_open */ - is_open?: (boolean|null); - - /** GetThrottlerStatusResponse is_enabled */ - is_enabled?: (boolean|null); - - /** GetThrottlerStatusResponse is_dormant */ - is_dormant?: (boolean|null); - - /** GetThrottlerStatusResponse lag_metric_query */ - lag_metric_query?: (string|null); - - /** GetThrottlerStatusResponse custom_metric_query */ - custom_metric_query?: (string|null); - - /** GetThrottlerStatusResponse default_threshold */ - default_threshold?: (number|null); - - /** GetThrottlerStatusResponse metric_name_used_as_default */ - metric_name_used_as_default?: (string|null); - - /** GetThrottlerStatusResponse aggregated_metrics */ - aggregated_metrics?: ({ [k: string]: tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult }|null); - - /** GetThrottlerStatusResponse metric_thresholds */ - metric_thresholds?: ({ [k: string]: number }|null); - - /** GetThrottlerStatusResponse metrics_health */ - metrics_health?: ({ [k: string]: tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth }|null); - - /** GetThrottlerStatusResponse throttled_apps */ - throttled_apps?: ({ [k: string]: topodata.IThrottledAppRule }|null); - - /** GetThrottlerStatusResponse app_checked_metrics */ - app_checked_metrics?: ({ [k: string]: string }|null); - - /** GetThrottlerStatusResponse recently_checked */ - recently_checked?: (boolean|null); + /** Properties of a ResetSequencesRequest. */ + interface IResetSequencesRequest { - /** GetThrottlerStatusResponse recent_apps */ - recent_apps?: ({ [k: string]: tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp }|null); + /** ResetSequencesRequest tables */ + tables?: (string[]|null); } - /** Represents a GetThrottlerStatusResponse. */ - class GetThrottlerStatusResponse implements IGetThrottlerStatusResponse { + /** Represents a ResetSequencesRequest. */ + class ResetSequencesRequest implements IResetSequencesRequest { /** - * Constructs a new GetThrottlerStatusResponse. + * Constructs a new ResetSequencesRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetThrottlerStatusResponse); - - /** GetThrottlerStatusResponse tablet_alias. */ - public tablet_alias: string; - - /** GetThrottlerStatusResponse keyspace. */ - public keyspace: string; - - /** GetThrottlerStatusResponse shard. */ - public shard: string; - - /** GetThrottlerStatusResponse is_leader. */ - public is_leader: boolean; + constructor(properties?: tabletmanagerdata.IResetSequencesRequest); - /** GetThrottlerStatusResponse is_open. */ - public is_open: boolean; + /** ResetSequencesRequest tables. */ + public tables: string[]; - /** GetThrottlerStatusResponse is_enabled. */ - public is_enabled: boolean; + /** + * Creates a new ResetSequencesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ResetSequencesRequest instance + */ + public static create(properties?: tabletmanagerdata.IResetSequencesRequest): tabletmanagerdata.ResetSequencesRequest; - /** GetThrottlerStatusResponse is_dormant. */ - public is_dormant: boolean; + /** + * Encodes the specified ResetSequencesRequest message. Does not implicitly {@link tabletmanagerdata.ResetSequencesRequest.verify|verify} messages. + * @param message ResetSequencesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tabletmanagerdata.IResetSequencesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** GetThrottlerStatusResponse lag_metric_query. */ - public lag_metric_query: string; + /** + * Encodes the specified ResetSequencesRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetSequencesRequest.verify|verify} messages. + * @param message ResetSequencesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.IResetSequencesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** GetThrottlerStatusResponse custom_metric_query. */ - public custom_metric_query: string; + /** + * Decodes a ResetSequencesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResetSequencesRequest + * @throws {Error} If the payload is 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.ResetSequencesRequest; - /** GetThrottlerStatusResponse default_threshold. */ - public default_threshold: number; + /** + * Decodes a ResetSequencesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResetSequencesRequest + * @throws {Error} If the 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.ResetSequencesRequest; - /** GetThrottlerStatusResponse metric_name_used_as_default. */ - public metric_name_used_as_default: string; + /** + * Verifies a ResetSequencesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** GetThrottlerStatusResponse aggregated_metrics. */ - public aggregated_metrics: { [k: string]: tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult }; + /** + * Creates a ResetSequencesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResetSequencesRequest + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ResetSequencesRequest; - /** GetThrottlerStatusResponse metric_thresholds. */ - public metric_thresholds: { [k: string]: number }; + /** + * Creates a plain object from a ResetSequencesRequest message. Also converts values to other types if specified. + * @param message ResetSequencesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.ResetSequencesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** GetThrottlerStatusResponse metrics_health. */ - public metrics_health: { [k: string]: tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth }; + /** + * Converts this ResetSequencesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** GetThrottlerStatusResponse throttled_apps. */ - public throttled_apps: { [k: string]: topodata.IThrottledAppRule }; + /** + * Gets the default type url for ResetSequencesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** GetThrottlerStatusResponse app_checked_metrics. */ - public app_checked_metrics: { [k: string]: string }; + /** Properties of a ResetSequencesResponse. */ + interface IResetSequencesResponse { + } - /** GetThrottlerStatusResponse recently_checked. */ - public recently_checked: boolean; + /** Represents a ResetSequencesResponse. */ + class ResetSequencesResponse implements IResetSequencesResponse { - /** GetThrottlerStatusResponse recent_apps. */ - public recent_apps: { [k: string]: tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp }; + /** + * Constructs a new ResetSequencesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.IResetSequencesResponse); /** - * Creates a new GetThrottlerStatusResponse instance using the specified properties. + * Creates a new ResetSequencesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetThrottlerStatusResponse instance + * @returns ResetSequencesResponse instance */ - public static create(properties?: tabletmanagerdata.IGetThrottlerStatusResponse): tabletmanagerdata.GetThrottlerStatusResponse; + public static create(properties?: tabletmanagerdata.IResetSequencesResponse): tabletmanagerdata.ResetSequencesResponse; /** - * Encodes the specified GetThrottlerStatusResponse message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.verify|verify} messages. - * @param message GetThrottlerStatusResponse message or plain object to encode + * Encodes the specified ResetSequencesResponse message. Does not implicitly {@link tabletmanagerdata.ResetSequencesResponse.verify|verify} messages. + * @param message ResetSequencesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tabletmanagerdata.IGetThrottlerStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IResetSequencesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetThrottlerStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.verify|verify} messages. - * @param message GetThrottlerStatusResponse message or plain object to encode + * Encodes the specified ResetSequencesResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetSequencesResponse.verify|verify} messages. + * @param message ResetSequencesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tabletmanagerdata.IGetThrottlerStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IResetSequencesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer. + * Decodes a ResetSequencesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetThrottlerStatusResponse + * @returns ResetSequencesResponse * @throws {Error} If the payload is 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.GetThrottlerStatusResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ResetSequencesResponse; /** - * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a ResetSequencesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetThrottlerStatusResponse + * @returns ResetSequencesResponse * @throws {Error} If the 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.GetThrottlerStatusResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ResetSequencesResponse; /** - * Verifies a GetThrottlerStatusResponse message. + * Verifies a ResetSequencesResponse message. * @param message Plain object 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. + * Creates a ResetSequencesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetThrottlerStatusResponse + * @returns ResetSequencesResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetThrottlerStatusResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ResetSequencesResponse; /** - * Creates a plain object from a GetThrottlerStatusResponse message. Also converts values to other types if specified. - * @param message GetThrottlerStatusResponse + * Creates a plain object from a ResetSequencesResponse message. Also converts values to other types if specified. + * @param message ResetSequencesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.GetThrottlerStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ResetSequencesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetThrottlerStatusResponse to JSON. + * Converts this ResetSequencesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetThrottlerStatusResponse + * Gets the default type url for ResetSequencesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace GetThrottlerStatusResponse { + /** Properties of a CheckThrottlerRequest. */ + interface ICheckThrottlerRequest { - /** Properties of a MetricResult. */ - interface IMetricResult { + /** CheckThrottlerRequest app_name */ + app_name?: (string|null); - /** MetricResult value */ - value?: (number|null); + /** CheckThrottlerRequest scope */ + scope?: (string|null); - /** MetricResult error */ - error?: (string|null); - } + /** CheckThrottlerRequest skip_request_heartbeats */ + skip_request_heartbeats?: (boolean|null); - /** Represents a MetricResult. */ - class MetricResult implements IMetricResult { + /** CheckThrottlerRequest ok_if_not_exists */ + ok_if_not_exists?: (boolean|null); + } - /** - * Constructs a new MetricResult. - * @param [properties] Properties to set - */ - constructor(properties?: tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult); + /** Represents a CheckThrottlerRequest. */ + class CheckThrottlerRequest implements ICheckThrottlerRequest { - /** MetricResult value. */ - public value: number; + /** + * Constructs a new CheckThrottlerRequest. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.ICheckThrottlerRequest); - /** MetricResult error. */ - public error: string; + /** CheckThrottlerRequest app_name. */ + public app_name: string; - /** - * Creates a new MetricResult instance using the specified properties. - * @param [properties] Properties to set - * @returns MetricResult instance - */ - public static create(properties?: tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult): tabletmanagerdata.GetThrottlerStatusResponse.MetricResult; - - /** - * Encodes the specified MetricResult message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages. - * @param message MetricResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MetricResult message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages. - * @param message MetricResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MetricResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetricResult - * @throws {Error} If the payload is 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.GetThrottlerStatusResponse.MetricResult; - - /** - * Decodes a MetricResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetricResult - * @throws {Error} If the 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.GetThrottlerStatusResponse.MetricResult; - - /** - * Verifies a MetricResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MetricResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetricResult - */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetThrottlerStatusResponse.MetricResult; - - /** - * Creates a plain object from a MetricResult message. Also converts values to other types if specified. - * @param message MetricResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tabletmanagerdata.GetThrottlerStatusResponse.MetricResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MetricResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MetricResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MetricHealth. */ - interface IMetricHealth { - - /** MetricHealth last_healthy_at */ - last_healthy_at?: (vttime.ITime|null); - - /** MetricHealth seconds_since_last_healthy */ - seconds_since_last_healthy?: (number|Long|null); - } - - /** Represents a MetricHealth. */ - class MetricHealth implements IMetricHealth { - - /** - * Constructs a new MetricHealth. - * @param [properties] Properties to set - */ - constructor(properties?: tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth); - - /** MetricHealth last_healthy_at. */ - public last_healthy_at?: (vttime.ITime|null); - - /** MetricHealth seconds_since_last_healthy. */ - public seconds_since_last_healthy: (number|Long); - - /** - * Creates a new MetricHealth instance using the specified properties. - * @param [properties] Properties to set - * @returns MetricHealth instance - */ - public static create(properties?: tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth): tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth; - - /** - * Encodes the specified MetricHealth message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages. - * @param message MetricHealth message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MetricHealth message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages. - * @param message MetricHealth message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MetricHealth message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetricHealth - * @throws {Error} If the payload is 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.GetThrottlerStatusResponse.MetricHealth; - - /** - * Decodes a MetricHealth message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetricHealth - * @throws {Error} If the 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.GetThrottlerStatusResponse.MetricHealth; - - /** - * Verifies a MetricHealth message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MetricHealth message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetricHealth - */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth; - - /** - * Creates a plain object from a MetricHealth message. Also converts values to other types if specified. - * @param message MetricHealth - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MetricHealth to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MetricHealth - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RecentApp. */ - interface IRecentApp { - - /** RecentApp checked_at */ - checked_at?: (vttime.ITime|null); - - /** RecentApp response_code */ - response_code?: (tabletmanagerdata.CheckThrottlerResponseCode|null); - } - - /** Represents a RecentApp. */ - class RecentApp implements IRecentApp { - - /** - * Constructs a new RecentApp. - * @param [properties] Properties to set - */ - constructor(properties?: tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp); - - /** RecentApp checked_at. */ - public checked_at?: (vttime.ITime|null); - - /** RecentApp response_code. */ - public response_code: tabletmanagerdata.CheckThrottlerResponseCode; - - /** - * Creates a new RecentApp instance using the specified properties. - * @param [properties] Properties to set - * @returns RecentApp instance - */ - public static create(properties?: tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp): tabletmanagerdata.GetThrottlerStatusResponse.RecentApp; - - /** - * Encodes the specified RecentApp message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages. - * @param message RecentApp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RecentApp message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages. - * @param message RecentApp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RecentApp message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RecentApp - * @throws {Error} If the payload is 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.GetThrottlerStatusResponse.RecentApp; - - /** - * Decodes a RecentApp message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecentApp - * @throws {Error} If the 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.GetThrottlerStatusResponse.RecentApp; - - /** - * Verifies a RecentApp message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RecentApp message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RecentApp - */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetThrottlerStatusResponse.RecentApp; - - /** - * Creates a plain object from a RecentApp message. Also converts values to other types if specified. - * @param message RecentApp - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tabletmanagerdata.GetThrottlerStatusResponse.RecentApp, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RecentApp to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RecentApp - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** 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); + /** CheckThrottlerRequest scope. */ + public scope: string; - /** ChangeTagsRequest tags. */ - public tags: { [k: string]: string }; + /** CheckThrottlerRequest skip_request_heartbeats. */ + public skip_request_heartbeats: boolean; - /** ChangeTagsRequest replace. */ - public replace: boolean; + /** CheckThrottlerRequest ok_if_not_exists. */ + public ok_if_not_exists: boolean; /** - * Creates a new ChangeTagsRequest instance using the specified properties. + * Creates a new CheckThrottlerRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTagsRequest instance + * @returns CheckThrottlerRequest instance */ - public static create(properties?: tabletmanagerdata.IChangeTagsRequest): tabletmanagerdata.ChangeTagsRequest; + public static create(properties?: tabletmanagerdata.ICheckThrottlerRequest): tabletmanagerdata.CheckThrottlerRequest; /** - * Encodes the specified ChangeTagsRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. - * @param message ChangeTagsRequest message or plain object to encode + * Encodes the specified CheckThrottlerRequest message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IChangeTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ICheckThrottlerRequest, 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 + * Encodes the specified CheckThrottlerRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IChangeTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ICheckThrottlerRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTagsRequest message from the specified reader or buffer. + * 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 ChangeTagsRequest + * @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): tabletmanagerdata.ChangeTagsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.CheckThrottlerRequest; /** - * Decodes a ChangeTagsRequest message from the specified reader or buffer, length delimited. + * Decodes a CheckThrottlerRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeTagsRequest + * @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)): tabletmanagerdata.ChangeTagsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.CheckThrottlerRequest; /** - * Verifies a ChangeTagsRequest message. + * 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 ChangeTagsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CheckThrottlerRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeTagsRequest + * @returns CheckThrottlerRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTagsRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.CheckThrottlerRequest; /** - * Creates a plain object from a ChangeTagsRequest message. Also converts values to other types if specified. - * @param message ChangeTagsRequest + * 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: tabletmanagerdata.ChangeTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.CheckThrottlerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTagsRequest to JSON. + * Converts this CheckThrottlerRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ChangeTagsRequest + * 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 ChangeTagsResponse. */ - interface IChangeTagsResponse { + /** CheckThrottlerResponseCode enum. */ + enum CheckThrottlerResponseCode { + UNDEFINED = 0, + OK = 1, + THRESHOLD_EXCEEDED = 2, + APP_DENIED = 3, + UNKNOWN_METRIC = 4, + INTERNAL_ERROR = 5 + } - /** ChangeTagsResponse tags */ - tags?: ({ [k: string]: string }|null); + /** Properties of a CheckThrottlerResponse. */ + interface ICheckThrottlerResponse { + + /** CheckThrottlerResponse value */ + value?: (number|null); + + /** CheckThrottlerResponse threshold */ + threshold?: (number|null); + + /** CheckThrottlerResponse error */ + error?: (string|null); + + /** CheckThrottlerResponse message */ + message?: (string|null); + + /** CheckThrottlerResponse recently_checked */ + recently_checked?: (boolean|null); + + /** CheckThrottlerResponse metrics */ + metrics?: ({ [k: string]: tabletmanagerdata.CheckThrottlerResponse.IMetric }|null); + + /** CheckThrottlerResponse app_name */ + app_name?: (string|null); + + /** CheckThrottlerResponse summary */ + summary?: (string|null); + + /** CheckThrottlerResponse response_code */ + response_code?: (tabletmanagerdata.CheckThrottlerResponseCode|null); } - /** Represents a ChangeTagsResponse. */ - class ChangeTagsResponse implements IChangeTagsResponse { + /** Represents a CheckThrottlerResponse. */ + class CheckThrottlerResponse implements ICheckThrottlerResponse { /** - * Constructs a new ChangeTagsResponse. + * Constructs a new CheckThrottlerResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IChangeTagsResponse); + constructor(properties?: tabletmanagerdata.ICheckThrottlerResponse); - /** ChangeTagsResponse tags. */ - public tags: { [k: string]: string }; + /** CheckThrottlerResponse value. */ + public value: number; + + /** CheckThrottlerResponse threshold. */ + public threshold: number; + + /** CheckThrottlerResponse error. */ + public error: string; + + /** CheckThrottlerResponse message. */ + public message: string; + + /** CheckThrottlerResponse recently_checked. */ + public recently_checked: boolean; + + /** CheckThrottlerResponse metrics. */ + public metrics: { [k: string]: tabletmanagerdata.CheckThrottlerResponse.IMetric }; + + /** CheckThrottlerResponse app_name. */ + public app_name: string; + + /** CheckThrottlerResponse summary. */ + public summary: string; + + /** CheckThrottlerResponse response_code. */ + public response_code: tabletmanagerdata.CheckThrottlerResponseCode; /** - * Creates a new ChangeTagsResponse instance using the specified properties. + * Creates a new CheckThrottlerResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTagsResponse instance + * @returns CheckThrottlerResponse instance */ - public static create(properties?: tabletmanagerdata.IChangeTagsResponse): tabletmanagerdata.ChangeTagsResponse; + public static create(properties?: tabletmanagerdata.ICheckThrottlerResponse): tabletmanagerdata.CheckThrottlerResponse; /** - * Encodes the specified ChangeTagsResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. - * @param message ChangeTagsResponse message or plain object to encode + * Encodes the specified CheckThrottlerResponse message. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IChangeTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ICheckThrottlerResponse, 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 + * Encodes the specified CheckThrottlerResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: tabletmanagerdata.IChangeTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ICheckThrottlerResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTagsResponse message from the specified reader or buffer. + * 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 ChangeTagsResponse + * @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): tabletmanagerdata.ChangeTagsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.CheckThrottlerResponse; /** - * Decodes a ChangeTagsResponse message from the specified reader or buffer, length delimited. + * Decodes a CheckThrottlerResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeTagsResponse + * @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)): tabletmanagerdata.ChangeTagsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.CheckThrottlerResponse; /** - * Verifies a ChangeTagsResponse message. + * 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 ChangeTagsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CheckThrottlerResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeTagsResponse + * @returns CheckThrottlerResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTagsResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.CheckThrottlerResponse; /** - * Creates a plain object from a ChangeTagsResponse message. Also converts values to other types if specified. - * @param message ChangeTagsResponse + * 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: tabletmanagerdata.ChangeTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.CheckThrottlerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTagsResponse to JSON. + * Converts this CheckThrottlerResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ChangeTagsResponse + * 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; } -} -/** Namespace binlogdata. */ -export namespace binlogdata { + namespace CheckThrottlerResponse { - /** Properties of a Charset. */ - interface ICharset { + /** Properties of a Metric. */ + interface IMetric { - /** Charset client */ - client?: (number|null); + /** Metric name */ + name?: (string|null); - /** Charset conn */ - conn?: (number|null); + /** Metric value */ + value?: (number|null); - /** Charset server */ - server?: (number|null); - } + /** Metric threshold */ + threshold?: (number|null); - /** Represents a Charset. */ - class Charset implements ICharset { + /** Metric error */ + error?: (string|null); - /** - * Constructs a new Charset. - * @param [properties] Properties to set - */ - constructor(properties?: binlogdata.ICharset); + /** Metric message */ + message?: (string|null); - /** Charset client. */ - public client: number; + /** Metric scope */ + scope?: (string|null); - /** Charset conn. */ - public conn: number; + /** Metric response_code */ + response_code?: (tabletmanagerdata.CheckThrottlerResponseCode|null); + } - /** Charset server. */ - public server: number; + /** Represents a Metric. */ + class Metric implements IMetric { + + /** + * Constructs a new Metric. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.CheckThrottlerResponse.IMetric); + + /** Metric name. */ + public name: string; + + /** Metric value. */ + public value: number; + + /** Metric threshold. */ + public threshold: number; + + /** Metric error. */ + public error: string; + + /** Metric message. */ + public message: string; + + /** Metric scope. */ + public scope: string; + + /** Metric response_code. */ + public response_code: tabletmanagerdata.CheckThrottlerResponseCode; + + /** + * Creates a new Metric instance using the specified properties. + * @param [properties] Properties to set + * @returns Metric instance + */ + public static create(properties?: tabletmanagerdata.CheckThrottlerResponse.IMetric): tabletmanagerdata.CheckThrottlerResponse.Metric; + + /** + * Encodes the specified Metric message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tabletmanagerdata.CheckThrottlerResponse.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.CheckThrottlerResponse.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Metric message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Metric + * @throws {Error} If the payload is 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.CheckThrottlerResponse.Metric; + + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Metric + * @throws {Error} If the 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.CheckThrottlerResponse.Metric; + + /** + * Verifies a Metric message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Metric + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.CheckThrottlerResponse.Metric; + + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @param message Metric + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.CheckThrottlerResponse.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Metric to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Metric + * @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 { + } + + /** Represents a GetThrottlerStatusRequest. */ + class GetThrottlerStatusRequest implements IGetThrottlerStatusRequest { /** - * Creates a new Charset instance using the specified properties. + * Constructs a new GetThrottlerStatusRequest. * @param [properties] Properties to set - * @returns Charset instance */ - public static create(properties?: binlogdata.ICharset): binlogdata.Charset; + constructor(properties?: tabletmanagerdata.IGetThrottlerStatusRequest); /** - * Encodes the specified Charset message. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. - * @param message Charset message or plain object to encode + * Creates a new GetThrottlerStatusRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetThrottlerStatusRequest instance + */ + public static create(properties?: tabletmanagerdata.IGetThrottlerStatusRequest): tabletmanagerdata.GetThrottlerStatusRequest; + + /** + * Encodes the specified GetThrottlerStatusRequest message. Does not implicitly {@link tabletmanagerdata.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: binlogdata.ICharset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetThrottlerStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Charset message, length delimited. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. - * @param message Charset message or plain object to encode + * Encodes the specified GetThrottlerStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.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: binlogdata.ICharset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetThrottlerStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Charset message from the specified reader or buffer. + * 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 Charset + * @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): binlogdata.Charset; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetThrottlerStatusRequest; /** - * Decodes a Charset message from the specified reader or buffer, length delimited. + * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Charset + * @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)): binlogdata.Charset; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetThrottlerStatusRequest; /** - * Verifies a Charset message. + * 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 Charset message from a plain object. Also converts values to their respective internal types. + * Creates a GetThrottlerStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Charset + * @returns GetThrottlerStatusRequest */ - public static fromObject(object: { [k: string]: any }): binlogdata.Charset; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetThrottlerStatusRequest; /** - * Creates a plain object from a Charset message. Also converts values to other types if specified. - * @param message Charset + * 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: binlogdata.Charset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetThrottlerStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Charset to JSON. + * Converts this GetThrottlerStatusRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Charset + * 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 BinlogTransaction. */ - interface IBinlogTransaction { + /** Properties of a GetThrottlerStatusResponse. */ + interface IGetThrottlerStatusResponse { - /** BinlogTransaction statements */ - statements?: (binlogdata.BinlogTransaction.IStatement[]|null); + /** GetThrottlerStatusResponse tablet_alias */ + tablet_alias?: (string|null); - /** BinlogTransaction event_token */ - event_token?: (query.IEventToken|null); + /** GetThrottlerStatusResponse keyspace */ + keyspace?: (string|null); + + /** GetThrottlerStatusResponse shard */ + shard?: (string|null); + + /** GetThrottlerStatusResponse is_leader */ + is_leader?: (boolean|null); + + /** GetThrottlerStatusResponse is_open */ + is_open?: (boolean|null); + + /** GetThrottlerStatusResponse is_enabled */ + is_enabled?: (boolean|null); + + /** GetThrottlerStatusResponse is_dormant */ + is_dormant?: (boolean|null); + + /** GetThrottlerStatusResponse lag_metric_query */ + lag_metric_query?: (string|null); + + /** GetThrottlerStatusResponse custom_metric_query */ + custom_metric_query?: (string|null); + + /** GetThrottlerStatusResponse default_threshold */ + default_threshold?: (number|null); + + /** GetThrottlerStatusResponse metric_name_used_as_default */ + metric_name_used_as_default?: (string|null); + + /** GetThrottlerStatusResponse aggregated_metrics */ + aggregated_metrics?: ({ [k: string]: tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult }|null); + + /** GetThrottlerStatusResponse metric_thresholds */ + metric_thresholds?: ({ [k: string]: number }|null); + + /** GetThrottlerStatusResponse metrics_health */ + metrics_health?: ({ [k: string]: tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth }|null); + + /** GetThrottlerStatusResponse throttled_apps */ + throttled_apps?: ({ [k: string]: topodata.IThrottledAppRule }|null); + + /** GetThrottlerStatusResponse app_checked_metrics */ + app_checked_metrics?: ({ [k: string]: string }|null); + + /** GetThrottlerStatusResponse recently_checked */ + recently_checked?: (boolean|null); + + /** GetThrottlerStatusResponse recent_apps */ + recent_apps?: ({ [k: string]: tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp }|null); } - /** Represents a BinlogTransaction. */ - class BinlogTransaction implements IBinlogTransaction { + /** Represents a GetThrottlerStatusResponse. */ + class GetThrottlerStatusResponse implements IGetThrottlerStatusResponse { /** - * Constructs a new BinlogTransaction. + * Constructs a new GetThrottlerStatusResponse. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IBinlogTransaction); + constructor(properties?: tabletmanagerdata.IGetThrottlerStatusResponse); - /** BinlogTransaction statements. */ - public statements: binlogdata.BinlogTransaction.IStatement[]; + /** GetThrottlerStatusResponse tablet_alias. */ + public tablet_alias: string; - /** BinlogTransaction event_token. */ - public event_token?: (query.IEventToken|null); + /** GetThrottlerStatusResponse keyspace. */ + public keyspace: string; + + /** GetThrottlerStatusResponse shard. */ + public shard: string; + + /** GetThrottlerStatusResponse is_leader. */ + public is_leader: boolean; + + /** GetThrottlerStatusResponse is_open. */ + public is_open: boolean; + + /** GetThrottlerStatusResponse is_enabled. */ + public is_enabled: boolean; + + /** GetThrottlerStatusResponse is_dormant. */ + public is_dormant: boolean; + + /** GetThrottlerStatusResponse lag_metric_query. */ + public lag_metric_query: string; + + /** GetThrottlerStatusResponse custom_metric_query. */ + public custom_metric_query: string; + + /** GetThrottlerStatusResponse default_threshold. */ + public default_threshold: number; + + /** GetThrottlerStatusResponse metric_name_used_as_default. */ + public metric_name_used_as_default: string; + + /** GetThrottlerStatusResponse aggregated_metrics. */ + public aggregated_metrics: { [k: string]: tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult }; + + /** GetThrottlerStatusResponse metric_thresholds. */ + public metric_thresholds: { [k: string]: number }; + + /** GetThrottlerStatusResponse metrics_health. */ + public metrics_health: { [k: string]: tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth }; + + /** GetThrottlerStatusResponse throttled_apps. */ + public throttled_apps: { [k: string]: topodata.IThrottledAppRule }; + + /** GetThrottlerStatusResponse app_checked_metrics. */ + public app_checked_metrics: { [k: string]: string }; + + /** GetThrottlerStatusResponse recently_checked. */ + public recently_checked: boolean; + + /** GetThrottlerStatusResponse recent_apps. */ + public recent_apps: { [k: string]: tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp }; /** - * Creates a new BinlogTransaction instance using the specified properties. + * Creates a new GetThrottlerStatusResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BinlogTransaction instance + * @returns GetThrottlerStatusResponse instance */ - public static create(properties?: binlogdata.IBinlogTransaction): binlogdata.BinlogTransaction; + public static create(properties?: tabletmanagerdata.IGetThrottlerStatusResponse): tabletmanagerdata.GetThrottlerStatusResponse; /** - * Encodes the specified BinlogTransaction message. Does not implicitly {@link binlogdata.BinlogTransaction.verify|verify} messages. - * @param message BinlogTransaction message or plain object to encode + * Encodes the specified GetThrottlerStatusResponse message. Does not implicitly {@link tabletmanagerdata.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: binlogdata.IBinlogTransaction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetThrottlerStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BinlogTransaction message, length delimited. Does not implicitly {@link binlogdata.BinlogTransaction.verify|verify} messages. - * @param message BinlogTransaction message or plain object to encode + * Encodes the specified GetThrottlerStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.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: binlogdata.IBinlogTransaction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetThrottlerStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BinlogTransaction message from the specified reader or buffer. + * 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 BinlogTransaction + * @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): binlogdata.BinlogTransaction; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetThrottlerStatusResponse; /** - * Decodes a BinlogTransaction message from the specified reader or buffer, length delimited. + * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BinlogTransaction + * @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)): binlogdata.BinlogTransaction; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetThrottlerStatusResponse; /** - * Verifies a BinlogTransaction message. + * 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 BinlogTransaction message from a plain object. Also converts values to their respective internal types. + * Creates a GetThrottlerStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BinlogTransaction + * @returns GetThrottlerStatusResponse */ - public static fromObject(object: { [k: string]: any }): binlogdata.BinlogTransaction; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetThrottlerStatusResponse; /** - * Creates a plain object from a BinlogTransaction message. Also converts values to other types if specified. - * @param message BinlogTransaction + * 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: binlogdata.BinlogTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetThrottlerStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BinlogTransaction to JSON. + * Converts this GetThrottlerStatusResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BinlogTransaction + * 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; } - namespace BinlogTransaction { - - /** Properties of a Statement. */ - interface IStatement { + namespace GetThrottlerStatusResponse { - /** Statement category */ - category?: (binlogdata.BinlogTransaction.Statement.Category|null); + /** Properties of a MetricResult. */ + interface IMetricResult { - /** Statement charset */ - charset?: (binlogdata.ICharset|null); + /** MetricResult value */ + value?: (number|null); - /** Statement sql */ - sql?: (Uint8Array|null); + /** MetricResult error */ + error?: (string|null); } - /** Represents a Statement. */ - class Statement implements IStatement { + /** Represents a MetricResult. */ + class MetricResult implements IMetricResult { /** - * Constructs a new Statement. + * Constructs a new MetricResult. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.BinlogTransaction.IStatement); - - /** Statement category. */ - public category: binlogdata.BinlogTransaction.Statement.Category; + constructor(properties?: tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult); - /** Statement charset. */ - public charset?: (binlogdata.ICharset|null); + /** MetricResult value. */ + public value: number; - /** Statement sql. */ - public sql: Uint8Array; + /** MetricResult error. */ + public error: string; /** - * Creates a new Statement instance using the specified properties. + * Creates a new MetricResult instance using the specified properties. * @param [properties] Properties to set - * @returns Statement instance + * @returns MetricResult instance */ - public static create(properties?: binlogdata.BinlogTransaction.IStatement): binlogdata.BinlogTransaction.Statement; + public static create(properties?: tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult): tabletmanagerdata.GetThrottlerStatusResponse.MetricResult; /** - * Encodes the specified Statement message. Does not implicitly {@link binlogdata.BinlogTransaction.Statement.verify|verify} messages. - * @param message Statement message or plain object to encode + * Encodes the specified MetricResult message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages. + * @param message MetricResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.BinlogTransaction.IStatement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Statement message, length delimited. Does not implicitly {@link binlogdata.BinlogTransaction.Statement.verify|verify} messages. - * @param message Statement message or plain object to encode + * Encodes the specified MetricResult message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages. + * @param message MetricResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.BinlogTransaction.IStatement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Statement message from the specified reader or buffer. + * Decodes a MetricResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Statement + * @returns MetricResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.BinlogTransaction.Statement; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetThrottlerStatusResponse.MetricResult; /** - * Decodes a Statement message from the specified reader or buffer, length delimited. + * Decodes a MetricResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Statement + * @returns MetricResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.BinlogTransaction.Statement; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetThrottlerStatusResponse.MetricResult; /** - * Verifies a Statement message. + * Verifies a MetricResult message. * @param message Plain object 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. + * Creates a MetricResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Statement + * @returns MetricResult */ - public static fromObject(object: { [k: string]: any }): binlogdata.BinlogTransaction.Statement; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetThrottlerStatusResponse.MetricResult; /** - * Creates a plain object from a Statement message. Also converts values to other types if specified. - * @param message Statement + * Creates a plain object from a MetricResult message. Also converts values to other types if specified. + * @param message MetricResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.BinlogTransaction.Statement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetThrottlerStatusResponse.MetricResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Statement to JSON. + * Converts this MetricResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Statement + * Gets the default type url for MetricResult * @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 { - BL_UNRECOGNIZED = 0, - BL_BEGIN = 1, - BL_COMMIT = 2, - BL_ROLLBACK = 3, - BL_DML_DEPRECATED = 4, - BL_DDL = 5, - BL_SET = 6, - BL_INSERT = 7, - BL_UPDATE = 8, - BL_DELETE = 9 - } - } - } + /** Properties of a MetricHealth. */ + interface IMetricHealth { - /** Properties of a StreamKeyRangeRequest. */ - interface IStreamKeyRangeRequest { + /** MetricHealth last_healthy_at */ + last_healthy_at?: (vttime.ITime|null); - /** StreamKeyRangeRequest position */ - position?: (string|null); + /** MetricHealth seconds_since_last_healthy */ + seconds_since_last_healthy?: (number|Long|null); + } - /** StreamKeyRangeRequest key_range */ - key_range?: (topodata.IKeyRange|null); + /** Represents a MetricHealth. */ + class MetricHealth implements IMetricHealth { - /** StreamKeyRangeRequest charset */ - charset?: (binlogdata.ICharset|null); - } + /** + * Constructs a new MetricHealth. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth); - /** Represents a StreamKeyRangeRequest. */ - class StreamKeyRangeRequest implements IStreamKeyRangeRequest { + /** MetricHealth last_healthy_at. */ + public last_healthy_at?: (vttime.ITime|null); - /** - * Constructs a new StreamKeyRangeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: binlogdata.IStreamKeyRangeRequest); + /** MetricHealth seconds_since_last_healthy. */ + public seconds_since_last_healthy: (number|Long); - /** StreamKeyRangeRequest position. */ - public position: string; + /** + * Creates a new MetricHealth instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricHealth instance + */ + public static create(properties?: tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth): tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth; - /** StreamKeyRangeRequest key_range. */ - public key_range?: (topodata.IKeyRange|null); + /** + * Encodes the specified MetricHealth message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages. + * @param message MetricHealth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth, writer?: $protobuf.Writer): $protobuf.Writer; - /** StreamKeyRangeRequest charset. */ - public charset?: (binlogdata.ICharset|null); + /** + * Encodes the specified MetricHealth message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages. + * @param message MetricHealth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MetricHealth message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricHealth + * @throws {Error} If the payload is 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.GetThrottlerStatusResponse.MetricHealth; + + /** + * Decodes a MetricHealth message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricHealth + * @throws {Error} If the 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.GetThrottlerStatusResponse.MetricHealth; + + /** + * Verifies a MetricHealth message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MetricHealth message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricHealth + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth; + + /** + * Creates a plain object from a MetricHealth message. Also converts values to other types if specified. + * @param message MetricHealth + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MetricHealth to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MetricHealth + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RecentApp. */ + interface IRecentApp { + + /** RecentApp checked_at */ + checked_at?: (vttime.ITime|null); + + /** RecentApp response_code */ + response_code?: (tabletmanagerdata.CheckThrottlerResponseCode|null); + } + + /** Represents a RecentApp. */ + class RecentApp implements IRecentApp { + + /** + * Constructs a new RecentApp. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp); + + /** RecentApp checked_at. */ + public checked_at?: (vttime.ITime|null); + + /** RecentApp response_code. */ + public response_code: tabletmanagerdata.CheckThrottlerResponseCode; + + /** + * Creates a new RecentApp instance using the specified properties. + * @param [properties] Properties to set + * @returns RecentApp instance + */ + public static create(properties?: tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp): tabletmanagerdata.GetThrottlerStatusResponse.RecentApp; + + /** + * Encodes the specified RecentApp message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages. + * @param message RecentApp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecentApp message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages. + * @param message RecentApp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecentApp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecentApp + * @throws {Error} If the payload is 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.GetThrottlerStatusResponse.RecentApp; + + /** + * Decodes a RecentApp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecentApp + * @throws {Error} If the 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.GetThrottlerStatusResponse.RecentApp; + + /** + * Verifies a RecentApp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RecentApp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecentApp + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetThrottlerStatusResponse.RecentApp; + + /** + * Creates a plain object from a RecentApp message. Also converts values to other types if specified. + * @param message RecentApp + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.GetThrottlerStatusResponse.RecentApp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecentApp to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecentApp + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** 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 { /** - * Creates a new StreamKeyRangeRequest instance using the specified properties. + * Constructs a new ChangeTagsRequest. * @param [properties] Properties to set - * @returns StreamKeyRangeRequest instance */ - public static create(properties?: binlogdata.IStreamKeyRangeRequest): binlogdata.StreamKeyRangeRequest; + constructor(properties?: tabletmanagerdata.IChangeTagsRequest); + + /** ChangeTagsRequest tags. */ + public tags: { [k: string]: string }; + + /** ChangeTagsRequest replace. */ + public replace: boolean; /** - * Encodes the specified StreamKeyRangeRequest message. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. - * @param message StreamKeyRangeRequest message or plain object to encode + * 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: binlogdata.IStreamKeyRangeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IChangeTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamKeyRangeRequest message, length delimited. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. - * @param message StreamKeyRangeRequest message or plain object to encode + * 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: binlogdata.IStreamKeyRangeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IChangeTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamKeyRangeRequest message from the specified reader or buffer. + * 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 StreamKeyRangeRequest + * @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): binlogdata.StreamKeyRangeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTagsRequest; /** - * Decodes a StreamKeyRangeRequest message from the specified reader or buffer, length delimited. + * Decodes a ChangeTagsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamKeyRangeRequest + * @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)): binlogdata.StreamKeyRangeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTagsRequest; /** - * Verifies a StreamKeyRangeRequest message. + * 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 StreamKeyRangeRequest 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. * @param object Plain object - * @returns StreamKeyRangeRequest + * @returns ChangeTagsRequest */ - public static fromObject(object: { [k: string]: any }): binlogdata.StreamKeyRangeRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTagsRequest; /** - * Creates a plain object from a StreamKeyRangeRequest message. Also converts values to other types if specified. - * @param message StreamKeyRangeRequest + * 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: binlogdata.StreamKeyRangeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ChangeTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamKeyRangeRequest to JSON. + * Converts this ChangeTagsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StreamKeyRangeRequest + * 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 StreamKeyRangeResponse. */ - interface IStreamKeyRangeResponse { + /** Properties of a ChangeTagsResponse. */ + interface IChangeTagsResponse { - /** StreamKeyRangeResponse binlog_transaction */ - binlog_transaction?: (binlogdata.IBinlogTransaction|null); + /** ChangeTagsResponse tags */ + tags?: ({ [k: string]: string }|null); } - /** Represents a StreamKeyRangeResponse. */ - class StreamKeyRangeResponse implements IStreamKeyRangeResponse { + /** Represents a ChangeTagsResponse. */ + class ChangeTagsResponse implements IChangeTagsResponse { /** - * Constructs a new StreamKeyRangeResponse. + * Constructs a new ChangeTagsResponse. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IStreamKeyRangeResponse); + constructor(properties?: tabletmanagerdata.IChangeTagsResponse); - /** StreamKeyRangeResponse binlog_transaction. */ - public binlog_transaction?: (binlogdata.IBinlogTransaction|null); + /** ChangeTagsResponse tags. */ + public tags: { [k: string]: string }; /** - * Creates a new StreamKeyRangeResponse instance using the specified properties. + * Creates a new ChangeTagsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StreamKeyRangeResponse instance + * @returns ChangeTagsResponse instance */ - public static create(properties?: binlogdata.IStreamKeyRangeResponse): binlogdata.StreamKeyRangeResponse; + public static create(properties?: tabletmanagerdata.IChangeTagsResponse): tabletmanagerdata.ChangeTagsResponse; /** - * Encodes the specified StreamKeyRangeResponse message. Does not implicitly {@link binlogdata.StreamKeyRangeResponse.verify|verify} messages. - * @param message StreamKeyRangeResponse message or plain object to encode + * 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: binlogdata.IStreamKeyRangeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IChangeTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamKeyRangeResponse message, length delimited. Does not implicitly {@link binlogdata.StreamKeyRangeResponse.verify|verify} messages. - * @param message StreamKeyRangeResponse message or plain object to encode + * 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: binlogdata.IStreamKeyRangeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IChangeTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamKeyRangeResponse message from the specified reader or buffer. + * 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 StreamKeyRangeResponse + * @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): binlogdata.StreamKeyRangeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTagsResponse; /** - * Decodes a StreamKeyRangeResponse message from the specified reader or buffer, length delimited. + * Decodes a ChangeTagsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamKeyRangeResponse + * @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)): binlogdata.StreamKeyRangeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTagsResponse; /** - * Verifies a StreamKeyRangeResponse message. + * 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 StreamKeyRangeResponse 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. * @param object Plain object - * @returns StreamKeyRangeResponse + * @returns ChangeTagsResponse */ - public static fromObject(object: { [k: string]: any }): binlogdata.StreamKeyRangeResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTagsResponse; /** - * Creates a plain object from a StreamKeyRangeResponse message. Also converts values to other types if specified. - * @param message StreamKeyRangeResponse + * 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: binlogdata.StreamKeyRangeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ChangeTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamKeyRangeResponse to JSON. + * Converts this ChangeTagsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StreamKeyRangeResponse + * 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; } +} - /** Properties of a StreamTablesRequest. */ - interface IStreamTablesRequest { +/** Namespace binlogdata. */ +export namespace binlogdata { - /** StreamTablesRequest position */ - position?: (string|null); + /** Properties of a Charset. */ + interface ICharset { - /** StreamTablesRequest tables */ - tables?: (string[]|null); + /** Charset client */ + client?: (number|null); - /** StreamTablesRequest charset */ - charset?: (binlogdata.ICharset|null); + /** Charset conn */ + conn?: (number|null); + + /** Charset server */ + server?: (number|null); } - /** Represents a StreamTablesRequest. */ - class StreamTablesRequest implements IStreamTablesRequest { + /** Represents a Charset. */ + class Charset implements ICharset { /** - * Constructs a new StreamTablesRequest. + * Constructs a new Charset. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IStreamTablesRequest); + constructor(properties?: binlogdata.ICharset); - /** StreamTablesRequest position. */ - public position: string; + /** Charset client. */ + public client: number; - /** StreamTablesRequest tables. */ - public tables: string[]; + /** Charset conn. */ + public conn: number; - /** StreamTablesRequest charset. */ - public charset?: (binlogdata.ICharset|null); + /** Charset server. */ + public server: number; /** - * Creates a new StreamTablesRequest instance using the specified properties. + * Creates a new Charset instance using the specified properties. * @param [properties] Properties to set - * @returns StreamTablesRequest instance + * @returns Charset instance */ - public static create(properties?: binlogdata.IStreamTablesRequest): binlogdata.StreamTablesRequest; + public static create(properties?: binlogdata.ICharset): binlogdata.Charset; /** - * Encodes the specified StreamTablesRequest message. Does not implicitly {@link binlogdata.StreamTablesRequest.verify|verify} messages. - * @param message StreamTablesRequest message or plain object to encode + * Encodes the specified Charset message. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. + * @param message Charset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.IStreamTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.ICharset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamTablesRequest message, length delimited. Does not implicitly {@link binlogdata.StreamTablesRequest.verify|verify} messages. - * @param message StreamTablesRequest message or plain object to encode + * Encodes the specified Charset message, length delimited. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. + * @param message Charset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.IStreamTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.ICharset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamTablesRequest message from the specified reader or buffer. + * Decodes a Charset message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamTablesRequest + * @returns Charset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.StreamTablesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.Charset; /** - * Decodes a StreamTablesRequest message from the specified reader or buffer, length delimited. + * Decodes a Charset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamTablesRequest + * @returns Charset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.StreamTablesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.Charset; /** - * Verifies a StreamTablesRequest message. + * Verifies a Charset message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamTablesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Charset message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamTablesRequest + * @returns Charset */ - public static fromObject(object: { [k: string]: any }): binlogdata.StreamTablesRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.Charset; /** - * Creates a plain object from a StreamTablesRequest message. Also converts values to other types if specified. - * @param message StreamTablesRequest + * Creates a plain object from a Charset message. Also converts values to other types if specified. + * @param message Charset * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.StreamTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.Charset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamTablesRequest to JSON. + * Converts this Charset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StreamTablesRequest + * Gets the default type url for Charset * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StreamTablesResponse. */ - interface IStreamTablesResponse { + /** Properties of a BinlogTransaction. */ + interface IBinlogTransaction { - /** StreamTablesResponse binlog_transaction */ - binlog_transaction?: (binlogdata.IBinlogTransaction|null); + /** BinlogTransaction statements */ + statements?: (binlogdata.BinlogTransaction.IStatement[]|null); + + /** BinlogTransaction event_token */ + event_token?: (query.IEventToken|null); } - /** Represents a StreamTablesResponse. */ - class StreamTablesResponse implements IStreamTablesResponse { + /** Represents a BinlogTransaction. */ + class BinlogTransaction implements IBinlogTransaction { /** - * Constructs a new StreamTablesResponse. + * Constructs a new BinlogTransaction. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IStreamTablesResponse); + constructor(properties?: binlogdata.IBinlogTransaction); - /** StreamTablesResponse binlog_transaction. */ - public binlog_transaction?: (binlogdata.IBinlogTransaction|null); + /** BinlogTransaction statements. */ + public statements: binlogdata.BinlogTransaction.IStatement[]; + + /** BinlogTransaction event_token. */ + public event_token?: (query.IEventToken|null); /** - * Creates a new StreamTablesResponse instance using the specified properties. + * Creates a new BinlogTransaction instance using the specified properties. * @param [properties] Properties to set - * @returns StreamTablesResponse instance + * @returns BinlogTransaction instance */ - public static create(properties?: binlogdata.IStreamTablesResponse): binlogdata.StreamTablesResponse; + public static create(properties?: binlogdata.IBinlogTransaction): binlogdata.BinlogTransaction; /** - * Encodes the specified StreamTablesResponse message. Does not implicitly {@link binlogdata.StreamTablesResponse.verify|verify} messages. - * @param message StreamTablesResponse message or plain object to encode + * Encodes the specified BinlogTransaction message. Does not implicitly {@link binlogdata.BinlogTransaction.verify|verify} messages. + * @param message BinlogTransaction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.IStreamTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IBinlogTransaction, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamTablesResponse message, length delimited. Does not implicitly {@link binlogdata.StreamTablesResponse.verify|verify} messages. - * @param message StreamTablesResponse message or plain object to encode + * Encodes the specified BinlogTransaction message, length delimited. Does not implicitly {@link binlogdata.BinlogTransaction.verify|verify} messages. + * @param message BinlogTransaction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.IStreamTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IBinlogTransaction, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamTablesResponse message from the specified reader or buffer. + * Decodes a BinlogTransaction message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamTablesResponse + * @returns BinlogTransaction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.StreamTablesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.BinlogTransaction; /** - * Decodes a StreamTablesResponse message from the specified reader or buffer, length delimited. + * Decodes a BinlogTransaction message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamTablesResponse + * @returns BinlogTransaction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.StreamTablesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.BinlogTransaction; /** - * Verifies a StreamTablesResponse message. + * Verifies a BinlogTransaction message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamTablesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BinlogTransaction message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamTablesResponse + * @returns BinlogTransaction */ - public static fromObject(object: { [k: string]: any }): binlogdata.StreamTablesResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.BinlogTransaction; /** - * Creates a plain object from a StreamTablesResponse message. Also converts values to other types if specified. - * @param message StreamTablesResponse + * Creates a plain object from a BinlogTransaction message. Also converts values to other types if specified. + * @param message BinlogTransaction * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.StreamTablesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.BinlogTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamTablesResponse to JSON. + * Converts this BinlogTransaction to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StreamTablesResponse + * Gets the default type url for BinlogTransaction * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CharsetConversion. */ - interface ICharsetConversion { + namespace BinlogTransaction { - /** CharsetConversion from_charset */ - from_charset?: (string|null); + /** Properties of a Statement. */ + interface IStatement { - /** CharsetConversion to_charset */ - to_charset?: (string|null); - } + /** Statement category */ + category?: (binlogdata.BinlogTransaction.Statement.Category|null); - /** Represents a CharsetConversion. */ - class CharsetConversion implements ICharsetConversion { + /** Statement charset */ + charset?: (binlogdata.ICharset|null); - /** - * Constructs a new CharsetConversion. - * @param [properties] Properties to set - */ - constructor(properties?: binlogdata.ICharsetConversion); + /** Statement sql */ + sql?: (Uint8Array|null); + } - /** CharsetConversion from_charset. */ - public from_charset: string; + /** Represents a Statement. */ + class Statement implements IStatement { - /** CharsetConversion to_charset. */ - public to_charset: string; + /** + * Constructs a new Statement. + * @param [properties] Properties to set + */ + constructor(properties?: binlogdata.BinlogTransaction.IStatement); - /** - * Creates a new CharsetConversion instance using the specified properties. - * @param [properties] Properties to set - * @returns CharsetConversion instance - */ - public static create(properties?: binlogdata.ICharsetConversion): binlogdata.CharsetConversion; + /** Statement category. */ + public category: binlogdata.BinlogTransaction.Statement.Category; + + /** Statement charset. */ + public charset?: (binlogdata.ICharset|null); + + /** 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?: binlogdata.BinlogTransaction.IStatement): binlogdata.BinlogTransaction.Statement; + + /** + * Encodes the specified Statement message. Does not implicitly {@link binlogdata.BinlogTransaction.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: binlogdata.BinlogTransaction.IStatement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Statement message, length delimited. Does not implicitly {@link binlogdata.BinlogTransaction.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: binlogdata.BinlogTransaction.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): binlogdata.BinlogTransaction.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)): binlogdata.BinlogTransaction.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 }): binlogdata.BinlogTransaction.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: binlogdata.BinlogTransaction.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 { + BL_UNRECOGNIZED = 0, + BL_BEGIN = 1, + BL_COMMIT = 2, + BL_ROLLBACK = 3, + BL_DML_DEPRECATED = 4, + BL_DDL = 5, + BL_SET = 6, + BL_INSERT = 7, + BL_UPDATE = 8, + BL_DELETE = 9 + } + } + } + + /** Properties of a StreamKeyRangeRequest. */ + interface IStreamKeyRangeRequest { + + /** StreamKeyRangeRequest position */ + position?: (string|null); + + /** StreamKeyRangeRequest key_range */ + key_range?: (topodata.IKeyRange|null); + + /** StreamKeyRangeRequest charset */ + charset?: (binlogdata.ICharset|null); + } + + /** Represents a StreamKeyRangeRequest. */ + class StreamKeyRangeRequest implements IStreamKeyRangeRequest { /** - * Encodes the specified CharsetConversion message. Does not implicitly {@link binlogdata.CharsetConversion.verify|verify} messages. - * @param message CharsetConversion message or plain object to encode + * Constructs a new StreamKeyRangeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: binlogdata.IStreamKeyRangeRequest); + + /** StreamKeyRangeRequest position. */ + public position: string; + + /** StreamKeyRangeRequest key_range. */ + public key_range?: (topodata.IKeyRange|null); + + /** StreamKeyRangeRequest charset. */ + public charset?: (binlogdata.ICharset|null); + + /** + * Creates a new StreamKeyRangeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamKeyRangeRequest instance + */ + public static create(properties?: binlogdata.IStreamKeyRangeRequest): binlogdata.StreamKeyRangeRequest; + + /** + * Encodes the specified StreamKeyRangeRequest message. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. + * @param message StreamKeyRangeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.ICharsetConversion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IStreamKeyRangeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CharsetConversion message, length delimited. Does not implicitly {@link binlogdata.CharsetConversion.verify|verify} messages. - * @param message CharsetConversion message or plain object to encode + * Encodes the specified StreamKeyRangeRequest message, length delimited. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. + * @param message StreamKeyRangeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.ICharsetConversion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IStreamKeyRangeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CharsetConversion message from the specified reader or buffer. + * Decodes a StreamKeyRangeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CharsetConversion + * @returns StreamKeyRangeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.CharsetConversion; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.StreamKeyRangeRequest; /** - * Decodes a CharsetConversion message from the specified reader or buffer, length delimited. + * Decodes a StreamKeyRangeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CharsetConversion + * @returns StreamKeyRangeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.CharsetConversion; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.StreamKeyRangeRequest; /** - * Verifies a CharsetConversion message. + * Verifies a StreamKeyRangeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CharsetConversion message from a plain object. Also converts values to their respective internal types. + * Creates a StreamKeyRangeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CharsetConversion + * @returns StreamKeyRangeRequest */ - public static fromObject(object: { [k: string]: any }): binlogdata.CharsetConversion; + public static fromObject(object: { [k: string]: any }): binlogdata.StreamKeyRangeRequest; /** - * Creates a plain object from a CharsetConversion message. Also converts values to other types if specified. - * @param message CharsetConversion + * Creates a plain object from a StreamKeyRangeRequest message. Also converts values to other types if specified. + * @param message StreamKeyRangeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.CharsetConversion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.StreamKeyRangeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CharsetConversion to JSON. + * Converts this StreamKeyRangeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CharsetConversion + * Gets the default type url for StreamKeyRangeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Rule. */ - interface IRule { + /** Properties of a StreamKeyRangeResponse. */ + interface IStreamKeyRangeResponse { - /** Rule match */ - match?: (string|null); + /** StreamKeyRangeResponse binlog_transaction */ + binlog_transaction?: (binlogdata.IBinlogTransaction|null); + } - /** Rule filter */ - filter?: (string|null); + /** Represents a StreamKeyRangeResponse. */ + class StreamKeyRangeResponse implements IStreamKeyRangeResponse { - /** Rule convert_enum_to_text */ - convert_enum_to_text?: ({ [k: string]: string }|null); + /** + * Constructs a new StreamKeyRangeResponse. + * @param [properties] Properties to set + */ + constructor(properties?: binlogdata.IStreamKeyRangeResponse); - /** Rule convert_charset */ - convert_charset?: ({ [k: string]: binlogdata.ICharsetConversion }|null); + /** StreamKeyRangeResponse binlog_transaction. */ + public binlog_transaction?: (binlogdata.IBinlogTransaction|null); - /** Rule source_unique_key_columns */ - source_unique_key_columns?: (string|null); + /** + * Creates a new StreamKeyRangeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamKeyRangeResponse instance + */ + public static create(properties?: binlogdata.IStreamKeyRangeResponse): binlogdata.StreamKeyRangeResponse; - /** Rule target_unique_key_columns */ - target_unique_key_columns?: (string|null); + /** + * Encodes the specified StreamKeyRangeResponse message. Does not implicitly {@link binlogdata.StreamKeyRangeResponse.verify|verify} messages. + * @param message StreamKeyRangeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: binlogdata.IStreamKeyRangeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Rule source_unique_key_target_columns */ - source_unique_key_target_columns?: (string|null); + /** + * Encodes the specified StreamKeyRangeResponse message, length delimited. Does not implicitly {@link binlogdata.StreamKeyRangeResponse.verify|verify} messages. + * @param message StreamKeyRangeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: binlogdata.IStreamKeyRangeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Rule convert_int_to_enum */ - convert_int_to_enum?: ({ [k: string]: boolean }|null); + /** + * Decodes a StreamKeyRangeResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamKeyRangeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.StreamKeyRangeResponse; - /** Rule force_unique_key */ - force_unique_key?: (string|null); - } + /** + * Decodes a StreamKeyRangeResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamKeyRangeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.StreamKeyRangeResponse; - /** Represents a Rule. */ - class Rule implements IRule { + /** + * Verifies a StreamKeyRangeResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); /** - * Constructs a new Rule. - * @param [properties] Properties to set + * Creates a StreamKeyRangeResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamKeyRangeResponse */ - constructor(properties?: binlogdata.IRule); + public static fromObject(object: { [k: string]: any }): binlogdata.StreamKeyRangeResponse; - /** Rule match. */ - public match: string; + /** + * Creates a plain object from a StreamKeyRangeResponse message. Also converts values to other types if specified. + * @param message StreamKeyRangeResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: binlogdata.StreamKeyRangeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Rule filter. */ - public filter: string; + /** + * Converts this StreamKeyRangeResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Rule convert_enum_to_text. */ - public convert_enum_to_text: { [k: string]: string }; + /** + * Gets the default type url for StreamKeyRangeResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Rule convert_charset. */ - public convert_charset: { [k: string]: binlogdata.ICharsetConversion }; + /** Properties of a StreamTablesRequest. */ + interface IStreamTablesRequest { - /** Rule source_unique_key_columns. */ - public source_unique_key_columns: string; + /** StreamTablesRequest position */ + position?: (string|null); - /** Rule target_unique_key_columns. */ - public target_unique_key_columns: string; + /** StreamTablesRequest tables */ + tables?: (string[]|null); - /** Rule source_unique_key_target_columns. */ - public source_unique_key_target_columns: string; + /** StreamTablesRequest charset */ + charset?: (binlogdata.ICharset|null); + } - /** Rule convert_int_to_enum. */ - public convert_int_to_enum: { [k: string]: boolean }; + /** Represents a StreamTablesRequest. */ + class StreamTablesRequest implements IStreamTablesRequest { - /** Rule force_unique_key. */ - public force_unique_key: string; + /** + * Constructs a new StreamTablesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: binlogdata.IStreamTablesRequest); + + /** StreamTablesRequest position. */ + public position: string; + + /** StreamTablesRequest tables. */ + public tables: string[]; + + /** StreamTablesRequest charset. */ + public charset?: (binlogdata.ICharset|null); /** - * Creates a new Rule instance using the specified properties. + * Creates a new StreamTablesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Rule instance + * @returns StreamTablesRequest instance */ - public static create(properties?: binlogdata.IRule): binlogdata.Rule; + public static create(properties?: binlogdata.IStreamTablesRequest): binlogdata.StreamTablesRequest; /** - * Encodes the specified Rule message. Does not implicitly {@link binlogdata.Rule.verify|verify} messages. - * @param message Rule message or plain object to encode + * Encodes the specified StreamTablesRequest message. Does not implicitly {@link binlogdata.StreamTablesRequest.verify|verify} messages. + * @param message StreamTablesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.IRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IStreamTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Rule message, length delimited. Does not implicitly {@link binlogdata.Rule.verify|verify} messages. - * @param message Rule message or plain object to encode + * Encodes the specified StreamTablesRequest message, length delimited. Does not implicitly {@link binlogdata.StreamTablesRequest.verify|verify} messages. + * @param message StreamTablesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.IRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IStreamTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Rule message from the specified reader or buffer. + * Decodes a StreamTablesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Rule + * @returns StreamTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.Rule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.StreamTablesRequest; /** - * Decodes a Rule message from the specified reader or buffer, length delimited. + * Decodes a StreamTablesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Rule + * @returns StreamTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.Rule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.StreamTablesRequest; /** - * Verifies a Rule message. + * Verifies a StreamTablesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Rule message from a plain object. Also converts values to their respective internal types. + * Creates a StreamTablesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Rule + * @returns StreamTablesRequest */ - public static fromObject(object: { [k: string]: any }): binlogdata.Rule; + public static fromObject(object: { [k: string]: any }): binlogdata.StreamTablesRequest; /** - * Creates a plain object from a Rule message. Also converts values to other types if specified. - * @param message Rule + * Creates a plain object from a StreamTablesRequest message. Also converts values to other types if specified. + * @param message StreamTablesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.Rule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.StreamTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Rule to JSON. + * Converts this StreamTablesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Rule + * Gets the default type url for StreamTablesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Filter. */ - interface IFilter { - - /** Filter rules */ - rules?: (binlogdata.IRule[]|null); - - /** Filter field_event_mode */ - field_event_mode?: (binlogdata.Filter.FieldEventMode|null); - - /** Filter workflow_type */ - workflow_type?: (number|Long|null); + /** Properties of a StreamTablesResponse. */ + interface IStreamTablesResponse { - /** Filter workflow_name */ - workflow_name?: (string|null); + /** StreamTablesResponse binlog_transaction */ + binlog_transaction?: (binlogdata.IBinlogTransaction|null); } - /** Represents a Filter. */ - class Filter implements IFilter { + /** Represents a StreamTablesResponse. */ + class StreamTablesResponse implements IStreamTablesResponse { /** - * Constructs a new Filter. + * Constructs a new StreamTablesResponse. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IFilter); - - /** Filter rules. */ - public rules: binlogdata.IRule[]; - - /** Filter field_event_mode. */ - public field_event_mode: binlogdata.Filter.FieldEventMode; - - /** Filter workflow_type. */ - public workflow_type: (number|Long); + constructor(properties?: binlogdata.IStreamTablesResponse); - /** Filter workflow_name. */ - public workflow_name: string; + /** StreamTablesResponse binlog_transaction. */ + public binlog_transaction?: (binlogdata.IBinlogTransaction|null); /** - * Creates a new Filter instance using the specified properties. + * Creates a new StreamTablesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Filter instance + * @returns StreamTablesResponse instance */ - public static create(properties?: binlogdata.IFilter): binlogdata.Filter; + public static create(properties?: binlogdata.IStreamTablesResponse): binlogdata.StreamTablesResponse; /** - * Encodes the specified Filter message. Does not implicitly {@link binlogdata.Filter.verify|verify} messages. - * @param message Filter message or plain object to encode + * Encodes the specified StreamTablesResponse message. Does not implicitly {@link binlogdata.StreamTablesResponse.verify|verify} messages. + * @param message StreamTablesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.IFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IStreamTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Filter message, length delimited. Does not implicitly {@link binlogdata.Filter.verify|verify} messages. - * @param message Filter message or plain object to encode + * Encodes the specified StreamTablesResponse message, length delimited. Does not implicitly {@link binlogdata.StreamTablesResponse.verify|verify} messages. + * @param message StreamTablesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.IFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IStreamTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Filter message from the specified reader or buffer. + * Decodes a StreamTablesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Filter + * @returns StreamTablesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.Filter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.StreamTablesResponse; /** - * Decodes a Filter message from the specified reader or buffer, length delimited. + * Decodes a StreamTablesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Filter + * @returns StreamTablesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.Filter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.StreamTablesResponse; /** - * Verifies a Filter message. + * Verifies a StreamTablesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Filter message from a plain object. Also converts values to their respective internal types. + * Creates a StreamTablesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Filter + * @returns StreamTablesResponse */ - public static fromObject(object: { [k: string]: any }): binlogdata.Filter; + public static fromObject(object: { [k: string]: any }): binlogdata.StreamTablesResponse; /** - * Creates a plain object from a Filter message. Also converts values to other types if specified. - * @param message Filter + * Creates a plain object from a StreamTablesResponse message. Also converts values to other types if specified. + * @param message StreamTablesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.Filter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.StreamTablesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Filter to JSON. + * Converts this StreamTablesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Filter + * Gets the default type url for StreamTablesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Filter { + /** Properties of a CharsetConversion. */ + interface ICharsetConversion { - /** FieldEventMode enum. */ - enum FieldEventMode { - ERR_ON_MISMATCH = 0, - BEST_EFFORT = 1 - } - } + /** CharsetConversion from_charset */ + from_charset?: (string|null); - /** OnDDLAction enum. */ - enum OnDDLAction { - IGNORE = 0, - STOP = 1, - EXEC = 2, - EXEC_IGNORE = 3 + /** CharsetConversion to_charset */ + to_charset?: (string|null); } - /** VReplicationWorkflowType enum. */ - enum VReplicationWorkflowType { - Materialize = 0, - MoveTables = 1, - CreateLookupIndex = 2, - Migrate = 3, - Reshard = 4, - OnlineDDL = 5 - } + /** Represents a CharsetConversion. */ + class CharsetConversion implements ICharsetConversion { - /** VReplicationWorkflowSubType enum. */ - enum VReplicationWorkflowSubType { - None = 0, - Partial = 1, - AtomicCopy = 2 - } + /** + * Constructs a new CharsetConversion. + * @param [properties] Properties to set + */ + constructor(properties?: binlogdata.ICharsetConversion); - /** VReplicationWorkflowState enum. */ - enum VReplicationWorkflowState { - Unknown = 0, - Init = 1, - Stopped = 2, - Copying = 3, + /** CharsetConversion from_charset. */ + public from_charset: string; + + /** CharsetConversion to_charset. */ + public to_charset: string; + + /** + * Creates a new CharsetConversion instance using the specified properties. + * @param [properties] Properties to set + * @returns CharsetConversion instance + */ + public static create(properties?: binlogdata.ICharsetConversion): binlogdata.CharsetConversion; + + /** + * Encodes the specified CharsetConversion message. Does not implicitly {@link binlogdata.CharsetConversion.verify|verify} messages. + * @param message CharsetConversion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: binlogdata.ICharsetConversion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CharsetConversion message, length delimited. Does not implicitly {@link binlogdata.CharsetConversion.verify|verify} messages. + * @param message CharsetConversion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: binlogdata.ICharsetConversion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CharsetConversion message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CharsetConversion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.CharsetConversion; + + /** + * Decodes a CharsetConversion message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CharsetConversion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.CharsetConversion; + + /** + * Verifies a CharsetConversion message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CharsetConversion message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CharsetConversion + */ + public static fromObject(object: { [k: string]: any }): binlogdata.CharsetConversion; + + /** + * Creates a plain object from a CharsetConversion message. Also converts values to other types if specified. + * @param message CharsetConversion + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: binlogdata.CharsetConversion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CharsetConversion to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CharsetConversion + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Rule. */ + interface IRule { + + /** Rule match */ + match?: (string|null); + + /** Rule filter */ + filter?: (string|null); + + /** Rule convert_enum_to_text */ + convert_enum_to_text?: ({ [k: string]: string }|null); + + /** Rule convert_charset */ + convert_charset?: ({ [k: string]: binlogdata.ICharsetConversion }|null); + + /** Rule source_unique_key_columns */ + source_unique_key_columns?: (string|null); + + /** Rule target_unique_key_columns */ + target_unique_key_columns?: (string|null); + + /** Rule source_unique_key_target_columns */ + source_unique_key_target_columns?: (string|null); + + /** Rule convert_int_to_enum */ + convert_int_to_enum?: ({ [k: string]: boolean }|null); + + /** Rule force_unique_key */ + force_unique_key?: (string|null); + } + + /** Represents a Rule. */ + class Rule implements IRule { + + /** + * Constructs a new Rule. + * @param [properties] Properties to set + */ + constructor(properties?: binlogdata.IRule); + + /** Rule match. */ + public match: string; + + /** Rule filter. */ + public filter: string; + + /** Rule convert_enum_to_text. */ + public convert_enum_to_text: { [k: string]: string }; + + /** Rule convert_charset. */ + public convert_charset: { [k: string]: binlogdata.ICharsetConversion }; + + /** Rule source_unique_key_columns. */ + public source_unique_key_columns: string; + + /** Rule target_unique_key_columns. */ + public target_unique_key_columns: string; + + /** Rule source_unique_key_target_columns. */ + public source_unique_key_target_columns: string; + + /** Rule convert_int_to_enum. */ + public convert_int_to_enum: { [k: string]: boolean }; + + /** Rule force_unique_key. */ + public force_unique_key: string; + + /** + * Creates a new Rule instance using the specified properties. + * @param [properties] Properties to set + * @returns Rule instance + */ + public static create(properties?: binlogdata.IRule): binlogdata.Rule; + + /** + * Encodes the specified Rule message. Does not implicitly {@link binlogdata.Rule.verify|verify} messages. + * @param message Rule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: binlogdata.IRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Rule message, length delimited. Does not implicitly {@link binlogdata.Rule.verify|verify} messages. + * @param message Rule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: binlogdata.IRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Rule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Rule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.Rule; + + /** + * Decodes a Rule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Rule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.Rule; + + /** + * Verifies a Rule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Rule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Rule + */ + public static fromObject(object: { [k: string]: any }): binlogdata.Rule; + + /** + * Creates a plain object from a Rule message. Also converts values to other types if specified. + * @param message Rule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: binlogdata.Rule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Rule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Rule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Filter. */ + interface IFilter { + + /** Filter rules */ + rules?: (binlogdata.IRule[]|null); + + /** Filter field_event_mode */ + field_event_mode?: (binlogdata.Filter.FieldEventMode|null); + + /** Filter workflow_type */ + workflow_type?: (number|Long|null); + + /** Filter workflow_name */ + workflow_name?: (string|null); + } + + /** Represents a Filter. */ + class Filter implements IFilter { + + /** + * Constructs a new Filter. + * @param [properties] Properties to set + */ + constructor(properties?: binlogdata.IFilter); + + /** Filter rules. */ + public rules: binlogdata.IRule[]; + + /** Filter field_event_mode. */ + public field_event_mode: binlogdata.Filter.FieldEventMode; + + /** Filter workflow_type. */ + public workflow_type: (number|Long); + + /** Filter workflow_name. */ + public workflow_name: string; + + /** + * Creates a new Filter instance using the specified properties. + * @param [properties] Properties to set + * @returns Filter instance + */ + public static create(properties?: binlogdata.IFilter): binlogdata.Filter; + + /** + * Encodes the specified Filter message. Does not implicitly {@link binlogdata.Filter.verify|verify} messages. + * @param message Filter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: binlogdata.IFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Filter message, length delimited. Does not implicitly {@link binlogdata.Filter.verify|verify} messages. + * @param message Filter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: binlogdata.IFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Filter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Filter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.Filter; + + /** + * Decodes a Filter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Filter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.Filter; + + /** + * Verifies a Filter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Filter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Filter + */ + public static fromObject(object: { [k: string]: any }): binlogdata.Filter; + + /** + * Creates a plain object from a Filter message. Also converts values to other types if specified. + * @param message Filter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: binlogdata.Filter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Filter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Filter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Filter { + + /** FieldEventMode enum. */ + enum FieldEventMode { + ERR_ON_MISMATCH = 0, + BEST_EFFORT = 1 + } + } + + /** OnDDLAction enum. */ + enum OnDDLAction { + IGNORE = 0, + STOP = 1, + EXEC = 2, + EXEC_IGNORE = 3 + } + + /** VReplicationWorkflowType enum. */ + enum VReplicationWorkflowType { + Materialize = 0, + MoveTables = 1, + CreateLookupIndex = 2, + Migrate = 3, + Reshard = 4, + OnlineDDL = 5 + } + + /** VReplicationWorkflowSubType enum. */ + enum VReplicationWorkflowSubType { + None = 0, + Partial = 1, + AtomicCopy = 2 + } + + /** VReplicationWorkflowState enum. */ + enum VReplicationWorkflowState { + Unknown = 0, + Init = 1, + Stopped = 2, + Copying = 3, Running = 4, Error = 5, Lagging = 6 @@ -49207,6 +50323,9 @@ export namespace vschema { /** Keyspace multi_tenant_spec */ multi_tenant_spec?: (vschema.IMultiTenantSpec|null); + + /** Keyspace draft */ + draft?: (boolean|null); } /** Represents a Keyspace. */ @@ -49236,6 +50355,9 @@ export namespace vschema { /** Keyspace multi_tenant_spec. */ public multi_tenant_spec?: (vschema.IMultiTenantSpec|null); + /** Keyspace draft. */ + public draft: boolean; + /** * Creates a new Keyspace instance using the specified properties. * @param [properties] Properties to set @@ -52861,26191 +53983,28651 @@ export namespace vtctldata { */ 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 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); + + /** BackupRequest mysql_shutdown_timeout */ + mysql_shutdown_timeout?: (vttime.IDuration|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 mysql_shutdown_timeout. */ + public mysql_shutdown_timeout?: (vttime.IDuration|null); + + /** + * 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); + + /** BackupShardRequest mysql_shutdown_timeout */ + mysql_shutdown_timeout?: (vttime.IDuration|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; + + /** BackupShardRequest mysql_shutdown_timeout. */ + public mysql_shutdown_timeout?: (vttime.IDuration|null); + + /** + * 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); + + /** CancelSchemaMigrationRequest caller_id */ + caller_id?: (vtrpc.ICallerID|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; + + /** CancelSchemaMigrationRequest caller_id. */ + public caller_id?: (vtrpc.ICallerID|null); + + /** + * 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 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 }; + /** + * 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; - /** - * Converts this Log to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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 }; - /** - * 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; - } + /** + * Converts this ChangeTabletTagsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a ThrottlerStatus. */ - interface IThrottlerStatus { + /** + * 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; + } - /** ThrottlerStatus component_throttled */ - component_throttled?: (string|null); + /** Properties of a ChangeTabletTagsResponse. */ + interface IChangeTabletTagsResponse { - /** ThrottlerStatus time_throttled */ - time_throttled?: (vttime.ITime|null); - } + /** ChangeTabletTagsResponse before_tags */ + before_tags?: ({ [k: string]: string }|null); - /** Represents a ThrottlerStatus. */ - class ThrottlerStatus implements IThrottlerStatus { + /** ChangeTabletTagsResponse after_tags */ + after_tags?: ({ [k: string]: string }|null); + } - /** - * Constructs a new ThrottlerStatus. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.Stream.IThrottlerStatus); + /** Represents a ChangeTabletTagsResponse. */ + class ChangeTabletTagsResponse implements IChangeTabletTagsResponse { - /** ThrottlerStatus component_throttled. */ - public component_throttled: string; + /** + * Constructs a new ChangeTabletTagsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTagsResponse); - /** ThrottlerStatus time_throttled. */ - public time_throttled?: (vttime.ITime|null); + /** ChangeTabletTagsResponse before_tags. */ + public before_tags: { [k: string]: string }; - /** - * 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; + /** ChangeTabletTagsResponse after_tags. */ + public after_tags: { [k: string]: string }; - /** - * 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; + /** + * 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 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; + /** + * 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; - /** - * 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; + /** + * 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 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; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * 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; + /** + * 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 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 }; + /** + * 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; - /** - * Converts this ThrottlerStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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 }; - /** - * 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; - } - } + /** + * 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 an AddCellInfoRequest. */ - interface IAddCellInfoRequest { + /** Properties of a ChangeTabletTypeRequest. */ + interface IChangeTabletTypeRequest { - /** AddCellInfoRequest name */ - name?: (string|null); + /** ChangeTabletTypeRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); - /** AddCellInfoRequest cell_info */ - cell_info?: (topodata.ICellInfo|null); + /** ChangeTabletTypeRequest db_type */ + db_type?: (topodata.TabletType|null); + + /** ChangeTabletTypeRequest dry_run */ + dry_run?: (boolean|null); } - /** Represents an AddCellInfoRequest. */ - class AddCellInfoRequest implements IAddCellInfoRequest { + /** Represents a ChangeTabletTypeRequest. */ + class ChangeTabletTypeRequest implements IChangeTabletTypeRequest { /** - * Constructs a new AddCellInfoRequest. + * Constructs a new ChangeTabletTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IAddCellInfoRequest); + constructor(properties?: vtctldata.IChangeTabletTypeRequest); - /** AddCellInfoRequest name. */ - public name: string; + /** ChangeTabletTypeRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); - /** AddCellInfoRequest cell_info. */ - public cell_info?: (topodata.ICellInfo|null); + /** ChangeTabletTypeRequest db_type. */ + public db_type: topodata.TabletType; + + /** ChangeTabletTypeRequest dry_run. */ + public dry_run: boolean; /** - * Creates a new AddCellInfoRequest instance using the specified properties. + * Creates a new ChangeTabletTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AddCellInfoRequest instance + * @returns ChangeTabletTypeRequest instance */ - public static create(properties?: vtctldata.IAddCellInfoRequest): vtctldata.AddCellInfoRequest; + public static create(properties?: vtctldata.IChangeTabletTypeRequest): vtctldata.ChangeTabletTypeRequest; /** - * Encodes the specified AddCellInfoRequest message. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. - * @param message AddCellInfoRequest message or plain object to encode + * 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.IAddCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IChangeTabletTypeRequest, 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 + * 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.IAddCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddCellInfoRequest message from the specified reader or buffer. + * 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 AddCellInfoRequest + * @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.AddCellInfoRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeRequest; /** - * Decodes an AddCellInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddCellInfoRequest + * @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.AddCellInfoRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeRequest; /** - * Verifies an AddCellInfoRequest message. + * 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 an AddCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeTabletTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddCellInfoRequest + * @returns ChangeTabletTypeRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.AddCellInfoRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeRequest; /** - * Creates a plain object from an AddCellInfoRequest message. Also converts values to other types if specified. - * @param message AddCellInfoRequest + * 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.AddCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ChangeTabletTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddCellInfoRequest to JSON. + * Converts this ChangeTabletTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddCellInfoRequest + * 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 an AddCellInfoResponse. */ - interface IAddCellInfoResponse { + /** 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 an AddCellInfoResponse. */ - class AddCellInfoResponse implements IAddCellInfoResponse { + /** Represents a ChangeTabletTypeResponse. */ + class ChangeTabletTypeResponse implements IChangeTabletTypeResponse { /** - * Constructs a new AddCellInfoResponse. + * Constructs a new ChangeTabletTypeResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IAddCellInfoResponse); + 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 AddCellInfoResponse instance using the specified properties. + * Creates a new ChangeTabletTypeResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AddCellInfoResponse instance + * @returns ChangeTabletTypeResponse instance */ - public static create(properties?: vtctldata.IAddCellInfoResponse): vtctldata.AddCellInfoResponse; + public static create(properties?: vtctldata.IChangeTabletTypeResponse): vtctldata.ChangeTabletTypeResponse; /** - * Encodes the specified AddCellInfoResponse message. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. - * @param message AddCellInfoResponse message or plain object to encode + * 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.IAddCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IChangeTabletTypeResponse, 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 + * 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.IAddCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddCellInfoResponse message from the specified reader or buffer. + * 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 AddCellInfoResponse + * @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.AddCellInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeResponse; /** - * Decodes an AddCellInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddCellInfoResponse + * @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.AddCellInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeResponse; /** - * Verifies an AddCellInfoResponse message. + * 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 an AddCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeTabletTypeResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddCellInfoResponse + * @returns ChangeTabletTypeResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.AddCellInfoResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeResponse; /** - * Creates a plain object from an AddCellInfoResponse message. Also converts values to other types if specified. - * @param message AddCellInfoResponse + * 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.AddCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ChangeTabletTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddCellInfoResponse to JSON. + * Converts this ChangeTabletTypeResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddCellInfoResponse + * 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 an AddCellsAliasRequest. */ - interface IAddCellsAliasRequest { + /** Properties of a CheckThrottlerRequest. */ + interface ICheckThrottlerRequest { - /** AddCellsAliasRequest name */ - name?: (string|null); + /** CheckThrottlerRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); - /** AddCellsAliasRequest cells */ - cells?: (string[]|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 an AddCellsAliasRequest. */ - class AddCellsAliasRequest implements IAddCellsAliasRequest { + /** Represents a CheckThrottlerRequest. */ + class CheckThrottlerRequest implements ICheckThrottlerRequest { /** - * Constructs a new AddCellsAliasRequest. + * Constructs a new CheckThrottlerRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IAddCellsAliasRequest); + constructor(properties?: vtctldata.ICheckThrottlerRequest); - /** AddCellsAliasRequest name. */ - public name: string; + /** CheckThrottlerRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); - /** AddCellsAliasRequest cells. */ - public cells: string[]; + /** 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 AddCellsAliasRequest instance using the specified properties. + * Creates a new CheckThrottlerRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AddCellsAliasRequest instance + * @returns CheckThrottlerRequest instance */ - public static create(properties?: vtctldata.IAddCellsAliasRequest): vtctldata.AddCellsAliasRequest; + public static create(properties?: vtctldata.ICheckThrottlerRequest): vtctldata.CheckThrottlerRequest; /** - * Encodes the specified AddCellsAliasRequest message. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. - * @param message AddCellsAliasRequest message or plain object to encode + * 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.IAddCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICheckThrottlerRequest, 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 + * 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.IAddCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICheckThrottlerRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddCellsAliasRequest message from the specified reader or buffer. + * 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 AddCellsAliasRequest + * @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.AddCellsAliasRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CheckThrottlerRequest; /** - * Decodes an AddCellsAliasRequest message from the specified reader or buffer, length delimited. + * Decodes a CheckThrottlerRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddCellsAliasRequest + * @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.AddCellsAliasRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CheckThrottlerRequest; /** - * Verifies an AddCellsAliasRequest message. + * 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 an AddCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CheckThrottlerRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddCellsAliasRequest + * @returns CheckThrottlerRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.AddCellsAliasRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.CheckThrottlerRequest; /** - * Creates a plain object from an AddCellsAliasRequest message. Also converts values to other types if specified. - * @param message AddCellsAliasRequest + * 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.AddCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CheckThrottlerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddCellsAliasRequest to JSON. + * Converts this CheckThrottlerRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddCellsAliasRequest + * 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 an AddCellsAliasResponse. */ - interface IAddCellsAliasResponse { + /** Properties of a CheckThrottlerResponse. */ + interface ICheckThrottlerResponse { + + /** CheckThrottlerResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** CheckThrottlerResponse Check */ + Check?: (tabletmanagerdata.ICheckThrottlerResponse|null); } - /** Represents an AddCellsAliasResponse. */ - class AddCellsAliasResponse implements IAddCellsAliasResponse { + /** Represents a CheckThrottlerResponse. */ + class CheckThrottlerResponse implements ICheckThrottlerResponse { /** - * Constructs a new AddCellsAliasResponse. + * Constructs a new CheckThrottlerResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IAddCellsAliasResponse); + constructor(properties?: vtctldata.ICheckThrottlerResponse); + + /** CheckThrottlerResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** CheckThrottlerResponse Check. */ + public Check?: (tabletmanagerdata.ICheckThrottlerResponse|null); /** - * Creates a new AddCellsAliasResponse instance using the specified properties. + * Creates a new CheckThrottlerResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AddCellsAliasResponse instance + * @returns CheckThrottlerResponse instance */ - public static create(properties?: vtctldata.IAddCellsAliasResponse): vtctldata.AddCellsAliasResponse; + public static create(properties?: vtctldata.ICheckThrottlerResponse): vtctldata.CheckThrottlerResponse; /** - * Encodes the specified AddCellsAliasResponse message. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. - * @param message AddCellsAliasResponse message or plain object to encode + * 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.IAddCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICheckThrottlerResponse, 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 + * 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.IAddCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICheckThrottlerResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddCellsAliasResponse message from the specified reader or buffer. + * 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 AddCellsAliasResponse + * @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.AddCellsAliasResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CheckThrottlerResponse; /** - * Decodes an AddCellsAliasResponse message from the specified reader or buffer, length delimited. + * Decodes a CheckThrottlerResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddCellsAliasResponse + * @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.AddCellsAliasResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CheckThrottlerResponse; /** - * Verifies an AddCellsAliasResponse message. + * 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 an AddCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CheckThrottlerResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddCellsAliasResponse + * @returns CheckThrottlerResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.AddCellsAliasResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.CheckThrottlerResponse; /** - * Creates a plain object from an AddCellsAliasResponse message. Also converts values to other types if specified. - * @param message AddCellsAliasResponse + * 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.AddCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CheckThrottlerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddCellsAliasResponse to JSON. + * Converts this CheckThrottlerResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddCellsAliasResponse + * 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 an ApplyKeyspaceRoutingRulesRequest. */ - interface IApplyKeyspaceRoutingRulesRequest { + /** Properties of a CleanupSchemaMigrationRequest. */ + interface ICleanupSchemaMigrationRequest { - /** ApplyKeyspaceRoutingRulesRequest keyspace_routing_rules */ - keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + /** CleanupSchemaMigrationRequest keyspace */ + keyspace?: (string|null); - /** ApplyKeyspaceRoutingRulesRequest skip_rebuild */ - skip_rebuild?: (boolean|null); + /** CleanupSchemaMigrationRequest uuid */ + uuid?: (string|null); - /** ApplyKeyspaceRoutingRulesRequest rebuild_cells */ - rebuild_cells?: (string[]|null); + /** CleanupSchemaMigrationRequest caller_id */ + caller_id?: (vtrpc.ICallerID|null); } - /** Represents an ApplyKeyspaceRoutingRulesRequest. */ - class ApplyKeyspaceRoutingRulesRequest implements IApplyKeyspaceRoutingRulesRequest { + /** Represents a CleanupSchemaMigrationRequest. */ + class CleanupSchemaMigrationRequest implements ICleanupSchemaMigrationRequest { /** - * Constructs a new ApplyKeyspaceRoutingRulesRequest. + * Constructs a new CleanupSchemaMigrationRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IApplyKeyspaceRoutingRulesRequest); + constructor(properties?: vtctldata.ICleanupSchemaMigrationRequest); - /** ApplyKeyspaceRoutingRulesRequest keyspace_routing_rules. */ - public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + /** CleanupSchemaMigrationRequest keyspace. */ + public keyspace: string; - /** ApplyKeyspaceRoutingRulesRequest skip_rebuild. */ - public skip_rebuild: boolean; + /** CleanupSchemaMigrationRequest uuid. */ + public uuid: string; - /** ApplyKeyspaceRoutingRulesRequest rebuild_cells. */ - public rebuild_cells: string[]; + /** CleanupSchemaMigrationRequest caller_id. */ + public caller_id?: (vtrpc.ICallerID|null); /** - * Creates a new ApplyKeyspaceRoutingRulesRequest instance using the specified properties. + * Creates a new CleanupSchemaMigrationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ApplyKeyspaceRoutingRulesRequest instance + * @returns CleanupSchemaMigrationRequest instance */ - public static create(properties?: vtctldata.IApplyKeyspaceRoutingRulesRequest): vtctldata.ApplyKeyspaceRoutingRulesRequest; + public static create(properties?: vtctldata.ICleanupSchemaMigrationRequest): vtctldata.CleanupSchemaMigrationRequest; /** - * Encodes the specified ApplyKeyspaceRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesRequest.verify|verify} messages. - * @param message ApplyKeyspaceRoutingRulesRequest message or plain object to encode + * 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.IApplyKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICleanupSchemaMigrationRequest, 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 + * 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.IApplyKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICleanupSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplyKeyspaceRoutingRulesRequest message from the specified reader or buffer. + * 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 ApplyKeyspaceRoutingRulesRequest + * @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.ApplyKeyspaceRoutingRulesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CleanupSchemaMigrationRequest; /** - * Decodes an ApplyKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplyKeyspaceRoutingRulesRequest + * @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.ApplyKeyspaceRoutingRulesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CleanupSchemaMigrationRequest; /** - * Verifies an ApplyKeyspaceRoutingRulesRequest message. + * 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 an ApplyKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CleanupSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApplyKeyspaceRoutingRulesRequest + * @returns CleanupSchemaMigrationRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyKeyspaceRoutingRulesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.CleanupSchemaMigrationRequest; /** - * Creates a plain object from an ApplyKeyspaceRoutingRulesRequest message. Also converts values to other types if specified. - * @param message ApplyKeyspaceRoutingRulesRequest + * 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.ApplyKeyspaceRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CleanupSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApplyKeyspaceRoutingRulesRequest to JSON. + * Converts this CleanupSchemaMigrationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApplyKeyspaceRoutingRulesRequest + * 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 an ApplyKeyspaceRoutingRulesResponse. */ - interface IApplyKeyspaceRoutingRulesResponse { + /** Properties of a CleanupSchemaMigrationResponse. */ + interface ICleanupSchemaMigrationResponse { - /** ApplyKeyspaceRoutingRulesResponse keyspace_routing_rules */ - keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + /** CleanupSchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); } - /** Represents an ApplyKeyspaceRoutingRulesResponse. */ - class ApplyKeyspaceRoutingRulesResponse implements IApplyKeyspaceRoutingRulesResponse { + /** Represents a CleanupSchemaMigrationResponse. */ + class CleanupSchemaMigrationResponse implements ICleanupSchemaMigrationResponse { /** - * Constructs a new ApplyKeyspaceRoutingRulesResponse. + * Constructs a new CleanupSchemaMigrationResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IApplyKeyspaceRoutingRulesResponse); + constructor(properties?: vtctldata.ICleanupSchemaMigrationResponse); - /** ApplyKeyspaceRoutingRulesResponse keyspace_routing_rules. */ - public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + /** CleanupSchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; /** - * Creates a new ApplyKeyspaceRoutingRulesResponse instance using the specified properties. + * Creates a new CleanupSchemaMigrationResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ApplyKeyspaceRoutingRulesResponse instance + * @returns CleanupSchemaMigrationResponse instance */ - public static create(properties?: vtctldata.IApplyKeyspaceRoutingRulesResponse): vtctldata.ApplyKeyspaceRoutingRulesResponse; + public static create(properties?: vtctldata.ICleanupSchemaMigrationResponse): vtctldata.CleanupSchemaMigrationResponse; /** - * Encodes the specified ApplyKeyspaceRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesResponse.verify|verify} messages. - * @param message ApplyKeyspaceRoutingRulesResponse message or plain object to encode + * 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.IApplyKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICleanupSchemaMigrationResponse, 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 + * 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.IApplyKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICleanupSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplyKeyspaceRoutingRulesResponse message from the specified reader or buffer. + * 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 ApplyKeyspaceRoutingRulesResponse + * @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.ApplyKeyspaceRoutingRulesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CleanupSchemaMigrationResponse; /** - * Decodes an ApplyKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplyKeyspaceRoutingRulesResponse + * @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.ApplyKeyspaceRoutingRulesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CleanupSchemaMigrationResponse; /** - * Verifies an ApplyKeyspaceRoutingRulesResponse message. + * 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 an ApplyKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CleanupSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApplyKeyspaceRoutingRulesResponse + * @returns CleanupSchemaMigrationResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyKeyspaceRoutingRulesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.CleanupSchemaMigrationResponse; /** - * Creates a plain object from an ApplyKeyspaceRoutingRulesResponse message. Also converts values to other types if specified. - * @param message ApplyKeyspaceRoutingRulesResponse + * 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.ApplyKeyspaceRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CleanupSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApplyKeyspaceRoutingRulesResponse to JSON. + * Converts this CleanupSchemaMigrationResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApplyKeyspaceRoutingRulesResponse + * 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 an ApplyRoutingRulesRequest. */ - interface IApplyRoutingRulesRequest { + /** Properties of a CompleteSchemaMigrationRequest. */ + interface ICompleteSchemaMigrationRequest { - /** ApplyRoutingRulesRequest routing_rules */ - routing_rules?: (vschema.IRoutingRules|null); + /** CompleteSchemaMigrationRequest keyspace */ + keyspace?: (string|null); - /** ApplyRoutingRulesRequest skip_rebuild */ - skip_rebuild?: (boolean|null); + /** CompleteSchemaMigrationRequest uuid */ + uuid?: (string|null); - /** ApplyRoutingRulesRequest rebuild_cells */ - rebuild_cells?: (string[]|null); + /** CompleteSchemaMigrationRequest caller_id */ + caller_id?: (vtrpc.ICallerID|null); } - /** Represents an ApplyRoutingRulesRequest. */ - class ApplyRoutingRulesRequest implements IApplyRoutingRulesRequest { + /** Represents a CompleteSchemaMigrationRequest. */ + class CompleteSchemaMigrationRequest implements ICompleteSchemaMigrationRequest { /** - * Constructs a new ApplyRoutingRulesRequest. + * Constructs a new CompleteSchemaMigrationRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IApplyRoutingRulesRequest); + constructor(properties?: vtctldata.ICompleteSchemaMigrationRequest); - /** ApplyRoutingRulesRequest routing_rules. */ - public routing_rules?: (vschema.IRoutingRules|null); + /** CompleteSchemaMigrationRequest keyspace. */ + public keyspace: string; - /** ApplyRoutingRulesRequest skip_rebuild. */ - public skip_rebuild: boolean; + /** CompleteSchemaMigrationRequest uuid. */ + public uuid: string; - /** ApplyRoutingRulesRequest rebuild_cells. */ - public rebuild_cells: string[]; + /** CompleteSchemaMigrationRequest caller_id. */ + public caller_id?: (vtrpc.ICallerID|null); /** - * Creates a new ApplyRoutingRulesRequest instance using the specified properties. + * Creates a new CompleteSchemaMigrationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ApplyRoutingRulesRequest instance + * @returns CompleteSchemaMigrationRequest instance */ - public static create(properties?: vtctldata.IApplyRoutingRulesRequest): vtctldata.ApplyRoutingRulesRequest; + public static create(properties?: vtctldata.ICompleteSchemaMigrationRequest): vtctldata.CompleteSchemaMigrationRequest; /** - * Encodes the specified ApplyRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. - * @param message ApplyRoutingRulesRequest message or plain object to encode + * 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.IApplyRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICompleteSchemaMigrationRequest, 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 + * 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.IApplyRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICompleteSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer. + * 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 ApplyRoutingRulesRequest + * @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.ApplyRoutingRulesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CompleteSchemaMigrationRequest; /** - * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplyRoutingRulesRequest + * @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.ApplyRoutingRulesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CompleteSchemaMigrationRequest; /** - * Verifies an ApplyRoutingRulesRequest message. + * 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 an ApplyRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CompleteSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApplyRoutingRulesRequest + * @returns CompleteSchemaMigrationRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyRoutingRulesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.CompleteSchemaMigrationRequest; /** - * Creates a plain object from an ApplyRoutingRulesRequest message. Also converts values to other types if specified. - * @param message ApplyRoutingRulesRequest + * 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.ApplyRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CompleteSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApplyRoutingRulesRequest to JSON. + * Converts this CompleteSchemaMigrationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApplyRoutingRulesRequest + * 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 an ApplyRoutingRulesResponse. */ - interface IApplyRoutingRulesResponse { + /** Properties of a CompleteSchemaMigrationResponse. */ + interface ICompleteSchemaMigrationResponse { + + /** CompleteSchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); } - /** Represents an ApplyRoutingRulesResponse. */ - class ApplyRoutingRulesResponse implements IApplyRoutingRulesResponse { + /** Represents a CompleteSchemaMigrationResponse. */ + class CompleteSchemaMigrationResponse implements ICompleteSchemaMigrationResponse { /** - * Constructs a new ApplyRoutingRulesResponse. + * Constructs a new CompleteSchemaMigrationResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IApplyRoutingRulesResponse); + constructor(properties?: vtctldata.ICompleteSchemaMigrationResponse); + + /** CompleteSchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; /** - * Creates a new ApplyRoutingRulesResponse instance using the specified properties. + * Creates a new CompleteSchemaMigrationResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ApplyRoutingRulesResponse instance + * @returns CompleteSchemaMigrationResponse instance */ - public static create(properties?: vtctldata.IApplyRoutingRulesResponse): vtctldata.ApplyRoutingRulesResponse; + public static create(properties?: vtctldata.ICompleteSchemaMigrationResponse): vtctldata.CompleteSchemaMigrationResponse; /** - * Encodes the specified ApplyRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. - * @param message ApplyRoutingRulesResponse message or plain object to encode + * 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.IApplyRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICompleteSchemaMigrationResponse, 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 + * 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.IApplyRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICompleteSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer. + * 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 ApplyRoutingRulesResponse + * @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.ApplyRoutingRulesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CompleteSchemaMigrationResponse; /** - * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplyRoutingRulesResponse + * @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.ApplyRoutingRulesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CompleteSchemaMigrationResponse; /** - * Verifies an ApplyRoutingRulesResponse message. + * 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 an ApplyRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CompleteSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApplyRoutingRulesResponse + * @returns CompleteSchemaMigrationResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyRoutingRulesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.CompleteSchemaMigrationResponse; /** - * Creates a plain object from an ApplyRoutingRulesResponse message. Also converts values to other types if specified. - * @param message ApplyRoutingRulesResponse + * 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.ApplyRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CompleteSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApplyRoutingRulesResponse to JSON. + * Converts this CompleteSchemaMigrationResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApplyRoutingRulesResponse + * 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 an ApplyShardRoutingRulesRequest. */ - interface IApplyShardRoutingRulesRequest { + /** Properties of a CopySchemaShardRequest. */ + interface ICopySchemaShardRequest { - /** ApplyShardRoutingRulesRequest shard_routing_rules */ - shard_routing_rules?: (vschema.IShardRoutingRules|null); + /** CopySchemaShardRequest source_tablet_alias */ + source_tablet_alias?: (topodata.ITabletAlias|null); - /** ApplyShardRoutingRulesRequest skip_rebuild */ - skip_rebuild?: (boolean|null); + /** CopySchemaShardRequest tables */ + tables?: (string[]|null); - /** ApplyShardRoutingRulesRequest rebuild_cells */ - rebuild_cells?: (string[]|null); + /** CopySchemaShardRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** CopySchemaShardRequest include_views */ + include_views?: (boolean|null); + + /** CopySchemaShardRequest skip_verify */ + skip_verify?: (boolean|null); + + /** CopySchemaShardRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); + + /** CopySchemaShardRequest destination_keyspace */ + destination_keyspace?: (string|null); + + /** CopySchemaShardRequest destination_shard */ + destination_shard?: (string|null); } - /** Represents an ApplyShardRoutingRulesRequest. */ - class ApplyShardRoutingRulesRequest implements IApplyShardRoutingRulesRequest { + /** Represents a CopySchemaShardRequest. */ + class CopySchemaShardRequest implements ICopySchemaShardRequest { /** - * Constructs a new ApplyShardRoutingRulesRequest. + * Constructs a new CopySchemaShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IApplyShardRoutingRulesRequest); + constructor(properties?: vtctldata.ICopySchemaShardRequest); - /** ApplyShardRoutingRulesRequest shard_routing_rules. */ - public shard_routing_rules?: (vschema.IShardRoutingRules|null); + /** CopySchemaShardRequest source_tablet_alias. */ + public source_tablet_alias?: (topodata.ITabletAlias|null); - /** ApplyShardRoutingRulesRequest skip_rebuild. */ - public skip_rebuild: boolean; + /** CopySchemaShardRequest tables. */ + public tables: string[]; - /** ApplyShardRoutingRulesRequest rebuild_cells. */ - public rebuild_cells: string[]; + /** CopySchemaShardRequest exclude_tables. */ + public exclude_tables: string[]; + + /** CopySchemaShardRequest include_views. */ + public include_views: boolean; + + /** CopySchemaShardRequest skip_verify. */ + public skip_verify: boolean; + + /** CopySchemaShardRequest wait_replicas_timeout. */ + public wait_replicas_timeout?: (vttime.IDuration|null); + + /** CopySchemaShardRequest destination_keyspace. */ + public destination_keyspace: string; + + /** CopySchemaShardRequest destination_shard. */ + public destination_shard: string; /** - * Creates a new ApplyShardRoutingRulesRequest instance using the specified properties. + * Creates a new CopySchemaShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ApplyShardRoutingRulesRequest instance + * @returns CopySchemaShardRequest instance */ - public static create(properties?: vtctldata.IApplyShardRoutingRulesRequest): vtctldata.ApplyShardRoutingRulesRequest; + public static create(properties?: vtctldata.ICopySchemaShardRequest): vtctldata.CopySchemaShardRequest; /** - * Encodes the specified ApplyShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. - * @param message ApplyShardRoutingRulesRequest message or plain object to encode + * Encodes the specified CopySchemaShardRequest message. Does not implicitly {@link vtctldata.CopySchemaShardRequest.verify|verify} messages. + * @param message CopySchemaShardRequest 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; + public static encode(message: vtctldata.ICopySchemaShardRequest, 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 + * Encodes the specified CopySchemaShardRequest message, length delimited. Does not implicitly {@link vtctldata.CopySchemaShardRequest.verify|verify} messages. + * @param message CopySchemaShardRequest 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; + public static encodeDelimited(message: vtctldata.ICopySchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer. + * Decodes a CopySchemaShardRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ApplyShardRoutingRulesRequest + * @returns CopySchemaShardRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CopySchemaShardRequest; /** - * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes a CopySchemaShardRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplyShardRoutingRulesRequest + * @returns CopySchemaShardRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CopySchemaShardRequest; /** - * Verifies an ApplyShardRoutingRulesRequest message. + * Verifies a CopySchemaShardRequest message. * @param message Plain 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. + * Creates a CopySchemaShardRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApplyShardRoutingRulesRequest + * @returns CopySchemaShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyShardRoutingRulesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.CopySchemaShardRequest; /** - * Creates a plain object from an ApplyShardRoutingRulesRequest message. Also converts values to other types if specified. - * @param message ApplyShardRoutingRulesRequest + * Creates a plain object from a CopySchemaShardRequest message. Also converts values to other types if specified. + * @param message CopySchemaShardRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ApplyShardRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CopySchemaShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApplyShardRoutingRulesRequest to JSON. + * Converts this CopySchemaShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApplyShardRoutingRulesRequest + * Gets the default type url for CopySchemaShardRequest * @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 { + /** Properties of a CopySchemaShardResponse. */ + interface ICopySchemaShardResponse { } - /** Represents an ApplyShardRoutingRulesResponse. */ - class ApplyShardRoutingRulesResponse implements IApplyShardRoutingRulesResponse { + /** Represents a CopySchemaShardResponse. */ + class CopySchemaShardResponse implements ICopySchemaShardResponse { /** - * Constructs a new ApplyShardRoutingRulesResponse. + * Constructs a new CopySchemaShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IApplyShardRoutingRulesResponse); + constructor(properties?: vtctldata.ICopySchemaShardResponse); /** - * Creates a new ApplyShardRoutingRulesResponse instance using the specified properties. + * Creates a new CopySchemaShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ApplyShardRoutingRulesResponse instance + * @returns CopySchemaShardResponse instance */ - public static create(properties?: vtctldata.IApplyShardRoutingRulesResponse): vtctldata.ApplyShardRoutingRulesResponse; + public static create(properties?: vtctldata.ICopySchemaShardResponse): vtctldata.CopySchemaShardResponse; /** - * Encodes the specified ApplyShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. - * @param message ApplyShardRoutingRulesResponse message or plain object to encode + * Encodes the specified CopySchemaShardResponse message. Does not implicitly {@link vtctldata.CopySchemaShardResponse.verify|verify} messages. + * @param message CopySchemaShardResponse 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; + public static encode(message: vtctldata.ICopySchemaShardResponse, 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 + * Encodes the specified CopySchemaShardResponse message, length delimited. Does not implicitly {@link vtctldata.CopySchemaShardResponse.verify|verify} messages. + * @param message CopySchemaShardResponse 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; + public static encodeDelimited(message: vtctldata.ICopySchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer. + * Decodes a CopySchemaShardResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ApplyShardRoutingRulesResponse + * @returns CopySchemaShardResponse * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CopySchemaShardResponse; /** - * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes a CopySchemaShardResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplyShardRoutingRulesResponse + * @returns CopySchemaShardResponse * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CopySchemaShardResponse; /** - * Verifies an ApplyShardRoutingRulesResponse message. + * Verifies a CopySchemaShardResponse message. * @param message Plain 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. + * Creates a CopySchemaShardResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApplyShardRoutingRulesResponse + * @returns CopySchemaShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyShardRoutingRulesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.CopySchemaShardResponse; - /** - * Creates a plain object from an ApplyShardRoutingRulesResponse message. Also converts values to other types if specified. - * @param message ApplyShardRoutingRulesResponse + /** + * Creates a plain object from a CopySchemaShardResponse message. Also converts values to other types if specified. + * @param message CopySchemaShardResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ApplyShardRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CopySchemaShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApplyShardRoutingRulesResponse to JSON. + * Converts this CopySchemaShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApplyShardRoutingRulesResponse + * Gets the default type url for CopySchemaShardResponse * @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 { + /** Properties of a CreateKeyspaceRequest. */ + interface ICreateKeyspaceRequest { - /** ApplySchemaRequest keyspace */ - keyspace?: (string|null); + /** CreateKeyspaceRequest name */ + name?: (string|null); - /** ApplySchemaRequest sql */ - sql?: (string[]|null); + /** CreateKeyspaceRequest force */ + force?: (boolean|null); - /** ApplySchemaRequest ddl_strategy */ - ddl_strategy?: (string|null); + /** CreateKeyspaceRequest allow_empty_v_schema */ + allow_empty_v_schema?: (boolean|null); - /** ApplySchemaRequest uuid_list */ - uuid_list?: (string[]|null); + /** CreateKeyspaceRequest type */ + type?: (topodata.KeyspaceType|null); - /** ApplySchemaRequest migration_context */ - migration_context?: (string|null); + /** CreateKeyspaceRequest base_keyspace */ + base_keyspace?: (string|null); - /** ApplySchemaRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); + /** CreateKeyspaceRequest snapshot_time */ + snapshot_time?: (vttime.ITime|null); - /** ApplySchemaRequest caller_id */ - caller_id?: (vtrpc.ICallerID|null); + /** CreateKeyspaceRequest durability_policy */ + durability_policy?: (string|null); - /** ApplySchemaRequest batch_size */ - batch_size?: (number|Long|null); + /** CreateKeyspaceRequest sidecar_db_name */ + sidecar_db_name?: (string|null); } - /** Represents an ApplySchemaRequest. */ - class ApplySchemaRequest implements IApplySchemaRequest { + /** Represents a CreateKeyspaceRequest. */ + class CreateKeyspaceRequest implements ICreateKeyspaceRequest { /** - * Constructs a new ApplySchemaRequest. + * Constructs a new CreateKeyspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IApplySchemaRequest); + constructor(properties?: vtctldata.ICreateKeyspaceRequest); - /** ApplySchemaRequest keyspace. */ - public keyspace: string; + /** CreateKeyspaceRequest name. */ + public name: string; - /** ApplySchemaRequest sql. */ - public sql: string[]; + /** CreateKeyspaceRequest force. */ + public force: boolean; - /** ApplySchemaRequest ddl_strategy. */ - public ddl_strategy: string; + /** CreateKeyspaceRequest allow_empty_v_schema. */ + public allow_empty_v_schema: boolean; - /** ApplySchemaRequest uuid_list. */ - public uuid_list: string[]; + /** CreateKeyspaceRequest type. */ + public type: topodata.KeyspaceType; - /** ApplySchemaRequest migration_context. */ - public migration_context: string; + /** CreateKeyspaceRequest base_keyspace. */ + public base_keyspace: string; - /** ApplySchemaRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); + /** CreateKeyspaceRequest snapshot_time. */ + public snapshot_time?: (vttime.ITime|null); - /** ApplySchemaRequest caller_id. */ - public caller_id?: (vtrpc.ICallerID|null); + /** CreateKeyspaceRequest durability_policy. */ + public durability_policy: string; - /** ApplySchemaRequest batch_size. */ - public batch_size: (number|Long); + /** CreateKeyspaceRequest sidecar_db_name. */ + public sidecar_db_name: string; /** - * Creates a new ApplySchemaRequest instance using the specified properties. + * Creates a new CreateKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ApplySchemaRequest instance + * @returns CreateKeyspaceRequest instance */ - public static create(properties?: vtctldata.IApplySchemaRequest): vtctldata.ApplySchemaRequest; + public static create(properties?: vtctldata.ICreateKeyspaceRequest): vtctldata.CreateKeyspaceRequest; /** - * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. - * @param message ApplySchemaRequest message or plain object to encode + * 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.IApplySchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICreateKeyspaceRequest, 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 + * 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.IApplySchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer. + * 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 ApplySchemaRequest + * @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.ApplySchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceRequest; /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplySchemaRequest + * @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.ApplySchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceRequest; /** - * Verifies an ApplySchemaRequest message. + * 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 an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApplySchemaRequest + * @returns CreateKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplySchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceRequest; /** - * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. - * @param message ApplySchemaRequest + * 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.ApplySchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CreateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApplySchemaRequest to JSON. + * Converts this CreateKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApplySchemaRequest + * 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 an ApplySchemaResponse. */ - interface IApplySchemaResponse { - - /** ApplySchemaResponse uuid_list */ - uuid_list?: (string[]|null); + /** Properties of a CreateKeyspaceResponse. */ + interface ICreateKeyspaceResponse { - /** ApplySchemaResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + /** CreateKeyspaceResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); } - /** Represents an ApplySchemaResponse. */ - class ApplySchemaResponse implements IApplySchemaResponse { + /** Represents a CreateKeyspaceResponse. */ + class CreateKeyspaceResponse implements ICreateKeyspaceResponse { /** - * Constructs a new ApplySchemaResponse. + * Constructs a new CreateKeyspaceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IApplySchemaResponse); - - /** ApplySchemaResponse uuid_list. */ - public uuid_list: string[]; + constructor(properties?: vtctldata.ICreateKeyspaceResponse); - /** ApplySchemaResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; + /** CreateKeyspaceResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); /** - * Creates a new ApplySchemaResponse instance using the specified properties. + * Creates a new CreateKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ApplySchemaResponse instance + * @returns CreateKeyspaceResponse instance */ - public static create(properties?: vtctldata.IApplySchemaResponse): vtctldata.ApplySchemaResponse; + public static create(properties?: vtctldata.ICreateKeyspaceResponse): vtctldata.CreateKeyspaceResponse; /** - * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. - * @param message ApplySchemaResponse message or plain object to encode + * 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.IApplySchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICreateKeyspaceResponse, 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 + * 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.IApplySchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer. + * 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 ApplySchemaResponse + * @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.ApplySchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceResponse; /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplySchemaResponse + * @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.ApplySchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceResponse; /** - * Verifies an ApplySchemaResponse message. + * 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 an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApplySchemaResponse + * @returns CreateKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplySchemaResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceResponse; /** - * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. - * @param message ApplySchemaResponse + * 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.ApplySchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CreateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApplySchemaResponse to JSON. + * Converts this CreateKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApplySchemaResponse + * 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 an ApplyVSchemaRequest. */ - interface IApplyVSchemaRequest { + /** Properties of a CreateShardRequest. */ + interface ICreateShardRequest { - /** ApplyVSchemaRequest keyspace */ + /** CreateShardRequest 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); + /** CreateShardRequest shard_name */ + shard_name?: (string|null); - /** ApplyVSchemaRequest sql */ - sql?: (string|null); + /** CreateShardRequest force */ + force?: (boolean|null); - /** ApplyVSchemaRequest strict */ - strict?: (boolean|null); + /** CreateShardRequest include_parent */ + include_parent?: (boolean|null); } - /** Represents an ApplyVSchemaRequest. */ - class ApplyVSchemaRequest implements IApplyVSchemaRequest { + /** Represents a CreateShardRequest. */ + class CreateShardRequest implements ICreateShardRequest { /** - * Constructs a new ApplyVSchemaRequest. + * Constructs a new CreateShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IApplyVSchemaRequest); + constructor(properties?: vtctldata.ICreateShardRequest); - /** ApplyVSchemaRequest keyspace. */ + /** CreateShardRequest 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); + /** CreateShardRequest shard_name. */ + public shard_name: string; - /** ApplyVSchemaRequest sql. */ - public sql: string; + /** CreateShardRequest force. */ + public force: boolean; - /** ApplyVSchemaRequest strict. */ - public strict: boolean; + /** CreateShardRequest include_parent. */ + public include_parent: boolean; /** - * Creates a new ApplyVSchemaRequest instance using the specified properties. + * Creates a new CreateShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ApplyVSchemaRequest instance + * @returns CreateShardRequest instance */ - public static create(properties?: vtctldata.IApplyVSchemaRequest): vtctldata.ApplyVSchemaRequest; + public static create(properties?: vtctldata.ICreateShardRequest): vtctldata.CreateShardRequest; /** - * Encodes the specified ApplyVSchemaRequest message. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. - * @param message ApplyVSchemaRequest message or plain object to encode + * 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.IApplyVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICreateShardRequest, 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 + * 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.IApplyVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplyVSchemaRequest message from the specified reader or buffer. + * 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 ApplyVSchemaRequest + * @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.ApplyVSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardRequest; /** - * Decodes an ApplyVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplyVSchemaRequest + * @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.ApplyVSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardRequest; /** - * Verifies an ApplyVSchemaRequest message. + * 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 an ApplyVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateShardRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApplyVSchemaRequest + * @returns CreateShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyVSchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardRequest; /** - * Creates a plain object from an ApplyVSchemaRequest message. Also converts values to other types if specified. - * @param message ApplyVSchemaRequest + * 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.ApplyVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CreateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApplyVSchemaRequest to JSON. + * Converts this CreateShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApplyVSchemaRequest + * 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 an ApplyVSchemaResponse. */ - interface IApplyVSchemaResponse { + /** Properties of a CreateShardResponse. */ + interface ICreateShardResponse { - /** ApplyVSchemaResponse v_schema */ - v_schema?: (vschema.IKeyspace|null); + /** CreateShardResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); - /** ApplyVSchemaResponse unknown_vindex_params */ - unknown_vindex_params?: ({ [k: string]: vtctldata.ApplyVSchemaResponse.IParamList }|null); + /** CreateShardResponse shard */ + shard?: (vtctldata.IShard|null); + + /** CreateShardResponse shard_already_exists */ + shard_already_exists?: (boolean|null); } - /** Represents an ApplyVSchemaResponse. */ - class ApplyVSchemaResponse implements IApplyVSchemaResponse { + /** Represents a CreateShardResponse. */ + class CreateShardResponse implements ICreateShardResponse { /** - * Constructs a new ApplyVSchemaResponse. + * Constructs a new CreateShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IApplyVSchemaResponse); + constructor(properties?: vtctldata.ICreateShardResponse); - /** ApplyVSchemaResponse v_schema. */ - public v_schema?: (vschema.IKeyspace|null); + /** CreateShardResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); - /** ApplyVSchemaResponse unknown_vindex_params. */ - public unknown_vindex_params: { [k: string]: vtctldata.ApplyVSchemaResponse.IParamList }; + /** CreateShardResponse shard. */ + public shard?: (vtctldata.IShard|null); + + /** CreateShardResponse shard_already_exists. */ + public shard_already_exists: boolean; /** - * Creates a new ApplyVSchemaResponse instance using the specified properties. + * Creates a new CreateShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ApplyVSchemaResponse instance + * @returns CreateShardResponse instance */ - public static create(properties?: vtctldata.IApplyVSchemaResponse): vtctldata.ApplyVSchemaResponse; + public static create(properties?: vtctldata.ICreateShardResponse): vtctldata.CreateShardResponse; /** - * Encodes the specified ApplyVSchemaResponse message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. - * @param message ApplyVSchemaResponse message or plain object to encode + * 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.IApplyVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICreateShardResponse, 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 + * 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.IApplyVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApplyVSchemaResponse message from the specified reader or buffer. + * 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 ApplyVSchemaResponse + * @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.ApplyVSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardResponse; /** - * Decodes an ApplyVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ApplyVSchemaResponse + * @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.ApplyVSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardResponse; /** - * Verifies an ApplyVSchemaResponse message. + * 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 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 { + public static verify(message: { [k: string]: any }): (string|null); - /** BackupRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|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; - /** BackupRequest allow_primary */ - allow_primary?: (boolean|null); + /** + * 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 }; - /** BackupRequest concurrency */ - concurrency?: (number|null); + /** + * Converts this CreateShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** BackupRequest incremental_from_pos */ - incremental_from_pos?: (string|null); + /** + * 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; + } - /** BackupRequest upgrade_safe */ - upgrade_safe?: (boolean|null); + /** Properties of a DeleteCellInfoRequest. */ + interface IDeleteCellInfoRequest { - /** BackupRequest backup_engine */ - backup_engine?: (string|null); + /** DeleteCellInfoRequest name */ + name?: (string|null); - /** BackupRequest mysql_shutdown_timeout */ - mysql_shutdown_timeout?: (vttime.IDuration|null); + /** DeleteCellInfoRequest force */ + force?: (boolean|null); } - /** Represents a BackupRequest. */ - class BackupRequest implements IBackupRequest { + /** Represents a DeleteCellInfoRequest. */ + class DeleteCellInfoRequest implements IDeleteCellInfoRequest { /** - * Constructs a new BackupRequest. + * Constructs a new DeleteCellInfoRequest. * @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; + constructor(properties?: vtctldata.IDeleteCellInfoRequest); - /** BackupRequest backup_engine. */ - public backup_engine?: (string|null); + /** DeleteCellInfoRequest name. */ + public name: string; - /** BackupRequest mysql_shutdown_timeout. */ - public mysql_shutdown_timeout?: (vttime.IDuration|null); + /** DeleteCellInfoRequest force. */ + public force: boolean; /** - * Creates a new BackupRequest instance using the specified properties. + * Creates a new DeleteCellInfoRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BackupRequest instance + * @returns DeleteCellInfoRequest instance */ - public static create(properties?: vtctldata.IBackupRequest): vtctldata.BackupRequest; + public static create(properties?: vtctldata.IDeleteCellInfoRequest): vtctldata.DeleteCellInfoRequest; /** - * Encodes the specified BackupRequest message. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. - * @param message BackupRequest message or plain object to encode + * 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.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteCellInfoRequest, 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 + * 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.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BackupRequest message from the specified reader or buffer. + * 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 BackupRequest + * @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.BackupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellInfoRequest; /** - * Decodes a BackupRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteCellInfoRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BackupRequest + * @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.BackupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellInfoRequest; /** - * Verifies a BackupRequest message. + * 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 BackupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCellInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BackupRequest + * @returns DeleteCellInfoRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.BackupRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellInfoRequest; /** - * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. - * @param message BackupRequest + * 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.BackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BackupRequest to JSON. + * Converts this DeleteCellInfoRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BackupRequest + * 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 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); + /** Properties of a DeleteCellInfoResponse. */ + interface IDeleteCellInfoResponse { } - /** Represents a BackupResponse. */ - class BackupResponse implements IBackupResponse { + /** Represents a DeleteCellInfoResponse. */ + class DeleteCellInfoResponse implements IDeleteCellInfoResponse { /** - * Constructs a new BackupResponse. + * Constructs a new DeleteCellInfoResponse. * @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); + constructor(properties?: vtctldata.IDeleteCellInfoResponse); /** - * Creates a new BackupResponse instance using the specified properties. + * Creates a new DeleteCellInfoResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BackupResponse instance + * @returns DeleteCellInfoResponse instance */ - public static create(properties?: vtctldata.IBackupResponse): vtctldata.BackupResponse; + public static create(properties?: vtctldata.IDeleteCellInfoResponse): vtctldata.DeleteCellInfoResponse; /** - * Encodes the specified BackupResponse message. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. - * @param message BackupResponse message or plain object to encode + * 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.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteCellInfoResponse, 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 + * 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.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BackupResponse message from the specified reader or buffer. + * 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 BackupResponse + * @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.BackupResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellInfoResponse; /** - * Decodes a BackupResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteCellInfoResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BackupResponse + * @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.BackupResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellInfoResponse; /** - * Verifies a BackupResponse message. + * 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 BackupResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCellInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BackupResponse + * @returns DeleteCellInfoResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.BackupResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellInfoResponse; /** - * Creates a plain object from a BackupResponse message. Also converts values to other types if specified. - * @param message BackupResponse + * 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.BackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BackupResponse to JSON. + * Converts this DeleteCellInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BackupResponse + * 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 BackupShardRequest. */ - interface IBackupShardRequest { + /** Properties of a DeleteCellsAliasRequest. */ + interface IDeleteCellsAliasRequest { - /** BackupShardRequest keyspace */ - keyspace?: (string|null); + /** DeleteCellsAliasRequest name */ + name?: (string|null); + } - /** BackupShardRequest shard */ - shard?: (string|null); + /** Represents a DeleteCellsAliasRequest. */ + class DeleteCellsAliasRequest implements IDeleteCellsAliasRequest { - /** BackupShardRequest allow_primary */ - allow_primary?: (boolean|null); + /** + * Constructs a new DeleteCellsAliasRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteCellsAliasRequest); - /** BackupShardRequest concurrency */ - concurrency?: (number|null); + /** DeleteCellsAliasRequest name. */ + public name: string; - /** BackupShardRequest upgrade_safe */ - upgrade_safe?: (boolean|null); + /** + * 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; - /** BackupShardRequest incremental_from_pos */ - incremental_from_pos?: (string|null); + /** + * 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; - /** BackupShardRequest mysql_shutdown_timeout */ - mysql_shutdown_timeout?: (vttime.IDuration|null); - } + /** + * 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; - /** Represents a BackupShardRequest. */ - class BackupShardRequest implements IBackupShardRequest { + /** + * 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; /** - * Constructs a new BackupShardRequest. - * @param [properties] Properties to set + * 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 */ - constructor(properties?: vtctldata.IBackupShardRequest); + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellsAliasRequest; - /** BackupShardRequest keyspace. */ - public keyspace: string; + /** + * 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); - /** BackupShardRequest shard. */ - public shard: string; + /** + * 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; - /** BackupShardRequest allow_primary. */ - public allow_primary: boolean; + /** + * 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 }; - /** BackupShardRequest concurrency. */ - public concurrency: number; + /** + * Converts this DeleteCellsAliasRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** BackupShardRequest upgrade_safe. */ - public upgrade_safe: boolean; + /** + * 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; + } - /** BackupShardRequest incremental_from_pos. */ - public incremental_from_pos: string; + /** Properties of a DeleteCellsAliasResponse. */ + interface IDeleteCellsAliasResponse { + } - /** BackupShardRequest mysql_shutdown_timeout. */ - public mysql_shutdown_timeout?: (vttime.IDuration|null); + /** Represents a DeleteCellsAliasResponse. */ + class DeleteCellsAliasResponse implements IDeleteCellsAliasResponse { /** - * Creates a new BackupShardRequest instance using the specified properties. + * Constructs a new DeleteCellsAliasResponse. * @param [properties] Properties to set - * @returns BackupShardRequest instance */ - public static create(properties?: vtctldata.IBackupShardRequest): vtctldata.BackupShardRequest; + constructor(properties?: vtctldata.IDeleteCellsAliasResponse); /** - * Encodes the specified BackupShardRequest message. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. - * @param message BackupShardRequest message or plain object to encode + * 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.IBackupShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteCellsAliasResponse, 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 + * 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.IBackupShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BackupShardRequest message from the specified reader or buffer. + * 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 BackupShardRequest + * @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.BackupShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellsAliasResponse; /** - * Decodes a BackupShardRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BackupShardRequest + * @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.BackupShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellsAliasResponse; /** - * Verifies a BackupShardRequest message. + * 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 BackupShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCellsAliasResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BackupShardRequest + * @returns DeleteCellsAliasResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.BackupShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellsAliasResponse; /** - * Creates a plain object from a BackupShardRequest message. Also converts values to other types if specified. - * @param message BackupShardRequest + * 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.BackupShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BackupShardRequest to JSON. + * Converts this DeleteCellsAliasResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BackupShardRequest + * 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 CancelSchemaMigrationRequest. */ - interface ICancelSchemaMigrationRequest { + /** Properties of a DeleteKeyspaceRequest. */ + interface IDeleteKeyspaceRequest { - /** CancelSchemaMigrationRequest keyspace */ + /** DeleteKeyspaceRequest keyspace */ keyspace?: (string|null); - /** CancelSchemaMigrationRequest uuid */ - uuid?: (string|null); + /** DeleteKeyspaceRequest recursive */ + recursive?: (boolean|null); - /** CancelSchemaMigrationRequest caller_id */ - caller_id?: (vtrpc.ICallerID|null); + /** DeleteKeyspaceRequest force */ + force?: (boolean|null); } - /** Represents a CancelSchemaMigrationRequest. */ - class CancelSchemaMigrationRequest implements ICancelSchemaMigrationRequest { + /** Represents a DeleteKeyspaceRequest. */ + class DeleteKeyspaceRequest implements IDeleteKeyspaceRequest { /** - * Constructs a new CancelSchemaMigrationRequest. + * Constructs a new DeleteKeyspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICancelSchemaMigrationRequest); + constructor(properties?: vtctldata.IDeleteKeyspaceRequest); - /** CancelSchemaMigrationRequest keyspace. */ + /** DeleteKeyspaceRequest keyspace. */ public keyspace: string; - /** CancelSchemaMigrationRequest uuid. */ - public uuid: string; + /** DeleteKeyspaceRequest recursive. */ + public recursive: boolean; - /** CancelSchemaMigrationRequest caller_id. */ - public caller_id?: (vtrpc.ICallerID|null); + /** DeleteKeyspaceRequest force. */ + public force: boolean; /** - * Creates a new CancelSchemaMigrationRequest instance using the specified properties. + * Creates a new DeleteKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelSchemaMigrationRequest instance + * @returns DeleteKeyspaceRequest instance */ - public static create(properties?: vtctldata.ICancelSchemaMigrationRequest): vtctldata.CancelSchemaMigrationRequest; + public static create(properties?: vtctldata.IDeleteKeyspaceRequest): vtctldata.DeleteKeyspaceRequest; /** - * Encodes the specified CancelSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. - * @param message CancelSchemaMigrationRequest message or plain object to encode + * 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.ICancelSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteKeyspaceRequest, 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 + * 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.ICancelSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer. + * 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 CancelSchemaMigrationRequest + * @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.CancelSchemaMigrationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceRequest; /** - * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelSchemaMigrationRequest + * @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.CancelSchemaMigrationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceRequest; /** - * Verifies a CancelSchemaMigrationRequest message. + * 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 CancelSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelSchemaMigrationRequest + * @returns DeleteKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.CancelSchemaMigrationRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceRequest; /** - * Creates a plain object from a CancelSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message CancelSchemaMigrationRequest + * 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.CancelSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelSchemaMigrationRequest to JSON. + * Converts this DeleteKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelSchemaMigrationRequest + * 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 CancelSchemaMigrationResponse. */ - interface ICancelSchemaMigrationResponse { - - /** CancelSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + /** Properties of a DeleteKeyspaceResponse. */ + interface IDeleteKeyspaceResponse { } - /** Represents a CancelSchemaMigrationResponse. */ - class CancelSchemaMigrationResponse implements ICancelSchemaMigrationResponse { + /** Represents a DeleteKeyspaceResponse. */ + class DeleteKeyspaceResponse implements IDeleteKeyspaceResponse { /** - * Constructs a new CancelSchemaMigrationResponse. + * Constructs a new DeleteKeyspaceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICancelSchemaMigrationResponse); - - /** CancelSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; + constructor(properties?: vtctldata.IDeleteKeyspaceResponse); /** - * Creates a new CancelSchemaMigrationResponse instance using the specified properties. + * Creates a new DeleteKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CancelSchemaMigrationResponse instance + * @returns DeleteKeyspaceResponse instance */ - public static create(properties?: vtctldata.ICancelSchemaMigrationResponse): vtctldata.CancelSchemaMigrationResponse; + public static create(properties?: vtctldata.IDeleteKeyspaceResponse): vtctldata.DeleteKeyspaceResponse; /** - * Encodes the specified CancelSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. - * @param message CancelSchemaMigrationResponse message or plain object to encode + * 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.ICancelSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteKeyspaceResponse, 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 + * 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.ICancelSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer. + * 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 CancelSchemaMigrationResponse + * @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.CancelSchemaMigrationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceResponse; /** - * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelSchemaMigrationResponse + * @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.CancelSchemaMigrationResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceResponse; /** - * Verifies a CancelSchemaMigrationResponse message. + * 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 CancelSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelSchemaMigrationResponse + * @returns DeleteKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.CancelSchemaMigrationResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceResponse; /** - * Creates a plain object from a CancelSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message CancelSchemaMigrationResponse + * 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.CancelSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelSchemaMigrationResponse to JSON. + * Converts this DeleteKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelSchemaMigrationResponse + * 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 ChangeTabletTagsRequest. */ - interface IChangeTabletTagsRequest { + /** Properties of a DeleteShardsRequest. */ + interface IDeleteShardsRequest { - /** ChangeTabletTagsRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** DeleteShardsRequest shards */ + shards?: (vtctldata.IShard[]|null); - /** ChangeTabletTagsRequest tags */ - tags?: ({ [k: string]: string }|null); + /** DeleteShardsRequest recursive */ + recursive?: (boolean|null); - /** ChangeTabletTagsRequest replace */ - replace?: (boolean|null); + /** DeleteShardsRequest even_if_serving */ + even_if_serving?: (boolean|null); + + /** DeleteShardsRequest force */ + force?: (boolean|null); } - /** Represents a ChangeTabletTagsRequest. */ - class ChangeTabletTagsRequest implements IChangeTabletTagsRequest { + /** Represents a DeleteShardsRequest. */ + class DeleteShardsRequest implements IDeleteShardsRequest { /** - * Constructs a new ChangeTabletTagsRequest. + * Constructs a new DeleteShardsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IChangeTabletTagsRequest); + constructor(properties?: vtctldata.IDeleteShardsRequest); - /** ChangeTabletTagsRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** DeleteShardsRequest shards. */ + public shards: vtctldata.IShard[]; - /** ChangeTabletTagsRequest tags. */ - public tags: { [k: string]: string }; + /** DeleteShardsRequest recursive. */ + public recursive: boolean; - /** ChangeTabletTagsRequest replace. */ - public replace: boolean; + /** DeleteShardsRequest even_if_serving. */ + public even_if_serving: boolean; + + /** DeleteShardsRequest force. */ + public force: boolean; /** - * Creates a new ChangeTabletTagsRequest instance using the specified properties. + * Creates a new DeleteShardsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTabletTagsRequest instance + * @returns DeleteShardsRequest instance */ - public static create(properties?: vtctldata.IChangeTabletTagsRequest): vtctldata.ChangeTabletTagsRequest; + public static create(properties?: vtctldata.IDeleteShardsRequest): vtctldata.DeleteShardsRequest; /** - * Encodes the specified ChangeTabletTagsRequest message. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. - * @param message ChangeTabletTagsRequest message or plain object to encode + * 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.IChangeTabletTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteShardsRequest, 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 + * 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.IChangeTabletTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer. + * 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 ChangeTabletTagsRequest + * @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.ChangeTabletTagsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsRequest; /** - * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeTabletTagsRequest + * @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.ChangeTabletTagsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsRequest; /** - * Verifies a ChangeTabletTagsRequest message. + * 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 ChangeTabletTagsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeTabletTagsRequest + * @returns DeleteShardsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTagsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsRequest; /** - * Creates a plain object from a ChangeTabletTagsRequest message. Also converts values to other types if specified. - * @param message ChangeTabletTagsRequest + * 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.ChangeTabletTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteShardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTabletTagsRequest to JSON. + * Converts this DeleteShardsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ChangeTabletTagsRequest + * 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 ChangeTabletTagsResponse. */ - interface IChangeTabletTagsResponse { - - /** ChangeTabletTagsResponse before_tags */ - before_tags?: ({ [k: string]: string }|null); - - /** ChangeTabletTagsResponse after_tags */ - after_tags?: ({ [k: string]: string }|null); + /** Properties of a DeleteShardsResponse. */ + interface IDeleteShardsResponse { } - /** Represents a ChangeTabletTagsResponse. */ - class ChangeTabletTagsResponse implements IChangeTabletTagsResponse { + /** Represents a DeleteShardsResponse. */ + class DeleteShardsResponse implements IDeleteShardsResponse { /** - * Constructs a new ChangeTabletTagsResponse. + * Constructs a new DeleteShardsResponse. * @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 }; + constructor(properties?: vtctldata.IDeleteShardsResponse); /** - * Creates a new ChangeTabletTagsResponse instance using the specified properties. + * Creates a new DeleteShardsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTabletTagsResponse instance + * @returns DeleteShardsResponse instance */ - public static create(properties?: vtctldata.IChangeTabletTagsResponse): vtctldata.ChangeTabletTagsResponse; + public static create(properties?: vtctldata.IDeleteShardsResponse): vtctldata.DeleteShardsResponse; /** - * Encodes the specified ChangeTabletTagsResponse message. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. - * @param message ChangeTabletTagsResponse message or plain object to encode + * 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.IChangeTabletTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteShardsResponse, 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 + * 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.IChangeTabletTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer. + * 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 ChangeTabletTagsResponse + * @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.ChangeTabletTagsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsResponse; /** - * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeTabletTagsResponse + * @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.ChangeTabletTagsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsResponse; /** - * Verifies a ChangeTabletTagsResponse message. + * 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 ChangeTabletTagsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeTabletTagsResponse + * @returns DeleteShardsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTagsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsResponse; /** - * Creates a plain object from a ChangeTabletTagsResponse message. Also converts values to other types if specified. - * @param message ChangeTabletTagsResponse + * 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.ChangeTabletTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteShardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTabletTagsResponse to JSON. + * Converts this DeleteShardsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ChangeTabletTagsResponse + * 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 ChangeTabletTypeRequest. */ - interface IChangeTabletTypeRequest { - - /** ChangeTabletTypeRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ChangeTabletTypeRequest db_type */ - db_type?: (topodata.TabletType|null); + /** Properties of a DeleteSrvVSchemaRequest. */ + interface IDeleteSrvVSchemaRequest { - /** ChangeTabletTypeRequest dry_run */ - dry_run?: (boolean|null); + /** DeleteSrvVSchemaRequest cell */ + cell?: (string|null); } - /** Represents a ChangeTabletTypeRequest. */ - class ChangeTabletTypeRequest implements IChangeTabletTypeRequest { + /** Represents a DeleteSrvVSchemaRequest. */ + class DeleteSrvVSchemaRequest implements IDeleteSrvVSchemaRequest { /** - * Constructs a new ChangeTabletTypeRequest. + * Constructs a new DeleteSrvVSchemaRequest. * @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; + constructor(properties?: vtctldata.IDeleteSrvVSchemaRequest); - /** ChangeTabletTypeRequest dry_run. */ - public dry_run: boolean; + /** DeleteSrvVSchemaRequest cell. */ + public cell: string; /** - * Creates a new ChangeTabletTypeRequest instance using the specified properties. + * Creates a new DeleteSrvVSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTabletTypeRequest instance + * @returns DeleteSrvVSchemaRequest instance */ - public static create(properties?: vtctldata.IChangeTabletTypeRequest): vtctldata.ChangeTabletTypeRequest; + public static create(properties?: vtctldata.IDeleteSrvVSchemaRequest): vtctldata.DeleteSrvVSchemaRequest; /** - * Encodes the specified ChangeTabletTypeRequest message. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. - * @param message ChangeTabletTypeRequest message or plain object to encode + * 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.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteSrvVSchemaRequest, 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 + * 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.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. + * 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 ChangeTabletTypeRequest + * @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.ChangeTabletTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteSrvVSchemaRequest; /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeTabletTypeRequest + * @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.ChangeTabletTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteSrvVSchemaRequest; /** - * Verifies a ChangeTabletTypeRequest message. + * 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 ChangeTabletTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeTabletTypeRequest + * @returns DeleteSrvVSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteSrvVSchemaRequest; /** - * Creates a plain object from a ChangeTabletTypeRequest message. Also converts values to other types if specified. - * @param message ChangeTabletTypeRequest + * 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.ChangeTabletTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTabletTypeRequest to JSON. + * Converts this DeleteSrvVSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ChangeTabletTypeRequest + * 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 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); + /** Properties of a DeleteSrvVSchemaResponse. */ + interface IDeleteSrvVSchemaResponse { } - /** Represents a ChangeTabletTypeResponse. */ - class ChangeTabletTypeResponse implements IChangeTabletTypeResponse { + /** Represents a DeleteSrvVSchemaResponse. */ + class DeleteSrvVSchemaResponse implements IDeleteSrvVSchemaResponse { /** - * Constructs a new ChangeTabletTypeResponse. + * Constructs a new DeleteSrvVSchemaResponse. * @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; + constructor(properties?: vtctldata.IDeleteSrvVSchemaResponse); /** - * Creates a new ChangeTabletTypeResponse instance using the specified properties. + * Creates a new DeleteSrvVSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTabletTypeResponse instance + * @returns DeleteSrvVSchemaResponse instance */ - public static create(properties?: vtctldata.IChangeTabletTypeResponse): vtctldata.ChangeTabletTypeResponse; + public static create(properties?: vtctldata.IDeleteSrvVSchemaResponse): vtctldata.DeleteSrvVSchemaResponse; /** - * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. - * @param message ChangeTabletTypeResponse message or plain object to encode + * 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.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteSrvVSchemaResponse, 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 + * 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.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. + * 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 ChangeTabletTypeResponse + * @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.ChangeTabletTypeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteSrvVSchemaResponse; /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeTabletTypeResponse + * @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.ChangeTabletTypeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteSrvVSchemaResponse; /** - * Verifies a ChangeTabletTypeResponse message. + * 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 ChangeTabletTypeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeTabletTypeResponse + * @returns DeleteSrvVSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteSrvVSchemaResponse; /** - * Creates a plain object from a ChangeTabletTypeResponse message. Also converts values to other types if specified. - * @param message ChangeTabletTypeResponse + * 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.ChangeTabletTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTabletTypeResponse to JSON. + * Converts this DeleteSrvVSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ChangeTabletTypeResponse + * 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 CheckThrottlerRequest. */ - interface ICheckThrottlerRequest { - - /** CheckThrottlerRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** CheckThrottlerRequest app_name */ - app_name?: (string|null); - - /** CheckThrottlerRequest scope */ - scope?: (string|null); + /** Properties of a DeleteTabletsRequest. */ + interface IDeleteTabletsRequest { - /** CheckThrottlerRequest skip_request_heartbeats */ - skip_request_heartbeats?: (boolean|null); + /** DeleteTabletsRequest tablet_aliases */ + tablet_aliases?: (topodata.ITabletAlias[]|null); - /** CheckThrottlerRequest ok_if_not_exists */ - ok_if_not_exists?: (boolean|null); + /** DeleteTabletsRequest allow_primary */ + allow_primary?: (boolean|null); } - /** Represents a CheckThrottlerRequest. */ - class CheckThrottlerRequest implements ICheckThrottlerRequest { + /** Represents a DeleteTabletsRequest. */ + class DeleteTabletsRequest implements IDeleteTabletsRequest { /** - * Constructs a new CheckThrottlerRequest. + * Constructs a new DeleteTabletsRequest. * @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; + constructor(properties?: vtctldata.IDeleteTabletsRequest); - /** CheckThrottlerRequest skip_request_heartbeats. */ - public skip_request_heartbeats: boolean; + /** DeleteTabletsRequest tablet_aliases. */ + public tablet_aliases: topodata.ITabletAlias[]; - /** CheckThrottlerRequest ok_if_not_exists. */ - public ok_if_not_exists: boolean; + /** DeleteTabletsRequest allow_primary. */ + public allow_primary: boolean; /** - * Creates a new CheckThrottlerRequest instance using the specified properties. + * Creates a new DeleteTabletsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CheckThrottlerRequest instance + * @returns DeleteTabletsRequest instance */ - public static create(properties?: vtctldata.ICheckThrottlerRequest): vtctldata.CheckThrottlerRequest; + public static create(properties?: vtctldata.IDeleteTabletsRequest): vtctldata.DeleteTabletsRequest; /** - * Encodes the specified CheckThrottlerRequest message. Does not implicitly {@link vtctldata.CheckThrottlerRequest.verify|verify} messages. - * @param message CheckThrottlerRequest message or plain object to encode + * 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.ICheckThrottlerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteTabletsRequest, 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 + * 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.ICheckThrottlerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CheckThrottlerRequest message from the specified reader or buffer. + * 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 CheckThrottlerRequest + * @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.CheckThrottlerRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsRequest; /** - * Decodes a CheckThrottlerRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CheckThrottlerRequest + * @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.CheckThrottlerRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsRequest; /** - * Verifies a CheckThrottlerRequest message. + * 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 CheckThrottlerRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTabletsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CheckThrottlerRequest + * @returns DeleteTabletsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.CheckThrottlerRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsRequest; /** - * Creates a plain object from a CheckThrottlerRequest message. Also converts values to other types if specified. - * @param message CheckThrottlerRequest + * 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.CheckThrottlerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CheckThrottlerRequest to JSON. + * Converts this DeleteTabletsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CheckThrottlerRequest + * 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 CheckThrottlerResponse. */ - interface ICheckThrottlerResponse { - - /** CheckThrottlerResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** CheckThrottlerResponse Check */ - Check?: (tabletmanagerdata.ICheckThrottlerResponse|null); + /** Properties of a DeleteTabletsResponse. */ + interface IDeleteTabletsResponse { } - /** Represents a CheckThrottlerResponse. */ - class CheckThrottlerResponse implements ICheckThrottlerResponse { + /** Represents a DeleteTabletsResponse. */ + class DeleteTabletsResponse implements IDeleteTabletsResponse { /** - * Constructs a new CheckThrottlerResponse. + * Constructs a new DeleteTabletsResponse. * @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); + constructor(properties?: vtctldata.IDeleteTabletsResponse); /** - * Creates a new CheckThrottlerResponse instance using the specified properties. + * Creates a new DeleteTabletsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CheckThrottlerResponse instance + * @returns DeleteTabletsResponse instance */ - public static create(properties?: vtctldata.ICheckThrottlerResponse): vtctldata.CheckThrottlerResponse; + public static create(properties?: vtctldata.IDeleteTabletsResponse): vtctldata.DeleteTabletsResponse; /** - * Encodes the specified CheckThrottlerResponse message. Does not implicitly {@link vtctldata.CheckThrottlerResponse.verify|verify} messages. - * @param message CheckThrottlerResponse message or plain object to encode + * 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.ICheckThrottlerResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteTabletsResponse, 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 + * 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.ICheckThrottlerResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CheckThrottlerResponse message from the specified reader or buffer. + * 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 CheckThrottlerResponse + * @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.CheckThrottlerResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsResponse; /** - * Decodes a CheckThrottlerResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CheckThrottlerResponse + * @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.CheckThrottlerResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsResponse; /** - * Verifies a CheckThrottlerResponse message. + * 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 CheckThrottlerResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTabletsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CheckThrottlerResponse + * @returns DeleteTabletsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.CheckThrottlerResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsResponse; /** - * Creates a plain object from a CheckThrottlerResponse message. Also converts values to other types if specified. - * @param message CheckThrottlerResponse + * 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.CheckThrottlerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CheckThrottlerResponse to JSON. + * Converts this DeleteTabletsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CheckThrottlerResponse + * 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 a CleanupSchemaMigrationRequest. */ - interface ICleanupSchemaMigrationRequest { + /** Properties of an EmergencyReparentShardRequest. */ + interface IEmergencyReparentShardRequest { + + /** EmergencyReparentShardRequest keyspace */ + keyspace?: (string|null); + + /** EmergencyReparentShardRequest shard */ + shard?: (string|null); + + /** EmergencyReparentShardRequest new_primary */ + new_primary?: (topodata.ITabletAlias|null); - /** CleanupSchemaMigrationRequest keyspace */ - keyspace?: (string|null); + /** EmergencyReparentShardRequest ignore_replicas */ + ignore_replicas?: (topodata.ITabletAlias[]|null); - /** CleanupSchemaMigrationRequest uuid */ - uuid?: (string|null); + /** EmergencyReparentShardRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); - /** CleanupSchemaMigrationRequest caller_id */ - caller_id?: (vtrpc.ICallerID|null); + /** EmergencyReparentShardRequest prevent_cross_cell_promotion */ + prevent_cross_cell_promotion?: (boolean|null); + + /** EmergencyReparentShardRequest wait_for_all_tablets */ + wait_for_all_tablets?: (boolean|null); + + /** EmergencyReparentShardRequest expected_primary */ + expected_primary?: (topodata.ITabletAlias|null); } - /** Represents a CleanupSchemaMigrationRequest. */ - class CleanupSchemaMigrationRequest implements ICleanupSchemaMigrationRequest { + /** Represents an EmergencyReparentShardRequest. */ + class EmergencyReparentShardRequest implements IEmergencyReparentShardRequest { /** - * Constructs a new CleanupSchemaMigrationRequest. + * Constructs a new EmergencyReparentShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICleanupSchemaMigrationRequest); + constructor(properties?: vtctldata.IEmergencyReparentShardRequest); - /** CleanupSchemaMigrationRequest keyspace. */ + /** EmergencyReparentShardRequest keyspace. */ public keyspace: string; - /** CleanupSchemaMigrationRequest uuid. */ - public uuid: string; + /** EmergencyReparentShardRequest shard. */ + public shard: string; - /** CleanupSchemaMigrationRequest caller_id. */ - public caller_id?: (vtrpc.ICallerID|null); + /** 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; + + /** EmergencyReparentShardRequest expected_primary. */ + public expected_primary?: (topodata.ITabletAlias|null); /** - * Creates a new CleanupSchemaMigrationRequest instance using the specified properties. + * Creates a new EmergencyReparentShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CleanupSchemaMigrationRequest instance + * @returns EmergencyReparentShardRequest instance */ - public static create(properties?: vtctldata.ICleanupSchemaMigrationRequest): vtctldata.CleanupSchemaMigrationRequest; + public static create(properties?: vtctldata.IEmergencyReparentShardRequest): vtctldata.EmergencyReparentShardRequest; /** - * Encodes the specified CleanupSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CleanupSchemaMigrationRequest.verify|verify} messages. - * @param message CleanupSchemaMigrationRequest message or plain object to encode + * 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.ICleanupSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IEmergencyReparentShardRequest, 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 + * 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.ICleanupSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer. + * 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 CleanupSchemaMigrationRequest + * @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.CleanupSchemaMigrationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardRequest; /** - * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CleanupSchemaMigrationRequest + * @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.CleanupSchemaMigrationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardRequest; /** - * Verifies a CleanupSchemaMigrationRequest message. + * 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 a CleanupSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EmergencyReparentShardRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CleanupSchemaMigrationRequest + * @returns EmergencyReparentShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.CleanupSchemaMigrationRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardRequest; /** - * Creates a plain object from a CleanupSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message CleanupSchemaMigrationRequest + * 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.CleanupSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.EmergencyReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CleanupSchemaMigrationRequest to JSON. + * Converts this EmergencyReparentShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CleanupSchemaMigrationRequest + * 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 a CleanupSchemaMigrationResponse. */ - interface ICleanupSchemaMigrationResponse { + /** Properties of an EmergencyReparentShardResponse. */ + interface IEmergencyReparentShardResponse { - /** CleanupSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + /** 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 a CleanupSchemaMigrationResponse. */ - class CleanupSchemaMigrationResponse implements ICleanupSchemaMigrationResponse { + /** Represents an EmergencyReparentShardResponse. */ + class EmergencyReparentShardResponse implements IEmergencyReparentShardResponse { /** - * Constructs a new CleanupSchemaMigrationResponse. + * Constructs a new EmergencyReparentShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICleanupSchemaMigrationResponse); + constructor(properties?: vtctldata.IEmergencyReparentShardResponse); - /** CleanupSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; + /** 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 CleanupSchemaMigrationResponse instance using the specified properties. + * Creates a new EmergencyReparentShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CleanupSchemaMigrationResponse instance + * @returns EmergencyReparentShardResponse instance */ - public static create(properties?: vtctldata.ICleanupSchemaMigrationResponse): vtctldata.CleanupSchemaMigrationResponse; + public static create(properties?: vtctldata.IEmergencyReparentShardResponse): vtctldata.EmergencyReparentShardResponse; /** - * Encodes the specified CleanupSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CleanupSchemaMigrationResponse.verify|verify} messages. - * @param message CleanupSchemaMigrationResponse message or plain object to encode + * 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.ICleanupSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IEmergencyReparentShardResponse, 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 + * 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.ICleanupSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer. + * 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 CleanupSchemaMigrationResponse + * @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.CleanupSchemaMigrationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardResponse; /** - * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CleanupSchemaMigrationResponse + * @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.CleanupSchemaMigrationResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardResponse; /** - * Verifies a CleanupSchemaMigrationResponse message. + * 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 a CleanupSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * Creates an EmergencyReparentShardResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CleanupSchemaMigrationResponse + * @returns EmergencyReparentShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.CleanupSchemaMigrationResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardResponse; /** - * Creates a plain object from a CleanupSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message CleanupSchemaMigrationResponse + * 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.CleanupSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.EmergencyReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CleanupSchemaMigrationResponse to JSON. + * Converts this EmergencyReparentShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CleanupSchemaMigrationResponse + * 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 a CompleteSchemaMigrationRequest. */ - interface ICompleteSchemaMigrationRequest { + /** Properties of an ExecuteFetchAsAppRequest. */ + interface IExecuteFetchAsAppRequest { - /** CompleteSchemaMigrationRequest keyspace */ - keyspace?: (string|null); + /** ExecuteFetchAsAppRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); - /** CompleteSchemaMigrationRequest uuid */ - uuid?: (string|null); + /** ExecuteFetchAsAppRequest query */ + query?: (string|null); - /** CompleteSchemaMigrationRequest caller_id */ - caller_id?: (vtrpc.ICallerID|null); + /** ExecuteFetchAsAppRequest max_rows */ + max_rows?: (number|Long|null); + + /** ExecuteFetchAsAppRequest use_pool */ + use_pool?: (boolean|null); } - /** Represents a CompleteSchemaMigrationRequest. */ - class CompleteSchemaMigrationRequest implements ICompleteSchemaMigrationRequest { + /** Represents an ExecuteFetchAsAppRequest. */ + class ExecuteFetchAsAppRequest implements IExecuteFetchAsAppRequest { /** - * Constructs a new CompleteSchemaMigrationRequest. + * Constructs a new ExecuteFetchAsAppRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICompleteSchemaMigrationRequest); + constructor(properties?: vtctldata.IExecuteFetchAsAppRequest); - /** CompleteSchemaMigrationRequest keyspace. */ - public keyspace: string; + /** ExecuteFetchAsAppRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); - /** CompleteSchemaMigrationRequest uuid. */ - public uuid: string; + /** ExecuteFetchAsAppRequest query. */ + public query: string; - /** CompleteSchemaMigrationRequest caller_id. */ - public caller_id?: (vtrpc.ICallerID|null); + /** ExecuteFetchAsAppRequest max_rows. */ + public max_rows: (number|Long); + + /** ExecuteFetchAsAppRequest use_pool. */ + public use_pool: boolean; /** - * Creates a new CompleteSchemaMigrationRequest instance using the specified properties. + * Creates a new ExecuteFetchAsAppRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CompleteSchemaMigrationRequest instance + * @returns ExecuteFetchAsAppRequest instance */ - public static create(properties?: vtctldata.ICompleteSchemaMigrationRequest): vtctldata.CompleteSchemaMigrationRequest; + public static create(properties?: vtctldata.IExecuteFetchAsAppRequest): vtctldata.ExecuteFetchAsAppRequest; /** - * Encodes the specified CompleteSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CompleteSchemaMigrationRequest.verify|verify} messages. - * @param message CompleteSchemaMigrationRequest message or plain object to encode + * 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.ICompleteSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IExecuteFetchAsAppRequest, 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 + * 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.ICompleteSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer. + * 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 CompleteSchemaMigrationRequest + * @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.CompleteSchemaMigrationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsAppRequest; /** - * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CompleteSchemaMigrationRequest + * @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.CompleteSchemaMigrationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsAppRequest; /** - * Verifies a CompleteSchemaMigrationRequest message. + * 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 a CompleteSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsAppRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CompleteSchemaMigrationRequest + * @returns ExecuteFetchAsAppRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.CompleteSchemaMigrationRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsAppRequest; /** - * Creates a plain object from a CompleteSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message CompleteSchemaMigrationRequest + * 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.CompleteSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ExecuteFetchAsAppRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompleteSchemaMigrationRequest to JSON. + * Converts this ExecuteFetchAsAppRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CompleteSchemaMigrationRequest + * 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 a CompleteSchemaMigrationResponse. */ - interface ICompleteSchemaMigrationResponse { + /** Properties of an ExecuteFetchAsAppResponse. */ + interface IExecuteFetchAsAppResponse { - /** CompleteSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + /** ExecuteFetchAsAppResponse result */ + result?: (query.IQueryResult|null); } - /** Represents a CompleteSchemaMigrationResponse. */ - class CompleteSchemaMigrationResponse implements ICompleteSchemaMigrationResponse { + /** Represents an ExecuteFetchAsAppResponse. */ + class ExecuteFetchAsAppResponse implements IExecuteFetchAsAppResponse { /** - * Constructs a new CompleteSchemaMigrationResponse. + * Constructs a new ExecuteFetchAsAppResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICompleteSchemaMigrationResponse); + constructor(properties?: vtctldata.IExecuteFetchAsAppResponse); - /** CompleteSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; + /** ExecuteFetchAsAppResponse result. */ + public result?: (query.IQueryResult|null); /** - * Creates a new CompleteSchemaMigrationResponse instance using the specified properties. + * Creates a new ExecuteFetchAsAppResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CompleteSchemaMigrationResponse instance + * @returns ExecuteFetchAsAppResponse instance */ - public static create(properties?: vtctldata.ICompleteSchemaMigrationResponse): vtctldata.CompleteSchemaMigrationResponse; + public static create(properties?: vtctldata.IExecuteFetchAsAppResponse): vtctldata.ExecuteFetchAsAppResponse; /** - * Encodes the specified CompleteSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CompleteSchemaMigrationResponse.verify|verify} messages. - * @param message CompleteSchemaMigrationResponse message or plain object to encode + * 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.ICompleteSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IExecuteFetchAsAppResponse, 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 + * 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.ICompleteSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer. + * 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 CompleteSchemaMigrationResponse + * @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.CompleteSchemaMigrationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsAppResponse; /** - * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CompleteSchemaMigrationResponse + * @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.CompleteSchemaMigrationResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsAppResponse; /** - * Verifies a CompleteSchemaMigrationResponse message. + * 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 a CompleteSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsAppResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CompleteSchemaMigrationResponse + * @returns ExecuteFetchAsAppResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.CompleteSchemaMigrationResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsAppResponse; /** - * Creates a plain object from a CompleteSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message CompleteSchemaMigrationResponse + * 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.CompleteSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ExecuteFetchAsAppResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompleteSchemaMigrationResponse to JSON. + * Converts this ExecuteFetchAsAppResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CompleteSchemaMigrationResponse + * 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 a CopySchemaShardRequest. */ - interface ICopySchemaShardRequest { - - /** CopySchemaShardRequest source_tablet_alias */ - source_tablet_alias?: (topodata.ITabletAlias|null); - - /** CopySchemaShardRequest tables */ - tables?: (string[]|null); - - /** CopySchemaShardRequest exclude_tables */ - exclude_tables?: (string[]|null); + /** Properties of an ExecuteFetchAsDBARequest. */ + interface IExecuteFetchAsDBARequest { - /** CopySchemaShardRequest include_views */ - include_views?: (boolean|null); + /** ExecuteFetchAsDBARequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); - /** CopySchemaShardRequest skip_verify */ - skip_verify?: (boolean|null); + /** ExecuteFetchAsDBARequest query */ + query?: (string|null); - /** CopySchemaShardRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); + /** ExecuteFetchAsDBARequest max_rows */ + max_rows?: (number|Long|null); - /** CopySchemaShardRequest destination_keyspace */ - destination_keyspace?: (string|null); + /** ExecuteFetchAsDBARequest disable_binlogs */ + disable_binlogs?: (boolean|null); - /** CopySchemaShardRequest destination_shard */ - destination_shard?: (string|null); + /** ExecuteFetchAsDBARequest reload_schema */ + reload_schema?: (boolean|null); } - /** Represents a CopySchemaShardRequest. */ - class CopySchemaShardRequest implements ICopySchemaShardRequest { + /** Represents an ExecuteFetchAsDBARequest. */ + class ExecuteFetchAsDBARequest implements IExecuteFetchAsDBARequest { /** - * Constructs a new CopySchemaShardRequest. + * Constructs a new ExecuteFetchAsDBARequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICopySchemaShardRequest); - - /** CopySchemaShardRequest source_tablet_alias. */ - public source_tablet_alias?: (topodata.ITabletAlias|null); - - /** CopySchemaShardRequest tables. */ - public tables: string[]; - - /** CopySchemaShardRequest exclude_tables. */ - public exclude_tables: string[]; + constructor(properties?: vtctldata.IExecuteFetchAsDBARequest); - /** CopySchemaShardRequest include_views. */ - public include_views: boolean; + /** ExecuteFetchAsDBARequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); - /** CopySchemaShardRequest skip_verify. */ - public skip_verify: boolean; + /** ExecuteFetchAsDBARequest query. */ + public query: string; - /** CopySchemaShardRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); + /** ExecuteFetchAsDBARequest max_rows. */ + public max_rows: (number|Long); - /** CopySchemaShardRequest destination_keyspace. */ - public destination_keyspace: string; + /** ExecuteFetchAsDBARequest disable_binlogs. */ + public disable_binlogs: boolean; - /** CopySchemaShardRequest destination_shard. */ - public destination_shard: string; + /** ExecuteFetchAsDBARequest reload_schema. */ + public reload_schema: boolean; /** - * Creates a new CopySchemaShardRequest instance using the specified properties. + * Creates a new ExecuteFetchAsDBARequest instance using the specified properties. * @param [properties] Properties to set - * @returns CopySchemaShardRequest instance + * @returns ExecuteFetchAsDBARequest instance */ - public static create(properties?: vtctldata.ICopySchemaShardRequest): vtctldata.CopySchemaShardRequest; + public static create(properties?: vtctldata.IExecuteFetchAsDBARequest): vtctldata.ExecuteFetchAsDBARequest; /** - * Encodes the specified CopySchemaShardRequest message. Does not implicitly {@link vtctldata.CopySchemaShardRequest.verify|verify} messages. - * @param message CopySchemaShardRequest message or plain object to encode + * 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.ICopySchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IExecuteFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CopySchemaShardRequest message, length delimited. Does not implicitly {@link vtctldata.CopySchemaShardRequest.verify|verify} messages. - * @param message CopySchemaShardRequest message or plain object to encode + * 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.ICopySchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IExecuteFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CopySchemaShardRequest message from the specified reader or buffer. + * 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 CopySchemaShardRequest + * @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.CopySchemaShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsDBARequest; /** - * Decodes a CopySchemaShardRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CopySchemaShardRequest + * @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.CopySchemaShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsDBARequest; /** - * Verifies a CopySchemaShardRequest message. + * 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 a CopySchemaShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CopySchemaShardRequest + * @returns ExecuteFetchAsDBARequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.CopySchemaShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsDBARequest; /** - * Creates a plain object from a CopySchemaShardRequest message. Also converts values to other types if specified. - * @param message CopySchemaShardRequest + * 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.CopySchemaShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ExecuteFetchAsDBARequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CopySchemaShardRequest to JSON. + * Converts this ExecuteFetchAsDBARequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CopySchemaShardRequest + * 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 a CopySchemaShardResponse. */ - interface ICopySchemaShardResponse { + /** Properties of an ExecuteFetchAsDBAResponse. */ + interface IExecuteFetchAsDBAResponse { + + /** ExecuteFetchAsDBAResponse result */ + result?: (query.IQueryResult|null); } - /** Represents a CopySchemaShardResponse. */ - class CopySchemaShardResponse implements ICopySchemaShardResponse { + /** Represents an ExecuteFetchAsDBAResponse. */ + class ExecuteFetchAsDBAResponse implements IExecuteFetchAsDBAResponse { /** - * Constructs a new CopySchemaShardResponse. + * Constructs a new ExecuteFetchAsDBAResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICopySchemaShardResponse); + constructor(properties?: vtctldata.IExecuteFetchAsDBAResponse); + + /** ExecuteFetchAsDBAResponse result. */ + public result?: (query.IQueryResult|null); /** - * Creates a new CopySchemaShardResponse instance using the specified properties. + * Creates a new ExecuteFetchAsDBAResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CopySchemaShardResponse instance + * @returns ExecuteFetchAsDBAResponse instance */ - public static create(properties?: vtctldata.ICopySchemaShardResponse): vtctldata.CopySchemaShardResponse; + public static create(properties?: vtctldata.IExecuteFetchAsDBAResponse): vtctldata.ExecuteFetchAsDBAResponse; /** - * Encodes the specified CopySchemaShardResponse message. Does not implicitly {@link vtctldata.CopySchemaShardResponse.verify|verify} messages. - * @param message CopySchemaShardResponse message or plain object to encode + * 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.ICopySchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IExecuteFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CopySchemaShardResponse message, length delimited. Does not implicitly {@link vtctldata.CopySchemaShardResponse.verify|verify} messages. - * @param message CopySchemaShardResponse message or plain object to encode + * 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.ICopySchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IExecuteFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CopySchemaShardResponse message from the specified reader or buffer. + * 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 CopySchemaShardResponse + * @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.CopySchemaShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsDBAResponse; /** - * Decodes a CopySchemaShardResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CopySchemaShardResponse + * @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.CopySchemaShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsDBAResponse; /** - * Verifies a CopySchemaShardResponse message. + * 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 a CopySchemaShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CopySchemaShardResponse + * @returns ExecuteFetchAsDBAResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.CopySchemaShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsDBAResponse; /** - * Creates a plain object from a CopySchemaShardResponse message. Also converts values to other types if specified. - * @param message CopySchemaShardResponse + * 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.CopySchemaShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ExecuteFetchAsDBAResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CopySchemaShardResponse to JSON. + * Converts this ExecuteFetchAsDBAResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CopySchemaShardResponse + * 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 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); + /** Properties of an ExecuteHookRequest. */ + interface IExecuteHookRequest { - /** CreateKeyspaceRequest durability_policy */ - durability_policy?: (string|null); + /** ExecuteHookRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); - /** CreateKeyspaceRequest sidecar_db_name */ - sidecar_db_name?: (string|null); + /** ExecuteHookRequest tablet_hook_request */ + tablet_hook_request?: (tabletmanagerdata.IExecuteHookRequest|null); } - /** Represents a CreateKeyspaceRequest. */ - class CreateKeyspaceRequest implements ICreateKeyspaceRequest { + /** Represents an ExecuteHookRequest. */ + class ExecuteHookRequest implements IExecuteHookRequest { /** - * Constructs a new CreateKeyspaceRequest. + * Constructs a new ExecuteHookRequest. * @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); + constructor(properties?: vtctldata.IExecuteHookRequest); - /** CreateKeyspaceRequest durability_policy. */ - public durability_policy: string; + /** ExecuteHookRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); - /** CreateKeyspaceRequest sidecar_db_name. */ - public sidecar_db_name: string; + /** ExecuteHookRequest tablet_hook_request. */ + public tablet_hook_request?: (tabletmanagerdata.IExecuteHookRequest|null); /** - * Creates a new CreateKeyspaceRequest instance using the specified properties. + * Creates a new ExecuteHookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateKeyspaceRequest instance + * @returns ExecuteHookRequest instance */ - public static create(properties?: vtctldata.ICreateKeyspaceRequest): vtctldata.CreateKeyspaceRequest; + public static create(properties?: vtctldata.IExecuteHookRequest): vtctldata.ExecuteHookRequest; /** - * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. - * @param message CreateKeyspaceRequest message or plain object to encode + * 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.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IExecuteHookRequest, 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 + * 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.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. + * 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 CreateKeyspaceRequest + * @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.CreateKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteHookRequest; /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteHookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateKeyspaceRequest + * @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.CreateKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteHookRequest; /** - * Verifies a CreateKeyspaceRequest message. + * 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 a CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteHookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateKeyspaceRequest + * @returns ExecuteHookRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteHookRequest; /** - * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. - * @param message CreateKeyspaceRequest + * 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.CreateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ExecuteHookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateKeyspaceRequest to JSON. + * Converts this ExecuteHookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateKeyspaceRequest + * 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 a CreateKeyspaceResponse. */ - interface ICreateKeyspaceResponse { + /** Properties of an ExecuteHookResponse. */ + interface IExecuteHookResponse { - /** CreateKeyspaceResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); + /** ExecuteHookResponse hook_result */ + hook_result?: (tabletmanagerdata.IExecuteHookResponse|null); } - /** Represents a CreateKeyspaceResponse. */ - class CreateKeyspaceResponse implements ICreateKeyspaceResponse { + /** Represents an ExecuteHookResponse. */ + class ExecuteHookResponse implements IExecuteHookResponse { /** - * Constructs a new CreateKeyspaceResponse. + * Constructs a new ExecuteHookResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICreateKeyspaceResponse); + constructor(properties?: vtctldata.IExecuteHookResponse); - /** CreateKeyspaceResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); + /** ExecuteHookResponse hook_result. */ + public hook_result?: (tabletmanagerdata.IExecuteHookResponse|null); /** - * Creates a new CreateKeyspaceResponse instance using the specified properties. + * Creates a new ExecuteHookResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateKeyspaceResponse instance + * @returns ExecuteHookResponse instance */ - public static create(properties?: vtctldata.ICreateKeyspaceResponse): vtctldata.CreateKeyspaceResponse; + public static create(properties?: vtctldata.IExecuteHookResponse): vtctldata.ExecuteHookResponse; /** - * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. - * @param message CreateKeyspaceResponse message or plain object to encode + * 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.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IExecuteHookResponse, 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 + * 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.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. + * 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 CreateKeyspaceResponse + * @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.CreateKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteHookResponse; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteHookResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateKeyspaceResponse + * @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.CreateKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteHookResponse; /** - * Verifies a CreateKeyspaceResponse message. + * 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 a CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteHookResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateKeyspaceResponse + * @returns ExecuteHookResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteHookResponse; /** - * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. - * @param message CreateKeyspaceResponse + * 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.CreateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ExecuteHookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateKeyspaceResponse to JSON. + * Converts this ExecuteHookResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateKeyspaceResponse + * 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 a CreateShardRequest. */ - interface ICreateShardRequest { + /** Properties of an ExecuteMultiFetchAsDBARequest. */ + interface IExecuteMultiFetchAsDBARequest { - /** CreateShardRequest keyspace */ - keyspace?: (string|null); + /** ExecuteMultiFetchAsDBARequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); - /** CreateShardRequest shard_name */ - shard_name?: (string|null); + /** ExecuteMultiFetchAsDBARequest sql */ + sql?: (string|null); - /** CreateShardRequest force */ - force?: (boolean|null); + /** ExecuteMultiFetchAsDBARequest max_rows */ + max_rows?: (number|Long|null); - /** CreateShardRequest include_parent */ - include_parent?: (boolean|null); + /** ExecuteMultiFetchAsDBARequest disable_binlogs */ + disable_binlogs?: (boolean|null); + + /** ExecuteMultiFetchAsDBARequest reload_schema */ + reload_schema?: (boolean|null); } - /** Represents a CreateShardRequest. */ - class CreateShardRequest implements ICreateShardRequest { + /** Represents an ExecuteMultiFetchAsDBARequest. */ + class ExecuteMultiFetchAsDBARequest implements IExecuteMultiFetchAsDBARequest { /** - * Constructs a new CreateShardRequest. + * Constructs a new ExecuteMultiFetchAsDBARequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICreateShardRequest); + constructor(properties?: vtctldata.IExecuteMultiFetchAsDBARequest); - /** CreateShardRequest keyspace. */ - public keyspace: string; + /** ExecuteMultiFetchAsDBARequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); - /** CreateShardRequest shard_name. */ - public shard_name: string; + /** ExecuteMultiFetchAsDBARequest sql. */ + public sql: string; - /** CreateShardRequest force. */ - public force: boolean; + /** ExecuteMultiFetchAsDBARequest max_rows. */ + public max_rows: (number|Long); - /** CreateShardRequest include_parent. */ - public include_parent: boolean; + /** ExecuteMultiFetchAsDBARequest disable_binlogs. */ + public disable_binlogs: boolean; + + /** ExecuteMultiFetchAsDBARequest reload_schema. */ + public reload_schema: boolean; /** - * Creates a new CreateShardRequest instance using the specified properties. + * Creates a new ExecuteMultiFetchAsDBARequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateShardRequest instance + * @returns ExecuteMultiFetchAsDBARequest instance */ - public static create(properties?: vtctldata.ICreateShardRequest): vtctldata.CreateShardRequest; + public static create(properties?: vtctldata.IExecuteMultiFetchAsDBARequest): vtctldata.ExecuteMultiFetchAsDBARequest; /** - * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. - * @param message CreateShardRequest message or plain object to encode + * 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.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IExecuteMultiFetchAsDBARequest, 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 + * 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.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IExecuteMultiFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateShardRequest message from the specified reader or buffer. + * 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 CreateShardRequest + * @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.CreateShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteMultiFetchAsDBARequest; /** - * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateShardRequest + * @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.CreateShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteMultiFetchAsDBARequest; /** - * Verifies a CreateShardRequest message. + * 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 a CreateShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteMultiFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateShardRequest + * @returns ExecuteMultiFetchAsDBARequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteMultiFetchAsDBARequest; /** - * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. - * @param message CreateShardRequest + * 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.CreateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ExecuteMultiFetchAsDBARequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateShardRequest to JSON. + * Converts this ExecuteMultiFetchAsDBARequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateShardRequest + * 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 a CreateShardResponse. */ - interface ICreateShardResponse { - - /** CreateShardResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); - - /** CreateShardResponse shard */ - shard?: (vtctldata.IShard|null); + /** Properties of an ExecuteMultiFetchAsDBAResponse. */ + interface IExecuteMultiFetchAsDBAResponse { - /** CreateShardResponse shard_already_exists */ - shard_already_exists?: (boolean|null); + /** ExecuteMultiFetchAsDBAResponse results */ + results?: (query.IQueryResult[]|null); } - /** Represents a CreateShardResponse. */ - class CreateShardResponse implements ICreateShardResponse { + /** Represents an ExecuteMultiFetchAsDBAResponse. */ + class ExecuteMultiFetchAsDBAResponse implements IExecuteMultiFetchAsDBAResponse { /** - * Constructs a new CreateShardResponse. + * Constructs a new ExecuteMultiFetchAsDBAResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICreateShardResponse); - - /** CreateShardResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); - - /** CreateShardResponse shard. */ - public shard?: (vtctldata.IShard|null); + constructor(properties?: vtctldata.IExecuteMultiFetchAsDBAResponse); - /** CreateShardResponse shard_already_exists. */ - public shard_already_exists: boolean; + /** ExecuteMultiFetchAsDBAResponse results. */ + public results: query.IQueryResult[]; /** - * Creates a new CreateShardResponse instance using the specified properties. + * Creates a new ExecuteMultiFetchAsDBAResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateShardResponse instance + * @returns ExecuteMultiFetchAsDBAResponse instance */ - public static create(properties?: vtctldata.ICreateShardResponse): vtctldata.CreateShardResponse; + public static create(properties?: vtctldata.IExecuteMultiFetchAsDBAResponse): vtctldata.ExecuteMultiFetchAsDBAResponse; /** - * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. - * @param message CreateShardResponse message or plain object to encode + * 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.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IExecuteMultiFetchAsDBAResponse, 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 + * 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.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IExecuteMultiFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateShardResponse message from the specified reader or buffer. + * 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 CreateShardResponse + * @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.CreateShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteMultiFetchAsDBAResponse; /** - * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateShardResponse + * @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.CreateShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteMultiFetchAsDBAResponse; /** - * Verifies a CreateShardResponse message. + * 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 a CreateShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteMultiFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateShardResponse + * @returns ExecuteMultiFetchAsDBAResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteMultiFetchAsDBAResponse; /** - * Creates a plain object from a CreateShardResponse message. Also converts values to other types if specified. - * @param message CreateShardResponse + * 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.CreateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ExecuteMultiFetchAsDBAResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateShardResponse to JSON. + * Converts this ExecuteMultiFetchAsDBAResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateShardResponse + * 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 DeleteCellInfoRequest. */ - interface IDeleteCellInfoRequest { - - /** DeleteCellInfoRequest name */ - name?: (string|null); + /** Properties of a FindAllShardsInKeyspaceRequest. */ + interface IFindAllShardsInKeyspaceRequest { - /** DeleteCellInfoRequest force */ - force?: (boolean|null); + /** FindAllShardsInKeyspaceRequest keyspace */ + keyspace?: (string|null); } - /** Represents a DeleteCellInfoRequest. */ - class DeleteCellInfoRequest implements IDeleteCellInfoRequest { + /** Represents a FindAllShardsInKeyspaceRequest. */ + class FindAllShardsInKeyspaceRequest implements IFindAllShardsInKeyspaceRequest { /** - * Constructs a new DeleteCellInfoRequest. + * Constructs a new FindAllShardsInKeyspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteCellInfoRequest); - - /** DeleteCellInfoRequest name. */ - public name: string; + constructor(properties?: vtctldata.IFindAllShardsInKeyspaceRequest); - /** DeleteCellInfoRequest force. */ - public force: boolean; + /** FindAllShardsInKeyspaceRequest keyspace. */ + public keyspace: string; /** - * Creates a new DeleteCellInfoRequest instance using the specified properties. + * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteCellInfoRequest instance + * @returns FindAllShardsInKeyspaceRequest instance */ - public static create(properties?: vtctldata.IDeleteCellInfoRequest): vtctldata.DeleteCellInfoRequest; + public static create(properties?: vtctldata.IFindAllShardsInKeyspaceRequest): vtctldata.FindAllShardsInKeyspaceRequest; /** - * Encodes the specified DeleteCellInfoRequest message. Does not implicitly {@link vtctldata.DeleteCellInfoRequest.verify|verify} messages. - * @param message DeleteCellInfoRequest message or plain object to encode + * 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.IDeleteCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IFindAllShardsInKeyspaceRequest, 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 + * 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.IDeleteCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteCellInfoRequest message from the specified reader or buffer. + * 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 DeleteCellInfoRequest + * @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.DeleteCellInfoRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.FindAllShardsInKeyspaceRequest; /** - * Decodes a DeleteCellInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteCellInfoRequest + * @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.DeleteCellInfoRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.FindAllShardsInKeyspaceRequest; /** - * Verifies a DeleteCellInfoRequest message. + * 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 DeleteCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FindAllShardsInKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteCellInfoRequest + * @returns FindAllShardsInKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellInfoRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceRequest; /** - * Creates a plain object from a DeleteCellInfoRequest message. Also converts values to other types if specified. - * @param message DeleteCellInfoRequest + * 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.DeleteCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.FindAllShardsInKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteCellInfoRequest to JSON. + * Converts this FindAllShardsInKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteCellInfoRequest + * 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 DeleteCellInfoResponse. */ - interface IDeleteCellInfoResponse { + /** Properties of a FindAllShardsInKeyspaceResponse. */ + interface IFindAllShardsInKeyspaceResponse { + + /** FindAllShardsInKeyspaceResponse shards */ + shards?: ({ [k: string]: vtctldata.IShard }|null); } - /** Represents a DeleteCellInfoResponse. */ - class DeleteCellInfoResponse implements IDeleteCellInfoResponse { + /** Represents a FindAllShardsInKeyspaceResponse. */ + class FindAllShardsInKeyspaceResponse implements IFindAllShardsInKeyspaceResponse { /** - * Constructs a new DeleteCellInfoResponse. + * Constructs a new FindAllShardsInKeyspaceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteCellInfoResponse); + constructor(properties?: vtctldata.IFindAllShardsInKeyspaceResponse); + + /** FindAllShardsInKeyspaceResponse shards. */ + public shards: { [k: string]: vtctldata.IShard }; /** - * Creates a new DeleteCellInfoResponse instance using the specified properties. + * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteCellInfoResponse instance + * @returns FindAllShardsInKeyspaceResponse instance */ - public static create(properties?: vtctldata.IDeleteCellInfoResponse): vtctldata.DeleteCellInfoResponse; + public static create(properties?: vtctldata.IFindAllShardsInKeyspaceResponse): vtctldata.FindAllShardsInKeyspaceResponse; /** - * Encodes the specified DeleteCellInfoResponse message. Does not implicitly {@link vtctldata.DeleteCellInfoResponse.verify|verify} messages. - * @param message DeleteCellInfoResponse message or plain object to encode + * 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.IDeleteCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IFindAllShardsInKeyspaceResponse, 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 + * 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.IDeleteCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteCellInfoResponse message from the specified reader or buffer. + * 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 DeleteCellInfoResponse + * @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.DeleteCellInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.FindAllShardsInKeyspaceResponse; /** - * Decodes a DeleteCellInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteCellInfoResponse + * @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.DeleteCellInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.FindAllShardsInKeyspaceResponse; /** - * Verifies a DeleteCellInfoResponse message. + * 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 DeleteCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FindAllShardsInKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteCellInfoResponse + * @returns FindAllShardsInKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellInfoResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceResponse; /** - * Creates a plain object from a DeleteCellInfoResponse message. Also converts values to other types if specified. - * @param message DeleteCellInfoResponse + * 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.DeleteCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.FindAllShardsInKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteCellInfoResponse to JSON. + * Converts this FindAllShardsInKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteCellInfoResponse + * 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 DeleteCellsAliasRequest. */ - interface IDeleteCellsAliasRequest { + /** Properties of a ForceCutOverSchemaMigrationRequest. */ + interface IForceCutOverSchemaMigrationRequest { - /** DeleteCellsAliasRequest name */ - name?: (string|null); + /** ForceCutOverSchemaMigrationRequest keyspace */ + keyspace?: (string|null); + + /** ForceCutOverSchemaMigrationRequest uuid */ + uuid?: (string|null); + + /** ForceCutOverSchemaMigrationRequest caller_id */ + caller_id?: (vtrpc.ICallerID|null); } - /** Represents a DeleteCellsAliasRequest. */ - class DeleteCellsAliasRequest implements IDeleteCellsAliasRequest { + /** Represents a ForceCutOverSchemaMigrationRequest. */ + class ForceCutOverSchemaMigrationRequest implements IForceCutOverSchemaMigrationRequest { /** - * Constructs a new DeleteCellsAliasRequest. + * Constructs a new ForceCutOverSchemaMigrationRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteCellsAliasRequest); + constructor(properties?: vtctldata.IForceCutOverSchemaMigrationRequest); - /** DeleteCellsAliasRequest name. */ - public name: string; + /** ForceCutOverSchemaMigrationRequest keyspace. */ + public keyspace: string; + + /** ForceCutOverSchemaMigrationRequest uuid. */ + public uuid: string; + + /** ForceCutOverSchemaMigrationRequest caller_id. */ + public caller_id?: (vtrpc.ICallerID|null); /** - * Creates a new DeleteCellsAliasRequest instance using the specified properties. + * Creates a new ForceCutOverSchemaMigrationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteCellsAliasRequest instance + * @returns ForceCutOverSchemaMigrationRequest instance */ - public static create(properties?: vtctldata.IDeleteCellsAliasRequest): vtctldata.DeleteCellsAliasRequest; + public static create(properties?: vtctldata.IForceCutOverSchemaMigrationRequest): vtctldata.ForceCutOverSchemaMigrationRequest; /** - * Encodes the specified DeleteCellsAliasRequest message. Does not implicitly {@link vtctldata.DeleteCellsAliasRequest.verify|verify} messages. - * @param message DeleteCellsAliasRequest message or plain object to encode + * 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.IDeleteCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IForceCutOverSchemaMigrationRequest, 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 + * 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.IDeleteCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IForceCutOverSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteCellsAliasRequest message from the specified reader or buffer. + * 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 DeleteCellsAliasRequest + * @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.DeleteCellsAliasRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ForceCutOverSchemaMigrationRequest; /** - * Decodes a DeleteCellsAliasRequest message from the specified reader or buffer, length delimited. + * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteCellsAliasRequest + * @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.DeleteCellsAliasRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ForceCutOverSchemaMigrationRequest; /** - * Verifies a DeleteCellsAliasRequest message. + * 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 DeleteCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ForceCutOverSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteCellsAliasRequest + * @returns ForceCutOverSchemaMigrationRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellsAliasRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ForceCutOverSchemaMigrationRequest; /** - * Creates a plain object from a DeleteCellsAliasRequest message. Also converts values to other types if specified. - * @param message DeleteCellsAliasRequest + * 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.DeleteCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ForceCutOverSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteCellsAliasRequest to JSON. + * Converts this ForceCutOverSchemaMigrationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteCellsAliasRequest + * 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 DeleteCellsAliasResponse. */ - interface IDeleteCellsAliasResponse { + /** Properties of a ForceCutOverSchemaMigrationResponse. */ + interface IForceCutOverSchemaMigrationResponse { + + /** ForceCutOverSchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); } - /** Represents a DeleteCellsAliasResponse. */ - class DeleteCellsAliasResponse implements IDeleteCellsAliasResponse { + /** Represents a ForceCutOverSchemaMigrationResponse. */ + class ForceCutOverSchemaMigrationResponse implements IForceCutOverSchemaMigrationResponse { /** - * Constructs a new DeleteCellsAliasResponse. + * Constructs a new ForceCutOverSchemaMigrationResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteCellsAliasResponse); + constructor(properties?: vtctldata.IForceCutOverSchemaMigrationResponse); + + /** ForceCutOverSchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; /** - * Creates a new DeleteCellsAliasResponse instance using the specified properties. + * Creates a new ForceCutOverSchemaMigrationResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteCellsAliasResponse instance + * @returns ForceCutOverSchemaMigrationResponse instance */ - public static create(properties?: vtctldata.IDeleteCellsAliasResponse): vtctldata.DeleteCellsAliasResponse; + public static create(properties?: vtctldata.IForceCutOverSchemaMigrationResponse): vtctldata.ForceCutOverSchemaMigrationResponse; /** - * Encodes the specified DeleteCellsAliasResponse message. Does not implicitly {@link vtctldata.DeleteCellsAliasResponse.verify|verify} messages. - * @param message DeleteCellsAliasResponse message or plain object to encode + * 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.IDeleteCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IForceCutOverSchemaMigrationResponse, 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 + * 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.IDeleteCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IForceCutOverSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer. + * 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 DeleteCellsAliasResponse + * @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.DeleteCellsAliasResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ForceCutOverSchemaMigrationResponse; /** - * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer, length delimited. + * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteCellsAliasResponse + * @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.DeleteCellsAliasResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ForceCutOverSchemaMigrationResponse; /** - * Verifies a DeleteCellsAliasResponse message. + * 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 DeleteCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ForceCutOverSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteCellsAliasResponse + * @returns ForceCutOverSchemaMigrationResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellsAliasResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ForceCutOverSchemaMigrationResponse; /** - * Creates a plain object from a DeleteCellsAliasResponse message. Also converts values to other types if specified. - * @param message DeleteCellsAliasResponse + * 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.DeleteCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ForceCutOverSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteCellsAliasResponse to JSON. + * Converts this ForceCutOverSchemaMigrationResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteCellsAliasResponse + * 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 DeleteKeyspaceRequest. */ - interface IDeleteKeyspaceRequest { + /** Properties of a GetBackupsRequest. */ + interface IGetBackupsRequest { - /** DeleteKeyspaceRequest keyspace */ + /** GetBackupsRequest keyspace */ keyspace?: (string|null); - /** DeleteKeyspaceRequest recursive */ - recursive?: (boolean|null); + /** GetBackupsRequest shard */ + shard?: (string|null); - /** DeleteKeyspaceRequest force */ - force?: (boolean|null); + /** GetBackupsRequest limit */ + limit?: (number|null); + + /** GetBackupsRequest detailed */ + detailed?: (boolean|null); + + /** GetBackupsRequest detailed_limit */ + detailed_limit?: (number|null); } - /** Represents a DeleteKeyspaceRequest. */ - class DeleteKeyspaceRequest implements IDeleteKeyspaceRequest { + /** Represents a GetBackupsRequest. */ + class GetBackupsRequest implements IGetBackupsRequest { /** - * Constructs a new DeleteKeyspaceRequest. + * Constructs a new GetBackupsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteKeyspaceRequest); + constructor(properties?: vtctldata.IGetBackupsRequest); - /** DeleteKeyspaceRequest keyspace. */ + /** GetBackupsRequest keyspace. */ public keyspace: string; - /** DeleteKeyspaceRequest recursive. */ - public recursive: boolean; + /** GetBackupsRequest shard. */ + public shard: string; - /** DeleteKeyspaceRequest force. */ - public force: boolean; + /** GetBackupsRequest limit. */ + public limit: number; + + /** GetBackupsRequest detailed. */ + public detailed: boolean; + + /** GetBackupsRequest detailed_limit. */ + public detailed_limit: number; /** - * Creates a new DeleteKeyspaceRequest instance using the specified properties. + * Creates a new GetBackupsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteKeyspaceRequest instance + * @returns GetBackupsRequest instance */ - public static create(properties?: vtctldata.IDeleteKeyspaceRequest): vtctldata.DeleteKeyspaceRequest; + public static create(properties?: vtctldata.IGetBackupsRequest): vtctldata.GetBackupsRequest; /** - * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. - * @param message DeleteKeyspaceRequest message or plain object to encode + * 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.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetBackupsRequest, 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 + * 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.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. + * 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 DeleteKeyspaceRequest + * @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.DeleteKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsRequest; /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteKeyspaceRequest + * @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.DeleteKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsRequest; /** - * Verifies a DeleteKeyspaceRequest message. + * 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 DeleteKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBackupsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteKeyspaceRequest + * @returns GetBackupsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsRequest; /** - * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. - * @param message DeleteKeyspaceRequest + * 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.DeleteKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteKeyspaceRequest to JSON. + * Converts this GetBackupsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteKeyspaceRequest + * 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 DeleteKeyspaceResponse. */ - interface IDeleteKeyspaceResponse { + /** Properties of a GetBackupsResponse. */ + interface IGetBackupsResponse { + + /** GetBackupsResponse backups */ + backups?: (mysqlctl.IBackupInfo[]|null); } - /** Represents a DeleteKeyspaceResponse. */ - class DeleteKeyspaceResponse implements IDeleteKeyspaceResponse { + /** Represents a GetBackupsResponse. */ + class GetBackupsResponse implements IGetBackupsResponse { /** - * Constructs a new DeleteKeyspaceResponse. + * Constructs a new GetBackupsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteKeyspaceResponse); + constructor(properties?: vtctldata.IGetBackupsResponse); + + /** GetBackupsResponse backups. */ + public backups: mysqlctl.IBackupInfo[]; /** - * Creates a new DeleteKeyspaceResponse instance using the specified properties. + * Creates a new GetBackupsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteKeyspaceResponse instance + * @returns GetBackupsResponse instance */ - public static create(properties?: vtctldata.IDeleteKeyspaceResponse): vtctldata.DeleteKeyspaceResponse; + public static create(properties?: vtctldata.IGetBackupsResponse): vtctldata.GetBackupsResponse; /** - * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. - * @param message DeleteKeyspaceResponse message or plain object to encode + * 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.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetBackupsResponse, 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 + * 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.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. + * 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 DeleteKeyspaceResponse + * @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.DeleteKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsResponse; /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteKeyspaceResponse + * @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.DeleteKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsResponse; /** - * Verifies a DeleteKeyspaceResponse message. + * 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 DeleteKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetBackupsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteKeyspaceResponse + * @returns GetBackupsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsResponse; /** - * Creates a plain object from a DeleteKeyspaceResponse message. Also converts values to other types if specified. - * @param message DeleteKeyspaceResponse + * 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.DeleteKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteKeyspaceResponse to JSON. + * Converts this GetBackupsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteKeyspaceResponse + * 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 DeleteShardsRequest. */ - interface IDeleteShardsRequest { - - /** DeleteShardsRequest shards */ - shards?: (vtctldata.IShard[]|null); - - /** DeleteShardsRequest recursive */ - recursive?: (boolean|null); - - /** DeleteShardsRequest even_if_serving */ - even_if_serving?: (boolean|null); + /** Properties of a GetCellInfoRequest. */ + interface IGetCellInfoRequest { - /** DeleteShardsRequest force */ - force?: (boolean|null); + /** GetCellInfoRequest cell */ + cell?: (string|null); } - /** Represents a DeleteShardsRequest. */ - class DeleteShardsRequest implements IDeleteShardsRequest { + /** Represents a GetCellInfoRequest. */ + class GetCellInfoRequest implements IGetCellInfoRequest { /** - * Constructs a new DeleteShardsRequest. + * Constructs a new GetCellInfoRequest. * @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; + constructor(properties?: vtctldata.IGetCellInfoRequest); - /** DeleteShardsRequest force. */ - public force: boolean; + /** GetCellInfoRequest cell. */ + public cell: string; /** - * Creates a new DeleteShardsRequest instance using the specified properties. + * Creates a new GetCellInfoRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteShardsRequest instance + * @returns GetCellInfoRequest instance */ - public static create(properties?: vtctldata.IDeleteShardsRequest): vtctldata.DeleteShardsRequest; + public static create(properties?: vtctldata.IGetCellInfoRequest): vtctldata.GetCellInfoRequest; /** - * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. - * @param message DeleteShardsRequest message or plain object to encode + * 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.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellInfoRequest, 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 + * 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.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer. + * 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 DeleteShardsRequest + * @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.DeleteShardsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoRequest; /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteShardsRequest + * @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.DeleteShardsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoRequest; /** - * Verifies a DeleteShardsRequest message. + * 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 DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteShardsRequest + * @returns GetCellInfoRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoRequest; /** - * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. - * @param message DeleteShardsRequest + * 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.DeleteShardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteShardsRequest to JSON. + * Converts this GetCellInfoRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteShardsRequest + * 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 DeleteShardsResponse. */ - interface IDeleteShardsResponse { + /** Properties of a GetCellInfoResponse. */ + interface IGetCellInfoResponse { + + /** GetCellInfoResponse cell_info */ + cell_info?: (topodata.ICellInfo|null); } - /** Represents a DeleteShardsResponse. */ - class DeleteShardsResponse implements IDeleteShardsResponse { + /** Represents a GetCellInfoResponse. */ + class GetCellInfoResponse implements IGetCellInfoResponse { /** - * Constructs a new DeleteShardsResponse. + * Constructs a new GetCellInfoResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteShardsResponse); + constructor(properties?: vtctldata.IGetCellInfoResponse); + + /** GetCellInfoResponse cell_info. */ + public cell_info?: (topodata.ICellInfo|null); /** - * Creates a new DeleteShardsResponse instance using the specified properties. + * Creates a new GetCellInfoResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteShardsResponse instance + * @returns GetCellInfoResponse instance */ - public static create(properties?: vtctldata.IDeleteShardsResponse): vtctldata.DeleteShardsResponse; + public static create(properties?: vtctldata.IGetCellInfoResponse): vtctldata.GetCellInfoResponse; /** - * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. - * @param message DeleteShardsResponse message or plain object to encode + * 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.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellInfoResponse, 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 + * 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.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer. + * 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 DeleteShardsResponse + * @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.DeleteShardsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoResponse; /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteShardsResponse + * @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.DeleteShardsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoResponse; /** - * Verifies a DeleteShardsResponse message. + * 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 DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteShardsResponse + * @returns GetCellInfoResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoResponse; /** - * Creates a plain object from a DeleteShardsResponse message. Also converts values to other types if specified. - * @param message DeleteShardsResponse + * 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.DeleteShardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteShardsResponse to JSON. + * Converts this GetCellInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteShardsResponse + * 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 DeleteSrvVSchemaRequest. */ - interface IDeleteSrvVSchemaRequest { - - /** DeleteSrvVSchemaRequest cell */ - cell?: (string|null); + /** Properties of a GetCellInfoNamesRequest. */ + interface IGetCellInfoNamesRequest { } - /** Represents a DeleteSrvVSchemaRequest. */ - class DeleteSrvVSchemaRequest implements IDeleteSrvVSchemaRequest { + /** Represents a GetCellInfoNamesRequest. */ + class GetCellInfoNamesRequest implements IGetCellInfoNamesRequest { /** - * Constructs a new DeleteSrvVSchemaRequest. + * Constructs a new GetCellInfoNamesRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteSrvVSchemaRequest); - - /** DeleteSrvVSchemaRequest cell. */ - public cell: string; + constructor(properties?: vtctldata.IGetCellInfoNamesRequest); /** - * Creates a new DeleteSrvVSchemaRequest instance using the specified properties. + * Creates a new GetCellInfoNamesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteSrvVSchemaRequest instance + * @returns GetCellInfoNamesRequest instance */ - public static create(properties?: vtctldata.IDeleteSrvVSchemaRequest): vtctldata.DeleteSrvVSchemaRequest; + public static create(properties?: vtctldata.IGetCellInfoNamesRequest): vtctldata.GetCellInfoNamesRequest; /** - * Encodes the specified DeleteSrvVSchemaRequest message. Does not implicitly {@link vtctldata.DeleteSrvVSchemaRequest.verify|verify} messages. - * @param message DeleteSrvVSchemaRequest message or plain object to encode + * 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.IDeleteSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellInfoNamesRequest, 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 + * 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.IDeleteSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer. + * 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 DeleteSrvVSchemaRequest + * @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.DeleteSrvVSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesRequest; /** - * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteSrvVSchemaRequest + * @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.DeleteSrvVSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesRequest; /** - * Verifies a DeleteSrvVSchemaRequest message. + * 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 DeleteSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoNamesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteSrvVSchemaRequest + * @returns GetCellInfoNamesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteSrvVSchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesRequest; /** - * Creates a plain object from a DeleteSrvVSchemaRequest message. Also converts values to other types if specified. - * @param message DeleteSrvVSchemaRequest + * 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.DeleteSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellInfoNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteSrvVSchemaRequest to JSON. + * Converts this GetCellInfoNamesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteSrvVSchemaRequest + * 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 DeleteSrvVSchemaResponse. */ - interface IDeleteSrvVSchemaResponse { + /** Properties of a GetCellInfoNamesResponse. */ + interface IGetCellInfoNamesResponse { + + /** GetCellInfoNamesResponse names */ + names?: (string[]|null); } - /** Represents a DeleteSrvVSchemaResponse. */ - class DeleteSrvVSchemaResponse implements IDeleteSrvVSchemaResponse { + /** Represents a GetCellInfoNamesResponse. */ + class GetCellInfoNamesResponse implements IGetCellInfoNamesResponse { /** - * Constructs a new DeleteSrvVSchemaResponse. + * Constructs a new GetCellInfoNamesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteSrvVSchemaResponse); + constructor(properties?: vtctldata.IGetCellInfoNamesResponse); + + /** GetCellInfoNamesResponse names. */ + public names: string[]; /** - * Creates a new DeleteSrvVSchemaResponse instance using the specified properties. + * Creates a new GetCellInfoNamesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteSrvVSchemaResponse instance + * @returns GetCellInfoNamesResponse instance */ - public static create(properties?: vtctldata.IDeleteSrvVSchemaResponse): vtctldata.DeleteSrvVSchemaResponse; + public static create(properties?: vtctldata.IGetCellInfoNamesResponse): vtctldata.GetCellInfoNamesResponse; /** - * Encodes the specified DeleteSrvVSchemaResponse message. Does not implicitly {@link vtctldata.DeleteSrvVSchemaResponse.verify|verify} messages. - * @param message DeleteSrvVSchemaResponse message or plain object to encode + * 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.IDeleteSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellInfoNamesResponse, 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 + * 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.IDeleteSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer. + * 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 DeleteSrvVSchemaResponse + * @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.DeleteSrvVSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesResponse; /** - * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteSrvVSchemaResponse + * @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.DeleteSrvVSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesResponse; /** - * Verifies a DeleteSrvVSchemaResponse message. + * 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 DeleteSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoNamesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteSrvVSchemaResponse + * @returns GetCellInfoNamesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteSrvVSchemaResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesResponse; /** - * Creates a plain object from a DeleteSrvVSchemaResponse message. Also converts values to other types if specified. - * @param message DeleteSrvVSchemaResponse + * 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.DeleteSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellInfoNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteSrvVSchemaResponse to JSON. + * Converts this GetCellInfoNamesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteSrvVSchemaResponse + * 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 DeleteTabletsRequest. */ - interface IDeleteTabletsRequest { - - /** DeleteTabletsRequest tablet_aliases */ - tablet_aliases?: (topodata.ITabletAlias[]|null); - - /** DeleteTabletsRequest allow_primary */ - allow_primary?: (boolean|null); + /** Properties of a GetCellsAliasesRequest. */ + interface IGetCellsAliasesRequest { } - /** Represents a DeleteTabletsRequest. */ - class DeleteTabletsRequest implements IDeleteTabletsRequest { + /** Represents a GetCellsAliasesRequest. */ + class GetCellsAliasesRequest implements IGetCellsAliasesRequest { /** - * Constructs a new DeleteTabletsRequest. + * Constructs a new GetCellsAliasesRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteTabletsRequest); - - /** DeleteTabletsRequest tablet_aliases. */ - public tablet_aliases: topodata.ITabletAlias[]; - - /** DeleteTabletsRequest allow_primary. */ - public allow_primary: boolean; + constructor(properties?: vtctldata.IGetCellsAliasesRequest); /** - * Creates a new DeleteTabletsRequest instance using the specified properties. + * Creates a new GetCellsAliasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTabletsRequest instance + * @returns GetCellsAliasesRequest instance */ - public static create(properties?: vtctldata.IDeleteTabletsRequest): vtctldata.DeleteTabletsRequest; + public static create(properties?: vtctldata.IGetCellsAliasesRequest): vtctldata.GetCellsAliasesRequest; /** - * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. - * @param message DeleteTabletsRequest message or plain object to encode + * 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.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellsAliasesRequest, 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 + * 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.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer. + * 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 DeleteTabletsRequest + * @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.DeleteTabletsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesRequest; /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTabletsRequest + * @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.DeleteTabletsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesRequest; /** - * Verifies a DeleteTabletsRequest message. + * 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 DeleteTabletsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellsAliasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTabletsRequest + * @returns GetCellsAliasesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesRequest; /** - * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. - * @param message DeleteTabletsRequest + * 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.DeleteTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellsAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTabletsRequest to JSON. + * Converts this GetCellsAliasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTabletsRequest + * 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 DeleteTabletsResponse. */ - interface IDeleteTabletsResponse { + /** Properties of a GetCellsAliasesResponse. */ + interface IGetCellsAliasesResponse { + + /** GetCellsAliasesResponse aliases */ + aliases?: ({ [k: string]: topodata.ICellsAlias }|null); } - /** Represents a DeleteTabletsResponse. */ - class DeleteTabletsResponse implements IDeleteTabletsResponse { + /** Represents a GetCellsAliasesResponse. */ + class GetCellsAliasesResponse implements IGetCellsAliasesResponse { /** - * Constructs a new DeleteTabletsResponse. + * Constructs a new GetCellsAliasesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteTabletsResponse); + constructor(properties?: vtctldata.IGetCellsAliasesResponse); + + /** GetCellsAliasesResponse aliases. */ + public aliases: { [k: string]: topodata.ICellsAlias }; /** - * Creates a new DeleteTabletsResponse instance using the specified properties. + * Creates a new GetCellsAliasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTabletsResponse instance + * @returns GetCellsAliasesResponse instance */ - public static create(properties?: vtctldata.IDeleteTabletsResponse): vtctldata.DeleteTabletsResponse; + public static create(properties?: vtctldata.IGetCellsAliasesResponse): vtctldata.GetCellsAliasesResponse; /** - * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. - * @param message DeleteTabletsResponse message or plain object to encode + * 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.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellsAliasesResponse, 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 + * 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.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer. + * 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 DeleteTabletsResponse + * @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.DeleteTabletsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesResponse; /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTabletsResponse + * @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.DeleteTabletsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesResponse; /** - * Verifies a DeleteTabletsResponse message. + * 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 DeleteTabletsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellsAliasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTabletsResponse + * @returns GetCellsAliasesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesResponse; /** - * Creates a plain object from a DeleteTabletsResponse message. Also converts values to other types if specified. - * @param message DeleteTabletsResponse + * 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.DeleteTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellsAliasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTabletsResponse to JSON. + * Converts this GetCellsAliasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTabletsResponse + * 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 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); + /** Properties of a GetFullStatusRequest. */ + interface IGetFullStatusRequest { - /** EmergencyReparentShardRequest expected_primary */ - expected_primary?: (topodata.ITabletAlias|null); + /** GetFullStatusRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); } - /** Represents an EmergencyReparentShardRequest. */ - class EmergencyReparentShardRequest implements IEmergencyReparentShardRequest { + /** Represents a GetFullStatusRequest. */ + class GetFullStatusRequest implements IGetFullStatusRequest { /** - * Constructs a new EmergencyReparentShardRequest. + * Constructs a new GetFullStatusRequest. * @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; + constructor(properties?: vtctldata.IGetFullStatusRequest); - /** EmergencyReparentShardRequest expected_primary. */ - public expected_primary?: (topodata.ITabletAlias|null); + /** GetFullStatusRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); /** - * Creates a new EmergencyReparentShardRequest instance using the specified properties. + * Creates a new GetFullStatusRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EmergencyReparentShardRequest instance + * @returns GetFullStatusRequest instance */ - public static create(properties?: vtctldata.IEmergencyReparentShardRequest): vtctldata.EmergencyReparentShardRequest; + public static create(properties?: vtctldata.IGetFullStatusRequest): vtctldata.GetFullStatusRequest; /** - * Encodes the specified EmergencyReparentShardRequest message. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. - * @param message EmergencyReparentShardRequest message or plain object to encode + * 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.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetFullStatusRequest, 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 + * 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.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer. + * 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 EmergencyReparentShardRequest + * @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.EmergencyReparentShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetFullStatusRequest; /** - * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer, length delimited. + * Decodes a GetFullStatusRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EmergencyReparentShardRequest + * @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.EmergencyReparentShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetFullStatusRequest; /** - * Verifies an EmergencyReparentShardRequest message. + * 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 an EmergencyReparentShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetFullStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EmergencyReparentShardRequest + * @returns GetFullStatusRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetFullStatusRequest; /** - * Creates a plain object from an EmergencyReparentShardRequest message. Also converts values to other types if specified. - * @param message EmergencyReparentShardRequest + * 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.EmergencyReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetFullStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EmergencyReparentShardRequest to JSON. + * Converts this GetFullStatusRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EmergencyReparentShardRequest + * 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 an EmergencyReparentShardResponse. */ - interface IEmergencyReparentShardResponse { - - /** EmergencyReparentShardResponse keyspace */ - keyspace?: (string|null); - - /** EmergencyReparentShardResponse shard */ - shard?: (string|null); - - /** EmergencyReparentShardResponse promoted_primary */ - promoted_primary?: (topodata.ITabletAlias|null); + /** Properties of a GetFullStatusResponse. */ + interface IGetFullStatusResponse { - /** EmergencyReparentShardResponse events */ - events?: (logutil.IEvent[]|null); + /** GetFullStatusResponse status */ + status?: (replicationdata.IFullStatus|null); } - /** Represents an EmergencyReparentShardResponse. */ - class EmergencyReparentShardResponse implements IEmergencyReparentShardResponse { + /** Represents a GetFullStatusResponse. */ + class GetFullStatusResponse implements IGetFullStatusResponse { /** - * Constructs a new EmergencyReparentShardResponse. + * Constructs a new GetFullStatusResponse. * @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); + constructor(properties?: vtctldata.IGetFullStatusResponse); - /** EmergencyReparentShardResponse events. */ - public events: logutil.IEvent[]; + /** GetFullStatusResponse status. */ + public status?: (replicationdata.IFullStatus|null); /** - * Creates a new EmergencyReparentShardResponse instance using the specified properties. + * Creates a new GetFullStatusResponse instance using the specified properties. * @param [properties] Properties to set - * @returns EmergencyReparentShardResponse instance + * @returns GetFullStatusResponse instance */ - public static create(properties?: vtctldata.IEmergencyReparentShardResponse): vtctldata.EmergencyReparentShardResponse; + public static create(properties?: vtctldata.IGetFullStatusResponse): vtctldata.GetFullStatusResponse; /** - * Encodes the specified EmergencyReparentShardResponse message. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. - * @param message EmergencyReparentShardResponse message or plain object to encode + * 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.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetFullStatusResponse, 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 + * 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.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer. + * 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 EmergencyReparentShardResponse + * @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.EmergencyReparentShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetFullStatusResponse; /** - * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer, length delimited. + * Decodes a GetFullStatusResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EmergencyReparentShardResponse + * @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.EmergencyReparentShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetFullStatusResponse; /** - * Verifies an EmergencyReparentShardResponse message. + * 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 an EmergencyReparentShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetFullStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EmergencyReparentShardResponse + * @returns GetFullStatusResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetFullStatusResponse; /** - * Creates a plain object from an EmergencyReparentShardResponse message. Also converts values to other types if specified. - * @param message EmergencyReparentShardResponse + * 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.EmergencyReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetFullStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EmergencyReparentShardResponse to JSON. + * Converts this GetFullStatusResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EmergencyReparentShardResponse + * 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 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); + /** Properties of a GetKeyspacesRequest. */ + interface IGetKeyspacesRequest { } - /** Represents an ExecuteFetchAsAppRequest. */ - class ExecuteFetchAsAppRequest implements IExecuteFetchAsAppRequest { + /** Represents a GetKeyspacesRequest. */ + class GetKeyspacesRequest implements IGetKeyspacesRequest { /** - * Constructs a new ExecuteFetchAsAppRequest. + * Constructs a new GetKeyspacesRequest. * @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; + constructor(properties?: vtctldata.IGetKeyspacesRequest); /** - * Creates a new ExecuteFetchAsAppRequest instance using the specified properties. + * Creates a new GetKeyspacesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteFetchAsAppRequest instance + * @returns GetKeyspacesRequest instance */ - public static create(properties?: vtctldata.IExecuteFetchAsAppRequest): vtctldata.ExecuteFetchAsAppRequest; + public static create(properties?: vtctldata.IGetKeyspacesRequest): vtctldata.GetKeyspacesRequest; /** - * Encodes the specified ExecuteFetchAsAppRequest message. Does not implicitly {@link vtctldata.ExecuteFetchAsAppRequest.verify|verify} messages. - * @param message ExecuteFetchAsAppRequest message or plain object to encode + * 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.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspacesRequest, 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 + * 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.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer. + * 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 ExecuteFetchAsAppRequest + * @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.ExecuteFetchAsAppRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesRequest; /** - * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspacesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsAppRequest + * @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.ExecuteFetchAsAppRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesRequest; /** - * Verifies an ExecuteFetchAsAppRequest message. + * 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 an ExecuteFetchAsAppRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspacesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteFetchAsAppRequest + * @returns GetKeyspacesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsAppRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesRequest; /** - * Creates a plain object from an ExecuteFetchAsAppRequest message. Also converts values to other types if specified. - * @param message ExecuteFetchAsAppRequest + * 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.ExecuteFetchAsAppRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteFetchAsAppRequest to JSON. + * Converts this GetKeyspacesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteFetchAsAppRequest + * 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 an ExecuteFetchAsAppResponse. */ - interface IExecuteFetchAsAppResponse { + /** Properties of a GetKeyspacesResponse. */ + interface IGetKeyspacesResponse { - /** ExecuteFetchAsAppResponse result */ - result?: (query.IQueryResult|null); + /** GetKeyspacesResponse keyspaces */ + keyspaces?: (vtctldata.IKeyspace[]|null); } - /** Represents an ExecuteFetchAsAppResponse. */ - class ExecuteFetchAsAppResponse implements IExecuteFetchAsAppResponse { + /** Represents a GetKeyspacesResponse. */ + class GetKeyspacesResponse implements IGetKeyspacesResponse { /** - * Constructs a new ExecuteFetchAsAppResponse. + * Constructs a new GetKeyspacesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IExecuteFetchAsAppResponse); + constructor(properties?: vtctldata.IGetKeyspacesResponse); - /** ExecuteFetchAsAppResponse result. */ - public result?: (query.IQueryResult|null); + /** GetKeyspacesResponse keyspaces. */ + public keyspaces: vtctldata.IKeyspace[]; /** - * Creates a new ExecuteFetchAsAppResponse instance using the specified properties. + * Creates a new GetKeyspacesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteFetchAsAppResponse instance + * @returns GetKeyspacesResponse instance */ - public static create(properties?: vtctldata.IExecuteFetchAsAppResponse): vtctldata.ExecuteFetchAsAppResponse; + public static create(properties?: vtctldata.IGetKeyspacesResponse): vtctldata.GetKeyspacesResponse; /** - * Encodes the specified ExecuteFetchAsAppResponse message. Does not implicitly {@link vtctldata.ExecuteFetchAsAppResponse.verify|verify} messages. - * @param message ExecuteFetchAsAppResponse message or plain object to encode + * 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.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspacesResponse, 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 + * 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.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer. + * 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 ExecuteFetchAsAppResponse + * @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.ExecuteFetchAsAppResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesResponse; /** - * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspacesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsAppResponse + * @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.ExecuteFetchAsAppResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesResponse; /** - * Verifies an ExecuteFetchAsAppResponse message. + * 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 an ExecuteFetchAsAppResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspacesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteFetchAsAppResponse + * @returns GetKeyspacesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsAppResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesResponse; /** - * Creates a plain object from an ExecuteFetchAsAppResponse message. Also converts values to other types if specified. - * @param message ExecuteFetchAsAppResponse + * 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.ExecuteFetchAsAppResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteFetchAsAppResponse to JSON. + * Converts this GetKeyspacesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteFetchAsAppResponse + * 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 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); + /** Properties of a GetKeyspaceRequest. */ + interface IGetKeyspaceRequest { - /** ExecuteFetchAsDBARequest reload_schema */ - reload_schema?: (boolean|null); + /** GetKeyspaceRequest keyspace */ + keyspace?: (string|null); } - /** Represents an ExecuteFetchAsDBARequest. */ - class ExecuteFetchAsDBARequest implements IExecuteFetchAsDBARequest { + /** Represents a GetKeyspaceRequest. */ + class GetKeyspaceRequest implements IGetKeyspaceRequest { /** - * Constructs a new ExecuteFetchAsDBARequest. + * Constructs a new GetKeyspaceRequest. * @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; + constructor(properties?: vtctldata.IGetKeyspaceRequest); - /** ExecuteFetchAsDBARequest reload_schema. */ - public reload_schema: boolean; + /** GetKeyspaceRequest keyspace. */ + public keyspace: string; /** - * Creates a new ExecuteFetchAsDBARequest instance using the specified properties. + * Creates a new GetKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteFetchAsDBARequest instance + * @returns GetKeyspaceRequest instance */ - public static create(properties?: vtctldata.IExecuteFetchAsDBARequest): vtctldata.ExecuteFetchAsDBARequest; + public static create(properties?: vtctldata.IGetKeyspaceRequest): vtctldata.GetKeyspaceRequest; /** - * Encodes the specified ExecuteFetchAsDBARequest message. Does not implicitly {@link vtctldata.ExecuteFetchAsDBARequest.verify|verify} messages. - * @param message ExecuteFetchAsDBARequest message or plain object to encode + * 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.IExecuteFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspaceRequest, 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 + * 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.IExecuteFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer. + * 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 ExecuteFetchAsDBARequest + * @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.ExecuteFetchAsDBARequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRequest; /** - * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspaceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsDBARequest + * @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.ExecuteFetchAsDBARequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRequest; /** - * Verifies an ExecuteFetchAsDBARequest message. + * 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 an ExecuteFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteFetchAsDBARequest + * @returns GetKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsDBARequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRequest; /** - * Creates a plain object from an ExecuteFetchAsDBARequest message. Also converts values to other types if specified. - * @param message ExecuteFetchAsDBARequest + * 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.ExecuteFetchAsDBARequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteFetchAsDBARequest to JSON. + * Converts this GetKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteFetchAsDBARequest + * 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 an ExecuteFetchAsDBAResponse. */ - interface IExecuteFetchAsDBAResponse { + /** Properties of a GetKeyspaceResponse. */ + interface IGetKeyspaceResponse { - /** ExecuteFetchAsDBAResponse result */ - result?: (query.IQueryResult|null); + /** GetKeyspaceResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); } - /** Represents an ExecuteFetchAsDBAResponse. */ - class ExecuteFetchAsDBAResponse implements IExecuteFetchAsDBAResponse { + /** Represents a GetKeyspaceResponse. */ + class GetKeyspaceResponse implements IGetKeyspaceResponse { /** - * Constructs a new ExecuteFetchAsDBAResponse. + * Constructs a new GetKeyspaceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IExecuteFetchAsDBAResponse); + constructor(properties?: vtctldata.IGetKeyspaceResponse); - /** ExecuteFetchAsDBAResponse result. */ - public result?: (query.IQueryResult|null); + /** GetKeyspaceResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); /** - * Creates a new ExecuteFetchAsDBAResponse instance using the specified properties. + * Creates a new GetKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteFetchAsDBAResponse instance + * @returns GetKeyspaceResponse instance */ - public static create(properties?: vtctldata.IExecuteFetchAsDBAResponse): vtctldata.ExecuteFetchAsDBAResponse; + public static create(properties?: vtctldata.IGetKeyspaceResponse): vtctldata.GetKeyspaceResponse; /** - * Encodes the specified ExecuteFetchAsDBAResponse message. Does not implicitly {@link vtctldata.ExecuteFetchAsDBAResponse.verify|verify} messages. - * @param message ExecuteFetchAsDBAResponse message or plain object to encode + * 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.IExecuteFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspaceResponse, 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 + * 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.IExecuteFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer. + * 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 ExecuteFetchAsDBAResponse + * @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.ExecuteFetchAsDBAResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceResponse; /** - * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspaceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsDBAResponse + * @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.ExecuteFetchAsDBAResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceResponse; /** - * Verifies an ExecuteFetchAsDBAResponse message. + * 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 an ExecuteFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteFetchAsDBAResponse + * @returns GetKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsDBAResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceResponse; /** - * Creates a plain object from an ExecuteFetchAsDBAResponse message. Also converts values to other types if specified. - * @param message ExecuteFetchAsDBAResponse + * 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.ExecuteFetchAsDBAResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteFetchAsDBAResponse to JSON. + * Converts this GetKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteFetchAsDBAResponse + * 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 an ExecuteHookRequest. */ - interface IExecuteHookRequest { + /** Properties of a GetPermissionsRequest. */ + interface IGetPermissionsRequest { - /** ExecuteHookRequest tablet_alias */ + /** GetPermissionsRequest tablet_alias */ tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteHookRequest tablet_hook_request */ - tablet_hook_request?: (tabletmanagerdata.IExecuteHookRequest|null); } - /** Represents an ExecuteHookRequest. */ - class ExecuteHookRequest implements IExecuteHookRequest { + /** Represents a GetPermissionsRequest. */ + class GetPermissionsRequest implements IGetPermissionsRequest { /** - * Constructs a new ExecuteHookRequest. + * Constructs a new GetPermissionsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IExecuteHookRequest); + constructor(properties?: vtctldata.IGetPermissionsRequest); - /** ExecuteHookRequest tablet_alias. */ + /** GetPermissionsRequest 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. + * Creates a new GetPermissionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteHookRequest instance + * @returns GetPermissionsRequest instance */ - public static create(properties?: vtctldata.IExecuteHookRequest): vtctldata.ExecuteHookRequest; + public static create(properties?: vtctldata.IGetPermissionsRequest): vtctldata.GetPermissionsRequest; /** - * Encodes the specified ExecuteHookRequest message. Does not implicitly {@link vtctldata.ExecuteHookRequest.verify|verify} messages. - * @param message ExecuteHookRequest message or plain object to encode + * 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.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetPermissionsRequest, 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 + * 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.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteHookRequest message from the specified reader or buffer. + * 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 ExecuteHookRequest + * @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.ExecuteHookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetPermissionsRequest; /** - * Decodes an ExecuteHookRequest message from the specified reader or buffer, length delimited. + * Decodes a GetPermissionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteHookRequest + * @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.ExecuteHookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetPermissionsRequest; /** - * Verifies an ExecuteHookRequest message. + * 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 an ExecuteHookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetPermissionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteHookRequest + * @returns GetPermissionsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteHookRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetPermissionsRequest; /** - * Creates a plain object from an ExecuteHookRequest message. Also converts values to other types if specified. - * @param message ExecuteHookRequest + * 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.ExecuteHookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteHookRequest to JSON. + * Converts this GetPermissionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteHookRequest + * 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 an ExecuteHookResponse. */ - interface IExecuteHookResponse { + /** Properties of a GetPermissionsResponse. */ + interface IGetPermissionsResponse { - /** ExecuteHookResponse hook_result */ - hook_result?: (tabletmanagerdata.IExecuteHookResponse|null); + /** GetPermissionsResponse permissions */ + permissions?: (tabletmanagerdata.IPermissions|null); } - /** Represents an ExecuteHookResponse. */ - class ExecuteHookResponse implements IExecuteHookResponse { + /** Represents a GetPermissionsResponse. */ + class GetPermissionsResponse implements IGetPermissionsResponse { /** - * Constructs a new ExecuteHookResponse. + * Constructs a new GetPermissionsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IExecuteHookResponse); + constructor(properties?: vtctldata.IGetPermissionsResponse); - /** ExecuteHookResponse hook_result. */ - public hook_result?: (tabletmanagerdata.IExecuteHookResponse|null); + /** GetPermissionsResponse permissions. */ + public permissions?: (tabletmanagerdata.IPermissions|null); /** - * Creates a new ExecuteHookResponse instance using the specified properties. + * Creates a new GetPermissionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteHookResponse instance + * @returns GetPermissionsResponse instance */ - public static create(properties?: vtctldata.IExecuteHookResponse): vtctldata.ExecuteHookResponse; + public static create(properties?: vtctldata.IGetPermissionsResponse): vtctldata.GetPermissionsResponse; /** - * Encodes the specified ExecuteHookResponse message. Does not implicitly {@link vtctldata.ExecuteHookResponse.verify|verify} messages. - * @param message ExecuteHookResponse message or plain object to encode + * 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.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetPermissionsResponse, 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 + * 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.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteHookResponse message from the specified reader or buffer. + * 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 ExecuteHookResponse + * @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.ExecuteHookResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetPermissionsResponse; /** - * Decodes an ExecuteHookResponse message from the specified reader or buffer, length delimited. + * Decodes a GetPermissionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteHookResponse + * @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.ExecuteHookResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetPermissionsResponse; /** - * Verifies an ExecuteHookResponse message. + * 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 an ExecuteHookResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetPermissionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteHookResponse + * @returns GetPermissionsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteHookResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetPermissionsResponse; /** - * Creates a plain object from an ExecuteHookResponse message. Also converts values to other types if specified. - * @param message ExecuteHookResponse + * 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.ExecuteHookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteHookResponse to JSON. + * Converts this GetPermissionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteHookResponse + * 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 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); + /** Properties of a GetKeyspaceRoutingRulesRequest. */ + interface IGetKeyspaceRoutingRulesRequest { } - /** Represents an ExecuteMultiFetchAsDBARequest. */ - class ExecuteMultiFetchAsDBARequest implements IExecuteMultiFetchAsDBARequest { + /** Represents a GetKeyspaceRoutingRulesRequest. */ + class GetKeyspaceRoutingRulesRequest implements IGetKeyspaceRoutingRulesRequest { /** - * Constructs a new ExecuteMultiFetchAsDBARequest. + * Constructs a new GetKeyspaceRoutingRulesRequest. * @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; + constructor(properties?: vtctldata.IGetKeyspaceRoutingRulesRequest); /** - * Creates a new ExecuteMultiFetchAsDBARequest instance using the specified properties. + * Creates a new GetKeyspaceRoutingRulesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteMultiFetchAsDBARequest instance + * @returns GetKeyspaceRoutingRulesRequest instance */ - public static create(properties?: vtctldata.IExecuteMultiFetchAsDBARequest): vtctldata.ExecuteMultiFetchAsDBARequest; + public static create(properties?: vtctldata.IGetKeyspaceRoutingRulesRequest): vtctldata.GetKeyspaceRoutingRulesRequest; /** - * Encodes the specified ExecuteMultiFetchAsDBARequest message. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBARequest.verify|verify} messages. - * @param message ExecuteMultiFetchAsDBARequest message or plain object to encode + * 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.IExecuteMultiFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspaceRoutingRulesRequest, 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 + * 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.IExecuteMultiFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer. + * 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 ExecuteMultiFetchAsDBARequest + * @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.ExecuteMultiFetchAsDBARequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRoutingRulesRequest; /** - * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteMultiFetchAsDBARequest + * @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.ExecuteMultiFetchAsDBARequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRoutingRulesRequest; /** - * Verifies an ExecuteMultiFetchAsDBARequest message. + * 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 an ExecuteMultiFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteMultiFetchAsDBARequest + * @returns GetKeyspaceRoutingRulesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteMultiFetchAsDBARequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRoutingRulesRequest; /** - * Creates a plain object from an ExecuteMultiFetchAsDBARequest message. Also converts values to other types if specified. - * @param message ExecuteMultiFetchAsDBARequest + * 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.ExecuteMultiFetchAsDBARequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspaceRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteMultiFetchAsDBARequest to JSON. + * Converts this GetKeyspaceRoutingRulesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteMultiFetchAsDBARequest + * 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 an ExecuteMultiFetchAsDBAResponse. */ - interface IExecuteMultiFetchAsDBAResponse { + /** Properties of a GetKeyspaceRoutingRulesResponse. */ + interface IGetKeyspaceRoutingRulesResponse { - /** ExecuteMultiFetchAsDBAResponse results */ - results?: (query.IQueryResult[]|null); + /** GetKeyspaceRoutingRulesResponse keyspace_routing_rules */ + keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); } - /** Represents an ExecuteMultiFetchAsDBAResponse. */ - class ExecuteMultiFetchAsDBAResponse implements IExecuteMultiFetchAsDBAResponse { + /** Represents a GetKeyspaceRoutingRulesResponse. */ + class GetKeyspaceRoutingRulesResponse implements IGetKeyspaceRoutingRulesResponse { /** - * Constructs a new ExecuteMultiFetchAsDBAResponse. + * Constructs a new GetKeyspaceRoutingRulesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IExecuteMultiFetchAsDBAResponse); + constructor(properties?: vtctldata.IGetKeyspaceRoutingRulesResponse); - /** ExecuteMultiFetchAsDBAResponse results. */ - public results: query.IQueryResult[]; + /** GetKeyspaceRoutingRulesResponse keyspace_routing_rules. */ + public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); /** - * Creates a new ExecuteMultiFetchAsDBAResponse instance using the specified properties. + * Creates a new GetKeyspaceRoutingRulesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteMultiFetchAsDBAResponse instance + * @returns GetKeyspaceRoutingRulesResponse instance */ - public static create(properties?: vtctldata.IExecuteMultiFetchAsDBAResponse): vtctldata.ExecuteMultiFetchAsDBAResponse; + public static create(properties?: vtctldata.IGetKeyspaceRoutingRulesResponse): vtctldata.GetKeyspaceRoutingRulesResponse; /** - * Encodes the specified ExecuteMultiFetchAsDBAResponse message. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBAResponse.verify|verify} messages. - * @param message ExecuteMultiFetchAsDBAResponse message or plain object to encode + * 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.IExecuteMultiFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspaceRoutingRulesResponse, 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 + * 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.IExecuteMultiFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer. + * 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 ExecuteMultiFetchAsDBAResponse + * @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.ExecuteMultiFetchAsDBAResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRoutingRulesResponse; /** - * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteMultiFetchAsDBAResponse + * @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.ExecuteMultiFetchAsDBAResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRoutingRulesResponse; /** - * Verifies an ExecuteMultiFetchAsDBAResponse message. + * 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 an ExecuteMultiFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteMultiFetchAsDBAResponse + * @returns GetKeyspaceRoutingRulesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteMultiFetchAsDBAResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRoutingRulesResponse; /** - * Creates a plain object from an ExecuteMultiFetchAsDBAResponse message. Also converts values to other types if specified. - * @param message ExecuteMultiFetchAsDBAResponse + * 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.ExecuteMultiFetchAsDBAResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspaceRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteMultiFetchAsDBAResponse to JSON. + * Converts this GetKeyspaceRoutingRulesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteMultiFetchAsDBAResponse + * 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 FindAllShardsInKeyspaceRequest. */ - interface IFindAllShardsInKeyspaceRequest { - - /** FindAllShardsInKeyspaceRequest keyspace */ - keyspace?: (string|null); + /** Properties of a GetRoutingRulesRequest. */ + interface IGetRoutingRulesRequest { } - /** Represents a FindAllShardsInKeyspaceRequest. */ - class FindAllShardsInKeyspaceRequest implements IFindAllShardsInKeyspaceRequest { + /** Represents a GetRoutingRulesRequest. */ + class GetRoutingRulesRequest implements IGetRoutingRulesRequest { /** - * Constructs a new FindAllShardsInKeyspaceRequest. + * Constructs a new GetRoutingRulesRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IFindAllShardsInKeyspaceRequest); - - /** FindAllShardsInKeyspaceRequest keyspace. */ - public keyspace: string; + constructor(properties?: vtctldata.IGetRoutingRulesRequest); /** - * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. + * Creates a new GetRoutingRulesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FindAllShardsInKeyspaceRequest instance + * @returns GetRoutingRulesRequest instance */ - public static create(properties?: vtctldata.IFindAllShardsInKeyspaceRequest): vtctldata.FindAllShardsInKeyspaceRequest; + public static create(properties?: vtctldata.IGetRoutingRulesRequest): vtctldata.GetRoutingRulesRequest; /** - * Encodes the specified FindAllShardsInKeyspaceRequest message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. - * @param message FindAllShardsInKeyspaceRequest message or plain object to encode + * 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.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetRoutingRulesRequest, 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 + * 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.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer. + * 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 FindAllShardsInKeyspaceRequest + * @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.FindAllShardsInKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetRoutingRulesRequest; /** - * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a GetRoutingRulesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FindAllShardsInKeyspaceRequest + * @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.FindAllShardsInKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetRoutingRulesRequest; /** - * Verifies a FindAllShardsInKeyspaceRequest message. + * 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 FindAllShardsInKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FindAllShardsInKeyspaceRequest + * @returns GetRoutingRulesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetRoutingRulesRequest; /** - * Creates a plain object from a FindAllShardsInKeyspaceRequest message. Also converts values to other types if specified. - * @param message FindAllShardsInKeyspaceRequest + * 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.FindAllShardsInKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FindAllShardsInKeyspaceRequest to JSON. + * Converts this GetRoutingRulesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FindAllShardsInKeyspaceRequest + * 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 FindAllShardsInKeyspaceResponse. */ - interface IFindAllShardsInKeyspaceResponse { + /** Properties of a GetRoutingRulesResponse. */ + interface IGetRoutingRulesResponse { - /** FindAllShardsInKeyspaceResponse shards */ - shards?: ({ [k: string]: vtctldata.IShard }|null); + /** GetRoutingRulesResponse routing_rules */ + routing_rules?: (vschema.IRoutingRules|null); } - /** Represents a FindAllShardsInKeyspaceResponse. */ - class FindAllShardsInKeyspaceResponse implements IFindAllShardsInKeyspaceResponse { + /** Represents a GetRoutingRulesResponse. */ + class GetRoutingRulesResponse implements IGetRoutingRulesResponse { /** - * Constructs a new FindAllShardsInKeyspaceResponse. + * Constructs a new GetRoutingRulesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IFindAllShardsInKeyspaceResponse); + constructor(properties?: vtctldata.IGetRoutingRulesResponse); - /** FindAllShardsInKeyspaceResponse shards. */ - public shards: { [k: string]: vtctldata.IShard }; + /** GetRoutingRulesResponse routing_rules. */ + public routing_rules?: (vschema.IRoutingRules|null); /** - * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. + * Creates a new GetRoutingRulesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns FindAllShardsInKeyspaceResponse instance + * @returns GetRoutingRulesResponse instance */ - public static create(properties?: vtctldata.IFindAllShardsInKeyspaceResponse): vtctldata.FindAllShardsInKeyspaceResponse; + public static create(properties?: vtctldata.IGetRoutingRulesResponse): vtctldata.GetRoutingRulesResponse; /** - * Encodes the specified FindAllShardsInKeyspaceResponse message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. - * @param message FindAllShardsInKeyspaceResponse message or plain object to encode + * 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.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetRoutingRulesResponse, 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 + * 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.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer. + * 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 FindAllShardsInKeyspaceResponse + * @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.FindAllShardsInKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetRoutingRulesResponse; /** - * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a GetRoutingRulesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FindAllShardsInKeyspaceResponse + * @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.FindAllShardsInKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetRoutingRulesResponse; /** - * Verifies a FindAllShardsInKeyspaceResponse message. + * 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 FindAllShardsInKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FindAllShardsInKeyspaceResponse + * @returns GetRoutingRulesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetRoutingRulesResponse; /** - * Creates a plain object from a FindAllShardsInKeyspaceResponse message. Also converts values to other types if specified. - * @param message FindAllShardsInKeyspaceResponse + * 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.FindAllShardsInKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FindAllShardsInKeyspaceResponse to JSON. + * Converts this GetRoutingRulesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FindAllShardsInKeyspaceResponse + * 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 ForceCutOverSchemaMigrationRequest. */ - interface IForceCutOverSchemaMigrationRequest { + /** Properties of a GetSchemaRequest. */ + interface IGetSchemaRequest { - /** ForceCutOverSchemaMigrationRequest keyspace */ - keyspace?: (string|null); + /** GetSchemaRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); - /** ForceCutOverSchemaMigrationRequest uuid */ - uuid?: (string|null); + /** GetSchemaRequest tables */ + tables?: (string[]|null); - /** ForceCutOverSchemaMigrationRequest caller_id */ - caller_id?: (vtrpc.ICallerID|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 ForceCutOverSchemaMigrationRequest. */ - class ForceCutOverSchemaMigrationRequest implements IForceCutOverSchemaMigrationRequest { + /** Represents a GetSchemaRequest. */ + class GetSchemaRequest implements IGetSchemaRequest { /** - * Constructs a new ForceCutOverSchemaMigrationRequest. + * Constructs a new GetSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IForceCutOverSchemaMigrationRequest); + constructor(properties?: vtctldata.IGetSchemaRequest); - /** ForceCutOverSchemaMigrationRequest keyspace. */ - public keyspace: string; + /** GetSchemaRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); - /** ForceCutOverSchemaMigrationRequest uuid. */ - public uuid: string; + /** GetSchemaRequest tables. */ + public tables: string[]; - /** ForceCutOverSchemaMigrationRequest caller_id. */ - public caller_id?: (vtrpc.ICallerID|null); + /** 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 ForceCutOverSchemaMigrationRequest instance using the specified properties. + * Creates a new GetSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ForceCutOverSchemaMigrationRequest instance + * @returns GetSchemaRequest instance */ - public static create(properties?: vtctldata.IForceCutOverSchemaMigrationRequest): vtctldata.ForceCutOverSchemaMigrationRequest; + public static create(properties?: vtctldata.IGetSchemaRequest): vtctldata.GetSchemaRequest; /** - * Encodes the specified ForceCutOverSchemaMigrationRequest message. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationRequest.verify|verify} messages. - * @param message ForceCutOverSchemaMigrationRequest message or plain object to encode + * 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.IForceCutOverSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSchemaRequest, 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 + * 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.IForceCutOverSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer. + * 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 ForceCutOverSchemaMigrationRequest + * @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.ForceCutOverSchemaMigrationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaRequest; /** - * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ForceCutOverSchemaMigrationRequest + * @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.ForceCutOverSchemaMigrationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaRequest; /** - * Verifies a ForceCutOverSchemaMigrationRequest message. + * 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 ForceCutOverSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ForceCutOverSchemaMigrationRequest + * @returns GetSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ForceCutOverSchemaMigrationRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaRequest; /** - * Creates a plain object from a ForceCutOverSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message ForceCutOverSchemaMigrationRequest + * 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.ForceCutOverSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ForceCutOverSchemaMigrationRequest to JSON. + * Converts this GetSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ForceCutOverSchemaMigrationRequest + * 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 ForceCutOverSchemaMigrationResponse. */ - interface IForceCutOverSchemaMigrationResponse { + /** Properties of a GetSchemaResponse. */ + interface IGetSchemaResponse { - /** ForceCutOverSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + /** GetSchemaResponse schema */ + schema?: (tabletmanagerdata.ISchemaDefinition|null); } - /** Represents a ForceCutOverSchemaMigrationResponse. */ - class ForceCutOverSchemaMigrationResponse implements IForceCutOverSchemaMigrationResponse { + /** Represents a GetSchemaResponse. */ + class GetSchemaResponse implements IGetSchemaResponse { /** - * Constructs a new ForceCutOverSchemaMigrationResponse. + * Constructs a new GetSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IForceCutOverSchemaMigrationResponse); + constructor(properties?: vtctldata.IGetSchemaResponse); - /** ForceCutOverSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; + /** GetSchemaResponse schema. */ + public schema?: (tabletmanagerdata.ISchemaDefinition|null); /** - * Creates a new ForceCutOverSchemaMigrationResponse instance using the specified properties. + * Creates a new GetSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ForceCutOverSchemaMigrationResponse instance + * @returns GetSchemaResponse instance */ - public static create(properties?: vtctldata.IForceCutOverSchemaMigrationResponse): vtctldata.ForceCutOverSchemaMigrationResponse; + public static create(properties?: vtctldata.IGetSchemaResponse): vtctldata.GetSchemaResponse; /** - * Encodes the specified ForceCutOverSchemaMigrationResponse message. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationResponse.verify|verify} messages. - * @param message ForceCutOverSchemaMigrationResponse message or plain object to encode + * 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.IForceCutOverSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSchemaResponse, 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 + * 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.IForceCutOverSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer. + * 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 ForceCutOverSchemaMigrationResponse + * @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.ForceCutOverSchemaMigrationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaResponse; /** - * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ForceCutOverSchemaMigrationResponse + * @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.ForceCutOverSchemaMigrationResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaResponse; /** - * Verifies a ForceCutOverSchemaMigrationResponse message. + * 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 ForceCutOverSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ForceCutOverSchemaMigrationResponse + * @returns GetSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ForceCutOverSchemaMigrationResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaResponse; /** - * Creates a plain object from a ForceCutOverSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message ForceCutOverSchemaMigrationResponse + * 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.ForceCutOverSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ForceCutOverSchemaMigrationResponse to JSON. + * Converts this GetSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ForceCutOverSchemaMigrationResponse + * 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 GetBackupsRequest. */ - interface IGetBackupsRequest { + /** Properties of a GetSchemaMigrationsRequest. */ + interface IGetSchemaMigrationsRequest { - /** GetBackupsRequest keyspace */ + /** GetSchemaMigrationsRequest keyspace */ keyspace?: (string|null); - /** GetBackupsRequest shard */ - shard?: (string|null); + /** GetSchemaMigrationsRequest uuid */ + uuid?: (string|null); - /** GetBackupsRequest limit */ - limit?: (number|null); + /** GetSchemaMigrationsRequest migration_context */ + migration_context?: (string|null); - /** GetBackupsRequest detailed */ - detailed?: (boolean|null); + /** GetSchemaMigrationsRequest status */ + status?: (vtctldata.SchemaMigration.Status|null); - /** GetBackupsRequest detailed_limit */ - detailed_limit?: (number|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 GetBackupsRequest. */ - class GetBackupsRequest implements IGetBackupsRequest { + /** Represents a GetSchemaMigrationsRequest. */ + class GetSchemaMigrationsRequest implements IGetSchemaMigrationsRequest { /** - * Constructs a new GetBackupsRequest. + * Constructs a new GetSchemaMigrationsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetBackupsRequest); + constructor(properties?: vtctldata.IGetSchemaMigrationsRequest); - /** GetBackupsRequest keyspace. */ + /** GetSchemaMigrationsRequest keyspace. */ public keyspace: string; - /** GetBackupsRequest shard. */ - public shard: string; + /** GetSchemaMigrationsRequest uuid. */ + public uuid: string; - /** GetBackupsRequest limit. */ - public limit: number; + /** GetSchemaMigrationsRequest migration_context. */ + public migration_context: string; - /** GetBackupsRequest detailed. */ - public detailed: boolean; + /** GetSchemaMigrationsRequest status. */ + public status: vtctldata.SchemaMigration.Status; - /** GetBackupsRequest detailed_limit. */ - public detailed_limit: number; + /** 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 GetBackupsRequest instance using the specified properties. + * Creates a new GetSchemaMigrationsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetBackupsRequest instance + * @returns GetSchemaMigrationsRequest instance */ - public static create(properties?: vtctldata.IGetBackupsRequest): vtctldata.GetBackupsRequest; + public static create(properties?: vtctldata.IGetSchemaMigrationsRequest): vtctldata.GetSchemaMigrationsRequest; /** - * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. - * @param message GetBackupsRequest message or plain object to encode + * 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.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSchemaMigrationsRequest, 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 + * 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.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSchemaMigrationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBackupsRequest message from the specified reader or buffer. + * 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 GetBackupsRequest + * @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.GetBackupsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaMigrationsRequest; /** - * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetBackupsRequest + * @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.GetBackupsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaMigrationsRequest; /** - * Verifies a GetBackupsRequest message. + * 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 GetBackupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaMigrationsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetBackupsRequest + * @returns GetSchemaMigrationsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaMigrationsRequest; /** - * Creates a plain object from a GetBackupsRequest message. Also converts values to other types if specified. - * @param message GetBackupsRequest + * 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.GetBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSchemaMigrationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBackupsRequest to JSON. + * Converts this GetSchemaMigrationsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetBackupsRequest + * 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 GetBackupsResponse. */ - interface IGetBackupsResponse { + /** Properties of a GetSchemaMigrationsResponse. */ + interface IGetSchemaMigrationsResponse { - /** GetBackupsResponse backups */ - backups?: (mysqlctl.IBackupInfo[]|null); + /** GetSchemaMigrationsResponse migrations */ + migrations?: (vtctldata.ISchemaMigration[]|null); } - /** Represents a GetBackupsResponse. */ - class GetBackupsResponse implements IGetBackupsResponse { + /** Represents a GetSchemaMigrationsResponse. */ + class GetSchemaMigrationsResponse implements IGetSchemaMigrationsResponse { /** - * Constructs a new GetBackupsResponse. + * Constructs a new GetSchemaMigrationsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetBackupsResponse); + constructor(properties?: vtctldata.IGetSchemaMigrationsResponse); - /** GetBackupsResponse backups. */ - public backups: mysqlctl.IBackupInfo[]; + /** GetSchemaMigrationsResponse migrations. */ + public migrations: vtctldata.ISchemaMigration[]; /** - * Creates a new GetBackupsResponse instance using the specified properties. + * Creates a new GetSchemaMigrationsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetBackupsResponse instance + * @returns GetSchemaMigrationsResponse instance */ - public static create(properties?: vtctldata.IGetBackupsResponse): vtctldata.GetBackupsResponse; + public static create(properties?: vtctldata.IGetSchemaMigrationsResponse): vtctldata.GetSchemaMigrationsResponse; /** - * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. - * @param message GetBackupsResponse message or plain object to encode + * 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.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSchemaMigrationsResponse, 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 + * 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.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSchemaMigrationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBackupsResponse message from the specified reader or buffer. + * 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 GetBackupsResponse + * @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.GetBackupsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaMigrationsResponse; /** - * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetBackupsResponse + * @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.GetBackupsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaMigrationsResponse; /** - * Verifies a GetBackupsResponse message. + * 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 GetBackupsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaMigrationsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetBackupsResponse + * @returns GetSchemaMigrationsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaMigrationsResponse; /** - * Creates a plain object from a GetBackupsResponse message. Also converts values to other types if specified. - * @param message GetBackupsResponse + * 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.GetBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSchemaMigrationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBackupsResponse to JSON. + * Converts this GetSchemaMigrationsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetBackupsResponse + * 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 GetCellInfoRequest. */ - interface IGetCellInfoRequest { + /** Properties of a GetShardReplicationRequest. */ + interface IGetShardReplicationRequest { - /** GetCellInfoRequest cell */ - cell?: (string|null); + /** GetShardReplicationRequest keyspace */ + keyspace?: (string|null); + + /** GetShardReplicationRequest shard */ + shard?: (string|null); + + /** GetShardReplicationRequest cells */ + cells?: (string[]|null); } - /** Represents a GetCellInfoRequest. */ - class GetCellInfoRequest implements IGetCellInfoRequest { + /** Represents a GetShardReplicationRequest. */ + class GetShardReplicationRequest implements IGetShardReplicationRequest { /** - * Constructs a new GetCellInfoRequest. + * Constructs a new GetShardReplicationRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoRequest); + constructor(properties?: vtctldata.IGetShardReplicationRequest); - /** GetCellInfoRequest cell. */ - public cell: string; + /** GetShardReplicationRequest keyspace. */ + public keyspace: string; + + /** GetShardReplicationRequest shard. */ + public shard: string; + + /** GetShardReplicationRequest cells. */ + public cells: string[]; /** - * Creates a new GetCellInfoRequest instance using the specified properties. + * Creates a new GetShardReplicationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoRequest instance + * @returns GetShardReplicationRequest instance */ - public static create(properties?: vtctldata.IGetCellInfoRequest): vtctldata.GetCellInfoRequest; + public static create(properties?: vtctldata.IGetShardReplicationRequest): vtctldata.GetShardReplicationRequest; /** - * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. - * @param message GetCellInfoRequest message or plain object to encode + * 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.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetShardReplicationRequest, 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 + * 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.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetShardReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoRequest message from the specified reader or buffer. + * 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 GetCellInfoRequest + * @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.GetCellInfoRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardReplicationRequest; /** - * Decodes a GetCellInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a GetShardReplicationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCellInfoRequest + * @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.GetCellInfoRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardReplicationRequest; /** - * Verifies a GetCellInfoRequest message. + * 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 GetCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardReplicationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCellInfoRequest + * @returns GetShardReplicationRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardReplicationRequest; /** - * Creates a plain object from a GetCellInfoRequest message. Also converts values to other types if specified. - * @param message GetCellInfoRequest + * 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.GetCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetShardReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellInfoRequest to JSON. + * Converts this GetShardReplicationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetCellInfoRequest + * 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 GetCellInfoResponse. */ - interface IGetCellInfoResponse { + /** Properties of a GetShardReplicationResponse. */ + interface IGetShardReplicationResponse { - /** GetCellInfoResponse cell_info */ - cell_info?: (topodata.ICellInfo|null); + /** GetShardReplicationResponse shard_replication_by_cell */ + shard_replication_by_cell?: ({ [k: string]: topodata.IShardReplication }|null); } - /** Represents a GetCellInfoResponse. */ - class GetCellInfoResponse implements IGetCellInfoResponse { + /** Represents a GetShardReplicationResponse. */ + class GetShardReplicationResponse implements IGetShardReplicationResponse { /** - * Constructs a new GetCellInfoResponse. + * Constructs a new GetShardReplicationResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoResponse); + constructor(properties?: vtctldata.IGetShardReplicationResponse); - /** GetCellInfoResponse cell_info. */ - public cell_info?: (topodata.ICellInfo|null); + /** GetShardReplicationResponse shard_replication_by_cell. */ + public shard_replication_by_cell: { [k: string]: topodata.IShardReplication }; /** - * Creates a new GetCellInfoResponse instance using the specified properties. + * Creates a new GetShardReplicationResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoResponse instance + * @returns GetShardReplicationResponse instance */ - public static create(properties?: vtctldata.IGetCellInfoResponse): vtctldata.GetCellInfoResponse; + public static create(properties?: vtctldata.IGetShardReplicationResponse): vtctldata.GetShardReplicationResponse; /** - * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. - * @param message GetCellInfoResponse message or plain object to encode + * 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.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetShardReplicationResponse, 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 + * 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.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetShardReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoResponse message from the specified reader or buffer. + * 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 GetCellInfoResponse + * @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.GetCellInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardReplicationResponse; /** - * Decodes a GetCellInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a GetShardReplicationResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCellInfoResponse + * @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.GetCellInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardReplicationResponse; /** - * Verifies a GetCellInfoResponse message. + * 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 GetCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardReplicationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCellInfoResponse + * @returns GetShardReplicationResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardReplicationResponse; /** - * Creates a plain object from a GetCellInfoResponse message. Also converts values to other types if specified. - * @param message GetCellInfoResponse + * 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.GetCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetShardReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellInfoResponse to JSON. + * Converts this GetShardReplicationResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetCellInfoResponse + * 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 GetCellInfoNamesRequest. */ - interface IGetCellInfoNamesRequest { + /** Properties of a GetShardRequest. */ + interface IGetShardRequest { + + /** GetShardRequest keyspace */ + keyspace?: (string|null); + + /** GetShardRequest shard_name */ + shard_name?: (string|null); } - /** Represents a GetCellInfoNamesRequest. */ - class GetCellInfoNamesRequest implements IGetCellInfoNamesRequest { + /** Represents a GetShardRequest. */ + class GetShardRequest implements IGetShardRequest { /** - * Constructs a new GetCellInfoNamesRequest. + * Constructs a new GetShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoNamesRequest); + constructor(properties?: vtctldata.IGetShardRequest); + + /** GetShardRequest keyspace. */ + public keyspace: string; + + /** GetShardRequest shard_name. */ + public shard_name: string; /** - * Creates a new GetCellInfoNamesRequest instance using the specified properties. + * Creates a new GetShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoNamesRequest instance + * @returns GetShardRequest instance */ - public static create(properties?: vtctldata.IGetCellInfoNamesRequest): vtctldata.GetCellInfoNamesRequest; + public static create(properties?: vtctldata.IGetShardRequest): vtctldata.GetShardRequest; /** - * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. - * @param message GetCellInfoNamesRequest message or plain object to encode + * 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.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetShardRequest, 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 + * 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.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. + * 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 GetCellInfoNamesRequest + * @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.GetCellInfoNamesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRequest; /** - * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetShardRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCellInfoNamesRequest + * @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.GetCellInfoNamesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRequest; /** - * Verifies a GetCellInfoNamesRequest message. + * 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 GetCellInfoNamesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCellInfoNamesRequest + * @returns GetShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRequest; /** - * Creates a plain object from a GetCellInfoNamesRequest message. Also converts values to other types if specified. - * @param message GetCellInfoNamesRequest + * 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.GetCellInfoNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellInfoNamesRequest to JSON. + * Converts this GetShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetCellInfoNamesRequest + * 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 GetCellInfoNamesResponse. */ - interface IGetCellInfoNamesResponse { + /** Properties of a GetShardResponse. */ + interface IGetShardResponse { - /** GetCellInfoNamesResponse names */ - names?: (string[]|null); + /** GetShardResponse shard */ + shard?: (vtctldata.IShard|null); } - /** Represents a GetCellInfoNamesResponse. */ - class GetCellInfoNamesResponse implements IGetCellInfoNamesResponse { + /** Represents a GetShardResponse. */ + class GetShardResponse implements IGetShardResponse { /** - * Constructs a new GetCellInfoNamesResponse. + * Constructs a new GetShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoNamesResponse); + constructor(properties?: vtctldata.IGetShardResponse); - /** GetCellInfoNamesResponse names. */ - public names: string[]; + /** GetShardResponse shard. */ + public shard?: (vtctldata.IShard|null); /** - * Creates a new GetCellInfoNamesResponse instance using the specified properties. + * Creates a new GetShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoNamesResponse instance + * @returns GetShardResponse instance */ - public static create(properties?: vtctldata.IGetCellInfoNamesResponse): vtctldata.GetCellInfoNamesResponse; + public static create(properties?: vtctldata.IGetShardResponse): vtctldata.GetShardResponse; /** - * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. - * @param message GetCellInfoNamesResponse message or plain object to encode + * 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.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetShardResponse, 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 + * 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.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. + * 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 GetCellInfoNamesResponse + * @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.GetCellInfoNamesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardResponse; /** - * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetShardResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCellInfoNamesResponse + * @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.GetCellInfoNamesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardResponse; /** - * Verifies a GetCellInfoNamesResponse message. + * 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 GetCellInfoNamesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCellInfoNamesResponse + * @returns GetShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardResponse; /** - * Creates a plain object from a GetCellInfoNamesResponse message. Also converts values to other types if specified. - * @param message GetCellInfoNamesResponse + * 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.GetCellInfoNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellInfoNamesResponse to JSON. + * Converts this GetShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetCellInfoNamesResponse + * 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 GetCellsAliasesRequest. */ - interface IGetCellsAliasesRequest { + /** Properties of a GetShardRoutingRulesRequest. */ + interface IGetShardRoutingRulesRequest { } - /** Represents a GetCellsAliasesRequest. */ - class GetCellsAliasesRequest implements IGetCellsAliasesRequest { + /** Represents a GetShardRoutingRulesRequest. */ + class GetShardRoutingRulesRequest implements IGetShardRoutingRulesRequest { /** - * Constructs a new GetCellsAliasesRequest. + * Constructs a new GetShardRoutingRulesRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellsAliasesRequest); + constructor(properties?: vtctldata.IGetShardRoutingRulesRequest); /** - * Creates a new GetCellsAliasesRequest instance using the specified properties. + * Creates a new GetShardRoutingRulesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellsAliasesRequest instance + * @returns GetShardRoutingRulesRequest instance */ - public static create(properties?: vtctldata.IGetCellsAliasesRequest): vtctldata.GetCellsAliasesRequest; + public static create(properties?: vtctldata.IGetShardRoutingRulesRequest): vtctldata.GetShardRoutingRulesRequest; /** - * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. - * @param message GetCellsAliasesRequest message or plain object to encode + * 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.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetShardRoutingRulesRequest, 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 + * 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.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. + * 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 GetCellsAliasesRequest + * @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.GetCellsAliasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRoutingRulesRequest; /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCellsAliasesRequest + * @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.GetCellsAliasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRoutingRulesRequest; /** - * Verifies a GetCellsAliasesRequest message. + * 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 GetCellsAliasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCellsAliasesRequest + * @returns GetShardRoutingRulesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRoutingRulesRequest; /** - * Creates a plain object from a GetCellsAliasesRequest message. Also converts values to other types if specified. - * @param message GetCellsAliasesRequest + * 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.GetCellsAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetShardRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellsAliasesRequest to JSON. + * Converts this GetShardRoutingRulesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetCellsAliasesRequest + * 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 GetCellsAliasesResponse. */ - interface IGetCellsAliasesResponse { + /** Properties of a GetShardRoutingRulesResponse. */ + interface IGetShardRoutingRulesResponse { - /** GetCellsAliasesResponse aliases */ - aliases?: ({ [k: string]: topodata.ICellsAlias }|null); + /** GetShardRoutingRulesResponse shard_routing_rules */ + shard_routing_rules?: (vschema.IShardRoutingRules|null); } - /** Represents a GetCellsAliasesResponse. */ - class GetCellsAliasesResponse implements IGetCellsAliasesResponse { + /** Represents a GetShardRoutingRulesResponse. */ + class GetShardRoutingRulesResponse implements IGetShardRoutingRulesResponse { /** - * Constructs a new GetCellsAliasesResponse. + * Constructs a new GetShardRoutingRulesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellsAliasesResponse); + constructor(properties?: vtctldata.IGetShardRoutingRulesResponse); - /** GetCellsAliasesResponse aliases. */ - public aliases: { [k: string]: topodata.ICellsAlias }; + /** GetShardRoutingRulesResponse shard_routing_rules. */ + public shard_routing_rules?: (vschema.IShardRoutingRules|null); /** - * Creates a new GetCellsAliasesResponse instance using the specified properties. + * Creates a new GetShardRoutingRulesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellsAliasesResponse instance + * @returns GetShardRoutingRulesResponse instance */ - public static create(properties?: vtctldata.IGetCellsAliasesResponse): vtctldata.GetCellsAliasesResponse; + public static create(properties?: vtctldata.IGetShardRoutingRulesResponse): vtctldata.GetShardRoutingRulesResponse; /** - * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. - * @param message GetCellsAliasesResponse message or plain object to encode + * 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.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetShardRoutingRulesResponse, 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 + * 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.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. + * 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 GetCellsAliasesResponse + * @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.GetCellsAliasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRoutingRulesResponse; /** - * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCellsAliasesResponse + * @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.GetCellsAliasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRoutingRulesResponse; /** - * Verifies a GetCellsAliasesResponse message. + * 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 GetCellsAliasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCellsAliasesResponse + * @returns GetShardRoutingRulesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRoutingRulesResponse; /** - * Creates a plain object from a GetCellsAliasesResponse message. Also converts values to other types if specified. - * @param message GetCellsAliasesResponse + * 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.GetCellsAliasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetShardRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellsAliasesResponse to JSON. + * Converts this GetShardRoutingRulesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetCellsAliasesResponse + * 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 GetFullStatusRequest. */ - interface IGetFullStatusRequest { + /** Properties of a GetSrvKeyspaceNamesRequest. */ + interface IGetSrvKeyspaceNamesRequest { - /** GetFullStatusRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** GetSrvKeyspaceNamesRequest cells */ + cells?: (string[]|null); } - /** Represents a GetFullStatusRequest. */ - class GetFullStatusRequest implements IGetFullStatusRequest { + /** Represents a GetSrvKeyspaceNamesRequest. */ + class GetSrvKeyspaceNamesRequest implements IGetSrvKeyspaceNamesRequest { /** - * Constructs a new GetFullStatusRequest. + * Constructs a new GetSrvKeyspaceNamesRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetFullStatusRequest); + constructor(properties?: vtctldata.IGetSrvKeyspaceNamesRequest); - /** GetFullStatusRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** GetSrvKeyspaceNamesRequest cells. */ + public cells: string[]; /** - * Creates a new GetFullStatusRequest instance using the specified properties. + * Creates a new GetSrvKeyspaceNamesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetFullStatusRequest instance + * @returns GetSrvKeyspaceNamesRequest instance */ - public static create(properties?: vtctldata.IGetFullStatusRequest): vtctldata.GetFullStatusRequest; + public static create(properties?: vtctldata.IGetSrvKeyspaceNamesRequest): vtctldata.GetSrvKeyspaceNamesRequest; /** - * Encodes the specified GetFullStatusRequest message. Does not implicitly {@link vtctldata.GetFullStatusRequest.verify|verify} messages. - * @param message GetFullStatusRequest message or plain object to encode + * 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.IGetFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSrvKeyspaceNamesRequest, 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 + * 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.IGetFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSrvKeyspaceNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetFullStatusRequest message from the specified reader or buffer. + * 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 GetFullStatusRequest + * @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.GetFullStatusRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspaceNamesRequest; /** - * Decodes a GetFullStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetFullStatusRequest + * @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.GetFullStatusRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspaceNamesRequest; /** - * Verifies a GetFullStatusRequest message. + * 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 GetFullStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvKeyspaceNamesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetFullStatusRequest + * @returns GetSrvKeyspaceNamesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetFullStatusRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesRequest; /** - * Creates a plain object from a GetFullStatusRequest message. Also converts values to other types if specified. - * @param message GetFullStatusRequest + * 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.GetFullStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSrvKeyspaceNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetFullStatusRequest to JSON. + * Converts this GetSrvKeyspaceNamesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetFullStatusRequest + * 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 GetFullStatusResponse. */ - interface IGetFullStatusResponse { + /** Properties of a GetSrvKeyspaceNamesResponse. */ + interface IGetSrvKeyspaceNamesResponse { - /** GetFullStatusResponse status */ - status?: (replicationdata.IFullStatus|null); + /** GetSrvKeyspaceNamesResponse names */ + names?: ({ [k: string]: vtctldata.GetSrvKeyspaceNamesResponse.INameList }|null); } - /** Represents a GetFullStatusResponse. */ - class GetFullStatusResponse implements IGetFullStatusResponse { + /** Represents a GetSrvKeyspaceNamesResponse. */ + class GetSrvKeyspaceNamesResponse implements IGetSrvKeyspaceNamesResponse { /** - * Constructs a new GetFullStatusResponse. + * Constructs a new GetSrvKeyspaceNamesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetFullStatusResponse); + constructor(properties?: vtctldata.IGetSrvKeyspaceNamesResponse); - /** GetFullStatusResponse status. */ - public status?: (replicationdata.IFullStatus|null); + /** GetSrvKeyspaceNamesResponse names. */ + public names: { [k: string]: vtctldata.GetSrvKeyspaceNamesResponse.INameList }; /** - * Creates a new GetFullStatusResponse instance using the specified properties. + * Creates a new GetSrvKeyspaceNamesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetFullStatusResponse instance + * @returns GetSrvKeyspaceNamesResponse instance */ - public static create(properties?: vtctldata.IGetFullStatusResponse): vtctldata.GetFullStatusResponse; + public static create(properties?: vtctldata.IGetSrvKeyspaceNamesResponse): vtctldata.GetSrvKeyspaceNamesResponse; /** - * Encodes the specified GetFullStatusResponse message. Does not implicitly {@link vtctldata.GetFullStatusResponse.verify|verify} messages. - * @param message GetFullStatusResponse message or plain object to encode + * 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.IGetFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSrvKeyspaceNamesResponse, 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 + * 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.IGetFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSrvKeyspaceNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetFullStatusResponse message from the specified reader or buffer. + * 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 GetFullStatusResponse + * @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.GetFullStatusResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspaceNamesResponse; /** - * Decodes a GetFullStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetFullStatusResponse + * @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.GetFullStatusResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspaceNamesResponse; /** - * Verifies a GetFullStatusResponse message. + * 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 GetFullStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvKeyspaceNamesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetFullStatusResponse + * @returns GetSrvKeyspaceNamesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetFullStatusResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesResponse; /** - * Creates a plain object from a GetFullStatusResponse message. Also converts values to other types if specified. - * @param message GetFullStatusResponse + * 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.GetFullStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSrvKeyspaceNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetFullStatusResponse to JSON. + * Converts this GetSrvKeyspaceNamesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetFullStatusResponse + * 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; } - /** Properties of a GetKeyspacesRequest. */ - interface IGetKeyspacesRequest { + 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; + } } - /** Represents a GetKeyspacesRequest. */ - class GetKeyspacesRequest implements IGetKeyspacesRequest { + /** 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 GetKeyspacesRequest. + * Constructs a new GetSrvKeyspacesRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspacesRequest); + constructor(properties?: vtctldata.IGetSrvKeyspacesRequest); + + /** GetSrvKeyspacesRequest keyspace. */ + public keyspace: string; + + /** GetSrvKeyspacesRequest cells. */ + public cells: string[]; /** - * Creates a new GetKeyspacesRequest instance using the specified properties. + * Creates a new GetSrvKeyspacesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspacesRequest instance + * @returns GetSrvKeyspacesRequest instance */ - public static create(properties?: vtctldata.IGetKeyspacesRequest): vtctldata.GetKeyspacesRequest; + public static create(properties?: vtctldata.IGetSrvKeyspacesRequest): vtctldata.GetSrvKeyspacesRequest; /** - * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. - * @param message GetKeyspacesRequest message or plain object to encode + * 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.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSrvKeyspacesRequest, 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 + * 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.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSrvKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspacesRequest message from the specified reader or buffer. + * 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 GetKeyspacesRequest + * @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.GetKeyspacesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspacesRequest; /** - * Decodes a GetKeyspacesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetKeyspacesRequest + * @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.GetKeyspacesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspacesRequest; /** - * Verifies a GetKeyspacesRequest message. + * 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 GetKeyspacesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvKeyspacesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetKeyspacesRequest + * @returns GetSrvKeyspacesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspacesRequest; /** - * Creates a plain object from a GetKeyspacesRequest message. Also converts values to other types if specified. - * @param message GetKeyspacesRequest + * 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.GetKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSrvKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspacesRequest to JSON. + * Converts this GetSrvKeyspacesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetKeyspacesRequest + * 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 GetKeyspacesResponse. */ - interface IGetKeyspacesResponse { + /** Properties of a GetSrvKeyspacesResponse. */ + interface IGetSrvKeyspacesResponse { - /** GetKeyspacesResponse keyspaces */ - keyspaces?: (vtctldata.IKeyspace[]|null); + /** GetSrvKeyspacesResponse srv_keyspaces */ + srv_keyspaces?: ({ [k: string]: topodata.ISrvKeyspace }|null); } - /** Represents a GetKeyspacesResponse. */ - class GetKeyspacesResponse implements IGetKeyspacesResponse { + /** Represents a GetSrvKeyspacesResponse. */ + class GetSrvKeyspacesResponse implements IGetSrvKeyspacesResponse { /** - * Constructs a new GetKeyspacesResponse. + * Constructs a new GetSrvKeyspacesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspacesResponse); + constructor(properties?: vtctldata.IGetSrvKeyspacesResponse); - /** GetKeyspacesResponse keyspaces. */ - public keyspaces: vtctldata.IKeyspace[]; + /** GetSrvKeyspacesResponse srv_keyspaces. */ + public srv_keyspaces: { [k: string]: topodata.ISrvKeyspace }; /** - * Creates a new GetKeyspacesResponse instance using the specified properties. + * Creates a new GetSrvKeyspacesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspacesResponse instance + * @returns GetSrvKeyspacesResponse instance */ - public static create(properties?: vtctldata.IGetKeyspacesResponse): vtctldata.GetKeyspacesResponse; + public static create(properties?: vtctldata.IGetSrvKeyspacesResponse): vtctldata.GetSrvKeyspacesResponse; /** - * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. - * @param message GetKeyspacesResponse message or plain object to encode + * 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.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSrvKeyspacesResponse, 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 + * 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.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSrvKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspacesResponse message from the specified reader or buffer. + * 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 GetKeyspacesResponse + * @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.GetKeyspacesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspacesResponse; /** - * Decodes a GetKeyspacesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetKeyspacesResponse + * @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.GetKeyspacesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspacesResponse; /** - * Verifies a GetKeyspacesResponse message. + * 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 GetKeyspacesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvKeyspacesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetKeyspacesResponse + * @returns GetSrvKeyspacesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspacesResponse; /** - * Creates a plain object from a GetKeyspacesResponse message. Also converts values to other types if specified. - * @param message GetKeyspacesResponse + * 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.GetKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSrvKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspacesResponse to JSON. + * Converts this GetSrvKeyspacesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetKeyspacesResponse + * 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 a GetKeyspaceRequest. */ - interface IGetKeyspaceRequest { + /** Properties of an UpdateThrottlerConfigRequest. */ + interface IUpdateThrottlerConfigRequest { - /** GetKeyspaceRequest keyspace */ + /** 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 a GetKeyspaceRequest. */ - class GetKeyspaceRequest implements IGetKeyspaceRequest { + /** Represents an UpdateThrottlerConfigRequest. */ + class UpdateThrottlerConfigRequest implements IUpdateThrottlerConfigRequest { /** - * Constructs a new GetKeyspaceRequest. + * Constructs a new UpdateThrottlerConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspaceRequest); + constructor(properties?: vtctldata.IUpdateThrottlerConfigRequest); - /** GetKeyspaceRequest keyspace. */ + /** 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 GetKeyspaceRequest instance using the specified properties. + * Creates a new UpdateThrottlerConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspaceRequest instance + * @returns UpdateThrottlerConfigRequest instance */ - public static create(properties?: vtctldata.IGetKeyspaceRequest): vtctldata.GetKeyspaceRequest; + public static create(properties?: vtctldata.IUpdateThrottlerConfigRequest): vtctldata.UpdateThrottlerConfigRequest; /** - * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. - * @param message GetKeyspaceRequest message or plain object to encode + * 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.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IUpdateThrottlerConfigRequest, 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 + * 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.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IUpdateThrottlerConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspaceRequest message from the specified reader or buffer. + * 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 GetKeyspaceRequest + * @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.GetKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateThrottlerConfigRequest; /** - * Decodes a GetKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetKeyspaceRequest + * @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.GetKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateThrottlerConfigRequest; /** - * Verifies a GetKeyspaceRequest message. + * 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 a GetKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateThrottlerConfigRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetKeyspaceRequest + * @returns UpdateThrottlerConfigRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateThrottlerConfigRequest; /** - * Creates a plain object from a GetKeyspaceRequest message. Also converts values to other types if specified. - * @param message GetKeyspaceRequest + * 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.GetKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.UpdateThrottlerConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspaceRequest to JSON. + * Converts this UpdateThrottlerConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetKeyspaceRequest + * 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 a GetKeyspaceResponse. */ - interface IGetKeyspaceResponse { - - /** GetKeyspaceResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); + /** Properties of an UpdateThrottlerConfigResponse. */ + interface IUpdateThrottlerConfigResponse { } - /** Represents a GetKeyspaceResponse. */ - class GetKeyspaceResponse implements IGetKeyspaceResponse { + /** Represents an UpdateThrottlerConfigResponse. */ + class UpdateThrottlerConfigResponse implements IUpdateThrottlerConfigResponse { /** - * Constructs a new GetKeyspaceResponse. + * Constructs a new UpdateThrottlerConfigResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspaceResponse); - - /** GetKeyspaceResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); + constructor(properties?: vtctldata.IUpdateThrottlerConfigResponse); /** - * Creates a new GetKeyspaceResponse instance using the specified properties. + * Creates a new UpdateThrottlerConfigResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspaceResponse instance + * @returns UpdateThrottlerConfigResponse instance */ - public static create(properties?: vtctldata.IGetKeyspaceResponse): vtctldata.GetKeyspaceResponse; + public static create(properties?: vtctldata.IUpdateThrottlerConfigResponse): vtctldata.UpdateThrottlerConfigResponse; /** - * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. - * @param message GetKeyspaceResponse message or plain object to encode + * 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.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IUpdateThrottlerConfigResponse, 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 + * 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.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IUpdateThrottlerConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspaceResponse message from the specified reader or buffer. + * 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 GetKeyspaceResponse + * @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.GetKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateThrottlerConfigResponse; /** - * Decodes a GetKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetKeyspaceResponse + * @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.GetKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateThrottlerConfigResponse; /** - * Verifies a GetKeyspaceResponse message. + * 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 a GetKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateThrottlerConfigResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetKeyspaceResponse + * @returns UpdateThrottlerConfigResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateThrottlerConfigResponse; /** - * Creates a plain object from a GetKeyspaceResponse message. Also converts values to other types if specified. - * @param message GetKeyspaceResponse + * 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.GetKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.UpdateThrottlerConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspaceResponse to JSON. + * Converts this UpdateThrottlerConfigResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetKeyspaceResponse + * 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 GetPermissionsRequest. */ - interface IGetPermissionsRequest { + /** Properties of a GetSrvVSchemaRequest. */ + interface IGetSrvVSchemaRequest { - /** GetPermissionsRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** GetSrvVSchemaRequest cell */ + cell?: (string|null); } - /** Represents a GetPermissionsRequest. */ - class GetPermissionsRequest implements IGetPermissionsRequest { + /** Represents a GetSrvVSchemaRequest. */ + class GetSrvVSchemaRequest implements IGetSrvVSchemaRequest { /** - * Constructs a new GetPermissionsRequest. + * Constructs a new GetSrvVSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetPermissionsRequest); + constructor(properties?: vtctldata.IGetSrvVSchemaRequest); - /** GetPermissionsRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** GetSrvVSchemaRequest cell. */ + public cell: string; /** - * Creates a new GetPermissionsRequest instance using the specified properties. + * Creates a new GetSrvVSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetPermissionsRequest instance + * @returns GetSrvVSchemaRequest instance */ - public static create(properties?: vtctldata.IGetPermissionsRequest): vtctldata.GetPermissionsRequest; + public static create(properties?: vtctldata.IGetSrvVSchemaRequest): vtctldata.GetSrvVSchemaRequest; /** - * Encodes the specified GetPermissionsRequest message. Does not implicitly {@link vtctldata.GetPermissionsRequest.verify|verify} messages. - * @param message GetPermissionsRequest message or plain object to encode + * 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.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSrvVSchemaRequest, 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 + * 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.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPermissionsRequest message from the specified reader or buffer. + * 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 GetPermissionsRequest + * @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.GetPermissionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaRequest; /** - * Decodes a GetPermissionsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPermissionsRequest + * @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.GetPermissionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaRequest; /** - * Verifies a GetPermissionsRequest message. + * 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 GetPermissionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPermissionsRequest + * @returns GetSrvVSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetPermissionsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaRequest; /** - * Creates a plain object from a GetPermissionsRequest message. Also converts values to other types if specified. - * @param message GetPermissionsRequest + * 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.GetPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPermissionsRequest to JSON. + * Converts this GetSrvVSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPermissionsRequest + * 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 GetPermissionsResponse. */ - interface IGetPermissionsResponse { + /** Properties of a GetSrvVSchemaResponse. */ + interface IGetSrvVSchemaResponse { - /** GetPermissionsResponse permissions */ - permissions?: (tabletmanagerdata.IPermissions|null); + /** GetSrvVSchemaResponse srv_v_schema */ + srv_v_schema?: (vschema.ISrvVSchema|null); } - /** Represents a GetPermissionsResponse. */ - class GetPermissionsResponse implements IGetPermissionsResponse { + /** Represents a GetSrvVSchemaResponse. */ + class GetSrvVSchemaResponse implements IGetSrvVSchemaResponse { /** - * Constructs a new GetPermissionsResponse. + * Constructs a new GetSrvVSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetPermissionsResponse); + constructor(properties?: vtctldata.IGetSrvVSchemaResponse); - /** GetPermissionsResponse permissions. */ - public permissions?: (tabletmanagerdata.IPermissions|null); + /** GetSrvVSchemaResponse srv_v_schema. */ + public srv_v_schema?: (vschema.ISrvVSchema|null); /** - * Creates a new GetPermissionsResponse instance using the specified properties. + * Creates a new GetSrvVSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetPermissionsResponse instance + * @returns GetSrvVSchemaResponse instance */ - public static create(properties?: vtctldata.IGetPermissionsResponse): vtctldata.GetPermissionsResponse; + public static create(properties?: vtctldata.IGetSrvVSchemaResponse): vtctldata.GetSrvVSchemaResponse; /** - * Encodes the specified GetPermissionsResponse message. Does not implicitly {@link vtctldata.GetPermissionsResponse.verify|verify} messages. - * @param message GetPermissionsResponse message or plain object to encode + * 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.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSrvVSchemaResponse, 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 + * 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.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPermissionsResponse message from the specified reader or buffer. + * 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 GetPermissionsResponse + * @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.GetPermissionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaResponse; /** - * Decodes a GetPermissionsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPermissionsResponse + * @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.GetPermissionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaResponse; /** - * Verifies a GetPermissionsResponse message. + * 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 GetPermissionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPermissionsResponse + * @returns GetSrvVSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetPermissionsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaResponse; /** - * Creates a plain object from a GetPermissionsResponse message. Also converts values to other types if specified. - * @param message GetPermissionsResponse + * 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.GetPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPermissionsResponse to JSON. + * Converts this GetSrvVSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPermissionsResponse + * 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 GetKeyspaceRoutingRulesRequest. */ - interface IGetKeyspaceRoutingRulesRequest { + /** Properties of a GetSrvVSchemasRequest. */ + interface IGetSrvVSchemasRequest { + + /** GetSrvVSchemasRequest cells */ + cells?: (string[]|null); } - /** Represents a GetKeyspaceRoutingRulesRequest. */ - class GetKeyspaceRoutingRulesRequest implements IGetKeyspaceRoutingRulesRequest { + /** Represents a GetSrvVSchemasRequest. */ + class GetSrvVSchemasRequest implements IGetSrvVSchemasRequest { /** - * Constructs a new GetKeyspaceRoutingRulesRequest. + * Constructs a new GetSrvVSchemasRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspaceRoutingRulesRequest); + constructor(properties?: vtctldata.IGetSrvVSchemasRequest); + + /** GetSrvVSchemasRequest cells. */ + public cells: string[]; /** - * Creates a new GetKeyspaceRoutingRulesRequest instance using the specified properties. + * Creates a new GetSrvVSchemasRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspaceRoutingRulesRequest instance + * @returns GetSrvVSchemasRequest instance */ - public static create(properties?: vtctldata.IGetKeyspaceRoutingRulesRequest): vtctldata.GetKeyspaceRoutingRulesRequest; + public static create(properties?: vtctldata.IGetSrvVSchemasRequest): vtctldata.GetSrvVSchemasRequest; /** - * Encodes the specified GetKeyspaceRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesRequest.verify|verify} messages. - * @param message GetKeyspaceRoutingRulesRequest message or plain object to encode + * 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.IGetKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSrvVSchemasRequest, 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 + * 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.IGetKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSrvVSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer. + * 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 GetKeyspaceRoutingRulesRequest + * @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.GetKeyspaceRoutingRulesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemasRequest; /** - * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetKeyspaceRoutingRulesRequest + * @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.GetKeyspaceRoutingRulesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemasRequest; /** - * Verifies a GetKeyspaceRoutingRulesRequest message. + * 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 GetKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvVSchemasRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetKeyspaceRoutingRulesRequest + * @returns GetSrvVSchemasRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRoutingRulesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemasRequest; /** - * Creates a plain object from a GetKeyspaceRoutingRulesRequest message. Also converts values to other types if specified. - * @param message GetKeyspaceRoutingRulesRequest + * 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.GetKeyspaceRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSrvVSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspaceRoutingRulesRequest to JSON. + * Converts this GetSrvVSchemasRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetKeyspaceRoutingRulesRequest + * 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 GetKeyspaceRoutingRulesResponse. */ - interface IGetKeyspaceRoutingRulesResponse { + /** Properties of a GetSrvVSchemasResponse. */ + interface IGetSrvVSchemasResponse { - /** GetKeyspaceRoutingRulesResponse keyspace_routing_rules */ - keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + /** GetSrvVSchemasResponse srv_v_schemas */ + srv_v_schemas?: ({ [k: string]: vschema.ISrvVSchema }|null); } - /** Represents a GetKeyspaceRoutingRulesResponse. */ - class GetKeyspaceRoutingRulesResponse implements IGetKeyspaceRoutingRulesResponse { + /** Represents a GetSrvVSchemasResponse. */ + class GetSrvVSchemasResponse implements IGetSrvVSchemasResponse { /** - * Constructs a new GetKeyspaceRoutingRulesResponse. + * Constructs a new GetSrvVSchemasResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspaceRoutingRulesResponse); + constructor(properties?: vtctldata.IGetSrvVSchemasResponse); - /** GetKeyspaceRoutingRulesResponse keyspace_routing_rules. */ - public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + /** GetSrvVSchemasResponse srv_v_schemas. */ + public srv_v_schemas: { [k: string]: vschema.ISrvVSchema }; /** - * Creates a new GetKeyspaceRoutingRulesResponse instance using the specified properties. + * Creates a new GetSrvVSchemasResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspaceRoutingRulesResponse instance + * @returns GetSrvVSchemasResponse instance */ - public static create(properties?: vtctldata.IGetKeyspaceRoutingRulesResponse): vtctldata.GetKeyspaceRoutingRulesResponse; + public static create(properties?: vtctldata.IGetSrvVSchemasResponse): vtctldata.GetSrvVSchemasResponse; /** - * Encodes the specified GetKeyspaceRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesResponse.verify|verify} messages. - * @param message GetKeyspaceRoutingRulesResponse message or plain object to encode + * 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.IGetKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSrvVSchemasResponse, 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 + * 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.IGetKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSrvVSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer. + * 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 GetKeyspaceRoutingRulesResponse + * @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.GetKeyspaceRoutingRulesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemasResponse; /** - * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetKeyspaceRoutingRulesResponse + * @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.GetKeyspaceRoutingRulesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemasResponse; /** - * Verifies a GetKeyspaceRoutingRulesResponse message. + * 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 GetKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvVSchemasResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetKeyspaceRoutingRulesResponse + * @returns GetSrvVSchemasResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRoutingRulesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemasResponse; /** - * Creates a plain object from a GetKeyspaceRoutingRulesResponse message. Also converts values to other types if specified. - * @param message GetKeyspaceRoutingRulesResponse + * 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.GetKeyspaceRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSrvVSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspaceRoutingRulesResponse to JSON. + * Converts this GetSrvVSchemasResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetKeyspaceRoutingRulesResponse + * 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 GetRoutingRulesRequest. */ - interface IGetRoutingRulesRequest { + /** Properties of a GetTabletRequest. */ + interface IGetTabletRequest { + + /** GetTabletRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); } - /** Represents a GetRoutingRulesRequest. */ - class GetRoutingRulesRequest implements IGetRoutingRulesRequest { + /** Represents a GetTabletRequest. */ + class GetTabletRequest implements IGetTabletRequest { /** - * Constructs a new GetRoutingRulesRequest. + * Constructs a new GetTabletRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetRoutingRulesRequest); + constructor(properties?: vtctldata.IGetTabletRequest); + + /** GetTabletRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); /** - * Creates a new GetRoutingRulesRequest instance using the specified properties. + * Creates a new GetTabletRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetRoutingRulesRequest instance + * @returns GetTabletRequest instance */ - public static create(properties?: vtctldata.IGetRoutingRulesRequest): vtctldata.GetRoutingRulesRequest; + public static create(properties?: vtctldata.IGetTabletRequest): vtctldata.GetTabletRequest; /** - * Encodes the specified GetRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetRoutingRulesRequest.verify|verify} messages. - * @param message GetRoutingRulesRequest message or plain object to encode + * 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.IGetRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletRequest, 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 + * 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.IGetRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetRoutingRulesRequest message from the specified reader or buffer. + * 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 GetRoutingRulesRequest + * @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.GetRoutingRulesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletRequest; /** - * Decodes a GetRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTabletRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetRoutingRulesRequest + * @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.GetRoutingRulesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletRequest; /** - * Verifies a GetRoutingRulesRequest message. + * 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 GetRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetRoutingRulesRequest + * @returns GetTabletRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetRoutingRulesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletRequest; /** - * Creates a plain object from a GetRoutingRulesRequest message. Also converts values to other types if specified. - * @param message GetRoutingRulesRequest + * 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.GetRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetRoutingRulesRequest to JSON. + * Converts this GetTabletRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetRoutingRulesRequest + * 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 GetRoutingRulesResponse. */ - interface IGetRoutingRulesResponse { + /** Properties of a GetTabletResponse. */ + interface IGetTabletResponse { - /** GetRoutingRulesResponse routing_rules */ - routing_rules?: (vschema.IRoutingRules|null); + /** GetTabletResponse tablet */ + tablet?: (topodata.ITablet|null); } - /** Represents a GetRoutingRulesResponse. */ - class GetRoutingRulesResponse implements IGetRoutingRulesResponse { + /** Represents a GetTabletResponse. */ + class GetTabletResponse implements IGetTabletResponse { /** - * Constructs a new GetRoutingRulesResponse. + * Constructs a new GetTabletResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetRoutingRulesResponse); + constructor(properties?: vtctldata.IGetTabletResponse); - /** GetRoutingRulesResponse routing_rules. */ - public routing_rules?: (vschema.IRoutingRules|null); + /** GetTabletResponse tablet. */ + public tablet?: (topodata.ITablet|null); /** - * Creates a new GetRoutingRulesResponse instance using the specified properties. + * Creates a new GetTabletResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetRoutingRulesResponse instance + * @returns GetTabletResponse instance */ - public static create(properties?: vtctldata.IGetRoutingRulesResponse): vtctldata.GetRoutingRulesResponse; + public static create(properties?: vtctldata.IGetTabletResponse): vtctldata.GetTabletResponse; /** - * Encodes the specified GetRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetRoutingRulesResponse.verify|verify} messages. - * @param message GetRoutingRulesResponse message or plain object to encode + * 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.IGetRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletResponse, 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 + * 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.IGetRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetRoutingRulesResponse message from the specified reader or buffer. + * 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 GetRoutingRulesResponse + * @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.GetRoutingRulesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletResponse; /** - * Decodes a GetRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTabletResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetRoutingRulesResponse + * @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.GetRoutingRulesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletResponse; /** - * Verifies a GetRoutingRulesResponse message. + * 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 GetRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetRoutingRulesResponse + * @returns GetTabletResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetRoutingRulesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletResponse; /** - * Creates a plain object from a GetRoutingRulesResponse message. Also converts values to other types if specified. - * @param message GetRoutingRulesResponse + * 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.GetRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetRoutingRulesResponse to JSON. + * Converts this GetTabletResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetRoutingRulesResponse + * 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 GetSchemaRequest. */ - interface IGetSchemaRequest { - - /** GetSchemaRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** Properties of a GetTabletsRequest. */ + interface IGetTabletsRequest { - /** GetSchemaRequest tables */ - tables?: (string[]|null); + /** GetTabletsRequest keyspace */ + keyspace?: (string|null); - /** GetSchemaRequest exclude_tables */ - exclude_tables?: (string[]|null); + /** GetTabletsRequest shard */ + shard?: (string|null); - /** GetSchemaRequest include_views */ - include_views?: (boolean|null); + /** GetTabletsRequest cells */ + cells?: (string[]|null); - /** GetSchemaRequest table_names_only */ - table_names_only?: (boolean|null); + /** GetTabletsRequest strict */ + strict?: (boolean|null); - /** GetSchemaRequest table_sizes_only */ - table_sizes_only?: (boolean|null); + /** GetTabletsRequest tablet_aliases */ + tablet_aliases?: (topodata.ITabletAlias[]|null); - /** GetSchemaRequest table_schema_only */ - table_schema_only?: (boolean|null); + /** GetTabletsRequest tablet_type */ + tablet_type?: (topodata.TabletType|null); } - /** Represents a GetSchemaRequest. */ - class GetSchemaRequest implements IGetSchemaRequest { + /** Represents a GetTabletsRequest. */ + class GetTabletsRequest implements IGetTabletsRequest { /** - * Constructs a new GetSchemaRequest. + * Constructs a new GetTabletsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSchemaRequest); - - /** GetSchemaRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + constructor(properties?: vtctldata.IGetTabletsRequest); - /** GetSchemaRequest tables. */ - public tables: string[]; + /** GetTabletsRequest keyspace. */ + public keyspace: string; - /** GetSchemaRequest exclude_tables. */ - public exclude_tables: string[]; + /** GetTabletsRequest shard. */ + public shard: string; - /** GetSchemaRequest include_views. */ - public include_views: boolean; + /** GetTabletsRequest cells. */ + public cells: string[]; - /** GetSchemaRequest table_names_only. */ - public table_names_only: boolean; + /** GetTabletsRequest strict. */ + public strict: boolean; - /** GetSchemaRequest table_sizes_only. */ - public table_sizes_only: boolean; + /** GetTabletsRequest tablet_aliases. */ + public tablet_aliases: topodata.ITabletAlias[]; - /** GetSchemaRequest table_schema_only. */ - public table_schema_only: boolean; + /** GetTabletsRequest tablet_type. */ + public tablet_type: topodata.TabletType; /** - * Creates a new GetSchemaRequest instance using the specified properties. + * Creates a new GetTabletsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSchemaRequest instance + * @returns GetTabletsRequest instance */ - public static create(properties?: vtctldata.IGetSchemaRequest): vtctldata.GetSchemaRequest; + public static create(properties?: vtctldata.IGetTabletsRequest): vtctldata.GetTabletsRequest; /** - * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. - * @param message GetSchemaRequest message or plain object to encode + * 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.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletsRequest, 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 + * 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.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer. + * 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 GetSchemaRequest + * @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.GetSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsRequest; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTabletsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSchemaRequest + * @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.GetSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsRequest; /** - * Verifies a GetSchemaRequest message. + * 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 GetSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSchemaRequest + * @returns GetTabletsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsRequest; /** - * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. - * @param message GetSchemaRequest + * 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.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSchemaRequest to JSON. + * Converts this GetTabletsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSchemaRequest + * 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 GetSchemaResponse. */ - interface IGetSchemaResponse { + /** Properties of a GetTabletsResponse. */ + interface IGetTabletsResponse { - /** GetSchemaResponse schema */ - schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** GetTabletsResponse tablets */ + tablets?: (topodata.ITablet[]|null); } - /** Represents a GetSchemaResponse. */ - class GetSchemaResponse implements IGetSchemaResponse { + /** Represents a GetTabletsResponse. */ + class GetTabletsResponse implements IGetTabletsResponse { /** - * Constructs a new GetSchemaResponse. + * Constructs a new GetTabletsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSchemaResponse); + constructor(properties?: vtctldata.IGetTabletsResponse); - /** GetSchemaResponse schema. */ - public schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** GetTabletsResponse tablets. */ + public tablets: topodata.ITablet[]; /** - * Creates a new GetSchemaResponse instance using the specified properties. + * Creates a new GetTabletsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSchemaResponse instance + * @returns GetTabletsResponse instance */ - public static create(properties?: vtctldata.IGetSchemaResponse): vtctldata.GetSchemaResponse; + public static create(properties?: vtctldata.IGetTabletsResponse): vtctldata.GetTabletsResponse; /** - * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. - * @param message GetSchemaResponse message or plain object to encode + * 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.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletsResponse, 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 + * 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.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer. + * 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 GetSchemaResponse + * @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.GetSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsResponse; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTabletsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSchemaResponse + * @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.GetSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsResponse; /** - * Verifies a GetSchemaResponse message. + * 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 GetSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSchemaResponse + * @returns GetTabletsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsResponse; /** - * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. - * @param message GetSchemaResponse + * 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.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSchemaResponse to JSON. + * Converts this GetTabletsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSchemaResponse + * 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 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); + /** Properties of a GetThrottlerStatusRequest. */ + interface IGetThrottlerStatusRequest { - /** GetSchemaMigrationsRequest skip */ - skip?: (number|Long|null); + /** GetThrottlerStatusRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); } - /** Represents a GetSchemaMigrationsRequest. */ - class GetSchemaMigrationsRequest implements IGetSchemaMigrationsRequest { + /** Represents a GetThrottlerStatusRequest. */ + class GetThrottlerStatusRequest implements IGetThrottlerStatusRequest { /** - * Constructs a new GetSchemaMigrationsRequest. + * Constructs a new GetThrottlerStatusRequest. * @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); + constructor(properties?: vtctldata.IGetThrottlerStatusRequest); - /** GetSchemaMigrationsRequest skip. */ - public skip: (number|Long); + /** GetThrottlerStatusRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); /** - * Creates a new GetSchemaMigrationsRequest instance using the specified properties. + * Creates a new GetThrottlerStatusRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSchemaMigrationsRequest instance + * @returns GetThrottlerStatusRequest instance */ - public static create(properties?: vtctldata.IGetSchemaMigrationsRequest): vtctldata.GetSchemaMigrationsRequest; + public static create(properties?: vtctldata.IGetThrottlerStatusRequest): vtctldata.GetThrottlerStatusRequest; /** - * Encodes the specified GetSchemaMigrationsRequest message. Does not implicitly {@link vtctldata.GetSchemaMigrationsRequest.verify|verify} messages. - * @param message GetSchemaMigrationsRequest message or plain object to encode + * 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.IGetSchemaMigrationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetThrottlerStatusRequest, 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 + * 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.IGetSchemaMigrationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetThrottlerStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer. + * 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 GetSchemaMigrationsRequest + * @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.GetSchemaMigrationsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetThrottlerStatusRequest; /** - * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSchemaMigrationsRequest + * @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.GetSchemaMigrationsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetThrottlerStatusRequest; /** - * Verifies a GetSchemaMigrationsRequest message. + * 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 GetSchemaMigrationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetThrottlerStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSchemaMigrationsRequest + * @returns GetThrottlerStatusRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaMigrationsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusRequest; /** - * Creates a plain object from a GetSchemaMigrationsRequest message. Also converts values to other types if specified. - * @param message GetSchemaMigrationsRequest + * 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.GetSchemaMigrationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetThrottlerStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSchemaMigrationsRequest to JSON. + * Converts this GetThrottlerStatusRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSchemaMigrationsRequest + * 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 GetSchemaMigrationsResponse. */ - interface IGetSchemaMigrationsResponse { + /** Properties of a GetThrottlerStatusResponse. */ + interface IGetThrottlerStatusResponse { - /** GetSchemaMigrationsResponse migrations */ - migrations?: (vtctldata.ISchemaMigration[]|null); + /** GetThrottlerStatusResponse status */ + status?: (tabletmanagerdata.IGetThrottlerStatusResponse|null); } - /** Represents a GetSchemaMigrationsResponse. */ - class GetSchemaMigrationsResponse implements IGetSchemaMigrationsResponse { + /** Represents a GetThrottlerStatusResponse. */ + class GetThrottlerStatusResponse implements IGetThrottlerStatusResponse { /** - * Constructs a new GetSchemaMigrationsResponse. + * Constructs a new GetThrottlerStatusResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSchemaMigrationsResponse); + constructor(properties?: vtctldata.IGetThrottlerStatusResponse); - /** GetSchemaMigrationsResponse migrations. */ - public migrations: vtctldata.ISchemaMigration[]; + /** GetThrottlerStatusResponse status. */ + public status?: (tabletmanagerdata.IGetThrottlerStatusResponse|null); /** - * Creates a new GetSchemaMigrationsResponse instance using the specified properties. + * Creates a new GetThrottlerStatusResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSchemaMigrationsResponse instance + * @returns GetThrottlerStatusResponse instance */ - public static create(properties?: vtctldata.IGetSchemaMigrationsResponse): vtctldata.GetSchemaMigrationsResponse; + public static create(properties?: vtctldata.IGetThrottlerStatusResponse): vtctldata.GetThrottlerStatusResponse; /** - * Encodes the specified GetSchemaMigrationsResponse message. Does not implicitly {@link vtctldata.GetSchemaMigrationsResponse.verify|verify} messages. - * @param message GetSchemaMigrationsResponse message or plain object to encode + * 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.IGetSchemaMigrationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetThrottlerStatusResponse, 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 + * 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.IGetSchemaMigrationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetThrottlerStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer. + * 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 GetSchemaMigrationsResponse + * @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.GetSchemaMigrationsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetThrottlerStatusResponse; /** - * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSchemaMigrationsResponse + * @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.GetSchemaMigrationsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetThrottlerStatusResponse; /** - * Verifies a GetSchemaMigrationsResponse message. + * 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 GetSchemaMigrationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetThrottlerStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSchemaMigrationsResponse + * @returns GetThrottlerStatusResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaMigrationsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusResponse; /** - * Creates a plain object from a GetSchemaMigrationsResponse message. Also converts values to other types if specified. - * @param message GetSchemaMigrationsResponse + * 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.GetSchemaMigrationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetThrottlerStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSchemaMigrationsResponse to JSON. + * Converts this GetThrottlerStatusResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSchemaMigrationsResponse + * 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 GetShardReplicationRequest. */ - interface IGetShardReplicationRequest { + /** Properties of a GetTopologyPathRequest. */ + interface IGetTopologyPathRequest { - /** GetShardReplicationRequest keyspace */ - keyspace?: (string|null); + /** GetTopologyPathRequest path */ + path?: (string|null); - /** GetShardReplicationRequest shard */ - shard?: (string|null); + /** GetTopologyPathRequest version */ + version?: (number|Long|null); - /** GetShardReplicationRequest cells */ - cells?: (string[]|null); + /** GetTopologyPathRequest as_json */ + as_json?: (boolean|null); } - /** Represents a GetShardReplicationRequest. */ - class GetShardReplicationRequest implements IGetShardReplicationRequest { + /** Represents a GetTopologyPathRequest. */ + class GetTopologyPathRequest implements IGetTopologyPathRequest { /** - * Constructs a new GetShardReplicationRequest. + * Constructs a new GetTopologyPathRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetShardReplicationRequest); + constructor(properties?: vtctldata.IGetTopologyPathRequest); - /** GetShardReplicationRequest keyspace. */ - public keyspace: string; + /** GetTopologyPathRequest path. */ + public path: string; - /** GetShardReplicationRequest shard. */ - public shard: string; + /** GetTopologyPathRequest version. */ + public version: (number|Long); - /** GetShardReplicationRequest cells. */ - public cells: string[]; + /** GetTopologyPathRequest as_json. */ + public as_json: boolean; /** - * Creates a new GetShardReplicationRequest instance using the specified properties. + * Creates a new GetTopologyPathRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetShardReplicationRequest instance + * @returns GetTopologyPathRequest instance */ - public static create(properties?: vtctldata.IGetShardReplicationRequest): vtctldata.GetShardReplicationRequest; + public static create(properties?: vtctldata.IGetTopologyPathRequest): vtctldata.GetTopologyPathRequest; /** - * Encodes the specified GetShardReplicationRequest message. Does not implicitly {@link vtctldata.GetShardReplicationRequest.verify|verify} messages. - * @param message GetShardReplicationRequest message or plain object to encode + * 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.IGetShardReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTopologyPathRequest, 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 + * 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.IGetShardReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTopologyPathRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetShardReplicationRequest message from the specified reader or buffer. + * 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 GetShardReplicationRequest + * @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.GetShardReplicationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTopologyPathRequest; /** - * Decodes a GetShardReplicationRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTopologyPathRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetShardReplicationRequest + * @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.GetShardReplicationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTopologyPathRequest; /** - * Verifies a GetShardReplicationRequest message. + * 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 GetShardReplicationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTopologyPathRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetShardReplicationRequest + * @returns GetTopologyPathRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardReplicationRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTopologyPathRequest; /** - * Creates a plain object from a GetShardReplicationRequest message. Also converts values to other types if specified. - * @param message GetShardReplicationRequest + * 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.GetShardReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTopologyPathRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetShardReplicationRequest to JSON. + * Converts this GetTopologyPathRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetShardReplicationRequest + * 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 GetShardReplicationResponse. */ - interface IGetShardReplicationResponse { + /** Properties of a GetTopologyPathResponse. */ + interface IGetTopologyPathResponse { - /** GetShardReplicationResponse shard_replication_by_cell */ - shard_replication_by_cell?: ({ [k: string]: topodata.IShardReplication }|null); + /** GetTopologyPathResponse cell */ + cell?: (vtctldata.ITopologyCell|null); } - /** Represents a GetShardReplicationResponse. */ - class GetShardReplicationResponse implements IGetShardReplicationResponse { + /** Represents a GetTopologyPathResponse. */ + class GetTopologyPathResponse implements IGetTopologyPathResponse { /** - * Constructs a new GetShardReplicationResponse. + * Constructs a new GetTopologyPathResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetShardReplicationResponse); + constructor(properties?: vtctldata.IGetTopologyPathResponse); - /** GetShardReplicationResponse shard_replication_by_cell. */ - public shard_replication_by_cell: { [k: string]: topodata.IShardReplication }; + /** GetTopologyPathResponse cell. */ + public cell?: (vtctldata.ITopologyCell|null); /** - * Creates a new GetShardReplicationResponse instance using the specified properties. + * Creates a new GetTopologyPathResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetShardReplicationResponse instance + * @returns GetTopologyPathResponse instance */ - public static create(properties?: vtctldata.IGetShardReplicationResponse): vtctldata.GetShardReplicationResponse; + public static create(properties?: vtctldata.IGetTopologyPathResponse): vtctldata.GetTopologyPathResponse; /** - * Encodes the specified GetShardReplicationResponse message. Does not implicitly {@link vtctldata.GetShardReplicationResponse.verify|verify} messages. - * @param message GetShardReplicationResponse message or plain object to encode + * 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.IGetShardReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTopologyPathResponse, 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 + * 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.IGetShardReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTopologyPathResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetShardReplicationResponse message from the specified reader or buffer. + * 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 GetShardReplicationResponse + * @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.GetShardReplicationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTopologyPathResponse; /** - * Decodes a GetShardReplicationResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTopologyPathResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetShardReplicationResponse + * @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.GetShardReplicationResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTopologyPathResponse; /** - * Verifies a GetShardReplicationResponse message. + * 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 GetShardReplicationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTopologyPathResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetShardReplicationResponse + * @returns GetTopologyPathResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardReplicationResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTopologyPathResponse; /** - * Creates a plain object from a GetShardReplicationResponse message. Also converts values to other types if specified. - * @param message GetShardReplicationResponse + * 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.GetShardReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTopologyPathResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetShardReplicationResponse to JSON. + * Converts this GetTopologyPathResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetShardReplicationResponse + * 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 GetShardRequest. */ - interface IGetShardRequest { + /** Properties of a TopologyCell. */ + interface ITopologyCell { - /** GetShardRequest keyspace */ - keyspace?: (string|null); + /** TopologyCell name */ + name?: (string|null); - /** GetShardRequest shard_name */ - shard_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 GetShardRequest. */ - class GetShardRequest implements IGetShardRequest { + /** Represents a TopologyCell. */ + class TopologyCell implements ITopologyCell { /** - * Constructs a new GetShardRequest. + * Constructs a new TopologyCell. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetShardRequest); + constructor(properties?: vtctldata.ITopologyCell); - /** GetShardRequest keyspace. */ - public keyspace: string; + /** TopologyCell name. */ + public name: string; - /** GetShardRequest shard_name. */ - public shard_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 GetShardRequest instance using the specified properties. + * Creates a new TopologyCell instance using the specified properties. * @param [properties] Properties to set - * @returns GetShardRequest instance + * @returns TopologyCell instance */ - public static create(properties?: vtctldata.IGetShardRequest): vtctldata.GetShardRequest; + public static create(properties?: vtctldata.ITopologyCell): vtctldata.TopologyCell; /** - * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. - * @param message GetShardRequest message or plain object to encode + * 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.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ITopologyCell, 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 + * 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.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ITopologyCell, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetShardRequest message from the specified reader or buffer. + * 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 GetShardRequest + * @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.GetShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TopologyCell; /** - * Decodes a GetShardRequest message from the specified reader or buffer, length delimited. + * Decodes a TopologyCell message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetShardRequest + * @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.GetShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TopologyCell; /** - * Verifies a GetShardRequest message. + * 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 GetShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TopologyCell message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetShardRequest + * @returns TopologyCell */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.TopologyCell; /** - * Creates a plain object from a GetShardRequest message. Also converts values to other types if specified. - * @param message GetShardRequest + * 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.GetShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.TopologyCell, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetShardRequest to JSON. + * Converts this TopologyCell to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetShardRequest + * 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 GetShardResponse. */ - interface IGetShardResponse { + /** Properties of a GetUnresolvedTransactionsRequest. */ + interface IGetUnresolvedTransactionsRequest { - /** GetShardResponse shard */ - shard?: (vtctldata.IShard|null); + /** GetUnresolvedTransactionsRequest keyspace */ + keyspace?: (string|null); + + /** GetUnresolvedTransactionsRequest abandon_age */ + abandon_age?: (number|Long|null); } - /** Represents a GetShardResponse. */ - class GetShardResponse implements IGetShardResponse { + /** Represents a GetUnresolvedTransactionsRequest. */ + class GetUnresolvedTransactionsRequest implements IGetUnresolvedTransactionsRequest { /** - * Constructs a new GetShardResponse. + * Constructs a new GetUnresolvedTransactionsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetShardResponse); + constructor(properties?: vtctldata.IGetUnresolvedTransactionsRequest); - /** GetShardResponse shard. */ - public shard?: (vtctldata.IShard|null); + /** GetUnresolvedTransactionsRequest keyspace. */ + public keyspace: string; + + /** GetUnresolvedTransactionsRequest abandon_age. */ + public abandon_age: (number|Long); /** - * Creates a new GetShardResponse instance using the specified properties. + * Creates a new GetUnresolvedTransactionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetShardResponse instance + * @returns GetUnresolvedTransactionsRequest instance */ - public static create(properties?: vtctldata.IGetShardResponse): vtctldata.GetShardResponse; + public static create(properties?: vtctldata.IGetUnresolvedTransactionsRequest): vtctldata.GetUnresolvedTransactionsRequest; /** - * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. - * @param message GetShardResponse message or plain object to encode + * 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.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetUnresolvedTransactionsRequest, 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 + * 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.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetShardResponse message from the specified reader or buffer. + * 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 GetShardResponse + * @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.GetShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetUnresolvedTransactionsRequest; /** - * Decodes a GetShardResponse message from the specified reader or buffer, length delimited. + * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetShardResponse + * @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.GetShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetUnresolvedTransactionsRequest; /** - * Verifies a GetShardResponse message. + * 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 GetShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetUnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetShardResponse + * @returns GetUnresolvedTransactionsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetUnresolvedTransactionsRequest; /** - * Creates a plain object from a GetShardResponse message. Also converts values to other types if specified. - * @param message GetShardResponse + * 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.GetShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetUnresolvedTransactionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetShardResponse to JSON. + * Converts this GetUnresolvedTransactionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetShardResponse + * 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 GetShardRoutingRulesRequest. */ - interface IGetShardRoutingRulesRequest { + /** Properties of a GetUnresolvedTransactionsResponse. */ + interface IGetUnresolvedTransactionsResponse { + + /** GetUnresolvedTransactionsResponse transactions */ + transactions?: (query.ITransactionMetadata[]|null); } - /** Represents a GetShardRoutingRulesRequest. */ - class GetShardRoutingRulesRequest implements IGetShardRoutingRulesRequest { + /** Represents a GetUnresolvedTransactionsResponse. */ + class GetUnresolvedTransactionsResponse implements IGetUnresolvedTransactionsResponse { /** - * Constructs a new GetShardRoutingRulesRequest. + * Constructs a new GetUnresolvedTransactionsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetShardRoutingRulesRequest); + constructor(properties?: vtctldata.IGetUnresolvedTransactionsResponse); + + /** GetUnresolvedTransactionsResponse transactions. */ + public transactions: query.ITransactionMetadata[]; /** - * Creates a new GetShardRoutingRulesRequest instance using the specified properties. + * Creates a new GetUnresolvedTransactionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetShardRoutingRulesRequest instance + * @returns GetUnresolvedTransactionsResponse instance */ - public static create(properties?: vtctldata.IGetShardRoutingRulesRequest): vtctldata.GetShardRoutingRulesRequest; + public static create(properties?: vtctldata.IGetUnresolvedTransactionsResponse): vtctldata.GetUnresolvedTransactionsResponse; /** - * Encodes the specified GetShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetShardRoutingRulesRequest.verify|verify} messages. - * @param message GetShardRoutingRulesRequest message or plain object to encode + * 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.IGetShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetUnresolvedTransactionsResponse, 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 + * 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.IGetShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer. + * 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 GetShardRoutingRulesRequest + * @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.GetShardRoutingRulesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetUnresolvedTransactionsResponse; /** - * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetShardRoutingRulesRequest + * @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.GetShardRoutingRulesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetUnresolvedTransactionsResponse; /** - * Verifies a GetShardRoutingRulesRequest message. + * 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 GetShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetUnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetShardRoutingRulesRequest + * @returns GetUnresolvedTransactionsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRoutingRulesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetUnresolvedTransactionsResponse; /** - * Creates a plain object from a GetShardRoutingRulesRequest message. Also converts values to other types if specified. - * @param message GetShardRoutingRulesRequest + * 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.GetShardRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetUnresolvedTransactionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetShardRoutingRulesRequest to JSON. + * Converts this GetUnresolvedTransactionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetShardRoutingRulesRequest + * 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 GetShardRoutingRulesResponse. */ - interface IGetShardRoutingRulesResponse { + /** Properties of a GetTransactionInfoRequest. */ + interface IGetTransactionInfoRequest { - /** GetShardRoutingRulesResponse shard_routing_rules */ - shard_routing_rules?: (vschema.IShardRoutingRules|null); + /** GetTransactionInfoRequest dtid */ + dtid?: (string|null); } - /** Represents a GetShardRoutingRulesResponse. */ - class GetShardRoutingRulesResponse implements IGetShardRoutingRulesResponse { + /** Represents a GetTransactionInfoRequest. */ + class GetTransactionInfoRequest implements IGetTransactionInfoRequest { /** - * Constructs a new GetShardRoutingRulesResponse. + * Constructs a new GetTransactionInfoRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetShardRoutingRulesResponse); + constructor(properties?: vtctldata.IGetTransactionInfoRequest); - /** GetShardRoutingRulesResponse shard_routing_rules. */ - public shard_routing_rules?: (vschema.IShardRoutingRules|null); + /** GetTransactionInfoRequest dtid. */ + public dtid: string; /** - * Creates a new GetShardRoutingRulesResponse instance using the specified properties. + * Creates a new GetTransactionInfoRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetShardRoutingRulesResponse instance + * @returns GetTransactionInfoRequest instance */ - public static create(properties?: vtctldata.IGetShardRoutingRulesResponse): vtctldata.GetShardRoutingRulesResponse; + public static create(properties?: vtctldata.IGetTransactionInfoRequest): vtctldata.GetTransactionInfoRequest; /** - * Encodes the specified GetShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetShardRoutingRulesResponse.verify|verify} messages. - * @param message GetShardRoutingRulesResponse message or plain object to encode + * Encodes the specified GetTransactionInfoRequest message. Does not implicitly {@link vtctldata.GetTransactionInfoRequest.verify|verify} messages. + * @param message GetTransactionInfoRequest 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; + public static encode(message: vtctldata.IGetTransactionInfoRequest, 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 + * Encodes the specified GetTransactionInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetTransactionInfoRequest.verify|verify} messages. + * @param message GetTransactionInfoRequest 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; + public static encodeDelimited(message: vtctldata.IGetTransactionInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer. + * Decodes a GetTransactionInfoRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetShardRoutingRulesResponse + * @returns GetTransactionInfoRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTransactionInfoRequest; /** - * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTransactionInfoRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetShardRoutingRulesResponse + * @returns GetTransactionInfoRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTransactionInfoRequest; /** - * Verifies a GetShardRoutingRulesResponse message. + * Verifies a GetTransactionInfoRequest message. * @param message Plain object 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. + * Creates a GetTransactionInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetShardRoutingRulesResponse + * @returns GetTransactionInfoRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRoutingRulesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTransactionInfoRequest; /** - * Creates a plain object from a GetShardRoutingRulesResponse message. Also converts values to other types if specified. - * @param message GetShardRoutingRulesResponse + * Creates a plain object from a GetTransactionInfoRequest message. Also converts values to other types if specified. + * @param message GetTransactionInfoRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetShardRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTransactionInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetShardRoutingRulesResponse to JSON. + * Converts this GetTransactionInfoRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetShardRoutingRulesResponse + * Gets the default type url for GetTransactionInfoRequest * @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 { + /** Properties of a ShardTransactionState. */ + interface IShardTransactionState { - /** GetSrvKeyspaceNamesRequest cells */ - cells?: (string[]|null); + /** ShardTransactionState shard */ + shard?: (string|null); + + /** ShardTransactionState state */ + state?: (string|null); + + /** ShardTransactionState message */ + message?: (string|null); + + /** ShardTransactionState time_created */ + time_created?: (number|Long|null); + + /** ShardTransactionState statements */ + statements?: (string[]|null); } - /** Represents a GetSrvKeyspaceNamesRequest. */ - class GetSrvKeyspaceNamesRequest implements IGetSrvKeyspaceNamesRequest { + /** Represents a ShardTransactionState. */ + class ShardTransactionState implements IShardTransactionState { /** - * Constructs a new GetSrvKeyspaceNamesRequest. + * Constructs a new ShardTransactionState. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSrvKeyspaceNamesRequest); + constructor(properties?: vtctldata.IShardTransactionState); - /** GetSrvKeyspaceNamesRequest cells. */ - public cells: string[]; + /** ShardTransactionState shard. */ + public shard: string; + + /** ShardTransactionState state. */ + public state: string; + + /** ShardTransactionState message. */ + public message: string; + + /** ShardTransactionState time_created. */ + public time_created: (number|Long); + + /** ShardTransactionState statements. */ + public statements: string[]; /** - * Creates a new GetSrvKeyspaceNamesRequest instance using the specified properties. + * Creates a new ShardTransactionState instance using the specified properties. * @param [properties] Properties to set - * @returns GetSrvKeyspaceNamesRequest instance + * @returns ShardTransactionState instance */ - public static create(properties?: vtctldata.IGetSrvKeyspaceNamesRequest): vtctldata.GetSrvKeyspaceNamesRequest; + public static create(properties?: vtctldata.IShardTransactionState): vtctldata.ShardTransactionState; /** - * Encodes the specified GetSrvKeyspaceNamesRequest message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesRequest.verify|verify} messages. - * @param message GetSrvKeyspaceNamesRequest message or plain object to encode + * Encodes the specified ShardTransactionState message. Does not implicitly {@link vtctldata.ShardTransactionState.verify|verify} messages. + * @param message ShardTransactionState 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; + public static encode(message: vtctldata.IShardTransactionState, 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 + * Encodes the specified ShardTransactionState message, length delimited. Does not implicitly {@link vtctldata.ShardTransactionState.verify|verify} messages. + * @param message ShardTransactionState 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; + public static encodeDelimited(message: vtctldata.IShardTransactionState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer. + * Decodes a ShardTransactionState message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSrvKeyspaceNamesRequest + * @returns ShardTransactionState * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardTransactionState; /** - * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer, length delimited. + * Decodes a ShardTransactionState message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSrvKeyspaceNamesRequest + * @returns ShardTransactionState * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardTransactionState; /** - * Verifies a GetSrvKeyspaceNamesRequest message. + * Verifies a ShardTransactionState message. * @param message Plain object 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. + * Creates a ShardTransactionState message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSrvKeyspaceNamesRequest + * @returns ShardTransactionState */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ShardTransactionState; /** - * Creates a plain object from a GetSrvKeyspaceNamesRequest message. Also converts values to other types if specified. - * @param message GetSrvKeyspaceNamesRequest + * Creates a plain object from a ShardTransactionState message. Also converts values to other types if specified. + * @param message ShardTransactionState * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetSrvKeyspaceNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ShardTransactionState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSrvKeyspaceNamesRequest to JSON. + * Converts this ShardTransactionState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSrvKeyspaceNamesRequest + * Gets the default type url for ShardTransactionState * @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 { + /** Properties of a GetTransactionInfoResponse. */ + interface IGetTransactionInfoResponse { - /** GetSrvKeyspaceNamesResponse names */ - names?: ({ [k: string]: vtctldata.GetSrvKeyspaceNamesResponse.INameList }|null); + /** GetTransactionInfoResponse metadata */ + metadata?: (query.ITransactionMetadata|null); + + /** GetTransactionInfoResponse shard_states */ + shard_states?: (vtctldata.IShardTransactionState[]|null); } - /** Represents a GetSrvKeyspaceNamesResponse. */ - class GetSrvKeyspaceNamesResponse implements IGetSrvKeyspaceNamesResponse { + /** Represents a GetTransactionInfoResponse. */ + class GetTransactionInfoResponse implements IGetTransactionInfoResponse { /** - * Constructs a new GetSrvKeyspaceNamesResponse. + * Constructs a new GetTransactionInfoResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSrvKeyspaceNamesResponse); + constructor(properties?: vtctldata.IGetTransactionInfoResponse); - /** GetSrvKeyspaceNamesResponse names. */ - public names: { [k: string]: vtctldata.GetSrvKeyspaceNamesResponse.INameList }; + /** GetTransactionInfoResponse metadata. */ + public metadata?: (query.ITransactionMetadata|null); + + /** GetTransactionInfoResponse shard_states. */ + public shard_states: vtctldata.IShardTransactionState[]; /** - * Creates a new GetSrvKeyspaceNamesResponse instance using the specified properties. + * Creates a new GetTransactionInfoResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSrvKeyspaceNamesResponse instance + * @returns GetTransactionInfoResponse instance */ - public static create(properties?: vtctldata.IGetSrvKeyspaceNamesResponse): vtctldata.GetSrvKeyspaceNamesResponse; + public static create(properties?: vtctldata.IGetTransactionInfoResponse): vtctldata.GetTransactionInfoResponse; /** - * Encodes the specified GetSrvKeyspaceNamesResponse message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.verify|verify} messages. - * @param message GetSrvKeyspaceNamesResponse message or plain object to encode + * Encodes the specified GetTransactionInfoResponse message. Does not implicitly {@link vtctldata.GetTransactionInfoResponse.verify|verify} messages. + * @param message GetTransactionInfoResponse 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; + public static encode(message: vtctldata.IGetTransactionInfoResponse, 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 + * Encodes the specified GetTransactionInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetTransactionInfoResponse.verify|verify} messages. + * @param message GetTransactionInfoResponse 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; + public static encodeDelimited(message: vtctldata.IGetTransactionInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer. + * Decodes a GetTransactionInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSrvKeyspaceNamesResponse + * @returns GetTransactionInfoResponse * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTransactionInfoResponse; /** - * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTransactionInfoResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSrvKeyspaceNamesResponse + * @returns GetTransactionInfoResponse * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTransactionInfoResponse; /** - * Verifies a GetSrvKeyspaceNamesResponse message. + * Verifies a GetTransactionInfoResponse message. * @param message Plain object 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. + * Creates a GetTransactionInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSrvKeyspaceNamesResponse + * @returns GetTransactionInfoResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTransactionInfoResponse; /** - * Creates a plain object from a GetSrvKeyspaceNamesResponse message. Also converts values to other types if specified. - * @param message GetSrvKeyspaceNamesResponse + * Creates a plain object from a GetTransactionInfoResponse message. Also converts values to other types if specified. + * @param message GetTransactionInfoResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetSrvKeyspaceNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTransactionInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSrvKeyspaceNamesResponse to JSON. + * Converts this GetTransactionInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSrvKeyspaceNamesResponse + * Gets the default type url for GetTransactionInfoResponse * @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 { + /** Properties of a ConcludeTransactionRequest. */ + interface IConcludeTransactionRequest { - /** GetSrvKeyspacesRequest keyspace */ - keyspace?: (string|null); + /** ConcludeTransactionRequest dtid */ + dtid?: (string|null); - /** GetSrvKeyspacesRequest cells */ - cells?: (string[]|null); + /** ConcludeTransactionRequest participants */ + participants?: (query.ITarget[]|null); } - /** Represents a GetSrvKeyspacesRequest. */ - class GetSrvKeyspacesRequest implements IGetSrvKeyspacesRequest { + /** Represents a ConcludeTransactionRequest. */ + class ConcludeTransactionRequest implements IConcludeTransactionRequest { /** - * Constructs a new GetSrvKeyspacesRequest. + * Constructs a new ConcludeTransactionRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSrvKeyspacesRequest); + constructor(properties?: vtctldata.IConcludeTransactionRequest); - /** GetSrvKeyspacesRequest keyspace. */ - public keyspace: string; + /** ConcludeTransactionRequest dtid. */ + public dtid: string; - /** GetSrvKeyspacesRequest cells. */ - public cells: string[]; + /** ConcludeTransactionRequest participants. */ + public participants: query.ITarget[]; /** - * Creates a new GetSrvKeyspacesRequest instance using the specified properties. + * Creates a new ConcludeTransactionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSrvKeyspacesRequest instance + * @returns ConcludeTransactionRequest instance */ - public static create(properties?: vtctldata.IGetSrvKeyspacesRequest): vtctldata.GetSrvKeyspacesRequest; + public static create(properties?: vtctldata.IConcludeTransactionRequest): vtctldata.ConcludeTransactionRequest; /** - * Encodes the specified GetSrvKeyspacesRequest message. Does not implicitly {@link vtctldata.GetSrvKeyspacesRequest.verify|verify} messages. - * @param message GetSrvKeyspacesRequest message or plain object to encode + * 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.IGetSrvKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IConcludeTransactionRequest, 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 + * 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.IGetSrvKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer. + * 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 GetSrvKeyspacesRequest + * @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.GetSrvKeyspacesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ConcludeTransactionRequest; /** - * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer, length delimited. + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSrvKeyspacesRequest + * @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.GetSrvKeyspacesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ConcludeTransactionRequest; /** - * Verifies a GetSrvKeyspacesRequest message. + * 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 GetSrvKeyspacesRequest 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. * @param object Plain object - * @returns GetSrvKeyspacesRequest + * @returns ConcludeTransactionRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspacesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ConcludeTransactionRequest; /** - * Creates a plain object from a GetSrvKeyspacesRequest message. Also converts values to other types if specified. - * @param message GetSrvKeyspacesRequest + * 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.GetSrvKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ConcludeTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSrvKeyspacesRequest to JSON. + * Converts this ConcludeTransactionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSrvKeyspacesRequest + * 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 GetSrvKeyspacesResponse. */ - interface IGetSrvKeyspacesResponse { - - /** GetSrvKeyspacesResponse srv_keyspaces */ - srv_keyspaces?: ({ [k: string]: topodata.ISrvKeyspace }|null); + /** Properties of a ConcludeTransactionResponse. */ + interface IConcludeTransactionResponse { } - /** Represents a GetSrvKeyspacesResponse. */ - class GetSrvKeyspacesResponse implements IGetSrvKeyspacesResponse { + /** Represents a ConcludeTransactionResponse. */ + class ConcludeTransactionResponse implements IConcludeTransactionResponse { /** - * Constructs a new GetSrvKeyspacesResponse. + * Constructs a new ConcludeTransactionResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSrvKeyspacesResponse); - - /** GetSrvKeyspacesResponse srv_keyspaces. */ - public srv_keyspaces: { [k: string]: topodata.ISrvKeyspace }; + constructor(properties?: vtctldata.IConcludeTransactionResponse); /** - * Creates a new GetSrvKeyspacesResponse instance using the specified properties. + * Creates a new ConcludeTransactionResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSrvKeyspacesResponse instance + * @returns ConcludeTransactionResponse instance */ - public static create(properties?: vtctldata.IGetSrvKeyspacesResponse): vtctldata.GetSrvKeyspacesResponse; + public static create(properties?: vtctldata.IConcludeTransactionResponse): vtctldata.ConcludeTransactionResponse; /** - * Encodes the specified GetSrvKeyspacesResponse message. Does not implicitly {@link vtctldata.GetSrvKeyspacesResponse.verify|verify} messages. - * @param message GetSrvKeyspacesResponse message or plain object to encode + * 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.IGetSrvKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IConcludeTransactionResponse, 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 + * 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.IGetSrvKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer. + * 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 GetSrvKeyspacesResponse + * @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.GetSrvKeyspacesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ConcludeTransactionResponse; /** - * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer, length delimited. + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSrvKeyspacesResponse + * @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.GetSrvKeyspacesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ConcludeTransactionResponse; /** - * Verifies a GetSrvKeyspacesResponse message. + * 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 GetSrvKeyspacesResponse 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. * @param object Plain object - * @returns GetSrvKeyspacesResponse + * @returns ConcludeTransactionResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspacesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ConcludeTransactionResponse; /** - * Creates a plain object from a GetSrvKeyspacesResponse message. Also converts values to other types if specified. - * @param message GetSrvKeyspacesResponse + * 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.GetSrvKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ConcludeTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSrvKeyspacesResponse to JSON. + * Converts this ConcludeTransactionResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSrvKeyspacesResponse + * 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 an UpdateThrottlerConfigRequest. */ - interface IUpdateThrottlerConfigRequest { + /** Properties of a GetVSchemaRequest. */ + interface IGetVSchemaRequest { - /** UpdateThrottlerConfigRequest keyspace */ + /** GetVSchemaRequest 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 { + /** Represents a GetVSchemaRequest. */ + class GetVSchemaRequest implements IGetVSchemaRequest { /** - * Constructs a new UpdateThrottlerConfigRequest. + * Constructs a new GetVSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IUpdateThrottlerConfigRequest); + constructor(properties?: vtctldata.IGetVSchemaRequest); - /** UpdateThrottlerConfigRequest keyspace. */ + /** GetVSchemaRequest 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. + * Creates a new GetVSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateThrottlerConfigRequest instance + * @returns GetVSchemaRequest instance */ - public static create(properties?: vtctldata.IUpdateThrottlerConfigRequest): vtctldata.UpdateThrottlerConfigRequest; + public static create(properties?: vtctldata.IGetVSchemaRequest): vtctldata.GetVSchemaRequest; /** - * Encodes the specified UpdateThrottlerConfigRequest message. Does not implicitly {@link vtctldata.UpdateThrottlerConfigRequest.verify|verify} messages. - * @param message UpdateThrottlerConfigRequest message or plain object to encode + * 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.IUpdateThrottlerConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetVSchemaRequest, 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 + * 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.IUpdateThrottlerConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer. + * 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 UpdateThrottlerConfigRequest + * @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.UpdateThrottlerConfigRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaRequest; /** - * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateThrottlerConfigRequest + * @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.UpdateThrottlerConfigRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaRequest; /** - * Verifies an UpdateThrottlerConfigRequest message. + * 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 an UpdateThrottlerConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateThrottlerConfigRequest + * @returns GetVSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateThrottlerConfigRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaRequest; /** - * Creates a plain object from an UpdateThrottlerConfigRequest message. Also converts values to other types if specified. - * @param message UpdateThrottlerConfigRequest + * 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.UpdateThrottlerConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateThrottlerConfigRequest to JSON. + * Converts this GetVSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateThrottlerConfigRequest + * 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 an UpdateThrottlerConfigResponse. */ - interface IUpdateThrottlerConfigResponse { + /** Properties of a GetVersionRequest. */ + interface IGetVersionRequest { + + /** GetVersionRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); } - /** Represents an UpdateThrottlerConfigResponse. */ - class UpdateThrottlerConfigResponse implements IUpdateThrottlerConfigResponse { + /** Represents a GetVersionRequest. */ + class GetVersionRequest implements IGetVersionRequest { /** - * Constructs a new UpdateThrottlerConfigResponse. + * Constructs a new GetVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IUpdateThrottlerConfigResponse); + constructor(properties?: vtctldata.IGetVersionRequest); + + /** GetVersionRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); /** - * Creates a new UpdateThrottlerConfigResponse instance using the specified properties. + * Creates a new GetVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateThrottlerConfigResponse instance + * @returns GetVersionRequest instance */ - public static create(properties?: vtctldata.IUpdateThrottlerConfigResponse): vtctldata.UpdateThrottlerConfigResponse; + public static create(properties?: vtctldata.IGetVersionRequest): vtctldata.GetVersionRequest; /** - * Encodes the specified UpdateThrottlerConfigResponse message. Does not implicitly {@link vtctldata.UpdateThrottlerConfigResponse.verify|verify} messages. - * @param message UpdateThrottlerConfigResponse message or plain object to encode + * 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.IUpdateThrottlerConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetVersionRequest, 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 + * 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.IUpdateThrottlerConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer. + * 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 UpdateThrottlerConfigResponse + * @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.UpdateThrottlerConfigResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVersionRequest; /** - * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer, length delimited. + * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateThrottlerConfigResponse + * @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.UpdateThrottlerConfigResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVersionRequest; /** - * Verifies an UpdateThrottlerConfigResponse message. + * 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 an UpdateThrottlerConfigResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateThrottlerConfigResponse + * @returns GetVersionRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateThrottlerConfigResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetVersionRequest; /** - * Creates a plain object from an UpdateThrottlerConfigResponse message. Also converts values to other types if specified. - * @param message UpdateThrottlerConfigResponse + * 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.UpdateThrottlerConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateThrottlerConfigResponse to JSON. + * Converts this GetVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateThrottlerConfigResponse + * 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 GetSrvVSchemaRequest. */ - interface IGetSrvVSchemaRequest { + /** Properties of a GetVersionResponse. */ + interface IGetVersionResponse { - /** GetSrvVSchemaRequest cell */ - cell?: (string|null); + /** GetVersionResponse version */ + version?: (string|null); } - /** Represents a GetSrvVSchemaRequest. */ - class GetSrvVSchemaRequest implements IGetSrvVSchemaRequest { + /** Represents a GetVersionResponse. */ + class GetVersionResponse implements IGetVersionResponse { /** - * Constructs a new GetSrvVSchemaRequest. + * Constructs a new GetVersionResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSrvVSchemaRequest); + constructor(properties?: vtctldata.IGetVersionResponse); - /** GetSrvVSchemaRequest cell. */ - public cell: string; + /** GetVersionResponse version. */ + public version: string; /** - * Creates a new GetSrvVSchemaRequest instance using the specified properties. + * Creates a new GetVersionResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSrvVSchemaRequest instance + * @returns GetVersionResponse instance */ - public static create(properties?: vtctldata.IGetSrvVSchemaRequest): vtctldata.GetSrvVSchemaRequest; + public static create(properties?: vtctldata.IGetVersionResponse): vtctldata.GetVersionResponse; /** - * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. - * @param message GetSrvVSchemaRequest message or plain object to encode + * 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.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetVersionResponse, 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 + * 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.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. + * 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 GetSrvVSchemaRequest + * @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.GetSrvVSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVersionResponse; /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVersionResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSrvVSchemaRequest + * @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.GetSrvVSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVersionResponse; /** - * Verifies a GetSrvVSchemaRequest message. + * 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 GetSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVersionResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSrvVSchemaRequest + * @returns GetVersionResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetVersionResponse; /** - * Creates a plain object from a GetSrvVSchemaRequest message. Also converts values to other types if specified. - * @param message GetSrvVSchemaRequest + * 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.GetSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetVersionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSrvVSchemaRequest to JSON. + * Converts this GetVersionResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSrvVSchemaRequest + * 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 GetSrvVSchemaResponse. */ - interface IGetSrvVSchemaResponse { + /** Properties of a GetVSchemaResponse. */ + interface IGetVSchemaResponse { - /** GetSrvVSchemaResponse srv_v_schema */ - srv_v_schema?: (vschema.ISrvVSchema|null); + /** GetVSchemaResponse v_schema */ + v_schema?: (vschema.IKeyspace|null); } - /** Represents a GetSrvVSchemaResponse. */ - class GetSrvVSchemaResponse implements IGetSrvVSchemaResponse { + /** Represents a GetVSchemaResponse. */ + class GetVSchemaResponse implements IGetVSchemaResponse { /** - * Constructs a new GetSrvVSchemaResponse. + * Constructs a new GetVSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSrvVSchemaResponse); + constructor(properties?: vtctldata.IGetVSchemaResponse); - /** GetSrvVSchemaResponse srv_v_schema. */ - public srv_v_schema?: (vschema.ISrvVSchema|null); + /** GetVSchemaResponse v_schema. */ + public v_schema?: (vschema.IKeyspace|null); /** - * Creates a new GetSrvVSchemaResponse instance using the specified properties. + * Creates a new GetVSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSrvVSchemaResponse instance + * @returns GetVSchemaResponse instance */ - public static create(properties?: vtctldata.IGetSrvVSchemaResponse): vtctldata.GetSrvVSchemaResponse; + public static create(properties?: vtctldata.IGetVSchemaResponse): vtctldata.GetVSchemaResponse; /** - * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. - * @param message GetSrvVSchemaResponse message or plain object to encode + * 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.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetVSchemaResponse, 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 + * 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.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. + * 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 GetSrvVSchemaResponse + * @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.GetSrvVSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaResponse; /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a GetVSchemaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSrvVSchemaResponse + * @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.GetSrvVSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaResponse; /** - * Verifies a GetSrvVSchemaResponse message. + * 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 GetSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSrvVSchemaResponse + * @returns GetVSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaResponse; /** - * Creates a plain object from a GetSrvVSchemaResponse message. Also converts values to other types if specified. - * @param message GetSrvVSchemaResponse + * 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.GetSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSrvVSchemaResponse to JSON. + * Converts this GetVSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSrvVSchemaResponse + * 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 GetSrvVSchemasRequest. */ - interface IGetSrvVSchemasRequest { + /** Properties of a GetWorkflowsRequest. */ + interface IGetWorkflowsRequest { - /** GetSrvVSchemasRequest cells */ - cells?: (string[]|null); + /** 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 GetSrvVSchemasRequest. */ - class GetSrvVSchemasRequest implements IGetSrvVSchemasRequest { + /** Represents a GetWorkflowsRequest. */ + class GetWorkflowsRequest implements IGetWorkflowsRequest { /** - * Constructs a new GetSrvVSchemasRequest. + * Constructs a new GetWorkflowsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSrvVSchemasRequest); + constructor(properties?: vtctldata.IGetWorkflowsRequest); - /** GetSrvVSchemasRequest cells. */ - public cells: string[]; + /** 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 GetSrvVSchemasRequest instance using the specified properties. + * Creates a new GetWorkflowsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSrvVSchemasRequest instance + * @returns GetWorkflowsRequest instance */ - public static create(properties?: vtctldata.IGetSrvVSchemasRequest): vtctldata.GetSrvVSchemasRequest; + public static create(properties?: vtctldata.IGetWorkflowsRequest): vtctldata.GetWorkflowsRequest; /** - * Encodes the specified GetSrvVSchemasRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemasRequest.verify|verify} messages. - * @param message GetSrvVSchemasRequest message or plain object to encode + * 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.IGetSrvVSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetWorkflowsRequest, 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 + * 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.IGetSrvVSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer. + * 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 GetSrvVSchemasRequest + * @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.GetSrvVSchemasRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetWorkflowsRequest; /** - * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer, length delimited. + * Decodes a GetWorkflowsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSrvVSchemasRequest + * @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.GetSrvVSchemasRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetWorkflowsRequest; /** - * Verifies a GetSrvVSchemasRequest message. + * 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 GetSrvVSchemasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetWorkflowsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSrvVSchemasRequest + * @returns GetWorkflowsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemasRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsRequest; /** - * Creates a plain object from a GetSrvVSchemasRequest message. Also converts values to other types if specified. - * @param message GetSrvVSchemasRequest + * 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.GetSrvVSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSrvVSchemasRequest to JSON. + * Converts this GetWorkflowsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSrvVSchemasRequest + * 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 GetSrvVSchemasResponse. */ - interface IGetSrvVSchemasResponse { + /** Properties of a GetWorkflowsResponse. */ + interface IGetWorkflowsResponse { - /** GetSrvVSchemasResponse srv_v_schemas */ - srv_v_schemas?: ({ [k: string]: vschema.ISrvVSchema }|null); + /** GetWorkflowsResponse workflows */ + workflows?: (vtctldata.IWorkflow[]|null); } - /** Represents a GetSrvVSchemasResponse. */ - class GetSrvVSchemasResponse implements IGetSrvVSchemasResponse { + /** Represents a GetWorkflowsResponse. */ + class GetWorkflowsResponse implements IGetWorkflowsResponse { /** - * Constructs a new GetSrvVSchemasResponse. + * Constructs a new GetWorkflowsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSrvVSchemasResponse); + constructor(properties?: vtctldata.IGetWorkflowsResponse); - /** GetSrvVSchemasResponse srv_v_schemas. */ - public srv_v_schemas: { [k: string]: vschema.ISrvVSchema }; + /** GetWorkflowsResponse workflows. */ + public workflows: vtctldata.IWorkflow[]; /** - * Creates a new GetSrvVSchemasResponse instance using the specified properties. + * Creates a new GetWorkflowsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSrvVSchemasResponse instance + * @returns GetWorkflowsResponse instance */ - public static create(properties?: vtctldata.IGetSrvVSchemasResponse): vtctldata.GetSrvVSchemasResponse; + public static create(properties?: vtctldata.IGetWorkflowsResponse): vtctldata.GetWorkflowsResponse; /** - * Encodes the specified GetSrvVSchemasResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemasResponse.verify|verify} messages. - * @param message GetSrvVSchemasResponse message or plain object to encode + * 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.IGetSrvVSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetWorkflowsResponse, 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 + * 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.IGetSrvVSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer. + * 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 GetSrvVSchemasResponse + * @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.GetSrvVSchemasResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetWorkflowsResponse; /** - * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer, length delimited. + * Decodes a GetWorkflowsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSrvVSchemasResponse + * @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.GetSrvVSchemasResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetWorkflowsResponse; /** - * Verifies a GetSrvVSchemasResponse message. + * 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 GetSrvVSchemasResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetWorkflowsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSrvVSchemasResponse + * @returns GetWorkflowsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemasResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsResponse; /** - * Creates a plain object from a GetSrvVSchemasResponse message. Also converts values to other types if specified. - * @param message GetSrvVSchemasResponse + * 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.GetSrvVSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSrvVSchemasResponse to JSON. + * Converts this GetWorkflowsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSrvVSchemasResponse + * 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 a GetTabletRequest. */ - interface IGetTabletRequest { + /** Properties of an InitShardPrimaryRequest. */ + interface IInitShardPrimaryRequest { - /** GetTabletRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** 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 a GetTabletRequest. */ - class GetTabletRequest implements IGetTabletRequest { + /** Represents an InitShardPrimaryRequest. */ + class InitShardPrimaryRequest implements IInitShardPrimaryRequest { /** - * Constructs a new GetTabletRequest. + * Constructs a new InitShardPrimaryRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletRequest); + constructor(properties?: vtctldata.IInitShardPrimaryRequest); - /** GetTabletRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** 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 GetTabletRequest instance using the specified properties. + * Creates a new InitShardPrimaryRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletRequest instance + * @returns InitShardPrimaryRequest instance */ - public static create(properties?: vtctldata.IGetTabletRequest): vtctldata.GetTabletRequest; + public static create(properties?: vtctldata.IInitShardPrimaryRequest): vtctldata.InitShardPrimaryRequest; /** - * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. - * @param message GetTabletRequest message or plain object to encode + * 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.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IInitShardPrimaryRequest, 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 + * 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.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletRequest message from the specified reader or buffer. + * 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 GetTabletRequest + * @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.GetTabletRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryRequest; /** - * Decodes a GetTabletRequest message from the specified reader or buffer, length delimited. + * Decodes an InitShardPrimaryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTabletRequest + * @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.GetTabletRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryRequest; /** - * Verifies a GetTabletRequest message. + * 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 a GetTabletRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InitShardPrimaryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTabletRequest + * @returns InitShardPrimaryRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryRequest; /** - * Creates a plain object from a GetTabletRequest message. Also converts values to other types if specified. - * @param message GetTabletRequest + * 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.GetTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.InitShardPrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletRequest to JSON. + * Converts this InitShardPrimaryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTabletRequest + * 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 a GetTabletResponse. */ - interface IGetTabletResponse { + /** Properties of an InitShardPrimaryResponse. */ + interface IInitShardPrimaryResponse { - /** GetTabletResponse tablet */ - tablet?: (topodata.ITablet|null); + /** InitShardPrimaryResponse events */ + events?: (logutil.IEvent[]|null); } - /** Represents a GetTabletResponse. */ - class GetTabletResponse implements IGetTabletResponse { + /** Represents an InitShardPrimaryResponse. */ + class InitShardPrimaryResponse implements IInitShardPrimaryResponse { /** - * Constructs a new GetTabletResponse. + * Constructs a new InitShardPrimaryResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletResponse); + constructor(properties?: vtctldata.IInitShardPrimaryResponse); - /** GetTabletResponse tablet. */ - public tablet?: (topodata.ITablet|null); + /** InitShardPrimaryResponse events. */ + public events: logutil.IEvent[]; /** - * Creates a new GetTabletResponse instance using the specified properties. + * Creates a new InitShardPrimaryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletResponse instance + * @returns InitShardPrimaryResponse instance */ - public static create(properties?: vtctldata.IGetTabletResponse): vtctldata.GetTabletResponse; + public static create(properties?: vtctldata.IInitShardPrimaryResponse): vtctldata.InitShardPrimaryResponse; /** - * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. - * @param message GetTabletResponse message or plain object to encode + * 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.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IInitShardPrimaryResponse, 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 + * 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.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletResponse message from the specified reader or buffer. + * 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 GetTabletResponse + * @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.GetTabletResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryResponse; /** - * Decodes a GetTabletResponse message from the specified reader or buffer, length delimited. + * Decodes an InitShardPrimaryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTabletResponse + * @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.GetTabletResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryResponse; /** - * Verifies a GetTabletResponse message. + * 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 a GetTabletResponse message from a plain object. Also converts values to their respective internal types. + * Creates an InitShardPrimaryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTabletResponse + * @returns InitShardPrimaryResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryResponse; /** - * Creates a plain object from a GetTabletResponse message. Also converts values to other types if specified. - * @param message GetTabletResponse + * 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.GetTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.InitShardPrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletResponse to JSON. + * Converts this InitShardPrimaryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTabletResponse + * 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 GetTabletsRequest. */ - interface IGetTabletsRequest { + /** Properties of a LaunchSchemaMigrationRequest. */ + interface ILaunchSchemaMigrationRequest { - /** GetTabletsRequest keyspace */ + /** LaunchSchemaMigrationRequest 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); + /** LaunchSchemaMigrationRequest uuid */ + uuid?: (string|null); - /** GetTabletsRequest tablet_type */ - tablet_type?: (topodata.TabletType|null); + /** LaunchSchemaMigrationRequest caller_id */ + caller_id?: (vtrpc.ICallerID|null); } - /** Represents a GetTabletsRequest. */ - class GetTabletsRequest implements IGetTabletsRequest { + /** Represents a LaunchSchemaMigrationRequest. */ + class LaunchSchemaMigrationRequest implements ILaunchSchemaMigrationRequest { /** - * Constructs a new GetTabletsRequest. + * Constructs a new LaunchSchemaMigrationRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletsRequest); + constructor(properties?: vtctldata.ILaunchSchemaMigrationRequest); - /** GetTabletsRequest keyspace. */ + /** LaunchSchemaMigrationRequest 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[]; + /** LaunchSchemaMigrationRequest uuid. */ + public uuid: string; - /** GetTabletsRequest tablet_type. */ - public tablet_type: topodata.TabletType; + /** LaunchSchemaMigrationRequest caller_id. */ + public caller_id?: (vtrpc.ICallerID|null); /** - * Creates a new GetTabletsRequest instance using the specified properties. + * Creates a new LaunchSchemaMigrationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletsRequest instance + * @returns LaunchSchemaMigrationRequest instance */ - public static create(properties?: vtctldata.IGetTabletsRequest): vtctldata.GetTabletsRequest; + public static create(properties?: vtctldata.ILaunchSchemaMigrationRequest): vtctldata.LaunchSchemaMigrationRequest; /** - * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. - * @param message GetTabletsRequest message or plain object to encode + * 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.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ILaunchSchemaMigrationRequest, 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 + * 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.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ILaunchSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletsRequest message from the specified reader or buffer. + * 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 GetTabletsRequest + * @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.GetTabletsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LaunchSchemaMigrationRequest; /** - * Decodes a GetTabletsRequest message from the specified reader or buffer, length delimited. + * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTabletsRequest + * @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.GetTabletsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LaunchSchemaMigrationRequest; /** - * Verifies a GetTabletsRequest message. + * 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 GetTabletsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LaunchSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTabletsRequest + * @returns LaunchSchemaMigrationRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.LaunchSchemaMigrationRequest; /** - * Creates a plain object from a GetTabletsRequest message. Also converts values to other types if specified. - * @param message GetTabletsRequest + * 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.GetTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.LaunchSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletsRequest to JSON. + * Converts this LaunchSchemaMigrationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTabletsRequest + * 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 GetTabletsResponse. */ - interface IGetTabletsResponse { + /** Properties of a LaunchSchemaMigrationResponse. */ + interface ILaunchSchemaMigrationResponse { - /** GetTabletsResponse tablets */ - tablets?: (topodata.ITablet[]|null); + /** LaunchSchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); } - /** Represents a GetTabletsResponse. */ - class GetTabletsResponse implements IGetTabletsResponse { + /** Represents a LaunchSchemaMigrationResponse. */ + class LaunchSchemaMigrationResponse implements ILaunchSchemaMigrationResponse { /** - * Constructs a new GetTabletsResponse. + * Constructs a new LaunchSchemaMigrationResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletsResponse); + constructor(properties?: vtctldata.ILaunchSchemaMigrationResponse); - /** GetTabletsResponse tablets. */ - public tablets: topodata.ITablet[]; + /** LaunchSchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; /** - * Creates a new GetTabletsResponse instance using the specified properties. + * Creates a new LaunchSchemaMigrationResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletsResponse instance + * @returns LaunchSchemaMigrationResponse instance */ - public static create(properties?: vtctldata.IGetTabletsResponse): vtctldata.GetTabletsResponse; + public static create(properties?: vtctldata.ILaunchSchemaMigrationResponse): vtctldata.LaunchSchemaMigrationResponse; /** - * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. - * @param message GetTabletsResponse message or plain object to encode + * 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.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ILaunchSchemaMigrationResponse, 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 + * 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.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ILaunchSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletsResponse message from the specified reader or buffer. + * 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 GetTabletsResponse + * @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.GetTabletsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LaunchSchemaMigrationResponse; /** - * Decodes a GetTabletsResponse message from the specified reader or buffer, length delimited. + * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTabletsResponse + * @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.GetTabletsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LaunchSchemaMigrationResponse; /** - * Verifies a GetTabletsResponse message. + * 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 GetTabletsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LaunchSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTabletsResponse + * @returns LaunchSchemaMigrationResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.LaunchSchemaMigrationResponse; /** - * Creates a plain object from a GetTabletsResponse message. Also converts values to other types if specified. - * @param message GetTabletsResponse + * 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.GetTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.LaunchSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletsResponse to JSON. + * Converts this LaunchSchemaMigrationResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTabletsResponse + * 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 GetThrottlerStatusRequest. */ - interface IGetThrottlerStatusRequest { + /** Properties of a LookupVindexCompleteRequest. */ + interface ILookupVindexCompleteRequest { - /** GetThrottlerStatusRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** LookupVindexCompleteRequest keyspace */ + keyspace?: (string|null); + + /** LookupVindexCompleteRequest name */ + name?: (string|null); + + /** LookupVindexCompleteRequest table_keyspace */ + table_keyspace?: (string|null); } - /** Represents a GetThrottlerStatusRequest. */ - class GetThrottlerStatusRequest implements IGetThrottlerStatusRequest { + /** Represents a LookupVindexCompleteRequest. */ + class LookupVindexCompleteRequest implements ILookupVindexCompleteRequest { /** - * Constructs a new GetThrottlerStatusRequest. + * Constructs a new LookupVindexCompleteRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetThrottlerStatusRequest); + constructor(properties?: vtctldata.ILookupVindexCompleteRequest); - /** GetThrottlerStatusRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** LookupVindexCompleteRequest keyspace. */ + public keyspace: string; + + /** LookupVindexCompleteRequest name. */ + public name: string; + + /** LookupVindexCompleteRequest table_keyspace. */ + public table_keyspace: string; /** - * Creates a new GetThrottlerStatusRequest instance using the specified properties. + * Creates a new LookupVindexCompleteRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetThrottlerStatusRequest instance + * @returns LookupVindexCompleteRequest instance */ - public static create(properties?: vtctldata.IGetThrottlerStatusRequest): vtctldata.GetThrottlerStatusRequest; + public static create(properties?: vtctldata.ILookupVindexCompleteRequest): vtctldata.LookupVindexCompleteRequest; /** - * Encodes the specified GetThrottlerStatusRequest message. Does not implicitly {@link vtctldata.GetThrottlerStatusRequest.verify|verify} messages. - * @param message GetThrottlerStatusRequest message or plain object to encode + * Encodes the specified LookupVindexCompleteRequest message. Does not implicitly {@link vtctldata.LookupVindexCompleteRequest.verify|verify} messages. + * @param message LookupVindexCompleteRequest 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; + public static encode(message: vtctldata.ILookupVindexCompleteRequest, 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 + * Encodes the specified LookupVindexCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCompleteRequest.verify|verify} messages. + * @param message LookupVindexCompleteRequest 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; + public static encodeDelimited(message: vtctldata.ILookupVindexCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer. + * Decodes a LookupVindexCompleteRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetThrottlerStatusRequest + * @returns LookupVindexCompleteRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexCompleteRequest; /** - * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexCompleteRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetThrottlerStatusRequest + * @returns LookupVindexCompleteRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexCompleteRequest; /** - * Verifies a GetThrottlerStatusRequest message. + * Verifies a LookupVindexCompleteRequest message. * @param message Plain object 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. + * Creates a LookupVindexCompleteRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetThrottlerStatusRequest + * @returns LookupVindexCompleteRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCompleteRequest; /** - * Creates a plain object from a GetThrottlerStatusRequest message. Also converts values to other types if specified. - * @param message GetThrottlerStatusRequest + * Creates a plain object from a LookupVindexCompleteRequest message. Also converts values to other types if specified. + * @param message LookupVindexCompleteRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetThrottlerStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.LookupVindexCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetThrottlerStatusRequest to JSON. + * Converts this LookupVindexCompleteRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetThrottlerStatusRequest + * Gets the default type url for LookupVindexCompleteRequest * @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); + /** Properties of a LookupVindexCompleteResponse. */ + interface ILookupVindexCompleteResponse { } - /** Represents a GetThrottlerStatusResponse. */ - class GetThrottlerStatusResponse implements IGetThrottlerStatusResponse { + /** Represents a LookupVindexCompleteResponse. */ + class LookupVindexCompleteResponse implements ILookupVindexCompleteResponse { /** - * Constructs a new GetThrottlerStatusResponse. + * Constructs a new LookupVindexCompleteResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetThrottlerStatusResponse); - - /** GetThrottlerStatusResponse status. */ - public status?: (tabletmanagerdata.IGetThrottlerStatusResponse|null); + constructor(properties?: vtctldata.ILookupVindexCompleteResponse); /** - * Creates a new GetThrottlerStatusResponse instance using the specified properties. + * Creates a new LookupVindexCompleteResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetThrottlerStatusResponse instance + * @returns LookupVindexCompleteResponse instance */ - public static create(properties?: vtctldata.IGetThrottlerStatusResponse): vtctldata.GetThrottlerStatusResponse; + public static create(properties?: vtctldata.ILookupVindexCompleteResponse): vtctldata.LookupVindexCompleteResponse; /** - * Encodes the specified GetThrottlerStatusResponse message. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.verify|verify} messages. - * @param message GetThrottlerStatusResponse message or plain object to encode + * Encodes the specified LookupVindexCompleteResponse message. Does not implicitly {@link vtctldata.LookupVindexCompleteResponse.verify|verify} messages. + * @param message LookupVindexCompleteResponse 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; + public static encode(message: vtctldata.ILookupVindexCompleteResponse, 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 + * Encodes the specified LookupVindexCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCompleteResponse.verify|verify} messages. + * @param message LookupVindexCompleteResponse 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; + public static encodeDelimited(message: vtctldata.ILookupVindexCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer. + * Decodes a LookupVindexCompleteResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetThrottlerStatusResponse + * @returns LookupVindexCompleteResponse * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexCompleteResponse; /** - * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexCompleteResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetThrottlerStatusResponse + * @returns LookupVindexCompleteResponse * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexCompleteResponse; /** - * Verifies a GetThrottlerStatusResponse message. + * Verifies a LookupVindexCompleteResponse message. * @param message Plain object 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. + * Creates a LookupVindexCompleteResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetThrottlerStatusResponse + * @returns LookupVindexCompleteResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCompleteResponse; /** - * Creates a plain object from a GetThrottlerStatusResponse message. Also converts values to other types if specified. - * @param message GetThrottlerStatusResponse + * Creates a plain object from a LookupVindexCompleteResponse message. Also converts values to other types if specified. + * @param message LookupVindexCompleteResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetThrottlerStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.LookupVindexCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetThrottlerStatusResponse to JSON. + * Converts this LookupVindexCompleteResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetThrottlerStatusResponse + * Gets the default type url for LookupVindexCompleteResponse * @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 { + /** Properties of a LookupVindexCreateRequest. */ + interface ILookupVindexCreateRequest { - /** GetTopologyPathRequest path */ - path?: (string|null); + /** 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); - /** GetTopologyPathRequest version */ - version?: (number|Long|null); + /** LookupVindexCreateRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); - /** GetTopologyPathRequest as_json */ - as_json?: (boolean|null); + /** LookupVindexCreateRequest tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); } - /** Represents a GetTopologyPathRequest. */ - class GetTopologyPathRequest implements IGetTopologyPathRequest { + /** Represents a LookupVindexCreateRequest. */ + class LookupVindexCreateRequest implements ILookupVindexCreateRequest { /** - * Constructs a new GetTopologyPathRequest. + * Constructs a new LookupVindexCreateRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTopologyPathRequest); + constructor(properties?: vtctldata.ILookupVindexCreateRequest); - /** GetTopologyPathRequest path. */ - public path: string; + /** LookupVindexCreateRequest keyspace. */ + public keyspace: string; - /** GetTopologyPathRequest version. */ - public version: (number|Long); + /** LookupVindexCreateRequest workflow. */ + public workflow: string; - /** GetTopologyPathRequest as_json. */ - public as_json: boolean; + /** 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 GetTopologyPathRequest instance using the specified properties. + * Creates a new LookupVindexCreateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTopologyPathRequest instance + * @returns LookupVindexCreateRequest instance */ - public static create(properties?: vtctldata.IGetTopologyPathRequest): vtctldata.GetTopologyPathRequest; + public static create(properties?: vtctldata.ILookupVindexCreateRequest): vtctldata.LookupVindexCreateRequest; /** - * Encodes the specified GetTopologyPathRequest message. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages. - * @param message GetTopologyPathRequest message or plain object to encode + * 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.IGetTopologyPathRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ILookupVindexCreateRequest, 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 + * 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.IGetTopologyPathRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ILookupVindexCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTopologyPathRequest message from the specified reader or buffer. + * 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 GetTopologyPathRequest + * @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.GetTopologyPathRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexCreateRequest; /** - * Decodes a GetTopologyPathRequest message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexCreateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTopologyPathRequest + * @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.GetTopologyPathRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexCreateRequest; /** - * Verifies a GetTopologyPathRequest message. + * 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 GetTopologyPathRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LookupVindexCreateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTopologyPathRequest + * @returns LookupVindexCreateRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTopologyPathRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCreateRequest; /** - * Creates a plain object from a GetTopologyPathRequest message. Also converts values to other types if specified. - * @param message GetTopologyPathRequest + * 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.GetTopologyPathRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.LookupVindexCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTopologyPathRequest to JSON. + * Converts this LookupVindexCreateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTopologyPathRequest + * 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 GetTopologyPathResponse. */ - interface IGetTopologyPathResponse { - - /** GetTopologyPathResponse cell */ - cell?: (vtctldata.ITopologyCell|null); + /** Properties of a LookupVindexCreateResponse. */ + interface ILookupVindexCreateResponse { } - /** Represents a GetTopologyPathResponse. */ - class GetTopologyPathResponse implements IGetTopologyPathResponse { + /** Represents a LookupVindexCreateResponse. */ + class LookupVindexCreateResponse implements ILookupVindexCreateResponse { /** - * Constructs a new GetTopologyPathResponse. + * Constructs a new LookupVindexCreateResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTopologyPathResponse); - - /** GetTopologyPathResponse cell. */ - public cell?: (vtctldata.ITopologyCell|null); + constructor(properties?: vtctldata.ILookupVindexCreateResponse); /** - * Creates a new GetTopologyPathResponse instance using the specified properties. + * Creates a new LookupVindexCreateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTopologyPathResponse instance + * @returns LookupVindexCreateResponse instance */ - public static create(properties?: vtctldata.IGetTopologyPathResponse): vtctldata.GetTopologyPathResponse; + public static create(properties?: vtctldata.ILookupVindexCreateResponse): vtctldata.LookupVindexCreateResponse; /** - * Encodes the specified GetTopologyPathResponse message. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages. - * @param message GetTopologyPathResponse message or plain object to encode + * 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.IGetTopologyPathResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ILookupVindexCreateResponse, 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 + * 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.IGetTopologyPathResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ILookupVindexCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTopologyPathResponse message from the specified reader or buffer. + * 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 GetTopologyPathResponse + * @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.GetTopologyPathResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexCreateResponse; /** - * Decodes a GetTopologyPathResponse message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexCreateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTopologyPathResponse + * @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.GetTopologyPathResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexCreateResponse; /** - * Verifies a GetTopologyPathResponse message. + * 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 GetTopologyPathResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LookupVindexCreateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTopologyPathResponse + * @returns LookupVindexCreateResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTopologyPathResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCreateResponse; /** - * Creates a plain object from a GetTopologyPathResponse message. Also converts values to other types if specified. - * @param message GetTopologyPathResponse + * 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.GetTopologyPathResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.LookupVindexCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTopologyPathResponse to JSON. + * Converts this LookupVindexCreateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTopologyPathResponse + * 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 TopologyCell. */ - interface ITopologyCell { - - /** TopologyCell name */ - name?: (string|null); + /** Properties of a LookupVindexExternalizeRequest. */ + interface ILookupVindexExternalizeRequest { - /** TopologyCell path */ - path?: (string|null); + /** LookupVindexExternalizeRequest keyspace */ + keyspace?: (string|null); - /** TopologyCell data */ - data?: (string|null); + /** LookupVindexExternalizeRequest name */ + name?: (string|null); - /** TopologyCell children */ - children?: (string[]|null); + /** LookupVindexExternalizeRequest table_keyspace */ + table_keyspace?: (string|null); - /** TopologyCell version */ - version?: (number|Long|null); + /** LookupVindexExternalizeRequest delete_workflow */ + delete_workflow?: (boolean|null); } - /** Represents a TopologyCell. */ - class TopologyCell implements ITopologyCell { + /** Represents a LookupVindexExternalizeRequest. */ + class LookupVindexExternalizeRequest implements ILookupVindexExternalizeRequest { /** - * Constructs a new TopologyCell. + * Constructs a new LookupVindexExternalizeRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ITopologyCell); - - /** TopologyCell name. */ - public name: string; + constructor(properties?: vtctldata.ILookupVindexExternalizeRequest); - /** TopologyCell path. */ - public path: string; + /** LookupVindexExternalizeRequest keyspace. */ + public keyspace: string; - /** TopologyCell data. */ - public data: string; + /** LookupVindexExternalizeRequest name. */ + public name: string; - /** TopologyCell children. */ - public children: string[]; + /** LookupVindexExternalizeRequest table_keyspace. */ + public table_keyspace: string; - /** TopologyCell version. */ - public version: (number|Long); + /** LookupVindexExternalizeRequest delete_workflow. */ + public delete_workflow: boolean; /** - * Creates a new TopologyCell instance using the specified properties. + * Creates a new LookupVindexExternalizeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TopologyCell instance + * @returns LookupVindexExternalizeRequest instance */ - public static create(properties?: vtctldata.ITopologyCell): vtctldata.TopologyCell; + public static create(properties?: vtctldata.ILookupVindexExternalizeRequest): vtctldata.LookupVindexExternalizeRequest; /** - * Encodes the specified TopologyCell message. Does not implicitly {@link vtctldata.TopologyCell.verify|verify} messages. - * @param message TopologyCell message or plain object to encode + * 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.ITopologyCell, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ILookupVindexExternalizeRequest, 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 + * 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.ITopologyCell, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ILookupVindexExternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TopologyCell message from the specified reader or buffer. + * 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 TopologyCell + * @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.TopologyCell; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexExternalizeRequest; /** - * Decodes a TopologyCell message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TopologyCell + * @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.TopologyCell; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexExternalizeRequest; /** - * Verifies a TopologyCell message. + * 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 TopologyCell message from a plain object. Also converts values to their respective internal types. + * Creates a LookupVindexExternalizeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TopologyCell + * @returns LookupVindexExternalizeRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.TopologyCell; + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexExternalizeRequest; /** - * Creates a plain object from a TopologyCell message. Also converts values to other types if specified. - * @param message TopologyCell + * 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.TopologyCell, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.LookupVindexExternalizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TopologyCell to JSON. + * Converts this LookupVindexExternalizeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TopologyCell + * 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 GetUnresolvedTransactionsRequest. */ - interface IGetUnresolvedTransactionsRequest { + /** Properties of a LookupVindexExternalizeResponse. */ + interface ILookupVindexExternalizeResponse { - /** GetUnresolvedTransactionsRequest keyspace */ - keyspace?: (string|null); + /** LookupVindexExternalizeResponse workflow_stopped */ + workflow_stopped?: (boolean|null); - /** GetUnresolvedTransactionsRequest abandon_age */ - abandon_age?: (number|Long|null); + /** LookupVindexExternalizeResponse workflow_deleted */ + workflow_deleted?: (boolean|null); } - /** Represents a GetUnresolvedTransactionsRequest. */ - class GetUnresolvedTransactionsRequest implements IGetUnresolvedTransactionsRequest { + /** Represents a LookupVindexExternalizeResponse. */ + class LookupVindexExternalizeResponse implements ILookupVindexExternalizeResponse { /** - * Constructs a new GetUnresolvedTransactionsRequest. + * Constructs a new LookupVindexExternalizeResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetUnresolvedTransactionsRequest); + constructor(properties?: vtctldata.ILookupVindexExternalizeResponse); - /** GetUnresolvedTransactionsRequest keyspace. */ - public keyspace: string; + /** LookupVindexExternalizeResponse workflow_stopped. */ + public workflow_stopped: boolean; - /** GetUnresolvedTransactionsRequest abandon_age. */ - public abandon_age: (number|Long); + /** LookupVindexExternalizeResponse workflow_deleted. */ + public workflow_deleted: boolean; /** - * Creates a new GetUnresolvedTransactionsRequest instance using the specified properties. + * Creates a new LookupVindexExternalizeResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetUnresolvedTransactionsRequest instance + * @returns LookupVindexExternalizeResponse instance */ - public static create(properties?: vtctldata.IGetUnresolvedTransactionsRequest): vtctldata.GetUnresolvedTransactionsRequest; + public static create(properties?: vtctldata.ILookupVindexExternalizeResponse): vtctldata.LookupVindexExternalizeResponse; /** - * Encodes the specified GetUnresolvedTransactionsRequest message. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsRequest.verify|verify} messages. - * @param message GetUnresolvedTransactionsRequest message or plain object to encode + * 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.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ILookupVindexExternalizeResponse, 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 + * 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.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ILookupVindexExternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer. + * 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 GetUnresolvedTransactionsRequest + * @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.GetUnresolvedTransactionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexExternalizeResponse; /** - * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetUnresolvedTransactionsRequest + * @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.GetUnresolvedTransactionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexExternalizeResponse; /** - * Verifies a GetUnresolvedTransactionsRequest message. + * 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 GetUnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LookupVindexExternalizeResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetUnresolvedTransactionsRequest + * @returns LookupVindexExternalizeResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetUnresolvedTransactionsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexExternalizeResponse; /** - * Creates a plain object from a GetUnresolvedTransactionsRequest message. Also converts values to other types if specified. - * @param message GetUnresolvedTransactionsRequest + * 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.GetUnresolvedTransactionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.LookupVindexExternalizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetUnresolvedTransactionsRequest to JSON. + * Converts this LookupVindexExternalizeResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetUnresolvedTransactionsRequest + * 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 GetUnresolvedTransactionsResponse. */ - interface IGetUnresolvedTransactionsResponse { + /** Properties of a LookupVindexInternalizeRequest. */ + interface ILookupVindexInternalizeRequest { - /** GetUnresolvedTransactionsResponse transactions */ - transactions?: (query.ITransactionMetadata[]|null); + /** LookupVindexInternalizeRequest keyspace */ + keyspace?: (string|null); + + /** LookupVindexInternalizeRequest name */ + name?: (string|null); + + /** LookupVindexInternalizeRequest table_keyspace */ + table_keyspace?: (string|null); } - /** Represents a GetUnresolvedTransactionsResponse. */ - class GetUnresolvedTransactionsResponse implements IGetUnresolvedTransactionsResponse { + /** Represents a LookupVindexInternalizeRequest. */ + class LookupVindexInternalizeRequest implements ILookupVindexInternalizeRequest { /** - * Constructs a new GetUnresolvedTransactionsResponse. + * Constructs a new LookupVindexInternalizeRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetUnresolvedTransactionsResponse); + constructor(properties?: vtctldata.ILookupVindexInternalizeRequest); - /** GetUnresolvedTransactionsResponse transactions. */ - public transactions: query.ITransactionMetadata[]; + /** LookupVindexInternalizeRequest keyspace. */ + public keyspace: string; + + /** LookupVindexInternalizeRequest name. */ + public name: string; + + /** LookupVindexInternalizeRequest table_keyspace. */ + public table_keyspace: string; /** - * Creates a new GetUnresolvedTransactionsResponse instance using the specified properties. + * Creates a new LookupVindexInternalizeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetUnresolvedTransactionsResponse instance + * @returns LookupVindexInternalizeRequest instance */ - public static create(properties?: vtctldata.IGetUnresolvedTransactionsResponse): vtctldata.GetUnresolvedTransactionsResponse; + public static create(properties?: vtctldata.ILookupVindexInternalizeRequest): vtctldata.LookupVindexInternalizeRequest; /** - * Encodes the specified GetUnresolvedTransactionsResponse message. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsResponse.verify|verify} messages. - * @param message GetUnresolvedTransactionsResponse message or plain object to encode + * Encodes the specified LookupVindexInternalizeRequest message. Does not implicitly {@link vtctldata.LookupVindexInternalizeRequest.verify|verify} messages. + * @param message LookupVindexInternalizeRequest 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; + public static encode(message: vtctldata.ILookupVindexInternalizeRequest, 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 + * Encodes the specified LookupVindexInternalizeRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexInternalizeRequest.verify|verify} messages. + * @param message LookupVindexInternalizeRequest 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; + public static encodeDelimited(message: vtctldata.ILookupVindexInternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer. + * Decodes a LookupVindexInternalizeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetUnresolvedTransactionsResponse + * @returns LookupVindexInternalizeRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexInternalizeRequest; /** - * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexInternalizeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetUnresolvedTransactionsResponse + * @returns LookupVindexInternalizeRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexInternalizeRequest; /** - * Verifies a GetUnresolvedTransactionsResponse message. + * Verifies a LookupVindexInternalizeRequest message. * @param message Plain object 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. + * Creates a LookupVindexInternalizeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetUnresolvedTransactionsResponse + * @returns LookupVindexInternalizeRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetUnresolvedTransactionsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexInternalizeRequest; /** - * Creates a plain object from a GetUnresolvedTransactionsResponse message. Also converts values to other types if specified. - * @param message GetUnresolvedTransactionsResponse + * Creates a plain object from a LookupVindexInternalizeRequest message. Also converts values to other types if specified. + * @param message LookupVindexInternalizeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetUnresolvedTransactionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.LookupVindexInternalizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetUnresolvedTransactionsResponse to JSON. + * Converts this LookupVindexInternalizeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetUnresolvedTransactionsResponse + * Gets the default type url for LookupVindexInternalizeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTransactionInfoRequest. */ - interface IGetTransactionInfoRequest { - - /** GetTransactionInfoRequest dtid */ - dtid?: (string|null); + /** Properties of a LookupVindexInternalizeResponse. */ + interface ILookupVindexInternalizeResponse { } - /** Represents a GetTransactionInfoRequest. */ - class GetTransactionInfoRequest implements IGetTransactionInfoRequest { + /** Represents a LookupVindexInternalizeResponse. */ + class LookupVindexInternalizeResponse implements ILookupVindexInternalizeResponse { /** - * Constructs a new GetTransactionInfoRequest. + * Constructs a new LookupVindexInternalizeResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTransactionInfoRequest); - - /** GetTransactionInfoRequest dtid. */ - public dtid: string; + constructor(properties?: vtctldata.ILookupVindexInternalizeResponse); /** - * Creates a new GetTransactionInfoRequest instance using the specified properties. + * Creates a new LookupVindexInternalizeResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTransactionInfoRequest instance + * @returns LookupVindexInternalizeResponse instance */ - public static create(properties?: vtctldata.IGetTransactionInfoRequest): vtctldata.GetTransactionInfoRequest; + public static create(properties?: vtctldata.ILookupVindexInternalizeResponse): vtctldata.LookupVindexInternalizeResponse; /** - * Encodes the specified GetTransactionInfoRequest message. Does not implicitly {@link vtctldata.GetTransactionInfoRequest.verify|verify} messages. - * @param message GetTransactionInfoRequest message or plain object to encode + * Encodes the specified LookupVindexInternalizeResponse message. Does not implicitly {@link vtctldata.LookupVindexInternalizeResponse.verify|verify} messages. + * @param message LookupVindexInternalizeResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetTransactionInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ILookupVindexInternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTransactionInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetTransactionInfoRequest.verify|verify} messages. - * @param message GetTransactionInfoRequest message or plain object to encode + * Encodes the specified LookupVindexInternalizeResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexInternalizeResponse.verify|verify} messages. + * @param message LookupVindexInternalizeResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetTransactionInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ILookupVindexInternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTransactionInfoRequest message from the specified reader or buffer. + * Decodes a LookupVindexInternalizeResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTransactionInfoRequest + * @returns LookupVindexInternalizeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTransactionInfoRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexInternalizeResponse; /** - * Decodes a GetTransactionInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexInternalizeResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTransactionInfoRequest + * @returns LookupVindexInternalizeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTransactionInfoRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexInternalizeResponse; /** - * Verifies a GetTransactionInfoRequest message. + * Verifies a LookupVindexInternalizeResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetTransactionInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LookupVindexInternalizeResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTransactionInfoRequest + * @returns LookupVindexInternalizeResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTransactionInfoRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexInternalizeResponse; /** - * Creates a plain object from a GetTransactionInfoRequest message. Also converts values to other types if specified. - * @param message GetTransactionInfoRequest + * Creates a plain object from a LookupVindexInternalizeResponse message. Also converts values to other types if specified. + * @param message LookupVindexInternalizeResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetTransactionInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.LookupVindexInternalizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTransactionInfoRequest to JSON. + * Converts this LookupVindexInternalizeResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTransactionInfoRequest + * Gets the default type url for LookupVindexInternalizeResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ShardTransactionState. */ - interface IShardTransactionState { - - /** ShardTransactionState shard */ - shard?: (string|null); - - /** ShardTransactionState state */ - state?: (string|null); - - /** ShardTransactionState message */ - message?: (string|null); - - /** ShardTransactionState time_created */ - time_created?: (number|Long|null); + /** Properties of a MaterializeCreateRequest. */ + interface IMaterializeCreateRequest { - /** ShardTransactionState statements */ - statements?: (string[]|null); + /** MaterializeCreateRequest settings */ + settings?: (vtctldata.IMaterializeSettings|null); } - /** Represents a ShardTransactionState. */ - class ShardTransactionState implements IShardTransactionState { - - /** - * Constructs a new ShardTransactionState. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardTransactionState); - - /** ShardTransactionState shard. */ - public shard: string; - - /** ShardTransactionState state. */ - public state: string; - - /** ShardTransactionState message. */ - public message: string; + /** Represents a MaterializeCreateRequest. */ + class MaterializeCreateRequest implements IMaterializeCreateRequest { - /** ShardTransactionState time_created. */ - public time_created: (number|Long); + /** + * Constructs a new MaterializeCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMaterializeCreateRequest); - /** ShardTransactionState statements. */ - public statements: string[]; + /** MaterializeCreateRequest settings. */ + public settings?: (vtctldata.IMaterializeSettings|null); /** - * Creates a new ShardTransactionState instance using the specified properties. + * Creates a new MaterializeCreateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ShardTransactionState instance + * @returns MaterializeCreateRequest instance */ - public static create(properties?: vtctldata.IShardTransactionState): vtctldata.ShardTransactionState; + public static create(properties?: vtctldata.IMaterializeCreateRequest): vtctldata.MaterializeCreateRequest; /** - * Encodes the specified ShardTransactionState message. Does not implicitly {@link vtctldata.ShardTransactionState.verify|verify} messages. - * @param message ShardTransactionState message or plain object to encode + * 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.IShardTransactionState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMaterializeCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ShardTransactionState message, length delimited. Does not implicitly {@link vtctldata.ShardTransactionState.verify|verify} messages. - * @param message ShardTransactionState message or plain object to encode + * 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.IShardTransactionState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMaterializeCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShardTransactionState message from the specified reader or buffer. + * 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 ShardTransactionState + * @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.ShardTransactionState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeCreateRequest; /** - * Decodes a ShardTransactionState message from the specified reader or buffer, length delimited. + * Decodes a MaterializeCreateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShardTransactionState + * @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.ShardTransactionState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeCreateRequest; /** - * Verifies a ShardTransactionState message. + * 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 ShardTransactionState message from a plain object. Also converts values to their respective internal types. + * Creates a MaterializeCreateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShardTransactionState + * @returns MaterializeCreateRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardTransactionState; + public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeCreateRequest; /** - * Creates a plain object from a ShardTransactionState message. Also converts values to other types if specified. - * @param message ShardTransactionState + * 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.ShardTransactionState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MaterializeCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShardTransactionState to JSON. + * Converts this MaterializeCreateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShardTransactionState + * 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 GetTransactionInfoResponse. */ - interface IGetTransactionInfoResponse { - - /** GetTransactionInfoResponse metadata */ - metadata?: (query.ITransactionMetadata|null); - - /** GetTransactionInfoResponse shard_states */ - shard_states?: (vtctldata.IShardTransactionState[]|null); + /** Properties of a MaterializeCreateResponse. */ + interface IMaterializeCreateResponse { } - /** Represents a GetTransactionInfoResponse. */ - class GetTransactionInfoResponse implements IGetTransactionInfoResponse { + /** Represents a MaterializeCreateResponse. */ + class MaterializeCreateResponse implements IMaterializeCreateResponse { /** - * Constructs a new GetTransactionInfoResponse. + * Constructs a new MaterializeCreateResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTransactionInfoResponse); - - /** GetTransactionInfoResponse metadata. */ - public metadata?: (query.ITransactionMetadata|null); - - /** GetTransactionInfoResponse shard_states. */ - public shard_states: vtctldata.IShardTransactionState[]; + constructor(properties?: vtctldata.IMaterializeCreateResponse); /** - * Creates a new GetTransactionInfoResponse instance using the specified properties. + * Creates a new MaterializeCreateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTransactionInfoResponse instance + * @returns MaterializeCreateResponse instance */ - public static create(properties?: vtctldata.IGetTransactionInfoResponse): vtctldata.GetTransactionInfoResponse; + public static create(properties?: vtctldata.IMaterializeCreateResponse): vtctldata.MaterializeCreateResponse; /** - * Encodes the specified GetTransactionInfoResponse message. Does not implicitly {@link vtctldata.GetTransactionInfoResponse.verify|verify} messages. - * @param message GetTransactionInfoResponse message or plain object to encode + * 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.IGetTransactionInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMaterializeCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTransactionInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetTransactionInfoResponse.verify|verify} messages. - * @param message GetTransactionInfoResponse message or plain object to encode + * 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.IGetTransactionInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMaterializeCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTransactionInfoResponse message from the specified reader or buffer. + * 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 GetTransactionInfoResponse + * @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.GetTransactionInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeCreateResponse; /** - * Decodes a GetTransactionInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a MaterializeCreateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTransactionInfoResponse + * @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.GetTransactionInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeCreateResponse; /** - * Verifies a GetTransactionInfoResponse message. + * 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 GetTransactionInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MaterializeCreateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTransactionInfoResponse + * @returns MaterializeCreateResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTransactionInfoResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeCreateResponse; /** - * Creates a plain object from a GetTransactionInfoResponse message. Also converts values to other types if specified. - * @param message GetTransactionInfoResponse + * 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.GetTransactionInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MaterializeCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTransactionInfoResponse to JSON. + * Converts this MaterializeCreateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTransactionInfoResponse + * 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 ConcludeTransactionRequest. */ - interface IConcludeTransactionRequest { + /** Properties of a MigrateCreateRequest. */ + interface IMigrateCreateRequest { - /** ConcludeTransactionRequest dtid */ - dtid?: (string|null); + /** MigrateCreateRequest workflow */ + workflow?: (string|null); - /** ConcludeTransactionRequest participants */ - participants?: (query.ITarget[]|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 ConcludeTransactionRequest. */ - class ConcludeTransactionRequest implements IConcludeTransactionRequest { + /** Represents a MigrateCreateRequest. */ + class MigrateCreateRequest implements IMigrateCreateRequest { /** - * Constructs a new ConcludeTransactionRequest. + * Constructs a new MigrateCreateRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IConcludeTransactionRequest); + constructor(properties?: vtctldata.IMigrateCreateRequest); - /** ConcludeTransactionRequest dtid. */ - public dtid: string; + /** MigrateCreateRequest workflow. */ + public workflow: string; - /** ConcludeTransactionRequest participants. */ - public participants: query.ITarget[]; + /** 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 ConcludeTransactionRequest instance using the specified properties. + * Creates a new MigrateCreateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ConcludeTransactionRequest instance + * @returns MigrateCreateRequest instance */ - public static create(properties?: vtctldata.IConcludeTransactionRequest): vtctldata.ConcludeTransactionRequest; + public static create(properties?: vtctldata.IMigrateCreateRequest): vtctldata.MigrateCreateRequest; /** - * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link vtctldata.ConcludeTransactionRequest.verify|verify} messages. - * @param message ConcludeTransactionRequest message or plain object to encode + * 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.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMigrateCreateRequest, 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 + * 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.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMigrateCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. + * 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 ConcludeTransactionRequest + * @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.ConcludeTransactionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCreateRequest; /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateCreateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConcludeTransactionRequest + * @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.ConcludeTransactionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCreateRequest; /** - * Verifies a ConcludeTransactionRequest message. + * 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 ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateCreateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConcludeTransactionRequest + * @returns MigrateCreateRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ConcludeTransactionRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCreateRequest; /** - * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. - * @param message ConcludeTransactionRequest + * 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.ConcludeTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MigrateCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConcludeTransactionRequest to JSON. + * Converts this MigrateCreateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConcludeTransactionRequest + * 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 ConcludeTransactionResponse. */ - interface IConcludeTransactionResponse { + /** 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 ConcludeTransactionResponse. */ - class ConcludeTransactionResponse implements IConcludeTransactionResponse { + /** Represents a MigrateCompleteRequest. */ + class MigrateCompleteRequest implements IMigrateCompleteRequest { /** - * Constructs a new ConcludeTransactionResponse. + * Constructs a new MigrateCompleteRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IConcludeTransactionResponse); + 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 ConcludeTransactionResponse instance using the specified properties. + * Creates a new MigrateCompleteRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ConcludeTransactionResponse instance + * @returns MigrateCompleteRequest instance */ - public static create(properties?: vtctldata.IConcludeTransactionResponse): vtctldata.ConcludeTransactionResponse; + public static create(properties?: vtctldata.IMigrateCompleteRequest): vtctldata.MigrateCompleteRequest; /** - * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link vtctldata.ConcludeTransactionResponse.verify|verify} messages. - * @param message ConcludeTransactionResponse message or plain object to encode + * 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.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMigrateCompleteRequest, 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 + * 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.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMigrateCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. + * 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 ConcludeTransactionResponse + * @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.ConcludeTransactionResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCompleteRequest; /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. + * Decodes a MigrateCompleteRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConcludeTransactionResponse + * @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.ConcludeTransactionResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCompleteRequest; /** - * Verifies a ConcludeTransactionResponse message. + * 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 ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateCompleteRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConcludeTransactionResponse + * @returns MigrateCompleteRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ConcludeTransactionResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCompleteRequest; /** - * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. - * @param message ConcludeTransactionResponse + * 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.ConcludeTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MigrateCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConcludeTransactionResponse to JSON. + * Converts this MigrateCompleteRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConcludeTransactionResponse + * 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 GetVSchemaRequest. */ - interface IGetVSchemaRequest { + /** Properties of a MigrateCompleteResponse. */ + interface IMigrateCompleteResponse { - /** GetVSchemaRequest keyspace */ - keyspace?: (string|null); + /** MigrateCompleteResponse summary */ + summary?: (string|null); + + /** MigrateCompleteResponse dry_run_results */ + dry_run_results?: (string[]|null); } - /** Represents a GetVSchemaRequest. */ - class GetVSchemaRequest implements IGetVSchemaRequest { + /** Represents a MigrateCompleteResponse. */ + class MigrateCompleteResponse implements IMigrateCompleteResponse { /** - * Constructs a new GetVSchemaRequest. + * Constructs a new MigrateCompleteResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetVSchemaRequest); + constructor(properties?: vtctldata.IMigrateCompleteResponse); - /** GetVSchemaRequest keyspace. */ - public keyspace: string; + /** MigrateCompleteResponse summary. */ + public summary: string; + + /** MigrateCompleteResponse dry_run_results. */ + public dry_run_results: string[]; /** - * Creates a new GetVSchemaRequest instance using the specified properties. + * Creates a new MigrateCompleteResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetVSchemaRequest instance + * @returns MigrateCompleteResponse instance */ - public static create(properties?: vtctldata.IGetVSchemaRequest): vtctldata.GetVSchemaRequest; + public static create(properties?: vtctldata.IMigrateCompleteResponse): vtctldata.MigrateCompleteResponse; /** - * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. - * @param message GetVSchemaRequest message or plain object to encode + * 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.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMigrateCompleteResponse, 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 + * 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.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMigrateCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer. + * 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 GetVSchemaRequest + * @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.GetVSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCompleteResponse; /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateCompleteResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVSchemaRequest + * @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.GetVSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCompleteResponse; /** - * Verifies a GetVSchemaRequest message. + * 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 GetVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateCompleteResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetVSchemaRequest + * @returns MigrateCompleteResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCompleteResponse; /** - * Creates a plain object from a GetVSchemaRequest message. Also converts values to other types if specified. - * @param message GetVSchemaRequest + * 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.GetVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MigrateCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVSchemaRequest to JSON. + * Converts this MigrateCompleteResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetVSchemaRequest + * 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 GetVersionRequest. */ - interface IGetVersionRequest { + /** Properties of a MountRegisterRequest. */ + interface IMountRegisterRequest { - /** GetVersionRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** 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 GetVersionRequest. */ - class GetVersionRequest implements IGetVersionRequest { + /** Represents a MountRegisterRequest. */ + class MountRegisterRequest implements IMountRegisterRequest { /** - * Constructs a new GetVersionRequest. + * Constructs a new MountRegisterRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetVersionRequest); + constructor(properties?: vtctldata.IMountRegisterRequest); - /** GetVersionRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** 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 GetVersionRequest instance using the specified properties. + * Creates a new MountRegisterRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetVersionRequest instance + * @returns MountRegisterRequest instance */ - public static create(properties?: vtctldata.IGetVersionRequest): vtctldata.GetVersionRequest; + public static create(properties?: vtctldata.IMountRegisterRequest): vtctldata.MountRegisterRequest; /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link vtctldata.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode + * 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.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMountRegisterRequest, 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 + * 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.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMountRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVersionRequest message from the specified reader or buffer. + * 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 GetVersionRequest + * @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.GetVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountRegisterRequest; /** - * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a MountRegisterRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVersionRequest + * @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.GetVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountRegisterRequest; /** - * Verifies a GetVersionRequest message. + * 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 GetVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MountRegisterRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetVersionRequest + * @returns MountRegisterRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVersionRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.MountRegisterRequest; /** - * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. - * @param message GetVersionRequest + * 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.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MountRegisterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVersionRequest to JSON. + * Converts this MountRegisterRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetVersionRequest + * 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 GetVersionResponse. */ - interface IGetVersionResponse { - - /** GetVersionResponse version */ - version?: (string|null); + /** Properties of a MountRegisterResponse. */ + interface IMountRegisterResponse { } - /** Represents a GetVersionResponse. */ - class GetVersionResponse implements IGetVersionResponse { + /** Represents a MountRegisterResponse. */ + class MountRegisterResponse implements IMountRegisterResponse { /** - * Constructs a new GetVersionResponse. + * Constructs a new MountRegisterResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetVersionResponse); - - /** GetVersionResponse version. */ - public version: string; + constructor(properties?: vtctldata.IMountRegisterResponse); /** - * Creates a new GetVersionResponse instance using the specified properties. + * Creates a new MountRegisterResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetVersionResponse instance + * @returns MountRegisterResponse instance */ - public static create(properties?: vtctldata.IGetVersionResponse): vtctldata.GetVersionResponse; + public static create(properties?: vtctldata.IMountRegisterResponse): vtctldata.MountRegisterResponse; /** - * Encodes the specified GetVersionResponse message. Does not implicitly {@link vtctldata.GetVersionResponse.verify|verify} messages. - * @param message GetVersionResponse message or plain object to encode + * 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.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMountRegisterResponse, 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 + * 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.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMountRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVersionResponse message from the specified reader or buffer. + * 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 GetVersionResponse + * @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.GetVersionResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountRegisterResponse; /** - * Decodes a GetVersionResponse message from the specified reader or buffer, length delimited. + * Decodes a MountRegisterResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVersionResponse + * @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.GetVersionResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountRegisterResponse; /** - * Verifies a GetVersionResponse message. + * 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 GetVersionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MountRegisterResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetVersionResponse + * @returns MountRegisterResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVersionResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.MountRegisterResponse; /** - * Creates a plain object from a GetVersionResponse message. Also converts values to other types if specified. - * @param message GetVersionResponse + * 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.GetVersionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MountRegisterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVersionResponse to JSON. + * Converts this MountRegisterResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetVersionResponse + * 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 GetVSchemaResponse. */ - interface IGetVSchemaResponse { + /** Properties of a MountUnregisterRequest. */ + interface IMountUnregisterRequest { - /** GetVSchemaResponse v_schema */ - v_schema?: (vschema.IKeyspace|null); + /** MountUnregisterRequest name */ + name?: (string|null); } - /** Represents a GetVSchemaResponse. */ - class GetVSchemaResponse implements IGetVSchemaResponse { + /** Represents a MountUnregisterRequest. */ + class MountUnregisterRequest implements IMountUnregisterRequest { /** - * Constructs a new GetVSchemaResponse. + * Constructs a new MountUnregisterRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetVSchemaResponse); + constructor(properties?: vtctldata.IMountUnregisterRequest); - /** GetVSchemaResponse v_schema. */ - public v_schema?: (vschema.IKeyspace|null); + /** MountUnregisterRequest name. */ + public name: string; /** - * Creates a new GetVSchemaResponse instance using the specified properties. + * Creates a new MountUnregisterRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetVSchemaResponse instance + * @returns MountUnregisterRequest instance */ - public static create(properties?: vtctldata.IGetVSchemaResponse): vtctldata.GetVSchemaResponse; + public static create(properties?: vtctldata.IMountUnregisterRequest): vtctldata.MountUnregisterRequest; /** - * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. - * @param message GetVSchemaResponse message or plain object to encode + * 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.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMountUnregisterRequest, 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 + * 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.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMountUnregisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer. + * 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 GetVSchemaResponse + * @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.GetVSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountUnregisterRequest; /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a MountUnregisterRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVSchemaResponse + * @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.GetVSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountUnregisterRequest; /** - * Verifies a GetVSchemaResponse message. + * 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 GetVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MountUnregisterRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetVSchemaResponse + * @returns MountUnregisterRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.MountUnregisterRequest; /** - * Creates a plain object from a GetVSchemaResponse message. Also converts values to other types if specified. - * @param message GetVSchemaResponse + * 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.GetVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MountUnregisterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVSchemaResponse to JSON. + * Converts this MountUnregisterRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetVSchemaResponse + * 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 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); + /** Properties of a MountUnregisterResponse. */ + interface IMountUnregisterResponse { } - /** Represents a GetWorkflowsRequest. */ - class GetWorkflowsRequest implements IGetWorkflowsRequest { + /** Represents a MountUnregisterResponse. */ + class MountUnregisterResponse implements IMountUnregisterResponse { /** - * Constructs a new GetWorkflowsRequest. + * Constructs a new MountUnregisterResponse. * @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[]; + constructor(properties?: vtctldata.IMountUnregisterResponse); /** - * Creates a new GetWorkflowsRequest instance using the specified properties. + * Creates a new MountUnregisterResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetWorkflowsRequest instance + * @returns MountUnregisterResponse instance */ - public static create(properties?: vtctldata.IGetWorkflowsRequest): vtctldata.GetWorkflowsRequest; + public static create(properties?: vtctldata.IMountUnregisterResponse): vtctldata.MountUnregisterResponse; /** - * Encodes the specified GetWorkflowsRequest message. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. - * @param message GetWorkflowsRequest message or plain object to encode + * 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.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMountUnregisterResponse, 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 + * 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.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMountUnregisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetWorkflowsRequest message from the specified reader or buffer. + * 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 GetWorkflowsRequest + * @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.GetWorkflowsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountUnregisterResponse; /** - * Decodes a GetWorkflowsRequest message from the specified reader or buffer, length delimited. + * Decodes a MountUnregisterResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetWorkflowsRequest + * @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.GetWorkflowsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountUnregisterResponse; /** - * Verifies a GetWorkflowsRequest message. + * 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 GetWorkflowsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MountUnregisterResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetWorkflowsRequest + * @returns MountUnregisterResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.MountUnregisterResponse; /** - * Creates a plain object from a GetWorkflowsRequest message. Also converts values to other types if specified. - * @param message GetWorkflowsRequest + * 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.GetWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MountUnregisterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetWorkflowsRequest to JSON. + * Converts this MountUnregisterResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetWorkflowsRequest + * 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 GetWorkflowsResponse. */ - interface IGetWorkflowsResponse { + /** Properties of a MountShowRequest. */ + interface IMountShowRequest { - /** GetWorkflowsResponse workflows */ - workflows?: (vtctldata.IWorkflow[]|null); + /** MountShowRequest name */ + name?: (string|null); } - /** Represents a GetWorkflowsResponse. */ - class GetWorkflowsResponse implements IGetWorkflowsResponse { + /** Represents a MountShowRequest. */ + class MountShowRequest implements IMountShowRequest { /** - * Constructs a new GetWorkflowsResponse. + * Constructs a new MountShowRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetWorkflowsResponse); + constructor(properties?: vtctldata.IMountShowRequest); - /** GetWorkflowsResponse workflows. */ - public workflows: vtctldata.IWorkflow[]; + /** MountShowRequest name. */ + public name: string; /** - * Creates a new GetWorkflowsResponse instance using the specified properties. + * Creates a new MountShowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetWorkflowsResponse instance + * @returns MountShowRequest instance */ - public static create(properties?: vtctldata.IGetWorkflowsResponse): vtctldata.GetWorkflowsResponse; + public static create(properties?: vtctldata.IMountShowRequest): vtctldata.MountShowRequest; /** - * Encodes the specified GetWorkflowsResponse message. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. - * @param message GetWorkflowsResponse message or plain object to encode + * 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.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMountShowRequest, 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 + * 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.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMountShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetWorkflowsResponse message from the specified reader or buffer. + * 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 GetWorkflowsResponse + * @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.GetWorkflowsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountShowRequest; /** - * Decodes a GetWorkflowsResponse message from the specified reader or buffer, length delimited. + * Decodes a MountShowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetWorkflowsResponse + * @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.GetWorkflowsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountShowRequest; /** - * Verifies a GetWorkflowsResponse message. + * 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 GetWorkflowsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MountShowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetWorkflowsResponse + * @returns MountShowRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.MountShowRequest; /** - * Creates a plain object from a GetWorkflowsResponse message. Also converts values to other types if specified. - * @param message GetWorkflowsResponse + * 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.GetWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MountShowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetWorkflowsResponse to JSON. + * Converts this MountShowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetWorkflowsResponse + * 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 an InitShardPrimaryRequest. */ - interface IInitShardPrimaryRequest { - - /** InitShardPrimaryRequest keyspace */ - keyspace?: (string|null); + /** Properties of a MountShowResponse. */ + interface IMountShowResponse { - /** InitShardPrimaryRequest shard */ - shard?: (string|null); + /** MountShowResponse topo_type */ + topo_type?: (string|null); - /** InitShardPrimaryRequest primary_elect_tablet_alias */ - primary_elect_tablet_alias?: (topodata.ITabletAlias|null); + /** MountShowResponse topo_server */ + topo_server?: (string|null); - /** InitShardPrimaryRequest force */ - force?: (boolean|null); + /** MountShowResponse topo_root */ + topo_root?: (string|null); - /** InitShardPrimaryRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); + /** MountShowResponse name */ + name?: (string|null); } - /** Represents an InitShardPrimaryRequest. */ - class InitShardPrimaryRequest implements IInitShardPrimaryRequest { + /** Represents a MountShowResponse. */ + class MountShowResponse implements IMountShowResponse { /** - * Constructs a new InitShardPrimaryRequest. + * Constructs a new MountShowResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IInitShardPrimaryRequest); - - /** InitShardPrimaryRequest keyspace. */ - public keyspace: string; + constructor(properties?: vtctldata.IMountShowResponse); - /** InitShardPrimaryRequest shard. */ - public shard: string; + /** MountShowResponse topo_type. */ + public topo_type: string; - /** InitShardPrimaryRequest primary_elect_tablet_alias. */ - public primary_elect_tablet_alias?: (topodata.ITabletAlias|null); + /** MountShowResponse topo_server. */ + public topo_server: string; - /** InitShardPrimaryRequest force. */ - public force: boolean; + /** MountShowResponse topo_root. */ + public topo_root: string; - /** InitShardPrimaryRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); + /** MountShowResponse name. */ + public name: string; /** - * Creates a new InitShardPrimaryRequest instance using the specified properties. + * Creates a new MountShowResponse instance using the specified properties. * @param [properties] Properties to set - * @returns InitShardPrimaryRequest instance + * @returns MountShowResponse instance */ - public static create(properties?: vtctldata.IInitShardPrimaryRequest): vtctldata.InitShardPrimaryRequest; + public static create(properties?: vtctldata.IMountShowResponse): vtctldata.MountShowResponse; /** - * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. - * @param message InitShardPrimaryRequest message or plain object to encode + * 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.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMountShowResponse, 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 + * 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.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMountShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. + * 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 InitShardPrimaryRequest + * @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.InitShardPrimaryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountShowResponse; /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer, length delimited. + * Decodes a MountShowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InitShardPrimaryRequest + * @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.InitShardPrimaryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountShowResponse; /** - * Verifies an InitShardPrimaryRequest message. + * 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 an InitShardPrimaryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MountShowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InitShardPrimaryRequest + * @returns MountShowResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.MountShowResponse; /** - * Creates a plain object from an InitShardPrimaryRequest message. Also converts values to other types if specified. - * @param message InitShardPrimaryRequest + * 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.InitShardPrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MountShowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InitShardPrimaryRequest to JSON. + * Converts this MountShowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InitShardPrimaryRequest + * 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 an InitShardPrimaryResponse. */ - interface IInitShardPrimaryResponse { - - /** InitShardPrimaryResponse events */ - events?: (logutil.IEvent[]|null); + /** Properties of a MountListRequest. */ + interface IMountListRequest { } - /** Represents an InitShardPrimaryResponse. */ - class InitShardPrimaryResponse implements IInitShardPrimaryResponse { + /** Represents a MountListRequest. */ + class MountListRequest implements IMountListRequest { /** - * Constructs a new InitShardPrimaryResponse. + * Constructs a new MountListRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IInitShardPrimaryResponse); - - /** InitShardPrimaryResponse events. */ - public events: logutil.IEvent[]; + constructor(properties?: vtctldata.IMountListRequest); /** - * Creates a new InitShardPrimaryResponse instance using the specified properties. + * Creates a new MountListRequest instance using the specified properties. * @param [properties] Properties to set - * @returns InitShardPrimaryResponse instance + * @returns MountListRequest instance */ - public static create(properties?: vtctldata.IInitShardPrimaryResponse): vtctldata.InitShardPrimaryResponse; + public static create(properties?: vtctldata.IMountListRequest): vtctldata.MountListRequest; /** - * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. - * @param message InitShardPrimaryResponse message or plain object to encode + * 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.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMountListRequest, 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 + * 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.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMountListRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. + * 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 InitShardPrimaryResponse + * @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.InitShardPrimaryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountListRequest; /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer, length delimited. + * Decodes a MountListRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InitShardPrimaryResponse + * @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.InitShardPrimaryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountListRequest; /** - * Verifies an InitShardPrimaryResponse message. + * 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 an InitShardPrimaryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MountListRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InitShardPrimaryResponse + * @returns MountListRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.MountListRequest; /** - * Creates a plain object from an InitShardPrimaryResponse message. Also converts values to other types if specified. - * @param message InitShardPrimaryResponse + * 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.InitShardPrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MountListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InitShardPrimaryResponse to JSON. + * Converts this MountListRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InitShardPrimaryResponse + * 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 LaunchSchemaMigrationRequest. */ - interface ILaunchSchemaMigrationRequest { - - /** LaunchSchemaMigrationRequest keyspace */ - keyspace?: (string|null); + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** LaunchSchemaMigrationRequest uuid */ - uuid?: (string|null); + /** Properties of a MountListResponse. */ + interface IMountListResponse { - /** LaunchSchemaMigrationRequest caller_id */ - caller_id?: (vtrpc.ICallerID|null); + /** MountListResponse names */ + names?: (string[]|null); } - /** Represents a LaunchSchemaMigrationRequest. */ - class LaunchSchemaMigrationRequest implements ILaunchSchemaMigrationRequest { + /** Represents a MountListResponse. */ + class MountListResponse implements IMountListResponse { /** - * Constructs a new LaunchSchemaMigrationRequest. + * Constructs a new MountListResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ILaunchSchemaMigrationRequest); - - /** LaunchSchemaMigrationRequest keyspace. */ - public keyspace: string; - - /** LaunchSchemaMigrationRequest uuid. */ - public uuid: string; + constructor(properties?: vtctldata.IMountListResponse); - /** LaunchSchemaMigrationRequest caller_id. */ - public caller_id?: (vtrpc.ICallerID|null); + /** MountListResponse names. */ + public names: string[]; /** - * Creates a new LaunchSchemaMigrationRequest instance using the specified properties. + * Creates a new MountListResponse instance using the specified properties. * @param [properties] Properties to set - * @returns LaunchSchemaMigrationRequest instance + * @returns MountListResponse instance */ - public static create(properties?: vtctldata.ILaunchSchemaMigrationRequest): vtctldata.LaunchSchemaMigrationRequest; + public static create(properties?: vtctldata.IMountListResponse): vtctldata.MountListResponse; /** - * Encodes the specified LaunchSchemaMigrationRequest message. Does not implicitly {@link vtctldata.LaunchSchemaMigrationRequest.verify|verify} messages. - * @param message LaunchSchemaMigrationRequest message or plain object to encode + * 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.ILaunchSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMountListResponse, 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 + * 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.ILaunchSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMountListResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer. + * 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 LaunchSchemaMigrationRequest + * @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.LaunchSchemaMigrationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountListResponse; /** - * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * Decodes a MountListResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LaunchSchemaMigrationRequest + * @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.LaunchSchemaMigrationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountListResponse; /** - * Verifies a LaunchSchemaMigrationRequest message. + * 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 LaunchSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MountListResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LaunchSchemaMigrationRequest + * @returns MountListResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.LaunchSchemaMigrationRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.MountListResponse; /** - * Creates a plain object from a LaunchSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message LaunchSchemaMigrationRequest + * 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.LaunchSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MountListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LaunchSchemaMigrationRequest to JSON. + * Converts this MountListResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LaunchSchemaMigrationRequest + * 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 LaunchSchemaMigrationResponse. */ - interface ILaunchSchemaMigrationResponse { + /** Properties of a MoveTablesCreateRequest. */ + interface IMoveTablesCreateRequest { - /** LaunchSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + /** 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 LaunchSchemaMigrationResponse. */ - class LaunchSchemaMigrationResponse implements ILaunchSchemaMigrationResponse { + /** Represents a MoveTablesCreateRequest. */ + class MoveTablesCreateRequest implements IMoveTablesCreateRequest { /** - * Constructs a new LaunchSchemaMigrationResponse. + * Constructs a new MoveTablesCreateRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ILaunchSchemaMigrationResponse); + constructor(properties?: vtctldata.IMoveTablesCreateRequest); - /** LaunchSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; + /** 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 LaunchSchemaMigrationResponse instance using the specified properties. + * Creates a new MoveTablesCreateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns LaunchSchemaMigrationResponse instance + * @returns MoveTablesCreateRequest instance */ - public static create(properties?: vtctldata.ILaunchSchemaMigrationResponse): vtctldata.LaunchSchemaMigrationResponse; + public static create(properties?: vtctldata.IMoveTablesCreateRequest): vtctldata.MoveTablesCreateRequest; /** - * Encodes the specified LaunchSchemaMigrationResponse message. Does not implicitly {@link vtctldata.LaunchSchemaMigrationResponse.verify|verify} messages. - * @param message LaunchSchemaMigrationResponse message or plain object to encode + * 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.ILaunchSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMoveTablesCreateRequest, 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 + * 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.ILaunchSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMoveTablesCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer. + * 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 LaunchSchemaMigrationResponse + * @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.LaunchSchemaMigrationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCreateRequest; /** - * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * Decodes a MoveTablesCreateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LaunchSchemaMigrationResponse + * @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.LaunchSchemaMigrationResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCreateRequest; /** - * Verifies a LaunchSchemaMigrationResponse message. + * 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 LaunchSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MoveTablesCreateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LaunchSchemaMigrationResponse + * @returns MoveTablesCreateRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.LaunchSchemaMigrationResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateRequest; /** - * Creates a plain object from a LaunchSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message LaunchSchemaMigrationResponse + * 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.LaunchSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MoveTablesCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LaunchSchemaMigrationResponse to JSON. + * Converts this MoveTablesCreateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LaunchSchemaMigrationResponse + * 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 LookupVindexCompleteRequest. */ - interface ILookupVindexCompleteRequest { - - /** LookupVindexCompleteRequest keyspace */ - keyspace?: (string|null); + /** Properties of a MoveTablesCreateResponse. */ + interface IMoveTablesCreateResponse { - /** LookupVindexCompleteRequest name */ - name?: (string|null); + /** MoveTablesCreateResponse summary */ + summary?: (string|null); - /** LookupVindexCompleteRequest table_keyspace */ - table_keyspace?: (string|null); + /** MoveTablesCreateResponse details */ + details?: (vtctldata.MoveTablesCreateResponse.ITabletInfo[]|null); } - /** Represents a LookupVindexCompleteRequest. */ - class LookupVindexCompleteRequest implements ILookupVindexCompleteRequest { + /** Represents a MoveTablesCreateResponse. */ + class MoveTablesCreateResponse implements IMoveTablesCreateResponse { /** - * Constructs a new LookupVindexCompleteRequest. + * Constructs a new MoveTablesCreateResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ILookupVindexCompleteRequest); - - /** LookupVindexCompleteRequest keyspace. */ - public keyspace: string; + constructor(properties?: vtctldata.IMoveTablesCreateResponse); - /** LookupVindexCompleteRequest name. */ - public name: string; + /** MoveTablesCreateResponse summary. */ + public summary: string; - /** LookupVindexCompleteRequest table_keyspace. */ - public table_keyspace: string; + /** MoveTablesCreateResponse details. */ + public details: vtctldata.MoveTablesCreateResponse.ITabletInfo[]; /** - * Creates a new LookupVindexCompleteRequest instance using the specified properties. + * Creates a new MoveTablesCreateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns LookupVindexCompleteRequest instance + * @returns MoveTablesCreateResponse instance */ - public static create(properties?: vtctldata.ILookupVindexCompleteRequest): vtctldata.LookupVindexCompleteRequest; + public static create(properties?: vtctldata.IMoveTablesCreateResponse): vtctldata.MoveTablesCreateResponse; /** - * Encodes the specified LookupVindexCompleteRequest message. Does not implicitly {@link vtctldata.LookupVindexCompleteRequest.verify|verify} messages. - * @param message LookupVindexCompleteRequest message or plain object to encode + * 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.ILookupVindexCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMoveTablesCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LookupVindexCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCompleteRequest.verify|verify} messages. - * @param message LookupVindexCompleteRequest message or plain object to encode + * 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.ILookupVindexCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMoveTablesCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupVindexCompleteRequest message from the specified reader or buffer. + * 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 LookupVindexCompleteRequest + * @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.LookupVindexCompleteRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCreateResponse; /** - * Decodes a LookupVindexCompleteRequest message from the specified reader or buffer, length delimited. + * Decodes a MoveTablesCreateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupVindexCompleteRequest + * @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.LookupVindexCompleteRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCreateResponse; /** - * Verifies a LookupVindexCompleteRequest message. + * 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 LookupVindexCompleteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MoveTablesCreateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupVindexCompleteRequest + * @returns MoveTablesCreateResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCompleteRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateResponse; /** - * Creates a plain object from a LookupVindexCompleteRequest message. Also converts values to other types if specified. - * @param message LookupVindexCompleteRequest + * 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.LookupVindexCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MoveTablesCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupVindexCompleteRequest to JSON. + * Converts this MoveTablesCreateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LookupVindexCompleteRequest + * 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; } - /** Properties of a LookupVindexCompleteResponse. */ - interface ILookupVindexCompleteResponse { + 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; + } } - /** Represents a LookupVindexCompleteResponse. */ - class LookupVindexCompleteResponse implements ILookupVindexCompleteResponse { + /** 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); + + /** MoveTablesCompleteRequest ignore_source_keyspace */ + ignore_source_keyspace?: (boolean|null); + } + + /** Represents a MoveTablesCompleteRequest. */ + class MoveTablesCompleteRequest implements IMoveTablesCompleteRequest { /** - * Constructs a new LookupVindexCompleteResponse. + * Constructs a new MoveTablesCompleteRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ILookupVindexCompleteResponse); + 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[]; + + /** MoveTablesCompleteRequest ignore_source_keyspace. */ + public ignore_source_keyspace: boolean; /** - * Creates a new LookupVindexCompleteResponse instance using the specified properties. + * Creates a new MoveTablesCompleteRequest instance using the specified properties. * @param [properties] Properties to set - * @returns LookupVindexCompleteResponse instance + * @returns MoveTablesCompleteRequest instance */ - public static create(properties?: vtctldata.ILookupVindexCompleteResponse): vtctldata.LookupVindexCompleteResponse; + public static create(properties?: vtctldata.IMoveTablesCompleteRequest): vtctldata.MoveTablesCompleteRequest; /** - * Encodes the specified LookupVindexCompleteResponse message. Does not implicitly {@link vtctldata.LookupVindexCompleteResponse.verify|verify} messages. - * @param message LookupVindexCompleteResponse message or plain object to encode + * 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.ILookupVindexCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMoveTablesCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LookupVindexCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCompleteResponse.verify|verify} messages. - * @param message LookupVindexCompleteResponse message or plain object to encode + * 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.ILookupVindexCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMoveTablesCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupVindexCompleteResponse message from the specified reader or buffer. + * 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 LookupVindexCompleteResponse + * @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.LookupVindexCompleteResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCompleteRequest; /** - * Decodes a LookupVindexCompleteResponse message from the specified reader or buffer, length delimited. + * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupVindexCompleteResponse + * @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.LookupVindexCompleteResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCompleteRequest; /** - * Verifies a LookupVindexCompleteResponse message. + * 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 LookupVindexCompleteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MoveTablesCompleteRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupVindexCompleteResponse + * @returns MoveTablesCompleteRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCompleteResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCompleteRequest; /** - * Creates a plain object from a LookupVindexCompleteResponse message. Also converts values to other types if specified. - * @param message LookupVindexCompleteResponse + * 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.LookupVindexCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MoveTablesCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupVindexCompleteResponse to JSON. + * Converts this MoveTablesCompleteRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LookupVindexCompleteResponse + * 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 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); + /** Properties of a MoveTablesCompleteResponse. */ + interface IMoveTablesCompleteResponse { - /** LookupVindexCreateRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); + /** MoveTablesCompleteResponse summary */ + summary?: (string|null); - /** LookupVindexCreateRequest tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + /** MoveTablesCompleteResponse dry_run_results */ + dry_run_results?: (string[]|null); } - /** Represents a LookupVindexCreateRequest. */ - class LookupVindexCreateRequest implements ILookupVindexCreateRequest { + /** Represents a MoveTablesCompleteResponse. */ + class MoveTablesCompleteResponse implements IMoveTablesCompleteResponse { /** - * Constructs a new LookupVindexCreateRequest. + * Constructs a new MoveTablesCompleteResponse. * @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; + constructor(properties?: vtctldata.IMoveTablesCompleteResponse); - /** LookupVindexCreateRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; + /** MoveTablesCompleteResponse summary. */ + public summary: string; - /** LookupVindexCreateRequest tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + /** MoveTablesCompleteResponse dry_run_results. */ + public dry_run_results: string[]; /** - * Creates a new LookupVindexCreateRequest instance using the specified properties. + * Creates a new MoveTablesCompleteResponse instance using the specified properties. * @param [properties] Properties to set - * @returns LookupVindexCreateRequest instance + * @returns MoveTablesCompleteResponse instance */ - public static create(properties?: vtctldata.ILookupVindexCreateRequest): vtctldata.LookupVindexCreateRequest; + public static create(properties?: vtctldata.IMoveTablesCompleteResponse): vtctldata.MoveTablesCompleteResponse; /** - * Encodes the specified LookupVindexCreateRequest message. Does not implicitly {@link vtctldata.LookupVindexCreateRequest.verify|verify} messages. - * @param message LookupVindexCreateRequest message or plain object to encode + * 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.ILookupVindexCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMoveTablesCompleteResponse, 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 + * 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.ILookupVindexCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMoveTablesCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupVindexCreateRequest message from the specified reader or buffer. + * 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 LookupVindexCreateRequest + * @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.LookupVindexCreateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCompleteResponse; /** - * Decodes a LookupVindexCreateRequest message from the specified reader or buffer, length delimited. + * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupVindexCreateRequest + * @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.LookupVindexCreateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCompleteResponse; /** - * Verifies a LookupVindexCreateRequest message. + * 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 LookupVindexCreateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MoveTablesCompleteResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupVindexCreateRequest + * @returns MoveTablesCompleteResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCreateRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCompleteResponse; /** - * Creates a plain object from a LookupVindexCreateRequest message. Also converts values to other types if specified. - * @param message LookupVindexCreateRequest + * 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.LookupVindexCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MoveTablesCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupVindexCreateRequest to JSON. + * Converts this MoveTablesCompleteResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LookupVindexCreateRequest + * 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 LookupVindexCreateResponse. */ - interface ILookupVindexCreateResponse { + /** Properties of a PingTabletRequest. */ + interface IPingTabletRequest { + + /** PingTabletRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); } - /** Represents a LookupVindexCreateResponse. */ - class LookupVindexCreateResponse implements ILookupVindexCreateResponse { + /** Represents a PingTabletRequest. */ + class PingTabletRequest implements IPingTabletRequest { /** - * Constructs a new LookupVindexCreateResponse. + * Constructs a new PingTabletRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ILookupVindexCreateResponse); + constructor(properties?: vtctldata.IPingTabletRequest); + + /** PingTabletRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); /** - * Creates a new LookupVindexCreateResponse instance using the specified properties. + * Creates a new PingTabletRequest instance using the specified properties. * @param [properties] Properties to set - * @returns LookupVindexCreateResponse instance + * @returns PingTabletRequest instance */ - public static create(properties?: vtctldata.ILookupVindexCreateResponse): vtctldata.LookupVindexCreateResponse; + public static create(properties?: vtctldata.IPingTabletRequest): vtctldata.PingTabletRequest; /** - * Encodes the specified LookupVindexCreateResponse message. Does not implicitly {@link vtctldata.LookupVindexCreateResponse.verify|verify} messages. - * @param message LookupVindexCreateResponse message or plain object to encode + * 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.ILookupVindexCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IPingTabletRequest, 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 + * 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.ILookupVindexCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IPingTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupVindexCreateResponse message from the specified reader or buffer. + * 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 LookupVindexCreateResponse + * @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.LookupVindexCreateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PingTabletRequest; /** - * Decodes a LookupVindexCreateResponse message from the specified reader or buffer, length delimited. + * Decodes a PingTabletRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupVindexCreateResponse + * @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.LookupVindexCreateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PingTabletRequest; /** - * Verifies a LookupVindexCreateResponse message. + * 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 LookupVindexCreateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PingTabletRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupVindexCreateResponse + * @returns PingTabletRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCreateResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.PingTabletRequest; /** - * Creates a plain object from a LookupVindexCreateResponse message. Also converts values to other types if specified. - * @param message LookupVindexCreateResponse + * 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.LookupVindexCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.PingTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupVindexCreateResponse to JSON. + * Converts this PingTabletRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LookupVindexCreateResponse + * 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 LookupVindexExternalizeRequest. */ - interface ILookupVindexExternalizeRequest { - - /** LookupVindexExternalizeRequest keyspace */ - keyspace?: (string|null); - - /** LookupVindexExternalizeRequest name */ - name?: (string|null); - - /** LookupVindexExternalizeRequest table_keyspace */ - table_keyspace?: (string|null); - - /** LookupVindexExternalizeRequest delete_workflow */ - delete_workflow?: (boolean|null); + /** Properties of a PingTabletResponse. */ + interface IPingTabletResponse { } - /** Represents a LookupVindexExternalizeRequest. */ - class LookupVindexExternalizeRequest implements ILookupVindexExternalizeRequest { + /** Represents a PingTabletResponse. */ + class PingTabletResponse implements IPingTabletResponse { /** - * Constructs a new LookupVindexExternalizeRequest. + * Constructs a new PingTabletResponse. * @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; - - /** LookupVindexExternalizeRequest delete_workflow. */ - public delete_workflow: boolean; + constructor(properties?: vtctldata.IPingTabletResponse); /** - * Creates a new LookupVindexExternalizeRequest instance using the specified properties. + * Creates a new PingTabletResponse instance using the specified properties. * @param [properties] Properties to set - * @returns LookupVindexExternalizeRequest instance + * @returns PingTabletResponse instance */ - public static create(properties?: vtctldata.ILookupVindexExternalizeRequest): vtctldata.LookupVindexExternalizeRequest; + public static create(properties?: vtctldata.IPingTabletResponse): vtctldata.PingTabletResponse; /** - * Encodes the specified LookupVindexExternalizeRequest message. Does not implicitly {@link vtctldata.LookupVindexExternalizeRequest.verify|verify} messages. - * @param message LookupVindexExternalizeRequest message or plain object to encode + * 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.ILookupVindexExternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IPingTabletResponse, 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 + * 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.ILookupVindexExternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IPingTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer. + * 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 LookupVindexExternalizeRequest + * @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.LookupVindexExternalizeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PingTabletResponse; /** - * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer, length delimited. + * Decodes a PingTabletResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupVindexExternalizeRequest + * @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.LookupVindexExternalizeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PingTabletResponse; /** - * Verifies a LookupVindexExternalizeRequest message. + * 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 LookupVindexExternalizeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PingTabletResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupVindexExternalizeRequest + * @returns PingTabletResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexExternalizeRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.PingTabletResponse; /** - * Creates a plain object from a LookupVindexExternalizeRequest message. Also converts values to other types if specified. - * @param message LookupVindexExternalizeRequest + * 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.LookupVindexExternalizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.PingTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupVindexExternalizeRequest to JSON. + * Converts this PingTabletResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LookupVindexExternalizeRequest + * 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 LookupVindexExternalizeResponse. */ - interface ILookupVindexExternalizeResponse { + /** Properties of a PlannedReparentShardRequest. */ + interface IPlannedReparentShardRequest { - /** LookupVindexExternalizeResponse workflow_stopped */ - workflow_stopped?: (boolean|null); + /** PlannedReparentShardRequest keyspace */ + keyspace?: (string|null); - /** LookupVindexExternalizeResponse workflow_deleted */ - workflow_deleted?: (boolean|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); + + /** PlannedReparentShardRequest expected_primary */ + expected_primary?: (topodata.ITabletAlias|null); } - /** Represents a LookupVindexExternalizeResponse. */ - class LookupVindexExternalizeResponse implements ILookupVindexExternalizeResponse { + /** Represents a PlannedReparentShardRequest. */ + class PlannedReparentShardRequest implements IPlannedReparentShardRequest { /** - * Constructs a new LookupVindexExternalizeResponse. + * Constructs a new PlannedReparentShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ILookupVindexExternalizeResponse); + constructor(properties?: vtctldata.IPlannedReparentShardRequest); - /** LookupVindexExternalizeResponse workflow_stopped. */ - public workflow_stopped: boolean; + /** PlannedReparentShardRequest keyspace. */ + public keyspace: string; - /** LookupVindexExternalizeResponse workflow_deleted. */ - public workflow_deleted: boolean; + /** 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; + + /** PlannedReparentShardRequest expected_primary. */ + public expected_primary?: (topodata.ITabletAlias|null); /** - * Creates a new LookupVindexExternalizeResponse instance using the specified properties. + * Creates a new PlannedReparentShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns LookupVindexExternalizeResponse instance + * @returns PlannedReparentShardRequest instance */ - public static create(properties?: vtctldata.ILookupVindexExternalizeResponse): vtctldata.LookupVindexExternalizeResponse; + public static create(properties?: vtctldata.IPlannedReparentShardRequest): vtctldata.PlannedReparentShardRequest; /** - * Encodes the specified LookupVindexExternalizeResponse message. Does not implicitly {@link vtctldata.LookupVindexExternalizeResponse.verify|verify} messages. - * @param message LookupVindexExternalizeResponse message or plain object to encode + * 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.ILookupVindexExternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IPlannedReparentShardRequest, 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 + * 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.ILookupVindexExternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer. + * 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 LookupVindexExternalizeResponse + * @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.LookupVindexExternalizeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardRequest; /** - * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer, length delimited. + * Decodes a PlannedReparentShardRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupVindexExternalizeResponse + * @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.LookupVindexExternalizeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardRequest; /** - * Verifies a LookupVindexExternalizeResponse message. + * 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 LookupVindexExternalizeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PlannedReparentShardRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupVindexExternalizeResponse + * @returns PlannedReparentShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexExternalizeResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardRequest; /** - * Creates a plain object from a LookupVindexExternalizeResponse message. Also converts values to other types if specified. - * @param message LookupVindexExternalizeResponse + * 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.LookupVindexExternalizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.PlannedReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupVindexExternalizeResponse to JSON. + * Converts this PlannedReparentShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LookupVindexExternalizeResponse + * 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 LookupVindexInternalizeRequest. */ - interface ILookupVindexInternalizeRequest { + /** Properties of a PlannedReparentShardResponse. */ + interface IPlannedReparentShardResponse { - /** LookupVindexInternalizeRequest keyspace */ + /** PlannedReparentShardResponse keyspace */ keyspace?: (string|null); - /** LookupVindexInternalizeRequest name */ - name?: (string|null); + /** PlannedReparentShardResponse shard */ + shard?: (string|null); - /** LookupVindexInternalizeRequest table_keyspace */ - table_keyspace?: (string|null); + /** PlannedReparentShardResponse promoted_primary */ + promoted_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardResponse events */ + events?: (logutil.IEvent[]|null); } - /** Represents a LookupVindexInternalizeRequest. */ - class LookupVindexInternalizeRequest implements ILookupVindexInternalizeRequest { + /** Represents a PlannedReparentShardResponse. */ + class PlannedReparentShardResponse implements IPlannedReparentShardResponse { /** - * Constructs a new LookupVindexInternalizeRequest. + * Constructs a new PlannedReparentShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ILookupVindexInternalizeRequest); + constructor(properties?: vtctldata.IPlannedReparentShardResponse); - /** LookupVindexInternalizeRequest keyspace. */ + /** PlannedReparentShardResponse keyspace. */ public keyspace: string; - /** LookupVindexInternalizeRequest name. */ - public name: string; + /** PlannedReparentShardResponse shard. */ + public shard: string; - /** LookupVindexInternalizeRequest table_keyspace. */ - public table_keyspace: string; + /** PlannedReparentShardResponse promoted_primary. */ + public promoted_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardResponse events. */ + public events: logutil.IEvent[]; /** - * Creates a new LookupVindexInternalizeRequest instance using the specified properties. + * Creates a new PlannedReparentShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns LookupVindexInternalizeRequest instance + * @returns PlannedReparentShardResponse instance */ - public static create(properties?: vtctldata.ILookupVindexInternalizeRequest): vtctldata.LookupVindexInternalizeRequest; + public static create(properties?: vtctldata.IPlannedReparentShardResponse): vtctldata.PlannedReparentShardResponse; /** - * Encodes the specified LookupVindexInternalizeRequest message. Does not implicitly {@link vtctldata.LookupVindexInternalizeRequest.verify|verify} messages. - * @param message LookupVindexInternalizeRequest message or plain object to encode + * 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.ILookupVindexInternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LookupVindexInternalizeRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexInternalizeRequest.verify|verify} messages. - * @param message LookupVindexInternalizeRequest message or plain object to encode + * 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.ILookupVindexInternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupVindexInternalizeRequest message from the specified reader or buffer. + * 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 LookupVindexInternalizeRequest + * @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.LookupVindexInternalizeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardResponse; /** - * Decodes a LookupVindexInternalizeRequest message from the specified reader or buffer, length delimited. + * Decodes a PlannedReparentShardResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupVindexInternalizeRequest + * @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.LookupVindexInternalizeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardResponse; /** - * Verifies a LookupVindexInternalizeRequest message. + * 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 LookupVindexInternalizeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PlannedReparentShardResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupVindexInternalizeRequest + * @returns PlannedReparentShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexInternalizeRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardResponse; /** - * Creates a plain object from a LookupVindexInternalizeRequest message. Also converts values to other types if specified. - * @param message LookupVindexInternalizeRequest + * 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.LookupVindexInternalizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.PlannedReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupVindexInternalizeRequest to JSON. + * Converts this PlannedReparentShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LookupVindexInternalizeRequest + * 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 LookupVindexInternalizeResponse. */ - interface ILookupVindexInternalizeResponse { - } + /** Properties of a RebuildKeyspaceGraphRequest. */ + interface IRebuildKeyspaceGraphRequest { - /** Represents a LookupVindexInternalizeResponse. */ - class LookupVindexInternalizeResponse implements ILookupVindexInternalizeResponse { + /** 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 LookupVindexInternalizeResponse. + * Constructs a new RebuildKeyspaceGraphRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ILookupVindexInternalizeResponse); + constructor(properties?: vtctldata.IRebuildKeyspaceGraphRequest); + + /** RebuildKeyspaceGraphRequest keyspace. */ + public keyspace: string; + + /** RebuildKeyspaceGraphRequest cells. */ + public cells: string[]; + + /** RebuildKeyspaceGraphRequest allow_partial. */ + public allow_partial: boolean; /** - * Creates a new LookupVindexInternalizeResponse instance using the specified properties. + * Creates a new RebuildKeyspaceGraphRequest instance using the specified properties. * @param [properties] Properties to set - * @returns LookupVindexInternalizeResponse instance + * @returns RebuildKeyspaceGraphRequest instance */ - public static create(properties?: vtctldata.ILookupVindexInternalizeResponse): vtctldata.LookupVindexInternalizeResponse; + public static create(properties?: vtctldata.IRebuildKeyspaceGraphRequest): vtctldata.RebuildKeyspaceGraphRequest; /** - * Encodes the specified LookupVindexInternalizeResponse message. Does not implicitly {@link vtctldata.LookupVindexInternalizeResponse.verify|verify} messages. - * @param message LookupVindexInternalizeResponse message or plain object to encode + * 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.ILookupVindexInternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRebuildKeyspaceGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LookupVindexInternalizeResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexInternalizeResponse.verify|verify} messages. - * @param message LookupVindexInternalizeResponse message or plain object to encode + * 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.ILookupVindexInternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRebuildKeyspaceGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupVindexInternalizeResponse message from the specified reader or buffer. + * 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 LookupVindexInternalizeResponse + * @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.LookupVindexInternalizeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildKeyspaceGraphRequest; /** - * Decodes a LookupVindexInternalizeResponse message from the specified reader or buffer, length delimited. + * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupVindexInternalizeResponse + * @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.LookupVindexInternalizeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildKeyspaceGraphRequest; /** - * Verifies a LookupVindexInternalizeResponse message. + * 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 LookupVindexInternalizeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RebuildKeyspaceGraphRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupVindexInternalizeResponse + * @returns RebuildKeyspaceGraphRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexInternalizeResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RebuildKeyspaceGraphRequest; /** - * Creates a plain object from a LookupVindexInternalizeResponse message. Also converts values to other types if specified. - * @param message LookupVindexInternalizeResponse + * 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.LookupVindexInternalizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RebuildKeyspaceGraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupVindexInternalizeResponse to JSON. + * Converts this RebuildKeyspaceGraphRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LookupVindexInternalizeResponse + * 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 MaterializeCreateRequest. */ - interface IMaterializeCreateRequest { - - /** MaterializeCreateRequest settings */ - settings?: (vtctldata.IMaterializeSettings|null); + /** Properties of a RebuildKeyspaceGraphResponse. */ + interface IRebuildKeyspaceGraphResponse { } - /** Represents a MaterializeCreateRequest. */ - class MaterializeCreateRequest implements IMaterializeCreateRequest { + /** Represents a RebuildKeyspaceGraphResponse. */ + class RebuildKeyspaceGraphResponse implements IRebuildKeyspaceGraphResponse { /** - * Constructs a new MaterializeCreateRequest. + * Constructs a new RebuildKeyspaceGraphResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IMaterializeCreateRequest); - - /** MaterializeCreateRequest settings. */ - public settings?: (vtctldata.IMaterializeSettings|null); + constructor(properties?: vtctldata.IRebuildKeyspaceGraphResponse); /** - * Creates a new MaterializeCreateRequest instance using the specified properties. + * Creates a new RebuildKeyspaceGraphResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MaterializeCreateRequest instance + * @returns RebuildKeyspaceGraphResponse instance */ - public static create(properties?: vtctldata.IMaterializeCreateRequest): vtctldata.MaterializeCreateRequest; + public static create(properties?: vtctldata.IRebuildKeyspaceGraphResponse): vtctldata.RebuildKeyspaceGraphResponse; /** - * Encodes the specified MaterializeCreateRequest message. Does not implicitly {@link vtctldata.MaterializeCreateRequest.verify|verify} messages. - * @param message MaterializeCreateRequest message or plain object to encode + * 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.IMaterializeCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRebuildKeyspaceGraphResponse, 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 + * 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.IMaterializeCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRebuildKeyspaceGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MaterializeCreateRequest message from the specified reader or buffer. + * 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 MaterializeCreateRequest + * @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.MaterializeCreateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildKeyspaceGraphResponse; /** - * Decodes a MaterializeCreateRequest message from the specified reader or buffer, length delimited. + * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MaterializeCreateRequest + * @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.MaterializeCreateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildKeyspaceGraphResponse; /** - * Verifies a MaterializeCreateRequest message. + * 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 MaterializeCreateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RebuildKeyspaceGraphResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MaterializeCreateRequest + * @returns RebuildKeyspaceGraphResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeCreateRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RebuildKeyspaceGraphResponse; /** - * Creates a plain object from a MaterializeCreateRequest message. Also converts values to other types if specified. - * @param message MaterializeCreateRequest + * 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.MaterializeCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RebuildKeyspaceGraphResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MaterializeCreateRequest to JSON. + * Converts this RebuildKeyspaceGraphResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MaterializeCreateRequest + * 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 MaterializeCreateResponse. */ - interface IMaterializeCreateResponse { + /** Properties of a RebuildVSchemaGraphRequest. */ + interface IRebuildVSchemaGraphRequest { + + /** RebuildVSchemaGraphRequest cells */ + cells?: (string[]|null); } - /** Represents a MaterializeCreateResponse. */ - class MaterializeCreateResponse implements IMaterializeCreateResponse { + /** Represents a RebuildVSchemaGraphRequest. */ + class RebuildVSchemaGraphRequest implements IRebuildVSchemaGraphRequest { /** - * Constructs a new MaterializeCreateResponse. + * Constructs a new RebuildVSchemaGraphRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IMaterializeCreateResponse); + constructor(properties?: vtctldata.IRebuildVSchemaGraphRequest); + + /** RebuildVSchemaGraphRequest cells. */ + public cells: string[]; /** - * Creates a new MaterializeCreateResponse instance using the specified properties. + * Creates a new RebuildVSchemaGraphRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MaterializeCreateResponse instance + * @returns RebuildVSchemaGraphRequest instance */ - public static create(properties?: vtctldata.IMaterializeCreateResponse): vtctldata.MaterializeCreateResponse; + public static create(properties?: vtctldata.IRebuildVSchemaGraphRequest): vtctldata.RebuildVSchemaGraphRequest; /** - * Encodes the specified MaterializeCreateResponse message. Does not implicitly {@link vtctldata.MaterializeCreateResponse.verify|verify} messages. - * @param message MaterializeCreateResponse message or plain object to encode + * 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.IMaterializeCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRebuildVSchemaGraphRequest, 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 + * 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.IMaterializeCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRebuildVSchemaGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MaterializeCreateResponse message from the specified reader or buffer. + * 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 MaterializeCreateResponse + * @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.MaterializeCreateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildVSchemaGraphRequest; /** - * Decodes a MaterializeCreateResponse message from the specified reader or buffer, length delimited. + * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MaterializeCreateResponse + * @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.MaterializeCreateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildVSchemaGraphRequest; /** - * Verifies a MaterializeCreateResponse message. + * 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 MaterializeCreateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RebuildVSchemaGraphRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MaterializeCreateResponse + * @returns RebuildVSchemaGraphRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeCreateResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RebuildVSchemaGraphRequest; /** - * Creates a plain object from a MaterializeCreateResponse message. Also converts values to other types if specified. - * @param message MaterializeCreateResponse + * 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.MaterializeCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RebuildVSchemaGraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MaterializeCreateResponse to JSON. + * Converts this RebuildVSchemaGraphRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MaterializeCreateResponse + * 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 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); + /** Properties of a RebuildVSchemaGraphResponse. */ + interface IRebuildVSchemaGraphResponse { } - /** Represents a MigrateCreateRequest. */ - class MigrateCreateRequest implements IMigrateCreateRequest { + /** Represents a RebuildVSchemaGraphResponse. */ + class RebuildVSchemaGraphResponse implements IRebuildVSchemaGraphResponse { /** - * Constructs a new MigrateCreateRequest. + * Constructs a new RebuildVSchemaGraphResponse. * @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; + constructor(properties?: vtctldata.IRebuildVSchemaGraphResponse); /** - * Creates a new MigrateCreateRequest instance using the specified properties. + * Creates a new RebuildVSchemaGraphResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateCreateRequest instance + * @returns RebuildVSchemaGraphResponse instance */ - public static create(properties?: vtctldata.IMigrateCreateRequest): vtctldata.MigrateCreateRequest; + public static create(properties?: vtctldata.IRebuildVSchemaGraphResponse): vtctldata.RebuildVSchemaGraphResponse; /** - * Encodes the specified MigrateCreateRequest message. Does not implicitly {@link vtctldata.MigrateCreateRequest.verify|verify} messages. - * @param message MigrateCreateRequest message or plain object to encode + * 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.IMigrateCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRebuildVSchemaGraphResponse, 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 + * 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.IMigrateCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRebuildVSchemaGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateCreateRequest message from the specified reader or buffer. + * 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 MigrateCreateRequest + * @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.MigrateCreateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildVSchemaGraphResponse; /** - * Decodes a MigrateCreateRequest message from the specified reader or buffer, length delimited. + * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateCreateRequest + * @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.MigrateCreateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildVSchemaGraphResponse; /** - * Verifies a MigrateCreateRequest message. + * 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 MigrateCreateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RebuildVSchemaGraphResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateCreateRequest + * @returns RebuildVSchemaGraphResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCreateRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RebuildVSchemaGraphResponse; /** - * Creates a plain object from a MigrateCreateRequest message. Also converts values to other types if specified. - * @param message MigrateCreateRequest + * 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.MigrateCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RebuildVSchemaGraphResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateCreateRequest to JSON. + * Converts this RebuildVSchemaGraphResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigrateCreateRequest + * 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 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); + /** Properties of a RefreshStateRequest. */ + interface IRefreshStateRequest { - /** MigrateCompleteRequest dry_run */ - dry_run?: (boolean|null); + /** RefreshStateRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); } - /** Represents a MigrateCompleteRequest. */ - class MigrateCompleteRequest implements IMigrateCompleteRequest { + /** Represents a RefreshStateRequest. */ + class RefreshStateRequest implements IRefreshStateRequest { /** - * Constructs a new MigrateCompleteRequest. + * Constructs a new RefreshStateRequest. * @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; + constructor(properties?: vtctldata.IRefreshStateRequest); - /** MigrateCompleteRequest dry_run. */ - public dry_run: boolean; + /** RefreshStateRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); /** - * Creates a new MigrateCompleteRequest instance using the specified properties. + * Creates a new RefreshStateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateCompleteRequest instance + * @returns RefreshStateRequest instance */ - public static create(properties?: vtctldata.IMigrateCompleteRequest): vtctldata.MigrateCompleteRequest; + public static create(properties?: vtctldata.IRefreshStateRequest): vtctldata.RefreshStateRequest; /** - * Encodes the specified MigrateCompleteRequest message. Does not implicitly {@link vtctldata.MigrateCompleteRequest.verify|verify} messages. - * @param message MigrateCompleteRequest message or plain object to encode + * 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.IMigrateCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRefreshStateRequest, 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 + * 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.IMigrateCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateCompleteRequest message from the specified reader or buffer. + * 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 MigrateCompleteRequest + * @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.MigrateCompleteRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateRequest; /** - * Decodes a MigrateCompleteRequest message from the specified reader or buffer, length delimited. + * Decodes a RefreshStateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateCompleteRequest + * @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.MigrateCompleteRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateRequest; /** - * Verifies a MigrateCompleteRequest message. + * 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 MigrateCompleteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshStateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateCompleteRequest + * @returns RefreshStateRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCompleteRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateRequest; /** - * Creates a plain object from a MigrateCompleteRequest message. Also converts values to other types if specified. - * @param message MigrateCompleteRequest + * 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.MigrateCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RefreshStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateCompleteRequest to JSON. + * Converts this RefreshStateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigrateCompleteRequest + * 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 MigrateCompleteResponse. */ - interface IMigrateCompleteResponse { - - /** MigrateCompleteResponse summary */ - summary?: (string|null); - - /** MigrateCompleteResponse dry_run_results */ - dry_run_results?: (string[]|null); + /** Properties of a RefreshStateResponse. */ + interface IRefreshStateResponse { } - /** Represents a MigrateCompleteResponse. */ - class MigrateCompleteResponse implements IMigrateCompleteResponse { + /** Represents a RefreshStateResponse. */ + class RefreshStateResponse implements IRefreshStateResponse { /** - * Constructs a new MigrateCompleteResponse. + * Constructs a new RefreshStateResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IMigrateCompleteResponse); - - /** MigrateCompleteResponse summary. */ - public summary: string; - - /** MigrateCompleteResponse dry_run_results. */ - public dry_run_results: string[]; + constructor(properties?: vtctldata.IRefreshStateResponse); /** - * Creates a new MigrateCompleteResponse instance using the specified properties. + * Creates a new RefreshStateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateCompleteResponse instance + * @returns RefreshStateResponse instance */ - public static create(properties?: vtctldata.IMigrateCompleteResponse): vtctldata.MigrateCompleteResponse; + public static create(properties?: vtctldata.IRefreshStateResponse): vtctldata.RefreshStateResponse; /** - * Encodes the specified MigrateCompleteResponse message. Does not implicitly {@link vtctldata.MigrateCompleteResponse.verify|verify} messages. - * @param message MigrateCompleteResponse message or plain object to encode + * 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.IMigrateCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRefreshStateResponse, 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 + * 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.IMigrateCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateCompleteResponse message from the specified reader or buffer. + * 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 MigrateCompleteResponse + * @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.MigrateCompleteResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateResponse; /** - * Decodes a MigrateCompleteResponse message from the specified reader or buffer, length delimited. + * Decodes a RefreshStateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateCompleteResponse + * @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.MigrateCompleteResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateResponse; /** - * Verifies a MigrateCompleteResponse message. + * 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 MigrateCompleteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshStateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateCompleteResponse + * @returns RefreshStateResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCompleteResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateResponse; /** - * Creates a plain object from a MigrateCompleteResponse message. Also converts values to other types if specified. - * @param message MigrateCompleteResponse + * 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.MigrateCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RefreshStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateCompleteResponse to JSON. + * Converts this RefreshStateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigrateCompleteResponse + * 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 MountRegisterRequest. */ - interface IMountRegisterRequest { - - /** MountRegisterRequest topo_type */ - topo_type?: (string|null); + /** Properties of a RefreshStateByShardRequest. */ + interface IRefreshStateByShardRequest { - /** MountRegisterRequest topo_server */ - topo_server?: (string|null); + /** RefreshStateByShardRequest keyspace */ + keyspace?: (string|null); - /** MountRegisterRequest topo_root */ - topo_root?: (string|null); + /** RefreshStateByShardRequest shard */ + shard?: (string|null); - /** MountRegisterRequest name */ - name?: (string|null); + /** RefreshStateByShardRequest cells */ + cells?: (string[]|null); } - /** Represents a MountRegisterRequest. */ - class MountRegisterRequest implements IMountRegisterRequest { + /** Represents a RefreshStateByShardRequest. */ + class RefreshStateByShardRequest implements IRefreshStateByShardRequest { /** - * Constructs a new MountRegisterRequest. + * Constructs a new RefreshStateByShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IMountRegisterRequest); - - /** MountRegisterRequest topo_type. */ - public topo_type: string; + constructor(properties?: vtctldata.IRefreshStateByShardRequest); - /** MountRegisterRequest topo_server. */ - public topo_server: string; + /** RefreshStateByShardRequest keyspace. */ + public keyspace: string; - /** MountRegisterRequest topo_root. */ - public topo_root: string; + /** RefreshStateByShardRequest shard. */ + public shard: string; - /** MountRegisterRequest name. */ - public name: string; + /** RefreshStateByShardRequest cells. */ + public cells: string[]; /** - * Creates a new MountRegisterRequest instance using the specified properties. + * Creates a new RefreshStateByShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MountRegisterRequest instance + * @returns RefreshStateByShardRequest instance */ - public static create(properties?: vtctldata.IMountRegisterRequest): vtctldata.MountRegisterRequest; + public static create(properties?: vtctldata.IRefreshStateByShardRequest): vtctldata.RefreshStateByShardRequest; /** - * Encodes the specified MountRegisterRequest message. Does not implicitly {@link vtctldata.MountRegisterRequest.verify|verify} messages. - * @param message MountRegisterRequest message or plain object to encode + * 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.IMountRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRefreshStateByShardRequest, 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 + * 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.IMountRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRefreshStateByShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MountRegisterRequest message from the specified reader or buffer. + * 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 MountRegisterRequest + * @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.MountRegisterRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateByShardRequest; /** - * Decodes a MountRegisterRequest message from the specified reader or buffer, length delimited. + * Decodes a RefreshStateByShardRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MountRegisterRequest + * @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.MountRegisterRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateByShardRequest; /** - * Verifies a MountRegisterRequest message. + * 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 MountRegisterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshStateByShardRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MountRegisterRequest + * @returns RefreshStateByShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountRegisterRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateByShardRequest; /** - * Creates a plain object from a MountRegisterRequest message. Also converts values to other types if specified. - * @param message MountRegisterRequest + * 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.MountRegisterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RefreshStateByShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MountRegisterRequest to JSON. + * Converts this RefreshStateByShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MountRegisterRequest + * 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 MountRegisterResponse. */ - interface IMountRegisterResponse { + /** 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 MountRegisterResponse. */ - class MountRegisterResponse implements IMountRegisterResponse { + /** Represents a RefreshStateByShardResponse. */ + class RefreshStateByShardResponse implements IRefreshStateByShardResponse { /** - * Constructs a new MountRegisterResponse. + * Constructs a new RefreshStateByShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IMountRegisterResponse); + 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 MountRegisterResponse instance using the specified properties. + * Creates a new RefreshStateByShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MountRegisterResponse instance + * @returns RefreshStateByShardResponse instance */ - public static create(properties?: vtctldata.IMountRegisterResponse): vtctldata.MountRegisterResponse; + public static create(properties?: vtctldata.IRefreshStateByShardResponse): vtctldata.RefreshStateByShardResponse; /** - * Encodes the specified MountRegisterResponse message. Does not implicitly {@link vtctldata.MountRegisterResponse.verify|verify} messages. - * @param message MountRegisterResponse message or plain object to encode + * 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.IMountRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRefreshStateByShardResponse, 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 + * 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.IMountRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRefreshStateByShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MountRegisterResponse message from the specified reader or buffer. + * 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 MountRegisterResponse + * @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.MountRegisterResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateByShardResponse; /** - * Decodes a MountRegisterResponse message from the specified reader or buffer, length delimited. + * Decodes a RefreshStateByShardResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MountRegisterResponse + * @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.MountRegisterResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateByShardResponse; /** - * Verifies a MountRegisterResponse message. + * 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 MountRegisterResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshStateByShardResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MountRegisterResponse + * @returns RefreshStateByShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountRegisterResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateByShardResponse; /** - * Creates a plain object from a MountRegisterResponse message. Also converts values to other types if specified. - * @param message MountRegisterResponse + * 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.MountRegisterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RefreshStateByShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MountRegisterResponse to JSON. + * Converts this RefreshStateByShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MountRegisterResponse + * 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 MountUnregisterRequest. */ - interface IMountUnregisterRequest { + /** Properties of a ReloadSchemaRequest. */ + interface IReloadSchemaRequest { - /** MountUnregisterRequest name */ - name?: (string|null); + /** ReloadSchemaRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); } - /** Represents a MountUnregisterRequest. */ - class MountUnregisterRequest implements IMountUnregisterRequest { + /** Represents a ReloadSchemaRequest. */ + class ReloadSchemaRequest implements IReloadSchemaRequest { /** - * Constructs a new MountUnregisterRequest. + * Constructs a new ReloadSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IMountUnregisterRequest); + constructor(properties?: vtctldata.IReloadSchemaRequest); - /** MountUnregisterRequest name. */ - public name: string; + /** ReloadSchemaRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); /** - * Creates a new MountUnregisterRequest instance using the specified properties. + * Creates a new ReloadSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MountUnregisterRequest instance + * @returns ReloadSchemaRequest instance */ - public static create(properties?: vtctldata.IMountUnregisterRequest): vtctldata.MountUnregisterRequest; + public static create(properties?: vtctldata.IReloadSchemaRequest): vtctldata.ReloadSchemaRequest; /** - * Encodes the specified MountUnregisterRequest message. Does not implicitly {@link vtctldata.MountUnregisterRequest.verify|verify} messages. - * @param message MountUnregisterRequest message or plain object to encode + * 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.IMountUnregisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReloadSchemaRequest, 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 + * 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.IMountUnregisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MountUnregisterRequest message from the specified reader or buffer. + * 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 MountUnregisterRequest + * @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.MountUnregisterRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaRequest; /** - * Decodes a MountUnregisterRequest message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MountUnregisterRequest + * @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.MountUnregisterRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaRequest; /** - * Verifies a MountUnregisterRequest message. + * 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 MountUnregisterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MountUnregisterRequest + * @returns ReloadSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountUnregisterRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaRequest; /** - * Creates a plain object from a MountUnregisterRequest message. Also converts values to other types if specified. - * @param message MountUnregisterRequest + * 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.MountUnregisterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReloadSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MountUnregisterRequest to JSON. + * Converts this ReloadSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MountUnregisterRequest + * 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 MountUnregisterResponse. */ - interface IMountUnregisterResponse { + /** Properties of a ReloadSchemaResponse. */ + interface IReloadSchemaResponse { } - /** Represents a MountUnregisterResponse. */ - class MountUnregisterResponse implements IMountUnregisterResponse { + /** Represents a ReloadSchemaResponse. */ + class ReloadSchemaResponse implements IReloadSchemaResponse { /** - * Constructs a new MountUnregisterResponse. + * Constructs a new ReloadSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IMountUnregisterResponse); + constructor(properties?: vtctldata.IReloadSchemaResponse); /** - * Creates a new MountUnregisterResponse instance using the specified properties. + * Creates a new ReloadSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MountUnregisterResponse instance + * @returns ReloadSchemaResponse instance */ - public static create(properties?: vtctldata.IMountUnregisterResponse): vtctldata.MountUnregisterResponse; + public static create(properties?: vtctldata.IReloadSchemaResponse): vtctldata.ReloadSchemaResponse; /** - * Encodes the specified MountUnregisterResponse message. Does not implicitly {@link vtctldata.MountUnregisterResponse.verify|verify} messages. - * @param message MountUnregisterResponse message or plain object to encode + * 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.IMountUnregisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReloadSchemaResponse, 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 + * 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.IMountUnregisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MountUnregisterResponse message from the specified reader or buffer. + * 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 MountUnregisterResponse + * @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.MountUnregisterResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaResponse; /** - * Decodes a MountUnregisterResponse message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MountUnregisterResponse + * @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.MountUnregisterResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaResponse; /** - * Verifies a MountUnregisterResponse message. + * 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 MountUnregisterResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MountUnregisterResponse + * @returns ReloadSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountUnregisterResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaResponse; /** - * Creates a plain object from a MountUnregisterResponse message. Also converts values to other types if specified. - * @param message MountUnregisterResponse + * 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.MountUnregisterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReloadSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MountUnregisterResponse to JSON. + * Converts this ReloadSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MountUnregisterResponse + * 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 MountShowRequest. */ - interface IMountShowRequest { + /** Properties of a ReloadSchemaKeyspaceRequest. */ + interface IReloadSchemaKeyspaceRequest { - /** MountShowRequest name */ - name?: (string|null); + /** 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 MountShowRequest. */ - class MountShowRequest implements IMountShowRequest { + /** Represents a ReloadSchemaKeyspaceRequest. */ + class ReloadSchemaKeyspaceRequest implements IReloadSchemaKeyspaceRequest { /** - * Constructs a new MountShowRequest. + * Constructs a new ReloadSchemaKeyspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IMountShowRequest); + constructor(properties?: vtctldata.IReloadSchemaKeyspaceRequest); - /** MountShowRequest name. */ - public name: string; + /** 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 MountShowRequest instance using the specified properties. + * Creates a new ReloadSchemaKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MountShowRequest instance + * @returns ReloadSchemaKeyspaceRequest instance */ - public static create(properties?: vtctldata.IMountShowRequest): vtctldata.MountShowRequest; + public static create(properties?: vtctldata.IReloadSchemaKeyspaceRequest): vtctldata.ReloadSchemaKeyspaceRequest; /** - * Encodes the specified MountShowRequest message. Does not implicitly {@link vtctldata.MountShowRequest.verify|verify} messages. - * @param message MountShowRequest message or plain object to encode + * 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.IMountShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReloadSchemaKeyspaceRequest, 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 + * 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.IMountShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReloadSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MountShowRequest message from the specified reader or buffer. + * 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 MountShowRequest + * @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.MountShowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaKeyspaceRequest; /** - * Decodes a MountShowRequest message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MountShowRequest + * @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.MountShowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaKeyspaceRequest; /** - * Verifies a MountShowRequest message. + * 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 MountShowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MountShowRequest + * @returns ReloadSchemaKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountShowRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaKeyspaceRequest; /** - * Creates a plain object from a MountShowRequest message. Also converts values to other types if specified. - * @param message MountShowRequest + * 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.MountShowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReloadSchemaKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MountShowRequest to JSON. + * Converts this ReloadSchemaKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MountShowRequest + * 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 MountShowResponse. */ - interface IMountShowResponse { - - /** MountShowResponse topo_type */ - topo_type?: (string|null); - - /** MountShowResponse topo_server */ - topo_server?: (string|null); - - /** MountShowResponse topo_root */ - topo_root?: (string|null); + /** Properties of a ReloadSchemaKeyspaceResponse. */ + interface IReloadSchemaKeyspaceResponse { - /** MountShowResponse name */ - name?: (string|null); + /** ReloadSchemaKeyspaceResponse events */ + events?: (logutil.IEvent[]|null); } - /** Represents a MountShowResponse. */ - class MountShowResponse implements IMountShowResponse { + /** Represents a ReloadSchemaKeyspaceResponse. */ + class ReloadSchemaKeyspaceResponse implements IReloadSchemaKeyspaceResponse { /** - * Constructs a new MountShowResponse. + * Constructs a new ReloadSchemaKeyspaceResponse. * @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; + constructor(properties?: vtctldata.IReloadSchemaKeyspaceResponse); - /** MountShowResponse name. */ - public name: string; + /** ReloadSchemaKeyspaceResponse events. */ + public events: logutil.IEvent[]; /** - * Creates a new MountShowResponse instance using the specified properties. + * Creates a new ReloadSchemaKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MountShowResponse instance + * @returns ReloadSchemaKeyspaceResponse instance */ - public static create(properties?: vtctldata.IMountShowResponse): vtctldata.MountShowResponse; + public static create(properties?: vtctldata.IReloadSchemaKeyspaceResponse): vtctldata.ReloadSchemaKeyspaceResponse; /** - * Encodes the specified MountShowResponse message. Does not implicitly {@link vtctldata.MountShowResponse.verify|verify} messages. - * @param message MountShowResponse message or plain object to encode + * 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.IMountShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReloadSchemaKeyspaceResponse, 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 + * 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.IMountShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReloadSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MountShowResponse message from the specified reader or buffer. + * 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 MountShowResponse + * @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.MountShowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaKeyspaceResponse; /** - * Decodes a MountShowResponse message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MountShowResponse + * @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.MountShowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaKeyspaceResponse; /** - * Verifies a MountShowResponse message. + * 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 MountShowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MountShowResponse + * @returns ReloadSchemaKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountShowResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaKeyspaceResponse; /** - * Creates a plain object from a MountShowResponse message. Also converts values to other types if specified. - * @param message MountShowResponse + * 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.MountShowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReloadSchemaKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MountShowResponse to JSON. + * Converts this ReloadSchemaKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MountShowResponse + * 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 MountListRequest. */ - interface IMountListRequest { - } + /** 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; - /** Represents a MountListRequest. */ - class MountListRequest implements IMountListRequest { + /** ReloadSchemaShardRequest include_primary. */ + public include_primary: boolean; - /** - * Constructs a new MountListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountListRequest); + /** ReloadSchemaShardRequest concurrency. */ + public concurrency: number; /** - * Creates a new MountListRequest instance using the specified properties. + * Creates a new ReloadSchemaShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MountListRequest instance + * @returns ReloadSchemaShardRequest instance */ - public static create(properties?: vtctldata.IMountListRequest): vtctldata.MountListRequest; + public static create(properties?: vtctldata.IReloadSchemaShardRequest): vtctldata.ReloadSchemaShardRequest; /** - * Encodes the specified MountListRequest message. Does not implicitly {@link vtctldata.MountListRequest.verify|verify} messages. - * @param message MountListRequest message or plain object to encode + * 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.IMountListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReloadSchemaShardRequest, 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 + * 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.IMountListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReloadSchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MountListRequest message from the specified reader or buffer. + * 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 MountListRequest + * @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.MountListRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaShardRequest; /** - * Decodes a MountListRequest message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MountListRequest + * @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.MountListRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaShardRequest; /** - * Verifies a MountListRequest message. + * 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 MountListRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaShardRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MountListRequest + * @returns ReloadSchemaShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountListRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaShardRequest; /** - * Creates a plain object from a MountListRequest message. Also converts values to other types if specified. - * @param message MountListRequest + * 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.MountListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReloadSchemaShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MountListRequest to JSON. + * Converts this ReloadSchemaShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MountListRequest + * 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 MountListResponse. */ - interface IMountListResponse { + /** Properties of a ReloadSchemaShardResponse. */ + interface IReloadSchemaShardResponse { - /** MountListResponse names */ - names?: (string[]|null); + /** ReloadSchemaShardResponse events */ + events?: (logutil.IEvent[]|null); } - /** Represents a MountListResponse. */ - class MountListResponse implements IMountListResponse { + /** Represents a ReloadSchemaShardResponse. */ + class ReloadSchemaShardResponse implements IReloadSchemaShardResponse { /** - * Constructs a new MountListResponse. + * Constructs a new ReloadSchemaShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IMountListResponse); + constructor(properties?: vtctldata.IReloadSchemaShardResponse); - /** MountListResponse names. */ - public names: string[]; + /** ReloadSchemaShardResponse events. */ + public events: logutil.IEvent[]; /** - * Creates a new MountListResponse instance using the specified properties. + * Creates a new ReloadSchemaShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MountListResponse instance + * @returns ReloadSchemaShardResponse instance */ - public static create(properties?: vtctldata.IMountListResponse): vtctldata.MountListResponse; + public static create(properties?: vtctldata.IReloadSchemaShardResponse): vtctldata.ReloadSchemaShardResponse; /** - * Encodes the specified MountListResponse message. Does not implicitly {@link vtctldata.MountListResponse.verify|verify} messages. - * @param message MountListResponse message or plain object to encode + * 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.IMountListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReloadSchemaShardResponse, 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 + * 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.IMountListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReloadSchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MountListResponse message from the specified reader or buffer. + * 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 MountListResponse + * @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.MountListResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaShardResponse; /** - * Decodes a MountListResponse message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MountListResponse + * @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.MountListResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaShardResponse; /** - * Verifies a MountListResponse message. + * 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 MountListResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaShardResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MountListResponse + * @returns ReloadSchemaShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountListResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaShardResponse; /** - * Creates a plain object from a MountListResponse message. Also converts values to other types if specified. - * @param message MountListResponse + * 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.MountListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReloadSchemaShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MountListResponse to JSON. + * Converts this ReloadSchemaShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MountListResponse + * 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 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); + /** Properties of a RemoveBackupRequest. */ + interface IRemoveBackupRequest { - /** MoveTablesCreateRequest no_routing_rules */ - no_routing_rules?: (boolean|null); + /** RemoveBackupRequest keyspace */ + keyspace?: (string|null); - /** MoveTablesCreateRequest atomic_copy */ - atomic_copy?: (boolean|null); + /** RemoveBackupRequest shard */ + shard?: (string|null); - /** MoveTablesCreateRequest workflow_options */ - workflow_options?: (vtctldata.IWorkflowOptions|null); + /** RemoveBackupRequest name */ + name?: (string|null); } - /** Represents a MoveTablesCreateRequest. */ - class MoveTablesCreateRequest implements IMoveTablesCreateRequest { + /** Represents a RemoveBackupRequest. */ + class RemoveBackupRequest implements IRemoveBackupRequest { /** - * Constructs a new MoveTablesCreateRequest. + * Constructs a new RemoveBackupRequest. * @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; + constructor(properties?: vtctldata.IRemoveBackupRequest); - /** MoveTablesCreateRequest no_routing_rules. */ - public no_routing_rules: boolean; + /** RemoveBackupRequest keyspace. */ + public keyspace: string; - /** MoveTablesCreateRequest atomic_copy. */ - public atomic_copy: boolean; + /** RemoveBackupRequest shard. */ + public shard: string; - /** MoveTablesCreateRequest workflow_options. */ - public workflow_options?: (vtctldata.IWorkflowOptions|null); + /** RemoveBackupRequest name. */ + public name: string; /** - * Creates a new MoveTablesCreateRequest instance using the specified properties. + * Creates a new RemoveBackupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MoveTablesCreateRequest instance + * @returns RemoveBackupRequest instance */ - public static create(properties?: vtctldata.IMoveTablesCreateRequest): vtctldata.MoveTablesCreateRequest; + public static create(properties?: vtctldata.IRemoveBackupRequest): vtctldata.RemoveBackupRequest; /** - * Encodes the specified MoveTablesCreateRequest message. Does not implicitly {@link vtctldata.MoveTablesCreateRequest.verify|verify} messages. - * @param message MoveTablesCreateRequest message or plain object to encode + * 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.IMoveTablesCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveBackupRequest, 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 + * 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.IMoveTablesCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MoveTablesCreateRequest message from the specified reader or buffer. + * 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 MoveTablesCreateRequest + * @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.MoveTablesCreateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveBackupRequest; /** - * Decodes a MoveTablesCreateRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveBackupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MoveTablesCreateRequest + * @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.MoveTablesCreateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveBackupRequest; /** - * Verifies a MoveTablesCreateRequest message. + * 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 MoveTablesCreateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveBackupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MoveTablesCreateRequest + * @returns RemoveBackupRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveBackupRequest; /** - * Creates a plain object from a MoveTablesCreateRequest message. Also converts values to other types if specified. - * @param message MoveTablesCreateRequest + * 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.MoveTablesCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MoveTablesCreateRequest to JSON. + * Converts this RemoveBackupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MoveTablesCreateRequest + * 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 MoveTablesCreateResponse. */ - interface IMoveTablesCreateResponse { - - /** MoveTablesCreateResponse summary */ - summary?: (string|null); - - /** MoveTablesCreateResponse details */ - details?: (vtctldata.MoveTablesCreateResponse.ITabletInfo[]|null); + /** Properties of a RemoveBackupResponse. */ + interface IRemoveBackupResponse { } - /** Represents a MoveTablesCreateResponse. */ - class MoveTablesCreateResponse implements IMoveTablesCreateResponse { + /** Represents a RemoveBackupResponse. */ + class RemoveBackupResponse implements IRemoveBackupResponse { /** - * Constructs a new MoveTablesCreateResponse. + * Constructs a new RemoveBackupResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IMoveTablesCreateResponse); - - /** MoveTablesCreateResponse summary. */ - public summary: string; - - /** MoveTablesCreateResponse details. */ - public details: vtctldata.MoveTablesCreateResponse.ITabletInfo[]; + constructor(properties?: vtctldata.IRemoveBackupResponse); /** - * Creates a new MoveTablesCreateResponse instance using the specified properties. + * Creates a new RemoveBackupResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MoveTablesCreateResponse instance + * @returns RemoveBackupResponse instance */ - public static create(properties?: vtctldata.IMoveTablesCreateResponse): vtctldata.MoveTablesCreateResponse; + public static create(properties?: vtctldata.IRemoveBackupResponse): vtctldata.RemoveBackupResponse; /** - * Encodes the specified MoveTablesCreateResponse message. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.verify|verify} messages. - * @param message MoveTablesCreateResponse message or plain object to encode + * 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.IMoveTablesCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveBackupResponse, 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 + * 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.IMoveTablesCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MoveTablesCreateResponse message from the specified reader or buffer. + * 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 MoveTablesCreateResponse + * @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.MoveTablesCreateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveBackupResponse; /** - * Decodes a MoveTablesCreateResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveBackupResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MoveTablesCreateResponse + * @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.MoveTablesCreateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveBackupResponse; /** - * Verifies a MoveTablesCreateResponse message. + * 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 MoveTablesCreateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveBackupResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MoveTablesCreateResponse + * @returns RemoveBackupResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveBackupResponse; /** - * Creates a plain object from a MoveTablesCreateResponse message. Also converts values to other types if specified. - * @param message MoveTablesCreateResponse + * 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.MoveTablesCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveBackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MoveTablesCreateResponse to JSON. + * Converts this RemoveBackupResponse 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); + public toJSON(): { [k: string]: any }; - /** MoveTablesCompleteRequest keep_data */ - keep_data?: (boolean|null); + /** + * 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; + } - /** MoveTablesCompleteRequest keep_routing_rules */ - keep_routing_rules?: (boolean|null); + /** Properties of a RemoveKeyspaceCellRequest. */ + interface IRemoveKeyspaceCellRequest { - /** MoveTablesCompleteRequest rename_tables */ - rename_tables?: (boolean|null); + /** RemoveKeyspaceCellRequest keyspace */ + keyspace?: (string|null); - /** MoveTablesCompleteRequest dry_run */ - dry_run?: (boolean|null); + /** RemoveKeyspaceCellRequest cell */ + cell?: (string|null); - /** MoveTablesCompleteRequest shards */ - shards?: (string[]|null); + /** RemoveKeyspaceCellRequest force */ + force?: (boolean|null); - /** MoveTablesCompleteRequest ignore_source_keyspace */ - ignore_source_keyspace?: (boolean|null); + /** RemoveKeyspaceCellRequest recursive */ + recursive?: (boolean|null); } - /** Represents a MoveTablesCompleteRequest. */ - class MoveTablesCompleteRequest implements IMoveTablesCompleteRequest { + /** Represents a RemoveKeyspaceCellRequest. */ + class RemoveKeyspaceCellRequest implements IRemoveKeyspaceCellRequest { /** - * Constructs a new MoveTablesCompleteRequest. + * Constructs a new RemoveKeyspaceCellRequest. * @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; + constructor(properties?: vtctldata.IRemoveKeyspaceCellRequest); - /** MoveTablesCompleteRequest rename_tables. */ - public rename_tables: boolean; + /** RemoveKeyspaceCellRequest keyspace. */ + public keyspace: string; - /** MoveTablesCompleteRequest dry_run. */ - public dry_run: boolean; + /** RemoveKeyspaceCellRequest cell. */ + public cell: string; - /** MoveTablesCompleteRequest shards. */ - public shards: string[]; + /** RemoveKeyspaceCellRequest force. */ + public force: boolean; - /** MoveTablesCompleteRequest ignore_source_keyspace. */ - public ignore_source_keyspace: boolean; + /** RemoveKeyspaceCellRequest recursive. */ + public recursive: boolean; /** - * Creates a new MoveTablesCompleteRequest instance using the specified properties. + * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MoveTablesCompleteRequest instance + * @returns RemoveKeyspaceCellRequest instance */ - public static create(properties?: vtctldata.IMoveTablesCompleteRequest): vtctldata.MoveTablesCompleteRequest; + public static create(properties?: vtctldata.IRemoveKeyspaceCellRequest): vtctldata.RemoveKeyspaceCellRequest; /** - * Encodes the specified MoveTablesCompleteRequest message. Does not implicitly {@link vtctldata.MoveTablesCompleteRequest.verify|verify} messages. - * @param message MoveTablesCompleteRequest message or plain object to encode + * 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.IMoveTablesCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveKeyspaceCellRequest, 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 + * 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.IMoveTablesCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer. + * 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 MoveTablesCompleteRequest + * @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.MoveTablesCompleteRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellRequest; /** - * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MoveTablesCompleteRequest + * @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.MoveTablesCompleteRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellRequest; /** - * Verifies a MoveTablesCompleteRequest message. + * 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 MoveTablesCompleteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveKeyspaceCellRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MoveTablesCompleteRequest + * @returns RemoveKeyspaceCellRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCompleteRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellRequest; /** - * Creates a plain object from a MoveTablesCompleteRequest message. Also converts values to other types if specified. - * @param message MoveTablesCompleteRequest + * 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.MoveTablesCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveKeyspaceCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MoveTablesCompleteRequest to JSON. + * Converts this RemoveKeyspaceCellRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MoveTablesCompleteRequest + * 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 MoveTablesCompleteResponse. */ - interface IMoveTablesCompleteResponse { - - /** MoveTablesCompleteResponse summary */ - summary?: (string|null); - - /** MoveTablesCompleteResponse dry_run_results */ - dry_run_results?: (string[]|null); + /** Properties of a RemoveKeyspaceCellResponse. */ + interface IRemoveKeyspaceCellResponse { } - /** Represents a MoveTablesCompleteResponse. */ - class MoveTablesCompleteResponse implements IMoveTablesCompleteResponse { + /** Represents a RemoveKeyspaceCellResponse. */ + class RemoveKeyspaceCellResponse implements IRemoveKeyspaceCellResponse { /** - * Constructs a new MoveTablesCompleteResponse. + * Constructs a new RemoveKeyspaceCellResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IMoveTablesCompleteResponse); - - /** MoveTablesCompleteResponse summary. */ - public summary: string; - - /** MoveTablesCompleteResponse dry_run_results. */ - public dry_run_results: string[]; + constructor(properties?: vtctldata.IRemoveKeyspaceCellResponse); /** - * Creates a new MoveTablesCompleteResponse instance using the specified properties. + * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MoveTablesCompleteResponse instance + * @returns RemoveKeyspaceCellResponse instance */ - public static create(properties?: vtctldata.IMoveTablesCompleteResponse): vtctldata.MoveTablesCompleteResponse; + public static create(properties?: vtctldata.IRemoveKeyspaceCellResponse): vtctldata.RemoveKeyspaceCellResponse; /** - * Encodes the specified MoveTablesCompleteResponse message. Does not implicitly {@link vtctldata.MoveTablesCompleteResponse.verify|verify} messages. - * @param message MoveTablesCompleteResponse message or plain object to encode + * 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.IMoveTablesCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveKeyspaceCellResponse, 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 + * 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.IMoveTablesCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer. + * 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 MoveTablesCompleteResponse + * @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.MoveTablesCompleteResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellResponse; /** - * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MoveTablesCompleteResponse + * @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.MoveTablesCompleteResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellResponse; /** - * Verifies a MoveTablesCompleteResponse message. + * 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 MoveTablesCompleteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveKeyspaceCellResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MoveTablesCompleteResponse + * @returns RemoveKeyspaceCellResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCompleteResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellResponse; /** - * Creates a plain object from a MoveTablesCompleteResponse message. Also converts values to other types if specified. - * @param message MoveTablesCompleteResponse + * 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.MoveTablesCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveKeyspaceCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MoveTablesCompleteResponse to JSON. + * Converts this RemoveKeyspaceCellResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MoveTablesCompleteResponse + * 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 PingTabletRequest. */ - interface IPingTabletRequest { + /** Properties of a RemoveShardCellRequest. */ + interface IRemoveShardCellRequest { - /** PingTabletRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** 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 PingTabletRequest. */ - class PingTabletRequest implements IPingTabletRequest { + /** Represents a RemoveShardCellRequest. */ + class RemoveShardCellRequest implements IRemoveShardCellRequest { /** - * Constructs a new PingTabletRequest. + * Constructs a new RemoveShardCellRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IPingTabletRequest); + constructor(properties?: vtctldata.IRemoveShardCellRequest); - /** PingTabletRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** 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 PingTabletRequest instance using the specified properties. + * Creates a new RemoveShardCellRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PingTabletRequest instance + * @returns RemoveShardCellRequest instance */ - public static create(properties?: vtctldata.IPingTabletRequest): vtctldata.PingTabletRequest; + public static create(properties?: vtctldata.IRemoveShardCellRequest): vtctldata.RemoveShardCellRequest; /** - * Encodes the specified PingTabletRequest message. Does not implicitly {@link vtctldata.PingTabletRequest.verify|verify} messages. - * @param message PingTabletRequest message or plain object to encode + * 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.IPingTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveShardCellRequest, 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 + * 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.IPingTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PingTabletRequest message from the specified reader or buffer. + * 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 PingTabletRequest + * @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.PingTabletRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellRequest; /** - * Decodes a PingTabletRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PingTabletRequest + * @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.PingTabletRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellRequest; /** - * Verifies a PingTabletRequest message. + * 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 PingTabletRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveShardCellRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PingTabletRequest + * @returns RemoveShardCellRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.PingTabletRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellRequest; /** - * Creates a plain object from a PingTabletRequest message. Also converts values to other types if specified. - * @param message PingTabletRequest + * 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.PingTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveShardCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PingTabletRequest to JSON. + * Converts this RemoveShardCellRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PingTabletRequest + * 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 PingTabletResponse. */ - interface IPingTabletResponse { + /** Properties of a RemoveShardCellResponse. */ + interface IRemoveShardCellResponse { } - /** Represents a PingTabletResponse. */ - class PingTabletResponse implements IPingTabletResponse { + /** Represents a RemoveShardCellResponse. */ + class RemoveShardCellResponse implements IRemoveShardCellResponse { /** - * Constructs a new PingTabletResponse. + * Constructs a new RemoveShardCellResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IPingTabletResponse); + constructor(properties?: vtctldata.IRemoveShardCellResponse); /** - * Creates a new PingTabletResponse instance using the specified properties. + * Creates a new RemoveShardCellResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PingTabletResponse instance + * @returns RemoveShardCellResponse instance */ - public static create(properties?: vtctldata.IPingTabletResponse): vtctldata.PingTabletResponse; + public static create(properties?: vtctldata.IRemoveShardCellResponse): vtctldata.RemoveShardCellResponse; /** - * Encodes the specified PingTabletResponse message. Does not implicitly {@link vtctldata.PingTabletResponse.verify|verify} messages. - * @param message PingTabletResponse message or plain object to encode + * 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.IPingTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveShardCellResponse, 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 + * 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.IPingTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PingTabletResponse message from the specified reader or buffer. + * 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 PingTabletResponse + * @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.PingTabletResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellResponse; /** - * Decodes a PingTabletResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PingTabletResponse + * @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.PingTabletResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellResponse; /** - * Verifies a PingTabletResponse message. + * 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 PingTabletResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveShardCellResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PingTabletResponse + * @returns RemoveShardCellResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.PingTabletResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellResponse; /** - * Creates a plain object from a PingTabletResponse message. Also converts values to other types if specified. - * @param message PingTabletResponse + * 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.PingTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveShardCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PingTabletResponse to JSON. + * Converts this RemoveShardCellResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PingTabletResponse + * 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 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); + /** Properties of a ReparentTabletRequest. */ + interface IReparentTabletRequest { - /** PlannedReparentShardRequest expected_primary */ - expected_primary?: (topodata.ITabletAlias|null); + /** ReparentTabletRequest tablet */ + tablet?: (topodata.ITabletAlias|null); } - /** Represents a PlannedReparentShardRequest. */ - class PlannedReparentShardRequest implements IPlannedReparentShardRequest { + /** Represents a ReparentTabletRequest. */ + class ReparentTabletRequest implements IReparentTabletRequest { /** - * Constructs a new PlannedReparentShardRequest. + * Constructs a new ReparentTabletRequest. * @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; + constructor(properties?: vtctldata.IReparentTabletRequest); - /** PlannedReparentShardRequest expected_primary. */ - public expected_primary?: (topodata.ITabletAlias|null); + /** ReparentTabletRequest tablet. */ + public tablet?: (topodata.ITabletAlias|null); /** - * Creates a new PlannedReparentShardRequest instance using the specified properties. + * Creates a new ReparentTabletRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PlannedReparentShardRequest instance + * @returns ReparentTabletRequest instance */ - public static create(properties?: vtctldata.IPlannedReparentShardRequest): vtctldata.PlannedReparentShardRequest; + public static create(properties?: vtctldata.IReparentTabletRequest): vtctldata.ReparentTabletRequest; /** - * Encodes the specified PlannedReparentShardRequest message. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. - * @param message PlannedReparentShardRequest message or plain object to encode + * 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.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReparentTabletRequest, 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 + * 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.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PlannedReparentShardRequest message from the specified reader or buffer. + * 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 PlannedReparentShardRequest + * @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.PlannedReparentShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletRequest; /** - * Decodes a PlannedReparentShardRequest message from the specified reader or buffer, length delimited. + * Decodes a ReparentTabletRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PlannedReparentShardRequest + * @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.PlannedReparentShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletRequest; /** - * Verifies a PlannedReparentShardRequest message. + * 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 PlannedReparentShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReparentTabletRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PlannedReparentShardRequest + * @returns ReparentTabletRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletRequest; /** - * Creates a plain object from a PlannedReparentShardRequest message. Also converts values to other types if specified. - * @param message PlannedReparentShardRequest + * 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.PlannedReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReparentTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PlannedReparentShardRequest to JSON. + * Converts this ReparentTabletRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PlannedReparentShardRequest + * 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 PlannedReparentShardResponse. */ - interface IPlannedReparentShardResponse { + /** Properties of a ReparentTabletResponse. */ + interface IReparentTabletResponse { - /** PlannedReparentShardResponse keyspace */ + /** ReparentTabletResponse keyspace */ keyspace?: (string|null); - /** PlannedReparentShardResponse shard */ + /** ReparentTabletResponse shard */ shard?: (string|null); - /** PlannedReparentShardResponse promoted_primary */ - promoted_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardResponse events */ - events?: (logutil.IEvent[]|null); + /** ReparentTabletResponse primary */ + primary?: (topodata.ITabletAlias|null); } - /** Represents a PlannedReparentShardResponse. */ - class PlannedReparentShardResponse implements IPlannedReparentShardResponse { + /** Represents a ReparentTabletResponse. */ + class ReparentTabletResponse implements IReparentTabletResponse { /** - * Constructs a new PlannedReparentShardResponse. + * Constructs a new ReparentTabletResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IPlannedReparentShardResponse); + constructor(properties?: vtctldata.IReparentTabletResponse); - /** PlannedReparentShardResponse keyspace. */ + /** ReparentTabletResponse keyspace. */ public keyspace: string; - /** PlannedReparentShardResponse shard. */ + /** ReparentTabletResponse shard. */ public shard: string; - /** PlannedReparentShardResponse promoted_primary. */ - public promoted_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardResponse events. */ - public events: logutil.IEvent[]; + /** ReparentTabletResponse primary. */ + public primary?: (topodata.ITabletAlias|null); /** - * Creates a new PlannedReparentShardResponse instance using the specified properties. + * Creates a new ReparentTabletResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PlannedReparentShardResponse instance + * @returns ReparentTabletResponse instance */ - public static create(properties?: vtctldata.IPlannedReparentShardResponse): vtctldata.PlannedReparentShardResponse; + public static create(properties?: vtctldata.IReparentTabletResponse): vtctldata.ReparentTabletResponse; /** - * Encodes the specified PlannedReparentShardResponse message. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. - * @param message PlannedReparentShardResponse message or plain object to encode + * 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.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReparentTabletResponse, 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 + * 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.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PlannedReparentShardResponse message from the specified reader or buffer. + * 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 PlannedReparentShardResponse + * @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.PlannedReparentShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletResponse; /** - * Decodes a PlannedReparentShardResponse message from the specified reader or buffer, length delimited. + * Decodes a ReparentTabletResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PlannedReparentShardResponse + * @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.PlannedReparentShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletResponse; /** - * Verifies a PlannedReparentShardResponse message. + * 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 PlannedReparentShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReparentTabletResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PlannedReparentShardResponse + * @returns ReparentTabletResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletResponse; /** - * Creates a plain object from a PlannedReparentShardResponse message. Also converts values to other types if specified. - * @param message PlannedReparentShardResponse + * 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.PlannedReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReparentTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PlannedReparentShardResponse to JSON. + * Converts this ReparentTabletResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PlannedReparentShardResponse + * 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 RebuildKeyspaceGraphRequest. */ - interface IRebuildKeyspaceGraphRequest { + /** Properties of a ReshardCreateRequest. */ + interface IReshardCreateRequest { - /** RebuildKeyspaceGraphRequest keyspace */ + /** ReshardCreateRequest workflow */ + workflow?: (string|null); + + /** ReshardCreateRequest keyspace */ keyspace?: (string|null); - /** RebuildKeyspaceGraphRequest cells */ + /** ReshardCreateRequest source_shards */ + source_shards?: (string[]|null); + + /** ReshardCreateRequest target_shards */ + target_shards?: (string[]|null); + + /** ReshardCreateRequest cells */ cells?: (string[]|null); - /** RebuildKeyspaceGraphRequest allow_partial */ - allow_partial?: (boolean|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 RebuildKeyspaceGraphRequest. */ - class RebuildKeyspaceGraphRequest implements IRebuildKeyspaceGraphRequest { + /** Represents a ReshardCreateRequest. */ + class ReshardCreateRequest implements IReshardCreateRequest { /** - * Constructs a new RebuildKeyspaceGraphRequest. + * Constructs a new ReshardCreateRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRebuildKeyspaceGraphRequest); + constructor(properties?: vtctldata.IReshardCreateRequest); - /** RebuildKeyspaceGraphRequest keyspace. */ + /** ReshardCreateRequest workflow. */ + public workflow: string; + + /** ReshardCreateRequest keyspace. */ public keyspace: string; - /** RebuildKeyspaceGraphRequest cells. */ + /** ReshardCreateRequest source_shards. */ + public source_shards: string[]; + + /** ReshardCreateRequest target_shards. */ + public target_shards: string[]; + + /** ReshardCreateRequest cells. */ public cells: string[]; - /** RebuildKeyspaceGraphRequest allow_partial. */ - public allow_partial: boolean; + /** 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 RebuildKeyspaceGraphRequest instance using the specified properties. + * Creates a new ReshardCreateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RebuildKeyspaceGraphRequest instance + * @returns ReshardCreateRequest instance */ - public static create(properties?: vtctldata.IRebuildKeyspaceGraphRequest): vtctldata.RebuildKeyspaceGraphRequest; + public static create(properties?: vtctldata.IReshardCreateRequest): vtctldata.ReshardCreateRequest; /** - * Encodes the specified RebuildKeyspaceGraphRequest message. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphRequest.verify|verify} messages. - * @param message RebuildKeyspaceGraphRequest message or plain object to encode + * 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.IRebuildKeyspaceGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReshardCreateRequest, 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 + * 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.IRebuildKeyspaceGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReshardCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer. + * 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 RebuildKeyspaceGraphRequest + * @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.RebuildKeyspaceGraphRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReshardCreateRequest; /** - * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer, length delimited. + * Decodes a ReshardCreateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RebuildKeyspaceGraphRequest + * @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.RebuildKeyspaceGraphRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReshardCreateRequest; /** - * Verifies a RebuildKeyspaceGraphRequest message. + * 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 RebuildKeyspaceGraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReshardCreateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RebuildKeyspaceGraphRequest + * @returns ReshardCreateRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RebuildKeyspaceGraphRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ReshardCreateRequest; /** - * Creates a plain object from a RebuildKeyspaceGraphRequest message. Also converts values to other types if specified. - * @param message RebuildKeyspaceGraphRequest + * 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.RebuildKeyspaceGraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReshardCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RebuildKeyspaceGraphRequest to JSON. + * Converts this ReshardCreateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RebuildKeyspaceGraphRequest + * 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 RebuildKeyspaceGraphResponse. */ - interface IRebuildKeyspaceGraphResponse { + /** 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 RebuildKeyspaceGraphResponse. */ - class RebuildKeyspaceGraphResponse implements IRebuildKeyspaceGraphResponse { + /** Represents a RestoreFromBackupRequest. */ + class RestoreFromBackupRequest implements IRestoreFromBackupRequest { /** - * Constructs a new RebuildKeyspaceGraphResponse. + * Constructs a new RestoreFromBackupRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRebuildKeyspaceGraphResponse); + 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 RebuildKeyspaceGraphResponse instance using the specified properties. + * Creates a new RestoreFromBackupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RebuildKeyspaceGraphResponse instance + * @returns RestoreFromBackupRequest instance */ - public static create(properties?: vtctldata.IRebuildKeyspaceGraphResponse): vtctldata.RebuildKeyspaceGraphResponse; + public static create(properties?: vtctldata.IRestoreFromBackupRequest): vtctldata.RestoreFromBackupRequest; /** - * Encodes the specified RebuildKeyspaceGraphResponse message. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphResponse.verify|verify} messages. - * @param message RebuildKeyspaceGraphResponse message or plain object to encode + * 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.IRebuildKeyspaceGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRestoreFromBackupRequest, 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 + * 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.IRebuildKeyspaceGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer. + * 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 RebuildKeyspaceGraphResponse + * @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.RebuildKeyspaceGraphResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RestoreFromBackupRequest; /** - * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer, length delimited. + * Decodes a RestoreFromBackupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RebuildKeyspaceGraphResponse + * @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.RebuildKeyspaceGraphResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RestoreFromBackupRequest; /** - * Verifies a RebuildKeyspaceGraphResponse message. + * 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 RebuildKeyspaceGraphResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RestoreFromBackupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RebuildKeyspaceGraphResponse + * @returns RestoreFromBackupRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RebuildKeyspaceGraphResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RestoreFromBackupRequest; /** - * Creates a plain object from a RebuildKeyspaceGraphResponse message. Also converts values to other types if specified. - * @param message RebuildKeyspaceGraphResponse + * 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.RebuildKeyspaceGraphResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RestoreFromBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RebuildKeyspaceGraphResponse to JSON. + * Converts this RestoreFromBackupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RebuildKeyspaceGraphResponse + * 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 RebuildVSchemaGraphRequest. */ - interface IRebuildVSchemaGraphRequest { + /** Properties of a RestoreFromBackupResponse. */ + interface IRestoreFromBackupResponse { - /** RebuildVSchemaGraphRequest cells */ - cells?: (string[]|null); + /** 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 RebuildVSchemaGraphRequest. */ - class RebuildVSchemaGraphRequest implements IRebuildVSchemaGraphRequest { + /** Represents a RestoreFromBackupResponse. */ + class RestoreFromBackupResponse implements IRestoreFromBackupResponse { /** - * Constructs a new RebuildVSchemaGraphRequest. + * Constructs a new RestoreFromBackupResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRebuildVSchemaGraphRequest); + constructor(properties?: vtctldata.IRestoreFromBackupResponse); - /** RebuildVSchemaGraphRequest cells. */ - public cells: string[]; + /** 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 RebuildVSchemaGraphRequest instance using the specified properties. + * Creates a new RestoreFromBackupResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RebuildVSchemaGraphRequest instance + * @returns RestoreFromBackupResponse instance */ - public static create(properties?: vtctldata.IRebuildVSchemaGraphRequest): vtctldata.RebuildVSchemaGraphRequest; + public static create(properties?: vtctldata.IRestoreFromBackupResponse): vtctldata.RestoreFromBackupResponse; /** - * Encodes the specified RebuildVSchemaGraphRequest message. Does not implicitly {@link vtctldata.RebuildVSchemaGraphRequest.verify|verify} messages. - * @param message RebuildVSchemaGraphRequest message or plain object to encode + * 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.IRebuildVSchemaGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRestoreFromBackupResponse, 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 + * 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.IRebuildVSchemaGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer. + * 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 RebuildVSchemaGraphRequest + * @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.RebuildVSchemaGraphRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RestoreFromBackupResponse; /** - * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer, length delimited. + * Decodes a RestoreFromBackupResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RebuildVSchemaGraphRequest + * @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.RebuildVSchemaGraphRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RestoreFromBackupResponse; /** - * Verifies a RebuildVSchemaGraphRequest message. + * 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 RebuildVSchemaGraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RestoreFromBackupResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RebuildVSchemaGraphRequest + * @returns RestoreFromBackupResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.RebuildVSchemaGraphRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RestoreFromBackupResponse; /** - * Creates a plain object from a RebuildVSchemaGraphRequest message. Also converts values to other types if specified. - * @param message RebuildVSchemaGraphRequest + * 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.RebuildVSchemaGraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RestoreFromBackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RebuildVSchemaGraphRequest to JSON. + * Converts this RestoreFromBackupResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RebuildVSchemaGraphRequest + * 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 RebuildVSchemaGraphResponse. */ - interface IRebuildVSchemaGraphResponse { + /** Properties of a RetrySchemaMigrationRequest. */ + interface IRetrySchemaMigrationRequest { + + /** RetrySchemaMigrationRequest keyspace */ + keyspace?: (string|null); + + /** RetrySchemaMigrationRequest uuid */ + uuid?: (string|null); + + /** RetrySchemaMigrationRequest caller_id */ + caller_id?: (vtrpc.ICallerID|null); } - /** Represents a RebuildVSchemaGraphResponse. */ - class RebuildVSchemaGraphResponse implements IRebuildVSchemaGraphResponse { + /** Represents a RetrySchemaMigrationRequest. */ + class RetrySchemaMigrationRequest implements IRetrySchemaMigrationRequest { /** - * Constructs a new RebuildVSchemaGraphResponse. + * Constructs a new RetrySchemaMigrationRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRebuildVSchemaGraphResponse); + constructor(properties?: vtctldata.IRetrySchemaMigrationRequest); + + /** RetrySchemaMigrationRequest keyspace. */ + public keyspace: string; + + /** RetrySchemaMigrationRequest uuid. */ + public uuid: string; + + /** RetrySchemaMigrationRequest caller_id. */ + public caller_id?: (vtrpc.ICallerID|null); /** - * Creates a new RebuildVSchemaGraphResponse instance using the specified properties. + * Creates a new RetrySchemaMigrationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RebuildVSchemaGraphResponse instance + * @returns RetrySchemaMigrationRequest instance */ - public static create(properties?: vtctldata.IRebuildVSchemaGraphResponse): vtctldata.RebuildVSchemaGraphResponse; + public static create(properties?: vtctldata.IRetrySchemaMigrationRequest): vtctldata.RetrySchemaMigrationRequest; /** - * Encodes the specified RebuildVSchemaGraphResponse message. Does not implicitly {@link vtctldata.RebuildVSchemaGraphResponse.verify|verify} messages. - * @param message RebuildVSchemaGraphResponse message or plain object to encode + * 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.IRebuildVSchemaGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRetrySchemaMigrationRequest, 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 + * 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.IRebuildVSchemaGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRetrySchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer. + * 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 RebuildVSchemaGraphResponse + * @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.RebuildVSchemaGraphResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RetrySchemaMigrationRequest; /** - * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer, length delimited. + * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RebuildVSchemaGraphResponse + * @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.RebuildVSchemaGraphResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RetrySchemaMigrationRequest; /** - * Verifies a RebuildVSchemaGraphResponse message. + * 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 RebuildVSchemaGraphResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RetrySchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RebuildVSchemaGraphResponse + * @returns RetrySchemaMigrationRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RebuildVSchemaGraphResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RetrySchemaMigrationRequest; /** - * Creates a plain object from a RebuildVSchemaGraphResponse message. Also converts values to other types if specified. - * @param message RebuildVSchemaGraphResponse + * 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.RebuildVSchemaGraphResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RetrySchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RebuildVSchemaGraphResponse to JSON. + * Converts this RetrySchemaMigrationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RebuildVSchemaGraphResponse + * 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 RefreshStateRequest. */ - interface IRefreshStateRequest { + /** Properties of a RetrySchemaMigrationResponse. */ + interface IRetrySchemaMigrationResponse { - /** RefreshStateRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** RetrySchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); } - /** Represents a RefreshStateRequest. */ - class RefreshStateRequest implements IRefreshStateRequest { + /** Represents a RetrySchemaMigrationResponse. */ + class RetrySchemaMigrationResponse implements IRetrySchemaMigrationResponse { /** - * Constructs a new RefreshStateRequest. + * Constructs a new RetrySchemaMigrationResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRefreshStateRequest); + constructor(properties?: vtctldata.IRetrySchemaMigrationResponse); - /** RefreshStateRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** RetrySchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; /** - * Creates a new RefreshStateRequest instance using the specified properties. + * Creates a new RetrySchemaMigrationResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RefreshStateRequest instance + * @returns RetrySchemaMigrationResponse instance */ - public static create(properties?: vtctldata.IRefreshStateRequest): vtctldata.RefreshStateRequest; + public static create(properties?: vtctldata.IRetrySchemaMigrationResponse): vtctldata.RetrySchemaMigrationResponse; /** - * Encodes the specified RefreshStateRequest message. Does not implicitly {@link vtctldata.RefreshStateRequest.verify|verify} messages. - * @param message RefreshStateRequest message or plain object to encode + * 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.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRetrySchemaMigrationResponse, 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 + * 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.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRetrySchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RefreshStateRequest message from the specified reader or buffer. + * 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 RefreshStateRequest + * @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.RefreshStateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RetrySchemaMigrationResponse; /** - * Decodes a RefreshStateRequest message from the specified reader or buffer, length delimited. + * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RefreshStateRequest + * @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.RefreshStateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RetrySchemaMigrationResponse; /** - * Verifies a RefreshStateRequest message. + * 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 RefreshStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RetrySchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RefreshStateRequest + * @returns RetrySchemaMigrationResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RetrySchemaMigrationResponse; /** - * Creates a plain object from a RefreshStateRequest message. Also converts values to other types if specified. - * @param message RefreshStateRequest + * 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.RefreshStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RetrySchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RefreshStateRequest to JSON. + * Converts this RetrySchemaMigrationResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RefreshStateRequest + * 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 RefreshStateResponse. */ - interface IRefreshStateResponse { + /** Properties of a RunHealthCheckRequest. */ + interface IRunHealthCheckRequest { + + /** RunHealthCheckRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); } - /** Represents a RefreshStateResponse. */ - class RefreshStateResponse implements IRefreshStateResponse { + /** Represents a RunHealthCheckRequest. */ + class RunHealthCheckRequest implements IRunHealthCheckRequest { /** - * Constructs a new RefreshStateResponse. + * Constructs a new RunHealthCheckRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRefreshStateResponse); + constructor(properties?: vtctldata.IRunHealthCheckRequest); + + /** RunHealthCheckRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); /** - * Creates a new RefreshStateResponse instance using the specified properties. + * Creates a new RunHealthCheckRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RefreshStateResponse instance + * @returns RunHealthCheckRequest instance */ - public static create(properties?: vtctldata.IRefreshStateResponse): vtctldata.RefreshStateResponse; + public static create(properties?: vtctldata.IRunHealthCheckRequest): vtctldata.RunHealthCheckRequest; /** - * Encodes the specified RefreshStateResponse message. Does not implicitly {@link vtctldata.RefreshStateResponse.verify|verify} messages. - * @param message RefreshStateResponse message or plain object to encode + * 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.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRunHealthCheckRequest, 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 + * 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.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RefreshStateResponse message from the specified reader or buffer. + * 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 RefreshStateResponse + * @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.RefreshStateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RunHealthCheckRequest; /** - * Decodes a RefreshStateResponse message from the specified reader or buffer, length delimited. + * Decodes a RunHealthCheckRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RefreshStateResponse + * @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.RefreshStateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RunHealthCheckRequest; /** - * Verifies a RefreshStateResponse message. + * 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 RefreshStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RunHealthCheckRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RefreshStateResponse + * @returns RunHealthCheckRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RunHealthCheckRequest; /** - * Creates a plain object from a RefreshStateResponse message. Also converts values to other types if specified. - * @param message RefreshStateResponse + * 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.RefreshStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RunHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RefreshStateResponse to JSON. + * Converts this RunHealthCheckRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RefreshStateResponse + * 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 RefreshStateByShardRequest. */ - interface IRefreshStateByShardRequest { - - /** RefreshStateByShardRequest keyspace */ - keyspace?: (string|null); - - /** RefreshStateByShardRequest shard */ - shard?: (string|null); - - /** RefreshStateByShardRequest cells */ - cells?: (string[]|null); + /** Properties of a RunHealthCheckResponse. */ + interface IRunHealthCheckResponse { } - /** Represents a RefreshStateByShardRequest. */ - class RefreshStateByShardRequest implements IRefreshStateByShardRequest { + /** Represents a RunHealthCheckResponse. */ + class RunHealthCheckResponse implements IRunHealthCheckResponse { /** - * Constructs a new RefreshStateByShardRequest. + * Constructs a new RunHealthCheckResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRefreshStateByShardRequest); - - /** RefreshStateByShardRequest keyspace. */ - public keyspace: string; - - /** RefreshStateByShardRequest shard. */ - public shard: string; - - /** RefreshStateByShardRequest cells. */ - public cells: string[]; + constructor(properties?: vtctldata.IRunHealthCheckResponse); /** - * Creates a new RefreshStateByShardRequest instance using the specified properties. + * Creates a new RunHealthCheckResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RefreshStateByShardRequest instance + * @returns RunHealthCheckResponse instance */ - public static create(properties?: vtctldata.IRefreshStateByShardRequest): vtctldata.RefreshStateByShardRequest; + public static create(properties?: vtctldata.IRunHealthCheckResponse): vtctldata.RunHealthCheckResponse; /** - * Encodes the specified RefreshStateByShardRequest message. Does not implicitly {@link vtctldata.RefreshStateByShardRequest.verify|verify} messages. - * @param message RefreshStateByShardRequest message or plain object to encode + * 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.IRefreshStateByShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRunHealthCheckResponse, 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 + * 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.IRefreshStateByShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RefreshStateByShardRequest message from the specified reader or buffer. + * 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 RefreshStateByShardRequest + * @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.RefreshStateByShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RunHealthCheckResponse; /** - * Decodes a RefreshStateByShardRequest message from the specified reader or buffer, length delimited. + * Decodes a RunHealthCheckResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RefreshStateByShardRequest + * @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.RefreshStateByShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RunHealthCheckResponse; /** - * Verifies a RefreshStateByShardRequest message. + * 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 RefreshStateByShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunHealthCheckResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RefreshStateByShardRequest + * @returns RunHealthCheckResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateByShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RunHealthCheckResponse; /** - * Creates a plain object from a RefreshStateByShardRequest message. Also converts values to other types if specified. - * @param message RefreshStateByShardRequest + * 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.RefreshStateByShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RunHealthCheckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RefreshStateByShardRequest to JSON. + * Converts this RunHealthCheckResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RefreshStateByShardRequest + * 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 RefreshStateByShardResponse. */ - interface IRefreshStateByShardResponse { + /** Properties of a SetKeyspaceDurabilityPolicyRequest. */ + interface ISetKeyspaceDurabilityPolicyRequest { - /** RefreshStateByShardResponse is_partial_refresh */ - is_partial_refresh?: (boolean|null); + /** SetKeyspaceDurabilityPolicyRequest keyspace */ + keyspace?: (string|null); - /** RefreshStateByShardResponse partial_refresh_details */ - partial_refresh_details?: (string|null); + /** SetKeyspaceDurabilityPolicyRequest durability_policy */ + durability_policy?: (string|null); } - /** Represents a RefreshStateByShardResponse. */ - class RefreshStateByShardResponse implements IRefreshStateByShardResponse { + /** Represents a SetKeyspaceDurabilityPolicyRequest. */ + class SetKeyspaceDurabilityPolicyRequest implements ISetKeyspaceDurabilityPolicyRequest { /** - * Constructs a new RefreshStateByShardResponse. + * Constructs a new SetKeyspaceDurabilityPolicyRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRefreshStateByShardResponse); + constructor(properties?: vtctldata.ISetKeyspaceDurabilityPolicyRequest); - /** RefreshStateByShardResponse is_partial_refresh. */ - public is_partial_refresh: boolean; + /** SetKeyspaceDurabilityPolicyRequest keyspace. */ + public keyspace: string; - /** RefreshStateByShardResponse partial_refresh_details. */ - public partial_refresh_details: string; + /** SetKeyspaceDurabilityPolicyRequest durability_policy. */ + public durability_policy: string; /** - * Creates a new RefreshStateByShardResponse instance using the specified properties. + * Creates a new SetKeyspaceDurabilityPolicyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RefreshStateByShardResponse instance + * @returns SetKeyspaceDurabilityPolicyRequest instance */ - public static create(properties?: vtctldata.IRefreshStateByShardResponse): vtctldata.RefreshStateByShardResponse; + public static create(properties?: vtctldata.ISetKeyspaceDurabilityPolicyRequest): vtctldata.SetKeyspaceDurabilityPolicyRequest; /** - * Encodes the specified RefreshStateByShardResponse message. Does not implicitly {@link vtctldata.RefreshStateByShardResponse.verify|verify} messages. - * @param message RefreshStateByShardResponse message or plain object to encode + * 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.IRefreshStateByShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISetKeyspaceDurabilityPolicyRequest, 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 + * 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.IRefreshStateByShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISetKeyspaceDurabilityPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RefreshStateByShardResponse message from the specified reader or buffer. + * 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 RefreshStateByShardResponse + * @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.RefreshStateByShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceDurabilityPolicyRequest; /** - * Decodes a RefreshStateByShardResponse message from the specified reader or buffer, length delimited. + * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RefreshStateByShardResponse + * @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.RefreshStateByShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceDurabilityPolicyRequest; /** - * Verifies a RefreshStateByShardResponse message. + * 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 RefreshStateByShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetKeyspaceDurabilityPolicyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RefreshStateByShardResponse + * @returns SetKeyspaceDurabilityPolicyRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateByShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceDurabilityPolicyRequest; /** - * Creates a plain object from a RefreshStateByShardResponse message. Also converts values to other types if specified. - * @param message RefreshStateByShardResponse + * 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.RefreshStateByShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SetKeyspaceDurabilityPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RefreshStateByShardResponse to JSON. + * Converts this SetKeyspaceDurabilityPolicyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RefreshStateByShardResponse + * 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 ReloadSchemaRequest. */ - interface IReloadSchemaRequest { + /** Properties of a SetKeyspaceDurabilityPolicyResponse. */ + interface ISetKeyspaceDurabilityPolicyResponse { - /** ReloadSchemaRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** SetKeyspaceDurabilityPolicyResponse keyspace */ + keyspace?: (topodata.IKeyspace|null); } - /** Represents a ReloadSchemaRequest. */ - class ReloadSchemaRequest implements IReloadSchemaRequest { + /** Represents a SetKeyspaceDurabilityPolicyResponse. */ + class SetKeyspaceDurabilityPolicyResponse implements ISetKeyspaceDurabilityPolicyResponse { /** - * Constructs a new ReloadSchemaRequest. + * Constructs a new SetKeyspaceDurabilityPolicyResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IReloadSchemaRequest); + constructor(properties?: vtctldata.ISetKeyspaceDurabilityPolicyResponse); - /** ReloadSchemaRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** SetKeyspaceDurabilityPolicyResponse keyspace. */ + public keyspace?: (topodata.IKeyspace|null); /** - * Creates a new ReloadSchemaRequest instance using the specified properties. + * Creates a new SetKeyspaceDurabilityPolicyResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReloadSchemaRequest instance + * @returns SetKeyspaceDurabilityPolicyResponse instance */ - public static create(properties?: vtctldata.IReloadSchemaRequest): vtctldata.ReloadSchemaRequest; + public static create(properties?: vtctldata.ISetKeyspaceDurabilityPolicyResponse): vtctldata.SetKeyspaceDurabilityPolicyResponse; /** - * Encodes the specified ReloadSchemaRequest message. Does not implicitly {@link vtctldata.ReloadSchemaRequest.verify|verify} messages. - * @param message ReloadSchemaRequest message or plain object to encode + * 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.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISetKeyspaceDurabilityPolicyResponse, 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 + * 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.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISetKeyspaceDurabilityPolicyResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReloadSchemaRequest message from the specified reader or buffer. + * 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 ReloadSchemaRequest + * @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.ReloadSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceDurabilityPolicyResponse; /** - * Decodes a ReloadSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReloadSchemaRequest + * @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.ReloadSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceDurabilityPolicyResponse; /** - * Verifies a ReloadSchemaRequest message. + * 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 ReloadSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetKeyspaceDurabilityPolicyResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReloadSchemaRequest + * @returns SetKeyspaceDurabilityPolicyResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceDurabilityPolicyResponse; /** - * Creates a plain object from a ReloadSchemaRequest message. Also converts values to other types if specified. - * @param message ReloadSchemaRequest + * 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.ReloadSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SetKeyspaceDurabilityPolicyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReloadSchemaRequest to JSON. + * Converts this SetKeyspaceDurabilityPolicyResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReloadSchemaRequest + * 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 ReloadSchemaResponse. */ - interface IReloadSchemaResponse { + /** Properties of a SetKeyspaceShardingInfoRequest. */ + interface ISetKeyspaceShardingInfoRequest { + + /** SetKeyspaceShardingInfoRequest keyspace */ + keyspace?: (string|null); + + /** SetKeyspaceShardingInfoRequest force */ + force?: (boolean|null); } - /** Represents a ReloadSchemaResponse. */ - class ReloadSchemaResponse implements IReloadSchemaResponse { + /** Represents a SetKeyspaceShardingInfoRequest. */ + class SetKeyspaceShardingInfoRequest implements ISetKeyspaceShardingInfoRequest { /** - * Constructs a new ReloadSchemaResponse. + * Constructs a new SetKeyspaceShardingInfoRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IReloadSchemaResponse); + constructor(properties?: vtctldata.ISetKeyspaceShardingInfoRequest); + + /** SetKeyspaceShardingInfoRequest keyspace. */ + public keyspace: string; + + /** SetKeyspaceShardingInfoRequest force. */ + public force: boolean; /** - * Creates a new ReloadSchemaResponse instance using the specified properties. + * Creates a new SetKeyspaceShardingInfoRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReloadSchemaResponse instance + * @returns SetKeyspaceShardingInfoRequest instance */ - public static create(properties?: vtctldata.IReloadSchemaResponse): vtctldata.ReloadSchemaResponse; + public static create(properties?: vtctldata.ISetKeyspaceShardingInfoRequest): vtctldata.SetKeyspaceShardingInfoRequest; /** - * Encodes the specified ReloadSchemaResponse message. Does not implicitly {@link vtctldata.ReloadSchemaResponse.verify|verify} messages. - * @param message ReloadSchemaResponse message or plain object to encode + * 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.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISetKeyspaceShardingInfoRequest, 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 + * 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.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISetKeyspaceShardingInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReloadSchemaResponse message from the specified reader or buffer. + * 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 ReloadSchemaResponse + * @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.ReloadSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceShardingInfoRequest; /** - * Decodes a ReloadSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReloadSchemaResponse + * @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.ReloadSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceShardingInfoRequest; /** - * Verifies a ReloadSchemaResponse message. + * 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 ReloadSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetKeyspaceShardingInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReloadSchemaResponse + * @returns SetKeyspaceShardingInfoRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceShardingInfoRequest; /** - * Creates a plain object from a ReloadSchemaResponse message. Also converts values to other types if specified. - * @param message ReloadSchemaResponse + * 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.ReloadSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SetKeyspaceShardingInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReloadSchemaResponse to JSON. + * Converts this SetKeyspaceShardingInfoRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReloadSchemaResponse + * 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 ReloadSchemaKeyspaceRequest. */ - interface IReloadSchemaKeyspaceRequest { - - /** ReloadSchemaKeyspaceRequest keyspace */ - keyspace?: (string|null); - - /** ReloadSchemaKeyspaceRequest wait_position */ - wait_position?: (string|null); - - /** ReloadSchemaKeyspaceRequest include_primary */ - include_primary?: (boolean|null); + /** Properties of a SetKeyspaceShardingInfoResponse. */ + interface ISetKeyspaceShardingInfoResponse { - /** ReloadSchemaKeyspaceRequest concurrency */ - concurrency?: (number|null); + /** SetKeyspaceShardingInfoResponse keyspace */ + keyspace?: (topodata.IKeyspace|null); } - /** Represents a ReloadSchemaKeyspaceRequest. */ - class ReloadSchemaKeyspaceRequest implements IReloadSchemaKeyspaceRequest { + /** Represents a SetKeyspaceShardingInfoResponse. */ + class SetKeyspaceShardingInfoResponse implements ISetKeyspaceShardingInfoResponse { /** - * Constructs a new ReloadSchemaKeyspaceRequest. + * Constructs a new SetKeyspaceShardingInfoResponse. * @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; + constructor(properties?: vtctldata.ISetKeyspaceShardingInfoResponse); - /** ReloadSchemaKeyspaceRequest concurrency. */ - public concurrency: number; + /** SetKeyspaceShardingInfoResponse keyspace. */ + public keyspace?: (topodata.IKeyspace|null); /** - * Creates a new ReloadSchemaKeyspaceRequest instance using the specified properties. + * Creates a new SetKeyspaceShardingInfoResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReloadSchemaKeyspaceRequest instance + * @returns SetKeyspaceShardingInfoResponse instance */ - public static create(properties?: vtctldata.IReloadSchemaKeyspaceRequest): vtctldata.ReloadSchemaKeyspaceRequest; + public static create(properties?: vtctldata.ISetKeyspaceShardingInfoResponse): vtctldata.SetKeyspaceShardingInfoResponse; /** - * Encodes the specified ReloadSchemaKeyspaceRequest message. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceRequest.verify|verify} messages. - * @param message ReloadSchemaKeyspaceRequest message or plain object to encode + * 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.IReloadSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISetKeyspaceShardingInfoResponse, 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 + * 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.IReloadSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISetKeyspaceShardingInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer. + * 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 ReloadSchemaKeyspaceRequest + * @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.ReloadSchemaKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceShardingInfoResponse; /** - * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReloadSchemaKeyspaceRequest + * @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.ReloadSchemaKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceShardingInfoResponse; /** - * Verifies a ReloadSchemaKeyspaceRequest message. + * 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 ReloadSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetKeyspaceShardingInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReloadSchemaKeyspaceRequest + * @returns SetKeyspaceShardingInfoResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceShardingInfoResponse; /** - * Creates a plain object from a ReloadSchemaKeyspaceRequest message. Also converts values to other types if specified. - * @param message ReloadSchemaKeyspaceRequest + * 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.ReloadSchemaKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SetKeyspaceShardingInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReloadSchemaKeyspaceRequest to JSON. + * Converts this SetKeyspaceShardingInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReloadSchemaKeyspaceRequest + * 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 ReloadSchemaKeyspaceResponse. */ - interface IReloadSchemaKeyspaceResponse { + /** Properties of a SetShardIsPrimaryServingRequest. */ + interface ISetShardIsPrimaryServingRequest { - /** ReloadSchemaKeyspaceResponse events */ - events?: (logutil.IEvent[]|null); + /** SetShardIsPrimaryServingRequest keyspace */ + keyspace?: (string|null); + + /** SetShardIsPrimaryServingRequest shard */ + shard?: (string|null); + + /** SetShardIsPrimaryServingRequest is_serving */ + is_serving?: (boolean|null); } - /** Represents a ReloadSchemaKeyspaceResponse. */ - class ReloadSchemaKeyspaceResponse implements IReloadSchemaKeyspaceResponse { + /** Represents a SetShardIsPrimaryServingRequest. */ + class SetShardIsPrimaryServingRequest implements ISetShardIsPrimaryServingRequest { /** - * Constructs a new ReloadSchemaKeyspaceResponse. + * Constructs a new SetShardIsPrimaryServingRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IReloadSchemaKeyspaceResponse); + constructor(properties?: vtctldata.ISetShardIsPrimaryServingRequest); - /** ReloadSchemaKeyspaceResponse events. */ - public events: logutil.IEvent[]; + /** SetShardIsPrimaryServingRequest keyspace. */ + public keyspace: string; + + /** SetShardIsPrimaryServingRequest shard. */ + public shard: string; + + /** SetShardIsPrimaryServingRequest is_serving. */ + public is_serving: boolean; /** - * Creates a new ReloadSchemaKeyspaceResponse instance using the specified properties. + * Creates a new SetShardIsPrimaryServingRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReloadSchemaKeyspaceResponse instance + * @returns SetShardIsPrimaryServingRequest instance */ - public static create(properties?: vtctldata.IReloadSchemaKeyspaceResponse): vtctldata.ReloadSchemaKeyspaceResponse; + public static create(properties?: vtctldata.ISetShardIsPrimaryServingRequest): vtctldata.SetShardIsPrimaryServingRequest; /** - * Encodes the specified ReloadSchemaKeyspaceResponse message. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceResponse.verify|verify} messages. - * @param message ReloadSchemaKeyspaceResponse message or plain object to encode + * 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.IReloadSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISetShardIsPrimaryServingRequest, 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 + * 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.IReloadSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISetShardIsPrimaryServingRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer. + * 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 ReloadSchemaKeyspaceResponse + * @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.ReloadSchemaKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardIsPrimaryServingRequest; /** - * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReloadSchemaKeyspaceResponse + * @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.ReloadSchemaKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardIsPrimaryServingRequest; /** - * Verifies a ReloadSchemaKeyspaceResponse message. + * 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 ReloadSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetShardIsPrimaryServingRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReloadSchemaKeyspaceResponse + * @returns SetShardIsPrimaryServingRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.SetShardIsPrimaryServingRequest; /** - * Creates a plain object from a ReloadSchemaKeyspaceResponse message. Also converts values to other types if specified. - * @param message ReloadSchemaKeyspaceResponse + * 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.ReloadSchemaKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SetShardIsPrimaryServingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReloadSchemaKeyspaceResponse to JSON. + * Converts this SetShardIsPrimaryServingRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReloadSchemaKeyspaceResponse + * 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 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); + /** Properties of a SetShardIsPrimaryServingResponse. */ + interface ISetShardIsPrimaryServingResponse { - /** ReloadSchemaShardRequest concurrency */ - concurrency?: (number|null); + /** SetShardIsPrimaryServingResponse shard */ + shard?: (topodata.IShard|null); } - /** Represents a ReloadSchemaShardRequest. */ - class ReloadSchemaShardRequest implements IReloadSchemaShardRequest { + /** Represents a SetShardIsPrimaryServingResponse. */ + class SetShardIsPrimaryServingResponse implements ISetShardIsPrimaryServingResponse { /** - * Constructs a new ReloadSchemaShardRequest. + * Constructs a new SetShardIsPrimaryServingResponse. * @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; + constructor(properties?: vtctldata.ISetShardIsPrimaryServingResponse); - /** ReloadSchemaShardRequest concurrency. */ - public concurrency: number; + /** SetShardIsPrimaryServingResponse shard. */ + public shard?: (topodata.IShard|null); /** - * Creates a new ReloadSchemaShardRequest instance using the specified properties. + * Creates a new SetShardIsPrimaryServingResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReloadSchemaShardRequest instance + * @returns SetShardIsPrimaryServingResponse instance */ - public static create(properties?: vtctldata.IReloadSchemaShardRequest): vtctldata.ReloadSchemaShardRequest; + public static create(properties?: vtctldata.ISetShardIsPrimaryServingResponse): vtctldata.SetShardIsPrimaryServingResponse; /** - * Encodes the specified ReloadSchemaShardRequest message. Does not implicitly {@link vtctldata.ReloadSchemaShardRequest.verify|verify} messages. - * @param message ReloadSchemaShardRequest message or plain object to encode + * 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.IReloadSchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISetShardIsPrimaryServingResponse, 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 + * 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.IReloadSchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISetShardIsPrimaryServingResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer. + * 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 ReloadSchemaShardRequest + * @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.ReloadSchemaShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardIsPrimaryServingResponse; /** - * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer, length delimited. + * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReloadSchemaShardRequest + * @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.ReloadSchemaShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardIsPrimaryServingResponse; /** - * Verifies a ReloadSchemaShardRequest message. + * 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 ReloadSchemaShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetShardIsPrimaryServingResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReloadSchemaShardRequest + * @returns SetShardIsPrimaryServingResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.SetShardIsPrimaryServingResponse; /** - * Creates a plain object from a ReloadSchemaShardRequest message. Also converts values to other types if specified. - * @param message ReloadSchemaShardRequest + * 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.ReloadSchemaShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SetShardIsPrimaryServingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReloadSchemaShardRequest to JSON. + * Converts this SetShardIsPrimaryServingResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReloadSchemaShardRequest + * 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 ReloadSchemaShardResponse. */ - interface IReloadSchemaShardResponse { + /** Properties of a SetShardTabletControlRequest. */ + interface ISetShardTabletControlRequest { - /** ReloadSchemaShardResponse events */ - events?: (logutil.IEvent[]|null); + /** 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 ReloadSchemaShardResponse. */ - class ReloadSchemaShardResponse implements IReloadSchemaShardResponse { + /** Represents a SetShardTabletControlRequest. */ + class SetShardTabletControlRequest implements ISetShardTabletControlRequest { /** - * Constructs a new ReloadSchemaShardResponse. + * Constructs a new SetShardTabletControlRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IReloadSchemaShardResponse); + constructor(properties?: vtctldata.ISetShardTabletControlRequest); - /** ReloadSchemaShardResponse events. */ - public events: logutil.IEvent[]; + /** 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 ReloadSchemaShardResponse instance using the specified properties. + * Creates a new SetShardTabletControlRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReloadSchemaShardResponse instance + * @returns SetShardTabletControlRequest instance */ - public static create(properties?: vtctldata.IReloadSchemaShardResponse): vtctldata.ReloadSchemaShardResponse; + public static create(properties?: vtctldata.ISetShardTabletControlRequest): vtctldata.SetShardTabletControlRequest; /** - * Encodes the specified ReloadSchemaShardResponse message. Does not implicitly {@link vtctldata.ReloadSchemaShardResponse.verify|verify} messages. - * @param message ReloadSchemaShardResponse message or plain object to encode + * 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.IReloadSchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISetShardTabletControlRequest, 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 + * 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.IReloadSchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISetShardTabletControlRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer. + * 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 ReloadSchemaShardResponse + * @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.ReloadSchemaShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardTabletControlRequest; /** - * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer, length delimited. + * Decodes a SetShardTabletControlRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReloadSchemaShardResponse + * @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.ReloadSchemaShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardTabletControlRequest; /** - * Verifies a ReloadSchemaShardResponse message. + * 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 ReloadSchemaShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetShardTabletControlRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReloadSchemaShardResponse + * @returns SetShardTabletControlRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.SetShardTabletControlRequest; /** - * Creates a plain object from a ReloadSchemaShardResponse message. Also converts values to other types if specified. - * @param message ReloadSchemaShardResponse + * 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.ReloadSchemaShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SetShardTabletControlRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReloadSchemaShardResponse to JSON. + * Converts this SetShardTabletControlRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReloadSchemaShardResponse + * 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 RemoveBackupRequest. */ - interface IRemoveBackupRequest { - - /** RemoveBackupRequest keyspace */ - keyspace?: (string|null); - - /** RemoveBackupRequest shard */ - shard?: (string|null); + /** Properties of a SetShardTabletControlResponse. */ + interface ISetShardTabletControlResponse { - /** RemoveBackupRequest name */ - name?: (string|null); + /** SetShardTabletControlResponse shard */ + shard?: (topodata.IShard|null); } - /** Represents a RemoveBackupRequest. */ - class RemoveBackupRequest implements IRemoveBackupRequest { + /** Represents a SetShardTabletControlResponse. */ + class SetShardTabletControlResponse implements ISetShardTabletControlResponse { /** - * Constructs a new RemoveBackupRequest. + * Constructs a new SetShardTabletControlResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveBackupRequest); - - /** RemoveBackupRequest keyspace. */ - public keyspace: string; - - /** RemoveBackupRequest shard. */ - public shard: string; + constructor(properties?: vtctldata.ISetShardTabletControlResponse); - /** RemoveBackupRequest name. */ - public name: string; + /** SetShardTabletControlResponse shard. */ + public shard?: (topodata.IShard|null); /** - * Creates a new RemoveBackupRequest instance using the specified properties. + * Creates a new SetShardTabletControlResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveBackupRequest instance + * @returns SetShardTabletControlResponse instance */ - public static create(properties?: vtctldata.IRemoveBackupRequest): vtctldata.RemoveBackupRequest; + public static create(properties?: vtctldata.ISetShardTabletControlResponse): vtctldata.SetShardTabletControlResponse; /** - * Encodes the specified RemoveBackupRequest message. Does not implicitly {@link vtctldata.RemoveBackupRequest.verify|verify} messages. - * @param message RemoveBackupRequest message or plain object to encode + * 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.IRemoveBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISetShardTabletControlResponse, 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 + * 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.IRemoveBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISetShardTabletControlResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveBackupRequest message from the specified reader or buffer. + * 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 RemoveBackupRequest + * @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.RemoveBackupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardTabletControlResponse; /** - * Decodes a RemoveBackupRequest message from the specified reader or buffer, length delimited. + * Decodes a SetShardTabletControlResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveBackupRequest + * @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.RemoveBackupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardTabletControlResponse; /** - * Verifies a RemoveBackupRequest message. + * 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 RemoveBackupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetShardTabletControlResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveBackupRequest + * @returns SetShardTabletControlResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveBackupRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.SetShardTabletControlResponse; /** - * Creates a plain object from a RemoveBackupRequest message. Also converts values to other types if specified. - * @param message RemoveBackupRequest + * 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.RemoveBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SetShardTabletControlResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveBackupRequest to JSON. + * Converts this SetShardTabletControlResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveBackupRequest + * 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 RemoveBackupResponse. */ - interface IRemoveBackupResponse { + /** Properties of a SetWritableRequest. */ + interface ISetWritableRequest { + + /** SetWritableRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** SetWritableRequest writable */ + writable?: (boolean|null); } - /** Represents a RemoveBackupResponse. */ - class RemoveBackupResponse implements IRemoveBackupResponse { + /** Represents a SetWritableRequest. */ + class SetWritableRequest implements ISetWritableRequest { /** - * Constructs a new RemoveBackupResponse. + * Constructs a new SetWritableRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveBackupResponse); + constructor(properties?: vtctldata.ISetWritableRequest); + + /** SetWritableRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** SetWritableRequest writable. */ + public writable: boolean; /** - * Creates a new RemoveBackupResponse instance using the specified properties. + * Creates a new SetWritableRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveBackupResponse instance + * @returns SetWritableRequest instance */ - public static create(properties?: vtctldata.IRemoveBackupResponse): vtctldata.RemoveBackupResponse; + public static create(properties?: vtctldata.ISetWritableRequest): vtctldata.SetWritableRequest; /** - * Encodes the specified RemoveBackupResponse message. Does not implicitly {@link vtctldata.RemoveBackupResponse.verify|verify} messages. - * @param message RemoveBackupResponse message or plain object to encode + * 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.IRemoveBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISetWritableRequest, 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 + * 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.IRemoveBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISetWritableRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveBackupResponse message from the specified reader or buffer. + * 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 RemoveBackupResponse + * @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.RemoveBackupResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetWritableRequest; /** - * Decodes a RemoveBackupResponse message from the specified reader or buffer, length delimited. + * Decodes a SetWritableRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveBackupResponse + * @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.RemoveBackupResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetWritableRequest; /** - * Verifies a RemoveBackupResponse message. + * 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 RemoveBackupResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetWritableRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveBackupResponse + * @returns SetWritableRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveBackupResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.SetWritableRequest; /** - * Creates a plain object from a RemoveBackupResponse message. Also converts values to other types if specified. - * @param message RemoveBackupResponse + * 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.RemoveBackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SetWritableRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveBackupResponse to JSON. + * Converts this SetWritableRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveBackupResponse + * 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 RemoveKeyspaceCellRequest. */ - interface IRemoveKeyspaceCellRequest { - - /** RemoveKeyspaceCellRequest keyspace */ - keyspace?: (string|null); - - /** RemoveKeyspaceCellRequest cell */ - cell?: (string|null); - - /** RemoveKeyspaceCellRequest force */ - force?: (boolean|null); - - /** RemoveKeyspaceCellRequest recursive */ - recursive?: (boolean|null); + /** Properties of a SetWritableResponse. */ + interface ISetWritableResponse { } - /** Represents a RemoveKeyspaceCellRequest. */ - class RemoveKeyspaceCellRequest implements IRemoveKeyspaceCellRequest { + /** Represents a SetWritableResponse. */ + class SetWritableResponse implements ISetWritableResponse { /** - * Constructs a new RemoveKeyspaceCellRequest. + * Constructs a new SetWritableResponse. * @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; + constructor(properties?: vtctldata.ISetWritableResponse); /** - * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. + * Creates a new SetWritableResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveKeyspaceCellRequest instance + * @returns SetWritableResponse instance */ - public static create(properties?: vtctldata.IRemoveKeyspaceCellRequest): vtctldata.RemoveKeyspaceCellRequest; + public static create(properties?: vtctldata.ISetWritableResponse): vtctldata.SetWritableResponse; /** - * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. - * @param message RemoveKeyspaceCellRequest message or plain object to encode + * 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.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISetWritableResponse, 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 + * 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.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISetWritableResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. + * 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 RemoveKeyspaceCellRequest + * @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.RemoveKeyspaceCellRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetWritableResponse; /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. + * Decodes a SetWritableResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveKeyspaceCellRequest + * @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.RemoveKeyspaceCellRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetWritableResponse; /** - * Verifies a RemoveKeyspaceCellRequest message. + * 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 RemoveKeyspaceCellRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetWritableResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveKeyspaceCellRequest + * @returns SetWritableResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.SetWritableResponse; /** - * Creates a plain object from a RemoveKeyspaceCellRequest message. Also converts values to other types if specified. - * @param message RemoveKeyspaceCellRequest + * 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.RemoveKeyspaceCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SetWritableResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveKeyspaceCellRequest to JSON. + * Converts this SetWritableResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveKeyspaceCellRequest + * 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 RemoveKeyspaceCellResponse. */ - interface IRemoveKeyspaceCellResponse { + /** 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 RemoveKeyspaceCellResponse. */ - class RemoveKeyspaceCellResponse implements IRemoveKeyspaceCellResponse { + /** Represents a ShardReplicationAddRequest. */ + class ShardReplicationAddRequest implements IShardReplicationAddRequest { /** - * Constructs a new RemoveKeyspaceCellResponse. + * Constructs a new ShardReplicationAddRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveKeyspaceCellResponse); + 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 RemoveKeyspaceCellResponse instance using the specified properties. + * Creates a new ShardReplicationAddRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveKeyspaceCellResponse instance + * @returns ShardReplicationAddRequest instance */ - public static create(properties?: vtctldata.IRemoveKeyspaceCellResponse): vtctldata.RemoveKeyspaceCellResponse; + public static create(properties?: vtctldata.IShardReplicationAddRequest): vtctldata.ShardReplicationAddRequest; /** - * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. - * @param message RemoveKeyspaceCellResponse message or plain object to encode + * 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.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IShardReplicationAddRequest, 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 + * 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.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IShardReplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. + * 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 RemoveKeyspaceCellResponse + * @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.RemoveKeyspaceCellResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationAddRequest; /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationAddRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveKeyspaceCellResponse + * @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.RemoveKeyspaceCellResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationAddRequest; /** - * Verifies a RemoveKeyspaceCellResponse message. + * 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 RemoveKeyspaceCellResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveKeyspaceCellResponse + * @returns ShardReplicationAddRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationAddRequest; /** - * Creates a plain object from a RemoveKeyspaceCellResponse message. Also converts values to other types if specified. - * @param message RemoveKeyspaceCellResponse + * 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.RemoveKeyspaceCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ShardReplicationAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveKeyspaceCellResponse to JSON. + * Converts this ShardReplicationAddRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveKeyspaceCellResponse + * 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 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); + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** RemoveShardCellRequest recursive */ - recursive?: (boolean|null); + /** Properties of a ShardReplicationAddResponse. */ + interface IShardReplicationAddResponse { } - /** Represents a RemoveShardCellRequest. */ - class RemoveShardCellRequest implements IRemoveShardCellRequest { + /** Represents a ShardReplicationAddResponse. */ + class ShardReplicationAddResponse implements IShardReplicationAddResponse { /** - * Constructs a new RemoveShardCellRequest. + * Constructs a new ShardReplicationAddResponse. * @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; + constructor(properties?: vtctldata.IShardReplicationAddResponse); /** - * Creates a new RemoveShardCellRequest instance using the specified properties. + * Creates a new ShardReplicationAddResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveShardCellRequest instance + * @returns ShardReplicationAddResponse instance */ - public static create(properties?: vtctldata.IRemoveShardCellRequest): vtctldata.RemoveShardCellRequest; + public static create(properties?: vtctldata.IShardReplicationAddResponse): vtctldata.ShardReplicationAddResponse; /** - * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. - * @param message RemoveShardCellRequest message or plain object to encode + * 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.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IShardReplicationAddResponse, 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 + * 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.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IShardReplicationAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer. + * 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 RemoveShardCellRequest + * @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.RemoveShardCellRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationAddResponse; /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationAddResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveShardCellRequest + * @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.RemoveShardCellRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationAddResponse; /** - * Verifies a RemoveShardCellRequest message. + * 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 RemoveShardCellRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationAddResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveShardCellRequest + * @returns ShardReplicationAddResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationAddResponse; /** - * Creates a plain object from a RemoveShardCellRequest message. Also converts values to other types if specified. - * @param message RemoveShardCellRequest + * 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.RemoveShardCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ShardReplicationAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveShardCellRequest to JSON. + * Converts this ShardReplicationAddResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveShardCellRequest + * 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 RemoveShardCellResponse. */ - interface IRemoveShardCellResponse { + /** Properties of a ShardReplicationFixRequest. */ + interface IShardReplicationFixRequest { + + /** ShardReplicationFixRequest keyspace */ + keyspace?: (string|null); + + /** ShardReplicationFixRequest shard */ + shard?: (string|null); + + /** ShardReplicationFixRequest cell */ + cell?: (string|null); } - /** Represents a RemoveShardCellResponse. */ - class RemoveShardCellResponse implements IRemoveShardCellResponse { + /** Represents a ShardReplicationFixRequest. */ + class ShardReplicationFixRequest implements IShardReplicationFixRequest { /** - * Constructs a new RemoveShardCellResponse. + * Constructs a new ShardReplicationFixRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveShardCellResponse); + constructor(properties?: vtctldata.IShardReplicationFixRequest); + + /** ShardReplicationFixRequest keyspace. */ + public keyspace: string; + + /** ShardReplicationFixRequest shard. */ + public shard: string; + + /** ShardReplicationFixRequest cell. */ + public cell: string; /** - * Creates a new RemoveShardCellResponse instance using the specified properties. + * Creates a new ShardReplicationFixRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveShardCellResponse instance + * @returns ShardReplicationFixRequest instance */ - public static create(properties?: vtctldata.IRemoveShardCellResponse): vtctldata.RemoveShardCellResponse; + public static create(properties?: vtctldata.IShardReplicationFixRequest): vtctldata.ShardReplicationFixRequest; /** - * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. - * @param message RemoveShardCellResponse message or plain object to encode + * 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.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IShardReplicationFixRequest, 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 + * 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.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IShardReplicationFixRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer. + * 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 RemoveShardCellResponse + * @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.RemoveShardCellResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationFixRequest; /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationFixRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveShardCellResponse + * @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.RemoveShardCellResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationFixRequest; /** - * Verifies a RemoveShardCellResponse message. + * 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 RemoveShardCellResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationFixRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveShardCellResponse + * @returns ShardReplicationFixRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationFixRequest; /** - * Creates a plain object from a RemoveShardCellResponse message. Also converts values to other types if specified. - * @param message RemoveShardCellResponse + * 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.RemoveShardCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ShardReplicationFixRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveShardCellResponse to JSON. + * Converts this ShardReplicationFixRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveShardCellResponse + * 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 ReparentTabletRequest. */ - interface IReparentTabletRequest { + /** Properties of a ShardReplicationFixResponse. */ + interface IShardReplicationFixResponse { - /** ReparentTabletRequest tablet */ - tablet?: (topodata.ITabletAlias|null); + /** ShardReplicationFixResponse error */ + error?: (topodata.IShardReplicationError|null); } - /** Represents a ReparentTabletRequest. */ - class ReparentTabletRequest implements IReparentTabletRequest { + /** Represents a ShardReplicationFixResponse. */ + class ShardReplicationFixResponse implements IShardReplicationFixResponse { /** - * Constructs a new ReparentTabletRequest. + * Constructs a new ShardReplicationFixResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IReparentTabletRequest); + constructor(properties?: vtctldata.IShardReplicationFixResponse); - /** ReparentTabletRequest tablet. */ - public tablet?: (topodata.ITabletAlias|null); + /** ShardReplicationFixResponse error. */ + public error?: (topodata.IShardReplicationError|null); /** - * Creates a new ReparentTabletRequest instance using the specified properties. + * Creates a new ShardReplicationFixResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReparentTabletRequest instance + * @returns ShardReplicationFixResponse instance */ - public static create(properties?: vtctldata.IReparentTabletRequest): vtctldata.ReparentTabletRequest; + public static create(properties?: vtctldata.IShardReplicationFixResponse): vtctldata.ShardReplicationFixResponse; /** - * Encodes the specified ReparentTabletRequest message. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. - * @param message ReparentTabletRequest message or plain object to encode + * 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.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IShardReplicationFixResponse, 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 + * 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.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IShardReplicationFixResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReparentTabletRequest message from the specified reader or buffer. + * 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 ReparentTabletRequest + * @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.ReparentTabletRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationFixResponse; /** - * Decodes a ReparentTabletRequest message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationFixResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReparentTabletRequest + * @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.ReparentTabletRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationFixResponse; /** - * Verifies a ReparentTabletRequest message. + * 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 ReparentTabletRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationFixResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReparentTabletRequest + * @returns ShardReplicationFixResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationFixResponse; /** - * Creates a plain object from a ReparentTabletRequest message. Also converts values to other types if specified. - * @param message ReparentTabletRequest + * 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.ReparentTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ShardReplicationFixResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReparentTabletRequest to JSON. + * Converts this ShardReplicationFixResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReparentTabletRequest + * 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 ReparentTabletResponse. */ - interface IReparentTabletResponse { + /** Properties of a ShardReplicationPositionsRequest. */ + interface IShardReplicationPositionsRequest { - /** ReparentTabletResponse keyspace */ + /** ShardReplicationPositionsRequest keyspace */ keyspace?: (string|null); - /** ReparentTabletResponse shard */ + /** ShardReplicationPositionsRequest shard */ shard?: (string|null); - - /** ReparentTabletResponse primary */ - primary?: (topodata.ITabletAlias|null); } - /** Represents a ReparentTabletResponse. */ - class ReparentTabletResponse implements IReparentTabletResponse { + /** Represents a ShardReplicationPositionsRequest. */ + class ShardReplicationPositionsRequest implements IShardReplicationPositionsRequest { /** - * Constructs a new ReparentTabletResponse. + * Constructs a new ShardReplicationPositionsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IReparentTabletResponse); + constructor(properties?: vtctldata.IShardReplicationPositionsRequest); - /** ReparentTabletResponse keyspace. */ + /** ShardReplicationPositionsRequest keyspace. */ public keyspace: string; - /** ReparentTabletResponse shard. */ + /** ShardReplicationPositionsRequest shard. */ public shard: string; - /** ReparentTabletResponse primary. */ - public primary?: (topodata.ITabletAlias|null); - /** - * Creates a new ReparentTabletResponse instance using the specified properties. + * Creates a new ShardReplicationPositionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReparentTabletResponse instance + * @returns ShardReplicationPositionsRequest instance */ - public static create(properties?: vtctldata.IReparentTabletResponse): vtctldata.ReparentTabletResponse; + public static create(properties?: vtctldata.IShardReplicationPositionsRequest): vtctldata.ShardReplicationPositionsRequest; /** - * Encodes the specified ReparentTabletResponse message. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. - * @param message ReparentTabletResponse message or plain object to encode + * 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.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IShardReplicationPositionsRequest, 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 + * 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.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IShardReplicationPositionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReparentTabletResponse message from the specified reader or buffer. + * 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 ReparentTabletResponse + * @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.ReparentTabletResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationPositionsRequest; /** - * Decodes a ReparentTabletResponse message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReparentTabletResponse + * @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.ReparentTabletResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationPositionsRequest; /** - * Verifies a ReparentTabletResponse message. + * 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 ReparentTabletResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationPositionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReparentTabletResponse + * @returns ShardReplicationPositionsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationPositionsRequest; /** - * Creates a plain object from a ReparentTabletResponse message. Also converts values to other types if specified. - * @param message ReparentTabletResponse + * 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.ReparentTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ShardReplicationPositionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReparentTabletResponse to JSON. + * Converts this ShardReplicationPositionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReparentTabletResponse + * 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 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); + /** Properties of a ShardReplicationPositionsResponse. */ + interface IShardReplicationPositionsResponse { - /** ReshardCreateRequest auto_start */ - auto_start?: (boolean|null); + /** ShardReplicationPositionsResponse replication_statuses */ + replication_statuses?: ({ [k: string]: replicationdata.IStatus }|null); - /** ReshardCreateRequest workflow_options */ - workflow_options?: (vtctldata.IWorkflowOptions|null); + /** ShardReplicationPositionsResponse tablet_map */ + tablet_map?: ({ [k: string]: topodata.ITablet }|null); } - /** Represents a ReshardCreateRequest. */ - class ReshardCreateRequest implements IReshardCreateRequest { + /** Represents a ShardReplicationPositionsResponse. */ + class ShardReplicationPositionsResponse implements IShardReplicationPositionsResponse { /** - * Constructs a new ReshardCreateRequest. + * Constructs a new ShardReplicationPositionsResponse. * @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; + constructor(properties?: vtctldata.IShardReplicationPositionsResponse); - /** ReshardCreateRequest auto_start. */ - public auto_start: boolean; + /** ShardReplicationPositionsResponse replication_statuses. */ + public replication_statuses: { [k: string]: replicationdata.IStatus }; - /** ReshardCreateRequest workflow_options. */ - public workflow_options?: (vtctldata.IWorkflowOptions|null); + /** ShardReplicationPositionsResponse tablet_map. */ + public tablet_map: { [k: string]: topodata.ITablet }; /** - * Creates a new ReshardCreateRequest instance using the specified properties. + * Creates a new ShardReplicationPositionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReshardCreateRequest instance + * @returns ShardReplicationPositionsResponse instance */ - public static create(properties?: vtctldata.IReshardCreateRequest): vtctldata.ReshardCreateRequest; + public static create(properties?: vtctldata.IShardReplicationPositionsResponse): vtctldata.ShardReplicationPositionsResponse; /** - * Encodes the specified ReshardCreateRequest message. Does not implicitly {@link vtctldata.ReshardCreateRequest.verify|verify} messages. - * @param message ReshardCreateRequest message or plain object to encode + * 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.IReshardCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IShardReplicationPositionsResponse, 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 + * 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.IReshardCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IShardReplicationPositionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReshardCreateRequest message from the specified reader or buffer. + * 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 ReshardCreateRequest + * @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.ReshardCreateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationPositionsResponse; /** - * Decodes a ReshardCreateRequest message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReshardCreateRequest + * @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.ReshardCreateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationPositionsResponse; /** - * Verifies a ReshardCreateRequest message. + * 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 ReshardCreateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationPositionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReshardCreateRequest + * @returns ShardReplicationPositionsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReshardCreateRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationPositionsResponse; /** - * Creates a plain object from a ReshardCreateRequest message. Also converts values to other types if specified. - * @param message ReshardCreateRequest + * 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.ReshardCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ShardReplicationPositionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReshardCreateRequest to JSON. + * Converts this ShardReplicationPositionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReshardCreateRequest + * 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 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); + /** Properties of a ShardReplicationRemoveRequest. */ + interface IShardReplicationRemoveRequest { - /** RestoreFromBackupRequest dry_run */ - dry_run?: (boolean|null); + /** ShardReplicationRemoveRequest keyspace */ + keyspace?: (string|null); - /** RestoreFromBackupRequest restore_to_timestamp */ - restore_to_timestamp?: (vttime.ITime|null); + /** ShardReplicationRemoveRequest shard */ + shard?: (string|null); - /** RestoreFromBackupRequest allowed_backup_engines */ - allowed_backup_engines?: (string[]|null); + /** ShardReplicationRemoveRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); } - /** Represents a RestoreFromBackupRequest. */ - class RestoreFromBackupRequest implements IRestoreFromBackupRequest { + /** Represents a ShardReplicationRemoveRequest. */ + class ShardReplicationRemoveRequest implements IShardReplicationRemoveRequest { /** - * Constructs a new RestoreFromBackupRequest. + * Constructs a new ShardReplicationRemoveRequest. * @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; + constructor(properties?: vtctldata.IShardReplicationRemoveRequest); - /** RestoreFromBackupRequest dry_run. */ - public dry_run: boolean; + /** ShardReplicationRemoveRequest keyspace. */ + public keyspace: string; - /** RestoreFromBackupRequest restore_to_timestamp. */ - public restore_to_timestamp?: (vttime.ITime|null); + /** ShardReplicationRemoveRequest shard. */ + public shard: string; - /** RestoreFromBackupRequest allowed_backup_engines. */ - public allowed_backup_engines: string[]; + /** ShardReplicationRemoveRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); /** - * Creates a new RestoreFromBackupRequest instance using the specified properties. + * Creates a new ShardReplicationRemoveRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RestoreFromBackupRequest instance + * @returns ShardReplicationRemoveRequest instance */ - public static create(properties?: vtctldata.IRestoreFromBackupRequest): vtctldata.RestoreFromBackupRequest; + public static create(properties?: vtctldata.IShardReplicationRemoveRequest): vtctldata.ShardReplicationRemoveRequest; /** - * Encodes the specified RestoreFromBackupRequest message. Does not implicitly {@link vtctldata.RestoreFromBackupRequest.verify|verify} messages. - * @param message RestoreFromBackupRequest message or plain object to encode + * 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.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IShardReplicationRemoveRequest, 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 + * 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.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IShardReplicationRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RestoreFromBackupRequest message from the specified reader or buffer. + * 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 RestoreFromBackupRequest + * @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.RestoreFromBackupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationRemoveRequest; /** - * Decodes a RestoreFromBackupRequest message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RestoreFromBackupRequest + * @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.RestoreFromBackupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationRemoveRequest; /** - * Verifies a RestoreFromBackupRequest message. + * 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 RestoreFromBackupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationRemoveRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RestoreFromBackupRequest + * @returns ShardReplicationRemoveRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RestoreFromBackupRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationRemoveRequest; /** - * Creates a plain object from a RestoreFromBackupRequest message. Also converts values to other types if specified. - * @param message RestoreFromBackupRequest + * 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.RestoreFromBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ShardReplicationRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RestoreFromBackupRequest to JSON. + * Converts this ShardReplicationRemoveRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RestoreFromBackupRequest + * 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 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); + /** Properties of a ShardReplicationRemoveResponse. */ + interface IShardReplicationRemoveResponse { } - /** Represents a RestoreFromBackupResponse. */ - class RestoreFromBackupResponse implements IRestoreFromBackupResponse { + /** Represents a ShardReplicationRemoveResponse. */ + class ShardReplicationRemoveResponse implements IShardReplicationRemoveResponse { /** - * Constructs a new RestoreFromBackupResponse. + * Constructs a new ShardReplicationRemoveResponse. * @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); + constructor(properties?: vtctldata.IShardReplicationRemoveResponse); /** - * Creates a new RestoreFromBackupResponse instance using the specified properties. + * Creates a new ShardReplicationRemoveResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RestoreFromBackupResponse instance + * @returns ShardReplicationRemoveResponse instance */ - public static create(properties?: vtctldata.IRestoreFromBackupResponse): vtctldata.RestoreFromBackupResponse; + public static create(properties?: vtctldata.IShardReplicationRemoveResponse): vtctldata.ShardReplicationRemoveResponse; /** - * Encodes the specified RestoreFromBackupResponse message. Does not implicitly {@link vtctldata.RestoreFromBackupResponse.verify|verify} messages. - * @param message RestoreFromBackupResponse message or plain object to encode + * 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.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IShardReplicationRemoveResponse, 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 + * 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.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IShardReplicationRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RestoreFromBackupResponse message from the specified reader or buffer. + * 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 RestoreFromBackupResponse + * @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.RestoreFromBackupResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationRemoveResponse; /** - * Decodes a RestoreFromBackupResponse message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RestoreFromBackupResponse + * @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.RestoreFromBackupResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationRemoveResponse; /** - * Verifies a RestoreFromBackupResponse message. + * 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 RestoreFromBackupResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationRemoveResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RestoreFromBackupResponse + * @returns ShardReplicationRemoveResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.RestoreFromBackupResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationRemoveResponse; /** - * Creates a plain object from a RestoreFromBackupResponse message. Also converts values to other types if specified. - * @param message RestoreFromBackupResponse + * 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.RestoreFromBackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ShardReplicationRemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RestoreFromBackupResponse to JSON. + * Converts this ShardReplicationRemoveResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RestoreFromBackupResponse + * 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 RetrySchemaMigrationRequest. */ - interface IRetrySchemaMigrationRequest { - - /** RetrySchemaMigrationRequest keyspace */ - keyspace?: (string|null); + /** Properties of a SleepTabletRequest. */ + interface ISleepTabletRequest { - /** RetrySchemaMigrationRequest uuid */ - uuid?: (string|null); + /** SleepTabletRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); - /** RetrySchemaMigrationRequest caller_id */ - caller_id?: (vtrpc.ICallerID|null); + /** SleepTabletRequest duration */ + duration?: (vttime.IDuration|null); } - /** Represents a RetrySchemaMigrationRequest. */ - class RetrySchemaMigrationRequest implements IRetrySchemaMigrationRequest { + /** Represents a SleepTabletRequest. */ + class SleepTabletRequest implements ISleepTabletRequest { /** - * Constructs a new RetrySchemaMigrationRequest. + * Constructs a new SleepTabletRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRetrySchemaMigrationRequest); - - /** RetrySchemaMigrationRequest keyspace. */ - public keyspace: string; + constructor(properties?: vtctldata.ISleepTabletRequest); - /** RetrySchemaMigrationRequest uuid. */ - public uuid: string; + /** SleepTabletRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); - /** RetrySchemaMigrationRequest caller_id. */ - public caller_id?: (vtrpc.ICallerID|null); + /** SleepTabletRequest duration. */ + public duration?: (vttime.IDuration|null); /** - * Creates a new RetrySchemaMigrationRequest instance using the specified properties. + * Creates a new SleepTabletRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RetrySchemaMigrationRequest instance + * @returns SleepTabletRequest instance */ - public static create(properties?: vtctldata.IRetrySchemaMigrationRequest): vtctldata.RetrySchemaMigrationRequest; + public static create(properties?: vtctldata.ISleepTabletRequest): vtctldata.SleepTabletRequest; /** - * Encodes the specified RetrySchemaMigrationRequest message. Does not implicitly {@link vtctldata.RetrySchemaMigrationRequest.verify|verify} messages. - * @param message RetrySchemaMigrationRequest message or plain object to encode + * 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.IRetrySchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISleepTabletRequest, 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 + * 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.IRetrySchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISleepTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer. + * 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 RetrySchemaMigrationRequest + * @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.RetrySchemaMigrationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SleepTabletRequest; /** - * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer, length delimited. + * Decodes a SleepTabletRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RetrySchemaMigrationRequest + * @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.RetrySchemaMigrationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SleepTabletRequest; /** - * Verifies a RetrySchemaMigrationRequest message. + * 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 RetrySchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SleepTabletRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RetrySchemaMigrationRequest + * @returns SleepTabletRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RetrySchemaMigrationRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.SleepTabletRequest; /** - * Creates a plain object from a RetrySchemaMigrationRequest message. Also converts values to other types if specified. - * @param message RetrySchemaMigrationRequest + * 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.RetrySchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SleepTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RetrySchemaMigrationRequest to JSON. + * Converts this SleepTabletRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RetrySchemaMigrationRequest + * 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 RetrySchemaMigrationResponse. */ - interface IRetrySchemaMigrationResponse { - - /** RetrySchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + /** Properties of a SleepTabletResponse. */ + interface ISleepTabletResponse { } - /** Represents a RetrySchemaMigrationResponse. */ - class RetrySchemaMigrationResponse implements IRetrySchemaMigrationResponse { + /** Represents a SleepTabletResponse. */ + class SleepTabletResponse implements ISleepTabletResponse { /** - * Constructs a new RetrySchemaMigrationResponse. + * Constructs a new SleepTabletResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRetrySchemaMigrationResponse); - - /** RetrySchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; + constructor(properties?: vtctldata.ISleepTabletResponse); /** - * Creates a new RetrySchemaMigrationResponse instance using the specified properties. + * Creates a new SleepTabletResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RetrySchemaMigrationResponse instance + * @returns SleepTabletResponse instance */ - public static create(properties?: vtctldata.IRetrySchemaMigrationResponse): vtctldata.RetrySchemaMigrationResponse; + public static create(properties?: vtctldata.ISleepTabletResponse): vtctldata.SleepTabletResponse; /** - * Encodes the specified RetrySchemaMigrationResponse message. Does not implicitly {@link vtctldata.RetrySchemaMigrationResponse.verify|verify} messages. - * @param message RetrySchemaMigrationResponse message or plain object to encode + * 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.IRetrySchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISleepTabletResponse, 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 + * 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.IRetrySchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISleepTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer. + * 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 RetrySchemaMigrationResponse + * @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.RetrySchemaMigrationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SleepTabletResponse; /** - * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer, length delimited. + * Decodes a SleepTabletResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RetrySchemaMigrationResponse + * @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.RetrySchemaMigrationResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SleepTabletResponse; /** - * Verifies a RetrySchemaMigrationResponse message. + * 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 RetrySchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SleepTabletResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RetrySchemaMigrationResponse + * @returns SleepTabletResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.RetrySchemaMigrationResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.SleepTabletResponse; /** - * Creates a plain object from a RetrySchemaMigrationResponse message. Also converts values to other types if specified. - * @param message RetrySchemaMigrationResponse + * 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.RetrySchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SleepTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RetrySchemaMigrationResponse to JSON. + * Converts this SleepTabletResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RetrySchemaMigrationResponse + * 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 RunHealthCheckRequest. */ - interface IRunHealthCheckRequest { + /** Properties of a SourceShardAddRequest. */ + interface ISourceShardAddRequest { - /** RunHealthCheckRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** 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 RunHealthCheckRequest. */ - class RunHealthCheckRequest implements IRunHealthCheckRequest { + /** Represents a SourceShardAddRequest. */ + class SourceShardAddRequest implements ISourceShardAddRequest { /** - * Constructs a new RunHealthCheckRequest. + * Constructs a new SourceShardAddRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRunHealthCheckRequest); + constructor(properties?: vtctldata.ISourceShardAddRequest); - /** RunHealthCheckRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** 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 RunHealthCheckRequest instance using the specified properties. + * Creates a new SourceShardAddRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RunHealthCheckRequest instance + * @returns SourceShardAddRequest instance */ - public static create(properties?: vtctldata.IRunHealthCheckRequest): vtctldata.RunHealthCheckRequest; + public static create(properties?: vtctldata.ISourceShardAddRequest): vtctldata.SourceShardAddRequest; /** - * Encodes the specified RunHealthCheckRequest message. Does not implicitly {@link vtctldata.RunHealthCheckRequest.verify|verify} messages. - * @param message RunHealthCheckRequest message or plain object to encode + * 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.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISourceShardAddRequest, 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 + * 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.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISourceShardAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunHealthCheckRequest message from the specified reader or buffer. + * 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 RunHealthCheckRequest + * @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.RunHealthCheckRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardAddRequest; /** - * Decodes a RunHealthCheckRequest message from the specified reader or buffer, length delimited. + * Decodes a SourceShardAddRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunHealthCheckRequest + * @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.RunHealthCheckRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardAddRequest; /** - * Verifies a RunHealthCheckRequest message. + * 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 RunHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SourceShardAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunHealthCheckRequest + * @returns SourceShardAddRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RunHealthCheckRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardAddRequest; /** - * Creates a plain object from a RunHealthCheckRequest message. Also converts values to other types if specified. - * @param message RunHealthCheckRequest + * 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.RunHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SourceShardAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunHealthCheckRequest to JSON. + * Converts this SourceShardAddRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RunHealthCheckRequest + * 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 RunHealthCheckResponse. */ - interface IRunHealthCheckResponse { + /** Properties of a SourceShardAddResponse. */ + interface ISourceShardAddResponse { + + /** SourceShardAddResponse shard */ + shard?: (topodata.IShard|null); } - /** Represents a RunHealthCheckResponse. */ - class RunHealthCheckResponse implements IRunHealthCheckResponse { + /** Represents a SourceShardAddResponse. */ + class SourceShardAddResponse implements ISourceShardAddResponse { /** - * Constructs a new RunHealthCheckResponse. + * Constructs a new SourceShardAddResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRunHealthCheckResponse); + constructor(properties?: vtctldata.ISourceShardAddResponse); + + /** SourceShardAddResponse shard. */ + public shard?: (topodata.IShard|null); /** - * Creates a new RunHealthCheckResponse instance using the specified properties. + * Creates a new SourceShardAddResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RunHealthCheckResponse instance + * @returns SourceShardAddResponse instance */ - public static create(properties?: vtctldata.IRunHealthCheckResponse): vtctldata.RunHealthCheckResponse; + public static create(properties?: vtctldata.ISourceShardAddResponse): vtctldata.SourceShardAddResponse; /** - * Encodes the specified RunHealthCheckResponse message. Does not implicitly {@link vtctldata.RunHealthCheckResponse.verify|verify} messages. - * @param message RunHealthCheckResponse message or plain object to encode + * 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.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISourceShardAddResponse, 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 + * 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.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISourceShardAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunHealthCheckResponse message from the specified reader or buffer. + * 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 RunHealthCheckResponse + * @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.RunHealthCheckResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardAddResponse; /** - * Decodes a RunHealthCheckResponse message from the specified reader or buffer, length delimited. + * Decodes a SourceShardAddResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunHealthCheckResponse + * @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.RunHealthCheckResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardAddResponse; /** - * Verifies a RunHealthCheckResponse message. + * 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 RunHealthCheckResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SourceShardAddResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunHealthCheckResponse + * @returns SourceShardAddResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.RunHealthCheckResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardAddResponse; /** - * Creates a plain object from a RunHealthCheckResponse message. Also converts values to other types if specified. - * @param message RunHealthCheckResponse + * 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.RunHealthCheckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SourceShardAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunHealthCheckResponse to JSON. + * Converts this SourceShardAddResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RunHealthCheckResponse + * 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 SetKeyspaceDurabilityPolicyRequest. */ - interface ISetKeyspaceDurabilityPolicyRequest { + /** Properties of a SourceShardDeleteRequest. */ + interface ISourceShardDeleteRequest { - /** SetKeyspaceDurabilityPolicyRequest keyspace */ + /** SourceShardDeleteRequest keyspace */ keyspace?: (string|null); - /** SetKeyspaceDurabilityPolicyRequest durability_policy */ - durability_policy?: (string|null); + /** SourceShardDeleteRequest shard */ + shard?: (string|null); + + /** SourceShardDeleteRequest uid */ + uid?: (number|null); } - /** Represents a SetKeyspaceDurabilityPolicyRequest. */ - class SetKeyspaceDurabilityPolicyRequest implements ISetKeyspaceDurabilityPolicyRequest { + /** Represents a SourceShardDeleteRequest. */ + class SourceShardDeleteRequest implements ISourceShardDeleteRequest { /** - * Constructs a new SetKeyspaceDurabilityPolicyRequest. + * Constructs a new SourceShardDeleteRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISetKeyspaceDurabilityPolicyRequest); + constructor(properties?: vtctldata.ISourceShardDeleteRequest); - /** SetKeyspaceDurabilityPolicyRequest keyspace. */ + /** SourceShardDeleteRequest keyspace. */ public keyspace: string; - /** SetKeyspaceDurabilityPolicyRequest durability_policy. */ - public durability_policy: string; + /** SourceShardDeleteRequest shard. */ + public shard: string; + + /** SourceShardDeleteRequest uid. */ + public uid: number; /** - * Creates a new SetKeyspaceDurabilityPolicyRequest instance using the specified properties. + * Creates a new SourceShardDeleteRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SetKeyspaceDurabilityPolicyRequest instance + * @returns SourceShardDeleteRequest instance */ - public static create(properties?: vtctldata.ISetKeyspaceDurabilityPolicyRequest): vtctldata.SetKeyspaceDurabilityPolicyRequest; + public static create(properties?: vtctldata.ISourceShardDeleteRequest): vtctldata.SourceShardDeleteRequest; /** - * Encodes the specified SetKeyspaceDurabilityPolicyRequest message. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyRequest.verify|verify} messages. - * @param message SetKeyspaceDurabilityPolicyRequest message or plain object to encode + * 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.ISetKeyspaceDurabilityPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISourceShardDeleteRequest, 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 + * 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.ISetKeyspaceDurabilityPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISourceShardDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer. + * 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 SetKeyspaceDurabilityPolicyRequest + * @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.SetKeyspaceDurabilityPolicyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardDeleteRequest; /** - * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a SourceShardDeleteRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetKeyspaceDurabilityPolicyRequest + * @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.SetKeyspaceDurabilityPolicyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardDeleteRequest; /** - * Verifies a SetKeyspaceDurabilityPolicyRequest message. + * 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 SetKeyspaceDurabilityPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SourceShardDeleteRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetKeyspaceDurabilityPolicyRequest + * @returns SourceShardDeleteRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceDurabilityPolicyRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardDeleteRequest; /** - * Creates a plain object from a SetKeyspaceDurabilityPolicyRequest message. Also converts values to other types if specified. - * @param message SetKeyspaceDurabilityPolicyRequest + * 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.SetKeyspaceDurabilityPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SourceShardDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetKeyspaceDurabilityPolicyRequest to JSON. + * Converts this SourceShardDeleteRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetKeyspaceDurabilityPolicyRequest + * 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 SetKeyspaceDurabilityPolicyResponse. */ - interface ISetKeyspaceDurabilityPolicyResponse { + /** Properties of a SourceShardDeleteResponse. */ + interface ISourceShardDeleteResponse { - /** SetKeyspaceDurabilityPolicyResponse keyspace */ - keyspace?: (topodata.IKeyspace|null); + /** SourceShardDeleteResponse shard */ + shard?: (topodata.IShard|null); } - /** Represents a SetKeyspaceDurabilityPolicyResponse. */ - class SetKeyspaceDurabilityPolicyResponse implements ISetKeyspaceDurabilityPolicyResponse { + /** Represents a SourceShardDeleteResponse. */ + class SourceShardDeleteResponse implements ISourceShardDeleteResponse { /** - * Constructs a new SetKeyspaceDurabilityPolicyResponse. + * Constructs a new SourceShardDeleteResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISetKeyspaceDurabilityPolicyResponse); + constructor(properties?: vtctldata.ISourceShardDeleteResponse); - /** SetKeyspaceDurabilityPolicyResponse keyspace. */ - public keyspace?: (topodata.IKeyspace|null); + /** SourceShardDeleteResponse shard. */ + public shard?: (topodata.IShard|null); /** - * Creates a new SetKeyspaceDurabilityPolicyResponse instance using the specified properties. + * Creates a new SourceShardDeleteResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SetKeyspaceDurabilityPolicyResponse instance + * @returns SourceShardDeleteResponse instance */ - public static create(properties?: vtctldata.ISetKeyspaceDurabilityPolicyResponse): vtctldata.SetKeyspaceDurabilityPolicyResponse; + public static create(properties?: vtctldata.ISourceShardDeleteResponse): vtctldata.SourceShardDeleteResponse; /** - * Encodes the specified SetKeyspaceDurabilityPolicyResponse message. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyResponse.verify|verify} messages. - * @param message SetKeyspaceDurabilityPolicyResponse message or plain object to encode + * 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.ISetKeyspaceDurabilityPolicyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ISourceShardDeleteResponse, 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 + * 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.ISetKeyspaceDurabilityPolicyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ISourceShardDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer. + * 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 SetKeyspaceDurabilityPolicyResponse + * @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.SetKeyspaceDurabilityPolicyResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardDeleteResponse; /** - * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer, length delimited. + * Decodes a SourceShardDeleteResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetKeyspaceDurabilityPolicyResponse + * @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.SetKeyspaceDurabilityPolicyResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardDeleteResponse; /** - * Verifies a SetKeyspaceDurabilityPolicyResponse message. + * 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 SetKeyspaceDurabilityPolicyResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SourceShardDeleteResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetKeyspaceDurabilityPolicyResponse + * @returns SourceShardDeleteResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceDurabilityPolicyResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardDeleteResponse; /** - * Creates a plain object from a SetKeyspaceDurabilityPolicyResponse message. Also converts values to other types if specified. - * @param message SetKeyspaceDurabilityPolicyResponse + * 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.SetKeyspaceDurabilityPolicyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.SourceShardDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetKeyspaceDurabilityPolicyResponse to JSON. + * Converts this SourceShardDeleteResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetKeyspaceDurabilityPolicyResponse + * 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 SetKeyspaceShardingInfoRequest. */ - interface ISetKeyspaceShardingInfoRequest { - - /** SetKeyspaceShardingInfoRequest keyspace */ - keyspace?: (string|null); + /** Properties of a StartReplicationRequest. */ + interface IStartReplicationRequest { - /** SetKeyspaceShardingInfoRequest force */ - force?: (boolean|null); + /** StartReplicationRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); } - /** Represents a SetKeyspaceShardingInfoRequest. */ - class SetKeyspaceShardingInfoRequest implements ISetKeyspaceShardingInfoRequest { + /** Represents a StartReplicationRequest. */ + class StartReplicationRequest implements IStartReplicationRequest { /** - * Constructs a new SetKeyspaceShardingInfoRequest. + * Constructs a new StartReplicationRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISetKeyspaceShardingInfoRequest); - - /** SetKeyspaceShardingInfoRequest keyspace. */ - public keyspace: string; + constructor(properties?: vtctldata.IStartReplicationRequest); - /** SetKeyspaceShardingInfoRequest force. */ - public force: boolean; + /** StartReplicationRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); /** - * Creates a new SetKeyspaceShardingInfoRequest instance using the specified properties. + * Creates a new StartReplicationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SetKeyspaceShardingInfoRequest instance + * @returns StartReplicationRequest instance */ - public static create(properties?: vtctldata.ISetKeyspaceShardingInfoRequest): vtctldata.SetKeyspaceShardingInfoRequest; + public static create(properties?: vtctldata.IStartReplicationRequest): vtctldata.StartReplicationRequest; /** - * Encodes the specified SetKeyspaceShardingInfoRequest message. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoRequest.verify|verify} messages. - * @param message SetKeyspaceShardingInfoRequest message or plain object to encode + * 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.ISetKeyspaceShardingInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IStartReplicationRequest, 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 + * 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.ISetKeyspaceShardingInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer. + * 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 SetKeyspaceShardingInfoRequest + * @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.SetKeyspaceShardingInfoRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StartReplicationRequest; /** - * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a StartReplicationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetKeyspaceShardingInfoRequest + * @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.SetKeyspaceShardingInfoRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StartReplicationRequest; /** - * Verifies a SetKeyspaceShardingInfoRequest message. + * 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 SetKeyspaceShardingInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartReplicationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetKeyspaceShardingInfoRequest + * @returns StartReplicationRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceShardingInfoRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.StartReplicationRequest; /** - * Creates a plain object from a SetKeyspaceShardingInfoRequest message. Also converts values to other types if specified. - * @param message SetKeyspaceShardingInfoRequest + * 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.SetKeyspaceShardingInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.StartReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetKeyspaceShardingInfoRequest to JSON. + * Converts this StartReplicationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetKeyspaceShardingInfoRequest + * 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 SetKeyspaceShardingInfoResponse. */ - interface ISetKeyspaceShardingInfoResponse { - - /** SetKeyspaceShardingInfoResponse keyspace */ - keyspace?: (topodata.IKeyspace|null); + /** Properties of a StartReplicationResponse. */ + interface IStartReplicationResponse { } - /** Represents a SetKeyspaceShardingInfoResponse. */ - class SetKeyspaceShardingInfoResponse implements ISetKeyspaceShardingInfoResponse { + /** Represents a StartReplicationResponse. */ + class StartReplicationResponse implements IStartReplicationResponse { /** - * Constructs a new SetKeyspaceShardingInfoResponse. + * Constructs a new StartReplicationResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISetKeyspaceShardingInfoResponse); - - /** SetKeyspaceShardingInfoResponse keyspace. */ - public keyspace?: (topodata.IKeyspace|null); + constructor(properties?: vtctldata.IStartReplicationResponse); /** - * Creates a new SetKeyspaceShardingInfoResponse instance using the specified properties. + * Creates a new StartReplicationResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SetKeyspaceShardingInfoResponse instance + * @returns StartReplicationResponse instance */ - public static create(properties?: vtctldata.ISetKeyspaceShardingInfoResponse): vtctldata.SetKeyspaceShardingInfoResponse; + public static create(properties?: vtctldata.IStartReplicationResponse): vtctldata.StartReplicationResponse; /** - * Encodes the specified SetKeyspaceShardingInfoResponse message. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoResponse.verify|verify} messages. - * @param message SetKeyspaceShardingInfoResponse message or plain object to encode + * 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.ISetKeyspaceShardingInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IStartReplicationResponse, 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 + * 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.ISetKeyspaceShardingInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer. + * 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 SetKeyspaceShardingInfoResponse + * @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.SetKeyspaceShardingInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StartReplicationResponse; /** - * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a StartReplicationResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetKeyspaceShardingInfoResponse + * @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.SetKeyspaceShardingInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StartReplicationResponse; /** - * Verifies a SetKeyspaceShardingInfoResponse message. + * 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 SetKeyspaceShardingInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StartReplicationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetKeyspaceShardingInfoResponse + * @returns StartReplicationResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceShardingInfoResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.StartReplicationResponse; /** - * Creates a plain object from a SetKeyspaceShardingInfoResponse message. Also converts values to other types if specified. - * @param message SetKeyspaceShardingInfoResponse + * 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.SetKeyspaceShardingInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.StartReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetKeyspaceShardingInfoResponse to JSON. + * Converts this StartReplicationResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetKeyspaceShardingInfoResponse + * 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 SetShardIsPrimaryServingRequest. */ - interface ISetShardIsPrimaryServingRequest { - - /** SetShardIsPrimaryServingRequest keyspace */ - keyspace?: (string|null); - - /** SetShardIsPrimaryServingRequest shard */ - shard?: (string|null); + /** Properties of a StopReplicationRequest. */ + interface IStopReplicationRequest { - /** SetShardIsPrimaryServingRequest is_serving */ - is_serving?: (boolean|null); + /** StopReplicationRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); } - /** Represents a SetShardIsPrimaryServingRequest. */ - class SetShardIsPrimaryServingRequest implements ISetShardIsPrimaryServingRequest { + /** Represents a StopReplicationRequest. */ + class StopReplicationRequest implements IStopReplicationRequest { /** - * Constructs a new SetShardIsPrimaryServingRequest. + * Constructs a new StopReplicationRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISetShardIsPrimaryServingRequest); - - /** SetShardIsPrimaryServingRequest keyspace. */ - public keyspace: string; - - /** SetShardIsPrimaryServingRequest shard. */ - public shard: string; + constructor(properties?: vtctldata.IStopReplicationRequest); - /** SetShardIsPrimaryServingRequest is_serving. */ - public is_serving: boolean; + /** StopReplicationRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); /** - * Creates a new SetShardIsPrimaryServingRequest instance using the specified properties. + * Creates a new StopReplicationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SetShardIsPrimaryServingRequest instance + * @returns StopReplicationRequest instance */ - public static create(properties?: vtctldata.ISetShardIsPrimaryServingRequest): vtctldata.SetShardIsPrimaryServingRequest; + public static create(properties?: vtctldata.IStopReplicationRequest): vtctldata.StopReplicationRequest; /** - * Encodes the specified SetShardIsPrimaryServingRequest message. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingRequest.verify|verify} messages. - * @param message SetShardIsPrimaryServingRequest message or plain object to encode + * 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.ISetShardIsPrimaryServingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IStopReplicationRequest, 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 + * 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.ISetShardIsPrimaryServingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer. + * 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 SetShardIsPrimaryServingRequest + * @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.SetShardIsPrimaryServingRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StopReplicationRequest; /** - * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetShardIsPrimaryServingRequest + * @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.SetShardIsPrimaryServingRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StopReplicationRequest; /** - * Verifies a SetShardIsPrimaryServingRequest message. + * 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 SetShardIsPrimaryServingRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetShardIsPrimaryServingRequest + * @returns StopReplicationRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetShardIsPrimaryServingRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.StopReplicationRequest; /** - * Creates a plain object from a SetShardIsPrimaryServingRequest message. Also converts values to other types if specified. - * @param message SetShardIsPrimaryServingRequest + * 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.SetShardIsPrimaryServingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.StopReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetShardIsPrimaryServingRequest to JSON. + * Converts this StopReplicationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetShardIsPrimaryServingRequest + * 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 SetShardIsPrimaryServingResponse. */ - interface ISetShardIsPrimaryServingResponse { - - /** SetShardIsPrimaryServingResponse shard */ - shard?: (topodata.IShard|null); + /** Properties of a StopReplicationResponse. */ + interface IStopReplicationResponse { } - /** Represents a SetShardIsPrimaryServingResponse. */ - class SetShardIsPrimaryServingResponse implements ISetShardIsPrimaryServingResponse { + /** Represents a StopReplicationResponse. */ + class StopReplicationResponse implements IStopReplicationResponse { /** - * Constructs a new SetShardIsPrimaryServingResponse. + * Constructs a new StopReplicationResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISetShardIsPrimaryServingResponse); - - /** SetShardIsPrimaryServingResponse shard. */ - public shard?: (topodata.IShard|null); + constructor(properties?: vtctldata.IStopReplicationResponse); /** - * Creates a new SetShardIsPrimaryServingResponse instance using the specified properties. + * Creates a new StopReplicationResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SetShardIsPrimaryServingResponse instance + * @returns StopReplicationResponse instance */ - public static create(properties?: vtctldata.ISetShardIsPrimaryServingResponse): vtctldata.SetShardIsPrimaryServingResponse; + public static create(properties?: vtctldata.IStopReplicationResponse): vtctldata.StopReplicationResponse; /** - * Encodes the specified SetShardIsPrimaryServingResponse message. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingResponse.verify|verify} messages. - * @param message SetShardIsPrimaryServingResponse message or plain object to encode + * 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.ISetShardIsPrimaryServingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IStopReplicationResponse, 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 + * 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.ISetShardIsPrimaryServingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer. + * 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 SetShardIsPrimaryServingResponse + * @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.SetShardIsPrimaryServingResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StopReplicationResponse; /** - * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetShardIsPrimaryServingResponse + * @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.SetShardIsPrimaryServingResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StopReplicationResponse; /** - * Verifies a SetShardIsPrimaryServingResponse message. + * 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 SetShardIsPrimaryServingResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetShardIsPrimaryServingResponse + * @returns StopReplicationResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetShardIsPrimaryServingResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.StopReplicationResponse; /** - * Creates a plain object from a SetShardIsPrimaryServingResponse message. Also converts values to other types if specified. - * @param message SetShardIsPrimaryServingResponse + * 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.SetShardIsPrimaryServingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.StopReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetShardIsPrimaryServingResponse to JSON. + * Converts this StopReplicationResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetShardIsPrimaryServingResponse + * 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 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); + /** Properties of a TabletExternallyReparentedRequest. */ + interface ITabletExternallyReparentedRequest { - /** SetShardTabletControlRequest remove */ - remove?: (boolean|null); + /** TabletExternallyReparentedRequest tablet */ + tablet?: (topodata.ITabletAlias|null); } - /** Represents a SetShardTabletControlRequest. */ - class SetShardTabletControlRequest implements ISetShardTabletControlRequest { + /** Represents a TabletExternallyReparentedRequest. */ + class TabletExternallyReparentedRequest implements ITabletExternallyReparentedRequest { /** - * Constructs a new SetShardTabletControlRequest. + * Constructs a new TabletExternallyReparentedRequest. * @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; + constructor(properties?: vtctldata.ITabletExternallyReparentedRequest); - /** SetShardTabletControlRequest remove. */ - public remove: boolean; + /** TabletExternallyReparentedRequest tablet. */ + public tablet?: (topodata.ITabletAlias|null); /** - * Creates a new SetShardTabletControlRequest instance using the specified properties. + * Creates a new TabletExternallyReparentedRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SetShardTabletControlRequest instance + * @returns TabletExternallyReparentedRequest instance */ - public static create(properties?: vtctldata.ISetShardTabletControlRequest): vtctldata.SetShardTabletControlRequest; + public static create(properties?: vtctldata.ITabletExternallyReparentedRequest): vtctldata.TabletExternallyReparentedRequest; /** - * Encodes the specified SetShardTabletControlRequest message. Does not implicitly {@link vtctldata.SetShardTabletControlRequest.verify|verify} messages. - * @param message SetShardTabletControlRequest message or plain object to encode + * 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.ISetShardTabletControlRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ITabletExternallyReparentedRequest, 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 + * 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.ISetShardTabletControlRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetShardTabletControlRequest message from the specified reader or buffer. + * 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 SetShardTabletControlRequest + * @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.SetShardTabletControlRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedRequest; /** - * Decodes a SetShardTabletControlRequest message from the specified reader or buffer, length delimited. + * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetShardTabletControlRequest + * @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.SetShardTabletControlRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedRequest; /** - * Verifies a SetShardTabletControlRequest message. + * 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 SetShardTabletControlRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TabletExternallyReparentedRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetShardTabletControlRequest + * @returns TabletExternallyReparentedRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetShardTabletControlRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedRequest; /** - * Creates a plain object from a SetShardTabletControlRequest message. Also converts values to other types if specified. - * @param message SetShardTabletControlRequest + * 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.SetShardTabletControlRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.TabletExternallyReparentedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetShardTabletControlRequest to JSON. + * Converts this TabletExternallyReparentedRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetShardTabletControlRequest + * 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 SetShardTabletControlResponse. */ - interface ISetShardTabletControlResponse { + /** Properties of a TabletExternallyReparentedResponse. */ + interface ITabletExternallyReparentedResponse { - /** SetShardTabletControlResponse shard */ - shard?: (topodata.IShard|null); + /** 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 SetShardTabletControlResponse. */ - class SetShardTabletControlResponse implements ISetShardTabletControlResponse { + /** Represents a TabletExternallyReparentedResponse. */ + class TabletExternallyReparentedResponse implements ITabletExternallyReparentedResponse { /** - * Constructs a new SetShardTabletControlResponse. + * Constructs a new TabletExternallyReparentedResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISetShardTabletControlResponse); + constructor(properties?: vtctldata.ITabletExternallyReparentedResponse); - /** SetShardTabletControlResponse shard. */ - public shard?: (topodata.IShard|null); + /** 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 SetShardTabletControlResponse instance using the specified properties. + * Creates a new TabletExternallyReparentedResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SetShardTabletControlResponse instance + * @returns TabletExternallyReparentedResponse instance */ - public static create(properties?: vtctldata.ISetShardTabletControlResponse): vtctldata.SetShardTabletControlResponse; + public static create(properties?: vtctldata.ITabletExternallyReparentedResponse): vtctldata.TabletExternallyReparentedResponse; /** - * Encodes the specified SetShardTabletControlResponse message. Does not implicitly {@link vtctldata.SetShardTabletControlResponse.verify|verify} messages. - * @param message SetShardTabletControlResponse message or plain object to encode + * 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.ISetShardTabletControlResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ITabletExternallyReparentedResponse, 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 + * 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.ISetShardTabletControlResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetShardTabletControlResponse message from the specified reader or buffer. + * 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 SetShardTabletControlResponse + * @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.SetShardTabletControlResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedResponse; /** - * Decodes a SetShardTabletControlResponse message from the specified reader or buffer, length delimited. + * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetShardTabletControlResponse + * @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.SetShardTabletControlResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedResponse; /** - * Verifies a SetShardTabletControlResponse message. + * 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 SetShardTabletControlResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TabletExternallyReparentedResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetShardTabletControlResponse + * @returns TabletExternallyReparentedResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetShardTabletControlResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedResponse; /** - * Creates a plain object from a SetShardTabletControlResponse message. Also converts values to other types if specified. - * @param message SetShardTabletControlResponse + * 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.SetShardTabletControlResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.TabletExternallyReparentedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetShardTabletControlResponse to JSON. + * Converts this TabletExternallyReparentedResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetShardTabletControlResponse + * 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 a SetWritableRequest. */ - interface ISetWritableRequest { + /** Properties of an UpdateCellInfoRequest. */ + interface IUpdateCellInfoRequest { - /** SetWritableRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** UpdateCellInfoRequest name */ + name?: (string|null); - /** SetWritableRequest writable */ - writable?: (boolean|null); + /** UpdateCellInfoRequest cell_info */ + cell_info?: (topodata.ICellInfo|null); } - /** Represents a SetWritableRequest. */ - class SetWritableRequest implements ISetWritableRequest { + /** Represents an UpdateCellInfoRequest. */ + class UpdateCellInfoRequest implements IUpdateCellInfoRequest { /** - * Constructs a new SetWritableRequest. + * Constructs a new UpdateCellInfoRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISetWritableRequest); + constructor(properties?: vtctldata.IUpdateCellInfoRequest); - /** SetWritableRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** UpdateCellInfoRequest name. */ + public name: string; - /** SetWritableRequest writable. */ - public writable: boolean; + /** UpdateCellInfoRequest cell_info. */ + public cell_info?: (topodata.ICellInfo|null); /** - * Creates a new SetWritableRequest instance using the specified properties. + * Creates a new UpdateCellInfoRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SetWritableRequest instance + * @returns UpdateCellInfoRequest instance */ - public static create(properties?: vtctldata.ISetWritableRequest): vtctldata.SetWritableRequest; + public static create(properties?: vtctldata.IUpdateCellInfoRequest): vtctldata.UpdateCellInfoRequest; /** - * Encodes the specified SetWritableRequest message. Does not implicitly {@link vtctldata.SetWritableRequest.verify|verify} messages. - * @param message SetWritableRequest message or plain object to encode + * 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.ISetWritableRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IUpdateCellInfoRequest, 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 + * 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.ISetWritableRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IUpdateCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetWritableRequest message from the specified reader or buffer. + * 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 SetWritableRequest + * @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.SetWritableRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellInfoRequest; /** - * Decodes a SetWritableRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateCellInfoRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetWritableRequest + * @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.SetWritableRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellInfoRequest; /** - * Verifies a SetWritableRequest message. + * 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 a SetWritableRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCellInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetWritableRequest + * @returns UpdateCellInfoRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetWritableRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellInfoRequest; /** - * Creates a plain object from a SetWritableRequest message. Also converts values to other types if specified. - * @param message SetWritableRequest + * 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.SetWritableRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.UpdateCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetWritableRequest to JSON. + * Converts this UpdateCellInfoRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetWritableRequest + * 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 a SetWritableResponse. */ - interface ISetWritableResponse { + /** Properties of an UpdateCellInfoResponse. */ + interface IUpdateCellInfoResponse { + + /** UpdateCellInfoResponse name */ + name?: (string|null); + + /** UpdateCellInfoResponse cell_info */ + cell_info?: (topodata.ICellInfo|null); } - /** Represents a SetWritableResponse. */ - class SetWritableResponse implements ISetWritableResponse { + /** Represents an UpdateCellInfoResponse. */ + class UpdateCellInfoResponse implements IUpdateCellInfoResponse { /** - * Constructs a new SetWritableResponse. + * Constructs a new UpdateCellInfoResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISetWritableResponse); + constructor(properties?: vtctldata.IUpdateCellInfoResponse); + + /** UpdateCellInfoResponse name. */ + public name: string; + + /** UpdateCellInfoResponse cell_info. */ + public cell_info?: (topodata.ICellInfo|null); /** - * Creates a new SetWritableResponse instance using the specified properties. + * Creates a new UpdateCellInfoResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SetWritableResponse instance + * @returns UpdateCellInfoResponse instance */ - public static create(properties?: vtctldata.ISetWritableResponse): vtctldata.SetWritableResponse; + public static create(properties?: vtctldata.IUpdateCellInfoResponse): vtctldata.UpdateCellInfoResponse; /** - * Encodes the specified SetWritableResponse message. Does not implicitly {@link vtctldata.SetWritableResponse.verify|verify} messages. - * @param message SetWritableResponse message or plain object to encode + * 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.ISetWritableResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IUpdateCellInfoResponse, 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 + * 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.ISetWritableResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IUpdateCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetWritableResponse message from the specified reader or buffer. + * 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 SetWritableResponse + * @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.SetWritableResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellInfoResponse; /** - * Decodes a SetWritableResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateCellInfoResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetWritableResponse + * @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.SetWritableResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellInfoResponse; /** - * Verifies a SetWritableResponse message. + * 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 a SetWritableResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCellInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetWritableResponse + * @returns UpdateCellInfoResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetWritableResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellInfoResponse; /** - * Creates a plain object from a SetWritableResponse message. Also converts values to other types if specified. - * @param message SetWritableResponse + * 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.SetWritableResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.UpdateCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetWritableResponse to JSON. + * Converts this UpdateCellInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetWritableResponse + * 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 a ShardReplicationAddRequest. */ - interface IShardReplicationAddRequest { - - /** ShardReplicationAddRequest keyspace */ - keyspace?: (string|null); + /** Properties of an UpdateCellsAliasRequest. */ + interface IUpdateCellsAliasRequest { - /** ShardReplicationAddRequest shard */ - shard?: (string|null); + /** UpdateCellsAliasRequest name */ + name?: (string|null); - /** ShardReplicationAddRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** UpdateCellsAliasRequest cells_alias */ + cells_alias?: (topodata.ICellsAlias|null); } - /** Represents a ShardReplicationAddRequest. */ - class ShardReplicationAddRequest implements IShardReplicationAddRequest { + /** Represents an UpdateCellsAliasRequest. */ + class UpdateCellsAliasRequest implements IUpdateCellsAliasRequest { /** - * Constructs a new ShardReplicationAddRequest. + * Constructs a new UpdateCellsAliasRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IShardReplicationAddRequest); - - /** ShardReplicationAddRequest keyspace. */ - public keyspace: string; + constructor(properties?: vtctldata.IUpdateCellsAliasRequest); - /** ShardReplicationAddRequest shard. */ - public shard: string; + /** UpdateCellsAliasRequest name. */ + public name: string; - /** ShardReplicationAddRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** UpdateCellsAliasRequest cells_alias. */ + public cells_alias?: (topodata.ICellsAlias|null); /** - * Creates a new ShardReplicationAddRequest instance using the specified properties. + * Creates a new UpdateCellsAliasRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ShardReplicationAddRequest instance + * @returns UpdateCellsAliasRequest instance */ - public static create(properties?: vtctldata.IShardReplicationAddRequest): vtctldata.ShardReplicationAddRequest; + public static create(properties?: vtctldata.IUpdateCellsAliasRequest): vtctldata.UpdateCellsAliasRequest; /** - * Encodes the specified ShardReplicationAddRequest message. Does not implicitly {@link vtctldata.ShardReplicationAddRequest.verify|verify} messages. - * @param message ShardReplicationAddRequest message or plain object to encode + * 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.IShardReplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IUpdateCellsAliasRequest, 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 + * 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.IShardReplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IUpdateCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShardReplicationAddRequest message from the specified reader or buffer. + * 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 ShardReplicationAddRequest + * @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.ShardReplicationAddRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellsAliasRequest; /** - * Decodes a ShardReplicationAddRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShardReplicationAddRequest + * @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.ShardReplicationAddRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellsAliasRequest; /** - * Verifies a ShardReplicationAddRequest message. + * 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 a ShardReplicationAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCellsAliasRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShardReplicationAddRequest + * @returns UpdateCellsAliasRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationAddRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellsAliasRequest; /** - * Creates a plain object from a ShardReplicationAddRequest message. Also converts values to other types if specified. - * @param message ShardReplicationAddRequest + * 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.ShardReplicationAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.UpdateCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShardReplicationAddRequest to JSON. + * Converts this UpdateCellsAliasRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShardReplicationAddRequest + * 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 a ShardReplicationAddResponse. */ - interface IShardReplicationAddResponse { + /** Properties of an UpdateCellsAliasResponse. */ + interface IUpdateCellsAliasResponse { + + /** UpdateCellsAliasResponse name */ + name?: (string|null); + + /** UpdateCellsAliasResponse cells_alias */ + cells_alias?: (topodata.ICellsAlias|null); } - /** Represents a ShardReplicationAddResponse. */ - class ShardReplicationAddResponse implements IShardReplicationAddResponse { + /** Represents an UpdateCellsAliasResponse. */ + class UpdateCellsAliasResponse implements IUpdateCellsAliasResponse { /** - * Constructs a new ShardReplicationAddResponse. + * Constructs a new UpdateCellsAliasResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IShardReplicationAddResponse); + constructor(properties?: vtctldata.IUpdateCellsAliasResponse); + + /** UpdateCellsAliasResponse name. */ + public name: string; + + /** UpdateCellsAliasResponse cells_alias. */ + public cells_alias?: (topodata.ICellsAlias|null); /** - * Creates a new ShardReplicationAddResponse instance using the specified properties. + * Creates a new UpdateCellsAliasResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ShardReplicationAddResponse instance + * @returns UpdateCellsAliasResponse instance */ - public static create(properties?: vtctldata.IShardReplicationAddResponse): vtctldata.ShardReplicationAddResponse; + public static create(properties?: vtctldata.IUpdateCellsAliasResponse): vtctldata.UpdateCellsAliasResponse; /** - * Encodes the specified ShardReplicationAddResponse message. Does not implicitly {@link vtctldata.ShardReplicationAddResponse.verify|verify} messages. - * @param message ShardReplicationAddResponse message or plain object to encode + * 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.IShardReplicationAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IUpdateCellsAliasResponse, 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 + * 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.IShardReplicationAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IUpdateCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShardReplicationAddResponse message from the specified reader or buffer. + * 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 ShardReplicationAddResponse + * @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.ShardReplicationAddResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellsAliasResponse; /** - * Decodes a ShardReplicationAddResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShardReplicationAddResponse + * @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.ShardReplicationAddResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellsAliasResponse; /** - * Verifies a ShardReplicationAddResponse message. + * 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 a ShardReplicationAddResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCellsAliasResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShardReplicationAddResponse + * @returns UpdateCellsAliasResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationAddResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellsAliasResponse; /** - * Creates a plain object from a ShardReplicationAddResponse message. Also converts values to other types if specified. - * @param message ShardReplicationAddResponse + * 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.ShardReplicationAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.UpdateCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShardReplicationAddResponse to JSON. + * Converts this UpdateCellsAliasResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShardReplicationAddResponse + * 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 ShardReplicationFixRequest. */ - interface IShardReplicationFixRequest { - - /** ShardReplicationFixRequest keyspace */ - keyspace?: (string|null); - - /** ShardReplicationFixRequest shard */ - shard?: (string|null); + /** Properties of a ValidateRequest. */ + interface IValidateRequest { - /** ShardReplicationFixRequest cell */ - cell?: (string|null); + /** ValidateRequest ping_tablets */ + ping_tablets?: (boolean|null); } - /** Represents a ShardReplicationFixRequest. */ - class ShardReplicationFixRequest implements IShardReplicationFixRequest { + /** Represents a ValidateRequest. */ + class ValidateRequest implements IValidateRequest { /** - * Constructs a new ShardReplicationFixRequest. + * Constructs a new ValidateRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IShardReplicationFixRequest); - - /** ShardReplicationFixRequest keyspace. */ - public keyspace: string; - - /** ShardReplicationFixRequest shard. */ - public shard: string; + constructor(properties?: vtctldata.IValidateRequest); - /** ShardReplicationFixRequest cell. */ - public cell: string; + /** ValidateRequest ping_tablets. */ + public ping_tablets: boolean; /** - * Creates a new ShardReplicationFixRequest instance using the specified properties. + * Creates a new ValidateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ShardReplicationFixRequest instance + * @returns ValidateRequest instance */ - public static create(properties?: vtctldata.IShardReplicationFixRequest): vtctldata.ShardReplicationFixRequest; + public static create(properties?: vtctldata.IValidateRequest): vtctldata.ValidateRequest; /** - * Encodes the specified ShardReplicationFixRequest message. Does not implicitly {@link vtctldata.ShardReplicationFixRequest.verify|verify} messages. - * @param message ShardReplicationFixRequest message or plain object to encode + * 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.IShardReplicationFixRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IValidateRequest, 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 + * 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.IShardReplicationFixRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShardReplicationFixRequest message from the specified reader or buffer. + * 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 ShardReplicationFixRequest + * @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.ShardReplicationFixRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateRequest; /** - * Decodes a ShardReplicationFixRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShardReplicationFixRequest + * @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.ShardReplicationFixRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateRequest; /** - * Verifies a ShardReplicationFixRequest message. + * 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 ShardReplicationFixRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShardReplicationFixRequest + * @returns ValidateRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationFixRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateRequest; /** - * Creates a plain object from a ShardReplicationFixRequest message. Also converts values to other types if specified. - * @param message ShardReplicationFixRequest + * 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.ShardReplicationFixRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShardReplicationFixRequest to JSON. + * Converts this ValidateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShardReplicationFixRequest + * 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 ShardReplicationFixResponse. */ - interface IShardReplicationFixResponse { + /** Properties of a ValidateResponse. */ + interface IValidateResponse { - /** ShardReplicationFixResponse error */ - error?: (topodata.IShardReplicationError|null); + /** ValidateResponse results */ + results?: (string[]|null); + + /** ValidateResponse results_by_keyspace */ + results_by_keyspace?: ({ [k: string]: vtctldata.IValidateKeyspaceResponse }|null); } - /** Represents a ShardReplicationFixResponse. */ - class ShardReplicationFixResponse implements IShardReplicationFixResponse { + /** Represents a ValidateResponse. */ + class ValidateResponse implements IValidateResponse { /** - * Constructs a new ShardReplicationFixResponse. + * Constructs a new ValidateResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IShardReplicationFixResponse); + constructor(properties?: vtctldata.IValidateResponse); - /** ShardReplicationFixResponse error. */ - public error?: (topodata.IShardReplicationError|null); + /** ValidateResponse results. */ + public results: string[]; + + /** ValidateResponse results_by_keyspace. */ + public results_by_keyspace: { [k: string]: vtctldata.IValidateKeyspaceResponse }; /** - * Creates a new ShardReplicationFixResponse instance using the specified properties. + * Creates a new ValidateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ShardReplicationFixResponse instance + * @returns ValidateResponse instance */ - public static create(properties?: vtctldata.IShardReplicationFixResponse): vtctldata.ShardReplicationFixResponse; + public static create(properties?: vtctldata.IValidateResponse): vtctldata.ValidateResponse; /** - * Encodes the specified ShardReplicationFixResponse message. Does not implicitly {@link vtctldata.ShardReplicationFixResponse.verify|verify} messages. - * @param message ShardReplicationFixResponse message or plain object to encode + * 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.IShardReplicationFixResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IValidateResponse, 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 + * 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.IShardReplicationFixResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShardReplicationFixResponse message from the specified reader or buffer. + * 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 ShardReplicationFixResponse + * @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.ShardReplicationFixResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateResponse; /** - * Decodes a ShardReplicationFixResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShardReplicationFixResponse + * @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.ShardReplicationFixResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateResponse; /** - * Verifies a ShardReplicationFixResponse message. + * 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 ShardReplicationFixResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShardReplicationFixResponse + * @returns ValidateResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationFixResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateResponse; /** - * Creates a plain object from a ShardReplicationFixResponse message. Also converts values to other types if specified. - * @param message ShardReplicationFixResponse + * 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.ShardReplicationFixResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShardReplicationFixResponse to JSON. + * Converts this ValidateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShardReplicationFixResponse + * 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 ShardReplicationPositionsRequest. */ - interface IShardReplicationPositionsRequest { + /** Properties of a ValidateKeyspaceRequest. */ + interface IValidateKeyspaceRequest { - /** ShardReplicationPositionsRequest keyspace */ + /** ValidateKeyspaceRequest keyspace */ keyspace?: (string|null); - /** ShardReplicationPositionsRequest shard */ - shard?: (string|null); + /** ValidateKeyspaceRequest ping_tablets */ + ping_tablets?: (boolean|null); } - /** Represents a ShardReplicationPositionsRequest. */ - class ShardReplicationPositionsRequest implements IShardReplicationPositionsRequest { + /** Represents a ValidateKeyspaceRequest. */ + class ValidateKeyspaceRequest implements IValidateKeyspaceRequest { /** - * Constructs a new ShardReplicationPositionsRequest. + * Constructs a new ValidateKeyspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IShardReplicationPositionsRequest); + constructor(properties?: vtctldata.IValidateKeyspaceRequest); - /** ShardReplicationPositionsRequest keyspace. */ + /** ValidateKeyspaceRequest keyspace. */ public keyspace: string; - /** ShardReplicationPositionsRequest shard. */ - public shard: string; + /** ValidateKeyspaceRequest ping_tablets. */ + public ping_tablets: boolean; /** - * Creates a new ShardReplicationPositionsRequest instance using the specified properties. + * Creates a new ValidateKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ShardReplicationPositionsRequest instance + * @returns ValidateKeyspaceRequest instance */ - public static create(properties?: vtctldata.IShardReplicationPositionsRequest): vtctldata.ShardReplicationPositionsRequest; + public static create(properties?: vtctldata.IValidateKeyspaceRequest): vtctldata.ValidateKeyspaceRequest; /** - * Encodes the specified ShardReplicationPositionsRequest message. Does not implicitly {@link vtctldata.ShardReplicationPositionsRequest.verify|verify} messages. - * @param message ShardReplicationPositionsRequest message or plain object to encode + * 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.IShardReplicationPositionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IValidateKeyspaceRequest, 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 + * 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.IShardReplicationPositionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IValidateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer. + * 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 ShardReplicationPositionsRequest + * @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.ShardReplicationPositionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateKeyspaceRequest; /** - * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShardReplicationPositionsRequest + * @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.ShardReplicationPositionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateKeyspaceRequest; /** - * Verifies a ShardReplicationPositionsRequest message. + * 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 ShardReplicationPositionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShardReplicationPositionsRequest + * @returns ValidateKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationPositionsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateKeyspaceRequest; /** - * Creates a plain object from a ShardReplicationPositionsRequest message. Also converts values to other types if specified. - * @param message ShardReplicationPositionsRequest + * 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.ShardReplicationPositionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShardReplicationPositionsRequest to JSON. + * Converts this ValidateKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShardReplicationPositionsRequest + * 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 ShardReplicationPositionsResponse. */ - interface IShardReplicationPositionsResponse { + /** Properties of a ValidateKeyspaceResponse. */ + interface IValidateKeyspaceResponse { - /** ShardReplicationPositionsResponse replication_statuses */ - replication_statuses?: ({ [k: string]: replicationdata.IStatus }|null); + /** ValidateKeyspaceResponse results */ + results?: (string[]|null); - /** ShardReplicationPositionsResponse tablet_map */ - tablet_map?: ({ [k: string]: topodata.ITablet }|null); + /** ValidateKeyspaceResponse results_by_shard */ + results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); } - /** Represents a ShardReplicationPositionsResponse. */ - class ShardReplicationPositionsResponse implements IShardReplicationPositionsResponse { + /** Represents a ValidateKeyspaceResponse. */ + class ValidateKeyspaceResponse implements IValidateKeyspaceResponse { /** - * Constructs a new ShardReplicationPositionsResponse. + * Constructs a new ValidateKeyspaceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IShardReplicationPositionsResponse); + constructor(properties?: vtctldata.IValidateKeyspaceResponse); - /** ShardReplicationPositionsResponse replication_statuses. */ - public replication_statuses: { [k: string]: replicationdata.IStatus }; + /** ValidateKeyspaceResponse results. */ + public results: string[]; - /** ShardReplicationPositionsResponse tablet_map. */ - public tablet_map: { [k: string]: topodata.ITablet }; + /** ValidateKeyspaceResponse results_by_shard. */ + public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; /** - * Creates a new ShardReplicationPositionsResponse instance using the specified properties. + * Creates a new ValidateKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ShardReplicationPositionsResponse instance + * @returns ValidateKeyspaceResponse instance */ - public static create(properties?: vtctldata.IShardReplicationPositionsResponse): vtctldata.ShardReplicationPositionsResponse; + public static create(properties?: vtctldata.IValidateKeyspaceResponse): vtctldata.ValidateKeyspaceResponse; /** - * Encodes the specified ShardReplicationPositionsResponse message. Does not implicitly {@link vtctldata.ShardReplicationPositionsResponse.verify|verify} messages. - * @param message ShardReplicationPositionsResponse message or plain object to encode + * 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.IShardReplicationPositionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IValidateKeyspaceResponse, 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 + * 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.IShardReplicationPositionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IValidateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer. + * 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 ShardReplicationPositionsResponse + * @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.ShardReplicationPositionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateKeyspaceResponse; /** - * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShardReplicationPositionsResponse + * @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.ShardReplicationPositionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateKeyspaceResponse; /** - * Verifies a ShardReplicationPositionsResponse message. + * 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 ShardReplicationPositionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShardReplicationPositionsResponse + * @returns ValidateKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationPositionsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateKeyspaceResponse; /** - * Creates a plain object from a ShardReplicationPositionsResponse message. Also converts values to other types if specified. - * @param message ShardReplicationPositionsResponse + * 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.ShardReplicationPositionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShardReplicationPositionsResponse to JSON. + * Converts this ValidateKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShardReplicationPositionsResponse + * 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 ShardReplicationRemoveRequest. */ - interface IShardReplicationRemoveRequest { + /** Properties of a ValidatePermissionsKeyspaceRequest. */ + interface IValidatePermissionsKeyspaceRequest { - /** ShardReplicationRemoveRequest keyspace */ + /** ValidatePermissionsKeyspaceRequest keyspace */ keyspace?: (string|null); - /** ShardReplicationRemoveRequest shard */ - shard?: (string|null); - - /** ShardReplicationRemoveRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** ValidatePermissionsKeyspaceRequest shards */ + shards?: (string[]|null); } - /** Represents a ShardReplicationRemoveRequest. */ - class ShardReplicationRemoveRequest implements IShardReplicationRemoveRequest { + /** Represents a ValidatePermissionsKeyspaceRequest. */ + class ValidatePermissionsKeyspaceRequest implements IValidatePermissionsKeyspaceRequest { /** - * Constructs a new ShardReplicationRemoveRequest. + * Constructs a new ValidatePermissionsKeyspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IShardReplicationRemoveRequest); + constructor(properties?: vtctldata.IValidatePermissionsKeyspaceRequest); - /** ShardReplicationRemoveRequest keyspace. */ + /** ValidatePermissionsKeyspaceRequest keyspace. */ public keyspace: string; - /** ShardReplicationRemoveRequest shard. */ - public shard: string; - - /** ShardReplicationRemoveRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** ValidatePermissionsKeyspaceRequest shards. */ + public shards: string[]; /** - * Creates a new ShardReplicationRemoveRequest instance using the specified properties. + * Creates a new ValidatePermissionsKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ShardReplicationRemoveRequest instance + * @returns ValidatePermissionsKeyspaceRequest instance */ - public static create(properties?: vtctldata.IShardReplicationRemoveRequest): vtctldata.ShardReplicationRemoveRequest; + public static create(properties?: vtctldata.IValidatePermissionsKeyspaceRequest): vtctldata.ValidatePermissionsKeyspaceRequest; /** - * Encodes the specified ShardReplicationRemoveRequest message. Does not implicitly {@link vtctldata.ShardReplicationRemoveRequest.verify|verify} messages. - * @param message ShardReplicationRemoveRequest message or plain object to encode + * Encodes the specified ValidatePermissionsKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceRequest.verify|verify} messages. + * @param message ValidatePermissionsKeyspaceRequest 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; + public static encode(message: vtctldata.IValidatePermissionsKeyspaceRequest, 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 + * Encodes the specified ValidatePermissionsKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceRequest.verify|verify} messages. + * @param message ValidatePermissionsKeyspaceRequest 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; + public static encodeDelimited(message: vtctldata.IValidatePermissionsKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer. + * Decodes a ValidatePermissionsKeyspaceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShardReplicationRemoveRequest + * @returns ValidatePermissionsKeyspaceRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidatePermissionsKeyspaceRequest; /** - * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidatePermissionsKeyspaceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShardReplicationRemoveRequest + * @returns ValidatePermissionsKeyspaceRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidatePermissionsKeyspaceRequest; /** - * Verifies a ShardReplicationRemoveRequest message. + * Verifies a ValidatePermissionsKeyspaceRequest message. * @param message Plain object 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. + * Creates a ValidatePermissionsKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShardReplicationRemoveRequest + * @returns ValidatePermissionsKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationRemoveRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidatePermissionsKeyspaceRequest; /** - * Creates a plain object from a ShardReplicationRemoveRequest message. Also converts values to other types if specified. - * @param message ShardReplicationRemoveRequest + * Creates a plain object from a ValidatePermissionsKeyspaceRequest message. Also converts values to other types if specified. + * @param message ValidatePermissionsKeyspaceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ShardReplicationRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidatePermissionsKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShardReplicationRemoveRequest to JSON. + * Converts this ValidatePermissionsKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShardReplicationRemoveRequest + * Gets the default type url for ValidatePermissionsKeyspaceRequest * @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 { + /** Properties of a ValidatePermissionsKeyspaceResponse. */ + interface IValidatePermissionsKeyspaceResponse { } - /** Represents a ShardReplicationRemoveResponse. */ - class ShardReplicationRemoveResponse implements IShardReplicationRemoveResponse { + /** Represents a ValidatePermissionsKeyspaceResponse. */ + class ValidatePermissionsKeyspaceResponse implements IValidatePermissionsKeyspaceResponse { /** - * Constructs a new ShardReplicationRemoveResponse. + * Constructs a new ValidatePermissionsKeyspaceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IShardReplicationRemoveResponse); + constructor(properties?: vtctldata.IValidatePermissionsKeyspaceResponse); /** - * Creates a new ShardReplicationRemoveResponse instance using the specified properties. + * Creates a new ValidatePermissionsKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ShardReplicationRemoveResponse instance + * @returns ValidatePermissionsKeyspaceResponse instance */ - public static create(properties?: vtctldata.IShardReplicationRemoveResponse): vtctldata.ShardReplicationRemoveResponse; + public static create(properties?: vtctldata.IValidatePermissionsKeyspaceResponse): vtctldata.ValidatePermissionsKeyspaceResponse; /** - * Encodes the specified ShardReplicationRemoveResponse message. Does not implicitly {@link vtctldata.ShardReplicationRemoveResponse.verify|verify} messages. - * @param message ShardReplicationRemoveResponse message or plain object to encode + * Encodes the specified ValidatePermissionsKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceResponse.verify|verify} messages. + * @param message ValidatePermissionsKeyspaceResponse 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; + public static encode(message: vtctldata.IValidatePermissionsKeyspaceResponse, 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 + * Encodes the specified ValidatePermissionsKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceResponse.verify|verify} messages. + * @param message ValidatePermissionsKeyspaceResponse 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; + public static encodeDelimited(message: vtctldata.IValidatePermissionsKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer. + * Decodes a ValidatePermissionsKeyspaceResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShardReplicationRemoveResponse + * @returns ValidatePermissionsKeyspaceResponse * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidatePermissionsKeyspaceResponse; /** - * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidatePermissionsKeyspaceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShardReplicationRemoveResponse + * @returns ValidatePermissionsKeyspaceResponse * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidatePermissionsKeyspaceResponse; /** - * Verifies a ShardReplicationRemoveResponse message. + * Verifies a ValidatePermissionsKeyspaceResponse message. * @param message Plain object 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. + * Creates a ValidatePermissionsKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShardReplicationRemoveResponse + * @returns ValidatePermissionsKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationRemoveResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidatePermissionsKeyspaceResponse; /** - * Creates a plain object from a ShardReplicationRemoveResponse message. Also converts values to other types if specified. - * @param message ShardReplicationRemoveResponse + * Creates a plain object from a ValidatePermissionsKeyspaceResponse message. Also converts values to other types if specified. + * @param message ValidatePermissionsKeyspaceResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ShardReplicationRemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidatePermissionsKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShardReplicationRemoveResponse to JSON. + * Converts this ValidatePermissionsKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShardReplicationRemoveResponse + * Gets the default type url for ValidatePermissionsKeyspaceResponse * @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 { + /** Properties of a ValidateSchemaKeyspaceRequest. */ + interface IValidateSchemaKeyspaceRequest { - /** SleepTabletRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** ValidateSchemaKeyspaceRequest keyspace */ + keyspace?: (string|null); - /** SleepTabletRequest duration */ - duration?: (vttime.IDuration|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); + + /** ValidateSchemaKeyspaceRequest shards */ + shards?: (string[]|null); } - /** Represents a SleepTabletRequest. */ - class SleepTabletRequest implements ISleepTabletRequest { + /** Represents a ValidateSchemaKeyspaceRequest. */ + class ValidateSchemaKeyspaceRequest implements IValidateSchemaKeyspaceRequest { /** - * Constructs a new SleepTabletRequest. + * Constructs a new ValidateSchemaKeyspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISleepTabletRequest); + constructor(properties?: vtctldata.IValidateSchemaKeyspaceRequest); - /** SleepTabletRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** ValidateSchemaKeyspaceRequest keyspace. */ + public keyspace: string; - /** SleepTabletRequest duration. */ - public duration?: (vttime.IDuration|null); + /** 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; + + /** ValidateSchemaKeyspaceRequest shards. */ + public shards: string[]; /** - * Creates a new SleepTabletRequest instance using the specified properties. + * Creates a new ValidateSchemaKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SleepTabletRequest instance + * @returns ValidateSchemaKeyspaceRequest instance */ - public static create(properties?: vtctldata.ISleepTabletRequest): vtctldata.SleepTabletRequest; + public static create(properties?: vtctldata.IValidateSchemaKeyspaceRequest): vtctldata.ValidateSchemaKeyspaceRequest; /** - * Encodes the specified SleepTabletRequest message. Does not implicitly {@link vtctldata.SleepTabletRequest.verify|verify} messages. - * @param message SleepTabletRequest message or plain object to encode + * 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.ISleepTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IValidateSchemaKeyspaceRequest, 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 + * 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.ISleepTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IValidateSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SleepTabletRequest message from the specified reader or buffer. + * 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 SleepTabletRequest + * @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.SleepTabletRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateSchemaKeyspaceRequest; /** - * Decodes a SleepTabletRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SleepTabletRequest + * @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.SleepTabletRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateSchemaKeyspaceRequest; /** - * Verifies a SleepTabletRequest message. + * 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 SleepTabletRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SleepTabletRequest + * @returns ValidateSchemaKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.SleepTabletRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateSchemaKeyspaceRequest; /** - * Creates a plain object from a SleepTabletRequest message. Also converts values to other types if specified. - * @param message SleepTabletRequest + * 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.SleepTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidateSchemaKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SleepTabletRequest to JSON. + * Converts this ValidateSchemaKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SleepTabletRequest + * 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 SleepTabletResponse. */ - interface ISleepTabletResponse { + /** 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 SleepTabletResponse. */ - class SleepTabletResponse implements ISleepTabletResponse { + /** Represents a ValidateSchemaKeyspaceResponse. */ + class ValidateSchemaKeyspaceResponse implements IValidateSchemaKeyspaceResponse { /** - * Constructs a new SleepTabletResponse. + * Constructs a new ValidateSchemaKeyspaceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISleepTabletResponse); + constructor(properties?: vtctldata.IValidateSchemaKeyspaceResponse); + + /** ValidateSchemaKeyspaceResponse results. */ + public results: string[]; + + /** ValidateSchemaKeyspaceResponse results_by_shard. */ + public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; /** - * Creates a new SleepTabletResponse instance using the specified properties. + * Creates a new ValidateSchemaKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SleepTabletResponse instance + * @returns ValidateSchemaKeyspaceResponse instance */ - public static create(properties?: vtctldata.ISleepTabletResponse): vtctldata.SleepTabletResponse; + public static create(properties?: vtctldata.IValidateSchemaKeyspaceResponse): vtctldata.ValidateSchemaKeyspaceResponse; /** - * Encodes the specified SleepTabletResponse message. Does not implicitly {@link vtctldata.SleepTabletResponse.verify|verify} messages. - * @param message SleepTabletResponse message or plain object to encode + * 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.ISleepTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IValidateSchemaKeyspaceResponse, 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 + * 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.ISleepTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IValidateSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SleepTabletResponse message from the specified reader or buffer. + * 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 SleepTabletResponse + * @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.SleepTabletResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateSchemaKeyspaceResponse; /** - * Decodes a SleepTabletResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SleepTabletResponse + * @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.SleepTabletResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateSchemaKeyspaceResponse; /** - * Verifies a SleepTabletResponse message. + * 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 SleepTabletResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SleepTabletResponse + * @returns ValidateSchemaKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.SleepTabletResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateSchemaKeyspaceResponse; /** - * Creates a plain object from a SleepTabletResponse message. Also converts values to other types if specified. - * @param message SleepTabletResponse + * 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.SleepTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidateSchemaKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SleepTabletResponse to JSON. + * Converts this ValidateSchemaKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SleepTabletResponse + * 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 SourceShardAddRequest. */ - interface ISourceShardAddRequest { + /** Properties of a ValidateShardRequest. */ + interface IValidateShardRequest { - /** SourceShardAddRequest keyspace */ + /** ValidateShardRequest keyspace */ keyspace?: (string|null); - /** SourceShardAddRequest shard */ + /** ValidateShardRequest 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); + /** ValidateShardRequest ping_tablets */ + ping_tablets?: (boolean|null); } - /** Represents a SourceShardAddRequest. */ - class SourceShardAddRequest implements ISourceShardAddRequest { + /** Represents a ValidateShardRequest. */ + class ValidateShardRequest implements IValidateShardRequest { /** - * Constructs a new SourceShardAddRequest. + * Constructs a new ValidateShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISourceShardAddRequest); + constructor(properties?: vtctldata.IValidateShardRequest); - /** SourceShardAddRequest keyspace. */ + /** ValidateShardRequest keyspace. */ public keyspace: string; - /** SourceShardAddRequest shard. */ + /** ValidateShardRequest 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[]; + /** ValidateShardRequest ping_tablets. */ + public ping_tablets: boolean; /** - * Creates a new SourceShardAddRequest instance using the specified properties. + * Creates a new ValidateShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SourceShardAddRequest instance + * @returns ValidateShardRequest instance */ - public static create(properties?: vtctldata.ISourceShardAddRequest): vtctldata.SourceShardAddRequest; + public static create(properties?: vtctldata.IValidateShardRequest): vtctldata.ValidateShardRequest; /** - * Encodes the specified SourceShardAddRequest message. Does not implicitly {@link vtctldata.SourceShardAddRequest.verify|verify} messages. - * @param message SourceShardAddRequest message or plain object to encode + * 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.ISourceShardAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IValidateShardRequest, 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 + * 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.ISourceShardAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IValidateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SourceShardAddRequest message from the specified reader or buffer. + * 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 SourceShardAddRequest + * @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.SourceShardAddRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateShardRequest; /** - * Decodes a SourceShardAddRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateShardRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SourceShardAddRequest + * @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.SourceShardAddRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateShardRequest; /** - * Verifies a SourceShardAddRequest message. + * 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 SourceShardAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateShardRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SourceShardAddRequest + * @returns ValidateShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardAddRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateShardRequest; /** - * Creates a plain object from a SourceShardAddRequest message. Also converts values to other types if specified. - * @param message SourceShardAddRequest + * 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.SourceShardAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SourceShardAddRequest to JSON. + * Converts this ValidateShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SourceShardAddRequest + * 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 SourceShardAddResponse. */ - interface ISourceShardAddResponse { + /** Properties of a ValidateShardResponse. */ + interface IValidateShardResponse { - /** SourceShardAddResponse shard */ - shard?: (topodata.IShard|null); + /** ValidateShardResponse results */ + results?: (string[]|null); } - /** Represents a SourceShardAddResponse. */ - class SourceShardAddResponse implements ISourceShardAddResponse { + /** Represents a ValidateShardResponse. */ + class ValidateShardResponse implements IValidateShardResponse { /** - * Constructs a new SourceShardAddResponse. + * Constructs a new ValidateShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISourceShardAddResponse); + constructor(properties?: vtctldata.IValidateShardResponse); - /** SourceShardAddResponse shard. */ - public shard?: (topodata.IShard|null); + /** ValidateShardResponse results. */ + public results: string[]; /** - * Creates a new SourceShardAddResponse instance using the specified properties. + * Creates a new ValidateShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SourceShardAddResponse instance + * @returns ValidateShardResponse instance */ - public static create(properties?: vtctldata.ISourceShardAddResponse): vtctldata.SourceShardAddResponse; + public static create(properties?: vtctldata.IValidateShardResponse): vtctldata.ValidateShardResponse; /** - * Encodes the specified SourceShardAddResponse message. Does not implicitly {@link vtctldata.SourceShardAddResponse.verify|verify} messages. - * @param message SourceShardAddResponse message or plain object to encode + * 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.ISourceShardAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IValidateShardResponse, 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 + * 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.ISourceShardAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IValidateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SourceShardAddResponse message from the specified reader or buffer. + * 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 SourceShardAddResponse + * @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.SourceShardAddResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateShardResponse; /** - * Decodes a SourceShardAddResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidateShardResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SourceShardAddResponse + * @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.SourceShardAddResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateShardResponse; /** - * Verifies a SourceShardAddResponse message. + * 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 SourceShardAddResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateShardResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SourceShardAddResponse + * @returns ValidateShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardAddResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateShardResponse; /** - * Creates a plain object from a SourceShardAddResponse message. Also converts values to other types if specified. - * @param message SourceShardAddResponse + * 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.SourceShardAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SourceShardAddResponse to JSON. + * Converts this ValidateShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SourceShardAddResponse + * 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 SourceShardDeleteRequest. */ - interface ISourceShardDeleteRequest { + /** Properties of a ValidateVersionKeyspaceRequest. */ + interface IValidateVersionKeyspaceRequest { - /** SourceShardDeleteRequest keyspace */ + /** ValidateVersionKeyspaceRequest keyspace */ keyspace?: (string|null); - - /** SourceShardDeleteRequest shard */ - shard?: (string|null); - - /** SourceShardDeleteRequest uid */ - uid?: (number|null); } - /** Represents a SourceShardDeleteRequest. */ - class SourceShardDeleteRequest implements ISourceShardDeleteRequest { + /** Represents a ValidateVersionKeyspaceRequest. */ + class ValidateVersionKeyspaceRequest implements IValidateVersionKeyspaceRequest { /** - * Constructs a new SourceShardDeleteRequest. + * Constructs a new ValidateVersionKeyspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISourceShardDeleteRequest); + constructor(properties?: vtctldata.IValidateVersionKeyspaceRequest); - /** SourceShardDeleteRequest keyspace. */ + /** ValidateVersionKeyspaceRequest keyspace. */ public keyspace: string; - /** SourceShardDeleteRequest shard. */ - public shard: string; - - /** SourceShardDeleteRequest uid. */ - public uid: number; - /** - * Creates a new SourceShardDeleteRequest instance using the specified properties. + * Creates a new ValidateVersionKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SourceShardDeleteRequest instance + * @returns ValidateVersionKeyspaceRequest instance */ - public static create(properties?: vtctldata.ISourceShardDeleteRequest): vtctldata.SourceShardDeleteRequest; + public static create(properties?: vtctldata.IValidateVersionKeyspaceRequest): vtctldata.ValidateVersionKeyspaceRequest; /** - * Encodes the specified SourceShardDeleteRequest message. Does not implicitly {@link vtctldata.SourceShardDeleteRequest.verify|verify} messages. - * @param message SourceShardDeleteRequest message or plain object to encode + * 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.ISourceShardDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IValidateVersionKeyspaceRequest, 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 + * 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.ISourceShardDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IValidateVersionKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SourceShardDeleteRequest message from the specified reader or buffer. + * 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 SourceShardDeleteRequest + * @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.SourceShardDeleteRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionKeyspaceRequest; /** - * Decodes a SourceShardDeleteRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SourceShardDeleteRequest + * @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.SourceShardDeleteRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionKeyspaceRequest; /** - * Verifies a SourceShardDeleteRequest message. + * 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 SourceShardDeleteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVersionKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SourceShardDeleteRequest + * @returns ValidateVersionKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardDeleteRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionKeyspaceRequest; /** - * Creates a plain object from a SourceShardDeleteRequest message. Also converts values to other types if specified. - * @param message SourceShardDeleteRequest + * 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.SourceShardDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidateVersionKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SourceShardDeleteRequest to JSON. + * Converts this ValidateVersionKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SourceShardDeleteRequest + * 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 SourceShardDeleteResponse. */ - interface ISourceShardDeleteResponse { + /** Properties of a ValidateVersionKeyspaceResponse. */ + interface IValidateVersionKeyspaceResponse { - /** SourceShardDeleteResponse shard */ - shard?: (topodata.IShard|null); + /** ValidateVersionKeyspaceResponse results */ + results?: (string[]|null); + + /** ValidateVersionKeyspaceResponse results_by_shard */ + results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); } - /** Represents a SourceShardDeleteResponse. */ - class SourceShardDeleteResponse implements ISourceShardDeleteResponse { + /** Represents a ValidateVersionKeyspaceResponse. */ + class ValidateVersionKeyspaceResponse implements IValidateVersionKeyspaceResponse { /** - * Constructs a new SourceShardDeleteResponse. + * Constructs a new ValidateVersionKeyspaceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ISourceShardDeleteResponse); + constructor(properties?: vtctldata.IValidateVersionKeyspaceResponse); - /** SourceShardDeleteResponse shard. */ - public shard?: (topodata.IShard|null); + /** ValidateVersionKeyspaceResponse results. */ + public results: string[]; + + /** ValidateVersionKeyspaceResponse results_by_shard. */ + public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; /** - * Creates a new SourceShardDeleteResponse instance using the specified properties. + * Creates a new ValidateVersionKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SourceShardDeleteResponse instance + * @returns ValidateVersionKeyspaceResponse instance */ - public static create(properties?: vtctldata.ISourceShardDeleteResponse): vtctldata.SourceShardDeleteResponse; + public static create(properties?: vtctldata.IValidateVersionKeyspaceResponse): vtctldata.ValidateVersionKeyspaceResponse; /** - * Encodes the specified SourceShardDeleteResponse message. Does not implicitly {@link vtctldata.SourceShardDeleteResponse.verify|verify} messages. - * @param message SourceShardDeleteResponse message or plain object to encode + * 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.ISourceShardDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IValidateVersionKeyspaceResponse, 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 + * 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.ISourceShardDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IValidateVersionKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SourceShardDeleteResponse message from the specified reader or buffer. + * 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 SourceShardDeleteResponse + * @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.SourceShardDeleteResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionKeyspaceResponse; /** - * Decodes a SourceShardDeleteResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SourceShardDeleteResponse + * @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.SourceShardDeleteResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionKeyspaceResponse; /** - * Verifies a SourceShardDeleteResponse message. + * 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 SourceShardDeleteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVersionKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SourceShardDeleteResponse + * @returns ValidateVersionKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardDeleteResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionKeyspaceResponse; /** - * Creates a plain object from a SourceShardDeleteResponse message. Also converts values to other types if specified. - * @param message SourceShardDeleteResponse + * 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.SourceShardDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidateVersionKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SourceShardDeleteResponse to JSON. + * Converts this ValidateVersionKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SourceShardDeleteResponse + * 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 StartReplicationRequest. */ - interface IStartReplicationRequest { + /** Properties of a ValidateVersionShardRequest. */ + interface IValidateVersionShardRequest { - /** StartReplicationRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** ValidateVersionShardRequest keyspace */ + keyspace?: (string|null); + + /** ValidateVersionShardRequest shard */ + shard?: (string|null); } - /** Represents a StartReplicationRequest. */ - class StartReplicationRequest implements IStartReplicationRequest { + /** Represents a ValidateVersionShardRequest. */ + class ValidateVersionShardRequest implements IValidateVersionShardRequest { /** - * Constructs a new StartReplicationRequest. + * Constructs a new ValidateVersionShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IStartReplicationRequest); + constructor(properties?: vtctldata.IValidateVersionShardRequest); - /** StartReplicationRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** ValidateVersionShardRequest keyspace. */ + public keyspace: string; + + /** ValidateVersionShardRequest shard. */ + public shard: string; /** - * Creates a new StartReplicationRequest instance using the specified properties. + * Creates a new ValidateVersionShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StartReplicationRequest instance + * @returns ValidateVersionShardRequest instance */ - public static create(properties?: vtctldata.IStartReplicationRequest): vtctldata.StartReplicationRequest; + public static create(properties?: vtctldata.IValidateVersionShardRequest): vtctldata.ValidateVersionShardRequest; /** - * Encodes the specified StartReplicationRequest message. Does not implicitly {@link vtctldata.StartReplicationRequest.verify|verify} messages. - * @param message StartReplicationRequest message or plain object to encode + * 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.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IValidateVersionShardRequest, 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 + * 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.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IValidateVersionShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartReplicationRequest message from the specified reader or buffer. + * 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 StartReplicationRequest + * @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.StartReplicationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionShardRequest; /** - * Decodes a StartReplicationRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateVersionShardRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartReplicationRequest + * @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.StartReplicationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionShardRequest; /** - * Verifies a StartReplicationRequest message. + * 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 StartReplicationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVersionShardRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartReplicationRequest + * @returns ValidateVersionShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.StartReplicationRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionShardRequest; /** - * Creates a plain object from a StartReplicationRequest message. Also converts values to other types if specified. - * @param message StartReplicationRequest + * 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.StartReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidateVersionShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartReplicationRequest to JSON. + * Converts this ValidateVersionShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StartReplicationRequest + * 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 StartReplicationResponse. */ - interface IStartReplicationResponse { + /** Properties of a ValidateVersionShardResponse. */ + interface IValidateVersionShardResponse { + + /** ValidateVersionShardResponse results */ + results?: (string[]|null); } - /** Represents a StartReplicationResponse. */ - class StartReplicationResponse implements IStartReplicationResponse { + /** Represents a ValidateVersionShardResponse. */ + class ValidateVersionShardResponse implements IValidateVersionShardResponse { /** - * Constructs a new StartReplicationResponse. + * Constructs a new ValidateVersionShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IStartReplicationResponse); + constructor(properties?: vtctldata.IValidateVersionShardResponse); + + /** ValidateVersionShardResponse results. */ + public results: string[]; /** - * Creates a new StartReplicationResponse instance using the specified properties. + * Creates a new ValidateVersionShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StartReplicationResponse instance + * @returns ValidateVersionShardResponse instance */ - public static create(properties?: vtctldata.IStartReplicationResponse): vtctldata.StartReplicationResponse; + public static create(properties?: vtctldata.IValidateVersionShardResponse): vtctldata.ValidateVersionShardResponse; /** - * Encodes the specified StartReplicationResponse message. Does not implicitly {@link vtctldata.StartReplicationResponse.verify|verify} messages. - * @param message StartReplicationResponse message or plain object to encode + * 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.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IValidateVersionShardResponse, 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 + * 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.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IValidateVersionShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartReplicationResponse message from the specified reader or buffer. + * 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 StartReplicationResponse + * @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.StartReplicationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionShardResponse; /** - * Decodes a StartReplicationResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidateVersionShardResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartReplicationResponse + * @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.StartReplicationResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionShardResponse; /** - * Verifies a StartReplicationResponse message. + * 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 StartReplicationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVersionShardResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartReplicationResponse + * @returns ValidateVersionShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.StartReplicationResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionShardResponse; /** - * Creates a plain object from a StartReplicationResponse message. Also converts values to other types if specified. - * @param message StartReplicationResponse + * 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.StartReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidateVersionShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartReplicationResponse to JSON. + * Converts this ValidateVersionShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StartReplicationResponse + * 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 StopReplicationRequest. */ - interface IStopReplicationRequest { + /** Properties of a ValidateVSchemaRequest. */ + interface IValidateVSchemaRequest { - /** StopReplicationRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** 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 StopReplicationRequest. */ - class StopReplicationRequest implements IStopReplicationRequest { + /** Represents a ValidateVSchemaRequest. */ + class ValidateVSchemaRequest implements IValidateVSchemaRequest { /** - * Constructs a new StopReplicationRequest. + * Constructs a new ValidateVSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IStopReplicationRequest); + constructor(properties?: vtctldata.IValidateVSchemaRequest); - /** StopReplicationRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** 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 StopReplicationRequest instance using the specified properties. + * Creates a new ValidateVSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StopReplicationRequest instance + * @returns ValidateVSchemaRequest instance */ - public static create(properties?: vtctldata.IStopReplicationRequest): vtctldata.StopReplicationRequest; + public static create(properties?: vtctldata.IValidateVSchemaRequest): vtctldata.ValidateVSchemaRequest; /** - * Encodes the specified StopReplicationRequest message. Does not implicitly {@link vtctldata.StopReplicationRequest.verify|verify} messages. - * @param message StopReplicationRequest message or plain object to encode + * 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.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IValidateVSchemaRequest, 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 + * 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.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IValidateVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopReplicationRequest message from the specified reader or buffer. + * 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 StopReplicationRequest + * @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.StopReplicationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVSchemaRequest; /** - * Decodes a StopReplicationRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateVSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopReplicationRequest + * @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.StopReplicationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVSchemaRequest; /** - * Verifies a StopReplicationRequest message. + * 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 StopReplicationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopReplicationRequest + * @returns ValidateVSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.StopReplicationRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVSchemaRequest; /** - * Creates a plain object from a StopReplicationRequest message. Also converts values to other types if specified. - * @param message StopReplicationRequest + * 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.StopReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidateVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopReplicationRequest to JSON. + * Converts this ValidateVSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StopReplicationRequest + * 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 StopReplicationResponse. */ - interface IStopReplicationResponse { + /** 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 StopReplicationResponse. */ - class StopReplicationResponse implements IStopReplicationResponse { + /** Represents a ValidateVSchemaResponse. */ + class ValidateVSchemaResponse implements IValidateVSchemaResponse { /** - * Constructs a new StopReplicationResponse. + * Constructs a new ValidateVSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IStopReplicationResponse); + constructor(properties?: vtctldata.IValidateVSchemaResponse); + + /** ValidateVSchemaResponse results. */ + public results: string[]; + + /** ValidateVSchemaResponse results_by_shard. */ + public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; /** - * Creates a new StopReplicationResponse instance using the specified properties. + * Creates a new ValidateVSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StopReplicationResponse instance + * @returns ValidateVSchemaResponse instance */ - public static create(properties?: vtctldata.IStopReplicationResponse): vtctldata.StopReplicationResponse; + public static create(properties?: vtctldata.IValidateVSchemaResponse): vtctldata.ValidateVSchemaResponse; /** - * Encodes the specified StopReplicationResponse message. Does not implicitly {@link vtctldata.StopReplicationResponse.verify|verify} messages. - * @param message StopReplicationResponse message or plain object to encode + * 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.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IValidateVSchemaResponse, 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 + * 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.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IValidateVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopReplicationResponse message from the specified reader or buffer. + * 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 StopReplicationResponse + * @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.StopReplicationResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVSchemaResponse; /** - * Decodes a StopReplicationResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidateVSchemaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopReplicationResponse + * @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.StopReplicationResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVSchemaResponse; /** - * Verifies a StopReplicationResponse message. + * 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 StopReplicationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopReplicationResponse + * @returns ValidateVSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.StopReplicationResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVSchemaResponse; /** - * Creates a plain object from a StopReplicationResponse message. Also converts values to other types if specified. - * @param message StopReplicationResponse + * 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.StopReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ValidateVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopReplicationResponse to JSON. + * Converts this ValidateVSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StopReplicationResponse + * 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 TabletExternallyReparentedRequest. */ - interface ITabletExternallyReparentedRequest { + /** Properties of a VDiffCreateRequest. */ + interface IVDiffCreateRequest { - /** TabletExternallyReparentedRequest tablet */ - tablet?: (topodata.ITabletAlias|null); + /** 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 TabletExternallyReparentedRequest. */ - class TabletExternallyReparentedRequest implements ITabletExternallyReparentedRequest { + /** Represents a VDiffCreateRequest. */ + class VDiffCreateRequest implements IVDiffCreateRequest { /** - * Constructs a new TabletExternallyReparentedRequest. + * Constructs a new VDiffCreateRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ITabletExternallyReparentedRequest); + constructor(properties?: vtctldata.IVDiffCreateRequest); - /** TabletExternallyReparentedRequest tablet. */ - public tablet?: (topodata.ITabletAlias|null); + /** 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); /** - * Creates a new TabletExternallyReparentedRequest instance using the specified properties. + * Creates a new VDiffCreateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TabletExternallyReparentedRequest instance + * @returns VDiffCreateRequest instance */ - public static create(properties?: vtctldata.ITabletExternallyReparentedRequest): vtctldata.TabletExternallyReparentedRequest; + public static create(properties?: vtctldata.IVDiffCreateRequest): vtctldata.VDiffCreateRequest; /** - * Encodes the specified TabletExternallyReparentedRequest message. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. - * @param message TabletExternallyReparentedRequest message or plain object to encode + * 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.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IVDiffCreateRequest, 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 + * 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.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IVDiffCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer. + * 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 TabletExternallyReparentedRequest + * @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.TabletExternallyReparentedRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffCreateRequest; /** - * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffCreateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TabletExternallyReparentedRequest + * @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.TabletExternallyReparentedRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffCreateRequest; /** - * Verifies a TabletExternallyReparentedRequest message. + * 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 TabletExternallyReparentedRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffCreateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TabletExternallyReparentedRequest + * @returns VDiffCreateRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffCreateRequest; /** - * Creates a plain object from a TabletExternallyReparentedRequest message. Also converts values to other types if specified. - * @param message TabletExternallyReparentedRequest + * 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.TabletExternallyReparentedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VDiffCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TabletExternallyReparentedRequest to JSON. + * Converts this VDiffCreateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TabletExternallyReparentedRequest + * 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 TabletExternallyReparentedResponse. */ - interface ITabletExternallyReparentedResponse { - - /** TabletExternallyReparentedResponse keyspace */ - keyspace?: (string|null); - - /** TabletExternallyReparentedResponse shard */ - shard?: (string|null); - - /** TabletExternallyReparentedResponse new_primary */ - new_primary?: (topodata.ITabletAlias|null); + /** Properties of a VDiffCreateResponse. */ + interface IVDiffCreateResponse { - /** TabletExternallyReparentedResponse old_primary */ - old_primary?: (topodata.ITabletAlias|null); + /** VDiffCreateResponse UUID */ + UUID?: (string|null); } - /** Represents a TabletExternallyReparentedResponse. */ - class TabletExternallyReparentedResponse implements ITabletExternallyReparentedResponse { + /** Represents a VDiffCreateResponse. */ + class VDiffCreateResponse implements IVDiffCreateResponse { /** - * Constructs a new TabletExternallyReparentedResponse. + * Constructs a new VDiffCreateResponse. * @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); + constructor(properties?: vtctldata.IVDiffCreateResponse); - /** TabletExternallyReparentedResponse old_primary. */ - public old_primary?: (topodata.ITabletAlias|null); + /** VDiffCreateResponse UUID. */ + public UUID: string; /** - * Creates a new TabletExternallyReparentedResponse instance using the specified properties. + * Creates a new VDiffCreateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TabletExternallyReparentedResponse instance + * @returns VDiffCreateResponse instance */ - public static create(properties?: vtctldata.ITabletExternallyReparentedResponse): vtctldata.TabletExternallyReparentedResponse; + public static create(properties?: vtctldata.IVDiffCreateResponse): vtctldata.VDiffCreateResponse; /** - * Encodes the specified TabletExternallyReparentedResponse message. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. - * @param message TabletExternallyReparentedResponse message or plain object to encode + * 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.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IVDiffCreateResponse, 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 + * 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.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IVDiffCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer. + * 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 TabletExternallyReparentedResponse + * @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.TabletExternallyReparentedResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffCreateResponse; /** - * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffCreateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TabletExternallyReparentedResponse + * @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.TabletExternallyReparentedResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffCreateResponse; /** - * Verifies a TabletExternallyReparentedResponse message. + * 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 TabletExternallyReparentedResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffCreateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TabletExternallyReparentedResponse + * @returns VDiffCreateResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffCreateResponse; /** - * Creates a plain object from a TabletExternallyReparentedResponse message. Also converts values to other types if specified. - * @param message TabletExternallyReparentedResponse + * 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.TabletExternallyReparentedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VDiffCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TabletExternallyReparentedResponse to JSON. + * Converts this VDiffCreateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TabletExternallyReparentedResponse + * 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 an UpdateCellInfoRequest. */ - interface IUpdateCellInfoRequest { + /** Properties of a VDiffDeleteRequest. */ + interface IVDiffDeleteRequest { - /** UpdateCellInfoRequest name */ - name?: (string|null); + /** VDiffDeleteRequest workflow */ + workflow?: (string|null); - /** UpdateCellInfoRequest cell_info */ - cell_info?: (topodata.ICellInfo|null); + /** VDiffDeleteRequest target_keyspace */ + target_keyspace?: (string|null); + + /** VDiffDeleteRequest arg */ + arg?: (string|null); } - /** Represents an UpdateCellInfoRequest. */ - class UpdateCellInfoRequest implements IUpdateCellInfoRequest { + /** Represents a VDiffDeleteRequest. */ + class VDiffDeleteRequest implements IVDiffDeleteRequest { /** - * Constructs a new UpdateCellInfoRequest. + * Constructs a new VDiffDeleteRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IUpdateCellInfoRequest); + constructor(properties?: vtctldata.IVDiffDeleteRequest); - /** UpdateCellInfoRequest name. */ - public name: string; + /** VDiffDeleteRequest workflow. */ + public workflow: string; - /** UpdateCellInfoRequest cell_info. */ - public cell_info?: (topodata.ICellInfo|null); + /** VDiffDeleteRequest target_keyspace. */ + public target_keyspace: string; + + /** VDiffDeleteRequest arg. */ + public arg: string; /** - * Creates a new UpdateCellInfoRequest instance using the specified properties. + * Creates a new VDiffDeleteRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateCellInfoRequest instance + * @returns VDiffDeleteRequest instance */ - public static create(properties?: vtctldata.IUpdateCellInfoRequest): vtctldata.UpdateCellInfoRequest; + public static create(properties?: vtctldata.IVDiffDeleteRequest): vtctldata.VDiffDeleteRequest; /** - * Encodes the specified UpdateCellInfoRequest message. Does not implicitly {@link vtctldata.UpdateCellInfoRequest.verify|verify} messages. - * @param message UpdateCellInfoRequest message or plain object to encode + * 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.IUpdateCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IVDiffDeleteRequest, 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 + * 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.IUpdateCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IVDiffDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateCellInfoRequest message from the specified reader or buffer. + * 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 UpdateCellInfoRequest + * @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.UpdateCellInfoRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffDeleteRequest; /** - * Decodes an UpdateCellInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffDeleteRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateCellInfoRequest + * @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.UpdateCellInfoRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffDeleteRequest; /** - * Verifies an UpdateCellInfoRequest message. + * 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 an UpdateCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffDeleteRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateCellInfoRequest + * @returns VDiffDeleteRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellInfoRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffDeleteRequest; /** - * Creates a plain object from an UpdateCellInfoRequest message. Also converts values to other types if specified. - * @param message UpdateCellInfoRequest + * 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.UpdateCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VDiffDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateCellInfoRequest to JSON. + * Converts this VDiffDeleteRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateCellInfoRequest + * 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 an UpdateCellInfoResponse. */ - interface IUpdateCellInfoResponse { - - /** UpdateCellInfoResponse name */ - name?: (string|null); - - /** UpdateCellInfoResponse cell_info */ - cell_info?: (topodata.ICellInfo|null); + /** Properties of a VDiffDeleteResponse. */ + interface IVDiffDeleteResponse { } - /** Represents an UpdateCellInfoResponse. */ - class UpdateCellInfoResponse implements IUpdateCellInfoResponse { + /** Represents a VDiffDeleteResponse. */ + class VDiffDeleteResponse implements IVDiffDeleteResponse { /** - * Constructs a new UpdateCellInfoResponse. + * Constructs a new VDiffDeleteResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IUpdateCellInfoResponse); - - /** UpdateCellInfoResponse name. */ - public name: string; - - /** UpdateCellInfoResponse cell_info. */ - public cell_info?: (topodata.ICellInfo|null); + constructor(properties?: vtctldata.IVDiffDeleteResponse); /** - * Creates a new UpdateCellInfoResponse instance using the specified properties. + * Creates a new VDiffDeleteResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateCellInfoResponse instance + * @returns VDiffDeleteResponse instance */ - public static create(properties?: vtctldata.IUpdateCellInfoResponse): vtctldata.UpdateCellInfoResponse; + public static create(properties?: vtctldata.IVDiffDeleteResponse): vtctldata.VDiffDeleteResponse; /** - * Encodes the specified UpdateCellInfoResponse message. Does not implicitly {@link vtctldata.UpdateCellInfoResponse.verify|verify} messages. - * @param message UpdateCellInfoResponse message or plain object to encode + * 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.IUpdateCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IVDiffDeleteResponse, 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 + * 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.IUpdateCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IVDiffDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateCellInfoResponse message from the specified reader or buffer. + * 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 UpdateCellInfoResponse + * @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.UpdateCellInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffDeleteResponse; /** - * Decodes an UpdateCellInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffDeleteResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateCellInfoResponse + * @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.UpdateCellInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffDeleteResponse; /** - * Verifies an UpdateCellInfoResponse message. + * 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 an UpdateCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffDeleteResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateCellInfoResponse + * @returns VDiffDeleteResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellInfoResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffDeleteResponse; /** - * Creates a plain object from an UpdateCellInfoResponse message. Also converts values to other types if specified. - * @param message UpdateCellInfoResponse + * 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.UpdateCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VDiffDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateCellInfoResponse to JSON. + * Converts this VDiffDeleteResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateCellInfoResponse + * 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 an UpdateCellsAliasRequest. */ - interface IUpdateCellsAliasRequest { + /** Properties of a VDiffResumeRequest. */ + interface IVDiffResumeRequest { - /** UpdateCellsAliasRequest name */ - name?: (string|null); + /** VDiffResumeRequest workflow */ + workflow?: (string|null); - /** UpdateCellsAliasRequest cells_alias */ - cells_alias?: (topodata.ICellsAlias|null); + /** VDiffResumeRequest target_keyspace */ + target_keyspace?: (string|null); + + /** VDiffResumeRequest uuid */ + uuid?: (string|null); + + /** VDiffResumeRequest target_shards */ + target_shards?: (string[]|null); } - /** Represents an UpdateCellsAliasRequest. */ - class UpdateCellsAliasRequest implements IUpdateCellsAliasRequest { + /** Represents a VDiffResumeRequest. */ + class VDiffResumeRequest implements IVDiffResumeRequest { /** - * Constructs a new UpdateCellsAliasRequest. + * Constructs a new VDiffResumeRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IUpdateCellsAliasRequest); + constructor(properties?: vtctldata.IVDiffResumeRequest); - /** UpdateCellsAliasRequest name. */ - public name: string; + /** VDiffResumeRequest workflow. */ + public workflow: string; - /** UpdateCellsAliasRequest cells_alias. */ - public cells_alias?: (topodata.ICellsAlias|null); + /** VDiffResumeRequest target_keyspace. */ + public target_keyspace: string; + + /** VDiffResumeRequest uuid. */ + public uuid: string; + + /** VDiffResumeRequest target_shards. */ + public target_shards: string[]; /** - * Creates a new UpdateCellsAliasRequest instance using the specified properties. + * Creates a new VDiffResumeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateCellsAliasRequest instance + * @returns VDiffResumeRequest instance */ - public static create(properties?: vtctldata.IUpdateCellsAliasRequest): vtctldata.UpdateCellsAliasRequest; + public static create(properties?: vtctldata.IVDiffResumeRequest): vtctldata.VDiffResumeRequest; /** - * Encodes the specified UpdateCellsAliasRequest message. Does not implicitly {@link vtctldata.UpdateCellsAliasRequest.verify|verify} messages. - * @param message UpdateCellsAliasRequest message or plain object to encode + * 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.IUpdateCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IVDiffResumeRequest, 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 + * 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.IUpdateCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IVDiffResumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer. + * 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 UpdateCellsAliasRequest + * @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.UpdateCellsAliasRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffResumeRequest; /** - * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffResumeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateCellsAliasRequest + * @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.UpdateCellsAliasRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffResumeRequest; /** - * Verifies an UpdateCellsAliasRequest message. + * 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 an UpdateCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffResumeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateCellsAliasRequest + * @returns VDiffResumeRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellsAliasRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffResumeRequest; /** - * Creates a plain object from an UpdateCellsAliasRequest message. Also converts values to other types if specified. - * @param message UpdateCellsAliasRequest + * 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.UpdateCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VDiffResumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateCellsAliasRequest to JSON. + * Converts this VDiffResumeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateCellsAliasRequest + * 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 an UpdateCellsAliasResponse. */ - interface IUpdateCellsAliasResponse { - - /** UpdateCellsAliasResponse name */ - name?: (string|null); - - /** UpdateCellsAliasResponse cells_alias */ - cells_alias?: (topodata.ICellsAlias|null); + /** Properties of a VDiffResumeResponse. */ + interface IVDiffResumeResponse { } - /** Represents an UpdateCellsAliasResponse. */ - class UpdateCellsAliasResponse implements IUpdateCellsAliasResponse { + /** Represents a VDiffResumeResponse. */ + class VDiffResumeResponse implements IVDiffResumeResponse { /** - * Constructs a new UpdateCellsAliasResponse. + * Constructs a new VDiffResumeResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IUpdateCellsAliasResponse); - - /** UpdateCellsAliasResponse name. */ - public name: string; - - /** UpdateCellsAliasResponse cells_alias. */ - public cells_alias?: (topodata.ICellsAlias|null); + constructor(properties?: vtctldata.IVDiffResumeResponse); /** - * Creates a new UpdateCellsAliasResponse instance using the specified properties. + * Creates a new VDiffResumeResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateCellsAliasResponse instance + * @returns VDiffResumeResponse instance */ - public static create(properties?: vtctldata.IUpdateCellsAliasResponse): vtctldata.UpdateCellsAliasResponse; + public static create(properties?: vtctldata.IVDiffResumeResponse): vtctldata.VDiffResumeResponse; /** - * Encodes the specified UpdateCellsAliasResponse message. Does not implicitly {@link vtctldata.UpdateCellsAliasResponse.verify|verify} messages. - * @param message UpdateCellsAliasResponse message or plain object to encode + * 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.IUpdateCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IVDiffResumeResponse, 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 + * 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.IUpdateCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IVDiffResumeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer. + * 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 UpdateCellsAliasResponse + * @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.UpdateCellsAliasResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffResumeResponse; /** - * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffResumeResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateCellsAliasResponse + * @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.UpdateCellsAliasResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffResumeResponse; /** - * Verifies an UpdateCellsAliasResponse message. + * 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 an UpdateCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffResumeResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateCellsAliasResponse + * @returns VDiffResumeResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellsAliasResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffResumeResponse; /** - * Creates a plain object from an UpdateCellsAliasResponse message. Also converts values to other types if specified. - * @param message UpdateCellsAliasResponse + * 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.UpdateCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VDiffResumeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateCellsAliasResponse to JSON. + * Converts this VDiffResumeResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateCellsAliasResponse + * 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 ValidateRequest. */ - interface IValidateRequest { + /** Properties of a VDiffShowRequest. */ + interface IVDiffShowRequest { - /** ValidateRequest ping_tablets */ - ping_tablets?: (boolean|null); + /** VDiffShowRequest workflow */ + workflow?: (string|null); + + /** VDiffShowRequest target_keyspace */ + target_keyspace?: (string|null); + + /** VDiffShowRequest arg */ + arg?: (string|null); } - /** Represents a ValidateRequest. */ - class ValidateRequest implements IValidateRequest { + /** Represents a VDiffShowRequest. */ + class VDiffShowRequest implements IVDiffShowRequest { /** - * Constructs a new ValidateRequest. + * Constructs a new VDiffShowRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IValidateRequest); + constructor(properties?: vtctldata.IVDiffShowRequest); - /** ValidateRequest ping_tablets. */ - public ping_tablets: boolean; + /** VDiffShowRequest workflow. */ + public workflow: string; + + /** VDiffShowRequest target_keyspace. */ + public target_keyspace: string; + + /** VDiffShowRequest arg. */ + public arg: string; /** - * Creates a new ValidateRequest instance using the specified properties. + * Creates a new VDiffShowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateRequest instance + * @returns VDiffShowRequest instance */ - public static create(properties?: vtctldata.IValidateRequest): vtctldata.ValidateRequest; + public static create(properties?: vtctldata.IVDiffShowRequest): vtctldata.VDiffShowRequest; /** - * Encodes the specified ValidateRequest message. Does not implicitly {@link vtctldata.ValidateRequest.verify|verify} messages. - * @param message ValidateRequest message or plain object to encode + * 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.IValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IVDiffShowRequest, 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 + * 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.IValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IVDiffShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateRequest message from the specified reader or buffer. + * 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 ValidateRequest + * @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.ValidateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffShowRequest; /** - * Decodes a ValidateRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffShowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateRequest + * @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.ValidateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffShowRequest; /** - * Verifies a ValidateRequest message. + * 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 ValidateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffShowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateRequest + * @returns VDiffShowRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffShowRequest; /** - * Creates a plain object from a ValidateRequest message. Also converts values to other types if specified. - * @param message ValidateRequest + * 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.ValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VDiffShowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateRequest to JSON. + * Converts this VDiffShowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateRequest + * 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 ValidateResponse. */ - interface IValidateResponse { - - /** ValidateResponse results */ - results?: (string[]|null); + /** Properties of a VDiffShowResponse. */ + interface IVDiffShowResponse { - /** ValidateResponse results_by_keyspace */ - results_by_keyspace?: ({ [k: string]: vtctldata.IValidateKeyspaceResponse }|null); + /** VDiffShowResponse tablet_responses */ + tablet_responses?: ({ [k: string]: tabletmanagerdata.IVDiffResponse }|null); } - /** Represents a ValidateResponse. */ - class ValidateResponse implements IValidateResponse { + /** Represents a VDiffShowResponse. */ + class VDiffShowResponse implements IVDiffShowResponse { /** - * Constructs a new ValidateResponse. + * Constructs a new VDiffShowResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IValidateResponse); - - /** ValidateResponse results. */ - public results: string[]; + constructor(properties?: vtctldata.IVDiffShowResponse); - /** ValidateResponse results_by_keyspace. */ - public results_by_keyspace: { [k: string]: vtctldata.IValidateKeyspaceResponse }; + /** VDiffShowResponse tablet_responses. */ + public tablet_responses: { [k: string]: tabletmanagerdata.IVDiffResponse }; /** - * Creates a new ValidateResponse instance using the specified properties. + * Creates a new VDiffShowResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateResponse instance + * @returns VDiffShowResponse instance */ - public static create(properties?: vtctldata.IValidateResponse): vtctldata.ValidateResponse; + public static create(properties?: vtctldata.IVDiffShowResponse): vtctldata.VDiffShowResponse; /** - * Encodes the specified ValidateResponse message. Does not implicitly {@link vtctldata.ValidateResponse.verify|verify} messages. - * @param message ValidateResponse message or plain object to encode + * 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.IValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IVDiffShowResponse, 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 + * 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.IValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IVDiffShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateResponse message from the specified reader or buffer. + * 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 ValidateResponse + * @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.ValidateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffShowResponse; /** - * Decodes a ValidateResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffShowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateResponse + * @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.ValidateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffShowResponse; /** - * Verifies a ValidateResponse message. + * 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 ValidateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffShowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateResponse + * @returns VDiffShowResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffShowResponse; /** - * Creates a plain object from a ValidateResponse message. Also converts values to other types if specified. - * @param message ValidateResponse + * 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.ValidateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VDiffShowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateResponse to JSON. + * Converts this VDiffShowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateResponse + * 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 ValidateKeyspaceRequest. */ - interface IValidateKeyspaceRequest { + /** Properties of a VDiffStopRequest. */ + interface IVDiffStopRequest { - /** ValidateKeyspaceRequest keyspace */ - keyspace?: (string|null); + /** VDiffStopRequest workflow */ + workflow?: (string|null); - /** ValidateKeyspaceRequest ping_tablets */ - ping_tablets?: (boolean|null); + /** VDiffStopRequest target_keyspace */ + target_keyspace?: (string|null); + + /** VDiffStopRequest uuid */ + uuid?: (string|null); + + /** VDiffStopRequest target_shards */ + target_shards?: (string[]|null); } - /** Represents a ValidateKeyspaceRequest. */ - class ValidateKeyspaceRequest implements IValidateKeyspaceRequest { + /** Represents a VDiffStopRequest. */ + class VDiffStopRequest implements IVDiffStopRequest { /** - * Constructs a new ValidateKeyspaceRequest. + * Constructs a new VDiffStopRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IValidateKeyspaceRequest); + constructor(properties?: vtctldata.IVDiffStopRequest); - /** ValidateKeyspaceRequest keyspace. */ - public keyspace: string; + /** VDiffStopRequest workflow. */ + public workflow: string; - /** ValidateKeyspaceRequest ping_tablets. */ - public ping_tablets: boolean; + /** VDiffStopRequest target_keyspace. */ + public target_keyspace: string; + + /** VDiffStopRequest uuid. */ + public uuid: string; + + /** VDiffStopRequest target_shards. */ + public target_shards: string[]; /** - * Creates a new ValidateKeyspaceRequest instance using the specified properties. + * Creates a new VDiffStopRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateKeyspaceRequest instance + * @returns VDiffStopRequest instance */ - public static create(properties?: vtctldata.IValidateKeyspaceRequest): vtctldata.ValidateKeyspaceRequest; + public static create(properties?: vtctldata.IVDiffStopRequest): vtctldata.VDiffStopRequest; /** - * Encodes the specified ValidateKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateKeyspaceRequest.verify|verify} messages. - * @param message ValidateKeyspaceRequest message or plain object to encode + * 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.IValidateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IVDiffStopRequest, 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 + * 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.IValidateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IVDiffStopRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer. + * 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 ValidateKeyspaceRequest + * @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.ValidateKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffStopRequest; /** - * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffStopRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateKeyspaceRequest + * @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.ValidateKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffStopRequest; /** - * Verifies a ValidateKeyspaceRequest message. + * 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 ValidateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffStopRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateKeyspaceRequest + * @returns VDiffStopRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffStopRequest; /** - * Creates a plain object from a ValidateKeyspaceRequest message. Also converts values to other types if specified. - * @param message ValidateKeyspaceRequest + * 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.ValidateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VDiffStopRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateKeyspaceRequest to JSON. + * Converts this VDiffStopRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateKeyspaceRequest + * 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 ValidateKeyspaceResponse. */ - interface IValidateKeyspaceResponse { - - /** ValidateKeyspaceResponse results */ - results?: (string[]|null); - - /** ValidateKeyspaceResponse results_by_shard */ - results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); + /** Properties of a VDiffStopResponse. */ + interface IVDiffStopResponse { } - /** Represents a ValidateKeyspaceResponse. */ - class ValidateKeyspaceResponse implements IValidateKeyspaceResponse { + /** Represents a VDiffStopResponse. */ + class VDiffStopResponse implements IVDiffStopResponse { /** - * Constructs a new ValidateKeyspaceResponse. + * Constructs a new VDiffStopResponse. * @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 }; + constructor(properties?: vtctldata.IVDiffStopResponse); /** - * Creates a new ValidateKeyspaceResponse instance using the specified properties. + * Creates a new VDiffStopResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateKeyspaceResponse instance + * @returns VDiffStopResponse instance */ - public static create(properties?: vtctldata.IValidateKeyspaceResponse): vtctldata.ValidateKeyspaceResponse; + public static create(properties?: vtctldata.IVDiffStopResponse): vtctldata.VDiffStopResponse; /** - * Encodes the specified ValidateKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateKeyspaceResponse.verify|verify} messages. - * @param message ValidateKeyspaceResponse message or plain object to encode + * 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.IValidateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IVDiffStopResponse, 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 + * 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.IValidateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IVDiffStopResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer. + * 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 ValidateKeyspaceResponse + * @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.ValidateKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffStopResponse; /** - * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffStopResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateKeyspaceResponse + * @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.ValidateKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffStopResponse; /** - * Verifies a ValidateKeyspaceResponse message. + * 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 ValidateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffStopResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateKeyspaceResponse + * @returns VDiffStopResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffStopResponse; /** - * Creates a plain object from a ValidateKeyspaceResponse message. Also converts values to other types if specified. - * @param message ValidateKeyspaceResponse + * 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.ValidateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VDiffStopResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateKeyspaceResponse to JSON. + * Converts this VDiffStopResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateKeyspaceResponse + * 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 ValidatePermissionsKeyspaceRequest. */ - interface IValidatePermissionsKeyspaceRequest { + /** Properties of a VSchemaCreateRequest. */ + interface IVSchemaCreateRequest { - /** ValidatePermissionsKeyspaceRequest keyspace */ - keyspace?: (string|null); + /** VSchemaCreateRequest v_schema_name */ + v_schema_name?: (string|null); - /** ValidatePermissionsKeyspaceRequest shards */ - shards?: (string[]|null); + /** VSchemaCreateRequest sharded */ + sharded?: (boolean|null); + + /** VSchemaCreateRequest draft */ + draft?: (boolean|null); + + /** VSchemaCreateRequest v_schema_json */ + v_schema_json?: (string|null); } - /** Represents a ValidatePermissionsKeyspaceRequest. */ - class ValidatePermissionsKeyspaceRequest implements IValidatePermissionsKeyspaceRequest { + /** Represents a VSchemaCreateRequest. */ + class VSchemaCreateRequest implements IVSchemaCreateRequest { /** - * Constructs a new ValidatePermissionsKeyspaceRequest. + * Constructs a new VSchemaCreateRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IValidatePermissionsKeyspaceRequest); + constructor(properties?: vtctldata.IVSchemaCreateRequest); - /** ValidatePermissionsKeyspaceRequest keyspace. */ - public keyspace: string; + /** VSchemaCreateRequest v_schema_name. */ + public v_schema_name: string; - /** ValidatePermissionsKeyspaceRequest shards. */ - public shards: string[]; + /** VSchemaCreateRequest sharded. */ + public sharded: boolean; + + /** VSchemaCreateRequest draft. */ + public draft: boolean; + + /** VSchemaCreateRequest v_schema_json. */ + public v_schema_json: string; /** - * Creates a new ValidatePermissionsKeyspaceRequest instance using the specified properties. + * Creates a new VSchemaCreateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ValidatePermissionsKeyspaceRequest instance + * @returns VSchemaCreateRequest instance */ - public static create(properties?: vtctldata.IValidatePermissionsKeyspaceRequest): vtctldata.ValidatePermissionsKeyspaceRequest; + public static create(properties?: vtctldata.IVSchemaCreateRequest): vtctldata.VSchemaCreateRequest; /** - * Encodes the specified ValidatePermissionsKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceRequest.verify|verify} messages. - * @param message ValidatePermissionsKeyspaceRequest message or plain object to encode + * Encodes the specified VSchemaCreateRequest message. Does not implicitly {@link vtctldata.VSchemaCreateRequest.verify|verify} messages. + * @param message VSchemaCreateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IValidatePermissionsKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IVSchemaCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ValidatePermissionsKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceRequest.verify|verify} messages. - * @param message ValidatePermissionsKeyspaceRequest message or plain object to encode + * Encodes the specified VSchemaCreateRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaCreateRequest.verify|verify} messages. + * @param message VSchemaCreateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IValidatePermissionsKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IVSchemaCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidatePermissionsKeyspaceRequest message from the specified reader or buffer. + * Decodes a VSchemaCreateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidatePermissionsKeyspaceRequest + * @returns VSchemaCreateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidatePermissionsKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaCreateRequest; /** - * Decodes a ValidatePermissionsKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaCreateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidatePermissionsKeyspaceRequest + * @returns VSchemaCreateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidatePermissionsKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaCreateRequest; /** - * Verifies a ValidatePermissionsKeyspaceRequest message. + * Verifies a VSchemaCreateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ValidatePermissionsKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaCreateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidatePermissionsKeyspaceRequest + * @returns VSchemaCreateRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidatePermissionsKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaCreateRequest; /** - * Creates a plain object from a ValidatePermissionsKeyspaceRequest message. Also converts values to other types if specified. - * @param message ValidatePermissionsKeyspaceRequest + * Creates a plain object from a VSchemaCreateRequest message. Also converts values to other types if specified. + * @param message VSchemaCreateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ValidatePermissionsKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidatePermissionsKeyspaceRequest to JSON. + * Converts this VSchemaCreateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidatePermissionsKeyspaceRequest + * Gets the default type url for VSchemaCreateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ValidatePermissionsKeyspaceResponse. */ - interface IValidatePermissionsKeyspaceResponse { + /** Properties of a VSchemaCreateResponse. */ + interface IVSchemaCreateResponse { } - /** Represents a ValidatePermissionsKeyspaceResponse. */ - class ValidatePermissionsKeyspaceResponse implements IValidatePermissionsKeyspaceResponse { + /** Represents a VSchemaCreateResponse. */ + class VSchemaCreateResponse implements IVSchemaCreateResponse { /** - * Constructs a new ValidatePermissionsKeyspaceResponse. + * Constructs a new VSchemaCreateResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IValidatePermissionsKeyspaceResponse); + constructor(properties?: vtctldata.IVSchemaCreateResponse); /** - * Creates a new ValidatePermissionsKeyspaceResponse instance using the specified properties. + * Creates a new VSchemaCreateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ValidatePermissionsKeyspaceResponse instance + * @returns VSchemaCreateResponse instance */ - public static create(properties?: vtctldata.IValidatePermissionsKeyspaceResponse): vtctldata.ValidatePermissionsKeyspaceResponse; + public static create(properties?: vtctldata.IVSchemaCreateResponse): vtctldata.VSchemaCreateResponse; /** - * Encodes the specified ValidatePermissionsKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceResponse.verify|verify} messages. - * @param message ValidatePermissionsKeyspaceResponse message or plain object to encode + * Encodes the specified VSchemaCreateResponse message. Does not implicitly {@link vtctldata.VSchemaCreateResponse.verify|verify} messages. + * @param message VSchemaCreateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IValidatePermissionsKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IVSchemaCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ValidatePermissionsKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceResponse.verify|verify} messages. - * @param message ValidatePermissionsKeyspaceResponse message or plain object to encode + * Encodes the specified VSchemaCreateResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaCreateResponse.verify|verify} messages. + * @param message VSchemaCreateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IValidatePermissionsKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IVSchemaCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidatePermissionsKeyspaceResponse message from the specified reader or buffer. + * Decodes a VSchemaCreateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidatePermissionsKeyspaceResponse + * @returns VSchemaCreateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidatePermissionsKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaCreateResponse; /** - * Decodes a ValidatePermissionsKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaCreateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidatePermissionsKeyspaceResponse + * @returns VSchemaCreateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidatePermissionsKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaCreateResponse; /** - * Verifies a ValidatePermissionsKeyspaceResponse message. + * Verifies a VSchemaCreateResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ValidatePermissionsKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaCreateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidatePermissionsKeyspaceResponse + * @returns VSchemaCreateResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidatePermissionsKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaCreateResponse; /** - * Creates a plain object from a ValidatePermissionsKeyspaceResponse message. Also converts values to other types if specified. - * @param message ValidatePermissionsKeyspaceResponse + * Creates a plain object from a VSchemaCreateResponse message. Also converts values to other types if specified. + * @param message VSchemaCreateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ValidatePermissionsKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidatePermissionsKeyspaceResponse to JSON. + * Converts this VSchemaCreateResponse to JSON. * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidatePermissionsKeyspaceResponse - * @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); + */ + public toJSON(): { [k: string]: any }; - /** ValidateSchemaKeyspaceRequest include_views */ - include_views?: (boolean|null); + /** + * Gets the default type url for VSchemaCreateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ValidateSchemaKeyspaceRequest skip_no_primary */ - skip_no_primary?: (boolean|null); + /** Properties of a VSchemaGetRequest. */ + interface IVSchemaGetRequest { - /** ValidateSchemaKeyspaceRequest include_vschema */ - include_vschema?: (boolean|null); + /** VSchemaGetRequest v_schema_name */ + v_schema_name?: (string|null); - /** ValidateSchemaKeyspaceRequest shards */ - shards?: (string[]|null); + /** VSchemaGetRequest include_drafts */ + include_drafts?: (boolean|null); } - /** Represents a ValidateSchemaKeyspaceRequest. */ - class ValidateSchemaKeyspaceRequest implements IValidateSchemaKeyspaceRequest { + /** Represents a VSchemaGetRequest. */ + class VSchemaGetRequest implements IVSchemaGetRequest { /** - * Constructs a new ValidateSchemaKeyspaceRequest. + * Constructs a new VSchemaGetRequest. * @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; + constructor(properties?: vtctldata.IVSchemaGetRequest); - /** ValidateSchemaKeyspaceRequest include_vschema. */ - public include_vschema: boolean; + /** VSchemaGetRequest v_schema_name. */ + public v_schema_name: string; - /** ValidateSchemaKeyspaceRequest shards. */ - public shards: string[]; + /** VSchemaGetRequest include_drafts. */ + public include_drafts: boolean; /** - * Creates a new ValidateSchemaKeyspaceRequest instance using the specified properties. + * Creates a new VSchemaGetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateSchemaKeyspaceRequest instance + * @returns VSchemaGetRequest instance */ - public static create(properties?: vtctldata.IValidateSchemaKeyspaceRequest): vtctldata.ValidateSchemaKeyspaceRequest; + public static create(properties?: vtctldata.IVSchemaGetRequest): vtctldata.VSchemaGetRequest; /** - * Encodes the specified ValidateSchemaKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceRequest.verify|verify} messages. - * @param message ValidateSchemaKeyspaceRequest message or plain object to encode + * Encodes the specified VSchemaGetRequest message. Does not implicitly {@link vtctldata.VSchemaGetRequest.verify|verify} messages. + * @param message VSchemaGetRequest 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; + public static encode(message: vtctldata.IVSchemaGetRequest, 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 + * Encodes the specified VSchemaGetRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaGetRequest.verify|verify} messages. + * @param message VSchemaGetRequest 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; + public static encodeDelimited(message: vtctldata.IVSchemaGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer. + * Decodes a VSchemaGetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateSchemaKeyspaceRequest + * @returns VSchemaGetRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaGetRequest; /** - * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaGetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateSchemaKeyspaceRequest + * @returns VSchemaGetRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaGetRequest; /** - * Verifies a ValidateSchemaKeyspaceRequest message. + * Verifies a VSchemaGetRequest message. * @param message Plain object 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. + * Creates a VSchemaGetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateSchemaKeyspaceRequest + * @returns VSchemaGetRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateSchemaKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaGetRequest; /** - * Creates a plain object from a ValidateSchemaKeyspaceRequest message. Also converts values to other types if specified. - * @param message ValidateSchemaKeyspaceRequest + * Creates a plain object from a VSchemaGetRequest message. Also converts values to other types if specified. + * @param message VSchemaGetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ValidateSchemaKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaGetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateSchemaKeyspaceRequest to JSON. + * Converts this VSchemaGetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateSchemaKeyspaceRequest + * Gets the default type url for VSchemaGetRequest * @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); + /** Properties of a VSchemaGetResponse. */ + interface IVSchemaGetResponse { - /** ValidateSchemaKeyspaceResponse results_by_shard */ - results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); + /** VSchemaGetResponse v_schema */ + v_schema?: (vschema.IKeyspace|null); } - /** Represents a ValidateSchemaKeyspaceResponse. */ - class ValidateSchemaKeyspaceResponse implements IValidateSchemaKeyspaceResponse { + /** Represents a VSchemaGetResponse. */ + class VSchemaGetResponse implements IVSchemaGetResponse { /** - * Constructs a new ValidateSchemaKeyspaceResponse. + * Constructs a new VSchemaGetResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IValidateSchemaKeyspaceResponse); + constructor(properties?: vtctldata.IVSchemaGetResponse); - /** ValidateSchemaKeyspaceResponse results. */ - public results: string[]; - - /** ValidateSchemaKeyspaceResponse results_by_shard. */ - public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; + /** VSchemaGetResponse v_schema. */ + public v_schema?: (vschema.IKeyspace|null); /** - * Creates a new ValidateSchemaKeyspaceResponse instance using the specified properties. + * Creates a new VSchemaGetResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateSchemaKeyspaceResponse instance + * @returns VSchemaGetResponse instance */ - public static create(properties?: vtctldata.IValidateSchemaKeyspaceResponse): vtctldata.ValidateSchemaKeyspaceResponse; + public static create(properties?: vtctldata.IVSchemaGetResponse): vtctldata.VSchemaGetResponse; /** - * Encodes the specified ValidateSchemaKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceResponse.verify|verify} messages. - * @param message ValidateSchemaKeyspaceResponse message or plain object to encode + * Encodes the specified VSchemaGetResponse message. Does not implicitly {@link vtctldata.VSchemaGetResponse.verify|verify} messages. + * @param message VSchemaGetResponse 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; + public static encode(message: vtctldata.IVSchemaGetResponse, 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 + * Encodes the specified VSchemaGetResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaGetResponse.verify|verify} messages. + * @param message VSchemaGetResponse 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; + public static encodeDelimited(message: vtctldata.IVSchemaGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer. + * Decodes a VSchemaGetResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateSchemaKeyspaceResponse + * @returns VSchemaGetResponse * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaGetResponse; /** - * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaGetResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateSchemaKeyspaceResponse + * @returns VSchemaGetResponse * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaGetResponse; /** - * Verifies a ValidateSchemaKeyspaceResponse message. + * Verifies a VSchemaGetResponse message. * @param message Plain object 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. + * Creates a VSchemaGetResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateSchemaKeyspaceResponse + * @returns VSchemaGetResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateSchemaKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaGetResponse; /** - * Creates a plain object from a ValidateSchemaKeyspaceResponse message. Also converts values to other types if specified. - * @param message ValidateSchemaKeyspaceResponse + * Creates a plain object from a VSchemaGetResponse message. Also converts values to other types if specified. + * @param message VSchemaGetResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ValidateSchemaKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaGetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateSchemaKeyspaceResponse to JSON. + * Converts this VSchemaGetResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateSchemaKeyspaceResponse + * Gets the default type url for VSchemaGetResponse * @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 { + /** Properties of a VSchemaUpdateRequest. */ + interface IVSchemaUpdateRequest { - /** ValidateShardRequest keyspace */ - keyspace?: (string|null); + /** VSchemaUpdateRequest v_schema_name */ + v_schema_name?: (string|null); - /** ValidateShardRequest shard */ - shard?: (string|null); + /** VSchemaUpdateRequest sharded */ + sharded?: (boolean|null); - /** ValidateShardRequest ping_tablets */ - ping_tablets?: (boolean|null); + /** VSchemaUpdateRequest foreign_key_mode */ + foreign_key_mode?: (string|null); + + /** VSchemaUpdateRequest draft */ + draft?: (boolean|null); + + /** VSchemaUpdateRequest multi_tenant */ + multi_tenant?: (boolean|null); + + /** VSchemaUpdateRequest tenant_id_column_name */ + tenant_id_column_name?: (string|null); + + /** VSchemaUpdateRequest tenant_id_column_type */ + tenant_id_column_type?: (string|null); } - /** Represents a ValidateShardRequest. */ - class ValidateShardRequest implements IValidateShardRequest { + /** Represents a VSchemaUpdateRequest. */ + class VSchemaUpdateRequest implements IVSchemaUpdateRequest { /** - * Constructs a new ValidateShardRequest. + * Constructs a new VSchemaUpdateRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IValidateShardRequest); + constructor(properties?: vtctldata.IVSchemaUpdateRequest); - /** ValidateShardRequest keyspace. */ - public keyspace: string; + /** VSchemaUpdateRequest v_schema_name. */ + public v_schema_name: string; - /** ValidateShardRequest shard. */ - public shard: string; + /** VSchemaUpdateRequest sharded. */ + public sharded?: (boolean|null); - /** ValidateShardRequest ping_tablets. */ - public ping_tablets: boolean; + /** VSchemaUpdateRequest foreign_key_mode. */ + public foreign_key_mode?: (string|null); + + /** VSchemaUpdateRequest draft. */ + public draft?: (boolean|null); + + /** VSchemaUpdateRequest multi_tenant. */ + public multi_tenant?: (boolean|null); + + /** VSchemaUpdateRequest tenant_id_column_name. */ + public tenant_id_column_name?: (string|null); + + /** VSchemaUpdateRequest tenant_id_column_type. */ + public tenant_id_column_type?: (string|null); /** - * Creates a new ValidateShardRequest instance using the specified properties. + * Creates a new VSchemaUpdateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateShardRequest instance + * @returns VSchemaUpdateRequest instance */ - public static create(properties?: vtctldata.IValidateShardRequest): vtctldata.ValidateShardRequest; + public static create(properties?: vtctldata.IVSchemaUpdateRequest): vtctldata.VSchemaUpdateRequest; /** - * Encodes the specified ValidateShardRequest message. Does not implicitly {@link vtctldata.ValidateShardRequest.verify|verify} messages. - * @param message ValidateShardRequest message or plain object to encode + * Encodes the specified VSchemaUpdateRequest message. Does not implicitly {@link vtctldata.VSchemaUpdateRequest.verify|verify} messages. + * @param message VSchemaUpdateRequest 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; + public static encode(message: vtctldata.IVSchemaUpdateRequest, 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 + * Encodes the specified VSchemaUpdateRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaUpdateRequest.verify|verify} messages. + * @param message VSchemaUpdateRequest 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; + public static encodeDelimited(message: vtctldata.IVSchemaUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateShardRequest message from the specified reader or buffer. + * Decodes a VSchemaUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateShardRequest + * @returns VSchemaUpdateRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaUpdateRequest; /** - * Decodes a ValidateShardRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaUpdateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateShardRequest + * @returns VSchemaUpdateRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaUpdateRequest; /** - * Verifies a ValidateShardRequest message. + * Verifies a VSchemaUpdateRequest message. * @param message Plain object 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. + * Creates a VSchemaUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateShardRequest + * @returns VSchemaUpdateRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaUpdateRequest; /** - * Creates a plain object from a ValidateShardRequest message. Also converts values to other types if specified. - * @param message ValidateShardRequest + * Creates a plain object from a VSchemaUpdateRequest message. Also converts values to other types if specified. + * @param message VSchemaUpdateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ValidateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateShardRequest to JSON. + * Converts this VSchemaUpdateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateShardRequest + * Gets the default type url for VSchemaUpdateRequest * @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); + /** Properties of a VSchemaUpdateResponse. */ + interface IVSchemaUpdateResponse { } - /** Represents a ValidateShardResponse. */ - class ValidateShardResponse implements IValidateShardResponse { + /** Represents a VSchemaUpdateResponse. */ + class VSchemaUpdateResponse implements IVSchemaUpdateResponse { /** - * Constructs a new ValidateShardResponse. + * Constructs a new VSchemaUpdateResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IValidateShardResponse); - - /** ValidateShardResponse results. */ - public results: string[]; + constructor(properties?: vtctldata.IVSchemaUpdateResponse); /** - * Creates a new ValidateShardResponse instance using the specified properties. + * Creates a new VSchemaUpdateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateShardResponse instance + * @returns VSchemaUpdateResponse instance */ - public static create(properties?: vtctldata.IValidateShardResponse): vtctldata.ValidateShardResponse; + public static create(properties?: vtctldata.IVSchemaUpdateResponse): vtctldata.VSchemaUpdateResponse; /** - * Encodes the specified ValidateShardResponse message. Does not implicitly {@link vtctldata.ValidateShardResponse.verify|verify} messages. - * @param message ValidateShardResponse message or plain object to encode + * Encodes the specified VSchemaUpdateResponse message. Does not implicitly {@link vtctldata.VSchemaUpdateResponse.verify|verify} messages. + * @param message VSchemaUpdateResponse 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; + public static encode(message: vtctldata.IVSchemaUpdateResponse, 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 + * Encodes the specified VSchemaUpdateResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaUpdateResponse.verify|verify} messages. + * @param message VSchemaUpdateResponse 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; + public static encodeDelimited(message: vtctldata.IVSchemaUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateShardResponse message from the specified reader or buffer. + * Decodes a VSchemaUpdateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateShardResponse + * @returns VSchemaUpdateResponse * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaUpdateResponse; /** - * Decodes a ValidateShardResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaUpdateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateShardResponse + * @returns VSchemaUpdateResponse * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaUpdateResponse; /** - * Verifies a ValidateShardResponse message. + * Verifies a VSchemaUpdateResponse message. * @param message Plain object 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. + * Creates a VSchemaUpdateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateShardResponse + * @returns VSchemaUpdateResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaUpdateResponse; /** - * Creates a plain object from a ValidateShardResponse message. Also converts values to other types if specified. - * @param message ValidateShardResponse + * Creates a plain object from a VSchemaUpdateResponse message. Also converts values to other types if specified. + * @param message VSchemaUpdateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ValidateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaUpdateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateShardResponse to JSON. + * Converts this VSchemaUpdateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateShardResponse + * Gets the default type url for VSchemaUpdateResponse * @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 { + /** Properties of a VSchemaPublishRequest. */ + interface IVSchemaPublishRequest { - /** ValidateVersionKeyspaceRequest keyspace */ - keyspace?: (string|null); + /** VSchemaPublishRequest v_schema_name */ + v_schema_name?: (string|null); } - /** Represents a ValidateVersionKeyspaceRequest. */ - class ValidateVersionKeyspaceRequest implements IValidateVersionKeyspaceRequest { + /** Represents a VSchemaPublishRequest. */ + class VSchemaPublishRequest implements IVSchemaPublishRequest { /** - * Constructs a new ValidateVersionKeyspaceRequest. + * Constructs a new VSchemaPublishRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IValidateVersionKeyspaceRequest); + constructor(properties?: vtctldata.IVSchemaPublishRequest); - /** ValidateVersionKeyspaceRequest keyspace. */ - public keyspace: string; + /** VSchemaPublishRequest v_schema_name. */ + public v_schema_name: string; /** - * Creates a new ValidateVersionKeyspaceRequest instance using the specified properties. + * Creates a new VSchemaPublishRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateVersionKeyspaceRequest instance + * @returns VSchemaPublishRequest instance */ - public static create(properties?: vtctldata.IValidateVersionKeyspaceRequest): vtctldata.ValidateVersionKeyspaceRequest; + public static create(properties?: vtctldata.IVSchemaPublishRequest): vtctldata.VSchemaPublishRequest; /** - * Encodes the specified ValidateVersionKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceRequest.verify|verify} messages. - * @param message ValidateVersionKeyspaceRequest message or plain object to encode + * Encodes the specified VSchemaPublishRequest message. Does not implicitly {@link vtctldata.VSchemaPublishRequest.verify|verify} messages. + * @param message VSchemaPublishRequest 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; + public static encode(message: vtctldata.IVSchemaPublishRequest, 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 + * Encodes the specified VSchemaPublishRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaPublishRequest.verify|verify} messages. + * @param message VSchemaPublishRequest 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; + public static encodeDelimited(message: vtctldata.IVSchemaPublishRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer. + * Decodes a VSchemaPublishRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateVersionKeyspaceRequest + * @returns VSchemaPublishRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaPublishRequest; /** - * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaPublishRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateVersionKeyspaceRequest + * @returns VSchemaPublishRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaPublishRequest; /** - * Verifies a ValidateVersionKeyspaceRequest message. + * Verifies a VSchemaPublishRequest message. * @param message Plain object 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. + * Creates a VSchemaPublishRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateVersionKeyspaceRequest + * @returns VSchemaPublishRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaPublishRequest; /** - * Creates a plain object from a ValidateVersionKeyspaceRequest message. Also converts values to other types if specified. - * @param message ValidateVersionKeyspaceRequest + * Creates a plain object from a VSchemaPublishRequest message. Also converts values to other types if specified. + * @param message VSchemaPublishRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ValidateVersionKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaPublishRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateVersionKeyspaceRequest to JSON. + * Converts this VSchemaPublishRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateVersionKeyspaceRequest + * Gets the default type url for VSchemaPublishRequest * @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); + /** Properties of a VSchemaPublishResponse. */ + interface IVSchemaPublishResponse { } - /** Represents a ValidateVersionKeyspaceResponse. */ - class ValidateVersionKeyspaceResponse implements IValidateVersionKeyspaceResponse { + /** Represents a VSchemaPublishResponse. */ + class VSchemaPublishResponse implements IVSchemaPublishResponse { /** - * Constructs a new ValidateVersionKeyspaceResponse. + * Constructs a new VSchemaPublishResponse. * @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 }; + constructor(properties?: vtctldata.IVSchemaPublishResponse); /** - * Creates a new ValidateVersionKeyspaceResponse instance using the specified properties. + * Creates a new VSchemaPublishResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateVersionKeyspaceResponse instance + * @returns VSchemaPublishResponse instance */ - public static create(properties?: vtctldata.IValidateVersionKeyspaceResponse): vtctldata.ValidateVersionKeyspaceResponse; + public static create(properties?: vtctldata.IVSchemaPublishResponse): vtctldata.VSchemaPublishResponse; /** - * Encodes the specified ValidateVersionKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceResponse.verify|verify} messages. - * @param message ValidateVersionKeyspaceResponse message or plain object to encode + * Encodes the specified VSchemaPublishResponse message. Does not implicitly {@link vtctldata.VSchemaPublishResponse.verify|verify} messages. + * @param message VSchemaPublishResponse 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; + public static encode(message: vtctldata.IVSchemaPublishResponse, 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 + * Encodes the specified VSchemaPublishResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaPublishResponse.verify|verify} messages. + * @param message VSchemaPublishResponse 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; + public static encodeDelimited(message: vtctldata.IVSchemaPublishResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer. + * Decodes a VSchemaPublishResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateVersionKeyspaceResponse + * @returns VSchemaPublishResponse * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaPublishResponse; /** - * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaPublishResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateVersionKeyspaceResponse + * @returns VSchemaPublishResponse * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaPublishResponse; /** - * Verifies a ValidateVersionKeyspaceResponse message. + * Verifies a VSchemaPublishResponse message. * @param message Plain object 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. + * Creates a VSchemaPublishResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateVersionKeyspaceResponse + * @returns VSchemaPublishResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaPublishResponse; /** - * Creates a plain object from a ValidateVersionKeyspaceResponse message. Also converts values to other types if specified. - * @param message ValidateVersionKeyspaceResponse + * Creates a plain object from a VSchemaPublishResponse message. Also converts values to other types if specified. + * @param message VSchemaPublishResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ValidateVersionKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaPublishResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateVersionKeyspaceResponse to JSON. + * Converts this VSchemaPublishResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateVersionKeyspaceResponse + * Gets the default type url for VSchemaPublishResponse * @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 { + /** Properties of a VSchemaAddVindexRequest. */ + interface IVSchemaAddVindexRequest { - /** ValidateVersionShardRequest keyspace */ - keyspace?: (string|null); + /** VSchemaAddVindexRequest v_schema_name */ + v_schema_name?: (string|null); - /** ValidateVersionShardRequest shard */ - shard?: (string|null); + /** VSchemaAddVindexRequest vindex_name */ + vindex_name?: (string|null); + + /** VSchemaAddVindexRequest vindex_type */ + vindex_type?: (string|null); + + /** VSchemaAddVindexRequest params */ + params?: ({ [k: string]: string }|null); } - /** Represents a ValidateVersionShardRequest. */ - class ValidateVersionShardRequest implements IValidateVersionShardRequest { + /** Represents a VSchemaAddVindexRequest. */ + class VSchemaAddVindexRequest implements IVSchemaAddVindexRequest { /** - * Constructs a new ValidateVersionShardRequest. + * Constructs a new VSchemaAddVindexRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IValidateVersionShardRequest); + constructor(properties?: vtctldata.IVSchemaAddVindexRequest); - /** ValidateVersionShardRequest keyspace. */ - public keyspace: string; + /** VSchemaAddVindexRequest v_schema_name. */ + public v_schema_name: string; - /** ValidateVersionShardRequest shard. */ - public shard: string; + /** VSchemaAddVindexRequest vindex_name. */ + public vindex_name: string; + + /** VSchemaAddVindexRequest vindex_type. */ + public vindex_type: string; + + /** VSchemaAddVindexRequest params. */ + public params: { [k: string]: string }; /** - * Creates a new ValidateVersionShardRequest instance using the specified properties. + * Creates a new VSchemaAddVindexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateVersionShardRequest instance + * @returns VSchemaAddVindexRequest instance */ - public static create(properties?: vtctldata.IValidateVersionShardRequest): vtctldata.ValidateVersionShardRequest; + public static create(properties?: vtctldata.IVSchemaAddVindexRequest): vtctldata.VSchemaAddVindexRequest; /** - * Encodes the specified ValidateVersionShardRequest message. Does not implicitly {@link vtctldata.ValidateVersionShardRequest.verify|verify} messages. - * @param message ValidateVersionShardRequest message or plain object to encode + * Encodes the specified VSchemaAddVindexRequest message. Does not implicitly {@link vtctldata.VSchemaAddVindexRequest.verify|verify} messages. + * @param message VSchemaAddVindexRequest 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; + public static encode(message: vtctldata.IVSchemaAddVindexRequest, 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 + * Encodes the specified VSchemaAddVindexRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaAddVindexRequest.verify|verify} messages. + * @param message VSchemaAddVindexRequest 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; + public static encodeDelimited(message: vtctldata.IVSchemaAddVindexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateVersionShardRequest message from the specified reader or buffer. + * Decodes a VSchemaAddVindexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateVersionShardRequest + * @returns VSchemaAddVindexRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaAddVindexRequest; /** - * Decodes a ValidateVersionShardRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddVindexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateVersionShardRequest + * @returns VSchemaAddVindexRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaAddVindexRequest; /** - * Verifies a ValidateVersionShardRequest message. + * Verifies a VSchemaAddVindexRequest message. * @param message Plain object 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. + * Creates a VSchemaAddVindexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateVersionShardRequest + * @returns VSchemaAddVindexRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaAddVindexRequest; /** - * Creates a plain object from a ValidateVersionShardRequest message. Also converts values to other types if specified. - * @param message ValidateVersionShardRequest + * Creates a plain object from a VSchemaAddVindexRequest message. Also converts values to other types if specified. + * @param message VSchemaAddVindexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ValidateVersionShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaAddVindexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateVersionShardRequest to JSON. + * Converts this VSchemaAddVindexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateVersionShardRequest + * Gets the default type url for VSchemaAddVindexRequest * @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); + /** Properties of a VSchemaAddVindexResponse. */ + interface IVSchemaAddVindexResponse { } - /** Represents a ValidateVersionShardResponse. */ - class ValidateVersionShardResponse implements IValidateVersionShardResponse { + /** Represents a VSchemaAddVindexResponse. */ + class VSchemaAddVindexResponse implements IVSchemaAddVindexResponse { /** - * Constructs a new ValidateVersionShardResponse. + * Constructs a new VSchemaAddVindexResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IValidateVersionShardResponse); - - /** ValidateVersionShardResponse results. */ - public results: string[]; + constructor(properties?: vtctldata.IVSchemaAddVindexResponse); /** - * Creates a new ValidateVersionShardResponse instance using the specified properties. + * Creates a new VSchemaAddVindexResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateVersionShardResponse instance + * @returns VSchemaAddVindexResponse instance */ - public static create(properties?: vtctldata.IValidateVersionShardResponse): vtctldata.ValidateVersionShardResponse; + public static create(properties?: vtctldata.IVSchemaAddVindexResponse): vtctldata.VSchemaAddVindexResponse; /** - * Encodes the specified ValidateVersionShardResponse message. Does not implicitly {@link vtctldata.ValidateVersionShardResponse.verify|verify} messages. - * @param message ValidateVersionShardResponse message or plain object to encode + * Encodes the specified VSchemaAddVindexResponse message. Does not implicitly {@link vtctldata.VSchemaAddVindexResponse.verify|verify} messages. + * @param message VSchemaAddVindexResponse 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; + public static encode(message: vtctldata.IVSchemaAddVindexResponse, 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 + * Encodes the specified VSchemaAddVindexResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaAddVindexResponse.verify|verify} messages. + * @param message VSchemaAddVindexResponse 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; + public static encodeDelimited(message: vtctldata.IVSchemaAddVindexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateVersionShardResponse message from the specified reader or buffer. + * Decodes a VSchemaAddVindexResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateVersionShardResponse + * @returns VSchemaAddVindexResponse * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaAddVindexResponse; /** - * Decodes a ValidateVersionShardResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddVindexResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateVersionShardResponse + * @returns VSchemaAddVindexResponse * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaAddVindexResponse; /** - * Verifies a ValidateVersionShardResponse message. + * Verifies a VSchemaAddVindexResponse message. * @param message Plain object 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. + * Creates a VSchemaAddVindexResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateVersionShardResponse + * @returns VSchemaAddVindexResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaAddVindexResponse; /** - * Creates a plain object from a ValidateVersionShardResponse message. Also converts values to other types if specified. - * @param message ValidateVersionShardResponse + * Creates a plain object from a VSchemaAddVindexResponse message. Also converts values to other types if specified. + * @param message VSchemaAddVindexResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ValidateVersionShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaAddVindexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateVersionShardResponse to JSON. + * Converts this VSchemaAddVindexResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateVersionShardResponse + * Gets the default type url for VSchemaAddVindexResponse * @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); + /** Properties of a VSchemaRemoveVindexRequest. */ + interface IVSchemaRemoveVindexRequest { - /** ValidateVSchemaRequest exclude_tables */ - exclude_tables?: (string[]|null); + /** VSchemaRemoveVindexRequest v_schema_name */ + v_schema_name?: (string|null); - /** ValidateVSchemaRequest include_views */ - include_views?: (boolean|null); + /** VSchemaRemoveVindexRequest vindex_name */ + vindex_name?: (string|null); } - /** Represents a ValidateVSchemaRequest. */ - class ValidateVSchemaRequest implements IValidateVSchemaRequest { + /** Represents a VSchemaRemoveVindexRequest. */ + class VSchemaRemoveVindexRequest implements IVSchemaRemoveVindexRequest { /** - * Constructs a new ValidateVSchemaRequest. + * Constructs a new VSchemaRemoveVindexRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IValidateVSchemaRequest); - - /** ValidateVSchemaRequest keyspace. */ - public keyspace: string; - - /** ValidateVSchemaRequest shards. */ - public shards: string[]; + constructor(properties?: vtctldata.IVSchemaRemoveVindexRequest); - /** ValidateVSchemaRequest exclude_tables. */ - public exclude_tables: string[]; + /** VSchemaRemoveVindexRequest v_schema_name. */ + public v_schema_name: string; - /** ValidateVSchemaRequest include_views. */ - public include_views: boolean; + /** VSchemaRemoveVindexRequest vindex_name. */ + public vindex_name: string; /** - * Creates a new ValidateVSchemaRequest instance using the specified properties. + * Creates a new VSchemaRemoveVindexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateVSchemaRequest instance + * @returns VSchemaRemoveVindexRequest instance */ - public static create(properties?: vtctldata.IValidateVSchemaRequest): vtctldata.ValidateVSchemaRequest; + public static create(properties?: vtctldata.IVSchemaRemoveVindexRequest): vtctldata.VSchemaRemoveVindexRequest; /** - * Encodes the specified ValidateVSchemaRequest message. Does not implicitly {@link vtctldata.ValidateVSchemaRequest.verify|verify} messages. - * @param message ValidateVSchemaRequest message or plain object to encode + * Encodes the specified VSchemaRemoveVindexRequest message. Does not implicitly {@link vtctldata.VSchemaRemoveVindexRequest.verify|verify} messages. + * @param message VSchemaRemoveVindexRequest 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; + public static encode(message: vtctldata.IVSchemaRemoveVindexRequest, 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 + * Encodes the specified VSchemaRemoveVindexRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaRemoveVindexRequest.verify|verify} messages. + * @param message VSchemaRemoveVindexRequest 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; + public static encodeDelimited(message: vtctldata.IVSchemaRemoveVindexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateVSchemaRequest message from the specified reader or buffer. + * Decodes a VSchemaRemoveVindexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateVSchemaRequest + * @returns VSchemaRemoveVindexRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaRemoveVindexRequest; /** - * Decodes a ValidateVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaRemoveVindexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateVSchemaRequest + * @returns VSchemaRemoveVindexRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaRemoveVindexRequest; /** - * Verifies a ValidateVSchemaRequest message. + * Verifies a VSchemaRemoveVindexRequest message. * @param message Plain object 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. + * Creates a VSchemaRemoveVindexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateVSchemaRequest + * @returns VSchemaRemoveVindexRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVSchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaRemoveVindexRequest; /** - * Creates a plain object from a ValidateVSchemaRequest message. Also converts values to other types if specified. - * @param message ValidateVSchemaRequest + * Creates a plain object from a VSchemaRemoveVindexRequest message. Also converts values to other types if specified. + * @param message VSchemaRemoveVindexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ValidateVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaRemoveVindexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateVSchemaRequest to JSON. + * Converts this VSchemaRemoveVindexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateVSchemaRequest + * Gets the default type url for VSchemaRemoveVindexRequest * @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); + /** Properties of a VSchemaRemoveVindexResponse. */ + interface IVSchemaRemoveVindexResponse { } - /** Represents a ValidateVSchemaResponse. */ - class ValidateVSchemaResponse implements IValidateVSchemaResponse { + /** Represents a VSchemaRemoveVindexResponse. */ + class VSchemaRemoveVindexResponse implements IVSchemaRemoveVindexResponse { /** - * Constructs a new ValidateVSchemaResponse. + * Constructs a new VSchemaRemoveVindexResponse. * @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 }; + constructor(properties?: vtctldata.IVSchemaRemoveVindexResponse); /** - * Creates a new ValidateVSchemaResponse instance using the specified properties. + * Creates a new VSchemaRemoveVindexResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateVSchemaResponse instance + * @returns VSchemaRemoveVindexResponse instance */ - public static create(properties?: vtctldata.IValidateVSchemaResponse): vtctldata.ValidateVSchemaResponse; + public static create(properties?: vtctldata.IVSchemaRemoveVindexResponse): vtctldata.VSchemaRemoveVindexResponse; /** - * Encodes the specified ValidateVSchemaResponse message. Does not implicitly {@link vtctldata.ValidateVSchemaResponse.verify|verify} messages. - * @param message ValidateVSchemaResponse message or plain object to encode + * Encodes the specified VSchemaRemoveVindexResponse message. Does not implicitly {@link vtctldata.VSchemaRemoveVindexResponse.verify|verify} messages. + * @param message VSchemaRemoveVindexResponse 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; + public static encode(message: vtctldata.IVSchemaRemoveVindexResponse, 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 + * Encodes the specified VSchemaRemoveVindexResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaRemoveVindexResponse.verify|verify} messages. + * @param message VSchemaRemoveVindexResponse 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; + public static encodeDelimited(message: vtctldata.IVSchemaRemoveVindexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateVSchemaResponse message from the specified reader or buffer. + * Decodes a VSchemaRemoveVindexResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateVSchemaResponse + * @returns VSchemaRemoveVindexResponse * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaRemoveVindexResponse; /** - * Decodes a ValidateVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaRemoveVindexResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateVSchemaResponse + * @returns VSchemaRemoveVindexResponse * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaRemoveVindexResponse; /** - * Verifies a ValidateVSchemaResponse message. + * Verifies a VSchemaRemoveVindexResponse message. * @param message Plain object 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. + * Creates a VSchemaRemoveVindexResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateVSchemaResponse + * @returns VSchemaRemoveVindexResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVSchemaResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaRemoveVindexResponse; /** - * Creates a plain object from a ValidateVSchemaResponse message. Also converts values to other types if specified. - * @param message ValidateVSchemaResponse + * Creates a plain object from a VSchemaRemoveVindexResponse message. Also converts values to other types if specified. + * @param message VSchemaRemoveVindexResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ValidateVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaRemoveVindexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateVSchemaResponse to JSON. + * Converts this VSchemaRemoveVindexResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateVSchemaResponse + * Gets the default type url for VSchemaRemoveVindexResponse * @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 { + /** Properties of a VSchemaAddLookupVindexRequest. */ + interface IVSchemaAddLookupVindexRequest { - /** VDiffCreateRequest workflow */ - workflow?: (string|null); + /** VSchemaAddLookupVindexRequest v_schema_name */ + v_schema_name?: (string|null); - /** VDiffCreateRequest target_keyspace */ - target_keyspace?: (string|null); + /** VSchemaAddLookupVindexRequest vindex_name */ + vindex_name?: (string|null); - /** VDiffCreateRequest uuid */ - uuid?: (string|null); + /** VSchemaAddLookupVindexRequest lookup_vindex_type */ + lookup_vindex_type?: (string|null); - /** VDiffCreateRequest source_cells */ - source_cells?: (string[]|null); + /** VSchemaAddLookupVindexRequest table_name */ + table_name?: (string|null); - /** VDiffCreateRequest target_cells */ - target_cells?: (string[]|null); + /** VSchemaAddLookupVindexRequest from_columns */ + from_columns?: (string[]|null); - /** VDiffCreateRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); + /** VSchemaAddLookupVindexRequest owner */ + owner?: (string|null); - /** VDiffCreateRequest tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + /** VSchemaAddLookupVindexRequest ignore_nulls */ + ignore_nulls?: (boolean|null); + } - /** VDiffCreateRequest tables */ - tables?: (string[]|null); + /** Represents a VSchemaAddLookupVindexRequest. */ + class VSchemaAddLookupVindexRequest implements IVSchemaAddLookupVindexRequest { - /** VDiffCreateRequest limit */ - limit?: (number|Long|null); + /** + * Constructs a new VSchemaAddLookupVindexRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVSchemaAddLookupVindexRequest); - /** VDiffCreateRequest filtered_replication_wait_time */ - filtered_replication_wait_time?: (vttime.IDuration|null); + /** VSchemaAddLookupVindexRequest v_schema_name. */ + public v_schema_name: string; - /** VDiffCreateRequest debug_query */ - debug_query?: (boolean|null); + /** VSchemaAddLookupVindexRequest vindex_name. */ + public vindex_name: string; - /** VDiffCreateRequest only_p_ks */ - only_p_ks?: (boolean|null); + /** VSchemaAddLookupVindexRequest lookup_vindex_type. */ + public lookup_vindex_type: string; - /** VDiffCreateRequest update_table_stats */ - update_table_stats?: (boolean|null); + /** VSchemaAddLookupVindexRequest table_name. */ + public table_name: string; - /** VDiffCreateRequest max_extra_rows_to_compare */ - max_extra_rows_to_compare?: (number|Long|null); + /** VSchemaAddLookupVindexRequest from_columns. */ + public from_columns: string[]; - /** VDiffCreateRequest wait */ - wait?: (boolean|null); + /** VSchemaAddLookupVindexRequest owner. */ + public owner: string; - /** VDiffCreateRequest wait_update_interval */ - wait_update_interval?: (vttime.IDuration|null); + /** VSchemaAddLookupVindexRequest ignore_nulls. */ + public ignore_nulls: boolean; - /** VDiffCreateRequest auto_retry */ - auto_retry?: (boolean|null); + /** + * Creates a new VSchemaAddLookupVindexRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns VSchemaAddLookupVindexRequest instance + */ + public static create(properties?: vtctldata.IVSchemaAddLookupVindexRequest): vtctldata.VSchemaAddLookupVindexRequest; + + /** + * Encodes the specified VSchemaAddLookupVindexRequest message. Does not implicitly {@link vtctldata.VSchemaAddLookupVindexRequest.verify|verify} messages. + * @param message VSchemaAddLookupVindexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVSchemaAddLookupVindexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VSchemaAddLookupVindexRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaAddLookupVindexRequest.verify|verify} messages. + * @param message VSchemaAddLookupVindexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVSchemaAddLookupVindexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VSchemaAddLookupVindexRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VSchemaAddLookupVindexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaAddLookupVindexRequest; + + /** + * Decodes a VSchemaAddLookupVindexRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VSchemaAddLookupVindexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaAddLookupVindexRequest; + + /** + * Verifies a VSchemaAddLookupVindexRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** VDiffCreateRequest verbose */ - verbose?: (boolean|null); + /** + * Creates a VSchemaAddLookupVindexRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VSchemaAddLookupVindexRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaAddLookupVindexRequest; - /** VDiffCreateRequest max_report_sample_rows */ - max_report_sample_rows?: (number|Long|null); + /** + * Creates a plain object from a VSchemaAddLookupVindexRequest message. Also converts values to other types if specified. + * @param message VSchemaAddLookupVindexRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VSchemaAddLookupVindexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** VDiffCreateRequest max_diff_duration */ - max_diff_duration?: (vttime.IDuration|null); + /** + * Converts this VSchemaAddLookupVindexRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** VDiffCreateRequest row_diff_column_truncate_at */ - row_diff_column_truncate_at?: (number|Long|null); + /** + * Gets the default type url for VSchemaAddLookupVindexRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** VDiffCreateRequest auto_start */ - auto_start?: (boolean|null); + /** Properties of a VSchemaAddLookupVindexResponse. */ + interface IVSchemaAddLookupVindexResponse { } - /** Represents a VDiffCreateRequest. */ - class VDiffCreateRequest implements IVDiffCreateRequest { + /** Represents a VSchemaAddLookupVindexResponse. */ + class VSchemaAddLookupVindexResponse implements IVSchemaAddLookupVindexResponse { /** - * Constructs a new VDiffCreateRequest. + * Constructs a new VSchemaAddLookupVindexResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IVDiffCreateRequest); + constructor(properties?: vtctldata.IVSchemaAddLookupVindexResponse); - /** VDiffCreateRequest workflow. */ - public workflow: string; + /** + * Creates a new VSchemaAddLookupVindexResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns VSchemaAddLookupVindexResponse instance + */ + public static create(properties?: vtctldata.IVSchemaAddLookupVindexResponse): vtctldata.VSchemaAddLookupVindexResponse; - /** VDiffCreateRequest target_keyspace. */ - public target_keyspace: string; + /** + * Encodes the specified VSchemaAddLookupVindexResponse message. Does not implicitly {@link vtctldata.VSchemaAddLookupVindexResponse.verify|verify} messages. + * @param message VSchemaAddLookupVindexResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVSchemaAddLookupVindexResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** VDiffCreateRequest uuid. */ - public uuid: string; + /** + * Encodes the specified VSchemaAddLookupVindexResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaAddLookupVindexResponse.verify|verify} messages. + * @param message VSchemaAddLookupVindexResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVSchemaAddLookupVindexResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** VDiffCreateRequest source_cells. */ - public source_cells: string[]; + /** + * Decodes a VSchemaAddLookupVindexResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VSchemaAddLookupVindexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaAddLookupVindexResponse; - /** VDiffCreateRequest target_cells. */ - public target_cells: string[]; + /** + * Decodes a VSchemaAddLookupVindexResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VSchemaAddLookupVindexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaAddLookupVindexResponse; - /** VDiffCreateRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; + /** + * Verifies a VSchemaAddLookupVindexResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** VDiffCreateRequest tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + /** + * Creates a VSchemaAddLookupVindexResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VSchemaAddLookupVindexResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaAddLookupVindexResponse; - /** VDiffCreateRequest tables. */ - public tables: string[]; + /** + * Creates a plain object from a VSchemaAddLookupVindexResponse message. Also converts values to other types if specified. + * @param message VSchemaAddLookupVindexResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VSchemaAddLookupVindexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** VDiffCreateRequest limit. */ - public limit: (number|Long); + /** + * Converts this VSchemaAddLookupVindexResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** VDiffCreateRequest filtered_replication_wait_time. */ - public filtered_replication_wait_time?: (vttime.IDuration|null); + /** + * Gets the default type url for VSchemaAddLookupVindexResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** VDiffCreateRequest debug_query. */ - public debug_query: boolean; + /** Properties of a VSchemaAddTablesRequest. */ + interface IVSchemaAddTablesRequest { - /** VDiffCreateRequest only_p_ks. */ - public only_p_ks: boolean; + /** VSchemaAddTablesRequest v_schema_name */ + v_schema_name?: (string|null); - /** VDiffCreateRequest update_table_stats. */ - public update_table_stats: boolean; + /** VSchemaAddTablesRequest tables */ + tables?: (string[]|null); - /** VDiffCreateRequest max_extra_rows_to_compare. */ - public max_extra_rows_to_compare: (number|Long); + /** VSchemaAddTablesRequest primary_vindex_name */ + primary_vindex_name?: (string|null); - /** VDiffCreateRequest wait. */ - public wait: boolean; + /** VSchemaAddTablesRequest columns */ + columns?: (string[]|null); - /** VDiffCreateRequest wait_update_interval. */ - public wait_update_interval?: (vttime.IDuration|null); + /** VSchemaAddTablesRequest add_all */ + add_all?: (boolean|null); + } - /** VDiffCreateRequest auto_retry. */ - public auto_retry: boolean; + /** Represents a VSchemaAddTablesRequest. */ + class VSchemaAddTablesRequest implements IVSchemaAddTablesRequest { - /** VDiffCreateRequest verbose. */ - public verbose: boolean; + /** + * Constructs a new VSchemaAddTablesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVSchemaAddTablesRequest); - /** VDiffCreateRequest max_report_sample_rows. */ - public max_report_sample_rows: (number|Long); + /** VSchemaAddTablesRequest v_schema_name. */ + public v_schema_name: string; - /** VDiffCreateRequest max_diff_duration. */ - public max_diff_duration?: (vttime.IDuration|null); + /** VSchemaAddTablesRequest tables. */ + public tables: string[]; - /** VDiffCreateRequest row_diff_column_truncate_at. */ - public row_diff_column_truncate_at: (number|Long); + /** VSchemaAddTablesRequest primary_vindex_name. */ + public primary_vindex_name: string; - /** VDiffCreateRequest auto_start. */ - public auto_start?: (boolean|null); + /** VSchemaAddTablesRequest columns. */ + public columns: string[]; + + /** VSchemaAddTablesRequest add_all. */ + public add_all: boolean; /** - * Creates a new VDiffCreateRequest instance using the specified properties. + * Creates a new VSchemaAddTablesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffCreateRequest instance + * @returns VSchemaAddTablesRequest instance */ - public static create(properties?: vtctldata.IVDiffCreateRequest): vtctldata.VDiffCreateRequest; + public static create(properties?: vtctldata.IVSchemaAddTablesRequest): vtctldata.VSchemaAddTablesRequest; /** - * Encodes the specified VDiffCreateRequest message. Does not implicitly {@link vtctldata.VDiffCreateRequest.verify|verify} messages. - * @param message VDiffCreateRequest message or plain object to encode + * Encodes the specified VSchemaAddTablesRequest message. Does not implicitly {@link vtctldata.VSchemaAddTablesRequest.verify|verify} messages. + * @param message VSchemaAddTablesRequest 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; + public static encode(message: vtctldata.IVSchemaAddTablesRequest, 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 + * Encodes the specified VSchemaAddTablesRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaAddTablesRequest.verify|verify} messages. + * @param message VSchemaAddTablesRequest 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; + public static encodeDelimited(message: vtctldata.IVSchemaAddTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffCreateRequest message from the specified reader or buffer. + * Decodes a VSchemaAddTablesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffCreateRequest + * @returns VSchemaAddTablesRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaAddTablesRequest; /** - * Decodes a VDiffCreateRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddTablesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffCreateRequest + * @returns VSchemaAddTablesRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaAddTablesRequest; /** - * Verifies a VDiffCreateRequest message. + * Verifies a VSchemaAddTablesRequest message. * @param message Plain object 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. + * Creates a VSchemaAddTablesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffCreateRequest + * @returns VSchemaAddTablesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffCreateRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaAddTablesRequest; /** - * Creates a plain object from a VDiffCreateRequest message. Also converts values to other types if specified. - * @param message VDiffCreateRequest + * Creates a plain object from a VSchemaAddTablesRequest message. Also converts values to other types if specified. + * @param message VSchemaAddTablesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.VDiffCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaAddTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffCreateRequest to JSON. + * Converts this VSchemaAddTablesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffCreateRequest + * Gets the default type url for VSchemaAddTablesRequest * @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); + /** Properties of a VSchemaAddTablesResponse. */ + interface IVSchemaAddTablesResponse { } - /** Represents a VDiffCreateResponse. */ - class VDiffCreateResponse implements IVDiffCreateResponse { + /** Represents a VSchemaAddTablesResponse. */ + class VSchemaAddTablesResponse implements IVSchemaAddTablesResponse { /** - * Constructs a new VDiffCreateResponse. + * Constructs a new VSchemaAddTablesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IVDiffCreateResponse); - - /** VDiffCreateResponse UUID. */ - public UUID: string; + constructor(properties?: vtctldata.IVSchemaAddTablesResponse); /** - * Creates a new VDiffCreateResponse instance using the specified properties. + * Creates a new VSchemaAddTablesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffCreateResponse instance + * @returns VSchemaAddTablesResponse instance */ - public static create(properties?: vtctldata.IVDiffCreateResponse): vtctldata.VDiffCreateResponse; + public static create(properties?: vtctldata.IVSchemaAddTablesResponse): vtctldata.VSchemaAddTablesResponse; /** - * Encodes the specified VDiffCreateResponse message. Does not implicitly {@link vtctldata.VDiffCreateResponse.verify|verify} messages. - * @param message VDiffCreateResponse message or plain object to encode + * Encodes the specified VSchemaAddTablesResponse message. Does not implicitly {@link vtctldata.VSchemaAddTablesResponse.verify|verify} messages. + * @param message VSchemaAddTablesResponse 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; + public static encode(message: vtctldata.IVSchemaAddTablesResponse, 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 + * Encodes the specified VSchemaAddTablesResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaAddTablesResponse.verify|verify} messages. + * @param message VSchemaAddTablesResponse 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; + public static encodeDelimited(message: vtctldata.IVSchemaAddTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffCreateResponse message from the specified reader or buffer. + * Decodes a VSchemaAddTablesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffCreateResponse + * @returns VSchemaAddTablesResponse * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaAddTablesResponse; /** - * Decodes a VDiffCreateResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddTablesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffCreateResponse + * @returns VSchemaAddTablesResponse * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaAddTablesResponse; /** - * Verifies a VDiffCreateResponse message. + * Verifies a VSchemaAddTablesResponse message. * @param message Plain object 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. + * Creates a VSchemaAddTablesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffCreateResponse + * @returns VSchemaAddTablesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffCreateResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaAddTablesResponse; /** - * Creates a plain object from a VDiffCreateResponse message. Also converts values to other types if specified. - * @param message VDiffCreateResponse + * Creates a plain object from a VSchemaAddTablesResponse message. Also converts values to other types if specified. + * @param message VSchemaAddTablesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.VDiffCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaAddTablesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffCreateResponse to JSON. + * Converts this VSchemaAddTablesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffCreateResponse + * Gets the default type url for VSchemaAddTablesResponse * @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); + /** Properties of a VSchemaRemoveTablesRequest. */ + interface IVSchemaRemoveTablesRequest { - /** VDiffDeleteRequest target_keyspace */ - target_keyspace?: (string|null); + /** VSchemaRemoveTablesRequest v_schema_name */ + v_schema_name?: (string|null); - /** VDiffDeleteRequest arg */ - arg?: (string|null); + /** VSchemaRemoveTablesRequest tables */ + tables?: (string[]|null); } - /** Represents a VDiffDeleteRequest. */ - class VDiffDeleteRequest implements IVDiffDeleteRequest { + /** Represents a VSchemaRemoveTablesRequest. */ + class VSchemaRemoveTablesRequest implements IVSchemaRemoveTablesRequest { /** - * Constructs a new VDiffDeleteRequest. + * Constructs a new VSchemaRemoveTablesRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IVDiffDeleteRequest); + constructor(properties?: vtctldata.IVSchemaRemoveTablesRequest); - /** VDiffDeleteRequest workflow. */ - public workflow: string; - - /** VDiffDeleteRequest target_keyspace. */ - public target_keyspace: string; + /** VSchemaRemoveTablesRequest v_schema_name. */ + public v_schema_name: string; - /** VDiffDeleteRequest arg. */ - public arg: string; + /** VSchemaRemoveTablesRequest tables. */ + public tables: string[]; /** - * Creates a new VDiffDeleteRequest instance using the specified properties. + * Creates a new VSchemaRemoveTablesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffDeleteRequest instance + * @returns VSchemaRemoveTablesRequest instance */ - public static create(properties?: vtctldata.IVDiffDeleteRequest): vtctldata.VDiffDeleteRequest; + public static create(properties?: vtctldata.IVSchemaRemoveTablesRequest): vtctldata.VSchemaRemoveTablesRequest; /** - * Encodes the specified VDiffDeleteRequest message. Does not implicitly {@link vtctldata.VDiffDeleteRequest.verify|verify} messages. - * @param message VDiffDeleteRequest message or plain object to encode + * Encodes the specified VSchemaRemoveTablesRequest message. Does not implicitly {@link vtctldata.VSchemaRemoveTablesRequest.verify|verify} messages. + * @param message VSchemaRemoveTablesRequest 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; + public static encode(message: vtctldata.IVSchemaRemoveTablesRequest, 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 + * Encodes the specified VSchemaRemoveTablesRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaRemoveTablesRequest.verify|verify} messages. + * @param message VSchemaRemoveTablesRequest 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; + public static encodeDelimited(message: vtctldata.IVSchemaRemoveTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffDeleteRequest message from the specified reader or buffer. + * Decodes a VSchemaRemoveTablesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffDeleteRequest + * @returns VSchemaRemoveTablesRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaRemoveTablesRequest; /** - * Decodes a VDiffDeleteRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaRemoveTablesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffDeleteRequest + * @returns VSchemaRemoveTablesRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaRemoveTablesRequest; /** - * Verifies a VDiffDeleteRequest message. + * Verifies a VSchemaRemoveTablesRequest message. * @param message Plain object 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. + * Creates a VSchemaRemoveTablesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffDeleteRequest + * @returns VSchemaRemoveTablesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffDeleteRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaRemoveTablesRequest; /** - * Creates a plain object from a VDiffDeleteRequest message. Also converts values to other types if specified. - * @param message VDiffDeleteRequest + * Creates a plain object from a VSchemaRemoveTablesRequest message. Also converts values to other types if specified. + * @param message VSchemaRemoveTablesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.VDiffDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaRemoveTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffDeleteRequest to JSON. + * Converts this VSchemaRemoveTablesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffDeleteRequest + * Gets the default type url for VSchemaRemoveTablesRequest * @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 { + /** Properties of a VSchemaRemoveTablesResponse. */ + interface IVSchemaRemoveTablesResponse { } - /** Represents a VDiffDeleteResponse. */ - class VDiffDeleteResponse implements IVDiffDeleteResponse { + /** Represents a VSchemaRemoveTablesResponse. */ + class VSchemaRemoveTablesResponse implements IVSchemaRemoveTablesResponse { /** - * Constructs a new VDiffDeleteResponse. + * Constructs a new VSchemaRemoveTablesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IVDiffDeleteResponse); + constructor(properties?: vtctldata.IVSchemaRemoveTablesResponse); /** - * Creates a new VDiffDeleteResponse instance using the specified properties. + * Creates a new VSchemaRemoveTablesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffDeleteResponse instance + * @returns VSchemaRemoveTablesResponse instance */ - public static create(properties?: vtctldata.IVDiffDeleteResponse): vtctldata.VDiffDeleteResponse; + public static create(properties?: vtctldata.IVSchemaRemoveTablesResponse): vtctldata.VSchemaRemoveTablesResponse; /** - * Encodes the specified VDiffDeleteResponse message. Does not implicitly {@link vtctldata.VDiffDeleteResponse.verify|verify} messages. - * @param message VDiffDeleteResponse message or plain object to encode + * Encodes the specified VSchemaRemoveTablesResponse message. Does not implicitly {@link vtctldata.VSchemaRemoveTablesResponse.verify|verify} messages. + * @param message VSchemaRemoveTablesResponse 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; + public static encode(message: vtctldata.IVSchemaRemoveTablesResponse, 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 + * Encodes the specified VSchemaRemoveTablesResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaRemoveTablesResponse.verify|verify} messages. + * @param message VSchemaRemoveTablesResponse 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; + public static encodeDelimited(message: vtctldata.IVSchemaRemoveTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffDeleteResponse message from the specified reader or buffer. + * Decodes a VSchemaRemoveTablesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffDeleteResponse + * @returns VSchemaRemoveTablesResponse * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaRemoveTablesResponse; /** - * Decodes a VDiffDeleteResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaRemoveTablesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffDeleteResponse + * @returns VSchemaRemoveTablesResponse * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaRemoveTablesResponse; /** - * Verifies a VDiffDeleteResponse message. + * Verifies a VSchemaRemoveTablesResponse message. * @param message Plain object 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. + * Creates a VSchemaRemoveTablesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffDeleteResponse + * @returns VSchemaRemoveTablesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffDeleteResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaRemoveTablesResponse; /** - * Creates a plain object from a VDiffDeleteResponse message. Also converts values to other types if specified. - * @param message VDiffDeleteResponse + * Creates a plain object from a VSchemaRemoveTablesResponse message. Also converts values to other types if specified. + * @param message VSchemaRemoveTablesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.VDiffDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaRemoveTablesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffDeleteResponse to JSON. + * Converts this VSchemaRemoveTablesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffDeleteResponse + * Gets the default type url for VSchemaRemoveTablesResponse * @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 { + /** Properties of a VSchemaSetPrimaryVindexRequest. */ + interface IVSchemaSetPrimaryVindexRequest { - /** VDiffResumeRequest workflow */ - workflow?: (string|null); + /** VSchemaSetPrimaryVindexRequest v_schema_name */ + v_schema_name?: (string|null); - /** VDiffResumeRequest target_keyspace */ - target_keyspace?: (string|null); + /** VSchemaSetPrimaryVindexRequest tables */ + tables?: (string[]|null); - /** VDiffResumeRequest uuid */ - uuid?: (string|null); + /** VSchemaSetPrimaryVindexRequest vindex_name */ + vindex_name?: (string|null); - /** VDiffResumeRequest target_shards */ - target_shards?: (string[]|null); + /** VSchemaSetPrimaryVindexRequest columns */ + columns?: (string[]|null); } - /** Represents a VDiffResumeRequest. */ - class VDiffResumeRequest implements IVDiffResumeRequest { + /** Represents a VSchemaSetPrimaryVindexRequest. */ + class VSchemaSetPrimaryVindexRequest implements IVSchemaSetPrimaryVindexRequest { /** - * Constructs a new VDiffResumeRequest. + * Constructs a new VSchemaSetPrimaryVindexRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IVDiffResumeRequest); + constructor(properties?: vtctldata.IVSchemaSetPrimaryVindexRequest); - /** VDiffResumeRequest workflow. */ - public workflow: string; + /** VSchemaSetPrimaryVindexRequest v_schema_name. */ + public v_schema_name: string; - /** VDiffResumeRequest target_keyspace. */ - public target_keyspace: string; + /** VSchemaSetPrimaryVindexRequest tables. */ + public tables: string[]; - /** VDiffResumeRequest uuid. */ - public uuid: string; + /** VSchemaSetPrimaryVindexRequest vindex_name. */ + public vindex_name: string; - /** VDiffResumeRequest target_shards. */ - public target_shards: string[]; + /** VSchemaSetPrimaryVindexRequest columns. */ + public columns: string[]; /** - * Creates a new VDiffResumeRequest instance using the specified properties. + * Creates a new VSchemaSetPrimaryVindexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffResumeRequest instance + * @returns VSchemaSetPrimaryVindexRequest instance */ - public static create(properties?: vtctldata.IVDiffResumeRequest): vtctldata.VDiffResumeRequest; + public static create(properties?: vtctldata.IVSchemaSetPrimaryVindexRequest): vtctldata.VSchemaSetPrimaryVindexRequest; /** - * Encodes the specified VDiffResumeRequest message. Does not implicitly {@link vtctldata.VDiffResumeRequest.verify|verify} messages. - * @param message VDiffResumeRequest message or plain object to encode + * Encodes the specified VSchemaSetPrimaryVindexRequest message. Does not implicitly {@link vtctldata.VSchemaSetPrimaryVindexRequest.verify|verify} messages. + * @param message VSchemaSetPrimaryVindexRequest 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; + public static encode(message: vtctldata.IVSchemaSetPrimaryVindexRequest, 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 + * Encodes the specified VSchemaSetPrimaryVindexRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaSetPrimaryVindexRequest.verify|verify} messages. + * @param message VSchemaSetPrimaryVindexRequest 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; + public static encodeDelimited(message: vtctldata.IVSchemaSetPrimaryVindexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffResumeRequest message from the specified reader or buffer. + * Decodes a VSchemaSetPrimaryVindexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffResumeRequest + * @returns VSchemaSetPrimaryVindexRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaSetPrimaryVindexRequest; /** - * Decodes a VDiffResumeRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetPrimaryVindexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffResumeRequest + * @returns VSchemaSetPrimaryVindexRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaSetPrimaryVindexRequest; /** - * Verifies a VDiffResumeRequest message. + * Verifies a VSchemaSetPrimaryVindexRequest message. * @param message Plain object 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. + * Creates a VSchemaSetPrimaryVindexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffResumeRequest + * @returns VSchemaSetPrimaryVindexRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffResumeRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaSetPrimaryVindexRequest; /** - * Creates a plain object from a VDiffResumeRequest message. Also converts values to other types if specified. - * @param message VDiffResumeRequest + * Creates a plain object from a VSchemaSetPrimaryVindexRequest message. Also converts values to other types if specified. + * @param message VSchemaSetPrimaryVindexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.VDiffResumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaSetPrimaryVindexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffResumeRequest to JSON. + * Converts this VSchemaSetPrimaryVindexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffResumeRequest + * Gets the default type url for VSchemaSetPrimaryVindexRequest * @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 { + /** Properties of a VSchemaSetPrimaryVindexResponse. */ + interface IVSchemaSetPrimaryVindexResponse { } - /** Represents a VDiffResumeResponse. */ - class VDiffResumeResponse implements IVDiffResumeResponse { + /** Represents a VSchemaSetPrimaryVindexResponse. */ + class VSchemaSetPrimaryVindexResponse implements IVSchemaSetPrimaryVindexResponse { /** - * Constructs a new VDiffResumeResponse. + * Constructs a new VSchemaSetPrimaryVindexResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IVDiffResumeResponse); + constructor(properties?: vtctldata.IVSchemaSetPrimaryVindexResponse); /** - * Creates a new VDiffResumeResponse instance using the specified properties. + * Creates a new VSchemaSetPrimaryVindexResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffResumeResponse instance + * @returns VSchemaSetPrimaryVindexResponse instance */ - public static create(properties?: vtctldata.IVDiffResumeResponse): vtctldata.VDiffResumeResponse; + public static create(properties?: vtctldata.IVSchemaSetPrimaryVindexResponse): vtctldata.VSchemaSetPrimaryVindexResponse; /** - * Encodes the specified VDiffResumeResponse message. Does not implicitly {@link vtctldata.VDiffResumeResponse.verify|verify} messages. - * @param message VDiffResumeResponse message or plain object to encode + * Encodes the specified VSchemaSetPrimaryVindexResponse message. Does not implicitly {@link vtctldata.VSchemaSetPrimaryVindexResponse.verify|verify} messages. + * @param message VSchemaSetPrimaryVindexResponse 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; + public static encode(message: vtctldata.IVSchemaSetPrimaryVindexResponse, 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 + * Encodes the specified VSchemaSetPrimaryVindexResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaSetPrimaryVindexResponse.verify|verify} messages. + * @param message VSchemaSetPrimaryVindexResponse 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; + public static encodeDelimited(message: vtctldata.IVSchemaSetPrimaryVindexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffResumeResponse message from the specified reader or buffer. + * Decodes a VSchemaSetPrimaryVindexResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffResumeResponse + * @returns VSchemaSetPrimaryVindexResponse * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaSetPrimaryVindexResponse; /** - * Decodes a VDiffResumeResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetPrimaryVindexResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffResumeResponse + * @returns VSchemaSetPrimaryVindexResponse * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaSetPrimaryVindexResponse; /** - * Verifies a VDiffResumeResponse message. + * Verifies a VSchemaSetPrimaryVindexResponse message. * @param message Plain object 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. + * Creates a VSchemaSetPrimaryVindexResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffResumeResponse + * @returns VSchemaSetPrimaryVindexResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffResumeResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaSetPrimaryVindexResponse; /** - * Creates a plain object from a VDiffResumeResponse message. Also converts values to other types if specified. - * @param message VDiffResumeResponse + * Creates a plain object from a VSchemaSetPrimaryVindexResponse message. Also converts values to other types if specified. + * @param message VSchemaSetPrimaryVindexResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.VDiffResumeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaSetPrimaryVindexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffResumeResponse to JSON. + * Converts this VSchemaSetPrimaryVindexResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffResumeResponse + * Gets the default type url for VSchemaSetPrimaryVindexResponse * @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 { + /** Properties of a VSchemaSetSequenceRequest. */ + interface IVSchemaSetSequenceRequest { - /** VDiffShowRequest workflow */ - workflow?: (string|null); + /** VSchemaSetSequenceRequest v_schema_name */ + v_schema_name?: (string|null); - /** VDiffShowRequest target_keyspace */ - target_keyspace?: (string|null); + /** VSchemaSetSequenceRequest table_name */ + table_name?: (string|null); - /** VDiffShowRequest arg */ - arg?: (string|null); + /** VSchemaSetSequenceRequest column */ + column?: (string|null); + + /** VSchemaSetSequenceRequest sequence_source */ + sequence_source?: (string|null); } - /** Represents a VDiffShowRequest. */ - class VDiffShowRequest implements IVDiffShowRequest { + /** Represents a VSchemaSetSequenceRequest. */ + class VSchemaSetSequenceRequest implements IVSchemaSetSequenceRequest { /** - * Constructs a new VDiffShowRequest. + * Constructs a new VSchemaSetSequenceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IVDiffShowRequest); + constructor(properties?: vtctldata.IVSchemaSetSequenceRequest); - /** VDiffShowRequest workflow. */ - public workflow: string; + /** VSchemaSetSequenceRequest v_schema_name. */ + public v_schema_name: string; - /** VDiffShowRequest target_keyspace. */ - public target_keyspace: string; + /** VSchemaSetSequenceRequest table_name. */ + public table_name: string; - /** VDiffShowRequest arg. */ - public arg: string; + /** VSchemaSetSequenceRequest column. */ + public column: string; + + /** VSchemaSetSequenceRequest sequence_source. */ + public sequence_source: string; /** - * Creates a new VDiffShowRequest instance using the specified properties. + * Creates a new VSchemaSetSequenceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffShowRequest instance + * @returns VSchemaSetSequenceRequest instance */ - public static create(properties?: vtctldata.IVDiffShowRequest): vtctldata.VDiffShowRequest; + public static create(properties?: vtctldata.IVSchemaSetSequenceRequest): vtctldata.VSchemaSetSequenceRequest; /** - * Encodes the specified VDiffShowRequest message. Does not implicitly {@link vtctldata.VDiffShowRequest.verify|verify} messages. - * @param message VDiffShowRequest message or plain object to encode + * Encodes the specified VSchemaSetSequenceRequest message. Does not implicitly {@link vtctldata.VSchemaSetSequenceRequest.verify|verify} messages. + * @param message VSchemaSetSequenceRequest 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; + public static encode(message: vtctldata.IVSchemaSetSequenceRequest, 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 + * Encodes the specified VSchemaSetSequenceRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaSetSequenceRequest.verify|verify} messages. + * @param message VSchemaSetSequenceRequest 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; + public static encodeDelimited(message: vtctldata.IVSchemaSetSequenceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffShowRequest message from the specified reader or buffer. + * Decodes a VSchemaSetSequenceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffShowRequest + * @returns VSchemaSetSequenceRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaSetSequenceRequest; /** - * Decodes a VDiffShowRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetSequenceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffShowRequest + * @returns VSchemaSetSequenceRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaSetSequenceRequest; /** - * Verifies a VDiffShowRequest message. + * Verifies a VSchemaSetSequenceRequest message. * @param message Plain object 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. + * Creates a VSchemaSetSequenceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffShowRequest + * @returns VSchemaSetSequenceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffShowRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaSetSequenceRequest; /** - * Creates a plain object from a VDiffShowRequest message. Also converts values to other types if specified. - * @param message VDiffShowRequest + * Creates a plain object from a VSchemaSetSequenceRequest message. Also converts values to other types if specified. + * @param message VSchemaSetSequenceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.VDiffShowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaSetSequenceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffShowRequest to JSON. + * Converts this VSchemaSetSequenceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffShowRequest + * Gets the default type url for VSchemaSetSequenceRequest * @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); + /** Properties of a VSchemaSetSequenceResponse. */ + interface IVSchemaSetSequenceResponse { } - /** Represents a VDiffShowResponse. */ - class VDiffShowResponse implements IVDiffShowResponse { + /** Represents a VSchemaSetSequenceResponse. */ + class VSchemaSetSequenceResponse implements IVSchemaSetSequenceResponse { /** - * Constructs a new VDiffShowResponse. + * Constructs a new VSchemaSetSequenceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IVDiffShowResponse); - - /** VDiffShowResponse tablet_responses. */ - public tablet_responses: { [k: string]: tabletmanagerdata.IVDiffResponse }; + constructor(properties?: vtctldata.IVSchemaSetSequenceResponse); /** - * Creates a new VDiffShowResponse instance using the specified properties. + * Creates a new VSchemaSetSequenceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffShowResponse instance + * @returns VSchemaSetSequenceResponse instance */ - public static create(properties?: vtctldata.IVDiffShowResponse): vtctldata.VDiffShowResponse; + public static create(properties?: vtctldata.IVSchemaSetSequenceResponse): vtctldata.VSchemaSetSequenceResponse; /** - * Encodes the specified VDiffShowResponse message. Does not implicitly {@link vtctldata.VDiffShowResponse.verify|verify} messages. - * @param message VDiffShowResponse message or plain object to encode + * Encodes the specified VSchemaSetSequenceResponse message. Does not implicitly {@link vtctldata.VSchemaSetSequenceResponse.verify|verify} messages. + * @param message VSchemaSetSequenceResponse 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; + public static encode(message: vtctldata.IVSchemaSetSequenceResponse, 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 + * Encodes the specified VSchemaSetSequenceResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaSetSequenceResponse.verify|verify} messages. + * @param message VSchemaSetSequenceResponse 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; + public static encodeDelimited(message: vtctldata.IVSchemaSetSequenceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffShowResponse message from the specified reader or buffer. + * Decodes a VSchemaSetSequenceResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffShowResponse + * @returns VSchemaSetSequenceResponse * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaSetSequenceResponse; /** - * Decodes a VDiffShowResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetSequenceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffShowResponse + * @returns VSchemaSetSequenceResponse * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaSetSequenceResponse; /** - * Verifies a VDiffShowResponse message. + * Verifies a VSchemaSetSequenceResponse message. * @param message Plain object 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. + * Creates a VSchemaSetSequenceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffShowResponse + * @returns VSchemaSetSequenceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffShowResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaSetSequenceResponse; /** - * Creates a plain object from a VDiffShowResponse message. Also converts values to other types if specified. - * @param message VDiffShowResponse + * Creates a plain object from a VSchemaSetSequenceResponse message. Also converts values to other types if specified. + * @param message VSchemaSetSequenceResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.VDiffShowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaSetSequenceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffShowResponse to JSON. + * Converts this VSchemaSetSequenceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffShowResponse + * Gets the default type url for VSchemaSetSequenceResponse * @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); + /** Properties of a VSchemaSetReferenceRequest. */ + interface IVSchemaSetReferenceRequest { - /** VDiffStopRequest target_keyspace */ - target_keyspace?: (string|null); + /** VSchemaSetReferenceRequest v_schema_name */ + v_schema_name?: (string|null); - /** VDiffStopRequest uuid */ - uuid?: (string|null); + /** VSchemaSetReferenceRequest table_name */ + table_name?: (string|null); - /** VDiffStopRequest target_shards */ - target_shards?: (string[]|null); + /** VSchemaSetReferenceRequest source */ + source?: (string|null); } - /** Represents a VDiffStopRequest. */ - class VDiffStopRequest implements IVDiffStopRequest { + /** Represents a VSchemaSetReferenceRequest. */ + class VSchemaSetReferenceRequest implements IVSchemaSetReferenceRequest { /** - * Constructs a new VDiffStopRequest. + * Constructs a new VSchemaSetReferenceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IVDiffStopRequest); - - /** VDiffStopRequest workflow. */ - public workflow: string; + constructor(properties?: vtctldata.IVSchemaSetReferenceRequest); - /** VDiffStopRequest target_keyspace. */ - public target_keyspace: string; + /** VSchemaSetReferenceRequest v_schema_name. */ + public v_schema_name: string; - /** VDiffStopRequest uuid. */ - public uuid: string; + /** VSchemaSetReferenceRequest table_name. */ + public table_name: string; - /** VDiffStopRequest target_shards. */ - public target_shards: string[]; + /** VSchemaSetReferenceRequest source. */ + public source: string; /** - * Creates a new VDiffStopRequest instance using the specified properties. + * Creates a new VSchemaSetReferenceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffStopRequest instance + * @returns VSchemaSetReferenceRequest instance */ - public static create(properties?: vtctldata.IVDiffStopRequest): vtctldata.VDiffStopRequest; + public static create(properties?: vtctldata.IVSchemaSetReferenceRequest): vtctldata.VSchemaSetReferenceRequest; /** - * Encodes the specified VDiffStopRequest message. Does not implicitly {@link vtctldata.VDiffStopRequest.verify|verify} messages. - * @param message VDiffStopRequest message or plain object to encode + * Encodes the specified VSchemaSetReferenceRequest message. Does not implicitly {@link vtctldata.VSchemaSetReferenceRequest.verify|verify} messages. + * @param message VSchemaSetReferenceRequest 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; + public static encode(message: vtctldata.IVSchemaSetReferenceRequest, 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 + * Encodes the specified VSchemaSetReferenceRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaSetReferenceRequest.verify|verify} messages. + * @param message VSchemaSetReferenceRequest 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; + public static encodeDelimited(message: vtctldata.IVSchemaSetReferenceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffStopRequest message from the specified reader or buffer. + * Decodes a VSchemaSetReferenceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffStopRequest + * @returns VSchemaSetReferenceRequest * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaSetReferenceRequest; /** - * Decodes a VDiffStopRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetReferenceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffStopRequest + * @returns VSchemaSetReferenceRequest * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaSetReferenceRequest; /** - * Verifies a VDiffStopRequest message. + * Verifies a VSchemaSetReferenceRequest message. * @param message Plain object 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. + * Creates a VSchemaSetReferenceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffStopRequest + * @returns VSchemaSetReferenceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffStopRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaSetReferenceRequest; /** - * Creates a plain object from a VDiffStopRequest message. Also converts values to other types if specified. - * @param message VDiffStopRequest + * Creates a plain object from a VSchemaSetReferenceRequest message. Also converts values to other types if specified. + * @param message VSchemaSetReferenceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.VDiffStopRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaSetReferenceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffStopRequest to JSON. + * Converts this VSchemaSetReferenceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffStopRequest + * Gets the default type url for VSchemaSetReferenceRequest * @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 { + /** Properties of a VSchemaSetReferenceResponse. */ + interface IVSchemaSetReferenceResponse { } - /** Represents a VDiffStopResponse. */ - class VDiffStopResponse implements IVDiffStopResponse { + /** Represents a VSchemaSetReferenceResponse. */ + class VSchemaSetReferenceResponse implements IVSchemaSetReferenceResponse { /** - * Constructs a new VDiffStopResponse. + * Constructs a new VSchemaSetReferenceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IVDiffStopResponse); + constructor(properties?: vtctldata.IVSchemaSetReferenceResponse); /** - * Creates a new VDiffStopResponse instance using the specified properties. + * Creates a new VSchemaSetReferenceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VDiffStopResponse instance + * @returns VSchemaSetReferenceResponse instance */ - public static create(properties?: vtctldata.IVDiffStopResponse): vtctldata.VDiffStopResponse; + public static create(properties?: vtctldata.IVSchemaSetReferenceResponse): vtctldata.VSchemaSetReferenceResponse; /** - * Encodes the specified VDiffStopResponse message. Does not implicitly {@link vtctldata.VDiffStopResponse.verify|verify} messages. - * @param message VDiffStopResponse message or plain object to encode + * Encodes the specified VSchemaSetReferenceResponse message. Does not implicitly {@link vtctldata.VSchemaSetReferenceResponse.verify|verify} messages. + * @param message VSchemaSetReferenceResponse 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; + public static encode(message: vtctldata.IVSchemaSetReferenceResponse, 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 + * Encodes the specified VSchemaSetReferenceResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaSetReferenceResponse.verify|verify} messages. + * @param message VSchemaSetReferenceResponse 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; + public static encodeDelimited(message: vtctldata.IVSchemaSetReferenceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VDiffStopResponse message from the specified reader or buffer. + * Decodes a VSchemaSetReferenceResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VDiffStopResponse + * @returns VSchemaSetReferenceResponse * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VSchemaSetReferenceResponse; /** - * Decodes a VDiffStopResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetReferenceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VDiffStopResponse + * @returns VSchemaSetReferenceResponse * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VSchemaSetReferenceResponse; /** - * Verifies a VDiffStopResponse message. + * Verifies a VSchemaSetReferenceResponse message. * @param message Plain object 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. + * Creates a VSchemaSetReferenceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VDiffStopResponse + * @returns VSchemaSetReferenceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffStopResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.VSchemaSetReferenceResponse; /** - * Creates a plain object from a VDiffStopResponse message. Also converts values to other types if specified. - * @param message VDiffStopResponse + * Creates a plain object from a VSchemaSetReferenceResponse message. Also converts values to other types if specified. + * @param message VSchemaSetReferenceResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.VDiffStopResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.VSchemaSetReferenceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VDiffStopResponse to JSON. + * Converts this VSchemaSetReferenceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VDiffStopResponse + * Gets the default type url for VSchemaSetReferenceResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ diff --git a/web/vtadmin/src/proto/vtadmin.js b/web/vtadmin/src/proto/vtadmin.js index 1c6897eb2f5..ef6652660e3 100644 --- a/web/vtadmin/src/proto/vtadmin.js +++ b/web/vtadmin/src/proto/vtadmin.js @@ -2391,6 +2391,303 @@ export const vtadmin = $root.vtadmin = (() => { * @variation 2 */ + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaPublish}. + * @memberof vtadmin.VTAdmin + * @typedef VSchemaPublishCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {vtctldata.VSchemaPublishResponse} [response] VSchemaPublishResponse + */ + + /** + * Calls VSchemaPublish. + * @function vSchemaPublish + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaPublishRequest} request VSchemaPublishRequest message or plain object + * @param {vtadmin.VTAdmin.VSchemaPublishCallback} callback Node-style callback called with the error, if any, and VSchemaPublishResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VTAdmin.prototype.vSchemaPublish = function vSchemaPublish(request, callback) { + return this.rpcCall(vSchemaPublish, $root.vtadmin.VSchemaPublishRequest, $root.vtctldata.VSchemaPublishResponse, request, callback); + }, "name", { value: "VSchemaPublish" }); + + /** + * Calls VSchemaPublish. + * @function vSchemaPublish + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaPublishRequest} request VSchemaPublishRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaAddVindex}. + * @memberof vtadmin.VTAdmin + * @typedef VSchemaAddVindexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {vtctldata.VSchemaAddVindexResponse} [response] VSchemaAddVindexResponse + */ + + /** + * Calls VSchemaAddVindex. + * @function vSchemaAddVindex + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaAddVindexRequest} request VSchemaAddVindexRequest message or plain object + * @param {vtadmin.VTAdmin.VSchemaAddVindexCallback} callback Node-style callback called with the error, if any, and VSchemaAddVindexResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VTAdmin.prototype.vSchemaAddVindex = function vSchemaAddVindex(request, callback) { + return this.rpcCall(vSchemaAddVindex, $root.vtadmin.VSchemaAddVindexRequest, $root.vtctldata.VSchemaAddVindexResponse, request, callback); + }, "name", { value: "VSchemaAddVindex" }); + + /** + * Calls VSchemaAddVindex. + * @function vSchemaAddVindex + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaAddVindexRequest} request VSchemaAddVindexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaRemoveVindex}. + * @memberof vtadmin.VTAdmin + * @typedef VSchemaRemoveVindexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {vtctldata.VSchemaRemoveVindexResponse} [response] VSchemaRemoveVindexResponse + */ + + /** + * Calls VSchemaRemoveVindex. + * @function vSchemaRemoveVindex + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaRemoveVindexRequest} request VSchemaRemoveVindexRequest message or plain object + * @param {vtadmin.VTAdmin.VSchemaRemoveVindexCallback} callback Node-style callback called with the error, if any, and VSchemaRemoveVindexResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VTAdmin.prototype.vSchemaRemoveVindex = function vSchemaRemoveVindex(request, callback) { + return this.rpcCall(vSchemaRemoveVindex, $root.vtadmin.VSchemaRemoveVindexRequest, $root.vtctldata.VSchemaRemoveVindexResponse, request, callback); + }, "name", { value: "VSchemaRemoveVindex" }); + + /** + * Calls VSchemaRemoveVindex. + * @function vSchemaRemoveVindex + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaRemoveVindexRequest} request VSchemaRemoveVindexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaAddLookupVindex}. + * @memberof vtadmin.VTAdmin + * @typedef VSchemaAddLookupVindexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {vtctldata.VSchemaAddLookupVindexResponse} [response] VSchemaAddLookupVindexResponse + */ + + /** + * Calls VSchemaAddLookupVindex. + * @function vSchemaAddLookupVindex + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaAddLookupVindexRequest} request VSchemaAddLookupVindexRequest message or plain object + * @param {vtadmin.VTAdmin.VSchemaAddLookupVindexCallback} callback Node-style callback called with the error, if any, and VSchemaAddLookupVindexResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VTAdmin.prototype.vSchemaAddLookupVindex = function vSchemaAddLookupVindex(request, callback) { + return this.rpcCall(vSchemaAddLookupVindex, $root.vtadmin.VSchemaAddLookupVindexRequest, $root.vtctldata.VSchemaAddLookupVindexResponse, request, callback); + }, "name", { value: "VSchemaAddLookupVindex" }); + + /** + * Calls VSchemaAddLookupVindex. + * @function vSchemaAddLookupVindex + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaAddLookupVindexRequest} request VSchemaAddLookupVindexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaAddTables}. + * @memberof vtadmin.VTAdmin + * @typedef VSchemaAddTablesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {vtctldata.VSchemaAddTablesResponse} [response] VSchemaAddTablesResponse + */ + + /** + * Calls VSchemaAddTables. + * @function vSchemaAddTables + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaAddTablesRequest} request VSchemaAddTablesRequest message or plain object + * @param {vtadmin.VTAdmin.VSchemaAddTablesCallback} callback Node-style callback called with the error, if any, and VSchemaAddTablesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VTAdmin.prototype.vSchemaAddTables = function vSchemaAddTables(request, callback) { + return this.rpcCall(vSchemaAddTables, $root.vtadmin.VSchemaAddTablesRequest, $root.vtctldata.VSchemaAddTablesResponse, request, callback); + }, "name", { value: "VSchemaAddTables" }); + + /** + * Calls VSchemaAddTables. + * @function vSchemaAddTables + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaAddTablesRequest} request VSchemaAddTablesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaRemoveTables}. + * @memberof vtadmin.VTAdmin + * @typedef VSchemaRemoveTablesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {vtctldata.VSchemaRemoveTablesResponse} [response] VSchemaRemoveTablesResponse + */ + + /** + * Calls VSchemaRemoveTables. + * @function vSchemaRemoveTables + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaRemoveTablesRequest} request VSchemaRemoveTablesRequest message or plain object + * @param {vtadmin.VTAdmin.VSchemaRemoveTablesCallback} callback Node-style callback called with the error, if any, and VSchemaRemoveTablesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VTAdmin.prototype.vSchemaRemoveTables = function vSchemaRemoveTables(request, callback) { + return this.rpcCall(vSchemaRemoveTables, $root.vtadmin.VSchemaRemoveTablesRequest, $root.vtctldata.VSchemaRemoveTablesResponse, request, callback); + }, "name", { value: "VSchemaRemoveTables" }); + + /** + * Calls VSchemaRemoveTables. + * @function vSchemaRemoveTables + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaRemoveTablesRequest} request VSchemaRemoveTablesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaSetPrimaryVindex}. + * @memberof vtadmin.VTAdmin + * @typedef VSchemaSetPrimaryVindexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {vtctldata.VSchemaSetPrimaryVindexResponse} [response] VSchemaSetPrimaryVindexResponse + */ + + /** + * Calls VSchemaSetPrimaryVindex. + * @function vSchemaSetPrimaryVindex + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaSetPrimaryVindexRequest} request VSchemaSetPrimaryVindexRequest message or plain object + * @param {vtadmin.VTAdmin.VSchemaSetPrimaryVindexCallback} callback Node-style callback called with the error, if any, and VSchemaSetPrimaryVindexResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VTAdmin.prototype.vSchemaSetPrimaryVindex = function vSchemaSetPrimaryVindex(request, callback) { + return this.rpcCall(vSchemaSetPrimaryVindex, $root.vtadmin.VSchemaSetPrimaryVindexRequest, $root.vtctldata.VSchemaSetPrimaryVindexResponse, request, callback); + }, "name", { value: "VSchemaSetPrimaryVindex" }); + + /** + * Calls VSchemaSetPrimaryVindex. + * @function vSchemaSetPrimaryVindex + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaSetPrimaryVindexRequest} request VSchemaSetPrimaryVindexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaSetSequence}. + * @memberof vtadmin.VTAdmin + * @typedef VSchemaSetSequenceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {vtctldata.VSchemaSetSequenceResponse} [response] VSchemaSetSequenceResponse + */ + + /** + * Calls VSchemaSetSequence. + * @function vSchemaSetSequence + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaSetSequenceRequest} request VSchemaSetSequenceRequest message or plain object + * @param {vtadmin.VTAdmin.VSchemaSetSequenceCallback} callback Node-style callback called with the error, if any, and VSchemaSetSequenceResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VTAdmin.prototype.vSchemaSetSequence = function vSchemaSetSequence(request, callback) { + return this.rpcCall(vSchemaSetSequence, $root.vtadmin.VSchemaSetSequenceRequest, $root.vtctldata.VSchemaSetSequenceResponse, request, callback); + }, "name", { value: "VSchemaSetSequence" }); + + /** + * Calls VSchemaSetSequence. + * @function vSchemaSetSequence + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaSetSequenceRequest} request VSchemaSetSequenceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link vtadmin.VTAdmin#vSchemaSetReference}. + * @memberof vtadmin.VTAdmin + * @typedef VSchemaSetReferenceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {vtctldata.VSchemaSetReferenceResponse} [response] VSchemaSetReferenceResponse + */ + + /** + * Calls VSchemaSetReference. + * @function vSchemaSetReference + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaSetReferenceRequest} request VSchemaSetReferenceRequest message or plain object + * @param {vtadmin.VTAdmin.VSchemaSetReferenceCallback} callback Node-style callback called with the error, if any, and VSchemaSetReferenceResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VTAdmin.prototype.vSchemaSetReference = function vSchemaSetReference(request, callback) { + return this.rpcCall(vSchemaSetReference, $root.vtadmin.VSchemaSetReferenceRequest, $root.vtctldata.VSchemaSetReferenceResponse, request, callback); + }, "name", { value: "VSchemaSetReference" }); + + /** + * Calls VSchemaSetReference. + * @function vSchemaSetReference + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IVSchemaSetReferenceRequest} request VSchemaSetReferenceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link vtadmin.VTAdmin#workflowDelete}. * @memberof vtadmin.VTAdmin @@ -35751,58 +36048,25 @@ export const vtadmin = $root.vtadmin = (() => { return VExplainResponse; })(); - return vtadmin; -})(); - -export const logutil = $root.logutil = (() => { - - /** - * Namespace logutil. - * @exports logutil - * @namespace - */ - const logutil = {}; - - /** - * Level enum. - * @name logutil.Level - * @enum {number} - * @property {number} INFO=0 INFO value - * @property {number} WARNING=1 WARNING value - * @property {number} ERROR=2 ERROR value - * @property {number} CONSOLE=3 CONSOLE value - */ - logutil.Level = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INFO"] = 0; - values[valuesById[1] = "WARNING"] = 1; - values[valuesById[2] = "ERROR"] = 2; - values[valuesById[3] = "CONSOLE"] = 3; - return values; - })(); - - logutil.Event = (function() { + vtadmin.VSchemaPublishRequest = (function() { /** - * Properties of an Event. - * @memberof logutil - * @interface IEvent - * @property {vttime.ITime|null} [time] Event time - * @property {logutil.Level|null} [level] Event level - * @property {string|null} [file] Event file - * @property {number|Long|null} [line] Event line - * @property {string|null} [value] Event value + * Properties of a VSchemaPublishRequest. + * @memberof vtadmin + * @interface IVSchemaPublishRequest + * @property {string|null} [cluster_id] VSchemaPublishRequest cluster_id + * @property {vtctldata.IVSchemaPublishRequest|null} [request] VSchemaPublishRequest request */ /** - * Constructs a new Event. - * @memberof logutil - * @classdesc Represents an Event. - * @implements IEvent + * Constructs a new VSchemaPublishRequest. + * @memberof vtadmin + * @classdesc Represents a VSchemaPublishRequest. + * @implements IVSchemaPublishRequest * @constructor - * @param {logutil.IEvent=} [properties] Properties to set + * @param {vtadmin.IVSchemaPublishRequest=} [properties] Properties to set */ - function Event(properties) { + function VSchemaPublishRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35810,131 +36074,89 @@ export const logutil = $root.logutil = (() => { } /** - * Event time. - * @member {vttime.ITime|null|undefined} time - * @memberof logutil.Event - * @instance - */ - Event.prototype.time = null; - - /** - * Event level. - * @member {logutil.Level} level - * @memberof logutil.Event - * @instance - */ - Event.prototype.level = 0; - - /** - * Event file. - * @member {string} file - * @memberof logutil.Event - * @instance - */ - Event.prototype.file = ""; - - /** - * Event line. - * @member {number|Long} line - * @memberof logutil.Event + * VSchemaPublishRequest cluster_id. + * @member {string} cluster_id + * @memberof vtadmin.VSchemaPublishRequest * @instance */ - Event.prototype.line = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + VSchemaPublishRequest.prototype.cluster_id = ""; /** - * Event value. - * @member {string} value - * @memberof logutil.Event + * VSchemaPublishRequest request. + * @member {vtctldata.IVSchemaPublishRequest|null|undefined} request + * @memberof vtadmin.VSchemaPublishRequest * @instance */ - Event.prototype.value = ""; + VSchemaPublishRequest.prototype.request = null; /** - * Creates a new Event instance using the specified properties. + * Creates a new VSchemaPublishRequest instance using the specified properties. * @function create - * @memberof logutil.Event + * @memberof vtadmin.VSchemaPublishRequest * @static - * @param {logutil.IEvent=} [properties] Properties to set - * @returns {logutil.Event} Event instance + * @param {vtadmin.IVSchemaPublishRequest=} [properties] Properties to set + * @returns {vtadmin.VSchemaPublishRequest} VSchemaPublishRequest instance */ - Event.create = function create(properties) { - return new Event(properties); + VSchemaPublishRequest.create = function create(properties) { + return new VSchemaPublishRequest(properties); }; /** - * Encodes the specified Event message. Does not implicitly {@link logutil.Event.verify|verify} messages. + * Encodes the specified VSchemaPublishRequest message. Does not implicitly {@link vtadmin.VSchemaPublishRequest.verify|verify} messages. * @function encode - * @memberof logutil.Event + * @memberof vtadmin.VSchemaPublishRequest * @static - * @param {logutil.IEvent} message Event message or plain object to encode + * @param {vtadmin.IVSchemaPublishRequest} message VSchemaPublishRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Event.encode = function encode(message, writer) { + VSchemaPublishRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.time != null && Object.hasOwnProperty.call(message, "time")) - $root.vttime.Time.encode(message.time, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.level != null && Object.hasOwnProperty.call(message, "level")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.level); - if (message.file != null && Object.hasOwnProperty.call(message, "file")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.file); - if (message.line != null && Object.hasOwnProperty.call(message, "line")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.line); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.value); + if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); + if (message.request != null && Object.hasOwnProperty.call(message, "request")) + $root.vtctldata.VSchemaPublishRequest.encode(message.request, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Event message, length delimited. Does not implicitly {@link logutil.Event.verify|verify} messages. + * Encodes the specified VSchemaPublishRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaPublishRequest.verify|verify} messages. * @function encodeDelimited - * @memberof logutil.Event + * @memberof vtadmin.VSchemaPublishRequest * @static - * @param {logutil.IEvent} message Event message or plain object to encode + * @param {vtadmin.IVSchemaPublishRequest} message VSchemaPublishRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Event.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaPublishRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Event message from the specified reader or buffer. + * Decodes a VSchemaPublishRequest message from the specified reader or buffer. * @function decode - * @memberof logutil.Event + * @memberof vtadmin.VSchemaPublishRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {logutil.Event} Event + * @returns {vtadmin.VSchemaPublishRequest} VSchemaPublishRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Event.decode = function decode(reader, length) { + VSchemaPublishRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.logutil.Event(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VSchemaPublishRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.time = $root.vttime.Time.decode(reader, reader.uint32()); + message.cluster_id = reader.string(); break; } case 2: { - message.level = reader.int32(); - break; - } - case 3: { - message.file = reader.string(); - break; - } - case 4: { - message.line = reader.int64(); - break; - } - case 5: { - message.value = reader.string(); + message.request = $root.vtctldata.VSchemaPublishRequest.decode(reader, reader.uint32()); break; } default: @@ -35946,216 +36168,137 @@ export const logutil = $root.logutil = (() => { }; /** - * Decodes an Event message from the specified reader or buffer, length delimited. + * Decodes a VSchemaPublishRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof logutil.Event + * @memberof vtadmin.VSchemaPublishRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {logutil.Event} Event + * @returns {vtadmin.VSchemaPublishRequest} VSchemaPublishRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Event.decodeDelimited = function decodeDelimited(reader) { + VSchemaPublishRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Event message. + * Verifies a VSchemaPublishRequest message. * @function verify - * @memberof logutil.Event + * @memberof vtadmin.VSchemaPublishRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Event.verify = function verify(message) { + VSchemaPublishRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.time != null && message.hasOwnProperty("time")) { - let error = $root.vttime.Time.verify(message.time); + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + if (!$util.isString(message.cluster_id)) + return "cluster_id: string expected"; + if (message.request != null && message.hasOwnProperty("request")) { + let error = $root.vtctldata.VSchemaPublishRequest.verify(message.request); if (error) - return "time." + error; + return "request." + error; } - if (message.level != null && message.hasOwnProperty("level")) - switch (message.level) { - default: - return "level: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.file != null && message.hasOwnProperty("file")) - if (!$util.isString(message.file)) - return "file: string expected"; - if (message.line != null && message.hasOwnProperty("line")) - if (!$util.isInteger(message.line) && !(message.line && $util.isInteger(message.line.low) && $util.isInteger(message.line.high))) - return "line: integer|Long expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; return null; }; /** - * Creates an Event message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaPublishRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof logutil.Event + * @memberof vtadmin.VSchemaPublishRequest * @static * @param {Object.} object Plain object - * @returns {logutil.Event} Event + * @returns {vtadmin.VSchemaPublishRequest} VSchemaPublishRequest */ - Event.fromObject = function fromObject(object) { - if (object instanceof $root.logutil.Event) + VSchemaPublishRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.VSchemaPublishRequest) return object; - let message = new $root.logutil.Event(); - if (object.time != null) { - if (typeof object.time !== "object") - throw TypeError(".logutil.Event.time: object expected"); - message.time = $root.vttime.Time.fromObject(object.time); - } - switch (object.level) { - default: - if (typeof object.level === "number") { - message.level = object.level; - break; - } - break; - case "INFO": - case 0: - message.level = 0; - break; - case "WARNING": - case 1: - message.level = 1; - break; - case "ERROR": - case 2: - message.level = 2; - break; - case "CONSOLE": - case 3: - message.level = 3; - break; + let message = new $root.vtadmin.VSchemaPublishRequest(); + if (object.cluster_id != null) + message.cluster_id = String(object.cluster_id); + if (object.request != null) { + if (typeof object.request !== "object") + throw TypeError(".vtadmin.VSchemaPublishRequest.request: object expected"); + message.request = $root.vtctldata.VSchemaPublishRequest.fromObject(object.request); } - if (object.file != null) - message.file = String(object.file); - if (object.line != null) - if ($util.Long) - (message.line = $util.Long.fromValue(object.line)).unsigned = false; - else if (typeof object.line === "string") - message.line = parseInt(object.line, 10); - else if (typeof object.line === "number") - message.line = object.line; - else if (typeof object.line === "object") - message.line = new $util.LongBits(object.line.low >>> 0, object.line.high >>> 0).toNumber(); - if (object.value != null) - message.value = String(object.value); return message; }; /** - * Creates a plain object from an Event message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaPublishRequest message. Also converts values to other types if specified. * @function toObject - * @memberof logutil.Event + * @memberof vtadmin.VSchemaPublishRequest * @static - * @param {logutil.Event} message Event + * @param {vtadmin.VSchemaPublishRequest} message VSchemaPublishRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Event.toObject = function toObject(message, options) { + VSchemaPublishRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.time = null; - object.level = options.enums === String ? "INFO" : 0; - object.file = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.line = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.line = options.longs === String ? "0" : 0; - object.value = ""; + object.cluster_id = ""; + object.request = null; } - if (message.time != null && message.hasOwnProperty("time")) - object.time = $root.vttime.Time.toObject(message.time, options); - if (message.level != null && message.hasOwnProperty("level")) - object.level = options.enums === String ? $root.logutil.Level[message.level] === undefined ? message.level : $root.logutil.Level[message.level] : message.level; - if (message.file != null && message.hasOwnProperty("file")) - object.file = message.file; - if (message.line != null && message.hasOwnProperty("line")) - if (typeof message.line === "number") - object.line = options.longs === String ? String(message.line) : message.line; - else - object.line = options.longs === String ? $util.Long.prototype.toString.call(message.line) : options.longs === Number ? new $util.LongBits(message.line.low >>> 0, message.line.high >>> 0).toNumber() : message.line; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + object.cluster_id = message.cluster_id; + if (message.request != null && message.hasOwnProperty("request")) + object.request = $root.vtctldata.VSchemaPublishRequest.toObject(message.request, options); return object; }; /** - * Converts this Event to JSON. + * Converts this VSchemaPublishRequest to JSON. * @function toJSON - * @memberof logutil.Event + * @memberof vtadmin.VSchemaPublishRequest * @instance * @returns {Object.} JSON object */ - Event.prototype.toJSON = function toJSON() { + VSchemaPublishRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Event + * Gets the default type url for VSchemaPublishRequest * @function getTypeUrl - * @memberof logutil.Event + * @memberof vtadmin.VSchemaPublishRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Event.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaPublishRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/logutil.Event"; + return typeUrlPrefix + "/vtadmin.VSchemaPublishRequest"; }; - return Event; + return VSchemaPublishRequest; })(); - return logutil; -})(); - -export const vttime = $root.vttime = (() => { - - /** - * Namespace vttime. - * @exports vttime - * @namespace - */ - const vttime = {}; - - vttime.Time = (function() { + vtadmin.VSchemaAddVindexRequest = (function() { /** - * Properties of a Time. - * @memberof vttime - * @interface ITime - * @property {number|Long|null} [seconds] Time seconds - * @property {number|null} [nanoseconds] Time nanoseconds + * Properties of a VSchemaAddVindexRequest. + * @memberof vtadmin + * @interface IVSchemaAddVindexRequest + * @property {string|null} [cluster_id] VSchemaAddVindexRequest cluster_id + * @property {vtctldata.IVSchemaAddVindexRequest|null} [request] VSchemaAddVindexRequest request */ /** - * Constructs a new Time. - * @memberof vttime - * @classdesc Represents a Time. - * @implements ITime + * Constructs a new VSchemaAddVindexRequest. + * @memberof vtadmin + * @classdesc Represents a VSchemaAddVindexRequest. + * @implements IVSchemaAddVindexRequest * @constructor - * @param {vttime.ITime=} [properties] Properties to set + * @param {vtadmin.IVSchemaAddVindexRequest=} [properties] Properties to set */ - function Time(properties) { + function VSchemaAddVindexRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36163,89 +36306,89 @@ export const vttime = $root.vttime = (() => { } /** - * Time seconds. - * @member {number|Long} seconds - * @memberof vttime.Time + * VSchemaAddVindexRequest cluster_id. + * @member {string} cluster_id + * @memberof vtadmin.VSchemaAddVindexRequest * @instance */ - Time.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + VSchemaAddVindexRequest.prototype.cluster_id = ""; /** - * Time nanoseconds. - * @member {number} nanoseconds - * @memberof vttime.Time + * VSchemaAddVindexRequest request. + * @member {vtctldata.IVSchemaAddVindexRequest|null|undefined} request + * @memberof vtadmin.VSchemaAddVindexRequest * @instance */ - Time.prototype.nanoseconds = 0; + VSchemaAddVindexRequest.prototype.request = null; /** - * Creates a new Time instance using the specified properties. + * Creates a new VSchemaAddVindexRequest instance using the specified properties. * @function create - * @memberof vttime.Time + * @memberof vtadmin.VSchemaAddVindexRequest * @static - * @param {vttime.ITime=} [properties] Properties to set - * @returns {vttime.Time} Time instance + * @param {vtadmin.IVSchemaAddVindexRequest=} [properties] Properties to set + * @returns {vtadmin.VSchemaAddVindexRequest} VSchemaAddVindexRequest instance */ - Time.create = function create(properties) { - return new Time(properties); + VSchemaAddVindexRequest.create = function create(properties) { + return new VSchemaAddVindexRequest(properties); }; /** - * Encodes the specified Time message. Does not implicitly {@link vttime.Time.verify|verify} messages. + * Encodes the specified VSchemaAddVindexRequest message. Does not implicitly {@link vtadmin.VSchemaAddVindexRequest.verify|verify} messages. * @function encode - * @memberof vttime.Time + * @memberof vtadmin.VSchemaAddVindexRequest * @static - * @param {vttime.ITime} message Time message or plain object to encode + * @param {vtadmin.IVSchemaAddVindexRequest} message VSchemaAddVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Time.encode = function encode(message, writer) { + VSchemaAddVindexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanoseconds != null && Object.hasOwnProperty.call(message, "nanoseconds")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanoseconds); + if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); + if (message.request != null && Object.hasOwnProperty.call(message, "request")) + $root.vtctldata.VSchemaAddVindexRequest.encode(message.request, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Time message, length delimited. Does not implicitly {@link vttime.Time.verify|verify} messages. + * Encodes the specified VSchemaAddVindexRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaAddVindexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vttime.Time + * @memberof vtadmin.VSchemaAddVindexRequest * @static - * @param {vttime.ITime} message Time message or plain object to encode + * @param {vtadmin.IVSchemaAddVindexRequest} message VSchemaAddVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Time.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaAddVindexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Time message from the specified reader or buffer. + * Decodes a VSchemaAddVindexRequest message from the specified reader or buffer. * @function decode - * @memberof vttime.Time + * @memberof vtadmin.VSchemaAddVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vttime.Time} Time + * @returns {vtadmin.VSchemaAddVindexRequest} VSchemaAddVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Time.decode = function decode(reader, length) { + VSchemaAddVindexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vttime.Time(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VSchemaAddVindexRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.seconds = reader.int64(); + message.cluster_id = reader.string(); break; } case 2: { - message.nanoseconds = reader.int32(); + message.request = $root.vtctldata.VSchemaAddVindexRequest.decode(reader, reader.uint32()); break; } default: @@ -36257,146 +36400,137 @@ export const vttime = $root.vttime = (() => { }; /** - * Decodes a Time message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddVindexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vttime.Time + * @memberof vtadmin.VSchemaAddVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vttime.Time} Time + * @returns {vtadmin.VSchemaAddVindexRequest} VSchemaAddVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Time.decodeDelimited = function decodeDelimited(reader) { + VSchemaAddVindexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Time message. + * Verifies a VSchemaAddVindexRequest message. * @function verify - * @memberof vttime.Time + * @memberof vtadmin.VSchemaAddVindexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Time.verify = function verify(message) { + VSchemaAddVindexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanoseconds != null && message.hasOwnProperty("nanoseconds")) - if (!$util.isInteger(message.nanoseconds)) - return "nanoseconds: integer expected"; + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + if (!$util.isString(message.cluster_id)) + return "cluster_id: string expected"; + if (message.request != null && message.hasOwnProperty("request")) { + let error = $root.vtctldata.VSchemaAddVindexRequest.verify(message.request); + if (error) + return "request." + error; + } return null; }; /** - * Creates a Time message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaAddVindexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vttime.Time + * @memberof vtadmin.VSchemaAddVindexRequest * @static * @param {Object.} object Plain object - * @returns {vttime.Time} Time + * @returns {vtadmin.VSchemaAddVindexRequest} VSchemaAddVindexRequest */ - Time.fromObject = function fromObject(object) { - if (object instanceof $root.vttime.Time) + VSchemaAddVindexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.VSchemaAddVindexRequest) return object; - let message = new $root.vttime.Time(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanoseconds != null) - message.nanoseconds = object.nanoseconds | 0; + let message = new $root.vtadmin.VSchemaAddVindexRequest(); + if (object.cluster_id != null) + message.cluster_id = String(object.cluster_id); + if (object.request != null) { + if (typeof object.request !== "object") + throw TypeError(".vtadmin.VSchemaAddVindexRequest.request: object expected"); + message.request = $root.vtctldata.VSchemaAddVindexRequest.fromObject(object.request); + } return message; }; /** - * Creates a plain object from a Time message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaAddVindexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vttime.Time + * @memberof vtadmin.VSchemaAddVindexRequest * @static - * @param {vttime.Time} message Time + * @param {vtadmin.VSchemaAddVindexRequest} message VSchemaAddVindexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Time.toObject = function toObject(message, options) { + VSchemaAddVindexRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanoseconds = 0; + object.cluster_id = ""; + object.request = null; } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanoseconds != null && message.hasOwnProperty("nanoseconds")) - object.nanoseconds = message.nanoseconds; + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + object.cluster_id = message.cluster_id; + if (message.request != null && message.hasOwnProperty("request")) + object.request = $root.vtctldata.VSchemaAddVindexRequest.toObject(message.request, options); return object; }; /** - * Converts this Time to JSON. + * Converts this VSchemaAddVindexRequest to JSON. * @function toJSON - * @memberof vttime.Time + * @memberof vtadmin.VSchemaAddVindexRequest * @instance * @returns {Object.} JSON object */ - Time.prototype.toJSON = function toJSON() { + VSchemaAddVindexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Time + * Gets the default type url for VSchemaAddVindexRequest * @function getTypeUrl - * @memberof vttime.Time + * @memberof vtadmin.VSchemaAddVindexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Time.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaAddVindexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vttime.Time"; + return typeUrlPrefix + "/vtadmin.VSchemaAddVindexRequest"; }; - return Time; + return VSchemaAddVindexRequest; })(); - vttime.Duration = (function() { + vtadmin.VSchemaRemoveVindexRequest = (function() { /** - * Properties of a Duration. - * @memberof vttime - * @interface IDuration - * @property {number|Long|null} [seconds] Duration seconds - * @property {number|null} [nanos] Duration nanos + * Properties of a VSchemaRemoveVindexRequest. + * @memberof vtadmin + * @interface IVSchemaRemoveVindexRequest + * @property {string|null} [cluster_id] VSchemaRemoveVindexRequest cluster_id + * @property {vtctldata.IVSchemaRemoveVindexRequest|null} [request] VSchemaRemoveVindexRequest request */ /** - * Constructs a new Duration. - * @memberof vttime - * @classdesc Represents a Duration. - * @implements IDuration + * Constructs a new VSchemaRemoveVindexRequest. + * @memberof vtadmin + * @classdesc Represents a VSchemaRemoveVindexRequest. + * @implements IVSchemaRemoveVindexRequest * @constructor - * @param {vttime.IDuration=} [properties] Properties to set + * @param {vtadmin.IVSchemaRemoveVindexRequest=} [properties] Properties to set */ - function Duration(properties) { + function VSchemaRemoveVindexRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36404,89 +36538,89 @@ export const vttime = $root.vttime = (() => { } /** - * Duration seconds. - * @member {number|Long} seconds - * @memberof vttime.Duration + * VSchemaRemoveVindexRequest cluster_id. + * @member {string} cluster_id + * @memberof vtadmin.VSchemaRemoveVindexRequest * @instance */ - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + VSchemaRemoveVindexRequest.prototype.cluster_id = ""; /** - * Duration nanos. - * @member {number} nanos - * @memberof vttime.Duration + * VSchemaRemoveVindexRequest request. + * @member {vtctldata.IVSchemaRemoveVindexRequest|null|undefined} request + * @memberof vtadmin.VSchemaRemoveVindexRequest * @instance */ - Duration.prototype.nanos = 0; + VSchemaRemoveVindexRequest.prototype.request = null; /** - * Creates a new Duration instance using the specified properties. + * Creates a new VSchemaRemoveVindexRequest instance using the specified properties. * @function create - * @memberof vttime.Duration + * @memberof vtadmin.VSchemaRemoveVindexRequest * @static - * @param {vttime.IDuration=} [properties] Properties to set - * @returns {vttime.Duration} Duration instance + * @param {vtadmin.IVSchemaRemoveVindexRequest=} [properties] Properties to set + * @returns {vtadmin.VSchemaRemoveVindexRequest} VSchemaRemoveVindexRequest instance */ - Duration.create = function create(properties) { - return new Duration(properties); + VSchemaRemoveVindexRequest.create = function create(properties) { + return new VSchemaRemoveVindexRequest(properties); }; /** - * Encodes the specified Duration message. Does not implicitly {@link vttime.Duration.verify|verify} messages. + * Encodes the specified VSchemaRemoveVindexRequest message. Does not implicitly {@link vtadmin.VSchemaRemoveVindexRequest.verify|verify} messages. * @function encode - * @memberof vttime.Duration + * @memberof vtadmin.VSchemaRemoveVindexRequest * @static - * @param {vttime.IDuration} message Duration message or plain object to encode + * @param {vtadmin.IVSchemaRemoveVindexRequest} message VSchemaRemoveVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Duration.encode = function encode(message, writer) { + VSchemaRemoveVindexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); + if (message.request != null && Object.hasOwnProperty.call(message, "request")) + $root.vtctldata.VSchemaRemoveVindexRequest.encode(message.request, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link vttime.Duration.verify|verify} messages. + * Encodes the specified VSchemaRemoveVindexRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaRemoveVindexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vttime.Duration + * @memberof vtadmin.VSchemaRemoveVindexRequest * @static - * @param {vttime.IDuration} message Duration message or plain object to encode + * @param {vtadmin.IVSchemaRemoveVindexRequest} message VSchemaRemoveVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Duration.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaRemoveVindexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Duration message from the specified reader or buffer. + * Decodes a VSchemaRemoveVindexRequest message from the specified reader or buffer. * @function decode - * @memberof vttime.Duration + * @memberof vtadmin.VSchemaRemoveVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vttime.Duration} Duration + * @returns {vtadmin.VSchemaRemoveVindexRequest} VSchemaRemoveVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Duration.decode = function decode(reader, length) { + VSchemaRemoveVindexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vttime.Duration(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VSchemaRemoveVindexRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.seconds = reader.int64(); + message.cluster_id = reader.string(); break; } case 2: { - message.nanos = reader.int32(); + message.request = $root.vtctldata.VSchemaRemoveVindexRequest.decode(reader, reader.uint32()); break; } default: @@ -36498,158 +36632,137 @@ export const vttime = $root.vttime = (() => { }; /** - * Decodes a Duration message from the specified reader or buffer, length delimited. + * Decodes a VSchemaRemoveVindexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vttime.Duration + * @memberof vtadmin.VSchemaRemoveVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vttime.Duration} Duration + * @returns {vtadmin.VSchemaRemoveVindexRequest} VSchemaRemoveVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Duration.decodeDelimited = function decodeDelimited(reader) { + VSchemaRemoveVindexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Duration message. + * Verifies a VSchemaRemoveVindexRequest message. * @function verify - * @memberof vttime.Duration + * @memberof vtadmin.VSchemaRemoveVindexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Duration.verify = function verify(message) { + VSchemaRemoveVindexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + if (!$util.isString(message.cluster_id)) + return "cluster_id: string expected"; + if (message.request != null && message.hasOwnProperty("request")) { + let error = $root.vtctldata.VSchemaRemoveVindexRequest.verify(message.request); + if (error) + return "request." + error; + } return null; }; /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaRemoveVindexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vttime.Duration + * @memberof vtadmin.VSchemaRemoveVindexRequest * @static * @param {Object.} object Plain object - * @returns {vttime.Duration} Duration + * @returns {vtadmin.VSchemaRemoveVindexRequest} VSchemaRemoveVindexRequest */ - Duration.fromObject = function fromObject(object) { - if (object instanceof $root.vttime.Duration) + VSchemaRemoveVindexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.VSchemaRemoveVindexRequest) return object; - let message = new $root.vttime.Duration(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; + let message = new $root.vtadmin.VSchemaRemoveVindexRequest(); + if (object.cluster_id != null) + message.cluster_id = String(object.cluster_id); + if (object.request != null) { + if (typeof object.request !== "object") + throw TypeError(".vtadmin.VSchemaRemoveVindexRequest.request: object expected"); + message.request = $root.vtctldata.VSchemaRemoveVindexRequest.fromObject(object.request); + } return message; }; /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaRemoveVindexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vttime.Duration + * @memberof vtadmin.VSchemaRemoveVindexRequest * @static - * @param {vttime.Duration} message Duration + * @param {vtadmin.VSchemaRemoveVindexRequest} message VSchemaRemoveVindexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Duration.toObject = function toObject(message, options) { + VSchemaRemoveVindexRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; + object.cluster_id = ""; + object.request = null; } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + object.cluster_id = message.cluster_id; + if (message.request != null && message.hasOwnProperty("request")) + object.request = $root.vtctldata.VSchemaRemoveVindexRequest.toObject(message.request, options); return object; }; /** - * Converts this Duration to JSON. + * Converts this VSchemaRemoveVindexRequest to JSON. * @function toJSON - * @memberof vttime.Duration + * @memberof vtadmin.VSchemaRemoveVindexRequest * @instance * @returns {Object.} JSON object */ - Duration.prototype.toJSON = function toJSON() { + VSchemaRemoveVindexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Duration + * Gets the default type url for VSchemaRemoveVindexRequest * @function getTypeUrl - * @memberof vttime.Duration + * @memberof vtadmin.VSchemaRemoveVindexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaRemoveVindexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vttime.Duration"; + return typeUrlPrefix + "/vtadmin.VSchemaRemoveVindexRequest"; }; - return Duration; + return VSchemaRemoveVindexRequest; })(); - return vttime; -})(); - -export const mysqlctl = $root.mysqlctl = (() => { - - /** - * Namespace mysqlctl. - * @exports mysqlctl - * @namespace - */ - const mysqlctl = {}; - - mysqlctl.StartRequest = (function() { + vtadmin.VSchemaAddLookupVindexRequest = (function() { /** - * Properties of a StartRequest. - * @memberof mysqlctl - * @interface IStartRequest - * @property {Array.|null} [mysqld_args] StartRequest mysqld_args + * Properties of a VSchemaAddLookupVindexRequest. + * @memberof vtadmin + * @interface IVSchemaAddLookupVindexRequest + * @property {string|null} [cluster_id] VSchemaAddLookupVindexRequest cluster_id + * @property {vtctldata.IVSchemaAddLookupVindexRequest|null} [request] VSchemaAddLookupVindexRequest request */ /** - * Constructs a new StartRequest. - * @memberof mysqlctl - * @classdesc Represents a StartRequest. - * @implements IStartRequest + * Constructs a new VSchemaAddLookupVindexRequest. + * @memberof vtadmin + * @classdesc Represents a VSchemaAddLookupVindexRequest. + * @implements IVSchemaAddLookupVindexRequest * @constructor - * @param {mysqlctl.IStartRequest=} [properties] Properties to set + * @param {vtadmin.IVSchemaAddLookupVindexRequest=} [properties] Properties to set */ - function StartRequest(properties) { - this.mysqld_args = []; + function VSchemaAddLookupVindexRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36657,78 +36770,89 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * StartRequest mysqld_args. - * @member {Array.} mysqld_args - * @memberof mysqlctl.StartRequest + * VSchemaAddLookupVindexRequest cluster_id. + * @member {string} cluster_id + * @memberof vtadmin.VSchemaAddLookupVindexRequest * @instance */ - StartRequest.prototype.mysqld_args = $util.emptyArray; + VSchemaAddLookupVindexRequest.prototype.cluster_id = ""; /** - * Creates a new StartRequest instance using the specified properties. + * VSchemaAddLookupVindexRequest request. + * @member {vtctldata.IVSchemaAddLookupVindexRequest|null|undefined} request + * @memberof vtadmin.VSchemaAddLookupVindexRequest + * @instance + */ + VSchemaAddLookupVindexRequest.prototype.request = null; + + /** + * Creates a new VSchemaAddLookupVindexRequest instance using the specified properties. * @function create - * @memberof mysqlctl.StartRequest + * @memberof vtadmin.VSchemaAddLookupVindexRequest * @static - * @param {mysqlctl.IStartRequest=} [properties] Properties to set - * @returns {mysqlctl.StartRequest} StartRequest instance + * @param {vtadmin.IVSchemaAddLookupVindexRequest=} [properties] Properties to set + * @returns {vtadmin.VSchemaAddLookupVindexRequest} VSchemaAddLookupVindexRequest instance */ - StartRequest.create = function create(properties) { - return new StartRequest(properties); + VSchemaAddLookupVindexRequest.create = function create(properties) { + return new VSchemaAddLookupVindexRequest(properties); }; /** - * Encodes the specified StartRequest message. Does not implicitly {@link mysqlctl.StartRequest.verify|verify} messages. + * Encodes the specified VSchemaAddLookupVindexRequest message. Does not implicitly {@link vtadmin.VSchemaAddLookupVindexRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.StartRequest + * @memberof vtadmin.VSchemaAddLookupVindexRequest * @static - * @param {mysqlctl.IStartRequest} message StartRequest message or plain object to encode + * @param {vtadmin.IVSchemaAddLookupVindexRequest} message VSchemaAddLookupVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartRequest.encode = function encode(message, writer) { + VSchemaAddLookupVindexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.mysqld_args != null && message.mysqld_args.length) - for (let i = 0; i < message.mysqld_args.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.mysqld_args[i]); + if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); + if (message.request != null && Object.hasOwnProperty.call(message, "request")) + $root.vtctldata.VSchemaAddLookupVindexRequest.encode(message.request, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified StartRequest message, length delimited. Does not implicitly {@link mysqlctl.StartRequest.verify|verify} messages. + * Encodes the specified VSchemaAddLookupVindexRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaAddLookupVindexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.StartRequest + * @memberof vtadmin.VSchemaAddLookupVindexRequest * @static - * @param {mysqlctl.IStartRequest} message StartRequest message or plain object to encode + * @param {vtadmin.IVSchemaAddLookupVindexRequest} message VSchemaAddLookupVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartRequest.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaAddLookupVindexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartRequest message from the specified reader or buffer. + * Decodes a VSchemaAddLookupVindexRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.StartRequest + * @memberof vtadmin.VSchemaAddLookupVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.StartRequest} StartRequest + * @returns {vtadmin.VSchemaAddLookupVindexRequest} VSchemaAddLookupVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartRequest.decode = function decode(reader, length) { + VSchemaAddLookupVindexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.StartRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VSchemaAddLookupVindexRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.mysqld_args && message.mysqld_args.length)) - message.mysqld_args = []; - message.mysqld_args.push(reader.string()); + message.cluster_id = reader.string(); + break; + } + case 2: { + message.request = $root.vtctldata.VSchemaAddLookupVindexRequest.decode(reader, reader.uint32()); break; } default: @@ -36740,133 +36864,137 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a StartRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddLookupVindexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.StartRequest + * @memberof vtadmin.VSchemaAddLookupVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.StartRequest} StartRequest + * @returns {vtadmin.VSchemaAddLookupVindexRequest} VSchemaAddLookupVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartRequest.decodeDelimited = function decodeDelimited(reader) { + VSchemaAddLookupVindexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartRequest message. + * Verifies a VSchemaAddLookupVindexRequest message. * @function verify - * @memberof mysqlctl.StartRequest + * @memberof vtadmin.VSchemaAddLookupVindexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartRequest.verify = function verify(message) { + VSchemaAddLookupVindexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.mysqld_args != null && message.hasOwnProperty("mysqld_args")) { - if (!Array.isArray(message.mysqld_args)) - return "mysqld_args: array expected"; - for (let i = 0; i < message.mysqld_args.length; ++i) - if (!$util.isString(message.mysqld_args[i])) - return "mysqld_args: string[] expected"; + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + if (!$util.isString(message.cluster_id)) + return "cluster_id: string expected"; + if (message.request != null && message.hasOwnProperty("request")) { + let error = $root.vtctldata.VSchemaAddLookupVindexRequest.verify(message.request); + if (error) + return "request." + error; } return null; }; /** - * Creates a StartRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaAddLookupVindexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.StartRequest + * @memberof vtadmin.VSchemaAddLookupVindexRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.StartRequest} StartRequest + * @returns {vtadmin.VSchemaAddLookupVindexRequest} VSchemaAddLookupVindexRequest */ - StartRequest.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.StartRequest) + VSchemaAddLookupVindexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.VSchemaAddLookupVindexRequest) return object; - let message = new $root.mysqlctl.StartRequest(); - if (object.mysqld_args) { - if (!Array.isArray(object.mysqld_args)) - throw TypeError(".mysqlctl.StartRequest.mysqld_args: array expected"); - message.mysqld_args = []; - for (let i = 0; i < object.mysqld_args.length; ++i) - message.mysqld_args[i] = String(object.mysqld_args[i]); + let message = new $root.vtadmin.VSchemaAddLookupVindexRequest(); + if (object.cluster_id != null) + message.cluster_id = String(object.cluster_id); + if (object.request != null) { + if (typeof object.request !== "object") + throw TypeError(".vtadmin.VSchemaAddLookupVindexRequest.request: object expected"); + message.request = $root.vtctldata.VSchemaAddLookupVindexRequest.fromObject(object.request); } return message; }; /** - * Creates a plain object from a StartRequest message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaAddLookupVindexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.StartRequest + * @memberof vtadmin.VSchemaAddLookupVindexRequest * @static - * @param {mysqlctl.StartRequest} message StartRequest + * @param {vtadmin.VSchemaAddLookupVindexRequest} message VSchemaAddLookupVindexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartRequest.toObject = function toObject(message, options) { + VSchemaAddLookupVindexRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.mysqld_args = []; - if (message.mysqld_args && message.mysqld_args.length) { - object.mysqld_args = []; - for (let j = 0; j < message.mysqld_args.length; ++j) - object.mysqld_args[j] = message.mysqld_args[j]; + if (options.defaults) { + object.cluster_id = ""; + object.request = null; } + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + object.cluster_id = message.cluster_id; + if (message.request != null && message.hasOwnProperty("request")) + object.request = $root.vtctldata.VSchemaAddLookupVindexRequest.toObject(message.request, options); return object; }; /** - * Converts this StartRequest to JSON. + * Converts this VSchemaAddLookupVindexRequest to JSON. * @function toJSON - * @memberof mysqlctl.StartRequest + * @memberof vtadmin.VSchemaAddLookupVindexRequest * @instance * @returns {Object.} JSON object */ - StartRequest.prototype.toJSON = function toJSON() { + VSchemaAddLookupVindexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StartRequest + * Gets the default type url for VSchemaAddLookupVindexRequest * @function getTypeUrl - * @memberof mysqlctl.StartRequest + * @memberof vtadmin.VSchemaAddLookupVindexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaAddLookupVindexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.StartRequest"; + return typeUrlPrefix + "/vtadmin.VSchemaAddLookupVindexRequest"; }; - return StartRequest; + return VSchemaAddLookupVindexRequest; })(); - mysqlctl.StartResponse = (function() { + vtadmin.VSchemaAddTablesRequest = (function() { /** - * Properties of a StartResponse. - * @memberof mysqlctl - * @interface IStartResponse + * Properties of a VSchemaAddTablesRequest. + * @memberof vtadmin + * @interface IVSchemaAddTablesRequest + * @property {string|null} [cluster_id] VSchemaAddTablesRequest cluster_id + * @property {vtctldata.IVSchemaAddTablesRequest|null} [request] VSchemaAddTablesRequest request */ /** - * Constructs a new StartResponse. - * @memberof mysqlctl - * @classdesc Represents a StartResponse. - * @implements IStartResponse + * Constructs a new VSchemaAddTablesRequest. + * @memberof vtadmin + * @classdesc Represents a VSchemaAddTablesRequest. + * @implements IVSchemaAddTablesRequest * @constructor - * @param {mysqlctl.IStartResponse=} [properties] Properties to set + * @param {vtadmin.IVSchemaAddTablesRequest=} [properties] Properties to set */ - function StartResponse(properties) { + function VSchemaAddTablesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36874,63 +37002,91 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * Creates a new StartResponse instance using the specified properties. + * VSchemaAddTablesRequest cluster_id. + * @member {string} cluster_id + * @memberof vtadmin.VSchemaAddTablesRequest + * @instance + */ + VSchemaAddTablesRequest.prototype.cluster_id = ""; + + /** + * VSchemaAddTablesRequest request. + * @member {vtctldata.IVSchemaAddTablesRequest|null|undefined} request + * @memberof vtadmin.VSchemaAddTablesRequest + * @instance + */ + VSchemaAddTablesRequest.prototype.request = null; + + /** + * Creates a new VSchemaAddTablesRequest instance using the specified properties. * @function create - * @memberof mysqlctl.StartResponse + * @memberof vtadmin.VSchemaAddTablesRequest * @static - * @param {mysqlctl.IStartResponse=} [properties] Properties to set - * @returns {mysqlctl.StartResponse} StartResponse instance + * @param {vtadmin.IVSchemaAddTablesRequest=} [properties] Properties to set + * @returns {vtadmin.VSchemaAddTablesRequest} VSchemaAddTablesRequest instance */ - StartResponse.create = function create(properties) { - return new StartResponse(properties); + VSchemaAddTablesRequest.create = function create(properties) { + return new VSchemaAddTablesRequest(properties); }; /** - * Encodes the specified StartResponse message. Does not implicitly {@link mysqlctl.StartResponse.verify|verify} messages. + * Encodes the specified VSchemaAddTablesRequest message. Does not implicitly {@link vtadmin.VSchemaAddTablesRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.StartResponse + * @memberof vtadmin.VSchemaAddTablesRequest * @static - * @param {mysqlctl.IStartResponse} message StartResponse message or plain object to encode + * @param {vtadmin.IVSchemaAddTablesRequest} message VSchemaAddTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartResponse.encode = function encode(message, writer) { + VSchemaAddTablesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); + if (message.request != null && Object.hasOwnProperty.call(message, "request")) + $root.vtctldata.VSchemaAddTablesRequest.encode(message.request, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified StartResponse message, length delimited. Does not implicitly {@link mysqlctl.StartResponse.verify|verify} messages. + * Encodes the specified VSchemaAddTablesRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaAddTablesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.StartResponse + * @memberof vtadmin.VSchemaAddTablesRequest * @static - * @param {mysqlctl.IStartResponse} message StartResponse message or plain object to encode + * @param {vtadmin.IVSchemaAddTablesRequest} message VSchemaAddTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaAddTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartResponse message from the specified reader or buffer. + * Decodes a VSchemaAddTablesRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.StartResponse + * @memberof vtadmin.VSchemaAddTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.StartResponse} StartResponse + * @returns {vtadmin.VSchemaAddTablesRequest} VSchemaAddTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartResponse.decode = function decode(reader, length) { + VSchemaAddTablesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.StartResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VSchemaAddTablesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.cluster_id = reader.string(); + break; + } + case 2: { + message.request = $root.vtctldata.VSchemaAddTablesRequest.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -36940,110 +37096,137 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a StartResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddTablesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.StartResponse + * @memberof vtadmin.VSchemaAddTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.StartResponse} StartResponse + * @returns {vtadmin.VSchemaAddTablesRequest} VSchemaAddTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaAddTablesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartResponse message. + * Verifies a VSchemaAddTablesRequest message. * @function verify - * @memberof mysqlctl.StartResponse + * @memberof vtadmin.VSchemaAddTablesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartResponse.verify = function verify(message) { + VSchemaAddTablesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + if (!$util.isString(message.cluster_id)) + return "cluster_id: string expected"; + if (message.request != null && message.hasOwnProperty("request")) { + let error = $root.vtctldata.VSchemaAddTablesRequest.verify(message.request); + if (error) + return "request." + error; + } return null; }; /** - * Creates a StartResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaAddTablesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.StartResponse + * @memberof vtadmin.VSchemaAddTablesRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.StartResponse} StartResponse + * @returns {vtadmin.VSchemaAddTablesRequest} VSchemaAddTablesRequest */ - StartResponse.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.StartResponse) + VSchemaAddTablesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.VSchemaAddTablesRequest) return object; - return new $root.mysqlctl.StartResponse(); + let message = new $root.vtadmin.VSchemaAddTablesRequest(); + if (object.cluster_id != null) + message.cluster_id = String(object.cluster_id); + if (object.request != null) { + if (typeof object.request !== "object") + throw TypeError(".vtadmin.VSchemaAddTablesRequest.request: object expected"); + message.request = $root.vtctldata.VSchemaAddTablesRequest.fromObject(object.request); + } + return message; }; /** - * Creates a plain object from a StartResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaAddTablesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.StartResponse + * @memberof vtadmin.VSchemaAddTablesRequest * @static - * @param {mysqlctl.StartResponse} message StartResponse + * @param {vtadmin.VSchemaAddTablesRequest} message VSchemaAddTablesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartResponse.toObject = function toObject() { - return {}; + VSchemaAddTablesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.cluster_id = ""; + object.request = null; + } + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + object.cluster_id = message.cluster_id; + if (message.request != null && message.hasOwnProperty("request")) + object.request = $root.vtctldata.VSchemaAddTablesRequest.toObject(message.request, options); + return object; }; /** - * Converts this StartResponse to JSON. + * Converts this VSchemaAddTablesRequest to JSON. * @function toJSON - * @memberof mysqlctl.StartResponse + * @memberof vtadmin.VSchemaAddTablesRequest * @instance * @returns {Object.} JSON object */ - StartResponse.prototype.toJSON = function toJSON() { + VSchemaAddTablesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StartResponse + * Gets the default type url for VSchemaAddTablesRequest * @function getTypeUrl - * @memberof mysqlctl.StartResponse + * @memberof vtadmin.VSchemaAddTablesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StartResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaAddTablesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.StartResponse"; + return typeUrlPrefix + "/vtadmin.VSchemaAddTablesRequest"; }; - return StartResponse; + return VSchemaAddTablesRequest; })(); - mysqlctl.ShutdownRequest = (function() { + vtadmin.VSchemaRemoveTablesRequest = (function() { /** - * Properties of a ShutdownRequest. - * @memberof mysqlctl - * @interface IShutdownRequest - * @property {boolean|null} [wait_for_mysqld] ShutdownRequest wait_for_mysqld - * @property {vttime.IDuration|null} [mysql_shutdown_timeout] ShutdownRequest mysql_shutdown_timeout + * Properties of a VSchemaRemoveTablesRequest. + * @memberof vtadmin + * @interface IVSchemaRemoveTablesRequest + * @property {string|null} [cluster_id] VSchemaRemoveTablesRequest cluster_id + * @property {vtctldata.IVSchemaRemoveTablesRequest|null} [request] VSchemaRemoveTablesRequest request */ /** - * Constructs a new ShutdownRequest. - * @memberof mysqlctl - * @classdesc Represents a ShutdownRequest. - * @implements IShutdownRequest + * Constructs a new VSchemaRemoveTablesRequest. + * @memberof vtadmin + * @classdesc Represents a VSchemaRemoveTablesRequest. + * @implements IVSchemaRemoveTablesRequest * @constructor - * @param {mysqlctl.IShutdownRequest=} [properties] Properties to set + * @param {vtadmin.IVSchemaRemoveTablesRequest=} [properties] Properties to set */ - function ShutdownRequest(properties) { + function VSchemaRemoveTablesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37051,89 +37234,89 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * ShutdownRequest wait_for_mysqld. - * @member {boolean} wait_for_mysqld - * @memberof mysqlctl.ShutdownRequest + * VSchemaRemoveTablesRequest cluster_id. + * @member {string} cluster_id + * @memberof vtadmin.VSchemaRemoveTablesRequest * @instance */ - ShutdownRequest.prototype.wait_for_mysqld = false; + VSchemaRemoveTablesRequest.prototype.cluster_id = ""; /** - * ShutdownRequest mysql_shutdown_timeout. - * @member {vttime.IDuration|null|undefined} mysql_shutdown_timeout - * @memberof mysqlctl.ShutdownRequest + * VSchemaRemoveTablesRequest request. + * @member {vtctldata.IVSchemaRemoveTablesRequest|null|undefined} request + * @memberof vtadmin.VSchemaRemoveTablesRequest * @instance */ - ShutdownRequest.prototype.mysql_shutdown_timeout = null; + VSchemaRemoveTablesRequest.prototype.request = null; /** - * Creates a new ShutdownRequest instance using the specified properties. + * Creates a new VSchemaRemoveTablesRequest instance using the specified properties. * @function create - * @memberof mysqlctl.ShutdownRequest + * @memberof vtadmin.VSchemaRemoveTablesRequest * @static - * @param {mysqlctl.IShutdownRequest=} [properties] Properties to set - * @returns {mysqlctl.ShutdownRequest} ShutdownRequest instance + * @param {vtadmin.IVSchemaRemoveTablesRequest=} [properties] Properties to set + * @returns {vtadmin.VSchemaRemoveTablesRequest} VSchemaRemoveTablesRequest instance */ - ShutdownRequest.create = function create(properties) { - return new ShutdownRequest(properties); + VSchemaRemoveTablesRequest.create = function create(properties) { + return new VSchemaRemoveTablesRequest(properties); }; /** - * Encodes the specified ShutdownRequest message. Does not implicitly {@link mysqlctl.ShutdownRequest.verify|verify} messages. + * Encodes the specified VSchemaRemoveTablesRequest message. Does not implicitly {@link vtadmin.VSchemaRemoveTablesRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.ShutdownRequest + * @memberof vtadmin.VSchemaRemoveTablesRequest * @static - * @param {mysqlctl.IShutdownRequest} message ShutdownRequest message or plain object to encode + * @param {vtadmin.IVSchemaRemoveTablesRequest} message VSchemaRemoveTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShutdownRequest.encode = function encode(message, writer) { + VSchemaRemoveTablesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.wait_for_mysqld != null && Object.hasOwnProperty.call(message, "wait_for_mysqld")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.wait_for_mysqld); - if (message.mysql_shutdown_timeout != null && Object.hasOwnProperty.call(message, "mysql_shutdown_timeout")) - $root.vttime.Duration.encode(message.mysql_shutdown_timeout, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); + if (message.request != null && Object.hasOwnProperty.call(message, "request")) + $root.vtctldata.VSchemaRemoveTablesRequest.encode(message.request, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ShutdownRequest message, length delimited. Does not implicitly {@link mysqlctl.ShutdownRequest.verify|verify} messages. + * Encodes the specified VSchemaRemoveTablesRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaRemoveTablesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.ShutdownRequest + * @memberof vtadmin.VSchemaRemoveTablesRequest * @static - * @param {mysqlctl.IShutdownRequest} message ShutdownRequest message or plain object to encode + * @param {vtadmin.IVSchemaRemoveTablesRequest} message VSchemaRemoveTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShutdownRequest.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaRemoveTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShutdownRequest message from the specified reader or buffer. + * Decodes a VSchemaRemoveTablesRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.ShutdownRequest + * @memberof vtadmin.VSchemaRemoveTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.ShutdownRequest} ShutdownRequest + * @returns {vtadmin.VSchemaRemoveTablesRequest} VSchemaRemoveTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShutdownRequest.decode = function decode(reader, length) { + VSchemaRemoveTablesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ShutdownRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VSchemaRemoveTablesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.wait_for_mysqld = reader.bool(); + message.cluster_id = reader.string(); break; } case 2: { - message.mysql_shutdown_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + message.request = $root.vtctldata.VSchemaRemoveTablesRequest.decode(reader, reader.uint32()); break; } default: @@ -37145,135 +37328,137 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a ShutdownRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaRemoveTablesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.ShutdownRequest + * @memberof vtadmin.VSchemaRemoveTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.ShutdownRequest} ShutdownRequest + * @returns {vtadmin.VSchemaRemoveTablesRequest} VSchemaRemoveTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShutdownRequest.decodeDelimited = function decodeDelimited(reader) { + VSchemaRemoveTablesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShutdownRequest message. + * Verifies a VSchemaRemoveTablesRequest message. * @function verify - * @memberof mysqlctl.ShutdownRequest + * @memberof vtadmin.VSchemaRemoveTablesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShutdownRequest.verify = function verify(message) { + VSchemaRemoveTablesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.wait_for_mysqld != null && message.hasOwnProperty("wait_for_mysqld")) - if (typeof message.wait_for_mysqld !== "boolean") - return "wait_for_mysqld: boolean expected"; - if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) { - let error = $root.vttime.Duration.verify(message.mysql_shutdown_timeout); + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + if (!$util.isString(message.cluster_id)) + return "cluster_id: string expected"; + if (message.request != null && message.hasOwnProperty("request")) { + let error = $root.vtctldata.VSchemaRemoveTablesRequest.verify(message.request); if (error) - return "mysql_shutdown_timeout." + error; + return "request." + error; } return null; }; /** - * Creates a ShutdownRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaRemoveTablesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.ShutdownRequest + * @memberof vtadmin.VSchemaRemoveTablesRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.ShutdownRequest} ShutdownRequest + * @returns {vtadmin.VSchemaRemoveTablesRequest} VSchemaRemoveTablesRequest */ - ShutdownRequest.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.ShutdownRequest) + VSchemaRemoveTablesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.VSchemaRemoveTablesRequest) return object; - let message = new $root.mysqlctl.ShutdownRequest(); - if (object.wait_for_mysqld != null) - message.wait_for_mysqld = Boolean(object.wait_for_mysqld); - if (object.mysql_shutdown_timeout != null) { - if (typeof object.mysql_shutdown_timeout !== "object") - throw TypeError(".mysqlctl.ShutdownRequest.mysql_shutdown_timeout: object expected"); - message.mysql_shutdown_timeout = $root.vttime.Duration.fromObject(object.mysql_shutdown_timeout); + let message = new $root.vtadmin.VSchemaRemoveTablesRequest(); + if (object.cluster_id != null) + message.cluster_id = String(object.cluster_id); + if (object.request != null) { + if (typeof object.request !== "object") + throw TypeError(".vtadmin.VSchemaRemoveTablesRequest.request: object expected"); + message.request = $root.vtctldata.VSchemaRemoveTablesRequest.fromObject(object.request); } return message; }; /** - * Creates a plain object from a ShutdownRequest message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaRemoveTablesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.ShutdownRequest + * @memberof vtadmin.VSchemaRemoveTablesRequest * @static - * @param {mysqlctl.ShutdownRequest} message ShutdownRequest + * @param {vtadmin.VSchemaRemoveTablesRequest} message VSchemaRemoveTablesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShutdownRequest.toObject = function toObject(message, options) { + VSchemaRemoveTablesRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.wait_for_mysqld = false; - object.mysql_shutdown_timeout = null; + object.cluster_id = ""; + object.request = null; } - if (message.wait_for_mysqld != null && message.hasOwnProperty("wait_for_mysqld")) - object.wait_for_mysqld = message.wait_for_mysqld; - if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) - object.mysql_shutdown_timeout = $root.vttime.Duration.toObject(message.mysql_shutdown_timeout, options); + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + object.cluster_id = message.cluster_id; + if (message.request != null && message.hasOwnProperty("request")) + object.request = $root.vtctldata.VSchemaRemoveTablesRequest.toObject(message.request, options); return object; }; /** - * Converts this ShutdownRequest to JSON. + * Converts this VSchemaRemoveTablesRequest to JSON. * @function toJSON - * @memberof mysqlctl.ShutdownRequest + * @memberof vtadmin.VSchemaRemoveTablesRequest * @instance * @returns {Object.} JSON object */ - ShutdownRequest.prototype.toJSON = function toJSON() { + VSchemaRemoveTablesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShutdownRequest + * Gets the default type url for VSchemaRemoveTablesRequest * @function getTypeUrl - * @memberof mysqlctl.ShutdownRequest + * @memberof vtadmin.VSchemaRemoveTablesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShutdownRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaRemoveTablesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.ShutdownRequest"; + return typeUrlPrefix + "/vtadmin.VSchemaRemoveTablesRequest"; }; - return ShutdownRequest; + return VSchemaRemoveTablesRequest; })(); - mysqlctl.ShutdownResponse = (function() { + vtadmin.VSchemaSetPrimaryVindexRequest = (function() { /** - * Properties of a ShutdownResponse. - * @memberof mysqlctl - * @interface IShutdownResponse + * Properties of a VSchemaSetPrimaryVindexRequest. + * @memberof vtadmin + * @interface IVSchemaSetPrimaryVindexRequest + * @property {string|null} [cluster_id] VSchemaSetPrimaryVindexRequest cluster_id + * @property {vtctldata.IVSchemaSetPrimaryVindexRequest|null} [request] VSchemaSetPrimaryVindexRequest request */ /** - * Constructs a new ShutdownResponse. - * @memberof mysqlctl - * @classdesc Represents a ShutdownResponse. - * @implements IShutdownResponse + * Constructs a new VSchemaSetPrimaryVindexRequest. + * @memberof vtadmin + * @classdesc Represents a VSchemaSetPrimaryVindexRequest. + * @implements IVSchemaSetPrimaryVindexRequest * @constructor - * @param {mysqlctl.IShutdownResponse=} [properties] Properties to set + * @param {vtadmin.IVSchemaSetPrimaryVindexRequest=} [properties] Properties to set */ - function ShutdownResponse(properties) { + function VSchemaSetPrimaryVindexRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37281,63 +37466,91 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * Creates a new ShutdownResponse instance using the specified properties. + * VSchemaSetPrimaryVindexRequest cluster_id. + * @member {string} cluster_id + * @memberof vtadmin.VSchemaSetPrimaryVindexRequest + * @instance + */ + VSchemaSetPrimaryVindexRequest.prototype.cluster_id = ""; + + /** + * VSchemaSetPrimaryVindexRequest request. + * @member {vtctldata.IVSchemaSetPrimaryVindexRequest|null|undefined} request + * @memberof vtadmin.VSchemaSetPrimaryVindexRequest + * @instance + */ + VSchemaSetPrimaryVindexRequest.prototype.request = null; + + /** + * Creates a new VSchemaSetPrimaryVindexRequest instance using the specified properties. * @function create - * @memberof mysqlctl.ShutdownResponse + * @memberof vtadmin.VSchemaSetPrimaryVindexRequest * @static - * @param {mysqlctl.IShutdownResponse=} [properties] Properties to set - * @returns {mysqlctl.ShutdownResponse} ShutdownResponse instance + * @param {vtadmin.IVSchemaSetPrimaryVindexRequest=} [properties] Properties to set + * @returns {vtadmin.VSchemaSetPrimaryVindexRequest} VSchemaSetPrimaryVindexRequest instance */ - ShutdownResponse.create = function create(properties) { - return new ShutdownResponse(properties); + VSchemaSetPrimaryVindexRequest.create = function create(properties) { + return new VSchemaSetPrimaryVindexRequest(properties); }; /** - * Encodes the specified ShutdownResponse message. Does not implicitly {@link mysqlctl.ShutdownResponse.verify|verify} messages. + * Encodes the specified VSchemaSetPrimaryVindexRequest message. Does not implicitly {@link vtadmin.VSchemaSetPrimaryVindexRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.ShutdownResponse + * @memberof vtadmin.VSchemaSetPrimaryVindexRequest * @static - * @param {mysqlctl.IShutdownResponse} message ShutdownResponse message or plain object to encode + * @param {vtadmin.IVSchemaSetPrimaryVindexRequest} message VSchemaSetPrimaryVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShutdownResponse.encode = function encode(message, writer) { + VSchemaSetPrimaryVindexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); + if (message.request != null && Object.hasOwnProperty.call(message, "request")) + $root.vtctldata.VSchemaSetPrimaryVindexRequest.encode(message.request, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ShutdownResponse message, length delimited. Does not implicitly {@link mysqlctl.ShutdownResponse.verify|verify} messages. + * Encodes the specified VSchemaSetPrimaryVindexRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaSetPrimaryVindexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.ShutdownResponse + * @memberof vtadmin.VSchemaSetPrimaryVindexRequest * @static - * @param {mysqlctl.IShutdownResponse} message ShutdownResponse message or plain object to encode + * @param {vtadmin.IVSchemaSetPrimaryVindexRequest} message VSchemaSetPrimaryVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShutdownResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaSetPrimaryVindexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShutdownResponse message from the specified reader or buffer. + * Decodes a VSchemaSetPrimaryVindexRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.ShutdownResponse + * @memberof vtadmin.VSchemaSetPrimaryVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.ShutdownResponse} ShutdownResponse + * @returns {vtadmin.VSchemaSetPrimaryVindexRequest} VSchemaSetPrimaryVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShutdownResponse.decode = function decode(reader, length) { + VSchemaSetPrimaryVindexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ShutdownResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VSchemaSetPrimaryVindexRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.cluster_id = reader.string(); + break; + } + case 2: { + message.request = $root.vtctldata.VSchemaSetPrimaryVindexRequest.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -37347,108 +37560,137 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a ShutdownResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetPrimaryVindexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.ShutdownResponse + * @memberof vtadmin.VSchemaSetPrimaryVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.ShutdownResponse} ShutdownResponse + * @returns {vtadmin.VSchemaSetPrimaryVindexRequest} VSchemaSetPrimaryVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShutdownResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaSetPrimaryVindexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShutdownResponse message. + * Verifies a VSchemaSetPrimaryVindexRequest message. * @function verify - * @memberof mysqlctl.ShutdownResponse + * @memberof vtadmin.VSchemaSetPrimaryVindexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShutdownResponse.verify = function verify(message) { + VSchemaSetPrimaryVindexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + if (!$util.isString(message.cluster_id)) + return "cluster_id: string expected"; + if (message.request != null && message.hasOwnProperty("request")) { + let error = $root.vtctldata.VSchemaSetPrimaryVindexRequest.verify(message.request); + if (error) + return "request." + error; + } return null; }; /** - * Creates a ShutdownResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaSetPrimaryVindexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.ShutdownResponse + * @memberof vtadmin.VSchemaSetPrimaryVindexRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.ShutdownResponse} ShutdownResponse + * @returns {vtadmin.VSchemaSetPrimaryVindexRequest} VSchemaSetPrimaryVindexRequest */ - ShutdownResponse.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.ShutdownResponse) + VSchemaSetPrimaryVindexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.VSchemaSetPrimaryVindexRequest) return object; - return new $root.mysqlctl.ShutdownResponse(); + let message = new $root.vtadmin.VSchemaSetPrimaryVindexRequest(); + if (object.cluster_id != null) + message.cluster_id = String(object.cluster_id); + if (object.request != null) { + if (typeof object.request !== "object") + throw TypeError(".vtadmin.VSchemaSetPrimaryVindexRequest.request: object expected"); + message.request = $root.vtctldata.VSchemaSetPrimaryVindexRequest.fromObject(object.request); + } + return message; }; /** - * Creates a plain object from a ShutdownResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaSetPrimaryVindexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.ShutdownResponse + * @memberof vtadmin.VSchemaSetPrimaryVindexRequest * @static - * @param {mysqlctl.ShutdownResponse} message ShutdownResponse + * @param {vtadmin.VSchemaSetPrimaryVindexRequest} message VSchemaSetPrimaryVindexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShutdownResponse.toObject = function toObject() { - return {}; + VSchemaSetPrimaryVindexRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.cluster_id = ""; + object.request = null; + } + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + object.cluster_id = message.cluster_id; + if (message.request != null && message.hasOwnProperty("request")) + object.request = $root.vtctldata.VSchemaSetPrimaryVindexRequest.toObject(message.request, options); + return object; }; /** - * Converts this ShutdownResponse to JSON. + * Converts this VSchemaSetPrimaryVindexRequest to JSON. * @function toJSON - * @memberof mysqlctl.ShutdownResponse + * @memberof vtadmin.VSchemaSetPrimaryVindexRequest * @instance * @returns {Object.} JSON object */ - ShutdownResponse.prototype.toJSON = function toJSON() { + VSchemaSetPrimaryVindexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShutdownResponse + * Gets the default type url for VSchemaSetPrimaryVindexRequest * @function getTypeUrl - * @memberof mysqlctl.ShutdownResponse + * @memberof vtadmin.VSchemaSetPrimaryVindexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShutdownResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaSetPrimaryVindexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.ShutdownResponse"; + return typeUrlPrefix + "/vtadmin.VSchemaSetPrimaryVindexRequest"; }; - return ShutdownResponse; + return VSchemaSetPrimaryVindexRequest; })(); - mysqlctl.RunMysqlUpgradeRequest = (function() { + vtadmin.VSchemaSetSequenceRequest = (function() { /** - * Properties of a RunMysqlUpgradeRequest. - * @memberof mysqlctl - * @interface IRunMysqlUpgradeRequest + * Properties of a VSchemaSetSequenceRequest. + * @memberof vtadmin + * @interface IVSchemaSetSequenceRequest + * @property {string|null} [cluster_id] VSchemaSetSequenceRequest cluster_id + * @property {vtctldata.IVSchemaSetSequenceRequest|null} [request] VSchemaSetSequenceRequest request */ /** - * Constructs a new RunMysqlUpgradeRequest. - * @memberof mysqlctl - * @classdesc Represents a RunMysqlUpgradeRequest. - * @implements IRunMysqlUpgradeRequest + * Constructs a new VSchemaSetSequenceRequest. + * @memberof vtadmin + * @classdesc Represents a VSchemaSetSequenceRequest. + * @implements IVSchemaSetSequenceRequest * @constructor - * @param {mysqlctl.IRunMysqlUpgradeRequest=} [properties] Properties to set + * @param {vtadmin.IVSchemaSetSequenceRequest=} [properties] Properties to set */ - function RunMysqlUpgradeRequest(properties) { + function VSchemaSetSequenceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37456,63 +37698,91 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * Creates a new RunMysqlUpgradeRequest instance using the specified properties. + * VSchemaSetSequenceRequest cluster_id. + * @member {string} cluster_id + * @memberof vtadmin.VSchemaSetSequenceRequest + * @instance + */ + VSchemaSetSequenceRequest.prototype.cluster_id = ""; + + /** + * VSchemaSetSequenceRequest request. + * @member {vtctldata.IVSchemaSetSequenceRequest|null|undefined} request + * @memberof vtadmin.VSchemaSetSequenceRequest + * @instance + */ + VSchemaSetSequenceRequest.prototype.request = null; + + /** + * Creates a new VSchemaSetSequenceRequest instance using the specified properties. * @function create - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof vtadmin.VSchemaSetSequenceRequest * @static - * @param {mysqlctl.IRunMysqlUpgradeRequest=} [properties] Properties to set - * @returns {mysqlctl.RunMysqlUpgradeRequest} RunMysqlUpgradeRequest instance + * @param {vtadmin.IVSchemaSetSequenceRequest=} [properties] Properties to set + * @returns {vtadmin.VSchemaSetSequenceRequest} VSchemaSetSequenceRequest instance */ - RunMysqlUpgradeRequest.create = function create(properties) { - return new RunMysqlUpgradeRequest(properties); + VSchemaSetSequenceRequest.create = function create(properties) { + return new VSchemaSetSequenceRequest(properties); }; /** - * Encodes the specified RunMysqlUpgradeRequest message. Does not implicitly {@link mysqlctl.RunMysqlUpgradeRequest.verify|verify} messages. + * Encodes the specified VSchemaSetSequenceRequest message. Does not implicitly {@link vtadmin.VSchemaSetSequenceRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof vtadmin.VSchemaSetSequenceRequest * @static - * @param {mysqlctl.IRunMysqlUpgradeRequest} message RunMysqlUpgradeRequest message or plain object to encode + * @param {vtadmin.IVSchemaSetSequenceRequest} message VSchemaSetSequenceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunMysqlUpgradeRequest.encode = function encode(message, writer) { + VSchemaSetSequenceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); + if (message.request != null && Object.hasOwnProperty.call(message, "request")) + $root.vtctldata.VSchemaSetSequenceRequest.encode(message.request, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified RunMysqlUpgradeRequest message, length delimited. Does not implicitly {@link mysqlctl.RunMysqlUpgradeRequest.verify|verify} messages. + * Encodes the specified VSchemaSetSequenceRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaSetSequenceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof vtadmin.VSchemaSetSequenceRequest * @static - * @param {mysqlctl.IRunMysqlUpgradeRequest} message RunMysqlUpgradeRequest message or plain object to encode + * @param {vtadmin.IVSchemaSetSequenceRequest} message VSchemaSetSequenceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunMysqlUpgradeRequest.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaSetSequenceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunMysqlUpgradeRequest message from the specified reader or buffer. + * Decodes a VSchemaSetSequenceRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof vtadmin.VSchemaSetSequenceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.RunMysqlUpgradeRequest} RunMysqlUpgradeRequest + * @returns {vtadmin.VSchemaSetSequenceRequest} VSchemaSetSequenceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunMysqlUpgradeRequest.decode = function decode(reader, length) { + VSchemaSetSequenceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RunMysqlUpgradeRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VSchemaSetSequenceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.cluster_id = reader.string(); + break; + } + case 2: { + message.request = $root.vtctldata.VSchemaSetSequenceRequest.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -37522,108 +37792,137 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a RunMysqlUpgradeRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetSequenceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof vtadmin.VSchemaSetSequenceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.RunMysqlUpgradeRequest} RunMysqlUpgradeRequest + * @returns {vtadmin.VSchemaSetSequenceRequest} VSchemaSetSequenceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunMysqlUpgradeRequest.decodeDelimited = function decodeDelimited(reader) { + VSchemaSetSequenceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunMysqlUpgradeRequest message. + * Verifies a VSchemaSetSequenceRequest message. * @function verify - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof vtadmin.VSchemaSetSequenceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunMysqlUpgradeRequest.verify = function verify(message) { + VSchemaSetSequenceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + if (!$util.isString(message.cluster_id)) + return "cluster_id: string expected"; + if (message.request != null && message.hasOwnProperty("request")) { + let error = $root.vtctldata.VSchemaSetSequenceRequest.verify(message.request); + if (error) + return "request." + error; + } return null; }; /** - * Creates a RunMysqlUpgradeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaSetSequenceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof vtadmin.VSchemaSetSequenceRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.RunMysqlUpgradeRequest} RunMysqlUpgradeRequest + * @returns {vtadmin.VSchemaSetSequenceRequest} VSchemaSetSequenceRequest */ - RunMysqlUpgradeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.RunMysqlUpgradeRequest) + VSchemaSetSequenceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.VSchemaSetSequenceRequest) return object; - return new $root.mysqlctl.RunMysqlUpgradeRequest(); + let message = new $root.vtadmin.VSchemaSetSequenceRequest(); + if (object.cluster_id != null) + message.cluster_id = String(object.cluster_id); + if (object.request != null) { + if (typeof object.request !== "object") + throw TypeError(".vtadmin.VSchemaSetSequenceRequest.request: object expected"); + message.request = $root.vtctldata.VSchemaSetSequenceRequest.fromObject(object.request); + } + return message; }; /** - * Creates a plain object from a RunMysqlUpgradeRequest message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaSetSequenceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof vtadmin.VSchemaSetSequenceRequest * @static - * @param {mysqlctl.RunMysqlUpgradeRequest} message RunMysqlUpgradeRequest + * @param {vtadmin.VSchemaSetSequenceRequest} message VSchemaSetSequenceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunMysqlUpgradeRequest.toObject = function toObject() { - return {}; + VSchemaSetSequenceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.cluster_id = ""; + object.request = null; + } + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + object.cluster_id = message.cluster_id; + if (message.request != null && message.hasOwnProperty("request")) + object.request = $root.vtctldata.VSchemaSetSequenceRequest.toObject(message.request, options); + return object; }; /** - * Converts this RunMysqlUpgradeRequest to JSON. + * Converts this VSchemaSetSequenceRequest to JSON. * @function toJSON - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof vtadmin.VSchemaSetSequenceRequest * @instance * @returns {Object.} JSON object */ - RunMysqlUpgradeRequest.prototype.toJSON = function toJSON() { + VSchemaSetSequenceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RunMysqlUpgradeRequest + * Gets the default type url for VSchemaSetSequenceRequest * @function getTypeUrl - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof vtadmin.VSchemaSetSequenceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RunMysqlUpgradeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaSetSequenceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.RunMysqlUpgradeRequest"; + return typeUrlPrefix + "/vtadmin.VSchemaSetSequenceRequest"; }; - return RunMysqlUpgradeRequest; + return VSchemaSetSequenceRequest; })(); - mysqlctl.RunMysqlUpgradeResponse = (function() { + vtadmin.VSchemaSetReferenceRequest = (function() { /** - * Properties of a RunMysqlUpgradeResponse. - * @memberof mysqlctl - * @interface IRunMysqlUpgradeResponse + * Properties of a VSchemaSetReferenceRequest. + * @memberof vtadmin + * @interface IVSchemaSetReferenceRequest + * @property {string|null} [cluster_id] VSchemaSetReferenceRequest cluster_id + * @property {vtctldata.IVSchemaSetReferenceRequest|null} [request] VSchemaSetReferenceRequest request */ /** - * Constructs a new RunMysqlUpgradeResponse. - * @memberof mysqlctl - * @classdesc Represents a RunMysqlUpgradeResponse. - * @implements IRunMysqlUpgradeResponse + * Constructs a new VSchemaSetReferenceRequest. + * @memberof vtadmin + * @classdesc Represents a VSchemaSetReferenceRequest. + * @implements IVSchemaSetReferenceRequest * @constructor - * @param {mysqlctl.IRunMysqlUpgradeResponse=} [properties] Properties to set + * @param {vtadmin.IVSchemaSetReferenceRequest=} [properties] Properties to set */ - function RunMysqlUpgradeResponse(properties) { + function VSchemaSetReferenceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37631,63 +37930,91 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * Creates a new RunMysqlUpgradeResponse instance using the specified properties. + * VSchemaSetReferenceRequest cluster_id. + * @member {string} cluster_id + * @memberof vtadmin.VSchemaSetReferenceRequest + * @instance + */ + VSchemaSetReferenceRequest.prototype.cluster_id = ""; + + /** + * VSchemaSetReferenceRequest request. + * @member {vtctldata.IVSchemaSetReferenceRequest|null|undefined} request + * @memberof vtadmin.VSchemaSetReferenceRequest + * @instance + */ + VSchemaSetReferenceRequest.prototype.request = null; + + /** + * Creates a new VSchemaSetReferenceRequest instance using the specified properties. * @function create - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof vtadmin.VSchemaSetReferenceRequest * @static - * @param {mysqlctl.IRunMysqlUpgradeResponse=} [properties] Properties to set - * @returns {mysqlctl.RunMysqlUpgradeResponse} RunMysqlUpgradeResponse instance + * @param {vtadmin.IVSchemaSetReferenceRequest=} [properties] Properties to set + * @returns {vtadmin.VSchemaSetReferenceRequest} VSchemaSetReferenceRequest instance */ - RunMysqlUpgradeResponse.create = function create(properties) { - return new RunMysqlUpgradeResponse(properties); + VSchemaSetReferenceRequest.create = function create(properties) { + return new VSchemaSetReferenceRequest(properties); }; /** - * Encodes the specified RunMysqlUpgradeResponse message. Does not implicitly {@link mysqlctl.RunMysqlUpgradeResponse.verify|verify} messages. + * Encodes the specified VSchemaSetReferenceRequest message. Does not implicitly {@link vtadmin.VSchemaSetReferenceRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof vtadmin.VSchemaSetReferenceRequest * @static - * @param {mysqlctl.IRunMysqlUpgradeResponse} message RunMysqlUpgradeResponse message or plain object to encode + * @param {vtadmin.IVSchemaSetReferenceRequest} message VSchemaSetReferenceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunMysqlUpgradeResponse.encode = function encode(message, writer) { + VSchemaSetReferenceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); + if (message.request != null && Object.hasOwnProperty.call(message, "request")) + $root.vtctldata.VSchemaSetReferenceRequest.encode(message.request, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified RunMysqlUpgradeResponse message, length delimited. Does not implicitly {@link mysqlctl.RunMysqlUpgradeResponse.verify|verify} messages. + * Encodes the specified VSchemaSetReferenceRequest message, length delimited. Does not implicitly {@link vtadmin.VSchemaSetReferenceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof vtadmin.VSchemaSetReferenceRequest * @static - * @param {mysqlctl.IRunMysqlUpgradeResponse} message RunMysqlUpgradeResponse message or plain object to encode + * @param {vtadmin.IVSchemaSetReferenceRequest} message VSchemaSetReferenceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunMysqlUpgradeResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaSetReferenceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunMysqlUpgradeResponse message from the specified reader or buffer. + * Decodes a VSchemaSetReferenceRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof vtadmin.VSchemaSetReferenceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.RunMysqlUpgradeResponse} RunMysqlUpgradeResponse + * @returns {vtadmin.VSchemaSetReferenceRequest} VSchemaSetReferenceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunMysqlUpgradeResponse.decode = function decode(reader, length) { + VSchemaSetReferenceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RunMysqlUpgradeResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VSchemaSetReferenceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.cluster_id = reader.string(); + break; + } + case 2: { + message.request = $root.vtctldata.VSchemaSetReferenceRequest.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -37697,111 +38024,170 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a RunMysqlUpgradeResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetReferenceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof vtadmin.VSchemaSetReferenceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.RunMysqlUpgradeResponse} RunMysqlUpgradeResponse + * @returns {vtadmin.VSchemaSetReferenceRequest} VSchemaSetReferenceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunMysqlUpgradeResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaSetReferenceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunMysqlUpgradeResponse message. + * Verifies a VSchemaSetReferenceRequest message. * @function verify - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof vtadmin.VSchemaSetReferenceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunMysqlUpgradeResponse.verify = function verify(message) { + VSchemaSetReferenceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + if (!$util.isString(message.cluster_id)) + return "cluster_id: string expected"; + if (message.request != null && message.hasOwnProperty("request")) { + let error = $root.vtctldata.VSchemaSetReferenceRequest.verify(message.request); + if (error) + return "request." + error; + } return null; }; /** - * Creates a RunMysqlUpgradeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaSetReferenceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof vtadmin.VSchemaSetReferenceRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.RunMysqlUpgradeResponse} RunMysqlUpgradeResponse + * @returns {vtadmin.VSchemaSetReferenceRequest} VSchemaSetReferenceRequest */ - RunMysqlUpgradeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.RunMysqlUpgradeResponse) + VSchemaSetReferenceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.VSchemaSetReferenceRequest) return object; - return new $root.mysqlctl.RunMysqlUpgradeResponse(); + let message = new $root.vtadmin.VSchemaSetReferenceRequest(); + if (object.cluster_id != null) + message.cluster_id = String(object.cluster_id); + if (object.request != null) { + if (typeof object.request !== "object") + throw TypeError(".vtadmin.VSchemaSetReferenceRequest.request: object expected"); + message.request = $root.vtctldata.VSchemaSetReferenceRequest.fromObject(object.request); + } + return message; }; /** - * Creates a plain object from a RunMysqlUpgradeResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaSetReferenceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof vtadmin.VSchemaSetReferenceRequest * @static - * @param {mysqlctl.RunMysqlUpgradeResponse} message RunMysqlUpgradeResponse + * @param {vtadmin.VSchemaSetReferenceRequest} message VSchemaSetReferenceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunMysqlUpgradeResponse.toObject = function toObject() { - return {}; + VSchemaSetReferenceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.cluster_id = ""; + object.request = null; + } + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + object.cluster_id = message.cluster_id; + if (message.request != null && message.hasOwnProperty("request")) + object.request = $root.vtctldata.VSchemaSetReferenceRequest.toObject(message.request, options); + return object; }; /** - * Converts this RunMysqlUpgradeResponse to JSON. + * Converts this VSchemaSetReferenceRequest to JSON. * @function toJSON - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof vtadmin.VSchemaSetReferenceRequest * @instance * @returns {Object.} JSON object */ - RunMysqlUpgradeResponse.prototype.toJSON = function toJSON() { + VSchemaSetReferenceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RunMysqlUpgradeResponse + * Gets the default type url for VSchemaSetReferenceRequest * @function getTypeUrl - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof vtadmin.VSchemaSetReferenceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RunMysqlUpgradeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaSetReferenceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.RunMysqlUpgradeResponse"; + return typeUrlPrefix + "/vtadmin.VSchemaSetReferenceRequest"; }; - return RunMysqlUpgradeResponse; + return VSchemaSetReferenceRequest; })(); - mysqlctl.ApplyBinlogFileRequest = (function() { + return vtadmin; +})(); + +export const logutil = $root.logutil = (() => { + + /** + * Namespace logutil. + * @exports logutil + * @namespace + */ + const logutil = {}; + + /** + * Level enum. + * @name logutil.Level + * @enum {number} + * @property {number} INFO=0 INFO value + * @property {number} WARNING=1 WARNING value + * @property {number} ERROR=2 ERROR value + * @property {number} CONSOLE=3 CONSOLE value + */ + logutil.Level = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INFO"] = 0; + values[valuesById[1] = "WARNING"] = 1; + values[valuesById[2] = "ERROR"] = 2; + values[valuesById[3] = "CONSOLE"] = 3; + return values; + })(); + + logutil.Event = (function() { /** - * Properties of an ApplyBinlogFileRequest. - * @memberof mysqlctl - * @interface IApplyBinlogFileRequest - * @property {string|null} [binlog_file_name] ApplyBinlogFileRequest binlog_file_name - * @property {string|null} [binlog_restore_position] ApplyBinlogFileRequest binlog_restore_position - * @property {vttime.ITime|null} [binlog_restore_datetime] ApplyBinlogFileRequest binlog_restore_datetime + * Properties of an Event. + * @memberof logutil + * @interface IEvent + * @property {vttime.ITime|null} [time] Event time + * @property {logutil.Level|null} [level] Event level + * @property {string|null} [file] Event file + * @property {number|Long|null} [line] Event line + * @property {string|null} [value] Event value */ /** - * Constructs a new ApplyBinlogFileRequest. - * @memberof mysqlctl - * @classdesc Represents an ApplyBinlogFileRequest. - * @implements IApplyBinlogFileRequest + * Constructs a new Event. + * @memberof logutil + * @classdesc Represents an Event. + * @implements IEvent * @constructor - * @param {mysqlctl.IApplyBinlogFileRequest=} [properties] Properties to set + * @param {logutil.IEvent=} [properties] Properties to set */ - function ApplyBinlogFileRequest(properties) { + function Event(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37809,103 +38195,131 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * ApplyBinlogFileRequest binlog_file_name. - * @member {string} binlog_file_name - * @memberof mysqlctl.ApplyBinlogFileRequest + * Event time. + * @member {vttime.ITime|null|undefined} time + * @memberof logutil.Event * @instance */ - ApplyBinlogFileRequest.prototype.binlog_file_name = ""; + Event.prototype.time = null; /** - * ApplyBinlogFileRequest binlog_restore_position. - * @member {string} binlog_restore_position - * @memberof mysqlctl.ApplyBinlogFileRequest + * Event level. + * @member {logutil.Level} level + * @memberof logutil.Event * @instance */ - ApplyBinlogFileRequest.prototype.binlog_restore_position = ""; + Event.prototype.level = 0; /** - * ApplyBinlogFileRequest binlog_restore_datetime. - * @member {vttime.ITime|null|undefined} binlog_restore_datetime - * @memberof mysqlctl.ApplyBinlogFileRequest + * Event file. + * @member {string} file + * @memberof logutil.Event * @instance */ - ApplyBinlogFileRequest.prototype.binlog_restore_datetime = null; + Event.prototype.file = ""; /** - * Creates a new ApplyBinlogFileRequest instance using the specified properties. + * Event line. + * @member {number|Long} line + * @memberof logutil.Event + * @instance + */ + Event.prototype.line = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Event value. + * @member {string} value + * @memberof logutil.Event + * @instance + */ + Event.prototype.value = ""; + + /** + * Creates a new Event instance using the specified properties. * @function create - * @memberof mysqlctl.ApplyBinlogFileRequest + * @memberof logutil.Event * @static - * @param {mysqlctl.IApplyBinlogFileRequest=} [properties] Properties to set - * @returns {mysqlctl.ApplyBinlogFileRequest} ApplyBinlogFileRequest instance + * @param {logutil.IEvent=} [properties] Properties to set + * @returns {logutil.Event} Event instance */ - ApplyBinlogFileRequest.create = function create(properties) { - return new ApplyBinlogFileRequest(properties); + Event.create = function create(properties) { + return new Event(properties); }; /** - * Encodes the specified ApplyBinlogFileRequest message. Does not implicitly {@link mysqlctl.ApplyBinlogFileRequest.verify|verify} messages. + * Encodes the specified Event message. Does not implicitly {@link logutil.Event.verify|verify} messages. * @function encode - * @memberof mysqlctl.ApplyBinlogFileRequest + * @memberof logutil.Event * @static - * @param {mysqlctl.IApplyBinlogFileRequest} message ApplyBinlogFileRequest message or plain object to encode + * @param {logutil.IEvent} message Event message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyBinlogFileRequest.encode = function encode(message, writer) { + Event.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.binlog_file_name != null && Object.hasOwnProperty.call(message, "binlog_file_name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.binlog_file_name); - if (message.binlog_restore_position != null && Object.hasOwnProperty.call(message, "binlog_restore_position")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.binlog_restore_position); - if (message.binlog_restore_datetime != null && Object.hasOwnProperty.call(message, "binlog_restore_datetime")) - $root.vttime.Time.encode(message.binlog_restore_datetime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.time != null && Object.hasOwnProperty.call(message, "time")) + $root.vttime.Time.encode(message.time, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.level != null && Object.hasOwnProperty.call(message, "level")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.level); + if (message.file != null && Object.hasOwnProperty.call(message, "file")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.file); + if (message.line != null && Object.hasOwnProperty.call(message, "line")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.line); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.value); return writer; }; /** - * Encodes the specified ApplyBinlogFileRequest message, length delimited. Does not implicitly {@link mysqlctl.ApplyBinlogFileRequest.verify|verify} messages. + * Encodes the specified Event message, length delimited. Does not implicitly {@link logutil.Event.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.ApplyBinlogFileRequest + * @memberof logutil.Event * @static - * @param {mysqlctl.IApplyBinlogFileRequest} message ApplyBinlogFileRequest message or plain object to encode + * @param {logutil.IEvent} message Event message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyBinlogFileRequest.encodeDelimited = function encodeDelimited(message, writer) { + Event.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyBinlogFileRequest message from the specified reader or buffer. + * Decodes an Event message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.ApplyBinlogFileRequest + * @memberof logutil.Event * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.ApplyBinlogFileRequest} ApplyBinlogFileRequest + * @returns {logutil.Event} Event * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyBinlogFileRequest.decode = function decode(reader, length) { + Event.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ApplyBinlogFileRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.logutil.Event(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.binlog_file_name = reader.string(); + message.time = $root.vttime.Time.decode(reader, reader.uint32()); break; } case 2: { - message.binlog_restore_position = reader.string(); + message.level = reader.int32(); break; } case 3: { - message.binlog_restore_datetime = $root.vttime.Time.decode(reader, reader.uint32()); + message.file = reader.string(); + break; + } + case 4: { + message.line = reader.int64(); + break; + } + case 5: { + message.value = reader.string(); break; } default: @@ -37917,143 +38331,216 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes an ApplyBinlogFileRequest message from the specified reader or buffer, length delimited. + * Decodes an Event message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.ApplyBinlogFileRequest + * @memberof logutil.Event * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.ApplyBinlogFileRequest} ApplyBinlogFileRequest + * @returns {logutil.Event} Event * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyBinlogFileRequest.decodeDelimited = function decodeDelimited(reader) { + Event.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyBinlogFileRequest message. + * Verifies an Event message. * @function verify - * @memberof mysqlctl.ApplyBinlogFileRequest + * @memberof logutil.Event * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyBinlogFileRequest.verify = function verify(message) { + Event.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.binlog_file_name != null && message.hasOwnProperty("binlog_file_name")) - if (!$util.isString(message.binlog_file_name)) - return "binlog_file_name: string expected"; - if (message.binlog_restore_position != null && message.hasOwnProperty("binlog_restore_position")) - if (!$util.isString(message.binlog_restore_position)) - return "binlog_restore_position: string expected"; - if (message.binlog_restore_datetime != null && message.hasOwnProperty("binlog_restore_datetime")) { - let error = $root.vttime.Time.verify(message.binlog_restore_datetime); + if (message.time != null && message.hasOwnProperty("time")) { + let error = $root.vttime.Time.verify(message.time); if (error) - return "binlog_restore_datetime." + error; + return "time." + error; } + if (message.level != null && message.hasOwnProperty("level")) + switch (message.level) { + default: + return "level: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.file != null && message.hasOwnProperty("file")) + if (!$util.isString(message.file)) + return "file: string expected"; + if (message.line != null && message.hasOwnProperty("line")) + if (!$util.isInteger(message.line) && !(message.line && $util.isInteger(message.line.low) && $util.isInteger(message.line.high))) + return "line: integer|Long expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; return null; }; /** - * Creates an ApplyBinlogFileRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Event message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.ApplyBinlogFileRequest + * @memberof logutil.Event * @static * @param {Object.} object Plain object - * @returns {mysqlctl.ApplyBinlogFileRequest} ApplyBinlogFileRequest + * @returns {logutil.Event} Event */ - ApplyBinlogFileRequest.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.ApplyBinlogFileRequest) + Event.fromObject = function fromObject(object) { + if (object instanceof $root.logutil.Event) return object; - let message = new $root.mysqlctl.ApplyBinlogFileRequest(); - if (object.binlog_file_name != null) - message.binlog_file_name = String(object.binlog_file_name); - if (object.binlog_restore_position != null) - message.binlog_restore_position = String(object.binlog_restore_position); - if (object.binlog_restore_datetime != null) { - if (typeof object.binlog_restore_datetime !== "object") - throw TypeError(".mysqlctl.ApplyBinlogFileRequest.binlog_restore_datetime: object expected"); - message.binlog_restore_datetime = $root.vttime.Time.fromObject(object.binlog_restore_datetime); + let message = new $root.logutil.Event(); + if (object.time != null) { + if (typeof object.time !== "object") + throw TypeError(".logutil.Event.time: object expected"); + message.time = $root.vttime.Time.fromObject(object.time); + } + switch (object.level) { + default: + if (typeof object.level === "number") { + message.level = object.level; + break; + } + break; + case "INFO": + case 0: + message.level = 0; + break; + case "WARNING": + case 1: + message.level = 1; + break; + case "ERROR": + case 2: + message.level = 2; + break; + case "CONSOLE": + case 3: + message.level = 3; + break; } + if (object.file != null) + message.file = String(object.file); + if (object.line != null) + if ($util.Long) + (message.line = $util.Long.fromValue(object.line)).unsigned = false; + else if (typeof object.line === "string") + message.line = parseInt(object.line, 10); + else if (typeof object.line === "number") + message.line = object.line; + else if (typeof object.line === "object") + message.line = new $util.LongBits(object.line.low >>> 0, object.line.high >>> 0).toNumber(); + if (object.value != null) + message.value = String(object.value); return message; }; /** - * Creates a plain object from an ApplyBinlogFileRequest message. Also converts values to other types if specified. + * Creates a plain object from an Event message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.ApplyBinlogFileRequest + * @memberof logutil.Event * @static - * @param {mysqlctl.ApplyBinlogFileRequest} message ApplyBinlogFileRequest + * @param {logutil.Event} message Event * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyBinlogFileRequest.toObject = function toObject(message, options) { + Event.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.binlog_file_name = ""; - object.binlog_restore_position = ""; - object.binlog_restore_datetime = null; + object.time = null; + object.level = options.enums === String ? "INFO" : 0; + object.file = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.line = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.line = options.longs === String ? "0" : 0; + object.value = ""; } - if (message.binlog_file_name != null && message.hasOwnProperty("binlog_file_name")) - object.binlog_file_name = message.binlog_file_name; - if (message.binlog_restore_position != null && message.hasOwnProperty("binlog_restore_position")) - object.binlog_restore_position = message.binlog_restore_position; - if (message.binlog_restore_datetime != null && message.hasOwnProperty("binlog_restore_datetime")) - object.binlog_restore_datetime = $root.vttime.Time.toObject(message.binlog_restore_datetime, options); + if (message.time != null && message.hasOwnProperty("time")) + object.time = $root.vttime.Time.toObject(message.time, options); + if (message.level != null && message.hasOwnProperty("level")) + object.level = options.enums === String ? $root.logutil.Level[message.level] === undefined ? message.level : $root.logutil.Level[message.level] : message.level; + if (message.file != null && message.hasOwnProperty("file")) + object.file = message.file; + if (message.line != null && message.hasOwnProperty("line")) + if (typeof message.line === "number") + object.line = options.longs === String ? String(message.line) : message.line; + else + object.line = options.longs === String ? $util.Long.prototype.toString.call(message.line) : options.longs === Number ? new $util.LongBits(message.line.low >>> 0, message.line.high >>> 0).toNumber() : message.line; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; return object; }; /** - * Converts this ApplyBinlogFileRequest to JSON. + * Converts this Event to JSON. * @function toJSON - * @memberof mysqlctl.ApplyBinlogFileRequest + * @memberof logutil.Event * @instance * @returns {Object.} JSON object */ - ApplyBinlogFileRequest.prototype.toJSON = function toJSON() { + Event.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApplyBinlogFileRequest + * Gets the default type url for Event * @function getTypeUrl - * @memberof mysqlctl.ApplyBinlogFileRequest + * @memberof logutil.Event * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApplyBinlogFileRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Event.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.ApplyBinlogFileRequest"; + return typeUrlPrefix + "/logutil.Event"; }; - return ApplyBinlogFileRequest; + return Event; })(); - mysqlctl.ApplyBinlogFileResponse = (function() { + return logutil; +})(); + +export const vttime = $root.vttime = (() => { + + /** + * Namespace vttime. + * @exports vttime + * @namespace + */ + const vttime = {}; + + vttime.Time = (function() { /** - * Properties of an ApplyBinlogFileResponse. - * @memberof mysqlctl - * @interface IApplyBinlogFileResponse + * Properties of a Time. + * @memberof vttime + * @interface ITime + * @property {number|Long|null} [seconds] Time seconds + * @property {number|null} [nanoseconds] Time nanoseconds */ /** - * Constructs a new ApplyBinlogFileResponse. - * @memberof mysqlctl - * @classdesc Represents an ApplyBinlogFileResponse. - * @implements IApplyBinlogFileResponse + * Constructs a new Time. + * @memberof vttime + * @classdesc Represents a Time. + * @implements ITime * @constructor - * @param {mysqlctl.IApplyBinlogFileResponse=} [properties] Properties to set + * @param {vttime.ITime=} [properties] Properties to set */ - function ApplyBinlogFileResponse(properties) { + function Time(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38061,63 +38548,91 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * Creates a new ApplyBinlogFileResponse instance using the specified properties. + * Time seconds. + * @member {number|Long} seconds + * @memberof vttime.Time + * @instance + */ + Time.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Time nanoseconds. + * @member {number} nanoseconds + * @memberof vttime.Time + * @instance + */ + Time.prototype.nanoseconds = 0; + + /** + * Creates a new Time instance using the specified properties. * @function create - * @memberof mysqlctl.ApplyBinlogFileResponse + * @memberof vttime.Time * @static - * @param {mysqlctl.IApplyBinlogFileResponse=} [properties] Properties to set - * @returns {mysqlctl.ApplyBinlogFileResponse} ApplyBinlogFileResponse instance + * @param {vttime.ITime=} [properties] Properties to set + * @returns {vttime.Time} Time instance */ - ApplyBinlogFileResponse.create = function create(properties) { - return new ApplyBinlogFileResponse(properties); + Time.create = function create(properties) { + return new Time(properties); }; /** - * Encodes the specified ApplyBinlogFileResponse message. Does not implicitly {@link mysqlctl.ApplyBinlogFileResponse.verify|verify} messages. + * Encodes the specified Time message. Does not implicitly {@link vttime.Time.verify|verify} messages. * @function encode - * @memberof mysqlctl.ApplyBinlogFileResponse + * @memberof vttime.Time * @static - * @param {mysqlctl.IApplyBinlogFileResponse} message ApplyBinlogFileResponse message or plain object to encode + * @param {vttime.ITime} message Time message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyBinlogFileResponse.encode = function encode(message, writer) { + Time.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanoseconds != null && Object.hasOwnProperty.call(message, "nanoseconds")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanoseconds); return writer; }; /** - * Encodes the specified ApplyBinlogFileResponse message, length delimited. Does not implicitly {@link mysqlctl.ApplyBinlogFileResponse.verify|verify} messages. + * Encodes the specified Time message, length delimited. Does not implicitly {@link vttime.Time.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.ApplyBinlogFileResponse + * @memberof vttime.Time * @static - * @param {mysqlctl.IApplyBinlogFileResponse} message ApplyBinlogFileResponse message or plain object to encode + * @param {vttime.ITime} message Time message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyBinlogFileResponse.encodeDelimited = function encodeDelimited(message, writer) { + Time.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyBinlogFileResponse message from the specified reader or buffer. + * Decodes a Time message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.ApplyBinlogFileResponse + * @memberof vttime.Time * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.ApplyBinlogFileResponse} ApplyBinlogFileResponse + * @returns {vttime.Time} Time * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyBinlogFileResponse.decode = function decode(reader, length) { + Time.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ApplyBinlogFileResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vttime.Time(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanoseconds = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -38127,110 +38642,146 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes an ApplyBinlogFileResponse message from the specified reader or buffer, length delimited. + * Decodes a Time message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.ApplyBinlogFileResponse + * @memberof vttime.Time * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.ApplyBinlogFileResponse} ApplyBinlogFileResponse + * @returns {vttime.Time} Time * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyBinlogFileResponse.decodeDelimited = function decodeDelimited(reader) { + Time.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyBinlogFileResponse message. + * Verifies a Time message. * @function verify - * @memberof mysqlctl.ApplyBinlogFileResponse + * @memberof vttime.Time * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyBinlogFileResponse.verify = function verify(message) { + Time.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanoseconds != null && message.hasOwnProperty("nanoseconds")) + if (!$util.isInteger(message.nanoseconds)) + return "nanoseconds: integer expected"; return null; }; /** - * Creates an ApplyBinlogFileResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Time message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.ApplyBinlogFileResponse + * @memberof vttime.Time * @static * @param {Object.} object Plain object - * @returns {mysqlctl.ApplyBinlogFileResponse} ApplyBinlogFileResponse + * @returns {vttime.Time} Time */ - ApplyBinlogFileResponse.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.ApplyBinlogFileResponse) + Time.fromObject = function fromObject(object) { + if (object instanceof $root.vttime.Time) return object; - return new $root.mysqlctl.ApplyBinlogFileResponse(); + let message = new $root.vttime.Time(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanoseconds != null) + message.nanoseconds = object.nanoseconds | 0; + return message; }; /** - * Creates a plain object from an ApplyBinlogFileResponse message. Also converts values to other types if specified. + * Creates a plain object from a Time message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.ApplyBinlogFileResponse + * @memberof vttime.Time * @static - * @param {mysqlctl.ApplyBinlogFileResponse} message ApplyBinlogFileResponse + * @param {vttime.Time} message Time * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyBinlogFileResponse.toObject = function toObject() { - return {}; + Time.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanoseconds = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanoseconds != null && message.hasOwnProperty("nanoseconds")) + object.nanoseconds = message.nanoseconds; + return object; }; /** - * Converts this ApplyBinlogFileResponse to JSON. + * Converts this Time to JSON. * @function toJSON - * @memberof mysqlctl.ApplyBinlogFileResponse + * @memberof vttime.Time * @instance * @returns {Object.} JSON object */ - ApplyBinlogFileResponse.prototype.toJSON = function toJSON() { + Time.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApplyBinlogFileResponse + * Gets the default type url for Time * @function getTypeUrl - * @memberof mysqlctl.ApplyBinlogFileResponse + * @memberof vttime.Time * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApplyBinlogFileResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Time.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.ApplyBinlogFileResponse"; + return typeUrlPrefix + "/vttime.Time"; }; - return ApplyBinlogFileResponse; + return Time; })(); - mysqlctl.ReadBinlogFilesTimestampsRequest = (function() { + vttime.Duration = (function() { /** - * Properties of a ReadBinlogFilesTimestampsRequest. - * @memberof mysqlctl - * @interface IReadBinlogFilesTimestampsRequest - * @property {Array.|null} [binlog_file_names] ReadBinlogFilesTimestampsRequest binlog_file_names + * Properties of a Duration. + * @memberof vttime + * @interface IDuration + * @property {number|Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos */ /** - * Constructs a new ReadBinlogFilesTimestampsRequest. - * @memberof mysqlctl - * @classdesc Represents a ReadBinlogFilesTimestampsRequest. - * @implements IReadBinlogFilesTimestampsRequest + * Constructs a new Duration. + * @memberof vttime + * @classdesc Represents a Duration. + * @implements IDuration * @constructor - * @param {mysqlctl.IReadBinlogFilesTimestampsRequest=} [properties] Properties to set + * @param {vttime.IDuration=} [properties] Properties to set */ - function ReadBinlogFilesTimestampsRequest(properties) { - this.binlog_file_names = []; + function Duration(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38238,78 +38789,89 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * ReadBinlogFilesTimestampsRequest binlog_file_names. - * @member {Array.} binlog_file_names - * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest + * Duration seconds. + * @member {number|Long} seconds + * @memberof vttime.Duration * @instance */ - ReadBinlogFilesTimestampsRequest.prototype.binlog_file_names = $util.emptyArray; + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ReadBinlogFilesTimestampsRequest instance using the specified properties. + * Duration nanos. + * @member {number} nanos + * @memberof vttime.Duration + * @instance + */ + Duration.prototype.nanos = 0; + + /** + * Creates a new Duration instance using the specified properties. * @function create - * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest + * @memberof vttime.Duration * @static - * @param {mysqlctl.IReadBinlogFilesTimestampsRequest=} [properties] Properties to set - * @returns {mysqlctl.ReadBinlogFilesTimestampsRequest} ReadBinlogFilesTimestampsRequest instance + * @param {vttime.IDuration=} [properties] Properties to set + * @returns {vttime.Duration} Duration instance */ - ReadBinlogFilesTimestampsRequest.create = function create(properties) { - return new ReadBinlogFilesTimestampsRequest(properties); + Duration.create = function create(properties) { + return new Duration(properties); }; /** - * Encodes the specified ReadBinlogFilesTimestampsRequest message. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsRequest.verify|verify} messages. + * Encodes the specified Duration message. Does not implicitly {@link vttime.Duration.verify|verify} messages. * @function encode - * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest + * @memberof vttime.Duration * @static - * @param {mysqlctl.IReadBinlogFilesTimestampsRequest} message ReadBinlogFilesTimestampsRequest message or plain object to encode + * @param {vttime.IDuration} message Duration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadBinlogFilesTimestampsRequest.encode = function encode(message, writer) { + Duration.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.binlog_file_names != null && message.binlog_file_names.length) - for (let i = 0; i < message.binlog_file_names.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.binlog_file_names[i]); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); return writer; }; /** - * Encodes the specified ReadBinlogFilesTimestampsRequest message, length delimited. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsRequest.verify|verify} messages. + * Encodes the specified Duration message, length delimited. Does not implicitly {@link vttime.Duration.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest + * @memberof vttime.Duration * @static - * @param {mysqlctl.IReadBinlogFilesTimestampsRequest} message ReadBinlogFilesTimestampsRequest message or plain object to encode + * @param {vttime.IDuration} message Duration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadBinlogFilesTimestampsRequest.encodeDelimited = function encodeDelimited(message, writer) { + Duration.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadBinlogFilesTimestampsRequest message from the specified reader or buffer. + * Decodes a Duration message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest + * @memberof vttime.Duration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.ReadBinlogFilesTimestampsRequest} ReadBinlogFilesTimestampsRequest + * @returns {vttime.Duration} Duration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadBinlogFilesTimestampsRequest.decode = function decode(reader, length) { + Duration.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ReadBinlogFilesTimestampsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vttime.Duration(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.binlog_file_names && message.binlog_file_names.length)) - message.binlog_file_names = []; - message.binlog_file_names.push(reader.string()); + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanos = reader.int32(); break; } default: @@ -38321,137 +38883,158 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a ReadBinlogFilesTimestampsRequest message from the specified reader or buffer, length delimited. + * Decodes a Duration message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest + * @memberof vttime.Duration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.ReadBinlogFilesTimestampsRequest} ReadBinlogFilesTimestampsRequest + * @returns {vttime.Duration} Duration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadBinlogFilesTimestampsRequest.decodeDelimited = function decodeDelimited(reader) { + Duration.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadBinlogFilesTimestampsRequest message. + * Verifies a Duration message. * @function verify - * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest + * @memberof vttime.Duration * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadBinlogFilesTimestampsRequest.verify = function verify(message) { + Duration.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.binlog_file_names != null && message.hasOwnProperty("binlog_file_names")) { - if (!Array.isArray(message.binlog_file_names)) - return "binlog_file_names: array expected"; - for (let i = 0; i < message.binlog_file_names.length; ++i) - if (!$util.isString(message.binlog_file_names[i])) - return "binlog_file_names: string[] expected"; - } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; return null; }; /** - * Creates a ReadBinlogFilesTimestampsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Duration message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest + * @memberof vttime.Duration * @static * @param {Object.} object Plain object - * @returns {mysqlctl.ReadBinlogFilesTimestampsRequest} ReadBinlogFilesTimestampsRequest + * @returns {vttime.Duration} Duration */ - ReadBinlogFilesTimestampsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.ReadBinlogFilesTimestampsRequest) + Duration.fromObject = function fromObject(object) { + if (object instanceof $root.vttime.Duration) return object; - let message = new $root.mysqlctl.ReadBinlogFilesTimestampsRequest(); - if (object.binlog_file_names) { - if (!Array.isArray(object.binlog_file_names)) - throw TypeError(".mysqlctl.ReadBinlogFilesTimestampsRequest.binlog_file_names: array expected"); - message.binlog_file_names = []; - for (let i = 0; i < object.binlog_file_names.length; ++i) - message.binlog_file_names[i] = String(object.binlog_file_names[i]); - } + let message = new $root.vttime.Duration(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; return message; }; /** - * Creates a plain object from a ReadBinlogFilesTimestampsRequest message. Also converts values to other types if specified. + * Creates a plain object from a Duration message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest + * @memberof vttime.Duration * @static - * @param {mysqlctl.ReadBinlogFilesTimestampsRequest} message ReadBinlogFilesTimestampsRequest + * @param {vttime.Duration} message Duration * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadBinlogFilesTimestampsRequest.toObject = function toObject(message, options) { + Duration.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.binlog_file_names = []; - if (message.binlog_file_names && message.binlog_file_names.length) { - object.binlog_file_names = []; - for (let j = 0; j < message.binlog_file_names.length; ++j) - object.binlog_file_names[j] = message.binlog_file_names[j]; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; return object; }; /** - * Converts this ReadBinlogFilesTimestampsRequest to JSON. + * Converts this Duration to JSON. * @function toJSON - * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest + * @memberof vttime.Duration * @instance * @returns {Object.} JSON object */ - ReadBinlogFilesTimestampsRequest.prototype.toJSON = function toJSON() { + Duration.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadBinlogFilesTimestampsRequest + * Gets the default type url for Duration * @function getTypeUrl - * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest + * @memberof vttime.Duration * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadBinlogFilesTimestampsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.ReadBinlogFilesTimestampsRequest"; + return typeUrlPrefix + "/vttime.Duration"; }; - return ReadBinlogFilesTimestampsRequest; + return Duration; })(); - mysqlctl.ReadBinlogFilesTimestampsResponse = (function() { + return vttime; +})(); - /** - * Properties of a ReadBinlogFilesTimestampsResponse. - * @memberof mysqlctl - * @interface IReadBinlogFilesTimestampsResponse - * @property {vttime.ITime|null} [first_timestamp] ReadBinlogFilesTimestampsResponse first_timestamp - * @property {string|null} [first_timestamp_binlog] ReadBinlogFilesTimestampsResponse first_timestamp_binlog - * @property {vttime.ITime|null} [last_timestamp] ReadBinlogFilesTimestampsResponse last_timestamp - * @property {string|null} [last_timestamp_binlog] ReadBinlogFilesTimestampsResponse last_timestamp_binlog - */ +export const mysqlctl = $root.mysqlctl = (() => { + + /** + * Namespace mysqlctl. + * @exports mysqlctl + * @namespace + */ + const mysqlctl = {}; + + mysqlctl.StartRequest = (function() { /** - * Constructs a new ReadBinlogFilesTimestampsResponse. + * Properties of a StartRequest. * @memberof mysqlctl - * @classdesc Represents a ReadBinlogFilesTimestampsResponse. - * @implements IReadBinlogFilesTimestampsResponse + * @interface IStartRequest + * @property {Array.|null} [mysqld_args] StartRequest mysqld_args + */ + + /** + * Constructs a new StartRequest. + * @memberof mysqlctl + * @classdesc Represents a StartRequest. + * @implements IStartRequest * @constructor - * @param {mysqlctl.IReadBinlogFilesTimestampsResponse=} [properties] Properties to set + * @param {mysqlctl.IStartRequest=} [properties] Properties to set */ - function ReadBinlogFilesTimestampsResponse(properties) { + function StartRequest(properties) { + this.mysqld_args = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38459,117 +39042,78 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * ReadBinlogFilesTimestampsResponse first_timestamp. - * @member {vttime.ITime|null|undefined} first_timestamp - * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse - * @instance - */ - ReadBinlogFilesTimestampsResponse.prototype.first_timestamp = null; - - /** - * ReadBinlogFilesTimestampsResponse first_timestamp_binlog. - * @member {string} first_timestamp_binlog - * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse - * @instance - */ - ReadBinlogFilesTimestampsResponse.prototype.first_timestamp_binlog = ""; - - /** - * ReadBinlogFilesTimestampsResponse last_timestamp. - * @member {vttime.ITime|null|undefined} last_timestamp - * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse - * @instance - */ - ReadBinlogFilesTimestampsResponse.prototype.last_timestamp = null; - - /** - * ReadBinlogFilesTimestampsResponse last_timestamp_binlog. - * @member {string} last_timestamp_binlog - * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse + * StartRequest mysqld_args. + * @member {Array.} mysqld_args + * @memberof mysqlctl.StartRequest * @instance */ - ReadBinlogFilesTimestampsResponse.prototype.last_timestamp_binlog = ""; + StartRequest.prototype.mysqld_args = $util.emptyArray; /** - * Creates a new ReadBinlogFilesTimestampsResponse instance using the specified properties. + * Creates a new StartRequest instance using the specified properties. * @function create - * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse + * @memberof mysqlctl.StartRequest * @static - * @param {mysqlctl.IReadBinlogFilesTimestampsResponse=} [properties] Properties to set - * @returns {mysqlctl.ReadBinlogFilesTimestampsResponse} ReadBinlogFilesTimestampsResponse instance + * @param {mysqlctl.IStartRequest=} [properties] Properties to set + * @returns {mysqlctl.StartRequest} StartRequest instance */ - ReadBinlogFilesTimestampsResponse.create = function create(properties) { - return new ReadBinlogFilesTimestampsResponse(properties); + StartRequest.create = function create(properties) { + return new StartRequest(properties); }; /** - * Encodes the specified ReadBinlogFilesTimestampsResponse message. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsResponse.verify|verify} messages. + * Encodes the specified StartRequest message. Does not implicitly {@link mysqlctl.StartRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse + * @memberof mysqlctl.StartRequest * @static - * @param {mysqlctl.IReadBinlogFilesTimestampsResponse} message ReadBinlogFilesTimestampsResponse message or plain object to encode + * @param {mysqlctl.IStartRequest} message StartRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadBinlogFilesTimestampsResponse.encode = function encode(message, writer) { + StartRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.first_timestamp != null && Object.hasOwnProperty.call(message, "first_timestamp")) - $root.vttime.Time.encode(message.first_timestamp, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.first_timestamp_binlog != null && Object.hasOwnProperty.call(message, "first_timestamp_binlog")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.first_timestamp_binlog); - if (message.last_timestamp != null && Object.hasOwnProperty.call(message, "last_timestamp")) - $root.vttime.Time.encode(message.last_timestamp, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.last_timestamp_binlog != null && Object.hasOwnProperty.call(message, "last_timestamp_binlog")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.last_timestamp_binlog); + if (message.mysqld_args != null && message.mysqld_args.length) + for (let i = 0; i < message.mysqld_args.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.mysqld_args[i]); return writer; }; /** - * Encodes the specified ReadBinlogFilesTimestampsResponse message, length delimited. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsResponse.verify|verify} messages. + * Encodes the specified StartRequest message, length delimited. Does not implicitly {@link mysqlctl.StartRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse + * @memberof mysqlctl.StartRequest * @static - * @param {mysqlctl.IReadBinlogFilesTimestampsResponse} message ReadBinlogFilesTimestampsResponse message or plain object to encode + * @param {mysqlctl.IStartRequest} message StartRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadBinlogFilesTimestampsResponse.encodeDelimited = function encodeDelimited(message, writer) { + StartRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadBinlogFilesTimestampsResponse message from the specified reader or buffer. + * Decodes a StartRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse + * @memberof mysqlctl.StartRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.ReadBinlogFilesTimestampsResponse} ReadBinlogFilesTimestampsResponse + * @returns {mysqlctl.StartRequest} StartRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadBinlogFilesTimestampsResponse.decode = function decode(reader, length) { + StartRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ReadBinlogFilesTimestampsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.StartRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.first_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 2: { - message.first_timestamp_binlog = reader.string(); - break; - } - case 3: { - message.last_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 4: { - message.last_timestamp_binlog = reader.string(); + if (!(message.mysqld_args && message.mysqld_args.length)) + message.mysqld_args = []; + message.mysqld_args.push(reader.string()); break; } default: @@ -38581,156 +39125,133 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a ReadBinlogFilesTimestampsResponse message from the specified reader or buffer, length delimited. + * Decodes a StartRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse + * @memberof mysqlctl.StartRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.ReadBinlogFilesTimestampsResponse} ReadBinlogFilesTimestampsResponse + * @returns {mysqlctl.StartRequest} StartRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadBinlogFilesTimestampsResponse.decodeDelimited = function decodeDelimited(reader) { + StartRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadBinlogFilesTimestampsResponse message. + * Verifies a StartRequest message. * @function verify - * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse + * @memberof mysqlctl.StartRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadBinlogFilesTimestampsResponse.verify = function verify(message) { + StartRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.first_timestamp != null && message.hasOwnProperty("first_timestamp")) { - let error = $root.vttime.Time.verify(message.first_timestamp); - if (error) - return "first_timestamp." + error; - } - if (message.first_timestamp_binlog != null && message.hasOwnProperty("first_timestamp_binlog")) - if (!$util.isString(message.first_timestamp_binlog)) - return "first_timestamp_binlog: string expected"; - if (message.last_timestamp != null && message.hasOwnProperty("last_timestamp")) { - let error = $root.vttime.Time.verify(message.last_timestamp); - if (error) - return "last_timestamp." + error; + if (message.mysqld_args != null && message.hasOwnProperty("mysqld_args")) { + if (!Array.isArray(message.mysqld_args)) + return "mysqld_args: array expected"; + for (let i = 0; i < message.mysqld_args.length; ++i) + if (!$util.isString(message.mysqld_args[i])) + return "mysqld_args: string[] expected"; } - if (message.last_timestamp_binlog != null && message.hasOwnProperty("last_timestamp_binlog")) - if (!$util.isString(message.last_timestamp_binlog)) - return "last_timestamp_binlog: string expected"; return null; }; /** - * Creates a ReadBinlogFilesTimestampsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StartRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse + * @memberof mysqlctl.StartRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.ReadBinlogFilesTimestampsResponse} ReadBinlogFilesTimestampsResponse + * @returns {mysqlctl.StartRequest} StartRequest */ - ReadBinlogFilesTimestampsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.ReadBinlogFilesTimestampsResponse) + StartRequest.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.StartRequest) return object; - let message = new $root.mysqlctl.ReadBinlogFilesTimestampsResponse(); - if (object.first_timestamp != null) { - if (typeof object.first_timestamp !== "object") - throw TypeError(".mysqlctl.ReadBinlogFilesTimestampsResponse.first_timestamp: object expected"); - message.first_timestamp = $root.vttime.Time.fromObject(object.first_timestamp); - } - if (object.first_timestamp_binlog != null) - message.first_timestamp_binlog = String(object.first_timestamp_binlog); - if (object.last_timestamp != null) { - if (typeof object.last_timestamp !== "object") - throw TypeError(".mysqlctl.ReadBinlogFilesTimestampsResponse.last_timestamp: object expected"); - message.last_timestamp = $root.vttime.Time.fromObject(object.last_timestamp); + let message = new $root.mysqlctl.StartRequest(); + if (object.mysqld_args) { + if (!Array.isArray(object.mysqld_args)) + throw TypeError(".mysqlctl.StartRequest.mysqld_args: array expected"); + message.mysqld_args = []; + for (let i = 0; i < object.mysqld_args.length; ++i) + message.mysqld_args[i] = String(object.mysqld_args[i]); } - if (object.last_timestamp_binlog != null) - message.last_timestamp_binlog = String(object.last_timestamp_binlog); return message; }; /** - * Creates a plain object from a ReadBinlogFilesTimestampsResponse message. Also converts values to other types if specified. + * Creates a plain object from a StartRequest message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse + * @memberof mysqlctl.StartRequest * @static - * @param {mysqlctl.ReadBinlogFilesTimestampsResponse} message ReadBinlogFilesTimestampsResponse + * @param {mysqlctl.StartRequest} message StartRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadBinlogFilesTimestampsResponse.toObject = function toObject(message, options) { + StartRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.first_timestamp = null; - object.first_timestamp_binlog = ""; - object.last_timestamp = null; - object.last_timestamp_binlog = ""; + if (options.arrays || options.defaults) + object.mysqld_args = []; + if (message.mysqld_args && message.mysqld_args.length) { + object.mysqld_args = []; + for (let j = 0; j < message.mysqld_args.length; ++j) + object.mysqld_args[j] = message.mysqld_args[j]; } - if (message.first_timestamp != null && message.hasOwnProperty("first_timestamp")) - object.first_timestamp = $root.vttime.Time.toObject(message.first_timestamp, options); - if (message.first_timestamp_binlog != null && message.hasOwnProperty("first_timestamp_binlog")) - object.first_timestamp_binlog = message.first_timestamp_binlog; - if (message.last_timestamp != null && message.hasOwnProperty("last_timestamp")) - object.last_timestamp = $root.vttime.Time.toObject(message.last_timestamp, options); - if (message.last_timestamp_binlog != null && message.hasOwnProperty("last_timestamp_binlog")) - object.last_timestamp_binlog = message.last_timestamp_binlog; return object; }; /** - * Converts this ReadBinlogFilesTimestampsResponse to JSON. + * Converts this StartRequest to JSON. * @function toJSON - * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse + * @memberof mysqlctl.StartRequest * @instance * @returns {Object.} JSON object */ - ReadBinlogFilesTimestampsResponse.prototype.toJSON = function toJSON() { + StartRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadBinlogFilesTimestampsResponse + * Gets the default type url for StartRequest * @function getTypeUrl - * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse + * @memberof mysqlctl.StartRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadBinlogFilesTimestampsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.ReadBinlogFilesTimestampsResponse"; + return typeUrlPrefix + "/mysqlctl.StartRequest"; }; - return ReadBinlogFilesTimestampsResponse; + return StartRequest; })(); - mysqlctl.ReinitConfigRequest = (function() { + mysqlctl.StartResponse = (function() { /** - * Properties of a ReinitConfigRequest. + * Properties of a StartResponse. * @memberof mysqlctl - * @interface IReinitConfigRequest + * @interface IStartResponse */ /** - * Constructs a new ReinitConfigRequest. + * Constructs a new StartResponse. * @memberof mysqlctl - * @classdesc Represents a ReinitConfigRequest. - * @implements IReinitConfigRequest + * @classdesc Represents a StartResponse. + * @implements IStartResponse * @constructor - * @param {mysqlctl.IReinitConfigRequest=} [properties] Properties to set + * @param {mysqlctl.IStartResponse=} [properties] Properties to set */ - function ReinitConfigRequest(properties) { + function StartResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38738,60 +39259,60 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * Creates a new ReinitConfigRequest instance using the specified properties. + * Creates a new StartResponse instance using the specified properties. * @function create - * @memberof mysqlctl.ReinitConfigRequest + * @memberof mysqlctl.StartResponse * @static - * @param {mysqlctl.IReinitConfigRequest=} [properties] Properties to set - * @returns {mysqlctl.ReinitConfigRequest} ReinitConfigRequest instance + * @param {mysqlctl.IStartResponse=} [properties] Properties to set + * @returns {mysqlctl.StartResponse} StartResponse instance */ - ReinitConfigRequest.create = function create(properties) { - return new ReinitConfigRequest(properties); + StartResponse.create = function create(properties) { + return new StartResponse(properties); }; /** - * Encodes the specified ReinitConfigRequest message. Does not implicitly {@link mysqlctl.ReinitConfigRequest.verify|verify} messages. + * Encodes the specified StartResponse message. Does not implicitly {@link mysqlctl.StartResponse.verify|verify} messages. * @function encode - * @memberof mysqlctl.ReinitConfigRequest + * @memberof mysqlctl.StartResponse * @static - * @param {mysqlctl.IReinitConfigRequest} message ReinitConfigRequest message or plain object to encode + * @param {mysqlctl.IStartResponse} message StartResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReinitConfigRequest.encode = function encode(message, writer) { + StartResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified ReinitConfigRequest message, length delimited. Does not implicitly {@link mysqlctl.ReinitConfigRequest.verify|verify} messages. + * Encodes the specified StartResponse message, length delimited. Does not implicitly {@link mysqlctl.StartResponse.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.ReinitConfigRequest + * @memberof mysqlctl.StartResponse * @static - * @param {mysqlctl.IReinitConfigRequest} message ReinitConfigRequest message or plain object to encode + * @param {mysqlctl.IStartResponse} message StartResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReinitConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + StartResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReinitConfigRequest message from the specified reader or buffer. + * Decodes a StartResponse message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.ReinitConfigRequest + * @memberof mysqlctl.StartResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.ReinitConfigRequest} ReinitConfigRequest + * @returns {mysqlctl.StartResponse} StartResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReinitConfigRequest.decode = function decode(reader, length) { + StartResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ReinitConfigRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.StartResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -38804,108 +39325,110 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a ReinitConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a StartResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.ReinitConfigRequest + * @memberof mysqlctl.StartResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.ReinitConfigRequest} ReinitConfigRequest + * @returns {mysqlctl.StartResponse} StartResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReinitConfigRequest.decodeDelimited = function decodeDelimited(reader) { + StartResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReinitConfigRequest message. + * Verifies a StartResponse message. * @function verify - * @memberof mysqlctl.ReinitConfigRequest + * @memberof mysqlctl.StartResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReinitConfigRequest.verify = function verify(message) { + StartResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a ReinitConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.ReinitConfigRequest + * @memberof mysqlctl.StartResponse * @static * @param {Object.} object Plain object - * @returns {mysqlctl.ReinitConfigRequest} ReinitConfigRequest + * @returns {mysqlctl.StartResponse} StartResponse */ - ReinitConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.ReinitConfigRequest) + StartResponse.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.StartResponse) return object; - return new $root.mysqlctl.ReinitConfigRequest(); + return new $root.mysqlctl.StartResponse(); }; /** - * Creates a plain object from a ReinitConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a StartResponse message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.ReinitConfigRequest + * @memberof mysqlctl.StartResponse * @static - * @param {mysqlctl.ReinitConfigRequest} message ReinitConfigRequest + * @param {mysqlctl.StartResponse} message StartResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReinitConfigRequest.toObject = function toObject() { + StartResponse.toObject = function toObject() { return {}; }; /** - * Converts this ReinitConfigRequest to JSON. + * Converts this StartResponse to JSON. * @function toJSON - * @memberof mysqlctl.ReinitConfigRequest + * @memberof mysqlctl.StartResponse * @instance * @returns {Object.} JSON object */ - ReinitConfigRequest.prototype.toJSON = function toJSON() { + StartResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReinitConfigRequest + * Gets the default type url for StartResponse * @function getTypeUrl - * @memberof mysqlctl.ReinitConfigRequest + * @memberof mysqlctl.StartResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReinitConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StartResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.ReinitConfigRequest"; + return typeUrlPrefix + "/mysqlctl.StartResponse"; }; - return ReinitConfigRequest; + return StartResponse; })(); - mysqlctl.ReinitConfigResponse = (function() { + mysqlctl.ShutdownRequest = (function() { /** - * Properties of a ReinitConfigResponse. + * Properties of a ShutdownRequest. * @memberof mysqlctl - * @interface IReinitConfigResponse + * @interface IShutdownRequest + * @property {boolean|null} [wait_for_mysqld] ShutdownRequest wait_for_mysqld + * @property {vttime.IDuration|null} [mysql_shutdown_timeout] ShutdownRequest mysql_shutdown_timeout */ /** - * Constructs a new ReinitConfigResponse. + * Constructs a new ShutdownRequest. * @memberof mysqlctl - * @classdesc Represents a ReinitConfigResponse. - * @implements IReinitConfigResponse + * @classdesc Represents a ShutdownRequest. + * @implements IShutdownRequest * @constructor - * @param {mysqlctl.IReinitConfigResponse=} [properties] Properties to set + * @param {mysqlctl.IShutdownRequest=} [properties] Properties to set */ - function ReinitConfigResponse(properties) { + function ShutdownRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38913,63 +39436,91 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * Creates a new ReinitConfigResponse instance using the specified properties. + * ShutdownRequest wait_for_mysqld. + * @member {boolean} wait_for_mysqld + * @memberof mysqlctl.ShutdownRequest + * @instance + */ + ShutdownRequest.prototype.wait_for_mysqld = false; + + /** + * ShutdownRequest mysql_shutdown_timeout. + * @member {vttime.IDuration|null|undefined} mysql_shutdown_timeout + * @memberof mysqlctl.ShutdownRequest + * @instance + */ + ShutdownRequest.prototype.mysql_shutdown_timeout = null; + + /** + * Creates a new ShutdownRequest instance using the specified properties. * @function create - * @memberof mysqlctl.ReinitConfigResponse + * @memberof mysqlctl.ShutdownRequest * @static - * @param {mysqlctl.IReinitConfigResponse=} [properties] Properties to set - * @returns {mysqlctl.ReinitConfigResponse} ReinitConfigResponse instance + * @param {mysqlctl.IShutdownRequest=} [properties] Properties to set + * @returns {mysqlctl.ShutdownRequest} ShutdownRequest instance */ - ReinitConfigResponse.create = function create(properties) { - return new ReinitConfigResponse(properties); + ShutdownRequest.create = function create(properties) { + return new ShutdownRequest(properties); }; /** - * Encodes the specified ReinitConfigResponse message. Does not implicitly {@link mysqlctl.ReinitConfigResponse.verify|verify} messages. + * Encodes the specified ShutdownRequest message. Does not implicitly {@link mysqlctl.ShutdownRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.ReinitConfigResponse + * @memberof mysqlctl.ShutdownRequest * @static - * @param {mysqlctl.IReinitConfigResponse} message ReinitConfigResponse message or plain object to encode + * @param {mysqlctl.IShutdownRequest} message ShutdownRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReinitConfigResponse.encode = function encode(message, writer) { + ShutdownRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.wait_for_mysqld != null && Object.hasOwnProperty.call(message, "wait_for_mysqld")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.wait_for_mysqld); + if (message.mysql_shutdown_timeout != null && Object.hasOwnProperty.call(message, "mysql_shutdown_timeout")) + $root.vttime.Duration.encode(message.mysql_shutdown_timeout, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReinitConfigResponse message, length delimited. Does not implicitly {@link mysqlctl.ReinitConfigResponse.verify|verify} messages. + * Encodes the specified ShutdownRequest message, length delimited. Does not implicitly {@link mysqlctl.ShutdownRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.ReinitConfigResponse + * @memberof mysqlctl.ShutdownRequest * @static - * @param {mysqlctl.IReinitConfigResponse} message ReinitConfigResponse message or plain object to encode + * @param {mysqlctl.IShutdownRequest} message ShutdownRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReinitConfigResponse.encodeDelimited = function encodeDelimited(message, writer) { + ShutdownRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReinitConfigResponse message from the specified reader or buffer. + * Decodes a ShutdownRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.ReinitConfigResponse + * @memberof mysqlctl.ShutdownRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.ReinitConfigResponse} ReinitConfigResponse + * @returns {mysqlctl.ShutdownRequest} ShutdownRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReinitConfigResponse.decode = function decode(reader, length) { + ShutdownRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ReinitConfigResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ShutdownRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.wait_for_mysqld = reader.bool(); + break; + } + case 2: { + message.mysql_shutdown_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -38979,108 +39530,135 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a ReinitConfigResponse message from the specified reader or buffer, length delimited. + * Decodes a ShutdownRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.ReinitConfigResponse + * @memberof mysqlctl.ShutdownRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.ReinitConfigResponse} ReinitConfigResponse + * @returns {mysqlctl.ShutdownRequest} ShutdownRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReinitConfigResponse.decodeDelimited = function decodeDelimited(reader) { + ShutdownRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReinitConfigResponse message. + * Verifies a ShutdownRequest message. * @function verify - * @memberof mysqlctl.ReinitConfigResponse + * @memberof mysqlctl.ShutdownRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReinitConfigResponse.verify = function verify(message) { + ShutdownRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.wait_for_mysqld != null && message.hasOwnProperty("wait_for_mysqld")) + if (typeof message.wait_for_mysqld !== "boolean") + return "wait_for_mysqld: boolean expected"; + if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) { + let error = $root.vttime.Duration.verify(message.mysql_shutdown_timeout); + if (error) + return "mysql_shutdown_timeout." + error; + } return null; }; /** - * Creates a ReinitConfigResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ShutdownRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.ReinitConfigResponse + * @memberof mysqlctl.ShutdownRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.ReinitConfigResponse} ReinitConfigResponse + * @returns {mysqlctl.ShutdownRequest} ShutdownRequest */ - ReinitConfigResponse.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.ReinitConfigResponse) + ShutdownRequest.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.ShutdownRequest) return object; - return new $root.mysqlctl.ReinitConfigResponse(); + let message = new $root.mysqlctl.ShutdownRequest(); + if (object.wait_for_mysqld != null) + message.wait_for_mysqld = Boolean(object.wait_for_mysqld); + if (object.mysql_shutdown_timeout != null) { + if (typeof object.mysql_shutdown_timeout !== "object") + throw TypeError(".mysqlctl.ShutdownRequest.mysql_shutdown_timeout: object expected"); + message.mysql_shutdown_timeout = $root.vttime.Duration.fromObject(object.mysql_shutdown_timeout); + } + return message; }; /** - * Creates a plain object from a ReinitConfigResponse message. Also converts values to other types if specified. + * Creates a plain object from a ShutdownRequest message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.ReinitConfigResponse + * @memberof mysqlctl.ShutdownRequest * @static - * @param {mysqlctl.ReinitConfigResponse} message ReinitConfigResponse + * @param {mysqlctl.ShutdownRequest} message ShutdownRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReinitConfigResponse.toObject = function toObject() { - return {}; + ShutdownRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.wait_for_mysqld = false; + object.mysql_shutdown_timeout = null; + } + if (message.wait_for_mysqld != null && message.hasOwnProperty("wait_for_mysqld")) + object.wait_for_mysqld = message.wait_for_mysqld; + if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) + object.mysql_shutdown_timeout = $root.vttime.Duration.toObject(message.mysql_shutdown_timeout, options); + return object; }; /** - * Converts this ReinitConfigResponse to JSON. + * Converts this ShutdownRequest to JSON. * @function toJSON - * @memberof mysqlctl.ReinitConfigResponse + * @memberof mysqlctl.ShutdownRequest * @instance * @returns {Object.} JSON object */ - ReinitConfigResponse.prototype.toJSON = function toJSON() { + ShutdownRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReinitConfigResponse + * Gets the default type url for ShutdownRequest * @function getTypeUrl - * @memberof mysqlctl.ReinitConfigResponse + * @memberof mysqlctl.ShutdownRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReinitConfigResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShutdownRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.ReinitConfigResponse"; + return typeUrlPrefix + "/mysqlctl.ShutdownRequest"; }; - return ReinitConfigResponse; + return ShutdownRequest; })(); - mysqlctl.RefreshConfigRequest = (function() { + mysqlctl.ShutdownResponse = (function() { /** - * Properties of a RefreshConfigRequest. + * Properties of a ShutdownResponse. * @memberof mysqlctl - * @interface IRefreshConfigRequest + * @interface IShutdownResponse */ /** - * Constructs a new RefreshConfigRequest. + * Constructs a new ShutdownResponse. * @memberof mysqlctl - * @classdesc Represents a RefreshConfigRequest. - * @implements IRefreshConfigRequest + * @classdesc Represents a ShutdownResponse. + * @implements IShutdownResponse * @constructor - * @param {mysqlctl.IRefreshConfigRequest=} [properties] Properties to set + * @param {mysqlctl.IShutdownResponse=} [properties] Properties to set */ - function RefreshConfigRequest(properties) { + function ShutdownResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39088,60 +39666,60 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * Creates a new RefreshConfigRequest instance using the specified properties. + * Creates a new ShutdownResponse instance using the specified properties. * @function create - * @memberof mysqlctl.RefreshConfigRequest + * @memberof mysqlctl.ShutdownResponse * @static - * @param {mysqlctl.IRefreshConfigRequest=} [properties] Properties to set - * @returns {mysqlctl.RefreshConfigRequest} RefreshConfigRequest instance + * @param {mysqlctl.IShutdownResponse=} [properties] Properties to set + * @returns {mysqlctl.ShutdownResponse} ShutdownResponse instance */ - RefreshConfigRequest.create = function create(properties) { - return new RefreshConfigRequest(properties); + ShutdownResponse.create = function create(properties) { + return new ShutdownResponse(properties); }; /** - * Encodes the specified RefreshConfigRequest message. Does not implicitly {@link mysqlctl.RefreshConfigRequest.verify|verify} messages. + * Encodes the specified ShutdownResponse message. Does not implicitly {@link mysqlctl.ShutdownResponse.verify|verify} messages. * @function encode - * @memberof mysqlctl.RefreshConfigRequest + * @memberof mysqlctl.ShutdownResponse * @static - * @param {mysqlctl.IRefreshConfigRequest} message RefreshConfigRequest message or plain object to encode + * @param {mysqlctl.IShutdownResponse} message ShutdownResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshConfigRequest.encode = function encode(message, writer) { + ShutdownResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified RefreshConfigRequest message, length delimited. Does not implicitly {@link mysqlctl.RefreshConfigRequest.verify|verify} messages. + * Encodes the specified ShutdownResponse message, length delimited. Does not implicitly {@link mysqlctl.ShutdownResponse.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.RefreshConfigRequest + * @memberof mysqlctl.ShutdownResponse * @static - * @param {mysqlctl.IRefreshConfigRequest} message RefreshConfigRequest message or plain object to encode + * @param {mysqlctl.IShutdownResponse} message ShutdownResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + ShutdownResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RefreshConfigRequest message from the specified reader or buffer. + * Decodes a ShutdownResponse message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.RefreshConfigRequest + * @memberof mysqlctl.ShutdownResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.RefreshConfigRequest} RefreshConfigRequest + * @returns {mysqlctl.ShutdownResponse} ShutdownResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshConfigRequest.decode = function decode(reader, length) { + ShutdownResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RefreshConfigRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ShutdownResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -39154,108 +39732,108 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a RefreshConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a ShutdownResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.RefreshConfigRequest + * @memberof mysqlctl.ShutdownResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.RefreshConfigRequest} RefreshConfigRequest + * @returns {mysqlctl.ShutdownResponse} ShutdownResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshConfigRequest.decodeDelimited = function decodeDelimited(reader) { + ShutdownResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RefreshConfigRequest message. + * Verifies a ShutdownResponse message. * @function verify - * @memberof mysqlctl.RefreshConfigRequest + * @memberof mysqlctl.ShutdownResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RefreshConfigRequest.verify = function verify(message) { + ShutdownResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a RefreshConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShutdownResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.RefreshConfigRequest + * @memberof mysqlctl.ShutdownResponse * @static * @param {Object.} object Plain object - * @returns {mysqlctl.RefreshConfigRequest} RefreshConfigRequest + * @returns {mysqlctl.ShutdownResponse} ShutdownResponse */ - RefreshConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.RefreshConfigRequest) + ShutdownResponse.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.ShutdownResponse) return object; - return new $root.mysqlctl.RefreshConfigRequest(); + return new $root.mysqlctl.ShutdownResponse(); }; /** - * Creates a plain object from a RefreshConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a ShutdownResponse message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.RefreshConfigRequest + * @memberof mysqlctl.ShutdownResponse * @static - * @param {mysqlctl.RefreshConfigRequest} message RefreshConfigRequest + * @param {mysqlctl.ShutdownResponse} message ShutdownResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RefreshConfigRequest.toObject = function toObject() { + ShutdownResponse.toObject = function toObject() { return {}; }; /** - * Converts this RefreshConfigRequest to JSON. + * Converts this ShutdownResponse to JSON. * @function toJSON - * @memberof mysqlctl.RefreshConfigRequest + * @memberof mysqlctl.ShutdownResponse * @instance * @returns {Object.} JSON object */ - RefreshConfigRequest.prototype.toJSON = function toJSON() { + ShutdownResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RefreshConfigRequest + * Gets the default type url for ShutdownResponse * @function getTypeUrl - * @memberof mysqlctl.RefreshConfigRequest + * @memberof mysqlctl.ShutdownResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RefreshConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShutdownResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.RefreshConfigRequest"; + return typeUrlPrefix + "/mysqlctl.ShutdownResponse"; }; - return RefreshConfigRequest; + return ShutdownResponse; })(); - mysqlctl.RefreshConfigResponse = (function() { + mysqlctl.RunMysqlUpgradeRequest = (function() { /** - * Properties of a RefreshConfigResponse. + * Properties of a RunMysqlUpgradeRequest. * @memberof mysqlctl - * @interface IRefreshConfigResponse + * @interface IRunMysqlUpgradeRequest */ /** - * Constructs a new RefreshConfigResponse. + * Constructs a new RunMysqlUpgradeRequest. * @memberof mysqlctl - * @classdesc Represents a RefreshConfigResponse. - * @implements IRefreshConfigResponse + * @classdesc Represents a RunMysqlUpgradeRequest. + * @implements IRunMysqlUpgradeRequest * @constructor - * @param {mysqlctl.IRefreshConfigResponse=} [properties] Properties to set + * @param {mysqlctl.IRunMysqlUpgradeRequest=} [properties] Properties to set */ - function RefreshConfigResponse(properties) { + function RunMysqlUpgradeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39263,60 +39841,60 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * Creates a new RefreshConfigResponse instance using the specified properties. + * Creates a new RunMysqlUpgradeRequest instance using the specified properties. * @function create - * @memberof mysqlctl.RefreshConfigResponse + * @memberof mysqlctl.RunMysqlUpgradeRequest * @static - * @param {mysqlctl.IRefreshConfigResponse=} [properties] Properties to set - * @returns {mysqlctl.RefreshConfigResponse} RefreshConfigResponse instance + * @param {mysqlctl.IRunMysqlUpgradeRequest=} [properties] Properties to set + * @returns {mysqlctl.RunMysqlUpgradeRequest} RunMysqlUpgradeRequest instance */ - RefreshConfigResponse.create = function create(properties) { - return new RefreshConfigResponse(properties); + RunMysqlUpgradeRequest.create = function create(properties) { + return new RunMysqlUpgradeRequest(properties); }; /** - * Encodes the specified RefreshConfigResponse message. Does not implicitly {@link mysqlctl.RefreshConfigResponse.verify|verify} messages. + * Encodes the specified RunMysqlUpgradeRequest message. Does not implicitly {@link mysqlctl.RunMysqlUpgradeRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.RefreshConfigResponse + * @memberof mysqlctl.RunMysqlUpgradeRequest * @static - * @param {mysqlctl.IRefreshConfigResponse} message RefreshConfigResponse message or plain object to encode + * @param {mysqlctl.IRunMysqlUpgradeRequest} message RunMysqlUpgradeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshConfigResponse.encode = function encode(message, writer) { + RunMysqlUpgradeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified RefreshConfigResponse message, length delimited. Does not implicitly {@link mysqlctl.RefreshConfigResponse.verify|verify} messages. + * Encodes the specified RunMysqlUpgradeRequest message, length delimited. Does not implicitly {@link mysqlctl.RunMysqlUpgradeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.RefreshConfigResponse + * @memberof mysqlctl.RunMysqlUpgradeRequest * @static - * @param {mysqlctl.IRefreshConfigResponse} message RefreshConfigResponse message or plain object to encode + * @param {mysqlctl.IRunMysqlUpgradeRequest} message RunMysqlUpgradeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshConfigResponse.encodeDelimited = function encodeDelimited(message, writer) { + RunMysqlUpgradeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RefreshConfigResponse message from the specified reader or buffer. + * Decodes a RunMysqlUpgradeRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.RefreshConfigResponse + * @memberof mysqlctl.RunMysqlUpgradeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.RefreshConfigResponse} RefreshConfigResponse + * @returns {mysqlctl.RunMysqlUpgradeRequest} RunMysqlUpgradeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshConfigResponse.decode = function decode(reader, length) { + RunMysqlUpgradeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RefreshConfigResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RunMysqlUpgradeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -39329,108 +39907,108 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a RefreshConfigResponse message from the specified reader or buffer, length delimited. + * Decodes a RunMysqlUpgradeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.RefreshConfigResponse + * @memberof mysqlctl.RunMysqlUpgradeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.RefreshConfigResponse} RefreshConfigResponse + * @returns {mysqlctl.RunMysqlUpgradeRequest} RunMysqlUpgradeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshConfigResponse.decodeDelimited = function decodeDelimited(reader) { + RunMysqlUpgradeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RefreshConfigResponse message. + * Verifies a RunMysqlUpgradeRequest message. * @function verify - * @memberof mysqlctl.RefreshConfigResponse + * @memberof mysqlctl.RunMysqlUpgradeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RefreshConfigResponse.verify = function verify(message) { + RunMysqlUpgradeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a RefreshConfigResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RunMysqlUpgradeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.RefreshConfigResponse + * @memberof mysqlctl.RunMysqlUpgradeRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.RefreshConfigResponse} RefreshConfigResponse + * @returns {mysqlctl.RunMysqlUpgradeRequest} RunMysqlUpgradeRequest */ - RefreshConfigResponse.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.RefreshConfigResponse) + RunMysqlUpgradeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.RunMysqlUpgradeRequest) return object; - return new $root.mysqlctl.RefreshConfigResponse(); + return new $root.mysqlctl.RunMysqlUpgradeRequest(); }; /** - * Creates a plain object from a RefreshConfigResponse message. Also converts values to other types if specified. + * Creates a plain object from a RunMysqlUpgradeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.RefreshConfigResponse + * @memberof mysqlctl.RunMysqlUpgradeRequest * @static - * @param {mysqlctl.RefreshConfigResponse} message RefreshConfigResponse + * @param {mysqlctl.RunMysqlUpgradeRequest} message RunMysqlUpgradeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RefreshConfigResponse.toObject = function toObject() { + RunMysqlUpgradeRequest.toObject = function toObject() { return {}; }; /** - * Converts this RefreshConfigResponse to JSON. + * Converts this RunMysqlUpgradeRequest to JSON. * @function toJSON - * @memberof mysqlctl.RefreshConfigResponse + * @memberof mysqlctl.RunMysqlUpgradeRequest * @instance * @returns {Object.} JSON object */ - RefreshConfigResponse.prototype.toJSON = function toJSON() { + RunMysqlUpgradeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RefreshConfigResponse + * Gets the default type url for RunMysqlUpgradeRequest * @function getTypeUrl - * @memberof mysqlctl.RefreshConfigResponse + * @memberof mysqlctl.RunMysqlUpgradeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RefreshConfigResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RunMysqlUpgradeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.RefreshConfigResponse"; + return typeUrlPrefix + "/mysqlctl.RunMysqlUpgradeRequest"; }; - return RefreshConfigResponse; + return RunMysqlUpgradeRequest; })(); - mysqlctl.VersionStringRequest = (function() { + mysqlctl.RunMysqlUpgradeResponse = (function() { /** - * Properties of a VersionStringRequest. + * Properties of a RunMysqlUpgradeResponse. * @memberof mysqlctl - * @interface IVersionStringRequest + * @interface IRunMysqlUpgradeResponse */ /** - * Constructs a new VersionStringRequest. + * Constructs a new RunMysqlUpgradeResponse. * @memberof mysqlctl - * @classdesc Represents a VersionStringRequest. - * @implements IVersionStringRequest + * @classdesc Represents a RunMysqlUpgradeResponse. + * @implements IRunMysqlUpgradeResponse * @constructor - * @param {mysqlctl.IVersionStringRequest=} [properties] Properties to set + * @param {mysqlctl.IRunMysqlUpgradeResponse=} [properties] Properties to set */ - function VersionStringRequest(properties) { + function RunMysqlUpgradeResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39438,60 +40016,60 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * Creates a new VersionStringRequest instance using the specified properties. + * Creates a new RunMysqlUpgradeResponse instance using the specified properties. * @function create - * @memberof mysqlctl.VersionStringRequest + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static - * @param {mysqlctl.IVersionStringRequest=} [properties] Properties to set - * @returns {mysqlctl.VersionStringRequest} VersionStringRequest instance + * @param {mysqlctl.IRunMysqlUpgradeResponse=} [properties] Properties to set + * @returns {mysqlctl.RunMysqlUpgradeResponse} RunMysqlUpgradeResponse instance */ - VersionStringRequest.create = function create(properties) { - return new VersionStringRequest(properties); + RunMysqlUpgradeResponse.create = function create(properties) { + return new RunMysqlUpgradeResponse(properties); }; /** - * Encodes the specified VersionStringRequest message. Does not implicitly {@link mysqlctl.VersionStringRequest.verify|verify} messages. + * Encodes the specified RunMysqlUpgradeResponse message. Does not implicitly {@link mysqlctl.RunMysqlUpgradeResponse.verify|verify} messages. * @function encode - * @memberof mysqlctl.VersionStringRequest + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static - * @param {mysqlctl.IVersionStringRequest} message VersionStringRequest message or plain object to encode + * @param {mysqlctl.IRunMysqlUpgradeResponse} message RunMysqlUpgradeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VersionStringRequest.encode = function encode(message, writer) { + RunMysqlUpgradeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified VersionStringRequest message, length delimited. Does not implicitly {@link mysqlctl.VersionStringRequest.verify|verify} messages. + * Encodes the specified RunMysqlUpgradeResponse message, length delimited. Does not implicitly {@link mysqlctl.RunMysqlUpgradeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.VersionStringRequest + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static - * @param {mysqlctl.IVersionStringRequest} message VersionStringRequest message or plain object to encode + * @param {mysqlctl.IRunMysqlUpgradeResponse} message RunMysqlUpgradeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VersionStringRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunMysqlUpgradeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VersionStringRequest message from the specified reader or buffer. + * Decodes a RunMysqlUpgradeResponse message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.VersionStringRequest + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.VersionStringRequest} VersionStringRequest + * @returns {mysqlctl.RunMysqlUpgradeResponse} RunMysqlUpgradeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VersionStringRequest.decode = function decode(reader, length) { + RunMysqlUpgradeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.VersionStringRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RunMysqlUpgradeResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -39504,109 +40082,111 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a VersionStringRequest message from the specified reader or buffer, length delimited. + * Decodes a RunMysqlUpgradeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.VersionStringRequest + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.VersionStringRequest} VersionStringRequest + * @returns {mysqlctl.RunMysqlUpgradeResponse} RunMysqlUpgradeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VersionStringRequest.decodeDelimited = function decodeDelimited(reader) { + RunMysqlUpgradeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VersionStringRequest message. + * Verifies a RunMysqlUpgradeResponse message. * @function verify - * @memberof mysqlctl.VersionStringRequest + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VersionStringRequest.verify = function verify(message) { + RunMysqlUpgradeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a VersionStringRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunMysqlUpgradeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.VersionStringRequest + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static * @param {Object.} object Plain object - * @returns {mysqlctl.VersionStringRequest} VersionStringRequest + * @returns {mysqlctl.RunMysqlUpgradeResponse} RunMysqlUpgradeResponse */ - VersionStringRequest.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.VersionStringRequest) + RunMysqlUpgradeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.RunMysqlUpgradeResponse) return object; - return new $root.mysqlctl.VersionStringRequest(); + return new $root.mysqlctl.RunMysqlUpgradeResponse(); }; /** - * Creates a plain object from a VersionStringRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunMysqlUpgradeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.VersionStringRequest + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static - * @param {mysqlctl.VersionStringRequest} message VersionStringRequest + * @param {mysqlctl.RunMysqlUpgradeResponse} message RunMysqlUpgradeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VersionStringRequest.toObject = function toObject() { + RunMysqlUpgradeResponse.toObject = function toObject() { return {}; }; /** - * Converts this VersionStringRequest to JSON. + * Converts this RunMysqlUpgradeResponse to JSON. * @function toJSON - * @memberof mysqlctl.VersionStringRequest + * @memberof mysqlctl.RunMysqlUpgradeResponse * @instance * @returns {Object.} JSON object */ - VersionStringRequest.prototype.toJSON = function toJSON() { + RunMysqlUpgradeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VersionStringRequest + * Gets the default type url for RunMysqlUpgradeResponse * @function getTypeUrl - * @memberof mysqlctl.VersionStringRequest + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VersionStringRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RunMysqlUpgradeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.VersionStringRequest"; + return typeUrlPrefix + "/mysqlctl.RunMysqlUpgradeResponse"; }; - return VersionStringRequest; + return RunMysqlUpgradeResponse; })(); - mysqlctl.VersionStringResponse = (function() { + mysqlctl.ApplyBinlogFileRequest = (function() { /** - * Properties of a VersionStringResponse. + * Properties of an ApplyBinlogFileRequest. * @memberof mysqlctl - * @interface IVersionStringResponse - * @property {string|null} [version] VersionStringResponse version + * @interface IApplyBinlogFileRequest + * @property {string|null} [binlog_file_name] ApplyBinlogFileRequest binlog_file_name + * @property {string|null} [binlog_restore_position] ApplyBinlogFileRequest binlog_restore_position + * @property {vttime.ITime|null} [binlog_restore_datetime] ApplyBinlogFileRequest binlog_restore_datetime */ /** - * Constructs a new VersionStringResponse. + * Constructs a new ApplyBinlogFileRequest. * @memberof mysqlctl - * @classdesc Represents a VersionStringResponse. - * @implements IVersionStringResponse + * @classdesc Represents an ApplyBinlogFileRequest. + * @implements IApplyBinlogFileRequest * @constructor - * @param {mysqlctl.IVersionStringResponse=} [properties] Properties to set + * @param {mysqlctl.IApplyBinlogFileRequest=} [properties] Properties to set */ - function VersionStringResponse(properties) { + function ApplyBinlogFileRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39614,75 +40194,103 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * VersionStringResponse version. - * @member {string} version - * @memberof mysqlctl.VersionStringResponse + * ApplyBinlogFileRequest binlog_file_name. + * @member {string} binlog_file_name + * @memberof mysqlctl.ApplyBinlogFileRequest * @instance */ - VersionStringResponse.prototype.version = ""; + ApplyBinlogFileRequest.prototype.binlog_file_name = ""; /** - * Creates a new VersionStringResponse instance using the specified properties. + * ApplyBinlogFileRequest binlog_restore_position. + * @member {string} binlog_restore_position + * @memberof mysqlctl.ApplyBinlogFileRequest + * @instance + */ + ApplyBinlogFileRequest.prototype.binlog_restore_position = ""; + + /** + * ApplyBinlogFileRequest binlog_restore_datetime. + * @member {vttime.ITime|null|undefined} binlog_restore_datetime + * @memberof mysqlctl.ApplyBinlogFileRequest + * @instance + */ + ApplyBinlogFileRequest.prototype.binlog_restore_datetime = null; + + /** + * Creates a new ApplyBinlogFileRequest instance using the specified properties. * @function create - * @memberof mysqlctl.VersionStringResponse + * @memberof mysqlctl.ApplyBinlogFileRequest * @static - * @param {mysqlctl.IVersionStringResponse=} [properties] Properties to set - * @returns {mysqlctl.VersionStringResponse} VersionStringResponse instance + * @param {mysqlctl.IApplyBinlogFileRequest=} [properties] Properties to set + * @returns {mysqlctl.ApplyBinlogFileRequest} ApplyBinlogFileRequest instance */ - VersionStringResponse.create = function create(properties) { - return new VersionStringResponse(properties); + ApplyBinlogFileRequest.create = function create(properties) { + return new ApplyBinlogFileRequest(properties); }; /** - * Encodes the specified VersionStringResponse message. Does not implicitly {@link mysqlctl.VersionStringResponse.verify|verify} messages. + * Encodes the specified ApplyBinlogFileRequest message. Does not implicitly {@link mysqlctl.ApplyBinlogFileRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.VersionStringResponse + * @memberof mysqlctl.ApplyBinlogFileRequest * @static - * @param {mysqlctl.IVersionStringResponse} message VersionStringResponse message or plain object to encode + * @param {mysqlctl.IApplyBinlogFileRequest} message ApplyBinlogFileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VersionStringResponse.encode = function encode(message, writer) { + ApplyBinlogFileRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.binlog_file_name != null && Object.hasOwnProperty.call(message, "binlog_file_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.binlog_file_name); + if (message.binlog_restore_position != null && Object.hasOwnProperty.call(message, "binlog_restore_position")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.binlog_restore_position); + if (message.binlog_restore_datetime != null && Object.hasOwnProperty.call(message, "binlog_restore_datetime")) + $root.vttime.Time.encode(message.binlog_restore_datetime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified VersionStringResponse message, length delimited. Does not implicitly {@link mysqlctl.VersionStringResponse.verify|verify} messages. + * Encodes the specified ApplyBinlogFileRequest message, length delimited. Does not implicitly {@link mysqlctl.ApplyBinlogFileRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.VersionStringResponse + * @memberof mysqlctl.ApplyBinlogFileRequest * @static - * @param {mysqlctl.IVersionStringResponse} message VersionStringResponse message or plain object to encode + * @param {mysqlctl.IApplyBinlogFileRequest} message ApplyBinlogFileRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VersionStringResponse.encodeDelimited = function encodeDelimited(message, writer) { + ApplyBinlogFileRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VersionStringResponse message from the specified reader or buffer. + * Decodes an ApplyBinlogFileRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.VersionStringResponse + * @memberof mysqlctl.ApplyBinlogFileRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.VersionStringResponse} VersionStringResponse + * @returns {mysqlctl.ApplyBinlogFileRequest} ApplyBinlogFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VersionStringResponse.decode = function decode(reader, length) { + ApplyBinlogFileRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.VersionStringResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ApplyBinlogFileRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.version = reader.string(); + message.binlog_file_name = reader.string(); + break; + } + case 2: { + message.binlog_restore_position = reader.string(); + break; + } + case 3: { + message.binlog_restore_datetime = $root.vttime.Time.decode(reader, reader.uint32()); break; } default: @@ -39694,121 +40302,143 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a VersionStringResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplyBinlogFileRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.VersionStringResponse + * @memberof mysqlctl.ApplyBinlogFileRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.VersionStringResponse} VersionStringResponse + * @returns {mysqlctl.ApplyBinlogFileRequest} ApplyBinlogFileRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VersionStringResponse.decodeDelimited = function decodeDelimited(reader) { + ApplyBinlogFileRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VersionStringResponse message. + * Verifies an ApplyBinlogFileRequest message. * @function verify - * @memberof mysqlctl.VersionStringResponse + * @memberof mysqlctl.ApplyBinlogFileRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VersionStringResponse.verify = function verify(message) { + ApplyBinlogFileRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + if (message.binlog_file_name != null && message.hasOwnProperty("binlog_file_name")) + if (!$util.isString(message.binlog_file_name)) + return "binlog_file_name: string expected"; + if (message.binlog_restore_position != null && message.hasOwnProperty("binlog_restore_position")) + if (!$util.isString(message.binlog_restore_position)) + return "binlog_restore_position: string expected"; + if (message.binlog_restore_datetime != null && message.hasOwnProperty("binlog_restore_datetime")) { + let error = $root.vttime.Time.verify(message.binlog_restore_datetime); + if (error) + return "binlog_restore_datetime." + error; + } return null; }; /** - * Creates a VersionStringResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyBinlogFileRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.VersionStringResponse + * @memberof mysqlctl.ApplyBinlogFileRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.VersionStringResponse} VersionStringResponse + * @returns {mysqlctl.ApplyBinlogFileRequest} ApplyBinlogFileRequest */ - VersionStringResponse.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.VersionStringResponse) + ApplyBinlogFileRequest.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.ApplyBinlogFileRequest) return object; - let message = new $root.mysqlctl.VersionStringResponse(); - if (object.version != null) - message.version = String(object.version); + let message = new $root.mysqlctl.ApplyBinlogFileRequest(); + if (object.binlog_file_name != null) + message.binlog_file_name = String(object.binlog_file_name); + if (object.binlog_restore_position != null) + message.binlog_restore_position = String(object.binlog_restore_position); + if (object.binlog_restore_datetime != null) { + if (typeof object.binlog_restore_datetime !== "object") + throw TypeError(".mysqlctl.ApplyBinlogFileRequest.binlog_restore_datetime: object expected"); + message.binlog_restore_datetime = $root.vttime.Time.fromObject(object.binlog_restore_datetime); + } return message; }; /** - * Creates a plain object from a VersionStringResponse message. Also converts values to other types if specified. + * Creates a plain object from an ApplyBinlogFileRequest message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.VersionStringResponse + * @memberof mysqlctl.ApplyBinlogFileRequest * @static - * @param {mysqlctl.VersionStringResponse} message VersionStringResponse + * @param {mysqlctl.ApplyBinlogFileRequest} message ApplyBinlogFileRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VersionStringResponse.toObject = function toObject(message, options) { + ApplyBinlogFileRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.version = ""; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (options.defaults) { + object.binlog_file_name = ""; + object.binlog_restore_position = ""; + object.binlog_restore_datetime = null; + } + if (message.binlog_file_name != null && message.hasOwnProperty("binlog_file_name")) + object.binlog_file_name = message.binlog_file_name; + if (message.binlog_restore_position != null && message.hasOwnProperty("binlog_restore_position")) + object.binlog_restore_position = message.binlog_restore_position; + if (message.binlog_restore_datetime != null && message.hasOwnProperty("binlog_restore_datetime")) + object.binlog_restore_datetime = $root.vttime.Time.toObject(message.binlog_restore_datetime, options); return object; }; /** - * Converts this VersionStringResponse to JSON. + * Converts this ApplyBinlogFileRequest to JSON. * @function toJSON - * @memberof mysqlctl.VersionStringResponse + * @memberof mysqlctl.ApplyBinlogFileRequest * @instance * @returns {Object.} JSON object */ - VersionStringResponse.prototype.toJSON = function toJSON() { + ApplyBinlogFileRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VersionStringResponse + * Gets the default type url for ApplyBinlogFileRequest * @function getTypeUrl - * @memberof mysqlctl.VersionStringResponse + * @memberof mysqlctl.ApplyBinlogFileRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VersionStringResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ApplyBinlogFileRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.VersionStringResponse"; + return typeUrlPrefix + "/mysqlctl.ApplyBinlogFileRequest"; }; - return VersionStringResponse; + return ApplyBinlogFileRequest; })(); - mysqlctl.HostMetricsRequest = (function() { + mysqlctl.ApplyBinlogFileResponse = (function() { /** - * Properties of a HostMetricsRequest. + * Properties of an ApplyBinlogFileResponse. * @memberof mysqlctl - * @interface IHostMetricsRequest + * @interface IApplyBinlogFileResponse */ /** - * Constructs a new HostMetricsRequest. + * Constructs a new ApplyBinlogFileResponse. * @memberof mysqlctl - * @classdesc Represents a HostMetricsRequest. - * @implements IHostMetricsRequest + * @classdesc Represents an ApplyBinlogFileResponse. + * @implements IApplyBinlogFileResponse * @constructor - * @param {mysqlctl.IHostMetricsRequest=} [properties] Properties to set + * @param {mysqlctl.IApplyBinlogFileResponse=} [properties] Properties to set */ - function HostMetricsRequest(properties) { + function ApplyBinlogFileResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39816,60 +40446,60 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * Creates a new HostMetricsRequest instance using the specified properties. + * Creates a new ApplyBinlogFileResponse instance using the specified properties. * @function create - * @memberof mysqlctl.HostMetricsRequest + * @memberof mysqlctl.ApplyBinlogFileResponse * @static - * @param {mysqlctl.IHostMetricsRequest=} [properties] Properties to set - * @returns {mysqlctl.HostMetricsRequest} HostMetricsRequest instance + * @param {mysqlctl.IApplyBinlogFileResponse=} [properties] Properties to set + * @returns {mysqlctl.ApplyBinlogFileResponse} ApplyBinlogFileResponse instance */ - HostMetricsRequest.create = function create(properties) { - return new HostMetricsRequest(properties); + ApplyBinlogFileResponse.create = function create(properties) { + return new ApplyBinlogFileResponse(properties); }; /** - * Encodes the specified HostMetricsRequest message. Does not implicitly {@link mysqlctl.HostMetricsRequest.verify|verify} messages. + * Encodes the specified ApplyBinlogFileResponse message. Does not implicitly {@link mysqlctl.ApplyBinlogFileResponse.verify|verify} messages. * @function encode - * @memberof mysqlctl.HostMetricsRequest + * @memberof mysqlctl.ApplyBinlogFileResponse * @static - * @param {mysqlctl.IHostMetricsRequest} message HostMetricsRequest message or plain object to encode + * @param {mysqlctl.IApplyBinlogFileResponse} message ApplyBinlogFileResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HostMetricsRequest.encode = function encode(message, writer) { + ApplyBinlogFileResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified HostMetricsRequest message, length delimited. Does not implicitly {@link mysqlctl.HostMetricsRequest.verify|verify} messages. + * Encodes the specified ApplyBinlogFileResponse message, length delimited. Does not implicitly {@link mysqlctl.ApplyBinlogFileResponse.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.HostMetricsRequest + * @memberof mysqlctl.ApplyBinlogFileResponse * @static - * @param {mysqlctl.IHostMetricsRequest} message HostMetricsRequest message or plain object to encode + * @param {mysqlctl.IApplyBinlogFileResponse} message ApplyBinlogFileResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HostMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplyBinlogFileResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HostMetricsRequest message from the specified reader or buffer. + * Decodes an ApplyBinlogFileResponse message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.HostMetricsRequest + * @memberof mysqlctl.ApplyBinlogFileResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.HostMetricsRequest} HostMetricsRequest + * @returns {mysqlctl.ApplyBinlogFileResponse} ApplyBinlogFileResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HostMetricsRequest.decode = function decode(reader, length) { + ApplyBinlogFileResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.HostMetricsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ApplyBinlogFileResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -39882,110 +40512,110 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a HostMetricsRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplyBinlogFileResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.HostMetricsRequest + * @memberof mysqlctl.ApplyBinlogFileResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.HostMetricsRequest} HostMetricsRequest + * @returns {mysqlctl.ApplyBinlogFileResponse} ApplyBinlogFileResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HostMetricsRequest.decodeDelimited = function decodeDelimited(reader) { + ApplyBinlogFileResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HostMetricsRequest message. + * Verifies an ApplyBinlogFileResponse message. * @function verify - * @memberof mysqlctl.HostMetricsRequest + * @memberof mysqlctl.ApplyBinlogFileResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HostMetricsRequest.verify = function verify(message) { + ApplyBinlogFileResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a HostMetricsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyBinlogFileResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.HostMetricsRequest + * @memberof mysqlctl.ApplyBinlogFileResponse * @static * @param {Object.} object Plain object - * @returns {mysqlctl.HostMetricsRequest} HostMetricsRequest + * @returns {mysqlctl.ApplyBinlogFileResponse} ApplyBinlogFileResponse */ - HostMetricsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.HostMetricsRequest) + ApplyBinlogFileResponse.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.ApplyBinlogFileResponse) return object; - return new $root.mysqlctl.HostMetricsRequest(); + return new $root.mysqlctl.ApplyBinlogFileResponse(); }; /** - * Creates a plain object from a HostMetricsRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApplyBinlogFileResponse message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.HostMetricsRequest + * @memberof mysqlctl.ApplyBinlogFileResponse * @static - * @param {mysqlctl.HostMetricsRequest} message HostMetricsRequest + * @param {mysqlctl.ApplyBinlogFileResponse} message ApplyBinlogFileResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HostMetricsRequest.toObject = function toObject() { + ApplyBinlogFileResponse.toObject = function toObject() { return {}; }; /** - * Converts this HostMetricsRequest to JSON. + * Converts this ApplyBinlogFileResponse to JSON. * @function toJSON - * @memberof mysqlctl.HostMetricsRequest + * @memberof mysqlctl.ApplyBinlogFileResponse * @instance * @returns {Object.} JSON object */ - HostMetricsRequest.prototype.toJSON = function toJSON() { + ApplyBinlogFileResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HostMetricsRequest + * Gets the default type url for ApplyBinlogFileResponse * @function getTypeUrl - * @memberof mysqlctl.HostMetricsRequest + * @memberof mysqlctl.ApplyBinlogFileResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HostMetricsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ApplyBinlogFileResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.HostMetricsRequest"; + return typeUrlPrefix + "/mysqlctl.ApplyBinlogFileResponse"; }; - return HostMetricsRequest; + return ApplyBinlogFileResponse; })(); - mysqlctl.HostMetricsResponse = (function() { + mysqlctl.ReadBinlogFilesTimestampsRequest = (function() { /** - * Properties of a HostMetricsResponse. + * Properties of a ReadBinlogFilesTimestampsRequest. * @memberof mysqlctl - * @interface IHostMetricsResponse - * @property {Object.|null} [metrics] HostMetricsResponse metrics + * @interface IReadBinlogFilesTimestampsRequest + * @property {Array.|null} [binlog_file_names] ReadBinlogFilesTimestampsRequest binlog_file_names */ /** - * Constructs a new HostMetricsResponse. + * Constructs a new ReadBinlogFilesTimestampsRequest. * @memberof mysqlctl - * @classdesc Represents a HostMetricsResponse. - * @implements IHostMetricsResponse + * @classdesc Represents a ReadBinlogFilesTimestampsRequest. + * @implements IReadBinlogFilesTimestampsRequest * @constructor - * @param {mysqlctl.IHostMetricsResponse=} [properties] Properties to set + * @param {mysqlctl.IReadBinlogFilesTimestampsRequest=} [properties] Properties to set */ - function HostMetricsResponse(properties) { - this.metrics = {}; + function ReadBinlogFilesTimestampsRequest(properties) { + this.binlog_file_names = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39993,97 +40623,78 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * HostMetricsResponse metrics. - * @member {Object.} metrics - * @memberof mysqlctl.HostMetricsResponse + * ReadBinlogFilesTimestampsRequest binlog_file_names. + * @member {Array.} binlog_file_names + * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest * @instance */ - HostMetricsResponse.prototype.metrics = $util.emptyObject; + ReadBinlogFilesTimestampsRequest.prototype.binlog_file_names = $util.emptyArray; /** - * Creates a new HostMetricsResponse instance using the specified properties. + * Creates a new ReadBinlogFilesTimestampsRequest instance using the specified properties. * @function create - * @memberof mysqlctl.HostMetricsResponse + * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest * @static - * @param {mysqlctl.IHostMetricsResponse=} [properties] Properties to set - * @returns {mysqlctl.HostMetricsResponse} HostMetricsResponse instance + * @param {mysqlctl.IReadBinlogFilesTimestampsRequest=} [properties] Properties to set + * @returns {mysqlctl.ReadBinlogFilesTimestampsRequest} ReadBinlogFilesTimestampsRequest instance */ - HostMetricsResponse.create = function create(properties) { - return new HostMetricsResponse(properties); + ReadBinlogFilesTimestampsRequest.create = function create(properties) { + return new ReadBinlogFilesTimestampsRequest(properties); }; /** - * Encodes the specified HostMetricsResponse message. Does not implicitly {@link mysqlctl.HostMetricsResponse.verify|verify} messages. + * Encodes the specified ReadBinlogFilesTimestampsRequest message. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.HostMetricsResponse + * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest * @static - * @param {mysqlctl.IHostMetricsResponse} message HostMetricsResponse message or plain object to encode + * @param {mysqlctl.IReadBinlogFilesTimestampsRequest} message ReadBinlogFilesTimestampsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HostMetricsResponse.encode = function encode(message, writer) { + ReadBinlogFilesTimestampsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) - for (let keys = Object.keys(message.metrics), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.mysqlctl.HostMetricsResponse.Metric.encode(message.metrics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.binlog_file_names != null && message.binlog_file_names.length) + for (let i = 0; i < message.binlog_file_names.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.binlog_file_names[i]); return writer; }; /** - * Encodes the specified HostMetricsResponse message, length delimited. Does not implicitly {@link mysqlctl.HostMetricsResponse.verify|verify} messages. + * Encodes the specified ReadBinlogFilesTimestampsRequest message, length delimited. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.HostMetricsResponse + * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest * @static - * @param {mysqlctl.IHostMetricsResponse} message HostMetricsResponse message or plain object to encode + * @param {mysqlctl.IReadBinlogFilesTimestampsRequest} message ReadBinlogFilesTimestampsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HostMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReadBinlogFilesTimestampsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HostMetricsResponse message from the specified reader or buffer. + * Decodes a ReadBinlogFilesTimestampsRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.HostMetricsResponse + * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.HostMetricsResponse} HostMetricsResponse + * @returns {mysqlctl.ReadBinlogFilesTimestampsRequest} ReadBinlogFilesTimestampsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HostMetricsResponse.decode = function decode(reader, length) { + ReadBinlogFilesTimestampsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.HostMetricsResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ReadBinlogFilesTimestampsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.metrics === $util.emptyObject) - message.metrics = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.mysqlctl.HostMetricsResponse.Metric.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.metrics[key] = value; + if (!(message.binlog_file_names && message.binlog_file_names.length)) + message.binlog_file_names = []; + message.binlog_file_names.push(reader.string()); break; } default: @@ -40095,735 +40706,137 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a HostMetricsResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadBinlogFilesTimestampsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.HostMetricsResponse + * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.HostMetricsResponse} HostMetricsResponse + * @returns {mysqlctl.ReadBinlogFilesTimestampsRequest} ReadBinlogFilesTimestampsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HostMetricsResponse.decodeDelimited = function decodeDelimited(reader) { + ReadBinlogFilesTimestampsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HostMetricsResponse message. + * Verifies a ReadBinlogFilesTimestampsRequest message. * @function verify - * @memberof mysqlctl.HostMetricsResponse + * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HostMetricsResponse.verify = function verify(message) { + ReadBinlogFilesTimestampsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - if (!$util.isObject(message.metrics)) - return "metrics: object expected"; - let key = Object.keys(message.metrics); - for (let i = 0; i < key.length; ++i) { - let error = $root.mysqlctl.HostMetricsResponse.Metric.verify(message.metrics[key[i]]); - if (error) - return "metrics." + error; - } + if (message.binlog_file_names != null && message.hasOwnProperty("binlog_file_names")) { + if (!Array.isArray(message.binlog_file_names)) + return "binlog_file_names: array expected"; + for (let i = 0; i < message.binlog_file_names.length; ++i) + if (!$util.isString(message.binlog_file_names[i])) + return "binlog_file_names: string[] expected"; } return null; }; /** - * Creates a HostMetricsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadBinlogFilesTimestampsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.HostMetricsResponse + * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.HostMetricsResponse} HostMetricsResponse + * @returns {mysqlctl.ReadBinlogFilesTimestampsRequest} ReadBinlogFilesTimestampsRequest */ - HostMetricsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.HostMetricsResponse) + ReadBinlogFilesTimestampsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.ReadBinlogFilesTimestampsRequest) return object; - let message = new $root.mysqlctl.HostMetricsResponse(); - if (object.metrics) { - if (typeof object.metrics !== "object") - throw TypeError(".mysqlctl.HostMetricsResponse.metrics: object expected"); - message.metrics = {}; - for (let keys = Object.keys(object.metrics), i = 0; i < keys.length; ++i) { - if (typeof object.metrics[keys[i]] !== "object") - throw TypeError(".mysqlctl.HostMetricsResponse.metrics: object expected"); - message.metrics[keys[i]] = $root.mysqlctl.HostMetricsResponse.Metric.fromObject(object.metrics[keys[i]]); - } + let message = new $root.mysqlctl.ReadBinlogFilesTimestampsRequest(); + if (object.binlog_file_names) { + if (!Array.isArray(object.binlog_file_names)) + throw TypeError(".mysqlctl.ReadBinlogFilesTimestampsRequest.binlog_file_names: array expected"); + message.binlog_file_names = []; + for (let i = 0; i < object.binlog_file_names.length; ++i) + message.binlog_file_names[i] = String(object.binlog_file_names[i]); } return message; }; /** - * Creates a plain object from a HostMetricsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReadBinlogFilesTimestampsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.HostMetricsResponse + * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest * @static - * @param {mysqlctl.HostMetricsResponse} message HostMetricsResponse + * @param {mysqlctl.ReadBinlogFilesTimestampsRequest} message ReadBinlogFilesTimestampsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HostMetricsResponse.toObject = function toObject(message, options) { + ReadBinlogFilesTimestampsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.metrics = {}; - let keys2; - if (message.metrics && (keys2 = Object.keys(message.metrics)).length) { - object.metrics = {}; - for (let j = 0; j < keys2.length; ++j) - object.metrics[keys2[j]] = $root.mysqlctl.HostMetricsResponse.Metric.toObject(message.metrics[keys2[j]], options); + if (options.arrays || options.defaults) + object.binlog_file_names = []; + if (message.binlog_file_names && message.binlog_file_names.length) { + object.binlog_file_names = []; + for (let j = 0; j < message.binlog_file_names.length; ++j) + object.binlog_file_names[j] = message.binlog_file_names[j]; } return object; }; /** - * Converts this HostMetricsResponse to JSON. + * Converts this ReadBinlogFilesTimestampsRequest to JSON. * @function toJSON - * @memberof mysqlctl.HostMetricsResponse + * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest * @instance * @returns {Object.} JSON object */ - HostMetricsResponse.prototype.toJSON = function toJSON() { + ReadBinlogFilesTimestampsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HostMetricsResponse + * Gets the default type url for ReadBinlogFilesTimestampsRequest * @function getTypeUrl - * @memberof mysqlctl.HostMetricsResponse + * @memberof mysqlctl.ReadBinlogFilesTimestampsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HostMetricsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadBinlogFilesTimestampsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.HostMetricsResponse"; - }; - - HostMetricsResponse.Metric = (function() { - - /** - * Properties of a Metric. - * @memberof mysqlctl.HostMetricsResponse - * @interface IMetric - * @property {string|null} [name] Metric name - * @property {number|null} [value] Metric value - * @property {vtrpc.IRPCError|null} [error] Metric error - */ - - /** - * Constructs a new Metric. - * @memberof mysqlctl.HostMetricsResponse - * @classdesc Represents a Metric. - * @implements IMetric - * @constructor - * @param {mysqlctl.HostMetricsResponse.IMetric=} [properties] Properties to set - */ - function Metric(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Metric name. - * @member {string} name - * @memberof mysqlctl.HostMetricsResponse.Metric - * @instance - */ - Metric.prototype.name = ""; - - /** - * Metric value. - * @member {number} value - * @memberof mysqlctl.HostMetricsResponse.Metric - * @instance - */ - Metric.prototype.value = 0; - - /** - * Metric error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof mysqlctl.HostMetricsResponse.Metric - * @instance - */ - Metric.prototype.error = null; - - /** - * Creates a new Metric instance using the specified properties. - * @function create - * @memberof mysqlctl.HostMetricsResponse.Metric - * @static - * @param {mysqlctl.HostMetricsResponse.IMetric=} [properties] Properties to set - * @returns {mysqlctl.HostMetricsResponse.Metric} Metric instance - */ - Metric.create = function create(properties) { - return new Metric(properties); - }; - - /** - * Encodes the specified Metric message. Does not implicitly {@link mysqlctl.HostMetricsResponse.Metric.verify|verify} messages. - * @function encode - * @memberof mysqlctl.HostMetricsResponse.Metric - * @static - * @param {mysqlctl.HostMetricsResponse.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.value); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link mysqlctl.HostMetricsResponse.Metric.verify|verify} messages. - * @function encodeDelimited - * @memberof mysqlctl.HostMetricsResponse.Metric - * @static - * @param {mysqlctl.HostMetricsResponse.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Metric message from the specified reader or buffer. - * @function decode - * @memberof mysqlctl.HostMetricsResponse.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.HostMetricsResponse.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.HostMetricsResponse.Metric(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.value = reader.double(); - break; - } - case 3: { - message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof mysqlctl.HostMetricsResponse.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.HostMetricsResponse.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Metric message. - * @function verify - * @memberof mysqlctl.HostMetricsResponse.Metric - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metric.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - if (message.error != null && message.hasOwnProperty("error")) { - let error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } - return null; - }; - - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof mysqlctl.HostMetricsResponse.Metric - * @static - * @param {Object.} object Plain object - * @returns {mysqlctl.HostMetricsResponse.Metric} Metric - */ - Metric.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.HostMetricsResponse.Metric) - return object; - let message = new $root.mysqlctl.HostMetricsResponse.Metric(); - if (object.name != null) - message.name = String(object.name); - if (object.value != null) - message.value = Number(object.value); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".mysqlctl.HostMetricsResponse.Metric.error: object expected"); - message.error = $root.vtrpc.RPCError.fromObject(object.error); - } - return message; - }; - - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @function toObject - * @memberof mysqlctl.HostMetricsResponse.Metric - * @static - * @param {mysqlctl.HostMetricsResponse.Metric} message Metric - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metric.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.name = ""; - object.value = 0; - object.error = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.vtrpc.RPCError.toObject(message.error, options); - return object; - }; - - /** - * Converts this Metric to JSON. - * @function toJSON - * @memberof mysqlctl.HostMetricsResponse.Metric - * @instance - * @returns {Object.} JSON object - */ - Metric.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Metric - * @function getTypeUrl - * @memberof mysqlctl.HostMetricsResponse.Metric - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/mysqlctl.HostMetricsResponse.Metric"; - }; - - return Metric; - })(); - - return HostMetricsResponse; - })(); - - mysqlctl.MysqlCtl = (function() { - - /** - * Constructs a new MysqlCtl service. - * @memberof mysqlctl - * @classdesc Represents a MysqlCtl - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function MysqlCtl(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (MysqlCtl.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MysqlCtl; - - /** - * Creates new MysqlCtl service using the specified rpc implementation. - * @function create - * @memberof mysqlctl.MysqlCtl - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {MysqlCtl} RPC service. Useful where requests and/or responses are streamed. - */ - MysqlCtl.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + return typeUrlPrefix + "/mysqlctl.ReadBinlogFilesTimestampsRequest"; }; - /** - * Callback as used by {@link mysqlctl.MysqlCtl#start}. - * @memberof mysqlctl.MysqlCtl - * @typedef StartCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {mysqlctl.StartResponse} [response] StartResponse - */ - - /** - * Calls Start. - * @function start - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IStartRequest} request StartRequest message or plain object - * @param {mysqlctl.MysqlCtl.StartCallback} callback Node-style callback called with the error, if any, and StartResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MysqlCtl.prototype.start = function start(request, callback) { - return this.rpcCall(start, $root.mysqlctl.StartRequest, $root.mysqlctl.StartResponse, request, callback); - }, "name", { value: "Start" }); - - /** - * Calls Start. - * @function start - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IStartRequest} request StartRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link mysqlctl.MysqlCtl#shutdown}. - * @memberof mysqlctl.MysqlCtl - * @typedef ShutdownCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {mysqlctl.ShutdownResponse} [response] ShutdownResponse - */ - - /** - * Calls Shutdown. - * @function shutdown - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IShutdownRequest} request ShutdownRequest message or plain object - * @param {mysqlctl.MysqlCtl.ShutdownCallback} callback Node-style callback called with the error, if any, and ShutdownResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MysqlCtl.prototype.shutdown = function shutdown(request, callback) { - return this.rpcCall(shutdown, $root.mysqlctl.ShutdownRequest, $root.mysqlctl.ShutdownResponse, request, callback); - }, "name", { value: "Shutdown" }); - - /** - * Calls Shutdown. - * @function shutdown - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IShutdownRequest} request ShutdownRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link mysqlctl.MysqlCtl#runMysqlUpgrade}. - * @memberof mysqlctl.MysqlCtl - * @typedef RunMysqlUpgradeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {mysqlctl.RunMysqlUpgradeResponse} [response] RunMysqlUpgradeResponse - */ - - /** - * Calls RunMysqlUpgrade. - * @function runMysqlUpgrade - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IRunMysqlUpgradeRequest} request RunMysqlUpgradeRequest message or plain object - * @param {mysqlctl.MysqlCtl.RunMysqlUpgradeCallback} callback Node-style callback called with the error, if any, and RunMysqlUpgradeResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MysqlCtl.prototype.runMysqlUpgrade = function runMysqlUpgrade(request, callback) { - return this.rpcCall(runMysqlUpgrade, $root.mysqlctl.RunMysqlUpgradeRequest, $root.mysqlctl.RunMysqlUpgradeResponse, request, callback); - }, "name", { value: "RunMysqlUpgrade" }); - - /** - * Calls RunMysqlUpgrade. - * @function runMysqlUpgrade - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IRunMysqlUpgradeRequest} request RunMysqlUpgradeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link mysqlctl.MysqlCtl#applyBinlogFile}. - * @memberof mysqlctl.MysqlCtl - * @typedef ApplyBinlogFileCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {mysqlctl.ApplyBinlogFileResponse} [response] ApplyBinlogFileResponse - */ - - /** - * Calls ApplyBinlogFile. - * @function applyBinlogFile - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IApplyBinlogFileRequest} request ApplyBinlogFileRequest message or plain object - * @param {mysqlctl.MysqlCtl.ApplyBinlogFileCallback} callback Node-style callback called with the error, if any, and ApplyBinlogFileResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MysqlCtl.prototype.applyBinlogFile = function applyBinlogFile(request, callback) { - return this.rpcCall(applyBinlogFile, $root.mysqlctl.ApplyBinlogFileRequest, $root.mysqlctl.ApplyBinlogFileResponse, request, callback); - }, "name", { value: "ApplyBinlogFile" }); - - /** - * Calls ApplyBinlogFile. - * @function applyBinlogFile - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IApplyBinlogFileRequest} request ApplyBinlogFileRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link mysqlctl.MysqlCtl#readBinlogFilesTimestamps}. - * @memberof mysqlctl.MysqlCtl - * @typedef ReadBinlogFilesTimestampsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {mysqlctl.ReadBinlogFilesTimestampsResponse} [response] ReadBinlogFilesTimestampsResponse - */ - - /** - * Calls ReadBinlogFilesTimestamps. - * @function readBinlogFilesTimestamps - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IReadBinlogFilesTimestampsRequest} request ReadBinlogFilesTimestampsRequest message or plain object - * @param {mysqlctl.MysqlCtl.ReadBinlogFilesTimestampsCallback} callback Node-style callback called with the error, if any, and ReadBinlogFilesTimestampsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MysqlCtl.prototype.readBinlogFilesTimestamps = function readBinlogFilesTimestamps(request, callback) { - return this.rpcCall(readBinlogFilesTimestamps, $root.mysqlctl.ReadBinlogFilesTimestampsRequest, $root.mysqlctl.ReadBinlogFilesTimestampsResponse, request, callback); - }, "name", { value: "ReadBinlogFilesTimestamps" }); - - /** - * Calls ReadBinlogFilesTimestamps. - * @function readBinlogFilesTimestamps - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IReadBinlogFilesTimestampsRequest} request ReadBinlogFilesTimestampsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link mysqlctl.MysqlCtl#reinitConfig}. - * @memberof mysqlctl.MysqlCtl - * @typedef ReinitConfigCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {mysqlctl.ReinitConfigResponse} [response] ReinitConfigResponse - */ - - /** - * Calls ReinitConfig. - * @function reinitConfig - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IReinitConfigRequest} request ReinitConfigRequest message or plain object - * @param {mysqlctl.MysqlCtl.ReinitConfigCallback} callback Node-style callback called with the error, if any, and ReinitConfigResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MysqlCtl.prototype.reinitConfig = function reinitConfig(request, callback) { - return this.rpcCall(reinitConfig, $root.mysqlctl.ReinitConfigRequest, $root.mysqlctl.ReinitConfigResponse, request, callback); - }, "name", { value: "ReinitConfig" }); - - /** - * Calls ReinitConfig. - * @function reinitConfig - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IReinitConfigRequest} request ReinitConfigRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link mysqlctl.MysqlCtl#refreshConfig}. - * @memberof mysqlctl.MysqlCtl - * @typedef RefreshConfigCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {mysqlctl.RefreshConfigResponse} [response] RefreshConfigResponse - */ - - /** - * Calls RefreshConfig. - * @function refreshConfig - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IRefreshConfigRequest} request RefreshConfigRequest message or plain object - * @param {mysqlctl.MysqlCtl.RefreshConfigCallback} callback Node-style callback called with the error, if any, and RefreshConfigResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MysqlCtl.prototype.refreshConfig = function refreshConfig(request, callback) { - return this.rpcCall(refreshConfig, $root.mysqlctl.RefreshConfigRequest, $root.mysqlctl.RefreshConfigResponse, request, callback); - }, "name", { value: "RefreshConfig" }); - - /** - * Calls RefreshConfig. - * @function refreshConfig - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IRefreshConfigRequest} request RefreshConfigRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link mysqlctl.MysqlCtl#versionString}. - * @memberof mysqlctl.MysqlCtl - * @typedef VersionStringCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {mysqlctl.VersionStringResponse} [response] VersionStringResponse - */ - - /** - * Calls VersionString. - * @function versionString - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IVersionStringRequest} request VersionStringRequest message or plain object - * @param {mysqlctl.MysqlCtl.VersionStringCallback} callback Node-style callback called with the error, if any, and VersionStringResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MysqlCtl.prototype.versionString = function versionString(request, callback) { - return this.rpcCall(versionString, $root.mysqlctl.VersionStringRequest, $root.mysqlctl.VersionStringResponse, request, callback); - }, "name", { value: "VersionString" }); - - /** - * Calls VersionString. - * @function versionString - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IVersionStringRequest} request VersionStringRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link mysqlctl.MysqlCtl#hostMetrics}. - * @memberof mysqlctl.MysqlCtl - * @typedef HostMetricsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {mysqlctl.HostMetricsResponse} [response] HostMetricsResponse - */ - - /** - * Calls HostMetrics. - * @function hostMetrics - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IHostMetricsRequest} request HostMetricsRequest message or plain object - * @param {mysqlctl.MysqlCtl.HostMetricsCallback} callback Node-style callback called with the error, if any, and HostMetricsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MysqlCtl.prototype.hostMetrics = function hostMetrics(request, callback) { - return this.rpcCall(hostMetrics, $root.mysqlctl.HostMetricsRequest, $root.mysqlctl.HostMetricsResponse, request, callback); - }, "name", { value: "HostMetrics" }); - - /** - * Calls HostMetrics. - * @function hostMetrics - * @memberof mysqlctl.MysqlCtl - * @instance - * @param {mysqlctl.IHostMetricsRequest} request HostMetricsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return MysqlCtl; + return ReadBinlogFilesTimestampsRequest; })(); - mysqlctl.BackupInfo = (function() { + mysqlctl.ReadBinlogFilesTimestampsResponse = (function() { /** - * Properties of a BackupInfo. + * Properties of a ReadBinlogFilesTimestampsResponse. * @memberof mysqlctl - * @interface IBackupInfo - * @property {string|null} [name] BackupInfo name - * @property {string|null} [directory] BackupInfo directory - * @property {string|null} [keyspace] BackupInfo keyspace - * @property {string|null} [shard] BackupInfo shard - * @property {topodata.ITabletAlias|null} [tablet_alias] BackupInfo tablet_alias - * @property {vttime.ITime|null} [time] BackupInfo time - * @property {string|null} [engine] BackupInfo engine - * @property {mysqlctl.BackupInfo.Status|null} [status] BackupInfo status + * @interface IReadBinlogFilesTimestampsResponse + * @property {vttime.ITime|null} [first_timestamp] ReadBinlogFilesTimestampsResponse first_timestamp + * @property {string|null} [first_timestamp_binlog] ReadBinlogFilesTimestampsResponse first_timestamp_binlog + * @property {vttime.ITime|null} [last_timestamp] ReadBinlogFilesTimestampsResponse last_timestamp + * @property {string|null} [last_timestamp_binlog] ReadBinlogFilesTimestampsResponse last_timestamp_binlog */ /** - * Constructs a new BackupInfo. + * Constructs a new ReadBinlogFilesTimestampsResponse. * @memberof mysqlctl - * @classdesc Represents a BackupInfo. - * @implements IBackupInfo + * @classdesc Represents a ReadBinlogFilesTimestampsResponse. + * @implements IReadBinlogFilesTimestampsResponse * @constructor - * @param {mysqlctl.IBackupInfo=} [properties] Properties to set + * @param {mysqlctl.IReadBinlogFilesTimestampsResponse=} [properties] Properties to set */ - function BackupInfo(properties) { + function ReadBinlogFilesTimestampsResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40831,173 +40844,117 @@ export const mysqlctl = $root.mysqlctl = (() => { } /** - * BackupInfo name. - * @member {string} name - * @memberof mysqlctl.BackupInfo - * @instance - */ - BackupInfo.prototype.name = ""; - - /** - * BackupInfo directory. - * @member {string} directory - * @memberof mysqlctl.BackupInfo - * @instance - */ - BackupInfo.prototype.directory = ""; - - /** - * BackupInfo keyspace. - * @member {string} keyspace - * @memberof mysqlctl.BackupInfo - * @instance - */ - BackupInfo.prototype.keyspace = ""; - - /** - * BackupInfo shard. - * @member {string} shard - * @memberof mysqlctl.BackupInfo - * @instance - */ - BackupInfo.prototype.shard = ""; - - /** - * BackupInfo tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof mysqlctl.BackupInfo + * ReadBinlogFilesTimestampsResponse first_timestamp. + * @member {vttime.ITime|null|undefined} first_timestamp + * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse * @instance */ - BackupInfo.prototype.tablet_alias = null; + ReadBinlogFilesTimestampsResponse.prototype.first_timestamp = null; /** - * BackupInfo time. - * @member {vttime.ITime|null|undefined} time - * @memberof mysqlctl.BackupInfo + * ReadBinlogFilesTimestampsResponse first_timestamp_binlog. + * @member {string} first_timestamp_binlog + * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse * @instance */ - BackupInfo.prototype.time = null; + ReadBinlogFilesTimestampsResponse.prototype.first_timestamp_binlog = ""; /** - * BackupInfo engine. - * @member {string} engine - * @memberof mysqlctl.BackupInfo + * ReadBinlogFilesTimestampsResponse last_timestamp. + * @member {vttime.ITime|null|undefined} last_timestamp + * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse * @instance */ - BackupInfo.prototype.engine = ""; + ReadBinlogFilesTimestampsResponse.prototype.last_timestamp = null; /** - * BackupInfo status. - * @member {mysqlctl.BackupInfo.Status} status - * @memberof mysqlctl.BackupInfo + * ReadBinlogFilesTimestampsResponse last_timestamp_binlog. + * @member {string} last_timestamp_binlog + * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse * @instance */ - BackupInfo.prototype.status = 0; + ReadBinlogFilesTimestampsResponse.prototype.last_timestamp_binlog = ""; /** - * Creates a new BackupInfo instance using the specified properties. + * Creates a new ReadBinlogFilesTimestampsResponse instance using the specified properties. * @function create - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse * @static - * @param {mysqlctl.IBackupInfo=} [properties] Properties to set - * @returns {mysqlctl.BackupInfo} BackupInfo instance + * @param {mysqlctl.IReadBinlogFilesTimestampsResponse=} [properties] Properties to set + * @returns {mysqlctl.ReadBinlogFilesTimestampsResponse} ReadBinlogFilesTimestampsResponse instance */ - BackupInfo.create = function create(properties) { - return new BackupInfo(properties); + ReadBinlogFilesTimestampsResponse.create = function create(properties) { + return new ReadBinlogFilesTimestampsResponse(properties); }; /** - * Encodes the specified BackupInfo message. Does not implicitly {@link mysqlctl.BackupInfo.verify|verify} messages. + * Encodes the specified ReadBinlogFilesTimestampsResponse message. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsResponse.verify|verify} messages. * @function encode - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse * @static - * @param {mysqlctl.IBackupInfo} message BackupInfo message or plain object to encode + * @param {mysqlctl.IReadBinlogFilesTimestampsResponse} message ReadBinlogFilesTimestampsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupInfo.encode = function encode(message, writer) { + ReadBinlogFilesTimestampsResponse.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.directory != null && Object.hasOwnProperty.call(message, "directory")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.directory); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.shard); - 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.time != null && Object.hasOwnProperty.call(message, "time")) - $root.vttime.Time.encode(message.time, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.engine != null && Object.hasOwnProperty.call(message, "engine")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.engine); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.status); + if (message.first_timestamp != null && Object.hasOwnProperty.call(message, "first_timestamp")) + $root.vttime.Time.encode(message.first_timestamp, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.first_timestamp_binlog != null && Object.hasOwnProperty.call(message, "first_timestamp_binlog")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.first_timestamp_binlog); + if (message.last_timestamp != null && Object.hasOwnProperty.call(message, "last_timestamp")) + $root.vttime.Time.encode(message.last_timestamp, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.last_timestamp_binlog != null && Object.hasOwnProperty.call(message, "last_timestamp_binlog")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.last_timestamp_binlog); return writer; }; /** - * Encodes the specified BackupInfo message, length delimited. Does not implicitly {@link mysqlctl.BackupInfo.verify|verify} messages. + * Encodes the specified ReadBinlogFilesTimestampsResponse message, length delimited. Does not implicitly {@link mysqlctl.ReadBinlogFilesTimestampsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse * @static - * @param {mysqlctl.IBackupInfo} message BackupInfo message or plain object to encode + * @param {mysqlctl.IReadBinlogFilesTimestampsResponse} message ReadBinlogFilesTimestampsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupInfo.encodeDelimited = function encodeDelimited(message, writer) { + ReadBinlogFilesTimestampsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupInfo message from the specified reader or buffer. + * Decodes a ReadBinlogFilesTimestampsResponse message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {mysqlctl.BackupInfo} BackupInfo + * @returns {mysqlctl.ReadBinlogFilesTimestampsResponse} ReadBinlogFilesTimestampsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupInfo.decode = function decode(reader, length) { + ReadBinlogFilesTimestampsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.BackupInfo(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ReadBinlogFilesTimestampsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.first_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); break; } case 2: { - message.directory = reader.string(); + message.first_timestamp_binlog = reader.string(); break; } case 3: { - message.keyspace = reader.string(); + message.last_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); break; } case 4: { - message.shard = reader.string(); - break; - } - case 5: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 6: { - message.time = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 7: { - message.engine = reader.string(); - break; - } - case 8: { - message.status = reader.int32(); + message.last_timestamp_binlog = reader.string(); break; } default: @@ -41009,256 +40966,156 @@ export const mysqlctl = $root.mysqlctl = (() => { }; /** - * Decodes a BackupInfo message from the specified reader or buffer, length delimited. + * Decodes a ReadBinlogFilesTimestampsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.BackupInfo} BackupInfo + * @returns {mysqlctl.ReadBinlogFilesTimestampsResponse} ReadBinlogFilesTimestampsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupInfo.decodeDelimited = function decodeDelimited(reader) { + ReadBinlogFilesTimestampsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupInfo message. + * Verifies a ReadBinlogFilesTimestampsResponse message. * @function verify - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupInfo.verify = function verify(message) { + ReadBinlogFilesTimestampsResponse.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.directory != null && message.hasOwnProperty("directory")) - if (!$util.isString(message.directory)) - return "directory: string expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (message.first_timestamp != null && message.hasOwnProperty("first_timestamp")) { + let error = $root.vttime.Time.verify(message.first_timestamp); if (error) - return "tablet_alias." + error; + return "first_timestamp." + error; } - if (message.time != null && message.hasOwnProperty("time")) { - let error = $root.vttime.Time.verify(message.time); + if (message.first_timestamp_binlog != null && message.hasOwnProperty("first_timestamp_binlog")) + if (!$util.isString(message.first_timestamp_binlog)) + return "first_timestamp_binlog: string expected"; + if (message.last_timestamp != null && message.hasOwnProperty("last_timestamp")) { + let error = $root.vttime.Time.verify(message.last_timestamp); if (error) - return "time." + error; + return "last_timestamp." + error; } - if (message.engine != null && message.hasOwnProperty("engine")) - if (!$util.isString(message.engine)) - return "engine: string expected"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } + if (message.last_timestamp_binlog != null && message.hasOwnProperty("last_timestamp_binlog")) + if (!$util.isString(message.last_timestamp_binlog)) + return "last_timestamp_binlog: string expected"; return null; }; /** - * Creates a BackupInfo message from a plain object. Also converts values to their respective internal types. + * Creates a ReadBinlogFilesTimestampsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse * @static * @param {Object.} object Plain object - * @returns {mysqlctl.BackupInfo} BackupInfo + * @returns {mysqlctl.ReadBinlogFilesTimestampsResponse} ReadBinlogFilesTimestampsResponse */ - BackupInfo.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.BackupInfo) + ReadBinlogFilesTimestampsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.ReadBinlogFilesTimestampsResponse) return object; - let message = new $root.mysqlctl.BackupInfo(); - if (object.name != null) - message.name = String(object.name); - if (object.directory != null) - message.directory = String(object.directory); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".mysqlctl.BackupInfo.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.time != null) { - if (typeof object.time !== "object") - throw TypeError(".mysqlctl.BackupInfo.time: object expected"); - message.time = $root.vttime.Time.fromObject(object.time); + let message = new $root.mysqlctl.ReadBinlogFilesTimestampsResponse(); + if (object.first_timestamp != null) { + if (typeof object.first_timestamp !== "object") + throw TypeError(".mysqlctl.ReadBinlogFilesTimestampsResponse.first_timestamp: object expected"); + message.first_timestamp = $root.vttime.Time.fromObject(object.first_timestamp); } - if (object.engine != null) - message.engine = String(object.engine); - switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "UNKNOWN": - case 0: - message.status = 0; - break; - case "INCOMPLETE": - case 1: - message.status = 1; - break; - case "COMPLETE": - case 2: - message.status = 2; - break; - case "INVALID": - case 3: - message.status = 3; - break; - case "VALID": - case 4: - message.status = 4; - break; + if (object.first_timestamp_binlog != null) + message.first_timestamp_binlog = String(object.first_timestamp_binlog); + if (object.last_timestamp != null) { + if (typeof object.last_timestamp !== "object") + throw TypeError(".mysqlctl.ReadBinlogFilesTimestampsResponse.last_timestamp: object expected"); + message.last_timestamp = $root.vttime.Time.fromObject(object.last_timestamp); } + if (object.last_timestamp_binlog != null) + message.last_timestamp_binlog = String(object.last_timestamp_binlog); return message; }; /** - * Creates a plain object from a BackupInfo message. Also converts values to other types if specified. + * Creates a plain object from a ReadBinlogFilesTimestampsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse * @static - * @param {mysqlctl.BackupInfo} message BackupInfo + * @param {mysqlctl.ReadBinlogFilesTimestampsResponse} message ReadBinlogFilesTimestampsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupInfo.toObject = function toObject(message, options) { + ReadBinlogFilesTimestampsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.name = ""; - object.directory = ""; - object.keyspace = ""; - object.shard = ""; - object.tablet_alias = null; - object.time = null; - object.engine = ""; - object.status = options.enums === String ? "UNKNOWN" : 0; + object.first_timestamp = null; + object.first_timestamp_binlog = ""; + object.last_timestamp = null; + object.last_timestamp_binlog = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.directory != null && message.hasOwnProperty("directory")) - object.directory = message.directory; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.time != null && message.hasOwnProperty("time")) - object.time = $root.vttime.Time.toObject(message.time, options); - if (message.engine != null && message.hasOwnProperty("engine")) - object.engine = message.engine; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.mysqlctl.BackupInfo.Status[message.status] === undefined ? message.status : $root.mysqlctl.BackupInfo.Status[message.status] : message.status; + if (message.first_timestamp != null && message.hasOwnProperty("first_timestamp")) + object.first_timestamp = $root.vttime.Time.toObject(message.first_timestamp, options); + if (message.first_timestamp_binlog != null && message.hasOwnProperty("first_timestamp_binlog")) + object.first_timestamp_binlog = message.first_timestamp_binlog; + if (message.last_timestamp != null && message.hasOwnProperty("last_timestamp")) + object.last_timestamp = $root.vttime.Time.toObject(message.last_timestamp, options); + if (message.last_timestamp_binlog != null && message.hasOwnProperty("last_timestamp_binlog")) + object.last_timestamp_binlog = message.last_timestamp_binlog; return object; }; /** - * Converts this BackupInfo to JSON. + * Converts this ReadBinlogFilesTimestampsResponse to JSON. * @function toJSON - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse * @instance * @returns {Object.} JSON object */ - BackupInfo.prototype.toJSON = function toJSON() { + ReadBinlogFilesTimestampsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BackupInfo + * Gets the default type url for ReadBinlogFilesTimestampsResponse * @function getTypeUrl - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.ReadBinlogFilesTimestampsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BackupInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadBinlogFilesTimestampsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/mysqlctl.BackupInfo"; + return typeUrlPrefix + "/mysqlctl.ReadBinlogFilesTimestampsResponse"; }; - /** - * Status enum. - * @name mysqlctl.BackupInfo.Status - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} INCOMPLETE=1 INCOMPLETE value - * @property {number} COMPLETE=2 COMPLETE value - * @property {number} INVALID=3 INVALID value - * @property {number} VALID=4 VALID value - */ - BackupInfo.Status = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "INCOMPLETE"] = 1; - values[valuesById[2] = "COMPLETE"] = 2; - values[valuesById[3] = "INVALID"] = 3; - values[valuesById[4] = "VALID"] = 4; - return values; - })(); - - return BackupInfo; + return ReadBinlogFilesTimestampsResponse; })(); - return mysqlctl; -})(); - -export const topodata = $root.topodata = (() => { - - /** - * Namespace topodata. - * @exports topodata - * @namespace - */ - const topodata = {}; - - topodata.KeyRange = (function() { + mysqlctl.ReinitConfigRequest = (function() { /** - * Properties of a KeyRange. - * @memberof topodata - * @interface IKeyRange - * @property {Uint8Array|null} [start] KeyRange start - * @property {Uint8Array|null} [end] KeyRange end + * Properties of a ReinitConfigRequest. + * @memberof mysqlctl + * @interface IReinitConfigRequest */ /** - * Constructs a new KeyRange. - * @memberof topodata - * @classdesc Represents a KeyRange. - * @implements IKeyRange + * Constructs a new ReinitConfigRequest. + * @memberof mysqlctl + * @classdesc Represents a ReinitConfigRequest. + * @implements IReinitConfigRequest * @constructor - * @param {topodata.IKeyRange=} [properties] Properties to set + * @param {mysqlctl.IReinitConfigRequest=} [properties] Properties to set */ - function KeyRange(properties) { + function ReinitConfigRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41266,91 +41123,63 @@ export const topodata = $root.topodata = (() => { } /** - * KeyRange start. - * @member {Uint8Array} start - * @memberof topodata.KeyRange - * @instance - */ - KeyRange.prototype.start = $util.newBuffer([]); - - /** - * KeyRange end. - * @member {Uint8Array} end - * @memberof topodata.KeyRange - * @instance - */ - KeyRange.prototype.end = $util.newBuffer([]); - - /** - * Creates a new KeyRange instance using the specified properties. + * Creates a new ReinitConfigRequest instance using the specified properties. * @function create - * @memberof topodata.KeyRange + * @memberof mysqlctl.ReinitConfigRequest * @static - * @param {topodata.IKeyRange=} [properties] Properties to set - * @returns {topodata.KeyRange} KeyRange instance + * @param {mysqlctl.IReinitConfigRequest=} [properties] Properties to set + * @returns {mysqlctl.ReinitConfigRequest} ReinitConfigRequest instance */ - KeyRange.create = function create(properties) { - return new KeyRange(properties); + ReinitConfigRequest.create = function create(properties) { + return new ReinitConfigRequest(properties); }; /** - * Encodes the specified KeyRange message. Does not implicitly {@link topodata.KeyRange.verify|verify} messages. + * Encodes the specified ReinitConfigRequest message. Does not implicitly {@link mysqlctl.ReinitConfigRequest.verify|verify} messages. * @function encode - * @memberof topodata.KeyRange + * @memberof mysqlctl.ReinitConfigRequest * @static - * @param {topodata.IKeyRange} message KeyRange message or plain object to encode + * @param {mysqlctl.IReinitConfigRequest} message ReinitConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KeyRange.encode = function encode(message, writer) { + ReinitConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.end); return writer; }; /** - * Encodes the specified KeyRange message, length delimited. Does not implicitly {@link topodata.KeyRange.verify|verify} messages. + * Encodes the specified ReinitConfigRequest message, length delimited. Does not implicitly {@link mysqlctl.ReinitConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.KeyRange + * @memberof mysqlctl.ReinitConfigRequest * @static - * @param {topodata.IKeyRange} message KeyRange message or plain object to encode + * @param {mysqlctl.IReinitConfigRequest} message ReinitConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KeyRange.encodeDelimited = function encodeDelimited(message, writer) { + ReinitConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a KeyRange message from the specified reader or buffer. + * Decodes a ReinitConfigRequest message from the specified reader or buffer. * @function decode - * @memberof topodata.KeyRange + * @memberof mysqlctl.ReinitConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.KeyRange} KeyRange + * @returns {mysqlctl.ReinitConfigRequest} ReinitConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KeyRange.decode = function decode(reader, length) { + ReinitConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.KeyRange(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ReinitConfigRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.start = reader.bytes(); - break; - } - case 2: { - message.end = reader.bytes(); - break; - } default: reader.skipType(tag & 7); break; @@ -41360,164 +41189,108 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a KeyRange message from the specified reader or buffer, length delimited. + * Decodes a ReinitConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.KeyRange + * @memberof mysqlctl.ReinitConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.KeyRange} KeyRange + * @returns {mysqlctl.ReinitConfigRequest} ReinitConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KeyRange.decodeDelimited = function decodeDelimited(reader) { + ReinitConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a KeyRange message. + * Verifies a ReinitConfigRequest message. * @function verify - * @memberof topodata.KeyRange + * @memberof mysqlctl.ReinitConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KeyRange.verify = function verify(message) { + ReinitConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!(message.start && typeof message.start.length === "number" || $util.isString(message.start))) - return "start: buffer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!(message.end && typeof message.end.length === "number" || $util.isString(message.end))) - return "end: buffer expected"; return null; }; /** - * Creates a KeyRange message from a plain object. Also converts values to their respective internal types. + * Creates a ReinitConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.KeyRange + * @memberof mysqlctl.ReinitConfigRequest * @static * @param {Object.} object Plain object - * @returns {topodata.KeyRange} KeyRange + * @returns {mysqlctl.ReinitConfigRequest} ReinitConfigRequest */ - KeyRange.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.KeyRange) + ReinitConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.ReinitConfigRequest) return object; - let message = new $root.topodata.KeyRange(); - if (object.start != null) - if (typeof object.start === "string") - $util.base64.decode(object.start, message.start = $util.newBuffer($util.base64.length(object.start)), 0); - else if (object.start.length >= 0) - message.start = object.start; - if (object.end != null) - if (typeof object.end === "string") - $util.base64.decode(object.end, message.end = $util.newBuffer($util.base64.length(object.end)), 0); - else if (object.end.length >= 0) - message.end = object.end; - return message; + return new $root.mysqlctl.ReinitConfigRequest(); }; /** - * Creates a plain object from a KeyRange message. Also converts values to other types if specified. + * Creates a plain object from a ReinitConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.KeyRange + * @memberof mysqlctl.ReinitConfigRequest * @static - * @param {topodata.KeyRange} message KeyRange + * @param {mysqlctl.ReinitConfigRequest} message ReinitConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KeyRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.start = ""; - else { - object.start = []; - if (options.bytes !== Array) - object.start = $util.newBuffer(object.start); - } - if (options.bytes === String) - object.end = ""; - else { - object.end = []; - if (options.bytes !== Array) - object.end = $util.newBuffer(object.end); - } - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = options.bytes === String ? $util.base64.encode(message.start, 0, message.start.length) : options.bytes === Array ? Array.prototype.slice.call(message.start) : message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = options.bytes === String ? $util.base64.encode(message.end, 0, message.end.length) : options.bytes === Array ? Array.prototype.slice.call(message.end) : message.end; - return object; + ReinitConfigRequest.toObject = function toObject() { + return {}; }; /** - * Converts this KeyRange to JSON. + * Converts this ReinitConfigRequest to JSON. * @function toJSON - * @memberof topodata.KeyRange + * @memberof mysqlctl.ReinitConfigRequest * @instance * @returns {Object.} JSON object */ - KeyRange.prototype.toJSON = function toJSON() { + ReinitConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for KeyRange + * Gets the default type url for ReinitConfigRequest * @function getTypeUrl - * @memberof topodata.KeyRange + * @memberof mysqlctl.ReinitConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - KeyRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReinitConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.KeyRange"; + return typeUrlPrefix + "/mysqlctl.ReinitConfigRequest"; }; - return KeyRange; - })(); - - /** - * KeyspaceType enum. - * @name topodata.KeyspaceType - * @enum {number} - * @property {number} NORMAL=0 NORMAL value - * @property {number} SNAPSHOT=1 SNAPSHOT value - */ - topodata.KeyspaceType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NORMAL"] = 0; - values[valuesById[1] = "SNAPSHOT"] = 1; - return values; + return ReinitConfigRequest; })(); - topodata.TabletAlias = (function() { + mysqlctl.ReinitConfigResponse = (function() { /** - * Properties of a TabletAlias. - * @memberof topodata - * @interface ITabletAlias - * @property {string|null} [cell] TabletAlias cell - * @property {number|null} [uid] TabletAlias uid + * Properties of a ReinitConfigResponse. + * @memberof mysqlctl + * @interface IReinitConfigResponse */ /** - * Constructs a new TabletAlias. - * @memberof topodata - * @classdesc Represents a TabletAlias. - * @implements ITabletAlias + * Constructs a new ReinitConfigResponse. + * @memberof mysqlctl + * @classdesc Represents a ReinitConfigResponse. + * @implements IReinitConfigResponse * @constructor - * @param {topodata.ITabletAlias=} [properties] Properties to set + * @param {mysqlctl.IReinitConfigResponse=} [properties] Properties to set */ - function TabletAlias(properties) { + function ReinitConfigResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41525,91 +41298,63 @@ export const topodata = $root.topodata = (() => { } /** - * TabletAlias cell. - * @member {string} cell - * @memberof topodata.TabletAlias - * @instance - */ - TabletAlias.prototype.cell = ""; - - /** - * TabletAlias uid. - * @member {number} uid - * @memberof topodata.TabletAlias - * @instance - */ - TabletAlias.prototype.uid = 0; - - /** - * Creates a new TabletAlias instance using the specified properties. + * Creates a new ReinitConfigResponse instance using the specified properties. * @function create - * @memberof topodata.TabletAlias + * @memberof mysqlctl.ReinitConfigResponse * @static - * @param {topodata.ITabletAlias=} [properties] Properties to set - * @returns {topodata.TabletAlias} TabletAlias instance + * @param {mysqlctl.IReinitConfigResponse=} [properties] Properties to set + * @returns {mysqlctl.ReinitConfigResponse} ReinitConfigResponse instance */ - TabletAlias.create = function create(properties) { - return new TabletAlias(properties); + ReinitConfigResponse.create = function create(properties) { + return new ReinitConfigResponse(properties); }; /** - * Encodes the specified TabletAlias message. Does not implicitly {@link topodata.TabletAlias.verify|verify} messages. + * Encodes the specified ReinitConfigResponse message. Does not implicitly {@link mysqlctl.ReinitConfigResponse.verify|verify} messages. * @function encode - * @memberof topodata.TabletAlias + * @memberof mysqlctl.ReinitConfigResponse * @static - * @param {topodata.ITabletAlias} message TabletAlias message or plain object to encode + * @param {mysqlctl.IReinitConfigResponse} message ReinitConfigResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TabletAlias.encode = function encode(message, writer) { + ReinitConfigResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.uid); return writer; }; /** - * Encodes the specified TabletAlias message, length delimited. Does not implicitly {@link topodata.TabletAlias.verify|verify} messages. + * Encodes the specified ReinitConfigResponse message, length delimited. Does not implicitly {@link mysqlctl.ReinitConfigResponse.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.TabletAlias + * @memberof mysqlctl.ReinitConfigResponse * @static - * @param {topodata.ITabletAlias} message TabletAlias message or plain object to encode + * @param {mysqlctl.IReinitConfigResponse} message ReinitConfigResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TabletAlias.encodeDelimited = function encodeDelimited(message, writer) { + ReinitConfigResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TabletAlias message from the specified reader or buffer. + * Decodes a ReinitConfigResponse message from the specified reader or buffer. * @function decode - * @memberof topodata.TabletAlias + * @memberof mysqlctl.ReinitConfigResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.TabletAlias} TabletAlias + * @returns {mysqlctl.ReinitConfigResponse} ReinitConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TabletAlias.decode = function decode(reader, length) { + ReinitConfigResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.TabletAlias(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ReinitConfigResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.cell = reader.string(); - break; - } - case 2: { - message.uid = reader.uint32(); - break; - } default: reader.skipType(tag & 7); break; @@ -41619,177 +41364,108 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a TabletAlias message from the specified reader or buffer, length delimited. + * Decodes a ReinitConfigResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.TabletAlias + * @memberof mysqlctl.ReinitConfigResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.TabletAlias} TabletAlias + * @returns {mysqlctl.ReinitConfigResponse} ReinitConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TabletAlias.decodeDelimited = function decodeDelimited(reader) { + ReinitConfigResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TabletAlias message. + * Verifies a ReinitConfigResponse message. * @function verify - * @memberof topodata.TabletAlias + * @memberof mysqlctl.ReinitConfigResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TabletAlias.verify = function verify(message) { + ReinitConfigResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isInteger(message.uid)) - return "uid: integer expected"; return null; }; /** - * Creates a TabletAlias message from a plain object. Also converts values to their respective internal types. + * Creates a ReinitConfigResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.TabletAlias + * @memberof mysqlctl.ReinitConfigResponse * @static * @param {Object.} object Plain object - * @returns {topodata.TabletAlias} TabletAlias + * @returns {mysqlctl.ReinitConfigResponse} ReinitConfigResponse */ - TabletAlias.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.TabletAlias) + ReinitConfigResponse.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.ReinitConfigResponse) return object; - let message = new $root.topodata.TabletAlias(); - if (object.cell != null) - message.cell = String(object.cell); - if (object.uid != null) - message.uid = object.uid >>> 0; - return message; + return new $root.mysqlctl.ReinitConfigResponse(); }; /** - * Creates a plain object from a TabletAlias message. Also converts values to other types if specified. + * Creates a plain object from a ReinitConfigResponse message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.TabletAlias + * @memberof mysqlctl.ReinitConfigResponse * @static - * @param {topodata.TabletAlias} message TabletAlias + * @param {mysqlctl.ReinitConfigResponse} message ReinitConfigResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TabletAlias.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.cell = ""; - object.uid = 0; - } - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; - return object; + ReinitConfigResponse.toObject = function toObject() { + return {}; }; /** - * Converts this TabletAlias to JSON. + * Converts this ReinitConfigResponse to JSON. * @function toJSON - * @memberof topodata.TabletAlias + * @memberof mysqlctl.ReinitConfigResponse * @instance * @returns {Object.} JSON object */ - TabletAlias.prototype.toJSON = function toJSON() { + ReinitConfigResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TabletAlias + * Gets the default type url for ReinitConfigResponse * @function getTypeUrl - * @memberof topodata.TabletAlias + * @memberof mysqlctl.ReinitConfigResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TabletAlias.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReinitConfigResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.TabletAlias"; + return typeUrlPrefix + "/mysqlctl.ReinitConfigResponse"; }; - return TabletAlias; - })(); - - /** - * TabletType enum. - * @name topodata.TabletType - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} PRIMARY=1 PRIMARY value - * @property {number} MASTER=1 MASTER value - * @property {number} REPLICA=2 REPLICA value - * @property {number} RDONLY=3 RDONLY value - * @property {number} BATCH=3 BATCH value - * @property {number} SPARE=4 SPARE value - * @property {number} EXPERIMENTAL=5 EXPERIMENTAL value - * @property {number} BACKUP=6 BACKUP value - * @property {number} RESTORE=7 RESTORE value - * @property {number} DRAINED=8 DRAINED value - */ - topodata.TabletType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "PRIMARY"] = 1; - values["MASTER"] = 1; - values[valuesById[2] = "REPLICA"] = 2; - values[valuesById[3] = "RDONLY"] = 3; - values["BATCH"] = 3; - values[valuesById[4] = "SPARE"] = 4; - values[valuesById[5] = "EXPERIMENTAL"] = 5; - values[valuesById[6] = "BACKUP"] = 6; - values[valuesById[7] = "RESTORE"] = 7; - values[valuesById[8] = "DRAINED"] = 8; - return values; + return ReinitConfigResponse; })(); - topodata.Tablet = (function() { + mysqlctl.RefreshConfigRequest = (function() { /** - * Properties of a Tablet. - * @memberof topodata - * @interface ITablet - * @property {topodata.ITabletAlias|null} [alias] Tablet alias - * @property {string|null} [hostname] Tablet hostname - * @property {Object.|null} [port_map] Tablet port_map - * @property {string|null} [keyspace] Tablet keyspace - * @property {string|null} [shard] Tablet shard - * @property {topodata.IKeyRange|null} [key_range] Tablet key_range - * @property {topodata.TabletType|null} [type] Tablet type - * @property {string|null} [db_name_override] Tablet db_name_override - * @property {Object.|null} [tags] Tablet tags - * @property {string|null} [mysql_hostname] Tablet mysql_hostname - * @property {number|null} [mysql_port] Tablet mysql_port - * @property {vttime.ITime|null} [primary_term_start_time] Tablet primary_term_start_time - * @property {number|null} [default_conn_collation] Tablet default_conn_collation + * Properties of a RefreshConfigRequest. + * @memberof mysqlctl + * @interface IRefreshConfigRequest */ /** - * Constructs a new Tablet. - * @memberof topodata - * @classdesc Represents a Tablet. - * @implements ITablet + * Constructs a new RefreshConfigRequest. + * @memberof mysqlctl + * @classdesc Represents a RefreshConfigRequest. + * @implements IRefreshConfigRequest * @constructor - * @param {topodata.ITablet=} [properties] Properties to set + * @param {mysqlctl.IRefreshConfigRequest=} [properties] Properties to set */ - function Tablet(properties) { - this.port_map = {}; - this.tags = {}; + function RefreshConfigRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41797,285 +41473,238 @@ export const topodata = $root.topodata = (() => { } /** - * Tablet alias. - * @member {topodata.ITabletAlias|null|undefined} alias - * @memberof topodata.Tablet - * @instance + * Creates a new RefreshConfigRequest instance using the specified properties. + * @function create + * @memberof mysqlctl.RefreshConfigRequest + * @static + * @param {mysqlctl.IRefreshConfigRequest=} [properties] Properties to set + * @returns {mysqlctl.RefreshConfigRequest} RefreshConfigRequest instance */ - Tablet.prototype.alias = null; + RefreshConfigRequest.create = function create(properties) { + return new RefreshConfigRequest(properties); + }; /** - * Tablet hostname. - * @member {string} hostname - * @memberof topodata.Tablet - * @instance + * Encodes the specified RefreshConfigRequest message. Does not implicitly {@link mysqlctl.RefreshConfigRequest.verify|verify} messages. + * @function encode + * @memberof mysqlctl.RefreshConfigRequest + * @static + * @param {mysqlctl.IRefreshConfigRequest} message RefreshConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Tablet.prototype.hostname = ""; + RefreshConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * Tablet port_map. - * @member {Object.} port_map - * @memberof topodata.Tablet - * @instance + * Encodes the specified RefreshConfigRequest message, length delimited. Does not implicitly {@link mysqlctl.RefreshConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof mysqlctl.RefreshConfigRequest + * @static + * @param {mysqlctl.IRefreshConfigRequest} message RefreshConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Tablet.prototype.port_map = $util.emptyObject; + RefreshConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Tablet keyspace. - * @member {string} keyspace - * @memberof topodata.Tablet - * @instance + * Decodes a RefreshConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof mysqlctl.RefreshConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {mysqlctl.RefreshConfigRequest} RefreshConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Tablet.prototype.keyspace = ""; + RefreshConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RefreshConfigRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Tablet shard. - * @member {string} shard - * @memberof topodata.Tablet - * @instance + * Decodes a RefreshConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof mysqlctl.RefreshConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {mysqlctl.RefreshConfigRequest} RefreshConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Tablet.prototype.shard = ""; + RefreshConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Tablet key_range. - * @member {topodata.IKeyRange|null|undefined} key_range - * @memberof topodata.Tablet - * @instance + * Verifies a RefreshConfigRequest message. + * @function verify + * @memberof mysqlctl.RefreshConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Tablet.prototype.key_range = null; + RefreshConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; /** - * Tablet type. - * @member {topodata.TabletType} type - * @memberof topodata.Tablet - * @instance + * Creates a RefreshConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof mysqlctl.RefreshConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {mysqlctl.RefreshConfigRequest} RefreshConfigRequest */ - Tablet.prototype.type = 0; + RefreshConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.RefreshConfigRequest) + return object; + return new $root.mysqlctl.RefreshConfigRequest(); + }; /** - * Tablet db_name_override. - * @member {string} db_name_override - * @memberof topodata.Tablet - * @instance + * Creates a plain object from a RefreshConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof mysqlctl.RefreshConfigRequest + * @static + * @param {mysqlctl.RefreshConfigRequest} message RefreshConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Tablet.prototype.db_name_override = ""; + RefreshConfigRequest.toObject = function toObject() { + return {}; + }; /** - * Tablet tags. - * @member {Object.} tags - * @memberof topodata.Tablet + * Converts this RefreshConfigRequest to JSON. + * @function toJSON + * @memberof mysqlctl.RefreshConfigRequest * @instance + * @returns {Object.} JSON object */ - Tablet.prototype.tags = $util.emptyObject; + RefreshConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Tablet mysql_hostname. - * @member {string} mysql_hostname - * @memberof topodata.Tablet - * @instance + * Gets the default type url for RefreshConfigRequest + * @function getTypeUrl + * @memberof mysqlctl.RefreshConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - Tablet.prototype.mysql_hostname = ""; + RefreshConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/mysqlctl.RefreshConfigRequest"; + }; - /** - * Tablet mysql_port. - * @member {number} mysql_port - * @memberof topodata.Tablet - * @instance - */ - Tablet.prototype.mysql_port = 0; + return RefreshConfigRequest; + })(); + + mysqlctl.RefreshConfigResponse = (function() { /** - * Tablet primary_term_start_time. - * @member {vttime.ITime|null|undefined} primary_term_start_time - * @memberof topodata.Tablet - * @instance + * Properties of a RefreshConfigResponse. + * @memberof mysqlctl + * @interface IRefreshConfigResponse */ - Tablet.prototype.primary_term_start_time = null; /** - * Tablet default_conn_collation. - * @member {number} default_conn_collation - * @memberof topodata.Tablet - * @instance + * Constructs a new RefreshConfigResponse. + * @memberof mysqlctl + * @classdesc Represents a RefreshConfigResponse. + * @implements IRefreshConfigResponse + * @constructor + * @param {mysqlctl.IRefreshConfigResponse=} [properties] Properties to set */ - Tablet.prototype.default_conn_collation = 0; + function RefreshConfigResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Creates a new Tablet instance using the specified properties. + * Creates a new RefreshConfigResponse instance using the specified properties. * @function create - * @memberof topodata.Tablet + * @memberof mysqlctl.RefreshConfigResponse * @static - * @param {topodata.ITablet=} [properties] Properties to set - * @returns {topodata.Tablet} Tablet instance + * @param {mysqlctl.IRefreshConfigResponse=} [properties] Properties to set + * @returns {mysqlctl.RefreshConfigResponse} RefreshConfigResponse instance */ - Tablet.create = function create(properties) { - return new Tablet(properties); + RefreshConfigResponse.create = function create(properties) { + return new RefreshConfigResponse(properties); }; /** - * Encodes the specified Tablet message. Does not implicitly {@link topodata.Tablet.verify|verify} messages. + * Encodes the specified RefreshConfigResponse message. Does not implicitly {@link mysqlctl.RefreshConfigResponse.verify|verify} messages. * @function encode - * @memberof topodata.Tablet + * @memberof mysqlctl.RefreshConfigResponse * @static - * @param {topodata.ITablet} message Tablet message or plain object to encode + * @param {mysqlctl.IRefreshConfigResponse} message RefreshConfigResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Tablet.encode = function encode(message, writer) { + RefreshConfigResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) - $root.topodata.TabletAlias.encode(message.alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.hostname != null && Object.hasOwnProperty.call(message, "hostname")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.hostname); - if (message.port_map != null && Object.hasOwnProperty.call(message, "port_map")) - for (let keys = Object.keys(message.port_map), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.port_map[keys[i]]).ldelim(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.shard); - if (message.key_range != null && Object.hasOwnProperty.call(message, "key_range")) - $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.type); - if (message.db_name_override != null && Object.hasOwnProperty.call(message, "db_name_override")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.db_name_override); - 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 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); - if (message.mysql_hostname != null && Object.hasOwnProperty.call(message, "mysql_hostname")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.mysql_hostname); - if (message.mysql_port != null && Object.hasOwnProperty.call(message, "mysql_port")) - writer.uint32(/* id 13, wireType 0 =*/104).int32(message.mysql_port); - if (message.primary_term_start_time != null && Object.hasOwnProperty.call(message, "primary_term_start_time")) - $root.vttime.Time.encode(message.primary_term_start_time, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.default_conn_collation != null && Object.hasOwnProperty.call(message, "default_conn_collation")) - writer.uint32(/* id 16, wireType 0 =*/128).uint32(message.default_conn_collation); return writer; }; /** - * Encodes the specified Tablet message, length delimited. Does not implicitly {@link topodata.Tablet.verify|verify} messages. + * Encodes the specified RefreshConfigResponse message, length delimited. Does not implicitly {@link mysqlctl.RefreshConfigResponse.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.Tablet + * @memberof mysqlctl.RefreshConfigResponse * @static - * @param {topodata.ITablet} message Tablet message or plain object to encode + * @param {mysqlctl.IRefreshConfigResponse} message RefreshConfigResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Tablet.encodeDelimited = function encodeDelimited(message, writer) { + RefreshConfigResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Tablet message from the specified reader or buffer. + * Decodes a RefreshConfigResponse message from the specified reader or buffer. * @function decode - * @memberof topodata.Tablet + * @memberof mysqlctl.RefreshConfigResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.Tablet} Tablet + * @returns {mysqlctl.RefreshConfigResponse} RefreshConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Tablet.decode = function decode(reader, length) { + RefreshConfigResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.Tablet(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RefreshConfigResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 2: { - message.hostname = reader.string(); - break; - } - case 4: { - if (message.port_map === $util.emptyObject) - message.port_map = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.int32(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.port_map[key] = value; - break; - } - case 5: { - message.keyspace = reader.string(); - break; - } - case 6: { - message.shard = reader.string(); - break; - } - case 7: { - message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); - break; - } - case 8: { - message.type = reader.int32(); - break; - } - case 9: { - message.db_name_override = reader.string(); - break; - } - case 10: { - 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 12: { - message.mysql_hostname = reader.string(); - break; - } - case 13: { - message.mysql_port = reader.int32(); - break; - } - case 14: { - message.primary_term_start_time = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 16: { - message.default_conn_collation = reader.uint32(); - break; - } default: reader.skipType(tag & 7); break; @@ -42085,334 +41714,108 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a Tablet message from the specified reader or buffer, length delimited. + * Decodes a RefreshConfigResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.Tablet + * @memberof mysqlctl.RefreshConfigResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.Tablet} Tablet + * @returns {mysqlctl.RefreshConfigResponse} RefreshConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Tablet.decodeDelimited = function decodeDelimited(reader) { + RefreshConfigResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Tablet message. + * Verifies a RefreshConfigResponse message. * @function verify - * @memberof topodata.Tablet + * @memberof mysqlctl.RefreshConfigResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Tablet.verify = function verify(message) { + RefreshConfigResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.alias != null && message.hasOwnProperty("alias")) { - let error = $root.topodata.TabletAlias.verify(message.alias); - if (error) - return "alias." + error; - } - if (message.hostname != null && message.hasOwnProperty("hostname")) - if (!$util.isString(message.hostname)) - return "hostname: string expected"; - if (message.port_map != null && message.hasOwnProperty("port_map")) { - if (!$util.isObject(message.port_map)) - return "port_map: object expected"; - let key = Object.keys(message.port_map); - for (let i = 0; i < key.length; ++i) - if (!$util.isInteger(message.port_map[key[i]])) - return "port_map: integer{k:string} expected"; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.key_range != null && message.hasOwnProperty("key_range")) { - let error = $root.topodata.KeyRange.verify(message.key_range); - if (error) - return "key_range." + error; - } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "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.db_name_override != null && message.hasOwnProperty("db_name_override")) - if (!$util.isString(message.db_name_override)) - return "db_name_override: 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.mysql_hostname != null && message.hasOwnProperty("mysql_hostname")) - if (!$util.isString(message.mysql_hostname)) - return "mysql_hostname: string expected"; - if (message.mysql_port != null && message.hasOwnProperty("mysql_port")) - if (!$util.isInteger(message.mysql_port)) - return "mysql_port: integer expected"; - if (message.primary_term_start_time != null && message.hasOwnProperty("primary_term_start_time")) { - let error = $root.vttime.Time.verify(message.primary_term_start_time); - if (error) - return "primary_term_start_time." + error; - } - if (message.default_conn_collation != null && message.hasOwnProperty("default_conn_collation")) - if (!$util.isInteger(message.default_conn_collation)) - return "default_conn_collation: integer expected"; return null; }; /** - * Creates a Tablet message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshConfigResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.Tablet + * @memberof mysqlctl.RefreshConfigResponse * @static * @param {Object.} object Plain object - * @returns {topodata.Tablet} Tablet + * @returns {mysqlctl.RefreshConfigResponse} RefreshConfigResponse */ - Tablet.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.Tablet) + RefreshConfigResponse.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.RefreshConfigResponse) return object; - let message = new $root.topodata.Tablet(); - if (object.alias != null) { - if (typeof object.alias !== "object") - throw TypeError(".topodata.Tablet.alias: object expected"); - message.alias = $root.topodata.TabletAlias.fromObject(object.alias); - } - if (object.hostname != null) - message.hostname = String(object.hostname); - if (object.port_map) { - if (typeof object.port_map !== "object") - throw TypeError(".topodata.Tablet.port_map: object expected"); - message.port_map = {}; - for (let keys = Object.keys(object.port_map), i = 0; i < keys.length; ++i) - message.port_map[keys[i]] = object.port_map[keys[i]] | 0; - } - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.key_range != null) { - if (typeof object.key_range !== "object") - throw TypeError(".topodata.Tablet.key_range: object expected"); - message.key_range = $root.topodata.KeyRange.fromObject(object.key_range); - } - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "UNKNOWN": - case 0: - message.type = 0; - break; - case "PRIMARY": - case 1: - message.type = 1; - break; - case "MASTER": - case 1: - message.type = 1; - break; - case "REPLICA": - case 2: - message.type = 2; - break; - case "RDONLY": - case 3: - message.type = 3; - break; - case "BATCH": - case 3: - message.type = 3; - break; - case "SPARE": - case 4: - message.type = 4; - break; - case "EXPERIMENTAL": - case 5: - message.type = 5; - break; - case "BACKUP": - case 6: - message.type = 6; - break; - case "RESTORE": - case 7: - message.type = 7; - break; - case "DRAINED": - case 8: - message.type = 8; - break; - } - if (object.db_name_override != null) - message.db_name_override = String(object.db_name_override); - if (object.tags) { - if (typeof object.tags !== "object") - throw TypeError(".topodata.Tablet.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.mysql_hostname != null) - message.mysql_hostname = String(object.mysql_hostname); - if (object.mysql_port != null) - message.mysql_port = object.mysql_port | 0; - if (object.primary_term_start_time != null) { - if (typeof object.primary_term_start_time !== "object") - throw TypeError(".topodata.Tablet.primary_term_start_time: object expected"); - message.primary_term_start_time = $root.vttime.Time.fromObject(object.primary_term_start_time); - } - if (object.default_conn_collation != null) - message.default_conn_collation = object.default_conn_collation >>> 0; - return message; + return new $root.mysqlctl.RefreshConfigResponse(); }; /** - * Creates a plain object from a Tablet message. Also converts values to other types if specified. + * Creates a plain object from a RefreshConfigResponse message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.Tablet + * @memberof mysqlctl.RefreshConfigResponse * @static - * @param {topodata.Tablet} message Tablet + * @param {mysqlctl.RefreshConfigResponse} message RefreshConfigResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Tablet.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.objects || options.defaults) { - object.port_map = {}; - object.tags = {}; - } - if (options.defaults) { - object.alias = null; - object.hostname = ""; - object.keyspace = ""; - object.shard = ""; - object.key_range = null; - object.type = options.enums === String ? "UNKNOWN" : 0; - object.db_name_override = ""; - object.mysql_hostname = ""; - object.mysql_port = 0; - object.primary_term_start_time = null; - object.default_conn_collation = 0; - } - if (message.alias != null && message.hasOwnProperty("alias")) - object.alias = $root.topodata.TabletAlias.toObject(message.alias, options); - if (message.hostname != null && message.hasOwnProperty("hostname")) - object.hostname = message.hostname; - let keys2; - if (message.port_map && (keys2 = Object.keys(message.port_map)).length) { - object.port_map = {}; - for (let j = 0; j < keys2.length; ++j) - object.port_map[keys2[j]] = message.port_map[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.key_range != null && message.hasOwnProperty("key_range")) - object.key_range = $root.topodata.KeyRange.toObject(message.key_range, options); - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.topodata.TabletType[message.type] === undefined ? message.type : $root.topodata.TabletType[message.type] : message.type; - if (message.db_name_override != null && message.hasOwnProperty("db_name_override")) - object.db_name_override = message.db_name_override; - 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.mysql_hostname != null && message.hasOwnProperty("mysql_hostname")) - object.mysql_hostname = message.mysql_hostname; - if (message.mysql_port != null && message.hasOwnProperty("mysql_port")) - object.mysql_port = message.mysql_port; - if (message.primary_term_start_time != null && message.hasOwnProperty("primary_term_start_time")) - object.primary_term_start_time = $root.vttime.Time.toObject(message.primary_term_start_time, options); - if (message.default_conn_collation != null && message.hasOwnProperty("default_conn_collation")) - object.default_conn_collation = message.default_conn_collation; - return object; + RefreshConfigResponse.toObject = function toObject() { + return {}; }; /** - * Converts this Tablet to JSON. + * Converts this RefreshConfigResponse to JSON. * @function toJSON - * @memberof topodata.Tablet + * @memberof mysqlctl.RefreshConfigResponse * @instance * @returns {Object.} JSON object */ - Tablet.prototype.toJSON = function toJSON() { + RefreshConfigResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Tablet + * Gets the default type url for RefreshConfigResponse * @function getTypeUrl - * @memberof topodata.Tablet + * @memberof mysqlctl.RefreshConfigResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Tablet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RefreshConfigResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.Tablet"; + return typeUrlPrefix + "/mysqlctl.RefreshConfigResponse"; }; - return Tablet; + return RefreshConfigResponse; })(); - topodata.Shard = (function() { + mysqlctl.VersionStringRequest = (function() { /** - * Properties of a Shard. - * @memberof topodata - * @interface IShard - * @property {topodata.ITabletAlias|null} [primary_alias] Shard primary_alias - * @property {vttime.ITime|null} [primary_term_start_time] Shard primary_term_start_time - * @property {topodata.IKeyRange|null} [key_range] Shard key_range - * @property {Array.|null} [source_shards] Shard source_shards - * @property {Array.|null} [tablet_controls] Shard tablet_controls - * @property {boolean|null} [is_primary_serving] Shard is_primary_serving + * Properties of a VersionStringRequest. + * @memberof mysqlctl + * @interface IVersionStringRequest */ /** - * Constructs a new Shard. - * @memberof topodata - * @classdesc Represents a Shard. - * @implements IShard + * Constructs a new VersionStringRequest. + * @memberof mysqlctl + * @classdesc Represents a VersionStringRequest. + * @implements IVersionStringRequest * @constructor - * @param {topodata.IShard=} [properties] Properties to set + * @param {mysqlctl.IVersionStringRequest=} [properties] Properties to set */ - function Shard(properties) { - this.source_shards = []; - this.tablet_controls = []; + function VersionStringRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42420,151 +41823,251 @@ export const topodata = $root.topodata = (() => { } /** - * Shard primary_alias. - * @member {topodata.ITabletAlias|null|undefined} primary_alias - * @memberof topodata.Shard - * @instance + * Creates a new VersionStringRequest instance using the specified properties. + * @function create + * @memberof mysqlctl.VersionStringRequest + * @static + * @param {mysqlctl.IVersionStringRequest=} [properties] Properties to set + * @returns {mysqlctl.VersionStringRequest} VersionStringRequest instance */ - Shard.prototype.primary_alias = null; + VersionStringRequest.create = function create(properties) { + return new VersionStringRequest(properties); + }; /** - * Shard primary_term_start_time. - * @member {vttime.ITime|null|undefined} primary_term_start_time - * @memberof topodata.Shard - * @instance + * Encodes the specified VersionStringRequest message. Does not implicitly {@link mysqlctl.VersionStringRequest.verify|verify} messages. + * @function encode + * @memberof mysqlctl.VersionStringRequest + * @static + * @param {mysqlctl.IVersionStringRequest} message VersionStringRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Shard.prototype.primary_term_start_time = null; + VersionStringRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * Shard key_range. - * @member {topodata.IKeyRange|null|undefined} key_range - * @memberof topodata.Shard - * @instance + * Encodes the specified VersionStringRequest message, length delimited. Does not implicitly {@link mysqlctl.VersionStringRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof mysqlctl.VersionStringRequest + * @static + * @param {mysqlctl.IVersionStringRequest} message VersionStringRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Shard.prototype.key_range = null; + VersionStringRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Shard source_shards. - * @member {Array.} source_shards - * @memberof topodata.Shard - * @instance + * Decodes a VersionStringRequest message from the specified reader or buffer. + * @function decode + * @memberof mysqlctl.VersionStringRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {mysqlctl.VersionStringRequest} VersionStringRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Shard.prototype.source_shards = $util.emptyArray; + VersionStringRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.VersionStringRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Shard tablet_controls. - * @member {Array.} tablet_controls - * @memberof topodata.Shard + * Decodes a VersionStringRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof mysqlctl.VersionStringRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {mysqlctl.VersionStringRequest} VersionStringRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VersionStringRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VersionStringRequest message. + * @function verify + * @memberof mysqlctl.VersionStringRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VersionStringRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a VersionStringRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof mysqlctl.VersionStringRequest + * @static + * @param {Object.} object Plain object + * @returns {mysqlctl.VersionStringRequest} VersionStringRequest + */ + VersionStringRequest.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.VersionStringRequest) + return object; + return new $root.mysqlctl.VersionStringRequest(); + }; + + /** + * Creates a plain object from a VersionStringRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof mysqlctl.VersionStringRequest + * @static + * @param {mysqlctl.VersionStringRequest} message VersionStringRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VersionStringRequest.toObject = function toObject() { + return {}; + }; + + /** + * Converts this VersionStringRequest to JSON. + * @function toJSON + * @memberof mysqlctl.VersionStringRequest * @instance + * @returns {Object.} JSON object */ - Shard.prototype.tablet_controls = $util.emptyArray; + VersionStringRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Shard is_primary_serving. - * @member {boolean} is_primary_serving - * @memberof topodata.Shard + * Gets the default type url for VersionStringRequest + * @function getTypeUrl + * @memberof mysqlctl.VersionStringRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VersionStringRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/mysqlctl.VersionStringRequest"; + }; + + return VersionStringRequest; + })(); + + mysqlctl.VersionStringResponse = (function() { + + /** + * Properties of a VersionStringResponse. + * @memberof mysqlctl + * @interface IVersionStringResponse + * @property {string|null} [version] VersionStringResponse version + */ + + /** + * Constructs a new VersionStringResponse. + * @memberof mysqlctl + * @classdesc Represents a VersionStringResponse. + * @implements IVersionStringResponse + * @constructor + * @param {mysqlctl.IVersionStringResponse=} [properties] Properties to set + */ + function VersionStringResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VersionStringResponse version. + * @member {string} version + * @memberof mysqlctl.VersionStringResponse * @instance */ - Shard.prototype.is_primary_serving = false; + VersionStringResponse.prototype.version = ""; /** - * Creates a new Shard instance using the specified properties. + * Creates a new VersionStringResponse instance using the specified properties. * @function create - * @memberof topodata.Shard + * @memberof mysqlctl.VersionStringResponse * @static - * @param {topodata.IShard=} [properties] Properties to set - * @returns {topodata.Shard} Shard instance + * @param {mysqlctl.IVersionStringResponse=} [properties] Properties to set + * @returns {mysqlctl.VersionStringResponse} VersionStringResponse instance */ - Shard.create = function create(properties) { - return new Shard(properties); + VersionStringResponse.create = function create(properties) { + return new VersionStringResponse(properties); }; /** - * Encodes the specified Shard message. Does not implicitly {@link topodata.Shard.verify|verify} messages. + * Encodes the specified VersionStringResponse message. Does not implicitly {@link mysqlctl.VersionStringResponse.verify|verify} messages. * @function encode - * @memberof topodata.Shard + * @memberof mysqlctl.VersionStringResponse * @static - * @param {topodata.IShard} message Shard message or plain object to encode + * @param {mysqlctl.IVersionStringResponse} message VersionStringResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Shard.encode = function encode(message, writer) { + VersionStringResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.primary_alias != null && Object.hasOwnProperty.call(message, "primary_alias")) - $root.topodata.TabletAlias.encode(message.primary_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.key_range != null && Object.hasOwnProperty.call(message, "key_range")) - $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.source_shards != null && message.source_shards.length) - for (let i = 0; i < message.source_shards.length; ++i) - $root.topodata.Shard.SourceShard.encode(message.source_shards[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.tablet_controls != null && message.tablet_controls.length) - for (let i = 0; i < message.tablet_controls.length; ++i) - $root.topodata.Shard.TabletControl.encode(message.tablet_controls[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.is_primary_serving != null && Object.hasOwnProperty.call(message, "is_primary_serving")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.is_primary_serving); - if (message.primary_term_start_time != null && Object.hasOwnProperty.call(message, "primary_term_start_time")) - $root.vttime.Time.encode(message.primary_term_start_time, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); return writer; }; /** - * Encodes the specified Shard message, length delimited. Does not implicitly {@link topodata.Shard.verify|verify} messages. + * Encodes the specified VersionStringResponse message, length delimited. Does not implicitly {@link mysqlctl.VersionStringResponse.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.Shard + * @memberof mysqlctl.VersionStringResponse * @static - * @param {topodata.IShard} message Shard message or plain object to encode + * @param {mysqlctl.IVersionStringResponse} message VersionStringResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Shard.encodeDelimited = function encodeDelimited(message, writer) { + VersionStringResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Shard message from the specified reader or buffer. + * Decodes a VersionStringResponse message from the specified reader or buffer. * @function decode - * @memberof topodata.Shard + * @memberof mysqlctl.VersionStringResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.Shard} Shard + * @returns {mysqlctl.VersionStringResponse} VersionStringResponse * @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) { + VersionStringResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.Shard(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.VersionStringResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.primary_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 8: { - message.primary_term_start_time = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 2: { - message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); - break; - } - case 4: { - if (!(message.source_shards && message.source_shards.length)) - message.source_shards = []; - message.source_shards.push($root.topodata.Shard.SourceShard.decode(reader, reader.uint32())); - break; - } - case 6: { - if (!(message.tablet_controls && message.tablet_controls.length)) - message.tablet_controls = []; - message.tablet_controls.push($root.topodata.Shard.TabletControl.decode(reader, reader.uint32())); - break; - } - case 7: { - message.is_primary_serving = reader.bool(); + message.version = reader.string(); break; } default: @@ -42576,534 +42079,541 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a Shard message from the specified reader or buffer, length delimited. + * Decodes a VersionStringResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.Shard + * @memberof mysqlctl.VersionStringResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.Shard} Shard + * @returns {mysqlctl.VersionStringResponse} VersionStringResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Shard.decodeDelimited = function decodeDelimited(reader) { + VersionStringResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Shard message. + * Verifies a VersionStringResponse message. * @function verify - * @memberof topodata.Shard + * @memberof mysqlctl.VersionStringResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Shard.verify = function verify(message) { + VersionStringResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.primary_alias != null && message.hasOwnProperty("primary_alias")) { - let error = $root.topodata.TabletAlias.verify(message.primary_alias); - if (error) - return "primary_alias." + error; - } - if (message.primary_term_start_time != null && message.hasOwnProperty("primary_term_start_time")) { - let error = $root.vttime.Time.verify(message.primary_term_start_time); - if (error) - return "primary_term_start_time." + error; - } - if (message.key_range != null && message.hasOwnProperty("key_range")) { - let error = $root.topodata.KeyRange.verify(message.key_range); - if (error) - return "key_range." + error; - } - if (message.source_shards != null && message.hasOwnProperty("source_shards")) { - if (!Array.isArray(message.source_shards)) - return "source_shards: array expected"; - for (let i = 0; i < message.source_shards.length; ++i) { - let error = $root.topodata.Shard.SourceShard.verify(message.source_shards[i]); - if (error) - return "source_shards." + error; - } - } - if (message.tablet_controls != null && message.hasOwnProperty("tablet_controls")) { - if (!Array.isArray(message.tablet_controls)) - return "tablet_controls: array expected"; - for (let i = 0; i < message.tablet_controls.length; ++i) { - let error = $root.topodata.Shard.TabletControl.verify(message.tablet_controls[i]); - if (error) - return "tablet_controls." + error; - } - } - if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) - if (typeof message.is_primary_serving !== "boolean") - return "is_primary_serving: boolean expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; return null; }; /** - * Creates a Shard message from a plain object. Also converts values to their respective internal types. + * Creates a VersionStringResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.Shard + * @memberof mysqlctl.VersionStringResponse * @static * @param {Object.} object Plain object - * @returns {topodata.Shard} Shard + * @returns {mysqlctl.VersionStringResponse} VersionStringResponse */ - Shard.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.Shard) + VersionStringResponse.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.VersionStringResponse) return object; - let message = new $root.topodata.Shard(); - if (object.primary_alias != null) { - if (typeof object.primary_alias !== "object") - throw TypeError(".topodata.Shard.primary_alias: object expected"); - message.primary_alias = $root.topodata.TabletAlias.fromObject(object.primary_alias); - } - if (object.primary_term_start_time != null) { - if (typeof object.primary_term_start_time !== "object") - throw TypeError(".topodata.Shard.primary_term_start_time: object expected"); - message.primary_term_start_time = $root.vttime.Time.fromObject(object.primary_term_start_time); - } - if (object.key_range != null) { - if (typeof object.key_range !== "object") - throw TypeError(".topodata.Shard.key_range: object expected"); - message.key_range = $root.topodata.KeyRange.fromObject(object.key_range); - } - if (object.source_shards) { - if (!Array.isArray(object.source_shards)) - throw TypeError(".topodata.Shard.source_shards: array expected"); - message.source_shards = []; - for (let i = 0; i < object.source_shards.length; ++i) { - if (typeof object.source_shards[i] !== "object") - throw TypeError(".topodata.Shard.source_shards: object expected"); - message.source_shards[i] = $root.topodata.Shard.SourceShard.fromObject(object.source_shards[i]); - } - } - if (object.tablet_controls) { - if (!Array.isArray(object.tablet_controls)) - throw TypeError(".topodata.Shard.tablet_controls: array expected"); - message.tablet_controls = []; - for (let i = 0; i < object.tablet_controls.length; ++i) { - if (typeof object.tablet_controls[i] !== "object") - throw TypeError(".topodata.Shard.tablet_controls: object expected"); - message.tablet_controls[i] = $root.topodata.Shard.TabletControl.fromObject(object.tablet_controls[i]); - } - } - if (object.is_primary_serving != null) - message.is_primary_serving = Boolean(object.is_primary_serving); + let message = new $root.mysqlctl.VersionStringResponse(); + if (object.version != null) + message.version = String(object.version); return message; }; /** - * Creates a plain object from a Shard message. Also converts values to other types if specified. + * Creates a plain object from a VersionStringResponse message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.Shard + * @memberof mysqlctl.VersionStringResponse * @static - * @param {topodata.Shard} message Shard + * @param {mysqlctl.VersionStringResponse} message VersionStringResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Shard.toObject = function toObject(message, options) { + VersionStringResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.source_shards = []; - object.tablet_controls = []; - } - if (options.defaults) { - object.primary_alias = null; - object.key_range = null; - object.is_primary_serving = false; - object.primary_term_start_time = null; - } - if (message.primary_alias != null && message.hasOwnProperty("primary_alias")) - object.primary_alias = $root.topodata.TabletAlias.toObject(message.primary_alias, options); - if (message.key_range != null && message.hasOwnProperty("key_range")) - object.key_range = $root.topodata.KeyRange.toObject(message.key_range, options); - if (message.source_shards && message.source_shards.length) { - object.source_shards = []; - for (let j = 0; j < message.source_shards.length; ++j) - object.source_shards[j] = $root.topodata.Shard.SourceShard.toObject(message.source_shards[j], options); - } - if (message.tablet_controls && message.tablet_controls.length) { - object.tablet_controls = []; - for (let j = 0; j < message.tablet_controls.length; ++j) - object.tablet_controls[j] = $root.topodata.Shard.TabletControl.toObject(message.tablet_controls[j], options); - } - if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) - object.is_primary_serving = message.is_primary_serving; - if (message.primary_term_start_time != null && message.hasOwnProperty("primary_term_start_time")) - object.primary_term_start_time = $root.vttime.Time.toObject(message.primary_term_start_time, options); + if (options.defaults) + object.version = ""; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; return object; }; /** - * Converts this Shard to JSON. + * Converts this VersionStringResponse to JSON. * @function toJSON - * @memberof topodata.Shard + * @memberof mysqlctl.VersionStringResponse * @instance * @returns {Object.} JSON object */ - Shard.prototype.toJSON = function toJSON() { + VersionStringResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Shard + * Gets the default type url for VersionStringResponse * @function getTypeUrl - * @memberof topodata.Shard + * @memberof mysqlctl.VersionStringResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Shard.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VersionStringResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.Shard"; + return typeUrlPrefix + "/mysqlctl.VersionStringResponse"; }; - Shard.SourceShard = (function() { - - /** - * Properties of a SourceShard. - * @memberof topodata.Shard - * @interface ISourceShard - * @property {number|null} [uid] SourceShard uid - * @property {string|null} [keyspace] SourceShard keyspace - * @property {string|null} [shard] SourceShard shard - * @property {topodata.IKeyRange|null} [key_range] SourceShard key_range - * @property {Array.|null} [tables] SourceShard tables - */ + return VersionStringResponse; + })(); - /** - * Constructs a new SourceShard. - * @memberof topodata.Shard - * @classdesc Represents a SourceShard. - * @implements ISourceShard - * @constructor - * @param {topodata.Shard.ISourceShard=} [properties] Properties to set - */ - function SourceShard(properties) { - this.tables = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + mysqlctl.HostMetricsRequest = (function() { - /** - * SourceShard uid. - * @member {number} uid - * @memberof topodata.Shard.SourceShard - * @instance - */ - SourceShard.prototype.uid = 0; + /** + * Properties of a HostMetricsRequest. + * @memberof mysqlctl + * @interface IHostMetricsRequest + */ - /** - * SourceShard keyspace. - * @member {string} keyspace - * @memberof topodata.Shard.SourceShard - * @instance - */ - SourceShard.prototype.keyspace = ""; + /** + * Constructs a new HostMetricsRequest. + * @memberof mysqlctl + * @classdesc Represents a HostMetricsRequest. + * @implements IHostMetricsRequest + * @constructor + * @param {mysqlctl.IHostMetricsRequest=} [properties] Properties to set + */ + function HostMetricsRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * SourceShard shard. - * @member {string} shard - * @memberof topodata.Shard.SourceShard - * @instance - */ - SourceShard.prototype.shard = ""; + /** + * Creates a new HostMetricsRequest instance using the specified properties. + * @function create + * @memberof mysqlctl.HostMetricsRequest + * @static + * @param {mysqlctl.IHostMetricsRequest=} [properties] Properties to set + * @returns {mysqlctl.HostMetricsRequest} HostMetricsRequest instance + */ + HostMetricsRequest.create = function create(properties) { + return new HostMetricsRequest(properties); + }; - /** - * SourceShard key_range. - * @member {topodata.IKeyRange|null|undefined} key_range - * @memberof topodata.Shard.SourceShard - * @instance - */ - SourceShard.prototype.key_range = null; + /** + * Encodes the specified HostMetricsRequest message. Does not implicitly {@link mysqlctl.HostMetricsRequest.verify|verify} messages. + * @function encode + * @memberof mysqlctl.HostMetricsRequest + * @static + * @param {mysqlctl.IHostMetricsRequest} message HostMetricsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HostMetricsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * SourceShard tables. - * @member {Array.} tables - * @memberof topodata.Shard.SourceShard - * @instance - */ - SourceShard.prototype.tables = $util.emptyArray; + /** + * Encodes the specified HostMetricsRequest message, length delimited. Does not implicitly {@link mysqlctl.HostMetricsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof mysqlctl.HostMetricsRequest + * @static + * @param {mysqlctl.IHostMetricsRequest} message HostMetricsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HostMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a new SourceShard instance using the specified properties. - * @function create - * @memberof topodata.Shard.SourceShard - * @static - * @param {topodata.Shard.ISourceShard=} [properties] Properties to set - * @returns {topodata.Shard.SourceShard} SourceShard instance - */ - SourceShard.create = function create(properties) { - return new SourceShard(properties); - }; + /** + * Decodes a HostMetricsRequest message from the specified reader or buffer. + * @function decode + * @memberof mysqlctl.HostMetricsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {mysqlctl.HostMetricsRequest} HostMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HostMetricsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.HostMetricsRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified SourceShard message. Does not implicitly {@link topodata.Shard.SourceShard.verify|verify} messages. - * @function encode - * @memberof topodata.Shard.SourceShard - * @static - * @param {topodata.Shard.ISourceShard} message SourceShard message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SourceShard.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.uid); - 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.key_range != null && Object.hasOwnProperty.call(message, "key_range")) - $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.tables != null && message.tables.length) - for (let i = 0; i < message.tables.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.tables[i]); - return writer; - }; + /** + * Decodes a HostMetricsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof mysqlctl.HostMetricsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {mysqlctl.HostMetricsRequest} HostMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HostMetricsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified SourceShard message, length delimited. Does not implicitly {@link topodata.Shard.SourceShard.verify|verify} messages. - * @function encodeDelimited - * @memberof topodata.Shard.SourceShard - * @static - * @param {topodata.Shard.ISourceShard} message SourceShard message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SourceShard.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a HostMetricsRequest message. + * @function verify + * @memberof mysqlctl.HostMetricsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HostMetricsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Decodes a SourceShard message from the specified reader or buffer. - * @function decode - * @memberof topodata.Shard.SourceShard - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {topodata.Shard.SourceShard} SourceShard - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SourceShard.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.Shard.SourceShard(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.uid = reader.int32(); - break; - } - case 2: { - message.keyspace = reader.string(); - break; - } - case 3: { - message.shard = reader.string(); - break; - } - case 4: { - message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); - break; - } - case 5: { - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a HostMetricsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof mysqlctl.HostMetricsRequest + * @static + * @param {Object.} object Plain object + * @returns {mysqlctl.HostMetricsRequest} HostMetricsRequest + */ + HostMetricsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.HostMetricsRequest) + return object; + return new $root.mysqlctl.HostMetricsRequest(); + }; - /** - * Decodes a SourceShard message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof topodata.Shard.SourceShard - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.Shard.SourceShard} SourceShard - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SourceShard.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a HostMetricsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof mysqlctl.HostMetricsRequest + * @static + * @param {mysqlctl.HostMetricsRequest} message HostMetricsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HostMetricsRequest.toObject = function toObject() { + return {}; + }; - /** - * Verifies a SourceShard message. - * @function verify - * @memberof topodata.Shard.SourceShard - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SourceShard.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isInteger(message.uid)) - return "uid: integer 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.key_range != null && message.hasOwnProperty("key_range")) { - let error = $root.topodata.KeyRange.verify(message.key_range); - if (error) - return "key_range." + error; - } - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!Array.isArray(message.tables)) - return "tables: array expected"; - for (let i = 0; i < message.tables.length; ++i) - if (!$util.isString(message.tables[i])) - return "tables: string[] expected"; - } - return null; - }; + /** + * Converts this HostMetricsRequest to JSON. + * @function toJSON + * @memberof mysqlctl.HostMetricsRequest + * @instance + * @returns {Object.} JSON object + */ + HostMetricsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a SourceShard message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof topodata.Shard.SourceShard - * @static - * @param {Object.} object Plain object - * @returns {topodata.Shard.SourceShard} SourceShard - */ - SourceShard.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.Shard.SourceShard) - return object; - let message = new $root.topodata.Shard.SourceShard(); - if (object.uid != null) - message.uid = object.uid | 0; - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.key_range != null) { - if (typeof object.key_range !== "object") - throw TypeError(".topodata.Shard.SourceShard.key_range: object expected"); - message.key_range = $root.topodata.KeyRange.fromObject(object.key_range); - } - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".topodata.Shard.SourceShard.tables: array expected"); - message.tables = []; - for (let i = 0; i < object.tables.length; ++i) - message.tables[i] = String(object.tables[i]); + /** + * Gets the default type url for HostMetricsRequest + * @function getTypeUrl + * @memberof mysqlctl.HostMetricsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HostMetricsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/mysqlctl.HostMetricsRequest"; + }; + + return HostMetricsRequest; + })(); + + mysqlctl.HostMetricsResponse = (function() { + + /** + * Properties of a HostMetricsResponse. + * @memberof mysqlctl + * @interface IHostMetricsResponse + * @property {Object.|null} [metrics] HostMetricsResponse metrics + */ + + /** + * Constructs a new HostMetricsResponse. + * @memberof mysqlctl + * @classdesc Represents a HostMetricsResponse. + * @implements IHostMetricsResponse + * @constructor + * @param {mysqlctl.IHostMetricsResponse=} [properties] Properties to set + */ + function HostMetricsResponse(properties) { + this.metrics = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HostMetricsResponse metrics. + * @member {Object.} metrics + * @memberof mysqlctl.HostMetricsResponse + * @instance + */ + HostMetricsResponse.prototype.metrics = $util.emptyObject; + + /** + * Creates a new HostMetricsResponse instance using the specified properties. + * @function create + * @memberof mysqlctl.HostMetricsResponse + * @static + * @param {mysqlctl.IHostMetricsResponse=} [properties] Properties to set + * @returns {mysqlctl.HostMetricsResponse} HostMetricsResponse instance + */ + HostMetricsResponse.create = function create(properties) { + return new HostMetricsResponse(properties); + }; + + /** + * Encodes the specified HostMetricsResponse message. Does not implicitly {@link mysqlctl.HostMetricsResponse.verify|verify} messages. + * @function encode + * @memberof mysqlctl.HostMetricsResponse + * @static + * @param {mysqlctl.IHostMetricsResponse} message HostMetricsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HostMetricsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) + for (let keys = Object.keys(message.metrics), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.mysqlctl.HostMetricsResponse.Metric.encode(message.metrics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); } - return message; - }; + return writer; + }; - /** - * Creates a plain object from a SourceShard message. Also converts values to other types if specified. - * @function toObject - * @memberof topodata.Shard.SourceShard - * @static - * @param {topodata.Shard.SourceShard} message SourceShard - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SourceShard.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.tables = []; - if (options.defaults) { - object.uid = 0; - object.keyspace = ""; - object.shard = ""; - object.key_range = null; + /** + * Encodes the specified HostMetricsResponse message, length delimited. Does not implicitly {@link mysqlctl.HostMetricsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof mysqlctl.HostMetricsResponse + * @static + * @param {mysqlctl.IHostMetricsResponse} message HostMetricsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HostMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HostMetricsResponse message from the specified reader or buffer. + * @function decode + * @memberof mysqlctl.HostMetricsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {mysqlctl.HostMetricsResponse} HostMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HostMetricsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.HostMetricsResponse(), key, value; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.metrics === $util.emptyObject) + message.metrics = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.mysqlctl.HostMetricsResponse.Metric.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.metrics[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.key_range != null && message.hasOwnProperty("key_range")) - object.key_range = $root.topodata.KeyRange.toObject(message.key_range, options); - if (message.tables && message.tables.length) { - object.tables = []; - for (let j = 0; j < message.tables.length; ++j) - object.tables[j] = message.tables[j]; + } + return message; + }; + + /** + * Decodes a HostMetricsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof mysqlctl.HostMetricsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {mysqlctl.HostMetricsResponse} HostMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HostMetricsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HostMetricsResponse message. + * @function verify + * @memberof mysqlctl.HostMetricsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HostMetricsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!$util.isObject(message.metrics)) + return "metrics: object expected"; + let key = Object.keys(message.metrics); + for (let i = 0; i < key.length; ++i) { + let error = $root.mysqlctl.HostMetricsResponse.Metric.verify(message.metrics[key[i]]); + if (error) + return "metrics." + error; } + } + return null; + }; + + /** + * Creates a HostMetricsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof mysqlctl.HostMetricsResponse + * @static + * @param {Object.} object Plain object + * @returns {mysqlctl.HostMetricsResponse} HostMetricsResponse + */ + HostMetricsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.HostMetricsResponse) return object; - }; + let message = new $root.mysqlctl.HostMetricsResponse(); + if (object.metrics) { + if (typeof object.metrics !== "object") + throw TypeError(".mysqlctl.HostMetricsResponse.metrics: object expected"); + message.metrics = {}; + for (let keys = Object.keys(object.metrics), i = 0; i < keys.length; ++i) { + if (typeof object.metrics[keys[i]] !== "object") + throw TypeError(".mysqlctl.HostMetricsResponse.metrics: object expected"); + message.metrics[keys[i]] = $root.mysqlctl.HostMetricsResponse.Metric.fromObject(object.metrics[keys[i]]); + } + } + return message; + }; - /** - * Converts this SourceShard to JSON. - * @function toJSON - * @memberof topodata.Shard.SourceShard - * @instance - * @returns {Object.} JSON object - */ - SourceShard.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a HostMetricsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof mysqlctl.HostMetricsResponse + * @static + * @param {mysqlctl.HostMetricsResponse} message HostMetricsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HostMetricsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) + object.metrics = {}; + let keys2; + if (message.metrics && (keys2 = Object.keys(message.metrics)).length) { + object.metrics = {}; + for (let j = 0; j < keys2.length; ++j) + object.metrics[keys2[j]] = $root.mysqlctl.HostMetricsResponse.Metric.toObject(message.metrics[keys2[j]], options); + } + return object; + }; - /** - * Gets the default type url for SourceShard - * @function getTypeUrl - * @memberof topodata.Shard.SourceShard - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SourceShard.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/topodata.Shard.SourceShard"; - }; + /** + * Converts this HostMetricsResponse to JSON. + * @function toJSON + * @memberof mysqlctl.HostMetricsResponse + * @instance + * @returns {Object.} JSON object + */ + HostMetricsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return SourceShard; - })(); + /** + * Gets the default type url for HostMetricsResponse + * @function getTypeUrl + * @memberof mysqlctl.HostMetricsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HostMetricsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/mysqlctl.HostMetricsResponse"; + }; - Shard.TabletControl = (function() { + HostMetricsResponse.Metric = (function() { /** - * Properties of a TabletControl. - * @memberof topodata.Shard - * @interface ITabletControl - * @property {topodata.TabletType|null} [tablet_type] TabletControl tablet_type - * @property {Array.|null} [cells] TabletControl cells - * @property {Array.|null} [denied_tables] TabletControl denied_tables - * @property {boolean|null} [frozen] TabletControl frozen + * Properties of a Metric. + * @memberof mysqlctl.HostMetricsResponse + * @interface IMetric + * @property {string|null} [name] Metric name + * @property {number|null} [value] Metric value + * @property {vtrpc.IRPCError|null} [error] Metric error */ /** - * Constructs a new TabletControl. - * @memberof topodata.Shard - * @classdesc Represents a TabletControl. - * @implements ITabletControl + * Constructs a new Metric. + * @memberof mysqlctl.HostMetricsResponse + * @classdesc Represents a Metric. + * @implements IMetric * @constructor - * @param {topodata.Shard.ITabletControl=} [properties] Properties to set + * @param {mysqlctl.HostMetricsResponse.IMetric=} [properties] Properties to set */ - function TabletControl(properties) { - this.cells = []; - this.denied_tables = []; + function Metric(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43111,123 +42621,103 @@ export const topodata = $root.topodata = (() => { } /** - * TabletControl tablet_type. - * @member {topodata.TabletType} tablet_type - * @memberof topodata.Shard.TabletControl - * @instance - */ - TabletControl.prototype.tablet_type = 0; - - /** - * TabletControl cells. - * @member {Array.} cells - * @memberof topodata.Shard.TabletControl + * Metric name. + * @member {string} name + * @memberof mysqlctl.HostMetricsResponse.Metric * @instance */ - TabletControl.prototype.cells = $util.emptyArray; + Metric.prototype.name = ""; /** - * TabletControl denied_tables. - * @member {Array.} denied_tables - * @memberof topodata.Shard.TabletControl + * Metric value. + * @member {number} value + * @memberof mysqlctl.HostMetricsResponse.Metric * @instance */ - TabletControl.prototype.denied_tables = $util.emptyArray; + Metric.prototype.value = 0; /** - * TabletControl frozen. - * @member {boolean} frozen - * @memberof topodata.Shard.TabletControl + * Metric error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof mysqlctl.HostMetricsResponse.Metric * @instance */ - TabletControl.prototype.frozen = false; + Metric.prototype.error = null; /** - * Creates a new TabletControl instance using the specified properties. + * Creates a new Metric instance using the specified properties. * @function create - * @memberof topodata.Shard.TabletControl + * @memberof mysqlctl.HostMetricsResponse.Metric * @static - * @param {topodata.Shard.ITabletControl=} [properties] Properties to set - * @returns {topodata.Shard.TabletControl} TabletControl instance + * @param {mysqlctl.HostMetricsResponse.IMetric=} [properties] Properties to set + * @returns {mysqlctl.HostMetricsResponse.Metric} Metric instance */ - TabletControl.create = function create(properties) { - return new TabletControl(properties); + Metric.create = function create(properties) { + return new Metric(properties); }; /** - * Encodes the specified TabletControl message. Does not implicitly {@link topodata.Shard.TabletControl.verify|verify} messages. + * Encodes the specified Metric message. Does not implicitly {@link mysqlctl.HostMetricsResponse.Metric.verify|verify} messages. * @function encode - * @memberof topodata.Shard.TabletControl + * @memberof mysqlctl.HostMetricsResponse.Metric * @static - * @param {topodata.Shard.ITabletControl} message TabletControl message or plain object to encode + * @param {mysqlctl.HostMetricsResponse.IMetric} message Metric message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TabletControl.encode = function encode(message, writer) { + Metric.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tablet_type); - if (message.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); - if (message.denied_tables != null && message.denied_tables.length) - for (let i = 0; i < message.denied_tables.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.denied_tables[i]); - if (message.frozen != null && Object.hasOwnProperty.call(message, "frozen")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.frozen); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.value); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified TabletControl message, length delimited. Does not implicitly {@link topodata.Shard.TabletControl.verify|verify} messages. + * Encodes the specified Metric message, length delimited. Does not implicitly {@link mysqlctl.HostMetricsResponse.Metric.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.Shard.TabletControl + * @memberof mysqlctl.HostMetricsResponse.Metric * @static - * @param {topodata.Shard.ITabletControl} message TabletControl message or plain object to encode + * @param {mysqlctl.HostMetricsResponse.IMetric} message Metric message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TabletControl.encodeDelimited = function encodeDelimited(message, writer) { + Metric.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TabletControl message from the specified reader or buffer. + * Decodes a Metric message from the specified reader or buffer. * @function decode - * @memberof topodata.Shard.TabletControl + * @memberof mysqlctl.HostMetricsResponse.Metric * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.Shard.TabletControl} TabletControl + * @returns {mysqlctl.HostMetricsResponse.Metric} Metric * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TabletControl.decode = function decode(reader, length) { + Metric.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.Shard.TabletControl(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.HostMetricsResponse.Metric(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet_type = reader.int32(); + message.name = reader.string(); break; } case 2: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); - break; - } - case 4: { - if (!(message.denied_tables && message.denied_tables.length)) - message.denied_tables = []; - message.denied_tables.push(reader.string()); + message.value = reader.double(); break; } - case 5: { - message.frozen = reader.bool(); + case 3: { + message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); break; } default: @@ -43239,589 +42729,486 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a TabletControl message from the specified reader or buffer, length delimited. + * Decodes a Metric message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.Shard.TabletControl + * @memberof mysqlctl.HostMetricsResponse.Metric * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.Shard.TabletControl} TabletControl + * @returns {mysqlctl.HostMetricsResponse.Metric} Metric * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TabletControl.decodeDelimited = function decodeDelimited(reader) { + Metric.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TabletControl message. + * Verifies a Metric message. * @function verify - * @memberof topodata.Shard.TabletControl + * @memberof mysqlctl.HostMetricsResponse.Metric * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TabletControl.verify = function verify(message) { + Metric.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } - if (message.denied_tables != null && message.hasOwnProperty("denied_tables")) { - if (!Array.isArray(message.denied_tables)) - return "denied_tables: array expected"; - for (let i = 0; i < message.denied_tables.length; ++i) - if (!$util.isString(message.denied_tables[i])) - return "denied_tables: string[] expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + if (message.error != null && message.hasOwnProperty("error")) { + let error = $root.vtrpc.RPCError.verify(message.error); + if (error) + return "error." + error; } - if (message.frozen != null && message.hasOwnProperty("frozen")) - if (typeof message.frozen !== "boolean") - return "frozen: boolean expected"; return null; }; /** - * Creates a TabletControl message from a plain object. Also converts values to their respective internal types. + * Creates a Metric message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.Shard.TabletControl + * @memberof mysqlctl.HostMetricsResponse.Metric * @static * @param {Object.} object Plain object - * @returns {topodata.Shard.TabletControl} TabletControl + * @returns {mysqlctl.HostMetricsResponse.Metric} Metric */ - TabletControl.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.Shard.TabletControl) + Metric.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.HostMetricsResponse.Metric) return object; - let message = new $root.topodata.Shard.TabletControl(); - switch (object.tablet_type) { - default: - if (typeof object.tablet_type === "number") { - message.tablet_type = object.tablet_type; - break; - } - break; - 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.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".topodata.Shard.TabletControl.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } - if (object.denied_tables) { - if (!Array.isArray(object.denied_tables)) - throw TypeError(".topodata.Shard.TabletControl.denied_tables: array expected"); - message.denied_tables = []; - for (let i = 0; i < object.denied_tables.length; ++i) - message.denied_tables[i] = String(object.denied_tables[i]); + let message = new $root.mysqlctl.HostMetricsResponse.Metric(); + if (object.name != null) + message.name = String(object.name); + if (object.value != null) + message.value = Number(object.value); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".mysqlctl.HostMetricsResponse.Metric.error: object expected"); + message.error = $root.vtrpc.RPCError.fromObject(object.error); } - if (object.frozen != null) - message.frozen = Boolean(object.frozen); return message; }; /** - * Creates a plain object from a TabletControl message. Also converts values to other types if specified. + * Creates a plain object from a Metric message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.Shard.TabletControl + * @memberof mysqlctl.HostMetricsResponse.Metric * @static - * @param {topodata.Shard.TabletControl} message TabletControl + * @param {mysqlctl.HostMetricsResponse.Metric} message Metric * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TabletControl.toObject = function toObject(message, options) { + Metric.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.cells = []; - object.denied_tables = []; - } if (options.defaults) { - object.tablet_type = options.enums === String ? "UNKNOWN" : 0; - object.frozen = false; - } - if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) - object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] === undefined ? message.tablet_type : $root.topodata.TabletType[message.tablet_type] : message.tablet_type; - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } - if (message.denied_tables && message.denied_tables.length) { - object.denied_tables = []; - for (let j = 0; j < message.denied_tables.length; ++j) - object.denied_tables[j] = message.denied_tables[j]; + object.name = ""; + object.value = 0; + object.error = null; } - if (message.frozen != null && message.hasOwnProperty("frozen")) - object.frozen = message.frozen; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.vtrpc.RPCError.toObject(message.error, options); return object; }; /** - * Converts this TabletControl to JSON. + * Converts this Metric to JSON. * @function toJSON - * @memberof topodata.Shard.TabletControl + * @memberof mysqlctl.HostMetricsResponse.Metric * @instance * @returns {Object.} JSON object */ - TabletControl.prototype.toJSON = function toJSON() { + Metric.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TabletControl + * Gets the default type url for Metric * @function getTypeUrl - * @memberof topodata.Shard.TabletControl + * @memberof mysqlctl.HostMetricsResponse.Metric * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TabletControl.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.Shard.TabletControl"; + return typeUrlPrefix + "/mysqlctl.HostMetricsResponse.Metric"; }; - return TabletControl; + return Metric; })(); - return Shard; + return HostMetricsResponse; })(); - topodata.Keyspace = (function() { + mysqlctl.MysqlCtl = (function() { /** - * Properties of a Keyspace. - * @memberof topodata - * @interface IKeyspace - * @property {topodata.KeyspaceType|null} [keyspace_type] Keyspace keyspace_type - * @property {string|null} [base_keyspace] Keyspace base_keyspace - * @property {vttime.ITime|null} [snapshot_time] Keyspace snapshot_time - * @property {string|null} [durability_policy] Keyspace durability_policy - * @property {topodata.IThrottlerConfig|null} [throttler_config] Keyspace throttler_config - * @property {string|null} [sidecar_db_name] Keyspace sidecar_db_name + * Constructs a new MysqlCtl service. + * @memberof mysqlctl + * @classdesc Represents a MysqlCtl + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function MysqlCtl(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (MysqlCtl.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MysqlCtl; /** - * Constructs a new Keyspace. - * @memberof topodata - * @classdesc Represents a Keyspace. - * @implements IKeyspace - * @constructor - * @param {topodata.IKeyspace=} [properties] Properties to set + * Creates new MysqlCtl service using the specified rpc implementation. + * @function create + * @memberof mysqlctl.MysqlCtl + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {MysqlCtl} RPC service. Useful where requests and/or responses are streamed. */ - function Keyspace(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + MysqlCtl.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * Keyspace keyspace_type. - * @member {topodata.KeyspaceType} keyspace_type - * @memberof topodata.Keyspace - * @instance + * Callback as used by {@link mysqlctl.MysqlCtl#start}. + * @memberof mysqlctl.MysqlCtl + * @typedef StartCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {mysqlctl.StartResponse} [response] StartResponse */ - Keyspace.prototype.keyspace_type = 0; /** - * Keyspace base_keyspace. - * @member {string} base_keyspace - * @memberof topodata.Keyspace + * Calls Start. + * @function start + * @memberof mysqlctl.MysqlCtl * @instance + * @param {mysqlctl.IStartRequest} request StartRequest message or plain object + * @param {mysqlctl.MysqlCtl.StartCallback} callback Node-style callback called with the error, if any, and StartResponse + * @returns {undefined} + * @variation 1 */ - Keyspace.prototype.base_keyspace = ""; + Object.defineProperty(MysqlCtl.prototype.start = function start(request, callback) { + return this.rpcCall(start, $root.mysqlctl.StartRequest, $root.mysqlctl.StartResponse, request, callback); + }, "name", { value: "Start" }); /** - * Keyspace snapshot_time. - * @member {vttime.ITime|null|undefined} snapshot_time - * @memberof topodata.Keyspace + * Calls Start. + * @function start + * @memberof mysqlctl.MysqlCtl * @instance + * @param {mysqlctl.IStartRequest} request StartRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Keyspace.prototype.snapshot_time = null; /** - * Keyspace durability_policy. - * @member {string} durability_policy - * @memberof topodata.Keyspace - * @instance + * Callback as used by {@link mysqlctl.MysqlCtl#shutdown}. + * @memberof mysqlctl.MysqlCtl + * @typedef ShutdownCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {mysqlctl.ShutdownResponse} [response] ShutdownResponse */ - Keyspace.prototype.durability_policy = ""; /** - * Keyspace throttler_config. - * @member {topodata.IThrottlerConfig|null|undefined} throttler_config - * @memberof topodata.Keyspace + * Calls Shutdown. + * @function shutdown + * @memberof mysqlctl.MysqlCtl * @instance + * @param {mysqlctl.IShutdownRequest} request ShutdownRequest message or plain object + * @param {mysqlctl.MysqlCtl.ShutdownCallback} callback Node-style callback called with the error, if any, and ShutdownResponse + * @returns {undefined} + * @variation 1 */ - Keyspace.prototype.throttler_config = null; + Object.defineProperty(MysqlCtl.prototype.shutdown = function shutdown(request, callback) { + return this.rpcCall(shutdown, $root.mysqlctl.ShutdownRequest, $root.mysqlctl.ShutdownResponse, request, callback); + }, "name", { value: "Shutdown" }); /** - * Keyspace sidecar_db_name. - * @member {string} sidecar_db_name - * @memberof topodata.Keyspace + * Calls Shutdown. + * @function shutdown + * @memberof mysqlctl.MysqlCtl * @instance + * @param {mysqlctl.IShutdownRequest} request ShutdownRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Keyspace.prototype.sidecar_db_name = ""; /** - * Creates a new Keyspace instance using the specified properties. - * @function create - * @memberof topodata.Keyspace - * @static - * @param {topodata.IKeyspace=} [properties] Properties to set - * @returns {topodata.Keyspace} Keyspace instance + * Callback as used by {@link mysqlctl.MysqlCtl#runMysqlUpgrade}. + * @memberof mysqlctl.MysqlCtl + * @typedef RunMysqlUpgradeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {mysqlctl.RunMysqlUpgradeResponse} [response] RunMysqlUpgradeResponse */ - Keyspace.create = function create(properties) { - return new Keyspace(properties); - }; /** - * Encodes the specified Keyspace message. Does not implicitly {@link topodata.Keyspace.verify|verify} messages. - * @function encode - * @memberof topodata.Keyspace - * @static - * @param {topodata.IKeyspace} message Keyspace message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls RunMysqlUpgrade. + * @function runMysqlUpgrade + * @memberof mysqlctl.MysqlCtl + * @instance + * @param {mysqlctl.IRunMysqlUpgradeRequest} request RunMysqlUpgradeRequest message or plain object + * @param {mysqlctl.MysqlCtl.RunMysqlUpgradeCallback} callback Node-style callback called with the error, if any, and RunMysqlUpgradeResponse + * @returns {undefined} + * @variation 1 */ - Keyspace.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.keyspace_type != null && Object.hasOwnProperty.call(message, "keyspace_type")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.keyspace_type); - if (message.base_keyspace != null && Object.hasOwnProperty.call(message, "base_keyspace")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.base_keyspace); - if (message.snapshot_time != null && Object.hasOwnProperty.call(message, "snapshot_time")) - $root.vttime.Time.encode(message.snapshot_time, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.durability_policy != null && Object.hasOwnProperty.call(message, "durability_policy")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.durability_policy); - if (message.throttler_config != null && Object.hasOwnProperty.call(message, "throttler_config")) - $root.topodata.ThrottlerConfig.encode(message.throttler_config, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.sidecar_db_name != null && Object.hasOwnProperty.call(message, "sidecar_db_name")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.sidecar_db_name); - return writer; - }; + Object.defineProperty(MysqlCtl.prototype.runMysqlUpgrade = function runMysqlUpgrade(request, callback) { + return this.rpcCall(runMysqlUpgrade, $root.mysqlctl.RunMysqlUpgradeRequest, $root.mysqlctl.RunMysqlUpgradeResponse, request, callback); + }, "name", { value: "RunMysqlUpgrade" }); /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link topodata.Keyspace.verify|verify} messages. - * @function encodeDelimited - * @memberof topodata.Keyspace - * @static - * @param {topodata.IKeyspace} message Keyspace message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls RunMysqlUpgrade. + * @function runMysqlUpgrade + * @memberof mysqlctl.MysqlCtl + * @instance + * @param {mysqlctl.IRunMysqlUpgradeRequest} request RunMysqlUpgradeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Keyspace.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a Keyspace message from the specified reader or buffer. - * @function decode - * @memberof topodata.Keyspace - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {topodata.Keyspace} Keyspace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link mysqlctl.MysqlCtl#applyBinlogFile}. + * @memberof mysqlctl.MysqlCtl + * @typedef ApplyBinlogFileCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {mysqlctl.ApplyBinlogFileResponse} [response] ApplyBinlogFileResponse */ - Keyspace.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.Keyspace(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 5: { - message.keyspace_type = reader.int32(); - break; - } - case 6: { - message.base_keyspace = reader.string(); - break; - } - case 7: { - message.snapshot_time = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 8: { - message.durability_policy = reader.string(); - break; - } - case 9: { - message.throttler_config = $root.topodata.ThrottlerConfig.decode(reader, reader.uint32()); - break; - } - case 10: { - message.sidecar_db_name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof topodata.Keyspace - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.Keyspace} Keyspace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ApplyBinlogFile. + * @function applyBinlogFile + * @memberof mysqlctl.MysqlCtl + * @instance + * @param {mysqlctl.IApplyBinlogFileRequest} request ApplyBinlogFileRequest message or plain object + * @param {mysqlctl.MysqlCtl.ApplyBinlogFileCallback} callback Node-style callback called with the error, if any, and ApplyBinlogFileResponse + * @returns {undefined} + * @variation 1 */ - Keyspace.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(MysqlCtl.prototype.applyBinlogFile = function applyBinlogFile(request, callback) { + return this.rpcCall(applyBinlogFile, $root.mysqlctl.ApplyBinlogFileRequest, $root.mysqlctl.ApplyBinlogFileResponse, request, callback); + }, "name", { value: "ApplyBinlogFile" }); /** - * Verifies a Keyspace message. - * @function verify - * @memberof topodata.Keyspace - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ApplyBinlogFile. + * @function applyBinlogFile + * @memberof mysqlctl.MysqlCtl + * @instance + * @param {mysqlctl.IApplyBinlogFileRequest} request ApplyBinlogFileRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Keyspace.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyspace_type != null && message.hasOwnProperty("keyspace_type")) - switch (message.keyspace_type) { - default: - return "keyspace_type: enum value expected"; - case 0: - case 1: - break; - } - if (message.base_keyspace != null && message.hasOwnProperty("base_keyspace")) - if (!$util.isString(message.base_keyspace)) - return "base_keyspace: string expected"; - if (message.snapshot_time != null && message.hasOwnProperty("snapshot_time")) { - let error = $root.vttime.Time.verify(message.snapshot_time); - if (error) - return "snapshot_time." + error; - } - if (message.durability_policy != null && message.hasOwnProperty("durability_policy")) - if (!$util.isString(message.durability_policy)) - return "durability_policy: string expected"; - if (message.throttler_config != null && message.hasOwnProperty("throttler_config")) { - let error = $root.topodata.ThrottlerConfig.verify(message.throttler_config); - if (error) - return "throttler_config." + error; - } - if (message.sidecar_db_name != null && message.hasOwnProperty("sidecar_db_name")) - if (!$util.isString(message.sidecar_db_name)) - return "sidecar_db_name: string expected"; - return null; - }; /** - * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof topodata.Keyspace - * @static - * @param {Object.} object Plain object - * @returns {topodata.Keyspace} Keyspace - */ - Keyspace.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.Keyspace) - return object; - let message = new $root.topodata.Keyspace(); - switch (object.keyspace_type) { - default: - if (typeof object.keyspace_type === "number") { - message.keyspace_type = object.keyspace_type; - break; - } - break; - case "NORMAL": - case 0: - message.keyspace_type = 0; - break; - case "SNAPSHOT": - case 1: - message.keyspace_type = 1; - break; - } - if (object.base_keyspace != null) - message.base_keyspace = String(object.base_keyspace); - if (object.snapshot_time != null) { - if (typeof object.snapshot_time !== "object") - throw TypeError(".topodata.Keyspace.snapshot_time: object expected"); - message.snapshot_time = $root.vttime.Time.fromObject(object.snapshot_time); - } - if (object.durability_policy != null) - message.durability_policy = String(object.durability_policy); - if (object.throttler_config != null) { - if (typeof object.throttler_config !== "object") - throw TypeError(".topodata.Keyspace.throttler_config: object expected"); - message.throttler_config = $root.topodata.ThrottlerConfig.fromObject(object.throttler_config); - } - if (object.sidecar_db_name != null) - message.sidecar_db_name = String(object.sidecar_db_name); - return message; - }; + * Callback as used by {@link mysqlctl.MysqlCtl#readBinlogFilesTimestamps}. + * @memberof mysqlctl.MysqlCtl + * @typedef ReadBinlogFilesTimestampsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {mysqlctl.ReadBinlogFilesTimestampsResponse} [response] ReadBinlogFilesTimestampsResponse + */ /** - * Creates a plain object from a Keyspace message. Also converts values to other types if specified. - * @function toObject - * @memberof topodata.Keyspace - * @static - * @param {topodata.Keyspace} message Keyspace - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ReadBinlogFilesTimestamps. + * @function readBinlogFilesTimestamps + * @memberof mysqlctl.MysqlCtl + * @instance + * @param {mysqlctl.IReadBinlogFilesTimestampsRequest} request ReadBinlogFilesTimestampsRequest message or plain object + * @param {mysqlctl.MysqlCtl.ReadBinlogFilesTimestampsCallback} callback Node-style callback called with the error, if any, and ReadBinlogFilesTimestampsResponse + * @returns {undefined} + * @variation 1 */ - Keyspace.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.keyspace_type = options.enums === String ? "NORMAL" : 0; - object.base_keyspace = ""; - object.snapshot_time = null; - object.durability_policy = ""; - object.throttler_config = null; - object.sidecar_db_name = ""; - } - if (message.keyspace_type != null && message.hasOwnProperty("keyspace_type")) - object.keyspace_type = options.enums === String ? $root.topodata.KeyspaceType[message.keyspace_type] === undefined ? message.keyspace_type : $root.topodata.KeyspaceType[message.keyspace_type] : message.keyspace_type; - if (message.base_keyspace != null && message.hasOwnProperty("base_keyspace")) - object.base_keyspace = message.base_keyspace; - if (message.snapshot_time != null && message.hasOwnProperty("snapshot_time")) - object.snapshot_time = $root.vttime.Time.toObject(message.snapshot_time, options); - if (message.durability_policy != null && message.hasOwnProperty("durability_policy")) - object.durability_policy = message.durability_policy; - if (message.throttler_config != null && message.hasOwnProperty("throttler_config")) - object.throttler_config = $root.topodata.ThrottlerConfig.toObject(message.throttler_config, options); - if (message.sidecar_db_name != null && message.hasOwnProperty("sidecar_db_name")) - object.sidecar_db_name = message.sidecar_db_name; - return object; - }; + Object.defineProperty(MysqlCtl.prototype.readBinlogFilesTimestamps = function readBinlogFilesTimestamps(request, callback) { + return this.rpcCall(readBinlogFilesTimestamps, $root.mysqlctl.ReadBinlogFilesTimestampsRequest, $root.mysqlctl.ReadBinlogFilesTimestampsResponse, request, callback); + }, "name", { value: "ReadBinlogFilesTimestamps" }); /** - * Converts this Keyspace to JSON. - * @function toJSON - * @memberof topodata.Keyspace + * Calls ReadBinlogFilesTimestamps. + * @function readBinlogFilesTimestamps + * @memberof mysqlctl.MysqlCtl * @instance - * @returns {Object.} JSON object + * @param {mysqlctl.IReadBinlogFilesTimestampsRequest} request ReadBinlogFilesTimestampsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Keyspace.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for Keyspace - * @function getTypeUrl - * @memberof topodata.Keyspace - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link mysqlctl.MysqlCtl#reinitConfig}. + * @memberof mysqlctl.MysqlCtl + * @typedef ReinitConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {mysqlctl.ReinitConfigResponse} [response] ReinitConfigResponse */ - Keyspace.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/topodata.Keyspace"; - }; - return Keyspace; + /** + * Calls ReinitConfig. + * @function reinitConfig + * @memberof mysqlctl.MysqlCtl + * @instance + * @param {mysqlctl.IReinitConfigRequest} request ReinitConfigRequest message or plain object + * @param {mysqlctl.MysqlCtl.ReinitConfigCallback} callback Node-style callback called with the error, if any, and ReinitConfigResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MysqlCtl.prototype.reinitConfig = function reinitConfig(request, callback) { + return this.rpcCall(reinitConfig, $root.mysqlctl.ReinitConfigRequest, $root.mysqlctl.ReinitConfigResponse, request, callback); + }, "name", { value: "ReinitConfig" }); + + /** + * Calls ReinitConfig. + * @function reinitConfig + * @memberof mysqlctl.MysqlCtl + * @instance + * @param {mysqlctl.IReinitConfigRequest} request ReinitConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link mysqlctl.MysqlCtl#refreshConfig}. + * @memberof mysqlctl.MysqlCtl + * @typedef RefreshConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {mysqlctl.RefreshConfigResponse} [response] RefreshConfigResponse + */ + + /** + * Calls RefreshConfig. + * @function refreshConfig + * @memberof mysqlctl.MysqlCtl + * @instance + * @param {mysqlctl.IRefreshConfigRequest} request RefreshConfigRequest message or plain object + * @param {mysqlctl.MysqlCtl.RefreshConfigCallback} callback Node-style callback called with the error, if any, and RefreshConfigResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MysqlCtl.prototype.refreshConfig = function refreshConfig(request, callback) { + return this.rpcCall(refreshConfig, $root.mysqlctl.RefreshConfigRequest, $root.mysqlctl.RefreshConfigResponse, request, callback); + }, "name", { value: "RefreshConfig" }); + + /** + * Calls RefreshConfig. + * @function refreshConfig + * @memberof mysqlctl.MysqlCtl + * @instance + * @param {mysqlctl.IRefreshConfigRequest} request RefreshConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link mysqlctl.MysqlCtl#versionString}. + * @memberof mysqlctl.MysqlCtl + * @typedef VersionStringCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {mysqlctl.VersionStringResponse} [response] VersionStringResponse + */ + + /** + * Calls VersionString. + * @function versionString + * @memberof mysqlctl.MysqlCtl + * @instance + * @param {mysqlctl.IVersionStringRequest} request VersionStringRequest message or plain object + * @param {mysqlctl.MysqlCtl.VersionStringCallback} callback Node-style callback called with the error, if any, and VersionStringResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MysqlCtl.prototype.versionString = function versionString(request, callback) { + return this.rpcCall(versionString, $root.mysqlctl.VersionStringRequest, $root.mysqlctl.VersionStringResponse, request, callback); + }, "name", { value: "VersionString" }); + + /** + * Calls VersionString. + * @function versionString + * @memberof mysqlctl.MysqlCtl + * @instance + * @param {mysqlctl.IVersionStringRequest} request VersionStringRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link mysqlctl.MysqlCtl#hostMetrics}. + * @memberof mysqlctl.MysqlCtl + * @typedef HostMetricsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {mysqlctl.HostMetricsResponse} [response] HostMetricsResponse + */ + + /** + * Calls HostMetrics. + * @function hostMetrics + * @memberof mysqlctl.MysqlCtl + * @instance + * @param {mysqlctl.IHostMetricsRequest} request HostMetricsRequest message or plain object + * @param {mysqlctl.MysqlCtl.HostMetricsCallback} callback Node-style callback called with the error, if any, and HostMetricsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MysqlCtl.prototype.hostMetrics = function hostMetrics(request, callback) { + return this.rpcCall(hostMetrics, $root.mysqlctl.HostMetricsRequest, $root.mysqlctl.HostMetricsResponse, request, callback); + }, "name", { value: "HostMetrics" }); + + /** + * Calls HostMetrics. + * @function hostMetrics + * @memberof mysqlctl.MysqlCtl + * @instance + * @param {mysqlctl.IHostMetricsRequest} request HostMetricsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return MysqlCtl; })(); - topodata.ShardReplication = (function() { + mysqlctl.BackupInfo = (function() { /** - * Properties of a ShardReplication. - * @memberof topodata - * @interface IShardReplication - * @property {Array.|null} [nodes] ShardReplication nodes + * Properties of a BackupInfo. + * @memberof mysqlctl + * @interface IBackupInfo + * @property {string|null} [name] BackupInfo name + * @property {string|null} [directory] BackupInfo directory + * @property {string|null} [keyspace] BackupInfo keyspace + * @property {string|null} [shard] BackupInfo shard + * @property {topodata.ITabletAlias|null} [tablet_alias] BackupInfo tablet_alias + * @property {vttime.ITime|null} [time] BackupInfo time + * @property {string|null} [engine] BackupInfo engine + * @property {mysqlctl.BackupInfo.Status|null} [status] BackupInfo status */ /** - * Constructs a new ShardReplication. - * @memberof topodata - * @classdesc Represents a ShardReplication. - * @implements IShardReplication + * Constructs a new BackupInfo. + * @memberof mysqlctl + * @classdesc Represents a BackupInfo. + * @implements IBackupInfo * @constructor - * @param {topodata.IShardReplication=} [properties] Properties to set + * @param {mysqlctl.IBackupInfo=} [properties] Properties to set */ - function ShardReplication(properties) { - this.nodes = []; + function BackupInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43829,78 +43216,173 @@ export const topodata = $root.topodata = (() => { } /** - * ShardReplication nodes. - * @member {Array.} nodes - * @memberof topodata.ShardReplication + * BackupInfo name. + * @member {string} name + * @memberof mysqlctl.BackupInfo * @instance */ - ShardReplication.prototype.nodes = $util.emptyArray; + BackupInfo.prototype.name = ""; /** - * Creates a new ShardReplication instance using the specified properties. + * BackupInfo directory. + * @member {string} directory + * @memberof mysqlctl.BackupInfo + * @instance + */ + BackupInfo.prototype.directory = ""; + + /** + * BackupInfo keyspace. + * @member {string} keyspace + * @memberof mysqlctl.BackupInfo + * @instance + */ + BackupInfo.prototype.keyspace = ""; + + /** + * BackupInfo shard. + * @member {string} shard + * @memberof mysqlctl.BackupInfo + * @instance + */ + BackupInfo.prototype.shard = ""; + + /** + * BackupInfo tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof mysqlctl.BackupInfo + * @instance + */ + BackupInfo.prototype.tablet_alias = null; + + /** + * BackupInfo time. + * @member {vttime.ITime|null|undefined} time + * @memberof mysqlctl.BackupInfo + * @instance + */ + BackupInfo.prototype.time = null; + + /** + * BackupInfo engine. + * @member {string} engine + * @memberof mysqlctl.BackupInfo + * @instance + */ + BackupInfo.prototype.engine = ""; + + /** + * BackupInfo status. + * @member {mysqlctl.BackupInfo.Status} status + * @memberof mysqlctl.BackupInfo + * @instance + */ + BackupInfo.prototype.status = 0; + + /** + * Creates a new BackupInfo instance using the specified properties. * @function create - * @memberof topodata.ShardReplication + * @memberof mysqlctl.BackupInfo * @static - * @param {topodata.IShardReplication=} [properties] Properties to set - * @returns {topodata.ShardReplication} ShardReplication instance + * @param {mysqlctl.IBackupInfo=} [properties] Properties to set + * @returns {mysqlctl.BackupInfo} BackupInfo instance */ - ShardReplication.create = function create(properties) { - return new ShardReplication(properties); + BackupInfo.create = function create(properties) { + return new BackupInfo(properties); }; /** - * Encodes the specified ShardReplication message. Does not implicitly {@link topodata.ShardReplication.verify|verify} messages. + * Encodes the specified BackupInfo message. Does not implicitly {@link mysqlctl.BackupInfo.verify|verify} messages. * @function encode - * @memberof topodata.ShardReplication + * @memberof mysqlctl.BackupInfo * @static - * @param {topodata.IShardReplication} message ShardReplication message or plain object to encode + * @param {mysqlctl.IBackupInfo} message BackupInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplication.encode = function encode(message, writer) { + BackupInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nodes != null && message.nodes.length) - for (let i = 0; i < message.nodes.length; ++i) - $root.topodata.ShardReplication.Node.encode(message.nodes[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.directory != null && Object.hasOwnProperty.call(message, "directory")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.directory); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.shard); + 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.time != null && Object.hasOwnProperty.call(message, "time")) + $root.vttime.Time.encode(message.time, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.engine != null && Object.hasOwnProperty.call(message, "engine")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.engine); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.status); return writer; }; /** - * Encodes the specified ShardReplication message, length delimited. Does not implicitly {@link topodata.ShardReplication.verify|verify} messages. + * Encodes the specified BackupInfo message, length delimited. Does not implicitly {@link mysqlctl.BackupInfo.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.ShardReplication + * @memberof mysqlctl.BackupInfo * @static - * @param {topodata.IShardReplication} message ShardReplication message or plain object to encode + * @param {mysqlctl.IBackupInfo} message BackupInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplication.encodeDelimited = function encodeDelimited(message, writer) { + BackupInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardReplication message from the specified reader or buffer. + * Decodes a BackupInfo message from the specified reader or buffer. * @function decode - * @memberof topodata.ShardReplication + * @memberof mysqlctl.BackupInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.ShardReplication} ShardReplication + * @returns {mysqlctl.BackupInfo} BackupInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplication.decode = function decode(reader, length) { + BackupInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ShardReplication(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.BackupInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.nodes && message.nodes.length)) - message.nodes = []; - message.nodes.push($root.topodata.ShardReplication.Node.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + } + case 2: { + message.directory = reader.string(); + break; + } + case 3: { + message.keyspace = reader.string(); + break; + } + case 4: { + message.shard = reader.string(); + break; + } + case 5: { + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 6: { + message.time = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 7: { + message.engine = reader.string(); + break; + } + case 8: { + message.status = reader.int32(); break; } default: @@ -43912,348 +43394,256 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a ShardReplication message from the specified reader or buffer, length delimited. + * Decodes a BackupInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.ShardReplication + * @memberof mysqlctl.BackupInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.ShardReplication} ShardReplication + * @returns {mysqlctl.BackupInfo} BackupInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplication.decodeDelimited = function decodeDelimited(reader) { + BackupInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardReplication message. + * Verifies a BackupInfo message. * @function verify - * @memberof topodata.ShardReplication + * @memberof mysqlctl.BackupInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardReplication.verify = function verify(message) { + BackupInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.nodes != null && message.hasOwnProperty("nodes")) { - if (!Array.isArray(message.nodes)) - return "nodes: array expected"; - for (let i = 0; i < message.nodes.length; ++i) { - let error = $root.topodata.ShardReplication.Node.verify(message.nodes[i]); - if (error) - return "nodes." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.directory != null && message.hasOwnProperty("directory")) + if (!$util.isString(message.directory)) + return "directory: string expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.time != null && message.hasOwnProperty("time")) { + let error = $root.vttime.Time.verify(message.time); + if (error) + return "time." + error; } + if (message.engine != null && message.hasOwnProperty("engine")) + if (!$util.isString(message.engine)) + return "engine: string expected"; + if (message.status != null && message.hasOwnProperty("status")) + switch (message.status) { + default: + return "status: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } return null; }; /** - * Creates a ShardReplication message from a plain object. Also converts values to their respective internal types. + * Creates a BackupInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.ShardReplication + * @memberof mysqlctl.BackupInfo * @static * @param {Object.} object Plain object - * @returns {topodata.ShardReplication} ShardReplication + * @returns {mysqlctl.BackupInfo} BackupInfo */ - ShardReplication.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.ShardReplication) + BackupInfo.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.BackupInfo) return object; - let message = new $root.topodata.ShardReplication(); - if (object.nodes) { - if (!Array.isArray(object.nodes)) - throw TypeError(".topodata.ShardReplication.nodes: array expected"); - message.nodes = []; - for (let i = 0; i < object.nodes.length; ++i) { - if (typeof object.nodes[i] !== "object") - throw TypeError(".topodata.ShardReplication.nodes: object expected"); - message.nodes[i] = $root.topodata.ShardReplication.Node.fromObject(object.nodes[i]); + let message = new $root.mysqlctl.BackupInfo(); + if (object.name != null) + message.name = String(object.name); + if (object.directory != null) + message.directory = String(object.directory); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".mysqlctl.BackupInfo.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.time != null) { + if (typeof object.time !== "object") + throw TypeError(".mysqlctl.BackupInfo.time: object expected"); + message.time = $root.vttime.Time.fromObject(object.time); + } + if (object.engine != null) + message.engine = String(object.engine); + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; } + break; + case "UNKNOWN": + case 0: + message.status = 0; + break; + case "INCOMPLETE": + case 1: + message.status = 1; + break; + case "COMPLETE": + case 2: + message.status = 2; + break; + case "INVALID": + case 3: + message.status = 3; + break; + case "VALID": + case 4: + message.status = 4; + break; } return message; }; /** - * Creates a plain object from a ShardReplication message. Also converts values to other types if specified. + * Creates a plain object from a BackupInfo message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.ShardReplication + * @memberof mysqlctl.BackupInfo * @static - * @param {topodata.ShardReplication} message ShardReplication + * @param {mysqlctl.BackupInfo} message BackupInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardReplication.toObject = function toObject(message, options) { + BackupInfo.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.nodes = []; - if (message.nodes && message.nodes.length) { - object.nodes = []; - for (let j = 0; j < message.nodes.length; ++j) - object.nodes[j] = $root.topodata.ShardReplication.Node.toObject(message.nodes[j], options); + if (options.defaults) { + object.name = ""; + object.directory = ""; + object.keyspace = ""; + object.shard = ""; + object.tablet_alias = null; + object.time = null; + object.engine = ""; + object.status = options.enums === String ? "UNKNOWN" : 0; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.directory != null && message.hasOwnProperty("directory")) + object.directory = message.directory; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.time != null && message.hasOwnProperty("time")) + object.time = $root.vttime.Time.toObject(message.time, options); + if (message.engine != null && message.hasOwnProperty("engine")) + object.engine = message.engine; + if (message.status != null && message.hasOwnProperty("status")) + object.status = options.enums === String ? $root.mysqlctl.BackupInfo.Status[message.status] === undefined ? message.status : $root.mysqlctl.BackupInfo.Status[message.status] : message.status; return object; }; /** - * Converts this ShardReplication to JSON. + * Converts this BackupInfo to JSON. * @function toJSON - * @memberof topodata.ShardReplication + * @memberof mysqlctl.BackupInfo * @instance * @returns {Object.} JSON object */ - ShardReplication.prototype.toJSON = function toJSON() { + BackupInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardReplication + * Gets the default type url for BackupInfo * @function getTypeUrl - * @memberof topodata.ShardReplication + * @memberof mysqlctl.BackupInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardReplication.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BackupInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.ShardReplication"; + return typeUrlPrefix + "/mysqlctl.BackupInfo"; }; - ShardReplication.Node = (function() { - - /** - * Properties of a Node. - * @memberof topodata.ShardReplication - * @interface INode - * @property {topodata.ITabletAlias|null} [tablet_alias] Node tablet_alias - */ - - /** - * Constructs a new Node. - * @memberof topodata.ShardReplication - * @classdesc Represents a Node. - * @implements INode - * @constructor - * @param {topodata.ShardReplication.INode=} [properties] Properties to set - */ - function Node(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Node tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof topodata.ShardReplication.Node - * @instance - */ - Node.prototype.tablet_alias = null; - - /** - * Creates a new Node instance using the specified properties. - * @function create - * @memberof topodata.ShardReplication.Node - * @static - * @param {topodata.ShardReplication.INode=} [properties] Properties to set - * @returns {topodata.ShardReplication.Node} Node instance - */ - Node.create = function create(properties) { - return new Node(properties); - }; - - /** - * Encodes the specified Node message. Does not implicitly {@link topodata.ShardReplication.Node.verify|verify} messages. - * @function encode - * @memberof topodata.ShardReplication.Node - * @static - * @param {topodata.ShardReplication.INode} message Node message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Node.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(); - return writer; - }; - - /** - * Encodes the specified Node message, length delimited. Does not implicitly {@link topodata.ShardReplication.Node.verify|verify} messages. - * @function encodeDelimited - * @memberof topodata.ShardReplication.Node - * @static - * @param {topodata.ShardReplication.INode} message Node message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Node.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Node message from the specified reader or buffer. - * @function decode - * @memberof topodata.ShardReplication.Node - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {topodata.ShardReplication.Node} Node - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Node.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ShardReplication.Node(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Node message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof topodata.ShardReplication.Node - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.ShardReplication.Node} Node - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Node.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Node message. - * @function verify - * @memberof topodata.ShardReplication.Node - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Node.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - return null; - }; - - /** - * Creates a Node message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof topodata.ShardReplication.Node - * @static - * @param {Object.} object Plain object - * @returns {topodata.ShardReplication.Node} Node - */ - Node.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.ShardReplication.Node) - return object; - let message = new $root.topodata.ShardReplication.Node(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".topodata.ShardReplication.Node.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - return message; - }; - - /** - * Creates a plain object from a Node message. Also converts values to other types if specified. - * @function toObject - * @memberof topodata.ShardReplication.Node - * @static - * @param {topodata.ShardReplication.Node} message Node - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Node.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.tablet_alias = null; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - return object; - }; + /** + * Status enum. + * @name mysqlctl.BackupInfo.Status + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} INCOMPLETE=1 INCOMPLETE value + * @property {number} COMPLETE=2 COMPLETE value + * @property {number} INVALID=3 INVALID value + * @property {number} VALID=4 VALID value + */ + BackupInfo.Status = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "INCOMPLETE"] = 1; + values[valuesById[2] = "COMPLETE"] = 2; + values[valuesById[3] = "INVALID"] = 3; + values[valuesById[4] = "VALID"] = 4; + return values; + })(); - /** - * Converts this Node to JSON. - * @function toJSON - * @memberof topodata.ShardReplication.Node - * @instance - * @returns {Object.} JSON object - */ - Node.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return BackupInfo; + })(); - /** - * Gets the default type url for Node - * @function getTypeUrl - * @memberof topodata.ShardReplication.Node - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Node.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/topodata.ShardReplication.Node"; - }; + return mysqlctl; +})(); - return Node; - })(); +export const topodata = $root.topodata = (() => { - return ShardReplication; - })(); + /** + * Namespace topodata. + * @exports topodata + * @namespace + */ + const topodata = {}; - topodata.ShardReplicationError = (function() { + topodata.KeyRange = (function() { /** - * Properties of a ShardReplicationError. + * Properties of a KeyRange. * @memberof topodata - * @interface IShardReplicationError - * @property {topodata.ShardReplicationError.Type|null} [type] ShardReplicationError type - * @property {topodata.ITabletAlias|null} [tablet_alias] ShardReplicationError tablet_alias + * @interface IKeyRange + * @property {Uint8Array|null} [start] KeyRange start + * @property {Uint8Array|null} [end] KeyRange end */ /** - * Constructs a new ShardReplicationError. + * Constructs a new KeyRange. * @memberof topodata - * @classdesc Represents a ShardReplicationError. - * @implements IShardReplicationError + * @classdesc Represents a KeyRange. + * @implements IKeyRange * @constructor - * @param {topodata.IShardReplicationError=} [properties] Properties to set + * @param {topodata.IKeyRange=} [properties] Properties to set */ - function ShardReplicationError(properties) { + function KeyRange(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44261,89 +43651,89 @@ export const topodata = $root.topodata = (() => { } /** - * ShardReplicationError type. - * @member {topodata.ShardReplicationError.Type} type - * @memberof topodata.ShardReplicationError + * KeyRange start. + * @member {Uint8Array} start + * @memberof topodata.KeyRange * @instance */ - ShardReplicationError.prototype.type = 0; + KeyRange.prototype.start = $util.newBuffer([]); /** - * ShardReplicationError tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof topodata.ShardReplicationError + * KeyRange end. + * @member {Uint8Array} end + * @memberof topodata.KeyRange * @instance */ - ShardReplicationError.prototype.tablet_alias = null; + KeyRange.prototype.end = $util.newBuffer([]); /** - * Creates a new ShardReplicationError instance using the specified properties. + * Creates a new KeyRange instance using the specified properties. * @function create - * @memberof topodata.ShardReplicationError + * @memberof topodata.KeyRange * @static - * @param {topodata.IShardReplicationError=} [properties] Properties to set - * @returns {topodata.ShardReplicationError} ShardReplicationError instance + * @param {topodata.IKeyRange=} [properties] Properties to set + * @returns {topodata.KeyRange} KeyRange instance */ - ShardReplicationError.create = function create(properties) { - return new ShardReplicationError(properties); + KeyRange.create = function create(properties) { + return new KeyRange(properties); }; /** - * Encodes the specified ShardReplicationError message. Does not implicitly {@link topodata.ShardReplicationError.verify|verify} messages. + * Encodes the specified KeyRange message. Does not implicitly {@link topodata.KeyRange.verify|verify} messages. * @function encode - * @memberof topodata.ShardReplicationError + * @memberof topodata.KeyRange * @static - * @param {topodata.IShardReplicationError} message ShardReplicationError message or plain object to encode + * @param {topodata.IKeyRange} message KeyRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationError.encode = function encode(message, writer) { + KeyRange.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.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.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.end); return writer; }; /** - * Encodes the specified ShardReplicationError message, length delimited. Does not implicitly {@link topodata.ShardReplicationError.verify|verify} messages. + * Encodes the specified KeyRange message, length delimited. Does not implicitly {@link topodata.KeyRange.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.ShardReplicationError + * @memberof topodata.KeyRange * @static - * @param {topodata.IShardReplicationError} message ShardReplicationError message or plain object to encode + * @param {topodata.IKeyRange} message KeyRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationError.encodeDelimited = function encodeDelimited(message, writer) { + KeyRange.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardReplicationError message from the specified reader or buffer. + * Decodes a KeyRange message from the specified reader or buffer. * @function decode - * @memberof topodata.ShardReplicationError + * @memberof topodata.KeyRange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.ShardReplicationError} ShardReplicationError + * @returns {topodata.KeyRange} KeyRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationError.decode = function decode(reader, length) { + KeyRange.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ShardReplicationError(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.KeyRange(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.int32(); + message.start = reader.bytes(); break; } case 2: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.end = reader.bytes(); break; } default: @@ -44355,177 +43745,164 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a ShardReplicationError message from the specified reader or buffer, length delimited. + * Decodes a KeyRange message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.ShardReplicationError + * @memberof topodata.KeyRange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.ShardReplicationError} ShardReplicationError + * @returns {topodata.KeyRange} KeyRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationError.decodeDelimited = function decodeDelimited(reader) { + KeyRange.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardReplicationError message. + * Verifies a KeyRange message. * @function verify - * @memberof topodata.ShardReplicationError + * @memberof topodata.KeyRange * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardReplicationError.verify = function verify(message) { + KeyRange.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 1: - case 2: - break; - } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } + if (message.start != null && message.hasOwnProperty("start")) + if (!(message.start && typeof message.start.length === "number" || $util.isString(message.start))) + return "start: buffer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!(message.end && typeof message.end.length === "number" || $util.isString(message.end))) + return "end: buffer expected"; return null; }; /** - * Creates a ShardReplicationError message from a plain object. Also converts values to their respective internal types. + * Creates a KeyRange message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.ShardReplicationError + * @memberof topodata.KeyRange * @static * @param {Object.} object Plain object - * @returns {topodata.ShardReplicationError} ShardReplicationError + * @returns {topodata.KeyRange} KeyRange */ - ShardReplicationError.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.ShardReplicationError) + KeyRange.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.KeyRange) return object; - let message = new $root.topodata.ShardReplicationError(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "UNKNOWN": - case 0: - message.type = 0; - break; - case "NOT_FOUND": - case 1: - message.type = 1; - break; - case "TOPOLOGY_MISMATCH": - case 2: - message.type = 2; - break; - } - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".topodata.ShardReplicationError.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } + let message = new $root.topodata.KeyRange(); + if (object.start != null) + if (typeof object.start === "string") + $util.base64.decode(object.start, message.start = $util.newBuffer($util.base64.length(object.start)), 0); + else if (object.start.length >= 0) + message.start = object.start; + if (object.end != null) + if (typeof object.end === "string") + $util.base64.decode(object.end, message.end = $util.newBuffer($util.base64.length(object.end)), 0); + else if (object.end.length >= 0) + message.end = object.end; return message; }; /** - * Creates a plain object from a ShardReplicationError message. Also converts values to other types if specified. + * Creates a plain object from a KeyRange message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.ShardReplicationError + * @memberof topodata.KeyRange * @static - * @param {topodata.ShardReplicationError} message ShardReplicationError + * @param {topodata.KeyRange} message KeyRange * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardReplicationError.toObject = function toObject(message, options) { + KeyRange.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.type = options.enums === String ? "UNKNOWN" : 0; - object.tablet_alias = null; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.topodata.ShardReplicationError.Type[message.type] === undefined ? message.type : $root.topodata.ShardReplicationError.Type[message.type] : message.type; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - return object; - }; - + if (options.bytes === String) + object.start = ""; + else { + object.start = []; + if (options.bytes !== Array) + object.start = $util.newBuffer(object.start); + } + if (options.bytes === String) + object.end = ""; + else { + object.end = []; + if (options.bytes !== Array) + object.end = $util.newBuffer(object.end); + } + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = options.bytes === String ? $util.base64.encode(message.start, 0, message.start.length) : options.bytes === Array ? Array.prototype.slice.call(message.start) : message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = options.bytes === String ? $util.base64.encode(message.end, 0, message.end.length) : options.bytes === Array ? Array.prototype.slice.call(message.end) : message.end; + return object; + }; + /** - * Converts this ShardReplicationError to JSON. + * Converts this KeyRange to JSON. * @function toJSON - * @memberof topodata.ShardReplicationError + * @memberof topodata.KeyRange * @instance * @returns {Object.} JSON object */ - ShardReplicationError.prototype.toJSON = function toJSON() { + KeyRange.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardReplicationError + * Gets the default type url for KeyRange * @function getTypeUrl - * @memberof topodata.ShardReplicationError + * @memberof topodata.KeyRange * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardReplicationError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + KeyRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.ShardReplicationError"; + return typeUrlPrefix + "/topodata.KeyRange"; }; - /** - * Type enum. - * @name topodata.ShardReplicationError.Type - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} NOT_FOUND=1 NOT_FOUND value - * @property {number} TOPOLOGY_MISMATCH=2 TOPOLOGY_MISMATCH value - */ - ShardReplicationError.Type = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "NOT_FOUND"] = 1; - values[valuesById[2] = "TOPOLOGY_MISMATCH"] = 2; - return values; - })(); + return KeyRange; + })(); - return ShardReplicationError; + /** + * KeyspaceType enum. + * @name topodata.KeyspaceType + * @enum {number} + * @property {number} NORMAL=0 NORMAL value + * @property {number} SNAPSHOT=1 SNAPSHOT value + */ + topodata.KeyspaceType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NORMAL"] = 0; + values[valuesById[1] = "SNAPSHOT"] = 1; + return values; })(); - topodata.ShardReference = (function() { + topodata.TabletAlias = (function() { /** - * Properties of a ShardReference. + * Properties of a TabletAlias. * @memberof topodata - * @interface IShardReference - * @property {string|null} [name] ShardReference name - * @property {topodata.IKeyRange|null} [key_range] ShardReference key_range + * @interface ITabletAlias + * @property {string|null} [cell] TabletAlias cell + * @property {number|null} [uid] TabletAlias uid */ /** - * Constructs a new ShardReference. + * Constructs a new TabletAlias. * @memberof topodata - * @classdesc Represents a ShardReference. - * @implements IShardReference + * @classdesc Represents a TabletAlias. + * @implements ITabletAlias * @constructor - * @param {topodata.IShardReference=} [properties] Properties to set + * @param {topodata.ITabletAlias=} [properties] Properties to set */ - function ShardReference(properties) { + function TabletAlias(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44533,89 +43910,89 @@ export const topodata = $root.topodata = (() => { } /** - * ShardReference name. - * @member {string} name - * @memberof topodata.ShardReference + * TabletAlias cell. + * @member {string} cell + * @memberof topodata.TabletAlias * @instance */ - ShardReference.prototype.name = ""; + TabletAlias.prototype.cell = ""; /** - * ShardReference key_range. - * @member {topodata.IKeyRange|null|undefined} key_range - * @memberof topodata.ShardReference + * TabletAlias uid. + * @member {number} uid + * @memberof topodata.TabletAlias * @instance */ - ShardReference.prototype.key_range = null; + TabletAlias.prototype.uid = 0; /** - * Creates a new ShardReference instance using the specified properties. + * Creates a new TabletAlias instance using the specified properties. * @function create - * @memberof topodata.ShardReference + * @memberof topodata.TabletAlias * @static - * @param {topodata.IShardReference=} [properties] Properties to set - * @returns {topodata.ShardReference} ShardReference instance + * @param {topodata.ITabletAlias=} [properties] Properties to set + * @returns {topodata.TabletAlias} TabletAlias instance */ - ShardReference.create = function create(properties) { - return new ShardReference(properties); + TabletAlias.create = function create(properties) { + return new TabletAlias(properties); }; /** - * Encodes the specified ShardReference message. Does not implicitly {@link topodata.ShardReference.verify|verify} messages. + * Encodes the specified TabletAlias message. Does not implicitly {@link topodata.TabletAlias.verify|verify} messages. * @function encode - * @memberof topodata.ShardReference + * @memberof topodata.TabletAlias * @static - * @param {topodata.IShardReference} message ShardReference message or plain object to encode + * @param {topodata.ITabletAlias} message TabletAlias message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReference.encode = function encode(message, writer) { + TabletAlias.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.key_range != null && Object.hasOwnProperty.call(message, "key_range")) - $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.uid); return writer; }; /** - * Encodes the specified ShardReference message, length delimited. Does not implicitly {@link topodata.ShardReference.verify|verify} messages. + * Encodes the specified TabletAlias message, length delimited. Does not implicitly {@link topodata.TabletAlias.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.ShardReference + * @memberof topodata.TabletAlias * @static - * @param {topodata.IShardReference} message ShardReference message or plain object to encode + * @param {topodata.ITabletAlias} message TabletAlias message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReference.encodeDelimited = function encodeDelimited(message, writer) { + TabletAlias.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardReference message from the specified reader or buffer. + * Decodes a TabletAlias message from the specified reader or buffer. * @function decode - * @memberof topodata.ShardReference + * @memberof topodata.TabletAlias * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.ShardReference} ShardReference + * @returns {topodata.TabletAlias} TabletAlias * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReference.decode = function decode(reader, length) { + TabletAlias.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ShardReference(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.TabletAlias(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.cell = reader.string(); break; } case 2: { - message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); + message.uid = reader.uint32(); break; } default: @@ -44627,138 +44004,177 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a ShardReference message from the specified reader or buffer, length delimited. + * Decodes a TabletAlias message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.ShardReference + * @memberof topodata.TabletAlias * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.ShardReference} ShardReference + * @returns {topodata.TabletAlias} TabletAlias * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReference.decodeDelimited = function decodeDelimited(reader) { + TabletAlias.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardReference message. + * Verifies a TabletAlias message. * @function verify - * @memberof topodata.ShardReference + * @memberof topodata.TabletAlias * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardReference.verify = function verify(message) { + TabletAlias.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.key_range != null && message.hasOwnProperty("key_range")) { - let error = $root.topodata.KeyRange.verify(message.key_range); - if (error) - return "key_range." + error; - } + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isInteger(message.uid)) + return "uid: integer expected"; return null; }; /** - * Creates a ShardReference message from a plain object. Also converts values to their respective internal types. + * Creates a TabletAlias message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.ShardReference + * @memberof topodata.TabletAlias * @static * @param {Object.} object Plain object - * @returns {topodata.ShardReference} ShardReference + * @returns {topodata.TabletAlias} TabletAlias */ - ShardReference.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.ShardReference) + TabletAlias.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.TabletAlias) return object; - let message = new $root.topodata.ShardReference(); - if (object.name != null) - message.name = String(object.name); - if (object.key_range != null) { - if (typeof object.key_range !== "object") - throw TypeError(".topodata.ShardReference.key_range: object expected"); - message.key_range = $root.topodata.KeyRange.fromObject(object.key_range); - } + let message = new $root.topodata.TabletAlias(); + if (object.cell != null) + message.cell = String(object.cell); + if (object.uid != null) + message.uid = object.uid >>> 0; return message; }; /** - * Creates a plain object from a ShardReference message. Also converts values to other types if specified. + * Creates a plain object from a TabletAlias message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.ShardReference + * @memberof topodata.TabletAlias * @static - * @param {topodata.ShardReference} message ShardReference + * @param {topodata.TabletAlias} message TabletAlias * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardReference.toObject = function toObject(message, options) { + TabletAlias.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.name = ""; - object.key_range = null; + object.cell = ""; + object.uid = 0; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.key_range != null && message.hasOwnProperty("key_range")) - object.key_range = $root.topodata.KeyRange.toObject(message.key_range, options); + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; return object; }; /** - * Converts this ShardReference to JSON. + * Converts this TabletAlias to JSON. * @function toJSON - * @memberof topodata.ShardReference + * @memberof topodata.TabletAlias * @instance * @returns {Object.} JSON object */ - ShardReference.prototype.toJSON = function toJSON() { + TabletAlias.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardReference + * Gets the default type url for TabletAlias * @function getTypeUrl - * @memberof topodata.ShardReference + * @memberof topodata.TabletAlias * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TabletAlias.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.ShardReference"; + return typeUrlPrefix + "/topodata.TabletAlias"; }; - return ShardReference; + return TabletAlias; })(); - topodata.ShardTabletControl = (function() { + /** + * TabletType enum. + * @name topodata.TabletType + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} PRIMARY=1 PRIMARY value + * @property {number} MASTER=1 MASTER value + * @property {number} REPLICA=2 REPLICA value + * @property {number} RDONLY=3 RDONLY value + * @property {number} BATCH=3 BATCH value + * @property {number} SPARE=4 SPARE value + * @property {number} EXPERIMENTAL=5 EXPERIMENTAL value + * @property {number} BACKUP=6 BACKUP value + * @property {number} RESTORE=7 RESTORE value + * @property {number} DRAINED=8 DRAINED value + */ + topodata.TabletType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "PRIMARY"] = 1; + values["MASTER"] = 1; + values[valuesById[2] = "REPLICA"] = 2; + values[valuesById[3] = "RDONLY"] = 3; + values["BATCH"] = 3; + values[valuesById[4] = "SPARE"] = 4; + values[valuesById[5] = "EXPERIMENTAL"] = 5; + values[valuesById[6] = "BACKUP"] = 6; + values[valuesById[7] = "RESTORE"] = 7; + values[valuesById[8] = "DRAINED"] = 8; + return values; + })(); + + topodata.Tablet = (function() { /** - * Properties of a ShardTabletControl. + * Properties of a Tablet. * @memberof topodata - * @interface IShardTabletControl - * @property {string|null} [name] ShardTabletControl name - * @property {topodata.IKeyRange|null} [key_range] ShardTabletControl key_range - * @property {boolean|null} [query_service_disabled] ShardTabletControl query_service_disabled + * @interface ITablet + * @property {topodata.ITabletAlias|null} [alias] Tablet alias + * @property {string|null} [hostname] Tablet hostname + * @property {Object.|null} [port_map] Tablet port_map + * @property {string|null} [keyspace] Tablet keyspace + * @property {string|null} [shard] Tablet shard + * @property {topodata.IKeyRange|null} [key_range] Tablet key_range + * @property {topodata.TabletType|null} [type] Tablet type + * @property {string|null} [db_name_override] Tablet db_name_override + * @property {Object.|null} [tags] Tablet tags + * @property {string|null} [mysql_hostname] Tablet mysql_hostname + * @property {number|null} [mysql_port] Tablet mysql_port + * @property {vttime.ITime|null} [primary_term_start_time] Tablet primary_term_start_time + * @property {number|null} [default_conn_collation] Tablet default_conn_collation */ /** - * Constructs a new ShardTabletControl. + * Constructs a new Tablet. * @memberof topodata - * @classdesc Represents a ShardTabletControl. - * @implements IShardTabletControl + * @classdesc Represents a Tablet. + * @implements ITablet * @constructor - * @param {topodata.IShardTabletControl=} [properties] Properties to set + * @param {topodata.ITablet=} [properties] Properties to set */ - function ShardTabletControl(properties) { + function Tablet(properties) { + this.port_map = {}; + this.tags = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44766,103 +44182,283 @@ export const topodata = $root.topodata = (() => { } /** - * ShardTabletControl name. - * @member {string} name - * @memberof topodata.ShardTabletControl + * Tablet alias. + * @member {topodata.ITabletAlias|null|undefined} alias + * @memberof topodata.Tablet * @instance */ - ShardTabletControl.prototype.name = ""; + Tablet.prototype.alias = null; /** - * ShardTabletControl key_range. + * Tablet hostname. + * @member {string} hostname + * @memberof topodata.Tablet + * @instance + */ + Tablet.prototype.hostname = ""; + + /** + * Tablet port_map. + * @member {Object.} port_map + * @memberof topodata.Tablet + * @instance + */ + Tablet.prototype.port_map = $util.emptyObject; + + /** + * Tablet keyspace. + * @member {string} keyspace + * @memberof topodata.Tablet + * @instance + */ + Tablet.prototype.keyspace = ""; + + /** + * Tablet shard. + * @member {string} shard + * @memberof topodata.Tablet + * @instance + */ + Tablet.prototype.shard = ""; + + /** + * Tablet key_range. * @member {topodata.IKeyRange|null|undefined} key_range - * @memberof topodata.ShardTabletControl + * @memberof topodata.Tablet * @instance */ - ShardTabletControl.prototype.key_range = null; + Tablet.prototype.key_range = null; /** - * ShardTabletControl query_service_disabled. - * @member {boolean} query_service_disabled - * @memberof topodata.ShardTabletControl + * Tablet type. + * @member {topodata.TabletType} type + * @memberof topodata.Tablet * @instance */ - ShardTabletControl.prototype.query_service_disabled = false; + Tablet.prototype.type = 0; /** - * Creates a new ShardTabletControl instance using the specified properties. + * Tablet db_name_override. + * @member {string} db_name_override + * @memberof topodata.Tablet + * @instance + */ + Tablet.prototype.db_name_override = ""; + + /** + * Tablet tags. + * @member {Object.} tags + * @memberof topodata.Tablet + * @instance + */ + Tablet.prototype.tags = $util.emptyObject; + + /** + * Tablet mysql_hostname. + * @member {string} mysql_hostname + * @memberof topodata.Tablet + * @instance + */ + Tablet.prototype.mysql_hostname = ""; + + /** + * Tablet mysql_port. + * @member {number} mysql_port + * @memberof topodata.Tablet + * @instance + */ + Tablet.prototype.mysql_port = 0; + + /** + * Tablet primary_term_start_time. + * @member {vttime.ITime|null|undefined} primary_term_start_time + * @memberof topodata.Tablet + * @instance + */ + Tablet.prototype.primary_term_start_time = null; + + /** + * Tablet default_conn_collation. + * @member {number} default_conn_collation + * @memberof topodata.Tablet + * @instance + */ + Tablet.prototype.default_conn_collation = 0; + + /** + * Creates a new Tablet instance using the specified properties. * @function create - * @memberof topodata.ShardTabletControl + * @memberof topodata.Tablet * @static - * @param {topodata.IShardTabletControl=} [properties] Properties to set - * @returns {topodata.ShardTabletControl} ShardTabletControl instance + * @param {topodata.ITablet=} [properties] Properties to set + * @returns {topodata.Tablet} Tablet instance */ - ShardTabletControl.create = function create(properties) { - return new ShardTabletControl(properties); + Tablet.create = function create(properties) { + return new Tablet(properties); }; /** - * Encodes the specified ShardTabletControl message. Does not implicitly {@link topodata.ShardTabletControl.verify|verify} messages. + * Encodes the specified Tablet message. Does not implicitly {@link topodata.Tablet.verify|verify} messages. * @function encode - * @memberof topodata.ShardTabletControl + * @memberof topodata.Tablet * @static - * @param {topodata.IShardTabletControl} message ShardTabletControl message or plain object to encode + * @param {topodata.ITablet} message Tablet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardTabletControl.encode = function encode(message, writer) { + Tablet.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.alias != null && Object.hasOwnProperty.call(message, "alias")) + $root.topodata.TabletAlias.encode(message.alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.hostname != null && Object.hasOwnProperty.call(message, "hostname")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.hostname); + if (message.port_map != null && Object.hasOwnProperty.call(message, "port_map")) + for (let keys = Object.keys(message.port_map), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.port_map[keys[i]]).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.shard); if (message.key_range != null && Object.hasOwnProperty.call(message, "key_range")) - $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.query_service_disabled != null && Object.hasOwnProperty.call(message, "query_service_disabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.query_service_disabled); + $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.type); + if (message.db_name_override != null && Object.hasOwnProperty.call(message, "db_name_override")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.db_name_override); + 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 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + if (message.mysql_hostname != null && Object.hasOwnProperty.call(message, "mysql_hostname")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.mysql_hostname); + if (message.mysql_port != null && Object.hasOwnProperty.call(message, "mysql_port")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.mysql_port); + if (message.primary_term_start_time != null && Object.hasOwnProperty.call(message, "primary_term_start_time")) + $root.vttime.Time.encode(message.primary_term_start_time, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.default_conn_collation != null && Object.hasOwnProperty.call(message, "default_conn_collation")) + writer.uint32(/* id 16, wireType 0 =*/128).uint32(message.default_conn_collation); return writer; }; /** - * Encodes the specified ShardTabletControl message, length delimited. Does not implicitly {@link topodata.ShardTabletControl.verify|verify} messages. + * Encodes the specified Tablet message, length delimited. Does not implicitly {@link topodata.Tablet.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.ShardTabletControl + * @memberof topodata.Tablet * @static - * @param {topodata.IShardTabletControl} message ShardTabletControl message or plain object to encode + * @param {topodata.ITablet} message Tablet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardTabletControl.encodeDelimited = function encodeDelimited(message, writer) { + Tablet.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardTabletControl message from the specified reader or buffer. + * Decodes a Tablet message from the specified reader or buffer. * @function decode - * @memberof topodata.ShardTabletControl + * @memberof topodata.Tablet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.ShardTabletControl} ShardTabletControl + * @returns {topodata.Tablet} Tablet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardTabletControl.decode = function decode(reader, length) { + Tablet.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ShardTabletControl(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.Tablet(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } case 2: { + message.hostname = reader.string(); + break; + } + case 4: { + if (message.port_map === $util.emptyObject) + message.port_map = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.int32(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.port_map[key] = value; + break; + } + case 5: { + message.keyspace = reader.string(); + break; + } + case 6: { + message.shard = reader.string(); + break; + } + case 7: { message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); break; } - case 3: { - message.query_service_disabled = reader.bool(); + case 8: { + message.type = reader.int32(); + break; + } + case 9: { + message.db_name_override = reader.string(); + break; + } + case 10: { + 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 12: { + message.mysql_hostname = reader.string(); + break; + } + case 13: { + message.mysql_port = reader.int32(); + break; + } + case 14: { + message.primary_term_start_time = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 16: { + message.default_conn_collation = reader.uint32(); break; } default: @@ -44874,147 +44470,334 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a ShardTabletControl message from the specified reader or buffer, length delimited. + * Decodes a Tablet message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.ShardTabletControl + * @memberof topodata.Tablet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.ShardTabletControl} ShardTabletControl + * @returns {topodata.Tablet} Tablet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardTabletControl.decodeDelimited = function decodeDelimited(reader) { + Tablet.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardTabletControl message. + * Verifies a Tablet message. * @function verify - * @memberof topodata.ShardTabletControl + * @memberof topodata.Tablet * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardTabletControl.verify = function verify(message) { + Tablet.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.alias != null && message.hasOwnProperty("alias")) { + let error = $root.topodata.TabletAlias.verify(message.alias); + if (error) + return "alias." + error; + } + if (message.hostname != null && message.hasOwnProperty("hostname")) + if (!$util.isString(message.hostname)) + return "hostname: string expected"; + if (message.port_map != null && message.hasOwnProperty("port_map")) { + if (!$util.isObject(message.port_map)) + return "port_map: object expected"; + let key = Object.keys(message.port_map); + for (let i = 0; i < key.length; ++i) + if (!$util.isInteger(message.port_map[key[i]])) + return "port_map: integer{k:string} expected"; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; if (message.key_range != null && message.hasOwnProperty("key_range")) { let error = $root.topodata.KeyRange.verify(message.key_range); if (error) return "key_range." + error; } - if (message.query_service_disabled != null && message.hasOwnProperty("query_service_disabled")) - if (typeof message.query_service_disabled !== "boolean") - return "query_service_disabled: boolean expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "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.db_name_override != null && message.hasOwnProperty("db_name_override")) + if (!$util.isString(message.db_name_override)) + return "db_name_override: 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.mysql_hostname != null && message.hasOwnProperty("mysql_hostname")) + if (!$util.isString(message.mysql_hostname)) + return "mysql_hostname: string expected"; + if (message.mysql_port != null && message.hasOwnProperty("mysql_port")) + if (!$util.isInteger(message.mysql_port)) + return "mysql_port: integer expected"; + if (message.primary_term_start_time != null && message.hasOwnProperty("primary_term_start_time")) { + let error = $root.vttime.Time.verify(message.primary_term_start_time); + if (error) + return "primary_term_start_time." + error; + } + if (message.default_conn_collation != null && message.hasOwnProperty("default_conn_collation")) + if (!$util.isInteger(message.default_conn_collation)) + return "default_conn_collation: integer expected"; return null; }; /** - * Creates a ShardTabletControl message from a plain object. Also converts values to their respective internal types. + * Creates a Tablet message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.ShardTabletControl + * @memberof topodata.Tablet * @static * @param {Object.} object Plain object - * @returns {topodata.ShardTabletControl} ShardTabletControl + * @returns {topodata.Tablet} Tablet */ - ShardTabletControl.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.ShardTabletControl) + Tablet.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.Tablet) return object; - let message = new $root.topodata.ShardTabletControl(); - if (object.name != null) - message.name = String(object.name); + let message = new $root.topodata.Tablet(); + if (object.alias != null) { + if (typeof object.alias !== "object") + throw TypeError(".topodata.Tablet.alias: object expected"); + message.alias = $root.topodata.TabletAlias.fromObject(object.alias); + } + if (object.hostname != null) + message.hostname = String(object.hostname); + if (object.port_map) { + if (typeof object.port_map !== "object") + throw TypeError(".topodata.Tablet.port_map: object expected"); + message.port_map = {}; + for (let keys = Object.keys(object.port_map), i = 0; i < keys.length; ++i) + message.port_map[keys[i]] = object.port_map[keys[i]] | 0; + } + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); if (object.key_range != null) { if (typeof object.key_range !== "object") - throw TypeError(".topodata.ShardTabletControl.key_range: object expected"); + throw TypeError(".topodata.Tablet.key_range: object expected"); message.key_range = $root.topodata.KeyRange.fromObject(object.key_range); } - if (object.query_service_disabled != null) - message.query_service_disabled = Boolean(object.query_service_disabled); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "UNKNOWN": + case 0: + message.type = 0; + break; + case "PRIMARY": + case 1: + message.type = 1; + break; + case "MASTER": + case 1: + message.type = 1; + break; + case "REPLICA": + case 2: + message.type = 2; + break; + case "RDONLY": + case 3: + message.type = 3; + break; + case "BATCH": + case 3: + message.type = 3; + break; + case "SPARE": + case 4: + message.type = 4; + break; + case "EXPERIMENTAL": + case 5: + message.type = 5; + break; + case "BACKUP": + case 6: + message.type = 6; + break; + case "RESTORE": + case 7: + message.type = 7; + break; + case "DRAINED": + case 8: + message.type = 8; + break; + } + if (object.db_name_override != null) + message.db_name_override = String(object.db_name_override); + if (object.tags) { + if (typeof object.tags !== "object") + throw TypeError(".topodata.Tablet.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.mysql_hostname != null) + message.mysql_hostname = String(object.mysql_hostname); + if (object.mysql_port != null) + message.mysql_port = object.mysql_port | 0; + if (object.primary_term_start_time != null) { + if (typeof object.primary_term_start_time !== "object") + throw TypeError(".topodata.Tablet.primary_term_start_time: object expected"); + message.primary_term_start_time = $root.vttime.Time.fromObject(object.primary_term_start_time); + } + if (object.default_conn_collation != null) + message.default_conn_collation = object.default_conn_collation >>> 0; return message; }; /** - * Creates a plain object from a ShardTabletControl message. Also converts values to other types if specified. + * Creates a plain object from a Tablet message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.ShardTabletControl + * @memberof topodata.Tablet * @static - * @param {topodata.ShardTabletControl} message ShardTabletControl + * @param {topodata.Tablet} message Tablet * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardTabletControl.toObject = function toObject(message, options) { + Tablet.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.objects || options.defaults) { + object.port_map = {}; + object.tags = {}; + } if (options.defaults) { - object.name = ""; + object.alias = null; + object.hostname = ""; + object.keyspace = ""; + object.shard = ""; object.key_range = null; - object.query_service_disabled = false; + object.type = options.enums === String ? "UNKNOWN" : 0; + object.db_name_override = ""; + object.mysql_hostname = ""; + object.mysql_port = 0; + object.primary_term_start_time = null; + object.default_conn_collation = 0; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.alias != null && message.hasOwnProperty("alias")) + object.alias = $root.topodata.TabletAlias.toObject(message.alias, options); + if (message.hostname != null && message.hasOwnProperty("hostname")) + object.hostname = message.hostname; + let keys2; + if (message.port_map && (keys2 = Object.keys(message.port_map)).length) { + object.port_map = {}; + for (let j = 0; j < keys2.length; ++j) + object.port_map[keys2[j]] = message.port_map[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.key_range != null && message.hasOwnProperty("key_range")) object.key_range = $root.topodata.KeyRange.toObject(message.key_range, options); - if (message.query_service_disabled != null && message.hasOwnProperty("query_service_disabled")) - object.query_service_disabled = message.query_service_disabled; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.topodata.TabletType[message.type] === undefined ? message.type : $root.topodata.TabletType[message.type] : message.type; + if (message.db_name_override != null && message.hasOwnProperty("db_name_override")) + object.db_name_override = message.db_name_override; + 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.mysql_hostname != null && message.hasOwnProperty("mysql_hostname")) + object.mysql_hostname = message.mysql_hostname; + if (message.mysql_port != null && message.hasOwnProperty("mysql_port")) + object.mysql_port = message.mysql_port; + if (message.primary_term_start_time != null && message.hasOwnProperty("primary_term_start_time")) + object.primary_term_start_time = $root.vttime.Time.toObject(message.primary_term_start_time, options); + if (message.default_conn_collation != null && message.hasOwnProperty("default_conn_collation")) + object.default_conn_collation = message.default_conn_collation; return object; }; /** - * Converts this ShardTabletControl to JSON. + * Converts this Tablet to JSON. * @function toJSON - * @memberof topodata.ShardTabletControl + * @memberof topodata.Tablet * @instance * @returns {Object.} JSON object */ - ShardTabletControl.prototype.toJSON = function toJSON() { + Tablet.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardTabletControl + * Gets the default type url for Tablet * @function getTypeUrl - * @memberof topodata.ShardTabletControl + * @memberof topodata.Tablet * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardTabletControl.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Tablet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.ShardTabletControl"; + return typeUrlPrefix + "/topodata.Tablet"; }; - return ShardTabletControl; + return Tablet; })(); - topodata.ThrottledAppRule = (function() { + topodata.Shard = (function() { /** - * Properties of a ThrottledAppRule. + * Properties of a Shard. * @memberof topodata - * @interface IThrottledAppRule - * @property {string|null} [name] ThrottledAppRule name - * @property {number|null} [ratio] ThrottledAppRule ratio - * @property {vttime.ITime|null} [expires_at] ThrottledAppRule expires_at - * @property {boolean|null} [exempt] ThrottledAppRule exempt + * @interface IShard + * @property {topodata.ITabletAlias|null} [primary_alias] Shard primary_alias + * @property {vttime.ITime|null} [primary_term_start_time] Shard primary_term_start_time + * @property {topodata.IKeyRange|null} [key_range] Shard key_range + * @property {Array.|null} [source_shards] Shard source_shards + * @property {Array.|null} [tablet_controls] Shard tablet_controls + * @property {boolean|null} [is_primary_serving] Shard is_primary_serving */ /** - * Constructs a new ThrottledAppRule. + * Constructs a new Shard. * @memberof topodata - * @classdesc Represents a ThrottledAppRule. - * @implements IThrottledAppRule + * @classdesc Represents a Shard. + * @implements IShard * @constructor - * @param {topodata.IThrottledAppRule=} [properties] Properties to set + * @param {topodata.IShard=} [properties] Properties to set */ - function ThrottledAppRule(properties) { + function Shard(properties) { + this.source_shards = []; + this.tablet_controls = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45022,117 +44805,151 @@ export const topodata = $root.topodata = (() => { } /** - * ThrottledAppRule name. - * @member {string} name - * @memberof topodata.ThrottledAppRule + * Shard primary_alias. + * @member {topodata.ITabletAlias|null|undefined} primary_alias + * @memberof topodata.Shard * @instance */ - ThrottledAppRule.prototype.name = ""; + Shard.prototype.primary_alias = null; /** - * ThrottledAppRule ratio. - * @member {number} ratio - * @memberof topodata.ThrottledAppRule + * Shard primary_term_start_time. + * @member {vttime.ITime|null|undefined} primary_term_start_time + * @memberof topodata.Shard * @instance */ - ThrottledAppRule.prototype.ratio = 0; + Shard.prototype.primary_term_start_time = null; /** - * ThrottledAppRule expires_at. - * @member {vttime.ITime|null|undefined} expires_at - * @memberof topodata.ThrottledAppRule + * Shard key_range. + * @member {topodata.IKeyRange|null|undefined} key_range + * @memberof topodata.Shard * @instance */ - ThrottledAppRule.prototype.expires_at = null; + Shard.prototype.key_range = null; /** - * ThrottledAppRule exempt. - * @member {boolean} exempt - * @memberof topodata.ThrottledAppRule + * Shard source_shards. + * @member {Array.} source_shards + * @memberof topodata.Shard * @instance */ - ThrottledAppRule.prototype.exempt = false; + Shard.prototype.source_shards = $util.emptyArray; /** - * Creates a new ThrottledAppRule instance using the specified properties. + * Shard tablet_controls. + * @member {Array.} tablet_controls + * @memberof topodata.Shard + * @instance + */ + Shard.prototype.tablet_controls = $util.emptyArray; + + /** + * Shard is_primary_serving. + * @member {boolean} is_primary_serving + * @memberof topodata.Shard + * @instance + */ + Shard.prototype.is_primary_serving = false; + + /** + * Creates a new Shard instance using the specified properties. * @function create - * @memberof topodata.ThrottledAppRule + * @memberof topodata.Shard * @static - * @param {topodata.IThrottledAppRule=} [properties] Properties to set - * @returns {topodata.ThrottledAppRule} ThrottledAppRule instance + * @param {topodata.IShard=} [properties] Properties to set + * @returns {topodata.Shard} Shard instance */ - ThrottledAppRule.create = function create(properties) { - return new ThrottledAppRule(properties); + Shard.create = function create(properties) { + return new Shard(properties); }; /** - * Encodes the specified ThrottledAppRule message. Does not implicitly {@link topodata.ThrottledAppRule.verify|verify} messages. + * Encodes the specified Shard message. Does not implicitly {@link topodata.Shard.verify|verify} messages. * @function encode - * @memberof topodata.ThrottledAppRule + * @memberof topodata.Shard * @static - * @param {topodata.IThrottledAppRule} message ThrottledAppRule message or plain object to encode + * @param {topodata.IShard} message Shard message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ThrottledAppRule.encode = function encode(message, writer) { + Shard.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.ratio != null && Object.hasOwnProperty.call(message, "ratio")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); - if (message.expires_at != null && Object.hasOwnProperty.call(message, "expires_at")) - $root.vttime.Time.encode(message.expires_at, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.exempt != null && Object.hasOwnProperty.call(message, "exempt")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.exempt); + if (message.primary_alias != null && Object.hasOwnProperty.call(message, "primary_alias")) + $root.topodata.TabletAlias.encode(message.primary_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.key_range != null && Object.hasOwnProperty.call(message, "key_range")) + $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.source_shards != null && message.source_shards.length) + for (let i = 0; i < message.source_shards.length; ++i) + $root.topodata.Shard.SourceShard.encode(message.source_shards[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.tablet_controls != null && message.tablet_controls.length) + for (let i = 0; i < message.tablet_controls.length; ++i) + $root.topodata.Shard.TabletControl.encode(message.tablet_controls[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.is_primary_serving != null && Object.hasOwnProperty.call(message, "is_primary_serving")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.is_primary_serving); + if (message.primary_term_start_time != null && Object.hasOwnProperty.call(message, "primary_term_start_time")) + $root.vttime.Time.encode(message.primary_term_start_time, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified ThrottledAppRule message, length delimited. Does not implicitly {@link topodata.ThrottledAppRule.verify|verify} messages. + * Encodes the specified Shard message, length delimited. Does not implicitly {@link topodata.Shard.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.ThrottledAppRule + * @memberof topodata.Shard * @static - * @param {topodata.IThrottledAppRule} message ThrottledAppRule message or plain object to encode + * @param {topodata.IShard} message Shard message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ThrottledAppRule.encodeDelimited = function encodeDelimited(message, writer) { + Shard.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ThrottledAppRule message from the specified reader or buffer. + * Decodes a Shard message from the specified reader or buffer. * @function decode - * @memberof topodata.ThrottledAppRule + * @memberof topodata.Shard * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.ThrottledAppRule} ThrottledAppRule + * @returns {topodata.Shard} Shard * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ThrottledAppRule.decode = function decode(reader, length) { + Shard.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ThrottledAppRule(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.Shard(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.primary_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } - case 2: { - message.ratio = reader.double(); + case 8: { + message.primary_term_start_time = $root.vttime.Time.decode(reader, reader.uint32()); break; } - case 3: { - message.expires_at = $root.vttime.Time.decode(reader, reader.uint32()); + case 2: { + message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); break; } case 4: { - message.exempt = reader.bool(); + if (!(message.source_shards && message.source_shards.length)) + message.source_shards = []; + message.source_shards.push($root.topodata.Shard.SourceShard.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.tablet_controls && message.tablet_controls.length)) + message.tablet_controls = []; + message.tablet_controls.push($root.topodata.Shard.TabletControl.decode(reader, reader.uint32())); + break; + } + case 7: { + message.is_primary_serving = reader.bool(); break; } default: @@ -45144,611 +44961,216 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a ThrottledAppRule message from the specified reader or buffer, length delimited. + * Decodes a Shard message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.ThrottledAppRule + * @memberof topodata.Shard * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.ThrottledAppRule} ThrottledAppRule + * @returns {topodata.Shard} Shard * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ThrottledAppRule.decodeDelimited = function decodeDelimited(reader) { + Shard.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ThrottledAppRule message. + * Verifies a Shard message. * @function verify - * @memberof topodata.ThrottledAppRule + * @memberof topodata.Shard * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ThrottledAppRule.verify = function verify(message) { + Shard.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.ratio != null && message.hasOwnProperty("ratio")) - if (typeof message.ratio !== "number") - return "ratio: number expected"; - if (message.expires_at != null && message.hasOwnProperty("expires_at")) { - let error = $root.vttime.Time.verify(message.expires_at); + if (message.primary_alias != null && message.hasOwnProperty("primary_alias")) { + let error = $root.topodata.TabletAlias.verify(message.primary_alias); if (error) - return "expires_at." + error; + return "primary_alias." + error; } - if (message.exempt != null && message.hasOwnProperty("exempt")) - if (typeof message.exempt !== "boolean") - return "exempt: boolean expected"; - return null; - }; - - /** - * Creates a ThrottledAppRule message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof topodata.ThrottledAppRule - * @static - * @param {Object.} object Plain object - * @returns {topodata.ThrottledAppRule} ThrottledAppRule - */ - ThrottledAppRule.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.ThrottledAppRule) - return object; - let message = new $root.topodata.ThrottledAppRule(); - if (object.name != null) - message.name = String(object.name); - if (object.ratio != null) - message.ratio = Number(object.ratio); - if (object.expires_at != null) { - if (typeof object.expires_at !== "object") - throw TypeError(".topodata.ThrottledAppRule.expires_at: object expected"); - message.expires_at = $root.vttime.Time.fromObject(object.expires_at); - } - if (object.exempt != null) - message.exempt = Boolean(object.exempt); - return message; - }; - - /** - * Creates a plain object from a ThrottledAppRule message. Also converts values to other types if specified. - * @function toObject - * @memberof topodata.ThrottledAppRule - * @static - * @param {topodata.ThrottledAppRule} message ThrottledAppRule - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ThrottledAppRule.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.name = ""; - object.ratio = 0; - object.expires_at = null; - object.exempt = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.ratio != null && message.hasOwnProperty("ratio")) - object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; - if (message.expires_at != null && message.hasOwnProperty("expires_at")) - object.expires_at = $root.vttime.Time.toObject(message.expires_at, options); - if (message.exempt != null && message.hasOwnProperty("exempt")) - object.exempt = message.exempt; - return object; - }; - - /** - * Converts this ThrottledAppRule to JSON. - * @function toJSON - * @memberof topodata.ThrottledAppRule - * @instance - * @returns {Object.} JSON object - */ - ThrottledAppRule.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ThrottledAppRule - * @function getTypeUrl - * @memberof topodata.ThrottledAppRule - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ThrottledAppRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + if (message.primary_term_start_time != null && message.hasOwnProperty("primary_term_start_time")) { + let error = $root.vttime.Time.verify(message.primary_term_start_time); + if (error) + return "primary_term_start_time." + error; } - return typeUrlPrefix + "/topodata.ThrottledAppRule"; - }; - - return ThrottledAppRule; - })(); - - topodata.ThrottlerConfig = (function() { - - /** - * Properties of a ThrottlerConfig. - * @memberof topodata - * @interface IThrottlerConfig - * @property {boolean|null} [enabled] ThrottlerConfig enabled - * @property {number|null} [threshold] ThrottlerConfig threshold - * @property {string|null} [custom_query] ThrottlerConfig custom_query - * @property {boolean|null} [check_as_check_self] ThrottlerConfig check_as_check_self - * @property {Object.|null} [throttled_apps] ThrottlerConfig throttled_apps - * @property {Object.|null} [app_checked_metrics] ThrottlerConfig app_checked_metrics - * @property {Object.|null} [metric_thresholds] ThrottlerConfig metric_thresholds - */ - - /** - * Constructs a new ThrottlerConfig. - * @memberof topodata - * @classdesc Represents a ThrottlerConfig. - * @implements IThrottlerConfig - * @constructor - * @param {topodata.IThrottlerConfig=} [properties] Properties to set - */ - function ThrottlerConfig(properties) { - this.throttled_apps = {}; - this.app_checked_metrics = {}; - this.metric_thresholds = {}; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ThrottlerConfig enabled. - * @member {boolean} enabled - * @memberof topodata.ThrottlerConfig - * @instance - */ - ThrottlerConfig.prototype.enabled = false; - - /** - * ThrottlerConfig threshold. - * @member {number} threshold - * @memberof topodata.ThrottlerConfig - * @instance - */ - ThrottlerConfig.prototype.threshold = 0; - - /** - * ThrottlerConfig custom_query. - * @member {string} custom_query - * @memberof topodata.ThrottlerConfig - * @instance - */ - ThrottlerConfig.prototype.custom_query = ""; - - /** - * ThrottlerConfig check_as_check_self. - * @member {boolean} check_as_check_self - * @memberof topodata.ThrottlerConfig - * @instance - */ - ThrottlerConfig.prototype.check_as_check_self = false; - - /** - * ThrottlerConfig throttled_apps. - * @member {Object.} throttled_apps - * @memberof topodata.ThrottlerConfig - * @instance - */ - ThrottlerConfig.prototype.throttled_apps = $util.emptyObject; - - /** - * ThrottlerConfig app_checked_metrics. - * @member {Object.} app_checked_metrics - * @memberof topodata.ThrottlerConfig - * @instance - */ - ThrottlerConfig.prototype.app_checked_metrics = $util.emptyObject; - - /** - * ThrottlerConfig metric_thresholds. - * @member {Object.} metric_thresholds - * @memberof topodata.ThrottlerConfig - * @instance - */ - ThrottlerConfig.prototype.metric_thresholds = $util.emptyObject; - - /** - * Creates a new ThrottlerConfig instance using the specified properties. - * @function create - * @memberof topodata.ThrottlerConfig - * @static - * @param {topodata.IThrottlerConfig=} [properties] Properties to set - * @returns {topodata.ThrottlerConfig} ThrottlerConfig instance - */ - ThrottlerConfig.create = function create(properties) { - return new ThrottlerConfig(properties); - }; - - /** - * Encodes the specified ThrottlerConfig message. Does not implicitly {@link topodata.ThrottlerConfig.verify|verify} messages. - * @function encode - * @memberof topodata.ThrottlerConfig - * @static - * @param {topodata.IThrottlerConfig} message ThrottlerConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ThrottlerConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.threshold); - if (message.custom_query != null && Object.hasOwnProperty.call(message, "custom_query")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.custom_query); - if (message.check_as_check_self != null && Object.hasOwnProperty.call(message, "check_as_check_self")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.check_as_check_self); - if (message.throttled_apps != null && Object.hasOwnProperty.call(message, "throttled_apps")) - for (let keys = Object.keys(message.throttled_apps), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.topodata.ThrottledAppRule.encode(message.throttled_apps[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.app_checked_metrics != null && Object.hasOwnProperty.call(message, "app_checked_metrics")) - for (let keys = Object.keys(message.app_checked_metrics), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.topodata.ThrottlerConfig.MetricNames.encode(message.app_checked_metrics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.metric_thresholds != null && Object.hasOwnProperty.call(message, "metric_thresholds")) - for (let keys = Object.keys(message.metric_thresholds), i = 0; i < keys.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 1 =*/17).double(message.metric_thresholds[keys[i]]).ldelim(); - return writer; - }; - - /** - * Encodes the specified ThrottlerConfig message, length delimited. Does not implicitly {@link topodata.ThrottlerConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof topodata.ThrottlerConfig - * @static - * @param {topodata.IThrottlerConfig} message ThrottlerConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ThrottlerConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ThrottlerConfig message from the specified reader or buffer. - * @function decode - * @memberof topodata.ThrottlerConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {topodata.ThrottlerConfig} ThrottlerConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ThrottlerConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ThrottlerConfig(), key, value; - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.enabled = reader.bool(); - break; - } - case 2: { - message.threshold = reader.double(); - break; - } - case 3: { - message.custom_query = reader.string(); - break; - } - case 4: { - message.check_as_check_self = reader.bool(); - break; - } - case 5: { - if (message.throttled_apps === $util.emptyObject) - message.throttled_apps = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.topodata.ThrottledAppRule.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.throttled_apps[key] = value; - break; - } - case 6: { - if (message.app_checked_metrics === $util.emptyObject) - message.app_checked_metrics = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.topodata.ThrottlerConfig.MetricNames.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.app_checked_metrics[key] = value; - break; - } - case 7: { - if (message.metric_thresholds === $util.emptyObject) - message.metric_thresholds = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.double(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.metric_thresholds[key] = value; - break; - } - default: - reader.skipType(tag & 7); - break; - } + if (message.key_range != null && message.hasOwnProperty("key_range")) { + let error = $root.topodata.KeyRange.verify(message.key_range); + if (error) + return "key_range." + error; } - return message; - }; - - /** - * Decodes a ThrottlerConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof topodata.ThrottlerConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.ThrottlerConfig} ThrottlerConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ThrottlerConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ThrottlerConfig message. - * @function verify - * @memberof topodata.ThrottlerConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ThrottlerConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.threshold != null && message.hasOwnProperty("threshold")) - if (typeof message.threshold !== "number") - return "threshold: number expected"; - if (message.custom_query != null && message.hasOwnProperty("custom_query")) - if (!$util.isString(message.custom_query)) - return "custom_query: string expected"; - if (message.check_as_check_self != null && message.hasOwnProperty("check_as_check_self")) - if (typeof message.check_as_check_self !== "boolean") - return "check_as_check_self: boolean expected"; - if (message.throttled_apps != null && message.hasOwnProperty("throttled_apps")) { - if (!$util.isObject(message.throttled_apps)) - return "throttled_apps: object expected"; - let key = Object.keys(message.throttled_apps); - for (let i = 0; i < key.length; ++i) { - let error = $root.topodata.ThrottledAppRule.verify(message.throttled_apps[key[i]]); + if (message.source_shards != null && message.hasOwnProperty("source_shards")) { + if (!Array.isArray(message.source_shards)) + return "source_shards: array expected"; + for (let i = 0; i < message.source_shards.length; ++i) { + let error = $root.topodata.Shard.SourceShard.verify(message.source_shards[i]); if (error) - return "throttled_apps." + error; + return "source_shards." + error; } } - if (message.app_checked_metrics != null && message.hasOwnProperty("app_checked_metrics")) { - if (!$util.isObject(message.app_checked_metrics)) - return "app_checked_metrics: object expected"; - let key = Object.keys(message.app_checked_metrics); - for (let i = 0; i < key.length; ++i) { - let error = $root.topodata.ThrottlerConfig.MetricNames.verify(message.app_checked_metrics[key[i]]); + if (message.tablet_controls != null && message.hasOwnProperty("tablet_controls")) { + if (!Array.isArray(message.tablet_controls)) + return "tablet_controls: array expected"; + for (let i = 0; i < message.tablet_controls.length; ++i) { + let error = $root.topodata.Shard.TabletControl.verify(message.tablet_controls[i]); if (error) - return "app_checked_metrics." + error; + return "tablet_controls." + error; } } - if (message.metric_thresholds != null && message.hasOwnProperty("metric_thresholds")) { - if (!$util.isObject(message.metric_thresholds)) - return "metric_thresholds: object expected"; - let key = Object.keys(message.metric_thresholds); - for (let i = 0; i < key.length; ++i) - if (typeof message.metric_thresholds[key[i]] !== "number") - return "metric_thresholds: number{k:string} expected"; - } + if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) + if (typeof message.is_primary_serving !== "boolean") + return "is_primary_serving: boolean expected"; return null; }; /** - * Creates a ThrottlerConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Shard message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.ThrottlerConfig + * @memberof topodata.Shard * @static * @param {Object.} object Plain object - * @returns {topodata.ThrottlerConfig} ThrottlerConfig + * @returns {topodata.Shard} Shard */ - ThrottlerConfig.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.ThrottlerConfig) + Shard.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.Shard) return object; - let message = new $root.topodata.ThrottlerConfig(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.threshold != null) - message.threshold = Number(object.threshold); - if (object.custom_query != null) - message.custom_query = String(object.custom_query); - if (object.check_as_check_self != null) - message.check_as_check_self = Boolean(object.check_as_check_self); - if (object.throttled_apps) { - if (typeof object.throttled_apps !== "object") - throw TypeError(".topodata.ThrottlerConfig.throttled_apps: object expected"); - message.throttled_apps = {}; - for (let keys = Object.keys(object.throttled_apps), i = 0; i < keys.length; ++i) { - if (typeof object.throttled_apps[keys[i]] !== "object") - throw TypeError(".topodata.ThrottlerConfig.throttled_apps: object expected"); - message.throttled_apps[keys[i]] = $root.topodata.ThrottledAppRule.fromObject(object.throttled_apps[keys[i]]); - } + let message = new $root.topodata.Shard(); + if (object.primary_alias != null) { + if (typeof object.primary_alias !== "object") + throw TypeError(".topodata.Shard.primary_alias: object expected"); + message.primary_alias = $root.topodata.TabletAlias.fromObject(object.primary_alias); } - if (object.app_checked_metrics) { - if (typeof object.app_checked_metrics !== "object") - throw TypeError(".topodata.ThrottlerConfig.app_checked_metrics: object expected"); - message.app_checked_metrics = {}; - for (let keys = Object.keys(object.app_checked_metrics), i = 0; i < keys.length; ++i) { - if (typeof object.app_checked_metrics[keys[i]] !== "object") - throw TypeError(".topodata.ThrottlerConfig.app_checked_metrics: object expected"); - message.app_checked_metrics[keys[i]] = $root.topodata.ThrottlerConfig.MetricNames.fromObject(object.app_checked_metrics[keys[i]]); + if (object.primary_term_start_time != null) { + if (typeof object.primary_term_start_time !== "object") + throw TypeError(".topodata.Shard.primary_term_start_time: object expected"); + message.primary_term_start_time = $root.vttime.Time.fromObject(object.primary_term_start_time); + } + if (object.key_range != null) { + if (typeof object.key_range !== "object") + throw TypeError(".topodata.Shard.key_range: object expected"); + message.key_range = $root.topodata.KeyRange.fromObject(object.key_range); + } + if (object.source_shards) { + if (!Array.isArray(object.source_shards)) + throw TypeError(".topodata.Shard.source_shards: array expected"); + message.source_shards = []; + for (let i = 0; i < object.source_shards.length; ++i) { + if (typeof object.source_shards[i] !== "object") + throw TypeError(".topodata.Shard.source_shards: object expected"); + message.source_shards[i] = $root.topodata.Shard.SourceShard.fromObject(object.source_shards[i]); } } - if (object.metric_thresholds) { - if (typeof object.metric_thresholds !== "object") - throw TypeError(".topodata.ThrottlerConfig.metric_thresholds: object expected"); - message.metric_thresholds = {}; - for (let keys = Object.keys(object.metric_thresholds), i = 0; i < keys.length; ++i) - message.metric_thresholds[keys[i]] = Number(object.metric_thresholds[keys[i]]); + if (object.tablet_controls) { + if (!Array.isArray(object.tablet_controls)) + throw TypeError(".topodata.Shard.tablet_controls: array expected"); + message.tablet_controls = []; + for (let i = 0; i < object.tablet_controls.length; ++i) { + if (typeof object.tablet_controls[i] !== "object") + throw TypeError(".topodata.Shard.tablet_controls: object expected"); + message.tablet_controls[i] = $root.topodata.Shard.TabletControl.fromObject(object.tablet_controls[i]); + } } + if (object.is_primary_serving != null) + message.is_primary_serving = Boolean(object.is_primary_serving); return message; }; /** - * Creates a plain object from a ThrottlerConfig message. Also converts values to other types if specified. + * Creates a plain object from a Shard message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.ThrottlerConfig + * @memberof topodata.Shard * @static - * @param {topodata.ThrottlerConfig} message ThrottlerConfig + * @param {topodata.Shard} message Shard * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ThrottlerConfig.toObject = function toObject(message, options) { + Shard.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) { - object.throttled_apps = {}; - object.app_checked_metrics = {}; - object.metric_thresholds = {}; + if (options.arrays || options.defaults) { + object.source_shards = []; + object.tablet_controls = []; } if (options.defaults) { - object.enabled = false; - object.threshold = 0; - object.custom_query = ""; - object.check_as_check_self = false; - } - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.threshold != null && message.hasOwnProperty("threshold")) - object.threshold = options.json && !isFinite(message.threshold) ? String(message.threshold) : message.threshold; - if (message.custom_query != null && message.hasOwnProperty("custom_query")) - object.custom_query = message.custom_query; - if (message.check_as_check_self != null && message.hasOwnProperty("check_as_check_self")) - object.check_as_check_self = message.check_as_check_self; - let keys2; - if (message.throttled_apps && (keys2 = Object.keys(message.throttled_apps)).length) { - object.throttled_apps = {}; - for (let j = 0; j < keys2.length; ++j) - object.throttled_apps[keys2[j]] = $root.topodata.ThrottledAppRule.toObject(message.throttled_apps[keys2[j]], options); + object.primary_alias = null; + object.key_range = null; + object.is_primary_serving = false; + object.primary_term_start_time = null; } - if (message.app_checked_metrics && (keys2 = Object.keys(message.app_checked_metrics)).length) { - object.app_checked_metrics = {}; - for (let j = 0; j < keys2.length; ++j) - object.app_checked_metrics[keys2[j]] = $root.topodata.ThrottlerConfig.MetricNames.toObject(message.app_checked_metrics[keys2[j]], options); + if (message.primary_alias != null && message.hasOwnProperty("primary_alias")) + object.primary_alias = $root.topodata.TabletAlias.toObject(message.primary_alias, options); + if (message.key_range != null && message.hasOwnProperty("key_range")) + object.key_range = $root.topodata.KeyRange.toObject(message.key_range, options); + if (message.source_shards && message.source_shards.length) { + object.source_shards = []; + for (let j = 0; j < message.source_shards.length; ++j) + object.source_shards[j] = $root.topodata.Shard.SourceShard.toObject(message.source_shards[j], options); } - if (message.metric_thresholds && (keys2 = Object.keys(message.metric_thresholds)).length) { - object.metric_thresholds = {}; - for (let j = 0; j < keys2.length; ++j) - object.metric_thresholds[keys2[j]] = options.json && !isFinite(message.metric_thresholds[keys2[j]]) ? String(message.metric_thresholds[keys2[j]]) : message.metric_thresholds[keys2[j]]; + if (message.tablet_controls && message.tablet_controls.length) { + object.tablet_controls = []; + for (let j = 0; j < message.tablet_controls.length; ++j) + object.tablet_controls[j] = $root.topodata.Shard.TabletControl.toObject(message.tablet_controls[j], options); } + if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) + object.is_primary_serving = message.is_primary_serving; + if (message.primary_term_start_time != null && message.hasOwnProperty("primary_term_start_time")) + object.primary_term_start_time = $root.vttime.Time.toObject(message.primary_term_start_time, options); return object; }; /** - * Converts this ThrottlerConfig to JSON. + * Converts this Shard to JSON. * @function toJSON - * @memberof topodata.ThrottlerConfig + * @memberof topodata.Shard * @instance * @returns {Object.} JSON object */ - ThrottlerConfig.prototype.toJSON = function toJSON() { + Shard.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ThrottlerConfig + * Gets the default type url for Shard * @function getTypeUrl - * @memberof topodata.ThrottlerConfig + * @memberof topodata.Shard * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ThrottlerConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Shard.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.ThrottlerConfig"; + return typeUrlPrefix + "/topodata.Shard"; }; - ThrottlerConfig.MetricNames = (function() { + Shard.SourceShard = (function() { /** - * Properties of a MetricNames. - * @memberof topodata.ThrottlerConfig - * @interface IMetricNames - * @property {Array.|null} [names] MetricNames names + * Properties of a SourceShard. + * @memberof topodata.Shard + * @interface ISourceShard + * @property {number|null} [uid] SourceShard uid + * @property {string|null} [keyspace] SourceShard keyspace + * @property {string|null} [shard] SourceShard shard + * @property {topodata.IKeyRange|null} [key_range] SourceShard key_range + * @property {Array.|null} [tables] SourceShard tables */ /** - * Constructs a new MetricNames. - * @memberof topodata.ThrottlerConfig - * @classdesc Represents a MetricNames. - * @implements IMetricNames + * Constructs a new SourceShard. + * @memberof topodata.Shard + * @classdesc Represents a SourceShard. + * @implements ISourceShard * @constructor - * @param {topodata.ThrottlerConfig.IMetricNames=} [properties] Properties to set + * @param {topodata.Shard.ISourceShard=} [properties] Properties to set */ - function MetricNames(properties) { - this.names = []; + function SourceShard(properties) { + this.tables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45756,78 +45178,134 @@ export const topodata = $root.topodata = (() => { } /** - * MetricNames names. - * @member {Array.} names - * @memberof topodata.ThrottlerConfig.MetricNames + * SourceShard uid. + * @member {number} uid + * @memberof topodata.Shard.SourceShard * @instance */ - MetricNames.prototype.names = $util.emptyArray; + SourceShard.prototype.uid = 0; /** - * Creates a new MetricNames instance using the specified properties. + * SourceShard keyspace. + * @member {string} keyspace + * @memberof topodata.Shard.SourceShard + * @instance + */ + SourceShard.prototype.keyspace = ""; + + /** + * SourceShard shard. + * @member {string} shard + * @memberof topodata.Shard.SourceShard + * @instance + */ + SourceShard.prototype.shard = ""; + + /** + * SourceShard key_range. + * @member {topodata.IKeyRange|null|undefined} key_range + * @memberof topodata.Shard.SourceShard + * @instance + */ + SourceShard.prototype.key_range = null; + + /** + * SourceShard tables. + * @member {Array.} tables + * @memberof topodata.Shard.SourceShard + * @instance + */ + SourceShard.prototype.tables = $util.emptyArray; + + /** + * Creates a new SourceShard instance using the specified properties. * @function create - * @memberof topodata.ThrottlerConfig.MetricNames + * @memberof topodata.Shard.SourceShard * @static - * @param {topodata.ThrottlerConfig.IMetricNames=} [properties] Properties to set - * @returns {topodata.ThrottlerConfig.MetricNames} MetricNames instance + * @param {topodata.Shard.ISourceShard=} [properties] Properties to set + * @returns {topodata.Shard.SourceShard} SourceShard instance */ - MetricNames.create = function create(properties) { - return new MetricNames(properties); + SourceShard.create = function create(properties) { + return new SourceShard(properties); }; /** - * Encodes the specified MetricNames message. Does not implicitly {@link topodata.ThrottlerConfig.MetricNames.verify|verify} messages. + * Encodes the specified SourceShard message. Does not implicitly {@link topodata.Shard.SourceShard.verify|verify} messages. * @function encode - * @memberof topodata.ThrottlerConfig.MetricNames + * @memberof topodata.Shard.SourceShard * @static - * @param {topodata.ThrottlerConfig.IMetricNames} message MetricNames message or plain object to encode + * @param {topodata.Shard.ISourceShard} message SourceShard message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetricNames.encode = function encode(message, writer) { + SourceShard.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.names != null && message.names.length) - for (let i = 0; i < message.names.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.uid); + 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.key_range != null && Object.hasOwnProperty.call(message, "key_range")) + $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.tables != null && message.tables.length) + for (let i = 0; i < message.tables.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.tables[i]); return writer; }; /** - * Encodes the specified MetricNames message, length delimited. Does not implicitly {@link topodata.ThrottlerConfig.MetricNames.verify|verify} messages. + * Encodes the specified SourceShard message, length delimited. Does not implicitly {@link topodata.Shard.SourceShard.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.ThrottlerConfig.MetricNames + * @memberof topodata.Shard.SourceShard * @static - * @param {topodata.ThrottlerConfig.IMetricNames} message MetricNames message or plain object to encode + * @param {topodata.Shard.ISourceShard} message SourceShard message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetricNames.encodeDelimited = function encodeDelimited(message, writer) { + SourceShard.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MetricNames message from the specified reader or buffer. + * Decodes a SourceShard message from the specified reader or buffer. * @function decode - * @memberof topodata.ThrottlerConfig.MetricNames + * @memberof topodata.Shard.SourceShard * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.ThrottlerConfig.MetricNames} MetricNames + * @returns {topodata.Shard.SourceShard} SourceShard * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetricNames.decode = function decode(reader, length) { + SourceShard.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ThrottlerConfig.MetricNames(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.Shard.SourceShard(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); + message.uid = reader.int32(); + break; + } + case 2: { + message.keyspace = reader.string(); + break; + } + case 3: { + message.shard = reader.string(); + break; + } + case 4: { + message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); + break; + } + case 5: { + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); break; } default: @@ -45839,501 +45317,302 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a MetricNames message from the specified reader or buffer, length delimited. + * Decodes a SourceShard message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.ThrottlerConfig.MetricNames + * @memberof topodata.Shard.SourceShard * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.ThrottlerConfig.MetricNames} MetricNames + * @returns {topodata.Shard.SourceShard} SourceShard * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetricNames.decodeDelimited = function decodeDelimited(reader) { + SourceShard.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MetricNames message. + * Verifies a SourceShard message. * @function verify - * @memberof topodata.ThrottlerConfig.MetricNames + * @memberof topodata.Shard.SourceShard * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MetricNames.verify = function verify(message) { + SourceShard.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (let i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isInteger(message.uid)) + return "uid: integer 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.key_range != null && message.hasOwnProperty("key_range")) { + let error = $root.topodata.KeyRange.verify(message.key_range); + if (error) + return "key_range." + error; + } + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (let i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; } return null; }; /** - * Creates a MetricNames message from a plain object. Also converts values to their respective internal types. + * Creates a SourceShard message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.ThrottlerConfig.MetricNames + * @memberof topodata.Shard.SourceShard * @static * @param {Object.} object Plain object - * @returns {topodata.ThrottlerConfig.MetricNames} MetricNames + * @returns {topodata.Shard.SourceShard} SourceShard */ - MetricNames.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.ThrottlerConfig.MetricNames) + SourceShard.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.Shard.SourceShard) return object; - let message = new $root.topodata.ThrottlerConfig.MetricNames(); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".topodata.ThrottlerConfig.MetricNames.names: array expected"); - message.names = []; - for (let i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); + let message = new $root.topodata.Shard.SourceShard(); + if (object.uid != null) + message.uid = object.uid | 0; + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.key_range != null) { + if (typeof object.key_range !== "object") + throw TypeError(".topodata.Shard.SourceShard.key_range: object expected"); + message.key_range = $root.topodata.KeyRange.fromObject(object.key_range); + } + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".topodata.Shard.SourceShard.tables: array expected"); + message.tables = []; + for (let i = 0; i < object.tables.length; ++i) + message.tables[i] = String(object.tables[i]); } return message; }; /** - * Creates a plain object from a MetricNames message. Also converts values to other types if specified. + * Creates a plain object from a SourceShard message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.ThrottlerConfig.MetricNames + * @memberof topodata.Shard.SourceShard * @static - * @param {topodata.ThrottlerConfig.MetricNames} message MetricNames + * @param {topodata.Shard.SourceShard} message SourceShard * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MetricNames.toObject = function toObject(message, options) { + SourceShard.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.names = []; - if (message.names && message.names.length) { - object.names = []; - for (let j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; + object.tables = []; + if (options.defaults) { + object.uid = 0; + object.keyspace = ""; + object.shard = ""; + object.key_range = null; + } + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.key_range != null && message.hasOwnProperty("key_range")) + object.key_range = $root.topodata.KeyRange.toObject(message.key_range, options); + if (message.tables && message.tables.length) { + object.tables = []; + for (let j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; } return object; }; /** - * Converts this MetricNames to JSON. + * Converts this SourceShard to JSON. * @function toJSON - * @memberof topodata.ThrottlerConfig.MetricNames + * @memberof topodata.Shard.SourceShard * @instance * @returns {Object.} JSON object */ - MetricNames.prototype.toJSON = function toJSON() { + SourceShard.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MetricNames + * Gets the default type url for SourceShard * @function getTypeUrl - * @memberof topodata.ThrottlerConfig.MetricNames + * @memberof topodata.Shard.SourceShard * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MetricNames.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SourceShard.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.ThrottlerConfig.MetricNames"; + return typeUrlPrefix + "/topodata.Shard.SourceShard"; }; - return MetricNames; + return SourceShard; })(); - return ThrottlerConfig; - })(); + Shard.TabletControl = (function() { - topodata.SrvKeyspace = (function() { + /** + * Properties of a TabletControl. + * @memberof topodata.Shard + * @interface ITabletControl + * @property {topodata.TabletType|null} [tablet_type] TabletControl tablet_type + * @property {Array.|null} [cells] TabletControl cells + * @property {Array.|null} [denied_tables] TabletControl denied_tables + * @property {boolean|null} [frozen] TabletControl frozen + */ - /** - * Properties of a SrvKeyspace. - * @memberof topodata - * @interface ISrvKeyspace - * @property {Array.|null} [partitions] SrvKeyspace partitions - * @property {topodata.IThrottlerConfig|null} [throttler_config] SrvKeyspace throttler_config - */ + /** + * Constructs a new TabletControl. + * @memberof topodata.Shard + * @classdesc Represents a TabletControl. + * @implements ITabletControl + * @constructor + * @param {topodata.Shard.ITabletControl=} [properties] Properties to set + */ + function TabletControl(properties) { + this.cells = []; + this.denied_tables = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new SrvKeyspace. - * @memberof topodata - * @classdesc Represents a SrvKeyspace. - * @implements ISrvKeyspace - * @constructor - * @param {topodata.ISrvKeyspace=} [properties] Properties to set - */ - function SrvKeyspace(properties) { - this.partitions = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * TabletControl tablet_type. + * @member {topodata.TabletType} tablet_type + * @memberof topodata.Shard.TabletControl + * @instance + */ + TabletControl.prototype.tablet_type = 0; - /** - * SrvKeyspace partitions. - * @member {Array.} partitions - * @memberof topodata.SrvKeyspace - * @instance - */ - SrvKeyspace.prototype.partitions = $util.emptyArray; + /** + * TabletControl cells. + * @member {Array.} cells + * @memberof topodata.Shard.TabletControl + * @instance + */ + TabletControl.prototype.cells = $util.emptyArray; - /** - * SrvKeyspace throttler_config. - * @member {topodata.IThrottlerConfig|null|undefined} throttler_config - * @memberof topodata.SrvKeyspace - * @instance - */ - SrvKeyspace.prototype.throttler_config = null; + /** + * TabletControl denied_tables. + * @member {Array.} denied_tables + * @memberof topodata.Shard.TabletControl + * @instance + */ + TabletControl.prototype.denied_tables = $util.emptyArray; - /** - * Creates a new SrvKeyspace instance using the specified properties. - * @function create - * @memberof topodata.SrvKeyspace - * @static - * @param {topodata.ISrvKeyspace=} [properties] Properties to set - * @returns {topodata.SrvKeyspace} SrvKeyspace instance - */ - SrvKeyspace.create = function create(properties) { - return new SrvKeyspace(properties); - }; + /** + * TabletControl frozen. + * @member {boolean} frozen + * @memberof topodata.Shard.TabletControl + * @instance + */ + TabletControl.prototype.frozen = false; - /** - * Encodes the specified SrvKeyspace message. Does not implicitly {@link topodata.SrvKeyspace.verify|verify} messages. - * @function encode - * @memberof topodata.SrvKeyspace - * @static - * @param {topodata.ISrvKeyspace} message SrvKeyspace message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SrvKeyspace.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.partitions != null && message.partitions.length) - for (let i = 0; i < message.partitions.length; ++i) - $root.topodata.SrvKeyspace.KeyspacePartition.encode(message.partitions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.throttler_config != null && Object.hasOwnProperty.call(message, "throttler_config")) - $root.topodata.ThrottlerConfig.encode(message.throttler_config, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + /** + * Creates a new TabletControl instance using the specified properties. + * @function create + * @memberof topodata.Shard.TabletControl + * @static + * @param {topodata.Shard.ITabletControl=} [properties] Properties to set + * @returns {topodata.Shard.TabletControl} TabletControl instance + */ + TabletControl.create = function create(properties) { + return new TabletControl(properties); + }; - /** - * Encodes the specified SrvKeyspace message, length delimited. Does not implicitly {@link topodata.SrvKeyspace.verify|verify} messages. - * @function encodeDelimited - * @memberof topodata.SrvKeyspace - * @static - * @param {topodata.ISrvKeyspace} message SrvKeyspace message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SrvKeyspace.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SrvKeyspace message from the specified reader or buffer. - * @function decode - * @memberof topodata.SrvKeyspace - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {topodata.SrvKeyspace} SrvKeyspace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SrvKeyspace.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.SrvKeyspace(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.partitions && message.partitions.length)) - message.partitions = []; - message.partitions.push($root.topodata.SrvKeyspace.KeyspacePartition.decode(reader, reader.uint32())); - break; - } - case 6: { - message.throttler_config = $root.topodata.ThrottlerConfig.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SrvKeyspace message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof topodata.SrvKeyspace - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.SrvKeyspace} SrvKeyspace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SrvKeyspace.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SrvKeyspace message. - * @function verify - * @memberof topodata.SrvKeyspace - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SrvKeyspace.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.partitions != null && message.hasOwnProperty("partitions")) { - if (!Array.isArray(message.partitions)) - return "partitions: array expected"; - for (let i = 0; i < message.partitions.length; ++i) { - let error = $root.topodata.SrvKeyspace.KeyspacePartition.verify(message.partitions[i]); - if (error) - return "partitions." + error; - } - } - if (message.throttler_config != null && message.hasOwnProperty("throttler_config")) { - let error = $root.topodata.ThrottlerConfig.verify(message.throttler_config); - if (error) - return "throttler_config." + error; - } - return null; - }; - - /** - * Creates a SrvKeyspace message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof topodata.SrvKeyspace - * @static - * @param {Object.} object Plain object - * @returns {topodata.SrvKeyspace} SrvKeyspace - */ - SrvKeyspace.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.SrvKeyspace) - return object; - let message = new $root.topodata.SrvKeyspace(); - if (object.partitions) { - if (!Array.isArray(object.partitions)) - throw TypeError(".topodata.SrvKeyspace.partitions: array expected"); - message.partitions = []; - for (let i = 0; i < object.partitions.length; ++i) { - if (typeof object.partitions[i] !== "object") - throw TypeError(".topodata.SrvKeyspace.partitions: object expected"); - message.partitions[i] = $root.topodata.SrvKeyspace.KeyspacePartition.fromObject(object.partitions[i]); - } - } - if (object.throttler_config != null) { - if (typeof object.throttler_config !== "object") - throw TypeError(".topodata.SrvKeyspace.throttler_config: object expected"); - message.throttler_config = $root.topodata.ThrottlerConfig.fromObject(object.throttler_config); - } - return message; - }; - - /** - * Creates a plain object from a SrvKeyspace message. Also converts values to other types if specified. - * @function toObject - * @memberof topodata.SrvKeyspace - * @static - * @param {topodata.SrvKeyspace} message SrvKeyspace - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SrvKeyspace.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.partitions = []; - if (options.defaults) - object.throttler_config = null; - if (message.partitions && message.partitions.length) { - object.partitions = []; - for (let j = 0; j < message.partitions.length; ++j) - object.partitions[j] = $root.topodata.SrvKeyspace.KeyspacePartition.toObject(message.partitions[j], options); - } - if (message.throttler_config != null && message.hasOwnProperty("throttler_config")) - object.throttler_config = $root.topodata.ThrottlerConfig.toObject(message.throttler_config, options); - return object; - }; - - /** - * Converts this SrvKeyspace to JSON. - * @function toJSON - * @memberof topodata.SrvKeyspace - * @instance - * @returns {Object.} JSON object - */ - SrvKeyspace.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for SrvKeyspace - * @function getTypeUrl - * @memberof topodata.SrvKeyspace - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SrvKeyspace.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/topodata.SrvKeyspace"; - }; - - SrvKeyspace.KeyspacePartition = (function() { - - /** - * Properties of a KeyspacePartition. - * @memberof topodata.SrvKeyspace - * @interface IKeyspacePartition - * @property {topodata.TabletType|null} [served_type] KeyspacePartition served_type - * @property {Array.|null} [shard_references] KeyspacePartition shard_references - * @property {Array.|null} [shard_tablet_controls] KeyspacePartition shard_tablet_controls - */ - - /** - * Constructs a new KeyspacePartition. - * @memberof topodata.SrvKeyspace - * @classdesc Represents a KeyspacePartition. - * @implements IKeyspacePartition - * @constructor - * @param {topodata.SrvKeyspace.IKeyspacePartition=} [properties] Properties to set - */ - function KeyspacePartition(properties) { - this.shard_references = []; - this.shard_tablet_controls = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * KeyspacePartition served_type. - * @member {topodata.TabletType} served_type - * @memberof topodata.SrvKeyspace.KeyspacePartition - * @instance - */ - KeyspacePartition.prototype.served_type = 0; - - /** - * KeyspacePartition shard_references. - * @member {Array.} shard_references - * @memberof topodata.SrvKeyspace.KeyspacePartition - * @instance - */ - KeyspacePartition.prototype.shard_references = $util.emptyArray; - - /** - * KeyspacePartition shard_tablet_controls. - * @member {Array.} shard_tablet_controls - * @memberof topodata.SrvKeyspace.KeyspacePartition - * @instance - */ - KeyspacePartition.prototype.shard_tablet_controls = $util.emptyArray; - - /** - * Creates a new KeyspacePartition instance using the specified properties. - * @function create - * @memberof topodata.SrvKeyspace.KeyspacePartition - * @static - * @param {topodata.SrvKeyspace.IKeyspacePartition=} [properties] Properties to set - * @returns {topodata.SrvKeyspace.KeyspacePartition} KeyspacePartition instance - */ - KeyspacePartition.create = function create(properties) { - return new KeyspacePartition(properties); - }; - - /** - * Encodes the specified KeyspacePartition message. Does not implicitly {@link topodata.SrvKeyspace.KeyspacePartition.verify|verify} messages. - * @function encode - * @memberof topodata.SrvKeyspace.KeyspacePartition - * @static - * @param {topodata.SrvKeyspace.IKeyspacePartition} message KeyspacePartition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KeyspacePartition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.served_type != null && Object.hasOwnProperty.call(message, "served_type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.served_type); - if (message.shard_references != null && message.shard_references.length) - for (let i = 0; i < message.shard_references.length; ++i) - $root.topodata.ShardReference.encode(message.shard_references[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shard_tablet_controls != null && message.shard_tablet_controls.length) - for (let i = 0; i < message.shard_tablet_controls.length; ++i) - $root.topodata.ShardTabletControl.encode(message.shard_tablet_controls[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified TabletControl message. Does not implicitly {@link topodata.Shard.TabletControl.verify|verify} messages. + * @function encode + * @memberof topodata.Shard.TabletControl + * @static + * @param {topodata.Shard.ITabletControl} message TabletControl message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TabletControl.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tablet_type); + if (message.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); + if (message.denied_tables != null && message.denied_tables.length) + for (let i = 0; i < message.denied_tables.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.denied_tables[i]); + if (message.frozen != null && Object.hasOwnProperty.call(message, "frozen")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.frozen); + return writer; + }; /** - * Encodes the specified KeyspacePartition message, length delimited. Does not implicitly {@link topodata.SrvKeyspace.KeyspacePartition.verify|verify} messages. + * Encodes the specified TabletControl message, length delimited. Does not implicitly {@link topodata.Shard.TabletControl.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.SrvKeyspace.KeyspacePartition + * @memberof topodata.Shard.TabletControl * @static - * @param {topodata.SrvKeyspace.IKeyspacePartition} message KeyspacePartition message or plain object to encode + * @param {topodata.Shard.ITabletControl} message TabletControl message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KeyspacePartition.encodeDelimited = function encodeDelimited(message, writer) { + TabletControl.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a KeyspacePartition message from the specified reader or buffer. + * Decodes a TabletControl message from the specified reader or buffer. * @function decode - * @memberof topodata.SrvKeyspace.KeyspacePartition + * @memberof topodata.Shard.TabletControl * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.SrvKeyspace.KeyspacePartition} KeyspacePartition + * @returns {topodata.Shard.TabletControl} TabletControl * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KeyspacePartition.decode = function decode(reader, length) { + TabletControl.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.SrvKeyspace.KeyspacePartition(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.Shard.TabletControl(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.served_type = reader.int32(); + message.tablet_type = reader.int32(); break; } case 2: { - if (!(message.shard_references && message.shard_references.length)) - message.shard_references = []; - message.shard_references.push($root.topodata.ShardReference.decode(reader, reader.uint32())); + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; } - case 3: { - if (!(message.shard_tablet_controls && message.shard_tablet_controls.length)) - message.shard_tablet_controls = []; - message.shard_tablet_controls.push($root.topodata.ShardTabletControl.decode(reader, reader.uint32())); + case 4: { + if (!(message.denied_tables && message.denied_tables.length)) + message.denied_tables = []; + message.denied_tables.push(reader.string()); + break; + } + case 5: { + message.frozen = reader.bool(); break; } default: @@ -46345,36 +45624,36 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a KeyspacePartition message from the specified reader or buffer, length delimited. + * Decodes a TabletControl message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.SrvKeyspace.KeyspacePartition + * @memberof topodata.Shard.TabletControl * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.SrvKeyspace.KeyspacePartition} KeyspacePartition + * @returns {topodata.Shard.TabletControl} TabletControl * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KeyspacePartition.decodeDelimited = function decodeDelimited(reader) { + TabletControl.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a KeyspacePartition message. + * Verifies a TabletControl message. * @function verify - * @memberof topodata.SrvKeyspace.KeyspacePartition + * @memberof topodata.Shard.TabletControl * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KeyspacePartition.verify = function verify(message) { + TabletControl.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.served_type != null && message.hasOwnProperty("served_type")) - switch (message.served_type) { + if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) + switch (message.tablet_type) { default: - return "served_type: enum value expected"; + return "tablet_type: enum value expected"; case 0: case 1: case 1: @@ -46388,199 +45667,202 @@ export const topodata = $root.topodata = (() => { case 8: break; } - if (message.shard_references != null && message.hasOwnProperty("shard_references")) { - if (!Array.isArray(message.shard_references)) - return "shard_references: array expected"; - for (let i = 0; i < message.shard_references.length; ++i) { - let error = $root.topodata.ShardReference.verify(message.shard_references[i]); - if (error) - return "shard_references." + error; - } + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; } - if (message.shard_tablet_controls != null && message.hasOwnProperty("shard_tablet_controls")) { - if (!Array.isArray(message.shard_tablet_controls)) - return "shard_tablet_controls: array expected"; - for (let i = 0; i < message.shard_tablet_controls.length; ++i) { - let error = $root.topodata.ShardTabletControl.verify(message.shard_tablet_controls[i]); - if (error) - return "shard_tablet_controls." + error; - } + if (message.denied_tables != null && message.hasOwnProperty("denied_tables")) { + if (!Array.isArray(message.denied_tables)) + return "denied_tables: array expected"; + for (let i = 0; i < message.denied_tables.length; ++i) + if (!$util.isString(message.denied_tables[i])) + return "denied_tables: string[] expected"; } + if (message.frozen != null && message.hasOwnProperty("frozen")) + if (typeof message.frozen !== "boolean") + return "frozen: boolean expected"; return null; }; /** - * Creates a KeyspacePartition message from a plain object. Also converts values to their respective internal types. + * Creates a TabletControl message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.SrvKeyspace.KeyspacePartition + * @memberof topodata.Shard.TabletControl * @static * @param {Object.} object Plain object - * @returns {topodata.SrvKeyspace.KeyspacePartition} KeyspacePartition + * @returns {topodata.Shard.TabletControl} TabletControl */ - KeyspacePartition.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.SrvKeyspace.KeyspacePartition) + TabletControl.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.Shard.TabletControl) return object; - let message = new $root.topodata.SrvKeyspace.KeyspacePartition(); - switch (object.served_type) { + let message = new $root.topodata.Shard.TabletControl(); + switch (object.tablet_type) { default: - if (typeof object.served_type === "number") { - message.served_type = object.served_type; + if (typeof object.tablet_type === "number") { + message.tablet_type = object.tablet_type; break; } break; case "UNKNOWN": case 0: - message.served_type = 0; + message.tablet_type = 0; break; case "PRIMARY": case 1: - message.served_type = 1; + message.tablet_type = 1; break; case "MASTER": case 1: - message.served_type = 1; + message.tablet_type = 1; break; case "REPLICA": case 2: - message.served_type = 2; + message.tablet_type = 2; break; case "RDONLY": case 3: - message.served_type = 3; + message.tablet_type = 3; break; case "BATCH": case 3: - message.served_type = 3; + message.tablet_type = 3; break; case "SPARE": case 4: - message.served_type = 4; + message.tablet_type = 4; break; case "EXPERIMENTAL": case 5: - message.served_type = 5; + message.tablet_type = 5; break; case "BACKUP": case 6: - message.served_type = 6; + message.tablet_type = 6; break; case "RESTORE": case 7: - message.served_type = 7; + message.tablet_type = 7; break; case "DRAINED": case 8: - message.served_type = 8; + message.tablet_type = 8; break; } - if (object.shard_references) { - if (!Array.isArray(object.shard_references)) - throw TypeError(".topodata.SrvKeyspace.KeyspacePartition.shard_references: array expected"); - message.shard_references = []; - for (let i = 0; i < object.shard_references.length; ++i) { - if (typeof object.shard_references[i] !== "object") - throw TypeError(".topodata.SrvKeyspace.KeyspacePartition.shard_references: object expected"); - message.shard_references[i] = $root.topodata.ShardReference.fromObject(object.shard_references[i]); - } + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".topodata.Shard.TabletControl.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); } - if (object.shard_tablet_controls) { - if (!Array.isArray(object.shard_tablet_controls)) - throw TypeError(".topodata.SrvKeyspace.KeyspacePartition.shard_tablet_controls: array expected"); - message.shard_tablet_controls = []; - for (let i = 0; i < object.shard_tablet_controls.length; ++i) { - if (typeof object.shard_tablet_controls[i] !== "object") - throw TypeError(".topodata.SrvKeyspace.KeyspacePartition.shard_tablet_controls: object expected"); - message.shard_tablet_controls[i] = $root.topodata.ShardTabletControl.fromObject(object.shard_tablet_controls[i]); - } + if (object.denied_tables) { + if (!Array.isArray(object.denied_tables)) + throw TypeError(".topodata.Shard.TabletControl.denied_tables: array expected"); + message.denied_tables = []; + for (let i = 0; i < object.denied_tables.length; ++i) + message.denied_tables[i] = String(object.denied_tables[i]); } + if (object.frozen != null) + message.frozen = Boolean(object.frozen); return message; }; /** - * Creates a plain object from a KeyspacePartition message. Also converts values to other types if specified. + * Creates a plain object from a TabletControl message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.SrvKeyspace.KeyspacePartition + * @memberof topodata.Shard.TabletControl * @static - * @param {topodata.SrvKeyspace.KeyspacePartition} message KeyspacePartition + * @param {topodata.Shard.TabletControl} message TabletControl * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KeyspacePartition.toObject = function toObject(message, options) { + TabletControl.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { - object.shard_references = []; - object.shard_tablet_controls = []; + object.cells = []; + object.denied_tables = []; } - if (options.defaults) - object.served_type = options.enums === String ? "UNKNOWN" : 0; - if (message.served_type != null && message.hasOwnProperty("served_type")) - object.served_type = options.enums === String ? $root.topodata.TabletType[message.served_type] === undefined ? message.served_type : $root.topodata.TabletType[message.served_type] : message.served_type; - if (message.shard_references && message.shard_references.length) { - object.shard_references = []; - for (let j = 0; j < message.shard_references.length; ++j) - object.shard_references[j] = $root.topodata.ShardReference.toObject(message.shard_references[j], options); + if (options.defaults) { + object.tablet_type = options.enums === String ? "UNKNOWN" : 0; + object.frozen = false; } - if (message.shard_tablet_controls && message.shard_tablet_controls.length) { - object.shard_tablet_controls = []; - for (let j = 0; j < message.shard_tablet_controls.length; ++j) - object.shard_tablet_controls[j] = $root.topodata.ShardTabletControl.toObject(message.shard_tablet_controls[j], options); + if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) + object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] === undefined ? message.tablet_type : $root.topodata.TabletType[message.tablet_type] : message.tablet_type; + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + if (message.denied_tables && message.denied_tables.length) { + object.denied_tables = []; + for (let j = 0; j < message.denied_tables.length; ++j) + object.denied_tables[j] = message.denied_tables[j]; } + if (message.frozen != null && message.hasOwnProperty("frozen")) + object.frozen = message.frozen; return object; }; /** - * Converts this KeyspacePartition to JSON. + * Converts this TabletControl to JSON. * @function toJSON - * @memberof topodata.SrvKeyspace.KeyspacePartition + * @memberof topodata.Shard.TabletControl * @instance * @returns {Object.} JSON object */ - KeyspacePartition.prototype.toJSON = function toJSON() { + TabletControl.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for KeyspacePartition + * Gets the default type url for TabletControl * @function getTypeUrl - * @memberof topodata.SrvKeyspace.KeyspacePartition + * @memberof topodata.Shard.TabletControl * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - KeyspacePartition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TabletControl.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.SrvKeyspace.KeyspacePartition"; + return typeUrlPrefix + "/topodata.Shard.TabletControl"; }; - return KeyspacePartition; + return TabletControl; })(); - return SrvKeyspace; + return Shard; })(); - topodata.CellInfo = (function() { + topodata.Keyspace = (function() { /** - * Properties of a CellInfo. + * Properties of a Keyspace. * @memberof topodata - * @interface ICellInfo - * @property {string|null} [server_address] CellInfo server_address - * @property {string|null} [root] CellInfo root + * @interface IKeyspace + * @property {topodata.KeyspaceType|null} [keyspace_type] Keyspace keyspace_type + * @property {string|null} [base_keyspace] Keyspace base_keyspace + * @property {vttime.ITime|null} [snapshot_time] Keyspace snapshot_time + * @property {string|null} [durability_policy] Keyspace durability_policy + * @property {topodata.IThrottlerConfig|null} [throttler_config] Keyspace throttler_config + * @property {string|null} [sidecar_db_name] Keyspace sidecar_db_name */ /** - * Constructs a new CellInfo. + * Constructs a new Keyspace. * @memberof topodata - * @classdesc Represents a CellInfo. - * @implements ICellInfo + * @classdesc Represents a Keyspace. + * @implements IKeyspace * @constructor - * @param {topodata.ICellInfo=} [properties] Properties to set + * @param {topodata.IKeyspace=} [properties] Properties to set */ - function CellInfo(properties) { + function Keyspace(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46588,89 +45870,145 @@ export const topodata = $root.topodata = (() => { } /** - * CellInfo server_address. - * @member {string} server_address - * @memberof topodata.CellInfo + * Keyspace keyspace_type. + * @member {topodata.KeyspaceType} keyspace_type + * @memberof topodata.Keyspace * @instance */ - CellInfo.prototype.server_address = ""; + Keyspace.prototype.keyspace_type = 0; /** - * CellInfo root. - * @member {string} root - * @memberof topodata.CellInfo + * Keyspace base_keyspace. + * @member {string} base_keyspace + * @memberof topodata.Keyspace * @instance */ - CellInfo.prototype.root = ""; + Keyspace.prototype.base_keyspace = ""; /** - * Creates a new CellInfo instance using the specified properties. + * Keyspace snapshot_time. + * @member {vttime.ITime|null|undefined} snapshot_time + * @memberof topodata.Keyspace + * @instance + */ + Keyspace.prototype.snapshot_time = null; + + /** + * Keyspace durability_policy. + * @member {string} durability_policy + * @memberof topodata.Keyspace + * @instance + */ + Keyspace.prototype.durability_policy = ""; + + /** + * Keyspace throttler_config. + * @member {topodata.IThrottlerConfig|null|undefined} throttler_config + * @memberof topodata.Keyspace + * @instance + */ + Keyspace.prototype.throttler_config = null; + + /** + * Keyspace sidecar_db_name. + * @member {string} sidecar_db_name + * @memberof topodata.Keyspace + * @instance + */ + Keyspace.prototype.sidecar_db_name = ""; + + /** + * Creates a new Keyspace instance using the specified properties. * @function create - * @memberof topodata.CellInfo + * @memberof topodata.Keyspace * @static - * @param {topodata.ICellInfo=} [properties] Properties to set - * @returns {topodata.CellInfo} CellInfo instance + * @param {topodata.IKeyspace=} [properties] Properties to set + * @returns {topodata.Keyspace} Keyspace instance */ - CellInfo.create = function create(properties) { - return new CellInfo(properties); + Keyspace.create = function create(properties) { + return new Keyspace(properties); }; /** - * Encodes the specified CellInfo message. Does not implicitly {@link topodata.CellInfo.verify|verify} messages. + * Encodes the specified Keyspace message. Does not implicitly {@link topodata.Keyspace.verify|verify} messages. * @function encode - * @memberof topodata.CellInfo + * @memberof topodata.Keyspace * @static - * @param {topodata.ICellInfo} message CellInfo message or plain object to encode + * @param {topodata.IKeyspace} message Keyspace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CellInfo.encode = function encode(message, writer) { + Keyspace.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.server_address != null && Object.hasOwnProperty.call(message, "server_address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.server_address); - if (message.root != null && Object.hasOwnProperty.call(message, "root")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.root); + if (message.keyspace_type != null && Object.hasOwnProperty.call(message, "keyspace_type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.keyspace_type); + if (message.base_keyspace != null && Object.hasOwnProperty.call(message, "base_keyspace")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.base_keyspace); + if (message.snapshot_time != null && Object.hasOwnProperty.call(message, "snapshot_time")) + $root.vttime.Time.encode(message.snapshot_time, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.durability_policy != null && Object.hasOwnProperty.call(message, "durability_policy")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.durability_policy); + if (message.throttler_config != null && Object.hasOwnProperty.call(message, "throttler_config")) + $root.topodata.ThrottlerConfig.encode(message.throttler_config, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.sidecar_db_name != null && Object.hasOwnProperty.call(message, "sidecar_db_name")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.sidecar_db_name); return writer; }; /** - * Encodes the specified CellInfo message, length delimited. Does not implicitly {@link topodata.CellInfo.verify|verify} messages. + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link topodata.Keyspace.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.CellInfo + * @memberof topodata.Keyspace * @static - * @param {topodata.ICellInfo} message CellInfo message or plain object to encode + * @param {topodata.IKeyspace} message Keyspace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CellInfo.encodeDelimited = function encodeDelimited(message, writer) { + Keyspace.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CellInfo message from the specified reader or buffer. + * Decodes a Keyspace message from the specified reader or buffer. * @function decode - * @memberof topodata.CellInfo + * @memberof topodata.Keyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.CellInfo} CellInfo + * @returns {topodata.Keyspace} Keyspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CellInfo.decode = function decode(reader, length) { + Keyspace.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.CellInfo(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.Keyspace(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.server_address = reader.string(); + case 5: { + message.keyspace_type = reader.int32(); break; } - case 2: { - message.root = reader.string(); + case 6: { + message.base_keyspace = reader.string(); + break; + } + case 7: { + message.snapshot_time = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 8: { + message.durability_policy = reader.string(); + break; + } + case 9: { + message.throttler_config = $root.topodata.ThrottlerConfig.decode(reader, reader.uint32()); + break; + } + case 10: { + message.sidecar_db_name = reader.string(); break; } default: @@ -46682,132 +46020,193 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a CellInfo message from the specified reader or buffer, length delimited. + * Decodes a Keyspace message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.CellInfo + * @memberof topodata.Keyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.CellInfo} CellInfo + * @returns {topodata.Keyspace} Keyspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CellInfo.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 CellInfo message. + * Verifies a Keyspace message. * @function verify - * @memberof topodata.CellInfo + * @memberof topodata.Keyspace * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CellInfo.verify = function verify(message) { + Keyspace.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.server_address != null && message.hasOwnProperty("server_address")) - if (!$util.isString(message.server_address)) - return "server_address: string expected"; - if (message.root != null && message.hasOwnProperty("root")) - if (!$util.isString(message.root)) - return "root: string expected"; + if (message.keyspace_type != null && message.hasOwnProperty("keyspace_type")) + switch (message.keyspace_type) { + default: + return "keyspace_type: enum value expected"; + case 0: + case 1: + break; + } + if (message.base_keyspace != null && message.hasOwnProperty("base_keyspace")) + if (!$util.isString(message.base_keyspace)) + return "base_keyspace: string expected"; + if (message.snapshot_time != null && message.hasOwnProperty("snapshot_time")) { + let error = $root.vttime.Time.verify(message.snapshot_time); + if (error) + return "snapshot_time." + error; + } + if (message.durability_policy != null && message.hasOwnProperty("durability_policy")) + if (!$util.isString(message.durability_policy)) + return "durability_policy: string expected"; + if (message.throttler_config != null && message.hasOwnProperty("throttler_config")) { + let error = $root.topodata.ThrottlerConfig.verify(message.throttler_config); + if (error) + return "throttler_config." + error; + } + if (message.sidecar_db_name != null && message.hasOwnProperty("sidecar_db_name")) + if (!$util.isString(message.sidecar_db_name)) + return "sidecar_db_name: string expected"; return null; }; /** - * Creates a CellInfo 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 topodata.CellInfo + * @memberof topodata.Keyspace * @static * @param {Object.} object Plain object - * @returns {topodata.CellInfo} CellInfo + * @returns {topodata.Keyspace} Keyspace */ - CellInfo.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.CellInfo) + Keyspace.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.Keyspace) return object; - let message = new $root.topodata.CellInfo(); - if (object.server_address != null) - message.server_address = String(object.server_address); - if (object.root != null) - message.root = String(object.root); + let message = new $root.topodata.Keyspace(); + switch (object.keyspace_type) { + default: + if (typeof object.keyspace_type === "number") { + message.keyspace_type = object.keyspace_type; + break; + } + break; + case "NORMAL": + case 0: + message.keyspace_type = 0; + break; + case "SNAPSHOT": + case 1: + message.keyspace_type = 1; + break; + } + if (object.base_keyspace != null) + message.base_keyspace = String(object.base_keyspace); + if (object.snapshot_time != null) { + if (typeof object.snapshot_time !== "object") + throw TypeError(".topodata.Keyspace.snapshot_time: object expected"); + message.snapshot_time = $root.vttime.Time.fromObject(object.snapshot_time); + } + if (object.durability_policy != null) + message.durability_policy = String(object.durability_policy); + if (object.throttler_config != null) { + if (typeof object.throttler_config !== "object") + throw TypeError(".topodata.Keyspace.throttler_config: object expected"); + message.throttler_config = $root.topodata.ThrottlerConfig.fromObject(object.throttler_config); + } + if (object.sidecar_db_name != null) + message.sidecar_db_name = String(object.sidecar_db_name); return message; }; /** - * Creates a plain object from a CellInfo 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 topodata.CellInfo + * @memberof topodata.Keyspace * @static - * @param {topodata.CellInfo} message CellInfo + * @param {topodata.Keyspace} message Keyspace * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CellInfo.toObject = function toObject(message, options) { + Keyspace.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.server_address = ""; - object.root = ""; + object.keyspace_type = options.enums === String ? "NORMAL" : 0; + object.base_keyspace = ""; + object.snapshot_time = null; + object.durability_policy = ""; + object.throttler_config = null; + object.sidecar_db_name = ""; } - if (message.server_address != null && message.hasOwnProperty("server_address")) - object.server_address = message.server_address; - if (message.root != null && message.hasOwnProperty("root")) - object.root = message.root; + if (message.keyspace_type != null && message.hasOwnProperty("keyspace_type")) + object.keyspace_type = options.enums === String ? $root.topodata.KeyspaceType[message.keyspace_type] === undefined ? message.keyspace_type : $root.topodata.KeyspaceType[message.keyspace_type] : message.keyspace_type; + if (message.base_keyspace != null && message.hasOwnProperty("base_keyspace")) + object.base_keyspace = message.base_keyspace; + if (message.snapshot_time != null && message.hasOwnProperty("snapshot_time")) + object.snapshot_time = $root.vttime.Time.toObject(message.snapshot_time, options); + if (message.durability_policy != null && message.hasOwnProperty("durability_policy")) + object.durability_policy = message.durability_policy; + if (message.throttler_config != null && message.hasOwnProperty("throttler_config")) + object.throttler_config = $root.topodata.ThrottlerConfig.toObject(message.throttler_config, options); + if (message.sidecar_db_name != null && message.hasOwnProperty("sidecar_db_name")) + object.sidecar_db_name = message.sidecar_db_name; return object; }; /** - * Converts this CellInfo to JSON. + * Converts this Keyspace to JSON. * @function toJSON - * @memberof topodata.CellInfo + * @memberof topodata.Keyspace * @instance * @returns {Object.} JSON object */ - CellInfo.prototype.toJSON = function toJSON() { + Keyspace.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CellInfo + * Gets the default type url for Keyspace * @function getTypeUrl - * @memberof topodata.CellInfo + * @memberof topodata.Keyspace * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CellInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Keyspace.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.CellInfo"; + return typeUrlPrefix + "/topodata.Keyspace"; }; - return CellInfo; + return Keyspace; })(); - topodata.CellsAlias = (function() { + topodata.ShardReplication = (function() { /** - * Properties of a CellsAlias. + * Properties of a ShardReplication. * @memberof topodata - * @interface ICellsAlias - * @property {Array.|null} [cells] CellsAlias cells + * @interface IShardReplication + * @property {Array.|null} [nodes] ShardReplication nodes */ /** - * Constructs a new CellsAlias. + * Constructs a new ShardReplication. * @memberof topodata - * @classdesc Represents a CellsAlias. - * @implements ICellsAlias + * @classdesc Represents a ShardReplication. + * @implements IShardReplication * @constructor - * @param {topodata.ICellsAlias=} [properties] Properties to set + * @param {topodata.IShardReplication=} [properties] Properties to set */ - function CellsAlias(properties) { - this.cells = []; + function ShardReplication(properties) { + this.nodes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46815,78 +46214,78 @@ export const topodata = $root.topodata = (() => { } /** - * CellsAlias cells. - * @member {Array.} cells - * @memberof topodata.CellsAlias + * ShardReplication nodes. + * @member {Array.} nodes + * @memberof topodata.ShardReplication * @instance */ - CellsAlias.prototype.cells = $util.emptyArray; + ShardReplication.prototype.nodes = $util.emptyArray; /** - * Creates a new CellsAlias instance using the specified properties. + * Creates a new ShardReplication instance using the specified properties. * @function create - * @memberof topodata.CellsAlias + * @memberof topodata.ShardReplication * @static - * @param {topodata.ICellsAlias=} [properties] Properties to set - * @returns {topodata.CellsAlias} CellsAlias instance + * @param {topodata.IShardReplication=} [properties] Properties to set + * @returns {topodata.ShardReplication} ShardReplication instance */ - CellsAlias.create = function create(properties) { - return new CellsAlias(properties); + ShardReplication.create = function create(properties) { + return new ShardReplication(properties); }; /** - * Encodes the specified CellsAlias message. Does not implicitly {@link topodata.CellsAlias.verify|verify} messages. + * Encodes the specified ShardReplication message. Does not implicitly {@link topodata.ShardReplication.verify|verify} messages. * @function encode - * @memberof topodata.CellsAlias + * @memberof topodata.ShardReplication * @static - * @param {topodata.ICellsAlias} message CellsAlias message or plain object to encode + * @param {topodata.IShardReplication} message ShardReplication message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CellsAlias.encode = function encode(message, writer) { + ShardReplication.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); + if (message.nodes != null && message.nodes.length) + for (let i = 0; i < message.nodes.length; ++i) + $root.topodata.ShardReplication.Node.encode(message.nodes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CellsAlias message, length delimited. Does not implicitly {@link topodata.CellsAlias.verify|verify} messages. + * Encodes the specified ShardReplication message, length delimited. Does not implicitly {@link topodata.ShardReplication.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.CellsAlias + * @memberof topodata.ShardReplication * @static - * @param {topodata.ICellsAlias} message CellsAlias message or plain object to encode + * @param {topodata.IShardReplication} message ShardReplication message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CellsAlias.encodeDelimited = function encodeDelimited(message, writer) { + ShardReplication.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CellsAlias message from the specified reader or buffer. + * Decodes a ShardReplication message from the specified reader or buffer. * @function decode - * @memberof topodata.CellsAlias + * @memberof topodata.ShardReplication * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.CellsAlias} CellsAlias + * @returns {topodata.ShardReplication} ShardReplication * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CellsAlias.decode = function decode(reader, length) { + ShardReplication.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.CellsAlias(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ShardReplication(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + case 1: { + if (!(message.nodes && message.nodes.length)) + message.nodes = []; + message.nodes.push($root.topodata.ShardReplication.Node.decode(reader, reader.uint32())); break; } default: @@ -46898,240 +46297,438 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a CellsAlias message from the specified reader or buffer, length delimited. + * Decodes a ShardReplication message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.CellsAlias + * @memberof topodata.ShardReplication * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.CellsAlias} CellsAlias + * @returns {topodata.ShardReplication} ShardReplication * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CellsAlias.decodeDelimited = function decodeDelimited(reader) { + ShardReplication.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CellsAlias message. + * Verifies a ShardReplication message. * @function verify - * @memberof topodata.CellsAlias + * @memberof topodata.ShardReplication * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CellsAlias.verify = function verify(message) { + ShardReplication.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; + if (message.nodes != null && message.hasOwnProperty("nodes")) { + if (!Array.isArray(message.nodes)) + return "nodes: array expected"; + for (let i = 0; i < message.nodes.length; ++i) { + let error = $root.topodata.ShardReplication.Node.verify(message.nodes[i]); + if (error) + return "nodes." + error; + } } return null; }; /** - * Creates a CellsAlias message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplication message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.CellsAlias + * @memberof topodata.ShardReplication * @static * @param {Object.} object Plain object - * @returns {topodata.CellsAlias} CellsAlias + * @returns {topodata.ShardReplication} ShardReplication */ - CellsAlias.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.CellsAlias) + ShardReplication.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.ShardReplication) return object; - let message = new $root.topodata.CellsAlias(); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".topodata.CellsAlias.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); + let message = new $root.topodata.ShardReplication(); + if (object.nodes) { + if (!Array.isArray(object.nodes)) + throw TypeError(".topodata.ShardReplication.nodes: array expected"); + message.nodes = []; + for (let i = 0; i < object.nodes.length; ++i) { + if (typeof object.nodes[i] !== "object") + throw TypeError(".topodata.ShardReplication.nodes: object expected"); + message.nodes[i] = $root.topodata.ShardReplication.Node.fromObject(object.nodes[i]); + } } return message; }; /** - * Creates a plain object from a CellsAlias message. Also converts values to other types if specified. + * Creates a plain object from a ShardReplication message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.CellsAlias + * @memberof topodata.ShardReplication * @static - * @param {topodata.CellsAlias} message CellsAlias + * @param {topodata.ShardReplication} message ShardReplication * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CellsAlias.toObject = function toObject(message, options) { + ShardReplication.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.cells = []; - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; + object.nodes = []; + if (message.nodes && message.nodes.length) { + object.nodes = []; + for (let j = 0; j < message.nodes.length; ++j) + object.nodes[j] = $root.topodata.ShardReplication.Node.toObject(message.nodes[j], options); } return object; }; /** - * Converts this CellsAlias to JSON. + * Converts this ShardReplication to JSON. * @function toJSON - * @memberof topodata.CellsAlias + * @memberof topodata.ShardReplication * @instance * @returns {Object.} JSON object */ - CellsAlias.prototype.toJSON = function toJSON() { + ShardReplication.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CellsAlias + * Gets the default type url for ShardReplication * @function getTypeUrl - * @memberof topodata.CellsAlias + * @memberof topodata.ShardReplication * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CellsAlias.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShardReplication.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.CellsAlias"; + return typeUrlPrefix + "/topodata.ShardReplication"; }; - return CellsAlias; - })(); - - topodata.TopoConfig = (function() { + ShardReplication.Node = (function() { - /** - * Properties of a TopoConfig. - * @memberof topodata - * @interface ITopoConfig - * @property {string|null} [topo_type] TopoConfig topo_type - * @property {string|null} [server] TopoConfig server - * @property {string|null} [root] TopoConfig root - */ + /** + * Properties of a Node. + * @memberof topodata.ShardReplication + * @interface INode + * @property {topodata.ITabletAlias|null} [tablet_alias] Node tablet_alias + */ - /** - * Constructs a new TopoConfig. - * @memberof topodata - * @classdesc Represents a TopoConfig. - * @implements ITopoConfig - * @constructor - * @param {topodata.ITopoConfig=} [properties] Properties to set - */ - function TopoConfig(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Node. + * @memberof topodata.ShardReplication + * @classdesc Represents a Node. + * @implements INode + * @constructor + * @param {topodata.ShardReplication.INode=} [properties] Properties to set + */ + function Node(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * TopoConfig topo_type. - * @member {string} topo_type - * @memberof topodata.TopoConfig - * @instance - */ - TopoConfig.prototype.topo_type = ""; + /** + * Node tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof topodata.ShardReplication.Node + * @instance + */ + Node.prototype.tablet_alias = null; - /** - * TopoConfig server. - * @member {string} server - * @memberof topodata.TopoConfig - * @instance - */ - TopoConfig.prototype.server = ""; + /** + * Creates a new Node instance using the specified properties. + * @function create + * @memberof topodata.ShardReplication.Node + * @static + * @param {topodata.ShardReplication.INode=} [properties] Properties to set + * @returns {topodata.ShardReplication.Node} Node instance + */ + Node.create = function create(properties) { + return new Node(properties); + }; - /** - * TopoConfig root. - * @member {string} root - * @memberof topodata.TopoConfig - * @instance - */ - TopoConfig.prototype.root = ""; + /** + * Encodes the specified Node message. Does not implicitly {@link topodata.ShardReplication.Node.verify|verify} messages. + * @function encode + * @memberof topodata.ShardReplication.Node + * @static + * @param {topodata.ShardReplication.INode} message Node message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Node.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(); + return writer; + }; - /** - * Creates a new TopoConfig instance using the specified properties. - * @function create - * @memberof topodata.TopoConfig - * @static - * @param {topodata.ITopoConfig=} [properties] Properties to set - * @returns {topodata.TopoConfig} TopoConfig instance + /** + * Encodes the specified Node message, length delimited. Does not implicitly {@link topodata.ShardReplication.Node.verify|verify} messages. + * @function encodeDelimited + * @memberof topodata.ShardReplication.Node + * @static + * @param {topodata.ShardReplication.INode} message Node message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Node.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Node message from the specified reader or buffer. + * @function decode + * @memberof topodata.ShardReplication.Node + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {topodata.ShardReplication.Node} Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Node.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ShardReplication.Node(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Node message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof topodata.ShardReplication.Node + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {topodata.ShardReplication.Node} Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Node.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Node message. + * @function verify + * @memberof topodata.ShardReplication.Node + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Node.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + return null; + }; + + /** + * Creates a Node message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof topodata.ShardReplication.Node + * @static + * @param {Object.} object Plain object + * @returns {topodata.ShardReplication.Node} Node + */ + Node.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.ShardReplication.Node) + return object; + let message = new $root.topodata.ShardReplication.Node(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".topodata.ShardReplication.Node.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + return message; + }; + + /** + * Creates a plain object from a Node message. Also converts values to other types if specified. + * @function toObject + * @memberof topodata.ShardReplication.Node + * @static + * @param {topodata.ShardReplication.Node} message Node + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Node.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.tablet_alias = null; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + return object; + }; + + /** + * Converts this Node to JSON. + * @function toJSON + * @memberof topodata.ShardReplication.Node + * @instance + * @returns {Object.} JSON object + */ + Node.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Node + * @function getTypeUrl + * @memberof topodata.ShardReplication.Node + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Node.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/topodata.ShardReplication.Node"; + }; + + return Node; + })(); + + return ShardReplication; + })(); + + topodata.ShardReplicationError = (function() { + + /** + * Properties of a ShardReplicationError. + * @memberof topodata + * @interface IShardReplicationError + * @property {topodata.ShardReplicationError.Type|null} [type] ShardReplicationError type + * @property {topodata.ITabletAlias|null} [tablet_alias] ShardReplicationError tablet_alias */ - TopoConfig.create = function create(properties) { - return new TopoConfig(properties); + + /** + * Constructs a new ShardReplicationError. + * @memberof topodata + * @classdesc Represents a ShardReplicationError. + * @implements IShardReplicationError + * @constructor + * @param {topodata.IShardReplicationError=} [properties] Properties to set + */ + function ShardReplicationError(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ShardReplicationError type. + * @member {topodata.ShardReplicationError.Type} type + * @memberof topodata.ShardReplicationError + * @instance + */ + ShardReplicationError.prototype.type = 0; + + /** + * ShardReplicationError tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof topodata.ShardReplicationError + * @instance + */ + ShardReplicationError.prototype.tablet_alias = null; + + /** + * Creates a new ShardReplicationError instance using the specified properties. + * @function create + * @memberof topodata.ShardReplicationError + * @static + * @param {topodata.IShardReplicationError=} [properties] Properties to set + * @returns {topodata.ShardReplicationError} ShardReplicationError instance + */ + ShardReplicationError.create = function create(properties) { + return new ShardReplicationError(properties); }; /** - * Encodes the specified TopoConfig message. Does not implicitly {@link topodata.TopoConfig.verify|verify} messages. + * Encodes the specified ShardReplicationError message. Does not implicitly {@link topodata.ShardReplicationError.verify|verify} messages. * @function encode - * @memberof topodata.TopoConfig + * @memberof topodata.ShardReplicationError * @static - * @param {topodata.ITopoConfig} message TopoConfig message or plain object to encode + * @param {topodata.IShardReplicationError} message ShardReplicationError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TopoConfig.encode = function encode(message, writer) { + ShardReplicationError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.topo_type != null && Object.hasOwnProperty.call(message, "topo_type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topo_type); - if (message.server != null && Object.hasOwnProperty.call(message, "server")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.server); - if (message.root != null && Object.hasOwnProperty.call(message, "root")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.root); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + 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(); return writer; }; /** - * Encodes the specified TopoConfig message, length delimited. Does not implicitly {@link topodata.TopoConfig.verify|verify} messages. + * Encodes the specified ShardReplicationError message, length delimited. Does not implicitly {@link topodata.ShardReplicationError.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.TopoConfig + * @memberof topodata.ShardReplicationError * @static - * @param {topodata.ITopoConfig} message TopoConfig message or plain object to encode + * @param {topodata.IShardReplicationError} message ShardReplicationError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TopoConfig.encodeDelimited = function encodeDelimited(message, writer) { + ShardReplicationError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TopoConfig message from the specified reader or buffer. + * Decodes a ShardReplicationError message from the specified reader or buffer. * @function decode - * @memberof topodata.TopoConfig + * @memberof topodata.ShardReplicationError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.TopoConfig} TopoConfig + * @returns {topodata.ShardReplicationError} ShardReplicationError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TopoConfig.decode = function decode(reader, length) { + ShardReplicationError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.TopoConfig(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ShardReplicationError(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.topo_type = reader.string(); + message.type = reader.int32(); break; } case 2: { - message.server = reader.string(); - break; - } - case 3: { - message.root = reader.string(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -47143,139 +46740,177 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes a TopoConfig message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.TopoConfig + * @memberof topodata.ShardReplicationError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.TopoConfig} TopoConfig + * @returns {topodata.ShardReplicationError} ShardReplicationError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TopoConfig.decodeDelimited = function decodeDelimited(reader) { + ShardReplicationError.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TopoConfig message. + * Verifies a ShardReplicationError message. * @function verify - * @memberof topodata.TopoConfig + * @memberof topodata.ShardReplicationError * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TopoConfig.verify = function verify(message) { + ShardReplicationError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.topo_type != null && message.hasOwnProperty("topo_type")) - if (!$util.isString(message.topo_type)) - return "topo_type: string expected"; - if (message.server != null && message.hasOwnProperty("server")) - if (!$util.isString(message.server)) - return "server: string expected"; - if (message.root != null && message.hasOwnProperty("root")) - if (!$util.isString(message.root)) - return "root: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } return null; }; /** - * Creates a TopoConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationError message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.TopoConfig + * @memberof topodata.ShardReplicationError * @static * @param {Object.} object Plain object - * @returns {topodata.TopoConfig} TopoConfig + * @returns {topodata.ShardReplicationError} ShardReplicationError */ - TopoConfig.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.TopoConfig) + ShardReplicationError.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.ShardReplicationError) return object; - let message = new $root.topodata.TopoConfig(); - if (object.topo_type != null) - message.topo_type = String(object.topo_type); - if (object.server != null) - message.server = String(object.server); - if (object.root != null) - message.root = String(object.root); + let message = new $root.topodata.ShardReplicationError(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "UNKNOWN": + case 0: + message.type = 0; + break; + case "NOT_FOUND": + case 1: + message.type = 1; + break; + case "TOPOLOGY_MISMATCH": + case 2: + message.type = 2; + break; + } + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".topodata.ShardReplicationError.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } return message; }; /** - * Creates a plain object from a TopoConfig message. Also converts values to other types if specified. + * Creates a plain object from a ShardReplicationError message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.TopoConfig + * @memberof topodata.ShardReplicationError * @static - * @param {topodata.TopoConfig} message TopoConfig + * @param {topodata.ShardReplicationError} message ShardReplicationError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TopoConfig.toObject = function toObject(message, options) { + ShardReplicationError.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.topo_type = ""; - object.server = ""; - object.root = ""; + object.type = options.enums === String ? "UNKNOWN" : 0; + object.tablet_alias = null; } - if (message.topo_type != null && message.hasOwnProperty("topo_type")) - object.topo_type = message.topo_type; - if (message.server != null && message.hasOwnProperty("server")) - object.server = message.server; - if (message.root != null && message.hasOwnProperty("root")) - object.root = message.root; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.topodata.ShardReplicationError.Type[message.type] === undefined ? message.type : $root.topodata.ShardReplicationError.Type[message.type] : message.type; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); return object; }; /** - * Converts this TopoConfig to JSON. + * Converts this ShardReplicationError to JSON. * @function toJSON - * @memberof topodata.TopoConfig + * @memberof topodata.ShardReplicationError * @instance * @returns {Object.} JSON object */ - TopoConfig.prototype.toJSON = function toJSON() { + ShardReplicationError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TopoConfig + * Gets the default type url for ShardReplicationError * @function getTypeUrl - * @memberof topodata.TopoConfig + * @memberof topodata.ShardReplicationError * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TopoConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShardReplicationError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.TopoConfig"; + return typeUrlPrefix + "/topodata.ShardReplicationError"; }; - return TopoConfig; + /** + * Type enum. + * @name topodata.ShardReplicationError.Type + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} NOT_FOUND=1 NOT_FOUND value + * @property {number} TOPOLOGY_MISMATCH=2 TOPOLOGY_MISMATCH value + */ + ShardReplicationError.Type = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "NOT_FOUND"] = 1; + values[valuesById[2] = "TOPOLOGY_MISMATCH"] = 2; + return values; + })(); + + return ShardReplicationError; })(); - topodata.ExternalVitessCluster = (function() { + topodata.ShardReference = (function() { /** - * Properties of an ExternalVitessCluster. + * Properties of a ShardReference. * @memberof topodata - * @interface IExternalVitessCluster - * @property {topodata.ITopoConfig|null} [topo_config] ExternalVitessCluster topo_config + * @interface IShardReference + * @property {string|null} [name] ShardReference name + * @property {topodata.IKeyRange|null} [key_range] ShardReference key_range */ /** - * Constructs a new ExternalVitessCluster. + * Constructs a new ShardReference. * @memberof topodata - * @classdesc Represents an ExternalVitessCluster. - * @implements IExternalVitessCluster + * @classdesc Represents a ShardReference. + * @implements IShardReference * @constructor - * @param {topodata.IExternalVitessCluster=} [properties] Properties to set + * @param {topodata.IShardReference=} [properties] Properties to set */ - function ExternalVitessCluster(properties) { + function ShardReference(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47283,75 +46918,89 @@ export const topodata = $root.topodata = (() => { } /** - * ExternalVitessCluster topo_config. - * @member {topodata.ITopoConfig|null|undefined} topo_config - * @memberof topodata.ExternalVitessCluster + * ShardReference name. + * @member {string} name + * @memberof topodata.ShardReference * @instance */ - ExternalVitessCluster.prototype.topo_config = null; + ShardReference.prototype.name = ""; /** - * Creates a new ExternalVitessCluster instance using the specified properties. + * ShardReference key_range. + * @member {topodata.IKeyRange|null|undefined} key_range + * @memberof topodata.ShardReference + * @instance + */ + ShardReference.prototype.key_range = null; + + /** + * Creates a new ShardReference instance using the specified properties. * @function create - * @memberof topodata.ExternalVitessCluster + * @memberof topodata.ShardReference * @static - * @param {topodata.IExternalVitessCluster=} [properties] Properties to set - * @returns {topodata.ExternalVitessCluster} ExternalVitessCluster instance + * @param {topodata.IShardReference=} [properties] Properties to set + * @returns {topodata.ShardReference} ShardReference instance */ - ExternalVitessCluster.create = function create(properties) { - return new ExternalVitessCluster(properties); + ShardReference.create = function create(properties) { + return new ShardReference(properties); }; /** - * Encodes the specified ExternalVitessCluster message. Does not implicitly {@link topodata.ExternalVitessCluster.verify|verify} messages. + * Encodes the specified ShardReference message. Does not implicitly {@link topodata.ShardReference.verify|verify} messages. * @function encode - * @memberof topodata.ExternalVitessCluster + * @memberof topodata.ShardReference * @static - * @param {topodata.IExternalVitessCluster} message ExternalVitessCluster message or plain object to encode + * @param {topodata.IShardReference} message ShardReference message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExternalVitessCluster.encode = function encode(message, writer) { + ShardReference.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.topo_config != null && Object.hasOwnProperty.call(message, "topo_config")) - $root.topodata.TopoConfig.encode(message.topo_config, 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.key_range != null && Object.hasOwnProperty.call(message, "key_range")) + $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExternalVitessCluster message, length delimited. Does not implicitly {@link topodata.ExternalVitessCluster.verify|verify} messages. + * Encodes the specified ShardReference message, length delimited. Does not implicitly {@link topodata.ShardReference.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.ExternalVitessCluster + * @memberof topodata.ShardReference * @static - * @param {topodata.IExternalVitessCluster} message ExternalVitessCluster message or plain object to encode + * @param {topodata.IShardReference} message ShardReference message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExternalVitessCluster.encodeDelimited = function encodeDelimited(message, writer) { + ShardReference.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExternalVitessCluster message from the specified reader or buffer. + * Decodes a ShardReference message from the specified reader or buffer. * @function decode - * @memberof topodata.ExternalVitessCluster + * @memberof topodata.ShardReference * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.ExternalVitessCluster} ExternalVitessCluster + * @returns {topodata.ShardReference} ShardReference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExternalVitessCluster.decode = function decode(reader, length) { + ShardReference.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ExternalVitessCluster(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ShardReference(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.topo_config = $root.topodata.TopoConfig.decode(reader, reader.uint32()); + message.name = reader.string(); + break; + } + case 2: { + message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); break; } default: @@ -47363,128 +47012,138 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes an ExternalVitessCluster message from the specified reader or buffer, length delimited. + * Decodes a ShardReference message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.ExternalVitessCluster + * @memberof topodata.ShardReference * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.ExternalVitessCluster} ExternalVitessCluster + * @returns {topodata.ShardReference} ShardReference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExternalVitessCluster.decodeDelimited = function decodeDelimited(reader) { + ShardReference.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExternalVitessCluster message. + * Verifies a ShardReference message. * @function verify - * @memberof topodata.ExternalVitessCluster + * @memberof topodata.ShardReference * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExternalVitessCluster.verify = function verify(message) { + ShardReference.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.topo_config != null && message.hasOwnProperty("topo_config")) { - let error = $root.topodata.TopoConfig.verify(message.topo_config); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.key_range != null && message.hasOwnProperty("key_range")) { + let error = $root.topodata.KeyRange.verify(message.key_range); if (error) - return "topo_config." + error; + return "key_range." + error; } return null; }; /** - * Creates an ExternalVitessCluster message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReference message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.ExternalVitessCluster + * @memberof topodata.ShardReference * @static * @param {Object.} object Plain object - * @returns {topodata.ExternalVitessCluster} ExternalVitessCluster + * @returns {topodata.ShardReference} ShardReference */ - ExternalVitessCluster.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.ExternalVitessCluster) + ShardReference.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.ShardReference) return object; - let message = new $root.topodata.ExternalVitessCluster(); - if (object.topo_config != null) { - if (typeof object.topo_config !== "object") - throw TypeError(".topodata.ExternalVitessCluster.topo_config: object expected"); - message.topo_config = $root.topodata.TopoConfig.fromObject(object.topo_config); + let message = new $root.topodata.ShardReference(); + if (object.name != null) + message.name = String(object.name); + if (object.key_range != null) { + if (typeof object.key_range !== "object") + throw TypeError(".topodata.ShardReference.key_range: object expected"); + message.key_range = $root.topodata.KeyRange.fromObject(object.key_range); } return message; }; /** - * Creates a plain object from an ExternalVitessCluster message. Also converts values to other types if specified. + * Creates a plain object from a ShardReference message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.ExternalVitessCluster + * @memberof topodata.ShardReference * @static - * @param {topodata.ExternalVitessCluster} message ExternalVitessCluster + * @param {topodata.ShardReference} message ShardReference * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExternalVitessCluster.toObject = function toObject(message, options) { + ShardReference.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.topo_config = null; - if (message.topo_config != null && message.hasOwnProperty("topo_config")) - object.topo_config = $root.topodata.TopoConfig.toObject(message.topo_config, options); + if (options.defaults) { + object.name = ""; + object.key_range = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.key_range != null && message.hasOwnProperty("key_range")) + object.key_range = $root.topodata.KeyRange.toObject(message.key_range, options); return object; }; /** - * Converts this ExternalVitessCluster to JSON. + * Converts this ShardReference to JSON. * @function toJSON - * @memberof topodata.ExternalVitessCluster + * @memberof topodata.ShardReference * @instance * @returns {Object.} JSON object */ - ExternalVitessCluster.prototype.toJSON = function toJSON() { + ShardReference.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExternalVitessCluster + * Gets the default type url for ShardReference * @function getTypeUrl - * @memberof topodata.ExternalVitessCluster + * @memberof topodata.ShardReference * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExternalVitessCluster.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShardReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.ExternalVitessCluster"; + return typeUrlPrefix + "/topodata.ShardReference"; }; - return ExternalVitessCluster; + return ShardReference; })(); - topodata.ExternalClusters = (function() { + topodata.ShardTabletControl = (function() { /** - * Properties of an ExternalClusters. + * Properties of a ShardTabletControl. * @memberof topodata - * @interface IExternalClusters - * @property {Array.|null} [vitess_cluster] ExternalClusters vitess_cluster + * @interface IShardTabletControl + * @property {string|null} [name] ShardTabletControl name + * @property {topodata.IKeyRange|null} [key_range] ShardTabletControl key_range + * @property {boolean|null} [query_service_disabled] ShardTabletControl query_service_disabled */ /** - * Constructs a new ExternalClusters. + * Constructs a new ShardTabletControl. * @memberof topodata - * @classdesc Represents an ExternalClusters. - * @implements IExternalClusters + * @classdesc Represents a ShardTabletControl. + * @implements IShardTabletControl * @constructor - * @param {topodata.IExternalClusters=} [properties] Properties to set + * @param {topodata.IShardTabletControl=} [properties] Properties to set */ - function ExternalClusters(properties) { - this.vitess_cluster = []; + function ShardTabletControl(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47492,78 +47151,103 @@ export const topodata = $root.topodata = (() => { } /** - * ExternalClusters vitess_cluster. - * @member {Array.} vitess_cluster - * @memberof topodata.ExternalClusters + * ShardTabletControl name. + * @member {string} name + * @memberof topodata.ShardTabletControl * @instance */ - ExternalClusters.prototype.vitess_cluster = $util.emptyArray; + ShardTabletControl.prototype.name = ""; /** - * Creates a new ExternalClusters instance using the specified properties. + * ShardTabletControl key_range. + * @member {topodata.IKeyRange|null|undefined} key_range + * @memberof topodata.ShardTabletControl + * @instance + */ + ShardTabletControl.prototype.key_range = null; + + /** + * ShardTabletControl query_service_disabled. + * @member {boolean} query_service_disabled + * @memberof topodata.ShardTabletControl + * @instance + */ + ShardTabletControl.prototype.query_service_disabled = false; + + /** + * Creates a new ShardTabletControl instance using the specified properties. * @function create - * @memberof topodata.ExternalClusters + * @memberof topodata.ShardTabletControl * @static - * @param {topodata.IExternalClusters=} [properties] Properties to set - * @returns {topodata.ExternalClusters} ExternalClusters instance + * @param {topodata.IShardTabletControl=} [properties] Properties to set + * @returns {topodata.ShardTabletControl} ShardTabletControl instance */ - ExternalClusters.create = function create(properties) { - return new ExternalClusters(properties); + ShardTabletControl.create = function create(properties) { + return new ShardTabletControl(properties); }; /** - * Encodes the specified ExternalClusters message. Does not implicitly {@link topodata.ExternalClusters.verify|verify} messages. + * Encodes the specified ShardTabletControl message. Does not implicitly {@link topodata.ShardTabletControl.verify|verify} messages. * @function encode - * @memberof topodata.ExternalClusters + * @memberof topodata.ShardTabletControl * @static - * @param {topodata.IExternalClusters} message ExternalClusters message or plain object to encode + * @param {topodata.IShardTabletControl} message ShardTabletControl message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExternalClusters.encode = function encode(message, writer) { + ShardTabletControl.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.vitess_cluster != null && message.vitess_cluster.length) - for (let i = 0; i < message.vitess_cluster.length; ++i) - $root.topodata.ExternalVitessCluster.encode(message.vitess_cluster[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.key_range != null && Object.hasOwnProperty.call(message, "key_range")) + $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.query_service_disabled != null && Object.hasOwnProperty.call(message, "query_service_disabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.query_service_disabled); return writer; }; /** - * Encodes the specified ExternalClusters message, length delimited. Does not implicitly {@link topodata.ExternalClusters.verify|verify} messages. + * Encodes the specified ShardTabletControl message, length delimited. Does not implicitly {@link topodata.ShardTabletControl.verify|verify} messages. * @function encodeDelimited - * @memberof topodata.ExternalClusters + * @memberof topodata.ShardTabletControl * @static - * @param {topodata.IExternalClusters} message ExternalClusters message or plain object to encode + * @param {topodata.IShardTabletControl} message ShardTabletControl message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExternalClusters.encodeDelimited = function encodeDelimited(message, writer) { + ShardTabletControl.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExternalClusters message from the specified reader or buffer. + * Decodes a ShardTabletControl message from the specified reader or buffer. * @function decode - * @memberof topodata.ExternalClusters + * @memberof topodata.ShardTabletControl * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {topodata.ExternalClusters} ExternalClusters + * @returns {topodata.ShardTabletControl} ShardTabletControl * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExternalClusters.decode = function decode(reader, length) { + ShardTabletControl.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ExternalClusters(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ShardTabletControl(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.vitess_cluster && message.vitess_cluster.length)) - message.vitess_cluster = []; - message.vitess_cluster.push($root.topodata.ExternalVitessCluster.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + } + case 2: { + message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); + break; + } + case 3: { + message.query_service_disabled = reader.bool(); break; } default: @@ -47575,155 +47259,147 @@ export const topodata = $root.topodata = (() => { }; /** - * Decodes an ExternalClusters message from the specified reader or buffer, length delimited. + * Decodes a ShardTabletControl message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof topodata.ExternalClusters + * @memberof topodata.ShardTabletControl * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {topodata.ExternalClusters} ExternalClusters + * @returns {topodata.ShardTabletControl} ShardTabletControl * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExternalClusters.decodeDelimited = function decodeDelimited(reader) { + ShardTabletControl.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExternalClusters message. + * Verifies a ShardTabletControl message. * @function verify - * @memberof topodata.ExternalClusters + * @memberof topodata.ShardTabletControl * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExternalClusters.verify = function verify(message) { + ShardTabletControl.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.vitess_cluster != null && message.hasOwnProperty("vitess_cluster")) { - if (!Array.isArray(message.vitess_cluster)) - return "vitess_cluster: array expected"; - for (let i = 0; i < message.vitess_cluster.length; ++i) { - let error = $root.topodata.ExternalVitessCluster.verify(message.vitess_cluster[i]); - if (error) - return "vitess_cluster." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.key_range != null && message.hasOwnProperty("key_range")) { + let error = $root.topodata.KeyRange.verify(message.key_range); + if (error) + return "key_range." + error; } + if (message.query_service_disabled != null && message.hasOwnProperty("query_service_disabled")) + if (typeof message.query_service_disabled !== "boolean") + return "query_service_disabled: boolean expected"; return null; }; /** - * Creates an ExternalClusters message from a plain object. Also converts values to their respective internal types. + * Creates a ShardTabletControl message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof topodata.ExternalClusters + * @memberof topodata.ShardTabletControl * @static * @param {Object.} object Plain object - * @returns {topodata.ExternalClusters} ExternalClusters + * @returns {topodata.ShardTabletControl} ShardTabletControl */ - ExternalClusters.fromObject = function fromObject(object) { - if (object instanceof $root.topodata.ExternalClusters) + ShardTabletControl.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.ShardTabletControl) return object; - let message = new $root.topodata.ExternalClusters(); - if (object.vitess_cluster) { - if (!Array.isArray(object.vitess_cluster)) - throw TypeError(".topodata.ExternalClusters.vitess_cluster: array expected"); - message.vitess_cluster = []; - for (let i = 0; i < object.vitess_cluster.length; ++i) { - if (typeof object.vitess_cluster[i] !== "object") - throw TypeError(".topodata.ExternalClusters.vitess_cluster: object expected"); - message.vitess_cluster[i] = $root.topodata.ExternalVitessCluster.fromObject(object.vitess_cluster[i]); - } + let message = new $root.topodata.ShardTabletControl(); + if (object.name != null) + message.name = String(object.name); + if (object.key_range != null) { + if (typeof object.key_range !== "object") + throw TypeError(".topodata.ShardTabletControl.key_range: object expected"); + message.key_range = $root.topodata.KeyRange.fromObject(object.key_range); } + if (object.query_service_disabled != null) + message.query_service_disabled = Boolean(object.query_service_disabled); return message; }; /** - * Creates a plain object from an ExternalClusters message. Also converts values to other types if specified. + * Creates a plain object from a ShardTabletControl message. Also converts values to other types if specified. * @function toObject - * @memberof topodata.ExternalClusters + * @memberof topodata.ShardTabletControl * @static - * @param {topodata.ExternalClusters} message ExternalClusters + * @param {topodata.ShardTabletControl} message ShardTabletControl * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExternalClusters.toObject = function toObject(message, options) { + ShardTabletControl.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.vitess_cluster = []; - if (message.vitess_cluster && message.vitess_cluster.length) { - object.vitess_cluster = []; - for (let j = 0; j < message.vitess_cluster.length; ++j) - object.vitess_cluster[j] = $root.topodata.ExternalVitessCluster.toObject(message.vitess_cluster[j], options); + if (options.defaults) { + object.name = ""; + object.key_range = null; + object.query_service_disabled = false; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.key_range != null && message.hasOwnProperty("key_range")) + object.key_range = $root.topodata.KeyRange.toObject(message.key_range, options); + if (message.query_service_disabled != null && message.hasOwnProperty("query_service_disabled")) + object.query_service_disabled = message.query_service_disabled; return object; }; /** - * Converts this ExternalClusters to JSON. + * Converts this ShardTabletControl to JSON. * @function toJSON - * @memberof topodata.ExternalClusters + * @memberof topodata.ShardTabletControl * @instance * @returns {Object.} JSON object */ - ExternalClusters.prototype.toJSON = function toJSON() { + ShardTabletControl.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExternalClusters + * Gets the default type url for ShardTabletControl * @function getTypeUrl - * @memberof topodata.ExternalClusters + * @memberof topodata.ShardTabletControl * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExternalClusters.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShardTabletControl.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/topodata.ExternalClusters"; + return typeUrlPrefix + "/topodata.ShardTabletControl"; }; - return ExternalClusters; + return ShardTabletControl; })(); - return topodata; -})(); - -export const vtrpc = $root.vtrpc = (() => { - - /** - * Namespace vtrpc. - * @exports vtrpc - * @namespace - */ - const vtrpc = {}; - - vtrpc.CallerID = (function() { + topodata.ThrottledAppRule = (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 ThrottledAppRule. + * @memberof topodata + * @interface IThrottledAppRule + * @property {string|null} [name] ThrottledAppRule name + * @property {number|null} [ratio] ThrottledAppRule ratio + * @property {vttime.ITime|null} [expires_at] ThrottledAppRule expires_at + * @property {boolean|null} [exempt] ThrottledAppRule exempt */ /** - * Constructs a new CallerID. - * @memberof vtrpc - * @classdesc Represents a CallerID. - * @implements ICallerID + * Constructs a new ThrottledAppRule. + * @memberof topodata + * @classdesc Represents a ThrottledAppRule. + * @implements IThrottledAppRule * @constructor - * @param {vtrpc.ICallerID=} [properties] Properties to set + * @param {topodata.IThrottledAppRule=} [properties] Properties to set */ - function CallerID(properties) { - this.groups = []; + function ThrottledAppRule(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47731,120 +47407,117 @@ export const vtrpc = $root.vtrpc = (() => { } /** - * CallerID principal. - * @member {string} principal - * @memberof vtrpc.CallerID + * ThrottledAppRule name. + * @member {string} name + * @memberof topodata.ThrottledAppRule * @instance */ - CallerID.prototype.principal = ""; + ThrottledAppRule.prototype.name = ""; /** - * CallerID component. - * @member {string} component - * @memberof vtrpc.CallerID + * ThrottledAppRule ratio. + * @member {number} ratio + * @memberof topodata.ThrottledAppRule * @instance */ - CallerID.prototype.component = ""; + ThrottledAppRule.prototype.ratio = 0; /** - * CallerID subcomponent. - * @member {string} subcomponent - * @memberof vtrpc.CallerID + * ThrottledAppRule expires_at. + * @member {vttime.ITime|null|undefined} expires_at + * @memberof topodata.ThrottledAppRule * @instance */ - CallerID.prototype.subcomponent = ""; + ThrottledAppRule.prototype.expires_at = null; /** - * CallerID groups. - * @member {Array.} groups - * @memberof vtrpc.CallerID + * ThrottledAppRule exempt. + * @member {boolean} exempt + * @memberof topodata.ThrottledAppRule * @instance */ - CallerID.prototype.groups = $util.emptyArray; + ThrottledAppRule.prototype.exempt = false; /** - * Creates a new CallerID instance using the specified properties. + * Creates a new ThrottledAppRule instance using the specified properties. * @function create - * @memberof vtrpc.CallerID + * @memberof topodata.ThrottledAppRule * @static - * @param {vtrpc.ICallerID=} [properties] Properties to set - * @returns {vtrpc.CallerID} CallerID instance + * @param {topodata.IThrottledAppRule=} [properties] Properties to set + * @returns {topodata.ThrottledAppRule} ThrottledAppRule instance */ - CallerID.create = function create(properties) { - return new CallerID(properties); + ThrottledAppRule.create = function create(properties) { + return new ThrottledAppRule(properties); }; /** - * Encodes the specified CallerID message. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * Encodes the specified ThrottledAppRule message. Does not implicitly {@link topodata.ThrottledAppRule.verify|verify} messages. * @function encode - * @memberof vtrpc.CallerID + * @memberof topodata.ThrottledAppRule * @static - * @param {vtrpc.ICallerID} message CallerID message or plain object to encode + * @param {topodata.IThrottledAppRule} message ThrottledAppRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CallerID.encode = function encode(message, writer) { + ThrottledAppRule.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 (let i = 0; i < message.groups.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.groups[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); + if (message.expires_at != null && Object.hasOwnProperty.call(message, "expires_at")) + $root.vttime.Time.encode(message.expires_at, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.exempt != null && Object.hasOwnProperty.call(message, "exempt")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.exempt); return writer; }; /** - * Encodes the specified CallerID message, length delimited. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * Encodes the specified ThrottledAppRule message, length delimited. Does not implicitly {@link topodata.ThrottledAppRule.verify|verify} messages. * @function encodeDelimited - * @memberof vtrpc.CallerID + * @memberof topodata.ThrottledAppRule * @static - * @param {vtrpc.ICallerID} message CallerID message or plain object to encode + * @param {topodata.IThrottledAppRule} message ThrottledAppRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CallerID.encodeDelimited = function encodeDelimited(message, writer) { + ThrottledAppRule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CallerID message from the specified reader or buffer. + * Decodes a ThrottledAppRule message from the specified reader or buffer. * @function decode - * @memberof vtrpc.CallerID + * @memberof topodata.ThrottledAppRule * @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 {topodata.ThrottledAppRule} ThrottledAppRule * @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) { + ThrottledAppRule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtrpc.CallerID(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ThrottledAppRule(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.principal = reader.string(); + message.name = reader.string(); break; } case 2: { - message.component = reader.string(); + message.ratio = reader.double(); break; } case 3: { - message.subcomponent = reader.string(); + message.expires_at = $root.vttime.Time.decode(reader, reader.uint32()); break; } case 4: { - if (!(message.groups && message.groups.length)) - message.groups = []; - message.groups.push(reader.string()); + message.exempt = reader.bool(); break; } default: @@ -47856,209 +47529,161 @@ export const vtrpc = $root.vtrpc = (() => { }; /** - * Decodes a CallerID message from the specified reader or buffer, length delimited. + * Decodes a ThrottledAppRule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtrpc.CallerID + * @memberof topodata.ThrottledAppRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtrpc.CallerID} CallerID + * @returns {topodata.ThrottledAppRule} ThrottledAppRule * @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) { + ThrottledAppRule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CallerID message. + * Verifies a ThrottledAppRule message. * @function verify - * @memberof vtrpc.CallerID + * @memberof topodata.ThrottledAppRule * @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) { + ThrottledAppRule.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 (let i = 0; i < message.groups.length; ++i) - if (!$util.isString(message.groups[i])) - return "groups: string[] expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.ratio != null && message.hasOwnProperty("ratio")) + if (typeof message.ratio !== "number") + return "ratio: number expected"; + if (message.expires_at != null && message.hasOwnProperty("expires_at")) { + let error = $root.vttime.Time.verify(message.expires_at); + if (error) + return "expires_at." + error; } + if (message.exempt != null && message.hasOwnProperty("exempt")) + if (typeof message.exempt !== "boolean") + return "exempt: boolean expected"; return null; }; /** - * Creates a CallerID message from a plain object. Also converts values to their respective internal types. + * Creates a ThrottledAppRule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtrpc.CallerID + * @memberof topodata.ThrottledAppRule * @static * @param {Object.} object Plain object - * @returns {vtrpc.CallerID} CallerID + * @returns {topodata.ThrottledAppRule} ThrottledAppRule */ - CallerID.fromObject = function fromObject(object) { - if (object instanceof $root.vtrpc.CallerID) + ThrottledAppRule.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.ThrottledAppRule) return object; - let 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 (let i = 0; i < object.groups.length; ++i) - message.groups[i] = String(object.groups[i]); + let message = new $root.topodata.ThrottledAppRule(); + if (object.name != null) + message.name = String(object.name); + if (object.ratio != null) + message.ratio = Number(object.ratio); + if (object.expires_at != null) { + if (typeof object.expires_at !== "object") + throw TypeError(".topodata.ThrottledAppRule.expires_at: object expected"); + message.expires_at = $root.vttime.Time.fromObject(object.expires_at); } + if (object.exempt != null) + message.exempt = Boolean(object.exempt); return message; }; /** - * Creates a plain object from a CallerID message. Also converts values to other types if specified. + * Creates a plain object from a ThrottledAppRule message. Also converts values to other types if specified. * @function toObject - * @memberof vtrpc.CallerID + * @memberof topodata.ThrottledAppRule * @static - * @param {vtrpc.CallerID} message CallerID + * @param {topodata.ThrottledAppRule} message ThrottledAppRule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CallerID.toObject = function toObject(message, options) { + ThrottledAppRule.toObject = function toObject(message, options) { if (!options) options = {}; let 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 (let j = 0; j < message.groups.length; ++j) - object.groups[j] = message.groups[j]; + object.name = ""; + object.ratio = 0; + object.expires_at = null; + object.exempt = false; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.ratio != null && message.hasOwnProperty("ratio")) + object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; + if (message.expires_at != null && message.hasOwnProperty("expires_at")) + object.expires_at = $root.vttime.Time.toObject(message.expires_at, options); + if (message.exempt != null && message.hasOwnProperty("exempt")) + object.exempt = message.exempt; return object; }; /** - * Converts this CallerID to JSON. + * Converts this ThrottledAppRule to JSON. * @function toJSON - * @memberof vtrpc.CallerID + * @memberof topodata.ThrottledAppRule * @instance * @returns {Object.} JSON object */ - CallerID.prototype.toJSON = function toJSON() { + ThrottledAppRule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CallerID + * Gets the default type url for ThrottledAppRule * @function getTypeUrl - * @memberof vtrpc.CallerID + * @memberof topodata.ThrottledAppRule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CallerID.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ThrottledAppRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtrpc.CallerID"; + return typeUrlPrefix + "/topodata.ThrottledAppRule"; }; - return CallerID; + return ThrottledAppRule; })(); - /** - * 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() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OK"] = 0; - values[valuesById[1] = "CANCELED"] = 1; - values[valuesById[2] = "UNKNOWN"] = 2; - values[valuesById[3] = "INVALID_ARGUMENT"] = 3; - values[valuesById[4] = "DEADLINE_EXCEEDED"] = 4; - values[valuesById[5] = "NOT_FOUND"] = 5; - values[valuesById[6] = "ALREADY_EXISTS"] = 6; - values[valuesById[7] = "PERMISSION_DENIED"] = 7; - values[valuesById[8] = "RESOURCE_EXHAUSTED"] = 8; - values[valuesById[9] = "FAILED_PRECONDITION"] = 9; - values[valuesById[10] = "ABORTED"] = 10; - values[valuesById[11] = "OUT_OF_RANGE"] = 11; - values[valuesById[12] = "UNIMPLEMENTED"] = 12; - values[valuesById[13] = "INTERNAL"] = 13; - values[valuesById[14] = "UNAVAILABLE"] = 14; - values[valuesById[15] = "DATA_LOSS"] = 15; - values[valuesById[16] = "UNAUTHENTICATED"] = 16; - values[valuesById[17] = "CLUSTER_EVENT"] = 17; - values[valuesById[18] = "READ_ONLY"] = 18; - return values; - })(); - - vtrpc.RPCError = (function() { + topodata.ThrottlerConfig = (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 ThrottlerConfig. + * @memberof topodata + * @interface IThrottlerConfig + * @property {boolean|null} [enabled] ThrottlerConfig enabled + * @property {number|null} [threshold] ThrottlerConfig threshold + * @property {string|null} [custom_query] ThrottlerConfig custom_query + * @property {boolean|null} [check_as_check_self] ThrottlerConfig check_as_check_self + * @property {Object.|null} [throttled_apps] ThrottlerConfig throttled_apps + * @property {Object.|null} [app_checked_metrics] ThrottlerConfig app_checked_metrics + * @property {Object.|null} [metric_thresholds] ThrottlerConfig metric_thresholds */ /** - * Constructs a new RPCError. - * @memberof vtrpc - * @classdesc Represents a RPCError. - * @implements IRPCError + * Constructs a new ThrottlerConfig. + * @memberof topodata + * @classdesc Represents a ThrottlerConfig. + * @implements IThrottlerConfig * @constructor - * @param {vtrpc.IRPCError=} [properties] Properties to set + * @param {topodata.IThrottlerConfig=} [properties] Properties to set */ - function RPCError(properties) { + function ThrottlerConfig(properties) { + this.throttled_apps = {}; + this.app_checked_metrics = {}; + this.metric_thresholds = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48066,89 +47691,223 @@ export const vtrpc = $root.vtrpc = (() => { } /** - * RPCError message. - * @member {string} message - * @memberof vtrpc.RPCError + * ThrottlerConfig enabled. + * @member {boolean} enabled + * @memberof topodata.ThrottlerConfig * @instance */ - RPCError.prototype.message = ""; + ThrottlerConfig.prototype.enabled = false; /** - * RPCError code. - * @member {vtrpc.Code} code - * @memberof vtrpc.RPCError + * ThrottlerConfig threshold. + * @member {number} threshold + * @memberof topodata.ThrottlerConfig * @instance */ - RPCError.prototype.code = 0; + ThrottlerConfig.prototype.threshold = 0; /** - * Creates a new RPCError instance using the specified properties. + * ThrottlerConfig custom_query. + * @member {string} custom_query + * @memberof topodata.ThrottlerConfig + * @instance + */ + ThrottlerConfig.prototype.custom_query = ""; + + /** + * ThrottlerConfig check_as_check_self. + * @member {boolean} check_as_check_self + * @memberof topodata.ThrottlerConfig + * @instance + */ + ThrottlerConfig.prototype.check_as_check_self = false; + + /** + * ThrottlerConfig throttled_apps. + * @member {Object.} throttled_apps + * @memberof topodata.ThrottlerConfig + * @instance + */ + ThrottlerConfig.prototype.throttled_apps = $util.emptyObject; + + /** + * ThrottlerConfig app_checked_metrics. + * @member {Object.} app_checked_metrics + * @memberof topodata.ThrottlerConfig + * @instance + */ + ThrottlerConfig.prototype.app_checked_metrics = $util.emptyObject; + + /** + * ThrottlerConfig metric_thresholds. + * @member {Object.} metric_thresholds + * @memberof topodata.ThrottlerConfig + * @instance + */ + ThrottlerConfig.prototype.metric_thresholds = $util.emptyObject; + + /** + * Creates a new ThrottlerConfig instance using the specified properties. * @function create - * @memberof vtrpc.RPCError + * @memberof topodata.ThrottlerConfig * @static - * @param {vtrpc.IRPCError=} [properties] Properties to set - * @returns {vtrpc.RPCError} RPCError instance + * @param {topodata.IThrottlerConfig=} [properties] Properties to set + * @returns {topodata.ThrottlerConfig} ThrottlerConfig instance */ - RPCError.create = function create(properties) { - return new RPCError(properties); + ThrottlerConfig.create = function create(properties) { + return new ThrottlerConfig(properties); }; /** - * Encodes the specified RPCError message. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * Encodes the specified ThrottlerConfig message. Does not implicitly {@link topodata.ThrottlerConfig.verify|verify} messages. * @function encode - * @memberof vtrpc.RPCError + * @memberof topodata.ThrottlerConfig * @static - * @param {vtrpc.IRPCError} message RPCError message or plain object to encode + * @param {topodata.IThrottlerConfig} message ThrottlerConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RPCError.encode = function encode(message, writer) { + ThrottlerConfig.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.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.threshold); + if (message.custom_query != null && Object.hasOwnProperty.call(message, "custom_query")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.custom_query); + if (message.check_as_check_self != null && Object.hasOwnProperty.call(message, "check_as_check_self")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.check_as_check_self); + if (message.throttled_apps != null && Object.hasOwnProperty.call(message, "throttled_apps")) + for (let keys = Object.keys(message.throttled_apps), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.topodata.ThrottledAppRule.encode(message.throttled_apps[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.app_checked_metrics != null && Object.hasOwnProperty.call(message, "app_checked_metrics")) + for (let keys = Object.keys(message.app_checked_metrics), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.topodata.ThrottlerConfig.MetricNames.encode(message.app_checked_metrics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.metric_thresholds != null && Object.hasOwnProperty.call(message, "metric_thresholds")) + for (let keys = Object.keys(message.metric_thresholds), i = 0; i < keys.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 1 =*/17).double(message.metric_thresholds[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified RPCError message, length delimited. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * Encodes the specified ThrottlerConfig message, length delimited. Does not implicitly {@link topodata.ThrottlerConfig.verify|verify} messages. * @function encodeDelimited - * @memberof vtrpc.RPCError + * @memberof topodata.ThrottlerConfig * @static - * @param {vtrpc.IRPCError} message RPCError message or plain object to encode + * @param {topodata.IThrottlerConfig} message ThrottlerConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RPCError.encodeDelimited = function encodeDelimited(message, writer) { + ThrottlerConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RPCError message from the specified reader or buffer. + * Decodes a ThrottlerConfig message from the specified reader or buffer. * @function decode - * @memberof vtrpc.RPCError + * @memberof topodata.ThrottlerConfig * @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 {topodata.ThrottlerConfig} ThrottlerConfig * @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) { + ThrottlerConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtrpc.RPCError(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ThrottlerConfig(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } case 2: { - message.message = reader.string(); + message.threshold = reader.double(); break; } case 3: { - message.code = reader.int32(); + message.custom_query = reader.string(); + break; + } + case 4: { + message.check_as_check_self = reader.bool(); + break; + } + case 5: { + if (message.throttled_apps === $util.emptyObject) + message.throttled_apps = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.topodata.ThrottledAppRule.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.throttled_apps[key] = value; + break; + } + case 6: { + if (message.app_checked_metrics === $util.emptyObject) + message.app_checked_metrics = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.topodata.ThrottlerConfig.MetricNames.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.app_checked_metrics[key] = value; + break; + } + case 7: { + if (message.metric_thresholds === $util.emptyObject) + message.metric_thresholds = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.double(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.metric_thresholds[key] = value; break; } default: @@ -48160,273 +47919,444 @@ export const vtrpc = $root.vtrpc = (() => { }; /** - * Decodes a RPCError message from the specified reader or buffer, length delimited. + * Decodes a ThrottlerConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtrpc.RPCError + * @memberof topodata.ThrottlerConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtrpc.RPCError} RPCError + * @returns {topodata.ThrottlerConfig} ThrottlerConfig * @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) { + ThrottlerConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RPCError message. + * Verifies a ThrottlerConfig message. * @function verify - * @memberof vtrpc.RPCError + * @memberof topodata.ThrottlerConfig * @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) { + ThrottlerConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.code != null && message.hasOwnProperty("code")) - switch (message.code) { - default: - return "code: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - break; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) + if (typeof message.threshold !== "number") + return "threshold: number expected"; + if (message.custom_query != null && message.hasOwnProperty("custom_query")) + if (!$util.isString(message.custom_query)) + return "custom_query: string expected"; + if (message.check_as_check_self != null && message.hasOwnProperty("check_as_check_self")) + if (typeof message.check_as_check_self !== "boolean") + return "check_as_check_self: boolean expected"; + if (message.throttled_apps != null && message.hasOwnProperty("throttled_apps")) { + if (!$util.isObject(message.throttled_apps)) + return "throttled_apps: object expected"; + let key = Object.keys(message.throttled_apps); + for (let i = 0; i < key.length; ++i) { + let error = $root.topodata.ThrottledAppRule.verify(message.throttled_apps[key[i]]); + if (error) + return "throttled_apps." + error; + } + } + if (message.app_checked_metrics != null && message.hasOwnProperty("app_checked_metrics")) { + if (!$util.isObject(message.app_checked_metrics)) + return "app_checked_metrics: object expected"; + let key = Object.keys(message.app_checked_metrics); + for (let i = 0; i < key.length; ++i) { + let error = $root.topodata.ThrottlerConfig.MetricNames.verify(message.app_checked_metrics[key[i]]); + if (error) + return "app_checked_metrics." + error; } + } + if (message.metric_thresholds != null && message.hasOwnProperty("metric_thresholds")) { + if (!$util.isObject(message.metric_thresholds)) + return "metric_thresholds: object expected"; + let key = Object.keys(message.metric_thresholds); + for (let i = 0; i < key.length; ++i) + if (typeof message.metric_thresholds[key[i]] !== "number") + return "metric_thresholds: number{k:string} expected"; + } return null; }; /** - * Creates a RPCError message from a plain object. Also converts values to their respective internal types. + * Creates a ThrottlerConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtrpc.RPCError + * @memberof topodata.ThrottlerConfig * @static * @param {Object.} object Plain object - * @returns {vtrpc.RPCError} RPCError + * @returns {topodata.ThrottlerConfig} ThrottlerConfig */ - RPCError.fromObject = function fromObject(object) { - if (object instanceof $root.vtrpc.RPCError) + ThrottlerConfig.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.ThrottlerConfig) return object; - let message = new $root.vtrpc.RPCError(); - if (object.message != null) - message.message = String(object.message); - switch (object.code) { - default: - if (typeof object.code === "number") { - message.code = object.code; - break; + let message = new $root.topodata.ThrottlerConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.threshold != null) + message.threshold = Number(object.threshold); + if (object.custom_query != null) + message.custom_query = String(object.custom_query); + if (object.check_as_check_self != null) + message.check_as_check_self = Boolean(object.check_as_check_self); + if (object.throttled_apps) { + if (typeof object.throttled_apps !== "object") + throw TypeError(".topodata.ThrottlerConfig.throttled_apps: object expected"); + message.throttled_apps = {}; + for (let keys = Object.keys(object.throttled_apps), i = 0; i < keys.length; ++i) { + if (typeof object.throttled_apps[keys[i]] !== "object") + throw TypeError(".topodata.ThrottlerConfig.throttled_apps: object expected"); + message.throttled_apps[keys[i]] = $root.topodata.ThrottledAppRule.fromObject(object.throttled_apps[keys[i]]); } - break; - 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; + } + if (object.app_checked_metrics) { + if (typeof object.app_checked_metrics !== "object") + throw TypeError(".topodata.ThrottlerConfig.app_checked_metrics: object expected"); + message.app_checked_metrics = {}; + for (let keys = Object.keys(object.app_checked_metrics), i = 0; i < keys.length; ++i) { + if (typeof object.app_checked_metrics[keys[i]] !== "object") + throw TypeError(".topodata.ThrottlerConfig.app_checked_metrics: object expected"); + message.app_checked_metrics[keys[i]] = $root.topodata.ThrottlerConfig.MetricNames.fromObject(object.app_checked_metrics[keys[i]]); + } + } + if (object.metric_thresholds) { + if (typeof object.metric_thresholds !== "object") + throw TypeError(".topodata.ThrottlerConfig.metric_thresholds: object expected"); + message.metric_thresholds = {}; + for (let keys = Object.keys(object.metric_thresholds), i = 0; i < keys.length; ++i) + message.metric_thresholds[keys[i]] = Number(object.metric_thresholds[keys[i]]); } return message; }; /** - * Creates a plain object from a RPCError message. Also converts values to other types if specified. + * Creates a plain object from a ThrottlerConfig message. Also converts values to other types if specified. * @function toObject - * @memberof vtrpc.RPCError + * @memberof topodata.ThrottlerConfig * @static - * @param {vtrpc.RPCError} message RPCError + * @param {topodata.ThrottlerConfig} message ThrottlerConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RPCError.toObject = function toObject(message, options) { + ThrottlerConfig.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.objects || options.defaults) { + object.throttled_apps = {}; + object.app_checked_metrics = {}; + object.metric_thresholds = {}; + } if (options.defaults) { - object.message = ""; - object.code = options.enums === String ? "OK" : 0; + object.enabled = false; + object.threshold = 0; + object.custom_query = ""; + object.check_as_check_self = false; + } + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = options.json && !isFinite(message.threshold) ? String(message.threshold) : message.threshold; + if (message.custom_query != null && message.hasOwnProperty("custom_query")) + object.custom_query = message.custom_query; + if (message.check_as_check_self != null && message.hasOwnProperty("check_as_check_self")) + object.check_as_check_self = message.check_as_check_self; + let keys2; + if (message.throttled_apps && (keys2 = Object.keys(message.throttled_apps)).length) { + object.throttled_apps = {}; + for (let j = 0; j < keys2.length; ++j) + object.throttled_apps[keys2[j]] = $root.topodata.ThrottledAppRule.toObject(message.throttled_apps[keys2[j]], options); + } + if (message.app_checked_metrics && (keys2 = Object.keys(message.app_checked_metrics)).length) { + object.app_checked_metrics = {}; + for (let j = 0; j < keys2.length; ++j) + object.app_checked_metrics[keys2[j]] = $root.topodata.ThrottlerConfig.MetricNames.toObject(message.app_checked_metrics[keys2[j]], options); + } + if (message.metric_thresholds && (keys2 = Object.keys(message.metric_thresholds)).length) { + object.metric_thresholds = {}; + for (let j = 0; j < keys2.length; ++j) + object.metric_thresholds[keys2[j]] = options.json && !isFinite(message.metric_thresholds[keys2[j]]) ? String(message.metric_thresholds[keys2[j]]) : message.metric_thresholds[keys2[j]]; } - if (message.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] === undefined ? message.code : $root.vtrpc.Code[message.code] : message.code; return object; }; /** - * Converts this RPCError to JSON. + * Converts this ThrottlerConfig to JSON. * @function toJSON - * @memberof vtrpc.RPCError + * @memberof topodata.ThrottlerConfig * @instance * @returns {Object.} JSON object */ - RPCError.prototype.toJSON = function toJSON() { + ThrottlerConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RPCError + * Gets the default type url for ThrottlerConfig * @function getTypeUrl - * @memberof vtrpc.RPCError + * @memberof topodata.ThrottlerConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RPCError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ThrottlerConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtrpc.RPCError"; + return typeUrlPrefix + "/topodata.ThrottlerConfig"; }; - return RPCError; - })(); + ThrottlerConfig.MetricNames = (function() { - return vtrpc; -})(); + /** + * Properties of a MetricNames. + * @memberof topodata.ThrottlerConfig + * @interface IMetricNames + * @property {Array.|null} [names] MetricNames names + */ -export const tabletmanagerdata = $root.tabletmanagerdata = (() => { + /** + * Constructs a new MetricNames. + * @memberof topodata.ThrottlerConfig + * @classdesc Represents a MetricNames. + * @implements IMetricNames + * @constructor + * @param {topodata.ThrottlerConfig.IMetricNames=} [properties] Properties to set + */ + function MetricNames(properties) { + this.names = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Namespace tabletmanagerdata. - * @exports tabletmanagerdata - * @namespace - */ - const tabletmanagerdata = {}; + /** + * MetricNames names. + * @member {Array.} names + * @memberof topodata.ThrottlerConfig.MetricNames + * @instance + */ + MetricNames.prototype.names = $util.emptyArray; - /** - * TabletSelectionPreference enum. - * @name tabletmanagerdata.TabletSelectionPreference - * @enum {number} - * @property {number} ANY=0 ANY value - * @property {number} INORDER=1 INORDER value - * @property {number} UNKNOWN=3 UNKNOWN value - */ - tabletmanagerdata.TabletSelectionPreference = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ANY"] = 0; - values[valuesById[1] = "INORDER"] = 1; - values[valuesById[3] = "UNKNOWN"] = 3; - return values; + /** + * Creates a new MetricNames instance using the specified properties. + * @function create + * @memberof topodata.ThrottlerConfig.MetricNames + * @static + * @param {topodata.ThrottlerConfig.IMetricNames=} [properties] Properties to set + * @returns {topodata.ThrottlerConfig.MetricNames} MetricNames instance + */ + MetricNames.create = function create(properties) { + return new MetricNames(properties); + }; + + /** + * Encodes the specified MetricNames message. Does not implicitly {@link topodata.ThrottlerConfig.MetricNames.verify|verify} messages. + * @function encode + * @memberof topodata.ThrottlerConfig.MetricNames + * @static + * @param {topodata.ThrottlerConfig.IMetricNames} message MetricNames message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricNames.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.names != null && message.names.length) + for (let i = 0; i < message.names.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); + return writer; + }; + + /** + * Encodes the specified MetricNames message, length delimited. Does not implicitly {@link topodata.ThrottlerConfig.MetricNames.verify|verify} messages. + * @function encodeDelimited + * @memberof topodata.ThrottlerConfig.MetricNames + * @static + * @param {topodata.ThrottlerConfig.IMetricNames} message MetricNames message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricNames.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricNames message from the specified reader or buffer. + * @function decode + * @memberof topodata.ThrottlerConfig.MetricNames + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {topodata.ThrottlerConfig.MetricNames} MetricNames + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricNames.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ThrottlerConfig.MetricNames(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricNames message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof topodata.ThrottlerConfig.MetricNames + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {topodata.ThrottlerConfig.MetricNames} MetricNames + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricNames.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricNames message. + * @function verify + * @memberof topodata.ThrottlerConfig.MetricNames + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricNames.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (let i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; + } + return null; + }; + + /** + * Creates a MetricNames message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof topodata.ThrottlerConfig.MetricNames + * @static + * @param {Object.} object Plain object + * @returns {topodata.ThrottlerConfig.MetricNames} MetricNames + */ + MetricNames.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.ThrottlerConfig.MetricNames) + return object; + let message = new $root.topodata.ThrottlerConfig.MetricNames(); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".topodata.ThrottlerConfig.MetricNames.names: array expected"); + message.names = []; + for (let i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); + } + return message; + }; + + /** + * Creates a plain object from a MetricNames message. Also converts values to other types if specified. + * @function toObject + * @memberof topodata.ThrottlerConfig.MetricNames + * @static + * @param {topodata.ThrottlerConfig.MetricNames} message MetricNames + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricNames.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.names = []; + if (message.names && message.names.length) { + object.names = []; + for (let j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } + return object; + }; + + /** + * Converts this MetricNames to JSON. + * @function toJSON + * @memberof topodata.ThrottlerConfig.MetricNames + * @instance + * @returns {Object.} JSON object + */ + MetricNames.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetricNames + * @function getTypeUrl + * @memberof topodata.ThrottlerConfig.MetricNames + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricNames.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/topodata.ThrottlerConfig.MetricNames"; + }; + + return MetricNames; + })(); + + return ThrottlerConfig; })(); - tabletmanagerdata.TableDefinition = (function() { + topodata.SrvKeyspace = (function() { /** - * Properties of a TableDefinition. - * @memberof tabletmanagerdata - * @interface ITableDefinition - * @property {string|null} [name] TableDefinition name - * @property {string|null} [schema] TableDefinition schema - * @property {Array.|null} [columns] TableDefinition columns - * @property {Array.|null} [primary_key_columns] TableDefinition primary_key_columns - * @property {string|null} [type] TableDefinition type - * @property {number|Long|null} [data_length] TableDefinition data_length - * @property {number|Long|null} [row_count] TableDefinition row_count - * @property {Array.|null} [fields] TableDefinition fields + * Properties of a SrvKeyspace. + * @memberof topodata + * @interface ISrvKeyspace + * @property {Array.|null} [partitions] SrvKeyspace partitions + * @property {topodata.IThrottlerConfig|null} [throttler_config] SrvKeyspace throttler_config */ /** - * Constructs a new TableDefinition. - * @memberof tabletmanagerdata - * @classdesc Represents a TableDefinition. - * @implements ITableDefinition + * Constructs a new SrvKeyspace. + * @memberof topodata + * @classdesc Represents a SrvKeyspace. + * @implements ISrvKeyspace * @constructor - * @param {tabletmanagerdata.ITableDefinition=} [properties] Properties to set + * @param {topodata.ISrvKeyspace=} [properties] Properties to set */ - function TableDefinition(properties) { - this.columns = []; - this.primary_key_columns = []; - this.fields = []; + function SrvKeyspace(properties) { + this.partitions = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48434,182 +48364,92 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * TableDefinition name. - * @member {string} name - * @memberof tabletmanagerdata.TableDefinition - * @instance - */ - TableDefinition.prototype.name = ""; - - /** - * TableDefinition schema. - * @member {string} schema - * @memberof tabletmanagerdata.TableDefinition - * @instance - */ - TableDefinition.prototype.schema = ""; - - /** - * TableDefinition columns. - * @member {Array.} columns - * @memberof tabletmanagerdata.TableDefinition - * @instance - */ - TableDefinition.prototype.columns = $util.emptyArray; - - /** - * TableDefinition primary_key_columns. - * @member {Array.} primary_key_columns - * @memberof tabletmanagerdata.TableDefinition - * @instance - */ - TableDefinition.prototype.primary_key_columns = $util.emptyArray; - - /** - * TableDefinition type. - * @member {string} type - * @memberof tabletmanagerdata.TableDefinition - * @instance - */ - TableDefinition.prototype.type = ""; - - /** - * TableDefinition data_length. - * @member {number|Long} data_length - * @memberof tabletmanagerdata.TableDefinition - * @instance - */ - TableDefinition.prototype.data_length = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * TableDefinition row_count. - * @member {number|Long} row_count - * @memberof tabletmanagerdata.TableDefinition + * SrvKeyspace partitions. + * @member {Array.} partitions + * @memberof topodata.SrvKeyspace * @instance */ - TableDefinition.prototype.row_count = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SrvKeyspace.prototype.partitions = $util.emptyArray; /** - * TableDefinition fields. - * @member {Array.} fields - * @memberof tabletmanagerdata.TableDefinition + * SrvKeyspace throttler_config. + * @member {topodata.IThrottlerConfig|null|undefined} throttler_config + * @memberof topodata.SrvKeyspace * @instance */ - TableDefinition.prototype.fields = $util.emptyArray; + SrvKeyspace.prototype.throttler_config = null; /** - * Creates a new TableDefinition instance using the specified properties. + * Creates a new SrvKeyspace instance using the specified properties. * @function create - * @memberof tabletmanagerdata.TableDefinition + * @memberof topodata.SrvKeyspace * @static - * @param {tabletmanagerdata.ITableDefinition=} [properties] Properties to set - * @returns {tabletmanagerdata.TableDefinition} TableDefinition instance + * @param {topodata.ISrvKeyspace=} [properties] Properties to set + * @returns {topodata.SrvKeyspace} SrvKeyspace instance */ - TableDefinition.create = function create(properties) { - return new TableDefinition(properties); + SrvKeyspace.create = function create(properties) { + return new SrvKeyspace(properties); }; /** - * Encodes the specified TableDefinition message. Does not implicitly {@link tabletmanagerdata.TableDefinition.verify|verify} messages. + * Encodes the specified SrvKeyspace message. Does not implicitly {@link topodata.SrvKeyspace.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.TableDefinition + * @memberof topodata.SrvKeyspace * @static - * @param {tabletmanagerdata.ITableDefinition} message TableDefinition message or plain object to encode + * @param {topodata.ISrvKeyspace} message SrvKeyspace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TableDefinition.encode = function encode(message, writer) { + SrvKeyspace.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.schema != null && Object.hasOwnProperty.call(message, "schema")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.schema); - if (message.columns != null && message.columns.length) - for (let i = 0; i < message.columns.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.columns[i]); - if (message.primary_key_columns != null && message.primary_key_columns.length) - for (let i = 0; i < message.primary_key_columns.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.primary_key_columns[i]); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.type); - if (message.data_length != null && Object.hasOwnProperty.call(message, "data_length")) - writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.data_length); - if (message.row_count != null && Object.hasOwnProperty.call(message, "row_count")) - writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.row_count); - if (message.fields != null && message.fields.length) - for (let i = 0; i < message.fields.length; ++i) - $root.query.Field.encode(message.fields[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.partitions != null && message.partitions.length) + for (let i = 0; i < message.partitions.length; ++i) + $root.topodata.SrvKeyspace.KeyspacePartition.encode(message.partitions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.throttler_config != null && Object.hasOwnProperty.call(message, "throttler_config")) + $root.topodata.ThrottlerConfig.encode(message.throttler_config, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified TableDefinition message, length delimited. Does not implicitly {@link tabletmanagerdata.TableDefinition.verify|verify} messages. + * Encodes the specified SrvKeyspace message, length delimited. Does not implicitly {@link topodata.SrvKeyspace.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.TableDefinition + * @memberof topodata.SrvKeyspace * @static - * @param {tabletmanagerdata.ITableDefinition} message TableDefinition message or plain object to encode + * @param {topodata.ISrvKeyspace} message SrvKeyspace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TableDefinition.encodeDelimited = function encodeDelimited(message, writer) { + SrvKeyspace.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TableDefinition message from the specified reader or buffer. + * Decodes a SrvKeyspace message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.TableDefinition + * @memberof topodata.SrvKeyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.TableDefinition} TableDefinition + * @returns {topodata.SrvKeyspace} SrvKeyspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TableDefinition.decode = function decode(reader, length) { + SrvKeyspace.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.TableDefinition(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.SrvKeyspace(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.schema = reader.string(); - break; - } - case 3: { - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push(reader.string()); - break; - } - case 4: { - if (!(message.primary_key_columns && message.primary_key_columns.length)) - message.primary_key_columns = []; - message.primary_key_columns.push(reader.string()); - break; - } - case 5: { - message.type = reader.string(); + if (!(message.partitions && message.partitions.length)) + message.partitions = []; + message.partitions.push($root.topodata.SrvKeyspace.KeyspacePartition.decode(reader, reader.uint32())); break; } case 6: { - message.data_length = reader.uint64(); - break; - } - case 7: { - message.row_count = reader.uint64(); - break; - } - case 8: { - if (!(message.fields && message.fields.length)) - message.fields = []; - message.fields.push($root.query.Field.decode(reader, reader.uint32())); + message.throttler_config = $root.topodata.ThrottlerConfig.decode(reader, reader.uint32()); break; } default: @@ -48621,252 +48461,511 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a TableDefinition message from the specified reader or buffer, length delimited. + * Decodes a SrvKeyspace message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.TableDefinition + * @memberof topodata.SrvKeyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.TableDefinition} TableDefinition + * @returns {topodata.SrvKeyspace} SrvKeyspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TableDefinition.decodeDelimited = function decodeDelimited(reader) { + SrvKeyspace.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TableDefinition message. + * Verifies a SrvKeyspace message. * @function verify - * @memberof tabletmanagerdata.TableDefinition + * @memberof topodata.SrvKeyspace * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TableDefinition.verify = function verify(message) { + SrvKeyspace.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.schema != null && message.hasOwnProperty("schema")) - if (!$util.isString(message.schema)) - return "schema: string expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (let i = 0; i < message.columns.length; ++i) - if (!$util.isString(message.columns[i])) - return "columns: string[] expected"; - } - if (message.primary_key_columns != null && message.hasOwnProperty("primary_key_columns")) { - if (!Array.isArray(message.primary_key_columns)) - return "primary_key_columns: array expected"; - for (let i = 0; i < message.primary_key_columns.length; ++i) - if (!$util.isString(message.primary_key_columns[i])) - return "primary_key_columns: string[] expected"; + if (message.partitions != null && message.hasOwnProperty("partitions")) { + if (!Array.isArray(message.partitions)) + return "partitions: array expected"; + for (let i = 0; i < message.partitions.length; ++i) { + let error = $root.topodata.SrvKeyspace.KeyspacePartition.verify(message.partitions[i]); + if (error) + return "partitions." + error; + } } - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.data_length != null && message.hasOwnProperty("data_length")) - if (!$util.isInteger(message.data_length) && !(message.data_length && $util.isInteger(message.data_length.low) && $util.isInteger(message.data_length.high))) - return "data_length: integer|Long expected"; - if (message.row_count != null && message.hasOwnProperty("row_count")) - if (!$util.isInteger(message.row_count) && !(message.row_count && $util.isInteger(message.row_count.low) && $util.isInteger(message.row_count.high))) - return "row_count: integer|Long expected"; - if (message.fields != null && message.hasOwnProperty("fields")) { - if (!Array.isArray(message.fields)) - return "fields: array expected"; - for (let i = 0; i < message.fields.length; ++i) { - let error = $root.query.Field.verify(message.fields[i]); - if (error) - return "fields." + error; - } + if (message.throttler_config != null && message.hasOwnProperty("throttler_config")) { + let error = $root.topodata.ThrottlerConfig.verify(message.throttler_config); + if (error) + return "throttler_config." + error; } return null; }; /** - * Creates a TableDefinition message from a plain object. Also converts values to their respective internal types. + * Creates a SrvKeyspace message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.TableDefinition + * @memberof topodata.SrvKeyspace * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.TableDefinition} TableDefinition + * @returns {topodata.SrvKeyspace} SrvKeyspace */ - TableDefinition.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.TableDefinition) + SrvKeyspace.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.SrvKeyspace) return object; - let message = new $root.tabletmanagerdata.TableDefinition(); - if (object.name != null) - message.name = String(object.name); - if (object.schema != null) - message.schema = String(object.schema); - if (object.columns) { - if (!Array.isArray(object.columns)) - throw TypeError(".tabletmanagerdata.TableDefinition.columns: array expected"); - message.columns = []; - for (let i = 0; i < object.columns.length; ++i) - message.columns[i] = String(object.columns[i]); - } - if (object.primary_key_columns) { - if (!Array.isArray(object.primary_key_columns)) - throw TypeError(".tabletmanagerdata.TableDefinition.primary_key_columns: array expected"); - message.primary_key_columns = []; - for (let i = 0; i < object.primary_key_columns.length; ++i) - message.primary_key_columns[i] = String(object.primary_key_columns[i]); - } - if (object.type != null) - message.type = String(object.type); - if (object.data_length != null) - if ($util.Long) - (message.data_length = $util.Long.fromValue(object.data_length)).unsigned = true; - else if (typeof object.data_length === "string") - message.data_length = parseInt(object.data_length, 10); - else if (typeof object.data_length === "number") - message.data_length = object.data_length; - else if (typeof object.data_length === "object") - message.data_length = new $util.LongBits(object.data_length.low >>> 0, object.data_length.high >>> 0).toNumber(true); - if (object.row_count != null) - if ($util.Long) - (message.row_count = $util.Long.fromValue(object.row_count)).unsigned = true; - else if (typeof object.row_count === "string") - message.row_count = parseInt(object.row_count, 10); - else if (typeof object.row_count === "number") - message.row_count = object.row_count; - else if (typeof object.row_count === "object") - message.row_count = new $util.LongBits(object.row_count.low >>> 0, object.row_count.high >>> 0).toNumber(true); - if (object.fields) { - if (!Array.isArray(object.fields)) - throw TypeError(".tabletmanagerdata.TableDefinition.fields: array expected"); - message.fields = []; - for (let i = 0; i < object.fields.length; ++i) { - if (typeof object.fields[i] !== "object") - throw TypeError(".tabletmanagerdata.TableDefinition.fields: object expected"); - message.fields[i] = $root.query.Field.fromObject(object.fields[i]); + let message = new $root.topodata.SrvKeyspace(); + if (object.partitions) { + if (!Array.isArray(object.partitions)) + throw TypeError(".topodata.SrvKeyspace.partitions: array expected"); + message.partitions = []; + for (let i = 0; i < object.partitions.length; ++i) { + if (typeof object.partitions[i] !== "object") + throw TypeError(".topodata.SrvKeyspace.partitions: object expected"); + message.partitions[i] = $root.topodata.SrvKeyspace.KeyspacePartition.fromObject(object.partitions[i]); } } + if (object.throttler_config != null) { + if (typeof object.throttler_config !== "object") + throw TypeError(".topodata.SrvKeyspace.throttler_config: object expected"); + message.throttler_config = $root.topodata.ThrottlerConfig.fromObject(object.throttler_config); + } return message; }; /** - * Creates a plain object from a TableDefinition message. Also converts values to other types if specified. + * Creates a plain object from a SrvKeyspace message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.TableDefinition + * @memberof topodata.SrvKeyspace * @static - * @param {tabletmanagerdata.TableDefinition} message TableDefinition + * @param {topodata.SrvKeyspace} message SrvKeyspace * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TableDefinition.toObject = function toObject(message, options) { + SrvKeyspace.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.columns = []; - object.primary_key_columns = []; - object.fields = []; - } - if (options.defaults) { - object.name = ""; - object.schema = ""; - object.type = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.data_length = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.data_length = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.row_count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.row_count = options.longs === String ? "0" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.schema != null && message.hasOwnProperty("schema")) - object.schema = message.schema; - if (message.columns && message.columns.length) { - object.columns = []; - for (let j = 0; j < message.columns.length; ++j) - object.columns[j] = message.columns[j]; - } - if (message.primary_key_columns && message.primary_key_columns.length) { - object.primary_key_columns = []; - for (let j = 0; j < message.primary_key_columns.length; ++j) - object.primary_key_columns[j] = message.primary_key_columns[j]; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.data_length != null && message.hasOwnProperty("data_length")) - if (typeof message.data_length === "number") - object.data_length = options.longs === String ? String(message.data_length) : message.data_length; - else - object.data_length = options.longs === String ? $util.Long.prototype.toString.call(message.data_length) : options.longs === Number ? new $util.LongBits(message.data_length.low >>> 0, message.data_length.high >>> 0).toNumber(true) : message.data_length; - if (message.row_count != null && message.hasOwnProperty("row_count")) - if (typeof message.row_count === "number") - object.row_count = options.longs === String ? String(message.row_count) : message.row_count; - else - object.row_count = options.longs === String ? $util.Long.prototype.toString.call(message.row_count) : options.longs === Number ? new $util.LongBits(message.row_count.low >>> 0, message.row_count.high >>> 0).toNumber(true) : message.row_count; - if (message.fields && message.fields.length) { - object.fields = []; - for (let j = 0; j < message.fields.length; ++j) - object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + if (options.arrays || options.defaults) + object.partitions = []; + if (options.defaults) + object.throttler_config = null; + if (message.partitions && message.partitions.length) { + object.partitions = []; + for (let j = 0; j < message.partitions.length; ++j) + object.partitions[j] = $root.topodata.SrvKeyspace.KeyspacePartition.toObject(message.partitions[j], options); } + if (message.throttler_config != null && message.hasOwnProperty("throttler_config")) + object.throttler_config = $root.topodata.ThrottlerConfig.toObject(message.throttler_config, options); return object; }; /** - * Converts this TableDefinition to JSON. + * Converts this SrvKeyspace to JSON. * @function toJSON - * @memberof tabletmanagerdata.TableDefinition + * @memberof topodata.SrvKeyspace * @instance * @returns {Object.} JSON object */ - TableDefinition.prototype.toJSON = function toJSON() { + SrvKeyspace.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TableDefinition + * Gets the default type url for SrvKeyspace * @function getTypeUrl - * @memberof tabletmanagerdata.TableDefinition + * @memberof topodata.SrvKeyspace * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TableDefinition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SrvKeyspace.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.TableDefinition"; + return typeUrlPrefix + "/topodata.SrvKeyspace"; }; - return TableDefinition; + SrvKeyspace.KeyspacePartition = (function() { + + /** + * Properties of a KeyspacePartition. + * @memberof topodata.SrvKeyspace + * @interface IKeyspacePartition + * @property {topodata.TabletType|null} [served_type] KeyspacePartition served_type + * @property {Array.|null} [shard_references] KeyspacePartition shard_references + * @property {Array.|null} [shard_tablet_controls] KeyspacePartition shard_tablet_controls + */ + + /** + * Constructs a new KeyspacePartition. + * @memberof topodata.SrvKeyspace + * @classdesc Represents a KeyspacePartition. + * @implements IKeyspacePartition + * @constructor + * @param {topodata.SrvKeyspace.IKeyspacePartition=} [properties] Properties to set + */ + function KeyspacePartition(properties) { + this.shard_references = []; + this.shard_tablet_controls = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * KeyspacePartition served_type. + * @member {topodata.TabletType} served_type + * @memberof topodata.SrvKeyspace.KeyspacePartition + * @instance + */ + KeyspacePartition.prototype.served_type = 0; + + /** + * KeyspacePartition shard_references. + * @member {Array.} shard_references + * @memberof topodata.SrvKeyspace.KeyspacePartition + * @instance + */ + KeyspacePartition.prototype.shard_references = $util.emptyArray; + + /** + * KeyspacePartition shard_tablet_controls. + * @member {Array.} shard_tablet_controls + * @memberof topodata.SrvKeyspace.KeyspacePartition + * @instance + */ + KeyspacePartition.prototype.shard_tablet_controls = $util.emptyArray; + + /** + * Creates a new KeyspacePartition instance using the specified properties. + * @function create + * @memberof topodata.SrvKeyspace.KeyspacePartition + * @static + * @param {topodata.SrvKeyspace.IKeyspacePartition=} [properties] Properties to set + * @returns {topodata.SrvKeyspace.KeyspacePartition} KeyspacePartition instance + */ + KeyspacePartition.create = function create(properties) { + return new KeyspacePartition(properties); + }; + + /** + * Encodes the specified KeyspacePartition message. Does not implicitly {@link topodata.SrvKeyspace.KeyspacePartition.verify|verify} messages. + * @function encode + * @memberof topodata.SrvKeyspace.KeyspacePartition + * @static + * @param {topodata.SrvKeyspace.IKeyspacePartition} message KeyspacePartition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KeyspacePartition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.served_type != null && Object.hasOwnProperty.call(message, "served_type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.served_type); + if (message.shard_references != null && message.shard_references.length) + for (let i = 0; i < message.shard_references.length; ++i) + $root.topodata.ShardReference.encode(message.shard_references[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.shard_tablet_controls != null && message.shard_tablet_controls.length) + for (let i = 0; i < message.shard_tablet_controls.length; ++i) + $root.topodata.ShardTabletControl.encode(message.shard_tablet_controls[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified KeyspacePartition message, length delimited. Does not implicitly {@link topodata.SrvKeyspace.KeyspacePartition.verify|verify} messages. + * @function encodeDelimited + * @memberof topodata.SrvKeyspace.KeyspacePartition + * @static + * @param {topodata.SrvKeyspace.IKeyspacePartition} message KeyspacePartition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KeyspacePartition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a KeyspacePartition message from the specified reader or buffer. + * @function decode + * @memberof topodata.SrvKeyspace.KeyspacePartition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {topodata.SrvKeyspace.KeyspacePartition} KeyspacePartition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KeyspacePartition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.SrvKeyspace.KeyspacePartition(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.served_type = reader.int32(); + break; + } + case 2: { + if (!(message.shard_references && message.shard_references.length)) + message.shard_references = []; + message.shard_references.push($root.topodata.ShardReference.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.shard_tablet_controls && message.shard_tablet_controls.length)) + message.shard_tablet_controls = []; + message.shard_tablet_controls.push($root.topodata.ShardTabletControl.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a KeyspacePartition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof topodata.SrvKeyspace.KeyspacePartition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {topodata.SrvKeyspace.KeyspacePartition} KeyspacePartition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KeyspacePartition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a KeyspacePartition message. + * @function verify + * @memberof topodata.SrvKeyspace.KeyspacePartition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + KeyspacePartition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.served_type != null && message.hasOwnProperty("served_type")) + switch (message.served_type) { + default: + return "served_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.shard_references != null && message.hasOwnProperty("shard_references")) { + if (!Array.isArray(message.shard_references)) + return "shard_references: array expected"; + for (let i = 0; i < message.shard_references.length; ++i) { + let error = $root.topodata.ShardReference.verify(message.shard_references[i]); + if (error) + return "shard_references." + error; + } + } + if (message.shard_tablet_controls != null && message.hasOwnProperty("shard_tablet_controls")) { + if (!Array.isArray(message.shard_tablet_controls)) + return "shard_tablet_controls: array expected"; + for (let i = 0; i < message.shard_tablet_controls.length; ++i) { + let error = $root.topodata.ShardTabletControl.verify(message.shard_tablet_controls[i]); + if (error) + return "shard_tablet_controls." + error; + } + } + return null; + }; + + /** + * Creates a KeyspacePartition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof topodata.SrvKeyspace.KeyspacePartition + * @static + * @param {Object.} object Plain object + * @returns {topodata.SrvKeyspace.KeyspacePartition} KeyspacePartition + */ + KeyspacePartition.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.SrvKeyspace.KeyspacePartition) + return object; + let message = new $root.topodata.SrvKeyspace.KeyspacePartition(); + switch (object.served_type) { + default: + if (typeof object.served_type === "number") { + message.served_type = object.served_type; + break; + } + break; + case "UNKNOWN": + case 0: + message.served_type = 0; + break; + case "PRIMARY": + case 1: + message.served_type = 1; + break; + case "MASTER": + case 1: + message.served_type = 1; + break; + case "REPLICA": + case 2: + message.served_type = 2; + break; + case "RDONLY": + case 3: + message.served_type = 3; + break; + case "BATCH": + case 3: + message.served_type = 3; + break; + case "SPARE": + case 4: + message.served_type = 4; + break; + case "EXPERIMENTAL": + case 5: + message.served_type = 5; + break; + case "BACKUP": + case 6: + message.served_type = 6; + break; + case "RESTORE": + case 7: + message.served_type = 7; + break; + case "DRAINED": + case 8: + message.served_type = 8; + break; + } + if (object.shard_references) { + if (!Array.isArray(object.shard_references)) + throw TypeError(".topodata.SrvKeyspace.KeyspacePartition.shard_references: array expected"); + message.shard_references = []; + for (let i = 0; i < object.shard_references.length; ++i) { + if (typeof object.shard_references[i] !== "object") + throw TypeError(".topodata.SrvKeyspace.KeyspacePartition.shard_references: object expected"); + message.shard_references[i] = $root.topodata.ShardReference.fromObject(object.shard_references[i]); + } + } + if (object.shard_tablet_controls) { + if (!Array.isArray(object.shard_tablet_controls)) + throw TypeError(".topodata.SrvKeyspace.KeyspacePartition.shard_tablet_controls: array expected"); + message.shard_tablet_controls = []; + for (let i = 0; i < object.shard_tablet_controls.length; ++i) { + if (typeof object.shard_tablet_controls[i] !== "object") + throw TypeError(".topodata.SrvKeyspace.KeyspacePartition.shard_tablet_controls: object expected"); + message.shard_tablet_controls[i] = $root.topodata.ShardTabletControl.fromObject(object.shard_tablet_controls[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a KeyspacePartition message. Also converts values to other types if specified. + * @function toObject + * @memberof topodata.SrvKeyspace.KeyspacePartition + * @static + * @param {topodata.SrvKeyspace.KeyspacePartition} message KeyspacePartition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + KeyspacePartition.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.shard_references = []; + object.shard_tablet_controls = []; + } + if (options.defaults) + object.served_type = options.enums === String ? "UNKNOWN" : 0; + if (message.served_type != null && message.hasOwnProperty("served_type")) + object.served_type = options.enums === String ? $root.topodata.TabletType[message.served_type] === undefined ? message.served_type : $root.topodata.TabletType[message.served_type] : message.served_type; + if (message.shard_references && message.shard_references.length) { + object.shard_references = []; + for (let j = 0; j < message.shard_references.length; ++j) + object.shard_references[j] = $root.topodata.ShardReference.toObject(message.shard_references[j], options); + } + if (message.shard_tablet_controls && message.shard_tablet_controls.length) { + object.shard_tablet_controls = []; + for (let j = 0; j < message.shard_tablet_controls.length; ++j) + object.shard_tablet_controls[j] = $root.topodata.ShardTabletControl.toObject(message.shard_tablet_controls[j], options); + } + return object; + }; + + /** + * Converts this KeyspacePartition to JSON. + * @function toJSON + * @memberof topodata.SrvKeyspace.KeyspacePartition + * @instance + * @returns {Object.} JSON object + */ + KeyspacePartition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for KeyspacePartition + * @function getTypeUrl + * @memberof topodata.SrvKeyspace.KeyspacePartition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + KeyspacePartition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/topodata.SrvKeyspace.KeyspacePartition"; + }; + + return KeyspacePartition; + })(); + + return SrvKeyspace; })(); - tabletmanagerdata.SchemaDefinition = (function() { + topodata.CellInfo = (function() { /** - * Properties of a SchemaDefinition. - * @memberof tabletmanagerdata - * @interface ISchemaDefinition - * @property {string|null} [database_schema] SchemaDefinition database_schema - * @property {Array.|null} [table_definitions] SchemaDefinition table_definitions + * Properties of a CellInfo. + * @memberof topodata + * @interface ICellInfo + * @property {string|null} [server_address] CellInfo server_address + * @property {string|null} [root] CellInfo root */ /** - * Constructs a new SchemaDefinition. - * @memberof tabletmanagerdata - * @classdesc Represents a SchemaDefinition. - * @implements ISchemaDefinition + * Constructs a new CellInfo. + * @memberof topodata + * @classdesc Represents a CellInfo. + * @implements ICellInfo * @constructor - * @param {tabletmanagerdata.ISchemaDefinition=} [properties] Properties to set + * @param {topodata.ICellInfo=} [properties] Properties to set */ - function SchemaDefinition(properties) { - this.table_definitions = []; + function CellInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48874,92 +48973,89 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * SchemaDefinition database_schema. - * @member {string} database_schema - * @memberof tabletmanagerdata.SchemaDefinition + * CellInfo server_address. + * @member {string} server_address + * @memberof topodata.CellInfo * @instance */ - SchemaDefinition.prototype.database_schema = ""; + CellInfo.prototype.server_address = ""; /** - * SchemaDefinition table_definitions. - * @member {Array.} table_definitions - * @memberof tabletmanagerdata.SchemaDefinition + * CellInfo root. + * @member {string} root + * @memberof topodata.CellInfo * @instance */ - SchemaDefinition.prototype.table_definitions = $util.emptyArray; + CellInfo.prototype.root = ""; /** - * Creates a new SchemaDefinition instance using the specified properties. + * Creates a new CellInfo instance using the specified properties. * @function create - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof topodata.CellInfo * @static - * @param {tabletmanagerdata.ISchemaDefinition=} [properties] Properties to set - * @returns {tabletmanagerdata.SchemaDefinition} SchemaDefinition instance + * @param {topodata.ICellInfo=} [properties] Properties to set + * @returns {topodata.CellInfo} CellInfo instance */ - SchemaDefinition.create = function create(properties) { - return new SchemaDefinition(properties); + CellInfo.create = function create(properties) { + return new CellInfo(properties); }; /** - * Encodes the specified SchemaDefinition message. Does not implicitly {@link tabletmanagerdata.SchemaDefinition.verify|verify} messages. + * Encodes the specified CellInfo message. Does not implicitly {@link topodata.CellInfo.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof topodata.CellInfo * @static - * @param {tabletmanagerdata.ISchemaDefinition} message SchemaDefinition message or plain object to encode + * @param {topodata.ICellInfo} message CellInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SchemaDefinition.encode = function encode(message, writer) { + CellInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.database_schema != null && Object.hasOwnProperty.call(message, "database_schema")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.database_schema); - if (message.table_definitions != null && message.table_definitions.length) - for (let i = 0; i < message.table_definitions.length; ++i) - $root.tabletmanagerdata.TableDefinition.encode(message.table_definitions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.server_address != null && Object.hasOwnProperty.call(message, "server_address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.server_address); + if (message.root != null && Object.hasOwnProperty.call(message, "root")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.root); return writer; }; /** - * Encodes the specified SchemaDefinition message, length delimited. Does not implicitly {@link tabletmanagerdata.SchemaDefinition.verify|verify} messages. + * Encodes the specified CellInfo message, length delimited. Does not implicitly {@link topodata.CellInfo.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof topodata.CellInfo * @static - * @param {tabletmanagerdata.ISchemaDefinition} message SchemaDefinition message or plain object to encode + * @param {topodata.ICellInfo} message CellInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SchemaDefinition.encodeDelimited = function encodeDelimited(message, writer) { + CellInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SchemaDefinition message from the specified reader or buffer. + * Decodes a CellInfo message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof topodata.CellInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.SchemaDefinition} SchemaDefinition + * @returns {topodata.CellInfo} CellInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SchemaDefinition.decode = function decode(reader, length) { + CellInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SchemaDefinition(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.CellInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.database_schema = reader.string(); + message.server_address = reader.string(); break; } case 2: { - if (!(message.table_definitions && message.table_definitions.length)) - message.table_definitions = []; - message.table_definitions.push($root.tabletmanagerdata.TableDefinition.decode(reader, reader.uint32())); + message.root = reader.string(); break; } default: @@ -48971,149 +49067,132 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a SchemaDefinition message from the specified reader or buffer, length delimited. + * Decodes a CellInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof topodata.CellInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SchemaDefinition} SchemaDefinition + * @returns {topodata.CellInfo} CellInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SchemaDefinition.decodeDelimited = function decodeDelimited(reader) { + CellInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SchemaDefinition message. + * Verifies a CellInfo message. * @function verify - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof topodata.CellInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SchemaDefinition.verify = function verify(message) { + CellInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.database_schema != null && message.hasOwnProperty("database_schema")) - if (!$util.isString(message.database_schema)) - return "database_schema: string expected"; - if (message.table_definitions != null && message.hasOwnProperty("table_definitions")) { - if (!Array.isArray(message.table_definitions)) - return "table_definitions: array expected"; - for (let i = 0; i < message.table_definitions.length; ++i) { - let error = $root.tabletmanagerdata.TableDefinition.verify(message.table_definitions[i]); - if (error) - return "table_definitions." + error; - } - } + if (message.server_address != null && message.hasOwnProperty("server_address")) + if (!$util.isString(message.server_address)) + return "server_address: string expected"; + if (message.root != null && message.hasOwnProperty("root")) + if (!$util.isString(message.root)) + return "root: string expected"; return null; }; /** - * Creates a SchemaDefinition message from a plain object. Also converts values to their respective internal types. + * Creates a CellInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof topodata.CellInfo * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SchemaDefinition} SchemaDefinition + * @returns {topodata.CellInfo} CellInfo */ - SchemaDefinition.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SchemaDefinition) + CellInfo.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.CellInfo) return object; - let message = new $root.tabletmanagerdata.SchemaDefinition(); - if (object.database_schema != null) - message.database_schema = String(object.database_schema); - if (object.table_definitions) { - if (!Array.isArray(object.table_definitions)) - throw TypeError(".tabletmanagerdata.SchemaDefinition.table_definitions: array expected"); - message.table_definitions = []; - for (let i = 0; i < object.table_definitions.length; ++i) { - if (typeof object.table_definitions[i] !== "object") - throw TypeError(".tabletmanagerdata.SchemaDefinition.table_definitions: object expected"); - message.table_definitions[i] = $root.tabletmanagerdata.TableDefinition.fromObject(object.table_definitions[i]); - } - } + let message = new $root.topodata.CellInfo(); + if (object.server_address != null) + message.server_address = String(object.server_address); + if (object.root != null) + message.root = String(object.root); return message; }; /** - * Creates a plain object from a SchemaDefinition message. Also converts values to other types if specified. + * Creates a plain object from a CellInfo message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof topodata.CellInfo * @static - * @param {tabletmanagerdata.SchemaDefinition} message SchemaDefinition + * @param {topodata.CellInfo} message CellInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SchemaDefinition.toObject = function toObject(message, options) { + CellInfo.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.table_definitions = []; - if (options.defaults) - object.database_schema = ""; - if (message.database_schema != null && message.hasOwnProperty("database_schema")) - object.database_schema = message.database_schema; - if (message.table_definitions && message.table_definitions.length) { - object.table_definitions = []; - for (let j = 0; j < message.table_definitions.length; ++j) - object.table_definitions[j] = $root.tabletmanagerdata.TableDefinition.toObject(message.table_definitions[j], options); + if (options.defaults) { + object.server_address = ""; + object.root = ""; } + if (message.server_address != null && message.hasOwnProperty("server_address")) + object.server_address = message.server_address; + if (message.root != null && message.hasOwnProperty("root")) + object.root = message.root; return object; }; /** - * Converts this SchemaDefinition to JSON. + * Converts this CellInfo to JSON. * @function toJSON - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof topodata.CellInfo * @instance * @returns {Object.} JSON object */ - SchemaDefinition.prototype.toJSON = function toJSON() { + CellInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SchemaDefinition + * Gets the default type url for CellInfo * @function getTypeUrl - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof topodata.CellInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SchemaDefinition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CellInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.SchemaDefinition"; + return typeUrlPrefix + "/topodata.CellInfo"; }; - return SchemaDefinition; + return CellInfo; })(); - tabletmanagerdata.SchemaChangeResult = (function() { + topodata.CellsAlias = (function() { /** - * Properties of a SchemaChangeResult. - * @memberof tabletmanagerdata - * @interface ISchemaChangeResult - * @property {tabletmanagerdata.ISchemaDefinition|null} [before_schema] SchemaChangeResult before_schema - * @property {tabletmanagerdata.ISchemaDefinition|null} [after_schema] SchemaChangeResult after_schema + * Properties of a CellsAlias. + * @memberof topodata + * @interface ICellsAlias + * @property {Array.|null} [cells] CellsAlias cells */ /** - * Constructs a new SchemaChangeResult. - * @memberof tabletmanagerdata - * @classdesc Represents a SchemaChangeResult. - * @implements ISchemaChangeResult + * Constructs a new CellsAlias. + * @memberof topodata + * @classdesc Represents a CellsAlias. + * @implements ICellsAlias * @constructor - * @param {tabletmanagerdata.ISchemaChangeResult=} [properties] Properties to set + * @param {topodata.ICellsAlias=} [properties] Properties to set */ - function SchemaChangeResult(properties) { + function CellsAlias(properties) { + this.cells = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49121,89 +49200,78 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * SchemaChangeResult before_schema. - * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} before_schema - * @memberof tabletmanagerdata.SchemaChangeResult - * @instance - */ - SchemaChangeResult.prototype.before_schema = null; - - /** - * SchemaChangeResult after_schema. - * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} after_schema - * @memberof tabletmanagerdata.SchemaChangeResult + * CellsAlias cells. + * @member {Array.} cells + * @memberof topodata.CellsAlias * @instance */ - SchemaChangeResult.prototype.after_schema = null; + CellsAlias.prototype.cells = $util.emptyArray; /** - * Creates a new SchemaChangeResult instance using the specified properties. + * Creates a new CellsAlias instance using the specified properties. * @function create - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof topodata.CellsAlias * @static - * @param {tabletmanagerdata.ISchemaChangeResult=} [properties] Properties to set - * @returns {tabletmanagerdata.SchemaChangeResult} SchemaChangeResult instance + * @param {topodata.ICellsAlias=} [properties] Properties to set + * @returns {topodata.CellsAlias} CellsAlias instance */ - SchemaChangeResult.create = function create(properties) { - return new SchemaChangeResult(properties); + CellsAlias.create = function create(properties) { + return new CellsAlias(properties); }; /** - * Encodes the specified SchemaChangeResult message. Does not implicitly {@link tabletmanagerdata.SchemaChangeResult.verify|verify} messages. + * Encodes the specified CellsAlias message. Does not implicitly {@link topodata.CellsAlias.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof topodata.CellsAlias * @static - * @param {tabletmanagerdata.ISchemaChangeResult} message SchemaChangeResult message or plain object to encode + * @param {topodata.ICellsAlias} message CellsAlias message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SchemaChangeResult.encode = function encode(message, writer) { + CellsAlias.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.before_schema != null && Object.hasOwnProperty.call(message, "before_schema")) - $root.tabletmanagerdata.SchemaDefinition.encode(message.before_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.after_schema != null && Object.hasOwnProperty.call(message, "after_schema")) - $root.tabletmanagerdata.SchemaDefinition.encode(message.after_schema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); return writer; }; /** - * Encodes the specified SchemaChangeResult message, length delimited. Does not implicitly {@link tabletmanagerdata.SchemaChangeResult.verify|verify} messages. + * Encodes the specified CellsAlias message, length delimited. Does not implicitly {@link topodata.CellsAlias.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof topodata.CellsAlias * @static - * @param {tabletmanagerdata.ISchemaChangeResult} message SchemaChangeResult message or plain object to encode + * @param {topodata.ICellsAlias} message CellsAlias message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SchemaChangeResult.encodeDelimited = function encodeDelimited(message, writer) { + CellsAlias.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SchemaChangeResult message from the specified reader or buffer. + * Decodes a CellsAlias message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof topodata.CellsAlias * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.SchemaChangeResult} SchemaChangeResult + * @returns {topodata.CellsAlias} CellsAlias * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SchemaChangeResult.decode = function decode(reader, length) { + CellsAlias.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SchemaChangeResult(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.CellsAlias(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.before_schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); - break; - } case 2: { - message.after_schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; } default: @@ -49215,145 +49283,136 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a SchemaChangeResult message from the specified reader or buffer, length delimited. + * Decodes a CellsAlias message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof topodata.CellsAlias * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SchemaChangeResult} SchemaChangeResult + * @returns {topodata.CellsAlias} CellsAlias * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SchemaChangeResult.decodeDelimited = function decodeDelimited(reader) { + CellsAlias.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SchemaChangeResult message. + * Verifies a CellsAlias message. * @function verify - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof topodata.CellsAlias * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SchemaChangeResult.verify = function verify(message) { + CellsAlias.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.before_schema != null && message.hasOwnProperty("before_schema")) { - let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.before_schema); - if (error) - return "before_schema." + error; - } - if (message.after_schema != null && message.hasOwnProperty("after_schema")) { - let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.after_schema); - if (error) - return "after_schema." + error; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; } return null; }; /** - * Creates a SchemaChangeResult message from a plain object. Also converts values to their respective internal types. + * Creates a CellsAlias message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof topodata.CellsAlias * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SchemaChangeResult} SchemaChangeResult + * @returns {topodata.CellsAlias} CellsAlias */ - SchemaChangeResult.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SchemaChangeResult) + CellsAlias.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.CellsAlias) return object; - let message = new $root.tabletmanagerdata.SchemaChangeResult(); - if (object.before_schema != null) { - if (typeof object.before_schema !== "object") - throw TypeError(".tabletmanagerdata.SchemaChangeResult.before_schema: object expected"); - message.before_schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.before_schema); - } - if (object.after_schema != null) { - if (typeof object.after_schema !== "object") - throw TypeError(".tabletmanagerdata.SchemaChangeResult.after_schema: object expected"); - message.after_schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.after_schema); + let message = new $root.topodata.CellsAlias(); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".topodata.CellsAlias.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); } return message; }; /** - * Creates a plain object from a SchemaChangeResult message. Also converts values to other types if specified. + * Creates a plain object from a CellsAlias message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof topodata.CellsAlias * @static - * @param {tabletmanagerdata.SchemaChangeResult} message SchemaChangeResult + * @param {topodata.CellsAlias} message CellsAlias * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SchemaChangeResult.toObject = function toObject(message, options) { + CellsAlias.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.before_schema = null; - object.after_schema = null; + if (options.arrays || options.defaults) + object.cells = []; + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; } - if (message.before_schema != null && message.hasOwnProperty("before_schema")) - object.before_schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.before_schema, options); - if (message.after_schema != null && message.hasOwnProperty("after_schema")) - object.after_schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.after_schema, options); return object; }; /** - * Converts this SchemaChangeResult to JSON. + * Converts this CellsAlias to JSON. * @function toJSON - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof topodata.CellsAlias * @instance * @returns {Object.} JSON object */ - SchemaChangeResult.prototype.toJSON = function toJSON() { + CellsAlias.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SchemaChangeResult + * Gets the default type url for CellsAlias * @function getTypeUrl - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof topodata.CellsAlias * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SchemaChangeResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CellsAlias.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.SchemaChangeResult"; + return typeUrlPrefix + "/topodata.CellsAlias"; }; - return SchemaChangeResult; + return CellsAlias; })(); - tabletmanagerdata.UserPermission = (function() { + topodata.TopoConfig = (function() { /** - * Properties of a UserPermission. - * @memberof tabletmanagerdata - * @interface IUserPermission - * @property {string|null} [host] UserPermission host - * @property {string|null} [user] UserPermission user - * @property {number|Long|null} [password_checksum] UserPermission password_checksum - * @property {Object.|null} [privileges] UserPermission privileges + * Properties of a TopoConfig. + * @memberof topodata + * @interface ITopoConfig + * @property {string|null} [topo_type] TopoConfig topo_type + * @property {string|null} [server] TopoConfig server + * @property {string|null} [root] TopoConfig root */ /** - * Constructs a new UserPermission. - * @memberof tabletmanagerdata - * @classdesc Represents a UserPermission. - * @implements IUserPermission + * Constructs a new TopoConfig. + * @memberof topodata + * @classdesc Represents a TopoConfig. + * @implements ITopoConfig * @constructor - * @param {tabletmanagerdata.IUserPermission=} [properties] Properties to set + * @param {topodata.ITopoConfig=} [properties] Properties to set */ - function UserPermission(properties) { - this.privileges = {}; + function TopoConfig(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49361,137 +49420,103 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * UserPermission host. - * @member {string} host - * @memberof tabletmanagerdata.UserPermission - * @instance - */ - UserPermission.prototype.host = ""; - - /** - * UserPermission user. - * @member {string} user - * @memberof tabletmanagerdata.UserPermission + * TopoConfig topo_type. + * @member {string} topo_type + * @memberof topodata.TopoConfig * @instance */ - UserPermission.prototype.user = ""; + TopoConfig.prototype.topo_type = ""; /** - * UserPermission password_checksum. - * @member {number|Long} password_checksum - * @memberof tabletmanagerdata.UserPermission + * TopoConfig server. + * @member {string} server + * @memberof topodata.TopoConfig * @instance */ - UserPermission.prototype.password_checksum = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + TopoConfig.prototype.server = ""; /** - * UserPermission privileges. - * @member {Object.} privileges - * @memberof tabletmanagerdata.UserPermission + * TopoConfig root. + * @member {string} root + * @memberof topodata.TopoConfig * @instance */ - UserPermission.prototype.privileges = $util.emptyObject; + TopoConfig.prototype.root = ""; /** - * Creates a new UserPermission instance using the specified properties. + * Creates a new TopoConfig instance using the specified properties. * @function create - * @memberof tabletmanagerdata.UserPermission + * @memberof topodata.TopoConfig * @static - * @param {tabletmanagerdata.IUserPermission=} [properties] Properties to set - * @returns {tabletmanagerdata.UserPermission} UserPermission instance + * @param {topodata.ITopoConfig=} [properties] Properties to set + * @returns {topodata.TopoConfig} TopoConfig instance */ - UserPermission.create = function create(properties) { - return new UserPermission(properties); + TopoConfig.create = function create(properties) { + return new TopoConfig(properties); }; /** - * Encodes the specified UserPermission message. Does not implicitly {@link tabletmanagerdata.UserPermission.verify|verify} messages. + * Encodes the specified TopoConfig message. Does not implicitly {@link topodata.TopoConfig.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.UserPermission + * @memberof topodata.TopoConfig * @static - * @param {tabletmanagerdata.IUserPermission} message UserPermission message or plain object to encode + * @param {topodata.ITopoConfig} message TopoConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserPermission.encode = function encode(message, writer) { + TopoConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.host != null && Object.hasOwnProperty.call(message, "host")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.host); - if (message.user != null && Object.hasOwnProperty.call(message, "user")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.user); - if (message.password_checksum != null && Object.hasOwnProperty.call(message, "password_checksum")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.password_checksum); - if (message.privileges != null && Object.hasOwnProperty.call(message, "privileges")) - for (let keys = Object.keys(message.privileges), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.privileges[keys[i]]).ldelim(); + if (message.topo_type != null && Object.hasOwnProperty.call(message, "topo_type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topo_type); + if (message.server != null && Object.hasOwnProperty.call(message, "server")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.server); + if (message.root != null && Object.hasOwnProperty.call(message, "root")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.root); return writer; }; /** - * Encodes the specified UserPermission message, length delimited. Does not implicitly {@link tabletmanagerdata.UserPermission.verify|verify} messages. + * Encodes the specified TopoConfig message, length delimited. Does not implicitly {@link topodata.TopoConfig.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.UserPermission + * @memberof topodata.TopoConfig * @static - * @param {tabletmanagerdata.IUserPermission} message UserPermission message or plain object to encode + * @param {topodata.ITopoConfig} message TopoConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserPermission.encodeDelimited = function encodeDelimited(message, writer) { + TopoConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserPermission message from the specified reader or buffer. + * Decodes a TopoConfig message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.UserPermission + * @memberof topodata.TopoConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.UserPermission} UserPermission + * @returns {topodata.TopoConfig} TopoConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserPermission.decode = function decode(reader, length) { + TopoConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UserPermission(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.TopoConfig(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.host = reader.string(); + message.topo_type = reader.string(); break; } case 2: { - message.user = reader.string(); + message.server = reader.string(); break; } case 3: { - message.password_checksum = reader.uint64(); - break; - } - case 4: { - if (message.privileges === $util.emptyObject) - message.privileges = {}; - 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.privileges[key] = value; + message.root = reader.string(); break; } default: @@ -49503,180 +49528,139 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a UserPermission message from the specified reader or buffer, length delimited. + * Decodes a TopoConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.UserPermission + * @memberof topodata.TopoConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.UserPermission} UserPermission + * @returns {topodata.TopoConfig} TopoConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserPermission.decodeDelimited = function decodeDelimited(reader) { + TopoConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserPermission message. + * Verifies a TopoConfig message. * @function verify - * @memberof tabletmanagerdata.UserPermission + * @memberof topodata.TopoConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserPermission.verify = function verify(message) { + TopoConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.host != null && message.hasOwnProperty("host")) - if (!$util.isString(message.host)) - return "host: string expected"; - if (message.user != null && message.hasOwnProperty("user")) - if (!$util.isString(message.user)) - return "user: string expected"; - if (message.password_checksum != null && message.hasOwnProperty("password_checksum")) - if (!$util.isInteger(message.password_checksum) && !(message.password_checksum && $util.isInteger(message.password_checksum.low) && $util.isInteger(message.password_checksum.high))) - return "password_checksum: integer|Long expected"; - if (message.privileges != null && message.hasOwnProperty("privileges")) { - if (!$util.isObject(message.privileges)) - return "privileges: object expected"; - let key = Object.keys(message.privileges); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.privileges[key[i]])) - return "privileges: string{k:string} expected"; - } + if (message.topo_type != null && message.hasOwnProperty("topo_type")) + if (!$util.isString(message.topo_type)) + return "topo_type: string expected"; + if (message.server != null && message.hasOwnProperty("server")) + if (!$util.isString(message.server)) + return "server: string expected"; + if (message.root != null && message.hasOwnProperty("root")) + if (!$util.isString(message.root)) + return "root: string expected"; return null; }; /** - * Creates a UserPermission message from a plain object. Also converts values to their respective internal types. + * Creates a TopoConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.UserPermission + * @memberof topodata.TopoConfig * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.UserPermission} UserPermission + * @returns {topodata.TopoConfig} TopoConfig */ - UserPermission.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.UserPermission) + TopoConfig.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.TopoConfig) return object; - let message = new $root.tabletmanagerdata.UserPermission(); - if (object.host != null) - message.host = String(object.host); - if (object.user != null) - message.user = String(object.user); - if (object.password_checksum != null) - if ($util.Long) - (message.password_checksum = $util.Long.fromValue(object.password_checksum)).unsigned = true; - else if (typeof object.password_checksum === "string") - message.password_checksum = parseInt(object.password_checksum, 10); - else if (typeof object.password_checksum === "number") - message.password_checksum = object.password_checksum; - else if (typeof object.password_checksum === "object") - message.password_checksum = new $util.LongBits(object.password_checksum.low >>> 0, object.password_checksum.high >>> 0).toNumber(true); - if (object.privileges) { - if (typeof object.privileges !== "object") - throw TypeError(".tabletmanagerdata.UserPermission.privileges: object expected"); - message.privileges = {}; - for (let keys = Object.keys(object.privileges), i = 0; i < keys.length; ++i) - message.privileges[keys[i]] = String(object.privileges[keys[i]]); - } + let message = new $root.topodata.TopoConfig(); + if (object.topo_type != null) + message.topo_type = String(object.topo_type); + if (object.server != null) + message.server = String(object.server); + if (object.root != null) + message.root = String(object.root); return message; }; /** - * Creates a plain object from a UserPermission message. Also converts values to other types if specified. + * Creates a plain object from a TopoConfig message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.UserPermission + * @memberof topodata.TopoConfig * @static - * @param {tabletmanagerdata.UserPermission} message UserPermission + * @param {topodata.TopoConfig} message TopoConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserPermission.toObject = function toObject(message, options) { + TopoConfig.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.privileges = {}; if (options.defaults) { - object.host = ""; - object.user = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.password_checksum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.password_checksum = options.longs === String ? "0" : 0; - } - if (message.host != null && message.hasOwnProperty("host")) - object.host = message.host; - if (message.user != null && message.hasOwnProperty("user")) - object.user = message.user; - if (message.password_checksum != null && message.hasOwnProperty("password_checksum")) - if (typeof message.password_checksum === "number") - object.password_checksum = options.longs === String ? String(message.password_checksum) : message.password_checksum; - else - object.password_checksum = options.longs === String ? $util.Long.prototype.toString.call(message.password_checksum) : options.longs === Number ? new $util.LongBits(message.password_checksum.low >>> 0, message.password_checksum.high >>> 0).toNumber(true) : message.password_checksum; - let keys2; - if (message.privileges && (keys2 = Object.keys(message.privileges)).length) { - object.privileges = {}; - for (let j = 0; j < keys2.length; ++j) - object.privileges[keys2[j]] = message.privileges[keys2[j]]; + object.topo_type = ""; + object.server = ""; + object.root = ""; } + if (message.topo_type != null && message.hasOwnProperty("topo_type")) + object.topo_type = message.topo_type; + if (message.server != null && message.hasOwnProperty("server")) + object.server = message.server; + if (message.root != null && message.hasOwnProperty("root")) + object.root = message.root; return object; }; /** - * Converts this UserPermission to JSON. + * Converts this TopoConfig to JSON. * @function toJSON - * @memberof tabletmanagerdata.UserPermission + * @memberof topodata.TopoConfig * @instance * @returns {Object.} JSON object */ - UserPermission.prototype.toJSON = function toJSON() { + TopoConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UserPermission + * Gets the default type url for TopoConfig * @function getTypeUrl - * @memberof tabletmanagerdata.UserPermission + * @memberof topodata.TopoConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UserPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TopoConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.UserPermission"; + return typeUrlPrefix + "/topodata.TopoConfig"; }; - return UserPermission; + return TopoConfig; })(); - tabletmanagerdata.DbPermission = (function() { + topodata.ExternalVitessCluster = (function() { /** - * Properties of a DbPermission. - * @memberof tabletmanagerdata - * @interface IDbPermission - * @property {string|null} [host] DbPermission host - * @property {string|null} [db] DbPermission db - * @property {string|null} [user] DbPermission user - * @property {Object.|null} [privileges] DbPermission privileges + * Properties of an ExternalVitessCluster. + * @memberof topodata + * @interface IExternalVitessCluster + * @property {topodata.ITopoConfig|null} [topo_config] ExternalVitessCluster topo_config */ /** - * Constructs a new DbPermission. - * @memberof tabletmanagerdata - * @classdesc Represents a DbPermission. - * @implements IDbPermission + * Constructs a new ExternalVitessCluster. + * @memberof topodata + * @classdesc Represents an ExternalVitessCluster. + * @implements IExternalVitessCluster * @constructor - * @param {tabletmanagerdata.IDbPermission=} [properties] Properties to set + * @param {topodata.IExternalVitessCluster=} [properties] Properties to set */ - function DbPermission(properties) { - this.privileges = {}; + function ExternalVitessCluster(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49684,137 +49668,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * DbPermission host. - * @member {string} host - * @memberof tabletmanagerdata.DbPermission - * @instance - */ - DbPermission.prototype.host = ""; - - /** - * DbPermission db. - * @member {string} db - * @memberof tabletmanagerdata.DbPermission - * @instance - */ - DbPermission.prototype.db = ""; - - /** - * DbPermission user. - * @member {string} user - * @memberof tabletmanagerdata.DbPermission - * @instance - */ - DbPermission.prototype.user = ""; - - /** - * DbPermission privileges. - * @member {Object.} privileges - * @memberof tabletmanagerdata.DbPermission + * ExternalVitessCluster topo_config. + * @member {topodata.ITopoConfig|null|undefined} topo_config + * @memberof topodata.ExternalVitessCluster * @instance */ - DbPermission.prototype.privileges = $util.emptyObject; + ExternalVitessCluster.prototype.topo_config = null; /** - * Creates a new DbPermission instance using the specified properties. + * Creates a new ExternalVitessCluster instance using the specified properties. * @function create - * @memberof tabletmanagerdata.DbPermission + * @memberof topodata.ExternalVitessCluster * @static - * @param {tabletmanagerdata.IDbPermission=} [properties] Properties to set - * @returns {tabletmanagerdata.DbPermission} DbPermission instance + * @param {topodata.IExternalVitessCluster=} [properties] Properties to set + * @returns {topodata.ExternalVitessCluster} ExternalVitessCluster instance */ - DbPermission.create = function create(properties) { - return new DbPermission(properties); + ExternalVitessCluster.create = function create(properties) { + return new ExternalVitessCluster(properties); }; /** - * Encodes the specified DbPermission message. Does not implicitly {@link tabletmanagerdata.DbPermission.verify|verify} messages. + * Encodes the specified ExternalVitessCluster message. Does not implicitly {@link topodata.ExternalVitessCluster.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.DbPermission + * @memberof topodata.ExternalVitessCluster * @static - * @param {tabletmanagerdata.IDbPermission} message DbPermission message or plain object to encode + * @param {topodata.IExternalVitessCluster} message ExternalVitessCluster message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DbPermission.encode = function encode(message, writer) { + ExternalVitessCluster.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.host != null && Object.hasOwnProperty.call(message, "host")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.host); - if (message.db != null && Object.hasOwnProperty.call(message, "db")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.db); - if (message.user != null && Object.hasOwnProperty.call(message, "user")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.user); - if (message.privileges != null && Object.hasOwnProperty.call(message, "privileges")) - for (let keys = Object.keys(message.privileges), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.privileges[keys[i]]).ldelim(); + if (message.topo_config != null && Object.hasOwnProperty.call(message, "topo_config")) + $root.topodata.TopoConfig.encode(message.topo_config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DbPermission message, length delimited. Does not implicitly {@link tabletmanagerdata.DbPermission.verify|verify} messages. + * Encodes the specified ExternalVitessCluster message, length delimited. Does not implicitly {@link topodata.ExternalVitessCluster.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.DbPermission + * @memberof topodata.ExternalVitessCluster * @static - * @param {tabletmanagerdata.IDbPermission} message DbPermission message or plain object to encode + * @param {topodata.IExternalVitessCluster} message ExternalVitessCluster message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DbPermission.encodeDelimited = function encodeDelimited(message, writer) { + ExternalVitessCluster.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DbPermission message from the specified reader or buffer. + * Decodes an ExternalVitessCluster message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.DbPermission + * @memberof topodata.ExternalVitessCluster * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.DbPermission} DbPermission + * @returns {topodata.ExternalVitessCluster} ExternalVitessCluster * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DbPermission.decode = function decode(reader, length) { + ExternalVitessCluster.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DbPermission(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ExternalVitessCluster(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.host = reader.string(); - break; - } - case 2: { - message.db = reader.string(); - break; - } - case 3: { - message.user = reader.string(); - break; - } - case 4: { - if (message.privileges === $util.emptyObject) - message.privileges = {}; - 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.privileges[key] = value; + message.topo_config = $root.topodata.TopoConfig.decode(reader, reader.uint32()); break; } default: @@ -49826,165 +49748,128 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a DbPermission message from the specified reader or buffer, length delimited. + * Decodes an ExternalVitessCluster message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.DbPermission + * @memberof topodata.ExternalVitessCluster * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.DbPermission} DbPermission + * @returns {topodata.ExternalVitessCluster} ExternalVitessCluster * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DbPermission.decodeDelimited = function decodeDelimited(reader) { + ExternalVitessCluster.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DbPermission message. + * Verifies an ExternalVitessCluster message. * @function verify - * @memberof tabletmanagerdata.DbPermission + * @memberof topodata.ExternalVitessCluster * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DbPermission.verify = function verify(message) { + ExternalVitessCluster.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.host != null && message.hasOwnProperty("host")) - if (!$util.isString(message.host)) - return "host: string expected"; - if (message.db != null && message.hasOwnProperty("db")) - if (!$util.isString(message.db)) - return "db: string expected"; - if (message.user != null && message.hasOwnProperty("user")) - if (!$util.isString(message.user)) - return "user: string expected"; - if (message.privileges != null && message.hasOwnProperty("privileges")) { - if (!$util.isObject(message.privileges)) - return "privileges: object expected"; - let key = Object.keys(message.privileges); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.privileges[key[i]])) - return "privileges: string{k:string} expected"; + if (message.topo_config != null && message.hasOwnProperty("topo_config")) { + let error = $root.topodata.TopoConfig.verify(message.topo_config); + if (error) + return "topo_config." + error; } return null; }; /** - * Creates a DbPermission message from a plain object. Also converts values to their respective internal types. + * Creates an ExternalVitessCluster message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.DbPermission + * @memberof topodata.ExternalVitessCluster * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.DbPermission} DbPermission + * @returns {topodata.ExternalVitessCluster} ExternalVitessCluster */ - DbPermission.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.DbPermission) + ExternalVitessCluster.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.ExternalVitessCluster) return object; - let message = new $root.tabletmanagerdata.DbPermission(); - if (object.host != null) - message.host = String(object.host); - if (object.db != null) - message.db = String(object.db); - if (object.user != null) - message.user = String(object.user); - if (object.privileges) { - if (typeof object.privileges !== "object") - throw TypeError(".tabletmanagerdata.DbPermission.privileges: object expected"); - message.privileges = {}; - for (let keys = Object.keys(object.privileges), i = 0; i < keys.length; ++i) - message.privileges[keys[i]] = String(object.privileges[keys[i]]); + let message = new $root.topodata.ExternalVitessCluster(); + if (object.topo_config != null) { + if (typeof object.topo_config !== "object") + throw TypeError(".topodata.ExternalVitessCluster.topo_config: object expected"); + message.topo_config = $root.topodata.TopoConfig.fromObject(object.topo_config); } return message; }; /** - * Creates a plain object from a DbPermission message. Also converts values to other types if specified. + * Creates a plain object from an ExternalVitessCluster message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.DbPermission + * @memberof topodata.ExternalVitessCluster * @static - * @param {tabletmanagerdata.DbPermission} message DbPermission + * @param {topodata.ExternalVitessCluster} message ExternalVitessCluster * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DbPermission.toObject = function toObject(message, options) { + ExternalVitessCluster.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.privileges = {}; - if (options.defaults) { - object.host = ""; - object.db = ""; - object.user = ""; - } - if (message.host != null && message.hasOwnProperty("host")) - object.host = message.host; - if (message.db != null && message.hasOwnProperty("db")) - object.db = message.db; - if (message.user != null && message.hasOwnProperty("user")) - object.user = message.user; - let keys2; - if (message.privileges && (keys2 = Object.keys(message.privileges)).length) { - object.privileges = {}; - for (let j = 0; j < keys2.length; ++j) - object.privileges[keys2[j]] = message.privileges[keys2[j]]; - } + if (options.defaults) + object.topo_config = null; + if (message.topo_config != null && message.hasOwnProperty("topo_config")) + object.topo_config = $root.topodata.TopoConfig.toObject(message.topo_config, options); return object; }; /** - * Converts this DbPermission to JSON. + * Converts this ExternalVitessCluster to JSON. * @function toJSON - * @memberof tabletmanagerdata.DbPermission + * @memberof topodata.ExternalVitessCluster * @instance * @returns {Object.} JSON object */ - DbPermission.prototype.toJSON = function toJSON() { + ExternalVitessCluster.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DbPermission + * Gets the default type url for ExternalVitessCluster * @function getTypeUrl - * @memberof tabletmanagerdata.DbPermission + * @memberof topodata.ExternalVitessCluster * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DbPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExternalVitessCluster.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.DbPermission"; + return typeUrlPrefix + "/topodata.ExternalVitessCluster"; }; - return DbPermission; + return ExternalVitessCluster; })(); - tabletmanagerdata.Permissions = (function() { + topodata.ExternalClusters = (function() { /** - * Properties of a Permissions. - * @memberof tabletmanagerdata - * @interface IPermissions - * @property {Array.|null} [user_permissions] Permissions user_permissions - * @property {Array.|null} [db_permissions] Permissions db_permissions + * Properties of an ExternalClusters. + * @memberof topodata + * @interface IExternalClusters + * @property {Array.|null} [vitess_cluster] ExternalClusters vitess_cluster */ /** - * Constructs a new Permissions. - * @memberof tabletmanagerdata - * @classdesc Represents a Permissions. - * @implements IPermissions + * Constructs a new ExternalClusters. + * @memberof topodata + * @classdesc Represents an ExternalClusters. + * @implements IExternalClusters * @constructor - * @param {tabletmanagerdata.IPermissions=} [properties] Properties to set + * @param {topodata.IExternalClusters=} [properties] Properties to set */ - function Permissions(properties) { - this.user_permissions = []; - this.db_permissions = []; + function ExternalClusters(properties) { + this.vitess_cluster = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49992,95 +49877,78 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Permissions user_permissions. - * @member {Array.} user_permissions - * @memberof tabletmanagerdata.Permissions - * @instance - */ - Permissions.prototype.user_permissions = $util.emptyArray; - - /** - * Permissions db_permissions. - * @member {Array.} db_permissions - * @memberof tabletmanagerdata.Permissions + * ExternalClusters vitess_cluster. + * @member {Array.} vitess_cluster + * @memberof topodata.ExternalClusters * @instance */ - Permissions.prototype.db_permissions = $util.emptyArray; + ExternalClusters.prototype.vitess_cluster = $util.emptyArray; /** - * Creates a new Permissions instance using the specified properties. + * Creates a new ExternalClusters instance using the specified properties. * @function create - * @memberof tabletmanagerdata.Permissions + * @memberof topodata.ExternalClusters * @static - * @param {tabletmanagerdata.IPermissions=} [properties] Properties to set - * @returns {tabletmanagerdata.Permissions} Permissions instance + * @param {topodata.IExternalClusters=} [properties] Properties to set + * @returns {topodata.ExternalClusters} ExternalClusters instance */ - Permissions.create = function create(properties) { - return new Permissions(properties); + ExternalClusters.create = function create(properties) { + return new ExternalClusters(properties); }; /** - * Encodes the specified Permissions message. Does not implicitly {@link tabletmanagerdata.Permissions.verify|verify} messages. + * Encodes the specified ExternalClusters message. Does not implicitly {@link topodata.ExternalClusters.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.Permissions + * @memberof topodata.ExternalClusters * @static - * @param {tabletmanagerdata.IPermissions} message Permissions message or plain object to encode + * @param {topodata.IExternalClusters} message ExternalClusters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Permissions.encode = function encode(message, writer) { + ExternalClusters.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.user_permissions != null && message.user_permissions.length) - for (let i = 0; i < message.user_permissions.length; ++i) - $root.tabletmanagerdata.UserPermission.encode(message.user_permissions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.db_permissions != null && message.db_permissions.length) - for (let i = 0; i < message.db_permissions.length; ++i) - $root.tabletmanagerdata.DbPermission.encode(message.db_permissions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.vitess_cluster != null && message.vitess_cluster.length) + for (let i = 0; i < message.vitess_cluster.length; ++i) + $root.topodata.ExternalVitessCluster.encode(message.vitess_cluster[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Permissions message, length delimited. Does not implicitly {@link tabletmanagerdata.Permissions.verify|verify} messages. + * Encodes the specified ExternalClusters message, length delimited. Does not implicitly {@link topodata.ExternalClusters.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.Permissions + * @memberof topodata.ExternalClusters * @static - * @param {tabletmanagerdata.IPermissions} message Permissions message or plain object to encode + * @param {topodata.IExternalClusters} message ExternalClusters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Permissions.encodeDelimited = function encodeDelimited(message, writer) { + ExternalClusters.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Permissions message from the specified reader or buffer. + * Decodes an ExternalClusters message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.Permissions + * @memberof topodata.ExternalClusters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.Permissions} Permissions + * @returns {topodata.ExternalClusters} ExternalClusters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Permissions.decode = function decode(reader, length) { + ExternalClusters.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.Permissions(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ExternalClusters(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.user_permissions && message.user_permissions.length)) - message.user_permissions = []; - message.user_permissions.push($root.tabletmanagerdata.UserPermission.decode(reader, reader.uint32())); - break; - } - case 2: { - if (!(message.db_permissions && message.db_permissions.length)) - message.db_permissions = []; - message.db_permissions.push($root.tabletmanagerdata.DbPermission.decode(reader, reader.uint32())); + if (!(message.vitess_cluster && message.vitess_cluster.length)) + message.vitess_cluster = []; + message.vitess_cluster.push($root.topodata.ExternalVitessCluster.decode(reader, reader.uint32())); break; } default: @@ -50092,165 +49960,155 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a Permissions message from the specified reader or buffer, length delimited. + * Decodes an ExternalClusters message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.Permissions + * @memberof topodata.ExternalClusters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.Permissions} Permissions + * @returns {topodata.ExternalClusters} ExternalClusters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Permissions.decodeDelimited = function decodeDelimited(reader) { + ExternalClusters.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Permissions message. + * Verifies an ExternalClusters message. * @function verify - * @memberof tabletmanagerdata.Permissions + * @memberof topodata.ExternalClusters * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Permissions.verify = function verify(message) { + ExternalClusters.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.user_permissions != null && message.hasOwnProperty("user_permissions")) { - if (!Array.isArray(message.user_permissions)) - return "user_permissions: array expected"; - for (let i = 0; i < message.user_permissions.length; ++i) { - let error = $root.tabletmanagerdata.UserPermission.verify(message.user_permissions[i]); - if (error) - return "user_permissions." + error; - } - } - if (message.db_permissions != null && message.hasOwnProperty("db_permissions")) { - if (!Array.isArray(message.db_permissions)) - return "db_permissions: array expected"; - for (let i = 0; i < message.db_permissions.length; ++i) { - let error = $root.tabletmanagerdata.DbPermission.verify(message.db_permissions[i]); + if (message.vitess_cluster != null && message.hasOwnProperty("vitess_cluster")) { + if (!Array.isArray(message.vitess_cluster)) + return "vitess_cluster: array expected"; + for (let i = 0; i < message.vitess_cluster.length; ++i) { + let error = $root.topodata.ExternalVitessCluster.verify(message.vitess_cluster[i]); if (error) - return "db_permissions." + error; + return "vitess_cluster." + error; } } return null; }; /** - * Creates a Permissions message from a plain object. Also converts values to their respective internal types. + * Creates an ExternalClusters message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.Permissions + * @memberof topodata.ExternalClusters * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.Permissions} Permissions + * @returns {topodata.ExternalClusters} ExternalClusters */ - Permissions.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.Permissions) + ExternalClusters.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.ExternalClusters) return object; - let message = new $root.tabletmanagerdata.Permissions(); - if (object.user_permissions) { - if (!Array.isArray(object.user_permissions)) - throw TypeError(".tabletmanagerdata.Permissions.user_permissions: array expected"); - message.user_permissions = []; - for (let i = 0; i < object.user_permissions.length; ++i) { - if (typeof object.user_permissions[i] !== "object") - throw TypeError(".tabletmanagerdata.Permissions.user_permissions: object expected"); - message.user_permissions[i] = $root.tabletmanagerdata.UserPermission.fromObject(object.user_permissions[i]); - } - } - if (object.db_permissions) { - if (!Array.isArray(object.db_permissions)) - throw TypeError(".tabletmanagerdata.Permissions.db_permissions: array expected"); - message.db_permissions = []; - for (let i = 0; i < object.db_permissions.length; ++i) { - if (typeof object.db_permissions[i] !== "object") - throw TypeError(".tabletmanagerdata.Permissions.db_permissions: object expected"); - message.db_permissions[i] = $root.tabletmanagerdata.DbPermission.fromObject(object.db_permissions[i]); + let message = new $root.topodata.ExternalClusters(); + if (object.vitess_cluster) { + if (!Array.isArray(object.vitess_cluster)) + throw TypeError(".topodata.ExternalClusters.vitess_cluster: array expected"); + message.vitess_cluster = []; + for (let i = 0; i < object.vitess_cluster.length; ++i) { + if (typeof object.vitess_cluster[i] !== "object") + throw TypeError(".topodata.ExternalClusters.vitess_cluster: object expected"); + message.vitess_cluster[i] = $root.topodata.ExternalVitessCluster.fromObject(object.vitess_cluster[i]); } } return message; }; /** - * Creates a plain object from a Permissions message. Also converts values to other types if specified. + * Creates a plain object from an ExternalClusters message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.Permissions + * @memberof topodata.ExternalClusters * @static - * @param {tabletmanagerdata.Permissions} message Permissions + * @param {topodata.ExternalClusters} message ExternalClusters * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Permissions.toObject = function toObject(message, options) { + ExternalClusters.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.user_permissions = []; - object.db_permissions = []; - } - if (message.user_permissions && message.user_permissions.length) { - object.user_permissions = []; - for (let j = 0; j < message.user_permissions.length; ++j) - object.user_permissions[j] = $root.tabletmanagerdata.UserPermission.toObject(message.user_permissions[j], options); - } - if (message.db_permissions && message.db_permissions.length) { - object.db_permissions = []; - for (let j = 0; j < message.db_permissions.length; ++j) - object.db_permissions[j] = $root.tabletmanagerdata.DbPermission.toObject(message.db_permissions[j], options); + if (options.arrays || options.defaults) + object.vitess_cluster = []; + if (message.vitess_cluster && message.vitess_cluster.length) { + object.vitess_cluster = []; + for (let j = 0; j < message.vitess_cluster.length; ++j) + object.vitess_cluster[j] = $root.topodata.ExternalVitessCluster.toObject(message.vitess_cluster[j], options); } return object; }; /** - * Converts this Permissions to JSON. + * Converts this ExternalClusters to JSON. * @function toJSON - * @memberof tabletmanagerdata.Permissions + * @memberof topodata.ExternalClusters * @instance * @returns {Object.} JSON object */ - Permissions.prototype.toJSON = function toJSON() { + ExternalClusters.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Permissions + * Gets the default type url for ExternalClusters * @function getTypeUrl - * @memberof tabletmanagerdata.Permissions + * @memberof topodata.ExternalClusters * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Permissions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExternalClusters.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.Permissions"; + return typeUrlPrefix + "/topodata.ExternalClusters"; }; - return Permissions; + return ExternalClusters; })(); - tabletmanagerdata.PingRequest = (function() { + return topodata; +})(); + +export const vtrpc = $root.vtrpc = (() => { + + /** + * Namespace vtrpc. + * @exports vtrpc + * @namespace + */ + const vtrpc = {}; + + vtrpc.CallerID = (function() { /** - * Properties of a PingRequest. - * @memberof tabletmanagerdata - * @interface IPingRequest - * @property {string|null} [payload] PingRequest payload + * 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 PingRequest. - * @memberof tabletmanagerdata - * @classdesc Represents a PingRequest. - * @implements IPingRequest + * Constructs a new CallerID. + * @memberof vtrpc + * @classdesc Represents a CallerID. + * @implements ICallerID * @constructor - * @param {tabletmanagerdata.IPingRequest=} [properties] Properties to set + * @param {vtrpc.ICallerID=} [properties] Properties to set */ - function PingRequest(properties) { + function CallerID(properties) { + this.groups = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50258,75 +50116,120 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * PingRequest payload. - * @member {string} payload - * @memberof tabletmanagerdata.PingRequest + * CallerID principal. + * @member {string} principal + * @memberof vtrpc.CallerID * @instance */ - PingRequest.prototype.payload = ""; + CallerID.prototype.principal = ""; /** - * Creates a new PingRequest instance using the specified properties. + * CallerID component. + * @member {string} component + * @memberof vtrpc.CallerID + * @instance + */ + CallerID.prototype.component = ""; + + /** + * CallerID subcomponent. + * @member {string} subcomponent + * @memberof vtrpc.CallerID + * @instance + */ + CallerID.prototype.subcomponent = ""; + + /** + * CallerID groups. + * @member {Array.} groups + * @memberof vtrpc.CallerID + * @instance + */ + CallerID.prototype.groups = $util.emptyArray; + + /** + * Creates a new CallerID instance using the specified properties. * @function create - * @memberof tabletmanagerdata.PingRequest + * @memberof vtrpc.CallerID * @static - * @param {tabletmanagerdata.IPingRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.PingRequest} PingRequest instance + * @param {vtrpc.ICallerID=} [properties] Properties to set + * @returns {vtrpc.CallerID} CallerID instance */ - PingRequest.create = function create(properties) { - return new PingRequest(properties); + CallerID.create = function create(properties) { + return new CallerID(properties); }; /** - * Encodes the specified PingRequest message. Does not implicitly {@link tabletmanagerdata.PingRequest.verify|verify} messages. + * Encodes the specified CallerID message. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.PingRequest + * @memberof vtrpc.CallerID * @static - * @param {tabletmanagerdata.IPingRequest} message PingRequest message or plain object to encode + * @param {vtrpc.ICallerID} message CallerID message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PingRequest.encode = function encode(message, writer) { + CallerID.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.payload); + 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 (let i = 0; i < message.groups.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.groups[i]); return writer; }; /** - * Encodes the specified PingRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PingRequest.verify|verify} messages. + * Encodes the specified CallerID message, length delimited. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.PingRequest + * @memberof vtrpc.CallerID * @static - * @param {tabletmanagerdata.IPingRequest} message PingRequest message or plain object to encode + * @param {vtrpc.ICallerID} message CallerID message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PingRequest.encodeDelimited = function encodeDelimited(message, writer) { + CallerID.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PingRequest message from the specified reader or buffer. + * Decodes a CallerID message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.PingRequest + * @memberof vtrpc.CallerID * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.PingRequest} PingRequest + * @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 */ - PingRequest.decode = function decode(reader, length) { + CallerID.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PingRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtrpc.CallerID(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.payload = reader.string(); + 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: @@ -50338,122 +50241,209 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a PingRequest message from the specified reader or buffer, length delimited. + * Decodes a CallerID message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.PingRequest + * @memberof vtrpc.CallerID * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.PingRequest} PingRequest + * @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 */ - PingRequest.decodeDelimited = function decodeDelimited(reader) { + CallerID.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PingRequest message. + * Verifies a CallerID message. * @function verify - * @memberof tabletmanagerdata.PingRequest + * @memberof vtrpc.CallerID * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PingRequest.verify = function verify(message) { + CallerID.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.payload != null && message.hasOwnProperty("payload")) - if (!$util.isString(message.payload)) - return "payload: string 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 (let i = 0; i < message.groups.length; ++i) + if (!$util.isString(message.groups[i])) + return "groups: string[] expected"; + } return null; }; /** - * Creates a PingRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CallerID message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.PingRequest + * @memberof vtrpc.CallerID * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.PingRequest} PingRequest + * @returns {vtrpc.CallerID} CallerID */ - PingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.PingRequest) + CallerID.fromObject = function fromObject(object) { + if (object instanceof $root.vtrpc.CallerID) return object; - let message = new $root.tabletmanagerdata.PingRequest(); - if (object.payload != null) - message.payload = String(object.payload); + let 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 (let i = 0; i < object.groups.length; ++i) + message.groups[i] = String(object.groups[i]); + } return message; }; /** - * Creates a plain object from a PingRequest message. Also converts values to other types if specified. + * Creates a plain object from a CallerID message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.PingRequest + * @memberof vtrpc.CallerID * @static - * @param {tabletmanagerdata.PingRequest} message PingRequest + * @param {vtrpc.CallerID} message CallerID * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PingRequest.toObject = function toObject(message, options) { + CallerID.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.payload = ""; - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = message.payload; + 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 (let j = 0; j < message.groups.length; ++j) + object.groups[j] = message.groups[j]; + } return object; }; /** - * Converts this PingRequest to JSON. + * Converts this CallerID to JSON. * @function toJSON - * @memberof tabletmanagerdata.PingRequest + * @memberof vtrpc.CallerID * @instance * @returns {Object.} JSON object */ - PingRequest.prototype.toJSON = function toJSON() { + CallerID.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PingRequest + * Gets the default type url for CallerID * @function getTypeUrl - * @memberof tabletmanagerdata.PingRequest + * @memberof vtrpc.CallerID * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CallerID.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.PingRequest"; + return typeUrlPrefix + "/vtrpc.CallerID"; }; - return PingRequest; + return CallerID; })(); - tabletmanagerdata.PingResponse = (function() { + /** + * Code enum. + * @name vtrpc.Code + * @enum {number} + * @property {number} OK=0 OK value + * @property {number} CANCELED=1 CANCELED value + * @property {number} UNKNOWN=2 UNKNOWN value + * @property {number} INVALID_ARGUMENT=3 INVALID_ARGUMENT value + * @property {number} DEADLINE_EXCEEDED=4 DEADLINE_EXCEEDED value + * @property {number} NOT_FOUND=5 NOT_FOUND value + * @property {number} ALREADY_EXISTS=6 ALREADY_EXISTS value + * @property {number} PERMISSION_DENIED=7 PERMISSION_DENIED value + * @property {number} RESOURCE_EXHAUSTED=8 RESOURCE_EXHAUSTED value + * @property {number} FAILED_PRECONDITION=9 FAILED_PRECONDITION value + * @property {number} ABORTED=10 ABORTED value + * @property {number} OUT_OF_RANGE=11 OUT_OF_RANGE value + * @property {number} UNIMPLEMENTED=12 UNIMPLEMENTED value + * @property {number} INTERNAL=13 INTERNAL value + * @property {number} UNAVAILABLE=14 UNAVAILABLE value + * @property {number} DATA_LOSS=15 DATA_LOSS value + * @property {number} UNAUTHENTICATED=16 UNAUTHENTICATED value + * @property {number} CLUSTER_EVENT=17 CLUSTER_EVENT value + * @property {number} READ_ONLY=18 READ_ONLY value + */ + vtrpc.Code = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OK"] = 0; + values[valuesById[1] = "CANCELED"] = 1; + values[valuesById[2] = "UNKNOWN"] = 2; + values[valuesById[3] = "INVALID_ARGUMENT"] = 3; + values[valuesById[4] = "DEADLINE_EXCEEDED"] = 4; + values[valuesById[5] = "NOT_FOUND"] = 5; + values[valuesById[6] = "ALREADY_EXISTS"] = 6; + values[valuesById[7] = "PERMISSION_DENIED"] = 7; + values[valuesById[8] = "RESOURCE_EXHAUSTED"] = 8; + values[valuesById[9] = "FAILED_PRECONDITION"] = 9; + values[valuesById[10] = "ABORTED"] = 10; + values[valuesById[11] = "OUT_OF_RANGE"] = 11; + values[valuesById[12] = "UNIMPLEMENTED"] = 12; + values[valuesById[13] = "INTERNAL"] = 13; + values[valuesById[14] = "UNAVAILABLE"] = 14; + values[valuesById[15] = "DATA_LOSS"] = 15; + values[valuesById[16] = "UNAUTHENTICATED"] = 16; + values[valuesById[17] = "CLUSTER_EVENT"] = 17; + values[valuesById[18] = "READ_ONLY"] = 18; + return values; + })(); + + vtrpc.RPCError = (function() { /** - * Properties of a PingResponse. - * @memberof tabletmanagerdata - * @interface IPingResponse - * @property {string|null} [payload] PingResponse payload + * Properties of a RPCError. + * @memberof vtrpc + * @interface IRPCError + * @property {string|null} [message] RPCError message + * @property {vtrpc.Code|null} [code] RPCError code */ /** - * Constructs a new PingResponse. - * @memberof tabletmanagerdata - * @classdesc Represents a PingResponse. - * @implements IPingResponse + * Constructs a new RPCError. + * @memberof vtrpc + * @classdesc Represents a RPCError. + * @implements IRPCError * @constructor - * @param {tabletmanagerdata.IPingResponse=} [properties] Properties to set + * @param {vtrpc.IRPCError=} [properties] Properties to set */ - function PingResponse(properties) { + function RPCError(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50461,75 +50451,89 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * PingResponse payload. - * @member {string} payload - * @memberof tabletmanagerdata.PingResponse + * RPCError message. + * @member {string} message + * @memberof vtrpc.RPCError * @instance */ - PingResponse.prototype.payload = ""; + RPCError.prototype.message = ""; /** - * Creates a new PingResponse instance using the specified properties. + * RPCError code. + * @member {vtrpc.Code} code + * @memberof vtrpc.RPCError + * @instance + */ + RPCError.prototype.code = 0; + + /** + * Creates a new RPCError instance using the specified properties. * @function create - * @memberof tabletmanagerdata.PingResponse + * @memberof vtrpc.RPCError * @static - * @param {tabletmanagerdata.IPingResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.PingResponse} PingResponse instance + * @param {vtrpc.IRPCError=} [properties] Properties to set + * @returns {vtrpc.RPCError} RPCError instance */ - PingResponse.create = function create(properties) { - return new PingResponse(properties); + RPCError.create = function create(properties) { + return new RPCError(properties); }; /** - * Encodes the specified PingResponse message. Does not implicitly {@link tabletmanagerdata.PingResponse.verify|verify} messages. + * Encodes the specified RPCError message. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.PingResponse + * @memberof vtrpc.RPCError * @static - * @param {tabletmanagerdata.IPingResponse} message PingResponse 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 */ - PingResponse.encode = function encode(message, writer) { + RPCError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.payload); + 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 PingResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PingResponse.verify|verify} messages. + * Encodes the specified RPCError message, length delimited. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.PingResponse + * @memberof vtrpc.RPCError * @static - * @param {tabletmanagerdata.IPingResponse} message PingResponse 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 */ - PingResponse.encodeDelimited = function encodeDelimited(message, writer) { + RPCError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PingResponse message from the specified reader or buffer. + * Decodes a RPCError message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.PingResponse + * @memberof vtrpc.RPCError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.PingResponse} PingResponse + * @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 */ - PingResponse.decode = function decode(reader, length) { + RPCError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PingResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtrpc.RPCError(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.payload = reader.string(); + case 2: { + message.message = reader.string(); + break; + } + case 3: { + message.code = reader.int32(); break; } default: @@ -50541,122 +50545,273 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a PingResponse message from the specified reader or buffer, length delimited. + * Decodes a RPCError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.PingResponse + * @memberof vtrpc.RPCError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.PingResponse} PingResponse + * @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 */ - PingResponse.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 PingResponse message. + * Verifies a RPCError message. * @function verify - * @memberof tabletmanagerdata.PingResponse + * @memberof vtrpc.RPCError * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PingResponse.verify = function verify(message) { + RPCError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.payload != null && message.hasOwnProperty("payload")) - if (!$util.isString(message.payload)) - return "payload: string 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 PingResponse 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 tabletmanagerdata.PingResponse + * @memberof vtrpc.RPCError * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.PingResponse} PingResponse + * @returns {vtrpc.RPCError} RPCError */ - PingResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.PingResponse) + RPCError.fromObject = function fromObject(object) { + if (object instanceof $root.vtrpc.RPCError) return object; - let message = new $root.tabletmanagerdata.PingResponse(); - if (object.payload != null) - message.payload = String(object.payload); + let message = new $root.vtrpc.RPCError(); + if (object.message != null) + message.message = String(object.message); + switch (object.code) { + default: + if (typeof object.code === "number") { + message.code = object.code; + break; + } + break; + 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 PingResponse message. Also converts values to other types if specified. + * Creates a plain object from a RPCError message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.PingResponse + * @memberof vtrpc.RPCError * @static - * @param {tabletmanagerdata.PingResponse} message PingResponse + * @param {vtrpc.RPCError} message RPCError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PingResponse.toObject = function toObject(message, options) { + RPCError.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.payload = ""; - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = message.payload; + if (options.defaults) { + object.message = ""; + object.code = options.enums === String ? "OK" : 0; + } + 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] === undefined ? message.code : $root.vtrpc.Code[message.code] : message.code; return object; }; /** - * Converts this PingResponse to JSON. + * Converts this RPCError to JSON. * @function toJSON - * @memberof tabletmanagerdata.PingResponse + * @memberof vtrpc.RPCError * @instance * @returns {Object.} JSON object */ - PingResponse.prototype.toJSON = function toJSON() { + RPCError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PingResponse + * Gets the default type url for RPCError * @function getTypeUrl - * @memberof tabletmanagerdata.PingResponse + * @memberof vtrpc.RPCError * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PingResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RPCError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.PingResponse"; + return typeUrlPrefix + "/vtrpc.RPCError"; }; - return PingResponse; + return RPCError; })(); - tabletmanagerdata.SleepRequest = (function() { + return vtrpc; +})(); + +export const tabletmanagerdata = $root.tabletmanagerdata = (() => { + + /** + * Namespace tabletmanagerdata. + * @exports tabletmanagerdata + * @namespace + */ + const tabletmanagerdata = {}; + + /** + * TabletSelectionPreference enum. + * @name tabletmanagerdata.TabletSelectionPreference + * @enum {number} + * @property {number} ANY=0 ANY value + * @property {number} INORDER=1 INORDER value + * @property {number} UNKNOWN=3 UNKNOWN value + */ + tabletmanagerdata.TabletSelectionPreference = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ANY"] = 0; + values[valuesById[1] = "INORDER"] = 1; + values[valuesById[3] = "UNKNOWN"] = 3; + return values; + })(); + + tabletmanagerdata.TableDefinition = (function() { /** - * Properties of a SleepRequest. + * Properties of a TableDefinition. * @memberof tabletmanagerdata - * @interface ISleepRequest - * @property {number|Long|null} [duration] SleepRequest duration + * @interface ITableDefinition + * @property {string|null} [name] TableDefinition name + * @property {string|null} [schema] TableDefinition schema + * @property {Array.|null} [columns] TableDefinition columns + * @property {Array.|null} [primary_key_columns] TableDefinition primary_key_columns + * @property {string|null} [type] TableDefinition type + * @property {number|Long|null} [data_length] TableDefinition data_length + * @property {number|Long|null} [row_count] TableDefinition row_count + * @property {Array.|null} [fields] TableDefinition fields */ /** - * Constructs a new SleepRequest. + * Constructs a new TableDefinition. * @memberof tabletmanagerdata - * @classdesc Represents a SleepRequest. - * @implements ISleepRequest + * @classdesc Represents a TableDefinition. + * @implements ITableDefinition * @constructor - * @param {tabletmanagerdata.ISleepRequest=} [properties] Properties to set + * @param {tabletmanagerdata.ITableDefinition=} [properties] Properties to set */ - function SleepRequest(properties) { + function TableDefinition(properties) { + this.columns = []; + this.primary_key_columns = []; + this.fields = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50664,75 +50819,182 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * SleepRequest duration. - * @member {number|Long} duration - * @memberof tabletmanagerdata.SleepRequest + * TableDefinition name. + * @member {string} name + * @memberof tabletmanagerdata.TableDefinition * @instance */ - SleepRequest.prototype.duration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TableDefinition.prototype.name = ""; /** - * Creates a new SleepRequest instance using the specified properties. + * TableDefinition schema. + * @member {string} schema + * @memberof tabletmanagerdata.TableDefinition + * @instance + */ + TableDefinition.prototype.schema = ""; + + /** + * TableDefinition columns. + * @member {Array.} columns + * @memberof tabletmanagerdata.TableDefinition + * @instance + */ + TableDefinition.prototype.columns = $util.emptyArray; + + /** + * TableDefinition primary_key_columns. + * @member {Array.} primary_key_columns + * @memberof tabletmanagerdata.TableDefinition + * @instance + */ + TableDefinition.prototype.primary_key_columns = $util.emptyArray; + + /** + * TableDefinition type. + * @member {string} type + * @memberof tabletmanagerdata.TableDefinition + * @instance + */ + TableDefinition.prototype.type = ""; + + /** + * TableDefinition data_length. + * @member {number|Long} data_length + * @memberof tabletmanagerdata.TableDefinition + * @instance + */ + TableDefinition.prototype.data_length = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * TableDefinition row_count. + * @member {number|Long} row_count + * @memberof tabletmanagerdata.TableDefinition + * @instance + */ + TableDefinition.prototype.row_count = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * TableDefinition fields. + * @member {Array.} fields + * @memberof tabletmanagerdata.TableDefinition + * @instance + */ + TableDefinition.prototype.fields = $util.emptyArray; + + /** + * Creates a new TableDefinition instance using the specified properties. * @function create - * @memberof tabletmanagerdata.SleepRequest + * @memberof tabletmanagerdata.TableDefinition * @static - * @param {tabletmanagerdata.ISleepRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.SleepRequest} SleepRequest instance + * @param {tabletmanagerdata.ITableDefinition=} [properties] Properties to set + * @returns {tabletmanagerdata.TableDefinition} TableDefinition instance */ - SleepRequest.create = function create(properties) { - return new SleepRequest(properties); + TableDefinition.create = function create(properties) { + return new TableDefinition(properties); }; /** - * Encodes the specified SleepRequest message. Does not implicitly {@link tabletmanagerdata.SleepRequest.verify|verify} messages. + * Encodes the specified TableDefinition message. Does not implicitly {@link tabletmanagerdata.TableDefinition.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SleepRequest + * @memberof tabletmanagerdata.TableDefinition * @static - * @param {tabletmanagerdata.ISleepRequest} message SleepRequest message or plain object to encode + * @param {tabletmanagerdata.ITableDefinition} message TableDefinition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SleepRequest.encode = function encode(message, writer) { + TableDefinition.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.duration); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.schema); + if (message.columns != null && message.columns.length) + for (let i = 0; i < message.columns.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.columns[i]); + if (message.primary_key_columns != null && message.primary_key_columns.length) + for (let i = 0; i < message.primary_key_columns.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.primary_key_columns[i]); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.type); + if (message.data_length != null && Object.hasOwnProperty.call(message, "data_length")) + writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.data_length); + if (message.row_count != null && Object.hasOwnProperty.call(message, "row_count")) + writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.row_count); + if (message.fields != null && message.fields.length) + for (let i = 0; i < message.fields.length; ++i) + $root.query.Field.encode(message.fields[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified SleepRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SleepRequest.verify|verify} messages. + * Encodes the specified TableDefinition message, length delimited. Does not implicitly {@link tabletmanagerdata.TableDefinition.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SleepRequest + * @memberof tabletmanagerdata.TableDefinition * @static - * @param {tabletmanagerdata.ISleepRequest} message SleepRequest message or plain object to encode + * @param {tabletmanagerdata.ITableDefinition} message TableDefinition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SleepRequest.encodeDelimited = function encodeDelimited(message, writer) { + TableDefinition.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SleepRequest message from the specified reader or buffer. + * Decodes a TableDefinition message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SleepRequest + * @memberof tabletmanagerdata.TableDefinition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.SleepRequest} SleepRequest + * @returns {tabletmanagerdata.TableDefinition} TableDefinition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SleepRequest.decode = function decode(reader, length) { + TableDefinition.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SleepRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.TableDefinition(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.duration = reader.int64(); + message.name = reader.string(); + break; + } + case 2: { + message.schema = reader.string(); + break; + } + case 3: { + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push(reader.string()); + break; + } + case 4: { + if (!(message.primary_key_columns && message.primary_key_columns.length)) + message.primary_key_columns = []; + message.primary_key_columns.push(reader.string()); + break; + } + case 5: { + message.type = reader.string(); + break; + } + case 6: { + message.data_length = reader.uint64(); + break; + } + case 7: { + message.row_count = reader.uint64(); + break; + } + case 8: { + if (!(message.fields && message.fields.length)) + message.fields = []; + message.fields.push($root.query.Field.decode(reader, reader.uint32())); break; } default: @@ -50744,135 +51006,252 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a SleepRequest message from the specified reader or buffer, length delimited. + * Decodes a TableDefinition message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.SleepRequest + * @memberof tabletmanagerdata.TableDefinition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SleepRequest} SleepRequest + * @returns {tabletmanagerdata.TableDefinition} TableDefinition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SleepRequest.decodeDelimited = function decodeDelimited(reader) { + TableDefinition.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SleepRequest message. + * Verifies a TableDefinition message. * @function verify - * @memberof tabletmanagerdata.SleepRequest + * @memberof tabletmanagerdata.TableDefinition * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SleepRequest.verify = function verify(message) { + TableDefinition.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.duration != null && message.hasOwnProperty("duration")) - if (!$util.isInteger(message.duration) && !(message.duration && $util.isInteger(message.duration.low) && $util.isInteger(message.duration.high))) - return "duration: integer|Long expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.schema != null && message.hasOwnProperty("schema")) + if (!$util.isString(message.schema)) + return "schema: string expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (let i = 0; i < message.columns.length; ++i) + if (!$util.isString(message.columns[i])) + return "columns: string[] expected"; + } + if (message.primary_key_columns != null && message.hasOwnProperty("primary_key_columns")) { + if (!Array.isArray(message.primary_key_columns)) + return "primary_key_columns: array expected"; + for (let i = 0; i < message.primary_key_columns.length; ++i) + if (!$util.isString(message.primary_key_columns[i])) + return "primary_key_columns: string[] expected"; + } + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.data_length != null && message.hasOwnProperty("data_length")) + if (!$util.isInteger(message.data_length) && !(message.data_length && $util.isInteger(message.data_length.low) && $util.isInteger(message.data_length.high))) + return "data_length: integer|Long expected"; + if (message.row_count != null && message.hasOwnProperty("row_count")) + if (!$util.isInteger(message.row_count) && !(message.row_count && $util.isInteger(message.row_count.low) && $util.isInteger(message.row_count.high))) + return "row_count: integer|Long expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (let i = 0; i < message.fields.length; ++i) { + let error = $root.query.Field.verify(message.fields[i]); + if (error) + return "fields." + error; + } + } return null; }; /** - * Creates a SleepRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TableDefinition message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.SleepRequest + * @memberof tabletmanagerdata.TableDefinition * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SleepRequest} SleepRequest + * @returns {tabletmanagerdata.TableDefinition} TableDefinition */ - SleepRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SleepRequest) + TableDefinition.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.TableDefinition) return object; - let message = new $root.tabletmanagerdata.SleepRequest(); - if (object.duration != null) + let message = new $root.tabletmanagerdata.TableDefinition(); + if (object.name != null) + message.name = String(object.name); + if (object.schema != null) + message.schema = String(object.schema); + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".tabletmanagerdata.TableDefinition.columns: array expected"); + message.columns = []; + for (let i = 0; i < object.columns.length; ++i) + message.columns[i] = String(object.columns[i]); + } + if (object.primary_key_columns) { + if (!Array.isArray(object.primary_key_columns)) + throw TypeError(".tabletmanagerdata.TableDefinition.primary_key_columns: array expected"); + message.primary_key_columns = []; + for (let i = 0; i < object.primary_key_columns.length; ++i) + message.primary_key_columns[i] = String(object.primary_key_columns[i]); + } + if (object.type != null) + message.type = String(object.type); + if (object.data_length != null) if ($util.Long) - (message.duration = $util.Long.fromValue(object.duration)).unsigned = false; - else if (typeof object.duration === "string") - message.duration = parseInt(object.duration, 10); - else if (typeof object.duration === "number") - message.duration = object.duration; - else if (typeof object.duration === "object") - message.duration = new $util.LongBits(object.duration.low >>> 0, object.duration.high >>> 0).toNumber(); + (message.data_length = $util.Long.fromValue(object.data_length)).unsigned = true; + else if (typeof object.data_length === "string") + message.data_length = parseInt(object.data_length, 10); + else if (typeof object.data_length === "number") + message.data_length = object.data_length; + else if (typeof object.data_length === "object") + message.data_length = new $util.LongBits(object.data_length.low >>> 0, object.data_length.high >>> 0).toNumber(true); + if (object.row_count != null) + if ($util.Long) + (message.row_count = $util.Long.fromValue(object.row_count)).unsigned = true; + else if (typeof object.row_count === "string") + message.row_count = parseInt(object.row_count, 10); + else if (typeof object.row_count === "number") + message.row_count = object.row_count; + else if (typeof object.row_count === "object") + message.row_count = new $util.LongBits(object.row_count.low >>> 0, object.row_count.high >>> 0).toNumber(true); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".tabletmanagerdata.TableDefinition.fields: array expected"); + message.fields = []; + for (let i = 0; i < object.fields.length; ++i) { + if (typeof object.fields[i] !== "object") + throw TypeError(".tabletmanagerdata.TableDefinition.fields: object expected"); + message.fields[i] = $root.query.Field.fromObject(object.fields[i]); + } + } return message; }; /** - * Creates a plain object from a SleepRequest message. Also converts values to other types if specified. + * Creates a plain object from a TableDefinition message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.SleepRequest + * @memberof tabletmanagerdata.TableDefinition * @static - * @param {tabletmanagerdata.SleepRequest} message SleepRequest + * @param {tabletmanagerdata.TableDefinition} message TableDefinition * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SleepRequest.toObject = function toObject(message, options) { + TableDefinition.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) + if (options.arrays || options.defaults) { + object.columns = []; + object.primary_key_columns = []; + object.fields = []; + } + if (options.defaults) { + object.name = ""; + object.schema = ""; + object.type = ""; if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.duration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + let long = new $util.Long(0, 0, true); + object.data_length = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.duration = options.longs === String ? "0" : 0; - if (message.duration != null && message.hasOwnProperty("duration")) - if (typeof message.duration === "number") - object.duration = options.longs === String ? String(message.duration) : message.duration; + object.data_length = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.row_count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.row_count = options.longs === String ? "0" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.schema != null && message.hasOwnProperty("schema")) + object.schema = message.schema; + if (message.columns && message.columns.length) { + object.columns = []; + for (let j = 0; j < message.columns.length; ++j) + object.columns[j] = message.columns[j]; + } + if (message.primary_key_columns && message.primary_key_columns.length) { + object.primary_key_columns = []; + for (let j = 0; j < message.primary_key_columns.length; ++j) + object.primary_key_columns[j] = message.primary_key_columns[j]; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.data_length != null && message.hasOwnProperty("data_length")) + if (typeof message.data_length === "number") + object.data_length = options.longs === String ? String(message.data_length) : message.data_length; else - object.duration = options.longs === String ? $util.Long.prototype.toString.call(message.duration) : options.longs === Number ? new $util.LongBits(message.duration.low >>> 0, message.duration.high >>> 0).toNumber() : message.duration; + object.data_length = options.longs === String ? $util.Long.prototype.toString.call(message.data_length) : options.longs === Number ? new $util.LongBits(message.data_length.low >>> 0, message.data_length.high >>> 0).toNumber(true) : message.data_length; + if (message.row_count != null && message.hasOwnProperty("row_count")) + if (typeof message.row_count === "number") + object.row_count = options.longs === String ? String(message.row_count) : message.row_count; + else + object.row_count = options.longs === String ? $util.Long.prototype.toString.call(message.row_count) : options.longs === Number ? new $util.LongBits(message.row_count.low >>> 0, message.row_count.high >>> 0).toNumber(true) : message.row_count; + if (message.fields && message.fields.length) { + object.fields = []; + for (let j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + } return object; }; /** - * Converts this SleepRequest to JSON. + * Converts this TableDefinition to JSON. * @function toJSON - * @memberof tabletmanagerdata.SleepRequest + * @memberof tabletmanagerdata.TableDefinition * @instance * @returns {Object.} JSON object */ - SleepRequest.prototype.toJSON = function toJSON() { + TableDefinition.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SleepRequest + * Gets the default type url for TableDefinition * @function getTypeUrl - * @memberof tabletmanagerdata.SleepRequest + * @memberof tabletmanagerdata.TableDefinition * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SleepRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TableDefinition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.SleepRequest"; + return typeUrlPrefix + "/tabletmanagerdata.TableDefinition"; }; - return SleepRequest; + return TableDefinition; })(); - tabletmanagerdata.SleepResponse = (function() { + tabletmanagerdata.SchemaDefinition = (function() { /** - * Properties of a SleepResponse. + * Properties of a SchemaDefinition. * @memberof tabletmanagerdata - * @interface ISleepResponse + * @interface ISchemaDefinition + * @property {string|null} [database_schema] SchemaDefinition database_schema + * @property {Array.|null} [table_definitions] SchemaDefinition table_definitions */ /** - * Constructs a new SleepResponse. + * Constructs a new SchemaDefinition. * @memberof tabletmanagerdata - * @classdesc Represents a SleepResponse. - * @implements ISleepResponse + * @classdesc Represents a SchemaDefinition. + * @implements ISchemaDefinition * @constructor - * @param {tabletmanagerdata.ISleepResponse=} [properties] Properties to set + * @param {tabletmanagerdata.ISchemaDefinition=} [properties] Properties to set */ - function SleepResponse(properties) { + function SchemaDefinition(properties) { + this.table_definitions = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50880,63 +51259,94 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new SleepResponse instance using the specified properties. + * SchemaDefinition database_schema. + * @member {string} database_schema + * @memberof tabletmanagerdata.SchemaDefinition + * @instance + */ + SchemaDefinition.prototype.database_schema = ""; + + /** + * SchemaDefinition table_definitions. + * @member {Array.} table_definitions + * @memberof tabletmanagerdata.SchemaDefinition + * @instance + */ + SchemaDefinition.prototype.table_definitions = $util.emptyArray; + + /** + * Creates a new SchemaDefinition instance using the specified properties. * @function create - * @memberof tabletmanagerdata.SleepResponse + * @memberof tabletmanagerdata.SchemaDefinition * @static - * @param {tabletmanagerdata.ISleepResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.SleepResponse} SleepResponse instance + * @param {tabletmanagerdata.ISchemaDefinition=} [properties] Properties to set + * @returns {tabletmanagerdata.SchemaDefinition} SchemaDefinition instance */ - SleepResponse.create = function create(properties) { - return new SleepResponse(properties); + SchemaDefinition.create = function create(properties) { + return new SchemaDefinition(properties); }; /** - * Encodes the specified SleepResponse message. Does not implicitly {@link tabletmanagerdata.SleepResponse.verify|verify} messages. + * Encodes the specified SchemaDefinition message. Does not implicitly {@link tabletmanagerdata.SchemaDefinition.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SleepResponse + * @memberof tabletmanagerdata.SchemaDefinition * @static - * @param {tabletmanagerdata.ISleepResponse} message SleepResponse message or plain object to encode + * @param {tabletmanagerdata.ISchemaDefinition} message SchemaDefinition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SleepResponse.encode = function encode(message, writer) { + SchemaDefinition.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.database_schema != null && Object.hasOwnProperty.call(message, "database_schema")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.database_schema); + if (message.table_definitions != null && message.table_definitions.length) + for (let i = 0; i < message.table_definitions.length; ++i) + $root.tabletmanagerdata.TableDefinition.encode(message.table_definitions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SleepResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SleepResponse.verify|verify} messages. + * Encodes the specified SchemaDefinition message, length delimited. Does not implicitly {@link tabletmanagerdata.SchemaDefinition.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SleepResponse + * @memberof tabletmanagerdata.SchemaDefinition * @static - * @param {tabletmanagerdata.ISleepResponse} message SleepResponse message or plain object to encode + * @param {tabletmanagerdata.ISchemaDefinition} message SchemaDefinition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SleepResponse.encodeDelimited = function encodeDelimited(message, writer) { + SchemaDefinition.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SleepResponse message from the specified reader or buffer. + * Decodes a SchemaDefinition message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SleepResponse + * @memberof tabletmanagerdata.SchemaDefinition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.SleepResponse} SleepResponse + * @returns {tabletmanagerdata.SchemaDefinition} SchemaDefinition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SleepResponse.decode = function decode(reader, length) { + SchemaDefinition.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SleepResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SchemaDefinition(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.database_schema = reader.string(); + break; + } + case 2: { + if (!(message.table_definitions && message.table_definitions.length)) + message.table_definitions = []; + message.table_definitions.push($root.tabletmanagerdata.TableDefinition.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -50946,113 +51356,149 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a SleepResponse message from the specified reader or buffer, length delimited. + * Decodes a SchemaDefinition message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.SleepResponse + * @memberof tabletmanagerdata.SchemaDefinition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SleepResponse} SleepResponse + * @returns {tabletmanagerdata.SchemaDefinition} SchemaDefinition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SleepResponse.decodeDelimited = function decodeDelimited(reader) { + SchemaDefinition.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SleepResponse message. + * Verifies a SchemaDefinition message. * @function verify - * @memberof tabletmanagerdata.SleepResponse + * @memberof tabletmanagerdata.SchemaDefinition * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SleepResponse.verify = function verify(message) { + SchemaDefinition.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.database_schema != null && message.hasOwnProperty("database_schema")) + if (!$util.isString(message.database_schema)) + return "database_schema: string expected"; + if (message.table_definitions != null && message.hasOwnProperty("table_definitions")) { + if (!Array.isArray(message.table_definitions)) + return "table_definitions: array expected"; + for (let i = 0; i < message.table_definitions.length; ++i) { + let error = $root.tabletmanagerdata.TableDefinition.verify(message.table_definitions[i]); + if (error) + return "table_definitions." + error; + } + } return null; }; /** - * Creates a SleepResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SchemaDefinition message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.SleepResponse + * @memberof tabletmanagerdata.SchemaDefinition * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SleepResponse} SleepResponse + * @returns {tabletmanagerdata.SchemaDefinition} SchemaDefinition */ - SleepResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SleepResponse) + SchemaDefinition.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SchemaDefinition) return object; - return new $root.tabletmanagerdata.SleepResponse(); + let message = new $root.tabletmanagerdata.SchemaDefinition(); + if (object.database_schema != null) + message.database_schema = String(object.database_schema); + if (object.table_definitions) { + if (!Array.isArray(object.table_definitions)) + throw TypeError(".tabletmanagerdata.SchemaDefinition.table_definitions: array expected"); + message.table_definitions = []; + for (let i = 0; i < object.table_definitions.length; ++i) { + if (typeof object.table_definitions[i] !== "object") + throw TypeError(".tabletmanagerdata.SchemaDefinition.table_definitions: object expected"); + message.table_definitions[i] = $root.tabletmanagerdata.TableDefinition.fromObject(object.table_definitions[i]); + } + } + return message; }; /** - * Creates a plain object from a SleepResponse message. Also converts values to other types if specified. + * Creates a plain object from a SchemaDefinition message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.SleepResponse + * @memberof tabletmanagerdata.SchemaDefinition * @static - * @param {tabletmanagerdata.SleepResponse} message SleepResponse + * @param {tabletmanagerdata.SchemaDefinition} message SchemaDefinition * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SleepResponse.toObject = function toObject() { - return {}; + SchemaDefinition.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.table_definitions = []; + if (options.defaults) + object.database_schema = ""; + if (message.database_schema != null && message.hasOwnProperty("database_schema")) + object.database_schema = message.database_schema; + if (message.table_definitions && message.table_definitions.length) { + object.table_definitions = []; + for (let j = 0; j < message.table_definitions.length; ++j) + object.table_definitions[j] = $root.tabletmanagerdata.TableDefinition.toObject(message.table_definitions[j], options); + } + return object; }; /** - * Converts this SleepResponse to JSON. + * Converts this SchemaDefinition to JSON. * @function toJSON - * @memberof tabletmanagerdata.SleepResponse + * @memberof tabletmanagerdata.SchemaDefinition * @instance * @returns {Object.} JSON object */ - SleepResponse.prototype.toJSON = function toJSON() { + SchemaDefinition.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SleepResponse + * Gets the default type url for SchemaDefinition * @function getTypeUrl - * @memberof tabletmanagerdata.SleepResponse + * @memberof tabletmanagerdata.SchemaDefinition * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SleepResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SchemaDefinition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.SleepResponse"; + return typeUrlPrefix + "/tabletmanagerdata.SchemaDefinition"; }; - return SleepResponse; + return SchemaDefinition; })(); - tabletmanagerdata.ExecuteHookRequest = (function() { + tabletmanagerdata.SchemaChangeResult = (function() { /** - * Properties of an ExecuteHookRequest. + * Properties of a SchemaChangeResult. * @memberof tabletmanagerdata - * @interface IExecuteHookRequest - * @property {string|null} [name] ExecuteHookRequest name - * @property {Array.|null} [parameters] ExecuteHookRequest parameters - * @property {Object.|null} [extra_env] ExecuteHookRequest extra_env + * @interface ISchemaChangeResult + * @property {tabletmanagerdata.ISchemaDefinition|null} [before_schema] SchemaChangeResult before_schema + * @property {tabletmanagerdata.ISchemaDefinition|null} [after_schema] SchemaChangeResult after_schema */ /** - * Constructs a new ExecuteHookRequest. + * Constructs a new SchemaChangeResult. * @memberof tabletmanagerdata - * @classdesc Represents an ExecuteHookRequest. - * @implements IExecuteHookRequest + * @classdesc Represents a SchemaChangeResult. + * @implements ISchemaChangeResult * @constructor - * @param {tabletmanagerdata.IExecuteHookRequest=} [properties] Properties to set + * @param {tabletmanagerdata.ISchemaChangeResult=} [properties] Properties to set */ - function ExecuteHookRequest(properties) { - this.parameters = []; - this.extra_env = {}; + function SchemaChangeResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51060,126 +51506,89 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ExecuteHookRequest name. - * @member {string} name - * @memberof tabletmanagerdata.ExecuteHookRequest - * @instance - */ - ExecuteHookRequest.prototype.name = ""; - - /** - * ExecuteHookRequest parameters. - * @member {Array.} parameters - * @memberof tabletmanagerdata.ExecuteHookRequest + * SchemaChangeResult before_schema. + * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} before_schema + * @memberof tabletmanagerdata.SchemaChangeResult * @instance */ - ExecuteHookRequest.prototype.parameters = $util.emptyArray; + SchemaChangeResult.prototype.before_schema = null; /** - * ExecuteHookRequest extra_env. - * @member {Object.} extra_env - * @memberof tabletmanagerdata.ExecuteHookRequest + * SchemaChangeResult after_schema. + * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} after_schema + * @memberof tabletmanagerdata.SchemaChangeResult * @instance */ - ExecuteHookRequest.prototype.extra_env = $util.emptyObject; + SchemaChangeResult.prototype.after_schema = null; /** - * Creates a new ExecuteHookRequest instance using the specified properties. + * Creates a new SchemaChangeResult instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.SchemaChangeResult * @static - * @param {tabletmanagerdata.IExecuteHookRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ExecuteHookRequest} ExecuteHookRequest instance + * @param {tabletmanagerdata.ISchemaChangeResult=} [properties] Properties to set + * @returns {tabletmanagerdata.SchemaChangeResult} SchemaChangeResult instance */ - ExecuteHookRequest.create = function create(properties) { - return new ExecuteHookRequest(properties); + SchemaChangeResult.create = function create(properties) { + return new SchemaChangeResult(properties); }; /** - * Encodes the specified ExecuteHookRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteHookRequest.verify|verify} messages. + * Encodes the specified SchemaChangeResult message. Does not implicitly {@link tabletmanagerdata.SchemaChangeResult.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.SchemaChangeResult * @static - * @param {tabletmanagerdata.IExecuteHookRequest} message ExecuteHookRequest message or plain object to encode + * @param {tabletmanagerdata.ISchemaChangeResult} message SchemaChangeResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteHookRequest.encode = function encode(message, writer) { + SchemaChangeResult.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.parameters != null && message.parameters.length) - for (let i = 0; i < message.parameters.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameters[i]); - if (message.extra_env != null && Object.hasOwnProperty.call(message, "extra_env")) - for (let keys = Object.keys(message.extra_env), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.extra_env[keys[i]]).ldelim(); + if (message.before_schema != null && Object.hasOwnProperty.call(message, "before_schema")) + $root.tabletmanagerdata.SchemaDefinition.encode(message.before_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.after_schema != null && Object.hasOwnProperty.call(message, "after_schema")) + $root.tabletmanagerdata.SchemaDefinition.encode(message.after_schema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteHookRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteHookRequest.verify|verify} messages. + * Encodes the specified SchemaChangeResult message, length delimited. Does not implicitly {@link tabletmanagerdata.SchemaChangeResult.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.SchemaChangeResult * @static - * @param {tabletmanagerdata.IExecuteHookRequest} message ExecuteHookRequest message or plain object to encode + * @param {tabletmanagerdata.ISchemaChangeResult} message SchemaChangeResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteHookRequest.encodeDelimited = function encodeDelimited(message, writer) { + SchemaChangeResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteHookRequest message from the specified reader or buffer. + * Decodes a SchemaChangeResult message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.SchemaChangeResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ExecuteHookRequest} ExecuteHookRequest + * @returns {tabletmanagerdata.SchemaChangeResult} SchemaChangeResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteHookRequest.decode = function decode(reader, length) { + SchemaChangeResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteHookRequest(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SchemaChangeResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.before_schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); break; } case 2: { - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push(reader.string()); - break; - } - case 3: { - if (message.extra_env === $util.emptyObject) - message.extra_env = {}; - 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.extra_env[key] = value; + message.after_schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); break; } default: @@ -51191,168 +51600,145 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an ExecuteHookRequest message from the specified reader or buffer, length delimited. + * Decodes a SchemaChangeResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.SchemaChangeResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ExecuteHookRequest} ExecuteHookRequest + * @returns {tabletmanagerdata.SchemaChangeResult} SchemaChangeResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteHookRequest.decodeDelimited = function decodeDelimited(reader) { + SchemaChangeResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteHookRequest message. + * Verifies a SchemaChangeResult message. * @function verify - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.SchemaChangeResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteHookRequest.verify = function verify(message) { + SchemaChangeResult.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.parameters != null && message.hasOwnProperty("parameters")) { - if (!Array.isArray(message.parameters)) - return "parameters: array expected"; - for (let i = 0; i < message.parameters.length; ++i) - if (!$util.isString(message.parameters[i])) - return "parameters: string[] expected"; + if (message.before_schema != null && message.hasOwnProperty("before_schema")) { + let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.before_schema); + if (error) + return "before_schema." + error; } - if (message.extra_env != null && message.hasOwnProperty("extra_env")) { - if (!$util.isObject(message.extra_env)) - return "extra_env: object expected"; - let key = Object.keys(message.extra_env); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.extra_env[key[i]])) - return "extra_env: string{k:string} expected"; + if (message.after_schema != null && message.hasOwnProperty("after_schema")) { + let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.after_schema); + if (error) + return "after_schema." + error; } return null; }; /** - * Creates an ExecuteHookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SchemaChangeResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.SchemaChangeResult * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ExecuteHookRequest} ExecuteHookRequest + * @returns {tabletmanagerdata.SchemaChangeResult} SchemaChangeResult */ - ExecuteHookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ExecuteHookRequest) + SchemaChangeResult.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SchemaChangeResult) return object; - let message = new $root.tabletmanagerdata.ExecuteHookRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".tabletmanagerdata.ExecuteHookRequest.parameters: array expected"); - message.parameters = []; - for (let i = 0; i < object.parameters.length; ++i) - message.parameters[i] = String(object.parameters[i]); + let message = new $root.tabletmanagerdata.SchemaChangeResult(); + if (object.before_schema != null) { + if (typeof object.before_schema !== "object") + throw TypeError(".tabletmanagerdata.SchemaChangeResult.before_schema: object expected"); + message.before_schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.before_schema); } - if (object.extra_env) { - if (typeof object.extra_env !== "object") - throw TypeError(".tabletmanagerdata.ExecuteHookRequest.extra_env: object expected"); - message.extra_env = {}; - for (let keys = Object.keys(object.extra_env), i = 0; i < keys.length; ++i) - message.extra_env[keys[i]] = String(object.extra_env[keys[i]]); + if (object.after_schema != null) { + if (typeof object.after_schema !== "object") + throw TypeError(".tabletmanagerdata.SchemaChangeResult.after_schema: object expected"); + message.after_schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.after_schema); } return message; }; /** - * Creates a plain object from an ExecuteHookRequest message. Also converts values to other types if specified. + * Creates a plain object from a SchemaChangeResult message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.SchemaChangeResult * @static - * @param {tabletmanagerdata.ExecuteHookRequest} message ExecuteHookRequest + * @param {tabletmanagerdata.SchemaChangeResult} message SchemaChangeResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteHookRequest.toObject = function toObject(message, options) { + SchemaChangeResult.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.parameters = []; - if (options.objects || options.defaults) - object.extra_env = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (let j = 0; j < message.parameters.length; ++j) - object.parameters[j] = message.parameters[j]; - } - let keys2; - if (message.extra_env && (keys2 = Object.keys(message.extra_env)).length) { - object.extra_env = {}; - for (let j = 0; j < keys2.length; ++j) - object.extra_env[keys2[j]] = message.extra_env[keys2[j]]; + if (options.defaults) { + object.before_schema = null; + object.after_schema = null; } + if (message.before_schema != null && message.hasOwnProperty("before_schema")) + object.before_schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.before_schema, options); + if (message.after_schema != null && message.hasOwnProperty("after_schema")) + object.after_schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.after_schema, options); return object; }; /** - * Converts this ExecuteHookRequest to JSON. + * Converts this SchemaChangeResult to JSON. * @function toJSON - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.SchemaChangeResult * @instance * @returns {Object.} JSON object */ - ExecuteHookRequest.prototype.toJSON = function toJSON() { + SchemaChangeResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteHookRequest + * Gets the default type url for SchemaChangeResult * @function getTypeUrl - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.SchemaChangeResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteHookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SchemaChangeResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ExecuteHookRequest"; + return typeUrlPrefix + "/tabletmanagerdata.SchemaChangeResult"; }; - return ExecuteHookRequest; + return SchemaChangeResult; })(); - tabletmanagerdata.ExecuteHookResponse = (function() { + tabletmanagerdata.UserPermission = (function() { /** - * Properties of an ExecuteHookResponse. + * Properties of a UserPermission. * @memberof tabletmanagerdata - * @interface IExecuteHookResponse - * @property {number|Long|null} [exit_status] ExecuteHookResponse exit_status - * @property {string|null} [stdout] ExecuteHookResponse stdout - * @property {string|null} [stderr] ExecuteHookResponse stderr + * @interface IUserPermission + * @property {string|null} [host] UserPermission host + * @property {string|null} [user] UserPermission user + * @property {number|Long|null} [password_checksum] UserPermission password_checksum + * @property {Object.|null} [privileges] UserPermission privileges */ /** - * Constructs a new ExecuteHookResponse. + * Constructs a new UserPermission. * @memberof tabletmanagerdata - * @classdesc Represents an ExecuteHookResponse. - * @implements IExecuteHookResponse + * @classdesc Represents a UserPermission. + * @implements IUserPermission * @constructor - * @param {tabletmanagerdata.IExecuteHookResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IUserPermission=} [properties] Properties to set */ - function ExecuteHookResponse(properties) { + function UserPermission(properties) { + this.privileges = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51360,103 +51746,137 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ExecuteHookResponse exit_status. - * @member {number|Long} exit_status - * @memberof tabletmanagerdata.ExecuteHookResponse + * UserPermission host. + * @member {string} host + * @memberof tabletmanagerdata.UserPermission * @instance */ - ExecuteHookResponse.prototype.exit_status = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserPermission.prototype.host = ""; /** - * ExecuteHookResponse stdout. - * @member {string} stdout - * @memberof tabletmanagerdata.ExecuteHookResponse + * UserPermission user. + * @member {string} user + * @memberof tabletmanagerdata.UserPermission * @instance */ - ExecuteHookResponse.prototype.stdout = ""; + UserPermission.prototype.user = ""; /** - * ExecuteHookResponse stderr. - * @member {string} stderr - * @memberof tabletmanagerdata.ExecuteHookResponse + * UserPermission password_checksum. + * @member {number|Long} password_checksum + * @memberof tabletmanagerdata.UserPermission * @instance */ - ExecuteHookResponse.prototype.stderr = ""; + UserPermission.prototype.password_checksum = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new ExecuteHookResponse instance using the specified properties. + * UserPermission privileges. + * @member {Object.} privileges + * @memberof tabletmanagerdata.UserPermission + * @instance + */ + UserPermission.prototype.privileges = $util.emptyObject; + + /** + * Creates a new UserPermission instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.UserPermission * @static - * @param {tabletmanagerdata.IExecuteHookResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ExecuteHookResponse} ExecuteHookResponse instance + * @param {tabletmanagerdata.IUserPermission=} [properties] Properties to set + * @returns {tabletmanagerdata.UserPermission} UserPermission instance */ - ExecuteHookResponse.create = function create(properties) { - return new ExecuteHookResponse(properties); + UserPermission.create = function create(properties) { + return new UserPermission(properties); }; /** - * Encodes the specified ExecuteHookResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteHookResponse.verify|verify} messages. + * Encodes the specified UserPermission message. Does not implicitly {@link tabletmanagerdata.UserPermission.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.UserPermission * @static - * @param {tabletmanagerdata.IExecuteHookResponse} message ExecuteHookResponse message or plain object to encode + * @param {tabletmanagerdata.IUserPermission} message UserPermission message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteHookResponse.encode = function encode(message, writer) { + UserPermission.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.exit_status != null && Object.hasOwnProperty.call(message, "exit_status")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.exit_status); - if (message.stdout != null && Object.hasOwnProperty.call(message, "stdout")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.stdout); - if (message.stderr != null && Object.hasOwnProperty.call(message, "stderr")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stderr); + if (message.host != null && Object.hasOwnProperty.call(message, "host")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.host); + if (message.user != null && Object.hasOwnProperty.call(message, "user")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.user); + if (message.password_checksum != null && Object.hasOwnProperty.call(message, "password_checksum")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.password_checksum); + if (message.privileges != null && Object.hasOwnProperty.call(message, "privileges")) + for (let keys = Object.keys(message.privileges), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.privileges[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified ExecuteHookResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteHookResponse.verify|verify} messages. + * Encodes the specified UserPermission message, length delimited. Does not implicitly {@link tabletmanagerdata.UserPermission.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.UserPermission * @static - * @param {tabletmanagerdata.IExecuteHookResponse} message ExecuteHookResponse message or plain object to encode + * @param {tabletmanagerdata.IUserPermission} message UserPermission message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteHookResponse.encodeDelimited = function encodeDelimited(message, writer) { + UserPermission.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteHookResponse message from the specified reader or buffer. + * Decodes a UserPermission message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.UserPermission * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ExecuteHookResponse} ExecuteHookResponse + * @returns {tabletmanagerdata.UserPermission} UserPermission * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteHookResponse.decode = function decode(reader, length) { + UserPermission.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteHookResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UserPermission(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.exit_status = reader.int64(); + message.host = reader.string(); break; } case 2: { - message.stdout = reader.string(); + message.user = reader.string(); break; } case 3: { - message.stderr = reader.string(); + message.password_checksum = reader.uint64(); + break; + } + case 4: { + if (message.privileges === $util.emptyObject) + message.privileges = {}; + 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.privileges[key] = value; break; } default: @@ -51468,158 +51888,180 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an ExecuteHookResponse message from the specified reader or buffer, length delimited. + * Decodes a UserPermission message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.UserPermission * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ExecuteHookResponse} ExecuteHookResponse + * @returns {tabletmanagerdata.UserPermission} UserPermission * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteHookResponse.decodeDelimited = function decodeDelimited(reader) { + UserPermission.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteHookResponse message. + * Verifies a UserPermission message. * @function verify - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.UserPermission * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteHookResponse.verify = function verify(message) { + UserPermission.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.exit_status != null && message.hasOwnProperty("exit_status")) - if (!$util.isInteger(message.exit_status) && !(message.exit_status && $util.isInteger(message.exit_status.low) && $util.isInteger(message.exit_status.high))) - return "exit_status: integer|Long expected"; - if (message.stdout != null && message.hasOwnProperty("stdout")) - if (!$util.isString(message.stdout)) - return "stdout: string expected"; - if (message.stderr != null && message.hasOwnProperty("stderr")) - if (!$util.isString(message.stderr)) - return "stderr: string expected"; + if (message.host != null && message.hasOwnProperty("host")) + if (!$util.isString(message.host)) + return "host: string expected"; + if (message.user != null && message.hasOwnProperty("user")) + if (!$util.isString(message.user)) + return "user: string expected"; + if (message.password_checksum != null && message.hasOwnProperty("password_checksum")) + if (!$util.isInteger(message.password_checksum) && !(message.password_checksum && $util.isInteger(message.password_checksum.low) && $util.isInteger(message.password_checksum.high))) + return "password_checksum: integer|Long expected"; + if (message.privileges != null && message.hasOwnProperty("privileges")) { + if (!$util.isObject(message.privileges)) + return "privileges: object expected"; + let key = Object.keys(message.privileges); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.privileges[key[i]])) + return "privileges: string{k:string} expected"; + } return null; }; /** - * Creates an ExecuteHookResponse message from a plain object. Also converts values to their respective internal types. + * Creates a UserPermission message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.UserPermission * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ExecuteHookResponse} ExecuteHookResponse + * @returns {tabletmanagerdata.UserPermission} UserPermission */ - ExecuteHookResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ExecuteHookResponse) + UserPermission.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.UserPermission) return object; - let message = new $root.tabletmanagerdata.ExecuteHookResponse(); - if (object.exit_status != null) + let message = new $root.tabletmanagerdata.UserPermission(); + if (object.host != null) + message.host = String(object.host); + if (object.user != null) + message.user = String(object.user); + if (object.password_checksum != null) if ($util.Long) - (message.exit_status = $util.Long.fromValue(object.exit_status)).unsigned = false; - else if (typeof object.exit_status === "string") - message.exit_status = parseInt(object.exit_status, 10); - else if (typeof object.exit_status === "number") - message.exit_status = object.exit_status; - else if (typeof object.exit_status === "object") - message.exit_status = new $util.LongBits(object.exit_status.low >>> 0, object.exit_status.high >>> 0).toNumber(); - if (object.stdout != null) - message.stdout = String(object.stdout); - if (object.stderr != null) - message.stderr = String(object.stderr); + (message.password_checksum = $util.Long.fromValue(object.password_checksum)).unsigned = true; + else if (typeof object.password_checksum === "string") + message.password_checksum = parseInt(object.password_checksum, 10); + else if (typeof object.password_checksum === "number") + message.password_checksum = object.password_checksum; + else if (typeof object.password_checksum === "object") + message.password_checksum = new $util.LongBits(object.password_checksum.low >>> 0, object.password_checksum.high >>> 0).toNumber(true); + if (object.privileges) { + if (typeof object.privileges !== "object") + throw TypeError(".tabletmanagerdata.UserPermission.privileges: object expected"); + message.privileges = {}; + for (let keys = Object.keys(object.privileges), i = 0; i < keys.length; ++i) + message.privileges[keys[i]] = String(object.privileges[keys[i]]); + } return message; }; /** - * Creates a plain object from an ExecuteHookResponse message. Also converts values to other types if specified. + * Creates a plain object from a UserPermission message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.UserPermission * @static - * @param {tabletmanagerdata.ExecuteHookResponse} message ExecuteHookResponse + * @param {tabletmanagerdata.UserPermission} message UserPermission * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteHookResponse.toObject = function toObject(message, options) { + UserPermission.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.objects || options.defaults) + object.privileges = {}; if (options.defaults) { + object.host = ""; + object.user = ""; if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.exit_status = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + let long = new $util.Long(0, 0, true); + object.password_checksum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.exit_status = options.longs === String ? "0" : 0; - object.stdout = ""; - object.stderr = ""; + object.password_checksum = options.longs === String ? "0" : 0; } - if (message.exit_status != null && message.hasOwnProperty("exit_status")) - if (typeof message.exit_status === "number") - object.exit_status = options.longs === String ? String(message.exit_status) : message.exit_status; + if (message.host != null && message.hasOwnProperty("host")) + object.host = message.host; + if (message.user != null && message.hasOwnProperty("user")) + object.user = message.user; + if (message.password_checksum != null && message.hasOwnProperty("password_checksum")) + if (typeof message.password_checksum === "number") + object.password_checksum = options.longs === String ? String(message.password_checksum) : message.password_checksum; else - object.exit_status = options.longs === String ? $util.Long.prototype.toString.call(message.exit_status) : options.longs === Number ? new $util.LongBits(message.exit_status.low >>> 0, message.exit_status.high >>> 0).toNumber() : message.exit_status; - if (message.stdout != null && message.hasOwnProperty("stdout")) - object.stdout = message.stdout; - if (message.stderr != null && message.hasOwnProperty("stderr")) - object.stderr = message.stderr; + object.password_checksum = options.longs === String ? $util.Long.prototype.toString.call(message.password_checksum) : options.longs === Number ? new $util.LongBits(message.password_checksum.low >>> 0, message.password_checksum.high >>> 0).toNumber(true) : message.password_checksum; + let keys2; + if (message.privileges && (keys2 = Object.keys(message.privileges)).length) { + object.privileges = {}; + for (let j = 0; j < keys2.length; ++j) + object.privileges[keys2[j]] = message.privileges[keys2[j]]; + } return object; }; /** - * Converts this ExecuteHookResponse to JSON. + * Converts this UserPermission to JSON. * @function toJSON - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.UserPermission * @instance * @returns {Object.} JSON object */ - ExecuteHookResponse.prototype.toJSON = function toJSON() { + UserPermission.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteHookResponse + * Gets the default type url for UserPermission * @function getTypeUrl - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.UserPermission * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteHookResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UserPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ExecuteHookResponse"; + return typeUrlPrefix + "/tabletmanagerdata.UserPermission"; }; - return ExecuteHookResponse; + return UserPermission; })(); - tabletmanagerdata.GetSchemaRequest = (function() { + tabletmanagerdata.DbPermission = (function() { /** - * Properties of a GetSchemaRequest. + * Properties of a DbPermission. * @memberof tabletmanagerdata - * @interface IGetSchemaRequest - * @property {Array.|null} [tables] GetSchemaRequest tables - * @property {boolean|null} [include_views] GetSchemaRequest include_views - * @property {Array.|null} [exclude_tables] GetSchemaRequest exclude_tables - * @property {boolean|null} [table_schema_only] GetSchemaRequest table_schema_only + * @interface IDbPermission + * @property {string|null} [host] DbPermission host + * @property {string|null} [db] DbPermission db + * @property {string|null} [user] DbPermission user + * @property {Object.|null} [privileges] DbPermission privileges */ /** - * Constructs a new GetSchemaRequest. + * Constructs a new DbPermission. * @memberof tabletmanagerdata - * @classdesc Represents a GetSchemaRequest. - * @implements IGetSchemaRequest + * @classdesc Represents a DbPermission. + * @implements IDbPermission * @constructor - * @param {tabletmanagerdata.IGetSchemaRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IDbPermission=} [properties] Properties to set */ - function GetSchemaRequest(properties) { - this.tables = []; - this.exclude_tables = []; + function DbPermission(properties) { + this.privileges = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51627,123 +52069,137 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * GetSchemaRequest tables. - * @member {Array.} tables - * @memberof tabletmanagerdata.GetSchemaRequest + * DbPermission host. + * @member {string} host + * @memberof tabletmanagerdata.DbPermission * @instance */ - GetSchemaRequest.prototype.tables = $util.emptyArray; + DbPermission.prototype.host = ""; /** - * GetSchemaRequest include_views. - * @member {boolean} include_views - * @memberof tabletmanagerdata.GetSchemaRequest + * DbPermission db. + * @member {string} db + * @memberof tabletmanagerdata.DbPermission * @instance */ - GetSchemaRequest.prototype.include_views = false; + DbPermission.prototype.db = ""; /** - * GetSchemaRequest exclude_tables. - * @member {Array.} exclude_tables - * @memberof tabletmanagerdata.GetSchemaRequest + * DbPermission user. + * @member {string} user + * @memberof tabletmanagerdata.DbPermission * @instance */ - GetSchemaRequest.prototype.exclude_tables = $util.emptyArray; + DbPermission.prototype.user = ""; /** - * GetSchemaRequest table_schema_only. - * @member {boolean} table_schema_only - * @memberof tabletmanagerdata.GetSchemaRequest + * DbPermission privileges. + * @member {Object.} privileges + * @memberof tabletmanagerdata.DbPermission * @instance */ - GetSchemaRequest.prototype.table_schema_only = false; + DbPermission.prototype.privileges = $util.emptyObject; /** - * Creates a new GetSchemaRequest instance using the specified properties. + * Creates a new DbPermission instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.DbPermission * @static - * @param {tabletmanagerdata.IGetSchemaRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.GetSchemaRequest} GetSchemaRequest instance + * @param {tabletmanagerdata.IDbPermission=} [properties] Properties to set + * @returns {tabletmanagerdata.DbPermission} DbPermission instance */ - GetSchemaRequest.create = function create(properties) { - return new GetSchemaRequest(properties); + DbPermission.create = function create(properties) { + return new DbPermission(properties); }; /** - * Encodes the specified GetSchemaRequest message. Does not implicitly {@link tabletmanagerdata.GetSchemaRequest.verify|verify} messages. + * Encodes the specified DbPermission message. Does not implicitly {@link tabletmanagerdata.DbPermission.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.DbPermission * @static - * @param {tabletmanagerdata.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode + * @param {tabletmanagerdata.IDbPermission} message DbPermission message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaRequest.encode = function encode(message, writer) { + DbPermission.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tables != null && message.tables.length) - for (let i = 0; i < message.tables.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tables[i]); - if (message.include_views != null && Object.hasOwnProperty.call(message, "include_views")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.include_views); - if (message.exclude_tables != null && message.exclude_tables.length) - for (let i = 0; i < message.exclude_tables.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_tables[i]); - if (message.table_schema_only != null && Object.hasOwnProperty.call(message, "table_schema_only")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.table_schema_only); + if (message.host != null && Object.hasOwnProperty.call(message, "host")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.host); + if (message.db != null && Object.hasOwnProperty.call(message, "db")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.db); + if (message.user != null && Object.hasOwnProperty.call(message, "user")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.user); + if (message.privileges != null && Object.hasOwnProperty.call(message, "privileges")) + for (let keys = Object.keys(message.privileges), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.privileges[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetSchemaRequest.verify|verify} messages. + * Encodes the specified DbPermission message, length delimited. Does not implicitly {@link tabletmanagerdata.DbPermission.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.DbPermission * @static - * @param {tabletmanagerdata.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode + * @param {tabletmanagerdata.IDbPermission} message DbPermission message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + DbPermission.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer. + * Decodes a DbPermission message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.DbPermission * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetSchemaRequest} GetSchemaRequest + * @returns {tabletmanagerdata.DbPermission} DbPermission * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaRequest.decode = function decode(reader, length) { + DbPermission.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetSchemaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DbPermission(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.push(reader.string()); + message.host = reader.string(); break; } case 2: { - message.include_views = reader.bool(); + message.db = reader.string(); break; } case 3: { - if (!(message.exclude_tables && message.exclude_tables.length)) - message.exclude_tables = []; - message.exclude_tables.push(reader.string()); + message.user = reader.string(); break; } case 4: { - message.table_schema_only = reader.bool(); + if (message.privileges === $util.emptyObject) + message.privileges = {}; + 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.privileges[key] = value; break; } default: @@ -51755,173 +52211,165 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a DbPermission message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.DbPermission * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetSchemaRequest} GetSchemaRequest + * @returns {tabletmanagerdata.DbPermission} DbPermission * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + DbPermission.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSchemaRequest message. + * Verifies a DbPermission message. * @function verify - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.DbPermission * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSchemaRequest.verify = function verify(message) { + DbPermission.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!Array.isArray(message.tables)) - return "tables: array expected"; - for (let i = 0; i < message.tables.length; ++i) - if (!$util.isString(message.tables[i])) - return "tables: string[] expected"; - } - if (message.include_views != null && message.hasOwnProperty("include_views")) - if (typeof message.include_views !== "boolean") - return "include_views: boolean expected"; - if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { - if (!Array.isArray(message.exclude_tables)) - return "exclude_tables: array expected"; - for (let i = 0; i < message.exclude_tables.length; ++i) - if (!$util.isString(message.exclude_tables[i])) - return "exclude_tables: string[] expected"; + if (message.host != null && message.hasOwnProperty("host")) + if (!$util.isString(message.host)) + return "host: string expected"; + if (message.db != null && message.hasOwnProperty("db")) + if (!$util.isString(message.db)) + return "db: string expected"; + if (message.user != null && message.hasOwnProperty("user")) + if (!$util.isString(message.user)) + return "user: string expected"; + if (message.privileges != null && message.hasOwnProperty("privileges")) { + if (!$util.isObject(message.privileges)) + return "privileges: object expected"; + let key = Object.keys(message.privileges); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.privileges[key[i]])) + return "privileges: string{k:string} expected"; } - if (message.table_schema_only != null && message.hasOwnProperty("table_schema_only")) - if (typeof message.table_schema_only !== "boolean") - return "table_schema_only: boolean expected"; return null; }; /** - * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DbPermission message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.DbPermission * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetSchemaRequest} GetSchemaRequest + * @returns {tabletmanagerdata.DbPermission} DbPermission */ - GetSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetSchemaRequest) + DbPermission.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.DbPermission) return object; - let message = new $root.tabletmanagerdata.GetSchemaRequest(); - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".tabletmanagerdata.GetSchemaRequest.tables: array expected"); - message.tables = []; - for (let i = 0; i < object.tables.length; ++i) - message.tables[i] = String(object.tables[i]); - } - if (object.include_views != null) - message.include_views = Boolean(object.include_views); - if (object.exclude_tables) { - if (!Array.isArray(object.exclude_tables)) - throw TypeError(".tabletmanagerdata.GetSchemaRequest.exclude_tables: array expected"); - message.exclude_tables = []; - for (let i = 0; i < object.exclude_tables.length; ++i) - message.exclude_tables[i] = String(object.exclude_tables[i]); + let message = new $root.tabletmanagerdata.DbPermission(); + if (object.host != null) + message.host = String(object.host); + if (object.db != null) + message.db = String(object.db); + if (object.user != null) + message.user = String(object.user); + if (object.privileges) { + if (typeof object.privileges !== "object") + throw TypeError(".tabletmanagerdata.DbPermission.privileges: object expected"); + message.privileges = {}; + for (let keys = Object.keys(object.privileges), i = 0; i < keys.length; ++i) + message.privileges[keys[i]] = String(object.privileges[keys[i]]); } - if (object.table_schema_only != null) - message.table_schema_only = Boolean(object.table_schema_only); return message; }; /** - * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a DbPermission message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.DbPermission * @static - * @param {tabletmanagerdata.GetSchemaRequest} message GetSchemaRequest + * @param {tabletmanagerdata.DbPermission} message DbPermission * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaRequest.toObject = function toObject(message, options) { + DbPermission.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.tables = []; - object.exclude_tables = []; - } + if (options.objects || options.defaults) + object.privileges = {}; if (options.defaults) { - object.include_views = false; - object.table_schema_only = false; - } - if (message.tables && message.tables.length) { - object.tables = []; - for (let j = 0; j < message.tables.length; ++j) - object.tables[j] = message.tables[j]; + object.host = ""; + object.db = ""; + object.user = ""; } - if (message.include_views != null && message.hasOwnProperty("include_views")) - object.include_views = message.include_views; - if (message.exclude_tables && message.exclude_tables.length) { - object.exclude_tables = []; - for (let j = 0; j < message.exclude_tables.length; ++j) - object.exclude_tables[j] = message.exclude_tables[j]; + if (message.host != null && message.hasOwnProperty("host")) + object.host = message.host; + if (message.db != null && message.hasOwnProperty("db")) + object.db = message.db; + if (message.user != null && message.hasOwnProperty("user")) + object.user = message.user; + let keys2; + if (message.privileges && (keys2 = Object.keys(message.privileges)).length) { + object.privileges = {}; + for (let j = 0; j < keys2.length; ++j) + object.privileges[keys2[j]] = message.privileges[keys2[j]]; } - if (message.table_schema_only != null && message.hasOwnProperty("table_schema_only")) - object.table_schema_only = message.table_schema_only; return object; }; /** - * Converts this GetSchemaRequest to JSON. + * Converts this DbPermission to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.DbPermission * @instance * @returns {Object.} JSON object */ - GetSchemaRequest.prototype.toJSON = function toJSON() { + DbPermission.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSchemaRequest + * Gets the default type url for DbPermission * @function getTypeUrl - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.DbPermission * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DbPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.GetSchemaRequest"; + return typeUrlPrefix + "/tabletmanagerdata.DbPermission"; }; - return GetSchemaRequest; + return DbPermission; })(); - tabletmanagerdata.GetSchemaResponse = (function() { + tabletmanagerdata.Permissions = (function() { /** - * Properties of a GetSchemaResponse. + * Properties of a Permissions. * @memberof tabletmanagerdata - * @interface IGetSchemaResponse - * @property {tabletmanagerdata.ISchemaDefinition|null} [schema_definition] GetSchemaResponse schema_definition + * @interface IPermissions + * @property {Array.|null} [user_permissions] Permissions user_permissions + * @property {Array.|null} [db_permissions] Permissions db_permissions */ /** - * Constructs a new GetSchemaResponse. + * Constructs a new Permissions. * @memberof tabletmanagerdata - * @classdesc Represents a GetSchemaResponse. - * @implements IGetSchemaResponse + * @classdesc Represents a Permissions. + * @implements IPermissions * @constructor - * @param {tabletmanagerdata.IGetSchemaResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IPermissions=} [properties] Properties to set */ - function GetSchemaResponse(properties) { + function Permissions(properties) { + this.user_permissions = []; + this.db_permissions = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51929,75 +52377,95 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * GetSchemaResponse schema_definition. - * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} schema_definition - * @memberof tabletmanagerdata.GetSchemaResponse + * Permissions user_permissions. + * @member {Array.} user_permissions + * @memberof tabletmanagerdata.Permissions * @instance */ - GetSchemaResponse.prototype.schema_definition = null; + Permissions.prototype.user_permissions = $util.emptyArray; /** - * Creates a new GetSchemaResponse instance using the specified properties. + * Permissions db_permissions. + * @member {Array.} db_permissions + * @memberof tabletmanagerdata.Permissions + * @instance + */ + Permissions.prototype.db_permissions = $util.emptyArray; + + /** + * Creates a new Permissions instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetSchemaResponse + * @memberof tabletmanagerdata.Permissions * @static - * @param {tabletmanagerdata.IGetSchemaResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.GetSchemaResponse} GetSchemaResponse instance + * @param {tabletmanagerdata.IPermissions=} [properties] Properties to set + * @returns {tabletmanagerdata.Permissions} Permissions instance */ - GetSchemaResponse.create = function create(properties) { - return new GetSchemaResponse(properties); + Permissions.create = function create(properties) { + return new Permissions(properties); }; /** - * Encodes the specified GetSchemaResponse message. Does not implicitly {@link tabletmanagerdata.GetSchemaResponse.verify|verify} messages. + * Encodes the specified Permissions message. Does not implicitly {@link tabletmanagerdata.Permissions.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetSchemaResponse + * @memberof tabletmanagerdata.Permissions * @static - * @param {tabletmanagerdata.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode + * @param {tabletmanagerdata.IPermissions} message Permissions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaResponse.encode = function encode(message, writer) { + Permissions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.schema_definition != null && Object.hasOwnProperty.call(message, "schema_definition")) - $root.tabletmanagerdata.SchemaDefinition.encode(message.schema_definition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.user_permissions != null && message.user_permissions.length) + for (let i = 0; i < message.user_permissions.length; ++i) + $root.tabletmanagerdata.UserPermission.encode(message.user_permissions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.db_permissions != null && message.db_permissions.length) + for (let i = 0; i < message.db_permissions.length; ++i) + $root.tabletmanagerdata.DbPermission.encode(message.db_permissions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetSchemaResponse.verify|verify} messages. + * Encodes the specified Permissions message, length delimited. Does not implicitly {@link tabletmanagerdata.Permissions.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetSchemaResponse + * @memberof tabletmanagerdata.Permissions * @static - * @param {tabletmanagerdata.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode + * @param {tabletmanagerdata.IPermissions} message Permissions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + Permissions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer. + * Decodes a Permissions message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetSchemaResponse + * @memberof tabletmanagerdata.Permissions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetSchemaResponse} GetSchemaResponse + * @returns {tabletmanagerdata.Permissions} Permissions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaResponse.decode = function decode(reader, length) { + Permissions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetSchemaResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.Permissions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.schema_definition = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); + if (!(message.user_permissions && message.user_permissions.length)) + message.user_permissions = []; + message.user_permissions.push($root.tabletmanagerdata.UserPermission.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.db_permissions && message.db_permissions.length)) + message.db_permissions = []; + message.db_permissions.push($root.tabletmanagerdata.DbPermission.decode(reader, reader.uint32())); break; } default: @@ -52009,126 +52477,165 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a Permissions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.GetSchemaResponse + * @memberof tabletmanagerdata.Permissions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetSchemaResponse} GetSchemaResponse + * @returns {tabletmanagerdata.Permissions} Permissions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + Permissions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSchemaResponse message. + * Verifies a Permissions message. * @function verify - * @memberof tabletmanagerdata.GetSchemaResponse + * @memberof tabletmanagerdata.Permissions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSchemaResponse.verify = function verify(message) { + Permissions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.schema_definition != null && message.hasOwnProperty("schema_definition")) { - let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.schema_definition); - if (error) - return "schema_definition." + error; + if (message.user_permissions != null && message.hasOwnProperty("user_permissions")) { + if (!Array.isArray(message.user_permissions)) + return "user_permissions: array expected"; + for (let i = 0; i < message.user_permissions.length; ++i) { + let error = $root.tabletmanagerdata.UserPermission.verify(message.user_permissions[i]); + if (error) + return "user_permissions." + error; + } + } + if (message.db_permissions != null && message.hasOwnProperty("db_permissions")) { + if (!Array.isArray(message.db_permissions)) + return "db_permissions: array expected"; + for (let i = 0; i < message.db_permissions.length; ++i) { + let error = $root.tabletmanagerdata.DbPermission.verify(message.db_permissions[i]); + if (error) + return "db_permissions." + error; + } } return null; }; /** - * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Permissions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.GetSchemaResponse + * @memberof tabletmanagerdata.Permissions * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetSchemaResponse} GetSchemaResponse + * @returns {tabletmanagerdata.Permissions} Permissions */ - GetSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetSchemaResponse) + Permissions.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.Permissions) return object; - let message = new $root.tabletmanagerdata.GetSchemaResponse(); - if (object.schema_definition != null) { - if (typeof object.schema_definition !== "object") - throw TypeError(".tabletmanagerdata.GetSchemaResponse.schema_definition: object expected"); - message.schema_definition = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.schema_definition); + let message = new $root.tabletmanagerdata.Permissions(); + if (object.user_permissions) { + if (!Array.isArray(object.user_permissions)) + throw TypeError(".tabletmanagerdata.Permissions.user_permissions: array expected"); + message.user_permissions = []; + for (let i = 0; i < object.user_permissions.length; ++i) { + if (typeof object.user_permissions[i] !== "object") + throw TypeError(".tabletmanagerdata.Permissions.user_permissions: object expected"); + message.user_permissions[i] = $root.tabletmanagerdata.UserPermission.fromObject(object.user_permissions[i]); + } + } + if (object.db_permissions) { + if (!Array.isArray(object.db_permissions)) + throw TypeError(".tabletmanagerdata.Permissions.db_permissions: array expected"); + message.db_permissions = []; + for (let i = 0; i < object.db_permissions.length; ++i) { + if (typeof object.db_permissions[i] !== "object") + throw TypeError(".tabletmanagerdata.Permissions.db_permissions: object expected"); + message.db_permissions[i] = $root.tabletmanagerdata.DbPermission.fromObject(object.db_permissions[i]); + } } return message; }; /** - * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a Permissions message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.GetSchemaResponse + * @memberof tabletmanagerdata.Permissions * @static - * @param {tabletmanagerdata.GetSchemaResponse} message GetSchemaResponse + * @param {tabletmanagerdata.Permissions} message Permissions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaResponse.toObject = function toObject(message, options) { + Permissions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.schema_definition = null; - if (message.schema_definition != null && message.hasOwnProperty("schema_definition")) - object.schema_definition = $root.tabletmanagerdata.SchemaDefinition.toObject(message.schema_definition, options); + if (options.arrays || options.defaults) { + object.user_permissions = []; + object.db_permissions = []; + } + if (message.user_permissions && message.user_permissions.length) { + object.user_permissions = []; + for (let j = 0; j < message.user_permissions.length; ++j) + object.user_permissions[j] = $root.tabletmanagerdata.UserPermission.toObject(message.user_permissions[j], options); + } + if (message.db_permissions && message.db_permissions.length) { + object.db_permissions = []; + for (let j = 0; j < message.db_permissions.length; ++j) + object.db_permissions[j] = $root.tabletmanagerdata.DbPermission.toObject(message.db_permissions[j], options); + } return object; }; /** - * Converts this GetSchemaResponse to JSON. + * Converts this Permissions to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetSchemaResponse + * @memberof tabletmanagerdata.Permissions * @instance * @returns {Object.} JSON object */ - GetSchemaResponse.prototype.toJSON = function toJSON() { + Permissions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSchemaResponse + * Gets the default type url for Permissions * @function getTypeUrl - * @memberof tabletmanagerdata.GetSchemaResponse + * @memberof tabletmanagerdata.Permissions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Permissions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.GetSchemaResponse"; + return typeUrlPrefix + "/tabletmanagerdata.Permissions"; }; - return GetSchemaResponse; + return Permissions; })(); - tabletmanagerdata.GetPermissionsRequest = (function() { + tabletmanagerdata.PingRequest = (function() { /** - * Properties of a GetPermissionsRequest. + * Properties of a PingRequest. * @memberof tabletmanagerdata - * @interface IGetPermissionsRequest + * @interface IPingRequest + * @property {string|null} [payload] PingRequest payload */ /** - * Constructs a new GetPermissionsRequest. + * Constructs a new PingRequest. * @memberof tabletmanagerdata - * @classdesc Represents a GetPermissionsRequest. - * @implements IGetPermissionsRequest + * @classdesc Represents a PingRequest. + * @implements IPingRequest * @constructor - * @param {tabletmanagerdata.IGetPermissionsRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IPingRequest=} [properties] Properties to set */ - function GetPermissionsRequest(properties) { + function PingRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52136,63 +52643,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new GetPermissionsRequest instance using the specified properties. + * PingRequest payload. + * @member {string} payload + * @memberof tabletmanagerdata.PingRequest + * @instance + */ + PingRequest.prototype.payload = ""; + + /** + * Creates a new PingRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetPermissionsRequest + * @memberof tabletmanagerdata.PingRequest * @static - * @param {tabletmanagerdata.IGetPermissionsRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.GetPermissionsRequest} GetPermissionsRequest instance + * @param {tabletmanagerdata.IPingRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.PingRequest} PingRequest instance */ - GetPermissionsRequest.create = function create(properties) { - return new GetPermissionsRequest(properties); + PingRequest.create = function create(properties) { + return new PingRequest(properties); }; /** - * Encodes the specified GetPermissionsRequest message. Does not implicitly {@link tabletmanagerdata.GetPermissionsRequest.verify|verify} messages. + * Encodes the specified PingRequest message. Does not implicitly {@link tabletmanagerdata.PingRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetPermissionsRequest + * @memberof tabletmanagerdata.PingRequest * @static - * @param {tabletmanagerdata.IGetPermissionsRequest} message GetPermissionsRequest message or plain object to encode + * @param {tabletmanagerdata.IPingRequest} message PingRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPermissionsRequest.encode = function encode(message, writer) { + PingRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.payload); return writer; }; /** - * Encodes the specified GetPermissionsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetPermissionsRequest.verify|verify} messages. + * Encodes the specified PingRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PingRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetPermissionsRequest + * @memberof tabletmanagerdata.PingRequest * @static - * @param {tabletmanagerdata.IGetPermissionsRequest} message GetPermissionsRequest message or plain object to encode + * @param {tabletmanagerdata.IPingRequest} message PingRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPermissionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + PingRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPermissionsRequest message from the specified reader or buffer. + * Decodes a PingRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetPermissionsRequest + * @memberof tabletmanagerdata.PingRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetPermissionsRequest} GetPermissionsRequest + * @returns {tabletmanagerdata.PingRequest} PingRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPermissionsRequest.decode = function decode(reader, length) { + PingRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetPermissionsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PingRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.payload = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -52202,109 +52723,122 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a GetPermissionsRequest message from the specified reader or buffer, length delimited. + * Decodes a PingRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.GetPermissionsRequest + * @memberof tabletmanagerdata.PingRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetPermissionsRequest} GetPermissionsRequest + * @returns {tabletmanagerdata.PingRequest} PingRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPermissionsRequest.decodeDelimited = function decodeDelimited(reader) { + PingRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPermissionsRequest message. + * Verifies a PingRequest message. * @function verify - * @memberof tabletmanagerdata.GetPermissionsRequest + * @memberof tabletmanagerdata.PingRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPermissionsRequest.verify = function verify(message) { + PingRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.payload != null && message.hasOwnProperty("payload")) + if (!$util.isString(message.payload)) + return "payload: string expected"; return null; }; /** - * Creates a GetPermissionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PingRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.GetPermissionsRequest + * @memberof tabletmanagerdata.PingRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetPermissionsRequest} GetPermissionsRequest + * @returns {tabletmanagerdata.PingRequest} PingRequest */ - GetPermissionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetPermissionsRequest) + PingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.PingRequest) return object; - return new $root.tabletmanagerdata.GetPermissionsRequest(); + let message = new $root.tabletmanagerdata.PingRequest(); + if (object.payload != null) + message.payload = String(object.payload); + return message; }; /** - * Creates a plain object from a GetPermissionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a PingRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.GetPermissionsRequest + * @memberof tabletmanagerdata.PingRequest * @static - * @param {tabletmanagerdata.GetPermissionsRequest} message GetPermissionsRequest + * @param {tabletmanagerdata.PingRequest} message PingRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPermissionsRequest.toObject = function toObject() { - return {}; + PingRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.payload = ""; + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = message.payload; + return object; }; /** - * Converts this GetPermissionsRequest to JSON. + * Converts this PingRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetPermissionsRequest + * @memberof tabletmanagerdata.PingRequest * @instance * @returns {Object.} JSON object */ - GetPermissionsRequest.prototype.toJSON = function toJSON() { + PingRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPermissionsRequest + * Gets the default type url for PingRequest * @function getTypeUrl - * @memberof tabletmanagerdata.GetPermissionsRequest + * @memberof tabletmanagerdata.PingRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPermissionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.GetPermissionsRequest"; + return typeUrlPrefix + "/tabletmanagerdata.PingRequest"; }; - return GetPermissionsRequest; + return PingRequest; })(); - tabletmanagerdata.GetPermissionsResponse = (function() { + tabletmanagerdata.PingResponse = (function() { /** - * Properties of a GetPermissionsResponse. + * Properties of a PingResponse. * @memberof tabletmanagerdata - * @interface IGetPermissionsResponse - * @property {tabletmanagerdata.IPermissions|null} [permissions] GetPermissionsResponse permissions + * @interface IPingResponse + * @property {string|null} [payload] PingResponse payload */ /** - * Constructs a new GetPermissionsResponse. + * Constructs a new PingResponse. * @memberof tabletmanagerdata - * @classdesc Represents a GetPermissionsResponse. - * @implements IGetPermissionsResponse + * @classdesc Represents a PingResponse. + * @implements IPingResponse * @constructor - * @param {tabletmanagerdata.IGetPermissionsResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IPingResponse=} [properties] Properties to set */ - function GetPermissionsResponse(properties) { + function PingResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52312,75 +52846,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * GetPermissionsResponse permissions. - * @member {tabletmanagerdata.IPermissions|null|undefined} permissions - * @memberof tabletmanagerdata.GetPermissionsResponse + * PingResponse payload. + * @member {string} payload + * @memberof tabletmanagerdata.PingResponse * @instance */ - GetPermissionsResponse.prototype.permissions = null; + PingResponse.prototype.payload = ""; /** - * Creates a new GetPermissionsResponse instance using the specified properties. + * Creates a new PingResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.PingResponse * @static - * @param {tabletmanagerdata.IGetPermissionsResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.GetPermissionsResponse} GetPermissionsResponse instance + * @param {tabletmanagerdata.IPingResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.PingResponse} PingResponse instance */ - GetPermissionsResponse.create = function create(properties) { - return new GetPermissionsResponse(properties); + PingResponse.create = function create(properties) { + return new PingResponse(properties); }; /** - * Encodes the specified GetPermissionsResponse message. Does not implicitly {@link tabletmanagerdata.GetPermissionsResponse.verify|verify} messages. + * Encodes the specified PingResponse message. Does not implicitly {@link tabletmanagerdata.PingResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.PingResponse * @static - * @param {tabletmanagerdata.IGetPermissionsResponse} message GetPermissionsResponse message or plain object to encode + * @param {tabletmanagerdata.IPingResponse} message PingResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPermissionsResponse.encode = function encode(message, writer) { + PingResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.permissions != null && Object.hasOwnProperty.call(message, "permissions")) - $root.tabletmanagerdata.Permissions.encode(message.permissions, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.payload); return writer; }; /** - * Encodes the specified GetPermissionsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetPermissionsResponse.verify|verify} messages. + * Encodes the specified PingResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PingResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.PingResponse * @static - * @param {tabletmanagerdata.IGetPermissionsResponse} message GetPermissionsResponse message or plain object to encode + * @param {tabletmanagerdata.IPingResponse} message PingResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPermissionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + PingResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPermissionsResponse message from the specified reader or buffer. + * Decodes a PingResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.PingResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetPermissionsResponse} GetPermissionsResponse + * @returns {tabletmanagerdata.PingResponse} PingResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPermissionsResponse.decode = function decode(reader, length) { + PingResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetPermissionsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PingResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.permissions = $root.tabletmanagerdata.Permissions.decode(reader, reader.uint32()); + message.payload = reader.string(); break; } default: @@ -52392,128 +52926,122 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a GetPermissionsResponse message from the specified reader or buffer, length delimited. + * Decodes a PingResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.PingResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetPermissionsResponse} GetPermissionsResponse + * @returns {tabletmanagerdata.PingResponse} PingResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPermissionsResponse.decodeDelimited = function decodeDelimited(reader) { + PingResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPermissionsResponse message. + * Verifies a PingResponse message. * @function verify - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.PingResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPermissionsResponse.verify = function verify(message) { + PingResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.permissions != null && message.hasOwnProperty("permissions")) { - let error = $root.tabletmanagerdata.Permissions.verify(message.permissions); - if (error) - return "permissions." + error; - } + if (message.payload != null && message.hasOwnProperty("payload")) + if (!$util.isString(message.payload)) + return "payload: string expected"; return null; }; /** - * Creates a GetPermissionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PingResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.PingResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetPermissionsResponse} GetPermissionsResponse + * @returns {tabletmanagerdata.PingResponse} PingResponse */ - GetPermissionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetPermissionsResponse) + PingResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.PingResponse) return object; - let message = new $root.tabletmanagerdata.GetPermissionsResponse(); - if (object.permissions != null) { - if (typeof object.permissions !== "object") - throw TypeError(".tabletmanagerdata.GetPermissionsResponse.permissions: object expected"); - message.permissions = $root.tabletmanagerdata.Permissions.fromObject(object.permissions); - } + let message = new $root.tabletmanagerdata.PingResponse(); + if (object.payload != null) + message.payload = String(object.payload); return message; }; /** - * Creates a plain object from a GetPermissionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a PingResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.PingResponse * @static - * @param {tabletmanagerdata.GetPermissionsResponse} message GetPermissionsResponse + * @param {tabletmanagerdata.PingResponse} message PingResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPermissionsResponse.toObject = function toObject(message, options) { + PingResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.permissions = null; - if (message.permissions != null && message.hasOwnProperty("permissions")) - object.permissions = $root.tabletmanagerdata.Permissions.toObject(message.permissions, options); - return object; + object.payload = ""; + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = message.payload; + return object; }; /** - * Converts this GetPermissionsResponse to JSON. + * Converts this PingResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.PingResponse * @instance * @returns {Object.} JSON object */ - GetPermissionsResponse.prototype.toJSON = function toJSON() { + PingResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPermissionsResponse + * Gets the default type url for PingResponse * @function getTypeUrl - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.PingResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPermissionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PingResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.GetPermissionsResponse"; + return typeUrlPrefix + "/tabletmanagerdata.PingResponse"; }; - return GetPermissionsResponse; + return PingResponse; })(); - tabletmanagerdata.GetGlobalStatusVarsRequest = (function() { + tabletmanagerdata.SleepRequest = (function() { /** - * Properties of a GetGlobalStatusVarsRequest. + * Properties of a SleepRequest. * @memberof tabletmanagerdata - * @interface IGetGlobalStatusVarsRequest - * @property {Array.|null} [variables] GetGlobalStatusVarsRequest variables + * @interface ISleepRequest + * @property {number|Long|null} [duration] SleepRequest duration */ /** - * Constructs a new GetGlobalStatusVarsRequest. + * Constructs a new SleepRequest. * @memberof tabletmanagerdata - * @classdesc Represents a GetGlobalStatusVarsRequest. - * @implements IGetGlobalStatusVarsRequest + * @classdesc Represents a SleepRequest. + * @implements ISleepRequest * @constructor - * @param {tabletmanagerdata.IGetGlobalStatusVarsRequest=} [properties] Properties to set + * @param {tabletmanagerdata.ISleepRequest=} [properties] Properties to set */ - function GetGlobalStatusVarsRequest(properties) { - this.variables = []; + function SleepRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52521,78 +53049,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * GetGlobalStatusVarsRequest variables. - * @member {Array.} variables - * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest + * SleepRequest duration. + * @member {number|Long} duration + * @memberof tabletmanagerdata.SleepRequest * @instance */ - GetGlobalStatusVarsRequest.prototype.variables = $util.emptyArray; + SleepRequest.prototype.duration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new GetGlobalStatusVarsRequest instance using the specified properties. + * Creates a new SleepRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest + * @memberof tabletmanagerdata.SleepRequest * @static - * @param {tabletmanagerdata.IGetGlobalStatusVarsRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.GetGlobalStatusVarsRequest} GetGlobalStatusVarsRequest instance + * @param {tabletmanagerdata.ISleepRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.SleepRequest} SleepRequest instance */ - GetGlobalStatusVarsRequest.create = function create(properties) { - return new GetGlobalStatusVarsRequest(properties); + SleepRequest.create = function create(properties) { + return new SleepRequest(properties); }; /** - * Encodes the specified GetGlobalStatusVarsRequest message. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsRequest.verify|verify} messages. + * Encodes the specified SleepRequest message. Does not implicitly {@link tabletmanagerdata.SleepRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest + * @memberof tabletmanagerdata.SleepRequest * @static - * @param {tabletmanagerdata.IGetGlobalStatusVarsRequest} message GetGlobalStatusVarsRequest message or plain object to encode + * @param {tabletmanagerdata.ISleepRequest} message SleepRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGlobalStatusVarsRequest.encode = function encode(message, writer) { + SleepRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.variables != null && message.variables.length) - for (let i = 0; i < message.variables.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.variables[i]); + if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.duration); return writer; }; /** - * Encodes the specified GetGlobalStatusVarsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsRequest.verify|verify} messages. + * Encodes the specified SleepRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SleepRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest + * @memberof tabletmanagerdata.SleepRequest * @static - * @param {tabletmanagerdata.IGetGlobalStatusVarsRequest} message GetGlobalStatusVarsRequest message or plain object to encode + * @param {tabletmanagerdata.ISleepRequest} message SleepRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGlobalStatusVarsRequest.encodeDelimited = function encodeDelimited(message, writer) { + SleepRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetGlobalStatusVarsRequest message from the specified reader or buffer. + * Decodes a SleepRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest + * @memberof tabletmanagerdata.SleepRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetGlobalStatusVarsRequest} GetGlobalStatusVarsRequest + * @returns {tabletmanagerdata.SleepRequest} SleepRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGlobalStatusVarsRequest.decode = function decode(reader, length) { + SleepRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetGlobalStatusVarsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SleepRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.variables && message.variables.length)) - message.variables = []; - message.variables.push(reader.string()); + message.duration = reader.int64(); break; } default: @@ -52604,135 +53129,135 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a GetGlobalStatusVarsRequest message from the specified reader or buffer, length delimited. + * Decodes a SleepRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest + * @memberof tabletmanagerdata.SleepRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetGlobalStatusVarsRequest} GetGlobalStatusVarsRequest + * @returns {tabletmanagerdata.SleepRequest} SleepRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGlobalStatusVarsRequest.decodeDelimited = function decodeDelimited(reader) { + SleepRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetGlobalStatusVarsRequest message. + * Verifies a SleepRequest message. * @function verify - * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest + * @memberof tabletmanagerdata.SleepRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetGlobalStatusVarsRequest.verify = function verify(message) { + SleepRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.variables != null && message.hasOwnProperty("variables")) { - if (!Array.isArray(message.variables)) - return "variables: array expected"; - for (let i = 0; i < message.variables.length; ++i) - if (!$util.isString(message.variables[i])) - return "variables: string[] expected"; - } + if (message.duration != null && message.hasOwnProperty("duration")) + if (!$util.isInteger(message.duration) && !(message.duration && $util.isInteger(message.duration.low) && $util.isInteger(message.duration.high))) + return "duration: integer|Long expected"; return null; }; /** - * Creates a GetGlobalStatusVarsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SleepRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest + * @memberof tabletmanagerdata.SleepRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetGlobalStatusVarsRequest} GetGlobalStatusVarsRequest + * @returns {tabletmanagerdata.SleepRequest} SleepRequest */ - GetGlobalStatusVarsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetGlobalStatusVarsRequest) + SleepRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SleepRequest) return object; - let message = new $root.tabletmanagerdata.GetGlobalStatusVarsRequest(); - if (object.variables) { - if (!Array.isArray(object.variables)) - throw TypeError(".tabletmanagerdata.GetGlobalStatusVarsRequest.variables: array expected"); - message.variables = []; - for (let i = 0; i < object.variables.length; ++i) - message.variables[i] = String(object.variables[i]); - } + let message = new $root.tabletmanagerdata.SleepRequest(); + if (object.duration != null) + if ($util.Long) + (message.duration = $util.Long.fromValue(object.duration)).unsigned = false; + else if (typeof object.duration === "string") + message.duration = parseInt(object.duration, 10); + else if (typeof object.duration === "number") + message.duration = object.duration; + else if (typeof object.duration === "object") + message.duration = new $util.LongBits(object.duration.low >>> 0, object.duration.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a GetGlobalStatusVarsRequest message. Also converts values to other types if specified. + * Creates a plain object from a SleepRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest + * @memberof tabletmanagerdata.SleepRequest * @static - * @param {tabletmanagerdata.GetGlobalStatusVarsRequest} message GetGlobalStatusVarsRequest + * @param {tabletmanagerdata.SleepRequest} message SleepRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetGlobalStatusVarsRequest.toObject = function toObject(message, options) { + SleepRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.variables = []; - if (message.variables && message.variables.length) { - object.variables = []; - for (let j = 0; j < message.variables.length; ++j) - object.variables[j] = message.variables[j]; - } + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.duration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.duration = options.longs === String ? "0" : 0; + if (message.duration != null && message.hasOwnProperty("duration")) + if (typeof message.duration === "number") + object.duration = options.longs === String ? String(message.duration) : message.duration; + else + object.duration = options.longs === String ? $util.Long.prototype.toString.call(message.duration) : options.longs === Number ? new $util.LongBits(message.duration.low >>> 0, message.duration.high >>> 0).toNumber() : message.duration; return object; }; /** - * Converts this GetGlobalStatusVarsRequest to JSON. + * Converts this SleepRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest + * @memberof tabletmanagerdata.SleepRequest * @instance * @returns {Object.} JSON object */ - GetGlobalStatusVarsRequest.prototype.toJSON = function toJSON() { + SleepRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetGlobalStatusVarsRequest + * Gets the default type url for SleepRequest * @function getTypeUrl - * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest + * @memberof tabletmanagerdata.SleepRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetGlobalStatusVarsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SleepRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.GetGlobalStatusVarsRequest"; + return typeUrlPrefix + "/tabletmanagerdata.SleepRequest"; }; - return GetGlobalStatusVarsRequest; + return SleepRequest; })(); - tabletmanagerdata.GetGlobalStatusVarsResponse = (function() { + tabletmanagerdata.SleepResponse = (function() { /** - * Properties of a GetGlobalStatusVarsResponse. + * Properties of a SleepResponse. * @memberof tabletmanagerdata - * @interface IGetGlobalStatusVarsResponse - * @property {Object.|null} [status_values] GetGlobalStatusVarsResponse status_values + * @interface ISleepResponse */ /** - * Constructs a new GetGlobalStatusVarsResponse. + * Constructs a new SleepResponse. * @memberof tabletmanagerdata - * @classdesc Represents a GetGlobalStatusVarsResponse. - * @implements IGetGlobalStatusVarsResponse + * @classdesc Represents a SleepResponse. + * @implements ISleepResponse * @constructor - * @param {tabletmanagerdata.IGetGlobalStatusVarsResponse=} [properties] Properties to set + * @param {tabletmanagerdata.ISleepResponse=} [properties] Properties to set */ - function GetGlobalStatusVarsResponse(properties) { - this.status_values = {}; + function SleepResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52740,97 +53265,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * GetGlobalStatusVarsResponse status_values. - * @member {Object.} status_values - * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse - * @instance - */ - GetGlobalStatusVarsResponse.prototype.status_values = $util.emptyObject; - - /** - * Creates a new GetGlobalStatusVarsResponse instance using the specified properties. + * Creates a new SleepResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse + * @memberof tabletmanagerdata.SleepResponse * @static - * @param {tabletmanagerdata.IGetGlobalStatusVarsResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.GetGlobalStatusVarsResponse} GetGlobalStatusVarsResponse instance + * @param {tabletmanagerdata.ISleepResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.SleepResponse} SleepResponse instance */ - GetGlobalStatusVarsResponse.create = function create(properties) { - return new GetGlobalStatusVarsResponse(properties); + SleepResponse.create = function create(properties) { + return new SleepResponse(properties); }; /** - * Encodes the specified GetGlobalStatusVarsResponse message. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsResponse.verify|verify} messages. + * Encodes the specified SleepResponse message. Does not implicitly {@link tabletmanagerdata.SleepResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse + * @memberof tabletmanagerdata.SleepResponse * @static - * @param {tabletmanagerdata.IGetGlobalStatusVarsResponse} message GetGlobalStatusVarsResponse message or plain object to encode + * @param {tabletmanagerdata.ISleepResponse} message SleepResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGlobalStatusVarsResponse.encode = function encode(message, writer) { + SleepResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.status_values != null && Object.hasOwnProperty.call(message, "status_values")) - for (let keys = Object.keys(message.status_values), 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.status_values[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified GetGlobalStatusVarsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsResponse.verify|verify} messages. + * Encodes the specified SleepResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SleepResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse + * @memberof tabletmanagerdata.SleepResponse * @static - * @param {tabletmanagerdata.IGetGlobalStatusVarsResponse} message GetGlobalStatusVarsResponse message or plain object to encode + * @param {tabletmanagerdata.ISleepResponse} message SleepResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGlobalStatusVarsResponse.encodeDelimited = function encodeDelimited(message, writer) { + SleepResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetGlobalStatusVarsResponse message from the specified reader or buffer. + * Decodes a SleepResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse + * @memberof tabletmanagerdata.SleepResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetGlobalStatusVarsResponse} GetGlobalStatusVarsResponse + * @returns {tabletmanagerdata.SleepResponse} SleepResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGlobalStatusVarsResponse.decode = function decode(reader, length) { + SleepResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetGlobalStatusVarsResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SleepResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (message.status_values === $util.emptyObject) - message.status_values = {}; - 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.status_values[key] = value; - break; - } default: reader.skipType(tag & 7); break; @@ -52840,135 +53331,113 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a GetGlobalStatusVarsResponse message from the specified reader or buffer, length delimited. + * Decodes a SleepResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse + * @memberof tabletmanagerdata.SleepResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetGlobalStatusVarsResponse} GetGlobalStatusVarsResponse + * @returns {tabletmanagerdata.SleepResponse} SleepResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGlobalStatusVarsResponse.decodeDelimited = function decodeDelimited(reader) { + SleepResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetGlobalStatusVarsResponse message. + * Verifies a SleepResponse message. * @function verify - * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse + * @memberof tabletmanagerdata.SleepResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetGlobalStatusVarsResponse.verify = function verify(message) { + SleepResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.status_values != null && message.hasOwnProperty("status_values")) { - if (!$util.isObject(message.status_values)) - return "status_values: object expected"; - let key = Object.keys(message.status_values); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.status_values[key[i]])) - return "status_values: string{k:string} expected"; - } return null; }; /** - * Creates a GetGlobalStatusVarsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SleepResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse + * @memberof tabletmanagerdata.SleepResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetGlobalStatusVarsResponse} GetGlobalStatusVarsResponse + * @returns {tabletmanagerdata.SleepResponse} SleepResponse */ - GetGlobalStatusVarsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetGlobalStatusVarsResponse) + SleepResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SleepResponse) return object; - let message = new $root.tabletmanagerdata.GetGlobalStatusVarsResponse(); - if (object.status_values) { - if (typeof object.status_values !== "object") - throw TypeError(".tabletmanagerdata.GetGlobalStatusVarsResponse.status_values: object expected"); - message.status_values = {}; - for (let keys = Object.keys(object.status_values), i = 0; i < keys.length; ++i) - message.status_values[keys[i]] = String(object.status_values[keys[i]]); - } - return message; + return new $root.tabletmanagerdata.SleepResponse(); }; /** - * Creates a plain object from a GetGlobalStatusVarsResponse message. Also converts values to other types if specified. + * Creates a plain object from a SleepResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse + * @memberof tabletmanagerdata.SleepResponse * @static - * @param {tabletmanagerdata.GetGlobalStatusVarsResponse} message GetGlobalStatusVarsResponse + * @param {tabletmanagerdata.SleepResponse} message SleepResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetGlobalStatusVarsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.objects || options.defaults) - object.status_values = {}; - let keys2; - if (message.status_values && (keys2 = Object.keys(message.status_values)).length) { - object.status_values = {}; - for (let j = 0; j < keys2.length; ++j) - object.status_values[keys2[j]] = message.status_values[keys2[j]]; - } - return object; + SleepResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetGlobalStatusVarsResponse to JSON. + * Converts this SleepResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse + * @memberof tabletmanagerdata.SleepResponse * @instance * @returns {Object.} JSON object */ - GetGlobalStatusVarsResponse.prototype.toJSON = function toJSON() { + SleepResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetGlobalStatusVarsResponse + * Gets the default type url for SleepResponse * @function getTypeUrl - * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse + * @memberof tabletmanagerdata.SleepResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetGlobalStatusVarsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SleepResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.GetGlobalStatusVarsResponse"; + return typeUrlPrefix + "/tabletmanagerdata.SleepResponse"; }; - return GetGlobalStatusVarsResponse; + return SleepResponse; })(); - tabletmanagerdata.SetReadOnlyRequest = (function() { + tabletmanagerdata.ExecuteHookRequest = (function() { /** - * Properties of a SetReadOnlyRequest. + * Properties of an ExecuteHookRequest. * @memberof tabletmanagerdata - * @interface ISetReadOnlyRequest + * @interface IExecuteHookRequest + * @property {string|null} [name] ExecuteHookRequest name + * @property {Array.|null} [parameters] ExecuteHookRequest parameters + * @property {Object.|null} [extra_env] ExecuteHookRequest extra_env */ /** - * Constructs a new SetReadOnlyRequest. + * Constructs a new ExecuteHookRequest. * @memberof tabletmanagerdata - * @classdesc Represents a SetReadOnlyRequest. - * @implements ISetReadOnlyRequest + * @classdesc Represents an ExecuteHookRequest. + * @implements IExecuteHookRequest * @constructor - * @param {tabletmanagerdata.ISetReadOnlyRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IExecuteHookRequest=} [properties] Properties to set */ - function SetReadOnlyRequest(properties) { + function ExecuteHookRequest(properties) { + this.parameters = []; + this.extra_env = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52976,63 +53445,128 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new SetReadOnlyRequest instance using the specified properties. + * ExecuteHookRequest name. + * @member {string} name + * @memberof tabletmanagerdata.ExecuteHookRequest + * @instance + */ + ExecuteHookRequest.prototype.name = ""; + + /** + * ExecuteHookRequest parameters. + * @member {Array.} parameters + * @memberof tabletmanagerdata.ExecuteHookRequest + * @instance + */ + ExecuteHookRequest.prototype.parameters = $util.emptyArray; + + /** + * ExecuteHookRequest extra_env. + * @member {Object.} extra_env + * @memberof tabletmanagerdata.ExecuteHookRequest + * @instance + */ + ExecuteHookRequest.prototype.extra_env = $util.emptyObject; + + /** + * Creates a new ExecuteHookRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @memberof tabletmanagerdata.ExecuteHookRequest * @static - * @param {tabletmanagerdata.ISetReadOnlyRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.SetReadOnlyRequest} SetReadOnlyRequest instance + * @param {tabletmanagerdata.IExecuteHookRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ExecuteHookRequest} ExecuteHookRequest instance */ - SetReadOnlyRequest.create = function create(properties) { - return new SetReadOnlyRequest(properties); + ExecuteHookRequest.create = function create(properties) { + return new ExecuteHookRequest(properties); }; /** - * Encodes the specified SetReadOnlyRequest message. Does not implicitly {@link tabletmanagerdata.SetReadOnlyRequest.verify|verify} messages. + * Encodes the specified ExecuteHookRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteHookRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @memberof tabletmanagerdata.ExecuteHookRequest * @static - * @param {tabletmanagerdata.ISetReadOnlyRequest} message SetReadOnlyRequest message or plain object to encode + * @param {tabletmanagerdata.IExecuteHookRequest} message ExecuteHookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetReadOnlyRequest.encode = function encode(message, writer) { + ExecuteHookRequest.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.parameters != null && message.parameters.length) + for (let i = 0; i < message.parameters.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameters[i]); + if (message.extra_env != null && Object.hasOwnProperty.call(message, "extra_env")) + for (let keys = Object.keys(message.extra_env), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.extra_env[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified SetReadOnlyRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadOnlyRequest.verify|verify} messages. + * Encodes the specified ExecuteHookRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteHookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @memberof tabletmanagerdata.ExecuteHookRequest * @static - * @param {tabletmanagerdata.ISetReadOnlyRequest} message SetReadOnlyRequest message or plain object to encode + * @param {tabletmanagerdata.IExecuteHookRequest} message ExecuteHookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetReadOnlyRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteHookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetReadOnlyRequest message from the specified reader or buffer. + * Decodes an ExecuteHookRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @memberof tabletmanagerdata.ExecuteHookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.SetReadOnlyRequest} SetReadOnlyRequest + * @returns {tabletmanagerdata.ExecuteHookRequest} ExecuteHookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetReadOnlyRequest.decode = function decode(reader, length) { + ExecuteHookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadOnlyRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteHookRequest(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push(reader.string()); + break; + } + case 3: { + if (message.extra_env === $util.emptyObject) + message.extra_env = {}; + 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.extra_env[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -53042,108 +53576,168 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a SetReadOnlyRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteHookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @memberof tabletmanagerdata.ExecuteHookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SetReadOnlyRequest} SetReadOnlyRequest + * @returns {tabletmanagerdata.ExecuteHookRequest} ExecuteHookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetReadOnlyRequest.decodeDelimited = function decodeDelimited(reader) { + ExecuteHookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetReadOnlyRequest message. + * Verifies an ExecuteHookRequest message. * @function verify - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @memberof tabletmanagerdata.ExecuteHookRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetReadOnlyRequest.verify = function verify(message) { + ExecuteHookRequest.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.parameters != null && message.hasOwnProperty("parameters")) { + if (!Array.isArray(message.parameters)) + return "parameters: array expected"; + for (let i = 0; i < message.parameters.length; ++i) + if (!$util.isString(message.parameters[i])) + return "parameters: string[] expected"; + } + if (message.extra_env != null && message.hasOwnProperty("extra_env")) { + if (!$util.isObject(message.extra_env)) + return "extra_env: object expected"; + let key = Object.keys(message.extra_env); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.extra_env[key[i]])) + return "extra_env: string{k:string} expected"; + } return null; }; /** - * Creates a SetReadOnlyRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteHookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @memberof tabletmanagerdata.ExecuteHookRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SetReadOnlyRequest} SetReadOnlyRequest + * @returns {tabletmanagerdata.ExecuteHookRequest} ExecuteHookRequest */ - SetReadOnlyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SetReadOnlyRequest) + ExecuteHookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ExecuteHookRequest) return object; - return new $root.tabletmanagerdata.SetReadOnlyRequest(); + let message = new $root.tabletmanagerdata.ExecuteHookRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".tabletmanagerdata.ExecuteHookRequest.parameters: array expected"); + message.parameters = []; + for (let i = 0; i < object.parameters.length; ++i) + message.parameters[i] = String(object.parameters[i]); + } + if (object.extra_env) { + if (typeof object.extra_env !== "object") + throw TypeError(".tabletmanagerdata.ExecuteHookRequest.extra_env: object expected"); + message.extra_env = {}; + for (let keys = Object.keys(object.extra_env), i = 0; i < keys.length; ++i) + message.extra_env[keys[i]] = String(object.extra_env[keys[i]]); + } + return message; }; /** - * Creates a plain object from a SetReadOnlyRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteHookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @memberof tabletmanagerdata.ExecuteHookRequest * @static - * @param {tabletmanagerdata.SetReadOnlyRequest} message SetReadOnlyRequest + * @param {tabletmanagerdata.ExecuteHookRequest} message ExecuteHookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetReadOnlyRequest.toObject = function toObject() { - return {}; + ExecuteHookRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.parameters = []; + if (options.objects || options.defaults) + object.extra_env = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parameters && message.parameters.length) { + object.parameters = []; + for (let j = 0; j < message.parameters.length; ++j) + object.parameters[j] = message.parameters[j]; + } + let keys2; + if (message.extra_env && (keys2 = Object.keys(message.extra_env)).length) { + object.extra_env = {}; + for (let j = 0; j < keys2.length; ++j) + object.extra_env[keys2[j]] = message.extra_env[keys2[j]]; + } + return object; }; /** - * Converts this SetReadOnlyRequest to JSON. + * Converts this ExecuteHookRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @memberof tabletmanagerdata.ExecuteHookRequest * @instance * @returns {Object.} JSON object */ - SetReadOnlyRequest.prototype.toJSON = function toJSON() { + ExecuteHookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetReadOnlyRequest + * Gets the default type url for ExecuteHookRequest * @function getTypeUrl - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @memberof tabletmanagerdata.ExecuteHookRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetReadOnlyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteHookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.SetReadOnlyRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ExecuteHookRequest"; }; - return SetReadOnlyRequest; + return ExecuteHookRequest; })(); - tabletmanagerdata.SetReadOnlyResponse = (function() { + tabletmanagerdata.ExecuteHookResponse = (function() { /** - * Properties of a SetReadOnlyResponse. + * Properties of an ExecuteHookResponse. * @memberof tabletmanagerdata - * @interface ISetReadOnlyResponse + * @interface IExecuteHookResponse + * @property {number|Long|null} [exit_status] ExecuteHookResponse exit_status + * @property {string|null} [stdout] ExecuteHookResponse stdout + * @property {string|null} [stderr] ExecuteHookResponse stderr */ /** - * Constructs a new SetReadOnlyResponse. + * Constructs a new ExecuteHookResponse. * @memberof tabletmanagerdata - * @classdesc Represents a SetReadOnlyResponse. - * @implements ISetReadOnlyResponse + * @classdesc Represents an ExecuteHookResponse. + * @implements IExecuteHookResponse * @constructor - * @param {tabletmanagerdata.ISetReadOnlyResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IExecuteHookResponse=} [properties] Properties to set */ - function SetReadOnlyResponse(properties) { + function ExecuteHookResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53151,63 +53745,105 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new SetReadOnlyResponse instance using the specified properties. + * ExecuteHookResponse exit_status. + * @member {number|Long} exit_status + * @memberof tabletmanagerdata.ExecuteHookResponse + * @instance + */ + ExecuteHookResponse.prototype.exit_status = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ExecuteHookResponse stdout. + * @member {string} stdout + * @memberof tabletmanagerdata.ExecuteHookResponse + * @instance + */ + ExecuteHookResponse.prototype.stdout = ""; + + /** + * ExecuteHookResponse stderr. + * @member {string} stderr + * @memberof tabletmanagerdata.ExecuteHookResponse + * @instance + */ + ExecuteHookResponse.prototype.stderr = ""; + + /** + * Creates a new ExecuteHookResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.ExecuteHookResponse * @static - * @param {tabletmanagerdata.ISetReadOnlyResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.SetReadOnlyResponse} SetReadOnlyResponse instance + * @param {tabletmanagerdata.IExecuteHookResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ExecuteHookResponse} ExecuteHookResponse instance */ - SetReadOnlyResponse.create = function create(properties) { - return new SetReadOnlyResponse(properties); + ExecuteHookResponse.create = function create(properties) { + return new ExecuteHookResponse(properties); }; /** - * Encodes the specified SetReadOnlyResponse message. Does not implicitly {@link tabletmanagerdata.SetReadOnlyResponse.verify|verify} messages. + * Encodes the specified ExecuteHookResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteHookResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.ExecuteHookResponse * @static - * @param {tabletmanagerdata.ISetReadOnlyResponse} message SetReadOnlyResponse message or plain object to encode + * @param {tabletmanagerdata.IExecuteHookResponse} message ExecuteHookResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetReadOnlyResponse.encode = function encode(message, writer) { + ExecuteHookResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.exit_status != null && Object.hasOwnProperty.call(message, "exit_status")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.exit_status); + if (message.stdout != null && Object.hasOwnProperty.call(message, "stdout")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.stdout); + if (message.stderr != null && Object.hasOwnProperty.call(message, "stderr")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stderr); return writer; }; /** - * Encodes the specified SetReadOnlyResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadOnlyResponse.verify|verify} messages. + * Encodes the specified ExecuteHookResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteHookResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.ExecuteHookResponse * @static - * @param {tabletmanagerdata.ISetReadOnlyResponse} message SetReadOnlyResponse message or plain object to encode + * @param {tabletmanagerdata.IExecuteHookResponse} message ExecuteHookResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetReadOnlyResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteHookResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetReadOnlyResponse message from the specified reader or buffer. + * Decodes an ExecuteHookResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.ExecuteHookResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.SetReadOnlyResponse} SetReadOnlyResponse + * @returns {tabletmanagerdata.ExecuteHookResponse} ExecuteHookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetReadOnlyResponse.decode = function decode(reader, length) { + ExecuteHookResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadOnlyResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteHookResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.exit_status = reader.int64(); + break; + } + case 2: { + message.stdout = reader.string(); + break; + } + case 3: { + message.stderr = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -53217,108 +53853,158 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a SetReadOnlyResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteHookResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.ExecuteHookResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SetReadOnlyResponse} SetReadOnlyResponse + * @returns {tabletmanagerdata.ExecuteHookResponse} ExecuteHookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetReadOnlyResponse.decodeDelimited = function decodeDelimited(reader) { + ExecuteHookResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetReadOnlyResponse message. + * Verifies an ExecuteHookResponse message. * @function verify - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.ExecuteHookResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetReadOnlyResponse.verify = function verify(message) { + ExecuteHookResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.exit_status != null && message.hasOwnProperty("exit_status")) + if (!$util.isInteger(message.exit_status) && !(message.exit_status && $util.isInteger(message.exit_status.low) && $util.isInteger(message.exit_status.high))) + return "exit_status: integer|Long expected"; + if (message.stdout != null && message.hasOwnProperty("stdout")) + if (!$util.isString(message.stdout)) + return "stdout: string expected"; + if (message.stderr != null && message.hasOwnProperty("stderr")) + if (!$util.isString(message.stderr)) + return "stderr: string expected"; return null; }; /** - * Creates a SetReadOnlyResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteHookResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.ExecuteHookResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SetReadOnlyResponse} SetReadOnlyResponse + * @returns {tabletmanagerdata.ExecuteHookResponse} ExecuteHookResponse */ - SetReadOnlyResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SetReadOnlyResponse) + ExecuteHookResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ExecuteHookResponse) return object; - return new $root.tabletmanagerdata.SetReadOnlyResponse(); + let message = new $root.tabletmanagerdata.ExecuteHookResponse(); + if (object.exit_status != null) + if ($util.Long) + (message.exit_status = $util.Long.fromValue(object.exit_status)).unsigned = false; + else if (typeof object.exit_status === "string") + message.exit_status = parseInt(object.exit_status, 10); + else if (typeof object.exit_status === "number") + message.exit_status = object.exit_status; + else if (typeof object.exit_status === "object") + message.exit_status = new $util.LongBits(object.exit_status.low >>> 0, object.exit_status.high >>> 0).toNumber(); + if (object.stdout != null) + message.stdout = String(object.stdout); + if (object.stderr != null) + message.stderr = String(object.stderr); + return message; }; /** - * Creates a plain object from a SetReadOnlyResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteHookResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.ExecuteHookResponse * @static - * @param {tabletmanagerdata.SetReadOnlyResponse} message SetReadOnlyResponse + * @param {tabletmanagerdata.ExecuteHookResponse} message ExecuteHookResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetReadOnlyResponse.toObject = function toObject() { - return {}; + ExecuteHookResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.exit_status = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.exit_status = options.longs === String ? "0" : 0; + object.stdout = ""; + object.stderr = ""; + } + if (message.exit_status != null && message.hasOwnProperty("exit_status")) + if (typeof message.exit_status === "number") + object.exit_status = options.longs === String ? String(message.exit_status) : message.exit_status; + else + object.exit_status = options.longs === String ? $util.Long.prototype.toString.call(message.exit_status) : options.longs === Number ? new $util.LongBits(message.exit_status.low >>> 0, message.exit_status.high >>> 0).toNumber() : message.exit_status; + if (message.stdout != null && message.hasOwnProperty("stdout")) + object.stdout = message.stdout; + if (message.stderr != null && message.hasOwnProperty("stderr")) + object.stderr = message.stderr; + return object; }; /** - * Converts this SetReadOnlyResponse to JSON. + * Converts this ExecuteHookResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.ExecuteHookResponse * @instance * @returns {Object.} JSON object */ - SetReadOnlyResponse.prototype.toJSON = function toJSON() { + ExecuteHookResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetReadOnlyResponse + * Gets the default type url for ExecuteHookResponse * @function getTypeUrl - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.ExecuteHookResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetReadOnlyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteHookResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.SetReadOnlyResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ExecuteHookResponse"; }; - return SetReadOnlyResponse; + return ExecuteHookResponse; })(); - tabletmanagerdata.SetReadWriteRequest = (function() { + tabletmanagerdata.GetSchemaRequest = (function() { /** - * Properties of a SetReadWriteRequest. + * Properties of a GetSchemaRequest. * @memberof tabletmanagerdata - * @interface ISetReadWriteRequest + * @interface IGetSchemaRequest + * @property {Array.|null} [tables] GetSchemaRequest tables + * @property {boolean|null} [include_views] GetSchemaRequest include_views + * @property {Array.|null} [exclude_tables] GetSchemaRequest exclude_tables + * @property {boolean|null} [table_schema_only] GetSchemaRequest table_schema_only */ /** - * Constructs a new SetReadWriteRequest. + * Constructs a new GetSchemaRequest. * @memberof tabletmanagerdata - * @classdesc Represents a SetReadWriteRequest. - * @implements ISetReadWriteRequest + * @classdesc Represents a GetSchemaRequest. + * @implements IGetSchemaRequest * @constructor - * @param {tabletmanagerdata.ISetReadWriteRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IGetSchemaRequest=} [properties] Properties to set */ - function SetReadWriteRequest(properties) { + function GetSchemaRequest(properties) { + this.tables = []; + this.exclude_tables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53326,63 +54012,125 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new SetReadWriteRequest instance using the specified properties. + * GetSchemaRequest tables. + * @member {Array.} tables + * @memberof tabletmanagerdata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.tables = $util.emptyArray; + + /** + * GetSchemaRequest include_views. + * @member {boolean} include_views + * @memberof tabletmanagerdata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.include_views = false; + + /** + * GetSchemaRequest exclude_tables. + * @member {Array.} exclude_tables + * @memberof tabletmanagerdata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.exclude_tables = $util.emptyArray; + + /** + * GetSchemaRequest table_schema_only. + * @member {boolean} table_schema_only + * @memberof tabletmanagerdata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.table_schema_only = false; + + /** + * Creates a new GetSchemaRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.SetReadWriteRequest + * @memberof tabletmanagerdata.GetSchemaRequest * @static - * @param {tabletmanagerdata.ISetReadWriteRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.SetReadWriteRequest} SetReadWriteRequest instance + * @param {tabletmanagerdata.IGetSchemaRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.GetSchemaRequest} GetSchemaRequest instance */ - SetReadWriteRequest.create = function create(properties) { - return new SetReadWriteRequest(properties); + GetSchemaRequest.create = function create(properties) { + return new GetSchemaRequest(properties); }; /** - * Encodes the specified SetReadWriteRequest message. Does not implicitly {@link tabletmanagerdata.SetReadWriteRequest.verify|verify} messages. + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link tabletmanagerdata.GetSchemaRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SetReadWriteRequest + * @memberof tabletmanagerdata.GetSchemaRequest * @static - * @param {tabletmanagerdata.ISetReadWriteRequest} message SetReadWriteRequest message or plain object to encode + * @param {tabletmanagerdata.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetReadWriteRequest.encode = function encode(message, writer) { + GetSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.tables != null && message.tables.length) + for (let i = 0; i < message.tables.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tables[i]); + if (message.include_views != null && Object.hasOwnProperty.call(message, "include_views")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.include_views); + if (message.exclude_tables != null && message.exclude_tables.length) + for (let i = 0; i < message.exclude_tables.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_tables[i]); + if (message.table_schema_only != null && Object.hasOwnProperty.call(message, "table_schema_only")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.table_schema_only); return writer; }; /** - * Encodes the specified SetReadWriteRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadWriteRequest.verify|verify} messages. + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SetReadWriteRequest + * @memberof tabletmanagerdata.GetSchemaRequest * @static - * @param {tabletmanagerdata.ISetReadWriteRequest} message SetReadWriteRequest message or plain object to encode + * @param {tabletmanagerdata.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetReadWriteRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetReadWriteRequest message from the specified reader or buffer. + * Decodes a GetSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SetReadWriteRequest + * @memberof tabletmanagerdata.GetSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.SetReadWriteRequest} SetReadWriteRequest + * @returns {tabletmanagerdata.GetSchemaRequest} GetSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetReadWriteRequest.decode = function decode(reader, length) { + GetSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadWriteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetSchemaRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); + break; + } + case 2: { + message.include_views = reader.bool(); + break; + } + case 3: { + if (!(message.exclude_tables && message.exclude_tables.length)) + message.exclude_tables = []; + message.exclude_tables.push(reader.string()); + break; + } + case 4: { + message.table_schema_only = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -53392,108 +54140,173 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a SetReadWriteRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.SetReadWriteRequest + * @memberof tabletmanagerdata.GetSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SetReadWriteRequest} SetReadWriteRequest + * @returns {tabletmanagerdata.GetSchemaRequest} GetSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetReadWriteRequest.decodeDelimited = function decodeDelimited(reader) { + GetSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetReadWriteRequest message. + * Verifies a GetSchemaRequest message. * @function verify - * @memberof tabletmanagerdata.SetReadWriteRequest + * @memberof tabletmanagerdata.GetSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetReadWriteRequest.verify = function verify(message) { + GetSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (let i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; + } + if (message.include_views != null && message.hasOwnProperty("include_views")) + if (typeof message.include_views !== "boolean") + return "include_views: boolean expected"; + if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { + if (!Array.isArray(message.exclude_tables)) + return "exclude_tables: array expected"; + for (let i = 0; i < message.exclude_tables.length; ++i) + if (!$util.isString(message.exclude_tables[i])) + return "exclude_tables: string[] expected"; + } + if (message.table_schema_only != null && message.hasOwnProperty("table_schema_only")) + if (typeof message.table_schema_only !== "boolean") + return "table_schema_only: boolean expected"; return null; }; /** - * Creates a SetReadWriteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.SetReadWriteRequest + * @memberof tabletmanagerdata.GetSchemaRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SetReadWriteRequest} SetReadWriteRequest + * @returns {tabletmanagerdata.GetSchemaRequest} GetSchemaRequest */ - SetReadWriteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SetReadWriteRequest) + GetSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetSchemaRequest) return object; - return new $root.tabletmanagerdata.SetReadWriteRequest(); + let message = new $root.tabletmanagerdata.GetSchemaRequest(); + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".tabletmanagerdata.GetSchemaRequest.tables: array expected"); + message.tables = []; + for (let i = 0; i < object.tables.length; ++i) + message.tables[i] = String(object.tables[i]); + } + if (object.include_views != null) + message.include_views = Boolean(object.include_views); + if (object.exclude_tables) { + if (!Array.isArray(object.exclude_tables)) + throw TypeError(".tabletmanagerdata.GetSchemaRequest.exclude_tables: array expected"); + message.exclude_tables = []; + for (let i = 0; i < object.exclude_tables.length; ++i) + message.exclude_tables[i] = String(object.exclude_tables[i]); + } + if (object.table_schema_only != null) + message.table_schema_only = Boolean(object.table_schema_only); + return message; }; /** - * Creates a plain object from a SetReadWriteRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.SetReadWriteRequest + * @memberof tabletmanagerdata.GetSchemaRequest * @static - * @param {tabletmanagerdata.SetReadWriteRequest} message SetReadWriteRequest + * @param {tabletmanagerdata.GetSchemaRequest} message GetSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetReadWriteRequest.toObject = function toObject() { - return {}; + GetSchemaRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.tables = []; + object.exclude_tables = []; + } + if (options.defaults) { + object.include_views = false; + object.table_schema_only = false; + } + if (message.tables && message.tables.length) { + object.tables = []; + for (let j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; + } + if (message.include_views != null && message.hasOwnProperty("include_views")) + object.include_views = message.include_views; + if (message.exclude_tables && message.exclude_tables.length) { + object.exclude_tables = []; + for (let j = 0; j < message.exclude_tables.length; ++j) + object.exclude_tables[j] = message.exclude_tables[j]; + } + if (message.table_schema_only != null && message.hasOwnProperty("table_schema_only")) + object.table_schema_only = message.table_schema_only; + return object; }; /** - * Converts this SetReadWriteRequest to JSON. + * Converts this GetSchemaRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.SetReadWriteRequest + * @memberof tabletmanagerdata.GetSchemaRequest * @instance * @returns {Object.} JSON object */ - SetReadWriteRequest.prototype.toJSON = function toJSON() { + GetSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetReadWriteRequest + * Gets the default type url for GetSchemaRequest * @function getTypeUrl - * @memberof tabletmanagerdata.SetReadWriteRequest + * @memberof tabletmanagerdata.GetSchemaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetReadWriteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.SetReadWriteRequest"; + return typeUrlPrefix + "/tabletmanagerdata.GetSchemaRequest"; }; - return SetReadWriteRequest; + return GetSchemaRequest; })(); - tabletmanagerdata.SetReadWriteResponse = (function() { + tabletmanagerdata.GetSchemaResponse = (function() { /** - * Properties of a SetReadWriteResponse. + * Properties of a GetSchemaResponse. * @memberof tabletmanagerdata - * @interface ISetReadWriteResponse + * @interface IGetSchemaResponse + * @property {tabletmanagerdata.ISchemaDefinition|null} [schema_definition] GetSchemaResponse schema_definition */ /** - * Constructs a new SetReadWriteResponse. + * Constructs a new GetSchemaResponse. * @memberof tabletmanagerdata - * @classdesc Represents a SetReadWriteResponse. - * @implements ISetReadWriteResponse + * @classdesc Represents a GetSchemaResponse. + * @implements IGetSchemaResponse * @constructor - * @param {tabletmanagerdata.ISetReadWriteResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IGetSchemaResponse=} [properties] Properties to set */ - function SetReadWriteResponse(properties) { + function GetSchemaResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53501,63 +54314,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new SetReadWriteResponse instance using the specified properties. + * GetSchemaResponse schema_definition. + * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} schema_definition + * @memberof tabletmanagerdata.GetSchemaResponse + * @instance + */ + GetSchemaResponse.prototype.schema_definition = null; + + /** + * Creates a new GetSchemaResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.SetReadWriteResponse + * @memberof tabletmanagerdata.GetSchemaResponse * @static - * @param {tabletmanagerdata.ISetReadWriteResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.SetReadWriteResponse} SetReadWriteResponse instance + * @param {tabletmanagerdata.IGetSchemaResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.GetSchemaResponse} GetSchemaResponse instance */ - SetReadWriteResponse.create = function create(properties) { - return new SetReadWriteResponse(properties); + GetSchemaResponse.create = function create(properties) { + return new GetSchemaResponse(properties); }; /** - * Encodes the specified SetReadWriteResponse message. Does not implicitly {@link tabletmanagerdata.SetReadWriteResponse.verify|verify} messages. + * Encodes the specified GetSchemaResponse message. Does not implicitly {@link tabletmanagerdata.GetSchemaResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SetReadWriteResponse + * @memberof tabletmanagerdata.GetSchemaResponse * @static - * @param {tabletmanagerdata.ISetReadWriteResponse} message SetReadWriteResponse message or plain object to encode + * @param {tabletmanagerdata.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetReadWriteResponse.encode = function encode(message, writer) { + GetSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.schema_definition != null && Object.hasOwnProperty.call(message, "schema_definition")) + $root.tabletmanagerdata.SchemaDefinition.encode(message.schema_definition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SetReadWriteResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadWriteResponse.verify|verify} messages. + * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SetReadWriteResponse + * @memberof tabletmanagerdata.GetSchemaResponse * @static - * @param {tabletmanagerdata.ISetReadWriteResponse} message SetReadWriteResponse message or plain object to encode + * @param {tabletmanagerdata.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetReadWriteResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetReadWriteResponse message from the specified reader or buffer. + * Decodes a GetSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SetReadWriteResponse + * @memberof tabletmanagerdata.GetSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.SetReadWriteResponse} SetReadWriteResponse + * @returns {tabletmanagerdata.GetSchemaResponse} GetSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetReadWriteResponse.decode = function decode(reader, length) { + GetSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadWriteResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetSchemaResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.schema_definition = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -53567,110 +54394,126 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a SetReadWriteResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.SetReadWriteResponse + * @memberof tabletmanagerdata.GetSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SetReadWriteResponse} SetReadWriteResponse + * @returns {tabletmanagerdata.GetSchemaResponse} GetSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetReadWriteResponse.decodeDelimited = function decodeDelimited(reader) { + GetSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetReadWriteResponse message. + * Verifies a GetSchemaResponse message. * @function verify - * @memberof tabletmanagerdata.SetReadWriteResponse + * @memberof tabletmanagerdata.GetSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetReadWriteResponse.verify = function verify(message) { + GetSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.schema_definition != null && message.hasOwnProperty("schema_definition")) { + let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.schema_definition); + if (error) + return "schema_definition." + error; + } return null; }; /** - * Creates a SetReadWriteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.SetReadWriteResponse + * @memberof tabletmanagerdata.GetSchemaResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SetReadWriteResponse} SetReadWriteResponse + * @returns {tabletmanagerdata.GetSchemaResponse} GetSchemaResponse */ - SetReadWriteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SetReadWriteResponse) + GetSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetSchemaResponse) return object; - return new $root.tabletmanagerdata.SetReadWriteResponse(); + let message = new $root.tabletmanagerdata.GetSchemaResponse(); + if (object.schema_definition != null) { + if (typeof object.schema_definition !== "object") + throw TypeError(".tabletmanagerdata.GetSchemaResponse.schema_definition: object expected"); + message.schema_definition = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.schema_definition); + } + return message; }; /** - * Creates a plain object from a SetReadWriteResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.SetReadWriteResponse + * @memberof tabletmanagerdata.GetSchemaResponse * @static - * @param {tabletmanagerdata.SetReadWriteResponse} message SetReadWriteResponse + * @param {tabletmanagerdata.GetSchemaResponse} message GetSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetReadWriteResponse.toObject = function toObject() { - return {}; + GetSchemaResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.schema_definition = null; + if (message.schema_definition != null && message.hasOwnProperty("schema_definition")) + object.schema_definition = $root.tabletmanagerdata.SchemaDefinition.toObject(message.schema_definition, options); + return object; }; /** - * Converts this SetReadWriteResponse to JSON. + * Converts this GetSchemaResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.SetReadWriteResponse + * @memberof tabletmanagerdata.GetSchemaResponse * @instance * @returns {Object.} JSON object */ - SetReadWriteResponse.prototype.toJSON = function toJSON() { + GetSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetReadWriteResponse + * Gets the default type url for GetSchemaResponse * @function getTypeUrl - * @memberof tabletmanagerdata.SetReadWriteResponse + * @memberof tabletmanagerdata.GetSchemaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetReadWriteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.SetReadWriteResponse"; + return typeUrlPrefix + "/tabletmanagerdata.GetSchemaResponse"; }; - return SetReadWriteResponse; + return GetSchemaResponse; })(); - tabletmanagerdata.ChangeTypeRequest = (function() { + tabletmanagerdata.GetPermissionsRequest = (function() { /** - * Properties of a ChangeTypeRequest. + * Properties of a GetPermissionsRequest. * @memberof tabletmanagerdata - * @interface IChangeTypeRequest - * @property {topodata.TabletType|null} [tablet_type] ChangeTypeRequest tablet_type - * @property {boolean|null} [semiSync] ChangeTypeRequest semiSync + * @interface IGetPermissionsRequest */ /** - * Constructs a new ChangeTypeRequest. + * Constructs a new GetPermissionsRequest. * @memberof tabletmanagerdata - * @classdesc Represents a ChangeTypeRequest. - * @implements IChangeTypeRequest + * @classdesc Represents a GetPermissionsRequest. + * @implements IGetPermissionsRequest * @constructor - * @param {tabletmanagerdata.IChangeTypeRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IGetPermissionsRequest=} [properties] Properties to set */ - function ChangeTypeRequest(properties) { + function GetPermissionsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53678,91 +54521,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ChangeTypeRequest tablet_type. - * @member {topodata.TabletType} tablet_type - * @memberof tabletmanagerdata.ChangeTypeRequest - * @instance - */ - ChangeTypeRequest.prototype.tablet_type = 0; - - /** - * ChangeTypeRequest semiSync. - * @member {boolean} semiSync - * @memberof tabletmanagerdata.ChangeTypeRequest - * @instance - */ - ChangeTypeRequest.prototype.semiSync = false; - - /** - * Creates a new ChangeTypeRequest instance using the specified properties. + * Creates a new GetPermissionsRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ChangeTypeRequest + * @memberof tabletmanagerdata.GetPermissionsRequest * @static - * @param {tabletmanagerdata.IChangeTypeRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ChangeTypeRequest} ChangeTypeRequest instance + * @param {tabletmanagerdata.IGetPermissionsRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.GetPermissionsRequest} GetPermissionsRequest instance */ - ChangeTypeRequest.create = function create(properties) { - return new ChangeTypeRequest(properties); + GetPermissionsRequest.create = function create(properties) { + return new GetPermissionsRequest(properties); }; /** - * Encodes the specified ChangeTypeRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTypeRequest.verify|verify} messages. + * Encodes the specified GetPermissionsRequest message. Does not implicitly {@link tabletmanagerdata.GetPermissionsRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ChangeTypeRequest + * @memberof tabletmanagerdata.GetPermissionsRequest * @static - * @param {tabletmanagerdata.IChangeTypeRequest} message ChangeTypeRequest message or plain object to encode + * @param {tabletmanagerdata.IGetPermissionsRequest} message GetPermissionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTypeRequest.encode = function encode(message, writer) { + GetPermissionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tablet_type); - if (message.semiSync != null && Object.hasOwnProperty.call(message, "semiSync")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.semiSync); return writer; }; /** - * Encodes the specified ChangeTypeRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTypeRequest.verify|verify} messages. + * Encodes the specified GetPermissionsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetPermissionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ChangeTypeRequest + * @memberof tabletmanagerdata.GetPermissionsRequest * @static - * @param {tabletmanagerdata.IChangeTypeRequest} message ChangeTypeRequest message or plain object to encode + * @param {tabletmanagerdata.IGetPermissionsRequest} message GetPermissionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetPermissionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTypeRequest message from the specified reader or buffer. + * Decodes a GetPermissionsRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ChangeTypeRequest + * @memberof tabletmanagerdata.GetPermissionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ChangeTypeRequest} ChangeTypeRequest + * @returns {tabletmanagerdata.GetPermissionsRequest} GetPermissionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTypeRequest.decode = function decode(reader, length) { + GetPermissionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTypeRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetPermissionsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.tablet_type = reader.int32(); - break; - } - case 2: { - message.semiSync = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -53772,194 +54587,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ChangeTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetPermissionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ChangeTypeRequest + * @memberof tabletmanagerdata.GetPermissionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ChangeTypeRequest} ChangeTypeRequest + * @returns {tabletmanagerdata.GetPermissionsRequest} GetPermissionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTypeRequest.decodeDelimited = function decodeDelimited(reader) { + GetPermissionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTypeRequest message. + * Verifies a GetPermissionsRequest message. * @function verify - * @memberof tabletmanagerdata.ChangeTypeRequest + * @memberof tabletmanagerdata.GetPermissionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeTypeRequest.verify = function verify(message) { + GetPermissionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.semiSync != null && message.hasOwnProperty("semiSync")) - if (typeof message.semiSync !== "boolean") - return "semiSync: boolean expected"; return null; }; /** - * Creates a ChangeTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetPermissionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ChangeTypeRequest + * @memberof tabletmanagerdata.GetPermissionsRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ChangeTypeRequest} ChangeTypeRequest + * @returns {tabletmanagerdata.GetPermissionsRequest} GetPermissionsRequest */ - ChangeTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ChangeTypeRequest) + GetPermissionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetPermissionsRequest) return object; - let message = new $root.tabletmanagerdata.ChangeTypeRequest(); - switch (object.tablet_type) { - default: - if (typeof object.tablet_type === "number") { - message.tablet_type = object.tablet_type; - break; - } - break; - 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.semiSync != null) - message.semiSync = Boolean(object.semiSync); - return message; + return new $root.tabletmanagerdata.GetPermissionsRequest(); }; /** - * Creates a plain object from a ChangeTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetPermissionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ChangeTypeRequest + * @memberof tabletmanagerdata.GetPermissionsRequest * @static - * @param {tabletmanagerdata.ChangeTypeRequest} message ChangeTypeRequest + * @param {tabletmanagerdata.GetPermissionsRequest} message GetPermissionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTypeRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.tablet_type = options.enums === String ? "UNKNOWN" : 0; - object.semiSync = false; - } - if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) - object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] === undefined ? message.tablet_type : $root.topodata.TabletType[message.tablet_type] : message.tablet_type; - if (message.semiSync != null && message.hasOwnProperty("semiSync")) - object.semiSync = message.semiSync; - return object; + GetPermissionsRequest.toObject = function toObject() { + return {}; }; /** - * Converts this ChangeTypeRequest to JSON. + * Converts this GetPermissionsRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ChangeTypeRequest + * @memberof tabletmanagerdata.GetPermissionsRequest * @instance * @returns {Object.} JSON object */ - ChangeTypeRequest.prototype.toJSON = function toJSON() { + GetPermissionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChangeTypeRequest + * Gets the default type url for GetPermissionsRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ChangeTypeRequest + * @memberof tabletmanagerdata.GetPermissionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChangeTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPermissionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ChangeTypeRequest"; + return typeUrlPrefix + "/tabletmanagerdata.GetPermissionsRequest"; }; - return ChangeTypeRequest; + return GetPermissionsRequest; })(); - tabletmanagerdata.ChangeTypeResponse = (function() { + tabletmanagerdata.GetPermissionsResponse = (function() { /** - * Properties of a ChangeTypeResponse. + * Properties of a GetPermissionsResponse. * @memberof tabletmanagerdata - * @interface IChangeTypeResponse + * @interface IGetPermissionsResponse + * @property {tabletmanagerdata.IPermissions|null} [permissions] GetPermissionsResponse permissions */ /** - * Constructs a new ChangeTypeResponse. + * Constructs a new GetPermissionsResponse. * @memberof tabletmanagerdata - * @classdesc Represents a ChangeTypeResponse. - * @implements IChangeTypeResponse + * @classdesc Represents a GetPermissionsResponse. + * @implements IGetPermissionsResponse * @constructor - * @param {tabletmanagerdata.IChangeTypeResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IGetPermissionsResponse=} [properties] Properties to set */ - function ChangeTypeResponse(properties) { + function GetPermissionsResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53967,63 +54697,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new ChangeTypeResponse instance using the specified properties. + * GetPermissionsResponse permissions. + * @member {tabletmanagerdata.IPermissions|null|undefined} permissions + * @memberof tabletmanagerdata.GetPermissionsResponse + * @instance + */ + GetPermissionsResponse.prototype.permissions = null; + + /** + * Creates a new GetPermissionsResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ChangeTypeResponse + * @memberof tabletmanagerdata.GetPermissionsResponse * @static - * @param {tabletmanagerdata.IChangeTypeResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ChangeTypeResponse} ChangeTypeResponse instance + * @param {tabletmanagerdata.IGetPermissionsResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.GetPermissionsResponse} GetPermissionsResponse instance */ - ChangeTypeResponse.create = function create(properties) { - return new ChangeTypeResponse(properties); + GetPermissionsResponse.create = function create(properties) { + return new GetPermissionsResponse(properties); }; /** - * Encodes the specified ChangeTypeResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTypeResponse.verify|verify} messages. + * Encodes the specified GetPermissionsResponse message. Does not implicitly {@link tabletmanagerdata.GetPermissionsResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ChangeTypeResponse + * @memberof tabletmanagerdata.GetPermissionsResponse * @static - * @param {tabletmanagerdata.IChangeTypeResponse} message ChangeTypeResponse message or plain object to encode + * @param {tabletmanagerdata.IGetPermissionsResponse} message GetPermissionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTypeResponse.encode = function encode(message, writer) { + GetPermissionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.permissions != null && Object.hasOwnProperty.call(message, "permissions")) + $root.tabletmanagerdata.Permissions.encode(message.permissions, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ChangeTypeResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTypeResponse.verify|verify} messages. + * Encodes the specified GetPermissionsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetPermissionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ChangeTypeResponse + * @memberof tabletmanagerdata.GetPermissionsResponse * @static - * @param {tabletmanagerdata.IChangeTypeResponse} message ChangeTypeResponse message or plain object to encode + * @param {tabletmanagerdata.IGetPermissionsResponse} message GetPermissionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTypeResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetPermissionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTypeResponse message from the specified reader or buffer. + * Decodes a GetPermissionsResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ChangeTypeResponse + * @memberof tabletmanagerdata.GetPermissionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ChangeTypeResponse} ChangeTypeResponse + * @returns {tabletmanagerdata.GetPermissionsResponse} GetPermissionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTypeResponse.decode = function decode(reader, length) { + GetPermissionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTypeResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetPermissionsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.permissions = $root.tabletmanagerdata.Permissions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -54033,108 +54777,128 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ChangeTypeResponse message from the specified reader or buffer, length delimited. + * Decodes a GetPermissionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ChangeTypeResponse + * @memberof tabletmanagerdata.GetPermissionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ChangeTypeResponse} ChangeTypeResponse + * @returns {tabletmanagerdata.GetPermissionsResponse} GetPermissionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTypeResponse.decodeDelimited = function decodeDelimited(reader) { + GetPermissionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTypeResponse message. + * Verifies a GetPermissionsResponse message. * @function verify - * @memberof tabletmanagerdata.ChangeTypeResponse + * @memberof tabletmanagerdata.GetPermissionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeTypeResponse.verify = function verify(message) { + GetPermissionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.permissions != null && message.hasOwnProperty("permissions")) { + let error = $root.tabletmanagerdata.Permissions.verify(message.permissions); + if (error) + return "permissions." + error; + } return null; }; /** - * Creates a ChangeTypeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetPermissionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ChangeTypeResponse + * @memberof tabletmanagerdata.GetPermissionsResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ChangeTypeResponse} ChangeTypeResponse + * @returns {tabletmanagerdata.GetPermissionsResponse} GetPermissionsResponse */ - ChangeTypeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ChangeTypeResponse) + GetPermissionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetPermissionsResponse) return object; - return new $root.tabletmanagerdata.ChangeTypeResponse(); + let message = new $root.tabletmanagerdata.GetPermissionsResponse(); + if (object.permissions != null) { + if (typeof object.permissions !== "object") + throw TypeError(".tabletmanagerdata.GetPermissionsResponse.permissions: object expected"); + message.permissions = $root.tabletmanagerdata.Permissions.fromObject(object.permissions); + } + return message; }; /** - * Creates a plain object from a ChangeTypeResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetPermissionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ChangeTypeResponse + * @memberof tabletmanagerdata.GetPermissionsResponse * @static - * @param {tabletmanagerdata.ChangeTypeResponse} message ChangeTypeResponse + * @param {tabletmanagerdata.GetPermissionsResponse} message GetPermissionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTypeResponse.toObject = function toObject() { - return {}; + GetPermissionsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.permissions = null; + if (message.permissions != null && message.hasOwnProperty("permissions")) + object.permissions = $root.tabletmanagerdata.Permissions.toObject(message.permissions, options); + return object; }; /** - * Converts this ChangeTypeResponse to JSON. + * Converts this GetPermissionsResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ChangeTypeResponse + * @memberof tabletmanagerdata.GetPermissionsResponse * @instance * @returns {Object.} JSON object */ - ChangeTypeResponse.prototype.toJSON = function toJSON() { + GetPermissionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChangeTypeResponse + * Gets the default type url for GetPermissionsResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ChangeTypeResponse + * @memberof tabletmanagerdata.GetPermissionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChangeTypeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPermissionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ChangeTypeResponse"; + return typeUrlPrefix + "/tabletmanagerdata.GetPermissionsResponse"; }; - return ChangeTypeResponse; + return GetPermissionsResponse; })(); - tabletmanagerdata.RefreshStateRequest = (function() { + tabletmanagerdata.GetGlobalStatusVarsRequest = (function() { /** - * Properties of a RefreshStateRequest. + * Properties of a GetGlobalStatusVarsRequest. * @memberof tabletmanagerdata - * @interface IRefreshStateRequest + * @interface IGetGlobalStatusVarsRequest + * @property {Array.|null} [variables] GetGlobalStatusVarsRequest variables */ /** - * Constructs a new RefreshStateRequest. + * Constructs a new GetGlobalStatusVarsRequest. * @memberof tabletmanagerdata - * @classdesc Represents a RefreshStateRequest. - * @implements IRefreshStateRequest + * @classdesc Represents a GetGlobalStatusVarsRequest. + * @implements IGetGlobalStatusVarsRequest * @constructor - * @param {tabletmanagerdata.IRefreshStateRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IGetGlobalStatusVarsRequest=} [properties] Properties to set */ - function RefreshStateRequest(properties) { + function GetGlobalStatusVarsRequest(properties) { + this.variables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54142,63 +54906,80 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new RefreshStateRequest instance using the specified properties. + * GetGlobalStatusVarsRequest variables. + * @member {Array.} variables + * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest + * @instance + */ + GetGlobalStatusVarsRequest.prototype.variables = $util.emptyArray; + + /** + * Creates a new GetGlobalStatusVarsRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.RefreshStateRequest + * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest * @static - * @param {tabletmanagerdata.IRefreshStateRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.RefreshStateRequest} RefreshStateRequest instance + * @param {tabletmanagerdata.IGetGlobalStatusVarsRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.GetGlobalStatusVarsRequest} GetGlobalStatusVarsRequest instance */ - RefreshStateRequest.create = function create(properties) { - return new RefreshStateRequest(properties); + GetGlobalStatusVarsRequest.create = function create(properties) { + return new GetGlobalStatusVarsRequest(properties); }; /** - * Encodes the specified RefreshStateRequest message. Does not implicitly {@link tabletmanagerdata.RefreshStateRequest.verify|verify} messages. + * Encodes the specified GetGlobalStatusVarsRequest message. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.RefreshStateRequest + * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest * @static - * @param {tabletmanagerdata.IRefreshStateRequest} message RefreshStateRequest message or plain object to encode + * @param {tabletmanagerdata.IGetGlobalStatusVarsRequest} message GetGlobalStatusVarsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshStateRequest.encode = function encode(message, writer) { + GetGlobalStatusVarsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.variables != null && message.variables.length) + for (let i = 0; i < message.variables.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.variables[i]); return writer; }; /** - * Encodes the specified RefreshStateRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.RefreshStateRequest.verify|verify} messages. + * Encodes the specified GetGlobalStatusVarsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.RefreshStateRequest + * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest * @static - * @param {tabletmanagerdata.IRefreshStateRequest} message RefreshStateRequest message or plain object to encode + * @param {tabletmanagerdata.IGetGlobalStatusVarsRequest} message GetGlobalStatusVarsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetGlobalStatusVarsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RefreshStateRequest message from the specified reader or buffer. + * Decodes a GetGlobalStatusVarsRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.RefreshStateRequest + * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.RefreshStateRequest} RefreshStateRequest + * @returns {tabletmanagerdata.GetGlobalStatusVarsRequest} GetGlobalStatusVarsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshStateRequest.decode = function decode(reader, length) { + GetGlobalStatusVarsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.RefreshStateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetGlobalStatusVarsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.variables && message.variables.length)) + message.variables = []; + message.variables.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -54208,108 +54989,135 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a RefreshStateRequest message from the specified reader or buffer, length delimited. + * Decodes a GetGlobalStatusVarsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.RefreshStateRequest + * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.RefreshStateRequest} RefreshStateRequest + * @returns {tabletmanagerdata.GetGlobalStatusVarsRequest} GetGlobalStatusVarsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshStateRequest.decodeDelimited = function decodeDelimited(reader) { + GetGlobalStatusVarsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RefreshStateRequest message. + * Verifies a GetGlobalStatusVarsRequest message. * @function verify - * @memberof tabletmanagerdata.RefreshStateRequest + * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RefreshStateRequest.verify = function verify(message) { + GetGlobalStatusVarsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.variables != null && message.hasOwnProperty("variables")) { + if (!Array.isArray(message.variables)) + return "variables: array expected"; + for (let i = 0; i < message.variables.length; ++i) + if (!$util.isString(message.variables[i])) + return "variables: string[] expected"; + } return null; }; /** - * Creates a RefreshStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetGlobalStatusVarsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.RefreshStateRequest + * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.RefreshStateRequest} RefreshStateRequest + * @returns {tabletmanagerdata.GetGlobalStatusVarsRequest} GetGlobalStatusVarsRequest */ - RefreshStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.RefreshStateRequest) + GetGlobalStatusVarsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetGlobalStatusVarsRequest) return object; - return new $root.tabletmanagerdata.RefreshStateRequest(); + let message = new $root.tabletmanagerdata.GetGlobalStatusVarsRequest(); + if (object.variables) { + if (!Array.isArray(object.variables)) + throw TypeError(".tabletmanagerdata.GetGlobalStatusVarsRequest.variables: array expected"); + message.variables = []; + for (let i = 0; i < object.variables.length; ++i) + message.variables[i] = String(object.variables[i]); + } + return message; }; /** - * Creates a plain object from a RefreshStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetGlobalStatusVarsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.RefreshStateRequest + * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest * @static - * @param {tabletmanagerdata.RefreshStateRequest} message RefreshStateRequest + * @param {tabletmanagerdata.GetGlobalStatusVarsRequest} message GetGlobalStatusVarsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RefreshStateRequest.toObject = function toObject() { - return {}; + GetGlobalStatusVarsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.variables = []; + if (message.variables && message.variables.length) { + object.variables = []; + for (let j = 0; j < message.variables.length; ++j) + object.variables[j] = message.variables[j]; + } + return object; }; /** - * Converts this RefreshStateRequest to JSON. + * Converts this GetGlobalStatusVarsRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.RefreshStateRequest + * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest * @instance * @returns {Object.} JSON object */ - RefreshStateRequest.prototype.toJSON = function toJSON() { + GetGlobalStatusVarsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RefreshStateRequest + * Gets the default type url for GetGlobalStatusVarsRequest * @function getTypeUrl - * @memberof tabletmanagerdata.RefreshStateRequest + * @memberof tabletmanagerdata.GetGlobalStatusVarsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RefreshStateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetGlobalStatusVarsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.RefreshStateRequest"; + return typeUrlPrefix + "/tabletmanagerdata.GetGlobalStatusVarsRequest"; }; - return RefreshStateRequest; + return GetGlobalStatusVarsRequest; })(); - tabletmanagerdata.RefreshStateResponse = (function() { + tabletmanagerdata.GetGlobalStatusVarsResponse = (function() { /** - * Properties of a RefreshStateResponse. + * Properties of a GetGlobalStatusVarsResponse. * @memberof tabletmanagerdata - * @interface IRefreshStateResponse + * @interface IGetGlobalStatusVarsResponse + * @property {Object.|null} [status_values] GetGlobalStatusVarsResponse status_values */ /** - * Constructs a new RefreshStateResponse. + * Constructs a new GetGlobalStatusVarsResponse. * @memberof tabletmanagerdata - * @classdesc Represents a RefreshStateResponse. - * @implements IRefreshStateResponse + * @classdesc Represents a GetGlobalStatusVarsResponse. + * @implements IGetGlobalStatusVarsResponse * @constructor - * @param {tabletmanagerdata.IRefreshStateResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IGetGlobalStatusVarsResponse=} [properties] Properties to set */ - function RefreshStateResponse(properties) { + function GetGlobalStatusVarsResponse(properties) { + this.status_values = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54317,63 +55125,97 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new RefreshStateResponse instance using the specified properties. + * GetGlobalStatusVarsResponse status_values. + * @member {Object.} status_values + * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse + * @instance + */ + GetGlobalStatusVarsResponse.prototype.status_values = $util.emptyObject; + + /** + * Creates a new GetGlobalStatusVarsResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.RefreshStateResponse + * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse * @static - * @param {tabletmanagerdata.IRefreshStateResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.RefreshStateResponse} RefreshStateResponse instance + * @param {tabletmanagerdata.IGetGlobalStatusVarsResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.GetGlobalStatusVarsResponse} GetGlobalStatusVarsResponse instance */ - RefreshStateResponse.create = function create(properties) { - return new RefreshStateResponse(properties); + GetGlobalStatusVarsResponse.create = function create(properties) { + return new GetGlobalStatusVarsResponse(properties); }; /** - * Encodes the specified RefreshStateResponse message. Does not implicitly {@link tabletmanagerdata.RefreshStateResponse.verify|verify} messages. + * Encodes the specified GetGlobalStatusVarsResponse message. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.RefreshStateResponse + * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse * @static - * @param {tabletmanagerdata.IRefreshStateResponse} message RefreshStateResponse message or plain object to encode + * @param {tabletmanagerdata.IGetGlobalStatusVarsResponse} message GetGlobalStatusVarsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshStateResponse.encode = function encode(message, writer) { + GetGlobalStatusVarsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.status_values != null && Object.hasOwnProperty.call(message, "status_values")) + for (let keys = Object.keys(message.status_values), 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.status_values[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified RefreshStateResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.RefreshStateResponse.verify|verify} messages. + * Encodes the specified GetGlobalStatusVarsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetGlobalStatusVarsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.RefreshStateResponse + * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse * @static - * @param {tabletmanagerdata.IRefreshStateResponse} message RefreshStateResponse message or plain object to encode + * @param {tabletmanagerdata.IGetGlobalStatusVarsResponse} message GetGlobalStatusVarsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetGlobalStatusVarsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RefreshStateResponse message from the specified reader or buffer. + * Decodes a GetGlobalStatusVarsResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.RefreshStateResponse + * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.RefreshStateResponse} RefreshStateResponse + * @returns {tabletmanagerdata.GetGlobalStatusVarsResponse} GetGlobalStatusVarsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshStateResponse.decode = function decode(reader, length) { + GetGlobalStatusVarsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.RefreshStateResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetGlobalStatusVarsResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (message.status_values === $util.emptyObject) + message.status_values = {}; + 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.status_values[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -54383,108 +55225,135 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a RefreshStateResponse message from the specified reader or buffer, length delimited. + * Decodes a GetGlobalStatusVarsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.RefreshStateResponse + * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.RefreshStateResponse} RefreshStateResponse + * @returns {tabletmanagerdata.GetGlobalStatusVarsResponse} GetGlobalStatusVarsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshStateResponse.decodeDelimited = function decodeDelimited(reader) { + GetGlobalStatusVarsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RefreshStateResponse message. + * Verifies a GetGlobalStatusVarsResponse message. * @function verify - * @memberof tabletmanagerdata.RefreshStateResponse + * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RefreshStateResponse.verify = function verify(message) { + GetGlobalStatusVarsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.status_values != null && message.hasOwnProperty("status_values")) { + if (!$util.isObject(message.status_values)) + return "status_values: object expected"; + let key = Object.keys(message.status_values); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.status_values[key[i]])) + return "status_values: string{k:string} expected"; + } return null; }; /** - * Creates a RefreshStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetGlobalStatusVarsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.RefreshStateResponse + * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.RefreshStateResponse} RefreshStateResponse + * @returns {tabletmanagerdata.GetGlobalStatusVarsResponse} GetGlobalStatusVarsResponse */ - RefreshStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.RefreshStateResponse) + GetGlobalStatusVarsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetGlobalStatusVarsResponse) return object; - return new $root.tabletmanagerdata.RefreshStateResponse(); + let message = new $root.tabletmanagerdata.GetGlobalStatusVarsResponse(); + if (object.status_values) { + if (typeof object.status_values !== "object") + throw TypeError(".tabletmanagerdata.GetGlobalStatusVarsResponse.status_values: object expected"); + message.status_values = {}; + for (let keys = Object.keys(object.status_values), i = 0; i < keys.length; ++i) + message.status_values[keys[i]] = String(object.status_values[keys[i]]); + } + return message; }; /** - * Creates a plain object from a RefreshStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetGlobalStatusVarsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.RefreshStateResponse + * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse * @static - * @param {tabletmanagerdata.RefreshStateResponse} message RefreshStateResponse + * @param {tabletmanagerdata.GetGlobalStatusVarsResponse} message GetGlobalStatusVarsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RefreshStateResponse.toObject = function toObject() { - return {}; + GetGlobalStatusVarsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) + object.status_values = {}; + let keys2; + if (message.status_values && (keys2 = Object.keys(message.status_values)).length) { + object.status_values = {}; + for (let j = 0; j < keys2.length; ++j) + object.status_values[keys2[j]] = message.status_values[keys2[j]]; + } + return object; }; /** - * Converts this RefreshStateResponse to JSON. + * Converts this GetGlobalStatusVarsResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.RefreshStateResponse + * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse * @instance * @returns {Object.} JSON object */ - RefreshStateResponse.prototype.toJSON = function toJSON() { + GetGlobalStatusVarsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RefreshStateResponse + * Gets the default type url for GetGlobalStatusVarsResponse * @function getTypeUrl - * @memberof tabletmanagerdata.RefreshStateResponse + * @memberof tabletmanagerdata.GetGlobalStatusVarsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RefreshStateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetGlobalStatusVarsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.RefreshStateResponse"; + return typeUrlPrefix + "/tabletmanagerdata.GetGlobalStatusVarsResponse"; }; - return RefreshStateResponse; + return GetGlobalStatusVarsResponse; })(); - tabletmanagerdata.RunHealthCheckRequest = (function() { + tabletmanagerdata.SetReadOnlyRequest = (function() { /** - * Properties of a RunHealthCheckRequest. + * Properties of a SetReadOnlyRequest. * @memberof tabletmanagerdata - * @interface IRunHealthCheckRequest + * @interface ISetReadOnlyRequest */ /** - * Constructs a new RunHealthCheckRequest. + * Constructs a new SetReadOnlyRequest. * @memberof tabletmanagerdata - * @classdesc Represents a RunHealthCheckRequest. - * @implements IRunHealthCheckRequest + * @classdesc Represents a SetReadOnlyRequest. + * @implements ISetReadOnlyRequest * @constructor - * @param {tabletmanagerdata.IRunHealthCheckRequest=} [properties] Properties to set + * @param {tabletmanagerdata.ISetReadOnlyRequest=} [properties] Properties to set */ - function RunHealthCheckRequest(properties) { + function SetReadOnlyRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54492,60 +55361,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new RunHealthCheckRequest instance using the specified properties. + * Creates a new SetReadOnlyRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.RunHealthCheckRequest + * @memberof tabletmanagerdata.SetReadOnlyRequest * @static - * @param {tabletmanagerdata.IRunHealthCheckRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.RunHealthCheckRequest} RunHealthCheckRequest instance + * @param {tabletmanagerdata.ISetReadOnlyRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.SetReadOnlyRequest} SetReadOnlyRequest instance */ - RunHealthCheckRequest.create = function create(properties) { - return new RunHealthCheckRequest(properties); + SetReadOnlyRequest.create = function create(properties) { + return new SetReadOnlyRequest(properties); }; /** - * Encodes the specified RunHealthCheckRequest message. Does not implicitly {@link tabletmanagerdata.RunHealthCheckRequest.verify|verify} messages. + * Encodes the specified SetReadOnlyRequest message. Does not implicitly {@link tabletmanagerdata.SetReadOnlyRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.RunHealthCheckRequest + * @memberof tabletmanagerdata.SetReadOnlyRequest * @static - * @param {tabletmanagerdata.IRunHealthCheckRequest} message RunHealthCheckRequest message or plain object to encode + * @param {tabletmanagerdata.ISetReadOnlyRequest} message SetReadOnlyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunHealthCheckRequest.encode = function encode(message, writer) { + SetReadOnlyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified RunHealthCheckRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.RunHealthCheckRequest.verify|verify} messages. + * Encodes the specified SetReadOnlyRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadOnlyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.RunHealthCheckRequest + * @memberof tabletmanagerdata.SetReadOnlyRequest * @static - * @param {tabletmanagerdata.IRunHealthCheckRequest} message RunHealthCheckRequest message or plain object to encode + * @param {tabletmanagerdata.ISetReadOnlyRequest} message SetReadOnlyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetReadOnlyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunHealthCheckRequest message from the specified reader or buffer. + * Decodes a SetReadOnlyRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.RunHealthCheckRequest + * @memberof tabletmanagerdata.SetReadOnlyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.RunHealthCheckRequest} RunHealthCheckRequest + * @returns {tabletmanagerdata.SetReadOnlyRequest} SetReadOnlyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunHealthCheckRequest.decode = function decode(reader, length) { + SetReadOnlyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.RunHealthCheckRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadOnlyRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -54558,108 +55427,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a RunHealthCheckRequest message from the specified reader or buffer, length delimited. + * Decodes a SetReadOnlyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.RunHealthCheckRequest + * @memberof tabletmanagerdata.SetReadOnlyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.RunHealthCheckRequest} RunHealthCheckRequest + * @returns {tabletmanagerdata.SetReadOnlyRequest} SetReadOnlyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + SetReadOnlyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunHealthCheckRequest message. + * Verifies a SetReadOnlyRequest message. * @function verify - * @memberof tabletmanagerdata.RunHealthCheckRequest + * @memberof tabletmanagerdata.SetReadOnlyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunHealthCheckRequest.verify = function verify(message) { + SetReadOnlyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a RunHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetReadOnlyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.RunHealthCheckRequest + * @memberof tabletmanagerdata.SetReadOnlyRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.RunHealthCheckRequest} RunHealthCheckRequest + * @returns {tabletmanagerdata.SetReadOnlyRequest} SetReadOnlyRequest */ - RunHealthCheckRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.RunHealthCheckRequest) + SetReadOnlyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SetReadOnlyRequest) return object; - return new $root.tabletmanagerdata.RunHealthCheckRequest(); + return new $root.tabletmanagerdata.SetReadOnlyRequest(); }; /** - * Creates a plain object from a RunHealthCheckRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetReadOnlyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.RunHealthCheckRequest + * @memberof tabletmanagerdata.SetReadOnlyRequest * @static - * @param {tabletmanagerdata.RunHealthCheckRequest} message RunHealthCheckRequest + * @param {tabletmanagerdata.SetReadOnlyRequest} message SetReadOnlyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunHealthCheckRequest.toObject = function toObject() { + SetReadOnlyRequest.toObject = function toObject() { return {}; }; /** - * Converts this RunHealthCheckRequest to JSON. + * Converts this SetReadOnlyRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.RunHealthCheckRequest + * @memberof tabletmanagerdata.SetReadOnlyRequest * @instance * @returns {Object.} JSON object */ - RunHealthCheckRequest.prototype.toJSON = function toJSON() { + SetReadOnlyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RunHealthCheckRequest + * Gets the default type url for SetReadOnlyRequest * @function getTypeUrl - * @memberof tabletmanagerdata.RunHealthCheckRequest + * @memberof tabletmanagerdata.SetReadOnlyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RunHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetReadOnlyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.RunHealthCheckRequest"; + return typeUrlPrefix + "/tabletmanagerdata.SetReadOnlyRequest"; }; - return RunHealthCheckRequest; + return SetReadOnlyRequest; })(); - tabletmanagerdata.RunHealthCheckResponse = (function() { + tabletmanagerdata.SetReadOnlyResponse = (function() { /** - * Properties of a RunHealthCheckResponse. + * Properties of a SetReadOnlyResponse. * @memberof tabletmanagerdata - * @interface IRunHealthCheckResponse + * @interface ISetReadOnlyResponse */ /** - * Constructs a new RunHealthCheckResponse. + * Constructs a new SetReadOnlyResponse. * @memberof tabletmanagerdata - * @classdesc Represents a RunHealthCheckResponse. - * @implements IRunHealthCheckResponse + * @classdesc Represents a SetReadOnlyResponse. + * @implements ISetReadOnlyResponse * @constructor - * @param {tabletmanagerdata.IRunHealthCheckResponse=} [properties] Properties to set + * @param {tabletmanagerdata.ISetReadOnlyResponse=} [properties] Properties to set */ - function RunHealthCheckResponse(properties) { + function SetReadOnlyResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54667,60 +55536,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new RunHealthCheckResponse instance using the specified properties. + * Creates a new SetReadOnlyResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.RunHealthCheckResponse + * @memberof tabletmanagerdata.SetReadOnlyResponse * @static - * @param {tabletmanagerdata.IRunHealthCheckResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.RunHealthCheckResponse} RunHealthCheckResponse instance + * @param {tabletmanagerdata.ISetReadOnlyResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.SetReadOnlyResponse} SetReadOnlyResponse instance */ - RunHealthCheckResponse.create = function create(properties) { - return new RunHealthCheckResponse(properties); + SetReadOnlyResponse.create = function create(properties) { + return new SetReadOnlyResponse(properties); }; /** - * Encodes the specified RunHealthCheckResponse message. Does not implicitly {@link tabletmanagerdata.RunHealthCheckResponse.verify|verify} messages. + * Encodes the specified SetReadOnlyResponse message. Does not implicitly {@link tabletmanagerdata.SetReadOnlyResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.RunHealthCheckResponse + * @memberof tabletmanagerdata.SetReadOnlyResponse * @static - * @param {tabletmanagerdata.IRunHealthCheckResponse} message RunHealthCheckResponse message or plain object to encode + * @param {tabletmanagerdata.ISetReadOnlyResponse} message SetReadOnlyResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunHealthCheckResponse.encode = function encode(message, writer) { + SetReadOnlyResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified RunHealthCheckResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.RunHealthCheckResponse.verify|verify} messages. + * Encodes the specified SetReadOnlyResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadOnlyResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.RunHealthCheckResponse + * @memberof tabletmanagerdata.SetReadOnlyResponse * @static - * @param {tabletmanagerdata.IRunHealthCheckResponse} message RunHealthCheckResponse message or plain object to encode + * @param {tabletmanagerdata.ISetReadOnlyResponse} message SetReadOnlyResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunHealthCheckResponse.encodeDelimited = function encodeDelimited(message, writer) { + SetReadOnlyResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunHealthCheckResponse message from the specified reader or buffer. + * Decodes a SetReadOnlyResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.RunHealthCheckResponse + * @memberof tabletmanagerdata.SetReadOnlyResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.RunHealthCheckResponse} RunHealthCheckResponse + * @returns {tabletmanagerdata.SetReadOnlyResponse} SetReadOnlyResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunHealthCheckResponse.decode = function decode(reader, length) { + SetReadOnlyResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.RunHealthCheckResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadOnlyResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -54733,109 +55602,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a RunHealthCheckResponse message from the specified reader or buffer, length delimited. + * Decodes a SetReadOnlyResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.RunHealthCheckResponse + * @memberof tabletmanagerdata.SetReadOnlyResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.RunHealthCheckResponse} RunHealthCheckResponse + * @returns {tabletmanagerdata.SetReadOnlyResponse} SetReadOnlyResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunHealthCheckResponse.decodeDelimited = function decodeDelimited(reader) { + SetReadOnlyResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunHealthCheckResponse message. + * Verifies a SetReadOnlyResponse message. * @function verify - * @memberof tabletmanagerdata.RunHealthCheckResponse + * @memberof tabletmanagerdata.SetReadOnlyResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunHealthCheckResponse.verify = function verify(message) { + SetReadOnlyResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a RunHealthCheckResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetReadOnlyResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.RunHealthCheckResponse + * @memberof tabletmanagerdata.SetReadOnlyResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.RunHealthCheckResponse} RunHealthCheckResponse + * @returns {tabletmanagerdata.SetReadOnlyResponse} SetReadOnlyResponse */ - RunHealthCheckResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.RunHealthCheckResponse) + SetReadOnlyResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SetReadOnlyResponse) return object; - return new $root.tabletmanagerdata.RunHealthCheckResponse(); + return new $root.tabletmanagerdata.SetReadOnlyResponse(); }; /** - * Creates a plain object from a RunHealthCheckResponse message. Also converts values to other types if specified. + * Creates a plain object from a SetReadOnlyResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.RunHealthCheckResponse + * @memberof tabletmanagerdata.SetReadOnlyResponse * @static - * @param {tabletmanagerdata.RunHealthCheckResponse} message RunHealthCheckResponse + * @param {tabletmanagerdata.SetReadOnlyResponse} message SetReadOnlyResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunHealthCheckResponse.toObject = function toObject() { + SetReadOnlyResponse.toObject = function toObject() { return {}; }; /** - * Converts this RunHealthCheckResponse to JSON. + * Converts this SetReadOnlyResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.RunHealthCheckResponse + * @memberof tabletmanagerdata.SetReadOnlyResponse * @instance * @returns {Object.} JSON object */ - RunHealthCheckResponse.prototype.toJSON = function toJSON() { + SetReadOnlyResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RunHealthCheckResponse + * Gets the default type url for SetReadOnlyResponse * @function getTypeUrl - * @memberof tabletmanagerdata.RunHealthCheckResponse + * @memberof tabletmanagerdata.SetReadOnlyResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RunHealthCheckResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetReadOnlyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.RunHealthCheckResponse"; + return typeUrlPrefix + "/tabletmanagerdata.SetReadOnlyResponse"; }; - return RunHealthCheckResponse; + return SetReadOnlyResponse; })(); - tabletmanagerdata.ReloadSchemaRequest = (function() { + tabletmanagerdata.SetReadWriteRequest = (function() { /** - * Properties of a ReloadSchemaRequest. + * Properties of a SetReadWriteRequest. * @memberof tabletmanagerdata - * @interface IReloadSchemaRequest - * @property {string|null} [wait_position] ReloadSchemaRequest wait_position + * @interface ISetReadWriteRequest */ /** - * Constructs a new ReloadSchemaRequest. + * Constructs a new SetReadWriteRequest. * @memberof tabletmanagerdata - * @classdesc Represents a ReloadSchemaRequest. - * @implements IReloadSchemaRequest + * @classdesc Represents a SetReadWriteRequest. + * @implements ISetReadWriteRequest * @constructor - * @param {tabletmanagerdata.IReloadSchemaRequest=} [properties] Properties to set + * @param {tabletmanagerdata.ISetReadWriteRequest=} [properties] Properties to set */ - function ReloadSchemaRequest(properties) { + function SetReadWriteRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54843,77 +55711,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ReloadSchemaRequest wait_position. - * @member {string} wait_position - * @memberof tabletmanagerdata.ReloadSchemaRequest - * @instance - */ - ReloadSchemaRequest.prototype.wait_position = ""; - - /** - * Creates a new ReloadSchemaRequest instance using the specified properties. + * Creates a new SetReadWriteRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReloadSchemaRequest + * @memberof tabletmanagerdata.SetReadWriteRequest * @static - * @param {tabletmanagerdata.IReloadSchemaRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ReloadSchemaRequest} ReloadSchemaRequest instance + * @param {tabletmanagerdata.ISetReadWriteRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.SetReadWriteRequest} SetReadWriteRequest instance */ - ReloadSchemaRequest.create = function create(properties) { - return new ReloadSchemaRequest(properties); + SetReadWriteRequest.create = function create(properties) { + return new SetReadWriteRequest(properties); }; /** - * Encodes the specified ReloadSchemaRequest message. Does not implicitly {@link tabletmanagerdata.ReloadSchemaRequest.verify|verify} messages. + * Encodes the specified SetReadWriteRequest message. Does not implicitly {@link tabletmanagerdata.SetReadWriteRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReloadSchemaRequest + * @memberof tabletmanagerdata.SetReadWriteRequest * @static - * @param {tabletmanagerdata.IReloadSchemaRequest} message ReloadSchemaRequest message or plain object to encode + * @param {tabletmanagerdata.ISetReadWriteRequest} message SetReadWriteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaRequest.encode = function encode(message, writer) { + SetReadWriteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.wait_position != null && Object.hasOwnProperty.call(message, "wait_position")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.wait_position); return writer; }; /** - * Encodes the specified ReloadSchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReloadSchemaRequest.verify|verify} messages. + * Encodes the specified SetReadWriteRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadWriteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReloadSchemaRequest + * @memberof tabletmanagerdata.SetReadWriteRequest * @static - * @param {tabletmanagerdata.IReloadSchemaRequest} message ReloadSchemaRequest message or plain object to encode + * @param {tabletmanagerdata.ISetReadWriteRequest} message SetReadWriteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetReadWriteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReloadSchemaRequest message from the specified reader or buffer. + * Decodes a SetReadWriteRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReloadSchemaRequest + * @memberof tabletmanagerdata.SetReadWriteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReloadSchemaRequest} ReloadSchemaRequest + * @returns {tabletmanagerdata.SetReadWriteRequest} SetReadWriteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaRequest.decode = function decode(reader, length) { + SetReadWriteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReloadSchemaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadWriteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.wait_position = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -54923,121 +55777,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReloadSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a SetReadWriteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReloadSchemaRequest + * @memberof tabletmanagerdata.SetReadWriteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReloadSchemaRequest} ReloadSchemaRequest + * @returns {tabletmanagerdata.SetReadWriteRequest} SetReadWriteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + SetReadWriteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReloadSchemaRequest message. + * Verifies a SetReadWriteRequest message. * @function verify - * @memberof tabletmanagerdata.ReloadSchemaRequest + * @memberof tabletmanagerdata.SetReadWriteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReloadSchemaRequest.verify = function verify(message) { + SetReadWriteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.wait_position != null && message.hasOwnProperty("wait_position")) - if (!$util.isString(message.wait_position)) - return "wait_position: string expected"; return null; }; /** - * Creates a ReloadSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetReadWriteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ReloadSchemaRequest + * @memberof tabletmanagerdata.SetReadWriteRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReloadSchemaRequest} ReloadSchemaRequest + * @returns {tabletmanagerdata.SetReadWriteRequest} SetReadWriteRequest */ - ReloadSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReloadSchemaRequest) + SetReadWriteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SetReadWriteRequest) return object; - let message = new $root.tabletmanagerdata.ReloadSchemaRequest(); - if (object.wait_position != null) - message.wait_position = String(object.wait_position); - return message; + return new $root.tabletmanagerdata.SetReadWriteRequest(); }; /** - * Creates a plain object from a ReloadSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetReadWriteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ReloadSchemaRequest + * @memberof tabletmanagerdata.SetReadWriteRequest * @static - * @param {tabletmanagerdata.ReloadSchemaRequest} message ReloadSchemaRequest + * @param {tabletmanagerdata.SetReadWriteRequest} message SetReadWriteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReloadSchemaRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.wait_position = ""; - if (message.wait_position != null && message.hasOwnProperty("wait_position")) - object.wait_position = message.wait_position; - return object; + SetReadWriteRequest.toObject = function toObject() { + return {}; }; /** - * Converts this ReloadSchemaRequest to JSON. + * Converts this SetReadWriteRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReloadSchemaRequest + * @memberof tabletmanagerdata.SetReadWriteRequest * @instance * @returns {Object.} JSON object */ - ReloadSchemaRequest.prototype.toJSON = function toJSON() { + SetReadWriteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReloadSchemaRequest + * Gets the default type url for SetReadWriteRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ReloadSchemaRequest + * @memberof tabletmanagerdata.SetReadWriteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReloadSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetReadWriteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReloadSchemaRequest"; + return typeUrlPrefix + "/tabletmanagerdata.SetReadWriteRequest"; }; - return ReloadSchemaRequest; + return SetReadWriteRequest; })(); - tabletmanagerdata.ReloadSchemaResponse = (function() { + tabletmanagerdata.SetReadWriteResponse = (function() { /** - * Properties of a ReloadSchemaResponse. + * Properties of a SetReadWriteResponse. * @memberof tabletmanagerdata - * @interface IReloadSchemaResponse + * @interface ISetReadWriteResponse */ /** - * Constructs a new ReloadSchemaResponse. + * Constructs a new SetReadWriteResponse. * @memberof tabletmanagerdata - * @classdesc Represents a ReloadSchemaResponse. - * @implements IReloadSchemaResponse + * @classdesc Represents a SetReadWriteResponse. + * @implements ISetReadWriteResponse * @constructor - * @param {tabletmanagerdata.IReloadSchemaResponse=} [properties] Properties to set + * @param {tabletmanagerdata.ISetReadWriteResponse=} [properties] Properties to set */ - function ReloadSchemaResponse(properties) { + function SetReadWriteResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55045,60 +55886,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new ReloadSchemaResponse instance using the specified properties. + * Creates a new SetReadWriteResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReloadSchemaResponse + * @memberof tabletmanagerdata.SetReadWriteResponse * @static - * @param {tabletmanagerdata.IReloadSchemaResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ReloadSchemaResponse} ReloadSchemaResponse instance + * @param {tabletmanagerdata.ISetReadWriteResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.SetReadWriteResponse} SetReadWriteResponse instance */ - ReloadSchemaResponse.create = function create(properties) { - return new ReloadSchemaResponse(properties); + SetReadWriteResponse.create = function create(properties) { + return new SetReadWriteResponse(properties); }; /** - * Encodes the specified ReloadSchemaResponse message. Does not implicitly {@link tabletmanagerdata.ReloadSchemaResponse.verify|verify} messages. + * Encodes the specified SetReadWriteResponse message. Does not implicitly {@link tabletmanagerdata.SetReadWriteResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReloadSchemaResponse + * @memberof tabletmanagerdata.SetReadWriteResponse * @static - * @param {tabletmanagerdata.IReloadSchemaResponse} message ReloadSchemaResponse message or plain object to encode + * @param {tabletmanagerdata.ISetReadWriteResponse} message SetReadWriteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaResponse.encode = function encode(message, writer) { + SetReadWriteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified ReloadSchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReloadSchemaResponse.verify|verify} messages. + * Encodes the specified SetReadWriteResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadWriteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReloadSchemaResponse + * @memberof tabletmanagerdata.SetReadWriteResponse * @static - * @param {tabletmanagerdata.IReloadSchemaResponse} message ReloadSchemaResponse message or plain object to encode + * @param {tabletmanagerdata.ISetReadWriteResponse} message SetReadWriteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + SetReadWriteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReloadSchemaResponse message from the specified reader or buffer. + * Decodes a SetReadWriteResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReloadSchemaResponse + * @memberof tabletmanagerdata.SetReadWriteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReloadSchemaResponse} ReloadSchemaResponse + * @returns {tabletmanagerdata.SetReadWriteResponse} SetReadWriteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaResponse.decode = function decode(reader, length) { + SetReadWriteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReloadSchemaResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadWriteResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -55111,110 +55952,110 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReloadSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a SetReadWriteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReloadSchemaResponse + * @memberof tabletmanagerdata.SetReadWriteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReloadSchemaResponse} ReloadSchemaResponse + * @returns {tabletmanagerdata.SetReadWriteResponse} SetReadWriteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + SetReadWriteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReloadSchemaResponse message. + * Verifies a SetReadWriteResponse message. * @function verify - * @memberof tabletmanagerdata.ReloadSchemaResponse + * @memberof tabletmanagerdata.SetReadWriteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReloadSchemaResponse.verify = function verify(message) { + SetReadWriteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a ReloadSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetReadWriteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ReloadSchemaResponse + * @memberof tabletmanagerdata.SetReadWriteResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReloadSchemaResponse} ReloadSchemaResponse + * @returns {tabletmanagerdata.SetReadWriteResponse} SetReadWriteResponse */ - ReloadSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReloadSchemaResponse) + SetReadWriteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SetReadWriteResponse) return object; - return new $root.tabletmanagerdata.ReloadSchemaResponse(); + return new $root.tabletmanagerdata.SetReadWriteResponse(); }; /** - * Creates a plain object from a ReloadSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a SetReadWriteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ReloadSchemaResponse + * @memberof tabletmanagerdata.SetReadWriteResponse * @static - * @param {tabletmanagerdata.ReloadSchemaResponse} message ReloadSchemaResponse + * @param {tabletmanagerdata.SetReadWriteResponse} message SetReadWriteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReloadSchemaResponse.toObject = function toObject() { + SetReadWriteResponse.toObject = function toObject() { return {}; }; /** - * Converts this ReloadSchemaResponse to JSON. + * Converts this SetReadWriteResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReloadSchemaResponse + * @memberof tabletmanagerdata.SetReadWriteResponse * @instance * @returns {Object.} JSON object */ - ReloadSchemaResponse.prototype.toJSON = function toJSON() { + SetReadWriteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReloadSchemaResponse + * Gets the default type url for SetReadWriteResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ReloadSchemaResponse + * @memberof tabletmanagerdata.SetReadWriteResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReloadSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetReadWriteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReloadSchemaResponse"; + return typeUrlPrefix + "/tabletmanagerdata.SetReadWriteResponse"; }; - return ReloadSchemaResponse; + return SetReadWriteResponse; })(); - tabletmanagerdata.PreflightSchemaRequest = (function() { + tabletmanagerdata.ChangeTypeRequest = (function() { /** - * Properties of a PreflightSchemaRequest. + * Properties of a ChangeTypeRequest. * @memberof tabletmanagerdata - * @interface IPreflightSchemaRequest - * @property {Array.|null} [changes] PreflightSchemaRequest changes + * @interface IChangeTypeRequest + * @property {topodata.TabletType|null} [tablet_type] ChangeTypeRequest tablet_type + * @property {boolean|null} [semiSync] ChangeTypeRequest semiSync */ /** - * Constructs a new PreflightSchemaRequest. + * Constructs a new ChangeTypeRequest. * @memberof tabletmanagerdata - * @classdesc Represents a PreflightSchemaRequest. - * @implements IPreflightSchemaRequest + * @classdesc Represents a ChangeTypeRequest. + * @implements IChangeTypeRequest * @constructor - * @param {tabletmanagerdata.IPreflightSchemaRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IChangeTypeRequest=} [properties] Properties to set */ - function PreflightSchemaRequest(properties) { - this.changes = []; + function ChangeTypeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55222,78 +56063,89 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * PreflightSchemaRequest changes. - * @member {Array.} changes - * @memberof tabletmanagerdata.PreflightSchemaRequest + * ChangeTypeRequest tablet_type. + * @member {topodata.TabletType} tablet_type + * @memberof tabletmanagerdata.ChangeTypeRequest * @instance */ - PreflightSchemaRequest.prototype.changes = $util.emptyArray; + ChangeTypeRequest.prototype.tablet_type = 0; /** - * Creates a new PreflightSchemaRequest instance using the specified properties. + * ChangeTypeRequest semiSync. + * @member {boolean} semiSync + * @memberof tabletmanagerdata.ChangeTypeRequest + * @instance + */ + ChangeTypeRequest.prototype.semiSync = false; + + /** + * Creates a new ChangeTypeRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.PreflightSchemaRequest + * @memberof tabletmanagerdata.ChangeTypeRequest * @static - * @param {tabletmanagerdata.IPreflightSchemaRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.PreflightSchemaRequest} PreflightSchemaRequest instance + * @param {tabletmanagerdata.IChangeTypeRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ChangeTypeRequest} ChangeTypeRequest instance */ - PreflightSchemaRequest.create = function create(properties) { - return new PreflightSchemaRequest(properties); + ChangeTypeRequest.create = function create(properties) { + return new ChangeTypeRequest(properties); }; /** - * Encodes the specified PreflightSchemaRequest message. Does not implicitly {@link tabletmanagerdata.PreflightSchemaRequest.verify|verify} messages. + * Encodes the specified ChangeTypeRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTypeRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.PreflightSchemaRequest + * @memberof tabletmanagerdata.ChangeTypeRequest * @static - * @param {tabletmanagerdata.IPreflightSchemaRequest} message PreflightSchemaRequest message or plain object to encode + * @param {tabletmanagerdata.IChangeTypeRequest} message ChangeTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PreflightSchemaRequest.encode = function encode(message, writer) { + ChangeTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.changes != null && message.changes.length) - for (let i = 0; i < message.changes.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.changes[i]); + if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tablet_type); + if (message.semiSync != null && Object.hasOwnProperty.call(message, "semiSync")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.semiSync); return writer; }; /** - * Encodes the specified PreflightSchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PreflightSchemaRequest.verify|verify} messages. + * Encodes the specified ChangeTypeRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.PreflightSchemaRequest + * @memberof tabletmanagerdata.ChangeTypeRequest * @static - * @param {tabletmanagerdata.IPreflightSchemaRequest} message PreflightSchemaRequest message or plain object to encode + * @param {tabletmanagerdata.IChangeTypeRequest} message ChangeTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PreflightSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + ChangeTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PreflightSchemaRequest message from the specified reader or buffer. + * Decodes a ChangeTypeRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.PreflightSchemaRequest + * @memberof tabletmanagerdata.ChangeTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.PreflightSchemaRequest} PreflightSchemaRequest + * @returns {tabletmanagerdata.ChangeTypeRequest} ChangeTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PreflightSchemaRequest.decode = function decode(reader, length) { + ChangeTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PreflightSchemaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTypeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.changes && message.changes.length)) - message.changes = []; - message.changes.push(reader.string()); + message.tablet_type = reader.int32(); + break; + } + case 2: { + message.semiSync = reader.bool(); break; } default: @@ -55305,135 +56157,194 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a PreflightSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a ChangeTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.PreflightSchemaRequest + * @memberof tabletmanagerdata.ChangeTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.PreflightSchemaRequest} PreflightSchemaRequest + * @returns {tabletmanagerdata.ChangeTypeRequest} ChangeTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PreflightSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + ChangeTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PreflightSchemaRequest message. + * Verifies a ChangeTypeRequest message. * @function verify - * @memberof tabletmanagerdata.PreflightSchemaRequest + * @memberof tabletmanagerdata.ChangeTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PreflightSchemaRequest.verify = function verify(message) { + ChangeTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.changes != null && message.hasOwnProperty("changes")) { - if (!Array.isArray(message.changes)) - return "changes: array expected"; - for (let i = 0; i < message.changes.length; ++i) - if (!$util.isString(message.changes[i])) - return "changes: 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.semiSync != null && message.hasOwnProperty("semiSync")) + if (typeof message.semiSync !== "boolean") + return "semiSync: boolean expected"; return null; }; /** - * Creates a PreflightSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.PreflightSchemaRequest + * @memberof tabletmanagerdata.ChangeTypeRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.PreflightSchemaRequest} PreflightSchemaRequest + * @returns {tabletmanagerdata.ChangeTypeRequest} ChangeTypeRequest */ - PreflightSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.PreflightSchemaRequest) + ChangeTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ChangeTypeRequest) return object; - let message = new $root.tabletmanagerdata.PreflightSchemaRequest(); - if (object.changes) { - if (!Array.isArray(object.changes)) - throw TypeError(".tabletmanagerdata.PreflightSchemaRequest.changes: array expected"); - message.changes = []; - for (let i = 0; i < object.changes.length; ++i) - message.changes[i] = String(object.changes[i]); + let message = new $root.tabletmanagerdata.ChangeTypeRequest(); + switch (object.tablet_type) { + default: + if (typeof object.tablet_type === "number") { + message.tablet_type = object.tablet_type; + break; + } + break; + 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.semiSync != null) + message.semiSync = Boolean(object.semiSync); return message; }; /** - * Creates a plain object from a PreflightSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a ChangeTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.PreflightSchemaRequest + * @memberof tabletmanagerdata.ChangeTypeRequest * @static - * @param {tabletmanagerdata.PreflightSchemaRequest} message PreflightSchemaRequest + * @param {tabletmanagerdata.ChangeTypeRequest} message ChangeTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PreflightSchemaRequest.toObject = function toObject(message, options) { + ChangeTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.changes = []; - if (message.changes && message.changes.length) { - object.changes = []; - for (let j = 0; j < message.changes.length; ++j) - object.changes[j] = message.changes[j]; + if (options.defaults) { + object.tablet_type = options.enums === String ? "UNKNOWN" : 0; + object.semiSync = false; } + if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) + object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] === undefined ? message.tablet_type : $root.topodata.TabletType[message.tablet_type] : message.tablet_type; + if (message.semiSync != null && message.hasOwnProperty("semiSync")) + object.semiSync = message.semiSync; return object; }; /** - * Converts this PreflightSchemaRequest to JSON. + * Converts this ChangeTypeRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.PreflightSchemaRequest + * @memberof tabletmanagerdata.ChangeTypeRequest * @instance * @returns {Object.} JSON object */ - PreflightSchemaRequest.prototype.toJSON = function toJSON() { + ChangeTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PreflightSchemaRequest + * Gets the default type url for ChangeTypeRequest * @function getTypeUrl - * @memberof tabletmanagerdata.PreflightSchemaRequest + * @memberof tabletmanagerdata.ChangeTypeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PreflightSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ChangeTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.PreflightSchemaRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ChangeTypeRequest"; }; - return PreflightSchemaRequest; + return ChangeTypeRequest; })(); - tabletmanagerdata.PreflightSchemaResponse = (function() { + tabletmanagerdata.ChangeTypeResponse = (function() { /** - * Properties of a PreflightSchemaResponse. + * Properties of a ChangeTypeResponse. * @memberof tabletmanagerdata - * @interface IPreflightSchemaResponse - * @property {Array.|null} [change_results] PreflightSchemaResponse change_results + * @interface IChangeTypeResponse */ /** - * Constructs a new PreflightSchemaResponse. + * Constructs a new ChangeTypeResponse. * @memberof tabletmanagerdata - * @classdesc Represents a PreflightSchemaResponse. - * @implements IPreflightSchemaResponse + * @classdesc Represents a ChangeTypeResponse. + * @implements IChangeTypeResponse * @constructor - * @param {tabletmanagerdata.IPreflightSchemaResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IChangeTypeResponse=} [properties] Properties to set */ - function PreflightSchemaResponse(properties) { - this.change_results = []; + function ChangeTypeResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55441,80 +56352,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * PreflightSchemaResponse change_results. - * @member {Array.} change_results - * @memberof tabletmanagerdata.PreflightSchemaResponse - * @instance - */ - PreflightSchemaResponse.prototype.change_results = $util.emptyArray; - - /** - * Creates a new PreflightSchemaResponse instance using the specified properties. + * Creates a new ChangeTypeResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.PreflightSchemaResponse + * @memberof tabletmanagerdata.ChangeTypeResponse * @static - * @param {tabletmanagerdata.IPreflightSchemaResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.PreflightSchemaResponse} PreflightSchemaResponse instance + * @param {tabletmanagerdata.IChangeTypeResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ChangeTypeResponse} ChangeTypeResponse instance */ - PreflightSchemaResponse.create = function create(properties) { - return new PreflightSchemaResponse(properties); + ChangeTypeResponse.create = function create(properties) { + return new ChangeTypeResponse(properties); }; /** - * Encodes the specified PreflightSchemaResponse message. Does not implicitly {@link tabletmanagerdata.PreflightSchemaResponse.verify|verify} messages. + * Encodes the specified ChangeTypeResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTypeResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.PreflightSchemaResponse + * @memberof tabletmanagerdata.ChangeTypeResponse * @static - * @param {tabletmanagerdata.IPreflightSchemaResponse} message PreflightSchemaResponse message or plain object to encode + * @param {tabletmanagerdata.IChangeTypeResponse} message ChangeTypeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PreflightSchemaResponse.encode = function encode(message, writer) { + ChangeTypeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.change_results != null && message.change_results.length) - for (let i = 0; i < message.change_results.length; ++i) - $root.tabletmanagerdata.SchemaChangeResult.encode(message.change_results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified PreflightSchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PreflightSchemaResponse.verify|verify} messages. + * Encodes the specified ChangeTypeResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTypeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.PreflightSchemaResponse + * @memberof tabletmanagerdata.ChangeTypeResponse * @static - * @param {tabletmanagerdata.IPreflightSchemaResponse} message PreflightSchemaResponse message or plain object to encode + * @param {tabletmanagerdata.IChangeTypeResponse} message ChangeTypeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PreflightSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + ChangeTypeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PreflightSchemaResponse message from the specified reader or buffer. + * Decodes a ChangeTypeResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.PreflightSchemaResponse + * @memberof tabletmanagerdata.ChangeTypeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.PreflightSchemaResponse} PreflightSchemaResponse + * @returns {tabletmanagerdata.ChangeTypeResponse} ChangeTypeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PreflightSchemaResponse.decode = function decode(reader, length) { + ChangeTypeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PreflightSchemaResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTypeResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.change_results && message.change_results.length)) - message.change_results = []; - message.change_results.push($root.tabletmanagerdata.SchemaChangeResult.decode(reader, reader.uint32())); - break; - } default: reader.skipType(tag & 7); break; @@ -55524,146 +56418,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a PreflightSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a ChangeTypeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.PreflightSchemaResponse + * @memberof tabletmanagerdata.ChangeTypeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.PreflightSchemaResponse} PreflightSchemaResponse + * @returns {tabletmanagerdata.ChangeTypeResponse} ChangeTypeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PreflightSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + ChangeTypeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PreflightSchemaResponse message. + * Verifies a ChangeTypeResponse message. * @function verify - * @memberof tabletmanagerdata.PreflightSchemaResponse + * @memberof tabletmanagerdata.ChangeTypeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PreflightSchemaResponse.verify = function verify(message) { + ChangeTypeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.change_results != null && message.hasOwnProperty("change_results")) { - if (!Array.isArray(message.change_results)) - return "change_results: array expected"; - for (let i = 0; i < message.change_results.length; ++i) { - let error = $root.tabletmanagerdata.SchemaChangeResult.verify(message.change_results[i]); - if (error) - return "change_results." + error; - } - } return null; }; /** - * Creates a PreflightSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeTypeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.PreflightSchemaResponse + * @memberof tabletmanagerdata.ChangeTypeResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.PreflightSchemaResponse} PreflightSchemaResponse + * @returns {tabletmanagerdata.ChangeTypeResponse} ChangeTypeResponse */ - PreflightSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.PreflightSchemaResponse) + ChangeTypeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ChangeTypeResponse) return object; - let message = new $root.tabletmanagerdata.PreflightSchemaResponse(); - if (object.change_results) { - if (!Array.isArray(object.change_results)) - throw TypeError(".tabletmanagerdata.PreflightSchemaResponse.change_results: array expected"); - message.change_results = []; - for (let i = 0; i < object.change_results.length; ++i) { - if (typeof object.change_results[i] !== "object") - throw TypeError(".tabletmanagerdata.PreflightSchemaResponse.change_results: object expected"); - message.change_results[i] = $root.tabletmanagerdata.SchemaChangeResult.fromObject(object.change_results[i]); - } - } - return message; + return new $root.tabletmanagerdata.ChangeTypeResponse(); }; /** - * Creates a plain object from a PreflightSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a ChangeTypeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.PreflightSchemaResponse + * @memberof tabletmanagerdata.ChangeTypeResponse * @static - * @param {tabletmanagerdata.PreflightSchemaResponse} message PreflightSchemaResponse + * @param {tabletmanagerdata.ChangeTypeResponse} message ChangeTypeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PreflightSchemaResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.change_results = []; - if (message.change_results && message.change_results.length) { - object.change_results = []; - for (let j = 0; j < message.change_results.length; ++j) - object.change_results[j] = $root.tabletmanagerdata.SchemaChangeResult.toObject(message.change_results[j], options); - } - return object; + ChangeTypeResponse.toObject = function toObject() { + return {}; }; /** - * Converts this PreflightSchemaResponse to JSON. + * Converts this ChangeTypeResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.PreflightSchemaResponse + * @memberof tabletmanagerdata.ChangeTypeResponse * @instance * @returns {Object.} JSON object */ - PreflightSchemaResponse.prototype.toJSON = function toJSON() { + ChangeTypeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PreflightSchemaResponse + * Gets the default type url for ChangeTypeResponse * @function getTypeUrl - * @memberof tabletmanagerdata.PreflightSchemaResponse + * @memberof tabletmanagerdata.ChangeTypeResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PreflightSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ChangeTypeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.PreflightSchemaResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ChangeTypeResponse"; }; - return PreflightSchemaResponse; + return ChangeTypeResponse; })(); - tabletmanagerdata.ApplySchemaRequest = (function() { + tabletmanagerdata.RefreshStateRequest = (function() { /** - * Properties of an ApplySchemaRequest. + * Properties of a RefreshStateRequest. * @memberof tabletmanagerdata - * @interface IApplySchemaRequest - * @property {string|null} [sql] ApplySchemaRequest sql - * @property {boolean|null} [force] ApplySchemaRequest force - * @property {boolean|null} [allow_replication] ApplySchemaRequest allow_replication - * @property {tabletmanagerdata.ISchemaDefinition|null} [before_schema] ApplySchemaRequest before_schema - * @property {tabletmanagerdata.ISchemaDefinition|null} [after_schema] ApplySchemaRequest after_schema - * @property {string|null} [sql_mode] ApplySchemaRequest sql_mode - * @property {number|Long|null} [batch_size] ApplySchemaRequest batch_size - * @property {boolean|null} [disable_foreign_key_checks] ApplySchemaRequest disable_foreign_key_checks + * @interface IRefreshStateRequest */ /** - * Constructs a new ApplySchemaRequest. + * Constructs a new RefreshStateRequest. * @memberof tabletmanagerdata - * @classdesc Represents an ApplySchemaRequest. - * @implements IApplySchemaRequest + * @classdesc Represents a RefreshStateRequest. + * @implements IRefreshStateRequest * @constructor - * @param {tabletmanagerdata.IApplySchemaRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IRefreshStateRequest=} [properties] Properties to set */ - function ApplySchemaRequest(properties) { + function RefreshStateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55671,175 +56527,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ApplySchemaRequest sql. - * @member {string} sql - * @memberof tabletmanagerdata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.sql = ""; - - /** - * ApplySchemaRequest force. - * @member {boolean} force - * @memberof tabletmanagerdata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.force = false; - - /** - * ApplySchemaRequest allow_replication. - * @member {boolean} allow_replication - * @memberof tabletmanagerdata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.allow_replication = false; - - /** - * ApplySchemaRequest before_schema. - * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} before_schema - * @memberof tabletmanagerdata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.before_schema = null; - - /** - * ApplySchemaRequest after_schema. - * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} after_schema - * @memberof tabletmanagerdata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.after_schema = null; - - /** - * ApplySchemaRequest sql_mode. - * @member {string} sql_mode - * @memberof tabletmanagerdata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.sql_mode = ""; - - /** - * ApplySchemaRequest batch_size. - * @member {number|Long} batch_size - * @memberof tabletmanagerdata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.batch_size = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ApplySchemaRequest disable_foreign_key_checks. - * @member {boolean} disable_foreign_key_checks - * @memberof tabletmanagerdata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.disable_foreign_key_checks = false; - - /** - * Creates a new ApplySchemaRequest instance using the specified properties. + * Creates a new RefreshStateRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ApplySchemaRequest + * @memberof tabletmanagerdata.RefreshStateRequest * @static - * @param {tabletmanagerdata.IApplySchemaRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ApplySchemaRequest} ApplySchemaRequest instance + * @param {tabletmanagerdata.IRefreshStateRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.RefreshStateRequest} RefreshStateRequest instance */ - ApplySchemaRequest.create = function create(properties) { - return new ApplySchemaRequest(properties); + RefreshStateRequest.create = function create(properties) { + return new RefreshStateRequest(properties); }; /** - * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link tabletmanagerdata.ApplySchemaRequest.verify|verify} messages. + * Encodes the specified RefreshStateRequest message. Does not implicitly {@link tabletmanagerdata.RefreshStateRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ApplySchemaRequest + * @memberof tabletmanagerdata.RefreshStateRequest * @static - * @param {tabletmanagerdata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode + * @param {tabletmanagerdata.IRefreshStateRequest} message RefreshStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaRequest.encode = function encode(message, writer) { + RefreshStateRequest.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.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); - if (message.allow_replication != null && Object.hasOwnProperty.call(message, "allow_replication")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allow_replication); - if (message.before_schema != null && Object.hasOwnProperty.call(message, "before_schema")) - $root.tabletmanagerdata.SchemaDefinition.encode(message.before_schema, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.after_schema != null && Object.hasOwnProperty.call(message, "after_schema")) - $root.tabletmanagerdata.SchemaDefinition.encode(message.after_schema, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.sql_mode != null && Object.hasOwnProperty.call(message, "sql_mode")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.sql_mode); - if (message.batch_size != null && Object.hasOwnProperty.call(message, "batch_size")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.batch_size); - if (message.disable_foreign_key_checks != null && Object.hasOwnProperty.call(message, "disable_foreign_key_checks")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.disable_foreign_key_checks); return writer; }; /** - * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ApplySchemaRequest.verify|verify} messages. + * Encodes the specified RefreshStateRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.RefreshStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ApplySchemaRequest + * @memberof tabletmanagerdata.RefreshStateRequest * @static - * @param {tabletmanagerdata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode + * @param {tabletmanagerdata.IRefreshStateRequest} message RefreshStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + RefreshStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer. + * Decodes a RefreshStateRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ApplySchemaRequest + * @memberof tabletmanagerdata.RefreshStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ApplySchemaRequest} ApplySchemaRequest + * @returns {tabletmanagerdata.RefreshStateRequest} RefreshStateRequest * @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) { + RefreshStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ApplySchemaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.RefreshStateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.sql = reader.string(); - break; - } - case 2: { - message.force = reader.bool(); - break; - } - case 3: { - message.allow_replication = reader.bool(); - break; - } - case 4: { - message.before_schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); - break; - } - case 5: { - message.after_schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); - break; - } - case 6: { - message.sql_mode = reader.string(); - break; - } - case 7: { - message.batch_size = reader.int64(); - break; - } - case 8: { - message.disable_foreign_key_checks = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -55849,204 +56593,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a RefreshStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ApplySchemaRequest + * @memberof tabletmanagerdata.RefreshStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ApplySchemaRequest} ApplySchemaRequest + * @returns {tabletmanagerdata.RefreshStateRequest} RefreshStateRequest * @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) { + RefreshStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplySchemaRequest message. + * Verifies a RefreshStateRequest message. * @function verify - * @memberof tabletmanagerdata.ApplySchemaRequest + * @memberof tabletmanagerdata.RefreshStateRequest * @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) { + RefreshStateRequest.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.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - if (message.allow_replication != null && message.hasOwnProperty("allow_replication")) - if (typeof message.allow_replication !== "boolean") - return "allow_replication: boolean expected"; - if (message.before_schema != null && message.hasOwnProperty("before_schema")) { - let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.before_schema); - if (error) - return "before_schema." + error; - } - if (message.after_schema != null && message.hasOwnProperty("after_schema")) { - let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.after_schema); - if (error) - return "after_schema." + error; - } - if (message.sql_mode != null && message.hasOwnProperty("sql_mode")) - if (!$util.isString(message.sql_mode)) - return "sql_mode: string expected"; - if (message.batch_size != null && message.hasOwnProperty("batch_size")) - if (!$util.isInteger(message.batch_size) && !(message.batch_size && $util.isInteger(message.batch_size.low) && $util.isInteger(message.batch_size.high))) - return "batch_size: integer|Long expected"; - if (message.disable_foreign_key_checks != null && message.hasOwnProperty("disable_foreign_key_checks")) - if (typeof message.disable_foreign_key_checks !== "boolean") - return "disable_foreign_key_checks: boolean expected"; return null; }; /** - * Creates an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ApplySchemaRequest + * @memberof tabletmanagerdata.RefreshStateRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ApplySchemaRequest} ApplySchemaRequest + * @returns {tabletmanagerdata.RefreshStateRequest} RefreshStateRequest */ - ApplySchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ApplySchemaRequest) + RefreshStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.RefreshStateRequest) return object; - let message = new $root.tabletmanagerdata.ApplySchemaRequest(); - if (object.sql != null) - message.sql = String(object.sql); - if (object.force != null) - message.force = Boolean(object.force); - if (object.allow_replication != null) - message.allow_replication = Boolean(object.allow_replication); - if (object.before_schema != null) { - if (typeof object.before_schema !== "object") - throw TypeError(".tabletmanagerdata.ApplySchemaRequest.before_schema: object expected"); - message.before_schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.before_schema); - } - if (object.after_schema != null) { - if (typeof object.after_schema !== "object") - throw TypeError(".tabletmanagerdata.ApplySchemaRequest.after_schema: object expected"); - message.after_schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.after_schema); - } - if (object.sql_mode != null) - message.sql_mode = String(object.sql_mode); - if (object.batch_size != null) - if ($util.Long) - (message.batch_size = $util.Long.fromValue(object.batch_size)).unsigned = false; - else if (typeof object.batch_size === "string") - message.batch_size = parseInt(object.batch_size, 10); - else if (typeof object.batch_size === "number") - message.batch_size = object.batch_size; - else if (typeof object.batch_size === "object") - message.batch_size = new $util.LongBits(object.batch_size.low >>> 0, object.batch_size.high >>> 0).toNumber(); - if (object.disable_foreign_key_checks != null) - message.disable_foreign_key_checks = Boolean(object.disable_foreign_key_checks); - return message; + return new $root.tabletmanagerdata.RefreshStateRequest(); }; /** - * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a RefreshStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ApplySchemaRequest + * @memberof tabletmanagerdata.RefreshStateRequest * @static - * @param {tabletmanagerdata.ApplySchemaRequest} message ApplySchemaRequest + * @param {tabletmanagerdata.RefreshStateRequest} message RefreshStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplySchemaRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.sql = ""; - object.force = false; - object.allow_replication = false; - object.before_schema = null; - object.after_schema = null; - object.sql_mode = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.batch_size = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.batch_size = options.longs === String ? "0" : 0; - object.disable_foreign_key_checks = false; - } - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = message.sql; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - if (message.allow_replication != null && message.hasOwnProperty("allow_replication")) - object.allow_replication = message.allow_replication; - if (message.before_schema != null && message.hasOwnProperty("before_schema")) - object.before_schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.before_schema, options); - if (message.after_schema != null && message.hasOwnProperty("after_schema")) - object.after_schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.after_schema, options); - if (message.sql_mode != null && message.hasOwnProperty("sql_mode")) - object.sql_mode = message.sql_mode; - if (message.batch_size != null && message.hasOwnProperty("batch_size")) - if (typeof message.batch_size === "number") - object.batch_size = options.longs === String ? String(message.batch_size) : message.batch_size; - else - object.batch_size = options.longs === String ? $util.Long.prototype.toString.call(message.batch_size) : options.longs === Number ? new $util.LongBits(message.batch_size.low >>> 0, message.batch_size.high >>> 0).toNumber() : message.batch_size; - if (message.disable_foreign_key_checks != null && message.hasOwnProperty("disable_foreign_key_checks")) - object.disable_foreign_key_checks = message.disable_foreign_key_checks; - return object; + RefreshStateRequest.toObject = function toObject() { + return {}; }; /** - * Converts this ApplySchemaRequest to JSON. + * Converts this RefreshStateRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ApplySchemaRequest + * @memberof tabletmanagerdata.RefreshStateRequest * @instance * @returns {Object.} JSON object */ - ApplySchemaRequest.prototype.toJSON = function toJSON() { + RefreshStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApplySchemaRequest + * Gets the default type url for RefreshStateRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ApplySchemaRequest + * @memberof tabletmanagerdata.RefreshStateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApplySchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RefreshStateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ApplySchemaRequest"; + return typeUrlPrefix + "/tabletmanagerdata.RefreshStateRequest"; }; - return ApplySchemaRequest; + return RefreshStateRequest; })(); - tabletmanagerdata.ApplySchemaResponse = (function() { + tabletmanagerdata.RefreshStateResponse = (function() { /** - * Properties of an ApplySchemaResponse. + * Properties of a RefreshStateResponse. * @memberof tabletmanagerdata - * @interface IApplySchemaResponse - * @property {tabletmanagerdata.ISchemaDefinition|null} [before_schema] ApplySchemaResponse before_schema - * @property {tabletmanagerdata.ISchemaDefinition|null} [after_schema] ApplySchemaResponse after_schema + * @interface IRefreshStateResponse */ /** - * Constructs a new ApplySchemaResponse. + * Constructs a new RefreshStateResponse. * @memberof tabletmanagerdata - * @classdesc Represents an ApplySchemaResponse. - * @implements IApplySchemaResponse + * @classdesc Represents a RefreshStateResponse. + * @implements IRefreshStateResponse * @constructor - * @param {tabletmanagerdata.IApplySchemaResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IRefreshStateResponse=} [properties] Properties to set */ - function ApplySchemaResponse(properties) { + function RefreshStateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56054,91 +56702,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ApplySchemaResponse before_schema. - * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} before_schema - * @memberof tabletmanagerdata.ApplySchemaResponse - * @instance - */ - ApplySchemaResponse.prototype.before_schema = null; - - /** - * ApplySchemaResponse after_schema. - * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} after_schema - * @memberof tabletmanagerdata.ApplySchemaResponse - * @instance - */ - ApplySchemaResponse.prototype.after_schema = null; - - /** - * Creates a new ApplySchemaResponse instance using the specified properties. + * Creates a new RefreshStateResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ApplySchemaResponse + * @memberof tabletmanagerdata.RefreshStateResponse * @static - * @param {tabletmanagerdata.IApplySchemaResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ApplySchemaResponse} ApplySchemaResponse instance + * @param {tabletmanagerdata.IRefreshStateResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.RefreshStateResponse} RefreshStateResponse instance */ - ApplySchemaResponse.create = function create(properties) { - return new ApplySchemaResponse(properties); + RefreshStateResponse.create = function create(properties) { + return new RefreshStateResponse(properties); }; /** - * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link tabletmanagerdata.ApplySchemaResponse.verify|verify} messages. + * Encodes the specified RefreshStateResponse message. Does not implicitly {@link tabletmanagerdata.RefreshStateResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ApplySchemaResponse + * @memberof tabletmanagerdata.RefreshStateResponse * @static - * @param {tabletmanagerdata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode + * @param {tabletmanagerdata.IRefreshStateResponse} message RefreshStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaResponse.encode = function encode(message, writer) { + RefreshStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.before_schema != null && Object.hasOwnProperty.call(message, "before_schema")) - $root.tabletmanagerdata.SchemaDefinition.encode(message.before_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.after_schema != null && Object.hasOwnProperty.call(message, "after_schema")) - $root.tabletmanagerdata.SchemaDefinition.encode(message.after_schema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ApplySchemaResponse.verify|verify} messages. + * Encodes the specified RefreshStateResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.RefreshStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ApplySchemaResponse + * @memberof tabletmanagerdata.RefreshStateResponse * @static - * @param {tabletmanagerdata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode + * @param {tabletmanagerdata.IRefreshStateResponse} message RefreshStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + RefreshStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer. + * Decodes a RefreshStateResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ApplySchemaResponse + * @memberof tabletmanagerdata.RefreshStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ApplySchemaResponse} ApplySchemaResponse + * @returns {tabletmanagerdata.RefreshStateResponse} RefreshStateResponse * @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) { + RefreshStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ApplySchemaResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.RefreshStateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.before_schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); - break; - } - case 2: { - message.after_schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -56148,140 +56768,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a RefreshStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ApplySchemaResponse + * @memberof tabletmanagerdata.RefreshStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ApplySchemaResponse} ApplySchemaResponse + * @returns {tabletmanagerdata.RefreshStateResponse} RefreshStateResponse * @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) { + RefreshStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplySchemaResponse message. + * Verifies a RefreshStateResponse message. * @function verify - * @memberof tabletmanagerdata.ApplySchemaResponse + * @memberof tabletmanagerdata.RefreshStateResponse * @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) { + RefreshStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.before_schema != null && message.hasOwnProperty("before_schema")) { - let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.before_schema); - if (error) - return "before_schema." + error; - } - if (message.after_schema != null && message.hasOwnProperty("after_schema")) { - let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.after_schema); - if (error) - return "after_schema." + error; - } return null; }; /** - * Creates an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ApplySchemaResponse + * @memberof tabletmanagerdata.RefreshStateResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ApplySchemaResponse} ApplySchemaResponse + * @returns {tabletmanagerdata.RefreshStateResponse} RefreshStateResponse */ - ApplySchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ApplySchemaResponse) + RefreshStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.RefreshStateResponse) return object; - let message = new $root.tabletmanagerdata.ApplySchemaResponse(); - if (object.before_schema != null) { - if (typeof object.before_schema !== "object") - throw TypeError(".tabletmanagerdata.ApplySchemaResponse.before_schema: object expected"); - message.before_schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.before_schema); - } - if (object.after_schema != null) { - if (typeof object.after_schema !== "object") - throw TypeError(".tabletmanagerdata.ApplySchemaResponse.after_schema: object expected"); - message.after_schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.after_schema); - } - return message; + return new $root.tabletmanagerdata.RefreshStateResponse(); }; /** - * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a RefreshStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ApplySchemaResponse + * @memberof tabletmanagerdata.RefreshStateResponse * @static - * @param {tabletmanagerdata.ApplySchemaResponse} message ApplySchemaResponse + * @param {tabletmanagerdata.RefreshStateResponse} message RefreshStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplySchemaResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.before_schema = null; - object.after_schema = null; - } - if (message.before_schema != null && message.hasOwnProperty("before_schema")) - object.before_schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.before_schema, options); - if (message.after_schema != null && message.hasOwnProperty("after_schema")) - object.after_schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.after_schema, options); - return object; + RefreshStateResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ApplySchemaResponse to JSON. + * Converts this RefreshStateResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ApplySchemaResponse + * @memberof tabletmanagerdata.RefreshStateResponse * @instance * @returns {Object.} JSON object */ - ApplySchemaResponse.prototype.toJSON = function toJSON() { + RefreshStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApplySchemaResponse + * Gets the default type url for RefreshStateResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ApplySchemaResponse + * @memberof tabletmanagerdata.RefreshStateResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApplySchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RefreshStateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ApplySchemaResponse"; + return typeUrlPrefix + "/tabletmanagerdata.RefreshStateResponse"; }; - return ApplySchemaResponse; + return RefreshStateResponse; })(); - tabletmanagerdata.LockTablesRequest = (function() { + tabletmanagerdata.RunHealthCheckRequest = (function() { /** - * Properties of a LockTablesRequest. + * Properties of a RunHealthCheckRequest. * @memberof tabletmanagerdata - * @interface ILockTablesRequest + * @interface IRunHealthCheckRequest */ /** - * Constructs a new LockTablesRequest. + * Constructs a new RunHealthCheckRequest. * @memberof tabletmanagerdata - * @classdesc Represents a LockTablesRequest. - * @implements ILockTablesRequest + * @classdesc Represents a RunHealthCheckRequest. + * @implements IRunHealthCheckRequest * @constructor - * @param {tabletmanagerdata.ILockTablesRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IRunHealthCheckRequest=} [properties] Properties to set */ - function LockTablesRequest(properties) { + function RunHealthCheckRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56289,60 +56877,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new LockTablesRequest instance using the specified properties. + * Creates a new RunHealthCheckRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.LockTablesRequest + * @memberof tabletmanagerdata.RunHealthCheckRequest * @static - * @param {tabletmanagerdata.ILockTablesRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.LockTablesRequest} LockTablesRequest instance + * @param {tabletmanagerdata.IRunHealthCheckRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.RunHealthCheckRequest} RunHealthCheckRequest instance */ - LockTablesRequest.create = function create(properties) { - return new LockTablesRequest(properties); + RunHealthCheckRequest.create = function create(properties) { + return new RunHealthCheckRequest(properties); }; /** - * Encodes the specified LockTablesRequest message. Does not implicitly {@link tabletmanagerdata.LockTablesRequest.verify|verify} messages. + * Encodes the specified RunHealthCheckRequest message. Does not implicitly {@link tabletmanagerdata.RunHealthCheckRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.LockTablesRequest + * @memberof tabletmanagerdata.RunHealthCheckRequest * @static - * @param {tabletmanagerdata.ILockTablesRequest} message LockTablesRequest message or plain object to encode + * @param {tabletmanagerdata.IRunHealthCheckRequest} message RunHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LockTablesRequest.encode = function encode(message, writer) { + RunHealthCheckRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified LockTablesRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.LockTablesRequest.verify|verify} messages. + * Encodes the specified RunHealthCheckRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.RunHealthCheckRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.LockTablesRequest + * @memberof tabletmanagerdata.RunHealthCheckRequest * @static - * @param {tabletmanagerdata.ILockTablesRequest} message LockTablesRequest message or plain object to encode + * @param {tabletmanagerdata.IRunHealthCheckRequest} message RunHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LockTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LockTablesRequest message from the specified reader or buffer. + * Decodes a RunHealthCheckRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.LockTablesRequest + * @memberof tabletmanagerdata.RunHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.LockTablesRequest} LockTablesRequest + * @returns {tabletmanagerdata.RunHealthCheckRequest} RunHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LockTablesRequest.decode = function decode(reader, length) { + RunHealthCheckRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.LockTablesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.RunHealthCheckRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -56355,108 +56943,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a LockTablesRequest message from the specified reader or buffer, length delimited. + * Decodes a RunHealthCheckRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.LockTablesRequest + * @memberof tabletmanagerdata.RunHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.LockTablesRequest} LockTablesRequest + * @returns {tabletmanagerdata.RunHealthCheckRequest} RunHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LockTablesRequest.decodeDelimited = function decodeDelimited(reader) { + RunHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LockTablesRequest message. + * Verifies a RunHealthCheckRequest message. * @function verify - * @memberof tabletmanagerdata.LockTablesRequest + * @memberof tabletmanagerdata.RunHealthCheckRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LockTablesRequest.verify = function verify(message) { + RunHealthCheckRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a LockTablesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunHealthCheckRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.LockTablesRequest + * @memberof tabletmanagerdata.RunHealthCheckRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.LockTablesRequest} LockTablesRequest + * @returns {tabletmanagerdata.RunHealthCheckRequest} RunHealthCheckRequest */ - LockTablesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.LockTablesRequest) + RunHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.RunHealthCheckRequest) return object; - return new $root.tabletmanagerdata.LockTablesRequest(); + return new $root.tabletmanagerdata.RunHealthCheckRequest(); }; /** - * Creates a plain object from a LockTablesRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunHealthCheckRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.LockTablesRequest + * @memberof tabletmanagerdata.RunHealthCheckRequest * @static - * @param {tabletmanagerdata.LockTablesRequest} message LockTablesRequest + * @param {tabletmanagerdata.RunHealthCheckRequest} message RunHealthCheckRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LockTablesRequest.toObject = function toObject() { + RunHealthCheckRequest.toObject = function toObject() { return {}; }; /** - * Converts this LockTablesRequest to JSON. + * Converts this RunHealthCheckRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.LockTablesRequest + * @memberof tabletmanagerdata.RunHealthCheckRequest * @instance * @returns {Object.} JSON object */ - LockTablesRequest.prototype.toJSON = function toJSON() { + RunHealthCheckRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LockTablesRequest + * Gets the default type url for RunHealthCheckRequest * @function getTypeUrl - * @memberof tabletmanagerdata.LockTablesRequest + * @memberof tabletmanagerdata.RunHealthCheckRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LockTablesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RunHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.LockTablesRequest"; + return typeUrlPrefix + "/tabletmanagerdata.RunHealthCheckRequest"; }; - return LockTablesRequest; + return RunHealthCheckRequest; })(); - tabletmanagerdata.LockTablesResponse = (function() { + tabletmanagerdata.RunHealthCheckResponse = (function() { /** - * Properties of a LockTablesResponse. + * Properties of a RunHealthCheckResponse. * @memberof tabletmanagerdata - * @interface ILockTablesResponse + * @interface IRunHealthCheckResponse */ /** - * Constructs a new LockTablesResponse. + * Constructs a new RunHealthCheckResponse. * @memberof tabletmanagerdata - * @classdesc Represents a LockTablesResponse. - * @implements ILockTablesResponse + * @classdesc Represents a RunHealthCheckResponse. + * @implements IRunHealthCheckResponse * @constructor - * @param {tabletmanagerdata.ILockTablesResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IRunHealthCheckResponse=} [properties] Properties to set */ - function LockTablesResponse(properties) { + function RunHealthCheckResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56464,60 +57052,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new LockTablesResponse instance using the specified properties. + * Creates a new RunHealthCheckResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.LockTablesResponse + * @memberof tabletmanagerdata.RunHealthCheckResponse * @static - * @param {tabletmanagerdata.ILockTablesResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.LockTablesResponse} LockTablesResponse instance + * @param {tabletmanagerdata.IRunHealthCheckResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.RunHealthCheckResponse} RunHealthCheckResponse instance */ - LockTablesResponse.create = function create(properties) { - return new LockTablesResponse(properties); + RunHealthCheckResponse.create = function create(properties) { + return new RunHealthCheckResponse(properties); }; /** - * Encodes the specified LockTablesResponse message. Does not implicitly {@link tabletmanagerdata.LockTablesResponse.verify|verify} messages. + * Encodes the specified RunHealthCheckResponse message. Does not implicitly {@link tabletmanagerdata.RunHealthCheckResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.LockTablesResponse + * @memberof tabletmanagerdata.RunHealthCheckResponse * @static - * @param {tabletmanagerdata.ILockTablesResponse} message LockTablesResponse message or plain object to encode + * @param {tabletmanagerdata.IRunHealthCheckResponse} message RunHealthCheckResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LockTablesResponse.encode = function encode(message, writer) { + RunHealthCheckResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified LockTablesResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.LockTablesResponse.verify|verify} messages. + * Encodes the specified RunHealthCheckResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.RunHealthCheckResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.LockTablesResponse + * @memberof tabletmanagerdata.RunHealthCheckResponse * @static - * @param {tabletmanagerdata.ILockTablesResponse} message LockTablesResponse message or plain object to encode + * @param {tabletmanagerdata.IRunHealthCheckResponse} message RunHealthCheckResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LockTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { + RunHealthCheckResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LockTablesResponse message from the specified reader or buffer. + * Decodes a RunHealthCheckResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.LockTablesResponse + * @memberof tabletmanagerdata.RunHealthCheckResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.LockTablesResponse} LockTablesResponse + * @returns {tabletmanagerdata.RunHealthCheckResponse} RunHealthCheckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LockTablesResponse.decode = function decode(reader, length) { + RunHealthCheckResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.LockTablesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.RunHealthCheckResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -56530,108 +57118,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a LockTablesResponse message from the specified reader or buffer, length delimited. + * Decodes a RunHealthCheckResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.LockTablesResponse + * @memberof tabletmanagerdata.RunHealthCheckResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.LockTablesResponse} LockTablesResponse + * @returns {tabletmanagerdata.RunHealthCheckResponse} RunHealthCheckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LockTablesResponse.decodeDelimited = function decodeDelimited(reader) { + RunHealthCheckResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LockTablesResponse message. + * Verifies a RunHealthCheckResponse message. * @function verify - * @memberof tabletmanagerdata.LockTablesResponse + * @memberof tabletmanagerdata.RunHealthCheckResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LockTablesResponse.verify = function verify(message) { + RunHealthCheckResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a LockTablesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RunHealthCheckResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.LockTablesResponse + * @memberof tabletmanagerdata.RunHealthCheckResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.LockTablesResponse} LockTablesResponse + * @returns {tabletmanagerdata.RunHealthCheckResponse} RunHealthCheckResponse */ - LockTablesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.LockTablesResponse) + RunHealthCheckResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.RunHealthCheckResponse) return object; - return new $root.tabletmanagerdata.LockTablesResponse(); + return new $root.tabletmanagerdata.RunHealthCheckResponse(); }; /** - * Creates a plain object from a LockTablesResponse message. Also converts values to other types if specified. + * Creates a plain object from a RunHealthCheckResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.LockTablesResponse + * @memberof tabletmanagerdata.RunHealthCheckResponse * @static - * @param {tabletmanagerdata.LockTablesResponse} message LockTablesResponse + * @param {tabletmanagerdata.RunHealthCheckResponse} message RunHealthCheckResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LockTablesResponse.toObject = function toObject() { + RunHealthCheckResponse.toObject = function toObject() { return {}; }; /** - * Converts this LockTablesResponse to JSON. + * Converts this RunHealthCheckResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.LockTablesResponse + * @memberof tabletmanagerdata.RunHealthCheckResponse * @instance * @returns {Object.} JSON object */ - LockTablesResponse.prototype.toJSON = function toJSON() { + RunHealthCheckResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LockTablesResponse + * Gets the default type url for RunHealthCheckResponse * @function getTypeUrl - * @memberof tabletmanagerdata.LockTablesResponse + * @memberof tabletmanagerdata.RunHealthCheckResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LockTablesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RunHealthCheckResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.LockTablesResponse"; + return typeUrlPrefix + "/tabletmanagerdata.RunHealthCheckResponse"; }; - return LockTablesResponse; + return RunHealthCheckResponse; })(); - tabletmanagerdata.UnlockTablesRequest = (function() { + tabletmanagerdata.ReloadSchemaRequest = (function() { /** - * Properties of an UnlockTablesRequest. + * Properties of a ReloadSchemaRequest. * @memberof tabletmanagerdata - * @interface IUnlockTablesRequest + * @interface IReloadSchemaRequest + * @property {string|null} [wait_position] ReloadSchemaRequest wait_position */ /** - * Constructs a new UnlockTablesRequest. + * Constructs a new ReloadSchemaRequest. * @memberof tabletmanagerdata - * @classdesc Represents an UnlockTablesRequest. - * @implements IUnlockTablesRequest + * @classdesc Represents a ReloadSchemaRequest. + * @implements IReloadSchemaRequest * @constructor - * @param {tabletmanagerdata.IUnlockTablesRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IReloadSchemaRequest=} [properties] Properties to set */ - function UnlockTablesRequest(properties) { + function ReloadSchemaRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56639,63 +57228,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new UnlockTablesRequest instance using the specified properties. + * ReloadSchemaRequest wait_position. + * @member {string} wait_position + * @memberof tabletmanagerdata.ReloadSchemaRequest + * @instance + */ + ReloadSchemaRequest.prototype.wait_position = ""; + + /** + * Creates a new ReloadSchemaRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.UnlockTablesRequest + * @memberof tabletmanagerdata.ReloadSchemaRequest * @static - * @param {tabletmanagerdata.IUnlockTablesRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.UnlockTablesRequest} UnlockTablesRequest instance + * @param {tabletmanagerdata.IReloadSchemaRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ReloadSchemaRequest} ReloadSchemaRequest instance */ - UnlockTablesRequest.create = function create(properties) { - return new UnlockTablesRequest(properties); + ReloadSchemaRequest.create = function create(properties) { + return new ReloadSchemaRequest(properties); }; /** - * Encodes the specified UnlockTablesRequest message. Does not implicitly {@link tabletmanagerdata.UnlockTablesRequest.verify|verify} messages. + * Encodes the specified ReloadSchemaRequest message. Does not implicitly {@link tabletmanagerdata.ReloadSchemaRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.UnlockTablesRequest + * @memberof tabletmanagerdata.ReloadSchemaRequest * @static - * @param {tabletmanagerdata.IUnlockTablesRequest} message UnlockTablesRequest message or plain object to encode + * @param {tabletmanagerdata.IReloadSchemaRequest} message ReloadSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UnlockTablesRequest.encode = function encode(message, writer) { + ReloadSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.wait_position != null && Object.hasOwnProperty.call(message, "wait_position")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.wait_position); return writer; }; /** - * Encodes the specified UnlockTablesRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UnlockTablesRequest.verify|verify} messages. + * Encodes the specified ReloadSchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReloadSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.UnlockTablesRequest + * @memberof tabletmanagerdata.ReloadSchemaRequest * @static - * @param {tabletmanagerdata.IUnlockTablesRequest} message UnlockTablesRequest message or plain object to encode + * @param {tabletmanagerdata.IReloadSchemaRequest} message ReloadSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UnlockTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReloadSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UnlockTablesRequest message from the specified reader or buffer. + * Decodes a ReloadSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.UnlockTablesRequest + * @memberof tabletmanagerdata.ReloadSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.UnlockTablesRequest} UnlockTablesRequest + * @returns {tabletmanagerdata.ReloadSchemaRequest} ReloadSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UnlockTablesRequest.decode = function decode(reader, length) { + ReloadSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UnlockTablesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReloadSchemaRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.wait_position = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -56705,108 +57308,121 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an UnlockTablesRequest message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.UnlockTablesRequest + * @memberof tabletmanagerdata.ReloadSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.UnlockTablesRequest} UnlockTablesRequest + * @returns {tabletmanagerdata.ReloadSchemaRequest} ReloadSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UnlockTablesRequest.decodeDelimited = function decodeDelimited(reader) { + ReloadSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UnlockTablesRequest message. + * Verifies a ReloadSchemaRequest message. * @function verify - * @memberof tabletmanagerdata.UnlockTablesRequest + * @memberof tabletmanagerdata.ReloadSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UnlockTablesRequest.verify = function verify(message) { + ReloadSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.wait_position != null && message.hasOwnProperty("wait_position")) + if (!$util.isString(message.wait_position)) + return "wait_position: string expected"; return null; }; /** - * Creates an UnlockTablesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.UnlockTablesRequest + * @memberof tabletmanagerdata.ReloadSchemaRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.UnlockTablesRequest} UnlockTablesRequest + * @returns {tabletmanagerdata.ReloadSchemaRequest} ReloadSchemaRequest */ - UnlockTablesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.UnlockTablesRequest) + ReloadSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReloadSchemaRequest) return object; - return new $root.tabletmanagerdata.UnlockTablesRequest(); + let message = new $root.tabletmanagerdata.ReloadSchemaRequest(); + if (object.wait_position != null) + message.wait_position = String(object.wait_position); + return message; }; /** - * Creates a plain object from an UnlockTablesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReloadSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.UnlockTablesRequest + * @memberof tabletmanagerdata.ReloadSchemaRequest * @static - * @param {tabletmanagerdata.UnlockTablesRequest} message UnlockTablesRequest + * @param {tabletmanagerdata.ReloadSchemaRequest} message ReloadSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UnlockTablesRequest.toObject = function toObject() { - return {}; + ReloadSchemaRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.wait_position = ""; + if (message.wait_position != null && message.hasOwnProperty("wait_position")) + object.wait_position = message.wait_position; + return object; }; /** - * Converts this UnlockTablesRequest to JSON. + * Converts this ReloadSchemaRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.UnlockTablesRequest + * @memberof tabletmanagerdata.ReloadSchemaRequest * @instance * @returns {Object.} JSON object */ - UnlockTablesRequest.prototype.toJSON = function toJSON() { + ReloadSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UnlockTablesRequest + * Gets the default type url for ReloadSchemaRequest * @function getTypeUrl - * @memberof tabletmanagerdata.UnlockTablesRequest + * @memberof tabletmanagerdata.ReloadSchemaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UnlockTablesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReloadSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.UnlockTablesRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ReloadSchemaRequest"; }; - return UnlockTablesRequest; + return ReloadSchemaRequest; })(); - tabletmanagerdata.UnlockTablesResponse = (function() { + tabletmanagerdata.ReloadSchemaResponse = (function() { /** - * Properties of an UnlockTablesResponse. + * Properties of a ReloadSchemaResponse. * @memberof tabletmanagerdata - * @interface IUnlockTablesResponse + * @interface IReloadSchemaResponse */ /** - * Constructs a new UnlockTablesResponse. + * Constructs a new ReloadSchemaResponse. * @memberof tabletmanagerdata - * @classdesc Represents an UnlockTablesResponse. - * @implements IUnlockTablesResponse + * @classdesc Represents a ReloadSchemaResponse. + * @implements IReloadSchemaResponse * @constructor - * @param {tabletmanagerdata.IUnlockTablesResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IReloadSchemaResponse=} [properties] Properties to set */ - function UnlockTablesResponse(properties) { + function ReloadSchemaResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56814,60 +57430,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new UnlockTablesResponse instance using the specified properties. + * Creates a new ReloadSchemaResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.UnlockTablesResponse + * @memberof tabletmanagerdata.ReloadSchemaResponse * @static - * @param {tabletmanagerdata.IUnlockTablesResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.UnlockTablesResponse} UnlockTablesResponse instance + * @param {tabletmanagerdata.IReloadSchemaResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ReloadSchemaResponse} ReloadSchemaResponse instance */ - UnlockTablesResponse.create = function create(properties) { - return new UnlockTablesResponse(properties); + ReloadSchemaResponse.create = function create(properties) { + return new ReloadSchemaResponse(properties); }; /** - * Encodes the specified UnlockTablesResponse message. Does not implicitly {@link tabletmanagerdata.UnlockTablesResponse.verify|verify} messages. + * Encodes the specified ReloadSchemaResponse message. Does not implicitly {@link tabletmanagerdata.ReloadSchemaResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.UnlockTablesResponse + * @memberof tabletmanagerdata.ReloadSchemaResponse * @static - * @param {tabletmanagerdata.IUnlockTablesResponse} message UnlockTablesResponse message or plain object to encode + * @param {tabletmanagerdata.IReloadSchemaResponse} message ReloadSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UnlockTablesResponse.encode = function encode(message, writer) { + ReloadSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified UnlockTablesResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UnlockTablesResponse.verify|verify} messages. + * Encodes the specified ReloadSchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReloadSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.UnlockTablesResponse + * @memberof tabletmanagerdata.ReloadSchemaResponse * @static - * @param {tabletmanagerdata.IUnlockTablesResponse} message UnlockTablesResponse message or plain object to encode + * @param {tabletmanagerdata.IReloadSchemaResponse} message ReloadSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UnlockTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReloadSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UnlockTablesResponse message from the specified reader or buffer. + * Decodes a ReloadSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.UnlockTablesResponse + * @memberof tabletmanagerdata.ReloadSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.UnlockTablesResponse} UnlockTablesResponse + * @returns {tabletmanagerdata.ReloadSchemaResponse} ReloadSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UnlockTablesResponse.decode = function decode(reader, length) { + ReloadSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UnlockTablesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReloadSchemaResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -56880,112 +57496,110 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an UnlockTablesResponse message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.UnlockTablesResponse + * @memberof tabletmanagerdata.ReloadSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.UnlockTablesResponse} UnlockTablesResponse + * @returns {tabletmanagerdata.ReloadSchemaResponse} ReloadSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UnlockTablesResponse.decodeDelimited = function decodeDelimited(reader) { + ReloadSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UnlockTablesResponse message. + * Verifies a ReloadSchemaResponse message. * @function verify - * @memberof tabletmanagerdata.UnlockTablesResponse + * @memberof tabletmanagerdata.ReloadSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UnlockTablesResponse.verify = function verify(message) { + ReloadSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates an UnlockTablesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.UnlockTablesResponse + * @memberof tabletmanagerdata.ReloadSchemaResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.UnlockTablesResponse} UnlockTablesResponse + * @returns {tabletmanagerdata.ReloadSchemaResponse} ReloadSchemaResponse */ - UnlockTablesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.UnlockTablesResponse) + ReloadSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReloadSchemaResponse) return object; - return new $root.tabletmanagerdata.UnlockTablesResponse(); + return new $root.tabletmanagerdata.ReloadSchemaResponse(); }; /** - * Creates a plain object from an UnlockTablesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReloadSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.UnlockTablesResponse + * @memberof tabletmanagerdata.ReloadSchemaResponse * @static - * @param {tabletmanagerdata.UnlockTablesResponse} message UnlockTablesResponse + * @param {tabletmanagerdata.ReloadSchemaResponse} message ReloadSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UnlockTablesResponse.toObject = function toObject() { + ReloadSchemaResponse.toObject = function toObject() { return {}; }; /** - * Converts this UnlockTablesResponse to JSON. + * Converts this ReloadSchemaResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.UnlockTablesResponse + * @memberof tabletmanagerdata.ReloadSchemaResponse * @instance * @returns {Object.} JSON object */ - UnlockTablesResponse.prototype.toJSON = function toJSON() { + ReloadSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UnlockTablesResponse + * Gets the default type url for ReloadSchemaResponse * @function getTypeUrl - * @memberof tabletmanagerdata.UnlockTablesResponse + * @memberof tabletmanagerdata.ReloadSchemaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UnlockTablesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReloadSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.UnlockTablesResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ReloadSchemaResponse"; }; - return UnlockTablesResponse; + return ReloadSchemaResponse; })(); - tabletmanagerdata.ExecuteQueryRequest = (function() { + tabletmanagerdata.PreflightSchemaRequest = (function() { /** - * Properties of an ExecuteQueryRequest. + * Properties of a PreflightSchemaRequest. * @memberof tabletmanagerdata - * @interface IExecuteQueryRequest - * @property {Uint8Array|null} [query] ExecuteQueryRequest query - * @property {string|null} [db_name] ExecuteQueryRequest db_name - * @property {number|Long|null} [max_rows] ExecuteQueryRequest max_rows - * @property {vtrpc.ICallerID|null} [caller_id] ExecuteQueryRequest caller_id + * @interface IPreflightSchemaRequest + * @property {Array.|null} [changes] PreflightSchemaRequest changes */ /** - * Constructs a new ExecuteQueryRequest. + * Constructs a new PreflightSchemaRequest. * @memberof tabletmanagerdata - * @classdesc Represents an ExecuteQueryRequest. - * @implements IExecuteQueryRequest + * @classdesc Represents a PreflightSchemaRequest. + * @implements IPreflightSchemaRequest * @constructor - * @param {tabletmanagerdata.IExecuteQueryRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IPreflightSchemaRequest=} [properties] Properties to set */ - function ExecuteQueryRequest(properties) { + function PreflightSchemaRequest(properties) { + this.changes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56993,117 +57607,78 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ExecuteQueryRequest query. - * @member {Uint8Array} query - * @memberof tabletmanagerdata.ExecuteQueryRequest - * @instance - */ - ExecuteQueryRequest.prototype.query = $util.newBuffer([]); - - /** - * ExecuteQueryRequest db_name. - * @member {string} db_name - * @memberof tabletmanagerdata.ExecuteQueryRequest - * @instance - */ - ExecuteQueryRequest.prototype.db_name = ""; - - /** - * ExecuteQueryRequest max_rows. - * @member {number|Long} max_rows - * @memberof tabletmanagerdata.ExecuteQueryRequest - * @instance - */ - ExecuteQueryRequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ExecuteQueryRequest caller_id. - * @member {vtrpc.ICallerID|null|undefined} caller_id - * @memberof tabletmanagerdata.ExecuteQueryRequest + * PreflightSchemaRequest changes. + * @member {Array.} changes + * @memberof tabletmanagerdata.PreflightSchemaRequest * @instance */ - ExecuteQueryRequest.prototype.caller_id = null; + PreflightSchemaRequest.prototype.changes = $util.emptyArray; /** - * Creates a new ExecuteQueryRequest instance using the specified properties. + * Creates a new PreflightSchemaRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ExecuteQueryRequest + * @memberof tabletmanagerdata.PreflightSchemaRequest * @static - * @param {tabletmanagerdata.IExecuteQueryRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ExecuteQueryRequest} ExecuteQueryRequest instance + * @param {tabletmanagerdata.IPreflightSchemaRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.PreflightSchemaRequest} PreflightSchemaRequest instance */ - ExecuteQueryRequest.create = function create(properties) { - return new ExecuteQueryRequest(properties); + PreflightSchemaRequest.create = function create(properties) { + return new PreflightSchemaRequest(properties); }; /** - * Encodes the specified ExecuteQueryRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteQueryRequest.verify|verify} messages. + * Encodes the specified PreflightSchemaRequest message. Does not implicitly {@link tabletmanagerdata.PreflightSchemaRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ExecuteQueryRequest + * @memberof tabletmanagerdata.PreflightSchemaRequest * @static - * @param {tabletmanagerdata.IExecuteQueryRequest} message ExecuteQueryRequest message or plain object to encode + * @param {tabletmanagerdata.IPreflightSchemaRequest} message PreflightSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteQueryRequest.encode = function encode(message, writer) { + PreflightSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.query); - if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.db_name); - if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.max_rows); - if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) - $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.changes != null && message.changes.length) + for (let i = 0; i < message.changes.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.changes[i]); return writer; }; /** - * Encodes the specified ExecuteQueryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteQueryRequest.verify|verify} messages. + * Encodes the specified PreflightSchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PreflightSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ExecuteQueryRequest + * @memberof tabletmanagerdata.PreflightSchemaRequest * @static - * @param {tabletmanagerdata.IExecuteQueryRequest} message ExecuteQueryRequest message or plain object to encode + * @param {tabletmanagerdata.IPreflightSchemaRequest} message PreflightSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteQueryRequest.encodeDelimited = function encodeDelimited(message, writer) { + PreflightSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteQueryRequest message from the specified reader or buffer. + * Decodes a PreflightSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ExecuteQueryRequest + * @memberof tabletmanagerdata.PreflightSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ExecuteQueryRequest} ExecuteQueryRequest + * @returns {tabletmanagerdata.PreflightSchemaRequest} PreflightSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteQueryRequest.decode = function decode(reader, length) { + PreflightSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteQueryRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PreflightSchemaRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.query = reader.bytes(); - break; - } - case 2: { - message.db_name = reader.string(); - break; - } - case 3: { - message.max_rows = reader.uint64(); - break; - } - case 4: { - message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + if (!(message.changes && message.changes.length)) + message.changes = []; + message.changes.push(reader.string()); break; } default: @@ -57115,175 +57690,135 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an ExecuteQueryRequest message from the specified reader or buffer, length delimited. + * Decodes a PreflightSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ExecuteQueryRequest + * @memberof tabletmanagerdata.PreflightSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ExecuteQueryRequest} ExecuteQueryRequest + * @returns {tabletmanagerdata.PreflightSchemaRequest} PreflightSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteQueryRequest.decodeDelimited = function decodeDelimited(reader) { + PreflightSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteQueryRequest message. + * Verifies a PreflightSchemaRequest message. * @function verify - * @memberof tabletmanagerdata.ExecuteQueryRequest + * @memberof tabletmanagerdata.PreflightSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteQueryRequest.verify = function verify(message) { + PreflightSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.query != null && message.hasOwnProperty("query")) - if (!(message.query && typeof message.query.length === "number" || $util.isString(message.query))) - return "query: buffer expected"; - if (message.db_name != null && message.hasOwnProperty("db_name")) - if (!$util.isString(message.db_name)) - return "db_name: string expected"; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) - return "max_rows: integer|Long expected"; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) { - let error = $root.vtrpc.CallerID.verify(message.caller_id); - if (error) - return "caller_id." + error; + if (message.changes != null && message.hasOwnProperty("changes")) { + if (!Array.isArray(message.changes)) + return "changes: array expected"; + for (let i = 0; i < message.changes.length; ++i) + if (!$util.isString(message.changes[i])) + return "changes: string[] expected"; } return null; }; /** - * Creates an ExecuteQueryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PreflightSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ExecuteQueryRequest + * @memberof tabletmanagerdata.PreflightSchemaRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ExecuteQueryRequest} ExecuteQueryRequest + * @returns {tabletmanagerdata.PreflightSchemaRequest} PreflightSchemaRequest */ - ExecuteQueryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ExecuteQueryRequest) + PreflightSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.PreflightSchemaRequest) return object; - let message = new $root.tabletmanagerdata.ExecuteQueryRequest(); - if (object.query != null) - if (typeof object.query === "string") - $util.base64.decode(object.query, message.query = $util.newBuffer($util.base64.length(object.query)), 0); - else if (object.query.length >= 0) - message.query = object.query; - if (object.db_name != null) - message.db_name = String(object.db_name); - if (object.max_rows != null) - if ($util.Long) - (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = true; - else if (typeof object.max_rows === "string") - message.max_rows = parseInt(object.max_rows, 10); - else if (typeof object.max_rows === "number") - message.max_rows = object.max_rows; - else if (typeof object.max_rows === "object") - message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(true); - if (object.caller_id != null) { - if (typeof object.caller_id !== "object") - throw TypeError(".tabletmanagerdata.ExecuteQueryRequest.caller_id: object expected"); - message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); + let message = new $root.tabletmanagerdata.PreflightSchemaRequest(); + if (object.changes) { + if (!Array.isArray(object.changes)) + throw TypeError(".tabletmanagerdata.PreflightSchemaRequest.changes: array expected"); + message.changes = []; + for (let i = 0; i < object.changes.length; ++i) + message.changes[i] = String(object.changes[i]); } return message; }; /** - * Creates a plain object from an ExecuteQueryRequest message. Also converts values to other types if specified. + * Creates a plain object from a PreflightSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ExecuteQueryRequest + * @memberof tabletmanagerdata.PreflightSchemaRequest * @static - * @param {tabletmanagerdata.ExecuteQueryRequest} message ExecuteQueryRequest + * @param {tabletmanagerdata.PreflightSchemaRequest} message PreflightSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteQueryRequest.toObject = function toObject(message, options) { + PreflightSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.query = ""; - else { - object.query = []; - if (options.bytes !== Array) - object.query = $util.newBuffer(object.query); - } - object.db_name = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_rows = options.longs === String ? "0" : 0; - object.caller_id = null; + if (options.arrays || options.defaults) + object.changes = []; + if (message.changes && message.changes.length) { + object.changes = []; + for (let j = 0; j < message.changes.length; ++j) + object.changes[j] = message.changes[j]; } - if (message.query != null && message.hasOwnProperty("query")) - object.query = options.bytes === String ? $util.base64.encode(message.query, 0, message.query.length) : options.bytes === Array ? Array.prototype.slice.call(message.query) : message.query; - if (message.db_name != null && message.hasOwnProperty("db_name")) - object.db_name = message.db_name; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (typeof message.max_rows === "number") - object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; - else - object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber(true) : message.max_rows; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) - object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); return object; }; /** - * Converts this ExecuteQueryRequest to JSON. + * Converts this PreflightSchemaRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ExecuteQueryRequest + * @memberof tabletmanagerdata.PreflightSchemaRequest * @instance * @returns {Object.} JSON object */ - ExecuteQueryRequest.prototype.toJSON = function toJSON() { + PreflightSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteQueryRequest + * Gets the default type url for PreflightSchemaRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ExecuteQueryRequest + * @memberof tabletmanagerdata.PreflightSchemaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteQueryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PreflightSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ExecuteQueryRequest"; + return typeUrlPrefix + "/tabletmanagerdata.PreflightSchemaRequest"; }; - return ExecuteQueryRequest; + return PreflightSchemaRequest; })(); - tabletmanagerdata.ExecuteQueryResponse = (function() { + tabletmanagerdata.PreflightSchemaResponse = (function() { /** - * Properties of an ExecuteQueryResponse. + * Properties of a PreflightSchemaResponse. * @memberof tabletmanagerdata - * @interface IExecuteQueryResponse - * @property {query.IQueryResult|null} [result] ExecuteQueryResponse result + * @interface IPreflightSchemaResponse + * @property {Array.|null} [change_results] PreflightSchemaResponse change_results */ /** - * Constructs a new ExecuteQueryResponse. + * Constructs a new PreflightSchemaResponse. * @memberof tabletmanagerdata - * @classdesc Represents an ExecuteQueryResponse. - * @implements IExecuteQueryResponse + * @classdesc Represents a PreflightSchemaResponse. + * @implements IPreflightSchemaResponse * @constructor - * @param {tabletmanagerdata.IExecuteQueryResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IPreflightSchemaResponse=} [properties] Properties to set */ - function ExecuteQueryResponse(properties) { + function PreflightSchemaResponse(properties) { + this.change_results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57291,75 +57826,78 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ExecuteQueryResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof tabletmanagerdata.ExecuteQueryResponse + * PreflightSchemaResponse change_results. + * @member {Array.} change_results + * @memberof tabletmanagerdata.PreflightSchemaResponse * @instance */ - ExecuteQueryResponse.prototype.result = null; + PreflightSchemaResponse.prototype.change_results = $util.emptyArray; /** - * Creates a new ExecuteQueryResponse instance using the specified properties. + * Creates a new PreflightSchemaResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ExecuteQueryResponse + * @memberof tabletmanagerdata.PreflightSchemaResponse * @static - * @param {tabletmanagerdata.IExecuteQueryResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ExecuteQueryResponse} ExecuteQueryResponse instance + * @param {tabletmanagerdata.IPreflightSchemaResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.PreflightSchemaResponse} PreflightSchemaResponse instance */ - ExecuteQueryResponse.create = function create(properties) { - return new ExecuteQueryResponse(properties); + PreflightSchemaResponse.create = function create(properties) { + return new PreflightSchemaResponse(properties); }; /** - * Encodes the specified ExecuteQueryResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteQueryResponse.verify|verify} messages. + * Encodes the specified PreflightSchemaResponse message. Does not implicitly {@link tabletmanagerdata.PreflightSchemaResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ExecuteQueryResponse + * @memberof tabletmanagerdata.PreflightSchemaResponse * @static - * @param {tabletmanagerdata.IExecuteQueryResponse} message ExecuteQueryResponse message or plain object to encode + * @param {tabletmanagerdata.IPreflightSchemaResponse} message PreflightSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteQueryResponse.encode = function encode(message, writer) { + PreflightSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.change_results != null && message.change_results.length) + for (let i = 0; i < message.change_results.length; ++i) + $root.tabletmanagerdata.SchemaChangeResult.encode(message.change_results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteQueryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteQueryResponse.verify|verify} messages. + * Encodes the specified PreflightSchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PreflightSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ExecuteQueryResponse + * @memberof tabletmanagerdata.PreflightSchemaResponse * @static - * @param {tabletmanagerdata.IExecuteQueryResponse} message ExecuteQueryResponse message or plain object to encode + * @param {tabletmanagerdata.IPreflightSchemaResponse} message PreflightSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteQueryResponse.encodeDelimited = function encodeDelimited(message, writer) { + PreflightSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteQueryResponse message from the specified reader or buffer. + * Decodes a PreflightSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ExecuteQueryResponse + * @memberof tabletmanagerdata.PreflightSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ExecuteQueryResponse} ExecuteQueryResponse + * @returns {tabletmanagerdata.PreflightSchemaResponse} PreflightSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteQueryResponse.decode = function decode(reader, length) { + PreflightSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteQueryResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PreflightSchemaResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + if (!(message.change_results && message.change_results.length)) + message.change_results = []; + message.change_results.push($root.tabletmanagerdata.SchemaChangeResult.decode(reader, reader.uint32())); break; } default: @@ -57371,132 +57909,146 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an ExecuteQueryResponse message from the specified reader or buffer, length delimited. + * Decodes a PreflightSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ExecuteQueryResponse + * @memberof tabletmanagerdata.PreflightSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ExecuteQueryResponse} ExecuteQueryResponse + * @returns {tabletmanagerdata.PreflightSchemaResponse} PreflightSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteQueryResponse.decodeDelimited = function decodeDelimited(reader) { + PreflightSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteQueryResponse message. + * Verifies a PreflightSchemaResponse message. * @function verify - * @memberof tabletmanagerdata.ExecuteQueryResponse + * @memberof tabletmanagerdata.PreflightSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteQueryResponse.verify = function verify(message) { + PreflightSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; + if (message.change_results != null && message.hasOwnProperty("change_results")) { + if (!Array.isArray(message.change_results)) + return "change_results: array expected"; + for (let i = 0; i < message.change_results.length; ++i) { + let error = $root.tabletmanagerdata.SchemaChangeResult.verify(message.change_results[i]); + if (error) + return "change_results." + error; + } } return null; }; /** - * Creates an ExecuteQueryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PreflightSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ExecuteQueryResponse + * @memberof tabletmanagerdata.PreflightSchemaResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ExecuteQueryResponse} ExecuteQueryResponse + * @returns {tabletmanagerdata.PreflightSchemaResponse} PreflightSchemaResponse */ - ExecuteQueryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ExecuteQueryResponse) + PreflightSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.PreflightSchemaResponse) return object; - let message = new $root.tabletmanagerdata.ExecuteQueryResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".tabletmanagerdata.ExecuteQueryResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); + let message = new $root.tabletmanagerdata.PreflightSchemaResponse(); + if (object.change_results) { + if (!Array.isArray(object.change_results)) + throw TypeError(".tabletmanagerdata.PreflightSchemaResponse.change_results: array expected"); + message.change_results = []; + for (let i = 0; i < object.change_results.length; ++i) { + if (typeof object.change_results[i] !== "object") + throw TypeError(".tabletmanagerdata.PreflightSchemaResponse.change_results: object expected"); + message.change_results[i] = $root.tabletmanagerdata.SchemaChangeResult.fromObject(object.change_results[i]); + } } return message; }; /** - * Creates a plain object from an ExecuteQueryResponse message. Also converts values to other types if specified. + * Creates a plain object from a PreflightSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ExecuteQueryResponse + * @memberof tabletmanagerdata.PreflightSchemaResponse * @static - * @param {tabletmanagerdata.ExecuteQueryResponse} message ExecuteQueryResponse + * @param {tabletmanagerdata.PreflightSchemaResponse} message PreflightSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteQueryResponse.toObject = function toObject(message, options) { + PreflightSchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); + if (options.arrays || options.defaults) + object.change_results = []; + if (message.change_results && message.change_results.length) { + object.change_results = []; + for (let j = 0; j < message.change_results.length; ++j) + object.change_results[j] = $root.tabletmanagerdata.SchemaChangeResult.toObject(message.change_results[j], options); + } return object; }; /** - * Converts this ExecuteQueryResponse to JSON. + * Converts this PreflightSchemaResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ExecuteQueryResponse + * @memberof tabletmanagerdata.PreflightSchemaResponse * @instance * @returns {Object.} JSON object */ - ExecuteQueryResponse.prototype.toJSON = function toJSON() { + PreflightSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteQueryResponse + * Gets the default type url for PreflightSchemaResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ExecuteQueryResponse + * @memberof tabletmanagerdata.PreflightSchemaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteQueryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PreflightSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ExecuteQueryResponse"; + return typeUrlPrefix + "/tabletmanagerdata.PreflightSchemaResponse"; }; - return ExecuteQueryResponse; + return PreflightSchemaResponse; })(); - tabletmanagerdata.ExecuteFetchAsDbaRequest = (function() { + tabletmanagerdata.ApplySchemaRequest = (function() { /** - * Properties of an ExecuteFetchAsDbaRequest. + * Properties of an ApplySchemaRequest. * @memberof tabletmanagerdata - * @interface IExecuteFetchAsDbaRequest - * @property {Uint8Array|null} [query] ExecuteFetchAsDbaRequest query - * @property {string|null} [db_name] ExecuteFetchAsDbaRequest db_name - * @property {number|Long|null} [max_rows] ExecuteFetchAsDbaRequest max_rows - * @property {boolean|null} [disable_binlogs] ExecuteFetchAsDbaRequest disable_binlogs - * @property {boolean|null} [reload_schema] ExecuteFetchAsDbaRequest reload_schema - * @property {boolean|null} [disable_foreign_key_checks] ExecuteFetchAsDbaRequest disable_foreign_key_checks + * @interface IApplySchemaRequest + * @property {string|null} [sql] ApplySchemaRequest sql + * @property {boolean|null} [force] ApplySchemaRequest force + * @property {boolean|null} [allow_replication] ApplySchemaRequest allow_replication + * @property {tabletmanagerdata.ISchemaDefinition|null} [before_schema] ApplySchemaRequest before_schema + * @property {tabletmanagerdata.ISchemaDefinition|null} [after_schema] ApplySchemaRequest after_schema + * @property {string|null} [sql_mode] ApplySchemaRequest sql_mode + * @property {number|Long|null} [batch_size] ApplySchemaRequest batch_size + * @property {boolean|null} [disable_foreign_key_checks] ApplySchemaRequest disable_foreign_key_checks */ /** - * Constructs a new ExecuteFetchAsDbaRequest. + * Constructs a new ApplySchemaRequest. * @memberof tabletmanagerdata - * @classdesc Represents an ExecuteFetchAsDbaRequest. - * @implements IExecuteFetchAsDbaRequest + * @classdesc Represents an ApplySchemaRequest. + * @implements IApplySchemaRequest * @constructor - * @param {tabletmanagerdata.IExecuteFetchAsDbaRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IApplySchemaRequest=} [properties] Properties to set */ - function ExecuteFetchAsDbaRequest(properties) { + function ApplySchemaRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57504,144 +58056,172 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ExecuteFetchAsDbaRequest query. - * @member {Uint8Array} query - * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * ApplySchemaRequest sql. + * @member {string} sql + * @memberof tabletmanagerdata.ApplySchemaRequest * @instance */ - ExecuteFetchAsDbaRequest.prototype.query = $util.newBuffer([]); + ApplySchemaRequest.prototype.sql = ""; /** - * ExecuteFetchAsDbaRequest db_name. - * @member {string} db_name - * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * ApplySchemaRequest force. + * @member {boolean} force + * @memberof tabletmanagerdata.ApplySchemaRequest * @instance */ - ExecuteFetchAsDbaRequest.prototype.db_name = ""; + ApplySchemaRequest.prototype.force = false; /** - * ExecuteFetchAsDbaRequest max_rows. - * @member {number|Long} max_rows - * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * ApplySchemaRequest allow_replication. + * @member {boolean} allow_replication + * @memberof tabletmanagerdata.ApplySchemaRequest * @instance */ - ExecuteFetchAsDbaRequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ApplySchemaRequest.prototype.allow_replication = false; /** - * ExecuteFetchAsDbaRequest disable_binlogs. - * @member {boolean} disable_binlogs - * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * ApplySchemaRequest before_schema. + * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} before_schema + * @memberof tabletmanagerdata.ApplySchemaRequest * @instance */ - ExecuteFetchAsDbaRequest.prototype.disable_binlogs = false; + ApplySchemaRequest.prototype.before_schema = null; /** - * ExecuteFetchAsDbaRequest reload_schema. - * @member {boolean} reload_schema - * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * ApplySchemaRequest after_schema. + * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} after_schema + * @memberof tabletmanagerdata.ApplySchemaRequest * @instance */ - ExecuteFetchAsDbaRequest.prototype.reload_schema = false; + ApplySchemaRequest.prototype.after_schema = null; /** - * ExecuteFetchAsDbaRequest disable_foreign_key_checks. - * @member {boolean} disable_foreign_key_checks - * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest - * @instance - */ - ExecuteFetchAsDbaRequest.prototype.disable_foreign_key_checks = false; + * ApplySchemaRequest sql_mode. + * @member {string} sql_mode + * @memberof tabletmanagerdata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.sql_mode = ""; /** - * Creates a new ExecuteFetchAsDbaRequest instance using the specified properties. + * ApplySchemaRequest batch_size. + * @member {number|Long} batch_size + * @memberof tabletmanagerdata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.batch_size = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ApplySchemaRequest disable_foreign_key_checks. + * @member {boolean} disable_foreign_key_checks + * @memberof tabletmanagerdata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.disable_foreign_key_checks = false; + + /** + * Creates a new ApplySchemaRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * @memberof tabletmanagerdata.ApplySchemaRequest * @static - * @param {tabletmanagerdata.IExecuteFetchAsDbaRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ExecuteFetchAsDbaRequest} ExecuteFetchAsDbaRequest instance + * @param {tabletmanagerdata.IApplySchemaRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ApplySchemaRequest} ApplySchemaRequest instance */ - ExecuteFetchAsDbaRequest.create = function create(properties) { - return new ExecuteFetchAsDbaRequest(properties); + ApplySchemaRequest.create = function create(properties) { + return new ApplySchemaRequest(properties); }; /** - * Encodes the specified ExecuteFetchAsDbaRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsDbaRequest.verify|verify} messages. + * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link tabletmanagerdata.ApplySchemaRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * @memberof tabletmanagerdata.ApplySchemaRequest * @static - * @param {tabletmanagerdata.IExecuteFetchAsDbaRequest} message ExecuteFetchAsDbaRequest message or plain object to encode + * @param {tabletmanagerdata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsDbaRequest.encode = function encode(message, writer) { + ApplySchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.query); - if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.db_name); - if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.max_rows); - if (message.disable_binlogs != null && Object.hasOwnProperty.call(message, "disable_binlogs")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.disable_binlogs); - if (message.reload_schema != null && Object.hasOwnProperty.call(message, "reload_schema")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reload_schema); + if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sql); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.allow_replication != null && Object.hasOwnProperty.call(message, "allow_replication")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allow_replication); + if (message.before_schema != null && Object.hasOwnProperty.call(message, "before_schema")) + $root.tabletmanagerdata.SchemaDefinition.encode(message.before_schema, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.after_schema != null && Object.hasOwnProperty.call(message, "after_schema")) + $root.tabletmanagerdata.SchemaDefinition.encode(message.after_schema, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.sql_mode != null && Object.hasOwnProperty.call(message, "sql_mode")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.sql_mode); + if (message.batch_size != null && Object.hasOwnProperty.call(message, "batch_size")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.batch_size); if (message.disable_foreign_key_checks != null && Object.hasOwnProperty.call(message, "disable_foreign_key_checks")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disable_foreign_key_checks); + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.disable_foreign_key_checks); return writer; }; /** - * Encodes the specified ExecuteFetchAsDbaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsDbaRequest.verify|verify} messages. + * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ApplySchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * @memberof tabletmanagerdata.ApplySchemaRequest * @static - * @param {tabletmanagerdata.IExecuteFetchAsDbaRequest} message ExecuteFetchAsDbaRequest message or plain object to encode + * @param {tabletmanagerdata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsDbaRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplySchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteFetchAsDbaRequest message from the specified reader or buffer. + * Decodes an ApplySchemaRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * @memberof tabletmanagerdata.ApplySchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ExecuteFetchAsDbaRequest} ExecuteFetchAsDbaRequest + * @returns {tabletmanagerdata.ApplySchemaRequest} ApplySchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsDbaRequest.decode = function decode(reader, length) { + ApplySchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteFetchAsDbaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ApplySchemaRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.query = reader.bytes(); + message.sql = reader.string(); break; } case 2: { - message.db_name = reader.string(); + message.force = reader.bool(); break; } case 3: { - message.max_rows = reader.uint64(); + message.allow_replication = reader.bool(); break; } case 4: { - message.disable_binlogs = reader.bool(); + message.before_schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); break; } case 5: { - message.reload_schema = reader.bool(); + message.after_schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); break; } case 6: { + message.sql_mode = reader.string(); + break; + } + case 7: { + message.batch_size = reader.int64(); + break; + } + case 8: { message.disable_foreign_key_checks = reader.bool(); break; } @@ -57654,47 +58234,57 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an ExecuteFetchAsDbaRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * @memberof tabletmanagerdata.ApplySchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ExecuteFetchAsDbaRequest} ExecuteFetchAsDbaRequest + * @returns {tabletmanagerdata.ApplySchemaRequest} ApplySchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsDbaRequest.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 ExecuteFetchAsDbaRequest message. + * Verifies an ApplySchemaRequest message. * @function verify - * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * @memberof tabletmanagerdata.ApplySchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteFetchAsDbaRequest.verify = function verify(message) { + ApplySchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.query != null && message.hasOwnProperty("query")) - if (!(message.query && typeof message.query.length === "number" || $util.isString(message.query))) - return "query: buffer expected"; - if (message.db_name != null && message.hasOwnProperty("db_name")) - if (!$util.isString(message.db_name)) - return "db_name: string expected"; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) - return "max_rows: integer|Long expected"; - if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) - if (typeof message.disable_binlogs !== "boolean") - return "disable_binlogs: boolean expected"; - if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) - if (typeof message.reload_schema !== "boolean") - return "reload_schema: boolean expected"; + if (message.sql != null && message.hasOwnProperty("sql")) + if (!$util.isString(message.sql)) + return "sql: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.allow_replication != null && message.hasOwnProperty("allow_replication")) + if (typeof message.allow_replication !== "boolean") + return "allow_replication: boolean expected"; + if (message.before_schema != null && message.hasOwnProperty("before_schema")) { + let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.before_schema); + if (error) + return "before_schema." + error; + } + if (message.after_schema != null && message.hasOwnProperty("after_schema")) { + let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.after_schema); + if (error) + return "after_schema." + error; + } + if (message.sql_mode != null && message.hasOwnProperty("sql_mode")) + if (!$util.isString(message.sql_mode)) + return "sql_mode: string expected"; + if (message.batch_size != null && message.hasOwnProperty("batch_size")) + if (!$util.isInteger(message.batch_size) && !(message.batch_size && $util.isInteger(message.batch_size.low) && $util.isInteger(message.batch_size.high))) + return "batch_size: integer|Long expected"; if (message.disable_foreign_key_checks != null && message.hasOwnProperty("disable_foreign_key_checks")) if (typeof message.disable_foreign_key_checks !== "boolean") return "disable_foreign_key_checks: boolean expected"; @@ -57702,138 +58292,146 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Creates an ExecuteFetchAsDbaRequest 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 tabletmanagerdata.ExecuteFetchAsDbaRequest + * @memberof tabletmanagerdata.ApplySchemaRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ExecuteFetchAsDbaRequest} ExecuteFetchAsDbaRequest + * @returns {tabletmanagerdata.ApplySchemaRequest} ApplySchemaRequest */ - ExecuteFetchAsDbaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ExecuteFetchAsDbaRequest) + ApplySchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ApplySchemaRequest) return object; - let message = new $root.tabletmanagerdata.ExecuteFetchAsDbaRequest(); - if (object.query != null) - if (typeof object.query === "string") - $util.base64.decode(object.query, message.query = $util.newBuffer($util.base64.length(object.query)), 0); - else if (object.query.length >= 0) - message.query = object.query; - if (object.db_name != null) - message.db_name = String(object.db_name); - if (object.max_rows != null) + let message = new $root.tabletmanagerdata.ApplySchemaRequest(); + if (object.sql != null) + message.sql = String(object.sql); + if (object.force != null) + message.force = Boolean(object.force); + if (object.allow_replication != null) + message.allow_replication = Boolean(object.allow_replication); + if (object.before_schema != null) { + if (typeof object.before_schema !== "object") + throw TypeError(".tabletmanagerdata.ApplySchemaRequest.before_schema: object expected"); + message.before_schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.before_schema); + } + if (object.after_schema != null) { + if (typeof object.after_schema !== "object") + throw TypeError(".tabletmanagerdata.ApplySchemaRequest.after_schema: object expected"); + message.after_schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.after_schema); + } + if (object.sql_mode != null) + message.sql_mode = String(object.sql_mode); + if (object.batch_size != null) if ($util.Long) - (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = true; - else if (typeof object.max_rows === "string") - message.max_rows = parseInt(object.max_rows, 10); - else if (typeof object.max_rows === "number") - message.max_rows = object.max_rows; - else if (typeof object.max_rows === "object") - message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(true); - if (object.disable_binlogs != null) - message.disable_binlogs = Boolean(object.disable_binlogs); - if (object.reload_schema != null) - message.reload_schema = Boolean(object.reload_schema); + (message.batch_size = $util.Long.fromValue(object.batch_size)).unsigned = false; + else if (typeof object.batch_size === "string") + message.batch_size = parseInt(object.batch_size, 10); + else if (typeof object.batch_size === "number") + message.batch_size = object.batch_size; + else if (typeof object.batch_size === "object") + message.batch_size = new $util.LongBits(object.batch_size.low >>> 0, object.batch_size.high >>> 0).toNumber(); if (object.disable_foreign_key_checks != null) message.disable_foreign_key_checks = Boolean(object.disable_foreign_key_checks); return message; }; /** - * Creates a plain object from an ExecuteFetchAsDbaRequest 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 tabletmanagerdata.ExecuteFetchAsDbaRequest + * @memberof tabletmanagerdata.ApplySchemaRequest * @static - * @param {tabletmanagerdata.ExecuteFetchAsDbaRequest} message ExecuteFetchAsDbaRequest + * @param {tabletmanagerdata.ApplySchemaRequest} message ApplySchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteFetchAsDbaRequest.toObject = function toObject(message, options) { + ApplySchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.query = ""; - else { - object.query = []; - if (options.bytes !== Array) - object.query = $util.newBuffer(object.query); - } - object.db_name = ""; + object.sql = ""; + object.force = false; + object.allow_replication = false; + object.before_schema = null; + object.after_schema = null; + object.sql_mode = ""; if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + let long = new $util.Long(0, 0, false); + object.batch_size = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.max_rows = options.longs === String ? "0" : 0; - object.disable_binlogs = false; - object.reload_schema = false; + object.batch_size = options.longs === String ? "0" : 0; object.disable_foreign_key_checks = false; } - if (message.query != null && message.hasOwnProperty("query")) - object.query = options.bytes === String ? $util.base64.encode(message.query, 0, message.query.length) : options.bytes === Array ? Array.prototype.slice.call(message.query) : message.query; - if (message.db_name != null && message.hasOwnProperty("db_name")) - object.db_name = message.db_name; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (typeof message.max_rows === "number") - object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; + if (message.sql != null && message.hasOwnProperty("sql")) + object.sql = message.sql; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.allow_replication != null && message.hasOwnProperty("allow_replication")) + object.allow_replication = message.allow_replication; + if (message.before_schema != null && message.hasOwnProperty("before_schema")) + object.before_schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.before_schema, options); + if (message.after_schema != null && message.hasOwnProperty("after_schema")) + object.after_schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.after_schema, options); + if (message.sql_mode != null && message.hasOwnProperty("sql_mode")) + object.sql_mode = message.sql_mode; + if (message.batch_size != null && message.hasOwnProperty("batch_size")) + if (typeof message.batch_size === "number") + object.batch_size = options.longs === String ? String(message.batch_size) : message.batch_size; else - object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber(true) : message.max_rows; - if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) - object.disable_binlogs = message.disable_binlogs; - if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) - object.reload_schema = message.reload_schema; + object.batch_size = options.longs === String ? $util.Long.prototype.toString.call(message.batch_size) : options.longs === Number ? new $util.LongBits(message.batch_size.low >>> 0, message.batch_size.high >>> 0).toNumber() : message.batch_size; if (message.disable_foreign_key_checks != null && message.hasOwnProperty("disable_foreign_key_checks")) object.disable_foreign_key_checks = message.disable_foreign_key_checks; return object; }; /** - * Converts this ExecuteFetchAsDbaRequest to JSON. + * Converts this ApplySchemaRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * @memberof tabletmanagerdata.ApplySchemaRequest * @instance * @returns {Object.} JSON object */ - ExecuteFetchAsDbaRequest.prototype.toJSON = function toJSON() { + ApplySchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteFetchAsDbaRequest + * Gets the default type url for ApplySchemaRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * @memberof tabletmanagerdata.ApplySchemaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteFetchAsDbaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ApplySchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ExecuteFetchAsDbaRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ApplySchemaRequest"; }; - return ExecuteFetchAsDbaRequest; + return ApplySchemaRequest; })(); - tabletmanagerdata.ExecuteFetchAsDbaResponse = (function() { + tabletmanagerdata.ApplySchemaResponse = (function() { /** - * Properties of an ExecuteFetchAsDbaResponse. + * Properties of an ApplySchemaResponse. * @memberof tabletmanagerdata - * @interface IExecuteFetchAsDbaResponse - * @property {query.IQueryResult|null} [result] ExecuteFetchAsDbaResponse result + * @interface IApplySchemaResponse + * @property {tabletmanagerdata.ISchemaDefinition|null} [before_schema] ApplySchemaResponse before_schema + * @property {tabletmanagerdata.ISchemaDefinition|null} [after_schema] ApplySchemaResponse after_schema */ /** - * Constructs a new ExecuteFetchAsDbaResponse. + * Constructs a new ApplySchemaResponse. * @memberof tabletmanagerdata - * @classdesc Represents an ExecuteFetchAsDbaResponse. - * @implements IExecuteFetchAsDbaResponse + * @classdesc Represents an ApplySchemaResponse. + * @implements IApplySchemaResponse * @constructor - * @param {tabletmanagerdata.IExecuteFetchAsDbaResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IApplySchemaResponse=} [properties] Properties to set */ - function ExecuteFetchAsDbaResponse(properties) { + function ApplySchemaResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57841,75 +58439,89 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ExecuteFetchAsDbaResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse + * ApplySchemaResponse before_schema. + * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} before_schema + * @memberof tabletmanagerdata.ApplySchemaResponse * @instance */ - ExecuteFetchAsDbaResponse.prototype.result = null; + ApplySchemaResponse.prototype.before_schema = null; /** - * Creates a new ExecuteFetchAsDbaResponse instance using the specified properties. + * ApplySchemaResponse after_schema. + * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} after_schema + * @memberof tabletmanagerdata.ApplySchemaResponse + * @instance + */ + ApplySchemaResponse.prototype.after_schema = null; + + /** + * Creates a new ApplySchemaResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse + * @memberof tabletmanagerdata.ApplySchemaResponse * @static - * @param {tabletmanagerdata.IExecuteFetchAsDbaResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ExecuteFetchAsDbaResponse} ExecuteFetchAsDbaResponse instance + * @param {tabletmanagerdata.IApplySchemaResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ApplySchemaResponse} ApplySchemaResponse instance */ - ExecuteFetchAsDbaResponse.create = function create(properties) { - return new ExecuteFetchAsDbaResponse(properties); + ApplySchemaResponse.create = function create(properties) { + return new ApplySchemaResponse(properties); }; /** - * Encodes the specified ExecuteFetchAsDbaResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsDbaResponse.verify|verify} messages. + * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link tabletmanagerdata.ApplySchemaResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse + * @memberof tabletmanagerdata.ApplySchemaResponse * @static - * @param {tabletmanagerdata.IExecuteFetchAsDbaResponse} message ExecuteFetchAsDbaResponse message or plain object to encode + * @param {tabletmanagerdata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsDbaResponse.encode = function encode(message, writer) { + ApplySchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.before_schema != null && Object.hasOwnProperty.call(message, "before_schema")) + $root.tabletmanagerdata.SchemaDefinition.encode(message.before_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.after_schema != null && Object.hasOwnProperty.call(message, "after_schema")) + $root.tabletmanagerdata.SchemaDefinition.encode(message.after_schema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteFetchAsDbaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsDbaResponse.verify|verify} messages. + * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ApplySchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse + * @memberof tabletmanagerdata.ApplySchemaResponse * @static - * @param {tabletmanagerdata.IExecuteFetchAsDbaResponse} message ExecuteFetchAsDbaResponse message or plain object to encode + * @param {tabletmanagerdata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsDbaResponse.encodeDelimited = function encodeDelimited(message, writer) { + ApplySchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteFetchAsDbaResponse message from the specified reader or buffer. + * Decodes an ApplySchemaResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse + * @memberof tabletmanagerdata.ApplySchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ExecuteFetchAsDbaResponse} ExecuteFetchAsDbaResponse + * @returns {tabletmanagerdata.ApplySchemaResponse} ApplySchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsDbaResponse.decode = function decode(reader, length) { + ApplySchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteFetchAsDbaResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ApplySchemaResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + message.before_schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); + break; + } + case 2: { + message.after_schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); break; } default: @@ -57921,132 +58533,140 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an ExecuteFetchAsDbaResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse + * @memberof tabletmanagerdata.ApplySchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ExecuteFetchAsDbaResponse} ExecuteFetchAsDbaResponse + * @returns {tabletmanagerdata.ApplySchemaResponse} ApplySchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsDbaResponse.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 ExecuteFetchAsDbaResponse message. + * Verifies an ApplySchemaResponse message. * @function verify - * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse + * @memberof tabletmanagerdata.ApplySchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteFetchAsDbaResponse.verify = function verify(message) { + ApplySchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); + if (message.before_schema != null && message.hasOwnProperty("before_schema")) { + let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.before_schema); if (error) - return "result." + error; + return "before_schema." + error; + } + if (message.after_schema != null && message.hasOwnProperty("after_schema")) { + let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.after_schema); + if (error) + return "after_schema." + error; } return null; }; /** - * Creates an ExecuteFetchAsDbaResponse 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 tabletmanagerdata.ExecuteFetchAsDbaResponse + * @memberof tabletmanagerdata.ApplySchemaResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ExecuteFetchAsDbaResponse} ExecuteFetchAsDbaResponse + * @returns {tabletmanagerdata.ApplySchemaResponse} ApplySchemaResponse */ - ExecuteFetchAsDbaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ExecuteFetchAsDbaResponse) + ApplySchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ApplySchemaResponse) return object; - let message = new $root.tabletmanagerdata.ExecuteFetchAsDbaResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".tabletmanagerdata.ExecuteFetchAsDbaResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); + let message = new $root.tabletmanagerdata.ApplySchemaResponse(); + if (object.before_schema != null) { + if (typeof object.before_schema !== "object") + throw TypeError(".tabletmanagerdata.ApplySchemaResponse.before_schema: object expected"); + message.before_schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.before_schema); + } + if (object.after_schema != null) { + if (typeof object.after_schema !== "object") + throw TypeError(".tabletmanagerdata.ApplySchemaResponse.after_schema: object expected"); + message.after_schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.after_schema); } return message; }; /** - * Creates a plain object from an ExecuteFetchAsDbaResponse 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 tabletmanagerdata.ExecuteFetchAsDbaResponse + * @memberof tabletmanagerdata.ApplySchemaResponse * @static - * @param {tabletmanagerdata.ExecuteFetchAsDbaResponse} message ExecuteFetchAsDbaResponse + * @param {tabletmanagerdata.ApplySchemaResponse} message ApplySchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteFetchAsDbaResponse.toObject = function toObject(message, options) { + ApplySchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); + if (options.defaults) { + object.before_schema = null; + object.after_schema = null; + } + if (message.before_schema != null && message.hasOwnProperty("before_schema")) + object.before_schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.before_schema, options); + if (message.after_schema != null && message.hasOwnProperty("after_schema")) + object.after_schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.after_schema, options); return object; }; /** - * Converts this ExecuteFetchAsDbaResponse to JSON. + * Converts this ApplySchemaResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse + * @memberof tabletmanagerdata.ApplySchemaResponse * @instance * @returns {Object.} JSON object */ - ExecuteFetchAsDbaResponse.prototype.toJSON = function toJSON() { + ApplySchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteFetchAsDbaResponse + * Gets the default type url for ApplySchemaResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse + * @memberof tabletmanagerdata.ApplySchemaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteFetchAsDbaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ApplySchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ExecuteFetchAsDbaResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ApplySchemaResponse"; }; - return ExecuteFetchAsDbaResponse; + return ApplySchemaResponse; })(); - tabletmanagerdata.ExecuteMultiFetchAsDbaRequest = (function() { + tabletmanagerdata.LockTablesRequest = (function() { /** - * Properties of an ExecuteMultiFetchAsDbaRequest. + * Properties of a LockTablesRequest. * @memberof tabletmanagerdata - * @interface IExecuteMultiFetchAsDbaRequest - * @property {Uint8Array|null} [sql] ExecuteMultiFetchAsDbaRequest sql - * @property {string|null} [db_name] ExecuteMultiFetchAsDbaRequest db_name - * @property {number|Long|null} [max_rows] ExecuteMultiFetchAsDbaRequest max_rows - * @property {boolean|null} [disable_binlogs] ExecuteMultiFetchAsDbaRequest disable_binlogs - * @property {boolean|null} [reload_schema] ExecuteMultiFetchAsDbaRequest reload_schema - * @property {boolean|null} [disable_foreign_key_checks] ExecuteMultiFetchAsDbaRequest disable_foreign_key_checks + * @interface ILockTablesRequest */ /** - * Constructs a new ExecuteMultiFetchAsDbaRequest. + * Constructs a new LockTablesRequest. * @memberof tabletmanagerdata - * @classdesc Represents an ExecuteMultiFetchAsDbaRequest. - * @implements IExecuteMultiFetchAsDbaRequest + * @classdesc Represents a LockTablesRequest. + * @implements ILockTablesRequest * @constructor - * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaRequest=} [properties] Properties to set + * @param {tabletmanagerdata.ILockTablesRequest=} [properties] Properties to set */ - function ExecuteMultiFetchAsDbaRequest(properties) { + function LockTablesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58054,147 +58674,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ExecuteMultiFetchAsDbaRequest sql. - * @member {Uint8Array} sql - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest - * @instance - */ - ExecuteMultiFetchAsDbaRequest.prototype.sql = $util.newBuffer([]); - - /** - * ExecuteMultiFetchAsDbaRequest db_name. - * @member {string} db_name - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest - * @instance - */ - ExecuteMultiFetchAsDbaRequest.prototype.db_name = ""; - - /** - * ExecuteMultiFetchAsDbaRequest max_rows. - * @member {number|Long} max_rows - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest - * @instance - */ - ExecuteMultiFetchAsDbaRequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ExecuteMultiFetchAsDbaRequest disable_binlogs. - * @member {boolean} disable_binlogs - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest - * @instance - */ - ExecuteMultiFetchAsDbaRequest.prototype.disable_binlogs = false; - - /** - * ExecuteMultiFetchAsDbaRequest reload_schema. - * @member {boolean} reload_schema - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest - * @instance - */ - ExecuteMultiFetchAsDbaRequest.prototype.reload_schema = false; - - /** - * ExecuteMultiFetchAsDbaRequest disable_foreign_key_checks. - * @member {boolean} disable_foreign_key_checks - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest - * @instance - */ - ExecuteMultiFetchAsDbaRequest.prototype.disable_foreign_key_checks = false; - - /** - * Creates a new ExecuteMultiFetchAsDbaRequest instance using the specified properties. + * Creates a new LockTablesRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @memberof tabletmanagerdata.LockTablesRequest * @static - * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaRequest} ExecuteMultiFetchAsDbaRequest instance + * @param {tabletmanagerdata.ILockTablesRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.LockTablesRequest} LockTablesRequest instance */ - ExecuteMultiFetchAsDbaRequest.create = function create(properties) { - return new ExecuteMultiFetchAsDbaRequest(properties); + LockTablesRequest.create = function create(properties) { + return new LockTablesRequest(properties); }; /** - * Encodes the specified ExecuteMultiFetchAsDbaRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteMultiFetchAsDbaRequest.verify|verify} messages. + * Encodes the specified LockTablesRequest message. Does not implicitly {@link tabletmanagerdata.LockTablesRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @memberof tabletmanagerdata.LockTablesRequest * @static - * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaRequest} message ExecuteMultiFetchAsDbaRequest message or plain object to encode + * @param {tabletmanagerdata.ILockTablesRequest} message LockTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteMultiFetchAsDbaRequest.encode = function encode(message, writer) { + LockTablesRequest.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).bytes(message.sql); - if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.db_name); - if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.max_rows); - if (message.disable_binlogs != null && Object.hasOwnProperty.call(message, "disable_binlogs")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.disable_binlogs); - if (message.reload_schema != null && Object.hasOwnProperty.call(message, "reload_schema")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reload_schema); - if (message.disable_foreign_key_checks != null && Object.hasOwnProperty.call(message, "disable_foreign_key_checks")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disable_foreign_key_checks); return writer; }; /** - * Encodes the specified ExecuteMultiFetchAsDbaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteMultiFetchAsDbaRequest.verify|verify} messages. + * Encodes the specified LockTablesRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.LockTablesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @memberof tabletmanagerdata.LockTablesRequest * @static - * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaRequest} message ExecuteMultiFetchAsDbaRequest message or plain object to encode + * @param {tabletmanagerdata.ILockTablesRequest} message LockTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteMultiFetchAsDbaRequest.encodeDelimited = function encodeDelimited(message, writer) { + LockTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteMultiFetchAsDbaRequest message from the specified reader or buffer. + * Decodes a LockTablesRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @memberof tabletmanagerdata.LockTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaRequest} ExecuteMultiFetchAsDbaRequest + * @returns {tabletmanagerdata.LockTablesRequest} LockTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteMultiFetchAsDbaRequest.decode = function decode(reader, length) { + LockTablesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteMultiFetchAsDbaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.LockTablesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.sql = reader.bytes(); - break; - } - case 2: { - message.db_name = reader.string(); - break; - } - case 3: { - message.max_rows = reader.uint64(); - break; - } - case 4: { - message.disable_binlogs = reader.bool(); - break; - } - case 5: { - message.reload_schema = reader.bool(); - break; - } - case 6: { - message.disable_foreign_key_checks = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -58204,187 +58740,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an ExecuteMultiFetchAsDbaRequest message from the specified reader or buffer, length delimited. + * Decodes a LockTablesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @memberof tabletmanagerdata.LockTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaRequest} ExecuteMultiFetchAsDbaRequest + * @returns {tabletmanagerdata.LockTablesRequest} LockTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteMultiFetchAsDbaRequest.decodeDelimited = function decodeDelimited(reader) { + LockTablesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteMultiFetchAsDbaRequest message. + * Verifies a LockTablesRequest message. * @function verify - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @memberof tabletmanagerdata.LockTablesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteMultiFetchAsDbaRequest.verify = function verify(message) { + LockTablesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sql != null && message.hasOwnProperty("sql")) - if (!(message.sql && typeof message.sql.length === "number" || $util.isString(message.sql))) - return "sql: buffer expected"; - if (message.db_name != null && message.hasOwnProperty("db_name")) - if (!$util.isString(message.db_name)) - return "db_name: string expected"; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) - return "max_rows: integer|Long expected"; - if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) - if (typeof message.disable_binlogs !== "boolean") - return "disable_binlogs: boolean expected"; - if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) - if (typeof message.reload_schema !== "boolean") - return "reload_schema: boolean expected"; - if (message.disable_foreign_key_checks != null && message.hasOwnProperty("disable_foreign_key_checks")) - if (typeof message.disable_foreign_key_checks !== "boolean") - return "disable_foreign_key_checks: boolean expected"; return null; }; /** - * Creates an ExecuteMultiFetchAsDbaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LockTablesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @memberof tabletmanagerdata.LockTablesRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaRequest} ExecuteMultiFetchAsDbaRequest + * @returns {tabletmanagerdata.LockTablesRequest} LockTablesRequest */ - ExecuteMultiFetchAsDbaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ExecuteMultiFetchAsDbaRequest) + LockTablesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.LockTablesRequest) return object; - let message = new $root.tabletmanagerdata.ExecuteMultiFetchAsDbaRequest(); - 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 >= 0) - message.sql = object.sql; - if (object.db_name != null) - message.db_name = String(object.db_name); - if (object.max_rows != null) - if ($util.Long) - (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = true; - else if (typeof object.max_rows === "string") - message.max_rows = parseInt(object.max_rows, 10); - else if (typeof object.max_rows === "number") - message.max_rows = object.max_rows; - else if (typeof object.max_rows === "object") - message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(true); - if (object.disable_binlogs != null) - message.disable_binlogs = Boolean(object.disable_binlogs); - if (object.reload_schema != null) - message.reload_schema = Boolean(object.reload_schema); - if (object.disable_foreign_key_checks != null) - message.disable_foreign_key_checks = Boolean(object.disable_foreign_key_checks); - return message; + return new $root.tabletmanagerdata.LockTablesRequest(); }; /** - * Creates a plain object from an ExecuteMultiFetchAsDbaRequest message. Also converts values to other types if specified. + * Creates a plain object from a LockTablesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @memberof tabletmanagerdata.LockTablesRequest * @static - * @param {tabletmanagerdata.ExecuteMultiFetchAsDbaRequest} message ExecuteMultiFetchAsDbaRequest + * @param {tabletmanagerdata.LockTablesRequest} message LockTablesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteMultiFetchAsDbaRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.sql = ""; - else { - object.sql = []; - if (options.bytes !== Array) - object.sql = $util.newBuffer(object.sql); - } - object.db_name = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_rows = options.longs === String ? "0" : 0; - object.disable_binlogs = false; - object.reload_schema = false; - object.disable_foreign_key_checks = false; - } - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = options.bytes === String ? $util.base64.encode(message.sql, 0, message.sql.length) : options.bytes === Array ? Array.prototype.slice.call(message.sql) : message.sql; - if (message.db_name != null && message.hasOwnProperty("db_name")) - object.db_name = message.db_name; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (typeof message.max_rows === "number") - object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; - else - object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber(true) : message.max_rows; - if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) - object.disable_binlogs = message.disable_binlogs; - if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) - object.reload_schema = message.reload_schema; - if (message.disable_foreign_key_checks != null && message.hasOwnProperty("disable_foreign_key_checks")) - object.disable_foreign_key_checks = message.disable_foreign_key_checks; - return object; + LockTablesRequest.toObject = function toObject() { + return {}; }; /** - * Converts this ExecuteMultiFetchAsDbaRequest to JSON. + * Converts this LockTablesRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @memberof tabletmanagerdata.LockTablesRequest * @instance * @returns {Object.} JSON object */ - ExecuteMultiFetchAsDbaRequest.prototype.toJSON = function toJSON() { + LockTablesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteMultiFetchAsDbaRequest + * Gets the default type url for LockTablesRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @memberof tabletmanagerdata.LockTablesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteMultiFetchAsDbaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LockTablesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ExecuteMultiFetchAsDbaRequest"; + return typeUrlPrefix + "/tabletmanagerdata.LockTablesRequest"; }; - return ExecuteMultiFetchAsDbaRequest; + return LockTablesRequest; })(); - tabletmanagerdata.ExecuteMultiFetchAsDbaResponse = (function() { + tabletmanagerdata.LockTablesResponse = (function() { /** - * Properties of an ExecuteMultiFetchAsDbaResponse. + * Properties of a LockTablesResponse. * @memberof tabletmanagerdata - * @interface IExecuteMultiFetchAsDbaResponse - * @property {Array.|null} [results] ExecuteMultiFetchAsDbaResponse results + * @interface ILockTablesResponse */ /** - * Constructs a new ExecuteMultiFetchAsDbaResponse. + * Constructs a new LockTablesResponse. * @memberof tabletmanagerdata - * @classdesc Represents an ExecuteMultiFetchAsDbaResponse. - * @implements IExecuteMultiFetchAsDbaResponse + * @classdesc Represents a LockTablesResponse. + * @implements ILockTablesResponse * @constructor - * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaResponse=} [properties] Properties to set + * @param {tabletmanagerdata.ILockTablesResponse=} [properties] Properties to set */ - function ExecuteMultiFetchAsDbaResponse(properties) { - this.results = []; + function LockTablesResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58392,80 +58849,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ExecuteMultiFetchAsDbaResponse results. - * @member {Array.} results - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse - * @instance - */ - ExecuteMultiFetchAsDbaResponse.prototype.results = $util.emptyArray; - - /** - * Creates a new ExecuteMultiFetchAsDbaResponse instance using the specified properties. + * Creates a new LockTablesResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse + * @memberof tabletmanagerdata.LockTablesResponse * @static - * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaResponse} ExecuteMultiFetchAsDbaResponse instance + * @param {tabletmanagerdata.ILockTablesResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.LockTablesResponse} LockTablesResponse instance */ - ExecuteMultiFetchAsDbaResponse.create = function create(properties) { - return new ExecuteMultiFetchAsDbaResponse(properties); + LockTablesResponse.create = function create(properties) { + return new LockTablesResponse(properties); }; /** - * Encodes the specified ExecuteMultiFetchAsDbaResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteMultiFetchAsDbaResponse.verify|verify} messages. + * Encodes the specified LockTablesResponse message. Does not implicitly {@link tabletmanagerdata.LockTablesResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse + * @memberof tabletmanagerdata.LockTablesResponse * @static - * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaResponse} message ExecuteMultiFetchAsDbaResponse message or plain object to encode + * @param {tabletmanagerdata.ILockTablesResponse} message LockTablesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteMultiFetchAsDbaResponse.encode = function encode(message, writer) { + LockTablesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (let i = 0; i < message.results.length; ++i) - $root.query.QueryResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteMultiFetchAsDbaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteMultiFetchAsDbaResponse.verify|verify} messages. + * Encodes the specified LockTablesResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.LockTablesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse + * @memberof tabletmanagerdata.LockTablesResponse * @static - * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaResponse} message ExecuteMultiFetchAsDbaResponse message or plain object to encode + * @param {tabletmanagerdata.ILockTablesResponse} message LockTablesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteMultiFetchAsDbaResponse.encodeDelimited = function encodeDelimited(message, writer) { + LockTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteMultiFetchAsDbaResponse message from the specified reader or buffer. + * Decodes a LockTablesResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse + * @memberof tabletmanagerdata.LockTablesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaResponse} ExecuteMultiFetchAsDbaResponse + * @returns {tabletmanagerdata.LockTablesResponse} LockTablesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteMultiFetchAsDbaResponse.decode = function decode(reader, length) { + LockTablesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteMultiFetchAsDbaResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.LockTablesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.results && message.results.length)) - message.results = []; - message.results.push($root.query.QueryResult.decode(reader, reader.uint32())); - break; - } default: reader.skipType(tag & 7); break; @@ -58475,142 +58915,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an ExecuteMultiFetchAsDbaResponse message from the specified reader or buffer, length delimited. + * Decodes a LockTablesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse + * @memberof tabletmanagerdata.LockTablesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaResponse} ExecuteMultiFetchAsDbaResponse + * @returns {tabletmanagerdata.LockTablesResponse} LockTablesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteMultiFetchAsDbaResponse.decodeDelimited = function decodeDelimited(reader) { + LockTablesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteMultiFetchAsDbaResponse message. + * Verifies a LockTablesResponse message. * @function verify - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse + * @memberof tabletmanagerdata.LockTablesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteMultiFetchAsDbaResponse.verify = function verify(message) { + LockTablesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (let i = 0; i < message.results.length; ++i) { - let error = $root.query.QueryResult.verify(message.results[i]); - if (error) - return "results." + error; - } - } return null; }; /** - * Creates an ExecuteMultiFetchAsDbaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LockTablesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse + * @memberof tabletmanagerdata.LockTablesResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaResponse} ExecuteMultiFetchAsDbaResponse + * @returns {tabletmanagerdata.LockTablesResponse} LockTablesResponse */ - ExecuteMultiFetchAsDbaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ExecuteMultiFetchAsDbaResponse) + LockTablesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.LockTablesResponse) return object; - let message = new $root.tabletmanagerdata.ExecuteMultiFetchAsDbaResponse(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".tabletmanagerdata.ExecuteMultiFetchAsDbaResponse.results: array expected"); - message.results = []; - for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") - throw TypeError(".tabletmanagerdata.ExecuteMultiFetchAsDbaResponse.results: object expected"); - message.results[i] = $root.query.QueryResult.fromObject(object.results[i]); - } - } - return message; + return new $root.tabletmanagerdata.LockTablesResponse(); }; /** - * Creates a plain object from an ExecuteMultiFetchAsDbaResponse message. Also converts values to other types if specified. + * Creates a plain object from a LockTablesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse + * @memberof tabletmanagerdata.LockTablesResponse * @static - * @param {tabletmanagerdata.ExecuteMultiFetchAsDbaResponse} message ExecuteMultiFetchAsDbaResponse + * @param {tabletmanagerdata.LockTablesResponse} message LockTablesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteMultiFetchAsDbaResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.results = []; - if (message.results && message.results.length) { - object.results = []; - for (let j = 0; j < message.results.length; ++j) - object.results[j] = $root.query.QueryResult.toObject(message.results[j], options); - } - return object; + LockTablesResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ExecuteMultiFetchAsDbaResponse to JSON. + * Converts this LockTablesResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse + * @memberof tabletmanagerdata.LockTablesResponse * @instance * @returns {Object.} JSON object */ - ExecuteMultiFetchAsDbaResponse.prototype.toJSON = function toJSON() { + LockTablesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteMultiFetchAsDbaResponse + * Gets the default type url for LockTablesResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse + * @memberof tabletmanagerdata.LockTablesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteMultiFetchAsDbaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LockTablesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ExecuteMultiFetchAsDbaResponse"; + return typeUrlPrefix + "/tabletmanagerdata.LockTablesResponse"; }; - return ExecuteMultiFetchAsDbaResponse; + return LockTablesResponse; })(); - tabletmanagerdata.ExecuteFetchAsAllPrivsRequest = (function() { + tabletmanagerdata.UnlockTablesRequest = (function() { /** - * Properties of an ExecuteFetchAsAllPrivsRequest. + * Properties of an UnlockTablesRequest. * @memberof tabletmanagerdata - * @interface IExecuteFetchAsAllPrivsRequest - * @property {Uint8Array|null} [query] ExecuteFetchAsAllPrivsRequest query - * @property {string|null} [db_name] ExecuteFetchAsAllPrivsRequest db_name - * @property {number|Long|null} [max_rows] ExecuteFetchAsAllPrivsRequest max_rows - * @property {boolean|null} [reload_schema] ExecuteFetchAsAllPrivsRequest reload_schema + * @interface IUnlockTablesRequest */ /** - * Constructs a new ExecuteFetchAsAllPrivsRequest. + * Constructs a new UnlockTablesRequest. * @memberof tabletmanagerdata - * @classdesc Represents an ExecuteFetchAsAllPrivsRequest. - * @implements IExecuteFetchAsAllPrivsRequest + * @classdesc Represents an UnlockTablesRequest. + * @implements IUnlockTablesRequest * @constructor - * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IUnlockTablesRequest=} [properties] Properties to set */ - function ExecuteFetchAsAllPrivsRequest(properties) { + function UnlockTablesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58618,119 +59024,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ExecuteFetchAsAllPrivsRequest query. - * @member {Uint8Array} query - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest - * @instance - */ - ExecuteFetchAsAllPrivsRequest.prototype.query = $util.newBuffer([]); - - /** - * ExecuteFetchAsAllPrivsRequest db_name. - * @member {string} db_name - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest - * @instance - */ - ExecuteFetchAsAllPrivsRequest.prototype.db_name = ""; - - /** - * ExecuteFetchAsAllPrivsRequest max_rows. - * @member {number|Long} max_rows - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest - * @instance - */ - ExecuteFetchAsAllPrivsRequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ExecuteFetchAsAllPrivsRequest reload_schema. - * @member {boolean} reload_schema - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest - * @instance - */ - ExecuteFetchAsAllPrivsRequest.prototype.reload_schema = false; - - /** - * Creates a new ExecuteFetchAsAllPrivsRequest instance using the specified properties. + * Creates a new UnlockTablesRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + * @memberof tabletmanagerdata.UnlockTablesRequest * @static - * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsRequest} ExecuteFetchAsAllPrivsRequest instance + * @param {tabletmanagerdata.IUnlockTablesRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.UnlockTablesRequest} UnlockTablesRequest instance */ - ExecuteFetchAsAllPrivsRequest.create = function create(properties) { - return new ExecuteFetchAsAllPrivsRequest(properties); + UnlockTablesRequest.create = function create(properties) { + return new UnlockTablesRequest(properties); }; /** - * Encodes the specified ExecuteFetchAsAllPrivsRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsRequest.verify|verify} messages. + * Encodes the specified UnlockTablesRequest message. Does not implicitly {@link tabletmanagerdata.UnlockTablesRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + * @memberof tabletmanagerdata.UnlockTablesRequest * @static - * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsRequest} message ExecuteFetchAsAllPrivsRequest message or plain object to encode + * @param {tabletmanagerdata.IUnlockTablesRequest} message UnlockTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsAllPrivsRequest.encode = function encode(message, writer) { + UnlockTablesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.query); - if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.db_name); - if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.max_rows); - if (message.reload_schema != null && Object.hasOwnProperty.call(message, "reload_schema")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.reload_schema); return writer; }; /** - * Encodes the specified ExecuteFetchAsAllPrivsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsRequest.verify|verify} messages. + * Encodes the specified UnlockTablesRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UnlockTablesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + * @memberof tabletmanagerdata.UnlockTablesRequest * @static - * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsRequest} message ExecuteFetchAsAllPrivsRequest message or plain object to encode + * @param {tabletmanagerdata.IUnlockTablesRequest} message UnlockTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsAllPrivsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UnlockTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteFetchAsAllPrivsRequest message from the specified reader or buffer. + * Decodes an UnlockTablesRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + * @memberof tabletmanagerdata.UnlockTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsRequest} ExecuteFetchAsAllPrivsRequest + * @returns {tabletmanagerdata.UnlockTablesRequest} UnlockTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsAllPrivsRequest.decode = function decode(reader, length) { + UnlockTablesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteFetchAsAllPrivsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UnlockTablesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.query = reader.bytes(); - break; - } - case 2: { - message.db_name = reader.string(); - break; - } - case 3: { - message.max_rows = reader.uint64(); - break; - } - case 4: { - message.reload_schema = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -58740,170 +59090,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an ExecuteFetchAsAllPrivsRequest message from the specified reader or buffer, length delimited. + * Decodes an UnlockTablesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + * @memberof tabletmanagerdata.UnlockTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsRequest} ExecuteFetchAsAllPrivsRequest + * @returns {tabletmanagerdata.UnlockTablesRequest} UnlockTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsAllPrivsRequest.decodeDelimited = function decodeDelimited(reader) { + UnlockTablesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteFetchAsAllPrivsRequest message. + * Verifies an UnlockTablesRequest message. * @function verify - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + * @memberof tabletmanagerdata.UnlockTablesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteFetchAsAllPrivsRequest.verify = function verify(message) { + UnlockTablesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.query != null && message.hasOwnProperty("query")) - if (!(message.query && typeof message.query.length === "number" || $util.isString(message.query))) - return "query: buffer expected"; - if (message.db_name != null && message.hasOwnProperty("db_name")) - if (!$util.isString(message.db_name)) - return "db_name: string expected"; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) - return "max_rows: integer|Long expected"; - if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) - if (typeof message.reload_schema !== "boolean") - return "reload_schema: boolean expected"; return null; }; /** - * Creates an ExecuteFetchAsAllPrivsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UnlockTablesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + * @memberof tabletmanagerdata.UnlockTablesRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsRequest} ExecuteFetchAsAllPrivsRequest + * @returns {tabletmanagerdata.UnlockTablesRequest} UnlockTablesRequest */ - ExecuteFetchAsAllPrivsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ExecuteFetchAsAllPrivsRequest) + UnlockTablesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.UnlockTablesRequest) return object; - let message = new $root.tabletmanagerdata.ExecuteFetchAsAllPrivsRequest(); - if (object.query != null) - if (typeof object.query === "string") - $util.base64.decode(object.query, message.query = $util.newBuffer($util.base64.length(object.query)), 0); - else if (object.query.length >= 0) - message.query = object.query; - if (object.db_name != null) - message.db_name = String(object.db_name); - if (object.max_rows != null) - if ($util.Long) - (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = true; - else if (typeof object.max_rows === "string") - message.max_rows = parseInt(object.max_rows, 10); - else if (typeof object.max_rows === "number") - message.max_rows = object.max_rows; - else if (typeof object.max_rows === "object") - message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(true); - if (object.reload_schema != null) - message.reload_schema = Boolean(object.reload_schema); - return message; + return new $root.tabletmanagerdata.UnlockTablesRequest(); }; /** - * Creates a plain object from an ExecuteFetchAsAllPrivsRequest message. Also converts values to other types if specified. + * Creates a plain object from an UnlockTablesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + * @memberof tabletmanagerdata.UnlockTablesRequest * @static - * @param {tabletmanagerdata.ExecuteFetchAsAllPrivsRequest} message ExecuteFetchAsAllPrivsRequest + * @param {tabletmanagerdata.UnlockTablesRequest} message UnlockTablesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteFetchAsAllPrivsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.query = ""; - else { - object.query = []; - if (options.bytes !== Array) - object.query = $util.newBuffer(object.query); - } - object.db_name = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_rows = options.longs === String ? "0" : 0; - object.reload_schema = false; - } - if (message.query != null && message.hasOwnProperty("query")) - object.query = options.bytes === String ? $util.base64.encode(message.query, 0, message.query.length) : options.bytes === Array ? Array.prototype.slice.call(message.query) : message.query; - if (message.db_name != null && message.hasOwnProperty("db_name")) - object.db_name = message.db_name; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (typeof message.max_rows === "number") - object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; - else - object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber(true) : message.max_rows; - if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) - object.reload_schema = message.reload_schema; - return object; + UnlockTablesRequest.toObject = function toObject() { + return {}; }; /** - * Converts this ExecuteFetchAsAllPrivsRequest to JSON. + * Converts this UnlockTablesRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + * @memberof tabletmanagerdata.UnlockTablesRequest * @instance * @returns {Object.} JSON object */ - ExecuteFetchAsAllPrivsRequest.prototype.toJSON = function toJSON() { + UnlockTablesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteFetchAsAllPrivsRequest + * Gets the default type url for UnlockTablesRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + * @memberof tabletmanagerdata.UnlockTablesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteFetchAsAllPrivsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UnlockTablesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ExecuteFetchAsAllPrivsRequest"; + return typeUrlPrefix + "/tabletmanagerdata.UnlockTablesRequest"; }; - return ExecuteFetchAsAllPrivsRequest; + return UnlockTablesRequest; })(); - tabletmanagerdata.ExecuteFetchAsAllPrivsResponse = (function() { + tabletmanagerdata.UnlockTablesResponse = (function() { /** - * Properties of an ExecuteFetchAsAllPrivsResponse. + * Properties of an UnlockTablesResponse. * @memberof tabletmanagerdata - * @interface IExecuteFetchAsAllPrivsResponse - * @property {query.IQueryResult|null} [result] ExecuteFetchAsAllPrivsResponse result + * @interface IUnlockTablesResponse */ /** - * Constructs a new ExecuteFetchAsAllPrivsResponse. + * Constructs a new UnlockTablesResponse. * @memberof tabletmanagerdata - * @classdesc Represents an ExecuteFetchAsAllPrivsResponse. - * @implements IExecuteFetchAsAllPrivsResponse + * @classdesc Represents an UnlockTablesResponse. + * @implements IUnlockTablesResponse * @constructor - * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IUnlockTablesResponse=} [properties] Properties to set */ - function ExecuteFetchAsAllPrivsResponse(properties) { + function UnlockTablesResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58911,77 +59199,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ExecuteFetchAsAllPrivsResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse - * @instance - */ - ExecuteFetchAsAllPrivsResponse.prototype.result = null; - - /** - * Creates a new ExecuteFetchAsAllPrivsResponse instance using the specified properties. + * Creates a new UnlockTablesResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse + * @memberof tabletmanagerdata.UnlockTablesResponse * @static - * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsResponse} ExecuteFetchAsAllPrivsResponse instance + * @param {tabletmanagerdata.IUnlockTablesResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.UnlockTablesResponse} UnlockTablesResponse instance */ - ExecuteFetchAsAllPrivsResponse.create = function create(properties) { - return new ExecuteFetchAsAllPrivsResponse(properties); + UnlockTablesResponse.create = function create(properties) { + return new UnlockTablesResponse(properties); }; /** - * Encodes the specified ExecuteFetchAsAllPrivsResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsResponse.verify|verify} messages. + * Encodes the specified UnlockTablesResponse message. Does not implicitly {@link tabletmanagerdata.UnlockTablesResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse + * @memberof tabletmanagerdata.UnlockTablesResponse * @static - * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsResponse} message ExecuteFetchAsAllPrivsResponse message or plain object to encode + * @param {tabletmanagerdata.IUnlockTablesResponse} message UnlockTablesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsAllPrivsResponse.encode = function encode(message, writer) { + UnlockTablesResponse.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 ExecuteFetchAsAllPrivsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsResponse.verify|verify} messages. + * Encodes the specified UnlockTablesResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UnlockTablesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse + * @memberof tabletmanagerdata.UnlockTablesResponse * @static - * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsResponse} message ExecuteFetchAsAllPrivsResponse message or plain object to encode + * @param {tabletmanagerdata.IUnlockTablesResponse} message UnlockTablesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsAllPrivsResponse.encodeDelimited = function encodeDelimited(message, writer) { + UnlockTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteFetchAsAllPrivsResponse message from the specified reader or buffer. + * Decodes an UnlockTablesResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse + * @memberof tabletmanagerdata.UnlockTablesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsResponse} ExecuteFetchAsAllPrivsResponse + * @returns {tabletmanagerdata.UnlockTablesResponse} UnlockTablesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsAllPrivsResponse.decode = function decode(reader, length) { + UnlockTablesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteFetchAsAllPrivsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UnlockTablesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -58991,128 +59265,112 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an ExecuteFetchAsAllPrivsResponse message from the specified reader or buffer, length delimited. + * Decodes an UnlockTablesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse + * @memberof tabletmanagerdata.UnlockTablesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsResponse} ExecuteFetchAsAllPrivsResponse + * @returns {tabletmanagerdata.UnlockTablesResponse} UnlockTablesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsAllPrivsResponse.decodeDelimited = function decodeDelimited(reader) { + UnlockTablesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteFetchAsAllPrivsResponse message. + * Verifies an UnlockTablesResponse message. * @function verify - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse + * @memberof tabletmanagerdata.UnlockTablesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteFetchAsAllPrivsResponse.verify = function verify(message) { + UnlockTablesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } return null; }; /** - * Creates an ExecuteFetchAsAllPrivsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UnlockTablesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse + * @memberof tabletmanagerdata.UnlockTablesResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsResponse} ExecuteFetchAsAllPrivsResponse + * @returns {tabletmanagerdata.UnlockTablesResponse} UnlockTablesResponse */ - ExecuteFetchAsAllPrivsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ExecuteFetchAsAllPrivsResponse) + UnlockTablesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.UnlockTablesResponse) return object; - let message = new $root.tabletmanagerdata.ExecuteFetchAsAllPrivsResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".tabletmanagerdata.ExecuteFetchAsAllPrivsResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - return message; + return new $root.tabletmanagerdata.UnlockTablesResponse(); }; /** - * Creates a plain object from an ExecuteFetchAsAllPrivsResponse message. Also converts values to other types if specified. + * Creates a plain object from an UnlockTablesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse + * @memberof tabletmanagerdata.UnlockTablesResponse * @static - * @param {tabletmanagerdata.ExecuteFetchAsAllPrivsResponse} message ExecuteFetchAsAllPrivsResponse + * @param {tabletmanagerdata.UnlockTablesResponse} message UnlockTablesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteFetchAsAllPrivsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); - return object; + UnlockTablesResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ExecuteFetchAsAllPrivsResponse to JSON. + * Converts this UnlockTablesResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse + * @memberof tabletmanagerdata.UnlockTablesResponse * @instance * @returns {Object.} JSON object */ - ExecuteFetchAsAllPrivsResponse.prototype.toJSON = function toJSON() { + UnlockTablesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteFetchAsAllPrivsResponse + * Gets the default type url for UnlockTablesResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse + * @memberof tabletmanagerdata.UnlockTablesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteFetchAsAllPrivsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UnlockTablesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ExecuteFetchAsAllPrivsResponse"; + return typeUrlPrefix + "/tabletmanagerdata.UnlockTablesResponse"; }; - return ExecuteFetchAsAllPrivsResponse; + return UnlockTablesResponse; })(); - tabletmanagerdata.ExecuteFetchAsAppRequest = (function() { + tabletmanagerdata.ExecuteQueryRequest = (function() { /** - * Properties of an ExecuteFetchAsAppRequest. + * Properties of an ExecuteQueryRequest. * @memberof tabletmanagerdata - * @interface IExecuteFetchAsAppRequest - * @property {Uint8Array|null} [query] ExecuteFetchAsAppRequest query - * @property {number|Long|null} [max_rows] ExecuteFetchAsAppRequest max_rows + * @interface IExecuteQueryRequest + * @property {Uint8Array|null} [query] ExecuteQueryRequest query + * @property {string|null} [db_name] ExecuteQueryRequest db_name + * @property {number|Long|null} [max_rows] ExecuteQueryRequest max_rows + * @property {vtrpc.ICallerID|null} [caller_id] ExecuteQueryRequest caller_id */ /** - * Constructs a new ExecuteFetchAsAppRequest. + * Constructs a new ExecuteQueryRequest. * @memberof tabletmanagerdata - * @classdesc Represents an ExecuteFetchAsAppRequest. - * @implements IExecuteFetchAsAppRequest + * @classdesc Represents an ExecuteQueryRequest. + * @implements IExecuteQueryRequest * @constructor - * @param {tabletmanagerdata.IExecuteFetchAsAppRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IExecuteQueryRequest=} [properties] Properties to set */ - function ExecuteFetchAsAppRequest(properties) { + function ExecuteQueryRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59120,80 +59378,100 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ExecuteFetchAsAppRequest query. + * ExecuteQueryRequest query. * @member {Uint8Array} query - * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest + * @memberof tabletmanagerdata.ExecuteQueryRequest * @instance */ - ExecuteFetchAsAppRequest.prototype.query = $util.newBuffer([]); + ExecuteQueryRequest.prototype.query = $util.newBuffer([]); /** - * ExecuteFetchAsAppRequest max_rows. + * ExecuteQueryRequest db_name. + * @member {string} db_name + * @memberof tabletmanagerdata.ExecuteQueryRequest + * @instance + */ + ExecuteQueryRequest.prototype.db_name = ""; + + /** + * ExecuteQueryRequest max_rows. * @member {number|Long} max_rows - * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest + * @memberof tabletmanagerdata.ExecuteQueryRequest * @instance */ - ExecuteFetchAsAppRequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ExecuteQueryRequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new ExecuteFetchAsAppRequest instance using the specified properties. + * ExecuteQueryRequest caller_id. + * @member {vtrpc.ICallerID|null|undefined} caller_id + * @memberof tabletmanagerdata.ExecuteQueryRequest + * @instance + */ + ExecuteQueryRequest.prototype.caller_id = null; + + /** + * Creates a new ExecuteQueryRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest + * @memberof tabletmanagerdata.ExecuteQueryRequest * @static - * @param {tabletmanagerdata.IExecuteFetchAsAppRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest instance + * @param {tabletmanagerdata.IExecuteQueryRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ExecuteQueryRequest} ExecuteQueryRequest instance */ - ExecuteFetchAsAppRequest.create = function create(properties) { - return new ExecuteFetchAsAppRequest(properties); + ExecuteQueryRequest.create = function create(properties) { + return new ExecuteQueryRequest(properties); }; /** - * Encodes the specified ExecuteFetchAsAppRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAppRequest.verify|verify} messages. + * Encodes the specified ExecuteQueryRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteQueryRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest + * @memberof tabletmanagerdata.ExecuteQueryRequest * @static - * @param {tabletmanagerdata.IExecuteFetchAsAppRequest} message ExecuteFetchAsAppRequest message or plain object to encode + * @param {tabletmanagerdata.IExecuteQueryRequest} message ExecuteQueryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsAppRequest.encode = function encode(message, writer) { + ExecuteQueryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.query != null && Object.hasOwnProperty.call(message, "query")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.query); + if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.db_name); if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.max_rows); + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.max_rows); + if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) + $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteFetchAsAppRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAppRequest.verify|verify} messages. + * Encodes the specified ExecuteQueryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteQueryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest + * @memberof tabletmanagerdata.ExecuteQueryRequest * @static - * @param {tabletmanagerdata.IExecuteFetchAsAppRequest} message ExecuteFetchAsAppRequest message or plain object to encode + * @param {tabletmanagerdata.IExecuteQueryRequest} message ExecuteQueryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsAppRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteQueryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer. + * Decodes an ExecuteQueryRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest + * @memberof tabletmanagerdata.ExecuteQueryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest + * @returns {tabletmanagerdata.ExecuteQueryRequest} ExecuteQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsAppRequest.decode = function decode(reader, length) { + ExecuteQueryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteFetchAsAppRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteQueryRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -59202,9 +59480,17 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { break; } case 2: { + message.db_name = reader.string(); + break; + } + case 3: { message.max_rows = reader.uint64(); break; } + case 4: { + message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -59214,58 +59500,68 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteQueryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest + * @memberof tabletmanagerdata.ExecuteQueryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest + * @returns {tabletmanagerdata.ExecuteQueryRequest} ExecuteQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsAppRequest.decodeDelimited = function decodeDelimited(reader) { + ExecuteQueryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteFetchAsAppRequest message. + * Verifies an ExecuteQueryRequest message. * @function verify - * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest + * @memberof tabletmanagerdata.ExecuteQueryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteFetchAsAppRequest.verify = function verify(message) { + ExecuteQueryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.query != null && message.hasOwnProperty("query")) if (!(message.query && typeof message.query.length === "number" || $util.isString(message.query))) return "query: buffer expected"; + if (message.db_name != null && message.hasOwnProperty("db_name")) + if (!$util.isString(message.db_name)) + return "db_name: string expected"; if (message.max_rows != null && message.hasOwnProperty("max_rows")) if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) return "max_rows: integer|Long expected"; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) { + let error = $root.vtrpc.CallerID.verify(message.caller_id); + if (error) + return "caller_id." + error; + } return null; }; /** - * Creates an ExecuteFetchAsAppRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteQueryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest + * @memberof tabletmanagerdata.ExecuteQueryRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest + * @returns {tabletmanagerdata.ExecuteQueryRequest} ExecuteQueryRequest */ - ExecuteFetchAsAppRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ExecuteFetchAsAppRequest) + ExecuteQueryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ExecuteQueryRequest) return object; - let message = new $root.tabletmanagerdata.ExecuteFetchAsAppRequest(); + let message = new $root.tabletmanagerdata.ExecuteQueryRequest(); if (object.query != null) if (typeof object.query === "string") $util.base64.decode(object.query, message.query = $util.newBuffer($util.base64.length(object.query)), 0); else if (object.query.length >= 0) message.query = object.query; + if (object.db_name != null) + message.db_name = String(object.db_name); if (object.max_rows != null) if ($util.Long) (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = true; @@ -59275,19 +59571,24 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { message.max_rows = object.max_rows; else if (typeof object.max_rows === "object") message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(true); + if (object.caller_id != null) { + if (typeof object.caller_id !== "object") + throw TypeError(".tabletmanagerdata.ExecuteQueryRequest.caller_id: object expected"); + message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); + } return message; }; /** - * Creates a plain object from an ExecuteFetchAsAppRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteQueryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest + * @memberof tabletmanagerdata.ExecuteQueryRequest * @static - * @param {tabletmanagerdata.ExecuteFetchAsAppRequest} message ExecuteFetchAsAppRequest + * @param {tabletmanagerdata.ExecuteQueryRequest} message ExecuteQueryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteFetchAsAppRequest.toObject = function toObject(message, options) { + ExecuteQueryRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -59299,69 +59600,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { if (options.bytes !== Array) object.query = $util.newBuffer(object.query); } + object.db_name = ""; if ($util.Long) { let long = new $util.Long(0, 0, true); object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.max_rows = options.longs === String ? "0" : 0; + object.caller_id = null; } if (message.query != null && message.hasOwnProperty("query")) object.query = options.bytes === String ? $util.base64.encode(message.query, 0, message.query.length) : options.bytes === Array ? Array.prototype.slice.call(message.query) : message.query; + if (message.db_name != null && message.hasOwnProperty("db_name")) + object.db_name = message.db_name; if (message.max_rows != null && message.hasOwnProperty("max_rows")) if (typeof message.max_rows === "number") object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; else object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber(true) : message.max_rows; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) + object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); return object; }; /** - * Converts this ExecuteFetchAsAppRequest to JSON. + * Converts this ExecuteQueryRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest + * @memberof tabletmanagerdata.ExecuteQueryRequest * @instance * @returns {Object.} JSON object */ - ExecuteFetchAsAppRequest.prototype.toJSON = function toJSON() { + ExecuteQueryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteFetchAsAppRequest + * Gets the default type url for ExecuteQueryRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest + * @memberof tabletmanagerdata.ExecuteQueryRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteFetchAsAppRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteQueryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ExecuteFetchAsAppRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ExecuteQueryRequest"; }; - return ExecuteFetchAsAppRequest; + return ExecuteQueryRequest; })(); - tabletmanagerdata.ExecuteFetchAsAppResponse = (function() { + tabletmanagerdata.ExecuteQueryResponse = (function() { /** - * Properties of an ExecuteFetchAsAppResponse. + * Properties of an ExecuteQueryResponse. * @memberof tabletmanagerdata - * @interface IExecuteFetchAsAppResponse - * @property {query.IQueryResult|null} [result] ExecuteFetchAsAppResponse result + * @interface IExecuteQueryResponse + * @property {query.IQueryResult|null} [result] ExecuteQueryResponse result */ /** - * Constructs a new ExecuteFetchAsAppResponse. + * Constructs a new ExecuteQueryResponse. * @memberof tabletmanagerdata - * @classdesc Represents an ExecuteFetchAsAppResponse. - * @implements IExecuteFetchAsAppResponse + * @classdesc Represents an ExecuteQueryResponse. + * @implements IExecuteQueryResponse * @constructor - * @param {tabletmanagerdata.IExecuteFetchAsAppResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IExecuteQueryResponse=} [properties] Properties to set */ - function ExecuteFetchAsAppResponse(properties) { + function ExecuteQueryResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59369,35 +59676,35 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ExecuteFetchAsAppResponse result. + * ExecuteQueryResponse result. * @member {query.IQueryResult|null|undefined} result - * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse + * @memberof tabletmanagerdata.ExecuteQueryResponse * @instance */ - ExecuteFetchAsAppResponse.prototype.result = null; + ExecuteQueryResponse.prototype.result = null; /** - * Creates a new ExecuteFetchAsAppResponse instance using the specified properties. + * Creates a new ExecuteQueryResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse + * @memberof tabletmanagerdata.ExecuteQueryResponse * @static - * @param {tabletmanagerdata.IExecuteFetchAsAppResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse instance + * @param {tabletmanagerdata.IExecuteQueryResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ExecuteQueryResponse} ExecuteQueryResponse instance */ - ExecuteFetchAsAppResponse.create = function create(properties) { - return new ExecuteFetchAsAppResponse(properties); + ExecuteQueryResponse.create = function create(properties) { + return new ExecuteQueryResponse(properties); }; /** - * Encodes the specified ExecuteFetchAsAppResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAppResponse.verify|verify} messages. + * Encodes the specified ExecuteQueryResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteQueryResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse + * @memberof tabletmanagerdata.ExecuteQueryResponse * @static - * @param {tabletmanagerdata.IExecuteFetchAsAppResponse} message ExecuteFetchAsAppResponse message or plain object to encode + * @param {tabletmanagerdata.IExecuteQueryResponse} message ExecuteQueryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsAppResponse.encode = function encode(message, writer) { + ExecuteQueryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.result != null && Object.hasOwnProperty.call(message, "result")) @@ -59406,33 +59713,33 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Encodes the specified ExecuteFetchAsAppResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAppResponse.verify|verify} messages. + * Encodes the specified ExecuteQueryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteQueryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse + * @memberof tabletmanagerdata.ExecuteQueryResponse * @static - * @param {tabletmanagerdata.IExecuteFetchAsAppResponse} message ExecuteFetchAsAppResponse message or plain object to encode + * @param {tabletmanagerdata.IExecuteQueryResponse} message ExecuteQueryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsAppResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteQueryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer. + * Decodes an ExecuteQueryResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse + * @memberof tabletmanagerdata.ExecuteQueryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse + * @returns {tabletmanagerdata.ExecuteQueryResponse} ExecuteQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsAppResponse.decode = function decode(reader, length) { + ExecuteQueryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteFetchAsAppResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteQueryResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -59449,30 +59756,30 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteQueryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse + * @memberof tabletmanagerdata.ExecuteQueryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse + * @returns {tabletmanagerdata.ExecuteQueryResponse} ExecuteQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsAppResponse.decodeDelimited = function decodeDelimited(reader) { + ExecuteQueryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteFetchAsAppResponse message. + * Verifies an ExecuteQueryResponse message. * @function verify - * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse + * @memberof tabletmanagerdata.ExecuteQueryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteFetchAsAppResponse.verify = function verify(message) { + ExecuteQueryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.result != null && message.hasOwnProperty("result")) { @@ -59484,35 +59791,35 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Creates an ExecuteFetchAsAppResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteQueryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse + * @memberof tabletmanagerdata.ExecuteQueryResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse + * @returns {tabletmanagerdata.ExecuteQueryResponse} ExecuteQueryResponse */ - ExecuteFetchAsAppResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ExecuteFetchAsAppResponse) + ExecuteQueryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ExecuteQueryResponse) return object; - let message = new $root.tabletmanagerdata.ExecuteFetchAsAppResponse(); + let message = new $root.tabletmanagerdata.ExecuteQueryResponse(); if (object.result != null) { if (typeof object.result !== "object") - throw TypeError(".tabletmanagerdata.ExecuteFetchAsAppResponse.result: object expected"); + throw TypeError(".tabletmanagerdata.ExecuteQueryResponse.result: object expected"); message.result = $root.query.QueryResult.fromObject(object.result); } return message; }; /** - * Creates a plain object from an ExecuteFetchAsAppResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteQueryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse + * @memberof tabletmanagerdata.ExecuteQueryResponse * @static - * @param {tabletmanagerdata.ExecuteFetchAsAppResponse} message ExecuteFetchAsAppResponse + * @param {tabletmanagerdata.ExecuteQueryResponse} message ExecuteQueryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteFetchAsAppResponse.toObject = function toObject(message, options) { + ExecuteQueryResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -59524,52 +59831,57 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Converts this ExecuteFetchAsAppResponse to JSON. + * Converts this ExecuteQueryResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse + * @memberof tabletmanagerdata.ExecuteQueryResponse * @instance * @returns {Object.} JSON object */ - ExecuteFetchAsAppResponse.prototype.toJSON = function toJSON() { + ExecuteQueryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteFetchAsAppResponse + * Gets the default type url for ExecuteQueryResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse + * @memberof tabletmanagerdata.ExecuteQueryResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteFetchAsAppResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteQueryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ExecuteFetchAsAppResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ExecuteQueryResponse"; }; - return ExecuteFetchAsAppResponse; + return ExecuteQueryResponse; })(); - tabletmanagerdata.GetUnresolvedTransactionsRequest = (function() { + tabletmanagerdata.ExecuteFetchAsDbaRequest = (function() { /** - * Properties of a GetUnresolvedTransactionsRequest. + * Properties of an ExecuteFetchAsDbaRequest. * @memberof tabletmanagerdata - * @interface IGetUnresolvedTransactionsRequest - * @property {number|Long|null} [abandon_age] GetUnresolvedTransactionsRequest abandon_age + * @interface IExecuteFetchAsDbaRequest + * @property {Uint8Array|null} [query] ExecuteFetchAsDbaRequest query + * @property {string|null} [db_name] ExecuteFetchAsDbaRequest db_name + * @property {number|Long|null} [max_rows] ExecuteFetchAsDbaRequest max_rows + * @property {boolean|null} [disable_binlogs] ExecuteFetchAsDbaRequest disable_binlogs + * @property {boolean|null} [reload_schema] ExecuteFetchAsDbaRequest reload_schema + * @property {boolean|null} [disable_foreign_key_checks] ExecuteFetchAsDbaRequest disable_foreign_key_checks */ /** - * Constructs a new GetUnresolvedTransactionsRequest. + * Constructs a new ExecuteFetchAsDbaRequest. * @memberof tabletmanagerdata - * @classdesc Represents a GetUnresolvedTransactionsRequest. - * @implements IGetUnresolvedTransactionsRequest + * @classdesc Represents an ExecuteFetchAsDbaRequest. + * @implements IExecuteFetchAsDbaRequest * @constructor - * @param {tabletmanagerdata.IGetUnresolvedTransactionsRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IExecuteFetchAsDbaRequest=} [properties] Properties to set */ - function GetUnresolvedTransactionsRequest(properties) { + function ExecuteFetchAsDbaRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59577,75 +59889,145 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * GetUnresolvedTransactionsRequest abandon_age. - * @member {number|Long} abandon_age - * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest + * ExecuteFetchAsDbaRequest query. + * @member {Uint8Array} query + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest * @instance */ - GetUnresolvedTransactionsRequest.prototype.abandon_age = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ExecuteFetchAsDbaRequest.prototype.query = $util.newBuffer([]); /** - * Creates a new GetUnresolvedTransactionsRequest instance using the specified properties. + * ExecuteFetchAsDbaRequest db_name. + * @member {string} db_name + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * @instance + */ + ExecuteFetchAsDbaRequest.prototype.db_name = ""; + + /** + * ExecuteFetchAsDbaRequest max_rows. + * @member {number|Long} max_rows + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * @instance + */ + ExecuteFetchAsDbaRequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * ExecuteFetchAsDbaRequest disable_binlogs. + * @member {boolean} disable_binlogs + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * @instance + */ + ExecuteFetchAsDbaRequest.prototype.disable_binlogs = false; + + /** + * ExecuteFetchAsDbaRequest reload_schema. + * @member {boolean} reload_schema + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * @instance + */ + ExecuteFetchAsDbaRequest.prototype.reload_schema = false; + + /** + * ExecuteFetchAsDbaRequest disable_foreign_key_checks. + * @member {boolean} disable_foreign_key_checks + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest + * @instance + */ + ExecuteFetchAsDbaRequest.prototype.disable_foreign_key_checks = false; + + /** + * Creates a new ExecuteFetchAsDbaRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest * @static - * @param {tabletmanagerdata.IGetUnresolvedTransactionsRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest instance + * @param {tabletmanagerdata.IExecuteFetchAsDbaRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ExecuteFetchAsDbaRequest} ExecuteFetchAsDbaRequest instance */ - GetUnresolvedTransactionsRequest.create = function create(properties) { - return new GetUnresolvedTransactionsRequest(properties); + ExecuteFetchAsDbaRequest.create = function create(properties) { + return new ExecuteFetchAsDbaRequest(properties); }; /** - * Encodes the specified GetUnresolvedTransactionsRequest message. Does not implicitly {@link tabletmanagerdata.GetUnresolvedTransactionsRequest.verify|verify} messages. + * Encodes the specified ExecuteFetchAsDbaRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsDbaRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest * @static - * @param {tabletmanagerdata.IGetUnresolvedTransactionsRequest} message GetUnresolvedTransactionsRequest message or plain object to encode + * @param {tabletmanagerdata.IExecuteFetchAsDbaRequest} message ExecuteFetchAsDbaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetUnresolvedTransactionsRequest.encode = function encode(message, writer) { + ExecuteFetchAsDbaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.abandon_age != null && Object.hasOwnProperty.call(message, "abandon_age")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.abandon_age); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.query); + if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.db_name); + if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.max_rows); + if (message.disable_binlogs != null && Object.hasOwnProperty.call(message, "disable_binlogs")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.disable_binlogs); + if (message.reload_schema != null && Object.hasOwnProperty.call(message, "reload_schema")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reload_schema); + if (message.disable_foreign_key_checks != null && Object.hasOwnProperty.call(message, "disable_foreign_key_checks")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disable_foreign_key_checks); return writer; }; /** - * Encodes the specified GetUnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetUnresolvedTransactionsRequest.verify|verify} messages. + * Encodes the specified ExecuteFetchAsDbaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsDbaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest * @static - * @param {tabletmanagerdata.IGetUnresolvedTransactionsRequest} message GetUnresolvedTransactionsRequest message or plain object to encode + * @param {tabletmanagerdata.IExecuteFetchAsDbaRequest} message ExecuteFetchAsDbaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetUnresolvedTransactionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteFetchAsDbaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer. + * Decodes an ExecuteFetchAsDbaRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest + * @returns {tabletmanagerdata.ExecuteFetchAsDbaRequest} ExecuteFetchAsDbaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetUnresolvedTransactionsRequest.decode = function decode(reader, length) { + ExecuteFetchAsDbaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetUnresolvedTransactionsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteFetchAsDbaRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.abandon_age = reader.int64(); + message.query = reader.bytes(); + break; + } + case 2: { + message.db_name = reader.string(); + break; + } + case 3: { + message.max_rows = reader.uint64(); + break; + } + case 4: { + message.disable_binlogs = reader.bool(); + break; + } + case 5: { + message.reload_schema = reader.bool(); + break; + } + case 6: { + message.disable_foreign_key_checks = reader.bool(); break; } default: @@ -59657,137 +60039,186 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsDbaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest + * @returns {tabletmanagerdata.ExecuteFetchAsDbaRequest} ExecuteFetchAsDbaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetUnresolvedTransactionsRequest.decodeDelimited = function decodeDelimited(reader) { + ExecuteFetchAsDbaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetUnresolvedTransactionsRequest message. + * Verifies an ExecuteFetchAsDbaRequest message. * @function verify - * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetUnresolvedTransactionsRequest.verify = function verify(message) { + ExecuteFetchAsDbaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.abandon_age != null && message.hasOwnProperty("abandon_age")) - if (!$util.isInteger(message.abandon_age) && !(message.abandon_age && $util.isInteger(message.abandon_age.low) && $util.isInteger(message.abandon_age.high))) - return "abandon_age: integer|Long expected"; + if (message.query != null && message.hasOwnProperty("query")) + if (!(message.query && typeof message.query.length === "number" || $util.isString(message.query))) + return "query: buffer expected"; + if (message.db_name != null && message.hasOwnProperty("db_name")) + if (!$util.isString(message.db_name)) + return "db_name: string expected"; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) + return "max_rows: integer|Long expected"; + if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) + if (typeof message.disable_binlogs !== "boolean") + return "disable_binlogs: boolean expected"; + if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) + if (typeof message.reload_schema !== "boolean") + return "reload_schema: boolean expected"; + if (message.disable_foreign_key_checks != null && message.hasOwnProperty("disable_foreign_key_checks")) + if (typeof message.disable_foreign_key_checks !== "boolean") + return "disable_foreign_key_checks: boolean expected"; return null; }; /** - * Creates a GetUnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsDbaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest + * @returns {tabletmanagerdata.ExecuteFetchAsDbaRequest} ExecuteFetchAsDbaRequest */ - GetUnresolvedTransactionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetUnresolvedTransactionsRequest) + ExecuteFetchAsDbaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ExecuteFetchAsDbaRequest) return object; - let message = new $root.tabletmanagerdata.GetUnresolvedTransactionsRequest(); - if (object.abandon_age != null) + let message = new $root.tabletmanagerdata.ExecuteFetchAsDbaRequest(); + if (object.query != null) + if (typeof object.query === "string") + $util.base64.decode(object.query, message.query = $util.newBuffer($util.base64.length(object.query)), 0); + else if (object.query.length >= 0) + message.query = object.query; + if (object.db_name != null) + message.db_name = String(object.db_name); + if (object.max_rows != null) if ($util.Long) - (message.abandon_age = $util.Long.fromValue(object.abandon_age)).unsigned = false; - else if (typeof object.abandon_age === "string") - message.abandon_age = parseInt(object.abandon_age, 10); - else if (typeof object.abandon_age === "number") - message.abandon_age = object.abandon_age; - else if (typeof object.abandon_age === "object") - message.abandon_age = new $util.LongBits(object.abandon_age.low >>> 0, object.abandon_age.high >>> 0).toNumber(); + (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = true; + else if (typeof object.max_rows === "string") + message.max_rows = parseInt(object.max_rows, 10); + else if (typeof object.max_rows === "number") + message.max_rows = object.max_rows; + else if (typeof object.max_rows === "object") + message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(true); + if (object.disable_binlogs != null) + message.disable_binlogs = Boolean(object.disable_binlogs); + if (object.reload_schema != null) + message.reload_schema = Boolean(object.reload_schema); + if (object.disable_foreign_key_checks != null) + message.disable_foreign_key_checks = Boolean(object.disable_foreign_key_checks); return message; }; /** - * Creates a plain object from a GetUnresolvedTransactionsRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteFetchAsDbaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest * @static - * @param {tabletmanagerdata.GetUnresolvedTransactionsRequest} message GetUnresolvedTransactionsRequest + * @param {tabletmanagerdata.ExecuteFetchAsDbaRequest} message ExecuteFetchAsDbaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetUnresolvedTransactionsRequest.toObject = function toObject(message, options) { + ExecuteFetchAsDbaRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) + if (options.defaults) { + if (options.bytes === String) + object.query = ""; + else { + object.query = []; + if (options.bytes !== Array) + object.query = $util.newBuffer(object.query); + } + object.db_name = ""; if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.abandon_age = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + let long = new $util.Long(0, 0, true); + object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.abandon_age = options.longs === String ? "0" : 0; - if (message.abandon_age != null && message.hasOwnProperty("abandon_age")) - if (typeof message.abandon_age === "number") - object.abandon_age = options.longs === String ? String(message.abandon_age) : message.abandon_age; + object.max_rows = options.longs === String ? "0" : 0; + object.disable_binlogs = false; + object.reload_schema = false; + object.disable_foreign_key_checks = false; + } + if (message.query != null && message.hasOwnProperty("query")) + object.query = options.bytes === String ? $util.base64.encode(message.query, 0, message.query.length) : options.bytes === Array ? Array.prototype.slice.call(message.query) : message.query; + if (message.db_name != null && message.hasOwnProperty("db_name")) + object.db_name = message.db_name; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (typeof message.max_rows === "number") + object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; else - object.abandon_age = options.longs === String ? $util.Long.prototype.toString.call(message.abandon_age) : options.longs === Number ? new $util.LongBits(message.abandon_age.low >>> 0, message.abandon_age.high >>> 0).toNumber() : message.abandon_age; + object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber(true) : message.max_rows; + if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) + object.disable_binlogs = message.disable_binlogs; + if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) + object.reload_schema = message.reload_schema; + if (message.disable_foreign_key_checks != null && message.hasOwnProperty("disable_foreign_key_checks")) + object.disable_foreign_key_checks = message.disable_foreign_key_checks; return object; }; /** - * Converts this GetUnresolvedTransactionsRequest to JSON. + * Converts this ExecuteFetchAsDbaRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest * @instance * @returns {Object.} JSON object */ - GetUnresolvedTransactionsRequest.prototype.toJSON = function toJSON() { + ExecuteFetchAsDbaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetUnresolvedTransactionsRequest + * Gets the default type url for ExecuteFetchAsDbaRequest * @function getTypeUrl - * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest + * @memberof tabletmanagerdata.ExecuteFetchAsDbaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetUnresolvedTransactionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteFetchAsDbaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.GetUnresolvedTransactionsRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ExecuteFetchAsDbaRequest"; }; - return GetUnresolvedTransactionsRequest; + return ExecuteFetchAsDbaRequest; })(); - tabletmanagerdata.GetUnresolvedTransactionsResponse = (function() { + tabletmanagerdata.ExecuteFetchAsDbaResponse = (function() { /** - * Properties of a GetUnresolvedTransactionsResponse. + * Properties of an ExecuteFetchAsDbaResponse. * @memberof tabletmanagerdata - * @interface IGetUnresolvedTransactionsResponse - * @property {Array.|null} [transactions] GetUnresolvedTransactionsResponse transactions + * @interface IExecuteFetchAsDbaResponse + * @property {query.IQueryResult|null} [result] ExecuteFetchAsDbaResponse result */ /** - * Constructs a new GetUnresolvedTransactionsResponse. + * Constructs a new ExecuteFetchAsDbaResponse. * @memberof tabletmanagerdata - * @classdesc Represents a GetUnresolvedTransactionsResponse. - * @implements IGetUnresolvedTransactionsResponse + * @classdesc Represents an ExecuteFetchAsDbaResponse. + * @implements IExecuteFetchAsDbaResponse * @constructor - * @param {tabletmanagerdata.IGetUnresolvedTransactionsResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IExecuteFetchAsDbaResponse=} [properties] Properties to set */ - function GetUnresolvedTransactionsResponse(properties) { - this.transactions = []; + function ExecuteFetchAsDbaResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59795,78 +60226,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * GetUnresolvedTransactionsResponse transactions. - * @member {Array.} transactions - * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse + * ExecuteFetchAsDbaResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse * @instance */ - GetUnresolvedTransactionsResponse.prototype.transactions = $util.emptyArray; + ExecuteFetchAsDbaResponse.prototype.result = null; /** - * Creates a new GetUnresolvedTransactionsResponse instance using the specified properties. + * Creates a new ExecuteFetchAsDbaResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse + * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse * @static - * @param {tabletmanagerdata.IGetUnresolvedTransactionsResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse instance + * @param {tabletmanagerdata.IExecuteFetchAsDbaResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ExecuteFetchAsDbaResponse} ExecuteFetchAsDbaResponse instance */ - GetUnresolvedTransactionsResponse.create = function create(properties) { - return new GetUnresolvedTransactionsResponse(properties); + ExecuteFetchAsDbaResponse.create = function create(properties) { + return new ExecuteFetchAsDbaResponse(properties); }; /** - * Encodes the specified GetUnresolvedTransactionsResponse message. Does not implicitly {@link tabletmanagerdata.GetUnresolvedTransactionsResponse.verify|verify} messages. + * Encodes the specified ExecuteFetchAsDbaResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsDbaResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse + * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse * @static - * @param {tabletmanagerdata.IGetUnresolvedTransactionsResponse} message GetUnresolvedTransactionsResponse message or plain object to encode + * @param {tabletmanagerdata.IExecuteFetchAsDbaResponse} message ExecuteFetchAsDbaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetUnresolvedTransactionsResponse.encode = function encode(message, writer) { + ExecuteFetchAsDbaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transactions != null && message.transactions.length) - for (let i = 0; i < message.transactions.length; ++i) - $root.query.TransactionMetadata.encode(message.transactions[i], 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(); return writer; }; /** - * Encodes the specified GetUnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetUnresolvedTransactionsResponse.verify|verify} messages. + * Encodes the specified ExecuteFetchAsDbaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsDbaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse + * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse * @static - * @param {tabletmanagerdata.IGetUnresolvedTransactionsResponse} message GetUnresolvedTransactionsResponse message or plain object to encode + * @param {tabletmanagerdata.IExecuteFetchAsDbaResponse} message ExecuteFetchAsDbaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetUnresolvedTransactionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteFetchAsDbaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer. + * Decodes an ExecuteFetchAsDbaResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse + * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse + * @returns {tabletmanagerdata.ExecuteFetchAsDbaResponse} ExecuteFetchAsDbaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetUnresolvedTransactionsResponse.decode = function decode(reader, length) { + ExecuteFetchAsDbaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetUnresolvedTransactionsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteFetchAsDbaResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.transactions && message.transactions.length)) - message.transactions = []; - message.transactions.push($root.query.TransactionMetadata.decode(reader, reader.uint32())); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; } default: @@ -59878,139 +60306,132 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsDbaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse + * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse + * @returns {tabletmanagerdata.ExecuteFetchAsDbaResponse} ExecuteFetchAsDbaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetUnresolvedTransactionsResponse.decodeDelimited = function decodeDelimited(reader) { + ExecuteFetchAsDbaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetUnresolvedTransactionsResponse message. + * Verifies an ExecuteFetchAsDbaResponse message. * @function verify - * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse + * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetUnresolvedTransactionsResponse.verify = function verify(message) { + ExecuteFetchAsDbaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.transactions != null && message.hasOwnProperty("transactions")) { - if (!Array.isArray(message.transactions)) - return "transactions: array expected"; - for (let i = 0; i < message.transactions.length; ++i) { - let error = $root.query.TransactionMetadata.verify(message.transactions[i]); - if (error) - return "transactions." + error; - } + if (message.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; } return null; }; /** - * Creates a GetUnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsDbaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse + * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse + * @returns {tabletmanagerdata.ExecuteFetchAsDbaResponse} ExecuteFetchAsDbaResponse */ - GetUnresolvedTransactionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetUnresolvedTransactionsResponse) + ExecuteFetchAsDbaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ExecuteFetchAsDbaResponse) return object; - let message = new $root.tabletmanagerdata.GetUnresolvedTransactionsResponse(); - if (object.transactions) { - if (!Array.isArray(object.transactions)) - throw TypeError(".tabletmanagerdata.GetUnresolvedTransactionsResponse.transactions: array expected"); - message.transactions = []; - for (let i = 0; i < object.transactions.length; ++i) { - if (typeof object.transactions[i] !== "object") - throw TypeError(".tabletmanagerdata.GetUnresolvedTransactionsResponse.transactions: object expected"); - message.transactions[i] = $root.query.TransactionMetadata.fromObject(object.transactions[i]); - } + let message = new $root.tabletmanagerdata.ExecuteFetchAsDbaResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".tabletmanagerdata.ExecuteFetchAsDbaResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); } return message; }; /** - * Creates a plain object from a GetUnresolvedTransactionsResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteFetchAsDbaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse + * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse * @static - * @param {tabletmanagerdata.GetUnresolvedTransactionsResponse} message GetUnresolvedTransactionsResponse + * @param {tabletmanagerdata.ExecuteFetchAsDbaResponse} message ExecuteFetchAsDbaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetUnresolvedTransactionsResponse.toObject = function toObject(message, options) { + ExecuteFetchAsDbaResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.transactions = []; - if (message.transactions && message.transactions.length) { - object.transactions = []; - for (let j = 0; j < message.transactions.length; ++j) - object.transactions[j] = $root.query.TransactionMetadata.toObject(message.transactions[j], options); - } + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this GetUnresolvedTransactionsResponse to JSON. + * Converts this ExecuteFetchAsDbaResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse + * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse * @instance * @returns {Object.} JSON object */ - GetUnresolvedTransactionsResponse.prototype.toJSON = function toJSON() { + ExecuteFetchAsDbaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetUnresolvedTransactionsResponse + * Gets the default type url for ExecuteFetchAsDbaResponse * @function getTypeUrl - * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse + * @memberof tabletmanagerdata.ExecuteFetchAsDbaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetUnresolvedTransactionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteFetchAsDbaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.GetUnresolvedTransactionsResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ExecuteFetchAsDbaResponse"; }; - return GetUnresolvedTransactionsResponse; + return ExecuteFetchAsDbaResponse; })(); - tabletmanagerdata.ReadTransactionRequest = (function() { + tabletmanagerdata.ExecuteMultiFetchAsDbaRequest = (function() { /** - * Properties of a ReadTransactionRequest. + * Properties of an ExecuteMultiFetchAsDbaRequest. * @memberof tabletmanagerdata - * @interface IReadTransactionRequest - * @property {string|null} [dtid] ReadTransactionRequest dtid + * @interface IExecuteMultiFetchAsDbaRequest + * @property {Uint8Array|null} [sql] ExecuteMultiFetchAsDbaRequest sql + * @property {string|null} [db_name] ExecuteMultiFetchAsDbaRequest db_name + * @property {number|Long|null} [max_rows] ExecuteMultiFetchAsDbaRequest max_rows + * @property {boolean|null} [disable_binlogs] ExecuteMultiFetchAsDbaRequest disable_binlogs + * @property {boolean|null} [reload_schema] ExecuteMultiFetchAsDbaRequest reload_schema + * @property {boolean|null} [disable_foreign_key_checks] ExecuteMultiFetchAsDbaRequest disable_foreign_key_checks */ /** - * Constructs a new ReadTransactionRequest. + * Constructs a new ExecuteMultiFetchAsDbaRequest. * @memberof tabletmanagerdata - * @classdesc Represents a ReadTransactionRequest. - * @implements IReadTransactionRequest + * @classdesc Represents an ExecuteMultiFetchAsDbaRequest. + * @implements IExecuteMultiFetchAsDbaRequest * @constructor - * @param {tabletmanagerdata.IReadTransactionRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaRequest=} [properties] Properties to set */ - function ReadTransactionRequest(properties) { + function ExecuteMultiFetchAsDbaRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60018,75 +60439,145 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ReadTransactionRequest dtid. - * @member {string} dtid - * @memberof tabletmanagerdata.ReadTransactionRequest + * ExecuteMultiFetchAsDbaRequest sql. + * @member {Uint8Array} sql + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest * @instance */ - ReadTransactionRequest.prototype.dtid = ""; + ExecuteMultiFetchAsDbaRequest.prototype.sql = $util.newBuffer([]); /** - * Creates a new ReadTransactionRequest instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.ReadTransactionRequest - * @static - * @param {tabletmanagerdata.IReadTransactionRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ReadTransactionRequest} ReadTransactionRequest instance + * ExecuteMultiFetchAsDbaRequest db_name. + * @member {string} db_name + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @instance */ - ReadTransactionRequest.create = function create(properties) { - return new ReadTransactionRequest(properties); - }; + ExecuteMultiFetchAsDbaRequest.prototype.db_name = ""; /** - * Encodes the specified ReadTransactionRequest message. Does not implicitly {@link tabletmanagerdata.ReadTransactionRequest.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.ReadTransactionRequest - * @static - * @param {tabletmanagerdata.IReadTransactionRequest} message ReadTransactionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ExecuteMultiFetchAsDbaRequest max_rows. + * @member {number|Long} max_rows + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @instance */ - ReadTransactionRequest.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); - return writer; - }; + ExecuteMultiFetchAsDbaRequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified ReadTransactionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadTransactionRequest.verify|verify} messages. + * ExecuteMultiFetchAsDbaRequest disable_binlogs. + * @member {boolean} disable_binlogs + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @instance + */ + ExecuteMultiFetchAsDbaRequest.prototype.disable_binlogs = false; + + /** + * ExecuteMultiFetchAsDbaRequest reload_schema. + * @member {boolean} reload_schema + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @instance + */ + ExecuteMultiFetchAsDbaRequest.prototype.reload_schema = false; + + /** + * ExecuteMultiFetchAsDbaRequest disable_foreign_key_checks. + * @member {boolean} disable_foreign_key_checks + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @instance + */ + ExecuteMultiFetchAsDbaRequest.prototype.disable_foreign_key_checks = false; + + /** + * Creates a new ExecuteMultiFetchAsDbaRequest instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @static + * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaRequest} ExecuteMultiFetchAsDbaRequest instance + */ + ExecuteMultiFetchAsDbaRequest.create = function create(properties) { + return new ExecuteMultiFetchAsDbaRequest(properties); + }; + + /** + * Encodes the specified ExecuteMultiFetchAsDbaRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteMultiFetchAsDbaRequest.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest + * @static + * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaRequest} message ExecuteMultiFetchAsDbaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteMultiFetchAsDbaRequest.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).bytes(message.sql); + if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.db_name); + if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.max_rows); + if (message.disable_binlogs != null && Object.hasOwnProperty.call(message, "disable_binlogs")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.disable_binlogs); + if (message.reload_schema != null && Object.hasOwnProperty.call(message, "reload_schema")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reload_schema); + if (message.disable_foreign_key_checks != null && Object.hasOwnProperty.call(message, "disable_foreign_key_checks")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disable_foreign_key_checks); + return writer; + }; + + /** + * Encodes the specified ExecuteMultiFetchAsDbaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteMultiFetchAsDbaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReadTransactionRequest + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest * @static - * @param {tabletmanagerdata.IReadTransactionRequest} message ReadTransactionRequest message or plain object to encode + * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaRequest} message ExecuteMultiFetchAsDbaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteMultiFetchAsDbaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadTransactionRequest message from the specified reader or buffer. + * Decodes an ExecuteMultiFetchAsDbaRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReadTransactionRequest + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReadTransactionRequest} ReadTransactionRequest + * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaRequest} ExecuteMultiFetchAsDbaRequest * @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) { + ExecuteMultiFetchAsDbaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadTransactionRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteMultiFetchAsDbaRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dtid = reader.string(); + message.sql = reader.bytes(); + break; + } + case 2: { + message.db_name = reader.string(); + break; + } + case 3: { + message.max_rows = reader.uint64(); + break; + } + case 4: { + message.disable_binlogs = reader.bool(); + break; + } + case 5: { + message.reload_schema = reader.bool(); + break; + } + case 6: { + message.disable_foreign_key_checks = reader.bool(); break; } default: @@ -60098,122 +60589,187 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReadTransactionRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteMultiFetchAsDbaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReadTransactionRequest + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReadTransactionRequest} ReadTransactionRequest + * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaRequest} ExecuteMultiFetchAsDbaRequest * @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) { + ExecuteMultiFetchAsDbaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadTransactionRequest message. + * Verifies an ExecuteMultiFetchAsDbaRequest message. * @function verify - * @memberof tabletmanagerdata.ReadTransactionRequest + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest * @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) { + ExecuteMultiFetchAsDbaRequest.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.sql != null && message.hasOwnProperty("sql")) + if (!(message.sql && typeof message.sql.length === "number" || $util.isString(message.sql))) + return "sql: buffer expected"; + if (message.db_name != null && message.hasOwnProperty("db_name")) + if (!$util.isString(message.db_name)) + return "db_name: string expected"; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) + return "max_rows: integer|Long expected"; + if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) + if (typeof message.disable_binlogs !== "boolean") + return "disable_binlogs: boolean expected"; + if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) + if (typeof message.reload_schema !== "boolean") + return "reload_schema: boolean expected"; + if (message.disable_foreign_key_checks != null && message.hasOwnProperty("disable_foreign_key_checks")) + if (typeof message.disable_foreign_key_checks !== "boolean") + return "disable_foreign_key_checks: boolean expected"; return null; }; /** - * Creates a ReadTransactionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteMultiFetchAsDbaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ReadTransactionRequest + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReadTransactionRequest} ReadTransactionRequest + * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaRequest} ExecuteMultiFetchAsDbaRequest */ - ReadTransactionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReadTransactionRequest) + ExecuteMultiFetchAsDbaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ExecuteMultiFetchAsDbaRequest) return object; - let message = new $root.tabletmanagerdata.ReadTransactionRequest(); - if (object.dtid != null) - message.dtid = String(object.dtid); + let message = new $root.tabletmanagerdata.ExecuteMultiFetchAsDbaRequest(); + 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 >= 0) + message.sql = object.sql; + if (object.db_name != null) + message.db_name = String(object.db_name); + if (object.max_rows != null) + if ($util.Long) + (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = true; + else if (typeof object.max_rows === "string") + message.max_rows = parseInt(object.max_rows, 10); + else if (typeof object.max_rows === "number") + message.max_rows = object.max_rows; + else if (typeof object.max_rows === "object") + message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(true); + if (object.disable_binlogs != null) + message.disable_binlogs = Boolean(object.disable_binlogs); + if (object.reload_schema != null) + message.reload_schema = Boolean(object.reload_schema); + if (object.disable_foreign_key_checks != null) + message.disable_foreign_key_checks = Boolean(object.disable_foreign_key_checks); return message; }; /** - * Creates a plain object from a ReadTransactionRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteMultiFetchAsDbaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ReadTransactionRequest + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest * @static - * @param {tabletmanagerdata.ReadTransactionRequest} message ReadTransactionRequest + * @param {tabletmanagerdata.ExecuteMultiFetchAsDbaRequest} message ExecuteMultiFetchAsDbaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadTransactionRequest.toObject = function toObject(message, options) { + ExecuteMultiFetchAsDbaRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.dtid = ""; - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; + if (options.defaults) { + if (options.bytes === String) + object.sql = ""; + else { + object.sql = []; + if (options.bytes !== Array) + object.sql = $util.newBuffer(object.sql); + } + object.db_name = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_rows = options.longs === String ? "0" : 0; + object.disable_binlogs = false; + object.reload_schema = false; + object.disable_foreign_key_checks = false; + } + if (message.sql != null && message.hasOwnProperty("sql")) + object.sql = options.bytes === String ? $util.base64.encode(message.sql, 0, message.sql.length) : options.bytes === Array ? Array.prototype.slice.call(message.sql) : message.sql; + if (message.db_name != null && message.hasOwnProperty("db_name")) + object.db_name = message.db_name; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (typeof message.max_rows === "number") + object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; + else + object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber(true) : message.max_rows; + if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) + object.disable_binlogs = message.disable_binlogs; + if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) + object.reload_schema = message.reload_schema; + if (message.disable_foreign_key_checks != null && message.hasOwnProperty("disable_foreign_key_checks")) + object.disable_foreign_key_checks = message.disable_foreign_key_checks; return object; }; /** - * Converts this ReadTransactionRequest to JSON. + * Converts this ExecuteMultiFetchAsDbaRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReadTransactionRequest + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest * @instance * @returns {Object.} JSON object */ - ReadTransactionRequest.prototype.toJSON = function toJSON() { + ExecuteMultiFetchAsDbaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadTransactionRequest + * Gets the default type url for ExecuteMultiFetchAsDbaRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ReadTransactionRequest + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadTransactionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteMultiFetchAsDbaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReadTransactionRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ExecuteMultiFetchAsDbaRequest"; }; - return ReadTransactionRequest; + return ExecuteMultiFetchAsDbaRequest; })(); - tabletmanagerdata.ReadTransactionResponse = (function() { + tabletmanagerdata.ExecuteMultiFetchAsDbaResponse = (function() { /** - * Properties of a ReadTransactionResponse. + * Properties of an ExecuteMultiFetchAsDbaResponse. * @memberof tabletmanagerdata - * @interface IReadTransactionResponse - * @property {query.ITransactionMetadata|null} [transaction] ReadTransactionResponse transaction + * @interface IExecuteMultiFetchAsDbaResponse + * @property {Array.|null} [results] ExecuteMultiFetchAsDbaResponse results */ /** - * Constructs a new ReadTransactionResponse. + * Constructs a new ExecuteMultiFetchAsDbaResponse. * @memberof tabletmanagerdata - * @classdesc Represents a ReadTransactionResponse. - * @implements IReadTransactionResponse + * @classdesc Represents an ExecuteMultiFetchAsDbaResponse. + * @implements IExecuteMultiFetchAsDbaResponse * @constructor - * @param {tabletmanagerdata.IReadTransactionResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaResponse=} [properties] Properties to set */ - function ReadTransactionResponse(properties) { + function ExecuteMultiFetchAsDbaResponse(properties) { + this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60221,75 +60777,78 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ReadTransactionResponse transaction. - * @member {query.ITransactionMetadata|null|undefined} transaction - * @memberof tabletmanagerdata.ReadTransactionResponse + * ExecuteMultiFetchAsDbaResponse results. + * @member {Array.} results + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse * @instance */ - ReadTransactionResponse.prototype.transaction = null; + ExecuteMultiFetchAsDbaResponse.prototype.results = $util.emptyArray; /** - * Creates a new ReadTransactionResponse instance using the specified properties. + * Creates a new ExecuteMultiFetchAsDbaResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReadTransactionResponse + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse * @static - * @param {tabletmanagerdata.IReadTransactionResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ReadTransactionResponse} ReadTransactionResponse instance + * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaResponse} ExecuteMultiFetchAsDbaResponse instance */ - ReadTransactionResponse.create = function create(properties) { - return new ReadTransactionResponse(properties); + ExecuteMultiFetchAsDbaResponse.create = function create(properties) { + return new ExecuteMultiFetchAsDbaResponse(properties); }; /** - * Encodes the specified ReadTransactionResponse message. Does not implicitly {@link tabletmanagerdata.ReadTransactionResponse.verify|verify} messages. + * Encodes the specified ExecuteMultiFetchAsDbaResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteMultiFetchAsDbaResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReadTransactionResponse + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse * @static - * @param {tabletmanagerdata.IReadTransactionResponse} message ReadTransactionResponse message or plain object to encode + * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaResponse} message ExecuteMultiFetchAsDbaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadTransactionResponse.encode = function encode(message, writer) { + ExecuteMultiFetchAsDbaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transaction != null && Object.hasOwnProperty.call(message, "transaction")) - $root.query.TransactionMetadata.encode(message.transaction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.results != null && message.results.length) + for (let i = 0; i < message.results.length; ++i) + $root.query.QueryResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadTransactionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadTransactionResponse.verify|verify} messages. + * Encodes the specified ExecuteMultiFetchAsDbaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteMultiFetchAsDbaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReadTransactionResponse + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse * @static - * @param {tabletmanagerdata.IReadTransactionResponse} message ReadTransactionResponse message or plain object to encode + * @param {tabletmanagerdata.IExecuteMultiFetchAsDbaResponse} message ExecuteMultiFetchAsDbaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteMultiFetchAsDbaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadTransactionResponse message from the specified reader or buffer. + * Decodes an ExecuteMultiFetchAsDbaResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReadTransactionResponse + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReadTransactionResponse} ReadTransactionResponse + * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaResponse} ExecuteMultiFetchAsDbaResponse * @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) { + ExecuteMultiFetchAsDbaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadTransactionResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteMultiFetchAsDbaResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.transaction = $root.query.TransactionMetadata.decode(reader, reader.uint32()); + if (!(message.results && message.results.length)) + message.results = []; + message.results.push($root.query.QueryResult.decode(reader, reader.uint32())); break; } default: @@ -60301,127 +60860,142 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReadTransactionResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteMultiFetchAsDbaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReadTransactionResponse + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReadTransactionResponse} ReadTransactionResponse + * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaResponse} ExecuteMultiFetchAsDbaResponse * @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) { + ExecuteMultiFetchAsDbaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadTransactionResponse message. + * Verifies an ExecuteMultiFetchAsDbaResponse message. * @function verify - * @memberof tabletmanagerdata.ReadTransactionResponse + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse * @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) { + ExecuteMultiFetchAsDbaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.transaction != null && message.hasOwnProperty("transaction")) { - let error = $root.query.TransactionMetadata.verify(message.transaction); - if (error) - return "transaction." + error; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (let i = 0; i < message.results.length; ++i) { + let error = $root.query.QueryResult.verify(message.results[i]); + if (error) + return "results." + error; + } } return null; }; /** - * Creates a ReadTransactionResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteMultiFetchAsDbaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ReadTransactionResponse + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReadTransactionResponse} ReadTransactionResponse + * @returns {tabletmanagerdata.ExecuteMultiFetchAsDbaResponse} ExecuteMultiFetchAsDbaResponse */ - ReadTransactionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReadTransactionResponse) + ExecuteMultiFetchAsDbaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ExecuteMultiFetchAsDbaResponse) return object; - let message = new $root.tabletmanagerdata.ReadTransactionResponse(); - if (object.transaction != null) { - if (typeof object.transaction !== "object") - throw TypeError(".tabletmanagerdata.ReadTransactionResponse.transaction: object expected"); - message.transaction = $root.query.TransactionMetadata.fromObject(object.transaction); + let message = new $root.tabletmanagerdata.ExecuteMultiFetchAsDbaResponse(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".tabletmanagerdata.ExecuteMultiFetchAsDbaResponse.results: array expected"); + message.results = []; + for (let i = 0; i < object.results.length; ++i) { + if (typeof object.results[i] !== "object") + throw TypeError(".tabletmanagerdata.ExecuteMultiFetchAsDbaResponse.results: object expected"); + message.results[i] = $root.query.QueryResult.fromObject(object.results[i]); + } } return message; }; /** - * Creates a plain object from a ReadTransactionResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteMultiFetchAsDbaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ReadTransactionResponse + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse * @static - * @param {tabletmanagerdata.ReadTransactionResponse} message ReadTransactionResponse + * @param {tabletmanagerdata.ExecuteMultiFetchAsDbaResponse} message ExecuteMultiFetchAsDbaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadTransactionResponse.toObject = function toObject(message, options) { + ExecuteMultiFetchAsDbaResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.transaction = null; - if (message.transaction != null && message.hasOwnProperty("transaction")) - object.transaction = $root.query.TransactionMetadata.toObject(message.transaction, options); + if (options.arrays || options.defaults) + object.results = []; + if (message.results && message.results.length) { + object.results = []; + for (let j = 0; j < message.results.length; ++j) + object.results[j] = $root.query.QueryResult.toObject(message.results[j], options); + } return object; }; /** - * Converts this ReadTransactionResponse to JSON. + * Converts this ExecuteMultiFetchAsDbaResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReadTransactionResponse + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse * @instance * @returns {Object.} JSON object */ - ReadTransactionResponse.prototype.toJSON = function toJSON() { + ExecuteMultiFetchAsDbaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadTransactionResponse + * Gets the default type url for ExecuteMultiFetchAsDbaResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ReadTransactionResponse + * @memberof tabletmanagerdata.ExecuteMultiFetchAsDbaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadTransactionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteMultiFetchAsDbaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReadTransactionResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ExecuteMultiFetchAsDbaResponse"; }; - return ReadTransactionResponse; + return ExecuteMultiFetchAsDbaResponse; })(); - tabletmanagerdata.GetTransactionInfoRequest = (function() { + tabletmanagerdata.ExecuteFetchAsAllPrivsRequest = (function() { /** - * Properties of a GetTransactionInfoRequest. + * Properties of an ExecuteFetchAsAllPrivsRequest. * @memberof tabletmanagerdata - * @interface IGetTransactionInfoRequest - * @property {string|null} [dtid] GetTransactionInfoRequest dtid + * @interface IExecuteFetchAsAllPrivsRequest + * @property {Uint8Array|null} [query] ExecuteFetchAsAllPrivsRequest query + * @property {string|null} [db_name] ExecuteFetchAsAllPrivsRequest db_name + * @property {number|Long|null} [max_rows] ExecuteFetchAsAllPrivsRequest max_rows + * @property {boolean|null} [reload_schema] ExecuteFetchAsAllPrivsRequest reload_schema */ /** - * Constructs a new GetTransactionInfoRequest. + * Constructs a new ExecuteFetchAsAllPrivsRequest. * @memberof tabletmanagerdata - * @classdesc Represents a GetTransactionInfoRequest. - * @implements IGetTransactionInfoRequest + * @classdesc Represents an ExecuteFetchAsAllPrivsRequest. + * @implements IExecuteFetchAsAllPrivsRequest * @constructor - * @param {tabletmanagerdata.IGetTransactionInfoRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsRequest=} [properties] Properties to set */ - function GetTransactionInfoRequest(properties) { + function ExecuteFetchAsAllPrivsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60429,75 +61003,117 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * GetTransactionInfoRequest dtid. - * @member {string} dtid - * @memberof tabletmanagerdata.GetTransactionInfoRequest + * ExecuteFetchAsAllPrivsRequest query. + * @member {Uint8Array} query + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest * @instance */ - GetTransactionInfoRequest.prototype.dtid = ""; + ExecuteFetchAsAllPrivsRequest.prototype.query = $util.newBuffer([]); /** - * Creates a new GetTransactionInfoRequest instance using the specified properties. + * ExecuteFetchAsAllPrivsRequest db_name. + * @member {string} db_name + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + * @instance + */ + ExecuteFetchAsAllPrivsRequest.prototype.db_name = ""; + + /** + * ExecuteFetchAsAllPrivsRequest max_rows. + * @member {number|Long} max_rows + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + * @instance + */ + ExecuteFetchAsAllPrivsRequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * ExecuteFetchAsAllPrivsRequest reload_schema. + * @member {boolean} reload_schema + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + * @instance + */ + ExecuteFetchAsAllPrivsRequest.prototype.reload_schema = false; + + /** + * Creates a new ExecuteFetchAsAllPrivsRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetTransactionInfoRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest * @static - * @param {tabletmanagerdata.IGetTransactionInfoRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.GetTransactionInfoRequest} GetTransactionInfoRequest instance + * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsRequest} ExecuteFetchAsAllPrivsRequest instance */ - GetTransactionInfoRequest.create = function create(properties) { - return new GetTransactionInfoRequest(properties); + ExecuteFetchAsAllPrivsRequest.create = function create(properties) { + return new ExecuteFetchAsAllPrivsRequest(properties); }; /** - * Encodes the specified GetTransactionInfoRequest message. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoRequest.verify|verify} messages. + * Encodes the specified ExecuteFetchAsAllPrivsRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetTransactionInfoRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest * @static - * @param {tabletmanagerdata.IGetTransactionInfoRequest} message GetTransactionInfoRequest message or plain object to encode + * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsRequest} message ExecuteFetchAsAllPrivsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTransactionInfoRequest.encode = function encode(message, writer) { + ExecuteFetchAsAllPrivsRequest.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.query != null && Object.hasOwnProperty.call(message, "query")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.query); + if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.db_name); + if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.max_rows); + if (message.reload_schema != null && Object.hasOwnProperty.call(message, "reload_schema")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.reload_schema); return writer; }; /** - * Encodes the specified GetTransactionInfoRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoRequest.verify|verify} messages. + * Encodes the specified ExecuteFetchAsAllPrivsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetTransactionInfoRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest * @static - * @param {tabletmanagerdata.IGetTransactionInfoRequest} message GetTransactionInfoRequest message or plain object to encode + * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsRequest} message ExecuteFetchAsAllPrivsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTransactionInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteFetchAsAllPrivsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTransactionInfoRequest message from the specified reader or buffer. + * Decodes an ExecuteFetchAsAllPrivsRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetTransactionInfoRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetTransactionInfoRequest} GetTransactionInfoRequest + * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsRequest} ExecuteFetchAsAllPrivsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTransactionInfoRequest.decode = function decode(reader, length) { + ExecuteFetchAsAllPrivsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetTransactionInfoRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteFetchAsAllPrivsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dtid = reader.string(); + message.query = reader.bytes(); + break; + } + case 2: { + message.db_name = reader.string(); + break; + } + case 3: { + message.max_rows = reader.uint64(); + break; + } + case 4: { + message.reload_schema = reader.bool(); break; } default: @@ -60509,126 +61125,170 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a GetTransactionInfoRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsAllPrivsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.GetTransactionInfoRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetTransactionInfoRequest} GetTransactionInfoRequest + * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsRequest} ExecuteFetchAsAllPrivsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTransactionInfoRequest.decodeDelimited = function decodeDelimited(reader) { + ExecuteFetchAsAllPrivsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTransactionInfoRequest message. + * Verifies an ExecuteFetchAsAllPrivsRequest message. * @function verify - * @memberof tabletmanagerdata.GetTransactionInfoRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTransactionInfoRequest.verify = function verify(message) { + ExecuteFetchAsAllPrivsRequest.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.query != null && message.hasOwnProperty("query")) + if (!(message.query && typeof message.query.length === "number" || $util.isString(message.query))) + return "query: buffer expected"; + if (message.db_name != null && message.hasOwnProperty("db_name")) + if (!$util.isString(message.db_name)) + return "db_name: string expected"; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) + return "max_rows: integer|Long expected"; + if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) + if (typeof message.reload_schema !== "boolean") + return "reload_schema: boolean expected"; return null; }; /** - * Creates a GetTransactionInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsAllPrivsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.GetTransactionInfoRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetTransactionInfoRequest} GetTransactionInfoRequest + * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsRequest} ExecuteFetchAsAllPrivsRequest */ - GetTransactionInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetTransactionInfoRequest) + ExecuteFetchAsAllPrivsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ExecuteFetchAsAllPrivsRequest) return object; - let message = new $root.tabletmanagerdata.GetTransactionInfoRequest(); - if (object.dtid != null) - message.dtid = String(object.dtid); + let message = new $root.tabletmanagerdata.ExecuteFetchAsAllPrivsRequest(); + if (object.query != null) + if (typeof object.query === "string") + $util.base64.decode(object.query, message.query = $util.newBuffer($util.base64.length(object.query)), 0); + else if (object.query.length >= 0) + message.query = object.query; + if (object.db_name != null) + message.db_name = String(object.db_name); + if (object.max_rows != null) + if ($util.Long) + (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = true; + else if (typeof object.max_rows === "string") + message.max_rows = parseInt(object.max_rows, 10); + else if (typeof object.max_rows === "number") + message.max_rows = object.max_rows; + else if (typeof object.max_rows === "object") + message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(true); + if (object.reload_schema != null) + message.reload_schema = Boolean(object.reload_schema); return message; }; /** - * Creates a plain object from a GetTransactionInfoRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteFetchAsAllPrivsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.GetTransactionInfoRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest * @static - * @param {tabletmanagerdata.GetTransactionInfoRequest} message GetTransactionInfoRequest + * @param {tabletmanagerdata.ExecuteFetchAsAllPrivsRequest} message ExecuteFetchAsAllPrivsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTransactionInfoRequest.toObject = function toObject(message, options) { + ExecuteFetchAsAllPrivsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.dtid = ""; - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; + if (options.defaults) { + if (options.bytes === String) + object.query = ""; + else { + object.query = []; + if (options.bytes !== Array) + object.query = $util.newBuffer(object.query); + } + object.db_name = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_rows = options.longs === String ? "0" : 0; + object.reload_schema = false; + } + if (message.query != null && message.hasOwnProperty("query")) + object.query = options.bytes === String ? $util.base64.encode(message.query, 0, message.query.length) : options.bytes === Array ? Array.prototype.slice.call(message.query) : message.query; + if (message.db_name != null && message.hasOwnProperty("db_name")) + object.db_name = message.db_name; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (typeof message.max_rows === "number") + object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; + else + object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber(true) : message.max_rows; + if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) + object.reload_schema = message.reload_schema; return object; }; /** - * Converts this GetTransactionInfoRequest to JSON. + * Converts this ExecuteFetchAsAllPrivsRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetTransactionInfoRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest * @instance * @returns {Object.} JSON object */ - GetTransactionInfoRequest.prototype.toJSON = function toJSON() { + ExecuteFetchAsAllPrivsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetTransactionInfoRequest + * Gets the default type url for ExecuteFetchAsAllPrivsRequest * @function getTypeUrl - * @memberof tabletmanagerdata.GetTransactionInfoRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetTransactionInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteFetchAsAllPrivsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.GetTransactionInfoRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ExecuteFetchAsAllPrivsRequest"; }; - return GetTransactionInfoRequest; + return ExecuteFetchAsAllPrivsRequest; })(); - tabletmanagerdata.GetTransactionInfoResponse = (function() { + tabletmanagerdata.ExecuteFetchAsAllPrivsResponse = (function() { /** - * Properties of a GetTransactionInfoResponse. + * Properties of an ExecuteFetchAsAllPrivsResponse. * @memberof tabletmanagerdata - * @interface IGetTransactionInfoResponse - * @property {string|null} [state] GetTransactionInfoResponse state - * @property {string|null} [message] GetTransactionInfoResponse message - * @property {number|Long|null} [time_created] GetTransactionInfoResponse time_created - * @property {Array.|null} [statements] GetTransactionInfoResponse statements + * @interface IExecuteFetchAsAllPrivsResponse + * @property {query.IQueryResult|null} [result] ExecuteFetchAsAllPrivsResponse result */ /** - * Constructs a new GetTransactionInfoResponse. + * Constructs a new ExecuteFetchAsAllPrivsResponse. * @memberof tabletmanagerdata - * @classdesc Represents a GetTransactionInfoResponse. - * @implements IGetTransactionInfoResponse + * @classdesc Represents an ExecuteFetchAsAllPrivsResponse. + * @implements IExecuteFetchAsAllPrivsResponse * @constructor - * @param {tabletmanagerdata.IGetTransactionInfoResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsResponse=} [properties] Properties to set */ - function GetTransactionInfoResponse(properties) { - this.statements = []; + function ExecuteFetchAsAllPrivsResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60636,120 +61296,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * GetTransactionInfoResponse state. - * @member {string} state - * @memberof tabletmanagerdata.GetTransactionInfoResponse - * @instance - */ - GetTransactionInfoResponse.prototype.state = ""; - - /** - * GetTransactionInfoResponse message. - * @member {string} message - * @memberof tabletmanagerdata.GetTransactionInfoResponse - * @instance - */ - GetTransactionInfoResponse.prototype.message = ""; - - /** - * GetTransactionInfoResponse time_created. - * @member {number|Long} time_created - * @memberof tabletmanagerdata.GetTransactionInfoResponse - * @instance - */ - GetTransactionInfoResponse.prototype.time_created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * GetTransactionInfoResponse statements. - * @member {Array.} statements - * @memberof tabletmanagerdata.GetTransactionInfoResponse + * ExecuteFetchAsAllPrivsResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse * @instance */ - GetTransactionInfoResponse.prototype.statements = $util.emptyArray; + ExecuteFetchAsAllPrivsResponse.prototype.result = null; /** - * Creates a new GetTransactionInfoResponse instance using the specified properties. + * Creates a new ExecuteFetchAsAllPrivsResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetTransactionInfoResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse * @static - * @param {tabletmanagerdata.IGetTransactionInfoResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.GetTransactionInfoResponse} GetTransactionInfoResponse instance + * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsResponse} ExecuteFetchAsAllPrivsResponse instance */ - GetTransactionInfoResponse.create = function create(properties) { - return new GetTransactionInfoResponse(properties); + ExecuteFetchAsAllPrivsResponse.create = function create(properties) { + return new ExecuteFetchAsAllPrivsResponse(properties); }; /** - * Encodes the specified GetTransactionInfoResponse message. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoResponse.verify|verify} messages. + * Encodes the specified ExecuteFetchAsAllPrivsResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetTransactionInfoResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse * @static - * @param {tabletmanagerdata.IGetTransactionInfoResponse} message GetTransactionInfoResponse message or plain object to encode + * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsResponse} message ExecuteFetchAsAllPrivsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTransactionInfoResponse.encode = function encode(message, writer) { + ExecuteFetchAsAllPrivsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.state); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.time_created != null && Object.hasOwnProperty.call(message, "time_created")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time_created); - if (message.statements != null && message.statements.length) - for (let i = 0; i < message.statements.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.statements[i]); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTransactionInfoResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoResponse.verify|verify} messages. + * Encodes the specified ExecuteFetchAsAllPrivsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAllPrivsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetTransactionInfoResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse * @static - * @param {tabletmanagerdata.IGetTransactionInfoResponse} message GetTransactionInfoResponse message or plain object to encode + * @param {tabletmanagerdata.IExecuteFetchAsAllPrivsResponse} message ExecuteFetchAsAllPrivsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTransactionInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteFetchAsAllPrivsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTransactionInfoResponse message from the specified reader or buffer. + * Decodes an ExecuteFetchAsAllPrivsResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetTransactionInfoResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetTransactionInfoResponse} GetTransactionInfoResponse + * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsResponse} ExecuteFetchAsAllPrivsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTransactionInfoResponse.decode = function decode(reader, length) { + ExecuteFetchAsAllPrivsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetTransactionInfoResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteFetchAsAllPrivsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.state = reader.string(); - break; - } - case 2: { - message.message = reader.string(); - break; - } - case 3: { - message.time_created = reader.int64(); - break; - } - case 4: { - if (!(message.statements && message.statements.length)) - message.statements = []; - message.statements.push(reader.string()); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; } default: @@ -60761,175 +61376,128 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a GetTransactionInfoResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsAllPrivsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.GetTransactionInfoResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetTransactionInfoResponse} GetTransactionInfoResponse + * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsResponse} ExecuteFetchAsAllPrivsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTransactionInfoResponse.decodeDelimited = function decodeDelimited(reader) { + ExecuteFetchAsAllPrivsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTransactionInfoResponse message. + * Verifies an ExecuteFetchAsAllPrivsResponse message. * @function verify - * @memberof tabletmanagerdata.GetTransactionInfoResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTransactionInfoResponse.verify = function verify(message) { + ExecuteFetchAsAllPrivsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - if (!$util.isString(message.state)) - return "state: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - 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.statements != null && message.hasOwnProperty("statements")) { - if (!Array.isArray(message.statements)) - return "statements: array expected"; - for (let i = 0; i < message.statements.length; ++i) - if (!$util.isString(message.statements[i])) - return "statements: string[] expected"; + if (message.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; } return null; }; /** - * Creates a GetTransactionInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsAllPrivsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.GetTransactionInfoResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetTransactionInfoResponse} GetTransactionInfoResponse + * @returns {tabletmanagerdata.ExecuteFetchAsAllPrivsResponse} ExecuteFetchAsAllPrivsResponse */ - GetTransactionInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetTransactionInfoResponse) + ExecuteFetchAsAllPrivsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ExecuteFetchAsAllPrivsResponse) return object; - let message = new $root.tabletmanagerdata.GetTransactionInfoResponse(); - if (object.state != null) - message.state = String(object.state); - if (object.message != null) - message.message = String(object.message); - 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.statements) { - if (!Array.isArray(object.statements)) - throw TypeError(".tabletmanagerdata.GetTransactionInfoResponse.statements: array expected"); - message.statements = []; - for (let i = 0; i < object.statements.length; ++i) - message.statements[i] = String(object.statements[i]); + let message = new $root.tabletmanagerdata.ExecuteFetchAsAllPrivsResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".tabletmanagerdata.ExecuteFetchAsAllPrivsResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); } return message; }; /** - * Creates a plain object from a GetTransactionInfoResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteFetchAsAllPrivsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.GetTransactionInfoResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse * @static - * @param {tabletmanagerdata.GetTransactionInfoResponse} message GetTransactionInfoResponse + * @param {tabletmanagerdata.ExecuteFetchAsAllPrivsResponse} message ExecuteFetchAsAllPrivsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTransactionInfoResponse.toObject = function toObject(message, options) { + ExecuteFetchAsAllPrivsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.statements = []; - if (options.defaults) { - object.state = ""; - object.message = ""; - if ($util.Long) { - let 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.state != null && message.hasOwnProperty("state")) - object.state = message.state; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - 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.statements && message.statements.length) { - object.statements = []; - for (let j = 0; j < message.statements.length; ++j) - object.statements[j] = message.statements[j]; - } + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this GetTransactionInfoResponse to JSON. + * Converts this ExecuteFetchAsAllPrivsResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetTransactionInfoResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse * @instance * @returns {Object.} JSON object */ - GetTransactionInfoResponse.prototype.toJSON = function toJSON() { + ExecuteFetchAsAllPrivsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetTransactionInfoResponse + * Gets the default type url for ExecuteFetchAsAllPrivsResponse * @function getTypeUrl - * @memberof tabletmanagerdata.GetTransactionInfoResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAllPrivsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetTransactionInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteFetchAsAllPrivsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.GetTransactionInfoResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ExecuteFetchAsAllPrivsResponse"; }; - return GetTransactionInfoResponse; + return ExecuteFetchAsAllPrivsResponse; })(); - tabletmanagerdata.ConcludeTransactionRequest = (function() { + tabletmanagerdata.ExecuteFetchAsAppRequest = (function() { /** - * Properties of a ConcludeTransactionRequest. + * Properties of an ExecuteFetchAsAppRequest. * @memberof tabletmanagerdata - * @interface IConcludeTransactionRequest - * @property {string|null} [dtid] ConcludeTransactionRequest dtid - * @property {boolean|null} [mm] ConcludeTransactionRequest mm + * @interface IExecuteFetchAsAppRequest + * @property {Uint8Array|null} [query] ExecuteFetchAsAppRequest query + * @property {number|Long|null} [max_rows] ExecuteFetchAsAppRequest max_rows */ /** - * Constructs a new ConcludeTransactionRequest. + * Constructs a new ExecuteFetchAsAppRequest. * @memberof tabletmanagerdata - * @classdesc Represents a ConcludeTransactionRequest. - * @implements IConcludeTransactionRequest + * @classdesc Represents an ExecuteFetchAsAppRequest. + * @implements IExecuteFetchAsAppRequest * @constructor - * @param {tabletmanagerdata.IConcludeTransactionRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IExecuteFetchAsAppRequest=} [properties] Properties to set */ - function ConcludeTransactionRequest(properties) { + function ExecuteFetchAsAppRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60937,89 +61505,89 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ConcludeTransactionRequest dtid. - * @member {string} dtid - * @memberof tabletmanagerdata.ConcludeTransactionRequest + * ExecuteFetchAsAppRequest query. + * @member {Uint8Array} query + * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest * @instance */ - ConcludeTransactionRequest.prototype.dtid = ""; + ExecuteFetchAsAppRequest.prototype.query = $util.newBuffer([]); /** - * ConcludeTransactionRequest mm. - * @member {boolean} mm - * @memberof tabletmanagerdata.ConcludeTransactionRequest + * ExecuteFetchAsAppRequest max_rows. + * @member {number|Long} max_rows + * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest * @instance */ - ConcludeTransactionRequest.prototype.mm = false; + ExecuteFetchAsAppRequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new ConcludeTransactionRequest instance using the specified properties. + * Creates a new ExecuteFetchAsAppRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ConcludeTransactionRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest * @static - * @param {tabletmanagerdata.IConcludeTransactionRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ConcludeTransactionRequest} ConcludeTransactionRequest instance + * @param {tabletmanagerdata.IExecuteFetchAsAppRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest instance */ - ConcludeTransactionRequest.create = function create(properties) { - return new ConcludeTransactionRequest(properties); + ExecuteFetchAsAppRequest.create = function create(properties) { + return new ExecuteFetchAsAppRequest(properties); }; /** - * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link tabletmanagerdata.ConcludeTransactionRequest.verify|verify} messages. + * Encodes the specified ExecuteFetchAsAppRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAppRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ConcludeTransactionRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest * @static - * @param {tabletmanagerdata.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode + * @param {tabletmanagerdata.IExecuteFetchAsAppRequest} message ExecuteFetchAsAppRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConcludeTransactionRequest.encode = function encode(message, writer) { + ExecuteFetchAsAppRequest.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.mm != null && Object.hasOwnProperty.call(message, "mm")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.mm); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.query); + if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.max_rows); return writer; }; /** - * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ConcludeTransactionRequest.verify|verify} messages. + * Encodes the specified ExecuteFetchAsAppRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAppRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ConcludeTransactionRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest * @static - * @param {tabletmanagerdata.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode + * @param {tabletmanagerdata.IExecuteFetchAsAppRequest} message ExecuteFetchAsAppRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConcludeTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteFetchAsAppRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. + * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ConcludeTransactionRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ConcludeTransactionRequest} ConcludeTransactionRequest + * @returns {tabletmanagerdata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest * @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) { + ExecuteFetchAsAppRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ConcludeTransactionRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteFetchAsAppRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dtid = reader.string(); + message.query = reader.bytes(); break; } case 2: { - message.mm = reader.bool(); + message.max_rows = reader.uint64(); break; } default: @@ -61031,130 +61599,154 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ConcludeTransactionRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ConcludeTransactionRequest} ConcludeTransactionRequest + * @returns {tabletmanagerdata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest * @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) { + ExecuteFetchAsAppRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConcludeTransactionRequest message. + * Verifies an ExecuteFetchAsAppRequest message. * @function verify - * @memberof tabletmanagerdata.ConcludeTransactionRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest * @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) { + ExecuteFetchAsAppRequest.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.mm != null && message.hasOwnProperty("mm")) - if (typeof message.mm !== "boolean") - return "mm: boolean expected"; + if (message.query != null && message.hasOwnProperty("query")) + if (!(message.query && typeof message.query.length === "number" || $util.isString(message.query))) + return "query: buffer expected"; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) + return "max_rows: integer|Long expected"; return null; }; /** - * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsAppRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ConcludeTransactionRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ConcludeTransactionRequest} ConcludeTransactionRequest + * @returns {tabletmanagerdata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest */ - ConcludeTransactionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ConcludeTransactionRequest) + ExecuteFetchAsAppRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ExecuteFetchAsAppRequest) return object; - let message = new $root.tabletmanagerdata.ConcludeTransactionRequest(); - if (object.dtid != null) - message.dtid = String(object.dtid); - if (object.mm != null) - message.mm = Boolean(object.mm); + let message = new $root.tabletmanagerdata.ExecuteFetchAsAppRequest(); + if (object.query != null) + if (typeof object.query === "string") + $util.base64.decode(object.query, message.query = $util.newBuffer($util.base64.length(object.query)), 0); + else if (object.query.length >= 0) + message.query = object.query; + if (object.max_rows != null) + if ($util.Long) + (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = true; + else if (typeof object.max_rows === "string") + message.max_rows = parseInt(object.max_rows, 10); + else if (typeof object.max_rows === "number") + message.max_rows = object.max_rows; + else if (typeof object.max_rows === "object") + message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteFetchAsAppRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ConcludeTransactionRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest * @static - * @param {tabletmanagerdata.ConcludeTransactionRequest} message ConcludeTransactionRequest + * @param {tabletmanagerdata.ExecuteFetchAsAppRequest} message ExecuteFetchAsAppRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConcludeTransactionRequest.toObject = function toObject(message, options) { + ExecuteFetchAsAppRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.dtid = ""; - object.mm = false; - } - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; - if (message.mm != null && message.hasOwnProperty("mm")) - object.mm = message.mm; + if (options.bytes === String) + object.query = ""; + else { + object.query = []; + if (options.bytes !== Array) + object.query = $util.newBuffer(object.query); + } + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_rows = options.longs === String ? "0" : 0; + } + if (message.query != null && message.hasOwnProperty("query")) + object.query = options.bytes === String ? $util.base64.encode(message.query, 0, message.query.length) : options.bytes === Array ? Array.prototype.slice.call(message.query) : message.query; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (typeof message.max_rows === "number") + object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; + else + object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber(true) : message.max_rows; return object; }; /** - * Converts this ConcludeTransactionRequest to JSON. + * Converts this ExecuteFetchAsAppRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ConcludeTransactionRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest * @instance * @returns {Object.} JSON object */ - ConcludeTransactionRequest.prototype.toJSON = function toJSON() { + ExecuteFetchAsAppRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ConcludeTransactionRequest + * Gets the default type url for ExecuteFetchAsAppRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ConcludeTransactionRequest + * @memberof tabletmanagerdata.ExecuteFetchAsAppRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ConcludeTransactionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteFetchAsAppRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ConcludeTransactionRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ExecuteFetchAsAppRequest"; }; - return ConcludeTransactionRequest; + return ExecuteFetchAsAppRequest; })(); - tabletmanagerdata.ConcludeTransactionResponse = (function() { + tabletmanagerdata.ExecuteFetchAsAppResponse = (function() { /** - * Properties of a ConcludeTransactionResponse. + * Properties of an ExecuteFetchAsAppResponse. * @memberof tabletmanagerdata - * @interface IConcludeTransactionResponse + * @interface IExecuteFetchAsAppResponse + * @property {query.IQueryResult|null} [result] ExecuteFetchAsAppResponse result */ /** - * Constructs a new ConcludeTransactionResponse. + * Constructs a new ExecuteFetchAsAppResponse. * @memberof tabletmanagerdata - * @classdesc Represents a ConcludeTransactionResponse. - * @implements IConcludeTransactionResponse + * @classdesc Represents an ExecuteFetchAsAppResponse. + * @implements IExecuteFetchAsAppResponse * @constructor - * @param {tabletmanagerdata.IConcludeTransactionResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IExecuteFetchAsAppResponse=} [properties] Properties to set */ - function ConcludeTransactionResponse(properties) { + function ExecuteFetchAsAppResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61162,63 +61754,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new ConcludeTransactionResponse instance using the specified properties. + * ExecuteFetchAsAppResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse + * @instance + */ + ExecuteFetchAsAppResponse.prototype.result = null; + + /** + * Creates a new ExecuteFetchAsAppResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ConcludeTransactionResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse * @static - * @param {tabletmanagerdata.IConcludeTransactionResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ConcludeTransactionResponse} ConcludeTransactionResponse instance + * @param {tabletmanagerdata.IExecuteFetchAsAppResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse instance */ - ConcludeTransactionResponse.create = function create(properties) { - return new ConcludeTransactionResponse(properties); + ExecuteFetchAsAppResponse.create = function create(properties) { + return new ExecuteFetchAsAppResponse(properties); }; /** - * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link tabletmanagerdata.ConcludeTransactionResponse.verify|verify} messages. + * Encodes the specified ExecuteFetchAsAppResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAppResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ConcludeTransactionResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse * @static - * @param {tabletmanagerdata.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode + * @param {tabletmanagerdata.IExecuteFetchAsAppResponse} message ExecuteFetchAsAppResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConcludeTransactionResponse.encode = function encode(message, writer) { + ExecuteFetchAsAppResponse.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 ConcludeTransactionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ConcludeTransactionResponse.verify|verify} messages. + * Encodes the specified ExecuteFetchAsAppResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteFetchAsAppResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ConcludeTransactionResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse * @static - * @param {tabletmanagerdata.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode + * @param {tabletmanagerdata.IExecuteFetchAsAppResponse} message ExecuteFetchAsAppResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConcludeTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteFetchAsAppResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. + * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ConcludeTransactionResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ConcludeTransactionResponse} ConcludeTransactionResponse + * @returns {tabletmanagerdata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse * @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) { + ExecuteFetchAsAppResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ConcludeTransactionResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteFetchAsAppResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -61228,108 +61834,127 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ConcludeTransactionResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ConcludeTransactionResponse} ConcludeTransactionResponse + * @returns {tabletmanagerdata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse * @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) { + ExecuteFetchAsAppResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConcludeTransactionResponse message. + * Verifies an ExecuteFetchAsAppResponse message. * @function verify - * @memberof tabletmanagerdata.ConcludeTransactionResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse * @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) { + ExecuteFetchAsAppResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } return null; }; /** - * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsAppResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ConcludeTransactionResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ConcludeTransactionResponse} ConcludeTransactionResponse + * @returns {tabletmanagerdata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse */ - ConcludeTransactionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ConcludeTransactionResponse) + ExecuteFetchAsAppResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ExecuteFetchAsAppResponse) return object; - return new $root.tabletmanagerdata.ConcludeTransactionResponse(); + let message = new $root.tabletmanagerdata.ExecuteFetchAsAppResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".tabletmanagerdata.ExecuteFetchAsAppResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + return message; }; /** - * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteFetchAsAppResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ConcludeTransactionResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse * @static - * @param {tabletmanagerdata.ConcludeTransactionResponse} message ConcludeTransactionResponse + * @param {tabletmanagerdata.ExecuteFetchAsAppResponse} message ExecuteFetchAsAppResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConcludeTransactionResponse.toObject = function toObject() { - return {}; + ExecuteFetchAsAppResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); + return object; }; /** - * Converts this ConcludeTransactionResponse to JSON. + * Converts this ExecuteFetchAsAppResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ConcludeTransactionResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse * @instance * @returns {Object.} JSON object */ - ConcludeTransactionResponse.prototype.toJSON = function toJSON() { + ExecuteFetchAsAppResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ConcludeTransactionResponse + * Gets the default type url for ExecuteFetchAsAppResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ConcludeTransactionResponse + * @memberof tabletmanagerdata.ExecuteFetchAsAppResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ConcludeTransactionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteFetchAsAppResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ConcludeTransactionResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ExecuteFetchAsAppResponse"; }; - return ConcludeTransactionResponse; + return ExecuteFetchAsAppResponse; })(); - tabletmanagerdata.MysqlHostMetricsRequest = (function() { + tabletmanagerdata.GetUnresolvedTransactionsRequest = (function() { /** - * Properties of a MysqlHostMetricsRequest. + * Properties of a GetUnresolvedTransactionsRequest. * @memberof tabletmanagerdata - * @interface IMysqlHostMetricsRequest + * @interface IGetUnresolvedTransactionsRequest + * @property {number|Long|null} [abandon_age] GetUnresolvedTransactionsRequest abandon_age */ /** - * Constructs a new MysqlHostMetricsRequest. + * Constructs a new GetUnresolvedTransactionsRequest. * @memberof tabletmanagerdata - * @classdesc Represents a MysqlHostMetricsRequest. - * @implements IMysqlHostMetricsRequest + * @classdesc Represents a GetUnresolvedTransactionsRequest. + * @implements IGetUnresolvedTransactionsRequest * @constructor - * @param {tabletmanagerdata.IMysqlHostMetricsRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IGetUnresolvedTransactionsRequest=} [properties] Properties to set */ - function MysqlHostMetricsRequest(properties) { + function GetUnresolvedTransactionsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61337,63 +61962,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new MysqlHostMetricsRequest instance using the specified properties. + * GetUnresolvedTransactionsRequest abandon_age. + * @member {number|Long} abandon_age + * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest + * @instance + */ + GetUnresolvedTransactionsRequest.prototype.abandon_age = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new GetUnresolvedTransactionsRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.MysqlHostMetricsRequest + * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest * @static - * @param {tabletmanagerdata.IMysqlHostMetricsRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.MysqlHostMetricsRequest} MysqlHostMetricsRequest instance + * @param {tabletmanagerdata.IGetUnresolvedTransactionsRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest instance */ - MysqlHostMetricsRequest.create = function create(properties) { - return new MysqlHostMetricsRequest(properties); + GetUnresolvedTransactionsRequest.create = function create(properties) { + return new GetUnresolvedTransactionsRequest(properties); }; /** - * Encodes the specified MysqlHostMetricsRequest message. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsRequest.verify|verify} messages. + * Encodes the specified GetUnresolvedTransactionsRequest message. Does not implicitly {@link tabletmanagerdata.GetUnresolvedTransactionsRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.MysqlHostMetricsRequest + * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest * @static - * @param {tabletmanagerdata.IMysqlHostMetricsRequest} message MysqlHostMetricsRequest message or plain object to encode + * @param {tabletmanagerdata.IGetUnresolvedTransactionsRequest} message GetUnresolvedTransactionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MysqlHostMetricsRequest.encode = function encode(message, writer) { + GetUnresolvedTransactionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.abandon_age != null && Object.hasOwnProperty.call(message, "abandon_age")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.abandon_age); return writer; }; /** - * Encodes the specified MysqlHostMetricsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsRequest.verify|verify} messages. + * Encodes the specified GetUnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetUnresolvedTransactionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.MysqlHostMetricsRequest + * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest * @static - * @param {tabletmanagerdata.IMysqlHostMetricsRequest} message MysqlHostMetricsRequest message or plain object to encode + * @param {tabletmanagerdata.IGetUnresolvedTransactionsRequest} message GetUnresolvedTransactionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MysqlHostMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetUnresolvedTransactionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MysqlHostMetricsRequest message from the specified reader or buffer. + * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.MysqlHostMetricsRequest + * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.MysqlHostMetricsRequest} MysqlHostMetricsRequest + * @returns {tabletmanagerdata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MysqlHostMetricsRequest.decode = function decode(reader, length) { + GetUnresolvedTransactionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.MysqlHostMetricsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetUnresolvedTransactionsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.abandon_age = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -61403,109 +62042,137 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a MysqlHostMetricsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.MysqlHostMetricsRequest + * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.MysqlHostMetricsRequest} MysqlHostMetricsRequest + * @returns {tabletmanagerdata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MysqlHostMetricsRequest.decodeDelimited = function decodeDelimited(reader) { + GetUnresolvedTransactionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MysqlHostMetricsRequest message. + * Verifies a GetUnresolvedTransactionsRequest message. * @function verify - * @memberof tabletmanagerdata.MysqlHostMetricsRequest + * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MysqlHostMetricsRequest.verify = function verify(message) { + GetUnresolvedTransactionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.abandon_age != null && message.hasOwnProperty("abandon_age")) + if (!$util.isInteger(message.abandon_age) && !(message.abandon_age && $util.isInteger(message.abandon_age.low) && $util.isInteger(message.abandon_age.high))) + return "abandon_age: integer|Long expected"; return null; }; /** - * Creates a MysqlHostMetricsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetUnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.MysqlHostMetricsRequest + * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.MysqlHostMetricsRequest} MysqlHostMetricsRequest + * @returns {tabletmanagerdata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest */ - MysqlHostMetricsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.MysqlHostMetricsRequest) + GetUnresolvedTransactionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetUnresolvedTransactionsRequest) return object; - return new $root.tabletmanagerdata.MysqlHostMetricsRequest(); + let message = new $root.tabletmanagerdata.GetUnresolvedTransactionsRequest(); + if (object.abandon_age != null) + if ($util.Long) + (message.abandon_age = $util.Long.fromValue(object.abandon_age)).unsigned = false; + else if (typeof object.abandon_age === "string") + message.abandon_age = parseInt(object.abandon_age, 10); + else if (typeof object.abandon_age === "number") + message.abandon_age = object.abandon_age; + else if (typeof object.abandon_age === "object") + message.abandon_age = new $util.LongBits(object.abandon_age.low >>> 0, object.abandon_age.high >>> 0).toNumber(); + return message; }; /** - * Creates a plain object from a MysqlHostMetricsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetUnresolvedTransactionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.MysqlHostMetricsRequest + * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest * @static - * @param {tabletmanagerdata.MysqlHostMetricsRequest} message MysqlHostMetricsRequest + * @param {tabletmanagerdata.GetUnresolvedTransactionsRequest} message GetUnresolvedTransactionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MysqlHostMetricsRequest.toObject = function toObject() { - return {}; + GetUnresolvedTransactionsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.abandon_age = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.abandon_age = options.longs === String ? "0" : 0; + if (message.abandon_age != null && message.hasOwnProperty("abandon_age")) + if (typeof message.abandon_age === "number") + object.abandon_age = options.longs === String ? String(message.abandon_age) : message.abandon_age; + else + object.abandon_age = options.longs === String ? $util.Long.prototype.toString.call(message.abandon_age) : options.longs === Number ? new $util.LongBits(message.abandon_age.low >>> 0, message.abandon_age.high >>> 0).toNumber() : message.abandon_age; + return object; }; /** - * Converts this MysqlHostMetricsRequest to JSON. + * Converts this GetUnresolvedTransactionsRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.MysqlHostMetricsRequest + * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest * @instance * @returns {Object.} JSON object */ - MysqlHostMetricsRequest.prototype.toJSON = function toJSON() { + GetUnresolvedTransactionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MysqlHostMetricsRequest + * Gets the default type url for GetUnresolvedTransactionsRequest * @function getTypeUrl - * @memberof tabletmanagerdata.MysqlHostMetricsRequest + * @memberof tabletmanagerdata.GetUnresolvedTransactionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MysqlHostMetricsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetUnresolvedTransactionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.MysqlHostMetricsRequest"; + return typeUrlPrefix + "/tabletmanagerdata.GetUnresolvedTransactionsRequest"; }; - return MysqlHostMetricsRequest; + return GetUnresolvedTransactionsRequest; })(); - tabletmanagerdata.MysqlHostMetricsResponse = (function() { + tabletmanagerdata.GetUnresolvedTransactionsResponse = (function() { /** - * Properties of a MysqlHostMetricsResponse. + * Properties of a GetUnresolvedTransactionsResponse. * @memberof tabletmanagerdata - * @interface IMysqlHostMetricsResponse - * @property {mysqlctl.IHostMetricsResponse|null} [HostMetrics] MysqlHostMetricsResponse HostMetrics + * @interface IGetUnresolvedTransactionsResponse + * @property {Array.|null} [transactions] GetUnresolvedTransactionsResponse transactions */ /** - * Constructs a new MysqlHostMetricsResponse. + * Constructs a new GetUnresolvedTransactionsResponse. * @memberof tabletmanagerdata - * @classdesc Represents a MysqlHostMetricsResponse. - * @implements IMysqlHostMetricsResponse + * @classdesc Represents a GetUnresolvedTransactionsResponse. + * @implements IGetUnresolvedTransactionsResponse * @constructor - * @param {tabletmanagerdata.IMysqlHostMetricsResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IGetUnresolvedTransactionsResponse=} [properties] Properties to set */ - function MysqlHostMetricsResponse(properties) { + function GetUnresolvedTransactionsResponse(properties) { + this.transactions = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61513,75 +62180,78 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * MysqlHostMetricsResponse HostMetrics. - * @member {mysqlctl.IHostMetricsResponse|null|undefined} HostMetrics - * @memberof tabletmanagerdata.MysqlHostMetricsResponse + * GetUnresolvedTransactionsResponse transactions. + * @member {Array.} transactions + * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse * @instance */ - MysqlHostMetricsResponse.prototype.HostMetrics = null; + GetUnresolvedTransactionsResponse.prototype.transactions = $util.emptyArray; /** - * Creates a new MysqlHostMetricsResponse instance using the specified properties. + * Creates a new GetUnresolvedTransactionsResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.MysqlHostMetricsResponse + * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse * @static - * @param {tabletmanagerdata.IMysqlHostMetricsResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.MysqlHostMetricsResponse} MysqlHostMetricsResponse instance + * @param {tabletmanagerdata.IGetUnresolvedTransactionsResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse instance */ - MysqlHostMetricsResponse.create = function create(properties) { - return new MysqlHostMetricsResponse(properties); + GetUnresolvedTransactionsResponse.create = function create(properties) { + return new GetUnresolvedTransactionsResponse(properties); }; /** - * Encodes the specified MysqlHostMetricsResponse message. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsResponse.verify|verify} messages. + * Encodes the specified GetUnresolvedTransactionsResponse message. Does not implicitly {@link tabletmanagerdata.GetUnresolvedTransactionsResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.MysqlHostMetricsResponse + * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse * @static - * @param {tabletmanagerdata.IMysqlHostMetricsResponse} message MysqlHostMetricsResponse message or plain object to encode + * @param {tabletmanagerdata.IGetUnresolvedTransactionsResponse} message GetUnresolvedTransactionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MysqlHostMetricsResponse.encode = function encode(message, writer) { + GetUnresolvedTransactionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.HostMetrics != null && Object.hasOwnProperty.call(message, "HostMetrics")) - $root.mysqlctl.HostMetricsResponse.encode(message.HostMetrics, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.transactions != null && message.transactions.length) + for (let i = 0; i < message.transactions.length; ++i) + $root.query.TransactionMetadata.encode(message.transactions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MysqlHostMetricsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsResponse.verify|verify} messages. + * Encodes the specified GetUnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetUnresolvedTransactionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.MysqlHostMetricsResponse + * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse * @static - * @param {tabletmanagerdata.IMysqlHostMetricsResponse} message MysqlHostMetricsResponse message or plain object to encode + * @param {tabletmanagerdata.IGetUnresolvedTransactionsResponse} message GetUnresolvedTransactionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MysqlHostMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetUnresolvedTransactionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MysqlHostMetricsResponse message from the specified reader or buffer. + * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.MysqlHostMetricsResponse + * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.MysqlHostMetricsResponse} MysqlHostMetricsResponse + * @returns {tabletmanagerdata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MysqlHostMetricsResponse.decode = function decode(reader, length) { + GetUnresolvedTransactionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.MysqlHostMetricsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetUnresolvedTransactionsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.HostMetrics = $root.mysqlctl.HostMetricsResponse.decode(reader, reader.uint32()); + if (!(message.transactions && message.transactions.length)) + message.transactions = []; + message.transactions.push($root.query.TransactionMetadata.decode(reader, reader.uint32())); break; } default: @@ -61593,126 +62263,139 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a MysqlHostMetricsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.MysqlHostMetricsResponse + * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.MysqlHostMetricsResponse} MysqlHostMetricsResponse + * @returns {tabletmanagerdata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MysqlHostMetricsResponse.decodeDelimited = function decodeDelimited(reader) { + GetUnresolvedTransactionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MysqlHostMetricsResponse message. + * Verifies a GetUnresolvedTransactionsResponse message. * @function verify - * @memberof tabletmanagerdata.MysqlHostMetricsResponse + * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MysqlHostMetricsResponse.verify = function verify(message) { + GetUnresolvedTransactionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.HostMetrics != null && message.hasOwnProperty("HostMetrics")) { - let error = $root.mysqlctl.HostMetricsResponse.verify(message.HostMetrics); - if (error) - return "HostMetrics." + error; + if (message.transactions != null && message.hasOwnProperty("transactions")) { + if (!Array.isArray(message.transactions)) + return "transactions: array expected"; + for (let i = 0; i < message.transactions.length; ++i) { + let error = $root.query.TransactionMetadata.verify(message.transactions[i]); + if (error) + return "transactions." + error; + } } return null; }; /** - * Creates a MysqlHostMetricsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetUnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.MysqlHostMetricsResponse + * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.MysqlHostMetricsResponse} MysqlHostMetricsResponse + * @returns {tabletmanagerdata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse */ - MysqlHostMetricsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.MysqlHostMetricsResponse) + GetUnresolvedTransactionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetUnresolvedTransactionsResponse) return object; - let message = new $root.tabletmanagerdata.MysqlHostMetricsResponse(); - if (object.HostMetrics != null) { - if (typeof object.HostMetrics !== "object") - throw TypeError(".tabletmanagerdata.MysqlHostMetricsResponse.HostMetrics: object expected"); - message.HostMetrics = $root.mysqlctl.HostMetricsResponse.fromObject(object.HostMetrics); + let message = new $root.tabletmanagerdata.GetUnresolvedTransactionsResponse(); + if (object.transactions) { + if (!Array.isArray(object.transactions)) + throw TypeError(".tabletmanagerdata.GetUnresolvedTransactionsResponse.transactions: array expected"); + message.transactions = []; + for (let i = 0; i < object.transactions.length; ++i) { + if (typeof object.transactions[i] !== "object") + throw TypeError(".tabletmanagerdata.GetUnresolvedTransactionsResponse.transactions: object expected"); + message.transactions[i] = $root.query.TransactionMetadata.fromObject(object.transactions[i]); + } } return message; }; /** - * Creates a plain object from a MysqlHostMetricsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetUnresolvedTransactionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.MysqlHostMetricsResponse + * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse * @static - * @param {tabletmanagerdata.MysqlHostMetricsResponse} message MysqlHostMetricsResponse + * @param {tabletmanagerdata.GetUnresolvedTransactionsResponse} message GetUnresolvedTransactionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MysqlHostMetricsResponse.toObject = function toObject(message, options) { + GetUnresolvedTransactionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.HostMetrics = null; - if (message.HostMetrics != null && message.hasOwnProperty("HostMetrics")) - object.HostMetrics = $root.mysqlctl.HostMetricsResponse.toObject(message.HostMetrics, options); + if (options.arrays || options.defaults) + object.transactions = []; + if (message.transactions && message.transactions.length) { + object.transactions = []; + for (let j = 0; j < message.transactions.length; ++j) + object.transactions[j] = $root.query.TransactionMetadata.toObject(message.transactions[j], options); + } return object; }; /** - * Converts this MysqlHostMetricsResponse to JSON. + * Converts this GetUnresolvedTransactionsResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.MysqlHostMetricsResponse + * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse * @instance * @returns {Object.} JSON object */ - MysqlHostMetricsResponse.prototype.toJSON = function toJSON() { + GetUnresolvedTransactionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MysqlHostMetricsResponse + * Gets the default type url for GetUnresolvedTransactionsResponse * @function getTypeUrl - * @memberof tabletmanagerdata.MysqlHostMetricsResponse + * @memberof tabletmanagerdata.GetUnresolvedTransactionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MysqlHostMetricsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetUnresolvedTransactionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.MysqlHostMetricsResponse"; + return typeUrlPrefix + "/tabletmanagerdata.GetUnresolvedTransactionsResponse"; }; - return MysqlHostMetricsResponse; + return GetUnresolvedTransactionsResponse; })(); - tabletmanagerdata.ReplicationStatusRequest = (function() { + tabletmanagerdata.ReadTransactionRequest = (function() { /** - * Properties of a ReplicationStatusRequest. + * Properties of a ReadTransactionRequest. * @memberof tabletmanagerdata - * @interface IReplicationStatusRequest + * @interface IReadTransactionRequest + * @property {string|null} [dtid] ReadTransactionRequest dtid */ /** - * Constructs a new ReplicationStatusRequest. + * Constructs a new ReadTransactionRequest. * @memberof tabletmanagerdata - * @classdesc Represents a ReplicationStatusRequest. - * @implements IReplicationStatusRequest + * @classdesc Represents a ReadTransactionRequest. + * @implements IReadTransactionRequest * @constructor - * @param {tabletmanagerdata.IReplicationStatusRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IReadTransactionRequest=} [properties] Properties to set */ - function ReplicationStatusRequest(properties) { + function ReadTransactionRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61720,63 +62403,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new ReplicationStatusRequest instance using the specified properties. + * ReadTransactionRequest dtid. + * @member {string} dtid + * @memberof tabletmanagerdata.ReadTransactionRequest + * @instance + */ + ReadTransactionRequest.prototype.dtid = ""; + + /** + * Creates a new ReadTransactionRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReplicationStatusRequest + * @memberof tabletmanagerdata.ReadTransactionRequest * @static - * @param {tabletmanagerdata.IReplicationStatusRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ReplicationStatusRequest} ReplicationStatusRequest instance + * @param {tabletmanagerdata.IReadTransactionRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ReadTransactionRequest} ReadTransactionRequest instance */ - ReplicationStatusRequest.create = function create(properties) { - return new ReplicationStatusRequest(properties); + ReadTransactionRequest.create = function create(properties) { + return new ReadTransactionRequest(properties); }; /** - * Encodes the specified ReplicationStatusRequest message. Does not implicitly {@link tabletmanagerdata.ReplicationStatusRequest.verify|verify} messages. + * Encodes the specified ReadTransactionRequest message. Does not implicitly {@link tabletmanagerdata.ReadTransactionRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReplicationStatusRequest + * @memberof tabletmanagerdata.ReadTransactionRequest * @static - * @param {tabletmanagerdata.IReplicationStatusRequest} message ReplicationStatusRequest message or plain object to encode + * @param {tabletmanagerdata.IReadTransactionRequest} message ReadTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReplicationStatusRequest.encode = function encode(message, writer) { + ReadTransactionRequest.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); return writer; }; /** - * Encodes the specified ReplicationStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicationStatusRequest.verify|verify} messages. + * Encodes the specified ReadTransactionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadTransactionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReplicationStatusRequest + * @memberof tabletmanagerdata.ReadTransactionRequest * @static - * @param {tabletmanagerdata.IReplicationStatusRequest} message ReplicationStatusRequest message or plain object to encode + * @param {tabletmanagerdata.IReadTransactionRequest} message ReadTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReplicationStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReadTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReplicationStatusRequest message from the specified reader or buffer. + * Decodes a ReadTransactionRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReplicationStatusRequest + * @memberof tabletmanagerdata.ReadTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReplicationStatusRequest} ReplicationStatusRequest + * @returns {tabletmanagerdata.ReadTransactionRequest} ReadTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReplicationStatusRequest.decode = function decode(reader, length) { + ReadTransactionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReplicationStatusRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadTransactionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.dtid = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -61786,109 +62483,122 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReplicationStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadTransactionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReplicationStatusRequest + * @memberof tabletmanagerdata.ReadTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReplicationStatusRequest} ReplicationStatusRequest + * @returns {tabletmanagerdata.ReadTransactionRequest} ReadTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReplicationStatusRequest.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 ReplicationStatusRequest message. + * Verifies a ReadTransactionRequest message. * @function verify - * @memberof tabletmanagerdata.ReplicationStatusRequest + * @memberof tabletmanagerdata.ReadTransactionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReplicationStatusRequest.verify = function verify(message) { + ReadTransactionRequest.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"; return null; }; /** - * Creates a ReplicationStatusRequest 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 tabletmanagerdata.ReplicationStatusRequest + * @memberof tabletmanagerdata.ReadTransactionRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReplicationStatusRequest} ReplicationStatusRequest + * @returns {tabletmanagerdata.ReadTransactionRequest} ReadTransactionRequest */ - ReplicationStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReplicationStatusRequest) + ReadTransactionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReadTransactionRequest) return object; - return new $root.tabletmanagerdata.ReplicationStatusRequest(); + let message = new $root.tabletmanagerdata.ReadTransactionRequest(); + if (object.dtid != null) + message.dtid = String(object.dtid); + return message; }; /** - * Creates a plain object from a ReplicationStatusRequest 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 tabletmanagerdata.ReplicationStatusRequest + * @memberof tabletmanagerdata.ReadTransactionRequest * @static - * @param {tabletmanagerdata.ReplicationStatusRequest} message ReplicationStatusRequest + * @param {tabletmanagerdata.ReadTransactionRequest} message ReadTransactionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReplicationStatusRequest.toObject = function toObject() { - return {}; + ReadTransactionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.dtid = ""; + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; + return object; }; /** - * Converts this ReplicationStatusRequest to JSON. + * Converts this ReadTransactionRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReplicationStatusRequest + * @memberof tabletmanagerdata.ReadTransactionRequest * @instance * @returns {Object.} JSON object */ - ReplicationStatusRequest.prototype.toJSON = function toJSON() { + ReadTransactionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReplicationStatusRequest + * Gets the default type url for ReadTransactionRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ReplicationStatusRequest + * @memberof tabletmanagerdata.ReadTransactionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReplicationStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadTransactionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReplicationStatusRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ReadTransactionRequest"; }; - return ReplicationStatusRequest; + return ReadTransactionRequest; })(); - tabletmanagerdata.ReplicationStatusResponse = (function() { + tabletmanagerdata.ReadTransactionResponse = (function() { /** - * Properties of a ReplicationStatusResponse. + * Properties of a ReadTransactionResponse. * @memberof tabletmanagerdata - * @interface IReplicationStatusResponse - * @property {replicationdata.IStatus|null} [status] ReplicationStatusResponse status + * @interface IReadTransactionResponse + * @property {query.ITransactionMetadata|null} [transaction] ReadTransactionResponse transaction */ /** - * Constructs a new ReplicationStatusResponse. + * Constructs a new ReadTransactionResponse. * @memberof tabletmanagerdata - * @classdesc Represents a ReplicationStatusResponse. - * @implements IReplicationStatusResponse + * @classdesc Represents a ReadTransactionResponse. + * @implements IReadTransactionResponse * @constructor - * @param {tabletmanagerdata.IReplicationStatusResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IReadTransactionResponse=} [properties] Properties to set */ - function ReplicationStatusResponse(properties) { + function ReadTransactionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61896,75 +62606,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ReplicationStatusResponse status. - * @member {replicationdata.IStatus|null|undefined} status - * @memberof tabletmanagerdata.ReplicationStatusResponse + * ReadTransactionResponse transaction. + * @member {query.ITransactionMetadata|null|undefined} transaction + * @memberof tabletmanagerdata.ReadTransactionResponse * @instance */ - ReplicationStatusResponse.prototype.status = null; + ReadTransactionResponse.prototype.transaction = null; /** - * Creates a new ReplicationStatusResponse instance using the specified properties. + * Creates a new ReadTransactionResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReplicationStatusResponse + * @memberof tabletmanagerdata.ReadTransactionResponse * @static - * @param {tabletmanagerdata.IReplicationStatusResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ReplicationStatusResponse} ReplicationStatusResponse instance + * @param {tabletmanagerdata.IReadTransactionResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ReadTransactionResponse} ReadTransactionResponse instance */ - ReplicationStatusResponse.create = function create(properties) { - return new ReplicationStatusResponse(properties); + ReadTransactionResponse.create = function create(properties) { + return new ReadTransactionResponse(properties); }; /** - * Encodes the specified ReplicationStatusResponse message. Does not implicitly {@link tabletmanagerdata.ReplicationStatusResponse.verify|verify} messages. + * Encodes the specified ReadTransactionResponse message. Does not implicitly {@link tabletmanagerdata.ReadTransactionResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReplicationStatusResponse + * @memberof tabletmanagerdata.ReadTransactionResponse * @static - * @param {tabletmanagerdata.IReplicationStatusResponse} message ReplicationStatusResponse message or plain object to encode + * @param {tabletmanagerdata.IReadTransactionResponse} message ReadTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReplicationStatusResponse.encode = function encode(message, writer) { + ReadTransactionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.replicationdata.Status.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.transaction != null && Object.hasOwnProperty.call(message, "transaction")) + $root.query.TransactionMetadata.encode(message.transaction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReplicationStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicationStatusResponse.verify|verify} messages. + * Encodes the specified ReadTransactionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadTransactionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReplicationStatusResponse + * @memberof tabletmanagerdata.ReadTransactionResponse * @static - * @param {tabletmanagerdata.IReplicationStatusResponse} message ReplicationStatusResponse message or plain object to encode + * @param {tabletmanagerdata.IReadTransactionResponse} message ReadTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReplicationStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReadTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReplicationStatusResponse message from the specified reader or buffer. + * Decodes a ReadTransactionResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReplicationStatusResponse + * @memberof tabletmanagerdata.ReadTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReplicationStatusResponse} ReplicationStatusResponse + * @returns {tabletmanagerdata.ReadTransactionResponse} ReadTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReplicationStatusResponse.decode = function decode(reader, length) { + ReadTransactionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReplicationStatusResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadTransactionResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.status = $root.replicationdata.Status.decode(reader, reader.uint32()); + message.transaction = $root.query.TransactionMetadata.decode(reader, reader.uint32()); break; } default: @@ -61976,126 +62686,127 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReplicationStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadTransactionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReplicationStatusResponse + * @memberof tabletmanagerdata.ReadTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReplicationStatusResponse} ReplicationStatusResponse + * @returns {tabletmanagerdata.ReadTransactionResponse} ReadTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReplicationStatusResponse.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 ReplicationStatusResponse message. + * Verifies a ReadTransactionResponse message. * @function verify - * @memberof tabletmanagerdata.ReplicationStatusResponse + * @memberof tabletmanagerdata.ReadTransactionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReplicationStatusResponse.verify = function verify(message) { + ReadTransactionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - let error = $root.replicationdata.Status.verify(message.status); + if (message.transaction != null && message.hasOwnProperty("transaction")) { + let error = $root.query.TransactionMetadata.verify(message.transaction); if (error) - return "status." + error; + return "transaction." + error; } return null; }; /** - * Creates a ReplicationStatusResponse 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 tabletmanagerdata.ReplicationStatusResponse + * @memberof tabletmanagerdata.ReadTransactionResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReplicationStatusResponse} ReplicationStatusResponse + * @returns {tabletmanagerdata.ReadTransactionResponse} ReadTransactionResponse */ - ReplicationStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReplicationStatusResponse) + ReadTransactionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReadTransactionResponse) return object; - let message = new $root.tabletmanagerdata.ReplicationStatusResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".tabletmanagerdata.ReplicationStatusResponse.status: object expected"); - message.status = $root.replicationdata.Status.fromObject(object.status); + let message = new $root.tabletmanagerdata.ReadTransactionResponse(); + if (object.transaction != null) { + if (typeof object.transaction !== "object") + throw TypeError(".tabletmanagerdata.ReadTransactionResponse.transaction: object expected"); + message.transaction = $root.query.TransactionMetadata.fromObject(object.transaction); } return message; }; /** - * Creates a plain object from a ReplicationStatusResponse 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 tabletmanagerdata.ReplicationStatusResponse + * @memberof tabletmanagerdata.ReadTransactionResponse * @static - * @param {tabletmanagerdata.ReplicationStatusResponse} message ReplicationStatusResponse + * @param {tabletmanagerdata.ReadTransactionResponse} message ReadTransactionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReplicationStatusResponse.toObject = function toObject(message, options) { + ReadTransactionResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.replicationdata.Status.toObject(message.status, options); + object.transaction = null; + if (message.transaction != null && message.hasOwnProperty("transaction")) + object.transaction = $root.query.TransactionMetadata.toObject(message.transaction, options); return object; }; /** - * Converts this ReplicationStatusResponse to JSON. + * Converts this ReadTransactionResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReplicationStatusResponse + * @memberof tabletmanagerdata.ReadTransactionResponse * @instance * @returns {Object.} JSON object */ - ReplicationStatusResponse.prototype.toJSON = function toJSON() { + ReadTransactionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReplicationStatusResponse + * Gets the default type url for ReadTransactionResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ReplicationStatusResponse + * @memberof tabletmanagerdata.ReadTransactionResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReplicationStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadTransactionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReplicationStatusResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ReadTransactionResponse"; }; - return ReplicationStatusResponse; + return ReadTransactionResponse; })(); - tabletmanagerdata.PrimaryStatusRequest = (function() { + tabletmanagerdata.GetTransactionInfoRequest = (function() { /** - * Properties of a PrimaryStatusRequest. + * Properties of a GetTransactionInfoRequest. * @memberof tabletmanagerdata - * @interface IPrimaryStatusRequest + * @interface IGetTransactionInfoRequest + * @property {string|null} [dtid] GetTransactionInfoRequest dtid */ /** - * Constructs a new PrimaryStatusRequest. + * Constructs a new GetTransactionInfoRequest. * @memberof tabletmanagerdata - * @classdesc Represents a PrimaryStatusRequest. - * @implements IPrimaryStatusRequest + * @classdesc Represents a GetTransactionInfoRequest. + * @implements IGetTransactionInfoRequest * @constructor - * @param {tabletmanagerdata.IPrimaryStatusRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IGetTransactionInfoRequest=} [properties] Properties to set */ - function PrimaryStatusRequest(properties) { + function GetTransactionInfoRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62103,63 +62814,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new PrimaryStatusRequest instance using the specified properties. + * GetTransactionInfoRequest dtid. + * @member {string} dtid + * @memberof tabletmanagerdata.GetTransactionInfoRequest + * @instance + */ + GetTransactionInfoRequest.prototype.dtid = ""; + + /** + * Creates a new GetTransactionInfoRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.PrimaryStatusRequest + * @memberof tabletmanagerdata.GetTransactionInfoRequest * @static - * @param {tabletmanagerdata.IPrimaryStatusRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.PrimaryStatusRequest} PrimaryStatusRequest instance + * @param {tabletmanagerdata.IGetTransactionInfoRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.GetTransactionInfoRequest} GetTransactionInfoRequest instance */ - PrimaryStatusRequest.create = function create(properties) { - return new PrimaryStatusRequest(properties); + GetTransactionInfoRequest.create = function create(properties) { + return new GetTransactionInfoRequest(properties); }; /** - * Encodes the specified PrimaryStatusRequest message. Does not implicitly {@link tabletmanagerdata.PrimaryStatusRequest.verify|verify} messages. + * Encodes the specified GetTransactionInfoRequest message. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.PrimaryStatusRequest + * @memberof tabletmanagerdata.GetTransactionInfoRequest * @static - * @param {tabletmanagerdata.IPrimaryStatusRequest} message PrimaryStatusRequest message or plain object to encode + * @param {tabletmanagerdata.IGetTransactionInfoRequest} message GetTransactionInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrimaryStatusRequest.encode = function encode(message, writer) { + GetTransactionInfoRequest.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); return writer; }; /** - * Encodes the specified PrimaryStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryStatusRequest.verify|verify} messages. + * Encodes the specified GetTransactionInfoRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.PrimaryStatusRequest + * @memberof tabletmanagerdata.GetTransactionInfoRequest * @static - * @param {tabletmanagerdata.IPrimaryStatusRequest} message PrimaryStatusRequest message or plain object to encode + * @param {tabletmanagerdata.IGetTransactionInfoRequest} message GetTransactionInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrimaryStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTransactionInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrimaryStatusRequest message from the specified reader or buffer. + * Decodes a GetTransactionInfoRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.PrimaryStatusRequest + * @memberof tabletmanagerdata.GetTransactionInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.PrimaryStatusRequest} PrimaryStatusRequest + * @returns {tabletmanagerdata.GetTransactionInfoRequest} GetTransactionInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrimaryStatusRequest.decode = function decode(reader, length) { + GetTransactionInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PrimaryStatusRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetTransactionInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.dtid = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -62169,109 +62894,126 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a PrimaryStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTransactionInfoRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.PrimaryStatusRequest + * @memberof tabletmanagerdata.GetTransactionInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.PrimaryStatusRequest} PrimaryStatusRequest + * @returns {tabletmanagerdata.GetTransactionInfoRequest} GetTransactionInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrimaryStatusRequest.decodeDelimited = function decodeDelimited(reader) { + GetTransactionInfoRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrimaryStatusRequest message. + * Verifies a GetTransactionInfoRequest message. * @function verify - * @memberof tabletmanagerdata.PrimaryStatusRequest + * @memberof tabletmanagerdata.GetTransactionInfoRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrimaryStatusRequest.verify = function verify(message) { + GetTransactionInfoRequest.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"; return null; }; /** - * Creates a PrimaryStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTransactionInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.PrimaryStatusRequest + * @memberof tabletmanagerdata.GetTransactionInfoRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.PrimaryStatusRequest} PrimaryStatusRequest + * @returns {tabletmanagerdata.GetTransactionInfoRequest} GetTransactionInfoRequest */ - PrimaryStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.PrimaryStatusRequest) + GetTransactionInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetTransactionInfoRequest) return object; - return new $root.tabletmanagerdata.PrimaryStatusRequest(); + let message = new $root.tabletmanagerdata.GetTransactionInfoRequest(); + if (object.dtid != null) + message.dtid = String(object.dtid); + return message; }; /** - * Creates a plain object from a PrimaryStatusRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTransactionInfoRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.PrimaryStatusRequest + * @memberof tabletmanagerdata.GetTransactionInfoRequest * @static - * @param {tabletmanagerdata.PrimaryStatusRequest} message PrimaryStatusRequest + * @param {tabletmanagerdata.GetTransactionInfoRequest} message GetTransactionInfoRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrimaryStatusRequest.toObject = function toObject() { - return {}; + GetTransactionInfoRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.dtid = ""; + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; + return object; }; /** - * Converts this PrimaryStatusRequest to JSON. + * Converts this GetTransactionInfoRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.PrimaryStatusRequest + * @memberof tabletmanagerdata.GetTransactionInfoRequest * @instance * @returns {Object.} JSON object */ - PrimaryStatusRequest.prototype.toJSON = function toJSON() { + GetTransactionInfoRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrimaryStatusRequest + * Gets the default type url for GetTransactionInfoRequest * @function getTypeUrl - * @memberof tabletmanagerdata.PrimaryStatusRequest + * @memberof tabletmanagerdata.GetTransactionInfoRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrimaryStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTransactionInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.PrimaryStatusRequest"; + return typeUrlPrefix + "/tabletmanagerdata.GetTransactionInfoRequest"; }; - return PrimaryStatusRequest; + return GetTransactionInfoRequest; })(); - tabletmanagerdata.PrimaryStatusResponse = (function() { + tabletmanagerdata.GetTransactionInfoResponse = (function() { /** - * Properties of a PrimaryStatusResponse. + * Properties of a GetTransactionInfoResponse. * @memberof tabletmanagerdata - * @interface IPrimaryStatusResponse - * @property {replicationdata.IPrimaryStatus|null} [status] PrimaryStatusResponse status + * @interface IGetTransactionInfoResponse + * @property {string|null} [state] GetTransactionInfoResponse state + * @property {string|null} [message] GetTransactionInfoResponse message + * @property {number|Long|null} [time_created] GetTransactionInfoResponse time_created + * @property {Array.|null} [statements] GetTransactionInfoResponse statements */ /** - * Constructs a new PrimaryStatusResponse. + * Constructs a new GetTransactionInfoResponse. * @memberof tabletmanagerdata - * @classdesc Represents a PrimaryStatusResponse. - * @implements IPrimaryStatusResponse + * @classdesc Represents a GetTransactionInfoResponse. + * @implements IGetTransactionInfoResponse * @constructor - * @param {tabletmanagerdata.IPrimaryStatusResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IGetTransactionInfoResponse=} [properties] Properties to set */ - function PrimaryStatusResponse(properties) { + function GetTransactionInfoResponse(properties) { + this.statements = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62279,75 +63021,120 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * PrimaryStatusResponse status. - * @member {replicationdata.IPrimaryStatus|null|undefined} status - * @memberof tabletmanagerdata.PrimaryStatusResponse + * GetTransactionInfoResponse state. + * @member {string} state + * @memberof tabletmanagerdata.GetTransactionInfoResponse * @instance */ - PrimaryStatusResponse.prototype.status = null; + GetTransactionInfoResponse.prototype.state = ""; /** - * Creates a new PrimaryStatusResponse instance using the specified properties. + * GetTransactionInfoResponse message. + * @member {string} message + * @memberof tabletmanagerdata.GetTransactionInfoResponse + * @instance + */ + GetTransactionInfoResponse.prototype.message = ""; + + /** + * GetTransactionInfoResponse time_created. + * @member {number|Long} time_created + * @memberof tabletmanagerdata.GetTransactionInfoResponse + * @instance + */ + GetTransactionInfoResponse.prototype.time_created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * GetTransactionInfoResponse statements. + * @member {Array.} statements + * @memberof tabletmanagerdata.GetTransactionInfoResponse + * @instance + */ + GetTransactionInfoResponse.prototype.statements = $util.emptyArray; + + /** + * Creates a new GetTransactionInfoResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.PrimaryStatusResponse + * @memberof tabletmanagerdata.GetTransactionInfoResponse * @static - * @param {tabletmanagerdata.IPrimaryStatusResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.PrimaryStatusResponse} PrimaryStatusResponse instance + * @param {tabletmanagerdata.IGetTransactionInfoResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.GetTransactionInfoResponse} GetTransactionInfoResponse instance */ - PrimaryStatusResponse.create = function create(properties) { - return new PrimaryStatusResponse(properties); + GetTransactionInfoResponse.create = function create(properties) { + return new GetTransactionInfoResponse(properties); }; /** - * Encodes the specified PrimaryStatusResponse message. Does not implicitly {@link tabletmanagerdata.PrimaryStatusResponse.verify|verify} messages. + * Encodes the specified GetTransactionInfoResponse message. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.PrimaryStatusResponse + * @memberof tabletmanagerdata.GetTransactionInfoResponse * @static - * @param {tabletmanagerdata.IPrimaryStatusResponse} message PrimaryStatusResponse message or plain object to encode + * @param {tabletmanagerdata.IGetTransactionInfoResponse} message GetTransactionInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrimaryStatusResponse.encode = function encode(message, writer) { + GetTransactionInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.replicationdata.PrimaryStatus.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.state); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.time_created != null && Object.hasOwnProperty.call(message, "time_created")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time_created); + if (message.statements != null && message.statements.length) + for (let i = 0; i < message.statements.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.statements[i]); return writer; }; /** - * Encodes the specified PrimaryStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryStatusResponse.verify|verify} messages. + * Encodes the specified GetTransactionInfoResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetTransactionInfoResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.PrimaryStatusResponse + * @memberof tabletmanagerdata.GetTransactionInfoResponse * @static - * @param {tabletmanagerdata.IPrimaryStatusResponse} message PrimaryStatusResponse message or plain object to encode + * @param {tabletmanagerdata.IGetTransactionInfoResponse} message GetTransactionInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrimaryStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTransactionInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrimaryStatusResponse message from the specified reader or buffer. + * Decodes a GetTransactionInfoResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.PrimaryStatusResponse + * @memberof tabletmanagerdata.GetTransactionInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.PrimaryStatusResponse} PrimaryStatusResponse + * @returns {tabletmanagerdata.GetTransactionInfoResponse} GetTransactionInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrimaryStatusResponse.decode = function decode(reader, length) { + GetTransactionInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PrimaryStatusResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetTransactionInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.status = $root.replicationdata.PrimaryStatus.decode(reader, reader.uint32()); + message.state = reader.string(); + break; + } + case 2: { + message.message = reader.string(); + break; + } + case 3: { + message.time_created = reader.int64(); + break; + } + case 4: { + if (!(message.statements && message.statements.length)) + message.statements = []; + message.statements.push(reader.string()); break; } default: @@ -62359,126 +63146,175 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a PrimaryStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTransactionInfoResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.PrimaryStatusResponse + * @memberof tabletmanagerdata.GetTransactionInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.PrimaryStatusResponse} PrimaryStatusResponse + * @returns {tabletmanagerdata.GetTransactionInfoResponse} GetTransactionInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrimaryStatusResponse.decodeDelimited = function decodeDelimited(reader) { + GetTransactionInfoResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrimaryStatusResponse message. + * Verifies a GetTransactionInfoResponse message. * @function verify - * @memberof tabletmanagerdata.PrimaryStatusResponse + * @memberof tabletmanagerdata.GetTransactionInfoResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrimaryStatusResponse.verify = function verify(message) { + GetTransactionInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - let error = $root.replicationdata.PrimaryStatus.verify(message.status); - if (error) - return "status." + error; + if (message.state != null && message.hasOwnProperty("state")) + if (!$util.isString(message.state)) + return "state: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + 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.statements != null && message.hasOwnProperty("statements")) { + if (!Array.isArray(message.statements)) + return "statements: array expected"; + for (let i = 0; i < message.statements.length; ++i) + if (!$util.isString(message.statements[i])) + return "statements: string[] expected"; } return null; }; /** - * Creates a PrimaryStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTransactionInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.PrimaryStatusResponse + * @memberof tabletmanagerdata.GetTransactionInfoResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.PrimaryStatusResponse} PrimaryStatusResponse + * @returns {tabletmanagerdata.GetTransactionInfoResponse} GetTransactionInfoResponse */ - PrimaryStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.PrimaryStatusResponse) + GetTransactionInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetTransactionInfoResponse) return object; - let message = new $root.tabletmanagerdata.PrimaryStatusResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".tabletmanagerdata.PrimaryStatusResponse.status: object expected"); - message.status = $root.replicationdata.PrimaryStatus.fromObject(object.status); + let message = new $root.tabletmanagerdata.GetTransactionInfoResponse(); + if (object.state != null) + message.state = String(object.state); + if (object.message != null) + message.message = String(object.message); + 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.statements) { + if (!Array.isArray(object.statements)) + throw TypeError(".tabletmanagerdata.GetTransactionInfoResponse.statements: array expected"); + message.statements = []; + for (let i = 0; i < object.statements.length; ++i) + message.statements[i] = String(object.statements[i]); } return message; }; /** - * Creates a plain object from a PrimaryStatusResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetTransactionInfoResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.PrimaryStatusResponse + * @memberof tabletmanagerdata.GetTransactionInfoResponse * @static - * @param {tabletmanagerdata.PrimaryStatusResponse} message PrimaryStatusResponse + * @param {tabletmanagerdata.GetTransactionInfoResponse} message GetTransactionInfoResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrimaryStatusResponse.toObject = function toObject(message, options) { + GetTransactionInfoResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.replicationdata.PrimaryStatus.toObject(message.status, options); + if (options.arrays || options.defaults) + object.statements = []; + if (options.defaults) { + object.state = ""; + object.message = ""; + if ($util.Long) { + let 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.state != null && message.hasOwnProperty("state")) + object.state = message.state; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + 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.statements && message.statements.length) { + object.statements = []; + for (let j = 0; j < message.statements.length; ++j) + object.statements[j] = message.statements[j]; + } return object; }; /** - * Converts this PrimaryStatusResponse to JSON. + * Converts this GetTransactionInfoResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.PrimaryStatusResponse + * @memberof tabletmanagerdata.GetTransactionInfoResponse * @instance * @returns {Object.} JSON object */ - PrimaryStatusResponse.prototype.toJSON = function toJSON() { + GetTransactionInfoResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrimaryStatusResponse + * Gets the default type url for GetTransactionInfoResponse * @function getTypeUrl - * @memberof tabletmanagerdata.PrimaryStatusResponse + * @memberof tabletmanagerdata.GetTransactionInfoResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrimaryStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTransactionInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.PrimaryStatusResponse"; + return typeUrlPrefix + "/tabletmanagerdata.GetTransactionInfoResponse"; }; - return PrimaryStatusResponse; + return GetTransactionInfoResponse; })(); - tabletmanagerdata.PrimaryPositionRequest = (function() { + tabletmanagerdata.ConcludeTransactionRequest = (function() { /** - * Properties of a PrimaryPositionRequest. + * Properties of a ConcludeTransactionRequest. * @memberof tabletmanagerdata - * @interface IPrimaryPositionRequest + * @interface IConcludeTransactionRequest + * @property {string|null} [dtid] ConcludeTransactionRequest dtid + * @property {boolean|null} [mm] ConcludeTransactionRequest mm */ /** - * Constructs a new PrimaryPositionRequest. + * Constructs a new ConcludeTransactionRequest. * @memberof tabletmanagerdata - * @classdesc Represents a PrimaryPositionRequest. - * @implements IPrimaryPositionRequest + * @classdesc Represents a ConcludeTransactionRequest. + * @implements IConcludeTransactionRequest * @constructor - * @param {tabletmanagerdata.IPrimaryPositionRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IConcludeTransactionRequest=} [properties] Properties to set */ - function PrimaryPositionRequest(properties) { + function ConcludeTransactionRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62486,63 +63322,91 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new PrimaryPositionRequest instance using the specified properties. + * ConcludeTransactionRequest dtid. + * @member {string} dtid + * @memberof tabletmanagerdata.ConcludeTransactionRequest + * @instance + */ + ConcludeTransactionRequest.prototype.dtid = ""; + + /** + * ConcludeTransactionRequest mm. + * @member {boolean} mm + * @memberof tabletmanagerdata.ConcludeTransactionRequest + * @instance + */ + ConcludeTransactionRequest.prototype.mm = false; + + /** + * Creates a new ConcludeTransactionRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.PrimaryPositionRequest + * @memberof tabletmanagerdata.ConcludeTransactionRequest * @static - * @param {tabletmanagerdata.IPrimaryPositionRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.PrimaryPositionRequest} PrimaryPositionRequest instance + * @param {tabletmanagerdata.IConcludeTransactionRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ConcludeTransactionRequest} ConcludeTransactionRequest instance */ - PrimaryPositionRequest.create = function create(properties) { - return new PrimaryPositionRequest(properties); + ConcludeTransactionRequest.create = function create(properties) { + return new ConcludeTransactionRequest(properties); }; /** - * Encodes the specified PrimaryPositionRequest message. Does not implicitly {@link tabletmanagerdata.PrimaryPositionRequest.verify|verify} messages. + * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link tabletmanagerdata.ConcludeTransactionRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.PrimaryPositionRequest + * @memberof tabletmanagerdata.ConcludeTransactionRequest * @static - * @param {tabletmanagerdata.IPrimaryPositionRequest} message PrimaryPositionRequest message or plain object to encode + * @param {tabletmanagerdata.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrimaryPositionRequest.encode = function encode(message, writer) { + ConcludeTransactionRequest.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.mm != null && Object.hasOwnProperty.call(message, "mm")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.mm); return writer; }; /** - * Encodes the specified PrimaryPositionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryPositionRequest.verify|verify} messages. + * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ConcludeTransactionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.PrimaryPositionRequest + * @memberof tabletmanagerdata.ConcludeTransactionRequest * @static - * @param {tabletmanagerdata.IPrimaryPositionRequest} message PrimaryPositionRequest message or plain object to encode + * @param {tabletmanagerdata.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrimaryPositionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ConcludeTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrimaryPositionRequest message from the specified reader or buffer. + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.PrimaryPositionRequest + * @memberof tabletmanagerdata.ConcludeTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.PrimaryPositionRequest} PrimaryPositionRequest + * @returns {tabletmanagerdata.ConcludeTransactionRequest} ConcludeTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrimaryPositionRequest.decode = function decode(reader, length) { + ConcludeTransactionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PrimaryPositionRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ConcludeTransactionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.dtid = reader.string(); + break; + } + case 2: { + message.mm = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -62552,109 +63416,130 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a PrimaryPositionRequest message from the specified reader or buffer, length delimited. + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.PrimaryPositionRequest + * @memberof tabletmanagerdata.ConcludeTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.PrimaryPositionRequest} PrimaryPositionRequest + * @returns {tabletmanagerdata.ConcludeTransactionRequest} ConcludeTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrimaryPositionRequest.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 PrimaryPositionRequest message. + * Verifies a ConcludeTransactionRequest message. * @function verify - * @memberof tabletmanagerdata.PrimaryPositionRequest + * @memberof tabletmanagerdata.ConcludeTransactionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrimaryPositionRequest.verify = function verify(message) { + ConcludeTransactionRequest.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.mm != null && message.hasOwnProperty("mm")) + if (typeof message.mm !== "boolean") + return "mm: boolean expected"; return null; }; /** - * Creates a PrimaryPositionRequest 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 tabletmanagerdata.PrimaryPositionRequest + * @memberof tabletmanagerdata.ConcludeTransactionRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.PrimaryPositionRequest} PrimaryPositionRequest + * @returns {tabletmanagerdata.ConcludeTransactionRequest} ConcludeTransactionRequest */ - PrimaryPositionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.PrimaryPositionRequest) + ConcludeTransactionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ConcludeTransactionRequest) return object; - return new $root.tabletmanagerdata.PrimaryPositionRequest(); + let message = new $root.tabletmanagerdata.ConcludeTransactionRequest(); + if (object.dtid != null) + message.dtid = String(object.dtid); + if (object.mm != null) + message.mm = Boolean(object.mm); + return message; }; /** - * Creates a plain object from a PrimaryPositionRequest 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 tabletmanagerdata.PrimaryPositionRequest + * @memberof tabletmanagerdata.ConcludeTransactionRequest * @static - * @param {tabletmanagerdata.PrimaryPositionRequest} message PrimaryPositionRequest + * @param {tabletmanagerdata.ConcludeTransactionRequest} message ConcludeTransactionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrimaryPositionRequest.toObject = function toObject() { - return {}; + ConcludeTransactionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.dtid = ""; + object.mm = false; + } + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; + if (message.mm != null && message.hasOwnProperty("mm")) + object.mm = message.mm; + return object; }; /** - * Converts this PrimaryPositionRequest to JSON. + * Converts this ConcludeTransactionRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.PrimaryPositionRequest + * @memberof tabletmanagerdata.ConcludeTransactionRequest * @instance * @returns {Object.} JSON object */ - PrimaryPositionRequest.prototype.toJSON = function toJSON() { + ConcludeTransactionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrimaryPositionRequest + * Gets the default type url for ConcludeTransactionRequest * @function getTypeUrl - * @memberof tabletmanagerdata.PrimaryPositionRequest + * @memberof tabletmanagerdata.ConcludeTransactionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrimaryPositionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ConcludeTransactionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.PrimaryPositionRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ConcludeTransactionRequest"; }; - return PrimaryPositionRequest; + return ConcludeTransactionRequest; })(); - tabletmanagerdata.PrimaryPositionResponse = (function() { + tabletmanagerdata.ConcludeTransactionResponse = (function() { /** - * Properties of a PrimaryPositionResponse. + * Properties of a ConcludeTransactionResponse. * @memberof tabletmanagerdata - * @interface IPrimaryPositionResponse - * @property {string|null} [position] PrimaryPositionResponse position + * @interface IConcludeTransactionResponse */ /** - * Constructs a new PrimaryPositionResponse. + * Constructs a new ConcludeTransactionResponse. * @memberof tabletmanagerdata - * @classdesc Represents a PrimaryPositionResponse. - * @implements IPrimaryPositionResponse + * @classdesc Represents a ConcludeTransactionResponse. + * @implements IConcludeTransactionResponse * @constructor - * @param {tabletmanagerdata.IPrimaryPositionResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IConcludeTransactionResponse=} [properties] Properties to set */ - function PrimaryPositionResponse(properties) { + function ConcludeTransactionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62662,77 +63547,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * PrimaryPositionResponse position. - * @member {string} position - * @memberof tabletmanagerdata.PrimaryPositionResponse - * @instance - */ - PrimaryPositionResponse.prototype.position = ""; - - /** - * Creates a new PrimaryPositionResponse instance using the specified properties. + * Creates a new ConcludeTransactionResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.PrimaryPositionResponse + * @memberof tabletmanagerdata.ConcludeTransactionResponse * @static - * @param {tabletmanagerdata.IPrimaryPositionResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.PrimaryPositionResponse} PrimaryPositionResponse instance + * @param {tabletmanagerdata.IConcludeTransactionResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ConcludeTransactionResponse} ConcludeTransactionResponse instance */ - PrimaryPositionResponse.create = function create(properties) { - return new PrimaryPositionResponse(properties); + ConcludeTransactionResponse.create = function create(properties) { + return new ConcludeTransactionResponse(properties); }; /** - * Encodes the specified PrimaryPositionResponse message. Does not implicitly {@link tabletmanagerdata.PrimaryPositionResponse.verify|verify} messages. + * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link tabletmanagerdata.ConcludeTransactionResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.PrimaryPositionResponse + * @memberof tabletmanagerdata.ConcludeTransactionResponse * @static - * @param {tabletmanagerdata.IPrimaryPositionResponse} message PrimaryPositionResponse message or plain object to encode + * @param {tabletmanagerdata.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrimaryPositionResponse.encode = function encode(message, writer) { + ConcludeTransactionResponse.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); return writer; }; /** - * Encodes the specified PrimaryPositionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryPositionResponse.verify|verify} messages. + * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ConcludeTransactionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.PrimaryPositionResponse + * @memberof tabletmanagerdata.ConcludeTransactionResponse * @static - * @param {tabletmanagerdata.IPrimaryPositionResponse} message PrimaryPositionResponse message or plain object to encode + * @param {tabletmanagerdata.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrimaryPositionResponse.encodeDelimited = function encodeDelimited(message, writer) { + ConcludeTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrimaryPositionResponse message from the specified reader or buffer. + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.PrimaryPositionResponse + * @memberof tabletmanagerdata.ConcludeTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.PrimaryPositionResponse} PrimaryPositionResponse + * @returns {tabletmanagerdata.ConcludeTransactionResponse} ConcludeTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrimaryPositionResponse.decode = function decode(reader, length) { + ConcludeTransactionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PrimaryPositionResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ConcludeTransactionResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.position = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -62742,122 +63613,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a PrimaryPositionResponse message from the specified reader or buffer, length delimited. + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.PrimaryPositionResponse + * @memberof tabletmanagerdata.ConcludeTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.PrimaryPositionResponse} PrimaryPositionResponse + * @returns {tabletmanagerdata.ConcludeTransactionResponse} ConcludeTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrimaryPositionResponse.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 PrimaryPositionResponse message. + * Verifies a ConcludeTransactionResponse message. * @function verify - * @memberof tabletmanagerdata.PrimaryPositionResponse + * @memberof tabletmanagerdata.ConcludeTransactionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrimaryPositionResponse.verify = function verify(message) { + ConcludeTransactionResponse.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"; return null; }; /** - * Creates a PrimaryPositionResponse 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 tabletmanagerdata.PrimaryPositionResponse + * @memberof tabletmanagerdata.ConcludeTransactionResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.PrimaryPositionResponse} PrimaryPositionResponse + * @returns {tabletmanagerdata.ConcludeTransactionResponse} ConcludeTransactionResponse */ - PrimaryPositionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.PrimaryPositionResponse) + ConcludeTransactionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ConcludeTransactionResponse) return object; - let message = new $root.tabletmanagerdata.PrimaryPositionResponse(); - if (object.position != null) - message.position = String(object.position); - return message; + return new $root.tabletmanagerdata.ConcludeTransactionResponse(); }; /** - * Creates a plain object from a PrimaryPositionResponse 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 tabletmanagerdata.PrimaryPositionResponse + * @memberof tabletmanagerdata.ConcludeTransactionResponse * @static - * @param {tabletmanagerdata.PrimaryPositionResponse} message PrimaryPositionResponse + * @param {tabletmanagerdata.ConcludeTransactionResponse} message ConcludeTransactionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrimaryPositionResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.position = ""; - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; - return object; + ConcludeTransactionResponse.toObject = function toObject() { + return {}; }; /** - * Converts this PrimaryPositionResponse to JSON. + * Converts this ConcludeTransactionResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.PrimaryPositionResponse + * @memberof tabletmanagerdata.ConcludeTransactionResponse * @instance * @returns {Object.} JSON object */ - PrimaryPositionResponse.prototype.toJSON = function toJSON() { + ConcludeTransactionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrimaryPositionResponse + * Gets the default type url for ConcludeTransactionResponse * @function getTypeUrl - * @memberof tabletmanagerdata.PrimaryPositionResponse + * @memberof tabletmanagerdata.ConcludeTransactionResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrimaryPositionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ConcludeTransactionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.PrimaryPositionResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ConcludeTransactionResponse"; }; - return PrimaryPositionResponse; + return ConcludeTransactionResponse; })(); - tabletmanagerdata.WaitForPositionRequest = (function() { + tabletmanagerdata.MysqlHostMetricsRequest = (function() { /** - * Properties of a WaitForPositionRequest. + * Properties of a MysqlHostMetricsRequest. * @memberof tabletmanagerdata - * @interface IWaitForPositionRequest - * @property {string|null} [position] WaitForPositionRequest position + * @interface IMysqlHostMetricsRequest */ /** - * Constructs a new WaitForPositionRequest. + * Constructs a new MysqlHostMetricsRequest. * @memberof tabletmanagerdata - * @classdesc Represents a WaitForPositionRequest. - * @implements IWaitForPositionRequest + * @classdesc Represents a MysqlHostMetricsRequest. + * @implements IMysqlHostMetricsRequest * @constructor - * @param {tabletmanagerdata.IWaitForPositionRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IMysqlHostMetricsRequest=} [properties] Properties to set */ - function WaitForPositionRequest(properties) { + function MysqlHostMetricsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62865,77 +63722,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * WaitForPositionRequest position. - * @member {string} position - * @memberof tabletmanagerdata.WaitForPositionRequest - * @instance - */ - WaitForPositionRequest.prototype.position = ""; - - /** - * Creates a new WaitForPositionRequest instance using the specified properties. + * Creates a new MysqlHostMetricsRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.WaitForPositionRequest + * @memberof tabletmanagerdata.MysqlHostMetricsRequest * @static - * @param {tabletmanagerdata.IWaitForPositionRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.WaitForPositionRequest} WaitForPositionRequest instance + * @param {tabletmanagerdata.IMysqlHostMetricsRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.MysqlHostMetricsRequest} MysqlHostMetricsRequest instance */ - WaitForPositionRequest.create = function create(properties) { - return new WaitForPositionRequest(properties); + MysqlHostMetricsRequest.create = function create(properties) { + return new MysqlHostMetricsRequest(properties); }; /** - * Encodes the specified WaitForPositionRequest message. Does not implicitly {@link tabletmanagerdata.WaitForPositionRequest.verify|verify} messages. + * Encodes the specified MysqlHostMetricsRequest message. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.WaitForPositionRequest + * @memberof tabletmanagerdata.MysqlHostMetricsRequest * @static - * @param {tabletmanagerdata.IWaitForPositionRequest} message WaitForPositionRequest message or plain object to encode + * @param {tabletmanagerdata.IMysqlHostMetricsRequest} message MysqlHostMetricsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WaitForPositionRequest.encode = function encode(message, writer) { + MysqlHostMetricsRequest.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); return writer; }; /** - * Encodes the specified WaitForPositionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.WaitForPositionRequest.verify|verify} messages. + * Encodes the specified MysqlHostMetricsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.WaitForPositionRequest + * @memberof tabletmanagerdata.MysqlHostMetricsRequest * @static - * @param {tabletmanagerdata.IWaitForPositionRequest} message WaitForPositionRequest message or plain object to encode + * @param {tabletmanagerdata.IMysqlHostMetricsRequest} message MysqlHostMetricsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WaitForPositionRequest.encodeDelimited = function encodeDelimited(message, writer) { + MysqlHostMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WaitForPositionRequest message from the specified reader or buffer. + * Decodes a MysqlHostMetricsRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.WaitForPositionRequest + * @memberof tabletmanagerdata.MysqlHostMetricsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.WaitForPositionRequest} WaitForPositionRequest + * @returns {tabletmanagerdata.MysqlHostMetricsRequest} MysqlHostMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WaitForPositionRequest.decode = function decode(reader, length) { + MysqlHostMetricsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.WaitForPositionRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.MysqlHostMetricsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.position = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -62945,121 +63788,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a WaitForPositionRequest message from the specified reader or buffer, length delimited. + * Decodes a MysqlHostMetricsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.WaitForPositionRequest + * @memberof tabletmanagerdata.MysqlHostMetricsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.WaitForPositionRequest} WaitForPositionRequest + * @returns {tabletmanagerdata.MysqlHostMetricsRequest} MysqlHostMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WaitForPositionRequest.decodeDelimited = function decodeDelimited(reader) { + MysqlHostMetricsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WaitForPositionRequest message. + * Verifies a MysqlHostMetricsRequest message. * @function verify - * @memberof tabletmanagerdata.WaitForPositionRequest + * @memberof tabletmanagerdata.MysqlHostMetricsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WaitForPositionRequest.verify = function verify(message) { + MysqlHostMetricsRequest.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"; return null; }; /** - * Creates a WaitForPositionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MysqlHostMetricsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.WaitForPositionRequest + * @memberof tabletmanagerdata.MysqlHostMetricsRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.WaitForPositionRequest} WaitForPositionRequest + * @returns {tabletmanagerdata.MysqlHostMetricsRequest} MysqlHostMetricsRequest */ - WaitForPositionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.WaitForPositionRequest) + MysqlHostMetricsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.MysqlHostMetricsRequest) return object; - let message = new $root.tabletmanagerdata.WaitForPositionRequest(); - if (object.position != null) - message.position = String(object.position); - return message; + return new $root.tabletmanagerdata.MysqlHostMetricsRequest(); }; /** - * Creates a plain object from a WaitForPositionRequest message. Also converts values to other types if specified. + * Creates a plain object from a MysqlHostMetricsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.WaitForPositionRequest + * @memberof tabletmanagerdata.MysqlHostMetricsRequest * @static - * @param {tabletmanagerdata.WaitForPositionRequest} message WaitForPositionRequest + * @param {tabletmanagerdata.MysqlHostMetricsRequest} message MysqlHostMetricsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WaitForPositionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.position = ""; - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; - return object; + MysqlHostMetricsRequest.toObject = function toObject() { + return {}; }; /** - * Converts this WaitForPositionRequest to JSON. + * Converts this MysqlHostMetricsRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.WaitForPositionRequest + * @memberof tabletmanagerdata.MysqlHostMetricsRequest * @instance * @returns {Object.} JSON object */ - WaitForPositionRequest.prototype.toJSON = function toJSON() { + MysqlHostMetricsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WaitForPositionRequest + * Gets the default type url for MysqlHostMetricsRequest * @function getTypeUrl - * @memberof tabletmanagerdata.WaitForPositionRequest + * @memberof tabletmanagerdata.MysqlHostMetricsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WaitForPositionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MysqlHostMetricsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.WaitForPositionRequest"; + return typeUrlPrefix + "/tabletmanagerdata.MysqlHostMetricsRequest"; }; - return WaitForPositionRequest; + return MysqlHostMetricsRequest; })(); - tabletmanagerdata.WaitForPositionResponse = (function() { + tabletmanagerdata.MysqlHostMetricsResponse = (function() { /** - * Properties of a WaitForPositionResponse. + * Properties of a MysqlHostMetricsResponse. * @memberof tabletmanagerdata - * @interface IWaitForPositionResponse + * @interface IMysqlHostMetricsResponse + * @property {mysqlctl.IHostMetricsResponse|null} [HostMetrics] MysqlHostMetricsResponse HostMetrics */ /** - * Constructs a new WaitForPositionResponse. + * Constructs a new MysqlHostMetricsResponse. * @memberof tabletmanagerdata - * @classdesc Represents a WaitForPositionResponse. - * @implements IWaitForPositionResponse + * @classdesc Represents a MysqlHostMetricsResponse. + * @implements IMysqlHostMetricsResponse * @constructor - * @param {tabletmanagerdata.IWaitForPositionResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IMysqlHostMetricsResponse=} [properties] Properties to set */ - function WaitForPositionResponse(properties) { + function MysqlHostMetricsResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63067,63 +63898,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new WaitForPositionResponse instance using the specified properties. + * MysqlHostMetricsResponse HostMetrics. + * @member {mysqlctl.IHostMetricsResponse|null|undefined} HostMetrics + * @memberof tabletmanagerdata.MysqlHostMetricsResponse + * @instance + */ + MysqlHostMetricsResponse.prototype.HostMetrics = null; + + /** + * Creates a new MysqlHostMetricsResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.WaitForPositionResponse + * @memberof tabletmanagerdata.MysqlHostMetricsResponse * @static - * @param {tabletmanagerdata.IWaitForPositionResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.WaitForPositionResponse} WaitForPositionResponse instance + * @param {tabletmanagerdata.IMysqlHostMetricsResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.MysqlHostMetricsResponse} MysqlHostMetricsResponse instance */ - WaitForPositionResponse.create = function create(properties) { - return new WaitForPositionResponse(properties); + MysqlHostMetricsResponse.create = function create(properties) { + return new MysqlHostMetricsResponse(properties); }; /** - * Encodes the specified WaitForPositionResponse message. Does not implicitly {@link tabletmanagerdata.WaitForPositionResponse.verify|verify} messages. + * Encodes the specified MysqlHostMetricsResponse message. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.WaitForPositionResponse + * @memberof tabletmanagerdata.MysqlHostMetricsResponse * @static - * @param {tabletmanagerdata.IWaitForPositionResponse} message WaitForPositionResponse message or plain object to encode + * @param {tabletmanagerdata.IMysqlHostMetricsResponse} message MysqlHostMetricsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WaitForPositionResponse.encode = function encode(message, writer) { + MysqlHostMetricsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.HostMetrics != null && Object.hasOwnProperty.call(message, "HostMetrics")) + $root.mysqlctl.HostMetricsResponse.encode(message.HostMetrics, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified WaitForPositionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.WaitForPositionResponse.verify|verify} messages. + * Encodes the specified MysqlHostMetricsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.MysqlHostMetricsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.WaitForPositionResponse + * @memberof tabletmanagerdata.MysqlHostMetricsResponse * @static - * @param {tabletmanagerdata.IWaitForPositionResponse} message WaitForPositionResponse message or plain object to encode + * @param {tabletmanagerdata.IMysqlHostMetricsResponse} message MysqlHostMetricsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WaitForPositionResponse.encodeDelimited = function encodeDelimited(message, writer) { + MysqlHostMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WaitForPositionResponse message from the specified reader or buffer. + * Decodes a MysqlHostMetricsResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.WaitForPositionResponse + * @memberof tabletmanagerdata.MysqlHostMetricsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.WaitForPositionResponse} WaitForPositionResponse + * @returns {tabletmanagerdata.MysqlHostMetricsResponse} MysqlHostMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WaitForPositionResponse.decode = function decode(reader, length) { + MysqlHostMetricsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.WaitForPositionResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.MysqlHostMetricsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.HostMetrics = $root.mysqlctl.HostMetricsResponse.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -63133,108 +63978,126 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a WaitForPositionResponse message from the specified reader or buffer, length delimited. + * Decodes a MysqlHostMetricsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.WaitForPositionResponse + * @memberof tabletmanagerdata.MysqlHostMetricsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.WaitForPositionResponse} WaitForPositionResponse + * @returns {tabletmanagerdata.MysqlHostMetricsResponse} MysqlHostMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WaitForPositionResponse.decodeDelimited = function decodeDelimited(reader) { + MysqlHostMetricsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WaitForPositionResponse message. + * Verifies a MysqlHostMetricsResponse message. * @function verify - * @memberof tabletmanagerdata.WaitForPositionResponse + * @memberof tabletmanagerdata.MysqlHostMetricsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WaitForPositionResponse.verify = function verify(message) { + MysqlHostMetricsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.HostMetrics != null && message.hasOwnProperty("HostMetrics")) { + let error = $root.mysqlctl.HostMetricsResponse.verify(message.HostMetrics); + if (error) + return "HostMetrics." + error; + } return null; }; /** - * Creates a WaitForPositionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MysqlHostMetricsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.WaitForPositionResponse + * @memberof tabletmanagerdata.MysqlHostMetricsResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.WaitForPositionResponse} WaitForPositionResponse + * @returns {tabletmanagerdata.MysqlHostMetricsResponse} MysqlHostMetricsResponse */ - WaitForPositionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.WaitForPositionResponse) + MysqlHostMetricsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.MysqlHostMetricsResponse) return object; - return new $root.tabletmanagerdata.WaitForPositionResponse(); + let message = new $root.tabletmanagerdata.MysqlHostMetricsResponse(); + if (object.HostMetrics != null) { + if (typeof object.HostMetrics !== "object") + throw TypeError(".tabletmanagerdata.MysqlHostMetricsResponse.HostMetrics: object expected"); + message.HostMetrics = $root.mysqlctl.HostMetricsResponse.fromObject(object.HostMetrics); + } + return message; }; /** - * Creates a plain object from a WaitForPositionResponse message. Also converts values to other types if specified. + * Creates a plain object from a MysqlHostMetricsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.WaitForPositionResponse + * @memberof tabletmanagerdata.MysqlHostMetricsResponse * @static - * @param {tabletmanagerdata.WaitForPositionResponse} message WaitForPositionResponse + * @param {tabletmanagerdata.MysqlHostMetricsResponse} message MysqlHostMetricsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WaitForPositionResponse.toObject = function toObject() { - return {}; + MysqlHostMetricsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.HostMetrics = null; + if (message.HostMetrics != null && message.hasOwnProperty("HostMetrics")) + object.HostMetrics = $root.mysqlctl.HostMetricsResponse.toObject(message.HostMetrics, options); + return object; }; /** - * Converts this WaitForPositionResponse to JSON. + * Converts this MysqlHostMetricsResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.WaitForPositionResponse + * @memberof tabletmanagerdata.MysqlHostMetricsResponse * @instance * @returns {Object.} JSON object */ - WaitForPositionResponse.prototype.toJSON = function toJSON() { + MysqlHostMetricsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WaitForPositionResponse + * Gets the default type url for MysqlHostMetricsResponse * @function getTypeUrl - * @memberof tabletmanagerdata.WaitForPositionResponse + * @memberof tabletmanagerdata.MysqlHostMetricsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WaitForPositionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MysqlHostMetricsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.WaitForPositionResponse"; + return typeUrlPrefix + "/tabletmanagerdata.MysqlHostMetricsResponse"; }; - return WaitForPositionResponse; + return MysqlHostMetricsResponse; })(); - tabletmanagerdata.StopReplicationRequest = (function() { + tabletmanagerdata.ReplicationStatusRequest = (function() { /** - * Properties of a StopReplicationRequest. + * Properties of a ReplicationStatusRequest. * @memberof tabletmanagerdata - * @interface IStopReplicationRequest + * @interface IReplicationStatusRequest */ /** - * Constructs a new StopReplicationRequest. + * Constructs a new ReplicationStatusRequest. * @memberof tabletmanagerdata - * @classdesc Represents a StopReplicationRequest. - * @implements IStopReplicationRequest + * @classdesc Represents a ReplicationStatusRequest. + * @implements IReplicationStatusRequest * @constructor - * @param {tabletmanagerdata.IStopReplicationRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IReplicationStatusRequest=} [properties] Properties to set */ - function StopReplicationRequest(properties) { + function ReplicationStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63242,60 +64105,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new StopReplicationRequest instance using the specified properties. + * Creates a new ReplicationStatusRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.StopReplicationRequest + * @memberof tabletmanagerdata.ReplicationStatusRequest * @static - * @param {tabletmanagerdata.IStopReplicationRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.StopReplicationRequest} StopReplicationRequest instance + * @param {tabletmanagerdata.IReplicationStatusRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ReplicationStatusRequest} ReplicationStatusRequest instance */ - StopReplicationRequest.create = function create(properties) { - return new StopReplicationRequest(properties); + ReplicationStatusRequest.create = function create(properties) { + return new ReplicationStatusRequest(properties); }; /** - * Encodes the specified StopReplicationRequest message. Does not implicitly {@link tabletmanagerdata.StopReplicationRequest.verify|verify} messages. + * Encodes the specified ReplicationStatusRequest message. Does not implicitly {@link tabletmanagerdata.ReplicationStatusRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.StopReplicationRequest + * @memberof tabletmanagerdata.ReplicationStatusRequest * @static - * @param {tabletmanagerdata.IStopReplicationRequest} message StopReplicationRequest message or plain object to encode + * @param {tabletmanagerdata.IReplicationStatusRequest} message ReplicationStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationRequest.encode = function encode(message, writer) { + ReplicationStatusRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified StopReplicationRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationRequest.verify|verify} messages. + * Encodes the specified ReplicationStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicationStatusRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.StopReplicationRequest + * @memberof tabletmanagerdata.ReplicationStatusRequest * @static - * @param {tabletmanagerdata.IStopReplicationRequest} message StopReplicationRequest message or plain object to encode + * @param {tabletmanagerdata.IReplicationStatusRequest} message ReplicationStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReplicationStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopReplicationRequest message from the specified reader or buffer. + * Decodes a ReplicationStatusRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.StopReplicationRequest + * @memberof tabletmanagerdata.ReplicationStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.StopReplicationRequest} StopReplicationRequest + * @returns {tabletmanagerdata.ReplicationStatusRequest} ReplicationStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationRequest.decode = function decode(reader, length) { + ReplicationStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StopReplicationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReplicationStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -63308,108 +64171,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a StopReplicationRequest message from the specified reader or buffer, length delimited. + * Decodes a ReplicationStatusRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.StopReplicationRequest + * @memberof tabletmanagerdata.ReplicationStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.StopReplicationRequest} StopReplicationRequest + * @returns {tabletmanagerdata.ReplicationStatusRequest} ReplicationStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationRequest.decodeDelimited = function decodeDelimited(reader) { + ReplicationStatusRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopReplicationRequest message. + * Verifies a ReplicationStatusRequest message. * @function verify - * @memberof tabletmanagerdata.StopReplicationRequest + * @memberof tabletmanagerdata.ReplicationStatusRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopReplicationRequest.verify = function verify(message) { + ReplicationStatusRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a StopReplicationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReplicationStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.StopReplicationRequest + * @memberof tabletmanagerdata.ReplicationStatusRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.StopReplicationRequest} StopReplicationRequest + * @returns {tabletmanagerdata.ReplicationStatusRequest} ReplicationStatusRequest */ - StopReplicationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.StopReplicationRequest) + ReplicationStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReplicationStatusRequest) return object; - return new $root.tabletmanagerdata.StopReplicationRequest(); + return new $root.tabletmanagerdata.ReplicationStatusRequest(); }; /** - * Creates a plain object from a StopReplicationRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReplicationStatusRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.StopReplicationRequest + * @memberof tabletmanagerdata.ReplicationStatusRequest * @static - * @param {tabletmanagerdata.StopReplicationRequest} message StopReplicationRequest + * @param {tabletmanagerdata.ReplicationStatusRequest} message ReplicationStatusRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopReplicationRequest.toObject = function toObject() { + ReplicationStatusRequest.toObject = function toObject() { return {}; }; /** - * Converts this StopReplicationRequest to JSON. + * Converts this ReplicationStatusRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.StopReplicationRequest + * @memberof tabletmanagerdata.ReplicationStatusRequest * @instance * @returns {Object.} JSON object */ - StopReplicationRequest.prototype.toJSON = function toJSON() { + ReplicationStatusRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StopReplicationRequest + * Gets the default type url for ReplicationStatusRequest * @function getTypeUrl - * @memberof tabletmanagerdata.StopReplicationRequest + * @memberof tabletmanagerdata.ReplicationStatusRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StopReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReplicationStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.StopReplicationRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ReplicationStatusRequest"; }; - return StopReplicationRequest; + return ReplicationStatusRequest; })(); - tabletmanagerdata.StopReplicationResponse = (function() { + tabletmanagerdata.ReplicationStatusResponse = (function() { /** - * Properties of a StopReplicationResponse. + * Properties of a ReplicationStatusResponse. * @memberof tabletmanagerdata - * @interface IStopReplicationResponse + * @interface IReplicationStatusResponse + * @property {replicationdata.IStatus|null} [status] ReplicationStatusResponse status */ /** - * Constructs a new StopReplicationResponse. + * Constructs a new ReplicationStatusResponse. * @memberof tabletmanagerdata - * @classdesc Represents a StopReplicationResponse. - * @implements IStopReplicationResponse + * @classdesc Represents a ReplicationStatusResponse. + * @implements IReplicationStatusResponse * @constructor - * @param {tabletmanagerdata.IStopReplicationResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IReplicationStatusResponse=} [properties] Properties to set */ - function StopReplicationResponse(properties) { + function ReplicationStatusResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63417,63 +64281,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new StopReplicationResponse instance using the specified properties. + * ReplicationStatusResponse status. + * @member {replicationdata.IStatus|null|undefined} status + * @memberof tabletmanagerdata.ReplicationStatusResponse + * @instance + */ + ReplicationStatusResponse.prototype.status = null; + + /** + * Creates a new ReplicationStatusResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.StopReplicationResponse + * @memberof tabletmanagerdata.ReplicationStatusResponse * @static - * @param {tabletmanagerdata.IStopReplicationResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.StopReplicationResponse} StopReplicationResponse instance + * @param {tabletmanagerdata.IReplicationStatusResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ReplicationStatusResponse} ReplicationStatusResponse instance */ - StopReplicationResponse.create = function create(properties) { - return new StopReplicationResponse(properties); + ReplicationStatusResponse.create = function create(properties) { + return new ReplicationStatusResponse(properties); }; /** - * Encodes the specified StopReplicationResponse message. Does not implicitly {@link tabletmanagerdata.StopReplicationResponse.verify|verify} messages. + * Encodes the specified ReplicationStatusResponse message. Does not implicitly {@link tabletmanagerdata.ReplicationStatusResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.StopReplicationResponse + * @memberof tabletmanagerdata.ReplicationStatusResponse * @static - * @param {tabletmanagerdata.IStopReplicationResponse} message StopReplicationResponse message or plain object to encode + * @param {tabletmanagerdata.IReplicationStatusResponse} message ReplicationStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationResponse.encode = function encode(message, writer) { + ReplicationStatusResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.replicationdata.Status.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified StopReplicationResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationResponse.verify|verify} messages. + * Encodes the specified ReplicationStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicationStatusResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.StopReplicationResponse + * @memberof tabletmanagerdata.ReplicationStatusResponse * @static - * @param {tabletmanagerdata.IStopReplicationResponse} message StopReplicationResponse message or plain object to encode + * @param {tabletmanagerdata.IReplicationStatusResponse} message ReplicationStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReplicationStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopReplicationResponse message from the specified reader or buffer. + * Decodes a ReplicationStatusResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.StopReplicationResponse + * @memberof tabletmanagerdata.ReplicationStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.StopReplicationResponse} StopReplicationResponse + * @returns {tabletmanagerdata.ReplicationStatusResponse} ReplicationStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationResponse.decode = function decode(reader, length) { + ReplicationStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StopReplicationResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReplicationStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.status = $root.replicationdata.Status.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -63483,110 +64361,126 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a StopReplicationResponse message from the specified reader or buffer, length delimited. + * Decodes a ReplicationStatusResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.StopReplicationResponse + * @memberof tabletmanagerdata.ReplicationStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.StopReplicationResponse} StopReplicationResponse + * @returns {tabletmanagerdata.ReplicationStatusResponse} ReplicationStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationResponse.decodeDelimited = function decodeDelimited(reader) { + ReplicationStatusResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopReplicationResponse message. + * Verifies a ReplicationStatusResponse message. * @function verify - * @memberof tabletmanagerdata.StopReplicationResponse + * @memberof tabletmanagerdata.ReplicationStatusResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopReplicationResponse.verify = function verify(message) { + ReplicationStatusResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.status != null && message.hasOwnProperty("status")) { + let error = $root.replicationdata.Status.verify(message.status); + if (error) + return "status." + error; + } return null; }; /** - * Creates a StopReplicationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReplicationStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.StopReplicationResponse + * @memberof tabletmanagerdata.ReplicationStatusResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.StopReplicationResponse} StopReplicationResponse + * @returns {tabletmanagerdata.ReplicationStatusResponse} ReplicationStatusResponse */ - StopReplicationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.StopReplicationResponse) + ReplicationStatusResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReplicationStatusResponse) return object; - return new $root.tabletmanagerdata.StopReplicationResponse(); + let message = new $root.tabletmanagerdata.ReplicationStatusResponse(); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".tabletmanagerdata.ReplicationStatusResponse.status: object expected"); + message.status = $root.replicationdata.Status.fromObject(object.status); + } + return message; }; /** - * Creates a plain object from a StopReplicationResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReplicationStatusResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.StopReplicationResponse + * @memberof tabletmanagerdata.ReplicationStatusResponse * @static - * @param {tabletmanagerdata.StopReplicationResponse} message StopReplicationResponse + * @param {tabletmanagerdata.ReplicationStatusResponse} message ReplicationStatusResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopReplicationResponse.toObject = function toObject() { - return {}; + ReplicationStatusResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.status = null; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.replicationdata.Status.toObject(message.status, options); + return object; }; /** - * Converts this StopReplicationResponse to JSON. + * Converts this ReplicationStatusResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.StopReplicationResponse + * @memberof tabletmanagerdata.ReplicationStatusResponse * @instance * @returns {Object.} JSON object */ - StopReplicationResponse.prototype.toJSON = function toJSON() { + ReplicationStatusResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StopReplicationResponse + * Gets the default type url for ReplicationStatusResponse * @function getTypeUrl - * @memberof tabletmanagerdata.StopReplicationResponse + * @memberof tabletmanagerdata.ReplicationStatusResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StopReplicationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReplicationStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.StopReplicationResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ReplicationStatusResponse"; }; - return StopReplicationResponse; + return ReplicationStatusResponse; })(); - tabletmanagerdata.StopReplicationMinimumRequest = (function() { + tabletmanagerdata.PrimaryStatusRequest = (function() { /** - * Properties of a StopReplicationMinimumRequest. + * Properties of a PrimaryStatusRequest. * @memberof tabletmanagerdata - * @interface IStopReplicationMinimumRequest - * @property {string|null} [position] StopReplicationMinimumRequest position - * @property {number|Long|null} [wait_timeout] StopReplicationMinimumRequest wait_timeout + * @interface IPrimaryStatusRequest */ /** - * Constructs a new StopReplicationMinimumRequest. + * Constructs a new PrimaryStatusRequest. * @memberof tabletmanagerdata - * @classdesc Represents a StopReplicationMinimumRequest. - * @implements IStopReplicationMinimumRequest + * @classdesc Represents a PrimaryStatusRequest. + * @implements IPrimaryStatusRequest * @constructor - * @param {tabletmanagerdata.IStopReplicationMinimumRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IPrimaryStatusRequest=} [properties] Properties to set */ - function StopReplicationMinimumRequest(properties) { + function PrimaryStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63594,91 +64488,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * StopReplicationMinimumRequest position. - * @member {string} position - * @memberof tabletmanagerdata.StopReplicationMinimumRequest - * @instance - */ - StopReplicationMinimumRequest.prototype.position = ""; - - /** - * StopReplicationMinimumRequest wait_timeout. - * @member {number|Long} wait_timeout - * @memberof tabletmanagerdata.StopReplicationMinimumRequest - * @instance - */ - StopReplicationMinimumRequest.prototype.wait_timeout = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new StopReplicationMinimumRequest instance using the specified properties. + * Creates a new PrimaryStatusRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.StopReplicationMinimumRequest + * @memberof tabletmanagerdata.PrimaryStatusRequest * @static - * @param {tabletmanagerdata.IStopReplicationMinimumRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.StopReplicationMinimumRequest} StopReplicationMinimumRequest instance + * @param {tabletmanagerdata.IPrimaryStatusRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.PrimaryStatusRequest} PrimaryStatusRequest instance */ - StopReplicationMinimumRequest.create = function create(properties) { - return new StopReplicationMinimumRequest(properties); + PrimaryStatusRequest.create = function create(properties) { + return new PrimaryStatusRequest(properties); }; /** - * Encodes the specified StopReplicationMinimumRequest message. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumRequest.verify|verify} messages. + * Encodes the specified PrimaryStatusRequest message. Does not implicitly {@link tabletmanagerdata.PrimaryStatusRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.StopReplicationMinimumRequest + * @memberof tabletmanagerdata.PrimaryStatusRequest * @static - * @param {tabletmanagerdata.IStopReplicationMinimumRequest} message StopReplicationMinimumRequest message or plain object to encode + * @param {tabletmanagerdata.IPrimaryStatusRequest} message PrimaryStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationMinimumRequest.encode = function encode(message, writer) { + PrimaryStatusRequest.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.wait_timeout != null && Object.hasOwnProperty.call(message, "wait_timeout")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.wait_timeout); return writer; }; /** - * Encodes the specified StopReplicationMinimumRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumRequest.verify|verify} messages. + * Encodes the specified PrimaryStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryStatusRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.StopReplicationMinimumRequest + * @memberof tabletmanagerdata.PrimaryStatusRequest * @static - * @param {tabletmanagerdata.IStopReplicationMinimumRequest} message StopReplicationMinimumRequest message or plain object to encode + * @param {tabletmanagerdata.IPrimaryStatusRequest} message PrimaryStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationMinimumRequest.encodeDelimited = function encodeDelimited(message, writer) { + PrimaryStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopReplicationMinimumRequest message from the specified reader or buffer. + * Decodes a PrimaryStatusRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.StopReplicationMinimumRequest + * @memberof tabletmanagerdata.PrimaryStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.StopReplicationMinimumRequest} StopReplicationMinimumRequest + * @returns {tabletmanagerdata.PrimaryStatusRequest} PrimaryStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationMinimumRequest.decode = function decode(reader, length) { + PrimaryStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StopReplicationMinimumRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PrimaryStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.position = reader.string(); - break; - } - case 2: { - message.wait_timeout = reader.int64(); - break; - } default: reader.skipType(tag & 7); break; @@ -63688,145 +64554,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a StopReplicationMinimumRequest message from the specified reader or buffer, length delimited. + * Decodes a PrimaryStatusRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.StopReplicationMinimumRequest + * @memberof tabletmanagerdata.PrimaryStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.StopReplicationMinimumRequest} StopReplicationMinimumRequest + * @returns {tabletmanagerdata.PrimaryStatusRequest} PrimaryStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationMinimumRequest.decodeDelimited = function decodeDelimited(reader) { + PrimaryStatusRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopReplicationMinimumRequest message. + * Verifies a PrimaryStatusRequest message. * @function verify - * @memberof tabletmanagerdata.StopReplicationMinimumRequest + * @memberof tabletmanagerdata.PrimaryStatusRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopReplicationMinimumRequest.verify = function verify(message) { + PrimaryStatusRequest.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.wait_timeout != null && message.hasOwnProperty("wait_timeout")) - if (!$util.isInteger(message.wait_timeout) && !(message.wait_timeout && $util.isInteger(message.wait_timeout.low) && $util.isInteger(message.wait_timeout.high))) - return "wait_timeout: integer|Long expected"; return null; }; /** - * Creates a StopReplicationMinimumRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PrimaryStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.StopReplicationMinimumRequest + * @memberof tabletmanagerdata.PrimaryStatusRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.StopReplicationMinimumRequest} StopReplicationMinimumRequest + * @returns {tabletmanagerdata.PrimaryStatusRequest} PrimaryStatusRequest */ - StopReplicationMinimumRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.StopReplicationMinimumRequest) + PrimaryStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.PrimaryStatusRequest) return object; - let message = new $root.tabletmanagerdata.StopReplicationMinimumRequest(); - if (object.position != null) - message.position = String(object.position); - if (object.wait_timeout != null) - if ($util.Long) - (message.wait_timeout = $util.Long.fromValue(object.wait_timeout)).unsigned = false; - else if (typeof object.wait_timeout === "string") - message.wait_timeout = parseInt(object.wait_timeout, 10); - else if (typeof object.wait_timeout === "number") - message.wait_timeout = object.wait_timeout; - else if (typeof object.wait_timeout === "object") - message.wait_timeout = new $util.LongBits(object.wait_timeout.low >>> 0, object.wait_timeout.high >>> 0).toNumber(); - return message; + return new $root.tabletmanagerdata.PrimaryStatusRequest(); }; /** - * Creates a plain object from a StopReplicationMinimumRequest message. Also converts values to other types if specified. + * Creates a plain object from a PrimaryStatusRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.StopReplicationMinimumRequest + * @memberof tabletmanagerdata.PrimaryStatusRequest * @static - * @param {tabletmanagerdata.StopReplicationMinimumRequest} message StopReplicationMinimumRequest + * @param {tabletmanagerdata.PrimaryStatusRequest} message PrimaryStatusRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopReplicationMinimumRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.position = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.wait_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.wait_timeout = options.longs === String ? "0" : 0; - } - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; - if (message.wait_timeout != null && message.hasOwnProperty("wait_timeout")) - if (typeof message.wait_timeout === "number") - object.wait_timeout = options.longs === String ? String(message.wait_timeout) : message.wait_timeout; - else - object.wait_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.wait_timeout) : options.longs === Number ? new $util.LongBits(message.wait_timeout.low >>> 0, message.wait_timeout.high >>> 0).toNumber() : message.wait_timeout; - return object; + PrimaryStatusRequest.toObject = function toObject() { + return {}; }; /** - * Converts this StopReplicationMinimumRequest to JSON. + * Converts this PrimaryStatusRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.StopReplicationMinimumRequest + * @memberof tabletmanagerdata.PrimaryStatusRequest * @instance * @returns {Object.} JSON object */ - StopReplicationMinimumRequest.prototype.toJSON = function toJSON() { + PrimaryStatusRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StopReplicationMinimumRequest + * Gets the default type url for PrimaryStatusRequest * @function getTypeUrl - * @memberof tabletmanagerdata.StopReplicationMinimumRequest + * @memberof tabletmanagerdata.PrimaryStatusRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StopReplicationMinimumRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PrimaryStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.StopReplicationMinimumRequest"; + return typeUrlPrefix + "/tabletmanagerdata.PrimaryStatusRequest"; }; - return StopReplicationMinimumRequest; + return PrimaryStatusRequest; })(); - tabletmanagerdata.StopReplicationMinimumResponse = (function() { + tabletmanagerdata.PrimaryStatusResponse = (function() { /** - * Properties of a StopReplicationMinimumResponse. + * Properties of a PrimaryStatusResponse. * @memberof tabletmanagerdata - * @interface IStopReplicationMinimumResponse - * @property {string|null} [position] StopReplicationMinimumResponse position + * @interface IPrimaryStatusResponse + * @property {replicationdata.IPrimaryStatus|null} [status] PrimaryStatusResponse status */ /** - * Constructs a new StopReplicationMinimumResponse. + * Constructs a new PrimaryStatusResponse. * @memberof tabletmanagerdata - * @classdesc Represents a StopReplicationMinimumResponse. - * @implements IStopReplicationMinimumResponse + * @classdesc Represents a PrimaryStatusResponse. + * @implements IPrimaryStatusResponse * @constructor - * @param {tabletmanagerdata.IStopReplicationMinimumResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IPrimaryStatusResponse=} [properties] Properties to set */ - function StopReplicationMinimumResponse(properties) { + function PrimaryStatusResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63834,75 +64664,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * StopReplicationMinimumResponse position. - * @member {string} position - * @memberof tabletmanagerdata.StopReplicationMinimumResponse + * PrimaryStatusResponse status. + * @member {replicationdata.IPrimaryStatus|null|undefined} status + * @memberof tabletmanagerdata.PrimaryStatusResponse * @instance */ - StopReplicationMinimumResponse.prototype.position = ""; + PrimaryStatusResponse.prototype.status = null; /** - * Creates a new StopReplicationMinimumResponse instance using the specified properties. + * Creates a new PrimaryStatusResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.StopReplicationMinimumResponse + * @memberof tabletmanagerdata.PrimaryStatusResponse * @static - * @param {tabletmanagerdata.IStopReplicationMinimumResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.StopReplicationMinimumResponse} StopReplicationMinimumResponse instance + * @param {tabletmanagerdata.IPrimaryStatusResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.PrimaryStatusResponse} PrimaryStatusResponse instance */ - StopReplicationMinimumResponse.create = function create(properties) { - return new StopReplicationMinimumResponse(properties); + PrimaryStatusResponse.create = function create(properties) { + return new PrimaryStatusResponse(properties); }; /** - * Encodes the specified StopReplicationMinimumResponse message. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumResponse.verify|verify} messages. + * Encodes the specified PrimaryStatusResponse message. Does not implicitly {@link tabletmanagerdata.PrimaryStatusResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.StopReplicationMinimumResponse + * @memberof tabletmanagerdata.PrimaryStatusResponse * @static - * @param {tabletmanagerdata.IStopReplicationMinimumResponse} message StopReplicationMinimumResponse message or plain object to encode + * @param {tabletmanagerdata.IPrimaryStatusResponse} message PrimaryStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationMinimumResponse.encode = function encode(message, writer) { + PrimaryStatusResponse.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.status != null && Object.hasOwnProperty.call(message, "status")) + $root.replicationdata.PrimaryStatus.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified StopReplicationMinimumResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumResponse.verify|verify} messages. + * Encodes the specified PrimaryStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryStatusResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.StopReplicationMinimumResponse + * @memberof tabletmanagerdata.PrimaryStatusResponse * @static - * @param {tabletmanagerdata.IStopReplicationMinimumResponse} message StopReplicationMinimumResponse message or plain object to encode + * @param {tabletmanagerdata.IPrimaryStatusResponse} message PrimaryStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationMinimumResponse.encodeDelimited = function encodeDelimited(message, writer) { + PrimaryStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopReplicationMinimumResponse message from the specified reader or buffer. + * Decodes a PrimaryStatusResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.StopReplicationMinimumResponse + * @memberof tabletmanagerdata.PrimaryStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.StopReplicationMinimumResponse} StopReplicationMinimumResponse + * @returns {tabletmanagerdata.PrimaryStatusResponse} PrimaryStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationMinimumResponse.decode = function decode(reader, length) { + PrimaryStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StopReplicationMinimumResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PrimaryStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.position = reader.string(); + message.status = $root.replicationdata.PrimaryStatus.decode(reader, reader.uint32()); break; } default: @@ -63914,122 +64744,126 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a StopReplicationMinimumResponse message from the specified reader or buffer, length delimited. + * Decodes a PrimaryStatusResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.StopReplicationMinimumResponse + * @memberof tabletmanagerdata.PrimaryStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.StopReplicationMinimumResponse} StopReplicationMinimumResponse + * @returns {tabletmanagerdata.PrimaryStatusResponse} PrimaryStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationMinimumResponse.decodeDelimited = function decodeDelimited(reader) { + PrimaryStatusResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopReplicationMinimumResponse message. + * Verifies a PrimaryStatusResponse message. * @function verify - * @memberof tabletmanagerdata.StopReplicationMinimumResponse + * @memberof tabletmanagerdata.PrimaryStatusResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopReplicationMinimumResponse.verify = function verify(message) { + PrimaryStatusResponse.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.status != null && message.hasOwnProperty("status")) { + let error = $root.replicationdata.PrimaryStatus.verify(message.status); + if (error) + return "status." + error; + } return null; }; /** - * Creates a StopReplicationMinimumResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PrimaryStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.StopReplicationMinimumResponse + * @memberof tabletmanagerdata.PrimaryStatusResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.StopReplicationMinimumResponse} StopReplicationMinimumResponse + * @returns {tabletmanagerdata.PrimaryStatusResponse} PrimaryStatusResponse */ - StopReplicationMinimumResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.StopReplicationMinimumResponse) + PrimaryStatusResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.PrimaryStatusResponse) return object; - let message = new $root.tabletmanagerdata.StopReplicationMinimumResponse(); - if (object.position != null) - message.position = String(object.position); + let message = new $root.tabletmanagerdata.PrimaryStatusResponse(); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".tabletmanagerdata.PrimaryStatusResponse.status: object expected"); + message.status = $root.replicationdata.PrimaryStatus.fromObject(object.status); + } return message; }; /** - * Creates a plain object from a StopReplicationMinimumResponse message. Also converts values to other types if specified. + * Creates a plain object from a PrimaryStatusResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.StopReplicationMinimumResponse + * @memberof tabletmanagerdata.PrimaryStatusResponse * @static - * @param {tabletmanagerdata.StopReplicationMinimumResponse} message StopReplicationMinimumResponse + * @param {tabletmanagerdata.PrimaryStatusResponse} message PrimaryStatusResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopReplicationMinimumResponse.toObject = function toObject(message, options) { + PrimaryStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.position = ""; - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; + object.status = null; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.replicationdata.PrimaryStatus.toObject(message.status, options); return object; }; /** - * Converts this StopReplicationMinimumResponse to JSON. + * Converts this PrimaryStatusResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.StopReplicationMinimumResponse + * @memberof tabletmanagerdata.PrimaryStatusResponse * @instance * @returns {Object.} JSON object */ - StopReplicationMinimumResponse.prototype.toJSON = function toJSON() { + PrimaryStatusResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StopReplicationMinimumResponse + * Gets the default type url for PrimaryStatusResponse * @function getTypeUrl - * @memberof tabletmanagerdata.StopReplicationMinimumResponse + * @memberof tabletmanagerdata.PrimaryStatusResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StopReplicationMinimumResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PrimaryStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.StopReplicationMinimumResponse"; + return typeUrlPrefix + "/tabletmanagerdata.PrimaryStatusResponse"; }; - return StopReplicationMinimumResponse; + return PrimaryStatusResponse; })(); - tabletmanagerdata.StartReplicationRequest = (function() { + tabletmanagerdata.PrimaryPositionRequest = (function() { /** - * Properties of a StartReplicationRequest. + * Properties of a PrimaryPositionRequest. * @memberof tabletmanagerdata - * @interface IStartReplicationRequest - * @property {boolean|null} [semiSync] StartReplicationRequest semiSync + * @interface IPrimaryPositionRequest */ /** - * Constructs a new StartReplicationRequest. + * Constructs a new PrimaryPositionRequest. * @memberof tabletmanagerdata - * @classdesc Represents a StartReplicationRequest. - * @implements IStartReplicationRequest + * @classdesc Represents a PrimaryPositionRequest. + * @implements IPrimaryPositionRequest * @constructor - * @param {tabletmanagerdata.IStartReplicationRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IPrimaryPositionRequest=} [properties] Properties to set */ - function StartReplicationRequest(properties) { + function PrimaryPositionRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64037,77 +64871,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * StartReplicationRequest semiSync. - * @member {boolean} semiSync - * @memberof tabletmanagerdata.StartReplicationRequest - * @instance - */ - StartReplicationRequest.prototype.semiSync = false; - - /** - * Creates a new StartReplicationRequest instance using the specified properties. + * Creates a new PrimaryPositionRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.StartReplicationRequest + * @memberof tabletmanagerdata.PrimaryPositionRequest * @static - * @param {tabletmanagerdata.IStartReplicationRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.StartReplicationRequest} StartReplicationRequest instance + * @param {tabletmanagerdata.IPrimaryPositionRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.PrimaryPositionRequest} PrimaryPositionRequest instance */ - StartReplicationRequest.create = function create(properties) { - return new StartReplicationRequest(properties); + PrimaryPositionRequest.create = function create(properties) { + return new PrimaryPositionRequest(properties); }; /** - * Encodes the specified StartReplicationRequest message. Does not implicitly {@link tabletmanagerdata.StartReplicationRequest.verify|verify} messages. + * Encodes the specified PrimaryPositionRequest message. Does not implicitly {@link tabletmanagerdata.PrimaryPositionRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.StartReplicationRequest + * @memberof tabletmanagerdata.PrimaryPositionRequest * @static - * @param {tabletmanagerdata.IStartReplicationRequest} message StartReplicationRequest message or plain object to encode + * @param {tabletmanagerdata.IPrimaryPositionRequest} message PrimaryPositionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartReplicationRequest.encode = function encode(message, writer) { + PrimaryPositionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.semiSync != null && Object.hasOwnProperty.call(message, "semiSync")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.semiSync); return writer; }; /** - * Encodes the specified StartReplicationRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StartReplicationRequest.verify|verify} messages. + * Encodes the specified PrimaryPositionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryPositionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.StartReplicationRequest + * @memberof tabletmanagerdata.PrimaryPositionRequest * @static - * @param {tabletmanagerdata.IStartReplicationRequest} message StartReplicationRequest message or plain object to encode + * @param {tabletmanagerdata.IPrimaryPositionRequest} message PrimaryPositionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) { + PrimaryPositionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartReplicationRequest message from the specified reader or buffer. + * Decodes a PrimaryPositionRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.StartReplicationRequest + * @memberof tabletmanagerdata.PrimaryPositionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.StartReplicationRequest} StartReplicationRequest + * @returns {tabletmanagerdata.PrimaryPositionRequest} PrimaryPositionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartReplicationRequest.decode = function decode(reader, length) { + PrimaryPositionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StartReplicationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PrimaryPositionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.semiSync = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -64117,121 +64937,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a StartReplicationRequest message from the specified reader or buffer, length delimited. + * Decodes a PrimaryPositionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.StartReplicationRequest + * @memberof tabletmanagerdata.PrimaryPositionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.StartReplicationRequest} StartReplicationRequest + * @returns {tabletmanagerdata.PrimaryPositionRequest} PrimaryPositionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartReplicationRequest.decodeDelimited = function decodeDelimited(reader) { + PrimaryPositionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartReplicationRequest message. + * Verifies a PrimaryPositionRequest message. * @function verify - * @memberof tabletmanagerdata.StartReplicationRequest + * @memberof tabletmanagerdata.PrimaryPositionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartReplicationRequest.verify = function verify(message) { + PrimaryPositionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.semiSync != null && message.hasOwnProperty("semiSync")) - if (typeof message.semiSync !== "boolean") - return "semiSync: boolean expected"; return null; }; /** - * Creates a StartReplicationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PrimaryPositionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.StartReplicationRequest + * @memberof tabletmanagerdata.PrimaryPositionRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.StartReplicationRequest} StartReplicationRequest + * @returns {tabletmanagerdata.PrimaryPositionRequest} PrimaryPositionRequest */ - StartReplicationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.StartReplicationRequest) + PrimaryPositionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.PrimaryPositionRequest) return object; - let message = new $root.tabletmanagerdata.StartReplicationRequest(); - if (object.semiSync != null) - message.semiSync = Boolean(object.semiSync); - return message; + return new $root.tabletmanagerdata.PrimaryPositionRequest(); }; /** - * Creates a plain object from a StartReplicationRequest message. Also converts values to other types if specified. + * Creates a plain object from a PrimaryPositionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.StartReplicationRequest + * @memberof tabletmanagerdata.PrimaryPositionRequest * @static - * @param {tabletmanagerdata.StartReplicationRequest} message StartReplicationRequest + * @param {tabletmanagerdata.PrimaryPositionRequest} message PrimaryPositionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartReplicationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.semiSync = false; - if (message.semiSync != null && message.hasOwnProperty("semiSync")) - object.semiSync = message.semiSync; - return object; + PrimaryPositionRequest.toObject = function toObject() { + return {}; }; /** - * Converts this StartReplicationRequest to JSON. + * Converts this PrimaryPositionRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.StartReplicationRequest + * @memberof tabletmanagerdata.PrimaryPositionRequest * @instance * @returns {Object.} JSON object */ - StartReplicationRequest.prototype.toJSON = function toJSON() { + PrimaryPositionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StartReplicationRequest + * Gets the default type url for PrimaryPositionRequest * @function getTypeUrl - * @memberof tabletmanagerdata.StartReplicationRequest + * @memberof tabletmanagerdata.PrimaryPositionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StartReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PrimaryPositionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.StartReplicationRequest"; + return typeUrlPrefix + "/tabletmanagerdata.PrimaryPositionRequest"; }; - return StartReplicationRequest; + return PrimaryPositionRequest; })(); - tabletmanagerdata.StartReplicationResponse = (function() { + tabletmanagerdata.PrimaryPositionResponse = (function() { /** - * Properties of a StartReplicationResponse. + * Properties of a PrimaryPositionResponse. * @memberof tabletmanagerdata - * @interface IStartReplicationResponse + * @interface IPrimaryPositionResponse + * @property {string|null} [position] PrimaryPositionResponse position */ /** - * Constructs a new StartReplicationResponse. + * Constructs a new PrimaryPositionResponse. * @memberof tabletmanagerdata - * @classdesc Represents a StartReplicationResponse. - * @implements IStartReplicationResponse + * @classdesc Represents a PrimaryPositionResponse. + * @implements IPrimaryPositionResponse * @constructor - * @param {tabletmanagerdata.IStartReplicationResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IPrimaryPositionResponse=} [properties] Properties to set */ - function StartReplicationResponse(properties) { + function PrimaryPositionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64239,63 +65047,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new StartReplicationResponse instance using the specified properties. + * PrimaryPositionResponse position. + * @member {string} position + * @memberof tabletmanagerdata.PrimaryPositionResponse + * @instance + */ + PrimaryPositionResponse.prototype.position = ""; + + /** + * Creates a new PrimaryPositionResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.StartReplicationResponse + * @memberof tabletmanagerdata.PrimaryPositionResponse * @static - * @param {tabletmanagerdata.IStartReplicationResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.StartReplicationResponse} StartReplicationResponse instance + * @param {tabletmanagerdata.IPrimaryPositionResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.PrimaryPositionResponse} PrimaryPositionResponse instance */ - StartReplicationResponse.create = function create(properties) { - return new StartReplicationResponse(properties); + PrimaryPositionResponse.create = function create(properties) { + return new PrimaryPositionResponse(properties); }; /** - * Encodes the specified StartReplicationResponse message. Does not implicitly {@link tabletmanagerdata.StartReplicationResponse.verify|verify} messages. + * Encodes the specified PrimaryPositionResponse message. Does not implicitly {@link tabletmanagerdata.PrimaryPositionResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.StartReplicationResponse + * @memberof tabletmanagerdata.PrimaryPositionResponse * @static - * @param {tabletmanagerdata.IStartReplicationResponse} message StartReplicationResponse message or plain object to encode + * @param {tabletmanagerdata.IPrimaryPositionResponse} message PrimaryPositionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartReplicationResponse.encode = function encode(message, writer) { + PrimaryPositionResponse.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); return writer; }; /** - * Encodes the specified StartReplicationResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StartReplicationResponse.verify|verify} messages. + * Encodes the specified PrimaryPositionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PrimaryPositionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.StartReplicationResponse + * @memberof tabletmanagerdata.PrimaryPositionResponse * @static - * @param {tabletmanagerdata.IStartReplicationResponse} message StartReplicationResponse message or plain object to encode + * @param {tabletmanagerdata.IPrimaryPositionResponse} message PrimaryPositionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartReplicationResponse.encodeDelimited = function encodeDelimited(message, writer) { + PrimaryPositionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartReplicationResponse message from the specified reader or buffer. + * Decodes a PrimaryPositionResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.StartReplicationResponse + * @memberof tabletmanagerdata.PrimaryPositionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.StartReplicationResponse} StartReplicationResponse + * @returns {tabletmanagerdata.PrimaryPositionResponse} PrimaryPositionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartReplicationResponse.decode = function decode(reader, length) { + PrimaryPositionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StartReplicationResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PrimaryPositionResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.position = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -64305,110 +65127,122 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a StartReplicationResponse message from the specified reader or buffer, length delimited. + * Decodes a PrimaryPositionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.StartReplicationResponse + * @memberof tabletmanagerdata.PrimaryPositionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.StartReplicationResponse} StartReplicationResponse + * @returns {tabletmanagerdata.PrimaryPositionResponse} PrimaryPositionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartReplicationResponse.decodeDelimited = function decodeDelimited(reader) { + PrimaryPositionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartReplicationResponse message. + * Verifies a PrimaryPositionResponse message. * @function verify - * @memberof tabletmanagerdata.StartReplicationResponse + * @memberof tabletmanagerdata.PrimaryPositionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartReplicationResponse.verify = function verify(message) { + PrimaryPositionResponse.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"; return null; }; /** - * Creates a StartReplicationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PrimaryPositionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.StartReplicationResponse + * @memberof tabletmanagerdata.PrimaryPositionResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.StartReplicationResponse} StartReplicationResponse + * @returns {tabletmanagerdata.PrimaryPositionResponse} PrimaryPositionResponse */ - StartReplicationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.StartReplicationResponse) + PrimaryPositionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.PrimaryPositionResponse) return object; - return new $root.tabletmanagerdata.StartReplicationResponse(); + let message = new $root.tabletmanagerdata.PrimaryPositionResponse(); + if (object.position != null) + message.position = String(object.position); + return message; }; /** - * Creates a plain object from a StartReplicationResponse message. Also converts values to other types if specified. + * Creates a plain object from a PrimaryPositionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.StartReplicationResponse + * @memberof tabletmanagerdata.PrimaryPositionResponse * @static - * @param {tabletmanagerdata.StartReplicationResponse} message StartReplicationResponse + * @param {tabletmanagerdata.PrimaryPositionResponse} message PrimaryPositionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartReplicationResponse.toObject = function toObject() { - return {}; + PrimaryPositionResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.position = ""; + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + return object; }; /** - * Converts this StartReplicationResponse to JSON. + * Converts this PrimaryPositionResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.StartReplicationResponse + * @memberof tabletmanagerdata.PrimaryPositionResponse * @instance * @returns {Object.} JSON object */ - StartReplicationResponse.prototype.toJSON = function toJSON() { + PrimaryPositionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StartReplicationResponse + * Gets the default type url for PrimaryPositionResponse * @function getTypeUrl - * @memberof tabletmanagerdata.StartReplicationResponse + * @memberof tabletmanagerdata.PrimaryPositionResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StartReplicationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PrimaryPositionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.StartReplicationResponse"; + return typeUrlPrefix + "/tabletmanagerdata.PrimaryPositionResponse"; }; - return StartReplicationResponse; + return PrimaryPositionResponse; })(); - tabletmanagerdata.StartReplicationUntilAfterRequest = (function() { + tabletmanagerdata.WaitForPositionRequest = (function() { /** - * Properties of a StartReplicationUntilAfterRequest. + * Properties of a WaitForPositionRequest. * @memberof tabletmanagerdata - * @interface IStartReplicationUntilAfterRequest - * @property {string|null} [position] StartReplicationUntilAfterRequest position - * @property {number|Long|null} [wait_timeout] StartReplicationUntilAfterRequest wait_timeout + * @interface IWaitForPositionRequest + * @property {string|null} [position] WaitForPositionRequest position */ /** - * Constructs a new StartReplicationUntilAfterRequest. + * Constructs a new WaitForPositionRequest. * @memberof tabletmanagerdata - * @classdesc Represents a StartReplicationUntilAfterRequest. - * @implements IStartReplicationUntilAfterRequest + * @classdesc Represents a WaitForPositionRequest. + * @implements IWaitForPositionRequest * @constructor - * @param {tabletmanagerdata.IStartReplicationUntilAfterRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IWaitForPositionRequest=} [properties] Properties to set */ - function StartReplicationUntilAfterRequest(properties) { + function WaitForPositionRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64416,80 +65250,70 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * StartReplicationUntilAfterRequest position. + * WaitForPositionRequest position. * @member {string} position - * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest - * @instance - */ - StartReplicationUntilAfterRequest.prototype.position = ""; - - /** - * StartReplicationUntilAfterRequest wait_timeout. - * @member {number|Long} wait_timeout - * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest + * @memberof tabletmanagerdata.WaitForPositionRequest * @instance */ - StartReplicationUntilAfterRequest.prototype.wait_timeout = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + WaitForPositionRequest.prototype.position = ""; /** - * Creates a new StartReplicationUntilAfterRequest instance using the specified properties. + * Creates a new WaitForPositionRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest + * @memberof tabletmanagerdata.WaitForPositionRequest * @static - * @param {tabletmanagerdata.IStartReplicationUntilAfterRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.StartReplicationUntilAfterRequest} StartReplicationUntilAfterRequest instance + * @param {tabletmanagerdata.IWaitForPositionRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.WaitForPositionRequest} WaitForPositionRequest instance */ - StartReplicationUntilAfterRequest.create = function create(properties) { - return new StartReplicationUntilAfterRequest(properties); + WaitForPositionRequest.create = function create(properties) { + return new WaitForPositionRequest(properties); }; /** - * Encodes the specified StartReplicationUntilAfterRequest message. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterRequest.verify|verify} messages. + * Encodes the specified WaitForPositionRequest message. Does not implicitly {@link tabletmanagerdata.WaitForPositionRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest + * @memberof tabletmanagerdata.WaitForPositionRequest * @static - * @param {tabletmanagerdata.IStartReplicationUntilAfterRequest} message StartReplicationUntilAfterRequest message or plain object to encode + * @param {tabletmanagerdata.IWaitForPositionRequest} message WaitForPositionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartReplicationUntilAfterRequest.encode = function encode(message, writer) { + WaitForPositionRequest.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.wait_timeout != null && Object.hasOwnProperty.call(message, "wait_timeout")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.wait_timeout); return writer; }; /** - * Encodes the specified StartReplicationUntilAfterRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterRequest.verify|verify} messages. + * Encodes the specified WaitForPositionRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.WaitForPositionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest + * @memberof tabletmanagerdata.WaitForPositionRequest * @static - * @param {tabletmanagerdata.IStartReplicationUntilAfterRequest} message StartReplicationUntilAfterRequest message or plain object to encode + * @param {tabletmanagerdata.IWaitForPositionRequest} message WaitForPositionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartReplicationUntilAfterRequest.encodeDelimited = function encodeDelimited(message, writer) { + WaitForPositionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartReplicationUntilAfterRequest message from the specified reader or buffer. + * Decodes a WaitForPositionRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest + * @memberof tabletmanagerdata.WaitForPositionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.StartReplicationUntilAfterRequest} StartReplicationUntilAfterRequest + * @returns {tabletmanagerdata.WaitForPositionRequest} WaitForPositionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartReplicationUntilAfterRequest.decode = function decode(reader, length) { + WaitForPositionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StartReplicationUntilAfterRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.WaitForPositionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -64497,10 +65321,6 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { message.position = reader.string(); break; } - case 2: { - message.wait_timeout = reader.int64(); - break; - } default: reader.skipType(tag & 7); break; @@ -64510,144 +65330,121 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a StartReplicationUntilAfterRequest message from the specified reader or buffer, length delimited. + * Decodes a WaitForPositionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest + * @memberof tabletmanagerdata.WaitForPositionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.StartReplicationUntilAfterRequest} StartReplicationUntilAfterRequest + * @returns {tabletmanagerdata.WaitForPositionRequest} WaitForPositionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartReplicationUntilAfterRequest.decodeDelimited = function decodeDelimited(reader) { + WaitForPositionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartReplicationUntilAfterRequest message. + * Verifies a WaitForPositionRequest message. * @function verify - * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest + * @memberof tabletmanagerdata.WaitForPositionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartReplicationUntilAfterRequest.verify = function verify(message) { + WaitForPositionRequest.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.wait_timeout != null && message.hasOwnProperty("wait_timeout")) - if (!$util.isInteger(message.wait_timeout) && !(message.wait_timeout && $util.isInteger(message.wait_timeout.low) && $util.isInteger(message.wait_timeout.high))) - return "wait_timeout: integer|Long expected"; return null; }; /** - * Creates a StartReplicationUntilAfterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WaitForPositionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest + * @memberof tabletmanagerdata.WaitForPositionRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.StartReplicationUntilAfterRequest} StartReplicationUntilAfterRequest + * @returns {tabletmanagerdata.WaitForPositionRequest} WaitForPositionRequest */ - StartReplicationUntilAfterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.StartReplicationUntilAfterRequest) + WaitForPositionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.WaitForPositionRequest) return object; - let message = new $root.tabletmanagerdata.StartReplicationUntilAfterRequest(); + let message = new $root.tabletmanagerdata.WaitForPositionRequest(); if (object.position != null) message.position = String(object.position); - if (object.wait_timeout != null) - if ($util.Long) - (message.wait_timeout = $util.Long.fromValue(object.wait_timeout)).unsigned = false; - else if (typeof object.wait_timeout === "string") - message.wait_timeout = parseInt(object.wait_timeout, 10); - else if (typeof object.wait_timeout === "number") - message.wait_timeout = object.wait_timeout; - else if (typeof object.wait_timeout === "object") - message.wait_timeout = new $util.LongBits(object.wait_timeout.low >>> 0, object.wait_timeout.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a StartReplicationUntilAfterRequest message. Also converts values to other types if specified. + * Creates a plain object from a WaitForPositionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest + * @memberof tabletmanagerdata.WaitForPositionRequest * @static - * @param {tabletmanagerdata.StartReplicationUntilAfterRequest} message StartReplicationUntilAfterRequest + * @param {tabletmanagerdata.WaitForPositionRequest} message WaitForPositionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartReplicationUntilAfterRequest.toObject = function toObject(message, options) { + WaitForPositionRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { + if (options.defaults) object.position = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.wait_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.wait_timeout = options.longs === String ? "0" : 0; - } if (message.position != null && message.hasOwnProperty("position")) object.position = message.position; - if (message.wait_timeout != null && message.hasOwnProperty("wait_timeout")) - if (typeof message.wait_timeout === "number") - object.wait_timeout = options.longs === String ? String(message.wait_timeout) : message.wait_timeout; - else - object.wait_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.wait_timeout) : options.longs === Number ? new $util.LongBits(message.wait_timeout.low >>> 0, message.wait_timeout.high >>> 0).toNumber() : message.wait_timeout; return object; }; /** - * Converts this StartReplicationUntilAfterRequest to JSON. + * Converts this WaitForPositionRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest + * @memberof tabletmanagerdata.WaitForPositionRequest * @instance * @returns {Object.} JSON object */ - StartReplicationUntilAfterRequest.prototype.toJSON = function toJSON() { + WaitForPositionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StartReplicationUntilAfterRequest + * Gets the default type url for WaitForPositionRequest * @function getTypeUrl - * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest + * @memberof tabletmanagerdata.WaitForPositionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StartReplicationUntilAfterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + WaitForPositionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.StartReplicationUntilAfterRequest"; + return typeUrlPrefix + "/tabletmanagerdata.WaitForPositionRequest"; }; - return StartReplicationUntilAfterRequest; + return WaitForPositionRequest; })(); - tabletmanagerdata.StartReplicationUntilAfterResponse = (function() { + tabletmanagerdata.WaitForPositionResponse = (function() { /** - * Properties of a StartReplicationUntilAfterResponse. + * Properties of a WaitForPositionResponse. * @memberof tabletmanagerdata - * @interface IStartReplicationUntilAfterResponse + * @interface IWaitForPositionResponse */ /** - * Constructs a new StartReplicationUntilAfterResponse. + * Constructs a new WaitForPositionResponse. * @memberof tabletmanagerdata - * @classdesc Represents a StartReplicationUntilAfterResponse. - * @implements IStartReplicationUntilAfterResponse + * @classdesc Represents a WaitForPositionResponse. + * @implements IWaitForPositionResponse * @constructor - * @param {tabletmanagerdata.IStartReplicationUntilAfterResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IWaitForPositionResponse=} [properties] Properties to set */ - function StartReplicationUntilAfterResponse(properties) { + function WaitForPositionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64655,60 +65452,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new StartReplicationUntilAfterResponse instance using the specified properties. + * Creates a new WaitForPositionResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse + * @memberof tabletmanagerdata.WaitForPositionResponse * @static - * @param {tabletmanagerdata.IStartReplicationUntilAfterResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.StartReplicationUntilAfterResponse} StartReplicationUntilAfterResponse instance + * @param {tabletmanagerdata.IWaitForPositionResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.WaitForPositionResponse} WaitForPositionResponse instance */ - StartReplicationUntilAfterResponse.create = function create(properties) { - return new StartReplicationUntilAfterResponse(properties); + WaitForPositionResponse.create = function create(properties) { + return new WaitForPositionResponse(properties); }; /** - * Encodes the specified StartReplicationUntilAfterResponse message. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterResponse.verify|verify} messages. + * Encodes the specified WaitForPositionResponse message. Does not implicitly {@link tabletmanagerdata.WaitForPositionResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse + * @memberof tabletmanagerdata.WaitForPositionResponse * @static - * @param {tabletmanagerdata.IStartReplicationUntilAfterResponse} message StartReplicationUntilAfterResponse message or plain object to encode + * @param {tabletmanagerdata.IWaitForPositionResponse} message WaitForPositionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartReplicationUntilAfterResponse.encode = function encode(message, writer) { + WaitForPositionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified StartReplicationUntilAfterResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterResponse.verify|verify} messages. + * Encodes the specified WaitForPositionResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.WaitForPositionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse + * @memberof tabletmanagerdata.WaitForPositionResponse * @static - * @param {tabletmanagerdata.IStartReplicationUntilAfterResponse} message StartReplicationUntilAfterResponse message or plain object to encode + * @param {tabletmanagerdata.IWaitForPositionResponse} message WaitForPositionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartReplicationUntilAfterResponse.encodeDelimited = function encodeDelimited(message, writer) { + WaitForPositionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartReplicationUntilAfterResponse message from the specified reader or buffer. + * Decodes a WaitForPositionResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse + * @memberof tabletmanagerdata.WaitForPositionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.StartReplicationUntilAfterResponse} StartReplicationUntilAfterResponse + * @returns {tabletmanagerdata.WaitForPositionResponse} WaitForPositionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartReplicationUntilAfterResponse.decode = function decode(reader, length) { + WaitForPositionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StartReplicationUntilAfterResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.WaitForPositionResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -64721,108 +65518,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a StartReplicationUntilAfterResponse message from the specified reader or buffer, length delimited. + * Decodes a WaitForPositionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse + * @memberof tabletmanagerdata.WaitForPositionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.StartReplicationUntilAfterResponse} StartReplicationUntilAfterResponse + * @returns {tabletmanagerdata.WaitForPositionResponse} WaitForPositionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartReplicationUntilAfterResponse.decodeDelimited = function decodeDelimited(reader) { + WaitForPositionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartReplicationUntilAfterResponse message. + * Verifies a WaitForPositionResponse message. * @function verify - * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse + * @memberof tabletmanagerdata.WaitForPositionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartReplicationUntilAfterResponse.verify = function verify(message) { + WaitForPositionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a StartReplicationUntilAfterResponse message from a plain object. Also converts values to their respective internal types. + * Creates a WaitForPositionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse + * @memberof tabletmanagerdata.WaitForPositionResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.StartReplicationUntilAfterResponse} StartReplicationUntilAfterResponse + * @returns {tabletmanagerdata.WaitForPositionResponse} WaitForPositionResponse */ - StartReplicationUntilAfterResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.StartReplicationUntilAfterResponse) + WaitForPositionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.WaitForPositionResponse) return object; - return new $root.tabletmanagerdata.StartReplicationUntilAfterResponse(); + return new $root.tabletmanagerdata.WaitForPositionResponse(); }; /** - * Creates a plain object from a StartReplicationUntilAfterResponse message. Also converts values to other types if specified. + * Creates a plain object from a WaitForPositionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse + * @memberof tabletmanagerdata.WaitForPositionResponse * @static - * @param {tabletmanagerdata.StartReplicationUntilAfterResponse} message StartReplicationUntilAfterResponse + * @param {tabletmanagerdata.WaitForPositionResponse} message WaitForPositionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartReplicationUntilAfterResponse.toObject = function toObject() { + WaitForPositionResponse.toObject = function toObject() { return {}; }; /** - * Converts this StartReplicationUntilAfterResponse to JSON. + * Converts this WaitForPositionResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse + * @memberof tabletmanagerdata.WaitForPositionResponse * @instance * @returns {Object.} JSON object */ - StartReplicationUntilAfterResponse.prototype.toJSON = function toJSON() { + WaitForPositionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StartReplicationUntilAfterResponse + * Gets the default type url for WaitForPositionResponse * @function getTypeUrl - * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse + * @memberof tabletmanagerdata.WaitForPositionResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StartReplicationUntilAfterResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + WaitForPositionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.StartReplicationUntilAfterResponse"; + return typeUrlPrefix + "/tabletmanagerdata.WaitForPositionResponse"; }; - return StartReplicationUntilAfterResponse; + return WaitForPositionResponse; })(); - tabletmanagerdata.GetReplicasRequest = (function() { + tabletmanagerdata.StopReplicationRequest = (function() { /** - * Properties of a GetReplicasRequest. + * Properties of a StopReplicationRequest. * @memberof tabletmanagerdata - * @interface IGetReplicasRequest + * @interface IStopReplicationRequest */ /** - * Constructs a new GetReplicasRequest. + * Constructs a new StopReplicationRequest. * @memberof tabletmanagerdata - * @classdesc Represents a GetReplicasRequest. - * @implements IGetReplicasRequest + * @classdesc Represents a StopReplicationRequest. + * @implements IStopReplicationRequest * @constructor - * @param {tabletmanagerdata.IGetReplicasRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IStopReplicationRequest=} [properties] Properties to set */ - function GetReplicasRequest(properties) { + function StopReplicationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64830,60 +65627,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new GetReplicasRequest instance using the specified properties. + * Creates a new StopReplicationRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetReplicasRequest + * @memberof tabletmanagerdata.StopReplicationRequest * @static - * @param {tabletmanagerdata.IGetReplicasRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.GetReplicasRequest} GetReplicasRequest instance + * @param {tabletmanagerdata.IStopReplicationRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.StopReplicationRequest} StopReplicationRequest instance */ - GetReplicasRequest.create = function create(properties) { - return new GetReplicasRequest(properties); + StopReplicationRequest.create = function create(properties) { + return new StopReplicationRequest(properties); }; /** - * Encodes the specified GetReplicasRequest message. Does not implicitly {@link tabletmanagerdata.GetReplicasRequest.verify|verify} messages. + * Encodes the specified StopReplicationRequest message. Does not implicitly {@link tabletmanagerdata.StopReplicationRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetReplicasRequest + * @memberof tabletmanagerdata.StopReplicationRequest * @static - * @param {tabletmanagerdata.IGetReplicasRequest} message GetReplicasRequest message or plain object to encode + * @param {tabletmanagerdata.IStopReplicationRequest} message StopReplicationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetReplicasRequest.encode = function encode(message, writer) { + StopReplicationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified GetReplicasRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetReplicasRequest.verify|verify} messages. + * Encodes the specified StopReplicationRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetReplicasRequest + * @memberof tabletmanagerdata.StopReplicationRequest * @static - * @param {tabletmanagerdata.IGetReplicasRequest} message GetReplicasRequest message or plain object to encode + * @param {tabletmanagerdata.IStopReplicationRequest} message StopReplicationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetReplicasRequest.encodeDelimited = function encodeDelimited(message, writer) { + StopReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetReplicasRequest message from the specified reader or buffer. + * Decodes a StopReplicationRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetReplicasRequest + * @memberof tabletmanagerdata.StopReplicationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetReplicasRequest} GetReplicasRequest + * @returns {tabletmanagerdata.StopReplicationRequest} StopReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetReplicasRequest.decode = function decode(reader, length) { + StopReplicationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetReplicasRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StopReplicationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -64896,110 +65693,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a GetReplicasRequest message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.GetReplicasRequest + * @memberof tabletmanagerdata.StopReplicationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetReplicasRequest} GetReplicasRequest + * @returns {tabletmanagerdata.StopReplicationRequest} StopReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetReplicasRequest.decodeDelimited = function decodeDelimited(reader) { + StopReplicationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetReplicasRequest message. + * Verifies a StopReplicationRequest message. * @function verify - * @memberof tabletmanagerdata.GetReplicasRequest + * @memberof tabletmanagerdata.StopReplicationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetReplicasRequest.verify = function verify(message) { + StopReplicationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a GetReplicasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.GetReplicasRequest + * @memberof tabletmanagerdata.StopReplicationRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetReplicasRequest} GetReplicasRequest + * @returns {tabletmanagerdata.StopReplicationRequest} StopReplicationRequest */ - GetReplicasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetReplicasRequest) + StopReplicationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.StopReplicationRequest) return object; - return new $root.tabletmanagerdata.GetReplicasRequest(); + return new $root.tabletmanagerdata.StopReplicationRequest(); }; /** - * Creates a plain object from a GetReplicasRequest message. Also converts values to other types if specified. + * Creates a plain object from a StopReplicationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.GetReplicasRequest + * @memberof tabletmanagerdata.StopReplicationRequest * @static - * @param {tabletmanagerdata.GetReplicasRequest} message GetReplicasRequest + * @param {tabletmanagerdata.StopReplicationRequest} message StopReplicationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetReplicasRequest.toObject = function toObject() { + StopReplicationRequest.toObject = function toObject() { return {}; }; /** - * Converts this GetReplicasRequest to JSON. + * Converts this StopReplicationRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetReplicasRequest + * @memberof tabletmanagerdata.StopReplicationRequest * @instance * @returns {Object.} JSON object */ - GetReplicasRequest.prototype.toJSON = function toJSON() { + StopReplicationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetReplicasRequest + * Gets the default type url for StopReplicationRequest * @function getTypeUrl - * @memberof tabletmanagerdata.GetReplicasRequest + * @memberof tabletmanagerdata.StopReplicationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetReplicasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StopReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.GetReplicasRequest"; + return typeUrlPrefix + "/tabletmanagerdata.StopReplicationRequest"; }; - return GetReplicasRequest; + return StopReplicationRequest; })(); - tabletmanagerdata.GetReplicasResponse = (function() { + tabletmanagerdata.StopReplicationResponse = (function() { /** - * Properties of a GetReplicasResponse. + * Properties of a StopReplicationResponse. * @memberof tabletmanagerdata - * @interface IGetReplicasResponse - * @property {Array.|null} [addrs] GetReplicasResponse addrs + * @interface IStopReplicationResponse */ /** - * Constructs a new GetReplicasResponse. + * Constructs a new StopReplicationResponse. * @memberof tabletmanagerdata - * @classdesc Represents a GetReplicasResponse. - * @implements IGetReplicasResponse + * @classdesc Represents a StopReplicationResponse. + * @implements IStopReplicationResponse * @constructor - * @param {tabletmanagerdata.IGetReplicasResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IStopReplicationResponse=} [properties] Properties to set */ - function GetReplicasResponse(properties) { - this.addrs = []; + function StopReplicationResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65007,80 +65802,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * GetReplicasResponse addrs. - * @member {Array.} addrs - * @memberof tabletmanagerdata.GetReplicasResponse - * @instance - */ - GetReplicasResponse.prototype.addrs = $util.emptyArray; - - /** - * Creates a new GetReplicasResponse instance using the specified properties. + * Creates a new StopReplicationResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetReplicasResponse + * @memberof tabletmanagerdata.StopReplicationResponse * @static - * @param {tabletmanagerdata.IGetReplicasResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.GetReplicasResponse} GetReplicasResponse instance + * @param {tabletmanagerdata.IStopReplicationResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.StopReplicationResponse} StopReplicationResponse instance */ - GetReplicasResponse.create = function create(properties) { - return new GetReplicasResponse(properties); + StopReplicationResponse.create = function create(properties) { + return new StopReplicationResponse(properties); }; /** - * Encodes the specified GetReplicasResponse message. Does not implicitly {@link tabletmanagerdata.GetReplicasResponse.verify|verify} messages. + * Encodes the specified StopReplicationResponse message. Does not implicitly {@link tabletmanagerdata.StopReplicationResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetReplicasResponse + * @memberof tabletmanagerdata.StopReplicationResponse * @static - * @param {tabletmanagerdata.IGetReplicasResponse} message GetReplicasResponse message or plain object to encode + * @param {tabletmanagerdata.IStopReplicationResponse} message StopReplicationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetReplicasResponse.encode = function encode(message, writer) { + StopReplicationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.addrs != null && message.addrs.length) - for (let i = 0; i < message.addrs.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.addrs[i]); return writer; }; /** - * Encodes the specified GetReplicasResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetReplicasResponse.verify|verify} messages. + * Encodes the specified StopReplicationResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetReplicasResponse + * @memberof tabletmanagerdata.StopReplicationResponse * @static - * @param {tabletmanagerdata.IGetReplicasResponse} message GetReplicasResponse message or plain object to encode + * @param {tabletmanagerdata.IStopReplicationResponse} message StopReplicationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetReplicasResponse.encodeDelimited = function encodeDelimited(message, writer) { + StopReplicationResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetReplicasResponse message from the specified reader or buffer. + * Decodes a StopReplicationResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetReplicasResponse + * @memberof tabletmanagerdata.StopReplicationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetReplicasResponse} GetReplicasResponse + * @returns {tabletmanagerdata.StopReplicationResponse} StopReplicationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetReplicasResponse.decode = function decode(reader, length) { + StopReplicationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetReplicasResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StopReplicationResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.addrs && message.addrs.length)) - message.addrs = []; - message.addrs.push(reader.string()); - break; - } default: reader.skipType(tag & 7); break; @@ -65090,133 +65868,110 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a GetReplicasResponse message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.GetReplicasResponse + * @memberof tabletmanagerdata.StopReplicationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetReplicasResponse} GetReplicasResponse + * @returns {tabletmanagerdata.StopReplicationResponse} StopReplicationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetReplicasResponse.decodeDelimited = function decodeDelimited(reader) { + StopReplicationResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetReplicasResponse message. + * Verifies a StopReplicationResponse message. * @function verify - * @memberof tabletmanagerdata.GetReplicasResponse + * @memberof tabletmanagerdata.StopReplicationResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetReplicasResponse.verify = function verify(message) { + StopReplicationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.addrs != null && message.hasOwnProperty("addrs")) { - if (!Array.isArray(message.addrs)) - return "addrs: array expected"; - for (let i = 0; i < message.addrs.length; ++i) - if (!$util.isString(message.addrs[i])) - return "addrs: string[] expected"; - } return null; }; /** - * Creates a GetReplicasResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.GetReplicasResponse + * @memberof tabletmanagerdata.StopReplicationResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetReplicasResponse} GetReplicasResponse + * @returns {tabletmanagerdata.StopReplicationResponse} StopReplicationResponse */ - GetReplicasResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetReplicasResponse) + StopReplicationResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.StopReplicationResponse) return object; - let message = new $root.tabletmanagerdata.GetReplicasResponse(); - if (object.addrs) { - if (!Array.isArray(object.addrs)) - throw TypeError(".tabletmanagerdata.GetReplicasResponse.addrs: array expected"); - message.addrs = []; - for (let i = 0; i < object.addrs.length; ++i) - message.addrs[i] = String(object.addrs[i]); - } - return message; + return new $root.tabletmanagerdata.StopReplicationResponse(); }; /** - * Creates a plain object from a GetReplicasResponse message. Also converts values to other types if specified. + * Creates a plain object from a StopReplicationResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.GetReplicasResponse + * @memberof tabletmanagerdata.StopReplicationResponse * @static - * @param {tabletmanagerdata.GetReplicasResponse} message GetReplicasResponse + * @param {tabletmanagerdata.StopReplicationResponse} message StopReplicationResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetReplicasResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.addrs = []; - if (message.addrs && message.addrs.length) { - object.addrs = []; - for (let j = 0; j < message.addrs.length; ++j) - object.addrs[j] = message.addrs[j]; - } - return object; + StopReplicationResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetReplicasResponse to JSON. + * Converts this StopReplicationResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetReplicasResponse + * @memberof tabletmanagerdata.StopReplicationResponse * @instance * @returns {Object.} JSON object */ - GetReplicasResponse.prototype.toJSON = function toJSON() { + StopReplicationResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetReplicasResponse + * Gets the default type url for StopReplicationResponse * @function getTypeUrl - * @memberof tabletmanagerdata.GetReplicasResponse + * @memberof tabletmanagerdata.StopReplicationResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetReplicasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StopReplicationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.GetReplicasResponse"; + return typeUrlPrefix + "/tabletmanagerdata.StopReplicationResponse"; }; - return GetReplicasResponse; + return StopReplicationResponse; })(); - tabletmanagerdata.ResetReplicationRequest = (function() { + tabletmanagerdata.StopReplicationMinimumRequest = (function() { /** - * Properties of a ResetReplicationRequest. + * Properties of a StopReplicationMinimumRequest. * @memberof tabletmanagerdata - * @interface IResetReplicationRequest + * @interface IStopReplicationMinimumRequest + * @property {string|null} [position] StopReplicationMinimumRequest position + * @property {number|Long|null} [wait_timeout] StopReplicationMinimumRequest wait_timeout */ /** - * Constructs a new ResetReplicationRequest. + * Constructs a new StopReplicationMinimumRequest. * @memberof tabletmanagerdata - * @classdesc Represents a ResetReplicationRequest. - * @implements IResetReplicationRequest + * @classdesc Represents a StopReplicationMinimumRequest. + * @implements IStopReplicationMinimumRequest * @constructor - * @param {tabletmanagerdata.IResetReplicationRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IStopReplicationMinimumRequest=} [properties] Properties to set */ - function ResetReplicationRequest(properties) { + function StopReplicationMinimumRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65224,63 +65979,91 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new ResetReplicationRequest instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.ResetReplicationRequest - * @static - * @param {tabletmanagerdata.IResetReplicationRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ResetReplicationRequest} ResetReplicationRequest instance + * StopReplicationMinimumRequest position. + * @member {string} position + * @memberof tabletmanagerdata.StopReplicationMinimumRequest + * @instance */ - ResetReplicationRequest.create = function create(properties) { - return new ResetReplicationRequest(properties); - }; + StopReplicationMinimumRequest.prototype.position = ""; /** - * Encodes the specified ResetReplicationRequest message. Does not implicitly {@link tabletmanagerdata.ResetReplicationRequest.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.ResetReplicationRequest - * @static - * @param {tabletmanagerdata.IResetReplicationRequest} message ResetReplicationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResetReplicationRequest.encode = function encode(message, writer) { - if (!writer) + * StopReplicationMinimumRequest wait_timeout. + * @member {number|Long} wait_timeout + * @memberof tabletmanagerdata.StopReplicationMinimumRequest + * @instance + */ + StopReplicationMinimumRequest.prototype.wait_timeout = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new StopReplicationMinimumRequest instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.StopReplicationMinimumRequest + * @static + * @param {tabletmanagerdata.IStopReplicationMinimumRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.StopReplicationMinimumRequest} StopReplicationMinimumRequest instance + */ + StopReplicationMinimumRequest.create = function create(properties) { + return new StopReplicationMinimumRequest(properties); + }; + + /** + * Encodes the specified StopReplicationMinimumRequest message. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumRequest.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.StopReplicationMinimumRequest + * @static + * @param {tabletmanagerdata.IStopReplicationMinimumRequest} message StopReplicationMinimumRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopReplicationMinimumRequest.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.wait_timeout != null && Object.hasOwnProperty.call(message, "wait_timeout")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.wait_timeout); return writer; }; /** - * Encodes the specified ResetReplicationRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationRequest.verify|verify} messages. + * Encodes the specified StopReplicationMinimumRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ResetReplicationRequest + * @memberof tabletmanagerdata.StopReplicationMinimumRequest * @static - * @param {tabletmanagerdata.IResetReplicationRequest} message ResetReplicationRequest message or plain object to encode + * @param {tabletmanagerdata.IStopReplicationMinimumRequest} message StopReplicationMinimumRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) { + StopReplicationMinimumRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResetReplicationRequest message from the specified reader or buffer. + * Decodes a StopReplicationMinimumRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ResetReplicationRequest + * @memberof tabletmanagerdata.StopReplicationMinimumRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ResetReplicationRequest} ResetReplicationRequest + * @returns {tabletmanagerdata.StopReplicationMinimumRequest} StopReplicationMinimumRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetReplicationRequest.decode = function decode(reader, length) { + StopReplicationMinimumRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetReplicationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StopReplicationMinimumRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.position = reader.string(); + break; + } + case 2: { + message.wait_timeout = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -65290,108 +66073,145 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ResetReplicationRequest message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationMinimumRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ResetReplicationRequest + * @memberof tabletmanagerdata.StopReplicationMinimumRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ResetReplicationRequest} ResetReplicationRequest + * @returns {tabletmanagerdata.StopReplicationMinimumRequest} StopReplicationMinimumRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetReplicationRequest.decodeDelimited = function decodeDelimited(reader) { + StopReplicationMinimumRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResetReplicationRequest message. + * Verifies a StopReplicationMinimumRequest message. * @function verify - * @memberof tabletmanagerdata.ResetReplicationRequest + * @memberof tabletmanagerdata.StopReplicationMinimumRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResetReplicationRequest.verify = function verify(message) { + StopReplicationMinimumRequest.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.wait_timeout != null && message.hasOwnProperty("wait_timeout")) + if (!$util.isInteger(message.wait_timeout) && !(message.wait_timeout && $util.isInteger(message.wait_timeout.low) && $util.isInteger(message.wait_timeout.high))) + return "wait_timeout: integer|Long expected"; return null; }; /** - * Creates a ResetReplicationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationMinimumRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ResetReplicationRequest + * @memberof tabletmanagerdata.StopReplicationMinimumRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ResetReplicationRequest} ResetReplicationRequest + * @returns {tabletmanagerdata.StopReplicationMinimumRequest} StopReplicationMinimumRequest */ - ResetReplicationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ResetReplicationRequest) + StopReplicationMinimumRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.StopReplicationMinimumRequest) return object; - return new $root.tabletmanagerdata.ResetReplicationRequest(); + let message = new $root.tabletmanagerdata.StopReplicationMinimumRequest(); + if (object.position != null) + message.position = String(object.position); + if (object.wait_timeout != null) + if ($util.Long) + (message.wait_timeout = $util.Long.fromValue(object.wait_timeout)).unsigned = false; + else if (typeof object.wait_timeout === "string") + message.wait_timeout = parseInt(object.wait_timeout, 10); + else if (typeof object.wait_timeout === "number") + message.wait_timeout = object.wait_timeout; + else if (typeof object.wait_timeout === "object") + message.wait_timeout = new $util.LongBits(object.wait_timeout.low >>> 0, object.wait_timeout.high >>> 0).toNumber(); + return message; }; /** - * Creates a plain object from a ResetReplicationRequest message. Also converts values to other types if specified. + * Creates a plain object from a StopReplicationMinimumRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ResetReplicationRequest + * @memberof tabletmanagerdata.StopReplicationMinimumRequest * @static - * @param {tabletmanagerdata.ResetReplicationRequest} message ResetReplicationRequest + * @param {tabletmanagerdata.StopReplicationMinimumRequest} message StopReplicationMinimumRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResetReplicationRequest.toObject = function toObject() { - return {}; + StopReplicationMinimumRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.position = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.wait_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.wait_timeout = options.longs === String ? "0" : 0; + } + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + if (message.wait_timeout != null && message.hasOwnProperty("wait_timeout")) + if (typeof message.wait_timeout === "number") + object.wait_timeout = options.longs === String ? String(message.wait_timeout) : message.wait_timeout; + else + object.wait_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.wait_timeout) : options.longs === Number ? new $util.LongBits(message.wait_timeout.low >>> 0, message.wait_timeout.high >>> 0).toNumber() : message.wait_timeout; + return object; }; /** - * Converts this ResetReplicationRequest to JSON. + * Converts this StopReplicationMinimumRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ResetReplicationRequest + * @memberof tabletmanagerdata.StopReplicationMinimumRequest * @instance * @returns {Object.} JSON object */ - ResetReplicationRequest.prototype.toJSON = function toJSON() { + StopReplicationMinimumRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResetReplicationRequest + * Gets the default type url for StopReplicationMinimumRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ResetReplicationRequest + * @memberof tabletmanagerdata.StopReplicationMinimumRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResetReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StopReplicationMinimumRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ResetReplicationRequest"; + return typeUrlPrefix + "/tabletmanagerdata.StopReplicationMinimumRequest"; }; - return ResetReplicationRequest; + return StopReplicationMinimumRequest; })(); - tabletmanagerdata.ResetReplicationResponse = (function() { + tabletmanagerdata.StopReplicationMinimumResponse = (function() { /** - * Properties of a ResetReplicationResponse. + * Properties of a StopReplicationMinimumResponse. * @memberof tabletmanagerdata - * @interface IResetReplicationResponse + * @interface IStopReplicationMinimumResponse + * @property {string|null} [position] StopReplicationMinimumResponse position */ /** - * Constructs a new ResetReplicationResponse. + * Constructs a new StopReplicationMinimumResponse. * @memberof tabletmanagerdata - * @classdesc Represents a ResetReplicationResponse. - * @implements IResetReplicationResponse + * @classdesc Represents a StopReplicationMinimumResponse. + * @implements IStopReplicationMinimumResponse * @constructor - * @param {tabletmanagerdata.IResetReplicationResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IStopReplicationMinimumResponse=} [properties] Properties to set */ - function ResetReplicationResponse(properties) { + function StopReplicationMinimumResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65399,63 +66219,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new ResetReplicationResponse instance using the specified properties. + * StopReplicationMinimumResponse position. + * @member {string} position + * @memberof tabletmanagerdata.StopReplicationMinimumResponse + * @instance + */ + StopReplicationMinimumResponse.prototype.position = ""; + + /** + * Creates a new StopReplicationMinimumResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ResetReplicationResponse + * @memberof tabletmanagerdata.StopReplicationMinimumResponse * @static - * @param {tabletmanagerdata.IResetReplicationResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ResetReplicationResponse} ResetReplicationResponse instance + * @param {tabletmanagerdata.IStopReplicationMinimumResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.StopReplicationMinimumResponse} StopReplicationMinimumResponse instance */ - ResetReplicationResponse.create = function create(properties) { - return new ResetReplicationResponse(properties); + StopReplicationMinimumResponse.create = function create(properties) { + return new StopReplicationMinimumResponse(properties); }; /** - * Encodes the specified ResetReplicationResponse message. Does not implicitly {@link tabletmanagerdata.ResetReplicationResponse.verify|verify} messages. + * Encodes the specified StopReplicationMinimumResponse message. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ResetReplicationResponse + * @memberof tabletmanagerdata.StopReplicationMinimumResponse * @static - * @param {tabletmanagerdata.IResetReplicationResponse} message ResetReplicationResponse message or plain object to encode + * @param {tabletmanagerdata.IStopReplicationMinimumResponse} message StopReplicationMinimumResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetReplicationResponse.encode = function encode(message, writer) { + StopReplicationMinimumResponse.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); return writer; }; /** - * Encodes the specified ResetReplicationResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationResponse.verify|verify} messages. + * Encodes the specified StopReplicationMinimumResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationMinimumResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ResetReplicationResponse + * @memberof tabletmanagerdata.StopReplicationMinimumResponse * @static - * @param {tabletmanagerdata.IResetReplicationResponse} message ResetReplicationResponse message or plain object to encode + * @param {tabletmanagerdata.IStopReplicationMinimumResponse} message StopReplicationMinimumResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetReplicationResponse.encodeDelimited = function encodeDelimited(message, writer) { + StopReplicationMinimumResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResetReplicationResponse message from the specified reader or buffer. + * Decodes a StopReplicationMinimumResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ResetReplicationResponse + * @memberof tabletmanagerdata.StopReplicationMinimumResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ResetReplicationResponse} ResetReplicationResponse + * @returns {tabletmanagerdata.StopReplicationMinimumResponse} StopReplicationMinimumResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetReplicationResponse.decode = function decode(reader, length) { + StopReplicationMinimumResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetReplicationResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StopReplicationMinimumResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.position = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -65465,109 +66299,122 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ResetReplicationResponse message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationMinimumResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ResetReplicationResponse + * @memberof tabletmanagerdata.StopReplicationMinimumResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ResetReplicationResponse} ResetReplicationResponse + * @returns {tabletmanagerdata.StopReplicationMinimumResponse} StopReplicationMinimumResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetReplicationResponse.decodeDelimited = function decodeDelimited(reader) { + StopReplicationMinimumResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResetReplicationResponse message. + * Verifies a StopReplicationMinimumResponse message. * @function verify - * @memberof tabletmanagerdata.ResetReplicationResponse + * @memberof tabletmanagerdata.StopReplicationMinimumResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResetReplicationResponse.verify = function verify(message) { + StopReplicationMinimumResponse.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"; return null; }; /** - * Creates a ResetReplicationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationMinimumResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ResetReplicationResponse + * @memberof tabletmanagerdata.StopReplicationMinimumResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ResetReplicationResponse} ResetReplicationResponse + * @returns {tabletmanagerdata.StopReplicationMinimumResponse} StopReplicationMinimumResponse */ - ResetReplicationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ResetReplicationResponse) + StopReplicationMinimumResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.StopReplicationMinimumResponse) return object; - return new $root.tabletmanagerdata.ResetReplicationResponse(); + let message = new $root.tabletmanagerdata.StopReplicationMinimumResponse(); + if (object.position != null) + message.position = String(object.position); + return message; }; /** - * Creates a plain object from a ResetReplicationResponse message. Also converts values to other types if specified. + * Creates a plain object from a StopReplicationMinimumResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ResetReplicationResponse + * @memberof tabletmanagerdata.StopReplicationMinimumResponse * @static - * @param {tabletmanagerdata.ResetReplicationResponse} message ResetReplicationResponse + * @param {tabletmanagerdata.StopReplicationMinimumResponse} message StopReplicationMinimumResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResetReplicationResponse.toObject = function toObject() { - return {}; + StopReplicationMinimumResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.position = ""; + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + return object; }; /** - * Converts this ResetReplicationResponse to JSON. + * Converts this StopReplicationMinimumResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ResetReplicationResponse + * @memberof tabletmanagerdata.StopReplicationMinimumResponse * @instance * @returns {Object.} JSON object */ - ResetReplicationResponse.prototype.toJSON = function toJSON() { + StopReplicationMinimumResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResetReplicationResponse + * Gets the default type url for StopReplicationMinimumResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ResetReplicationResponse + * @memberof tabletmanagerdata.StopReplicationMinimumResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResetReplicationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StopReplicationMinimumResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ResetReplicationResponse"; + return typeUrlPrefix + "/tabletmanagerdata.StopReplicationMinimumResponse"; }; - return ResetReplicationResponse; + return StopReplicationMinimumResponse; })(); - tabletmanagerdata.VReplicationExecRequest = (function() { + tabletmanagerdata.StartReplicationRequest = (function() { /** - * Properties of a VReplicationExecRequest. + * Properties of a StartReplicationRequest. * @memberof tabletmanagerdata - * @interface IVReplicationExecRequest - * @property {string|null} [query] VReplicationExecRequest query + * @interface IStartReplicationRequest + * @property {boolean|null} [semiSync] StartReplicationRequest semiSync */ /** - * Constructs a new VReplicationExecRequest. + * Constructs a new StartReplicationRequest. * @memberof tabletmanagerdata - * @classdesc Represents a VReplicationExecRequest. - * @implements IVReplicationExecRequest + * @classdesc Represents a StartReplicationRequest. + * @implements IStartReplicationRequest * @constructor - * @param {tabletmanagerdata.IVReplicationExecRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IStartReplicationRequest=} [properties] Properties to set */ - function VReplicationExecRequest(properties) { + function StartReplicationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65575,75 +66422,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * VReplicationExecRequest query. - * @member {string} query - * @memberof tabletmanagerdata.VReplicationExecRequest + * StartReplicationRequest semiSync. + * @member {boolean} semiSync + * @memberof tabletmanagerdata.StartReplicationRequest * @instance */ - VReplicationExecRequest.prototype.query = ""; + StartReplicationRequest.prototype.semiSync = false; /** - * Creates a new VReplicationExecRequest instance using the specified properties. + * Creates a new StartReplicationRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.VReplicationExecRequest + * @memberof tabletmanagerdata.StartReplicationRequest * @static - * @param {tabletmanagerdata.IVReplicationExecRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.VReplicationExecRequest} VReplicationExecRequest instance + * @param {tabletmanagerdata.IStartReplicationRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.StartReplicationRequest} StartReplicationRequest instance */ - VReplicationExecRequest.create = function create(properties) { - return new VReplicationExecRequest(properties); + StartReplicationRequest.create = function create(properties) { + return new StartReplicationRequest(properties); }; /** - * Encodes the specified VReplicationExecRequest message. Does not implicitly {@link tabletmanagerdata.VReplicationExecRequest.verify|verify} messages. + * Encodes the specified StartReplicationRequest message. Does not implicitly {@link tabletmanagerdata.StartReplicationRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.VReplicationExecRequest + * @memberof tabletmanagerdata.StartReplicationRequest * @static - * @param {tabletmanagerdata.IVReplicationExecRequest} message VReplicationExecRequest message or plain object to encode + * @param {tabletmanagerdata.IStartReplicationRequest} message StartReplicationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VReplicationExecRequest.encode = function encode(message, writer) { + StartReplicationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.query); + if (message.semiSync != null && Object.hasOwnProperty.call(message, "semiSync")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.semiSync); return writer; }; /** - * Encodes the specified VReplicationExecRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationExecRequest.verify|verify} messages. + * Encodes the specified StartReplicationRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StartReplicationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.VReplicationExecRequest + * @memberof tabletmanagerdata.StartReplicationRequest * @static - * @param {tabletmanagerdata.IVReplicationExecRequest} message VReplicationExecRequest message or plain object to encode + * @param {tabletmanagerdata.IStartReplicationRequest} message StartReplicationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VReplicationExecRequest.encodeDelimited = function encodeDelimited(message, writer) { + StartReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VReplicationExecRequest message from the specified reader or buffer. + * Decodes a StartReplicationRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.VReplicationExecRequest + * @memberof tabletmanagerdata.StartReplicationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.VReplicationExecRequest} VReplicationExecRequest + * @returns {tabletmanagerdata.StartReplicationRequest} StartReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VReplicationExecRequest.decode = function decode(reader, length) { + StartReplicationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VReplicationExecRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StartReplicationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.query = reader.string(); + message.semiSync = reader.bool(); break; } default: @@ -65655,122 +66502,121 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a VReplicationExecRequest message from the specified reader or buffer, length delimited. + * Decodes a StartReplicationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.VReplicationExecRequest + * @memberof tabletmanagerdata.StartReplicationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.VReplicationExecRequest} VReplicationExecRequest + * @returns {tabletmanagerdata.StartReplicationRequest} StartReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VReplicationExecRequest.decodeDelimited = function decodeDelimited(reader) { + StartReplicationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VReplicationExecRequest message. + * Verifies a StartReplicationRequest message. * @function verify - * @memberof tabletmanagerdata.VReplicationExecRequest + * @memberof tabletmanagerdata.StartReplicationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VReplicationExecRequest.verify = function verify(message) { + StartReplicationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.query != null && message.hasOwnProperty("query")) - if (!$util.isString(message.query)) - return "query: string expected"; + if (message.semiSync != null && message.hasOwnProperty("semiSync")) + if (typeof message.semiSync !== "boolean") + return "semiSync: boolean expected"; return null; }; /** - * Creates a VReplicationExecRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartReplicationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.VReplicationExecRequest + * @memberof tabletmanagerdata.StartReplicationRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.VReplicationExecRequest} VReplicationExecRequest + * @returns {tabletmanagerdata.StartReplicationRequest} StartReplicationRequest */ - VReplicationExecRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.VReplicationExecRequest) + StartReplicationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.StartReplicationRequest) return object; - let message = new $root.tabletmanagerdata.VReplicationExecRequest(); - if (object.query != null) - message.query = String(object.query); + let message = new $root.tabletmanagerdata.StartReplicationRequest(); + if (object.semiSync != null) + message.semiSync = Boolean(object.semiSync); return message; }; /** - * Creates a plain object from a VReplicationExecRequest message. Also converts values to other types if specified. + * Creates a plain object from a StartReplicationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.VReplicationExecRequest + * @memberof tabletmanagerdata.StartReplicationRequest * @static - * @param {tabletmanagerdata.VReplicationExecRequest} message VReplicationExecRequest + * @param {tabletmanagerdata.StartReplicationRequest} message StartReplicationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VReplicationExecRequest.toObject = function toObject(message, options) { + StartReplicationRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.query = ""; - if (message.query != null && message.hasOwnProperty("query")) - object.query = message.query; + object.semiSync = false; + if (message.semiSync != null && message.hasOwnProperty("semiSync")) + object.semiSync = message.semiSync; return object; }; /** - * Converts this VReplicationExecRequest to JSON. + * Converts this StartReplicationRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.VReplicationExecRequest + * @memberof tabletmanagerdata.StartReplicationRequest * @instance * @returns {Object.} JSON object */ - VReplicationExecRequest.prototype.toJSON = function toJSON() { + StartReplicationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VReplicationExecRequest + * Gets the default type url for StartReplicationRequest * @function getTypeUrl - * @memberof tabletmanagerdata.VReplicationExecRequest + * @memberof tabletmanagerdata.StartReplicationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VReplicationExecRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StartReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.VReplicationExecRequest"; + return typeUrlPrefix + "/tabletmanagerdata.StartReplicationRequest"; }; - return VReplicationExecRequest; + return StartReplicationRequest; })(); - tabletmanagerdata.VReplicationExecResponse = (function() { + tabletmanagerdata.StartReplicationResponse = (function() { /** - * Properties of a VReplicationExecResponse. + * Properties of a StartReplicationResponse. * @memberof tabletmanagerdata - * @interface IVReplicationExecResponse - * @property {query.IQueryResult|null} [result] VReplicationExecResponse result + * @interface IStartReplicationResponse */ /** - * Constructs a new VReplicationExecResponse. + * Constructs a new StartReplicationResponse. * @memberof tabletmanagerdata - * @classdesc Represents a VReplicationExecResponse. - * @implements IVReplicationExecResponse + * @classdesc Represents a StartReplicationResponse. + * @implements IStartReplicationResponse * @constructor - * @param {tabletmanagerdata.IVReplicationExecResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IStartReplicationResponse=} [properties] Properties to set */ - function VReplicationExecResponse(properties) { + function StartReplicationResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65778,77 +66624,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * VReplicationExecResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof tabletmanagerdata.VReplicationExecResponse - * @instance - */ - VReplicationExecResponse.prototype.result = null; - - /** - * Creates a new VReplicationExecResponse instance using the specified properties. + * Creates a new StartReplicationResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.VReplicationExecResponse + * @memberof tabletmanagerdata.StartReplicationResponse * @static - * @param {tabletmanagerdata.IVReplicationExecResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.VReplicationExecResponse} VReplicationExecResponse instance + * @param {tabletmanagerdata.IStartReplicationResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.StartReplicationResponse} StartReplicationResponse instance */ - VReplicationExecResponse.create = function create(properties) { - return new VReplicationExecResponse(properties); + StartReplicationResponse.create = function create(properties) { + return new StartReplicationResponse(properties); }; /** - * Encodes the specified VReplicationExecResponse message. Does not implicitly {@link tabletmanagerdata.VReplicationExecResponse.verify|verify} messages. + * Encodes the specified StartReplicationResponse message. Does not implicitly {@link tabletmanagerdata.StartReplicationResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.VReplicationExecResponse + * @memberof tabletmanagerdata.StartReplicationResponse * @static - * @param {tabletmanagerdata.IVReplicationExecResponse} message VReplicationExecResponse message or plain object to encode + * @param {tabletmanagerdata.IStartReplicationResponse} message StartReplicationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VReplicationExecResponse.encode = function encode(message, writer) { + StartReplicationResponse.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 VReplicationExecResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationExecResponse.verify|verify} messages. + * Encodes the specified StartReplicationResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StartReplicationResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.VReplicationExecResponse + * @memberof tabletmanagerdata.StartReplicationResponse * @static - * @param {tabletmanagerdata.IVReplicationExecResponse} message VReplicationExecResponse message or plain object to encode + * @param {tabletmanagerdata.IStartReplicationResponse} message StartReplicationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VReplicationExecResponse.encodeDelimited = function encodeDelimited(message, writer) { + StartReplicationResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VReplicationExecResponse message from the specified reader or buffer. + * Decodes a StartReplicationResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.VReplicationExecResponse + * @memberof tabletmanagerdata.StartReplicationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.VReplicationExecResponse} VReplicationExecResponse + * @returns {tabletmanagerdata.StartReplicationResponse} StartReplicationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VReplicationExecResponse.decode = function decode(reader, length) { + StartReplicationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VReplicationExecResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StartReplicationResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -65858,128 +66690,110 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a VReplicationExecResponse message from the specified reader or buffer, length delimited. + * Decodes a StartReplicationResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.VReplicationExecResponse + * @memberof tabletmanagerdata.StartReplicationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.VReplicationExecResponse} VReplicationExecResponse + * @returns {tabletmanagerdata.StartReplicationResponse} StartReplicationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VReplicationExecResponse.decodeDelimited = function decodeDelimited(reader) { + StartReplicationResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VReplicationExecResponse message. + * Verifies a StartReplicationResponse message. * @function verify - * @memberof tabletmanagerdata.VReplicationExecResponse + * @memberof tabletmanagerdata.StartReplicationResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VReplicationExecResponse.verify = function verify(message) { + StartReplicationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } return null; }; /** - * Creates a VReplicationExecResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StartReplicationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.VReplicationExecResponse + * @memberof tabletmanagerdata.StartReplicationResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.VReplicationExecResponse} VReplicationExecResponse + * @returns {tabletmanagerdata.StartReplicationResponse} StartReplicationResponse */ - VReplicationExecResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.VReplicationExecResponse) + StartReplicationResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.StartReplicationResponse) return object; - let message = new $root.tabletmanagerdata.VReplicationExecResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".tabletmanagerdata.VReplicationExecResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - return message; + return new $root.tabletmanagerdata.StartReplicationResponse(); }; /** - * Creates a plain object from a VReplicationExecResponse message. Also converts values to other types if specified. + * Creates a plain object from a StartReplicationResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.VReplicationExecResponse + * @memberof tabletmanagerdata.StartReplicationResponse * @static - * @param {tabletmanagerdata.VReplicationExecResponse} message VReplicationExecResponse + * @param {tabletmanagerdata.StartReplicationResponse} message StartReplicationResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VReplicationExecResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); - return object; + StartReplicationResponse.toObject = function toObject() { + return {}; }; /** - * Converts this VReplicationExecResponse to JSON. + * Converts this StartReplicationResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.VReplicationExecResponse + * @memberof tabletmanagerdata.StartReplicationResponse * @instance * @returns {Object.} JSON object */ - VReplicationExecResponse.prototype.toJSON = function toJSON() { + StartReplicationResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VReplicationExecResponse + * Gets the default type url for StartReplicationResponse * @function getTypeUrl - * @memberof tabletmanagerdata.VReplicationExecResponse + * @memberof tabletmanagerdata.StartReplicationResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VReplicationExecResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StartReplicationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.VReplicationExecResponse"; + return typeUrlPrefix + "/tabletmanagerdata.StartReplicationResponse"; }; - return VReplicationExecResponse; + return StartReplicationResponse; })(); - tabletmanagerdata.VReplicationWaitForPosRequest = (function() { + tabletmanagerdata.StartReplicationUntilAfterRequest = (function() { /** - * Properties of a VReplicationWaitForPosRequest. + * Properties of a StartReplicationUntilAfterRequest. * @memberof tabletmanagerdata - * @interface IVReplicationWaitForPosRequest - * @property {number|null} [id] VReplicationWaitForPosRequest id - * @property {string|null} [position] VReplicationWaitForPosRequest position + * @interface IStartReplicationUntilAfterRequest + * @property {string|null} [position] StartReplicationUntilAfterRequest position + * @property {number|Long|null} [wait_timeout] StartReplicationUntilAfterRequest wait_timeout */ /** - * Constructs a new VReplicationWaitForPosRequest. + * Constructs a new StartReplicationUntilAfterRequest. * @memberof tabletmanagerdata - * @classdesc Represents a VReplicationWaitForPosRequest. - * @implements IVReplicationWaitForPosRequest + * @classdesc Represents a StartReplicationUntilAfterRequest. + * @implements IStartReplicationUntilAfterRequest * @constructor - * @param {tabletmanagerdata.IVReplicationWaitForPosRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IStartReplicationUntilAfterRequest=} [properties] Properties to set */ - function VReplicationWaitForPosRequest(properties) { + function StartReplicationUntilAfterRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65987,89 +66801,89 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * VReplicationWaitForPosRequest id. - * @member {number} id - * @memberof tabletmanagerdata.VReplicationWaitForPosRequest + * StartReplicationUntilAfterRequest position. + * @member {string} position + * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest * @instance */ - VReplicationWaitForPosRequest.prototype.id = 0; + StartReplicationUntilAfterRequest.prototype.position = ""; /** - * VReplicationWaitForPosRequest position. - * @member {string} position - * @memberof tabletmanagerdata.VReplicationWaitForPosRequest + * StartReplicationUntilAfterRequest wait_timeout. + * @member {number|Long} wait_timeout + * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest * @instance */ - VReplicationWaitForPosRequest.prototype.position = ""; + StartReplicationUntilAfterRequest.prototype.wait_timeout = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new VReplicationWaitForPosRequest instance using the specified properties. + * Creates a new StartReplicationUntilAfterRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.VReplicationWaitForPosRequest + * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest * @static - * @param {tabletmanagerdata.IVReplicationWaitForPosRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.VReplicationWaitForPosRequest} VReplicationWaitForPosRequest instance + * @param {tabletmanagerdata.IStartReplicationUntilAfterRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.StartReplicationUntilAfterRequest} StartReplicationUntilAfterRequest instance */ - VReplicationWaitForPosRequest.create = function create(properties) { - return new VReplicationWaitForPosRequest(properties); + StartReplicationUntilAfterRequest.create = function create(properties) { + return new StartReplicationUntilAfterRequest(properties); }; /** - * Encodes the specified VReplicationWaitForPosRequest message. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosRequest.verify|verify} messages. + * Encodes the specified StartReplicationUntilAfterRequest message. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.VReplicationWaitForPosRequest + * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest * @static - * @param {tabletmanagerdata.IVReplicationWaitForPosRequest} message VReplicationWaitForPosRequest message or plain object to encode + * @param {tabletmanagerdata.IStartReplicationUntilAfterRequest} message StartReplicationUntilAfterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VReplicationWaitForPosRequest.encode = function encode(message, writer) { + StartReplicationUntilAfterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); if (message.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.position); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); + if (message.wait_timeout != null && Object.hasOwnProperty.call(message, "wait_timeout")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.wait_timeout); return writer; }; /** - * Encodes the specified VReplicationWaitForPosRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosRequest.verify|verify} messages. + * Encodes the specified StartReplicationUntilAfterRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.VReplicationWaitForPosRequest + * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest * @static - * @param {tabletmanagerdata.IVReplicationWaitForPosRequest} message VReplicationWaitForPosRequest message or plain object to encode + * @param {tabletmanagerdata.IStartReplicationUntilAfterRequest} message StartReplicationUntilAfterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VReplicationWaitForPosRequest.encodeDelimited = function encodeDelimited(message, writer) { + StartReplicationUntilAfterRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VReplicationWaitForPosRequest message from the specified reader or buffer. + * Decodes a StartReplicationUntilAfterRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.VReplicationWaitForPosRequest + * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.VReplicationWaitForPosRequest} VReplicationWaitForPosRequest + * @returns {tabletmanagerdata.StartReplicationUntilAfterRequest} StartReplicationUntilAfterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VReplicationWaitForPosRequest.decode = function decode(reader, length) { + StartReplicationUntilAfterRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VReplicationWaitForPosRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StartReplicationUntilAfterRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.int32(); + message.position = reader.string(); break; } case 2: { - message.position = reader.string(); + message.wait_timeout = reader.int64(); break; } default: @@ -66081,130 +66895,144 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a VReplicationWaitForPosRequest message from the specified reader or buffer, length delimited. + * Decodes a StartReplicationUntilAfterRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.VReplicationWaitForPosRequest + * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.VReplicationWaitForPosRequest} VReplicationWaitForPosRequest + * @returns {tabletmanagerdata.StartReplicationUntilAfterRequest} StartReplicationUntilAfterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VReplicationWaitForPosRequest.decodeDelimited = function decodeDelimited(reader) { + StartReplicationUntilAfterRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VReplicationWaitForPosRequest message. + * Verifies a StartReplicationUntilAfterRequest message. * @function verify - * @memberof tabletmanagerdata.VReplicationWaitForPosRequest + * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VReplicationWaitForPosRequest.verify = function verify(message) { + StartReplicationUntilAfterRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; if (message.position != null && message.hasOwnProperty("position")) if (!$util.isString(message.position)) return "position: string expected"; + if (message.wait_timeout != null && message.hasOwnProperty("wait_timeout")) + if (!$util.isInteger(message.wait_timeout) && !(message.wait_timeout && $util.isInteger(message.wait_timeout.low) && $util.isInteger(message.wait_timeout.high))) + return "wait_timeout: integer|Long expected"; return null; }; /** - * Creates a VReplicationWaitForPosRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartReplicationUntilAfterRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.VReplicationWaitForPosRequest + * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.VReplicationWaitForPosRequest} VReplicationWaitForPosRequest + * @returns {tabletmanagerdata.StartReplicationUntilAfterRequest} StartReplicationUntilAfterRequest */ - VReplicationWaitForPosRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.VReplicationWaitForPosRequest) + StartReplicationUntilAfterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.StartReplicationUntilAfterRequest) return object; - let message = new $root.tabletmanagerdata.VReplicationWaitForPosRequest(); - if (object.id != null) - message.id = object.id | 0; + let message = new $root.tabletmanagerdata.StartReplicationUntilAfterRequest(); if (object.position != null) message.position = String(object.position); + if (object.wait_timeout != null) + if ($util.Long) + (message.wait_timeout = $util.Long.fromValue(object.wait_timeout)).unsigned = false; + else if (typeof object.wait_timeout === "string") + message.wait_timeout = parseInt(object.wait_timeout, 10); + else if (typeof object.wait_timeout === "number") + message.wait_timeout = object.wait_timeout; + else if (typeof object.wait_timeout === "object") + message.wait_timeout = new $util.LongBits(object.wait_timeout.low >>> 0, object.wait_timeout.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a VReplicationWaitForPosRequest message. Also converts values to other types if specified. + * Creates a plain object from a StartReplicationUntilAfterRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.VReplicationWaitForPosRequest + * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest * @static - * @param {tabletmanagerdata.VReplicationWaitForPosRequest} message VReplicationWaitForPosRequest + * @param {tabletmanagerdata.StartReplicationUntilAfterRequest} message StartReplicationUntilAfterRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VReplicationWaitForPosRequest.toObject = function toObject(message, options) { + StartReplicationUntilAfterRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.id = 0; object.position = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.wait_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.wait_timeout = options.longs === String ? "0" : 0; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; if (message.position != null && message.hasOwnProperty("position")) object.position = message.position; + if (message.wait_timeout != null && message.hasOwnProperty("wait_timeout")) + if (typeof message.wait_timeout === "number") + object.wait_timeout = options.longs === String ? String(message.wait_timeout) : message.wait_timeout; + else + object.wait_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.wait_timeout) : options.longs === Number ? new $util.LongBits(message.wait_timeout.low >>> 0, message.wait_timeout.high >>> 0).toNumber() : message.wait_timeout; return object; }; /** - * Converts this VReplicationWaitForPosRequest to JSON. + * Converts this StartReplicationUntilAfterRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.VReplicationWaitForPosRequest + * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest * @instance * @returns {Object.} JSON object */ - VReplicationWaitForPosRequest.prototype.toJSON = function toJSON() { + StartReplicationUntilAfterRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VReplicationWaitForPosRequest + * Gets the default type url for StartReplicationUntilAfterRequest * @function getTypeUrl - * @memberof tabletmanagerdata.VReplicationWaitForPosRequest + * @memberof tabletmanagerdata.StartReplicationUntilAfterRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VReplicationWaitForPosRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StartReplicationUntilAfterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.VReplicationWaitForPosRequest"; + return typeUrlPrefix + "/tabletmanagerdata.StartReplicationUntilAfterRequest"; }; - return VReplicationWaitForPosRequest; + return StartReplicationUntilAfterRequest; })(); - tabletmanagerdata.VReplicationWaitForPosResponse = (function() { + tabletmanagerdata.StartReplicationUntilAfterResponse = (function() { /** - * Properties of a VReplicationWaitForPosResponse. + * Properties of a StartReplicationUntilAfterResponse. * @memberof tabletmanagerdata - * @interface IVReplicationWaitForPosResponse + * @interface IStartReplicationUntilAfterResponse */ /** - * Constructs a new VReplicationWaitForPosResponse. + * Constructs a new StartReplicationUntilAfterResponse. * @memberof tabletmanagerdata - * @classdesc Represents a VReplicationWaitForPosResponse. - * @implements IVReplicationWaitForPosResponse + * @classdesc Represents a StartReplicationUntilAfterResponse. + * @implements IStartReplicationUntilAfterResponse * @constructor - * @param {tabletmanagerdata.IVReplicationWaitForPosResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IStartReplicationUntilAfterResponse=} [properties] Properties to set */ - function VReplicationWaitForPosResponse(properties) { + function StartReplicationUntilAfterResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66212,60 +67040,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new VReplicationWaitForPosResponse instance using the specified properties. + * Creates a new StartReplicationUntilAfterResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.VReplicationWaitForPosResponse + * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse * @static - * @param {tabletmanagerdata.IVReplicationWaitForPosResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.VReplicationWaitForPosResponse} VReplicationWaitForPosResponse instance + * @param {tabletmanagerdata.IStartReplicationUntilAfterResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.StartReplicationUntilAfterResponse} StartReplicationUntilAfterResponse instance */ - VReplicationWaitForPosResponse.create = function create(properties) { - return new VReplicationWaitForPosResponse(properties); + StartReplicationUntilAfterResponse.create = function create(properties) { + return new StartReplicationUntilAfterResponse(properties); }; /** - * Encodes the specified VReplicationWaitForPosResponse message. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosResponse.verify|verify} messages. + * Encodes the specified StartReplicationUntilAfterResponse message. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.VReplicationWaitForPosResponse + * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse * @static - * @param {tabletmanagerdata.IVReplicationWaitForPosResponse} message VReplicationWaitForPosResponse message or plain object to encode + * @param {tabletmanagerdata.IStartReplicationUntilAfterResponse} message StartReplicationUntilAfterResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VReplicationWaitForPosResponse.encode = function encode(message, writer) { + StartReplicationUntilAfterResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified VReplicationWaitForPosResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosResponse.verify|verify} messages. + * Encodes the specified StartReplicationUntilAfterResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StartReplicationUntilAfterResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.VReplicationWaitForPosResponse + * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse * @static - * @param {tabletmanagerdata.IVReplicationWaitForPosResponse} message VReplicationWaitForPosResponse message or plain object to encode + * @param {tabletmanagerdata.IStartReplicationUntilAfterResponse} message StartReplicationUntilAfterResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VReplicationWaitForPosResponse.encodeDelimited = function encodeDelimited(message, writer) { + StartReplicationUntilAfterResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VReplicationWaitForPosResponse message from the specified reader or buffer. + * Decodes a StartReplicationUntilAfterResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.VReplicationWaitForPosResponse + * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.VReplicationWaitForPosResponse} VReplicationWaitForPosResponse + * @returns {tabletmanagerdata.StartReplicationUntilAfterResponse} StartReplicationUntilAfterResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VReplicationWaitForPosResponse.decode = function decode(reader, length) { + StartReplicationUntilAfterResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VReplicationWaitForPosResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StartReplicationUntilAfterResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -66278,109 +67106,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a VReplicationWaitForPosResponse message from the specified reader or buffer, length delimited. + * Decodes a StartReplicationUntilAfterResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.VReplicationWaitForPosResponse + * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.VReplicationWaitForPosResponse} VReplicationWaitForPosResponse + * @returns {tabletmanagerdata.StartReplicationUntilAfterResponse} StartReplicationUntilAfterResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VReplicationWaitForPosResponse.decodeDelimited = function decodeDelimited(reader) { + StartReplicationUntilAfterResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VReplicationWaitForPosResponse message. + * Verifies a StartReplicationUntilAfterResponse message. * @function verify - * @memberof tabletmanagerdata.VReplicationWaitForPosResponse + * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VReplicationWaitForPosResponse.verify = function verify(message) { + StartReplicationUntilAfterResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a VReplicationWaitForPosResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StartReplicationUntilAfterResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.VReplicationWaitForPosResponse + * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.VReplicationWaitForPosResponse} VReplicationWaitForPosResponse + * @returns {tabletmanagerdata.StartReplicationUntilAfterResponse} StartReplicationUntilAfterResponse */ - VReplicationWaitForPosResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.VReplicationWaitForPosResponse) + StartReplicationUntilAfterResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.StartReplicationUntilAfterResponse) return object; - return new $root.tabletmanagerdata.VReplicationWaitForPosResponse(); + return new $root.tabletmanagerdata.StartReplicationUntilAfterResponse(); }; /** - * Creates a plain object from a VReplicationWaitForPosResponse message. Also converts values to other types if specified. + * Creates a plain object from a StartReplicationUntilAfterResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.VReplicationWaitForPosResponse + * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse * @static - * @param {tabletmanagerdata.VReplicationWaitForPosResponse} message VReplicationWaitForPosResponse + * @param {tabletmanagerdata.StartReplicationUntilAfterResponse} message StartReplicationUntilAfterResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VReplicationWaitForPosResponse.toObject = function toObject() { + StartReplicationUntilAfterResponse.toObject = function toObject() { return {}; }; /** - * Converts this VReplicationWaitForPosResponse to JSON. + * Converts this StartReplicationUntilAfterResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.VReplicationWaitForPosResponse + * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse * @instance * @returns {Object.} JSON object */ - VReplicationWaitForPosResponse.prototype.toJSON = function toJSON() { + StartReplicationUntilAfterResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VReplicationWaitForPosResponse + * Gets the default type url for StartReplicationUntilAfterResponse * @function getTypeUrl - * @memberof tabletmanagerdata.VReplicationWaitForPosResponse + * @memberof tabletmanagerdata.StartReplicationUntilAfterResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VReplicationWaitForPosResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StartReplicationUntilAfterResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.VReplicationWaitForPosResponse"; + return typeUrlPrefix + "/tabletmanagerdata.StartReplicationUntilAfterResponse"; }; - return VReplicationWaitForPosResponse; + return StartReplicationUntilAfterResponse; })(); - tabletmanagerdata.InitPrimaryRequest = (function() { + tabletmanagerdata.GetReplicasRequest = (function() { /** - * Properties of an InitPrimaryRequest. + * Properties of a GetReplicasRequest. * @memberof tabletmanagerdata - * @interface IInitPrimaryRequest - * @property {boolean|null} [semiSync] InitPrimaryRequest semiSync + * @interface IGetReplicasRequest */ /** - * Constructs a new InitPrimaryRequest. + * Constructs a new GetReplicasRequest. * @memberof tabletmanagerdata - * @classdesc Represents an InitPrimaryRequest. - * @implements IInitPrimaryRequest + * @classdesc Represents a GetReplicasRequest. + * @implements IGetReplicasRequest * @constructor - * @param {tabletmanagerdata.IInitPrimaryRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IGetReplicasRequest=} [properties] Properties to set */ - function InitPrimaryRequest(properties) { + function GetReplicasRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66388,77 +67215,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * InitPrimaryRequest semiSync. - * @member {boolean} semiSync - * @memberof tabletmanagerdata.InitPrimaryRequest - * @instance - */ - InitPrimaryRequest.prototype.semiSync = false; - - /** - * Creates a new InitPrimaryRequest instance using the specified properties. + * Creates a new GetReplicasRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.InitPrimaryRequest + * @memberof tabletmanagerdata.GetReplicasRequest * @static - * @param {tabletmanagerdata.IInitPrimaryRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.InitPrimaryRequest} InitPrimaryRequest instance + * @param {tabletmanagerdata.IGetReplicasRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.GetReplicasRequest} GetReplicasRequest instance */ - InitPrimaryRequest.create = function create(properties) { - return new InitPrimaryRequest(properties); + GetReplicasRequest.create = function create(properties) { + return new GetReplicasRequest(properties); }; /** - * Encodes the specified InitPrimaryRequest message. Does not implicitly {@link tabletmanagerdata.InitPrimaryRequest.verify|verify} messages. + * Encodes the specified GetReplicasRequest message. Does not implicitly {@link tabletmanagerdata.GetReplicasRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.InitPrimaryRequest + * @memberof tabletmanagerdata.GetReplicasRequest * @static - * @param {tabletmanagerdata.IInitPrimaryRequest} message InitPrimaryRequest message or plain object to encode + * @param {tabletmanagerdata.IGetReplicasRequest} message GetReplicasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitPrimaryRequest.encode = function encode(message, writer) { + GetReplicasRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.semiSync != null && Object.hasOwnProperty.call(message, "semiSync")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.semiSync); return writer; }; /** - * Encodes the specified InitPrimaryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.InitPrimaryRequest.verify|verify} messages. + * Encodes the specified GetReplicasRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetReplicasRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.InitPrimaryRequest + * @memberof tabletmanagerdata.GetReplicasRequest * @static - * @param {tabletmanagerdata.IInitPrimaryRequest} message InitPrimaryRequest message or plain object to encode + * @param {tabletmanagerdata.IGetReplicasRequest} message GetReplicasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitPrimaryRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetReplicasRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InitPrimaryRequest message from the specified reader or buffer. + * Decodes a GetReplicasRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.InitPrimaryRequest + * @memberof tabletmanagerdata.GetReplicasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.InitPrimaryRequest} InitPrimaryRequest + * @returns {tabletmanagerdata.GetReplicasRequest} GetReplicasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitPrimaryRequest.decode = function decode(reader, length) { + GetReplicasRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.InitPrimaryRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetReplicasRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.semiSync = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -66468,122 +67281,110 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an InitPrimaryRequest message from the specified reader or buffer, length delimited. + * Decodes a GetReplicasRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.InitPrimaryRequest + * @memberof tabletmanagerdata.GetReplicasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.InitPrimaryRequest} InitPrimaryRequest + * @returns {tabletmanagerdata.GetReplicasRequest} GetReplicasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitPrimaryRequest.decodeDelimited = function decodeDelimited(reader) { + GetReplicasRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InitPrimaryRequest message. + * Verifies a GetReplicasRequest message. * @function verify - * @memberof tabletmanagerdata.InitPrimaryRequest + * @memberof tabletmanagerdata.GetReplicasRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InitPrimaryRequest.verify = function verify(message) { + GetReplicasRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.semiSync != null && message.hasOwnProperty("semiSync")) - if (typeof message.semiSync !== "boolean") - return "semiSync: boolean expected"; return null; }; /** - * Creates an InitPrimaryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetReplicasRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.InitPrimaryRequest + * @memberof tabletmanagerdata.GetReplicasRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.InitPrimaryRequest} InitPrimaryRequest + * @returns {tabletmanagerdata.GetReplicasRequest} GetReplicasRequest */ - InitPrimaryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.InitPrimaryRequest) + GetReplicasRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetReplicasRequest) return object; - let message = new $root.tabletmanagerdata.InitPrimaryRequest(); - if (object.semiSync != null) - message.semiSync = Boolean(object.semiSync); - return message; + return new $root.tabletmanagerdata.GetReplicasRequest(); }; /** - * Creates a plain object from an InitPrimaryRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetReplicasRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.InitPrimaryRequest + * @memberof tabletmanagerdata.GetReplicasRequest * @static - * @param {tabletmanagerdata.InitPrimaryRequest} message InitPrimaryRequest + * @param {tabletmanagerdata.GetReplicasRequest} message GetReplicasRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InitPrimaryRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.semiSync = false; - if (message.semiSync != null && message.hasOwnProperty("semiSync")) - object.semiSync = message.semiSync; - return object; + GetReplicasRequest.toObject = function toObject() { + return {}; }; /** - * Converts this InitPrimaryRequest to JSON. + * Converts this GetReplicasRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.InitPrimaryRequest + * @memberof tabletmanagerdata.GetReplicasRequest * @instance * @returns {Object.} JSON object */ - InitPrimaryRequest.prototype.toJSON = function toJSON() { + GetReplicasRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InitPrimaryRequest + * Gets the default type url for GetReplicasRequest * @function getTypeUrl - * @memberof tabletmanagerdata.InitPrimaryRequest + * @memberof tabletmanagerdata.GetReplicasRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InitPrimaryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetReplicasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.InitPrimaryRequest"; + return typeUrlPrefix + "/tabletmanagerdata.GetReplicasRequest"; }; - return InitPrimaryRequest; + return GetReplicasRequest; })(); - tabletmanagerdata.InitPrimaryResponse = (function() { + tabletmanagerdata.GetReplicasResponse = (function() { /** - * Properties of an InitPrimaryResponse. + * Properties of a GetReplicasResponse. * @memberof tabletmanagerdata - * @interface IInitPrimaryResponse - * @property {string|null} [position] InitPrimaryResponse position + * @interface IGetReplicasResponse + * @property {Array.|null} [addrs] GetReplicasResponse addrs */ /** - * Constructs a new InitPrimaryResponse. + * Constructs a new GetReplicasResponse. * @memberof tabletmanagerdata - * @classdesc Represents an InitPrimaryResponse. - * @implements IInitPrimaryResponse + * @classdesc Represents a GetReplicasResponse. + * @implements IGetReplicasResponse * @constructor - * @param {tabletmanagerdata.IInitPrimaryResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IGetReplicasResponse=} [properties] Properties to set */ - function InitPrimaryResponse(properties) { + function GetReplicasResponse(properties) { + this.addrs = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66591,75 +67392,78 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * InitPrimaryResponse position. - * @member {string} position - * @memberof tabletmanagerdata.InitPrimaryResponse + * GetReplicasResponse addrs. + * @member {Array.} addrs + * @memberof tabletmanagerdata.GetReplicasResponse * @instance */ - InitPrimaryResponse.prototype.position = ""; + GetReplicasResponse.prototype.addrs = $util.emptyArray; /** - * Creates a new InitPrimaryResponse instance using the specified properties. + * Creates a new GetReplicasResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.InitPrimaryResponse + * @memberof tabletmanagerdata.GetReplicasResponse * @static - * @param {tabletmanagerdata.IInitPrimaryResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.InitPrimaryResponse} InitPrimaryResponse instance + * @param {tabletmanagerdata.IGetReplicasResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.GetReplicasResponse} GetReplicasResponse instance */ - InitPrimaryResponse.create = function create(properties) { - return new InitPrimaryResponse(properties); + GetReplicasResponse.create = function create(properties) { + return new GetReplicasResponse(properties); }; /** - * Encodes the specified InitPrimaryResponse message. Does not implicitly {@link tabletmanagerdata.InitPrimaryResponse.verify|verify} messages. + * Encodes the specified GetReplicasResponse message. Does not implicitly {@link tabletmanagerdata.GetReplicasResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.InitPrimaryResponse + * @memberof tabletmanagerdata.GetReplicasResponse * @static - * @param {tabletmanagerdata.IInitPrimaryResponse} message InitPrimaryResponse message or plain object to encode + * @param {tabletmanagerdata.IGetReplicasResponse} message GetReplicasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitPrimaryResponse.encode = function encode(message, writer) { + GetReplicasResponse.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.addrs != null && message.addrs.length) + for (let i = 0; i < message.addrs.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.addrs[i]); return writer; }; /** - * Encodes the specified InitPrimaryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.InitPrimaryResponse.verify|verify} messages. + * Encodes the specified GetReplicasResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetReplicasResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.InitPrimaryResponse + * @memberof tabletmanagerdata.GetReplicasResponse * @static - * @param {tabletmanagerdata.IInitPrimaryResponse} message InitPrimaryResponse message or plain object to encode + * @param {tabletmanagerdata.IGetReplicasResponse} message GetReplicasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitPrimaryResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetReplicasResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InitPrimaryResponse message from the specified reader or buffer. + * Decodes a GetReplicasResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.InitPrimaryResponse + * @memberof tabletmanagerdata.GetReplicasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.InitPrimaryResponse} InitPrimaryResponse + * @returns {tabletmanagerdata.GetReplicasResponse} GetReplicasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitPrimaryResponse.decode = function decode(reader, length) { + GetReplicasResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.InitPrimaryResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetReplicasResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.position = reader.string(); + if (!(message.addrs && message.addrs.length)) + message.addrs = []; + message.addrs.push(reader.string()); break; } default: @@ -66671,125 +67475,133 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an InitPrimaryResponse message from the specified reader or buffer, length delimited. + * Decodes a GetReplicasResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.InitPrimaryResponse + * @memberof tabletmanagerdata.GetReplicasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.InitPrimaryResponse} InitPrimaryResponse + * @returns {tabletmanagerdata.GetReplicasResponse} GetReplicasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitPrimaryResponse.decodeDelimited = function decodeDelimited(reader) { + GetReplicasResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InitPrimaryResponse message. + * Verifies a GetReplicasResponse message. * @function verify - * @memberof tabletmanagerdata.InitPrimaryResponse + * @memberof tabletmanagerdata.GetReplicasResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InitPrimaryResponse.verify = function verify(message) { + GetReplicasResponse.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.addrs != null && message.hasOwnProperty("addrs")) { + if (!Array.isArray(message.addrs)) + return "addrs: array expected"; + for (let i = 0; i < message.addrs.length; ++i) + if (!$util.isString(message.addrs[i])) + return "addrs: string[] expected"; + } return null; }; /** - * Creates an InitPrimaryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetReplicasResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.InitPrimaryResponse + * @memberof tabletmanagerdata.GetReplicasResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.InitPrimaryResponse} InitPrimaryResponse + * @returns {tabletmanagerdata.GetReplicasResponse} GetReplicasResponse */ - InitPrimaryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.InitPrimaryResponse) + GetReplicasResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetReplicasResponse) return object; - let message = new $root.tabletmanagerdata.InitPrimaryResponse(); - if (object.position != null) - message.position = String(object.position); + let message = new $root.tabletmanagerdata.GetReplicasResponse(); + if (object.addrs) { + if (!Array.isArray(object.addrs)) + throw TypeError(".tabletmanagerdata.GetReplicasResponse.addrs: array expected"); + message.addrs = []; + for (let i = 0; i < object.addrs.length; ++i) + message.addrs[i] = String(object.addrs[i]); + } return message; }; /** - * Creates a plain object from an InitPrimaryResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetReplicasResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.InitPrimaryResponse + * @memberof tabletmanagerdata.GetReplicasResponse * @static - * @param {tabletmanagerdata.InitPrimaryResponse} message InitPrimaryResponse + * @param {tabletmanagerdata.GetReplicasResponse} message GetReplicasResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InitPrimaryResponse.toObject = function toObject(message, options) { + GetReplicasResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.position = ""; - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; + if (options.arrays || options.defaults) + object.addrs = []; + if (message.addrs && message.addrs.length) { + object.addrs = []; + for (let j = 0; j < message.addrs.length; ++j) + object.addrs[j] = message.addrs[j]; + } return object; }; /** - * Converts this InitPrimaryResponse to JSON. + * Converts this GetReplicasResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.InitPrimaryResponse + * @memberof tabletmanagerdata.GetReplicasResponse * @instance * @returns {Object.} JSON object */ - InitPrimaryResponse.prototype.toJSON = function toJSON() { + GetReplicasResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InitPrimaryResponse + * Gets the default type url for GetReplicasResponse * @function getTypeUrl - * @memberof tabletmanagerdata.InitPrimaryResponse + * @memberof tabletmanagerdata.GetReplicasResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InitPrimaryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetReplicasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.InitPrimaryResponse"; + return typeUrlPrefix + "/tabletmanagerdata.GetReplicasResponse"; }; - return InitPrimaryResponse; + return GetReplicasResponse; })(); - tabletmanagerdata.PopulateReparentJournalRequest = (function() { + tabletmanagerdata.ResetReplicationRequest = (function() { /** - * Properties of a PopulateReparentJournalRequest. + * Properties of a ResetReplicationRequest. * @memberof tabletmanagerdata - * @interface IPopulateReparentJournalRequest - * @property {number|Long|null} [time_created_ns] PopulateReparentJournalRequest time_created_ns - * @property {string|null} [action_name] PopulateReparentJournalRequest action_name - * @property {topodata.ITabletAlias|null} [primary_alias] PopulateReparentJournalRequest primary_alias - * @property {string|null} [replication_position] PopulateReparentJournalRequest replication_position + * @interface IResetReplicationRequest */ /** - * Constructs a new PopulateReparentJournalRequest. + * Constructs a new ResetReplicationRequest. * @memberof tabletmanagerdata - * @classdesc Represents a PopulateReparentJournalRequest. - * @implements IPopulateReparentJournalRequest + * @classdesc Represents a ResetReplicationRequest. + * @implements IResetReplicationRequest * @constructor - * @param {tabletmanagerdata.IPopulateReparentJournalRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IResetReplicationRequest=} [properties] Properties to set */ - function PopulateReparentJournalRequest(properties) { + function ResetReplicationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66797,119 +67609,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * PopulateReparentJournalRequest time_created_ns. - * @member {number|Long} time_created_ns - * @memberof tabletmanagerdata.PopulateReparentJournalRequest - * @instance - */ - PopulateReparentJournalRequest.prototype.time_created_ns = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * PopulateReparentJournalRequest action_name. - * @member {string} action_name - * @memberof tabletmanagerdata.PopulateReparentJournalRequest - * @instance - */ - PopulateReparentJournalRequest.prototype.action_name = ""; - - /** - * PopulateReparentJournalRequest primary_alias. - * @member {topodata.ITabletAlias|null|undefined} primary_alias - * @memberof tabletmanagerdata.PopulateReparentJournalRequest - * @instance - */ - PopulateReparentJournalRequest.prototype.primary_alias = null; - - /** - * PopulateReparentJournalRequest replication_position. - * @member {string} replication_position - * @memberof tabletmanagerdata.PopulateReparentJournalRequest - * @instance - */ - PopulateReparentJournalRequest.prototype.replication_position = ""; - - /** - * Creates a new PopulateReparentJournalRequest instance using the specified properties. + * Creates a new ResetReplicationRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.PopulateReparentJournalRequest + * @memberof tabletmanagerdata.ResetReplicationRequest * @static - * @param {tabletmanagerdata.IPopulateReparentJournalRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.PopulateReparentJournalRequest} PopulateReparentJournalRequest instance + * @param {tabletmanagerdata.IResetReplicationRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ResetReplicationRequest} ResetReplicationRequest instance */ - PopulateReparentJournalRequest.create = function create(properties) { - return new PopulateReparentJournalRequest(properties); + ResetReplicationRequest.create = function create(properties) { + return new ResetReplicationRequest(properties); }; /** - * Encodes the specified PopulateReparentJournalRequest message. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalRequest.verify|verify} messages. + * Encodes the specified ResetReplicationRequest message. Does not implicitly {@link tabletmanagerdata.ResetReplicationRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.PopulateReparentJournalRequest + * @memberof tabletmanagerdata.ResetReplicationRequest * @static - * @param {tabletmanagerdata.IPopulateReparentJournalRequest} message PopulateReparentJournalRequest message or plain object to encode + * @param {tabletmanagerdata.IResetReplicationRequest} message ResetReplicationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PopulateReparentJournalRequest.encode = function encode(message, writer) { + ResetReplicationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.time_created_ns != null && Object.hasOwnProperty.call(message, "time_created_ns")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.time_created_ns); - if (message.action_name != null && Object.hasOwnProperty.call(message, "action_name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.action_name); - if (message.primary_alias != null && Object.hasOwnProperty.call(message, "primary_alias")) - $root.topodata.TabletAlias.encode(message.primary_alias, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.replication_position != null && Object.hasOwnProperty.call(message, "replication_position")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.replication_position); return writer; }; /** - * Encodes the specified PopulateReparentJournalRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalRequest.verify|verify} messages. + * Encodes the specified ResetReplicationRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.PopulateReparentJournalRequest + * @memberof tabletmanagerdata.ResetReplicationRequest * @static - * @param {tabletmanagerdata.IPopulateReparentJournalRequest} message PopulateReparentJournalRequest message or plain object to encode + * @param {tabletmanagerdata.IResetReplicationRequest} message ResetReplicationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PopulateReparentJournalRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResetReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PopulateReparentJournalRequest message from the specified reader or buffer. + * Decodes a ResetReplicationRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.PopulateReparentJournalRequest + * @memberof tabletmanagerdata.ResetReplicationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.PopulateReparentJournalRequest} PopulateReparentJournalRequest + * @returns {tabletmanagerdata.ResetReplicationRequest} ResetReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PopulateReparentJournalRequest.decode = function decode(reader, length) { + ResetReplicationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PopulateReparentJournalRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetReplicationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.time_created_ns = reader.int64(); - break; - } - case 2: { - message.action_name = reader.string(); - break; - } - case 3: { - message.primary_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 4: { - message.replication_position = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -66919,165 +67675,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a PopulateReparentJournalRequest message from the specified reader or buffer, length delimited. + * Decodes a ResetReplicationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.PopulateReparentJournalRequest + * @memberof tabletmanagerdata.ResetReplicationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.PopulateReparentJournalRequest} PopulateReparentJournalRequest + * @returns {tabletmanagerdata.ResetReplicationRequest} ResetReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PopulateReparentJournalRequest.decodeDelimited = function decodeDelimited(reader) { + ResetReplicationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PopulateReparentJournalRequest message. + * Verifies a ResetReplicationRequest message. * @function verify - * @memberof tabletmanagerdata.PopulateReparentJournalRequest + * @memberof tabletmanagerdata.ResetReplicationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PopulateReparentJournalRequest.verify = function verify(message) { + ResetReplicationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.time_created_ns != null && message.hasOwnProperty("time_created_ns")) - if (!$util.isInteger(message.time_created_ns) && !(message.time_created_ns && $util.isInteger(message.time_created_ns.low) && $util.isInteger(message.time_created_ns.high))) - return "time_created_ns: integer|Long expected"; - if (message.action_name != null && message.hasOwnProperty("action_name")) - if (!$util.isString(message.action_name)) - return "action_name: string expected"; - if (message.primary_alias != null && message.hasOwnProperty("primary_alias")) { - let error = $root.topodata.TabletAlias.verify(message.primary_alias); - if (error) - return "primary_alias." + error; - } - if (message.replication_position != null && message.hasOwnProperty("replication_position")) - if (!$util.isString(message.replication_position)) - return "replication_position: string expected"; return null; }; /** - * Creates a PopulateReparentJournalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResetReplicationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.PopulateReparentJournalRequest + * @memberof tabletmanagerdata.ResetReplicationRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.PopulateReparentJournalRequest} PopulateReparentJournalRequest + * @returns {tabletmanagerdata.ResetReplicationRequest} ResetReplicationRequest */ - PopulateReparentJournalRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.PopulateReparentJournalRequest) + ResetReplicationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ResetReplicationRequest) return object; - let message = new $root.tabletmanagerdata.PopulateReparentJournalRequest(); - if (object.time_created_ns != null) - if ($util.Long) - (message.time_created_ns = $util.Long.fromValue(object.time_created_ns)).unsigned = false; - else if (typeof object.time_created_ns === "string") - message.time_created_ns = parseInt(object.time_created_ns, 10); - else if (typeof object.time_created_ns === "number") - message.time_created_ns = object.time_created_ns; - else if (typeof object.time_created_ns === "object") - message.time_created_ns = new $util.LongBits(object.time_created_ns.low >>> 0, object.time_created_ns.high >>> 0).toNumber(); - if (object.action_name != null) - message.action_name = String(object.action_name); - if (object.primary_alias != null) { - if (typeof object.primary_alias !== "object") - throw TypeError(".tabletmanagerdata.PopulateReparentJournalRequest.primary_alias: object expected"); - message.primary_alias = $root.topodata.TabletAlias.fromObject(object.primary_alias); - } - if (object.replication_position != null) - message.replication_position = String(object.replication_position); - return message; + return new $root.tabletmanagerdata.ResetReplicationRequest(); }; /** - * Creates a plain object from a PopulateReparentJournalRequest message. Also converts values to other types if specified. + * Creates a plain object from a ResetReplicationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.PopulateReparentJournalRequest + * @memberof tabletmanagerdata.ResetReplicationRequest * @static - * @param {tabletmanagerdata.PopulateReparentJournalRequest} message PopulateReparentJournalRequest + * @param {tabletmanagerdata.ResetReplicationRequest} message ResetReplicationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PopulateReparentJournalRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.time_created_ns = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.time_created_ns = options.longs === String ? "0" : 0; - object.action_name = ""; - object.primary_alias = null; - object.replication_position = ""; - } - if (message.time_created_ns != null && message.hasOwnProperty("time_created_ns")) - if (typeof message.time_created_ns === "number") - object.time_created_ns = options.longs === String ? String(message.time_created_ns) : message.time_created_ns; - else - object.time_created_ns = options.longs === String ? $util.Long.prototype.toString.call(message.time_created_ns) : options.longs === Number ? new $util.LongBits(message.time_created_ns.low >>> 0, message.time_created_ns.high >>> 0).toNumber() : message.time_created_ns; - if (message.action_name != null && message.hasOwnProperty("action_name")) - object.action_name = message.action_name; - if (message.primary_alias != null && message.hasOwnProperty("primary_alias")) - object.primary_alias = $root.topodata.TabletAlias.toObject(message.primary_alias, options); - if (message.replication_position != null && message.hasOwnProperty("replication_position")) - object.replication_position = message.replication_position; - return object; + ResetReplicationRequest.toObject = function toObject() { + return {}; }; /** - * Converts this PopulateReparentJournalRequest to JSON. + * Converts this ResetReplicationRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.PopulateReparentJournalRequest + * @memberof tabletmanagerdata.ResetReplicationRequest * @instance * @returns {Object.} JSON object */ - PopulateReparentJournalRequest.prototype.toJSON = function toJSON() { + ResetReplicationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PopulateReparentJournalRequest + * Gets the default type url for ResetReplicationRequest * @function getTypeUrl - * @memberof tabletmanagerdata.PopulateReparentJournalRequest + * @memberof tabletmanagerdata.ResetReplicationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PopulateReparentJournalRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResetReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.PopulateReparentJournalRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ResetReplicationRequest"; }; - return PopulateReparentJournalRequest; + return ResetReplicationRequest; })(); - tabletmanagerdata.PopulateReparentJournalResponse = (function() { + tabletmanagerdata.ResetReplicationResponse = (function() { /** - * Properties of a PopulateReparentJournalResponse. + * Properties of a ResetReplicationResponse. * @memberof tabletmanagerdata - * @interface IPopulateReparentJournalResponse + * @interface IResetReplicationResponse */ /** - * Constructs a new PopulateReparentJournalResponse. + * Constructs a new ResetReplicationResponse. * @memberof tabletmanagerdata - * @classdesc Represents a PopulateReparentJournalResponse. - * @implements IPopulateReparentJournalResponse + * @classdesc Represents a ResetReplicationResponse. + * @implements IResetReplicationResponse * @constructor - * @param {tabletmanagerdata.IPopulateReparentJournalResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IResetReplicationResponse=} [properties] Properties to set */ - function PopulateReparentJournalResponse(properties) { + function ResetReplicationResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67085,60 +67784,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new PopulateReparentJournalResponse instance using the specified properties. + * Creates a new ResetReplicationResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.PopulateReparentJournalResponse + * @memberof tabletmanagerdata.ResetReplicationResponse * @static - * @param {tabletmanagerdata.IPopulateReparentJournalResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.PopulateReparentJournalResponse} PopulateReparentJournalResponse instance + * @param {tabletmanagerdata.IResetReplicationResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ResetReplicationResponse} ResetReplicationResponse instance */ - PopulateReparentJournalResponse.create = function create(properties) { - return new PopulateReparentJournalResponse(properties); + ResetReplicationResponse.create = function create(properties) { + return new ResetReplicationResponse(properties); }; /** - * Encodes the specified PopulateReparentJournalResponse message. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalResponse.verify|verify} messages. + * Encodes the specified ResetReplicationResponse message. Does not implicitly {@link tabletmanagerdata.ResetReplicationResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.PopulateReparentJournalResponse + * @memberof tabletmanagerdata.ResetReplicationResponse * @static - * @param {tabletmanagerdata.IPopulateReparentJournalResponse} message PopulateReparentJournalResponse message or plain object to encode + * @param {tabletmanagerdata.IResetReplicationResponse} message ResetReplicationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PopulateReparentJournalResponse.encode = function encode(message, writer) { + ResetReplicationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified PopulateReparentJournalResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalResponse.verify|verify} messages. + * Encodes the specified ResetReplicationResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.PopulateReparentJournalResponse + * @memberof tabletmanagerdata.ResetReplicationResponse * @static - * @param {tabletmanagerdata.IPopulateReparentJournalResponse} message PopulateReparentJournalResponse message or plain object to encode + * @param {tabletmanagerdata.IResetReplicationResponse} message ResetReplicationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PopulateReparentJournalResponse.encodeDelimited = function encodeDelimited(message, writer) { + ResetReplicationResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PopulateReparentJournalResponse message from the specified reader or buffer. + * Decodes a ResetReplicationResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.PopulateReparentJournalResponse + * @memberof tabletmanagerdata.ResetReplicationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.PopulateReparentJournalResponse} PopulateReparentJournalResponse + * @returns {tabletmanagerdata.ResetReplicationResponse} ResetReplicationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PopulateReparentJournalResponse.decode = function decode(reader, length) { + ResetReplicationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PopulateReparentJournalResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetReplicationResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -67151,108 +67850,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a PopulateReparentJournalResponse message from the specified reader or buffer, length delimited. + * Decodes a ResetReplicationResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.PopulateReparentJournalResponse + * @memberof tabletmanagerdata.ResetReplicationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.PopulateReparentJournalResponse} PopulateReparentJournalResponse + * @returns {tabletmanagerdata.ResetReplicationResponse} ResetReplicationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PopulateReparentJournalResponse.decodeDelimited = function decodeDelimited(reader) { + ResetReplicationResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PopulateReparentJournalResponse message. + * Verifies a ResetReplicationResponse message. * @function verify - * @memberof tabletmanagerdata.PopulateReparentJournalResponse + * @memberof tabletmanagerdata.ResetReplicationResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PopulateReparentJournalResponse.verify = function verify(message) { + ResetReplicationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a PopulateReparentJournalResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ResetReplicationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.PopulateReparentJournalResponse + * @memberof tabletmanagerdata.ResetReplicationResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.PopulateReparentJournalResponse} PopulateReparentJournalResponse + * @returns {tabletmanagerdata.ResetReplicationResponse} ResetReplicationResponse */ - PopulateReparentJournalResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.PopulateReparentJournalResponse) + ResetReplicationResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ResetReplicationResponse) return object; - return new $root.tabletmanagerdata.PopulateReparentJournalResponse(); + return new $root.tabletmanagerdata.ResetReplicationResponse(); }; /** - * Creates a plain object from a PopulateReparentJournalResponse message. Also converts values to other types if specified. + * Creates a plain object from a ResetReplicationResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.PopulateReparentJournalResponse + * @memberof tabletmanagerdata.ResetReplicationResponse * @static - * @param {tabletmanagerdata.PopulateReparentJournalResponse} message PopulateReparentJournalResponse + * @param {tabletmanagerdata.ResetReplicationResponse} message ResetReplicationResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PopulateReparentJournalResponse.toObject = function toObject() { + ResetReplicationResponse.toObject = function toObject() { return {}; }; /** - * Converts this PopulateReparentJournalResponse to JSON. + * Converts this ResetReplicationResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.PopulateReparentJournalResponse + * @memberof tabletmanagerdata.ResetReplicationResponse * @instance * @returns {Object.} JSON object */ - PopulateReparentJournalResponse.prototype.toJSON = function toJSON() { + ResetReplicationResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PopulateReparentJournalResponse + * Gets the default type url for ResetReplicationResponse * @function getTypeUrl - * @memberof tabletmanagerdata.PopulateReparentJournalResponse + * @memberof tabletmanagerdata.ResetReplicationResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PopulateReparentJournalResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResetReplicationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.PopulateReparentJournalResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ResetReplicationResponse"; }; - return PopulateReparentJournalResponse; + return ResetReplicationResponse; })(); - tabletmanagerdata.ReadReparentJournalInfoRequest = (function() { + tabletmanagerdata.VReplicationExecRequest = (function() { /** - * Properties of a ReadReparentJournalInfoRequest. + * Properties of a VReplicationExecRequest. * @memberof tabletmanagerdata - * @interface IReadReparentJournalInfoRequest + * @interface IVReplicationExecRequest + * @property {string|null} [query] VReplicationExecRequest query */ /** - * Constructs a new ReadReparentJournalInfoRequest. + * Constructs a new VReplicationExecRequest. * @memberof tabletmanagerdata - * @classdesc Represents a ReadReparentJournalInfoRequest. - * @implements IReadReparentJournalInfoRequest + * @classdesc Represents a VReplicationExecRequest. + * @implements IVReplicationExecRequest * @constructor - * @param {tabletmanagerdata.IReadReparentJournalInfoRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IVReplicationExecRequest=} [properties] Properties to set */ - function ReadReparentJournalInfoRequest(properties) { + function VReplicationExecRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67260,63 +67960,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new ReadReparentJournalInfoRequest instance using the specified properties. + * VReplicationExecRequest query. + * @member {string} query + * @memberof tabletmanagerdata.VReplicationExecRequest + * @instance + */ + VReplicationExecRequest.prototype.query = ""; + + /** + * Creates a new VReplicationExecRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest + * @memberof tabletmanagerdata.VReplicationExecRequest * @static - * @param {tabletmanagerdata.IReadReparentJournalInfoRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ReadReparentJournalInfoRequest} ReadReparentJournalInfoRequest instance + * @param {tabletmanagerdata.IVReplicationExecRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.VReplicationExecRequest} VReplicationExecRequest instance */ - ReadReparentJournalInfoRequest.create = function create(properties) { - return new ReadReparentJournalInfoRequest(properties); + VReplicationExecRequest.create = function create(properties) { + return new VReplicationExecRequest(properties); }; /** - * Encodes the specified ReadReparentJournalInfoRequest message. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoRequest.verify|verify} messages. + * Encodes the specified VReplicationExecRequest message. Does not implicitly {@link tabletmanagerdata.VReplicationExecRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest + * @memberof tabletmanagerdata.VReplicationExecRequest * @static - * @param {tabletmanagerdata.IReadReparentJournalInfoRequest} message ReadReparentJournalInfoRequest message or plain object to encode + * @param {tabletmanagerdata.IVReplicationExecRequest} message VReplicationExecRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadReparentJournalInfoRequest.encode = function encode(message, writer) { + VReplicationExecRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.query); return writer; }; /** - * Encodes the specified ReadReparentJournalInfoRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoRequest.verify|verify} messages. + * Encodes the specified VReplicationExecRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationExecRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest + * @memberof tabletmanagerdata.VReplicationExecRequest * @static - * @param {tabletmanagerdata.IReadReparentJournalInfoRequest} message ReadReparentJournalInfoRequest message or plain object to encode + * @param {tabletmanagerdata.IVReplicationExecRequest} message VReplicationExecRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadReparentJournalInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + VReplicationExecRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadReparentJournalInfoRequest message from the specified reader or buffer. + * Decodes a VReplicationExecRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest + * @memberof tabletmanagerdata.VReplicationExecRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReadReparentJournalInfoRequest} ReadReparentJournalInfoRequest + * @returns {tabletmanagerdata.VReplicationExecRequest} VReplicationExecRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadReparentJournalInfoRequest.decode = function decode(reader, length) { + VReplicationExecRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadReparentJournalInfoRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VReplicationExecRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.query = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -67326,109 +68040,122 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReadReparentJournalInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a VReplicationExecRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest + * @memberof tabletmanagerdata.VReplicationExecRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReadReparentJournalInfoRequest} ReadReparentJournalInfoRequest + * @returns {tabletmanagerdata.VReplicationExecRequest} VReplicationExecRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadReparentJournalInfoRequest.decodeDelimited = function decodeDelimited(reader) { + VReplicationExecRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadReparentJournalInfoRequest message. + * Verifies a VReplicationExecRequest message. * @function verify - * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest + * @memberof tabletmanagerdata.VReplicationExecRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadReparentJournalInfoRequest.verify = function verify(message) { + VReplicationExecRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.query != null && message.hasOwnProperty("query")) + if (!$util.isString(message.query)) + return "query: string expected"; return null; }; /** - * Creates a ReadReparentJournalInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VReplicationExecRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest + * @memberof tabletmanagerdata.VReplicationExecRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReadReparentJournalInfoRequest} ReadReparentJournalInfoRequest + * @returns {tabletmanagerdata.VReplicationExecRequest} VReplicationExecRequest */ - ReadReparentJournalInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReadReparentJournalInfoRequest) + VReplicationExecRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.VReplicationExecRequest) return object; - return new $root.tabletmanagerdata.ReadReparentJournalInfoRequest(); + let message = new $root.tabletmanagerdata.VReplicationExecRequest(); + if (object.query != null) + message.query = String(object.query); + return message; }; /** - * Creates a plain object from a ReadReparentJournalInfoRequest message. Also converts values to other types if specified. + * Creates a plain object from a VReplicationExecRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest + * @memberof tabletmanagerdata.VReplicationExecRequest * @static - * @param {tabletmanagerdata.ReadReparentJournalInfoRequest} message ReadReparentJournalInfoRequest + * @param {tabletmanagerdata.VReplicationExecRequest} message VReplicationExecRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadReparentJournalInfoRequest.toObject = function toObject() { - return {}; + VReplicationExecRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.query = ""; + if (message.query != null && message.hasOwnProperty("query")) + object.query = message.query; + return object; }; /** - * Converts this ReadReparentJournalInfoRequest to JSON. + * Converts this VReplicationExecRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest + * @memberof tabletmanagerdata.VReplicationExecRequest * @instance * @returns {Object.} JSON object */ - ReadReparentJournalInfoRequest.prototype.toJSON = function toJSON() { + VReplicationExecRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadReparentJournalInfoRequest + * Gets the default type url for VReplicationExecRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest + * @memberof tabletmanagerdata.VReplicationExecRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadReparentJournalInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VReplicationExecRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReadReparentJournalInfoRequest"; + return typeUrlPrefix + "/tabletmanagerdata.VReplicationExecRequest"; }; - return ReadReparentJournalInfoRequest; + return VReplicationExecRequest; })(); - tabletmanagerdata.ReadReparentJournalInfoResponse = (function() { + tabletmanagerdata.VReplicationExecResponse = (function() { /** - * Properties of a ReadReparentJournalInfoResponse. + * Properties of a VReplicationExecResponse. * @memberof tabletmanagerdata - * @interface IReadReparentJournalInfoResponse - * @property {number|null} [length] ReadReparentJournalInfoResponse length + * @interface IVReplicationExecResponse + * @property {query.IQueryResult|null} [result] VReplicationExecResponse result */ /** - * Constructs a new ReadReparentJournalInfoResponse. + * Constructs a new VReplicationExecResponse. * @memberof tabletmanagerdata - * @classdesc Represents a ReadReparentJournalInfoResponse. - * @implements IReadReparentJournalInfoResponse + * @classdesc Represents a VReplicationExecResponse. + * @implements IVReplicationExecResponse * @constructor - * @param {tabletmanagerdata.IReadReparentJournalInfoResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IVReplicationExecResponse=} [properties] Properties to set */ - function ReadReparentJournalInfoResponse(properties) { + function VReplicationExecResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67436,75 +68163,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ReadReparentJournalInfoResponse length. - * @member {number} length - * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse + * VReplicationExecResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof tabletmanagerdata.VReplicationExecResponse * @instance */ - ReadReparentJournalInfoResponse.prototype.length = 0; + VReplicationExecResponse.prototype.result = null; /** - * Creates a new ReadReparentJournalInfoResponse instance using the specified properties. + * Creates a new VReplicationExecResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse + * @memberof tabletmanagerdata.VReplicationExecResponse * @static - * @param {tabletmanagerdata.IReadReparentJournalInfoResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ReadReparentJournalInfoResponse} ReadReparentJournalInfoResponse instance + * @param {tabletmanagerdata.IVReplicationExecResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.VReplicationExecResponse} VReplicationExecResponse instance */ - ReadReparentJournalInfoResponse.create = function create(properties) { - return new ReadReparentJournalInfoResponse(properties); + VReplicationExecResponse.create = function create(properties) { + return new VReplicationExecResponse(properties); }; /** - * Encodes the specified ReadReparentJournalInfoResponse message. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoResponse.verify|verify} messages. + * Encodes the specified VReplicationExecResponse message. Does not implicitly {@link tabletmanagerdata.VReplicationExecResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse + * @memberof tabletmanagerdata.VReplicationExecResponse * @static - * @param {tabletmanagerdata.IReadReparentJournalInfoResponse} message ReadReparentJournalInfoResponse message or plain object to encode + * @param {tabletmanagerdata.IVReplicationExecResponse} message VReplicationExecResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadReparentJournalInfoResponse.encode = function encode(message, writer) { + VReplicationExecResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.length != null && Object.hasOwnProperty.call(message, "length")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.length); + 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 ReadReparentJournalInfoResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoResponse.verify|verify} messages. + * Encodes the specified VReplicationExecResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationExecResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse + * @memberof tabletmanagerdata.VReplicationExecResponse * @static - * @param {tabletmanagerdata.IReadReparentJournalInfoResponse} message ReadReparentJournalInfoResponse message or plain object to encode + * @param {tabletmanagerdata.IVReplicationExecResponse} message VReplicationExecResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadReparentJournalInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + VReplicationExecResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadReparentJournalInfoResponse message from the specified reader or buffer. + * Decodes a VReplicationExecResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse + * @memberof tabletmanagerdata.VReplicationExecResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReadReparentJournalInfoResponse} ReadReparentJournalInfoResponse + * @returns {tabletmanagerdata.VReplicationExecResponse} VReplicationExecResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadReparentJournalInfoResponse.decode = function decode(reader, length) { + VReplicationExecResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadReparentJournalInfoResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VReplicationExecResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.length = reader.int32(); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; } default: @@ -67516,125 +68243,128 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReadReparentJournalInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a VReplicationExecResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse + * @memberof tabletmanagerdata.VReplicationExecResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReadReparentJournalInfoResponse} ReadReparentJournalInfoResponse + * @returns {tabletmanagerdata.VReplicationExecResponse} VReplicationExecResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadReparentJournalInfoResponse.decodeDelimited = function decodeDelimited(reader) { + VReplicationExecResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadReparentJournalInfoResponse message. + * Verifies a VReplicationExecResponse message. * @function verify - * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse + * @memberof tabletmanagerdata.VReplicationExecResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadReparentJournalInfoResponse.verify = function verify(message) { + VReplicationExecResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.length != null && message.hasOwnProperty("length")) - if (!$util.isInteger(message.length)) - return "length: integer expected"; + if (message.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } return null; }; /** - * Creates a ReadReparentJournalInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VReplicationExecResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse + * @memberof tabletmanagerdata.VReplicationExecResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReadReparentJournalInfoResponse} ReadReparentJournalInfoResponse + * @returns {tabletmanagerdata.VReplicationExecResponse} VReplicationExecResponse */ - ReadReparentJournalInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReadReparentJournalInfoResponse) + VReplicationExecResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.VReplicationExecResponse) return object; - let message = new $root.tabletmanagerdata.ReadReparentJournalInfoResponse(); - if (object.length != null) - message.length = object.length | 0; + let message = new $root.tabletmanagerdata.VReplicationExecResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".tabletmanagerdata.VReplicationExecResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } return message; }; /** - * Creates a plain object from a ReadReparentJournalInfoResponse message. Also converts values to other types if specified. + * Creates a plain object from a VReplicationExecResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse + * @memberof tabletmanagerdata.VReplicationExecResponse * @static - * @param {tabletmanagerdata.ReadReparentJournalInfoResponse} message ReadReparentJournalInfoResponse + * @param {tabletmanagerdata.VReplicationExecResponse} message VReplicationExecResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadReparentJournalInfoResponse.toObject = function toObject(message, options) { + VReplicationExecResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.length = 0; - if (message.length != null && message.hasOwnProperty("length")) - object.length = message.length; + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this ReadReparentJournalInfoResponse to JSON. + * Converts this VReplicationExecResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse + * @memberof tabletmanagerdata.VReplicationExecResponse * @instance * @returns {Object.} JSON object */ - ReadReparentJournalInfoResponse.prototype.toJSON = function toJSON() { + VReplicationExecResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadReparentJournalInfoResponse + * Gets the default type url for VReplicationExecResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse + * @memberof tabletmanagerdata.VReplicationExecResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadReparentJournalInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VReplicationExecResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReadReparentJournalInfoResponse"; + return typeUrlPrefix + "/tabletmanagerdata.VReplicationExecResponse"; }; - return ReadReparentJournalInfoResponse; + return VReplicationExecResponse; })(); - tabletmanagerdata.InitReplicaRequest = (function() { + tabletmanagerdata.VReplicationWaitForPosRequest = (function() { /** - * Properties of an InitReplicaRequest. + * Properties of a VReplicationWaitForPosRequest. * @memberof tabletmanagerdata - * @interface IInitReplicaRequest - * @property {topodata.ITabletAlias|null} [parent] InitReplicaRequest parent - * @property {string|null} [replication_position] InitReplicaRequest replication_position - * @property {number|Long|null} [time_created_ns] InitReplicaRequest time_created_ns - * @property {boolean|null} [semiSync] InitReplicaRequest semiSync + * @interface IVReplicationWaitForPosRequest + * @property {number|null} [id] VReplicationWaitForPosRequest id + * @property {string|null} [position] VReplicationWaitForPosRequest position */ /** - * Constructs a new InitReplicaRequest. + * Constructs a new VReplicationWaitForPosRequest. * @memberof tabletmanagerdata - * @classdesc Represents an InitReplicaRequest. - * @implements IInitReplicaRequest + * @classdesc Represents a VReplicationWaitForPosRequest. + * @implements IVReplicationWaitForPosRequest * @constructor - * @param {tabletmanagerdata.IInitReplicaRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IVReplicationWaitForPosRequest=} [properties] Properties to set */ - function InitReplicaRequest(properties) { + function VReplicationWaitForPosRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67642,117 +68372,89 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * InitReplicaRequest parent. - * @member {topodata.ITabletAlias|null|undefined} parent - * @memberof tabletmanagerdata.InitReplicaRequest - * @instance - */ - InitReplicaRequest.prototype.parent = null; - - /** - * InitReplicaRequest replication_position. - * @member {string} replication_position - * @memberof tabletmanagerdata.InitReplicaRequest - * @instance - */ - InitReplicaRequest.prototype.replication_position = ""; - - /** - * InitReplicaRequest time_created_ns. - * @member {number|Long} time_created_ns - * @memberof tabletmanagerdata.InitReplicaRequest + * VReplicationWaitForPosRequest id. + * @member {number} id + * @memberof tabletmanagerdata.VReplicationWaitForPosRequest * @instance */ - InitReplicaRequest.prototype.time_created_ns = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + VReplicationWaitForPosRequest.prototype.id = 0; /** - * InitReplicaRequest semiSync. - * @member {boolean} semiSync - * @memberof tabletmanagerdata.InitReplicaRequest + * VReplicationWaitForPosRequest position. + * @member {string} position + * @memberof tabletmanagerdata.VReplicationWaitForPosRequest * @instance */ - InitReplicaRequest.prototype.semiSync = false; + VReplicationWaitForPosRequest.prototype.position = ""; /** - * Creates a new InitReplicaRequest instance using the specified properties. + * Creates a new VReplicationWaitForPosRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.InitReplicaRequest + * @memberof tabletmanagerdata.VReplicationWaitForPosRequest * @static - * @param {tabletmanagerdata.IInitReplicaRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.InitReplicaRequest} InitReplicaRequest instance + * @param {tabletmanagerdata.IVReplicationWaitForPosRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.VReplicationWaitForPosRequest} VReplicationWaitForPosRequest instance */ - InitReplicaRequest.create = function create(properties) { - return new InitReplicaRequest(properties); + VReplicationWaitForPosRequest.create = function create(properties) { + return new VReplicationWaitForPosRequest(properties); }; /** - * Encodes the specified InitReplicaRequest message. Does not implicitly {@link tabletmanagerdata.InitReplicaRequest.verify|verify} messages. + * Encodes the specified VReplicationWaitForPosRequest message. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.InitReplicaRequest + * @memberof tabletmanagerdata.VReplicationWaitForPosRequest * @static - * @param {tabletmanagerdata.IInitReplicaRequest} message InitReplicaRequest message or plain object to encode + * @param {tabletmanagerdata.IVReplicationWaitForPosRequest} message VReplicationWaitForPosRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitReplicaRequest.encode = function encode(message, writer) { + VReplicationWaitForPosRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - $root.topodata.TabletAlias.encode(message.parent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.replication_position != null && Object.hasOwnProperty.call(message, "replication_position")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.replication_position); - if (message.time_created_ns != null && Object.hasOwnProperty.call(message, "time_created_ns")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time_created_ns); - if (message.semiSync != null && Object.hasOwnProperty.call(message, "semiSync")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.semiSync); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.position); return writer; }; /** - * Encodes the specified InitReplicaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.InitReplicaRequest.verify|verify} messages. + * Encodes the specified VReplicationWaitForPosRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.InitReplicaRequest + * @memberof tabletmanagerdata.VReplicationWaitForPosRequest * @static - * @param {tabletmanagerdata.IInitReplicaRequest} message InitReplicaRequest message or plain object to encode + * @param {tabletmanagerdata.IVReplicationWaitForPosRequest} message VReplicationWaitForPosRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitReplicaRequest.encodeDelimited = function encodeDelimited(message, writer) { + VReplicationWaitForPosRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InitReplicaRequest message from the specified reader or buffer. + * Decodes a VReplicationWaitForPosRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.InitReplicaRequest + * @memberof tabletmanagerdata.VReplicationWaitForPosRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.InitReplicaRequest} InitReplicaRequest + * @returns {tabletmanagerdata.VReplicationWaitForPosRequest} VReplicationWaitForPosRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitReplicaRequest.decode = function decode(reader, length) { + VReplicationWaitForPosRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.InitReplicaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VReplicationWaitForPosRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.id = reader.int32(); break; } case 2: { - message.replication_position = reader.string(); - break; - } - case 3: { - message.time_created_ns = reader.int64(); - break; - } - case 4: { - message.semiSync = reader.bool(); + message.position = reader.string(); break; } default: @@ -67764,165 +68466,130 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an InitReplicaRequest message from the specified reader or buffer, length delimited. + * Decodes a VReplicationWaitForPosRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.InitReplicaRequest + * @memberof tabletmanagerdata.VReplicationWaitForPosRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.InitReplicaRequest} InitReplicaRequest + * @returns {tabletmanagerdata.VReplicationWaitForPosRequest} VReplicationWaitForPosRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitReplicaRequest.decodeDelimited = function decodeDelimited(reader) { + VReplicationWaitForPosRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InitReplicaRequest message. + * Verifies a VReplicationWaitForPosRequest message. * @function verify - * @memberof tabletmanagerdata.InitReplicaRequest + * @memberof tabletmanagerdata.VReplicationWaitForPosRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InitReplicaRequest.verify = function verify(message) { + VReplicationWaitForPosRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) { - let error = $root.topodata.TabletAlias.verify(message.parent); - if (error) - return "parent." + error; - } - if (message.replication_position != null && message.hasOwnProperty("replication_position")) - if (!$util.isString(message.replication_position)) - return "replication_position: string expected"; - if (message.time_created_ns != null && message.hasOwnProperty("time_created_ns")) - if (!$util.isInteger(message.time_created_ns) && !(message.time_created_ns && $util.isInteger(message.time_created_ns.low) && $util.isInteger(message.time_created_ns.high))) - return "time_created_ns: integer|Long expected"; - if (message.semiSync != null && message.hasOwnProperty("semiSync")) - if (typeof message.semiSync !== "boolean") - return "semiSync: boolean expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isInteger(message.id)) + return "id: integer expected"; + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; return null; }; /** - * Creates an InitReplicaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VReplicationWaitForPosRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.InitReplicaRequest + * @memberof tabletmanagerdata.VReplicationWaitForPosRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.InitReplicaRequest} InitReplicaRequest + * @returns {tabletmanagerdata.VReplicationWaitForPosRequest} VReplicationWaitForPosRequest */ - InitReplicaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.InitReplicaRequest) + VReplicationWaitForPosRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.VReplicationWaitForPosRequest) return object; - let message = new $root.tabletmanagerdata.InitReplicaRequest(); - if (object.parent != null) { - if (typeof object.parent !== "object") - throw TypeError(".tabletmanagerdata.InitReplicaRequest.parent: object expected"); - message.parent = $root.topodata.TabletAlias.fromObject(object.parent); - } - if (object.replication_position != null) - message.replication_position = String(object.replication_position); - if (object.time_created_ns != null) - if ($util.Long) - (message.time_created_ns = $util.Long.fromValue(object.time_created_ns)).unsigned = false; - else if (typeof object.time_created_ns === "string") - message.time_created_ns = parseInt(object.time_created_ns, 10); - else if (typeof object.time_created_ns === "number") - message.time_created_ns = object.time_created_ns; - else if (typeof object.time_created_ns === "object") - message.time_created_ns = new $util.LongBits(object.time_created_ns.low >>> 0, object.time_created_ns.high >>> 0).toNumber(); - if (object.semiSync != null) - message.semiSync = Boolean(object.semiSync); + let message = new $root.tabletmanagerdata.VReplicationWaitForPosRequest(); + if (object.id != null) + message.id = object.id | 0; + if (object.position != null) + message.position = String(object.position); return message; }; /** - * Creates a plain object from an InitReplicaRequest message. Also converts values to other types if specified. + * Creates a plain object from a VReplicationWaitForPosRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.InitReplicaRequest + * @memberof tabletmanagerdata.VReplicationWaitForPosRequest * @static - * @param {tabletmanagerdata.InitReplicaRequest} message InitReplicaRequest + * @param {tabletmanagerdata.VReplicationWaitForPosRequest} message VReplicationWaitForPosRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InitReplicaRequest.toObject = function toObject(message, options) { + VReplicationWaitForPosRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.parent = null; - object.replication_position = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.time_created_ns = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.time_created_ns = options.longs === String ? "0" : 0; - object.semiSync = false; + object.id = 0; + object.position = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = $root.topodata.TabletAlias.toObject(message.parent, options); - if (message.replication_position != null && message.hasOwnProperty("replication_position")) - object.replication_position = message.replication_position; - if (message.time_created_ns != null && message.hasOwnProperty("time_created_ns")) - if (typeof message.time_created_ns === "number") - object.time_created_ns = options.longs === String ? String(message.time_created_ns) : message.time_created_ns; - else - object.time_created_ns = options.longs === String ? $util.Long.prototype.toString.call(message.time_created_ns) : options.longs === Number ? new $util.LongBits(message.time_created_ns.low >>> 0, message.time_created_ns.high >>> 0).toNumber() : message.time_created_ns; - if (message.semiSync != null && message.hasOwnProperty("semiSync")) - object.semiSync = message.semiSync; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; return object; }; /** - * Converts this InitReplicaRequest to JSON. + * Converts this VReplicationWaitForPosRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.InitReplicaRequest + * @memberof tabletmanagerdata.VReplicationWaitForPosRequest * @instance * @returns {Object.} JSON object */ - InitReplicaRequest.prototype.toJSON = function toJSON() { + VReplicationWaitForPosRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InitReplicaRequest + * Gets the default type url for VReplicationWaitForPosRequest * @function getTypeUrl - * @memberof tabletmanagerdata.InitReplicaRequest + * @memberof tabletmanagerdata.VReplicationWaitForPosRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InitReplicaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VReplicationWaitForPosRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.InitReplicaRequest"; + return typeUrlPrefix + "/tabletmanagerdata.VReplicationWaitForPosRequest"; }; - return InitReplicaRequest; + return VReplicationWaitForPosRequest; })(); - tabletmanagerdata.InitReplicaResponse = (function() { + tabletmanagerdata.VReplicationWaitForPosResponse = (function() { /** - * Properties of an InitReplicaResponse. + * Properties of a VReplicationWaitForPosResponse. * @memberof tabletmanagerdata - * @interface IInitReplicaResponse + * @interface IVReplicationWaitForPosResponse */ /** - * Constructs a new InitReplicaResponse. + * Constructs a new VReplicationWaitForPosResponse. * @memberof tabletmanagerdata - * @classdesc Represents an InitReplicaResponse. - * @implements IInitReplicaResponse + * @classdesc Represents a VReplicationWaitForPosResponse. + * @implements IVReplicationWaitForPosResponse * @constructor - * @param {tabletmanagerdata.IInitReplicaResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IVReplicationWaitForPosResponse=} [properties] Properties to set */ - function InitReplicaResponse(properties) { + function VReplicationWaitForPosResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67930,60 +68597,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new InitReplicaResponse instance using the specified properties. + * Creates a new VReplicationWaitForPosResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.InitReplicaResponse + * @memberof tabletmanagerdata.VReplicationWaitForPosResponse * @static - * @param {tabletmanagerdata.IInitReplicaResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.InitReplicaResponse} InitReplicaResponse instance + * @param {tabletmanagerdata.IVReplicationWaitForPosResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.VReplicationWaitForPosResponse} VReplicationWaitForPosResponse instance */ - InitReplicaResponse.create = function create(properties) { - return new InitReplicaResponse(properties); + VReplicationWaitForPosResponse.create = function create(properties) { + return new VReplicationWaitForPosResponse(properties); }; /** - * Encodes the specified InitReplicaResponse message. Does not implicitly {@link tabletmanagerdata.InitReplicaResponse.verify|verify} messages. + * Encodes the specified VReplicationWaitForPosResponse message. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.InitReplicaResponse + * @memberof tabletmanagerdata.VReplicationWaitForPosResponse * @static - * @param {tabletmanagerdata.IInitReplicaResponse} message InitReplicaResponse message or plain object to encode + * @param {tabletmanagerdata.IVReplicationWaitForPosResponse} message VReplicationWaitForPosResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitReplicaResponse.encode = function encode(message, writer) { + VReplicationWaitForPosResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified InitReplicaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.InitReplicaResponse.verify|verify} messages. + * Encodes the specified VReplicationWaitForPosResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.VReplicationWaitForPosResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.InitReplicaResponse + * @memberof tabletmanagerdata.VReplicationWaitForPosResponse * @static - * @param {tabletmanagerdata.IInitReplicaResponse} message InitReplicaResponse message or plain object to encode + * @param {tabletmanagerdata.IVReplicationWaitForPosResponse} message VReplicationWaitForPosResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitReplicaResponse.encodeDelimited = function encodeDelimited(message, writer) { + VReplicationWaitForPosResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InitReplicaResponse message from the specified reader or buffer. + * Decodes a VReplicationWaitForPosResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.InitReplicaResponse + * @memberof tabletmanagerdata.VReplicationWaitForPosResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.InitReplicaResponse} InitReplicaResponse + * @returns {tabletmanagerdata.VReplicationWaitForPosResponse} VReplicationWaitForPosResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitReplicaResponse.decode = function decode(reader, length) { + VReplicationWaitForPosResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.InitReplicaResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VReplicationWaitForPosResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -67996,108 +68663,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an InitReplicaResponse message from the specified reader or buffer, length delimited. + * Decodes a VReplicationWaitForPosResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.InitReplicaResponse + * @memberof tabletmanagerdata.VReplicationWaitForPosResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.InitReplicaResponse} InitReplicaResponse + * @returns {tabletmanagerdata.VReplicationWaitForPosResponse} VReplicationWaitForPosResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitReplicaResponse.decodeDelimited = function decodeDelimited(reader) { + VReplicationWaitForPosResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InitReplicaResponse message. + * Verifies a VReplicationWaitForPosResponse message. * @function verify - * @memberof tabletmanagerdata.InitReplicaResponse + * @memberof tabletmanagerdata.VReplicationWaitForPosResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InitReplicaResponse.verify = function verify(message) { + VReplicationWaitForPosResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates an InitReplicaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VReplicationWaitForPosResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.InitReplicaResponse + * @memberof tabletmanagerdata.VReplicationWaitForPosResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.InitReplicaResponse} InitReplicaResponse + * @returns {tabletmanagerdata.VReplicationWaitForPosResponse} VReplicationWaitForPosResponse */ - InitReplicaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.InitReplicaResponse) + VReplicationWaitForPosResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.VReplicationWaitForPosResponse) return object; - return new $root.tabletmanagerdata.InitReplicaResponse(); + return new $root.tabletmanagerdata.VReplicationWaitForPosResponse(); }; /** - * Creates a plain object from an InitReplicaResponse message. Also converts values to other types if specified. + * Creates a plain object from a VReplicationWaitForPosResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.InitReplicaResponse + * @memberof tabletmanagerdata.VReplicationWaitForPosResponse * @static - * @param {tabletmanagerdata.InitReplicaResponse} message InitReplicaResponse + * @param {tabletmanagerdata.VReplicationWaitForPosResponse} message VReplicationWaitForPosResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InitReplicaResponse.toObject = function toObject() { + VReplicationWaitForPosResponse.toObject = function toObject() { return {}; }; /** - * Converts this InitReplicaResponse to JSON. + * Converts this VReplicationWaitForPosResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.InitReplicaResponse + * @memberof tabletmanagerdata.VReplicationWaitForPosResponse * @instance * @returns {Object.} JSON object */ - InitReplicaResponse.prototype.toJSON = function toJSON() { + VReplicationWaitForPosResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InitReplicaResponse + * Gets the default type url for VReplicationWaitForPosResponse * @function getTypeUrl - * @memberof tabletmanagerdata.InitReplicaResponse + * @memberof tabletmanagerdata.VReplicationWaitForPosResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InitReplicaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VReplicationWaitForPosResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.InitReplicaResponse"; + return typeUrlPrefix + "/tabletmanagerdata.VReplicationWaitForPosResponse"; }; - return InitReplicaResponse; + return VReplicationWaitForPosResponse; })(); - tabletmanagerdata.DemotePrimaryRequest = (function() { + tabletmanagerdata.InitPrimaryRequest = (function() { /** - * Properties of a DemotePrimaryRequest. + * Properties of an InitPrimaryRequest. * @memberof tabletmanagerdata - * @interface IDemotePrimaryRequest + * @interface IInitPrimaryRequest + * @property {boolean|null} [semiSync] InitPrimaryRequest semiSync */ /** - * Constructs a new DemotePrimaryRequest. + * Constructs a new InitPrimaryRequest. * @memberof tabletmanagerdata - * @classdesc Represents a DemotePrimaryRequest. - * @implements IDemotePrimaryRequest + * @classdesc Represents an InitPrimaryRequest. + * @implements IInitPrimaryRequest * @constructor - * @param {tabletmanagerdata.IDemotePrimaryRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IInitPrimaryRequest=} [properties] Properties to set */ - function DemotePrimaryRequest(properties) { + function InitPrimaryRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68105,63 +68773,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new DemotePrimaryRequest instance using the specified properties. + * InitPrimaryRequest semiSync. + * @member {boolean} semiSync + * @memberof tabletmanagerdata.InitPrimaryRequest + * @instance + */ + InitPrimaryRequest.prototype.semiSync = false; + + /** + * Creates a new InitPrimaryRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.DemotePrimaryRequest + * @memberof tabletmanagerdata.InitPrimaryRequest * @static - * @param {tabletmanagerdata.IDemotePrimaryRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.DemotePrimaryRequest} DemotePrimaryRequest instance + * @param {tabletmanagerdata.IInitPrimaryRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.InitPrimaryRequest} InitPrimaryRequest instance */ - DemotePrimaryRequest.create = function create(properties) { - return new DemotePrimaryRequest(properties); + InitPrimaryRequest.create = function create(properties) { + return new InitPrimaryRequest(properties); }; /** - * Encodes the specified DemotePrimaryRequest message. Does not implicitly {@link tabletmanagerdata.DemotePrimaryRequest.verify|verify} messages. + * Encodes the specified InitPrimaryRequest message. Does not implicitly {@link tabletmanagerdata.InitPrimaryRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.DemotePrimaryRequest + * @memberof tabletmanagerdata.InitPrimaryRequest * @static - * @param {tabletmanagerdata.IDemotePrimaryRequest} message DemotePrimaryRequest message or plain object to encode + * @param {tabletmanagerdata.IInitPrimaryRequest} message InitPrimaryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DemotePrimaryRequest.encode = function encode(message, writer) { + InitPrimaryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.semiSync != null && Object.hasOwnProperty.call(message, "semiSync")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.semiSync); return writer; }; /** - * Encodes the specified DemotePrimaryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.DemotePrimaryRequest.verify|verify} messages. + * Encodes the specified InitPrimaryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.InitPrimaryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.DemotePrimaryRequest + * @memberof tabletmanagerdata.InitPrimaryRequest * @static - * @param {tabletmanagerdata.IDemotePrimaryRequest} message DemotePrimaryRequest message or plain object to encode + * @param {tabletmanagerdata.IInitPrimaryRequest} message InitPrimaryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DemotePrimaryRequest.encodeDelimited = function encodeDelimited(message, writer) { + InitPrimaryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DemotePrimaryRequest message from the specified reader or buffer. + * Decodes an InitPrimaryRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.DemotePrimaryRequest + * @memberof tabletmanagerdata.InitPrimaryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.DemotePrimaryRequest} DemotePrimaryRequest + * @returns {tabletmanagerdata.InitPrimaryRequest} InitPrimaryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DemotePrimaryRequest.decode = function decode(reader, length) { + InitPrimaryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DemotePrimaryRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.InitPrimaryRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.semiSync = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -68171,109 +68853,122 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a DemotePrimaryRequest message from the specified reader or buffer, length delimited. + * Decodes an InitPrimaryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.DemotePrimaryRequest + * @memberof tabletmanagerdata.InitPrimaryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.DemotePrimaryRequest} DemotePrimaryRequest + * @returns {tabletmanagerdata.InitPrimaryRequest} InitPrimaryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DemotePrimaryRequest.decodeDelimited = function decodeDelimited(reader) { + InitPrimaryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DemotePrimaryRequest message. + * Verifies an InitPrimaryRequest message. * @function verify - * @memberof tabletmanagerdata.DemotePrimaryRequest + * @memberof tabletmanagerdata.InitPrimaryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DemotePrimaryRequest.verify = function verify(message) { + InitPrimaryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.semiSync != null && message.hasOwnProperty("semiSync")) + if (typeof message.semiSync !== "boolean") + return "semiSync: boolean expected"; return null; }; /** - * Creates a DemotePrimaryRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InitPrimaryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.DemotePrimaryRequest + * @memberof tabletmanagerdata.InitPrimaryRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.DemotePrimaryRequest} DemotePrimaryRequest + * @returns {tabletmanagerdata.InitPrimaryRequest} InitPrimaryRequest */ - DemotePrimaryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.DemotePrimaryRequest) + InitPrimaryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.InitPrimaryRequest) return object; - return new $root.tabletmanagerdata.DemotePrimaryRequest(); + let message = new $root.tabletmanagerdata.InitPrimaryRequest(); + if (object.semiSync != null) + message.semiSync = Boolean(object.semiSync); + return message; }; /** - * Creates a plain object from a DemotePrimaryRequest message. Also converts values to other types if specified. + * Creates a plain object from an InitPrimaryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.DemotePrimaryRequest + * @memberof tabletmanagerdata.InitPrimaryRequest * @static - * @param {tabletmanagerdata.DemotePrimaryRequest} message DemotePrimaryRequest + * @param {tabletmanagerdata.InitPrimaryRequest} message InitPrimaryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DemotePrimaryRequest.toObject = function toObject() { - return {}; + InitPrimaryRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.semiSync = false; + if (message.semiSync != null && message.hasOwnProperty("semiSync")) + object.semiSync = message.semiSync; + return object; }; /** - * Converts this DemotePrimaryRequest to JSON. + * Converts this InitPrimaryRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.DemotePrimaryRequest + * @memberof tabletmanagerdata.InitPrimaryRequest * @instance * @returns {Object.} JSON object */ - DemotePrimaryRequest.prototype.toJSON = function toJSON() { + InitPrimaryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DemotePrimaryRequest + * Gets the default type url for InitPrimaryRequest * @function getTypeUrl - * @memberof tabletmanagerdata.DemotePrimaryRequest + * @memberof tabletmanagerdata.InitPrimaryRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DemotePrimaryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InitPrimaryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.DemotePrimaryRequest"; + return typeUrlPrefix + "/tabletmanagerdata.InitPrimaryRequest"; }; - return DemotePrimaryRequest; + return InitPrimaryRequest; })(); - tabletmanagerdata.DemotePrimaryResponse = (function() { + tabletmanagerdata.InitPrimaryResponse = (function() { /** - * Properties of a DemotePrimaryResponse. + * Properties of an InitPrimaryResponse. * @memberof tabletmanagerdata - * @interface IDemotePrimaryResponse - * @property {replicationdata.IPrimaryStatus|null} [primary_status] DemotePrimaryResponse primary_status + * @interface IInitPrimaryResponse + * @property {string|null} [position] InitPrimaryResponse position */ /** - * Constructs a new DemotePrimaryResponse. + * Constructs a new InitPrimaryResponse. * @memberof tabletmanagerdata - * @classdesc Represents a DemotePrimaryResponse. - * @implements IDemotePrimaryResponse + * @classdesc Represents an InitPrimaryResponse. + * @implements IInitPrimaryResponse * @constructor - * @param {tabletmanagerdata.IDemotePrimaryResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IInitPrimaryResponse=} [properties] Properties to set */ - function DemotePrimaryResponse(properties) { + function InitPrimaryResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68281,75 +68976,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * DemotePrimaryResponse primary_status. - * @member {replicationdata.IPrimaryStatus|null|undefined} primary_status - * @memberof tabletmanagerdata.DemotePrimaryResponse + * InitPrimaryResponse position. + * @member {string} position + * @memberof tabletmanagerdata.InitPrimaryResponse * @instance */ - DemotePrimaryResponse.prototype.primary_status = null; + InitPrimaryResponse.prototype.position = ""; /** - * Creates a new DemotePrimaryResponse instance using the specified properties. + * Creates a new InitPrimaryResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.DemotePrimaryResponse + * @memberof tabletmanagerdata.InitPrimaryResponse * @static - * @param {tabletmanagerdata.IDemotePrimaryResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.DemotePrimaryResponse} DemotePrimaryResponse instance + * @param {tabletmanagerdata.IInitPrimaryResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.InitPrimaryResponse} InitPrimaryResponse instance */ - DemotePrimaryResponse.create = function create(properties) { - return new DemotePrimaryResponse(properties); + InitPrimaryResponse.create = function create(properties) { + return new InitPrimaryResponse(properties); }; /** - * Encodes the specified DemotePrimaryResponse message. Does not implicitly {@link tabletmanagerdata.DemotePrimaryResponse.verify|verify} messages. + * Encodes the specified InitPrimaryResponse message. Does not implicitly {@link tabletmanagerdata.InitPrimaryResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.DemotePrimaryResponse + * @memberof tabletmanagerdata.InitPrimaryResponse * @static - * @param {tabletmanagerdata.IDemotePrimaryResponse} message DemotePrimaryResponse message or plain object to encode + * @param {tabletmanagerdata.IInitPrimaryResponse} message InitPrimaryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DemotePrimaryResponse.encode = function encode(message, writer) { + InitPrimaryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.primary_status != null && Object.hasOwnProperty.call(message, "primary_status")) - $root.replicationdata.PrimaryStatus.encode(message.primary_status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); return writer; }; /** - * Encodes the specified DemotePrimaryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.DemotePrimaryResponse.verify|verify} messages. + * Encodes the specified InitPrimaryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.InitPrimaryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.DemotePrimaryResponse + * @memberof tabletmanagerdata.InitPrimaryResponse * @static - * @param {tabletmanagerdata.IDemotePrimaryResponse} message DemotePrimaryResponse message or plain object to encode + * @param {tabletmanagerdata.IInitPrimaryResponse} message InitPrimaryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DemotePrimaryResponse.encodeDelimited = function encodeDelimited(message, writer) { + InitPrimaryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DemotePrimaryResponse message from the specified reader or buffer. + * Decodes an InitPrimaryResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.DemotePrimaryResponse + * @memberof tabletmanagerdata.InitPrimaryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.DemotePrimaryResponse} DemotePrimaryResponse + * @returns {tabletmanagerdata.InitPrimaryResponse} InitPrimaryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DemotePrimaryResponse.decode = function decode(reader, length) { + InitPrimaryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DemotePrimaryResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.InitPrimaryResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.primary_status = $root.replicationdata.PrimaryStatus.decode(reader, reader.uint32()); + case 1: { + message.position = reader.string(); break; } default: @@ -68361,127 +69056,125 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a DemotePrimaryResponse message from the specified reader or buffer, length delimited. + * Decodes an InitPrimaryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.DemotePrimaryResponse + * @memberof tabletmanagerdata.InitPrimaryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.DemotePrimaryResponse} DemotePrimaryResponse + * @returns {tabletmanagerdata.InitPrimaryResponse} InitPrimaryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DemotePrimaryResponse.decodeDelimited = function decodeDelimited(reader) { + InitPrimaryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DemotePrimaryResponse message. + * Verifies an InitPrimaryResponse message. * @function verify - * @memberof tabletmanagerdata.DemotePrimaryResponse + * @memberof tabletmanagerdata.InitPrimaryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DemotePrimaryResponse.verify = function verify(message) { + InitPrimaryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.primary_status != null && message.hasOwnProperty("primary_status")) { - let error = $root.replicationdata.PrimaryStatus.verify(message.primary_status); - if (error) - return "primary_status." + error; - } + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; return null; }; /** - * Creates a DemotePrimaryResponse message from a plain object. Also converts values to their respective internal types. + * Creates an InitPrimaryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.DemotePrimaryResponse + * @memberof tabletmanagerdata.InitPrimaryResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.DemotePrimaryResponse} DemotePrimaryResponse + * @returns {tabletmanagerdata.InitPrimaryResponse} InitPrimaryResponse */ - DemotePrimaryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.DemotePrimaryResponse) + InitPrimaryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.InitPrimaryResponse) return object; - let message = new $root.tabletmanagerdata.DemotePrimaryResponse(); - if (object.primary_status != null) { - if (typeof object.primary_status !== "object") - throw TypeError(".tabletmanagerdata.DemotePrimaryResponse.primary_status: object expected"); - message.primary_status = $root.replicationdata.PrimaryStatus.fromObject(object.primary_status); - } + let message = new $root.tabletmanagerdata.InitPrimaryResponse(); + if (object.position != null) + message.position = String(object.position); return message; }; /** - * Creates a plain object from a DemotePrimaryResponse message. Also converts values to other types if specified. + * Creates a plain object from an InitPrimaryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.DemotePrimaryResponse + * @memberof tabletmanagerdata.InitPrimaryResponse * @static - * @param {tabletmanagerdata.DemotePrimaryResponse} message DemotePrimaryResponse + * @param {tabletmanagerdata.InitPrimaryResponse} message InitPrimaryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DemotePrimaryResponse.toObject = function toObject(message, options) { + InitPrimaryResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.primary_status = null; - if (message.primary_status != null && message.hasOwnProperty("primary_status")) - object.primary_status = $root.replicationdata.PrimaryStatus.toObject(message.primary_status, options); + object.position = ""; + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; return object; }; /** - * Converts this DemotePrimaryResponse to JSON. + * Converts this InitPrimaryResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.DemotePrimaryResponse + * @memberof tabletmanagerdata.InitPrimaryResponse * @instance * @returns {Object.} JSON object */ - DemotePrimaryResponse.prototype.toJSON = function toJSON() { + InitPrimaryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DemotePrimaryResponse + * Gets the default type url for InitPrimaryResponse * @function getTypeUrl - * @memberof tabletmanagerdata.DemotePrimaryResponse + * @memberof tabletmanagerdata.InitPrimaryResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DemotePrimaryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InitPrimaryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.DemotePrimaryResponse"; + return typeUrlPrefix + "/tabletmanagerdata.InitPrimaryResponse"; }; - return DemotePrimaryResponse; + return InitPrimaryResponse; })(); - tabletmanagerdata.UndoDemotePrimaryRequest = (function() { + tabletmanagerdata.PopulateReparentJournalRequest = (function() { /** - * Properties of an UndoDemotePrimaryRequest. + * Properties of a PopulateReparentJournalRequest. * @memberof tabletmanagerdata - * @interface IUndoDemotePrimaryRequest - * @property {boolean|null} [semiSync] UndoDemotePrimaryRequest semiSync + * @interface IPopulateReparentJournalRequest + * @property {number|Long|null} [time_created_ns] PopulateReparentJournalRequest time_created_ns + * @property {string|null} [action_name] PopulateReparentJournalRequest action_name + * @property {topodata.ITabletAlias|null} [primary_alias] PopulateReparentJournalRequest primary_alias + * @property {string|null} [replication_position] PopulateReparentJournalRequest replication_position */ /** - * Constructs a new UndoDemotePrimaryRequest. + * Constructs a new PopulateReparentJournalRequest. * @memberof tabletmanagerdata - * @classdesc Represents an UndoDemotePrimaryRequest. - * @implements IUndoDemotePrimaryRequest + * @classdesc Represents a PopulateReparentJournalRequest. + * @implements IPopulateReparentJournalRequest * @constructor - * @param {tabletmanagerdata.IUndoDemotePrimaryRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IPopulateReparentJournalRequest=} [properties] Properties to set */ - function UndoDemotePrimaryRequest(properties) { + function PopulateReparentJournalRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68489,75 +69182,117 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * UndoDemotePrimaryRequest semiSync. - * @member {boolean} semiSync - * @memberof tabletmanagerdata.UndoDemotePrimaryRequest + * PopulateReparentJournalRequest time_created_ns. + * @member {number|Long} time_created_ns + * @memberof tabletmanagerdata.PopulateReparentJournalRequest * @instance */ - UndoDemotePrimaryRequest.prototype.semiSync = false; + PopulateReparentJournalRequest.prototype.time_created_ns = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new UndoDemotePrimaryRequest instance using the specified properties. + * PopulateReparentJournalRequest action_name. + * @member {string} action_name + * @memberof tabletmanagerdata.PopulateReparentJournalRequest + * @instance + */ + PopulateReparentJournalRequest.prototype.action_name = ""; + + /** + * PopulateReparentJournalRequest primary_alias. + * @member {topodata.ITabletAlias|null|undefined} primary_alias + * @memberof tabletmanagerdata.PopulateReparentJournalRequest + * @instance + */ + PopulateReparentJournalRequest.prototype.primary_alias = null; + + /** + * PopulateReparentJournalRequest replication_position. + * @member {string} replication_position + * @memberof tabletmanagerdata.PopulateReparentJournalRequest + * @instance + */ + PopulateReparentJournalRequest.prototype.replication_position = ""; + + /** + * Creates a new PopulateReparentJournalRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.UndoDemotePrimaryRequest + * @memberof tabletmanagerdata.PopulateReparentJournalRequest * @static - * @param {tabletmanagerdata.IUndoDemotePrimaryRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.UndoDemotePrimaryRequest} UndoDemotePrimaryRequest instance + * @param {tabletmanagerdata.IPopulateReparentJournalRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.PopulateReparentJournalRequest} PopulateReparentJournalRequest instance */ - UndoDemotePrimaryRequest.create = function create(properties) { - return new UndoDemotePrimaryRequest(properties); + PopulateReparentJournalRequest.create = function create(properties) { + return new PopulateReparentJournalRequest(properties); }; /** - * Encodes the specified UndoDemotePrimaryRequest message. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryRequest.verify|verify} messages. + * Encodes the specified PopulateReparentJournalRequest message. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.UndoDemotePrimaryRequest + * @memberof tabletmanagerdata.PopulateReparentJournalRequest * @static - * @param {tabletmanagerdata.IUndoDemotePrimaryRequest} message UndoDemotePrimaryRequest message or plain object to encode + * @param {tabletmanagerdata.IPopulateReparentJournalRequest} message PopulateReparentJournalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndoDemotePrimaryRequest.encode = function encode(message, writer) { + PopulateReparentJournalRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.semiSync != null && Object.hasOwnProperty.call(message, "semiSync")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.semiSync); + if (message.time_created_ns != null && Object.hasOwnProperty.call(message, "time_created_ns")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.time_created_ns); + if (message.action_name != null && Object.hasOwnProperty.call(message, "action_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.action_name); + if (message.primary_alias != null && Object.hasOwnProperty.call(message, "primary_alias")) + $root.topodata.TabletAlias.encode(message.primary_alias, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.replication_position != null && Object.hasOwnProperty.call(message, "replication_position")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.replication_position); return writer; }; /** - * Encodes the specified UndoDemotePrimaryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryRequest.verify|verify} messages. + * Encodes the specified PopulateReparentJournalRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.UndoDemotePrimaryRequest + * @memberof tabletmanagerdata.PopulateReparentJournalRequest * @static - * @param {tabletmanagerdata.IUndoDemotePrimaryRequest} message UndoDemotePrimaryRequest message or plain object to encode + * @param {tabletmanagerdata.IPopulateReparentJournalRequest} message PopulateReparentJournalRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndoDemotePrimaryRequest.encodeDelimited = function encodeDelimited(message, writer) { + PopulateReparentJournalRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndoDemotePrimaryRequest message from the specified reader or buffer. + * Decodes a PopulateReparentJournalRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.UndoDemotePrimaryRequest + * @memberof tabletmanagerdata.PopulateReparentJournalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.UndoDemotePrimaryRequest} UndoDemotePrimaryRequest + * @returns {tabletmanagerdata.PopulateReparentJournalRequest} PopulateReparentJournalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndoDemotePrimaryRequest.decode = function decode(reader, length) { + PopulateReparentJournalRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UndoDemotePrimaryRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PopulateReparentJournalRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.semiSync = reader.bool(); + message.time_created_ns = reader.int64(); + break; + } + case 2: { + message.action_name = reader.string(); + break; + } + case 3: { + message.primary_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 4: { + message.replication_position = reader.string(); break; } default: @@ -68569,121 +69304,165 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an UndoDemotePrimaryRequest message from the specified reader or buffer, length delimited. + * Decodes a PopulateReparentJournalRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.UndoDemotePrimaryRequest + * @memberof tabletmanagerdata.PopulateReparentJournalRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.UndoDemotePrimaryRequest} UndoDemotePrimaryRequest + * @returns {tabletmanagerdata.PopulateReparentJournalRequest} PopulateReparentJournalRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndoDemotePrimaryRequest.decodeDelimited = function decodeDelimited(reader) { + PopulateReparentJournalRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndoDemotePrimaryRequest message. + * Verifies a PopulateReparentJournalRequest message. * @function verify - * @memberof tabletmanagerdata.UndoDemotePrimaryRequest + * @memberof tabletmanagerdata.PopulateReparentJournalRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndoDemotePrimaryRequest.verify = function verify(message) { + PopulateReparentJournalRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.semiSync != null && message.hasOwnProperty("semiSync")) - if (typeof message.semiSync !== "boolean") - return "semiSync: boolean expected"; + if (message.time_created_ns != null && message.hasOwnProperty("time_created_ns")) + if (!$util.isInteger(message.time_created_ns) && !(message.time_created_ns && $util.isInteger(message.time_created_ns.low) && $util.isInteger(message.time_created_ns.high))) + return "time_created_ns: integer|Long expected"; + if (message.action_name != null && message.hasOwnProperty("action_name")) + if (!$util.isString(message.action_name)) + return "action_name: string expected"; + if (message.primary_alias != null && message.hasOwnProperty("primary_alias")) { + let error = $root.topodata.TabletAlias.verify(message.primary_alias); + if (error) + return "primary_alias." + error; + } + if (message.replication_position != null && message.hasOwnProperty("replication_position")) + if (!$util.isString(message.replication_position)) + return "replication_position: string expected"; return null; }; /** - * Creates an UndoDemotePrimaryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PopulateReparentJournalRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.UndoDemotePrimaryRequest + * @memberof tabletmanagerdata.PopulateReparentJournalRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.UndoDemotePrimaryRequest} UndoDemotePrimaryRequest + * @returns {tabletmanagerdata.PopulateReparentJournalRequest} PopulateReparentJournalRequest */ - UndoDemotePrimaryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.UndoDemotePrimaryRequest) + PopulateReparentJournalRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.PopulateReparentJournalRequest) return object; - let message = new $root.tabletmanagerdata.UndoDemotePrimaryRequest(); - if (object.semiSync != null) - message.semiSync = Boolean(object.semiSync); + let message = new $root.tabletmanagerdata.PopulateReparentJournalRequest(); + if (object.time_created_ns != null) + if ($util.Long) + (message.time_created_ns = $util.Long.fromValue(object.time_created_ns)).unsigned = false; + else if (typeof object.time_created_ns === "string") + message.time_created_ns = parseInt(object.time_created_ns, 10); + else if (typeof object.time_created_ns === "number") + message.time_created_ns = object.time_created_ns; + else if (typeof object.time_created_ns === "object") + message.time_created_ns = new $util.LongBits(object.time_created_ns.low >>> 0, object.time_created_ns.high >>> 0).toNumber(); + if (object.action_name != null) + message.action_name = String(object.action_name); + if (object.primary_alias != null) { + if (typeof object.primary_alias !== "object") + throw TypeError(".tabletmanagerdata.PopulateReparentJournalRequest.primary_alias: object expected"); + message.primary_alias = $root.topodata.TabletAlias.fromObject(object.primary_alias); + } + if (object.replication_position != null) + message.replication_position = String(object.replication_position); return message; }; /** - * Creates a plain object from an UndoDemotePrimaryRequest message. Also converts values to other types if specified. + * Creates a plain object from a PopulateReparentJournalRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.UndoDemotePrimaryRequest + * @memberof tabletmanagerdata.PopulateReparentJournalRequest * @static - * @param {tabletmanagerdata.UndoDemotePrimaryRequest} message UndoDemotePrimaryRequest + * @param {tabletmanagerdata.PopulateReparentJournalRequest} message PopulateReparentJournalRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndoDemotePrimaryRequest.toObject = function toObject(message, options) { + PopulateReparentJournalRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.semiSync = false; - if (message.semiSync != null && message.hasOwnProperty("semiSync")) - object.semiSync = message.semiSync; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.time_created_ns = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.time_created_ns = options.longs === String ? "0" : 0; + object.action_name = ""; + object.primary_alias = null; + object.replication_position = ""; + } + if (message.time_created_ns != null && message.hasOwnProperty("time_created_ns")) + if (typeof message.time_created_ns === "number") + object.time_created_ns = options.longs === String ? String(message.time_created_ns) : message.time_created_ns; + else + object.time_created_ns = options.longs === String ? $util.Long.prototype.toString.call(message.time_created_ns) : options.longs === Number ? new $util.LongBits(message.time_created_ns.low >>> 0, message.time_created_ns.high >>> 0).toNumber() : message.time_created_ns; + if (message.action_name != null && message.hasOwnProperty("action_name")) + object.action_name = message.action_name; + if (message.primary_alias != null && message.hasOwnProperty("primary_alias")) + object.primary_alias = $root.topodata.TabletAlias.toObject(message.primary_alias, options); + if (message.replication_position != null && message.hasOwnProperty("replication_position")) + object.replication_position = message.replication_position; return object; }; /** - * Converts this UndoDemotePrimaryRequest to JSON. + * Converts this PopulateReparentJournalRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.UndoDemotePrimaryRequest + * @memberof tabletmanagerdata.PopulateReparentJournalRequest * @instance * @returns {Object.} JSON object */ - UndoDemotePrimaryRequest.prototype.toJSON = function toJSON() { + PopulateReparentJournalRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UndoDemotePrimaryRequest + * Gets the default type url for PopulateReparentJournalRequest * @function getTypeUrl - * @memberof tabletmanagerdata.UndoDemotePrimaryRequest + * @memberof tabletmanagerdata.PopulateReparentJournalRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UndoDemotePrimaryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PopulateReparentJournalRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.UndoDemotePrimaryRequest"; + return typeUrlPrefix + "/tabletmanagerdata.PopulateReparentJournalRequest"; }; - return UndoDemotePrimaryRequest; + return PopulateReparentJournalRequest; })(); - tabletmanagerdata.UndoDemotePrimaryResponse = (function() { + tabletmanagerdata.PopulateReparentJournalResponse = (function() { /** - * Properties of an UndoDemotePrimaryResponse. + * Properties of a PopulateReparentJournalResponse. * @memberof tabletmanagerdata - * @interface IUndoDemotePrimaryResponse + * @interface IPopulateReparentJournalResponse */ /** - * Constructs a new UndoDemotePrimaryResponse. + * Constructs a new PopulateReparentJournalResponse. * @memberof tabletmanagerdata - * @classdesc Represents an UndoDemotePrimaryResponse. - * @implements IUndoDemotePrimaryResponse + * @classdesc Represents a PopulateReparentJournalResponse. + * @implements IPopulateReparentJournalResponse * @constructor - * @param {tabletmanagerdata.IUndoDemotePrimaryResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IPopulateReparentJournalResponse=} [properties] Properties to set */ - function UndoDemotePrimaryResponse(properties) { + function PopulateReparentJournalResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68691,60 +69470,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new UndoDemotePrimaryResponse instance using the specified properties. + * Creates a new PopulateReparentJournalResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.UndoDemotePrimaryResponse + * @memberof tabletmanagerdata.PopulateReparentJournalResponse * @static - * @param {tabletmanagerdata.IUndoDemotePrimaryResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.UndoDemotePrimaryResponse} UndoDemotePrimaryResponse instance + * @param {tabletmanagerdata.IPopulateReparentJournalResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.PopulateReparentJournalResponse} PopulateReparentJournalResponse instance */ - UndoDemotePrimaryResponse.create = function create(properties) { - return new UndoDemotePrimaryResponse(properties); + PopulateReparentJournalResponse.create = function create(properties) { + return new PopulateReparentJournalResponse(properties); }; /** - * Encodes the specified UndoDemotePrimaryResponse message. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryResponse.verify|verify} messages. + * Encodes the specified PopulateReparentJournalResponse message. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.UndoDemotePrimaryResponse + * @memberof tabletmanagerdata.PopulateReparentJournalResponse * @static - * @param {tabletmanagerdata.IUndoDemotePrimaryResponse} message UndoDemotePrimaryResponse message or plain object to encode + * @param {tabletmanagerdata.IPopulateReparentJournalResponse} message PopulateReparentJournalResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndoDemotePrimaryResponse.encode = function encode(message, writer) { + PopulateReparentJournalResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified UndoDemotePrimaryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryResponse.verify|verify} messages. + * Encodes the specified PopulateReparentJournalResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PopulateReparentJournalResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.UndoDemotePrimaryResponse + * @memberof tabletmanagerdata.PopulateReparentJournalResponse * @static - * @param {tabletmanagerdata.IUndoDemotePrimaryResponse} message UndoDemotePrimaryResponse message or plain object to encode + * @param {tabletmanagerdata.IPopulateReparentJournalResponse} message PopulateReparentJournalResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndoDemotePrimaryResponse.encodeDelimited = function encodeDelimited(message, writer) { + PopulateReparentJournalResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndoDemotePrimaryResponse message from the specified reader or buffer. + * Decodes a PopulateReparentJournalResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.UndoDemotePrimaryResponse + * @memberof tabletmanagerdata.PopulateReparentJournalResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.UndoDemotePrimaryResponse} UndoDemotePrimaryResponse + * @returns {tabletmanagerdata.PopulateReparentJournalResponse} PopulateReparentJournalResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndoDemotePrimaryResponse.decode = function decode(reader, length) { + PopulateReparentJournalResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UndoDemotePrimaryResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PopulateReparentJournalResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -68757,108 +69536,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an UndoDemotePrimaryResponse message from the specified reader or buffer, length delimited. + * Decodes a PopulateReparentJournalResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.UndoDemotePrimaryResponse + * @memberof tabletmanagerdata.PopulateReparentJournalResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.UndoDemotePrimaryResponse} UndoDemotePrimaryResponse + * @returns {tabletmanagerdata.PopulateReparentJournalResponse} PopulateReparentJournalResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndoDemotePrimaryResponse.decodeDelimited = function decodeDelimited(reader) { + PopulateReparentJournalResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndoDemotePrimaryResponse message. + * Verifies a PopulateReparentJournalResponse message. * @function verify - * @memberof tabletmanagerdata.UndoDemotePrimaryResponse + * @memberof tabletmanagerdata.PopulateReparentJournalResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndoDemotePrimaryResponse.verify = function verify(message) { + PopulateReparentJournalResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates an UndoDemotePrimaryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PopulateReparentJournalResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.UndoDemotePrimaryResponse + * @memberof tabletmanagerdata.PopulateReparentJournalResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.UndoDemotePrimaryResponse} UndoDemotePrimaryResponse + * @returns {tabletmanagerdata.PopulateReparentJournalResponse} PopulateReparentJournalResponse */ - UndoDemotePrimaryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.UndoDemotePrimaryResponse) + PopulateReparentJournalResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.PopulateReparentJournalResponse) return object; - return new $root.tabletmanagerdata.UndoDemotePrimaryResponse(); + return new $root.tabletmanagerdata.PopulateReparentJournalResponse(); }; /** - * Creates a plain object from an UndoDemotePrimaryResponse message. Also converts values to other types if specified. + * Creates a plain object from a PopulateReparentJournalResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.UndoDemotePrimaryResponse + * @memberof tabletmanagerdata.PopulateReparentJournalResponse * @static - * @param {tabletmanagerdata.UndoDemotePrimaryResponse} message UndoDemotePrimaryResponse + * @param {tabletmanagerdata.PopulateReparentJournalResponse} message PopulateReparentJournalResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndoDemotePrimaryResponse.toObject = function toObject() { + PopulateReparentJournalResponse.toObject = function toObject() { return {}; }; /** - * Converts this UndoDemotePrimaryResponse to JSON. + * Converts this PopulateReparentJournalResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.UndoDemotePrimaryResponse + * @memberof tabletmanagerdata.PopulateReparentJournalResponse * @instance * @returns {Object.} JSON object */ - UndoDemotePrimaryResponse.prototype.toJSON = function toJSON() { + PopulateReparentJournalResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UndoDemotePrimaryResponse + * Gets the default type url for PopulateReparentJournalResponse * @function getTypeUrl - * @memberof tabletmanagerdata.UndoDemotePrimaryResponse + * @memberof tabletmanagerdata.PopulateReparentJournalResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UndoDemotePrimaryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PopulateReparentJournalResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.UndoDemotePrimaryResponse"; + return typeUrlPrefix + "/tabletmanagerdata.PopulateReparentJournalResponse"; }; - return UndoDemotePrimaryResponse; + return PopulateReparentJournalResponse; })(); - tabletmanagerdata.ReplicaWasPromotedRequest = (function() { + tabletmanagerdata.ReadReparentJournalInfoRequest = (function() { /** - * Properties of a ReplicaWasPromotedRequest. + * Properties of a ReadReparentJournalInfoRequest. * @memberof tabletmanagerdata - * @interface IReplicaWasPromotedRequest + * @interface IReadReparentJournalInfoRequest */ /** - * Constructs a new ReplicaWasPromotedRequest. + * Constructs a new ReadReparentJournalInfoRequest. * @memberof tabletmanagerdata - * @classdesc Represents a ReplicaWasPromotedRequest. - * @implements IReplicaWasPromotedRequest + * @classdesc Represents a ReadReparentJournalInfoRequest. + * @implements IReadReparentJournalInfoRequest * @constructor - * @param {tabletmanagerdata.IReplicaWasPromotedRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IReadReparentJournalInfoRequest=} [properties] Properties to set */ - function ReplicaWasPromotedRequest(properties) { + function ReadReparentJournalInfoRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68866,60 +69645,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new ReplicaWasPromotedRequest instance using the specified properties. + * Creates a new ReadReparentJournalInfoRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReplicaWasPromotedRequest + * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest * @static - * @param {tabletmanagerdata.IReplicaWasPromotedRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ReplicaWasPromotedRequest} ReplicaWasPromotedRequest instance + * @param {tabletmanagerdata.IReadReparentJournalInfoRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ReadReparentJournalInfoRequest} ReadReparentJournalInfoRequest instance */ - ReplicaWasPromotedRequest.create = function create(properties) { - return new ReplicaWasPromotedRequest(properties); + ReadReparentJournalInfoRequest.create = function create(properties) { + return new ReadReparentJournalInfoRequest(properties); }; /** - * Encodes the specified ReplicaWasPromotedRequest message. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedRequest.verify|verify} messages. + * Encodes the specified ReadReparentJournalInfoRequest message. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReplicaWasPromotedRequest + * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest * @static - * @param {tabletmanagerdata.IReplicaWasPromotedRequest} message ReplicaWasPromotedRequest message or plain object to encode + * @param {tabletmanagerdata.IReadReparentJournalInfoRequest} message ReadReparentJournalInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReplicaWasPromotedRequest.encode = function encode(message, writer) { + ReadReparentJournalInfoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified ReplicaWasPromotedRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedRequest.verify|verify} messages. + * Encodes the specified ReadReparentJournalInfoRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReplicaWasPromotedRequest + * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest * @static - * @param {tabletmanagerdata.IReplicaWasPromotedRequest} message ReplicaWasPromotedRequest message or plain object to encode + * @param {tabletmanagerdata.IReadReparentJournalInfoRequest} message ReadReparentJournalInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReplicaWasPromotedRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReadReparentJournalInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReplicaWasPromotedRequest message from the specified reader or buffer. + * Decodes a ReadReparentJournalInfoRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReplicaWasPromotedRequest + * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReplicaWasPromotedRequest} ReplicaWasPromotedRequest + * @returns {tabletmanagerdata.ReadReparentJournalInfoRequest} ReadReparentJournalInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReplicaWasPromotedRequest.decode = function decode(reader, length) { + ReadReparentJournalInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReplicaWasPromotedRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadReparentJournalInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -68932,108 +69711,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReplicaWasPromotedRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadReparentJournalInfoRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReplicaWasPromotedRequest + * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReplicaWasPromotedRequest} ReplicaWasPromotedRequest + * @returns {tabletmanagerdata.ReadReparentJournalInfoRequest} ReadReparentJournalInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReplicaWasPromotedRequest.decodeDelimited = function decodeDelimited(reader) { + ReadReparentJournalInfoRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReplicaWasPromotedRequest message. + * Verifies a ReadReparentJournalInfoRequest message. * @function verify - * @memberof tabletmanagerdata.ReplicaWasPromotedRequest + * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReplicaWasPromotedRequest.verify = function verify(message) { + ReadReparentJournalInfoRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a ReplicaWasPromotedRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadReparentJournalInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ReplicaWasPromotedRequest + * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReplicaWasPromotedRequest} ReplicaWasPromotedRequest + * @returns {tabletmanagerdata.ReadReparentJournalInfoRequest} ReadReparentJournalInfoRequest */ - ReplicaWasPromotedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReplicaWasPromotedRequest) + ReadReparentJournalInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReadReparentJournalInfoRequest) return object; - return new $root.tabletmanagerdata.ReplicaWasPromotedRequest(); + return new $root.tabletmanagerdata.ReadReparentJournalInfoRequest(); }; /** - * Creates a plain object from a ReplicaWasPromotedRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReadReparentJournalInfoRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ReplicaWasPromotedRequest + * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest * @static - * @param {tabletmanagerdata.ReplicaWasPromotedRequest} message ReplicaWasPromotedRequest + * @param {tabletmanagerdata.ReadReparentJournalInfoRequest} message ReadReparentJournalInfoRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReplicaWasPromotedRequest.toObject = function toObject() { + ReadReparentJournalInfoRequest.toObject = function toObject() { return {}; }; /** - * Converts this ReplicaWasPromotedRequest to JSON. + * Converts this ReadReparentJournalInfoRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReplicaWasPromotedRequest + * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest * @instance * @returns {Object.} JSON object */ - ReplicaWasPromotedRequest.prototype.toJSON = function toJSON() { + ReadReparentJournalInfoRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReplicaWasPromotedRequest + * Gets the default type url for ReadReparentJournalInfoRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ReplicaWasPromotedRequest + * @memberof tabletmanagerdata.ReadReparentJournalInfoRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReplicaWasPromotedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadReparentJournalInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReplicaWasPromotedRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ReadReparentJournalInfoRequest"; }; - return ReplicaWasPromotedRequest; + return ReadReparentJournalInfoRequest; })(); - tabletmanagerdata.ReplicaWasPromotedResponse = (function() { + tabletmanagerdata.ReadReparentJournalInfoResponse = (function() { /** - * Properties of a ReplicaWasPromotedResponse. + * Properties of a ReadReparentJournalInfoResponse. * @memberof tabletmanagerdata - * @interface IReplicaWasPromotedResponse + * @interface IReadReparentJournalInfoResponse + * @property {number|null} [length] ReadReparentJournalInfoResponse length */ /** - * Constructs a new ReplicaWasPromotedResponse. + * Constructs a new ReadReparentJournalInfoResponse. * @memberof tabletmanagerdata - * @classdesc Represents a ReplicaWasPromotedResponse. - * @implements IReplicaWasPromotedResponse + * @classdesc Represents a ReadReparentJournalInfoResponse. + * @implements IReadReparentJournalInfoResponse * @constructor - * @param {tabletmanagerdata.IReplicaWasPromotedResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IReadReparentJournalInfoResponse=} [properties] Properties to set */ - function ReplicaWasPromotedResponse(properties) { + function ReadReparentJournalInfoResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69041,63 +69821,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new ReplicaWasPromotedResponse instance using the specified properties. + * ReadReparentJournalInfoResponse length. + * @member {number} length + * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse + * @instance + */ + ReadReparentJournalInfoResponse.prototype.length = 0; + + /** + * Creates a new ReadReparentJournalInfoResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReplicaWasPromotedResponse + * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse * @static - * @param {tabletmanagerdata.IReplicaWasPromotedResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ReplicaWasPromotedResponse} ReplicaWasPromotedResponse instance + * @param {tabletmanagerdata.IReadReparentJournalInfoResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ReadReparentJournalInfoResponse} ReadReparentJournalInfoResponse instance */ - ReplicaWasPromotedResponse.create = function create(properties) { - return new ReplicaWasPromotedResponse(properties); + ReadReparentJournalInfoResponse.create = function create(properties) { + return new ReadReparentJournalInfoResponse(properties); }; /** - * Encodes the specified ReplicaWasPromotedResponse message. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedResponse.verify|verify} messages. + * Encodes the specified ReadReparentJournalInfoResponse message. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReplicaWasPromotedResponse + * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse * @static - * @param {tabletmanagerdata.IReplicaWasPromotedResponse} message ReplicaWasPromotedResponse message or plain object to encode + * @param {tabletmanagerdata.IReadReparentJournalInfoResponse} message ReadReparentJournalInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReplicaWasPromotedResponse.encode = function encode(message, writer) { + ReadReparentJournalInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.length != null && Object.hasOwnProperty.call(message, "length")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.length); return writer; }; /** - * Encodes the specified ReplicaWasPromotedResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedResponse.verify|verify} messages. + * Encodes the specified ReadReparentJournalInfoResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadReparentJournalInfoResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReplicaWasPromotedResponse + * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse * @static - * @param {tabletmanagerdata.IReplicaWasPromotedResponse} message ReplicaWasPromotedResponse message or plain object to encode + * @param {tabletmanagerdata.IReadReparentJournalInfoResponse} message ReadReparentJournalInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReplicaWasPromotedResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReadReparentJournalInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReplicaWasPromotedResponse message from the specified reader or buffer. + * Decodes a ReadReparentJournalInfoResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReplicaWasPromotedResponse + * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReplicaWasPromotedResponse} ReplicaWasPromotedResponse + * @returns {tabletmanagerdata.ReadReparentJournalInfoResponse} ReadReparentJournalInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReplicaWasPromotedResponse.decode = function decode(reader, length) { + ReadReparentJournalInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReplicaWasPromotedResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadReparentJournalInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.length = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -69107,108 +69901,125 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReplicaWasPromotedResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadReparentJournalInfoResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReplicaWasPromotedResponse + * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReplicaWasPromotedResponse} ReplicaWasPromotedResponse + * @returns {tabletmanagerdata.ReadReparentJournalInfoResponse} ReadReparentJournalInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReplicaWasPromotedResponse.decodeDelimited = function decodeDelimited(reader) { + ReadReparentJournalInfoResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReplicaWasPromotedResponse message. + * Verifies a ReadReparentJournalInfoResponse message. * @function verify - * @memberof tabletmanagerdata.ReplicaWasPromotedResponse + * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReplicaWasPromotedResponse.verify = function verify(message) { + ReadReparentJournalInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.length != null && message.hasOwnProperty("length")) + if (!$util.isInteger(message.length)) + return "length: integer expected"; return null; }; /** - * Creates a ReplicaWasPromotedResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadReparentJournalInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ReplicaWasPromotedResponse + * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReplicaWasPromotedResponse} ReplicaWasPromotedResponse + * @returns {tabletmanagerdata.ReadReparentJournalInfoResponse} ReadReparentJournalInfoResponse */ - ReplicaWasPromotedResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReplicaWasPromotedResponse) + ReadReparentJournalInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReadReparentJournalInfoResponse) return object; - return new $root.tabletmanagerdata.ReplicaWasPromotedResponse(); + let message = new $root.tabletmanagerdata.ReadReparentJournalInfoResponse(); + if (object.length != null) + message.length = object.length | 0; + return message; }; /** - * Creates a plain object from a ReplicaWasPromotedResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReadReparentJournalInfoResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ReplicaWasPromotedResponse + * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse * @static - * @param {tabletmanagerdata.ReplicaWasPromotedResponse} message ReplicaWasPromotedResponse + * @param {tabletmanagerdata.ReadReparentJournalInfoResponse} message ReadReparentJournalInfoResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReplicaWasPromotedResponse.toObject = function toObject() { - return {}; + ReadReparentJournalInfoResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.length = 0; + if (message.length != null && message.hasOwnProperty("length")) + object.length = message.length; + return object; }; /** - * Converts this ReplicaWasPromotedResponse to JSON. + * Converts this ReadReparentJournalInfoResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReplicaWasPromotedResponse + * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse * @instance * @returns {Object.} JSON object */ - ReplicaWasPromotedResponse.prototype.toJSON = function toJSON() { + ReadReparentJournalInfoResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReplicaWasPromotedResponse + * Gets the default type url for ReadReparentJournalInfoResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ReplicaWasPromotedResponse + * @memberof tabletmanagerdata.ReadReparentJournalInfoResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReplicaWasPromotedResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadReparentJournalInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReplicaWasPromotedResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ReadReparentJournalInfoResponse"; }; - return ReplicaWasPromotedResponse; + return ReadReparentJournalInfoResponse; })(); - tabletmanagerdata.ResetReplicationParametersRequest = (function() { + tabletmanagerdata.InitReplicaRequest = (function() { /** - * Properties of a ResetReplicationParametersRequest. + * Properties of an InitReplicaRequest. * @memberof tabletmanagerdata - * @interface IResetReplicationParametersRequest + * @interface IInitReplicaRequest + * @property {topodata.ITabletAlias|null} [parent] InitReplicaRequest parent + * @property {string|null} [replication_position] InitReplicaRequest replication_position + * @property {number|Long|null} [time_created_ns] InitReplicaRequest time_created_ns + * @property {boolean|null} [semiSync] InitReplicaRequest semiSync */ /** - * Constructs a new ResetReplicationParametersRequest. + * Constructs a new InitReplicaRequest. * @memberof tabletmanagerdata - * @classdesc Represents a ResetReplicationParametersRequest. - * @implements IResetReplicationParametersRequest + * @classdesc Represents an InitReplicaRequest. + * @implements IInitReplicaRequest * @constructor - * @param {tabletmanagerdata.IResetReplicationParametersRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IInitReplicaRequest=} [properties] Properties to set */ - function ResetReplicationParametersRequest(properties) { + function InitReplicaRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69216,63 +70027,119 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new ResetReplicationParametersRequest instance using the specified properties. + * InitReplicaRequest parent. + * @member {topodata.ITabletAlias|null|undefined} parent + * @memberof tabletmanagerdata.InitReplicaRequest + * @instance + */ + InitReplicaRequest.prototype.parent = null; + + /** + * InitReplicaRequest replication_position. + * @member {string} replication_position + * @memberof tabletmanagerdata.InitReplicaRequest + * @instance + */ + InitReplicaRequest.prototype.replication_position = ""; + + /** + * InitReplicaRequest time_created_ns. + * @member {number|Long} time_created_ns + * @memberof tabletmanagerdata.InitReplicaRequest + * @instance + */ + InitReplicaRequest.prototype.time_created_ns = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * InitReplicaRequest semiSync. + * @member {boolean} semiSync + * @memberof tabletmanagerdata.InitReplicaRequest + * @instance + */ + InitReplicaRequest.prototype.semiSync = false; + + /** + * Creates a new InitReplicaRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ResetReplicationParametersRequest + * @memberof tabletmanagerdata.InitReplicaRequest * @static - * @param {tabletmanagerdata.IResetReplicationParametersRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ResetReplicationParametersRequest} ResetReplicationParametersRequest instance + * @param {tabletmanagerdata.IInitReplicaRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.InitReplicaRequest} InitReplicaRequest instance */ - ResetReplicationParametersRequest.create = function create(properties) { - return new ResetReplicationParametersRequest(properties); + InitReplicaRequest.create = function create(properties) { + return new InitReplicaRequest(properties); }; /** - * Encodes the specified ResetReplicationParametersRequest message. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersRequest.verify|verify} messages. + * Encodes the specified InitReplicaRequest message. Does not implicitly {@link tabletmanagerdata.InitReplicaRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ResetReplicationParametersRequest + * @memberof tabletmanagerdata.InitReplicaRequest * @static - * @param {tabletmanagerdata.IResetReplicationParametersRequest} message ResetReplicationParametersRequest message or plain object to encode + * @param {tabletmanagerdata.IInitReplicaRequest} message InitReplicaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetReplicationParametersRequest.encode = function encode(message, writer) { + InitReplicaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + $root.topodata.TabletAlias.encode(message.parent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.replication_position != null && Object.hasOwnProperty.call(message, "replication_position")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.replication_position); + if (message.time_created_ns != null && Object.hasOwnProperty.call(message, "time_created_ns")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time_created_ns); + if (message.semiSync != null && Object.hasOwnProperty.call(message, "semiSync")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.semiSync); return writer; }; /** - * Encodes the specified ResetReplicationParametersRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersRequest.verify|verify} messages. + * Encodes the specified InitReplicaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.InitReplicaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ResetReplicationParametersRequest + * @memberof tabletmanagerdata.InitReplicaRequest * @static - * @param {tabletmanagerdata.IResetReplicationParametersRequest} message ResetReplicationParametersRequest message or plain object to encode + * @param {tabletmanagerdata.IInitReplicaRequest} message InitReplicaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetReplicationParametersRequest.encodeDelimited = function encodeDelimited(message, writer) { + InitReplicaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResetReplicationParametersRequest message from the specified reader or buffer. + * Decodes an InitReplicaRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ResetReplicationParametersRequest + * @memberof tabletmanagerdata.InitReplicaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ResetReplicationParametersRequest} ResetReplicationParametersRequest + * @returns {tabletmanagerdata.InitReplicaRequest} InitReplicaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetReplicationParametersRequest.decode = function decode(reader, length) { + InitReplicaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetReplicationParametersRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.InitReplicaRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.parent = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 2: { + message.replication_position = reader.string(); + break; + } + case 3: { + message.time_created_ns = reader.int64(); + break; + } + case 4: { + message.semiSync = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -69282,108 +70149,165 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ResetReplicationParametersRequest message from the specified reader or buffer, length delimited. + * Decodes an InitReplicaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ResetReplicationParametersRequest + * @memberof tabletmanagerdata.InitReplicaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ResetReplicationParametersRequest} ResetReplicationParametersRequest + * @returns {tabletmanagerdata.InitReplicaRequest} InitReplicaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetReplicationParametersRequest.decodeDelimited = function decodeDelimited(reader) { + InitReplicaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResetReplicationParametersRequest message. + * Verifies an InitReplicaRequest message. * @function verify - * @memberof tabletmanagerdata.ResetReplicationParametersRequest + * @memberof tabletmanagerdata.InitReplicaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResetReplicationParametersRequest.verify = function verify(message) { + InitReplicaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) { + let error = $root.topodata.TabletAlias.verify(message.parent); + if (error) + return "parent." + error; + } + if (message.replication_position != null && message.hasOwnProperty("replication_position")) + if (!$util.isString(message.replication_position)) + return "replication_position: string expected"; + if (message.time_created_ns != null && message.hasOwnProperty("time_created_ns")) + if (!$util.isInteger(message.time_created_ns) && !(message.time_created_ns && $util.isInteger(message.time_created_ns.low) && $util.isInteger(message.time_created_ns.high))) + return "time_created_ns: integer|Long expected"; + if (message.semiSync != null && message.hasOwnProperty("semiSync")) + if (typeof message.semiSync !== "boolean") + return "semiSync: boolean expected"; return null; }; /** - * Creates a ResetReplicationParametersRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InitReplicaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ResetReplicationParametersRequest + * @memberof tabletmanagerdata.InitReplicaRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ResetReplicationParametersRequest} ResetReplicationParametersRequest + * @returns {tabletmanagerdata.InitReplicaRequest} InitReplicaRequest */ - ResetReplicationParametersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ResetReplicationParametersRequest) + InitReplicaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.InitReplicaRequest) return object; - return new $root.tabletmanagerdata.ResetReplicationParametersRequest(); + let message = new $root.tabletmanagerdata.InitReplicaRequest(); + if (object.parent != null) { + if (typeof object.parent !== "object") + throw TypeError(".tabletmanagerdata.InitReplicaRequest.parent: object expected"); + message.parent = $root.topodata.TabletAlias.fromObject(object.parent); + } + if (object.replication_position != null) + message.replication_position = String(object.replication_position); + if (object.time_created_ns != null) + if ($util.Long) + (message.time_created_ns = $util.Long.fromValue(object.time_created_ns)).unsigned = false; + else if (typeof object.time_created_ns === "string") + message.time_created_ns = parseInt(object.time_created_ns, 10); + else if (typeof object.time_created_ns === "number") + message.time_created_ns = object.time_created_ns; + else if (typeof object.time_created_ns === "object") + message.time_created_ns = new $util.LongBits(object.time_created_ns.low >>> 0, object.time_created_ns.high >>> 0).toNumber(); + if (object.semiSync != null) + message.semiSync = Boolean(object.semiSync); + return message; }; /** - * Creates a plain object from a ResetReplicationParametersRequest message. Also converts values to other types if specified. + * Creates a plain object from an InitReplicaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ResetReplicationParametersRequest + * @memberof tabletmanagerdata.InitReplicaRequest * @static - * @param {tabletmanagerdata.ResetReplicationParametersRequest} message ResetReplicationParametersRequest + * @param {tabletmanagerdata.InitReplicaRequest} message InitReplicaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResetReplicationParametersRequest.toObject = function toObject() { - return {}; + InitReplicaRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.parent = null; + object.replication_position = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.time_created_ns = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.time_created_ns = options.longs === String ? "0" : 0; + object.semiSync = false; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = $root.topodata.TabletAlias.toObject(message.parent, options); + if (message.replication_position != null && message.hasOwnProperty("replication_position")) + object.replication_position = message.replication_position; + if (message.time_created_ns != null && message.hasOwnProperty("time_created_ns")) + if (typeof message.time_created_ns === "number") + object.time_created_ns = options.longs === String ? String(message.time_created_ns) : message.time_created_ns; + else + object.time_created_ns = options.longs === String ? $util.Long.prototype.toString.call(message.time_created_ns) : options.longs === Number ? new $util.LongBits(message.time_created_ns.low >>> 0, message.time_created_ns.high >>> 0).toNumber() : message.time_created_ns; + if (message.semiSync != null && message.hasOwnProperty("semiSync")) + object.semiSync = message.semiSync; + return object; }; /** - * Converts this ResetReplicationParametersRequest to JSON. + * Converts this InitReplicaRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ResetReplicationParametersRequest + * @memberof tabletmanagerdata.InitReplicaRequest * @instance * @returns {Object.} JSON object */ - ResetReplicationParametersRequest.prototype.toJSON = function toJSON() { + InitReplicaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResetReplicationParametersRequest + * Gets the default type url for InitReplicaRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ResetReplicationParametersRequest + * @memberof tabletmanagerdata.InitReplicaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResetReplicationParametersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InitReplicaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ResetReplicationParametersRequest"; + return typeUrlPrefix + "/tabletmanagerdata.InitReplicaRequest"; }; - return ResetReplicationParametersRequest; + return InitReplicaRequest; })(); - tabletmanagerdata.ResetReplicationParametersResponse = (function() { + tabletmanagerdata.InitReplicaResponse = (function() { /** - * Properties of a ResetReplicationParametersResponse. + * Properties of an InitReplicaResponse. * @memberof tabletmanagerdata - * @interface IResetReplicationParametersResponse + * @interface IInitReplicaResponse */ /** - * Constructs a new ResetReplicationParametersResponse. + * Constructs a new InitReplicaResponse. * @memberof tabletmanagerdata - * @classdesc Represents a ResetReplicationParametersResponse. - * @implements IResetReplicationParametersResponse + * @classdesc Represents an InitReplicaResponse. + * @implements IInitReplicaResponse * @constructor - * @param {tabletmanagerdata.IResetReplicationParametersResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IInitReplicaResponse=} [properties] Properties to set */ - function ResetReplicationParametersResponse(properties) { + function InitReplicaResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69391,60 +70315,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new ResetReplicationParametersResponse instance using the specified properties. + * Creates a new InitReplicaResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ResetReplicationParametersResponse + * @memberof tabletmanagerdata.InitReplicaResponse * @static - * @param {tabletmanagerdata.IResetReplicationParametersResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ResetReplicationParametersResponse} ResetReplicationParametersResponse instance + * @param {tabletmanagerdata.IInitReplicaResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.InitReplicaResponse} InitReplicaResponse instance */ - ResetReplicationParametersResponse.create = function create(properties) { - return new ResetReplicationParametersResponse(properties); + InitReplicaResponse.create = function create(properties) { + return new InitReplicaResponse(properties); }; /** - * Encodes the specified ResetReplicationParametersResponse message. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersResponse.verify|verify} messages. + * Encodes the specified InitReplicaResponse message. Does not implicitly {@link tabletmanagerdata.InitReplicaResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ResetReplicationParametersResponse + * @memberof tabletmanagerdata.InitReplicaResponse * @static - * @param {tabletmanagerdata.IResetReplicationParametersResponse} message ResetReplicationParametersResponse message or plain object to encode + * @param {tabletmanagerdata.IInitReplicaResponse} message InitReplicaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetReplicationParametersResponse.encode = function encode(message, writer) { + InitReplicaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified ResetReplicationParametersResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersResponse.verify|verify} messages. + * Encodes the specified InitReplicaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.InitReplicaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ResetReplicationParametersResponse + * @memberof tabletmanagerdata.InitReplicaResponse * @static - * @param {tabletmanagerdata.IResetReplicationParametersResponse} message ResetReplicationParametersResponse message or plain object to encode + * @param {tabletmanagerdata.IInitReplicaResponse} message InitReplicaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetReplicationParametersResponse.encodeDelimited = function encodeDelimited(message, writer) { + InitReplicaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResetReplicationParametersResponse message from the specified reader or buffer. + * Decodes an InitReplicaResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ResetReplicationParametersResponse + * @memberof tabletmanagerdata.InitReplicaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ResetReplicationParametersResponse} ResetReplicationParametersResponse + * @returns {tabletmanagerdata.InitReplicaResponse} InitReplicaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetReplicationParametersResponse.decode = function decode(reader, length) { + InitReplicaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetReplicationParametersResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.InitReplicaResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -69457,108 +70381,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ResetReplicationParametersResponse message from the specified reader or buffer, length delimited. + * Decodes an InitReplicaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ResetReplicationParametersResponse + * @memberof tabletmanagerdata.InitReplicaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ResetReplicationParametersResponse} ResetReplicationParametersResponse + * @returns {tabletmanagerdata.InitReplicaResponse} InitReplicaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetReplicationParametersResponse.decodeDelimited = function decodeDelimited(reader) { + InitReplicaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResetReplicationParametersResponse message. + * Verifies an InitReplicaResponse message. * @function verify - * @memberof tabletmanagerdata.ResetReplicationParametersResponse + * @memberof tabletmanagerdata.InitReplicaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResetReplicationParametersResponse.verify = function verify(message) { + InitReplicaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a ResetReplicationParametersResponse message from a plain object. Also converts values to their respective internal types. + * Creates an InitReplicaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ResetReplicationParametersResponse + * @memberof tabletmanagerdata.InitReplicaResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ResetReplicationParametersResponse} ResetReplicationParametersResponse + * @returns {tabletmanagerdata.InitReplicaResponse} InitReplicaResponse */ - ResetReplicationParametersResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ResetReplicationParametersResponse) + InitReplicaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.InitReplicaResponse) return object; - return new $root.tabletmanagerdata.ResetReplicationParametersResponse(); + return new $root.tabletmanagerdata.InitReplicaResponse(); }; /** - * Creates a plain object from a ResetReplicationParametersResponse message. Also converts values to other types if specified. + * Creates a plain object from an InitReplicaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ResetReplicationParametersResponse + * @memberof tabletmanagerdata.InitReplicaResponse * @static - * @param {tabletmanagerdata.ResetReplicationParametersResponse} message ResetReplicationParametersResponse + * @param {tabletmanagerdata.InitReplicaResponse} message InitReplicaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResetReplicationParametersResponse.toObject = function toObject() { + InitReplicaResponse.toObject = function toObject() { return {}; }; /** - * Converts this ResetReplicationParametersResponse to JSON. + * Converts this InitReplicaResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ResetReplicationParametersResponse + * @memberof tabletmanagerdata.InitReplicaResponse * @instance * @returns {Object.} JSON object */ - ResetReplicationParametersResponse.prototype.toJSON = function toJSON() { + InitReplicaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResetReplicationParametersResponse + * Gets the default type url for InitReplicaResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ResetReplicationParametersResponse + * @memberof tabletmanagerdata.InitReplicaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResetReplicationParametersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InitReplicaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ResetReplicationParametersResponse"; + return typeUrlPrefix + "/tabletmanagerdata.InitReplicaResponse"; }; - return ResetReplicationParametersResponse; + return InitReplicaResponse; })(); - tabletmanagerdata.FullStatusRequest = (function() { + tabletmanagerdata.DemotePrimaryRequest = (function() { /** - * Properties of a FullStatusRequest. + * Properties of a DemotePrimaryRequest. * @memberof tabletmanagerdata - * @interface IFullStatusRequest + * @interface IDemotePrimaryRequest */ /** - * Constructs a new FullStatusRequest. + * Constructs a new DemotePrimaryRequest. * @memberof tabletmanagerdata - * @classdesc Represents a FullStatusRequest. - * @implements IFullStatusRequest + * @classdesc Represents a DemotePrimaryRequest. + * @implements IDemotePrimaryRequest * @constructor - * @param {tabletmanagerdata.IFullStatusRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IDemotePrimaryRequest=} [properties] Properties to set */ - function FullStatusRequest(properties) { + function DemotePrimaryRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69566,60 +70490,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new FullStatusRequest instance using the specified properties. + * Creates a new DemotePrimaryRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.FullStatusRequest + * @memberof tabletmanagerdata.DemotePrimaryRequest * @static - * @param {tabletmanagerdata.IFullStatusRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.FullStatusRequest} FullStatusRequest instance + * @param {tabletmanagerdata.IDemotePrimaryRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.DemotePrimaryRequest} DemotePrimaryRequest instance */ - FullStatusRequest.create = function create(properties) { - return new FullStatusRequest(properties); + DemotePrimaryRequest.create = function create(properties) { + return new DemotePrimaryRequest(properties); }; /** - * Encodes the specified FullStatusRequest message. Does not implicitly {@link tabletmanagerdata.FullStatusRequest.verify|verify} messages. + * Encodes the specified DemotePrimaryRequest message. Does not implicitly {@link tabletmanagerdata.DemotePrimaryRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.FullStatusRequest + * @memberof tabletmanagerdata.DemotePrimaryRequest * @static - * @param {tabletmanagerdata.IFullStatusRequest} message FullStatusRequest message or plain object to encode + * @param {tabletmanagerdata.IDemotePrimaryRequest} message DemotePrimaryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FullStatusRequest.encode = function encode(message, writer) { + DemotePrimaryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified FullStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.FullStatusRequest.verify|verify} messages. + * Encodes the specified DemotePrimaryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.DemotePrimaryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.FullStatusRequest + * @memberof tabletmanagerdata.DemotePrimaryRequest * @static - * @param {tabletmanagerdata.IFullStatusRequest} message FullStatusRequest message or plain object to encode + * @param {tabletmanagerdata.IDemotePrimaryRequest} message DemotePrimaryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FullStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { + DemotePrimaryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FullStatusRequest message from the specified reader or buffer. + * Decodes a DemotePrimaryRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.FullStatusRequest + * @memberof tabletmanagerdata.DemotePrimaryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.FullStatusRequest} FullStatusRequest + * @returns {tabletmanagerdata.DemotePrimaryRequest} DemotePrimaryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FullStatusRequest.decode = function decode(reader, length) { + DemotePrimaryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.FullStatusRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DemotePrimaryRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -69632,109 +70556,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a FullStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a DemotePrimaryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.FullStatusRequest + * @memberof tabletmanagerdata.DemotePrimaryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.FullStatusRequest} FullStatusRequest + * @returns {tabletmanagerdata.DemotePrimaryRequest} DemotePrimaryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FullStatusRequest.decodeDelimited = function decodeDelimited(reader) { + DemotePrimaryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FullStatusRequest message. + * Verifies a DemotePrimaryRequest message. * @function verify - * @memberof tabletmanagerdata.FullStatusRequest + * @memberof tabletmanagerdata.DemotePrimaryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FullStatusRequest.verify = function verify(message) { + DemotePrimaryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a FullStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DemotePrimaryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.FullStatusRequest + * @memberof tabletmanagerdata.DemotePrimaryRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.FullStatusRequest} FullStatusRequest + * @returns {tabletmanagerdata.DemotePrimaryRequest} DemotePrimaryRequest */ - FullStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.FullStatusRequest) + DemotePrimaryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.DemotePrimaryRequest) return object; - return new $root.tabletmanagerdata.FullStatusRequest(); + return new $root.tabletmanagerdata.DemotePrimaryRequest(); }; /** - * Creates a plain object from a FullStatusRequest message. Also converts values to other types if specified. + * Creates a plain object from a DemotePrimaryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.FullStatusRequest + * @memberof tabletmanagerdata.DemotePrimaryRequest * @static - * @param {tabletmanagerdata.FullStatusRequest} message FullStatusRequest + * @param {tabletmanagerdata.DemotePrimaryRequest} message DemotePrimaryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FullStatusRequest.toObject = function toObject() { + DemotePrimaryRequest.toObject = function toObject() { return {}; }; /** - * Converts this FullStatusRequest to JSON. + * Converts this DemotePrimaryRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.FullStatusRequest + * @memberof tabletmanagerdata.DemotePrimaryRequest * @instance * @returns {Object.} JSON object */ - FullStatusRequest.prototype.toJSON = function toJSON() { + DemotePrimaryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FullStatusRequest + * Gets the default type url for DemotePrimaryRequest * @function getTypeUrl - * @memberof tabletmanagerdata.FullStatusRequest + * @memberof tabletmanagerdata.DemotePrimaryRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FullStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DemotePrimaryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.FullStatusRequest"; + return typeUrlPrefix + "/tabletmanagerdata.DemotePrimaryRequest"; }; - return FullStatusRequest; + return DemotePrimaryRequest; })(); - tabletmanagerdata.FullStatusResponse = (function() { + tabletmanagerdata.DemotePrimaryResponse = (function() { /** - * Properties of a FullStatusResponse. + * Properties of a DemotePrimaryResponse. * @memberof tabletmanagerdata - * @interface IFullStatusResponse - * @property {replicationdata.IFullStatus|null} [status] FullStatusResponse status + * @interface IDemotePrimaryResponse + * @property {replicationdata.IPrimaryStatus|null} [primary_status] DemotePrimaryResponse primary_status */ /** - * Constructs a new FullStatusResponse. + * Constructs a new DemotePrimaryResponse. * @memberof tabletmanagerdata - * @classdesc Represents a FullStatusResponse. - * @implements IFullStatusResponse + * @classdesc Represents a DemotePrimaryResponse. + * @implements IDemotePrimaryResponse * @constructor - * @param {tabletmanagerdata.IFullStatusResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IDemotePrimaryResponse=} [properties] Properties to set */ - function FullStatusResponse(properties) { + function DemotePrimaryResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69742,75 +70666,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * FullStatusResponse status. - * @member {replicationdata.IFullStatus|null|undefined} status - * @memberof tabletmanagerdata.FullStatusResponse + * DemotePrimaryResponse primary_status. + * @member {replicationdata.IPrimaryStatus|null|undefined} primary_status + * @memberof tabletmanagerdata.DemotePrimaryResponse * @instance */ - FullStatusResponse.prototype.status = null; + DemotePrimaryResponse.prototype.primary_status = null; /** - * Creates a new FullStatusResponse instance using the specified properties. + * Creates a new DemotePrimaryResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.FullStatusResponse + * @memberof tabletmanagerdata.DemotePrimaryResponse * @static - * @param {tabletmanagerdata.IFullStatusResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.FullStatusResponse} FullStatusResponse instance + * @param {tabletmanagerdata.IDemotePrimaryResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.DemotePrimaryResponse} DemotePrimaryResponse instance */ - FullStatusResponse.create = function create(properties) { - return new FullStatusResponse(properties); + DemotePrimaryResponse.create = function create(properties) { + return new DemotePrimaryResponse(properties); }; /** - * Encodes the specified FullStatusResponse message. Does not implicitly {@link tabletmanagerdata.FullStatusResponse.verify|verify} messages. + * Encodes the specified DemotePrimaryResponse message. Does not implicitly {@link tabletmanagerdata.DemotePrimaryResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.FullStatusResponse + * @memberof tabletmanagerdata.DemotePrimaryResponse * @static - * @param {tabletmanagerdata.IFullStatusResponse} message FullStatusResponse message or plain object to encode + * @param {tabletmanagerdata.IDemotePrimaryResponse} message DemotePrimaryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FullStatusResponse.encode = function encode(message, writer) { + DemotePrimaryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.replicationdata.FullStatus.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.primary_status != null && Object.hasOwnProperty.call(message, "primary_status")) + $root.replicationdata.PrimaryStatus.encode(message.primary_status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified FullStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.FullStatusResponse.verify|verify} messages. + * Encodes the specified DemotePrimaryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.DemotePrimaryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.FullStatusResponse + * @memberof tabletmanagerdata.DemotePrimaryResponse * @static - * @param {tabletmanagerdata.IFullStatusResponse} message FullStatusResponse message or plain object to encode + * @param {tabletmanagerdata.IDemotePrimaryResponse} message DemotePrimaryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FullStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { + DemotePrimaryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FullStatusResponse message from the specified reader or buffer. + * Decodes a DemotePrimaryResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.FullStatusResponse + * @memberof tabletmanagerdata.DemotePrimaryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.FullStatusResponse} FullStatusResponse + * @returns {tabletmanagerdata.DemotePrimaryResponse} DemotePrimaryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FullStatusResponse.decode = function decode(reader, length) { + DemotePrimaryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.FullStatusResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DemotePrimaryResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.status = $root.replicationdata.FullStatus.decode(reader, reader.uint32()); + case 2: { + message.primary_status = $root.replicationdata.PrimaryStatus.decode(reader, reader.uint32()); break; } default: @@ -69822,132 +70746,127 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a FullStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a DemotePrimaryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.FullStatusResponse + * @memberof tabletmanagerdata.DemotePrimaryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.FullStatusResponse} FullStatusResponse + * @returns {tabletmanagerdata.DemotePrimaryResponse} DemotePrimaryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FullStatusResponse.decodeDelimited = function decodeDelimited(reader) { + DemotePrimaryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FullStatusResponse message. + * Verifies a DemotePrimaryResponse message. * @function verify - * @memberof tabletmanagerdata.FullStatusResponse + * @memberof tabletmanagerdata.DemotePrimaryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FullStatusResponse.verify = function verify(message) { + DemotePrimaryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - let error = $root.replicationdata.FullStatus.verify(message.status); + if (message.primary_status != null && message.hasOwnProperty("primary_status")) { + let error = $root.replicationdata.PrimaryStatus.verify(message.primary_status); if (error) - return "status." + error; + return "primary_status." + error; } return null; }; /** - * Creates a FullStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DemotePrimaryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.FullStatusResponse + * @memberof tabletmanagerdata.DemotePrimaryResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.FullStatusResponse} FullStatusResponse + * @returns {tabletmanagerdata.DemotePrimaryResponse} DemotePrimaryResponse */ - FullStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.FullStatusResponse) + DemotePrimaryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.DemotePrimaryResponse) return object; - let message = new $root.tabletmanagerdata.FullStatusResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".tabletmanagerdata.FullStatusResponse.status: object expected"); - message.status = $root.replicationdata.FullStatus.fromObject(object.status); + let message = new $root.tabletmanagerdata.DemotePrimaryResponse(); + if (object.primary_status != null) { + if (typeof object.primary_status !== "object") + throw TypeError(".tabletmanagerdata.DemotePrimaryResponse.primary_status: object expected"); + message.primary_status = $root.replicationdata.PrimaryStatus.fromObject(object.primary_status); } return message; }; /** - * Creates a plain object from a FullStatusResponse message. Also converts values to other types if specified. + * Creates a plain object from a DemotePrimaryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.FullStatusResponse + * @memberof tabletmanagerdata.DemotePrimaryResponse * @static - * @param {tabletmanagerdata.FullStatusResponse} message FullStatusResponse + * @param {tabletmanagerdata.DemotePrimaryResponse} message DemotePrimaryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FullStatusResponse.toObject = function toObject(message, options) { + DemotePrimaryResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.replicationdata.FullStatus.toObject(message.status, options); + object.primary_status = null; + if (message.primary_status != null && message.hasOwnProperty("primary_status")) + object.primary_status = $root.replicationdata.PrimaryStatus.toObject(message.primary_status, options); return object; }; /** - * Converts this FullStatusResponse to JSON. + * Converts this DemotePrimaryResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.FullStatusResponse + * @memberof tabletmanagerdata.DemotePrimaryResponse * @instance * @returns {Object.} JSON object */ - FullStatusResponse.prototype.toJSON = function toJSON() { + DemotePrimaryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FullStatusResponse + * Gets the default type url for DemotePrimaryResponse * @function getTypeUrl - * @memberof tabletmanagerdata.FullStatusResponse + * @memberof tabletmanagerdata.DemotePrimaryResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FullStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DemotePrimaryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.FullStatusResponse"; + return typeUrlPrefix + "/tabletmanagerdata.DemotePrimaryResponse"; }; - return FullStatusResponse; + return DemotePrimaryResponse; })(); - tabletmanagerdata.SetReplicationSourceRequest = (function() { + tabletmanagerdata.UndoDemotePrimaryRequest = (function() { /** - * Properties of a SetReplicationSourceRequest. + * Properties of an UndoDemotePrimaryRequest. * @memberof tabletmanagerdata - * @interface ISetReplicationSourceRequest - * @property {topodata.ITabletAlias|null} [parent] SetReplicationSourceRequest parent - * @property {number|Long|null} [time_created_ns] SetReplicationSourceRequest time_created_ns - * @property {boolean|null} [force_start_replication] SetReplicationSourceRequest force_start_replication - * @property {string|null} [wait_position] SetReplicationSourceRequest wait_position - * @property {boolean|null} [semiSync] SetReplicationSourceRequest semiSync - * @property {number|null} [heartbeat_interval] SetReplicationSourceRequest heartbeat_interval + * @interface IUndoDemotePrimaryRequest + * @property {boolean|null} [semiSync] UndoDemotePrimaryRequest semiSync */ /** - * Constructs a new SetReplicationSourceRequest. + * Constructs a new UndoDemotePrimaryRequest. * @memberof tabletmanagerdata - * @classdesc Represents a SetReplicationSourceRequest. - * @implements ISetReplicationSourceRequest + * @classdesc Represents an UndoDemotePrimaryRequest. + * @implements IUndoDemotePrimaryRequest * @constructor - * @param {tabletmanagerdata.ISetReplicationSourceRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IUndoDemotePrimaryRequest=} [properties] Properties to set */ - function SetReplicationSourceRequest(properties) { + function UndoDemotePrimaryRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69955,147 +70874,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * SetReplicationSourceRequest parent. - * @member {topodata.ITabletAlias|null|undefined} parent - * @memberof tabletmanagerdata.SetReplicationSourceRequest - * @instance - */ - SetReplicationSourceRequest.prototype.parent = null; - - /** - * SetReplicationSourceRequest time_created_ns. - * @member {number|Long} time_created_ns - * @memberof tabletmanagerdata.SetReplicationSourceRequest - * @instance - */ - SetReplicationSourceRequest.prototype.time_created_ns = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * SetReplicationSourceRequest force_start_replication. - * @member {boolean} force_start_replication - * @memberof tabletmanagerdata.SetReplicationSourceRequest - * @instance - */ - SetReplicationSourceRequest.prototype.force_start_replication = false; - - /** - * SetReplicationSourceRequest wait_position. - * @member {string} wait_position - * @memberof tabletmanagerdata.SetReplicationSourceRequest - * @instance - */ - SetReplicationSourceRequest.prototype.wait_position = ""; - - /** - * SetReplicationSourceRequest semiSync. + * UndoDemotePrimaryRequest semiSync. * @member {boolean} semiSync - * @memberof tabletmanagerdata.SetReplicationSourceRequest - * @instance - */ - SetReplicationSourceRequest.prototype.semiSync = false; - - /** - * SetReplicationSourceRequest heartbeat_interval. - * @member {number} heartbeat_interval - * @memberof tabletmanagerdata.SetReplicationSourceRequest + * @memberof tabletmanagerdata.UndoDemotePrimaryRequest * @instance */ - SetReplicationSourceRequest.prototype.heartbeat_interval = 0; + UndoDemotePrimaryRequest.prototype.semiSync = false; /** - * Creates a new SetReplicationSourceRequest instance using the specified properties. + * Creates a new UndoDemotePrimaryRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.SetReplicationSourceRequest + * @memberof tabletmanagerdata.UndoDemotePrimaryRequest * @static - * @param {tabletmanagerdata.ISetReplicationSourceRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.SetReplicationSourceRequest} SetReplicationSourceRequest instance + * @param {tabletmanagerdata.IUndoDemotePrimaryRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.UndoDemotePrimaryRequest} UndoDemotePrimaryRequest instance */ - SetReplicationSourceRequest.create = function create(properties) { - return new SetReplicationSourceRequest(properties); + UndoDemotePrimaryRequest.create = function create(properties) { + return new UndoDemotePrimaryRequest(properties); }; /** - * Encodes the specified SetReplicationSourceRequest message. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceRequest.verify|verify} messages. + * Encodes the specified UndoDemotePrimaryRequest message. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SetReplicationSourceRequest + * @memberof tabletmanagerdata.UndoDemotePrimaryRequest * @static - * @param {tabletmanagerdata.ISetReplicationSourceRequest} message SetReplicationSourceRequest message or plain object to encode + * @param {tabletmanagerdata.IUndoDemotePrimaryRequest} message UndoDemotePrimaryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetReplicationSourceRequest.encode = function encode(message, writer) { + UndoDemotePrimaryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - $root.topodata.TabletAlias.encode(message.parent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.time_created_ns != null && Object.hasOwnProperty.call(message, "time_created_ns")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.time_created_ns); - if (message.force_start_replication != null && Object.hasOwnProperty.call(message, "force_start_replication")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force_start_replication); - if (message.wait_position != null && Object.hasOwnProperty.call(message, "wait_position")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.wait_position); if (message.semiSync != null && Object.hasOwnProperty.call(message, "semiSync")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.semiSync); - if (message.heartbeat_interval != null && Object.hasOwnProperty.call(message, "heartbeat_interval")) - writer.uint32(/* id 6, wireType 1 =*/49).double(message.heartbeat_interval); + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.semiSync); return writer; }; /** - * Encodes the specified SetReplicationSourceRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceRequest.verify|verify} messages. + * Encodes the specified UndoDemotePrimaryRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SetReplicationSourceRequest + * @memberof tabletmanagerdata.UndoDemotePrimaryRequest * @static - * @param {tabletmanagerdata.ISetReplicationSourceRequest} message SetReplicationSourceRequest message or plain object to encode + * @param {tabletmanagerdata.IUndoDemotePrimaryRequest} message UndoDemotePrimaryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetReplicationSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + UndoDemotePrimaryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetReplicationSourceRequest message from the specified reader or buffer. + * Decodes an UndoDemotePrimaryRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SetReplicationSourceRequest + * @memberof tabletmanagerdata.UndoDemotePrimaryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.SetReplicationSourceRequest} SetReplicationSourceRequest + * @returns {tabletmanagerdata.UndoDemotePrimaryRequest} UndoDemotePrimaryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetReplicationSourceRequest.decode = function decode(reader, length) { + UndoDemotePrimaryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReplicationSourceRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UndoDemotePrimaryRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 2: { - message.time_created_ns = reader.int64(); - break; - } - case 3: { - message.force_start_replication = reader.bool(); - break; - } - case 4: { - message.wait_position = reader.string(); - break; - } - case 5: { message.semiSync = reader.bool(); break; } - case 6: { - message.heartbeat_interval = reader.double(); - break; - } default: reader.skipType(tag & 7); break; @@ -70105,181 +70954,121 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a SetReplicationSourceRequest message from the specified reader or buffer, length delimited. + * Decodes an UndoDemotePrimaryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.SetReplicationSourceRequest + * @memberof tabletmanagerdata.UndoDemotePrimaryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SetReplicationSourceRequest} SetReplicationSourceRequest + * @returns {tabletmanagerdata.UndoDemotePrimaryRequest} UndoDemotePrimaryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetReplicationSourceRequest.decodeDelimited = function decodeDelimited(reader) { + UndoDemotePrimaryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetReplicationSourceRequest message. + * Verifies an UndoDemotePrimaryRequest message. * @function verify - * @memberof tabletmanagerdata.SetReplicationSourceRequest + * @memberof tabletmanagerdata.UndoDemotePrimaryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetReplicationSourceRequest.verify = function verify(message) { + UndoDemotePrimaryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) { - let error = $root.topodata.TabletAlias.verify(message.parent); - if (error) - return "parent." + error; - } - if (message.time_created_ns != null && message.hasOwnProperty("time_created_ns")) - if (!$util.isInteger(message.time_created_ns) && !(message.time_created_ns && $util.isInteger(message.time_created_ns.low) && $util.isInteger(message.time_created_ns.high))) - return "time_created_ns: integer|Long expected"; - if (message.force_start_replication != null && message.hasOwnProperty("force_start_replication")) - if (typeof message.force_start_replication !== "boolean") - return "force_start_replication: boolean expected"; - if (message.wait_position != null && message.hasOwnProperty("wait_position")) - if (!$util.isString(message.wait_position)) - return "wait_position: string expected"; if (message.semiSync != null && message.hasOwnProperty("semiSync")) if (typeof message.semiSync !== "boolean") return "semiSync: boolean expected"; - if (message.heartbeat_interval != null && message.hasOwnProperty("heartbeat_interval")) - if (typeof message.heartbeat_interval !== "number") - return "heartbeat_interval: number expected"; return null; }; /** - * Creates a SetReplicationSourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UndoDemotePrimaryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.SetReplicationSourceRequest + * @memberof tabletmanagerdata.UndoDemotePrimaryRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SetReplicationSourceRequest} SetReplicationSourceRequest + * @returns {tabletmanagerdata.UndoDemotePrimaryRequest} UndoDemotePrimaryRequest */ - SetReplicationSourceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SetReplicationSourceRequest) + UndoDemotePrimaryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.UndoDemotePrimaryRequest) return object; - let message = new $root.tabletmanagerdata.SetReplicationSourceRequest(); - if (object.parent != null) { - if (typeof object.parent !== "object") - throw TypeError(".tabletmanagerdata.SetReplicationSourceRequest.parent: object expected"); - message.parent = $root.topodata.TabletAlias.fromObject(object.parent); - } - if (object.time_created_ns != null) - if ($util.Long) - (message.time_created_ns = $util.Long.fromValue(object.time_created_ns)).unsigned = false; - else if (typeof object.time_created_ns === "string") - message.time_created_ns = parseInt(object.time_created_ns, 10); - else if (typeof object.time_created_ns === "number") - message.time_created_ns = object.time_created_ns; - else if (typeof object.time_created_ns === "object") - message.time_created_ns = new $util.LongBits(object.time_created_ns.low >>> 0, object.time_created_ns.high >>> 0).toNumber(); - if (object.force_start_replication != null) - message.force_start_replication = Boolean(object.force_start_replication); - if (object.wait_position != null) - message.wait_position = String(object.wait_position); + let message = new $root.tabletmanagerdata.UndoDemotePrimaryRequest(); if (object.semiSync != null) message.semiSync = Boolean(object.semiSync); - if (object.heartbeat_interval != null) - message.heartbeat_interval = Number(object.heartbeat_interval); return message; }; /** - * Creates a plain object from a SetReplicationSourceRequest message. Also converts values to other types if specified. + * Creates a plain object from an UndoDemotePrimaryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.SetReplicationSourceRequest + * @memberof tabletmanagerdata.UndoDemotePrimaryRequest * @static - * @param {tabletmanagerdata.SetReplicationSourceRequest} message SetReplicationSourceRequest + * @param {tabletmanagerdata.UndoDemotePrimaryRequest} message UndoDemotePrimaryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetReplicationSourceRequest.toObject = function toObject(message, options) { + UndoDemotePrimaryRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.parent = null; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.time_created_ns = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.time_created_ns = options.longs === String ? "0" : 0; - object.force_start_replication = false; - object.wait_position = ""; + if (options.defaults) object.semiSync = false; - object.heartbeat_interval = 0; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = $root.topodata.TabletAlias.toObject(message.parent, options); - if (message.time_created_ns != null && message.hasOwnProperty("time_created_ns")) - if (typeof message.time_created_ns === "number") - object.time_created_ns = options.longs === String ? String(message.time_created_ns) : message.time_created_ns; - else - object.time_created_ns = options.longs === String ? $util.Long.prototype.toString.call(message.time_created_ns) : options.longs === Number ? new $util.LongBits(message.time_created_ns.low >>> 0, message.time_created_ns.high >>> 0).toNumber() : message.time_created_ns; - if (message.force_start_replication != null && message.hasOwnProperty("force_start_replication")) - object.force_start_replication = message.force_start_replication; - if (message.wait_position != null && message.hasOwnProperty("wait_position")) - object.wait_position = message.wait_position; if (message.semiSync != null && message.hasOwnProperty("semiSync")) object.semiSync = message.semiSync; - if (message.heartbeat_interval != null && message.hasOwnProperty("heartbeat_interval")) - object.heartbeat_interval = options.json && !isFinite(message.heartbeat_interval) ? String(message.heartbeat_interval) : message.heartbeat_interval; return object; }; /** - * Converts this SetReplicationSourceRequest to JSON. + * Converts this UndoDemotePrimaryRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.SetReplicationSourceRequest + * @memberof tabletmanagerdata.UndoDemotePrimaryRequest * @instance * @returns {Object.} JSON object */ - SetReplicationSourceRequest.prototype.toJSON = function toJSON() { + UndoDemotePrimaryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetReplicationSourceRequest + * Gets the default type url for UndoDemotePrimaryRequest * @function getTypeUrl - * @memberof tabletmanagerdata.SetReplicationSourceRequest + * @memberof tabletmanagerdata.UndoDemotePrimaryRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetReplicationSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UndoDemotePrimaryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.SetReplicationSourceRequest"; + return typeUrlPrefix + "/tabletmanagerdata.UndoDemotePrimaryRequest"; }; - return SetReplicationSourceRequest; + return UndoDemotePrimaryRequest; })(); - tabletmanagerdata.SetReplicationSourceResponse = (function() { + tabletmanagerdata.UndoDemotePrimaryResponse = (function() { /** - * Properties of a SetReplicationSourceResponse. + * Properties of an UndoDemotePrimaryResponse. * @memberof tabletmanagerdata - * @interface ISetReplicationSourceResponse + * @interface IUndoDemotePrimaryResponse */ /** - * Constructs a new SetReplicationSourceResponse. + * Constructs a new UndoDemotePrimaryResponse. * @memberof tabletmanagerdata - * @classdesc Represents a SetReplicationSourceResponse. - * @implements ISetReplicationSourceResponse + * @classdesc Represents an UndoDemotePrimaryResponse. + * @implements IUndoDemotePrimaryResponse * @constructor - * @param {tabletmanagerdata.ISetReplicationSourceResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IUndoDemotePrimaryResponse=} [properties] Properties to set */ - function SetReplicationSourceResponse(properties) { + function UndoDemotePrimaryResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70287,60 +71076,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new SetReplicationSourceResponse instance using the specified properties. + * Creates a new UndoDemotePrimaryResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.SetReplicationSourceResponse + * @memberof tabletmanagerdata.UndoDemotePrimaryResponse * @static - * @param {tabletmanagerdata.ISetReplicationSourceResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.SetReplicationSourceResponse} SetReplicationSourceResponse instance + * @param {tabletmanagerdata.IUndoDemotePrimaryResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.UndoDemotePrimaryResponse} UndoDemotePrimaryResponse instance */ - SetReplicationSourceResponse.create = function create(properties) { - return new SetReplicationSourceResponse(properties); + UndoDemotePrimaryResponse.create = function create(properties) { + return new UndoDemotePrimaryResponse(properties); }; /** - * Encodes the specified SetReplicationSourceResponse message. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceResponse.verify|verify} messages. + * Encodes the specified UndoDemotePrimaryResponse message. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SetReplicationSourceResponse + * @memberof tabletmanagerdata.UndoDemotePrimaryResponse * @static - * @param {tabletmanagerdata.ISetReplicationSourceResponse} message SetReplicationSourceResponse message or plain object to encode + * @param {tabletmanagerdata.IUndoDemotePrimaryResponse} message UndoDemotePrimaryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetReplicationSourceResponse.encode = function encode(message, writer) { + UndoDemotePrimaryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified SetReplicationSourceResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceResponse.verify|verify} messages. + * Encodes the specified UndoDemotePrimaryResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UndoDemotePrimaryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SetReplicationSourceResponse + * @memberof tabletmanagerdata.UndoDemotePrimaryResponse * @static - * @param {tabletmanagerdata.ISetReplicationSourceResponse} message SetReplicationSourceResponse message or plain object to encode + * @param {tabletmanagerdata.IUndoDemotePrimaryResponse} message UndoDemotePrimaryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetReplicationSourceResponse.encodeDelimited = function encodeDelimited(message, writer) { + UndoDemotePrimaryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetReplicationSourceResponse message from the specified reader or buffer. + * Decodes an UndoDemotePrimaryResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SetReplicationSourceResponse + * @memberof tabletmanagerdata.UndoDemotePrimaryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.SetReplicationSourceResponse} SetReplicationSourceResponse + * @returns {tabletmanagerdata.UndoDemotePrimaryResponse} UndoDemotePrimaryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetReplicationSourceResponse.decode = function decode(reader, length) { + UndoDemotePrimaryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReplicationSourceResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UndoDemotePrimaryResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -70353,109 +71142,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a SetReplicationSourceResponse message from the specified reader or buffer, length delimited. + * Decodes an UndoDemotePrimaryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.SetReplicationSourceResponse + * @memberof tabletmanagerdata.UndoDemotePrimaryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SetReplicationSourceResponse} SetReplicationSourceResponse + * @returns {tabletmanagerdata.UndoDemotePrimaryResponse} UndoDemotePrimaryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetReplicationSourceResponse.decodeDelimited = function decodeDelimited(reader) { + UndoDemotePrimaryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetReplicationSourceResponse message. + * Verifies an UndoDemotePrimaryResponse message. * @function verify - * @memberof tabletmanagerdata.SetReplicationSourceResponse + * @memberof tabletmanagerdata.UndoDemotePrimaryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetReplicationSourceResponse.verify = function verify(message) { + UndoDemotePrimaryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a SetReplicationSourceResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UndoDemotePrimaryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.SetReplicationSourceResponse + * @memberof tabletmanagerdata.UndoDemotePrimaryResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SetReplicationSourceResponse} SetReplicationSourceResponse + * @returns {tabletmanagerdata.UndoDemotePrimaryResponse} UndoDemotePrimaryResponse */ - SetReplicationSourceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SetReplicationSourceResponse) + UndoDemotePrimaryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.UndoDemotePrimaryResponse) return object; - return new $root.tabletmanagerdata.SetReplicationSourceResponse(); + return new $root.tabletmanagerdata.UndoDemotePrimaryResponse(); }; /** - * Creates a plain object from a SetReplicationSourceResponse message. Also converts values to other types if specified. + * Creates a plain object from an UndoDemotePrimaryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.SetReplicationSourceResponse + * @memberof tabletmanagerdata.UndoDemotePrimaryResponse * @static - * @param {tabletmanagerdata.SetReplicationSourceResponse} message SetReplicationSourceResponse + * @param {tabletmanagerdata.UndoDemotePrimaryResponse} message UndoDemotePrimaryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetReplicationSourceResponse.toObject = function toObject() { + UndoDemotePrimaryResponse.toObject = function toObject() { return {}; }; /** - * Converts this SetReplicationSourceResponse to JSON. + * Converts this UndoDemotePrimaryResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.SetReplicationSourceResponse + * @memberof tabletmanagerdata.UndoDemotePrimaryResponse * @instance * @returns {Object.} JSON object */ - SetReplicationSourceResponse.prototype.toJSON = function toJSON() { + UndoDemotePrimaryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetReplicationSourceResponse + * Gets the default type url for UndoDemotePrimaryResponse * @function getTypeUrl - * @memberof tabletmanagerdata.SetReplicationSourceResponse + * @memberof tabletmanagerdata.UndoDemotePrimaryResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetReplicationSourceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UndoDemotePrimaryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.SetReplicationSourceResponse"; + return typeUrlPrefix + "/tabletmanagerdata.UndoDemotePrimaryResponse"; }; - return SetReplicationSourceResponse; + return UndoDemotePrimaryResponse; })(); - tabletmanagerdata.ReplicaWasRestartedRequest = (function() { + tabletmanagerdata.ReplicaWasPromotedRequest = (function() { /** - * Properties of a ReplicaWasRestartedRequest. + * Properties of a ReplicaWasPromotedRequest. * @memberof tabletmanagerdata - * @interface IReplicaWasRestartedRequest - * @property {topodata.ITabletAlias|null} [parent] ReplicaWasRestartedRequest parent + * @interface IReplicaWasPromotedRequest */ /** - * Constructs a new ReplicaWasRestartedRequest. + * Constructs a new ReplicaWasPromotedRequest. * @memberof tabletmanagerdata - * @classdesc Represents a ReplicaWasRestartedRequest. - * @implements IReplicaWasRestartedRequest + * @classdesc Represents a ReplicaWasPromotedRequest. + * @implements IReplicaWasPromotedRequest * @constructor - * @param {tabletmanagerdata.IReplicaWasRestartedRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IReplicaWasPromotedRequest=} [properties] Properties to set */ - function ReplicaWasRestartedRequest(properties) { + function ReplicaWasPromotedRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70463,77 +71251,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ReplicaWasRestartedRequest parent. - * @member {topodata.ITabletAlias|null|undefined} parent - * @memberof tabletmanagerdata.ReplicaWasRestartedRequest - * @instance - */ - ReplicaWasRestartedRequest.prototype.parent = null; - - /** - * Creates a new ReplicaWasRestartedRequest instance using the specified properties. + * Creates a new ReplicaWasPromotedRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReplicaWasRestartedRequest + * @memberof tabletmanagerdata.ReplicaWasPromotedRequest * @static - * @param {tabletmanagerdata.IReplicaWasRestartedRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ReplicaWasRestartedRequest} ReplicaWasRestartedRequest instance + * @param {tabletmanagerdata.IReplicaWasPromotedRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ReplicaWasPromotedRequest} ReplicaWasPromotedRequest instance */ - ReplicaWasRestartedRequest.create = function create(properties) { - return new ReplicaWasRestartedRequest(properties); + ReplicaWasPromotedRequest.create = function create(properties) { + return new ReplicaWasPromotedRequest(properties); }; /** - * Encodes the specified ReplicaWasRestartedRequest message. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedRequest.verify|verify} messages. + * Encodes the specified ReplicaWasPromotedRequest message. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReplicaWasRestartedRequest + * @memberof tabletmanagerdata.ReplicaWasPromotedRequest * @static - * @param {tabletmanagerdata.IReplicaWasRestartedRequest} message ReplicaWasRestartedRequest message or plain object to encode + * @param {tabletmanagerdata.IReplicaWasPromotedRequest} message ReplicaWasPromotedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReplicaWasRestartedRequest.encode = function encode(message, writer) { + ReplicaWasPromotedRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - $root.topodata.TabletAlias.encode(message.parent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReplicaWasRestartedRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedRequest.verify|verify} messages. + * Encodes the specified ReplicaWasPromotedRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReplicaWasRestartedRequest + * @memberof tabletmanagerdata.ReplicaWasPromotedRequest * @static - * @param {tabletmanagerdata.IReplicaWasRestartedRequest} message ReplicaWasRestartedRequest message or plain object to encode + * @param {tabletmanagerdata.IReplicaWasPromotedRequest} message ReplicaWasPromotedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReplicaWasRestartedRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReplicaWasPromotedRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReplicaWasRestartedRequest message from the specified reader or buffer. + * Decodes a ReplicaWasPromotedRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReplicaWasRestartedRequest + * @memberof tabletmanagerdata.ReplicaWasPromotedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReplicaWasRestartedRequest} ReplicaWasRestartedRequest + * @returns {tabletmanagerdata.ReplicaWasPromotedRequest} ReplicaWasPromotedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReplicaWasRestartedRequest.decode = function decode(reader, length) { + ReplicaWasPromotedRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReplicaWasRestartedRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReplicaWasPromotedRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.parent = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -70543,126 +71317,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReplicaWasRestartedRequest message from the specified reader or buffer, length delimited. + * Decodes a ReplicaWasPromotedRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReplicaWasRestartedRequest + * @memberof tabletmanagerdata.ReplicaWasPromotedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReplicaWasRestartedRequest} ReplicaWasRestartedRequest + * @returns {tabletmanagerdata.ReplicaWasPromotedRequest} ReplicaWasPromotedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReplicaWasRestartedRequest.decodeDelimited = function decodeDelimited(reader) { + ReplicaWasPromotedRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReplicaWasRestartedRequest message. + * Verifies a ReplicaWasPromotedRequest message. * @function verify - * @memberof tabletmanagerdata.ReplicaWasRestartedRequest + * @memberof tabletmanagerdata.ReplicaWasPromotedRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReplicaWasRestartedRequest.verify = function verify(message) { + ReplicaWasPromotedRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) { - let error = $root.topodata.TabletAlias.verify(message.parent); - if (error) - return "parent." + error; - } return null; }; /** - * Creates a ReplicaWasRestartedRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReplicaWasPromotedRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ReplicaWasRestartedRequest + * @memberof tabletmanagerdata.ReplicaWasPromotedRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReplicaWasRestartedRequest} ReplicaWasRestartedRequest + * @returns {tabletmanagerdata.ReplicaWasPromotedRequest} ReplicaWasPromotedRequest */ - ReplicaWasRestartedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReplicaWasRestartedRequest) + ReplicaWasPromotedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReplicaWasPromotedRequest) return object; - let message = new $root.tabletmanagerdata.ReplicaWasRestartedRequest(); - if (object.parent != null) { - if (typeof object.parent !== "object") - throw TypeError(".tabletmanagerdata.ReplicaWasRestartedRequest.parent: object expected"); - message.parent = $root.topodata.TabletAlias.fromObject(object.parent); - } - return message; + return new $root.tabletmanagerdata.ReplicaWasPromotedRequest(); }; /** - * Creates a plain object from a ReplicaWasRestartedRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReplicaWasPromotedRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ReplicaWasRestartedRequest + * @memberof tabletmanagerdata.ReplicaWasPromotedRequest * @static - * @param {tabletmanagerdata.ReplicaWasRestartedRequest} message ReplicaWasRestartedRequest + * @param {tabletmanagerdata.ReplicaWasPromotedRequest} message ReplicaWasPromotedRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReplicaWasRestartedRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.parent = null; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = $root.topodata.TabletAlias.toObject(message.parent, options); - return object; + ReplicaWasPromotedRequest.toObject = function toObject() { + return {}; }; /** - * Converts this ReplicaWasRestartedRequest to JSON. + * Converts this ReplicaWasPromotedRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReplicaWasRestartedRequest + * @memberof tabletmanagerdata.ReplicaWasPromotedRequest * @instance * @returns {Object.} JSON object */ - ReplicaWasRestartedRequest.prototype.toJSON = function toJSON() { + ReplicaWasPromotedRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReplicaWasRestartedRequest + * Gets the default type url for ReplicaWasPromotedRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ReplicaWasRestartedRequest + * @memberof tabletmanagerdata.ReplicaWasPromotedRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReplicaWasRestartedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReplicaWasPromotedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReplicaWasRestartedRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ReplicaWasPromotedRequest"; }; - return ReplicaWasRestartedRequest; + return ReplicaWasPromotedRequest; })(); - tabletmanagerdata.ReplicaWasRestartedResponse = (function() { + tabletmanagerdata.ReplicaWasPromotedResponse = (function() { /** - * Properties of a ReplicaWasRestartedResponse. + * Properties of a ReplicaWasPromotedResponse. * @memberof tabletmanagerdata - * @interface IReplicaWasRestartedResponse + * @interface IReplicaWasPromotedResponse */ /** - * Constructs a new ReplicaWasRestartedResponse. + * Constructs a new ReplicaWasPromotedResponse. * @memberof tabletmanagerdata - * @classdesc Represents a ReplicaWasRestartedResponse. - * @implements IReplicaWasRestartedResponse + * @classdesc Represents a ReplicaWasPromotedResponse. + * @implements IReplicaWasPromotedResponse * @constructor - * @param {tabletmanagerdata.IReplicaWasRestartedResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IReplicaWasPromotedResponse=} [properties] Properties to set */ - function ReplicaWasRestartedResponse(properties) { + function ReplicaWasPromotedResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70670,60 +71426,60 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new ReplicaWasRestartedResponse instance using the specified properties. + * Creates a new ReplicaWasPromotedResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReplicaWasRestartedResponse + * @memberof tabletmanagerdata.ReplicaWasPromotedResponse * @static - * @param {tabletmanagerdata.IReplicaWasRestartedResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ReplicaWasRestartedResponse} ReplicaWasRestartedResponse instance + * @param {tabletmanagerdata.IReplicaWasPromotedResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ReplicaWasPromotedResponse} ReplicaWasPromotedResponse instance */ - ReplicaWasRestartedResponse.create = function create(properties) { - return new ReplicaWasRestartedResponse(properties); + ReplicaWasPromotedResponse.create = function create(properties) { + return new ReplicaWasPromotedResponse(properties); }; /** - * Encodes the specified ReplicaWasRestartedResponse message. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedResponse.verify|verify} messages. + * Encodes the specified ReplicaWasPromotedResponse message. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReplicaWasRestartedResponse + * @memberof tabletmanagerdata.ReplicaWasPromotedResponse * @static - * @param {tabletmanagerdata.IReplicaWasRestartedResponse} message ReplicaWasRestartedResponse message or plain object to encode + * @param {tabletmanagerdata.IReplicaWasPromotedResponse} message ReplicaWasPromotedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReplicaWasRestartedResponse.encode = function encode(message, writer) { + ReplicaWasPromotedResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified ReplicaWasRestartedResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedResponse.verify|verify} messages. + * Encodes the specified ReplicaWasPromotedResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasPromotedResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReplicaWasRestartedResponse + * @memberof tabletmanagerdata.ReplicaWasPromotedResponse * @static - * @param {tabletmanagerdata.IReplicaWasRestartedResponse} message ReplicaWasRestartedResponse message or plain object to encode + * @param {tabletmanagerdata.IReplicaWasPromotedResponse} message ReplicaWasPromotedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReplicaWasRestartedResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReplicaWasPromotedResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReplicaWasRestartedResponse message from the specified reader or buffer. + * Decodes a ReplicaWasPromotedResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReplicaWasRestartedResponse + * @memberof tabletmanagerdata.ReplicaWasPromotedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReplicaWasRestartedResponse} ReplicaWasRestartedResponse + * @returns {tabletmanagerdata.ReplicaWasPromotedResponse} ReplicaWasPromotedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReplicaWasRestartedResponse.decode = function decode(reader, length) { + ReplicaWasPromotedResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReplicaWasRestartedResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReplicaWasPromotedResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -70736,109 +71492,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReplicaWasRestartedResponse message from the specified reader or buffer, length delimited. + * Decodes a ReplicaWasPromotedResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReplicaWasRestartedResponse + * @memberof tabletmanagerdata.ReplicaWasPromotedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReplicaWasRestartedResponse} ReplicaWasRestartedResponse + * @returns {tabletmanagerdata.ReplicaWasPromotedResponse} ReplicaWasPromotedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReplicaWasRestartedResponse.decodeDelimited = function decodeDelimited(reader) { + ReplicaWasPromotedResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReplicaWasRestartedResponse message. + * Verifies a ReplicaWasPromotedResponse message. * @function verify - * @memberof tabletmanagerdata.ReplicaWasRestartedResponse + * @memberof tabletmanagerdata.ReplicaWasPromotedResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReplicaWasRestartedResponse.verify = function verify(message) { + ReplicaWasPromotedResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a ReplicaWasRestartedResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReplicaWasPromotedResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ReplicaWasRestartedResponse + * @memberof tabletmanagerdata.ReplicaWasPromotedResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReplicaWasRestartedResponse} ReplicaWasRestartedResponse + * @returns {tabletmanagerdata.ReplicaWasPromotedResponse} ReplicaWasPromotedResponse */ - ReplicaWasRestartedResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReplicaWasRestartedResponse) + ReplicaWasPromotedResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReplicaWasPromotedResponse) return object; - return new $root.tabletmanagerdata.ReplicaWasRestartedResponse(); + return new $root.tabletmanagerdata.ReplicaWasPromotedResponse(); }; /** - * Creates a plain object from a ReplicaWasRestartedResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReplicaWasPromotedResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ReplicaWasRestartedResponse + * @memberof tabletmanagerdata.ReplicaWasPromotedResponse * @static - * @param {tabletmanagerdata.ReplicaWasRestartedResponse} message ReplicaWasRestartedResponse + * @param {tabletmanagerdata.ReplicaWasPromotedResponse} message ReplicaWasPromotedResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReplicaWasRestartedResponse.toObject = function toObject() { + ReplicaWasPromotedResponse.toObject = function toObject() { return {}; }; /** - * Converts this ReplicaWasRestartedResponse to JSON. + * Converts this ReplicaWasPromotedResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReplicaWasRestartedResponse + * @memberof tabletmanagerdata.ReplicaWasPromotedResponse * @instance * @returns {Object.} JSON object */ - ReplicaWasRestartedResponse.prototype.toJSON = function toJSON() { + ReplicaWasPromotedResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReplicaWasRestartedResponse + * Gets the default type url for ReplicaWasPromotedResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ReplicaWasRestartedResponse + * @memberof tabletmanagerdata.ReplicaWasPromotedResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReplicaWasRestartedResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReplicaWasPromotedResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReplicaWasRestartedResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ReplicaWasPromotedResponse"; }; - return ReplicaWasRestartedResponse; + return ReplicaWasPromotedResponse; })(); - tabletmanagerdata.StopReplicationAndGetStatusRequest = (function() { + tabletmanagerdata.ResetReplicationParametersRequest = (function() { /** - * Properties of a StopReplicationAndGetStatusRequest. + * Properties of a ResetReplicationParametersRequest. * @memberof tabletmanagerdata - * @interface IStopReplicationAndGetStatusRequest - * @property {replicationdata.StopReplicationMode|null} [stop_replication_mode] StopReplicationAndGetStatusRequest stop_replication_mode + * @interface IResetReplicationParametersRequest */ /** - * Constructs a new StopReplicationAndGetStatusRequest. + * Constructs a new ResetReplicationParametersRequest. * @memberof tabletmanagerdata - * @classdesc Represents a StopReplicationAndGetStatusRequest. - * @implements IStopReplicationAndGetStatusRequest + * @classdesc Represents a ResetReplicationParametersRequest. + * @implements IResetReplicationParametersRequest * @constructor - * @param {tabletmanagerdata.IStopReplicationAndGetStatusRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IResetReplicationParametersRequest=} [properties] Properties to set */ - function StopReplicationAndGetStatusRequest(properties) { + function ResetReplicationParametersRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70846,77 +71601,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * StopReplicationAndGetStatusRequest stop_replication_mode. - * @member {replicationdata.StopReplicationMode} stop_replication_mode - * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest - * @instance - */ - StopReplicationAndGetStatusRequest.prototype.stop_replication_mode = 0; - - /** - * Creates a new StopReplicationAndGetStatusRequest instance using the specified properties. + * Creates a new ResetReplicationParametersRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest + * @memberof tabletmanagerdata.ResetReplicationParametersRequest * @static - * @param {tabletmanagerdata.IStopReplicationAndGetStatusRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.StopReplicationAndGetStatusRequest} StopReplicationAndGetStatusRequest instance + * @param {tabletmanagerdata.IResetReplicationParametersRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ResetReplicationParametersRequest} ResetReplicationParametersRequest instance */ - StopReplicationAndGetStatusRequest.create = function create(properties) { - return new StopReplicationAndGetStatusRequest(properties); + ResetReplicationParametersRequest.create = function create(properties) { + return new ResetReplicationParametersRequest(properties); }; /** - * Encodes the specified StopReplicationAndGetStatusRequest message. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusRequest.verify|verify} messages. + * Encodes the specified ResetReplicationParametersRequest message. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest + * @memberof tabletmanagerdata.ResetReplicationParametersRequest * @static - * @param {tabletmanagerdata.IStopReplicationAndGetStatusRequest} message StopReplicationAndGetStatusRequest message or plain object to encode + * @param {tabletmanagerdata.IResetReplicationParametersRequest} message ResetReplicationParametersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationAndGetStatusRequest.encode = function encode(message, writer) { + ResetReplicationParametersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.stop_replication_mode != null && Object.hasOwnProperty.call(message, "stop_replication_mode")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.stop_replication_mode); return writer; }; /** - * Encodes the specified StopReplicationAndGetStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusRequest.verify|verify} messages. + * Encodes the specified ResetReplicationParametersRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest + * @memberof tabletmanagerdata.ResetReplicationParametersRequest * @static - * @param {tabletmanagerdata.IStopReplicationAndGetStatusRequest} message StopReplicationAndGetStatusRequest message or plain object to encode + * @param {tabletmanagerdata.IResetReplicationParametersRequest} message ResetReplicationParametersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationAndGetStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResetReplicationParametersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopReplicationAndGetStatusRequest message from the specified reader or buffer. + * Decodes a ResetReplicationParametersRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest + * @memberof tabletmanagerdata.ResetReplicationParametersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.StopReplicationAndGetStatusRequest} StopReplicationAndGetStatusRequest + * @returns {tabletmanagerdata.ResetReplicationParametersRequest} ResetReplicationParametersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationAndGetStatusRequest.decode = function decode(reader, length) { + ResetReplicationParametersRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StopReplicationAndGetStatusRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetReplicationParametersRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.stop_replication_mode = reader.int32(); - break; - } default: reader.skipType(tag & 7); break; @@ -70926,141 +71667,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a StopReplicationAndGetStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a ResetReplicationParametersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest + * @memberof tabletmanagerdata.ResetReplicationParametersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.StopReplicationAndGetStatusRequest} StopReplicationAndGetStatusRequest + * @returns {tabletmanagerdata.ResetReplicationParametersRequest} ResetReplicationParametersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationAndGetStatusRequest.decodeDelimited = function decodeDelimited(reader) { + ResetReplicationParametersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopReplicationAndGetStatusRequest message. + * Verifies a ResetReplicationParametersRequest message. * @function verify - * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest + * @memberof tabletmanagerdata.ResetReplicationParametersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopReplicationAndGetStatusRequest.verify = function verify(message) { + ResetReplicationParametersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.stop_replication_mode != null && message.hasOwnProperty("stop_replication_mode")) - switch (message.stop_replication_mode) { - default: - return "stop_replication_mode: enum value expected"; - case 0: - case 1: - break; - } return null; }; /** - * Creates a StopReplicationAndGetStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResetReplicationParametersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest + * @memberof tabletmanagerdata.ResetReplicationParametersRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.StopReplicationAndGetStatusRequest} StopReplicationAndGetStatusRequest + * @returns {tabletmanagerdata.ResetReplicationParametersRequest} ResetReplicationParametersRequest */ - StopReplicationAndGetStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.StopReplicationAndGetStatusRequest) + ResetReplicationParametersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ResetReplicationParametersRequest) return object; - let message = new $root.tabletmanagerdata.StopReplicationAndGetStatusRequest(); - switch (object.stop_replication_mode) { - default: - if (typeof object.stop_replication_mode === "number") { - message.stop_replication_mode = object.stop_replication_mode; - break; - } - break; - case "IOANDSQLTHREAD": - case 0: - message.stop_replication_mode = 0; - break; - case "IOTHREADONLY": - case 1: - message.stop_replication_mode = 1; - break; - } - return message; + return new $root.tabletmanagerdata.ResetReplicationParametersRequest(); }; /** - * Creates a plain object from a StopReplicationAndGetStatusRequest message. Also converts values to other types if specified. + * Creates a plain object from a ResetReplicationParametersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest + * @memberof tabletmanagerdata.ResetReplicationParametersRequest * @static - * @param {tabletmanagerdata.StopReplicationAndGetStatusRequest} message StopReplicationAndGetStatusRequest + * @param {tabletmanagerdata.ResetReplicationParametersRequest} message ResetReplicationParametersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopReplicationAndGetStatusRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.stop_replication_mode = options.enums === String ? "IOANDSQLTHREAD" : 0; - if (message.stop_replication_mode != null && message.hasOwnProperty("stop_replication_mode")) - object.stop_replication_mode = options.enums === String ? $root.replicationdata.StopReplicationMode[message.stop_replication_mode] === undefined ? message.stop_replication_mode : $root.replicationdata.StopReplicationMode[message.stop_replication_mode] : message.stop_replication_mode; - return object; + ResetReplicationParametersRequest.toObject = function toObject() { + return {}; }; /** - * Converts this StopReplicationAndGetStatusRequest to JSON. + * Converts this ResetReplicationParametersRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest + * @memberof tabletmanagerdata.ResetReplicationParametersRequest * @instance * @returns {Object.} JSON object */ - StopReplicationAndGetStatusRequest.prototype.toJSON = function toJSON() { + ResetReplicationParametersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StopReplicationAndGetStatusRequest + * Gets the default type url for ResetReplicationParametersRequest * @function getTypeUrl - * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest + * @memberof tabletmanagerdata.ResetReplicationParametersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StopReplicationAndGetStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResetReplicationParametersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.StopReplicationAndGetStatusRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ResetReplicationParametersRequest"; }; - return StopReplicationAndGetStatusRequest; + return ResetReplicationParametersRequest; })(); - tabletmanagerdata.StopReplicationAndGetStatusResponse = (function() { + tabletmanagerdata.ResetReplicationParametersResponse = (function() { /** - * Properties of a StopReplicationAndGetStatusResponse. + * Properties of a ResetReplicationParametersResponse. * @memberof tabletmanagerdata - * @interface IStopReplicationAndGetStatusResponse - * @property {replicationdata.IStopReplicationStatus|null} [status] StopReplicationAndGetStatusResponse status + * @interface IResetReplicationParametersResponse */ /** - * Constructs a new StopReplicationAndGetStatusResponse. + * Constructs a new ResetReplicationParametersResponse. * @memberof tabletmanagerdata - * @classdesc Represents a StopReplicationAndGetStatusResponse. - * @implements IStopReplicationAndGetStatusResponse + * @classdesc Represents a ResetReplicationParametersResponse. + * @implements IResetReplicationParametersResponse * @constructor - * @param {tabletmanagerdata.IStopReplicationAndGetStatusResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IResetReplicationParametersResponse=} [properties] Properties to set */ - function StopReplicationAndGetStatusResponse(properties) { + function ResetReplicationParametersResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71068,77 +71776,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * StopReplicationAndGetStatusResponse status. - * @member {replicationdata.IStopReplicationStatus|null|undefined} status - * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse - * @instance - */ - StopReplicationAndGetStatusResponse.prototype.status = null; - - /** - * Creates a new StopReplicationAndGetStatusResponse instance using the specified properties. + * Creates a new ResetReplicationParametersResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse + * @memberof tabletmanagerdata.ResetReplicationParametersResponse * @static - * @param {tabletmanagerdata.IStopReplicationAndGetStatusResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.StopReplicationAndGetStatusResponse} StopReplicationAndGetStatusResponse instance + * @param {tabletmanagerdata.IResetReplicationParametersResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ResetReplicationParametersResponse} ResetReplicationParametersResponse instance */ - StopReplicationAndGetStatusResponse.create = function create(properties) { - return new StopReplicationAndGetStatusResponse(properties); + ResetReplicationParametersResponse.create = function create(properties) { + return new ResetReplicationParametersResponse(properties); }; /** - * Encodes the specified StopReplicationAndGetStatusResponse message. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusResponse.verify|verify} messages. + * Encodes the specified ResetReplicationParametersResponse message. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse + * @memberof tabletmanagerdata.ResetReplicationParametersResponse * @static - * @param {tabletmanagerdata.IStopReplicationAndGetStatusResponse} message StopReplicationAndGetStatusResponse message or plain object to encode + * @param {tabletmanagerdata.IResetReplicationParametersResponse} message ResetReplicationParametersResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationAndGetStatusResponse.encode = function encode(message, writer) { + ResetReplicationParametersResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.replicationdata.StopReplicationStatus.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified StopReplicationAndGetStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusResponse.verify|verify} messages. + * Encodes the specified ResetReplicationParametersResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetReplicationParametersResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse + * @memberof tabletmanagerdata.ResetReplicationParametersResponse * @static - * @param {tabletmanagerdata.IStopReplicationAndGetStatusResponse} message StopReplicationAndGetStatusResponse message or plain object to encode + * @param {tabletmanagerdata.IResetReplicationParametersResponse} message ResetReplicationParametersResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationAndGetStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { + ResetReplicationParametersResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopReplicationAndGetStatusResponse message from the specified reader or buffer. + * Decodes a ResetReplicationParametersResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse + * @memberof tabletmanagerdata.ResetReplicationParametersResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.StopReplicationAndGetStatusResponse} StopReplicationAndGetStatusResponse + * @returns {tabletmanagerdata.ResetReplicationParametersResponse} ResetReplicationParametersResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationAndGetStatusResponse.decode = function decode(reader, length) { + ResetReplicationParametersResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StopReplicationAndGetStatusResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetReplicationParametersResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.status = $root.replicationdata.StopReplicationStatus.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -71148,127 +71842,108 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a StopReplicationAndGetStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a ResetReplicationParametersResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse + * @memberof tabletmanagerdata.ResetReplicationParametersResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.StopReplicationAndGetStatusResponse} StopReplicationAndGetStatusResponse + * @returns {tabletmanagerdata.ResetReplicationParametersResponse} ResetReplicationParametersResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationAndGetStatusResponse.decodeDelimited = function decodeDelimited(reader) { + ResetReplicationParametersResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopReplicationAndGetStatusResponse message. + * Verifies a ResetReplicationParametersResponse message. * @function verify - * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse + * @memberof tabletmanagerdata.ResetReplicationParametersResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopReplicationAndGetStatusResponse.verify = function verify(message) { + ResetReplicationParametersResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - let error = $root.replicationdata.StopReplicationStatus.verify(message.status); - if (error) - return "status." + error; - } return null; }; /** - * Creates a StopReplicationAndGetStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ResetReplicationParametersResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse + * @memberof tabletmanagerdata.ResetReplicationParametersResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.StopReplicationAndGetStatusResponse} StopReplicationAndGetStatusResponse + * @returns {tabletmanagerdata.ResetReplicationParametersResponse} ResetReplicationParametersResponse */ - StopReplicationAndGetStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.StopReplicationAndGetStatusResponse) + ResetReplicationParametersResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ResetReplicationParametersResponse) return object; - let message = new $root.tabletmanagerdata.StopReplicationAndGetStatusResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".tabletmanagerdata.StopReplicationAndGetStatusResponse.status: object expected"); - message.status = $root.replicationdata.StopReplicationStatus.fromObject(object.status); - } - return message; + return new $root.tabletmanagerdata.ResetReplicationParametersResponse(); }; /** - * Creates a plain object from a StopReplicationAndGetStatusResponse message. Also converts values to other types if specified. + * Creates a plain object from a ResetReplicationParametersResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse + * @memberof tabletmanagerdata.ResetReplicationParametersResponse * @static - * @param {tabletmanagerdata.StopReplicationAndGetStatusResponse} message StopReplicationAndGetStatusResponse + * @param {tabletmanagerdata.ResetReplicationParametersResponse} message ResetReplicationParametersResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopReplicationAndGetStatusResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.replicationdata.StopReplicationStatus.toObject(message.status, options); - return object; + ResetReplicationParametersResponse.toObject = function toObject() { + return {}; }; /** - * Converts this StopReplicationAndGetStatusResponse to JSON. + * Converts this ResetReplicationParametersResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse + * @memberof tabletmanagerdata.ResetReplicationParametersResponse * @instance * @returns {Object.} JSON object */ - StopReplicationAndGetStatusResponse.prototype.toJSON = function toJSON() { + ResetReplicationParametersResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StopReplicationAndGetStatusResponse + * Gets the default type url for ResetReplicationParametersResponse * @function getTypeUrl - * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse + * @memberof tabletmanagerdata.ResetReplicationParametersResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StopReplicationAndGetStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResetReplicationParametersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.StopReplicationAndGetStatusResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ResetReplicationParametersResponse"; }; - return StopReplicationAndGetStatusResponse; + return ResetReplicationParametersResponse; })(); - tabletmanagerdata.PromoteReplicaRequest = (function() { + tabletmanagerdata.FullStatusRequest = (function() { /** - * Properties of a PromoteReplicaRequest. + * Properties of a FullStatusRequest. * @memberof tabletmanagerdata - * @interface IPromoteReplicaRequest - * @property {boolean|null} [semiSync] PromoteReplicaRequest semiSync + * @interface IFullStatusRequest */ /** - * Constructs a new PromoteReplicaRequest. + * Constructs a new FullStatusRequest. * @memberof tabletmanagerdata - * @classdesc Represents a PromoteReplicaRequest. - * @implements IPromoteReplicaRequest + * @classdesc Represents a FullStatusRequest. + * @implements IFullStatusRequest * @constructor - * @param {tabletmanagerdata.IPromoteReplicaRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IFullStatusRequest=} [properties] Properties to set */ - function PromoteReplicaRequest(properties) { + function FullStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71276,77 +71951,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * PromoteReplicaRequest semiSync. - * @member {boolean} semiSync - * @memberof tabletmanagerdata.PromoteReplicaRequest - * @instance - */ - PromoteReplicaRequest.prototype.semiSync = false; - - /** - * Creates a new PromoteReplicaRequest instance using the specified properties. + * Creates a new FullStatusRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.PromoteReplicaRequest + * @memberof tabletmanagerdata.FullStatusRequest * @static - * @param {tabletmanagerdata.IPromoteReplicaRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.PromoteReplicaRequest} PromoteReplicaRequest instance + * @param {tabletmanagerdata.IFullStatusRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.FullStatusRequest} FullStatusRequest instance */ - PromoteReplicaRequest.create = function create(properties) { - return new PromoteReplicaRequest(properties); + FullStatusRequest.create = function create(properties) { + return new FullStatusRequest(properties); }; /** - * Encodes the specified PromoteReplicaRequest message. Does not implicitly {@link tabletmanagerdata.PromoteReplicaRequest.verify|verify} messages. + * Encodes the specified FullStatusRequest message. Does not implicitly {@link tabletmanagerdata.FullStatusRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.PromoteReplicaRequest + * @memberof tabletmanagerdata.FullStatusRequest * @static - * @param {tabletmanagerdata.IPromoteReplicaRequest} message PromoteReplicaRequest message or plain object to encode + * @param {tabletmanagerdata.IFullStatusRequest} message FullStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PromoteReplicaRequest.encode = function encode(message, writer) { + FullStatusRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.semiSync != null && Object.hasOwnProperty.call(message, "semiSync")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.semiSync); return writer; }; /** - * Encodes the specified PromoteReplicaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PromoteReplicaRequest.verify|verify} messages. + * Encodes the specified FullStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.FullStatusRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.PromoteReplicaRequest + * @memberof tabletmanagerdata.FullStatusRequest * @static - * @param {tabletmanagerdata.IPromoteReplicaRequest} message PromoteReplicaRequest message or plain object to encode + * @param {tabletmanagerdata.IFullStatusRequest} message FullStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PromoteReplicaRequest.encodeDelimited = function encodeDelimited(message, writer) { + FullStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PromoteReplicaRequest message from the specified reader or buffer. + * Decodes a FullStatusRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.PromoteReplicaRequest + * @memberof tabletmanagerdata.FullStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.PromoteReplicaRequest} PromoteReplicaRequest + * @returns {tabletmanagerdata.FullStatusRequest} FullStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PromoteReplicaRequest.decode = function decode(reader, length) { + FullStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PromoteReplicaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.FullStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.semiSync = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -71356,122 +72017,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a PromoteReplicaRequest message from the specified reader or buffer, length delimited. + * Decodes a FullStatusRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.PromoteReplicaRequest + * @memberof tabletmanagerdata.FullStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.PromoteReplicaRequest} PromoteReplicaRequest + * @returns {tabletmanagerdata.FullStatusRequest} FullStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PromoteReplicaRequest.decodeDelimited = function decodeDelimited(reader) { + FullStatusRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PromoteReplicaRequest message. + * Verifies a FullStatusRequest message. * @function verify - * @memberof tabletmanagerdata.PromoteReplicaRequest + * @memberof tabletmanagerdata.FullStatusRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PromoteReplicaRequest.verify = function verify(message) { + FullStatusRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.semiSync != null && message.hasOwnProperty("semiSync")) - if (typeof message.semiSync !== "boolean") - return "semiSync: boolean expected"; return null; }; /** - * Creates a PromoteReplicaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FullStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.PromoteReplicaRequest + * @memberof tabletmanagerdata.FullStatusRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.PromoteReplicaRequest} PromoteReplicaRequest + * @returns {tabletmanagerdata.FullStatusRequest} FullStatusRequest */ - PromoteReplicaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.PromoteReplicaRequest) + FullStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.FullStatusRequest) return object; - let message = new $root.tabletmanagerdata.PromoteReplicaRequest(); - if (object.semiSync != null) - message.semiSync = Boolean(object.semiSync); - return message; + return new $root.tabletmanagerdata.FullStatusRequest(); }; /** - * Creates a plain object from a PromoteReplicaRequest message. Also converts values to other types if specified. + * Creates a plain object from a FullStatusRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.PromoteReplicaRequest + * @memberof tabletmanagerdata.FullStatusRequest * @static - * @param {tabletmanagerdata.PromoteReplicaRequest} message PromoteReplicaRequest + * @param {tabletmanagerdata.FullStatusRequest} message FullStatusRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PromoteReplicaRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.semiSync = false; - if (message.semiSync != null && message.hasOwnProperty("semiSync")) - object.semiSync = message.semiSync; - return object; + FullStatusRequest.toObject = function toObject() { + return {}; }; /** - * Converts this PromoteReplicaRequest to JSON. + * Converts this FullStatusRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.PromoteReplicaRequest + * @memberof tabletmanagerdata.FullStatusRequest * @instance * @returns {Object.} JSON object */ - PromoteReplicaRequest.prototype.toJSON = function toJSON() { + FullStatusRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PromoteReplicaRequest + * Gets the default type url for FullStatusRequest * @function getTypeUrl - * @memberof tabletmanagerdata.PromoteReplicaRequest + * @memberof tabletmanagerdata.FullStatusRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PromoteReplicaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FullStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.PromoteReplicaRequest"; + return typeUrlPrefix + "/tabletmanagerdata.FullStatusRequest"; }; - return PromoteReplicaRequest; + return FullStatusRequest; })(); - tabletmanagerdata.PromoteReplicaResponse = (function() { + tabletmanagerdata.FullStatusResponse = (function() { /** - * Properties of a PromoteReplicaResponse. + * Properties of a FullStatusResponse. * @memberof tabletmanagerdata - * @interface IPromoteReplicaResponse - * @property {string|null} [position] PromoteReplicaResponse position + * @interface IFullStatusResponse + * @property {replicationdata.IFullStatus|null} [status] FullStatusResponse status */ /** - * Constructs a new PromoteReplicaResponse. + * Constructs a new FullStatusResponse. * @memberof tabletmanagerdata - * @classdesc Represents a PromoteReplicaResponse. - * @implements IPromoteReplicaResponse + * @classdesc Represents a FullStatusResponse. + * @implements IFullStatusResponse * @constructor - * @param {tabletmanagerdata.IPromoteReplicaResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IFullStatusResponse=} [properties] Properties to set */ - function PromoteReplicaResponse(properties) { + function FullStatusResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71479,75 +72127,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * PromoteReplicaResponse position. - * @member {string} position - * @memberof tabletmanagerdata.PromoteReplicaResponse + * FullStatusResponse status. + * @member {replicationdata.IFullStatus|null|undefined} status + * @memberof tabletmanagerdata.FullStatusResponse * @instance */ - PromoteReplicaResponse.prototype.position = ""; + FullStatusResponse.prototype.status = null; /** - * Creates a new PromoteReplicaResponse instance using the specified properties. + * Creates a new FullStatusResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.PromoteReplicaResponse + * @memberof tabletmanagerdata.FullStatusResponse * @static - * @param {tabletmanagerdata.IPromoteReplicaResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.PromoteReplicaResponse} PromoteReplicaResponse instance + * @param {tabletmanagerdata.IFullStatusResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.FullStatusResponse} FullStatusResponse instance */ - PromoteReplicaResponse.create = function create(properties) { - return new PromoteReplicaResponse(properties); + FullStatusResponse.create = function create(properties) { + return new FullStatusResponse(properties); }; /** - * Encodes the specified PromoteReplicaResponse message. Does not implicitly {@link tabletmanagerdata.PromoteReplicaResponse.verify|verify} messages. + * Encodes the specified FullStatusResponse message. Does not implicitly {@link tabletmanagerdata.FullStatusResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.PromoteReplicaResponse + * @memberof tabletmanagerdata.FullStatusResponse * @static - * @param {tabletmanagerdata.IPromoteReplicaResponse} message PromoteReplicaResponse message or plain object to encode + * @param {tabletmanagerdata.IFullStatusResponse} message FullStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PromoteReplicaResponse.encode = function encode(message, writer) { + FullStatusResponse.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.status != null && Object.hasOwnProperty.call(message, "status")) + $root.replicationdata.FullStatus.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified PromoteReplicaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PromoteReplicaResponse.verify|verify} messages. + * Encodes the specified FullStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.FullStatusResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.PromoteReplicaResponse + * @memberof tabletmanagerdata.FullStatusResponse * @static - * @param {tabletmanagerdata.IPromoteReplicaResponse} message PromoteReplicaResponse message or plain object to encode + * @param {tabletmanagerdata.IFullStatusResponse} message FullStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PromoteReplicaResponse.encodeDelimited = function encodeDelimited(message, writer) { + FullStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PromoteReplicaResponse message from the specified reader or buffer. + * Decodes a FullStatusResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.PromoteReplicaResponse + * @memberof tabletmanagerdata.FullStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.PromoteReplicaResponse} PromoteReplicaResponse + * @returns {tabletmanagerdata.FullStatusResponse} FullStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PromoteReplicaResponse.decode = function decode(reader, length) { + FullStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PromoteReplicaResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.FullStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.position = reader.string(); + message.status = $root.replicationdata.FullStatus.decode(reader, reader.uint32()); break; } default: @@ -71559,127 +72207,132 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a PromoteReplicaResponse message from the specified reader or buffer, length delimited. + * Decodes a FullStatusResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.PromoteReplicaResponse + * @memberof tabletmanagerdata.FullStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.PromoteReplicaResponse} PromoteReplicaResponse + * @returns {tabletmanagerdata.FullStatusResponse} FullStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PromoteReplicaResponse.decodeDelimited = function decodeDelimited(reader) { + FullStatusResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PromoteReplicaResponse message. + * Verifies a FullStatusResponse message. * @function verify - * @memberof tabletmanagerdata.PromoteReplicaResponse + * @memberof tabletmanagerdata.FullStatusResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PromoteReplicaResponse.verify = function verify(message) { + FullStatusResponse.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.status != null && message.hasOwnProperty("status")) { + let error = $root.replicationdata.FullStatus.verify(message.status); + if (error) + return "status." + error; + } return null; }; /** - * Creates a PromoteReplicaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FullStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.PromoteReplicaResponse + * @memberof tabletmanagerdata.FullStatusResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.PromoteReplicaResponse} PromoteReplicaResponse + * @returns {tabletmanagerdata.FullStatusResponse} FullStatusResponse */ - PromoteReplicaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.PromoteReplicaResponse) + FullStatusResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.FullStatusResponse) return object; - let message = new $root.tabletmanagerdata.PromoteReplicaResponse(); - if (object.position != null) - message.position = String(object.position); + let message = new $root.tabletmanagerdata.FullStatusResponse(); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".tabletmanagerdata.FullStatusResponse.status: object expected"); + message.status = $root.replicationdata.FullStatus.fromObject(object.status); + } return message; }; /** - * Creates a plain object from a PromoteReplicaResponse message. Also converts values to other types if specified. + * Creates a plain object from a FullStatusResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.PromoteReplicaResponse + * @memberof tabletmanagerdata.FullStatusResponse * @static - * @param {tabletmanagerdata.PromoteReplicaResponse} message PromoteReplicaResponse + * @param {tabletmanagerdata.FullStatusResponse} message FullStatusResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PromoteReplicaResponse.toObject = function toObject(message, options) { + FullStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.position = ""; - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; + object.status = null; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.replicationdata.FullStatus.toObject(message.status, options); return object; }; /** - * Converts this PromoteReplicaResponse to JSON. + * Converts this FullStatusResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.PromoteReplicaResponse + * @memberof tabletmanagerdata.FullStatusResponse * @instance * @returns {Object.} JSON object */ - PromoteReplicaResponse.prototype.toJSON = function toJSON() { + FullStatusResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PromoteReplicaResponse + * Gets the default type url for FullStatusResponse * @function getTypeUrl - * @memberof tabletmanagerdata.PromoteReplicaResponse + * @memberof tabletmanagerdata.FullStatusResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PromoteReplicaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FullStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.PromoteReplicaResponse"; + return typeUrlPrefix + "/tabletmanagerdata.FullStatusResponse"; }; - return PromoteReplicaResponse; + return FullStatusResponse; })(); - tabletmanagerdata.BackupRequest = (function() { + tabletmanagerdata.SetReplicationSourceRequest = (function() { /** - * Properties of a BackupRequest. + * Properties of a SetReplicationSourceRequest. * @memberof tabletmanagerdata - * @interface IBackupRequest - * @property {number|null} [concurrency] BackupRequest concurrency - * @property {boolean|null} [allow_primary] BackupRequest allow_primary - * @property {string|null} [incremental_from_pos] BackupRequest incremental_from_pos - * @property {boolean|null} [upgrade_safe] BackupRequest upgrade_safe - * @property {string|null} [backup_engine] BackupRequest backup_engine - * @property {vttime.IDuration|null} [mysql_shutdown_timeout] BackupRequest mysql_shutdown_timeout + * @interface ISetReplicationSourceRequest + * @property {topodata.ITabletAlias|null} [parent] SetReplicationSourceRequest parent + * @property {number|Long|null} [time_created_ns] SetReplicationSourceRequest time_created_ns + * @property {boolean|null} [force_start_replication] SetReplicationSourceRequest force_start_replication + * @property {string|null} [wait_position] SetReplicationSourceRequest wait_position + * @property {boolean|null} [semiSync] SetReplicationSourceRequest semiSync + * @property {number|null} [heartbeat_interval] SetReplicationSourceRequest heartbeat_interval */ /** - * Constructs a new BackupRequest. + * Constructs a new SetReplicationSourceRequest. * @memberof tabletmanagerdata - * @classdesc Represents a BackupRequest. - * @implements IBackupRequest + * @classdesc Represents a SetReplicationSourceRequest. + * @implements ISetReplicationSourceRequest * @constructor - * @param {tabletmanagerdata.IBackupRequest=} [properties] Properties to set + * @param {tabletmanagerdata.ISetReplicationSourceRequest=} [properties] Properties to set */ - function BackupRequest(properties) { + function SetReplicationSourceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71687,154 +72340,145 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * BackupRequest concurrency. - * @member {number} concurrency - * @memberof tabletmanagerdata.BackupRequest + * SetReplicationSourceRequest parent. + * @member {topodata.ITabletAlias|null|undefined} parent + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @instance */ - BackupRequest.prototype.concurrency = 0; + SetReplicationSourceRequest.prototype.parent = null; /** - * BackupRequest allow_primary. - * @member {boolean} allow_primary - * @memberof tabletmanagerdata.BackupRequest + * SetReplicationSourceRequest time_created_ns. + * @member {number|Long} time_created_ns + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @instance */ - BackupRequest.prototype.allow_primary = false; + SetReplicationSourceRequest.prototype.time_created_ns = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * BackupRequest incremental_from_pos. - * @member {string} incremental_from_pos - * @memberof tabletmanagerdata.BackupRequest + * SetReplicationSourceRequest force_start_replication. + * @member {boolean} force_start_replication + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @instance */ - BackupRequest.prototype.incremental_from_pos = ""; + SetReplicationSourceRequest.prototype.force_start_replication = false; /** - * BackupRequest upgrade_safe. - * @member {boolean} upgrade_safe - * @memberof tabletmanagerdata.BackupRequest + * SetReplicationSourceRequest wait_position. + * @member {string} wait_position + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @instance */ - BackupRequest.prototype.upgrade_safe = false; + SetReplicationSourceRequest.prototype.wait_position = ""; /** - * BackupRequest backup_engine. - * @member {string|null|undefined} backup_engine - * @memberof tabletmanagerdata.BackupRequest + * SetReplicationSourceRequest semiSync. + * @member {boolean} semiSync + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @instance */ - BackupRequest.prototype.backup_engine = null; + SetReplicationSourceRequest.prototype.semiSync = false; /** - * BackupRequest mysql_shutdown_timeout. - * @member {vttime.IDuration|null|undefined} mysql_shutdown_timeout - * @memberof tabletmanagerdata.BackupRequest + * SetReplicationSourceRequest heartbeat_interval. + * @member {number} heartbeat_interval + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @instance */ - BackupRequest.prototype.mysql_shutdown_timeout = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(BackupRequest.prototype, "_backup_engine", { - get: $util.oneOfGetter($oneOfFields = ["backup_engine"]), - set: $util.oneOfSetter($oneOfFields) - }); + SetReplicationSourceRequest.prototype.heartbeat_interval = 0; /** - * Creates a new BackupRequest instance using the specified properties. + * Creates a new SetReplicationSourceRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.BackupRequest + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @static - * @param {tabletmanagerdata.IBackupRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.BackupRequest} BackupRequest instance + * @param {tabletmanagerdata.ISetReplicationSourceRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.SetReplicationSourceRequest} SetReplicationSourceRequest instance */ - BackupRequest.create = function create(properties) { - return new BackupRequest(properties); + SetReplicationSourceRequest.create = function create(properties) { + return new SetReplicationSourceRequest(properties); }; /** - * Encodes the specified BackupRequest message. Does not implicitly {@link tabletmanagerdata.BackupRequest.verify|verify} messages. + * Encodes the specified SetReplicationSourceRequest message. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.BackupRequest + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @static - * @param {tabletmanagerdata.IBackupRequest} message BackupRequest message or plain object to encode + * @param {tabletmanagerdata.ISetReplicationSourceRequest} message SetReplicationSourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupRequest.encode = function encode(message, writer) { + SetReplicationSourceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.concurrency); - if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_primary); - if (message.incremental_from_pos != null && Object.hasOwnProperty.call(message, "incremental_from_pos")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.incremental_from_pos); - if (message.upgrade_safe != null && Object.hasOwnProperty.call(message, "upgrade_safe")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.upgrade_safe); - if (message.backup_engine != null && Object.hasOwnProperty.call(message, "backup_engine")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.backup_engine); - if (message.mysql_shutdown_timeout != null && Object.hasOwnProperty.call(message, "mysql_shutdown_timeout")) - $root.vttime.Duration.encode(message.mysql_shutdown_timeout, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + $root.topodata.TabletAlias.encode(message.parent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.time_created_ns != null && Object.hasOwnProperty.call(message, "time_created_ns")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.time_created_ns); + if (message.force_start_replication != null && Object.hasOwnProperty.call(message, "force_start_replication")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force_start_replication); + if (message.wait_position != null && Object.hasOwnProperty.call(message, "wait_position")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.wait_position); + if (message.semiSync != null && Object.hasOwnProperty.call(message, "semiSync")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.semiSync); + if (message.heartbeat_interval != null && Object.hasOwnProperty.call(message, "heartbeat_interval")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.heartbeat_interval); return writer; }; /** - * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.BackupRequest.verify|verify} messages. + * Encodes the specified SetReplicationSourceRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.BackupRequest + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @static - * @param {tabletmanagerdata.IBackupRequest} message BackupRequest message or plain object to encode + * @param {tabletmanagerdata.ISetReplicationSourceRequest} message SetReplicationSourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetReplicationSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupRequest message from the specified reader or buffer. + * Decodes a SetReplicationSourceRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.BackupRequest + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.BackupRequest} BackupRequest + * @returns {tabletmanagerdata.SetReplicationSourceRequest} SetReplicationSourceRequest * @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) { + SetReplicationSourceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.BackupRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReplicationSourceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.concurrency = reader.int32(); + message.parent = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } case 2: { - message.allow_primary = reader.bool(); + message.time_created_ns = reader.int64(); break; } case 3: { - message.incremental_from_pos = reader.string(); + message.force_start_replication = reader.bool(); break; } case 4: { - message.upgrade_safe = reader.bool(); + message.wait_position = reader.string(); break; } case 5: { - message.backup_engine = reader.string(); + message.semiSync = reader.bool(); break; } case 6: { - message.mysql_shutdown_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + message.heartbeat_interval = reader.double(); break; } default: @@ -71846,173 +72490,181 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a BackupRequest message from the specified reader or buffer, length delimited. + * Decodes a SetReplicationSourceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.BackupRequest + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.BackupRequest} BackupRequest + * @returns {tabletmanagerdata.SetReplicationSourceRequest} SetReplicationSourceRequest * @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) { + SetReplicationSourceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupRequest message. + * Verifies a SetReplicationSourceRequest message. * @function verify - * @memberof tabletmanagerdata.BackupRequest + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @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) { + SetReplicationSourceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - let properties = {}; - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - if (!$util.isInteger(message.concurrency)) - return "concurrency: integer expected"; - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - if (typeof message.allow_primary !== "boolean") - return "allow_primary: boolean expected"; - if (message.incremental_from_pos != null && message.hasOwnProperty("incremental_from_pos")) - if (!$util.isString(message.incremental_from_pos)) - return "incremental_from_pos: string expected"; - if (message.upgrade_safe != null && message.hasOwnProperty("upgrade_safe")) - if (typeof message.upgrade_safe !== "boolean") - return "upgrade_safe: boolean expected"; - if (message.backup_engine != null && message.hasOwnProperty("backup_engine")) { - properties._backup_engine = 1; - if (!$util.isString(message.backup_engine)) - return "backup_engine: string expected"; - } - if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) { - let error = $root.vttime.Duration.verify(message.mysql_shutdown_timeout); + if (message.parent != null && message.hasOwnProperty("parent")) { + let error = $root.topodata.TabletAlias.verify(message.parent); if (error) - return "mysql_shutdown_timeout." + error; + return "parent." + error; } + if (message.time_created_ns != null && message.hasOwnProperty("time_created_ns")) + if (!$util.isInteger(message.time_created_ns) && !(message.time_created_ns && $util.isInteger(message.time_created_ns.low) && $util.isInteger(message.time_created_ns.high))) + return "time_created_ns: integer|Long expected"; + if (message.force_start_replication != null && message.hasOwnProperty("force_start_replication")) + if (typeof message.force_start_replication !== "boolean") + return "force_start_replication: boolean expected"; + if (message.wait_position != null && message.hasOwnProperty("wait_position")) + if (!$util.isString(message.wait_position)) + return "wait_position: string expected"; + if (message.semiSync != null && message.hasOwnProperty("semiSync")) + if (typeof message.semiSync !== "boolean") + return "semiSync: boolean expected"; + if (message.heartbeat_interval != null && message.hasOwnProperty("heartbeat_interval")) + if (typeof message.heartbeat_interval !== "number") + return "heartbeat_interval: number expected"; return null; }; /** - * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetReplicationSourceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.BackupRequest + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.BackupRequest} BackupRequest + * @returns {tabletmanagerdata.SetReplicationSourceRequest} SetReplicationSourceRequest */ - BackupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.BackupRequest) + SetReplicationSourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SetReplicationSourceRequest) return object; - let message = new $root.tabletmanagerdata.BackupRequest(); - if (object.concurrency != null) - message.concurrency = object.concurrency | 0; - if (object.allow_primary != null) - message.allow_primary = Boolean(object.allow_primary); - if (object.incremental_from_pos != null) - message.incremental_from_pos = String(object.incremental_from_pos); - if (object.upgrade_safe != null) - message.upgrade_safe = Boolean(object.upgrade_safe); - if (object.backup_engine != null) - message.backup_engine = String(object.backup_engine); - if (object.mysql_shutdown_timeout != null) { - if (typeof object.mysql_shutdown_timeout !== "object") - throw TypeError(".tabletmanagerdata.BackupRequest.mysql_shutdown_timeout: object expected"); - message.mysql_shutdown_timeout = $root.vttime.Duration.fromObject(object.mysql_shutdown_timeout); + let message = new $root.tabletmanagerdata.SetReplicationSourceRequest(); + if (object.parent != null) { + if (typeof object.parent !== "object") + throw TypeError(".tabletmanagerdata.SetReplicationSourceRequest.parent: object expected"); + message.parent = $root.topodata.TabletAlias.fromObject(object.parent); } + if (object.time_created_ns != null) + if ($util.Long) + (message.time_created_ns = $util.Long.fromValue(object.time_created_ns)).unsigned = false; + else if (typeof object.time_created_ns === "string") + message.time_created_ns = parseInt(object.time_created_ns, 10); + else if (typeof object.time_created_ns === "number") + message.time_created_ns = object.time_created_ns; + else if (typeof object.time_created_ns === "object") + message.time_created_ns = new $util.LongBits(object.time_created_ns.low >>> 0, object.time_created_ns.high >>> 0).toNumber(); + if (object.force_start_replication != null) + message.force_start_replication = Boolean(object.force_start_replication); + if (object.wait_position != null) + message.wait_position = String(object.wait_position); + if (object.semiSync != null) + message.semiSync = Boolean(object.semiSync); + if (object.heartbeat_interval != null) + message.heartbeat_interval = Number(object.heartbeat_interval); return message; }; /** - * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetReplicationSourceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.BackupRequest + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @static - * @param {tabletmanagerdata.BackupRequest} message BackupRequest + * @param {tabletmanagerdata.SetReplicationSourceRequest} message SetReplicationSourceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupRequest.toObject = function toObject(message, options) { + SetReplicationSourceRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.concurrency = 0; - object.allow_primary = false; - object.incremental_from_pos = ""; - object.upgrade_safe = false; - object.mysql_shutdown_timeout = null; - } - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - object.concurrency = message.concurrency; - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - object.allow_primary = message.allow_primary; - if (message.incremental_from_pos != null && message.hasOwnProperty("incremental_from_pos")) - object.incremental_from_pos = message.incremental_from_pos; - if (message.upgrade_safe != null && message.hasOwnProperty("upgrade_safe")) - object.upgrade_safe = message.upgrade_safe; - if (message.backup_engine != null && message.hasOwnProperty("backup_engine")) { - object.backup_engine = message.backup_engine; - if (options.oneofs) - object._backup_engine = "backup_engine"; + object.parent = null; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.time_created_ns = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.time_created_ns = options.longs === String ? "0" : 0; + object.force_start_replication = false; + object.wait_position = ""; + object.semiSync = false; + object.heartbeat_interval = 0; } - if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) - object.mysql_shutdown_timeout = $root.vttime.Duration.toObject(message.mysql_shutdown_timeout, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = $root.topodata.TabletAlias.toObject(message.parent, options); + if (message.time_created_ns != null && message.hasOwnProperty("time_created_ns")) + if (typeof message.time_created_ns === "number") + object.time_created_ns = options.longs === String ? String(message.time_created_ns) : message.time_created_ns; + else + object.time_created_ns = options.longs === String ? $util.Long.prototype.toString.call(message.time_created_ns) : options.longs === Number ? new $util.LongBits(message.time_created_ns.low >>> 0, message.time_created_ns.high >>> 0).toNumber() : message.time_created_ns; + if (message.force_start_replication != null && message.hasOwnProperty("force_start_replication")) + object.force_start_replication = message.force_start_replication; + if (message.wait_position != null && message.hasOwnProperty("wait_position")) + object.wait_position = message.wait_position; + if (message.semiSync != null && message.hasOwnProperty("semiSync")) + object.semiSync = message.semiSync; + if (message.heartbeat_interval != null && message.hasOwnProperty("heartbeat_interval")) + object.heartbeat_interval = options.json && !isFinite(message.heartbeat_interval) ? String(message.heartbeat_interval) : message.heartbeat_interval; return object; }; /** - * Converts this BackupRequest to JSON. + * Converts this SetReplicationSourceRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.BackupRequest + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @instance * @returns {Object.} JSON object */ - BackupRequest.prototype.toJSON = function toJSON() { + SetReplicationSourceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BackupRequest + * Gets the default type url for SetReplicationSourceRequest * @function getTypeUrl - * @memberof tabletmanagerdata.BackupRequest + * @memberof tabletmanagerdata.SetReplicationSourceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetReplicationSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.BackupRequest"; + return typeUrlPrefix + "/tabletmanagerdata.SetReplicationSourceRequest"; }; - return BackupRequest; + return SetReplicationSourceRequest; })(); - tabletmanagerdata.BackupResponse = (function() { + tabletmanagerdata.SetReplicationSourceResponse = (function() { /** - * Properties of a BackupResponse. + * Properties of a SetReplicationSourceResponse. * @memberof tabletmanagerdata - * @interface IBackupResponse - * @property {logutil.IEvent|null} [event] BackupResponse event + * @interface ISetReplicationSourceResponse */ /** - * Constructs a new BackupResponse. + * Constructs a new SetReplicationSourceResponse. * @memberof tabletmanagerdata - * @classdesc Represents a BackupResponse. - * @implements IBackupResponse + * @classdesc Represents a SetReplicationSourceResponse. + * @implements ISetReplicationSourceResponse * @constructor - * @param {tabletmanagerdata.IBackupResponse=} [properties] Properties to set + * @param {tabletmanagerdata.ISetReplicationSourceResponse=} [properties] Properties to set */ - function BackupResponse(properties) { + function SetReplicationSourceResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72020,77 +72672,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * BackupResponse event. - * @member {logutil.IEvent|null|undefined} event - * @memberof tabletmanagerdata.BackupResponse - * @instance - */ - BackupResponse.prototype.event = null; - - /** - * Creates a new BackupResponse instance using the specified properties. + * Creates a new SetReplicationSourceResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.BackupResponse + * @memberof tabletmanagerdata.SetReplicationSourceResponse * @static - * @param {tabletmanagerdata.IBackupResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.BackupResponse} BackupResponse instance + * @param {tabletmanagerdata.ISetReplicationSourceResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.SetReplicationSourceResponse} SetReplicationSourceResponse instance */ - BackupResponse.create = function create(properties) { - return new BackupResponse(properties); + SetReplicationSourceResponse.create = function create(properties) { + return new SetReplicationSourceResponse(properties); }; /** - * Encodes the specified BackupResponse message. Does not implicitly {@link tabletmanagerdata.BackupResponse.verify|verify} messages. + * Encodes the specified SetReplicationSourceResponse message. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.BackupResponse + * @memberof tabletmanagerdata.SetReplicationSourceResponse * @static - * @param {tabletmanagerdata.IBackupResponse} message BackupResponse message or plain object to encode + * @param {tabletmanagerdata.ISetReplicationSourceResponse} message SetReplicationSourceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupResponse.encode = function encode(message, writer) { + SetReplicationSourceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - $root.logutil.Event.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.BackupResponse.verify|verify} messages. + * Encodes the specified SetReplicationSourceResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReplicationSourceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.BackupResponse + * @memberof tabletmanagerdata.SetReplicationSourceResponse * @static - * @param {tabletmanagerdata.IBackupResponse} message BackupResponse message or plain object to encode + * @param {tabletmanagerdata.ISetReplicationSourceResponse} message SetReplicationSourceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupResponse.encodeDelimited = function encodeDelimited(message, writer) { + SetReplicationSourceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupResponse message from the specified reader or buffer. + * Decodes a SetReplicationSourceResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.BackupResponse + * @memberof tabletmanagerdata.SetReplicationSourceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.BackupResponse} BackupResponse + * @returns {tabletmanagerdata.SetReplicationSourceResponse} SetReplicationSourceResponse * @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) { + SetReplicationSourceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.BackupResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReplicationSourceResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.event = $root.logutil.Event.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -72100,132 +72738,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a BackupResponse message from the specified reader or buffer, length delimited. + * Decodes a SetReplicationSourceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.BackupResponse + * @memberof tabletmanagerdata.SetReplicationSourceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.BackupResponse} BackupResponse + * @returns {tabletmanagerdata.SetReplicationSourceResponse} SetReplicationSourceResponse * @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) { + SetReplicationSourceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupResponse message. + * Verifies a SetReplicationSourceResponse message. * @function verify - * @memberof tabletmanagerdata.BackupResponse + * @memberof tabletmanagerdata.SetReplicationSourceResponse * @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) { + SetReplicationSourceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.event != null && message.hasOwnProperty("event")) { - let error = $root.logutil.Event.verify(message.event); - if (error) - return "event." + error; - } return null; }; /** - * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetReplicationSourceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.BackupResponse + * @memberof tabletmanagerdata.SetReplicationSourceResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.BackupResponse} BackupResponse + * @returns {tabletmanagerdata.SetReplicationSourceResponse} SetReplicationSourceResponse */ - BackupResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.BackupResponse) + SetReplicationSourceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SetReplicationSourceResponse) return object; - let message = new $root.tabletmanagerdata.BackupResponse(); - if (object.event != null) { - if (typeof object.event !== "object") - throw TypeError(".tabletmanagerdata.BackupResponse.event: object expected"); - message.event = $root.logutil.Event.fromObject(object.event); - } - return message; + return new $root.tabletmanagerdata.SetReplicationSourceResponse(); }; /** - * Creates a plain object from a BackupResponse message. Also converts values to other types if specified. + * Creates a plain object from a SetReplicationSourceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.BackupResponse + * @memberof tabletmanagerdata.SetReplicationSourceResponse * @static - * @param {tabletmanagerdata.BackupResponse} message BackupResponse + * @param {tabletmanagerdata.SetReplicationSourceResponse} message SetReplicationSourceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let 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; + SetReplicationSourceResponse.toObject = function toObject() { + return {}; }; /** - * Converts this BackupResponse to JSON. + * Converts this SetReplicationSourceResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.BackupResponse + * @memberof tabletmanagerdata.SetReplicationSourceResponse * @instance * @returns {Object.} JSON object */ - BackupResponse.prototype.toJSON = function toJSON() { + SetReplicationSourceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BackupResponse + * Gets the default type url for SetReplicationSourceResponse * @function getTypeUrl - * @memberof tabletmanagerdata.BackupResponse + * @memberof tabletmanagerdata.SetReplicationSourceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BackupResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetReplicationSourceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.BackupResponse"; + return typeUrlPrefix + "/tabletmanagerdata.SetReplicationSourceResponse"; }; - return BackupResponse; + return SetReplicationSourceResponse; })(); - tabletmanagerdata.RestoreFromBackupRequest = (function() { + tabletmanagerdata.ReplicaWasRestartedRequest = (function() { /** - * Properties of a RestoreFromBackupRequest. + * Properties of a ReplicaWasRestartedRequest. * @memberof tabletmanagerdata - * @interface IRestoreFromBackupRequest - * @property {vttime.ITime|null} [backup_time] RestoreFromBackupRequest backup_time - * @property {string|null} [restore_to_pos] RestoreFromBackupRequest restore_to_pos - * @property {boolean|null} [dry_run] RestoreFromBackupRequest dry_run - * @property {vttime.ITime|null} [restore_to_timestamp] RestoreFromBackupRequest restore_to_timestamp - * @property {Array.|null} [allowed_backup_engines] RestoreFromBackupRequest allowed_backup_engines + * @interface IReplicaWasRestartedRequest + * @property {topodata.ITabletAlias|null} [parent] ReplicaWasRestartedRequest parent */ /** - * Constructs a new RestoreFromBackupRequest. + * Constructs a new ReplicaWasRestartedRequest. * @memberof tabletmanagerdata - * @classdesc Represents a RestoreFromBackupRequest. - * @implements IRestoreFromBackupRequest - * @constructor - * @param {tabletmanagerdata.IRestoreFromBackupRequest=} [properties] Properties to set + * @classdesc Represents a ReplicaWasRestartedRequest. + * @implements IReplicaWasRestartedRequest + * @constructor + * @param {tabletmanagerdata.IReplicaWasRestartedRequest=} [properties] Properties to set */ - function RestoreFromBackupRequest(properties) { - this.allowed_backup_engines = []; + function ReplicaWasRestartedRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72233,134 +72848,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * RestoreFromBackupRequest backup_time. - * @member {vttime.ITime|null|undefined} backup_time - * @memberof tabletmanagerdata.RestoreFromBackupRequest - * @instance - */ - RestoreFromBackupRequest.prototype.backup_time = null; - - /** - * RestoreFromBackupRequest restore_to_pos. - * @member {string} restore_to_pos - * @memberof tabletmanagerdata.RestoreFromBackupRequest - * @instance - */ - RestoreFromBackupRequest.prototype.restore_to_pos = ""; - - /** - * RestoreFromBackupRequest dry_run. - * @member {boolean} dry_run - * @memberof tabletmanagerdata.RestoreFromBackupRequest - * @instance - */ - RestoreFromBackupRequest.prototype.dry_run = false; - - /** - * RestoreFromBackupRequest restore_to_timestamp. - * @member {vttime.ITime|null|undefined} restore_to_timestamp - * @memberof tabletmanagerdata.RestoreFromBackupRequest - * @instance - */ - RestoreFromBackupRequest.prototype.restore_to_timestamp = null; - - /** - * RestoreFromBackupRequest allowed_backup_engines. - * @member {Array.} allowed_backup_engines - * @memberof tabletmanagerdata.RestoreFromBackupRequest + * ReplicaWasRestartedRequest parent. + * @member {topodata.ITabletAlias|null|undefined} parent + * @memberof tabletmanagerdata.ReplicaWasRestartedRequest * @instance */ - RestoreFromBackupRequest.prototype.allowed_backup_engines = $util.emptyArray; + ReplicaWasRestartedRequest.prototype.parent = null; /** - * Creates a new RestoreFromBackupRequest instance using the specified properties. + * Creates a new ReplicaWasRestartedRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @memberof tabletmanagerdata.ReplicaWasRestartedRequest * @static - * @param {tabletmanagerdata.IRestoreFromBackupRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.RestoreFromBackupRequest} RestoreFromBackupRequest instance + * @param {tabletmanagerdata.IReplicaWasRestartedRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ReplicaWasRestartedRequest} ReplicaWasRestartedRequest instance */ - RestoreFromBackupRequest.create = function create(properties) { - return new RestoreFromBackupRequest(properties); + ReplicaWasRestartedRequest.create = function create(properties) { + return new ReplicaWasRestartedRequest(properties); }; /** - * Encodes the specified RestoreFromBackupRequest message. Does not implicitly {@link tabletmanagerdata.RestoreFromBackupRequest.verify|verify} messages. + * Encodes the specified ReplicaWasRestartedRequest message. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @memberof tabletmanagerdata.ReplicaWasRestartedRequest * @static - * @param {tabletmanagerdata.IRestoreFromBackupRequest} message RestoreFromBackupRequest message or plain object to encode + * @param {tabletmanagerdata.IReplicaWasRestartedRequest} message ReplicaWasRestartedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreFromBackupRequest.encode = function encode(message, writer) { + ReplicaWasRestartedRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.backup_time != null && Object.hasOwnProperty.call(message, "backup_time")) - $root.vttime.Time.encode(message.backup_time, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.restore_to_pos != null && Object.hasOwnProperty.call(message, "restore_to_pos")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.restore_to_pos); - if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dry_run); - if (message.restore_to_timestamp != null && Object.hasOwnProperty.call(message, "restore_to_timestamp")) - $root.vttime.Time.encode(message.restore_to_timestamp, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.allowed_backup_engines != null && message.allowed_backup_engines.length) - for (let i = 0; i < message.allowed_backup_engines.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.allowed_backup_engines[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + $root.topodata.TabletAlias.encode(message.parent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RestoreFromBackupRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.RestoreFromBackupRequest.verify|verify} messages. + * Encodes the specified ReplicaWasRestartedRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @memberof tabletmanagerdata.ReplicaWasRestartedRequest * @static - * @param {tabletmanagerdata.IRestoreFromBackupRequest} message RestoreFromBackupRequest message or plain object to encode + * @param {tabletmanagerdata.IReplicaWasRestartedRequest} message ReplicaWasRestartedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreFromBackupRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReplicaWasRestartedRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RestoreFromBackupRequest message from the specified reader or buffer. + * Decodes a ReplicaWasRestartedRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @memberof tabletmanagerdata.ReplicaWasRestartedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.RestoreFromBackupRequest} RestoreFromBackupRequest + * @returns {tabletmanagerdata.ReplicaWasRestartedRequest} ReplicaWasRestartedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreFromBackupRequest.decode = function decode(reader, length) { + ReplicaWasRestartedRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.RestoreFromBackupRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReplicaWasRestartedRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.backup_time = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 2: { - message.restore_to_pos = reader.string(); - break; - } - case 3: { - message.dry_run = reader.bool(); - break; - } - case 4: { - message.restore_to_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 5: { - if (!(message.allowed_backup_engines && message.allowed_backup_engines.length)) - message.allowed_backup_engines = []; - message.allowed_backup_engines.push(reader.string()); + message.parent = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -72372,178 +72928,126 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a RestoreFromBackupRequest message from the specified reader or buffer, length delimited. + * Decodes a ReplicaWasRestartedRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @memberof tabletmanagerdata.ReplicaWasRestartedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.RestoreFromBackupRequest} RestoreFromBackupRequest + * @returns {tabletmanagerdata.ReplicaWasRestartedRequest} ReplicaWasRestartedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreFromBackupRequest.decodeDelimited = function decodeDelimited(reader) { + ReplicaWasRestartedRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RestoreFromBackupRequest message. + * Verifies a ReplicaWasRestartedRequest message. * @function verify - * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @memberof tabletmanagerdata.ReplicaWasRestartedRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RestoreFromBackupRequest.verify = function verify(message) { + ReplicaWasRestartedRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.backup_time != null && message.hasOwnProperty("backup_time")) { - let error = $root.vttime.Time.verify(message.backup_time); - if (error) - return "backup_time." + error; - } - if (message.restore_to_pos != null && message.hasOwnProperty("restore_to_pos")) - if (!$util.isString(message.restore_to_pos)) - return "restore_to_pos: string expected"; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - if (typeof message.dry_run !== "boolean") - return "dry_run: boolean expected"; - if (message.restore_to_timestamp != null && message.hasOwnProperty("restore_to_timestamp")) { - let error = $root.vttime.Time.verify(message.restore_to_timestamp); + if (message.parent != null && message.hasOwnProperty("parent")) { + let error = $root.topodata.TabletAlias.verify(message.parent); if (error) - return "restore_to_timestamp." + error; - } - if (message.allowed_backup_engines != null && message.hasOwnProperty("allowed_backup_engines")) { - if (!Array.isArray(message.allowed_backup_engines)) - return "allowed_backup_engines: array expected"; - for (let i = 0; i < message.allowed_backup_engines.length; ++i) - if (!$util.isString(message.allowed_backup_engines[i])) - return "allowed_backup_engines: string[] expected"; + return "parent." + error; } return null; }; /** - * Creates a RestoreFromBackupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReplicaWasRestartedRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @memberof tabletmanagerdata.ReplicaWasRestartedRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.RestoreFromBackupRequest} RestoreFromBackupRequest + * @returns {tabletmanagerdata.ReplicaWasRestartedRequest} ReplicaWasRestartedRequest */ - RestoreFromBackupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.RestoreFromBackupRequest) + ReplicaWasRestartedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReplicaWasRestartedRequest) return object; - let message = new $root.tabletmanagerdata.RestoreFromBackupRequest(); - if (object.backup_time != null) { - if (typeof object.backup_time !== "object") - throw TypeError(".tabletmanagerdata.RestoreFromBackupRequest.backup_time: object expected"); - message.backup_time = $root.vttime.Time.fromObject(object.backup_time); - } - if (object.restore_to_pos != null) - message.restore_to_pos = String(object.restore_to_pos); - if (object.dry_run != null) - message.dry_run = Boolean(object.dry_run); - if (object.restore_to_timestamp != null) { - if (typeof object.restore_to_timestamp !== "object") - throw TypeError(".tabletmanagerdata.RestoreFromBackupRequest.restore_to_timestamp: object expected"); - message.restore_to_timestamp = $root.vttime.Time.fromObject(object.restore_to_timestamp); - } - if (object.allowed_backup_engines) { - if (!Array.isArray(object.allowed_backup_engines)) - throw TypeError(".tabletmanagerdata.RestoreFromBackupRequest.allowed_backup_engines: array expected"); - message.allowed_backup_engines = []; - for (let i = 0; i < object.allowed_backup_engines.length; ++i) - message.allowed_backup_engines[i] = String(object.allowed_backup_engines[i]); + let message = new $root.tabletmanagerdata.ReplicaWasRestartedRequest(); + if (object.parent != null) { + if (typeof object.parent !== "object") + throw TypeError(".tabletmanagerdata.ReplicaWasRestartedRequest.parent: object expected"); + message.parent = $root.topodata.TabletAlias.fromObject(object.parent); } return message; }; /** - * Creates a plain object from a RestoreFromBackupRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReplicaWasRestartedRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @memberof tabletmanagerdata.ReplicaWasRestartedRequest * @static - * @param {tabletmanagerdata.RestoreFromBackupRequest} message RestoreFromBackupRequest + * @param {tabletmanagerdata.ReplicaWasRestartedRequest} message ReplicaWasRestartedRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RestoreFromBackupRequest.toObject = function toObject(message, options) { + ReplicaWasRestartedRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.allowed_backup_engines = []; - if (options.defaults) { - object.backup_time = null; - object.restore_to_pos = ""; - object.dry_run = false; - object.restore_to_timestamp = null; - } - if (message.backup_time != null && message.hasOwnProperty("backup_time")) - object.backup_time = $root.vttime.Time.toObject(message.backup_time, options); - if (message.restore_to_pos != null && message.hasOwnProperty("restore_to_pos")) - object.restore_to_pos = message.restore_to_pos; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - object.dry_run = message.dry_run; - if (message.restore_to_timestamp != null && message.hasOwnProperty("restore_to_timestamp")) - object.restore_to_timestamp = $root.vttime.Time.toObject(message.restore_to_timestamp, options); - if (message.allowed_backup_engines && message.allowed_backup_engines.length) { - object.allowed_backup_engines = []; - for (let j = 0; j < message.allowed_backup_engines.length; ++j) - object.allowed_backup_engines[j] = message.allowed_backup_engines[j]; - } + if (options.defaults) + object.parent = null; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = $root.topodata.TabletAlias.toObject(message.parent, options); return object; }; /** - * Converts this RestoreFromBackupRequest to JSON. + * Converts this ReplicaWasRestartedRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @memberof tabletmanagerdata.ReplicaWasRestartedRequest * @instance * @returns {Object.} JSON object */ - RestoreFromBackupRequest.prototype.toJSON = function toJSON() { + ReplicaWasRestartedRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RestoreFromBackupRequest + * Gets the default type url for ReplicaWasRestartedRequest * @function getTypeUrl - * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @memberof tabletmanagerdata.ReplicaWasRestartedRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RestoreFromBackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReplicaWasRestartedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.RestoreFromBackupRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ReplicaWasRestartedRequest"; }; - return RestoreFromBackupRequest; + return ReplicaWasRestartedRequest; })(); - tabletmanagerdata.RestoreFromBackupResponse = (function() { + tabletmanagerdata.ReplicaWasRestartedResponse = (function() { /** - * Properties of a RestoreFromBackupResponse. + * Properties of a ReplicaWasRestartedResponse. * @memberof tabletmanagerdata - * @interface IRestoreFromBackupResponse - * @property {logutil.IEvent|null} [event] RestoreFromBackupResponse event + * @interface IReplicaWasRestartedResponse */ /** - * Constructs a new RestoreFromBackupResponse. + * Constructs a new ReplicaWasRestartedResponse. * @memberof tabletmanagerdata - * @classdesc Represents a RestoreFromBackupResponse. - * @implements IRestoreFromBackupResponse + * @classdesc Represents a ReplicaWasRestartedResponse. + * @implements IReplicaWasRestartedResponse * @constructor - * @param {tabletmanagerdata.IRestoreFromBackupResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IReplicaWasRestartedResponse=} [properties] Properties to set */ - function RestoreFromBackupResponse(properties) { + function ReplicaWasRestartedResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72551,77 +73055,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * RestoreFromBackupResponse event. - * @member {logutil.IEvent|null|undefined} event - * @memberof tabletmanagerdata.RestoreFromBackupResponse - * @instance - */ - RestoreFromBackupResponse.prototype.event = null; - - /** - * Creates a new RestoreFromBackupResponse instance using the specified properties. + * Creates a new ReplicaWasRestartedResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.RestoreFromBackupResponse + * @memberof tabletmanagerdata.ReplicaWasRestartedResponse * @static - * @param {tabletmanagerdata.IRestoreFromBackupResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.RestoreFromBackupResponse} RestoreFromBackupResponse instance + * @param {tabletmanagerdata.IReplicaWasRestartedResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ReplicaWasRestartedResponse} ReplicaWasRestartedResponse instance */ - RestoreFromBackupResponse.create = function create(properties) { - return new RestoreFromBackupResponse(properties); + ReplicaWasRestartedResponse.create = function create(properties) { + return new ReplicaWasRestartedResponse(properties); }; /** - * Encodes the specified RestoreFromBackupResponse message. Does not implicitly {@link tabletmanagerdata.RestoreFromBackupResponse.verify|verify} messages. + * Encodes the specified ReplicaWasRestartedResponse message. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.RestoreFromBackupResponse + * @memberof tabletmanagerdata.ReplicaWasRestartedResponse * @static - * @param {tabletmanagerdata.IRestoreFromBackupResponse} message RestoreFromBackupResponse message or plain object to encode + * @param {tabletmanagerdata.IReplicaWasRestartedResponse} message ReplicaWasRestartedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreFromBackupResponse.encode = function encode(message, writer) { + ReplicaWasRestartedResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - $root.logutil.Event.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RestoreFromBackupResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.RestoreFromBackupResponse.verify|verify} messages. + * Encodes the specified ReplicaWasRestartedResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReplicaWasRestartedResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.RestoreFromBackupResponse + * @memberof tabletmanagerdata.ReplicaWasRestartedResponse * @static - * @param {tabletmanagerdata.IRestoreFromBackupResponse} message RestoreFromBackupResponse message or plain object to encode + * @param {tabletmanagerdata.IReplicaWasRestartedResponse} message ReplicaWasRestartedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreFromBackupResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReplicaWasRestartedResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RestoreFromBackupResponse message from the specified reader or buffer. + * Decodes a ReplicaWasRestartedResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.RestoreFromBackupResponse + * @memberof tabletmanagerdata.ReplicaWasRestartedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.RestoreFromBackupResponse} RestoreFromBackupResponse + * @returns {tabletmanagerdata.ReplicaWasRestartedResponse} ReplicaWasRestartedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreFromBackupResponse.decode = function decode(reader, length) { + ReplicaWasRestartedResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.RestoreFromBackupResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReplicaWasRestartedResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.event = $root.logutil.Event.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -72631,140 +73121,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a RestoreFromBackupResponse message from the specified reader or buffer, length delimited. + * Decodes a ReplicaWasRestartedResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.RestoreFromBackupResponse + * @memberof tabletmanagerdata.ReplicaWasRestartedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.RestoreFromBackupResponse} RestoreFromBackupResponse + * @returns {tabletmanagerdata.ReplicaWasRestartedResponse} ReplicaWasRestartedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreFromBackupResponse.decodeDelimited = function decodeDelimited(reader) { + ReplicaWasRestartedResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RestoreFromBackupResponse message. + * Verifies a ReplicaWasRestartedResponse message. * @function verify - * @memberof tabletmanagerdata.RestoreFromBackupResponse + * @memberof tabletmanagerdata.ReplicaWasRestartedResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RestoreFromBackupResponse.verify = function verify(message) { + ReplicaWasRestartedResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.event != null && message.hasOwnProperty("event")) { - let error = $root.logutil.Event.verify(message.event); - if (error) - return "event." + error; - } return null; }; /** - * Creates a RestoreFromBackupResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReplicaWasRestartedResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.RestoreFromBackupResponse + * @memberof tabletmanagerdata.ReplicaWasRestartedResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.RestoreFromBackupResponse} RestoreFromBackupResponse + * @returns {tabletmanagerdata.ReplicaWasRestartedResponse} ReplicaWasRestartedResponse */ - RestoreFromBackupResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.RestoreFromBackupResponse) + ReplicaWasRestartedResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReplicaWasRestartedResponse) return object; - let message = new $root.tabletmanagerdata.RestoreFromBackupResponse(); - if (object.event != null) { - if (typeof object.event !== "object") - throw TypeError(".tabletmanagerdata.RestoreFromBackupResponse.event: object expected"); - message.event = $root.logutil.Event.fromObject(object.event); - } - return message; + return new $root.tabletmanagerdata.ReplicaWasRestartedResponse(); }; /** - * Creates a plain object from a RestoreFromBackupResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReplicaWasRestartedResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.RestoreFromBackupResponse + * @memberof tabletmanagerdata.ReplicaWasRestartedResponse * @static - * @param {tabletmanagerdata.RestoreFromBackupResponse} message RestoreFromBackupResponse + * @param {tabletmanagerdata.ReplicaWasRestartedResponse} message ReplicaWasRestartedResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RestoreFromBackupResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let 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; + ReplicaWasRestartedResponse.toObject = function toObject() { + return {}; }; /** - * Converts this RestoreFromBackupResponse to JSON. + * Converts this ReplicaWasRestartedResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.RestoreFromBackupResponse + * @memberof tabletmanagerdata.ReplicaWasRestartedResponse * @instance * @returns {Object.} JSON object */ - RestoreFromBackupResponse.prototype.toJSON = function toJSON() { + ReplicaWasRestartedResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RestoreFromBackupResponse + * Gets the default type url for ReplicaWasRestartedResponse * @function getTypeUrl - * @memberof tabletmanagerdata.RestoreFromBackupResponse + * @memberof tabletmanagerdata.ReplicaWasRestartedResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RestoreFromBackupResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReplicaWasRestartedResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.RestoreFromBackupResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ReplicaWasRestartedResponse"; }; - return RestoreFromBackupResponse; + return ReplicaWasRestartedResponse; })(); - tabletmanagerdata.CreateVReplicationWorkflowRequest = (function() { + tabletmanagerdata.StopReplicationAndGetStatusRequest = (function() { /** - * Properties of a CreateVReplicationWorkflowRequest. + * Properties of a StopReplicationAndGetStatusRequest. * @memberof tabletmanagerdata - * @interface ICreateVReplicationWorkflowRequest - * @property {string|null} [workflow] CreateVReplicationWorkflowRequest workflow - * @property {Array.|null} [binlog_source] CreateVReplicationWorkflowRequest binlog_source - * @property {Array.|null} [cells] CreateVReplicationWorkflowRequest cells - * @property {Array.|null} [tablet_types] CreateVReplicationWorkflowRequest tablet_types - * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] CreateVReplicationWorkflowRequest tablet_selection_preference - * @property {binlogdata.VReplicationWorkflowType|null} [workflow_type] CreateVReplicationWorkflowRequest workflow_type - * @property {binlogdata.VReplicationWorkflowSubType|null} [workflow_sub_type] CreateVReplicationWorkflowRequest workflow_sub_type - * @property {boolean|null} [defer_secondary_keys] CreateVReplicationWorkflowRequest defer_secondary_keys - * @property {boolean|null} [auto_start] CreateVReplicationWorkflowRequest auto_start - * @property {boolean|null} [stop_after_copy] CreateVReplicationWorkflowRequest stop_after_copy - * @property {string|null} [options] CreateVReplicationWorkflowRequest options + * @interface IStopReplicationAndGetStatusRequest + * @property {replicationdata.StopReplicationMode|null} [stop_replication_mode] StopReplicationAndGetStatusRequest stop_replication_mode */ /** - * Constructs a new CreateVReplicationWorkflowRequest. + * Constructs a new StopReplicationAndGetStatusRequest. * @memberof tabletmanagerdata - * @classdesc Represents a CreateVReplicationWorkflowRequest. - * @implements ICreateVReplicationWorkflowRequest + * @classdesc Represents a StopReplicationAndGetStatusRequest. + * @implements IStopReplicationAndGetStatusRequest * @constructor - * @param {tabletmanagerdata.ICreateVReplicationWorkflowRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IStopReplicationAndGetStatusRequest=} [properties] Properties to set */ - function CreateVReplicationWorkflowRequest(properties) { - this.binlog_source = []; - this.cells = []; - this.tablet_types = []; + function StopReplicationAndGetStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72772,232 +73231,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * CreateVReplicationWorkflowRequest workflow. - * @member {string} workflow - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest - * @instance - */ - CreateVReplicationWorkflowRequest.prototype.workflow = ""; - - /** - * CreateVReplicationWorkflowRequest binlog_source. - * @member {Array.} binlog_source - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest - * @instance - */ - CreateVReplicationWorkflowRequest.prototype.binlog_source = $util.emptyArray; - - /** - * CreateVReplicationWorkflowRequest cells. - * @member {Array.} cells - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest - * @instance - */ - CreateVReplicationWorkflowRequest.prototype.cells = $util.emptyArray; - - /** - * CreateVReplicationWorkflowRequest tablet_types. - * @member {Array.} tablet_types - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest - * @instance - */ - CreateVReplicationWorkflowRequest.prototype.tablet_types = $util.emptyArray; - - /** - * CreateVReplicationWorkflowRequest tablet_selection_preference. - * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest - * @instance - */ - CreateVReplicationWorkflowRequest.prototype.tablet_selection_preference = 0; - - /** - * CreateVReplicationWorkflowRequest workflow_type. - * @member {binlogdata.VReplicationWorkflowType} workflow_type - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest - * @instance - */ - CreateVReplicationWorkflowRequest.prototype.workflow_type = 0; - - /** - * CreateVReplicationWorkflowRequest workflow_sub_type. - * @member {binlogdata.VReplicationWorkflowSubType} workflow_sub_type - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest - * @instance - */ - CreateVReplicationWorkflowRequest.prototype.workflow_sub_type = 0; - - /** - * CreateVReplicationWorkflowRequest defer_secondary_keys. - * @member {boolean} defer_secondary_keys - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest - * @instance - */ - CreateVReplicationWorkflowRequest.prototype.defer_secondary_keys = false; - - /** - * CreateVReplicationWorkflowRequest auto_start. - * @member {boolean} auto_start - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest - * @instance - */ - CreateVReplicationWorkflowRequest.prototype.auto_start = false; - - /** - * CreateVReplicationWorkflowRequest stop_after_copy. - * @member {boolean} stop_after_copy - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest - * @instance - */ - CreateVReplicationWorkflowRequest.prototype.stop_after_copy = false; - - /** - * CreateVReplicationWorkflowRequest options. - * @member {string} options - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * StopReplicationAndGetStatusRequest stop_replication_mode. + * @member {replicationdata.StopReplicationMode} stop_replication_mode + * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest * @instance */ - CreateVReplicationWorkflowRequest.prototype.options = ""; + StopReplicationAndGetStatusRequest.prototype.stop_replication_mode = 0; /** - * Creates a new CreateVReplicationWorkflowRequest instance using the specified properties. + * Creates a new StopReplicationAndGetStatusRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest * @static - * @param {tabletmanagerdata.ICreateVReplicationWorkflowRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.CreateVReplicationWorkflowRequest} CreateVReplicationWorkflowRequest instance + * @param {tabletmanagerdata.IStopReplicationAndGetStatusRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.StopReplicationAndGetStatusRequest} StopReplicationAndGetStatusRequest instance */ - CreateVReplicationWorkflowRequest.create = function create(properties) { - return new CreateVReplicationWorkflowRequest(properties); + StopReplicationAndGetStatusRequest.create = function create(properties) { + return new StopReplicationAndGetStatusRequest(properties); }; /** - * Encodes the specified CreateVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowRequest.verify|verify} messages. + * Encodes the specified StopReplicationAndGetStatusRequest message. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest * @static - * @param {tabletmanagerdata.ICreateVReplicationWorkflowRequest} message CreateVReplicationWorkflowRequest message or plain object to encode + * @param {tabletmanagerdata.IStopReplicationAndGetStatusRequest} message StopReplicationAndGetStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVReplicationWorkflowRequest.encode = function encode(message, writer) { + StopReplicationAndGetStatusRequest.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.binlog_source != null && message.binlog_source.length) - for (let i = 0; i < message.binlog_source.length; ++i) - $root.binlogdata.BinlogSource.encode(message.binlog_source[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); - if (message.tablet_types != null && message.tablet_types.length) { - writer.uint32(/* id 4, wireType 2 =*/34).fork(); - for (let i = 0; i < message.tablet_types.length; ++i) - writer.int32(message.tablet_types[i]); - writer.ldelim(); - } - if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.tablet_selection_preference); - if (message.workflow_type != null && Object.hasOwnProperty.call(message, "workflow_type")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.workflow_type); - if (message.workflow_sub_type != null && Object.hasOwnProperty.call(message, "workflow_sub_type")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.workflow_sub_type); - if (message.defer_secondary_keys != null && Object.hasOwnProperty.call(message, "defer_secondary_keys")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.defer_secondary_keys); - if (message.auto_start != null && Object.hasOwnProperty.call(message, "auto_start")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.auto_start); - if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.stop_after_copy); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.options); + if (message.stop_replication_mode != null && Object.hasOwnProperty.call(message, "stop_replication_mode")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.stop_replication_mode); return writer; }; /** - * Encodes the specified CreateVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowRequest.verify|verify} messages. + * Encodes the specified StopReplicationAndGetStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest * @static - * @param {tabletmanagerdata.ICreateVReplicationWorkflowRequest} message CreateVReplicationWorkflowRequest message or plain object to encode + * @param {tabletmanagerdata.IStopReplicationAndGetStatusRequest} message StopReplicationAndGetStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVReplicationWorkflowRequest.encodeDelimited = function encodeDelimited(message, writer) { + StopReplicationAndGetStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateVReplicationWorkflowRequest message from the specified reader or buffer. + * Decodes a StopReplicationAndGetStatusRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.CreateVReplicationWorkflowRequest} CreateVReplicationWorkflowRequest + * @returns {tabletmanagerdata.StopReplicationAndGetStatusRequest} StopReplicationAndGetStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVReplicationWorkflowRequest.decode = function decode(reader, length) { + StopReplicationAndGetStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CreateVReplicationWorkflowRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StopReplicationAndGetStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workflow = reader.string(); - break; - } - case 2: { - if (!(message.binlog_source && message.binlog_source.length)) - message.binlog_source = []; - message.binlog_source.push($root.binlogdata.BinlogSource.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); - break; - } - case 4: { - if (!(message.tablet_types && message.tablet_types.length)) - message.tablet_types = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.tablet_types.push(reader.int32()); - } else - message.tablet_types.push(reader.int32()); - break; - } - case 5: { - message.tablet_selection_preference = reader.int32(); - break; - } - case 6: { - message.workflow_type = reader.int32(); - break; - } - case 7: { - message.workflow_sub_type = reader.int32(); - break; - } - case 8: { - message.defer_secondary_keys = reader.bool(); - break; - } - case 9: { - message.auto_start = reader.bool(); - break; - } - case 10: { - message.stop_after_copy = reader.bool(); - break; - } - case 11: { - message.options = reader.string(); + message.stop_replication_mode = reader.int32(); break; } default: @@ -73009,397 +73311,141 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a CreateVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationAndGetStatusRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.CreateVReplicationWorkflowRequest} CreateVReplicationWorkflowRequest + * @returns {tabletmanagerdata.StopReplicationAndGetStatusRequest} StopReplicationAndGetStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVReplicationWorkflowRequest.decodeDelimited = function decodeDelimited(reader) { + StopReplicationAndGetStatusRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateVReplicationWorkflowRequest message. + * Verifies a StopReplicationAndGetStatusRequest message. * @function verify - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateVReplicationWorkflowRequest.verify = function verify(message) { + StopReplicationAndGetStatusRequest.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.binlog_source != null && message.hasOwnProperty("binlog_source")) { - if (!Array.isArray(message.binlog_source)) - return "binlog_source: array expected"; - for (let i = 0; i < message.binlog_source.length; ++i) { - let error = $root.binlogdata.BinlogSource.verify(message.binlog_source[i]); - if (error) - return "binlog_source." + error; - } - } - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { - if (!Array.isArray(message.tablet_types)) - return "tablet_types: array expected"; - for (let i = 0; i < message.tablet_types.length; ++i) - switch (message.tablet_types[i]) { - default: - return "tablet_types: enum value[] expected"; - case 0: - case 1: - case 1: - case 2: - case 3: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - switch (message.tablet_selection_preference) { - default: - return "tablet_selection_preference: enum value expected"; - case 0: - case 1: - case 3: - break; - } - if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) - switch (message.workflow_type) { - default: - return "workflow_type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.workflow_sub_type != null && message.hasOwnProperty("workflow_sub_type")) - switch (message.workflow_sub_type) { + if (message.stop_replication_mode != null && message.hasOwnProperty("stop_replication_mode")) + switch (message.stop_replication_mode) { default: - return "workflow_sub_type: enum value expected"; + return "stop_replication_mode: enum value expected"; case 0: case 1: - case 2: break; } - if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) - if (typeof message.defer_secondary_keys !== "boolean") - return "defer_secondary_keys: boolean expected"; - if (message.auto_start != null && message.hasOwnProperty("auto_start")) - if (typeof message.auto_start !== "boolean") - return "auto_start: boolean 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.options != null && message.hasOwnProperty("options")) - if (!$util.isString(message.options)) - return "options: string expected"; return null; }; /** - * Creates a CreateVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationAndGetStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.CreateVReplicationWorkflowRequest} CreateVReplicationWorkflowRequest + * @returns {tabletmanagerdata.StopReplicationAndGetStatusRequest} StopReplicationAndGetStatusRequest */ - CreateVReplicationWorkflowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.CreateVReplicationWorkflowRequest) + StopReplicationAndGetStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.StopReplicationAndGetStatusRequest) return object; - let message = new $root.tabletmanagerdata.CreateVReplicationWorkflowRequest(); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.binlog_source) { - if (!Array.isArray(object.binlog_source)) - throw TypeError(".tabletmanagerdata.CreateVReplicationWorkflowRequest.binlog_source: array expected"); - message.binlog_source = []; - for (let i = 0; i < object.binlog_source.length; ++i) { - if (typeof object.binlog_source[i] !== "object") - throw TypeError(".tabletmanagerdata.CreateVReplicationWorkflowRequest.binlog_source: object expected"); - message.binlog_source[i] = $root.binlogdata.BinlogSource.fromObject(object.binlog_source[i]); - } - } - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".tabletmanagerdata.CreateVReplicationWorkflowRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } - if (object.tablet_types) { - if (!Array.isArray(object.tablet_types)) - throw TypeError(".tabletmanagerdata.CreateVReplicationWorkflowRequest.tablet_types: array expected"); - message.tablet_types = []; - for (let i = 0; i < object.tablet_types.length; ++i) - switch (object.tablet_types[i]) { - default: - if (typeof object.tablet_types[i] === "number") { - message.tablet_types[i] = object.tablet_types[i]; - break; - } - case "UNKNOWN": - case 0: - message.tablet_types[i] = 0; - break; - case "PRIMARY": - case 1: - message.tablet_types[i] = 1; - break; - case "MASTER": - case 1: - message.tablet_types[i] = 1; - break; - case "REPLICA": - case 2: - message.tablet_types[i] = 2; - break; - case "RDONLY": - case 3: - message.tablet_types[i] = 3; - break; - case "BATCH": - case 3: - message.tablet_types[i] = 3; - break; - case "SPARE": - case 4: - message.tablet_types[i] = 4; - break; - case "EXPERIMENTAL": - case 5: - message.tablet_types[i] = 5; - break; - case "BACKUP": - case 6: - message.tablet_types[i] = 6; - break; - case "RESTORE": - case 7: - message.tablet_types[i] = 7; - break; - case "DRAINED": - case 8: - message.tablet_types[i] = 8; - break; - } - } - switch (object.tablet_selection_preference) { - default: - if (typeof object.tablet_selection_preference === "number") { - message.tablet_selection_preference = object.tablet_selection_preference; - break; - } - break; - case "ANY": - case 0: - message.tablet_selection_preference = 0; - break; - case "INORDER": - case 1: - message.tablet_selection_preference = 1; - break; - case "UNKNOWN": - case 3: - message.tablet_selection_preference = 3; - break; - } - switch (object.workflow_type) { - default: - if (typeof object.workflow_type === "number") { - message.workflow_type = object.workflow_type; - break; - } - break; - case "Materialize": - case 0: - message.workflow_type = 0; - break; - case "MoveTables": - case 1: - message.workflow_type = 1; - break; - case "CreateLookupIndex": - case 2: - message.workflow_type = 2; - break; - case "Migrate": - case 3: - message.workflow_type = 3; - break; - case "Reshard": - case 4: - message.workflow_type = 4; - break; - case "OnlineDDL": - case 5: - message.workflow_type = 5; - break; - } - switch (object.workflow_sub_type) { + let message = new $root.tabletmanagerdata.StopReplicationAndGetStatusRequest(); + switch (object.stop_replication_mode) { default: - if (typeof object.workflow_sub_type === "number") { - message.workflow_sub_type = object.workflow_sub_type; + if (typeof object.stop_replication_mode === "number") { + message.stop_replication_mode = object.stop_replication_mode; break; } break; - case "None": + case "IOANDSQLTHREAD": case 0: - message.workflow_sub_type = 0; + message.stop_replication_mode = 0; break; - case "Partial": + case "IOTHREADONLY": case 1: - message.workflow_sub_type = 1; - break; - case "AtomicCopy": - case 2: - message.workflow_sub_type = 2; + message.stop_replication_mode = 1; break; } - if (object.defer_secondary_keys != null) - message.defer_secondary_keys = Boolean(object.defer_secondary_keys); - if (object.auto_start != null) - message.auto_start = Boolean(object.auto_start); - if (object.stop_after_copy != null) - message.stop_after_copy = Boolean(object.stop_after_copy); - if (object.options != null) - message.options = String(object.options); return message; }; /** - * Creates a plain object from a CreateVReplicationWorkflowRequest message. Also converts values to other types if specified. + * Creates a plain object from a StopReplicationAndGetStatusRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest * @static - * @param {tabletmanagerdata.CreateVReplicationWorkflowRequest} message CreateVReplicationWorkflowRequest + * @param {tabletmanagerdata.StopReplicationAndGetStatusRequest} message StopReplicationAndGetStatusRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateVReplicationWorkflowRequest.toObject = function toObject(message, options) { + StopReplicationAndGetStatusRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.binlog_source = []; - object.cells = []; - object.tablet_types = []; - } - if (options.defaults) { - object.workflow = ""; - object.tablet_selection_preference = options.enums === String ? "ANY" : 0; - object.workflow_type = options.enums === String ? "Materialize" : 0; - object.workflow_sub_type = options.enums === String ? "None" : 0; - object.defer_secondary_keys = false; - object.auto_start = false; - object.stop_after_copy = false; - object.options = ""; - } - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.binlog_source && message.binlog_source.length) { - object.binlog_source = []; - for (let j = 0; j < message.binlog_source.length; ++j) - object.binlog_source[j] = $root.binlogdata.BinlogSource.toObject(message.binlog_source[j], options); - } - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } - if (message.tablet_types && message.tablet_types.length) { - object.tablet_types = []; - for (let j = 0; j < message.tablet_types.length; ++j) - object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; - } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; - if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) - object.workflow_type = options.enums === String ? $root.binlogdata.VReplicationWorkflowType[message.workflow_type] === undefined ? message.workflow_type : $root.binlogdata.VReplicationWorkflowType[message.workflow_type] : message.workflow_type; - if (message.workflow_sub_type != null && message.hasOwnProperty("workflow_sub_type")) - object.workflow_sub_type = options.enums === String ? $root.binlogdata.VReplicationWorkflowSubType[message.workflow_sub_type] === undefined ? message.workflow_sub_type : $root.binlogdata.VReplicationWorkflowSubType[message.workflow_sub_type] : message.workflow_sub_type; - if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) - object.defer_secondary_keys = message.defer_secondary_keys; - if (message.auto_start != null && message.hasOwnProperty("auto_start")) - object.auto_start = message.auto_start; - if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) - object.stop_after_copy = message.stop_after_copy; - if (message.options != null && message.hasOwnProperty("options")) - object.options = message.options; + if (options.defaults) + object.stop_replication_mode = options.enums === String ? "IOANDSQLTHREAD" : 0; + if (message.stop_replication_mode != null && message.hasOwnProperty("stop_replication_mode")) + object.stop_replication_mode = options.enums === String ? $root.replicationdata.StopReplicationMode[message.stop_replication_mode] === undefined ? message.stop_replication_mode : $root.replicationdata.StopReplicationMode[message.stop_replication_mode] : message.stop_replication_mode; return object; }; /** - * Converts this CreateVReplicationWorkflowRequest to JSON. + * Converts this StopReplicationAndGetStatusRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest * @instance * @returns {Object.} JSON object */ - CreateVReplicationWorkflowRequest.prototype.toJSON = function toJSON() { + StopReplicationAndGetStatusRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateVReplicationWorkflowRequest + * Gets the default type url for StopReplicationAndGetStatusRequest * @function getTypeUrl - * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.StopReplicationAndGetStatusRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateVReplicationWorkflowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StopReplicationAndGetStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.CreateVReplicationWorkflowRequest"; + return typeUrlPrefix + "/tabletmanagerdata.StopReplicationAndGetStatusRequest"; }; - return CreateVReplicationWorkflowRequest; + return StopReplicationAndGetStatusRequest; })(); - tabletmanagerdata.CreateVReplicationWorkflowResponse = (function() { + tabletmanagerdata.StopReplicationAndGetStatusResponse = (function() { /** - * Properties of a CreateVReplicationWorkflowResponse. + * Properties of a StopReplicationAndGetStatusResponse. * @memberof tabletmanagerdata - * @interface ICreateVReplicationWorkflowResponse - * @property {query.IQueryResult|null} [result] CreateVReplicationWorkflowResponse result + * @interface IStopReplicationAndGetStatusResponse + * @property {replicationdata.IStopReplicationStatus|null} [status] StopReplicationAndGetStatusResponse status */ /** - * Constructs a new CreateVReplicationWorkflowResponse. + * Constructs a new StopReplicationAndGetStatusResponse. * @memberof tabletmanagerdata - * @classdesc Represents a CreateVReplicationWorkflowResponse. - * @implements ICreateVReplicationWorkflowResponse + * @classdesc Represents a StopReplicationAndGetStatusResponse. + * @implements IStopReplicationAndGetStatusResponse * @constructor - * @param {tabletmanagerdata.ICreateVReplicationWorkflowResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IStopReplicationAndGetStatusResponse=} [properties] Properties to set */ - function CreateVReplicationWorkflowResponse(properties) { + function StopReplicationAndGetStatusResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73407,75 +73453,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * CreateVReplicationWorkflowResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse + * StopReplicationAndGetStatusResponse status. + * @member {replicationdata.IStopReplicationStatus|null|undefined} status + * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse * @instance */ - CreateVReplicationWorkflowResponse.prototype.result = null; + StopReplicationAndGetStatusResponse.prototype.status = null; /** - * Creates a new CreateVReplicationWorkflowResponse instance using the specified properties. + * Creates a new StopReplicationAndGetStatusResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse * @static - * @param {tabletmanagerdata.ICreateVReplicationWorkflowResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.CreateVReplicationWorkflowResponse} CreateVReplicationWorkflowResponse instance + * @param {tabletmanagerdata.IStopReplicationAndGetStatusResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.StopReplicationAndGetStatusResponse} StopReplicationAndGetStatusResponse instance */ - CreateVReplicationWorkflowResponse.create = function create(properties) { - return new CreateVReplicationWorkflowResponse(properties); + StopReplicationAndGetStatusResponse.create = function create(properties) { + return new StopReplicationAndGetStatusResponse(properties); }; /** - * Encodes the specified CreateVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowResponse.verify|verify} messages. + * Encodes the specified StopReplicationAndGetStatusResponse message. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse * @static - * @param {tabletmanagerdata.ICreateVReplicationWorkflowResponse} message CreateVReplicationWorkflowResponse message or plain object to encode + * @param {tabletmanagerdata.IStopReplicationAndGetStatusResponse} message StopReplicationAndGetStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVReplicationWorkflowResponse.encode = function encode(message, writer) { + StopReplicationAndGetStatusResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.replicationdata.StopReplicationStatus.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowResponse.verify|verify} messages. + * Encodes the specified StopReplicationAndGetStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.StopReplicationAndGetStatusResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse * @static - * @param {tabletmanagerdata.ICreateVReplicationWorkflowResponse} message CreateVReplicationWorkflowResponse message or plain object to encode + * @param {tabletmanagerdata.IStopReplicationAndGetStatusResponse} message StopReplicationAndGetStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVReplicationWorkflowResponse.encodeDelimited = function encodeDelimited(message, writer) { + StopReplicationAndGetStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateVReplicationWorkflowResponse message from the specified reader or buffer. + * Decodes a StopReplicationAndGetStatusResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.CreateVReplicationWorkflowResponse} CreateVReplicationWorkflowResponse + * @returns {tabletmanagerdata.StopReplicationAndGetStatusResponse} StopReplicationAndGetStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVReplicationWorkflowResponse.decode = function decode(reader, length) { + StopReplicationAndGetStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CreateVReplicationWorkflowResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.StopReplicationAndGetStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + case 2: { + message.status = $root.replicationdata.StopReplicationStatus.decode(reader, reader.uint32()); break; } default: @@ -73487,129 +73533,127 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a CreateVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationAndGetStatusResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.CreateVReplicationWorkflowResponse} CreateVReplicationWorkflowResponse + * @returns {tabletmanagerdata.StopReplicationAndGetStatusResponse} StopReplicationAndGetStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVReplicationWorkflowResponse.decodeDelimited = function decodeDelimited(reader) { + StopReplicationAndGetStatusResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateVReplicationWorkflowResponse message. + * Verifies a StopReplicationAndGetStatusResponse message. * @function verify - * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateVReplicationWorkflowResponse.verify = function verify(message) { + StopReplicationAndGetStatusResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); + if (message.status != null && message.hasOwnProperty("status")) { + let error = $root.replicationdata.StopReplicationStatus.verify(message.status); if (error) - return "result." + error; + return "status." + error; } return null; }; /** - * Creates a CreateVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationAndGetStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.CreateVReplicationWorkflowResponse} CreateVReplicationWorkflowResponse + * @returns {tabletmanagerdata.StopReplicationAndGetStatusResponse} StopReplicationAndGetStatusResponse */ - CreateVReplicationWorkflowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.CreateVReplicationWorkflowResponse) + StopReplicationAndGetStatusResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.StopReplicationAndGetStatusResponse) return object; - let message = new $root.tabletmanagerdata.CreateVReplicationWorkflowResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".tabletmanagerdata.CreateVReplicationWorkflowResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); + let message = new $root.tabletmanagerdata.StopReplicationAndGetStatusResponse(); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".tabletmanagerdata.StopReplicationAndGetStatusResponse.status: object expected"); + message.status = $root.replicationdata.StopReplicationStatus.fromObject(object.status); } return message; }; /** - * Creates a plain object from a CreateVReplicationWorkflowResponse message. Also converts values to other types if specified. + * Creates a plain object from a StopReplicationAndGetStatusResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse * @static - * @param {tabletmanagerdata.CreateVReplicationWorkflowResponse} message CreateVReplicationWorkflowResponse + * @param {tabletmanagerdata.StopReplicationAndGetStatusResponse} message StopReplicationAndGetStatusResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateVReplicationWorkflowResponse.toObject = function toObject(message, options) { + StopReplicationAndGetStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); + object.status = null; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.replicationdata.StopReplicationStatus.toObject(message.status, options); return object; }; /** - * Converts this CreateVReplicationWorkflowResponse to JSON. + * Converts this StopReplicationAndGetStatusResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse * @instance * @returns {Object.} JSON object */ - CreateVReplicationWorkflowResponse.prototype.toJSON = function toJSON() { + StopReplicationAndGetStatusResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateVReplicationWorkflowResponse + * Gets the default type url for StopReplicationAndGetStatusResponse * @function getTypeUrl - * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.StopReplicationAndGetStatusResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateVReplicationWorkflowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StopReplicationAndGetStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.CreateVReplicationWorkflowResponse"; + return typeUrlPrefix + "/tabletmanagerdata.StopReplicationAndGetStatusResponse"; }; - return CreateVReplicationWorkflowResponse; + return StopReplicationAndGetStatusResponse; })(); - tabletmanagerdata.DeleteTableDataRequest = (function() { + tabletmanagerdata.PromoteReplicaRequest = (function() { /** - * Properties of a DeleteTableDataRequest. + * Properties of a PromoteReplicaRequest. * @memberof tabletmanagerdata - * @interface IDeleteTableDataRequest - * @property {Object.|null} [table_filters] DeleteTableDataRequest table_filters - * @property {number|Long|null} [batch_size] DeleteTableDataRequest batch_size + * @interface IPromoteReplicaRequest + * @property {boolean|null} [semiSync] PromoteReplicaRequest semiSync */ /** - * Constructs a new DeleteTableDataRequest. + * Constructs a new PromoteReplicaRequest. * @memberof tabletmanagerdata - * @classdesc Represents a DeleteTableDataRequest. - * @implements IDeleteTableDataRequest + * @classdesc Represents a PromoteReplicaRequest. + * @implements IPromoteReplicaRequest * @constructor - * @param {tabletmanagerdata.IDeleteTableDataRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IPromoteReplicaRequest=} [properties] Properties to set */ - function DeleteTableDataRequest(properties) { - this.table_filters = {}; + function PromoteReplicaRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73617,109 +73661,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * DeleteTableDataRequest table_filters. - * @member {Object.} table_filters - * @memberof tabletmanagerdata.DeleteTableDataRequest - * @instance - */ - DeleteTableDataRequest.prototype.table_filters = $util.emptyObject; - - /** - * DeleteTableDataRequest batch_size. - * @member {number|Long} batch_size - * @memberof tabletmanagerdata.DeleteTableDataRequest + * PromoteReplicaRequest semiSync. + * @member {boolean} semiSync + * @memberof tabletmanagerdata.PromoteReplicaRequest * @instance */ - DeleteTableDataRequest.prototype.batch_size = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PromoteReplicaRequest.prototype.semiSync = false; /** - * Creates a new DeleteTableDataRequest instance using the specified properties. + * Creates a new PromoteReplicaRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.DeleteTableDataRequest + * @memberof tabletmanagerdata.PromoteReplicaRequest * @static - * @param {tabletmanagerdata.IDeleteTableDataRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.DeleteTableDataRequest} DeleteTableDataRequest instance + * @param {tabletmanagerdata.IPromoteReplicaRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.PromoteReplicaRequest} PromoteReplicaRequest instance */ - DeleteTableDataRequest.create = function create(properties) { - return new DeleteTableDataRequest(properties); + PromoteReplicaRequest.create = function create(properties) { + return new PromoteReplicaRequest(properties); }; /** - * Encodes the specified DeleteTableDataRequest message. Does not implicitly {@link tabletmanagerdata.DeleteTableDataRequest.verify|verify} messages. + * Encodes the specified PromoteReplicaRequest message. Does not implicitly {@link tabletmanagerdata.PromoteReplicaRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.DeleteTableDataRequest + * @memberof tabletmanagerdata.PromoteReplicaRequest * @static - * @param {tabletmanagerdata.IDeleteTableDataRequest} message DeleteTableDataRequest message or plain object to encode + * @param {tabletmanagerdata.IPromoteReplicaRequest} message PromoteReplicaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTableDataRequest.encode = function encode(message, writer) { + PromoteReplicaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.table_filters != null && Object.hasOwnProperty.call(message, "table_filters")) - for (let keys = Object.keys(message.table_filters), 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.table_filters[keys[i]]).ldelim(); - if (message.batch_size != null && Object.hasOwnProperty.call(message, "batch_size")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.batch_size); + if (message.semiSync != null && Object.hasOwnProperty.call(message, "semiSync")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.semiSync); return writer; }; /** - * Encodes the specified DeleteTableDataRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteTableDataRequest.verify|verify} messages. + * Encodes the specified PromoteReplicaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PromoteReplicaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.DeleteTableDataRequest + * @memberof tabletmanagerdata.PromoteReplicaRequest * @static - * @param {tabletmanagerdata.IDeleteTableDataRequest} message DeleteTableDataRequest message or plain object to encode + * @param {tabletmanagerdata.IPromoteReplicaRequest} message PromoteReplicaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTableDataRequest.encodeDelimited = function encodeDelimited(message, writer) { + PromoteReplicaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTableDataRequest message from the specified reader or buffer. + * Decodes a PromoteReplicaRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.DeleteTableDataRequest + * @memberof tabletmanagerdata.PromoteReplicaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.DeleteTableDataRequest} DeleteTableDataRequest + * @returns {tabletmanagerdata.PromoteReplicaRequest} PromoteReplicaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTableDataRequest.decode = function decode(reader, length) { + PromoteReplicaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DeleteTableDataRequest(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PromoteReplicaRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.table_filters === $util.emptyObject) - message.table_filters = {}; - 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.table_filters[key] = value; - break; - } - case 2: { - message.batch_size = reader.int64(); + message.semiSync = reader.bool(); break; } default: @@ -73731,158 +73741,122 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a DeleteTableDataRequest message from the specified reader or buffer, length delimited. + * Decodes a PromoteReplicaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.DeleteTableDataRequest + * @memberof tabletmanagerdata.PromoteReplicaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.DeleteTableDataRequest} DeleteTableDataRequest + * @returns {tabletmanagerdata.PromoteReplicaRequest} PromoteReplicaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTableDataRequest.decodeDelimited = function decodeDelimited(reader) { + PromoteReplicaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTableDataRequest message. + * Verifies a PromoteReplicaRequest message. * @function verify - * @memberof tabletmanagerdata.DeleteTableDataRequest + * @memberof tabletmanagerdata.PromoteReplicaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteTableDataRequest.verify = function verify(message) { + PromoteReplicaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.table_filters != null && message.hasOwnProperty("table_filters")) { - if (!$util.isObject(message.table_filters)) - return "table_filters: object expected"; - let key = Object.keys(message.table_filters); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.table_filters[key[i]])) - return "table_filters: string{k:string} expected"; - } - if (message.batch_size != null && message.hasOwnProperty("batch_size")) - if (!$util.isInteger(message.batch_size) && !(message.batch_size && $util.isInteger(message.batch_size.low) && $util.isInteger(message.batch_size.high))) - return "batch_size: integer|Long expected"; + if (message.semiSync != null && message.hasOwnProperty("semiSync")) + if (typeof message.semiSync !== "boolean") + return "semiSync: boolean expected"; return null; }; /** - * Creates a DeleteTableDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PromoteReplicaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.DeleteTableDataRequest + * @memberof tabletmanagerdata.PromoteReplicaRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.DeleteTableDataRequest} DeleteTableDataRequest + * @returns {tabletmanagerdata.PromoteReplicaRequest} PromoteReplicaRequest */ - DeleteTableDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.DeleteTableDataRequest) + PromoteReplicaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.PromoteReplicaRequest) return object; - let message = new $root.tabletmanagerdata.DeleteTableDataRequest(); - if (object.table_filters) { - if (typeof object.table_filters !== "object") - throw TypeError(".tabletmanagerdata.DeleteTableDataRequest.table_filters: object expected"); - message.table_filters = {}; - for (let keys = Object.keys(object.table_filters), i = 0; i < keys.length; ++i) - message.table_filters[keys[i]] = String(object.table_filters[keys[i]]); - } - if (object.batch_size != null) - if ($util.Long) - (message.batch_size = $util.Long.fromValue(object.batch_size)).unsigned = false; - else if (typeof object.batch_size === "string") - message.batch_size = parseInt(object.batch_size, 10); - else if (typeof object.batch_size === "number") - message.batch_size = object.batch_size; - else if (typeof object.batch_size === "object") - message.batch_size = new $util.LongBits(object.batch_size.low >>> 0, object.batch_size.high >>> 0).toNumber(); + let message = new $root.tabletmanagerdata.PromoteReplicaRequest(); + if (object.semiSync != null) + message.semiSync = Boolean(object.semiSync); return message; }; /** - * Creates a plain object from a DeleteTableDataRequest message. Also converts values to other types if specified. + * Creates a plain object from a PromoteReplicaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.DeleteTableDataRequest + * @memberof tabletmanagerdata.PromoteReplicaRequest * @static - * @param {tabletmanagerdata.DeleteTableDataRequest} message DeleteTableDataRequest + * @param {tabletmanagerdata.PromoteReplicaRequest} message PromoteReplicaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTableDataRequest.toObject = function toObject(message, options) { + PromoteReplicaRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.table_filters = {}; if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.batch_size = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.batch_size = options.longs === String ? "0" : 0; - let keys2; - if (message.table_filters && (keys2 = Object.keys(message.table_filters)).length) { - object.table_filters = {}; - for (let j = 0; j < keys2.length; ++j) - object.table_filters[keys2[j]] = message.table_filters[keys2[j]]; - } - if (message.batch_size != null && message.hasOwnProperty("batch_size")) - if (typeof message.batch_size === "number") - object.batch_size = options.longs === String ? String(message.batch_size) : message.batch_size; - else - object.batch_size = options.longs === String ? $util.Long.prototype.toString.call(message.batch_size) : options.longs === Number ? new $util.LongBits(message.batch_size.low >>> 0, message.batch_size.high >>> 0).toNumber() : message.batch_size; + object.semiSync = false; + if (message.semiSync != null && message.hasOwnProperty("semiSync")) + object.semiSync = message.semiSync; return object; }; /** - * Converts this DeleteTableDataRequest to JSON. + * Converts this PromoteReplicaRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.DeleteTableDataRequest + * @memberof tabletmanagerdata.PromoteReplicaRequest * @instance * @returns {Object.} JSON object */ - DeleteTableDataRequest.prototype.toJSON = function toJSON() { + PromoteReplicaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteTableDataRequest + * Gets the default type url for PromoteReplicaRequest * @function getTypeUrl - * @memberof tabletmanagerdata.DeleteTableDataRequest + * @memberof tabletmanagerdata.PromoteReplicaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteTableDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PromoteReplicaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.DeleteTableDataRequest"; + return typeUrlPrefix + "/tabletmanagerdata.PromoteReplicaRequest"; }; - return DeleteTableDataRequest; + return PromoteReplicaRequest; })(); - tabletmanagerdata.DeleteTableDataResponse = (function() { + tabletmanagerdata.PromoteReplicaResponse = (function() { /** - * Properties of a DeleteTableDataResponse. + * Properties of a PromoteReplicaResponse. * @memberof tabletmanagerdata - * @interface IDeleteTableDataResponse + * @interface IPromoteReplicaResponse + * @property {string|null} [position] PromoteReplicaResponse position */ /** - * Constructs a new DeleteTableDataResponse. + * Constructs a new PromoteReplicaResponse. * @memberof tabletmanagerdata - * @classdesc Represents a DeleteTableDataResponse. - * @implements IDeleteTableDataResponse + * @classdesc Represents a PromoteReplicaResponse. + * @implements IPromoteReplicaResponse * @constructor - * @param {tabletmanagerdata.IDeleteTableDataResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IPromoteReplicaResponse=} [properties] Properties to set */ - function DeleteTableDataResponse(properties) { + function PromoteReplicaResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73890,63 +73864,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new DeleteTableDataResponse instance using the specified properties. + * PromoteReplicaResponse position. + * @member {string} position + * @memberof tabletmanagerdata.PromoteReplicaResponse + * @instance + */ + PromoteReplicaResponse.prototype.position = ""; + + /** + * Creates a new PromoteReplicaResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.DeleteTableDataResponse + * @memberof tabletmanagerdata.PromoteReplicaResponse * @static - * @param {tabletmanagerdata.IDeleteTableDataResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.DeleteTableDataResponse} DeleteTableDataResponse instance + * @param {tabletmanagerdata.IPromoteReplicaResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.PromoteReplicaResponse} PromoteReplicaResponse instance */ - DeleteTableDataResponse.create = function create(properties) { - return new DeleteTableDataResponse(properties); + PromoteReplicaResponse.create = function create(properties) { + return new PromoteReplicaResponse(properties); }; /** - * Encodes the specified DeleteTableDataResponse message. Does not implicitly {@link tabletmanagerdata.DeleteTableDataResponse.verify|verify} messages. + * Encodes the specified PromoteReplicaResponse message. Does not implicitly {@link tabletmanagerdata.PromoteReplicaResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.DeleteTableDataResponse + * @memberof tabletmanagerdata.PromoteReplicaResponse * @static - * @param {tabletmanagerdata.IDeleteTableDataResponse} message DeleteTableDataResponse message or plain object to encode + * @param {tabletmanagerdata.IPromoteReplicaResponse} message PromoteReplicaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTableDataResponse.encode = function encode(message, writer) { + PromoteReplicaResponse.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); return writer; }; /** - * Encodes the specified DeleteTableDataResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteTableDataResponse.verify|verify} messages. + * Encodes the specified PromoteReplicaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PromoteReplicaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.DeleteTableDataResponse + * @memberof tabletmanagerdata.PromoteReplicaResponse * @static - * @param {tabletmanagerdata.IDeleteTableDataResponse} message DeleteTableDataResponse message or plain object to encode + * @param {tabletmanagerdata.IPromoteReplicaResponse} message PromoteReplicaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTableDataResponse.encodeDelimited = function encodeDelimited(message, writer) { + PromoteReplicaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTableDataResponse message from the specified reader or buffer. + * Decodes a PromoteReplicaResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.DeleteTableDataResponse + * @memberof tabletmanagerdata.PromoteReplicaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.DeleteTableDataResponse} DeleteTableDataResponse + * @returns {tabletmanagerdata.PromoteReplicaResponse} PromoteReplicaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTableDataResponse.decode = function decode(reader, length) { + PromoteReplicaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DeleteTableDataResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PromoteReplicaResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.position = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -73956,109 +73944,127 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a DeleteTableDataResponse message from the specified reader or buffer, length delimited. + * Decodes a PromoteReplicaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.DeleteTableDataResponse + * @memberof tabletmanagerdata.PromoteReplicaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.DeleteTableDataResponse} DeleteTableDataResponse + * @returns {tabletmanagerdata.PromoteReplicaResponse} PromoteReplicaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTableDataResponse.decodeDelimited = function decodeDelimited(reader) { + PromoteReplicaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTableDataResponse message. + * Verifies a PromoteReplicaResponse message. * @function verify - * @memberof tabletmanagerdata.DeleteTableDataResponse + * @memberof tabletmanagerdata.PromoteReplicaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteTableDataResponse.verify = function verify(message) { + PromoteReplicaResponse.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"; return null; }; /** - * Creates a DeleteTableDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PromoteReplicaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.DeleteTableDataResponse + * @memberof tabletmanagerdata.PromoteReplicaResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.DeleteTableDataResponse} DeleteTableDataResponse + * @returns {tabletmanagerdata.PromoteReplicaResponse} PromoteReplicaResponse */ - DeleteTableDataResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.DeleteTableDataResponse) + PromoteReplicaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.PromoteReplicaResponse) return object; - return new $root.tabletmanagerdata.DeleteTableDataResponse(); + let message = new $root.tabletmanagerdata.PromoteReplicaResponse(); + if (object.position != null) + message.position = String(object.position); + return message; }; /** - * Creates a plain object from a DeleteTableDataResponse message. Also converts values to other types if specified. + * Creates a plain object from a PromoteReplicaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.DeleteTableDataResponse + * @memberof tabletmanagerdata.PromoteReplicaResponse * @static - * @param {tabletmanagerdata.DeleteTableDataResponse} message DeleteTableDataResponse + * @param {tabletmanagerdata.PromoteReplicaResponse} message PromoteReplicaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTableDataResponse.toObject = function toObject() { - return {}; + PromoteReplicaResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.position = ""; + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + return object; }; /** - * Converts this DeleteTableDataResponse to JSON. + * Converts this PromoteReplicaResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.DeleteTableDataResponse + * @memberof tabletmanagerdata.PromoteReplicaResponse * @instance * @returns {Object.} JSON object */ - DeleteTableDataResponse.prototype.toJSON = function toJSON() { + PromoteReplicaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteTableDataResponse + * Gets the default type url for PromoteReplicaResponse * @function getTypeUrl - * @memberof tabletmanagerdata.DeleteTableDataResponse + * @memberof tabletmanagerdata.PromoteReplicaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteTableDataResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PromoteReplicaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.DeleteTableDataResponse"; + return typeUrlPrefix + "/tabletmanagerdata.PromoteReplicaResponse"; }; - return DeleteTableDataResponse; + return PromoteReplicaResponse; })(); - tabletmanagerdata.DeleteVReplicationWorkflowRequest = (function() { + tabletmanagerdata.BackupRequest = (function() { /** - * Properties of a DeleteVReplicationWorkflowRequest. + * Properties of a BackupRequest. * @memberof tabletmanagerdata - * @interface IDeleteVReplicationWorkflowRequest - * @property {string|null} [workflow] DeleteVReplicationWorkflowRequest workflow + * @interface IBackupRequest + * @property {number|null} [concurrency] BackupRequest concurrency + * @property {boolean|null} [allow_primary] BackupRequest allow_primary + * @property {string|null} [incremental_from_pos] BackupRequest incremental_from_pos + * @property {boolean|null} [upgrade_safe] BackupRequest upgrade_safe + * @property {string|null} [backup_engine] BackupRequest backup_engine + * @property {vttime.IDuration|null} [mysql_shutdown_timeout] BackupRequest mysql_shutdown_timeout */ /** - * Constructs a new DeleteVReplicationWorkflowRequest. + * Constructs a new BackupRequest. * @memberof tabletmanagerdata - * @classdesc Represents a DeleteVReplicationWorkflowRequest. - * @implements IDeleteVReplicationWorkflowRequest + * @classdesc Represents a BackupRequest. + * @implements IBackupRequest * @constructor - * @param {tabletmanagerdata.IDeleteVReplicationWorkflowRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IBackupRequest=} [properties] Properties to set */ - function DeleteVReplicationWorkflowRequest(properties) { + function BackupRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74066,75 +74072,154 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * DeleteVReplicationWorkflowRequest workflow. - * @member {string} workflow - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest + * BackupRequest concurrency. + * @member {number} concurrency + * @memberof tabletmanagerdata.BackupRequest * @instance */ - DeleteVReplicationWorkflowRequest.prototype.workflow = ""; + BackupRequest.prototype.concurrency = 0; /** - * Creates a new DeleteVReplicationWorkflowRequest instance using the specified properties. + * BackupRequest allow_primary. + * @member {boolean} allow_primary + * @memberof tabletmanagerdata.BackupRequest + * @instance + */ + BackupRequest.prototype.allow_primary = false; + + /** + * BackupRequest incremental_from_pos. + * @member {string} incremental_from_pos + * @memberof tabletmanagerdata.BackupRequest + * @instance + */ + BackupRequest.prototype.incremental_from_pos = ""; + + /** + * BackupRequest upgrade_safe. + * @member {boolean} upgrade_safe + * @memberof tabletmanagerdata.BackupRequest + * @instance + */ + BackupRequest.prototype.upgrade_safe = false; + + /** + * BackupRequest backup_engine. + * @member {string|null|undefined} backup_engine + * @memberof tabletmanagerdata.BackupRequest + * @instance + */ + BackupRequest.prototype.backup_engine = null; + + /** + * BackupRequest mysql_shutdown_timeout. + * @member {vttime.IDuration|null|undefined} mysql_shutdown_timeout + * @memberof tabletmanagerdata.BackupRequest + * @instance + */ + BackupRequest.prototype.mysql_shutdown_timeout = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackupRequest.prototype, "_backup_engine", { + get: $util.oneOfGetter($oneOfFields = ["backup_engine"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BackupRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest + * @memberof tabletmanagerdata.BackupRequest * @static - * @param {tabletmanagerdata.IDeleteVReplicationWorkflowRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.DeleteVReplicationWorkflowRequest} DeleteVReplicationWorkflowRequest instance + * @param {tabletmanagerdata.IBackupRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.BackupRequest} BackupRequest instance */ - DeleteVReplicationWorkflowRequest.create = function create(properties) { - return new DeleteVReplicationWorkflowRequest(properties); + BackupRequest.create = function create(properties) { + return new BackupRequest(properties); }; /** - * Encodes the specified DeleteVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowRequest.verify|verify} messages. + * Encodes the specified BackupRequest message. Does not implicitly {@link tabletmanagerdata.BackupRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest + * @memberof tabletmanagerdata.BackupRequest * @static - * @param {tabletmanagerdata.IDeleteVReplicationWorkflowRequest} message DeleteVReplicationWorkflowRequest message or plain object to encode + * @param {tabletmanagerdata.IBackupRequest} message BackupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteVReplicationWorkflowRequest.encode = function encode(message, writer) { + BackupRequest.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.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.concurrency); + if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_primary); + if (message.incremental_from_pos != null && Object.hasOwnProperty.call(message, "incremental_from_pos")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.incremental_from_pos); + if (message.upgrade_safe != null && Object.hasOwnProperty.call(message, "upgrade_safe")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.upgrade_safe); + if (message.backup_engine != null && Object.hasOwnProperty.call(message, "backup_engine")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.backup_engine); + if (message.mysql_shutdown_timeout != null && Object.hasOwnProperty.call(message, "mysql_shutdown_timeout")) + $root.vttime.Duration.encode(message.mysql_shutdown_timeout, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowRequest.verify|verify} messages. + * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.BackupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest + * @memberof tabletmanagerdata.BackupRequest * @static - * @param {tabletmanagerdata.IDeleteVReplicationWorkflowRequest} message DeleteVReplicationWorkflowRequest message or plain object to encode + * @param {tabletmanagerdata.IBackupRequest} message BackupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteVReplicationWorkflowRequest.encodeDelimited = function encodeDelimited(message, writer) { + BackupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteVReplicationWorkflowRequest message from the specified reader or buffer. + * Decodes a BackupRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest + * @memberof tabletmanagerdata.BackupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.DeleteVReplicationWorkflowRequest} DeleteVReplicationWorkflowRequest + * @returns {tabletmanagerdata.BackupRequest} BackupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteVReplicationWorkflowRequest.decode = function decode(reader, length) { + BackupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DeleteVReplicationWorkflowRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.BackupRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workflow = reader.string(); + message.concurrency = reader.int32(); + break; + } + case 2: { + message.allow_primary = reader.bool(); + break; + } + case 3: { + message.incremental_from_pos = reader.string(); + break; + } + case 4: { + message.upgrade_safe = reader.bool(); + break; + } + case 5: { + message.backup_engine = reader.string(); + break; + } + case 6: { + message.mysql_shutdown_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); break; } default: @@ -74146,122 +74231,173 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a DeleteVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. + * Decodes a BackupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest + * @memberof tabletmanagerdata.BackupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.DeleteVReplicationWorkflowRequest} DeleteVReplicationWorkflowRequest + * @returns {tabletmanagerdata.BackupRequest} BackupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteVReplicationWorkflowRequest.decodeDelimited = function decodeDelimited(reader) { + BackupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteVReplicationWorkflowRequest message. + * Verifies a BackupRequest message. * @function verify - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest + * @memberof tabletmanagerdata.BackupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteVReplicationWorkflowRequest.verify = function verify(message) { + BackupRequest.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"; + let properties = {}; + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + if (!$util.isInteger(message.concurrency)) + return "concurrency: integer expected"; + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + if (typeof message.allow_primary !== "boolean") + return "allow_primary: boolean expected"; + if (message.incremental_from_pos != null && message.hasOwnProperty("incremental_from_pos")) + if (!$util.isString(message.incremental_from_pos)) + return "incremental_from_pos: string expected"; + if (message.upgrade_safe != null && message.hasOwnProperty("upgrade_safe")) + if (typeof message.upgrade_safe !== "boolean") + return "upgrade_safe: boolean expected"; + if (message.backup_engine != null && message.hasOwnProperty("backup_engine")) { + properties._backup_engine = 1; + if (!$util.isString(message.backup_engine)) + return "backup_engine: string expected"; + } + if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) { + let error = $root.vttime.Duration.verify(message.mysql_shutdown_timeout); + if (error) + return "mysql_shutdown_timeout." + error; + } return null; }; /** - * Creates a DeleteVReplicationWorkflowRequest 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 tabletmanagerdata.DeleteVReplicationWorkflowRequest + * @memberof tabletmanagerdata.BackupRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.DeleteVReplicationWorkflowRequest} DeleteVReplicationWorkflowRequest + * @returns {tabletmanagerdata.BackupRequest} BackupRequest */ - DeleteVReplicationWorkflowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.DeleteVReplicationWorkflowRequest) + BackupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.BackupRequest) return object; - let message = new $root.tabletmanagerdata.DeleteVReplicationWorkflowRequest(); - if (object.workflow != null) - message.workflow = String(object.workflow); + let message = new $root.tabletmanagerdata.BackupRequest(); + if (object.concurrency != null) + message.concurrency = object.concurrency | 0; + if (object.allow_primary != null) + message.allow_primary = Boolean(object.allow_primary); + if (object.incremental_from_pos != null) + message.incremental_from_pos = String(object.incremental_from_pos); + if (object.upgrade_safe != null) + message.upgrade_safe = Boolean(object.upgrade_safe); + if (object.backup_engine != null) + message.backup_engine = String(object.backup_engine); + if (object.mysql_shutdown_timeout != null) { + if (typeof object.mysql_shutdown_timeout !== "object") + throw TypeError(".tabletmanagerdata.BackupRequest.mysql_shutdown_timeout: object expected"); + message.mysql_shutdown_timeout = $root.vttime.Duration.fromObject(object.mysql_shutdown_timeout); + } return message; }; /** - * Creates a plain object from a DeleteVReplicationWorkflowRequest 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 tabletmanagerdata.DeleteVReplicationWorkflowRequest + * @memberof tabletmanagerdata.BackupRequest * @static - * @param {tabletmanagerdata.DeleteVReplicationWorkflowRequest} message DeleteVReplicationWorkflowRequest + * @param {tabletmanagerdata.BackupRequest} message BackupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteVReplicationWorkflowRequest.toObject = function toObject(message, options) { + BackupRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.workflow = ""; - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; + if (options.defaults) { + object.concurrency = 0; + object.allow_primary = false; + object.incremental_from_pos = ""; + object.upgrade_safe = false; + object.mysql_shutdown_timeout = null; + } + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + object.concurrency = message.concurrency; + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + object.allow_primary = message.allow_primary; + if (message.incremental_from_pos != null && message.hasOwnProperty("incremental_from_pos")) + object.incremental_from_pos = message.incremental_from_pos; + if (message.upgrade_safe != null && message.hasOwnProperty("upgrade_safe")) + object.upgrade_safe = message.upgrade_safe; + if (message.backup_engine != null && message.hasOwnProperty("backup_engine")) { + object.backup_engine = message.backup_engine; + if (options.oneofs) + object._backup_engine = "backup_engine"; + } + if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) + object.mysql_shutdown_timeout = $root.vttime.Duration.toObject(message.mysql_shutdown_timeout, options); return object; }; /** - * Converts this DeleteVReplicationWorkflowRequest to JSON. + * Converts this BackupRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest + * @memberof tabletmanagerdata.BackupRequest * @instance * @returns {Object.} JSON object */ - DeleteVReplicationWorkflowRequest.prototype.toJSON = function toJSON() { + BackupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteVReplicationWorkflowRequest + * Gets the default type url for BackupRequest * @function getTypeUrl - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest + * @memberof tabletmanagerdata.BackupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteVReplicationWorkflowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.DeleteVReplicationWorkflowRequest"; + return typeUrlPrefix + "/tabletmanagerdata.BackupRequest"; }; - return DeleteVReplicationWorkflowRequest; + return BackupRequest; })(); - tabletmanagerdata.DeleteVReplicationWorkflowResponse = (function() { + tabletmanagerdata.BackupResponse = (function() { /** - * Properties of a DeleteVReplicationWorkflowResponse. + * Properties of a BackupResponse. * @memberof tabletmanagerdata - * @interface IDeleteVReplicationWorkflowResponse - * @property {query.IQueryResult|null} [result] DeleteVReplicationWorkflowResponse result + * @interface IBackupResponse + * @property {logutil.IEvent|null} [event] BackupResponse event */ /** - * Constructs a new DeleteVReplicationWorkflowResponse. + * Constructs a new BackupResponse. * @memberof tabletmanagerdata - * @classdesc Represents a DeleteVReplicationWorkflowResponse. - * @implements IDeleteVReplicationWorkflowResponse + * @classdesc Represents a BackupResponse. + * @implements IBackupResponse * @constructor - * @param {tabletmanagerdata.IDeleteVReplicationWorkflowResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IBackupResponse=} [properties] Properties to set */ - function DeleteVReplicationWorkflowResponse(properties) { + function BackupResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74269,75 +74405,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * DeleteVReplicationWorkflowResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse + * BackupResponse event. + * @member {logutil.IEvent|null|undefined} event + * @memberof tabletmanagerdata.BackupResponse * @instance */ - DeleteVReplicationWorkflowResponse.prototype.result = null; + BackupResponse.prototype.event = null; /** - * Creates a new DeleteVReplicationWorkflowResponse instance using the specified properties. + * Creates a new BackupResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse + * @memberof tabletmanagerdata.BackupResponse * @static - * @param {tabletmanagerdata.IDeleteVReplicationWorkflowResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.DeleteVReplicationWorkflowResponse} DeleteVReplicationWorkflowResponse instance + * @param {tabletmanagerdata.IBackupResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.BackupResponse} BackupResponse instance */ - DeleteVReplicationWorkflowResponse.create = function create(properties) { - return new DeleteVReplicationWorkflowResponse(properties); + BackupResponse.create = function create(properties) { + return new BackupResponse(properties); }; /** - * Encodes the specified DeleteVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowResponse.verify|verify} messages. + * Encodes the specified BackupResponse message. Does not implicitly {@link tabletmanagerdata.BackupResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse + * @memberof tabletmanagerdata.BackupResponse * @static - * @param {tabletmanagerdata.IDeleteVReplicationWorkflowResponse} message DeleteVReplicationWorkflowResponse message or plain object to encode + * @param {tabletmanagerdata.IBackupResponse} message BackupResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteVReplicationWorkflowResponse.encode = function encode(message, writer) { + BackupResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + $root.logutil.Event.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowResponse.verify|verify} messages. + * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.BackupResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse + * @memberof tabletmanagerdata.BackupResponse * @static - * @param {tabletmanagerdata.IDeleteVReplicationWorkflowResponse} message DeleteVReplicationWorkflowResponse message or plain object to encode + * @param {tabletmanagerdata.IBackupResponse} message BackupResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteVReplicationWorkflowResponse.encodeDelimited = function encodeDelimited(message, writer) { + BackupResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteVReplicationWorkflowResponse message from the specified reader or buffer. + * Decodes a BackupResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse + * @memberof tabletmanagerdata.BackupResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.DeleteVReplicationWorkflowResponse} DeleteVReplicationWorkflowResponse + * @returns {tabletmanagerdata.BackupResponse} BackupResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteVReplicationWorkflowResponse.decode = function decode(reader, length) { + BackupResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DeleteVReplicationWorkflowResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.BackupResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + message.event = $root.logutil.Event.decode(reader, reader.uint32()); break; } default: @@ -74349,126 +74485,132 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a DeleteVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. + * Decodes a BackupResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse + * @memberof tabletmanagerdata.BackupResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.DeleteVReplicationWorkflowResponse} DeleteVReplicationWorkflowResponse + * @returns {tabletmanagerdata.BackupResponse} BackupResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteVReplicationWorkflowResponse.decodeDelimited = function decodeDelimited(reader) { + BackupResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteVReplicationWorkflowResponse message. + * Verifies a BackupResponse message. * @function verify - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse + * @memberof tabletmanagerdata.BackupResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteVReplicationWorkflowResponse.verify = function verify(message) { + BackupResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); + if (message.event != null && message.hasOwnProperty("event")) { + let error = $root.logutil.Event.verify(message.event); if (error) - return "result." + error; + return "event." + error; } return null; }; /** - * Creates a DeleteVReplicationWorkflowResponse 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 tabletmanagerdata.DeleteVReplicationWorkflowResponse + * @memberof tabletmanagerdata.BackupResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.DeleteVReplicationWorkflowResponse} DeleteVReplicationWorkflowResponse + * @returns {tabletmanagerdata.BackupResponse} BackupResponse */ - DeleteVReplicationWorkflowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.DeleteVReplicationWorkflowResponse) + BackupResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.BackupResponse) return object; - let message = new $root.tabletmanagerdata.DeleteVReplicationWorkflowResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".tabletmanagerdata.DeleteVReplicationWorkflowResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); + let message = new $root.tabletmanagerdata.BackupResponse(); + if (object.event != null) { + if (typeof object.event !== "object") + throw TypeError(".tabletmanagerdata.BackupResponse.event: object expected"); + message.event = $root.logutil.Event.fromObject(object.event); } return message; }; /** - * Creates a plain object from a DeleteVReplicationWorkflowResponse 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 tabletmanagerdata.DeleteVReplicationWorkflowResponse + * @memberof tabletmanagerdata.BackupResponse * @static - * @param {tabletmanagerdata.DeleteVReplicationWorkflowResponse} message DeleteVReplicationWorkflowResponse + * @param {tabletmanagerdata.BackupResponse} message BackupResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteVReplicationWorkflowResponse.toObject = function toObject(message, options) { + BackupResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); + object.event = null; + if (message.event != null && message.hasOwnProperty("event")) + object.event = $root.logutil.Event.toObject(message.event, options); return object; }; /** - * Converts this DeleteVReplicationWorkflowResponse to JSON. + * Converts this BackupResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse + * @memberof tabletmanagerdata.BackupResponse * @instance * @returns {Object.} JSON object */ - DeleteVReplicationWorkflowResponse.prototype.toJSON = function toJSON() { + BackupResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteVReplicationWorkflowResponse + * Gets the default type url for BackupResponse * @function getTypeUrl - * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse + * @memberof tabletmanagerdata.BackupResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteVReplicationWorkflowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BackupResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.DeleteVReplicationWorkflowResponse"; + return typeUrlPrefix + "/tabletmanagerdata.BackupResponse"; }; - return DeleteVReplicationWorkflowResponse; + return BackupResponse; })(); - tabletmanagerdata.HasVReplicationWorkflowsRequest = (function() { + tabletmanagerdata.RestoreFromBackupRequest = (function() { /** - * Properties of a HasVReplicationWorkflowsRequest. + * Properties of a RestoreFromBackupRequest. * @memberof tabletmanagerdata - * @interface IHasVReplicationWorkflowsRequest + * @interface IRestoreFromBackupRequest + * @property {vttime.ITime|null} [backup_time] RestoreFromBackupRequest backup_time + * @property {string|null} [restore_to_pos] RestoreFromBackupRequest restore_to_pos + * @property {boolean|null} [dry_run] RestoreFromBackupRequest dry_run + * @property {vttime.ITime|null} [restore_to_timestamp] RestoreFromBackupRequest restore_to_timestamp + * @property {Array.|null} [allowed_backup_engines] RestoreFromBackupRequest allowed_backup_engines */ /** - * Constructs a new HasVReplicationWorkflowsRequest. + * Constructs a new RestoreFromBackupRequest. * @memberof tabletmanagerdata - * @classdesc Represents a HasVReplicationWorkflowsRequest. - * @implements IHasVReplicationWorkflowsRequest + * @classdesc Represents a RestoreFromBackupRequest. + * @implements IRestoreFromBackupRequest * @constructor - * @param {tabletmanagerdata.IHasVReplicationWorkflowsRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IRestoreFromBackupRequest=} [properties] Properties to set */ - function HasVReplicationWorkflowsRequest(properties) { + function RestoreFromBackupRequest(properties) { + this.allowed_backup_engines = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74476,63 +74618,136 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new HasVReplicationWorkflowsRequest instance using the specified properties. + * RestoreFromBackupRequest backup_time. + * @member {vttime.ITime|null|undefined} backup_time + * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @instance + */ + RestoreFromBackupRequest.prototype.backup_time = null; + + /** + * RestoreFromBackupRequest restore_to_pos. + * @member {string} restore_to_pos + * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @instance + */ + RestoreFromBackupRequest.prototype.restore_to_pos = ""; + + /** + * RestoreFromBackupRequest dry_run. + * @member {boolean} dry_run + * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @instance + */ + RestoreFromBackupRequest.prototype.dry_run = false; + + /** + * RestoreFromBackupRequest restore_to_timestamp. + * @member {vttime.ITime|null|undefined} restore_to_timestamp + * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @instance + */ + RestoreFromBackupRequest.prototype.restore_to_timestamp = null; + + /** + * RestoreFromBackupRequest allowed_backup_engines. + * @member {Array.} allowed_backup_engines + * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @instance + */ + RestoreFromBackupRequest.prototype.allowed_backup_engines = $util.emptyArray; + + /** + * Creates a new RestoreFromBackupRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.RestoreFromBackupRequest * @static - * @param {tabletmanagerdata.IHasVReplicationWorkflowsRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.HasVReplicationWorkflowsRequest} HasVReplicationWorkflowsRequest instance + * @param {tabletmanagerdata.IRestoreFromBackupRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.RestoreFromBackupRequest} RestoreFromBackupRequest instance */ - HasVReplicationWorkflowsRequest.create = function create(properties) { - return new HasVReplicationWorkflowsRequest(properties); + RestoreFromBackupRequest.create = function create(properties) { + return new RestoreFromBackupRequest(properties); }; /** - * Encodes the specified HasVReplicationWorkflowsRequest message. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsRequest.verify|verify} messages. + * Encodes the specified RestoreFromBackupRequest message. Does not implicitly {@link tabletmanagerdata.RestoreFromBackupRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.RestoreFromBackupRequest * @static - * @param {tabletmanagerdata.IHasVReplicationWorkflowsRequest} message HasVReplicationWorkflowsRequest message or plain object to encode + * @param {tabletmanagerdata.IRestoreFromBackupRequest} message RestoreFromBackupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HasVReplicationWorkflowsRequest.encode = function encode(message, writer) { + RestoreFromBackupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.backup_time != null && Object.hasOwnProperty.call(message, "backup_time")) + $root.vttime.Time.encode(message.backup_time, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.restore_to_pos != null && Object.hasOwnProperty.call(message, "restore_to_pos")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.restore_to_pos); + if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dry_run); + if (message.restore_to_timestamp != null && Object.hasOwnProperty.call(message, "restore_to_timestamp")) + $root.vttime.Time.encode(message.restore_to_timestamp, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.allowed_backup_engines != null && message.allowed_backup_engines.length) + for (let i = 0; i < message.allowed_backup_engines.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.allowed_backup_engines[i]); return writer; }; /** - * Encodes the specified HasVReplicationWorkflowsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsRequest.verify|verify} messages. + * Encodes the specified RestoreFromBackupRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.RestoreFromBackupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.RestoreFromBackupRequest * @static - * @param {tabletmanagerdata.IHasVReplicationWorkflowsRequest} message HasVReplicationWorkflowsRequest message or plain object to encode + * @param {tabletmanagerdata.IRestoreFromBackupRequest} message RestoreFromBackupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HasVReplicationWorkflowsRequest.encodeDelimited = function encodeDelimited(message, writer) { + RestoreFromBackupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HasVReplicationWorkflowsRequest message from the specified reader or buffer. + * Decodes a RestoreFromBackupRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.RestoreFromBackupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.HasVReplicationWorkflowsRequest} HasVReplicationWorkflowsRequest + * @returns {tabletmanagerdata.RestoreFromBackupRequest} RestoreFromBackupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HasVReplicationWorkflowsRequest.decode = function decode(reader, length) { + RestoreFromBackupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.HasVReplicationWorkflowsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.RestoreFromBackupRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.backup_time = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 2: { + message.restore_to_pos = reader.string(); + break; + } + case 3: { + message.dry_run = reader.bool(); + break; + } + case 4: { + message.restore_to_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 5: { + if (!(message.allowed_backup_engines && message.allowed_backup_engines.length)) + message.allowed_backup_engines = []; + message.allowed_backup_engines.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -74542,109 +74757,178 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a HasVReplicationWorkflowsRequest message from the specified reader or buffer, length delimited. + * Decodes a RestoreFromBackupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.RestoreFromBackupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.HasVReplicationWorkflowsRequest} HasVReplicationWorkflowsRequest + * @returns {tabletmanagerdata.RestoreFromBackupRequest} RestoreFromBackupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HasVReplicationWorkflowsRequest.decodeDelimited = function decodeDelimited(reader) { + RestoreFromBackupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HasVReplicationWorkflowsRequest message. + * Verifies a RestoreFromBackupRequest message. * @function verify - * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.RestoreFromBackupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HasVReplicationWorkflowsRequest.verify = function verify(message) { + RestoreFromBackupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.backup_time != null && message.hasOwnProperty("backup_time")) { + let error = $root.vttime.Time.verify(message.backup_time); + if (error) + return "backup_time." + error; + } + if (message.restore_to_pos != null && message.hasOwnProperty("restore_to_pos")) + if (!$util.isString(message.restore_to_pos)) + return "restore_to_pos: string expected"; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + if (typeof message.dry_run !== "boolean") + return "dry_run: boolean expected"; + if (message.restore_to_timestamp != null && message.hasOwnProperty("restore_to_timestamp")) { + let error = $root.vttime.Time.verify(message.restore_to_timestamp); + if (error) + return "restore_to_timestamp." + error; + } + if (message.allowed_backup_engines != null && message.hasOwnProperty("allowed_backup_engines")) { + if (!Array.isArray(message.allowed_backup_engines)) + return "allowed_backup_engines: array expected"; + for (let i = 0; i < message.allowed_backup_engines.length; ++i) + if (!$util.isString(message.allowed_backup_engines[i])) + return "allowed_backup_engines: string[] expected"; + } return null; }; /** - * Creates a HasVReplicationWorkflowsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RestoreFromBackupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.RestoreFromBackupRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.HasVReplicationWorkflowsRequest} HasVReplicationWorkflowsRequest + * @returns {tabletmanagerdata.RestoreFromBackupRequest} RestoreFromBackupRequest */ - HasVReplicationWorkflowsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.HasVReplicationWorkflowsRequest) + RestoreFromBackupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.RestoreFromBackupRequest) return object; - return new $root.tabletmanagerdata.HasVReplicationWorkflowsRequest(); - }; - - /** - * Creates a plain object from a HasVReplicationWorkflowsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest - * @static - * @param {tabletmanagerdata.HasVReplicationWorkflowsRequest} message HasVReplicationWorkflowsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - HasVReplicationWorkflowsRequest.toObject = function toObject() { - return {}; - }; + let message = new $root.tabletmanagerdata.RestoreFromBackupRequest(); + if (object.backup_time != null) { + if (typeof object.backup_time !== "object") + throw TypeError(".tabletmanagerdata.RestoreFromBackupRequest.backup_time: object expected"); + message.backup_time = $root.vttime.Time.fromObject(object.backup_time); + } + if (object.restore_to_pos != null) + message.restore_to_pos = String(object.restore_to_pos); + if (object.dry_run != null) + message.dry_run = Boolean(object.dry_run); + if (object.restore_to_timestamp != null) { + if (typeof object.restore_to_timestamp !== "object") + throw TypeError(".tabletmanagerdata.RestoreFromBackupRequest.restore_to_timestamp: object expected"); + message.restore_to_timestamp = $root.vttime.Time.fromObject(object.restore_to_timestamp); + } + if (object.allowed_backup_engines) { + if (!Array.isArray(object.allowed_backup_engines)) + throw TypeError(".tabletmanagerdata.RestoreFromBackupRequest.allowed_backup_engines: array expected"); + message.allowed_backup_engines = []; + for (let i = 0; i < object.allowed_backup_engines.length; ++i) + message.allowed_backup_engines[i] = String(object.allowed_backup_engines[i]); + } + return message; + }; /** - * Converts this HasVReplicationWorkflowsRequest to JSON. + * Creates a plain object from a RestoreFromBackupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.RestoreFromBackupRequest + * @static + * @param {tabletmanagerdata.RestoreFromBackupRequest} message RestoreFromBackupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RestoreFromBackupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.allowed_backup_engines = []; + if (options.defaults) { + object.backup_time = null; + object.restore_to_pos = ""; + object.dry_run = false; + object.restore_to_timestamp = null; + } + if (message.backup_time != null && message.hasOwnProperty("backup_time")) + object.backup_time = $root.vttime.Time.toObject(message.backup_time, options); + if (message.restore_to_pos != null && message.hasOwnProperty("restore_to_pos")) + object.restore_to_pos = message.restore_to_pos; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + object.dry_run = message.dry_run; + if (message.restore_to_timestamp != null && message.hasOwnProperty("restore_to_timestamp")) + object.restore_to_timestamp = $root.vttime.Time.toObject(message.restore_to_timestamp, options); + if (message.allowed_backup_engines && message.allowed_backup_engines.length) { + object.allowed_backup_engines = []; + for (let j = 0; j < message.allowed_backup_engines.length; ++j) + object.allowed_backup_engines[j] = message.allowed_backup_engines[j]; + } + return object; + }; + + /** + * Converts this RestoreFromBackupRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.RestoreFromBackupRequest * @instance * @returns {Object.} JSON object */ - HasVReplicationWorkflowsRequest.prototype.toJSON = function toJSON() { + RestoreFromBackupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HasVReplicationWorkflowsRequest + * Gets the default type url for RestoreFromBackupRequest * @function getTypeUrl - * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.RestoreFromBackupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HasVReplicationWorkflowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RestoreFromBackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.HasVReplicationWorkflowsRequest"; + return typeUrlPrefix + "/tabletmanagerdata.RestoreFromBackupRequest"; }; - return HasVReplicationWorkflowsRequest; + return RestoreFromBackupRequest; })(); - tabletmanagerdata.HasVReplicationWorkflowsResponse = (function() { + tabletmanagerdata.RestoreFromBackupResponse = (function() { /** - * Properties of a HasVReplicationWorkflowsResponse. + * Properties of a RestoreFromBackupResponse. * @memberof tabletmanagerdata - * @interface IHasVReplicationWorkflowsResponse - * @property {boolean|null} [has] HasVReplicationWorkflowsResponse has + * @interface IRestoreFromBackupResponse + * @property {logutil.IEvent|null} [event] RestoreFromBackupResponse event */ /** - * Constructs a new HasVReplicationWorkflowsResponse. + * Constructs a new RestoreFromBackupResponse. * @memberof tabletmanagerdata - * @classdesc Represents a HasVReplicationWorkflowsResponse. - * @implements IHasVReplicationWorkflowsResponse + * @classdesc Represents a RestoreFromBackupResponse. + * @implements IRestoreFromBackupResponse * @constructor - * @param {tabletmanagerdata.IHasVReplicationWorkflowsResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IRestoreFromBackupResponse=} [properties] Properties to set */ - function HasVReplicationWorkflowsResponse(properties) { + function RestoreFromBackupResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74652,75 +74936,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * HasVReplicationWorkflowsResponse has. - * @member {boolean} has - * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse + * RestoreFromBackupResponse event. + * @member {logutil.IEvent|null|undefined} event + * @memberof tabletmanagerdata.RestoreFromBackupResponse * @instance */ - HasVReplicationWorkflowsResponse.prototype.has = false; + RestoreFromBackupResponse.prototype.event = null; /** - * Creates a new HasVReplicationWorkflowsResponse instance using the specified properties. + * Creates a new RestoreFromBackupResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.RestoreFromBackupResponse * @static - * @param {tabletmanagerdata.IHasVReplicationWorkflowsResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.HasVReplicationWorkflowsResponse} HasVReplicationWorkflowsResponse instance + * @param {tabletmanagerdata.IRestoreFromBackupResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.RestoreFromBackupResponse} RestoreFromBackupResponse instance */ - HasVReplicationWorkflowsResponse.create = function create(properties) { - return new HasVReplicationWorkflowsResponse(properties); + RestoreFromBackupResponse.create = function create(properties) { + return new RestoreFromBackupResponse(properties); }; /** - * Encodes the specified HasVReplicationWorkflowsResponse message. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsResponse.verify|verify} messages. + * Encodes the specified RestoreFromBackupResponse message. Does not implicitly {@link tabletmanagerdata.RestoreFromBackupResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.RestoreFromBackupResponse * @static - * @param {tabletmanagerdata.IHasVReplicationWorkflowsResponse} message HasVReplicationWorkflowsResponse message or plain object to encode + * @param {tabletmanagerdata.IRestoreFromBackupResponse} message RestoreFromBackupResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HasVReplicationWorkflowsResponse.encode = function encode(message, writer) { + RestoreFromBackupResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.has != null && Object.hasOwnProperty.call(message, "has")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.has); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + $root.logutil.Event.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified HasVReplicationWorkflowsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsResponse.verify|verify} messages. + * Encodes the specified RestoreFromBackupResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.RestoreFromBackupResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.RestoreFromBackupResponse * @static - * @param {tabletmanagerdata.IHasVReplicationWorkflowsResponse} message HasVReplicationWorkflowsResponse message or plain object to encode + * @param {tabletmanagerdata.IRestoreFromBackupResponse} message RestoreFromBackupResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HasVReplicationWorkflowsResponse.encodeDelimited = function encodeDelimited(message, writer) { + RestoreFromBackupResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HasVReplicationWorkflowsResponse message from the specified reader or buffer. + * Decodes a RestoreFromBackupResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.RestoreFromBackupResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.HasVReplicationWorkflowsResponse} HasVReplicationWorkflowsResponse + * @returns {tabletmanagerdata.RestoreFromBackupResponse} RestoreFromBackupResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HasVReplicationWorkflowsResponse.decode = function decode(reader, length) { + RestoreFromBackupResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.HasVReplicationWorkflowsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.RestoreFromBackupResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.has = reader.bool(); + message.event = $root.logutil.Event.decode(reader, reader.uint32()); break; } default: @@ -74732,132 +75016,140 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a HasVReplicationWorkflowsResponse message from the specified reader or buffer, length delimited. + * Decodes a RestoreFromBackupResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.RestoreFromBackupResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.HasVReplicationWorkflowsResponse} HasVReplicationWorkflowsResponse + * @returns {tabletmanagerdata.RestoreFromBackupResponse} RestoreFromBackupResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HasVReplicationWorkflowsResponse.decodeDelimited = function decodeDelimited(reader) { + RestoreFromBackupResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HasVReplicationWorkflowsResponse message. + * Verifies a RestoreFromBackupResponse message. * @function verify - * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.RestoreFromBackupResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HasVReplicationWorkflowsResponse.verify = function verify(message) { + RestoreFromBackupResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.has != null && message.hasOwnProperty("has")) - if (typeof message.has !== "boolean") - return "has: boolean expected"; + if (message.event != null && message.hasOwnProperty("event")) { + let error = $root.logutil.Event.verify(message.event); + if (error) + return "event." + error; + } return null; }; /** - * Creates a HasVReplicationWorkflowsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RestoreFromBackupResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.RestoreFromBackupResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.HasVReplicationWorkflowsResponse} HasVReplicationWorkflowsResponse + * @returns {tabletmanagerdata.RestoreFromBackupResponse} RestoreFromBackupResponse */ - HasVReplicationWorkflowsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.HasVReplicationWorkflowsResponse) + RestoreFromBackupResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.RestoreFromBackupResponse) return object; - let message = new $root.tabletmanagerdata.HasVReplicationWorkflowsResponse(); - if (object.has != null) - message.has = Boolean(object.has); + let message = new $root.tabletmanagerdata.RestoreFromBackupResponse(); + if (object.event != null) { + if (typeof object.event !== "object") + throw TypeError(".tabletmanagerdata.RestoreFromBackupResponse.event: object expected"); + message.event = $root.logutil.Event.fromObject(object.event); + } return message; }; /** - * Creates a plain object from a HasVReplicationWorkflowsResponse message. Also converts values to other types if specified. + * Creates a plain object from a RestoreFromBackupResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.RestoreFromBackupResponse * @static - * @param {tabletmanagerdata.HasVReplicationWorkflowsResponse} message HasVReplicationWorkflowsResponse + * @param {tabletmanagerdata.RestoreFromBackupResponse} message RestoreFromBackupResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HasVReplicationWorkflowsResponse.toObject = function toObject(message, options) { + RestoreFromBackupResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.has = false; - if (message.has != null && message.hasOwnProperty("has")) - object.has = message.has; + object.event = null; + if (message.event != null && message.hasOwnProperty("event")) + object.event = $root.logutil.Event.toObject(message.event, options); return object; }; /** - * Converts this HasVReplicationWorkflowsResponse to JSON. + * Converts this RestoreFromBackupResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.RestoreFromBackupResponse * @instance * @returns {Object.} JSON object */ - HasVReplicationWorkflowsResponse.prototype.toJSON = function toJSON() { + RestoreFromBackupResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HasVReplicationWorkflowsResponse + * Gets the default type url for RestoreFromBackupResponse * @function getTypeUrl - * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.RestoreFromBackupResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HasVReplicationWorkflowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RestoreFromBackupResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.HasVReplicationWorkflowsResponse"; + return typeUrlPrefix + "/tabletmanagerdata.RestoreFromBackupResponse"; }; - return HasVReplicationWorkflowsResponse; + return RestoreFromBackupResponse; })(); - tabletmanagerdata.ReadVReplicationWorkflowsRequest = (function() { + tabletmanagerdata.CreateVReplicationWorkflowRequest = (function() { /** - * Properties of a ReadVReplicationWorkflowsRequest. + * Properties of a CreateVReplicationWorkflowRequest. * @memberof tabletmanagerdata - * @interface IReadVReplicationWorkflowsRequest - * @property {Array.|null} [include_ids] ReadVReplicationWorkflowsRequest include_ids - * @property {Array.|null} [include_workflows] ReadVReplicationWorkflowsRequest include_workflows - * @property {Array.|null} [include_states] ReadVReplicationWorkflowsRequest include_states - * @property {Array.|null} [exclude_workflows] ReadVReplicationWorkflowsRequest exclude_workflows - * @property {Array.|null} [exclude_states] ReadVReplicationWorkflowsRequest exclude_states - * @property {boolean|null} [exclude_frozen] ReadVReplicationWorkflowsRequest exclude_frozen + * @interface ICreateVReplicationWorkflowRequest + * @property {string|null} [workflow] CreateVReplicationWorkflowRequest workflow + * @property {Array.|null} [binlog_source] CreateVReplicationWorkflowRequest binlog_source + * @property {Array.|null} [cells] CreateVReplicationWorkflowRequest cells + * @property {Array.|null} [tablet_types] CreateVReplicationWorkflowRequest tablet_types + * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] CreateVReplicationWorkflowRequest tablet_selection_preference + * @property {binlogdata.VReplicationWorkflowType|null} [workflow_type] CreateVReplicationWorkflowRequest workflow_type + * @property {binlogdata.VReplicationWorkflowSubType|null} [workflow_sub_type] CreateVReplicationWorkflowRequest workflow_sub_type + * @property {boolean|null} [defer_secondary_keys] CreateVReplicationWorkflowRequest defer_secondary_keys + * @property {boolean|null} [auto_start] CreateVReplicationWorkflowRequest auto_start + * @property {boolean|null} [stop_after_copy] CreateVReplicationWorkflowRequest stop_after_copy + * @property {string|null} [options] CreateVReplicationWorkflowRequest options */ /** - * Constructs a new ReadVReplicationWorkflowsRequest. + * Constructs a new CreateVReplicationWorkflowRequest. * @memberof tabletmanagerdata - * @classdesc Represents a ReadVReplicationWorkflowsRequest. - * @implements IReadVReplicationWorkflowsRequest + * @classdesc Represents a CreateVReplicationWorkflowRequest. + * @implements ICreateVReplicationWorkflowRequest * @constructor - * @param {tabletmanagerdata.IReadVReplicationWorkflowsRequest=} [properties] Properties to set + * @param {tabletmanagerdata.ICreateVReplicationWorkflowRequest=} [properties] Properties to set */ - function ReadVReplicationWorkflowsRequest(properties) { - this.include_ids = []; - this.include_workflows = []; - this.include_states = []; - this.exclude_workflows = []; - this.exclude_states = []; + function CreateVReplicationWorkflowRequest(properties) { + this.binlog_source = []; + this.cells = []; + this.tablet_types = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74865,184 +75157,232 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ReadVReplicationWorkflowsRequest include_ids. - * @member {Array.} include_ids - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * CreateVReplicationWorkflowRequest workflow. + * @member {string} workflow + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @instance */ - ReadVReplicationWorkflowsRequest.prototype.include_ids = $util.emptyArray; + CreateVReplicationWorkflowRequest.prototype.workflow = ""; /** - * ReadVReplicationWorkflowsRequest include_workflows. - * @member {Array.} include_workflows - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * CreateVReplicationWorkflowRequest binlog_source. + * @member {Array.} binlog_source + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @instance */ - ReadVReplicationWorkflowsRequest.prototype.include_workflows = $util.emptyArray; + CreateVReplicationWorkflowRequest.prototype.binlog_source = $util.emptyArray; /** - * ReadVReplicationWorkflowsRequest include_states. - * @member {Array.} include_states - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * CreateVReplicationWorkflowRequest cells. + * @member {Array.} cells + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @instance */ - ReadVReplicationWorkflowsRequest.prototype.include_states = $util.emptyArray; + CreateVReplicationWorkflowRequest.prototype.cells = $util.emptyArray; /** - * ReadVReplicationWorkflowsRequest exclude_workflows. - * @member {Array.} exclude_workflows - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * CreateVReplicationWorkflowRequest tablet_types. + * @member {Array.} tablet_types + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @instance */ - ReadVReplicationWorkflowsRequest.prototype.exclude_workflows = $util.emptyArray; + CreateVReplicationWorkflowRequest.prototype.tablet_types = $util.emptyArray; /** - * ReadVReplicationWorkflowsRequest exclude_states. - * @member {Array.} exclude_states - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * CreateVReplicationWorkflowRequest tablet_selection_preference. + * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @instance */ - ReadVReplicationWorkflowsRequest.prototype.exclude_states = $util.emptyArray; + CreateVReplicationWorkflowRequest.prototype.tablet_selection_preference = 0; /** - * ReadVReplicationWorkflowsRequest exclude_frozen. - * @member {boolean} exclude_frozen - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * CreateVReplicationWorkflowRequest workflow_type. + * @member {binlogdata.VReplicationWorkflowType} workflow_type + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @instance */ - ReadVReplicationWorkflowsRequest.prototype.exclude_frozen = false; + CreateVReplicationWorkflowRequest.prototype.workflow_type = 0; /** - * Creates a new ReadVReplicationWorkflowsRequest instance using the specified properties. + * CreateVReplicationWorkflowRequest workflow_sub_type. + * @member {binlogdata.VReplicationWorkflowSubType} workflow_sub_type + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @instance + */ + CreateVReplicationWorkflowRequest.prototype.workflow_sub_type = 0; + + /** + * CreateVReplicationWorkflowRequest defer_secondary_keys. + * @member {boolean} defer_secondary_keys + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @instance + */ + CreateVReplicationWorkflowRequest.prototype.defer_secondary_keys = false; + + /** + * CreateVReplicationWorkflowRequest auto_start. + * @member {boolean} auto_start + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @instance + */ + CreateVReplicationWorkflowRequest.prototype.auto_start = false; + + /** + * CreateVReplicationWorkflowRequest stop_after_copy. + * @member {boolean} stop_after_copy + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @instance + */ + CreateVReplicationWorkflowRequest.prototype.stop_after_copy = false; + + /** + * CreateVReplicationWorkflowRequest options. + * @member {string} options + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest + * @instance + */ + CreateVReplicationWorkflowRequest.prototype.options = ""; + + /** + * Creates a new CreateVReplicationWorkflowRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.IReadVReplicationWorkflowsRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ReadVReplicationWorkflowsRequest} ReadVReplicationWorkflowsRequest instance + * @param {tabletmanagerdata.ICreateVReplicationWorkflowRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.CreateVReplicationWorkflowRequest} CreateVReplicationWorkflowRequest instance */ - ReadVReplicationWorkflowsRequest.create = function create(properties) { - return new ReadVReplicationWorkflowsRequest(properties); + CreateVReplicationWorkflowRequest.create = function create(properties) { + return new CreateVReplicationWorkflowRequest(properties); }; /** - * Encodes the specified ReadVReplicationWorkflowsRequest message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsRequest.verify|verify} messages. + * Encodes the specified CreateVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.IReadVReplicationWorkflowsRequest} message ReadVReplicationWorkflowsRequest message or plain object to encode + * @param {tabletmanagerdata.ICreateVReplicationWorkflowRequest} message CreateVReplicationWorkflowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadVReplicationWorkflowsRequest.encode = function encode(message, writer) { + CreateVReplicationWorkflowRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.include_ids != null && message.include_ids.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.include_ids.length; ++i) - writer.int32(message.include_ids[i]); - writer.ldelim(); - } - if (message.include_workflows != null && message.include_workflows.length) - for (let i = 0; i < message.include_workflows.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.include_workflows[i]); - if (message.include_states != null && message.include_states.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (let i = 0; i < message.include_states.length; ++i) - writer.int32(message.include_states[i]); - writer.ldelim(); - } - if (message.exclude_workflows != null && message.exclude_workflows.length) - for (let i = 0; i < message.exclude_workflows.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.exclude_workflows[i]); - if (message.exclude_states != null && message.exclude_states.length) { - writer.uint32(/* id 5, wireType 2 =*/42).fork(); - for (let i = 0; i < message.exclude_states.length; ++i) - writer.int32(message.exclude_states[i]); + if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); + if (message.binlog_source != null && message.binlog_source.length) + for (let i = 0; i < message.binlog_source.length; ++i) + $root.binlogdata.BinlogSource.encode(message.binlog_source[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); + if (message.tablet_types != null && message.tablet_types.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (let i = 0; i < message.tablet_types.length; ++i) + writer.int32(message.tablet_types[i]); writer.ldelim(); } - if (message.exclude_frozen != null && Object.hasOwnProperty.call(message, "exclude_frozen")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.exclude_frozen); + if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.tablet_selection_preference); + if (message.workflow_type != null && Object.hasOwnProperty.call(message, "workflow_type")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.workflow_type); + if (message.workflow_sub_type != null && Object.hasOwnProperty.call(message, "workflow_sub_type")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.workflow_sub_type); + if (message.defer_secondary_keys != null && Object.hasOwnProperty.call(message, "defer_secondary_keys")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.defer_secondary_keys); + if (message.auto_start != null && Object.hasOwnProperty.call(message, "auto_start")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.auto_start); + if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.stop_after_copy); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.options); return writer; }; /** - * Encodes the specified ReadVReplicationWorkflowsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsRequest.verify|verify} messages. + * Encodes the specified CreateVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.IReadVReplicationWorkflowsRequest} message ReadVReplicationWorkflowsRequest message or plain object to encode + * @param {tabletmanagerdata.ICreateVReplicationWorkflowRequest} message CreateVReplicationWorkflowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadVReplicationWorkflowsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateVReplicationWorkflowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadVReplicationWorkflowsRequest message from the specified reader or buffer. + * Decodes a CreateVReplicationWorkflowRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReadVReplicationWorkflowsRequest} ReadVReplicationWorkflowsRequest + * @returns {tabletmanagerdata.CreateVReplicationWorkflowRequest} CreateVReplicationWorkflowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadVReplicationWorkflowsRequest.decode = function decode(reader, length) { + CreateVReplicationWorkflowRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadVReplicationWorkflowsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CreateVReplicationWorkflowRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.include_ids && message.include_ids.length)) - message.include_ids = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.include_ids.push(reader.int32()); - } else - message.include_ids.push(reader.int32()); + message.workflow = reader.string(); break; } case 2: { - if (!(message.include_workflows && message.include_workflows.length)) - message.include_workflows = []; - message.include_workflows.push(reader.string()); + if (!(message.binlog_source && message.binlog_source.length)) + message.binlog_source = []; + message.binlog_source.push($root.binlogdata.BinlogSource.decode(reader, reader.uint32())); break; } case 3: { - if (!(message.include_states && message.include_states.length)) - message.include_states = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.include_states.push(reader.int32()); - } else - message.include_states.push(reader.int32()); + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; } case 4: { - if (!(message.exclude_workflows && message.exclude_workflows.length)) - message.exclude_workflows = []; - message.exclude_workflows.push(reader.string()); - break; - } - case 5: { - if (!(message.exclude_states && message.exclude_states.length)) - message.exclude_states = []; + if (!(message.tablet_types && message.tablet_types.length)) + message.tablet_types = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; while (reader.pos < end2) - message.exclude_states.push(reader.int32()); + message.tablet_types.push(reader.int32()); } else - message.exclude_states.push(reader.int32()); + message.tablet_types.push(reader.int32()); + break; + } + case 5: { + message.tablet_selection_preference = reader.int32(); break; } case 6: { - message.exclude_frozen = reader.bool(); + message.workflow_type = reader.int32(); + break; + } + case 7: { + message.workflow_sub_type = reader.int32(); + break; + } + case 8: { + message.defer_secondary_keys = reader.bool(); + break; + } + case 9: { + message.auto_start = reader.bool(); + break; + } + case 10: { + message.stop_after_copy = reader.bool(); + break; + } + case 11: { + message.options = reader.string(); break; } default: @@ -75054,313 +75394,397 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReadVReplicationWorkflowsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReadVReplicationWorkflowsRequest} ReadVReplicationWorkflowsRequest + * @returns {tabletmanagerdata.CreateVReplicationWorkflowRequest} CreateVReplicationWorkflowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadVReplicationWorkflowsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateVReplicationWorkflowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadVReplicationWorkflowsRequest message. + * Verifies a CreateVReplicationWorkflowRequest message. * @function verify - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadVReplicationWorkflowsRequest.verify = function verify(message) { + CreateVReplicationWorkflowRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.include_ids != null && message.hasOwnProperty("include_ids")) { - if (!Array.isArray(message.include_ids)) - return "include_ids: array expected"; - for (let i = 0; i < message.include_ids.length; ++i) - if (!$util.isInteger(message.include_ids[i])) - return "include_ids: integer[] expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.binlog_source != null && message.hasOwnProperty("binlog_source")) { + if (!Array.isArray(message.binlog_source)) + return "binlog_source: array expected"; + for (let i = 0; i < message.binlog_source.length; ++i) { + let error = $root.binlogdata.BinlogSource.verify(message.binlog_source[i]); + if (error) + return "binlog_source." + error; + } } - if (message.include_workflows != null && message.hasOwnProperty("include_workflows")) { - if (!Array.isArray(message.include_workflows)) - return "include_workflows: array expected"; - for (let i = 0; i < message.include_workflows.length; ++i) - if (!$util.isString(message.include_workflows[i])) - return "include_workflows: string[] expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; } - if (message.include_states != null && message.hasOwnProperty("include_states")) { - if (!Array.isArray(message.include_states)) - return "include_states: array expected"; - for (let i = 0; i < message.include_states.length; ++i) - switch (message.include_states[i]) { + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { + if (!Array.isArray(message.tablet_types)) + return "tablet_types: array expected"; + for (let i = 0; i < message.tablet_types.length; ++i) + switch (message.tablet_types[i]) { default: - return "include_states: enum value[] expected"; + return "tablet_types: enum value[] expected"; case 0: case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - } - if (message.exclude_workflows != null && message.hasOwnProperty("exclude_workflows")) { - if (!Array.isArray(message.exclude_workflows)) - return "exclude_workflows: array expected"; - for (let i = 0; i < message.exclude_workflows.length; ++i) - if (!$util.isString(message.exclude_workflows[i])) - return "exclude_workflows: string[] expected"; - } - if (message.exclude_states != null && message.hasOwnProperty("exclude_states")) { - if (!Array.isArray(message.exclude_states)) - return "exclude_states: array expected"; - for (let i = 0; i < message.exclude_states.length; ++i) - switch (message.exclude_states[i]) { - default: - return "exclude_states: enum value[] expected"; - case 0: case 1: case 2: case 3: + case 3: case 4: case 5: case 6: + case 7: + case 8: break; } } - if (message.exclude_frozen != null && message.hasOwnProperty("exclude_frozen")) - if (typeof message.exclude_frozen !== "boolean") - return "exclude_frozen: boolean expected"; + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + switch (message.tablet_selection_preference) { + default: + return "tablet_selection_preference: enum value expected"; + case 0: + case 1: + case 3: + break; + } + if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) + switch (message.workflow_type) { + default: + return "workflow_type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.workflow_sub_type != null && message.hasOwnProperty("workflow_sub_type")) + switch (message.workflow_sub_type) { + default: + return "workflow_sub_type: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) + if (typeof message.defer_secondary_keys !== "boolean") + return "defer_secondary_keys: boolean expected"; + if (message.auto_start != null && message.hasOwnProperty("auto_start")) + if (typeof message.auto_start !== "boolean") + return "auto_start: boolean 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.options != null && message.hasOwnProperty("options")) + if (!$util.isString(message.options)) + return "options: string expected"; return null; }; /** - * Creates a ReadVReplicationWorkflowsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReadVReplicationWorkflowsRequest} ReadVReplicationWorkflowsRequest + * @returns {tabletmanagerdata.CreateVReplicationWorkflowRequest} CreateVReplicationWorkflowRequest */ - ReadVReplicationWorkflowsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReadVReplicationWorkflowsRequest) + CreateVReplicationWorkflowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.CreateVReplicationWorkflowRequest) return object; - let message = new $root.tabletmanagerdata.ReadVReplicationWorkflowsRequest(); - if (object.include_ids) { - if (!Array.isArray(object.include_ids)) - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowsRequest.include_ids: array expected"); - message.include_ids = []; - for (let i = 0; i < object.include_ids.length; ++i) - message.include_ids[i] = object.include_ids[i] | 0; + let message = new $root.tabletmanagerdata.CreateVReplicationWorkflowRequest(); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.binlog_source) { + if (!Array.isArray(object.binlog_source)) + throw TypeError(".tabletmanagerdata.CreateVReplicationWorkflowRequest.binlog_source: array expected"); + message.binlog_source = []; + for (let i = 0; i < object.binlog_source.length; ++i) { + if (typeof object.binlog_source[i] !== "object") + throw TypeError(".tabletmanagerdata.CreateVReplicationWorkflowRequest.binlog_source: object expected"); + message.binlog_source[i] = $root.binlogdata.BinlogSource.fromObject(object.binlog_source[i]); + } } - if (object.include_workflows) { - if (!Array.isArray(object.include_workflows)) - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowsRequest.include_workflows: array expected"); - message.include_workflows = []; - for (let i = 0; i < object.include_workflows.length; ++i) - message.include_workflows[i] = String(object.include_workflows[i]); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".tabletmanagerdata.CreateVReplicationWorkflowRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); } - if (object.include_states) { - if (!Array.isArray(object.include_states)) - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowsRequest.include_states: array expected"); - message.include_states = []; - for (let i = 0; i < object.include_states.length; ++i) - switch (object.include_states[i]) { + if (object.tablet_types) { + if (!Array.isArray(object.tablet_types)) + throw TypeError(".tabletmanagerdata.CreateVReplicationWorkflowRequest.tablet_types: array expected"); + message.tablet_types = []; + for (let i = 0; i < object.tablet_types.length; ++i) + switch (object.tablet_types[i]) { default: - if (typeof object.include_states[i] === "number") { - message.include_states[i] = object.include_states[i]; + if (typeof object.tablet_types[i] === "number") { + message.tablet_types[i] = object.tablet_types[i]; break; } - case "Unknown": + case "UNKNOWN": case 0: - message.include_states[i] = 0; + message.tablet_types[i] = 0; break; - case "Init": + case "PRIMARY": case 1: - message.include_states[i] = 1; - break; - case "Stopped": - case 2: - message.include_states[i] = 2; - break; - case "Copying": - case 3: - message.include_states[i] = 3; - break; - case "Running": - case 4: - message.include_states[i] = 4; - break; - case "Error": - case 5: - message.include_states[i] = 5; - break; - case "Lagging": - case 6: - message.include_states[i] = 6; - break; - } - } - if (object.exclude_workflows) { - if (!Array.isArray(object.exclude_workflows)) - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowsRequest.exclude_workflows: array expected"); - message.exclude_workflows = []; - for (let i = 0; i < object.exclude_workflows.length; ++i) - message.exclude_workflows[i] = String(object.exclude_workflows[i]); - } - if (object.exclude_states) { - if (!Array.isArray(object.exclude_states)) - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowsRequest.exclude_states: array expected"); - message.exclude_states = []; - for (let i = 0; i < object.exclude_states.length; ++i) - switch (object.exclude_states[i]) { - default: - if (typeof object.exclude_states[i] === "number") { - message.exclude_states[i] = object.exclude_states[i]; - break; - } - case "Unknown": - case 0: - message.exclude_states[i] = 0; + message.tablet_types[i] = 1; break; - case "Init": + case "MASTER": case 1: - message.exclude_states[i] = 1; + message.tablet_types[i] = 1; break; - case "Stopped": + case "REPLICA": case 2: - message.exclude_states[i] = 2; + message.tablet_types[i] = 2; break; - case "Copying": + case "RDONLY": case 3: - message.exclude_states[i] = 3; + message.tablet_types[i] = 3; break; - case "Running": + case "BATCH": + case 3: + message.tablet_types[i] = 3; + break; + case "SPARE": case 4: - message.exclude_states[i] = 4; + message.tablet_types[i] = 4; break; - case "Error": + case "EXPERIMENTAL": case 5: - message.exclude_states[i] = 5; + message.tablet_types[i] = 5; break; - case "Lagging": + case "BACKUP": case 6: - message.exclude_states[i] = 6; + message.tablet_types[i] = 6; + break; + case "RESTORE": + case 7: + message.tablet_types[i] = 7; + break; + case "DRAINED": + case 8: + message.tablet_types[i] = 8; break; } } - if (object.exclude_frozen != null) - message.exclude_frozen = Boolean(object.exclude_frozen); + switch (object.tablet_selection_preference) { + default: + if (typeof object.tablet_selection_preference === "number") { + message.tablet_selection_preference = object.tablet_selection_preference; + break; + } + break; + case "ANY": + case 0: + message.tablet_selection_preference = 0; + break; + case "INORDER": + case 1: + message.tablet_selection_preference = 1; + break; + case "UNKNOWN": + case 3: + message.tablet_selection_preference = 3; + break; + } + switch (object.workflow_type) { + default: + if (typeof object.workflow_type === "number") { + message.workflow_type = object.workflow_type; + break; + } + break; + case "Materialize": + case 0: + message.workflow_type = 0; + break; + case "MoveTables": + case 1: + message.workflow_type = 1; + break; + case "CreateLookupIndex": + case 2: + message.workflow_type = 2; + break; + case "Migrate": + case 3: + message.workflow_type = 3; + break; + case "Reshard": + case 4: + message.workflow_type = 4; + break; + case "OnlineDDL": + case 5: + message.workflow_type = 5; + break; + } + switch (object.workflow_sub_type) { + default: + if (typeof object.workflow_sub_type === "number") { + message.workflow_sub_type = object.workflow_sub_type; + break; + } + break; + case "None": + case 0: + message.workflow_sub_type = 0; + break; + case "Partial": + case 1: + message.workflow_sub_type = 1; + break; + case "AtomicCopy": + case 2: + message.workflow_sub_type = 2; + break; + } + if (object.defer_secondary_keys != null) + message.defer_secondary_keys = Boolean(object.defer_secondary_keys); + if (object.auto_start != null) + message.auto_start = Boolean(object.auto_start); + if (object.stop_after_copy != null) + message.stop_after_copy = Boolean(object.stop_after_copy); + if (object.options != null) + message.options = String(object.options); return message; }; /** - * Creates a plain object from a ReadVReplicationWorkflowsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateVReplicationWorkflowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.ReadVReplicationWorkflowsRequest} message ReadVReplicationWorkflowsRequest + * @param {tabletmanagerdata.CreateVReplicationWorkflowRequest} message CreateVReplicationWorkflowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadVReplicationWorkflowsRequest.toObject = function toObject(message, options) { + CreateVReplicationWorkflowRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { - object.include_ids = []; - object.include_workflows = []; - object.include_states = []; - object.exclude_workflows = []; - object.exclude_states = []; - } - if (options.defaults) - object.exclude_frozen = false; - if (message.include_ids && message.include_ids.length) { - object.include_ids = []; - for (let j = 0; j < message.include_ids.length; ++j) - object.include_ids[j] = message.include_ids[j]; + object.binlog_source = []; + object.cells = []; + object.tablet_types = []; } - if (message.include_workflows && message.include_workflows.length) { - object.include_workflows = []; - for (let j = 0; j < message.include_workflows.length; ++j) - object.include_workflows[j] = message.include_workflows[j]; + if (options.defaults) { + object.workflow = ""; + object.tablet_selection_preference = options.enums === String ? "ANY" : 0; + object.workflow_type = options.enums === String ? "Materialize" : 0; + object.workflow_sub_type = options.enums === String ? "None" : 0; + object.defer_secondary_keys = false; + object.auto_start = false; + object.stop_after_copy = false; + object.options = ""; } - if (message.include_states && message.include_states.length) { - object.include_states = []; - for (let j = 0; j < message.include_states.length; ++j) - object.include_states[j] = options.enums === String ? $root.binlogdata.VReplicationWorkflowState[message.include_states[j]] === undefined ? message.include_states[j] : $root.binlogdata.VReplicationWorkflowState[message.include_states[j]] : message.include_states[j]; + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.binlog_source && message.binlog_source.length) { + object.binlog_source = []; + for (let j = 0; j < message.binlog_source.length; ++j) + object.binlog_source[j] = $root.binlogdata.BinlogSource.toObject(message.binlog_source[j], options); } - if (message.exclude_workflows && message.exclude_workflows.length) { - object.exclude_workflows = []; - for (let j = 0; j < message.exclude_workflows.length; ++j) - object.exclude_workflows[j] = message.exclude_workflows[j]; + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; } - if (message.exclude_states && message.exclude_states.length) { - object.exclude_states = []; - for (let j = 0; j < message.exclude_states.length; ++j) - object.exclude_states[j] = options.enums === String ? $root.binlogdata.VReplicationWorkflowState[message.exclude_states[j]] === undefined ? message.exclude_states[j] : $root.binlogdata.VReplicationWorkflowState[message.exclude_states[j]] : message.exclude_states[j]; + if (message.tablet_types && message.tablet_types.length) { + object.tablet_types = []; + for (let j = 0; j < message.tablet_types.length; ++j) + object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; } - if (message.exclude_frozen != null && message.hasOwnProperty("exclude_frozen")) - object.exclude_frozen = message.exclude_frozen; + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; + if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) + object.workflow_type = options.enums === String ? $root.binlogdata.VReplicationWorkflowType[message.workflow_type] === undefined ? message.workflow_type : $root.binlogdata.VReplicationWorkflowType[message.workflow_type] : message.workflow_type; + if (message.workflow_sub_type != null && message.hasOwnProperty("workflow_sub_type")) + object.workflow_sub_type = options.enums === String ? $root.binlogdata.VReplicationWorkflowSubType[message.workflow_sub_type] === undefined ? message.workflow_sub_type : $root.binlogdata.VReplicationWorkflowSubType[message.workflow_sub_type] : message.workflow_sub_type; + if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) + object.defer_secondary_keys = message.defer_secondary_keys; + if (message.auto_start != null && message.hasOwnProperty("auto_start")) + object.auto_start = message.auto_start; + if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) + object.stop_after_copy = message.stop_after_copy; + if (message.options != null && message.hasOwnProperty("options")) + object.options = message.options; return object; }; /** - * Converts this ReadVReplicationWorkflowsRequest to JSON. + * Converts this CreateVReplicationWorkflowRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @instance * @returns {Object.} JSON object */ - ReadVReplicationWorkflowsRequest.prototype.toJSON = function toJSON() { + CreateVReplicationWorkflowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadVReplicationWorkflowsRequest + * Gets the default type url for CreateVReplicationWorkflowRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.CreateVReplicationWorkflowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadVReplicationWorkflowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateVReplicationWorkflowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReadVReplicationWorkflowsRequest"; + return typeUrlPrefix + "/tabletmanagerdata.CreateVReplicationWorkflowRequest"; }; - return ReadVReplicationWorkflowsRequest; + return CreateVReplicationWorkflowRequest; })(); - tabletmanagerdata.ReadVReplicationWorkflowsResponse = (function() { + tabletmanagerdata.CreateVReplicationWorkflowResponse = (function() { /** - * Properties of a ReadVReplicationWorkflowsResponse. + * Properties of a CreateVReplicationWorkflowResponse. * @memberof tabletmanagerdata - * @interface IReadVReplicationWorkflowsResponse - * @property {Array.|null} [workflows] ReadVReplicationWorkflowsResponse workflows + * @interface ICreateVReplicationWorkflowResponse + * @property {query.IQueryResult|null} [result] CreateVReplicationWorkflowResponse result */ /** - * Constructs a new ReadVReplicationWorkflowsResponse. + * Constructs a new CreateVReplicationWorkflowResponse. * @memberof tabletmanagerdata - * @classdesc Represents a ReadVReplicationWorkflowsResponse. - * @implements IReadVReplicationWorkflowsResponse + * @classdesc Represents a CreateVReplicationWorkflowResponse. + * @implements ICreateVReplicationWorkflowResponse * @constructor - * @param {tabletmanagerdata.IReadVReplicationWorkflowsResponse=} [properties] Properties to set + * @param {tabletmanagerdata.ICreateVReplicationWorkflowResponse=} [properties] Properties to set */ - function ReadVReplicationWorkflowsResponse(properties) { - this.workflows = []; + function CreateVReplicationWorkflowResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75368,78 +75792,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ReadVReplicationWorkflowsResponse workflows. - * @member {Array.} workflows - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse + * CreateVReplicationWorkflowResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse * @instance */ - ReadVReplicationWorkflowsResponse.prototype.workflows = $util.emptyArray; + CreateVReplicationWorkflowResponse.prototype.result = null; /** - * Creates a new ReadVReplicationWorkflowsResponse instance using the specified properties. + * Creates a new CreateVReplicationWorkflowResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.IReadVReplicationWorkflowsResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ReadVReplicationWorkflowsResponse} ReadVReplicationWorkflowsResponse instance + * @param {tabletmanagerdata.ICreateVReplicationWorkflowResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.CreateVReplicationWorkflowResponse} CreateVReplicationWorkflowResponse instance */ - ReadVReplicationWorkflowsResponse.create = function create(properties) { - return new ReadVReplicationWorkflowsResponse(properties); + CreateVReplicationWorkflowResponse.create = function create(properties) { + return new CreateVReplicationWorkflowResponse(properties); }; /** - * Encodes the specified ReadVReplicationWorkflowsResponse message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsResponse.verify|verify} messages. + * Encodes the specified CreateVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.IReadVReplicationWorkflowsResponse} message ReadVReplicationWorkflowsResponse message or plain object to encode + * @param {tabletmanagerdata.ICreateVReplicationWorkflowResponse} message CreateVReplicationWorkflowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadVReplicationWorkflowsResponse.encode = function encode(message, writer) { + CreateVReplicationWorkflowResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workflows != null && message.workflows.length) - for (let i = 0; i < message.workflows.length; ++i) - $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.encode(message.workflows[i], 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(); return writer; }; /** - * Encodes the specified ReadVReplicationWorkflowsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsResponse.verify|verify} messages. + * Encodes the specified CreateVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.CreateVReplicationWorkflowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.IReadVReplicationWorkflowsResponse} message ReadVReplicationWorkflowsResponse message or plain object to encode + * @param {tabletmanagerdata.ICreateVReplicationWorkflowResponse} message CreateVReplicationWorkflowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadVReplicationWorkflowsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateVReplicationWorkflowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadVReplicationWorkflowsResponse message from the specified reader or buffer. + * Decodes a CreateVReplicationWorkflowResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReadVReplicationWorkflowsResponse} ReadVReplicationWorkflowsResponse + * @returns {tabletmanagerdata.CreateVReplicationWorkflowResponse} CreateVReplicationWorkflowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadVReplicationWorkflowsResponse.decode = function decode(reader, length) { + CreateVReplicationWorkflowResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadVReplicationWorkflowsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CreateVReplicationWorkflowResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.workflows && message.workflows.length)) - message.workflows = []; - message.workflows.push($root.tabletmanagerdata.ReadVReplicationWorkflowResponse.decode(reader, reader.uint32())); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; } default: @@ -75451,139 +75872,129 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReadVReplicationWorkflowsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReadVReplicationWorkflowsResponse} ReadVReplicationWorkflowsResponse + * @returns {tabletmanagerdata.CreateVReplicationWorkflowResponse} CreateVReplicationWorkflowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadVReplicationWorkflowsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateVReplicationWorkflowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadVReplicationWorkflowsResponse message. + * Verifies a CreateVReplicationWorkflowResponse message. * @function verify - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadVReplicationWorkflowsResponse.verify = function verify(message) { + CreateVReplicationWorkflowResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workflows != null && message.hasOwnProperty("workflows")) { - if (!Array.isArray(message.workflows)) - return "workflows: array expected"; - for (let i = 0; i < message.workflows.length; ++i) { - let error = $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.verify(message.workflows[i]); - if (error) - return "workflows." + error; - } + if (message.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; } return null; }; /** - * Creates a ReadVReplicationWorkflowsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReadVReplicationWorkflowsResponse} ReadVReplicationWorkflowsResponse + * @returns {tabletmanagerdata.CreateVReplicationWorkflowResponse} CreateVReplicationWorkflowResponse */ - ReadVReplicationWorkflowsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReadVReplicationWorkflowsResponse) + CreateVReplicationWorkflowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.CreateVReplicationWorkflowResponse) return object; - let message = new $root.tabletmanagerdata.ReadVReplicationWorkflowsResponse(); - if (object.workflows) { - if (!Array.isArray(object.workflows)) - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowsResponse.workflows: array expected"); - message.workflows = []; - for (let i = 0; i < object.workflows.length; ++i) { - if (typeof object.workflows[i] !== "object") - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowsResponse.workflows: object expected"); - message.workflows[i] = $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.fromObject(object.workflows[i]); - } + let message = new $root.tabletmanagerdata.CreateVReplicationWorkflowResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".tabletmanagerdata.CreateVReplicationWorkflowResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); } return message; }; /** - * Creates a plain object from a ReadVReplicationWorkflowsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateVReplicationWorkflowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.ReadVReplicationWorkflowsResponse} message ReadVReplicationWorkflowsResponse + * @param {tabletmanagerdata.CreateVReplicationWorkflowResponse} message CreateVReplicationWorkflowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadVReplicationWorkflowsResponse.toObject = function toObject(message, options) { + CreateVReplicationWorkflowResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.workflows = []; - if (message.workflows && message.workflows.length) { - object.workflows = []; - for (let j = 0; j < message.workflows.length; ++j) - object.workflows[j] = $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.toObject(message.workflows[j], options); - } + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this ReadVReplicationWorkflowsResponse to JSON. + * Converts this CreateVReplicationWorkflowResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse * @instance * @returns {Object.} JSON object */ - ReadVReplicationWorkflowsResponse.prototype.toJSON = function toJSON() { + CreateVReplicationWorkflowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadVReplicationWorkflowsResponse + * Gets the default type url for CreateVReplicationWorkflowResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.CreateVReplicationWorkflowResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadVReplicationWorkflowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateVReplicationWorkflowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReadVReplicationWorkflowsResponse"; + return typeUrlPrefix + "/tabletmanagerdata.CreateVReplicationWorkflowResponse"; }; - return ReadVReplicationWorkflowsResponse; + return CreateVReplicationWorkflowResponse; })(); - tabletmanagerdata.ReadVReplicationWorkflowRequest = (function() { + tabletmanagerdata.DeleteTableDataRequest = (function() { /** - * Properties of a ReadVReplicationWorkflowRequest. + * Properties of a DeleteTableDataRequest. * @memberof tabletmanagerdata - * @interface IReadVReplicationWorkflowRequest - * @property {string|null} [workflow] ReadVReplicationWorkflowRequest workflow + * @interface IDeleteTableDataRequest + * @property {Object.|null} [table_filters] DeleteTableDataRequest table_filters + * @property {number|Long|null} [batch_size] DeleteTableDataRequest batch_size */ /** - * Constructs a new ReadVReplicationWorkflowRequest. + * Constructs a new DeleteTableDataRequest. * @memberof tabletmanagerdata - * @classdesc Represents a ReadVReplicationWorkflowRequest. - * @implements IReadVReplicationWorkflowRequest + * @classdesc Represents a DeleteTableDataRequest. + * @implements IDeleteTableDataRequest * @constructor - * @param {tabletmanagerdata.IReadVReplicationWorkflowRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IDeleteTableDataRequest=} [properties] Properties to set */ - function ReadVReplicationWorkflowRequest(properties) { + function DeleteTableDataRequest(properties) { + this.table_filters = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75591,75 +76002,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ReadVReplicationWorkflowRequest workflow. - * @member {string} workflow - * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest + * DeleteTableDataRequest table_filters. + * @member {Object.} table_filters + * @memberof tabletmanagerdata.DeleteTableDataRequest * @instance */ - ReadVReplicationWorkflowRequest.prototype.workflow = ""; + DeleteTableDataRequest.prototype.table_filters = $util.emptyObject; /** - * Creates a new ReadVReplicationWorkflowRequest instance using the specified properties. + * DeleteTableDataRequest batch_size. + * @member {number|Long} batch_size + * @memberof tabletmanagerdata.DeleteTableDataRequest + * @instance + */ + DeleteTableDataRequest.prototype.batch_size = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new DeleteTableDataRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest + * @memberof tabletmanagerdata.DeleteTableDataRequest * @static - * @param {tabletmanagerdata.IReadVReplicationWorkflowRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ReadVReplicationWorkflowRequest} ReadVReplicationWorkflowRequest instance + * @param {tabletmanagerdata.IDeleteTableDataRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.DeleteTableDataRequest} DeleteTableDataRequest instance */ - ReadVReplicationWorkflowRequest.create = function create(properties) { - return new ReadVReplicationWorkflowRequest(properties); + DeleteTableDataRequest.create = function create(properties) { + return new DeleteTableDataRequest(properties); }; /** - * Encodes the specified ReadVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowRequest.verify|verify} messages. + * Encodes the specified DeleteTableDataRequest message. Does not implicitly {@link tabletmanagerdata.DeleteTableDataRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest + * @memberof tabletmanagerdata.DeleteTableDataRequest * @static - * @param {tabletmanagerdata.IReadVReplicationWorkflowRequest} message ReadVReplicationWorkflowRequest message or plain object to encode + * @param {tabletmanagerdata.IDeleteTableDataRequest} message DeleteTableDataRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadVReplicationWorkflowRequest.encode = function encode(message, writer) { + DeleteTableDataRequest.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.table_filters != null && Object.hasOwnProperty.call(message, "table_filters")) + for (let keys = Object.keys(message.table_filters), 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.table_filters[keys[i]]).ldelim(); + if (message.batch_size != null && Object.hasOwnProperty.call(message, "batch_size")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.batch_size); return writer; }; /** - * Encodes the specified ReadVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowRequest.verify|verify} messages. + * Encodes the specified DeleteTableDataRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteTableDataRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest + * @memberof tabletmanagerdata.DeleteTableDataRequest * @static - * @param {tabletmanagerdata.IReadVReplicationWorkflowRequest} message ReadVReplicationWorkflowRequest message or plain object to encode + * @param {tabletmanagerdata.IDeleteTableDataRequest} message DeleteTableDataRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadVReplicationWorkflowRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTableDataRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadVReplicationWorkflowRequest message from the specified reader or buffer. + * Decodes a DeleteTableDataRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest + * @memberof tabletmanagerdata.DeleteTableDataRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReadVReplicationWorkflowRequest} ReadVReplicationWorkflowRequest + * @returns {tabletmanagerdata.DeleteTableDataRequest} DeleteTableDataRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadVReplicationWorkflowRequest.decode = function decode(reader, length) { + DeleteTableDataRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadVReplicationWorkflowRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DeleteTableDataRequest(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workflow = reader.string(); + if (message.table_filters === $util.emptyObject) + message.table_filters = {}; + 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.table_filters[key] = value; + break; + } + case 2: { + message.batch_size = reader.int64(); break; } default: @@ -75671,136 +76116,158 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReadVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTableDataRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest + * @memberof tabletmanagerdata.DeleteTableDataRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReadVReplicationWorkflowRequest} ReadVReplicationWorkflowRequest + * @returns {tabletmanagerdata.DeleteTableDataRequest} DeleteTableDataRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadVReplicationWorkflowRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteTableDataRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadVReplicationWorkflowRequest message. + * Verifies a DeleteTableDataRequest message. * @function verify - * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest + * @memberof tabletmanagerdata.DeleteTableDataRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadVReplicationWorkflowRequest.verify = function verify(message) { + DeleteTableDataRequest.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.table_filters != null && message.hasOwnProperty("table_filters")) { + if (!$util.isObject(message.table_filters)) + return "table_filters: object expected"; + let key = Object.keys(message.table_filters); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.table_filters[key[i]])) + return "table_filters: string{k:string} expected"; + } + if (message.batch_size != null && message.hasOwnProperty("batch_size")) + if (!$util.isInteger(message.batch_size) && !(message.batch_size && $util.isInteger(message.batch_size.low) && $util.isInteger(message.batch_size.high))) + return "batch_size: integer|Long expected"; return null; }; /** - * Creates a ReadVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTableDataRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest + * @memberof tabletmanagerdata.DeleteTableDataRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReadVReplicationWorkflowRequest} ReadVReplicationWorkflowRequest + * @returns {tabletmanagerdata.DeleteTableDataRequest} DeleteTableDataRequest */ - ReadVReplicationWorkflowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReadVReplicationWorkflowRequest) + DeleteTableDataRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.DeleteTableDataRequest) return object; - let message = new $root.tabletmanagerdata.ReadVReplicationWorkflowRequest(); - if (object.workflow != null) - message.workflow = String(object.workflow); + let message = new $root.tabletmanagerdata.DeleteTableDataRequest(); + if (object.table_filters) { + if (typeof object.table_filters !== "object") + throw TypeError(".tabletmanagerdata.DeleteTableDataRequest.table_filters: object expected"); + message.table_filters = {}; + for (let keys = Object.keys(object.table_filters), i = 0; i < keys.length; ++i) + message.table_filters[keys[i]] = String(object.table_filters[keys[i]]); + } + if (object.batch_size != null) + if ($util.Long) + (message.batch_size = $util.Long.fromValue(object.batch_size)).unsigned = false; + else if (typeof object.batch_size === "string") + message.batch_size = parseInt(object.batch_size, 10); + else if (typeof object.batch_size === "number") + message.batch_size = object.batch_size; + else if (typeof object.batch_size === "object") + message.batch_size = new $util.LongBits(object.batch_size.low >>> 0, object.batch_size.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a ReadVReplicationWorkflowRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTableDataRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest + * @memberof tabletmanagerdata.DeleteTableDataRequest * @static - * @param {tabletmanagerdata.ReadVReplicationWorkflowRequest} message ReadVReplicationWorkflowRequest + * @param {tabletmanagerdata.DeleteTableDataRequest} message DeleteTableDataRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadVReplicationWorkflowRequest.toObject = function toObject(message, options) { + DeleteTableDataRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.objects || options.defaults) + object.table_filters = {}; if (options.defaults) - object.workflow = ""; - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.batch_size = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.batch_size = options.longs === String ? "0" : 0; + let keys2; + if (message.table_filters && (keys2 = Object.keys(message.table_filters)).length) { + object.table_filters = {}; + for (let j = 0; j < keys2.length; ++j) + object.table_filters[keys2[j]] = message.table_filters[keys2[j]]; + } + if (message.batch_size != null && message.hasOwnProperty("batch_size")) + if (typeof message.batch_size === "number") + object.batch_size = options.longs === String ? String(message.batch_size) : message.batch_size; + else + object.batch_size = options.longs === String ? $util.Long.prototype.toString.call(message.batch_size) : options.longs === Number ? new $util.LongBits(message.batch_size.low >>> 0, message.batch_size.high >>> 0).toNumber() : message.batch_size; return object; }; /** - * Converts this ReadVReplicationWorkflowRequest to JSON. + * Converts this DeleteTableDataRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest + * @memberof tabletmanagerdata.DeleteTableDataRequest * @instance * @returns {Object.} JSON object */ - ReadVReplicationWorkflowRequest.prototype.toJSON = function toJSON() { + DeleteTableDataRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadVReplicationWorkflowRequest + * Gets the default type url for DeleteTableDataRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest + * @memberof tabletmanagerdata.DeleteTableDataRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadVReplicationWorkflowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteTableDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReadVReplicationWorkflowRequest"; + return typeUrlPrefix + "/tabletmanagerdata.DeleteTableDataRequest"; }; - return ReadVReplicationWorkflowRequest; + return DeleteTableDataRequest; })(); - tabletmanagerdata.ReadVReplicationWorkflowResponse = (function() { + tabletmanagerdata.DeleteTableDataResponse = (function() { /** - * Properties of a ReadVReplicationWorkflowResponse. + * Properties of a DeleteTableDataResponse. * @memberof tabletmanagerdata - * @interface IReadVReplicationWorkflowResponse - * @property {string|null} [workflow] ReadVReplicationWorkflowResponse workflow - * @property {string|null} [cells] ReadVReplicationWorkflowResponse cells - * @property {Array.|null} [tablet_types] ReadVReplicationWorkflowResponse tablet_types - * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] ReadVReplicationWorkflowResponse tablet_selection_preference - * @property {string|null} [db_name] ReadVReplicationWorkflowResponse db_name - * @property {string|null} [tags] ReadVReplicationWorkflowResponse tags - * @property {binlogdata.VReplicationWorkflowType|null} [workflow_type] ReadVReplicationWorkflowResponse workflow_type - * @property {binlogdata.VReplicationWorkflowSubType|null} [workflow_sub_type] ReadVReplicationWorkflowResponse workflow_sub_type - * @property {boolean|null} [defer_secondary_keys] ReadVReplicationWorkflowResponse defer_secondary_keys - * @property {Array.|null} [streams] ReadVReplicationWorkflowResponse streams - * @property {string|null} [options] ReadVReplicationWorkflowResponse options - * @property {Object.|null} [config_overrides] ReadVReplicationWorkflowResponse config_overrides + * @interface IDeleteTableDataResponse */ /** - * Constructs a new ReadVReplicationWorkflowResponse. + * Constructs a new DeleteTableDataResponse. * @memberof tabletmanagerdata - * @classdesc Represents a ReadVReplicationWorkflowResponse. - * @implements IReadVReplicationWorkflowResponse + * @classdesc Represents a DeleteTableDataResponse. + * @implements IDeleteTableDataResponse * @constructor - * @param {tabletmanagerdata.IReadVReplicationWorkflowResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IDeleteTableDataResponse=} [properties] Properties to set */ - function ReadVReplicationWorkflowResponse(properties) { - this.tablet_types = []; - this.streams = []; - this.config_overrides = {}; + function DeleteTableDataResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75808,265 +76275,253 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ReadVReplicationWorkflowResponse workflow. - * @member {string} workflow - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse - * @instance + * Creates a new DeleteTableDataResponse instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.DeleteTableDataResponse + * @static + * @param {tabletmanagerdata.IDeleteTableDataResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.DeleteTableDataResponse} DeleteTableDataResponse instance */ - ReadVReplicationWorkflowResponse.prototype.workflow = ""; + DeleteTableDataResponse.create = function create(properties) { + return new DeleteTableDataResponse(properties); + }; /** - * ReadVReplicationWorkflowResponse cells. - * @member {string} cells - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse - * @instance + * Encodes the specified DeleteTableDataResponse message. Does not implicitly {@link tabletmanagerdata.DeleteTableDataResponse.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.DeleteTableDataResponse + * @static + * @param {tabletmanagerdata.IDeleteTableDataResponse} message DeleteTableDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ReadVReplicationWorkflowResponse.prototype.cells = ""; + DeleteTableDataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * ReadVReplicationWorkflowResponse tablet_types. - * @member {Array.} tablet_types - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse - * @instance + * Encodes the specified DeleteTableDataResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteTableDataResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.DeleteTableDataResponse + * @static + * @param {tabletmanagerdata.IDeleteTableDataResponse} message DeleteTableDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ReadVReplicationWorkflowResponse.prototype.tablet_types = $util.emptyArray; + DeleteTableDataResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * ReadVReplicationWorkflowResponse tablet_selection_preference. - * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse - * @instance + * Decodes a DeleteTableDataResponse message from the specified reader or buffer. + * @function decode + * @memberof tabletmanagerdata.DeleteTableDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tabletmanagerdata.DeleteTableDataResponse} DeleteTableDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadVReplicationWorkflowResponse.prototype.tablet_selection_preference = 0; + DeleteTableDataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DeleteTableDataResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * ReadVReplicationWorkflowResponse db_name. - * @member {string} db_name - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse - * @instance + * Decodes a DeleteTableDataResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tabletmanagerdata.DeleteTableDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tabletmanagerdata.DeleteTableDataResponse} DeleteTableDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadVReplicationWorkflowResponse.prototype.db_name = ""; + DeleteTableDataResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * ReadVReplicationWorkflowResponse tags. - * @member {string} tags - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse - * @instance + * Verifies a DeleteTableDataResponse message. + * @function verify + * @memberof tabletmanagerdata.DeleteTableDataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadVReplicationWorkflowResponse.prototype.tags = ""; + DeleteTableDataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; /** - * ReadVReplicationWorkflowResponse workflow_type. - * @member {binlogdata.VReplicationWorkflowType} workflow_type - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse - * @instance + * Creates a DeleteTableDataResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tabletmanagerdata.DeleteTableDataResponse + * @static + * @param {Object.} object Plain object + * @returns {tabletmanagerdata.DeleteTableDataResponse} DeleteTableDataResponse */ - ReadVReplicationWorkflowResponse.prototype.workflow_type = 0; + DeleteTableDataResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.DeleteTableDataResponse) + return object; + return new $root.tabletmanagerdata.DeleteTableDataResponse(); + }; /** - * ReadVReplicationWorkflowResponse workflow_sub_type. - * @member {binlogdata.VReplicationWorkflowSubType} workflow_sub_type - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse - * @instance + * Creates a plain object from a DeleteTableDataResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.DeleteTableDataResponse + * @static + * @param {tabletmanagerdata.DeleteTableDataResponse} message DeleteTableDataResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ReadVReplicationWorkflowResponse.prototype.workflow_sub_type = 0; + DeleteTableDataResponse.toObject = function toObject() { + return {}; + }; /** - * ReadVReplicationWorkflowResponse defer_secondary_keys. - * @member {boolean} defer_secondary_keys - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * Converts this DeleteTableDataResponse to JSON. + * @function toJSON + * @memberof tabletmanagerdata.DeleteTableDataResponse * @instance + * @returns {Object.} JSON object */ - ReadVReplicationWorkflowResponse.prototype.defer_secondary_keys = false; + DeleteTableDataResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * ReadVReplicationWorkflowResponse streams. - * @member {Array.} streams - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse - * @instance + * Gets the default type url for DeleteTableDataResponse + * @function getTypeUrl + * @memberof tabletmanagerdata.DeleteTableDataResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - ReadVReplicationWorkflowResponse.prototype.streams = $util.emptyArray; + DeleteTableDataResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.DeleteTableDataResponse"; + }; + + return DeleteTableDataResponse; + })(); + + tabletmanagerdata.DeleteVReplicationWorkflowRequest = (function() { /** - * ReadVReplicationWorkflowResponse options. - * @member {string} options - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse - * @instance + * Properties of a DeleteVReplicationWorkflowRequest. + * @memberof tabletmanagerdata + * @interface IDeleteVReplicationWorkflowRequest + * @property {string|null} [workflow] DeleteVReplicationWorkflowRequest workflow */ - ReadVReplicationWorkflowResponse.prototype.options = ""; /** - * ReadVReplicationWorkflowResponse config_overrides. - * @member {Object.} config_overrides - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * Constructs a new DeleteVReplicationWorkflowRequest. + * @memberof tabletmanagerdata + * @classdesc Represents a DeleteVReplicationWorkflowRequest. + * @implements IDeleteVReplicationWorkflowRequest + * @constructor + * @param {tabletmanagerdata.IDeleteVReplicationWorkflowRequest=} [properties] Properties to set + */ + function DeleteVReplicationWorkflowRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteVReplicationWorkflowRequest workflow. + * @member {string} workflow + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest * @instance */ - ReadVReplicationWorkflowResponse.prototype.config_overrides = $util.emptyObject; + DeleteVReplicationWorkflowRequest.prototype.workflow = ""; /** - * Creates a new ReadVReplicationWorkflowResponse instance using the specified properties. + * Creates a new DeleteVReplicationWorkflowRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.IReadVReplicationWorkflowResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse} ReadVReplicationWorkflowResponse instance + * @param {tabletmanagerdata.IDeleteVReplicationWorkflowRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.DeleteVReplicationWorkflowRequest} DeleteVReplicationWorkflowRequest instance */ - ReadVReplicationWorkflowResponse.create = function create(properties) { - return new ReadVReplicationWorkflowResponse(properties); + DeleteVReplicationWorkflowRequest.create = function create(properties) { + return new DeleteVReplicationWorkflowRequest(properties); }; /** - * Encodes the specified ReadVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.verify|verify} messages. + * Encodes the specified DeleteVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.IReadVReplicationWorkflowResponse} message ReadVReplicationWorkflowResponse message or plain object to encode + * @param {tabletmanagerdata.IDeleteVReplicationWorkflowRequest} message DeleteVReplicationWorkflowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadVReplicationWorkflowResponse.encode = function encode(message, writer) { + DeleteVReplicationWorkflowRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.workflow); - if (message.cells != null && Object.hasOwnProperty.call(message, "cells")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells); - if (message.tablet_types != null && message.tablet_types.length) { - writer.uint32(/* id 4, wireType 2 =*/34).fork(); - for (let i = 0; i < message.tablet_types.length; ++i) - writer.int32(message.tablet_types[i]); - writer.ldelim(); - } - if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.tablet_selection_preference); - if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.db_name); - if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.tags); - if (message.workflow_type != null && Object.hasOwnProperty.call(message, "workflow_type")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.workflow_type); - if (message.workflow_sub_type != null && Object.hasOwnProperty.call(message, "workflow_sub_type")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.workflow_sub_type); - if (message.defer_secondary_keys != null && Object.hasOwnProperty.call(message, "defer_secondary_keys")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.defer_secondary_keys); - if (message.streams != null && message.streams.length) - for (let i = 0; i < message.streams.length; ++i) - $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.encode(message.streams[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.options); - if (message.config_overrides != null && Object.hasOwnProperty.call(message, "config_overrides")) - for (let keys = Object.keys(message.config_overrides), i = 0; i < keys.length; ++i) - writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config_overrides[keys[i]]).ldelim(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); return writer; }; /** - * Encodes the specified ReadVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.verify|verify} messages. + * Encodes the specified DeleteVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.IReadVReplicationWorkflowResponse} message ReadVReplicationWorkflowResponse message or plain object to encode + * @param {tabletmanagerdata.IDeleteVReplicationWorkflowRequest} message DeleteVReplicationWorkflowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadVReplicationWorkflowResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteVReplicationWorkflowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadVReplicationWorkflowResponse message from the specified reader or buffer. + * Decodes a DeleteVReplicationWorkflowRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse} ReadVReplicationWorkflowResponse + * @returns {tabletmanagerdata.DeleteVReplicationWorkflowRequest} DeleteVReplicationWorkflowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadVReplicationWorkflowResponse.decode = function decode(reader, length) { + DeleteVReplicationWorkflowRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadVReplicationWorkflowResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DeleteVReplicationWorkflowRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 2: { + case 1: { message.workflow = reader.string(); break; } - case 3: { - message.cells = reader.string(); - break; - } - case 4: { - if (!(message.tablet_types && message.tablet_types.length)) - message.tablet_types = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.tablet_types.push(reader.int32()); - } else - message.tablet_types.push(reader.int32()); - break; - } - case 5: { - message.tablet_selection_preference = reader.int32(); - break; - } - case 6: { - message.db_name = reader.string(); - break; - } - case 7: { - message.tags = reader.string(); - break; - } - case 8: { - message.workflow_type = reader.int32(); - break; - } - case 9: { - message.workflow_sub_type = reader.int32(); - break; - } - case 10: { - message.defer_secondary_keys = reader.bool(); - break; - } - case 11: { - if (!(message.streams && message.streams.length)) - message.streams = []; - message.streams.push($root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.decode(reader, reader.uint32())); - break; - } - case 12: { - message.options = reader.string(); - break; - } - case 13: { - if (message.config_overrides === $util.emptyObject) - message.config_overrides = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.config_overrides[key] = value; - break; - } default: reader.skipType(tag & 7); break; @@ -76076,1021 +76531,122 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ReadVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse} ReadVReplicationWorkflowResponse + * @returns {tabletmanagerdata.DeleteVReplicationWorkflowRequest} DeleteVReplicationWorkflowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadVReplicationWorkflowResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteVReplicationWorkflowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadVReplicationWorkflowResponse message. + * Verifies a DeleteVReplicationWorkflowRequest message. * @function verify - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadVReplicationWorkflowResponse.verify = function verify(message) { + DeleteVReplicationWorkflowRequest.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.cells != null && message.hasOwnProperty("cells")) - if (!$util.isString(message.cells)) - return "cells: string expected"; - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { - if (!Array.isArray(message.tablet_types)) - return "tablet_types: array expected"; - for (let i = 0; i < message.tablet_types.length; ++i) - switch (message.tablet_types[i]) { - default: - return "tablet_types: enum value[] expected"; - case 0: - case 1: - case 1: - case 2: - case 3: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - switch (message.tablet_selection_preference) { - default: - return "tablet_selection_preference: enum value expected"; - case 0: - case 1: - case 3: - break; - } - if (message.db_name != null && message.hasOwnProperty("db_name")) - if (!$util.isString(message.db_name)) - return "db_name: string expected"; - if (message.tags != null && message.hasOwnProperty("tags")) - if (!$util.isString(message.tags)) - return "tags: string expected"; - if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) - switch (message.workflow_type) { - default: - return "workflow_type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.workflow_sub_type != null && message.hasOwnProperty("workflow_sub_type")) - switch (message.workflow_sub_type) { - default: - return "workflow_sub_type: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) - if (typeof message.defer_secondary_keys !== "boolean") - return "defer_secondary_keys: boolean expected"; - if (message.streams != null && message.hasOwnProperty("streams")) { - if (!Array.isArray(message.streams)) - return "streams: array expected"; - for (let i = 0; i < message.streams.length; ++i) { - let error = $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.verify(message.streams[i]); - if (error) - return "streams." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) - if (!$util.isString(message.options)) - return "options: string expected"; - if (message.config_overrides != null && message.hasOwnProperty("config_overrides")) { - if (!$util.isObject(message.config_overrides)) - return "config_overrides: object expected"; - let key = Object.keys(message.config_overrides); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.config_overrides[key[i]])) - return "config_overrides: string{k:string} expected"; - } return null; }; /** - * Creates a ReadVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse} ReadVReplicationWorkflowResponse + * @returns {tabletmanagerdata.DeleteVReplicationWorkflowRequest} DeleteVReplicationWorkflowRequest */ - ReadVReplicationWorkflowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReadVReplicationWorkflowResponse) + DeleteVReplicationWorkflowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.DeleteVReplicationWorkflowRequest) return object; - let message = new $root.tabletmanagerdata.ReadVReplicationWorkflowResponse(); + let message = new $root.tabletmanagerdata.DeleteVReplicationWorkflowRequest(); if (object.workflow != null) message.workflow = String(object.workflow); - if (object.cells != null) - message.cells = String(object.cells); - if (object.tablet_types) { - if (!Array.isArray(object.tablet_types)) - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.tablet_types: array expected"); - message.tablet_types = []; - for (let i = 0; i < object.tablet_types.length; ++i) - switch (object.tablet_types[i]) { - default: - if (typeof object.tablet_types[i] === "number") { - message.tablet_types[i] = object.tablet_types[i]; - break; - } - case "UNKNOWN": - case 0: - message.tablet_types[i] = 0; - break; - case "PRIMARY": - case 1: - message.tablet_types[i] = 1; - break; - case "MASTER": - case 1: - message.tablet_types[i] = 1; - break; - case "REPLICA": - case 2: - message.tablet_types[i] = 2; - break; - case "RDONLY": - case 3: - message.tablet_types[i] = 3; - break; - case "BATCH": - case 3: - message.tablet_types[i] = 3; - break; - case "SPARE": - case 4: - message.tablet_types[i] = 4; - break; - case "EXPERIMENTAL": - case 5: - message.tablet_types[i] = 5; - break; - case "BACKUP": - case 6: - message.tablet_types[i] = 6; - break; - case "RESTORE": - case 7: - message.tablet_types[i] = 7; - break; - case "DRAINED": - case 8: - message.tablet_types[i] = 8; - break; - } - } - switch (object.tablet_selection_preference) { - default: - if (typeof object.tablet_selection_preference === "number") { - message.tablet_selection_preference = object.tablet_selection_preference; - break; - } - break; - case "ANY": - case 0: - message.tablet_selection_preference = 0; - break; - case "INORDER": - case 1: - message.tablet_selection_preference = 1; - break; - case "UNKNOWN": - case 3: - message.tablet_selection_preference = 3; - break; - } - if (object.db_name != null) - message.db_name = String(object.db_name); - if (object.tags != null) - message.tags = String(object.tags); - switch (object.workflow_type) { - default: - if (typeof object.workflow_type === "number") { - message.workflow_type = object.workflow_type; - break; - } - break; - case "Materialize": - case 0: - message.workflow_type = 0; - break; - case "MoveTables": - case 1: - message.workflow_type = 1; - break; - case "CreateLookupIndex": - case 2: - message.workflow_type = 2; - break; - case "Migrate": - case 3: - message.workflow_type = 3; - break; - case "Reshard": - case 4: - message.workflow_type = 4; - break; - case "OnlineDDL": - case 5: - message.workflow_type = 5; - break; - } - switch (object.workflow_sub_type) { - default: - if (typeof object.workflow_sub_type === "number") { - message.workflow_sub_type = object.workflow_sub_type; - break; - } - break; - case "None": - case 0: - message.workflow_sub_type = 0; - break; - case "Partial": - case 1: - message.workflow_sub_type = 1; - break; - case "AtomicCopy": - case 2: - message.workflow_sub_type = 2; - break; - } - if (object.defer_secondary_keys != null) - message.defer_secondary_keys = Boolean(object.defer_secondary_keys); - if (object.streams) { - if (!Array.isArray(object.streams)) - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.streams: array expected"); - message.streams = []; - for (let i = 0; i < object.streams.length; ++i) { - if (typeof object.streams[i] !== "object") - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.streams: object expected"); - message.streams[i] = $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.fromObject(object.streams[i]); - } - } - if (object.options != null) - message.options = String(object.options); - if (object.config_overrides) { - if (typeof object.config_overrides !== "object") - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.config_overrides: object expected"); - message.config_overrides = {}; - for (let keys = Object.keys(object.config_overrides), i = 0; i < keys.length; ++i) - message.config_overrides[keys[i]] = String(object.config_overrides[keys[i]]); - } return message; }; /** - * Creates a plain object from a ReadVReplicationWorkflowResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteVReplicationWorkflowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.ReadVReplicationWorkflowResponse} message ReadVReplicationWorkflowResponse + * @param {tabletmanagerdata.DeleteVReplicationWorkflowRequest} message DeleteVReplicationWorkflowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadVReplicationWorkflowResponse.toObject = function toObject(message, options) { + DeleteVReplicationWorkflowRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.tablet_types = []; - object.streams = []; - } - if (options.objects || options.defaults) - object.config_overrides = {}; - if (options.defaults) { + if (options.defaults) object.workflow = ""; - object.cells = ""; - object.tablet_selection_preference = options.enums === String ? "ANY" : 0; - object.db_name = ""; - object.tags = ""; - object.workflow_type = options.enums === String ? "Materialize" : 0; - object.workflow_sub_type = options.enums === String ? "None" : 0; - object.defer_secondary_keys = false; - object.options = ""; - } if (message.workflow != null && message.hasOwnProperty("workflow")) object.workflow = message.workflow; - if (message.cells != null && message.hasOwnProperty("cells")) - object.cells = message.cells; - if (message.tablet_types && message.tablet_types.length) { - object.tablet_types = []; - for (let j = 0; j < message.tablet_types.length; ++j) - object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; - } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; - if (message.db_name != null && message.hasOwnProperty("db_name")) - object.db_name = message.db_name; - if (message.tags != null && message.hasOwnProperty("tags")) - object.tags = message.tags; - if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) - object.workflow_type = options.enums === String ? $root.binlogdata.VReplicationWorkflowType[message.workflow_type] === undefined ? message.workflow_type : $root.binlogdata.VReplicationWorkflowType[message.workflow_type] : message.workflow_type; - if (message.workflow_sub_type != null && message.hasOwnProperty("workflow_sub_type")) - object.workflow_sub_type = options.enums === String ? $root.binlogdata.VReplicationWorkflowSubType[message.workflow_sub_type] === undefined ? message.workflow_sub_type : $root.binlogdata.VReplicationWorkflowSubType[message.workflow_sub_type] : message.workflow_sub_type; - if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) - object.defer_secondary_keys = message.defer_secondary_keys; - if (message.streams && message.streams.length) { - object.streams = []; - for (let j = 0; j < message.streams.length; ++j) - object.streams[j] = $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.toObject(message.streams[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = message.options; - let keys2; - if (message.config_overrides && (keys2 = Object.keys(message.config_overrides)).length) { - object.config_overrides = {}; - for (let j = 0; j < keys2.length; ++j) - object.config_overrides[keys2[j]] = message.config_overrides[keys2[j]]; - } return object; }; /** - * Converts this ReadVReplicationWorkflowResponse to JSON. + * Converts this DeleteVReplicationWorkflowRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest * @instance * @returns {Object.} JSON object */ - ReadVReplicationWorkflowResponse.prototype.toJSON = function toJSON() { + DeleteVReplicationWorkflowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadVReplicationWorkflowResponse + * Gets the default type url for DeleteVReplicationWorkflowRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadVReplicationWorkflowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteVReplicationWorkflowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ReadVReplicationWorkflowResponse"; + return typeUrlPrefix + "/tabletmanagerdata.DeleteVReplicationWorkflowRequest"; }; - ReadVReplicationWorkflowResponse.Stream = (function() { + return DeleteVReplicationWorkflowRequest; + })(); - /** - * Properties of a Stream. - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse - * @interface IStream - * @property {number|null} [id] Stream id - * @property {binlogdata.IBinlogSource|null} [bls] Stream bls - * @property {string|null} [pos] Stream pos - * @property {string|null} [stop_pos] Stream stop_pos - * @property {number|Long|null} [max_tps] Stream max_tps - * @property {number|Long|null} [max_replication_lag] Stream max_replication_lag - * @property {vttime.ITime|null} [time_updated] Stream time_updated - * @property {vttime.ITime|null} [transaction_timestamp] Stream transaction_timestamp - * @property {binlogdata.VReplicationWorkflowState|null} [state] Stream state - * @property {string|null} [message] Stream message - * @property {number|Long|null} [rows_copied] Stream rows_copied - * @property {vttime.ITime|null} [time_heartbeat] Stream time_heartbeat - * @property {vttime.ITime|null} [time_throttled] Stream time_throttled - * @property {string|null} [component_throttled] Stream component_throttled - */ - - /** - * Constructs a new Stream. - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse - * @classdesc Represents a Stream. - * @implements IStream - * @constructor - * @param {tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream=} [properties] Properties to set - */ - function Stream(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Stream id. - * @member {number} id - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - */ - Stream.prototype.id = 0; - - /** - * Stream bls. - * @member {binlogdata.IBinlogSource|null|undefined} bls - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - */ - Stream.prototype.bls = null; - - /** - * Stream pos. - * @member {string} pos - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - */ - Stream.prototype.pos = ""; - - /** - * Stream stop_pos. - * @member {string} stop_pos - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - */ - Stream.prototype.stop_pos = ""; - - /** - * Stream max_tps. - * @member {number|Long} max_tps - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - */ - Stream.prototype.max_tps = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Stream max_replication_lag. - * @member {number|Long} max_replication_lag - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - */ - Stream.prototype.max_replication_lag = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Stream time_updated. - * @member {vttime.ITime|null|undefined} time_updated - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - */ - Stream.prototype.time_updated = null; - - /** - * Stream transaction_timestamp. - * @member {vttime.ITime|null|undefined} transaction_timestamp - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - */ - Stream.prototype.transaction_timestamp = null; - - /** - * Stream state. - * @member {binlogdata.VReplicationWorkflowState} state - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - */ - Stream.prototype.state = 0; - - /** - * Stream message. - * @member {string} message - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - */ - Stream.prototype.message = ""; - - /** - * Stream rows_copied. - * @member {number|Long} rows_copied - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - */ - Stream.prototype.rows_copied = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Stream time_heartbeat. - * @member {vttime.ITime|null|undefined} time_heartbeat - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - */ - Stream.prototype.time_heartbeat = null; - - /** - * Stream time_throttled. - * @member {vttime.ITime|null|undefined} time_throttled - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - */ - Stream.prototype.time_throttled = null; - - /** - * Stream component_throttled. - * @member {string} component_throttled - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - */ - Stream.prototype.component_throttled = ""; - - /** - * Creates a new Stream instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @static - * @param {tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream=} [properties] Properties to set - * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream} Stream instance - */ - Stream.create = function create(properties) { - return new Stream(properties); - }; - - /** - * Encodes the specified Stream message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @static - * @param {tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream} message Stream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Stream.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.bls != null && Object.hasOwnProperty.call(message, "bls")) - $root.binlogdata.BinlogSource.encode(message.bls, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.pos != null && Object.hasOwnProperty.call(message, "pos")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pos); - if (message.stop_pos != null && Object.hasOwnProperty.call(message, "stop_pos")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.stop_pos); - if (message.max_tps != null && Object.hasOwnProperty.call(message, "max_tps")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.max_tps); - if (message.max_replication_lag != null && Object.hasOwnProperty.call(message, "max_replication_lag")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.max_replication_lag); - if (message.time_updated != null && Object.hasOwnProperty.call(message, "time_updated")) - $root.vttime.Time.encode(message.time_updated, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.transaction_timestamp != null && Object.hasOwnProperty.call(message, "transaction_timestamp")) - $root.vttime.Time.encode(message.transaction_timestamp, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.message); - if (message.rows_copied != null && Object.hasOwnProperty.call(message, "rows_copied")) - writer.uint32(/* id 11, wireType 0 =*/88).int64(message.rows_copied); - if (message.time_heartbeat != null && Object.hasOwnProperty.call(message, "time_heartbeat")) - $root.vttime.Time.encode(message.time_heartbeat, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.time_throttled != null && Object.hasOwnProperty.call(message, "time_throttled")) - $root.vttime.Time.encode(message.time_throttled, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.component_throttled != null && Object.hasOwnProperty.call(message, "component_throttled")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.component_throttled); - return writer; - }; - - /** - * Encodes the specified Stream message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @static - * @param {tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream} message Stream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Stream.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Stream message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream} Stream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Stream.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.id = reader.int32(); - break; - } - case 2: { - message.bls = $root.binlogdata.BinlogSource.decode(reader, reader.uint32()); - break; - } - case 3: { - message.pos = reader.string(); - break; - } - case 4: { - message.stop_pos = reader.string(); - break; - } - case 5: { - message.max_tps = reader.int64(); - break; - } - case 6: { - message.max_replication_lag = reader.int64(); - break; - } - case 7: { - message.time_updated = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 8: { - message.transaction_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 9: { - message.state = reader.int32(); - break; - } - case 10: { - message.message = reader.string(); - break; - } - case 11: { - message.rows_copied = reader.int64(); - break; - } - case 12: { - message.time_heartbeat = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 13: { - message.time_throttled = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 14: { - message.component_throttled = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Stream message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream} Stream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Stream.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Stream message. - * @function verify - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Stream.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; - if (message.bls != null && message.hasOwnProperty("bls")) { - let error = $root.binlogdata.BinlogSource.verify(message.bls); - if (error) - return "bls." + error; - } - if (message.pos != null && message.hasOwnProperty("pos")) - if (!$util.isString(message.pos)) - return "pos: string expected"; - if (message.stop_pos != null && message.hasOwnProperty("stop_pos")) - if (!$util.isString(message.stop_pos)) - return "stop_pos: string expected"; - if (message.max_tps != null && message.hasOwnProperty("max_tps")) - if (!$util.isInteger(message.max_tps) && !(message.max_tps && $util.isInteger(message.max_tps.low) && $util.isInteger(message.max_tps.high))) - return "max_tps: integer|Long expected"; - if (message.max_replication_lag != null && message.hasOwnProperty("max_replication_lag")) - if (!$util.isInteger(message.max_replication_lag) && !(message.max_replication_lag && $util.isInteger(message.max_replication_lag.low) && $util.isInteger(message.max_replication_lag.high))) - return "max_replication_lag: integer|Long expected"; - if (message.time_updated != null && message.hasOwnProperty("time_updated")) { - let error = $root.vttime.Time.verify(message.time_updated); - if (error) - return "time_updated." + error; - } - if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) { - let error = $root.vttime.Time.verify(message.transaction_timestamp); - if (error) - return "transaction_timestamp." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.rows_copied != null && message.hasOwnProperty("rows_copied")) - if (!$util.isInteger(message.rows_copied) && !(message.rows_copied && $util.isInteger(message.rows_copied.low) && $util.isInteger(message.rows_copied.high))) - return "rows_copied: integer|Long expected"; - if (message.time_heartbeat != null && message.hasOwnProperty("time_heartbeat")) { - let error = $root.vttime.Time.verify(message.time_heartbeat); - if (error) - return "time_heartbeat." + error; - } - if (message.time_throttled != null && message.hasOwnProperty("time_throttled")) { - let error = $root.vttime.Time.verify(message.time_throttled); - if (error) - return "time_throttled." + error; - } - if (message.component_throttled != null && message.hasOwnProperty("component_throttled")) - if (!$util.isString(message.component_throttled)) - return "component_throttled: string expected"; - return null; - }; - - /** - * Creates a Stream message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream} Stream - */ - Stream.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream) - return object; - let message = new $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream(); - if (object.id != null) - message.id = object.id | 0; - if (object.bls != null) { - if (typeof object.bls !== "object") - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.bls: object expected"); - message.bls = $root.binlogdata.BinlogSource.fromObject(object.bls); - } - if (object.pos != null) - message.pos = String(object.pos); - if (object.stop_pos != null) - message.stop_pos = String(object.stop_pos); - if (object.max_tps != null) - if ($util.Long) - (message.max_tps = $util.Long.fromValue(object.max_tps)).unsigned = false; - else if (typeof object.max_tps === "string") - message.max_tps = parseInt(object.max_tps, 10); - else if (typeof object.max_tps === "number") - message.max_tps = object.max_tps; - else if (typeof object.max_tps === "object") - message.max_tps = new $util.LongBits(object.max_tps.low >>> 0, object.max_tps.high >>> 0).toNumber(); - if (object.max_replication_lag != null) - if ($util.Long) - (message.max_replication_lag = $util.Long.fromValue(object.max_replication_lag)).unsigned = false; - else if (typeof object.max_replication_lag === "string") - message.max_replication_lag = parseInt(object.max_replication_lag, 10); - else if (typeof object.max_replication_lag === "number") - message.max_replication_lag = object.max_replication_lag; - else if (typeof object.max_replication_lag === "object") - message.max_replication_lag = new $util.LongBits(object.max_replication_lag.low >>> 0, object.max_replication_lag.high >>> 0).toNumber(); - if (object.time_updated != null) { - if (typeof object.time_updated !== "object") - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.time_updated: object expected"); - message.time_updated = $root.vttime.Time.fromObject(object.time_updated); - } - if (object.transaction_timestamp != null) { - if (typeof object.transaction_timestamp !== "object") - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.transaction_timestamp: object expected"); - message.transaction_timestamp = $root.vttime.Time.fromObject(object.transaction_timestamp); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "Unknown": - case 0: - message.state = 0; - break; - case "Init": - case 1: - message.state = 1; - break; - case "Stopped": - case 2: - message.state = 2; - break; - case "Copying": - case 3: - message.state = 3; - break; - case "Running": - case 4: - message.state = 4; - break; - case "Error": - case 5: - message.state = 5; - break; - case "Lagging": - case 6: - message.state = 6; - break; - } - if (object.message != null) - message.message = String(object.message); - if (object.rows_copied != null) - if ($util.Long) - (message.rows_copied = $util.Long.fromValue(object.rows_copied)).unsigned = false; - else if (typeof object.rows_copied === "string") - message.rows_copied = parseInt(object.rows_copied, 10); - else if (typeof object.rows_copied === "number") - message.rows_copied = object.rows_copied; - else if (typeof object.rows_copied === "object") - message.rows_copied = new $util.LongBits(object.rows_copied.low >>> 0, object.rows_copied.high >>> 0).toNumber(); - if (object.time_heartbeat != null) { - if (typeof object.time_heartbeat !== "object") - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.time_heartbeat: object expected"); - message.time_heartbeat = $root.vttime.Time.fromObject(object.time_heartbeat); - } - if (object.time_throttled != null) { - if (typeof object.time_throttled !== "object") - throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.time_throttled: object expected"); - message.time_throttled = $root.vttime.Time.fromObject(object.time_throttled); - } - if (object.component_throttled != null) - message.component_throttled = String(object.component_throttled); - return message; - }; - - /** - * Creates a plain object from a Stream message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @static - * @param {tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream} message Stream - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Stream.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.id = 0; - object.bls = null; - object.pos = ""; - object.stop_pos = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.max_tps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_tps = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.max_replication_lag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_replication_lag = options.longs === String ? "0" : 0; - object.time_updated = null; - object.transaction_timestamp = null; - object.state = options.enums === String ? "Unknown" : 0; - object.message = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.rows_copied = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.rows_copied = options.longs === String ? "0" : 0; - object.time_heartbeat = null; - object.time_throttled = null; - object.component_throttled = ""; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.bls != null && message.hasOwnProperty("bls")) - object.bls = $root.binlogdata.BinlogSource.toObject(message.bls, options); - if (message.pos != null && message.hasOwnProperty("pos")) - object.pos = message.pos; - if (message.stop_pos != null && message.hasOwnProperty("stop_pos")) - object.stop_pos = message.stop_pos; - if (message.max_tps != null && message.hasOwnProperty("max_tps")) - if (typeof message.max_tps === "number") - object.max_tps = options.longs === String ? String(message.max_tps) : message.max_tps; - else - object.max_tps = options.longs === String ? $util.Long.prototype.toString.call(message.max_tps) : options.longs === Number ? new $util.LongBits(message.max_tps.low >>> 0, message.max_tps.high >>> 0).toNumber() : message.max_tps; - if (message.max_replication_lag != null && message.hasOwnProperty("max_replication_lag")) - if (typeof message.max_replication_lag === "number") - object.max_replication_lag = options.longs === String ? String(message.max_replication_lag) : message.max_replication_lag; - else - object.max_replication_lag = options.longs === String ? $util.Long.prototype.toString.call(message.max_replication_lag) : options.longs === Number ? new $util.LongBits(message.max_replication_lag.low >>> 0, message.max_replication_lag.high >>> 0).toNumber() : message.max_replication_lag; - if (message.time_updated != null && message.hasOwnProperty("time_updated")) - object.time_updated = $root.vttime.Time.toObject(message.time_updated, options); - if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) - object.transaction_timestamp = $root.vttime.Time.toObject(message.transaction_timestamp, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.binlogdata.VReplicationWorkflowState[message.state] === undefined ? message.state : $root.binlogdata.VReplicationWorkflowState[message.state] : message.state; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.rows_copied != null && message.hasOwnProperty("rows_copied")) - if (typeof message.rows_copied === "number") - object.rows_copied = options.longs === String ? String(message.rows_copied) : message.rows_copied; - else - object.rows_copied = options.longs === String ? $util.Long.prototype.toString.call(message.rows_copied) : options.longs === Number ? new $util.LongBits(message.rows_copied.low >>> 0, message.rows_copied.high >>> 0).toNumber() : message.rows_copied; - if (message.time_heartbeat != null && message.hasOwnProperty("time_heartbeat")) - object.time_heartbeat = $root.vttime.Time.toObject(message.time_heartbeat, options); - if (message.time_throttled != null && message.hasOwnProperty("time_throttled")) - object.time_throttled = $root.vttime.Time.toObject(message.time_throttled, options); - if (message.component_throttled != null && message.hasOwnProperty("component_throttled")) - object.component_throttled = message.component_throttled; - return object; - }; - - /** - * Converts this Stream to JSON. - * @function toJSON - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @instance - * @returns {Object.} JSON object - */ - Stream.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Stream - * @function getTypeUrl - * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Stream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream"; - }; - - return Stream; - })(); - - return ReadVReplicationWorkflowResponse; - })(); - - tabletmanagerdata.ValidateVReplicationPermissionsRequest = (function() { + tabletmanagerdata.DeleteVReplicationWorkflowResponse = (function() { /** - * Properties of a ValidateVReplicationPermissionsRequest. + * Properties of a DeleteVReplicationWorkflowResponse. * @memberof tabletmanagerdata - * @interface IValidateVReplicationPermissionsRequest + * @interface IDeleteVReplicationWorkflowResponse + * @property {query.IQueryResult|null} [result] DeleteVReplicationWorkflowResponse result */ /** - * Constructs a new ValidateVReplicationPermissionsRequest. + * Constructs a new DeleteVReplicationWorkflowResponse. * @memberof tabletmanagerdata - * @classdesc Represents a ValidateVReplicationPermissionsRequest. - * @implements IValidateVReplicationPermissionsRequest + * @classdesc Represents a DeleteVReplicationWorkflowResponse. + * @implements IDeleteVReplicationWorkflowResponse * @constructor - * @param {tabletmanagerdata.IValidateVReplicationPermissionsRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IDeleteVReplicationWorkflowResponse=} [properties] Properties to set */ - function ValidateVReplicationPermissionsRequest(properties) { + function DeleteVReplicationWorkflowResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77098,63 +76654,77 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new ValidateVReplicationPermissionsRequest instance using the specified properties. + * DeleteVReplicationWorkflowResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse + * @instance + */ + DeleteVReplicationWorkflowResponse.prototype.result = null; + + /** + * Creates a new DeleteVReplicationWorkflowResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.IValidateVReplicationPermissionsRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ValidateVReplicationPermissionsRequest} ValidateVReplicationPermissionsRequest instance + * @param {tabletmanagerdata.IDeleteVReplicationWorkflowResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.DeleteVReplicationWorkflowResponse} DeleteVReplicationWorkflowResponse instance */ - ValidateVReplicationPermissionsRequest.create = function create(properties) { - return new ValidateVReplicationPermissionsRequest(properties); + DeleteVReplicationWorkflowResponse.create = function create(properties) { + return new DeleteVReplicationWorkflowResponse(properties); }; /** - * Encodes the specified ValidateVReplicationPermissionsRequest message. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsRequest.verify|verify} messages. + * Encodes the specified DeleteVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.IValidateVReplicationPermissionsRequest} message ValidateVReplicationPermissionsRequest message or plain object to encode + * @param {tabletmanagerdata.IDeleteVReplicationWorkflowResponse} message DeleteVReplicationWorkflowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVReplicationPermissionsRequest.encode = function encode(message, writer) { + DeleteVReplicationWorkflowResponse.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 ValidateVReplicationPermissionsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsRequest.verify|verify} messages. + * Encodes the specified DeleteVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.DeleteVReplicationWorkflowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.IValidateVReplicationPermissionsRequest} message ValidateVReplicationPermissionsRequest message or plain object to encode + * @param {tabletmanagerdata.IDeleteVReplicationWorkflowResponse} message DeleteVReplicationWorkflowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVReplicationPermissionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteVReplicationWorkflowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateVReplicationPermissionsRequest message from the specified reader or buffer. + * Decodes a DeleteVReplicationWorkflowResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ValidateVReplicationPermissionsRequest} ValidateVReplicationPermissionsRequest + * @returns {tabletmanagerdata.DeleteVReplicationWorkflowResponse} DeleteVReplicationWorkflowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVReplicationPermissionsRequest.decode = function decode(reader, length) { + DeleteVReplicationWorkflowResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ValidateVReplicationPermissionsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DeleteVReplicationWorkflowResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -77164,110 +76734,126 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ValidateVReplicationPermissionsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ValidateVReplicationPermissionsRequest} ValidateVReplicationPermissionsRequest + * @returns {tabletmanagerdata.DeleteVReplicationWorkflowResponse} DeleteVReplicationWorkflowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVReplicationPermissionsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteVReplicationWorkflowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateVReplicationPermissionsRequest message. + * Verifies a DeleteVReplicationWorkflowResponse message. * @function verify - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateVReplicationPermissionsRequest.verify = function verify(message) { + DeleteVReplicationWorkflowResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } return null; }; /** - * Creates a ValidateVReplicationPermissionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ValidateVReplicationPermissionsRequest} ValidateVReplicationPermissionsRequest + * @returns {tabletmanagerdata.DeleteVReplicationWorkflowResponse} DeleteVReplicationWorkflowResponse */ - ValidateVReplicationPermissionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ValidateVReplicationPermissionsRequest) + DeleteVReplicationWorkflowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.DeleteVReplicationWorkflowResponse) return object; - return new $root.tabletmanagerdata.ValidateVReplicationPermissionsRequest(); + let message = new $root.tabletmanagerdata.DeleteVReplicationWorkflowResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".tabletmanagerdata.DeleteVReplicationWorkflowResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + return message; }; /** - * Creates a plain object from a ValidateVReplicationPermissionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteVReplicationWorkflowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.ValidateVReplicationPermissionsRequest} message ValidateVReplicationPermissionsRequest + * @param {tabletmanagerdata.DeleteVReplicationWorkflowResponse} message DeleteVReplicationWorkflowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateVReplicationPermissionsRequest.toObject = function toObject() { - return {}; + DeleteVReplicationWorkflowResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); + return object; }; /** - * Converts this ValidateVReplicationPermissionsRequest to JSON. + * Converts this DeleteVReplicationWorkflowResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse * @instance * @returns {Object.} JSON object */ - ValidateVReplicationPermissionsRequest.prototype.toJSON = function toJSON() { + DeleteVReplicationWorkflowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateVReplicationPermissionsRequest + * Gets the default type url for DeleteVReplicationWorkflowResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest + * @memberof tabletmanagerdata.DeleteVReplicationWorkflowResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateVReplicationPermissionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteVReplicationWorkflowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ValidateVReplicationPermissionsRequest"; + return typeUrlPrefix + "/tabletmanagerdata.DeleteVReplicationWorkflowResponse"; }; - return ValidateVReplicationPermissionsRequest; + return DeleteVReplicationWorkflowResponse; })(); - tabletmanagerdata.ValidateVReplicationPermissionsResponse = (function() { + tabletmanagerdata.HasVReplicationWorkflowsRequest = (function() { /** - * Properties of a ValidateVReplicationPermissionsResponse. + * Properties of a HasVReplicationWorkflowsRequest. * @memberof tabletmanagerdata - * @interface IValidateVReplicationPermissionsResponse - * @property {string|null} [user] ValidateVReplicationPermissionsResponse user - * @property {boolean|null} [ok] ValidateVReplicationPermissionsResponse ok + * @interface IHasVReplicationWorkflowsRequest */ /** - * Constructs a new ValidateVReplicationPermissionsResponse. + * Constructs a new HasVReplicationWorkflowsRequest. * @memberof tabletmanagerdata - * @classdesc Represents a ValidateVReplicationPermissionsResponse. - * @implements IValidateVReplicationPermissionsResponse + * @classdesc Represents a HasVReplicationWorkflowsRequest. + * @implements IHasVReplicationWorkflowsRequest * @constructor - * @param {tabletmanagerdata.IValidateVReplicationPermissionsResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IHasVReplicationWorkflowsRequest=} [properties] Properties to set */ - function ValidateVReplicationPermissionsResponse(properties) { + function HasVReplicationWorkflowsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77275,91 +76861,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ValidateVReplicationPermissionsResponse user. - * @member {string} user - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse - * @instance - */ - ValidateVReplicationPermissionsResponse.prototype.user = ""; - - /** - * ValidateVReplicationPermissionsResponse ok. - * @member {boolean} ok - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse - * @instance - */ - ValidateVReplicationPermissionsResponse.prototype.ok = false; - - /** - * Creates a new ValidateVReplicationPermissionsResponse instance using the specified properties. + * Creates a new HasVReplicationWorkflowsRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse + * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest * @static - * @param {tabletmanagerdata.IValidateVReplicationPermissionsResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ValidateVReplicationPermissionsResponse} ValidateVReplicationPermissionsResponse instance + * @param {tabletmanagerdata.IHasVReplicationWorkflowsRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.HasVReplicationWorkflowsRequest} HasVReplicationWorkflowsRequest instance */ - ValidateVReplicationPermissionsResponse.create = function create(properties) { - return new ValidateVReplicationPermissionsResponse(properties); + HasVReplicationWorkflowsRequest.create = function create(properties) { + return new HasVReplicationWorkflowsRequest(properties); }; /** - * Encodes the specified ValidateVReplicationPermissionsResponse message. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsResponse.verify|verify} messages. + * Encodes the specified HasVReplicationWorkflowsRequest message. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse + * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest * @static - * @param {tabletmanagerdata.IValidateVReplicationPermissionsResponse} message ValidateVReplicationPermissionsResponse message or plain object to encode + * @param {tabletmanagerdata.IHasVReplicationWorkflowsRequest} message HasVReplicationWorkflowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVReplicationPermissionsResponse.encode = function encode(message, writer) { + HasVReplicationWorkflowsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.user != null && Object.hasOwnProperty.call(message, "user")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.user); - if (message.ok != null && Object.hasOwnProperty.call(message, "ok")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.ok); return writer; }; /** - * Encodes the specified ValidateVReplicationPermissionsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsResponse.verify|verify} messages. + * Encodes the specified HasVReplicationWorkflowsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse + * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest * @static - * @param {tabletmanagerdata.IValidateVReplicationPermissionsResponse} message ValidateVReplicationPermissionsResponse message or plain object to encode + * @param {tabletmanagerdata.IHasVReplicationWorkflowsRequest} message HasVReplicationWorkflowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVReplicationPermissionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + HasVReplicationWorkflowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateVReplicationPermissionsResponse message from the specified reader or buffer. + * Decodes a HasVReplicationWorkflowsRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse + * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ValidateVReplicationPermissionsResponse} ValidateVReplicationPermissionsResponse + * @returns {tabletmanagerdata.HasVReplicationWorkflowsRequest} HasVReplicationWorkflowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVReplicationPermissionsResponse.decode = function decode(reader, length) { + HasVReplicationWorkflowsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ValidateVReplicationPermissionsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.HasVReplicationWorkflowsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.user = reader.string(); - break; - } - case 2: { - message.ok = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -77369,136 +76927,109 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ValidateVReplicationPermissionsResponse message from the specified reader or buffer, length delimited. + * Decodes a HasVReplicationWorkflowsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse + * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ValidateVReplicationPermissionsResponse} ValidateVReplicationPermissionsResponse + * @returns {tabletmanagerdata.HasVReplicationWorkflowsRequest} HasVReplicationWorkflowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVReplicationPermissionsResponse.decodeDelimited = function decodeDelimited(reader) { + HasVReplicationWorkflowsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateVReplicationPermissionsResponse message. + * Verifies a HasVReplicationWorkflowsRequest message. * @function verify - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse + * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateVReplicationPermissionsResponse.verify = function verify(message) { + HasVReplicationWorkflowsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.user != null && message.hasOwnProperty("user")) - if (!$util.isString(message.user)) - return "user: string expected"; - if (message.ok != null && message.hasOwnProperty("ok")) - if (typeof message.ok !== "boolean") - return "ok: boolean expected"; return null; }; /** - * Creates a ValidateVReplicationPermissionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a HasVReplicationWorkflowsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse + * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ValidateVReplicationPermissionsResponse} ValidateVReplicationPermissionsResponse + * @returns {tabletmanagerdata.HasVReplicationWorkflowsRequest} HasVReplicationWorkflowsRequest */ - ValidateVReplicationPermissionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ValidateVReplicationPermissionsResponse) + HasVReplicationWorkflowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.HasVReplicationWorkflowsRequest) return object; - let message = new $root.tabletmanagerdata.ValidateVReplicationPermissionsResponse(); - if (object.user != null) - message.user = String(object.user); - if (object.ok != null) - message.ok = Boolean(object.ok); - return message; + return new $root.tabletmanagerdata.HasVReplicationWorkflowsRequest(); }; /** - * Creates a plain object from a ValidateVReplicationPermissionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a HasVReplicationWorkflowsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse + * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest * @static - * @param {tabletmanagerdata.ValidateVReplicationPermissionsResponse} message ValidateVReplicationPermissionsResponse + * @param {tabletmanagerdata.HasVReplicationWorkflowsRequest} message HasVReplicationWorkflowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateVReplicationPermissionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.user = ""; - object.ok = false; - } - if (message.user != null && message.hasOwnProperty("user")) - object.user = message.user; - if (message.ok != null && message.hasOwnProperty("ok")) - object.ok = message.ok; - return object; + HasVReplicationWorkflowsRequest.toObject = function toObject() { + return {}; }; /** - * Converts this ValidateVReplicationPermissionsResponse to JSON. + * Converts this HasVReplicationWorkflowsRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse + * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest * @instance * @returns {Object.} JSON object */ - ValidateVReplicationPermissionsResponse.prototype.toJSON = function toJSON() { + HasVReplicationWorkflowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateVReplicationPermissionsResponse + * Gets the default type url for HasVReplicationWorkflowsRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse + * @memberof tabletmanagerdata.HasVReplicationWorkflowsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateVReplicationPermissionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + HasVReplicationWorkflowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ValidateVReplicationPermissionsResponse"; + return typeUrlPrefix + "/tabletmanagerdata.HasVReplicationWorkflowsRequest"; }; - return ValidateVReplicationPermissionsResponse; + return HasVReplicationWorkflowsRequest; })(); - tabletmanagerdata.VDiffRequest = (function() { + tabletmanagerdata.HasVReplicationWorkflowsResponse = (function() { /** - * Properties of a VDiffRequest. + * Properties of a HasVReplicationWorkflowsResponse. * @memberof tabletmanagerdata - * @interface IVDiffRequest - * @property {string|null} [keyspace] VDiffRequest keyspace - * @property {string|null} [workflow] VDiffRequest workflow - * @property {string|null} [action] VDiffRequest action - * @property {string|null} [action_arg] VDiffRequest action_arg - * @property {string|null} [vdiff_uuid] VDiffRequest vdiff_uuid - * @property {tabletmanagerdata.IVDiffOptions|null} [options] VDiffRequest options + * @interface IHasVReplicationWorkflowsResponse + * @property {boolean|null} [has] HasVReplicationWorkflowsResponse has */ /** - * Constructs a new VDiffRequest. + * Constructs a new HasVReplicationWorkflowsResponse. * @memberof tabletmanagerdata - * @classdesc Represents a VDiffRequest. - * @implements IVDiffRequest + * @classdesc Represents a HasVReplicationWorkflowsResponse. + * @implements IHasVReplicationWorkflowsResponse * @constructor - * @param {tabletmanagerdata.IVDiffRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IHasVReplicationWorkflowsResponse=} [properties] Properties to set */ - function VDiffRequest(properties) { + function HasVReplicationWorkflowsResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77506,145 +77037,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * VDiffRequest keyspace. - * @member {string} keyspace - * @memberof tabletmanagerdata.VDiffRequest - * @instance - */ - VDiffRequest.prototype.keyspace = ""; - - /** - * VDiffRequest workflow. - * @member {string} workflow - * @memberof tabletmanagerdata.VDiffRequest - * @instance - */ - VDiffRequest.prototype.workflow = ""; - - /** - * VDiffRequest action. - * @member {string} action - * @memberof tabletmanagerdata.VDiffRequest - * @instance - */ - VDiffRequest.prototype.action = ""; - - /** - * VDiffRequest action_arg. - * @member {string} action_arg - * @memberof tabletmanagerdata.VDiffRequest - * @instance - */ - VDiffRequest.prototype.action_arg = ""; - - /** - * VDiffRequest vdiff_uuid. - * @member {string} vdiff_uuid - * @memberof tabletmanagerdata.VDiffRequest - * @instance - */ - VDiffRequest.prototype.vdiff_uuid = ""; - - /** - * VDiffRequest options. - * @member {tabletmanagerdata.IVDiffOptions|null|undefined} options - * @memberof tabletmanagerdata.VDiffRequest + * HasVReplicationWorkflowsResponse has. + * @member {boolean} has + * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse * @instance */ - VDiffRequest.prototype.options = null; + HasVReplicationWorkflowsResponse.prototype.has = false; /** - * Creates a new VDiffRequest instance using the specified properties. + * Creates a new HasVReplicationWorkflowsResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.VDiffRequest + * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse * @static - * @param {tabletmanagerdata.IVDiffRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.VDiffRequest} VDiffRequest instance + * @param {tabletmanagerdata.IHasVReplicationWorkflowsResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.HasVReplicationWorkflowsResponse} HasVReplicationWorkflowsResponse instance */ - VDiffRequest.create = function create(properties) { - return new VDiffRequest(properties); + HasVReplicationWorkflowsResponse.create = function create(properties) { + return new HasVReplicationWorkflowsResponse(properties); }; /** - * Encodes the specified VDiffRequest message. Does not implicitly {@link tabletmanagerdata.VDiffRequest.verify|verify} messages. + * Encodes the specified HasVReplicationWorkflowsResponse message. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.VDiffRequest + * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse * @static - * @param {tabletmanagerdata.IVDiffRequest} message VDiffRequest message or plain object to encode + * @param {tabletmanagerdata.IHasVReplicationWorkflowsResponse} message HasVReplicationWorkflowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffRequest.encode = function encode(message, writer) { + HasVReplicationWorkflowsResponse.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.workflow != null && Object.hasOwnProperty.call(message, "workflow")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.workflow); - if (message.action != null && Object.hasOwnProperty.call(message, "action")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.action); - if (message.action_arg != null && Object.hasOwnProperty.call(message, "action_arg")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.action_arg); - if (message.vdiff_uuid != null && Object.hasOwnProperty.call(message, "vdiff_uuid")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.vdiff_uuid); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.tabletmanagerdata.VDiffOptions.encode(message.options, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.has != null && Object.hasOwnProperty.call(message, "has")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.has); return writer; }; /** - * Encodes the specified VDiffRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffRequest.verify|verify} messages. + * Encodes the specified HasVReplicationWorkflowsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.HasVReplicationWorkflowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.VDiffRequest + * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse * @static - * @param {tabletmanagerdata.IVDiffRequest} message VDiffRequest message or plain object to encode + * @param {tabletmanagerdata.IHasVReplicationWorkflowsResponse} message HasVReplicationWorkflowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffRequest.encodeDelimited = function encodeDelimited(message, writer) { + HasVReplicationWorkflowsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffRequest message from the specified reader or buffer. + * Decodes a HasVReplicationWorkflowsResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.VDiffRequest + * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.VDiffRequest} VDiffRequest + * @returns {tabletmanagerdata.HasVReplicationWorkflowsResponse} HasVReplicationWorkflowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffRequest.decode = function decode(reader, length) { + HasVReplicationWorkflowsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.HasVReplicationWorkflowsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.workflow = reader.string(); - break; - } - case 3: { - message.action = reader.string(); - break; - } - case 4: { - message.action_arg = reader.string(); - break; - } - case 5: { - message.vdiff_uuid = reader.string(); - break; - } - case 6: { - message.options = $root.tabletmanagerdata.VDiffOptions.decode(reader, reader.uint32()); + message.has = reader.bool(); break; } default: @@ -77656,170 +77117,132 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a VDiffRequest message from the specified reader or buffer, length delimited. + * Decodes a HasVReplicationWorkflowsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.VDiffRequest + * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.VDiffRequest} VDiffRequest + * @returns {tabletmanagerdata.HasVReplicationWorkflowsResponse} HasVReplicationWorkflowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffRequest.decodeDelimited = function decodeDelimited(reader) { + HasVReplicationWorkflowsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffRequest message. + * Verifies a HasVReplicationWorkflowsResponse message. * @function verify - * @memberof tabletmanagerdata.VDiffRequest + * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffRequest.verify = function verify(message) { + HasVReplicationWorkflowsResponse.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.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.action != null && message.hasOwnProperty("action")) - if (!$util.isString(message.action)) - return "action: string expected"; - if (message.action_arg != null && message.hasOwnProperty("action_arg")) - if (!$util.isString(message.action_arg)) - return "action_arg: string expected"; - if (message.vdiff_uuid != null && message.hasOwnProperty("vdiff_uuid")) - if (!$util.isString(message.vdiff_uuid)) - return "vdiff_uuid: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.tabletmanagerdata.VDiffOptions.verify(message.options); - if (error) - return "options." + error; - } + if (message.has != null && message.hasOwnProperty("has")) + if (typeof message.has !== "boolean") + return "has: boolean expected"; return null; }; /** - * Creates a VDiffRequest message from a plain object. Also converts values to their respective internal types. + * Creates a HasVReplicationWorkflowsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.VDiffRequest + * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.VDiffRequest} VDiffRequest + * @returns {tabletmanagerdata.HasVReplicationWorkflowsResponse} HasVReplicationWorkflowsResponse */ - VDiffRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.VDiffRequest) + HasVReplicationWorkflowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.HasVReplicationWorkflowsResponse) return object; - let message = new $root.tabletmanagerdata.VDiffRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.action != null) - message.action = String(object.action); - if (object.action_arg != null) - message.action_arg = String(object.action_arg); - if (object.vdiff_uuid != null) - message.vdiff_uuid = String(object.vdiff_uuid); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".tabletmanagerdata.VDiffRequest.options: object expected"); - message.options = $root.tabletmanagerdata.VDiffOptions.fromObject(object.options); - } + let message = new $root.tabletmanagerdata.HasVReplicationWorkflowsResponse(); + if (object.has != null) + message.has = Boolean(object.has); return message; }; /** - * Creates a plain object from a VDiffRequest message. Also converts values to other types if specified. + * Creates a plain object from a HasVReplicationWorkflowsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.VDiffRequest + * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse * @static - * @param {tabletmanagerdata.VDiffRequest} message VDiffRequest + * @param {tabletmanagerdata.HasVReplicationWorkflowsResponse} message HasVReplicationWorkflowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffRequest.toObject = function toObject(message, options) { + HasVReplicationWorkflowsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.workflow = ""; - object.action = ""; - object.action_arg = ""; - object.vdiff_uuid = ""; - object.options = null; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.action != null && message.hasOwnProperty("action")) - object.action = message.action; - if (message.action_arg != null && message.hasOwnProperty("action_arg")) - object.action_arg = message.action_arg; - if (message.vdiff_uuid != null && message.hasOwnProperty("vdiff_uuid")) - object.vdiff_uuid = message.vdiff_uuid; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.tabletmanagerdata.VDiffOptions.toObject(message.options, options); + if (options.defaults) + object.has = false; + if (message.has != null && message.hasOwnProperty("has")) + object.has = message.has; return object; }; /** - * Converts this VDiffRequest to JSON. + * Converts this HasVReplicationWorkflowsResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.VDiffRequest + * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse * @instance * @returns {Object.} JSON object */ - VDiffRequest.prototype.toJSON = function toJSON() { + HasVReplicationWorkflowsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffRequest + * Gets the default type url for HasVReplicationWorkflowsResponse * @function getTypeUrl - * @memberof tabletmanagerdata.VDiffRequest + * @memberof tabletmanagerdata.HasVReplicationWorkflowsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + HasVReplicationWorkflowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.VDiffRequest"; + return typeUrlPrefix + "/tabletmanagerdata.HasVReplicationWorkflowsResponse"; }; - return VDiffRequest; + return HasVReplicationWorkflowsResponse; })(); - tabletmanagerdata.VDiffResponse = (function() { + tabletmanagerdata.ReadVReplicationWorkflowsRequest = (function() { /** - * Properties of a VDiffResponse. + * Properties of a ReadVReplicationWorkflowsRequest. * @memberof tabletmanagerdata - * @interface IVDiffResponse - * @property {number|Long|null} [id] VDiffResponse id - * @property {query.IQueryResult|null} [output] VDiffResponse output - * @property {string|null} [vdiff_uuid] VDiffResponse vdiff_uuid + * @interface IReadVReplicationWorkflowsRequest + * @property {Array.|null} [include_ids] ReadVReplicationWorkflowsRequest include_ids + * @property {Array.|null} [include_workflows] ReadVReplicationWorkflowsRequest include_workflows + * @property {Array.|null} [include_states] ReadVReplicationWorkflowsRequest include_states + * @property {Array.|null} [exclude_workflows] ReadVReplicationWorkflowsRequest exclude_workflows + * @property {Array.|null} [exclude_states] ReadVReplicationWorkflowsRequest exclude_states + * @property {boolean|null} [exclude_frozen] ReadVReplicationWorkflowsRequest exclude_frozen */ /** - * Constructs a new VDiffResponse. + * Constructs a new ReadVReplicationWorkflowsRequest. * @memberof tabletmanagerdata - * @classdesc Represents a VDiffResponse. - * @implements IVDiffResponse + * @classdesc Represents a ReadVReplicationWorkflowsRequest. + * @implements IReadVReplicationWorkflowsRequest * @constructor - * @param {tabletmanagerdata.IVDiffResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IReadVReplicationWorkflowsRequest=} [properties] Properties to set */ - function VDiffResponse(properties) { + function ReadVReplicationWorkflowsRequest(properties) { + this.include_ids = []; + this.include_workflows = []; + this.include_states = []; + this.exclude_workflows = []; + this.exclude_states = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77827,103 +77250,184 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * VDiffResponse id. - * @member {number|Long} id - * @memberof tabletmanagerdata.VDiffResponse + * ReadVReplicationWorkflowsRequest include_ids. + * @member {Array.} include_ids + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest * @instance */ - VDiffResponse.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReadVReplicationWorkflowsRequest.prototype.include_ids = $util.emptyArray; /** - * VDiffResponse output. - * @member {query.IQueryResult|null|undefined} output - * @memberof tabletmanagerdata.VDiffResponse + * ReadVReplicationWorkflowsRequest include_workflows. + * @member {Array.} include_workflows + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest * @instance */ - VDiffResponse.prototype.output = null; + ReadVReplicationWorkflowsRequest.prototype.include_workflows = $util.emptyArray; /** - * VDiffResponse vdiff_uuid. - * @member {string} vdiff_uuid - * @memberof tabletmanagerdata.VDiffResponse + * ReadVReplicationWorkflowsRequest include_states. + * @member {Array.} include_states + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest * @instance */ - VDiffResponse.prototype.vdiff_uuid = ""; + ReadVReplicationWorkflowsRequest.prototype.include_states = $util.emptyArray; /** - * Creates a new VDiffResponse instance using the specified properties. + * ReadVReplicationWorkflowsRequest exclude_workflows. + * @member {Array.} exclude_workflows + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * @instance + */ + ReadVReplicationWorkflowsRequest.prototype.exclude_workflows = $util.emptyArray; + + /** + * ReadVReplicationWorkflowsRequest exclude_states. + * @member {Array.} exclude_states + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * @instance + */ + ReadVReplicationWorkflowsRequest.prototype.exclude_states = $util.emptyArray; + + /** + * ReadVReplicationWorkflowsRequest exclude_frozen. + * @member {boolean} exclude_frozen + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest + * @instance + */ + ReadVReplicationWorkflowsRequest.prototype.exclude_frozen = false; + + /** + * Creates a new ReadVReplicationWorkflowsRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.VDiffResponse + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest * @static - * @param {tabletmanagerdata.IVDiffResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.VDiffResponse} VDiffResponse instance + * @param {tabletmanagerdata.IReadVReplicationWorkflowsRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ReadVReplicationWorkflowsRequest} ReadVReplicationWorkflowsRequest instance */ - VDiffResponse.create = function create(properties) { - return new VDiffResponse(properties); + ReadVReplicationWorkflowsRequest.create = function create(properties) { + return new ReadVReplicationWorkflowsRequest(properties); }; /** - * Encodes the specified VDiffResponse message. Does not implicitly {@link tabletmanagerdata.VDiffResponse.verify|verify} messages. + * Encodes the specified ReadVReplicationWorkflowsRequest message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.VDiffResponse + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest * @static - * @param {tabletmanagerdata.IVDiffResponse} message VDiffResponse message or plain object to encode + * @param {tabletmanagerdata.IReadVReplicationWorkflowsRequest} message ReadVReplicationWorkflowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffResponse.encode = function encode(message, writer) { + ReadVReplicationWorkflowsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); - if (message.output != null && Object.hasOwnProperty.call(message, "output")) - $root.query.QueryResult.encode(message.output, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.vdiff_uuid != null && Object.hasOwnProperty.call(message, "vdiff_uuid")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.vdiff_uuid); + if (message.include_ids != null && message.include_ids.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (let i = 0; i < message.include_ids.length; ++i) + writer.int32(message.include_ids[i]); + writer.ldelim(); + } + if (message.include_workflows != null && message.include_workflows.length) + for (let i = 0; i < message.include_workflows.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.include_workflows[i]); + if (message.include_states != null && message.include_states.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (let i = 0; i < message.include_states.length; ++i) + writer.int32(message.include_states[i]); + writer.ldelim(); + } + if (message.exclude_workflows != null && message.exclude_workflows.length) + for (let i = 0; i < message.exclude_workflows.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.exclude_workflows[i]); + if (message.exclude_states != null && message.exclude_states.length) { + writer.uint32(/* id 5, wireType 2 =*/42).fork(); + for (let i = 0; i < message.exclude_states.length; ++i) + writer.int32(message.exclude_states[i]); + writer.ldelim(); + } + if (message.exclude_frozen != null && Object.hasOwnProperty.call(message, "exclude_frozen")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.exclude_frozen); return writer; }; /** - * Encodes the specified VDiffResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffResponse.verify|verify} messages. + * Encodes the specified ReadVReplicationWorkflowsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.VDiffResponse + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest * @static - * @param {tabletmanagerdata.IVDiffResponse} message VDiffResponse message or plain object to encode + * @param {tabletmanagerdata.IReadVReplicationWorkflowsRequest} message ReadVReplicationWorkflowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReadVReplicationWorkflowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffResponse message from the specified reader or buffer. + * Decodes a ReadVReplicationWorkflowsRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.VDiffResponse + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.VDiffResponse} VDiffResponse + * @returns {tabletmanagerdata.ReadVReplicationWorkflowsRequest} ReadVReplicationWorkflowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffResponse.decode = function decode(reader, length) { + ReadVReplicationWorkflowsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadVReplicationWorkflowsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.int64(); + if (!(message.include_ids && message.include_ids.length)) + message.include_ids = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.include_ids.push(reader.int32()); + } else + message.include_ids.push(reader.int32()); break; } case 2: { - message.output = $root.query.QueryResult.decode(reader, reader.uint32()); + if (!(message.include_workflows && message.include_workflows.length)) + message.include_workflows = []; + message.include_workflows.push(reader.string()); break; } case 3: { - message.vdiff_uuid = reader.string(); + if (!(message.include_states && message.include_states.length)) + message.include_states = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.include_states.push(reader.int32()); + } else + message.include_states.push(reader.int32()); + break; + } + case 4: { + if (!(message.exclude_workflows && message.exclude_workflows.length)) + message.exclude_workflows = []; + message.exclude_workflows.push(reader.string()); + break; + } + case 5: { + if (!(message.exclude_states && message.exclude_states.length)) + message.exclude_states = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.exclude_states.push(reader.int32()); + } else + message.exclude_states.push(reader.int32()); + break; + } + case 6: { + message.exclude_frozen = reader.bool(); break; } default: @@ -77935,160 +77439,313 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a VDiffResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadVReplicationWorkflowsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.VDiffResponse + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.VDiffResponse} VDiffResponse + * @returns {tabletmanagerdata.ReadVReplicationWorkflowsRequest} ReadVReplicationWorkflowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffResponse.decodeDelimited = function decodeDelimited(reader) { + ReadVReplicationWorkflowsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffResponse message. + * Verifies a ReadVReplicationWorkflowsRequest message. * @function verify - * @memberof tabletmanagerdata.VDiffResponse + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffResponse.verify = function verify(message) { + ReadVReplicationWorkflowsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) - return "id: integer|Long expected"; - if (message.output != null && message.hasOwnProperty("output")) { - let error = $root.query.QueryResult.verify(message.output); - if (error) - return "output." + error; + if (message.include_ids != null && message.hasOwnProperty("include_ids")) { + if (!Array.isArray(message.include_ids)) + return "include_ids: array expected"; + for (let i = 0; i < message.include_ids.length; ++i) + if (!$util.isInteger(message.include_ids[i])) + return "include_ids: integer[] expected"; } - if (message.vdiff_uuid != null && message.hasOwnProperty("vdiff_uuid")) - if (!$util.isString(message.vdiff_uuid)) - return "vdiff_uuid: string expected"; + if (message.include_workflows != null && message.hasOwnProperty("include_workflows")) { + if (!Array.isArray(message.include_workflows)) + return "include_workflows: array expected"; + for (let i = 0; i < message.include_workflows.length; ++i) + if (!$util.isString(message.include_workflows[i])) + return "include_workflows: string[] expected"; + } + if (message.include_states != null && message.hasOwnProperty("include_states")) { + if (!Array.isArray(message.include_states)) + return "include_states: array expected"; + for (let i = 0; i < message.include_states.length; ++i) + switch (message.include_states[i]) { + default: + return "include_states: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + } + if (message.exclude_workflows != null && message.hasOwnProperty("exclude_workflows")) { + if (!Array.isArray(message.exclude_workflows)) + return "exclude_workflows: array expected"; + for (let i = 0; i < message.exclude_workflows.length; ++i) + if (!$util.isString(message.exclude_workflows[i])) + return "exclude_workflows: string[] expected"; + } + if (message.exclude_states != null && message.hasOwnProperty("exclude_states")) { + if (!Array.isArray(message.exclude_states)) + return "exclude_states: array expected"; + for (let i = 0; i < message.exclude_states.length; ++i) + switch (message.exclude_states[i]) { + default: + return "exclude_states: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + } + if (message.exclude_frozen != null && message.hasOwnProperty("exclude_frozen")) + if (typeof message.exclude_frozen !== "boolean") + return "exclude_frozen: boolean expected"; return null; }; /** - * Creates a VDiffResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadVReplicationWorkflowsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.VDiffResponse + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.VDiffResponse} VDiffResponse + * @returns {tabletmanagerdata.ReadVReplicationWorkflowsRequest} ReadVReplicationWorkflowsRequest */ - VDiffResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.VDiffResponse) + ReadVReplicationWorkflowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReadVReplicationWorkflowsRequest) return object; - let message = new $root.tabletmanagerdata.VDiffResponse(); - if (object.id != null) - if ($util.Long) - (message.id = $util.Long.fromValue(object.id)).unsigned = false; - else if (typeof object.id === "string") - message.id = parseInt(object.id, 10); - else if (typeof object.id === "number") - message.id = object.id; - else if (typeof object.id === "object") - message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); - if (object.output != null) { - if (typeof object.output !== "object") - throw TypeError(".tabletmanagerdata.VDiffResponse.output: object expected"); - message.output = $root.query.QueryResult.fromObject(object.output); + let message = new $root.tabletmanagerdata.ReadVReplicationWorkflowsRequest(); + if (object.include_ids) { + if (!Array.isArray(object.include_ids)) + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowsRequest.include_ids: array expected"); + message.include_ids = []; + for (let i = 0; i < object.include_ids.length; ++i) + message.include_ids[i] = object.include_ids[i] | 0; } - if (object.vdiff_uuid != null) - message.vdiff_uuid = String(object.vdiff_uuid); + if (object.include_workflows) { + if (!Array.isArray(object.include_workflows)) + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowsRequest.include_workflows: array expected"); + message.include_workflows = []; + for (let i = 0; i < object.include_workflows.length; ++i) + message.include_workflows[i] = String(object.include_workflows[i]); + } + if (object.include_states) { + if (!Array.isArray(object.include_states)) + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowsRequest.include_states: array expected"); + message.include_states = []; + for (let i = 0; i < object.include_states.length; ++i) + switch (object.include_states[i]) { + default: + if (typeof object.include_states[i] === "number") { + message.include_states[i] = object.include_states[i]; + break; + } + case "Unknown": + case 0: + message.include_states[i] = 0; + break; + case "Init": + case 1: + message.include_states[i] = 1; + break; + case "Stopped": + case 2: + message.include_states[i] = 2; + break; + case "Copying": + case 3: + message.include_states[i] = 3; + break; + case "Running": + case 4: + message.include_states[i] = 4; + break; + case "Error": + case 5: + message.include_states[i] = 5; + break; + case "Lagging": + case 6: + message.include_states[i] = 6; + break; + } + } + if (object.exclude_workflows) { + if (!Array.isArray(object.exclude_workflows)) + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowsRequest.exclude_workflows: array expected"); + message.exclude_workflows = []; + for (let i = 0; i < object.exclude_workflows.length; ++i) + message.exclude_workflows[i] = String(object.exclude_workflows[i]); + } + if (object.exclude_states) { + if (!Array.isArray(object.exclude_states)) + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowsRequest.exclude_states: array expected"); + message.exclude_states = []; + for (let i = 0; i < object.exclude_states.length; ++i) + switch (object.exclude_states[i]) { + default: + if (typeof object.exclude_states[i] === "number") { + message.exclude_states[i] = object.exclude_states[i]; + break; + } + case "Unknown": + case 0: + message.exclude_states[i] = 0; + break; + case "Init": + case 1: + message.exclude_states[i] = 1; + break; + case "Stopped": + case 2: + message.exclude_states[i] = 2; + break; + case "Copying": + case 3: + message.exclude_states[i] = 3; + break; + case "Running": + case 4: + message.exclude_states[i] = 4; + break; + case "Error": + case 5: + message.exclude_states[i] = 5; + break; + case "Lagging": + case 6: + message.exclude_states[i] = 6; + break; + } + } + if (object.exclude_frozen != null) + message.exclude_frozen = Boolean(object.exclude_frozen); return message; }; /** - * Creates a plain object from a VDiffResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReadVReplicationWorkflowsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.VDiffResponse + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest * @static - * @param {tabletmanagerdata.VDiffResponse} message VDiffResponse + * @param {tabletmanagerdata.ReadVReplicationWorkflowsRequest} message ReadVReplicationWorkflowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffResponse.toObject = function toObject(message, options) { + ReadVReplicationWorkflowsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id = options.longs === String ? "0" : 0; - object.output = null; - object.vdiff_uuid = ""; + if (options.arrays || options.defaults) { + object.include_ids = []; + object.include_workflows = []; + object.include_states = []; + object.exclude_workflows = []; + object.exclude_states = []; } - if (message.id != null && message.hasOwnProperty("id")) - if (typeof message.id === "number") - object.id = options.longs === String ? String(message.id) : message.id; - else - object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; - if (message.output != null && message.hasOwnProperty("output")) - object.output = $root.query.QueryResult.toObject(message.output, options); - if (message.vdiff_uuid != null && message.hasOwnProperty("vdiff_uuid")) - object.vdiff_uuid = message.vdiff_uuid; + if (options.defaults) + object.exclude_frozen = false; + if (message.include_ids && message.include_ids.length) { + object.include_ids = []; + for (let j = 0; j < message.include_ids.length; ++j) + object.include_ids[j] = message.include_ids[j]; + } + if (message.include_workflows && message.include_workflows.length) { + object.include_workflows = []; + for (let j = 0; j < message.include_workflows.length; ++j) + object.include_workflows[j] = message.include_workflows[j]; + } + if (message.include_states && message.include_states.length) { + object.include_states = []; + for (let j = 0; j < message.include_states.length; ++j) + object.include_states[j] = options.enums === String ? $root.binlogdata.VReplicationWorkflowState[message.include_states[j]] === undefined ? message.include_states[j] : $root.binlogdata.VReplicationWorkflowState[message.include_states[j]] : message.include_states[j]; + } + if (message.exclude_workflows && message.exclude_workflows.length) { + object.exclude_workflows = []; + for (let j = 0; j < message.exclude_workflows.length; ++j) + object.exclude_workflows[j] = message.exclude_workflows[j]; + } + if (message.exclude_states && message.exclude_states.length) { + object.exclude_states = []; + for (let j = 0; j < message.exclude_states.length; ++j) + object.exclude_states[j] = options.enums === String ? $root.binlogdata.VReplicationWorkflowState[message.exclude_states[j]] === undefined ? message.exclude_states[j] : $root.binlogdata.VReplicationWorkflowState[message.exclude_states[j]] : message.exclude_states[j]; + } + if (message.exclude_frozen != null && message.hasOwnProperty("exclude_frozen")) + object.exclude_frozen = message.exclude_frozen; return object; }; /** - * Converts this VDiffResponse to JSON. + * Converts this ReadVReplicationWorkflowsRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.VDiffResponse + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest * @instance * @returns {Object.} JSON object */ - VDiffResponse.prototype.toJSON = function toJSON() { + ReadVReplicationWorkflowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffResponse + * Gets the default type url for ReadVReplicationWorkflowsRequest * @function getTypeUrl - * @memberof tabletmanagerdata.VDiffResponse + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadVReplicationWorkflowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.VDiffResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ReadVReplicationWorkflowsRequest"; }; - return VDiffResponse; + return ReadVReplicationWorkflowsRequest; })(); - tabletmanagerdata.VDiffPickerOptions = (function() { + tabletmanagerdata.ReadVReplicationWorkflowsResponse = (function() { /** - * Properties of a VDiffPickerOptions. + * Properties of a ReadVReplicationWorkflowsResponse. * @memberof tabletmanagerdata - * @interface IVDiffPickerOptions - * @property {string|null} [tablet_types] VDiffPickerOptions tablet_types - * @property {string|null} [source_cell] VDiffPickerOptions source_cell - * @property {string|null} [target_cell] VDiffPickerOptions target_cell + * @interface IReadVReplicationWorkflowsResponse + * @property {Array.|null} [workflows] ReadVReplicationWorkflowsResponse workflows */ /** - * Constructs a new VDiffPickerOptions. + * Constructs a new ReadVReplicationWorkflowsResponse. * @memberof tabletmanagerdata - * @classdesc Represents a VDiffPickerOptions. - * @implements IVDiffPickerOptions + * @classdesc Represents a ReadVReplicationWorkflowsResponse. + * @implements IReadVReplicationWorkflowsResponse * @constructor - * @param {tabletmanagerdata.IVDiffPickerOptions=} [properties] Properties to set + * @param {tabletmanagerdata.IReadVReplicationWorkflowsResponse=} [properties] Properties to set */ - function VDiffPickerOptions(properties) { + function ReadVReplicationWorkflowsResponse(properties) { + this.workflows = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78096,103 +77753,78 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * VDiffPickerOptions tablet_types. - * @member {string} tablet_types - * @memberof tabletmanagerdata.VDiffPickerOptions - * @instance - */ - VDiffPickerOptions.prototype.tablet_types = ""; - - /** - * VDiffPickerOptions source_cell. - * @member {string} source_cell - * @memberof tabletmanagerdata.VDiffPickerOptions - * @instance - */ - VDiffPickerOptions.prototype.source_cell = ""; - - /** - * VDiffPickerOptions target_cell. - * @member {string} target_cell - * @memberof tabletmanagerdata.VDiffPickerOptions + * ReadVReplicationWorkflowsResponse workflows. + * @member {Array.} workflows + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse * @instance */ - VDiffPickerOptions.prototype.target_cell = ""; + ReadVReplicationWorkflowsResponse.prototype.workflows = $util.emptyArray; /** - * Creates a new VDiffPickerOptions instance using the specified properties. + * Creates a new ReadVReplicationWorkflowsResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.VDiffPickerOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse * @static - * @param {tabletmanagerdata.IVDiffPickerOptions=} [properties] Properties to set - * @returns {tabletmanagerdata.VDiffPickerOptions} VDiffPickerOptions instance + * @param {tabletmanagerdata.IReadVReplicationWorkflowsResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ReadVReplicationWorkflowsResponse} ReadVReplicationWorkflowsResponse instance */ - VDiffPickerOptions.create = function create(properties) { - return new VDiffPickerOptions(properties); + ReadVReplicationWorkflowsResponse.create = function create(properties) { + return new ReadVReplicationWorkflowsResponse(properties); }; /** - * Encodes the specified VDiffPickerOptions message. Does not implicitly {@link tabletmanagerdata.VDiffPickerOptions.verify|verify} messages. + * Encodes the specified ReadVReplicationWorkflowsResponse message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.VDiffPickerOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse * @static - * @param {tabletmanagerdata.IVDiffPickerOptions} message VDiffPickerOptions message or plain object to encode + * @param {tabletmanagerdata.IReadVReplicationWorkflowsResponse} message ReadVReplicationWorkflowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffPickerOptions.encode = function encode(message, writer) { + ReadVReplicationWorkflowsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_types != null && Object.hasOwnProperty.call(message, "tablet_types")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tablet_types); - if (message.source_cell != null && Object.hasOwnProperty.call(message, "source_cell")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_cell); - if (message.target_cell != null && Object.hasOwnProperty.call(message, "target_cell")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_cell); + if (message.workflows != null && message.workflows.length) + for (let i = 0; i < message.workflows.length; ++i) + $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.encode(message.workflows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified VDiffPickerOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffPickerOptions.verify|verify} messages. + * Encodes the specified ReadVReplicationWorkflowsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.VDiffPickerOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse * @static - * @param {tabletmanagerdata.IVDiffPickerOptions} message VDiffPickerOptions message or plain object to encode + * @param {tabletmanagerdata.IReadVReplicationWorkflowsResponse} message ReadVReplicationWorkflowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffPickerOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadVReplicationWorkflowsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffPickerOptions message from the specified reader or buffer. + * Decodes a ReadVReplicationWorkflowsResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.VDiffPickerOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.VDiffPickerOptions} VDiffPickerOptions + * @returns {tabletmanagerdata.ReadVReplicationWorkflowsResponse} ReadVReplicationWorkflowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffPickerOptions.decode = function decode(reader, length) { + ReadVReplicationWorkflowsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffPickerOptions(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadVReplicationWorkflowsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet_types = reader.string(); - break; - } - case 2: { - message.source_cell = reader.string(); - break; - } - case 3: { - message.target_cell = reader.string(); + if (!(message.workflows && message.workflows.length)) + message.workflows = []; + message.workflows.push($root.tabletmanagerdata.ReadVReplicationWorkflowResponse.decode(reader, reader.uint32())); break; } default: @@ -78204,143 +77836,139 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a VDiffPickerOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadVReplicationWorkflowsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.VDiffPickerOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.VDiffPickerOptions} VDiffPickerOptions + * @returns {tabletmanagerdata.ReadVReplicationWorkflowsResponse} ReadVReplicationWorkflowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffPickerOptions.decodeDelimited = function decodeDelimited(reader) { + ReadVReplicationWorkflowsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffPickerOptions message. + * Verifies a ReadVReplicationWorkflowsResponse message. * @function verify - * @memberof tabletmanagerdata.VDiffPickerOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffPickerOptions.verify = function verify(message) { + ReadVReplicationWorkflowsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) - if (!$util.isString(message.tablet_types)) - return "tablet_types: string expected"; - if (message.source_cell != null && message.hasOwnProperty("source_cell")) - if (!$util.isString(message.source_cell)) - return "source_cell: string expected"; - if (message.target_cell != null && message.hasOwnProperty("target_cell")) - if (!$util.isString(message.target_cell)) - return "target_cell: string expected"; + if (message.workflows != null && message.hasOwnProperty("workflows")) { + if (!Array.isArray(message.workflows)) + return "workflows: array expected"; + for (let i = 0; i < message.workflows.length; ++i) { + let error = $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.verify(message.workflows[i]); + if (error) + return "workflows." + error; + } + } return null; }; /** - * Creates a VDiffPickerOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadVReplicationWorkflowsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.VDiffPickerOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.VDiffPickerOptions} VDiffPickerOptions + * @returns {tabletmanagerdata.ReadVReplicationWorkflowsResponse} ReadVReplicationWorkflowsResponse */ - VDiffPickerOptions.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.VDiffPickerOptions) + ReadVReplicationWorkflowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReadVReplicationWorkflowsResponse) return object; - let message = new $root.tabletmanagerdata.VDiffPickerOptions(); - if (object.tablet_types != null) - message.tablet_types = String(object.tablet_types); - if (object.source_cell != null) - message.source_cell = String(object.source_cell); - if (object.target_cell != null) - message.target_cell = String(object.target_cell); + let message = new $root.tabletmanagerdata.ReadVReplicationWorkflowsResponse(); + if (object.workflows) { + if (!Array.isArray(object.workflows)) + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowsResponse.workflows: array expected"); + message.workflows = []; + for (let i = 0; i < object.workflows.length; ++i) { + if (typeof object.workflows[i] !== "object") + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowsResponse.workflows: object expected"); + message.workflows[i] = $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.fromObject(object.workflows[i]); + } + } return message; }; /** - * Creates a plain object from a VDiffPickerOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadVReplicationWorkflowsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.VDiffPickerOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse * @static - * @param {tabletmanagerdata.VDiffPickerOptions} message VDiffPickerOptions + * @param {tabletmanagerdata.ReadVReplicationWorkflowsResponse} message ReadVReplicationWorkflowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffPickerOptions.toObject = function toObject(message, options) { + ReadVReplicationWorkflowsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.tablet_types = ""; - object.source_cell = ""; - object.target_cell = ""; + if (options.arrays || options.defaults) + object.workflows = []; + if (message.workflows && message.workflows.length) { + object.workflows = []; + for (let j = 0; j < message.workflows.length; ++j) + object.workflows[j] = $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.toObject(message.workflows[j], options); } - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) - object.tablet_types = message.tablet_types; - if (message.source_cell != null && message.hasOwnProperty("source_cell")) - object.source_cell = message.source_cell; - if (message.target_cell != null && message.hasOwnProperty("target_cell")) - object.target_cell = message.target_cell; return object; }; /** - * Converts this VDiffPickerOptions to JSON. + * Converts this ReadVReplicationWorkflowsResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.VDiffPickerOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse * @instance * @returns {Object.} JSON object */ - VDiffPickerOptions.prototype.toJSON = function toJSON() { + ReadVReplicationWorkflowsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffPickerOptions + * Gets the default type url for ReadVReplicationWorkflowsResponse * @function getTypeUrl - * @memberof tabletmanagerdata.VDiffPickerOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffPickerOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadVReplicationWorkflowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.VDiffPickerOptions"; + return typeUrlPrefix + "/tabletmanagerdata.ReadVReplicationWorkflowsResponse"; }; - return VDiffPickerOptions; + return ReadVReplicationWorkflowsResponse; })(); - tabletmanagerdata.VDiffReportOptions = (function() { + tabletmanagerdata.ReadVReplicationWorkflowRequest = (function() { /** - * Properties of a VDiffReportOptions. + * Properties of a ReadVReplicationWorkflowRequest. * @memberof tabletmanagerdata - * @interface IVDiffReportOptions - * @property {boolean|null} [only_pks] VDiffReportOptions only_pks - * @property {boolean|null} [debug_query] VDiffReportOptions debug_query - * @property {string|null} [format] VDiffReportOptions format - * @property {number|Long|null} [max_sample_rows] VDiffReportOptions max_sample_rows - * @property {number|Long|null} [row_diff_column_truncate_at] VDiffReportOptions row_diff_column_truncate_at + * @interface IReadVReplicationWorkflowRequest + * @property {string|null} [workflow] ReadVReplicationWorkflowRequest workflow */ /** - * Constructs a new VDiffReportOptions. + * Constructs a new ReadVReplicationWorkflowRequest. * @memberof tabletmanagerdata - * @classdesc Represents a VDiffReportOptions. - * @implements IVDiffReportOptions + * @classdesc Represents a ReadVReplicationWorkflowRequest. + * @implements IReadVReplicationWorkflowRequest * @constructor - * @param {tabletmanagerdata.IVDiffReportOptions=} [properties] Properties to set + * @param {tabletmanagerdata.IReadVReplicationWorkflowRequest=} [properties] Properties to set */ - function VDiffReportOptions(properties) { + function ReadVReplicationWorkflowRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78348,131 +77976,75 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * VDiffReportOptions only_pks. - * @member {boolean} only_pks - * @memberof tabletmanagerdata.VDiffReportOptions - * @instance - */ - VDiffReportOptions.prototype.only_pks = false; - - /** - * VDiffReportOptions debug_query. - * @member {boolean} debug_query - * @memberof tabletmanagerdata.VDiffReportOptions - * @instance - */ - VDiffReportOptions.prototype.debug_query = false; - - /** - * VDiffReportOptions format. - * @member {string} format - * @memberof tabletmanagerdata.VDiffReportOptions - * @instance - */ - VDiffReportOptions.prototype.format = ""; - - /** - * VDiffReportOptions max_sample_rows. - * @member {number|Long} max_sample_rows - * @memberof tabletmanagerdata.VDiffReportOptions - * @instance - */ - VDiffReportOptions.prototype.max_sample_rows = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * VDiffReportOptions row_diff_column_truncate_at. - * @member {number|Long} row_diff_column_truncate_at - * @memberof tabletmanagerdata.VDiffReportOptions + * ReadVReplicationWorkflowRequest workflow. + * @member {string} workflow + * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest * @instance */ - VDiffReportOptions.prototype.row_diff_column_truncate_at = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReadVReplicationWorkflowRequest.prototype.workflow = ""; /** - * Creates a new VDiffReportOptions instance using the specified properties. + * Creates a new ReadVReplicationWorkflowRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.VDiffReportOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.IVDiffReportOptions=} [properties] Properties to set - * @returns {tabletmanagerdata.VDiffReportOptions} VDiffReportOptions instance + * @param {tabletmanagerdata.IReadVReplicationWorkflowRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ReadVReplicationWorkflowRequest} ReadVReplicationWorkflowRequest instance */ - VDiffReportOptions.create = function create(properties) { - return new VDiffReportOptions(properties); + ReadVReplicationWorkflowRequest.create = function create(properties) { + return new ReadVReplicationWorkflowRequest(properties); }; /** - * Encodes the specified VDiffReportOptions message. Does not implicitly {@link tabletmanagerdata.VDiffReportOptions.verify|verify} messages. + * Encodes the specified ReadVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.VDiffReportOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.IVDiffReportOptions} message VDiffReportOptions message or plain object to encode + * @param {tabletmanagerdata.IReadVReplicationWorkflowRequest} message ReadVReplicationWorkflowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffReportOptions.encode = function encode(message, writer) { + ReadVReplicationWorkflowRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.only_pks != null && Object.hasOwnProperty.call(message, "only_pks")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.only_pks); - if (message.debug_query != null && Object.hasOwnProperty.call(message, "debug_query")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.debug_query); - if (message.format != null && Object.hasOwnProperty.call(message, "format")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.format); - if (message.max_sample_rows != null && Object.hasOwnProperty.call(message, "max_sample_rows")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.max_sample_rows); - if (message.row_diff_column_truncate_at != null && Object.hasOwnProperty.call(message, "row_diff_column_truncate_at")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.row_diff_column_truncate_at); + if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); return writer; }; /** - * Encodes the specified VDiffReportOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffReportOptions.verify|verify} messages. + * Encodes the specified ReadVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.VDiffReportOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.IVDiffReportOptions} message VDiffReportOptions message or plain object to encode + * @param {tabletmanagerdata.IReadVReplicationWorkflowRequest} message ReadVReplicationWorkflowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffReportOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadVReplicationWorkflowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffReportOptions message from the specified reader or buffer. + * Decodes a ReadVReplicationWorkflowRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.VDiffReportOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.VDiffReportOptions} VDiffReportOptions + * @returns {tabletmanagerdata.ReadVReplicationWorkflowRequest} ReadVReplicationWorkflowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffReportOptions.decode = function decode(reader, length) { + ReadVReplicationWorkflowRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffReportOptions(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadVReplicationWorkflowRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.only_pks = reader.bool(); - break; - } - case 2: { - message.debug_query = reader.bool(); - break; - } - case 3: { - message.format = reader.string(); - break; - } - case 4: { - message.max_sample_rows = reader.int64(); - break; - } - case 5: { - message.row_diff_column_truncate_at = reader.int64(); + message.workflow = reader.string(); break; } default: @@ -78484,192 +78056,136 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a VDiffReportOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.VDiffReportOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.VDiffReportOptions} VDiffReportOptions + * @returns {tabletmanagerdata.ReadVReplicationWorkflowRequest} ReadVReplicationWorkflowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffReportOptions.decodeDelimited = function decodeDelimited(reader) { + ReadVReplicationWorkflowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffReportOptions message. + * Verifies a ReadVReplicationWorkflowRequest message. * @function verify - * @memberof tabletmanagerdata.VDiffReportOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffReportOptions.verify = function verify(message) { + ReadVReplicationWorkflowRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.only_pks != null && message.hasOwnProperty("only_pks")) - if (typeof message.only_pks !== "boolean") - return "only_pks: boolean expected"; - if (message.debug_query != null && message.hasOwnProperty("debug_query")) - if (typeof message.debug_query !== "boolean") - return "debug_query: boolean expected"; - if (message.format != null && message.hasOwnProperty("format")) - if (!$util.isString(message.format)) - return "format: string expected"; - if (message.max_sample_rows != null && message.hasOwnProperty("max_sample_rows")) - if (!$util.isInteger(message.max_sample_rows) && !(message.max_sample_rows && $util.isInteger(message.max_sample_rows.low) && $util.isInteger(message.max_sample_rows.high))) - return "max_sample_rows: integer|Long expected"; - if (message.row_diff_column_truncate_at != null && message.hasOwnProperty("row_diff_column_truncate_at")) - if (!$util.isInteger(message.row_diff_column_truncate_at) && !(message.row_diff_column_truncate_at && $util.isInteger(message.row_diff_column_truncate_at.low) && $util.isInteger(message.row_diff_column_truncate_at.high))) - return "row_diff_column_truncate_at: integer|Long expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; return null; }; /** - * Creates a VDiffReportOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.VDiffReportOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.VDiffReportOptions} VDiffReportOptions + * @returns {tabletmanagerdata.ReadVReplicationWorkflowRequest} ReadVReplicationWorkflowRequest */ - VDiffReportOptions.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.VDiffReportOptions) + ReadVReplicationWorkflowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReadVReplicationWorkflowRequest) return object; - let message = new $root.tabletmanagerdata.VDiffReportOptions(); - if (object.only_pks != null) - message.only_pks = Boolean(object.only_pks); - if (object.debug_query != null) - message.debug_query = Boolean(object.debug_query); - if (object.format != null) - message.format = String(object.format); - if (object.max_sample_rows != null) - if ($util.Long) - (message.max_sample_rows = $util.Long.fromValue(object.max_sample_rows)).unsigned = false; - else if (typeof object.max_sample_rows === "string") - message.max_sample_rows = parseInt(object.max_sample_rows, 10); - else if (typeof object.max_sample_rows === "number") - message.max_sample_rows = object.max_sample_rows; - else if (typeof object.max_sample_rows === "object") - message.max_sample_rows = new $util.LongBits(object.max_sample_rows.low >>> 0, object.max_sample_rows.high >>> 0).toNumber(); - if (object.row_diff_column_truncate_at != null) - if ($util.Long) - (message.row_diff_column_truncate_at = $util.Long.fromValue(object.row_diff_column_truncate_at)).unsigned = false; - else if (typeof object.row_diff_column_truncate_at === "string") - message.row_diff_column_truncate_at = parseInt(object.row_diff_column_truncate_at, 10); - else if (typeof object.row_diff_column_truncate_at === "number") - message.row_diff_column_truncate_at = object.row_diff_column_truncate_at; - else if (typeof object.row_diff_column_truncate_at === "object") - message.row_diff_column_truncate_at = new $util.LongBits(object.row_diff_column_truncate_at.low >>> 0, object.row_diff_column_truncate_at.high >>> 0).toNumber(); + let message = new $root.tabletmanagerdata.ReadVReplicationWorkflowRequest(); + if (object.workflow != null) + message.workflow = String(object.workflow); return message; }; /** - * Creates a plain object from a VDiffReportOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadVReplicationWorkflowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.VDiffReportOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.VDiffReportOptions} message VDiffReportOptions + * @param {tabletmanagerdata.ReadVReplicationWorkflowRequest} message ReadVReplicationWorkflowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffReportOptions.toObject = function toObject(message, options) { + ReadVReplicationWorkflowRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.only_pks = false; - object.debug_query = false; - object.format = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.max_sample_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_sample_rows = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.row_diff_column_truncate_at = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.row_diff_column_truncate_at = options.longs === String ? "0" : 0; - } - if (message.only_pks != null && message.hasOwnProperty("only_pks")) - object.only_pks = message.only_pks; - if (message.debug_query != null && message.hasOwnProperty("debug_query")) - object.debug_query = message.debug_query; - if (message.format != null && message.hasOwnProperty("format")) - object.format = message.format; - if (message.max_sample_rows != null && message.hasOwnProperty("max_sample_rows")) - if (typeof message.max_sample_rows === "number") - object.max_sample_rows = options.longs === String ? String(message.max_sample_rows) : message.max_sample_rows; - else - object.max_sample_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_sample_rows) : options.longs === Number ? new $util.LongBits(message.max_sample_rows.low >>> 0, message.max_sample_rows.high >>> 0).toNumber() : message.max_sample_rows; - if (message.row_diff_column_truncate_at != null && message.hasOwnProperty("row_diff_column_truncate_at")) - if (typeof message.row_diff_column_truncate_at === "number") - object.row_diff_column_truncate_at = options.longs === String ? String(message.row_diff_column_truncate_at) : message.row_diff_column_truncate_at; - else - object.row_diff_column_truncate_at = options.longs === String ? $util.Long.prototype.toString.call(message.row_diff_column_truncate_at) : options.longs === Number ? new $util.LongBits(message.row_diff_column_truncate_at.low >>> 0, message.row_diff_column_truncate_at.high >>> 0).toNumber() : message.row_diff_column_truncate_at; + if (options.defaults) + object.workflow = ""; + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; return object; }; /** - * Converts this VDiffReportOptions to JSON. + * Converts this ReadVReplicationWorkflowRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.VDiffReportOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest * @instance * @returns {Object.} JSON object */ - VDiffReportOptions.prototype.toJSON = function toJSON() { + ReadVReplicationWorkflowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffReportOptions + * Gets the default type url for ReadVReplicationWorkflowRequest * @function getTypeUrl - * @memberof tabletmanagerdata.VDiffReportOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffReportOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadVReplicationWorkflowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.VDiffReportOptions"; + return typeUrlPrefix + "/tabletmanagerdata.ReadVReplicationWorkflowRequest"; }; - return VDiffReportOptions; + return ReadVReplicationWorkflowRequest; })(); - tabletmanagerdata.VDiffCoreOptions = (function() { + tabletmanagerdata.ReadVReplicationWorkflowResponse = (function() { /** - * Properties of a VDiffCoreOptions. + * Properties of a ReadVReplicationWorkflowResponse. * @memberof tabletmanagerdata - * @interface IVDiffCoreOptions - * @property {string|null} [tables] VDiffCoreOptions tables - * @property {boolean|null} [auto_retry] VDiffCoreOptions auto_retry - * @property {number|Long|null} [max_rows] VDiffCoreOptions max_rows - * @property {boolean|null} [checksum] VDiffCoreOptions checksum - * @property {number|Long|null} [sample_pct] VDiffCoreOptions sample_pct - * @property {number|Long|null} [timeout_seconds] VDiffCoreOptions timeout_seconds - * @property {number|Long|null} [max_extra_rows_to_compare] VDiffCoreOptions max_extra_rows_to_compare - * @property {boolean|null} [update_table_stats] VDiffCoreOptions update_table_stats - * @property {number|Long|null} [max_diff_seconds] VDiffCoreOptions max_diff_seconds - * @property {boolean|null} [auto_start] VDiffCoreOptions auto_start + * @interface IReadVReplicationWorkflowResponse + * @property {string|null} [workflow] ReadVReplicationWorkflowResponse workflow + * @property {string|null} [cells] ReadVReplicationWorkflowResponse cells + * @property {Array.|null} [tablet_types] ReadVReplicationWorkflowResponse tablet_types + * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] ReadVReplicationWorkflowResponse tablet_selection_preference + * @property {string|null} [db_name] ReadVReplicationWorkflowResponse db_name + * @property {string|null} [tags] ReadVReplicationWorkflowResponse tags + * @property {binlogdata.VReplicationWorkflowType|null} [workflow_type] ReadVReplicationWorkflowResponse workflow_type + * @property {binlogdata.VReplicationWorkflowSubType|null} [workflow_sub_type] ReadVReplicationWorkflowResponse workflow_sub_type + * @property {boolean|null} [defer_secondary_keys] ReadVReplicationWorkflowResponse defer_secondary_keys + * @property {Array.|null} [streams] ReadVReplicationWorkflowResponse streams + * @property {string|null} [options] ReadVReplicationWorkflowResponse options + * @property {Object.|null} [config_overrides] ReadVReplicationWorkflowResponse config_overrides */ /** - * Constructs a new VDiffCoreOptions. + * Constructs a new ReadVReplicationWorkflowResponse. * @memberof tabletmanagerdata - * @classdesc Represents a VDiffCoreOptions. - * @implements IVDiffCoreOptions + * @classdesc Represents a ReadVReplicationWorkflowResponse. + * @implements IReadVReplicationWorkflowResponse * @constructor - * @param {tabletmanagerdata.IVDiffCoreOptions=} [properties] Properties to set + * @param {tabletmanagerdata.IReadVReplicationWorkflowResponse=} [properties] Properties to set */ - function VDiffCoreOptions(properties) { + function ReadVReplicationWorkflowResponse(properties) { + this.tablet_types = []; + this.streams = []; + this.config_overrides = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78677,210 +78193,263 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * VDiffCoreOptions tables. - * @member {string} tables - * @memberof tabletmanagerdata.VDiffCoreOptions + * ReadVReplicationWorkflowResponse workflow. + * @member {string} workflow + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @instance */ - VDiffCoreOptions.prototype.tables = ""; + ReadVReplicationWorkflowResponse.prototype.workflow = ""; /** - * VDiffCoreOptions auto_retry. - * @member {boolean} auto_retry - * @memberof tabletmanagerdata.VDiffCoreOptions + * ReadVReplicationWorkflowResponse cells. + * @member {string} cells + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @instance */ - VDiffCoreOptions.prototype.auto_retry = false; + ReadVReplicationWorkflowResponse.prototype.cells = ""; /** - * VDiffCoreOptions max_rows. - * @member {number|Long} max_rows - * @memberof tabletmanagerdata.VDiffCoreOptions + * ReadVReplicationWorkflowResponse tablet_types. + * @member {Array.} tablet_types + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @instance */ - VDiffCoreOptions.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReadVReplicationWorkflowResponse.prototype.tablet_types = $util.emptyArray; /** - * VDiffCoreOptions checksum. - * @member {boolean} checksum - * @memberof tabletmanagerdata.VDiffCoreOptions + * ReadVReplicationWorkflowResponse tablet_selection_preference. + * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @instance */ - VDiffCoreOptions.prototype.checksum = false; + ReadVReplicationWorkflowResponse.prototype.tablet_selection_preference = 0; /** - * VDiffCoreOptions sample_pct. - * @member {number|Long} sample_pct - * @memberof tabletmanagerdata.VDiffCoreOptions + * ReadVReplicationWorkflowResponse db_name. + * @member {string} db_name + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @instance */ - VDiffCoreOptions.prototype.sample_pct = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReadVReplicationWorkflowResponse.prototype.db_name = ""; /** - * VDiffCoreOptions timeout_seconds. - * @member {number|Long} timeout_seconds - * @memberof tabletmanagerdata.VDiffCoreOptions + * ReadVReplicationWorkflowResponse tags. + * @member {string} tags + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @instance */ - VDiffCoreOptions.prototype.timeout_seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReadVReplicationWorkflowResponse.prototype.tags = ""; /** - * VDiffCoreOptions max_extra_rows_to_compare. - * @member {number|Long} max_extra_rows_to_compare - * @memberof tabletmanagerdata.VDiffCoreOptions + * ReadVReplicationWorkflowResponse workflow_type. + * @member {binlogdata.VReplicationWorkflowType} workflow_type + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @instance */ - VDiffCoreOptions.prototype.max_extra_rows_to_compare = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReadVReplicationWorkflowResponse.prototype.workflow_type = 0; /** - * VDiffCoreOptions update_table_stats. - * @member {boolean} update_table_stats - * @memberof tabletmanagerdata.VDiffCoreOptions + * ReadVReplicationWorkflowResponse workflow_sub_type. + * @member {binlogdata.VReplicationWorkflowSubType} workflow_sub_type + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @instance */ - VDiffCoreOptions.prototype.update_table_stats = false; + ReadVReplicationWorkflowResponse.prototype.workflow_sub_type = 0; /** - * VDiffCoreOptions max_diff_seconds. - * @member {number|Long} max_diff_seconds - * @memberof tabletmanagerdata.VDiffCoreOptions + * ReadVReplicationWorkflowResponse defer_secondary_keys. + * @member {boolean} defer_secondary_keys + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @instance */ - VDiffCoreOptions.prototype.max_diff_seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReadVReplicationWorkflowResponse.prototype.defer_secondary_keys = false; /** - * VDiffCoreOptions auto_start. - * @member {boolean|null|undefined} auto_start - * @memberof tabletmanagerdata.VDiffCoreOptions + * ReadVReplicationWorkflowResponse streams. + * @member {Array.} streams + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @instance */ - VDiffCoreOptions.prototype.auto_start = null; + ReadVReplicationWorkflowResponse.prototype.streams = $util.emptyArray; - // OneOf field names bound to virtual getters and setters - let $oneOfFields; + /** + * ReadVReplicationWorkflowResponse options. + * @member {string} options + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * @instance + */ + ReadVReplicationWorkflowResponse.prototype.options = ""; - // Virtual OneOf for proto3 optional field - Object.defineProperty(VDiffCoreOptions.prototype, "_auto_start", { - get: $util.oneOfGetter($oneOfFields = ["auto_start"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * ReadVReplicationWorkflowResponse config_overrides. + * @member {Object.} config_overrides + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * @instance + */ + ReadVReplicationWorkflowResponse.prototype.config_overrides = $util.emptyObject; /** - * Creates a new VDiffCoreOptions instance using the specified properties. + * Creates a new ReadVReplicationWorkflowResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.VDiffCoreOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.IVDiffCoreOptions=} [properties] Properties to set - * @returns {tabletmanagerdata.VDiffCoreOptions} VDiffCoreOptions instance + * @param {tabletmanagerdata.IReadVReplicationWorkflowResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse} ReadVReplicationWorkflowResponse instance */ - VDiffCoreOptions.create = function create(properties) { - return new VDiffCoreOptions(properties); + ReadVReplicationWorkflowResponse.create = function create(properties) { + return new ReadVReplicationWorkflowResponse(properties); }; /** - * Encodes the specified VDiffCoreOptions message. Does not implicitly {@link tabletmanagerdata.VDiffCoreOptions.verify|verify} messages. + * Encodes the specified ReadVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.VDiffCoreOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.IVDiffCoreOptions} message VDiffCoreOptions message or plain object to encode + * @param {tabletmanagerdata.IReadVReplicationWorkflowResponse} message ReadVReplicationWorkflowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffCoreOptions.encode = function encode(message, writer) { + ReadVReplicationWorkflowResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tables != null && Object.hasOwnProperty.call(message, "tables")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tables); - if (message.auto_retry != null && Object.hasOwnProperty.call(message, "auto_retry")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.auto_retry); - if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.max_rows); - if (message.checksum != null && Object.hasOwnProperty.call(message, "checksum")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.checksum); - if (message.sample_pct != null && Object.hasOwnProperty.call(message, "sample_pct")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.sample_pct); - if (message.timeout_seconds != null && Object.hasOwnProperty.call(message, "timeout_seconds")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.timeout_seconds); - if (message.max_extra_rows_to_compare != null && Object.hasOwnProperty.call(message, "max_extra_rows_to_compare")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.max_extra_rows_to_compare); - if (message.update_table_stats != null && Object.hasOwnProperty.call(message, "update_table_stats")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.update_table_stats); - if (message.max_diff_seconds != null && Object.hasOwnProperty.call(message, "max_diff_seconds")) - writer.uint32(/* id 9, wireType 0 =*/72).int64(message.max_diff_seconds); - if (message.auto_start != null && Object.hasOwnProperty.call(message, "auto_start")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.auto_start); + if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.workflow); + if (message.cells != null && Object.hasOwnProperty.call(message, "cells")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells); + if (message.tablet_types != null && message.tablet_types.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (let i = 0; i < message.tablet_types.length; ++i) + writer.int32(message.tablet_types[i]); + writer.ldelim(); + } + if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.tablet_selection_preference); + if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.db_name); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.tags); + if (message.workflow_type != null && Object.hasOwnProperty.call(message, "workflow_type")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.workflow_type); + if (message.workflow_sub_type != null && Object.hasOwnProperty.call(message, "workflow_sub_type")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.workflow_sub_type); + if (message.defer_secondary_keys != null && Object.hasOwnProperty.call(message, "defer_secondary_keys")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.defer_secondary_keys); + if (message.streams != null && message.streams.length) + for (let i = 0; i < message.streams.length; ++i) + $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.encode(message.streams[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.options); + if (message.config_overrides != null && Object.hasOwnProperty.call(message, "config_overrides")) + for (let keys = Object.keys(message.config_overrides), i = 0; i < keys.length; ++i) + writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config_overrides[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified VDiffCoreOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffCoreOptions.verify|verify} messages. + * Encodes the specified ReadVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.VDiffCoreOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.IVDiffCoreOptions} message VDiffCoreOptions message or plain object to encode + * @param {tabletmanagerdata.IReadVReplicationWorkflowResponse} message ReadVReplicationWorkflowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffCoreOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadVReplicationWorkflowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffCoreOptions message from the specified reader or buffer. + * Decodes a ReadVReplicationWorkflowResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.VDiffCoreOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.VDiffCoreOptions} VDiffCoreOptions + * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse} ReadVReplicationWorkflowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffCoreOptions.decode = function decode(reader, length) { + ReadVReplicationWorkflowResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffCoreOptions(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadVReplicationWorkflowResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.tables = reader.string(); - break; - } case 2: { - message.auto_retry = reader.bool(); + message.workflow = reader.string(); break; } case 3: { - message.max_rows = reader.int64(); + message.cells = reader.string(); break; } case 4: { - message.checksum = reader.bool(); + if (!(message.tablet_types && message.tablet_types.length)) + message.tablet_types = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.tablet_types.push(reader.int32()); + } else + message.tablet_types.push(reader.int32()); break; } case 5: { - message.sample_pct = reader.int64(); + message.tablet_selection_preference = reader.int32(); break; } case 6: { - message.timeout_seconds = reader.int64(); + message.db_name = reader.string(); break; } case 7: { - message.max_extra_rows_to_compare = reader.int64(); + message.tags = reader.string(); break; } case 8: { - message.update_table_stats = reader.bool(); + message.workflow_type = reader.int32(); break; } case 9: { - message.max_diff_seconds = reader.int64(); + message.workflow_sub_type = reader.int32(); break; } case 10: { - message.auto_start = reader.bool(); + message.defer_secondary_keys = reader.bool(); + break; + } + case 11: { + if (!(message.streams && message.streams.length)) + message.streams = []; + message.streams.push($root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.decode(reader, reader.uint32())); + break; + } + case 12: { + message.options = reader.string(); + break; + } + case 13: { + if (message.config_overrides === $util.emptyObject) + message.config_overrides = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.config_overrides[key] = value; break; } default: @@ -78892,378 +78461,1085 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a VDiffCoreOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.VDiffCoreOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.VDiffCoreOptions} VDiffCoreOptions + * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse} ReadVReplicationWorkflowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffCoreOptions.decodeDelimited = function decodeDelimited(reader) { + ReadVReplicationWorkflowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffCoreOptions message. + * Verifies a ReadVReplicationWorkflowResponse message. * @function verify - * @memberof tabletmanagerdata.VDiffCoreOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffCoreOptions.verify = function verify(message) { + ReadVReplicationWorkflowResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - let properties = {}; - if (message.tables != null && message.hasOwnProperty("tables")) - if (!$util.isString(message.tables)) - return "tables: string expected"; - if (message.auto_retry != null && message.hasOwnProperty("auto_retry")) - if (typeof message.auto_retry !== "boolean") - return "auto_retry: boolean expected"; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) - return "max_rows: integer|Long expected"; - if (message.checksum != null && message.hasOwnProperty("checksum")) - if (typeof message.checksum !== "boolean") - return "checksum: boolean expected"; - if (message.sample_pct != null && message.hasOwnProperty("sample_pct")) - if (!$util.isInteger(message.sample_pct) && !(message.sample_pct && $util.isInteger(message.sample_pct.low) && $util.isInteger(message.sample_pct.high))) - return "sample_pct: integer|Long expected"; - if (message.timeout_seconds != null && message.hasOwnProperty("timeout_seconds")) - if (!$util.isInteger(message.timeout_seconds) && !(message.timeout_seconds && $util.isInteger(message.timeout_seconds.low) && $util.isInteger(message.timeout_seconds.high))) - return "timeout_seconds: integer|Long expected"; - if (message.max_extra_rows_to_compare != null && message.hasOwnProperty("max_extra_rows_to_compare")) - if (!$util.isInteger(message.max_extra_rows_to_compare) && !(message.max_extra_rows_to_compare && $util.isInteger(message.max_extra_rows_to_compare.low) && $util.isInteger(message.max_extra_rows_to_compare.high))) - return "max_extra_rows_to_compare: integer|Long expected"; - if (message.update_table_stats != null && message.hasOwnProperty("update_table_stats")) - if (typeof message.update_table_stats !== "boolean") - return "update_table_stats: boolean expected"; - if (message.max_diff_seconds != null && message.hasOwnProperty("max_diff_seconds")) - if (!$util.isInteger(message.max_diff_seconds) && !(message.max_diff_seconds && $util.isInteger(message.max_diff_seconds.low) && $util.isInteger(message.max_diff_seconds.high))) - return "max_diff_seconds: integer|Long expected"; - if (message.auto_start != null && message.hasOwnProperty("auto_start")) { - properties._auto_start = 1; - if (typeof message.auto_start !== "boolean") - return "auto_start: boolean expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.cells != null && message.hasOwnProperty("cells")) + if (!$util.isString(message.cells)) + return "cells: string expected"; + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { + if (!Array.isArray(message.tablet_types)) + return "tablet_types: array expected"; + for (let i = 0; i < message.tablet_types.length; ++i) + switch (message.tablet_types[i]) { + default: + return "tablet_types: enum value[] expected"; + case 0: + case 1: + case 1: + case 2: + case 3: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + switch (message.tablet_selection_preference) { + default: + return "tablet_selection_preference: enum value expected"; + case 0: + case 1: + case 3: + break; + } + if (message.db_name != null && message.hasOwnProperty("db_name")) + if (!$util.isString(message.db_name)) + return "db_name: string expected"; + if (message.tags != null && message.hasOwnProperty("tags")) + if (!$util.isString(message.tags)) + return "tags: string expected"; + if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) + switch (message.workflow_type) { + default: + return "workflow_type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.workflow_sub_type != null && message.hasOwnProperty("workflow_sub_type")) + switch (message.workflow_sub_type) { + default: + return "workflow_sub_type: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) + if (typeof message.defer_secondary_keys !== "boolean") + return "defer_secondary_keys: boolean expected"; + if (message.streams != null && message.hasOwnProperty("streams")) { + if (!Array.isArray(message.streams)) + return "streams: array expected"; + for (let i = 0; i < message.streams.length; ++i) { + let error = $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.verify(message.streams[i]); + if (error) + return "streams." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) + if (!$util.isString(message.options)) + return "options: string expected"; + if (message.config_overrides != null && message.hasOwnProperty("config_overrides")) { + if (!$util.isObject(message.config_overrides)) + return "config_overrides: object expected"; + let key = Object.keys(message.config_overrides); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.config_overrides[key[i]])) + return "config_overrides: string{k:string} expected"; } return null; }; /** - * Creates a VDiffCoreOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.VDiffCoreOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.VDiffCoreOptions} VDiffCoreOptions + * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse} ReadVReplicationWorkflowResponse */ - VDiffCoreOptions.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.VDiffCoreOptions) + ReadVReplicationWorkflowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReadVReplicationWorkflowResponse) return object; - let message = new $root.tabletmanagerdata.VDiffCoreOptions(); - if (object.tables != null) - message.tables = String(object.tables); - if (object.auto_retry != null) - message.auto_retry = Boolean(object.auto_retry); - if (object.max_rows != null) - if ($util.Long) - (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = false; - else if (typeof object.max_rows === "string") - message.max_rows = parseInt(object.max_rows, 10); - else if (typeof object.max_rows === "number") - message.max_rows = object.max_rows; - else if (typeof object.max_rows === "object") - message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(); - if (object.checksum != null) - message.checksum = Boolean(object.checksum); - if (object.sample_pct != null) - if ($util.Long) - (message.sample_pct = $util.Long.fromValue(object.sample_pct)).unsigned = false; - else if (typeof object.sample_pct === "string") - message.sample_pct = parseInt(object.sample_pct, 10); - else if (typeof object.sample_pct === "number") - message.sample_pct = object.sample_pct; - else if (typeof object.sample_pct === "object") - message.sample_pct = new $util.LongBits(object.sample_pct.low >>> 0, object.sample_pct.high >>> 0).toNumber(); - if (object.timeout_seconds != null) - if ($util.Long) - (message.timeout_seconds = $util.Long.fromValue(object.timeout_seconds)).unsigned = false; - else if (typeof object.timeout_seconds === "string") - message.timeout_seconds = parseInt(object.timeout_seconds, 10); - else if (typeof object.timeout_seconds === "number") - message.timeout_seconds = object.timeout_seconds; - else if (typeof object.timeout_seconds === "object") - message.timeout_seconds = new $util.LongBits(object.timeout_seconds.low >>> 0, object.timeout_seconds.high >>> 0).toNumber(); - if (object.max_extra_rows_to_compare != null) - if ($util.Long) - (message.max_extra_rows_to_compare = $util.Long.fromValue(object.max_extra_rows_to_compare)).unsigned = false; - else if (typeof object.max_extra_rows_to_compare === "string") - message.max_extra_rows_to_compare = parseInt(object.max_extra_rows_to_compare, 10); - else if (typeof object.max_extra_rows_to_compare === "number") - message.max_extra_rows_to_compare = object.max_extra_rows_to_compare; - else if (typeof object.max_extra_rows_to_compare === "object") - message.max_extra_rows_to_compare = new $util.LongBits(object.max_extra_rows_to_compare.low >>> 0, object.max_extra_rows_to_compare.high >>> 0).toNumber(); - if (object.update_table_stats != null) - message.update_table_stats = Boolean(object.update_table_stats); - if (object.max_diff_seconds != null) - if ($util.Long) - (message.max_diff_seconds = $util.Long.fromValue(object.max_diff_seconds)).unsigned = false; - else if (typeof object.max_diff_seconds === "string") - message.max_diff_seconds = parseInt(object.max_diff_seconds, 10); - else if (typeof object.max_diff_seconds === "number") - message.max_diff_seconds = object.max_diff_seconds; - else if (typeof object.max_diff_seconds === "object") - message.max_diff_seconds = new $util.LongBits(object.max_diff_seconds.low >>> 0, object.max_diff_seconds.high >>> 0).toNumber(); - if (object.auto_start != null) - message.auto_start = Boolean(object.auto_start); + let message = new $root.tabletmanagerdata.ReadVReplicationWorkflowResponse(); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.cells != null) + message.cells = String(object.cells); + if (object.tablet_types) { + if (!Array.isArray(object.tablet_types)) + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.tablet_types: array expected"); + message.tablet_types = []; + for (let i = 0; i < object.tablet_types.length; ++i) + switch (object.tablet_types[i]) { + default: + if (typeof object.tablet_types[i] === "number") { + message.tablet_types[i] = object.tablet_types[i]; + break; + } + case "UNKNOWN": + case 0: + message.tablet_types[i] = 0; + break; + case "PRIMARY": + case 1: + message.tablet_types[i] = 1; + break; + case "MASTER": + case 1: + message.tablet_types[i] = 1; + break; + case "REPLICA": + case 2: + message.tablet_types[i] = 2; + break; + case "RDONLY": + case 3: + message.tablet_types[i] = 3; + break; + case "BATCH": + case 3: + message.tablet_types[i] = 3; + break; + case "SPARE": + case 4: + message.tablet_types[i] = 4; + break; + case "EXPERIMENTAL": + case 5: + message.tablet_types[i] = 5; + break; + case "BACKUP": + case 6: + message.tablet_types[i] = 6; + break; + case "RESTORE": + case 7: + message.tablet_types[i] = 7; + break; + case "DRAINED": + case 8: + message.tablet_types[i] = 8; + break; + } + } + switch (object.tablet_selection_preference) { + default: + if (typeof object.tablet_selection_preference === "number") { + message.tablet_selection_preference = object.tablet_selection_preference; + break; + } + break; + case "ANY": + case 0: + message.tablet_selection_preference = 0; + break; + case "INORDER": + case 1: + message.tablet_selection_preference = 1; + break; + case "UNKNOWN": + case 3: + message.tablet_selection_preference = 3; + break; + } + if (object.db_name != null) + message.db_name = String(object.db_name); + if (object.tags != null) + message.tags = String(object.tags); + switch (object.workflow_type) { + default: + if (typeof object.workflow_type === "number") { + message.workflow_type = object.workflow_type; + break; + } + break; + case "Materialize": + case 0: + message.workflow_type = 0; + break; + case "MoveTables": + case 1: + message.workflow_type = 1; + break; + case "CreateLookupIndex": + case 2: + message.workflow_type = 2; + break; + case "Migrate": + case 3: + message.workflow_type = 3; + break; + case "Reshard": + case 4: + message.workflow_type = 4; + break; + case "OnlineDDL": + case 5: + message.workflow_type = 5; + break; + } + switch (object.workflow_sub_type) { + default: + if (typeof object.workflow_sub_type === "number") { + message.workflow_sub_type = object.workflow_sub_type; + break; + } + break; + case "None": + case 0: + message.workflow_sub_type = 0; + break; + case "Partial": + case 1: + message.workflow_sub_type = 1; + break; + case "AtomicCopy": + case 2: + message.workflow_sub_type = 2; + break; + } + if (object.defer_secondary_keys != null) + message.defer_secondary_keys = Boolean(object.defer_secondary_keys); + if (object.streams) { + if (!Array.isArray(object.streams)) + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.streams: array expected"); + message.streams = []; + for (let i = 0; i < object.streams.length; ++i) { + if (typeof object.streams[i] !== "object") + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.streams: object expected"); + message.streams[i] = $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.fromObject(object.streams[i]); + } + } + if (object.options != null) + message.options = String(object.options); + if (object.config_overrides) { + if (typeof object.config_overrides !== "object") + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.config_overrides: object expected"); + message.config_overrides = {}; + for (let keys = Object.keys(object.config_overrides), i = 0; i < keys.length; ++i) + message.config_overrides[keys[i]] = String(object.config_overrides[keys[i]]); + } return message; }; /** - * Creates a plain object from a VDiffCoreOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadVReplicationWorkflowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.VDiffCoreOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.VDiffCoreOptions} message VDiffCoreOptions + * @param {tabletmanagerdata.ReadVReplicationWorkflowResponse} message ReadVReplicationWorkflowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffCoreOptions.toObject = function toObject(message, options) { + ReadVReplicationWorkflowResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.tablet_types = []; + object.streams = []; + } + if (options.objects || options.defaults) + object.config_overrides = {}; if (options.defaults) { - object.tables = ""; - object.auto_retry = false; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_rows = options.longs === String ? "0" : 0; - object.checksum = false; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.sample_pct = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sample_pct = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.timeout_seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timeout_seconds = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.max_extra_rows_to_compare = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_extra_rows_to_compare = options.longs === String ? "0" : 0; - object.update_table_stats = false; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.max_diff_seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_diff_seconds = options.longs === String ? "0" : 0; + object.workflow = ""; + object.cells = ""; + object.tablet_selection_preference = options.enums === String ? "ANY" : 0; + object.db_name = ""; + object.tags = ""; + object.workflow_type = options.enums === String ? "Materialize" : 0; + object.workflow_sub_type = options.enums === String ? "None" : 0; + object.defer_secondary_keys = false; + object.options = ""; } - if (message.tables != null && message.hasOwnProperty("tables")) - object.tables = message.tables; - if (message.auto_retry != null && message.hasOwnProperty("auto_retry")) - object.auto_retry = message.auto_retry; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (typeof message.max_rows === "number") - object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; - else - object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber() : message.max_rows; - if (message.checksum != null && message.hasOwnProperty("checksum")) - object.checksum = message.checksum; - if (message.sample_pct != null && message.hasOwnProperty("sample_pct")) - if (typeof message.sample_pct === "number") - object.sample_pct = options.longs === String ? String(message.sample_pct) : message.sample_pct; - else - object.sample_pct = options.longs === String ? $util.Long.prototype.toString.call(message.sample_pct) : options.longs === Number ? new $util.LongBits(message.sample_pct.low >>> 0, message.sample_pct.high >>> 0).toNumber() : message.sample_pct; - if (message.timeout_seconds != null && message.hasOwnProperty("timeout_seconds")) - if (typeof message.timeout_seconds === "number") - object.timeout_seconds = options.longs === String ? String(message.timeout_seconds) : message.timeout_seconds; - else - object.timeout_seconds = options.longs === String ? $util.Long.prototype.toString.call(message.timeout_seconds) : options.longs === Number ? new $util.LongBits(message.timeout_seconds.low >>> 0, message.timeout_seconds.high >>> 0).toNumber() : message.timeout_seconds; - if (message.max_extra_rows_to_compare != null && message.hasOwnProperty("max_extra_rows_to_compare")) - if (typeof message.max_extra_rows_to_compare === "number") - object.max_extra_rows_to_compare = options.longs === String ? String(message.max_extra_rows_to_compare) : message.max_extra_rows_to_compare; - else - object.max_extra_rows_to_compare = options.longs === String ? $util.Long.prototype.toString.call(message.max_extra_rows_to_compare) : options.longs === Number ? new $util.LongBits(message.max_extra_rows_to_compare.low >>> 0, message.max_extra_rows_to_compare.high >>> 0).toNumber() : message.max_extra_rows_to_compare; - if (message.update_table_stats != null && message.hasOwnProperty("update_table_stats")) - object.update_table_stats = message.update_table_stats; - if (message.max_diff_seconds != null && message.hasOwnProperty("max_diff_seconds")) - if (typeof message.max_diff_seconds === "number") - object.max_diff_seconds = options.longs === String ? String(message.max_diff_seconds) : message.max_diff_seconds; - else - object.max_diff_seconds = options.longs === String ? $util.Long.prototype.toString.call(message.max_diff_seconds) : options.longs === Number ? new $util.LongBits(message.max_diff_seconds.low >>> 0, message.max_diff_seconds.high >>> 0).toNumber() : message.max_diff_seconds; - if (message.auto_start != null && message.hasOwnProperty("auto_start")) { - object.auto_start = message.auto_start; - if (options.oneofs) - object._auto_start = "auto_start"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.cells != null && message.hasOwnProperty("cells")) + object.cells = message.cells; + if (message.tablet_types && message.tablet_types.length) { + object.tablet_types = []; + for (let j = 0; j < message.tablet_types.length; ++j) + object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; + } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; + if (message.db_name != null && message.hasOwnProperty("db_name")) + object.db_name = message.db_name; + if (message.tags != null && message.hasOwnProperty("tags")) + object.tags = message.tags; + if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) + object.workflow_type = options.enums === String ? $root.binlogdata.VReplicationWorkflowType[message.workflow_type] === undefined ? message.workflow_type : $root.binlogdata.VReplicationWorkflowType[message.workflow_type] : message.workflow_type; + if (message.workflow_sub_type != null && message.hasOwnProperty("workflow_sub_type")) + object.workflow_sub_type = options.enums === String ? $root.binlogdata.VReplicationWorkflowSubType[message.workflow_sub_type] === undefined ? message.workflow_sub_type : $root.binlogdata.VReplicationWorkflowSubType[message.workflow_sub_type] : message.workflow_sub_type; + if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) + object.defer_secondary_keys = message.defer_secondary_keys; + if (message.streams && message.streams.length) { + object.streams = []; + for (let j = 0; j < message.streams.length; ++j) + object.streams[j] = $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.toObject(message.streams[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = message.options; + let keys2; + if (message.config_overrides && (keys2 = Object.keys(message.config_overrides)).length) { + object.config_overrides = {}; + for (let j = 0; j < keys2.length; ++j) + object.config_overrides[keys2[j]] = message.config_overrides[keys2[j]]; } return object; }; /** - * Converts this VDiffCoreOptions to JSON. + * Converts this ReadVReplicationWorkflowResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.VDiffCoreOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @instance * @returns {Object.} JSON object */ - VDiffCoreOptions.prototype.toJSON = function toJSON() { + ReadVReplicationWorkflowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffCoreOptions + * Gets the default type url for ReadVReplicationWorkflowResponse * @function getTypeUrl - * @memberof tabletmanagerdata.VDiffCoreOptions + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffCoreOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadVReplicationWorkflowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.VDiffCoreOptions"; + return typeUrlPrefix + "/tabletmanagerdata.ReadVReplicationWorkflowResponse"; }; - return VDiffCoreOptions; - })(); + ReadVReplicationWorkflowResponse.Stream = (function() { - tabletmanagerdata.VDiffOptions = (function() { + /** + * Properties of a Stream. + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * @interface IStream + * @property {number|null} [id] Stream id + * @property {binlogdata.IBinlogSource|null} [bls] Stream bls + * @property {string|null} [pos] Stream pos + * @property {string|null} [stop_pos] Stream stop_pos + * @property {number|Long|null} [max_tps] Stream max_tps + * @property {number|Long|null} [max_replication_lag] Stream max_replication_lag + * @property {vttime.ITime|null} [time_updated] Stream time_updated + * @property {vttime.ITime|null} [transaction_timestamp] Stream transaction_timestamp + * @property {binlogdata.VReplicationWorkflowState|null} [state] Stream state + * @property {string|null} [message] Stream message + * @property {number|Long|null} [rows_copied] Stream rows_copied + * @property {vttime.ITime|null} [time_heartbeat] Stream time_heartbeat + * @property {vttime.ITime|null} [time_throttled] Stream time_throttled + * @property {string|null} [component_throttled] Stream component_throttled + */ - /** - * Properties of a VDiffOptions. - * @memberof tabletmanagerdata - * @interface IVDiffOptions - * @property {tabletmanagerdata.IVDiffPickerOptions|null} [picker_options] VDiffOptions picker_options - * @property {tabletmanagerdata.IVDiffCoreOptions|null} [core_options] VDiffOptions core_options - * @property {tabletmanagerdata.IVDiffReportOptions|null} [report_options] VDiffOptions report_options - */ + /** + * Constructs a new Stream. + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse + * @classdesc Represents a Stream. + * @implements IStream + * @constructor + * @param {tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream=} [properties] Properties to set + */ + function Stream(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new VDiffOptions. - * @memberof tabletmanagerdata - * @classdesc Represents a VDiffOptions. - * @implements IVDiffOptions - * @constructor - * @param {tabletmanagerdata.IVDiffOptions=} [properties] Properties to set - */ - function VDiffOptions(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Stream id. + * @member {number} id + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + */ + Stream.prototype.id = 0; - /** - * VDiffOptions picker_options. - * @member {tabletmanagerdata.IVDiffPickerOptions|null|undefined} picker_options - * @memberof tabletmanagerdata.VDiffOptions - * @instance - */ - VDiffOptions.prototype.picker_options = null; + /** + * Stream bls. + * @member {binlogdata.IBinlogSource|null|undefined} bls + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + */ + Stream.prototype.bls = null; - /** - * VDiffOptions core_options. - * @member {tabletmanagerdata.IVDiffCoreOptions|null|undefined} core_options - * @memberof tabletmanagerdata.VDiffOptions - * @instance - */ - VDiffOptions.prototype.core_options = null; + /** + * Stream pos. + * @member {string} pos + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + */ + Stream.prototype.pos = ""; - /** - * VDiffOptions report_options. - * @member {tabletmanagerdata.IVDiffReportOptions|null|undefined} report_options - * @memberof tabletmanagerdata.VDiffOptions - * @instance - */ - VDiffOptions.prototype.report_options = null; + /** + * Stream stop_pos. + * @member {string} stop_pos + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + */ + Stream.prototype.stop_pos = ""; - /** - * Creates a new VDiffOptions instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.VDiffOptions - * @static - * @param {tabletmanagerdata.IVDiffOptions=} [properties] Properties to set - * @returns {tabletmanagerdata.VDiffOptions} VDiffOptions instance - */ - VDiffOptions.create = function create(properties) { - return new VDiffOptions(properties); - }; + /** + * Stream max_tps. + * @member {number|Long} max_tps + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + */ + Stream.prototype.max_tps = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Encodes the specified VDiffOptions message. Does not implicitly {@link tabletmanagerdata.VDiffOptions.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.VDiffOptions - * @static - * @param {tabletmanagerdata.IVDiffOptions} message VDiffOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VDiffOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.picker_options != null && Object.hasOwnProperty.call(message, "picker_options")) - $root.tabletmanagerdata.VDiffPickerOptions.encode(message.picker_options, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.core_options != null && Object.hasOwnProperty.call(message, "core_options")) - $root.tabletmanagerdata.VDiffCoreOptions.encode(message.core_options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.report_options != null && Object.hasOwnProperty.call(message, "report_options")) - $root.tabletmanagerdata.VDiffReportOptions.encode(message.report_options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Stream max_replication_lag. + * @member {number|Long} max_replication_lag + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + */ + Stream.prototype.max_replication_lag = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Encodes the specified VDiffOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.VDiffOptions - * @static - * @param {tabletmanagerdata.IVDiffOptions} message VDiffOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VDiffOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Stream time_updated. + * @member {vttime.ITime|null|undefined} time_updated + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + */ + Stream.prototype.time_updated = null; - /** - * Decodes a VDiffOptions message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.VDiffOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.VDiffOptions} VDiffOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VDiffOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffOptions(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.picker_options = $root.tabletmanagerdata.VDiffPickerOptions.decode(reader, reader.uint32()); + /** + * Stream transaction_timestamp. + * @member {vttime.ITime|null|undefined} transaction_timestamp + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + */ + Stream.prototype.transaction_timestamp = null; + + /** + * Stream state. + * @member {binlogdata.VReplicationWorkflowState} state + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + */ + Stream.prototype.state = 0; + + /** + * Stream message. + * @member {string} message + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + */ + Stream.prototype.message = ""; + + /** + * Stream rows_copied. + * @member {number|Long} rows_copied + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + */ + Stream.prototype.rows_copied = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Stream time_heartbeat. + * @member {vttime.ITime|null|undefined} time_heartbeat + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + */ + Stream.prototype.time_heartbeat = null; + + /** + * Stream time_throttled. + * @member {vttime.ITime|null|undefined} time_throttled + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + */ + Stream.prototype.time_throttled = null; + + /** + * Stream component_throttled. + * @member {string} component_throttled + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + */ + Stream.prototype.component_throttled = ""; + + /** + * Creates a new Stream instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @static + * @param {tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream=} [properties] Properties to set + * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream} Stream instance + */ + Stream.create = function create(properties) { + return new Stream(properties); + }; + + /** + * Encodes the specified Stream message. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @static + * @param {tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream} message Stream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Stream.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); + if (message.bls != null && Object.hasOwnProperty.call(message, "bls")) + $root.binlogdata.BinlogSource.encode(message.bls, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pos != null && Object.hasOwnProperty.call(message, "pos")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pos); + if (message.stop_pos != null && Object.hasOwnProperty.call(message, "stop_pos")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.stop_pos); + if (message.max_tps != null && Object.hasOwnProperty.call(message, "max_tps")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.max_tps); + if (message.max_replication_lag != null && Object.hasOwnProperty.call(message, "max_replication_lag")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.max_replication_lag); + if (message.time_updated != null && Object.hasOwnProperty.call(message, "time_updated")) + $root.vttime.Time.encode(message.time_updated, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.transaction_timestamp != null && Object.hasOwnProperty.call(message, "transaction_timestamp")) + $root.vttime.Time.encode(message.transaction_timestamp, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.message); + if (message.rows_copied != null && Object.hasOwnProperty.call(message, "rows_copied")) + writer.uint32(/* id 11, wireType 0 =*/88).int64(message.rows_copied); + if (message.time_heartbeat != null && Object.hasOwnProperty.call(message, "time_heartbeat")) + $root.vttime.Time.encode(message.time_heartbeat, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.time_throttled != null && Object.hasOwnProperty.call(message, "time_throttled")) + $root.vttime.Time.encode(message.time_throttled, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.component_throttled != null && Object.hasOwnProperty.call(message, "component_throttled")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.component_throttled); + return writer; + }; + + /** + * Encodes the specified Stream message, length delimited. Does not implicitly {@link tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @static + * @param {tabletmanagerdata.ReadVReplicationWorkflowResponse.IStream} message Stream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Stream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Stream message from the specified reader or buffer. + * @function decode + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream} Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Stream.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.int32(); + break; + } + case 2: { + message.bls = $root.binlogdata.BinlogSource.decode(reader, reader.uint32()); + break; + } + case 3: { + message.pos = reader.string(); + break; + } + case 4: { + message.stop_pos = reader.string(); + break; + } + case 5: { + message.max_tps = reader.int64(); + break; + } + case 6: { + message.max_replication_lag = reader.int64(); + break; + } + case 7: { + message.time_updated = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 8: { + message.transaction_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 9: { + message.state = reader.int32(); + break; + } + case 10: { + message.message = reader.string(); + break; + } + case 11: { + message.rows_copied = reader.int64(); + break; + } + case 12: { + message.time_heartbeat = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 13: { + message.time_throttled = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 14: { + message.component_throttled = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - case 2: { - message.core_options = $root.tabletmanagerdata.VDiffCoreOptions.decode(reader, reader.uint32()); + } + return message; + }; + + /** + * Decodes a Stream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream} Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Stream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Stream message. + * @function verify + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Stream.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isInteger(message.id)) + return "id: integer expected"; + if (message.bls != null && message.hasOwnProperty("bls")) { + let error = $root.binlogdata.BinlogSource.verify(message.bls); + if (error) + return "bls." + error; + } + if (message.pos != null && message.hasOwnProperty("pos")) + if (!$util.isString(message.pos)) + return "pos: string expected"; + if (message.stop_pos != null && message.hasOwnProperty("stop_pos")) + if (!$util.isString(message.stop_pos)) + return "stop_pos: string expected"; + if (message.max_tps != null && message.hasOwnProperty("max_tps")) + if (!$util.isInteger(message.max_tps) && !(message.max_tps && $util.isInteger(message.max_tps.low) && $util.isInteger(message.max_tps.high))) + return "max_tps: integer|Long expected"; + if (message.max_replication_lag != null && message.hasOwnProperty("max_replication_lag")) + if (!$util.isInteger(message.max_replication_lag) && !(message.max_replication_lag && $util.isInteger(message.max_replication_lag.low) && $util.isInteger(message.max_replication_lag.high))) + return "max_replication_lag: integer|Long expected"; + if (message.time_updated != null && message.hasOwnProperty("time_updated")) { + let error = $root.vttime.Time.verify(message.time_updated); + if (error) + return "time_updated." + error; + } + if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) { + let error = $root.vttime.Time.verify(message.transaction_timestamp); + if (error) + return "transaction_timestamp." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: break; } - case 3: { - message.report_options = $root.tabletmanagerdata.VDiffReportOptions.decode(reader, reader.uint32()); + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.rows_copied != null && message.hasOwnProperty("rows_copied")) + if (!$util.isInteger(message.rows_copied) && !(message.rows_copied && $util.isInteger(message.rows_copied.low) && $util.isInteger(message.rows_copied.high))) + return "rows_copied: integer|Long expected"; + if (message.time_heartbeat != null && message.hasOwnProperty("time_heartbeat")) { + let error = $root.vttime.Time.verify(message.time_heartbeat); + if (error) + return "time_heartbeat." + error; + } + if (message.time_throttled != null && message.hasOwnProperty("time_throttled")) { + let error = $root.vttime.Time.verify(message.time_throttled); + if (error) + return "time_throttled." + error; + } + if (message.component_throttled != null && message.hasOwnProperty("component_throttled")) + if (!$util.isString(message.component_throttled)) + return "component_throttled: string expected"; + return null; + }; + + /** + * Creates a Stream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @static + * @param {Object.} object Plain object + * @returns {tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream} Stream + */ + Stream.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream) + return object; + let message = new $root.tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream(); + if (object.id != null) + message.id = object.id | 0; + if (object.bls != null) { + if (typeof object.bls !== "object") + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.bls: object expected"); + message.bls = $root.binlogdata.BinlogSource.fromObject(object.bls); + } + if (object.pos != null) + message.pos = String(object.pos); + if (object.stop_pos != null) + message.stop_pos = String(object.stop_pos); + if (object.max_tps != null) + if ($util.Long) + (message.max_tps = $util.Long.fromValue(object.max_tps)).unsigned = false; + else if (typeof object.max_tps === "string") + message.max_tps = parseInt(object.max_tps, 10); + else if (typeof object.max_tps === "number") + message.max_tps = object.max_tps; + else if (typeof object.max_tps === "object") + message.max_tps = new $util.LongBits(object.max_tps.low >>> 0, object.max_tps.high >>> 0).toNumber(); + if (object.max_replication_lag != null) + if ($util.Long) + (message.max_replication_lag = $util.Long.fromValue(object.max_replication_lag)).unsigned = false; + else if (typeof object.max_replication_lag === "string") + message.max_replication_lag = parseInt(object.max_replication_lag, 10); + else if (typeof object.max_replication_lag === "number") + message.max_replication_lag = object.max_replication_lag; + else if (typeof object.max_replication_lag === "object") + message.max_replication_lag = new $util.LongBits(object.max_replication_lag.low >>> 0, object.max_replication_lag.high >>> 0).toNumber(); + if (object.time_updated != null) { + if (typeof object.time_updated !== "object") + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.time_updated: object expected"); + message.time_updated = $root.vttime.Time.fromObject(object.time_updated); + } + if (object.transaction_timestamp != null) { + if (typeof object.transaction_timestamp !== "object") + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.transaction_timestamp: object expected"); + message.transaction_timestamp = $root.vttime.Time.fromObject(object.transaction_timestamp); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; break; } + break; + case "Unknown": + case 0: + message.state = 0; + break; + case "Init": + case 1: + message.state = 1; + break; + case "Stopped": + case 2: + message.state = 2; + break; + case "Copying": + case 3: + message.state = 3; + break; + case "Running": + case 4: + message.state = 4; + break; + case "Error": + case 5: + message.state = 5; + break; + case "Lagging": + case 6: + message.state = 6; + break; + } + if (object.message != null) + message.message = String(object.message); + if (object.rows_copied != null) + if ($util.Long) + (message.rows_copied = $util.Long.fromValue(object.rows_copied)).unsigned = false; + else if (typeof object.rows_copied === "string") + message.rows_copied = parseInt(object.rows_copied, 10); + else if (typeof object.rows_copied === "number") + message.rows_copied = object.rows_copied; + else if (typeof object.rows_copied === "object") + message.rows_copied = new $util.LongBits(object.rows_copied.low >>> 0, object.rows_copied.high >>> 0).toNumber(); + if (object.time_heartbeat != null) { + if (typeof object.time_heartbeat !== "object") + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.time_heartbeat: object expected"); + message.time_heartbeat = $root.vttime.Time.fromObject(object.time_heartbeat); + } + if (object.time_throttled != null) { + if (typeof object.time_throttled !== "object") + throw TypeError(".tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream.time_throttled: object expected"); + message.time_throttled = $root.vttime.Time.fromObject(object.time_throttled); + } + if (object.component_throttled != null) + message.component_throttled = String(object.component_throttled); + return message; + }; + + /** + * Creates a plain object from a Stream message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @static + * @param {tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream} message Stream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Stream.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.id = 0; + object.bls = null; + object.pos = ""; + object.stop_pos = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.max_tps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_tps = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.max_replication_lag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_replication_lag = options.longs === String ? "0" : 0; + object.time_updated = null; + object.transaction_timestamp = null; + object.state = options.enums === String ? "Unknown" : 0; + object.message = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.rows_copied = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.rows_copied = options.longs === String ? "0" : 0; + object.time_heartbeat = null; + object.time_throttled = null; + object.component_throttled = ""; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.bls != null && message.hasOwnProperty("bls")) + object.bls = $root.binlogdata.BinlogSource.toObject(message.bls, options); + if (message.pos != null && message.hasOwnProperty("pos")) + object.pos = message.pos; + if (message.stop_pos != null && message.hasOwnProperty("stop_pos")) + object.stop_pos = message.stop_pos; + if (message.max_tps != null && message.hasOwnProperty("max_tps")) + if (typeof message.max_tps === "number") + object.max_tps = options.longs === String ? String(message.max_tps) : message.max_tps; + else + object.max_tps = options.longs === String ? $util.Long.prototype.toString.call(message.max_tps) : options.longs === Number ? new $util.LongBits(message.max_tps.low >>> 0, message.max_tps.high >>> 0).toNumber() : message.max_tps; + if (message.max_replication_lag != null && message.hasOwnProperty("max_replication_lag")) + if (typeof message.max_replication_lag === "number") + object.max_replication_lag = options.longs === String ? String(message.max_replication_lag) : message.max_replication_lag; + else + object.max_replication_lag = options.longs === String ? $util.Long.prototype.toString.call(message.max_replication_lag) : options.longs === Number ? new $util.LongBits(message.max_replication_lag.low >>> 0, message.max_replication_lag.high >>> 0).toNumber() : message.max_replication_lag; + if (message.time_updated != null && message.hasOwnProperty("time_updated")) + object.time_updated = $root.vttime.Time.toObject(message.time_updated, options); + if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) + object.transaction_timestamp = $root.vttime.Time.toObject(message.transaction_timestamp, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.binlogdata.VReplicationWorkflowState[message.state] === undefined ? message.state : $root.binlogdata.VReplicationWorkflowState[message.state] : message.state; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.rows_copied != null && message.hasOwnProperty("rows_copied")) + if (typeof message.rows_copied === "number") + object.rows_copied = options.longs === String ? String(message.rows_copied) : message.rows_copied; + else + object.rows_copied = options.longs === String ? $util.Long.prototype.toString.call(message.rows_copied) : options.longs === Number ? new $util.LongBits(message.rows_copied.low >>> 0, message.rows_copied.high >>> 0).toNumber() : message.rows_copied; + if (message.time_heartbeat != null && message.hasOwnProperty("time_heartbeat")) + object.time_heartbeat = $root.vttime.Time.toObject(message.time_heartbeat, options); + if (message.time_throttled != null && message.hasOwnProperty("time_throttled")) + object.time_throttled = $root.vttime.Time.toObject(message.time_throttled, options); + if (message.component_throttled != null && message.hasOwnProperty("component_throttled")) + object.component_throttled = message.component_throttled; + return object; + }; + + /** + * Converts this Stream to JSON. + * @function toJSON + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @instance + * @returns {Object.} JSON object + */ + Stream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Stream + * @function getTypeUrl + * @memberof tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Stream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.ReadVReplicationWorkflowResponse.Stream"; + }; + + return Stream; + })(); + + return ReadVReplicationWorkflowResponse; + })(); + + tabletmanagerdata.ValidateVReplicationPermissionsRequest = (function() { + + /** + * Properties of a ValidateVReplicationPermissionsRequest. + * @memberof tabletmanagerdata + * @interface IValidateVReplicationPermissionsRequest + */ + + /** + * Constructs a new ValidateVReplicationPermissionsRequest. + * @memberof tabletmanagerdata + * @classdesc Represents a ValidateVReplicationPermissionsRequest. + * @implements IValidateVReplicationPermissionsRequest + * @constructor + * @param {tabletmanagerdata.IValidateVReplicationPermissionsRequest=} [properties] Properties to set + */ + function ValidateVReplicationPermissionsRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ValidateVReplicationPermissionsRequest instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest + * @static + * @param {tabletmanagerdata.IValidateVReplicationPermissionsRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ValidateVReplicationPermissionsRequest} ValidateVReplicationPermissionsRequest instance + */ + ValidateVReplicationPermissionsRequest.create = function create(properties) { + return new ValidateVReplicationPermissionsRequest(properties); + }; + + /** + * Encodes the specified ValidateVReplicationPermissionsRequest message. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsRequest.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest + * @static + * @param {tabletmanagerdata.IValidateVReplicationPermissionsRequest} message ValidateVReplicationPermissionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ValidateVReplicationPermissionsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified ValidateVReplicationPermissionsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest + * @static + * @param {tabletmanagerdata.IValidateVReplicationPermissionsRequest} message ValidateVReplicationPermissionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ValidateVReplicationPermissionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ValidateVReplicationPermissionsRequest message from the specified reader or buffer. + * @function decode + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tabletmanagerdata.ValidateVReplicationPermissionsRequest} ValidateVReplicationPermissionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ValidateVReplicationPermissionsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ValidateVReplicationPermissionsRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { default: reader.skipType(tag & 7); break; @@ -79273,155 +79549,110 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a VDiffOptions message from the specified reader or buffer, length delimited. + * Decodes a ValidateVReplicationPermissionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.VDiffOptions + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.VDiffOptions} VDiffOptions + * @returns {tabletmanagerdata.ValidateVReplicationPermissionsRequest} ValidateVReplicationPermissionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffOptions.decodeDelimited = function decodeDelimited(reader) { + ValidateVReplicationPermissionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffOptions message. + * Verifies a ValidateVReplicationPermissionsRequest message. * @function verify - * @memberof tabletmanagerdata.VDiffOptions + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffOptions.verify = function verify(message) { + ValidateVReplicationPermissionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.picker_options != null && message.hasOwnProperty("picker_options")) { - let error = $root.tabletmanagerdata.VDiffPickerOptions.verify(message.picker_options); - if (error) - return "picker_options." + error; - } - if (message.core_options != null && message.hasOwnProperty("core_options")) { - let error = $root.tabletmanagerdata.VDiffCoreOptions.verify(message.core_options); - if (error) - return "core_options." + error; - } - if (message.report_options != null && message.hasOwnProperty("report_options")) { - let error = $root.tabletmanagerdata.VDiffReportOptions.verify(message.report_options); - if (error) - return "report_options." + error; - } return null; }; /** - * Creates a VDiffOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVReplicationPermissionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.VDiffOptions + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.VDiffOptions} VDiffOptions + * @returns {tabletmanagerdata.ValidateVReplicationPermissionsRequest} ValidateVReplicationPermissionsRequest */ - VDiffOptions.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.VDiffOptions) + ValidateVReplicationPermissionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ValidateVReplicationPermissionsRequest) return object; - let message = new $root.tabletmanagerdata.VDiffOptions(); - if (object.picker_options != null) { - if (typeof object.picker_options !== "object") - throw TypeError(".tabletmanagerdata.VDiffOptions.picker_options: object expected"); - message.picker_options = $root.tabletmanagerdata.VDiffPickerOptions.fromObject(object.picker_options); - } - if (object.core_options != null) { - if (typeof object.core_options !== "object") - throw TypeError(".tabletmanagerdata.VDiffOptions.core_options: object expected"); - message.core_options = $root.tabletmanagerdata.VDiffCoreOptions.fromObject(object.core_options); - } - if (object.report_options != null) { - if (typeof object.report_options !== "object") - throw TypeError(".tabletmanagerdata.VDiffOptions.report_options: object expected"); - message.report_options = $root.tabletmanagerdata.VDiffReportOptions.fromObject(object.report_options); - } - return message; + return new $root.tabletmanagerdata.ValidateVReplicationPermissionsRequest(); }; /** - * Creates a plain object from a VDiffOptions message. Also converts values to other types if specified. + * Creates a plain object from a ValidateVReplicationPermissionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.VDiffOptions + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest * @static - * @param {tabletmanagerdata.VDiffOptions} message VDiffOptions + * @param {tabletmanagerdata.ValidateVReplicationPermissionsRequest} message ValidateVReplicationPermissionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.picker_options = null; - object.core_options = null; - object.report_options = null; - } - if (message.picker_options != null && message.hasOwnProperty("picker_options")) - object.picker_options = $root.tabletmanagerdata.VDiffPickerOptions.toObject(message.picker_options, options); - if (message.core_options != null && message.hasOwnProperty("core_options")) - object.core_options = $root.tabletmanagerdata.VDiffCoreOptions.toObject(message.core_options, options); - if (message.report_options != null && message.hasOwnProperty("report_options")) - object.report_options = $root.tabletmanagerdata.VDiffReportOptions.toObject(message.report_options, options); - return object; + ValidateVReplicationPermissionsRequest.toObject = function toObject() { + return {}; }; /** - * Converts this VDiffOptions to JSON. + * Converts this ValidateVReplicationPermissionsRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.VDiffOptions + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest * @instance * @returns {Object.} JSON object */ - VDiffOptions.prototype.toJSON = function toJSON() { + ValidateVReplicationPermissionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffOptions + * Gets the default type url for ValidateVReplicationPermissionsRequest * @function getTypeUrl - * @memberof tabletmanagerdata.VDiffOptions + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateVReplicationPermissionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.VDiffOptions"; + return typeUrlPrefix + "/tabletmanagerdata.ValidateVReplicationPermissionsRequest"; }; - return VDiffOptions; + return ValidateVReplicationPermissionsRequest; })(); - tabletmanagerdata.VDiffTableLastPK = (function() { + tabletmanagerdata.ValidateVReplicationPermissionsResponse = (function() { /** - * Properties of a VDiffTableLastPK. + * Properties of a ValidateVReplicationPermissionsResponse. * @memberof tabletmanagerdata - * @interface IVDiffTableLastPK - * @property {query.IQueryResult|null} [target] VDiffTableLastPK target - * @property {query.IQueryResult|null} [source] VDiffTableLastPK source + * @interface IValidateVReplicationPermissionsResponse + * @property {string|null} [user] ValidateVReplicationPermissionsResponse user + * @property {boolean|null} [ok] ValidateVReplicationPermissionsResponse ok */ /** - * Constructs a new VDiffTableLastPK. + * Constructs a new ValidateVReplicationPermissionsResponse. * @memberof tabletmanagerdata - * @classdesc Represents a VDiffTableLastPK. - * @implements IVDiffTableLastPK + * @classdesc Represents a ValidateVReplicationPermissionsResponse. + * @implements IValidateVReplicationPermissionsResponse * @constructor - * @param {tabletmanagerdata.IVDiffTableLastPK=} [properties] Properties to set + * @param {tabletmanagerdata.IValidateVReplicationPermissionsResponse=} [properties] Properties to set */ - function VDiffTableLastPK(properties) { + function ValidateVReplicationPermissionsResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79429,98 +79660,89 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * VDiffTableLastPK target. - * @member {query.IQueryResult|null|undefined} target - * @memberof tabletmanagerdata.VDiffTableLastPK + * ValidateVReplicationPermissionsResponse user. + * @member {string} user + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse * @instance */ - VDiffTableLastPK.prototype.target = null; + ValidateVReplicationPermissionsResponse.prototype.user = ""; /** - * VDiffTableLastPK source. - * @member {query.IQueryResult|null|undefined} source - * @memberof tabletmanagerdata.VDiffTableLastPK + * ValidateVReplicationPermissionsResponse ok. + * @member {boolean} ok + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse * @instance */ - VDiffTableLastPK.prototype.source = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(VDiffTableLastPK.prototype, "_source", { - get: $util.oneOfGetter($oneOfFields = ["source"]), - set: $util.oneOfSetter($oneOfFields) - }); + ValidateVReplicationPermissionsResponse.prototype.ok = false; /** - * Creates a new VDiffTableLastPK instance using the specified properties. + * Creates a new ValidateVReplicationPermissionsResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.VDiffTableLastPK + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse * @static - * @param {tabletmanagerdata.IVDiffTableLastPK=} [properties] Properties to set - * @returns {tabletmanagerdata.VDiffTableLastPK} VDiffTableLastPK instance + * @param {tabletmanagerdata.IValidateVReplicationPermissionsResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ValidateVReplicationPermissionsResponse} ValidateVReplicationPermissionsResponse instance */ - VDiffTableLastPK.create = function create(properties) { - return new VDiffTableLastPK(properties); + ValidateVReplicationPermissionsResponse.create = function create(properties) { + return new ValidateVReplicationPermissionsResponse(properties); }; /** - * Encodes the specified VDiffTableLastPK message. Does not implicitly {@link tabletmanagerdata.VDiffTableLastPK.verify|verify} messages. + * Encodes the specified ValidateVReplicationPermissionsResponse message. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.VDiffTableLastPK + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse * @static - * @param {tabletmanagerdata.IVDiffTableLastPK} message VDiffTableLastPK message or plain object to encode + * @param {tabletmanagerdata.IValidateVReplicationPermissionsResponse} message ValidateVReplicationPermissionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffTableLastPK.encode = function encode(message, writer) { + ValidateVReplicationPermissionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.QueryResult.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.source != null && Object.hasOwnProperty.call(message, "source")) - $root.query.QueryResult.encode(message.source, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.user != null && Object.hasOwnProperty.call(message, "user")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.user); + if (message.ok != null && Object.hasOwnProperty.call(message, "ok")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.ok); return writer; }; /** - * Encodes the specified VDiffTableLastPK message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffTableLastPK.verify|verify} messages. + * Encodes the specified ValidateVReplicationPermissionsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ValidateVReplicationPermissionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.VDiffTableLastPK + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse * @static - * @param {tabletmanagerdata.IVDiffTableLastPK} message VDiffTableLastPK message or plain object to encode + * @param {tabletmanagerdata.IValidateVReplicationPermissionsResponse} message ValidateVReplicationPermissionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffTableLastPK.encodeDelimited = function encodeDelimited(message, writer) { + ValidateVReplicationPermissionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffTableLastPK message from the specified reader or buffer. + * Decodes a ValidateVReplicationPermissionsResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.VDiffTableLastPK + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.VDiffTableLastPK} VDiffTableLastPK + * @returns {tabletmanagerdata.ValidateVReplicationPermissionsResponse} ValidateVReplicationPermissionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffTableLastPK.decode = function decode(reader, length) { + ValidateVReplicationPermissionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffTableLastPK(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ValidateVReplicationPermissionsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.target = $root.query.QueryResult.decode(reader, reader.uint32()); + message.user = reader.string(); break; } case 2: { - message.source = $root.query.QueryResult.decode(reader, reader.uint32()); + message.ok = reader.bool(); break; } default: @@ -79532,158 +79754,136 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a VDiffTableLastPK message from the specified reader or buffer, length delimited. + * Decodes a ValidateVReplicationPermissionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.VDiffTableLastPK + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.VDiffTableLastPK} VDiffTableLastPK + * @returns {tabletmanagerdata.ValidateVReplicationPermissionsResponse} ValidateVReplicationPermissionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffTableLastPK.decodeDelimited = function decodeDelimited(reader) { + ValidateVReplicationPermissionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffTableLastPK message. + * Verifies a ValidateVReplicationPermissionsResponse message. * @function verify - * @memberof tabletmanagerdata.VDiffTableLastPK + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffTableLastPK.verify = function verify(message) { + ValidateVReplicationPermissionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - let properties = {}; - if (message.target != null && message.hasOwnProperty("target")) { - let error = $root.query.QueryResult.verify(message.target); - if (error) - return "target." + error; - } - if (message.source != null && message.hasOwnProperty("source")) { - properties._source = 1; - { - let error = $root.query.QueryResult.verify(message.source); - if (error) - return "source." + error; - } - } + if (message.user != null && message.hasOwnProperty("user")) + if (!$util.isString(message.user)) + return "user: string expected"; + if (message.ok != null && message.hasOwnProperty("ok")) + if (typeof message.ok !== "boolean") + return "ok: boolean expected"; return null; }; /** - * Creates a VDiffTableLastPK message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVReplicationPermissionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.VDiffTableLastPK + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.VDiffTableLastPK} VDiffTableLastPK + * @returns {tabletmanagerdata.ValidateVReplicationPermissionsResponse} ValidateVReplicationPermissionsResponse */ - VDiffTableLastPK.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.VDiffTableLastPK) + ValidateVReplicationPermissionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ValidateVReplicationPermissionsResponse) return object; - let message = new $root.tabletmanagerdata.VDiffTableLastPK(); - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".tabletmanagerdata.VDiffTableLastPK.target: object expected"); - message.target = $root.query.QueryResult.fromObject(object.target); - } - if (object.source != null) { - if (typeof object.source !== "object") - throw TypeError(".tabletmanagerdata.VDiffTableLastPK.source: object expected"); - message.source = $root.query.QueryResult.fromObject(object.source); - } + let message = new $root.tabletmanagerdata.ValidateVReplicationPermissionsResponse(); + if (object.user != null) + message.user = String(object.user); + if (object.ok != null) + message.ok = Boolean(object.ok); return message; }; /** - * Creates a plain object from a VDiffTableLastPK message. Also converts values to other types if specified. + * Creates a plain object from a ValidateVReplicationPermissionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.VDiffTableLastPK + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse * @static - * @param {tabletmanagerdata.VDiffTableLastPK} message VDiffTableLastPK + * @param {tabletmanagerdata.ValidateVReplicationPermissionsResponse} message ValidateVReplicationPermissionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffTableLastPK.toObject = function toObject(message, options) { + ValidateVReplicationPermissionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.target = null; - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.QueryResult.toObject(message.target, options); - if (message.source != null && message.hasOwnProperty("source")) { - object.source = $root.query.QueryResult.toObject(message.source, options); - if (options.oneofs) - object._source = "source"; + if (options.defaults) { + object.user = ""; + object.ok = false; } + if (message.user != null && message.hasOwnProperty("user")) + object.user = message.user; + if (message.ok != null && message.hasOwnProperty("ok")) + object.ok = message.ok; return object; }; /** - * Converts this VDiffTableLastPK to JSON. + * Converts this ValidateVReplicationPermissionsResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.VDiffTableLastPK + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse * @instance * @returns {Object.} JSON object */ - VDiffTableLastPK.prototype.toJSON = function toJSON() { + ValidateVReplicationPermissionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffTableLastPK + * Gets the default type url for ValidateVReplicationPermissionsResponse * @function getTypeUrl - * @memberof tabletmanagerdata.VDiffTableLastPK + * @memberof tabletmanagerdata.ValidateVReplicationPermissionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffTableLastPK.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateVReplicationPermissionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.VDiffTableLastPK"; + return typeUrlPrefix + "/tabletmanagerdata.ValidateVReplicationPermissionsResponse"; }; - return VDiffTableLastPK; + return ValidateVReplicationPermissionsResponse; })(); - tabletmanagerdata.UpdateVReplicationWorkflowRequest = (function() { + tabletmanagerdata.VDiffRequest = (function() { /** - * Properties of an UpdateVReplicationWorkflowRequest. + * Properties of a VDiffRequest. * @memberof tabletmanagerdata - * @interface IUpdateVReplicationWorkflowRequest - * @property {string|null} [workflow] UpdateVReplicationWorkflowRequest workflow - * @property {Array.|null} [cells] UpdateVReplicationWorkflowRequest cells - * @property {Array.|null} [tablet_types] UpdateVReplicationWorkflowRequest tablet_types - * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] UpdateVReplicationWorkflowRequest tablet_selection_preference - * @property {binlogdata.OnDDLAction|null} [on_ddl] UpdateVReplicationWorkflowRequest on_ddl - * @property {binlogdata.VReplicationWorkflowState|null} [state] UpdateVReplicationWorkflowRequest state - * @property {Array.|null} [shards] UpdateVReplicationWorkflowRequest shards - * @property {Object.|null} [config_overrides] UpdateVReplicationWorkflowRequest config_overrides - * @property {string|null} [message] UpdateVReplicationWorkflowRequest message + * @interface IVDiffRequest + * @property {string|null} [keyspace] VDiffRequest keyspace + * @property {string|null} [workflow] VDiffRequest workflow + * @property {string|null} [action] VDiffRequest action + * @property {string|null} [action_arg] VDiffRequest action_arg + * @property {string|null} [vdiff_uuid] VDiffRequest vdiff_uuid + * @property {tabletmanagerdata.IVDiffOptions|null} [options] VDiffRequest options */ /** - * Constructs a new UpdateVReplicationWorkflowRequest. + * Constructs a new VDiffRequest. * @memberof tabletmanagerdata - * @classdesc Represents an UpdateVReplicationWorkflowRequest. - * @implements IUpdateVReplicationWorkflowRequest + * @classdesc Represents a VDiffRequest. + * @implements IVDiffRequest * @constructor - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IVDiffRequest=} [properties] Properties to set */ - function UpdateVReplicationWorkflowRequest(properties) { - this.cells = []; - this.tablet_types = []; - this.shards = []; - this.config_overrides = {}; + function VDiffRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79691,251 +79891,145 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * UpdateVReplicationWorkflowRequest workflow. - * @member {string} workflow - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * VDiffRequest keyspace. + * @member {string} keyspace + * @memberof tabletmanagerdata.VDiffRequest * @instance */ - UpdateVReplicationWorkflowRequest.prototype.workflow = ""; + VDiffRequest.prototype.keyspace = ""; /** - * UpdateVReplicationWorkflowRequest cells. - * @member {Array.} cells - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * VDiffRequest workflow. + * @member {string} workflow + * @memberof tabletmanagerdata.VDiffRequest * @instance */ - UpdateVReplicationWorkflowRequest.prototype.cells = $util.emptyArray; + VDiffRequest.prototype.workflow = ""; /** - * UpdateVReplicationWorkflowRequest tablet_types. - * @member {Array.} tablet_types - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * VDiffRequest action. + * @member {string} action + * @memberof tabletmanagerdata.VDiffRequest * @instance */ - UpdateVReplicationWorkflowRequest.prototype.tablet_types = $util.emptyArray; + VDiffRequest.prototype.action = ""; /** - * UpdateVReplicationWorkflowRequest tablet_selection_preference. - * @member {tabletmanagerdata.TabletSelectionPreference|null|undefined} tablet_selection_preference - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * VDiffRequest action_arg. + * @member {string} action_arg + * @memberof tabletmanagerdata.VDiffRequest * @instance */ - UpdateVReplicationWorkflowRequest.prototype.tablet_selection_preference = null; + VDiffRequest.prototype.action_arg = ""; /** - * UpdateVReplicationWorkflowRequest on_ddl. - * @member {binlogdata.OnDDLAction|null|undefined} on_ddl - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * VDiffRequest vdiff_uuid. + * @member {string} vdiff_uuid + * @memberof tabletmanagerdata.VDiffRequest * @instance */ - UpdateVReplicationWorkflowRequest.prototype.on_ddl = null; + VDiffRequest.prototype.vdiff_uuid = ""; /** - * UpdateVReplicationWorkflowRequest state. - * @member {binlogdata.VReplicationWorkflowState|null|undefined} state - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * VDiffRequest options. + * @member {tabletmanagerdata.IVDiffOptions|null|undefined} options + * @memberof tabletmanagerdata.VDiffRequest * @instance */ - UpdateVReplicationWorkflowRequest.prototype.state = null; + VDiffRequest.prototype.options = null; /** - * UpdateVReplicationWorkflowRequest shards. - * @member {Array.} shards - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @instance + * Creates a new VDiffRequest instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.VDiffRequest + * @static + * @param {tabletmanagerdata.IVDiffRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.VDiffRequest} VDiffRequest instance */ - UpdateVReplicationWorkflowRequest.prototype.shards = $util.emptyArray; + VDiffRequest.create = function create(properties) { + return new VDiffRequest(properties); + }; /** - * UpdateVReplicationWorkflowRequest config_overrides. - * @member {Object.} config_overrides - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @instance + * Encodes the specified VDiffRequest message. Does not implicitly {@link tabletmanagerdata.VDiffRequest.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.VDiffRequest + * @static + * @param {tabletmanagerdata.IVDiffRequest} message VDiffRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - UpdateVReplicationWorkflowRequest.prototype.config_overrides = $util.emptyObject; + VDiffRequest.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.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.workflow); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.action); + if (message.action_arg != null && Object.hasOwnProperty.call(message, "action_arg")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.action_arg); + if (message.vdiff_uuid != null && Object.hasOwnProperty.call(message, "vdiff_uuid")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.vdiff_uuid); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.tabletmanagerdata.VDiffOptions.encode(message.options, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; /** - * UpdateVReplicationWorkflowRequest message. - * @member {string|null|undefined} message - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @instance - */ - UpdateVReplicationWorkflowRequest.prototype.message = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_tablet_selection_preference", { - get: $util.oneOfGetter($oneOfFields = ["tablet_selection_preference"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_on_ddl", { - get: $util.oneOfGetter($oneOfFields = ["on_ddl"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_state", { - get: $util.oneOfGetter($oneOfFields = ["state"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_message", { - get: $util.oneOfGetter($oneOfFields = ["message"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new UpdateVReplicationWorkflowRequest instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest instance - */ - UpdateVReplicationWorkflowRequest.create = function create(properties) { - return new UpdateVReplicationWorkflowRequest(properties); - }; - - /** - * Encodes the specified UpdateVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowRequest.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest} message UpdateVReplicationWorkflowRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateVReplicationWorkflowRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); - if (message.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); - if (message.tablet_types != null && message.tablet_types.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (let i = 0; i < message.tablet_types.length; ++i) - writer.int32(message.tablet_types[i]); - writer.ldelim(); - } - if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.tablet_selection_preference); - if (message.on_ddl != null && Object.hasOwnProperty.call(message, "on_ddl")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.on_ddl); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); - if (message.shards != null && message.shards.length) - for (let i = 0; i < message.shards.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.shards[i]); - if (message.config_overrides != null && Object.hasOwnProperty.call(message, "config_overrides")) - for (let keys = Object.keys(message.config_overrides), i = 0; i < keys.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config_overrides[keys[i]]).ldelim(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.message); - return writer; - }; - - /** - * Encodes the specified UpdateVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowRequest.verify|verify} messages. + * Encodes the specified VDiffRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.VDiffRequest * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest} message UpdateVReplicationWorkflowRequest message or plain object to encode + * @param {tabletmanagerdata.IVDiffRequest} message VDiffRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateVReplicationWorkflowRequest.encodeDelimited = function encodeDelimited(message, writer) { + VDiffRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateVReplicationWorkflowRequest message from the specified reader or buffer. + * Decodes a VDiffRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.VDiffRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest + * @returns {tabletmanagerdata.VDiffRequest} VDiffRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateVReplicationWorkflowRequest.decode = function decode(reader, length) { + VDiffRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workflow = reader.string(); + message.keyspace = reader.string(); break; } case 2: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + message.workflow = reader.string(); break; } case 3: { - if (!(message.tablet_types && message.tablet_types.length)) - message.tablet_types = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.tablet_types.push(reader.int32()); - } else - message.tablet_types.push(reader.int32()); + message.action = reader.string(); break; } case 4: { - message.tablet_selection_preference = reader.int32(); + message.action_arg = reader.string(); break; } case 5: { - message.on_ddl = reader.int32(); + message.vdiff_uuid = reader.string(); break; } case 6: { - message.state = reader.int32(); - break; - } - case 7: { - if (!(message.shards && message.shards.length)) - message.shards = []; - message.shards.push(reader.string()); - break; - } - case 8: { - if (message.config_overrides === $util.emptyObject) - message.config_overrides = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.config_overrides[key] = value; - break; - } - case 9: { - message.message = reader.string(); + message.options = $root.tabletmanagerdata.VDiffOptions.decode(reader, reader.uint32()); break; } default: @@ -79947,417 +80041,170 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an UpdateVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.VDiffRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest + * @returns {tabletmanagerdata.VDiffRequest} VDiffRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateVReplicationWorkflowRequest.decodeDelimited = function decodeDelimited(reader) { + VDiffRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateVReplicationWorkflowRequest message. + * Verifies a VDiffRequest message. * @function verify - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.VDiffRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateVReplicationWorkflowRequest.verify = function verify(message) { + VDiffRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - let properties = {}; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; if (message.workflow != null && message.hasOwnProperty("workflow")) if (!$util.isString(message.workflow)) return "workflow: string expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { - if (!Array.isArray(message.tablet_types)) - return "tablet_types: array expected"; - for (let i = 0; i < message.tablet_types.length; ++i) - switch (message.tablet_types[i]) { - default: - return "tablet_types: enum value[] expected"; - case 0: - case 1: - case 1: - case 2: - case 3: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) { - properties._tablet_selection_preference = 1; - switch (message.tablet_selection_preference) { - default: - return "tablet_selection_preference: enum value expected"; - case 0: - case 1: - case 3: - break; - } - } - if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) { - properties._on_ddl = 1; - switch (message.on_ddl) { - default: - return "on_ddl: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.state != null && message.hasOwnProperty("state")) { - properties._state = 1; - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - } - if (message.shards != null && message.hasOwnProperty("shards")) { - if (!Array.isArray(message.shards)) - return "shards: array expected"; - for (let i = 0; i < message.shards.length; ++i) - if (!$util.isString(message.shards[i])) - return "shards: string[] expected"; - } - if (message.config_overrides != null && message.hasOwnProperty("config_overrides")) { - if (!$util.isObject(message.config_overrides)) - return "config_overrides: object expected"; - let key = Object.keys(message.config_overrides); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.config_overrides[key[i]])) - return "config_overrides: string{k:string} expected"; - } - if (message.message != null && message.hasOwnProperty("message")) { - properties._message = 1; - if (!$util.isString(message.message)) - return "message: string expected"; + if (message.action != null && message.hasOwnProperty("action")) + if (!$util.isString(message.action)) + return "action: string expected"; + if (message.action_arg != null && message.hasOwnProperty("action_arg")) + if (!$util.isString(message.action_arg)) + return "action_arg: string expected"; + if (message.vdiff_uuid != null && message.hasOwnProperty("vdiff_uuid")) + if (!$util.isString(message.vdiff_uuid)) + return "vdiff_uuid: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.tabletmanagerdata.VDiffOptions.verify(message.options); + if (error) + return "options." + error; } return null; }; /** - * Creates an UpdateVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.VDiffRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest + * @returns {tabletmanagerdata.VDiffRequest} VDiffRequest */ - UpdateVReplicationWorkflowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest) + VDiffRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.VDiffRequest) return object; - let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest(); + let message = new $root.tabletmanagerdata.VDiffRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); if (object.workflow != null) message.workflow = String(object.workflow); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } - if (object.tablet_types) { - if (!Array.isArray(object.tablet_types)) - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.tablet_types: array expected"); - message.tablet_types = []; - for (let i = 0; i < object.tablet_types.length; ++i) - switch (object.tablet_types[i]) { - default: - if (typeof object.tablet_types[i] === "number") { - message.tablet_types[i] = object.tablet_types[i]; - break; - } - case "UNKNOWN": - case 0: - message.tablet_types[i] = 0; - break; - case "PRIMARY": - case 1: - message.tablet_types[i] = 1; - break; - case "MASTER": - case 1: - message.tablet_types[i] = 1; - break; - case "REPLICA": - case 2: - message.tablet_types[i] = 2; - break; - case "RDONLY": - case 3: - message.tablet_types[i] = 3; - break; - case "BATCH": - case 3: - message.tablet_types[i] = 3; - break; - case "SPARE": - case 4: - message.tablet_types[i] = 4; - break; - case "EXPERIMENTAL": - case 5: - message.tablet_types[i] = 5; - break; - case "BACKUP": - case 6: - message.tablet_types[i] = 6; - break; - case "RESTORE": - case 7: - message.tablet_types[i] = 7; - break; - case "DRAINED": - case 8: - message.tablet_types[i] = 8; - break; - } - } - switch (object.tablet_selection_preference) { - default: - if (typeof object.tablet_selection_preference === "number") { - message.tablet_selection_preference = object.tablet_selection_preference; - break; - } - break; - case "ANY": - case 0: - message.tablet_selection_preference = 0; - break; - case "INORDER": - case 1: - message.tablet_selection_preference = 1; - break; - case "UNKNOWN": - case 3: - message.tablet_selection_preference = 3; - break; - } - switch (object.on_ddl) { - default: - if (typeof object.on_ddl === "number") { - message.on_ddl = object.on_ddl; - break; - } - break; - case "IGNORE": - case 0: - message.on_ddl = 0; - break; - case "STOP": - case 1: - message.on_ddl = 1; - break; - case "EXEC": - case 2: - message.on_ddl = 2; - break; - case "EXEC_IGNORE": - case 3: - message.on_ddl = 3; - break; - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "Unknown": - case 0: - message.state = 0; - break; - case "Init": - case 1: - message.state = 1; - break; - case "Stopped": - case 2: - message.state = 2; - break; - case "Copying": - case 3: - message.state = 3; - break; - case "Running": - case 4: - message.state = 4; - break; - case "Error": - case 5: - message.state = 5; - break; - case "Lagging": - case 6: - message.state = 6; - break; - } - if (object.shards) { - if (!Array.isArray(object.shards)) - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.shards: array expected"); - message.shards = []; - for (let i = 0; i < object.shards.length; ++i) - message.shards[i] = String(object.shards[i]); - } - if (object.config_overrides) { - if (typeof object.config_overrides !== "object") - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.config_overrides: object expected"); - message.config_overrides = {}; - for (let keys = Object.keys(object.config_overrides), i = 0; i < keys.length; ++i) - message.config_overrides[keys[i]] = String(object.config_overrides[keys[i]]); + if (object.action != null) + message.action = String(object.action); + if (object.action_arg != null) + message.action_arg = String(object.action_arg); + if (object.vdiff_uuid != null) + message.vdiff_uuid = String(object.vdiff_uuid); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".tabletmanagerdata.VDiffRequest.options: object expected"); + message.options = $root.tabletmanagerdata.VDiffOptions.fromObject(object.options); } - if (object.message != null) - message.message = String(object.message); return message; }; /** - * Creates a plain object from an UpdateVReplicationWorkflowRequest message. Also converts values to other types if specified. + * Creates a plain object from a VDiffRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.VDiffRequest * @static - * @param {tabletmanagerdata.UpdateVReplicationWorkflowRequest} message UpdateVReplicationWorkflowRequest + * @param {tabletmanagerdata.VDiffRequest} message VDiffRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateVReplicationWorkflowRequest.toObject = function toObject(message, options) { + VDiffRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.cells = []; - object.tablet_types = []; - object.shards = []; - } - if (options.objects || options.defaults) - object.config_overrides = {}; - if (options.defaults) + if (options.defaults) { + object.keyspace = ""; object.workflow = ""; + object.action = ""; + object.action_arg = ""; + object.vdiff_uuid = ""; + object.options = null; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; if (message.workflow != null && message.hasOwnProperty("workflow")) object.workflow = message.workflow; - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } - if (message.tablet_types && message.tablet_types.length) { - object.tablet_types = []; - for (let j = 0; j < message.tablet_types.length; ++j) - object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; - } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) { - object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; - if (options.oneofs) - object._tablet_selection_preference = "tablet_selection_preference"; - } - if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) { - object.on_ddl = options.enums === String ? $root.binlogdata.OnDDLAction[message.on_ddl] === undefined ? message.on_ddl : $root.binlogdata.OnDDLAction[message.on_ddl] : message.on_ddl; - if (options.oneofs) - object._on_ddl = "on_ddl"; - } - if (message.state != null && message.hasOwnProperty("state")) { - object.state = options.enums === String ? $root.binlogdata.VReplicationWorkflowState[message.state] === undefined ? message.state : $root.binlogdata.VReplicationWorkflowState[message.state] : message.state; - if (options.oneofs) - object._state = "state"; - } - if (message.shards && message.shards.length) { - object.shards = []; - for (let j = 0; j < message.shards.length; ++j) - object.shards[j] = message.shards[j]; - } - let keys2; - if (message.config_overrides && (keys2 = Object.keys(message.config_overrides)).length) { - object.config_overrides = {}; - for (let j = 0; j < keys2.length; ++j) - object.config_overrides[keys2[j]] = message.config_overrides[keys2[j]]; - } - if (message.message != null && message.hasOwnProperty("message")) { - object.message = message.message; - if (options.oneofs) - object._message = "message"; - } + if (message.action != null && message.hasOwnProperty("action")) + object.action = message.action; + if (message.action_arg != null && message.hasOwnProperty("action_arg")) + object.action_arg = message.action_arg; + if (message.vdiff_uuid != null && message.hasOwnProperty("vdiff_uuid")) + object.vdiff_uuid = message.vdiff_uuid; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.tabletmanagerdata.VDiffOptions.toObject(message.options, options); return object; }; /** - * Converts this UpdateVReplicationWorkflowRequest to JSON. + * Converts this VDiffRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.VDiffRequest * @instance * @returns {Object.} JSON object */ - UpdateVReplicationWorkflowRequest.prototype.toJSON = function toJSON() { + VDiffRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateVReplicationWorkflowRequest + * Gets the default type url for VDiffRequest * @function getTypeUrl - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @memberof tabletmanagerdata.VDiffRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateVReplicationWorkflowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowRequest"; + return typeUrlPrefix + "/tabletmanagerdata.VDiffRequest"; }; - return UpdateVReplicationWorkflowRequest; + return VDiffRequest; })(); - tabletmanagerdata.UpdateVReplicationWorkflowResponse = (function() { + tabletmanagerdata.VDiffResponse = (function() { /** - * Properties of an UpdateVReplicationWorkflowResponse. + * Properties of a VDiffResponse. * @memberof tabletmanagerdata - * @interface IUpdateVReplicationWorkflowResponse - * @property {query.IQueryResult|null} [result] UpdateVReplicationWorkflowResponse result + * @interface IVDiffResponse + * @property {number|Long|null} [id] VDiffResponse id + * @property {query.IQueryResult|null} [output] VDiffResponse output + * @property {string|null} [vdiff_uuid] VDiffResponse vdiff_uuid */ /** - * Constructs a new UpdateVReplicationWorkflowResponse. + * Constructs a new VDiffResponse. * @memberof tabletmanagerdata - * @classdesc Represents an UpdateVReplicationWorkflowResponse. - * @implements IUpdateVReplicationWorkflowResponse + * @classdesc Represents a VDiffResponse. + * @implements IVDiffResponse * @constructor - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IVDiffResponse=} [properties] Properties to set */ - function UpdateVReplicationWorkflowResponse(properties) { + function VDiffResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80365,75 +80212,103 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * UpdateVReplicationWorkflowResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse + * VDiffResponse id. + * @member {number|Long} id + * @memberof tabletmanagerdata.VDiffResponse * @instance */ - UpdateVReplicationWorkflowResponse.prototype.result = null; + VDiffResponse.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new UpdateVReplicationWorkflowResponse instance using the specified properties. + * VDiffResponse output. + * @member {query.IQueryResult|null|undefined} output + * @memberof tabletmanagerdata.VDiffResponse + * @instance + */ + VDiffResponse.prototype.output = null; + + /** + * VDiffResponse vdiff_uuid. + * @member {string} vdiff_uuid + * @memberof tabletmanagerdata.VDiffResponse + * @instance + */ + VDiffResponse.prototype.vdiff_uuid = ""; + + /** + * Creates a new VDiffResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.VDiffResponse * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse instance + * @param {tabletmanagerdata.IVDiffResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.VDiffResponse} VDiffResponse instance */ - UpdateVReplicationWorkflowResponse.create = function create(properties) { - return new UpdateVReplicationWorkflowResponse(properties); + VDiffResponse.create = function create(properties) { + return new VDiffResponse(properties); }; /** - * Encodes the specified UpdateVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowResponse.verify|verify} messages. + * Encodes the specified VDiffResponse message. Does not implicitly {@link tabletmanagerdata.VDiffResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.VDiffResponse * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse} message UpdateVReplicationWorkflowResponse message or plain object to encode + * @param {tabletmanagerdata.IVDiffResponse} message VDiffResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateVReplicationWorkflowResponse.encode = function encode(message, writer) { + VDiffResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); + if (message.output != null && Object.hasOwnProperty.call(message, "output")) + $root.query.QueryResult.encode(message.output, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.vdiff_uuid != null && Object.hasOwnProperty.call(message, "vdiff_uuid")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.vdiff_uuid); return writer; }; /** - * Encodes the specified UpdateVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowResponse.verify|verify} messages. + * Encodes the specified VDiffResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.VDiffResponse * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse} message UpdateVReplicationWorkflowResponse message or plain object to encode + * @param {tabletmanagerdata.IVDiffResponse} message VDiffResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateVReplicationWorkflowResponse.encodeDelimited = function encodeDelimited(message, writer) { + VDiffResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateVReplicationWorkflowResponse message from the specified reader or buffer. + * Decodes a VDiffResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.VDiffResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse + * @returns {tabletmanagerdata.VDiffResponse} VDiffResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateVReplicationWorkflowResponse.decode = function decode(reader, length) { + VDiffResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + message.id = reader.int64(); + break; + } + case 2: { + message.output = $root.query.QueryResult.decode(reader, reader.uint32()); + break; + } + case 3: { + message.vdiff_uuid = reader.string(); break; } default: @@ -80445,134 +80320,160 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an UpdateVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.VDiffResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse + * @returns {tabletmanagerdata.VDiffResponse} VDiffResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateVReplicationWorkflowResponse.decodeDelimited = function decodeDelimited(reader) { + VDiffResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateVReplicationWorkflowResponse message. + * Verifies a VDiffResponse message. * @function verify - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.VDiffResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateVReplicationWorkflowResponse.verify = function verify(message) { + VDiffResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + if (message.output != null && message.hasOwnProperty("output")) { + let error = $root.query.QueryResult.verify(message.output); if (error) - return "result." + error; + return "output." + error; } + if (message.vdiff_uuid != null && message.hasOwnProperty("vdiff_uuid")) + if (!$util.isString(message.vdiff_uuid)) + return "vdiff_uuid: string expected"; return null; }; /** - * Creates an UpdateVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.VDiffResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse + * @returns {tabletmanagerdata.VDiffResponse} VDiffResponse */ - UpdateVReplicationWorkflowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowResponse) + VDiffResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.VDiffResponse) return object; - let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); + let message = new $root.tabletmanagerdata.VDiffResponse(); + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = false; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); + if (object.output != null) { + if (typeof object.output !== "object") + throw TypeError(".tabletmanagerdata.VDiffResponse.output: object expected"); + message.output = $root.query.QueryResult.fromObject(object.output); } + if (object.vdiff_uuid != null) + message.vdiff_uuid = String(object.vdiff_uuid); return message; }; /** - * Creates a plain object from an UpdateVReplicationWorkflowResponse message. Also converts values to other types if specified. + * Creates a plain object from a VDiffResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.VDiffResponse * @static - * @param {tabletmanagerdata.UpdateVReplicationWorkflowResponse} message UpdateVReplicationWorkflowResponse + * @param {tabletmanagerdata.VDiffResponse} message VDiffResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateVReplicationWorkflowResponse.toObject = function toObject(message, options) { + VDiffResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.id = options.longs === String ? "0" : 0; + object.output = null; + object.vdiff_uuid = ""; + } + if (message.id != null && message.hasOwnProperty("id")) + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; + if (message.output != null && message.hasOwnProperty("output")) + object.output = $root.query.QueryResult.toObject(message.output, options); + if (message.vdiff_uuid != null && message.hasOwnProperty("vdiff_uuid")) + object.vdiff_uuid = message.vdiff_uuid; return object; }; /** - * Converts this UpdateVReplicationWorkflowResponse to JSON. + * Converts this VDiffResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.VDiffResponse * @instance * @returns {Object.} JSON object */ - UpdateVReplicationWorkflowResponse.prototype.toJSON = function toJSON() { + VDiffResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateVReplicationWorkflowResponse + * Gets the default type url for VDiffResponse * @function getTypeUrl - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse + * @memberof tabletmanagerdata.VDiffResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateVReplicationWorkflowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowResponse"; + return typeUrlPrefix + "/tabletmanagerdata.VDiffResponse"; }; - return UpdateVReplicationWorkflowResponse; + return VDiffResponse; })(); - tabletmanagerdata.UpdateVReplicationWorkflowsRequest = (function() { + tabletmanagerdata.VDiffPickerOptions = (function() { /** - * Properties of an UpdateVReplicationWorkflowsRequest. + * Properties of a VDiffPickerOptions. * @memberof tabletmanagerdata - * @interface IUpdateVReplicationWorkflowsRequest - * @property {boolean|null} [all_workflows] UpdateVReplicationWorkflowsRequest all_workflows - * @property {Array.|null} [include_workflows] UpdateVReplicationWorkflowsRequest include_workflows - * @property {Array.|null} [exclude_workflows] UpdateVReplicationWorkflowsRequest exclude_workflows - * @property {binlogdata.VReplicationWorkflowState|null} [state] UpdateVReplicationWorkflowsRequest state - * @property {string|null} [message] UpdateVReplicationWorkflowsRequest message - * @property {string|null} [stop_position] UpdateVReplicationWorkflowsRequest stop_position + * @interface IVDiffPickerOptions + * @property {string|null} [tablet_types] VDiffPickerOptions tablet_types + * @property {string|null} [source_cell] VDiffPickerOptions source_cell + * @property {string|null} [target_cell] VDiffPickerOptions target_cell */ /** - * Constructs a new UpdateVReplicationWorkflowsRequest. + * Constructs a new VDiffPickerOptions. * @memberof tabletmanagerdata - * @classdesc Represents an UpdateVReplicationWorkflowsRequest. - * @implements IUpdateVReplicationWorkflowsRequest + * @classdesc Represents a VDiffPickerOptions. + * @implements IVDiffPickerOptions * @constructor - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IVDiffPickerOptions=} [properties] Properties to set */ - function UpdateVReplicationWorkflowsRequest(properties) { - this.include_workflows = []; - this.exclude_workflows = []; + function VDiffPickerOptions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80580,172 +80481,103 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * UpdateVReplicationWorkflowsRequest all_workflows. - * @member {boolean} all_workflows - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @instance - */ - UpdateVReplicationWorkflowsRequest.prototype.all_workflows = false; - - /** - * UpdateVReplicationWorkflowsRequest include_workflows. - * @member {Array.} include_workflows - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @instance - */ - UpdateVReplicationWorkflowsRequest.prototype.include_workflows = $util.emptyArray; - - /** - * UpdateVReplicationWorkflowsRequest exclude_workflows. - * @member {Array.} exclude_workflows - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @instance - */ - UpdateVReplicationWorkflowsRequest.prototype.exclude_workflows = $util.emptyArray; - - /** - * UpdateVReplicationWorkflowsRequest state. - * @member {binlogdata.VReplicationWorkflowState|null|undefined} state - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * VDiffPickerOptions tablet_types. + * @member {string} tablet_types + * @memberof tabletmanagerdata.VDiffPickerOptions * @instance */ - UpdateVReplicationWorkflowsRequest.prototype.state = null; + VDiffPickerOptions.prototype.tablet_types = ""; /** - * UpdateVReplicationWorkflowsRequest message. - * @member {string|null|undefined} message - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * VDiffPickerOptions source_cell. + * @member {string} source_cell + * @memberof tabletmanagerdata.VDiffPickerOptions * @instance */ - UpdateVReplicationWorkflowsRequest.prototype.message = null; + VDiffPickerOptions.prototype.source_cell = ""; /** - * UpdateVReplicationWorkflowsRequest stop_position. - * @member {string|null|undefined} stop_position - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * VDiffPickerOptions target_cell. + * @member {string} target_cell + * @memberof tabletmanagerdata.VDiffPickerOptions * @instance */ - UpdateVReplicationWorkflowsRequest.prototype.stop_position = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_state", { - get: $util.oneOfGetter($oneOfFields = ["state"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_message", { - get: $util.oneOfGetter($oneOfFields = ["message"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_stop_position", { - get: $util.oneOfGetter($oneOfFields = ["stop_position"]), - set: $util.oneOfSetter($oneOfFields) - }); + VDiffPickerOptions.prototype.target_cell = ""; /** - * Creates a new UpdateVReplicationWorkflowsRequest instance using the specified properties. + * Creates a new VDiffPickerOptions instance using the specified properties. * @function create - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.VDiffPickerOptions * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest instance + * @param {tabletmanagerdata.IVDiffPickerOptions=} [properties] Properties to set + * @returns {tabletmanagerdata.VDiffPickerOptions} VDiffPickerOptions instance */ - UpdateVReplicationWorkflowsRequest.create = function create(properties) { - return new UpdateVReplicationWorkflowsRequest(properties); + VDiffPickerOptions.create = function create(properties) { + return new VDiffPickerOptions(properties); }; /** - * Encodes the specified UpdateVReplicationWorkflowsRequest message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsRequest.verify|verify} messages. + * Encodes the specified VDiffPickerOptions message. Does not implicitly {@link tabletmanagerdata.VDiffPickerOptions.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.VDiffPickerOptions * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest} message UpdateVReplicationWorkflowsRequest message or plain object to encode + * @param {tabletmanagerdata.IVDiffPickerOptions} message VDiffPickerOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateVReplicationWorkflowsRequest.encode = function encode(message, writer) { + VDiffPickerOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.all_workflows != null && Object.hasOwnProperty.call(message, "all_workflows")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all_workflows); - if (message.include_workflows != null && message.include_workflows.length) - for (let i = 0; i < message.include_workflows.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.include_workflows[i]); - if (message.exclude_workflows != null && message.exclude_workflows.length) - for (let i = 0; i < message.exclude_workflows.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_workflows[i]); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.message); - if (message.stop_position != null && Object.hasOwnProperty.call(message, "stop_position")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.stop_position); + if (message.tablet_types != null && Object.hasOwnProperty.call(message, "tablet_types")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tablet_types); + if (message.source_cell != null && Object.hasOwnProperty.call(message, "source_cell")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_cell); + if (message.target_cell != null && Object.hasOwnProperty.call(message, "target_cell")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_cell); return writer; }; /** - * Encodes the specified UpdateVReplicationWorkflowsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsRequest.verify|verify} messages. + * Encodes the specified VDiffPickerOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffPickerOptions.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.VDiffPickerOptions * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest} message UpdateVReplicationWorkflowsRequest message or plain object to encode + * @param {tabletmanagerdata.IVDiffPickerOptions} message VDiffPickerOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateVReplicationWorkflowsRequest.encodeDelimited = function encodeDelimited(message, writer) { + VDiffPickerOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateVReplicationWorkflowsRequest message from the specified reader or buffer. + * Decodes a VDiffPickerOptions message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.VDiffPickerOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest + * @returns {tabletmanagerdata.VDiffPickerOptions} VDiffPickerOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateVReplicationWorkflowsRequest.decode = function decode(reader, length) { + VDiffPickerOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffPickerOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.all_workflows = reader.bool(); + message.tablet_types = reader.string(); break; } case 2: { - if (!(message.include_workflows && message.include_workflows.length)) - message.include_workflows = []; - message.include_workflows.push(reader.string()); + message.source_cell = reader.string(); break; } case 3: { - if (!(message.exclude_workflows && message.exclude_workflows.length)) - message.exclude_workflows = []; - message.exclude_workflows.push(reader.string()); - break; - } - case 4: { - message.state = reader.int32(); - break; - } - case 5: { - message.message = reader.string(); - break; - } - case 6: { - message.stop_position = reader.string(); + message.target_cell = reader.string(); break; } default: @@ -80757,245 +80589,143 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an UpdateVReplicationWorkflowsRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffPickerOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.VDiffPickerOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest + * @returns {tabletmanagerdata.VDiffPickerOptions} VDiffPickerOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateVReplicationWorkflowsRequest.decodeDelimited = function decodeDelimited(reader) { + VDiffPickerOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateVReplicationWorkflowsRequest message. + * Verifies a VDiffPickerOptions message. * @function verify - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.VDiffPickerOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateVReplicationWorkflowsRequest.verify = function verify(message) { + VDiffPickerOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - let properties = {}; - if (message.all_workflows != null && message.hasOwnProperty("all_workflows")) - if (typeof message.all_workflows !== "boolean") - return "all_workflows: boolean expected"; - if (message.include_workflows != null && message.hasOwnProperty("include_workflows")) { - if (!Array.isArray(message.include_workflows)) - return "include_workflows: array expected"; - for (let i = 0; i < message.include_workflows.length; ++i) - if (!$util.isString(message.include_workflows[i])) - return "include_workflows: string[] expected"; - } - if (message.exclude_workflows != null && message.hasOwnProperty("exclude_workflows")) { - if (!Array.isArray(message.exclude_workflows)) - return "exclude_workflows: array expected"; - for (let i = 0; i < message.exclude_workflows.length; ++i) - if (!$util.isString(message.exclude_workflows[i])) - return "exclude_workflows: string[] expected"; - } - if (message.state != null && message.hasOwnProperty("state")) { - properties._state = 1; - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - } - if (message.message != null && message.hasOwnProperty("message")) { - properties._message = 1; - if (!$util.isString(message.message)) - return "message: string expected"; - } - if (message.stop_position != null && message.hasOwnProperty("stop_position")) { - properties._stop_position = 1; - if (!$util.isString(message.stop_position)) - return "stop_position: string expected"; - } + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) + if (!$util.isString(message.tablet_types)) + return "tablet_types: string expected"; + if (message.source_cell != null && message.hasOwnProperty("source_cell")) + if (!$util.isString(message.source_cell)) + return "source_cell: string expected"; + if (message.target_cell != null && message.hasOwnProperty("target_cell")) + if (!$util.isString(message.target_cell)) + return "target_cell: string expected"; return null; }; /** - * Creates an UpdateVReplicationWorkflowsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffPickerOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.VDiffPickerOptions * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest + * @returns {tabletmanagerdata.VDiffPickerOptions} VDiffPickerOptions */ - UpdateVReplicationWorkflowsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowsRequest) + VDiffPickerOptions.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.VDiffPickerOptions) return object; - let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsRequest(); - if (object.all_workflows != null) - message.all_workflows = Boolean(object.all_workflows); - if (object.include_workflows) { - if (!Array.isArray(object.include_workflows)) - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowsRequest.include_workflows: array expected"); - message.include_workflows = []; - for (let i = 0; i < object.include_workflows.length; ++i) - message.include_workflows[i] = String(object.include_workflows[i]); - } - if (object.exclude_workflows) { - if (!Array.isArray(object.exclude_workflows)) - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowsRequest.exclude_workflows: array expected"); - message.exclude_workflows = []; - for (let i = 0; i < object.exclude_workflows.length; ++i) - message.exclude_workflows[i] = String(object.exclude_workflows[i]); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "Unknown": - case 0: - message.state = 0; - break; - case "Init": - case 1: - message.state = 1; - break; - case "Stopped": - case 2: - message.state = 2; - break; - case "Copying": - case 3: - message.state = 3; - break; - case "Running": - case 4: - message.state = 4; - break; - case "Error": - case 5: - message.state = 5; - break; - case "Lagging": - case 6: - message.state = 6; - break; - } - if (object.message != null) - message.message = String(object.message); - if (object.stop_position != null) - message.stop_position = String(object.stop_position); + let message = new $root.tabletmanagerdata.VDiffPickerOptions(); + if (object.tablet_types != null) + message.tablet_types = String(object.tablet_types); + if (object.source_cell != null) + message.source_cell = String(object.source_cell); + if (object.target_cell != null) + message.target_cell = String(object.target_cell); return message; }; /** - * Creates a plain object from an UpdateVReplicationWorkflowsRequest message. Also converts values to other types if specified. + * Creates a plain object from a VDiffPickerOptions message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.VDiffPickerOptions * @static - * @param {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} message UpdateVReplicationWorkflowsRequest + * @param {tabletmanagerdata.VDiffPickerOptions} message VDiffPickerOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateVReplicationWorkflowsRequest.toObject = function toObject(message, options) { + VDiffPickerOptions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.include_workflows = []; - object.exclude_workflows = []; - } - if (options.defaults) - object.all_workflows = false; - if (message.all_workflows != null && message.hasOwnProperty("all_workflows")) - object.all_workflows = message.all_workflows; - if (message.include_workflows && message.include_workflows.length) { - object.include_workflows = []; - for (let j = 0; j < message.include_workflows.length; ++j) - object.include_workflows[j] = message.include_workflows[j]; - } - if (message.exclude_workflows && message.exclude_workflows.length) { - object.exclude_workflows = []; - for (let j = 0; j < message.exclude_workflows.length; ++j) - object.exclude_workflows[j] = message.exclude_workflows[j]; - } - if (message.state != null && message.hasOwnProperty("state")) { - object.state = options.enums === String ? $root.binlogdata.VReplicationWorkflowState[message.state] === undefined ? message.state : $root.binlogdata.VReplicationWorkflowState[message.state] : message.state; - if (options.oneofs) - object._state = "state"; - } - if (message.message != null && message.hasOwnProperty("message")) { - object.message = message.message; - if (options.oneofs) - object._message = "message"; - } - if (message.stop_position != null && message.hasOwnProperty("stop_position")) { - object.stop_position = message.stop_position; - if (options.oneofs) - object._stop_position = "stop_position"; + if (options.defaults) { + object.tablet_types = ""; + object.source_cell = ""; + object.target_cell = ""; } + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) + object.tablet_types = message.tablet_types; + if (message.source_cell != null && message.hasOwnProperty("source_cell")) + object.source_cell = message.source_cell; + if (message.target_cell != null && message.hasOwnProperty("target_cell")) + object.target_cell = message.target_cell; return object; }; /** - * Converts this UpdateVReplicationWorkflowsRequest to JSON. + * Converts this VDiffPickerOptions to JSON. * @function toJSON - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.VDiffPickerOptions * @instance * @returns {Object.} JSON object */ - UpdateVReplicationWorkflowsRequest.prototype.toJSON = function toJSON() { + VDiffPickerOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateVReplicationWorkflowsRequest + * Gets the default type url for VDiffPickerOptions * @function getTypeUrl - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @memberof tabletmanagerdata.VDiffPickerOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateVReplicationWorkflowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffPickerOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowsRequest"; + return typeUrlPrefix + "/tabletmanagerdata.VDiffPickerOptions"; }; - return UpdateVReplicationWorkflowsRequest; + return VDiffPickerOptions; })(); - tabletmanagerdata.UpdateVReplicationWorkflowsResponse = (function() { + tabletmanagerdata.VDiffReportOptions = (function() { /** - * Properties of an UpdateVReplicationWorkflowsResponse. + * Properties of a VDiffReportOptions. * @memberof tabletmanagerdata - * @interface IUpdateVReplicationWorkflowsResponse - * @property {query.IQueryResult|null} [result] UpdateVReplicationWorkflowsResponse result + * @interface IVDiffReportOptions + * @property {boolean|null} [only_pks] VDiffReportOptions only_pks + * @property {boolean|null} [debug_query] VDiffReportOptions debug_query + * @property {string|null} [format] VDiffReportOptions format + * @property {number|Long|null} [max_sample_rows] VDiffReportOptions max_sample_rows + * @property {number|Long|null} [row_diff_column_truncate_at] VDiffReportOptions row_diff_column_truncate_at */ /** - * Constructs a new UpdateVReplicationWorkflowsResponse. + * Constructs a new VDiffReportOptions. * @memberof tabletmanagerdata - * @classdesc Represents an UpdateVReplicationWorkflowsResponse. - * @implements IUpdateVReplicationWorkflowsResponse + * @classdesc Represents a VDiffReportOptions. + * @implements IVDiffReportOptions * @constructor - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IVDiffReportOptions=} [properties] Properties to set */ - function UpdateVReplicationWorkflowsResponse(properties) { + function VDiffReportOptions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81003,75 +80733,131 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * UpdateVReplicationWorkflowsResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * VDiffReportOptions only_pks. + * @member {boolean} only_pks + * @memberof tabletmanagerdata.VDiffReportOptions * @instance */ - UpdateVReplicationWorkflowsResponse.prototype.result = null; + VDiffReportOptions.prototype.only_pks = false; /** - * Creates a new UpdateVReplicationWorkflowsResponse instance using the specified properties. + * VDiffReportOptions debug_query. + * @member {boolean} debug_query + * @memberof tabletmanagerdata.VDiffReportOptions + * @instance + */ + VDiffReportOptions.prototype.debug_query = false; + + /** + * VDiffReportOptions format. + * @member {string} format + * @memberof tabletmanagerdata.VDiffReportOptions + * @instance + */ + VDiffReportOptions.prototype.format = ""; + + /** + * VDiffReportOptions max_sample_rows. + * @member {number|Long} max_sample_rows + * @memberof tabletmanagerdata.VDiffReportOptions + * @instance + */ + VDiffReportOptions.prototype.max_sample_rows = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * VDiffReportOptions row_diff_column_truncate_at. + * @member {number|Long} row_diff_column_truncate_at + * @memberof tabletmanagerdata.VDiffReportOptions + * @instance + */ + VDiffReportOptions.prototype.row_diff_column_truncate_at = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new VDiffReportOptions instance using the specified properties. * @function create - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.VDiffReportOptions * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse instance + * @param {tabletmanagerdata.IVDiffReportOptions=} [properties] Properties to set + * @returns {tabletmanagerdata.VDiffReportOptions} VDiffReportOptions instance */ - UpdateVReplicationWorkflowsResponse.create = function create(properties) { - return new UpdateVReplicationWorkflowsResponse(properties); + VDiffReportOptions.create = function create(properties) { + return new VDiffReportOptions(properties); }; /** - * Encodes the specified UpdateVReplicationWorkflowsResponse message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsResponse.verify|verify} messages. + * Encodes the specified VDiffReportOptions message. Does not implicitly {@link tabletmanagerdata.VDiffReportOptions.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.VDiffReportOptions * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse} message UpdateVReplicationWorkflowsResponse message or plain object to encode + * @param {tabletmanagerdata.IVDiffReportOptions} message VDiffReportOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateVReplicationWorkflowsResponse.encode = function encode(message, writer) { + VDiffReportOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.only_pks != null && Object.hasOwnProperty.call(message, "only_pks")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.only_pks); + if (message.debug_query != null && Object.hasOwnProperty.call(message, "debug_query")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.debug_query); + if (message.format != null && Object.hasOwnProperty.call(message, "format")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.format); + if (message.max_sample_rows != null && Object.hasOwnProperty.call(message, "max_sample_rows")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.max_sample_rows); + if (message.row_diff_column_truncate_at != null && Object.hasOwnProperty.call(message, "row_diff_column_truncate_at")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.row_diff_column_truncate_at); return writer; }; /** - * Encodes the specified UpdateVReplicationWorkflowsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsResponse.verify|verify} messages. + * Encodes the specified VDiffReportOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffReportOptions.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.VDiffReportOptions * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse} message UpdateVReplicationWorkflowsResponse message or plain object to encode + * @param {tabletmanagerdata.IVDiffReportOptions} message VDiffReportOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateVReplicationWorkflowsResponse.encodeDelimited = function encodeDelimited(message, writer) { + VDiffReportOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateVReplicationWorkflowsResponse message from the specified reader or buffer. + * Decodes a VDiffReportOptions message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.VDiffReportOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse + * @returns {tabletmanagerdata.VDiffReportOptions} VDiffReportOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateVReplicationWorkflowsResponse.decode = function decode(reader, length) { + VDiffReportOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffReportOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + message.only_pks = reader.bool(); + break; + } + case 2: { + message.debug_query = reader.bool(); + break; + } + case 3: { + message.format = reader.string(); + break; + } + case 4: { + message.max_sample_rows = reader.int64(); + break; + } + case 5: { + message.row_diff_column_truncate_at = reader.int64(); break; } default: @@ -81083,128 +80869,192 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes an UpdateVReplicationWorkflowsResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffReportOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.VDiffReportOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse + * @returns {tabletmanagerdata.VDiffReportOptions} VDiffReportOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateVReplicationWorkflowsResponse.decodeDelimited = function decodeDelimited(reader) { + VDiffReportOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateVReplicationWorkflowsResponse message. + * Verifies a VDiffReportOptions message. * @function verify - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.VDiffReportOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateVReplicationWorkflowsResponse.verify = function verify(message) { + VDiffReportOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } + if (message.only_pks != null && message.hasOwnProperty("only_pks")) + if (typeof message.only_pks !== "boolean") + return "only_pks: boolean expected"; + if (message.debug_query != null && message.hasOwnProperty("debug_query")) + if (typeof message.debug_query !== "boolean") + return "debug_query: boolean expected"; + if (message.format != null && message.hasOwnProperty("format")) + if (!$util.isString(message.format)) + return "format: string expected"; + if (message.max_sample_rows != null && message.hasOwnProperty("max_sample_rows")) + if (!$util.isInteger(message.max_sample_rows) && !(message.max_sample_rows && $util.isInteger(message.max_sample_rows.low) && $util.isInteger(message.max_sample_rows.high))) + return "max_sample_rows: integer|Long expected"; + if (message.row_diff_column_truncate_at != null && message.hasOwnProperty("row_diff_column_truncate_at")) + if (!$util.isInteger(message.row_diff_column_truncate_at) && !(message.row_diff_column_truncate_at && $util.isInteger(message.row_diff_column_truncate_at.low) && $util.isInteger(message.row_diff_column_truncate_at.high))) + return "row_diff_column_truncate_at: integer|Long expected"; return null; }; /** - * Creates an UpdateVReplicationWorkflowsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffReportOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.VDiffReportOptions * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse + * @returns {tabletmanagerdata.VDiffReportOptions} VDiffReportOptions */ - UpdateVReplicationWorkflowsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowsResponse) + VDiffReportOptions.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.VDiffReportOptions) return object; - let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowsResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } + let message = new $root.tabletmanagerdata.VDiffReportOptions(); + if (object.only_pks != null) + message.only_pks = Boolean(object.only_pks); + if (object.debug_query != null) + message.debug_query = Boolean(object.debug_query); + if (object.format != null) + message.format = String(object.format); + if (object.max_sample_rows != null) + if ($util.Long) + (message.max_sample_rows = $util.Long.fromValue(object.max_sample_rows)).unsigned = false; + else if (typeof object.max_sample_rows === "string") + message.max_sample_rows = parseInt(object.max_sample_rows, 10); + else if (typeof object.max_sample_rows === "number") + message.max_sample_rows = object.max_sample_rows; + else if (typeof object.max_sample_rows === "object") + message.max_sample_rows = new $util.LongBits(object.max_sample_rows.low >>> 0, object.max_sample_rows.high >>> 0).toNumber(); + if (object.row_diff_column_truncate_at != null) + if ($util.Long) + (message.row_diff_column_truncate_at = $util.Long.fromValue(object.row_diff_column_truncate_at)).unsigned = false; + else if (typeof object.row_diff_column_truncate_at === "string") + message.row_diff_column_truncate_at = parseInt(object.row_diff_column_truncate_at, 10); + else if (typeof object.row_diff_column_truncate_at === "number") + message.row_diff_column_truncate_at = object.row_diff_column_truncate_at; + else if (typeof object.row_diff_column_truncate_at === "object") + message.row_diff_column_truncate_at = new $util.LongBits(object.row_diff_column_truncate_at.low >>> 0, object.row_diff_column_truncate_at.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from an UpdateVReplicationWorkflowsResponse message. Also converts values to other types if specified. + * Creates a plain object from a VDiffReportOptions message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.VDiffReportOptions * @static - * @param {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} message UpdateVReplicationWorkflowsResponse + * @param {tabletmanagerdata.VDiffReportOptions} message VDiffReportOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateVReplicationWorkflowsResponse.toObject = function toObject(message, options) { + VDiffReportOptions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); + if (options.defaults) { + object.only_pks = false; + object.debug_query = false; + object.format = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.max_sample_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_sample_rows = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.row_diff_column_truncate_at = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.row_diff_column_truncate_at = options.longs === String ? "0" : 0; + } + if (message.only_pks != null && message.hasOwnProperty("only_pks")) + object.only_pks = message.only_pks; + if (message.debug_query != null && message.hasOwnProperty("debug_query")) + object.debug_query = message.debug_query; + if (message.format != null && message.hasOwnProperty("format")) + object.format = message.format; + if (message.max_sample_rows != null && message.hasOwnProperty("max_sample_rows")) + if (typeof message.max_sample_rows === "number") + object.max_sample_rows = options.longs === String ? String(message.max_sample_rows) : message.max_sample_rows; + else + object.max_sample_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_sample_rows) : options.longs === Number ? new $util.LongBits(message.max_sample_rows.low >>> 0, message.max_sample_rows.high >>> 0).toNumber() : message.max_sample_rows; + if (message.row_diff_column_truncate_at != null && message.hasOwnProperty("row_diff_column_truncate_at")) + if (typeof message.row_diff_column_truncate_at === "number") + object.row_diff_column_truncate_at = options.longs === String ? String(message.row_diff_column_truncate_at) : message.row_diff_column_truncate_at; + else + object.row_diff_column_truncate_at = options.longs === String ? $util.Long.prototype.toString.call(message.row_diff_column_truncate_at) : options.longs === Number ? new $util.LongBits(message.row_diff_column_truncate_at.low >>> 0, message.row_diff_column_truncate_at.high >>> 0).toNumber() : message.row_diff_column_truncate_at; return object; }; /** - * Converts this UpdateVReplicationWorkflowsResponse to JSON. + * Converts this VDiffReportOptions to JSON. * @function toJSON - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.VDiffReportOptions * @instance * @returns {Object.} JSON object */ - UpdateVReplicationWorkflowsResponse.prototype.toJSON = function toJSON() { + VDiffReportOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateVReplicationWorkflowsResponse + * Gets the default type url for VDiffReportOptions * @function getTypeUrl - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @memberof tabletmanagerdata.VDiffReportOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateVReplicationWorkflowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffReportOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowsResponse"; + return typeUrlPrefix + "/tabletmanagerdata.VDiffReportOptions"; }; - return UpdateVReplicationWorkflowsResponse; + return VDiffReportOptions; })(); - tabletmanagerdata.ResetSequencesRequest = (function() { + tabletmanagerdata.VDiffCoreOptions = (function() { /** - * Properties of a ResetSequencesRequest. + * Properties of a VDiffCoreOptions. * @memberof tabletmanagerdata - * @interface IResetSequencesRequest - * @property {Array.|null} [tables] ResetSequencesRequest tables + * @interface IVDiffCoreOptions + * @property {string|null} [tables] VDiffCoreOptions tables + * @property {boolean|null} [auto_retry] VDiffCoreOptions auto_retry + * @property {number|Long|null} [max_rows] VDiffCoreOptions max_rows + * @property {boolean|null} [checksum] VDiffCoreOptions checksum + * @property {number|Long|null} [sample_pct] VDiffCoreOptions sample_pct + * @property {number|Long|null} [timeout_seconds] VDiffCoreOptions timeout_seconds + * @property {number|Long|null} [max_extra_rows_to_compare] VDiffCoreOptions max_extra_rows_to_compare + * @property {boolean|null} [update_table_stats] VDiffCoreOptions update_table_stats + * @property {number|Long|null} [max_diff_seconds] VDiffCoreOptions max_diff_seconds + * @property {boolean|null} [auto_start] VDiffCoreOptions auto_start */ /** - * Constructs a new ResetSequencesRequest. + * Constructs a new VDiffCoreOptions. * @memberof tabletmanagerdata - * @classdesc Represents a ResetSequencesRequest. - * @implements IResetSequencesRequest + * @classdesc Represents a VDiffCoreOptions. + * @implements IVDiffCoreOptions * @constructor - * @param {tabletmanagerdata.IResetSequencesRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IVDiffCoreOptions=} [properties] Properties to set */ - function ResetSequencesRequest(properties) { - this.tables = []; + function VDiffCoreOptions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81212,78 +81062,210 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ResetSequencesRequest tables. - * @member {Array.} tables - * @memberof tabletmanagerdata.ResetSequencesRequest + * VDiffCoreOptions tables. + * @member {string} tables + * @memberof tabletmanagerdata.VDiffCoreOptions * @instance */ - ResetSequencesRequest.prototype.tables = $util.emptyArray; + VDiffCoreOptions.prototype.tables = ""; /** - * Creates a new ResetSequencesRequest instance using the specified properties. + * VDiffCoreOptions auto_retry. + * @member {boolean} auto_retry + * @memberof tabletmanagerdata.VDiffCoreOptions + * @instance + */ + VDiffCoreOptions.prototype.auto_retry = false; + + /** + * VDiffCoreOptions max_rows. + * @member {number|Long} max_rows + * @memberof tabletmanagerdata.VDiffCoreOptions + * @instance + */ + VDiffCoreOptions.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * VDiffCoreOptions checksum. + * @member {boolean} checksum + * @memberof tabletmanagerdata.VDiffCoreOptions + * @instance + */ + VDiffCoreOptions.prototype.checksum = false; + + /** + * VDiffCoreOptions sample_pct. + * @member {number|Long} sample_pct + * @memberof tabletmanagerdata.VDiffCoreOptions + * @instance + */ + VDiffCoreOptions.prototype.sample_pct = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * VDiffCoreOptions timeout_seconds. + * @member {number|Long} timeout_seconds + * @memberof tabletmanagerdata.VDiffCoreOptions + * @instance + */ + VDiffCoreOptions.prototype.timeout_seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * VDiffCoreOptions max_extra_rows_to_compare. + * @member {number|Long} max_extra_rows_to_compare + * @memberof tabletmanagerdata.VDiffCoreOptions + * @instance + */ + VDiffCoreOptions.prototype.max_extra_rows_to_compare = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * VDiffCoreOptions update_table_stats. + * @member {boolean} update_table_stats + * @memberof tabletmanagerdata.VDiffCoreOptions + * @instance + */ + VDiffCoreOptions.prototype.update_table_stats = false; + + /** + * VDiffCoreOptions max_diff_seconds. + * @member {number|Long} max_diff_seconds + * @memberof tabletmanagerdata.VDiffCoreOptions + * @instance + */ + VDiffCoreOptions.prototype.max_diff_seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * VDiffCoreOptions auto_start. + * @member {boolean|null|undefined} auto_start + * @memberof tabletmanagerdata.VDiffCoreOptions + * @instance + */ + VDiffCoreOptions.prototype.auto_start = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VDiffCoreOptions.prototype, "_auto_start", { + get: $util.oneOfGetter($oneOfFields = ["auto_start"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new VDiffCoreOptions instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ResetSequencesRequest + * @memberof tabletmanagerdata.VDiffCoreOptions * @static - * @param {tabletmanagerdata.IResetSequencesRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest instance + * @param {tabletmanagerdata.IVDiffCoreOptions=} [properties] Properties to set + * @returns {tabletmanagerdata.VDiffCoreOptions} VDiffCoreOptions instance */ - ResetSequencesRequest.create = function create(properties) { - return new ResetSequencesRequest(properties); + VDiffCoreOptions.create = function create(properties) { + return new VDiffCoreOptions(properties); }; /** - * Encodes the specified ResetSequencesRequest message. Does not implicitly {@link tabletmanagerdata.ResetSequencesRequest.verify|verify} messages. + * Encodes the specified VDiffCoreOptions message. Does not implicitly {@link tabletmanagerdata.VDiffCoreOptions.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ResetSequencesRequest + * @memberof tabletmanagerdata.VDiffCoreOptions * @static - * @param {tabletmanagerdata.IResetSequencesRequest} message ResetSequencesRequest message or plain object to encode + * @param {tabletmanagerdata.IVDiffCoreOptions} message VDiffCoreOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetSequencesRequest.encode = function encode(message, writer) { + VDiffCoreOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tables != null && message.tables.length) - for (let i = 0; i < message.tables.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tables[i]); + if (message.tables != null && Object.hasOwnProperty.call(message, "tables")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tables); + if (message.auto_retry != null && Object.hasOwnProperty.call(message, "auto_retry")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.auto_retry); + if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.max_rows); + if (message.checksum != null && Object.hasOwnProperty.call(message, "checksum")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.checksum); + if (message.sample_pct != null && Object.hasOwnProperty.call(message, "sample_pct")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.sample_pct); + if (message.timeout_seconds != null && Object.hasOwnProperty.call(message, "timeout_seconds")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.timeout_seconds); + if (message.max_extra_rows_to_compare != null && Object.hasOwnProperty.call(message, "max_extra_rows_to_compare")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.max_extra_rows_to_compare); + if (message.update_table_stats != null && Object.hasOwnProperty.call(message, "update_table_stats")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.update_table_stats); + if (message.max_diff_seconds != null && Object.hasOwnProperty.call(message, "max_diff_seconds")) + writer.uint32(/* id 9, wireType 0 =*/72).int64(message.max_diff_seconds); + if (message.auto_start != null && Object.hasOwnProperty.call(message, "auto_start")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.auto_start); return writer; }; /** - * Encodes the specified ResetSequencesRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetSequencesRequest.verify|verify} messages. + * Encodes the specified VDiffCoreOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffCoreOptions.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ResetSequencesRequest + * @memberof tabletmanagerdata.VDiffCoreOptions * @static - * @param {tabletmanagerdata.IResetSequencesRequest} message ResetSequencesRequest message or plain object to encode + * @param {tabletmanagerdata.IVDiffCoreOptions} message VDiffCoreOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetSequencesRequest.encodeDelimited = function encodeDelimited(message, writer) { + VDiffCoreOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResetSequencesRequest message from the specified reader or buffer. + * Decodes a VDiffCoreOptions message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ResetSequencesRequest + * @memberof tabletmanagerdata.VDiffCoreOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest + * @returns {tabletmanagerdata.VDiffCoreOptions} VDiffCoreOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetSequencesRequest.decode = function decode(reader, length) { + VDiffCoreOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetSequencesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffCoreOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.push(reader.string()); + message.tables = reader.string(); + break; + } + case 2: { + message.auto_retry = reader.bool(); + break; + } + case 3: { + message.max_rows = reader.int64(); + break; + } + case 4: { + message.checksum = reader.bool(); + break; + } + case 5: { + message.sample_pct = reader.int64(); + break; + } + case 6: { + message.timeout_seconds = reader.int64(); + break; + } + case 7: { + message.max_extra_rows_to_compare = reader.int64(); + break; + } + case 8: { + message.update_table_stats = reader.bool(); + break; + } + case 9: { + message.max_diff_seconds = reader.int64(); + break; + } + case 10: { + message.auto_start = reader.bool(); break; } default: @@ -81295,133 +81277,272 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ResetSequencesRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffCoreOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ResetSequencesRequest + * @memberof tabletmanagerdata.VDiffCoreOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest + * @returns {tabletmanagerdata.VDiffCoreOptions} VDiffCoreOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetSequencesRequest.decodeDelimited = function decodeDelimited(reader) { + VDiffCoreOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResetSequencesRequest message. + * Verifies a VDiffCoreOptions message. * @function verify - * @memberof tabletmanagerdata.ResetSequencesRequest + * @memberof tabletmanagerdata.VDiffCoreOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResetSequencesRequest.verify = function verify(message) { + VDiffCoreOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!Array.isArray(message.tables)) - return "tables: array expected"; - for (let i = 0; i < message.tables.length; ++i) - if (!$util.isString(message.tables[i])) - return "tables: string[] expected"; + let properties = {}; + if (message.tables != null && message.hasOwnProperty("tables")) + if (!$util.isString(message.tables)) + return "tables: string expected"; + if (message.auto_retry != null && message.hasOwnProperty("auto_retry")) + if (typeof message.auto_retry !== "boolean") + return "auto_retry: boolean expected"; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) + return "max_rows: integer|Long expected"; + if (message.checksum != null && message.hasOwnProperty("checksum")) + if (typeof message.checksum !== "boolean") + return "checksum: boolean expected"; + if (message.sample_pct != null && message.hasOwnProperty("sample_pct")) + if (!$util.isInteger(message.sample_pct) && !(message.sample_pct && $util.isInteger(message.sample_pct.low) && $util.isInteger(message.sample_pct.high))) + return "sample_pct: integer|Long expected"; + if (message.timeout_seconds != null && message.hasOwnProperty("timeout_seconds")) + if (!$util.isInteger(message.timeout_seconds) && !(message.timeout_seconds && $util.isInteger(message.timeout_seconds.low) && $util.isInteger(message.timeout_seconds.high))) + return "timeout_seconds: integer|Long expected"; + if (message.max_extra_rows_to_compare != null && message.hasOwnProperty("max_extra_rows_to_compare")) + if (!$util.isInteger(message.max_extra_rows_to_compare) && !(message.max_extra_rows_to_compare && $util.isInteger(message.max_extra_rows_to_compare.low) && $util.isInteger(message.max_extra_rows_to_compare.high))) + return "max_extra_rows_to_compare: integer|Long expected"; + if (message.update_table_stats != null && message.hasOwnProperty("update_table_stats")) + if (typeof message.update_table_stats !== "boolean") + return "update_table_stats: boolean expected"; + if (message.max_diff_seconds != null && message.hasOwnProperty("max_diff_seconds")) + if (!$util.isInteger(message.max_diff_seconds) && !(message.max_diff_seconds && $util.isInteger(message.max_diff_seconds.low) && $util.isInteger(message.max_diff_seconds.high))) + return "max_diff_seconds: integer|Long expected"; + if (message.auto_start != null && message.hasOwnProperty("auto_start")) { + properties._auto_start = 1; + if (typeof message.auto_start !== "boolean") + return "auto_start: boolean expected"; } return null; }; /** - * Creates a ResetSequencesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffCoreOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ResetSequencesRequest + * @memberof tabletmanagerdata.VDiffCoreOptions * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest + * @returns {tabletmanagerdata.VDiffCoreOptions} VDiffCoreOptions */ - ResetSequencesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ResetSequencesRequest) + VDiffCoreOptions.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.VDiffCoreOptions) return object; - let message = new $root.tabletmanagerdata.ResetSequencesRequest(); - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".tabletmanagerdata.ResetSequencesRequest.tables: array expected"); - message.tables = []; - for (let i = 0; i < object.tables.length; ++i) - message.tables[i] = String(object.tables[i]); - } + let message = new $root.tabletmanagerdata.VDiffCoreOptions(); + if (object.tables != null) + message.tables = String(object.tables); + if (object.auto_retry != null) + message.auto_retry = Boolean(object.auto_retry); + if (object.max_rows != null) + if ($util.Long) + (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = false; + else if (typeof object.max_rows === "string") + message.max_rows = parseInt(object.max_rows, 10); + else if (typeof object.max_rows === "number") + message.max_rows = object.max_rows; + else if (typeof object.max_rows === "object") + message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(); + if (object.checksum != null) + message.checksum = Boolean(object.checksum); + if (object.sample_pct != null) + if ($util.Long) + (message.sample_pct = $util.Long.fromValue(object.sample_pct)).unsigned = false; + else if (typeof object.sample_pct === "string") + message.sample_pct = parseInt(object.sample_pct, 10); + else if (typeof object.sample_pct === "number") + message.sample_pct = object.sample_pct; + else if (typeof object.sample_pct === "object") + message.sample_pct = new $util.LongBits(object.sample_pct.low >>> 0, object.sample_pct.high >>> 0).toNumber(); + if (object.timeout_seconds != null) + if ($util.Long) + (message.timeout_seconds = $util.Long.fromValue(object.timeout_seconds)).unsigned = false; + else if (typeof object.timeout_seconds === "string") + message.timeout_seconds = parseInt(object.timeout_seconds, 10); + else if (typeof object.timeout_seconds === "number") + message.timeout_seconds = object.timeout_seconds; + else if (typeof object.timeout_seconds === "object") + message.timeout_seconds = new $util.LongBits(object.timeout_seconds.low >>> 0, object.timeout_seconds.high >>> 0).toNumber(); + if (object.max_extra_rows_to_compare != null) + if ($util.Long) + (message.max_extra_rows_to_compare = $util.Long.fromValue(object.max_extra_rows_to_compare)).unsigned = false; + else if (typeof object.max_extra_rows_to_compare === "string") + message.max_extra_rows_to_compare = parseInt(object.max_extra_rows_to_compare, 10); + else if (typeof object.max_extra_rows_to_compare === "number") + message.max_extra_rows_to_compare = object.max_extra_rows_to_compare; + else if (typeof object.max_extra_rows_to_compare === "object") + message.max_extra_rows_to_compare = new $util.LongBits(object.max_extra_rows_to_compare.low >>> 0, object.max_extra_rows_to_compare.high >>> 0).toNumber(); + if (object.update_table_stats != null) + message.update_table_stats = Boolean(object.update_table_stats); + if (object.max_diff_seconds != null) + if ($util.Long) + (message.max_diff_seconds = $util.Long.fromValue(object.max_diff_seconds)).unsigned = false; + else if (typeof object.max_diff_seconds === "string") + message.max_diff_seconds = parseInt(object.max_diff_seconds, 10); + else if (typeof object.max_diff_seconds === "number") + message.max_diff_seconds = object.max_diff_seconds; + else if (typeof object.max_diff_seconds === "object") + message.max_diff_seconds = new $util.LongBits(object.max_diff_seconds.low >>> 0, object.max_diff_seconds.high >>> 0).toNumber(); + if (object.auto_start != null) + message.auto_start = Boolean(object.auto_start); return message; }; /** - * Creates a plain object from a ResetSequencesRequest message. Also converts values to other types if specified. + * Creates a plain object from a VDiffCoreOptions message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ResetSequencesRequest + * @memberof tabletmanagerdata.VDiffCoreOptions * @static - * @param {tabletmanagerdata.ResetSequencesRequest} message ResetSequencesRequest + * @param {tabletmanagerdata.VDiffCoreOptions} message VDiffCoreOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResetSequencesRequest.toObject = function toObject(message, options) { + VDiffCoreOptions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.tables = []; - if (message.tables && message.tables.length) { - object.tables = []; - for (let j = 0; j < message.tables.length; ++j) - object.tables[j] = message.tables[j]; + if (options.defaults) { + object.tables = ""; + object.auto_retry = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_rows = options.longs === String ? "0" : 0; + object.checksum = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.sample_pct = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sample_pct = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.timeout_seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timeout_seconds = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.max_extra_rows_to_compare = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_extra_rows_to_compare = options.longs === String ? "0" : 0; + object.update_table_stats = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.max_diff_seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_diff_seconds = options.longs === String ? "0" : 0; + } + if (message.tables != null && message.hasOwnProperty("tables")) + object.tables = message.tables; + if (message.auto_retry != null && message.hasOwnProperty("auto_retry")) + object.auto_retry = message.auto_retry; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (typeof message.max_rows === "number") + object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; + else + object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber() : message.max_rows; + if (message.checksum != null && message.hasOwnProperty("checksum")) + object.checksum = message.checksum; + if (message.sample_pct != null && message.hasOwnProperty("sample_pct")) + if (typeof message.sample_pct === "number") + object.sample_pct = options.longs === String ? String(message.sample_pct) : message.sample_pct; + else + object.sample_pct = options.longs === String ? $util.Long.prototype.toString.call(message.sample_pct) : options.longs === Number ? new $util.LongBits(message.sample_pct.low >>> 0, message.sample_pct.high >>> 0).toNumber() : message.sample_pct; + if (message.timeout_seconds != null && message.hasOwnProperty("timeout_seconds")) + if (typeof message.timeout_seconds === "number") + object.timeout_seconds = options.longs === String ? String(message.timeout_seconds) : message.timeout_seconds; + else + object.timeout_seconds = options.longs === String ? $util.Long.prototype.toString.call(message.timeout_seconds) : options.longs === Number ? new $util.LongBits(message.timeout_seconds.low >>> 0, message.timeout_seconds.high >>> 0).toNumber() : message.timeout_seconds; + if (message.max_extra_rows_to_compare != null && message.hasOwnProperty("max_extra_rows_to_compare")) + if (typeof message.max_extra_rows_to_compare === "number") + object.max_extra_rows_to_compare = options.longs === String ? String(message.max_extra_rows_to_compare) : message.max_extra_rows_to_compare; + else + object.max_extra_rows_to_compare = options.longs === String ? $util.Long.prototype.toString.call(message.max_extra_rows_to_compare) : options.longs === Number ? new $util.LongBits(message.max_extra_rows_to_compare.low >>> 0, message.max_extra_rows_to_compare.high >>> 0).toNumber() : message.max_extra_rows_to_compare; + if (message.update_table_stats != null && message.hasOwnProperty("update_table_stats")) + object.update_table_stats = message.update_table_stats; + if (message.max_diff_seconds != null && message.hasOwnProperty("max_diff_seconds")) + if (typeof message.max_diff_seconds === "number") + object.max_diff_seconds = options.longs === String ? String(message.max_diff_seconds) : message.max_diff_seconds; + else + object.max_diff_seconds = options.longs === String ? $util.Long.prototype.toString.call(message.max_diff_seconds) : options.longs === Number ? new $util.LongBits(message.max_diff_seconds.low >>> 0, message.max_diff_seconds.high >>> 0).toNumber() : message.max_diff_seconds; + if (message.auto_start != null && message.hasOwnProperty("auto_start")) { + object.auto_start = message.auto_start; + if (options.oneofs) + object._auto_start = "auto_start"; } return object; }; /** - * Converts this ResetSequencesRequest to JSON. + * Converts this VDiffCoreOptions to JSON. * @function toJSON - * @memberof tabletmanagerdata.ResetSequencesRequest + * @memberof tabletmanagerdata.VDiffCoreOptions * @instance * @returns {Object.} JSON object */ - ResetSequencesRequest.prototype.toJSON = function toJSON() { + VDiffCoreOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResetSequencesRequest + * Gets the default type url for VDiffCoreOptions * @function getTypeUrl - * @memberof tabletmanagerdata.ResetSequencesRequest + * @memberof tabletmanagerdata.VDiffCoreOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResetSequencesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffCoreOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ResetSequencesRequest"; + return typeUrlPrefix + "/tabletmanagerdata.VDiffCoreOptions"; }; - return ResetSequencesRequest; + return VDiffCoreOptions; })(); - tabletmanagerdata.ResetSequencesResponse = (function() { + tabletmanagerdata.VDiffOptions = (function() { /** - * Properties of a ResetSequencesResponse. + * Properties of a VDiffOptions. * @memberof tabletmanagerdata - * @interface IResetSequencesResponse + * @interface IVDiffOptions + * @property {tabletmanagerdata.IVDiffPickerOptions|null} [picker_options] VDiffOptions picker_options + * @property {tabletmanagerdata.IVDiffCoreOptions|null} [core_options] VDiffOptions core_options + * @property {tabletmanagerdata.IVDiffReportOptions|null} [report_options] VDiffOptions report_options */ /** - * Constructs a new ResetSequencesResponse. + * Constructs a new VDiffOptions. * @memberof tabletmanagerdata - * @classdesc Represents a ResetSequencesResponse. - * @implements IResetSequencesResponse + * @classdesc Represents a VDiffOptions. + * @implements IVDiffOptions * @constructor - * @param {tabletmanagerdata.IResetSequencesResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IVDiffOptions=} [properties] Properties to set */ - function ResetSequencesResponse(properties) { + function VDiffOptions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81429,63 +81550,105 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * Creates a new ResetSequencesResponse instance using the specified properties. + * VDiffOptions picker_options. + * @member {tabletmanagerdata.IVDiffPickerOptions|null|undefined} picker_options + * @memberof tabletmanagerdata.VDiffOptions + * @instance + */ + VDiffOptions.prototype.picker_options = null; + + /** + * VDiffOptions core_options. + * @member {tabletmanagerdata.IVDiffCoreOptions|null|undefined} core_options + * @memberof tabletmanagerdata.VDiffOptions + * @instance + */ + VDiffOptions.prototype.core_options = null; + + /** + * VDiffOptions report_options. + * @member {tabletmanagerdata.IVDiffReportOptions|null|undefined} report_options + * @memberof tabletmanagerdata.VDiffOptions + * @instance + */ + VDiffOptions.prototype.report_options = null; + + /** + * Creates a new VDiffOptions instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ResetSequencesResponse + * @memberof tabletmanagerdata.VDiffOptions * @static - * @param {tabletmanagerdata.IResetSequencesResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse instance + * @param {tabletmanagerdata.IVDiffOptions=} [properties] Properties to set + * @returns {tabletmanagerdata.VDiffOptions} VDiffOptions instance */ - ResetSequencesResponse.create = function create(properties) { - return new ResetSequencesResponse(properties); + VDiffOptions.create = function create(properties) { + return new VDiffOptions(properties); }; /** - * Encodes the specified ResetSequencesResponse message. Does not implicitly {@link tabletmanagerdata.ResetSequencesResponse.verify|verify} messages. + * Encodes the specified VDiffOptions message. Does not implicitly {@link tabletmanagerdata.VDiffOptions.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ResetSequencesResponse + * @memberof tabletmanagerdata.VDiffOptions * @static - * @param {tabletmanagerdata.IResetSequencesResponse} message ResetSequencesResponse message or plain object to encode + * @param {tabletmanagerdata.IVDiffOptions} message VDiffOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetSequencesResponse.encode = function encode(message, writer) { + VDiffOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.picker_options != null && Object.hasOwnProperty.call(message, "picker_options")) + $root.tabletmanagerdata.VDiffPickerOptions.encode(message.picker_options, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.core_options != null && Object.hasOwnProperty.call(message, "core_options")) + $root.tabletmanagerdata.VDiffCoreOptions.encode(message.core_options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.report_options != null && Object.hasOwnProperty.call(message, "report_options")) + $root.tabletmanagerdata.VDiffReportOptions.encode(message.report_options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ResetSequencesResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetSequencesResponse.verify|verify} messages. + * Encodes the specified VDiffOptions message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffOptions.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ResetSequencesResponse + * @memberof tabletmanagerdata.VDiffOptions * @static - * @param {tabletmanagerdata.IResetSequencesResponse} message ResetSequencesResponse message or plain object to encode + * @param {tabletmanagerdata.IVDiffOptions} message VDiffOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetSequencesResponse.encodeDelimited = function encodeDelimited(message, writer) { + VDiffOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResetSequencesResponse message from the specified reader or buffer. + * Decodes a VDiffOptions message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ResetSequencesResponse + * @memberof tabletmanagerdata.VDiffOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse + * @returns {tabletmanagerdata.VDiffOptions} VDiffOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetSequencesResponse.decode = function decode(reader, length) { + VDiffOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetSequencesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.picker_options = $root.tabletmanagerdata.VDiffPickerOptions.decode(reader, reader.uint32()); + break; + } + case 2: { + message.core_options = $root.tabletmanagerdata.VDiffCoreOptions.decode(reader, reader.uint32()); + break; + } + case 3: { + message.report_options = $root.tabletmanagerdata.VDiffReportOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -81495,112 +81658,155 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ResetSequencesResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ResetSequencesResponse + * @memberof tabletmanagerdata.VDiffOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse + * @returns {tabletmanagerdata.VDiffOptions} VDiffOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetSequencesResponse.decodeDelimited = function decodeDelimited(reader) { + VDiffOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResetSequencesResponse message. + * Verifies a VDiffOptions message. * @function verify - * @memberof tabletmanagerdata.ResetSequencesResponse + * @memberof tabletmanagerdata.VDiffOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResetSequencesResponse.verify = function verify(message) { + VDiffOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.picker_options != null && message.hasOwnProperty("picker_options")) { + let error = $root.tabletmanagerdata.VDiffPickerOptions.verify(message.picker_options); + if (error) + return "picker_options." + error; + } + if (message.core_options != null && message.hasOwnProperty("core_options")) { + let error = $root.tabletmanagerdata.VDiffCoreOptions.verify(message.core_options); + if (error) + return "core_options." + error; + } + if (message.report_options != null && message.hasOwnProperty("report_options")) { + let error = $root.tabletmanagerdata.VDiffReportOptions.verify(message.report_options); + if (error) + return "report_options." + error; + } return null; }; /** - * Creates a ResetSequencesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ResetSequencesResponse + * @memberof tabletmanagerdata.VDiffOptions * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse + * @returns {tabletmanagerdata.VDiffOptions} VDiffOptions */ - ResetSequencesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ResetSequencesResponse) + VDiffOptions.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.VDiffOptions) return object; - return new $root.tabletmanagerdata.ResetSequencesResponse(); + let message = new $root.tabletmanagerdata.VDiffOptions(); + if (object.picker_options != null) { + if (typeof object.picker_options !== "object") + throw TypeError(".tabletmanagerdata.VDiffOptions.picker_options: object expected"); + message.picker_options = $root.tabletmanagerdata.VDiffPickerOptions.fromObject(object.picker_options); + } + if (object.core_options != null) { + if (typeof object.core_options !== "object") + throw TypeError(".tabletmanagerdata.VDiffOptions.core_options: object expected"); + message.core_options = $root.tabletmanagerdata.VDiffCoreOptions.fromObject(object.core_options); + } + if (object.report_options != null) { + if (typeof object.report_options !== "object") + throw TypeError(".tabletmanagerdata.VDiffOptions.report_options: object expected"); + message.report_options = $root.tabletmanagerdata.VDiffReportOptions.fromObject(object.report_options); + } + return message; }; /** - * Creates a plain object from a ResetSequencesResponse message. Also converts values to other types if specified. + * Creates a plain object from a VDiffOptions message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ResetSequencesResponse + * @memberof tabletmanagerdata.VDiffOptions * @static - * @param {tabletmanagerdata.ResetSequencesResponse} message ResetSequencesResponse + * @param {tabletmanagerdata.VDiffOptions} message VDiffOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResetSequencesResponse.toObject = function toObject() { - return {}; + VDiffOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.picker_options = null; + object.core_options = null; + object.report_options = null; + } + if (message.picker_options != null && message.hasOwnProperty("picker_options")) + object.picker_options = $root.tabletmanagerdata.VDiffPickerOptions.toObject(message.picker_options, options); + if (message.core_options != null && message.hasOwnProperty("core_options")) + object.core_options = $root.tabletmanagerdata.VDiffCoreOptions.toObject(message.core_options, options); + if (message.report_options != null && message.hasOwnProperty("report_options")) + object.report_options = $root.tabletmanagerdata.VDiffReportOptions.toObject(message.report_options, options); + return object; }; /** - * Converts this ResetSequencesResponse to JSON. + * Converts this VDiffOptions to JSON. * @function toJSON - * @memberof tabletmanagerdata.ResetSequencesResponse + * @memberof tabletmanagerdata.VDiffOptions * @instance * @returns {Object.} JSON object */ - ResetSequencesResponse.prototype.toJSON = function toJSON() { + VDiffOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResetSequencesResponse + * Gets the default type url for VDiffOptions * @function getTypeUrl - * @memberof tabletmanagerdata.ResetSequencesResponse + * @memberof tabletmanagerdata.VDiffOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResetSequencesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ResetSequencesResponse"; + return typeUrlPrefix + "/tabletmanagerdata.VDiffOptions"; }; - return ResetSequencesResponse; + return VDiffOptions; })(); - tabletmanagerdata.CheckThrottlerRequest = (function() { + tabletmanagerdata.VDiffTableLastPK = (function() { /** - * Properties of a CheckThrottlerRequest. + * Properties of a VDiffTableLastPK. * @memberof tabletmanagerdata - * @interface ICheckThrottlerRequest - * @property {string|null} [app_name] CheckThrottlerRequest app_name - * @property {string|null} [scope] CheckThrottlerRequest scope - * @property {boolean|null} [skip_request_heartbeats] CheckThrottlerRequest skip_request_heartbeats - * @property {boolean|null} [ok_if_not_exists] CheckThrottlerRequest ok_if_not_exists + * @interface IVDiffTableLastPK + * @property {query.IQueryResult|null} [target] VDiffTableLastPK target + * @property {query.IQueryResult|null} [source] VDiffTableLastPK source */ /** - * Constructs a new CheckThrottlerRequest. + * Constructs a new VDiffTableLastPK. * @memberof tabletmanagerdata - * @classdesc Represents a CheckThrottlerRequest. - * @implements ICheckThrottlerRequest + * @classdesc Represents a VDiffTableLastPK. + * @implements IVDiffTableLastPK * @constructor - * @param {tabletmanagerdata.ICheckThrottlerRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IVDiffTableLastPK=} [properties] Properties to set */ - function CheckThrottlerRequest(properties) { + function VDiffTableLastPK(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81608,117 +81814,98 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * CheckThrottlerRequest app_name. - * @member {string} app_name - * @memberof tabletmanagerdata.CheckThrottlerRequest + * VDiffTableLastPK target. + * @member {query.IQueryResult|null|undefined} target + * @memberof tabletmanagerdata.VDiffTableLastPK * @instance */ - CheckThrottlerRequest.prototype.app_name = ""; + VDiffTableLastPK.prototype.target = null; /** - * CheckThrottlerRequest scope. - * @member {string} scope - * @memberof tabletmanagerdata.CheckThrottlerRequest + * VDiffTableLastPK source. + * @member {query.IQueryResult|null|undefined} source + * @memberof tabletmanagerdata.VDiffTableLastPK * @instance */ - CheckThrottlerRequest.prototype.scope = ""; + VDiffTableLastPK.prototype.source = null; - /** - * CheckThrottlerRequest skip_request_heartbeats. - * @member {boolean} skip_request_heartbeats - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @instance - */ - CheckThrottlerRequest.prototype.skip_request_heartbeats = false; + // OneOf field names bound to virtual getters and setters + let $oneOfFields; - /** - * CheckThrottlerRequest ok_if_not_exists. - * @member {boolean} ok_if_not_exists - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @instance - */ - CheckThrottlerRequest.prototype.ok_if_not_exists = false; + // Virtual OneOf for proto3 optional field + Object.defineProperty(VDiffTableLastPK.prototype, "_source", { + get: $util.oneOfGetter($oneOfFields = ["source"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new CheckThrottlerRequest instance using the specified properties. + * Creates a new VDiffTableLastPK instance using the specified properties. * @function create - * @memberof tabletmanagerdata.CheckThrottlerRequest + * @memberof tabletmanagerdata.VDiffTableLastPK * @static - * @param {tabletmanagerdata.ICheckThrottlerRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest instance + * @param {tabletmanagerdata.IVDiffTableLastPK=} [properties] Properties to set + * @returns {tabletmanagerdata.VDiffTableLastPK} VDiffTableLastPK instance */ - CheckThrottlerRequest.create = function create(properties) { - return new CheckThrottlerRequest(properties); + VDiffTableLastPK.create = function create(properties) { + return new VDiffTableLastPK(properties); }; /** - * Encodes the specified CheckThrottlerRequest message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerRequest.verify|verify} messages. + * Encodes the specified VDiffTableLastPK message. Does not implicitly {@link tabletmanagerdata.VDiffTableLastPK.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.CheckThrottlerRequest + * @memberof tabletmanagerdata.VDiffTableLastPK * @static - * @param {tabletmanagerdata.ICheckThrottlerRequest} message CheckThrottlerRequest message or plain object to encode + * @param {tabletmanagerdata.IVDiffTableLastPK} message VDiffTableLastPK message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckThrottlerRequest.encode = function encode(message, writer) { + VDiffTableLastPK.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.app_name != null && Object.hasOwnProperty.call(message, "app_name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.app_name); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.scope); - if (message.skip_request_heartbeats != null && Object.hasOwnProperty.call(message, "skip_request_heartbeats")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.skip_request_heartbeats); - if (message.ok_if_not_exists != null && Object.hasOwnProperty.call(message, "ok_if_not_exists")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.ok_if_not_exists); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.QueryResult.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + $root.query.QueryResult.encode(message.source, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CheckThrottlerRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerRequest.verify|verify} messages. + * Encodes the specified VDiffTableLastPK message, length delimited. Does not implicitly {@link tabletmanagerdata.VDiffTableLastPK.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.CheckThrottlerRequest + * @memberof tabletmanagerdata.VDiffTableLastPK * @static - * @param {tabletmanagerdata.ICheckThrottlerRequest} message CheckThrottlerRequest message or plain object to encode + * @param {tabletmanagerdata.IVDiffTableLastPK} message VDiffTableLastPK message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckThrottlerRequest.encodeDelimited = function encodeDelimited(message, writer) { + VDiffTableLastPK.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CheckThrottlerRequest message from the specified reader or buffer. + * Decodes a VDiffTableLastPK message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.CheckThrottlerRequest + * @memberof tabletmanagerdata.VDiffTableLastPK * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest + * @returns {tabletmanagerdata.VDiffTableLastPK} VDiffTableLastPK * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckThrottlerRequest.decode = function decode(reader, length) { + VDiffTableLastPK.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CheckThrottlerRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.VDiffTableLastPK(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.app_name = reader.string(); + message.target = $root.query.QueryResult.decode(reader, reader.uint32()); break; } case 2: { - message.scope = reader.string(); - break; - } - case 3: { - message.skip_request_heartbeats = reader.bool(); - break; - } - case 4: { - message.ok_if_not_exists = reader.bool(); + message.source = $root.query.QueryResult.decode(reader, reader.uint32()); break; } default: @@ -81730,178 +81917,158 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a CheckThrottlerRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffTableLastPK message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.CheckThrottlerRequest + * @memberof tabletmanagerdata.VDiffTableLastPK * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest + * @returns {tabletmanagerdata.VDiffTableLastPK} VDiffTableLastPK * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckThrottlerRequest.decodeDelimited = function decodeDelimited(reader) { + VDiffTableLastPK.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CheckThrottlerRequest message. + * Verifies a VDiffTableLastPK message. * @function verify - * @memberof tabletmanagerdata.CheckThrottlerRequest + * @memberof tabletmanagerdata.VDiffTableLastPK * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CheckThrottlerRequest.verify = function verify(message) { + VDiffTableLastPK.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.app_name != null && message.hasOwnProperty("app_name")) - if (!$util.isString(message.app_name)) - return "app_name: string expected"; - if (message.scope != null && message.hasOwnProperty("scope")) - if (!$util.isString(message.scope)) - return "scope: string expected"; - if (message.skip_request_heartbeats != null && message.hasOwnProperty("skip_request_heartbeats")) - if (typeof message.skip_request_heartbeats !== "boolean") - return "skip_request_heartbeats: boolean expected"; - if (message.ok_if_not_exists != null && message.hasOwnProperty("ok_if_not_exists")) - if (typeof message.ok_if_not_exists !== "boolean") - return "ok_if_not_exists: boolean expected"; + let properties = {}; + if (message.target != null && message.hasOwnProperty("target")) { + let error = $root.query.QueryResult.verify(message.target); + if (error) + return "target." + error; + } + if (message.source != null && message.hasOwnProperty("source")) { + properties._source = 1; + { + let error = $root.query.QueryResult.verify(message.source); + if (error) + return "source." + error; + } + } return null; }; /** - * Creates a CheckThrottlerRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffTableLastPK message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.CheckThrottlerRequest + * @memberof tabletmanagerdata.VDiffTableLastPK * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest + * @returns {tabletmanagerdata.VDiffTableLastPK} VDiffTableLastPK */ - CheckThrottlerRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.CheckThrottlerRequest) + VDiffTableLastPK.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.VDiffTableLastPK) return object; - let message = new $root.tabletmanagerdata.CheckThrottlerRequest(); - if (object.app_name != null) - message.app_name = String(object.app_name); - if (object.scope != null) - message.scope = String(object.scope); - if (object.skip_request_heartbeats != null) - message.skip_request_heartbeats = Boolean(object.skip_request_heartbeats); - if (object.ok_if_not_exists != null) - message.ok_if_not_exists = Boolean(object.ok_if_not_exists); + let message = new $root.tabletmanagerdata.VDiffTableLastPK(); + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".tabletmanagerdata.VDiffTableLastPK.target: object expected"); + message.target = $root.query.QueryResult.fromObject(object.target); + } + if (object.source != null) { + if (typeof object.source !== "object") + throw TypeError(".tabletmanagerdata.VDiffTableLastPK.source: object expected"); + message.source = $root.query.QueryResult.fromObject(object.source); + } return message; }; /** - * Creates a plain object from a CheckThrottlerRequest message. Also converts values to other types if specified. + * Creates a plain object from a VDiffTableLastPK message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.CheckThrottlerRequest + * @memberof tabletmanagerdata.VDiffTableLastPK * @static - * @param {tabletmanagerdata.CheckThrottlerRequest} message CheckThrottlerRequest + * @param {tabletmanagerdata.VDiffTableLastPK} message VDiffTableLastPK * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CheckThrottlerRequest.toObject = function toObject(message, options) { + VDiffTableLastPK.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.app_name = ""; - object.scope = ""; - object.skip_request_heartbeats = false; - object.ok_if_not_exists = false; + if (options.defaults) + object.target = null; + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.QueryResult.toObject(message.target, options); + if (message.source != null && message.hasOwnProperty("source")) { + object.source = $root.query.QueryResult.toObject(message.source, options); + if (options.oneofs) + object._source = "source"; } - if (message.app_name != null && message.hasOwnProperty("app_name")) - object.app_name = message.app_name; - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = message.scope; - if (message.skip_request_heartbeats != null && message.hasOwnProperty("skip_request_heartbeats")) - object.skip_request_heartbeats = message.skip_request_heartbeats; - if (message.ok_if_not_exists != null && message.hasOwnProperty("ok_if_not_exists")) - object.ok_if_not_exists = message.ok_if_not_exists; return object; }; /** - * Converts this CheckThrottlerRequest to JSON. + * Converts this VDiffTableLastPK to JSON. * @function toJSON - * @memberof tabletmanagerdata.CheckThrottlerRequest + * @memberof tabletmanagerdata.VDiffTableLastPK * @instance * @returns {Object.} JSON object */ - CheckThrottlerRequest.prototype.toJSON = function toJSON() { + VDiffTableLastPK.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CheckThrottlerRequest + * Gets the default type url for VDiffTableLastPK * @function getTypeUrl - * @memberof tabletmanagerdata.CheckThrottlerRequest + * @memberof tabletmanagerdata.VDiffTableLastPK * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CheckThrottlerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffTableLastPK.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.CheckThrottlerRequest"; + return typeUrlPrefix + "/tabletmanagerdata.VDiffTableLastPK"; }; - return CheckThrottlerRequest; - })(); - - /** - * CheckThrottlerResponseCode enum. - * @name tabletmanagerdata.CheckThrottlerResponseCode - * @enum {number} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} OK=1 OK value - * @property {number} THRESHOLD_EXCEEDED=2 THRESHOLD_EXCEEDED value - * @property {number} APP_DENIED=3 APP_DENIED value - * @property {number} UNKNOWN_METRIC=4 UNKNOWN_METRIC value - * @property {number} INTERNAL_ERROR=5 INTERNAL_ERROR value - */ - tabletmanagerdata.CheckThrottlerResponseCode = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "OK"] = 1; - values[valuesById[2] = "THRESHOLD_EXCEEDED"] = 2; - values[valuesById[3] = "APP_DENIED"] = 3; - values[valuesById[4] = "UNKNOWN_METRIC"] = 4; - values[valuesById[5] = "INTERNAL_ERROR"] = 5; - return values; + return VDiffTableLastPK; })(); - tabletmanagerdata.CheckThrottlerResponse = (function() { + tabletmanagerdata.UpdateVReplicationWorkflowRequest = (function() { /** - * Properties of a CheckThrottlerResponse. + * Properties of an UpdateVReplicationWorkflowRequest. * @memberof tabletmanagerdata - * @interface ICheckThrottlerResponse - * @property {number|null} [value] CheckThrottlerResponse value - * @property {number|null} [threshold] CheckThrottlerResponse threshold - * @property {string|null} [error] CheckThrottlerResponse error - * @property {string|null} [message] CheckThrottlerResponse message - * @property {boolean|null} [recently_checked] CheckThrottlerResponse recently_checked - * @property {Object.|null} [metrics] CheckThrottlerResponse metrics - * @property {string|null} [app_name] CheckThrottlerResponse app_name - * @property {string|null} [summary] CheckThrottlerResponse summary - * @property {tabletmanagerdata.CheckThrottlerResponseCode|null} [response_code] CheckThrottlerResponse response_code + * @interface IUpdateVReplicationWorkflowRequest + * @property {string|null} [workflow] UpdateVReplicationWorkflowRequest workflow + * @property {Array.|null} [cells] UpdateVReplicationWorkflowRequest cells + * @property {Array.|null} [tablet_types] UpdateVReplicationWorkflowRequest tablet_types + * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] UpdateVReplicationWorkflowRequest tablet_selection_preference + * @property {binlogdata.OnDDLAction|null} [on_ddl] UpdateVReplicationWorkflowRequest on_ddl + * @property {binlogdata.VReplicationWorkflowState|null} [state] UpdateVReplicationWorkflowRequest state + * @property {Array.|null} [shards] UpdateVReplicationWorkflowRequest shards + * @property {Object.|null} [config_overrides] UpdateVReplicationWorkflowRequest config_overrides + * @property {string|null} [message] UpdateVReplicationWorkflowRequest message */ /** - * Constructs a new CheckThrottlerResponse. + * Constructs a new UpdateVReplicationWorkflowRequest. * @memberof tabletmanagerdata - * @classdesc Represents a CheckThrottlerResponse. - * @implements ICheckThrottlerResponse + * @classdesc Represents an UpdateVReplicationWorkflowRequest. + * @implements IUpdateVReplicationWorkflowRequest * @constructor - * @param {tabletmanagerdata.ICheckThrottlerResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest=} [properties] Properties to set */ - function CheckThrottlerResponse(properties) { - this.metrics = {}; + function UpdateVReplicationWorkflowRequest(properties) { + this.cells = []; + this.tablet_types = []; + this.shards = []; + this.config_overrides = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81909,182 +82076,232 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * CheckThrottlerResponse value. - * @member {number} value - * @memberof tabletmanagerdata.CheckThrottlerResponse + * UpdateVReplicationWorkflowRequest workflow. + * @member {string} workflow + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance */ - CheckThrottlerResponse.prototype.value = 0; + UpdateVReplicationWorkflowRequest.prototype.workflow = ""; /** - * CheckThrottlerResponse threshold. - * @member {number} threshold - * @memberof tabletmanagerdata.CheckThrottlerResponse + * UpdateVReplicationWorkflowRequest cells. + * @member {Array.} cells + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance */ - CheckThrottlerResponse.prototype.threshold = 0; + UpdateVReplicationWorkflowRequest.prototype.cells = $util.emptyArray; /** - * CheckThrottlerResponse error. - * @member {string} error - * @memberof tabletmanagerdata.CheckThrottlerResponse + * UpdateVReplicationWorkflowRequest tablet_types. + * @member {Array.} tablet_types + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance */ - CheckThrottlerResponse.prototype.error = ""; + UpdateVReplicationWorkflowRequest.prototype.tablet_types = $util.emptyArray; /** - * CheckThrottlerResponse message. - * @member {string} message - * @memberof tabletmanagerdata.CheckThrottlerResponse + * UpdateVReplicationWorkflowRequest tablet_selection_preference. + * @member {tabletmanagerdata.TabletSelectionPreference|null|undefined} tablet_selection_preference + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance */ - CheckThrottlerResponse.prototype.message = ""; + UpdateVReplicationWorkflowRequest.prototype.tablet_selection_preference = null; /** - * CheckThrottlerResponse recently_checked. - * @member {boolean} recently_checked - * @memberof tabletmanagerdata.CheckThrottlerResponse + * UpdateVReplicationWorkflowRequest on_ddl. + * @member {binlogdata.OnDDLAction|null|undefined} on_ddl + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance */ - CheckThrottlerResponse.prototype.recently_checked = false; + UpdateVReplicationWorkflowRequest.prototype.on_ddl = null; /** - * CheckThrottlerResponse metrics. - * @member {Object.} metrics - * @memberof tabletmanagerdata.CheckThrottlerResponse + * UpdateVReplicationWorkflowRequest state. + * @member {binlogdata.VReplicationWorkflowState|null|undefined} state + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance */ - CheckThrottlerResponse.prototype.metrics = $util.emptyObject; + UpdateVReplicationWorkflowRequest.prototype.state = null; /** - * CheckThrottlerResponse app_name. - * @member {string} app_name - * @memberof tabletmanagerdata.CheckThrottlerResponse + * UpdateVReplicationWorkflowRequest shards. + * @member {Array.} shards + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance */ - CheckThrottlerResponse.prototype.app_name = ""; + UpdateVReplicationWorkflowRequest.prototype.shards = $util.emptyArray; /** - * CheckThrottlerResponse summary. - * @member {string} summary - * @memberof tabletmanagerdata.CheckThrottlerResponse + * UpdateVReplicationWorkflowRequest config_overrides. + * @member {Object.} config_overrides + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance */ - CheckThrottlerResponse.prototype.summary = ""; + UpdateVReplicationWorkflowRequest.prototype.config_overrides = $util.emptyObject; /** - * CheckThrottlerResponse response_code. - * @member {tabletmanagerdata.CheckThrottlerResponseCode} response_code - * @memberof tabletmanagerdata.CheckThrottlerResponse + * UpdateVReplicationWorkflowRequest message. + * @member {string|null|undefined} message + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance */ - CheckThrottlerResponse.prototype.response_code = 0; + UpdateVReplicationWorkflowRequest.prototype.message = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_tablet_selection_preference", { + get: $util.oneOfGetter($oneOfFields = ["tablet_selection_preference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_on_ddl", { + get: $util.oneOfGetter($oneOfFields = ["on_ddl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_state", { + get: $util.oneOfGetter($oneOfFields = ["state"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_message", { + get: $util.oneOfGetter($oneOfFields = ["message"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new CheckThrottlerResponse instance using the specified properties. + * Creates a new UpdateVReplicationWorkflowRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.CheckThrottlerResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.ICheckThrottlerResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse instance + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest instance */ - CheckThrottlerResponse.create = function create(properties) { - return new CheckThrottlerResponse(properties); + UpdateVReplicationWorkflowRequest.create = function create(properties) { + return new UpdateVReplicationWorkflowRequest(properties); }; /** - * Encodes the specified CheckThrottlerResponse message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.verify|verify} messages. + * Encodes the specified UpdateVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.CheckThrottlerResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.ICheckThrottlerResponse} message CheckThrottlerResponse message or plain object to encode + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest} message UpdateVReplicationWorkflowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckThrottlerResponse.encode = function encode(message, writer) { + UpdateVReplicationWorkflowRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.value); - if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.threshold); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.error); + if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); + if (message.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); + if (message.tablet_types != null && message.tablet_types.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (let i = 0; i < message.tablet_types.length; ++i) + writer.int32(message.tablet_types[i]); + writer.ldelim(); + } + if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.tablet_selection_preference); + if (message.on_ddl != null && Object.hasOwnProperty.call(message, "on_ddl")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.on_ddl); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.shards != null && message.shards.length) + for (let i = 0; i < message.shards.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.shards[i]); + if (message.config_overrides != null && Object.hasOwnProperty.call(message, "config_overrides")) + for (let keys = Object.keys(message.config_overrides), i = 0; i < keys.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config_overrides[keys[i]]).ldelim(); if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.message); - if (message.recently_checked != null && Object.hasOwnProperty.call(message, "recently_checked")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.recently_checked); - if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) - for (let keys = Object.keys(message.metrics), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.tabletmanagerdata.CheckThrottlerResponse.Metric.encode(message.metrics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.app_name != null && Object.hasOwnProperty.call(message, "app_name")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.app_name); - if (message.summary != null && Object.hasOwnProperty.call(message, "summary")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.summary); - if (message.response_code != null && Object.hasOwnProperty.call(message, "response_code")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.response_code); + writer.uint32(/* id 9, wireType 2 =*/74).string(message.message); return writer; }; /** - * Encodes the specified CheckThrottlerResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.verify|verify} messages. + * Encodes the specified UpdateVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.CheckThrottlerResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.ICheckThrottlerResponse} message CheckThrottlerResponse message or plain object to encode + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest} message UpdateVReplicationWorkflowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckThrottlerResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVReplicationWorkflowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CheckThrottlerResponse message from the specified reader or buffer. + * Decodes an UpdateVReplicationWorkflowRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.CheckThrottlerResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckThrottlerResponse.decode = function decode(reader, length) { + UpdateVReplicationWorkflowRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CheckThrottlerResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.workflow = reader.string(); + break; + } case 2: { - message.value = reader.double(); + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; } case 3: { - message.threshold = reader.double(); + if (!(message.tablet_types && message.tablet_types.length)) + message.tablet_types = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.tablet_types.push(reader.int32()); + } else + message.tablet_types.push(reader.int32()); break; } case 4: { - message.error = reader.string(); + message.tablet_selection_preference = reader.int32(); break; } case 5: { - message.message = reader.string(); + message.on_ddl = reader.int32(); break; } case 6: { - message.recently_checked = reader.bool(); + message.state = reader.int32(); break; } case 7: { - if (message.metrics === $util.emptyObject) - message.metrics = {}; + if (!(message.shards && message.shards.length)) + message.shards = []; + message.shards.push(reader.string()); + break; + } + case 8: { + if (message.config_overrides === $util.emptyObject) + message.config_overrides = {}; let end2 = reader.uint32() + reader.pos; key = ""; - value = null; + value = ""; while (reader.pos < end2) { let tag2 = reader.uint32(); switch (tag2 >>> 3) { @@ -82092,26 +82309,18 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { key = reader.string(); break; case 2: - value = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.decode(reader, reader.uint32()); + value = reader.string(); break; default: reader.skipType(tag2 & 7); break; } } - message.metrics[key] = value; - break; - } - case 8: { - message.app_name = reader.string(); + message.config_overrides[key] = value; break; } case 9: { - message.summary = reader.string(); - break; - } - case 10: { - message.response_code = reader.int32(); + message.message = reader.string(); break; } default: @@ -82123,690 +82332,495 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a CheckThrottlerResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.CheckThrottlerResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckThrottlerResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateVReplicationWorkflowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CheckThrottlerResponse message. + * Verifies an UpdateVReplicationWorkflowRequest message. * @function verify - * @memberof tabletmanagerdata.CheckThrottlerResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CheckThrottlerResponse.verify = function verify(message) { + UpdateVReplicationWorkflowRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - if (message.threshold != null && message.hasOwnProperty("threshold")) - if (typeof message.threshold !== "number") - return "threshold: number expected"; - if (message.error != null && message.hasOwnProperty("error")) - if (!$util.isString(message.error)) - return "error: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) - if (typeof message.recently_checked !== "boolean") - return "recently_checked: boolean expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - if (!$util.isObject(message.metrics)) - return "metrics: object expected"; - let key = Object.keys(message.metrics); - for (let i = 0; i < key.length; ++i) { - let error = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.verify(message.metrics[key[i]]); - if (error) - return "metrics." + error; + let properties = {}; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { + if (!Array.isArray(message.tablet_types)) + return "tablet_types: array expected"; + for (let i = 0; i < message.tablet_types.length; ++i) + switch (message.tablet_types[i]) { + default: + return "tablet_types: enum value[] expected"; + case 0: + case 1: + case 1: + case 2: + case 3: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) { + properties._tablet_selection_preference = 1; + switch (message.tablet_selection_preference) { + default: + return "tablet_selection_preference: enum value expected"; + case 0: + case 1: + case 3: + break; } } - if (message.app_name != null && message.hasOwnProperty("app_name")) - if (!$util.isString(message.app_name)) - return "app_name: string expected"; - if (message.summary != null && message.hasOwnProperty("summary")) - if (!$util.isString(message.summary)) - return "summary: string expected"; - if (message.response_code != null && message.hasOwnProperty("response_code")) - switch (message.response_code) { + if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) { + properties._on_ddl = 1; + switch (message.on_ddl) { default: - return "response_code: enum value expected"; + return "on_ddl: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + if (message.state != null && message.hasOwnProperty("state")) { + properties._state = 1; + switch (message.state) { + default: + return "state: enum value expected"; case 0: case 1: case 2: case 3: case 4: case 5: + case 6: break; } + } + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!Array.isArray(message.shards)) + return "shards: array expected"; + for (let i = 0; i < message.shards.length; ++i) + if (!$util.isString(message.shards[i])) + return "shards: string[] expected"; + } + if (message.config_overrides != null && message.hasOwnProperty("config_overrides")) { + if (!$util.isObject(message.config_overrides)) + return "config_overrides: object expected"; + let key = Object.keys(message.config_overrides); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.config_overrides[key[i]])) + return "config_overrides: string{k:string} expected"; + } + if (message.message != null && message.hasOwnProperty("message")) { + properties._message = 1; + if (!$util.isString(message.message)) + return "message: string expected"; + } return null; }; /** - * Creates a CheckThrottlerResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.CheckThrottlerResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest */ - CheckThrottlerResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.CheckThrottlerResponse) + UpdateVReplicationWorkflowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest) return object; - let message = new $root.tabletmanagerdata.CheckThrottlerResponse(); - if (object.value != null) - message.value = Number(object.value); - if (object.threshold != null) - message.threshold = Number(object.threshold); - if (object.error != null) - message.error = String(object.error); - if (object.message != null) - message.message = String(object.message); - if (object.recently_checked != null) - message.recently_checked = Boolean(object.recently_checked); - if (object.metrics) { - if (typeof object.metrics !== "object") - throw TypeError(".tabletmanagerdata.CheckThrottlerResponse.metrics: object expected"); - message.metrics = {}; - for (let keys = Object.keys(object.metrics), i = 0; i < keys.length; ++i) { - if (typeof object.metrics[keys[i]] !== "object") - throw TypeError(".tabletmanagerdata.CheckThrottlerResponse.metrics: object expected"); - message.metrics[keys[i]] = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.fromObject(object.metrics[keys[i]]); + let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest(); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } + if (object.tablet_types) { + if (!Array.isArray(object.tablet_types)) + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.tablet_types: array expected"); + message.tablet_types = []; + for (let i = 0; i < object.tablet_types.length; ++i) + switch (object.tablet_types[i]) { + default: + if (typeof object.tablet_types[i] === "number") { + message.tablet_types[i] = object.tablet_types[i]; + break; + } + case "UNKNOWN": + case 0: + message.tablet_types[i] = 0; + break; + case "PRIMARY": + case 1: + message.tablet_types[i] = 1; + break; + case "MASTER": + case 1: + message.tablet_types[i] = 1; + break; + case "REPLICA": + case 2: + message.tablet_types[i] = 2; + break; + case "RDONLY": + case 3: + message.tablet_types[i] = 3; + break; + case "BATCH": + case 3: + message.tablet_types[i] = 3; + break; + case "SPARE": + case 4: + message.tablet_types[i] = 4; + break; + case "EXPERIMENTAL": + case 5: + message.tablet_types[i] = 5; + break; + case "BACKUP": + case 6: + message.tablet_types[i] = 6; + break; + case "RESTORE": + case 7: + message.tablet_types[i] = 7; + break; + case "DRAINED": + case 8: + message.tablet_types[i] = 8; + break; + } + } + switch (object.tablet_selection_preference) { + default: + if (typeof object.tablet_selection_preference === "number") { + message.tablet_selection_preference = object.tablet_selection_preference; + break; } + break; + case "ANY": + case 0: + message.tablet_selection_preference = 0; + break; + case "INORDER": + case 1: + message.tablet_selection_preference = 1; + break; + case "UNKNOWN": + case 3: + message.tablet_selection_preference = 3; + break; } - if (object.app_name != null) - message.app_name = String(object.app_name); - if (object.summary != null) - message.summary = String(object.summary); - switch (object.response_code) { + switch (object.on_ddl) { default: - if (typeof object.response_code === "number") { - message.response_code = object.response_code; + if (typeof object.on_ddl === "number") { + message.on_ddl = object.on_ddl; break; } break; - case "UNDEFINED": + case "IGNORE": case 0: - message.response_code = 0; + message.on_ddl = 0; break; - case "OK": + case "STOP": case 1: - message.response_code = 1; + message.on_ddl = 1; break; - case "THRESHOLD_EXCEEDED": + case "EXEC": case 2: - message.response_code = 2; + message.on_ddl = 2; break; - case "APP_DENIED": + case "EXEC_IGNORE": case 3: - message.response_code = 3; + message.on_ddl = 3; break; - case "UNKNOWN_METRIC": + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "Unknown": + case 0: + message.state = 0; + break; + case "Init": + case 1: + message.state = 1; + break; + case "Stopped": + case 2: + message.state = 2; + break; + case "Copying": + case 3: + message.state = 3; + break; + case "Running": case 4: - message.response_code = 4; + message.state = 4; break; - case "INTERNAL_ERROR": + case "Error": case 5: - message.response_code = 5; + message.state = 5; + break; + case "Lagging": + case 6: + message.state = 6; break; } + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.shards: array expected"); + message.shards = []; + for (let i = 0; i < object.shards.length; ++i) + message.shards[i] = String(object.shards[i]); + } + if (object.config_overrides) { + if (typeof object.config_overrides !== "object") + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.config_overrides: object expected"); + message.config_overrides = {}; + for (let keys = Object.keys(object.config_overrides), i = 0; i < keys.length; ++i) + message.config_overrides[keys[i]] = String(object.config_overrides[keys[i]]); + } + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a CheckThrottlerResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateVReplicationWorkflowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.CheckThrottlerResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static - * @param {tabletmanagerdata.CheckThrottlerResponse} message CheckThrottlerResponse + * @param {tabletmanagerdata.UpdateVReplicationWorkflowRequest} message UpdateVReplicationWorkflowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CheckThrottlerResponse.toObject = function toObject(message, options) { + UpdateVReplicationWorkflowRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.cells = []; + object.tablet_types = []; + object.shards = []; + } if (options.objects || options.defaults) - object.metrics = {}; - if (options.defaults) { - object.value = 0; - object.threshold = 0; - object.error = ""; - object.message = ""; - object.recently_checked = false; - object.app_name = ""; - object.summary = ""; - object.response_code = options.enums === String ? "UNDEFINED" : 0; + object.config_overrides = {}; + if (options.defaults) + object.workflow = ""; + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + if (message.tablet_types && message.tablet_types.length) { + object.tablet_types = []; + for (let j = 0; j < message.tablet_types.length; ++j) + object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; + } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) { + object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; + if (options.oneofs) + object._tablet_selection_preference = "tablet_selection_preference"; + } + if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) { + object.on_ddl = options.enums === String ? $root.binlogdata.OnDDLAction[message.on_ddl] === undefined ? message.on_ddl : $root.binlogdata.OnDDLAction[message.on_ddl] : message.on_ddl; + if (options.oneofs) + object._on_ddl = "on_ddl"; + } + if (message.state != null && message.hasOwnProperty("state")) { + object.state = options.enums === String ? $root.binlogdata.VReplicationWorkflowState[message.state] === undefined ? message.state : $root.binlogdata.VReplicationWorkflowState[message.state] : message.state; + if (options.oneofs) + object._state = "state"; + } + if (message.shards && message.shards.length) { + object.shards = []; + for (let j = 0; j < message.shards.length; ++j) + object.shards[j] = message.shards[j]; } - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - if (message.threshold != null && message.hasOwnProperty("threshold")) - object.threshold = options.json && !isFinite(message.threshold) ? String(message.threshold) : message.threshold; - if (message.error != null && message.hasOwnProperty("error")) - object.error = message.error; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) - object.recently_checked = message.recently_checked; let keys2; - if (message.metrics && (keys2 = Object.keys(message.metrics)).length) { - object.metrics = {}; + if (message.config_overrides && (keys2 = Object.keys(message.config_overrides)).length) { + object.config_overrides = {}; for (let j = 0; j < keys2.length; ++j) - object.metrics[keys2[j]] = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.toObject(message.metrics[keys2[j]], options); + object.config_overrides[keys2[j]] = message.config_overrides[keys2[j]]; + } + if (message.message != null && message.hasOwnProperty("message")) { + object.message = message.message; + if (options.oneofs) + object._message = "message"; } - if (message.app_name != null && message.hasOwnProperty("app_name")) - object.app_name = message.app_name; - if (message.summary != null && message.hasOwnProperty("summary")) - object.summary = message.summary; - if (message.response_code != null && message.hasOwnProperty("response_code")) - object.response_code = options.enums === String ? $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] === undefined ? message.response_code : $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] : message.response_code; return object; }; /** - * Converts this CheckThrottlerResponse to JSON. + * Converts this UpdateVReplicationWorkflowRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.CheckThrottlerResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance * @returns {Object.} JSON object */ - CheckThrottlerResponse.prototype.toJSON = function toJSON() { + UpdateVReplicationWorkflowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CheckThrottlerResponse + * Gets the default type url for UpdateVReplicationWorkflowRequest * @function getTypeUrl - * @memberof tabletmanagerdata.CheckThrottlerResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CheckThrottlerResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateVReplicationWorkflowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.CheckThrottlerResponse"; + return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowRequest"; }; - CheckThrottlerResponse.Metric = (function() { - - /** - * Properties of a Metric. - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @interface IMetric - * @property {string|null} [name] Metric name - * @property {number|null} [value] Metric value - * @property {number|null} [threshold] Metric threshold - * @property {string|null} [error] Metric error - * @property {string|null} [message] Metric message - * @property {string|null} [scope] Metric scope - * @property {tabletmanagerdata.CheckThrottlerResponseCode|null} [response_code] Metric response_code - */ + return UpdateVReplicationWorkflowRequest; + })(); - /** - * Constructs a new Metric. - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @classdesc Represents a Metric. - * @implements IMetric - * @constructor - * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric=} [properties] Properties to set - */ - function Metric(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + tabletmanagerdata.UpdateVReplicationWorkflowResponse = (function() { - /** - * Metric name. - * @member {string} name - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.name = ""; + /** + * Properties of an UpdateVReplicationWorkflowResponse. + * @memberof tabletmanagerdata + * @interface IUpdateVReplicationWorkflowResponse + * @property {query.IQueryResult|null} [result] UpdateVReplicationWorkflowResponse result + */ - /** - * Metric value. - * @member {number} value - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.value = 0; + /** + * Constructs a new UpdateVReplicationWorkflowResponse. + * @memberof tabletmanagerdata + * @classdesc Represents an UpdateVReplicationWorkflowResponse. + * @implements IUpdateVReplicationWorkflowResponse + * @constructor + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse=} [properties] Properties to set + */ + function UpdateVReplicationWorkflowResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Metric threshold. - * @member {number} threshold - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.threshold = 0; + /** + * UpdateVReplicationWorkflowResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse + * @instance + */ + UpdateVReplicationWorkflowResponse.prototype.result = null; - /** - * Metric error. - * @member {string} error - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.error = ""; - - /** - * Metric message. - * @member {string} message - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.message = ""; - - /** - * Metric scope. - * @member {string} scope - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.scope = ""; - - /** - * Metric response_code. - * @member {tabletmanagerdata.CheckThrottlerResponseCode} response_code - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.response_code = 0; - - /** - * Creates a new Metric instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric=} [properties] Properties to set - * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric instance - */ - Metric.create = function create(properties) { - return new Metric(properties); - }; - - /** - * Encodes the specified Metric message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.Metric.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.value); - if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.threshold); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.error); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.message); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.scope); - if (message.response_code != null && Object.hasOwnProperty.call(message, "response_code")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.response_code); - return writer; - }; - - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.Metric.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Metric message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CheckThrottlerResponse.Metric(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 3: { - message.value = reader.double(); - break; - } - case 4: { - message.threshold = reader.double(); - break; - } - case 5: { - message.error = reader.string(); - break; - } - case 6: { - message.message = reader.string(); - break; - } - case 7: { - message.scope = reader.string(); - break; - } - case 8: { - message.response_code = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Metric message. - * @function verify - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metric.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - if (message.threshold != null && message.hasOwnProperty("threshold")) - if (typeof message.threshold !== "number") - return "threshold: number expected"; - if (message.error != null && message.hasOwnProperty("error")) - if (!$util.isString(message.error)) - return "error: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.scope != null && message.hasOwnProperty("scope")) - if (!$util.isString(message.scope)) - return "scope: string expected"; - if (message.response_code != null && message.hasOwnProperty("response_code")) - switch (message.response_code) { - default: - return "response_code: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; - - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric - */ - Metric.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.CheckThrottlerResponse.Metric) - return object; - let message = new $root.tabletmanagerdata.CheckThrottlerResponse.Metric(); - if (object.name != null) - message.name = String(object.name); - if (object.value != null) - message.value = Number(object.value); - if (object.threshold != null) - message.threshold = Number(object.threshold); - if (object.error != null) - message.error = String(object.error); - if (object.message != null) - message.message = String(object.message); - if (object.scope != null) - message.scope = String(object.scope); - switch (object.response_code) { - default: - if (typeof object.response_code === "number") { - message.response_code = object.response_code; - break; - } - break; - case "UNDEFINED": - case 0: - message.response_code = 0; - break; - case "OK": - case 1: - message.response_code = 1; - break; - case "THRESHOLD_EXCEEDED": - case 2: - message.response_code = 2; - break; - case "APP_DENIED": - case 3: - message.response_code = 3; - break; - case "UNKNOWN_METRIC": - case 4: - message.response_code = 4; - break; - case "INTERNAL_ERROR": - case 5: - message.response_code = 5; - break; - } - return message; - }; - - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {tabletmanagerdata.CheckThrottlerResponse.Metric} message Metric - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metric.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.name = ""; - object.value = 0; - object.threshold = 0; - object.error = ""; - object.message = ""; - object.scope = ""; - object.response_code = options.enums === String ? "UNDEFINED" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - if (message.threshold != null && message.hasOwnProperty("threshold")) - object.threshold = options.json && !isFinite(message.threshold) ? String(message.threshold) : message.threshold; - if (message.error != null && message.hasOwnProperty("error")) - object.error = message.error; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = message.scope; - if (message.response_code != null && message.hasOwnProperty("response_code")) - object.response_code = options.enums === String ? $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] === undefined ? message.response_code : $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] : message.response_code; - return object; - }; - - /** - * Converts this Metric to JSON. - * @function toJSON - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - * @returns {Object.} JSON object - */ - Metric.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Metric - * @function getTypeUrl - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.CheckThrottlerResponse.Metric"; - }; - - return Metric; - })(); - - return CheckThrottlerResponse; - })(); - - tabletmanagerdata.GetThrottlerStatusRequest = (function() { - - /** - * Properties of a GetThrottlerStatusRequest. - * @memberof tabletmanagerdata - * @interface IGetThrottlerStatusRequest - */ - - /** - * Constructs a new GetThrottlerStatusRequest. - * @memberof tabletmanagerdata - * @classdesc Represents a GetThrottlerStatusRequest. - * @implements IGetThrottlerStatusRequest - * @constructor - * @param {tabletmanagerdata.IGetThrottlerStatusRequest=} [properties] Properties to set - */ - function GetThrottlerStatusRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new GetThrottlerStatusRequest instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.GetThrottlerStatusRequest - * @static - * @param {tabletmanagerdata.IGetThrottlerStatusRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest instance - */ - GetThrottlerStatusRequest.create = function create(properties) { - return new GetThrottlerStatusRequest(properties); - }; + /** + * Creates a new UpdateVReplicationWorkflowResponse instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse + * @static + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse instance + */ + UpdateVReplicationWorkflowResponse.create = function create(properties) { + return new UpdateVReplicationWorkflowResponse(properties); + }; /** - * Encodes the specified GetThrottlerStatusRequest message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusRequest.verify|verify} messages. + * Encodes the specified UpdateVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetThrottlerStatusRequest + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.IGetThrottlerStatusRequest} message GetThrottlerStatusRequest message or plain object to encode + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse} message UpdateVReplicationWorkflowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetThrottlerStatusRequest.encode = function encode(message, writer) { + UpdateVReplicationWorkflowResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetThrottlerStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusRequest.verify|verify} messages. + * Encodes the specified UpdateVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusRequest + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.IGetThrottlerStatusRequest} message GetThrottlerStatusRequest message or plain object to encode + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse} message UpdateVReplicationWorkflowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetThrottlerStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVReplicationWorkflowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer. + * Decodes an UpdateVReplicationWorkflowResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetThrottlerStatusRequest + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetThrottlerStatusRequest.decode = function decode(reader, length) { + UpdateVReplicationWorkflowResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -82816,132 +82830,134 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusRequest + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetThrottlerStatusRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateVReplicationWorkflowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetThrottlerStatusRequest message. + * Verifies an UpdateVReplicationWorkflowResponse message. * @function verify - * @memberof tabletmanagerdata.GetThrottlerStatusRequest + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetThrottlerStatusRequest.verify = function verify(message) { + UpdateVReplicationWorkflowResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } return null; }; /** - * Creates a GetThrottlerStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.GetThrottlerStatusRequest + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse */ - GetThrottlerStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusRequest) + UpdateVReplicationWorkflowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowResponse) return object; - return new $root.tabletmanagerdata.GetThrottlerStatusRequest(); + let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + return message; }; /** - * Creates a plain object from a GetThrottlerStatusRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateVReplicationWorkflowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.GetThrottlerStatusRequest + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static - * @param {tabletmanagerdata.GetThrottlerStatusRequest} message GetThrottlerStatusRequest + * @param {tabletmanagerdata.UpdateVReplicationWorkflowResponse} message UpdateVReplicationWorkflowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetThrottlerStatusRequest.toObject = function toObject() { - return {}; + UpdateVReplicationWorkflowResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); + return object; }; /** - * Converts this GetThrottlerStatusRequest to JSON. + * Converts this UpdateVReplicationWorkflowResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetThrottlerStatusRequest + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @instance * @returns {Object.} JSON object */ - GetThrottlerStatusRequest.prototype.toJSON = function toJSON() { + UpdateVReplicationWorkflowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetThrottlerStatusRequest + * Gets the default type url for UpdateVReplicationWorkflowResponse * @function getTypeUrl - * @memberof tabletmanagerdata.GetThrottlerStatusRequest + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetThrottlerStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateVReplicationWorkflowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusRequest"; + return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowResponse"; }; - return GetThrottlerStatusRequest; + return UpdateVReplicationWorkflowResponse; })(); - tabletmanagerdata.GetThrottlerStatusResponse = (function() { + tabletmanagerdata.UpdateVReplicationWorkflowsRequest = (function() { /** - * Properties of a GetThrottlerStatusResponse. + * Properties of an UpdateVReplicationWorkflowsRequest. * @memberof tabletmanagerdata - * @interface IGetThrottlerStatusResponse - * @property {string|null} [tablet_alias] GetThrottlerStatusResponse tablet_alias - * @property {string|null} [keyspace] GetThrottlerStatusResponse keyspace - * @property {string|null} [shard] GetThrottlerStatusResponse shard - * @property {boolean|null} [is_leader] GetThrottlerStatusResponse is_leader - * @property {boolean|null} [is_open] GetThrottlerStatusResponse is_open - * @property {boolean|null} [is_enabled] GetThrottlerStatusResponse is_enabled - * @property {boolean|null} [is_dormant] GetThrottlerStatusResponse is_dormant - * @property {string|null} [lag_metric_query] GetThrottlerStatusResponse lag_metric_query - * @property {string|null} [custom_metric_query] GetThrottlerStatusResponse custom_metric_query - * @property {number|null} [default_threshold] GetThrottlerStatusResponse default_threshold - * @property {string|null} [metric_name_used_as_default] GetThrottlerStatusResponse metric_name_used_as_default - * @property {Object.|null} [aggregated_metrics] GetThrottlerStatusResponse aggregated_metrics - * @property {Object.|null} [metric_thresholds] GetThrottlerStatusResponse metric_thresholds - * @property {Object.|null} [metrics_health] GetThrottlerStatusResponse metrics_health - * @property {Object.|null} [throttled_apps] GetThrottlerStatusResponse throttled_apps - * @property {Object.|null} [app_checked_metrics] GetThrottlerStatusResponse app_checked_metrics - * @property {boolean|null} [recently_checked] GetThrottlerStatusResponse recently_checked - * @property {Object.|null} [recent_apps] GetThrottlerStatusResponse recent_apps + * @interface IUpdateVReplicationWorkflowsRequest + * @property {boolean|null} [all_workflows] UpdateVReplicationWorkflowsRequest all_workflows + * @property {Array.|null} [include_workflows] UpdateVReplicationWorkflowsRequest include_workflows + * @property {Array.|null} [exclude_workflows] UpdateVReplicationWorkflowsRequest exclude_workflows + * @property {binlogdata.VReplicationWorkflowState|null} [state] UpdateVReplicationWorkflowsRequest state + * @property {string|null} [message] UpdateVReplicationWorkflowsRequest message + * @property {string|null} [stop_position] UpdateVReplicationWorkflowsRequest stop_position */ /** - * Constructs a new GetThrottlerStatusResponse. + * Constructs a new UpdateVReplicationWorkflowsRequest. * @memberof tabletmanagerdata - * @classdesc Represents a GetThrottlerStatusResponse. - * @implements IGetThrottlerStatusResponse + * @classdesc Represents an UpdateVReplicationWorkflowsRequest. + * @implements IUpdateVReplicationWorkflowsRequest * @constructor - * @param {tabletmanagerdata.IGetThrottlerStatusResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest=} [properties] Properties to set */ - function GetThrottlerStatusResponse(properties) { - this.aggregated_metrics = {}; - this.metric_thresholds = {}; - this.metrics_health = {}; - this.throttled_apps = {}; - this.app_checked_metrics = {}; - this.recent_apps = {}; + function UpdateVReplicationWorkflowsRequest(properties) { + this.include_workflows = []; + this.exclude_workflows = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82949,441 +82965,172 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * GetThrottlerStatusResponse tablet_alias. - * @member {string} tablet_alias - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.tablet_alias = ""; - - /** - * GetThrottlerStatusResponse keyspace. - * @member {string} keyspace - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.keyspace = ""; - - /** - * GetThrottlerStatusResponse shard. - * @member {string} shard - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.shard = ""; - - /** - * GetThrottlerStatusResponse is_leader. - * @member {boolean} is_leader - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.is_leader = false; - - /** - * GetThrottlerStatusResponse is_open. - * @member {boolean} is_open - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.is_open = false; - - /** - * GetThrottlerStatusResponse is_enabled. - * @member {boolean} is_enabled - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.is_enabled = false; - - /** - * GetThrottlerStatusResponse is_dormant. - * @member {boolean} is_dormant - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.is_dormant = false; - - /** - * GetThrottlerStatusResponse lag_metric_query. - * @member {string} lag_metric_query - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.lag_metric_query = ""; - - /** - * GetThrottlerStatusResponse custom_metric_query. - * @member {string} custom_metric_query - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * UpdateVReplicationWorkflowsRequest all_workflows. + * @member {boolean} all_workflows + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @instance */ - GetThrottlerStatusResponse.prototype.custom_metric_query = ""; + UpdateVReplicationWorkflowsRequest.prototype.all_workflows = false; /** - * GetThrottlerStatusResponse default_threshold. - * @member {number} default_threshold - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * UpdateVReplicationWorkflowsRequest include_workflows. + * @member {Array.} include_workflows + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @instance */ - GetThrottlerStatusResponse.prototype.default_threshold = 0; + UpdateVReplicationWorkflowsRequest.prototype.include_workflows = $util.emptyArray; /** - * GetThrottlerStatusResponse metric_name_used_as_default. - * @member {string} metric_name_used_as_default - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * UpdateVReplicationWorkflowsRequest exclude_workflows. + * @member {Array.} exclude_workflows + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @instance */ - GetThrottlerStatusResponse.prototype.metric_name_used_as_default = ""; + UpdateVReplicationWorkflowsRequest.prototype.exclude_workflows = $util.emptyArray; /** - * GetThrottlerStatusResponse aggregated_metrics. - * @member {Object.} aggregated_metrics - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * UpdateVReplicationWorkflowsRequest state. + * @member {binlogdata.VReplicationWorkflowState|null|undefined} state + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @instance */ - GetThrottlerStatusResponse.prototype.aggregated_metrics = $util.emptyObject; + UpdateVReplicationWorkflowsRequest.prototype.state = null; /** - * GetThrottlerStatusResponse metric_thresholds. - * @member {Object.} metric_thresholds - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * UpdateVReplicationWorkflowsRequest message. + * @member {string|null|undefined} message + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @instance */ - GetThrottlerStatusResponse.prototype.metric_thresholds = $util.emptyObject; + UpdateVReplicationWorkflowsRequest.prototype.message = null; /** - * GetThrottlerStatusResponse metrics_health. - * @member {Object.} metrics_health - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * UpdateVReplicationWorkflowsRequest stop_position. + * @member {string|null|undefined} stop_position + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @instance */ - GetThrottlerStatusResponse.prototype.metrics_health = $util.emptyObject; + UpdateVReplicationWorkflowsRequest.prototype.stop_position = null; - /** - * GetThrottlerStatusResponse throttled_apps. - * @member {Object.} throttled_apps - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.throttled_apps = $util.emptyObject; + // OneOf field names bound to virtual getters and setters + let $oneOfFields; - /** - * GetThrottlerStatusResponse app_checked_metrics. - * @member {Object.} app_checked_metrics - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.app_checked_metrics = $util.emptyObject; + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_state", { + get: $util.oneOfGetter($oneOfFields = ["state"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * GetThrottlerStatusResponse recently_checked. - * @member {boolean} recently_checked - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.recently_checked = false; + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_message", { + get: $util.oneOfGetter($oneOfFields = ["message"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * GetThrottlerStatusResponse recent_apps. - * @member {Object.} recent_apps - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.recent_apps = $util.emptyObject; + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_stop_position", { + get: $util.oneOfGetter($oneOfFields = ["stop_position"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new GetThrottlerStatusResponse instance using the specified properties. + * Creates a new UpdateVReplicationWorkflowsRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static - * @param {tabletmanagerdata.IGetThrottlerStatusResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse instance + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest instance */ - GetThrottlerStatusResponse.create = function create(properties) { - return new GetThrottlerStatusResponse(properties); + UpdateVReplicationWorkflowsRequest.create = function create(properties) { + return new UpdateVReplicationWorkflowsRequest(properties); }; /** - * Encodes the specified GetThrottlerStatusResponse message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.verify|verify} messages. + * Encodes the specified UpdateVReplicationWorkflowsRequest message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static - * @param {tabletmanagerdata.IGetThrottlerStatusResponse} message GetThrottlerStatusResponse message or plain object to encode + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest} message UpdateVReplicationWorkflowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetThrottlerStatusResponse.encode = function encode(message, writer) { + UpdateVReplicationWorkflowsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tablet_alias); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); - if (message.is_leader != null && Object.hasOwnProperty.call(message, "is_leader")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.is_leader); - if (message.is_open != null && Object.hasOwnProperty.call(message, "is_open")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.is_open); - if (message.is_enabled != null && Object.hasOwnProperty.call(message, "is_enabled")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.is_enabled); - if (message.is_dormant != null && Object.hasOwnProperty.call(message, "is_dormant")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.is_dormant); - if (message.lag_metric_query != null && Object.hasOwnProperty.call(message, "lag_metric_query")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.lag_metric_query); - if (message.custom_metric_query != null && Object.hasOwnProperty.call(message, "custom_metric_query")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.custom_metric_query); - if (message.default_threshold != null && Object.hasOwnProperty.call(message, "default_threshold")) - writer.uint32(/* id 10, wireType 1 =*/81).double(message.default_threshold); - if (message.metric_name_used_as_default != null && Object.hasOwnProperty.call(message, "metric_name_used_as_default")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.metric_name_used_as_default); - if (message.aggregated_metrics != null && Object.hasOwnProperty.call(message, "aggregated_metrics")) - for (let keys = Object.keys(message.aggregated_metrics), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.encode(message.aggregated_metrics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.metric_thresholds != null && Object.hasOwnProperty.call(message, "metric_thresholds")) - for (let keys = Object.keys(message.metric_thresholds), i = 0; i < keys.length; ++i) - writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 1 =*/17).double(message.metric_thresholds[keys[i]]).ldelim(); - if (message.metrics_health != null && Object.hasOwnProperty.call(message, "metrics_health")) - for (let keys = Object.keys(message.metrics_health), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.encode(message.metrics_health[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.throttled_apps != null && Object.hasOwnProperty.call(message, "throttled_apps")) - for (let keys = Object.keys(message.throttled_apps), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.topodata.ThrottledAppRule.encode(message.throttled_apps[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.app_checked_metrics != null && Object.hasOwnProperty.call(message, "app_checked_metrics")) - for (let keys = Object.keys(message.app_checked_metrics), i = 0; i < keys.length; ++i) - writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.app_checked_metrics[keys[i]]).ldelim(); - if (message.recently_checked != null && Object.hasOwnProperty.call(message, "recently_checked")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.recently_checked); - if (message.recent_apps != null && Object.hasOwnProperty.call(message, "recent_apps")) - for (let keys = Object.keys(message.recent_apps), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 18, wireType 2 =*/146).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.encode(message.recent_apps[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.all_workflows != null && Object.hasOwnProperty.call(message, "all_workflows")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all_workflows); + if (message.include_workflows != null && message.include_workflows.length) + for (let i = 0; i < message.include_workflows.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.include_workflows[i]); + if (message.exclude_workflows != null && message.exclude_workflows.length) + for (let i = 0; i < message.exclude_workflows.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_workflows[i]); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.message); + if (message.stop_position != null && Object.hasOwnProperty.call(message, "stop_position")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.stop_position); return writer; }; /** - * Encodes the specified GetThrottlerStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.verify|verify} messages. + * Encodes the specified UpdateVReplicationWorkflowsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static - * @param {tabletmanagerdata.IGetThrottlerStatusResponse} message GetThrottlerStatusResponse message or plain object to encode + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest} message UpdateVReplicationWorkflowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetThrottlerStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVReplicationWorkflowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer. + * Decodes an UpdateVReplicationWorkflowsRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetThrottlerStatusResponse.decode = function decode(reader, length) { + UpdateVReplicationWorkflowsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet_alias = reader.string(); + message.all_workflows = reader.bool(); break; } case 2: { - message.keyspace = reader.string(); + if (!(message.include_workflows && message.include_workflows.length)) + message.include_workflows = []; + message.include_workflows.push(reader.string()); break; } case 3: { - message.shard = reader.string(); + if (!(message.exclude_workflows && message.exclude_workflows.length)) + message.exclude_workflows = []; + message.exclude_workflows.push(reader.string()); break; } case 4: { - message.is_leader = reader.bool(); + message.state = reader.int32(); break; } case 5: { - message.is_open = reader.bool(); + message.message = reader.string(); break; } case 6: { - message.is_enabled = reader.bool(); - break; - } - case 7: { - message.is_dormant = reader.bool(); - break; - } - case 8: { - message.lag_metric_query = reader.string(); - break; - } - case 9: { - message.custom_metric_query = reader.string(); - break; - } - case 10: { - message.default_threshold = reader.double(); - break; - } - case 11: { - message.metric_name_used_as_default = reader.string(); - break; - } - case 12: { - if (message.aggregated_metrics === $util.emptyObject) - message.aggregated_metrics = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.aggregated_metrics[key] = value; - break; - } - case 13: { - if (message.metric_thresholds === $util.emptyObject) - message.metric_thresholds = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.double(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.metric_thresholds[key] = value; - break; - } - case 14: { - if (message.metrics_health === $util.emptyObject) - message.metrics_health = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.metrics_health[key] = value; - break; - } - case 15: { - if (message.throttled_apps === $util.emptyObject) - message.throttled_apps = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.topodata.ThrottledAppRule.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.throttled_apps[key] = value; - break; - } - case 16: { - if (message.app_checked_metrics === $util.emptyObject) - message.app_checked_metrics = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.app_checked_metrics[key] = value; - break; - } - case 17: { - message.recently_checked = reader.bool(); - break; - } - case 18: { - if (message.recent_apps === $util.emptyObject) - message.recent_apps = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.recent_apps[key] = value; + message.stop_position = reader.string(); break; } default: @@ -83395,1106 +83142,671 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateVReplicationWorkflowsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetThrottlerStatusResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateVReplicationWorkflowsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetThrottlerStatusResponse message. + * Verifies an UpdateVReplicationWorkflowsRequest message. * @function verify - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetThrottlerStatusResponse.verify = function verify(message) { + UpdateVReplicationWorkflowsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - if (!$util.isString(message.tablet_alias)) - return "tablet_alias: string expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.is_leader != null && message.hasOwnProperty("is_leader")) - if (typeof message.is_leader !== "boolean") - return "is_leader: boolean expected"; - if (message.is_open != null && message.hasOwnProperty("is_open")) - if (typeof message.is_open !== "boolean") - return "is_open: boolean expected"; - if (message.is_enabled != null && message.hasOwnProperty("is_enabled")) - if (typeof message.is_enabled !== "boolean") - return "is_enabled: boolean expected"; - if (message.is_dormant != null && message.hasOwnProperty("is_dormant")) - if (typeof message.is_dormant !== "boolean") - return "is_dormant: boolean expected"; - if (message.lag_metric_query != null && message.hasOwnProperty("lag_metric_query")) - if (!$util.isString(message.lag_metric_query)) - return "lag_metric_query: string expected"; - if (message.custom_metric_query != null && message.hasOwnProperty("custom_metric_query")) - if (!$util.isString(message.custom_metric_query)) - return "custom_metric_query: string expected"; - if (message.default_threshold != null && message.hasOwnProperty("default_threshold")) - if (typeof message.default_threshold !== "number") - return "default_threshold: number expected"; - if (message.metric_name_used_as_default != null && message.hasOwnProperty("metric_name_used_as_default")) - if (!$util.isString(message.metric_name_used_as_default)) - return "metric_name_used_as_default: string expected"; - if (message.aggregated_metrics != null && message.hasOwnProperty("aggregated_metrics")) { - if (!$util.isObject(message.aggregated_metrics)) - return "aggregated_metrics: object expected"; - let key = Object.keys(message.aggregated_metrics); - for (let i = 0; i < key.length; ++i) { - let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify(message.aggregated_metrics[key[i]]); - if (error) - return "aggregated_metrics." + error; - } + let properties = {}; + if (message.all_workflows != null && message.hasOwnProperty("all_workflows")) + if (typeof message.all_workflows !== "boolean") + return "all_workflows: boolean expected"; + if (message.include_workflows != null && message.hasOwnProperty("include_workflows")) { + if (!Array.isArray(message.include_workflows)) + return "include_workflows: array expected"; + for (let i = 0; i < message.include_workflows.length; ++i) + if (!$util.isString(message.include_workflows[i])) + return "include_workflows: string[] expected"; } - if (message.metric_thresholds != null && message.hasOwnProperty("metric_thresholds")) { - if (!$util.isObject(message.metric_thresholds)) - return "metric_thresholds: object expected"; - let key = Object.keys(message.metric_thresholds); - for (let i = 0; i < key.length; ++i) - if (typeof message.metric_thresholds[key[i]] !== "number") - return "metric_thresholds: number{k:string} expected"; + if (message.exclude_workflows != null && message.hasOwnProperty("exclude_workflows")) { + if (!Array.isArray(message.exclude_workflows)) + return "exclude_workflows: array expected"; + for (let i = 0; i < message.exclude_workflows.length; ++i) + if (!$util.isString(message.exclude_workflows[i])) + return "exclude_workflows: string[] expected"; } - if (message.metrics_health != null && message.hasOwnProperty("metrics_health")) { - if (!$util.isObject(message.metrics_health)) - return "metrics_health: object expected"; - let key = Object.keys(message.metrics_health); - for (let i = 0; i < key.length; ++i) { - let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify(message.metrics_health[key[i]]); - if (error) - return "metrics_health." + error; - } - } - if (message.throttled_apps != null && message.hasOwnProperty("throttled_apps")) { - if (!$util.isObject(message.throttled_apps)) - return "throttled_apps: object expected"; - let key = Object.keys(message.throttled_apps); - for (let i = 0; i < key.length; ++i) { - let error = $root.topodata.ThrottledAppRule.verify(message.throttled_apps[key[i]]); - if (error) - return "throttled_apps." + error; + if (message.state != null && message.hasOwnProperty("state")) { + properties._state = 1; + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } } - if (message.app_checked_metrics != null && message.hasOwnProperty("app_checked_metrics")) { - if (!$util.isObject(message.app_checked_metrics)) - return "app_checked_metrics: object expected"; - let key = Object.keys(message.app_checked_metrics); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.app_checked_metrics[key[i]])) - return "app_checked_metrics: string{k:string} expected"; + if (message.message != null && message.hasOwnProperty("message")) { + properties._message = 1; + if (!$util.isString(message.message)) + return "message: string expected"; } - if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) - if (typeof message.recently_checked !== "boolean") - return "recently_checked: boolean expected"; - if (message.recent_apps != null && message.hasOwnProperty("recent_apps")) { - if (!$util.isObject(message.recent_apps)) - return "recent_apps: object expected"; - let key = Object.keys(message.recent_apps); - for (let i = 0; i < key.length; ++i) { - let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify(message.recent_apps[key[i]]); - if (error) - return "recent_apps." + error; - } + if (message.stop_position != null && message.hasOwnProperty("stop_position")) { + properties._stop_position = 1; + if (!$util.isString(message.stop_position)) + return "stop_position: string expected"; } return null; }; /** - * Creates a GetThrottlerStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVReplicationWorkflowsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest */ - GetThrottlerStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse) + UpdateVReplicationWorkflowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowsRequest) return object; - let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse(); - if (object.tablet_alias != null) - message.tablet_alias = String(object.tablet_alias); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.is_leader != null) - message.is_leader = Boolean(object.is_leader); - if (object.is_open != null) - message.is_open = Boolean(object.is_open); - if (object.is_enabled != null) - message.is_enabled = Boolean(object.is_enabled); - if (object.is_dormant != null) - message.is_dormant = Boolean(object.is_dormant); - if (object.lag_metric_query != null) - message.lag_metric_query = String(object.lag_metric_query); - if (object.custom_metric_query != null) - message.custom_metric_query = String(object.custom_metric_query); - if (object.default_threshold != null) - message.default_threshold = Number(object.default_threshold); - if (object.metric_name_used_as_default != null) - message.metric_name_used_as_default = String(object.metric_name_used_as_default); - if (object.aggregated_metrics) { - if (typeof object.aggregated_metrics !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.aggregated_metrics: object expected"); - message.aggregated_metrics = {}; - for (let keys = Object.keys(object.aggregated_metrics), i = 0; i < keys.length; ++i) { - if (typeof object.aggregated_metrics[keys[i]] !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.aggregated_metrics: object expected"); - message.aggregated_metrics[keys[i]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.fromObject(object.aggregated_metrics[keys[i]]); - } - } - if (object.metric_thresholds) { - if (typeof object.metric_thresholds !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.metric_thresholds: object expected"); - message.metric_thresholds = {}; - for (let keys = Object.keys(object.metric_thresholds), i = 0; i < keys.length; ++i) - message.metric_thresholds[keys[i]] = Number(object.metric_thresholds[keys[i]]); - } - if (object.metrics_health) { - if (typeof object.metrics_health !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.metrics_health: object expected"); - message.metrics_health = {}; - for (let keys = Object.keys(object.metrics_health), i = 0; i < keys.length; ++i) { - if (typeof object.metrics_health[keys[i]] !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.metrics_health: object expected"); - message.metrics_health[keys[i]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.fromObject(object.metrics_health[keys[i]]); - } - } - if (object.throttled_apps) { - if (typeof object.throttled_apps !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.throttled_apps: object expected"); - message.throttled_apps = {}; - for (let keys = Object.keys(object.throttled_apps), i = 0; i < keys.length; ++i) { - if (typeof object.throttled_apps[keys[i]] !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.throttled_apps: object expected"); - message.throttled_apps[keys[i]] = $root.topodata.ThrottledAppRule.fromObject(object.throttled_apps[keys[i]]); - } + let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsRequest(); + if (object.all_workflows != null) + message.all_workflows = Boolean(object.all_workflows); + if (object.include_workflows) { + if (!Array.isArray(object.include_workflows)) + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowsRequest.include_workflows: array expected"); + message.include_workflows = []; + for (let i = 0; i < object.include_workflows.length; ++i) + message.include_workflows[i] = String(object.include_workflows[i]); } - if (object.app_checked_metrics) { - if (typeof object.app_checked_metrics !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.app_checked_metrics: object expected"); - message.app_checked_metrics = {}; - for (let keys = Object.keys(object.app_checked_metrics), i = 0; i < keys.length; ++i) - message.app_checked_metrics[keys[i]] = String(object.app_checked_metrics[keys[i]]); + if (object.exclude_workflows) { + if (!Array.isArray(object.exclude_workflows)) + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowsRequest.exclude_workflows: array expected"); + message.exclude_workflows = []; + for (let i = 0; i < object.exclude_workflows.length; ++i) + message.exclude_workflows[i] = String(object.exclude_workflows[i]); } - if (object.recently_checked != null) - message.recently_checked = Boolean(object.recently_checked); - if (object.recent_apps) { - if (typeof object.recent_apps !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.recent_apps: object expected"); - message.recent_apps = {}; - for (let keys = Object.keys(object.recent_apps), i = 0; i < keys.length; ++i) { - if (typeof object.recent_apps[keys[i]] !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.recent_apps: object expected"); - message.recent_apps[keys[i]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.fromObject(object.recent_apps[keys[i]]); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; } + break; + case "Unknown": + case 0: + message.state = 0; + break; + case "Init": + case 1: + message.state = 1; + break; + case "Stopped": + case 2: + message.state = 2; + break; + case "Copying": + case 3: + message.state = 3; + break; + case "Running": + case 4: + message.state = 4; + break; + case "Error": + case 5: + message.state = 5; + break; + case "Lagging": + case 6: + message.state = 6; + break; } + if (object.message != null) + message.message = String(object.message); + if (object.stop_position != null) + message.stop_position = String(object.stop_position); return message; }; /** - * Creates a plain object from a GetThrottlerStatusResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateVReplicationWorkflowsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse} message GetThrottlerStatusResponse + * @param {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} message UpdateVReplicationWorkflowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetThrottlerStatusResponse.toObject = function toObject(message, options) { + UpdateVReplicationWorkflowsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) { - object.aggregated_metrics = {}; - object.metric_thresholds = {}; - object.metrics_health = {}; - object.throttled_apps = {}; - object.app_checked_metrics = {}; - object.recent_apps = {}; - } - if (options.defaults) { - object.tablet_alias = ""; - object.keyspace = ""; - object.shard = ""; - object.is_leader = false; - object.is_open = false; - object.is_enabled = false; - object.is_dormant = false; - object.lag_metric_query = ""; - object.custom_metric_query = ""; - object.default_threshold = 0; - object.metric_name_used_as_default = ""; - object.recently_checked = false; - } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = message.tablet_alias; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.is_leader != null && message.hasOwnProperty("is_leader")) - object.is_leader = message.is_leader; - if (message.is_open != null && message.hasOwnProperty("is_open")) - object.is_open = message.is_open; - if (message.is_enabled != null && message.hasOwnProperty("is_enabled")) - object.is_enabled = message.is_enabled; - if (message.is_dormant != null && message.hasOwnProperty("is_dormant")) - object.is_dormant = message.is_dormant; - if (message.lag_metric_query != null && message.hasOwnProperty("lag_metric_query")) - object.lag_metric_query = message.lag_metric_query; - if (message.custom_metric_query != null && message.hasOwnProperty("custom_metric_query")) - object.custom_metric_query = message.custom_metric_query; - if (message.default_threshold != null && message.hasOwnProperty("default_threshold")) - object.default_threshold = options.json && !isFinite(message.default_threshold) ? String(message.default_threshold) : message.default_threshold; - if (message.metric_name_used_as_default != null && message.hasOwnProperty("metric_name_used_as_default")) - object.metric_name_used_as_default = message.metric_name_used_as_default; - let keys2; - if (message.aggregated_metrics && (keys2 = Object.keys(message.aggregated_metrics)).length) { - object.aggregated_metrics = {}; - for (let j = 0; j < keys2.length; ++j) - object.aggregated_metrics[keys2[j]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.toObject(message.aggregated_metrics[keys2[j]], options); + if (options.arrays || options.defaults) { + object.include_workflows = []; + object.exclude_workflows = []; } - if (message.metric_thresholds && (keys2 = Object.keys(message.metric_thresholds)).length) { - object.metric_thresholds = {}; - for (let j = 0; j < keys2.length; ++j) - object.metric_thresholds[keys2[j]] = options.json && !isFinite(message.metric_thresholds[keys2[j]]) ? String(message.metric_thresholds[keys2[j]]) : message.metric_thresholds[keys2[j]]; + if (options.defaults) + object.all_workflows = false; + if (message.all_workflows != null && message.hasOwnProperty("all_workflows")) + object.all_workflows = message.all_workflows; + if (message.include_workflows && message.include_workflows.length) { + object.include_workflows = []; + for (let j = 0; j < message.include_workflows.length; ++j) + object.include_workflows[j] = message.include_workflows[j]; } - if (message.metrics_health && (keys2 = Object.keys(message.metrics_health)).length) { - object.metrics_health = {}; - for (let j = 0; j < keys2.length; ++j) - object.metrics_health[keys2[j]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.toObject(message.metrics_health[keys2[j]], options); + if (message.exclude_workflows && message.exclude_workflows.length) { + object.exclude_workflows = []; + for (let j = 0; j < message.exclude_workflows.length; ++j) + object.exclude_workflows[j] = message.exclude_workflows[j]; } - if (message.throttled_apps && (keys2 = Object.keys(message.throttled_apps)).length) { - object.throttled_apps = {}; - for (let j = 0; j < keys2.length; ++j) - object.throttled_apps[keys2[j]] = $root.topodata.ThrottledAppRule.toObject(message.throttled_apps[keys2[j]], options); + if (message.state != null && message.hasOwnProperty("state")) { + object.state = options.enums === String ? $root.binlogdata.VReplicationWorkflowState[message.state] === undefined ? message.state : $root.binlogdata.VReplicationWorkflowState[message.state] : message.state; + if (options.oneofs) + object._state = "state"; } - if (message.app_checked_metrics && (keys2 = Object.keys(message.app_checked_metrics)).length) { - object.app_checked_metrics = {}; - for (let j = 0; j < keys2.length; ++j) - object.app_checked_metrics[keys2[j]] = message.app_checked_metrics[keys2[j]]; + if (message.message != null && message.hasOwnProperty("message")) { + object.message = message.message; + if (options.oneofs) + object._message = "message"; } - if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) - object.recently_checked = message.recently_checked; - if (message.recent_apps && (keys2 = Object.keys(message.recent_apps)).length) { - object.recent_apps = {}; - for (let j = 0; j < keys2.length; ++j) - object.recent_apps[keys2[j]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.toObject(message.recent_apps[keys2[j]], options); + if (message.stop_position != null && message.hasOwnProperty("stop_position")) { + object.stop_position = message.stop_position; + if (options.oneofs) + object._stop_position = "stop_position"; } return object; }; /** - * Converts this GetThrottlerStatusResponse to JSON. + * Converts this UpdateVReplicationWorkflowsRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @instance * @returns {Object.} JSON object */ - GetThrottlerStatusResponse.prototype.toJSON = function toJSON() { + UpdateVReplicationWorkflowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetThrottlerStatusResponse + * Gets the default type url for UpdateVReplicationWorkflowsRequest * @function getTypeUrl - * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetThrottlerStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateVReplicationWorkflowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse"; + return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowsRequest"; }; - GetThrottlerStatusResponse.MetricResult = (function() { + return UpdateVReplicationWorkflowsRequest; + })(); - /** - * Properties of a MetricResult. - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @interface IMetricResult - * @property {number|null} [value] MetricResult value - * @property {string|null} [error] MetricResult error - */ + tabletmanagerdata.UpdateVReplicationWorkflowsResponse = (function() { - /** - * Constructs a new MetricResult. - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @classdesc Represents a MetricResult. - * @implements IMetricResult - * @constructor - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult=} [properties] Properties to set - */ - function MetricResult(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of an UpdateVReplicationWorkflowsResponse. + * @memberof tabletmanagerdata + * @interface IUpdateVReplicationWorkflowsResponse + * @property {query.IQueryResult|null} [result] UpdateVReplicationWorkflowsResponse result + */ - /** - * MetricResult value. - * @member {number} value - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @instance - */ - MetricResult.prototype.value = 0; + /** + * Constructs a new UpdateVReplicationWorkflowsResponse. + * @memberof tabletmanagerdata + * @classdesc Represents an UpdateVReplicationWorkflowsResponse. + * @implements IUpdateVReplicationWorkflowsResponse + * @constructor + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse=} [properties] Properties to set + */ + function UpdateVReplicationWorkflowsResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * MetricResult error. - * @member {string} error - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @instance - */ - MetricResult.prototype.error = ""; + /** + * UpdateVReplicationWorkflowsResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @instance + */ + UpdateVReplicationWorkflowsResponse.prototype.result = null; - /** - * Creates a new MetricResult instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult=} [properties] Properties to set - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult instance - */ - MetricResult.create = function create(properties) { - return new MetricResult(properties); - }; + /** + * Creates a new UpdateVReplicationWorkflowsResponse instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @static + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse instance + */ + UpdateVReplicationWorkflowsResponse.create = function create(properties) { + return new UpdateVReplicationWorkflowsResponse(properties); + }; - /** - * Encodes the specified MetricResult message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult} message MetricResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetricResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.error); - return writer; - }; + /** + * Encodes the specified UpdateVReplicationWorkflowsResponse message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsResponse.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @static + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse} message UpdateVReplicationWorkflowsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateVReplicationWorkflowsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified MetricResult message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult} message MetricResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetricResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified UpdateVReplicationWorkflowsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @static + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse} message UpdateVReplicationWorkflowsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateVReplicationWorkflowsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a MetricResult message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetricResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.value = reader.double(); - break; - } - case 2: { - message.error = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes an UpdateVReplicationWorkflowsResponse message from the specified reader or buffer. + * @function decode + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateVReplicationWorkflowsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a MetricResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetricResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a MetricResult message. - * @function verify - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MetricResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - if (message.error != null && message.hasOwnProperty("error")) - if (!$util.isString(message.error)) - return "error: string expected"; - return null; - }; + /** + * Decodes an UpdateVReplicationWorkflowsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateVReplicationWorkflowsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a MetricResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult - */ - MetricResult.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult) - return object; - let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult(); - if (object.value != null) - message.value = Number(object.value); - if (object.error != null) - message.error = String(object.error); - return message; - }; + /** + * Verifies an UpdateVReplicationWorkflowsResponse message. + * @function verify + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateVReplicationWorkflowsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } + return null; + }; - /** - * Creates a plain object from a MetricResult message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} message MetricResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MetricResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.value = 0; - object.error = ""; - } - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - if (message.error != null && message.hasOwnProperty("error")) - object.error = message.error; + /** + * Creates an UpdateVReplicationWorkflowsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @static + * @param {Object.} object Plain object + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse + */ + UpdateVReplicationWorkflowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowsResponse) return object; - }; + let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowsResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + return message; + }; - /** - * Converts this MetricResult to JSON. - * @function toJSON - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @instance - * @returns {Object.} JSON object - */ - MetricResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an UpdateVReplicationWorkflowsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @static + * @param {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} message UpdateVReplicationWorkflowsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateVReplicationWorkflowsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); + return object; + }; - /** - * Gets the default type url for MetricResult - * @function getTypeUrl - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MetricResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse.MetricResult"; - }; + /** + * Converts this UpdateVReplicationWorkflowsResponse to JSON. + * @function toJSON + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @instance + * @returns {Object.} JSON object + */ + UpdateVReplicationWorkflowsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return MetricResult; - })(); + /** + * Gets the default type url for UpdateVReplicationWorkflowsResponse + * @function getTypeUrl + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateVReplicationWorkflowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowsResponse"; + }; - GetThrottlerStatusResponse.MetricHealth = (function() { + return UpdateVReplicationWorkflowsResponse; + })(); - /** - * Properties of a MetricHealth. - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @interface IMetricHealth - * @property {vttime.ITime|null} [last_healthy_at] MetricHealth last_healthy_at - * @property {number|Long|null} [seconds_since_last_healthy] MetricHealth seconds_since_last_healthy - */ + tabletmanagerdata.ResetSequencesRequest = (function() { - /** - * Constructs a new MetricHealth. - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @classdesc Represents a MetricHealth. - * @implements IMetricHealth - * @constructor - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth=} [properties] Properties to set - */ - function MetricHealth(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a ResetSequencesRequest. + * @memberof tabletmanagerdata + * @interface IResetSequencesRequest + * @property {Array.|null} [tables] ResetSequencesRequest tables + */ - /** - * MetricHealth last_healthy_at. - * @member {vttime.ITime|null|undefined} last_healthy_at - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @instance - */ - MetricHealth.prototype.last_healthy_at = null; + /** + * Constructs a new ResetSequencesRequest. + * @memberof tabletmanagerdata + * @classdesc Represents a ResetSequencesRequest. + * @implements IResetSequencesRequest + * @constructor + * @param {tabletmanagerdata.IResetSequencesRequest=} [properties] Properties to set + */ + function ResetSequencesRequest(properties) { + this.tables = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * MetricHealth seconds_since_last_healthy. - * @member {number|Long} seconds_since_last_healthy - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @instance - */ - MetricHealth.prototype.seconds_since_last_healthy = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * ResetSequencesRequest tables. + * @member {Array.} tables + * @memberof tabletmanagerdata.ResetSequencesRequest + * @instance + */ + ResetSequencesRequest.prototype.tables = $util.emptyArray; - /** - * Creates a new MetricHealth instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth=} [properties] Properties to set - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth instance - */ - MetricHealth.create = function create(properties) { - return new MetricHealth(properties); - }; + /** + * Creates a new ResetSequencesRequest instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.ResetSequencesRequest + * @static + * @param {tabletmanagerdata.IResetSequencesRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest instance + */ + ResetSequencesRequest.create = function create(properties) { + return new ResetSequencesRequest(properties); + }; - /** - * Encodes the specified MetricHealth message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth} message MetricHealth message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetricHealth.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.last_healthy_at != null && Object.hasOwnProperty.call(message, "last_healthy_at")) - $root.vttime.Time.encode(message.last_healthy_at, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.seconds_since_last_healthy != null && Object.hasOwnProperty.call(message, "seconds_since_last_healthy")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.seconds_since_last_healthy); - return writer; - }; + /** + * Encodes the specified ResetSequencesRequest message. Does not implicitly {@link tabletmanagerdata.ResetSequencesRequest.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.ResetSequencesRequest + * @static + * @param {tabletmanagerdata.IResetSequencesRequest} message ResetSequencesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResetSequencesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tables != null && message.tables.length) + for (let i = 0; i < message.tables.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tables[i]); + return writer; + }; - /** - * Encodes the specified MetricHealth message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth} message MetricHealth message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetricHealth.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ResetSequencesRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetSequencesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.ResetSequencesRequest + * @static + * @param {tabletmanagerdata.IResetSequencesRequest} message ResetSequencesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResetSequencesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a MetricHealth message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetricHealth.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.last_healthy_at = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 2: { - message.seconds_since_last_healthy = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a ResetSequencesRequest message from the specified reader or buffer. + * @function decode + * @memberof tabletmanagerdata.ResetSequencesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResetSequencesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetSequencesRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a MetricHealth message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetricHealth.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a MetricHealth message. - * @function verify - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MetricHealth.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.last_healthy_at != null && message.hasOwnProperty("last_healthy_at")) { - let error = $root.vttime.Time.verify(message.last_healthy_at); - if (error) - return "last_healthy_at." + error; - } - if (message.seconds_since_last_healthy != null && message.hasOwnProperty("seconds_since_last_healthy")) - if (!$util.isInteger(message.seconds_since_last_healthy) && !(message.seconds_since_last_healthy && $util.isInteger(message.seconds_since_last_healthy.low) && $util.isInteger(message.seconds_since_last_healthy.high))) - return "seconds_since_last_healthy: integer|Long expected"; - return null; - }; + /** + * Decodes a ResetSequencesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tabletmanagerdata.ResetSequencesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResetSequencesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a MetricHealth message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth - */ - MetricHealth.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth) - return object; - let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth(); - if (object.last_healthy_at != null) { - if (typeof object.last_healthy_at !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.last_healthy_at: object expected"); - message.last_healthy_at = $root.vttime.Time.fromObject(object.last_healthy_at); - } - if (object.seconds_since_last_healthy != null) - if ($util.Long) - (message.seconds_since_last_healthy = $util.Long.fromValue(object.seconds_since_last_healthy)).unsigned = false; - else if (typeof object.seconds_since_last_healthy === "string") - message.seconds_since_last_healthy = parseInt(object.seconds_since_last_healthy, 10); - else if (typeof object.seconds_since_last_healthy === "number") - message.seconds_since_last_healthy = object.seconds_since_last_healthy; - else if (typeof object.seconds_since_last_healthy === "object") - message.seconds_since_last_healthy = new $util.LongBits(object.seconds_since_last_healthy.low >>> 0, object.seconds_since_last_healthy.high >>> 0).toNumber(); - return message; - }; + /** + * Verifies a ResetSequencesRequest message. + * @function verify + * @memberof tabletmanagerdata.ResetSequencesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResetSequencesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (let i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; + } + return null; + }; - /** - * Creates a plain object from a MetricHealth message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} message MetricHealth - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MetricHealth.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.last_healthy_at = null; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.seconds_since_last_healthy = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds_since_last_healthy = options.longs === String ? "0" : 0; - } - if (message.last_healthy_at != null && message.hasOwnProperty("last_healthy_at")) - object.last_healthy_at = $root.vttime.Time.toObject(message.last_healthy_at, options); - if (message.seconds_since_last_healthy != null && message.hasOwnProperty("seconds_since_last_healthy")) - if (typeof message.seconds_since_last_healthy === "number") - object.seconds_since_last_healthy = options.longs === String ? String(message.seconds_since_last_healthy) : message.seconds_since_last_healthy; - else - object.seconds_since_last_healthy = options.longs === String ? $util.Long.prototype.toString.call(message.seconds_since_last_healthy) : options.longs === Number ? new $util.LongBits(message.seconds_since_last_healthy.low >>> 0, message.seconds_since_last_healthy.high >>> 0).toNumber() : message.seconds_since_last_healthy; + /** + * Creates a ResetSequencesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tabletmanagerdata.ResetSequencesRequest + * @static + * @param {Object.} object Plain object + * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest + */ + ResetSequencesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ResetSequencesRequest) return object; - }; - - /** - * Converts this MetricHealth to JSON. - * @function toJSON - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @instance - * @returns {Object.} JSON object - */ - MetricHealth.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MetricHealth - * @function getTypeUrl - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MetricHealth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth"; - }; - - return MetricHealth; - })(); - - GetThrottlerStatusResponse.RecentApp = (function() { - - /** - * Properties of a RecentApp. - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @interface IRecentApp - * @property {vttime.ITime|null} [checked_at] RecentApp checked_at - * @property {tabletmanagerdata.CheckThrottlerResponseCode|null} [response_code] RecentApp response_code - */ - - /** - * Constructs a new RecentApp. - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @classdesc Represents a RecentApp. - * @implements IRecentApp - * @constructor - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp=} [properties] Properties to set - */ - function RecentApp(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + let message = new $root.tabletmanagerdata.ResetSequencesRequest(); + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".tabletmanagerdata.ResetSequencesRequest.tables: array expected"); + message.tables = []; + for (let i = 0; i < object.tables.length; ++i) + message.tables[i] = String(object.tables[i]); } + return message; + }; - /** - * RecentApp checked_at. - * @member {vttime.ITime|null|undefined} checked_at - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @instance - */ - RecentApp.prototype.checked_at = null; - - /** - * RecentApp response_code. - * @member {tabletmanagerdata.CheckThrottlerResponseCode} response_code - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @instance - */ - RecentApp.prototype.response_code = 0; - - /** - * Creates a new RecentApp instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp=} [properties] Properties to set - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp instance - */ - RecentApp.create = function create(properties) { - return new RecentApp(properties); - }; - - /** - * Encodes the specified RecentApp message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp} message RecentApp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecentApp.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.checked_at != null && Object.hasOwnProperty.call(message, "checked_at")) - $root.vttime.Time.encode(message.checked_at, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.response_code != null && Object.hasOwnProperty.call(message, "response_code")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.response_code); - return writer; - }; - - /** - * Encodes the specified RecentApp message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp} message RecentApp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecentApp.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RecentApp message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecentApp.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.checked_at = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 3: { - message.response_code = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RecentApp message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecentApp.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecentApp message. - * @function verify - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RecentApp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.checked_at != null && message.hasOwnProperty("checked_at")) { - let error = $root.vttime.Time.verify(message.checked_at); - if (error) - return "checked_at." + error; - } - if (message.response_code != null && message.hasOwnProperty("response_code")) - switch (message.response_code) { - default: - return "response_code: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; - - /** - * Creates a RecentApp message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp - */ - RecentApp.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp) - return object; - let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp(); - if (object.checked_at != null) { - if (typeof object.checked_at !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.checked_at: object expected"); - message.checked_at = $root.vttime.Time.fromObject(object.checked_at); - } - switch (object.response_code) { - default: - if (typeof object.response_code === "number") { - message.response_code = object.response_code; - break; - } - break; - case "UNDEFINED": - case 0: - message.response_code = 0; - break; - case "OK": - case 1: - message.response_code = 1; - break; - case "THRESHOLD_EXCEEDED": - case 2: - message.response_code = 2; - break; - case "APP_DENIED": - case 3: - message.response_code = 3; - break; - case "UNKNOWN_METRIC": - case 4: - message.response_code = 4; - break; - case "INTERNAL_ERROR": - case 5: - message.response_code = 5; - break; - } - return message; - }; - - /** - * Creates a plain object from a RecentApp message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} message RecentApp - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RecentApp.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.checked_at = null; - object.response_code = options.enums === String ? "UNDEFINED" : 0; - } - if (message.checked_at != null && message.hasOwnProperty("checked_at")) - object.checked_at = $root.vttime.Time.toObject(message.checked_at, options); - if (message.response_code != null && message.hasOwnProperty("response_code")) - object.response_code = options.enums === String ? $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] === undefined ? message.response_code : $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] : message.response_code; - return object; - }; - - /** - * Converts this RecentApp to JSON. - * @function toJSON - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @instance - * @returns {Object.} JSON object - */ - RecentApp.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ResetSequencesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.ResetSequencesRequest + * @static + * @param {tabletmanagerdata.ResetSequencesRequest} message ResetSequencesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResetSequencesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.tables = []; + if (message.tables && message.tables.length) { + object.tables = []; + for (let j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; + } + return object; + }; - /** - * Gets the default type url for RecentApp - * @function getTypeUrl - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RecentApp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse.RecentApp"; - }; + /** + * Converts this ResetSequencesRequest to JSON. + * @function toJSON + * @memberof tabletmanagerdata.ResetSequencesRequest + * @instance + * @returns {Object.} JSON object + */ + ResetSequencesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return RecentApp; - })(); + /** + * Gets the default type url for ResetSequencesRequest + * @function getTypeUrl + * @memberof tabletmanagerdata.ResetSequencesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResetSequencesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.ResetSequencesRequest"; + }; - return GetThrottlerStatusResponse; + return ResetSequencesRequest; })(); - tabletmanagerdata.ChangeTagsRequest = (function() { + tabletmanagerdata.ResetSequencesResponse = (function() { /** - * Properties of a ChangeTagsRequest. + * Properties of a ResetSequencesResponse. * @memberof tabletmanagerdata - * @interface IChangeTagsRequest - * @property {Object.|null} [tags] ChangeTagsRequest tags - * @property {boolean|null} [replace] ChangeTagsRequest replace + * @interface IResetSequencesResponse */ /** - * Constructs a new ChangeTagsRequest. + * Constructs a new ResetSequencesResponse. * @memberof tabletmanagerdata - * @classdesc Represents a ChangeTagsRequest. - * @implements IChangeTagsRequest + * @classdesc Represents a ResetSequencesResponse. + * @implements IResetSequencesResponse * @constructor - * @param {tabletmanagerdata.IChangeTagsRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IResetSequencesResponse=} [properties] Properties to set */ - function ChangeTagsRequest(properties) { - this.tags = {}; + function ResetSequencesResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84502,111 +83814,63 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ChangeTagsRequest tags. - * @member {Object.} tags - * @memberof tabletmanagerdata.ChangeTagsRequest - * @instance - */ - ChangeTagsRequest.prototype.tags = $util.emptyObject; - - /** - * ChangeTagsRequest replace. - * @member {boolean} replace - * @memberof tabletmanagerdata.ChangeTagsRequest - * @instance - */ - ChangeTagsRequest.prototype.replace = false; - - /** - * Creates a new ChangeTagsRequest instance using the specified properties. + * Creates a new ResetSequencesResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof tabletmanagerdata.ResetSequencesResponse * @static - * @param {tabletmanagerdata.IChangeTagsRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest instance + * @param {tabletmanagerdata.IResetSequencesResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse instance */ - ChangeTagsRequest.create = function create(properties) { - return new ChangeTagsRequest(properties); + ResetSequencesResponse.create = function create(properties) { + return new ResetSequencesResponse(properties); }; /** - * Encodes the specified ChangeTagsRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. + * Encodes the specified ResetSequencesResponse message. Does not implicitly {@link tabletmanagerdata.ResetSequencesResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof tabletmanagerdata.ResetSequencesResponse * @static - * @param {tabletmanagerdata.IChangeTagsRequest} message ChangeTagsRequest message or plain object to encode + * @param {tabletmanagerdata.IResetSequencesResponse} message ResetSequencesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTagsRequest.encode = function encode(message, writer) { + ResetSequencesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) - for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); - if (message.replace != null && Object.hasOwnProperty.call(message, "replace")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.replace); return writer; }; /** - * Encodes the specified ChangeTagsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. + * Encodes the specified ResetSequencesResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetSequencesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof tabletmanagerdata.ResetSequencesResponse * @static - * @param {tabletmanagerdata.IChangeTagsRequest} message ChangeTagsRequest message or plain object to encode + * @param {tabletmanagerdata.IResetSequencesResponse} message ResetSequencesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTagsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResetSequencesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTagsRequest message from the specified reader or buffer. + * Decodes a ResetSequencesResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof tabletmanagerdata.ResetSequencesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest + * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTagsRequest.decode = function decode(reader, length) { + ResetSequencesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTagsRequest(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetSequencesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - 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; @@ -84616,146 +83880,112 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ChangeTagsRequest message from the specified reader or buffer, length delimited. + * Decodes a ResetSequencesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof tabletmanagerdata.ResetSequencesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest + * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTagsRequest.decodeDelimited = function decodeDelimited(reader) { + ResetSequencesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTagsRequest message. + * Verifies a ResetSequencesResponse message. * @function verify - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof tabletmanagerdata.ResetSequencesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeTagsRequest.verify = function verify(message) { + ResetSequencesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!$util.isObject(message.tags)) - return "tags: object expected"; - let key = Object.keys(message.tags); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.tags[key[i]])) - return "tags: string{k:string} expected"; - } - if (message.replace != null && message.hasOwnProperty("replace")) - if (typeof message.replace !== "boolean") - return "replace: boolean expected"; return null; }; /** - * Creates a ChangeTagsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResetSequencesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof tabletmanagerdata.ResetSequencesResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest + * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse */ - ChangeTagsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ChangeTagsRequest) + ResetSequencesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ResetSequencesResponse) return object; - let message = new $root.tabletmanagerdata.ChangeTagsRequest(); - if (object.tags) { - if (typeof object.tags !== "object") - throw TypeError(".tabletmanagerdata.ChangeTagsRequest.tags: object expected"); - message.tags = {}; - for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) - message.tags[keys[i]] = String(object.tags[keys[i]]); - } - if (object.replace != null) - message.replace = Boolean(object.replace); - return message; + return new $root.tabletmanagerdata.ResetSequencesResponse(); }; /** - * Creates a plain object from a ChangeTagsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ResetSequencesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof tabletmanagerdata.ResetSequencesResponse * @static - * @param {tabletmanagerdata.ChangeTagsRequest} message ChangeTagsRequest + * @param {tabletmanagerdata.ResetSequencesResponse} message ResetSequencesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTagsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.objects || options.defaults) - object.tags = {}; - if (options.defaults) - object.replace = false; - let keys2; - if (message.tags && (keys2 = Object.keys(message.tags)).length) { - object.tags = {}; - for (let j = 0; j < keys2.length; ++j) - object.tags[keys2[j]] = message.tags[keys2[j]]; - } - if (message.replace != null && message.hasOwnProperty("replace")) - object.replace = message.replace; - return object; + ResetSequencesResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ChangeTagsRequest to JSON. + * Converts this ResetSequencesResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof tabletmanagerdata.ResetSequencesResponse * @instance * @returns {Object.} JSON object */ - ChangeTagsRequest.prototype.toJSON = function toJSON() { + ResetSequencesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChangeTagsRequest + * Gets the default type url for ResetSequencesResponse * @function getTypeUrl - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof tabletmanagerdata.ResetSequencesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChangeTagsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResetSequencesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ChangeTagsRequest"; + return typeUrlPrefix + "/tabletmanagerdata.ResetSequencesResponse"; }; - return ChangeTagsRequest; + return ResetSequencesResponse; })(); - tabletmanagerdata.ChangeTagsResponse = (function() { + tabletmanagerdata.CheckThrottlerRequest = (function() { /** - * Properties of a ChangeTagsResponse. + * Properties of a CheckThrottlerRequest. * @memberof tabletmanagerdata - * @interface IChangeTagsResponse - * @property {Object.|null} [tags] ChangeTagsResponse tags + * @interface ICheckThrottlerRequest + * @property {string|null} [app_name] CheckThrottlerRequest app_name + * @property {string|null} [scope] CheckThrottlerRequest scope + * @property {boolean|null} [skip_request_heartbeats] CheckThrottlerRequest skip_request_heartbeats + * @property {boolean|null} [ok_if_not_exists] CheckThrottlerRequest ok_if_not_exists */ /** - * Constructs a new ChangeTagsResponse. + * Constructs a new CheckThrottlerRequest. * @memberof tabletmanagerdata - * @classdesc Represents a ChangeTagsResponse. - * @implements IChangeTagsResponse + * @classdesc Represents a CheckThrottlerRequest. + * @implements ICheckThrottlerRequest * @constructor - * @param {tabletmanagerdata.IChangeTagsResponse=} [properties] Properties to set + * @param {tabletmanagerdata.ICheckThrottlerRequest=} [properties] Properties to set */ - function ChangeTagsResponse(properties) { - this.tags = {}; + function CheckThrottlerRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84763,95 +83993,117 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { } /** - * ChangeTagsResponse tags. - * @member {Object.} tags - * @memberof tabletmanagerdata.ChangeTagsResponse + * CheckThrottlerRequest app_name. + * @member {string} app_name + * @memberof tabletmanagerdata.CheckThrottlerRequest * @instance */ - ChangeTagsResponse.prototype.tags = $util.emptyObject; + CheckThrottlerRequest.prototype.app_name = ""; /** - * Creates a new ChangeTagsResponse instance using the specified properties. + * CheckThrottlerRequest scope. + * @member {string} scope + * @memberof tabletmanagerdata.CheckThrottlerRequest + * @instance + */ + CheckThrottlerRequest.prototype.scope = ""; + + /** + * CheckThrottlerRequest skip_request_heartbeats. + * @member {boolean} skip_request_heartbeats + * @memberof tabletmanagerdata.CheckThrottlerRequest + * @instance + */ + CheckThrottlerRequest.prototype.skip_request_heartbeats = false; + + /** + * CheckThrottlerRequest ok_if_not_exists. + * @member {boolean} ok_if_not_exists + * @memberof tabletmanagerdata.CheckThrottlerRequest + * @instance + */ + CheckThrottlerRequest.prototype.ok_if_not_exists = false; + + /** + * Creates a new CheckThrottlerRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof tabletmanagerdata.CheckThrottlerRequest * @static - * @param {tabletmanagerdata.IChangeTagsResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse instance + * @param {tabletmanagerdata.ICheckThrottlerRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest instance */ - ChangeTagsResponse.create = function create(properties) { - return new ChangeTagsResponse(properties); + CheckThrottlerRequest.create = function create(properties) { + return new CheckThrottlerRequest(properties); }; /** - * Encodes the specified ChangeTagsResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. + * Encodes the specified CheckThrottlerRequest message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof tabletmanagerdata.CheckThrottlerRequest * @static - * @param {tabletmanagerdata.IChangeTagsResponse} message ChangeTagsResponse message or plain object to encode + * @param {tabletmanagerdata.ICheckThrottlerRequest} message CheckThrottlerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTagsResponse.encode = function encode(message, writer) { + CheckThrottlerRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) - for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + if (message.app_name != null && Object.hasOwnProperty.call(message, "app_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.app_name); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.scope); + if (message.skip_request_heartbeats != null && Object.hasOwnProperty.call(message, "skip_request_heartbeats")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.skip_request_heartbeats); + if (message.ok_if_not_exists != null && Object.hasOwnProperty.call(message, "ok_if_not_exists")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.ok_if_not_exists); return writer; }; /** - * Encodes the specified ChangeTagsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. + * Encodes the specified CheckThrottlerRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof tabletmanagerdata.CheckThrottlerRequest * @static - * @param {tabletmanagerdata.IChangeTagsResponse} message ChangeTagsResponse message or plain object to encode + * @param {tabletmanagerdata.ICheckThrottlerRequest} message CheckThrottlerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTagsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CheckThrottlerRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTagsResponse message from the specified reader or buffer. + * Decodes a CheckThrottlerRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof tabletmanagerdata.CheckThrottlerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse + * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTagsResponse.decode = function decode(reader, length) { + CheckThrottlerRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTagsResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CheckThrottlerRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - 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; + message.app_name = reader.string(); + break; + } + case 2: { + message.scope = reader.string(); + break; + } + case 3: { + message.skip_request_heartbeats = reader.bool(); + break; + } + case 4: { + message.ok_if_not_exists = reader.bool(); break; } default: @@ -84863,150 +84115,178 @@ export const tabletmanagerdata = $root.tabletmanagerdata = (() => { }; /** - * Decodes a ChangeTagsResponse message from the specified reader or buffer, length delimited. + * Decodes a CheckThrottlerRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof tabletmanagerdata.CheckThrottlerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse + * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTagsResponse.decodeDelimited = function decodeDelimited(reader) { + CheckThrottlerRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTagsResponse message. + * Verifies a CheckThrottlerRequest message. * @function verify - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof tabletmanagerdata.CheckThrottlerRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeTagsResponse.verify = function verify(message) { + CheckThrottlerRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!$util.isObject(message.tags)) - return "tags: object expected"; - let key = Object.keys(message.tags); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.tags[key[i]])) - return "tags: string{k:string} expected"; - } + if (message.app_name != null && message.hasOwnProperty("app_name")) + if (!$util.isString(message.app_name)) + return "app_name: string expected"; + if (message.scope != null && message.hasOwnProperty("scope")) + if (!$util.isString(message.scope)) + return "scope: string expected"; + if (message.skip_request_heartbeats != null && message.hasOwnProperty("skip_request_heartbeats")) + if (typeof message.skip_request_heartbeats !== "boolean") + return "skip_request_heartbeats: boolean expected"; + if (message.ok_if_not_exists != null && message.hasOwnProperty("ok_if_not_exists")) + if (typeof message.ok_if_not_exists !== "boolean") + return "ok_if_not_exists: boolean expected"; return null; }; /** - * Creates a ChangeTagsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CheckThrottlerRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof tabletmanagerdata.CheckThrottlerRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse + * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest */ - ChangeTagsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ChangeTagsResponse) + CheckThrottlerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.CheckThrottlerRequest) return object; - let message = new $root.tabletmanagerdata.ChangeTagsResponse(); - if (object.tags) { - if (typeof object.tags !== "object") - throw TypeError(".tabletmanagerdata.ChangeTagsResponse.tags: object expected"); - message.tags = {}; - for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) - message.tags[keys[i]] = String(object.tags[keys[i]]); - } + let message = new $root.tabletmanagerdata.CheckThrottlerRequest(); + if (object.app_name != null) + message.app_name = String(object.app_name); + if (object.scope != null) + message.scope = String(object.scope); + if (object.skip_request_heartbeats != null) + message.skip_request_heartbeats = Boolean(object.skip_request_heartbeats); + if (object.ok_if_not_exists != null) + message.ok_if_not_exists = Boolean(object.ok_if_not_exists); return message; }; /** - * Creates a plain object from a ChangeTagsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CheckThrottlerRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof tabletmanagerdata.CheckThrottlerRequest * @static - * @param {tabletmanagerdata.ChangeTagsResponse} message ChangeTagsResponse + * @param {tabletmanagerdata.CheckThrottlerRequest} message CheckThrottlerRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTagsResponse.toObject = function toObject(message, options) { + CheckThrottlerRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.tags = {}; - let keys2; - if (message.tags && (keys2 = Object.keys(message.tags)).length) { - object.tags = {}; - for (let j = 0; j < keys2.length; ++j) - object.tags[keys2[j]] = message.tags[keys2[j]]; + if (options.defaults) { + object.app_name = ""; + object.scope = ""; + object.skip_request_heartbeats = false; + object.ok_if_not_exists = false; } + if (message.app_name != null && message.hasOwnProperty("app_name")) + object.app_name = message.app_name; + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = message.scope; + if (message.skip_request_heartbeats != null && message.hasOwnProperty("skip_request_heartbeats")) + object.skip_request_heartbeats = message.skip_request_heartbeats; + if (message.ok_if_not_exists != null && message.hasOwnProperty("ok_if_not_exists")) + object.ok_if_not_exists = message.ok_if_not_exists; return object; }; /** - * Converts this ChangeTagsResponse to JSON. + * Converts this CheckThrottlerRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof tabletmanagerdata.CheckThrottlerRequest * @instance * @returns {Object.} JSON object */ - ChangeTagsResponse.prototype.toJSON = function toJSON() { + CheckThrottlerRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChangeTagsResponse + * Gets the default type url for CheckThrottlerRequest * @function getTypeUrl - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof tabletmanagerdata.CheckThrottlerRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChangeTagsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CheckThrottlerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/tabletmanagerdata.ChangeTagsResponse"; + return typeUrlPrefix + "/tabletmanagerdata.CheckThrottlerRequest"; }; - return ChangeTagsResponse; + return CheckThrottlerRequest; })(); - return tabletmanagerdata; -})(); - -export const binlogdata = $root.binlogdata = (() => { - /** - * Namespace binlogdata. - * @exports binlogdata - * @namespace + * CheckThrottlerResponseCode enum. + * @name tabletmanagerdata.CheckThrottlerResponseCode + * @enum {number} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} OK=1 OK value + * @property {number} THRESHOLD_EXCEEDED=2 THRESHOLD_EXCEEDED value + * @property {number} APP_DENIED=3 APP_DENIED value + * @property {number} UNKNOWN_METRIC=4 UNKNOWN_METRIC value + * @property {number} INTERNAL_ERROR=5 INTERNAL_ERROR value */ - const binlogdata = {}; + tabletmanagerdata.CheckThrottlerResponseCode = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "OK"] = 1; + values[valuesById[2] = "THRESHOLD_EXCEEDED"] = 2; + values[valuesById[3] = "APP_DENIED"] = 3; + values[valuesById[4] = "UNKNOWN_METRIC"] = 4; + values[valuesById[5] = "INTERNAL_ERROR"] = 5; + return values; + })(); - binlogdata.Charset = (function() { + tabletmanagerdata.CheckThrottlerResponse = (function() { /** - * Properties of a Charset. - * @memberof binlogdata - * @interface ICharset - * @property {number|null} [client] Charset client - * @property {number|null} [conn] Charset conn - * @property {number|null} [server] Charset server + * Properties of a CheckThrottlerResponse. + * @memberof tabletmanagerdata + * @interface ICheckThrottlerResponse + * @property {number|null} [value] CheckThrottlerResponse value + * @property {number|null} [threshold] CheckThrottlerResponse threshold + * @property {string|null} [error] CheckThrottlerResponse error + * @property {string|null} [message] CheckThrottlerResponse message + * @property {boolean|null} [recently_checked] CheckThrottlerResponse recently_checked + * @property {Object.|null} [metrics] CheckThrottlerResponse metrics + * @property {string|null} [app_name] CheckThrottlerResponse app_name + * @property {string|null} [summary] CheckThrottlerResponse summary + * @property {tabletmanagerdata.CheckThrottlerResponseCode|null} [response_code] CheckThrottlerResponse response_code */ /** - * Constructs a new Charset. - * @memberof binlogdata - * @classdesc Represents a Charset. - * @implements ICharset + * Constructs a new CheckThrottlerResponse. + * @memberof tabletmanagerdata + * @classdesc Represents a CheckThrottlerResponse. + * @implements ICheckThrottlerResponse * @constructor - * @param {binlogdata.ICharset=} [properties] Properties to set + * @param {tabletmanagerdata.ICheckThrottlerResponse=} [properties] Properties to set */ - function Charset(properties) { + function CheckThrottlerResponse(properties) { + this.metrics = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85014,342 +84294,209 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * Charset client. - * @member {number} client - * @memberof binlogdata.Charset + * CheckThrottlerResponse value. + * @member {number} value + * @memberof tabletmanagerdata.CheckThrottlerResponse * @instance */ - Charset.prototype.client = 0; + CheckThrottlerResponse.prototype.value = 0; /** - * Charset conn. - * @member {number} conn - * @memberof binlogdata.Charset + * CheckThrottlerResponse threshold. + * @member {number} threshold + * @memberof tabletmanagerdata.CheckThrottlerResponse * @instance */ - Charset.prototype.conn = 0; + CheckThrottlerResponse.prototype.threshold = 0; /** - * Charset server. - * @member {number} server - * @memberof binlogdata.Charset + * CheckThrottlerResponse error. + * @member {string} error + * @memberof tabletmanagerdata.CheckThrottlerResponse * @instance */ - Charset.prototype.server = 0; + CheckThrottlerResponse.prototype.error = ""; /** - * Creates a new Charset instance using the specified properties. + * CheckThrottlerResponse message. + * @member {string} message + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @instance + */ + CheckThrottlerResponse.prototype.message = ""; + + /** + * CheckThrottlerResponse recently_checked. + * @member {boolean} recently_checked + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @instance + */ + CheckThrottlerResponse.prototype.recently_checked = false; + + /** + * CheckThrottlerResponse metrics. + * @member {Object.} metrics + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @instance + */ + CheckThrottlerResponse.prototype.metrics = $util.emptyObject; + + /** + * CheckThrottlerResponse app_name. + * @member {string} app_name + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @instance + */ + CheckThrottlerResponse.prototype.app_name = ""; + + /** + * CheckThrottlerResponse summary. + * @member {string} summary + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @instance + */ + CheckThrottlerResponse.prototype.summary = ""; + + /** + * CheckThrottlerResponse response_code. + * @member {tabletmanagerdata.CheckThrottlerResponseCode} response_code + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @instance + */ + CheckThrottlerResponse.prototype.response_code = 0; + + /** + * Creates a new CheckThrottlerResponse instance using the specified properties. * @function create - * @memberof binlogdata.Charset + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static - * @param {binlogdata.ICharset=} [properties] Properties to set - * @returns {binlogdata.Charset} Charset instance + * @param {tabletmanagerdata.ICheckThrottlerResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse instance */ - Charset.create = function create(properties) { - return new Charset(properties); + CheckThrottlerResponse.create = function create(properties) { + return new CheckThrottlerResponse(properties); }; /** - * Encodes the specified Charset message. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. + * Encodes the specified CheckThrottlerResponse message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.verify|verify} messages. * @function encode - * @memberof binlogdata.Charset + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static - * @param {binlogdata.ICharset} message Charset message or plain object to encode + * @param {tabletmanagerdata.ICheckThrottlerResponse} message CheckThrottlerResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Charset.encode = function encode(message, writer) { + CheckThrottlerResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client != null && Object.hasOwnProperty.call(message, "client")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.client); - if (message.conn != null && Object.hasOwnProperty.call(message, "conn")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.conn); - if (message.server != null && Object.hasOwnProperty.call(message, "server")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.server); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.value); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.threshold); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.error); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.message); + if (message.recently_checked != null && Object.hasOwnProperty.call(message, "recently_checked")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.recently_checked); + if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) + for (let keys = Object.keys(message.metrics), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.tabletmanagerdata.CheckThrottlerResponse.Metric.encode(message.metrics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.app_name != null && Object.hasOwnProperty.call(message, "app_name")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.app_name); + if (message.summary != null && Object.hasOwnProperty.call(message, "summary")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.summary); + if (message.response_code != null && Object.hasOwnProperty.call(message, "response_code")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.response_code); return writer; }; /** - * Encodes the specified Charset message, length delimited. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. + * Encodes the specified CheckThrottlerResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.Charset + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static - * @param {binlogdata.ICharset} message Charset message or plain object to encode + * @param {tabletmanagerdata.ICheckThrottlerResponse} message CheckThrottlerResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Charset.encodeDelimited = function encodeDelimited(message, writer) { + CheckThrottlerResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Charset message from the specified reader or buffer. + * Decodes a CheckThrottlerResponse message from the specified reader or buffer. * @function decode - * @memberof binlogdata.Charset + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.Charset} Charset + * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Charset.decode = function decode(reader, length) { + CheckThrottlerResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Charset(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CheckThrottlerResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.client = reader.int32(); - break; - } case 2: { - message.conn = reader.int32(); + message.value = reader.double(); break; } case 3: { - message.server = reader.int32(); + message.threshold = reader.double(); break; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Charset message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof binlogdata.Charset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.Charset} Charset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Charset.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Charset message. - * @function verify - * @memberof binlogdata.Charset - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Charset.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.client != null && message.hasOwnProperty("client")) - if (!$util.isInteger(message.client)) - return "client: integer expected"; - if (message.conn != null && message.hasOwnProperty("conn")) - if (!$util.isInteger(message.conn)) - return "conn: integer expected"; - if (message.server != null && message.hasOwnProperty("server")) - if (!$util.isInteger(message.server)) - return "server: integer expected"; - return null; - }; - - /** - * Creates a Charset message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof binlogdata.Charset - * @static - * @param {Object.} object Plain object - * @returns {binlogdata.Charset} Charset - */ - Charset.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.Charset) - return object; - let message = new $root.binlogdata.Charset(); - if (object.client != null) - message.client = object.client | 0; - if (object.conn != null) - message.conn = object.conn | 0; - if (object.server != null) - message.server = object.server | 0; - return message; - }; - - /** - * Creates a plain object from a Charset message. Also converts values to other types if specified. - * @function toObject - * @memberof binlogdata.Charset - * @static - * @param {binlogdata.Charset} message Charset - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Charset.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.client = 0; - object.conn = 0; - object.server = 0; - } - if (message.client != null && message.hasOwnProperty("client")) - object.client = message.client; - if (message.conn != null && message.hasOwnProperty("conn")) - object.conn = message.conn; - if (message.server != null && message.hasOwnProperty("server")) - object.server = message.server; - return object; - }; - - /** - * Converts this Charset to JSON. - * @function toJSON - * @memberof binlogdata.Charset - * @instance - * @returns {Object.} JSON object - */ - Charset.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Charset - * @function getTypeUrl - * @memberof binlogdata.Charset - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Charset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/binlogdata.Charset"; - }; - - return Charset; - })(); - - binlogdata.BinlogTransaction = (function() { - - /** - * Properties of a BinlogTransaction. - * @memberof binlogdata - * @interface IBinlogTransaction - * @property {Array.|null} [statements] BinlogTransaction statements - * @property {query.IEventToken|null} [event_token] BinlogTransaction event_token - */ - - /** - * Constructs a new BinlogTransaction. - * @memberof binlogdata - * @classdesc Represents a BinlogTransaction. - * @implements IBinlogTransaction - * @constructor - * @param {binlogdata.IBinlogTransaction=} [properties] Properties to set - */ - function BinlogTransaction(properties) { - this.statements = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BinlogTransaction statements. - * @member {Array.} statements - * @memberof binlogdata.BinlogTransaction - * @instance - */ - BinlogTransaction.prototype.statements = $util.emptyArray; - - /** - * BinlogTransaction event_token. - * @member {query.IEventToken|null|undefined} event_token - * @memberof binlogdata.BinlogTransaction - * @instance - */ - BinlogTransaction.prototype.event_token = null; - - /** - * Creates a new BinlogTransaction instance using the specified properties. - * @function create - * @memberof binlogdata.BinlogTransaction - * @static - * @param {binlogdata.IBinlogTransaction=} [properties] Properties to set - * @returns {binlogdata.BinlogTransaction} BinlogTransaction instance - */ - BinlogTransaction.create = function create(properties) { - return new BinlogTransaction(properties); - }; - - /** - * Encodes the specified BinlogTransaction message. Does not implicitly {@link binlogdata.BinlogTransaction.verify|verify} messages. - * @function encode - * @memberof binlogdata.BinlogTransaction - * @static - * @param {binlogdata.IBinlogTransaction} message BinlogTransaction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BinlogTransaction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.statements != null && message.statements.length) - for (let i = 0; i < message.statements.length; ++i) - $root.binlogdata.BinlogTransaction.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 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified BinlogTransaction message, length delimited. Does not implicitly {@link binlogdata.BinlogTransaction.verify|verify} messages. - * @function encodeDelimited - * @memberof binlogdata.BinlogTransaction - * @static - * @param {binlogdata.IBinlogTransaction} message BinlogTransaction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BinlogTransaction.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a BinlogTransaction message from the specified reader or buffer. - * @function decode - * @memberof binlogdata.BinlogTransaction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.BinlogTransaction} BinlogTransaction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BinlogTransaction.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogTransaction(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.statements && message.statements.length)) - message.statements = []; - message.statements.push($root.binlogdata.BinlogTransaction.Statement.decode(reader, reader.uint32())); + case 4: { + message.error = reader.string(); break; } - case 4: { - message.event_token = $root.query.EventToken.decode(reader, reader.uint32()); + case 5: { + message.message = reader.string(); + break; + } + case 6: { + message.recently_checked = reader.bool(); + break; + } + case 7: { + if (message.metrics === $util.emptyObject) + message.metrics = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.metrics[key] = value; + break; + } + case 8: { + message.app_name = reader.string(); + break; + } + case 9: { + message.summary = reader.string(); + break; + } + case 10: { + message.response_code = reader.int32(); break; } default: @@ -85361,152 +84508,249 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a BinlogTransaction message from the specified reader or buffer, length delimited. + * Decodes a CheckThrottlerResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.BinlogTransaction + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.BinlogTransaction} BinlogTransaction + * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BinlogTransaction.decodeDelimited = function decodeDelimited(reader) { + CheckThrottlerResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BinlogTransaction message. + * Verifies a CheckThrottlerResponse message. * @function verify - * @memberof binlogdata.BinlogTransaction + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BinlogTransaction.verify = function verify(message) { + CheckThrottlerResponse.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 (let i = 0; i < message.statements.length; ++i) { - let error = $root.binlogdata.BinlogTransaction.Statement.verify(message.statements[i]); + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) + if (typeof message.threshold !== "number") + return "threshold: number expected"; + if (message.error != null && message.hasOwnProperty("error")) + if (!$util.isString(message.error)) + return "error: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) + if (typeof message.recently_checked !== "boolean") + return "recently_checked: boolean expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!$util.isObject(message.metrics)) + return "metrics: object expected"; + let key = Object.keys(message.metrics); + for (let i = 0; i < key.length; ++i) { + let error = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.verify(message.metrics[key[i]]); if (error) - return "statements." + error; + return "metrics." + error; } } - if (message.event_token != null && message.hasOwnProperty("event_token")) { - let error = $root.query.EventToken.verify(message.event_token); - if (error) - return "event_token." + error; - } + if (message.app_name != null && message.hasOwnProperty("app_name")) + if (!$util.isString(message.app_name)) + return "app_name: string expected"; + if (message.summary != null && message.hasOwnProperty("summary")) + if (!$util.isString(message.summary)) + return "summary: string expected"; + if (message.response_code != null && message.hasOwnProperty("response_code")) + switch (message.response_code) { + default: + return "response_code: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } return null; }; /** - * Creates a BinlogTransaction message from a plain object. Also converts values to their respective internal types. + * Creates a CheckThrottlerResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.BinlogTransaction + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static * @param {Object.} object Plain object - * @returns {binlogdata.BinlogTransaction} BinlogTransaction + * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse */ - BinlogTransaction.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.BinlogTransaction) + CheckThrottlerResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.CheckThrottlerResponse) return object; - let message = new $root.binlogdata.BinlogTransaction(); - if (object.statements) { - if (!Array.isArray(object.statements)) - throw TypeError(".binlogdata.BinlogTransaction.statements: array expected"); - message.statements = []; - for (let i = 0; i < object.statements.length; ++i) { - if (typeof object.statements[i] !== "object") - throw TypeError(".binlogdata.BinlogTransaction.statements: object expected"); - message.statements[i] = $root.binlogdata.BinlogTransaction.Statement.fromObject(object.statements[i]); + let message = new $root.tabletmanagerdata.CheckThrottlerResponse(); + if (object.value != null) + message.value = Number(object.value); + if (object.threshold != null) + message.threshold = Number(object.threshold); + if (object.error != null) + message.error = String(object.error); + if (object.message != null) + message.message = String(object.message); + if (object.recently_checked != null) + message.recently_checked = Boolean(object.recently_checked); + if (object.metrics) { + if (typeof object.metrics !== "object") + throw TypeError(".tabletmanagerdata.CheckThrottlerResponse.metrics: object expected"); + message.metrics = {}; + for (let keys = Object.keys(object.metrics), i = 0; i < keys.length; ++i) { + if (typeof object.metrics[keys[i]] !== "object") + throw TypeError(".tabletmanagerdata.CheckThrottlerResponse.metrics: object expected"); + message.metrics[keys[i]] = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.fromObject(object.metrics[keys[i]]); } } - if (object.event_token != null) { - if (typeof object.event_token !== "object") - throw TypeError(".binlogdata.BinlogTransaction.event_token: object expected"); - message.event_token = $root.query.EventToken.fromObject(object.event_token); + if (object.app_name != null) + message.app_name = String(object.app_name); + if (object.summary != null) + message.summary = String(object.summary); + switch (object.response_code) { + default: + if (typeof object.response_code === "number") { + message.response_code = object.response_code; + break; + } + break; + case "UNDEFINED": + case 0: + message.response_code = 0; + break; + case "OK": + case 1: + message.response_code = 1; + break; + case "THRESHOLD_EXCEEDED": + case 2: + message.response_code = 2; + break; + case "APP_DENIED": + case 3: + message.response_code = 3; + break; + case "UNKNOWN_METRIC": + case 4: + message.response_code = 4; + break; + case "INTERNAL_ERROR": + case 5: + message.response_code = 5; + break; } return message; }; /** - * Creates a plain object from a BinlogTransaction message. Also converts values to other types if specified. + * Creates a plain object from a CheckThrottlerResponse message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.BinlogTransaction + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static - * @param {binlogdata.BinlogTransaction} message BinlogTransaction + * @param {tabletmanagerdata.CheckThrottlerResponse} message CheckThrottlerResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BinlogTransaction.toObject = function toObject(message, options) { + CheckThrottlerResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.statements = []; - if (options.defaults) - object.event_token = null; - if (message.statements && message.statements.length) { - object.statements = []; - for (let j = 0; j < message.statements.length; ++j) - object.statements[j] = $root.binlogdata.BinlogTransaction.Statement.toObject(message.statements[j], options); + if (options.objects || options.defaults) + object.metrics = {}; + if (options.defaults) { + object.value = 0; + object.threshold = 0; + object.error = ""; + object.message = ""; + object.recently_checked = false; + object.app_name = ""; + object.summary = ""; + object.response_code = options.enums === String ? "UNDEFINED" : 0; } - if (message.event_token != null && message.hasOwnProperty("event_token")) - object.event_token = $root.query.EventToken.toObject(message.event_token, options); + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = options.json && !isFinite(message.threshold) ? String(message.threshold) : message.threshold; + if (message.error != null && message.hasOwnProperty("error")) + object.error = message.error; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) + object.recently_checked = message.recently_checked; + let keys2; + if (message.metrics && (keys2 = Object.keys(message.metrics)).length) { + object.metrics = {}; + for (let j = 0; j < keys2.length; ++j) + object.metrics[keys2[j]] = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.toObject(message.metrics[keys2[j]], options); + } + if (message.app_name != null && message.hasOwnProperty("app_name")) + object.app_name = message.app_name; + if (message.summary != null && message.hasOwnProperty("summary")) + object.summary = message.summary; + if (message.response_code != null && message.hasOwnProperty("response_code")) + object.response_code = options.enums === String ? $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] === undefined ? message.response_code : $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] : message.response_code; return object; }; /** - * Converts this BinlogTransaction to JSON. + * Converts this CheckThrottlerResponse to JSON. * @function toJSON - * @memberof binlogdata.BinlogTransaction + * @memberof tabletmanagerdata.CheckThrottlerResponse * @instance * @returns {Object.} JSON object */ - BinlogTransaction.prototype.toJSON = function toJSON() { + CheckThrottlerResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BinlogTransaction + * Gets the default type url for CheckThrottlerResponse * @function getTypeUrl - * @memberof binlogdata.BinlogTransaction + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BinlogTransaction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CheckThrottlerResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.BinlogTransaction"; + return typeUrlPrefix + "/tabletmanagerdata.CheckThrottlerResponse"; }; - BinlogTransaction.Statement = (function() { + CheckThrottlerResponse.Metric = (function() { /** - * Properties of a Statement. - * @memberof binlogdata.BinlogTransaction - * @interface IStatement - * @property {binlogdata.BinlogTransaction.Statement.Category|null} [category] Statement category - * @property {binlogdata.ICharset|null} [charset] Statement charset - * @property {Uint8Array|null} [sql] Statement sql + * Properties of a Metric. + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @interface IMetric + * @property {string|null} [name] Metric name + * @property {number|null} [value] Metric value + * @property {number|null} [threshold] Metric threshold + * @property {string|null} [error] Metric error + * @property {string|null} [message] Metric message + * @property {string|null} [scope] Metric scope + * @property {tabletmanagerdata.CheckThrottlerResponseCode|null} [response_code] Metric response_code */ /** - * Constructs a new Statement. - * @memberof binlogdata.BinlogTransaction - * @classdesc Represents a Statement. - * @implements IStatement + * Constructs a new Metric. + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @classdesc Represents a Metric. + * @implements IMetric * @constructor - * @param {binlogdata.BinlogTransaction.IStatement=} [properties] Properties to set + * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric=} [properties] Properties to set */ - function Statement(properties) { + function Metric(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85514,103 +84758,159 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * Statement category. - * @member {binlogdata.BinlogTransaction.Statement.Category} category - * @memberof binlogdata.BinlogTransaction.Statement + * Metric name. + * @member {string} name + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric * @instance */ - Statement.prototype.category = 0; + Metric.prototype.name = ""; /** - * Statement charset. - * @member {binlogdata.ICharset|null|undefined} charset - * @memberof binlogdata.BinlogTransaction.Statement + * Metric value. + * @member {number} value + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric * @instance */ - Statement.prototype.charset = null; + Metric.prototype.value = 0; /** - * Statement sql. - * @member {Uint8Array} sql - * @memberof binlogdata.BinlogTransaction.Statement + * Metric threshold. + * @member {number} threshold + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric * @instance */ - Statement.prototype.sql = $util.newBuffer([]); + Metric.prototype.threshold = 0; /** - * Creates a new Statement instance using the specified properties. + * Metric error. + * @member {string} error + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @instance + */ + Metric.prototype.error = ""; + + /** + * Metric message. + * @member {string} message + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @instance + */ + Metric.prototype.message = ""; + + /** + * Metric scope. + * @member {string} scope + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @instance + */ + Metric.prototype.scope = ""; + + /** + * Metric response_code. + * @member {tabletmanagerdata.CheckThrottlerResponseCode} response_code + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @instance + */ + Metric.prototype.response_code = 0; + + /** + * Creates a new Metric instance using the specified properties. * @function create - * @memberof binlogdata.BinlogTransaction.Statement + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric * @static - * @param {binlogdata.BinlogTransaction.IStatement=} [properties] Properties to set - * @returns {binlogdata.BinlogTransaction.Statement} Statement instance + * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric=} [properties] Properties to set + * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric instance */ - Statement.create = function create(properties) { - return new Statement(properties); + Metric.create = function create(properties) { + return new Metric(properties); }; /** - * Encodes the specified Statement message. Does not implicitly {@link binlogdata.BinlogTransaction.Statement.verify|verify} messages. + * Encodes the specified Metric message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.Metric.verify|verify} messages. * @function encode - * @memberof binlogdata.BinlogTransaction.Statement + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric * @static - * @param {binlogdata.BinlogTransaction.IStatement} message Statement message or plain object to encode + * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric} message Metric message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Statement.encode = function encode(message, writer) { + Metric.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.charset != null && Object.hasOwnProperty.call(message, "charset")) - $root.binlogdata.Charset.encode(message.charset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.sql); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.value); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.threshold); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.error); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.message); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.scope); + if (message.response_code != null && Object.hasOwnProperty.call(message, "response_code")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.response_code); return writer; }; /** - * Encodes the specified Statement message, length delimited. Does not implicitly {@link binlogdata.BinlogTransaction.Statement.verify|verify} messages. + * Encodes the specified Metric message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.Metric.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.BinlogTransaction.Statement + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric * @static - * @param {binlogdata.BinlogTransaction.IStatement} message Statement message or plain object to encode + * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric} message Metric message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Statement.encodeDelimited = function encodeDelimited(message, writer) { + Metric.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Statement message from the specified reader or buffer. + * Decodes a Metric message from the specified reader or buffer. * @function decode - * @memberof binlogdata.BinlogTransaction.Statement + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.BinlogTransaction.Statement} Statement + * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Statement.decode = function decode(reader, length) { + Metric.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogTransaction.Statement(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CheckThrottlerResponse.Metric(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.category = reader.int32(); + message.name = reader.string(); break; } - case 2: { - message.charset = $root.binlogdata.Charset.decode(reader, reader.uint32()); + case 3: { + message.value = reader.double(); break; } - case 3: { - message.sql = reader.bytes(); + case 4: { + message.threshold = reader.double(); + break; + } + case 5: { + message.error = reader.string(); + break; + } + case 6: { + message.message = reader.string(); + break; + } + case 7: { + message.scope = reader.string(); + break; + } + case 8: { + message.response_code = reader.int32(); break; } default: @@ -85622,247 +84922,212 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a Statement message from the specified reader or buffer, length delimited. + * Decodes a Metric message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.BinlogTransaction.Statement + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.BinlogTransaction.Statement} Statement + * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Statement.decodeDelimited = function decodeDelimited(reader) { + Metric.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Statement message. + * Verifies a Metric message. * @function verify - * @memberof binlogdata.BinlogTransaction.Statement + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Statement.verify = function verify(message) { + Metric.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.category != null && message.hasOwnProperty("category")) - switch (message.category) { + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) + if (typeof message.threshold !== "number") + return "threshold: number expected"; + if (message.error != null && message.hasOwnProperty("error")) + if (!$util.isString(message.error)) + return "error: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.scope != null && message.hasOwnProperty("scope")) + if (!$util.isString(message.scope)) + return "scope: string expected"; + if (message.response_code != null && message.hasOwnProperty("response_code")) + switch (message.response_code) { default: - return "category: enum value expected"; + return "response_code: enum value expected"; case 0: case 1: case 2: case 3: case 4: case 5: - case 6: - case 7: - case 8: - case 9: break; } - if (message.charset != null && message.hasOwnProperty("charset")) { - let error = $root.binlogdata.Charset.verify(message.charset); - if (error) - return "charset." + error; - } - if (message.sql != null && message.hasOwnProperty("sql")) - if (!(message.sql && typeof message.sql.length === "number" || $util.isString(message.sql))) - return "sql: buffer expected"; return null; }; /** - * Creates a Statement message from a plain object. Also converts values to their respective internal types. + * Creates a Metric message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.BinlogTransaction.Statement + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric * @static * @param {Object.} object Plain object - * @returns {binlogdata.BinlogTransaction.Statement} Statement + * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric */ - Statement.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.BinlogTransaction.Statement) + Metric.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.CheckThrottlerResponse.Metric) return object; - let message = new $root.binlogdata.BinlogTransaction.Statement(); - switch (object.category) { + let message = new $root.tabletmanagerdata.CheckThrottlerResponse.Metric(); + if (object.name != null) + message.name = String(object.name); + if (object.value != null) + message.value = Number(object.value); + if (object.threshold != null) + message.threshold = Number(object.threshold); + if (object.error != null) + message.error = String(object.error); + if (object.message != null) + message.message = String(object.message); + if (object.scope != null) + message.scope = String(object.scope); + switch (object.response_code) { default: - if (typeof object.category === "number") { - message.category = object.category; + if (typeof object.response_code === "number") { + message.response_code = object.response_code; break; } break; - case "BL_UNRECOGNIZED": + case "UNDEFINED": case 0: - message.category = 0; + message.response_code = 0; break; - case "BL_BEGIN": + case "OK": case 1: - message.category = 1; + message.response_code = 1; break; - case "BL_COMMIT": + case "THRESHOLD_EXCEEDED": case 2: - message.category = 2; + message.response_code = 2; break; - case "BL_ROLLBACK": + case "APP_DENIED": case 3: - message.category = 3; + message.response_code = 3; break; - case "BL_DML_DEPRECATED": + case "UNKNOWN_METRIC": case 4: - message.category = 4; + message.response_code = 4; break; - case "BL_DDL": + case "INTERNAL_ERROR": case 5: - message.category = 5; - break; - case "BL_SET": - case 6: - message.category = 6; - break; - case "BL_INSERT": - case 7: - message.category = 7; - break; - case "BL_UPDATE": - case 8: - message.category = 8; - break; - case "BL_DELETE": - case 9: - message.category = 9; + message.response_code = 5; break; } - if (object.charset != null) { - if (typeof object.charset !== "object") - throw TypeError(".binlogdata.BinlogTransaction.Statement.charset: object expected"); - message.charset = $root.binlogdata.Charset.fromObject(object.charset); - } - 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 >= 0) - message.sql = object.sql; return message; }; /** - * Creates a plain object from a Statement message. Also converts values to other types if specified. + * Creates a plain object from a Metric message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.BinlogTransaction.Statement + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric * @static - * @param {binlogdata.BinlogTransaction.Statement} message Statement + * @param {tabletmanagerdata.CheckThrottlerResponse.Metric} message Metric * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Statement.toObject = function toObject(message, options) { + Metric.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.category = options.enums === String ? "BL_UNRECOGNIZED" : 0; - object.charset = null; - if (options.bytes === String) - object.sql = ""; - else { - object.sql = []; - if (options.bytes !== Array) - object.sql = $util.newBuffer(object.sql); - } + object.name = ""; + object.value = 0; + object.threshold = 0; + object.error = ""; + object.message = ""; + object.scope = ""; + object.response_code = options.enums === String ? "UNDEFINED" : 0; } - if (message.category != null && message.hasOwnProperty("category")) - object.category = options.enums === String ? $root.binlogdata.BinlogTransaction.Statement.Category[message.category] === undefined ? message.category : $root.binlogdata.BinlogTransaction.Statement.Category[message.category] : message.category; - if (message.charset != null && message.hasOwnProperty("charset")) - object.charset = $root.binlogdata.Charset.toObject(message.charset, options); - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = options.bytes === String ? $util.base64.encode(message.sql, 0, message.sql.length) : options.bytes === Array ? Array.prototype.slice.call(message.sql) : message.sql; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = options.json && !isFinite(message.threshold) ? String(message.threshold) : message.threshold; + if (message.error != null && message.hasOwnProperty("error")) + object.error = message.error; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = message.scope; + if (message.response_code != null && message.hasOwnProperty("response_code")) + object.response_code = options.enums === String ? $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] === undefined ? message.response_code : $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] : message.response_code; return object; }; /** - * Converts this Statement to JSON. + * Converts this Metric to JSON. * @function toJSON - * @memberof binlogdata.BinlogTransaction.Statement + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric * @instance * @returns {Object.} JSON object */ - Statement.prototype.toJSON = function toJSON() { + Metric.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Statement + * Gets the default type url for Metric * @function getTypeUrl - * @memberof binlogdata.BinlogTransaction.Statement + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Statement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.BinlogTransaction.Statement"; + return typeUrlPrefix + "/tabletmanagerdata.CheckThrottlerResponse.Metric"; }; - /** - * Category enum. - * @name binlogdata.BinlogTransaction.Statement.Category - * @enum {number} - * @property {number} BL_UNRECOGNIZED=0 BL_UNRECOGNIZED value - * @property {number} BL_BEGIN=1 BL_BEGIN value - * @property {number} BL_COMMIT=2 BL_COMMIT value - * @property {number} BL_ROLLBACK=3 BL_ROLLBACK value - * @property {number} BL_DML_DEPRECATED=4 BL_DML_DEPRECATED value - * @property {number} BL_DDL=5 BL_DDL value - * @property {number} BL_SET=6 BL_SET value - * @property {number} BL_INSERT=7 BL_INSERT value - * @property {number} BL_UPDATE=8 BL_UPDATE value - * @property {number} BL_DELETE=9 BL_DELETE value - */ - Statement.Category = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "BL_UNRECOGNIZED"] = 0; - values[valuesById[1] = "BL_BEGIN"] = 1; - values[valuesById[2] = "BL_COMMIT"] = 2; - values[valuesById[3] = "BL_ROLLBACK"] = 3; - values[valuesById[4] = "BL_DML_DEPRECATED"] = 4; - values[valuesById[5] = "BL_DDL"] = 5; - values[valuesById[6] = "BL_SET"] = 6; - values[valuesById[7] = "BL_INSERT"] = 7; - values[valuesById[8] = "BL_UPDATE"] = 8; - values[valuesById[9] = "BL_DELETE"] = 9; - return values; - })(); - - return Statement; + return Metric; })(); - return BinlogTransaction; + return CheckThrottlerResponse; })(); - binlogdata.StreamKeyRangeRequest = (function() { + tabletmanagerdata.GetThrottlerStatusRequest = (function() { /** - * Properties of a StreamKeyRangeRequest. - * @memberof binlogdata - * @interface IStreamKeyRangeRequest - * @property {string|null} [position] StreamKeyRangeRequest position - * @property {topodata.IKeyRange|null} [key_range] StreamKeyRangeRequest key_range - * @property {binlogdata.ICharset|null} [charset] StreamKeyRangeRequest charset + * Properties of a GetThrottlerStatusRequest. + * @memberof tabletmanagerdata + * @interface IGetThrottlerStatusRequest */ /** - * Constructs a new StreamKeyRangeRequest. - * @memberof binlogdata - * @classdesc Represents a StreamKeyRangeRequest. - * @implements IStreamKeyRangeRequest + * Constructs a new GetThrottlerStatusRequest. + * @memberof tabletmanagerdata + * @classdesc Represents a GetThrottlerStatusRequest. + * @implements IGetThrottlerStatusRequest * @constructor - * @param {binlogdata.IStreamKeyRangeRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IGetThrottlerStatusRequest=} [properties] Properties to set */ - function StreamKeyRangeRequest(properties) { + function GetThrottlerStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85870,105 +85135,63 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * StreamKeyRangeRequest position. - * @member {string} position - * @memberof binlogdata.StreamKeyRangeRequest - * @instance - */ - StreamKeyRangeRequest.prototype.position = ""; - - /** - * StreamKeyRangeRequest key_range. - * @member {topodata.IKeyRange|null|undefined} key_range - * @memberof binlogdata.StreamKeyRangeRequest - * @instance - */ - StreamKeyRangeRequest.prototype.key_range = null; - - /** - * StreamKeyRangeRequest charset. - * @member {binlogdata.ICharset|null|undefined} charset - * @memberof binlogdata.StreamKeyRangeRequest - * @instance - */ - StreamKeyRangeRequest.prototype.charset = null; - - /** - * Creates a new StreamKeyRangeRequest instance using the specified properties. + * Creates a new GetThrottlerStatusRequest instance using the specified properties. * @function create - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static - * @param {binlogdata.IStreamKeyRangeRequest=} [properties] Properties to set - * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest instance + * @param {tabletmanagerdata.IGetThrottlerStatusRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest instance */ - StreamKeyRangeRequest.create = function create(properties) { - return new StreamKeyRangeRequest(properties); + GetThrottlerStatusRequest.create = function create(properties) { + return new GetThrottlerStatusRequest(properties); }; /** - * Encodes the specified StreamKeyRangeRequest message. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. + * Encodes the specified GetThrottlerStatusRequest message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusRequest.verify|verify} messages. * @function encode - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static - * @param {binlogdata.IStreamKeyRangeRequest} message StreamKeyRangeRequest message or plain object to encode + * @param {tabletmanagerdata.IGetThrottlerStatusRequest} message GetThrottlerStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamKeyRangeRequest.encode = function encode(message, writer) { + GetThrottlerStatusRequest.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.key_range != null && Object.hasOwnProperty.call(message, "key_range")) - $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.charset != null && Object.hasOwnProperty.call(message, "charset")) - $root.binlogdata.Charset.encode(message.charset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified StreamKeyRangeRequest message, length delimited. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. + * Encodes the specified GetThrottlerStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusRequest.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static - * @param {binlogdata.IStreamKeyRangeRequest} message StreamKeyRangeRequest message or plain object to encode + * @param {tabletmanagerdata.IGetThrottlerStatusRequest} message GetThrottlerStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamKeyRangeRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetThrottlerStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamKeyRangeRequest message from the specified reader or buffer. + * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer. * @function decode - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest + * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamKeyRangeRequest.decode = function decode(reader, length) { + GetThrottlerStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamKeyRangeRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.position = reader.string(); - break; - } - case 2: { - message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); - break; - } - case 3: { - message.charset = $root.binlogdata.Charset.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -85978,149 +85201,132 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a StreamKeyRangeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest + * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamKeyRangeRequest.decodeDelimited = function decodeDelimited(reader) { + GetThrottlerStatusRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamKeyRangeRequest message. + * Verifies a GetThrottlerStatusRequest message. * @function verify - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamKeyRangeRequest.verify = function verify(message) { + GetThrottlerStatusRequest.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.key_range != null && message.hasOwnProperty("key_range")) { - let error = $root.topodata.KeyRange.verify(message.key_range); - if (error) - return "key_range." + error; - } - if (message.charset != null && message.hasOwnProperty("charset")) { - let error = $root.binlogdata.Charset.verify(message.charset); - if (error) - return "charset." + error; - } return null; }; /** - * Creates a StreamKeyRangeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetThrottlerStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static * @param {Object.} object Plain object - * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest + * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest */ - StreamKeyRangeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.StreamKeyRangeRequest) + GetThrottlerStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusRequest) return object; - let message = new $root.binlogdata.StreamKeyRangeRequest(); - if (object.position != null) - message.position = String(object.position); - if (object.key_range != null) { - if (typeof object.key_range !== "object") - throw TypeError(".binlogdata.StreamKeyRangeRequest.key_range: object expected"); - message.key_range = $root.topodata.KeyRange.fromObject(object.key_range); - } - if (object.charset != null) { - if (typeof object.charset !== "object") - throw TypeError(".binlogdata.StreamKeyRangeRequest.charset: object expected"); - message.charset = $root.binlogdata.Charset.fromObject(object.charset); - } - return message; + return new $root.tabletmanagerdata.GetThrottlerStatusRequest(); }; /** - * Creates a plain object from a StreamKeyRangeRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetThrottlerStatusRequest message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static - * @param {binlogdata.StreamKeyRangeRequest} message StreamKeyRangeRequest + * @param {tabletmanagerdata.GetThrottlerStatusRequest} message GetThrottlerStatusRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamKeyRangeRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.position = ""; - object.key_range = null; - object.charset = null; - } - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; - if (message.key_range != null && message.hasOwnProperty("key_range")) - object.key_range = $root.topodata.KeyRange.toObject(message.key_range, options); - if (message.charset != null && message.hasOwnProperty("charset")) - object.charset = $root.binlogdata.Charset.toObject(message.charset, options); - return object; + GetThrottlerStatusRequest.toObject = function toObject() { + return {}; }; /** - * Converts this StreamKeyRangeRequest to JSON. + * Converts this GetThrottlerStatusRequest to JSON. * @function toJSON - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @instance * @returns {Object.} JSON object */ - StreamKeyRangeRequest.prototype.toJSON = function toJSON() { + GetThrottlerStatusRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamKeyRangeRequest + * Gets the default type url for GetThrottlerStatusRequest * @function getTypeUrl - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamKeyRangeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetThrottlerStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.StreamKeyRangeRequest"; + return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusRequest"; }; - return StreamKeyRangeRequest; + return GetThrottlerStatusRequest; })(); - binlogdata.StreamKeyRangeResponse = (function() { + tabletmanagerdata.GetThrottlerStatusResponse = (function() { /** - * Properties of a StreamKeyRangeResponse. - * @memberof binlogdata - * @interface IStreamKeyRangeResponse - * @property {binlogdata.IBinlogTransaction|null} [binlog_transaction] StreamKeyRangeResponse binlog_transaction + * Properties of a GetThrottlerStatusResponse. + * @memberof tabletmanagerdata + * @interface IGetThrottlerStatusResponse + * @property {string|null} [tablet_alias] GetThrottlerStatusResponse tablet_alias + * @property {string|null} [keyspace] GetThrottlerStatusResponse keyspace + * @property {string|null} [shard] GetThrottlerStatusResponse shard + * @property {boolean|null} [is_leader] GetThrottlerStatusResponse is_leader + * @property {boolean|null} [is_open] GetThrottlerStatusResponse is_open + * @property {boolean|null} [is_enabled] GetThrottlerStatusResponse is_enabled + * @property {boolean|null} [is_dormant] GetThrottlerStatusResponse is_dormant + * @property {string|null} [lag_metric_query] GetThrottlerStatusResponse lag_metric_query + * @property {string|null} [custom_metric_query] GetThrottlerStatusResponse custom_metric_query + * @property {number|null} [default_threshold] GetThrottlerStatusResponse default_threshold + * @property {string|null} [metric_name_used_as_default] GetThrottlerStatusResponse metric_name_used_as_default + * @property {Object.|null} [aggregated_metrics] GetThrottlerStatusResponse aggregated_metrics + * @property {Object.|null} [metric_thresholds] GetThrottlerStatusResponse metric_thresholds + * @property {Object.|null} [metrics_health] GetThrottlerStatusResponse metrics_health + * @property {Object.|null} [throttled_apps] GetThrottlerStatusResponse throttled_apps + * @property {Object.|null} [app_checked_metrics] GetThrottlerStatusResponse app_checked_metrics + * @property {boolean|null} [recently_checked] GetThrottlerStatusResponse recently_checked + * @property {Object.|null} [recent_apps] GetThrottlerStatusResponse recent_apps */ /** - * Constructs a new StreamKeyRangeResponse. - * @memberof binlogdata - * @classdesc Represents a StreamKeyRangeResponse. - * @implements IStreamKeyRangeResponse + * Constructs a new GetThrottlerStatusResponse. + * @memberof tabletmanagerdata + * @classdesc Represents a GetThrottlerStatusResponse. + * @implements IGetThrottlerStatusResponse * @constructor - * @param {binlogdata.IStreamKeyRangeResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IGetThrottlerStatusResponse=} [properties] Properties to set */ - function StreamKeyRangeResponse(properties) { + function GetThrottlerStatusResponse(properties) { + this.aggregated_metrics = {}; + this.metric_thresholds = {}; + this.metrics_health = {}; + this.throttled_apps = {}; + this.app_checked_metrics = {}; + this.recent_apps = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86128,317 +85334,441 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * StreamKeyRangeResponse binlog_transaction. - * @member {binlogdata.IBinlogTransaction|null|undefined} binlog_transaction - * @memberof binlogdata.StreamKeyRangeResponse + * GetThrottlerStatusResponse tablet_alias. + * @member {string} tablet_alias + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @instance */ - StreamKeyRangeResponse.prototype.binlog_transaction = null; + GetThrottlerStatusResponse.prototype.tablet_alias = ""; /** - * Creates a new StreamKeyRangeResponse instance using the specified properties. - * @function create - * @memberof binlogdata.StreamKeyRangeResponse - * @static - * @param {binlogdata.IStreamKeyRangeResponse=} [properties] Properties to set - * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse instance + * GetThrottlerStatusResponse keyspace. + * @member {string} keyspace + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance */ - StreamKeyRangeResponse.create = function create(properties) { - return new StreamKeyRangeResponse(properties); - }; + GetThrottlerStatusResponse.prototype.keyspace = ""; /** - * Encodes the specified StreamKeyRangeResponse message. Does not implicitly {@link binlogdata.StreamKeyRangeResponse.verify|verify} messages. - * @function encode - * @memberof binlogdata.StreamKeyRangeResponse - * @static - * @param {binlogdata.IStreamKeyRangeResponse} message StreamKeyRangeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * GetThrottlerStatusResponse shard. + * @member {string} shard + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance */ - StreamKeyRangeResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.binlog_transaction != null && Object.hasOwnProperty.call(message, "binlog_transaction")) - $root.binlogdata.BinlogTransaction.encode(message.binlog_transaction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + GetThrottlerStatusResponse.prototype.shard = ""; /** - * Encodes the specified StreamKeyRangeResponse message, length delimited. Does not implicitly {@link binlogdata.StreamKeyRangeResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof binlogdata.StreamKeyRangeResponse - * @static - * @param {binlogdata.IStreamKeyRangeResponse} message StreamKeyRangeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * GetThrottlerStatusResponse is_leader. + * @member {boolean} is_leader + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance */ - StreamKeyRangeResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + GetThrottlerStatusResponse.prototype.is_leader = false; /** - * Decodes a StreamKeyRangeResponse message from the specified reader or buffer. - * @function decode - * @memberof binlogdata.StreamKeyRangeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * GetThrottlerStatusResponse is_open. + * @member {boolean} is_open + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance */ - StreamKeyRangeResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamKeyRangeResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.binlog_transaction = $root.binlogdata.BinlogTransaction.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + GetThrottlerStatusResponse.prototype.is_open = false; /** - * Decodes a StreamKeyRangeResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof binlogdata.StreamKeyRangeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * GetThrottlerStatusResponse is_enabled. + * @member {boolean} is_enabled + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance */ - StreamKeyRangeResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + GetThrottlerStatusResponse.prototype.is_enabled = false; /** - * Verifies a StreamKeyRangeResponse message. - * @function verify - * @memberof binlogdata.StreamKeyRangeResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * GetThrottlerStatusResponse is_dormant. + * @member {boolean} is_dormant + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance */ - StreamKeyRangeResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.binlog_transaction != null && message.hasOwnProperty("binlog_transaction")) { - let error = $root.binlogdata.BinlogTransaction.verify(message.binlog_transaction); - if (error) - return "binlog_transaction." + error; - } - return null; - }; + GetThrottlerStatusResponse.prototype.is_dormant = false; /** - * Creates a StreamKeyRangeResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof binlogdata.StreamKeyRangeResponse - * @static - * @param {Object.} object Plain object - * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse + * GetThrottlerStatusResponse lag_metric_query. + * @member {string} lag_metric_query + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance */ - StreamKeyRangeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.StreamKeyRangeResponse) - return object; - let message = new $root.binlogdata.StreamKeyRangeResponse(); - if (object.binlog_transaction != null) { - if (typeof object.binlog_transaction !== "object") - throw TypeError(".binlogdata.StreamKeyRangeResponse.binlog_transaction: object expected"); - message.binlog_transaction = $root.binlogdata.BinlogTransaction.fromObject(object.binlog_transaction); - } - return message; - }; + GetThrottlerStatusResponse.prototype.lag_metric_query = ""; /** - * Creates a plain object from a StreamKeyRangeResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof binlogdata.StreamKeyRangeResponse - * @static - * @param {binlogdata.StreamKeyRangeResponse} message StreamKeyRangeResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * GetThrottlerStatusResponse custom_metric_query. + * @member {string} custom_metric_query + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance */ - StreamKeyRangeResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.binlog_transaction = null; - if (message.binlog_transaction != null && message.hasOwnProperty("binlog_transaction")) - object.binlog_transaction = $root.binlogdata.BinlogTransaction.toObject(message.binlog_transaction, options); - return object; - }; + GetThrottlerStatusResponse.prototype.custom_metric_query = ""; /** - * Converts this StreamKeyRangeResponse to JSON. - * @function toJSON - * @memberof binlogdata.StreamKeyRangeResponse + * GetThrottlerStatusResponse default_threshold. + * @member {number} default_threshold + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @instance - * @returns {Object.} JSON object */ - StreamKeyRangeResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + GetThrottlerStatusResponse.prototype.default_threshold = 0; /** - * Gets the default type url for StreamKeyRangeResponse - * @function getTypeUrl - * @memberof binlogdata.StreamKeyRangeResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * GetThrottlerStatusResponse metric_name_used_as_default. + * @member {string} metric_name_used_as_default + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance */ - StreamKeyRangeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/binlogdata.StreamKeyRangeResponse"; - }; + GetThrottlerStatusResponse.prototype.metric_name_used_as_default = ""; - return StreamKeyRangeResponse; - })(); + /** + * GetThrottlerStatusResponse aggregated_metrics. + * @member {Object.} aggregated_metrics + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + */ + GetThrottlerStatusResponse.prototype.aggregated_metrics = $util.emptyObject; - binlogdata.StreamTablesRequest = (function() { + /** + * GetThrottlerStatusResponse metric_thresholds. + * @member {Object.} metric_thresholds + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + */ + GetThrottlerStatusResponse.prototype.metric_thresholds = $util.emptyObject; /** - * Properties of a StreamTablesRequest. - * @memberof binlogdata - * @interface IStreamTablesRequest - * @property {string|null} [position] StreamTablesRequest position - * @property {Array.|null} [tables] StreamTablesRequest tables - * @property {binlogdata.ICharset|null} [charset] StreamTablesRequest charset + * GetThrottlerStatusResponse metrics_health. + * @member {Object.} metrics_health + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance */ + GetThrottlerStatusResponse.prototype.metrics_health = $util.emptyObject; /** - * Constructs a new StreamTablesRequest. - * @memberof binlogdata - * @classdesc Represents a StreamTablesRequest. - * @implements IStreamTablesRequest - * @constructor - * @param {binlogdata.IStreamTablesRequest=} [properties] Properties to set + * GetThrottlerStatusResponse throttled_apps. + * @member {Object.} throttled_apps + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance */ - function StreamTablesRequest(properties) { - this.tables = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + GetThrottlerStatusResponse.prototype.throttled_apps = $util.emptyObject; /** - * StreamTablesRequest position. - * @member {string} position - * @memberof binlogdata.StreamTablesRequest + * GetThrottlerStatusResponse app_checked_metrics. + * @member {Object.} app_checked_metrics + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @instance */ - StreamTablesRequest.prototype.position = ""; + GetThrottlerStatusResponse.prototype.app_checked_metrics = $util.emptyObject; /** - * StreamTablesRequest tables. - * @member {Array.} tables - * @memberof binlogdata.StreamTablesRequest + * GetThrottlerStatusResponse recently_checked. + * @member {boolean} recently_checked + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @instance */ - StreamTablesRequest.prototype.tables = $util.emptyArray; + GetThrottlerStatusResponse.prototype.recently_checked = false; /** - * StreamTablesRequest charset. - * @member {binlogdata.ICharset|null|undefined} charset - * @memberof binlogdata.StreamTablesRequest + * GetThrottlerStatusResponse recent_apps. + * @member {Object.} recent_apps + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @instance */ - StreamTablesRequest.prototype.charset = null; + GetThrottlerStatusResponse.prototype.recent_apps = $util.emptyObject; /** - * Creates a new StreamTablesRequest instance using the specified properties. + * Creates a new GetThrottlerStatusResponse instance using the specified properties. * @function create - * @memberof binlogdata.StreamTablesRequest + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static - * @param {binlogdata.IStreamTablesRequest=} [properties] Properties to set - * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest instance + * @param {tabletmanagerdata.IGetThrottlerStatusResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse instance */ - StreamTablesRequest.create = function create(properties) { - return new StreamTablesRequest(properties); + GetThrottlerStatusResponse.create = function create(properties) { + return new GetThrottlerStatusResponse(properties); }; /** - * Encodes the specified StreamTablesRequest message. Does not implicitly {@link binlogdata.StreamTablesRequest.verify|verify} messages. + * Encodes the specified GetThrottlerStatusResponse message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.verify|verify} messages. * @function encode - * @memberof binlogdata.StreamTablesRequest + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static - * @param {binlogdata.IStreamTablesRequest} message StreamTablesRequest message or plain object to encode + * @param {tabletmanagerdata.IGetThrottlerStatusResponse} message GetThrottlerStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamTablesRequest.encode = function encode(message, writer) { + GetThrottlerStatusResponse.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.tables != null && message.tables.length) - for (let i = 0; i < message.tables.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tables[i]); - if (message.charset != null && Object.hasOwnProperty.call(message, "charset")) - $root.binlogdata.Charset.encode(message.charset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tablet_alias); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); + if (message.is_leader != null && Object.hasOwnProperty.call(message, "is_leader")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.is_leader); + if (message.is_open != null && Object.hasOwnProperty.call(message, "is_open")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.is_open); + if (message.is_enabled != null && Object.hasOwnProperty.call(message, "is_enabled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.is_enabled); + if (message.is_dormant != null && Object.hasOwnProperty.call(message, "is_dormant")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.is_dormant); + if (message.lag_metric_query != null && Object.hasOwnProperty.call(message, "lag_metric_query")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.lag_metric_query); + if (message.custom_metric_query != null && Object.hasOwnProperty.call(message, "custom_metric_query")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.custom_metric_query); + if (message.default_threshold != null && Object.hasOwnProperty.call(message, "default_threshold")) + writer.uint32(/* id 10, wireType 1 =*/81).double(message.default_threshold); + if (message.metric_name_used_as_default != null && Object.hasOwnProperty.call(message, "metric_name_used_as_default")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.metric_name_used_as_default); + if (message.aggregated_metrics != null && Object.hasOwnProperty.call(message, "aggregated_metrics")) + for (let keys = Object.keys(message.aggregated_metrics), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.encode(message.aggregated_metrics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.metric_thresholds != null && Object.hasOwnProperty.call(message, "metric_thresholds")) + for (let keys = Object.keys(message.metric_thresholds), i = 0; i < keys.length; ++i) + writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 1 =*/17).double(message.metric_thresholds[keys[i]]).ldelim(); + if (message.metrics_health != null && Object.hasOwnProperty.call(message, "metrics_health")) + for (let keys = Object.keys(message.metrics_health), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.encode(message.metrics_health[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.throttled_apps != null && Object.hasOwnProperty.call(message, "throttled_apps")) + for (let keys = Object.keys(message.throttled_apps), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.topodata.ThrottledAppRule.encode(message.throttled_apps[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.app_checked_metrics != null && Object.hasOwnProperty.call(message, "app_checked_metrics")) + for (let keys = Object.keys(message.app_checked_metrics), i = 0; i < keys.length; ++i) + writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.app_checked_metrics[keys[i]]).ldelim(); + if (message.recently_checked != null && Object.hasOwnProperty.call(message, "recently_checked")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.recently_checked); + if (message.recent_apps != null && Object.hasOwnProperty.call(message, "recent_apps")) + for (let keys = Object.keys(message.recent_apps), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 18, wireType 2 =*/146).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.encode(message.recent_apps[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified StreamTablesRequest message, length delimited. Does not implicitly {@link binlogdata.StreamTablesRequest.verify|verify} messages. + * Encodes the specified GetThrottlerStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.StreamTablesRequest + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static - * @param {binlogdata.IStreamTablesRequest} message StreamTablesRequest message or plain object to encode + * @param {tabletmanagerdata.IGetThrottlerStatusResponse} message GetThrottlerStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetThrottlerStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamTablesRequest message from the specified reader or buffer. + * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer. * @function decode - * @memberof binlogdata.StreamTablesRequest + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest + * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamTablesRequest.decode = function decode(reader, length) { + GetThrottlerStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamTablesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.position = reader.string(); + message.tablet_alias = reader.string(); break; } case 2: { - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.push(reader.string()); + message.keyspace = reader.string(); break; } case 3: { - message.charset = $root.binlogdata.Charset.decode(reader, reader.uint32()); + message.shard = reader.string(); + break; + } + case 4: { + message.is_leader = reader.bool(); + break; + } + case 5: { + message.is_open = reader.bool(); + break; + } + case 6: { + message.is_enabled = reader.bool(); + break; + } + case 7: { + message.is_dormant = reader.bool(); + break; + } + case 8: { + message.lag_metric_query = reader.string(); + break; + } + case 9: { + message.custom_metric_query = reader.string(); + break; + } + case 10: { + message.default_threshold = reader.double(); + break; + } + case 11: { + message.metric_name_used_as_default = reader.string(); + break; + } + case 12: { + if (message.aggregated_metrics === $util.emptyObject) + message.aggregated_metrics = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.aggregated_metrics[key] = value; + break; + } + case 13: { + if (message.metric_thresholds === $util.emptyObject) + message.metric_thresholds = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.double(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.metric_thresholds[key] = value; + break; + } + case 14: { + if (message.metrics_health === $util.emptyObject) + message.metrics_health = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.metrics_health[key] = value; + break; + } + case 15: { + if (message.throttled_apps === $util.emptyObject) + message.throttled_apps = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.topodata.ThrottledAppRule.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.throttled_apps[key] = value; + break; + } + case 16: { + if (message.app_checked_metrics === $util.emptyObject) + message.app_checked_metrics = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.app_checked_metrics[key] = value; + break; + } + case 17: { + message.recently_checked = reader.bool(); + break; + } + case 18: { + if (message.recent_apps === $util.emptyObject) + message.recent_apps = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.recent_apps[key] = value; break; } default: @@ -86450,233 +85780,1216 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a StreamTablesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.StreamTablesRequest + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest + * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamTablesRequest.decodeDelimited = function decodeDelimited(reader) { + GetThrottlerStatusResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamTablesRequest message. + * Verifies a GetThrottlerStatusResponse message. * @function verify - * @memberof binlogdata.StreamTablesRequest + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamTablesRequest.verify = function verify(message) { + GetThrottlerStatusResponse.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.tables != null && message.hasOwnProperty("tables")) { - if (!Array.isArray(message.tables)) - return "tables: array expected"; - for (let i = 0; i < message.tables.length; ++i) - if (!$util.isString(message.tables[i])) - return "tables: string[] expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + if (!$util.isString(message.tablet_alias)) + return "tablet_alias: string expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.is_leader != null && message.hasOwnProperty("is_leader")) + if (typeof message.is_leader !== "boolean") + return "is_leader: boolean expected"; + if (message.is_open != null && message.hasOwnProperty("is_open")) + if (typeof message.is_open !== "boolean") + return "is_open: boolean expected"; + if (message.is_enabled != null && message.hasOwnProperty("is_enabled")) + if (typeof message.is_enabled !== "boolean") + return "is_enabled: boolean expected"; + if (message.is_dormant != null && message.hasOwnProperty("is_dormant")) + if (typeof message.is_dormant !== "boolean") + return "is_dormant: boolean expected"; + if (message.lag_metric_query != null && message.hasOwnProperty("lag_metric_query")) + if (!$util.isString(message.lag_metric_query)) + return "lag_metric_query: string expected"; + if (message.custom_metric_query != null && message.hasOwnProperty("custom_metric_query")) + if (!$util.isString(message.custom_metric_query)) + return "custom_metric_query: string expected"; + if (message.default_threshold != null && message.hasOwnProperty("default_threshold")) + if (typeof message.default_threshold !== "number") + return "default_threshold: number expected"; + if (message.metric_name_used_as_default != null && message.hasOwnProperty("metric_name_used_as_default")) + if (!$util.isString(message.metric_name_used_as_default)) + return "metric_name_used_as_default: string expected"; + if (message.aggregated_metrics != null && message.hasOwnProperty("aggregated_metrics")) { + if (!$util.isObject(message.aggregated_metrics)) + return "aggregated_metrics: object expected"; + let key = Object.keys(message.aggregated_metrics); + for (let i = 0; i < key.length; ++i) { + let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify(message.aggregated_metrics[key[i]]); + if (error) + return "aggregated_metrics." + error; + } } - if (message.charset != null && message.hasOwnProperty("charset")) { - let error = $root.binlogdata.Charset.verify(message.charset); - if (error) - return "charset." + error; + if (message.metric_thresholds != null && message.hasOwnProperty("metric_thresholds")) { + if (!$util.isObject(message.metric_thresholds)) + return "metric_thresholds: object expected"; + let key = Object.keys(message.metric_thresholds); + for (let i = 0; i < key.length; ++i) + if (typeof message.metric_thresholds[key[i]] !== "number") + return "metric_thresholds: number{k:string} expected"; + } + if (message.metrics_health != null && message.hasOwnProperty("metrics_health")) { + if (!$util.isObject(message.metrics_health)) + return "metrics_health: object expected"; + let key = Object.keys(message.metrics_health); + for (let i = 0; i < key.length; ++i) { + let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify(message.metrics_health[key[i]]); + if (error) + return "metrics_health." + error; + } + } + if (message.throttled_apps != null && message.hasOwnProperty("throttled_apps")) { + if (!$util.isObject(message.throttled_apps)) + return "throttled_apps: object expected"; + let key = Object.keys(message.throttled_apps); + for (let i = 0; i < key.length; ++i) { + let error = $root.topodata.ThrottledAppRule.verify(message.throttled_apps[key[i]]); + if (error) + return "throttled_apps." + error; + } + } + if (message.app_checked_metrics != null && message.hasOwnProperty("app_checked_metrics")) { + if (!$util.isObject(message.app_checked_metrics)) + return "app_checked_metrics: object expected"; + let key = Object.keys(message.app_checked_metrics); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.app_checked_metrics[key[i]])) + return "app_checked_metrics: string{k:string} expected"; + } + if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) + if (typeof message.recently_checked !== "boolean") + return "recently_checked: boolean expected"; + if (message.recent_apps != null && message.hasOwnProperty("recent_apps")) { + if (!$util.isObject(message.recent_apps)) + return "recent_apps: object expected"; + let key = Object.keys(message.recent_apps); + for (let i = 0; i < key.length; ++i) { + let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify(message.recent_apps[key[i]]); + if (error) + return "recent_apps." + error; + } } return null; }; /** - * Creates a StreamTablesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetThrottlerStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.StreamTablesRequest + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static * @param {Object.} object Plain object - * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest + * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse */ - StreamTablesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.StreamTablesRequest) + GetThrottlerStatusResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse) return object; - let message = new $root.binlogdata.StreamTablesRequest(); - if (object.position != null) - message.position = String(object.position); - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".binlogdata.StreamTablesRequest.tables: array expected"); - message.tables = []; - for (let i = 0; i < object.tables.length; ++i) - message.tables[i] = String(object.tables[i]); + let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse(); + if (object.tablet_alias != null) + message.tablet_alias = String(object.tablet_alias); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.is_leader != null) + message.is_leader = Boolean(object.is_leader); + if (object.is_open != null) + message.is_open = Boolean(object.is_open); + if (object.is_enabled != null) + message.is_enabled = Boolean(object.is_enabled); + if (object.is_dormant != null) + message.is_dormant = Boolean(object.is_dormant); + if (object.lag_metric_query != null) + message.lag_metric_query = String(object.lag_metric_query); + if (object.custom_metric_query != null) + message.custom_metric_query = String(object.custom_metric_query); + if (object.default_threshold != null) + message.default_threshold = Number(object.default_threshold); + if (object.metric_name_used_as_default != null) + message.metric_name_used_as_default = String(object.metric_name_used_as_default); + if (object.aggregated_metrics) { + if (typeof object.aggregated_metrics !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.aggregated_metrics: object expected"); + message.aggregated_metrics = {}; + for (let keys = Object.keys(object.aggregated_metrics), i = 0; i < keys.length; ++i) { + if (typeof object.aggregated_metrics[keys[i]] !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.aggregated_metrics: object expected"); + message.aggregated_metrics[keys[i]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.fromObject(object.aggregated_metrics[keys[i]]); + } } - if (object.charset != null) { - if (typeof object.charset !== "object") - throw TypeError(".binlogdata.StreamTablesRequest.charset: object expected"); - message.charset = $root.binlogdata.Charset.fromObject(object.charset); + if (object.metric_thresholds) { + if (typeof object.metric_thresholds !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.metric_thresholds: object expected"); + message.metric_thresholds = {}; + for (let keys = Object.keys(object.metric_thresholds), i = 0; i < keys.length; ++i) + message.metric_thresholds[keys[i]] = Number(object.metric_thresholds[keys[i]]); + } + if (object.metrics_health) { + if (typeof object.metrics_health !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.metrics_health: object expected"); + message.metrics_health = {}; + for (let keys = Object.keys(object.metrics_health), i = 0; i < keys.length; ++i) { + if (typeof object.metrics_health[keys[i]] !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.metrics_health: object expected"); + message.metrics_health[keys[i]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.fromObject(object.metrics_health[keys[i]]); + } + } + if (object.throttled_apps) { + if (typeof object.throttled_apps !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.throttled_apps: object expected"); + message.throttled_apps = {}; + for (let keys = Object.keys(object.throttled_apps), i = 0; i < keys.length; ++i) { + if (typeof object.throttled_apps[keys[i]] !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.throttled_apps: object expected"); + message.throttled_apps[keys[i]] = $root.topodata.ThrottledAppRule.fromObject(object.throttled_apps[keys[i]]); + } + } + if (object.app_checked_metrics) { + if (typeof object.app_checked_metrics !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.app_checked_metrics: object expected"); + message.app_checked_metrics = {}; + for (let keys = Object.keys(object.app_checked_metrics), i = 0; i < keys.length; ++i) + message.app_checked_metrics[keys[i]] = String(object.app_checked_metrics[keys[i]]); + } + if (object.recently_checked != null) + message.recently_checked = Boolean(object.recently_checked); + if (object.recent_apps) { + if (typeof object.recent_apps !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.recent_apps: object expected"); + message.recent_apps = {}; + for (let keys = Object.keys(object.recent_apps), i = 0; i < keys.length; ++i) { + if (typeof object.recent_apps[keys[i]] !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.recent_apps: object expected"); + message.recent_apps[keys[i]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.fromObject(object.recent_apps[keys[i]]); + } } return message; }; /** - * Creates a plain object from a StreamTablesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetThrottlerStatusResponse message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.StreamTablesRequest + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static - * @param {binlogdata.StreamTablesRequest} message StreamTablesRequest + * @param {tabletmanagerdata.GetThrottlerStatusResponse} message GetThrottlerStatusResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamTablesRequest.toObject = function toObject(message, options) { + GetThrottlerStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.tables = []; + if (options.objects || options.defaults) { + object.aggregated_metrics = {}; + object.metric_thresholds = {}; + object.metrics_health = {}; + object.throttled_apps = {}; + object.app_checked_metrics = {}; + object.recent_apps = {}; + } if (options.defaults) { - object.position = ""; - object.charset = null; + object.tablet_alias = ""; + object.keyspace = ""; + object.shard = ""; + object.is_leader = false; + object.is_open = false; + object.is_enabled = false; + object.is_dormant = false; + object.lag_metric_query = ""; + object.custom_metric_query = ""; + object.default_threshold = 0; + object.metric_name_used_as_default = ""; + object.recently_checked = false; } - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; - if (message.tables && message.tables.length) { - object.tables = []; - for (let j = 0; j < message.tables.length; ++j) - object.tables[j] = message.tables[j]; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = message.tablet_alias; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.is_leader != null && message.hasOwnProperty("is_leader")) + object.is_leader = message.is_leader; + if (message.is_open != null && message.hasOwnProperty("is_open")) + object.is_open = message.is_open; + if (message.is_enabled != null && message.hasOwnProperty("is_enabled")) + object.is_enabled = message.is_enabled; + if (message.is_dormant != null && message.hasOwnProperty("is_dormant")) + object.is_dormant = message.is_dormant; + if (message.lag_metric_query != null && message.hasOwnProperty("lag_metric_query")) + object.lag_metric_query = message.lag_metric_query; + if (message.custom_metric_query != null && message.hasOwnProperty("custom_metric_query")) + object.custom_metric_query = message.custom_metric_query; + if (message.default_threshold != null && message.hasOwnProperty("default_threshold")) + object.default_threshold = options.json && !isFinite(message.default_threshold) ? String(message.default_threshold) : message.default_threshold; + if (message.metric_name_used_as_default != null && message.hasOwnProperty("metric_name_used_as_default")) + object.metric_name_used_as_default = message.metric_name_used_as_default; + let keys2; + if (message.aggregated_metrics && (keys2 = Object.keys(message.aggregated_metrics)).length) { + object.aggregated_metrics = {}; + for (let j = 0; j < keys2.length; ++j) + object.aggregated_metrics[keys2[j]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.toObject(message.aggregated_metrics[keys2[j]], options); + } + if (message.metric_thresholds && (keys2 = Object.keys(message.metric_thresholds)).length) { + object.metric_thresholds = {}; + for (let j = 0; j < keys2.length; ++j) + object.metric_thresholds[keys2[j]] = options.json && !isFinite(message.metric_thresholds[keys2[j]]) ? String(message.metric_thresholds[keys2[j]]) : message.metric_thresholds[keys2[j]]; + } + if (message.metrics_health && (keys2 = Object.keys(message.metrics_health)).length) { + object.metrics_health = {}; + for (let j = 0; j < keys2.length; ++j) + object.metrics_health[keys2[j]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.toObject(message.metrics_health[keys2[j]], options); + } + if (message.throttled_apps && (keys2 = Object.keys(message.throttled_apps)).length) { + object.throttled_apps = {}; + for (let j = 0; j < keys2.length; ++j) + object.throttled_apps[keys2[j]] = $root.topodata.ThrottledAppRule.toObject(message.throttled_apps[keys2[j]], options); + } + if (message.app_checked_metrics && (keys2 = Object.keys(message.app_checked_metrics)).length) { + object.app_checked_metrics = {}; + for (let j = 0; j < keys2.length; ++j) + object.app_checked_metrics[keys2[j]] = message.app_checked_metrics[keys2[j]]; + } + if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) + object.recently_checked = message.recently_checked; + if (message.recent_apps && (keys2 = Object.keys(message.recent_apps)).length) { + object.recent_apps = {}; + for (let j = 0; j < keys2.length; ++j) + object.recent_apps[keys2[j]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.toObject(message.recent_apps[keys2[j]], options); } - if (message.charset != null && message.hasOwnProperty("charset")) - object.charset = $root.binlogdata.Charset.toObject(message.charset, options); return object; }; /** - * Converts this StreamTablesRequest to JSON. + * Converts this GetThrottlerStatusResponse to JSON. * @function toJSON - * @memberof binlogdata.StreamTablesRequest + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @instance * @returns {Object.} JSON object */ - StreamTablesRequest.prototype.toJSON = function toJSON() { + GetThrottlerStatusResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamTablesRequest + * Gets the default type url for GetThrottlerStatusResponse * @function getTypeUrl - * @memberof binlogdata.StreamTablesRequest + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamTablesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetThrottlerStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.StreamTablesRequest"; + return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse"; }; - return StreamTablesRequest; - })(); + GetThrottlerStatusResponse.MetricResult = (function() { - binlogdata.StreamTablesResponse = (function() { + /** + * Properties of a MetricResult. + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @interface IMetricResult + * @property {number|null} [value] MetricResult value + * @property {string|null} [error] MetricResult error + */ - /** - * Properties of a StreamTablesResponse. - * @memberof binlogdata - * @interface IStreamTablesResponse - * @property {binlogdata.IBinlogTransaction|null} [binlog_transaction] StreamTablesResponse binlog_transaction - */ + /** + * Constructs a new MetricResult. + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @classdesc Represents a MetricResult. + * @implements IMetricResult + * @constructor + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult=} [properties] Properties to set + */ + function MetricResult(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new StreamTablesResponse. - * @memberof binlogdata - * @classdesc Represents a StreamTablesResponse. - * @implements IStreamTablesResponse - * @constructor - * @param {binlogdata.IStreamTablesResponse=} [properties] Properties to set - */ - function StreamTablesResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * MetricResult value. + * @member {number} value + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @instance + */ + MetricResult.prototype.value = 0; - /** - * StreamTablesResponse binlog_transaction. - * @member {binlogdata.IBinlogTransaction|null|undefined} binlog_transaction - * @memberof binlogdata.StreamTablesResponse - * @instance - */ - StreamTablesResponse.prototype.binlog_transaction = null; + /** + * MetricResult error. + * @member {string} error + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @instance + */ + MetricResult.prototype.error = ""; + + /** + * Creates a new MetricResult instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult=} [properties] Properties to set + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult instance + */ + MetricResult.create = function create(properties) { + return new MetricResult(properties); + }; + + /** + * Encodes the specified MetricResult message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult} message MetricResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.error); + return writer; + }; + + /** + * Encodes the specified MetricResult message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult} message MetricResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricResult message from the specified reader or buffer. + * @function decode + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = reader.double(); + break; + } + case 2: { + message.error = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricResult message. + * @function verify + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + if (message.error != null && message.hasOwnProperty("error")) + if (!$util.isString(message.error)) + return "error: string expected"; + return null; + }; + + /** + * Creates a MetricResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {Object.} object Plain object + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult + */ + MetricResult.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult) + return object; + let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult(); + if (object.value != null) + message.value = Number(object.value); + if (object.error != null) + message.error = String(object.error); + return message; + }; + + /** + * Creates a plain object from a MetricResult message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} message MetricResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.value = 0; + object.error = ""; + } + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + if (message.error != null && message.hasOwnProperty("error")) + object.error = message.error; + return object; + }; + + /** + * Converts this MetricResult to JSON. + * @function toJSON + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @instance + * @returns {Object.} JSON object + */ + MetricResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetricResult + * @function getTypeUrl + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse.MetricResult"; + }; + + return MetricResult; + })(); + + GetThrottlerStatusResponse.MetricHealth = (function() { + + /** + * Properties of a MetricHealth. + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @interface IMetricHealth + * @property {vttime.ITime|null} [last_healthy_at] MetricHealth last_healthy_at + * @property {number|Long|null} [seconds_since_last_healthy] MetricHealth seconds_since_last_healthy + */ + + /** + * Constructs a new MetricHealth. + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @classdesc Represents a MetricHealth. + * @implements IMetricHealth + * @constructor + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth=} [properties] Properties to set + */ + function MetricHealth(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MetricHealth last_healthy_at. + * @member {vttime.ITime|null|undefined} last_healthy_at + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @instance + */ + MetricHealth.prototype.last_healthy_at = null; + + /** + * MetricHealth seconds_since_last_healthy. + * @member {number|Long} seconds_since_last_healthy + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @instance + */ + MetricHealth.prototype.seconds_since_last_healthy = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new MetricHealth instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth=} [properties] Properties to set + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth instance + */ + MetricHealth.create = function create(properties) { + return new MetricHealth(properties); + }; + + /** + * Encodes the specified MetricHealth message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth} message MetricHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricHealth.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.last_healthy_at != null && Object.hasOwnProperty.call(message, "last_healthy_at")) + $root.vttime.Time.encode(message.last_healthy_at, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.seconds_since_last_healthy != null && Object.hasOwnProperty.call(message, "seconds_since_last_healthy")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.seconds_since_last_healthy); + return writer; + }; + + /** + * Encodes the specified MetricHealth message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth} message MetricHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricHealth.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricHealth message from the specified reader or buffer. + * @function decode + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricHealth.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.last_healthy_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 2: { + message.seconds_since_last_healthy = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricHealth message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricHealth.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricHealth message. + * @function verify + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricHealth.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.last_healthy_at != null && message.hasOwnProperty("last_healthy_at")) { + let error = $root.vttime.Time.verify(message.last_healthy_at); + if (error) + return "last_healthy_at." + error; + } + if (message.seconds_since_last_healthy != null && message.hasOwnProperty("seconds_since_last_healthy")) + if (!$util.isInteger(message.seconds_since_last_healthy) && !(message.seconds_since_last_healthy && $util.isInteger(message.seconds_since_last_healthy.low) && $util.isInteger(message.seconds_since_last_healthy.high))) + return "seconds_since_last_healthy: integer|Long expected"; + return null; + }; + + /** + * Creates a MetricHealth message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {Object.} object Plain object + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth + */ + MetricHealth.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth) + return object; + let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth(); + if (object.last_healthy_at != null) { + if (typeof object.last_healthy_at !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.last_healthy_at: object expected"); + message.last_healthy_at = $root.vttime.Time.fromObject(object.last_healthy_at); + } + if (object.seconds_since_last_healthy != null) + if ($util.Long) + (message.seconds_since_last_healthy = $util.Long.fromValue(object.seconds_since_last_healthy)).unsigned = false; + else if (typeof object.seconds_since_last_healthy === "string") + message.seconds_since_last_healthy = parseInt(object.seconds_since_last_healthy, 10); + else if (typeof object.seconds_since_last_healthy === "number") + message.seconds_since_last_healthy = object.seconds_since_last_healthy; + else if (typeof object.seconds_since_last_healthy === "object") + message.seconds_since_last_healthy = new $util.LongBits(object.seconds_since_last_healthy.low >>> 0, object.seconds_since_last_healthy.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a MetricHealth message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} message MetricHealth + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricHealth.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.last_healthy_at = null; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.seconds_since_last_healthy = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds_since_last_healthy = options.longs === String ? "0" : 0; + } + if (message.last_healthy_at != null && message.hasOwnProperty("last_healthy_at")) + object.last_healthy_at = $root.vttime.Time.toObject(message.last_healthy_at, options); + if (message.seconds_since_last_healthy != null && message.hasOwnProperty("seconds_since_last_healthy")) + if (typeof message.seconds_since_last_healthy === "number") + object.seconds_since_last_healthy = options.longs === String ? String(message.seconds_since_last_healthy) : message.seconds_since_last_healthy; + else + object.seconds_since_last_healthy = options.longs === String ? $util.Long.prototype.toString.call(message.seconds_since_last_healthy) : options.longs === Number ? new $util.LongBits(message.seconds_since_last_healthy.low >>> 0, message.seconds_since_last_healthy.high >>> 0).toNumber() : message.seconds_since_last_healthy; + return object; + }; + + /** + * Converts this MetricHealth to JSON. + * @function toJSON + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @instance + * @returns {Object.} JSON object + */ + MetricHealth.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetricHealth + * @function getTypeUrl + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricHealth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth"; + }; + + return MetricHealth; + })(); + + GetThrottlerStatusResponse.RecentApp = (function() { + + /** + * Properties of a RecentApp. + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @interface IRecentApp + * @property {vttime.ITime|null} [checked_at] RecentApp checked_at + * @property {tabletmanagerdata.CheckThrottlerResponseCode|null} [response_code] RecentApp response_code + */ + + /** + * Constructs a new RecentApp. + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @classdesc Represents a RecentApp. + * @implements IRecentApp + * @constructor + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp=} [properties] Properties to set + */ + function RecentApp(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RecentApp checked_at. + * @member {vttime.ITime|null|undefined} checked_at + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp + * @instance + */ + RecentApp.prototype.checked_at = null; + + /** + * RecentApp response_code. + * @member {tabletmanagerdata.CheckThrottlerResponseCode} response_code + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp + * @instance + */ + RecentApp.prototype.response_code = 0; + + /** + * Creates a new RecentApp instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp=} [properties] Properties to set + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp instance + */ + RecentApp.create = function create(properties) { + return new RecentApp(properties); + }; + + /** + * Encodes the specified RecentApp message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp} message RecentApp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecentApp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.checked_at != null && Object.hasOwnProperty.call(message, "checked_at")) + $root.vttime.Time.encode(message.checked_at, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.response_code != null && Object.hasOwnProperty.call(message, "response_code")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.response_code); + return writer; + }; + + /** + * Encodes the specified RecentApp message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp} message RecentApp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecentApp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecentApp message from the specified reader or buffer. + * @function decode + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecentApp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.checked_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 3: { + message.response_code = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecentApp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecentApp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecentApp message. + * @function verify + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecentApp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.checked_at != null && message.hasOwnProperty("checked_at")) { + let error = $root.vttime.Time.verify(message.checked_at); + if (error) + return "checked_at." + error; + } + if (message.response_code != null && message.hasOwnProperty("response_code")) + switch (message.response_code) { + default: + return "response_code: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + return null; + }; + + /** + * Creates a RecentApp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp + * @static + * @param {Object.} object Plain object + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp + */ + RecentApp.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp) + return object; + let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp(); + if (object.checked_at != null) { + if (typeof object.checked_at !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.checked_at: object expected"); + message.checked_at = $root.vttime.Time.fromObject(object.checked_at); + } + switch (object.response_code) { + default: + if (typeof object.response_code === "number") { + message.response_code = object.response_code; + break; + } + break; + case "UNDEFINED": + case 0: + message.response_code = 0; + break; + case "OK": + case 1: + message.response_code = 1; + break; + case "THRESHOLD_EXCEEDED": + case 2: + message.response_code = 2; + break; + case "APP_DENIED": + case 3: + message.response_code = 3; + break; + case "UNKNOWN_METRIC": + case 4: + message.response_code = 4; + break; + case "INTERNAL_ERROR": + case 5: + message.response_code = 5; + break; + } + return message; + }; + + /** + * Creates a plain object from a RecentApp message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} message RecentApp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecentApp.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.checked_at = null; + object.response_code = options.enums === String ? "UNDEFINED" : 0; + } + if (message.checked_at != null && message.hasOwnProperty("checked_at")) + object.checked_at = $root.vttime.Time.toObject(message.checked_at, options); + if (message.response_code != null && message.hasOwnProperty("response_code")) + object.response_code = options.enums === String ? $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] === undefined ? message.response_code : $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] : message.response_code; + return object; + }; + + /** + * Converts this RecentApp to JSON. + * @function toJSON + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp + * @instance + * @returns {Object.} JSON object + */ + RecentApp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecentApp + * @function getTypeUrl + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecentApp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse.RecentApp"; + }; + + return RecentApp; + })(); + + return GetThrottlerStatusResponse; + })(); + + tabletmanagerdata.ChangeTagsRequest = (function() { /** - * Creates a new StreamTablesResponse instance using the specified properties. + * Properties of a ChangeTagsRequest. + * @memberof tabletmanagerdata + * @interface IChangeTagsRequest + * @property {Object.|null} [tags] ChangeTagsRequest tags + * @property {boolean|null} [replace] ChangeTagsRequest replace + */ + + /** + * Constructs a new ChangeTagsRequest. + * @memberof tabletmanagerdata + * @classdesc Represents a ChangeTagsRequest. + * @implements IChangeTagsRequest + * @constructor + * @param {tabletmanagerdata.IChangeTagsRequest=} [properties] Properties to set + */ + function ChangeTagsRequest(properties) { + this.tags = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ChangeTagsRequest tags. + * @member {Object.} tags + * @memberof tabletmanagerdata.ChangeTagsRequest + * @instance + */ + ChangeTagsRequest.prototype.tags = $util.emptyObject; + + /** + * ChangeTagsRequest replace. + * @member {boolean} replace + * @memberof tabletmanagerdata.ChangeTagsRequest + * @instance + */ + ChangeTagsRequest.prototype.replace = false; + + /** + * Creates a new ChangeTagsRequest instance using the specified properties. * @function create - * @memberof binlogdata.StreamTablesResponse + * @memberof tabletmanagerdata.ChangeTagsRequest * @static - * @param {binlogdata.IStreamTablesResponse=} [properties] Properties to set - * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse instance + * @param {tabletmanagerdata.IChangeTagsRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest instance */ - StreamTablesResponse.create = function create(properties) { - return new StreamTablesResponse(properties); + ChangeTagsRequest.create = function create(properties) { + return new ChangeTagsRequest(properties); }; /** - * Encodes the specified StreamTablesResponse message. Does not implicitly {@link binlogdata.StreamTablesResponse.verify|verify} messages. + * Encodes the specified ChangeTagsRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. * @function encode - * @memberof binlogdata.StreamTablesResponse + * @memberof tabletmanagerdata.ChangeTagsRequest * @static - * @param {binlogdata.IStreamTablesResponse} message StreamTablesResponse 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 */ - StreamTablesResponse.encode = function encode(message, writer) { + ChangeTagsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.binlog_transaction != null && Object.hasOwnProperty.call(message, "binlog_transaction")) - $root.binlogdata.BinlogTransaction.encode(message.binlog_transaction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + 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 StreamTablesResponse message, length delimited. Does not implicitly {@link binlogdata.StreamTablesResponse.verify|verify} messages. + * Encodes the specified ChangeTagsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.StreamTablesResponse + * @memberof tabletmanagerdata.ChangeTagsRequest * @static - * @param {binlogdata.IStreamTablesResponse} message StreamTablesResponse 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 */ - StreamTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ChangeTagsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamTablesResponse message from the specified reader or buffer. + * Decodes a ChangeTagsRequest message from the specified reader or buffer. * @function decode - * @memberof binlogdata.StreamTablesResponse + * @memberof tabletmanagerdata.ChangeTagsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse + * @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 */ - StreamTablesResponse.decode = function decode(reader, length) { + ChangeTagsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamTablesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTagsRequest(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.binlog_transaction = $root.binlogdata.BinlogTransaction.decode(reader, reader.uint32()); + 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: @@ -86688,128 +87001,146 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a StreamTablesResponse message from the specified reader or buffer, length delimited. + * Decodes a ChangeTagsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.StreamTablesResponse + * @memberof tabletmanagerdata.ChangeTagsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse + * @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 */ - StreamTablesResponse.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 StreamTablesResponse message. + * Verifies a ChangeTagsRequest message. * @function verify - * @memberof binlogdata.StreamTablesResponse + * @memberof tabletmanagerdata.ChangeTagsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamTablesResponse.verify = function verify(message) { + ChangeTagsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.binlog_transaction != null && message.hasOwnProperty("binlog_transaction")) { - let error = $root.binlogdata.BinlogTransaction.verify(message.binlog_transaction); - if (error) - return "binlog_transaction." + error; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + let key = Object.keys(message.tags); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; } + if (message.replace != null && message.hasOwnProperty("replace")) + if (typeof message.replace !== "boolean") + return "replace: boolean expected"; return null; }; /** - * Creates a StreamTablesResponse 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 binlogdata.StreamTablesResponse + * @memberof tabletmanagerdata.ChangeTagsRequest * @static * @param {Object.} object Plain object - * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse + * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest */ - StreamTablesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.StreamTablesResponse) + ChangeTagsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ChangeTagsRequest) return object; - let message = new $root.binlogdata.StreamTablesResponse(); - if (object.binlog_transaction != null) { - if (typeof object.binlog_transaction !== "object") - throw TypeError(".binlogdata.StreamTablesResponse.binlog_transaction: object expected"); - message.binlog_transaction = $root.binlogdata.BinlogTransaction.fromObject(object.binlog_transaction); + let message = new $root.tabletmanagerdata.ChangeTagsRequest(); + if (object.tags) { + if (typeof object.tags !== "object") + throw TypeError(".tabletmanagerdata.ChangeTagsRequest.tags: object expected"); + message.tags = {}; + for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + message.tags[keys[i]] = String(object.tags[keys[i]]); } + if (object.replace != null) + message.replace = Boolean(object.replace); return message; }; /** - * Creates a plain object from a StreamTablesResponse 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 binlogdata.StreamTablesResponse + * @memberof tabletmanagerdata.ChangeTagsRequest * @static - * @param {binlogdata.StreamTablesResponse} message StreamTablesResponse + * @param {tabletmanagerdata.ChangeTagsRequest} message ChangeTagsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamTablesResponse.toObject = function toObject(message, options) { + ChangeTagsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.objects || options.defaults) + object.tags = {}; if (options.defaults) - object.binlog_transaction = null; - if (message.binlog_transaction != null && message.hasOwnProperty("binlog_transaction")) - object.binlog_transaction = $root.binlogdata.BinlogTransaction.toObject(message.binlog_transaction, options); + object.replace = false; + let keys2; + if (message.tags && (keys2 = Object.keys(message.tags)).length) { + object.tags = {}; + for (let j = 0; j < keys2.length; ++j) + object.tags[keys2[j]] = message.tags[keys2[j]]; + } + if (message.replace != null && message.hasOwnProperty("replace")) + object.replace = message.replace; return object; }; /** - * Converts this StreamTablesResponse to JSON. + * Converts this ChangeTagsRequest to JSON. * @function toJSON - * @memberof binlogdata.StreamTablesResponse + * @memberof tabletmanagerdata.ChangeTagsRequest * @instance * @returns {Object.} JSON object */ - StreamTablesResponse.prototype.toJSON = function toJSON() { + ChangeTagsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamTablesResponse + * Gets the default type url for ChangeTagsRequest * @function getTypeUrl - * @memberof binlogdata.StreamTablesResponse + * @memberof tabletmanagerdata.ChangeTagsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamTablesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ChangeTagsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.StreamTablesResponse"; + return typeUrlPrefix + "/tabletmanagerdata.ChangeTagsRequest"; }; - return StreamTablesResponse; + return ChangeTagsRequest; })(); - binlogdata.CharsetConversion = (function() { + tabletmanagerdata.ChangeTagsResponse = (function() { /** - * Properties of a CharsetConversion. - * @memberof binlogdata - * @interface ICharsetConversion - * @property {string|null} [from_charset] CharsetConversion from_charset - * @property {string|null} [to_charset] CharsetConversion to_charset + * Properties of a ChangeTagsResponse. + * @memberof tabletmanagerdata + * @interface IChangeTagsResponse + * @property {Object.|null} [tags] ChangeTagsResponse tags */ /** - * Constructs a new CharsetConversion. - * @memberof binlogdata - * @classdesc Represents a CharsetConversion. - * @implements ICharsetConversion + * Constructs a new ChangeTagsResponse. + * @memberof tabletmanagerdata + * @classdesc Represents a ChangeTagsResponse. + * @implements IChangeTagsResponse * @constructor - * @param {binlogdata.ICharsetConversion=} [properties] Properties to set + * @param {tabletmanagerdata.IChangeTagsResponse=} [properties] Properties to set */ - function CharsetConversion(properties) { + function ChangeTagsResponse(properties) { + this.tags = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86817,89 +87148,95 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * CharsetConversion from_charset. - * @member {string} from_charset - * @memberof binlogdata.CharsetConversion - * @instance - */ - CharsetConversion.prototype.from_charset = ""; - - /** - * CharsetConversion to_charset. - * @member {string} to_charset - * @memberof binlogdata.CharsetConversion + * ChangeTagsResponse tags. + * @member {Object.} tags + * @memberof tabletmanagerdata.ChangeTagsResponse * @instance */ - CharsetConversion.prototype.to_charset = ""; + ChangeTagsResponse.prototype.tags = $util.emptyObject; /** - * Creates a new CharsetConversion instance using the specified properties. + * Creates a new ChangeTagsResponse instance using the specified properties. * @function create - * @memberof binlogdata.CharsetConversion + * @memberof tabletmanagerdata.ChangeTagsResponse * @static - * @param {binlogdata.ICharsetConversion=} [properties] Properties to set - * @returns {binlogdata.CharsetConversion} CharsetConversion instance + * @param {tabletmanagerdata.IChangeTagsResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse instance */ - CharsetConversion.create = function create(properties) { - return new CharsetConversion(properties); + ChangeTagsResponse.create = function create(properties) { + return new ChangeTagsResponse(properties); }; /** - * Encodes the specified CharsetConversion message. Does not implicitly {@link binlogdata.CharsetConversion.verify|verify} messages. + * Encodes the specified ChangeTagsResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. * @function encode - * @memberof binlogdata.CharsetConversion + * @memberof tabletmanagerdata.ChangeTagsResponse * @static - * @param {binlogdata.ICharsetConversion} message CharsetConversion 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 */ - CharsetConversion.encode = function encode(message, writer) { + ChangeTagsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.from_charset != null && Object.hasOwnProperty.call(message, "from_charset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_charset); - if (message.to_charset != null && Object.hasOwnProperty.call(message, "to_charset")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_charset); + 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 CharsetConversion message, length delimited. Does not implicitly {@link binlogdata.CharsetConversion.verify|verify} messages. + * Encodes the specified ChangeTagsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.CharsetConversion + * @memberof tabletmanagerdata.ChangeTagsResponse * @static - * @param {binlogdata.ICharsetConversion} message CharsetConversion 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 */ - CharsetConversion.encodeDelimited = function encodeDelimited(message, writer) { + ChangeTagsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CharsetConversion message from the specified reader or buffer. + * Decodes a ChangeTagsResponse message from the specified reader or buffer. * @function decode - * @memberof binlogdata.CharsetConversion + * @memberof tabletmanagerdata.ChangeTagsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.CharsetConversion} CharsetConversion + * @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 */ - CharsetConversion.decode = function decode(reader, length) { + ChangeTagsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.CharsetConversion(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTagsResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.from_charset = reader.string(); - break; - } - case 2: { - message.to_charset = reader.string(); + 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: @@ -86911,142 +87248,150 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a CharsetConversion message from the specified reader or buffer, length delimited. + * Decodes a ChangeTagsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.CharsetConversion + * @memberof tabletmanagerdata.ChangeTagsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.CharsetConversion} CharsetConversion + * @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 */ - CharsetConversion.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 CharsetConversion message. + * Verifies a ChangeTagsResponse message. * @function verify - * @memberof binlogdata.CharsetConversion + * @memberof tabletmanagerdata.ChangeTagsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CharsetConversion.verify = function verify(message) { + ChangeTagsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.from_charset != null && message.hasOwnProperty("from_charset")) - if (!$util.isString(message.from_charset)) - return "from_charset: string expected"; - if (message.to_charset != null && message.hasOwnProperty("to_charset")) - if (!$util.isString(message.to_charset)) - return "to_charset: 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 CharsetConversion 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 binlogdata.CharsetConversion + * @memberof tabletmanagerdata.ChangeTagsResponse * @static * @param {Object.} object Plain object - * @returns {binlogdata.CharsetConversion} CharsetConversion + * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse */ - CharsetConversion.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.CharsetConversion) + ChangeTagsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ChangeTagsResponse) return object; - let message = new $root.binlogdata.CharsetConversion(); - if (object.from_charset != null) - message.from_charset = String(object.from_charset); - if (object.to_charset != null) - message.to_charset = String(object.to_charset); + 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 CharsetConversion 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 binlogdata.CharsetConversion + * @memberof tabletmanagerdata.ChangeTagsResponse * @static - * @param {binlogdata.CharsetConversion} message CharsetConversion + * @param {tabletmanagerdata.ChangeTagsResponse} message ChangeTagsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CharsetConversion.toObject = function toObject(message, options) { + ChangeTagsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.from_charset = ""; - object.to_charset = ""; + if (options.objects || options.defaults) + object.tags = {}; + let keys2; + if (message.tags && (keys2 = Object.keys(message.tags)).length) { + object.tags = {}; + for (let j = 0; j < keys2.length; ++j) + object.tags[keys2[j]] = message.tags[keys2[j]]; } - if (message.from_charset != null && message.hasOwnProperty("from_charset")) - object.from_charset = message.from_charset; - if (message.to_charset != null && message.hasOwnProperty("to_charset")) - object.to_charset = message.to_charset; return object; }; /** - * Converts this CharsetConversion to JSON. + * Converts this ChangeTagsResponse to JSON. * @function toJSON - * @memberof binlogdata.CharsetConversion + * @memberof tabletmanagerdata.ChangeTagsResponse * @instance * @returns {Object.} JSON object */ - CharsetConversion.prototype.toJSON = function toJSON() { + ChangeTagsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CharsetConversion + * Gets the default type url for ChangeTagsResponse * @function getTypeUrl - * @memberof binlogdata.CharsetConversion + * @memberof tabletmanagerdata.ChangeTagsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CharsetConversion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ChangeTagsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.CharsetConversion"; + return typeUrlPrefix + "/tabletmanagerdata.ChangeTagsResponse"; }; - return CharsetConversion; + return ChangeTagsResponse; })(); - binlogdata.Rule = (function() { + return tabletmanagerdata; +})(); + +export const binlogdata = $root.binlogdata = (() => { + + /** + * Namespace binlogdata. + * @exports binlogdata + * @namespace + */ + const binlogdata = {}; + + binlogdata.Charset = (function() { /** - * Properties of a Rule. + * Properties of a Charset. * @memberof binlogdata - * @interface IRule - * @property {string|null} [match] Rule match - * @property {string|null} [filter] Rule filter - * @property {Object.|null} [convert_enum_to_text] Rule convert_enum_to_text - * @property {Object.|null} [convert_charset] Rule convert_charset - * @property {string|null} [source_unique_key_columns] Rule source_unique_key_columns - * @property {string|null} [target_unique_key_columns] Rule target_unique_key_columns - * @property {string|null} [source_unique_key_target_columns] Rule source_unique_key_target_columns - * @property {Object.|null} [convert_int_to_enum] Rule convert_int_to_enum - * @property {string|null} [force_unique_key] Rule force_unique_key + * @interface ICharset + * @property {number|null} [client] Charset client + * @property {number|null} [conn] Charset conn + * @property {number|null} [server] Charset server */ /** - * Constructs a new Rule. + * Constructs a new Charset. * @memberof binlogdata - * @classdesc Represents a Rule. - * @implements IRule + * @classdesc Represents a Charset. + * @implements ICharset * @constructor - * @param {binlogdata.IRule=} [properties] Properties to set + * @param {binlogdata.ICharset=} [properties] Properties to set */ - function Rule(properties) { - this.convert_enum_to_text = {}; - this.convert_charset = {}; - this.convert_int_to_enum = {}; + function Charset(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87054,249 +87399,103 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * Rule match. - * @member {string} match - * @memberof binlogdata.Rule - * @instance - */ - Rule.prototype.match = ""; - - /** - * Rule filter. - * @member {string} filter - * @memberof binlogdata.Rule - * @instance - */ - Rule.prototype.filter = ""; - - /** - * Rule convert_enum_to_text. - * @member {Object.} convert_enum_to_text - * @memberof binlogdata.Rule - * @instance - */ - Rule.prototype.convert_enum_to_text = $util.emptyObject; - - /** - * Rule convert_charset. - * @member {Object.} convert_charset - * @memberof binlogdata.Rule - * @instance - */ - Rule.prototype.convert_charset = $util.emptyObject; - - /** - * Rule source_unique_key_columns. - * @member {string} source_unique_key_columns - * @memberof binlogdata.Rule - * @instance - */ - Rule.prototype.source_unique_key_columns = ""; - - /** - * Rule target_unique_key_columns. - * @member {string} target_unique_key_columns - * @memberof binlogdata.Rule - * @instance - */ - Rule.prototype.target_unique_key_columns = ""; - - /** - * Rule source_unique_key_target_columns. - * @member {string} source_unique_key_target_columns - * @memberof binlogdata.Rule + * Charset client. + * @member {number} client + * @memberof binlogdata.Charset * @instance */ - Rule.prototype.source_unique_key_target_columns = ""; + Charset.prototype.client = 0; /** - * Rule convert_int_to_enum. - * @member {Object.} convert_int_to_enum - * @memberof binlogdata.Rule + * Charset conn. + * @member {number} conn + * @memberof binlogdata.Charset * @instance */ - Rule.prototype.convert_int_to_enum = $util.emptyObject; + Charset.prototype.conn = 0; /** - * Rule force_unique_key. - * @member {string} force_unique_key - * @memberof binlogdata.Rule + * Charset server. + * @member {number} server + * @memberof binlogdata.Charset * @instance */ - Rule.prototype.force_unique_key = ""; + Charset.prototype.server = 0; /** - * Creates a new Rule instance using the specified properties. + * Creates a new Charset instance using the specified properties. * @function create - * @memberof binlogdata.Rule + * @memberof binlogdata.Charset * @static - * @param {binlogdata.IRule=} [properties] Properties to set - * @returns {binlogdata.Rule} Rule instance + * @param {binlogdata.ICharset=} [properties] Properties to set + * @returns {binlogdata.Charset} Charset instance */ - Rule.create = function create(properties) { - return new Rule(properties); + Charset.create = function create(properties) { + return new Charset(properties); }; /** - * Encodes the specified Rule message. Does not implicitly {@link binlogdata.Rule.verify|verify} messages. + * Encodes the specified Charset message. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. * @function encode - * @memberof binlogdata.Rule + * @memberof binlogdata.Charset * @static - * @param {binlogdata.IRule} message Rule message or plain object to encode + * @param {binlogdata.ICharset} message Charset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Rule.encode = function encode(message, writer) { + Charset.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.match != null && Object.hasOwnProperty.call(message, "match")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.match); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.convert_enum_to_text != null && Object.hasOwnProperty.call(message, "convert_enum_to_text")) - for (let keys = Object.keys(message.convert_enum_to_text), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.convert_enum_to_text[keys[i]]).ldelim(); - if (message.convert_charset != null && Object.hasOwnProperty.call(message, "convert_charset")) - for (let keys = Object.keys(message.convert_charset), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.binlogdata.CharsetConversion.encode(message.convert_charset[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.source_unique_key_columns != null && Object.hasOwnProperty.call(message, "source_unique_key_columns")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.source_unique_key_columns); - if (message.target_unique_key_columns != null && Object.hasOwnProperty.call(message, "target_unique_key_columns")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.target_unique_key_columns); - if (message.source_unique_key_target_columns != null && Object.hasOwnProperty.call(message, "source_unique_key_target_columns")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.source_unique_key_target_columns); - if (message.convert_int_to_enum != null && Object.hasOwnProperty.call(message, "convert_int_to_enum")) - for (let keys = Object.keys(message.convert_int_to_enum), i = 0; i < keys.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).bool(message.convert_int_to_enum[keys[i]]).ldelim(); - if (message.force_unique_key != null && Object.hasOwnProperty.call(message, "force_unique_key")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.force_unique_key); + if (message.client != null && Object.hasOwnProperty.call(message, "client")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.client); + if (message.conn != null && Object.hasOwnProperty.call(message, "conn")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.conn); + if (message.server != null && Object.hasOwnProperty.call(message, "server")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.server); return writer; }; /** - * Encodes the specified Rule message, length delimited. Does not implicitly {@link binlogdata.Rule.verify|verify} messages. + * Encodes the specified Charset message, length delimited. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.Rule + * @memberof binlogdata.Charset * @static - * @param {binlogdata.IRule} message Rule message or plain object to encode + * @param {binlogdata.ICharset} message Charset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Rule.encodeDelimited = function encodeDelimited(message, writer) { + Charset.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Rule message from the specified reader or buffer. + * Decodes a Charset message from the specified reader or buffer. * @function decode - * @memberof binlogdata.Rule + * @memberof binlogdata.Charset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.Rule} Rule + * @returns {binlogdata.Charset} Charset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Rule.decode = function decode(reader, length) { + Charset.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Rule(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Charset(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.match = reader.string(); + message.client = reader.int32(); break; } case 2: { - message.filter = reader.string(); + message.conn = reader.int32(); break; } case 3: { - if (message.convert_enum_to_text === $util.emptyObject) - message.convert_enum_to_text = {}; - 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.convert_enum_to_text[key] = value; - break; - } - case 4: { - if (message.convert_charset === $util.emptyObject) - message.convert_charset = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.binlogdata.CharsetConversion.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.convert_charset[key] = value; - break; - } - case 5: { - message.source_unique_key_columns = reader.string(); - break; - } - case 6: { - message.target_unique_key_columns = reader.string(); - break; - } - case 7: { - message.source_unique_key_target_columns = reader.string(); - break; - } - case 8: { - if (message.convert_int_to_enum === $util.emptyObject) - message.convert_int_to_enum = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = false; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.bool(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.convert_int_to_enum[key] = value; - break; - } - case 9: { - message.force_unique_key = reader.string(); + message.server = reader.int32(); break; } default: @@ -87308,238 +87507,141 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a Rule message from the specified reader or buffer, length delimited. + * Decodes a Charset message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.Rule + * @memberof binlogdata.Charset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.Rule} Rule + * @returns {binlogdata.Charset} Charset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Rule.decodeDelimited = function decodeDelimited(reader) { + Charset.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Rule message. + * Verifies a Charset message. * @function verify - * @memberof binlogdata.Rule + * @memberof binlogdata.Charset * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Rule.verify = function verify(message) { + Charset.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.match != null && message.hasOwnProperty("match")) - if (!$util.isString(message.match)) - return "match: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.convert_enum_to_text != null && message.hasOwnProperty("convert_enum_to_text")) { - if (!$util.isObject(message.convert_enum_to_text)) - return "convert_enum_to_text: object expected"; - let key = Object.keys(message.convert_enum_to_text); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.convert_enum_to_text[key[i]])) - return "convert_enum_to_text: string{k:string} expected"; - } - if (message.convert_charset != null && message.hasOwnProperty("convert_charset")) { - if (!$util.isObject(message.convert_charset)) - return "convert_charset: object expected"; - let key = Object.keys(message.convert_charset); - for (let i = 0; i < key.length; ++i) { - let error = $root.binlogdata.CharsetConversion.verify(message.convert_charset[key[i]]); - if (error) - return "convert_charset." + error; - } - } - if (message.source_unique_key_columns != null && message.hasOwnProperty("source_unique_key_columns")) - if (!$util.isString(message.source_unique_key_columns)) - return "source_unique_key_columns: string expected"; - if (message.target_unique_key_columns != null && message.hasOwnProperty("target_unique_key_columns")) - if (!$util.isString(message.target_unique_key_columns)) - return "target_unique_key_columns: string expected"; - if (message.source_unique_key_target_columns != null && message.hasOwnProperty("source_unique_key_target_columns")) - if (!$util.isString(message.source_unique_key_target_columns)) - return "source_unique_key_target_columns: string expected"; - if (message.convert_int_to_enum != null && message.hasOwnProperty("convert_int_to_enum")) { - if (!$util.isObject(message.convert_int_to_enum)) - return "convert_int_to_enum: object expected"; - let key = Object.keys(message.convert_int_to_enum); - for (let i = 0; i < key.length; ++i) - if (typeof message.convert_int_to_enum[key[i]] !== "boolean") - return "convert_int_to_enum: boolean{k:string} expected"; - } - if (message.force_unique_key != null && message.hasOwnProperty("force_unique_key")) - if (!$util.isString(message.force_unique_key)) - return "force_unique_key: string expected"; + if (message.client != null && message.hasOwnProperty("client")) + if (!$util.isInteger(message.client)) + return "client: integer expected"; + if (message.conn != null && message.hasOwnProperty("conn")) + if (!$util.isInteger(message.conn)) + return "conn: integer expected"; + if (message.server != null && message.hasOwnProperty("server")) + if (!$util.isInteger(message.server)) + return "server: integer expected"; return null; }; /** - * Creates a Rule message from a plain object. Also converts values to their respective internal types. + * Creates a Charset message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.Rule + * @memberof binlogdata.Charset * @static * @param {Object.} object Plain object - * @returns {binlogdata.Rule} Rule + * @returns {binlogdata.Charset} Charset */ - Rule.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.Rule) + Charset.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.Charset) return object; - let message = new $root.binlogdata.Rule(); - if (object.match != null) - message.match = String(object.match); - if (object.filter != null) - message.filter = String(object.filter); - if (object.convert_enum_to_text) { - if (typeof object.convert_enum_to_text !== "object") - throw TypeError(".binlogdata.Rule.convert_enum_to_text: object expected"); - message.convert_enum_to_text = {}; - for (let keys = Object.keys(object.convert_enum_to_text), i = 0; i < keys.length; ++i) - message.convert_enum_to_text[keys[i]] = String(object.convert_enum_to_text[keys[i]]); - } - if (object.convert_charset) { - if (typeof object.convert_charset !== "object") - throw TypeError(".binlogdata.Rule.convert_charset: object expected"); - message.convert_charset = {}; - for (let keys = Object.keys(object.convert_charset), i = 0; i < keys.length; ++i) { - if (typeof object.convert_charset[keys[i]] !== "object") - throw TypeError(".binlogdata.Rule.convert_charset: object expected"); - message.convert_charset[keys[i]] = $root.binlogdata.CharsetConversion.fromObject(object.convert_charset[keys[i]]); - } - } - if (object.source_unique_key_columns != null) - message.source_unique_key_columns = String(object.source_unique_key_columns); - if (object.target_unique_key_columns != null) - message.target_unique_key_columns = String(object.target_unique_key_columns); - if (object.source_unique_key_target_columns != null) - message.source_unique_key_target_columns = String(object.source_unique_key_target_columns); - if (object.convert_int_to_enum) { - if (typeof object.convert_int_to_enum !== "object") - throw TypeError(".binlogdata.Rule.convert_int_to_enum: object expected"); - message.convert_int_to_enum = {}; - for (let keys = Object.keys(object.convert_int_to_enum), i = 0; i < keys.length; ++i) - message.convert_int_to_enum[keys[i]] = Boolean(object.convert_int_to_enum[keys[i]]); - } - if (object.force_unique_key != null) - message.force_unique_key = String(object.force_unique_key); + let message = new $root.binlogdata.Charset(); + if (object.client != null) + message.client = object.client | 0; + if (object.conn != null) + message.conn = object.conn | 0; + if (object.server != null) + message.server = object.server | 0; return message; }; /** - * Creates a plain object from a Rule message. Also converts values to other types if specified. + * Creates a plain object from a Charset message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.Rule + * @memberof binlogdata.Charset * @static - * @param {binlogdata.Rule} message Rule + * @param {binlogdata.Charset} message Charset * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Rule.toObject = function toObject(message, options) { + Charset.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) { - object.convert_enum_to_text = {}; - object.convert_charset = {}; - object.convert_int_to_enum = {}; - } if (options.defaults) { - object.match = ""; - object.filter = ""; - object.source_unique_key_columns = ""; - object.target_unique_key_columns = ""; - object.source_unique_key_target_columns = ""; - object.force_unique_key = ""; - } - if (message.match != null && message.hasOwnProperty("match")) - object.match = message.match; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - let keys2; - if (message.convert_enum_to_text && (keys2 = Object.keys(message.convert_enum_to_text)).length) { - object.convert_enum_to_text = {}; - for (let j = 0; j < keys2.length; ++j) - object.convert_enum_to_text[keys2[j]] = message.convert_enum_to_text[keys2[j]]; - } - if (message.convert_charset && (keys2 = Object.keys(message.convert_charset)).length) { - object.convert_charset = {}; - for (let j = 0; j < keys2.length; ++j) - object.convert_charset[keys2[j]] = $root.binlogdata.CharsetConversion.toObject(message.convert_charset[keys2[j]], options); - } - if (message.source_unique_key_columns != null && message.hasOwnProperty("source_unique_key_columns")) - object.source_unique_key_columns = message.source_unique_key_columns; - if (message.target_unique_key_columns != null && message.hasOwnProperty("target_unique_key_columns")) - object.target_unique_key_columns = message.target_unique_key_columns; - if (message.source_unique_key_target_columns != null && message.hasOwnProperty("source_unique_key_target_columns")) - object.source_unique_key_target_columns = message.source_unique_key_target_columns; - if (message.convert_int_to_enum && (keys2 = Object.keys(message.convert_int_to_enum)).length) { - object.convert_int_to_enum = {}; - for (let j = 0; j < keys2.length; ++j) - object.convert_int_to_enum[keys2[j]] = message.convert_int_to_enum[keys2[j]]; + object.client = 0; + object.conn = 0; + object.server = 0; } - if (message.force_unique_key != null && message.hasOwnProperty("force_unique_key")) - object.force_unique_key = message.force_unique_key; + if (message.client != null && message.hasOwnProperty("client")) + object.client = message.client; + if (message.conn != null && message.hasOwnProperty("conn")) + object.conn = message.conn; + if (message.server != null && message.hasOwnProperty("server")) + object.server = message.server; return object; }; /** - * Converts this Rule to JSON. + * Converts this Charset to JSON. * @function toJSON - * @memberof binlogdata.Rule + * @memberof binlogdata.Charset * @instance * @returns {Object.} JSON object */ - Rule.prototype.toJSON = function toJSON() { + Charset.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Rule + * Gets the default type url for Charset * @function getTypeUrl - * @memberof binlogdata.Rule + * @memberof binlogdata.Charset * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Rule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Charset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.Rule"; + return typeUrlPrefix + "/binlogdata.Charset"; }; - return Rule; + return Charset; })(); - binlogdata.Filter = (function() { + binlogdata.BinlogTransaction = (function() { /** - * Properties of a Filter. + * Properties of a BinlogTransaction. * @memberof binlogdata - * @interface IFilter - * @property {Array.|null} [rules] Filter rules - * @property {binlogdata.Filter.FieldEventMode|null} [field_event_mode] Filter field_event_mode - * @property {number|Long|null} [workflow_type] Filter workflow_type - * @property {string|null} [workflow_name] Filter workflow_name + * @interface IBinlogTransaction + * @property {Array.|null} [statements] BinlogTransaction statements + * @property {query.IEventToken|null} [event_token] BinlogTransaction event_token */ /** - * Constructs a new Filter. + * Constructs a new BinlogTransaction. * @memberof binlogdata - * @classdesc Represents a Filter. - * @implements IFilter + * @classdesc Represents a BinlogTransaction. + * @implements IBinlogTransaction * @constructor - * @param {binlogdata.IFilter=} [properties] Properties to set + * @param {binlogdata.IBinlogTransaction=} [properties] Properties to set */ - function Filter(properties) { - this.rules = []; + function BinlogTransaction(properties) { + this.statements = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87547,120 +87649,92 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * Filter rules. - * @member {Array.} rules - * @memberof binlogdata.Filter - * @instance - */ - Filter.prototype.rules = $util.emptyArray; - - /** - * Filter field_event_mode. - * @member {binlogdata.Filter.FieldEventMode} field_event_mode - * @memberof binlogdata.Filter - * @instance - */ - Filter.prototype.field_event_mode = 0; - - /** - * Filter workflow_type. - * @member {number|Long} workflow_type - * @memberof binlogdata.Filter + * BinlogTransaction statements. + * @member {Array.} statements + * @memberof binlogdata.BinlogTransaction * @instance */ - Filter.prototype.workflow_type = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BinlogTransaction.prototype.statements = $util.emptyArray; /** - * Filter workflow_name. - * @member {string} workflow_name - * @memberof binlogdata.Filter + * BinlogTransaction event_token. + * @member {query.IEventToken|null|undefined} event_token + * @memberof binlogdata.BinlogTransaction * @instance */ - Filter.prototype.workflow_name = ""; + BinlogTransaction.prototype.event_token = null; /** - * Creates a new Filter instance using the specified properties. + * Creates a new BinlogTransaction instance using the specified properties. * @function create - * @memberof binlogdata.Filter + * @memberof binlogdata.BinlogTransaction * @static - * @param {binlogdata.IFilter=} [properties] Properties to set - * @returns {binlogdata.Filter} Filter instance + * @param {binlogdata.IBinlogTransaction=} [properties] Properties to set + * @returns {binlogdata.BinlogTransaction} BinlogTransaction instance */ - Filter.create = function create(properties) { - return new Filter(properties); + BinlogTransaction.create = function create(properties) { + return new BinlogTransaction(properties); }; /** - * Encodes the specified Filter message. Does not implicitly {@link binlogdata.Filter.verify|verify} messages. + * Encodes the specified BinlogTransaction message. Does not implicitly {@link binlogdata.BinlogTransaction.verify|verify} messages. * @function encode - * @memberof binlogdata.Filter + * @memberof binlogdata.BinlogTransaction * @static - * @param {binlogdata.IFilter} message Filter message or plain object to encode + * @param {binlogdata.IBinlogTransaction} message BinlogTransaction message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Filter.encode = function encode(message, writer) { + BinlogTransaction.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (let i = 0; i < message.rules.length; ++i) - $root.binlogdata.Rule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.field_event_mode != null && Object.hasOwnProperty.call(message, "field_event_mode")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.field_event_mode); - if (message.workflow_type != null && Object.hasOwnProperty.call(message, "workflow_type")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.workflow_type); - if (message.workflow_name != null && Object.hasOwnProperty.call(message, "workflow_name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.workflow_name); + if (message.statements != null && message.statements.length) + for (let i = 0; i < message.statements.length; ++i) + $root.binlogdata.BinlogTransaction.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 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified Filter message, length delimited. Does not implicitly {@link binlogdata.Filter.verify|verify} messages. + * Encodes the specified BinlogTransaction message, length delimited. Does not implicitly {@link binlogdata.BinlogTransaction.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.Filter + * @memberof binlogdata.BinlogTransaction * @static - * @param {binlogdata.IFilter} message Filter message or plain object to encode + * @param {binlogdata.IBinlogTransaction} message BinlogTransaction message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Filter.encodeDelimited = function encodeDelimited(message, writer) { + BinlogTransaction.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Filter message from the specified reader or buffer. + * Decodes a BinlogTransaction message from the specified reader or buffer. * @function decode - * @memberof binlogdata.Filter + * @memberof binlogdata.BinlogTransaction * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.Filter} Filter + * @returns {binlogdata.BinlogTransaction} BinlogTransaction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Filter.decode = function decode(reader, length) { + BinlogTransaction.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Filter(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogTransaction(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.binlogdata.Rule.decode(reader, reader.uint32())); - break; - } - case 2: { - message.field_event_mode = reader.int32(); - break; - } - case 3: { - message.workflow_type = reader.int64(); + if (!(message.statements && message.statements.length)) + message.statements = []; + message.statements.push($root.binlogdata.BinlogTransaction.Statement.decode(reader, reader.uint32())); break; } case 4: { - message.workflow_name = reader.string(); + message.event_token = $root.query.EventToken.decode(reader, reader.uint32()); break; } default: @@ -87672,537 +87746,612 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a Filter message from the specified reader or buffer, length delimited. + * Decodes a BinlogTransaction message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.Filter + * @memberof binlogdata.BinlogTransaction * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.Filter} Filter + * @returns {binlogdata.BinlogTransaction} BinlogTransaction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Filter.decodeDelimited = function decodeDelimited(reader) { + BinlogTransaction.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Filter message. + * Verifies a BinlogTransaction message. * @function verify - * @memberof binlogdata.Filter + * @memberof binlogdata.BinlogTransaction * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Filter.verify = function verify(message) { + BinlogTransaction.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 (let i = 0; i < message.rules.length; ++i) { - let error = $root.binlogdata.Rule.verify(message.rules[i]); + if (message.statements != null && message.hasOwnProperty("statements")) { + if (!Array.isArray(message.statements)) + return "statements: array expected"; + for (let i = 0; i < message.statements.length; ++i) { + let error = $root.binlogdata.BinlogTransaction.Statement.verify(message.statements[i]); if (error) - return "rules." + error; + return "statements." + error; } } - if (message.field_event_mode != null && message.hasOwnProperty("field_event_mode")) - switch (message.field_event_mode) { - default: - return "field_event_mode: enum value expected"; - case 0: - case 1: - break; - } - if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) - if (!$util.isInteger(message.workflow_type) && !(message.workflow_type && $util.isInteger(message.workflow_type.low) && $util.isInteger(message.workflow_type.high))) - return "workflow_type: integer|Long expected"; - if (message.workflow_name != null && message.hasOwnProperty("workflow_name")) - if (!$util.isString(message.workflow_name)) - return "workflow_name: string expected"; + if (message.event_token != null && message.hasOwnProperty("event_token")) { + let error = $root.query.EventToken.verify(message.event_token); + if (error) + return "event_token." + error; + } return null; }; /** - * Creates a Filter message from a plain object. Also converts values to their respective internal types. + * Creates a BinlogTransaction message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.Filter + * @memberof binlogdata.BinlogTransaction * @static * @param {Object.} object Plain object - * @returns {binlogdata.Filter} Filter + * @returns {binlogdata.BinlogTransaction} BinlogTransaction */ - Filter.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.Filter) + BinlogTransaction.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.BinlogTransaction) return object; - let message = new $root.binlogdata.Filter(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".binlogdata.Filter.rules: array expected"); - message.rules = []; - for (let i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".binlogdata.Filter.rules: object expected"); - message.rules[i] = $root.binlogdata.Rule.fromObject(object.rules[i]); + let message = new $root.binlogdata.BinlogTransaction(); + if (object.statements) { + if (!Array.isArray(object.statements)) + throw TypeError(".binlogdata.BinlogTransaction.statements: array expected"); + message.statements = []; + for (let i = 0; i < object.statements.length; ++i) { + if (typeof object.statements[i] !== "object") + throw TypeError(".binlogdata.BinlogTransaction.statements: object expected"); + message.statements[i] = $root.binlogdata.BinlogTransaction.Statement.fromObject(object.statements[i]); } } - switch (object.field_event_mode) { - default: - if (typeof object.field_event_mode === "number") { - message.field_event_mode = object.field_event_mode; - break; - } - break; - case "ERR_ON_MISMATCH": - case 0: - message.field_event_mode = 0; - break; - case "BEST_EFFORT": - case 1: - message.field_event_mode = 1; - break; + if (object.event_token != null) { + if (typeof object.event_token !== "object") + throw TypeError(".binlogdata.BinlogTransaction.event_token: object expected"); + message.event_token = $root.query.EventToken.fromObject(object.event_token); } - if (object.workflow_type != null) - if ($util.Long) - (message.workflow_type = $util.Long.fromValue(object.workflow_type)).unsigned = false; - else if (typeof object.workflow_type === "string") - message.workflow_type = parseInt(object.workflow_type, 10); - else if (typeof object.workflow_type === "number") - message.workflow_type = object.workflow_type; - else if (typeof object.workflow_type === "object") - message.workflow_type = new $util.LongBits(object.workflow_type.low >>> 0, object.workflow_type.high >>> 0).toNumber(); - if (object.workflow_name != null) - message.workflow_name = String(object.workflow_name); return message; }; /** - * Creates a plain object from a Filter message. Also converts values to other types if specified. + * Creates a plain object from a BinlogTransaction message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.Filter + * @memberof binlogdata.BinlogTransaction * @static - * @param {binlogdata.Filter} message Filter + * @param {binlogdata.BinlogTransaction} message BinlogTransaction * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Filter.toObject = function toObject(message, options) { + BinlogTransaction.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.rules = []; - if (options.defaults) { - object.field_event_mode = options.enums === String ? "ERR_ON_MISMATCH" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.workflow_type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.workflow_type = options.longs === String ? "0" : 0; - object.workflow_name = ""; - } - if (message.rules && message.rules.length) { - object.rules = []; - for (let j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.binlogdata.Rule.toObject(message.rules[j], options); + object.statements = []; + if (options.defaults) + object.event_token = null; + if (message.statements && message.statements.length) { + object.statements = []; + for (let j = 0; j < message.statements.length; ++j) + object.statements[j] = $root.binlogdata.BinlogTransaction.Statement.toObject(message.statements[j], options); } - if (message.field_event_mode != null && message.hasOwnProperty("field_event_mode")) - object.field_event_mode = options.enums === String ? $root.binlogdata.Filter.FieldEventMode[message.field_event_mode] === undefined ? message.field_event_mode : $root.binlogdata.Filter.FieldEventMode[message.field_event_mode] : message.field_event_mode; - if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) - if (typeof message.workflow_type === "number") - object.workflow_type = options.longs === String ? String(message.workflow_type) : message.workflow_type; - else - object.workflow_type = options.longs === String ? $util.Long.prototype.toString.call(message.workflow_type) : options.longs === Number ? new $util.LongBits(message.workflow_type.low >>> 0, message.workflow_type.high >>> 0).toNumber() : message.workflow_type; - if (message.workflow_name != null && message.hasOwnProperty("workflow_name")) - object.workflow_name = message.workflow_name; + if (message.event_token != null && message.hasOwnProperty("event_token")) + object.event_token = $root.query.EventToken.toObject(message.event_token, options); return object; }; /** - * Converts this Filter to JSON. + * Converts this BinlogTransaction to JSON. * @function toJSON - * @memberof binlogdata.Filter + * @memberof binlogdata.BinlogTransaction * @instance * @returns {Object.} JSON object */ - Filter.prototype.toJSON = function toJSON() { + BinlogTransaction.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Filter + * Gets the default type url for BinlogTransaction * @function getTypeUrl - * @memberof binlogdata.Filter + * @memberof binlogdata.BinlogTransaction * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Filter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BinlogTransaction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.Filter"; + return typeUrlPrefix + "/binlogdata.BinlogTransaction"; }; - /** - * FieldEventMode enum. - * @name binlogdata.Filter.FieldEventMode - * @enum {number} - * @property {number} ERR_ON_MISMATCH=0 ERR_ON_MISMATCH value - * @property {number} BEST_EFFORT=1 BEST_EFFORT value - */ - Filter.FieldEventMode = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ERR_ON_MISMATCH"] = 0; - values[valuesById[1] = "BEST_EFFORT"] = 1; - return values; - })(); + BinlogTransaction.Statement = (function() { - return Filter; - })(); + /** + * Properties of a Statement. + * @memberof binlogdata.BinlogTransaction + * @interface IStatement + * @property {binlogdata.BinlogTransaction.Statement.Category|null} [category] Statement category + * @property {binlogdata.ICharset|null} [charset] Statement charset + * @property {Uint8Array|null} [sql] Statement sql + */ - /** - * OnDDLAction enum. - * @name binlogdata.OnDDLAction - * @enum {number} - * @property {number} IGNORE=0 IGNORE value - * @property {number} STOP=1 STOP value - * @property {number} EXEC=2 EXEC value - * @property {number} EXEC_IGNORE=3 EXEC_IGNORE value - */ - binlogdata.OnDDLAction = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IGNORE"] = 0; - values[valuesById[1] = "STOP"] = 1; - values[valuesById[2] = "EXEC"] = 2; - values[valuesById[3] = "EXEC_IGNORE"] = 3; - return values; - })(); + /** + * Constructs a new Statement. + * @memberof binlogdata.BinlogTransaction + * @classdesc Represents a Statement. + * @implements IStatement + * @constructor + * @param {binlogdata.BinlogTransaction.IStatement=} [properties] Properties to set + */ + function Statement(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * VReplicationWorkflowType enum. - * @name binlogdata.VReplicationWorkflowType - * @enum {number} - * @property {number} Materialize=0 Materialize value - * @property {number} MoveTables=1 MoveTables value - * @property {number} CreateLookupIndex=2 CreateLookupIndex value - * @property {number} Migrate=3 Migrate value - * @property {number} Reshard=4 Reshard value - * @property {number} OnlineDDL=5 OnlineDDL value - */ - binlogdata.VReplicationWorkflowType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "Materialize"] = 0; - values[valuesById[1] = "MoveTables"] = 1; - values[valuesById[2] = "CreateLookupIndex"] = 2; - values[valuesById[3] = "Migrate"] = 3; - values[valuesById[4] = "Reshard"] = 4; - values[valuesById[5] = "OnlineDDL"] = 5; - return values; - })(); + /** + * Statement category. + * @member {binlogdata.BinlogTransaction.Statement.Category} category + * @memberof binlogdata.BinlogTransaction.Statement + * @instance + */ + Statement.prototype.category = 0; - /** - * VReplicationWorkflowSubType enum. - * @name binlogdata.VReplicationWorkflowSubType - * @enum {number} - * @property {number} None=0 None value - * @property {number} Partial=1 Partial value - * @property {number} AtomicCopy=2 AtomicCopy value - */ - binlogdata.VReplicationWorkflowSubType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "None"] = 0; - values[valuesById[1] = "Partial"] = 1; - values[valuesById[2] = "AtomicCopy"] = 2; - return values; - })(); + /** + * Statement charset. + * @member {binlogdata.ICharset|null|undefined} charset + * @memberof binlogdata.BinlogTransaction.Statement + * @instance + */ + Statement.prototype.charset = null; - /** - * VReplicationWorkflowState enum. - * @name binlogdata.VReplicationWorkflowState - * @enum {number} - * @property {number} Unknown=0 Unknown value - * @property {number} Init=1 Init value - * @property {number} Stopped=2 Stopped value - * @property {number} Copying=3 Copying value - * @property {number} Running=4 Running value - * @property {number} Error=5 Error value - * @property {number} Lagging=6 Lagging value - */ - binlogdata.VReplicationWorkflowState = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "Unknown"] = 0; - values[valuesById[1] = "Init"] = 1; - values[valuesById[2] = "Stopped"] = 2; - values[valuesById[3] = "Copying"] = 3; - values[valuesById[4] = "Running"] = 4; - values[valuesById[5] = "Error"] = 5; - values[valuesById[6] = "Lagging"] = 6; - return values; - })(); + /** + * Statement sql. + * @member {Uint8Array} sql + * @memberof binlogdata.BinlogTransaction.Statement + * @instance + */ + Statement.prototype.sql = $util.newBuffer([]); - binlogdata.BinlogSource = (function() { + /** + * Creates a new Statement instance using the specified properties. + * @function create + * @memberof binlogdata.BinlogTransaction.Statement + * @static + * @param {binlogdata.BinlogTransaction.IStatement=} [properties] Properties to set + * @returns {binlogdata.BinlogTransaction.Statement} Statement instance + */ + Statement.create = function create(properties) { + return new Statement(properties); + }; - /** - * Properties of a BinlogSource. - * @memberof binlogdata - * @interface IBinlogSource - * @property {string|null} [keyspace] BinlogSource keyspace - * @property {string|null} [shard] BinlogSource shard - * @property {topodata.TabletType|null} [tablet_type] BinlogSource tablet_type - * @property {topodata.IKeyRange|null} [key_range] BinlogSource key_range - * @property {Array.|null} [tables] BinlogSource tables - * @property {binlogdata.IFilter|null} [filter] BinlogSource filter - * @property {binlogdata.OnDDLAction|null} [on_ddl] BinlogSource on_ddl - * @property {string|null} [external_mysql] BinlogSource external_mysql - * @property {boolean|null} [stop_after_copy] BinlogSource stop_after_copy - * @property {string|null} [external_cluster] BinlogSource external_cluster - * @property {string|null} [source_time_zone] BinlogSource source_time_zone - * @property {string|null} [target_time_zone] BinlogSource target_time_zone - */ + /** + * Encodes the specified Statement message. Does not implicitly {@link binlogdata.BinlogTransaction.Statement.verify|verify} messages. + * @function encode + * @memberof binlogdata.BinlogTransaction.Statement + * @static + * @param {binlogdata.BinlogTransaction.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.charset != null && Object.hasOwnProperty.call(message, "charset")) + $root.binlogdata.Charset.encode(message.charset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.sql); + return writer; + }; - /** - * Constructs a new BinlogSource. - * @memberof binlogdata - * @classdesc Represents a BinlogSource. - * @implements IBinlogSource - * @constructor - * @param {binlogdata.IBinlogSource=} [properties] Properties to set - */ - function BinlogSource(properties) { - this.tables = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified Statement message, length delimited. Does not implicitly {@link binlogdata.BinlogTransaction.Statement.verify|verify} messages. + * @function encodeDelimited + * @memberof binlogdata.BinlogTransaction.Statement + * @static + * @param {binlogdata.BinlogTransaction.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(); + }; - /** - * BinlogSource keyspace. - * @member {string} keyspace - * @memberof binlogdata.BinlogSource - * @instance - */ - BinlogSource.prototype.keyspace = ""; + /** + * Decodes a Statement message from the specified reader or buffer. + * @function decode + * @memberof binlogdata.BinlogTransaction.Statement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {binlogdata.BinlogTransaction.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); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogTransaction.Statement(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.category = reader.int32(); + break; + } + case 2: { + message.charset = $root.binlogdata.Charset.decode(reader, reader.uint32()); + break; + } + case 3: { + message.sql = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * BinlogSource shard. - * @member {string} shard - * @memberof binlogdata.BinlogSource - * @instance - */ - BinlogSource.prototype.shard = ""; + /** + * Decodes a Statement message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof binlogdata.BinlogTransaction.Statement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {binlogdata.BinlogTransaction.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()); + }; - /** - * BinlogSource tablet_type. - * @member {topodata.TabletType} tablet_type - * @memberof binlogdata.BinlogSource - * @instance - */ - BinlogSource.prototype.tablet_type = 0; + /** + * Verifies a Statement message. + * @function verify + * @memberof binlogdata.BinlogTransaction.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: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.charset != null && message.hasOwnProperty("charset")) { + let error = $root.binlogdata.Charset.verify(message.charset); + if (error) + return "charset." + 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; + }; - /** - * BinlogSource key_range. - * @member {topodata.IKeyRange|null|undefined} key_range - * @memberof binlogdata.BinlogSource - * @instance - */ - BinlogSource.prototype.key_range = null; + /** + * Creates a Statement message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof binlogdata.BinlogTransaction.Statement + * @static + * @param {Object.} object Plain object + * @returns {binlogdata.BinlogTransaction.Statement} Statement + */ + Statement.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.BinlogTransaction.Statement) + return object; + let message = new $root.binlogdata.BinlogTransaction.Statement(); + switch (object.category) { + default: + if (typeof object.category === "number") { + message.category = object.category; + break; + } + break; + case "BL_UNRECOGNIZED": + case 0: + message.category = 0; + break; + case "BL_BEGIN": + case 1: + message.category = 1; + break; + case "BL_COMMIT": + case 2: + message.category = 2; + break; + case "BL_ROLLBACK": + case 3: + message.category = 3; + break; + case "BL_DML_DEPRECATED": + case 4: + message.category = 4; + break; + case "BL_DDL": + case 5: + message.category = 5; + break; + case "BL_SET": + case 6: + message.category = 6; + break; + case "BL_INSERT": + case 7: + message.category = 7; + break; + case "BL_UPDATE": + case 8: + message.category = 8; + break; + case "BL_DELETE": + case 9: + message.category = 9; + break; + } + if (object.charset != null) { + if (typeof object.charset !== "object") + throw TypeError(".binlogdata.BinlogTransaction.Statement.charset: object expected"); + message.charset = $root.binlogdata.Charset.fromObject(object.charset); + } + 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 >= 0) + message.sql = object.sql; + return message; + }; - /** - * BinlogSource tables. - * @member {Array.} tables - * @memberof binlogdata.BinlogSource - * @instance - */ - BinlogSource.prototype.tables = $util.emptyArray; + /** + * Creates a plain object from a Statement message. Also converts values to other types if specified. + * @function toObject + * @memberof binlogdata.BinlogTransaction.Statement + * @static + * @param {binlogdata.BinlogTransaction.Statement} message Statement + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Statement.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.category = options.enums === String ? "BL_UNRECOGNIZED" : 0; + object.charset = null; + 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.binlogdata.BinlogTransaction.Statement.Category[message.category] === undefined ? message.category : $root.binlogdata.BinlogTransaction.Statement.Category[message.category] : message.category; + if (message.charset != null && message.hasOwnProperty("charset")) + object.charset = $root.binlogdata.Charset.toObject(message.charset, 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; + }; - /** - * BinlogSource filter. - * @member {binlogdata.IFilter|null|undefined} filter - * @memberof binlogdata.BinlogSource - * @instance - */ - BinlogSource.prototype.filter = null; + /** + * Converts this Statement to JSON. + * @function toJSON + * @memberof binlogdata.BinlogTransaction.Statement + * @instance + * @returns {Object.} JSON object + */ + Statement.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * BinlogSource on_ddl. - * @member {binlogdata.OnDDLAction} on_ddl - * @memberof binlogdata.BinlogSource - * @instance - */ - BinlogSource.prototype.on_ddl = 0; + /** + * Gets the default type url for Statement + * @function getTypeUrl + * @memberof binlogdata.BinlogTransaction.Statement + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Statement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/binlogdata.BinlogTransaction.Statement"; + }; + + /** + * Category enum. + * @name binlogdata.BinlogTransaction.Statement.Category + * @enum {number} + * @property {number} BL_UNRECOGNIZED=0 BL_UNRECOGNIZED value + * @property {number} BL_BEGIN=1 BL_BEGIN value + * @property {number} BL_COMMIT=2 BL_COMMIT value + * @property {number} BL_ROLLBACK=3 BL_ROLLBACK value + * @property {number} BL_DML_DEPRECATED=4 BL_DML_DEPRECATED value + * @property {number} BL_DDL=5 BL_DDL value + * @property {number} BL_SET=6 BL_SET value + * @property {number} BL_INSERT=7 BL_INSERT value + * @property {number} BL_UPDATE=8 BL_UPDATE value + * @property {number} BL_DELETE=9 BL_DELETE value + */ + Statement.Category = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "BL_UNRECOGNIZED"] = 0; + values[valuesById[1] = "BL_BEGIN"] = 1; + values[valuesById[2] = "BL_COMMIT"] = 2; + values[valuesById[3] = "BL_ROLLBACK"] = 3; + values[valuesById[4] = "BL_DML_DEPRECATED"] = 4; + values[valuesById[5] = "BL_DDL"] = 5; + values[valuesById[6] = "BL_SET"] = 6; + values[valuesById[7] = "BL_INSERT"] = 7; + values[valuesById[8] = "BL_UPDATE"] = 8; + values[valuesById[9] = "BL_DELETE"] = 9; + return values; + })(); + + return Statement; + })(); + + return BinlogTransaction; + })(); + + binlogdata.StreamKeyRangeRequest = (function() { /** - * BinlogSource external_mysql. - * @member {string} external_mysql - * @memberof binlogdata.BinlogSource - * @instance + * Properties of a StreamKeyRangeRequest. + * @memberof binlogdata + * @interface IStreamKeyRangeRequest + * @property {string|null} [position] StreamKeyRangeRequest position + * @property {topodata.IKeyRange|null} [key_range] StreamKeyRangeRequest key_range + * @property {binlogdata.ICharset|null} [charset] StreamKeyRangeRequest charset */ - BinlogSource.prototype.external_mysql = ""; /** - * BinlogSource stop_after_copy. - * @member {boolean} stop_after_copy - * @memberof binlogdata.BinlogSource - * @instance + * Constructs a new StreamKeyRangeRequest. + * @memberof binlogdata + * @classdesc Represents a StreamKeyRangeRequest. + * @implements IStreamKeyRangeRequest + * @constructor + * @param {binlogdata.IStreamKeyRangeRequest=} [properties] Properties to set */ - BinlogSource.prototype.stop_after_copy = false; + function StreamKeyRangeRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * BinlogSource external_cluster. - * @member {string} external_cluster - * @memberof binlogdata.BinlogSource + * StreamKeyRangeRequest position. + * @member {string} position + * @memberof binlogdata.StreamKeyRangeRequest * @instance */ - BinlogSource.prototype.external_cluster = ""; + StreamKeyRangeRequest.prototype.position = ""; /** - * BinlogSource source_time_zone. - * @member {string} source_time_zone - * @memberof binlogdata.BinlogSource + * StreamKeyRangeRequest key_range. + * @member {topodata.IKeyRange|null|undefined} key_range + * @memberof binlogdata.StreamKeyRangeRequest * @instance */ - BinlogSource.prototype.source_time_zone = ""; + StreamKeyRangeRequest.prototype.key_range = null; /** - * BinlogSource target_time_zone. - * @member {string} target_time_zone - * @memberof binlogdata.BinlogSource + * StreamKeyRangeRequest charset. + * @member {binlogdata.ICharset|null|undefined} charset + * @memberof binlogdata.StreamKeyRangeRequest * @instance */ - BinlogSource.prototype.target_time_zone = ""; + StreamKeyRangeRequest.prototype.charset = null; /** - * Creates a new BinlogSource instance using the specified properties. + * Creates a new StreamKeyRangeRequest instance using the specified properties. * @function create - * @memberof binlogdata.BinlogSource + * @memberof binlogdata.StreamKeyRangeRequest * @static - * @param {binlogdata.IBinlogSource=} [properties] Properties to set - * @returns {binlogdata.BinlogSource} BinlogSource instance + * @param {binlogdata.IStreamKeyRangeRequest=} [properties] Properties to set + * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest instance */ - BinlogSource.create = function create(properties) { - return new BinlogSource(properties); + StreamKeyRangeRequest.create = function create(properties) { + return new StreamKeyRangeRequest(properties); }; /** - * Encodes the specified BinlogSource message. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. + * Encodes the specified StreamKeyRangeRequest message. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. * @function encode - * @memberof binlogdata.BinlogSource + * @memberof binlogdata.StreamKeyRangeRequest * @static - * @param {binlogdata.IBinlogSource} message BinlogSource message or plain object to encode + * @param {binlogdata.IStreamKeyRangeRequest} message StreamKeyRangeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BinlogSource.encode = function encode(message, writer) { + StreamKeyRangeRequest.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.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); if (message.key_range != null && Object.hasOwnProperty.call(message, "key_range")) - $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.tables != null && message.tables.length) - for (let i = 0; i < message.tables.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.tables[i]); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - $root.binlogdata.Filter.encode(message.filter, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.on_ddl != null && Object.hasOwnProperty.call(message, "on_ddl")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.on_ddl); - if (message.external_mysql != null && Object.hasOwnProperty.call(message, "external_mysql")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.external_mysql); - if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.stop_after_copy); - if (message.external_cluster != null && Object.hasOwnProperty.call(message, "external_cluster")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.external_cluster); - if (message.source_time_zone != null && Object.hasOwnProperty.call(message, "source_time_zone")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.source_time_zone); - if (message.target_time_zone != null && Object.hasOwnProperty.call(message, "target_time_zone")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.target_time_zone); + $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.charset != null && Object.hasOwnProperty.call(message, "charset")) + $root.binlogdata.Charset.encode(message.charset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified BinlogSource message, length delimited. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. + * Encodes the specified StreamKeyRangeRequest message, length delimited. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.BinlogSource + * @memberof binlogdata.StreamKeyRangeRequest * @static - * @param {binlogdata.IBinlogSource} message BinlogSource message or plain object to encode + * @param {binlogdata.IStreamKeyRangeRequest} message StreamKeyRangeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BinlogSource.encodeDelimited = function encodeDelimited(message, writer) { + StreamKeyRangeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BinlogSource message from the specified reader or buffer. + * Decodes a StreamKeyRangeRequest message from the specified reader or buffer. * @function decode - * @memberof binlogdata.BinlogSource + * @memberof binlogdata.StreamKeyRangeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.BinlogSource} BinlogSource + * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BinlogSource.decode = function decode(reader, length) { + StreamKeyRangeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogSource(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamKeyRangeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + message.position = reader.string(); break; } case 2: { - message.shard = reader.string(); - break; - } - case 3: { - message.tablet_type = reader.int32(); - break; - } - case 4: { message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); break; } - case 5: { - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.push(reader.string()); - break; - } - case 6: { - message.filter = $root.binlogdata.Filter.decode(reader, reader.uint32()); - break; - } - case 7: { - message.on_ddl = reader.int32(); - break; - } - case 8: { - message.external_mysql = reader.string(); - break; - } - case 9: { - message.stop_after_copy = reader.bool(); - break; - } - case 10: { - message.external_cluster = reader.string(); - break; - } - case 11: { - message.source_time_zone = reader.string(); - break; - } - case 12: { - message.target_time_zone = reader.string(); + case 3: { + message.charset = $root.binlogdata.Charset.decode(reader, reader.uint32()); break; } default: @@ -88214,382 +88363,149 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a BinlogSource message from the specified reader or buffer, length delimited. + * Decodes a StreamKeyRangeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.BinlogSource + * @memberof binlogdata.StreamKeyRangeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.BinlogSource} BinlogSource + * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BinlogSource.decodeDelimited = function decodeDelimited(reader) { + StreamKeyRangeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BinlogSource message. + * Verifies a StreamKeyRangeRequest message. * @function verify - * @memberof binlogdata.BinlogSource + * @memberof binlogdata.StreamKeyRangeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BinlogSource.verify = function verify(message) { + StreamKeyRangeRequest.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.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; if (message.key_range != null && message.hasOwnProperty("key_range")) { let error = $root.topodata.KeyRange.verify(message.key_range); if (error) return "key_range." + error; } - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!Array.isArray(message.tables)) - return "tables: array expected"; - for (let i = 0; i < message.tables.length; ++i) - if (!$util.isString(message.tables[i])) - return "tables: string[] expected"; - } - if (message.filter != null && message.hasOwnProperty("filter")) { - let error = $root.binlogdata.Filter.verify(message.filter); + if (message.charset != null && message.hasOwnProperty("charset")) { + let error = $root.binlogdata.Charset.verify(message.charset); if (error) - return "filter." + error; + return "charset." + error; } - if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) - switch (message.on_ddl) { - default: - return "on_ddl: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.external_mysql != null && message.hasOwnProperty("external_mysql")) - if (!$util.isString(message.external_mysql)) - return "external_mysql: 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.external_cluster != null && message.hasOwnProperty("external_cluster")) - if (!$util.isString(message.external_cluster)) - return "external_cluster: string expected"; - 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"; return null; }; /** - * Creates a BinlogSource message from a plain object. Also converts values to their respective internal types. + * Creates a StreamKeyRangeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.BinlogSource + * @memberof binlogdata.StreamKeyRangeRequest * @static * @param {Object.} object Plain object - * @returns {binlogdata.BinlogSource} BinlogSource + * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest */ - BinlogSource.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.BinlogSource) + StreamKeyRangeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.StreamKeyRangeRequest) return object; - let message = new $root.binlogdata.BinlogSource(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - switch (object.tablet_type) { - default: - if (typeof object.tablet_type === "number") { - message.tablet_type = object.tablet_type; - break; - } - break; - 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.binlogdata.StreamKeyRangeRequest(); + if (object.position != null) + message.position = String(object.position); if (object.key_range != null) { if (typeof object.key_range !== "object") - throw TypeError(".binlogdata.BinlogSource.key_range: object expected"); + throw TypeError(".binlogdata.StreamKeyRangeRequest.key_range: object expected"); message.key_range = $root.topodata.KeyRange.fromObject(object.key_range); } - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".binlogdata.BinlogSource.tables: array expected"); - message.tables = []; - for (let i = 0; i < object.tables.length; ++i) - message.tables[i] = String(object.tables[i]); - } - if (object.filter != null) { - if (typeof object.filter !== "object") - throw TypeError(".binlogdata.BinlogSource.filter: object expected"); - message.filter = $root.binlogdata.Filter.fromObject(object.filter); - } - switch (object.on_ddl) { - default: - if (typeof object.on_ddl === "number") { - message.on_ddl = object.on_ddl; - break; - } - break; - case "IGNORE": - case 0: - message.on_ddl = 0; - break; - case "STOP": - case 1: - message.on_ddl = 1; - break; - case "EXEC": - case 2: - message.on_ddl = 2; - break; - case "EXEC_IGNORE": - case 3: - message.on_ddl = 3; - break; + if (object.charset != null) { + if (typeof object.charset !== "object") + throw TypeError(".binlogdata.StreamKeyRangeRequest.charset: object expected"); + message.charset = $root.binlogdata.Charset.fromObject(object.charset); } - if (object.external_mysql != null) - message.external_mysql = String(object.external_mysql); - if (object.stop_after_copy != null) - message.stop_after_copy = Boolean(object.stop_after_copy); - if (object.external_cluster != null) - message.external_cluster = String(object.external_cluster); - 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); return message; }; /** - * Creates a plain object from a BinlogSource message. Also converts values to other types if specified. + * Creates a plain object from a StreamKeyRangeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.BinlogSource + * @memberof binlogdata.StreamKeyRangeRequest * @static - * @param {binlogdata.BinlogSource} message BinlogSource + * @param {binlogdata.StreamKeyRangeRequest} message StreamKeyRangeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BinlogSource.toObject = function toObject(message, options) { + StreamKeyRangeRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.tables = []; if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.tablet_type = options.enums === String ? "UNKNOWN" : 0; + object.position = ""; object.key_range = null; - object.filter = null; - object.on_ddl = options.enums === String ? "IGNORE" : 0; - object.external_mysql = ""; - object.stop_after_copy = false; - object.external_cluster = ""; - object.source_time_zone = ""; - object.target_time_zone = ""; + object.charset = null; } - 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] === undefined ? message.tablet_type : $root.topodata.TabletType[message.tablet_type] : message.tablet_type; + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; if (message.key_range != null && message.hasOwnProperty("key_range")) object.key_range = $root.topodata.KeyRange.toObject(message.key_range, options); - if (message.tables && message.tables.length) { - object.tables = []; - for (let j = 0; j < message.tables.length; ++j) - object.tables[j] = message.tables[j]; - } - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = $root.binlogdata.Filter.toObject(message.filter, options); - if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) - object.on_ddl = options.enums === String ? $root.binlogdata.OnDDLAction[message.on_ddl] === undefined ? message.on_ddl : $root.binlogdata.OnDDLAction[message.on_ddl] : message.on_ddl; - if (message.external_mysql != null && message.hasOwnProperty("external_mysql")) - object.external_mysql = message.external_mysql; - if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) - object.stop_after_copy = message.stop_after_copy; - if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) - object.external_cluster = message.external_cluster; - 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.charset != null && message.hasOwnProperty("charset")) + object.charset = $root.binlogdata.Charset.toObject(message.charset, options); return object; }; /** - * Converts this BinlogSource to JSON. + * Converts this StreamKeyRangeRequest to JSON. * @function toJSON - * @memberof binlogdata.BinlogSource + * @memberof binlogdata.StreamKeyRangeRequest * @instance * @returns {Object.} JSON object */ - BinlogSource.prototype.toJSON = function toJSON() { + StreamKeyRangeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BinlogSource + * Gets the default type url for StreamKeyRangeRequest * @function getTypeUrl - * @memberof binlogdata.BinlogSource + * @memberof binlogdata.StreamKeyRangeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BinlogSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamKeyRangeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.BinlogSource"; + return typeUrlPrefix + "/binlogdata.StreamKeyRangeRequest"; }; - return BinlogSource; - })(); - - /** - * VEventType enum. - * @name binlogdata.VEventType - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} GTID=1 GTID value - * @property {number} BEGIN=2 BEGIN value - * @property {number} COMMIT=3 COMMIT value - * @property {number} ROLLBACK=4 ROLLBACK value - * @property {number} DDL=5 DDL value - * @property {number} INSERT=6 INSERT value - * @property {number} REPLACE=7 REPLACE value - * @property {number} UPDATE=8 UPDATE value - * @property {number} DELETE=9 DELETE value - * @property {number} SET=10 SET value - * @property {number} OTHER=11 OTHER value - * @property {number} ROW=12 ROW value - * @property {number} FIELD=13 FIELD value - * @property {number} HEARTBEAT=14 HEARTBEAT value - * @property {number} VGTID=15 VGTID value - * @property {number} JOURNAL=16 JOURNAL value - * @property {number} VERSION=17 VERSION value - * @property {number} LASTPK=18 LASTPK value - * @property {number} SAVEPOINT=19 SAVEPOINT value - * @property {number} COPY_COMPLETED=20 COPY_COMPLETED value - */ - binlogdata.VEventType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "GTID"] = 1; - values[valuesById[2] = "BEGIN"] = 2; - values[valuesById[3] = "COMMIT"] = 3; - values[valuesById[4] = "ROLLBACK"] = 4; - values[valuesById[5] = "DDL"] = 5; - values[valuesById[6] = "INSERT"] = 6; - values[valuesById[7] = "REPLACE"] = 7; - values[valuesById[8] = "UPDATE"] = 8; - values[valuesById[9] = "DELETE"] = 9; - values[valuesById[10] = "SET"] = 10; - values[valuesById[11] = "OTHER"] = 11; - values[valuesById[12] = "ROW"] = 12; - values[valuesById[13] = "FIELD"] = 13; - values[valuesById[14] = "HEARTBEAT"] = 14; - values[valuesById[15] = "VGTID"] = 15; - values[valuesById[16] = "JOURNAL"] = 16; - values[valuesById[17] = "VERSION"] = 17; - values[valuesById[18] = "LASTPK"] = 18; - values[valuesById[19] = "SAVEPOINT"] = 19; - values[valuesById[20] = "COPY_COMPLETED"] = 20; - return values; + return StreamKeyRangeRequest; })(); - binlogdata.RowChange = (function() { + binlogdata.StreamKeyRangeResponse = (function() { /** - * Properties of a RowChange. + * Properties of a StreamKeyRangeResponse. * @memberof binlogdata - * @interface IRowChange - * @property {query.IRow|null} [before] RowChange before - * @property {query.IRow|null} [after] RowChange after - * @property {binlogdata.RowChange.IBitmap|null} [data_columns] RowChange data_columns - * @property {binlogdata.RowChange.IBitmap|null} [json_partial_values] RowChange json_partial_values + * @interface IStreamKeyRangeResponse + * @property {binlogdata.IBinlogTransaction|null} [binlog_transaction] StreamKeyRangeResponse binlog_transaction */ /** - * Constructs a new RowChange. + * Constructs a new StreamKeyRangeResponse. * @memberof binlogdata - * @classdesc Represents a RowChange. - * @implements IRowChange + * @classdesc Represents a StreamKeyRangeResponse. + * @implements IStreamKeyRangeResponse * @constructor - * @param {binlogdata.IRowChange=} [properties] Properties to set + * @param {binlogdata.IStreamKeyRangeResponse=} [properties] Properties to set */ - function RowChange(properties) { + function StreamKeyRangeResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88597,117 +88513,75 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * RowChange before. - * @member {query.IRow|null|undefined} before - * @memberof binlogdata.RowChange - * @instance - */ - RowChange.prototype.before = null; - - /** - * RowChange after. - * @member {query.IRow|null|undefined} after - * @memberof binlogdata.RowChange - * @instance - */ - RowChange.prototype.after = null; - - /** - * RowChange data_columns. - * @member {binlogdata.RowChange.IBitmap|null|undefined} data_columns - * @memberof binlogdata.RowChange - * @instance - */ - RowChange.prototype.data_columns = null; - - /** - * RowChange json_partial_values. - * @member {binlogdata.RowChange.IBitmap|null|undefined} json_partial_values - * @memberof binlogdata.RowChange + * StreamKeyRangeResponse binlog_transaction. + * @member {binlogdata.IBinlogTransaction|null|undefined} binlog_transaction + * @memberof binlogdata.StreamKeyRangeResponse * @instance */ - RowChange.prototype.json_partial_values = null; + StreamKeyRangeResponse.prototype.binlog_transaction = null; /** - * Creates a new RowChange instance using the specified properties. + * Creates a new StreamKeyRangeResponse instance using the specified properties. * @function create - * @memberof binlogdata.RowChange + * @memberof binlogdata.StreamKeyRangeResponse * @static - * @param {binlogdata.IRowChange=} [properties] Properties to set - * @returns {binlogdata.RowChange} RowChange instance + * @param {binlogdata.IStreamKeyRangeResponse=} [properties] Properties to set + * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse instance */ - RowChange.create = function create(properties) { - return new RowChange(properties); + StreamKeyRangeResponse.create = function create(properties) { + return new StreamKeyRangeResponse(properties); }; /** - * Encodes the specified RowChange message. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. + * Encodes the specified StreamKeyRangeResponse message. Does not implicitly {@link binlogdata.StreamKeyRangeResponse.verify|verify} messages. * @function encode - * @memberof binlogdata.RowChange + * @memberof binlogdata.StreamKeyRangeResponse * @static - * @param {binlogdata.IRowChange} message RowChange message or plain object to encode + * @param {binlogdata.IStreamKeyRangeResponse} message StreamKeyRangeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RowChange.encode = function encode(message, writer) { + StreamKeyRangeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.before != null && Object.hasOwnProperty.call(message, "before")) - $root.query.Row.encode(message.before, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.after != null && Object.hasOwnProperty.call(message, "after")) - $root.query.Row.encode(message.after, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.data_columns != null && Object.hasOwnProperty.call(message, "data_columns")) - $root.binlogdata.RowChange.Bitmap.encode(message.data_columns, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.json_partial_values != null && Object.hasOwnProperty.call(message, "json_partial_values")) - $root.binlogdata.RowChange.Bitmap.encode(message.json_partial_values, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.binlog_transaction != null && Object.hasOwnProperty.call(message, "binlog_transaction")) + $root.binlogdata.BinlogTransaction.encode(message.binlog_transaction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RowChange message, length delimited. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. + * Encodes the specified StreamKeyRangeResponse message, length delimited. Does not implicitly {@link binlogdata.StreamKeyRangeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.RowChange + * @memberof binlogdata.StreamKeyRangeResponse * @static - * @param {binlogdata.IRowChange} message RowChange message or plain object to encode + * @param {binlogdata.IStreamKeyRangeResponse} message StreamKeyRangeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RowChange.encodeDelimited = function encodeDelimited(message, writer) { + StreamKeyRangeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RowChange message from the specified reader or buffer. + * Decodes a StreamKeyRangeResponse message from the specified reader or buffer. * @function decode - * @memberof binlogdata.RowChange + * @memberof binlogdata.StreamKeyRangeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.RowChange} RowChange + * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RowChange.decode = function decode(reader, length) { + StreamKeyRangeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.RowChange(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamKeyRangeResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.before = $root.query.Row.decode(reader, reader.uint32()); - break; - } - case 2: { - message.after = $root.query.Row.decode(reader, reader.uint32()); - break; - } - case 3: { - message.data_columns = $root.binlogdata.RowChange.Bitmap.decode(reader, reader.uint32()); - break; - } - case 4: { - message.json_partial_values = $root.binlogdata.RowChange.Bitmap.decode(reader, reader.uint32()); + message.binlog_transaction = $root.binlogdata.BinlogTransaction.decode(reader, reader.uint32()); break; } default: @@ -88719,423 +88593,130 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a RowChange message from the specified reader or buffer, length delimited. + * Decodes a StreamKeyRangeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.RowChange + * @memberof binlogdata.StreamKeyRangeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.RowChange} RowChange + * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RowChange.decodeDelimited = function decodeDelimited(reader) { + StreamKeyRangeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RowChange message. + * Verifies a StreamKeyRangeResponse message. * @function verify - * @memberof binlogdata.RowChange + * @memberof binlogdata.StreamKeyRangeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RowChange.verify = function verify(message) { + StreamKeyRangeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.before != null && message.hasOwnProperty("before")) { - let error = $root.query.Row.verify(message.before); - if (error) - return "before." + error; - } - if (message.after != null && message.hasOwnProperty("after")) { - let error = $root.query.Row.verify(message.after); - if (error) - return "after." + error; - } - if (message.data_columns != null && message.hasOwnProperty("data_columns")) { - let error = $root.binlogdata.RowChange.Bitmap.verify(message.data_columns); - if (error) - return "data_columns." + error; - } - if (message.json_partial_values != null && message.hasOwnProperty("json_partial_values")) { - let error = $root.binlogdata.RowChange.Bitmap.verify(message.json_partial_values); + if (message.binlog_transaction != null && message.hasOwnProperty("binlog_transaction")) { + let error = $root.binlogdata.BinlogTransaction.verify(message.binlog_transaction); if (error) - return "json_partial_values." + error; + return "binlog_transaction." + error; } return null; }; /** - * Creates a RowChange message from a plain object. Also converts values to their respective internal types. + * Creates a StreamKeyRangeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.RowChange + * @memberof binlogdata.StreamKeyRangeResponse * @static * @param {Object.} object Plain object - * @returns {binlogdata.RowChange} RowChange + * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse */ - RowChange.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.RowChange) + StreamKeyRangeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.StreamKeyRangeResponse) return object; - let message = new $root.binlogdata.RowChange(); - if (object.before != null) { - if (typeof object.before !== "object") - throw TypeError(".binlogdata.RowChange.before: object expected"); - message.before = $root.query.Row.fromObject(object.before); - } - if (object.after != null) { - if (typeof object.after !== "object") - throw TypeError(".binlogdata.RowChange.after: object expected"); - message.after = $root.query.Row.fromObject(object.after); - } - if (object.data_columns != null) { - if (typeof object.data_columns !== "object") - throw TypeError(".binlogdata.RowChange.data_columns: object expected"); - message.data_columns = $root.binlogdata.RowChange.Bitmap.fromObject(object.data_columns); - } - if (object.json_partial_values != null) { - if (typeof object.json_partial_values !== "object") - throw TypeError(".binlogdata.RowChange.json_partial_values: object expected"); - message.json_partial_values = $root.binlogdata.RowChange.Bitmap.fromObject(object.json_partial_values); + let message = new $root.binlogdata.StreamKeyRangeResponse(); + if (object.binlog_transaction != null) { + if (typeof object.binlog_transaction !== "object") + throw TypeError(".binlogdata.StreamKeyRangeResponse.binlog_transaction: object expected"); + message.binlog_transaction = $root.binlogdata.BinlogTransaction.fromObject(object.binlog_transaction); } return message; }; /** - * Creates a plain object from a RowChange message. Also converts values to other types if specified. + * Creates a plain object from a StreamKeyRangeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.RowChange + * @memberof binlogdata.StreamKeyRangeResponse * @static - * @param {binlogdata.RowChange} message RowChange + * @param {binlogdata.StreamKeyRangeResponse} message StreamKeyRangeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RowChange.toObject = function toObject(message, options) { + StreamKeyRangeResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.before = null; - object.after = null; - object.data_columns = null; - object.json_partial_values = null; - } - if (message.before != null && message.hasOwnProperty("before")) - object.before = $root.query.Row.toObject(message.before, options); - if (message.after != null && message.hasOwnProperty("after")) - object.after = $root.query.Row.toObject(message.after, options); - if (message.data_columns != null && message.hasOwnProperty("data_columns")) - object.data_columns = $root.binlogdata.RowChange.Bitmap.toObject(message.data_columns, options); - if (message.json_partial_values != null && message.hasOwnProperty("json_partial_values")) - object.json_partial_values = $root.binlogdata.RowChange.Bitmap.toObject(message.json_partial_values, options); + if (options.defaults) + object.binlog_transaction = null; + if (message.binlog_transaction != null && message.hasOwnProperty("binlog_transaction")) + object.binlog_transaction = $root.binlogdata.BinlogTransaction.toObject(message.binlog_transaction, options); return object; }; /** - * Converts this RowChange to JSON. + * Converts this StreamKeyRangeResponse to JSON. * @function toJSON - * @memberof binlogdata.RowChange + * @memberof binlogdata.StreamKeyRangeResponse * @instance * @returns {Object.} JSON object */ - RowChange.prototype.toJSON = function toJSON() { + StreamKeyRangeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RowChange + * Gets the default type url for StreamKeyRangeResponse * @function getTypeUrl - * @memberof binlogdata.RowChange + * @memberof binlogdata.StreamKeyRangeResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RowChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamKeyRangeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.RowChange"; + return typeUrlPrefix + "/binlogdata.StreamKeyRangeResponse"; }; - RowChange.Bitmap = (function() { - - /** - * Properties of a Bitmap. - * @memberof binlogdata.RowChange - * @interface IBitmap - * @property {number|Long|null} [count] Bitmap count - * @property {Uint8Array|null} [cols] Bitmap cols - */ - - /** - * Constructs a new Bitmap. - * @memberof binlogdata.RowChange - * @classdesc Represents a Bitmap. - * @implements IBitmap - * @constructor - * @param {binlogdata.RowChange.IBitmap=} [properties] Properties to set - */ - function Bitmap(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Bitmap count. - * @member {number|Long} count - * @memberof binlogdata.RowChange.Bitmap - * @instance - */ - Bitmap.prototype.count = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Bitmap cols. - * @member {Uint8Array} cols - * @memberof binlogdata.RowChange.Bitmap - * @instance - */ - Bitmap.prototype.cols = $util.newBuffer([]); - - /** - * Creates a new Bitmap instance using the specified properties. - * @function create - * @memberof binlogdata.RowChange.Bitmap - * @static - * @param {binlogdata.RowChange.IBitmap=} [properties] Properties to set - * @returns {binlogdata.RowChange.Bitmap} Bitmap instance - */ - Bitmap.create = function create(properties) { - return new Bitmap(properties); - }; - - /** - * Encodes the specified Bitmap message. Does not implicitly {@link binlogdata.RowChange.Bitmap.verify|verify} messages. - * @function encode - * @memberof binlogdata.RowChange.Bitmap - * @static - * @param {binlogdata.RowChange.IBitmap} message Bitmap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Bitmap.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.count); - if (message.cols != null && Object.hasOwnProperty.call(message, "cols")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.cols); - return writer; - }; - - /** - * Encodes the specified Bitmap message, length delimited. Does not implicitly {@link binlogdata.RowChange.Bitmap.verify|verify} messages. - * @function encodeDelimited - * @memberof binlogdata.RowChange.Bitmap - * @static - * @param {binlogdata.RowChange.IBitmap} message Bitmap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Bitmap.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Bitmap message from the specified reader or buffer. - * @function decode - * @memberof binlogdata.RowChange.Bitmap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.RowChange.Bitmap} Bitmap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Bitmap.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.RowChange.Bitmap(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.count = reader.int64(); - break; - } - case 2: { - message.cols = reader.bytes(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Bitmap message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof binlogdata.RowChange.Bitmap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.RowChange.Bitmap} Bitmap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Bitmap.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Bitmap message. - * @function verify - * @memberof binlogdata.RowChange.Bitmap - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Bitmap.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.count != null && message.hasOwnProperty("count")) - if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high))) - return "count: integer|Long expected"; - if (message.cols != null && message.hasOwnProperty("cols")) - if (!(message.cols && typeof message.cols.length === "number" || $util.isString(message.cols))) - return "cols: buffer expected"; - return null; - }; - - /** - * Creates a Bitmap message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof binlogdata.RowChange.Bitmap - * @static - * @param {Object.} object Plain object - * @returns {binlogdata.RowChange.Bitmap} Bitmap - */ - Bitmap.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.RowChange.Bitmap) - return object; - let message = new $root.binlogdata.RowChange.Bitmap(); - if (object.count != null) - if ($util.Long) - (message.count = $util.Long.fromValue(object.count)).unsigned = false; - else if (typeof object.count === "string") - message.count = parseInt(object.count, 10); - else if (typeof object.count === "number") - message.count = object.count; - else if (typeof object.count === "object") - message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(); - if (object.cols != null) - if (typeof object.cols === "string") - $util.base64.decode(object.cols, message.cols = $util.newBuffer($util.base64.length(object.cols)), 0); - else if (object.cols.length >= 0) - message.cols = object.cols; - return message; - }; - - /** - * Creates a plain object from a Bitmap message. Also converts values to other types if specified. - * @function toObject - * @memberof binlogdata.RowChange.Bitmap - * @static - * @param {binlogdata.RowChange.Bitmap} message Bitmap - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Bitmap.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.count = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.cols = ""; - else { - object.cols = []; - if (options.bytes !== Array) - object.cols = $util.newBuffer(object.cols); - } - } - if (message.count != null && message.hasOwnProperty("count")) - if (typeof message.count === "number") - object.count = options.longs === String ? String(message.count) : message.count; - else - object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count; - if (message.cols != null && message.hasOwnProperty("cols")) - object.cols = options.bytes === String ? $util.base64.encode(message.cols, 0, message.cols.length) : options.bytes === Array ? Array.prototype.slice.call(message.cols) : message.cols; - return object; - }; - - /** - * Converts this Bitmap to JSON. - * @function toJSON - * @memberof binlogdata.RowChange.Bitmap - * @instance - * @returns {Object.} JSON object - */ - Bitmap.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Bitmap - * @function getTypeUrl - * @memberof binlogdata.RowChange.Bitmap - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Bitmap.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/binlogdata.RowChange.Bitmap"; - }; - - return Bitmap; - })(); - - return RowChange; + return StreamKeyRangeResponse; })(); - binlogdata.RowEvent = (function() { + binlogdata.StreamTablesRequest = (function() { /** - * Properties of a RowEvent. + * Properties of a StreamTablesRequest. * @memberof binlogdata - * @interface IRowEvent - * @property {string|null} [table_name] RowEvent table_name - * @property {Array.|null} [row_changes] RowEvent row_changes - * @property {string|null} [keyspace] RowEvent keyspace - * @property {string|null} [shard] RowEvent shard - * @property {number|null} [flags] RowEvent flags - * @property {boolean|null} [is_internal_table] RowEvent is_internal_table + * @interface IStreamTablesRequest + * @property {string|null} [position] StreamTablesRequest position + * @property {Array.|null} [tables] StreamTablesRequest tables + * @property {binlogdata.ICharset|null} [charset] StreamTablesRequest charset */ /** - * Constructs a new RowEvent. + * Constructs a new StreamTablesRequest. * @memberof binlogdata - * @classdesc Represents a RowEvent. - * @implements IRowEvent + * @classdesc Represents a StreamTablesRequest. + * @implements IStreamTablesRequest * @constructor - * @param {binlogdata.IRowEvent=} [properties] Properties to set + * @param {binlogdata.IStreamTablesRequest=} [properties] Properties to set */ - function RowEvent(properties) { - this.row_changes = []; + function StreamTablesRequest(properties) { + this.tables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89143,148 +88724,106 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * RowEvent table_name. - * @member {string} table_name - * @memberof binlogdata.RowEvent - * @instance - */ - RowEvent.prototype.table_name = ""; - - /** - * RowEvent row_changes. - * @member {Array.} row_changes - * @memberof binlogdata.RowEvent - * @instance - */ - RowEvent.prototype.row_changes = $util.emptyArray; - - /** - * RowEvent keyspace. - * @member {string} keyspace - * @memberof binlogdata.RowEvent - * @instance - */ - RowEvent.prototype.keyspace = ""; - - /** - * RowEvent shard. - * @member {string} shard - * @memberof binlogdata.RowEvent + * StreamTablesRequest position. + * @member {string} position + * @memberof binlogdata.StreamTablesRequest * @instance */ - RowEvent.prototype.shard = ""; + StreamTablesRequest.prototype.position = ""; /** - * RowEvent flags. - * @member {number} flags - * @memberof binlogdata.RowEvent + * StreamTablesRequest tables. + * @member {Array.} tables + * @memberof binlogdata.StreamTablesRequest * @instance */ - RowEvent.prototype.flags = 0; + StreamTablesRequest.prototype.tables = $util.emptyArray; /** - * RowEvent is_internal_table. - * @member {boolean} is_internal_table - * @memberof binlogdata.RowEvent + * StreamTablesRequest charset. + * @member {binlogdata.ICharset|null|undefined} charset + * @memberof binlogdata.StreamTablesRequest * @instance */ - RowEvent.prototype.is_internal_table = false; + StreamTablesRequest.prototype.charset = null; /** - * Creates a new RowEvent instance using the specified properties. + * Creates a new StreamTablesRequest instance using the specified properties. * @function create - * @memberof binlogdata.RowEvent + * @memberof binlogdata.StreamTablesRequest * @static - * @param {binlogdata.IRowEvent=} [properties] Properties to set - * @returns {binlogdata.RowEvent} RowEvent instance + * @param {binlogdata.IStreamTablesRequest=} [properties] Properties to set + * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest instance */ - RowEvent.create = function create(properties) { - return new RowEvent(properties); + StreamTablesRequest.create = function create(properties) { + return new StreamTablesRequest(properties); }; /** - * Encodes the specified RowEvent message. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. + * Encodes the specified StreamTablesRequest message. Does not implicitly {@link binlogdata.StreamTablesRequest.verify|verify} messages. * @function encode - * @memberof binlogdata.RowEvent + * @memberof binlogdata.StreamTablesRequest * @static - * @param {binlogdata.IRowEvent} message RowEvent message or plain object to encode + * @param {binlogdata.IStreamTablesRequest} message StreamTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RowEvent.encode = function encode(message, writer) { + StreamTablesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.table_name != null && Object.hasOwnProperty.call(message, "table_name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.table_name); - if (message.row_changes != null && message.row_changes.length) - for (let i = 0; i < message.row_changes.length; ++i) - $root.binlogdata.RowChange.encode(message.row_changes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.shard); - if (message.flags != null && Object.hasOwnProperty.call(message, "flags")) - writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.flags); - if (message.is_internal_table != null && Object.hasOwnProperty.call(message, "is_internal_table")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.is_internal_table); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); + if (message.tables != null && message.tables.length) + for (let i = 0; i < message.tables.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tables[i]); + if (message.charset != null && Object.hasOwnProperty.call(message, "charset")) + $root.binlogdata.Charset.encode(message.charset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified RowEvent message, length delimited. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. + * Encodes the specified StreamTablesRequest message, length delimited. Does not implicitly {@link binlogdata.StreamTablesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.RowEvent + * @memberof binlogdata.StreamTablesRequest * @static - * @param {binlogdata.IRowEvent} message RowEvent message or plain object to encode + * @param {binlogdata.IStreamTablesRequest} message StreamTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RowEvent.encodeDelimited = function encodeDelimited(message, writer) { + StreamTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RowEvent message from the specified reader or buffer. + * Decodes a StreamTablesRequest message from the specified reader or buffer. * @function decode - * @memberof binlogdata.RowEvent + * @memberof binlogdata.StreamTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.RowEvent} RowEvent + * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RowEvent.decode = function decode(reader, length) { + StreamTablesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.RowEvent(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamTablesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.table_name = reader.string(); + message.position = reader.string(); break; } case 2: { - if (!(message.row_changes && message.row_changes.length)) - message.row_changes = []; - message.row_changes.push($root.binlogdata.RowChange.decode(reader, reader.uint32())); + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); break; } case 3: { - message.keyspace = reader.string(); - break; - } - case 4: { - message.shard = reader.string(); - break; - } - case 5: { - message.flags = reader.uint32(); - break; - } - case 6: { - message.is_internal_table = reader.bool(); + message.charset = $root.binlogdata.Charset.decode(reader, reader.uint32()); break; } default: @@ -89296,187 +88835,157 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a RowEvent message from the specified reader or buffer, length delimited. + * Decodes a StreamTablesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.RowEvent + * @memberof binlogdata.StreamTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.RowEvent} RowEvent + * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RowEvent.decodeDelimited = function decodeDelimited(reader) { + StreamTablesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RowEvent message. + * Verifies a StreamTablesRequest message. * @function verify - * @memberof binlogdata.RowEvent + * @memberof binlogdata.StreamTablesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RowEvent.verify = function verify(message) { + StreamTablesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.table_name != null && message.hasOwnProperty("table_name")) - if (!$util.isString(message.table_name)) - return "table_name: string expected"; - if (message.row_changes != null && message.hasOwnProperty("row_changes")) { - if (!Array.isArray(message.row_changes)) - return "row_changes: array expected"; - for (let i = 0; i < message.row_changes.length; ++i) { - let error = $root.binlogdata.RowChange.verify(message.row_changes[i]); - if (error) - return "row_changes." + error; - } + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (let i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; + } + if (message.charset != null && message.hasOwnProperty("charset")) { + let error = $root.binlogdata.Charset.verify(message.charset); + if (error) + return "charset." + 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.flags != null && message.hasOwnProperty("flags")) - if (!$util.isInteger(message.flags)) - return "flags: integer expected"; - if (message.is_internal_table != null && message.hasOwnProperty("is_internal_table")) - if (typeof message.is_internal_table !== "boolean") - return "is_internal_table: boolean expected"; return null; }; /** - * Creates a RowEvent message from a plain object. Also converts values to their respective internal types. + * Creates a StreamTablesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.RowEvent + * @memberof binlogdata.StreamTablesRequest * @static * @param {Object.} object Plain object - * @returns {binlogdata.RowEvent} RowEvent + * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest */ - RowEvent.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.RowEvent) + StreamTablesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.StreamTablesRequest) return object; - let message = new $root.binlogdata.RowEvent(); - if (object.table_name != null) - message.table_name = String(object.table_name); - if (object.row_changes) { - if (!Array.isArray(object.row_changes)) - throw TypeError(".binlogdata.RowEvent.row_changes: array expected"); - message.row_changes = []; - for (let i = 0; i < object.row_changes.length; ++i) { - if (typeof object.row_changes[i] !== "object") - throw TypeError(".binlogdata.RowEvent.row_changes: object expected"); - message.row_changes[i] = $root.binlogdata.RowChange.fromObject(object.row_changes[i]); - } + let message = new $root.binlogdata.StreamTablesRequest(); + if (object.position != null) + message.position = String(object.position); + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".binlogdata.StreamTablesRequest.tables: array expected"); + message.tables = []; + for (let i = 0; i < object.tables.length; ++i) + message.tables[i] = String(object.tables[i]); + } + if (object.charset != null) { + if (typeof object.charset !== "object") + throw TypeError(".binlogdata.StreamTablesRequest.charset: object expected"); + message.charset = $root.binlogdata.Charset.fromObject(object.charset); } - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.flags != null) - message.flags = object.flags >>> 0; - if (object.is_internal_table != null) - message.is_internal_table = Boolean(object.is_internal_table); return message; }; /** - * Creates a plain object from a RowEvent message. Also converts values to other types if specified. + * Creates a plain object from a StreamTablesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.RowEvent + * @memberof binlogdata.StreamTablesRequest * @static - * @param {binlogdata.RowEvent} message RowEvent + * @param {binlogdata.StreamTablesRequest} message StreamTablesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RowEvent.toObject = function toObject(message, options) { + StreamTablesRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.row_changes = []; + object.tables = []; if (options.defaults) { - object.table_name = ""; - object.keyspace = ""; - object.shard = ""; - object.flags = 0; - object.is_internal_table = false; + object.position = ""; + object.charset = null; } - if (message.table_name != null && message.hasOwnProperty("table_name")) - object.table_name = message.table_name; - if (message.row_changes && message.row_changes.length) { - object.row_changes = []; - for (let j = 0; j < message.row_changes.length; ++j) - object.row_changes[j] = $root.binlogdata.RowChange.toObject(message.row_changes[j], options); + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + if (message.tables && message.tables.length) { + object.tables = []; + for (let j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[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.flags != null && message.hasOwnProperty("flags")) - object.flags = message.flags; - if (message.is_internal_table != null && message.hasOwnProperty("is_internal_table")) - object.is_internal_table = message.is_internal_table; + if (message.charset != null && message.hasOwnProperty("charset")) + object.charset = $root.binlogdata.Charset.toObject(message.charset, options); return object; }; /** - * Converts this RowEvent to JSON. + * Converts this StreamTablesRequest to JSON. * @function toJSON - * @memberof binlogdata.RowEvent + * @memberof binlogdata.StreamTablesRequest * @instance * @returns {Object.} JSON object */ - RowEvent.prototype.toJSON = function toJSON() { + StreamTablesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RowEvent + * Gets the default type url for StreamTablesRequest * @function getTypeUrl - * @memberof binlogdata.RowEvent + * @memberof binlogdata.StreamTablesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RowEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamTablesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.RowEvent"; + return typeUrlPrefix + "/binlogdata.StreamTablesRequest"; }; - return RowEvent; + return StreamTablesRequest; })(); - binlogdata.FieldEvent = (function() { + binlogdata.StreamTablesResponse = (function() { /** - * Properties of a FieldEvent. + * Properties of a StreamTablesResponse. * @memberof binlogdata - * @interface IFieldEvent - * @property {string|null} [table_name] FieldEvent table_name - * @property {Array.|null} [fields] FieldEvent fields - * @property {string|null} [keyspace] FieldEvent keyspace - * @property {string|null} [shard] FieldEvent shard - * @property {boolean|null} [enum_set_string_values] FieldEvent enum_set_string_values - * @property {boolean|null} [is_internal_table] FieldEvent is_internal_table + * @interface IStreamTablesResponse + * @property {binlogdata.IBinlogTransaction|null} [binlog_transaction] StreamTablesResponse binlog_transaction */ /** - * Constructs a new FieldEvent. + * Constructs a new StreamTablesResponse. * @memberof binlogdata - * @classdesc Represents a FieldEvent. - * @implements IFieldEvent + * @classdesc Represents a StreamTablesResponse. + * @implements IStreamTablesResponse * @constructor - * @param {binlogdata.IFieldEvent=} [properties] Properties to set + * @param {binlogdata.IStreamTablesResponse=} [properties] Properties to set */ - function FieldEvent(properties) { - this.fields = []; + function StreamTablesResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89484,148 +88993,75 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * FieldEvent table_name. - * @member {string} table_name - * @memberof binlogdata.FieldEvent - * @instance - */ - FieldEvent.prototype.table_name = ""; - - /** - * FieldEvent fields. - * @member {Array.} fields - * @memberof binlogdata.FieldEvent - * @instance - */ - FieldEvent.prototype.fields = $util.emptyArray; - - /** - * FieldEvent keyspace. - * @member {string} keyspace - * @memberof binlogdata.FieldEvent - * @instance - */ - FieldEvent.prototype.keyspace = ""; - - /** - * FieldEvent shard. - * @member {string} shard - * @memberof binlogdata.FieldEvent - * @instance - */ - FieldEvent.prototype.shard = ""; - - /** - * FieldEvent enum_set_string_values. - * @member {boolean} enum_set_string_values - * @memberof binlogdata.FieldEvent - * @instance - */ - FieldEvent.prototype.enum_set_string_values = false; - - /** - * FieldEvent is_internal_table. - * @member {boolean} is_internal_table - * @memberof binlogdata.FieldEvent + * StreamTablesResponse binlog_transaction. + * @member {binlogdata.IBinlogTransaction|null|undefined} binlog_transaction + * @memberof binlogdata.StreamTablesResponse * @instance */ - FieldEvent.prototype.is_internal_table = false; + StreamTablesResponse.prototype.binlog_transaction = null; /** - * Creates a new FieldEvent instance using the specified properties. + * Creates a new StreamTablesResponse instance using the specified properties. * @function create - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamTablesResponse * @static - * @param {binlogdata.IFieldEvent=} [properties] Properties to set - * @returns {binlogdata.FieldEvent} FieldEvent instance + * @param {binlogdata.IStreamTablesResponse=} [properties] Properties to set + * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse instance */ - FieldEvent.create = function create(properties) { - return new FieldEvent(properties); + StreamTablesResponse.create = function create(properties) { + return new StreamTablesResponse(properties); }; /** - * Encodes the specified FieldEvent message. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. + * Encodes the specified StreamTablesResponse message. Does not implicitly {@link binlogdata.StreamTablesResponse.verify|verify} messages. * @function encode - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamTablesResponse * @static - * @param {binlogdata.IFieldEvent} message FieldEvent message or plain object to encode + * @param {binlogdata.IStreamTablesResponse} message StreamTablesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldEvent.encode = function encode(message, writer) { + StreamTablesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.table_name != null && Object.hasOwnProperty.call(message, "table_name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.table_name); - if (message.fields != null && message.fields.length) - for (let i = 0; i < message.fields.length; ++i) - $root.query.Field.encode(message.fields[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.shard); - if (message.enum_set_string_values != null && Object.hasOwnProperty.call(message, "enum_set_string_values")) - writer.uint32(/* id 25, wireType 0 =*/200).bool(message.enum_set_string_values); - if (message.is_internal_table != null && Object.hasOwnProperty.call(message, "is_internal_table")) - writer.uint32(/* id 26, wireType 0 =*/208).bool(message.is_internal_table); + if (message.binlog_transaction != null && Object.hasOwnProperty.call(message, "binlog_transaction")) + $root.binlogdata.BinlogTransaction.encode(message.binlog_transaction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FieldEvent message, length delimited. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. + * Encodes the specified StreamTablesResponse message, length delimited. Does not implicitly {@link binlogdata.StreamTablesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamTablesResponse * @static - * @param {binlogdata.IFieldEvent} message FieldEvent message or plain object to encode + * @param {binlogdata.IStreamTablesResponse} message StreamTablesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldEvent.encodeDelimited = function encodeDelimited(message, writer) { + StreamTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FieldEvent message from the specified reader or buffer. + * Decodes a StreamTablesResponse message from the specified reader or buffer. * @function decode - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamTablesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.FieldEvent} FieldEvent + * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldEvent.decode = function decode(reader, length) { + StreamTablesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.FieldEvent(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamTablesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.table_name = reader.string(); - break; - } - case 2: { - if (!(message.fields && message.fields.length)) - message.fields = []; - message.fields.push($root.query.Field.decode(reader, reader.uint32())); - break; - } - case 3: { - message.keyspace = reader.string(); - break; - } - case 4: { - message.shard = reader.string(); - break; - } - case 25: { - message.enum_set_string_values = reader.bool(); - break; - } - case 26: { - message.is_internal_table = reader.bool(); + message.binlog_transaction = $root.binlogdata.BinlogTransaction.decode(reader, reader.uint32()); break; } default: @@ -89637,185 +89073,128 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a FieldEvent message from the specified reader or buffer, length delimited. + * Decodes a StreamTablesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamTablesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.FieldEvent} FieldEvent + * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldEvent.decodeDelimited = function decodeDelimited(reader) { + StreamTablesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FieldEvent message. + * Verifies a StreamTablesResponse message. * @function verify - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamTablesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FieldEvent.verify = function verify(message) { + StreamTablesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.table_name != null && message.hasOwnProperty("table_name")) - if (!$util.isString(message.table_name)) - return "table_name: string expected"; - if (message.fields != null && message.hasOwnProperty("fields")) { - if (!Array.isArray(message.fields)) - return "fields: array expected"; - for (let i = 0; i < message.fields.length; ++i) { - let error = $root.query.Field.verify(message.fields[i]); - if (error) - return "fields." + error; - } + if (message.binlog_transaction != null && message.hasOwnProperty("binlog_transaction")) { + let error = $root.binlogdata.BinlogTransaction.verify(message.binlog_transaction); + if (error) + return "binlog_transaction." + 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.enum_set_string_values != null && message.hasOwnProperty("enum_set_string_values")) - if (typeof message.enum_set_string_values !== "boolean") - return "enum_set_string_values: boolean expected"; - if (message.is_internal_table != null && message.hasOwnProperty("is_internal_table")) - if (typeof message.is_internal_table !== "boolean") - return "is_internal_table: boolean expected"; return null; }; /** - * Creates a FieldEvent message from a plain object. Also converts values to their respective internal types. + * Creates a StreamTablesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamTablesResponse * @static * @param {Object.} object Plain object - * @returns {binlogdata.FieldEvent} FieldEvent + * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse */ - FieldEvent.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.FieldEvent) + StreamTablesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.StreamTablesResponse) return object; - let message = new $root.binlogdata.FieldEvent(); - if (object.table_name != null) - message.table_name = String(object.table_name); - if (object.fields) { - if (!Array.isArray(object.fields)) - throw TypeError(".binlogdata.FieldEvent.fields: array expected"); - message.fields = []; - for (let i = 0; i < object.fields.length; ++i) { - if (typeof object.fields[i] !== "object") - throw TypeError(".binlogdata.FieldEvent.fields: object expected"); - message.fields[i] = $root.query.Field.fromObject(object.fields[i]); - } + let message = new $root.binlogdata.StreamTablesResponse(); + if (object.binlog_transaction != null) { + if (typeof object.binlog_transaction !== "object") + throw TypeError(".binlogdata.StreamTablesResponse.binlog_transaction: object expected"); + message.binlog_transaction = $root.binlogdata.BinlogTransaction.fromObject(object.binlog_transaction); } - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.enum_set_string_values != null) - message.enum_set_string_values = Boolean(object.enum_set_string_values); - if (object.is_internal_table != null) - message.is_internal_table = Boolean(object.is_internal_table); return message; }; /** - * Creates a plain object from a FieldEvent message. Also converts values to other types if specified. + * Creates a plain object from a StreamTablesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamTablesResponse * @static - * @param {binlogdata.FieldEvent} message FieldEvent + * @param {binlogdata.StreamTablesResponse} message StreamTablesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldEvent.toObject = function toObject(message, options) { + StreamTablesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.fields = []; - if (options.defaults) { - object.table_name = ""; - object.keyspace = ""; - object.shard = ""; - object.enum_set_string_values = false; - object.is_internal_table = false; - } - if (message.table_name != null && message.hasOwnProperty("table_name")) - object.table_name = message.table_name; - if (message.fields && message.fields.length) { - object.fields = []; - for (let j = 0; j < message.fields.length; ++j) - object.fields[j] = $root.query.Field.toObject(message.fields[j], 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.enum_set_string_values != null && message.hasOwnProperty("enum_set_string_values")) - object.enum_set_string_values = message.enum_set_string_values; - if (message.is_internal_table != null && message.hasOwnProperty("is_internal_table")) - object.is_internal_table = message.is_internal_table; + if (options.defaults) + object.binlog_transaction = null; + if (message.binlog_transaction != null && message.hasOwnProperty("binlog_transaction")) + object.binlog_transaction = $root.binlogdata.BinlogTransaction.toObject(message.binlog_transaction, options); return object; }; /** - * Converts this FieldEvent to JSON. + * Converts this StreamTablesResponse to JSON. * @function toJSON - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamTablesResponse * @instance * @returns {Object.} JSON object */ - FieldEvent.prototype.toJSON = function toJSON() { + StreamTablesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FieldEvent + * Gets the default type url for StreamTablesResponse * @function getTypeUrl - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamTablesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FieldEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamTablesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.FieldEvent"; + return typeUrlPrefix + "/binlogdata.StreamTablesResponse"; }; - return FieldEvent; + return StreamTablesResponse; })(); - binlogdata.ShardGtid = (function() { + binlogdata.CharsetConversion = (function() { /** - * Properties of a ShardGtid. + * Properties of a CharsetConversion. * @memberof binlogdata - * @interface IShardGtid - * @property {string|null} [keyspace] ShardGtid keyspace - * @property {string|null} [shard] ShardGtid shard - * @property {string|null} [gtid] ShardGtid gtid - * @property {Array.|null} [table_p_ks] ShardGtid table_p_ks + * @interface ICharsetConversion + * @property {string|null} [from_charset] CharsetConversion from_charset + * @property {string|null} [to_charset] CharsetConversion to_charset */ /** - * Constructs a new ShardGtid. + * Constructs a new CharsetConversion. * @memberof binlogdata - * @classdesc Represents a ShardGtid. - * @implements IShardGtid + * @classdesc Represents a CharsetConversion. + * @implements ICharsetConversion * @constructor - * @param {binlogdata.IShardGtid=} [properties] Properties to set + * @param {binlogdata.ICharsetConversion=} [properties] Properties to set */ - function ShardGtid(properties) { - this.table_p_ks = []; + function CharsetConversion(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89823,120 +89202,89 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * ShardGtid keyspace. - * @member {string} keyspace - * @memberof binlogdata.ShardGtid - * @instance - */ - ShardGtid.prototype.keyspace = ""; - - /** - * ShardGtid shard. - * @member {string} shard - * @memberof binlogdata.ShardGtid - * @instance - */ - ShardGtid.prototype.shard = ""; - - /** - * ShardGtid gtid. - * @member {string} gtid - * @memberof binlogdata.ShardGtid + * CharsetConversion from_charset. + * @member {string} from_charset + * @memberof binlogdata.CharsetConversion * @instance */ - ShardGtid.prototype.gtid = ""; + CharsetConversion.prototype.from_charset = ""; /** - * ShardGtid table_p_ks. - * @member {Array.} table_p_ks - * @memberof binlogdata.ShardGtid + * CharsetConversion to_charset. + * @member {string} to_charset + * @memberof binlogdata.CharsetConversion * @instance */ - ShardGtid.prototype.table_p_ks = $util.emptyArray; + CharsetConversion.prototype.to_charset = ""; /** - * Creates a new ShardGtid instance using the specified properties. + * Creates a new CharsetConversion instance using the specified properties. * @function create - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.CharsetConversion * @static - * @param {binlogdata.IShardGtid=} [properties] Properties to set - * @returns {binlogdata.ShardGtid} ShardGtid instance + * @param {binlogdata.ICharsetConversion=} [properties] Properties to set + * @returns {binlogdata.CharsetConversion} CharsetConversion instance */ - ShardGtid.create = function create(properties) { - return new ShardGtid(properties); + CharsetConversion.create = function create(properties) { + return new CharsetConversion(properties); }; /** - * Encodes the specified ShardGtid message. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. + * Encodes the specified CharsetConversion message. Does not implicitly {@link binlogdata.CharsetConversion.verify|verify} messages. * @function encode - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.CharsetConversion * @static - * @param {binlogdata.IShardGtid} message ShardGtid message or plain object to encode + * @param {binlogdata.ICharsetConversion} message CharsetConversion message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardGtid.encode = function encode(message, writer) { + CharsetConversion.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.gtid != null && Object.hasOwnProperty.call(message, "gtid")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.gtid); - if (message.table_p_ks != null && message.table_p_ks.length) - for (let i = 0; i < message.table_p_ks.length; ++i) - $root.binlogdata.TableLastPK.encode(message.table_p_ks[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.from_charset != null && Object.hasOwnProperty.call(message, "from_charset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_charset); + if (message.to_charset != null && Object.hasOwnProperty.call(message, "to_charset")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_charset); return writer; }; /** - * Encodes the specified ShardGtid message, length delimited. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. + * Encodes the specified CharsetConversion message, length delimited. Does not implicitly {@link binlogdata.CharsetConversion.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.CharsetConversion * @static - * @param {binlogdata.IShardGtid} message ShardGtid message or plain object to encode + * @param {binlogdata.ICharsetConversion} message CharsetConversion message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardGtid.encodeDelimited = function encodeDelimited(message, writer) { + CharsetConversion.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardGtid message from the specified reader or buffer. + * Decodes a CharsetConversion message from the specified reader or buffer. * @function decode - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.CharsetConversion * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.ShardGtid} ShardGtid + * @returns {binlogdata.CharsetConversion} CharsetConversion * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardGtid.decode = function decode(reader, length) { + CharsetConversion.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.ShardGtid(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.CharsetConversion(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + message.from_charset = reader.string(); break; } case 2: { - message.shard = reader.string(); - break; - } - case 3: { - message.gtid = reader.string(); - break; - } - case 4: { - if (!(message.table_p_ks && message.table_p_ks.length)) - message.table_p_ks = []; - message.table_p_ks.push($root.binlogdata.TableLastPK.decode(reader, reader.uint32())); + message.to_charset = reader.string(); break; } default: @@ -89948,166 +89296,142 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a ShardGtid message from the specified reader or buffer, length delimited. + * Decodes a CharsetConversion message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.CharsetConversion * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.ShardGtid} ShardGtid + * @returns {binlogdata.CharsetConversion} CharsetConversion * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardGtid.decodeDelimited = function decodeDelimited(reader) { + CharsetConversion.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardGtid message. + * Verifies a CharsetConversion message. * @function verify - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.CharsetConversion * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardGtid.verify = function verify(message) { + CharsetConversion.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.gtid != null && message.hasOwnProperty("gtid")) - if (!$util.isString(message.gtid)) - return "gtid: string expected"; - if (message.table_p_ks != null && message.hasOwnProperty("table_p_ks")) { - if (!Array.isArray(message.table_p_ks)) - return "table_p_ks: array expected"; - for (let i = 0; i < message.table_p_ks.length; ++i) { - let error = $root.binlogdata.TableLastPK.verify(message.table_p_ks[i]); - if (error) - return "table_p_ks." + error; - } - } + if (message.from_charset != null && message.hasOwnProperty("from_charset")) + if (!$util.isString(message.from_charset)) + return "from_charset: string expected"; + if (message.to_charset != null && message.hasOwnProperty("to_charset")) + if (!$util.isString(message.to_charset)) + return "to_charset: string expected"; return null; }; /** - * Creates a ShardGtid message from a plain object. Also converts values to their respective internal types. + * Creates a CharsetConversion message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.CharsetConversion * @static * @param {Object.} object Plain object - * @returns {binlogdata.ShardGtid} ShardGtid + * @returns {binlogdata.CharsetConversion} CharsetConversion */ - ShardGtid.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.ShardGtid) + CharsetConversion.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.CharsetConversion) return object; - let message = new $root.binlogdata.ShardGtid(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.gtid != null) - message.gtid = String(object.gtid); - if (object.table_p_ks) { - if (!Array.isArray(object.table_p_ks)) - throw TypeError(".binlogdata.ShardGtid.table_p_ks: array expected"); - message.table_p_ks = []; - for (let i = 0; i < object.table_p_ks.length; ++i) { - if (typeof object.table_p_ks[i] !== "object") - throw TypeError(".binlogdata.ShardGtid.table_p_ks: object expected"); - message.table_p_ks[i] = $root.binlogdata.TableLastPK.fromObject(object.table_p_ks[i]); - } - } + let message = new $root.binlogdata.CharsetConversion(); + if (object.from_charset != null) + message.from_charset = String(object.from_charset); + if (object.to_charset != null) + message.to_charset = String(object.to_charset); return message; }; /** - * Creates a plain object from a ShardGtid message. Also converts values to other types if specified. + * Creates a plain object from a CharsetConversion message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.CharsetConversion * @static - * @param {binlogdata.ShardGtid} message ShardGtid + * @param {binlogdata.CharsetConversion} message CharsetConversion * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardGtid.toObject = function toObject(message, options) { + CharsetConversion.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.table_p_ks = []; if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.gtid = ""; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.gtid != null && message.hasOwnProperty("gtid")) - object.gtid = message.gtid; - if (message.table_p_ks && message.table_p_ks.length) { - object.table_p_ks = []; - for (let j = 0; j < message.table_p_ks.length; ++j) - object.table_p_ks[j] = $root.binlogdata.TableLastPK.toObject(message.table_p_ks[j], options); + object.from_charset = ""; + object.to_charset = ""; } + if (message.from_charset != null && message.hasOwnProperty("from_charset")) + object.from_charset = message.from_charset; + if (message.to_charset != null && message.hasOwnProperty("to_charset")) + object.to_charset = message.to_charset; return object; }; /** - * Converts this ShardGtid to JSON. + * Converts this CharsetConversion to JSON. * @function toJSON - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.CharsetConversion * @instance * @returns {Object.} JSON object */ - ShardGtid.prototype.toJSON = function toJSON() { + CharsetConversion.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardGtid + * Gets the default type url for CharsetConversion * @function getTypeUrl - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.CharsetConversion * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardGtid.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CharsetConversion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.ShardGtid"; + return typeUrlPrefix + "/binlogdata.CharsetConversion"; }; - return ShardGtid; + return CharsetConversion; })(); - binlogdata.VGtid = (function() { + binlogdata.Rule = (function() { /** - * Properties of a VGtid. + * Properties of a Rule. * @memberof binlogdata - * @interface IVGtid - * @property {Array.|null} [shard_gtids] VGtid shard_gtids + * @interface IRule + * @property {string|null} [match] Rule match + * @property {string|null} [filter] Rule filter + * @property {Object.|null} [convert_enum_to_text] Rule convert_enum_to_text + * @property {Object.|null} [convert_charset] Rule convert_charset + * @property {string|null} [source_unique_key_columns] Rule source_unique_key_columns + * @property {string|null} [target_unique_key_columns] Rule target_unique_key_columns + * @property {string|null} [source_unique_key_target_columns] Rule source_unique_key_target_columns + * @property {Object.|null} [convert_int_to_enum] Rule convert_int_to_enum + * @property {string|null} [force_unique_key] Rule force_unique_key */ /** - * Constructs a new VGtid. + * Constructs a new Rule. * @memberof binlogdata - * @classdesc Represents a VGtid. - * @implements IVGtid + * @classdesc Represents a Rule. + * @implements IRule * @constructor - * @param {binlogdata.IVGtid=} [properties] Properties to set + * @param {binlogdata.IRule=} [properties] Properties to set */ - function VGtid(properties) { - this.shard_gtids = []; + function Rule(properties) { + this.convert_enum_to_text = {}; + this.convert_charset = {}; + this.convert_int_to_enum = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90115,78 +89439,249 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * VGtid shard_gtids. - * @member {Array.} shard_gtids - * @memberof binlogdata.VGtid + * Rule match. + * @member {string} match + * @memberof binlogdata.Rule * @instance */ - VGtid.prototype.shard_gtids = $util.emptyArray; + Rule.prototype.match = ""; /** - * Creates a new VGtid instance using the specified properties. + * Rule filter. + * @member {string} filter + * @memberof binlogdata.Rule + * @instance + */ + Rule.prototype.filter = ""; + + /** + * Rule convert_enum_to_text. + * @member {Object.} convert_enum_to_text + * @memberof binlogdata.Rule + * @instance + */ + Rule.prototype.convert_enum_to_text = $util.emptyObject; + + /** + * Rule convert_charset. + * @member {Object.} convert_charset + * @memberof binlogdata.Rule + * @instance + */ + Rule.prototype.convert_charset = $util.emptyObject; + + /** + * Rule source_unique_key_columns. + * @member {string} source_unique_key_columns + * @memberof binlogdata.Rule + * @instance + */ + Rule.prototype.source_unique_key_columns = ""; + + /** + * Rule target_unique_key_columns. + * @member {string} target_unique_key_columns + * @memberof binlogdata.Rule + * @instance + */ + Rule.prototype.target_unique_key_columns = ""; + + /** + * Rule source_unique_key_target_columns. + * @member {string} source_unique_key_target_columns + * @memberof binlogdata.Rule + * @instance + */ + Rule.prototype.source_unique_key_target_columns = ""; + + /** + * Rule convert_int_to_enum. + * @member {Object.} convert_int_to_enum + * @memberof binlogdata.Rule + * @instance + */ + Rule.prototype.convert_int_to_enum = $util.emptyObject; + + /** + * Rule force_unique_key. + * @member {string} force_unique_key + * @memberof binlogdata.Rule + * @instance + */ + Rule.prototype.force_unique_key = ""; + + /** + * Creates a new Rule instance using the specified properties. * @function create - * @memberof binlogdata.VGtid + * @memberof binlogdata.Rule * @static - * @param {binlogdata.IVGtid=} [properties] Properties to set - * @returns {binlogdata.VGtid} VGtid instance + * @param {binlogdata.IRule=} [properties] Properties to set + * @returns {binlogdata.Rule} Rule instance */ - VGtid.create = function create(properties) { - return new VGtid(properties); + Rule.create = function create(properties) { + return new Rule(properties); }; /** - * Encodes the specified VGtid message. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. + * Encodes the specified Rule message. Does not implicitly {@link binlogdata.Rule.verify|verify} messages. * @function encode - * @memberof binlogdata.VGtid + * @memberof binlogdata.Rule * @static - * @param {binlogdata.IVGtid} message VGtid message or plain object to encode + * @param {binlogdata.IRule} message Rule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VGtid.encode = function encode(message, writer) { + Rule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shard_gtids != null && message.shard_gtids.length) - for (let i = 0; i < message.shard_gtids.length; ++i) - $root.binlogdata.ShardGtid.encode(message.shard_gtids[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.match != null && Object.hasOwnProperty.call(message, "match")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.match); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.convert_enum_to_text != null && Object.hasOwnProperty.call(message, "convert_enum_to_text")) + for (let keys = Object.keys(message.convert_enum_to_text), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.convert_enum_to_text[keys[i]]).ldelim(); + if (message.convert_charset != null && Object.hasOwnProperty.call(message, "convert_charset")) + for (let keys = Object.keys(message.convert_charset), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.binlogdata.CharsetConversion.encode(message.convert_charset[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.source_unique_key_columns != null && Object.hasOwnProperty.call(message, "source_unique_key_columns")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.source_unique_key_columns); + if (message.target_unique_key_columns != null && Object.hasOwnProperty.call(message, "target_unique_key_columns")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.target_unique_key_columns); + if (message.source_unique_key_target_columns != null && Object.hasOwnProperty.call(message, "source_unique_key_target_columns")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.source_unique_key_target_columns); + if (message.convert_int_to_enum != null && Object.hasOwnProperty.call(message, "convert_int_to_enum")) + for (let keys = Object.keys(message.convert_int_to_enum), i = 0; i < keys.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).bool(message.convert_int_to_enum[keys[i]]).ldelim(); + if (message.force_unique_key != null && Object.hasOwnProperty.call(message, "force_unique_key")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.force_unique_key); return writer; }; /** - * Encodes the specified VGtid message, length delimited. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. + * Encodes the specified Rule message, length delimited. Does not implicitly {@link binlogdata.Rule.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VGtid + * @memberof binlogdata.Rule * @static - * @param {binlogdata.IVGtid} message VGtid message or plain object to encode + * @param {binlogdata.IRule} message Rule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VGtid.encodeDelimited = function encodeDelimited(message, writer) { + Rule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VGtid message from the specified reader or buffer. + * Decodes a Rule message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VGtid + * @memberof binlogdata.Rule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.VGtid} VGtid + * @returns {binlogdata.Rule} Rule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VGtid.decode = function decode(reader, length) { + Rule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VGtid(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Rule(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.shard_gtids && message.shard_gtids.length)) - message.shard_gtids = []; - message.shard_gtids.push($root.binlogdata.ShardGtid.decode(reader, reader.uint32())); + message.match = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + if (message.convert_enum_to_text === $util.emptyObject) + message.convert_enum_to_text = {}; + 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.convert_enum_to_text[key] = value; + break; + } + case 4: { + if (message.convert_charset === $util.emptyObject) + message.convert_charset = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.binlogdata.CharsetConversion.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.convert_charset[key] = value; + break; + } + case 5: { + message.source_unique_key_columns = reader.string(); + break; + } + case 6: { + message.target_unique_key_columns = reader.string(); + break; + } + case 7: { + message.source_unique_key_target_columns = reader.string(); + break; + } + case 8: { + if (message.convert_int_to_enum === $util.emptyObject) + message.convert_int_to_enum = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = false; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.bool(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.convert_int_to_enum[key] = value; + break; + } + case 9: { + message.force_unique_key = reader.string(); break; } default: @@ -90198,140 +89693,238 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a VGtid message from the specified reader or buffer, length delimited. + * Decodes a Rule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.VGtid + * @memberof binlogdata.Rule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VGtid} VGtid + * @returns {binlogdata.Rule} Rule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VGtid.decodeDelimited = function decodeDelimited(reader) { + Rule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VGtid message. + * Verifies a Rule message. * @function verify - * @memberof binlogdata.VGtid + * @memberof binlogdata.Rule * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VGtid.verify = function verify(message) { + Rule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard_gtids != null && message.hasOwnProperty("shard_gtids")) { - if (!Array.isArray(message.shard_gtids)) - return "shard_gtids: array expected"; - for (let i = 0; i < message.shard_gtids.length; ++i) { - let error = $root.binlogdata.ShardGtid.verify(message.shard_gtids[i]); + if (message.match != null && message.hasOwnProperty("match")) + if (!$util.isString(message.match)) + return "match: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.convert_enum_to_text != null && message.hasOwnProperty("convert_enum_to_text")) { + if (!$util.isObject(message.convert_enum_to_text)) + return "convert_enum_to_text: object expected"; + let key = Object.keys(message.convert_enum_to_text); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.convert_enum_to_text[key[i]])) + return "convert_enum_to_text: string{k:string} expected"; + } + if (message.convert_charset != null && message.hasOwnProperty("convert_charset")) { + if (!$util.isObject(message.convert_charset)) + return "convert_charset: object expected"; + let key = Object.keys(message.convert_charset); + for (let i = 0; i < key.length; ++i) { + let error = $root.binlogdata.CharsetConversion.verify(message.convert_charset[key[i]]); if (error) - return "shard_gtids." + error; + return "convert_charset." + error; } } + if (message.source_unique_key_columns != null && message.hasOwnProperty("source_unique_key_columns")) + if (!$util.isString(message.source_unique_key_columns)) + return "source_unique_key_columns: string expected"; + if (message.target_unique_key_columns != null && message.hasOwnProperty("target_unique_key_columns")) + if (!$util.isString(message.target_unique_key_columns)) + return "target_unique_key_columns: string expected"; + if (message.source_unique_key_target_columns != null && message.hasOwnProperty("source_unique_key_target_columns")) + if (!$util.isString(message.source_unique_key_target_columns)) + return "source_unique_key_target_columns: string expected"; + if (message.convert_int_to_enum != null && message.hasOwnProperty("convert_int_to_enum")) { + if (!$util.isObject(message.convert_int_to_enum)) + return "convert_int_to_enum: object expected"; + let key = Object.keys(message.convert_int_to_enum); + for (let i = 0; i < key.length; ++i) + if (typeof message.convert_int_to_enum[key[i]] !== "boolean") + return "convert_int_to_enum: boolean{k:string} expected"; + } + if (message.force_unique_key != null && message.hasOwnProperty("force_unique_key")) + if (!$util.isString(message.force_unique_key)) + return "force_unique_key: string expected"; return null; }; /** - * Creates a VGtid message from a plain object. Also converts values to their respective internal types. + * Creates a Rule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.VGtid + * @memberof binlogdata.Rule * @static * @param {Object.} object Plain object - * @returns {binlogdata.VGtid} VGtid + * @returns {binlogdata.Rule} Rule */ - VGtid.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VGtid) + Rule.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.Rule) return object; - let message = new $root.binlogdata.VGtid(); - if (object.shard_gtids) { - if (!Array.isArray(object.shard_gtids)) - throw TypeError(".binlogdata.VGtid.shard_gtids: array expected"); - message.shard_gtids = []; - for (let i = 0; i < object.shard_gtids.length; ++i) { - if (typeof object.shard_gtids[i] !== "object") - throw TypeError(".binlogdata.VGtid.shard_gtids: object expected"); - message.shard_gtids[i] = $root.binlogdata.ShardGtid.fromObject(object.shard_gtids[i]); + let message = new $root.binlogdata.Rule(); + if (object.match != null) + message.match = String(object.match); + if (object.filter != null) + message.filter = String(object.filter); + if (object.convert_enum_to_text) { + if (typeof object.convert_enum_to_text !== "object") + throw TypeError(".binlogdata.Rule.convert_enum_to_text: object expected"); + message.convert_enum_to_text = {}; + for (let keys = Object.keys(object.convert_enum_to_text), i = 0; i < keys.length; ++i) + message.convert_enum_to_text[keys[i]] = String(object.convert_enum_to_text[keys[i]]); + } + if (object.convert_charset) { + if (typeof object.convert_charset !== "object") + throw TypeError(".binlogdata.Rule.convert_charset: object expected"); + message.convert_charset = {}; + for (let keys = Object.keys(object.convert_charset), i = 0; i < keys.length; ++i) { + if (typeof object.convert_charset[keys[i]] !== "object") + throw TypeError(".binlogdata.Rule.convert_charset: object expected"); + message.convert_charset[keys[i]] = $root.binlogdata.CharsetConversion.fromObject(object.convert_charset[keys[i]]); } } + if (object.source_unique_key_columns != null) + message.source_unique_key_columns = String(object.source_unique_key_columns); + if (object.target_unique_key_columns != null) + message.target_unique_key_columns = String(object.target_unique_key_columns); + if (object.source_unique_key_target_columns != null) + message.source_unique_key_target_columns = String(object.source_unique_key_target_columns); + if (object.convert_int_to_enum) { + if (typeof object.convert_int_to_enum !== "object") + throw TypeError(".binlogdata.Rule.convert_int_to_enum: object expected"); + message.convert_int_to_enum = {}; + for (let keys = Object.keys(object.convert_int_to_enum), i = 0; i < keys.length; ++i) + message.convert_int_to_enum[keys[i]] = Boolean(object.convert_int_to_enum[keys[i]]); + } + if (object.force_unique_key != null) + message.force_unique_key = String(object.force_unique_key); return message; }; /** - * Creates a plain object from a VGtid message. Also converts values to other types if specified. + * Creates a plain object from a Rule message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.VGtid + * @memberof binlogdata.Rule * @static - * @param {binlogdata.VGtid} message VGtid + * @param {binlogdata.Rule} message Rule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VGtid.toObject = function toObject(message, options) { + Rule.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.shard_gtids = []; - if (message.shard_gtids && message.shard_gtids.length) { - object.shard_gtids = []; - for (let j = 0; j < message.shard_gtids.length; ++j) - object.shard_gtids[j] = $root.binlogdata.ShardGtid.toObject(message.shard_gtids[j], options); + if (options.objects || options.defaults) { + object.convert_enum_to_text = {}; + object.convert_charset = {}; + object.convert_int_to_enum = {}; + } + if (options.defaults) { + object.match = ""; + object.filter = ""; + object.source_unique_key_columns = ""; + object.target_unique_key_columns = ""; + object.source_unique_key_target_columns = ""; + object.force_unique_key = ""; + } + if (message.match != null && message.hasOwnProperty("match")) + object.match = message.match; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + let keys2; + if (message.convert_enum_to_text && (keys2 = Object.keys(message.convert_enum_to_text)).length) { + object.convert_enum_to_text = {}; + for (let j = 0; j < keys2.length; ++j) + object.convert_enum_to_text[keys2[j]] = message.convert_enum_to_text[keys2[j]]; + } + if (message.convert_charset && (keys2 = Object.keys(message.convert_charset)).length) { + object.convert_charset = {}; + for (let j = 0; j < keys2.length; ++j) + object.convert_charset[keys2[j]] = $root.binlogdata.CharsetConversion.toObject(message.convert_charset[keys2[j]], options); + } + if (message.source_unique_key_columns != null && message.hasOwnProperty("source_unique_key_columns")) + object.source_unique_key_columns = message.source_unique_key_columns; + if (message.target_unique_key_columns != null && message.hasOwnProperty("target_unique_key_columns")) + object.target_unique_key_columns = message.target_unique_key_columns; + if (message.source_unique_key_target_columns != null && message.hasOwnProperty("source_unique_key_target_columns")) + object.source_unique_key_target_columns = message.source_unique_key_target_columns; + if (message.convert_int_to_enum && (keys2 = Object.keys(message.convert_int_to_enum)).length) { + object.convert_int_to_enum = {}; + for (let j = 0; j < keys2.length; ++j) + object.convert_int_to_enum[keys2[j]] = message.convert_int_to_enum[keys2[j]]; } + if (message.force_unique_key != null && message.hasOwnProperty("force_unique_key")) + object.force_unique_key = message.force_unique_key; return object; }; /** - * Converts this VGtid to JSON. + * Converts this Rule to JSON. * @function toJSON - * @memberof binlogdata.VGtid + * @memberof binlogdata.Rule * @instance * @returns {Object.} JSON object */ - VGtid.prototype.toJSON = function toJSON() { + Rule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VGtid + * Gets the default type url for Rule * @function getTypeUrl - * @memberof binlogdata.VGtid + * @memberof binlogdata.Rule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VGtid.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Rule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.VGtid"; + return typeUrlPrefix + "/binlogdata.Rule"; }; - return VGtid; + return Rule; })(); - binlogdata.KeyspaceShard = (function() { + binlogdata.Filter = (function() { /** - * Properties of a KeyspaceShard. + * Properties of a Filter. * @memberof binlogdata - * @interface IKeyspaceShard - * @property {string|null} [keyspace] KeyspaceShard keyspace - * @property {string|null} [shard] KeyspaceShard shard + * @interface IFilter + * @property {Array.|null} [rules] Filter rules + * @property {binlogdata.Filter.FieldEventMode|null} [field_event_mode] Filter field_event_mode + * @property {number|Long|null} [workflow_type] Filter workflow_type + * @property {string|null} [workflow_name] Filter workflow_name */ /** - * Constructs a new KeyspaceShard. + * Constructs a new Filter. * @memberof binlogdata - * @classdesc Represents a KeyspaceShard. - * @implements IKeyspaceShard + * @classdesc Represents a Filter. + * @implements IFilter * @constructor - * @param {binlogdata.IKeyspaceShard=} [properties] Properties to set + * @param {binlogdata.IFilter=} [properties] Properties to set */ - function KeyspaceShard(properties) { + function Filter(properties) { + this.rules = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90339,89 +89932,120 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * KeyspaceShard keyspace. - * @member {string} keyspace - * @memberof binlogdata.KeyspaceShard + * Filter rules. + * @member {Array.} rules + * @memberof binlogdata.Filter * @instance */ - KeyspaceShard.prototype.keyspace = ""; + Filter.prototype.rules = $util.emptyArray; /** - * KeyspaceShard shard. - * @member {string} shard - * @memberof binlogdata.KeyspaceShard + * Filter field_event_mode. + * @member {binlogdata.Filter.FieldEventMode} field_event_mode + * @memberof binlogdata.Filter * @instance */ - KeyspaceShard.prototype.shard = ""; + Filter.prototype.field_event_mode = 0; /** - * Creates a new KeyspaceShard instance using the specified properties. + * Filter workflow_type. + * @member {number|Long} workflow_type + * @memberof binlogdata.Filter + * @instance + */ + Filter.prototype.workflow_type = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Filter workflow_name. + * @member {string} workflow_name + * @memberof binlogdata.Filter + * @instance + */ + Filter.prototype.workflow_name = ""; + + /** + * Creates a new Filter instance using the specified properties. * @function create - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.Filter * @static - * @param {binlogdata.IKeyspaceShard=} [properties] Properties to set - * @returns {binlogdata.KeyspaceShard} KeyspaceShard instance + * @param {binlogdata.IFilter=} [properties] Properties to set + * @returns {binlogdata.Filter} Filter instance */ - KeyspaceShard.create = function create(properties) { - return new KeyspaceShard(properties); + Filter.create = function create(properties) { + return new Filter(properties); }; /** - * Encodes the specified KeyspaceShard message. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. + * Encodes the specified Filter message. Does not implicitly {@link binlogdata.Filter.verify|verify} messages. * @function encode - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.Filter * @static - * @param {binlogdata.IKeyspaceShard} message KeyspaceShard message or plain object to encode + * @param {binlogdata.IFilter} message Filter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KeyspaceShard.encode = function encode(message, writer) { + Filter.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.rules != null && message.rules.length) + for (let i = 0; i < message.rules.length; ++i) + $root.binlogdata.Rule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.field_event_mode != null && Object.hasOwnProperty.call(message, "field_event_mode")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.field_event_mode); + if (message.workflow_type != null && Object.hasOwnProperty.call(message, "workflow_type")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.workflow_type); + if (message.workflow_name != null && Object.hasOwnProperty.call(message, "workflow_name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.workflow_name); return writer; }; /** - * Encodes the specified KeyspaceShard message, length delimited. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. + * Encodes the specified Filter message, length delimited. Does not implicitly {@link binlogdata.Filter.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.Filter * @static - * @param {binlogdata.IKeyspaceShard} message KeyspaceShard message or plain object to encode + * @param {binlogdata.IFilter} message Filter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KeyspaceShard.encodeDelimited = function encodeDelimited(message, writer) { + Filter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a KeyspaceShard message from the specified reader or buffer. + * Decodes a Filter message from the specified reader or buffer. * @function decode - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.Filter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.KeyspaceShard} KeyspaceShard + * @returns {binlogdata.Filter} Filter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KeyspaceShard.decode = function decode(reader, length) { + Filter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.KeyspaceShard(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Filter(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.binlogdata.Rule.decode(reader, reader.uint32())); break; } case 2: { - message.shard = reader.string(); + message.field_event_mode = reader.int32(); + break; + } + case 3: { + message.workflow_type = reader.int64(); + break; + } + case 4: { + message.workflow_name = reader.string(); break; } default: @@ -90433,155 +90057,304 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a KeyspaceShard message from the specified reader or buffer, length delimited. + * Decodes a Filter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.Filter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.KeyspaceShard} KeyspaceShard + * @returns {binlogdata.Filter} Filter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KeyspaceShard.decodeDelimited = function decodeDelimited(reader) { + Filter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a KeyspaceShard message. + * Verifies a Filter message. * @function verify - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.Filter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KeyspaceShard.verify = function verify(message) { + Filter.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.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (let i = 0; i < message.rules.length; ++i) { + let error = $root.binlogdata.Rule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + if (message.field_event_mode != null && message.hasOwnProperty("field_event_mode")) + switch (message.field_event_mode) { + default: + return "field_event_mode: enum value expected"; + case 0: + case 1: + break; + } + if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) + if (!$util.isInteger(message.workflow_type) && !(message.workflow_type && $util.isInteger(message.workflow_type.low) && $util.isInteger(message.workflow_type.high))) + return "workflow_type: integer|Long expected"; + if (message.workflow_name != null && message.hasOwnProperty("workflow_name")) + if (!$util.isString(message.workflow_name)) + return "workflow_name: string expected"; return null; }; /** - * Creates a KeyspaceShard message from a plain object. Also converts values to their respective internal types. + * Creates a Filter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.Filter * @static * @param {Object.} object Plain object - * @returns {binlogdata.KeyspaceShard} KeyspaceShard + * @returns {binlogdata.Filter} Filter */ - KeyspaceShard.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.KeyspaceShard) + Filter.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.Filter) return object; - let message = new $root.binlogdata.KeyspaceShard(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); + let message = new $root.binlogdata.Filter(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".binlogdata.Filter.rules: array expected"); + message.rules = []; + for (let i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".binlogdata.Filter.rules: object expected"); + message.rules[i] = $root.binlogdata.Rule.fromObject(object.rules[i]); + } + } + switch (object.field_event_mode) { + default: + if (typeof object.field_event_mode === "number") { + message.field_event_mode = object.field_event_mode; + break; + } + break; + case "ERR_ON_MISMATCH": + case 0: + message.field_event_mode = 0; + break; + case "BEST_EFFORT": + case 1: + message.field_event_mode = 1; + break; + } + if (object.workflow_type != null) + if ($util.Long) + (message.workflow_type = $util.Long.fromValue(object.workflow_type)).unsigned = false; + else if (typeof object.workflow_type === "string") + message.workflow_type = parseInt(object.workflow_type, 10); + else if (typeof object.workflow_type === "number") + message.workflow_type = object.workflow_type; + else if (typeof object.workflow_type === "object") + message.workflow_type = new $util.LongBits(object.workflow_type.low >>> 0, object.workflow_type.high >>> 0).toNumber(); + if (object.workflow_name != null) + message.workflow_name = String(object.workflow_name); return message; }; /** - * Creates a plain object from a KeyspaceShard message. Also converts values to other types if specified. + * Creates a plain object from a Filter message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.Filter * @static - * @param {binlogdata.KeyspaceShard} message KeyspaceShard + * @param {binlogdata.Filter} message Filter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KeyspaceShard.toObject = function toObject(message, options) { + Filter.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.rules = []; if (options.defaults) { - object.keyspace = ""; - object.shard = ""; + object.field_event_mode = options.enums === String ? "ERR_ON_MISMATCH" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.workflow_type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.workflow_type = options.longs === String ? "0" : 0; + object.workflow_name = ""; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; + if (message.rules && message.rules.length) { + object.rules = []; + for (let j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.binlogdata.Rule.toObject(message.rules[j], options); + } + if (message.field_event_mode != null && message.hasOwnProperty("field_event_mode")) + object.field_event_mode = options.enums === String ? $root.binlogdata.Filter.FieldEventMode[message.field_event_mode] === undefined ? message.field_event_mode : $root.binlogdata.Filter.FieldEventMode[message.field_event_mode] : message.field_event_mode; + if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) + if (typeof message.workflow_type === "number") + object.workflow_type = options.longs === String ? String(message.workflow_type) : message.workflow_type; + else + object.workflow_type = options.longs === String ? $util.Long.prototype.toString.call(message.workflow_type) : options.longs === Number ? new $util.LongBits(message.workflow_type.low >>> 0, message.workflow_type.high >>> 0).toNumber() : message.workflow_type; + if (message.workflow_name != null && message.hasOwnProperty("workflow_name")) + object.workflow_name = message.workflow_name; return object; }; /** - * Converts this KeyspaceShard to JSON. + * Converts this Filter to JSON. * @function toJSON - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.Filter * @instance * @returns {Object.} JSON object */ - KeyspaceShard.prototype.toJSON = function toJSON() { + Filter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for KeyspaceShard + * Gets the default type url for Filter * @function getTypeUrl - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.Filter * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - KeyspaceShard.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Filter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.KeyspaceShard"; + return typeUrlPrefix + "/binlogdata.Filter"; }; - return KeyspaceShard; + /** + * FieldEventMode enum. + * @name binlogdata.Filter.FieldEventMode + * @enum {number} + * @property {number} ERR_ON_MISMATCH=0 ERR_ON_MISMATCH value + * @property {number} BEST_EFFORT=1 BEST_EFFORT value + */ + Filter.FieldEventMode = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ERR_ON_MISMATCH"] = 0; + values[valuesById[1] = "BEST_EFFORT"] = 1; + return values; + })(); + + return Filter; })(); /** - * MigrationType enum. - * @name binlogdata.MigrationType + * OnDDLAction enum. + * @name binlogdata.OnDDLAction * @enum {number} - * @property {number} TABLES=0 TABLES value - * @property {number} SHARDS=1 SHARDS value + * @property {number} IGNORE=0 IGNORE value + * @property {number} STOP=1 STOP value + * @property {number} EXEC=2 EXEC value + * @property {number} EXEC_IGNORE=3 EXEC_IGNORE value */ - binlogdata.MigrationType = (function() { + binlogdata.OnDDLAction = (function() { const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TABLES"] = 0; - values[valuesById[1] = "SHARDS"] = 1; + values[valuesById[0] = "IGNORE"] = 0; + values[valuesById[1] = "STOP"] = 1; + values[valuesById[2] = "EXEC"] = 2; + values[valuesById[3] = "EXEC_IGNORE"] = 3; return values; })(); - binlogdata.Journal = (function() { + /** + * VReplicationWorkflowType enum. + * @name binlogdata.VReplicationWorkflowType + * @enum {number} + * @property {number} Materialize=0 Materialize value + * @property {number} MoveTables=1 MoveTables value + * @property {number} CreateLookupIndex=2 CreateLookupIndex value + * @property {number} Migrate=3 Migrate value + * @property {number} Reshard=4 Reshard value + * @property {number} OnlineDDL=5 OnlineDDL value + */ + binlogdata.VReplicationWorkflowType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "Materialize"] = 0; + values[valuesById[1] = "MoveTables"] = 1; + values[valuesById[2] = "CreateLookupIndex"] = 2; + values[valuesById[3] = "Migrate"] = 3; + values[valuesById[4] = "Reshard"] = 4; + values[valuesById[5] = "OnlineDDL"] = 5; + return values; + })(); + + /** + * VReplicationWorkflowSubType enum. + * @name binlogdata.VReplicationWorkflowSubType + * @enum {number} + * @property {number} None=0 None value + * @property {number} Partial=1 Partial value + * @property {number} AtomicCopy=2 AtomicCopy value + */ + binlogdata.VReplicationWorkflowSubType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "None"] = 0; + values[valuesById[1] = "Partial"] = 1; + values[valuesById[2] = "AtomicCopy"] = 2; + return values; + })(); + + /** + * VReplicationWorkflowState enum. + * @name binlogdata.VReplicationWorkflowState + * @enum {number} + * @property {number} Unknown=0 Unknown value + * @property {number} Init=1 Init value + * @property {number} Stopped=2 Stopped value + * @property {number} Copying=3 Copying value + * @property {number} Running=4 Running value + * @property {number} Error=5 Error value + * @property {number} Lagging=6 Lagging value + */ + binlogdata.VReplicationWorkflowState = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "Unknown"] = 0; + values[valuesById[1] = "Init"] = 1; + values[valuesById[2] = "Stopped"] = 2; + values[valuesById[3] = "Copying"] = 3; + values[valuesById[4] = "Running"] = 4; + values[valuesById[5] = "Error"] = 5; + values[valuesById[6] = "Lagging"] = 6; + return values; + })(); + + binlogdata.BinlogSource = (function() { /** - * Properties of a Journal. + * Properties of a BinlogSource. * @memberof binlogdata - * @interface IJournal - * @property {number|Long|null} [id] Journal id - * @property {binlogdata.MigrationType|null} [migration_type] Journal migration_type - * @property {Array.|null} [tables] Journal tables - * @property {string|null} [local_position] Journal local_position - * @property {Array.|null} [shard_gtids] Journal shard_gtids - * @property {Array.|null} [participants] Journal participants - * @property {Array.|null} [source_workflows] Journal source_workflows + * @interface IBinlogSource + * @property {string|null} [keyspace] BinlogSource keyspace + * @property {string|null} [shard] BinlogSource shard + * @property {topodata.TabletType|null} [tablet_type] BinlogSource tablet_type + * @property {topodata.IKeyRange|null} [key_range] BinlogSource key_range + * @property {Array.|null} [tables] BinlogSource tables + * @property {binlogdata.IFilter|null} [filter] BinlogSource filter + * @property {binlogdata.OnDDLAction|null} [on_ddl] BinlogSource on_ddl + * @property {string|null} [external_mysql] BinlogSource external_mysql + * @property {boolean|null} [stop_after_copy] BinlogSource stop_after_copy + * @property {string|null} [external_cluster] BinlogSource external_cluster + * @property {string|null} [source_time_zone] BinlogSource source_time_zone + * @property {string|null} [target_time_zone] BinlogSource target_time_zone */ /** - * Constructs a new Journal. + * Constructs a new BinlogSource. * @memberof binlogdata - * @classdesc Represents a Journal. - * @implements IJournal + * @classdesc Represents a BinlogSource. + * @implements IBinlogSource * @constructor - * @param {binlogdata.IJournal=} [properties] Properties to set + * @param {binlogdata.IBinlogSource=} [properties] Properties to set */ - function Journal(properties) { + function BinlogSource(properties) { this.tables = []; - this.shard_gtids = []; - this.participants = []; - this.source_workflows = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90589,171 +90362,232 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * Journal id. - * @member {number|Long} id - * @memberof binlogdata.Journal + * BinlogSource keyspace. + * @member {string} keyspace + * @memberof binlogdata.BinlogSource * @instance */ - Journal.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BinlogSource.prototype.keyspace = ""; /** - * Journal migration_type. - * @member {binlogdata.MigrationType} migration_type - * @memberof binlogdata.Journal + * BinlogSource shard. + * @member {string} shard + * @memberof binlogdata.BinlogSource * @instance */ - Journal.prototype.migration_type = 0; + BinlogSource.prototype.shard = ""; /** - * Journal tables. + * BinlogSource tablet_type. + * @member {topodata.TabletType} tablet_type + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.tablet_type = 0; + + /** + * BinlogSource key_range. + * @member {topodata.IKeyRange|null|undefined} key_range + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.key_range = null; + + /** + * BinlogSource tables. * @member {Array.} tables - * @memberof binlogdata.Journal + * @memberof binlogdata.BinlogSource * @instance */ - Journal.prototype.tables = $util.emptyArray; + BinlogSource.prototype.tables = $util.emptyArray; /** - * Journal local_position. - * @member {string} local_position - * @memberof binlogdata.Journal + * BinlogSource filter. + * @member {binlogdata.IFilter|null|undefined} filter + * @memberof binlogdata.BinlogSource * @instance */ - Journal.prototype.local_position = ""; + BinlogSource.prototype.filter = null; /** - * Journal shard_gtids. - * @member {Array.} shard_gtids - * @memberof binlogdata.Journal + * BinlogSource on_ddl. + * @member {binlogdata.OnDDLAction} on_ddl + * @memberof binlogdata.BinlogSource * @instance */ - Journal.prototype.shard_gtids = $util.emptyArray; + BinlogSource.prototype.on_ddl = 0; /** - * Journal participants. - * @member {Array.} participants - * @memberof binlogdata.Journal + * BinlogSource external_mysql. + * @member {string} external_mysql + * @memberof binlogdata.BinlogSource * @instance */ - Journal.prototype.participants = $util.emptyArray; + BinlogSource.prototype.external_mysql = ""; /** - * Journal source_workflows. - * @member {Array.} source_workflows - * @memberof binlogdata.Journal + * BinlogSource stop_after_copy. + * @member {boolean} stop_after_copy + * @memberof binlogdata.BinlogSource * @instance */ - Journal.prototype.source_workflows = $util.emptyArray; + BinlogSource.prototype.stop_after_copy = false; /** - * Creates a new Journal instance using the specified properties. + * BinlogSource external_cluster. + * @member {string} external_cluster + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.external_cluster = ""; + + /** + * BinlogSource source_time_zone. + * @member {string} source_time_zone + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.source_time_zone = ""; + + /** + * BinlogSource target_time_zone. + * @member {string} target_time_zone + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.target_time_zone = ""; + + /** + * Creates a new BinlogSource instance using the specified properties. * @function create - * @memberof binlogdata.Journal + * @memberof binlogdata.BinlogSource * @static - * @param {binlogdata.IJournal=} [properties] Properties to set - * @returns {binlogdata.Journal} Journal instance + * @param {binlogdata.IBinlogSource=} [properties] Properties to set + * @returns {binlogdata.BinlogSource} BinlogSource instance */ - Journal.create = function create(properties) { - return new Journal(properties); + BinlogSource.create = function create(properties) { + return new BinlogSource(properties); }; /** - * Encodes the specified Journal message. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. + * Encodes the specified BinlogSource message. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. * @function encode - * @memberof binlogdata.Journal + * @memberof binlogdata.BinlogSource * @static - * @param {binlogdata.IJournal} message Journal message or plain object to encode + * @param {binlogdata.IBinlogSource} message BinlogSource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Journal.encode = function encode(message, writer) { + BinlogSource.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); - if (message.migration_type != null && Object.hasOwnProperty.call(message, "migration_type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.migration_type); + 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.key_range != null && Object.hasOwnProperty.call(message, "key_range")) + $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.tables != null && message.tables.length) for (let i = 0; i < message.tables.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tables[i]); - if (message.local_position != null && Object.hasOwnProperty.call(message, "local_position")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.local_position); - if (message.shard_gtids != null && message.shard_gtids.length) - for (let i = 0; i < message.shard_gtids.length; ++i) - $root.binlogdata.ShardGtid.encode(message.shard_gtids[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.participants != null && message.participants.length) - for (let i = 0; i < message.participants.length; ++i) - $root.binlogdata.KeyspaceShard.encode(message.participants[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.source_workflows != null && message.source_workflows.length) - for (let i = 0; i < message.source_workflows.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.source_workflows[i]); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.tables[i]); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + $root.binlogdata.Filter.encode(message.filter, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.on_ddl != null && Object.hasOwnProperty.call(message, "on_ddl")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.on_ddl); + if (message.external_mysql != null && Object.hasOwnProperty.call(message, "external_mysql")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.external_mysql); + if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.stop_after_copy); + if (message.external_cluster != null && Object.hasOwnProperty.call(message, "external_cluster")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.external_cluster); + if (message.source_time_zone != null && Object.hasOwnProperty.call(message, "source_time_zone")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.source_time_zone); + if (message.target_time_zone != null && Object.hasOwnProperty.call(message, "target_time_zone")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.target_time_zone); return writer; }; /** - * Encodes the specified Journal message, length delimited. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. + * Encodes the specified BinlogSource message, length delimited. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.Journal + * @memberof binlogdata.BinlogSource * @static - * @param {binlogdata.IJournal} message Journal message or plain object to encode + * @param {binlogdata.IBinlogSource} message BinlogSource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Journal.encodeDelimited = function encodeDelimited(message, writer) { + BinlogSource.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Journal message from the specified reader or buffer. + * Decodes a BinlogSource message from the specified reader or buffer. * @function decode - * @memberof binlogdata.Journal + * @memberof binlogdata.BinlogSource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.Journal} Journal + * @returns {binlogdata.BinlogSource} BinlogSource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Journal.decode = function decode(reader, length) { + BinlogSource.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Journal(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogSource(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.int64(); + message.keyspace = reader.string(); break; } case 2: { - message.migration_type = reader.int32(); + message.shard = reader.string(); break; } case 3: { - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.push(reader.string()); + message.tablet_type = reader.int32(); break; } case 4: { - message.local_position = reader.string(); + message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); break; } case 5: { - if (!(message.shard_gtids && message.shard_gtids.length)) - message.shard_gtids = []; - message.shard_gtids.push($root.binlogdata.ShardGtid.decode(reader, reader.uint32())); + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); break; } case 6: { - if (!(message.participants && message.participants.length)) - message.participants = []; - message.participants.push($root.binlogdata.KeyspaceShard.decode(reader, reader.uint32())); + message.filter = $root.binlogdata.Filter.decode(reader, reader.uint32()); break; } case 7: { - if (!(message.source_workflows && message.source_workflows.length)) - message.source_workflows = []; - message.source_workflows.push(reader.string()); + message.on_ddl = reader.int32(); + break; + } + case 8: { + message.external_mysql = reader.string(); + break; + } + case 9: { + message.stop_after_copy = reader.bool(); + break; + } + case 10: { + message.external_cluster = reader.string(); + break; + } + case 11: { + message.source_time_zone = reader.string(); + break; + } + case 12: { + message.target_time_zone = reader.string(); break; } default: @@ -90765,43 +90599,60 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a Journal message from the specified reader or buffer, length delimited. + * Decodes a BinlogSource message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.Journal + * @memberof binlogdata.BinlogSource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.Journal} Journal + * @returns {binlogdata.BinlogSource} BinlogSource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Journal.decodeDelimited = function decodeDelimited(reader) { + BinlogSource.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Journal message. + * Verifies a BinlogSource message. * @function verify - * @memberof binlogdata.Journal + * @memberof binlogdata.BinlogSource * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Journal.verify = function verify(message) { + BinlogSource.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) - return "id: integer|Long expected"; - if (message.migration_type != null && message.hasOwnProperty("migration_type")) - switch (message.migration_type) { + 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 "migration_type: enum value expected"; + 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.key_range != null && message.hasOwnProperty("key_range")) { + let error = $root.topodata.KeyRange.verify(message.key_range); + if (error) + return "key_range." + error; + } if (message.tables != null && message.hasOwnProperty("tables")) { if (!Array.isArray(message.tables)) return "tables: array expected"; @@ -90809,234 +90660,321 @@ export const binlogdata = $root.binlogdata = (() => { if (!$util.isString(message.tables[i])) return "tables: string[] expected"; } - if (message.local_position != null && message.hasOwnProperty("local_position")) - if (!$util.isString(message.local_position)) - return "local_position: string expected"; - if (message.shard_gtids != null && message.hasOwnProperty("shard_gtids")) { - if (!Array.isArray(message.shard_gtids)) - return "shard_gtids: array expected"; - for (let i = 0; i < message.shard_gtids.length; ++i) { - let error = $root.binlogdata.ShardGtid.verify(message.shard_gtids[i]); - if (error) - return "shard_gtids." + error; - } + if (message.filter != null && message.hasOwnProperty("filter")) { + let error = $root.binlogdata.Filter.verify(message.filter); + if (error) + return "filter." + error; } - if (message.participants != null && message.hasOwnProperty("participants")) { - if (!Array.isArray(message.participants)) - return "participants: array expected"; - for (let i = 0; i < message.participants.length; ++i) { - let error = $root.binlogdata.KeyspaceShard.verify(message.participants[i]); - if (error) - return "participants." + error; + if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) + switch (message.on_ddl) { + default: + return "on_ddl: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; } - } - if (message.source_workflows != null && message.hasOwnProperty("source_workflows")) { - if (!Array.isArray(message.source_workflows)) - return "source_workflows: array expected"; - for (let i = 0; i < message.source_workflows.length; ++i) - if (!$util.isString(message.source_workflows[i])) - return "source_workflows: string[] expected"; - } + if (message.external_mysql != null && message.hasOwnProperty("external_mysql")) + if (!$util.isString(message.external_mysql)) + return "external_mysql: 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.external_cluster != null && message.hasOwnProperty("external_cluster")) + if (!$util.isString(message.external_cluster)) + return "external_cluster: string expected"; + 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"; return null; }; /** - * Creates a Journal message from a plain object. Also converts values to their respective internal types. + * Creates a BinlogSource message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.Journal + * @memberof binlogdata.BinlogSource * @static * @param {Object.} object Plain object - * @returns {binlogdata.Journal} Journal + * @returns {binlogdata.BinlogSource} BinlogSource */ - Journal.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.Journal) + BinlogSource.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.BinlogSource) return object; - let message = new $root.binlogdata.Journal(); - if (object.id != null) - if ($util.Long) - (message.id = $util.Long.fromValue(object.id)).unsigned = false; - else if (typeof object.id === "string") - message.id = parseInt(object.id, 10); - else if (typeof object.id === "number") - message.id = object.id; - else if (typeof object.id === "object") - message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); - switch (object.migration_type) { + let message = new $root.binlogdata.BinlogSource(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + switch (object.tablet_type) { default: - if (typeof object.migration_type === "number") { - message.migration_type = object.migration_type; + if (typeof object.tablet_type === "number") { + message.tablet_type = object.tablet_type; break; } break; - case "TABLES": + case "UNKNOWN": case 0: - message.migration_type = 0; + message.tablet_type = 0; break; - case "SHARDS": + case "PRIMARY": case 1: - message.migration_type = 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.key_range != null) { + if (typeof object.key_range !== "object") + throw TypeError(".binlogdata.BinlogSource.key_range: object expected"); + message.key_range = $root.topodata.KeyRange.fromObject(object.key_range); + } if (object.tables) { if (!Array.isArray(object.tables)) - throw TypeError(".binlogdata.Journal.tables: array expected"); + throw TypeError(".binlogdata.BinlogSource.tables: array expected"); message.tables = []; for (let i = 0; i < object.tables.length; ++i) message.tables[i] = String(object.tables[i]); } - if (object.local_position != null) - message.local_position = String(object.local_position); - if (object.shard_gtids) { - if (!Array.isArray(object.shard_gtids)) - throw TypeError(".binlogdata.Journal.shard_gtids: array expected"); - message.shard_gtids = []; - for (let i = 0; i < object.shard_gtids.length; ++i) { - if (typeof object.shard_gtids[i] !== "object") - throw TypeError(".binlogdata.Journal.shard_gtids: object expected"); - message.shard_gtids[i] = $root.binlogdata.ShardGtid.fromObject(object.shard_gtids[i]); - } + if (object.filter != null) { + if (typeof object.filter !== "object") + throw TypeError(".binlogdata.BinlogSource.filter: object expected"); + message.filter = $root.binlogdata.Filter.fromObject(object.filter); } - if (object.participants) { - if (!Array.isArray(object.participants)) - throw TypeError(".binlogdata.Journal.participants: array expected"); - message.participants = []; - for (let i = 0; i < object.participants.length; ++i) { - if (typeof object.participants[i] !== "object") - throw TypeError(".binlogdata.Journal.participants: object expected"); - message.participants[i] = $root.binlogdata.KeyspaceShard.fromObject(object.participants[i]); + switch (object.on_ddl) { + default: + if (typeof object.on_ddl === "number") { + message.on_ddl = object.on_ddl; + break; } + break; + case "IGNORE": + case 0: + message.on_ddl = 0; + break; + case "STOP": + case 1: + message.on_ddl = 1; + break; + case "EXEC": + case 2: + message.on_ddl = 2; + break; + case "EXEC_IGNORE": + case 3: + message.on_ddl = 3; + break; } - if (object.source_workflows) { - if (!Array.isArray(object.source_workflows)) - throw TypeError(".binlogdata.Journal.source_workflows: array expected"); - message.source_workflows = []; - for (let i = 0; i < object.source_workflows.length; ++i) - message.source_workflows[i] = String(object.source_workflows[i]); - } + if (object.external_mysql != null) + message.external_mysql = String(object.external_mysql); + if (object.stop_after_copy != null) + message.stop_after_copy = Boolean(object.stop_after_copy); + if (object.external_cluster != null) + message.external_cluster = String(object.external_cluster); + 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); return message; }; /** - * Creates a plain object from a Journal message. Also converts values to other types if specified. + * Creates a plain object from a BinlogSource message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.Journal + * @memberof binlogdata.BinlogSource * @static - * @param {binlogdata.Journal} message Journal + * @param {binlogdata.BinlogSource} message BinlogSource * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Journal.toObject = function toObject(message, options) { + BinlogSource.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { + if (options.arrays || options.defaults) object.tables = []; - object.shard_gtids = []; - object.participants = []; - object.source_workflows = []; - } if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id = options.longs === String ? "0" : 0; - object.migration_type = options.enums === String ? "TABLES" : 0; - object.local_position = ""; + object.keyspace = ""; + object.shard = ""; + object.tablet_type = options.enums === String ? "UNKNOWN" : 0; + object.key_range = null; + object.filter = null; + object.on_ddl = options.enums === String ? "IGNORE" : 0; + object.external_mysql = ""; + object.stop_after_copy = false; + object.external_cluster = ""; + object.source_time_zone = ""; + object.target_time_zone = ""; } - if (message.id != null && message.hasOwnProperty("id")) - if (typeof message.id === "number") - object.id = options.longs === String ? String(message.id) : message.id; - else - object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; - if (message.migration_type != null && message.hasOwnProperty("migration_type")) - object.migration_type = options.enums === String ? $root.binlogdata.MigrationType[message.migration_type] === undefined ? message.migration_type : $root.binlogdata.MigrationType[message.migration_type] : message.migration_type; + 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] === undefined ? message.tablet_type : $root.topodata.TabletType[message.tablet_type] : message.tablet_type; + if (message.key_range != null && message.hasOwnProperty("key_range")) + object.key_range = $root.topodata.KeyRange.toObject(message.key_range, options); if (message.tables && message.tables.length) { object.tables = []; for (let j = 0; j < message.tables.length; ++j) object.tables[j] = message.tables[j]; } - if (message.local_position != null && message.hasOwnProperty("local_position")) - object.local_position = message.local_position; - if (message.shard_gtids && message.shard_gtids.length) { - object.shard_gtids = []; - for (let j = 0; j < message.shard_gtids.length; ++j) - object.shard_gtids[j] = $root.binlogdata.ShardGtid.toObject(message.shard_gtids[j], options); - } - if (message.participants && message.participants.length) { - object.participants = []; - for (let j = 0; j < message.participants.length; ++j) - object.participants[j] = $root.binlogdata.KeyspaceShard.toObject(message.participants[j], options); - } - if (message.source_workflows && message.source_workflows.length) { - object.source_workflows = []; - for (let j = 0; j < message.source_workflows.length; ++j) - object.source_workflows[j] = message.source_workflows[j]; - } + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = $root.binlogdata.Filter.toObject(message.filter, options); + if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) + object.on_ddl = options.enums === String ? $root.binlogdata.OnDDLAction[message.on_ddl] === undefined ? message.on_ddl : $root.binlogdata.OnDDLAction[message.on_ddl] : message.on_ddl; + if (message.external_mysql != null && message.hasOwnProperty("external_mysql")) + object.external_mysql = message.external_mysql; + if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) + object.stop_after_copy = message.stop_after_copy; + if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) + object.external_cluster = message.external_cluster; + 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; return object; }; /** - * Converts this Journal to JSON. + * Converts this BinlogSource to JSON. * @function toJSON - * @memberof binlogdata.Journal + * @memberof binlogdata.BinlogSource * @instance * @returns {Object.} JSON object */ - Journal.prototype.toJSON = function toJSON() { + BinlogSource.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Journal + * Gets the default type url for BinlogSource * @function getTypeUrl - * @memberof binlogdata.Journal + * @memberof binlogdata.BinlogSource * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Journal.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BinlogSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.Journal"; + return typeUrlPrefix + "/binlogdata.BinlogSource"; }; - return Journal; + return BinlogSource; })(); - binlogdata.VEvent = (function() { + /** + * VEventType enum. + * @name binlogdata.VEventType + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} GTID=1 GTID value + * @property {number} BEGIN=2 BEGIN value + * @property {number} COMMIT=3 COMMIT value + * @property {number} ROLLBACK=4 ROLLBACK value + * @property {number} DDL=5 DDL value + * @property {number} INSERT=6 INSERT value + * @property {number} REPLACE=7 REPLACE value + * @property {number} UPDATE=8 UPDATE value + * @property {number} DELETE=9 DELETE value + * @property {number} SET=10 SET value + * @property {number} OTHER=11 OTHER value + * @property {number} ROW=12 ROW value + * @property {number} FIELD=13 FIELD value + * @property {number} HEARTBEAT=14 HEARTBEAT value + * @property {number} VGTID=15 VGTID value + * @property {number} JOURNAL=16 JOURNAL value + * @property {number} VERSION=17 VERSION value + * @property {number} LASTPK=18 LASTPK value + * @property {number} SAVEPOINT=19 SAVEPOINT value + * @property {number} COPY_COMPLETED=20 COPY_COMPLETED value + */ + binlogdata.VEventType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "GTID"] = 1; + values[valuesById[2] = "BEGIN"] = 2; + values[valuesById[3] = "COMMIT"] = 3; + values[valuesById[4] = "ROLLBACK"] = 4; + values[valuesById[5] = "DDL"] = 5; + values[valuesById[6] = "INSERT"] = 6; + values[valuesById[7] = "REPLACE"] = 7; + values[valuesById[8] = "UPDATE"] = 8; + values[valuesById[9] = "DELETE"] = 9; + values[valuesById[10] = "SET"] = 10; + values[valuesById[11] = "OTHER"] = 11; + values[valuesById[12] = "ROW"] = 12; + values[valuesById[13] = "FIELD"] = 13; + values[valuesById[14] = "HEARTBEAT"] = 14; + values[valuesById[15] = "VGTID"] = 15; + values[valuesById[16] = "JOURNAL"] = 16; + values[valuesById[17] = "VERSION"] = 17; + values[valuesById[18] = "LASTPK"] = 18; + values[valuesById[19] = "SAVEPOINT"] = 19; + values[valuesById[20] = "COPY_COMPLETED"] = 20; + return values; + })(); + + binlogdata.RowChange = (function() { /** - * Properties of a VEvent. + * Properties of a RowChange. * @memberof binlogdata - * @interface IVEvent - * @property {binlogdata.VEventType|null} [type] VEvent type - * @property {number|Long|null} [timestamp] VEvent timestamp - * @property {string|null} [gtid] VEvent gtid - * @property {string|null} [statement] VEvent statement - * @property {binlogdata.IRowEvent|null} [row_event] VEvent row_event - * @property {binlogdata.IFieldEvent|null} [field_event] VEvent field_event - * @property {binlogdata.IVGtid|null} [vgtid] VEvent vgtid - * @property {binlogdata.IJournal|null} [journal] VEvent journal - * @property {string|null} [dml] VEvent dml - * @property {number|Long|null} [current_time] VEvent current_time - * @property {binlogdata.ILastPKEvent|null} [last_p_k_event] VEvent last_p_k_event - * @property {string|null} [keyspace] VEvent keyspace - * @property {string|null} [shard] VEvent shard - * @property {boolean|null} [throttled] VEvent throttled - * @property {string|null} [throttled_reason] VEvent throttled_reason + * @interface IRowChange + * @property {query.IRow|null} [before] RowChange before + * @property {query.IRow|null} [after] RowChange after + * @property {binlogdata.RowChange.IBitmap|null} [data_columns] RowChange data_columns + * @property {binlogdata.RowChange.IBitmap|null} [json_partial_values] RowChange json_partial_values */ /** - * Constructs a new VEvent. + * Constructs a new RowChange. * @memberof binlogdata - * @classdesc Represents a VEvent. - * @implements IVEvent + * @classdesc Represents a RowChange. + * @implements IRowChange * @constructor - * @param {binlogdata.IVEvent=} [properties] Properties to set + * @param {binlogdata.IRowChange=} [properties] Properties to set */ - function VEvent(properties) { + function RowChange(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91044,271 +90982,117 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * VEvent type. - * @member {binlogdata.VEventType} type - * @memberof binlogdata.VEvent - * @instance - */ - VEvent.prototype.type = 0; - - /** - * VEvent timestamp. - * @member {number|Long} timestamp - * @memberof binlogdata.VEvent - * @instance - */ - VEvent.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * VEvent gtid. - * @member {string} gtid - * @memberof binlogdata.VEvent - * @instance - */ - VEvent.prototype.gtid = ""; - - /** - * VEvent statement. - * @member {string} statement - * @memberof binlogdata.VEvent - * @instance - */ - VEvent.prototype.statement = ""; - - /** - * VEvent row_event. - * @member {binlogdata.IRowEvent|null|undefined} row_event - * @memberof binlogdata.VEvent - * @instance - */ - VEvent.prototype.row_event = null; - - /** - * VEvent field_event. - * @member {binlogdata.IFieldEvent|null|undefined} field_event - * @memberof binlogdata.VEvent - * @instance - */ - VEvent.prototype.field_event = null; - - /** - * VEvent vgtid. - * @member {binlogdata.IVGtid|null|undefined} vgtid - * @memberof binlogdata.VEvent - * @instance - */ - VEvent.prototype.vgtid = null; - - /** - * VEvent journal. - * @member {binlogdata.IJournal|null|undefined} journal - * @memberof binlogdata.VEvent - * @instance - */ - VEvent.prototype.journal = null; - - /** - * VEvent dml. - * @member {string} dml - * @memberof binlogdata.VEvent - * @instance - */ - VEvent.prototype.dml = ""; - - /** - * VEvent current_time. - * @member {number|Long} current_time - * @memberof binlogdata.VEvent - * @instance - */ - VEvent.prototype.current_time = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * VEvent last_p_k_event. - * @member {binlogdata.ILastPKEvent|null|undefined} last_p_k_event - * @memberof binlogdata.VEvent - * @instance - */ - VEvent.prototype.last_p_k_event = null; - - /** - * VEvent keyspace. - * @member {string} keyspace - * @memberof binlogdata.VEvent + * RowChange before. + * @member {query.IRow|null|undefined} before + * @memberof binlogdata.RowChange * @instance */ - VEvent.prototype.keyspace = ""; + RowChange.prototype.before = null; /** - * VEvent shard. - * @member {string} shard - * @memberof binlogdata.VEvent + * RowChange after. + * @member {query.IRow|null|undefined} after + * @memberof binlogdata.RowChange * @instance */ - VEvent.prototype.shard = ""; + RowChange.prototype.after = null; /** - * VEvent throttled. - * @member {boolean} throttled - * @memberof binlogdata.VEvent + * RowChange data_columns. + * @member {binlogdata.RowChange.IBitmap|null|undefined} data_columns + * @memberof binlogdata.RowChange * @instance */ - VEvent.prototype.throttled = false; + RowChange.prototype.data_columns = null; /** - * VEvent throttled_reason. - * @member {string} throttled_reason - * @memberof binlogdata.VEvent + * RowChange json_partial_values. + * @member {binlogdata.RowChange.IBitmap|null|undefined} json_partial_values + * @memberof binlogdata.RowChange * @instance */ - VEvent.prototype.throttled_reason = ""; + RowChange.prototype.json_partial_values = null; /** - * Creates a new VEvent instance using the specified properties. + * Creates a new RowChange instance using the specified properties. * @function create - * @memberof binlogdata.VEvent + * @memberof binlogdata.RowChange * @static - * @param {binlogdata.IVEvent=} [properties] Properties to set - * @returns {binlogdata.VEvent} VEvent instance + * @param {binlogdata.IRowChange=} [properties] Properties to set + * @returns {binlogdata.RowChange} RowChange instance */ - VEvent.create = function create(properties) { - return new VEvent(properties); + RowChange.create = function create(properties) { + return new RowChange(properties); }; /** - * Encodes the specified VEvent message. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. + * Encodes the specified RowChange message. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. * @function encode - * @memberof binlogdata.VEvent + * @memberof binlogdata.RowChange * @static - * @param {binlogdata.IVEvent} message VEvent message or plain object to encode + * @param {binlogdata.IRowChange} message RowChange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VEvent.encode = function encode(message, writer) { + RowChange.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.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.timestamp); - if (message.gtid != null && Object.hasOwnProperty.call(message, "gtid")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.gtid); - if (message.statement != null && Object.hasOwnProperty.call(message, "statement")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.statement); - if (message.row_event != null && Object.hasOwnProperty.call(message, "row_event")) - $root.binlogdata.RowEvent.encode(message.row_event, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.field_event != null && Object.hasOwnProperty.call(message, "field_event")) - $root.binlogdata.FieldEvent.encode(message.field_event, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.vgtid != null && Object.hasOwnProperty.call(message, "vgtid")) - $root.binlogdata.VGtid.encode(message.vgtid, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.journal != null && Object.hasOwnProperty.call(message, "journal")) - $root.binlogdata.Journal.encode(message.journal, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.dml != null && Object.hasOwnProperty.call(message, "dml")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.dml); - if (message.current_time != null && Object.hasOwnProperty.call(message, "current_time")) - writer.uint32(/* id 20, wireType 0 =*/160).int64(message.current_time); - if (message.last_p_k_event != null && Object.hasOwnProperty.call(message, "last_p_k_event")) - $root.binlogdata.LastPKEvent.encode(message.last_p_k_event, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 22, wireType 2 =*/178).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 23, wireType 2 =*/186).string(message.shard); - if (message.throttled != null && Object.hasOwnProperty.call(message, "throttled")) - writer.uint32(/* id 24, wireType 0 =*/192).bool(message.throttled); - if (message.throttled_reason != null && Object.hasOwnProperty.call(message, "throttled_reason")) - writer.uint32(/* id 25, wireType 2 =*/202).string(message.throttled_reason); + if (message.before != null && Object.hasOwnProperty.call(message, "before")) + $root.query.Row.encode(message.before, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.after != null && Object.hasOwnProperty.call(message, "after")) + $root.query.Row.encode(message.after, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.data_columns != null && Object.hasOwnProperty.call(message, "data_columns")) + $root.binlogdata.RowChange.Bitmap.encode(message.data_columns, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.json_partial_values != null && Object.hasOwnProperty.call(message, "json_partial_values")) + $root.binlogdata.RowChange.Bitmap.encode(message.json_partial_values, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified VEvent message, length delimited. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. + * Encodes the specified RowChange message, length delimited. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VEvent + * @memberof binlogdata.RowChange * @static - * @param {binlogdata.IVEvent} message VEvent message or plain object to encode + * @param {binlogdata.IRowChange} message RowChange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VEvent.encodeDelimited = function encodeDelimited(message, writer) { + RowChange.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VEvent message from the specified reader or buffer. + * Decodes a RowChange message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VEvent + * @memberof binlogdata.RowChange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.VEvent} VEvent + * @returns {binlogdata.RowChange} RowChange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VEvent.decode = function decode(reader, length) { + RowChange.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VEvent(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.RowChange(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.int32(); + message.before = $root.query.Row.decode(reader, reader.uint32()); break; } case 2: { - message.timestamp = reader.int64(); + message.after = $root.query.Row.decode(reader, reader.uint32()); break; } case 3: { - message.gtid = reader.string(); + message.data_columns = $root.binlogdata.RowChange.Bitmap.decode(reader, reader.uint32()); break; } case 4: { - message.statement = reader.string(); - break; - } - case 5: { - message.row_event = $root.binlogdata.RowEvent.decode(reader, reader.uint32()); - break; - } - case 6: { - message.field_event = $root.binlogdata.FieldEvent.decode(reader, reader.uint32()); - break; - } - case 7: { - message.vgtid = $root.binlogdata.VGtid.decode(reader, reader.uint32()); - break; - } - case 8: { - message.journal = $root.binlogdata.Journal.decode(reader, reader.uint32()); - break; - } - case 9: { - message.dml = reader.string(); - break; - } - case 20: { - message.current_time = reader.int64(); - break; - } - case 21: { - message.last_p_k_event = $root.binlogdata.LastPKEvent.decode(reader, reader.uint32()); - break; - } - case 22: { - message.keyspace = reader.string(); - break; - } - case 23: { - message.shard = reader.string(); - break; - } - case 24: { - message.throttled = reader.bool(); - break; - } - case 25: { - message.throttled_reason = reader.string(); + message.json_partial_values = $root.binlogdata.RowChange.Bitmap.decode(reader, reader.uint32()); break; } default: @@ -91320,407 +91104,423 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a VEvent message from the specified reader or buffer, length delimited. + * Decodes a RowChange message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.VEvent + * @memberof binlogdata.RowChange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VEvent} VEvent + * @returns {binlogdata.RowChange} RowChange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VEvent.decodeDelimited = function decodeDelimited(reader) { + RowChange.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VEvent message. + * Verifies a RowChange message. * @function verify - * @memberof binlogdata.VEvent + * @memberof binlogdata.RowChange * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VEvent.verify = function verify(message) { + RowChange.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 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: - case 19: - case 20: - break; - } - 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.gtid != null && message.hasOwnProperty("gtid")) - if (!$util.isString(message.gtid)) - return "gtid: string expected"; - if (message.statement != null && message.hasOwnProperty("statement")) - if (!$util.isString(message.statement)) - return "statement: string expected"; - if (message.row_event != null && message.hasOwnProperty("row_event")) { - let error = $root.binlogdata.RowEvent.verify(message.row_event); - if (error) - return "row_event." + error; - } - if (message.field_event != null && message.hasOwnProperty("field_event")) { - let error = $root.binlogdata.FieldEvent.verify(message.field_event); + if (message.before != null && message.hasOwnProperty("before")) { + let error = $root.query.Row.verify(message.before); if (error) - return "field_event." + error; + return "before." + error; } - if (message.vgtid != null && message.hasOwnProperty("vgtid")) { - let error = $root.binlogdata.VGtid.verify(message.vgtid); + if (message.after != null && message.hasOwnProperty("after")) { + let error = $root.query.Row.verify(message.after); if (error) - return "vgtid." + error; + return "after." + error; } - if (message.journal != null && message.hasOwnProperty("journal")) { - let error = $root.binlogdata.Journal.verify(message.journal); + if (message.data_columns != null && message.hasOwnProperty("data_columns")) { + let error = $root.binlogdata.RowChange.Bitmap.verify(message.data_columns); if (error) - return "journal." + error; + return "data_columns." + error; } - if (message.dml != null && message.hasOwnProperty("dml")) - if (!$util.isString(message.dml)) - return "dml: string expected"; - if (message.current_time != null && message.hasOwnProperty("current_time")) - if (!$util.isInteger(message.current_time) && !(message.current_time && $util.isInteger(message.current_time.low) && $util.isInteger(message.current_time.high))) - return "current_time: integer|Long expected"; - if (message.last_p_k_event != null && message.hasOwnProperty("last_p_k_event")) { - let error = $root.binlogdata.LastPKEvent.verify(message.last_p_k_event); + if (message.json_partial_values != null && message.hasOwnProperty("json_partial_values")) { + let error = $root.binlogdata.RowChange.Bitmap.verify(message.json_partial_values); if (error) - return "last_p_k_event." + error; + return "json_partial_values." + 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.throttled != null && message.hasOwnProperty("throttled")) - if (typeof message.throttled !== "boolean") - return "throttled: boolean expected"; - if (message.throttled_reason != null && message.hasOwnProperty("throttled_reason")) - if (!$util.isString(message.throttled_reason)) - return "throttled_reason: string expected"; return null; }; /** - * Creates a VEvent message from a plain object. Also converts values to their respective internal types. + * Creates a RowChange message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.VEvent + * @memberof binlogdata.RowChange * @static * @param {Object.} object Plain object - * @returns {binlogdata.VEvent} VEvent + * @returns {binlogdata.RowChange} RowChange */ - VEvent.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VEvent) + RowChange.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.RowChange) return object; - let message = new $root.binlogdata.VEvent(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "UNKNOWN": - case 0: - message.type = 0; - break; - case "GTID": - case 1: - message.type = 1; - break; - case "BEGIN": - case 2: - message.type = 2; - break; - case "COMMIT": - case 3: - message.type = 3; - break; - case "ROLLBACK": - case 4: - message.type = 4; - break; - case "DDL": - case 5: - message.type = 5; - break; - case "INSERT": - case 6: - message.type = 6; - break; - case "REPLACE": - case 7: - message.type = 7; - break; - case "UPDATE": - case 8: - message.type = 8; - break; - case "DELETE": - case 9: - message.type = 9; - break; - case "SET": - case 10: - message.type = 10; - break; - case "OTHER": - case 11: - message.type = 11; - break; - case "ROW": - case 12: - message.type = 12; - break; - case "FIELD": - case 13: - message.type = 13; - break; - case "HEARTBEAT": - case 14: - message.type = 14; - break; - case "VGTID": - case 15: - message.type = 15; - break; - case "JOURNAL": - case 16: - message.type = 16; - break; - case "VERSION": - case 17: - message.type = 17; - break; - case "LASTPK": - case 18: - message.type = 18; - break; - case "SAVEPOINT": - case 19: - message.type = 19; - break; - case "COPY_COMPLETED": - case 20: - message.type = 20; - break; - } - 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.gtid != null) - message.gtid = String(object.gtid); - if (object.statement != null) - message.statement = String(object.statement); - if (object.row_event != null) { - if (typeof object.row_event !== "object") - throw TypeError(".binlogdata.VEvent.row_event: object expected"); - message.row_event = $root.binlogdata.RowEvent.fromObject(object.row_event); - } - if (object.field_event != null) { - if (typeof object.field_event !== "object") - throw TypeError(".binlogdata.VEvent.field_event: object expected"); - message.field_event = $root.binlogdata.FieldEvent.fromObject(object.field_event); + let message = new $root.binlogdata.RowChange(); + if (object.before != null) { + if (typeof object.before !== "object") + throw TypeError(".binlogdata.RowChange.before: object expected"); + message.before = $root.query.Row.fromObject(object.before); } - if (object.vgtid != null) { - if (typeof object.vgtid !== "object") - throw TypeError(".binlogdata.VEvent.vgtid: object expected"); - message.vgtid = $root.binlogdata.VGtid.fromObject(object.vgtid); + if (object.after != null) { + if (typeof object.after !== "object") + throw TypeError(".binlogdata.RowChange.after: object expected"); + message.after = $root.query.Row.fromObject(object.after); } - if (object.journal != null) { - if (typeof object.journal !== "object") - throw TypeError(".binlogdata.VEvent.journal: object expected"); - message.journal = $root.binlogdata.Journal.fromObject(object.journal); + if (object.data_columns != null) { + if (typeof object.data_columns !== "object") + throw TypeError(".binlogdata.RowChange.data_columns: object expected"); + message.data_columns = $root.binlogdata.RowChange.Bitmap.fromObject(object.data_columns); } - if (object.dml != null) - message.dml = String(object.dml); - if (object.current_time != null) - if ($util.Long) - (message.current_time = $util.Long.fromValue(object.current_time)).unsigned = false; - else if (typeof object.current_time === "string") - message.current_time = parseInt(object.current_time, 10); - else if (typeof object.current_time === "number") - message.current_time = object.current_time; - else if (typeof object.current_time === "object") - message.current_time = new $util.LongBits(object.current_time.low >>> 0, object.current_time.high >>> 0).toNumber(); - if (object.last_p_k_event != null) { - if (typeof object.last_p_k_event !== "object") - throw TypeError(".binlogdata.VEvent.last_p_k_event: object expected"); - message.last_p_k_event = $root.binlogdata.LastPKEvent.fromObject(object.last_p_k_event); + if (object.json_partial_values != null) { + if (typeof object.json_partial_values !== "object") + throw TypeError(".binlogdata.RowChange.json_partial_values: object expected"); + message.json_partial_values = $root.binlogdata.RowChange.Bitmap.fromObject(object.json_partial_values); } - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.throttled != null) - message.throttled = Boolean(object.throttled); - if (object.throttled_reason != null) - message.throttled_reason = String(object.throttled_reason); return message; }; /** - * Creates a plain object from a VEvent message. Also converts values to other types if specified. + * Creates a plain object from a RowChange message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.VEvent + * @memberof binlogdata.RowChange * @static - * @param {binlogdata.VEvent} message VEvent + * @param {binlogdata.RowChange} message RowChange * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VEvent.toObject = function toObject(message, options) { + RowChange.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.type = options.enums === String ? "UNKNOWN" : 0; - if ($util.Long) { - let 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.gtid = ""; - object.statement = ""; - object.row_event = null; - object.field_event = null; - object.vgtid = null; - object.journal = null; - object.dml = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.current_time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.current_time = options.longs === String ? "0" : 0; - object.last_p_k_event = null; - object.keyspace = ""; - object.shard = ""; - object.throttled = false; - object.throttled_reason = ""; + object.before = null; + object.after = null; + object.data_columns = null; + object.json_partial_values = null; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.binlogdata.VEventType[message.type] === undefined ? message.type : $root.binlogdata.VEventType[message.type] : message.type; - 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.gtid != null && message.hasOwnProperty("gtid")) - object.gtid = message.gtid; - if (message.statement != null && message.hasOwnProperty("statement")) - object.statement = message.statement; - if (message.row_event != null && message.hasOwnProperty("row_event")) - object.row_event = $root.binlogdata.RowEvent.toObject(message.row_event, options); - if (message.field_event != null && message.hasOwnProperty("field_event")) - object.field_event = $root.binlogdata.FieldEvent.toObject(message.field_event, options); - if (message.vgtid != null && message.hasOwnProperty("vgtid")) - object.vgtid = $root.binlogdata.VGtid.toObject(message.vgtid, options); - if (message.journal != null && message.hasOwnProperty("journal")) - object.journal = $root.binlogdata.Journal.toObject(message.journal, options); - if (message.dml != null && message.hasOwnProperty("dml")) - object.dml = message.dml; - if (message.current_time != null && message.hasOwnProperty("current_time")) - if (typeof message.current_time === "number") - object.current_time = options.longs === String ? String(message.current_time) : message.current_time; - else - object.current_time = options.longs === String ? $util.Long.prototype.toString.call(message.current_time) : options.longs === Number ? new $util.LongBits(message.current_time.low >>> 0, message.current_time.high >>> 0).toNumber() : message.current_time; - if (message.last_p_k_event != null && message.hasOwnProperty("last_p_k_event")) - object.last_p_k_event = $root.binlogdata.LastPKEvent.toObject(message.last_p_k_event, 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.throttled != null && message.hasOwnProperty("throttled")) - object.throttled = message.throttled; - if (message.throttled_reason != null && message.hasOwnProperty("throttled_reason")) - object.throttled_reason = message.throttled_reason; + if (message.before != null && message.hasOwnProperty("before")) + object.before = $root.query.Row.toObject(message.before, options); + if (message.after != null && message.hasOwnProperty("after")) + object.after = $root.query.Row.toObject(message.after, options); + if (message.data_columns != null && message.hasOwnProperty("data_columns")) + object.data_columns = $root.binlogdata.RowChange.Bitmap.toObject(message.data_columns, options); + if (message.json_partial_values != null && message.hasOwnProperty("json_partial_values")) + object.json_partial_values = $root.binlogdata.RowChange.Bitmap.toObject(message.json_partial_values, options); return object; }; /** - * Converts this VEvent to JSON. + * Converts this RowChange to JSON. * @function toJSON - * @memberof binlogdata.VEvent + * @memberof binlogdata.RowChange * @instance * @returns {Object.} JSON object */ - VEvent.prototype.toJSON = function toJSON() { + RowChange.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VEvent + * Gets the default type url for RowChange * @function getTypeUrl - * @memberof binlogdata.VEvent + * @memberof binlogdata.RowChange * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RowChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.VEvent"; + return typeUrlPrefix + "/binlogdata.RowChange"; }; - return VEvent; + RowChange.Bitmap = (function() { + + /** + * Properties of a Bitmap. + * @memberof binlogdata.RowChange + * @interface IBitmap + * @property {number|Long|null} [count] Bitmap count + * @property {Uint8Array|null} [cols] Bitmap cols + */ + + /** + * Constructs a new Bitmap. + * @memberof binlogdata.RowChange + * @classdesc Represents a Bitmap. + * @implements IBitmap + * @constructor + * @param {binlogdata.RowChange.IBitmap=} [properties] Properties to set + */ + function Bitmap(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Bitmap count. + * @member {number|Long} count + * @memberof binlogdata.RowChange.Bitmap + * @instance + */ + Bitmap.prototype.count = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Bitmap cols. + * @member {Uint8Array} cols + * @memberof binlogdata.RowChange.Bitmap + * @instance + */ + Bitmap.prototype.cols = $util.newBuffer([]); + + /** + * Creates a new Bitmap instance using the specified properties. + * @function create + * @memberof binlogdata.RowChange.Bitmap + * @static + * @param {binlogdata.RowChange.IBitmap=} [properties] Properties to set + * @returns {binlogdata.RowChange.Bitmap} Bitmap instance + */ + Bitmap.create = function create(properties) { + return new Bitmap(properties); + }; + + /** + * Encodes the specified Bitmap message. Does not implicitly {@link binlogdata.RowChange.Bitmap.verify|verify} messages. + * @function encode + * @memberof binlogdata.RowChange.Bitmap + * @static + * @param {binlogdata.RowChange.IBitmap} message Bitmap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Bitmap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.count); + if (message.cols != null && Object.hasOwnProperty.call(message, "cols")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.cols); + return writer; + }; + + /** + * Encodes the specified Bitmap message, length delimited. Does not implicitly {@link binlogdata.RowChange.Bitmap.verify|verify} messages. + * @function encodeDelimited + * @memberof binlogdata.RowChange.Bitmap + * @static + * @param {binlogdata.RowChange.IBitmap} message Bitmap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Bitmap.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Bitmap message from the specified reader or buffer. + * @function decode + * @memberof binlogdata.RowChange.Bitmap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {binlogdata.RowChange.Bitmap} Bitmap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Bitmap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.RowChange.Bitmap(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.count = reader.int64(); + break; + } + case 2: { + message.cols = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Bitmap message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof binlogdata.RowChange.Bitmap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {binlogdata.RowChange.Bitmap} Bitmap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Bitmap.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Bitmap message. + * @function verify + * @memberof binlogdata.RowChange.Bitmap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Bitmap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high))) + return "count: integer|Long expected"; + if (message.cols != null && message.hasOwnProperty("cols")) + if (!(message.cols && typeof message.cols.length === "number" || $util.isString(message.cols))) + return "cols: buffer expected"; + return null; + }; + + /** + * Creates a Bitmap message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof binlogdata.RowChange.Bitmap + * @static + * @param {Object.} object Plain object + * @returns {binlogdata.RowChange.Bitmap} Bitmap + */ + Bitmap.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.RowChange.Bitmap) + return object; + let message = new $root.binlogdata.RowChange.Bitmap(); + if (object.count != null) + if ($util.Long) + (message.count = $util.Long.fromValue(object.count)).unsigned = false; + else if (typeof object.count === "string") + message.count = parseInt(object.count, 10); + else if (typeof object.count === "number") + message.count = object.count; + else if (typeof object.count === "object") + message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(); + if (object.cols != null) + if (typeof object.cols === "string") + $util.base64.decode(object.cols, message.cols = $util.newBuffer($util.base64.length(object.cols)), 0); + else if (object.cols.length >= 0) + message.cols = object.cols; + return message; + }; + + /** + * Creates a plain object from a Bitmap message. Also converts values to other types if specified. + * @function toObject + * @memberof binlogdata.RowChange.Bitmap + * @static + * @param {binlogdata.RowChange.Bitmap} message Bitmap + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Bitmap.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.count = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.cols = ""; + else { + object.cols = []; + if (options.bytes !== Array) + object.cols = $util.newBuffer(object.cols); + } + } + if (message.count != null && message.hasOwnProperty("count")) + if (typeof message.count === "number") + object.count = options.longs === String ? String(message.count) : message.count; + else + object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count; + if (message.cols != null && message.hasOwnProperty("cols")) + object.cols = options.bytes === String ? $util.base64.encode(message.cols, 0, message.cols.length) : options.bytes === Array ? Array.prototype.slice.call(message.cols) : message.cols; + return object; + }; + + /** + * Converts this Bitmap to JSON. + * @function toJSON + * @memberof binlogdata.RowChange.Bitmap + * @instance + * @returns {Object.} JSON object + */ + Bitmap.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Bitmap + * @function getTypeUrl + * @memberof binlogdata.RowChange.Bitmap + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Bitmap.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/binlogdata.RowChange.Bitmap"; + }; + + return Bitmap; + })(); + + return RowChange; })(); - binlogdata.MinimalTable = (function() { + binlogdata.RowEvent = (function() { /** - * Properties of a MinimalTable. + * Properties of a RowEvent. * @memberof binlogdata - * @interface IMinimalTable - * @property {string|null} [name] MinimalTable name - * @property {Array.|null} [fields] MinimalTable fields - * @property {Array.|null} [p_k_columns] MinimalTable p_k_columns - * @property {string|null} [p_k_index_name] MinimalTable p_k_index_name + * @interface IRowEvent + * @property {string|null} [table_name] RowEvent table_name + * @property {Array.|null} [row_changes] RowEvent row_changes + * @property {string|null} [keyspace] RowEvent keyspace + * @property {string|null} [shard] RowEvent shard + * @property {number|null} [flags] RowEvent flags + * @property {boolean|null} [is_internal_table] RowEvent is_internal_table */ /** - * Constructs a new MinimalTable. + * Constructs a new RowEvent. * @memberof binlogdata - * @classdesc Represents a MinimalTable. - * @implements IMinimalTable + * @classdesc Represents a RowEvent. + * @implements IRowEvent * @constructor - * @param {binlogdata.IMinimalTable=} [properties] Properties to set + * @param {binlogdata.IRowEvent=} [properties] Properties to set */ - function MinimalTable(properties) { - this.fields = []; - this.p_k_columns = []; + function RowEvent(properties) { + this.row_changes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91728,131 +91528,148 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * MinimalTable name. - * @member {string} name - * @memberof binlogdata.MinimalTable + * RowEvent table_name. + * @member {string} table_name + * @memberof binlogdata.RowEvent * @instance */ - MinimalTable.prototype.name = ""; + RowEvent.prototype.table_name = ""; /** - * MinimalTable fields. - * @member {Array.} fields - * @memberof binlogdata.MinimalTable + * RowEvent row_changes. + * @member {Array.} row_changes + * @memberof binlogdata.RowEvent * @instance */ - MinimalTable.prototype.fields = $util.emptyArray; + RowEvent.prototype.row_changes = $util.emptyArray; /** - * MinimalTable p_k_columns. - * @member {Array.} p_k_columns - * @memberof binlogdata.MinimalTable + * RowEvent keyspace. + * @member {string} keyspace + * @memberof binlogdata.RowEvent * @instance */ - MinimalTable.prototype.p_k_columns = $util.emptyArray; + RowEvent.prototype.keyspace = ""; /** - * MinimalTable p_k_index_name. - * @member {string} p_k_index_name - * @memberof binlogdata.MinimalTable + * RowEvent shard. + * @member {string} shard + * @memberof binlogdata.RowEvent * @instance */ - MinimalTable.prototype.p_k_index_name = ""; + RowEvent.prototype.shard = ""; /** - * Creates a new MinimalTable instance using the specified properties. + * RowEvent flags. + * @member {number} flags + * @memberof binlogdata.RowEvent + * @instance + */ + RowEvent.prototype.flags = 0; + + /** + * RowEvent is_internal_table. + * @member {boolean} is_internal_table + * @memberof binlogdata.RowEvent + * @instance + */ + RowEvent.prototype.is_internal_table = false; + + /** + * Creates a new RowEvent instance using the specified properties. * @function create - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.RowEvent * @static - * @param {binlogdata.IMinimalTable=} [properties] Properties to set - * @returns {binlogdata.MinimalTable} MinimalTable instance + * @param {binlogdata.IRowEvent=} [properties] Properties to set + * @returns {binlogdata.RowEvent} RowEvent instance */ - MinimalTable.create = function create(properties) { - return new MinimalTable(properties); + RowEvent.create = function create(properties) { + return new RowEvent(properties); }; /** - * Encodes the specified MinimalTable message. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. + * Encodes the specified RowEvent message. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. * @function encode - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.RowEvent * @static - * @param {binlogdata.IMinimalTable} message MinimalTable message or plain object to encode + * @param {binlogdata.IRowEvent} message RowEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MinimalTable.encode = function encode(message, writer) { + RowEvent.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.fields != null && message.fields.length) - for (let i = 0; i < message.fields.length; ++i) - $root.query.Field.encode(message.fields[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.p_k_columns != null && message.p_k_columns.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (let i = 0; i < message.p_k_columns.length; ++i) - writer.int64(message.p_k_columns[i]); - writer.ldelim(); - } - if (message.p_k_index_name != null && Object.hasOwnProperty.call(message, "p_k_index_name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.p_k_index_name); + if (message.table_name != null && Object.hasOwnProperty.call(message, "table_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.table_name); + if (message.row_changes != null && message.row_changes.length) + for (let i = 0; i < message.row_changes.length; ++i) + $root.binlogdata.RowChange.encode(message.row_changes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.shard); + if (message.flags != null && Object.hasOwnProperty.call(message, "flags")) + writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.flags); + if (message.is_internal_table != null && Object.hasOwnProperty.call(message, "is_internal_table")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.is_internal_table); return writer; }; /** - * Encodes the specified MinimalTable message, length delimited. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. + * Encodes the specified RowEvent message, length delimited. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.RowEvent * @static - * @param {binlogdata.IMinimalTable} message MinimalTable message or plain object to encode + * @param {binlogdata.IRowEvent} message RowEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MinimalTable.encodeDelimited = function encodeDelimited(message, writer) { + RowEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MinimalTable message from the specified reader or buffer. + * Decodes a RowEvent message from the specified reader or buffer. * @function decode - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.RowEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.MinimalTable} MinimalTable + * @returns {binlogdata.RowEvent} RowEvent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MinimalTable.decode = function decode(reader, length) { + RowEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.MinimalTable(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.RowEvent(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.table_name = reader.string(); break; } case 2: { - if (!(message.fields && message.fields.length)) - message.fields = []; - message.fields.push($root.query.Field.decode(reader, reader.uint32())); + if (!(message.row_changes && message.row_changes.length)) + message.row_changes = []; + message.row_changes.push($root.binlogdata.RowChange.decode(reader, reader.uint32())); break; } case 3: { - if (!(message.p_k_columns && message.p_k_columns.length)) - message.p_k_columns = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.p_k_columns.push(reader.int64()); - } else - message.p_k_columns.push(reader.int64()); + message.keyspace = reader.string(); break; } case 4: { - message.p_k_index_name = reader.string(); + message.shard = reader.string(); + break; + } + case 5: { + message.flags = reader.uint32(); + break; + } + case 6: { + message.is_internal_table = reader.bool(); break; } default: @@ -91864,189 +91681,187 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a MinimalTable message from the specified reader or buffer, length delimited. + * Decodes a RowEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.RowEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.MinimalTable} MinimalTable + * @returns {binlogdata.RowEvent} RowEvent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MinimalTable.decodeDelimited = function decodeDelimited(reader) { + RowEvent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MinimalTable message. + * Verifies a RowEvent message. * @function verify - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.RowEvent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MinimalTable.verify = function verify(message) { + RowEvent.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.fields != null && message.hasOwnProperty("fields")) { - if (!Array.isArray(message.fields)) - return "fields: array expected"; - for (let i = 0; i < message.fields.length; ++i) { - let error = $root.query.Field.verify(message.fields[i]); + if (message.table_name != null && message.hasOwnProperty("table_name")) + if (!$util.isString(message.table_name)) + return "table_name: string expected"; + if (message.row_changes != null && message.hasOwnProperty("row_changes")) { + if (!Array.isArray(message.row_changes)) + return "row_changes: array expected"; + for (let i = 0; i < message.row_changes.length; ++i) { + let error = $root.binlogdata.RowChange.verify(message.row_changes[i]); if (error) - return "fields." + error; + return "row_changes." + error; } } - if (message.p_k_columns != null && message.hasOwnProperty("p_k_columns")) { - if (!Array.isArray(message.p_k_columns)) - return "p_k_columns: array expected"; - for (let i = 0; i < message.p_k_columns.length; ++i) - if (!$util.isInteger(message.p_k_columns[i]) && !(message.p_k_columns[i] && $util.isInteger(message.p_k_columns[i].low) && $util.isInteger(message.p_k_columns[i].high))) - return "p_k_columns: integer|Long[] expected"; - } - if (message.p_k_index_name != null && message.hasOwnProperty("p_k_index_name")) - if (!$util.isString(message.p_k_index_name)) - return "p_k_index_name: string expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.flags != null && message.hasOwnProperty("flags")) + if (!$util.isInteger(message.flags)) + return "flags: integer expected"; + if (message.is_internal_table != null && message.hasOwnProperty("is_internal_table")) + if (typeof message.is_internal_table !== "boolean") + return "is_internal_table: boolean expected"; return null; }; /** - * Creates a MinimalTable message from a plain object. Also converts values to their respective internal types. + * Creates a RowEvent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.RowEvent * @static * @param {Object.} object Plain object - * @returns {binlogdata.MinimalTable} MinimalTable + * @returns {binlogdata.RowEvent} RowEvent */ - MinimalTable.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.MinimalTable) + RowEvent.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.RowEvent) return object; - let message = new $root.binlogdata.MinimalTable(); - if (object.name != null) - message.name = String(object.name); - if (object.fields) { - if (!Array.isArray(object.fields)) - throw TypeError(".binlogdata.MinimalTable.fields: array expected"); - message.fields = []; - for (let i = 0; i < object.fields.length; ++i) { - if (typeof object.fields[i] !== "object") - throw TypeError(".binlogdata.MinimalTable.fields: object expected"); - message.fields[i] = $root.query.Field.fromObject(object.fields[i]); + let message = new $root.binlogdata.RowEvent(); + if (object.table_name != null) + message.table_name = String(object.table_name); + if (object.row_changes) { + if (!Array.isArray(object.row_changes)) + throw TypeError(".binlogdata.RowEvent.row_changes: array expected"); + message.row_changes = []; + for (let i = 0; i < object.row_changes.length; ++i) { + if (typeof object.row_changes[i] !== "object") + throw TypeError(".binlogdata.RowEvent.row_changes: object expected"); + message.row_changes[i] = $root.binlogdata.RowChange.fromObject(object.row_changes[i]); } } - if (object.p_k_columns) { - if (!Array.isArray(object.p_k_columns)) - throw TypeError(".binlogdata.MinimalTable.p_k_columns: array expected"); - message.p_k_columns = []; - for (let i = 0; i < object.p_k_columns.length; ++i) - if ($util.Long) - (message.p_k_columns[i] = $util.Long.fromValue(object.p_k_columns[i])).unsigned = false; - else if (typeof object.p_k_columns[i] === "string") - message.p_k_columns[i] = parseInt(object.p_k_columns[i], 10); - else if (typeof object.p_k_columns[i] === "number") - message.p_k_columns[i] = object.p_k_columns[i]; - else if (typeof object.p_k_columns[i] === "object") - message.p_k_columns[i] = new $util.LongBits(object.p_k_columns[i].low >>> 0, object.p_k_columns[i].high >>> 0).toNumber(); - } - if (object.p_k_index_name != null) - message.p_k_index_name = String(object.p_k_index_name); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.flags != null) + message.flags = object.flags >>> 0; + if (object.is_internal_table != null) + message.is_internal_table = Boolean(object.is_internal_table); return message; }; /** - * Creates a plain object from a MinimalTable message. Also converts values to other types if specified. + * Creates a plain object from a RowEvent message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.RowEvent * @static - * @param {binlogdata.MinimalTable} message MinimalTable + * @param {binlogdata.RowEvent} message RowEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MinimalTable.toObject = function toObject(message, options) { + RowEvent.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.fields = []; - object.p_k_columns = []; - } + if (options.arrays || options.defaults) + object.row_changes = []; if (options.defaults) { - object.name = ""; - object.p_k_index_name = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.fields && message.fields.length) { - object.fields = []; - for (let j = 0; j < message.fields.length; ++j) - object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + object.table_name = ""; + object.keyspace = ""; + object.shard = ""; + object.flags = 0; + object.is_internal_table = false; } - if (message.p_k_columns && message.p_k_columns.length) { - object.p_k_columns = []; - for (let j = 0; j < message.p_k_columns.length; ++j) - if (typeof message.p_k_columns[j] === "number") - object.p_k_columns[j] = options.longs === String ? String(message.p_k_columns[j]) : message.p_k_columns[j]; - else - object.p_k_columns[j] = options.longs === String ? $util.Long.prototype.toString.call(message.p_k_columns[j]) : options.longs === Number ? new $util.LongBits(message.p_k_columns[j].low >>> 0, message.p_k_columns[j].high >>> 0).toNumber() : message.p_k_columns[j]; + if (message.table_name != null && message.hasOwnProperty("table_name")) + object.table_name = message.table_name; + if (message.row_changes && message.row_changes.length) { + object.row_changes = []; + for (let j = 0; j < message.row_changes.length; ++j) + object.row_changes[j] = $root.binlogdata.RowChange.toObject(message.row_changes[j], options); } - if (message.p_k_index_name != null && message.hasOwnProperty("p_k_index_name")) - object.p_k_index_name = message.p_k_index_name; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.flags != null && message.hasOwnProperty("flags")) + object.flags = message.flags; + if (message.is_internal_table != null && message.hasOwnProperty("is_internal_table")) + object.is_internal_table = message.is_internal_table; return object; }; /** - * Converts this MinimalTable to JSON. + * Converts this RowEvent to JSON. * @function toJSON - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.RowEvent * @instance * @returns {Object.} JSON object */ - MinimalTable.prototype.toJSON = function toJSON() { + RowEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MinimalTable + * Gets the default type url for RowEvent * @function getTypeUrl - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.RowEvent * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MinimalTable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RowEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.MinimalTable"; + return typeUrlPrefix + "/binlogdata.RowEvent"; }; - return MinimalTable; + return RowEvent; })(); - binlogdata.MinimalSchema = (function() { + binlogdata.FieldEvent = (function() { /** - * Properties of a MinimalSchema. + * Properties of a FieldEvent. * @memberof binlogdata - * @interface IMinimalSchema - * @property {Array.|null} [tables] MinimalSchema tables + * @interface IFieldEvent + * @property {string|null} [table_name] FieldEvent table_name + * @property {Array.|null} [fields] FieldEvent fields + * @property {string|null} [keyspace] FieldEvent keyspace + * @property {string|null} [shard] FieldEvent shard + * @property {boolean|null} [enum_set_string_values] FieldEvent enum_set_string_values + * @property {boolean|null} [is_internal_table] FieldEvent is_internal_table */ /** - * Constructs a new MinimalSchema. + * Constructs a new FieldEvent. * @memberof binlogdata - * @classdesc Represents a MinimalSchema. - * @implements IMinimalSchema + * @classdesc Represents a FieldEvent. + * @implements IFieldEvent * @constructor - * @param {binlogdata.IMinimalSchema=} [properties] Properties to set + * @param {binlogdata.IFieldEvent=} [properties] Properties to set */ - function MinimalSchema(properties) { - this.tables = []; + function FieldEvent(properties) { + this.fields = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92054,78 +91869,148 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * MinimalSchema tables. - * @member {Array.} tables - * @memberof binlogdata.MinimalSchema + * FieldEvent table_name. + * @member {string} table_name + * @memberof binlogdata.FieldEvent * @instance */ - MinimalSchema.prototype.tables = $util.emptyArray; + FieldEvent.prototype.table_name = ""; /** - * Creates a new MinimalSchema instance using the specified properties. + * FieldEvent fields. + * @member {Array.} fields + * @memberof binlogdata.FieldEvent + * @instance + */ + FieldEvent.prototype.fields = $util.emptyArray; + + /** + * FieldEvent keyspace. + * @member {string} keyspace + * @memberof binlogdata.FieldEvent + * @instance + */ + FieldEvent.prototype.keyspace = ""; + + /** + * FieldEvent shard. + * @member {string} shard + * @memberof binlogdata.FieldEvent + * @instance + */ + FieldEvent.prototype.shard = ""; + + /** + * FieldEvent enum_set_string_values. + * @member {boolean} enum_set_string_values + * @memberof binlogdata.FieldEvent + * @instance + */ + FieldEvent.prototype.enum_set_string_values = false; + + /** + * FieldEvent is_internal_table. + * @member {boolean} is_internal_table + * @memberof binlogdata.FieldEvent + * @instance + */ + FieldEvent.prototype.is_internal_table = false; + + /** + * Creates a new FieldEvent instance using the specified properties. * @function create - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.FieldEvent * @static - * @param {binlogdata.IMinimalSchema=} [properties] Properties to set - * @returns {binlogdata.MinimalSchema} MinimalSchema instance + * @param {binlogdata.IFieldEvent=} [properties] Properties to set + * @returns {binlogdata.FieldEvent} FieldEvent instance */ - MinimalSchema.create = function create(properties) { - return new MinimalSchema(properties); + FieldEvent.create = function create(properties) { + return new FieldEvent(properties); }; /** - * Encodes the specified MinimalSchema message. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. + * Encodes the specified FieldEvent message. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. * @function encode - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.FieldEvent * @static - * @param {binlogdata.IMinimalSchema} message MinimalSchema message or plain object to encode + * @param {binlogdata.IFieldEvent} message FieldEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MinimalSchema.encode = function encode(message, writer) { + FieldEvent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tables != null && message.tables.length) - for (let i = 0; i < message.tables.length; ++i) - $root.binlogdata.MinimalTable.encode(message.tables[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.table_name != null && Object.hasOwnProperty.call(message, "table_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.table_name); + if (message.fields != null && message.fields.length) + for (let i = 0; i < message.fields.length; ++i) + $root.query.Field.encode(message.fields[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.shard); + if (message.enum_set_string_values != null && Object.hasOwnProperty.call(message, "enum_set_string_values")) + writer.uint32(/* id 25, wireType 0 =*/200).bool(message.enum_set_string_values); + if (message.is_internal_table != null && Object.hasOwnProperty.call(message, "is_internal_table")) + writer.uint32(/* id 26, wireType 0 =*/208).bool(message.is_internal_table); return writer; }; /** - * Encodes the specified MinimalSchema message, length delimited. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. + * Encodes the specified FieldEvent message, length delimited. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.FieldEvent * @static - * @param {binlogdata.IMinimalSchema} message MinimalSchema message or plain object to encode + * @param {binlogdata.IFieldEvent} message FieldEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MinimalSchema.encodeDelimited = function encodeDelimited(message, writer) { + FieldEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MinimalSchema message from the specified reader or buffer. + * Decodes a FieldEvent message from the specified reader or buffer. * @function decode - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.FieldEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.MinimalSchema} MinimalSchema + * @returns {binlogdata.FieldEvent} FieldEvent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MinimalSchema.decode = function decode(reader, length) { + FieldEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.MinimalSchema(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.FieldEvent(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.push($root.binlogdata.MinimalTable.decode(reader, reader.uint32())); + message.table_name = reader.string(); + break; + } + case 2: { + if (!(message.fields && message.fields.length)) + message.fields = []; + message.fields.push($root.query.Field.decode(reader, reader.uint32())); + break; + } + case 3: { + message.keyspace = reader.string(); + break; + } + case 4: { + message.shard = reader.string(); + break; + } + case 25: { + message.enum_set_string_values = reader.bool(); + break; + } + case 26: { + message.is_internal_table = reader.bool(); break; } default: @@ -92137,142 +92022,185 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a MinimalSchema message from the specified reader or buffer, length delimited. + * Decodes a FieldEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.FieldEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.MinimalSchema} MinimalSchema + * @returns {binlogdata.FieldEvent} FieldEvent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MinimalSchema.decodeDelimited = function decodeDelimited(reader) { + FieldEvent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MinimalSchema message. + * Verifies a FieldEvent message. * @function verify - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.FieldEvent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MinimalSchema.verify = function verify(message) { + FieldEvent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!Array.isArray(message.tables)) - return "tables: array expected"; - for (let i = 0; i < message.tables.length; ++i) { - let error = $root.binlogdata.MinimalTable.verify(message.tables[i]); + if (message.table_name != null && message.hasOwnProperty("table_name")) + if (!$util.isString(message.table_name)) + return "table_name: string expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (let i = 0; i < message.fields.length; ++i) { + let error = $root.query.Field.verify(message.fields[i]); if (error) - return "tables." + error; + return "fields." + 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.enum_set_string_values != null && message.hasOwnProperty("enum_set_string_values")) + if (typeof message.enum_set_string_values !== "boolean") + return "enum_set_string_values: boolean expected"; + if (message.is_internal_table != null && message.hasOwnProperty("is_internal_table")) + if (typeof message.is_internal_table !== "boolean") + return "is_internal_table: boolean expected"; return null; }; /** - * Creates a MinimalSchema message from a plain object. Also converts values to their respective internal types. + * Creates a FieldEvent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.FieldEvent * @static * @param {Object.} object Plain object - * @returns {binlogdata.MinimalSchema} MinimalSchema + * @returns {binlogdata.FieldEvent} FieldEvent */ - MinimalSchema.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.MinimalSchema) + FieldEvent.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.FieldEvent) return object; - let message = new $root.binlogdata.MinimalSchema(); - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".binlogdata.MinimalSchema.tables: array expected"); - message.tables = []; - for (let i = 0; i < object.tables.length; ++i) { - if (typeof object.tables[i] !== "object") - throw TypeError(".binlogdata.MinimalSchema.tables: object expected"); - message.tables[i] = $root.binlogdata.MinimalTable.fromObject(object.tables[i]); + let message = new $root.binlogdata.FieldEvent(); + if (object.table_name != null) + message.table_name = String(object.table_name); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".binlogdata.FieldEvent.fields: array expected"); + message.fields = []; + for (let i = 0; i < object.fields.length; ++i) { + if (typeof object.fields[i] !== "object") + throw TypeError(".binlogdata.FieldEvent.fields: object expected"); + message.fields[i] = $root.query.Field.fromObject(object.fields[i]); } } + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.enum_set_string_values != null) + message.enum_set_string_values = Boolean(object.enum_set_string_values); + if (object.is_internal_table != null) + message.is_internal_table = Boolean(object.is_internal_table); return message; }; /** - * Creates a plain object from a MinimalSchema message. Also converts values to other types if specified. + * Creates a plain object from a FieldEvent message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.FieldEvent * @static - * @param {binlogdata.MinimalSchema} message MinimalSchema + * @param {binlogdata.FieldEvent} message FieldEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MinimalSchema.toObject = function toObject(message, options) { + FieldEvent.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.tables = []; - if (message.tables && message.tables.length) { - object.tables = []; - for (let j = 0; j < message.tables.length; ++j) - object.tables[j] = $root.binlogdata.MinimalTable.toObject(message.tables[j], options); + object.fields = []; + if (options.defaults) { + object.table_name = ""; + object.keyspace = ""; + object.shard = ""; + object.enum_set_string_values = false; + object.is_internal_table = false; + } + if (message.table_name != null && message.hasOwnProperty("table_name")) + object.table_name = message.table_name; + if (message.fields && message.fields.length) { + object.fields = []; + for (let j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], 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.enum_set_string_values != null && message.hasOwnProperty("enum_set_string_values")) + object.enum_set_string_values = message.enum_set_string_values; + if (message.is_internal_table != null && message.hasOwnProperty("is_internal_table")) + object.is_internal_table = message.is_internal_table; return object; }; /** - * Converts this MinimalSchema to JSON. + * Converts this FieldEvent to JSON. * @function toJSON - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.FieldEvent * @instance * @returns {Object.} JSON object */ - MinimalSchema.prototype.toJSON = function toJSON() { + FieldEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MinimalSchema + * Gets the default type url for FieldEvent * @function getTypeUrl - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.FieldEvent * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MinimalSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FieldEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.MinimalSchema"; + return typeUrlPrefix + "/binlogdata.FieldEvent"; }; - return MinimalSchema; + return FieldEvent; })(); - binlogdata.VStreamOptions = (function() { + binlogdata.ShardGtid = (function() { /** - * Properties of a VStreamOptions. + * Properties of a ShardGtid. * @memberof binlogdata - * @interface IVStreamOptions - * @property {Array.|null} [internal_tables] VStreamOptions internal_tables - * @property {Object.|null} [config_overrides] VStreamOptions config_overrides + * @interface IShardGtid + * @property {string|null} [keyspace] ShardGtid keyspace + * @property {string|null} [shard] ShardGtid shard + * @property {string|null} [gtid] ShardGtid gtid + * @property {Array.|null} [table_p_ks] ShardGtid table_p_ks */ /** - * Constructs a new VStreamOptions. + * Constructs a new ShardGtid. * @memberof binlogdata - * @classdesc Represents a VStreamOptions. - * @implements IVStreamOptions + * @classdesc Represents a ShardGtid. + * @implements IShardGtid * @constructor - * @param {binlogdata.IVStreamOptions=} [properties] Properties to set + * @param {binlogdata.IShardGtid=} [properties] Properties to set */ - function VStreamOptions(properties) { - this.internal_tables = []; - this.config_overrides = {}; + function ShardGtid(properties) { + this.table_p_ks = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92280,112 +92208,120 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * VStreamOptions internal_tables. - * @member {Array.} internal_tables - * @memberof binlogdata.VStreamOptions + * ShardGtid keyspace. + * @member {string} keyspace + * @memberof binlogdata.ShardGtid * @instance */ - VStreamOptions.prototype.internal_tables = $util.emptyArray; + ShardGtid.prototype.keyspace = ""; /** - * VStreamOptions config_overrides. - * @member {Object.} config_overrides - * @memberof binlogdata.VStreamOptions + * ShardGtid shard. + * @member {string} shard + * @memberof binlogdata.ShardGtid * @instance */ - VStreamOptions.prototype.config_overrides = $util.emptyObject; + ShardGtid.prototype.shard = ""; /** - * Creates a new VStreamOptions instance using the specified properties. - * @function create - * @memberof binlogdata.VStreamOptions - * @static - * @param {binlogdata.IVStreamOptions=} [properties] Properties to set - * @returns {binlogdata.VStreamOptions} VStreamOptions instance + * ShardGtid gtid. + * @member {string} gtid + * @memberof binlogdata.ShardGtid + * @instance */ - VStreamOptions.create = function create(properties) { - return new VStreamOptions(properties); + ShardGtid.prototype.gtid = ""; + + /** + * ShardGtid table_p_ks. + * @member {Array.} table_p_ks + * @memberof binlogdata.ShardGtid + * @instance + */ + ShardGtid.prototype.table_p_ks = $util.emptyArray; + + /** + * Creates a new ShardGtid instance using the specified properties. + * @function create + * @memberof binlogdata.ShardGtid + * @static + * @param {binlogdata.IShardGtid=} [properties] Properties to set + * @returns {binlogdata.ShardGtid} ShardGtid instance + */ + ShardGtid.create = function create(properties) { + return new ShardGtid(properties); }; /** - * Encodes the specified VStreamOptions message. Does not implicitly {@link binlogdata.VStreamOptions.verify|verify} messages. + * Encodes the specified ShardGtid message. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamOptions + * @memberof binlogdata.ShardGtid * @static - * @param {binlogdata.IVStreamOptions} message VStreamOptions message or plain object to encode + * @param {binlogdata.IShardGtid} message ShardGtid message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamOptions.encode = function encode(message, writer) { + ShardGtid.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.internal_tables != null && message.internal_tables.length) - for (let i = 0; i < message.internal_tables.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.internal_tables[i]); - if (message.config_overrides != null && Object.hasOwnProperty.call(message, "config_overrides")) - for (let keys = Object.keys(message.config_overrides), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config_overrides[keys[i]]).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.gtid != null && Object.hasOwnProperty.call(message, "gtid")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.gtid); + if (message.table_p_ks != null && message.table_p_ks.length) + for (let i = 0; i < message.table_p_ks.length; ++i) + $root.binlogdata.TableLastPK.encode(message.table_p_ks[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified VStreamOptions message, length delimited. Does not implicitly {@link binlogdata.VStreamOptions.verify|verify} messages. + * Encodes the specified ShardGtid message, length delimited. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamOptions + * @memberof binlogdata.ShardGtid * @static - * @param {binlogdata.IVStreamOptions} message VStreamOptions message or plain object to encode + * @param {binlogdata.IShardGtid} message ShardGtid message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamOptions.encodeDelimited = function encodeDelimited(message, writer) { + ShardGtid.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamOptions message from the specified reader or buffer. + * Decodes a ShardGtid message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamOptions + * @memberof binlogdata.ShardGtid * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.VStreamOptions} VStreamOptions + * @returns {binlogdata.ShardGtid} ShardGtid * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamOptions.decode = function decode(reader, length) { + ShardGtid.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamOptions(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.ShardGtid(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.internal_tables && message.internal_tables.length)) - message.internal_tables = []; - message.internal_tables.push(reader.string()); + message.keyspace = reader.string(); break; } case 2: { - if (message.config_overrides === $util.emptyObject) - message.config_overrides = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.config_overrides[key] = value; + message.shard = reader.string(); + break; + } + case 3: { + message.gtid = reader.string(); + break; + } + case 4: { + if (!(message.table_p_ks && message.table_p_ks.length)) + message.table_p_ks = []; + message.table_p_ks.push($root.binlogdata.TableLastPK.decode(reader, reader.uint32())); break; } default: @@ -92397,164 +92333,166 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a VStreamOptions message from the specified reader or buffer, length delimited. + * Decodes a ShardGtid message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.VStreamOptions + * @memberof binlogdata.ShardGtid * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamOptions} VStreamOptions + * @returns {binlogdata.ShardGtid} ShardGtid * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamOptions.decodeDelimited = function decodeDelimited(reader) { + ShardGtid.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VStreamOptions message. + * Verifies a ShardGtid message. * @function verify - * @memberof binlogdata.VStreamOptions + * @memberof binlogdata.ShardGtid * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VStreamOptions.verify = function verify(message) { + ShardGtid.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.internal_tables != null && message.hasOwnProperty("internal_tables")) { - if (!Array.isArray(message.internal_tables)) - return "internal_tables: array expected"; - for (let i = 0; i < message.internal_tables.length; ++i) - if (!$util.isString(message.internal_tables[i])) - return "internal_tables: string[] expected"; - } - if (message.config_overrides != null && message.hasOwnProperty("config_overrides")) { - if (!$util.isObject(message.config_overrides)) - return "config_overrides: object expected"; - let key = Object.keys(message.config_overrides); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.config_overrides[key[i]])) - return "config_overrides: string{k:string} expected"; + 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.gtid != null && message.hasOwnProperty("gtid")) + if (!$util.isString(message.gtid)) + return "gtid: string expected"; + if (message.table_p_ks != null && message.hasOwnProperty("table_p_ks")) { + if (!Array.isArray(message.table_p_ks)) + return "table_p_ks: array expected"; + for (let i = 0; i < message.table_p_ks.length; ++i) { + let error = $root.binlogdata.TableLastPK.verify(message.table_p_ks[i]); + if (error) + return "table_p_ks." + error; + } } return null; }; /** - * Creates a VStreamOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ShardGtid message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.VStreamOptions + * @memberof binlogdata.ShardGtid * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamOptions} VStreamOptions + * @returns {binlogdata.ShardGtid} ShardGtid */ - VStreamOptions.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamOptions) + ShardGtid.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.ShardGtid) return object; - let message = new $root.binlogdata.VStreamOptions(); - if (object.internal_tables) { - if (!Array.isArray(object.internal_tables)) - throw TypeError(".binlogdata.VStreamOptions.internal_tables: array expected"); - message.internal_tables = []; - for (let i = 0; i < object.internal_tables.length; ++i) - message.internal_tables[i] = String(object.internal_tables[i]); - } - if (object.config_overrides) { - if (typeof object.config_overrides !== "object") - throw TypeError(".binlogdata.VStreamOptions.config_overrides: object expected"); - message.config_overrides = {}; - for (let keys = Object.keys(object.config_overrides), i = 0; i < keys.length; ++i) - message.config_overrides[keys[i]] = String(object.config_overrides[keys[i]]); + let message = new $root.binlogdata.ShardGtid(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.gtid != null) + message.gtid = String(object.gtid); + if (object.table_p_ks) { + if (!Array.isArray(object.table_p_ks)) + throw TypeError(".binlogdata.ShardGtid.table_p_ks: array expected"); + message.table_p_ks = []; + for (let i = 0; i < object.table_p_ks.length; ++i) { + if (typeof object.table_p_ks[i] !== "object") + throw TypeError(".binlogdata.ShardGtid.table_p_ks: object expected"); + message.table_p_ks[i] = $root.binlogdata.TableLastPK.fromObject(object.table_p_ks[i]); + } } return message; }; /** - * Creates a plain object from a VStreamOptions message. Also converts values to other types if specified. + * Creates a plain object from a ShardGtid message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.VStreamOptions + * @memberof binlogdata.ShardGtid * @static - * @param {binlogdata.VStreamOptions} message VStreamOptions + * @param {binlogdata.ShardGtid} message ShardGtid * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamOptions.toObject = function toObject(message, options) { + ShardGtid.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.internal_tables = []; - if (options.objects || options.defaults) - object.config_overrides = {}; - if (message.internal_tables && message.internal_tables.length) { - object.internal_tables = []; - for (let j = 0; j < message.internal_tables.length; ++j) - object.internal_tables[j] = message.internal_tables[j]; + object.table_p_ks = []; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.gtid = ""; } - let keys2; - if (message.config_overrides && (keys2 = Object.keys(message.config_overrides)).length) { - object.config_overrides = {}; - for (let j = 0; j < keys2.length; ++j) - object.config_overrides[keys2[j]] = message.config_overrides[keys2[j]]; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.gtid != null && message.hasOwnProperty("gtid")) + object.gtid = message.gtid; + if (message.table_p_ks && message.table_p_ks.length) { + object.table_p_ks = []; + for (let j = 0; j < message.table_p_ks.length; ++j) + object.table_p_ks[j] = $root.binlogdata.TableLastPK.toObject(message.table_p_ks[j], options); } return object; }; /** - * Converts this VStreamOptions to JSON. + * Converts this ShardGtid to JSON. * @function toJSON - * @memberof binlogdata.VStreamOptions + * @memberof binlogdata.ShardGtid * @instance * @returns {Object.} JSON object */ - VStreamOptions.prototype.toJSON = function toJSON() { + ShardGtid.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VStreamOptions + * Gets the default type url for ShardGtid * @function getTypeUrl - * @memberof binlogdata.VStreamOptions + * @memberof binlogdata.ShardGtid * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VStreamOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShardGtid.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.VStreamOptions"; + return typeUrlPrefix + "/binlogdata.ShardGtid"; }; - return VStreamOptions; + return ShardGtid; })(); - binlogdata.VStreamRequest = (function() { + binlogdata.VGtid = (function() { /** - * Properties of a VStreamRequest. + * Properties of a VGtid. * @memberof binlogdata - * @interface IVStreamRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] VStreamRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] VStreamRequest immediate_caller_id - * @property {query.ITarget|null} [target] VStreamRequest target - * @property {string|null} [position] VStreamRequest position - * @property {binlogdata.IFilter|null} [filter] VStreamRequest filter - * @property {Array.|null} [table_last_p_ks] VStreamRequest table_last_p_ks - * @property {binlogdata.IVStreamOptions|null} [options] VStreamRequest options + * @interface IVGtid + * @property {Array.|null} [shard_gtids] VGtid shard_gtids */ /** - * Constructs a new VStreamRequest. + * Constructs a new VGtid. * @memberof binlogdata - * @classdesc Represents a VStreamRequest. - * @implements IVStreamRequest + * @classdesc Represents a VGtid. + * @implements IVGtid * @constructor - * @param {binlogdata.IVStreamRequest=} [properties] Properties to set + * @param {binlogdata.IVGtid=} [properties] Properties to set */ - function VStreamRequest(properties) { - this.table_last_p_ks = []; + function VGtid(properties) { + this.shard_gtids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92562,162 +92500,78 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * VStreamRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof binlogdata.VStreamRequest - * @instance - */ - VStreamRequest.prototype.effective_caller_id = null; - - /** - * VStreamRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof binlogdata.VStreamRequest - * @instance - */ - VStreamRequest.prototype.immediate_caller_id = null; - - /** - * VStreamRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof binlogdata.VStreamRequest - * @instance - */ - VStreamRequest.prototype.target = null; - - /** - * VStreamRequest position. - * @member {string} position - * @memberof binlogdata.VStreamRequest - * @instance - */ - VStreamRequest.prototype.position = ""; - - /** - * VStreamRequest filter. - * @member {binlogdata.IFilter|null|undefined} filter - * @memberof binlogdata.VStreamRequest - * @instance - */ - VStreamRequest.prototype.filter = null; - - /** - * VStreamRequest table_last_p_ks. - * @member {Array.} table_last_p_ks - * @memberof binlogdata.VStreamRequest - * @instance - */ - VStreamRequest.prototype.table_last_p_ks = $util.emptyArray; - - /** - * VStreamRequest options. - * @member {binlogdata.IVStreamOptions|null|undefined} options - * @memberof binlogdata.VStreamRequest + * VGtid shard_gtids. + * @member {Array.} shard_gtids + * @memberof binlogdata.VGtid * @instance */ - VStreamRequest.prototype.options = null; + VGtid.prototype.shard_gtids = $util.emptyArray; /** - * Creates a new VStreamRequest instance using the specified properties. + * Creates a new VGtid instance using the specified properties. * @function create - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.VGtid * @static - * @param {binlogdata.IVStreamRequest=} [properties] Properties to set - * @returns {binlogdata.VStreamRequest} VStreamRequest instance + * @param {binlogdata.IVGtid=} [properties] Properties to set + * @returns {binlogdata.VGtid} VGtid instance */ - VStreamRequest.create = function create(properties) { - return new VStreamRequest(properties); + VGtid.create = function create(properties) { + return new VGtid(properties); }; /** - * Encodes the specified VStreamRequest message. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. + * Encodes the specified VGtid message. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.VGtid * @static - * @param {binlogdata.IVStreamRequest} message VStreamRequest message or plain object to encode + * @param {binlogdata.IVGtid} message VGtid message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamRequest.encode = function encode(message, writer) { + VGtid.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.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.position); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - $root.binlogdata.Filter.encode(message.filter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.table_last_p_ks != null && message.table_last_p_ks.length) - for (let i = 0; i < message.table_last_p_ks.length; ++i) - $root.binlogdata.TableLastPK.encode(message.table_last_p_ks[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.binlogdata.VStreamOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.shard_gtids != null && message.shard_gtids.length) + for (let i = 0; i < message.shard_gtids.length; ++i) + $root.binlogdata.ShardGtid.encode(message.shard_gtids[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified VStreamRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. + * Encodes the specified VGtid message, length delimited. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.VGtid * @static - * @param {binlogdata.IVStreamRequest} message VStreamRequest message or plain object to encode + * @param {binlogdata.IVGtid} message VGtid message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + VGtid.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamRequest message from the specified reader or buffer. + * Decodes a VGtid message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.VGtid * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.VStreamRequest} VStreamRequest + * @returns {binlogdata.VGtid} VGtid * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamRequest.decode = function decode(reader, length) { + VGtid.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VGtid(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); - break; - } - case 2: { - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - } - case 3: { - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - } - case 4: { - message.position = reader.string(); - break; - } - case 5: { - message.filter = $root.binlogdata.Filter.decode(reader, reader.uint32()); - break; - } - case 6: { - if (!(message.table_last_p_ks && message.table_last_p_ks.length)) - message.table_last_p_ks = []; - message.table_last_p_ks.push($root.binlogdata.TableLastPK.decode(reader, reader.uint32())); - break; - } - case 7: { - message.options = $root.binlogdata.VStreamOptions.decode(reader, reader.uint32()); + if (!(message.shard_gtids && message.shard_gtids.length)) + message.shard_gtids = []; + message.shard_gtids.push($root.binlogdata.ShardGtid.decode(reader, reader.uint32())); break; } default: @@ -92729,215 +92583,140 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a VStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a VGtid message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.VGtid * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamRequest} VStreamRequest + * @returns {binlogdata.VGtid} VGtid * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamRequest.decodeDelimited = function decodeDelimited(reader) { + VGtid.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VStreamRequest message. + * Verifies a VGtid message. * @function verify - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.VGtid * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VStreamRequest.verify = function verify(message) { + VGtid.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - let 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")) { - let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - let error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) { - let error = $root.binlogdata.Filter.verify(message.filter); - if (error) - return "filter." + error; - } - if (message.table_last_p_ks != null && message.hasOwnProperty("table_last_p_ks")) { - if (!Array.isArray(message.table_last_p_ks)) - return "table_last_p_ks: array expected"; - for (let i = 0; i < message.table_last_p_ks.length; ++i) { - let error = $root.binlogdata.TableLastPK.verify(message.table_last_p_ks[i]); + if (message.shard_gtids != null && message.hasOwnProperty("shard_gtids")) { + if (!Array.isArray(message.shard_gtids)) + return "shard_gtids: array expected"; + for (let i = 0; i < message.shard_gtids.length; ++i) { + let error = $root.binlogdata.ShardGtid.verify(message.shard_gtids[i]); if (error) - return "table_last_p_ks." + error; + return "shard_gtids." + error; } } - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.binlogdata.VStreamOptions.verify(message.options); - if (error) - return "options." + error; - } return null; }; /** - * Creates a VStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VGtid message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.VGtid * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamRequest} VStreamRequest + * @returns {binlogdata.VGtid} VGtid */ - VStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamRequest) + VGtid.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VGtid) return object; - let message = new $root.binlogdata.VStreamRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".binlogdata.VStreamRequest.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(".binlogdata.VStreamRequest.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(".binlogdata.VStreamRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.position != null) - message.position = String(object.position); - if (object.filter != null) { - if (typeof object.filter !== "object") - throw TypeError(".binlogdata.VStreamRequest.filter: object expected"); - message.filter = $root.binlogdata.Filter.fromObject(object.filter); - } - if (object.table_last_p_ks) { - if (!Array.isArray(object.table_last_p_ks)) - throw TypeError(".binlogdata.VStreamRequest.table_last_p_ks: array expected"); - message.table_last_p_ks = []; - for (let i = 0; i < object.table_last_p_ks.length; ++i) { - if (typeof object.table_last_p_ks[i] !== "object") - throw TypeError(".binlogdata.VStreamRequest.table_last_p_ks: object expected"); - message.table_last_p_ks[i] = $root.binlogdata.TableLastPK.fromObject(object.table_last_p_ks[i]); + let message = new $root.binlogdata.VGtid(); + if (object.shard_gtids) { + if (!Array.isArray(object.shard_gtids)) + throw TypeError(".binlogdata.VGtid.shard_gtids: array expected"); + message.shard_gtids = []; + for (let i = 0; i < object.shard_gtids.length; ++i) { + if (typeof object.shard_gtids[i] !== "object") + throw TypeError(".binlogdata.VGtid.shard_gtids: object expected"); + message.shard_gtids[i] = $root.binlogdata.ShardGtid.fromObject(object.shard_gtids[i]); } } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".binlogdata.VStreamRequest.options: object expected"); - message.options = $root.binlogdata.VStreamOptions.fromObject(object.options); - } return message; }; /** - * Creates a plain object from a VStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a VGtid message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.VGtid * @static - * @param {binlogdata.VStreamRequest} message VStreamRequest + * @param {binlogdata.VGtid} message VGtid * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamRequest.toObject = function toObject(message, options) { + VGtid.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.table_last_p_ks = []; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.position = ""; - object.filter = 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.position != null && message.hasOwnProperty("position")) - object.position = message.position; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = $root.binlogdata.Filter.toObject(message.filter, options); - if (message.table_last_p_ks && message.table_last_p_ks.length) { - object.table_last_p_ks = []; - for (let j = 0; j < message.table_last_p_ks.length; ++j) - object.table_last_p_ks[j] = $root.binlogdata.TableLastPK.toObject(message.table_last_p_ks[j], options); + object.shard_gtids = []; + if (message.shard_gtids && message.shard_gtids.length) { + object.shard_gtids = []; + for (let j = 0; j < message.shard_gtids.length; ++j) + object.shard_gtids[j] = $root.binlogdata.ShardGtid.toObject(message.shard_gtids[j], options); } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.binlogdata.VStreamOptions.toObject(message.options, options); return object; }; /** - * Converts this VStreamRequest to JSON. + * Converts this VGtid to JSON. * @function toJSON - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.VGtid * @instance * @returns {Object.} JSON object */ - VStreamRequest.prototype.toJSON = function toJSON() { + VGtid.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VStreamRequest + * Gets the default type url for VGtid * @function getTypeUrl - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.VGtid * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VGtid.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.VStreamRequest"; + return typeUrlPrefix + "/binlogdata.VGtid"; }; - return VStreamRequest; + return VGtid; })(); - binlogdata.VStreamResponse = (function() { + binlogdata.KeyspaceShard = (function() { /** - * Properties of a VStreamResponse. + * Properties of a KeyspaceShard. * @memberof binlogdata - * @interface IVStreamResponse - * @property {Array.|null} [events] VStreamResponse events + * @interface IKeyspaceShard + * @property {string|null} [keyspace] KeyspaceShard keyspace + * @property {string|null} [shard] KeyspaceShard shard */ /** - * Constructs a new VStreamResponse. + * Constructs a new KeyspaceShard. * @memberof binlogdata - * @classdesc Represents a VStreamResponse. - * @implements IVStreamResponse + * @classdesc Represents a KeyspaceShard. + * @implements IKeyspaceShard * @constructor - * @param {binlogdata.IVStreamResponse=} [properties] Properties to set + * @param {binlogdata.IKeyspaceShard=} [properties] Properties to set */ - function VStreamResponse(properties) { - this.events = []; + function KeyspaceShard(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92945,78 +92724,89 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * VStreamResponse events. - * @member {Array.} events - * @memberof binlogdata.VStreamResponse + * KeyspaceShard keyspace. + * @member {string} keyspace + * @memberof binlogdata.KeyspaceShard * @instance */ - VStreamResponse.prototype.events = $util.emptyArray; + KeyspaceShard.prototype.keyspace = ""; /** - * Creates a new VStreamResponse instance using the specified properties. + * KeyspaceShard shard. + * @member {string} shard + * @memberof binlogdata.KeyspaceShard + * @instance + */ + KeyspaceShard.prototype.shard = ""; + + /** + * Creates a new KeyspaceShard instance using the specified properties. * @function create - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.KeyspaceShard * @static - * @param {binlogdata.IVStreamResponse=} [properties] Properties to set - * @returns {binlogdata.VStreamResponse} VStreamResponse instance + * @param {binlogdata.IKeyspaceShard=} [properties] Properties to set + * @returns {binlogdata.KeyspaceShard} KeyspaceShard instance */ - VStreamResponse.create = function create(properties) { - return new VStreamResponse(properties); + KeyspaceShard.create = function create(properties) { + return new KeyspaceShard(properties); }; /** - * Encodes the specified VStreamResponse message. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. + * Encodes the specified KeyspaceShard message. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.KeyspaceShard * @static - * @param {binlogdata.IVStreamResponse} message VStreamResponse message or plain object to encode + * @param {binlogdata.IKeyspaceShard} message KeyspaceShard message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamResponse.encode = function encode(message, writer) { + KeyspaceShard.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.events != null && message.events.length) - for (let i = 0; i < message.events.length; ++i) - $root.binlogdata.VEvent.encode(message.events[i], 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); return writer; }; /** - * Encodes the specified VStreamResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. + * Encodes the specified KeyspaceShard message, length delimited. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.KeyspaceShard * @static - * @param {binlogdata.IVStreamResponse} message VStreamResponse message or plain object to encode + * @param {binlogdata.IKeyspaceShard} message KeyspaceShard message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamResponse.encodeDelimited = function encodeDelimited(message, writer) { + KeyspaceShard.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamResponse message from the specified reader or buffer. + * Decodes a KeyspaceShard message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.KeyspaceShard * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.VStreamResponse} VStreamResponse + * @returns {binlogdata.KeyspaceShard} KeyspaceShard * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamResponse.decode = function decode(reader, length) { + KeyspaceShard.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.KeyspaceShard(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.binlogdata.VEvent.decode(reader, reader.uint32())); + message.keyspace = reader.string(); + break; + } + case 2: { + message.shard = reader.string(); break; } default: @@ -93028,144 +92818,155 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a VStreamResponse message from the specified reader or buffer, length delimited. + * Decodes a KeyspaceShard message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.KeyspaceShard * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamResponse} VStreamResponse + * @returns {binlogdata.KeyspaceShard} KeyspaceShard * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamResponse.decodeDelimited = function decodeDelimited(reader) { + KeyspaceShard.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VStreamResponse message. + * Verifies a KeyspaceShard message. * @function verify - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.KeyspaceShard * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VStreamResponse.verify = function verify(message) { + KeyspaceShard.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (let i = 0; i < message.events.length; ++i) { - let error = $root.binlogdata.VEvent.verify(message.events[i]); - if (error) - return "events." + 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"; return null; }; /** - * Creates a VStreamResponse message from a plain object. Also converts values to their respective internal types. + * Creates a KeyspaceShard message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.KeyspaceShard * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamResponse} VStreamResponse + * @returns {binlogdata.KeyspaceShard} KeyspaceShard */ - VStreamResponse.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamResponse) + KeyspaceShard.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.KeyspaceShard) return object; - let message = new $root.binlogdata.VStreamResponse(); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".binlogdata.VStreamResponse.events: array expected"); - message.events = []; - for (let i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".binlogdata.VStreamResponse.events: object expected"); - message.events[i] = $root.binlogdata.VEvent.fromObject(object.events[i]); - } - } + let message = new $root.binlogdata.KeyspaceShard(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); return message; }; /** - * Creates a plain object from a VStreamResponse message. Also converts values to other types if specified. + * Creates a plain object from a KeyspaceShard message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.KeyspaceShard * @static - * @param {binlogdata.VStreamResponse} message VStreamResponse + * @param {binlogdata.KeyspaceShard} message KeyspaceShard * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamResponse.toObject = function toObject(message, options) { + KeyspaceShard.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (message.events && message.events.length) { - object.events = []; - for (let j = 0; j < message.events.length; ++j) - object.events[j] = $root.binlogdata.VEvent.toObject(message.events[j], options); + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; return object; }; /** - * Converts this VStreamResponse to JSON. + * Converts this KeyspaceShard to JSON. * @function toJSON - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.KeyspaceShard * @instance * @returns {Object.} JSON object */ - VStreamResponse.prototype.toJSON = function toJSON() { + KeyspaceShard.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VStreamResponse + * Gets the default type url for KeyspaceShard * @function getTypeUrl - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.KeyspaceShard * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VStreamResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + KeyspaceShard.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.VStreamResponse"; + return typeUrlPrefix + "/binlogdata.KeyspaceShard"; }; - return VStreamResponse; + return KeyspaceShard; })(); - binlogdata.VStreamRowsRequest = (function() { + /** + * MigrationType enum. + * @name binlogdata.MigrationType + * @enum {number} + * @property {number} TABLES=0 TABLES value + * @property {number} SHARDS=1 SHARDS value + */ + binlogdata.MigrationType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TABLES"] = 0; + values[valuesById[1] = "SHARDS"] = 1; + return values; + })(); + + binlogdata.Journal = (function() { /** - * Properties of a VStreamRowsRequest. + * Properties of a Journal. * @memberof binlogdata - * @interface IVStreamRowsRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] VStreamRowsRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] VStreamRowsRequest immediate_caller_id - * @property {query.ITarget|null} [target] VStreamRowsRequest target - * @property {string|null} [query] VStreamRowsRequest query - * @property {query.IQueryResult|null} [lastpk] VStreamRowsRequest lastpk - * @property {binlogdata.IVStreamOptions|null} [options] VStreamRowsRequest options + * @interface IJournal + * @property {number|Long|null} [id] Journal id + * @property {binlogdata.MigrationType|null} [migration_type] Journal migration_type + * @property {Array.|null} [tables] Journal tables + * @property {string|null} [local_position] Journal local_position + * @property {Array.|null} [shard_gtids] Journal shard_gtids + * @property {Array.|null} [participants] Journal participants + * @property {Array.|null} [source_workflows] Journal source_workflows */ /** - * Constructs a new VStreamRowsRequest. + * Constructs a new Journal. * @memberof binlogdata - * @classdesc Represents a VStreamRowsRequest. - * @implements IVStreamRowsRequest + * @classdesc Represents a Journal. + * @implements IJournal * @constructor - * @param {binlogdata.IVStreamRowsRequest=} [properties] Properties to set + * @param {binlogdata.IJournal=} [properties] Properties to set */ - function VStreamRowsRequest(properties) { + function Journal(properties) { + this.tables = []; + this.shard_gtids = []; + this.participants = []; + this.source_workflows = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93173,145 +92974,171 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * VStreamRowsRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof binlogdata.VStreamRowsRequest + * Journal id. + * @member {number|Long} id + * @memberof binlogdata.Journal * @instance */ - VStreamRowsRequest.prototype.effective_caller_id = null; + Journal.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * VStreamRowsRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof binlogdata.VStreamRowsRequest + * Journal migration_type. + * @member {binlogdata.MigrationType} migration_type + * @memberof binlogdata.Journal * @instance */ - VStreamRowsRequest.prototype.immediate_caller_id = null; + Journal.prototype.migration_type = 0; /** - * VStreamRowsRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof binlogdata.VStreamRowsRequest + * Journal tables. + * @member {Array.} tables + * @memberof binlogdata.Journal * @instance */ - VStreamRowsRequest.prototype.target = null; + Journal.prototype.tables = $util.emptyArray; /** - * VStreamRowsRequest query. - * @member {string} query - * @memberof binlogdata.VStreamRowsRequest + * Journal local_position. + * @member {string} local_position + * @memberof binlogdata.Journal * @instance */ - VStreamRowsRequest.prototype.query = ""; + Journal.prototype.local_position = ""; /** - * VStreamRowsRequest lastpk. - * @member {query.IQueryResult|null|undefined} lastpk - * @memberof binlogdata.VStreamRowsRequest + * Journal shard_gtids. + * @member {Array.} shard_gtids + * @memberof binlogdata.Journal * @instance */ - VStreamRowsRequest.prototype.lastpk = null; + Journal.prototype.shard_gtids = $util.emptyArray; /** - * VStreamRowsRequest options. - * @member {binlogdata.IVStreamOptions|null|undefined} options - * @memberof binlogdata.VStreamRowsRequest + * Journal participants. + * @member {Array.} participants + * @memberof binlogdata.Journal * @instance */ - VStreamRowsRequest.prototype.options = null; + Journal.prototype.participants = $util.emptyArray; /** - * Creates a new VStreamRowsRequest instance using the specified properties. + * Journal source_workflows. + * @member {Array.} source_workflows + * @memberof binlogdata.Journal + * @instance + */ + Journal.prototype.source_workflows = $util.emptyArray; + + /** + * Creates a new Journal instance using the specified properties. * @function create - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.Journal * @static - * @param {binlogdata.IVStreamRowsRequest=} [properties] Properties to set - * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest instance + * @param {binlogdata.IJournal=} [properties] Properties to set + * @returns {binlogdata.Journal} Journal instance */ - VStreamRowsRequest.create = function create(properties) { - return new VStreamRowsRequest(properties); + Journal.create = function create(properties) { + return new Journal(properties); }; /** - * Encodes the specified VStreamRowsRequest message. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. + * Encodes the specified Journal message. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.Journal * @static - * @param {binlogdata.IVStreamRowsRequest} message VStreamRowsRequest message or plain object to encode + * @param {binlogdata.IJournal} message Journal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamRowsRequest.encode = function encode(message, writer) { + Journal.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")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.query); - if (message.lastpk != null && Object.hasOwnProperty.call(message, "lastpk")) - $root.query.QueryResult.encode(message.lastpk, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.binlogdata.VStreamOptions.encode(message.options, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); + if (message.migration_type != null && Object.hasOwnProperty.call(message, "migration_type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.migration_type); + if (message.tables != null && message.tables.length) + for (let i = 0; i < message.tables.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tables[i]); + if (message.local_position != null && Object.hasOwnProperty.call(message, "local_position")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.local_position); + if (message.shard_gtids != null && message.shard_gtids.length) + for (let i = 0; i < message.shard_gtids.length; ++i) + $root.binlogdata.ShardGtid.encode(message.shard_gtids[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.participants != null && message.participants.length) + for (let i = 0; i < message.participants.length; ++i) + $root.binlogdata.KeyspaceShard.encode(message.participants[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.source_workflows != null && message.source_workflows.length) + for (let i = 0; i < message.source_workflows.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.source_workflows[i]); return writer; }; /** - * Encodes the specified VStreamRowsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. + * Encodes the specified Journal message, length delimited. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.Journal * @static - * @param {binlogdata.IVStreamRowsRequest} message VStreamRowsRequest message or plain object to encode + * @param {binlogdata.IJournal} message Journal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamRowsRequest.encodeDelimited = function encodeDelimited(message, writer) { + Journal.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamRowsRequest message from the specified reader or buffer. + * Decodes a Journal message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.Journal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest + * @returns {binlogdata.Journal} Journal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamRowsRequest.decode = function decode(reader, length) { + Journal.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRowsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Journal(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.id = reader.int64(); break; } case 2: { - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + message.migration_type = reader.int32(); break; } case 3: { - message.target = $root.query.Target.decode(reader, reader.uint32()); + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); break; } case 4: { - message.query = reader.string(); + message.local_position = reader.string(); break; } case 5: { - message.lastpk = $root.query.QueryResult.decode(reader, reader.uint32()); + if (!(message.shard_gtids && message.shard_gtids.length)) + message.shard_gtids = []; + message.shard_gtids.push($root.binlogdata.ShardGtid.decode(reader, reader.uint32())); break; } case 6: { - message.options = $root.binlogdata.VStreamOptions.decode(reader, reader.uint32()); + if (!(message.participants && message.participants.length)) + message.participants = []; + message.participants.push($root.binlogdata.KeyspaceShard.decode(reader, reader.uint32())); + break; + } + case 7: { + if (!(message.source_workflows && message.source_workflows.length)) + message.source_workflows = []; + message.source_workflows.push(reader.string()); break; } default: @@ -93323,198 +93150,278 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a VStreamRowsRequest message from the specified reader or buffer, length delimited. + * Decodes a Journal message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.Journal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest + * @returns {binlogdata.Journal} Journal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamRowsRequest.decodeDelimited = function decodeDelimited(reader) { + Journal.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VStreamRowsRequest message. + * Verifies a Journal message. * @function verify - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.Journal * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VStreamRowsRequest.verify = function verify(message) { + Journal.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - let error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + if (message.migration_type != null && message.hasOwnProperty("migration_type")) + switch (message.migration_type) { + default: + return "migration_type: enum value expected"; + case 0: + case 1: + break; + } + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (let i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; + if (message.local_position != null && message.hasOwnProperty("local_position")) + if (!$util.isString(message.local_position)) + return "local_position: string expected"; + if (message.shard_gtids != null && message.hasOwnProperty("shard_gtids")) { + if (!Array.isArray(message.shard_gtids)) + return "shard_gtids: array expected"; + for (let i = 0; i < message.shard_gtids.length; ++i) { + let error = $root.binlogdata.ShardGtid.verify(message.shard_gtids[i]); + if (error) + return "shard_gtids." + error; + } } - if (message.target != null && message.hasOwnProperty("target")) { - let error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; + if (message.participants != null && message.hasOwnProperty("participants")) { + if (!Array.isArray(message.participants)) + return "participants: array expected"; + for (let i = 0; i < message.participants.length; ++i) { + let error = $root.binlogdata.KeyspaceShard.verify(message.participants[i]); + if (error) + return "participants." + error; + } } - if (message.query != null && message.hasOwnProperty("query")) - if (!$util.isString(message.query)) - return "query: string expected"; - if (message.lastpk != null && message.hasOwnProperty("lastpk")) { - let error = $root.query.QueryResult.verify(message.lastpk); - if (error) - return "lastpk." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.binlogdata.VStreamOptions.verify(message.options); - if (error) - return "options." + error; + if (message.source_workflows != null && message.hasOwnProperty("source_workflows")) { + if (!Array.isArray(message.source_workflows)) + return "source_workflows: array expected"; + for (let i = 0; i < message.source_workflows.length; ++i) + if (!$util.isString(message.source_workflows[i])) + return "source_workflows: string[] expected"; } return null; }; /** - * Creates a VStreamRowsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Journal message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.Journal * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest + * @returns {binlogdata.Journal} Journal */ - VStreamRowsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamRowsRequest) + Journal.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.Journal) return object; - let message = new $root.binlogdata.VStreamRowsRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".binlogdata.VStreamRowsRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + let message = new $root.binlogdata.Journal(); + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = false; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); + switch (object.migration_type) { + default: + if (typeof object.migration_type === "number") { + message.migration_type = object.migration_type; + break; + } + break; + case "TABLES": + case 0: + message.migration_type = 0; + break; + case "SHARDS": + case 1: + message.migration_type = 1; + break; } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".binlogdata.VStreamRowsRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".binlogdata.Journal.tables: array expected"); + message.tables = []; + for (let i = 0; i < object.tables.length; ++i) + message.tables[i] = String(object.tables[i]); } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".binlogdata.VStreamRowsRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); + if (object.local_position != null) + message.local_position = String(object.local_position); + if (object.shard_gtids) { + if (!Array.isArray(object.shard_gtids)) + throw TypeError(".binlogdata.Journal.shard_gtids: array expected"); + message.shard_gtids = []; + for (let i = 0; i < object.shard_gtids.length; ++i) { + if (typeof object.shard_gtids[i] !== "object") + throw TypeError(".binlogdata.Journal.shard_gtids: object expected"); + message.shard_gtids[i] = $root.binlogdata.ShardGtid.fromObject(object.shard_gtids[i]); + } } - if (object.query != null) - message.query = String(object.query); - if (object.lastpk != null) { - if (typeof object.lastpk !== "object") - throw TypeError(".binlogdata.VStreamRowsRequest.lastpk: object expected"); - message.lastpk = $root.query.QueryResult.fromObject(object.lastpk); + if (object.participants) { + if (!Array.isArray(object.participants)) + throw TypeError(".binlogdata.Journal.participants: array expected"); + message.participants = []; + for (let i = 0; i < object.participants.length; ++i) { + if (typeof object.participants[i] !== "object") + throw TypeError(".binlogdata.Journal.participants: object expected"); + message.participants[i] = $root.binlogdata.KeyspaceShard.fromObject(object.participants[i]); + } } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".binlogdata.VStreamRowsRequest.options: object expected"); - message.options = $root.binlogdata.VStreamOptions.fromObject(object.options); + if (object.source_workflows) { + if (!Array.isArray(object.source_workflows)) + throw TypeError(".binlogdata.Journal.source_workflows: array expected"); + message.source_workflows = []; + for (let i = 0; i < object.source_workflows.length; ++i) + message.source_workflows[i] = String(object.source_workflows[i]); } return message; }; /** - * Creates a plain object from a VStreamRowsRequest message. Also converts values to other types if specified. + * Creates a plain object from a Journal message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.Journal * @static - * @param {binlogdata.VStreamRowsRequest} message VStreamRowsRequest + * @param {binlogdata.Journal} message Journal * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamRowsRequest.toObject = function toObject(message, options) { + Journal.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.tables = []; + object.shard_gtids = []; + object.participants = []; + object.source_workflows = []; + } if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.query = ""; - object.lastpk = null; - object.options = null; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.id = options.longs === String ? "0" : 0; + object.migration_type = options.enums === String ? "TABLES" : 0; + object.local_position = ""; + } + if (message.id != null && message.hasOwnProperty("id")) + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; + if (message.migration_type != null && message.hasOwnProperty("migration_type")) + object.migration_type = options.enums === String ? $root.binlogdata.MigrationType[message.migration_type] === undefined ? message.migration_type : $root.binlogdata.MigrationType[message.migration_type] : message.migration_type; + if (message.tables && message.tables.length) { + object.tables = []; + for (let j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; + } + if (message.local_position != null && message.hasOwnProperty("local_position")) + object.local_position = message.local_position; + if (message.shard_gtids && message.shard_gtids.length) { + object.shard_gtids = []; + for (let j = 0; j < message.shard_gtids.length; ++j) + object.shard_gtids[j] = $root.binlogdata.ShardGtid.toObject(message.shard_gtids[j], options); + } + if (message.participants && message.participants.length) { + object.participants = []; + for (let j = 0; j < message.participants.length; ++j) + object.participants[j] = $root.binlogdata.KeyspaceShard.toObject(message.participants[j], options); + } + if (message.source_workflows && message.source_workflows.length) { + object.source_workflows = []; + for (let j = 0; j < message.source_workflows.length; ++j) + object.source_workflows[j] = message.source_workflows[j]; } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = message.query; - if (message.lastpk != null && message.hasOwnProperty("lastpk")) - object.lastpk = $root.query.QueryResult.toObject(message.lastpk, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.binlogdata.VStreamOptions.toObject(message.options, options); return object; }; /** - * Converts this VStreamRowsRequest to JSON. + * Converts this Journal to JSON. * @function toJSON - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.Journal * @instance * @returns {Object.} JSON object */ - VStreamRowsRequest.prototype.toJSON = function toJSON() { + Journal.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VStreamRowsRequest + * Gets the default type url for Journal * @function getTypeUrl - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.Journal * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VStreamRowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Journal.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.VStreamRowsRequest"; + return typeUrlPrefix + "/binlogdata.Journal"; }; - return VStreamRowsRequest; + return Journal; })(); - binlogdata.VStreamRowsResponse = (function() { + binlogdata.VEvent = (function() { /** - * Properties of a VStreamRowsResponse. + * Properties of a VEvent. * @memberof binlogdata - * @interface IVStreamRowsResponse - * @property {Array.|null} [fields] VStreamRowsResponse fields - * @property {Array.|null} [pkfields] VStreamRowsResponse pkfields - * @property {string|null} [gtid] VStreamRowsResponse gtid - * @property {Array.|null} [rows] VStreamRowsResponse rows - * @property {query.IRow|null} [lastpk] VStreamRowsResponse lastpk - * @property {boolean|null} [throttled] VStreamRowsResponse throttled - * @property {boolean|null} [heartbeat] VStreamRowsResponse heartbeat - * @property {string|null} [throttled_reason] VStreamRowsResponse throttled_reason + * @interface IVEvent + * @property {binlogdata.VEventType|null} [type] VEvent type + * @property {number|Long|null} [timestamp] VEvent timestamp + * @property {string|null} [gtid] VEvent gtid + * @property {string|null} [statement] VEvent statement + * @property {binlogdata.IRowEvent|null} [row_event] VEvent row_event + * @property {binlogdata.IFieldEvent|null} [field_event] VEvent field_event + * @property {binlogdata.IVGtid|null} [vgtid] VEvent vgtid + * @property {binlogdata.IJournal|null} [journal] VEvent journal + * @property {string|null} [dml] VEvent dml + * @property {number|Long|null} [current_time] VEvent current_time + * @property {binlogdata.ILastPKEvent|null} [last_p_k_event] VEvent last_p_k_event + * @property {string|null} [keyspace] VEvent keyspace + * @property {string|null} [shard] VEvent shard + * @property {boolean|null} [throttled] VEvent throttled + * @property {string|null} [throttled_reason] VEvent throttled_reason */ /** - * Constructs a new VStreamRowsResponse. + * Constructs a new VEvent. * @memberof binlogdata - * @classdesc Represents a VStreamRowsResponse. - * @implements IVStreamRowsResponse + * @classdesc Represents a VEvent. + * @implements IVEvent * @constructor - * @param {binlogdata.IVStreamRowsResponse=} [properties] Properties to set + * @param {binlogdata.IVEvent=} [properties] Properties to set */ - function VStreamRowsResponse(properties) { - this.fields = []; - this.pkfields = []; - this.rows = []; + function VEvent(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93522,156 +93429,219 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * VStreamRowsResponse fields. - * @member {Array.} fields - * @memberof binlogdata.VStreamRowsResponse + * VEvent type. + * @member {binlogdata.VEventType} type + * @memberof binlogdata.VEvent * @instance */ - VStreamRowsResponse.prototype.fields = $util.emptyArray; + VEvent.prototype.type = 0; /** - * VStreamRowsResponse pkfields. - * @member {Array.} pkfields - * @memberof binlogdata.VStreamRowsResponse + * VEvent timestamp. + * @member {number|Long} timestamp + * @memberof binlogdata.VEvent * @instance */ - VStreamRowsResponse.prototype.pkfields = $util.emptyArray; + VEvent.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * VStreamRowsResponse gtid. + * VEvent gtid. * @member {string} gtid - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VEvent * @instance */ - VStreamRowsResponse.prototype.gtid = ""; + VEvent.prototype.gtid = ""; /** - * VStreamRowsResponse rows. - * @member {Array.} rows - * @memberof binlogdata.VStreamRowsResponse + * VEvent statement. + * @member {string} statement + * @memberof binlogdata.VEvent * @instance */ - VStreamRowsResponse.prototype.rows = $util.emptyArray; + VEvent.prototype.statement = ""; /** - * VStreamRowsResponse lastpk. - * @member {query.IRow|null|undefined} lastpk - * @memberof binlogdata.VStreamRowsResponse + * VEvent row_event. + * @member {binlogdata.IRowEvent|null|undefined} row_event + * @memberof binlogdata.VEvent * @instance */ - VStreamRowsResponse.prototype.lastpk = null; + VEvent.prototype.row_event = null; /** - * VStreamRowsResponse throttled. - * @member {boolean} throttled - * @memberof binlogdata.VStreamRowsResponse + * VEvent field_event. + * @member {binlogdata.IFieldEvent|null|undefined} field_event + * @memberof binlogdata.VEvent * @instance */ - VStreamRowsResponse.prototype.throttled = false; + VEvent.prototype.field_event = null; /** - * VStreamRowsResponse heartbeat. - * @member {boolean} heartbeat - * @memberof binlogdata.VStreamRowsResponse + * VEvent vgtid. + * @member {binlogdata.IVGtid|null|undefined} vgtid + * @memberof binlogdata.VEvent * @instance */ - VStreamRowsResponse.prototype.heartbeat = false; + VEvent.prototype.vgtid = null; /** - * VStreamRowsResponse throttled_reason. + * VEvent journal. + * @member {binlogdata.IJournal|null|undefined} journal + * @memberof binlogdata.VEvent + * @instance + */ + VEvent.prototype.journal = null; + + /** + * VEvent dml. + * @member {string} dml + * @memberof binlogdata.VEvent + * @instance + */ + VEvent.prototype.dml = ""; + + /** + * VEvent current_time. + * @member {number|Long} current_time + * @memberof binlogdata.VEvent + * @instance + */ + VEvent.prototype.current_time = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * VEvent last_p_k_event. + * @member {binlogdata.ILastPKEvent|null|undefined} last_p_k_event + * @memberof binlogdata.VEvent + * @instance + */ + VEvent.prototype.last_p_k_event = null; + + /** + * VEvent keyspace. + * @member {string} keyspace + * @memberof binlogdata.VEvent + * @instance + */ + VEvent.prototype.keyspace = ""; + + /** + * VEvent shard. + * @member {string} shard + * @memberof binlogdata.VEvent + * @instance + */ + VEvent.prototype.shard = ""; + + /** + * VEvent throttled. + * @member {boolean} throttled + * @memberof binlogdata.VEvent + * @instance + */ + VEvent.prototype.throttled = false; + + /** + * VEvent throttled_reason. * @member {string} throttled_reason - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VEvent * @instance */ - VStreamRowsResponse.prototype.throttled_reason = ""; + VEvent.prototype.throttled_reason = ""; /** - * Creates a new VStreamRowsResponse instance using the specified properties. + * Creates a new VEvent instance using the specified properties. * @function create - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VEvent * @static - * @param {binlogdata.IVStreamRowsResponse=} [properties] Properties to set - * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse instance + * @param {binlogdata.IVEvent=} [properties] Properties to set + * @returns {binlogdata.VEvent} VEvent instance */ - VStreamRowsResponse.create = function create(properties) { - return new VStreamRowsResponse(properties); + VEvent.create = function create(properties) { + return new VEvent(properties); }; /** - * Encodes the specified VStreamRowsResponse message. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. + * Encodes the specified VEvent message. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VEvent * @static - * @param {binlogdata.IVStreamRowsResponse} message VStreamRowsResponse message or plain object to encode + * @param {binlogdata.IVEvent} message VEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamRowsResponse.encode = function encode(message, writer) { + VEvent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fields != null && message.fields.length) - for (let 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.pkfields != null && message.pkfields.length) - for (let i = 0; i < message.pkfields.length; ++i) - $root.query.Field.encode(message.pkfields[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.timestamp); if (message.gtid != null && Object.hasOwnProperty.call(message, "gtid")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.gtid); - if (message.rows != null && message.rows.length) - for (let 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.lastpk != null && Object.hasOwnProperty.call(message, "lastpk")) - $root.query.Row.encode(message.lastpk, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.statement != null && Object.hasOwnProperty.call(message, "statement")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.statement); + if (message.row_event != null && Object.hasOwnProperty.call(message, "row_event")) + $root.binlogdata.RowEvent.encode(message.row_event, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.field_event != null && Object.hasOwnProperty.call(message, "field_event")) + $root.binlogdata.FieldEvent.encode(message.field_event, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.vgtid != null && Object.hasOwnProperty.call(message, "vgtid")) + $root.binlogdata.VGtid.encode(message.vgtid, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.journal != null && Object.hasOwnProperty.call(message, "journal")) + $root.binlogdata.Journal.encode(message.journal, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.dml != null && Object.hasOwnProperty.call(message, "dml")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.dml); + if (message.current_time != null && Object.hasOwnProperty.call(message, "current_time")) + writer.uint32(/* id 20, wireType 0 =*/160).int64(message.current_time); + if (message.last_p_k_event != null && Object.hasOwnProperty.call(message, "last_p_k_event")) + $root.binlogdata.LastPKEvent.encode(message.last_p_k_event, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 22, wireType 2 =*/178).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 23, wireType 2 =*/186).string(message.shard); if (message.throttled != null && Object.hasOwnProperty.call(message, "throttled")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.throttled); - if (message.heartbeat != null && Object.hasOwnProperty.call(message, "heartbeat")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.heartbeat); + writer.uint32(/* id 24, wireType 0 =*/192).bool(message.throttled); if (message.throttled_reason != null && Object.hasOwnProperty.call(message, "throttled_reason")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.throttled_reason); + writer.uint32(/* id 25, wireType 2 =*/202).string(message.throttled_reason); return writer; }; /** - * Encodes the specified VStreamRowsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. + * Encodes the specified VEvent message, length delimited. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VEvent * @static - * @param {binlogdata.IVStreamRowsResponse} message VStreamRowsResponse message or plain object to encode + * @param {binlogdata.IVEvent} message VEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamRowsResponse.encodeDelimited = function encodeDelimited(message, writer) { + VEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamRowsResponse message from the specified reader or buffer. + * Decodes a VEvent message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse + * @returns {binlogdata.VEvent} VEvent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamRowsResponse.decode = function decode(reader, length) { + VEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRowsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VEvent(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.fields && message.fields.length)) - message.fields = []; - message.fields.push($root.query.Field.decode(reader, reader.uint32())); + message.type = reader.int32(); break; } case 2: { - if (!(message.pkfields && message.pkfields.length)) - message.pkfields = []; - message.pkfields.push($root.query.Field.decode(reader, reader.uint32())); + message.timestamp = reader.int64(); break; } case 3: { @@ -93679,24 +93649,50 @@ export const binlogdata = $root.binlogdata = (() => { break; } case 4: { - if (!(message.rows && message.rows.length)) - message.rows = []; - message.rows.push($root.query.Row.decode(reader, reader.uint32())); + message.statement = reader.string(); break; } case 5: { - message.lastpk = $root.query.Row.decode(reader, reader.uint32()); + message.row_event = $root.binlogdata.RowEvent.decode(reader, reader.uint32()); break; } case 6: { - message.throttled = reader.bool(); + message.field_event = $root.binlogdata.FieldEvent.decode(reader, reader.uint32()); break; } case 7: { - message.heartbeat = reader.bool(); + message.vgtid = $root.binlogdata.VGtid.decode(reader, reader.uint32()); break; } case 8: { + message.journal = $root.binlogdata.Journal.decode(reader, reader.uint32()); + break; + } + case 9: { + message.dml = reader.string(); + break; + } + case 20: { + message.current_time = reader.int64(); + break; + } + case 21: { + message.last_p_k_event = $root.binlogdata.LastPKEvent.decode(reader, reader.uint32()); + break; + } + case 22: { + message.keyspace = reader.string(); + break; + } + case 23: { + message.shard = reader.string(); + break; + } + case 24: { + message.throttled = reader.bool(); + break; + } + case 25: { message.throttled_reason = reader.string(); break; } @@ -93709,73 +93705,108 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a VStreamRowsResponse message from the specified reader or buffer, length delimited. + * Decodes a VEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse + * @returns {binlogdata.VEvent} VEvent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamRowsResponse.decodeDelimited = function decodeDelimited(reader) { + VEvent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VStreamRowsResponse message. + * Verifies a VEvent message. * @function verify - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VEvent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VStreamRowsResponse.verify = function verify(message) { + VEvent.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 (let i = 0; i < message.fields.length; ++i) { - let error = $root.query.Field.verify(message.fields[i]); - if (error) - return "fields." + error; - } - } - if (message.pkfields != null && message.hasOwnProperty("pkfields")) { - if (!Array.isArray(message.pkfields)) - return "pkfields: array expected"; - for (let i = 0; i < message.pkfields.length; ++i) { - let error = $root.query.Field.verify(message.pkfields[i]); - if (error) - return "pkfields." + error; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: 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: + case 19: + case 20: + break; } - } + 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.gtid != null && message.hasOwnProperty("gtid")) if (!$util.isString(message.gtid)) return "gtid: string expected"; - if (message.rows != null && message.hasOwnProperty("rows")) { - if (!Array.isArray(message.rows)) - return "rows: array expected"; - for (let i = 0; i < message.rows.length; ++i) { - let error = $root.query.Row.verify(message.rows[i]); - if (error) - return "rows." + error; - } + if (message.statement != null && message.hasOwnProperty("statement")) + if (!$util.isString(message.statement)) + return "statement: string expected"; + if (message.row_event != null && message.hasOwnProperty("row_event")) { + let error = $root.binlogdata.RowEvent.verify(message.row_event); + if (error) + return "row_event." + error; } - if (message.lastpk != null && message.hasOwnProperty("lastpk")) { - let error = $root.query.Row.verify(message.lastpk); + if (message.field_event != null && message.hasOwnProperty("field_event")) { + let error = $root.binlogdata.FieldEvent.verify(message.field_event); if (error) - return "lastpk." + error; + return "field_event." + error; + } + if (message.vgtid != null && message.hasOwnProperty("vgtid")) { + let error = $root.binlogdata.VGtid.verify(message.vgtid); + if (error) + return "vgtid." + error; + } + if (message.journal != null && message.hasOwnProperty("journal")) { + let error = $root.binlogdata.Journal.verify(message.journal); + if (error) + return "journal." + error; + } + if (message.dml != null && message.hasOwnProperty("dml")) + if (!$util.isString(message.dml)) + return "dml: string expected"; + if (message.current_time != null && message.hasOwnProperty("current_time")) + if (!$util.isInteger(message.current_time) && !(message.current_time && $util.isInteger(message.current_time.low) && $util.isInteger(message.current_time.high))) + return "current_time: integer|Long expected"; + if (message.last_p_k_event != null && message.hasOwnProperty("last_p_k_event")) { + let error = $root.binlogdata.LastPKEvent.verify(message.last_p_k_event); + if (error) + return "last_p_k_event." + 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.throttled != null && message.hasOwnProperty("throttled")) if (typeof message.throttled !== "boolean") return "throttled: boolean expected"; - if (message.heartbeat != null && message.hasOwnProperty("heartbeat")) - if (typeof message.heartbeat !== "boolean") - return "heartbeat: boolean expected"; if (message.throttled_reason != null && message.hasOwnProperty("throttled_reason")) if (!$util.isString(message.throttled_reason)) return "throttled_reason: string expected"; @@ -93783,166 +93814,298 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Creates a VStreamRowsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VEvent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VEvent * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse + * @returns {binlogdata.VEvent} VEvent */ - VStreamRowsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamRowsResponse) + VEvent.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VEvent) return object; - let message = new $root.binlogdata.VStreamRowsResponse(); - if (object.fields) { - if (!Array.isArray(object.fields)) - throw TypeError(".binlogdata.VStreamRowsResponse.fields: array expected"); - message.fields = []; - for (let i = 0; i < object.fields.length; ++i) { - if (typeof object.fields[i] !== "object") - throw TypeError(".binlogdata.VStreamRowsResponse.fields: object expected"); - message.fields[i] = $root.query.Field.fromObject(object.fields[i]); - } - } - if (object.pkfields) { - if (!Array.isArray(object.pkfields)) - throw TypeError(".binlogdata.VStreamRowsResponse.pkfields: array expected"); - message.pkfields = []; - for (let i = 0; i < object.pkfields.length; ++i) { - if (typeof object.pkfields[i] !== "object") - throw TypeError(".binlogdata.VStreamRowsResponse.pkfields: object expected"); - message.pkfields[i] = $root.query.Field.fromObject(object.pkfields[i]); + let message = new $root.binlogdata.VEvent(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; } + break; + case "UNKNOWN": + case 0: + message.type = 0; + break; + case "GTID": + case 1: + message.type = 1; + break; + case "BEGIN": + case 2: + message.type = 2; + break; + case "COMMIT": + case 3: + message.type = 3; + break; + case "ROLLBACK": + case 4: + message.type = 4; + break; + case "DDL": + case 5: + message.type = 5; + break; + case "INSERT": + case 6: + message.type = 6; + break; + case "REPLACE": + case 7: + message.type = 7; + break; + case "UPDATE": + case 8: + message.type = 8; + break; + case "DELETE": + case 9: + message.type = 9; + break; + case "SET": + case 10: + message.type = 10; + break; + case "OTHER": + case 11: + message.type = 11; + break; + case "ROW": + case 12: + message.type = 12; + break; + case "FIELD": + case 13: + message.type = 13; + break; + case "HEARTBEAT": + case 14: + message.type = 14; + break; + case "VGTID": + case 15: + message.type = 15; + break; + case "JOURNAL": + case 16: + message.type = 16; + break; + case "VERSION": + case 17: + message.type = 17; + break; + case "LASTPK": + case 18: + message.type = 18; + break; + case "SAVEPOINT": + case 19: + message.type = 19; + break; + case "COPY_COMPLETED": + case 20: + message.type = 20; + break; } + 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.gtid != null) message.gtid = String(object.gtid); - if (object.rows) { - if (!Array.isArray(object.rows)) - throw TypeError(".binlogdata.VStreamRowsResponse.rows: array expected"); - message.rows = []; - for (let i = 0; i < object.rows.length; ++i) { - if (typeof object.rows[i] !== "object") - throw TypeError(".binlogdata.VStreamRowsResponse.rows: object expected"); - message.rows[i] = $root.query.Row.fromObject(object.rows[i]); - } + if (object.statement != null) + message.statement = String(object.statement); + if (object.row_event != null) { + if (typeof object.row_event !== "object") + throw TypeError(".binlogdata.VEvent.row_event: object expected"); + message.row_event = $root.binlogdata.RowEvent.fromObject(object.row_event); } - if (object.lastpk != null) { - if (typeof object.lastpk !== "object") - throw TypeError(".binlogdata.VStreamRowsResponse.lastpk: object expected"); - message.lastpk = $root.query.Row.fromObject(object.lastpk); + if (object.field_event != null) { + if (typeof object.field_event !== "object") + throw TypeError(".binlogdata.VEvent.field_event: object expected"); + message.field_event = $root.binlogdata.FieldEvent.fromObject(object.field_event); + } + if (object.vgtid != null) { + if (typeof object.vgtid !== "object") + throw TypeError(".binlogdata.VEvent.vgtid: object expected"); + message.vgtid = $root.binlogdata.VGtid.fromObject(object.vgtid); + } + if (object.journal != null) { + if (typeof object.journal !== "object") + throw TypeError(".binlogdata.VEvent.journal: object expected"); + message.journal = $root.binlogdata.Journal.fromObject(object.journal); + } + if (object.dml != null) + message.dml = String(object.dml); + if (object.current_time != null) + if ($util.Long) + (message.current_time = $util.Long.fromValue(object.current_time)).unsigned = false; + else if (typeof object.current_time === "string") + message.current_time = parseInt(object.current_time, 10); + else if (typeof object.current_time === "number") + message.current_time = object.current_time; + else if (typeof object.current_time === "object") + message.current_time = new $util.LongBits(object.current_time.low >>> 0, object.current_time.high >>> 0).toNumber(); + if (object.last_p_k_event != null) { + if (typeof object.last_p_k_event !== "object") + throw TypeError(".binlogdata.VEvent.last_p_k_event: object expected"); + message.last_p_k_event = $root.binlogdata.LastPKEvent.fromObject(object.last_p_k_event); } + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); if (object.throttled != null) message.throttled = Boolean(object.throttled); - if (object.heartbeat != null) - message.heartbeat = Boolean(object.heartbeat); if (object.throttled_reason != null) message.throttled_reason = String(object.throttled_reason); return message; }; /** - * Creates a plain object from a VStreamRowsResponse message. Also converts values to other types if specified. + * Creates a plain object from a VEvent message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VEvent * @static - * @param {binlogdata.VStreamRowsResponse} message VStreamRowsResponse + * @param {binlogdata.VEvent} message VEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamRowsResponse.toObject = function toObject(message, options) { + VEvent.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.fields = []; - object.pkfields = []; - object.rows = []; - } if (options.defaults) { + object.type = options.enums === String ? "UNKNOWN" : 0; + if ($util.Long) { + let 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.gtid = ""; - object.lastpk = null; + object.statement = ""; + object.row_event = null; + object.field_event = null; + object.vgtid = null; + object.journal = null; + object.dml = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.current_time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.current_time = options.longs === String ? "0" : 0; + object.last_p_k_event = null; + object.keyspace = ""; + object.shard = ""; object.throttled = false; - object.heartbeat = false; object.throttled_reason = ""; } - if (message.fields && message.fields.length) { - object.fields = []; - for (let j = 0; j < message.fields.length; ++j) - object.fields[j] = $root.query.Field.toObject(message.fields[j], options); - } - if (message.pkfields && message.pkfields.length) { - object.pkfields = []; - for (let j = 0; j < message.pkfields.length; ++j) - object.pkfields[j] = $root.query.Field.toObject(message.pkfields[j], options); - } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.binlogdata.VEventType[message.type] === undefined ? message.type : $root.binlogdata.VEventType[message.type] : message.type; + 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.gtid != null && message.hasOwnProperty("gtid")) object.gtid = message.gtid; - if (message.rows && message.rows.length) { - object.rows = []; - for (let j = 0; j < message.rows.length; ++j) - object.rows[j] = $root.query.Row.toObject(message.rows[j], options); - } - if (message.lastpk != null && message.hasOwnProperty("lastpk")) - object.lastpk = $root.query.Row.toObject(message.lastpk, options); + if (message.statement != null && message.hasOwnProperty("statement")) + object.statement = message.statement; + if (message.row_event != null && message.hasOwnProperty("row_event")) + object.row_event = $root.binlogdata.RowEvent.toObject(message.row_event, options); + if (message.field_event != null && message.hasOwnProperty("field_event")) + object.field_event = $root.binlogdata.FieldEvent.toObject(message.field_event, options); + if (message.vgtid != null && message.hasOwnProperty("vgtid")) + object.vgtid = $root.binlogdata.VGtid.toObject(message.vgtid, options); + if (message.journal != null && message.hasOwnProperty("journal")) + object.journal = $root.binlogdata.Journal.toObject(message.journal, options); + if (message.dml != null && message.hasOwnProperty("dml")) + object.dml = message.dml; + if (message.current_time != null && message.hasOwnProperty("current_time")) + if (typeof message.current_time === "number") + object.current_time = options.longs === String ? String(message.current_time) : message.current_time; + else + object.current_time = options.longs === String ? $util.Long.prototype.toString.call(message.current_time) : options.longs === Number ? new $util.LongBits(message.current_time.low >>> 0, message.current_time.high >>> 0).toNumber() : message.current_time; + if (message.last_p_k_event != null && message.hasOwnProperty("last_p_k_event")) + object.last_p_k_event = $root.binlogdata.LastPKEvent.toObject(message.last_p_k_event, 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.throttled != null && message.hasOwnProperty("throttled")) object.throttled = message.throttled; - if (message.heartbeat != null && message.hasOwnProperty("heartbeat")) - object.heartbeat = message.heartbeat; if (message.throttled_reason != null && message.hasOwnProperty("throttled_reason")) object.throttled_reason = message.throttled_reason; return object; }; /** - * Converts this VStreamRowsResponse to JSON. + * Converts this VEvent to JSON. * @function toJSON - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VEvent * @instance * @returns {Object.} JSON object */ - VStreamRowsResponse.prototype.toJSON = function toJSON() { + VEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VStreamRowsResponse + * Gets the default type url for VEvent * @function getTypeUrl - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VEvent * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VStreamRowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.VStreamRowsResponse"; + return typeUrlPrefix + "/binlogdata.VEvent"; }; - return VStreamRowsResponse; + return VEvent; })(); - binlogdata.VStreamTablesRequest = (function() { + binlogdata.MinimalTable = (function() { /** - * Properties of a VStreamTablesRequest. + * Properties of a MinimalTable. * @memberof binlogdata - * @interface IVStreamTablesRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] VStreamTablesRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] VStreamTablesRequest immediate_caller_id - * @property {query.ITarget|null} [target] VStreamTablesRequest target - * @property {binlogdata.IVStreamOptions|null} [options] VStreamTablesRequest options + * @interface IMinimalTable + * @property {string|null} [name] MinimalTable name + * @property {Array.|null} [fields] MinimalTable fields + * @property {Array.|null} [p_k_columns] MinimalTable p_k_columns + * @property {string|null} [p_k_index_name] MinimalTable p_k_index_name */ /** - * Constructs a new VStreamTablesRequest. + * Constructs a new MinimalTable. * @memberof binlogdata - * @classdesc Represents a VStreamTablesRequest. - * @implements IVStreamTablesRequest + * @classdesc Represents a MinimalTable. + * @implements IMinimalTable * @constructor - * @param {binlogdata.IVStreamTablesRequest=} [properties] Properties to set + * @param {binlogdata.IMinimalTable=} [properties] Properties to set */ - function VStreamTablesRequest(properties) { + function MinimalTable(properties) { + this.fields = []; + this.p_k_columns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93950,117 +94113,131 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * VStreamTablesRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof binlogdata.VStreamTablesRequest + * MinimalTable name. + * @member {string} name + * @memberof binlogdata.MinimalTable * @instance */ - VStreamTablesRequest.prototype.effective_caller_id = null; + MinimalTable.prototype.name = ""; /** - * VStreamTablesRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof binlogdata.VStreamTablesRequest + * MinimalTable fields. + * @member {Array.} fields + * @memberof binlogdata.MinimalTable * @instance */ - VStreamTablesRequest.prototype.immediate_caller_id = null; + MinimalTable.prototype.fields = $util.emptyArray; /** - * VStreamTablesRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof binlogdata.VStreamTablesRequest + * MinimalTable p_k_columns. + * @member {Array.} p_k_columns + * @memberof binlogdata.MinimalTable * @instance */ - VStreamTablesRequest.prototype.target = null; + MinimalTable.prototype.p_k_columns = $util.emptyArray; /** - * VStreamTablesRequest options. - * @member {binlogdata.IVStreamOptions|null|undefined} options - * @memberof binlogdata.VStreamTablesRequest + * MinimalTable p_k_index_name. + * @member {string} p_k_index_name + * @memberof binlogdata.MinimalTable * @instance */ - VStreamTablesRequest.prototype.options = null; + MinimalTable.prototype.p_k_index_name = ""; /** - * Creates a new VStreamTablesRequest instance using the specified properties. + * Creates a new MinimalTable instance using the specified properties. * @function create - * @memberof binlogdata.VStreamTablesRequest + * @memberof binlogdata.MinimalTable * @static - * @param {binlogdata.IVStreamTablesRequest=} [properties] Properties to set - * @returns {binlogdata.VStreamTablesRequest} VStreamTablesRequest instance + * @param {binlogdata.IMinimalTable=} [properties] Properties to set + * @returns {binlogdata.MinimalTable} MinimalTable instance */ - VStreamTablesRequest.create = function create(properties) { - return new VStreamTablesRequest(properties); + MinimalTable.create = function create(properties) { + return new MinimalTable(properties); }; /** - * Encodes the specified VStreamTablesRequest message. Does not implicitly {@link binlogdata.VStreamTablesRequest.verify|verify} messages. + * Encodes the specified MinimalTable message. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamTablesRequest + * @memberof binlogdata.MinimalTable * @static - * @param {binlogdata.IVStreamTablesRequest} message VStreamTablesRequest message or plain object to encode + * @param {binlogdata.IMinimalTable} message MinimalTable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamTablesRequest.encode = function encode(message, writer) { + MinimalTable.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.binlogdata.VStreamOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.fields != null && message.fields.length) + for (let i = 0; i < message.fields.length; ++i) + $root.query.Field.encode(message.fields[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.p_k_columns != null && message.p_k_columns.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (let i = 0; i < message.p_k_columns.length; ++i) + writer.int64(message.p_k_columns[i]); + writer.ldelim(); + } + if (message.p_k_index_name != null && Object.hasOwnProperty.call(message, "p_k_index_name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.p_k_index_name); return writer; }; /** - * Encodes the specified VStreamTablesRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamTablesRequest.verify|verify} messages. + * Encodes the specified MinimalTable message, length delimited. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamTablesRequest + * @memberof binlogdata.MinimalTable * @static - * @param {binlogdata.IVStreamTablesRequest} message VStreamTablesRequest message or plain object to encode + * @param {binlogdata.IMinimalTable} message MinimalTable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { + MinimalTable.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamTablesRequest message from the specified reader or buffer. + * Decodes a MinimalTable message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamTablesRequest + * @memberof binlogdata.MinimalTable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.VStreamTablesRequest} VStreamTablesRequest + * @returns {binlogdata.MinimalTable} MinimalTable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamTablesRequest.decode = function decode(reader, length) { + MinimalTable.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamTablesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.MinimalTable(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + if (!(message.fields && message.fields.length)) + message.fields = []; + message.fields.push($root.query.Field.decode(reader, reader.uint32())); break; } case 3: { - message.target = $root.query.Target.decode(reader, reader.uint32()); + if (!(message.p_k_columns && message.p_k_columns.length)) + message.p_k_columns = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.p_k_columns.push(reader.int64()); + } else + message.p_k_columns.push(reader.int64()); break; } case 4: { - message.options = $root.binlogdata.VStreamOptions.decode(reader, reader.uint32()); + message.p_k_index_name = reader.string(); break; } default: @@ -94072,175 +94249,189 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a VStreamTablesRequest message from the specified reader or buffer, length delimited. + * Decodes a MinimalTable message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.VStreamTablesRequest + * @memberof binlogdata.MinimalTable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamTablesRequest} VStreamTablesRequest + * @returns {binlogdata.MinimalTable} MinimalTable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamTablesRequest.decodeDelimited = function decodeDelimited(reader) { + MinimalTable.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VStreamTablesRequest message. + * Verifies a MinimalTable message. * @function verify - * @memberof binlogdata.VStreamTablesRequest + * @memberof binlogdata.MinimalTable * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VStreamTablesRequest.verify = function verify(message) { + MinimalTable.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - let 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")) { - let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (let i = 0; i < message.fields.length; ++i) { + let error = $root.query.Field.verify(message.fields[i]); + if (error) + return "fields." + error; + } } - if (message.target != null && message.hasOwnProperty("target")) { - let error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.binlogdata.VStreamOptions.verify(message.options); - if (error) - return "options." + error; + if (message.p_k_columns != null && message.hasOwnProperty("p_k_columns")) { + if (!Array.isArray(message.p_k_columns)) + return "p_k_columns: array expected"; + for (let i = 0; i < message.p_k_columns.length; ++i) + if (!$util.isInteger(message.p_k_columns[i]) && !(message.p_k_columns[i] && $util.isInteger(message.p_k_columns[i].low) && $util.isInteger(message.p_k_columns[i].high))) + return "p_k_columns: integer|Long[] expected"; } + if (message.p_k_index_name != null && message.hasOwnProperty("p_k_index_name")) + if (!$util.isString(message.p_k_index_name)) + return "p_k_index_name: string expected"; return null; }; /** - * Creates a VStreamTablesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MinimalTable message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.VStreamTablesRequest + * @memberof binlogdata.MinimalTable * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamTablesRequest} VStreamTablesRequest + * @returns {binlogdata.MinimalTable} MinimalTable */ - VStreamTablesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamTablesRequest) + MinimalTable.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.MinimalTable) return object; - let message = new $root.binlogdata.VStreamTablesRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".binlogdata.VStreamTablesRequest.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(".binlogdata.VStreamTablesRequest.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(".binlogdata.VStreamTablesRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); + let message = new $root.binlogdata.MinimalTable(); + if (object.name != null) + message.name = String(object.name); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".binlogdata.MinimalTable.fields: array expected"); + message.fields = []; + for (let i = 0; i < object.fields.length; ++i) { + if (typeof object.fields[i] !== "object") + throw TypeError(".binlogdata.MinimalTable.fields: object expected"); + message.fields[i] = $root.query.Field.fromObject(object.fields[i]); + } } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".binlogdata.VStreamTablesRequest.options: object expected"); - message.options = $root.binlogdata.VStreamOptions.fromObject(object.options); + if (object.p_k_columns) { + if (!Array.isArray(object.p_k_columns)) + throw TypeError(".binlogdata.MinimalTable.p_k_columns: array expected"); + message.p_k_columns = []; + for (let i = 0; i < object.p_k_columns.length; ++i) + if ($util.Long) + (message.p_k_columns[i] = $util.Long.fromValue(object.p_k_columns[i])).unsigned = false; + else if (typeof object.p_k_columns[i] === "string") + message.p_k_columns[i] = parseInt(object.p_k_columns[i], 10); + else if (typeof object.p_k_columns[i] === "number") + message.p_k_columns[i] = object.p_k_columns[i]; + else if (typeof object.p_k_columns[i] === "object") + message.p_k_columns[i] = new $util.LongBits(object.p_k_columns[i].low >>> 0, object.p_k_columns[i].high >>> 0).toNumber(); } + if (object.p_k_index_name != null) + message.p_k_index_name = String(object.p_k_index_name); return message; }; /** - * Creates a plain object from a VStreamTablesRequest message. Also converts values to other types if specified. + * Creates a plain object from a MinimalTable message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.VStreamTablesRequest + * @memberof binlogdata.MinimalTable * @static - * @param {binlogdata.VStreamTablesRequest} message VStreamTablesRequest + * @param {binlogdata.MinimalTable} message MinimalTable * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamTablesRequest.toObject = function toObject(message, options) { + MinimalTable.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.fields = []; + object.p_k_columns = []; + } if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.options = null; + object.name = ""; + object.p_k_index_name = ""; } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.binlogdata.VStreamOptions.toObject(message.options, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.fields && message.fields.length) { + object.fields = []; + for (let j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + } + if (message.p_k_columns && message.p_k_columns.length) { + object.p_k_columns = []; + for (let j = 0; j < message.p_k_columns.length; ++j) + if (typeof message.p_k_columns[j] === "number") + object.p_k_columns[j] = options.longs === String ? String(message.p_k_columns[j]) : message.p_k_columns[j]; + else + object.p_k_columns[j] = options.longs === String ? $util.Long.prototype.toString.call(message.p_k_columns[j]) : options.longs === Number ? new $util.LongBits(message.p_k_columns[j].low >>> 0, message.p_k_columns[j].high >>> 0).toNumber() : message.p_k_columns[j]; + } + if (message.p_k_index_name != null && message.hasOwnProperty("p_k_index_name")) + object.p_k_index_name = message.p_k_index_name; return object; }; /** - * Converts this VStreamTablesRequest to JSON. + * Converts this MinimalTable to JSON. * @function toJSON - * @memberof binlogdata.VStreamTablesRequest + * @memberof binlogdata.MinimalTable * @instance * @returns {Object.} JSON object */ - VStreamTablesRequest.prototype.toJSON = function toJSON() { + MinimalTable.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VStreamTablesRequest + * Gets the default type url for MinimalTable * @function getTypeUrl - * @memberof binlogdata.VStreamTablesRequest + * @memberof binlogdata.MinimalTable * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VStreamTablesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MinimalTable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.VStreamTablesRequest"; + return typeUrlPrefix + "/binlogdata.MinimalTable"; }; - return VStreamTablesRequest; + return MinimalTable; })(); - binlogdata.VStreamTablesResponse = (function() { + binlogdata.MinimalSchema = (function() { /** - * Properties of a VStreamTablesResponse. + * Properties of a MinimalSchema. * @memberof binlogdata - * @interface IVStreamTablesResponse - * @property {string|null} [table_name] VStreamTablesResponse table_name - * @property {Array.|null} [fields] VStreamTablesResponse fields - * @property {Array.|null} [pkfields] VStreamTablesResponse pkfields - * @property {string|null} [gtid] VStreamTablesResponse gtid - * @property {Array.|null} [rows] VStreamTablesResponse rows - * @property {query.IRow|null} [lastpk] VStreamTablesResponse lastpk + * @interface IMinimalSchema + * @property {Array.|null} [tables] MinimalSchema tables */ /** - * Constructs a new VStreamTablesResponse. + * Constructs a new MinimalSchema. * @memberof binlogdata - * @classdesc Represents a VStreamTablesResponse. - * @implements IVStreamTablesResponse + * @classdesc Represents a MinimalSchema. + * @implements IMinimalSchema * @constructor - * @param {binlogdata.IVStreamTablesResponse=} [properties] Properties to set + * @param {binlogdata.IMinimalSchema=} [properties] Properties to set */ - function VStreamTablesResponse(properties) { - this.fields = []; - this.pkfields = []; - this.rows = []; + function MinimalSchema(properties) { + this.tables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94248,154 +94439,78 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * VStreamTablesResponse table_name. - * @member {string} table_name - * @memberof binlogdata.VStreamTablesResponse - * @instance - */ - VStreamTablesResponse.prototype.table_name = ""; - - /** - * VStreamTablesResponse fields. - * @member {Array.} fields - * @memberof binlogdata.VStreamTablesResponse - * @instance - */ - VStreamTablesResponse.prototype.fields = $util.emptyArray; - - /** - * VStreamTablesResponse pkfields. - * @member {Array.} pkfields - * @memberof binlogdata.VStreamTablesResponse - * @instance - */ - VStreamTablesResponse.prototype.pkfields = $util.emptyArray; - - /** - * VStreamTablesResponse gtid. - * @member {string} gtid - * @memberof binlogdata.VStreamTablesResponse - * @instance - */ - VStreamTablesResponse.prototype.gtid = ""; - - /** - * VStreamTablesResponse rows. - * @member {Array.} rows - * @memberof binlogdata.VStreamTablesResponse - * @instance - */ - VStreamTablesResponse.prototype.rows = $util.emptyArray; - - /** - * VStreamTablesResponse lastpk. - * @member {query.IRow|null|undefined} lastpk - * @memberof binlogdata.VStreamTablesResponse + * MinimalSchema tables. + * @member {Array.} tables + * @memberof binlogdata.MinimalSchema * @instance */ - VStreamTablesResponse.prototype.lastpk = null; + MinimalSchema.prototype.tables = $util.emptyArray; /** - * Creates a new VStreamTablesResponse instance using the specified properties. + * Creates a new MinimalSchema instance using the specified properties. * @function create - * @memberof binlogdata.VStreamTablesResponse + * @memberof binlogdata.MinimalSchema * @static - * @param {binlogdata.IVStreamTablesResponse=} [properties] Properties to set - * @returns {binlogdata.VStreamTablesResponse} VStreamTablesResponse instance + * @param {binlogdata.IMinimalSchema=} [properties] Properties to set + * @returns {binlogdata.MinimalSchema} MinimalSchema instance */ - VStreamTablesResponse.create = function create(properties) { - return new VStreamTablesResponse(properties); + MinimalSchema.create = function create(properties) { + return new MinimalSchema(properties); }; /** - * Encodes the specified VStreamTablesResponse message. Does not implicitly {@link binlogdata.VStreamTablesResponse.verify|verify} messages. + * Encodes the specified MinimalSchema message. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamTablesResponse + * @memberof binlogdata.MinimalSchema * @static - * @param {binlogdata.IVStreamTablesResponse} message VStreamTablesResponse message or plain object to encode + * @param {binlogdata.IMinimalSchema} message MinimalSchema message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamTablesResponse.encode = function encode(message, writer) { + MinimalSchema.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.table_name != null && Object.hasOwnProperty.call(message, "table_name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.table_name); - if (message.fields != null && message.fields.length) - for (let i = 0; i < message.fields.length; ++i) - $root.query.Field.encode(message.fields[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.pkfields != null && message.pkfields.length) - for (let i = 0; i < message.pkfields.length; ++i) - $root.query.Field.encode(message.pkfields[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.gtid != null && Object.hasOwnProperty.call(message, "gtid")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.gtid); - if (message.rows != null && message.rows.length) - for (let i = 0; i < message.rows.length; ++i) - $root.query.Row.encode(message.rows[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.lastpk != null && Object.hasOwnProperty.call(message, "lastpk")) - $root.query.Row.encode(message.lastpk, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.tables != null && message.tables.length) + for (let i = 0; i < message.tables.length; ++i) + $root.binlogdata.MinimalTable.encode(message.tables[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified VStreamTablesResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamTablesResponse.verify|verify} messages. + * Encodes the specified MinimalSchema message, length delimited. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamTablesResponse + * @memberof binlogdata.MinimalSchema * @static - * @param {binlogdata.IVStreamTablesResponse} message VStreamTablesResponse message or plain object to encode + * @param {binlogdata.IMinimalSchema} message MinimalSchema message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { + MinimalSchema.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamTablesResponse message from the specified reader or buffer. + * Decodes a MinimalSchema message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamTablesResponse + * @memberof binlogdata.MinimalSchema * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.VStreamTablesResponse} VStreamTablesResponse + * @returns {binlogdata.MinimalSchema} MinimalSchema * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamTablesResponse.decode = function decode(reader, length) { + MinimalSchema.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamTablesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.MinimalSchema(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.table_name = reader.string(); - break; - } - case 2: { - if (!(message.fields && message.fields.length)) - message.fields = []; - message.fields.push($root.query.Field.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.pkfields && message.pkfields.length)) - message.pkfields = []; - message.pkfields.push($root.query.Field.decode(reader, reader.uint32())); - break; - } - case 4: { - message.gtid = reader.string(); - break; - } - case 5: { - if (!(message.rows && message.rows.length)) - message.rows = []; - message.rows.push($root.query.Row.decode(reader, reader.uint32())); - break; - } - case 6: { - message.lastpk = $root.query.Row.decode(reader, reader.uint32()); + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push($root.binlogdata.MinimalTable.decode(reader, reader.uint32())); break; } default: @@ -94407,222 +94522,142 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a VStreamTablesResponse message from the specified reader or buffer, length delimited. + * Decodes a MinimalSchema message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.VStreamTablesResponse + * @memberof binlogdata.MinimalSchema * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamTablesResponse} VStreamTablesResponse + * @returns {binlogdata.MinimalSchema} MinimalSchema * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamTablesResponse.decodeDelimited = function decodeDelimited(reader) { + MinimalSchema.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VStreamTablesResponse message. + * Verifies a MinimalSchema message. * @function verify - * @memberof binlogdata.VStreamTablesResponse + * @memberof binlogdata.MinimalSchema * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VStreamTablesResponse.verify = function verify(message) { + MinimalSchema.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.table_name != null && message.hasOwnProperty("table_name")) - if (!$util.isString(message.table_name)) - return "table_name: string expected"; - if (message.fields != null && message.hasOwnProperty("fields")) { - if (!Array.isArray(message.fields)) - return "fields: array expected"; - for (let i = 0; i < message.fields.length; ++i) { - let error = $root.query.Field.verify(message.fields[i]); - if (error) - return "fields." + error; - } - } - if (message.pkfields != null && message.hasOwnProperty("pkfields")) { - if (!Array.isArray(message.pkfields)) - return "pkfields: array expected"; - for (let i = 0; i < message.pkfields.length; ++i) { - let error = $root.query.Field.verify(message.pkfields[i]); - if (error) - return "pkfields." + error; - } - } - if (message.gtid != null && message.hasOwnProperty("gtid")) - if (!$util.isString(message.gtid)) - return "gtid: string expected"; - if (message.rows != null && message.hasOwnProperty("rows")) { - if (!Array.isArray(message.rows)) - return "rows: array expected"; - for (let i = 0; i < message.rows.length; ++i) { - let error = $root.query.Row.verify(message.rows[i]); + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (let i = 0; i < message.tables.length; ++i) { + let error = $root.binlogdata.MinimalTable.verify(message.tables[i]); if (error) - return "rows." + error; + return "tables." + error; } } - if (message.lastpk != null && message.hasOwnProperty("lastpk")) { - let error = $root.query.Row.verify(message.lastpk); - if (error) - return "lastpk." + error; - } return null; }; /** - * Creates a VStreamTablesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MinimalSchema message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.VStreamTablesResponse + * @memberof binlogdata.MinimalSchema * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamTablesResponse} VStreamTablesResponse + * @returns {binlogdata.MinimalSchema} MinimalSchema */ - VStreamTablesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamTablesResponse) + MinimalSchema.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.MinimalSchema) return object; - let message = new $root.binlogdata.VStreamTablesResponse(); - if (object.table_name != null) - message.table_name = String(object.table_name); - if (object.fields) { - if (!Array.isArray(object.fields)) - throw TypeError(".binlogdata.VStreamTablesResponse.fields: array expected"); - message.fields = []; - for (let i = 0; i < object.fields.length; ++i) { - if (typeof object.fields[i] !== "object") - throw TypeError(".binlogdata.VStreamTablesResponse.fields: object expected"); - message.fields[i] = $root.query.Field.fromObject(object.fields[i]); - } - } - if (object.pkfields) { - if (!Array.isArray(object.pkfields)) - throw TypeError(".binlogdata.VStreamTablesResponse.pkfields: array expected"); - message.pkfields = []; - for (let i = 0; i < object.pkfields.length; ++i) { - if (typeof object.pkfields[i] !== "object") - throw TypeError(".binlogdata.VStreamTablesResponse.pkfields: object expected"); - message.pkfields[i] = $root.query.Field.fromObject(object.pkfields[i]); - } - } - if (object.gtid != null) - message.gtid = String(object.gtid); - if (object.rows) { - if (!Array.isArray(object.rows)) - throw TypeError(".binlogdata.VStreamTablesResponse.rows: array expected"); - message.rows = []; - for (let i = 0; i < object.rows.length; ++i) { - if (typeof object.rows[i] !== "object") - throw TypeError(".binlogdata.VStreamTablesResponse.rows: object expected"); - message.rows[i] = $root.query.Row.fromObject(object.rows[i]); + let message = new $root.binlogdata.MinimalSchema(); + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".binlogdata.MinimalSchema.tables: array expected"); + message.tables = []; + for (let i = 0; i < object.tables.length; ++i) { + if (typeof object.tables[i] !== "object") + throw TypeError(".binlogdata.MinimalSchema.tables: object expected"); + message.tables[i] = $root.binlogdata.MinimalTable.fromObject(object.tables[i]); } } - if (object.lastpk != null) { - if (typeof object.lastpk !== "object") - throw TypeError(".binlogdata.VStreamTablesResponse.lastpk: object expected"); - message.lastpk = $root.query.Row.fromObject(object.lastpk); - } return message; }; /** - * Creates a plain object from a VStreamTablesResponse message. Also converts values to other types if specified. + * Creates a plain object from a MinimalSchema message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.VStreamTablesResponse + * @memberof binlogdata.MinimalSchema * @static - * @param {binlogdata.VStreamTablesResponse} message VStreamTablesResponse + * @param {binlogdata.MinimalSchema} message MinimalSchema * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamTablesResponse.toObject = function toObject(message, options) { + MinimalSchema.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.fields = []; - object.pkfields = []; - object.rows = []; - } - if (options.defaults) { - object.table_name = ""; - object.gtid = ""; - object.lastpk = null; - } - if (message.table_name != null && message.hasOwnProperty("table_name")) - object.table_name = message.table_name; - if (message.fields && message.fields.length) { - object.fields = []; - for (let j = 0; j < message.fields.length; ++j) - object.fields[j] = $root.query.Field.toObject(message.fields[j], options); - } - if (message.pkfields && message.pkfields.length) { - object.pkfields = []; - for (let j = 0; j < message.pkfields.length; ++j) - object.pkfields[j] = $root.query.Field.toObject(message.pkfields[j], options); - } - if (message.gtid != null && message.hasOwnProperty("gtid")) - object.gtid = message.gtid; - if (message.rows && message.rows.length) { - object.rows = []; - for (let j = 0; j < message.rows.length; ++j) - object.rows[j] = $root.query.Row.toObject(message.rows[j], options); + if (options.arrays || options.defaults) + object.tables = []; + if (message.tables && message.tables.length) { + object.tables = []; + for (let j = 0; j < message.tables.length; ++j) + object.tables[j] = $root.binlogdata.MinimalTable.toObject(message.tables[j], options); } - if (message.lastpk != null && message.hasOwnProperty("lastpk")) - object.lastpk = $root.query.Row.toObject(message.lastpk, options); return object; }; /** - * Converts this VStreamTablesResponse to JSON. + * Converts this MinimalSchema to JSON. * @function toJSON - * @memberof binlogdata.VStreamTablesResponse + * @memberof binlogdata.MinimalSchema * @instance * @returns {Object.} JSON object */ - VStreamTablesResponse.prototype.toJSON = function toJSON() { + MinimalSchema.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VStreamTablesResponse + * Gets the default type url for MinimalSchema * @function getTypeUrl - * @memberof binlogdata.VStreamTablesResponse + * @memberof binlogdata.MinimalSchema * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VStreamTablesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MinimalSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.VStreamTablesResponse"; + return typeUrlPrefix + "/binlogdata.MinimalSchema"; }; - return VStreamTablesResponse; + return MinimalSchema; })(); - binlogdata.LastPKEvent = (function() { + binlogdata.VStreamOptions = (function() { /** - * Properties of a LastPKEvent. + * Properties of a VStreamOptions. * @memberof binlogdata - * @interface ILastPKEvent - * @property {binlogdata.ITableLastPK|null} [table_last_p_k] LastPKEvent table_last_p_k - * @property {boolean|null} [completed] LastPKEvent completed + * @interface IVStreamOptions + * @property {Array.|null} [internal_tables] VStreamOptions internal_tables + * @property {Object.|null} [config_overrides] VStreamOptions config_overrides */ /** - * Constructs a new LastPKEvent. + * Constructs a new VStreamOptions. * @memberof binlogdata - * @classdesc Represents a LastPKEvent. - * @implements ILastPKEvent + * @classdesc Represents a VStreamOptions. + * @implements IVStreamOptions * @constructor - * @param {binlogdata.ILastPKEvent=} [properties] Properties to set + * @param {binlogdata.IVStreamOptions=} [properties] Properties to set */ - function LastPKEvent(properties) { + function VStreamOptions(properties) { + this.internal_tables = []; + this.config_overrides = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94630,89 +94665,112 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * LastPKEvent table_last_p_k. - * @member {binlogdata.ITableLastPK|null|undefined} table_last_p_k - * @memberof binlogdata.LastPKEvent + * VStreamOptions internal_tables. + * @member {Array.} internal_tables + * @memberof binlogdata.VStreamOptions * @instance */ - LastPKEvent.prototype.table_last_p_k = null; + VStreamOptions.prototype.internal_tables = $util.emptyArray; /** - * LastPKEvent completed. - * @member {boolean} completed - * @memberof binlogdata.LastPKEvent + * VStreamOptions config_overrides. + * @member {Object.} config_overrides + * @memberof binlogdata.VStreamOptions * @instance */ - LastPKEvent.prototype.completed = false; + VStreamOptions.prototype.config_overrides = $util.emptyObject; /** - * Creates a new LastPKEvent instance using the specified properties. + * Creates a new VStreamOptions instance using the specified properties. * @function create - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.VStreamOptions * @static - * @param {binlogdata.ILastPKEvent=} [properties] Properties to set - * @returns {binlogdata.LastPKEvent} LastPKEvent instance + * @param {binlogdata.IVStreamOptions=} [properties] Properties to set + * @returns {binlogdata.VStreamOptions} VStreamOptions instance */ - LastPKEvent.create = function create(properties) { - return new LastPKEvent(properties); + VStreamOptions.create = function create(properties) { + return new VStreamOptions(properties); }; /** - * Encodes the specified LastPKEvent message. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. + * Encodes the specified VStreamOptions message. Does not implicitly {@link binlogdata.VStreamOptions.verify|verify} messages. * @function encode - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.VStreamOptions * @static - * @param {binlogdata.ILastPKEvent} message LastPKEvent message or plain object to encode + * @param {binlogdata.IVStreamOptions} message VStreamOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LastPKEvent.encode = function encode(message, writer) { + VStreamOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.table_last_p_k != null && Object.hasOwnProperty.call(message, "table_last_p_k")) - $root.binlogdata.TableLastPK.encode(message.table_last_p_k, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.completed != null && Object.hasOwnProperty.call(message, "completed")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.completed); + if (message.internal_tables != null && message.internal_tables.length) + for (let i = 0; i < message.internal_tables.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.internal_tables[i]); + if (message.config_overrides != null && Object.hasOwnProperty.call(message, "config_overrides")) + for (let keys = Object.keys(message.config_overrides), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config_overrides[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified LastPKEvent message, length delimited. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. + * Encodes the specified VStreamOptions message, length delimited. Does not implicitly {@link binlogdata.VStreamOptions.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.VStreamOptions * @static - * @param {binlogdata.ILastPKEvent} message LastPKEvent message or plain object to encode + * @param {binlogdata.IVStreamOptions} message VStreamOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LastPKEvent.encodeDelimited = function encodeDelimited(message, writer) { + VStreamOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LastPKEvent message from the specified reader or buffer. + * Decodes a VStreamOptions message from the specified reader or buffer. * @function decode - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.VStreamOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.LastPKEvent} LastPKEvent + * @returns {binlogdata.VStreamOptions} VStreamOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LastPKEvent.decode = function decode(reader, length) { + VStreamOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.LastPKEvent(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamOptions(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.table_last_p_k = $root.binlogdata.TableLastPK.decode(reader, reader.uint32()); + if (!(message.internal_tables && message.internal_tables.length)) + message.internal_tables = []; + message.internal_tables.push(reader.string()); break; } case 2: { - message.completed = reader.bool(); + if (message.config_overrides === $util.emptyObject) + message.config_overrides = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.config_overrides[key] = value; break; } default: @@ -94724,137 +94782,164 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a LastPKEvent message from the specified reader or buffer, length delimited. + * Decodes a VStreamOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.VStreamOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.LastPKEvent} LastPKEvent + * @returns {binlogdata.VStreamOptions} VStreamOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LastPKEvent.decodeDelimited = function decodeDelimited(reader) { + VStreamOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LastPKEvent message. + * Verifies a VStreamOptions message. * @function verify - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.VStreamOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LastPKEvent.verify = function verify(message) { + VStreamOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.table_last_p_k != null && message.hasOwnProperty("table_last_p_k")) { - let error = $root.binlogdata.TableLastPK.verify(message.table_last_p_k); - if (error) - return "table_last_p_k." + error; + if (message.internal_tables != null && message.hasOwnProperty("internal_tables")) { + if (!Array.isArray(message.internal_tables)) + return "internal_tables: array expected"; + for (let i = 0; i < message.internal_tables.length; ++i) + if (!$util.isString(message.internal_tables[i])) + return "internal_tables: string[] expected"; + } + if (message.config_overrides != null && message.hasOwnProperty("config_overrides")) { + if (!$util.isObject(message.config_overrides)) + return "config_overrides: object expected"; + let key = Object.keys(message.config_overrides); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.config_overrides[key[i]])) + return "config_overrides: string{k:string} expected"; } - if (message.completed != null && message.hasOwnProperty("completed")) - if (typeof message.completed !== "boolean") - return "completed: boolean expected"; return null; }; /** - * Creates a LastPKEvent message from a plain object. Also converts values to their respective internal types. + * Creates a VStreamOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.VStreamOptions * @static * @param {Object.} object Plain object - * @returns {binlogdata.LastPKEvent} LastPKEvent + * @returns {binlogdata.VStreamOptions} VStreamOptions */ - LastPKEvent.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.LastPKEvent) + VStreamOptions.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamOptions) return object; - let message = new $root.binlogdata.LastPKEvent(); - if (object.table_last_p_k != null) { - if (typeof object.table_last_p_k !== "object") - throw TypeError(".binlogdata.LastPKEvent.table_last_p_k: object expected"); - message.table_last_p_k = $root.binlogdata.TableLastPK.fromObject(object.table_last_p_k); + let message = new $root.binlogdata.VStreamOptions(); + if (object.internal_tables) { + if (!Array.isArray(object.internal_tables)) + throw TypeError(".binlogdata.VStreamOptions.internal_tables: array expected"); + message.internal_tables = []; + for (let i = 0; i < object.internal_tables.length; ++i) + message.internal_tables[i] = String(object.internal_tables[i]); + } + if (object.config_overrides) { + if (typeof object.config_overrides !== "object") + throw TypeError(".binlogdata.VStreamOptions.config_overrides: object expected"); + message.config_overrides = {}; + for (let keys = Object.keys(object.config_overrides), i = 0; i < keys.length; ++i) + message.config_overrides[keys[i]] = String(object.config_overrides[keys[i]]); } - if (object.completed != null) - message.completed = Boolean(object.completed); return message; }; /** - * Creates a plain object from a LastPKEvent message. Also converts values to other types if specified. + * Creates a plain object from a VStreamOptions message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.VStreamOptions * @static - * @param {binlogdata.LastPKEvent} message LastPKEvent + * @param {binlogdata.VStreamOptions} message VStreamOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LastPKEvent.toObject = function toObject(message, options) { + VStreamOptions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.table_last_p_k = null; - object.completed = false; + if (options.arrays || options.defaults) + object.internal_tables = []; + if (options.objects || options.defaults) + object.config_overrides = {}; + if (message.internal_tables && message.internal_tables.length) { + object.internal_tables = []; + for (let j = 0; j < message.internal_tables.length; ++j) + object.internal_tables[j] = message.internal_tables[j]; + } + let keys2; + if (message.config_overrides && (keys2 = Object.keys(message.config_overrides)).length) { + object.config_overrides = {}; + for (let j = 0; j < keys2.length; ++j) + object.config_overrides[keys2[j]] = message.config_overrides[keys2[j]]; } - if (message.table_last_p_k != null && message.hasOwnProperty("table_last_p_k")) - object.table_last_p_k = $root.binlogdata.TableLastPK.toObject(message.table_last_p_k, options); - if (message.completed != null && message.hasOwnProperty("completed")) - object.completed = message.completed; return object; }; /** - * Converts this LastPKEvent to JSON. + * Converts this VStreamOptions to JSON. * @function toJSON - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.VStreamOptions * @instance * @returns {Object.} JSON object */ - LastPKEvent.prototype.toJSON = function toJSON() { + VStreamOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LastPKEvent + * Gets the default type url for VStreamOptions * @function getTypeUrl - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.VStreamOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LastPKEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VStreamOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.LastPKEvent"; + return typeUrlPrefix + "/binlogdata.VStreamOptions"; }; - return LastPKEvent; + return VStreamOptions; })(); - binlogdata.TableLastPK = (function() { + binlogdata.VStreamRequest = (function() { /** - * Properties of a TableLastPK. + * Properties of a VStreamRequest. * @memberof binlogdata - * @interface ITableLastPK - * @property {string|null} [table_name] TableLastPK table_name - * @property {query.IQueryResult|null} [lastpk] TableLastPK lastpk + * @interface IVStreamRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] VStreamRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] VStreamRequest immediate_caller_id + * @property {query.ITarget|null} [target] VStreamRequest target + * @property {string|null} [position] VStreamRequest position + * @property {binlogdata.IFilter|null} [filter] VStreamRequest filter + * @property {Array.|null} [table_last_p_ks] VStreamRequest table_last_p_ks + * @property {binlogdata.IVStreamOptions|null} [options] VStreamRequest options */ /** - * Constructs a new TableLastPK. + * Constructs a new VStreamRequest. * @memberof binlogdata - * @classdesc Represents a TableLastPK. - * @implements ITableLastPK + * @classdesc Represents a VStreamRequest. + * @implements IVStreamRequest * @constructor - * @param {binlogdata.ITableLastPK=} [properties] Properties to set + * @param {binlogdata.IVStreamRequest=} [properties] Properties to set */ - function TableLastPK(properties) { + function VStreamRequest(properties) { + this.table_last_p_ks = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94862,89 +94947,162 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * TableLastPK table_name. - * @member {string} table_name - * @memberof binlogdata.TableLastPK + * VStreamRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof binlogdata.VStreamRequest * @instance */ - TableLastPK.prototype.table_name = ""; + VStreamRequest.prototype.effective_caller_id = null; /** - * TableLastPK lastpk. - * @member {query.IQueryResult|null|undefined} lastpk - * @memberof binlogdata.TableLastPK + * VStreamRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof binlogdata.VStreamRequest * @instance */ - TableLastPK.prototype.lastpk = null; + VStreamRequest.prototype.immediate_caller_id = null; /** - * Creates a new TableLastPK instance using the specified properties. + * VStreamRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof binlogdata.VStreamRequest + * @instance + */ + VStreamRequest.prototype.target = null; + + /** + * VStreamRequest position. + * @member {string} position + * @memberof binlogdata.VStreamRequest + * @instance + */ + VStreamRequest.prototype.position = ""; + + /** + * VStreamRequest filter. + * @member {binlogdata.IFilter|null|undefined} filter + * @memberof binlogdata.VStreamRequest + * @instance + */ + VStreamRequest.prototype.filter = null; + + /** + * VStreamRequest table_last_p_ks. + * @member {Array.} table_last_p_ks + * @memberof binlogdata.VStreamRequest + * @instance + */ + VStreamRequest.prototype.table_last_p_ks = $util.emptyArray; + + /** + * VStreamRequest options. + * @member {binlogdata.IVStreamOptions|null|undefined} options + * @memberof binlogdata.VStreamRequest + * @instance + */ + VStreamRequest.prototype.options = null; + + /** + * Creates a new VStreamRequest instance using the specified properties. * @function create - * @memberof binlogdata.TableLastPK + * @memberof binlogdata.VStreamRequest * @static - * @param {binlogdata.ITableLastPK=} [properties] Properties to set - * @returns {binlogdata.TableLastPK} TableLastPK instance + * @param {binlogdata.IVStreamRequest=} [properties] Properties to set + * @returns {binlogdata.VStreamRequest} VStreamRequest instance */ - TableLastPK.create = function create(properties) { - return new TableLastPK(properties); + VStreamRequest.create = function create(properties) { + return new VStreamRequest(properties); }; /** - * Encodes the specified TableLastPK message. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. + * Encodes the specified VStreamRequest message. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. * @function encode - * @memberof binlogdata.TableLastPK + * @memberof binlogdata.VStreamRequest * @static - * @param {binlogdata.ITableLastPK} message TableLastPK message or plain object to encode + * @param {binlogdata.IVStreamRequest} message VStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TableLastPK.encode = function encode(message, writer) { + VStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.table_name != null && Object.hasOwnProperty.call(message, "table_name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.table_name); - if (message.lastpk != null && Object.hasOwnProperty.call(message, "lastpk")) - $root.query.QueryResult.encode(message.lastpk, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.position); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + $root.binlogdata.Filter.encode(message.filter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.table_last_p_ks != null && message.table_last_p_ks.length) + for (let i = 0; i < message.table_last_p_ks.length; ++i) + $root.binlogdata.TableLastPK.encode(message.table_last_p_ks[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.binlogdata.VStreamOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified TableLastPK message, length delimited. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. + * Encodes the specified VStreamRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.TableLastPK + * @memberof binlogdata.VStreamRequest * @static - * @param {binlogdata.ITableLastPK} message TableLastPK message or plain object to encode + * @param {binlogdata.IVStreamRequest} message VStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TableLastPK.encodeDelimited = function encodeDelimited(message, writer) { + VStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TableLastPK message from the specified reader or buffer. + * Decodes a VStreamRequest message from the specified reader or buffer. * @function decode - * @memberof binlogdata.TableLastPK + * @memberof binlogdata.VStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.TableLastPK} TableLastPK + * @returns {binlogdata.VStreamRequest} VStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TableLastPK.decode = function decode(reader, length) { + VStreamRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.TableLastPK(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.table_name = reader.string(); + 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.lastpk = $root.query.QueryResult.decode(reader, reader.uint32()); + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + } + case 4: { + message.position = reader.string(); + break; + } + case 5: { + message.filter = $root.binlogdata.Filter.decode(reader, reader.uint32()); + break; + } + case 6: { + if (!(message.table_last_p_ks && message.table_last_p_ks.length)) + message.table_last_p_ks = []; + message.table_last_p_ks.push($root.binlogdata.TableLastPK.decode(reader, reader.uint32())); + break; + } + case 7: { + message.options = $root.binlogdata.VStreamOptions.decode(reader, reader.uint32()); break; } default: @@ -94956,139 +95114,215 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a TableLastPK message from the specified reader or buffer, length delimited. + * Decodes a VStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.TableLastPK + * @memberof binlogdata.VStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.TableLastPK} TableLastPK + * @returns {binlogdata.VStreamRequest} VStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TableLastPK.decodeDelimited = function decodeDelimited(reader) { + VStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TableLastPK message. + * Verifies a VStreamRequest message. * @function verify - * @memberof binlogdata.TableLastPK + * @memberof binlogdata.VStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TableLastPK.verify = function verify(message) { + VStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.table_name != null && message.hasOwnProperty("table_name")) - if (!$util.isString(message.table_name)) - return "table_name: string expected"; - if (message.lastpk != null && message.hasOwnProperty("lastpk")) { - let error = $root.query.QueryResult.verify(message.lastpk); + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + let error = $root.vtrpc.CallerID.verify(message.effective_caller_id); if (error) - return "lastpk." + error; + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + let error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) { + let error = $root.binlogdata.Filter.verify(message.filter); + if (error) + return "filter." + error; + } + if (message.table_last_p_ks != null && message.hasOwnProperty("table_last_p_ks")) { + if (!Array.isArray(message.table_last_p_ks)) + return "table_last_p_ks: array expected"; + for (let i = 0; i < message.table_last_p_ks.length; ++i) { + let error = $root.binlogdata.TableLastPK.verify(message.table_last_p_ks[i]); + if (error) + return "table_last_p_ks." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.binlogdata.VStreamOptions.verify(message.options); + if (error) + return "options." + error; } return null; }; /** - * Creates a TableLastPK message from a plain object. Also converts values to their respective internal types. + * Creates a VStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.TableLastPK + * @memberof binlogdata.VStreamRequest * @static * @param {Object.} object Plain object - * @returns {binlogdata.TableLastPK} TableLastPK + * @returns {binlogdata.VStreamRequest} VStreamRequest */ - TableLastPK.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.TableLastPK) + VStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamRequest) return object; - let message = new $root.binlogdata.TableLastPK(); - if (object.table_name != null) - message.table_name = String(object.table_name); - if (object.lastpk != null) { - if (typeof object.lastpk !== "object") - throw TypeError(".binlogdata.TableLastPK.lastpk: object expected"); - message.lastpk = $root.query.QueryResult.fromObject(object.lastpk); + let message = new $root.binlogdata.VStreamRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".binlogdata.VStreamRequest.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(".binlogdata.VStreamRequest.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(".binlogdata.VStreamRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.position != null) + message.position = String(object.position); + if (object.filter != null) { + if (typeof object.filter !== "object") + throw TypeError(".binlogdata.VStreamRequest.filter: object expected"); + message.filter = $root.binlogdata.Filter.fromObject(object.filter); + } + if (object.table_last_p_ks) { + if (!Array.isArray(object.table_last_p_ks)) + throw TypeError(".binlogdata.VStreamRequest.table_last_p_ks: array expected"); + message.table_last_p_ks = []; + for (let i = 0; i < object.table_last_p_ks.length; ++i) { + if (typeof object.table_last_p_ks[i] !== "object") + throw TypeError(".binlogdata.VStreamRequest.table_last_p_ks: object expected"); + message.table_last_p_ks[i] = $root.binlogdata.TableLastPK.fromObject(object.table_last_p_ks[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".binlogdata.VStreamRequest.options: object expected"); + message.options = $root.binlogdata.VStreamOptions.fromObject(object.options); } return message; }; /** - * Creates a plain object from a TableLastPK message. Also converts values to other types if specified. + * Creates a plain object from a VStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.TableLastPK + * @memberof binlogdata.VStreamRequest * @static - * @param {binlogdata.TableLastPK} message TableLastPK + * @param {binlogdata.VStreamRequest} message VStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TableLastPK.toObject = function toObject(message, options) { + VStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.table_last_p_ks = []; if (options.defaults) { - object.table_name = ""; - object.lastpk = null; + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.position = ""; + object.filter = null; + object.options = null; } - if (message.table_name != null && message.hasOwnProperty("table_name")) - object.table_name = message.table_name; - if (message.lastpk != null && message.hasOwnProperty("lastpk")) - object.lastpk = $root.query.QueryResult.toObject(message.lastpk, 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.position != null && message.hasOwnProperty("position")) + object.position = message.position; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = $root.binlogdata.Filter.toObject(message.filter, options); + if (message.table_last_p_ks && message.table_last_p_ks.length) { + object.table_last_p_ks = []; + for (let j = 0; j < message.table_last_p_ks.length; ++j) + object.table_last_p_ks[j] = $root.binlogdata.TableLastPK.toObject(message.table_last_p_ks[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.binlogdata.VStreamOptions.toObject(message.options, options); return object; }; /** - * Converts this TableLastPK to JSON. + * Converts this VStreamRequest to JSON. * @function toJSON - * @memberof binlogdata.TableLastPK + * @memberof binlogdata.VStreamRequest * @instance * @returns {Object.} JSON object */ - TableLastPK.prototype.toJSON = function toJSON() { + VStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TableLastPK + * Gets the default type url for VStreamRequest * @function getTypeUrl - * @memberof binlogdata.TableLastPK + * @memberof binlogdata.VStreamRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TableLastPK.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.TableLastPK"; + return typeUrlPrefix + "/binlogdata.VStreamRequest"; }; - return TableLastPK; + return VStreamRequest; })(); - binlogdata.VStreamResultsRequest = (function() { + binlogdata.VStreamResponse = (function() { /** - * Properties of a VStreamResultsRequest. + * Properties of a VStreamResponse. * @memberof binlogdata - * @interface IVStreamResultsRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] VStreamResultsRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] VStreamResultsRequest immediate_caller_id - * @property {query.ITarget|null} [target] VStreamResultsRequest target - * @property {string|null} [query] VStreamResultsRequest query + * @interface IVStreamResponse + * @property {Array.|null} [events] VStreamResponse events */ /** - * Constructs a new VStreamResultsRequest. + * Constructs a new VStreamResponse. * @memberof binlogdata - * @classdesc Represents a VStreamResultsRequest. - * @implements IVStreamResultsRequest + * @classdesc Represents a VStreamResponse. + * @implements IVStreamResponse * @constructor - * @param {binlogdata.IVStreamResultsRequest=} [properties] Properties to set + * @param {binlogdata.IVStreamResponse=} [properties] Properties to set */ - function VStreamResultsRequest(properties) { + function VStreamResponse(properties) { + this.events = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95096,59 +95330,303 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * VStreamResultsRequest effective_caller_id. + * VStreamResponse events. + * @member {Array.} events + * @memberof binlogdata.VStreamResponse + * @instance + */ + VStreamResponse.prototype.events = $util.emptyArray; + + /** + * Creates a new VStreamResponse instance using the specified properties. + * @function create + * @memberof binlogdata.VStreamResponse + * @static + * @param {binlogdata.IVStreamResponse=} [properties] Properties to set + * @returns {binlogdata.VStreamResponse} VStreamResponse instance + */ + VStreamResponse.create = function create(properties) { + return new VStreamResponse(properties); + }; + + /** + * Encodes the specified VStreamResponse message. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. + * @function encode + * @memberof binlogdata.VStreamResponse + * @static + * @param {binlogdata.IVStreamResponse} message VStreamResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VStreamResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.events != null && message.events.length) + for (let i = 0; i < message.events.length; ++i) + $root.binlogdata.VEvent.encode(message.events[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VStreamResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof binlogdata.VStreamResponse + * @static + * @param {binlogdata.IVStreamResponse} message VStreamResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VStreamResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VStreamResponse message from the specified reader or buffer. + * @function decode + * @memberof binlogdata.VStreamResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {binlogdata.VStreamResponse} VStreamResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VStreamResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.binlogdata.VEvent.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VStreamResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof binlogdata.VStreamResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {binlogdata.VStreamResponse} VStreamResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VStreamResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VStreamResponse message. + * @function verify + * @memberof binlogdata.VStreamResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VStreamResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (let i = 0; i < message.events.length; ++i) { + let error = $root.binlogdata.VEvent.verify(message.events[i]); + if (error) + return "events." + error; + } + } + return null; + }; + + /** + * Creates a VStreamResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof binlogdata.VStreamResponse + * @static + * @param {Object.} object Plain object + * @returns {binlogdata.VStreamResponse} VStreamResponse + */ + VStreamResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamResponse) + return object; + let message = new $root.binlogdata.VStreamResponse(); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".binlogdata.VStreamResponse.events: array expected"); + message.events = []; + for (let i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".binlogdata.VStreamResponse.events: object expected"); + message.events[i] = $root.binlogdata.VEvent.fromObject(object.events[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a VStreamResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof binlogdata.VStreamResponse + * @static + * @param {binlogdata.VStreamResponse} message VStreamResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VStreamResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.events = []; + if (message.events && message.events.length) { + object.events = []; + for (let j = 0; j < message.events.length; ++j) + object.events[j] = $root.binlogdata.VEvent.toObject(message.events[j], options); + } + return object; + }; + + /** + * Converts this VStreamResponse to JSON. + * @function toJSON + * @memberof binlogdata.VStreamResponse + * @instance + * @returns {Object.} JSON object + */ + VStreamResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VStreamResponse + * @function getTypeUrl + * @memberof binlogdata.VStreamResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VStreamResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/binlogdata.VStreamResponse"; + }; + + return VStreamResponse; + })(); + + binlogdata.VStreamRowsRequest = (function() { + + /** + * Properties of a VStreamRowsRequest. + * @memberof binlogdata + * @interface IVStreamRowsRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] VStreamRowsRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] VStreamRowsRequest immediate_caller_id + * @property {query.ITarget|null} [target] VStreamRowsRequest target + * @property {string|null} [query] VStreamRowsRequest query + * @property {query.IQueryResult|null} [lastpk] VStreamRowsRequest lastpk + * @property {binlogdata.IVStreamOptions|null} [options] VStreamRowsRequest options + */ + + /** + * Constructs a new VStreamRowsRequest. + * @memberof binlogdata + * @classdesc Represents a VStreamRowsRequest. + * @implements IVStreamRowsRequest + * @constructor + * @param {binlogdata.IVStreamRowsRequest=} [properties] Properties to set + */ + function VStreamRowsRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VStreamRowsRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VStreamRowsRequest * @instance */ - VStreamResultsRequest.prototype.effective_caller_id = null; + VStreamRowsRequest.prototype.effective_caller_id = null; /** - * VStreamResultsRequest immediate_caller_id. + * VStreamRowsRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VStreamRowsRequest * @instance */ - VStreamResultsRequest.prototype.immediate_caller_id = null; + VStreamRowsRequest.prototype.immediate_caller_id = null; /** - * VStreamResultsRequest target. + * VStreamRowsRequest target. * @member {query.ITarget|null|undefined} target - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VStreamRowsRequest * @instance */ - VStreamResultsRequest.prototype.target = null; + VStreamRowsRequest.prototype.target = null; /** - * VStreamResultsRequest query. + * VStreamRowsRequest query. * @member {string} query - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VStreamRowsRequest * @instance */ - VStreamResultsRequest.prototype.query = ""; + VStreamRowsRequest.prototype.query = ""; /** - * Creates a new VStreamResultsRequest instance using the specified properties. + * VStreamRowsRequest lastpk. + * @member {query.IQueryResult|null|undefined} lastpk + * @memberof binlogdata.VStreamRowsRequest + * @instance + */ + VStreamRowsRequest.prototype.lastpk = null; + + /** + * VStreamRowsRequest options. + * @member {binlogdata.IVStreamOptions|null|undefined} options + * @memberof binlogdata.VStreamRowsRequest + * @instance + */ + VStreamRowsRequest.prototype.options = null; + + /** + * Creates a new VStreamRowsRequest instance using the specified properties. * @function create - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VStreamRowsRequest * @static - * @param {binlogdata.IVStreamResultsRequest=} [properties] Properties to set - * @returns {binlogdata.VStreamResultsRequest} VStreamResultsRequest instance + * @param {binlogdata.IVStreamRowsRequest=} [properties] Properties to set + * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest instance */ - VStreamResultsRequest.create = function create(properties) { - return new VStreamResultsRequest(properties); + VStreamRowsRequest.create = function create(properties) { + return new VStreamRowsRequest(properties); }; /** - * Encodes the specified VStreamResultsRequest message. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. + * Encodes the specified VStreamRowsRequest message. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VStreamRowsRequest * @static - * @param {binlogdata.IVStreamResultsRequest} message VStreamResultsRequest message or plain object to encode + * @param {binlogdata.IVStreamRowsRequest} message VStreamRowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamResultsRequest.encode = function encode(message, writer) { + VStreamRowsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -95159,37 +95637,41 @@ export const binlogdata = $root.binlogdata = (() => { $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.query != null && Object.hasOwnProperty.call(message, "query")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.query); + if (message.lastpk != null && Object.hasOwnProperty.call(message, "lastpk")) + $root.query.QueryResult.encode(message.lastpk, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.binlogdata.VStreamOptions.encode(message.options, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified VStreamResultsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. + * Encodes the specified VStreamRowsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VStreamRowsRequest * @static - * @param {binlogdata.IVStreamResultsRequest} message VStreamResultsRequest message or plain object to encode + * @param {binlogdata.IVStreamRowsRequest} message VStreamRowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { + VStreamRowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamResultsRequest message from the specified reader or buffer. + * Decodes a VStreamRowsRequest message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VStreamRowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.VStreamResultsRequest} VStreamResultsRequest + * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamResultsRequest.decode = function decode(reader, length) { + VStreamRowsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResultsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRowsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -95209,6 +95691,14 @@ export const binlogdata = $root.binlogdata = (() => { message.query = reader.string(); break; } + case 5: { + message.lastpk = $root.query.QueryResult.decode(reader, reader.uint32()); + break; + } + case 6: { + message.options = $root.binlogdata.VStreamOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -95218,30 +95708,30 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a VStreamResultsRequest message from the specified reader or buffer, length delimited. + * Decodes a VStreamRowsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VStreamRowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamResultsRequest} VStreamResultsRequest + * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamResultsRequest.decodeDelimited = function decodeDelimited(reader) { + VStreamRowsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VStreamResultsRequest message. + * Verifies a VStreamRowsRequest message. * @function verify - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VStreamRowsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VStreamResultsRequest.verify = function verify(message) { + VStreamRowsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -95262,51 +95752,71 @@ export const binlogdata = $root.binlogdata = (() => { if (message.query != null && message.hasOwnProperty("query")) if (!$util.isString(message.query)) return "query: string expected"; + if (message.lastpk != null && message.hasOwnProperty("lastpk")) { + let error = $root.query.QueryResult.verify(message.lastpk); + if (error) + return "lastpk." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.binlogdata.VStreamOptions.verify(message.options); + if (error) + return "options." + error; + } return null; }; /** - * Creates a VStreamResultsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VStreamRowsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VStreamRowsRequest * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamResultsRequest} VStreamResultsRequest + * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest */ - VStreamResultsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamResultsRequest) + VStreamRowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamRowsRequest) return object; - let message = new $root.binlogdata.VStreamResultsRequest(); + let message = new $root.binlogdata.VStreamRowsRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".binlogdata.VStreamResultsRequest.effective_caller_id: object expected"); + throw TypeError(".binlogdata.VStreamRowsRequest.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(".binlogdata.VStreamResultsRequest.immediate_caller_id: object expected"); + throw TypeError(".binlogdata.VStreamRowsRequest.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(".binlogdata.VStreamResultsRequest.target: object expected"); + throw TypeError(".binlogdata.VStreamRowsRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } if (object.query != null) message.query = String(object.query); + if (object.lastpk != null) { + if (typeof object.lastpk !== "object") + throw TypeError(".binlogdata.VStreamRowsRequest.lastpk: object expected"); + message.lastpk = $root.query.QueryResult.fromObject(object.lastpk); + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".binlogdata.VStreamRowsRequest.options: object expected"); + message.options = $root.binlogdata.VStreamOptions.fromObject(object.options); + } return message; }; /** - * Creates a plain object from a VStreamResultsRequest message. Also converts values to other types if specified. + * Creates a plain object from a VStreamRowsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VStreamRowsRequest * @static - * @param {binlogdata.VStreamResultsRequest} message VStreamResultsRequest + * @param {binlogdata.VStreamRowsRequest} message VStreamRowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamResultsRequest.toObject = function toObject(message, options) { + VStreamRowsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -95315,6 +95825,8 @@ export const binlogdata = $root.binlogdata = (() => { object.immediate_caller_id = null; object.target = null; object.query = ""; + object.lastpk = 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); @@ -95324,59 +95836,69 @@ export const binlogdata = $root.binlogdata = (() => { object.target = $root.query.Target.toObject(message.target, options); if (message.query != null && message.hasOwnProperty("query")) object.query = message.query; + if (message.lastpk != null && message.hasOwnProperty("lastpk")) + object.lastpk = $root.query.QueryResult.toObject(message.lastpk, options); + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.binlogdata.VStreamOptions.toObject(message.options, options); return object; }; /** - * Converts this VStreamResultsRequest to JSON. + * Converts this VStreamRowsRequest to JSON. * @function toJSON - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VStreamRowsRequest * @instance * @returns {Object.} JSON object */ - VStreamResultsRequest.prototype.toJSON = function toJSON() { + VStreamRowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VStreamResultsRequest + * Gets the default type url for VStreamRowsRequest * @function getTypeUrl - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VStreamRowsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VStreamResultsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VStreamRowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.VStreamResultsRequest"; + return typeUrlPrefix + "/binlogdata.VStreamRowsRequest"; }; - return VStreamResultsRequest; + return VStreamRowsRequest; })(); - binlogdata.VStreamResultsResponse = (function() { + binlogdata.VStreamRowsResponse = (function() { /** - * Properties of a VStreamResultsResponse. + * Properties of a VStreamRowsResponse. * @memberof binlogdata - * @interface IVStreamResultsResponse - * @property {Array.|null} [fields] VStreamResultsResponse fields - * @property {string|null} [gtid] VStreamResultsResponse gtid - * @property {Array.|null} [rows] VStreamResultsResponse rows + * @interface IVStreamRowsResponse + * @property {Array.|null} [fields] VStreamRowsResponse fields + * @property {Array.|null} [pkfields] VStreamRowsResponse pkfields + * @property {string|null} [gtid] VStreamRowsResponse gtid + * @property {Array.|null} [rows] VStreamRowsResponse rows + * @property {query.IRow|null} [lastpk] VStreamRowsResponse lastpk + * @property {boolean|null} [throttled] VStreamRowsResponse throttled + * @property {boolean|null} [heartbeat] VStreamRowsResponse heartbeat + * @property {string|null} [throttled_reason] VStreamRowsResponse throttled_reason */ /** - * Constructs a new VStreamResultsResponse. + * Constructs a new VStreamRowsResponse. * @memberof binlogdata - * @classdesc Represents a VStreamResultsResponse. - * @implements IVStreamResultsResponse + * @classdesc Represents a VStreamRowsResponse. + * @implements IVStreamRowsResponse * @constructor - * @param {binlogdata.IVStreamResultsResponse=} [properties] Properties to set + * @param {binlogdata.IVStreamRowsResponse=} [properties] Properties to set */ - function VStreamResultsResponse(properties) { + function VStreamRowsResponse(properties) { this.fields = []; + this.pkfields = []; this.rows = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -95385,92 +95907,143 @@ export const binlogdata = $root.binlogdata = (() => { } /** - * VStreamResultsResponse fields. + * VStreamRowsResponse fields. * @member {Array.} fields - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.VStreamRowsResponse * @instance */ - VStreamResultsResponse.prototype.fields = $util.emptyArray; + VStreamRowsResponse.prototype.fields = $util.emptyArray; /** - * VStreamResultsResponse gtid. + * VStreamRowsResponse pkfields. + * @member {Array.} pkfields + * @memberof binlogdata.VStreamRowsResponse + * @instance + */ + VStreamRowsResponse.prototype.pkfields = $util.emptyArray; + + /** + * VStreamRowsResponse gtid. * @member {string} gtid - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.VStreamRowsResponse * @instance */ - VStreamResultsResponse.prototype.gtid = ""; + VStreamRowsResponse.prototype.gtid = ""; /** - * VStreamResultsResponse rows. + * VStreamRowsResponse rows. * @member {Array.} rows - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.VStreamRowsResponse * @instance */ - VStreamResultsResponse.prototype.rows = $util.emptyArray; + VStreamRowsResponse.prototype.rows = $util.emptyArray; /** - * Creates a new VStreamResultsResponse instance using the specified properties. + * VStreamRowsResponse lastpk. + * @member {query.IRow|null|undefined} lastpk + * @memberof binlogdata.VStreamRowsResponse + * @instance + */ + VStreamRowsResponse.prototype.lastpk = null; + + /** + * VStreamRowsResponse throttled. + * @member {boolean} throttled + * @memberof binlogdata.VStreamRowsResponse + * @instance + */ + VStreamRowsResponse.prototype.throttled = false; + + /** + * VStreamRowsResponse heartbeat. + * @member {boolean} heartbeat + * @memberof binlogdata.VStreamRowsResponse + * @instance + */ + VStreamRowsResponse.prototype.heartbeat = false; + + /** + * VStreamRowsResponse throttled_reason. + * @member {string} throttled_reason + * @memberof binlogdata.VStreamRowsResponse + * @instance + */ + VStreamRowsResponse.prototype.throttled_reason = ""; + + /** + * Creates a new VStreamRowsResponse instance using the specified properties. * @function create - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.VStreamRowsResponse * @static - * @param {binlogdata.IVStreamResultsResponse=} [properties] Properties to set - * @returns {binlogdata.VStreamResultsResponse} VStreamResultsResponse instance + * @param {binlogdata.IVStreamRowsResponse=} [properties] Properties to set + * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse instance */ - VStreamResultsResponse.create = function create(properties) { - return new VStreamResultsResponse(properties); + VStreamRowsResponse.create = function create(properties) { + return new VStreamRowsResponse(properties); }; /** - * Encodes the specified VStreamResultsResponse message. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. + * Encodes the specified VStreamRowsResponse message. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.VStreamRowsResponse * @static - * @param {binlogdata.IVStreamResultsResponse} message VStreamResultsResponse message or plain object to encode + * @param {binlogdata.IVStreamRowsResponse} message VStreamRowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamResultsResponse.encode = function encode(message, writer) { + VStreamRowsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.fields != null && message.fields.length) for (let 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.pkfields != null && message.pkfields.length) + for (let i = 0; i < message.pkfields.length; ++i) + $root.query.Field.encode(message.pkfields[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.gtid != null && Object.hasOwnProperty.call(message, "gtid")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.gtid); if (message.rows != null && message.rows.length) for (let 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.lastpk != null && Object.hasOwnProperty.call(message, "lastpk")) + $root.query.Row.encode(message.lastpk, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.throttled != null && Object.hasOwnProperty.call(message, "throttled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.throttled); + if (message.heartbeat != null && Object.hasOwnProperty.call(message, "heartbeat")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.heartbeat); + if (message.throttled_reason != null && Object.hasOwnProperty.call(message, "throttled_reason")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.throttled_reason); return writer; }; /** - * Encodes the specified VStreamResultsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. + * Encodes the specified VStreamRowsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.VStreamRowsResponse * @static - * @param {binlogdata.IVStreamResultsResponse} message VStreamResultsResponse message or plain object to encode + * @param {binlogdata.IVStreamRowsResponse} message VStreamRowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VStreamResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { + VStreamRowsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamResultsResponse message from the specified reader or buffer. + * Decodes a VStreamRowsResponse message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.VStreamRowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.VStreamResultsResponse} VStreamResultsResponse + * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamResultsResponse.decode = function decode(reader, length) { + VStreamRowsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResultsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRowsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -95480,6 +96053,12 @@ export const binlogdata = $root.binlogdata = (() => { message.fields.push($root.query.Field.decode(reader, reader.uint32())); break; } + case 2: { + if (!(message.pkfields && message.pkfields.length)) + message.pkfields = []; + message.pkfields.push($root.query.Field.decode(reader, reader.uint32())); + break; + } case 3: { message.gtid = reader.string(); break; @@ -95490,6 +96069,22 @@ export const binlogdata = $root.binlogdata = (() => { message.rows.push($root.query.Row.decode(reader, reader.uint32())); break; } + case 5: { + message.lastpk = $root.query.Row.decode(reader, reader.uint32()); + break; + } + case 6: { + message.throttled = reader.bool(); + break; + } + case 7: { + message.heartbeat = reader.bool(); + break; + } + case 8: { + message.throttled_reason = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -95499,30 +96094,30 @@ export const binlogdata = $root.binlogdata = (() => { }; /** - * Decodes a VStreamResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a VStreamRowsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.VStreamRowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamResultsResponse} VStreamResultsResponse + * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VStreamResultsResponse.decodeDelimited = function decodeDelimited(reader) { + VStreamRowsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VStreamResultsResponse message. + * Verifies a VStreamRowsResponse message. * @function verify - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.VStreamRowsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VStreamResultsResponse.verify = function verify(message) { + VStreamRowsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.fields != null && message.hasOwnProperty("fields")) { @@ -95534,6 +96129,15 @@ export const binlogdata = $root.binlogdata = (() => { return "fields." + error; } } + if (message.pkfields != null && message.hasOwnProperty("pkfields")) { + if (!Array.isArray(message.pkfields)) + return "pkfields: array expected"; + for (let i = 0; i < message.pkfields.length; ++i) { + let error = $root.query.Field.verify(message.pkfields[i]); + if (error) + return "pkfields." + error; + } + } if (message.gtid != null && message.hasOwnProperty("gtid")) if (!$util.isString(message.gtid)) return "gtid: string expected"; @@ -95546,70 +96150,116 @@ export const binlogdata = $root.binlogdata = (() => { return "rows." + error; } } + if (message.lastpk != null && message.hasOwnProperty("lastpk")) { + let error = $root.query.Row.verify(message.lastpk); + if (error) + return "lastpk." + error; + } + if (message.throttled != null && message.hasOwnProperty("throttled")) + if (typeof message.throttled !== "boolean") + return "throttled: boolean expected"; + if (message.heartbeat != null && message.hasOwnProperty("heartbeat")) + if (typeof message.heartbeat !== "boolean") + return "heartbeat: boolean expected"; + if (message.throttled_reason != null && message.hasOwnProperty("throttled_reason")) + if (!$util.isString(message.throttled_reason)) + return "throttled_reason: string expected"; return null; }; /** - * Creates a VStreamResultsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VStreamRowsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.VStreamRowsResponse * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamResultsResponse} VStreamResultsResponse + * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse */ - VStreamResultsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamResultsResponse) + VStreamRowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamRowsResponse) return object; - let message = new $root.binlogdata.VStreamResultsResponse(); + let message = new $root.binlogdata.VStreamRowsResponse(); if (object.fields) { if (!Array.isArray(object.fields)) - throw TypeError(".binlogdata.VStreamResultsResponse.fields: array expected"); + throw TypeError(".binlogdata.VStreamRowsResponse.fields: array expected"); message.fields = []; for (let i = 0; i < object.fields.length; ++i) { if (typeof object.fields[i] !== "object") - throw TypeError(".binlogdata.VStreamResultsResponse.fields: object expected"); + throw TypeError(".binlogdata.VStreamRowsResponse.fields: object expected"); message.fields[i] = $root.query.Field.fromObject(object.fields[i]); } } + if (object.pkfields) { + if (!Array.isArray(object.pkfields)) + throw TypeError(".binlogdata.VStreamRowsResponse.pkfields: array expected"); + message.pkfields = []; + for (let i = 0; i < object.pkfields.length; ++i) { + if (typeof object.pkfields[i] !== "object") + throw TypeError(".binlogdata.VStreamRowsResponse.pkfields: object expected"); + message.pkfields[i] = $root.query.Field.fromObject(object.pkfields[i]); + } + } if (object.gtid != null) message.gtid = String(object.gtid); if (object.rows) { if (!Array.isArray(object.rows)) - throw TypeError(".binlogdata.VStreamResultsResponse.rows: array expected"); + throw TypeError(".binlogdata.VStreamRowsResponse.rows: array expected"); message.rows = []; for (let i = 0; i < object.rows.length; ++i) { if (typeof object.rows[i] !== "object") - throw TypeError(".binlogdata.VStreamResultsResponse.rows: object expected"); + throw TypeError(".binlogdata.VStreamRowsResponse.rows: object expected"); message.rows[i] = $root.query.Row.fromObject(object.rows[i]); } } + if (object.lastpk != null) { + if (typeof object.lastpk !== "object") + throw TypeError(".binlogdata.VStreamRowsResponse.lastpk: object expected"); + message.lastpk = $root.query.Row.fromObject(object.lastpk); + } + if (object.throttled != null) + message.throttled = Boolean(object.throttled); + if (object.heartbeat != null) + message.heartbeat = Boolean(object.heartbeat); + if (object.throttled_reason != null) + message.throttled_reason = String(object.throttled_reason); return message; }; /** - * Creates a plain object from a VStreamResultsResponse message. Also converts values to other types if specified. + * Creates a plain object from a VStreamRowsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.VStreamRowsResponse * @static - * @param {binlogdata.VStreamResultsResponse} message VStreamResultsResponse + * @param {binlogdata.VStreamRowsResponse} message VStreamRowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamResultsResponse.toObject = function toObject(message, options) { + VStreamRowsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.fields = []; + object.pkfields = []; object.rows = []; } - if (options.defaults) + if (options.defaults) { object.gtid = ""; + object.lastpk = null; + object.throttled = false; + object.heartbeat = false; + object.throttled_reason = ""; + } if (message.fields && message.fields.length) { object.fields = []; for (let j = 0; j < message.fields.length; ++j) object.fields[j] = $root.query.Field.toObject(message.fields[j], options); } + if (message.pkfields && message.pkfields.length) { + object.pkfields = []; + for (let j = 0; j < message.pkfields.length; ++j) + object.pkfields[j] = $root.query.Field.toObject(message.pkfields[j], options); + } if (message.gtid != null && message.hasOwnProperty("gtid")) object.gtid = message.gtid; if (message.rows && message.rows.length) { @@ -95617,71 +96267,67 @@ export const binlogdata = $root.binlogdata = (() => { for (let j = 0; j < message.rows.length; ++j) object.rows[j] = $root.query.Row.toObject(message.rows[j], options); } + if (message.lastpk != null && message.hasOwnProperty("lastpk")) + object.lastpk = $root.query.Row.toObject(message.lastpk, options); + if (message.throttled != null && message.hasOwnProperty("throttled")) + object.throttled = message.throttled; + if (message.heartbeat != null && message.hasOwnProperty("heartbeat")) + object.heartbeat = message.heartbeat; + if (message.throttled_reason != null && message.hasOwnProperty("throttled_reason")) + object.throttled_reason = message.throttled_reason; return object; }; /** - * Converts this VStreamResultsResponse to JSON. + * Converts this VStreamRowsResponse to JSON. * @function toJSON - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.VStreamRowsResponse * @instance * @returns {Object.} JSON object */ - VStreamResultsResponse.prototype.toJSON = function toJSON() { + VStreamRowsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VStreamResultsResponse + * Gets the default type url for VStreamRowsResponse * @function getTypeUrl - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.VStreamRowsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VStreamResultsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VStreamRowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/binlogdata.VStreamResultsResponse"; + return typeUrlPrefix + "/binlogdata.VStreamRowsResponse"; }; - return VStreamResultsResponse; + return VStreamRowsResponse; })(); - return binlogdata; -})(); - -export const query = $root.query = (() => { - - /** - * Namespace query. - * @exports query - * @namespace - */ - const query = {}; - - query.Target = (function() { + binlogdata.VStreamTablesRequest = (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 VStreamTablesRequest. + * @memberof binlogdata + * @interface IVStreamTablesRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] VStreamTablesRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] VStreamTablesRequest immediate_caller_id + * @property {query.ITarget|null} [target] VStreamTablesRequest target + * @property {binlogdata.IVStreamOptions|null} [options] VStreamTablesRequest options */ /** - * Constructs a new Target. - * @memberof query - * @classdesc Represents a Target. - * @implements ITarget + * Constructs a new VStreamTablesRequest. + * @memberof binlogdata + * @classdesc Represents a VStreamTablesRequest. + * @implements IVStreamTablesRequest * @constructor - * @param {query.ITarget=} [properties] Properties to set + * @param {binlogdata.IVStreamTablesRequest=} [properties] Properties to set */ - function Target(properties) { + function VStreamTablesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95689,117 +96335,117 @@ export const query = $root.query = (() => { } /** - * Target keyspace. - * @member {string} keyspace - * @memberof query.Target + * VStreamTablesRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof binlogdata.VStreamTablesRequest * @instance */ - Target.prototype.keyspace = ""; + VStreamTablesRequest.prototype.effective_caller_id = null; /** - * Target shard. - * @member {string} shard - * @memberof query.Target + * VStreamTablesRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof binlogdata.VStreamTablesRequest * @instance */ - Target.prototype.shard = ""; + VStreamTablesRequest.prototype.immediate_caller_id = null; /** - * Target tablet_type. - * @member {topodata.TabletType} tablet_type - * @memberof query.Target + * VStreamTablesRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof binlogdata.VStreamTablesRequest * @instance */ - Target.prototype.tablet_type = 0; + VStreamTablesRequest.prototype.target = null; /** - * Target cell. - * @member {string} cell - * @memberof query.Target + * VStreamTablesRequest options. + * @member {binlogdata.IVStreamOptions|null|undefined} options + * @memberof binlogdata.VStreamTablesRequest * @instance */ - Target.prototype.cell = ""; + VStreamTablesRequest.prototype.options = null; /** - * Creates a new Target instance using the specified properties. + * Creates a new VStreamTablesRequest instance using the specified properties. * @function create - * @memberof query.Target + * @memberof binlogdata.VStreamTablesRequest * @static - * @param {query.ITarget=} [properties] Properties to set - * @returns {query.Target} Target instance + * @param {binlogdata.IVStreamTablesRequest=} [properties] Properties to set + * @returns {binlogdata.VStreamTablesRequest} VStreamTablesRequest instance */ - Target.create = function create(properties) { - return new Target(properties); + VStreamTablesRequest.create = function create(properties) { + return new VStreamTablesRequest(properties); }; /** - * Encodes the specified Target message. Does not implicitly {@link query.Target.verify|verify} messages. + * Encodes the specified VStreamTablesRequest message. Does not implicitly {@link binlogdata.VStreamTablesRequest.verify|verify} messages. * @function encode - * @memberof query.Target + * @memberof binlogdata.VStreamTablesRequest * @static - * @param {query.ITarget} message Target message or plain object to encode + * @param {binlogdata.IVStreamTablesRequest} message VStreamTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Target.encode = function encode(message, writer) { + VStreamTablesRequest.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.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.binlogdata.VStreamOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified Target message, length delimited. Does not implicitly {@link query.Target.verify|verify} messages. + * Encodes the specified VStreamTablesRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamTablesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.Target + * @memberof binlogdata.VStreamTablesRequest * @static - * @param {query.ITarget} message Target message or plain object to encode + * @param {binlogdata.IVStreamTablesRequest} message VStreamTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Target.encodeDelimited = function encodeDelimited(message, writer) { + VStreamTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Target message from the specified reader or buffer. + * Decodes a VStreamTablesRequest message from the specified reader or buffer. * @function decode - * @memberof query.Target + * @memberof binlogdata.VStreamTablesRequest * @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 {binlogdata.VStreamTablesRequest} VStreamTablesRequest * @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) { + VStreamTablesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Target(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamTablesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; } case 2: { - message.shard = reader.string(); + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); break; } case 3: { - message.tablet_type = reader.int32(); + message.target = $root.query.Target.decode(reader, reader.uint32()); break; } case 4: { - message.cell = reader.string(); + message.options = $root.binlogdata.VStreamOptions.decode(reader, reader.uint32()); break; } default: @@ -95811,213 +96457,175 @@ export const query = $root.query = (() => { }; /** - * Decodes a Target message from the specified reader or buffer, length delimited. + * Decodes a VStreamTablesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.Target + * @memberof binlogdata.VStreamTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.Target} Target + * @returns {binlogdata.VStreamTablesRequest} VStreamTablesRequest * @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) { + VStreamTablesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Target message. + * Verifies a VStreamTablesRequest message. * @function verify - * @memberof query.Target + * @memberof binlogdata.VStreamTablesRequest * @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) { + VStreamTablesRequest.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.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + let 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")) { + let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + let error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.binlogdata.VStreamOptions.verify(message.options); + if (error) + return "options." + error; + } return null; }; /** - * Creates a Target message from a plain object. Also converts values to their respective internal types. + * Creates a VStreamTablesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.Target + * @memberof binlogdata.VStreamTablesRequest * @static * @param {Object.} object Plain object - * @returns {query.Target} Target + * @returns {binlogdata.VStreamTablesRequest} VStreamTablesRequest */ - Target.fromObject = function fromObject(object) { - if (object instanceof $root.query.Target) + VStreamTablesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamTablesRequest) return object; - let 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) { - default: - if (typeof object.tablet_type === "number") { - message.tablet_type = object.tablet_type; - break; - } - break; - 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.binlogdata.VStreamTablesRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".binlogdata.VStreamTablesRequest.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(".binlogdata.VStreamTablesRequest.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(".binlogdata.VStreamTablesRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".binlogdata.VStreamTablesRequest.options: object expected"); + message.options = $root.binlogdata.VStreamOptions.fromObject(object.options); } - if (object.cell != null) - message.cell = String(object.cell); return message; }; /** - * Creates a plain object from a Target message. Also converts values to other types if specified. + * Creates a plain object from a VStreamTablesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.Target + * @memberof binlogdata.VStreamTablesRequest * @static - * @param {query.Target} message Target + * @param {binlogdata.VStreamTablesRequest} message VStreamTablesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Target.toObject = function toObject(message, options) { + VStreamTablesRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.tablet_type = options.enums === String ? "UNKNOWN" : 0; - object.cell = ""; + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.options = null; } - 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] === undefined ? message.tablet_type : $root.topodata.TabletType[message.tablet_type] : message.tablet_type; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; + 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.binlogdata.VStreamOptions.toObject(message.options, options); return object; }; /** - * Converts this Target to JSON. + * Converts this VStreamTablesRequest to JSON. * @function toJSON - * @memberof query.Target + * @memberof binlogdata.VStreamTablesRequest * @instance * @returns {Object.} JSON object */ - Target.prototype.toJSON = function toJSON() { + VStreamTablesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Target + * Gets the default type url for VStreamTablesRequest * @function getTypeUrl - * @memberof query.Target + * @memberof binlogdata.VStreamTablesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Target.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VStreamTablesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.Target"; + return typeUrlPrefix + "/binlogdata.VStreamTablesRequest"; }; - return Target; + return VStreamTablesRequest; })(); - query.VTGateCallerID = (function() { + binlogdata.VStreamTablesResponse = (function() { /** - * Properties of a VTGateCallerID. - * @memberof query - * @interface IVTGateCallerID - * @property {string|null} [username] VTGateCallerID username - * @property {Array.|null} [groups] VTGateCallerID groups + * Properties of a VStreamTablesResponse. + * @memberof binlogdata + * @interface IVStreamTablesResponse + * @property {string|null} [table_name] VStreamTablesResponse table_name + * @property {Array.|null} [fields] VStreamTablesResponse fields + * @property {Array.|null} [pkfields] VStreamTablesResponse pkfields + * @property {string|null} [gtid] VStreamTablesResponse gtid + * @property {Array.|null} [rows] VStreamTablesResponse rows + * @property {query.IRow|null} [lastpk] VStreamTablesResponse lastpk */ /** - * Constructs a new VTGateCallerID. - * @memberof query - * @classdesc Represents a VTGateCallerID. - * @implements IVTGateCallerID + * Constructs a new VStreamTablesResponse. + * @memberof binlogdata + * @classdesc Represents a VStreamTablesResponse. + * @implements IVStreamTablesResponse * @constructor - * @param {query.IVTGateCallerID=} [properties] Properties to set + * @param {binlogdata.IVStreamTablesResponse=} [properties] Properties to set */ - function VTGateCallerID(properties) { - this.groups = []; + function VStreamTablesResponse(properties) { + this.fields = []; + this.pkfields = []; + this.rows = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96025,92 +96633,154 @@ export const query = $root.query = (() => { } /** - * VTGateCallerID username. - * @member {string} username - * @memberof query.VTGateCallerID + * VStreamTablesResponse table_name. + * @member {string} table_name + * @memberof binlogdata.VStreamTablesResponse * @instance */ - VTGateCallerID.prototype.username = ""; + VStreamTablesResponse.prototype.table_name = ""; /** - * VTGateCallerID groups. - * @member {Array.} groups - * @memberof query.VTGateCallerID + * VStreamTablesResponse fields. + * @member {Array.} fields + * @memberof binlogdata.VStreamTablesResponse * @instance */ - VTGateCallerID.prototype.groups = $util.emptyArray; + VStreamTablesResponse.prototype.fields = $util.emptyArray; /** - * Creates a new VTGateCallerID instance using the specified properties. + * VStreamTablesResponse pkfields. + * @member {Array.} pkfields + * @memberof binlogdata.VStreamTablesResponse + * @instance + */ + VStreamTablesResponse.prototype.pkfields = $util.emptyArray; + + /** + * VStreamTablesResponse gtid. + * @member {string} gtid + * @memberof binlogdata.VStreamTablesResponse + * @instance + */ + VStreamTablesResponse.prototype.gtid = ""; + + /** + * VStreamTablesResponse rows. + * @member {Array.} rows + * @memberof binlogdata.VStreamTablesResponse + * @instance + */ + VStreamTablesResponse.prototype.rows = $util.emptyArray; + + /** + * VStreamTablesResponse lastpk. + * @member {query.IRow|null|undefined} lastpk + * @memberof binlogdata.VStreamTablesResponse + * @instance + */ + VStreamTablesResponse.prototype.lastpk = null; + + /** + * Creates a new VStreamTablesResponse instance using the specified properties. * @function create - * @memberof query.VTGateCallerID + * @memberof binlogdata.VStreamTablesResponse * @static - * @param {query.IVTGateCallerID=} [properties] Properties to set - * @returns {query.VTGateCallerID} VTGateCallerID instance + * @param {binlogdata.IVStreamTablesResponse=} [properties] Properties to set + * @returns {binlogdata.VStreamTablesResponse} VStreamTablesResponse instance */ - VTGateCallerID.create = function create(properties) { - return new VTGateCallerID(properties); + VStreamTablesResponse.create = function create(properties) { + return new VStreamTablesResponse(properties); }; /** - * Encodes the specified VTGateCallerID message. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. + * Encodes the specified VStreamTablesResponse message. Does not implicitly {@link binlogdata.VStreamTablesResponse.verify|verify} messages. * @function encode - * @memberof query.VTGateCallerID + * @memberof binlogdata.VStreamTablesResponse * @static - * @param {query.IVTGateCallerID} message VTGateCallerID message or plain object to encode + * @param {binlogdata.IVStreamTablesResponse} message VStreamTablesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VTGateCallerID.encode = function encode(message, writer) { + VStreamTablesResponse.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 (let i = 0; i < message.groups.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.groups[i]); + if (message.table_name != null && Object.hasOwnProperty.call(message, "table_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.table_name); + if (message.fields != null && message.fields.length) + for (let i = 0; i < message.fields.length; ++i) + $root.query.Field.encode(message.fields[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pkfields != null && message.pkfields.length) + for (let i = 0; i < message.pkfields.length; ++i) + $root.query.Field.encode(message.pkfields[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.gtid != null && Object.hasOwnProperty.call(message, "gtid")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.gtid); + if (message.rows != null && message.rows.length) + for (let i = 0; i < message.rows.length; ++i) + $root.query.Row.encode(message.rows[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.lastpk != null && Object.hasOwnProperty.call(message, "lastpk")) + $root.query.Row.encode(message.lastpk, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified VTGateCallerID message, length delimited. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. + * Encodes the specified VStreamTablesResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamTablesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.VTGateCallerID + * @memberof binlogdata.VStreamTablesResponse * @static - * @param {query.IVTGateCallerID} message VTGateCallerID message or plain object to encode + * @param {binlogdata.IVStreamTablesResponse} message VStreamTablesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VTGateCallerID.encodeDelimited = function encodeDelimited(message, writer) { + VStreamTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VTGateCallerID message from the specified reader or buffer. + * Decodes a VStreamTablesResponse message from the specified reader or buffer. * @function decode - * @memberof query.VTGateCallerID + * @memberof binlogdata.VStreamTablesResponse * @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 {binlogdata.VStreamTablesResponse} VStreamTablesResponse * @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) { + VStreamTablesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.VTGateCallerID(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamTablesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.username = reader.string(); + message.table_name = reader.string(); break; } case 2: { - if (!(message.groups && message.groups.length)) - message.groups = []; - message.groups.push(reader.string()); + if (!(message.fields && message.fields.length)) + message.fields = []; + message.fields.push($root.query.Field.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.pkfields && message.pkfields.length)) + message.pkfields = []; + message.pkfields.push($root.query.Field.decode(reader, reader.uint32())); + break; + } + case 4: { + message.gtid = reader.string(); + break; + } + case 5: { + if (!(message.rows && message.rows.length)) + message.rows = []; + message.rows.push($root.query.Row.decode(reader, reader.uint32())); + break; + } + case 6: { + message.lastpk = $root.query.Row.decode(reader, reader.uint32()); break; } default: @@ -96122,145 +96792,222 @@ export const query = $root.query = (() => { }; /** - * Decodes a VTGateCallerID message from the specified reader or buffer, length delimited. + * Decodes a VStreamTablesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.VTGateCallerID + * @memberof binlogdata.VStreamTablesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.VTGateCallerID} VTGateCallerID + * @returns {binlogdata.VStreamTablesResponse} VStreamTablesResponse * @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) { + VStreamTablesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VTGateCallerID message. + * Verifies a VStreamTablesResponse message. * @function verify - * @memberof query.VTGateCallerID + * @memberof binlogdata.VStreamTablesResponse * @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) { + VStreamTablesResponse.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 (let i = 0; i < message.groups.length; ++i) - if (!$util.isString(message.groups[i])) - return "groups: string[] expected"; + if (message.table_name != null && message.hasOwnProperty("table_name")) + if (!$util.isString(message.table_name)) + return "table_name: string expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (let i = 0; i < message.fields.length; ++i) { + let error = $root.query.Field.verify(message.fields[i]); + if (error) + return "fields." + error; + } + } + if (message.pkfields != null && message.hasOwnProperty("pkfields")) { + if (!Array.isArray(message.pkfields)) + return "pkfields: array expected"; + for (let i = 0; i < message.pkfields.length; ++i) { + let error = $root.query.Field.verify(message.pkfields[i]); + if (error) + return "pkfields." + error; + } + } + if (message.gtid != null && message.hasOwnProperty("gtid")) + if (!$util.isString(message.gtid)) + return "gtid: string expected"; + if (message.rows != null && message.hasOwnProperty("rows")) { + if (!Array.isArray(message.rows)) + return "rows: array expected"; + for (let i = 0; i < message.rows.length; ++i) { + let error = $root.query.Row.verify(message.rows[i]); + if (error) + return "rows." + error; + } + } + if (message.lastpk != null && message.hasOwnProperty("lastpk")) { + let error = $root.query.Row.verify(message.lastpk); + if (error) + return "lastpk." + error; } return null; }; /** - * Creates a VTGateCallerID message from a plain object. Also converts values to their respective internal types. + * Creates a VStreamTablesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.VTGateCallerID + * @memberof binlogdata.VStreamTablesResponse * @static * @param {Object.} object Plain object - * @returns {query.VTGateCallerID} VTGateCallerID + * @returns {binlogdata.VStreamTablesResponse} VStreamTablesResponse */ - VTGateCallerID.fromObject = function fromObject(object) { - if (object instanceof $root.query.VTGateCallerID) + VStreamTablesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamTablesResponse) return object; - let 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 (let i = 0; i < object.groups.length; ++i) - message.groups[i] = String(object.groups[i]); + let message = new $root.binlogdata.VStreamTablesResponse(); + if (object.table_name != null) + message.table_name = String(object.table_name); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".binlogdata.VStreamTablesResponse.fields: array expected"); + message.fields = []; + for (let i = 0; i < object.fields.length; ++i) { + if (typeof object.fields[i] !== "object") + throw TypeError(".binlogdata.VStreamTablesResponse.fields: object expected"); + message.fields[i] = $root.query.Field.fromObject(object.fields[i]); + } + } + if (object.pkfields) { + if (!Array.isArray(object.pkfields)) + throw TypeError(".binlogdata.VStreamTablesResponse.pkfields: array expected"); + message.pkfields = []; + for (let i = 0; i < object.pkfields.length; ++i) { + if (typeof object.pkfields[i] !== "object") + throw TypeError(".binlogdata.VStreamTablesResponse.pkfields: object expected"); + message.pkfields[i] = $root.query.Field.fromObject(object.pkfields[i]); + } + } + if (object.gtid != null) + message.gtid = String(object.gtid); + if (object.rows) { + if (!Array.isArray(object.rows)) + throw TypeError(".binlogdata.VStreamTablesResponse.rows: array expected"); + message.rows = []; + for (let i = 0; i < object.rows.length; ++i) { + if (typeof object.rows[i] !== "object") + throw TypeError(".binlogdata.VStreamTablesResponse.rows: object expected"); + message.rows[i] = $root.query.Row.fromObject(object.rows[i]); + } + } + if (object.lastpk != null) { + if (typeof object.lastpk !== "object") + throw TypeError(".binlogdata.VStreamTablesResponse.lastpk: object expected"); + message.lastpk = $root.query.Row.fromObject(object.lastpk); } return message; }; /** - * Creates a plain object from a VTGateCallerID message. Also converts values to other types if specified. + * Creates a plain object from a VStreamTablesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.VTGateCallerID + * @memberof binlogdata.VStreamTablesResponse * @static - * @param {query.VTGateCallerID} message VTGateCallerID + * @param {binlogdata.VStreamTablesResponse} message VStreamTablesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VTGateCallerID.toObject = function toObject(message, options) { + VStreamTablesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let 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 (let j = 0; j < message.groups.length; ++j) - object.groups[j] = message.groups[j]; + if (options.arrays || options.defaults) { + object.fields = []; + object.pkfields = []; + object.rows = []; + } + if (options.defaults) { + object.table_name = ""; + object.gtid = ""; + object.lastpk = null; + } + if (message.table_name != null && message.hasOwnProperty("table_name")) + object.table_name = message.table_name; + if (message.fields && message.fields.length) { + object.fields = []; + for (let j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + } + if (message.pkfields && message.pkfields.length) { + object.pkfields = []; + for (let j = 0; j < message.pkfields.length; ++j) + object.pkfields[j] = $root.query.Field.toObject(message.pkfields[j], options); + } + if (message.gtid != null && message.hasOwnProperty("gtid")) + object.gtid = message.gtid; + if (message.rows && message.rows.length) { + object.rows = []; + for (let j = 0; j < message.rows.length; ++j) + object.rows[j] = $root.query.Row.toObject(message.rows[j], options); } + if (message.lastpk != null && message.hasOwnProperty("lastpk")) + object.lastpk = $root.query.Row.toObject(message.lastpk, options); return object; }; /** - * Converts this VTGateCallerID to JSON. + * Converts this VStreamTablesResponse to JSON. * @function toJSON - * @memberof query.VTGateCallerID + * @memberof binlogdata.VStreamTablesResponse * @instance * @returns {Object.} JSON object */ - VTGateCallerID.prototype.toJSON = function toJSON() { + VStreamTablesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VTGateCallerID + * Gets the default type url for VStreamTablesResponse * @function getTypeUrl - * @memberof query.VTGateCallerID + * @memberof binlogdata.VStreamTablesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VTGateCallerID.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VStreamTablesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.VTGateCallerID"; + return typeUrlPrefix + "/binlogdata.VStreamTablesResponse"; }; - return VTGateCallerID; + return VStreamTablesResponse; })(); - query.EventToken = (function() { + binlogdata.LastPKEvent = (function() { /** - * Properties of an EventToken. - * @memberof query - * @interface IEventToken - * @property {number|Long|null} [timestamp] EventToken timestamp - * @property {string|null} [shard] EventToken shard - * @property {string|null} [position] EventToken position + * Properties of a LastPKEvent. + * @memberof binlogdata + * @interface ILastPKEvent + * @property {binlogdata.ITableLastPK|null} [table_last_p_k] LastPKEvent table_last_p_k + * @property {boolean|null} [completed] LastPKEvent completed */ /** - * Constructs a new EventToken. - * @memberof query - * @classdesc Represents an EventToken. - * @implements IEventToken + * Constructs a new LastPKEvent. + * @memberof binlogdata + * @classdesc Represents a LastPKEvent. + * @implements ILastPKEvent * @constructor - * @param {query.IEventToken=} [properties] Properties to set + * @param {binlogdata.ILastPKEvent=} [properties] Properties to set */ - function EventToken(properties) { + function LastPKEvent(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96268,103 +97015,89 @@ export const query = $root.query = (() => { } /** - * EventToken timestamp. - * @member {number|Long} timestamp - * @memberof query.EventToken - * @instance - */ - EventToken.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * EventToken shard. - * @member {string} shard - * @memberof query.EventToken + * LastPKEvent table_last_p_k. + * @member {binlogdata.ITableLastPK|null|undefined} table_last_p_k + * @memberof binlogdata.LastPKEvent * @instance */ - EventToken.prototype.shard = ""; + LastPKEvent.prototype.table_last_p_k = null; /** - * EventToken position. - * @member {string} position - * @memberof query.EventToken + * LastPKEvent completed. + * @member {boolean} completed + * @memberof binlogdata.LastPKEvent * @instance */ - EventToken.prototype.position = ""; + LastPKEvent.prototype.completed = false; /** - * Creates a new EventToken instance using the specified properties. + * Creates a new LastPKEvent instance using the specified properties. * @function create - * @memberof query.EventToken + * @memberof binlogdata.LastPKEvent * @static - * @param {query.IEventToken=} [properties] Properties to set - * @returns {query.EventToken} EventToken instance + * @param {binlogdata.ILastPKEvent=} [properties] Properties to set + * @returns {binlogdata.LastPKEvent} LastPKEvent instance */ - EventToken.create = function create(properties) { - return new EventToken(properties); + LastPKEvent.create = function create(properties) { + return new LastPKEvent(properties); }; /** - * Encodes the specified EventToken message. Does not implicitly {@link query.EventToken.verify|verify} messages. + * Encodes the specified LastPKEvent message. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. * @function encode - * @memberof query.EventToken + * @memberof binlogdata.LastPKEvent * @static - * @param {query.IEventToken} message EventToken message or plain object to encode + * @param {binlogdata.ILastPKEvent} message LastPKEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventToken.encode = function encode(message, writer) { + LastPKEvent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.timestamp); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.position); + if (message.table_last_p_k != null && Object.hasOwnProperty.call(message, "table_last_p_k")) + $root.binlogdata.TableLastPK.encode(message.table_last_p_k, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.completed != null && Object.hasOwnProperty.call(message, "completed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.completed); return writer; }; /** - * Encodes the specified EventToken message, length delimited. Does not implicitly {@link query.EventToken.verify|verify} messages. + * Encodes the specified LastPKEvent message, length delimited. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. * @function encodeDelimited - * @memberof query.EventToken + * @memberof binlogdata.LastPKEvent * @static - * @param {query.IEventToken} message EventToken message or plain object to encode + * @param {binlogdata.ILastPKEvent} message LastPKEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventToken.encodeDelimited = function encodeDelimited(message, writer) { + LastPKEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EventToken message from the specified reader or buffer. + * Decodes a LastPKEvent message from the specified reader or buffer. * @function decode - * @memberof query.EventToken + * @memberof binlogdata.LastPKEvent * @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 {binlogdata.LastPKEvent} LastPKEvent * @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) { + LastPKEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.EventToken(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.LastPKEvent(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.timestamp = reader.int64(); + message.table_last_p_k = $root.binlogdata.TableLastPK.decode(reader, reader.uint32()); break; } case 2: { - message.shard = reader.string(); - break; - } - case 3: { - message.position = reader.string(); + message.completed = reader.bool(); break; } default: @@ -96376,314 +97109,137 @@ export const query = $root.query = (() => { }; /** - * Decodes an EventToken message from the specified reader or buffer, length delimited. + * Decodes a LastPKEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.EventToken + * @memberof binlogdata.LastPKEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.EventToken} EventToken + * @returns {binlogdata.LastPKEvent} LastPKEvent * @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) { + LastPKEvent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EventToken message. + * Verifies a LastPKEvent message. * @function verify - * @memberof query.EventToken + * @memberof binlogdata.LastPKEvent * @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) { + LastPKEvent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; + if (message.table_last_p_k != null && message.hasOwnProperty("table_last_p_k")) { + let error = $root.binlogdata.TableLastPK.verify(message.table_last_p_k); + if (error) + return "table_last_p_k." + error; + } + if (message.completed != null && message.hasOwnProperty("completed")) + if (typeof message.completed !== "boolean") + return "completed: boolean expected"; return null; }; /** - * Creates an EventToken message from a plain object. Also converts values to their respective internal types. + * Creates a LastPKEvent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.EventToken + * @memberof binlogdata.LastPKEvent * @static * @param {Object.} object Plain object - * @returns {query.EventToken} EventToken + * @returns {binlogdata.LastPKEvent} LastPKEvent */ - EventToken.fromObject = function fromObject(object) { - if (object instanceof $root.query.EventToken) + LastPKEvent.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.LastPKEvent) return object; - let message = new $root.query.EventToken(); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(); - if (object.shard != null) - message.shard = String(object.shard); - if (object.position != null) - message.position = String(object.position); + let message = new $root.binlogdata.LastPKEvent(); + if (object.table_last_p_k != null) { + if (typeof object.table_last_p_k !== "object") + throw TypeError(".binlogdata.LastPKEvent.table_last_p_k: object expected"); + message.table_last_p_k = $root.binlogdata.TableLastPK.fromObject(object.table_last_p_k); + } + if (object.completed != null) + message.completed = Boolean(object.completed); return message; }; /** - * Creates a plain object from an EventToken message. Also converts values to other types if specified. + * Creates a plain object from a LastPKEvent message. Also converts values to other types if specified. * @function toObject - * @memberof query.EventToken + * @memberof binlogdata.LastPKEvent * @static - * @param {query.EventToken} message EventToken + * @param {binlogdata.LastPKEvent} message LastPKEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EventToken.toObject = function toObject(message, options) { + LastPKEvent.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if ($util.Long) { - let 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 = ""; + object.table_last_p_k = null; + object.completed = false; } - 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; + if (message.table_last_p_k != null && message.hasOwnProperty("table_last_p_k")) + object.table_last_p_k = $root.binlogdata.TableLastPK.toObject(message.table_last_p_k, options); + if (message.completed != null && message.hasOwnProperty("completed")) + object.completed = message.completed; return object; }; /** - * Converts this EventToken to JSON. + * Converts this LastPKEvent to JSON. * @function toJSON - * @memberof query.EventToken + * @memberof binlogdata.LastPKEvent * @instance * @returns {Object.} JSON object */ - EventToken.prototype.toJSON = function toJSON() { + LastPKEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EventToken + * Gets the default type url for LastPKEvent * @function getTypeUrl - * @memberof query.EventToken + * @memberof binlogdata.LastPKEvent * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EventToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LastPKEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.EventToken"; + return typeUrlPrefix + "/binlogdata.LastPKEvent"; }; - 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() { - const 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() { - const 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 - * @property {number} VECTOR=2083 VECTOR value - * @property {number} RAW=2084 RAW value - * @property {number} ROW_TUPLE=2085 ROW_TUPLE value - */ - query.Type = (function() { - const 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; - values[valuesById[2083] = "VECTOR"] = 2083; - values[valuesById[2084] = "RAW"] = 2084; - values[valuesById[2085] = "ROW_TUPLE"] = 2085; - return values; + return LastPKEvent; })(); - query.Value = (function() { + binlogdata.TableLastPK = (function() { /** - * Properties of a Value. - * @memberof query - * @interface IValue - * @property {query.Type|null} [type] Value type - * @property {Uint8Array|null} [value] Value value + * Properties of a TableLastPK. + * @memberof binlogdata + * @interface ITableLastPK + * @property {string|null} [table_name] TableLastPK table_name + * @property {query.IQueryResult|null} [lastpk] TableLastPK lastpk */ /** - * Constructs a new Value. - * @memberof query - * @classdesc Represents a Value. - * @implements IValue + * Constructs a new TableLastPK. + * @memberof binlogdata + * @classdesc Represents a TableLastPK. + * @implements ITableLastPK * @constructor - * @param {query.IValue=} [properties] Properties to set + * @param {binlogdata.ITableLastPK=} [properties] Properties to set */ - function Value(properties) { + function TableLastPK(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96691,89 +97247,89 @@ export const query = $root.query = (() => { } /** - * Value type. - * @member {query.Type} type - * @memberof query.Value + * TableLastPK table_name. + * @member {string} table_name + * @memberof binlogdata.TableLastPK * @instance */ - Value.prototype.type = 0; + TableLastPK.prototype.table_name = ""; /** - * Value value. - * @member {Uint8Array} value - * @memberof query.Value + * TableLastPK lastpk. + * @member {query.IQueryResult|null|undefined} lastpk + * @memberof binlogdata.TableLastPK * @instance */ - Value.prototype.value = $util.newBuffer([]); + TableLastPK.prototype.lastpk = null; /** - * Creates a new Value instance using the specified properties. + * Creates a new TableLastPK instance using the specified properties. * @function create - * @memberof query.Value + * @memberof binlogdata.TableLastPK * @static - * @param {query.IValue=} [properties] Properties to set - * @returns {query.Value} Value instance + * @param {binlogdata.ITableLastPK=} [properties] Properties to set + * @returns {binlogdata.TableLastPK} TableLastPK instance */ - Value.create = function create(properties) { - return new Value(properties); + TableLastPK.create = function create(properties) { + return new TableLastPK(properties); }; /** - * Encodes the specified Value message. Does not implicitly {@link query.Value.verify|verify} messages. + * Encodes the specified TableLastPK message. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. * @function encode - * @memberof query.Value + * @memberof binlogdata.TableLastPK * @static - * @param {query.IValue} message Value message or plain object to encode + * @param {binlogdata.ITableLastPK} message TableLastPK message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encode = function encode(message, writer) { + TableLastPK.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.table_name != null && Object.hasOwnProperty.call(message, "table_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.table_name); + if (message.lastpk != null && Object.hasOwnProperty.call(message, "lastpk")) + $root.query.QueryResult.encode(message.lastpk, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link query.Value.verify|verify} messages. + * Encodes the specified TableLastPK message, length delimited. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. * @function encodeDelimited - * @memberof query.Value + * @memberof binlogdata.TableLastPK * @static - * @param {query.IValue} message Value message or plain object to encode + * @param {binlogdata.ITableLastPK} message TableLastPK message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encodeDelimited = function encodeDelimited(message, writer) { + TableLastPK.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Value message from the specified reader or buffer. + * Decodes a TableLastPK message from the specified reader or buffer. * @function decode - * @memberof query.Value + * @memberof binlogdata.TableLastPK * @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 {binlogdata.TableLastPK} TableLastPK * @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) { + TableLastPK.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Value(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.TableLastPK(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.int32(); + message.table_name = reader.string(); break; } - case 2: { - message.value = reader.bytes(); + case 3: { + message.lastpk = $root.query.QueryResult.decode(reader, reader.uint32()); break; } default: @@ -96785,342 +97341,139 @@ export const query = $root.query = (() => { }; /** - * Decodes a Value message from the specified reader or buffer, length delimited. + * Decodes a TableLastPK message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.Value + * @memberof binlogdata.TableLastPK * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.Value} Value + * @returns {binlogdata.TableLastPK} TableLastPK * @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) { + TableLastPK.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Value message. + * Verifies a TableLastPK message. * @function verify - * @memberof query.Value + * @memberof binlogdata.TableLastPK * @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) { + TableLastPK.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: - case 2083: - case 2084: - case 2085: - 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.table_name != null && message.hasOwnProperty("table_name")) + if (!$util.isString(message.table_name)) + return "table_name: string expected"; + if (message.lastpk != null && message.hasOwnProperty("lastpk")) { + let error = $root.query.QueryResult.verify(message.lastpk); + if (error) + return "lastpk." + error; + } return null; }; /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. + * Creates a TableLastPK message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.Value + * @memberof binlogdata.TableLastPK * @static * @param {Object.} object Plain object - * @returns {query.Value} Value + * @returns {binlogdata.TableLastPK} TableLastPK */ - Value.fromObject = function fromObject(object) { - if (object instanceof $root.query.Value) + TableLastPK.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.TableLastPK) return object; - let message = new $root.query.Value(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - 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; - case "VECTOR": - case 2083: - message.type = 2083; - break; - case "RAW": - case 2084: - message.type = 2084; - break; - case "ROW_TUPLE": - case 2085: - message.type = 2085; - break; + let message = new $root.binlogdata.TableLastPK(); + if (object.table_name != null) + message.table_name = String(object.table_name); + if (object.lastpk != null) { + if (typeof object.lastpk !== "object") + throw TypeError(".binlogdata.TableLastPK.lastpk: object expected"); + message.lastpk = $root.query.QueryResult.fromObject(object.lastpk); } - 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 >= 0) - 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 TableLastPK message. Also converts values to other types if specified. * @function toObject - * @memberof query.Value + * @memberof binlogdata.TableLastPK * @static - * @param {query.Value} message Value + * @param {binlogdata.TableLastPK} message TableLastPK * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Value.toObject = function toObject(message, options) { + TableLastPK.toObject = function toObject(message, options) { if (!options) options = {}; let 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); - } + object.table_name = ""; + object.lastpk = null; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.query.Type[message.type] === undefined ? message.type : $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.table_name != null && message.hasOwnProperty("table_name")) + object.table_name = message.table_name; + if (message.lastpk != null && message.hasOwnProperty("lastpk")) + object.lastpk = $root.query.QueryResult.toObject(message.lastpk, options); return object; }; /** - * Converts this Value to JSON. + * Converts this TableLastPK to JSON. * @function toJSON - * @memberof query.Value + * @memberof binlogdata.TableLastPK * @instance * @returns {Object.} JSON object */ - Value.prototype.toJSON = function toJSON() { + TableLastPK.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Value + * Gets the default type url for TableLastPK * @function getTypeUrl - * @memberof query.Value + * @memberof binlogdata.TableLastPK * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TableLastPK.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.Value"; + return typeUrlPrefix + "/binlogdata.TableLastPK"; }; - return Value; + return TableLastPK; })(); - query.BindVariable = (function() { + binlogdata.VStreamResultsRequest = (function() { /** - * Properties of a BindVariable. - * @memberof query - * @interface IBindVariable - * @property {query.Type|null} [type] BindVariable type - * @property {Uint8Array|null} [value] BindVariable value - * @property {Array.|null} [values] BindVariable values + * Properties of a VStreamResultsRequest. + * @memberof binlogdata + * @interface IVStreamResultsRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] VStreamResultsRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] VStreamResultsRequest immediate_caller_id + * @property {query.ITarget|null} [target] VStreamResultsRequest target + * @property {string|null} [query] VStreamResultsRequest query */ /** - * Constructs a new BindVariable. - * @memberof query - * @classdesc Represents a BindVariable. - * @implements IBindVariable + * Constructs a new VStreamResultsRequest. + * @memberof binlogdata + * @classdesc Represents a VStreamResultsRequest. + * @implements IVStreamResultsRequest * @constructor - * @param {query.IBindVariable=} [properties] Properties to set + * @param {binlogdata.IVStreamResultsRequest=} [properties] Properties to set */ - function BindVariable(properties) { - this.values = []; + function VStreamResultsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97128,106 +97481,117 @@ export const query = $root.query = (() => { } /** - * BindVariable type. - * @member {query.Type} type - * @memberof query.BindVariable + * VStreamResultsRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof binlogdata.VStreamResultsRequest * @instance */ - BindVariable.prototype.type = 0; + VStreamResultsRequest.prototype.effective_caller_id = null; /** - * BindVariable value. - * @member {Uint8Array} value - * @memberof query.BindVariable + * VStreamResultsRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof binlogdata.VStreamResultsRequest * @instance */ - BindVariable.prototype.value = $util.newBuffer([]); + VStreamResultsRequest.prototype.immediate_caller_id = null; /** - * BindVariable values. - * @member {Array.} values - * @memberof query.BindVariable + * VStreamResultsRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof binlogdata.VStreamResultsRequest * @instance */ - BindVariable.prototype.values = $util.emptyArray; + VStreamResultsRequest.prototype.target = null; /** - * Creates a new BindVariable instance using the specified properties. + * VStreamResultsRequest query. + * @member {string} query + * @memberof binlogdata.VStreamResultsRequest + * @instance + */ + VStreamResultsRequest.prototype.query = ""; + + /** + * Creates a new VStreamResultsRequest instance using the specified properties. * @function create - * @memberof query.BindVariable + * @memberof binlogdata.VStreamResultsRequest * @static - * @param {query.IBindVariable=} [properties] Properties to set - * @returns {query.BindVariable} BindVariable instance + * @param {binlogdata.IVStreamResultsRequest=} [properties] Properties to set + * @returns {binlogdata.VStreamResultsRequest} VStreamResultsRequest instance */ - BindVariable.create = function create(properties) { - return new BindVariable(properties); + VStreamResultsRequest.create = function create(properties) { + return new VStreamResultsRequest(properties); }; /** - * Encodes the specified BindVariable message. Does not implicitly {@link query.BindVariable.verify|verify} messages. + * Encodes the specified VStreamResultsRequest message. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. * @function encode - * @memberof query.BindVariable + * @memberof binlogdata.VStreamResultsRequest * @static - * @param {query.IBindVariable} message BindVariable message or plain object to encode + * @param {binlogdata.IVStreamResultsRequest} message VStreamResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BindVariable.encode = function encode(message, writer) { + VStreamResultsRequest.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 (let 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.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")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.query); return writer; }; /** - * Encodes the specified BindVariable message, length delimited. Does not implicitly {@link query.BindVariable.verify|verify} messages. + * Encodes the specified VStreamResultsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.BindVariable + * @memberof binlogdata.VStreamResultsRequest * @static - * @param {query.IBindVariable} message BindVariable message or plain object to encode + * @param {binlogdata.IVStreamResultsRequest} message VStreamResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BindVariable.encodeDelimited = function encodeDelimited(message, writer) { + VStreamResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BindVariable message from the specified reader or buffer. + * Decodes a VStreamResultsRequest message from the specified reader or buffer. * @function decode - * @memberof query.BindVariable + * @memberof binlogdata.VStreamResultsRequest * @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 {binlogdata.VStreamResultsRequest} VStreamResultsRequest * @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) { + VStreamResultsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BindVariable(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResultsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.int32(); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; } case 2: { - message.value = reader.bytes(); + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); break; } case 3: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.query.Value.decode(reader, reader.uint32())); + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + } + case 4: { + message.query = reader.string(); break; } default: @@ -97239,367 +97603,166 @@ export const query = $root.query = (() => { }; /** - * Decodes a BindVariable message from the specified reader or buffer, length delimited. + * Decodes a VStreamResultsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BindVariable + * @memberof binlogdata.VStreamResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BindVariable} BindVariable + * @returns {binlogdata.VStreamResultsRequest} VStreamResultsRequest * @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) { + VStreamResultsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BindVariable message. + * Verifies a VStreamResultsRequest message. * @function verify - * @memberof query.BindVariable + * @memberof binlogdata.VStreamResultsRequest * @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) { + VStreamResultsRequest.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: - case 2083: - case 2084: - case 2085: - 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 (let i = 0; i < message.values.length; ++i) { - let error = $root.query.Value.verify(message.values[i]); - if (error) - return "values." + error; - } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + let 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")) { + let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + let error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; } + if (message.query != null && message.hasOwnProperty("query")) + if (!$util.isString(message.query)) + return "query: string expected"; return null; }; /** - * Creates a BindVariable message from a plain object. Also converts values to their respective internal types. + * Creates a VStreamResultsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BindVariable + * @memberof binlogdata.VStreamResultsRequest * @static * @param {Object.} object Plain object - * @returns {query.BindVariable} BindVariable + * @returns {binlogdata.VStreamResultsRequest} VStreamResultsRequest */ - BindVariable.fromObject = function fromObject(object) { - if (object instanceof $root.query.BindVariable) + VStreamResultsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamResultsRequest) return object; - let message = new $root.query.BindVariable(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - 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; - case "VECTOR": - case 2083: - message.type = 2083; - break; - case "RAW": - case 2084: - message.type = 2084; - break; - case "ROW_TUPLE": - case 2085: - message.type = 2085; - break; + let message = new $root.binlogdata.VStreamResultsRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".binlogdata.VStreamResultsRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } - 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 >= 0) - message.value = object.value; - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".query.BindVariable.values: array expected"); - message.values = []; - for (let 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]); - } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".binlogdata.VStreamResultsRequest.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(".binlogdata.VStreamResultsRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); } + if (object.query != null) + message.query = String(object.query); return message; }; /** - * Creates a plain object from a BindVariable message. Also converts values to other types if specified. + * Creates a plain object from a VStreamResultsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.BindVariable + * @memberof binlogdata.VStreamResultsRequest * @static - * @param {query.BindVariable} message BindVariable + * @param {binlogdata.VStreamResultsRequest} message VStreamResultsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BindVariable.toObject = function toObject(message, options) { + VStreamResultsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.values = []; if (options.defaults) { - object.type = options.enums === String ? "NULL_TYPE" : 0; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.query.Type[message.type] === undefined ? message.type : $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 (let j = 0; j < message.values.length; ++j) - object.values[j] = $root.query.Value.toObject(message.values[j], options); + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.query = ""; } + 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 = message.query; return object; }; /** - * Converts this BindVariable to JSON. + * Converts this VStreamResultsRequest to JSON. * @function toJSON - * @memberof query.BindVariable + * @memberof binlogdata.VStreamResultsRequest * @instance * @returns {Object.} JSON object */ - BindVariable.prototype.toJSON = function toJSON() { + VStreamResultsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BindVariable + * Gets the default type url for VStreamResultsRequest * @function getTypeUrl - * @memberof query.BindVariable + * @memberof binlogdata.VStreamResultsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BindVariable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VStreamResultsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.BindVariable"; + return typeUrlPrefix + "/binlogdata.VStreamResultsRequest"; }; - return BindVariable; + return VStreamResultsRequest; })(); - query.BoundQuery = (function() { + binlogdata.VStreamResultsResponse = (function() { /** - * Properties of a BoundQuery. - * @memberof query - * @interface IBoundQuery - * @property {string|null} [sql] BoundQuery sql - * @property {Object.|null} [bind_variables] BoundQuery bind_variables + * Properties of a VStreamResultsResponse. + * @memberof binlogdata + * @interface IVStreamResultsResponse + * @property {Array.|null} [fields] VStreamResultsResponse fields + * @property {string|null} [gtid] VStreamResultsResponse gtid + * @property {Array.|null} [rows] VStreamResultsResponse rows */ /** - * Constructs a new BoundQuery. - * @memberof query - * @classdesc Represents a BoundQuery. - * @implements IBoundQuery + * Constructs a new VStreamResultsResponse. + * @memberof binlogdata + * @classdesc Represents a VStreamResultsResponse. + * @implements IVStreamResultsResponse * @constructor - * @param {query.IBoundQuery=} [properties] Properties to set + * @param {binlogdata.IVStreamResultsResponse=} [properties] Properties to set */ - function BoundQuery(properties) { - this.bind_variables = {}; + function VStreamResultsResponse(properties) { + this.fields = []; + this.rows = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97607,111 +97770,109 @@ export const query = $root.query = (() => { } /** - * BoundQuery sql. - * @member {string} sql - * @memberof query.BoundQuery + * VStreamResultsResponse fields. + * @member {Array.} fields + * @memberof binlogdata.VStreamResultsResponse * @instance */ - BoundQuery.prototype.sql = ""; + VStreamResultsResponse.prototype.fields = $util.emptyArray; /** - * BoundQuery bind_variables. - * @member {Object.} bind_variables - * @memberof query.BoundQuery + * VStreamResultsResponse gtid. + * @member {string} gtid + * @memberof binlogdata.VStreamResultsResponse * @instance */ - BoundQuery.prototype.bind_variables = $util.emptyObject; + VStreamResultsResponse.prototype.gtid = ""; /** - * Creates a new BoundQuery instance using the specified properties. + * VStreamResultsResponse rows. + * @member {Array.} rows + * @memberof binlogdata.VStreamResultsResponse + * @instance + */ + VStreamResultsResponse.prototype.rows = $util.emptyArray; + + /** + * Creates a new VStreamResultsResponse instance using the specified properties. * @function create - * @memberof query.BoundQuery + * @memberof binlogdata.VStreamResultsResponse * @static - * @param {query.IBoundQuery=} [properties] Properties to set - * @returns {query.BoundQuery} BoundQuery instance + * @param {binlogdata.IVStreamResultsResponse=} [properties] Properties to set + * @returns {binlogdata.VStreamResultsResponse} VStreamResultsResponse instance */ - BoundQuery.create = function create(properties) { - return new BoundQuery(properties); + VStreamResultsResponse.create = function create(properties) { + return new VStreamResultsResponse(properties); }; /** - * Encodes the specified BoundQuery message. Does not implicitly {@link query.BoundQuery.verify|verify} messages. + * Encodes the specified VStreamResultsResponse message. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. * @function encode - * @memberof query.BoundQuery + * @memberof binlogdata.VStreamResultsResponse * @static - * @param {query.IBoundQuery} message BoundQuery message or plain object to encode + * @param {binlogdata.IVStreamResultsResponse} message VStreamResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BoundQuery.encode = function encode(message, writer) { + VStreamResultsResponse.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 (let 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.fields != null && message.fields.length) + for (let 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.gtid != null && Object.hasOwnProperty.call(message, "gtid")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.gtid); + if (message.rows != null && message.rows.length) + for (let i = 0; i < message.rows.length; ++i) + $root.query.Row.encode(message.rows[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified BoundQuery message, length delimited. Does not implicitly {@link query.BoundQuery.verify|verify} messages. + * Encodes the specified VStreamResultsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.BoundQuery + * @memberof binlogdata.VStreamResultsResponse * @static - * @param {query.IBoundQuery} message BoundQuery message or plain object to encode + * @param {binlogdata.IVStreamResultsResponse} message VStreamResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BoundQuery.encodeDelimited = function encodeDelimited(message, writer) { + VStreamResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BoundQuery message from the specified reader or buffer. + * Decodes a VStreamResultsResponse message from the specified reader or buffer. * @function decode - * @memberof query.BoundQuery + * @memberof binlogdata.VStreamResultsResponse * @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 {binlogdata.VStreamResultsResponse} VStreamResultsResponse * @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) { + VStreamResultsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BoundQuery(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResultsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.sql = reader.string(); + if (!(message.fields && message.fields.length)) + message.fields = []; + message.fields.push($root.query.Field.decode(reader, reader.uint32())); break; } - case 2: { - if (message.bind_variables === $util.emptyObject) - message.bind_variables = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.query.BindVariable.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.bind_variables[key] = value; + case 3: { + message.gtid = reader.string(); + break; + } + case 4: { + if (!(message.rows && message.rows.length)) + message.rows = []; + message.rows.push($root.query.Row.decode(reader, reader.uint32())); break; } default: @@ -97723,165 +97884,189 @@ export const query = $root.query = (() => { }; /** - * Decodes a BoundQuery message from the specified reader or buffer, length delimited. + * Decodes a VStreamResultsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BoundQuery + * @memberof binlogdata.VStreamResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BoundQuery} BoundQuery + * @returns {binlogdata.VStreamResultsResponse} VStreamResultsResponse * @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) { + VStreamResultsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BoundQuery message. + * Verifies a VStreamResultsResponse message. * @function verify - * @memberof query.BoundQuery + * @memberof binlogdata.VStreamResultsResponse * @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) { + VStreamResultsResponse.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"; - let key = Object.keys(message.bind_variables); - for (let i = 0; i < key.length; ++i) { - let error = $root.query.BindVariable.verify(message.bind_variables[key[i]]); + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (let i = 0; i < message.fields.length; ++i) { + let error = $root.query.Field.verify(message.fields[i]); if (error) - return "bind_variables." + error; + return "fields." + error; + } + } + if (message.gtid != null && message.hasOwnProperty("gtid")) + if (!$util.isString(message.gtid)) + return "gtid: string expected"; + if (message.rows != null && message.hasOwnProperty("rows")) { + if (!Array.isArray(message.rows)) + return "rows: array expected"; + for (let i = 0; i < message.rows.length; ++i) { + let error = $root.query.Row.verify(message.rows[i]); + if (error) + return "rows." + error; } } return null; }; /** - * Creates a BoundQuery message from a plain object. Also converts values to their respective internal types. + * Creates a VStreamResultsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BoundQuery + * @memberof binlogdata.VStreamResultsResponse * @static * @param {Object.} object Plain object - * @returns {query.BoundQuery} BoundQuery + * @returns {binlogdata.VStreamResultsResponse} VStreamResultsResponse */ - BoundQuery.fromObject = function fromObject(object) { - if (object instanceof $root.query.BoundQuery) + VStreamResultsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamResultsResponse) return object; - let 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 (let 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]]); + let message = new $root.binlogdata.VStreamResultsResponse(); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".binlogdata.VStreamResultsResponse.fields: array expected"); + message.fields = []; + for (let i = 0; i < object.fields.length; ++i) { + if (typeof object.fields[i] !== "object") + throw TypeError(".binlogdata.VStreamResultsResponse.fields: object expected"); + message.fields[i] = $root.query.Field.fromObject(object.fields[i]); + } + } + if (object.gtid != null) + message.gtid = String(object.gtid); + if (object.rows) { + if (!Array.isArray(object.rows)) + throw TypeError(".binlogdata.VStreamResultsResponse.rows: array expected"); + message.rows = []; + for (let i = 0; i < object.rows.length; ++i) { + if (typeof object.rows[i] !== "object") + throw TypeError(".binlogdata.VStreamResultsResponse.rows: object expected"); + message.rows[i] = $root.query.Row.fromObject(object.rows[i]); } } return message; }; /** - * Creates a plain object from a BoundQuery message. Also converts values to other types if specified. + * Creates a plain object from a VStreamResultsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.BoundQuery + * @memberof binlogdata.VStreamResultsResponse * @static - * @param {query.BoundQuery} message BoundQuery + * @param {binlogdata.VStreamResultsResponse} message VStreamResultsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BoundQuery.toObject = function toObject(message, options) { + VStreamResultsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.bind_variables = {}; + if (options.arrays || options.defaults) { + object.fields = []; + object.rows = []; + } if (options.defaults) - object.sql = ""; - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = message.sql; - let keys2; - if (message.bind_variables && (keys2 = Object.keys(message.bind_variables)).length) { - object.bind_variables = {}; - for (let j = 0; j < keys2.length; ++j) - object.bind_variables[keys2[j]] = $root.query.BindVariable.toObject(message.bind_variables[keys2[j]], options); + object.gtid = ""; + if (message.fields && message.fields.length) { + object.fields = []; + for (let j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + } + if (message.gtid != null && message.hasOwnProperty("gtid")) + object.gtid = message.gtid; + if (message.rows && message.rows.length) { + object.rows = []; + for (let j = 0; j < message.rows.length; ++j) + object.rows[j] = $root.query.Row.toObject(message.rows[j], options); } return object; }; /** - * Converts this BoundQuery to JSON. + * Converts this VStreamResultsResponse to JSON. * @function toJSON - * @memberof query.BoundQuery + * @memberof binlogdata.VStreamResultsResponse * @instance * @returns {Object.} JSON object */ - BoundQuery.prototype.toJSON = function toJSON() { + VStreamResultsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BoundQuery + * Gets the default type url for VStreamResultsResponse * @function getTypeUrl - * @memberof query.BoundQuery + * @memberof binlogdata.VStreamResultsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BoundQuery.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VStreamResultsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.BoundQuery"; + return typeUrlPrefix + "/binlogdata.VStreamResultsResponse"; }; - return BoundQuery; + return VStreamResultsResponse; })(); - query.ExecuteOptions = (function() { + return binlogdata; +})(); + +export const query = $root.query = (() => { + + /** + * Namespace query. + * @exports query + * @namespace + */ + const query = {}; + + query.Target = (function() { /** - * Properties of an ExecuteOptions. + * Properties of a Target. * @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 {query.ExecuteOptions.Consolidator|null} [consolidator] ExecuteOptions consolidator - * @property {Array.|null} [transaction_access_mode] ExecuteOptions transaction_access_mode - * @property {string|null} [WorkloadName] ExecuteOptions WorkloadName - * @property {string|null} [priority] ExecuteOptions priority - * @property {number|Long|null} [authoritative_timeout] ExecuteOptions authoritative_timeout - * @property {boolean|null} [fetch_last_insert_id] ExecuteOptions fetch_last_insert_id - * @property {boolean|null} [in_dml_execution] ExecuteOptions in_dml_execution + * @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 ExecuteOptions. + * Constructs a new Target. * @memberof query - * @classdesc Represents an ExecuteOptions. - * @implements IExecuteOptions + * @classdesc Represents a Target. + * @implements ITarget * @constructor - * @param {query.IExecuteOptions=} [properties] Properties to set + * @param {query.ITarget=} [properties] Properties to set */ - function ExecuteOptions(properties) { - this.transaction_access_mode = []; + function Target(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97889,905 +98074,335 @@ export const query = $root.query = (() => { } /** - * 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 + * Target keyspace. + * @member {string} keyspace + * @memberof query.Target * @instance */ - ExecuteOptions.prototype.client_found_rows = false; + Target.prototype.keyspace = ""; /** - * ExecuteOptions workload. - * @member {query.ExecuteOptions.Workload} workload - * @memberof query.ExecuteOptions + * Target shard. + * @member {string} shard + * @memberof query.Target * @instance */ - ExecuteOptions.prototype.workload = 0; + Target.prototype.shard = ""; /** - * ExecuteOptions sql_select_limit. - * @member {number|Long} sql_select_limit - * @memberof query.ExecuteOptions + * Target tablet_type. + * @member {topodata.TabletType} tablet_type + * @memberof query.Target * @instance */ - ExecuteOptions.prototype.sql_select_limit = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Target.prototype.tablet_type = 0; /** - * ExecuteOptions transaction_isolation. - * @member {query.ExecuteOptions.TransactionIsolation} transaction_isolation - * @memberof query.ExecuteOptions + * Target cell. + * @member {string} cell + * @memberof query.Target * @instance */ - ExecuteOptions.prototype.transaction_isolation = 0; + Target.prototype.cell = ""; /** - * ExecuteOptions skip_query_plan_cache. - * @member {boolean} skip_query_plan_cache - * @memberof query.ExecuteOptions - * @instance + * Creates a new Target instance using the specified properties. + * @function create + * @memberof query.Target + * @static + * @param {query.ITarget=} [properties] Properties to set + * @returns {query.Target} Target instance */ - ExecuteOptions.prototype.skip_query_plan_cache = false; + Target.create = function create(properties) { + return new Target(properties); + }; /** - * ExecuteOptions planner_version. - * @member {query.ExecuteOptions.PlannerVersion} planner_version - * @memberof query.ExecuteOptions - * @instance + * Encodes the specified Target message. Does not implicitly {@link query.Target.verify|verify} messages. + * @function encode + * @memberof query.Target + * @static + * @param {query.ITarget} message Target message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ExecuteOptions.prototype.planner_version = 0; + Target.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); + return writer; + }; /** - * ExecuteOptions has_created_temp_tables. - * @member {boolean} has_created_temp_tables - * @memberof query.ExecuteOptions - * @instance + * Encodes the specified Target message, length delimited. Does not implicitly {@link query.Target.verify|verify} messages. + * @function encodeDelimited + * @memberof query.Target + * @static + * @param {query.ITarget} message Target message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ExecuteOptions.prototype.has_created_temp_tables = false; + Target.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * ExecuteOptions consolidator. - * @member {query.ExecuteOptions.Consolidator} consolidator - * @memberof query.ExecuteOptions - * @instance + * Decodes a Target message from the specified reader or buffer. + * @function decode + * @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.Target} Target + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteOptions.prototype.consolidator = 0; + Target.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Target(); + while (reader.pos < end) { + 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; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * ExecuteOptions transaction_access_mode. - * @member {Array.} transaction_access_mode - * @memberof query.ExecuteOptions - * @instance + * Decodes a Target message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof query.Target + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 */ - ExecuteOptions.prototype.transaction_access_mode = $util.emptyArray; + Target.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * ExecuteOptions WorkloadName. - * @member {string} WorkloadName - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.WorkloadName = ""; - - /** - * ExecuteOptions priority. - * @member {string} priority - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.priority = ""; - - /** - * ExecuteOptions authoritative_timeout. - * @member {number|Long|null|undefined} authoritative_timeout - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.authoritative_timeout = null; - - /** - * ExecuteOptions fetch_last_insert_id. - * @member {boolean} fetch_last_insert_id - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.fetch_last_insert_id = false; - - /** - * ExecuteOptions in_dml_execution. - * @member {boolean} in_dml_execution - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.in_dml_execution = false; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - /** - * ExecuteOptions timeout. - * @member {"authoritative_timeout"|undefined} timeout - * @memberof query.ExecuteOptions - * @instance - */ - Object.defineProperty(ExecuteOptions.prototype, "timeout", { - get: $util.oneOfGetter($oneOfFields = ["authoritative_timeout"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ExecuteOptions instance using the specified properties. - * @function create - * @memberof query.ExecuteOptions - * @static - * @param {query.IExecuteOptions=} [properties] Properties to set - * @returns {query.ExecuteOptions} ExecuteOptions instance - */ - ExecuteOptions.create = function create(properties) { - return new ExecuteOptions(properties); - }; - - /** - * Encodes the specified ExecuteOptions message. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. - * @function encode - * @memberof query.ExecuteOptions - * @static - * @param {query.IExecuteOptions} message ExecuteOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecuteOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.included_fields != null && Object.hasOwnProperty.call(message, "included_fields")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.included_fields); - if (message.client_found_rows != null && Object.hasOwnProperty.call(message, "client_found_rows")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.client_found_rows); - if (message.workload != null && Object.hasOwnProperty.call(message, "workload")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.workload); - if (message.sql_select_limit != null && Object.hasOwnProperty.call(message, "sql_select_limit")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.sql_select_limit); - if (message.transaction_isolation != null && Object.hasOwnProperty.call(message, "transaction_isolation")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.transaction_isolation); - if (message.skip_query_plan_cache != null && Object.hasOwnProperty.call(message, "skip_query_plan_cache")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.skip_query_plan_cache); - if (message.planner_version != null && Object.hasOwnProperty.call(message, "planner_version")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.planner_version); - if (message.has_created_temp_tables != null && Object.hasOwnProperty.call(message, "has_created_temp_tables")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.has_created_temp_tables); - if (message.consolidator != null && Object.hasOwnProperty.call(message, "consolidator")) - writer.uint32(/* id 13, wireType 0 =*/104).int32(message.consolidator); - if (message.transaction_access_mode != null && message.transaction_access_mode.length) { - writer.uint32(/* id 14, wireType 2 =*/114).fork(); - for (let i = 0; i < message.transaction_access_mode.length; ++i) - writer.int32(message.transaction_access_mode[i]); - writer.ldelim(); - } - 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.authoritative_timeout != null && Object.hasOwnProperty.call(message, "authoritative_timeout")) - writer.uint32(/* id 17, wireType 0 =*/136).int64(message.authoritative_timeout); - if (message.fetch_last_insert_id != null && Object.hasOwnProperty.call(message, "fetch_last_insert_id")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.fetch_last_insert_id); - if (message.in_dml_execution != null && Object.hasOwnProperty.call(message, "in_dml_execution")) - writer.uint32(/* id 19, wireType 0 =*/152).bool(message.in_dml_execution); - return writer; - }; - - /** - * Encodes the specified ExecuteOptions message, length delimited. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof query.ExecuteOptions - * @static - * @param {query.IExecuteOptions} message ExecuteOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecuteOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExecuteOptions message from the specified reader or buffer. - * @function decode - * @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.ExecuteOptions} ExecuteOptions - * @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) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteOptions(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 4: { - message.included_fields = reader.int32(); - break; - } - case 5: { - message.client_found_rows = reader.bool(); - break; - } - case 6: { - message.workload = reader.int32(); - break; - } - case 8: { - message.sql_select_limit = reader.int64(); - break; - } - case 9: { - message.transaction_isolation = reader.int32(); - break; - } - case 10: { - message.skip_query_plan_cache = reader.bool(); - break; - } - case 11: { - message.planner_version = reader.int32(); - break; - } - case 12: { - message.has_created_temp_tables = reader.bool(); - break; - } - case 13: { - message.consolidator = reader.int32(); - break; - } - case 14: { - if (!(message.transaction_access_mode && message.transaction_access_mode.length)) - message.transaction_access_mode = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.transaction_access_mode.push(reader.int32()); - } else - message.transaction_access_mode.push(reader.int32()); - break; - } - case 15: { - message.WorkloadName = reader.string(); - break; - } - case 16: { - message.priority = reader.string(); - break; - } - case 17: { - message.authoritative_timeout = reader.int64(); - break; - } - case 18: { - message.fetch_last_insert_id = reader.bool(); - break; - } - case 19: { - message.in_dml_execution = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExecuteOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.ExecuteOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - ExecuteOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExecuteOptions message. + * Verifies a Target message. * @function verify - * @memberof query.ExecuteOptions + * @memberof query.Target * @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) { + Target.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - let properties = {}; - 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) { + 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 "workload: enum value expected"; + return "tablet_type: 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: case 7: + case 8: 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.consolidator != null && message.hasOwnProperty("consolidator")) - switch (message.consolidator) { - default: - return "consolidator: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.transaction_access_mode != null && message.hasOwnProperty("transaction_access_mode")) { - if (!Array.isArray(message.transaction_access_mode)) - return "transaction_access_mode: array expected"; - for (let i = 0; i < message.transaction_access_mode.length; ++i) - switch (message.transaction_access_mode[i]) { - default: - return "transaction_access_mode: enum value[] expected"; - case 0: - case 1: - case 2: - break; - } - } - if (message.WorkloadName != null && message.hasOwnProperty("WorkloadName")) - if (!$util.isString(message.WorkloadName)) - return "WorkloadName: string expected"; - if (message.priority != null && message.hasOwnProperty("priority")) - if (!$util.isString(message.priority)) - return "priority: string expected"; - if (message.authoritative_timeout != null && message.hasOwnProperty("authoritative_timeout")) { - properties.timeout = 1; - if (!$util.isInteger(message.authoritative_timeout) && !(message.authoritative_timeout && $util.isInteger(message.authoritative_timeout.low) && $util.isInteger(message.authoritative_timeout.high))) - return "authoritative_timeout: integer|Long expected"; - } - if (message.fetch_last_insert_id != null && message.hasOwnProperty("fetch_last_insert_id")) - if (typeof message.fetch_last_insert_id !== "boolean") - return "fetch_last_insert_id: boolean expected"; - if (message.in_dml_execution != null && message.hasOwnProperty("in_dml_execution")) - if (typeof message.in_dml_execution !== "boolean") - return "in_dml_execution: boolean expected"; + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; return null; }; /** - * Creates an ExecuteOptions 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.ExecuteOptions + * @memberof query.Target * @static * @param {Object.} object Plain object - * @returns {query.ExecuteOptions} ExecuteOptions + * @returns {query.Target} Target */ - ExecuteOptions.fromObject = function fromObject(object) { - if (object instanceof $root.query.ExecuteOptions) + Target.fromObject = function fromObject(object) { + if (object instanceof $root.query.Target) return object; - let message = new $root.query.ExecuteOptions(); - switch (object.included_fields) { - default: - if (typeof object.included_fields === "number") { - message.included_fields = object.included_fields; - break; - } - break; - case "TYPE_AND_NAME": - case 0: - message.included_fields = 0; - break; - case "TYPE_ONLY": - case 1: - message.included_fields = 1; - break; - case "ALL": - case 2: - message.included_fields = 2; - break; - } - if (object.client_found_rows != null) - message.client_found_rows = Boolean(object.client_found_rows); - switch (object.workload) { + let 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) { default: - if (typeof object.workload === "number") { - message.workload = object.workload; + if (typeof object.tablet_type === "number") { + message.tablet_type = object.tablet_type; break; } break; - case "UNSPECIFIED": + case "UNKNOWN": case 0: - message.workload = 0; + message.tablet_type = 0; break; - case "OLTP": + case "PRIMARY": 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) { - default: - if (typeof object.transaction_isolation === "number") { - message.transaction_isolation = object.transaction_isolation; - break; - } - break; - case "DEFAULT": - case 0: - message.transaction_isolation = 0; + message.tablet_type = 1; break; - case "REPEATABLE_READ": + case "MASTER": case 1: - message.transaction_isolation = 1; + message.tablet_type = 1; break; - case "READ_COMMITTED": + case "REPLICA": case 2: - message.transaction_isolation = 2; + message.tablet_type = 2; break; - case "READ_UNCOMMITTED": + case "RDONLY": 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) { - default: - if (typeof object.planner_version === "number") { - message.planner_version = object.planner_version; - break; - } - break; - 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; + message.tablet_type = 3; break; - case "Gen4Greedy": + case "BATCH": case 3: - message.planner_version = 3; + message.tablet_type = 3; break; - case "Gen4Left2Right": + case "SPARE": case 4: - message.planner_version = 4; + message.tablet_type = 4; break; - case "Gen4WithFallback": + case "EXPERIMENTAL": case 5: - message.planner_version = 5; + message.tablet_type = 5; break; - case "Gen4CompareV3": + case "BACKUP": case 6: - message.planner_version = 6; + message.tablet_type = 6; break; - case "V3Insert": + case "RESTORE": case 7: - message.planner_version = 7; - break; - } - if (object.has_created_temp_tables != null) - message.has_created_temp_tables = Boolean(object.has_created_temp_tables); - switch (object.consolidator) { - default: - if (typeof object.consolidator === "number") { - message.consolidator = object.consolidator; - break; - } - break; - case "CONSOLIDATOR_UNSPECIFIED": - case 0: - message.consolidator = 0; - break; - case "CONSOLIDATOR_DISABLED": - case 1: - message.consolidator = 1; - break; - case "CONSOLIDATOR_ENABLED": - case 2: - message.consolidator = 2; + message.tablet_type = 7; break; - case "CONSOLIDATOR_ENABLED_REPLICAS": - case 3: - message.consolidator = 3; + case "DRAINED": + case 8: + message.tablet_type = 8; break; } - if (object.transaction_access_mode) { - if (!Array.isArray(object.transaction_access_mode)) - throw TypeError(".query.ExecuteOptions.transaction_access_mode: array expected"); - message.transaction_access_mode = []; - for (let i = 0; i < object.transaction_access_mode.length; ++i) - switch (object.transaction_access_mode[i]) { - default: - if (typeof object.transaction_access_mode[i] === "number") { - message.transaction_access_mode[i] = object.transaction_access_mode[i]; - break; - } - case "CONSISTENT_SNAPSHOT": - case 0: - message.transaction_access_mode[i] = 0; - break; - case "READ_WRITE": - case 1: - message.transaction_access_mode[i] = 1; - break; - case "READ_ONLY": - case 2: - message.transaction_access_mode[i] = 2; - break; - } - } - if (object.WorkloadName != null) - message.WorkloadName = String(object.WorkloadName); - if (object.priority != null) - message.priority = String(object.priority); - if (object.authoritative_timeout != null) - if ($util.Long) - (message.authoritative_timeout = $util.Long.fromValue(object.authoritative_timeout)).unsigned = false; - else if (typeof object.authoritative_timeout === "string") - message.authoritative_timeout = parseInt(object.authoritative_timeout, 10); - else if (typeof object.authoritative_timeout === "number") - message.authoritative_timeout = object.authoritative_timeout; - else if (typeof object.authoritative_timeout === "object") - message.authoritative_timeout = new $util.LongBits(object.authoritative_timeout.low >>> 0, object.authoritative_timeout.high >>> 0).toNumber(); - if (object.fetch_last_insert_id != null) - message.fetch_last_insert_id = Boolean(object.fetch_last_insert_id); - if (object.in_dml_execution != null) - message.in_dml_execution = Boolean(object.in_dml_execution); + if (object.cell != null) + message.cell = String(object.cell); return message; }; /** - * Creates a plain object from an ExecuteOptions 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.ExecuteOptions + * @memberof query.Target * @static - * @param {query.ExecuteOptions} message ExecuteOptions + * @param {query.Target} message Target * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteOptions.toObject = function toObject(message, options) { + Target.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.transaction_access_mode = []; 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) { - let 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.consolidator = options.enums === String ? "CONSOLIDATOR_UNSPECIFIED" : 0; - object.WorkloadName = ""; - object.priority = ""; - object.fetch_last_insert_id = false; - object.in_dml_execution = false; - } - if (message.included_fields != null && message.hasOwnProperty("included_fields")) - object.included_fields = options.enums === String ? $root.query.ExecuteOptions.IncludedFields[message.included_fields] === undefined ? message.included_fields : $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] === undefined ? message.workload : $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] === undefined ? message.transaction_isolation : $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] === undefined ? message.planner_version : $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.consolidator != null && message.hasOwnProperty("consolidator")) - object.consolidator = options.enums === String ? $root.query.ExecuteOptions.Consolidator[message.consolidator] === undefined ? message.consolidator : $root.query.ExecuteOptions.Consolidator[message.consolidator] : message.consolidator; - if (message.transaction_access_mode && message.transaction_access_mode.length) { - object.transaction_access_mode = []; - for (let j = 0; j < message.transaction_access_mode.length; ++j) - object.transaction_access_mode[j] = options.enums === String ? $root.query.ExecuteOptions.TransactionAccessMode[message.transaction_access_mode[j]] === undefined ? message.transaction_access_mode[j] : $root.query.ExecuteOptions.TransactionAccessMode[message.transaction_access_mode[j]] : message.transaction_access_mode[j]; - } - if (message.WorkloadName != null && message.hasOwnProperty("WorkloadName")) - object.WorkloadName = message.WorkloadName; - if (message.priority != null && message.hasOwnProperty("priority")) - object.priority = message.priority; - if (message.authoritative_timeout != null && message.hasOwnProperty("authoritative_timeout")) { - if (typeof message.authoritative_timeout === "number") - object.authoritative_timeout = options.longs === String ? String(message.authoritative_timeout) : message.authoritative_timeout; - else - object.authoritative_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.authoritative_timeout) : options.longs === Number ? new $util.LongBits(message.authoritative_timeout.low >>> 0, message.authoritative_timeout.high >>> 0).toNumber() : message.authoritative_timeout; - if (options.oneofs) - object.timeout = "authoritative_timeout"; + object.keyspace = ""; + object.shard = ""; + object.tablet_type = options.enums === String ? "UNKNOWN" : 0; + object.cell = ""; } - if (message.fetch_last_insert_id != null && message.hasOwnProperty("fetch_last_insert_id")) - object.fetch_last_insert_id = message.fetch_last_insert_id; - if (message.in_dml_execution != null && message.hasOwnProperty("in_dml_execution")) - object.in_dml_execution = message.in_dml_execution; + 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] === undefined ? message.tablet_type : $root.topodata.TabletType[message.tablet_type] : message.tablet_type; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; return object; }; /** - * Converts this ExecuteOptions to JSON. + * Converts this Target to JSON. * @function toJSON - * @memberof query.ExecuteOptions + * @memberof query.Target * @instance * @returns {Object.} JSON object */ - ExecuteOptions.prototype.toJSON = function toJSON() { + Target.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteOptions + * Gets the default type url for Target * @function getTypeUrl - * @memberof query.ExecuteOptions + * @memberof query.Target * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Target.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ExecuteOptions"; + return typeUrlPrefix + "/query.Target"; }; - /** - * 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() { - const 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() { - const 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() { - const 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 - * @property {number} V3Insert=7 V3Insert value - */ - ExecuteOptions.PlannerVersion = (function() { - const 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; - values[valuesById[7] = "V3Insert"] = 7; - return values; - })(); - - /** - * Consolidator enum. - * @name query.ExecuteOptions.Consolidator - * @enum {number} - * @property {number} CONSOLIDATOR_UNSPECIFIED=0 CONSOLIDATOR_UNSPECIFIED value - * @property {number} CONSOLIDATOR_DISABLED=1 CONSOLIDATOR_DISABLED value - * @property {number} CONSOLIDATOR_ENABLED=2 CONSOLIDATOR_ENABLED value - * @property {number} CONSOLIDATOR_ENABLED_REPLICAS=3 CONSOLIDATOR_ENABLED_REPLICAS value - */ - ExecuteOptions.Consolidator = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CONSOLIDATOR_UNSPECIFIED"] = 0; - values[valuesById[1] = "CONSOLIDATOR_DISABLED"] = 1; - values[valuesById[2] = "CONSOLIDATOR_ENABLED"] = 2; - values[valuesById[3] = "CONSOLIDATOR_ENABLED_REPLICAS"] = 3; - return values; - })(); - - /** - * TransactionAccessMode enum. - * @name query.ExecuteOptions.TransactionAccessMode - * @enum {number} - * @property {number} CONSISTENT_SNAPSHOT=0 CONSISTENT_SNAPSHOT value - * @property {number} READ_WRITE=1 READ_WRITE value - * @property {number} READ_ONLY=2 READ_ONLY value - */ - ExecuteOptions.TransactionAccessMode = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CONSISTENT_SNAPSHOT"] = 0; - values[valuesById[1] = "READ_WRITE"] = 1; - values[valuesById[2] = "READ_ONLY"] = 2; - return values; - })(); - - return ExecuteOptions; + return Target; })(); - query.Field = (function() { + query.VTGateCallerID = (function() { /** - * Properties of a Field. + * Properties of a VTGateCallerID. * @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 + * @interface IVTGateCallerID + * @property {string|null} [username] VTGateCallerID username + * @property {Array.|null} [groups] VTGateCallerID groups */ /** - * Constructs a new Field. + * Constructs a new VTGateCallerID. * @memberof query - * @classdesc Represents a Field. - * @implements IField + * @classdesc Represents a VTGateCallerID. + * @implements IVTGateCallerID * @constructor - * @param {query.IField=} [properties] Properties to set + * @param {query.IVTGateCallerID=} [properties] Properties to set */ - function Field(properties) { + function VTGateCallerID(properties) { + this.groups = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -98795,215 +98410,92 @@ export const query = $root.query = (() => { } /** - * 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 + * VTGateCallerID username. + * @member {string} username + * @memberof query.VTGateCallerID * @instance */ - Field.prototype.flags = 0; + VTGateCallerID.prototype.username = ""; /** - * Field column_type. - * @member {string} column_type - * @memberof query.Field + * VTGateCallerID groups. + * @member {Array.} groups + * @memberof query.VTGateCallerID * @instance */ - Field.prototype.column_type = ""; + VTGateCallerID.prototype.groups = $util.emptyArray; /** - * Creates a new Field instance using the specified properties. + * Creates a new VTGateCallerID instance using the specified properties. * @function create - * @memberof query.Field + * @memberof query.VTGateCallerID * @static - * @param {query.IField=} [properties] Properties to set - * @returns {query.Field} Field instance + * @param {query.IVTGateCallerID=} [properties] Properties to set + * @returns {query.VTGateCallerID} VTGateCallerID instance */ - Field.create = function create(properties) { - return new Field(properties); + VTGateCallerID.create = function create(properties) { + return new VTGateCallerID(properties); }; /** - * Encodes the specified Field message. Does not implicitly {@link query.Field.verify|verify} messages. + * Encodes the specified VTGateCallerID message. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. * @function encode - * @memberof query.Field + * @memberof query.VTGateCallerID * @static - * @param {query.IField} message Field 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 */ - Field.encode = function encode(message, writer) { + VTGateCallerID.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.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 (let i = 0; i < message.groups.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.groups[i]); return writer; }; /** - * Encodes the specified Field message, length delimited. Does not implicitly {@link query.Field.verify|verify} messages. + * Encodes the specified VTGateCallerID message, length delimited. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. * @function encodeDelimited - * @memberof query.Field + * @memberof query.VTGateCallerID * @static - * @param {query.IField} message Field 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 */ - Field.encodeDelimited = function encodeDelimited(message, writer) { + VTGateCallerID.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Field message from the specified reader or buffer. + * Decodes a VTGateCallerID message from the specified reader or buffer. * @function decode - * @memberof query.Field + * @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.Field} Field + * @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 */ - Field.decode = function decode(reader, length) { + VTGateCallerID.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Field(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.VTGateCallerID(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.username = 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.groups && message.groups.length)) + message.groups = []; + message.groups.push(reader.string()); break; } default: @@ -99015,41 +98507,701 @@ export const query = $root.query = (() => { }; /** - * Decodes a Field 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.Field + * @memberof query.VTGateCallerID * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.Field} Field + * @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 */ - Field.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 Field message. + * Verifies a VTGateCallerID message. * @function verify - * @memberof query.Field + * @memberof query.VTGateCallerID * @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) { + VTGateCallerID.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: + 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 (let i = 0; i < message.groups.length; ++i) + if (!$util.isString(message.groups[i])) + return "groups: string[] expected"; + } + return null; + }; + + /** + * Creates a VTGateCallerID message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof query.VTGateCallerID + * @static + * @param {Object.} object Plain object + * @returns {query.VTGateCallerID} VTGateCallerID + */ + VTGateCallerID.fromObject = function fromObject(object) { + if (object instanceof $root.query.VTGateCallerID) + return object; + let 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 (let i = 0; i < object.groups.length; ++i) + message.groups[i] = String(object.groups[i]); + } + return message; + }; + + /** + * Creates a plain object from a VTGateCallerID message. Also converts values to other types if specified. + * @function toObject + * @memberof query.VTGateCallerID + * @static + * @param {query.VTGateCallerID} message VTGateCallerID + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VTGateCallerID.toObject = function toObject(message, options) { + if (!options) + options = {}; + let 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 (let j = 0; j < message.groups.length; ++j) + object.groups[j] = message.groups[j]; + } + return object; + }; + + /** + * Converts this VTGateCallerID to JSON. + * @function toJSON + * @memberof query.VTGateCallerID + * @instance + * @returns {Object.} JSON object + */ + VTGateCallerID.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VTGateCallerID + * @function getTypeUrl + * @memberof query.VTGateCallerID + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VTGateCallerID.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/query.VTGateCallerID"; + }; + + return VTGateCallerID; + })(); + + query.EventToken = (function() { + + /** + * Properties of an EventToken. + * @memberof query + * @interface IEventToken + * @property {number|Long|null} [timestamp] EventToken timestamp + * @property {string|null} [shard] EventToken shard + * @property {string|null} [position] EventToken position + */ + + /** + * Constructs a new EventToken. + * @memberof query + * @classdesc Represents an EventToken. + * @implements IEventToken + * @constructor + * @param {query.IEventToken=} [properties] Properties to set + */ + function EventToken(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EventToken timestamp. + * @member {number|Long} timestamp + * @memberof query.EventToken + * @instance + */ + EventToken.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * EventToken shard. + * @member {string} shard + * @memberof query.EventToken + * @instance + */ + EventToken.prototype.shard = ""; + + /** + * EventToken position. + * @member {string} position + * @memberof query.EventToken + * @instance + */ + EventToken.prototype.position = ""; + + /** + * Creates a new EventToken instance using the specified properties. + * @function create + * @memberof query.EventToken + * @static + * @param {query.IEventToken=} [properties] Properties to set + * @returns {query.EventToken} EventToken instance + */ + EventToken.create = function create(properties) { + return new EventToken(properties); + }; + + /** + * Encodes the specified EventToken message. Does not implicitly {@link query.EventToken.verify|verify} messages. + * @function encode + * @memberof query.EventToken + * @static + * @param {query.IEventToken} message EventToken message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventToken.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.timestamp); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.position); + return writer; + }; + + /** + * Encodes the specified EventToken message, length delimited. Does not implicitly {@link query.EventToken.verify|verify} messages. + * @function encodeDelimited + * @memberof query.EventToken + * @static + * @param {query.IEventToken} message EventToken message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventToken.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EventToken message from the specified reader or buffer. + * @function decode + * @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.EventToken} EventToken + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.EventToken(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.timestamp = reader.int64(); + break; + } + case 2: { + message.shard = reader.string(); + break; + } + case 3: { + message.position = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EventToken message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof query.EventToken + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {query.EventToken} EventToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EventToken.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EventToken message. + * @function verify + * @memberof query.EventToken + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EventToken.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; + return null; + }; + + /** + * Creates an EventToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof query.EventToken + * @static + * @param {Object.} object Plain object + * @returns {query.EventToken} EventToken + */ + EventToken.fromObject = function fromObject(object) { + if (object instanceof $root.query.EventToken) + return object; + let 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 an EventToken message. Also converts values to other types if specified. + * @function toObject + * @memberof query.EventToken + * @static + * @param {query.EventToken} message EventToken + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EventToken.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let 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 EventToken to JSON. + * @function toJSON + * @memberof query.EventToken + * @instance + * @returns {Object.} JSON object + */ + EventToken.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EventToken + * @function getTypeUrl + * @memberof query.EventToken + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EventToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/query.EventToken"; + }; + + 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() { + const 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() { + const 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 + * @property {number} VECTOR=2083 VECTOR value + * @property {number} RAW=2084 RAW value + * @property {number} ROW_TUPLE=2085 ROW_TUPLE value + */ + query.Type = (function() { + const 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; + values[valuesById[2083] = "VECTOR"] = 2083; + values[valuesById[2084] = "RAW"] = 2084; + values[valuesById[2085] = "ROW_TUPLE"] = 2085; + return values; + })(); + + query.Value = (function() { + + /** + * Properties of a Value. + * @memberof query + * @interface IValue + * @property {query.Type|null} [type] Value type + * @property {Uint8Array|null} [value] Value value + */ + + /** + * Constructs a new Value. + * @memberof query + * @classdesc Represents a Value. + * @implements IValue + * @constructor + * @param {query.IValue=} [properties] Properties to set + */ + function Value(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Value type. + * @member {query.Type} type + * @memberof query.Value + * @instance + */ + Value.prototype.type = 0; + + /** + * Value value. + * @member {Uint8Array} value + * @memberof query.Value + * @instance + */ + Value.prototype.value = $util.newBuffer([]); + + /** + * Creates a new Value instance using the specified properties. + * @function create + * @memberof query.Value + * @static + * @param {query.IValue=} [properties] Properties to set + * @returns {query.Value} Value instance + */ + Value.create = function create(properties) { + return new Value(properties); + }; + + /** + * Encodes the specified Value message. Does not implicitly {@link query.Value.verify|verify} messages. + * @function encode + * @memberof query.Value + * @static + * @param {query.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + return writer; + }; + + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link query.Value.verify|verify} messages. + * @function encodeDelimited + * @memberof query.Value + * @static + * @param {query.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Value message from the specified reader or buffer. + * @function decode + * @memberof query.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {query.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Value(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + message.value = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof query.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {query.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Value message. + * @function verify + * @memberof query.Value + * @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) { + 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: @@ -99088,50 +99240,24 @@ export const query = $root.query = (() => { case 2085: break; } - if (message.table != null && message.hasOwnProperty("table")) - if (!$util.isString(message.table)) - return "table: string expected"; - if (message.org_table != null && message.hasOwnProperty("org_table")) - if (!$util.isString(message.org_table)) - return "org_table: string expected"; - if (message.database != null && message.hasOwnProperty("database")) - if (!$util.isString(message.database)) - return "database: string expected"; - if (message.org_name != null && message.hasOwnProperty("org_name")) - if (!$util.isString(message.org_name)) - return "org_name: string expected"; - if (message.column_length != null && message.hasOwnProperty("column_length")) - if (!$util.isInteger(message.column_length)) - return "column_length: integer expected"; - if (message.charset != null && message.hasOwnProperty("charset")) - if (!$util.isInteger(message.charset)) - return "charset: integer expected"; - if (message.decimals != null && message.hasOwnProperty("decimals")) - if (!$util.isInteger(message.decimals)) - return "decimals: integer expected"; - if (message.flags != null && message.hasOwnProperty("flags")) - if (!$util.isInteger(message.flags)) - return "flags: integer expected"; - if (message.column_type != null && message.hasOwnProperty("column_type")) - if (!$util.isString(message.column_type)) - return "column_type: string expected"; + 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 Field message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.Field + * @memberof query.Value * @static * @param {Object.} object Plain object - * @returns {query.Field} Field + * @returns {query.Value} Value */ - Field.fromObject = function fromObject(object) { - if (object instanceof $root.query.Field) + Value.fromObject = function fromObject(object) { + if (object instanceof $root.query.Value) return object; - let message = new $root.query.Field(); - if (object.name != null) - message.name = String(object.name); + let message = new $root.query.Value(); switch (object.type) { default: if (typeof object.type === "number") { @@ -99292,127 +99418,94 @@ export const query = $root.query = (() => { message.type = 2085; break; } - if (object.table != null) - message.table = String(object.table); - if (object.org_table != null) - message.org_table = String(object.org_table); - if (object.database != null) - message.database = String(object.database); - if (object.org_name != null) - message.org_name = String(object.org_name); - if (object.column_length != null) - message.column_length = object.column_length >>> 0; - if (object.charset != null) - message.charset = object.charset >>> 0; - if (object.decimals != null) - message.decimals = object.decimals >>> 0; - if (object.flags != null) - message.flags = object.flags >>> 0; - if (object.column_type != null) - message.column_type = String(object.column_type); + 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 >= 0) + message.value = object.value; return message; }; /** - * Creates a plain object from a Field 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.Field + * @memberof query.Value * @static - * @param {query.Field} message Field + * @param {query.Value} message Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Field.toObject = function toObject(message, options) { + Value.toObject = function toObject(message, options) { if (!options) options = {}; let 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.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } } - 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] === undefined ? message.type : $root.query.Type[message.type] : message.type; - if (message.table != null && message.hasOwnProperty("table")) - object.table = message.table; - if (message.org_table != null && message.hasOwnProperty("org_table")) - object.org_table = message.org_table; - if (message.database != null && message.hasOwnProperty("database")) - object.database = message.database; - if (message.org_name != null && message.hasOwnProperty("org_name")) - object.org_name = message.org_name; - if (message.column_length != null && message.hasOwnProperty("column_length")) - object.column_length = message.column_length; - if (message.charset != null && message.hasOwnProperty("charset")) - object.charset = message.charset; - if (message.decimals != null && message.hasOwnProperty("decimals")) - object.decimals = message.decimals; - if (message.flags != null && message.hasOwnProperty("flags")) - object.flags = message.flags; - if (message.column_type != null && message.hasOwnProperty("column_type")) - object.column_type = message.column_type; + if (message.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 Field to JSON. + * Converts this Value to JSON. * @function toJSON - * @memberof query.Field + * @memberof query.Value * @instance * @returns {Object.} JSON object */ - Field.prototype.toJSON = function toJSON() { + Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Field + * Gets the default type url for Value * @function getTypeUrl - * @memberof query.Field + * @memberof query.Value * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Field.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.Field"; + return typeUrlPrefix + "/query.Value"; }; - return Field; + return Value; })(); - query.Row = (function() { + query.BindVariable = (function() { /** - * Properties of a Row. + * Properties of a BindVariable. * @memberof query - * @interface IRow - * @property {Array.|null} [lengths] Row lengths - * @property {Uint8Array|null} [values] Row values + * @interface IBindVariable + * @property {query.Type|null} [type] BindVariable type + * @property {Uint8Array|null} [value] BindVariable value + * @property {Array.|null} [values] BindVariable values */ /** - * Constructs a new Row. + * Constructs a new BindVariable. * @memberof query - * @classdesc Represents a Row. - * @implements IRow + * @classdesc Represents a BindVariable. + * @implements IBindVariable * @constructor - * @param {query.IRow=} [properties] Properties to set + * @param {query.IBindVariable=} [properties] Properties to set */ - function Row(properties) { - this.lengths = []; + function BindVariable(properties) { + this.values = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99420,100 +99513,106 @@ export const query = $root.query = (() => { } /** - * Row lengths. - * @member {Array.} lengths - * @memberof query.Row + * BindVariable type. + * @member {query.Type} type + * @memberof query.BindVariable * @instance */ - Row.prototype.lengths = $util.emptyArray; + BindVariable.prototype.type = 0; /** - * Row values. - * @member {Uint8Array} values - * @memberof query.Row + * BindVariable value. + * @member {Uint8Array} value + * @memberof query.BindVariable * @instance */ - Row.prototype.values = $util.newBuffer([]); + BindVariable.prototype.value = $util.newBuffer([]); /** - * Creates a new Row instance using the specified properties. + * BindVariable values. + * @member {Array.} values + * @memberof query.BindVariable + * @instance + */ + BindVariable.prototype.values = $util.emptyArray; + + /** + * Creates a new BindVariable instance using the specified properties. * @function create - * @memberof query.Row + * @memberof query.BindVariable * @static - * @param {query.IRow=} [properties] Properties to set - * @returns {query.Row} Row instance + * @param {query.IBindVariable=} [properties] Properties to set + * @returns {query.BindVariable} BindVariable instance */ - Row.create = function create(properties) { - return new Row(properties); + BindVariable.create = function create(properties) { + return new BindVariable(properties); }; /** - * Encodes the specified Row message. Does not implicitly {@link query.Row.verify|verify} messages. + * Encodes the specified BindVariable message. Does not implicitly {@link query.BindVariable.verify|verify} messages. * @function encode - * @memberof query.Row + * @memberof query.BindVariable * @static - * @param {query.IRow} message Row 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 */ - Row.encode = function encode(message, writer) { + BindVariable.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 (let 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.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 (let 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 Row message, length delimited. Does not implicitly {@link query.Row.verify|verify} messages. + * Encodes the specified BindVariable message, length delimited. Does not implicitly {@link query.BindVariable.verify|verify} messages. * @function encodeDelimited - * @memberof query.Row + * @memberof query.BindVariable * @static - * @param {query.IRow} message Row 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 */ - Row.encodeDelimited = function encodeDelimited(message, writer) { + BindVariable.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Row message from the specified reader or buffer. + * Decodes a BindVariable message from the specified reader or buffer. * @function decode - * @memberof query.Row + * @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.Row} Row + * @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 */ - Row.decode = function decode(reader, length) { + BindVariable.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Row(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BindVariable(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.lengths && message.lengths.length)) - message.lengths = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.lengths.push(reader.sint64()); - } else - message.lengths.push(reader.sint64()); + message.type = reader.int32(); break; } case 2: { - message.values = reader.bytes(); + message.value = reader.bytes(); + break; + } + case 3: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.query.Value.decode(reader, reader.uint32())); break; } default: @@ -99525,170 +99624,367 @@ export const query = $root.query = (() => { }; /** - * Decodes a Row 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.Row + * @memberof query.BindVariable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.Row} Row + * @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 */ - Row.decodeDelimited = function decodeDelimited(reader) { + BindVariable.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Row message. + * Verifies a BindVariable message. * @function verify - * @memberof query.Row + * @memberof query.BindVariable * @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) { + BindVariable.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 (let 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.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: + case 2083: + case 2084: + case 2085: + 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 (let i = 0; i < message.values.length; ++i) { + let error = $root.query.Value.verify(message.values[i]); + if (error) + return "values." + error; + } } - if (message.values != null && message.hasOwnProperty("values")) - if (!(message.values && typeof message.values.length === "number" || $util.isString(message.values))) - return "values: buffer expected"; return null; }; /** - * Creates a Row message from a plain object. Also converts values to their respective internal types. + * Creates a BindVariable message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.Row + * @memberof query.BindVariable * @static * @param {Object.} object Plain object - * @returns {query.Row} Row + * @returns {query.BindVariable} BindVariable */ - Row.fromObject = function fromObject(object) { - if (object instanceof $root.query.Row) + BindVariable.fromObject = function fromObject(object) { + if (object instanceof $root.query.BindVariable) return object; - let message = new $root.query.Row(); - if (object.lengths) { - if (!Array.isArray(object.lengths)) - throw TypeError(".query.Row.lengths: array expected"); - message.lengths = []; - for (let 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 >= 0) - message.values = object.values; + let message = new $root.query.BindVariable(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + 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; + case "VECTOR": + case 2083: + message.type = 2083; + break; + case "RAW": + case 2084: + message.type = 2084; + break; + case "ROW_TUPLE": + case 2085: + message.type = 2085; + 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 >= 0) + message.value = object.value; + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".query.BindVariable.values: array expected"); + message.values = []; + for (let 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 Row message. Also converts values to other types if specified. + * Creates a plain object from a BindVariable message. Also converts values to other types if specified. * @function toObject - * @memberof query.Row + * @memberof query.BindVariable * @static - * @param {query.Row} message Row + * @param {query.BindVariable} message BindVariable * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Row.toObject = function toObject(message, options) { + BindVariable.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.lengths = []; - if (options.defaults) + object.values = []; + if (options.defaults) { + object.type = options.enums === String ? "NULL_TYPE" : 0; if (options.bytes === String) - object.values = ""; + object.value = ""; else { - object.values = []; + object.value = []; if (options.bytes !== Array) - object.values = $util.newBuffer(object.values); + object.value = $util.newBuffer(object.value); } - if (message.lengths && message.lengths.length) { - object.lengths = []; - for (let j = 0; j < message.lengths.length; ++j) - if (typeof message.lengths[j] === "number") - object.lengths[j] = options.longs === String ? String(message.lengths[j]) : message.lengths[j]; - else - object.lengths[j] = options.longs === String ? $util.Long.prototype.toString.call(message.lengths[j]) : options.longs === Number ? new $util.LongBits(message.lengths[j].low >>> 0, message.lengths[j].high >>> 0).toNumber() : message.lengths[j]; } - if (message.values != null && message.hasOwnProperty("values")) - object.values = options.bytes === String ? $util.base64.encode(message.values, 0, message.values.length) : options.bytes === Array ? Array.prototype.slice.call(message.values) : message.values; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.query.Type[message.type] === undefined ? message.type : $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 (let j = 0; j < message.values.length; ++j) + object.values[j] = $root.query.Value.toObject(message.values[j], options); + } return object; }; /** - * Converts this Row to JSON. + * Converts this BindVariable to JSON. * @function toJSON - * @memberof query.Row + * @memberof query.BindVariable * @instance * @returns {Object.} JSON object */ - Row.prototype.toJSON = function toJSON() { + BindVariable.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Row + * Gets the default type url for BindVariable * @function getTypeUrl - * @memberof query.Row + * @memberof query.BindVariable * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Row.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BindVariable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.Row"; + return typeUrlPrefix + "/query.BindVariable"; }; - return Row; + return BindVariable; })(); - query.QueryResult = (function() { + query.BoundQuery = (function() { /** - * Properties of a QueryResult. + * Properties of a BoundQuery. * @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 - * @property {boolean|null} [insert_id_changed] QueryResult insert_id_changed + * @interface IBoundQuery + * @property {string|null} [sql] BoundQuery sql + * @property {Object.|null} [bind_variables] BoundQuery bind_variables */ /** - * Constructs a new QueryResult. + * Constructs a new BoundQuery. * @memberof query - * @classdesc Represents a QueryResult. - * @implements IQueryResult + * @classdesc Represents a BoundQuery. + * @implements IBoundQuery * @constructor - * @param {query.IQueryResult=} [properties] Properties to set + * @param {query.IBoundQuery=} [properties] Properties to set */ - function QueryResult(properties) { - this.fields = []; - this.rows = []; + function BoundQuery(properties) { + this.bind_variables = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99696,165 +99992,111 @@ export const query = $root.query = (() => { } /** - * QueryResult fields. - * @member {Array.} fields - * @memberof query.QueryResult - * @instance - */ - QueryResult.prototype.fields = $util.emptyArray; - - /** - * QueryResult rows_affected. - * @member {number|Long} rows_affected - * @memberof query.QueryResult - * @instance - */ - QueryResult.prototype.rows_affected = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * QueryResult insert_id. - * @member {number|Long} insert_id - * @memberof query.QueryResult - * @instance - */ - QueryResult.prototype.insert_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * QueryResult rows. - * @member {Array.} rows - * @memberof query.QueryResult - * @instance - */ - QueryResult.prototype.rows = $util.emptyArray; - - /** - * QueryResult info. - * @member {string} info - * @memberof query.QueryResult - * @instance - */ - QueryResult.prototype.info = ""; - - /** - * QueryResult session_state_changes. - * @member {string} session_state_changes - * @memberof query.QueryResult + * BoundQuery sql. + * @member {string} sql + * @memberof query.BoundQuery * @instance */ - QueryResult.prototype.session_state_changes = ""; + BoundQuery.prototype.sql = ""; /** - * QueryResult insert_id_changed. - * @member {boolean} insert_id_changed - * @memberof query.QueryResult + * BoundQuery bind_variables. + * @member {Object.} bind_variables + * @memberof query.BoundQuery * @instance */ - QueryResult.prototype.insert_id_changed = false; + BoundQuery.prototype.bind_variables = $util.emptyObject; /** - * Creates a new QueryResult instance using the specified properties. + * Creates a new BoundQuery instance using the specified properties. * @function create - * @memberof query.QueryResult + * @memberof query.BoundQuery * @static - * @param {query.IQueryResult=} [properties] Properties to set - * @returns {query.QueryResult} QueryResult instance + * @param {query.IBoundQuery=} [properties] Properties to set + * @returns {query.BoundQuery} BoundQuery instance */ - QueryResult.create = function create(properties) { - return new QueryResult(properties); + BoundQuery.create = function create(properties) { + return new BoundQuery(properties); }; /** - * Encodes the specified QueryResult message. Does not implicitly {@link query.QueryResult.verify|verify} messages. + * Encodes the specified BoundQuery message. Does not implicitly {@link query.BoundQuery.verify|verify} messages. * @function encode - * @memberof query.QueryResult + * @memberof query.BoundQuery * @static - * @param {query.IQueryResult} message QueryResult 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 */ - QueryResult.encode = function encode(message, writer) { + BoundQuery.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fields != null && message.fields.length) - for (let 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 (let 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.insert_id_changed != null && Object.hasOwnProperty.call(message, "insert_id_changed")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.insert_id_changed); + 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 (let 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 QueryResult message, length delimited. Does not implicitly {@link query.QueryResult.verify|verify} messages. + * Encodes the specified BoundQuery message, length delimited. Does not implicitly {@link query.BoundQuery.verify|verify} messages. * @function encodeDelimited - * @memberof query.QueryResult + * @memberof query.BoundQuery * @static - * @param {query.IQueryResult} message QueryResult 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 */ - QueryResult.encodeDelimited = function encodeDelimited(message, writer) { + BoundQuery.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryResult message from the specified reader or buffer. + * Decodes a BoundQuery message from the specified reader or buffer. * @function decode - * @memberof query.QueryResult + * @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.QueryResult} QueryResult + * @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 */ - QueryResult.decode = function decode(reader, length) { + BoundQuery.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.QueryResult(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BoundQuery(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.fields && message.fields.length)) - message.fields = []; - message.fields.push($root.query.Field.decode(reader, reader.uint32())); + message.sql = reader.string(); break; } case 2: { - message.rows_affected = reader.uint64(); - break; - } - case 3: { - message.insert_id = reader.uint64(); - break; - } - case 4: { - if (!(message.rows && message.rows.length)) - message.rows = []; - message.rows.push($root.query.Row.decode(reader, reader.uint32())); - break; - } - case 6: { - message.info = reader.string(); - break; - } - case 7: { - message.session_state_changes = reader.string(); - break; - } - case 8: { - message.insert_id_changed = reader.bool(); + if (message.bind_variables === $util.emptyObject) + message.bind_variables = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.query.BindVariable.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.bind_variables[key] = value; break; } default: @@ -99866,236 +100108,165 @@ export const query = $root.query = (() => { }; /** - * Decodes a QueryResult 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.QueryResult + * @memberof query.BoundQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.QueryResult} QueryResult + * @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 */ - QueryResult.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 QueryResult message. + * Verifies a BoundQuery message. * @function verify - * @memberof query.QueryResult + * @memberof query.BoundQuery * @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) { + BoundQuery.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 (let i = 0; i < message.fields.length; ++i) { - let 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 (let i = 0; i < message.rows.length; ++i) { - let error = $root.query.Row.verify(message.rows[i]); + if (message.sql != null && message.hasOwnProperty("sql")) + if (!$util.isString(message.sql)) + return "sql: string expected"; + if (message.bind_variables != null && message.hasOwnProperty("bind_variables")) { + if (!$util.isObject(message.bind_variables)) + return "bind_variables: object expected"; + let key = Object.keys(message.bind_variables); + for (let i = 0; i < key.length; ++i) { + let error = $root.query.BindVariable.verify(message.bind_variables[key[i]]); if (error) - return "rows." + error; + return "bind_variables." + 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"; - if (message.insert_id_changed != null && message.hasOwnProperty("insert_id_changed")) - if (typeof message.insert_id_changed !== "boolean") - return "insert_id_changed: boolean expected"; return null; }; /** - * Creates a QueryResult 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.QueryResult + * @memberof query.BoundQuery * @static * @param {Object.} object Plain object - * @returns {query.QueryResult} QueryResult + * @returns {query.BoundQuery} BoundQuery */ - QueryResult.fromObject = function fromObject(object) { - if (object instanceof $root.query.QueryResult) + BoundQuery.fromObject = function fromObject(object) { + if (object instanceof $root.query.BoundQuery) return object; - let message = new $root.query.QueryResult(); - if (object.fields) { - if (!Array.isArray(object.fields)) - throw TypeError(".query.QueryResult.fields: array expected"); - message.fields = []; - for (let 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 (let 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]); + let 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 (let 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.info != null) - message.info = String(object.info); - if (object.session_state_changes != null) - message.session_state_changes = String(object.session_state_changes); - if (object.insert_id_changed != null) - message.insert_id_changed = Boolean(object.insert_id_changed); return message; }; /** - * Creates a plain object from a QueryResult 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.QueryResult + * @memberof query.BoundQuery * @static - * @param {query.QueryResult} message QueryResult + * @param {query.BoundQuery} message BoundQuery * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryResult.toObject = function toObject(message, options) { + BoundQuery.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.fields = []; - object.rows = []; - } - if (options.defaults) { - if ($util.Long) { - let 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) { - let 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 = ""; - object.insert_id_changed = false; - } - if (message.fields && message.fields.length) { - object.fields = []; - for (let 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 (let j = 0; j < message.rows.length; ++j) - object.rows[j] = $root.query.Row.toObject(message.rows[j], options); + if (options.objects || options.defaults) + object.bind_variables = {}; + if (options.defaults) + object.sql = ""; + if (message.sql != null && message.hasOwnProperty("sql")) + object.sql = message.sql; + let keys2; + if (message.bind_variables && (keys2 = Object.keys(message.bind_variables)).length) { + object.bind_variables = {}; + for (let j = 0; j < keys2.length; ++j) + object.bind_variables[keys2[j]] = $root.query.BindVariable.toObject(message.bind_variables[keys2[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.insert_id_changed != null && message.hasOwnProperty("insert_id_changed")) - object.insert_id_changed = message.insert_id_changed; return object; }; /** - * Converts this QueryResult to JSON. + * Converts this BoundQuery to JSON. * @function toJSON - * @memberof query.QueryResult + * @memberof query.BoundQuery * @instance * @returns {Object.} JSON object */ - QueryResult.prototype.toJSON = function toJSON() { + BoundQuery.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryResult + * Gets the default type url for BoundQuery * @function getTypeUrl - * @memberof query.QueryResult + * @memberof query.BoundQuery * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BoundQuery.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.QueryResult"; + return typeUrlPrefix + "/query.BoundQuery"; }; - return QueryResult; + return BoundQuery; })(); - query.QueryWarning = (function() { + query.ExecuteOptions = (function() { /** - * Properties of a QueryWarning. + * Properties of an ExecuteOptions. * @memberof query - * @interface IQueryWarning - * @property {number|null} [code] QueryWarning code - * @property {string|null} [message] QueryWarning message + * @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 {query.ExecuteOptions.Consolidator|null} [consolidator] ExecuteOptions consolidator + * @property {Array.|null} [transaction_access_mode] ExecuteOptions transaction_access_mode + * @property {string|null} [WorkloadName] ExecuteOptions WorkloadName + * @property {string|null} [priority] ExecuteOptions priority + * @property {number|Long|null} [authoritative_timeout] ExecuteOptions authoritative_timeout + * @property {boolean|null} [fetch_last_insert_id] ExecuteOptions fetch_last_insert_id + * @property {boolean|null} [in_dml_execution] ExecuteOptions in_dml_execution */ /** - * Constructs a new QueryWarning. + * Constructs a new ExecuteOptions. * @memberof query - * @classdesc Represents a QueryWarning. - * @implements IQueryWarning + * @classdesc Represents an ExecuteOptions. + * @implements IExecuteOptions * @constructor - * @param {query.IQueryWarning=} [properties] Properties to set + * @param {query.IExecuteOptions=} [properties] Properties to set */ - function QueryWarning(properties) { + function ExecuteOptions(properties) { + this.transaction_access_mode = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100103,1033 +100274,1121 @@ export const query = $root.query = (() => { } /** - * QueryWarning code. - * @member {number} code - * @memberof query.QueryWarning + * ExecuteOptions included_fields. + * @member {query.ExecuteOptions.IncludedFields} included_fields + * @memberof query.ExecuteOptions * @instance */ - QueryWarning.prototype.code = 0; + ExecuteOptions.prototype.included_fields = 0; /** - * QueryWarning message. - * @member {string} message - * @memberof query.QueryWarning + * ExecuteOptions client_found_rows. + * @member {boolean} client_found_rows + * @memberof query.ExecuteOptions * @instance */ - QueryWarning.prototype.message = ""; + ExecuteOptions.prototype.client_found_rows = false; /** - * 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 + * ExecuteOptions workload. + * @member {query.ExecuteOptions.Workload} workload + * @memberof query.ExecuteOptions + * @instance */ - QueryWarning.create = function create(properties) { - return new QueryWarning(properties); - }; + ExecuteOptions.prototype.workload = 0; /** - * 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 + * ExecuteOptions sql_select_limit. + * @member {number|Long} sql_select_limit + * @memberof query.ExecuteOptions + * @instance */ - 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; - }; + ExecuteOptions.prototype.sql_select_limit = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * 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 + * ExecuteOptions transaction_isolation. + * @member {query.ExecuteOptions.TransactionIsolation} transaction_isolation + * @memberof query.ExecuteOptions + * @instance */ - QueryWarning.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + ExecuteOptions.prototype.transaction_isolation = 0; /** - * 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 + * ExecuteOptions skip_query_plan_cache. + * @member {boolean} skip_query_plan_cache + * @memberof query.ExecuteOptions + * @instance */ - QueryWarning.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.QueryWarning(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.code = reader.uint32(); - break; - } - case 2: { - message.message = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + ExecuteOptions.prototype.skip_query_plan_cache = false; /** - * 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 + * ExecuteOptions planner_version. + * @member {query.ExecuteOptions.PlannerVersion} planner_version + * @memberof query.ExecuteOptions + * @instance */ - QueryWarning.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + ExecuteOptions.prototype.planner_version = 0; /** - * 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 + * ExecuteOptions has_created_temp_tables. + * @member {boolean} has_created_temp_tables + * @memberof query.ExecuteOptions + * @instance */ - 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; - }; + ExecuteOptions.prototype.has_created_temp_tables = false; /** - * 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 + * ExecuteOptions consolidator. + * @member {query.ExecuteOptions.Consolidator} consolidator + * @memberof query.ExecuteOptions + * @instance */ - QueryWarning.fromObject = function fromObject(object) { - if (object instanceof $root.query.QueryWarning) - return object; - let 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; - }; + ExecuteOptions.prototype.consolidator = 0; /** - * 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 + * ExecuteOptions transaction_access_mode. + * @member {Array.} transaction_access_mode + * @memberof query.ExecuteOptions + * @instance */ - QueryWarning.toObject = function toObject(message, options) { - if (!options) - options = {}; - let 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; - }; + ExecuteOptions.prototype.transaction_access_mode = $util.emptyArray; /** - * Converts this QueryWarning to JSON. - * @function toJSON - * @memberof query.QueryWarning + * ExecuteOptions WorkloadName. + * @member {string} WorkloadName + * @memberof query.ExecuteOptions * @instance - * @returns {Object.} JSON object */ - QueryWarning.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + ExecuteOptions.prototype.WorkloadName = ""; /** - * Gets the default type url for QueryWarning - * @function getTypeUrl - * @memberof query.QueryWarning - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * ExecuteOptions priority. + * @member {string} priority + * @memberof query.ExecuteOptions + * @instance */ - QueryWarning.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/query.QueryWarning"; - }; - - return QueryWarning; - })(); - - query.StreamEvent = (function() { + ExecuteOptions.prototype.priority = ""; /** - * Properties of a StreamEvent. - * @memberof query - * @interface IStreamEvent - * @property {Array.|null} [statements] StreamEvent statements - * @property {query.IEventToken|null} [event_token] StreamEvent event_token + * ExecuteOptions authoritative_timeout. + * @member {number|Long|null|undefined} authoritative_timeout + * @memberof query.ExecuteOptions + * @instance */ + ExecuteOptions.prototype.authoritative_timeout = null; /** - * Constructs a new StreamEvent. - * @memberof query - * @classdesc Represents a StreamEvent. - * @implements IStreamEvent - * @constructor - * @param {query.IStreamEvent=} [properties] Properties to set + * ExecuteOptions fetch_last_insert_id. + * @member {boolean} fetch_last_insert_id + * @memberof query.ExecuteOptions + * @instance */ - function StreamEvent(properties) { - this.statements = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ExecuteOptions.prototype.fetch_last_insert_id = false; /** - * StreamEvent statements. - * @member {Array.} statements - * @memberof query.StreamEvent + * ExecuteOptions in_dml_execution. + * @member {boolean} in_dml_execution + * @memberof query.ExecuteOptions * @instance */ - StreamEvent.prototype.statements = $util.emptyArray; + ExecuteOptions.prototype.in_dml_execution = false; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; /** - * StreamEvent event_token. - * @member {query.IEventToken|null|undefined} event_token - * @memberof query.StreamEvent + * ExecuteOptions timeout. + * @member {"authoritative_timeout"|undefined} timeout + * @memberof query.ExecuteOptions * @instance */ - StreamEvent.prototype.event_token = null; + Object.defineProperty(ExecuteOptions.prototype, "timeout", { + get: $util.oneOfGetter($oneOfFields = ["authoritative_timeout"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new StreamEvent instance using the specified properties. + * Creates a new ExecuteOptions instance using the specified properties. * @function create - * @memberof query.StreamEvent + * @memberof query.ExecuteOptions * @static - * @param {query.IStreamEvent=} [properties] Properties to set - * @returns {query.StreamEvent} StreamEvent instance + * @param {query.IExecuteOptions=} [properties] Properties to set + * @returns {query.ExecuteOptions} ExecuteOptions instance */ - StreamEvent.create = function create(properties) { - return new StreamEvent(properties); + ExecuteOptions.create = function create(properties) { + return new ExecuteOptions(properties); }; /** - * Encodes the specified StreamEvent message. Does not implicitly {@link query.StreamEvent.verify|verify} messages. + * Encodes the specified ExecuteOptions message. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. * @function encode - * @memberof query.StreamEvent + * @memberof query.ExecuteOptions * @static - * @param {query.IStreamEvent} message StreamEvent 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 */ - StreamEvent.encode = function encode(message, writer) { + ExecuteOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.statements != null && message.statements.length) - for (let 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.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.consolidator != null && Object.hasOwnProperty.call(message, "consolidator")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.consolidator); + if (message.transaction_access_mode != null && message.transaction_access_mode.length) { + writer.uint32(/* id 14, wireType 2 =*/114).fork(); + for (let i = 0; i < message.transaction_access_mode.length; ++i) + writer.int32(message.transaction_access_mode[i]); + writer.ldelim(); + } + 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.authoritative_timeout != null && Object.hasOwnProperty.call(message, "authoritative_timeout")) + writer.uint32(/* id 17, wireType 0 =*/136).int64(message.authoritative_timeout); + if (message.fetch_last_insert_id != null && Object.hasOwnProperty.call(message, "fetch_last_insert_id")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.fetch_last_insert_id); + if (message.in_dml_execution != null && Object.hasOwnProperty.call(message, "in_dml_execution")) + writer.uint32(/* id 19, wireType 0 =*/152).bool(message.in_dml_execution); return writer; }; /** - * Encodes the specified StreamEvent message, length delimited. Does not implicitly {@link query.StreamEvent.verify|verify} messages. + * Encodes the specified ExecuteOptions message, length delimited. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. * @function encodeDelimited - * @memberof query.StreamEvent + * @memberof query.ExecuteOptions * @static - * @param {query.IStreamEvent} message StreamEvent 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 */ - StreamEvent.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamEvent message from the specified reader or buffer. + * Decodes an ExecuteOptions message from the specified reader or buffer. * @function decode - * @memberof query.StreamEvent + * @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.StreamEvent} StreamEvent + * @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 */ - StreamEvent.decode = function decode(reader, length) { + ExecuteOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamEvent(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteOptions(); while (reader.pos < end) { let 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())); + case 4: { + message.included_fields = reader.int32(); break; } - case 2: { - message.event_token = $root.query.EventToken.decode(reader, reader.uint32()); + case 5: { + message.client_found_rows = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StreamEvent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.StreamEvent - * @static + 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 13: { + message.consolidator = reader.int32(); + break; + } + case 14: { + if (!(message.transaction_access_mode && message.transaction_access_mode.length)) + message.transaction_access_mode = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.transaction_access_mode.push(reader.int32()); + } else + message.transaction_access_mode.push(reader.int32()); + break; + } + case 15: { + message.WorkloadName = reader.string(); + break; + } + case 16: { + message.priority = reader.string(); + break; + } + case 17: { + message.authoritative_timeout = reader.int64(); + break; + } + case 18: { + message.fetch_last_insert_id = reader.bool(); + break; + } + case 19: { + message.in_dml_execution = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExecuteOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof query.ExecuteOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamEvent} StreamEvent + * @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 */ - StreamEvent.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 StreamEvent message. + * Verifies an ExecuteOptions message. * @function verify - * @memberof query.StreamEvent + * @memberof query.ExecuteOptions * @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) { + ExecuteOptions.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 (let i = 0; i < message.statements.length; ++i) { - let error = $root.query.StreamEvent.Statement.verify(message.statements[i]); - if (error) - return "statements." + error; + let properties = {}; + 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: + case 7: + 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.consolidator != null && message.hasOwnProperty("consolidator")) + switch (message.consolidator) { + default: + return "consolidator: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.transaction_access_mode != null && message.hasOwnProperty("transaction_access_mode")) { + if (!Array.isArray(message.transaction_access_mode)) + return "transaction_access_mode: array expected"; + for (let i = 0; i < message.transaction_access_mode.length; ++i) + switch (message.transaction_access_mode[i]) { + default: + return "transaction_access_mode: enum value[] expected"; + case 0: + case 1: + case 2: + break; + } } - if (message.event_token != null && message.hasOwnProperty("event_token")) { - let error = $root.query.EventToken.verify(message.event_token); - if (error) - return "event_token." + error; + if (message.WorkloadName != null && message.hasOwnProperty("WorkloadName")) + if (!$util.isString(message.WorkloadName)) + return "WorkloadName: string expected"; + if (message.priority != null && message.hasOwnProperty("priority")) + if (!$util.isString(message.priority)) + return "priority: string expected"; + if (message.authoritative_timeout != null && message.hasOwnProperty("authoritative_timeout")) { + properties.timeout = 1; + if (!$util.isInteger(message.authoritative_timeout) && !(message.authoritative_timeout && $util.isInteger(message.authoritative_timeout.low) && $util.isInteger(message.authoritative_timeout.high))) + return "authoritative_timeout: integer|Long expected"; } + if (message.fetch_last_insert_id != null && message.hasOwnProperty("fetch_last_insert_id")) + if (typeof message.fetch_last_insert_id !== "boolean") + return "fetch_last_insert_id: boolean expected"; + if (message.in_dml_execution != null && message.hasOwnProperty("in_dml_execution")) + if (typeof message.in_dml_execution !== "boolean") + return "in_dml_execution: boolean expected"; return null; }; /** - * Creates a StreamEvent 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.StreamEvent + * @memberof query.ExecuteOptions * @static * @param {Object.} object Plain object - * @returns {query.StreamEvent} StreamEvent + * @returns {query.ExecuteOptions} ExecuteOptions */ - StreamEvent.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamEvent) + ExecuteOptions.fromObject = function fromObject(object) { + if (object instanceof $root.query.ExecuteOptions) return object; - let message = new $root.query.StreamEvent(); - if (object.statements) { - if (!Array.isArray(object.statements)) - throw TypeError(".query.StreamEvent.statements: array expected"); - message.statements = []; - for (let 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]); + let message = new $root.query.ExecuteOptions(); + switch (object.included_fields) { + default: + if (typeof object.included_fields === "number") { + message.included_fields = object.included_fields; + break; } + break; + 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.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.client_found_rows != null) + message.client_found_rows = Boolean(object.client_found_rows); + switch (object.workload) { + default: + if (typeof object.workload === "number") { + message.workload = object.workload; + break; + } + break; + 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) { + default: + if (typeof object.transaction_isolation === "number") { + message.transaction_isolation = object.transaction_isolation; + break; + } + break; + 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) { + default: + if (typeof object.planner_version === "number") { + message.planner_version = object.planner_version; + break; + } + break; + 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; + case "V3Insert": + case 7: + message.planner_version = 7; + break; + } + if (object.has_created_temp_tables != null) + message.has_created_temp_tables = Boolean(object.has_created_temp_tables); + switch (object.consolidator) { + default: + if (typeof object.consolidator === "number") { + message.consolidator = object.consolidator; + break; + } + break; + case "CONSOLIDATOR_UNSPECIFIED": + case 0: + message.consolidator = 0; + break; + case "CONSOLIDATOR_DISABLED": + case 1: + message.consolidator = 1; + break; + case "CONSOLIDATOR_ENABLED": + case 2: + message.consolidator = 2; + break; + case "CONSOLIDATOR_ENABLED_REPLICAS": + case 3: + message.consolidator = 3; + break; + } + if (object.transaction_access_mode) { + if (!Array.isArray(object.transaction_access_mode)) + throw TypeError(".query.ExecuteOptions.transaction_access_mode: array expected"); + message.transaction_access_mode = []; + for (let i = 0; i < object.transaction_access_mode.length; ++i) + switch (object.transaction_access_mode[i]) { + default: + if (typeof object.transaction_access_mode[i] === "number") { + message.transaction_access_mode[i] = object.transaction_access_mode[i]; + break; + } + case "CONSISTENT_SNAPSHOT": + case 0: + message.transaction_access_mode[i] = 0; + break; + case "READ_WRITE": + case 1: + message.transaction_access_mode[i] = 1; + break; + case "READ_ONLY": + case 2: + message.transaction_access_mode[i] = 2; + break; + } + } + if (object.WorkloadName != null) + message.WorkloadName = String(object.WorkloadName); + if (object.priority != null) + message.priority = String(object.priority); + if (object.authoritative_timeout != null) + if ($util.Long) + (message.authoritative_timeout = $util.Long.fromValue(object.authoritative_timeout)).unsigned = false; + else if (typeof object.authoritative_timeout === "string") + message.authoritative_timeout = parseInt(object.authoritative_timeout, 10); + else if (typeof object.authoritative_timeout === "number") + message.authoritative_timeout = object.authoritative_timeout; + else if (typeof object.authoritative_timeout === "object") + message.authoritative_timeout = new $util.LongBits(object.authoritative_timeout.low >>> 0, object.authoritative_timeout.high >>> 0).toNumber(); + if (object.fetch_last_insert_id != null) + message.fetch_last_insert_id = Boolean(object.fetch_last_insert_id); + if (object.in_dml_execution != null) + message.in_dml_execution = Boolean(object.in_dml_execution); return message; }; /** - * Creates a plain object from a StreamEvent 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.StreamEvent + * @memberof query.ExecuteOptions * @static - * @param {query.StreamEvent} message StreamEvent + * @param {query.ExecuteOptions} message ExecuteOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamEvent.toObject = function toObject(message, options) { + ExecuteOptions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.statements = []; - if (options.defaults) - object.event_token = null; - if (message.statements && message.statements.length) { - object.statements = []; - for (let j = 0; j < message.statements.length; ++j) - object.statements[j] = $root.query.StreamEvent.Statement.toObject(message.statements[j], options); + object.transaction_access_mode = []; + 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) { + let 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.consolidator = options.enums === String ? "CONSOLIDATOR_UNSPECIFIED" : 0; + object.WorkloadName = ""; + object.priority = ""; + object.fetch_last_insert_id = false; + object.in_dml_execution = false; } - if (message.event_token != null && message.hasOwnProperty("event_token")) - object.event_token = $root.query.EventToken.toObject(message.event_token, options); + if (message.included_fields != null && message.hasOwnProperty("included_fields")) + object.included_fields = options.enums === String ? $root.query.ExecuteOptions.IncludedFields[message.included_fields] === undefined ? message.included_fields : $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] === undefined ? message.workload : $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] === undefined ? message.transaction_isolation : $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] === undefined ? message.planner_version : $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.consolidator != null && message.hasOwnProperty("consolidator")) + object.consolidator = options.enums === String ? $root.query.ExecuteOptions.Consolidator[message.consolidator] === undefined ? message.consolidator : $root.query.ExecuteOptions.Consolidator[message.consolidator] : message.consolidator; + if (message.transaction_access_mode && message.transaction_access_mode.length) { + object.transaction_access_mode = []; + for (let j = 0; j < message.transaction_access_mode.length; ++j) + object.transaction_access_mode[j] = options.enums === String ? $root.query.ExecuteOptions.TransactionAccessMode[message.transaction_access_mode[j]] === undefined ? message.transaction_access_mode[j] : $root.query.ExecuteOptions.TransactionAccessMode[message.transaction_access_mode[j]] : message.transaction_access_mode[j]; + } + if (message.WorkloadName != null && message.hasOwnProperty("WorkloadName")) + object.WorkloadName = message.WorkloadName; + if (message.priority != null && message.hasOwnProperty("priority")) + object.priority = message.priority; + if (message.authoritative_timeout != null && message.hasOwnProperty("authoritative_timeout")) { + if (typeof message.authoritative_timeout === "number") + object.authoritative_timeout = options.longs === String ? String(message.authoritative_timeout) : message.authoritative_timeout; + else + object.authoritative_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.authoritative_timeout) : options.longs === Number ? new $util.LongBits(message.authoritative_timeout.low >>> 0, message.authoritative_timeout.high >>> 0).toNumber() : message.authoritative_timeout; + if (options.oneofs) + object.timeout = "authoritative_timeout"; + } + if (message.fetch_last_insert_id != null && message.hasOwnProperty("fetch_last_insert_id")) + object.fetch_last_insert_id = message.fetch_last_insert_id; + if (message.in_dml_execution != null && message.hasOwnProperty("in_dml_execution")) + object.in_dml_execution = message.in_dml_execution; return object; }; /** - * Converts this StreamEvent to JSON. + * Converts this ExecuteOptions to JSON. * @function toJSON - * @memberof query.StreamEvent + * @memberof query.ExecuteOptions * @instance * @returns {Object.} JSON object */ - StreamEvent.prototype.toJSON = function toJSON() { + ExecuteOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamEvent + * Gets the default type url for ExecuteOptions * @function getTypeUrl - * @memberof query.StreamEvent + * @memberof query.ExecuteOptions * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.StreamEvent"; + return typeUrlPrefix + "/query.ExecuteOptions"; }; - StreamEvent.Statement = (function() { - - /** - * Properties of a Statement. - * @memberof query.StreamEvent - * @interface IStatement - * @property {query.StreamEvent.Statement.Category|null} [category] Statement category - * @property {string|null} [table_name] Statement table_name - * @property {Array.|null} [primary_key_fields] Statement primary_key_fields - * @property {Array.|null} [primary_key_values] Statement primary_key_values - * @property {Uint8Array|null} [sql] Statement sql - */ - - /** - * 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 (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Statement category. - * @member {query.StreamEvent.Statement.Category} category - * @memberof query.StreamEvent.Statement - * @instance - */ - Statement.prototype.category = 0; - - /** - * Statement table_name. - * @member {string} table_name - * @memberof query.StreamEvent.Statement - * @instance - */ - Statement.prototype.table_name = ""; - - /** - * Statement primary_key_fields. - * @member {Array.} primary_key_fields - * @memberof query.StreamEvent.Statement - * @instance - */ - Statement.prototype.primary_key_fields = $util.emptyArray; - - /** - * Statement primary_key_values. - * @member {Array.} primary_key_values - * @memberof query.StreamEvent.Statement - * @instance - */ - Statement.prototype.primary_key_values = $util.emptyArray; - - /** - * Statement sql. - * @member {Uint8Array} sql - * @memberof query.StreamEvent.Statement - * @instance - */ - Statement.prototype.sql = $util.newBuffer([]); - - /** - * 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 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 (let 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 (let 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); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamEvent.Statement(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.category = reader.int32(); - break; - } - case 2: { - message.table_name = reader.string(); - break; - } - case 3: { - if (!(message.primary_key_fields && message.primary_key_fields.length)) - message.primary_key_fields = []; - message.primary_key_fields.push($root.query.Field.decode(reader, reader.uint32())); - break; - } - case 4: { - if (!(message.primary_key_values && message.primary_key_values.length)) - message.primary_key_values = []; - message.primary_key_values.push($root.query.Row.decode(reader, reader.uint32())); - break; - } - case 5: { - message.sql = reader.bytes(); - break; - } - 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 (let i = 0; i < message.primary_key_fields.length; ++i) { - let 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 (let i = 0; i < message.primary_key_values.length; ++i) { - let 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; - let message = new $root.query.StreamEvent.Statement(); - switch (object.category) { - default: - if (typeof object.category === "number") { - message.category = object.category; - break; - } - break; - case "Error": - case 0: - message.category = 0; - break; - case "DML": - case 1: - message.category = 1; - break; - case "DDL": - case 2: - message.category = 2; - break; - } - if (object.table_name != null) - message.table_name = String(object.table_name); - if (object.primary_key_fields) { - if (!Array.isArray(object.primary_key_fields)) - throw TypeError(".query.StreamEvent.Statement.primary_key_fields: array expected"); - message.primary_key_fields = []; - for (let 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 (let 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 >= 0) - 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 = {}; - let 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] === undefined ? message.category : $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 (let 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 (let 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); - }; - - /** - * Gets the default type url for Statement - * @function getTypeUrl - * @memberof query.StreamEvent.Statement - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Statement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/query.StreamEvent.Statement"; - }; - - /** - * 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() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "Error"] = 0; - values[valuesById[1] = "DML"] = 1; - values[valuesById[2] = "DDL"] = 2; - return values; - })(); - - return Statement; - })(); - - return StreamEvent; - })(); - - query.ExecuteRequest = (function() { - /** - * Properties of an ExecuteRequest. - * @memberof query - * @interface IExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] ExecuteRequest target - * @property {query.IBoundQuery|null} [query] ExecuteRequest query - * @property {number|Long|null} [transaction_id] ExecuteRequest transaction_id - * @property {query.IExecuteOptions|null} [options] ExecuteRequest options - * @property {number|Long|null} [reserved_id] ExecuteRequest reserved_id + * 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() { + const 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; + })(); /** - * Constructs a new ExecuteRequest. - * @memberof query - * @classdesc Represents an ExecuteRequest. - * @implements IExecuteRequest - * @constructor - * @param {query.IExecuteRequest=} [properties] Properties to set + * 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 */ - function ExecuteRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ExecuteOptions.Workload = (function() { + const 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; + })(); /** - * ExecuteRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ExecuteRequest - * @instance + * 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 */ - ExecuteRequest.prototype.effective_caller_id = null; + ExecuteOptions.TransactionIsolation = (function() { + const 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; + })(); /** - * ExecuteRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ExecuteRequest - * @instance + * 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 + * @property {number} V3Insert=7 V3Insert value */ - ExecuteRequest.prototype.immediate_caller_id = null; + ExecuteOptions.PlannerVersion = (function() { + const 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; + values[valuesById[7] = "V3Insert"] = 7; + return values; + })(); /** - * ExecuteRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.ExecuteRequest - * @instance + * Consolidator enum. + * @name query.ExecuteOptions.Consolidator + * @enum {number} + * @property {number} CONSOLIDATOR_UNSPECIFIED=0 CONSOLIDATOR_UNSPECIFIED value + * @property {number} CONSOLIDATOR_DISABLED=1 CONSOLIDATOR_DISABLED value + * @property {number} CONSOLIDATOR_ENABLED=2 CONSOLIDATOR_ENABLED value + * @property {number} CONSOLIDATOR_ENABLED_REPLICAS=3 CONSOLIDATOR_ENABLED_REPLICAS value */ - ExecuteRequest.prototype.target = null; + ExecuteOptions.Consolidator = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CONSOLIDATOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "CONSOLIDATOR_DISABLED"] = 1; + values[valuesById[2] = "CONSOLIDATOR_ENABLED"] = 2; + values[valuesById[3] = "CONSOLIDATOR_ENABLED_REPLICAS"] = 3; + return values; + })(); /** - * ExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ExecuteRequest + * TransactionAccessMode enum. + * @name query.ExecuteOptions.TransactionAccessMode + * @enum {number} + * @property {number} CONSISTENT_SNAPSHOT=0 CONSISTENT_SNAPSHOT value + * @property {number} READ_WRITE=1 READ_WRITE value + * @property {number} READ_ONLY=2 READ_ONLY value + */ + ExecuteOptions.TransactionAccessMode = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CONSISTENT_SNAPSHOT"] = 0; + values[valuesById[1] = "READ_WRITE"] = 1; + values[valuesById[2] = "READ_ONLY"] = 2; + return values; + })(); + + return ExecuteOptions; + })(); + + query.Field = (function() { + + /** + * 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 (let 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 */ - ExecuteRequest.prototype.query = null; + Field.prototype.name = ""; /** - * ExecuteRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.ExecuteRequest + * Field type. + * @member {query.Type} type + * @memberof query.Field * @instance */ - ExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Field.prototype.type = 0; /** - * ExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ExecuteRequest + * Field table. + * @member {string} table + * @memberof query.Field * @instance */ - ExecuteRequest.prototype.options = null; + Field.prototype.table = ""; /** - * ExecuteRequest reserved_id. - * @member {number|Long} reserved_id - * @memberof query.ExecuteRequest + * Field org_table. + * @member {string} org_table + * @memberof query.Field * @instance */ - ExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Field.prototype.org_table = ""; /** - * Creates a new ExecuteRequest instance using the specified properties. + * Field database. + * @member {string} database + * @memberof query.Field + * @instance + */ + Field.prototype.database = ""; + + /** + * Field org_name. + * @member {string} org_name + * @memberof query.Field + * @instance + */ + Field.prototype.org_name = ""; + + /** + * Field column_length. + * @member {number} column_length + * @memberof query.Field + * @instance + */ + Field.prototype.column_length = 0; + + /** + * Field charset. + * @member {number} charset + * @memberof query.Field + * @instance + */ + Field.prototype.charset = 0; + + /** + * Field decimals. + * @member {number} decimals + * @memberof query.Field + * @instance + */ + Field.prototype.decimals = 0; + + /** + * Field flags. + * @member {number} flags + * @memberof query.Field + * @instance + */ + Field.prototype.flags = 0; + + /** + * Field column_type. + * @member {string} column_type + * @memberof query.Field + * @instance + */ + Field.prototype.column_type = ""; + + /** + * Creates a new Field instance using the specified properties. * @function create - * @memberof query.ExecuteRequest + * @memberof query.Field * @static - * @param {query.IExecuteRequest=} [properties] Properties to set - * @returns {query.ExecuteRequest} ExecuteRequest instance + * @param {query.IField=} [properties] Properties to set + * @returns {query.Field} Field instance */ - ExecuteRequest.create = function create(properties) { - return new ExecuteRequest(properties); + Field.create = function create(properties) { + return new Field(properties); }; /** - * Encodes the specified ExecuteRequest message. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. + * Encodes the specified Field message. Does not implicitly {@link query.Field.verify|verify} messages. * @function encode - * @memberof query.ExecuteRequest + * @memberof query.Field * @static - * @param {query.IExecuteRequest} message ExecuteRequest 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 */ - ExecuteRequest.encode = function encode(message, writer) { + Field.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.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 ExecuteRequest message, length delimited. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. + * Encodes the specified Field message, length delimited. Does not implicitly {@link query.Field.verify|verify} messages. * @function encodeDelimited - * @memberof query.ExecuteRequest + * @memberof query.Field * @static - * @param {query.IExecuteRequest} message ExecuteRequest 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 */ - ExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + Field.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteRequest message from the specified reader or buffer. + * Decodes a Field message from the specified reader or buffer. * @function decode - * @memberof query.ExecuteRequest + * @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.ExecuteRequest} ExecuteRequest + * @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 */ - ExecuteRequest.decode = function decode(reader, length) { + Field.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Field(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + message.type = reader.int32(); break; } case 3: { - message.target = $root.query.Target.decode(reader, reader.uint32()); + message.table = reader.string(); break; } case 4: { - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + message.org_table = reader.string(); break; } case 5: { - message.transaction_id = reader.int64(); + message.database = reader.string(); break; } case 6: { - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + message.org_name = reader.string(); break; } case 7: { - message.reserved_id = reader.int64(); + 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: @@ -101141,224 +101400,404 @@ export const query = $root.query = (() => { }; /** - * Decodes an ExecuteRequest 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.ExecuteRequest + * @memberof query.Field * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ExecuteRequest} ExecuteRequest + * @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 */ - ExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + Field.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteRequest message. + * Verifies a Field message. * @function verify - * @memberof query.ExecuteRequest + * @memberof query.Field * @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) { + Field.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - let 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")) { - let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - let error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.query != null && message.hasOwnProperty("query")) { - let 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")) { - let 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.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: + case 2083: + case 2084: + case 2085: + break; + } + if (message.table != null && message.hasOwnProperty("table")) + if (!$util.isString(message.table)) + return "table: string expected"; + if (message.org_table != null && message.hasOwnProperty("org_table")) + if (!$util.isString(message.org_table)) + return "org_table: string expected"; + if (message.database != null && message.hasOwnProperty("database")) + if (!$util.isString(message.database)) + return "database: string expected"; + if (message.org_name != null && message.hasOwnProperty("org_name")) + if (!$util.isString(message.org_name)) + return "org_name: string expected"; + if (message.column_length != null && message.hasOwnProperty("column_length")) + if (!$util.isInteger(message.column_length)) + return "column_length: integer expected"; + if (message.charset != null && message.hasOwnProperty("charset")) + if (!$util.isInteger(message.charset)) + return "charset: integer expected"; + if (message.decimals != null && message.hasOwnProperty("decimals")) + if (!$util.isInteger(message.decimals)) + return "decimals: integer expected"; + if (message.flags != null && message.hasOwnProperty("flags")) + if (!$util.isInteger(message.flags)) + return "flags: integer expected"; + if (message.column_type != null && message.hasOwnProperty("column_type")) + if (!$util.isString(message.column_type)) + return "column_type: string expected"; return null; }; /** - * Creates an ExecuteRequest 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.ExecuteRequest + * @memberof query.Field * @static * @param {Object.} object Plain object - * @returns {query.ExecuteRequest} ExecuteRequest + * @returns {query.Field} Field */ - ExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ExecuteRequest) + Field.fromObject = function fromObject(object) { + if (object instanceof $root.query.Field) return object; - let message = new $root.query.ExecuteRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ExecuteRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ExecuteRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.ExecuteRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".query.ExecuteRequest.query: object expected"); - message.query = $root.query.BoundQuery.fromObject(object.query); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.ExecuteRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); + let message = new $root.query.Field(); + if (object.name != null) + message.name = String(object.name); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + 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; + case "VECTOR": + case 2083: + message.type = 2083; + break; + case "RAW": + case 2084: + message.type = 2084; + break; + case "ROW_TUPLE": + case 2085: + message.type = 2085; + break; } - 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.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 an ExecuteRequest 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.ExecuteRequest + * @memberof query.Field * @static - * @param {query.ExecuteRequest} message ExecuteRequest + * @param {query.Field} message Field * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteRequest.toObject = function toObject(message, options) { + Field.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.query = null; - if ($util.Long) { - let 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) { - let 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.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.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.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] === undefined ? message.type : $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 ExecuteRequest to JSON. + * Converts this Field to JSON. * @function toJSON - * @memberof query.ExecuteRequest + * @memberof query.Field * @instance * @returns {Object.} JSON object */ - ExecuteRequest.prototype.toJSON = function toJSON() { + Field.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteRequest + * Gets the default type url for Field * @function getTypeUrl - * @memberof query.ExecuteRequest + * @memberof query.Field * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Field.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ExecuteRequest"; + return typeUrlPrefix + "/query.Field"; }; - return ExecuteRequest; + return Field; })(); - query.ExecuteResponse = (function() { + query.Row = (function() { /** - * Properties of an ExecuteResponse. + * Properties of a Row. * @memberof query - * @interface IExecuteResponse - * @property {query.IQueryResult|null} [result] ExecuteResponse result + * @interface IRow + * @property {Array.|null} [lengths] Row lengths + * @property {Uint8Array|null} [values] Row values */ /** - * Constructs a new ExecuteResponse. + * Constructs a new Row. * @memberof query - * @classdesc Represents an ExecuteResponse. - * @implements IExecuteResponse + * @classdesc Represents a Row. + * @implements IRow * @constructor - * @param {query.IExecuteResponse=} [properties] Properties to set + * @param {query.IRow=} [properties] Properties to set */ - function ExecuteResponse(properties) { + function Row(properties) { + this.lengths = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101366,75 +101805,100 @@ export const query = $root.query = (() => { } /** - * ExecuteResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.ExecuteResponse + * Row lengths. + * @member {Array.} lengths + * @memberof query.Row * @instance */ - ExecuteResponse.prototype.result = null; + Row.prototype.lengths = $util.emptyArray; /** - * Creates a new ExecuteResponse instance using the specified properties. + * Row values. + * @member {Uint8Array} values + * @memberof query.Row + * @instance + */ + Row.prototype.values = $util.newBuffer([]); + + /** + * Creates a new Row instance using the specified properties. * @function create - * @memberof query.ExecuteResponse + * @memberof query.Row * @static - * @param {query.IExecuteResponse=} [properties] Properties to set - * @returns {query.ExecuteResponse} ExecuteResponse instance + * @param {query.IRow=} [properties] Properties to set + * @returns {query.Row} Row instance */ - ExecuteResponse.create = function create(properties) { - return new ExecuteResponse(properties); + Row.create = function create(properties) { + return new Row(properties); }; /** - * Encodes the specified ExecuteResponse message. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. + * Encodes the specified Row message. Does not implicitly {@link query.Row.verify|verify} messages. * @function encode - * @memberof query.ExecuteResponse + * @memberof query.Row * @static - * @param {query.IExecuteResponse} message ExecuteResponse 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 */ - ExecuteResponse.encode = function encode(message, writer) { + Row.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.lengths != null && message.lengths.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (let 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 ExecuteResponse message, length delimited. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. + * Encodes the specified Row message, length delimited. Does not implicitly {@link query.Row.verify|verify} messages. * @function encodeDelimited - * @memberof query.ExecuteResponse + * @memberof query.Row * @static - * @param {query.IExecuteResponse} message ExecuteResponse 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 */ - ExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + Row.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteResponse message from the specified reader or buffer. + * Decodes a Row message from the specified reader or buffer. * @function decode - * @memberof query.ExecuteResponse + * @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.ExecuteResponse} ExecuteResponse + * @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 */ - ExecuteResponse.decode = function decode(reader, length) { + Row.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Row(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + if (!(message.lengths && message.lengths.length)) + message.lengths = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.lengths.push(reader.sint64()); + } else + message.lengths.push(reader.sint64()); + break; + } + case 2: { + message.values = reader.bytes(); break; } default: @@ -101446,128 +101910,170 @@ export const query = $root.query = (() => { }; /** - * Decodes an ExecuteResponse 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.ExecuteResponse + * @memberof query.Row * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ExecuteResponse} ExecuteResponse + * @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 */ - ExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + Row.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteResponse message. + * Verifies a Row message. * @function verify - * @memberof query.ExecuteResponse + * @memberof query.Row * @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) { + Row.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; + if (message.lengths != null && message.hasOwnProperty("lengths")) { + if (!Array.isArray(message.lengths)) + return "lengths: array expected"; + for (let 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 an ExecuteResponse 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.ExecuteResponse + * @memberof query.Row * @static * @param {Object.} object Plain object - * @returns {query.ExecuteResponse} ExecuteResponse + * @returns {query.Row} Row */ - ExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ExecuteResponse) + Row.fromObject = function fromObject(object) { + if (object instanceof $root.query.Row) return object; - let 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); + let message = new $root.query.Row(); + if (object.lengths) { + if (!Array.isArray(object.lengths)) + throw TypeError(".query.Row.lengths: array expected"); + message.lengths = []; + for (let 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 >= 0) + message.values = object.values; return message; }; /** - * Creates a plain object from an ExecuteResponse 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.ExecuteResponse + * @memberof query.Row * @static - * @param {query.ExecuteResponse} message ExecuteResponse + * @param {query.Row} message Row * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteResponse.toObject = function toObject(message, options) { + Row.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.lengths = []; if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); + 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 (let j = 0; j < message.lengths.length; ++j) + if (typeof message.lengths[j] === "number") + object.lengths[j] = options.longs === String ? String(message.lengths[j]) : message.lengths[j]; + else + object.lengths[j] = options.longs === String ? $util.Long.prototype.toString.call(message.lengths[j]) : options.longs === Number ? new $util.LongBits(message.lengths[j].low >>> 0, message.lengths[j].high >>> 0).toNumber() : message.lengths[j]; + } + if (message.values != null && message.hasOwnProperty("values")) + object.values = options.bytes === String ? $util.base64.encode(message.values, 0, message.values.length) : options.bytes === Array ? Array.prototype.slice.call(message.values) : message.values; return object; }; /** - * Converts this ExecuteResponse to JSON. + * Converts this Row to JSON. * @function toJSON - * @memberof query.ExecuteResponse + * @memberof query.Row * @instance * @returns {Object.} JSON object */ - ExecuteResponse.prototype.toJSON = function toJSON() { + Row.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteResponse + * Gets the default type url for Row * @function getTypeUrl - * @memberof query.ExecuteResponse + * @memberof query.Row * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Row.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ExecuteResponse"; + return typeUrlPrefix + "/query.Row"; }; - return ExecuteResponse; + return Row; })(); - query.ResultWithError = (function() { + query.QueryResult = (function() { /** - * Properties of a ResultWithError. + * Properties of a QueryResult. * @memberof query - * @interface IResultWithError - * @property {vtrpc.IRPCError|null} [error] ResultWithError error - * @property {query.IQueryResult|null} [result] ResultWithError result + * @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 + * @property {boolean|null} [insert_id_changed] QueryResult insert_id_changed */ /** - * Constructs a new ResultWithError. + * Constructs a new QueryResult. * @memberof query - * @classdesc Represents a ResultWithError. - * @implements IResultWithError + * @classdesc Represents a QueryResult. + * @implements IQueryResult * @constructor - * @param {query.IResultWithError=} [properties] Properties to set + * @param {query.IQueryResult=} [properties] Properties to set */ - function ResultWithError(properties) { + function QueryResult(properties) { + this.fields = []; + this.rows = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101575,401 +102081,165 @@ export const query = $root.query = (() => { } /** - * ResultWithError error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ResultWithError + * QueryResult fields. + * @member {Array.} fields + * @memberof query.QueryResult * @instance */ - ResultWithError.prototype.error = null; + QueryResult.prototype.fields = $util.emptyArray; /** - * ResultWithError result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.ResultWithError + * QueryResult rows_affected. + * @member {number|Long} rows_affected + * @memberof query.QueryResult * @instance */ - ResultWithError.prototype.result = null; + QueryResult.prototype.rows_affected = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new ResultWithError 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 = ""; + + /** + * QueryResult insert_id_changed. + * @member {boolean} insert_id_changed + * @memberof query.QueryResult + * @instance + */ + QueryResult.prototype.insert_id_changed = false; + + /** + * Creates a new QueryResult instance using the specified properties. * @function create - * @memberof query.ResultWithError + * @memberof query.QueryResult * @static - * @param {query.IResultWithError=} [properties] Properties to set - * @returns {query.ResultWithError} ResultWithError instance + * @param {query.IQueryResult=} [properties] Properties to set + * @returns {query.QueryResult} QueryResult instance */ - ResultWithError.create = function create(properties) { - return new ResultWithError(properties); + QueryResult.create = function create(properties) { + return new QueryResult(properties); }; /** - * Encodes the specified ResultWithError message. Does not implicitly {@link query.ResultWithError.verify|verify} messages. + * Encodes the specified QueryResult message. Does not implicitly {@link query.QueryResult.verify|verify} messages. * @function encode - * @memberof query.ResultWithError + * @memberof query.QueryResult * @static - * @param {query.IResultWithError} message ResultWithError 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 */ - ResultWithError.encode = function encode(message, writer) { + QueryResult.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.fields != null && message.fields.length) + for (let 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 (let 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.insert_id_changed != null && Object.hasOwnProperty.call(message, "insert_id_changed")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.insert_id_changed); return writer; }; /** - * Encodes the specified ResultWithError message, length delimited. Does not implicitly {@link query.ResultWithError.verify|verify} messages. + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link query.QueryResult.verify|verify} messages. * @function encodeDelimited - * @memberof query.ResultWithError + * @memberof query.QueryResult * @static - * @param {query.IResultWithError} message ResultWithError 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 */ - ResultWithError.encodeDelimited = function encodeDelimited(message, writer) { + QueryResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResultWithError message from the specified reader or buffer. + * Decodes a QueryResult 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); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ResultWithError(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); - break; - } - case 2: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - 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")) { - let error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } - if (message.result != null && message.hasOwnProperty("result")) { - let 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) - return object; - let 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 = {}; - let 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 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); - }; - - /** - * Gets the default type url for ResultWithError - * @function getTypeUrl - * @memberof query.ResultWithError - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ResultWithError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/query.ResultWithError"; - }; - - return ResultWithError; - })(); - - query.StreamExecuteRequest = (function() { - - /** - * Properties of a StreamExecuteRequest. - * @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 - */ - - /** - * Constructs a new StreamExecuteRequest. - * @memberof query - * @classdesc Represents a StreamExecuteRequest. - * @implements IStreamExecuteRequest - * @constructor - * @param {query.IStreamExecuteRequest=} [properties] Properties to set - */ - function StreamExecuteRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StreamExecuteRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.StreamExecuteRequest - * @instance - */ - StreamExecuteRequest.prototype.effective_caller_id = null; - - /** - * StreamExecuteRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.StreamExecuteRequest - * @instance - */ - StreamExecuteRequest.prototype.immediate_caller_id = null; - - /** - * StreamExecuteRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.StreamExecuteRequest - * @instance - */ - StreamExecuteRequest.prototype.target = null; - - /** - * StreamExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.StreamExecuteRequest - * @instance - */ - StreamExecuteRequest.prototype.query = null; - - /** - * StreamExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.StreamExecuteRequest - * @instance - */ - 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 StreamExecuteRequest message, length delimited. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. - * @function encodeDelimited - * @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.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StreamExecuteRequest message from the specified reader or buffer. - * @function decode - * @memberof query.StreamExecuteRequest + * @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.StreamExecuteRequest} StreamExecuteRequest + * @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 */ - StreamExecuteRequest.decode = function decode(reader, length) { + QueryResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamExecuteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.QueryResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.effective_caller_id = $root.vtrpc.CallerID.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.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + message.rows_affected = reader.uint64(); break; } case 3: { - message.target = $root.query.Target.decode(reader, reader.uint32()); + message.insert_id = reader.uint64(); break; } case 4: { - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); - break; - } - case 5: { - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + if (!(message.rows && message.rows.length)) + message.rows = []; + message.rows.push($root.query.Row.decode(reader, reader.uint32())); break; } case 6: { - message.transaction_id = reader.int64(); + message.info = reader.string(); break; } case 7: { - message.reserved_id = reader.int64(); + message.session_state_changes = reader.string(); + break; + } + case 8: { + message.insert_id_changed = reader.bool(); break; } default: @@ -101981,224 +102251,236 @@ export const query = $root.query = (() => { }; /** - * Decodes a StreamExecuteRequest 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.StreamExecuteRequest + * @memberof query.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamExecuteRequest} StreamExecuteRequest + * @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 */ - StreamExecuteRequest.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 StreamExecuteRequest message. + * Verifies a QueryResult message. * @function verify - * @memberof query.StreamExecuteRequest + * @memberof query.QueryResult * @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) { + QueryResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - let 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")) { - let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - let error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.query != null && message.hasOwnProperty("query")) { - let error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (let i = 0; i < message.fields.length; ++i) { + let error = $root.query.Field.verify(message.fields[i]); + if (error) + return "fields." + error; + } } - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.query.ExecuteOptions.verify(message.options); - if (error) - return "options." + 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 (let i = 0; i < message.rows.length; ++i) { + let error = $root.query.Row.verify(message.rows[i]); + if (error) + return "rows." + 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.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.insert_id_changed != null && message.hasOwnProperty("insert_id_changed")) + if (typeof message.insert_id_changed !== "boolean") + return "insert_id_changed: boolean expected"; return null; }; /** - * Creates a StreamExecuteRequest 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.StreamExecuteRequest + * @memberof query.QueryResult * @static * @param {Object.} object Plain object - * @returns {query.StreamExecuteRequest} StreamExecuteRequest + * @returns {query.QueryResult} QueryResult */ - StreamExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamExecuteRequest) + QueryResult.fromObject = function fromObject(object) { + if (object instanceof $root.query.QueryResult) return object; - let 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); + let message = new $root.query.QueryResult(); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".query.QueryResult.fields: array expected"); + message.fields = []; + for (let 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.transaction_id != null) + if (object.rows_affected != 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) + (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.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.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 (let 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); + if (object.insert_id_changed != null) + message.insert_id_changed = Boolean(object.insert_id_changed); return message; }; /** - * Creates a plain object from a StreamExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryResult message. Also converts values to other types if specified. * @function toObject - * @memberof query.StreamExecuteRequest + * @memberof query.QueryResult * @static - * @param {query.StreamExecuteRequest} message StreamExecuteRequest + * @param {query.QueryResult} message QueryResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamExecuteRequest.toObject = function toObject(message, options) { + QueryResult.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.fields = []; + object.rows = []; + } 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) { - let long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + let long = new $util.Long(0, 0, true); + object.rows_affected = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.transaction_id = options.longs === String ? "0" : 0; + object.rows_affected = options.longs === String ? "0" : 0; if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + let long = new $util.Long(0, 0, true); + object.insert_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.reserved_id = options.longs === String ? "0" : 0; + object.insert_id = options.longs === String ? "0" : 0; + object.info = ""; + object.session_state_changes = ""; + object.insert_id_changed = false; } - 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; + if (message.fields && message.fields.length) { + object.fields = []; + for (let 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.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; + 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.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.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 (let 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.insert_id_changed != null && message.hasOwnProperty("insert_id_changed")) + object.insert_id_changed = message.insert_id_changed; return object; }; /** - * Converts this StreamExecuteRequest to JSON. + * Converts this QueryResult to JSON. * @function toJSON - * @memberof query.StreamExecuteRequest + * @memberof query.QueryResult * @instance * @returns {Object.} JSON object */ - StreamExecuteRequest.prototype.toJSON = function toJSON() { + QueryResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamExecuteRequest + * Gets the default type url for QueryResult * @function getTypeUrl - * @memberof query.StreamExecuteRequest + * @memberof query.QueryResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.StreamExecuteRequest"; + return typeUrlPrefix + "/query.QueryResult"; }; - return StreamExecuteRequest; + return QueryResult; })(); - query.StreamExecuteResponse = (function() { + query.QueryWarning = (function() { /** - * Properties of a StreamExecuteResponse. + * Properties of a QueryWarning. * @memberof query - * @interface IStreamExecuteResponse - * @property {query.IQueryResult|null} [result] StreamExecuteResponse result + * @interface IQueryWarning + * @property {number|null} [code] QueryWarning code + * @property {string|null} [message] QueryWarning message */ /** - * Constructs a new StreamExecuteResponse. + * Constructs a new QueryWarning. * @memberof query - * @classdesc Represents a StreamExecuteResponse. - * @implements IStreamExecuteResponse + * @classdesc Represents a QueryWarning. + * @implements IQueryWarning * @constructor - * @param {query.IStreamExecuteResponse=} [properties] Properties to set + * @param {query.IQueryWarning=} [properties] Properties to set */ - function StreamExecuteResponse(properties) { + function QueryWarning(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102206,75 +102488,89 @@ export const query = $root.query = (() => { } /** - * StreamExecuteResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.StreamExecuteResponse + * QueryWarning code. + * @member {number} code + * @memberof query.QueryWarning * @instance */ - StreamExecuteResponse.prototype.result = null; + QueryWarning.prototype.code = 0; /** - * Creates a new StreamExecuteResponse instance using the specified properties. + * QueryWarning message. + * @member {string} message + * @memberof query.QueryWarning + * @instance + */ + QueryWarning.prototype.message = ""; + + /** + * Creates a new QueryWarning instance using the specified properties. * @function create - * @memberof query.StreamExecuteResponse + * @memberof query.QueryWarning * @static - * @param {query.IStreamExecuteResponse=} [properties] Properties to set - * @returns {query.StreamExecuteResponse} StreamExecuteResponse instance + * @param {query.IQueryWarning=} [properties] Properties to set + * @returns {query.QueryWarning} QueryWarning instance */ - StreamExecuteResponse.create = function create(properties) { - return new StreamExecuteResponse(properties); + QueryWarning.create = function create(properties) { + return new QueryWarning(properties); }; /** - * Encodes the specified StreamExecuteResponse message. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. + * Encodes the specified QueryWarning message. Does not implicitly {@link query.QueryWarning.verify|verify} messages. * @function encode - * @memberof query.StreamExecuteResponse + * @memberof query.QueryWarning * @static - * @param {query.IStreamExecuteResponse} message StreamExecuteResponse message or plain object to encode + * @param {query.IQueryWarning} message QueryWarning message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamExecuteResponse.encode = function encode(message, writer) { + QueryWarning.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); return writer; }; /** - * Encodes the specified StreamExecuteResponse message, length delimited. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. + * Encodes the specified QueryWarning message, length delimited. Does not implicitly {@link query.QueryWarning.verify|verify} messages. * @function encodeDelimited - * @memberof query.StreamExecuteResponse + * @memberof query.QueryWarning * @static - * @param {query.IStreamExecuteResponse} message StreamExecuteResponse message or plain object to encode + * @param {query.IQueryWarning} message QueryWarning message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryWarning.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamExecuteResponse message from the specified reader or buffer. + * Decodes a QueryWarning message from the specified reader or buffer. * @function decode - * @memberof query.StreamExecuteResponse + * @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.StreamExecuteResponse} StreamExecuteResponse + * @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 */ - StreamExecuteResponse.decode = function decode(reader, length) { + QueryWarning.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamExecuteResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.QueryWarning(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + message.code = reader.uint32(); + break; + } + case 2: { + message.message = reader.string(); break; } default: @@ -102286,130 +102582,133 @@ export const query = $root.query = (() => { }; /** - * Decodes a StreamExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryWarning message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.StreamExecuteResponse + * @memberof query.QueryWarning * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamExecuteResponse} StreamExecuteResponse + * @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 */ - StreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + QueryWarning.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamExecuteResponse message. + * Verifies a QueryWarning message. * @function verify - * @memberof query.StreamExecuteResponse + * @memberof query.QueryWarning * @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) { + QueryWarning.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isInteger(message.code)) + return "code: integer expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; return null; }; /** - * Creates a StreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryWarning message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StreamExecuteResponse + * @memberof query.QueryWarning * @static * @param {Object.} object Plain object - * @returns {query.StreamExecuteResponse} StreamExecuteResponse + * @returns {query.QueryWarning} QueryWarning */ - StreamExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamExecuteResponse) + QueryWarning.fromObject = function fromObject(object) { + if (object instanceof $root.query.QueryWarning) return object; - let 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); - } + let message = new $root.query.QueryWarning(); + if (object.code != null) + message.code = object.code >>> 0; + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a StreamExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryWarning message. Also converts values to other types if specified. * @function toObject - * @memberof query.StreamExecuteResponse + * @memberof query.QueryWarning * @static - * @param {query.StreamExecuteResponse} message StreamExecuteResponse + * @param {query.QueryWarning} message QueryWarning * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamExecuteResponse.toObject = function toObject(message, options) { + QueryWarning.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); + if (options.defaults) { + object.code = 0; + object.message = ""; + } + if (message.code != null && message.hasOwnProperty("code")) + object.code = message.code; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; return object; }; /** - * Converts this StreamExecuteResponse to JSON. + * Converts this QueryWarning to JSON. * @function toJSON - * @memberof query.StreamExecuteResponse + * @memberof query.QueryWarning * @instance * @returns {Object.} JSON object */ - StreamExecuteResponse.prototype.toJSON = function toJSON() { + QueryWarning.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamExecuteResponse + * Gets the default type url for QueryWarning * @function getTypeUrl - * @memberof query.StreamExecuteResponse + * @memberof query.QueryWarning * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryWarning.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.StreamExecuteResponse"; + return typeUrlPrefix + "/query.QueryWarning"; }; - return StreamExecuteResponse; + return QueryWarning; })(); - query.BeginRequest = (function() { + query.StreamEvent = (function() { /** - * Properties of a BeginRequest. + * Properties of a StreamEvent. * @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 IStreamEvent + * @property {Array.|null} [statements] StreamEvent statements + * @property {query.IEventToken|null} [event_token] StreamEvent event_token */ /** - * Constructs a new BeginRequest. + * Constructs a new StreamEvent. * @memberof query - * @classdesc Represents a BeginRequest. - * @implements IBeginRequest + * @classdesc Represents a StreamEvent. + * @implements IStreamEvent * @constructor - * @param {query.IBeginRequest=} [properties] Properties to set + * @param {query.IStreamEvent=} [properties] Properties to set */ - function BeginRequest(properties) { + function StreamEvent(properties) { + this.statements = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102417,117 +102716,92 @@ export const query = $root.query = (() => { } /** - * BeginRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.BeginRequest - * @instance - */ - BeginRequest.prototype.effective_caller_id = null; - - /** - * BeginRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.BeginRequest - * @instance - */ - BeginRequest.prototype.immediate_caller_id = null; - - /** - * BeginRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.BeginRequest + * StreamEvent statements. + * @member {Array.} statements + * @memberof query.StreamEvent * @instance */ - BeginRequest.prototype.target = null; + StreamEvent.prototype.statements = $util.emptyArray; /** - * BeginRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.BeginRequest + * StreamEvent event_token. + * @member {query.IEventToken|null|undefined} event_token + * @memberof query.StreamEvent * @instance */ - BeginRequest.prototype.options = null; + StreamEvent.prototype.event_token = null; /** - * Creates a new BeginRequest instance using the specified properties. + * Creates a new StreamEvent instance using the specified properties. * @function create - * @memberof query.BeginRequest + * @memberof query.StreamEvent * @static - * @param {query.IBeginRequest=} [properties] Properties to set - * @returns {query.BeginRequest} BeginRequest instance + * @param {query.IStreamEvent=} [properties] Properties to set + * @returns {query.StreamEvent} StreamEvent instance */ - BeginRequest.create = function create(properties) { - return new BeginRequest(properties); + StreamEvent.create = function create(properties) { + return new StreamEvent(properties); }; /** - * Encodes the specified BeginRequest message. Does not implicitly {@link query.BeginRequest.verify|verify} messages. + * Encodes the specified StreamEvent message. Does not implicitly {@link query.StreamEvent.verify|verify} messages. * @function encode - * @memberof query.BeginRequest + * @memberof query.StreamEvent * @static - * @param {query.IBeginRequest} message BeginRequest 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 */ - BeginRequest.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.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.statements != null && message.statements.length) + for (let 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 BeginRequest message, length delimited. Does not implicitly {@link query.BeginRequest.verify|verify} messages. + * Encodes the specified StreamEvent message, length delimited. Does not implicitly {@link query.StreamEvent.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginRequest + * @memberof query.StreamEvent * @static - * @param {query.IBeginRequest} message BeginRequest 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 */ - BeginRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginRequest message from the specified reader or buffer. + * Decodes a StreamEvent message from the specified reader or buffer. * @function decode - * @memberof query.BeginRequest + * @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.BeginRequest} BeginRequest + * @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 */ - BeginRequest.decode = function decode(reader, length) { + StreamEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamEvent(); while (reader.pos < end) { let 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.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + message.event_token = $root.query.EventToken.decode(reader, reader.uint32()); break; } default: @@ -102539,439 +102813,548 @@ export const query = $root.query = (() => { }; /** - * Decodes a BeginRequest 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.BeginRequest + * @memberof query.StreamEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginRequest} BeginRequest + * @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 */ - BeginRequest.decodeDelimited = function decodeDelimited(reader) { + StreamEvent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BeginRequest message. + * Verifies a StreamEvent message. * @function verify - * @memberof query.BeginRequest + * @memberof query.StreamEvent * @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) { + 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")) { - let 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")) { - let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - let error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; + if (message.statements != null && message.hasOwnProperty("statements")) { + if (!Array.isArray(message.statements)) + return "statements: array expected"; + for (let i = 0; i < message.statements.length; ++i) { + let error = $root.query.StreamEvent.Statement.verify(message.statements[i]); + if (error) + return "statements." + error; + } } - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.query.ExecuteOptions.verify(message.options); + if (message.event_token != null && message.hasOwnProperty("event_token")) { + let error = $root.query.EventToken.verify(message.event_token); if (error) - return "options." + error; + return "event_token." + error; } return null; }; /** - * Creates a BeginRequest 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.BeginRequest + * @memberof query.StreamEvent * @static * @param {Object.} object Plain object - * @returns {query.BeginRequest} BeginRequest + * @returns {query.StreamEvent} StreamEvent */ - BeginRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginRequest) + StreamEvent.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamEvent) return object; - let 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); + let message = new $root.query.StreamEvent(); + if (object.statements) { + if (!Array.isArray(object.statements)) + throw TypeError(".query.StreamEvent.statements: array expected"); + message.statements = []; + for (let 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.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.BeginRequest.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); } return message; }; /** - * Creates a plain object from a BeginRequest 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.BeginRequest + * @memberof query.StreamEvent * @static - * @param {query.BeginRequest} message BeginRequest + * @param {query.StreamEvent} message StreamEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginRequest.toObject = function toObject(message, options) { + StreamEvent.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.options = null; + if (options.arrays || options.defaults) + object.statements = []; + if (options.defaults) + object.event_token = null; + if (message.statements && message.statements.length) { + object.statements = []; + for (let 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.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.event_token != null && message.hasOwnProperty("event_token")) + object.event_token = $root.query.EventToken.toObject(message.event_token, options); return object; }; /** - * Converts this BeginRequest to JSON. + * Converts this StreamEvent to JSON. * @function toJSON - * @memberof query.BeginRequest + * @memberof query.StreamEvent * @instance * @returns {Object.} JSON object */ - BeginRequest.prototype.toJSON = function toJSON() { + StreamEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BeginRequest + * Gets the default type url for StreamEvent * @function getTypeUrl - * @memberof query.BeginRequest + * @memberof query.StreamEvent * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BeginRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.BeginRequest"; + return typeUrlPrefix + "/query.StreamEvent"; }; - return BeginRequest; - })(); - - query.BeginResponse = (function() { + StreamEvent.Statement = (function() { - /** - * Properties of a BeginResponse. - * @memberof query - * @interface IBeginResponse - * @property {number|Long|null} [transaction_id] BeginResponse transaction_id - * @property {topodata.ITabletAlias|null} [tablet_alias] BeginResponse tablet_alias - * @property {string|null} [session_state_changes] BeginResponse session_state_changes - */ + /** + * 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 BeginResponse. - * @memberof query - * @classdesc Represents a BeginResponse. - * @implements IBeginResponse - * @constructor - * @param {query.IBeginResponse=} [properties] Properties to set - */ - function BeginResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * 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 (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * BeginResponse transaction_id. - * @member {number|Long} transaction_id - * @memberof query.BeginResponse - * @instance - */ - BeginResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Statement category. + * @member {query.StreamEvent.Statement.Category} category + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.category = 0; - /** - * BeginResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.BeginResponse - * @instance - */ - BeginResponse.prototype.tablet_alias = null; + /** + * Statement table_name. + * @member {string} table_name + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.table_name = ""; - /** - * BeginResponse session_state_changes. - * @member {string} session_state_changes - * @memberof query.BeginResponse - * @instance - */ - BeginResponse.prototype.session_state_changes = ""; + /** + * Statement primary_key_fields. + * @member {Array.} primary_key_fields + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.primary_key_fields = $util.emptyArray; - /** - * Creates a new BeginResponse instance using the specified properties. - * @function create - * @memberof query.BeginResponse - * @static - * @param {query.IBeginResponse=} [properties] Properties to set - * @returns {query.BeginResponse} BeginResponse instance - */ - BeginResponse.create = function create(properties) { - return new BeginResponse(properties); - }; + /** + * Statement primary_key_values. + * @member {Array.} primary_key_values + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.primary_key_values = $util.emptyArray; - /** - * 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 - */ - BeginResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.transaction_id); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.session_state_changes); - return writer; - }; + /** + * Statement sql. + * @member {Uint8Array} sql + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.sql = $util.newBuffer([]); - /** - * Encodes the specified BeginResponse message, length delimited. Does not implicitly {@link query.BeginResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof query.BeginResponse - * @static - * @param {query.IBeginResponse} message BeginResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BeginResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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); + }; - /** - * Decodes a BeginResponse message from the specified reader or buffer. - * @function decode - * @memberof query.BeginResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {query.BeginResponse} BeginResponse - * @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) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.transaction_id = reader.int64(); + /** + * 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 (let 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 (let 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); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamEvent.Statement(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.category = reader.int32(); + break; + } + case 2: { + message.table_name = reader.string(); + break; + } + case 3: { + if (!(message.primary_key_fields && message.primary_key_fields.length)) + message.primary_key_fields = []; + message.primary_key_fields.push($root.query.Field.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.primary_key_values && message.primary_key_values.length)) + message.primary_key_values = []; + message.primary_key_values.push($root.query.Row.decode(reader, reader.uint32())); + break; + } + case 5: { + message.sql = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); break; } - case 2: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + } + 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; } - case 3: { - message.session_state_changes = reader.string(); - 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 (let i = 0; i < message.primary_key_fields.length; ++i) { + let 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 (let i = 0; i < message.primary_key_values.length; ++i) { + let 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; + let message = new $root.query.StreamEvent.Statement(); + switch (object.category) { default: - reader.skipType(tag & 7); + if (typeof object.category === "number") { + message.category = object.category; + break; + } + break; + case "Error": + case 0: + message.category = 0; + break; + case "DML": + case 1: + message.category = 1; + break; + case "DDL": + case 2: + message.category = 2; break; } - } - return message; - }; - - /** - * Decodes a BeginResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.BeginResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - BeginResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BeginResponse message. - * @function verify - * @memberof query.BeginResponse - * @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) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let 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; - }; + 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 (let 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 (let 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 >= 0) + message.sql = object.sql; + return message; + }; - /** - * Creates a BeginResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof query.BeginResponse - * @static - * @param {Object.} object Plain object - * @returns {query.BeginResponse} BeginResponse - */ - BeginResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginResponse) + /** + * 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 = {}; + let 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] === undefined ? message.category : $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 (let 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 (let 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; - let message = new $root.query.BeginResponse(); - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.BeginResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.session_state_changes != null) - message.session_state_changes = String(object.session_state_changes); - return message; - }; + }; - /** - * Creates a plain object from a BeginResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof query.BeginResponse - * @static - * @param {query.BeginResponse} message BeginResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BeginResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - object.tablet_alias = null; - object.session_state_changes = ""; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - object.session_state_changes = message.session_state_changes; - return object; - }; + /** + * Converts this 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 BeginResponse to JSON. - * @function toJSON - * @memberof query.BeginResponse - * @instance - * @returns {Object.} JSON object - */ - BeginResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for Statement + * @function getTypeUrl + * @memberof query.StreamEvent.Statement + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Statement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/query.StreamEvent.Statement"; + }; - /** - * Gets the default type url for BeginResponse - * @function getTypeUrl - * @memberof query.BeginResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - BeginResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/query.BeginResponse"; - }; + /** + * 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() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "Error"] = 0; + values[valuesById[1] = "DML"] = 1; + values[valuesById[2] = "DDL"] = 2; + return values; + })(); - return BeginResponse; + return Statement; + })(); + + return StreamEvent; })(); - query.CommitRequest = (function() { + query.ExecuteRequest = (function() { /** - * Properties of a CommitRequest. + * Properties of an ExecuteRequest. * @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 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 CommitRequest. + * Constructs a new ExecuteRequest. * @memberof query - * @classdesc Represents a CommitRequest. - * @implements ICommitRequest + * @classdesc Represents an ExecuteRequest. + * @implements IExecuteRequest * @constructor - * @param {query.ICommitRequest=} [properties] Properties to set + * @param {query.IExecuteRequest=} [properties] Properties to set */ - function CommitRequest(properties) { + function ExecuteRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102979,59 +103362,83 @@ export const query = $root.query = (() => { } /** - * CommitRequest effective_caller_id. + * ExecuteRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.CommitRequest + * @memberof query.ExecuteRequest * @instance */ - CommitRequest.prototype.effective_caller_id = null; + ExecuteRequest.prototype.effective_caller_id = null; /** - * CommitRequest immediate_caller_id. + * ExecuteRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.CommitRequest + * @memberof query.ExecuteRequest * @instance */ - CommitRequest.prototype.immediate_caller_id = null; + ExecuteRequest.prototype.immediate_caller_id = null; /** - * CommitRequest target. + * ExecuteRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.CommitRequest + * @memberof query.ExecuteRequest * @instance */ - CommitRequest.prototype.target = null; + ExecuteRequest.prototype.target = null; /** - * CommitRequest transaction_id. + * ExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.ExecuteRequest + * @instance + */ + ExecuteRequest.prototype.query = null; + + /** + * ExecuteRequest transaction_id. * @member {number|Long} transaction_id - * @memberof query.CommitRequest + * @memberof query.ExecuteRequest * @instance */ - CommitRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new CommitRequest instance using the specified properties. + * ExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.ExecuteRequest + * @instance + */ + ExecuteRequest.prototype.options = null; + + /** + * ExecuteRequest reserved_id. + * @member {number|Long} reserved_id + * @memberof query.ExecuteRequest + * @instance + */ + ExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new ExecuteRequest instance using the specified properties. * @function create - * @memberof query.CommitRequest + * @memberof query.ExecuteRequest * @static - * @param {query.ICommitRequest=} [properties] Properties to set - * @returns {query.CommitRequest} CommitRequest instance + * @param {query.IExecuteRequest=} [properties] Properties to set + * @returns {query.ExecuteRequest} ExecuteRequest instance */ - CommitRequest.create = function create(properties) { - return new CommitRequest(properties); + ExecuteRequest.create = function create(properties) { + return new ExecuteRequest(properties); }; /** - * Encodes the specified CommitRequest message. Does not implicitly {@link query.CommitRequest.verify|verify} messages. + * Encodes the specified ExecuteRequest message. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.CommitRequest + * @memberof query.ExecuteRequest * @static - * @param {query.ICommitRequest} message CommitRequest 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 */ - CommitRequest.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")) @@ -103040,39 +103447,45 @@ export const query = $root.query = (() => { $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 4, wireType 0 =*/32).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 CommitRequest message, length delimited. Does not implicitly {@link query.CommitRequest.verify|verify} messages. + * Encodes the specified ExecuteRequest message, length delimited. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.CommitRequest + * @memberof query.ExecuteRequest * @static - * @param {query.ICommitRequest} message CommitRequest 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 */ - CommitRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommitRequest message from the specified reader or buffer. + * Decodes an ExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.CommitRequest + * @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.CommitRequest} CommitRequest + * @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 */ - CommitRequest.decode = function decode(reader, length) { + ExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -103089,9 +103502,21 @@ export const query = $root.query = (() => { break; } case 4: { + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + break; + } + case 5: { message.transaction_id = reader.int64(); break; } + case 6: { + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + break; + } + case 7: { + message.reserved_id = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -103101,30 +103526,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a CommitRequest 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.CommitRequest + * @memberof query.ExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CommitRequest} CommitRequest + * @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 */ - CommitRequest.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 CommitRequest message. + * Verifies an ExecuteRequest message. * @function verify - * @memberof query.CommitRequest + * @memberof query.ExecuteRequest * @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) { + 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")) { @@ -103142,39 +103567,57 @@ export const query = $root.query = (() => { if (error) return "target." + error; } + if (message.query != null && message.hasOwnProperty("query")) { + let 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")) { + let error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; return null; }; /** - * Creates a CommitRequest 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.CommitRequest + * @memberof query.ExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.CommitRequest} CommitRequest + * @returns {query.ExecuteRequest} ExecuteRequest */ - CommitRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.CommitRequest) + ExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ExecuteRequest) return object; - let message = new $root.query.CommitRequest(); + let message = new $root.query.ExecuteRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.CommitRequest.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.CommitRequest.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.CommitRequest.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.ExecuteRequest.query: object expected"); + message.query = $root.query.BoundQuery.fromObject(object.query); + } if (object.transaction_id != null) if ($util.Long) (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; @@ -103184,19 +103627,33 @@ export const query = $root.query = (() => { message.transaction_id = object.transaction_id; else if (typeof object.transaction_id === "object") message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.ExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a CommitRequest 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.CommitRequest + * @memberof query.ExecuteRequest * @static - * @param {query.CommitRequest} message CommitRequest + * @param {query.ExecuteRequest} message ExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CommitRequest.toObject = function toObject(message, options) { + ExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -103204,11 +103661,18 @@ export const query = $root.query = (() => { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; + object.query = null; if ($util.Long) { let 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) { + let 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); @@ -103216,61 +103680,70 @@ export const query = $root.query = (() => { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); + if (message.query != null && message.hasOwnProperty("query")) + object.query = $root.query.BoundQuery.toObject(message.query, options); if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) if (typeof message.transaction_id === "number") object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; else object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; return object; }; /** - * Converts this CommitRequest to JSON. + * Converts this ExecuteRequest to JSON. * @function toJSON - * @memberof query.CommitRequest + * @memberof query.ExecuteRequest * @instance * @returns {Object.} JSON object */ - CommitRequest.prototype.toJSON = function toJSON() { + ExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CommitRequest + * Gets the default type url for ExecuteRequest * @function getTypeUrl - * @memberof query.CommitRequest + * @memberof query.ExecuteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CommitRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.CommitRequest"; + return typeUrlPrefix + "/query.ExecuteRequest"; }; - return CommitRequest; + return ExecuteRequest; })(); - query.CommitResponse = (function() { + query.ExecuteResponse = (function() { /** - * Properties of a CommitResponse. + * Properties of an ExecuteResponse. * @memberof query - * @interface ICommitResponse - * @property {number|Long|null} [reserved_id] CommitResponse reserved_id + * @interface IExecuteResponse + * @property {query.IQueryResult|null} [result] ExecuteResponse result */ /** - * Constructs a new CommitResponse. + * Constructs a new ExecuteResponse. * @memberof query - * @classdesc Represents a CommitResponse. - * @implements ICommitResponse + * @classdesc Represents an ExecuteResponse. + * @implements IExecuteResponse * @constructor - * @param {query.ICommitResponse=} [properties] Properties to set + * @param {query.IExecuteResponse=} [properties] Properties to set */ - function CommitResponse(properties) { + function ExecuteResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103278,75 +103751,75 @@ export const query = $root.query = (() => { } /** - * CommitResponse reserved_id. - * @member {number|Long} reserved_id - * @memberof query.CommitResponse + * ExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.ExecuteResponse * @instance */ - CommitResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ExecuteResponse.prototype.result = null; /** - * Creates a new CommitResponse instance using the specified properties. + * Creates a new ExecuteResponse instance using the specified properties. * @function create - * @memberof query.CommitResponse + * @memberof query.ExecuteResponse * @static - * @param {query.ICommitResponse=} [properties] Properties to set - * @returns {query.CommitResponse} CommitResponse instance + * @param {query.IExecuteResponse=} [properties] Properties to set + * @returns {query.ExecuteResponse} ExecuteResponse instance */ - CommitResponse.create = function create(properties) { - return new CommitResponse(properties); + ExecuteResponse.create = function create(properties) { + return new ExecuteResponse(properties); }; /** - * Encodes the specified CommitResponse message. Does not implicitly {@link query.CommitResponse.verify|verify} messages. + * Encodes the specified ExecuteResponse message. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.CommitResponse + * @memberof query.ExecuteResponse * @static - * @param {query.ICommitResponse} message CommitResponse 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 */ - CommitResponse.encode = function encode(message, writer) { + ExecuteResponse.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.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 CommitResponse message, length delimited. Does not implicitly {@link query.CommitResponse.verify|verify} messages. + * Encodes the specified ExecuteResponse message, length delimited. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.CommitResponse + * @memberof query.ExecuteResponse * @static - * @param {query.ICommitResponse} message CommitResponse 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 */ - CommitResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommitResponse message from the specified reader or buffer. + * Decodes an ExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.CommitResponse + * @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.CommitResponse} CommitResponse + * @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 */ - CommitResponse.decode = function decode(reader, length) { + ExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.reserved_id = reader.int64(); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; } default: @@ -103358,139 +103831,128 @@ export const query = $root.query = (() => { }; /** - * Decodes a CommitResponse 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.CommitResponse + * @memberof query.ExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CommitResponse} CommitResponse + * @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 */ - CommitResponse.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 CommitResponse message. + * Verifies an ExecuteResponse message. * @function verify - * @memberof query.CommitResponse + * @memberof query.ExecuteResponse * @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) { + ExecuteResponse.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.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } return null; }; /** - * Creates a CommitResponse 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.CommitResponse + * @memberof query.ExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.CommitResponse} CommitResponse + * @returns {query.ExecuteResponse} ExecuteResponse */ - CommitResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.CommitResponse) + ExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ExecuteResponse) return object; - let 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(); + let 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; }; /** - * Creates a plain object from a CommitResponse 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.CommitResponse + * @memberof query.ExecuteResponse * @static - * @param {query.CommitResponse} message CommitResponse + * @param {query.ExecuteResponse} message ExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CommitResponse.toObject = function toObject(message, options) { + ExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - if ($util.Long) { - let 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; + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this CommitResponse to JSON. + * Converts this ExecuteResponse to JSON. * @function toJSON - * @memberof query.CommitResponse + * @memberof query.ExecuteResponse * @instance * @returns {Object.} JSON object */ - CommitResponse.prototype.toJSON = function toJSON() { + ExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CommitResponse + * Gets the default type url for ExecuteResponse * @function getTypeUrl - * @memberof query.CommitResponse + * @memberof query.ExecuteResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CommitResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.CommitResponse"; + return typeUrlPrefix + "/query.ExecuteResponse"; }; - return CommitResponse; + return ExecuteResponse; })(); - query.RollbackRequest = (function() { + query.ResultWithError = (function() { /** - * Properties of a RollbackRequest. + * Properties of a ResultWithError. * @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 IResultWithError + * @property {vtrpc.IRPCError|null} [error] ResultWithError error + * @property {query.IQueryResult|null} [result] ResultWithError result */ /** - * Constructs a new RollbackRequest. + * Constructs a new ResultWithError. * @memberof query - * @classdesc Represents a RollbackRequest. - * @implements IRollbackRequest + * @classdesc Represents a ResultWithError. + * @implements IResultWithError * @constructor - * @param {query.IRollbackRequest=} [properties] Properties to set + * @param {query.IResultWithError=} [properties] Properties to set */ - function RollbackRequest(properties) { + function ResultWithError(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103498,117 +103960,89 @@ export const query = $root.query = (() => { } /** - * RollbackRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.RollbackRequest + * ResultWithError error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof query.ResultWithError * @instance */ - RollbackRequest.prototype.effective_caller_id = null; + ResultWithError.prototype.error = null; /** - * RollbackRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.RollbackRequest + * ResultWithError result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.ResultWithError * @instance */ - RollbackRequest.prototype.immediate_caller_id = null; + ResultWithError.prototype.result = 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. + * Creates a new ResultWithError instance using the specified properties. * @function create - * @memberof query.RollbackRequest + * @memberof query.ResultWithError * @static - * @param {query.IRollbackRequest=} [properties] Properties to set - * @returns {query.RollbackRequest} RollbackRequest instance + * @param {query.IResultWithError=} [properties] Properties to set + * @returns {query.ResultWithError} ResultWithError instance */ - RollbackRequest.create = function create(properties) { - return new RollbackRequest(properties); + ResultWithError.create = function create(properties) { + return new ResultWithError(properties); }; /** - * Encodes the specified RollbackRequest message. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. + * Encodes the specified ResultWithError message. Does not implicitly {@link query.ResultWithError.verify|verify} messages. * @function encode - * @memberof query.RollbackRequest + * @memberof query.ResultWithError * @static - * @param {query.IRollbackRequest} message RollbackRequest 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 */ - RollbackRequest.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.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); + 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 RollbackRequest message, length delimited. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. + * Encodes the specified ResultWithError message, length delimited. Does not implicitly {@link query.ResultWithError.verify|verify} messages. * @function encodeDelimited - * @memberof query.RollbackRequest + * @memberof query.ResultWithError * @static - * @param {query.IRollbackRequest} message RollbackRequest 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 */ - RollbackRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResultWithError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RollbackRequest message from the specified reader or buffer. + * Decodes a ResultWithError message from the specified reader or buffer. * @function decode - * @memberof query.RollbackRequest + * @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.RollbackRequest} RollbackRequest + * @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 */ - RollbackRequest.decode = function decode(reader, length) { + ResultWithError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ResultWithError(); while (reader.pos < end) { let 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.transaction_id = reader.int64(); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; } default: @@ -103620,176 +104054,147 @@ export const query = $root.query = (() => { }; /** - * Decodes a RollbackRequest 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.RollbackRequest + * @memberof query.ResultWithError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.RollbackRequest} RollbackRequest + * @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 */ - RollbackRequest.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 RollbackRequest message. + * Verifies a ResultWithError message. * @function verify - * @memberof query.RollbackRequest + * @memberof query.ResultWithError * @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) { + 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")) { - let 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")) { - let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (message.error != null && message.hasOwnProperty("error")) { + let error = $root.vtrpc.RPCError.verify(message.error); if (error) - return "immediate_caller_id." + error; + return "error." + error; } - if (message.target != null && message.hasOwnProperty("target")) { - let error = $root.query.Target.verify(message.target); + if (message.result != null && message.hasOwnProperty("result")) { + let 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 RollbackRequest 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.RollbackRequest + * @memberof query.ResultWithError * @static * @param {Object.} object Plain object - * @returns {query.RollbackRequest} RollbackRequest + * @returns {query.ResultWithError} ResultWithError */ - RollbackRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.RollbackRequest) + ResultWithError.fromObject = function fromObject(object) { + if (object instanceof $root.query.ResultWithError) return object; - let 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); + let 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.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.RollbackRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.ResultWithError.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 RollbackRequest 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.RollbackRequest + * @memberof query.ResultWithError * @static - * @param {query.RollbackRequest} message RollbackRequest + * @param {query.ResultWithError} message ResultWithError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RollbackRequest.toObject = function toObject(message, options) { + ResultWithError.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - if ($util.Long) { - let 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.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.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.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 RollbackRequest to JSON. + * Converts this ResultWithError to JSON. * @function toJSON - * @memberof query.RollbackRequest + * @memberof query.ResultWithError * @instance * @returns {Object.} JSON object */ - RollbackRequest.prototype.toJSON = function toJSON() { + ResultWithError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RollbackRequest + * Gets the default type url for ResultWithError * @function getTypeUrl - * @memberof query.RollbackRequest + * @memberof query.ResultWithError * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RollbackRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResultWithError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.RollbackRequest"; + return typeUrlPrefix + "/query.ResultWithError"; }; - return RollbackRequest; + return ResultWithError; })(); - query.RollbackResponse = (function() { + query.StreamExecuteRequest = (function() { /** - * Properties of a RollbackResponse. + * Properties of a StreamExecuteRequest. * @memberof query - * @interface IRollbackResponse - * @property {number|Long|null} [reserved_id] RollbackResponse reserved_id + * @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 RollbackResponse. + * Constructs a new StreamExecuteRequest. * @memberof query - * @classdesc Represents a RollbackResponse. - * @implements IRollbackResponse + * @classdesc Represents a StreamExecuteRequest. + * @implements IStreamExecuteRequest * @constructor - * @param {query.IRollbackResponse=} [properties] Properties to set + * @param {query.IStreamExecuteRequest=} [properties] Properties to set */ - function RollbackResponse(properties) { + function StreamExecuteRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103797,288 +104202,83 @@ export const query = $root.query = (() => { } /** - * RollbackResponse reserved_id. - * @member {number|Long} reserved_id - * @memberof query.RollbackResponse + * StreamExecuteRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.StreamExecuteRequest * @instance */ - RollbackResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new RollbackResponse instance using the specified properties. - * @function create - * @memberof query.RollbackResponse - * @static - * @param {query.IRollbackResponse=} [properties] Properties to set - * @returns {query.RollbackResponse} RollbackResponse instance - */ - RollbackResponse.create = function create(properties) { - return new RollbackResponse(properties); - }; - - /** - * Encodes the specified RollbackResponse message. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. - * @function encode - * @memberof query.RollbackResponse - * @static - * @param {query.IRollbackResponse} message RollbackResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RollbackResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.reserved_id); - return writer; - }; - - /** - * Encodes the specified RollbackResponse message, length delimited. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof query.RollbackResponse - * @static - * @param {query.IRollbackResponse} message RollbackResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RollbackResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RollbackResponse message from the specified reader or buffer. - * @function decode - * @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.RollbackResponse} RollbackResponse - * @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) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.reserved_id = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RollbackResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.RollbackResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - RollbackResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RollbackResponse message. - * @function verify - * @memberof query.RollbackResponse - * @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) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; - return null; - }; - - /** - * Creates a RollbackResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof query.RollbackResponse - * @static - * @param {Object.} object Plain object - * @returns {query.RollbackResponse} RollbackResponse - */ - RollbackResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.RollbackResponse) - return object; - let 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 RollbackResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof query.RollbackResponse - * @static - * @param {query.RollbackResponse} message RollbackResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RollbackResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - if ($util.Long) { - let 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; - }; + StreamExecuteRequest.prototype.effective_caller_id = null; /** - * Converts this RollbackResponse to JSON. - * @function toJSON - * @memberof query.RollbackResponse + * StreamExecuteRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.StreamExecuteRequest * @instance - * @returns {Object.} JSON object - */ - RollbackResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RollbackResponse - * @function getTypeUrl - * @memberof query.RollbackResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RollbackResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/query.RollbackResponse"; - }; - - return RollbackResponse; - })(); - - query.PrepareRequest = (function() { - - /** - * Properties of a PrepareRequest. - * @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 - */ - - /** - * Constructs a new PrepareRequest. - * @memberof query - * @classdesc Represents a PrepareRequest. - * @implements IPrepareRequest - * @constructor - * @param {query.IPrepareRequest=} [properties] Properties to set */ - function PrepareRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + StreamExecuteRequest.prototype.immediate_caller_id = null; /** - * PrepareRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.PrepareRequest + * StreamExecuteRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.StreamExecuteRequest * @instance */ - PrepareRequest.prototype.effective_caller_id = null; + StreamExecuteRequest.prototype.target = null; /** - * PrepareRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.PrepareRequest + * StreamExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.StreamExecuteRequest * @instance */ - PrepareRequest.prototype.immediate_caller_id = null; + StreamExecuteRequest.prototype.query = null; /** - * PrepareRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.PrepareRequest + * StreamExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.StreamExecuteRequest * @instance */ - PrepareRequest.prototype.target = null; + StreamExecuteRequest.prototype.options = null; /** - * PrepareRequest transaction_id. + * StreamExecuteRequest transaction_id. * @member {number|Long} transaction_id - * @memberof query.PrepareRequest + * @memberof query.StreamExecuteRequest * @instance */ - PrepareRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StreamExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * PrepareRequest dtid. - * @member {string} dtid - * @memberof query.PrepareRequest + * StreamExecuteRequest reserved_id. + * @member {number|Long} reserved_id + * @memberof query.StreamExecuteRequest * @instance */ - PrepareRequest.prototype.dtid = ""; + StreamExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new PrepareRequest instance using the specified properties. + * Creates a new StreamExecuteRequest instance using the specified properties. * @function create - * @memberof query.PrepareRequest + * @memberof query.StreamExecuteRequest * @static - * @param {query.IPrepareRequest=} [properties] Properties to set - * @returns {query.PrepareRequest} PrepareRequest instance + * @param {query.IStreamExecuteRequest=} [properties] Properties to set + * @returns {query.StreamExecuteRequest} StreamExecuteRequest instance */ - PrepareRequest.create = function create(properties) { - return new PrepareRequest(properties); + StreamExecuteRequest.create = function create(properties) { + return new StreamExecuteRequest(properties); }; /** - * Encodes the specified PrepareRequest message. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. + * Encodes the specified StreamExecuteRequest message. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.PrepareRequest + * @memberof query.StreamExecuteRequest * @static - * @param {query.IPrepareRequest} message PrepareRequest 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 */ - PrepareRequest.encode = function encode(message, writer) { + StreamExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -104087,41 +104287,45 @@ export const query = $root.query = (() => { $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 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); + 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 PrepareRequest message, length delimited. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. + * Encodes the specified StreamExecuteRequest message, length delimited. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.PrepareRequest + * @memberof query.StreamExecuteRequest * @static - * @param {query.IPrepareRequest} message PrepareRequest 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 */ - PrepareRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrepareRequest message from the specified reader or buffer. + * Decodes a StreamExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.PrepareRequest + * @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.PrepareRequest} PrepareRequest + * @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 */ - PrepareRequest.decode = function decode(reader, length) { + StreamExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.PrepareRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamExecuteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -104138,11 +104342,19 @@ export const query = $root.query = (() => { break; } case 4: { - message.transaction_id = reader.int64(); + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); break; } case 5: { - message.dtid = reader.string(); + 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: @@ -104154,30 +104366,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a PrepareRequest 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.PrepareRequest + * @memberof query.StreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.PrepareRequest} PrepareRequest + * @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 */ - PrepareRequest.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 PrepareRequest message. + * Verifies a StreamExecuteRequest message. * @function verify - * @memberof query.PrepareRequest + * @memberof query.StreamExecuteRequest * @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) { + 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")) { @@ -104195,42 +104407,62 @@ export const query = $root.query = (() => { if (error) return "target." + error; } + if (message.query != null && message.hasOwnProperty("query")) { + let error = $root.query.BoundQuery.verify(message.query); + if (error) + return "query." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + let 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.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 StreamExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.PrepareRequest + * @memberof query.StreamExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.PrepareRequest} PrepareRequest + * @returns {query.StreamExecuteRequest} StreamExecuteRequest */ - PrepareRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.PrepareRequest) + StreamExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamExecuteRequest) return object; - let message = new $root.query.PrepareRequest(); + let message = new $root.query.StreamExecuteRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.PrepareRequest.effective_caller_id: object expected"); + throw TypeError(".query.StreamExecuteRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.PrepareRequest.immediate_caller_id: object expected"); + throw TypeError(".query.StreamExecuteRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.PrepareRequest.target: object expected"); + 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; @@ -104240,21 +104472,28 @@ export const query = $root.query = (() => { message.transaction_id = object.transaction_id; else if (typeof object.transaction_id === "object") message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.dtid != null) - message.dtid = String(object.dtid); + if (object.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 PrepareRequest 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.PrepareRequest + * @memberof query.StreamExecuteRequest * @static - * @param {query.PrepareRequest} message PrepareRequest + * @param {query.StreamExecuteRequest} message StreamExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrepareRequest.toObject = function toObject(message, options) { + StreamExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -104262,12 +104501,18 @@ export const query = $root.query = (() => { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; + object.query = null; + object.options = null; if ($util.Long) { let 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 ($util.Long) { + let 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); @@ -104275,62 +104520,70 @@ export const query = $root.query = (() => { 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.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; + 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 PrepareRequest to JSON. + * Converts this StreamExecuteRequest to JSON. * @function toJSON - * @memberof query.PrepareRequest + * @memberof query.StreamExecuteRequest * @instance * @returns {Object.} JSON object */ - PrepareRequest.prototype.toJSON = function toJSON() { + StreamExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrepareRequest + * Gets the default type url for StreamExecuteRequest * @function getTypeUrl - * @memberof query.PrepareRequest + * @memberof query.StreamExecuteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrepareRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.PrepareRequest"; + return typeUrlPrefix + "/query.StreamExecuteRequest"; }; - return PrepareRequest; + return StreamExecuteRequest; })(); - query.PrepareResponse = (function() { + query.StreamExecuteResponse = (function() { /** - * Properties of a PrepareResponse. + * Properties of a StreamExecuteResponse. * @memberof query - * @interface IPrepareResponse + * @interface IStreamExecuteResponse + * @property {query.IQueryResult|null} [result] StreamExecuteResponse result */ /** - * Constructs a new PrepareResponse. + * Constructs a new StreamExecuteResponse. * @memberof query - * @classdesc Represents a PrepareResponse. - * @implements IPrepareResponse + * @classdesc Represents a StreamExecuteResponse. + * @implements IStreamExecuteResponse * @constructor - * @param {query.IPrepareResponse=} [properties] Properties to set + * @param {query.IStreamExecuteResponse=} [properties] Properties to set */ - function PrepareResponse(properties) { + function StreamExecuteResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104338,63 +104591,77 @@ export const query = $root.query = (() => { } /** - * Creates a new PrepareResponse instance using the specified properties. + * StreamExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.StreamExecuteResponse + * @instance + */ + StreamExecuteResponse.prototype.result = null; + + /** + * Creates a new StreamExecuteResponse instance using the specified properties. * @function create - * @memberof query.PrepareResponse + * @memberof query.StreamExecuteResponse * @static - * @param {query.IPrepareResponse=} [properties] Properties to set - * @returns {query.PrepareResponse} PrepareResponse instance + * @param {query.IStreamExecuteResponse=} [properties] Properties to set + * @returns {query.StreamExecuteResponse} StreamExecuteResponse instance */ - PrepareResponse.create = function create(properties) { - return new PrepareResponse(properties); + StreamExecuteResponse.create = function create(properties) { + return new StreamExecuteResponse(properties); }; /** - * Encodes the specified PrepareResponse message. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. + * Encodes the specified StreamExecuteResponse message. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.PrepareResponse + * @memberof query.StreamExecuteResponse * @static - * @param {query.IPrepareResponse} message PrepareResponse 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 */ - PrepareResponse.encode = function encode(message, writer) { + StreamExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified PrepareResponse message, length delimited. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. + * Encodes the specified StreamExecuteResponse message, length delimited. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.PrepareResponse + * @memberof query.StreamExecuteResponse * @static - * @param {query.IPrepareResponse} message PrepareResponse 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 */ - PrepareResponse.encodeDelimited = function encodeDelimited(message, writer) { + StreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrepareResponse message from the specified reader or buffer. + * Decodes a StreamExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.PrepareResponse + * @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.PrepareResponse} PrepareResponse + * @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 */ - PrepareResponse.decode = function decode(reader, length) { + StreamExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.PrepareResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamExecuteResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -104404,112 +104671,130 @@ export const query = $root.query = (() => { }; /** - * Decodes a PrepareResponse 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.PrepareResponse + * @memberof query.StreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.PrepareResponse} PrepareResponse + * @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 */ - PrepareResponse.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 PrepareResponse message. + * Verifies a StreamExecuteResponse message. * @function verify - * @memberof query.PrepareResponse + * @memberof query.StreamExecuteResponse * @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) { + StreamExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } return null; }; /** - * Creates a PrepareResponse 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.PrepareResponse + * @memberof query.StreamExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.PrepareResponse} PrepareResponse + * @returns {query.StreamExecuteResponse} StreamExecuteResponse */ - PrepareResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.PrepareResponse) + StreamExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamExecuteResponse) return object; - return new $root.query.PrepareResponse(); + let message = new $root.query.StreamExecuteResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.StreamExecuteResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + return message; }; /** - * Creates a plain object from a PrepareResponse 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.PrepareResponse + * @memberof query.StreamExecuteResponse * @static - * @param {query.PrepareResponse} message PrepareResponse + * @param {query.StreamExecuteResponse} message StreamExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrepareResponse.toObject = function toObject() { - return {}; + StreamExecuteResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); + return object; }; /** - * Converts this PrepareResponse to JSON. + * Converts this StreamExecuteResponse to JSON. * @function toJSON - * @memberof query.PrepareResponse + * @memberof query.StreamExecuteResponse * @instance * @returns {Object.} JSON object */ - PrepareResponse.prototype.toJSON = function toJSON() { + StreamExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrepareResponse + * Gets the default type url for StreamExecuteResponse * @function getTypeUrl - * @memberof query.PrepareResponse + * @memberof query.StreamExecuteResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrepareResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.PrepareResponse"; + return typeUrlPrefix + "/query.StreamExecuteResponse"; }; - return PrepareResponse; + return StreamExecuteResponse; })(); - query.CommitPreparedRequest = (function() { + query.BeginRequest = (function() { /** - * Properties of a CommitPreparedRequest. + * Properties of a BeginRequest. * @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 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 CommitPreparedRequest. + * Constructs a new BeginRequest. * @memberof query - * @classdesc Represents a CommitPreparedRequest. - * @implements ICommitPreparedRequest + * @classdesc Represents a BeginRequest. + * @implements IBeginRequest * @constructor - * @param {query.ICommitPreparedRequest=} [properties] Properties to set + * @param {query.IBeginRequest=} [properties] Properties to set */ - function CommitPreparedRequest(properties) { + function BeginRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104517,59 +104802,59 @@ export const query = $root.query = (() => { } /** - * CommitPreparedRequest effective_caller_id. + * BeginRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.CommitPreparedRequest + * @memberof query.BeginRequest * @instance */ - CommitPreparedRequest.prototype.effective_caller_id = null; + BeginRequest.prototype.effective_caller_id = null; /** - * CommitPreparedRequest immediate_caller_id. + * BeginRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.CommitPreparedRequest + * @memberof query.BeginRequest * @instance */ - CommitPreparedRequest.prototype.immediate_caller_id = null; + BeginRequest.prototype.immediate_caller_id = null; /** - * CommitPreparedRequest target. + * BeginRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.CommitPreparedRequest + * @memberof query.BeginRequest * @instance */ - CommitPreparedRequest.prototype.target = null; + BeginRequest.prototype.target = null; /** - * CommitPreparedRequest dtid. - * @member {string} dtid - * @memberof query.CommitPreparedRequest + * BeginRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.BeginRequest * @instance */ - CommitPreparedRequest.prototype.dtid = ""; + BeginRequest.prototype.options = null; /** - * Creates a new CommitPreparedRequest instance using the specified properties. + * Creates a new BeginRequest instance using the specified properties. * @function create - * @memberof query.CommitPreparedRequest + * @memberof query.BeginRequest * @static - * @param {query.ICommitPreparedRequest=} [properties] Properties to set - * @returns {query.CommitPreparedRequest} CommitPreparedRequest instance + * @param {query.IBeginRequest=} [properties] Properties to set + * @returns {query.BeginRequest} BeginRequest instance */ - CommitPreparedRequest.create = function create(properties) { - return new CommitPreparedRequest(properties); + BeginRequest.create = function create(properties) { + return new BeginRequest(properties); }; /** - * Encodes the specified CommitPreparedRequest message. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. + * Encodes the specified BeginRequest message. Does not implicitly {@link query.BeginRequest.verify|verify} messages. * @function encode - * @memberof query.CommitPreparedRequest + * @memberof query.BeginRequest * @static - * @param {query.ICommitPreparedRequest} message CommitPreparedRequest 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 */ - CommitPreparedRequest.encode = function encode(message, writer) { + BeginRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -104578,39 +104863,39 @@ export const query = $root.query = (() => { $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.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 CommitPreparedRequest message, length delimited. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. + * Encodes the specified BeginRequest message, length delimited. Does not implicitly {@link query.BeginRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.CommitPreparedRequest + * @memberof query.BeginRequest * @static - * @param {query.ICommitPreparedRequest} message CommitPreparedRequest 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 */ - CommitPreparedRequest.encodeDelimited = function encodeDelimited(message, writer) { + BeginRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommitPreparedRequest message from the specified reader or buffer. + * Decodes a BeginRequest message from the specified reader or buffer. * @function decode - * @memberof query.CommitPreparedRequest + * @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.CommitPreparedRequest} CommitPreparedRequest + * @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 */ - CommitPreparedRequest.decode = function decode(reader, length) { + BeginRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitPreparedRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -104627,7 +104912,7 @@ export const query = $root.query = (() => { break; } case 4: { - message.dtid = reader.string(); + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); break; } default: @@ -104639,30 +104924,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a CommitPreparedRequest 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.CommitPreparedRequest + * @memberof query.BeginRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CommitPreparedRequest} CommitPreparedRequest + * @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 */ - CommitPreparedRequest.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 CommitPreparedRequest message. + * Verifies a BeginRequest message. * @function verify - * @memberof query.CommitPreparedRequest + * @memberof query.BeginRequest * @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) { + BeginRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -104680,54 +104965,59 @@ export const query = $root.query = (() => { if (error) return "target." + error; } - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; + } return null; }; /** - * Creates a CommitPreparedRequest 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.CommitPreparedRequest + * @memberof query.BeginRequest * @static * @param {Object.} object Plain object - * @returns {query.CommitPreparedRequest} CommitPreparedRequest + * @returns {query.BeginRequest} BeginRequest */ - CommitPreparedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.CommitPreparedRequest) + BeginRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginRequest) return object; - let message = new $root.query.CommitPreparedRequest(); + let message = new $root.query.BeginRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.CommitPreparedRequest.effective_caller_id: object expected"); + throw TypeError(".query.BeginRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.CommitPreparedRequest.immediate_caller_id: object expected"); + throw TypeError(".query.BeginRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.CommitPreparedRequest.target: object expected"); + throw TypeError(".query.BeginRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.dtid != null) - message.dtid = String(object.dtid); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.BeginRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } return message; }; /** - * Creates a plain object from a CommitPreparedRequest 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.CommitPreparedRequest + * @memberof query.BeginRequest * @static - * @param {query.CommitPreparedRequest} message CommitPreparedRequest + * @param {query.BeginRequest} message BeginRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CommitPreparedRequest.toObject = function toObject(message, options) { + BeginRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -104735,7 +105025,7 @@ export const query = $root.query = (() => { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.dtid = ""; + object.options = null; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -104743,57 +105033,60 @@ export const query = $root.query = (() => { 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.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); return object; }; /** - * Converts this CommitPreparedRequest to JSON. + * Converts this BeginRequest to JSON. * @function toJSON - * @memberof query.CommitPreparedRequest + * @memberof query.BeginRequest * @instance * @returns {Object.} JSON object */ - CommitPreparedRequest.prototype.toJSON = function toJSON() { + BeginRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CommitPreparedRequest + * Gets the default type url for BeginRequest * @function getTypeUrl - * @memberof query.CommitPreparedRequest + * @memberof query.BeginRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CommitPreparedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BeginRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.CommitPreparedRequest"; + return typeUrlPrefix + "/query.BeginRequest"; }; - return CommitPreparedRequest; + return BeginRequest; })(); - query.CommitPreparedResponse = (function() { + query.BeginResponse = (function() { /** - * Properties of a CommitPreparedResponse. + * Properties of a BeginResponse. * @memberof query - * @interface ICommitPreparedResponse + * @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 CommitPreparedResponse. + * Constructs a new BeginResponse. * @memberof query - * @classdesc Represents a CommitPreparedResponse. - * @implements ICommitPreparedResponse + * @classdesc Represents a BeginResponse. + * @implements IBeginResponse * @constructor - * @param {query.ICommitPreparedResponse=} [properties] Properties to set + * @param {query.IBeginResponse=} [properties] Properties to set */ - function CommitPreparedResponse(properties) { + function BeginResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104801,63 +105094,105 @@ export const query = $root.query = (() => { } /** - * Creates a new CommitPreparedResponse instance using the specified properties. + * BeginResponse transaction_id. + * @member {number|Long} transaction_id + * @memberof query.BeginResponse + * @instance + */ + BeginResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * BeginResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof query.BeginResponse + * @instance + */ + BeginResponse.prototype.tablet_alias = null; + + /** + * BeginResponse session_state_changes. + * @member {string} session_state_changes + * @memberof query.BeginResponse + * @instance + */ + BeginResponse.prototype.session_state_changes = ""; + + /** + * Creates a new BeginResponse instance using the specified properties. * @function create - * @memberof query.CommitPreparedResponse + * @memberof query.BeginResponse * @static - * @param {query.ICommitPreparedResponse=} [properties] Properties to set - * @returns {query.CommitPreparedResponse} CommitPreparedResponse instance + * @param {query.IBeginResponse=} [properties] Properties to set + * @returns {query.BeginResponse} BeginResponse instance */ - CommitPreparedResponse.create = function create(properties) { - return new CommitPreparedResponse(properties); + BeginResponse.create = function create(properties) { + return new BeginResponse(properties); }; /** - * Encodes the specified CommitPreparedResponse message. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. + * Encodes the specified BeginResponse message. Does not implicitly {@link query.BeginResponse.verify|verify} messages. * @function encode - * @memberof query.CommitPreparedResponse + * @memberof query.BeginResponse * @static - * @param {query.ICommitPreparedResponse} message CommitPreparedResponse 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 */ - CommitPreparedResponse.encode = function encode(message, writer) { + BeginResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.transaction_id); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.session_state_changes); return writer; }; /** - * Encodes the specified CommitPreparedResponse message, length delimited. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. + * Encodes the specified BeginResponse message, length delimited. Does not implicitly {@link query.BeginResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.CommitPreparedResponse + * @memberof query.BeginResponse * @static - * @param {query.ICommitPreparedResponse} message CommitPreparedResponse 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 */ - CommitPreparedResponse.encodeDelimited = function encodeDelimited(message, writer) { + BeginResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommitPreparedResponse message from the specified reader or buffer. + * Decodes a BeginResponse message from the specified reader or buffer. * @function decode - * @memberof query.CommitPreparedResponse + * @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.CommitPreparedResponse} CommitPreparedResponse + * @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 */ - CommitPreparedResponse.decode = function decode(reader, length) { + BeginResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitPreparedResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.transaction_id = reader.int64(); + break; + } + case 2: { + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 3: { + message.session_state_changes = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -104867,113 +105202,161 @@ export const query = $root.query = (() => { }; /** - * Decodes a CommitPreparedResponse 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.CommitPreparedResponse + * @memberof query.BeginResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CommitPreparedResponse} CommitPreparedResponse + * @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 */ - CommitPreparedResponse.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 CommitPreparedResponse message. + * Verifies a BeginResponse message. * @function verify - * @memberof query.CommitPreparedResponse + * @memberof query.BeginResponse * @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) { + BeginResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let 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 CommitPreparedResponse 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.CommitPreparedResponse + * @memberof query.BeginResponse * @static * @param {Object.} object Plain object - * @returns {query.CommitPreparedResponse} CommitPreparedResponse + * @returns {query.BeginResponse} BeginResponse */ - CommitPreparedResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.CommitPreparedResponse) + BeginResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginResponse) return object; - return new $root.query.CommitPreparedResponse(); + let message = new $root.query.BeginResponse(); + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".query.BeginResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.session_state_changes != null) + message.session_state_changes = String(object.session_state_changes); + return message; }; /** - * Creates a plain object from a CommitPreparedResponse 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.CommitPreparedResponse + * @memberof query.BeginResponse * @static - * @param {query.CommitPreparedResponse} message CommitPreparedResponse + * @param {query.BeginResponse} message BeginResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CommitPreparedResponse.toObject = function toObject() { - return {}; + BeginResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + object.tablet_alias = null; + object.session_state_changes = ""; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + object.session_state_changes = message.session_state_changes; + return object; }; /** - * Converts this CommitPreparedResponse to JSON. + * Converts this BeginResponse to JSON. * @function toJSON - * @memberof query.CommitPreparedResponse + * @memberof query.BeginResponse * @instance * @returns {Object.} JSON object */ - CommitPreparedResponse.prototype.toJSON = function toJSON() { + BeginResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CommitPreparedResponse + * Gets the default type url for BeginResponse * @function getTypeUrl - * @memberof query.CommitPreparedResponse + * @memberof query.BeginResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CommitPreparedResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BeginResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.CommitPreparedResponse"; + return typeUrlPrefix + "/query.BeginResponse"; }; - return CommitPreparedResponse; + return BeginResponse; })(); - query.RollbackPreparedRequest = (function() { + query.CommitRequest = (function() { /** - * Properties of a RollbackPreparedRequest. + * Properties of a CommitRequest. * @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 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 RollbackPreparedRequest. + * Constructs a new CommitRequest. * @memberof query - * @classdesc Represents a RollbackPreparedRequest. - * @implements IRollbackPreparedRequest + * @classdesc Represents a CommitRequest. + * @implements ICommitRequest * @constructor - * @param {query.IRollbackPreparedRequest=} [properties] Properties to set + * @param {query.ICommitRequest=} [properties] Properties to set */ - function RollbackPreparedRequest(properties) { + function CommitRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104981,67 +105364,59 @@ export const query = $root.query = (() => { } /** - * RollbackPreparedRequest effective_caller_id. + * CommitRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.RollbackPreparedRequest + * @memberof query.CommitRequest * @instance */ - RollbackPreparedRequest.prototype.effective_caller_id = null; + CommitRequest.prototype.effective_caller_id = null; /** - * RollbackPreparedRequest immediate_caller_id. + * CommitRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.RollbackPreparedRequest + * @memberof query.CommitRequest * @instance */ - RollbackPreparedRequest.prototype.immediate_caller_id = null; + CommitRequest.prototype.immediate_caller_id = null; /** - * RollbackPreparedRequest target. + * CommitRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.RollbackPreparedRequest + * @memberof query.CommitRequest * @instance */ - RollbackPreparedRequest.prototype.target = null; + CommitRequest.prototype.target = null; /** - * RollbackPreparedRequest transaction_id. + * CommitRequest 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 + * @memberof query.CommitRequest * @instance */ - RollbackPreparedRequest.prototype.dtid = ""; + CommitRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new RollbackPreparedRequest instance using the specified properties. + * Creates a new CommitRequest instance using the specified properties. * @function create - * @memberof query.RollbackPreparedRequest + * @memberof query.CommitRequest * @static - * @param {query.IRollbackPreparedRequest=} [properties] Properties to set - * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest instance + * @param {query.ICommitRequest=} [properties] Properties to set + * @returns {query.CommitRequest} CommitRequest instance */ - RollbackPreparedRequest.create = function create(properties) { - return new RollbackPreparedRequest(properties); + CommitRequest.create = function create(properties) { + return new CommitRequest(properties); }; /** - * Encodes the specified RollbackPreparedRequest message. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. + * Encodes the specified CommitRequest message. Does not implicitly {@link query.CommitRequest.verify|verify} messages. * @function encode - * @memberof query.RollbackPreparedRequest + * @memberof query.CommitRequest * @static - * @param {query.IRollbackPreparedRequest} message RollbackPreparedRequest 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 */ - RollbackPreparedRequest.encode = function encode(message, writer) { + CommitRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -105052,39 +105427,37 @@ export const query = $root.query = (() => { $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 CommitRequest message, length delimited. Does not implicitly {@link query.CommitRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.RollbackPreparedRequest + * @memberof query.CommitRequest * @static - * @param {query.IRollbackPreparedRequest} message RollbackPreparedRequest 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 */ - RollbackPreparedRequest.encodeDelimited = function encodeDelimited(message, writer) { + CommitRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RollbackPreparedRequest message from the specified reader or buffer. + * Decodes a CommitRequest message from the specified reader or buffer. * @function decode - * @memberof query.RollbackPreparedRequest + * @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.RollbackPreparedRequest} RollbackPreparedRequest + * @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 */ - RollbackPreparedRequest.decode = function decode(reader, length) { + CommitRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackPreparedRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -105104,10 +105477,6 @@ export const query = $root.query = (() => { message.transaction_id = reader.int64(); break; } - case 5: { - message.dtid = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -105117,30 +105486,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a RollbackPreparedRequest 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.RollbackPreparedRequest + * @memberof query.CommitRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest + * @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 */ - RollbackPreparedRequest.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 RollbackPreparedRequest message. + * Verifies a CommitRequest message. * @function verify - * @memberof query.RollbackPreparedRequest + * @memberof query.CommitRequest * @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) { + CommitRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -105161,37 +105530,34 @@ export const query = $root.query = (() => { 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 CommitRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.RollbackPreparedRequest + * @memberof query.CommitRequest * @static * @param {Object.} object Plain object - * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest + * @returns {query.CommitRequest} CommitRequest */ - RollbackPreparedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.RollbackPreparedRequest) + CommitRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.CommitRequest) return object; - let message = new $root.query.RollbackPreparedRequest(); + let message = new $root.query.CommitRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.RollbackPreparedRequest.effective_caller_id: object expected"); + throw TypeError(".query.CommitRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.RollbackPreparedRequest.immediate_caller_id: object expected"); + throw TypeError(".query.CommitRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.RollbackPreparedRequest.target: object expected"); + throw TypeError(".query.CommitRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } if (object.transaction_id != null) @@ -105203,21 +105569,19 @@ export const query = $root.query = (() => { message.transaction_id = object.transaction_id; else if (typeof object.transaction_id === "object") message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.dtid != null) - message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from a RollbackPreparedRequest message. Also converts values to other types if specified. + * Creates a plain object from a CommitRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.RollbackPreparedRequest + * @memberof query.CommitRequest * @static - * @param {query.RollbackPreparedRequest} message RollbackPreparedRequest + * @param {query.CommitRequest} message CommitRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RollbackPreparedRequest.toObject = function toObject(message, options) { + CommitRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -105230,7 +105594,6 @@ export const query = $root.query = (() => { 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); @@ -105243,57 +105606,56 @@ export const query = $root.query = (() => { 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 RollbackPreparedRequest to JSON. + * Converts this CommitRequest to JSON. * @function toJSON - * @memberof query.RollbackPreparedRequest + * @memberof query.CommitRequest * @instance * @returns {Object.} JSON object */ - RollbackPreparedRequest.prototype.toJSON = function toJSON() { + CommitRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RollbackPreparedRequest + * Gets the default type url for CommitRequest * @function getTypeUrl - * @memberof query.RollbackPreparedRequest + * @memberof query.CommitRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RollbackPreparedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CommitRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.RollbackPreparedRequest"; + return typeUrlPrefix + "/query.CommitRequest"; }; - return RollbackPreparedRequest; + return CommitRequest; })(); - query.RollbackPreparedResponse = (function() { + query.CommitResponse = (function() { /** - * Properties of a RollbackPreparedResponse. + * Properties of a CommitResponse. * @memberof query - * @interface IRollbackPreparedResponse + * @interface ICommitResponse + * @property {number|Long|null} [reserved_id] CommitResponse reserved_id */ /** - * Constructs a new RollbackPreparedResponse. + * Constructs a new CommitResponse. * @memberof query - * @classdesc Represents a RollbackPreparedResponse. - * @implements IRollbackPreparedResponse + * @classdesc Represents a CommitResponse. + * @implements ICommitResponse * @constructor - * @param {query.IRollbackPreparedResponse=} [properties] Properties to set + * @param {query.ICommitResponse=} [properties] Properties to set */ - function RollbackPreparedResponse(properties) { + function CommitResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -105301,63 +105663,77 @@ export const query = $root.query = (() => { } /** - * Creates a new RollbackPreparedResponse instance using the specified properties. + * CommitResponse reserved_id. + * @member {number|Long} reserved_id + * @memberof query.CommitResponse + * @instance + */ + CommitResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new CommitResponse instance using the specified properties. * @function create - * @memberof query.RollbackPreparedResponse + * @memberof query.CommitResponse * @static - * @param {query.IRollbackPreparedResponse=} [properties] Properties to set - * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse instance + * @param {query.ICommitResponse=} [properties] Properties to set + * @returns {query.CommitResponse} CommitResponse instance */ - RollbackPreparedResponse.create = function create(properties) { - return new RollbackPreparedResponse(properties); + CommitResponse.create = function create(properties) { + return new CommitResponse(properties); }; /** - * Encodes the specified RollbackPreparedResponse message. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. + * Encodes the specified CommitResponse message. Does not implicitly {@link query.CommitResponse.verify|verify} messages. * @function encode - * @memberof query.RollbackPreparedResponse + * @memberof query.CommitResponse * @static - * @param {query.IRollbackPreparedResponse} message RollbackPreparedResponse 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 */ - RollbackPreparedResponse.encode = function encode(message, writer) { + CommitResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.reserved_id); return writer; }; /** - * Encodes the specified RollbackPreparedResponse message, length delimited. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. + * Encodes the specified CommitResponse message, length delimited. Does not implicitly {@link query.CommitResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.RollbackPreparedResponse + * @memberof query.CommitResponse * @static - * @param {query.IRollbackPreparedResponse} message RollbackPreparedResponse 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 */ - RollbackPreparedResponse.encodeDelimited = function encodeDelimited(message, writer) { + CommitResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RollbackPreparedResponse message from the specified reader or buffer. + * Decodes a CommitResponse message from the specified reader or buffer. * @function decode - * @memberof query.RollbackPreparedResponse + * @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.RollbackPreparedResponse} RollbackPreparedResponse + * @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 */ - RollbackPreparedResponse.decode = function decode(reader, length) { + CommitResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackPreparedResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.reserved_id = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -105367,114 +105743,139 @@ export const query = $root.query = (() => { }; /** - * Decodes a RollbackPreparedResponse 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.RollbackPreparedResponse + * @memberof query.CommitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse + * @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 */ - RollbackPreparedResponse.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 RollbackPreparedResponse message. + * Verifies a CommitResponse message. * @function verify - * @memberof query.RollbackPreparedResponse + * @memberof query.CommitResponse * @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) { + CommitResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; return null; }; /** - * Creates a RollbackPreparedResponse 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.RollbackPreparedResponse + * @memberof query.CommitResponse * @static * @param {Object.} object Plain object - * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse + * @returns {query.CommitResponse} CommitResponse */ - RollbackPreparedResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.RollbackPreparedResponse) + CommitResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.CommitResponse) return object; - return new $root.query.RollbackPreparedResponse(); + let message = new $root.query.CommitResponse(); + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + return message; }; /** - * Creates a plain object from a RollbackPreparedResponse 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.RollbackPreparedResponse + * @memberof query.CommitResponse * @static - * @param {query.RollbackPreparedResponse} message RollbackPreparedResponse + * @param {query.CommitResponse} message CommitResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RollbackPreparedResponse.toObject = function toObject() { - return {}; + CommitResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + if ($util.Long) { + let 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 RollbackPreparedResponse to JSON. + * Converts this CommitResponse to JSON. * @function toJSON - * @memberof query.RollbackPreparedResponse + * @memberof query.CommitResponse * @instance * @returns {Object.} JSON object */ - RollbackPreparedResponse.prototype.toJSON = function toJSON() { + CommitResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RollbackPreparedResponse + * Gets the default type url for CommitResponse * @function getTypeUrl - * @memberof query.RollbackPreparedResponse + * @memberof query.CommitResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RollbackPreparedResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CommitResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.RollbackPreparedResponse"; + return typeUrlPrefix + "/query.CommitResponse"; }; - return RollbackPreparedResponse; + return CommitResponse; })(); - query.CreateTransactionRequest = (function() { + query.RollbackRequest = (function() { /** - * Properties of a CreateTransactionRequest. + * Properties of a RollbackRequest. * @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 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 CreateTransactionRequest. + * Constructs a new RollbackRequest. * @memberof query - * @classdesc Represents a CreateTransactionRequest. - * @implements ICreateTransactionRequest + * @classdesc Represents a RollbackRequest. + * @implements IRollbackRequest * @constructor - * @param {query.ICreateTransactionRequest=} [properties] Properties to set + * @param {query.IRollbackRequest=} [properties] Properties to set */ - function CreateTransactionRequest(properties) { - this.participants = []; + function RollbackRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -105482,67 +105883,59 @@ export const query = $root.query = (() => { } /** - * CreateTransactionRequest effective_caller_id. + * RollbackRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.CreateTransactionRequest + * @memberof query.RollbackRequest * @instance */ - CreateTransactionRequest.prototype.effective_caller_id = null; + RollbackRequest.prototype.effective_caller_id = null; /** - * CreateTransactionRequest immediate_caller_id. + * RollbackRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.CreateTransactionRequest + * @memberof query.RollbackRequest * @instance */ - CreateTransactionRequest.prototype.immediate_caller_id = null; + RollbackRequest.prototype.immediate_caller_id = null; /** - * CreateTransactionRequest target. + * RollbackRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.CreateTransactionRequest - * @instance - */ - CreateTransactionRequest.prototype.target = null; - - /** - * CreateTransactionRequest dtid. - * @member {string} dtid - * @memberof query.CreateTransactionRequest + * @memberof query.RollbackRequest * @instance */ - CreateTransactionRequest.prototype.dtid = ""; + RollbackRequest.prototype.target = null; /** - * CreateTransactionRequest participants. - * @member {Array.} participants - * @memberof query.CreateTransactionRequest + * RollbackRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.RollbackRequest * @instance */ - CreateTransactionRequest.prototype.participants = $util.emptyArray; + RollbackRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new CreateTransactionRequest instance using the specified properties. + * Creates a new RollbackRequest instance using the specified properties. * @function create - * @memberof query.CreateTransactionRequest + * @memberof query.RollbackRequest * @static - * @param {query.ICreateTransactionRequest=} [properties] Properties to set - * @returns {query.CreateTransactionRequest} CreateTransactionRequest instance + * @param {query.IRollbackRequest=} [properties] Properties to set + * @returns {query.RollbackRequest} RollbackRequest instance */ - CreateTransactionRequest.create = function create(properties) { - return new CreateTransactionRequest(properties); + RollbackRequest.create = function create(properties) { + return new RollbackRequest(properties); }; /** - * Encodes the specified CreateTransactionRequest message. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. + * Encodes the specified RollbackRequest message. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. * @function encode - * @memberof query.CreateTransactionRequest + * @memberof query.RollbackRequest * @static - * @param {query.ICreateTransactionRequest} message CreateTransactionRequest 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 */ - CreateTransactionRequest.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")) @@ -105551,42 +105944,39 @@ export const query = $root.query = (() => { $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 (let i = 0; i < message.participants.length; ++i) - $root.query.Target.encode(message.participants[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.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 CreateTransactionRequest message, length delimited. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. + * Encodes the specified RollbackRequest message, length delimited. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.CreateTransactionRequest + * @memberof query.RollbackRequest * @static - * @param {query.ICreateTransactionRequest} message CreateTransactionRequest 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 */ - CreateTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { + RollbackRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTransactionRequest message from the specified reader or buffer. + * Decodes a RollbackRequest message from the specified reader or buffer. * @function decode - * @memberof query.CreateTransactionRequest + * @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.CreateTransactionRequest} CreateTransactionRequest + * @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 */ - CreateTransactionRequest.decode = function decode(reader, length) { + RollbackRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CreateTransactionRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -105603,13 +105993,7 @@ export const query = $root.query = (() => { 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())); + message.transaction_id = reader.int64(); break; } default: @@ -105621,30 +106005,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a CreateTransactionRequest 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.CreateTransactionRequest + * @memberof query.RollbackRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CreateTransactionRequest} CreateTransactionRequest + * @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 */ - CreateTransactionRequest.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 CreateTransactionRequest message. + * Verifies a RollbackRequest message. * @function verify - * @memberof query.CreateTransactionRequest + * @memberof query.RollbackRequest * @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) { + 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")) { @@ -105662,83 +106046,73 @@ export const query = $root.query = (() => { 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 (let i = 0; i < message.participants.length; ++i) { - let error = $root.query.Target.verify(message.participants[i]); - if (error) - return "participants." + 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 CreateTransactionRequest 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.CreateTransactionRequest + * @memberof query.RollbackRequest * @static * @param {Object.} object Plain object - * @returns {query.CreateTransactionRequest} CreateTransactionRequest + * @returns {query.RollbackRequest} RollbackRequest */ - CreateTransactionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.CreateTransactionRequest) + RollbackRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.RollbackRequest) return object; - let message = new $root.query.CreateTransactionRequest(); + let message = new $root.query.RollbackRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.CreateTransactionRequest.effective_caller_id: object expected"); + throw TypeError(".query.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.CreateTransactionRequest.immediate_caller_id: object expected"); + throw TypeError(".query.RollbackRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.CreateTransactionRequest.target: object expected"); + throw TypeError(".query.RollbackRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.dtid != null) - message.dtid = String(object.dtid); - if (object.participants) { - if (!Array.isArray(object.participants)) - throw TypeError(".query.CreateTransactionRequest.participants: array expected"); - message.participants = []; - for (let i = 0; i < object.participants.length; ++i) { - if (typeof object.participants[i] !== "object") - throw TypeError(".query.CreateTransactionRequest.participants: object expected"); - message.participants[i] = $root.query.Target.fromObject(object.participants[i]); - } - } + if (object.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 CreateTransactionRequest 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.CreateTransactionRequest + * @memberof query.RollbackRequest * @static - * @param {query.CreateTransactionRequest} message CreateTransactionRequest + * @param {query.RollbackRequest} message RollbackRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTransactionRequest.toObject = function toObject(message, options) { + RollbackRequest.toObject = function toObject(message, options) { if (!options) options = {}; let 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 ($util.Long) { + let 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); @@ -105746,62 +106120,61 @@ export const query = $root.query = (() => { 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 (let j = 0; j < message.participants.length; ++j) - object.participants[j] = $root.query.Target.toObject(message.participants[j], options); - } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; return object; }; /** - * Converts this CreateTransactionRequest to JSON. + * Converts this RollbackRequest to JSON. * @function toJSON - * @memberof query.CreateTransactionRequest + * @memberof query.RollbackRequest * @instance * @returns {Object.} JSON object */ - CreateTransactionRequest.prototype.toJSON = function toJSON() { + RollbackRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateTransactionRequest + * Gets the default type url for RollbackRequest * @function getTypeUrl - * @memberof query.CreateTransactionRequest + * @memberof query.RollbackRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateTransactionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RollbackRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.CreateTransactionRequest"; + return typeUrlPrefix + "/query.RollbackRequest"; }; - return CreateTransactionRequest; + return RollbackRequest; })(); - query.CreateTransactionResponse = (function() { + query.RollbackResponse = (function() { /** - * Properties of a CreateTransactionResponse. + * Properties of a RollbackResponse. * @memberof query - * @interface ICreateTransactionResponse + * @interface IRollbackResponse + * @property {number|Long|null} [reserved_id] RollbackResponse reserved_id */ /** - * Constructs a new CreateTransactionResponse. + * Constructs a new RollbackResponse. * @memberof query - * @classdesc Represents a CreateTransactionResponse. - * @implements ICreateTransactionResponse + * @classdesc Represents a RollbackResponse. + * @implements IRollbackResponse * @constructor - * @param {query.ICreateTransactionResponse=} [properties] Properties to set + * @param {query.IRollbackResponse=} [properties] Properties to set */ - function CreateTransactionResponse(properties) { + function RollbackResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -105809,63 +106182,77 @@ export const query = $root.query = (() => { } /** - * Creates a new CreateTransactionResponse instance using the specified properties. + * RollbackResponse reserved_id. + * @member {number|Long} reserved_id + * @memberof query.RollbackResponse + * @instance + */ + RollbackResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new RollbackResponse instance using the specified properties. * @function create - * @memberof query.CreateTransactionResponse + * @memberof query.RollbackResponse * @static - * @param {query.ICreateTransactionResponse=} [properties] Properties to set - * @returns {query.CreateTransactionResponse} CreateTransactionResponse instance + * @param {query.IRollbackResponse=} [properties] Properties to set + * @returns {query.RollbackResponse} RollbackResponse instance */ - CreateTransactionResponse.create = function create(properties) { - return new CreateTransactionResponse(properties); + RollbackResponse.create = function create(properties) { + return new RollbackResponse(properties); }; /** - * Encodes the specified CreateTransactionResponse message. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. + * Encodes the specified RollbackResponse message. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. * @function encode - * @memberof query.CreateTransactionResponse + * @memberof query.RollbackResponse * @static - * @param {query.ICreateTransactionResponse} message CreateTransactionResponse 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 */ - CreateTransactionResponse.encode = function encode(message, writer) { + RollbackResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.reserved_id); return writer; }; /** - * Encodes the specified CreateTransactionResponse message, length delimited. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. + * Encodes the specified RollbackResponse message, length delimited. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.CreateTransactionResponse + * @memberof query.RollbackResponse * @static - * @param {query.ICreateTransactionResponse} message CreateTransactionResponse 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 */ - CreateTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { + RollbackResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTransactionResponse message from the specified reader or buffer. + * Decodes a RollbackResponse message from the specified reader or buffer. * @function decode - * @memberof query.CreateTransactionResponse + * @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.CreateTransactionResponse} CreateTransactionResponse + * @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 */ - CreateTransactionResponse.decode = function decode(reader, length) { + RollbackResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CreateTransactionResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.reserved_id = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -105875,113 +106262,140 @@ export const query = $root.query = (() => { }; /** - * Decodes a CreateTransactionResponse 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.CreateTransactionResponse + * @memberof query.RollbackResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CreateTransactionResponse} CreateTransactionResponse + * @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 */ - CreateTransactionResponse.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 CreateTransactionResponse message. + * Verifies a RollbackResponse message. * @function verify - * @memberof query.CreateTransactionResponse + * @memberof query.RollbackResponse * @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) { + RollbackResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; return null; }; /** - * Creates a CreateTransactionResponse 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.CreateTransactionResponse + * @memberof query.RollbackResponse * @static * @param {Object.} object Plain object - * @returns {query.CreateTransactionResponse} CreateTransactionResponse + * @returns {query.RollbackResponse} RollbackResponse */ - CreateTransactionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.CreateTransactionResponse) + RollbackResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.RollbackResponse) return object; - return new $root.query.CreateTransactionResponse(); + let 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 CreateTransactionResponse 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.CreateTransactionResponse + * @memberof query.RollbackResponse * @static - * @param {query.CreateTransactionResponse} message CreateTransactionResponse + * @param {query.RollbackResponse} message RollbackResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTransactionResponse.toObject = function toObject() { - return {}; + RollbackResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + if ($util.Long) { + let 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 CreateTransactionResponse to JSON. + * Converts this RollbackResponse to JSON. * @function toJSON - * @memberof query.CreateTransactionResponse + * @memberof query.RollbackResponse * @instance * @returns {Object.} JSON object */ - CreateTransactionResponse.prototype.toJSON = function toJSON() { + RollbackResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateTransactionResponse + * Gets the default type url for RollbackResponse * @function getTypeUrl - * @memberof query.CreateTransactionResponse + * @memberof query.RollbackResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateTransactionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RollbackResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.CreateTransactionResponse"; + return typeUrlPrefix + "/query.RollbackResponse"; }; - return CreateTransactionResponse; + return RollbackResponse; })(); - query.StartCommitRequest = (function() { + query.PrepareRequest = (function() { /** - * Properties of a StartCommitRequest. + * Properties of a PrepareRequest. * @memberof query - * @interface IStartCommitRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] StartCommitRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] StartCommitRequest immediate_caller_id - * @property {query.ITarget|null} [target] StartCommitRequest target - * @property {number|Long|null} [transaction_id] StartCommitRequest transaction_id - * @property {string|null} [dtid] StartCommitRequest dtid + * @interface 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 StartCommitRequest. + * Constructs a new PrepareRequest. * @memberof query - * @classdesc Represents a StartCommitRequest. - * @implements IStartCommitRequest + * @classdesc Represents a PrepareRequest. + * @implements IPrepareRequest * @constructor - * @param {query.IStartCommitRequest=} [properties] Properties to set + * @param {query.IPrepareRequest=} [properties] Properties to set */ - function StartCommitRequest(properties) { + function PrepareRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -105989,67 +106403,67 @@ export const query = $root.query = (() => { } /** - * StartCommitRequest effective_caller_id. + * PrepareRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.StartCommitRequest + * @memberof query.PrepareRequest * @instance */ - StartCommitRequest.prototype.effective_caller_id = null; + PrepareRequest.prototype.effective_caller_id = null; /** - * StartCommitRequest immediate_caller_id. + * PrepareRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.StartCommitRequest + * @memberof query.PrepareRequest * @instance */ - StartCommitRequest.prototype.immediate_caller_id = null; + PrepareRequest.prototype.immediate_caller_id = null; /** - * StartCommitRequest target. + * PrepareRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.StartCommitRequest + * @memberof query.PrepareRequest * @instance */ - StartCommitRequest.prototype.target = null; + PrepareRequest.prototype.target = null; /** - * StartCommitRequest transaction_id. + * PrepareRequest transaction_id. * @member {number|Long} transaction_id - * @memberof query.StartCommitRequest + * @memberof query.PrepareRequest * @instance */ - StartCommitRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PrepareRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * StartCommitRequest dtid. + * PrepareRequest dtid. * @member {string} dtid - * @memberof query.StartCommitRequest + * @memberof query.PrepareRequest * @instance */ - StartCommitRequest.prototype.dtid = ""; + PrepareRequest.prototype.dtid = ""; /** - * Creates a new StartCommitRequest instance using the specified properties. + * Creates a new PrepareRequest instance using the specified properties. * @function create - * @memberof query.StartCommitRequest + * @memberof query.PrepareRequest * @static - * @param {query.IStartCommitRequest=} [properties] Properties to set - * @returns {query.StartCommitRequest} StartCommitRequest instance + * @param {query.IPrepareRequest=} [properties] Properties to set + * @returns {query.PrepareRequest} PrepareRequest instance */ - StartCommitRequest.create = function create(properties) { - return new StartCommitRequest(properties); + PrepareRequest.create = function create(properties) { + return new PrepareRequest(properties); }; /** - * Encodes the specified StartCommitRequest message. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. + * Encodes the specified PrepareRequest message. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. * @function encode - * @memberof query.StartCommitRequest + * @memberof query.PrepareRequest * @static - * @param {query.IStartCommitRequest} message StartCommitRequest 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 */ - StartCommitRequest.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")) @@ -106066,33 +106480,33 @@ export const query = $root.query = (() => { }; /** - * Encodes the specified StartCommitRequest message, length delimited. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. + * Encodes the specified PrepareRequest message, length delimited. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.StartCommitRequest + * @memberof query.PrepareRequest * @static - * @param {query.IStartCommitRequest} message StartCommitRequest 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 */ - StartCommitRequest.encodeDelimited = function encodeDelimited(message, writer) { + PrepareRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartCommitRequest message from the specified reader or buffer. + * Decodes a PrepareRequest message from the specified reader or buffer. * @function decode - * @memberof query.StartCommitRequest + * @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.StartCommitRequest} StartCommitRequest + * @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 */ - StartCommitRequest.decode = function decode(reader, length) { + PrepareRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StartCommitRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.PrepareRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -106125,30 +106539,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a StartCommitRequest 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.StartCommitRequest + * @memberof query.PrepareRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StartCommitRequest} StartCommitRequest + * @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 */ - StartCommitRequest.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 StartCommitRequest message. + * Verifies a PrepareRequest message. * @function verify - * @memberof query.StartCommitRequest + * @memberof query.PrepareRequest * @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) { + 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")) { @@ -106176,30 +106590,30 @@ export const query = $root.query = (() => { }; /** - * Creates a StartCommitRequest 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.StartCommitRequest + * @memberof query.PrepareRequest * @static * @param {Object.} object Plain object - * @returns {query.StartCommitRequest} StartCommitRequest + * @returns {query.PrepareRequest} PrepareRequest */ - StartCommitRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.StartCommitRequest) + PrepareRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.PrepareRequest) return object; - let message = new $root.query.StartCommitRequest(); + let message = new $root.query.PrepareRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.StartCommitRequest.effective_caller_id: object expected"); + throw TypeError(".query.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.StartCommitRequest.immediate_caller_id: object expected"); + throw TypeError(".query.PrepareRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.StartCommitRequest.target: object expected"); + throw TypeError(".query.PrepareRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } if (object.transaction_id != null) @@ -106217,15 +106631,15 @@ export const query = $root.query = (() => { }; /** - * Creates a plain object from a StartCommitRequest message. Also converts values to other types if specified. + * Creates a plain object from a PrepareRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.StartCommitRequest + * @memberof query.PrepareRequest * @static - * @param {query.StartCommitRequest} message StartCommitRequest + * @param {query.PrepareRequest} message PrepareRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartCommitRequest.toObject = function toObject(message, options) { + PrepareRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -106257,68 +106671,51 @@ export const query = $root.query = (() => { }; /** - * Converts this StartCommitRequest to JSON. + * Converts this PrepareRequest to JSON. * @function toJSON - * @memberof query.StartCommitRequest + * @memberof query.PrepareRequest * @instance * @returns {Object.} JSON object */ - StartCommitRequest.prototype.toJSON = function toJSON() { + PrepareRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StartCommitRequest + * Gets the default type url for PrepareRequest * @function getTypeUrl - * @memberof query.StartCommitRequest + * @memberof query.PrepareRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StartCommitRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PrepareRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.StartCommitRequest"; + return typeUrlPrefix + "/query.PrepareRequest"; }; - return StartCommitRequest; - })(); - - /** - * StartCommitState enum. - * @name query.StartCommitState - * @enum {number} - * @property {number} Unknown=0 Unknown value - * @property {number} Fail=1 Fail value - * @property {number} Success=2 Success value - */ - query.StartCommitState = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "Unknown"] = 0; - values[valuesById[1] = "Fail"] = 1; - values[valuesById[2] = "Success"] = 2; - return values; + return PrepareRequest; })(); - query.StartCommitResponse = (function() { + query.PrepareResponse = (function() { /** - * Properties of a StartCommitResponse. + * Properties of a PrepareResponse. * @memberof query - * @interface IStartCommitResponse - * @property {query.StartCommitState|null} [state] StartCommitResponse state + * @interface IPrepareResponse */ /** - * Constructs a new StartCommitResponse. + * Constructs a new PrepareResponse. * @memberof query - * @classdesc Represents a StartCommitResponse. - * @implements IStartCommitResponse + * @classdesc Represents a PrepareResponse. + * @implements IPrepareResponse * @constructor - * @param {query.IStartCommitResponse=} [properties] Properties to set + * @param {query.IPrepareResponse=} [properties] Properties to set */ - function StartCommitResponse(properties) { + function PrepareResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -106326,77 +106723,63 @@ export const query = $root.query = (() => { } /** - * StartCommitResponse state. - * @member {query.StartCommitState} state - * @memberof query.StartCommitResponse - * @instance - */ - StartCommitResponse.prototype.state = 0; - - /** - * Creates a new StartCommitResponse instance using the specified properties. + * Creates a new PrepareResponse instance using the specified properties. * @function create - * @memberof query.StartCommitResponse + * @memberof query.PrepareResponse * @static - * @param {query.IStartCommitResponse=} [properties] Properties to set - * @returns {query.StartCommitResponse} StartCommitResponse instance + * @param {query.IPrepareResponse=} [properties] Properties to set + * @returns {query.PrepareResponse} PrepareResponse instance */ - StartCommitResponse.create = function create(properties) { - return new StartCommitResponse(properties); + PrepareResponse.create = function create(properties) { + return new PrepareResponse(properties); }; /** - * Encodes the specified StartCommitResponse message. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. + * Encodes the specified PrepareResponse message. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. * @function encode - * @memberof query.StartCommitResponse + * @memberof query.PrepareResponse * @static - * @param {query.IStartCommitResponse} message StartCommitResponse 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 */ - StartCommitResponse.encode = function encode(message, writer) { + PrepareResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); return writer; }; /** - * Encodes the specified StartCommitResponse message, length delimited. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. + * Encodes the specified PrepareResponse message, length delimited. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.StartCommitResponse + * @memberof query.PrepareResponse * @static - * @param {query.IStartCommitResponse} message StartCommitResponse 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 */ - StartCommitResponse.encodeDelimited = function encodeDelimited(message, writer) { + PrepareResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartCommitResponse message from the specified reader or buffer. + * Decodes a PrepareResponse message from the specified reader or buffer. * @function decode - * @memberof query.StartCommitResponse + * @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.StartCommitResponse} StartCommitResponse + * @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 */ - StartCommitResponse.decode = function decode(reader, length) { + PrepareResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StartCommitResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.PrepareResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.state = reader.int32(); - break; - } default: reader.skipType(tag & 7); break; @@ -106406,150 +106789,112 @@ export const query = $root.query = (() => { }; /** - * Decodes a StartCommitResponse 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.StartCommitResponse + * @memberof query.PrepareResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StartCommitResponse} StartCommitResponse + * @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 */ - StartCommitResponse.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 StartCommitResponse message. + * Verifies a PrepareResponse message. * @function verify - * @memberof query.StartCommitResponse + * @memberof query.PrepareResponse * @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) { + PrepareResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } return null; }; /** - * Creates a StartCommitResponse 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.StartCommitResponse + * @memberof query.PrepareResponse * @static * @param {Object.} object Plain object - * @returns {query.StartCommitResponse} StartCommitResponse + * @returns {query.PrepareResponse} PrepareResponse */ - StartCommitResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.StartCommitResponse) + PrepareResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.PrepareResponse) return object; - let message = new $root.query.StartCommitResponse(); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "Unknown": - case 0: - message.state = 0; - break; - case "Fail": - case 1: - message.state = 1; - break; - case "Success": - case 2: - message.state = 2; - break; - } - return message; + return new $root.query.PrepareResponse(); }; /** - * Creates a plain object from a StartCommitResponse 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.StartCommitResponse + * @memberof query.PrepareResponse * @static - * @param {query.StartCommitResponse} message StartCommitResponse + * @param {query.PrepareResponse} message PrepareResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartCommitResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.state = options.enums === String ? "Unknown" : 0; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.query.StartCommitState[message.state] === undefined ? message.state : $root.query.StartCommitState[message.state] : message.state; - return object; + PrepareResponse.toObject = function toObject() { + return {}; }; /** - * Converts this StartCommitResponse to JSON. + * Converts this PrepareResponse to JSON. * @function toJSON - * @memberof query.StartCommitResponse + * @memberof query.PrepareResponse * @instance * @returns {Object.} JSON object */ - StartCommitResponse.prototype.toJSON = function toJSON() { + PrepareResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StartCommitResponse + * Gets the default type url for PrepareResponse * @function getTypeUrl - * @memberof query.StartCommitResponse + * @memberof query.PrepareResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StartCommitResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PrepareResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.StartCommitResponse"; + return typeUrlPrefix + "/query.PrepareResponse"; }; - return StartCommitResponse; + return PrepareResponse; })(); - query.SetRollbackRequest = (function() { + query.CommitPreparedRequest = (function() { /** - * Properties of a SetRollbackRequest. + * Properties of a CommitPreparedRequest. * @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 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 SetRollbackRequest. + * Constructs a new CommitPreparedRequest. * @memberof query - * @classdesc Represents a SetRollbackRequest. - * @implements ISetRollbackRequest + * @classdesc Represents a CommitPreparedRequest. + * @implements ICommitPreparedRequest * @constructor - * @param {query.ISetRollbackRequest=} [properties] Properties to set + * @param {query.ICommitPreparedRequest=} [properties] Properties to set */ - function SetRollbackRequest(properties) { + function CommitPreparedRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -106557,67 +106902,59 @@ export const query = $root.query = (() => { } /** - * SetRollbackRequest effective_caller_id. + * CommitPreparedRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.SetRollbackRequest + * @memberof query.CommitPreparedRequest * @instance */ - SetRollbackRequest.prototype.effective_caller_id = null; + CommitPreparedRequest.prototype.effective_caller_id = null; /** - * SetRollbackRequest immediate_caller_id. + * CommitPreparedRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.SetRollbackRequest + * @memberof query.CommitPreparedRequest * @instance */ - SetRollbackRequest.prototype.immediate_caller_id = null; + CommitPreparedRequest.prototype.immediate_caller_id = null; /** - * SetRollbackRequest target. + * CommitPreparedRequest 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 + * @memberof query.CommitPreparedRequest * @instance */ - SetRollbackRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CommitPreparedRequest.prototype.target = null; /** - * SetRollbackRequest dtid. + * CommitPreparedRequest dtid. * @member {string} dtid - * @memberof query.SetRollbackRequest + * @memberof query.CommitPreparedRequest * @instance */ - SetRollbackRequest.prototype.dtid = ""; + CommitPreparedRequest.prototype.dtid = ""; /** - * Creates a new SetRollbackRequest instance using the specified properties. + * Creates a new CommitPreparedRequest instance using the specified properties. * @function create - * @memberof query.SetRollbackRequest + * @memberof query.CommitPreparedRequest * @static - * @param {query.ISetRollbackRequest=} [properties] Properties to set - * @returns {query.SetRollbackRequest} SetRollbackRequest instance + * @param {query.ICommitPreparedRequest=} [properties] Properties to set + * @returns {query.CommitPreparedRequest} CommitPreparedRequest instance */ - SetRollbackRequest.create = function create(properties) { - return new SetRollbackRequest(properties); + CommitPreparedRequest.create = function create(properties) { + return new CommitPreparedRequest(properties); }; /** - * Encodes the specified SetRollbackRequest message. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. + * Encodes the specified CommitPreparedRequest message. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. * @function encode - * @memberof query.SetRollbackRequest + * @memberof query.CommitPreparedRequest * @static - * @param {query.ISetRollbackRequest} message SetRollbackRequest 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 */ - SetRollbackRequest.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")) @@ -106626,41 +106963,39 @@ export const query = $root.query = (() => { $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); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); return writer; }; /** - * Encodes the specified SetRollbackRequest message, length delimited. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. + * Encodes the specified CommitPreparedRequest message, length delimited. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.SetRollbackRequest + * @memberof query.CommitPreparedRequest * @static - * @param {query.ISetRollbackRequest} message SetRollbackRequest 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 */ - SetRollbackRequest.encodeDelimited = function encodeDelimited(message, writer) { + CommitPreparedRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetRollbackRequest message from the specified reader or buffer. + * Decodes a CommitPreparedRequest message from the specified reader or buffer. * @function decode - * @memberof query.SetRollbackRequest + * @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.SetRollbackRequest} SetRollbackRequest + * @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 */ - SetRollbackRequest.decode = function decode(reader, length) { + CommitPreparedRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.SetRollbackRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitPreparedRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -106677,10 +107012,6 @@ export const query = $root.query = (() => { break; } case 4: { - message.transaction_id = reader.int64(); - break; - } - case 5: { message.dtid = reader.string(); break; } @@ -106693,30 +107024,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a SetRollbackRequest 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.SetRollbackRequest + * @memberof query.CommitPreparedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.SetRollbackRequest} SetRollbackRequest + * @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 */ - SetRollbackRequest.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 SetRollbackRequest message. + * Verifies a CommitPreparedRequest message. * @function verify - * @memberof query.SetRollbackRequest + * @memberof query.CommitPreparedRequest * @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) { + 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")) { @@ -106734,9 +107065,6 @@ export const query = $root.query = (() => { 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"; @@ -106744,56 +107072,47 @@ export const query = $root.query = (() => { }; /** - * Creates a SetRollbackRequest 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.SetRollbackRequest + * @memberof query.CommitPreparedRequest * @static * @param {Object.} object Plain object - * @returns {query.SetRollbackRequest} SetRollbackRequest + * @returns {query.CommitPreparedRequest} CommitPreparedRequest */ - SetRollbackRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.SetRollbackRequest) + CommitPreparedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.CommitPreparedRequest) return object; - let message = new $root.query.SetRollbackRequest(); + let message = new $root.query.CommitPreparedRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.SetRollbackRequest.effective_caller_id: object expected"); + throw TypeError(".query.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.SetRollbackRequest.immediate_caller_id: object expected"); + throw TypeError(".query.CommitPreparedRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.SetRollbackRequest.target: object expected"); + throw TypeError(".query.CommitPreparedRequest.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 SetRollbackRequest 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.SetRollbackRequest + * @memberof query.CommitPreparedRequest * @static - * @param {query.SetRollbackRequest} message SetRollbackRequest + * @param {query.CommitPreparedRequest} message CommitPreparedRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetRollbackRequest.toObject = function toObject(message, options) { + CommitPreparedRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -106801,11 +107120,6 @@ export const query = $root.query = (() => { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - if ($util.Long) { - let 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")) @@ -106814,62 +107128,57 @@ export const query = $root.query = (() => { 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 SetRollbackRequest to JSON. + * Converts this CommitPreparedRequest to JSON. * @function toJSON - * @memberof query.SetRollbackRequest + * @memberof query.CommitPreparedRequest * @instance * @returns {Object.} JSON object */ - SetRollbackRequest.prototype.toJSON = function toJSON() { + CommitPreparedRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetRollbackRequest + * Gets the default type url for CommitPreparedRequest * @function getTypeUrl - * @memberof query.SetRollbackRequest + * @memberof query.CommitPreparedRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetRollbackRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CommitPreparedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.SetRollbackRequest"; + return typeUrlPrefix + "/query.CommitPreparedRequest"; }; - return SetRollbackRequest; + return CommitPreparedRequest; })(); - query.SetRollbackResponse = (function() { + query.CommitPreparedResponse = (function() { /** - * Properties of a SetRollbackResponse. + * Properties of a CommitPreparedResponse. * @memberof query - * @interface ISetRollbackResponse + * @interface ICommitPreparedResponse */ /** - * Constructs a new SetRollbackResponse. + * Constructs a new CommitPreparedResponse. * @memberof query - * @classdesc Represents a SetRollbackResponse. - * @implements ISetRollbackResponse + * @classdesc Represents a CommitPreparedResponse. + * @implements ICommitPreparedResponse * @constructor - * @param {query.ISetRollbackResponse=} [properties] Properties to set + * @param {query.ICommitPreparedResponse=} [properties] Properties to set */ - function SetRollbackResponse(properties) { + function CommitPreparedResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -106877,60 +107186,60 @@ export const query = $root.query = (() => { } /** - * Creates a new SetRollbackResponse instance using the specified properties. + * Creates a new CommitPreparedResponse instance using the specified properties. * @function create - * @memberof query.SetRollbackResponse + * @memberof query.CommitPreparedResponse * @static - * @param {query.ISetRollbackResponse=} [properties] Properties to set - * @returns {query.SetRollbackResponse} SetRollbackResponse instance + * @param {query.ICommitPreparedResponse=} [properties] Properties to set + * @returns {query.CommitPreparedResponse} CommitPreparedResponse instance */ - SetRollbackResponse.create = function create(properties) { - return new SetRollbackResponse(properties); + CommitPreparedResponse.create = function create(properties) { + return new CommitPreparedResponse(properties); }; /** - * Encodes the specified SetRollbackResponse message. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. + * Encodes the specified CommitPreparedResponse message. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. * @function encode - * @memberof query.SetRollbackResponse + * @memberof query.CommitPreparedResponse * @static - * @param {query.ISetRollbackResponse} message SetRollbackResponse 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 */ - SetRollbackResponse.encode = function encode(message, writer) { + CommitPreparedResponse.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. + * Encodes the specified CommitPreparedResponse message, length delimited. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.SetRollbackResponse + * @memberof query.CommitPreparedResponse * @static - * @param {query.ISetRollbackResponse} message SetRollbackResponse 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 */ - SetRollbackResponse.encodeDelimited = function encodeDelimited(message, writer) { + CommitPreparedResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetRollbackResponse message from the specified reader or buffer. + * Decodes a CommitPreparedResponse message from the specified reader or buffer. * @function decode - * @memberof query.SetRollbackResponse + * @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.SetRollbackResponse} SetRollbackResponse + * @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 */ - SetRollbackResponse.decode = function decode(reader, length) { + CommitPreparedResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.SetRollbackResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitPreparedResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -106943,112 +107252,113 @@ export const query = $root.query = (() => { }; /** - * Decodes a SetRollbackResponse 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.SetRollbackResponse + * @memberof query.CommitPreparedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.SetRollbackResponse} SetRollbackResponse + * @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 */ - SetRollbackResponse.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 SetRollbackResponse message. + * Verifies a CommitPreparedResponse message. * @function verify - * @memberof query.SetRollbackResponse + * @memberof query.CommitPreparedResponse * @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) { + CommitPreparedResponse.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. + * Creates a CommitPreparedResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.SetRollbackResponse + * @memberof query.CommitPreparedResponse * @static * @param {Object.} object Plain object - * @returns {query.SetRollbackResponse} SetRollbackResponse + * @returns {query.CommitPreparedResponse} CommitPreparedResponse */ - SetRollbackResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.SetRollbackResponse) + CommitPreparedResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.CommitPreparedResponse) return object; - return new $root.query.SetRollbackResponse(); + return new $root.query.CommitPreparedResponse(); }; /** - * Creates a plain object from a SetRollbackResponse 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.SetRollbackResponse + * @memberof query.CommitPreparedResponse * @static - * @param {query.SetRollbackResponse} message SetRollbackResponse + * @param {query.CommitPreparedResponse} message CommitPreparedResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetRollbackResponse.toObject = function toObject() { + CommitPreparedResponse.toObject = function toObject() { return {}; }; /** - * Converts this SetRollbackResponse to JSON. + * Converts this CommitPreparedResponse to JSON. * @function toJSON - * @memberof query.SetRollbackResponse + * @memberof query.CommitPreparedResponse * @instance * @returns {Object.} JSON object */ - SetRollbackResponse.prototype.toJSON = function toJSON() { + CommitPreparedResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetRollbackResponse + * Gets the default type url for CommitPreparedResponse * @function getTypeUrl - * @memberof query.SetRollbackResponse + * @memberof query.CommitPreparedResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetRollbackResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CommitPreparedResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.SetRollbackResponse"; + return typeUrlPrefix + "/query.CommitPreparedResponse"; }; - return SetRollbackResponse; + return CommitPreparedResponse; })(); - query.ConcludeTransactionRequest = (function() { + query.RollbackPreparedRequest = (function() { /** - * Properties of a ConcludeTransactionRequest. + * Properties of a RollbackPreparedRequest. * @memberof query - * @interface IConcludeTransactionRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ConcludeTransactionRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ConcludeTransactionRequest immediate_caller_id - * @property {query.ITarget|null} [target] ConcludeTransactionRequest target - * @property {string|null} [dtid] ConcludeTransactionRequest dtid + * @interface 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 ConcludeTransactionRequest. + * Constructs a new RollbackPreparedRequest. * @memberof query - * @classdesc Represents a ConcludeTransactionRequest. - * @implements IConcludeTransactionRequest + * @classdesc Represents a RollbackPreparedRequest. + * @implements IRollbackPreparedRequest * @constructor - * @param {query.IConcludeTransactionRequest=} [properties] Properties to set + * @param {query.IRollbackPreparedRequest=} [properties] Properties to set */ - function ConcludeTransactionRequest(properties) { + function RollbackPreparedRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107056,59 +107366,67 @@ export const query = $root.query = (() => { } /** - * ConcludeTransactionRequest effective_caller_id. + * RollbackPreparedRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackPreparedRequest * @instance */ - ConcludeTransactionRequest.prototype.effective_caller_id = null; + RollbackPreparedRequest.prototype.effective_caller_id = null; /** - * ConcludeTransactionRequest immediate_caller_id. + * RollbackPreparedRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackPreparedRequest * @instance */ - ConcludeTransactionRequest.prototype.immediate_caller_id = null; + RollbackPreparedRequest.prototype.immediate_caller_id = null; /** - * ConcludeTransactionRequest target. + * RollbackPreparedRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackPreparedRequest * @instance */ - ConcludeTransactionRequest.prototype.target = null; + RollbackPreparedRequest.prototype.target = null; /** - * ConcludeTransactionRequest dtid. + * 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.ConcludeTransactionRequest + * @memberof query.RollbackPreparedRequest * @instance */ - ConcludeTransactionRequest.prototype.dtid = ""; + RollbackPreparedRequest.prototype.dtid = ""; /** - * Creates a new ConcludeTransactionRequest instance using the specified properties. + * Creates a new RollbackPreparedRequest instance using the specified properties. * @function create - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackPreparedRequest * @static - * @param {query.IConcludeTransactionRequest=} [properties] Properties to set - * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest instance + * @param {query.IRollbackPreparedRequest=} [properties] Properties to set + * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest instance */ - ConcludeTransactionRequest.create = function create(properties) { - return new ConcludeTransactionRequest(properties); + RollbackPreparedRequest.create = function create(properties) { + return new RollbackPreparedRequest(properties); }; /** - * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. + * Encodes the specified RollbackPreparedRequest message. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. * @function encode - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackPreparedRequest * @static - * @param {query.IConcludeTransactionRequest} message ConcludeTransactionRequest 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 */ - ConcludeTransactionRequest.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")) @@ -107117,39 +107435,41 @@ export const query = $root.query = (() => { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); return writer; }; /** - * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. + * Encodes the specified RollbackPreparedRequest message, length delimited. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackPreparedRequest * @static - * @param {query.IConcludeTransactionRequest} message ConcludeTransactionRequest 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 */ - ConcludeTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { + RollbackPreparedRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. + * Decodes a RollbackPreparedRequest message from the specified reader or buffer. * @function decode - * @memberof query.ConcludeTransactionRequest + * @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.ConcludeTransactionRequest} ConcludeTransactionRequest + * @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 */ - ConcludeTransactionRequest.decode = function decode(reader, length) { + RollbackPreparedRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ConcludeTransactionRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackPreparedRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -107166,6 +107486,10 @@ export const query = $root.query = (() => { break; } case 4: { + message.transaction_id = reader.int64(); + break; + } + case 5: { message.dtid = reader.string(); break; } @@ -107178,30 +107502,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a ConcludeTransactionRequest 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.ConcludeTransactionRequest + * @memberof query.RollbackPreparedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest + * @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 */ - ConcludeTransactionRequest.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 ConcludeTransactionRequest message. + * Verifies a RollbackPreparedRequest message. * @function verify - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackPreparedRequest * @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) { + 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")) { @@ -107219,6 +107543,9 @@ export const query = $root.query = (() => { 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"; @@ -107226,47 +107553,56 @@ export const query = $root.query = (() => { }; /** - * Creates a ConcludeTransactionRequest 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.ConcludeTransactionRequest + * @memberof query.RollbackPreparedRequest * @static * @param {Object.} object Plain object - * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest + * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest */ - ConcludeTransactionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ConcludeTransactionRequest) + RollbackPreparedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.RollbackPreparedRequest) return object; - let message = new $root.query.ConcludeTransactionRequest(); + let message = new $root.query.RollbackPreparedRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ConcludeTransactionRequest.effective_caller_id: object expected"); + throw TypeError(".query.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.ConcludeTransactionRequest.immediate_caller_id: object expected"); + throw TypeError(".query.RollbackPreparedRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ConcludeTransactionRequest.target: object expected"); + 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 ConcludeTransactionRequest 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.ConcludeTransactionRequest + * @memberof query.RollbackPreparedRequest * @static - * @param {query.ConcludeTransactionRequest} message ConcludeTransactionRequest + * @param {query.RollbackPreparedRequest} message RollbackPreparedRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConcludeTransactionRequest.toObject = function toObject(message, options) { + RollbackPreparedRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -107274,6 +107610,11 @@ export const query = $root.query = (() => { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; + if ($util.Long) { + let 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")) @@ -107282,57 +107623,62 @@ export const query = $root.query = (() => { 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 ConcludeTransactionRequest to JSON. + * Converts this RollbackPreparedRequest to JSON. * @function toJSON - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackPreparedRequest * @instance * @returns {Object.} JSON object */ - ConcludeTransactionRequest.prototype.toJSON = function toJSON() { + RollbackPreparedRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ConcludeTransactionRequest + * Gets the default type url for RollbackPreparedRequest * @function getTypeUrl - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackPreparedRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ConcludeTransactionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RollbackPreparedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ConcludeTransactionRequest"; + return typeUrlPrefix + "/query.RollbackPreparedRequest"; }; - return ConcludeTransactionRequest; + return RollbackPreparedRequest; })(); - query.ConcludeTransactionResponse = (function() { + query.RollbackPreparedResponse = (function() { /** - * Properties of a ConcludeTransactionResponse. + * Properties of a RollbackPreparedResponse. * @memberof query - * @interface IConcludeTransactionResponse + * @interface IRollbackPreparedResponse */ /** - * Constructs a new ConcludeTransactionResponse. + * Constructs a new RollbackPreparedResponse. * @memberof query - * @classdesc Represents a ConcludeTransactionResponse. - * @implements IConcludeTransactionResponse + * @classdesc Represents a RollbackPreparedResponse. + * @implements IRollbackPreparedResponse * @constructor - * @param {query.IConcludeTransactionResponse=} [properties] Properties to set + * @param {query.IRollbackPreparedResponse=} [properties] Properties to set */ - function ConcludeTransactionResponse(properties) { + function RollbackPreparedResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107340,60 +107686,60 @@ export const query = $root.query = (() => { } /** - * Creates a new ConcludeTransactionResponse instance using the specified properties. + * Creates a new RollbackPreparedResponse instance using the specified properties. * @function create - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackPreparedResponse * @static - * @param {query.IConcludeTransactionResponse=} [properties] Properties to set - * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse instance + * @param {query.IRollbackPreparedResponse=} [properties] Properties to set + * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse instance */ - ConcludeTransactionResponse.create = function create(properties) { - return new ConcludeTransactionResponse(properties); + RollbackPreparedResponse.create = function create(properties) { + return new RollbackPreparedResponse(properties); }; /** - * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. + * Encodes the specified RollbackPreparedResponse message. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. * @function encode - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackPreparedResponse * @static - * @param {query.IConcludeTransactionResponse} message ConcludeTransactionResponse 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 */ - ConcludeTransactionResponse.encode = function encode(message, writer) { + RollbackPreparedResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. + * Encodes the specified RollbackPreparedResponse message, length delimited. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackPreparedResponse * @static - * @param {query.IConcludeTransactionResponse} message ConcludeTransactionResponse 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 */ - ConcludeTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { + RollbackPreparedResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. + * Decodes a RollbackPreparedResponse message from the specified reader or buffer. * @function decode - * @memberof query.ConcludeTransactionResponse + * @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.ConcludeTransactionResponse} ConcludeTransactionResponse + * @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 */ - ConcludeTransactionResponse.decode = function decode(reader, length) { + RollbackPreparedResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ConcludeTransactionResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackPreparedResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -107406,112 +107752,114 @@ export const query = $root.query = (() => { }; /** - * Decodes a ConcludeTransactionResponse 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.ConcludeTransactionResponse + * @memberof query.RollbackPreparedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse + * @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 */ - ConcludeTransactionResponse.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 ConcludeTransactionResponse message. + * Verifies a RollbackPreparedResponse message. * @function verify - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackPreparedResponse * @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) { + RollbackPreparedResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a ConcludeTransactionResponse 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.ConcludeTransactionResponse + * @memberof query.RollbackPreparedResponse * @static * @param {Object.} object Plain object - * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse + * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse */ - ConcludeTransactionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ConcludeTransactionResponse) + RollbackPreparedResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.RollbackPreparedResponse) return object; - return new $root.query.ConcludeTransactionResponse(); + return new $root.query.RollbackPreparedResponse(); }; /** - * Creates a plain object from a ConcludeTransactionResponse 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.ConcludeTransactionResponse + * @memberof query.RollbackPreparedResponse * @static - * @param {query.ConcludeTransactionResponse} message ConcludeTransactionResponse + * @param {query.RollbackPreparedResponse} message RollbackPreparedResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConcludeTransactionResponse.toObject = function toObject() { + RollbackPreparedResponse.toObject = function toObject() { return {}; }; /** - * Converts this ConcludeTransactionResponse to JSON. + * Converts this RollbackPreparedResponse to JSON. * @function toJSON - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackPreparedResponse * @instance * @returns {Object.} JSON object */ - ConcludeTransactionResponse.prototype.toJSON = function toJSON() { + RollbackPreparedResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ConcludeTransactionResponse + * Gets the default type url for RollbackPreparedResponse * @function getTypeUrl - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackPreparedResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ConcludeTransactionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RollbackPreparedResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ConcludeTransactionResponse"; + return typeUrlPrefix + "/query.RollbackPreparedResponse"; }; - return ConcludeTransactionResponse; + return RollbackPreparedResponse; })(); - query.ReadTransactionRequest = (function() { + query.CreateTransactionRequest = (function() { /** - * Properties of a ReadTransactionRequest. + * Properties of a CreateTransactionRequest. * @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 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 ReadTransactionRequest. + * Constructs a new CreateTransactionRequest. * @memberof query - * @classdesc Represents a ReadTransactionRequest. - * @implements IReadTransactionRequest + * @classdesc Represents a CreateTransactionRequest. + * @implements ICreateTransactionRequest * @constructor - * @param {query.IReadTransactionRequest=} [properties] Properties to set + * @param {query.ICreateTransactionRequest=} [properties] Properties to set */ - function ReadTransactionRequest(properties) { + function CreateTransactionRequest(properties) { + this.participants = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107519,59 +107867,67 @@ export const query = $root.query = (() => { } /** - * ReadTransactionRequest effective_caller_id. + * CreateTransactionRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReadTransactionRequest + * @memberof query.CreateTransactionRequest * @instance */ - ReadTransactionRequest.prototype.effective_caller_id = null; + CreateTransactionRequest.prototype.effective_caller_id = null; /** - * ReadTransactionRequest immediate_caller_id. + * CreateTransactionRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReadTransactionRequest + * @memberof query.CreateTransactionRequest * @instance */ - ReadTransactionRequest.prototype.immediate_caller_id = null; + CreateTransactionRequest.prototype.immediate_caller_id = null; /** - * ReadTransactionRequest target. + * CreateTransactionRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReadTransactionRequest + * @memberof query.CreateTransactionRequest * @instance */ - ReadTransactionRequest.prototype.target = null; + CreateTransactionRequest.prototype.target = null; /** - * ReadTransactionRequest dtid. + * CreateTransactionRequest dtid. * @member {string} dtid - * @memberof query.ReadTransactionRequest + * @memberof query.CreateTransactionRequest * @instance */ - ReadTransactionRequest.prototype.dtid = ""; + CreateTransactionRequest.prototype.dtid = ""; /** - * Creates a new ReadTransactionRequest instance using the specified properties. + * CreateTransactionRequest participants. + * @member {Array.} participants + * @memberof query.CreateTransactionRequest + * @instance + */ + CreateTransactionRequest.prototype.participants = $util.emptyArray; + + /** + * Creates a new CreateTransactionRequest instance using the specified properties. * @function create - * @memberof query.ReadTransactionRequest + * @memberof query.CreateTransactionRequest * @static - * @param {query.IReadTransactionRequest=} [properties] Properties to set - * @returns {query.ReadTransactionRequest} ReadTransactionRequest instance + * @param {query.ICreateTransactionRequest=} [properties] Properties to set + * @returns {query.CreateTransactionRequest} CreateTransactionRequest instance */ - ReadTransactionRequest.create = function create(properties) { - return new ReadTransactionRequest(properties); + CreateTransactionRequest.create = function create(properties) { + return new CreateTransactionRequest(properties); }; /** - * Encodes the specified ReadTransactionRequest message. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. + * Encodes the specified CreateTransactionRequest message. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. * @function encode - * @memberof query.ReadTransactionRequest + * @memberof query.CreateTransactionRequest * @static - * @param {query.IReadTransactionRequest} message ReadTransactionRequest 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 */ - ReadTransactionRequest.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")) @@ -107582,37 +107938,40 @@ export const query = $root.query = (() => { $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 (let 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 ReadTransactionRequest message, length delimited. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. + * Encodes the specified CreateTransactionRequest message, length delimited. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReadTransactionRequest + * @memberof query.CreateTransactionRequest * @static - * @param {query.IReadTransactionRequest} message ReadTransactionRequest 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 */ - ReadTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadTransactionRequest message from the specified reader or buffer. + * Decodes a CreateTransactionRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReadTransactionRequest + * @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.ReadTransactionRequest} ReadTransactionRequest + * @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 */ - ReadTransactionRequest.decode = function decode(reader, length) { + CreateTransactionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReadTransactionRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CreateTransactionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -107632,6 +107991,12 @@ export const query = $root.query = (() => { 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; @@ -107641,30 +108006,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a ReadTransactionRequest 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.ReadTransactionRequest + * @memberof query.CreateTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReadTransactionRequest} ReadTransactionRequest + * @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 */ - ReadTransactionRequest.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 ReadTransactionRequest message. + * Verifies a CreateTransactionRequest message. * @function verify - * @memberof query.ReadTransactionRequest + * @memberof query.CreateTransactionRequest * @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) { + 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")) { @@ -107685,54 +108050,75 @@ export const query = $root.query = (() => { 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 (let i = 0; i < message.participants.length; ++i) { + let error = $root.query.Target.verify(message.participants[i]); + if (error) + return "participants." + error; + } + } return null; }; /** - * Creates a ReadTransactionRequest 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.ReadTransactionRequest + * @memberof query.CreateTransactionRequest * @static * @param {Object.} object Plain object - * @returns {query.ReadTransactionRequest} ReadTransactionRequest + * @returns {query.CreateTransactionRequest} CreateTransactionRequest */ - ReadTransactionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReadTransactionRequest) + CreateTransactionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.CreateTransactionRequest) return object; - let message = new $root.query.ReadTransactionRequest(); + let message = new $root.query.CreateTransactionRequest(); 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.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.ReadTransactionRequest.immediate_caller_id: object expected"); + throw TypeError(".query.CreateTransactionRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ReadTransactionRequest.target: object expected"); + 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 (let 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 ReadTransactionRequest 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.ReadTransactionRequest + * @memberof query.CreateTransactionRequest * @static - * @param {query.ReadTransactionRequest} message ReadTransactionRequest + * @param {query.CreateTransactionRequest} message CreateTransactionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadTransactionRequest.toObject = function toObject(message, options) { + CreateTransactionRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.participants = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; @@ -107747,56 +108133,60 @@ export const query = $root.query = (() => { 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 (let j = 0; j < message.participants.length; ++j) + object.participants[j] = $root.query.Target.toObject(message.participants[j], options); + } return object; }; /** - * Converts this ReadTransactionRequest to JSON. + * Converts this CreateTransactionRequest to JSON. * @function toJSON - * @memberof query.ReadTransactionRequest + * @memberof query.CreateTransactionRequest * @instance * @returns {Object.} JSON object */ - ReadTransactionRequest.prototype.toJSON = function toJSON() { + CreateTransactionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadTransactionRequest + * Gets the default type url for CreateTransactionRequest * @function getTypeUrl - * @memberof query.ReadTransactionRequest + * @memberof query.CreateTransactionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadTransactionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateTransactionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ReadTransactionRequest"; + return typeUrlPrefix + "/query.CreateTransactionRequest"; }; - return ReadTransactionRequest; + return CreateTransactionRequest; })(); - query.ReadTransactionResponse = (function() { + query.CreateTransactionResponse = (function() { /** - * Properties of a ReadTransactionResponse. + * Properties of a CreateTransactionResponse. * @memberof query - * @interface IReadTransactionResponse - * @property {query.ITransactionMetadata|null} [metadata] ReadTransactionResponse metadata + * @interface ICreateTransactionResponse */ /** - * Constructs a new ReadTransactionResponse. + * Constructs a new CreateTransactionResponse. * @memberof query - * @classdesc Represents a ReadTransactionResponse. - * @implements IReadTransactionResponse + * @classdesc Represents a CreateTransactionResponse. + * @implements ICreateTransactionResponse * @constructor - * @param {query.IReadTransactionResponse=} [properties] Properties to set + * @param {query.ICreateTransactionResponse=} [properties] Properties to set */ - function ReadTransactionResponse(properties) { + function CreateTransactionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107804,77 +108194,63 @@ export const query = $root.query = (() => { } /** - * 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 CreateTransactionResponse instance using the specified properties. * @function create - * @memberof query.ReadTransactionResponse + * @memberof query.CreateTransactionResponse * @static - * @param {query.IReadTransactionResponse=} [properties] Properties to set - * @returns {query.ReadTransactionResponse} ReadTransactionResponse instance + * @param {query.ICreateTransactionResponse=} [properties] Properties to set + * @returns {query.CreateTransactionResponse} CreateTransactionResponse instance */ - ReadTransactionResponse.create = function create(properties) { - return new ReadTransactionResponse(properties); + CreateTransactionResponse.create = function create(properties) { + return new CreateTransactionResponse(properties); }; /** - * Encodes the specified ReadTransactionResponse message. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. + * Encodes the specified CreateTransactionResponse message. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. * @function encode - * @memberof query.ReadTransactionResponse + * @memberof query.CreateTransactionResponse * @static - * @param {query.IReadTransactionResponse} message ReadTransactionResponse 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 */ - ReadTransactionResponse.encode = function encode(message, writer) { + CreateTransactionResponse.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 CreateTransactionResponse message, length delimited. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReadTransactionResponse + * @memberof query.CreateTransactionResponse * @static - * @param {query.IReadTransactionResponse} message ReadTransactionResponse 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 */ - ReadTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadTransactionResponse message from the specified reader or buffer. + * Decodes a CreateTransactionResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReadTransactionResponse + * @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.ReadTransactionResponse} ReadTransactionResponse + * @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 */ - ReadTransactionResponse.decode = function decode(reader, length) { + CreateTransactionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReadTransactionResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CreateTransactionResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.metadata = $root.query.TransactionMetadata.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -107884,130 +108260,113 @@ export const query = $root.query = (() => { }; /** - * Decodes a ReadTransactionResponse 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.ReadTransactionResponse + * @memberof query.CreateTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReadTransactionResponse} ReadTransactionResponse + * @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 */ - ReadTransactionResponse.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 ReadTransactionResponse message. + * Verifies a CreateTransactionResponse message. * @function verify - * @memberof query.ReadTransactionResponse + * @memberof query.CreateTransactionResponse * @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) { + CreateTransactionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - let 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 CreateTransactionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReadTransactionResponse + * @memberof query.CreateTransactionResponse * @static * @param {Object.} object Plain object - * @returns {query.ReadTransactionResponse} ReadTransactionResponse + * @returns {query.CreateTransactionResponse} CreateTransactionResponse */ - ReadTransactionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReadTransactionResponse) + CreateTransactionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.CreateTransactionResponse) return object; - let 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.CreateTransactionResponse(); }; /** - * Creates a plain object from a ReadTransactionResponse 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.ReadTransactionResponse + * @memberof query.CreateTransactionResponse * @static - * @param {query.ReadTransactionResponse} message ReadTransactionResponse + * @param {query.CreateTransactionResponse} message CreateTransactionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadTransactionResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let 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; + CreateTransactionResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ReadTransactionResponse to JSON. + * Converts this CreateTransactionResponse to JSON. * @function toJSON - * @memberof query.ReadTransactionResponse + * @memberof query.CreateTransactionResponse * @instance * @returns {Object.} JSON object */ - ReadTransactionResponse.prototype.toJSON = function toJSON() { + CreateTransactionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadTransactionResponse + * Gets the default type url for CreateTransactionResponse * @function getTypeUrl - * @memberof query.ReadTransactionResponse + * @memberof query.CreateTransactionResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadTransactionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateTransactionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ReadTransactionResponse"; + return typeUrlPrefix + "/query.CreateTransactionResponse"; }; - return ReadTransactionResponse; + return CreateTransactionResponse; })(); - query.UnresolvedTransactionsRequest = (function() { + query.StartCommitRequest = (function() { /** - * Properties of an UnresolvedTransactionsRequest. + * Properties of a StartCommitRequest. * @memberof query - * @interface IUnresolvedTransactionsRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] UnresolvedTransactionsRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] UnresolvedTransactionsRequest immediate_caller_id - * @property {query.ITarget|null} [target] UnresolvedTransactionsRequest target - * @property {number|Long|null} [abandon_age] UnresolvedTransactionsRequest abandon_age + * @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 UnresolvedTransactionsRequest. + * Constructs a new StartCommitRequest. * @memberof query - * @classdesc Represents an UnresolvedTransactionsRequest. - * @implements IUnresolvedTransactionsRequest + * @classdesc Represents a StartCommitRequest. + * @implements IStartCommitRequest * @constructor - * @param {query.IUnresolvedTransactionsRequest=} [properties] Properties to set + * @param {query.IStartCommitRequest=} [properties] Properties to set */ - function UnresolvedTransactionsRequest(properties) { + function StartCommitRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -108015,59 +108374,67 @@ export const query = $root.query = (() => { } /** - * UnresolvedTransactionsRequest effective_caller_id. + * StartCommitRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.UnresolvedTransactionsRequest + * @memberof query.StartCommitRequest * @instance */ - UnresolvedTransactionsRequest.prototype.effective_caller_id = null; + StartCommitRequest.prototype.effective_caller_id = null; /** - * UnresolvedTransactionsRequest immediate_caller_id. + * StartCommitRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.UnresolvedTransactionsRequest + * @memberof query.StartCommitRequest * @instance */ - UnresolvedTransactionsRequest.prototype.immediate_caller_id = null; + StartCommitRequest.prototype.immediate_caller_id = null; /** - * UnresolvedTransactionsRequest target. + * StartCommitRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.UnresolvedTransactionsRequest + * @memberof query.StartCommitRequest * @instance */ - UnresolvedTransactionsRequest.prototype.target = null; + StartCommitRequest.prototype.target = null; /** - * UnresolvedTransactionsRequest abandon_age. - * @member {number|Long} abandon_age - * @memberof query.UnresolvedTransactionsRequest + * StartCommitRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.StartCommitRequest * @instance */ - UnresolvedTransactionsRequest.prototype.abandon_age = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StartCommitRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new UnresolvedTransactionsRequest instance using the specified properties. + * 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.UnresolvedTransactionsRequest + * @memberof query.StartCommitRequest * @static - * @param {query.IUnresolvedTransactionsRequest=} [properties] Properties to set - * @returns {query.UnresolvedTransactionsRequest} UnresolvedTransactionsRequest instance + * @param {query.IStartCommitRequest=} [properties] Properties to set + * @returns {query.StartCommitRequest} StartCommitRequest instance */ - UnresolvedTransactionsRequest.create = function create(properties) { - return new UnresolvedTransactionsRequest(properties); + StartCommitRequest.create = function create(properties) { + return new StartCommitRequest(properties); }; /** - * Encodes the specified UnresolvedTransactionsRequest message. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages. + * Encodes the specified StartCommitRequest message. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. * @function encode - * @memberof query.UnresolvedTransactionsRequest + * @memberof query.StartCommitRequest * @static - * @param {query.IUnresolvedTransactionsRequest} message UnresolvedTransactionsRequest 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 */ - UnresolvedTransactionsRequest.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")) @@ -108076,39 +108443,41 @@ export const query = $root.query = (() => { $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.abandon_age != null && Object.hasOwnProperty.call(message, "abandon_age")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.abandon_age); + 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 UnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages. + * Encodes the specified StartCommitRequest message, length delimited. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.UnresolvedTransactionsRequest + * @memberof query.StartCommitRequest * @static - * @param {query.IUnresolvedTransactionsRequest} message UnresolvedTransactionsRequest 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 */ - UnresolvedTransactionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + StartCommitRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer. + * Decodes a StartCommitRequest message from the specified reader or buffer. * @function decode - * @memberof query.UnresolvedTransactionsRequest + * @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.UnresolvedTransactionsRequest} UnresolvedTransactionsRequest + * @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 */ - UnresolvedTransactionsRequest.decode = function decode(reader, length) { + StartCommitRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.UnresolvedTransactionsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StartCommitRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -108125,7 +108494,11 @@ export const query = $root.query = (() => { break; } case 4: { - message.abandon_age = reader.int64(); + message.transaction_id = reader.int64(); + break; + } + case 5: { + message.dtid = reader.string(); break; } default: @@ -108137,30 +108510,30 @@ export const query = $root.query = (() => { }; /** - * Decodes an UnresolvedTransactionsRequest 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.UnresolvedTransactionsRequest + * @memberof query.StartCommitRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.UnresolvedTransactionsRequest} UnresolvedTransactionsRequest + * @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 */ - UnresolvedTransactionsRequest.decodeDelimited = function decodeDelimited(reader) { + StartCommitRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UnresolvedTransactionsRequest message. + * Verifies a StartCommitRequest message. * @function verify - * @memberof query.UnresolvedTransactionsRequest + * @memberof query.StartCommitRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UnresolvedTransactionsRequest.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")) { @@ -108178,61 +108551,66 @@ export const query = $root.query = (() => { if (error) return "target." + error; } - if (message.abandon_age != null && message.hasOwnProperty("abandon_age")) - if (!$util.isInteger(message.abandon_age) && !(message.abandon_age && $util.isInteger(message.abandon_age.low) && $util.isInteger(message.abandon_age.high))) - return "abandon_age: integer|Long expected"; + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates an UnresolvedTransactionsRequest 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.UnresolvedTransactionsRequest + * @memberof query.StartCommitRequest * @static * @param {Object.} object Plain object - * @returns {query.UnresolvedTransactionsRequest} UnresolvedTransactionsRequest + * @returns {query.StartCommitRequest} StartCommitRequest */ - UnresolvedTransactionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.UnresolvedTransactionsRequest) + StartCommitRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.StartCommitRequest) return object; - let message = new $root.query.UnresolvedTransactionsRequest(); + let message = new $root.query.StartCommitRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.UnresolvedTransactionsRequest.effective_caller_id: object expected"); + throw TypeError(".query.StartCommitRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.UnresolvedTransactionsRequest.immediate_caller_id: object expected"); + throw TypeError(".query.StartCommitRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.UnresolvedTransactionsRequest.target: object expected"); + throw TypeError(".query.StartCommitRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.abandon_age != null) + if (object.transaction_id != null) if ($util.Long) - (message.abandon_age = $util.Long.fromValue(object.abandon_age)).unsigned = false; - else if (typeof object.abandon_age === "string") - message.abandon_age = parseInt(object.abandon_age, 10); - else if (typeof object.abandon_age === "number") - message.abandon_age = object.abandon_age; - else if (typeof object.abandon_age === "object") - message.abandon_age = new $util.LongBits(object.abandon_age.low >>> 0, object.abandon_age.high >>> 0).toNumber(); + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.dtid != null) + message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from an UnresolvedTransactionsRequest 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.UnresolvedTransactionsRequest + * @memberof query.StartCommitRequest * @static - * @param {query.UnresolvedTransactionsRequest} message UnresolvedTransactionsRequest + * @param {query.StartCommitRequest} message StartCommitRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UnresolvedTransactionsRequest.toObject = function toObject(message, options) { + StartCommitRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -108242,9 +108620,10 @@ export const query = $root.query = (() => { object.target = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.abandon_age = 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.abandon_age = options.longs === String ? "0" : 0; + object.transaction_id = options.longs === String ? "0" : 0; + object.dtid = ""; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -108252,62 +108631,79 @@ export const query = $root.query = (() => { 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.abandon_age != null && message.hasOwnProperty("abandon_age")) - if (typeof message.abandon_age === "number") - object.abandon_age = options.longs === String ? String(message.abandon_age) : message.abandon_age; + 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.abandon_age = options.longs === String ? $util.Long.prototype.toString.call(message.abandon_age) : options.longs === Number ? new $util.LongBits(message.abandon_age.low >>> 0, message.abandon_age.high >>> 0).toNumber() : message.abandon_age; + 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 UnresolvedTransactionsRequest to JSON. + * Converts this StartCommitRequest to JSON. * @function toJSON - * @memberof query.UnresolvedTransactionsRequest + * @memberof query.StartCommitRequest * @instance * @returns {Object.} JSON object */ - UnresolvedTransactionsRequest.prototype.toJSON = function toJSON() { + StartCommitRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UnresolvedTransactionsRequest + * Gets the default type url for StartCommitRequest * @function getTypeUrl - * @memberof query.UnresolvedTransactionsRequest + * @memberof query.StartCommitRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UnresolvedTransactionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StartCommitRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.UnresolvedTransactionsRequest"; + return typeUrlPrefix + "/query.StartCommitRequest"; }; - return UnresolvedTransactionsRequest; + return StartCommitRequest; })(); - query.UnresolvedTransactionsResponse = (function() { + /** + * StartCommitState enum. + * @name query.StartCommitState + * @enum {number} + * @property {number} Unknown=0 Unknown value + * @property {number} Fail=1 Fail value + * @property {number} Success=2 Success value + */ + query.StartCommitState = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "Unknown"] = 0; + values[valuesById[1] = "Fail"] = 1; + values[valuesById[2] = "Success"] = 2; + return values; + })(); + + query.StartCommitResponse = (function() { /** - * Properties of an UnresolvedTransactionsResponse. + * Properties of a StartCommitResponse. * @memberof query - * @interface IUnresolvedTransactionsResponse - * @property {Array.|null} [transactions] UnresolvedTransactionsResponse transactions + * @interface IStartCommitResponse + * @property {query.StartCommitState|null} [state] StartCommitResponse state */ /** - * Constructs a new UnresolvedTransactionsResponse. + * Constructs a new StartCommitResponse. * @memberof query - * @classdesc Represents an UnresolvedTransactionsResponse. - * @implements IUnresolvedTransactionsResponse + * @classdesc Represents a StartCommitResponse. + * @implements IStartCommitResponse * @constructor - * @param {query.IUnresolvedTransactionsResponse=} [properties] Properties to set + * @param {query.IStartCommitResponse=} [properties] Properties to set */ - function UnresolvedTransactionsResponse(properties) { - this.transactions = []; + function StartCommitResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -108315,78 +108711,75 @@ export const query = $root.query = (() => { } /** - * UnresolvedTransactionsResponse transactions. - * @member {Array.} transactions - * @memberof query.UnresolvedTransactionsResponse + * StartCommitResponse state. + * @member {query.StartCommitState} state + * @memberof query.StartCommitResponse * @instance */ - UnresolvedTransactionsResponse.prototype.transactions = $util.emptyArray; + StartCommitResponse.prototype.state = 0; /** - * Creates a new UnresolvedTransactionsResponse instance using the specified properties. + * Creates a new StartCommitResponse instance using the specified properties. * @function create - * @memberof query.UnresolvedTransactionsResponse + * @memberof query.StartCommitResponse * @static - * @param {query.IUnresolvedTransactionsResponse=} [properties] Properties to set - * @returns {query.UnresolvedTransactionsResponse} UnresolvedTransactionsResponse instance + * @param {query.IStartCommitResponse=} [properties] Properties to set + * @returns {query.StartCommitResponse} StartCommitResponse instance */ - UnresolvedTransactionsResponse.create = function create(properties) { - return new UnresolvedTransactionsResponse(properties); + StartCommitResponse.create = function create(properties) { + return new StartCommitResponse(properties); }; /** - * Encodes the specified UnresolvedTransactionsResponse message. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages. + * Encodes the specified StartCommitResponse message. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. * @function encode - * @memberof query.UnresolvedTransactionsResponse + * @memberof query.StartCommitResponse * @static - * @param {query.IUnresolvedTransactionsResponse} message UnresolvedTransactionsResponse 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 */ - UnresolvedTransactionsResponse.encode = function encode(message, writer) { + StartCommitResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transactions != null && message.transactions.length) - for (let i = 0; i < message.transactions.length; ++i) - $root.query.TransactionMetadata.encode(message.transactions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); return writer; }; /** - * Encodes the specified UnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages. + * Encodes the specified StartCommitResponse message, length delimited. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.UnresolvedTransactionsResponse + * @memberof query.StartCommitResponse * @static - * @param {query.IUnresolvedTransactionsResponse} message UnresolvedTransactionsResponse 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 */ - UnresolvedTransactionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + StartCommitResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer. + * Decodes a StartCommitResponse message from the specified reader or buffer. * @function decode - * @memberof query.UnresolvedTransactionsResponse + * @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.UnresolvedTransactionsResponse} UnresolvedTransactionsResponse + * @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 */ - UnresolvedTransactionsResponse.decode = function decode(reader, length) { + StartCommitResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.UnresolvedTransactionsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StartCommitResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.transactions && message.transactions.length)) - message.transactions = []; - message.transactions.push($root.query.TransactionMetadata.decode(reader, reader.uint32())); + message.state = reader.int32(); break; } default: @@ -108398,146 +108791,150 @@ export const query = $root.query = (() => { }; /** - * Decodes an UnresolvedTransactionsResponse 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.UnresolvedTransactionsResponse + * @memberof query.StartCommitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.UnresolvedTransactionsResponse} UnresolvedTransactionsResponse + * @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 */ - UnresolvedTransactionsResponse.decodeDelimited = function decodeDelimited(reader) { + StartCommitResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UnresolvedTransactionsResponse message. + * Verifies a StartCommitResponse message. * @function verify - * @memberof query.UnresolvedTransactionsResponse + * @memberof query.StartCommitResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UnresolvedTransactionsResponse.verify = function verify(message) { + StartCommitResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.transactions != null && message.hasOwnProperty("transactions")) { - if (!Array.isArray(message.transactions)) - return "transactions: array expected"; - for (let i = 0; i < message.transactions.length; ++i) { - let error = $root.query.TransactionMetadata.verify(message.transactions[i]); - if (error) - return "transactions." + error; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; } - } return null; }; /** - * Creates an UnresolvedTransactionsResponse 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.UnresolvedTransactionsResponse + * @memberof query.StartCommitResponse * @static * @param {Object.} object Plain object - * @returns {query.UnresolvedTransactionsResponse} UnresolvedTransactionsResponse + * @returns {query.StartCommitResponse} StartCommitResponse */ - UnresolvedTransactionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.UnresolvedTransactionsResponse) + StartCommitResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.StartCommitResponse) return object; - let message = new $root.query.UnresolvedTransactionsResponse(); - if (object.transactions) { - if (!Array.isArray(object.transactions)) - throw TypeError(".query.UnresolvedTransactionsResponse.transactions: array expected"); - message.transactions = []; - for (let i = 0; i < object.transactions.length; ++i) { - if (typeof object.transactions[i] !== "object") - throw TypeError(".query.UnresolvedTransactionsResponse.transactions: object expected"); - message.transactions[i] = $root.query.TransactionMetadata.fromObject(object.transactions[i]); + let message = new $root.query.StartCommitResponse(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; } + break; + case "Unknown": + case 0: + message.state = 0; + break; + case "Fail": + case 1: + message.state = 1; + break; + case "Success": + case 2: + message.state = 2; + break; } return message; }; /** - * Creates a plain object from an UnresolvedTransactionsResponse 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.UnresolvedTransactionsResponse + * @memberof query.StartCommitResponse * @static - * @param {query.UnresolvedTransactionsResponse} message UnresolvedTransactionsResponse + * @param {query.StartCommitResponse} message StartCommitResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UnresolvedTransactionsResponse.toObject = function toObject(message, options) { + StartCommitResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.transactions = []; - if (message.transactions && message.transactions.length) { - object.transactions = []; - for (let j = 0; j < message.transactions.length; ++j) - object.transactions[j] = $root.query.TransactionMetadata.toObject(message.transactions[j], options); - } + if (options.defaults) + object.state = options.enums === String ? "Unknown" : 0; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.query.StartCommitState[message.state] === undefined ? message.state : $root.query.StartCommitState[message.state] : message.state; return object; }; /** - * Converts this UnresolvedTransactionsResponse to JSON. + * Converts this StartCommitResponse to JSON. * @function toJSON - * @memberof query.UnresolvedTransactionsResponse + * @memberof query.StartCommitResponse * @instance * @returns {Object.} JSON object */ - UnresolvedTransactionsResponse.prototype.toJSON = function toJSON() { + StartCommitResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UnresolvedTransactionsResponse + * Gets the default type url for StartCommitResponse * @function getTypeUrl - * @memberof query.UnresolvedTransactionsResponse + * @memberof query.StartCommitResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UnresolvedTransactionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StartCommitResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.UnresolvedTransactionsResponse"; + return typeUrlPrefix + "/query.StartCommitResponse"; }; - return UnresolvedTransactionsResponse; + return StartCommitResponse; })(); - query.BeginExecuteRequest = (function() { + query.SetRollbackRequest = (function() { /** - * Properties of a BeginExecuteRequest. + * Properties of a SetRollbackRequest. * @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 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 BeginExecuteRequest. + * Constructs a new SetRollbackRequest. * @memberof query - * @classdesc Represents a BeginExecuteRequest. - * @implements IBeginExecuteRequest + * @classdesc Represents a SetRollbackRequest. + * @implements ISetRollbackRequest * @constructor - * @param {query.IBeginExecuteRequest=} [properties] Properties to set + * @param {query.ISetRollbackRequest=} [properties] Properties to set */ - function BeginExecuteRequest(properties) { - this.pre_queries = []; + function SetRollbackRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -108545,83 +108942,67 @@ export const query = $root.query = (() => { } /** - * BeginExecuteRequest effective_caller_id. + * SetRollbackRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.BeginExecuteRequest + * @memberof query.SetRollbackRequest * @instance */ - BeginExecuteRequest.prototype.effective_caller_id = null; + SetRollbackRequest.prototype.effective_caller_id = null; /** - * BeginExecuteRequest immediate_caller_id. + * SetRollbackRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.BeginExecuteRequest + * @memberof query.SetRollbackRequest * @instance */ - BeginExecuteRequest.prototype.immediate_caller_id = null; + SetRollbackRequest.prototype.immediate_caller_id = null; /** - * BeginExecuteRequest target. + * SetRollbackRequest 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 + * @memberof query.SetRollbackRequest * @instance */ - BeginExecuteRequest.prototype.options = null; + SetRollbackRequest.prototype.target = null; /** - * BeginExecuteRequest reserved_id. - * @member {number|Long} reserved_id - * @memberof query.BeginExecuteRequest + * SetRollbackRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.SetRollbackRequest * @instance */ - BeginExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SetRollbackRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * BeginExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.BeginExecuteRequest + * SetRollbackRequest dtid. + * @member {string} dtid + * @memberof query.SetRollbackRequest * @instance */ - BeginExecuteRequest.prototype.pre_queries = $util.emptyArray; + SetRollbackRequest.prototype.dtid = ""; /** - * Creates a new BeginExecuteRequest instance using the specified properties. + * Creates a new SetRollbackRequest instance using the specified properties. * @function create - * @memberof query.BeginExecuteRequest + * @memberof query.SetRollbackRequest * @static - * @param {query.IBeginExecuteRequest=} [properties] Properties to set - * @returns {query.BeginExecuteRequest} BeginExecuteRequest instance + * @param {query.ISetRollbackRequest=} [properties] Properties to set + * @returns {query.SetRollbackRequest} SetRollbackRequest instance */ - BeginExecuteRequest.create = function create(properties) { - return new BeginExecuteRequest(properties); + SetRollbackRequest.create = function create(properties) { + return new SetRollbackRequest(properties); }; /** - * Encodes the specified BeginExecuteRequest message. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. + * Encodes the specified SetRollbackRequest message. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. * @function encode - * @memberof query.BeginExecuteRequest + * @memberof query.SetRollbackRequest * @static - * @param {query.IBeginExecuteRequest} message BeginExecuteRequest 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 */ - BeginExecuteRequest.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")) @@ -108630,46 +109011,41 @@ export const query = $root.query = (() => { $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 (let i = 0; i < message.pre_queries.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); + 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 BeginExecuteRequest message, length delimited. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. + * Encodes the specified SetRollbackRequest message, length delimited. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginExecuteRequest + * @memberof query.SetRollbackRequest * @static - * @param {query.IBeginExecuteRequest} message BeginExecuteRequest 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 */ - BeginExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetRollbackRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginExecuteRequest message from the specified reader or buffer. + * Decodes a SetRollbackRequest message from the specified reader or buffer. * @function decode - * @memberof query.BeginExecuteRequest + * @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.BeginExecuteRequest} BeginExecuteRequest + * @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 */ - BeginExecuteRequest.decode = function decode(reader, length) { + SetRollbackRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginExecuteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.SetRollbackRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -108686,21 +109062,11 @@ export const query = $root.query = (() => { break; } case 4: { - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + message.transaction_id = reader.int64(); break; } case 5: { - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); - break; - } - case 6: { - 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: @@ -108712,30 +109078,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a BeginExecuteRequest 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.BeginExecuteRequest + * @memberof query.SetRollbackRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginExecuteRequest} BeginExecuteRequest + * @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 */ - BeginExecuteRequest.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 BeginExecuteRequest message. + * Verifies a SetRollbackRequest message. * @function verify - * @memberof query.BeginExecuteRequest + * @memberof query.SetRollbackRequest * @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) { + 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")) { @@ -108753,111 +109119,79 @@ export const query = $root.query = (() => { if (error) return "target." + error; } - if (message.query != null && message.hasOwnProperty("query")) { - let error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - let 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 (let i = 0; i < message.pre_queries.length; ++i) - if (!$util.isString(message.pre_queries[i])) - return "pre_queries: string[] expected"; - } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + 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 SetRollbackRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginExecuteRequest + * @memberof query.SetRollbackRequest * @static * @param {Object.} object Plain object - * @returns {query.BeginExecuteRequest} BeginExecuteRequest + * @returns {query.SetRollbackRequest} SetRollbackRequest */ - BeginExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginExecuteRequest) + SetRollbackRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.SetRollbackRequest) return object; - let message = new $root.query.BeginExecuteRequest(); + let message = new $root.query.SetRollbackRequest(); 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.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.BeginExecuteRequest.immediate_caller_id: object expected"); + throw TypeError(".query.SetRollbackRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.BeginExecuteRequest.target: object expected"); + throw TypeError(".query.SetRollbackRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".query.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 (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(); - if (object.pre_queries) { - if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.BeginExecuteRequest.pre_queries: array expected"); - message.pre_queries = []; - for (let i = 0; i < object.pre_queries.length; ++i) - message.pre_queries[i] = String(object.pre_queries[i]); - } + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.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 SetRollbackRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.BeginExecuteRequest + * @memberof query.SetRollbackRequest * @static - * @param {query.BeginExecuteRequest} message BeginExecuteRequest + * @param {query.SetRollbackRequest} message SetRollbackRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginExecuteRequest.toObject = function toObject(message, options) { + SetRollbackRequest.toObject = function toObject(message, options) { if (!options) options = {}; let 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) { let long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.reserved_id = options.longs === String ? "0" : 0; + object.transaction_id = options.longs === String ? "0" : 0; + object.dtid = ""; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -108865,74 +109199,62 @@ export const query = $root.query = (() => { 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; + 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; - if (message.pre_queries && message.pre_queries.length) { - object.pre_queries = []; - for (let j = 0; j < message.pre_queries.length; ++j) - object.pre_queries[j] = message.pre_queries[j]; - } + 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 BeginExecuteRequest to JSON. + * Converts this SetRollbackRequest to JSON. * @function toJSON - * @memberof query.BeginExecuteRequest + * @memberof query.SetRollbackRequest * @instance * @returns {Object.} JSON object */ - BeginExecuteRequest.prototype.toJSON = function toJSON() { + SetRollbackRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BeginExecuteRequest + * Gets the default type url for SetRollbackRequest * @function getTypeUrl - * @memberof query.BeginExecuteRequest + * @memberof query.SetRollbackRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BeginExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetRollbackRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.BeginExecuteRequest"; + return typeUrlPrefix + "/query.SetRollbackRequest"; }; - return BeginExecuteRequest; + return SetRollbackRequest; })(); - query.BeginExecuteResponse = (function() { + query.SetRollbackResponse = (function() { /** - * Properties of a BeginExecuteResponse. + * Properties of a SetRollbackResponse. * @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 ISetRollbackResponse */ /** - * Constructs a new BeginExecuteResponse. + * Constructs a new SetRollbackResponse. * @memberof query - * @classdesc Represents a BeginExecuteResponse. - * @implements IBeginExecuteResponse + * @classdesc Represents a SetRollbackResponse. + * @implements ISetRollbackResponse * @constructor - * @param {query.IBeginExecuteResponse=} [properties] Properties to set + * @param {query.ISetRollbackResponse=} [properties] Properties to set */ - function BeginExecuteResponse(properties) { + function SetRollbackResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -108940,133 +109262,63 @@ export const query = $root.query = (() => { } /** - * BeginExecuteResponse error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.BeginExecuteResponse - * @instance - */ - BeginExecuteResponse.prototype.error = null; - - /** - * BeginExecuteResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.BeginExecuteResponse - * @instance - */ - BeginExecuteResponse.prototype.result = null; - - /** - * BeginExecuteResponse transaction_id. - * @member {number|Long} transaction_id - * @memberof query.BeginExecuteResponse - * @instance - */ - BeginExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * BeginExecuteResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.BeginExecuteResponse - * @instance - */ - BeginExecuteResponse.prototype.tablet_alias = null; - - /** - * BeginExecuteResponse session_state_changes. - * @member {string} session_state_changes - * @memberof query.BeginExecuteResponse - * @instance - */ - BeginExecuteResponse.prototype.session_state_changes = ""; - - /** - * Creates a new BeginExecuteResponse instance using the specified properties. + * Creates a new SetRollbackResponse instance using the specified properties. * @function create - * @memberof query.BeginExecuteResponse + * @memberof query.SetRollbackResponse * @static - * @param {query.IBeginExecuteResponse=} [properties] Properties to set - * @returns {query.BeginExecuteResponse} BeginExecuteResponse instance + * @param {query.ISetRollbackResponse=} [properties] Properties to set + * @returns {query.SetRollbackResponse} SetRollbackResponse instance */ - BeginExecuteResponse.create = function create(properties) { - return new BeginExecuteResponse(properties); + SetRollbackResponse.create = function create(properties) { + return new SetRollbackResponse(properties); }; /** - * Encodes the specified BeginExecuteResponse message. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. + * Encodes the specified SetRollbackResponse message. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. * @function encode - * @memberof query.BeginExecuteResponse + * @memberof query.SetRollbackResponse * @static - * @param {query.IBeginExecuteResponse} message BeginExecuteResponse message or plain object to encode + * @param {query.ISetRollbackResponse} message SetRollbackResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginExecuteResponse.encode = function encode(message, writer) { + SetRollbackResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.transaction_id); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.session_state_changes); return writer; }; /** - * Encodes the specified BeginExecuteResponse message, length delimited. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. + * Encodes the specified SetRollbackResponse message, length delimited. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginExecuteResponse + * @memberof query.SetRollbackResponse * @static - * @param {query.IBeginExecuteResponse} message BeginExecuteResponse message or plain object to encode + * @param {query.ISetRollbackResponse} message SetRollbackResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + SetRollbackResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginExecuteResponse message from the specified reader or buffer. + * Decodes a SetRollbackResponse message from the specified reader or buffer. * @function decode - * @memberof query.BeginExecuteResponse + * @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.BeginExecuteResponse} BeginExecuteResponse + * @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 */ - BeginExecuteResponse.decode = function decode(reader, length) { + SetRollbackResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginExecuteResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.SetRollbackResponse(); while (reader.pos < end) { let 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; @@ -109076,191 +109328,112 @@ export const query = $root.query = (() => { }; /** - * Decodes a BeginExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a SetRollbackResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BeginExecuteResponse + * @memberof query.SetRollbackResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginExecuteResponse} BeginExecuteResponse + * @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 */ - BeginExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + SetRollbackResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BeginExecuteResponse message. + * Verifies a SetRollbackResponse message. * @function verify - * @memberof query.BeginExecuteResponse + * @memberof query.SetRollbackResponse * @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) { + SetRollbackResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - let error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } - if (message.result != null && message.hasOwnProperty("result")) { - let 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")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - if (!$util.isString(message.session_state_changes)) - return "session_state_changes: string expected"; return null; }; /** - * Creates a BeginExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetRollbackResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginExecuteResponse + * @memberof query.SetRollbackResponse * @static * @param {Object.} object Plain object - * @returns {query.BeginExecuteResponse} BeginExecuteResponse + * @returns {query.SetRollbackResponse} SetRollbackResponse */ - BeginExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginExecuteResponse) + SetRollbackResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.SetRollbackResponse) return object; - let message = new $root.query.BeginExecuteResponse(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".query.BeginExecuteResponse.error: object expected"); - message.error = $root.vtrpc.RPCError.fromObject(object.error); - } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.BeginExecuteResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.BeginExecuteResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.session_state_changes != null) - message.session_state_changes = String(object.session_state_changes); - return message; + return new $root.query.SetRollbackResponse(); }; /** - * Creates a plain object from a BeginExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from a SetRollbackResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.BeginExecuteResponse + * @memberof query.SetRollbackResponse * @static - * @param {query.BeginExecuteResponse} message BeginExecuteResponse + * @param {query.SetRollbackResponse} message SetRollbackResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginExecuteResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.error = null; - object.result = null; - if ($util.Long) { - let 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; + SetRollbackResponse.toObject = function toObject() { + return {}; }; /** - * Converts this BeginExecuteResponse to JSON. + * Converts this SetRollbackResponse to JSON. * @function toJSON - * @memberof query.BeginExecuteResponse + * @memberof query.SetRollbackResponse * @instance * @returns {Object.} JSON object */ - BeginExecuteResponse.prototype.toJSON = function toJSON() { + SetRollbackResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BeginExecuteResponse + * Gets the default type url for SetRollbackResponse * @function getTypeUrl - * @memberof query.BeginExecuteResponse + * @memberof query.SetRollbackResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BeginExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetRollbackResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.BeginExecuteResponse"; + return typeUrlPrefix + "/query.SetRollbackResponse"; }; - return BeginExecuteResponse; + return SetRollbackResponse; })(); - query.BeginStreamExecuteRequest = (function() { + query.ConcludeTransactionRequest = (function() { /** - * Properties of a BeginStreamExecuteRequest. + * Properties of a ConcludeTransactionRequest. * @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 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 BeginStreamExecuteRequest. + * Constructs a new ConcludeTransactionRequest. * @memberof query - * @classdesc Represents a BeginStreamExecuteRequest. - * @implements IBeginStreamExecuteRequest + * @classdesc Represents a ConcludeTransactionRequest. + * @implements IConcludeTransactionRequest * @constructor - * @param {query.IBeginStreamExecuteRequest=} [properties] Properties to set + * @param {query.IConcludeTransactionRequest=} [properties] Properties to set */ - function BeginStreamExecuteRequest(properties) { - this.pre_queries = []; + function ConcludeTransactionRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109268,83 +109441,59 @@ export const query = $root.query = (() => { } /** - * BeginStreamExecuteRequest effective_caller_id. + * ConcludeTransactionRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.BeginStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @instance */ - BeginStreamExecuteRequest.prototype.effective_caller_id = null; + ConcludeTransactionRequest.prototype.effective_caller_id = null; /** - * BeginStreamExecuteRequest immediate_caller_id. + * ConcludeTransactionRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.BeginStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @instance */ - BeginStreamExecuteRequest.prototype.immediate_caller_id = null; + ConcludeTransactionRequest.prototype.immediate_caller_id = null; /** - * BeginStreamExecuteRequest target. + * ConcludeTransactionRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.BeginStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @instance */ - BeginStreamExecuteRequest.prototype.target = null; + ConcludeTransactionRequest.prototype.target = null; /** - * BeginStreamExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.BeginStreamExecuteRequest + * ConcludeTransactionRequest dtid. + * @member {string} dtid + * @memberof query.ConcludeTransactionRequest * @instance */ - BeginStreamExecuteRequest.prototype.query = null; + ConcludeTransactionRequest.prototype.dtid = ""; /** - * BeginStreamExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.BeginStreamExecuteRequest - * @instance + * Creates a new ConcludeTransactionRequest instance using the specified properties. + * @function create + * @memberof query.ConcludeTransactionRequest + * @static + * @param {query.IConcludeTransactionRequest=} [properties] Properties to set + * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest instance */ - BeginStreamExecuteRequest.prototype.options = null; + ConcludeTransactionRequest.create = function create(properties) { + return new ConcludeTransactionRequest(properties); + }; /** - * BeginStreamExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.BeginStreamExecuteRequest - * @instance + * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. + * @function encode + * @memberof query.ConcludeTransactionRequest + * @static + * @param {query.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - 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.BeginStreamExecuteRequest - * @static - * @param {query.IBeginStreamExecuteRequest=} [properties] Properties to set - * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest instance - */ - BeginStreamExecuteRequest.create = function create(properties) { - return new BeginStreamExecuteRequest(properties); - }; - - /** - * Encodes the specified BeginStreamExecuteRequest message. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. - * @function encode - * @memberof query.BeginStreamExecuteRequest - * @static - * @param {query.IBeginStreamExecuteRequest} message BeginStreamExecuteRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BeginStreamExecuteRequest.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")) @@ -109353,46 +109502,39 @@ export const query = $root.query = (() => { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.pre_queries != null && message.pre_queries.length) - for (let i = 0; i < message.pre_queries.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.pre_queries[i]); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.reserved_id); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); return writer; }; /** - * Encodes the specified BeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. + * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @static - * @param {query.IBeginStreamExecuteRequest} message BeginStreamExecuteRequest 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 */ - BeginStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + ConcludeTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer. + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. * @function decode - * @memberof query.BeginStreamExecuteRequest + * @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.BeginStreamExecuteRequest} BeginStreamExecuteRequest + * @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 */ - BeginStreamExecuteRequest.decode = function decode(reader, length) { + ConcludeTransactionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginStreamExecuteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ConcludeTransactionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -109409,21 +109551,7 @@ export const query = $root.query = (() => { break; } case 4: { - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); - break; - } - case 5: { - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); - break; - } - case 6: { - if (!(message.pre_queries && message.pre_queries.length)) - message.pre_queries = []; - message.pre_queries.push(reader.string()); - break; - } - case 7: { - message.reserved_id = reader.int64(); + message.dtid = reader.string(); break; } default: @@ -109435,30 +109563,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a BeginStreamExecuteRequest 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.BeginStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest + * @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 */ - BeginStreamExecuteRequest.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 BeginStreamExecuteRequest message. + * Verifies a ConcludeTransactionRequest message. * @function verify - * @memberof query.BeginStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @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) { + 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")) { @@ -109476,111 +109604,62 @@ export const query = $root.query = (() => { if (error) return "target." + error; } - if (message.query != null && message.hasOwnProperty("query")) { - let error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - let 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 (let i = 0; i < message.pre_queries.length; ++i) - if (!$util.isString(message.pre_queries[i])) - return "pre_queries: string[] expected"; - } - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a BeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @static * @param {Object.} object Plain object - * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest + * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest */ - BeginStreamExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginStreamExecuteRequest) + ConcludeTransactionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ConcludeTransactionRequest) return object; - let message = new $root.query.BeginStreamExecuteRequest(); + let message = new $root.query.ConcludeTransactionRequest(); 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.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.BeginStreamExecuteRequest.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.BeginStreamExecuteRequest.target: object expected"); + throw TypeError(".query.ConcludeTransactionRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".query.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 (let 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(); + if (object.dtid != null) + message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from a BeginStreamExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.BeginStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @static - * @param {query.BeginStreamExecuteRequest} message BeginStreamExecuteRequest + * @param {query.ConcludeTransactionRequest} message ConcludeTransactionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginStreamExecuteRequest.toObject = function toObject(message, options) { + ConcludeTransactionRequest.toObject = function toObject(message, options) { if (!options) options = {}; let 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) { - let 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); @@ -109588,74 +109667,57 @@ export const query = $root.query = (() => { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = $root.query.BoundQuery.toObject(message.query, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.pre_queries && message.pre_queries.length) { - object.pre_queries = []; - for (let 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.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; return object; }; /** - * Converts this BeginStreamExecuteRequest to JSON. + * Converts this ConcludeTransactionRequest to JSON. * @function toJSON - * @memberof query.BeginStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @instance * @returns {Object.} JSON object */ - BeginStreamExecuteRequest.prototype.toJSON = function toJSON() { + ConcludeTransactionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BeginStreamExecuteRequest + * Gets the default type url for ConcludeTransactionRequest * @function getTypeUrl - * @memberof query.BeginStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BeginStreamExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ConcludeTransactionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.BeginStreamExecuteRequest"; + return typeUrlPrefix + "/query.ConcludeTransactionRequest"; }; - return BeginStreamExecuteRequest; + return ConcludeTransactionRequest; })(); - query.BeginStreamExecuteResponse = (function() { + query.ConcludeTransactionResponse = (function() { /** - * Properties of a BeginStreamExecuteResponse. + * Properties of a ConcludeTransactionResponse. * @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 IConcludeTransactionResponse */ /** - * Constructs a new BeginStreamExecuteResponse. + * Constructs a new ConcludeTransactionResponse. * @memberof query - * @classdesc Represents a BeginStreamExecuteResponse. - * @implements IBeginStreamExecuteResponse + * @classdesc Represents a ConcludeTransactionResponse. + * @implements IConcludeTransactionResponse * @constructor - * @param {query.IBeginStreamExecuteResponse=} [properties] Properties to set + * @param {query.IConcludeTransactionResponse=} [properties] Properties to set */ - function BeginStreamExecuteResponse(properties) { + function ConcludeTransactionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109663,133 +109725,63 @@ export const query = $root.query = (() => { } /** - * BeginStreamExecuteResponse error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.BeginStreamExecuteResponse - * @instance - */ - BeginStreamExecuteResponse.prototype.error = null; - - /** - * BeginStreamExecuteResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.BeginStreamExecuteResponse - * @instance - */ - BeginStreamExecuteResponse.prototype.result = null; - - /** - * BeginStreamExecuteResponse transaction_id. - * @member {number|Long} transaction_id - * @memberof query.BeginStreamExecuteResponse - * @instance - */ - BeginStreamExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * BeginStreamExecuteResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.BeginStreamExecuteResponse - * @instance - */ - BeginStreamExecuteResponse.prototype.tablet_alias = null; - - /** - * BeginStreamExecuteResponse session_state_changes. - * @member {string} session_state_changes - * @memberof query.BeginStreamExecuteResponse - * @instance - */ - BeginStreamExecuteResponse.prototype.session_state_changes = ""; - - /** - * Creates a new BeginStreamExecuteResponse instance using the specified properties. + * Creates a new ConcludeTransactionResponse instance using the specified properties. * @function create - * @memberof query.BeginStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @static - * @param {query.IBeginStreamExecuteResponse=} [properties] Properties to set - * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse instance + * @param {query.IConcludeTransactionResponse=} [properties] Properties to set + * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse instance */ - BeginStreamExecuteResponse.create = function create(properties) { - return new BeginStreamExecuteResponse(properties); + ConcludeTransactionResponse.create = function create(properties) { + return new ConcludeTransactionResponse(properties); }; /** - * Encodes the specified BeginStreamExecuteResponse message. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. + * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. * @function encode - * @memberof query.BeginStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @static - * @param {query.IBeginStreamExecuteResponse} message BeginStreamExecuteResponse 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 */ - BeginStreamExecuteResponse.encode = function encode(message, writer) { + ConcludeTransactionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.transaction_id); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.session_state_changes); return writer; }; /** - * Encodes the specified BeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. + * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @static - * @param {query.IBeginStreamExecuteResponse} message BeginStreamExecuteResponse 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 */ - BeginStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + ConcludeTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer. + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. * @function decode - * @memberof query.BeginStreamExecuteResponse + * @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.BeginStreamExecuteResponse} BeginStreamExecuteResponse + * @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 */ - BeginStreamExecuteResponse.decode = function decode(reader, length) { + ConcludeTransactionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginStreamExecuteResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ConcludeTransactionResponse(); while (reader.pos < end) { let 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; @@ -109799,187 +109791,112 @@ export const query = $root.query = (() => { }; /** - * Decodes a BeginStreamExecuteResponse 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.BeginStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse + * @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 */ - BeginStreamExecuteResponse.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 BeginStreamExecuteResponse message. + * Verifies a ConcludeTransactionResponse message. * @function verify - * @memberof query.BeginStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @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) { + ConcludeTransactionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - let error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } - if (message.result != null && message.hasOwnProperty("result")) { - let 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")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - if (!$util.isString(message.session_state_changes)) - return "session_state_changes: string expected"; return null; }; /** - * Creates a BeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @static * @param {Object.} object Plain object - * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse + * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse */ - BeginStreamExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginStreamExecuteResponse) + ConcludeTransactionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ConcludeTransactionResponse) return object; - let message = new $root.query.BeginStreamExecuteResponse(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".query.BeginStreamExecuteResponse.error: object expected"); - message.error = $root.vtrpc.RPCError.fromObject(object.error); - } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.BeginStreamExecuteResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.BeginStreamExecuteResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.session_state_changes != null) - message.session_state_changes = String(object.session_state_changes); - return message; + return new $root.query.ConcludeTransactionResponse(); }; /** - * Creates a plain object from a BeginStreamExecuteResponse 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.BeginStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @static - * @param {query.BeginStreamExecuteResponse} message BeginStreamExecuteResponse + * @param {query.ConcludeTransactionResponse} message ConcludeTransactionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginStreamExecuteResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.error = null; - object.result = null; - if ($util.Long) { - let 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; + ConcludeTransactionResponse.toObject = function toObject() { + return {}; }; /** - * Converts this BeginStreamExecuteResponse to JSON. + * Converts this ConcludeTransactionResponse to JSON. * @function toJSON - * @memberof query.BeginStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @instance * @returns {Object.} JSON object */ - BeginStreamExecuteResponse.prototype.toJSON = function toJSON() { + ConcludeTransactionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BeginStreamExecuteResponse + * Gets the default type url for ConcludeTransactionResponse * @function getTypeUrl - * @memberof query.BeginStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BeginStreamExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ConcludeTransactionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.BeginStreamExecuteResponse"; + return typeUrlPrefix + "/query.ConcludeTransactionResponse"; }; - return BeginStreamExecuteResponse; + return ConcludeTransactionResponse; })(); - query.MessageStreamRequest = (function() { + query.ReadTransactionRequest = (function() { /** - * Properties of a MessageStreamRequest. + * Properties of a ReadTransactionRequest. * @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 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 MessageStreamRequest. + * Constructs a new ReadTransactionRequest. * @memberof query - * @classdesc Represents a MessageStreamRequest. - * @implements IMessageStreamRequest + * @classdesc Represents a ReadTransactionRequest. + * @implements IReadTransactionRequest * @constructor - * @param {query.IMessageStreamRequest=} [properties] Properties to set + * @param {query.IReadTransactionRequest=} [properties] Properties to set */ - function MessageStreamRequest(properties) { + function ReadTransactionRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109987,59 +109904,59 @@ export const query = $root.query = (() => { } /** - * MessageStreamRequest effective_caller_id. + * ReadTransactionRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.MessageStreamRequest + * @memberof query.ReadTransactionRequest * @instance */ - MessageStreamRequest.prototype.effective_caller_id = null; + ReadTransactionRequest.prototype.effective_caller_id = null; /** - * MessageStreamRequest immediate_caller_id. + * ReadTransactionRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.MessageStreamRequest + * @memberof query.ReadTransactionRequest * @instance */ - MessageStreamRequest.prototype.immediate_caller_id = null; + ReadTransactionRequest.prototype.immediate_caller_id = null; /** - * MessageStreamRequest target. + * ReadTransactionRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.MessageStreamRequest + * @memberof query.ReadTransactionRequest * @instance */ - MessageStreamRequest.prototype.target = null; + ReadTransactionRequest.prototype.target = null; /** - * MessageStreamRequest name. - * @member {string} name - * @memberof query.MessageStreamRequest + * ReadTransactionRequest dtid. + * @member {string} dtid + * @memberof query.ReadTransactionRequest * @instance */ - MessageStreamRequest.prototype.name = ""; + ReadTransactionRequest.prototype.dtid = ""; /** - * Creates a new MessageStreamRequest instance using the specified properties. + * Creates a new ReadTransactionRequest instance using the specified properties. * @function create - * @memberof query.MessageStreamRequest + * @memberof query.ReadTransactionRequest * @static - * @param {query.IMessageStreamRequest=} [properties] Properties to set - * @returns {query.MessageStreamRequest} MessageStreamRequest instance + * @param {query.IReadTransactionRequest=} [properties] Properties to set + * @returns {query.ReadTransactionRequest} ReadTransactionRequest instance */ - MessageStreamRequest.create = function create(properties) { - return new MessageStreamRequest(properties); + ReadTransactionRequest.create = function create(properties) { + return new ReadTransactionRequest(properties); }; /** - * Encodes the specified MessageStreamRequest message. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. + * Encodes the specified ReadTransactionRequest message. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. * @function encode - * @memberof query.MessageStreamRequest + * @memberof query.ReadTransactionRequest * @static - * @param {query.IMessageStreamRequest} message MessageStreamRequest 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 */ - MessageStreamRequest.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")) @@ -110048,39 +109965,39 @@ export const query = $root.query = (() => { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); return writer; }; /** - * Encodes the specified MessageStreamRequest message, length delimited. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. + * Encodes the specified ReadTransactionRequest message, length delimited. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.MessageStreamRequest + * @memberof query.ReadTransactionRequest * @static - * @param {query.IMessageStreamRequest} message MessageStreamRequest 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 */ - MessageStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReadTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageStreamRequest message from the specified reader or buffer. + * Decodes a ReadTransactionRequest message from the specified reader or buffer. * @function decode - * @memberof query.MessageStreamRequest + * @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.MessageStreamRequest} MessageStreamRequest + * @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 */ - MessageStreamRequest.decode = function decode(reader, length) { + ReadTransactionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageStreamRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReadTransactionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -110097,7 +110014,7 @@ export const query = $root.query = (() => { break; } case 4: { - message.name = reader.string(); + message.dtid = reader.string(); break; } default: @@ -110109,30 +110026,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a MessageStreamRequest 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.MessageStreamRequest + * @memberof query.ReadTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.MessageStreamRequest} MessageStreamRequest + * @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 */ - MessageStreamRequest.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 MessageStreamRequest message. + * Verifies a ReadTransactionRequest message. * @function verify - * @memberof query.MessageStreamRequest + * @memberof query.ReadTransactionRequest * @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) { + 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")) { @@ -110150,54 +110067,54 @@ export const query = $root.query = (() => { if (error) return "target." + error; } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a MessageStreamRequest 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.MessageStreamRequest + * @memberof query.ReadTransactionRequest * @static * @param {Object.} object Plain object - * @returns {query.MessageStreamRequest} MessageStreamRequest + * @returns {query.ReadTransactionRequest} ReadTransactionRequest */ - MessageStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.MessageStreamRequest) + ReadTransactionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReadTransactionRequest) return object; - let message = new $root.query.MessageStreamRequest(); + let message = new $root.query.ReadTransactionRequest(); 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.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.MessageStreamRequest.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.MessageStreamRequest.target: object expected"); + throw TypeError(".query.ReadTransactionRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.name != null) - message.name = String(object.name); + if (object.dtid != null) + message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from a MessageStreamRequest 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.MessageStreamRequest + * @memberof query.ReadTransactionRequest * @static - * @param {query.MessageStreamRequest} message MessageStreamRequest + * @param {query.ReadTransactionRequest} message ReadTransactionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageStreamRequest.toObject = function toObject(message, options) { + ReadTransactionRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -110205,7 +110122,7 @@ export const query = $root.query = (() => { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.name = ""; + object.dtid = ""; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -110213,58 +110130,58 @@ export const query = $root.query = (() => { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; return object; }; /** - * Converts this MessageStreamRequest to JSON. + * Converts this ReadTransactionRequest to JSON. * @function toJSON - * @memberof query.MessageStreamRequest + * @memberof query.ReadTransactionRequest * @instance * @returns {Object.} JSON object */ - MessageStreamRequest.prototype.toJSON = function toJSON() { + ReadTransactionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MessageStreamRequest + * Gets the default type url for ReadTransactionRequest * @function getTypeUrl - * @memberof query.MessageStreamRequest + * @memberof query.ReadTransactionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MessageStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadTransactionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.MessageStreamRequest"; + return typeUrlPrefix + "/query.ReadTransactionRequest"; }; - return MessageStreamRequest; + return ReadTransactionRequest; })(); - query.MessageStreamResponse = (function() { + query.ReadTransactionResponse = (function() { /** - * Properties of a MessageStreamResponse. + * Properties of a ReadTransactionResponse. * @memberof query - * @interface IMessageStreamResponse - * @property {query.IQueryResult|null} [result] MessageStreamResponse result + * @interface IReadTransactionResponse + * @property {query.ITransactionMetadata|null} [metadata] ReadTransactionResponse metadata */ /** - * Constructs a new MessageStreamResponse. + * Constructs a new ReadTransactionResponse. * @memberof query - * @classdesc Represents a MessageStreamResponse. - * @implements IMessageStreamResponse + * @classdesc Represents a ReadTransactionResponse. + * @implements IReadTransactionResponse * @constructor - * @param {query.IMessageStreamResponse=} [properties] Properties to set + * @param {query.IReadTransactionResponse=} [properties] Properties to set */ - function MessageStreamResponse(properties) { + function ReadTransactionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -110272,75 +110189,75 @@ export const query = $root.query = (() => { } /** - * MessageStreamResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.MessageStreamResponse + * ReadTransactionResponse metadata. + * @member {query.ITransactionMetadata|null|undefined} metadata + * @memberof query.ReadTransactionResponse * @instance */ - MessageStreamResponse.prototype.result = null; + ReadTransactionResponse.prototype.metadata = null; /** - * Creates a new MessageStreamResponse instance using the specified properties. + * Creates a new ReadTransactionResponse instance using the specified properties. * @function create - * @memberof query.MessageStreamResponse + * @memberof query.ReadTransactionResponse * @static - * @param {query.IMessageStreamResponse=} [properties] Properties to set - * @returns {query.MessageStreamResponse} MessageStreamResponse instance + * @param {query.IReadTransactionResponse=} [properties] Properties to set + * @returns {query.ReadTransactionResponse} ReadTransactionResponse instance */ - MessageStreamResponse.create = function create(properties) { - return new MessageStreamResponse(properties); + ReadTransactionResponse.create = function create(properties) { + return new ReadTransactionResponse(properties); }; /** - * Encodes the specified MessageStreamResponse message. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. + * Encodes the specified ReadTransactionResponse message. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. * @function encode - * @memberof query.MessageStreamResponse + * @memberof query.ReadTransactionResponse * @static - * @param {query.IMessageStreamResponse} message MessageStreamResponse 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 */ - MessageStreamResponse.encode = function encode(message, writer) { + ReadTransactionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.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 MessageStreamResponse message, length delimited. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. + * Encodes the specified ReadTransactionResponse message, length delimited. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.MessageStreamResponse + * @memberof query.ReadTransactionResponse * @static - * @param {query.IMessageStreamResponse} message MessageStreamResponse 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 */ - MessageStreamResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReadTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageStreamResponse message from the specified reader or buffer. + * Decodes a ReadTransactionResponse message from the specified reader or buffer. * @function decode - * @memberof query.MessageStreamResponse + * @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.MessageStreamResponse} MessageStreamResponse + * @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 */ - MessageStreamResponse.decode = function decode(reader, length) { + ReadTransactionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageStreamResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReadTransactionResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + message.metadata = $root.query.TransactionMetadata.decode(reader, reader.uint32()); break; } default: @@ -110352,132 +110269,130 @@ export const query = $root.query = (() => { }; /** - * Decodes a MessageStreamResponse 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.MessageStreamResponse + * @memberof query.ReadTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.MessageStreamResponse} MessageStreamResponse + * @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 */ - MessageStreamResponse.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 MessageStreamResponse message. + * Verifies a ReadTransactionResponse message. * @function verify - * @memberof query.MessageStreamResponse + * @memberof query.ReadTransactionResponse * @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) { + ReadTransactionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); + if (message.metadata != null && message.hasOwnProperty("metadata")) { + let error = $root.query.TransactionMetadata.verify(message.metadata); if (error) - return "result." + error; + return "metadata." + error; } return null; }; /** - * Creates a MessageStreamResponse 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.MessageStreamResponse + * @memberof query.ReadTransactionResponse * @static * @param {Object.} object Plain object - * @returns {query.MessageStreamResponse} MessageStreamResponse + * @returns {query.ReadTransactionResponse} ReadTransactionResponse */ - MessageStreamResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.MessageStreamResponse) + ReadTransactionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReadTransactionResponse) return object; - let message = new $root.query.MessageStreamResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.MessageStreamResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); + let 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; }; /** - * Creates a plain object from a MessageStreamResponse 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.MessageStreamResponse + * @memberof query.ReadTransactionResponse * @static - * @param {query.MessageStreamResponse} message MessageStreamResponse + * @param {query.ReadTransactionResponse} message ReadTransactionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageStreamResponse.toObject = function toObject(message, options) { + ReadTransactionResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); + object.metadata = null; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.query.TransactionMetadata.toObject(message.metadata, options); return object; }; /** - * Converts this MessageStreamResponse to JSON. + * Converts this ReadTransactionResponse to JSON. * @function toJSON - * @memberof query.MessageStreamResponse + * @memberof query.ReadTransactionResponse * @instance * @returns {Object.} JSON object */ - MessageStreamResponse.prototype.toJSON = function toJSON() { + ReadTransactionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MessageStreamResponse + * Gets the default type url for ReadTransactionResponse * @function getTypeUrl - * @memberof query.MessageStreamResponse + * @memberof query.ReadTransactionResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MessageStreamResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadTransactionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.MessageStreamResponse"; + return typeUrlPrefix + "/query.ReadTransactionResponse"; }; - return MessageStreamResponse; + return ReadTransactionResponse; })(); - query.MessageAckRequest = (function() { + query.UnresolvedTransactionsRequest = (function() { /** - * Properties of a MessageAckRequest. + * Properties of an UnresolvedTransactionsRequest. * @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 IUnresolvedTransactionsRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] UnresolvedTransactionsRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] UnresolvedTransactionsRequest immediate_caller_id + * @property {query.ITarget|null} [target] UnresolvedTransactionsRequest target + * @property {number|Long|null} [abandon_age] UnresolvedTransactionsRequest abandon_age */ /** - * Constructs a new MessageAckRequest. + * Constructs a new UnresolvedTransactionsRequest. * @memberof query - * @classdesc Represents a MessageAckRequest. - * @implements IMessageAckRequest + * @classdesc Represents an UnresolvedTransactionsRequest. + * @implements IUnresolvedTransactionsRequest * @constructor - * @param {query.IMessageAckRequest=} [properties] Properties to set + * @param {query.IUnresolvedTransactionsRequest=} [properties] Properties to set */ - function MessageAckRequest(properties) { - this.ids = []; + function UnresolvedTransactionsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -110485,67 +110400,59 @@ export const query = $root.query = (() => { } /** - * MessageAckRequest effective_caller_id. + * UnresolvedTransactionsRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.MessageAckRequest + * @memberof query.UnresolvedTransactionsRequest * @instance */ - MessageAckRequest.prototype.effective_caller_id = null; + UnresolvedTransactionsRequest.prototype.effective_caller_id = null; /** - * MessageAckRequest immediate_caller_id. + * UnresolvedTransactionsRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.MessageAckRequest + * @memberof query.UnresolvedTransactionsRequest * @instance */ - MessageAckRequest.prototype.immediate_caller_id = null; + UnresolvedTransactionsRequest.prototype.immediate_caller_id = null; /** - * MessageAckRequest target. + * UnresolvedTransactionsRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.MessageAckRequest - * @instance - */ - MessageAckRequest.prototype.target = null; - - /** - * MessageAckRequest name. - * @member {string} name - * @memberof query.MessageAckRequest + * @memberof query.UnresolvedTransactionsRequest * @instance */ - MessageAckRequest.prototype.name = ""; + UnresolvedTransactionsRequest.prototype.target = null; /** - * MessageAckRequest ids. - * @member {Array.} ids - * @memberof query.MessageAckRequest + * UnresolvedTransactionsRequest abandon_age. + * @member {number|Long} abandon_age + * @memberof query.UnresolvedTransactionsRequest * @instance */ - MessageAckRequest.prototype.ids = $util.emptyArray; + UnresolvedTransactionsRequest.prototype.abandon_age = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new MessageAckRequest instance using the specified properties. + * Creates a new UnresolvedTransactionsRequest instance using the specified properties. * @function create - * @memberof query.MessageAckRequest + * @memberof query.UnresolvedTransactionsRequest * @static - * @param {query.IMessageAckRequest=} [properties] Properties to set - * @returns {query.MessageAckRequest} MessageAckRequest instance + * @param {query.IUnresolvedTransactionsRequest=} [properties] Properties to set + * @returns {query.UnresolvedTransactionsRequest} UnresolvedTransactionsRequest instance */ - MessageAckRequest.create = function create(properties) { - return new MessageAckRequest(properties); + UnresolvedTransactionsRequest.create = function create(properties) { + return new UnresolvedTransactionsRequest(properties); }; /** - * Encodes the specified MessageAckRequest message. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. + * Encodes the specified UnresolvedTransactionsRequest message. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages. * @function encode - * @memberof query.MessageAckRequest + * @memberof query.UnresolvedTransactionsRequest * @static - * @param {query.IMessageAckRequest} message MessageAckRequest message or plain object to encode + * @param {query.IUnresolvedTransactionsRequest} message UnresolvedTransactionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageAckRequest.encode = function encode(message, writer) { + UnresolvedTransactionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -110554,42 +110461,39 @@ export const query = $root.query = (() => { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); - if (message.ids != null && message.ids.length) - for (let i = 0; i < message.ids.length; ++i) - $root.query.Value.encode(message.ids[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.abandon_age != null && Object.hasOwnProperty.call(message, "abandon_age")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.abandon_age); return writer; }; /** - * Encodes the specified MessageAckRequest message, length delimited. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. + * Encodes the specified UnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.MessageAckRequest + * @memberof query.UnresolvedTransactionsRequest * @static - * @param {query.IMessageAckRequest} message MessageAckRequest message or plain object to encode + * @param {query.IUnresolvedTransactionsRequest} message UnresolvedTransactionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageAckRequest.encodeDelimited = function encodeDelimited(message, writer) { + UnresolvedTransactionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageAckRequest message from the specified reader or buffer. + * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer. * @function decode - * @memberof query.MessageAckRequest + * @memberof query.UnresolvedTransactionsRequest * @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.UnresolvedTransactionsRequest} UnresolvedTransactionsRequest * @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) { + UnresolvedTransactionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageAckRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.UnresolvedTransactionsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -110606,13 +110510,7 @@ export const query = $root.query = (() => { break; } 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())); + message.abandon_age = reader.int64(); break; } default: @@ -110624,30 +110522,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a MessageAckRequest message from the specified reader or buffer, length delimited. + * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.MessageAckRequest + * @memberof query.UnresolvedTransactionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.MessageAckRequest} MessageAckRequest + * @returns {query.UnresolvedTransactionsRequest} UnresolvedTransactionsRequest * @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) { + UnresolvedTransactionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MessageAckRequest message. + * Verifies an UnresolvedTransactionsRequest message. * @function verify - * @memberof query.MessageAckRequest + * @memberof query.UnresolvedTransactionsRequest * @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) { + UnresolvedTransactionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -110665,83 +110563,73 @@ export const query = $root.query = (() => { if (error) return "target." + error; } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.ids != null && message.hasOwnProperty("ids")) { - if (!Array.isArray(message.ids)) - return "ids: array expected"; - for (let i = 0; i < message.ids.length; ++i) { - let error = $root.query.Value.verify(message.ids[i]); - if (error) - return "ids." + error; - } - } + if (message.abandon_age != null && message.hasOwnProperty("abandon_age")) + if (!$util.isInteger(message.abandon_age) && !(message.abandon_age && $util.isInteger(message.abandon_age.low) && $util.isInteger(message.abandon_age.high))) + return "abandon_age: integer|Long expected"; return null; }; /** - * Creates a MessageAckRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.MessageAckRequest + * @memberof query.UnresolvedTransactionsRequest * @static * @param {Object.} object Plain object - * @returns {query.MessageAckRequest} MessageAckRequest + * @returns {query.UnresolvedTransactionsRequest} UnresolvedTransactionsRequest */ - MessageAckRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.MessageAckRequest) + UnresolvedTransactionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.UnresolvedTransactionsRequest) return object; - let message = new $root.query.MessageAckRequest(); + let message = new $root.query.UnresolvedTransactionsRequest(); 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.UnresolvedTransactionsRequest.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.UnresolvedTransactionsRequest.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.UnresolvedTransactionsRequest.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 (let i = 0; i < object.ids.length; ++i) { - if (typeof object.ids[i] !== "object") - throw TypeError(".query.MessageAckRequest.ids: object expected"); - message.ids[i] = $root.query.Value.fromObject(object.ids[i]); - } - } + if (object.abandon_age != null) + if ($util.Long) + (message.abandon_age = $util.Long.fromValue(object.abandon_age)).unsigned = false; + else if (typeof object.abandon_age === "string") + message.abandon_age = parseInt(object.abandon_age, 10); + else if (typeof object.abandon_age === "number") + message.abandon_age = object.abandon_age; + else if (typeof object.abandon_age === "object") + message.abandon_age = new $util.LongBits(object.abandon_age.low >>> 0, object.abandon_age.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a MessageAckRequest message. Also converts values to other types if specified. + * Creates a plain object from an UnresolvedTransactionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.MessageAckRequest + * @memberof query.UnresolvedTransactionsRequest * @static - * @param {query.MessageAckRequest} message MessageAckRequest + * @param {query.UnresolvedTransactionsRequest} message UnresolvedTransactionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageAckRequest.toObject = function toObject(message, options) { + UnresolvedTransactionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.ids = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.name = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.abandon_age = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.abandon_age = 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); @@ -110749,63 +110637,62 @@ export const query = $root.query = (() => { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.ids && message.ids.length) { - object.ids = []; - for (let j = 0; j < message.ids.length; ++j) - object.ids[j] = $root.query.Value.toObject(message.ids[j], options); - } + if (message.abandon_age != null && message.hasOwnProperty("abandon_age")) + if (typeof message.abandon_age === "number") + object.abandon_age = options.longs === String ? String(message.abandon_age) : message.abandon_age; + else + object.abandon_age = options.longs === String ? $util.Long.prototype.toString.call(message.abandon_age) : options.longs === Number ? new $util.LongBits(message.abandon_age.low >>> 0, message.abandon_age.high >>> 0).toNumber() : message.abandon_age; return object; }; /** - * Converts this MessageAckRequest to JSON. + * Converts this UnresolvedTransactionsRequest to JSON. * @function toJSON - * @memberof query.MessageAckRequest + * @memberof query.UnresolvedTransactionsRequest * @instance * @returns {Object.} JSON object */ - MessageAckRequest.prototype.toJSON = function toJSON() { + UnresolvedTransactionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MessageAckRequest + * Gets the default type url for UnresolvedTransactionsRequest * @function getTypeUrl - * @memberof query.MessageAckRequest + * @memberof query.UnresolvedTransactionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MessageAckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UnresolvedTransactionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.MessageAckRequest"; + return typeUrlPrefix + "/query.UnresolvedTransactionsRequest"; }; - return MessageAckRequest; + return UnresolvedTransactionsRequest; })(); - query.MessageAckResponse = (function() { + query.UnresolvedTransactionsResponse = (function() { /** - * Properties of a MessageAckResponse. + * Properties of an UnresolvedTransactionsResponse. * @memberof query - * @interface IMessageAckResponse - * @property {query.IQueryResult|null} [result] MessageAckResponse result + * @interface IUnresolvedTransactionsResponse + * @property {Array.|null} [transactions] UnresolvedTransactionsResponse transactions */ /** - * Constructs a new MessageAckResponse. + * Constructs a new UnresolvedTransactionsResponse. * @memberof query - * @classdesc Represents a MessageAckResponse. - * @implements IMessageAckResponse + * @classdesc Represents an UnresolvedTransactionsResponse. + * @implements IUnresolvedTransactionsResponse * @constructor - * @param {query.IMessageAckResponse=} [properties] Properties to set + * @param {query.IUnresolvedTransactionsResponse=} [properties] Properties to set */ - function MessageAckResponse(properties) { + function UnresolvedTransactionsResponse(properties) { + this.transactions = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -110813,75 +110700,78 @@ export const query = $root.query = (() => { } /** - * MessageAckResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.MessageAckResponse + * UnresolvedTransactionsResponse transactions. + * @member {Array.} transactions + * @memberof query.UnresolvedTransactionsResponse * @instance */ - MessageAckResponse.prototype.result = null; + UnresolvedTransactionsResponse.prototype.transactions = $util.emptyArray; /** - * Creates a new MessageAckResponse instance using the specified properties. + * Creates a new UnresolvedTransactionsResponse instance using the specified properties. * @function create - * @memberof query.MessageAckResponse + * @memberof query.UnresolvedTransactionsResponse * @static - * @param {query.IMessageAckResponse=} [properties] Properties to set - * @returns {query.MessageAckResponse} MessageAckResponse instance + * @param {query.IUnresolvedTransactionsResponse=} [properties] Properties to set + * @returns {query.UnresolvedTransactionsResponse} UnresolvedTransactionsResponse instance */ - MessageAckResponse.create = function create(properties) { - return new MessageAckResponse(properties); + UnresolvedTransactionsResponse.create = function create(properties) { + return new UnresolvedTransactionsResponse(properties); }; /** - * Encodes the specified MessageAckResponse message. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. + * Encodes the specified UnresolvedTransactionsResponse message. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages. * @function encode - * @memberof query.MessageAckResponse + * @memberof query.UnresolvedTransactionsResponse * @static - * @param {query.IMessageAckResponse} message MessageAckResponse message or plain object to encode + * @param {query.IUnresolvedTransactionsResponse} message UnresolvedTransactionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageAckResponse.encode = function encode(message, writer) { + UnresolvedTransactionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.transactions != null && message.transactions.length) + for (let i = 0; i < message.transactions.length; ++i) + $root.query.TransactionMetadata.encode(message.transactions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MessageAckResponse message, length delimited. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. + * Encodes the specified UnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.MessageAckResponse + * @memberof query.UnresolvedTransactionsResponse * @static - * @param {query.IMessageAckResponse} message MessageAckResponse message or plain object to encode + * @param {query.IUnresolvedTransactionsResponse} message UnresolvedTransactionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageAckResponse.encodeDelimited = function encodeDelimited(message, writer) { + UnresolvedTransactionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageAckResponse message from the specified reader or buffer. + * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer. * @function decode - * @memberof query.MessageAckResponse + * @memberof query.UnresolvedTransactionsResponse * @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.UnresolvedTransactionsResponse} UnresolvedTransactionsResponse * @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) { + UnresolvedTransactionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageAckResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.UnresolvedTransactionsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + if (!(message.transactions && message.transactions.length)) + message.transactions = []; + message.transactions.push($root.query.TransactionMetadata.decode(reader, reader.uint32())); break; } default: @@ -110893,133 +110783,145 @@ export const query = $root.query = (() => { }; /** - * Decodes a MessageAckResponse message from the specified reader or buffer, length delimited. + * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.MessageAckResponse + * @memberof query.UnresolvedTransactionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.MessageAckResponse} MessageAckResponse + * @returns {query.UnresolvedTransactionsResponse} UnresolvedTransactionsResponse * @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) { + UnresolvedTransactionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MessageAckResponse message. + * Verifies an UnresolvedTransactionsResponse message. * @function verify - * @memberof query.MessageAckResponse + * @memberof query.UnresolvedTransactionsResponse * @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) { + UnresolvedTransactionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; + if (message.transactions != null && message.hasOwnProperty("transactions")) { + if (!Array.isArray(message.transactions)) + return "transactions: array expected"; + for (let i = 0; i < message.transactions.length; ++i) { + let error = $root.query.TransactionMetadata.verify(message.transactions[i]); + if (error) + return "transactions." + error; + } } return null; }; /** - * Creates a MessageAckResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.MessageAckResponse + * @memberof query.UnresolvedTransactionsResponse * @static * @param {Object.} object Plain object - * @returns {query.MessageAckResponse} MessageAckResponse + * @returns {query.UnresolvedTransactionsResponse} UnresolvedTransactionsResponse */ - MessageAckResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.MessageAckResponse) + UnresolvedTransactionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.UnresolvedTransactionsResponse) return object; - let message = new $root.query.MessageAckResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.MessageAckResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); + let message = new $root.query.UnresolvedTransactionsResponse(); + if (object.transactions) { + if (!Array.isArray(object.transactions)) + throw TypeError(".query.UnresolvedTransactionsResponse.transactions: array expected"); + message.transactions = []; + for (let i = 0; i < object.transactions.length; ++i) { + if (typeof object.transactions[i] !== "object") + throw TypeError(".query.UnresolvedTransactionsResponse.transactions: object expected"); + message.transactions[i] = $root.query.TransactionMetadata.fromObject(object.transactions[i]); + } } return message; }; /** - * Creates a plain object from a MessageAckResponse message. Also converts values to other types if specified. + * Creates a plain object from an UnresolvedTransactionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.MessageAckResponse + * @memberof query.UnresolvedTransactionsResponse * @static - * @param {query.MessageAckResponse} message MessageAckResponse + * @param {query.UnresolvedTransactionsResponse} message UnresolvedTransactionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageAckResponse.toObject = function toObject(message, options) { + UnresolvedTransactionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); + if (options.arrays || options.defaults) + object.transactions = []; + if (message.transactions && message.transactions.length) { + object.transactions = []; + for (let j = 0; j < message.transactions.length; ++j) + object.transactions[j] = $root.query.TransactionMetadata.toObject(message.transactions[j], options); + } return object; }; /** - * Converts this MessageAckResponse to JSON. + * Converts this UnresolvedTransactionsResponse to JSON. * @function toJSON - * @memberof query.MessageAckResponse + * @memberof query.UnresolvedTransactionsResponse * @instance * @returns {Object.} JSON object */ - MessageAckResponse.prototype.toJSON = function toJSON() { + UnresolvedTransactionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MessageAckResponse + * Gets the default type url for UnresolvedTransactionsResponse * @function getTypeUrl - * @memberof query.MessageAckResponse + * @memberof query.UnresolvedTransactionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MessageAckResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UnresolvedTransactionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.MessageAckResponse"; + return typeUrlPrefix + "/query.UnresolvedTransactionsResponse"; }; - return MessageAckResponse; + return UnresolvedTransactionsResponse; })(); - query.ReserveExecuteRequest = (function() { + query.BeginExecuteRequest = (function() { /** - * Properties of a ReserveExecuteRequest. + * Properties of a BeginExecuteRequest. * @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 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 ReserveExecuteRequest. + * Constructs a new BeginExecuteRequest. * @memberof query - * @classdesc Represents a ReserveExecuteRequest. - * @implements IReserveExecuteRequest + * @classdesc Represents a BeginExecuteRequest. + * @implements IBeginExecuteRequest * @constructor - * @param {query.IReserveExecuteRequest=} [properties] Properties to set + * @param {query.IBeginExecuteRequest=} [properties] Properties to set */ - function ReserveExecuteRequest(properties) { + function BeginExecuteRequest(properties) { this.pre_queries = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -111028,83 +110930,83 @@ export const query = $root.query = (() => { } /** - * ReserveExecuteRequest effective_caller_id. + * BeginExecuteRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReserveExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - ReserveExecuteRequest.prototype.effective_caller_id = null; + BeginExecuteRequest.prototype.effective_caller_id = null; /** - * ReserveExecuteRequest immediate_caller_id. + * BeginExecuteRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReserveExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - ReserveExecuteRequest.prototype.immediate_caller_id = null; + BeginExecuteRequest.prototype.immediate_caller_id = null; /** - * ReserveExecuteRequest target. + * BeginExecuteRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReserveExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - ReserveExecuteRequest.prototype.target = null; + BeginExecuteRequest.prototype.target = null; /** - * ReserveExecuteRequest query. + * BeginExecuteRequest query. * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ReserveExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - ReserveExecuteRequest.prototype.query = null; + BeginExecuteRequest.prototype.query = null; /** - * ReserveExecuteRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.ReserveExecuteRequest + * BeginExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.BeginExecuteRequest * @instance */ - ReserveExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BeginExecuteRequest.prototype.options = null; /** - * ReserveExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ReserveExecuteRequest + * BeginExecuteRequest reserved_id. + * @member {number|Long} reserved_id + * @memberof query.BeginExecuteRequest * @instance */ - ReserveExecuteRequest.prototype.options = null; + BeginExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReserveExecuteRequest pre_queries. + * BeginExecuteRequest pre_queries. * @member {Array.} pre_queries - * @memberof query.ReserveExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - ReserveExecuteRequest.prototype.pre_queries = $util.emptyArray; + BeginExecuteRequest.prototype.pre_queries = $util.emptyArray; /** - * Creates a new ReserveExecuteRequest instance using the specified properties. + * Creates a new BeginExecuteRequest instance using the specified properties. * @function create - * @memberof query.ReserveExecuteRequest + * @memberof query.BeginExecuteRequest * @static - * @param {query.IReserveExecuteRequest=} [properties] Properties to set - * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest instance + * @param {query.IBeginExecuteRequest=} [properties] Properties to set + * @returns {query.BeginExecuteRequest} BeginExecuteRequest instance */ - ReserveExecuteRequest.create = function create(properties) { - return new ReserveExecuteRequest(properties); + BeginExecuteRequest.create = function create(properties) { + return new BeginExecuteRequest(properties); }; /** - * Encodes the specified ReserveExecuteRequest message. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. + * Encodes the specified BeginExecuteRequest message. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.ReserveExecuteRequest + * @memberof query.BeginExecuteRequest * @static - * @param {query.IReserveExecuteRequest} message ReserveExecuteRequest 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 */ - ReserveExecuteRequest.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")) @@ -111115,10 +111017,10 @@ export const query = $root.query = (() => { $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(); + $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 (let i = 0; i < message.pre_queries.length; ++i) writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); @@ -111126,33 +111028,33 @@ export const query = $root.query = (() => { }; /** - * Encodes the specified ReserveExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. + * Encodes the specified BeginExecuteRequest message, length delimited. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveExecuteRequest + * @memberof query.BeginExecuteRequest * @static - * @param {query.IReserveExecuteRequest} message ReserveExecuteRequest 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 */ - ReserveExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + BeginExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveExecuteRequest message from the specified reader or buffer. + * Decodes a BeginExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReserveExecuteRequest + * @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.ReserveExecuteRequest} ReserveExecuteRequest + * @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 */ - ReserveExecuteRequest.decode = function decode(reader, length) { + BeginExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveExecuteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginExecuteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -111173,11 +111075,11 @@ export const query = $root.query = (() => { break; } case 5: { - message.transaction_id = reader.int64(); + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); break; } case 6: { - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + message.reserved_id = reader.int64(); break; } case 7: { @@ -111195,30 +111097,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a ReserveExecuteRequest 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.ReserveExecuteRequest + * @memberof query.BeginExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest + * @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 */ - ReserveExecuteRequest.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 ReserveExecuteRequest message. + * Verifies a BeginExecuteRequest message. * @function verify - * @memberof query.ReserveExecuteRequest + * @memberof query.BeginExecuteRequest * @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) { + 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")) { @@ -111241,14 +111143,14 @@ export const query = $root.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")) { let 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"; @@ -111260,54 +111162,54 @@ export const query = $root.query = (() => { }; /** - * Creates a ReserveExecuteRequest 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.ReserveExecuteRequest + * @memberof query.BeginExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest + * @returns {query.BeginExecuteRequest} BeginExecuteRequest */ - ReserveExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveExecuteRequest) + BeginExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginExecuteRequest) return object; - let message = new $root.query.ReserveExecuteRequest(); + let message = new $root.query.BeginExecuteRequest(); 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.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.ReserveExecuteRequest.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.ReserveExecuteRequest.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.ReserveExecuteRequest.query: object expected"); + throw TypeError(".query.BeginExecuteRequest.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"); + 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.ReserveExecuteRequest.pre_queries: array expected"); + throw TypeError(".query.BeginExecuteRequest.pre_queries: array expected"); message.pre_queries = []; for (let i = 0; i < object.pre_queries.length; ++i) message.pre_queries[i] = String(object.pre_queries[i]); @@ -111316,15 +111218,15 @@ export const query = $root.query = (() => { }; /** - * Creates a plain object from a ReserveExecuteRequest 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.ReserveExecuteRequest + * @memberof query.BeginExecuteRequest * @static - * @param {query.ReserveExecuteRequest} message ReserveExecuteRequest + * @param {query.BeginExecuteRequest} message BeginExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveExecuteRequest.toObject = function toObject(message, options) { + BeginExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -111335,12 +111237,12 @@ export const query = $root.query = (() => { object.immediate_caller_id = null; object.target = null; object.query = null; + object.options = null; if ($util.Long) { let 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.options = null; + 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); @@ -111350,13 +111252,13 @@ export const query = $root.query = (() => { 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.pre_queries && message.pre_queries.length) { object.pre_queries = []; for (let j = 0; j < message.pre_queries.length; ++j) @@ -111366,55 +111268,56 @@ export const query = $root.query = (() => { }; /** - * Converts this ReserveExecuteRequest to JSON. + * Converts this BeginExecuteRequest to JSON. * @function toJSON - * @memberof query.ReserveExecuteRequest + * @memberof query.BeginExecuteRequest * @instance * @returns {Object.} JSON object */ - ReserveExecuteRequest.prototype.toJSON = function toJSON() { + BeginExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReserveExecuteRequest + * Gets the default type url for BeginExecuteRequest * @function getTypeUrl - * @memberof query.ReserveExecuteRequest + * @memberof query.BeginExecuteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReserveExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BeginExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ReserveExecuteRequest"; + return typeUrlPrefix + "/query.BeginExecuteRequest"; }; - return ReserveExecuteRequest; + return BeginExecuteRequest; })(); - query.ReserveExecuteResponse = (function() { + query.BeginExecuteResponse = (function() { /** - * Properties of a ReserveExecuteResponse. + * Properties of a BeginExecuteResponse. * @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 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 ReserveExecuteResponse. + * Constructs a new BeginExecuteResponse. * @memberof query - * @classdesc Represents a ReserveExecuteResponse. - * @implements IReserveExecuteResponse + * @classdesc Represents a BeginExecuteResponse. + * @implements IBeginExecuteResponse * @constructor - * @param {query.IReserveExecuteResponse=} [properties] Properties to set + * @param {query.IBeginExecuteResponse=} [properties] Properties to set */ - function ReserveExecuteResponse(properties) { + function BeginExecuteResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -111422,100 +111325,110 @@ export const query = $root.query = (() => { } /** - * ReserveExecuteResponse error. + * BeginExecuteResponse error. * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ReserveExecuteResponse + * @memberof query.BeginExecuteResponse * @instance */ - ReserveExecuteResponse.prototype.error = null; + BeginExecuteResponse.prototype.error = null; /** - * ReserveExecuteResponse result. + * BeginExecuteResponse result. * @member {query.IQueryResult|null|undefined} result - * @memberof query.ReserveExecuteResponse + * @memberof query.BeginExecuteResponse * @instance */ - ReserveExecuteResponse.prototype.result = null; + BeginExecuteResponse.prototype.result = null; /** - * ReserveExecuteResponse reserved_id. - * @member {number|Long} reserved_id - * @memberof query.ReserveExecuteResponse + * BeginExecuteResponse transaction_id. + * @member {number|Long} transaction_id + * @memberof query.BeginExecuteResponse * @instance */ - ReserveExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BeginExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReserveExecuteResponse tablet_alias. + * BeginExecuteResponse tablet_alias. * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.ReserveExecuteResponse + * @memberof query.BeginExecuteResponse * @instance */ - ReserveExecuteResponse.prototype.tablet_alias = null; + BeginExecuteResponse.prototype.tablet_alias = null; /** - * Creates a new ReserveExecuteResponse instance using the specified properties. + * BeginExecuteResponse session_state_changes. + * @member {string} session_state_changes + * @memberof query.BeginExecuteResponse + * @instance + */ + BeginExecuteResponse.prototype.session_state_changes = ""; + + /** + * Creates a new BeginExecuteResponse instance using the specified properties. * @function create - * @memberof query.ReserveExecuteResponse + * @memberof query.BeginExecuteResponse * @static - * @param {query.IReserveExecuteResponse=} [properties] Properties to set - * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse instance + * @param {query.IBeginExecuteResponse=} [properties] Properties to set + * @returns {query.BeginExecuteResponse} BeginExecuteResponse instance */ - ReserveExecuteResponse.create = function create(properties) { - return new ReserveExecuteResponse(properties); + BeginExecuteResponse.create = function create(properties) { + return new BeginExecuteResponse(properties); }; /** - * Encodes the specified ReserveExecuteResponse message. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. + * Encodes the specified BeginExecuteResponse message. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.ReserveExecuteResponse + * @memberof query.BeginExecuteResponse * @static - * @param {query.IReserveExecuteResponse} message ReserveExecuteResponse 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 */ - ReserveExecuteResponse.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")) $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.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 ReserveExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. + * Encodes the specified BeginExecuteResponse message, length delimited. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveExecuteResponse + * @memberof query.BeginExecuteResponse * @static - * @param {query.IReserveExecuteResponse} message ReserveExecuteResponse 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 */ - ReserveExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + BeginExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveExecuteResponse message from the specified reader or buffer. + * Decodes a BeginExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReserveExecuteResponse + * @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.ReserveExecuteResponse} ReserveExecuteResponse + * @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 */ - ReserveExecuteResponse.decode = function decode(reader, length) { + BeginExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveExecuteResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginExecuteResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -111528,13 +111441,17 @@ export const query = $root.query = (() => { break; } case 3: { - message.reserved_id = reader.int64(); + 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; @@ -111544,30 +111461,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a ReserveExecuteResponse 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.ReserveExecuteResponse + * @memberof query.BeginExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse + * @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 */ - ReserveExecuteResponse.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 ReserveExecuteResponse message. + * Verifies a BeginExecuteResponse message. * @function verify - * @memberof query.ReserveExecuteResponse + * @memberof query.BeginExecuteResponse * @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) { + BeginExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.error != null && message.hasOwnProperty("error")) { @@ -111580,66 +111497,71 @@ export const query = $root.query = (() => { 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.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")) { let 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 ReserveExecuteResponse 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.ReserveExecuteResponse + * @memberof query.BeginExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse + * @returns {query.BeginExecuteResponse} BeginExecuteResponse */ - ReserveExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveExecuteResponse) + BeginExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginExecuteResponse) return object; - let message = new $root.query.ReserveExecuteResponse(); + let message = new $root.query.BeginExecuteResponse(); if (object.error != null) { if (typeof object.error !== "object") - throw TypeError(".query.ReserveExecuteResponse.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.ReserveExecuteResponse.result: object expected"); + throw TypeError(".query.BeginExecuteResponse.result: object expected"); message.result = $root.query.QueryResult.fromObject(object.result); } - if (object.reserved_id != null) + if (object.transaction_id != null) if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".query.ReserveExecuteResponse.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) + message.session_state_changes = String(object.session_state_changes); return message; }; /** - * Creates a plain object from a ReserveExecuteResponse 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.ReserveExecuteResponse + * @memberof query.BeginExecuteResponse * @static - * @param {query.ReserveExecuteResponse} message ReserveExecuteResponse + * @param {query.BeginExecuteResponse} message BeginExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveExecuteResponse.toObject = function toObject(message, options) { + BeginExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -111648,78 +111570,81 @@ export const query = $root.query = (() => { object.result = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.reserved_id = options.longs === String ? "0" : 0; + object.transaction_id = options.longs === String ? "0" : 0; object.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.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; if (message.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 ReserveExecuteResponse to JSON. + * Converts this BeginExecuteResponse to JSON. * @function toJSON - * @memberof query.ReserveExecuteResponse + * @memberof query.BeginExecuteResponse * @instance * @returns {Object.} JSON object */ - ReserveExecuteResponse.prototype.toJSON = function toJSON() { + BeginExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReserveExecuteResponse + * Gets the default type url for BeginExecuteResponse * @function getTypeUrl - * @memberof query.ReserveExecuteResponse + * @memberof query.BeginExecuteResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReserveExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BeginExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ReserveExecuteResponse"; + return typeUrlPrefix + "/query.BeginExecuteResponse"; }; - return ReserveExecuteResponse; + return BeginExecuteResponse; })(); - query.ReserveStreamExecuteRequest = (function() { + query.BeginStreamExecuteRequest = (function() { /** - * Properties of a ReserveStreamExecuteRequest. + * Properties of a BeginStreamExecuteRequest. * @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 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 ReserveStreamExecuteRequest. + * Constructs a new BeginStreamExecuteRequest. * @memberof query - * @classdesc Represents a ReserveStreamExecuteRequest. - * @implements IReserveStreamExecuteRequest + * @classdesc Represents a BeginStreamExecuteRequest. + * @implements IBeginStreamExecuteRequest * @constructor - * @param {query.IReserveStreamExecuteRequest=} [properties] Properties to set + * @param {query.IBeginStreamExecuteRequest=} [properties] Properties to set */ - function ReserveStreamExecuteRequest(properties) { + function BeginStreamExecuteRequest(properties) { this.pre_queries = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -111728,83 +111653,83 @@ export const query = $root.query = (() => { } /** - * ReserveStreamExecuteRequest effective_caller_id. + * BeginStreamExecuteRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.BeginStreamExecuteRequest * @instance */ - ReserveStreamExecuteRequest.prototype.effective_caller_id = null; + BeginStreamExecuteRequest.prototype.effective_caller_id = null; /** - * ReserveStreamExecuteRequest immediate_caller_id. + * BeginStreamExecuteRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.BeginStreamExecuteRequest * @instance */ - ReserveStreamExecuteRequest.prototype.immediate_caller_id = null; + BeginStreamExecuteRequest.prototype.immediate_caller_id = null; /** - * ReserveStreamExecuteRequest target. + * BeginStreamExecuteRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.BeginStreamExecuteRequest * @instance */ - ReserveStreamExecuteRequest.prototype.target = null; + BeginStreamExecuteRequest.prototype.target = null; /** - * ReserveStreamExecuteRequest query. + * BeginStreamExecuteRequest query. * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.BeginStreamExecuteRequest * @instance */ - ReserveStreamExecuteRequest.prototype.query = null; + BeginStreamExecuteRequest.prototype.query = null; /** - * ReserveStreamExecuteRequest options. + * BeginStreamExecuteRequest options. * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.BeginStreamExecuteRequest * @instance */ - ReserveStreamExecuteRequest.prototype.options = null; + BeginStreamExecuteRequest.prototype.options = null; /** - * ReserveStreamExecuteRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.ReserveStreamExecuteRequest + * BeginStreamExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.BeginStreamExecuteRequest * @instance */ - ReserveStreamExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BeginStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; /** - * ReserveStreamExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.ReserveStreamExecuteRequest + * BeginStreamExecuteRequest reserved_id. + * @member {number|Long} reserved_id + * @memberof query.BeginStreamExecuteRequest * @instance */ - ReserveStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; + BeginStreamExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ReserveStreamExecuteRequest instance using the specified properties. + * Creates a new BeginStreamExecuteRequest instance using the specified properties. * @function create - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.BeginStreamExecuteRequest * @static - * @param {query.IReserveStreamExecuteRequest=} [properties] Properties to set - * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest instance + * @param {query.IBeginStreamExecuteRequest=} [properties] Properties to set + * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest instance */ - ReserveStreamExecuteRequest.create = function create(properties) { - return new ReserveStreamExecuteRequest(properties); + BeginStreamExecuteRequest.create = function create(properties) { + return new BeginStreamExecuteRequest(properties); }; /** - * Encodes the specified ReserveStreamExecuteRequest message. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. + * Encodes the specified BeginStreamExecuteRequest message. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.BeginStreamExecuteRequest * @static - * @param {query.IReserveStreamExecuteRequest} message ReserveStreamExecuteRequest 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 */ - ReserveStreamExecuteRequest.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")) @@ -111817,42 +111742,42 @@ export const query = $root.query = (() => { $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.transaction_id); if (message.pre_queries != null && message.pre_queries.length) for (let i = 0; i < message.pre_queries.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[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 ReserveStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. + * Encodes the specified BeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.BeginStreamExecuteRequest * @static - * @param {query.IReserveStreamExecuteRequest} message ReserveStreamExecuteRequest 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 */ - ReserveStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + BeginStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer. + * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReserveStreamExecuteRequest + * @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.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest + * @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 */ - ReserveStreamExecuteRequest.decode = function decode(reader, length) { + BeginStreamExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveStreamExecuteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginStreamExecuteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -111877,15 +111802,15 @@ export const query = $root.query = (() => { 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: { + message.reserved_id = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -111895,30 +111820,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a ReserveStreamExecuteRequest 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.ReserveStreamExecuteRequest + * @memberof query.BeginStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest + * @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 */ - ReserveStreamExecuteRequest.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 ReserveStreamExecuteRequest message. + * Verifies a BeginStreamExecuteRequest message. * @function verify - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.BeginStreamExecuteRequest * @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) { + 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")) { @@ -111946,9 +111871,6 @@ export const query = $root.query = (() => { 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"; @@ -111956,75 +111878,78 @@ export const query = $root.query = (() => { 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 ReserveStreamExecuteRequest 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.ReserveStreamExecuteRequest + * @memberof query.BeginStreamExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest + * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest */ - ReserveStreamExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveStreamExecuteRequest) + BeginStreamExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginStreamExecuteRequest) return object; - let message = new $root.query.ReserveStreamExecuteRequest(); + let message = new $root.query.BeginStreamExecuteRequest(); 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.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.ReserveStreamExecuteRequest.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.ReserveStreamExecuteRequest.target: object expected"); + throw TypeError(".query.BeginStreamExecuteRequest.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.BeginStreamExecuteRequest.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"); + throw TypeError(".query.BeginStreamExecuteRequest.options: object expected"); message.options = $root.query.ExecuteOptions.fromObject(object.options); } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); if (object.pre_queries) { if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.ReserveStreamExecuteRequest.pre_queries: array expected"); + throw TypeError(".query.BeginStreamExecuteRequest.pre_queries: array expected"); message.pre_queries = []; for (let 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 ReserveStreamExecuteRequest 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.ReserveStreamExecuteRequest + * @memberof query.BeginStreamExecuteRequest * @static - * @param {query.ReserveStreamExecuteRequest} message ReserveStreamExecuteRequest + * @param {query.BeginStreamExecuteRequest} message BeginStreamExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveStreamExecuteRequest.toObject = function toObject(message, options) { + BeginStreamExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -112038,9 +111963,9 @@ export const query = $root.query = (() => { object.options = null; if ($util.Long) { let 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.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); @@ -112052,69 +111977,70 @@ export const query = $root.query = (() => { object.query = $root.query.BoundQuery.toObject(message.query, options); if (message.options != null && message.hasOwnProperty("options")) object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; if (message.pre_queries && message.pre_queries.length) { object.pre_queries = []; for (let 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 ReserveStreamExecuteRequest to JSON. + * Converts this BeginStreamExecuteRequest to JSON. * @function toJSON - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.BeginStreamExecuteRequest * @instance * @returns {Object.} JSON object */ - ReserveStreamExecuteRequest.prototype.toJSON = function toJSON() { + BeginStreamExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReserveStreamExecuteRequest + * Gets the default type url for BeginStreamExecuteRequest * @function getTypeUrl - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.BeginStreamExecuteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReserveStreamExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BeginStreamExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ReserveStreamExecuteRequest"; + return typeUrlPrefix + "/query.BeginStreamExecuteRequest"; }; - return ReserveStreamExecuteRequest; + return BeginStreamExecuteRequest; })(); - query.ReserveStreamExecuteResponse = (function() { + query.BeginStreamExecuteResponse = (function() { /** - * Properties of a ReserveStreamExecuteResponse. + * Properties of a BeginStreamExecuteResponse. * @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 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 ReserveStreamExecuteResponse. + * Constructs a new BeginStreamExecuteResponse. * @memberof query - * @classdesc Represents a ReserveStreamExecuteResponse. - * @implements IReserveStreamExecuteResponse + * @classdesc Represents a BeginStreamExecuteResponse. + * @implements IBeginStreamExecuteResponse * @constructor - * @param {query.IReserveStreamExecuteResponse=} [properties] Properties to set + * @param {query.IBeginStreamExecuteResponse=} [properties] Properties to set */ - function ReserveStreamExecuteResponse(properties) { + function BeginStreamExecuteResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -112122,100 +112048,110 @@ export const query = $root.query = (() => { } /** - * ReserveStreamExecuteResponse error. + * BeginStreamExecuteResponse error. * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.BeginStreamExecuteResponse * @instance */ - ReserveStreamExecuteResponse.prototype.error = null; + BeginStreamExecuteResponse.prototype.error = null; /** - * ReserveStreamExecuteResponse result. + * BeginStreamExecuteResponse result. * @member {query.IQueryResult|null|undefined} result - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.BeginStreamExecuteResponse * @instance */ - ReserveStreamExecuteResponse.prototype.result = null; + BeginStreamExecuteResponse.prototype.result = null; /** - * ReserveStreamExecuteResponse reserved_id. - * @member {number|Long} reserved_id - * @memberof query.ReserveStreamExecuteResponse + * BeginStreamExecuteResponse transaction_id. + * @member {number|Long} transaction_id + * @memberof query.BeginStreamExecuteResponse * @instance */ - ReserveStreamExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BeginStreamExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReserveStreamExecuteResponse tablet_alias. + * BeginStreamExecuteResponse tablet_alias. * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.BeginStreamExecuteResponse * @instance */ - ReserveStreamExecuteResponse.prototype.tablet_alias = null; + BeginStreamExecuteResponse.prototype.tablet_alias = null; /** - * Creates a new ReserveStreamExecuteResponse instance using the specified properties. + * 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.ReserveStreamExecuteResponse + * @memberof query.BeginStreamExecuteResponse * @static - * @param {query.IReserveStreamExecuteResponse=} [properties] Properties to set - * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse instance + * @param {query.IBeginStreamExecuteResponse=} [properties] Properties to set + * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse instance */ - ReserveStreamExecuteResponse.create = function create(properties) { - return new ReserveStreamExecuteResponse(properties); + BeginStreamExecuteResponse.create = function create(properties) { + return new BeginStreamExecuteResponse(properties); }; /** - * Encodes the specified ReserveStreamExecuteResponse message. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. + * Encodes the specified BeginStreamExecuteResponse message. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.BeginStreamExecuteResponse * @static - * @param {query.IReserveStreamExecuteResponse} message ReserveStreamExecuteResponse 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 */ - ReserveStreamExecuteResponse.encode = function encode(message, writer) { + BeginStreamExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.error != null && Object.hasOwnProperty.call(message, "error")) $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.result != null && Object.hasOwnProperty.call(message, "result")) $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.reserved_id); + 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 ReserveStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. + * Encodes the specified BeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.BeginStreamExecuteResponse * @static - * @param {query.IReserveStreamExecuteResponse} message ReserveStreamExecuteResponse 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 */ - ReserveStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + BeginStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer. + * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReserveStreamExecuteResponse + * @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.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse + * @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 */ - ReserveStreamExecuteResponse.decode = function decode(reader, length) { + BeginStreamExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveStreamExecuteResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginStreamExecuteResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -112228,13 +112164,17 @@ export const query = $root.query = (() => { break; } case 3: { - message.reserved_id = reader.int64(); + 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; @@ -112244,30 +112184,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a ReserveStreamExecuteResponse 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.ReserveStreamExecuteResponse + * @memberof query.BeginStreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse + * @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 */ - ReserveStreamExecuteResponse.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 ReserveStreamExecuteResponse message. + * Verifies a BeginStreamExecuteResponse message. * @function verify - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.BeginStreamExecuteResponse * @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) { + BeginStreamExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.error != null && message.hasOwnProperty("error")) { @@ -112280,66 +112220,71 @@ export const query = $root.query = (() => { 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.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")) { let 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 ReserveStreamExecuteResponse 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.ReserveStreamExecuteResponse + * @memberof query.BeginStreamExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse + * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse */ - ReserveStreamExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveStreamExecuteResponse) + BeginStreamExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginStreamExecuteResponse) return object; - let message = new $root.query.ReserveStreamExecuteResponse(); + let message = new $root.query.BeginStreamExecuteResponse(); if (object.error != null) { if (typeof object.error !== "object") - throw TypeError(".query.ReserveStreamExecuteResponse.error: object expected"); + 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.ReserveStreamExecuteResponse.result: object expected"); + throw TypeError(".query.BeginStreamExecuteResponse.result: object expected"); message.result = $root.query.QueryResult.fromObject(object.result); } - if (object.reserved_id != null) + if (object.transaction_id != null) if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".query.ReserveStreamExecuteResponse.tablet_alias: object expected"); + 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 ReserveStreamExecuteResponse 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.ReserveStreamExecuteResponse + * @memberof query.BeginStreamExecuteResponse * @static - * @param {query.ReserveStreamExecuteResponse} message ReserveStreamExecuteResponse + * @param {query.BeginStreamExecuteResponse} message BeginStreamExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveStreamExecuteResponse.toObject = function toObject(message, options) { + BeginStreamExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -112348,80 +112293,78 @@ export const query = $root.query = (() => { object.result = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.reserved_id = options.longs === String ? "0" : 0; + object.transaction_id = options.longs === String ? "0" : 0; object.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.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; if (message.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 ReserveStreamExecuteResponse to JSON. + * Converts this BeginStreamExecuteResponse to JSON. * @function toJSON - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.BeginStreamExecuteResponse * @instance * @returns {Object.} JSON object */ - ReserveStreamExecuteResponse.prototype.toJSON = function toJSON() { + BeginStreamExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReserveStreamExecuteResponse + * Gets the default type url for BeginStreamExecuteResponse * @function getTypeUrl - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.BeginStreamExecuteResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReserveStreamExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BeginStreamExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ReserveStreamExecuteResponse"; + return typeUrlPrefix + "/query.BeginStreamExecuteResponse"; }; - return ReserveStreamExecuteResponse; + return BeginStreamExecuteResponse; })(); - query.ReserveBeginExecuteRequest = (function() { + query.MessageStreamRequest = (function() { /** - * Properties of a ReserveBeginExecuteRequest. + * Properties of a MessageStreamRequest. * @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 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 ReserveBeginExecuteRequest. + * Constructs a new MessageStreamRequest. * @memberof query - * @classdesc Represents a ReserveBeginExecuteRequest. - * @implements IReserveBeginExecuteRequest + * @classdesc Represents a MessageStreamRequest. + * @implements IMessageStreamRequest * @constructor - * @param {query.IReserveBeginExecuteRequest=} [properties] Properties to set + * @param {query.IMessageStreamRequest=} [properties] Properties to set */ - function ReserveBeginExecuteRequest(properties) { - this.pre_queries = []; - this.post_begin_queries = []; + function MessageStreamRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -112429,83 +112372,59 @@ export const query = $root.query = (() => { } /** - * ReserveBeginExecuteRequest effective_caller_id. + * MessageStreamRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.MessageStreamRequest * @instance */ - ReserveBeginExecuteRequest.prototype.effective_caller_id = null; + MessageStreamRequest.prototype.effective_caller_id = null; /** - * ReserveBeginExecuteRequest immediate_caller_id. + * MessageStreamRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.MessageStreamRequest * @instance */ - ReserveBeginExecuteRequest.prototype.immediate_caller_id = null; + MessageStreamRequest.prototype.immediate_caller_id = null; /** - * ReserveBeginExecuteRequest target. + * MessageStreamRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReserveBeginExecuteRequest - * @instance - */ - ReserveBeginExecuteRequest.prototype.target = null; - - /** - * ReserveBeginExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ReserveBeginExecuteRequest - * @instance - */ - ReserveBeginExecuteRequest.prototype.query = null; - - /** - * ReserveBeginExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ReserveBeginExecuteRequest - * @instance - */ - ReserveBeginExecuteRequest.prototype.options = null; - - /** - * ReserveBeginExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.MessageStreamRequest * @instance */ - ReserveBeginExecuteRequest.prototype.pre_queries = $util.emptyArray; + MessageStreamRequest.prototype.target = null; /** - * ReserveBeginExecuteRequest post_begin_queries. - * @member {Array.} post_begin_queries - * @memberof query.ReserveBeginExecuteRequest + * MessageStreamRequest name. + * @member {string} name + * @memberof query.MessageStreamRequest * @instance */ - ReserveBeginExecuteRequest.prototype.post_begin_queries = $util.emptyArray; + MessageStreamRequest.prototype.name = ""; /** - * Creates a new ReserveBeginExecuteRequest instance using the specified properties. + * Creates a new MessageStreamRequest instance using the specified properties. * @function create - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.MessageStreamRequest * @static - * @param {query.IReserveBeginExecuteRequest=} [properties] Properties to set - * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest instance + * @param {query.IMessageStreamRequest=} [properties] Properties to set + * @returns {query.MessageStreamRequest} MessageStreamRequest instance */ - ReserveBeginExecuteRequest.create = function create(properties) { - return new ReserveBeginExecuteRequest(properties); + MessageStreamRequest.create = function create(properties) { + return new MessageStreamRequest(properties); }; /** - * Encodes the specified ReserveBeginExecuteRequest message. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. + * Encodes the specified MessageStreamRequest message. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. * @function encode - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.MessageStreamRequest * @static - * @param {query.IReserveBeginExecuteRequest} message ReserveBeginExecuteRequest 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 */ - ReserveBeginExecuteRequest.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")) @@ -112514,47 +112433,39 @@ export const query = $root.query = (() => { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.pre_queries != null && message.pre_queries.length) - for (let 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 (let i = 0; i < message.post_begin_queries.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.post_begin_queries[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; /** - * Encodes the specified ReserveBeginExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. + * Encodes the specified MessageStreamRequest message, length delimited. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.MessageStreamRequest * @static - * @param {query.IReserveBeginExecuteRequest} message ReserveBeginExecuteRequest 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 */ - ReserveBeginExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + MessageStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer. + * Decodes a MessageStreamRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReserveBeginExecuteRequest + * @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.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest + * @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 */ - ReserveBeginExecuteRequest.decode = function decode(reader, length) { + MessageStreamRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginExecuteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageStreamRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -112571,23 +112482,7 @@ export const query = $root.query = (() => { break; } case 4: { - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); - break; - } - case 5: { - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); - break; - } - case 6: { - if (!(message.pre_queries && message.pre_queries.length)) - message.pre_queries = []; - message.pre_queries.push(reader.string()); - break; - } - case 7: { - if (!(message.post_begin_queries && message.post_begin_queries.length)) - message.post_begin_queries = []; - message.post_begin_queries.push(reader.string()); + message.name = reader.string(); break; } default: @@ -112599,30 +112494,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a ReserveBeginExecuteRequest 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.ReserveBeginExecuteRequest + * @memberof query.MessageStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest + * @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 */ - ReserveBeginExecuteRequest.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 ReserveBeginExecuteRequest message. + * Verifies a MessageStreamRequest message. * @function verify - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.MessageStreamRequest * @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) { + 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")) { @@ -112640,110 +112535,62 @@ export const query = $root.query = (() => { if (error) return "target." + error; } - if (message.query != null && message.hasOwnProperty("query")) { - let error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - let 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 (let 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 (let i = 0; i < message.post_begin_queries.length; ++i) - if (!$util.isString(message.post_begin_queries[i])) - return "post_begin_queries: string[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ReserveBeginExecuteRequest 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.ReserveBeginExecuteRequest + * @memberof query.MessageStreamRequest * @static * @param {Object.} object Plain object - * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest + * @returns {query.MessageStreamRequest} MessageStreamRequest */ - ReserveBeginExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveBeginExecuteRequest) + MessageStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.MessageStreamRequest) return object; - let message = new $root.query.ReserveBeginExecuteRequest(); + let message = new $root.query.MessageStreamRequest(); 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.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.ReserveBeginExecuteRequest.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.ReserveBeginExecuteRequest.target: object expected"); + throw TypeError(".query.MessageStreamRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".query.ReserveBeginExecuteRequest.query: object expected"); - message.query = $root.query.BoundQuery.fromObject(object.query); - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.ReserveBeginExecuteRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); - } - if (object.pre_queries) { - if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.ReserveBeginExecuteRequest.pre_queries: array expected"); - message.pre_queries = []; - for (let 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 (let i = 0; i < object.post_begin_queries.length; ++i) - message.post_begin_queries[i] = String(object.post_begin_queries[i]); - } + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ReserveBeginExecuteRequest 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.ReserveBeginExecuteRequest + * @memberof query.MessageStreamRequest * @static - * @param {query.ReserveBeginExecuteRequest} message ReserveBeginExecuteRequest + * @param {query.MessageStreamRequest} message MessageStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveBeginExecuteRequest.toObject = function toObject(message, options) { + MessageStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.pre_queries = []; - object.post_begin_queries = []; - } if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.query = null; - object.options = null; + object.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); @@ -112751,75 +112598,58 @@ export const query = $root.query = (() => { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = $root.query.BoundQuery.toObject(message.query, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.pre_queries && message.pre_queries.length) { - object.pre_queries = []; - for (let 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 (let j = 0; j < message.post_begin_queries.length; ++j) - object.post_begin_queries[j] = message.post_begin_queries[j]; - } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ReserveBeginExecuteRequest to JSON. + * Converts this MessageStreamRequest to JSON. * @function toJSON - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.MessageStreamRequest * @instance * @returns {Object.} JSON object */ - ReserveBeginExecuteRequest.prototype.toJSON = function toJSON() { + MessageStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReserveBeginExecuteRequest + * Gets the default type url for MessageStreamRequest * @function getTypeUrl - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.MessageStreamRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReserveBeginExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MessageStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ReserveBeginExecuteRequest"; + return typeUrlPrefix + "/query.MessageStreamRequest"; }; - return ReserveBeginExecuteRequest; + return MessageStreamRequest; })(); - query.ReserveBeginExecuteResponse = (function() { + query.MessageStreamResponse = (function() { /** - * Properties of a ReserveBeginExecuteResponse. + * Properties of a MessageStreamResponse. * @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 IMessageStreamResponse + * @property {query.IQueryResult|null} [result] MessageStreamResponse result */ /** - * Constructs a new ReserveBeginExecuteResponse. + * Constructs a new MessageStreamResponse. * @memberof query - * @classdesc Represents a ReserveBeginExecuteResponse. - * @implements IReserveBeginExecuteResponse + * @classdesc Represents a MessageStreamResponse. + * @implements IMessageStreamResponse * @constructor - * @param {query.IReserveBeginExecuteResponse=} [properties] Properties to set + * @param {query.IMessageStreamResponse=} [properties] Properties to set */ - function ReserveBeginExecuteResponse(properties) { + function MessageStreamResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -112827,147 +112657,77 @@ export const query = $root.query = (() => { } /** - * ReserveBeginExecuteResponse error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ReserveBeginExecuteResponse - * @instance - */ - ReserveBeginExecuteResponse.prototype.error = null; - - /** - * ReserveBeginExecuteResponse result. + * MessageStreamResponse 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 - * @instance - */ - ReserveBeginExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ReserveBeginExecuteResponse reserved_id. - * @member {number|Long} reserved_id - * @memberof query.ReserveBeginExecuteResponse - * @instance - */ - ReserveBeginExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ReserveBeginExecuteResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.ReserveBeginExecuteResponse - * @instance - */ - ReserveBeginExecuteResponse.prototype.tablet_alias = null; - - /** - * ReserveBeginExecuteResponse session_state_changes. - * @member {string} session_state_changes - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.MessageStreamResponse * @instance */ - ReserveBeginExecuteResponse.prototype.session_state_changes = ""; + MessageStreamResponse.prototype.result = null; /** - * Creates a new ReserveBeginExecuteResponse instance using the specified properties. + * Creates a new MessageStreamResponse instance using the specified properties. * @function create - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.MessageStreamResponse * @static - * @param {query.IReserveBeginExecuteResponse=} [properties] Properties to set - * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse instance + * @param {query.IMessageStreamResponse=} [properties] Properties to set + * @returns {query.MessageStreamResponse} MessageStreamResponse instance */ - ReserveBeginExecuteResponse.create = function create(properties) { - return new ReserveBeginExecuteResponse(properties); + MessageStreamResponse.create = function create(properties) { + return new MessageStreamResponse(properties); }; /** - * Encodes the specified ReserveBeginExecuteResponse message. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. + * Encodes the specified MessageStreamResponse message. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. * @function encode - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.MessageStreamResponse * @static - * @param {query.IReserveBeginExecuteResponse} message ReserveBeginExecuteResponse 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 */ - ReserveBeginExecuteResponse.encode = function encode(message, writer) { + MessageStreamResponse.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); + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReserveBeginExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. + * Encodes the specified MessageStreamResponse message, length delimited. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.MessageStreamResponse * @static - * @param {query.IReserveBeginExecuteResponse} message ReserveBeginExecuteResponse 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 */ - ReserveBeginExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + MessageStreamResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer. + * Decodes a MessageStreamResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReserveBeginExecuteResponse + * @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.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse + * @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 */ - ReserveBeginExecuteResponse.decode = function decode(reader, length) { + MessageStreamResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginExecuteResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageStreamResponse(); while (reader.pos < end) { let 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; @@ -112977,214 +112737,132 @@ export const query = $root.query = (() => { }; /** - * Decodes a ReserveBeginExecuteResponse 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.ReserveBeginExecuteResponse + * @memberof query.MessageStreamResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse + * @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 */ - ReserveBeginExecuteResponse.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 ReserveBeginExecuteResponse message. + * Verifies a MessageStreamResponse message. * @function verify - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.MessageStreamResponse * @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) { + MessageStreamResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - let error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } if (message.result != null && message.hasOwnProperty("result")) { let 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")) { - let 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 ReserveBeginExecuteResponse 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.ReserveBeginExecuteResponse + * @memberof query.MessageStreamResponse * @static * @param {Object.} object Plain object - * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse + * @returns {query.MessageStreamResponse} MessageStreamResponse */ - ReserveBeginExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveBeginExecuteResponse) + MessageStreamResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.MessageStreamResponse) return object; - let message = new $root.query.ReserveBeginExecuteResponse(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".query.ReserveBeginExecuteResponse.error: object expected"); - message.error = $root.vtrpc.RPCError.fromObject(object.error); - } + let message = new $root.query.MessageStreamResponse(); if (object.result != null) { if (typeof object.result !== "object") - throw TypeError(".query.ReserveBeginExecuteResponse.result: object expected"); + throw TypeError(".query.MessageStreamResponse.result: object expected"); message.result = $root.query.QueryResult.fromObject(object.result); } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.reserved_id != null) - if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.ReserveBeginExecuteResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.session_state_changes != null) - message.session_state_changes = String(object.session_state_changes); return message; }; /** - * Creates a plain object from a ReserveBeginExecuteResponse 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.ReserveBeginExecuteResponse + * @memberof query.MessageStreamResponse * @static - * @param {query.ReserveBeginExecuteResponse} message ReserveBeginExecuteResponse + * @param {query.MessageStreamResponse} message MessageStreamResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveBeginExecuteResponse.toObject = function toObject(message, options) { + MessageStreamResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.error = null; + if (options.defaults) object.result = null; - if ($util.Long) { - let 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) { - let long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.reserved_id = options.longs === String ? "0" : 0; - object.tablet_alias = null; - object.session_state_changes = ""; - } - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.vtrpc.RPCError.toObject(message.error, options); if (message.result != null && message.hasOwnProperty("result")) object.result = $root.query.QueryResult.toObject(message.result, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; - else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - object.session_state_changes = message.session_state_changes; return object; }; /** - * Converts this ReserveBeginExecuteResponse to JSON. + * Converts this MessageStreamResponse to JSON. * @function toJSON - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.MessageStreamResponse * @instance * @returns {Object.} JSON object */ - ReserveBeginExecuteResponse.prototype.toJSON = function toJSON() { + MessageStreamResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReserveBeginExecuteResponse + * Gets the default type url for MessageStreamResponse * @function getTypeUrl - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.MessageStreamResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReserveBeginExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MessageStreamResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ReserveBeginExecuteResponse"; + return typeUrlPrefix + "/query.MessageStreamResponse"; }; - return ReserveBeginExecuteResponse; + return MessageStreamResponse; })(); - query.ReserveBeginStreamExecuteRequest = (function() { + query.MessageAckRequest = (function() { /** - * Properties of a ReserveBeginStreamExecuteRequest. + * Properties of a MessageAckRequest. * @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 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 ReserveBeginStreamExecuteRequest. + * Constructs a new MessageAckRequest. * @memberof query - * @classdesc Represents a ReserveBeginStreamExecuteRequest. - * @implements IReserveBeginStreamExecuteRequest + * @classdesc Represents a MessageAckRequest. + * @implements IMessageAckRequest * @constructor - * @param {query.IReserveBeginStreamExecuteRequest=} [properties] Properties to set + * @param {query.IMessageAckRequest=} [properties] Properties to set */ - function ReserveBeginStreamExecuteRequest(properties) { - this.pre_queries = []; - this.post_begin_queries = []; + function MessageAckRequest(properties) { + this.ids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -113192,83 +112870,67 @@ export const query = $root.query = (() => { } /** - * ReserveBeginStreamExecuteRequest effective_caller_id. + * MessageAckRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.MessageAckRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.effective_caller_id = null; + MessageAckRequest.prototype.effective_caller_id = null; /** - * ReserveBeginStreamExecuteRequest immediate_caller_id. + * MessageAckRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.MessageAckRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.immediate_caller_id = null; + MessageAckRequest.prototype.immediate_caller_id = null; /** - * ReserveBeginStreamExecuteRequest target. + * MessageAckRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReserveBeginStreamExecuteRequest - * @instance - */ - ReserveBeginStreamExecuteRequest.prototype.target = null; - - /** - * ReserveBeginStreamExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ReserveBeginStreamExecuteRequest - * @instance - */ - ReserveBeginStreamExecuteRequest.prototype.query = null; - - /** - * ReserveBeginStreamExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.MessageAckRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.options = null; + MessageAckRequest.prototype.target = null; /** - * ReserveBeginStreamExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.ReserveBeginStreamExecuteRequest + * MessageAckRequest name. + * @member {string} name + * @memberof query.MessageAckRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; + MessageAckRequest.prototype.name = ""; /** - * ReserveBeginStreamExecuteRequest post_begin_queries. - * @member {Array.} post_begin_queries - * @memberof query.ReserveBeginStreamExecuteRequest + * MessageAckRequest ids. + * @member {Array.} ids + * @memberof query.MessageAckRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.post_begin_queries = $util.emptyArray; + MessageAckRequest.prototype.ids = $util.emptyArray; /** - * Creates a new ReserveBeginStreamExecuteRequest instance using the specified properties. + * Creates a new MessageAckRequest instance using the specified properties. * @function create - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.MessageAckRequest * @static - * @param {query.IReserveBeginStreamExecuteRequest=} [properties] Properties to set - * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest instance + * @param {query.IMessageAckRequest=} [properties] Properties to set + * @returns {query.MessageAckRequest} MessageAckRequest instance */ - ReserveBeginStreamExecuteRequest.create = function create(properties) { - return new ReserveBeginStreamExecuteRequest(properties); + MessageAckRequest.create = function create(properties) { + return new MessageAckRequest(properties); }; /** - * Encodes the specified ReserveBeginStreamExecuteRequest message. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. + * Encodes the specified MessageAckRequest message. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. * @function encode - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.MessageAckRequest * @static - * @param {query.IReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest 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 */ - ReserveBeginStreamExecuteRequest.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")) @@ -113277,47 +112939,42 @@ export const query = $root.query = (() => { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.pre_queries != null && message.pre_queries.length) - for (let 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 (let i = 0; i < message.post_begin_queries.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.post_begin_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 (let 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 ReserveBeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. + * Encodes the specified MessageAckRequest message, length delimited. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.MessageAckRequest * @static - * @param {query.IReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest 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 */ - ReserveBeginStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + MessageAckRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer. + * Decodes a MessageAckRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReserveBeginStreamExecuteRequest + * @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.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest + * @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 */ - ReserveBeginStreamExecuteRequest.decode = function decode(reader, length) { + MessageAckRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginStreamExecuteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageAckRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -113334,23 +112991,13 @@ export const query = $root.query = (() => { break; } case 4: { - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 5: { - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); - break; - } - case 6: { - if (!(message.pre_queries && message.pre_queries.length)) - message.pre_queries = []; - message.pre_queries.push(reader.string()); - break; - } - case 7: { - if (!(message.post_begin_queries && message.post_begin_queries.length)) - message.post_begin_queries = []; - message.post_begin_queries.push(reader.string()); + if (!(message.ids && message.ids.length)) + message.ids = []; + message.ids.push($root.query.Value.decode(reader, reader.uint32())); break; } default: @@ -113362,30 +113009,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a ReserveBeginStreamExecuteRequest 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.ReserveBeginStreamExecuteRequest + * @memberof query.MessageAckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest + * @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 */ - ReserveBeginStreamExecuteRequest.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 ReserveBeginStreamExecuteRequest message. + * Verifies a MessageAckRequest message. * @function verify - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.MessageAckRequest * @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) { + 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")) { @@ -113403,110 +113050,83 @@ export const query = $root.query = (() => { if (error) return "target." + error; } - if (message.query != null && message.hasOwnProperty("query")) { - let error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - let 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 (let 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 (let i = 0; i < message.post_begin_queries.length; ++i) - if (!$util.isString(message.post_begin_queries[i])) - return "post_begin_queries: string[] expected"; + if (message.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 (let i = 0; i < message.ids.length; ++i) { + let error = $root.query.Value.verify(message.ids[i]); + if (error) + return "ids." + error; + } } return null; }; /** - * Creates a ReserveBeginStreamExecuteRequest 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.ReserveBeginStreamExecuteRequest + * @memberof query.MessageAckRequest * @static * @param {Object.} object Plain object - * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest + * @returns {query.MessageAckRequest} MessageAckRequest */ - ReserveBeginStreamExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveBeginStreamExecuteRequest) + MessageAckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.MessageAckRequest) return object; - let message = new $root.query.ReserveBeginStreamExecuteRequest(); + let message = new $root.query.MessageAckRequest(); 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.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.ReserveBeginStreamExecuteRequest.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.ReserveBeginStreamExecuteRequest.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.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 (let 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 (let i = 0; i < object.post_begin_queries.length; ++i) - message.post_begin_queries[i] = String(object.post_begin_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 (let 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 ReserveBeginStreamExecuteRequest 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.ReserveBeginStreamExecuteRequest + * @memberof query.MessageAckRequest * @static - * @param {query.ReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest + * @param {query.MessageAckRequest} message MessageAckRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveBeginStreamExecuteRequest.toObject = function toObject(message, options) { + MessageAckRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.pre_queries = []; - object.post_begin_queries = []; - } + if (options.arrays || options.defaults) + object.ids = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.query = null; - 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); @@ -113514,75 +113134,63 @@ export const query = $root.query = (() => { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = $root.query.BoundQuery.toObject(message.query, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.pre_queries && message.pre_queries.length) { - object.pre_queries = []; - for (let 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 (let j = 0; j < message.post_begin_queries.length; ++j) - object.post_begin_queries[j] = message.post_begin_queries[j]; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.ids && message.ids.length) { + object.ids = []; + for (let j = 0; j < message.ids.length; ++j) + object.ids[j] = $root.query.Value.toObject(message.ids[j], options); } return object; }; /** - * Converts this ReserveBeginStreamExecuteRequest to JSON. + * Converts this MessageAckRequest to JSON. * @function toJSON - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.MessageAckRequest * @instance * @returns {Object.} JSON object */ - ReserveBeginStreamExecuteRequest.prototype.toJSON = function toJSON() { + MessageAckRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReserveBeginStreamExecuteRequest + * Gets the default type url for MessageAckRequest * @function getTypeUrl - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.MessageAckRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReserveBeginStreamExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MessageAckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ReserveBeginStreamExecuteRequest"; + return typeUrlPrefix + "/query.MessageAckRequest"; }; - return ReserveBeginStreamExecuteRequest; + return MessageAckRequest; })(); - query.ReserveBeginStreamExecuteResponse = (function() { + query.MessageAckResponse = (function() { /** - * Properties of a ReserveBeginStreamExecuteResponse. + * Properties of a MessageAckResponse. * @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 IMessageAckResponse + * @property {query.IQueryResult|null} [result] MessageAckResponse result */ /** - * Constructs a new ReserveBeginStreamExecuteResponse. + * Constructs a new MessageAckResponse. * @memberof query - * @classdesc Represents a ReserveBeginStreamExecuteResponse. - * @implements IReserveBeginStreamExecuteResponse + * @classdesc Represents a MessageAckResponse. + * @implements IMessageAckResponse * @constructor - * @param {query.IReserveBeginStreamExecuteResponse=} [properties] Properties to set + * @param {query.IMessageAckResponse=} [properties] Properties to set */ - function ReserveBeginStreamExecuteResponse(properties) { + function MessageAckResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -113590,147 +113198,77 @@ export const query = $root.query = (() => { } /** - * ReserveBeginStreamExecuteResponse error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ReserveBeginStreamExecuteResponse - * @instance - */ - ReserveBeginStreamExecuteResponse.prototype.error = null; - - /** - * ReserveBeginStreamExecuteResponse result. + * MessageAckResponse 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 + * @memberof query.MessageAckResponse * @instance */ - ReserveBeginStreamExecuteResponse.prototype.session_state_changes = ""; + MessageAckResponse.prototype.result = null; /** - * Creates a new ReserveBeginStreamExecuteResponse instance using the specified properties. + * Creates a new MessageAckResponse instance using the specified properties. * @function create - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.MessageAckResponse * @static - * @param {query.IReserveBeginStreamExecuteResponse=} [properties] Properties to set - * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse instance + * @param {query.IMessageAckResponse=} [properties] Properties to set + * @returns {query.MessageAckResponse} MessageAckResponse instance */ - ReserveBeginStreamExecuteResponse.create = function create(properties) { - return new ReserveBeginStreamExecuteResponse(properties); + MessageAckResponse.create = function create(properties) { + return new MessageAckResponse(properties); }; /** - * Encodes the specified ReserveBeginStreamExecuteResponse message. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. + * Encodes the specified MessageAckResponse message. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. * @function encode - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.MessageAckResponse * @static - * @param {query.IReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse 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 */ - ReserveBeginStreamExecuteResponse.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.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); + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReserveBeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. + * Encodes the specified MessageAckResponse message, length delimited. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.MessageAckResponse * @static - * @param {query.IReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse 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 */ - ReserveBeginStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + MessageAckResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer. + * Decodes a MessageAckResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReserveBeginStreamExecuteResponse + * @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.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse + * @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 */ - ReserveBeginStreamExecuteResponse.decode = function decode(reader, length) { + MessageAckResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginStreamExecuteResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageAckResponse(); while (reader.pos < end) { let 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; @@ -113740,210 +113278,134 @@ export const query = $root.query = (() => { }; /** - * Decodes a ReserveBeginStreamExecuteResponse 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.ReserveBeginStreamExecuteResponse + * @memberof query.MessageAckResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse + * @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 */ - ReserveBeginStreamExecuteResponse.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 ReserveBeginStreamExecuteResponse message. + * Verifies a MessageAckResponse message. * @function verify - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.MessageAckResponse * @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) { + MessageAckResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - let error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } if (message.result != null && message.hasOwnProperty("result")) { let 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")) { - let 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. + * Creates a MessageAckResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.MessageAckResponse * @static * @param {Object.} object Plain object - * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse + * @returns {query.MessageAckResponse} MessageAckResponse */ - ReserveBeginStreamExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveBeginStreamExecuteResponse) + MessageAckResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.MessageAckResponse) return object; - let 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); - } + let message = new $root.query.MessageAckResponse(); if (object.result != null) { if (typeof object.result !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteResponse.result: object expected"); + throw TypeError(".query.MessageAckResponse.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. + * Creates a plain object from a MessageAckResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.MessageAckResponse * @static - * @param {query.ReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse + * @param {query.MessageAckResponse} message MessageAckResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveBeginStreamExecuteResponse.toObject = function toObject(message, options) { + MessageAckResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.error = null; + if (options.defaults) object.result = null; - if ($util.Long) { - let 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) { - let 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 ReserveBeginStreamExecuteResponse to JSON. + * Converts this MessageAckResponse to JSON. * @function toJSON - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.MessageAckResponse * @instance * @returns {Object.} JSON object */ - ReserveBeginStreamExecuteResponse.prototype.toJSON = function toJSON() { + MessageAckResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReserveBeginStreamExecuteResponse + * Gets the default type url for MessageAckResponse * @function getTypeUrl - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.MessageAckResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReserveBeginStreamExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MessageAckResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ReserveBeginStreamExecuteResponse"; + return typeUrlPrefix + "/query.MessageAckResponse"; }; - return ReserveBeginStreamExecuteResponse; + return MessageAckResponse; })(); - query.ReleaseRequest = (function() { + query.ReserveExecuteRequest = (function() { /** - * Properties of a ReleaseRequest. + * Properties of a ReserveExecuteRequest. * @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 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 ReleaseRequest. + * Constructs a new ReserveExecuteRequest. * @memberof query - * @classdesc Represents a ReleaseRequest. - * @implements IReleaseRequest + * @classdesc Represents a ReserveExecuteRequest. + * @implements IReserveExecuteRequest * @constructor - * @param {query.IReleaseRequest=} [properties] Properties to set + * @param {query.IReserveExecuteRequest=} [properties] Properties to set */ - function ReleaseRequest(properties) { + function ReserveExecuteRequest(properties) { + this.pre_queries = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -113951,67 +113413,83 @@ export const query = $root.query = (() => { } /** - * ReleaseRequest effective_caller_id. + * ReserveExecuteRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReleaseRequest + * @memberof query.ReserveExecuteRequest * @instance */ - ReleaseRequest.prototype.effective_caller_id = null; + ReserveExecuteRequest.prototype.effective_caller_id = null; /** - * ReleaseRequest immediate_caller_id. + * ReserveExecuteRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReleaseRequest + * @memberof query.ReserveExecuteRequest * @instance */ - ReleaseRequest.prototype.immediate_caller_id = null; + ReserveExecuteRequest.prototype.immediate_caller_id = null; /** - * ReleaseRequest target. + * ReserveExecuteRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReleaseRequest + * @memberof query.ReserveExecuteRequest * @instance */ - ReleaseRequest.prototype.target = null; + ReserveExecuteRequest.prototype.target = null; /** - * ReleaseRequest transaction_id. + * 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.ReleaseRequest + * @memberof query.ReserveExecuteRequest * @instance */ - ReleaseRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReserveExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReleaseRequest reserved_id. - * @member {number|Long} reserved_id - * @memberof query.ReleaseRequest + * ReserveExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.ReserveExecuteRequest * @instance */ - ReleaseRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReserveExecuteRequest.prototype.options = null; /** - * Creates a new ReleaseRequest instance using the specified properties. + * ReserveExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.ReserveExecuteRequest + * @instance + */ + ReserveExecuteRequest.prototype.pre_queries = $util.emptyArray; + + /** + * Creates a new ReserveExecuteRequest instance using the specified properties. * @function create - * @memberof query.ReleaseRequest + * @memberof query.ReserveExecuteRequest * @static - * @param {query.IReleaseRequest=} [properties] Properties to set - * @returns {query.ReleaseRequest} ReleaseRequest instance + * @param {query.IReserveExecuteRequest=} [properties] Properties to set + * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest instance */ - ReleaseRequest.create = function create(properties) { - return new ReleaseRequest(properties); + ReserveExecuteRequest.create = function create(properties) { + return new ReserveExecuteRequest(properties); }; /** - * Encodes the specified ReleaseRequest message. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. + * Encodes the specified ReserveExecuteRequest message. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.ReleaseRequest + * @memberof query.ReserveExecuteRequest * @static - * @param {query.IReleaseRequest} message ReleaseRequest 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 */ - ReleaseRequest.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")) @@ -114020,41 +113498,46 @@ export const query = $root.query = (() => { $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 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); + 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 (let i = 0; i < message.pre_queries.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); return writer; }; /** - * Encodes the specified ReleaseRequest message, length delimited. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. + * Encodes the specified ReserveExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReleaseRequest + * @memberof query.ReserveExecuteRequest * @static - * @param {query.IReleaseRequest} message ReleaseRequest 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 */ - ReleaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReserveExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReleaseRequest message from the specified reader or buffer. + * Decodes a ReserveExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReleaseRequest + * @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.ReleaseRequest} ReleaseRequest + * @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 */ - ReleaseRequest.decode = function decode(reader, length) { + ReserveExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReleaseRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveExecuteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -114071,11 +113554,21 @@ export const query = $root.query = (() => { 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.transaction_id = reader.int64(); + break; + } + case 6: { + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + break; + } + case 7: { + if (!(message.pre_queries && message.pre_queries.length)) + message.pre_queries = []; + message.pre_queries.push(reader.string()); break; } default: @@ -114087,30 +113580,30 @@ export const query = $root.query = (() => { }; /** - * Decodes a ReleaseRequest 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.ReleaseRequest + * @memberof query.ReserveExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReleaseRequest} ReleaseRequest + * @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 */ - ReleaseRequest.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 ReleaseRequest message. + * Verifies a ReserveExecuteRequest message. * @function verify - * @memberof query.ReleaseRequest + * @memberof query.ReserveExecuteRequest * @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) { + 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")) { @@ -114128,42 +113621,61 @@ export const query = $root.query = (() => { if (error) return "target." + error; } + if (message.query != null && message.hasOwnProperty("query")) { + let 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.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.options != null && message.hasOwnProperty("options")) { + let 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 (let i = 0; i < message.pre_queries.length; ++i) + if (!$util.isString(message.pre_queries[i])) + return "pre_queries: string[] expected"; + } return null; }; /** - * Creates a ReleaseRequest 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.ReleaseRequest + * @memberof query.ReserveExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.ReleaseRequest} ReleaseRequest + * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest */ - ReleaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReleaseRequest) + ReserveExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveExecuteRequest) return object; - let message = new $root.query.ReleaseRequest(); + let message = new $root.query.ReserveExecuteRequest(); 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.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.ReleaseRequest.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.ReleaseRequest.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.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; @@ -114173,45 +113685,47 @@ export const query = $root.query = (() => { 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.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 (let 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 ReleaseRequest 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.ReleaseRequest + * @memberof query.ReserveExecuteRequest * @static - * @param {query.ReleaseRequest} message ReleaseRequest + * @param {query.ReserveExecuteRequest} message ReserveExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReleaseRequest.toObject = function toObject(message, options) { + ReserveExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.pre_queries = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; + object.query = null; if ($util.Long) { let 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) { - let 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.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); @@ -114219,65 +113733,73 @@ export const query = $root.query = (() => { 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.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.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 (let j = 0; j < message.pre_queries.length; ++j) + object.pre_queries[j] = message.pre_queries[j]; + } return object; }; /** - * Converts this ReleaseRequest to JSON. + * Converts this ReserveExecuteRequest to JSON. * @function toJSON - * @memberof query.ReleaseRequest + * @memberof query.ReserveExecuteRequest * @instance * @returns {Object.} JSON object */ - ReleaseRequest.prototype.toJSON = function toJSON() { + ReserveExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReleaseRequest + * Gets the default type url for ReserveExecuteRequest * @function getTypeUrl - * @memberof query.ReleaseRequest + * @memberof query.ReserveExecuteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReleaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReserveExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ReleaseRequest"; + return typeUrlPrefix + "/query.ReserveExecuteRequest"; }; - return ReleaseRequest; + return ReserveExecuteRequest; })(); - query.ReleaseResponse = (function() { + query.ReserveExecuteResponse = (function() { /** - * Properties of a ReleaseResponse. + * Properties of a ReserveExecuteResponse. * @memberof query - * @interface IReleaseResponse + * @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 ReleaseResponse. + * Constructs a new ReserveExecuteResponse. * @memberof query - * @classdesc Represents a ReleaseResponse. - * @implements IReleaseResponse + * @classdesc Represents a ReserveExecuteResponse. + * @implements IReserveExecuteResponse * @constructor - * @param {query.IReleaseResponse=} [properties] Properties to set + * @param {query.IReserveExecuteResponse=} [properties] Properties to set */ - function ReleaseResponse(properties) { + function ReserveExecuteResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114285,63 +113807,119 @@ export const query = $root.query = (() => { } /** - * Creates a new ReleaseResponse instance using the specified properties. + * ReserveExecuteResponse error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof query.ReserveExecuteResponse + * @instance + */ + ReserveExecuteResponse.prototype.error = null; + + /** + * ReserveExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.ReserveExecuteResponse + * @instance + */ + 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 + * @instance + */ + ReserveExecuteResponse.prototype.tablet_alias = null; + + /** + * Creates a new ReserveExecuteResponse instance using the specified properties. * @function create - * @memberof query.ReleaseResponse + * @memberof query.ReserveExecuteResponse * @static - * @param {query.IReleaseResponse=} [properties] Properties to set - * @returns {query.ReleaseResponse} ReleaseResponse instance + * @param {query.IReserveExecuteResponse=} [properties] Properties to set + * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse instance */ - ReleaseResponse.create = function create(properties) { - return new ReleaseResponse(properties); + ReserveExecuteResponse.create = function create(properties) { + return new ReserveExecuteResponse(properties); }; /** - * Encodes the specified ReleaseResponse message. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. + * Encodes the specified ReserveExecuteResponse message. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.ReleaseResponse + * @memberof query.ReserveExecuteResponse * @static - * @param {query.IReleaseResponse} message ReleaseResponse 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 */ - ReleaseResponse.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")) + $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.reserved_id); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReleaseResponse message, length delimited. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. + * Encodes the specified ReserveExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReleaseResponse + * @memberof query.ReserveExecuteResponse * @static - * @param {query.IReleaseResponse} message ReleaseResponse 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 */ - ReleaseResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReserveExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReleaseResponse message from the specified reader or buffer. + * Decodes a ReserveExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReleaseResponse + * @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.ReleaseResponse} ReleaseResponse + * @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 */ - ReleaseResponse.decode = function decode(reader, length) { + ReserveExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReleaseResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveExecuteResponse(); while (reader.pos < end) { let 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; @@ -114351,108 +113929,183 @@ export const query = $root.query = (() => { }; /** - * Decodes a ReleaseResponse 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.ReleaseResponse + * @memberof query.ReserveExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReleaseResponse} ReleaseResponse + * @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 */ - ReleaseResponse.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 ReleaseResponse message. + * Verifies a ReserveExecuteResponse message. * @function verify - * @memberof query.ReleaseResponse + * @memberof query.ReserveExecuteResponse * @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) { + ReserveExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.error != null && message.hasOwnProperty("error")) { + let error = $root.vtrpc.RPCError.verify(message.error); + if (error) + return "error." + error; + } + if (message.result != null && message.hasOwnProperty("result")) { + let 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")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } return null; }; /** - * Creates a ReleaseResponse 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.ReleaseResponse + * @memberof query.ReserveExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.ReleaseResponse} ReleaseResponse + * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse */ - ReleaseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReleaseResponse) + ReserveExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveExecuteResponse) return object; - return new $root.query.ReleaseResponse(); + let message = new $root.query.ReserveExecuteResponse(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".query.ReserveExecuteResponse.error: object expected"); + message.error = $root.vtrpc.RPCError.fromObject(object.error); + } + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.ReserveExecuteResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".query.ReserveExecuteResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + return message; }; /** - * Creates a plain object from a ReleaseResponse 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.ReleaseResponse + * @memberof query.ReserveExecuteResponse * @static - * @param {query.ReleaseResponse} message ReleaseResponse + * @param {query.ReserveExecuteResponse} message ReserveExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReleaseResponse.toObject = function toObject() { - return {}; + ReserveExecuteResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.error = null; + object.result = null; + if ($util.Long) { + let 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 ReleaseResponse to JSON. + * Converts this ReserveExecuteResponse to JSON. * @function toJSON - * @memberof query.ReleaseResponse + * @memberof query.ReserveExecuteResponse * @instance * @returns {Object.} JSON object */ - ReleaseResponse.prototype.toJSON = function toJSON() { + ReserveExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReleaseResponse + * Gets the default type url for ReserveExecuteResponse * @function getTypeUrl - * @memberof query.ReleaseResponse + * @memberof query.ReserveExecuteResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReleaseResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReserveExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.ReleaseResponse"; + return typeUrlPrefix + "/query.ReserveExecuteResponse"; }; - return ReleaseResponse; + return ReserveExecuteResponse; })(); - query.StreamHealthRequest = (function() { + query.ReserveStreamExecuteRequest = (function() { /** - * Properties of a StreamHealthRequest. + * Properties of a ReserveStreamExecuteRequest. * @memberof query - * @interface IStreamHealthRequest + * @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 StreamHealthRequest. + * Constructs a new ReserveStreamExecuteRequest. * @memberof query - * @classdesc Represents a StreamHealthRequest. - * @implements IStreamHealthRequest + * @classdesc Represents a ReserveStreamExecuteRequest. + * @implements IReserveStreamExecuteRequest * @constructor - * @param {query.IStreamHealthRequest=} [properties] Properties to set + * @param {query.IReserveStreamExecuteRequest=} [properties] Properties to set */ - function StreamHealthRequest(properties) { + function ReserveStreamExecuteRequest(properties) { + this.pre_queries = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114460,63 +114113,164 @@ export const query = $root.query = (() => { } /** - * Creates a new StreamHealthRequest instance using the specified properties. + * ReserveStreamExecuteRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.ReserveStreamExecuteRequest + * @instance + */ + ReserveStreamExecuteRequest.prototype.effective_caller_id = null; + + /** + * ReserveStreamExecuteRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.ReserveStreamExecuteRequest + * @instance + */ + ReserveStreamExecuteRequest.prototype.immediate_caller_id = null; + + /** + * ReserveStreamExecuteRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.ReserveStreamExecuteRequest + * @instance + */ + ReserveStreamExecuteRequest.prototype.target = null; + + /** + * ReserveStreamExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.ReserveStreamExecuteRequest + * @instance + */ + ReserveStreamExecuteRequest.prototype.query = null; + + /** + * ReserveStreamExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.ReserveStreamExecuteRequest + * @instance + */ + ReserveStreamExecuteRequest.prototype.options = null; + + /** + * ReserveStreamExecuteRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.ReserveStreamExecuteRequest + * @instance + */ + ReserveStreamExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ReserveStreamExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.ReserveStreamExecuteRequest + * @instance + */ + ReserveStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; + + /** + * Creates a new ReserveStreamExecuteRequest instance using the specified properties. * @function create - * @memberof query.StreamHealthRequest + * @memberof query.ReserveStreamExecuteRequest * @static - * @param {query.IStreamHealthRequest=} [properties] Properties to set - * @returns {query.StreamHealthRequest} StreamHealthRequest instance + * @param {query.IReserveStreamExecuteRequest=} [properties] Properties to set + * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest instance */ - StreamHealthRequest.create = function create(properties) { - return new StreamHealthRequest(properties); + ReserveStreamExecuteRequest.create = function create(properties) { + return new ReserveStreamExecuteRequest(properties); }; /** - * Encodes the specified StreamHealthRequest message. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. + * Encodes the specified ReserveStreamExecuteRequest message. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.StreamHealthRequest + * @memberof query.ReserveStreamExecuteRequest * @static - * @param {query.IStreamHealthRequest} message StreamHealthRequest 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 */ - StreamHealthRequest.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")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.transaction_id); + if (message.pre_queries != null && message.pre_queries.length) + for (let i = 0; i < message.pre_queries.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); return writer; }; /** - * Encodes the specified StreamHealthRequest message, length delimited. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. + * Encodes the specified ReserveStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.StreamHealthRequest + * @memberof query.ReserveStreamExecuteRequest * @static - * @param {query.IStreamHealthRequest} message StreamHealthRequest 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 */ - StreamHealthRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReserveStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamHealthRequest message from the specified reader or buffer. + * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.StreamHealthRequest + * @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.StreamHealthRequest} StreamHealthRequest + * @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 */ - StreamHealthRequest.decode = function decode(reader, length) { + ReserveStreamExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamHealthRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveStreamExecuteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + } + case 2: { + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + } + case 3: { + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + } + case 4: { + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + break; + } + case 5: { + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + break; + } + case 6: { + message.transaction_id = reader.int64(); + break; + } + case 7: { + if (!(message.pre_queries && message.pre_queries.length)) + message.pre_queries = []; + message.pre_queries.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -114526,120 +114280,226 @@ export const query = $root.query = (() => { }; /** - * Decodes a StreamHealthRequest 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.StreamHealthRequest + * @memberof query.ReserveStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamHealthRequest} StreamHealthRequest + * @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 */ - StreamHealthRequest.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 StreamHealthRequest message. + * Verifies a ReserveStreamExecuteRequest message. * @function verify - * @memberof query.StreamHealthRequest + * @memberof query.ReserveStreamExecuteRequest * @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) { + 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")) { + let 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")) { + let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + let error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.query != null && message.hasOwnProperty("query")) { + let error = $root.query.BoundQuery.verify(message.query); + if (error) + return "query." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { + if (!Array.isArray(message.pre_queries)) + return "pre_queries: array expected"; + for (let i = 0; i < message.pre_queries.length; ++i) + if (!$util.isString(message.pre_queries[i])) + return "pre_queries: string[] expected"; + } return null; }; /** - * Creates a StreamHealthRequest 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.StreamHealthRequest + * @memberof query.ReserveStreamExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.StreamHealthRequest} StreamHealthRequest + * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest */ - StreamHealthRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamHealthRequest) + ReserveStreamExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveStreamExecuteRequest) return object; - return new $root.query.StreamHealthRequest(); + let message = new $root.query.ReserveStreamExecuteRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.ReserveStreamExecuteRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.ReserveStreamExecuteRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.ReserveStreamExecuteRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".query.ReserveStreamExecuteRequest.query: object expected"); + message.query = $root.query.BoundQuery.fromObject(object.query); + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.ReserveStreamExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.pre_queries) { + if (!Array.isArray(object.pre_queries)) + throw TypeError(".query.ReserveStreamExecuteRequest.pre_queries: array expected"); + message.pre_queries = []; + for (let 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 StreamHealthRequest 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.StreamHealthRequest + * @memberof query.ReserveStreamExecuteRequest * @static - * @param {query.StreamHealthRequest} message StreamHealthRequest + * @param {query.ReserveStreamExecuteRequest} message ReserveStreamExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamHealthRequest.toObject = function toObject() { - return {}; + ReserveStreamExecuteRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let 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) { + let long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.query != null && message.hasOwnProperty("query")) + object.query = $root.query.BoundQuery.toObject(message.query, options); + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.pre_queries && message.pre_queries.length) { + object.pre_queries = []; + for (let j = 0; j < message.pre_queries.length; ++j) + object.pre_queries[j] = message.pre_queries[j]; + } + return object; }; /** - * Converts this StreamHealthRequest to JSON. + * Converts this ReserveStreamExecuteRequest to JSON. * @function toJSON - * @memberof query.StreamHealthRequest + * @memberof query.ReserveStreamExecuteRequest * @instance * @returns {Object.} JSON object */ - StreamHealthRequest.prototype.toJSON = function toJSON() { + ReserveStreamExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamHealthRequest + * Gets the default type url for ReserveStreamExecuteRequest * @function getTypeUrl - * @memberof query.StreamHealthRequest + * @memberof query.ReserveStreamExecuteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamHealthRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReserveStreamExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.StreamHealthRequest"; + return typeUrlPrefix + "/query.ReserveStreamExecuteRequest"; }; - return StreamHealthRequest; + return ReserveStreamExecuteRequest; })(); - query.RealtimeStats = (function() { + query.ReserveStreamExecuteResponse = (function() { /** - * Properties of a RealtimeStats. + * Properties of a ReserveStreamExecuteResponse. * @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 - * @property {Array.|null} [view_schema_changed] RealtimeStats view_schema_changed - * @property {boolean|null} [udfs_changed] RealtimeStats udfs_changed - * @property {boolean|null} [tx_unresolved] RealtimeStats tx_unresolved + * @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 RealtimeStats. + * Constructs a new ReserveStreamExecuteResponse. * @memberof query - * @classdesc Represents a RealtimeStats. - * @implements IRealtimeStats + * @classdesc Represents a ReserveStreamExecuteResponse. + * @implements IReserveStreamExecuteResponse * @constructor - * @param {query.IRealtimeStats=} [properties] Properties to set + * @param {query.IReserveStreamExecuteResponse=} [properties] Properties to set */ - function RealtimeStats(properties) { - this.table_schema_changed = []; - this.view_schema_changed = []; + function ReserveStreamExecuteResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114647,207 +114507,117 @@ export const query = $root.query = (() => { } /** - * RealtimeStats health_error. - * @member {string} health_error - * @memberof query.RealtimeStats + * ReserveStreamExecuteResponse error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof query.ReserveStreamExecuteResponse * @instance */ - RealtimeStats.prototype.health_error = ""; + ReserveStreamExecuteResponse.prototype.error = null; /** - * RealtimeStats replication_lag_seconds. - * @member {number} replication_lag_seconds - * @memberof query.RealtimeStats + * ReserveStreamExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.ReserveStreamExecuteResponse * @instance */ - RealtimeStats.prototype.replication_lag_seconds = 0; + ReserveStreamExecuteResponse.prototype.result = null; /** - * RealtimeStats binlog_players_count. - * @member {number} binlog_players_count - * @memberof query.RealtimeStats + * ReserveStreamExecuteResponse reserved_id. + * @member {number|Long} reserved_id + * @memberof query.ReserveStreamExecuteResponse * @instance */ - RealtimeStats.prototype.binlog_players_count = 0; + ReserveStreamExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * RealtimeStats filtered_replication_lag_seconds. - * @member {number|Long} filtered_replication_lag_seconds - * @memberof query.RealtimeStats + * ReserveStreamExecuteResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof query.ReserveStreamExecuteResponse * @instance */ - RealtimeStats.prototype.filtered_replication_lag_seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReserveStreamExecuteResponse.prototype.tablet_alias = null; /** - * RealtimeStats cpu_usage. - * @member {number} cpu_usage - * @memberof query.RealtimeStats - * @instance + * Creates a new ReserveStreamExecuteResponse instance using the specified properties. + * @function create + * @memberof query.ReserveStreamExecuteResponse + * @static + * @param {query.IReserveStreamExecuteResponse=} [properties] Properties to set + * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse instance */ - RealtimeStats.prototype.cpu_usage = 0; + ReserveStreamExecuteResponse.create = function create(properties) { + return new ReserveStreamExecuteResponse(properties); + }; /** - * RealtimeStats qps. - * @member {number} qps - * @memberof query.RealtimeStats - * @instance + * Encodes the specified ReserveStreamExecuteResponse message. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. + * @function encode + * @memberof query.ReserveStreamExecuteResponse + * @static + * @param {query.IReserveStreamExecuteResponse} message ReserveStreamExecuteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - RealtimeStats.prototype.qps = 0; + ReserveStreamExecuteResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.reserved_id); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; /** - * RealtimeStats table_schema_changed. - * @member {Array.} table_schema_changed - * @memberof query.RealtimeStats - * @instance + * Encodes the specified ReserveStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof query.ReserveStreamExecuteResponse + * @static + * @param {query.IReserveStreamExecuteResponse} message ReserveStreamExecuteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - RealtimeStats.prototype.table_schema_changed = $util.emptyArray; + ReserveStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * RealtimeStats view_schema_changed. - * @member {Array.} view_schema_changed - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.view_schema_changed = $util.emptyArray; - - /** - * RealtimeStats udfs_changed. - * @member {boolean} udfs_changed - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.udfs_changed = false; - - /** - * RealtimeStats tx_unresolved. - * @member {boolean} tx_unresolved - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.tx_unresolved = false; - - /** - * Creates a new RealtimeStats instance using the specified properties. - * @function create - * @memberof query.RealtimeStats - * @static - * @param {query.IRealtimeStats=} [properties] Properties to set - * @returns {query.RealtimeStats} RealtimeStats instance - */ - RealtimeStats.create = function create(properties) { - return new RealtimeStats(properties); - }; - - /** - * Encodes the specified RealtimeStats message. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. - * @function encode - * @memberof query.RealtimeStats - * @static - * @param {query.IRealtimeStats} message RealtimeStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RealtimeStats.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 (let i = 0; i < message.table_schema_changed.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.table_schema_changed[i]); - if (message.view_schema_changed != null && message.view_schema_changed.length) - for (let i = 0; i < message.view_schema_changed.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.view_schema_changed[i]); - if (message.udfs_changed != null && Object.hasOwnProperty.call(message, "udfs_changed")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.udfs_changed); - if (message.tx_unresolved != null && Object.hasOwnProperty.call(message, "tx_unresolved")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.tx_unresolved); - return writer; - }; - - /** - * Encodes the specified RealtimeStats message, length delimited. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. - * @function encodeDelimited - * @memberof query.RealtimeStats - * @static - * @param {query.IRealtimeStats} message RealtimeStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RealtimeStats.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RealtimeStats message from the specified reader or buffer. + * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.RealtimeStats + * @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.RealtimeStats} RealtimeStats + * @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 */ - RealtimeStats.decode = function decode(reader, length) { + ReserveStreamExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RealtimeStats(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveStreamExecuteResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.health_error = reader.string(); + message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); break; } case 2: { - message.replication_lag_seconds = reader.uint32(); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; } case 3: { - message.binlog_players_count = reader.int32(); + message.reserved_id = reader.int64(); 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; - } - case 8: { - if (!(message.view_schema_changed && message.view_schema_changed.length)) - message.view_schema_changed = []; - message.view_schema_changed.push(reader.string()); - break; - } - case 9: { - message.udfs_changed = reader.bool(); - break; - } - case 10: { - message.tx_unresolved = reader.bool(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -114859,238 +114629,184 @@ export const query = $root.query = (() => { }; /** - * Decodes a RealtimeStats 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.RealtimeStats + * @memberof query.ReserveStreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.RealtimeStats} RealtimeStats + * @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 */ - RealtimeStats.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 RealtimeStats message. + * Verifies a ReserveStreamExecuteResponse message. * @function verify - * @memberof query.RealtimeStats + * @memberof query.ReserveStreamExecuteResponse * @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) { + ReserveStreamExecuteResponse.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 (let i = 0; i < message.table_schema_changed.length; ++i) - if (!$util.isString(message.table_schema_changed[i])) - return "table_schema_changed: string[] expected"; + if (message.error != null && message.hasOwnProperty("error")) { + let error = $root.vtrpc.RPCError.verify(message.error); + if (error) + return "error." + error; } - if (message.view_schema_changed != null && message.hasOwnProperty("view_schema_changed")) { - if (!Array.isArray(message.view_schema_changed)) - return "view_schema_changed: array expected"; - for (let i = 0; i < message.view_schema_changed.length; ++i) - if (!$util.isString(message.view_schema_changed[i])) - return "view_schema_changed: string[] expected"; + if (message.result != null && message.hasOwnProperty("result")) { + let 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")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; } - if (message.udfs_changed != null && message.hasOwnProperty("udfs_changed")) - if (typeof message.udfs_changed !== "boolean") - return "udfs_changed: boolean expected"; - if (message.tx_unresolved != null && message.hasOwnProperty("tx_unresolved")) - if (typeof message.tx_unresolved !== "boolean") - return "tx_unresolved: boolean expected"; return null; }; /** - * Creates a RealtimeStats 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.RealtimeStats + * @memberof query.ReserveStreamExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.RealtimeStats} RealtimeStats + * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse */ - RealtimeStats.fromObject = function fromObject(object) { - if (object instanceof $root.query.RealtimeStats) + ReserveStreamExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveStreamExecuteResponse) return object; - let 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 (let i = 0; i < object.table_schema_changed.length; ++i) - message.table_schema_changed[i] = String(object.table_schema_changed[i]); + let message = new $root.query.ReserveStreamExecuteResponse(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".query.ReserveStreamExecuteResponse.error: object expected"); + message.error = $root.vtrpc.RPCError.fromObject(object.error); } - if (object.view_schema_changed) { - if (!Array.isArray(object.view_schema_changed)) - throw TypeError(".query.RealtimeStats.view_schema_changed: array expected"); - message.view_schema_changed = []; - for (let i = 0; i < object.view_schema_changed.length; ++i) - message.view_schema_changed[i] = String(object.view_schema_changed[i]); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.ReserveStreamExecuteResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".query.ReserveStreamExecuteResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } - if (object.udfs_changed != null) - message.udfs_changed = Boolean(object.udfs_changed); - if (object.tx_unresolved != null) - message.tx_unresolved = Boolean(object.tx_unresolved); return message; }; /** - * Creates a plain object from a RealtimeStats 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.RealtimeStats + * @memberof query.ReserveStreamExecuteResponse * @static - * @param {query.RealtimeStats} message RealtimeStats + * @param {query.ReserveStreamExecuteResponse} message ReserveStreamExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RealtimeStats.toObject = function toObject(message, options) { + ReserveStreamExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.table_schema_changed = []; - object.view_schema_changed = []; - } if (options.defaults) { - object.health_error = ""; - object.replication_lag_seconds = 0; - object.binlog_players_count = 0; + object.error = null; + object.result = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.filtered_replication_lag_seconds = 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.filtered_replication_lag_seconds = options.longs === String ? "0" : 0; - object.cpu_usage = 0; - object.qps = 0; - object.udfs_changed = false; - object.tx_unresolved = false; + object.reserved_id = options.longs === String ? "0" : 0; + object.tablet_alias = null; } - 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; + 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.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 (let j = 0; j < message.table_schema_changed.length; ++j) - object.table_schema_changed[j] = message.table_schema_changed[j]; - } - if (message.view_schema_changed && message.view_schema_changed.length) { - object.view_schema_changed = []; - for (let j = 0; j < message.view_schema_changed.length; ++j) - object.view_schema_changed[j] = message.view_schema_changed[j]; - } - if (message.udfs_changed != null && message.hasOwnProperty("udfs_changed")) - object.udfs_changed = message.udfs_changed; - if (message.tx_unresolved != null && message.hasOwnProperty("tx_unresolved")) - object.tx_unresolved = message.tx_unresolved; + 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 RealtimeStats to JSON. + * Converts this ReserveStreamExecuteResponse to JSON. * @function toJSON - * @memberof query.RealtimeStats + * @memberof query.ReserveStreamExecuteResponse * @instance * @returns {Object.} JSON object */ - RealtimeStats.prototype.toJSON = function toJSON() { + ReserveStreamExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RealtimeStats + * Gets the default type url for ReserveStreamExecuteResponse * @function getTypeUrl - * @memberof query.RealtimeStats + * @memberof query.ReserveStreamExecuteResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RealtimeStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReserveStreamExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.RealtimeStats"; + return typeUrlPrefix + "/query.ReserveStreamExecuteResponse"; }; - return RealtimeStats; + return ReserveStreamExecuteResponse; })(); - query.AggregateStats = (function() { + query.ReserveBeginExecuteRequest = (function() { /** - * Properties of an AggregateStats. + * Properties of a ReserveBeginExecuteRequest. * @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 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 AggregateStats. + * Constructs a new ReserveBeginExecuteRequest. * @memberof query - * @classdesc Represents an AggregateStats. - * @implements IAggregateStats + * @classdesc Represents a ReserveBeginExecuteRequest. + * @implements IReserveBeginExecuteRequest * @constructor - * @param {query.IAggregateStats=} [properties] Properties to set + * @param {query.IReserveBeginExecuteRequest=} [properties] Properties to set */ - function AggregateStats(properties) { + function ReserveBeginExecuteRequest(properties) { + this.pre_queries = []; + this.post_begin_queries = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -115098,117 +114814,165 @@ export const query = $root.query = (() => { } /** - * AggregateStats healthy_tablet_count. - * @member {number} healthy_tablet_count - * @memberof query.AggregateStats + * ReserveBeginExecuteRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.ReserveBeginExecuteRequest * @instance */ - AggregateStats.prototype.healthy_tablet_count = 0; + ReserveBeginExecuteRequest.prototype.effective_caller_id = null; /** - * AggregateStats unhealthy_tablet_count. - * @member {number} unhealthy_tablet_count - * @memberof query.AggregateStats + * ReserveBeginExecuteRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.ReserveBeginExecuteRequest * @instance */ - AggregateStats.prototype.unhealthy_tablet_count = 0; + ReserveBeginExecuteRequest.prototype.immediate_caller_id = null; /** - * AggregateStats replication_lag_seconds_min. - * @member {number} replication_lag_seconds_min - * @memberof query.AggregateStats + * ReserveBeginExecuteRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.ReserveBeginExecuteRequest * @instance */ - AggregateStats.prototype.replication_lag_seconds_min = 0; + ReserveBeginExecuteRequest.prototype.target = null; /** - * AggregateStats replication_lag_seconds_max. - * @member {number} replication_lag_seconds_max - * @memberof query.AggregateStats + * ReserveBeginExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.ReserveBeginExecuteRequest * @instance */ - AggregateStats.prototype.replication_lag_seconds_max = 0; + ReserveBeginExecuteRequest.prototype.query = null; /** - * Creates a new AggregateStats instance using the specified properties. + * ReserveBeginExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.ReserveBeginExecuteRequest + * @instance + */ + ReserveBeginExecuteRequest.prototype.options = null; + + /** + * ReserveBeginExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.ReserveBeginExecuteRequest + * @instance + */ + ReserveBeginExecuteRequest.prototype.pre_queries = $util.emptyArray; + + /** + * ReserveBeginExecuteRequest post_begin_queries. + * @member {Array.} post_begin_queries + * @memberof query.ReserveBeginExecuteRequest + * @instance + */ + ReserveBeginExecuteRequest.prototype.post_begin_queries = $util.emptyArray; + + /** + * Creates a new ReserveBeginExecuteRequest instance using the specified properties. * @function create - * @memberof query.AggregateStats + * @memberof query.ReserveBeginExecuteRequest * @static - * @param {query.IAggregateStats=} [properties] Properties to set - * @returns {query.AggregateStats} AggregateStats instance + * @param {query.IReserveBeginExecuteRequest=} [properties] Properties to set + * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest instance */ - AggregateStats.create = function create(properties) { - return new AggregateStats(properties); + ReserveBeginExecuteRequest.create = function create(properties) { + return new ReserveBeginExecuteRequest(properties); }; /** - * Encodes the specified AggregateStats message. Does not implicitly {@link query.AggregateStats.verify|verify} messages. + * Encodes the specified ReserveBeginExecuteRequest message. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.AggregateStats + * @memberof query.ReserveBeginExecuteRequest * @static - * @param {query.IAggregateStats} message AggregateStats 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 */ - AggregateStats.encode = function encode(message, writer) { + ReserveBeginExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.healthy_tablet_count != null && Object.hasOwnProperty.call(message, "healthy_tablet_count")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.healthy_tablet_count); - if (message.unhealthy_tablet_count != null && Object.hasOwnProperty.call(message, "unhealthy_tablet_count")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.unhealthy_tablet_count); - if (message.replication_lag_seconds_min != null && Object.hasOwnProperty.call(message, "replication_lag_seconds_min")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.replication_lag_seconds_min); - if (message.replication_lag_seconds_max != null && Object.hasOwnProperty.call(message, "replication_lag_seconds_max")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.replication_lag_seconds_max); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.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 (let 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 (let 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 AggregateStats message, length delimited. Does not implicitly {@link query.AggregateStats.verify|verify} messages. + * Encodes the specified ReserveBeginExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.AggregateStats + * @memberof query.ReserveBeginExecuteRequest * @static - * @param {query.IAggregateStats} message AggregateStats 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 */ - AggregateStats.encodeDelimited = function encodeDelimited(message, writer) { + ReserveBeginExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregateStats message from the specified reader or buffer. + * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.AggregateStats + * @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.AggregateStats} AggregateStats + * @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 */ - AggregateStats.decode = function decode(reader, length) { + ReserveBeginExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.AggregateStats(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginExecuteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.healthy_tablet_count = reader.int32(); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; } case 2: { - message.unhealthy_tablet_count = reader.int32(); + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); break; } case 3: { - message.replication_lag_seconds_min = reader.uint32(); + message.target = $root.query.Target.decode(reader, reader.uint32()); break; } case 4: { - message.replication_lag_seconds_max = reader.uint32(); + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + break; + } + case 5: { + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + break; + } + case 6: { + if (!(message.pre_queries && message.pre_queries.length)) + message.pre_queries = []; + message.pre_queries.push(reader.string()); + break; + } + case 7: { + if (!(message.post_begin_queries && message.post_begin_queries.length)) + message.post_begin_queries = []; + message.post_begin_queries.push(reader.string()); break; } default: @@ -115220,151 +114984,227 @@ export const query = $root.query = (() => { }; /** - * Decodes an AggregateStats 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.AggregateStats + * @memberof query.ReserveBeginExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.AggregateStats} AggregateStats + * @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 */ - AggregateStats.decodeDelimited = function decodeDelimited(reader) { + ReserveBeginExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregateStats message. + * Verifies a ReserveBeginExecuteRequest message. * @function verify - * @memberof query.AggregateStats + * @memberof query.ReserveBeginExecuteRequest * @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) { + ReserveBeginExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.healthy_tablet_count != null && message.hasOwnProperty("healthy_tablet_count")) - if (!$util.isInteger(message.healthy_tablet_count)) - return "healthy_tablet_count: integer expected"; - if (message.unhealthy_tablet_count != null && message.hasOwnProperty("unhealthy_tablet_count")) - if (!$util.isInteger(message.unhealthy_tablet_count)) - return "unhealthy_tablet_count: integer expected"; - if (message.replication_lag_seconds_min != null && message.hasOwnProperty("replication_lag_seconds_min")) - if (!$util.isInteger(message.replication_lag_seconds_min)) - return "replication_lag_seconds_min: integer expected"; - if (message.replication_lag_seconds_max != null && message.hasOwnProperty("replication_lag_seconds_max")) - if (!$util.isInteger(message.replication_lag_seconds_max)) - return "replication_lag_seconds_max: integer expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + let 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")) { + let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + let error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.query != null && message.hasOwnProperty("query")) { + let error = $root.query.BoundQuery.verify(message.query); + if (error) + return "query." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + let 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 (let 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 (let 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 an AggregateStats 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.AggregateStats + * @memberof query.ReserveBeginExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.AggregateStats} AggregateStats + * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest */ - AggregateStats.fromObject = function fromObject(object) { - if (object instanceof $root.query.AggregateStats) + ReserveBeginExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveBeginExecuteRequest) return object; - let 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; + let message = new $root.query.ReserveBeginExecuteRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.ReserveBeginExecuteRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.ReserveBeginExecuteRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.ReserveBeginExecuteRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".query.ReserveBeginExecuteRequest.query: object expected"); + message.query = $root.query.BoundQuery.fromObject(object.query); + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.ReserveBeginExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } + if (object.pre_queries) { + if (!Array.isArray(object.pre_queries)) + throw TypeError(".query.ReserveBeginExecuteRequest.pre_queries: array expected"); + message.pre_queries = []; + for (let 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 (let 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 an AggregateStats 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.AggregateStats + * @memberof query.ReserveBeginExecuteRequest * @static - * @param {query.AggregateStats} message AggregateStats + * @param {query.ReserveBeginExecuteRequest} message ReserveBeginExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregateStats.toObject = function toObject(message, options) { + ReserveBeginExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.pre_queries = []; + object.post_begin_queries = []; + } if (options.defaults) { - object.healthy_tablet_count = 0; - object.unhealthy_tablet_count = 0; - object.replication_lag_seconds_min = 0; - object.replication_lag_seconds_max = 0; + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.query = null; + object.options = null; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.query != null && message.hasOwnProperty("query")) + object.query = $root.query.BoundQuery.toObject(message.query, options); + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.pre_queries && message.pre_queries.length) { + object.pre_queries = []; + for (let 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 (let j = 0; j < message.post_begin_queries.length; ++j) + object.post_begin_queries[j] = message.post_begin_queries[j]; } - if (message.healthy_tablet_count != null && message.hasOwnProperty("healthy_tablet_count")) - object.healthy_tablet_count = message.healthy_tablet_count; - if (message.unhealthy_tablet_count != null && message.hasOwnProperty("unhealthy_tablet_count")) - object.unhealthy_tablet_count = message.unhealthy_tablet_count; - if (message.replication_lag_seconds_min != null && message.hasOwnProperty("replication_lag_seconds_min")) - object.replication_lag_seconds_min = message.replication_lag_seconds_min; - if (message.replication_lag_seconds_max != null && message.hasOwnProperty("replication_lag_seconds_max")) - object.replication_lag_seconds_max = message.replication_lag_seconds_max; return object; }; /** - * Converts this AggregateStats to JSON. + * Converts this ReserveBeginExecuteRequest to JSON. * @function toJSON - * @memberof query.AggregateStats + * @memberof query.ReserveBeginExecuteRequest * @instance * @returns {Object.} JSON object */ - AggregateStats.prototype.toJSON = function toJSON() { + ReserveBeginExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregateStats + * Gets the default type url for ReserveBeginExecuteRequest * @function getTypeUrl - * @memberof query.AggregateStats + * @memberof query.ReserveBeginExecuteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregateStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReserveBeginExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.AggregateStats"; + return typeUrlPrefix + "/query.ReserveBeginExecuteRequest"; }; - return AggregateStats; + return ReserveBeginExecuteRequest; })(); - query.StreamHealthResponse = (function() { + query.ReserveBeginExecuteResponse = (function() { /** - * Properties of a StreamHealthResponse. + * Properties of a ReserveBeginExecuteResponse. * @memberof query - * @interface IStreamHealthResponse - * @property {query.ITarget|null} [target] StreamHealthResponse target - * @property {boolean|null} [serving] StreamHealthResponse serving - * @property {number|Long|null} [primary_term_start_timestamp] StreamHealthResponse primary_term_start_timestamp - * @property {query.IRealtimeStats|null} [realtime_stats] StreamHealthResponse realtime_stats - * @property {topodata.ITabletAlias|null} [tablet_alias] StreamHealthResponse tablet_alias + * @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 StreamHealthResponse. + * Constructs a new ReserveBeginExecuteResponse. * @memberof query - * @classdesc Represents a StreamHealthResponse. - * @implements IStreamHealthResponse + * @classdesc Represents a ReserveBeginExecuteResponse. + * @implements IReserveBeginExecuteResponse * @constructor - * @param {query.IStreamHealthResponse=} [properties] Properties to set + * @param {query.IReserveBeginExecuteResponse=} [properties] Properties to set */ - function StreamHealthResponse(properties) { + function ReserveBeginExecuteResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -115372,133 +115212,147 @@ export const query = $root.query = (() => { } /** - * StreamHealthResponse target. - * @member {query.ITarget|null|undefined} target - * @memberof query.StreamHealthResponse + * ReserveBeginExecuteResponse error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof query.ReserveBeginExecuteResponse * @instance */ - StreamHealthResponse.prototype.target = null; + ReserveBeginExecuteResponse.prototype.error = null; /** - * StreamHealthResponse serving. - * @member {boolean} serving - * @memberof query.StreamHealthResponse + * ReserveBeginExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.ReserveBeginExecuteResponse * @instance */ - StreamHealthResponse.prototype.serving = false; + ReserveBeginExecuteResponse.prototype.result = null; /** - * StreamHealthResponse primary_term_start_timestamp. - * @member {number|Long} primary_term_start_timestamp - * @memberof query.StreamHealthResponse + * ReserveBeginExecuteResponse transaction_id. + * @member {number|Long} transaction_id + * @memberof query.ReserveBeginExecuteResponse * @instance */ - StreamHealthResponse.prototype.primary_term_start_timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReserveBeginExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * StreamHealthResponse realtime_stats. - * @member {query.IRealtimeStats|null|undefined} realtime_stats - * @memberof query.StreamHealthResponse + * ReserveBeginExecuteResponse reserved_id. + * @member {number|Long} reserved_id + * @memberof query.ReserveBeginExecuteResponse * @instance */ - StreamHealthResponse.prototype.realtime_stats = null; + ReserveBeginExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * StreamHealthResponse tablet_alias. + * ReserveBeginExecuteResponse tablet_alias. * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.StreamHealthResponse + * @memberof query.ReserveBeginExecuteResponse * @instance */ - StreamHealthResponse.prototype.tablet_alias = null; + ReserveBeginExecuteResponse.prototype.tablet_alias = null; /** - * Creates a new StreamHealthResponse instance using the specified properties. + * ReserveBeginExecuteResponse session_state_changes. + * @member {string} session_state_changes + * @memberof query.ReserveBeginExecuteResponse + * @instance + */ + ReserveBeginExecuteResponse.prototype.session_state_changes = ""; + + /** + * Creates a new ReserveBeginExecuteResponse instance using the specified properties. * @function create - * @memberof query.StreamHealthResponse + * @memberof query.ReserveBeginExecuteResponse * @static - * @param {query.IStreamHealthResponse=} [properties] Properties to set - * @returns {query.StreamHealthResponse} StreamHealthResponse instance + * @param {query.IReserveBeginExecuteResponse=} [properties] Properties to set + * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse instance */ - StreamHealthResponse.create = function create(properties) { - return new StreamHealthResponse(properties); + ReserveBeginExecuteResponse.create = function create(properties) { + return new ReserveBeginExecuteResponse(properties); }; /** - * Encodes the specified StreamHealthResponse message. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. + * Encodes the specified ReserveBeginExecuteResponse message. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.StreamHealthResponse + * @memberof query.ReserveBeginExecuteResponse * @static - * @param {query.IStreamHealthResponse} message StreamHealthResponse 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 */ - StreamHealthResponse.encode = function encode(message, writer) { + ReserveBeginExecuteResponse.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.primary_term_start_timestamp != null && Object.hasOwnProperty.call(message, "primary_term_start_timestamp")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.primary_term_start_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.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 StreamHealthResponse message, length delimited. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. + * Encodes the specified ReserveBeginExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.StreamHealthResponse + * @memberof query.ReserveBeginExecuteResponse * @static - * @param {query.IStreamHealthResponse} message StreamHealthResponse 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 */ - StreamHealthResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReserveBeginExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamHealthResponse message from the specified reader or buffer. + * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.StreamHealthResponse + * @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.StreamHealthResponse} StreamHealthResponse + * @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 */ - StreamHealthResponse.decode = function decode(reader, length) { + ReserveBeginExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamHealthResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginExecuteResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.target = $root.query.Target.decode(reader, reader.uint32()); + message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); break; } case 2: { - message.serving = reader.bool(); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; } case 3: { - message.primary_term_start_timestamp = reader.int64(); + message.transaction_id = reader.int64(); break; } case 4: { - message.realtime_stats = $root.query.RealtimeStats.decode(reader, reader.uint32()); + 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; @@ -115508,206 +115362,214 @@ export const query = $root.query = (() => { }; /** - * Decodes a StreamHealthResponse 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.StreamHealthResponse + * @memberof query.ReserveBeginExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamHealthResponse} StreamHealthResponse + * @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 */ - StreamHealthResponse.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 StreamHealthResponse message. + * Verifies a ReserveBeginExecuteResponse message. * @function verify - * @memberof query.StreamHealthResponse + * @memberof query.ReserveBeginExecuteResponse * @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) { + ReserveBeginExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.target != null && message.hasOwnProperty("target")) { - let error = $root.query.Target.verify(message.target); + if (message.error != null && message.hasOwnProperty("error")) { + let error = $root.vtrpc.RPCError.verify(message.error); if (error) - return "target." + error; + return "error." + error; } - if (message.serving != null && message.hasOwnProperty("serving")) - if (typeof message.serving !== "boolean") - return "serving: boolean expected"; - if (message.primary_term_start_timestamp != null && message.hasOwnProperty("primary_term_start_timestamp")) - if (!$util.isInteger(message.primary_term_start_timestamp) && !(message.primary_term_start_timestamp && $util.isInteger(message.primary_term_start_timestamp.low) && $util.isInteger(message.primary_term_start_timestamp.high))) - return "primary_term_start_timestamp: integer|Long expected"; - if (message.realtime_stats != null && message.hasOwnProperty("realtime_stats")) { - let error = $root.query.RealtimeStats.verify(message.realtime_stats); + if (message.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); if (error) - return "realtime_stats." + 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")) { let 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 StreamHealthResponse 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.StreamHealthResponse + * @memberof query.ReserveBeginExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.StreamHealthResponse} StreamHealthResponse + * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse */ - StreamHealthResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamHealthResponse) + ReserveBeginExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveBeginExecuteResponse) return object; - let 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); + let message = new $root.query.ReserveBeginExecuteResponse(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".query.ReserveBeginExecuteResponse.error: object expected"); + message.error = $root.vtrpc.RPCError.fromObject(object.error); } - if (object.serving != null) - message.serving = Boolean(object.serving); - if (object.primary_term_start_timestamp != null) - if ($util.Long) - (message.primary_term_start_timestamp = $util.Long.fromValue(object.primary_term_start_timestamp)).unsigned = false; - else if (typeof object.primary_term_start_timestamp === "string") - message.primary_term_start_timestamp = parseInt(object.primary_term_start_timestamp, 10); - else if (typeof object.primary_term_start_timestamp === "number") - message.primary_term_start_timestamp = object.primary_term_start_timestamp; - else if (typeof object.primary_term_start_timestamp === "object") - message.primary_term_start_timestamp = new $util.LongBits(object.primary_term_start_timestamp.low >>> 0, object.primary_term_start_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.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.ReserveBeginExecuteResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".query.StreamHealthResponse.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) + message.session_state_changes = String(object.session_state_changes); return message; }; /** - * Creates a plain object from a StreamHealthResponse 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.StreamHealthResponse + * @memberof query.ReserveBeginExecuteResponse * @static - * @param {query.StreamHealthResponse} message StreamHealthResponse + * @param {query.ReserveBeginExecuteResponse} message ReserveBeginExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamHealthResponse.toObject = function toObject(message, options) { + ReserveBeginExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.target = null; - object.serving = false; + object.error = null; + object.result = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.primary_term_start_timestamp = 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.primary_term_start_timestamp = options.longs === String ? "0" : 0; - object.realtime_stats = null; + object.transaction_id = options.longs === String ? "0" : 0; + if ($util.Long) { + let 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.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.primary_term_start_timestamp != null && message.hasOwnProperty("primary_term_start_timestamp")) - if (typeof message.primary_term_start_timestamp === "number") - object.primary_term_start_timestamp = options.longs === String ? String(message.primary_term_start_timestamp) : message.primary_term_start_timestamp; + 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.primary_term_start_timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.primary_term_start_timestamp) : options.longs === Number ? new $util.LongBits(message.primary_term_start_timestamp.low >>> 0, message.primary_term_start_timestamp.high >>> 0).toNumber() : message.primary_term_start_timestamp; - if (message.realtime_stats != null && message.hasOwnProperty("realtime_stats")) - object.realtime_stats = $root.query.RealtimeStats.toObject(message.realtime_stats, options); + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.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 StreamHealthResponse to JSON. + * Converts this ReserveBeginExecuteResponse to JSON. * @function toJSON - * @memberof query.StreamHealthResponse + * @memberof query.ReserveBeginExecuteResponse * @instance * @returns {Object.} JSON object */ - StreamHealthResponse.prototype.toJSON = function toJSON() { + ReserveBeginExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamHealthResponse + * Gets the default type url for ReserveBeginExecuteResponse * @function getTypeUrl - * @memberof query.StreamHealthResponse + * @memberof query.ReserveBeginExecuteResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamHealthResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReserveBeginExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.StreamHealthResponse"; + return typeUrlPrefix + "/query.ReserveBeginExecuteResponse"; }; - return StreamHealthResponse; + return ReserveBeginExecuteResponse; })(); - /** - * TransactionState enum. - * @name query.TransactionState - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} PREPARE=1 PREPARE value - * @property {number} ROLLBACK=2 ROLLBACK value - * @property {number} COMMIT=3 COMMIT value - */ - query.TransactionState = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "PREPARE"] = 1; - values[valuesById[2] = "ROLLBACK"] = 2; - values[valuesById[3] = "COMMIT"] = 3; - return values; - })(); - - query.TransactionMetadata = (function() { + query.ReserveBeginStreamExecuteRequest = (function() { /** - * Properties of a TransactionMetadata. + * Properties of a ReserveBeginStreamExecuteRequest. * @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 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 TransactionMetadata. + * Constructs a new ReserveBeginStreamExecuteRequest. * @memberof query - * @classdesc Represents a TransactionMetadata. - * @implements ITransactionMetadata + * @classdesc Represents a ReserveBeginStreamExecuteRequest. + * @implements IReserveBeginStreamExecuteRequest * @constructor - * @param {query.ITransactionMetadata=} [properties] Properties to set + * @param {query.IReserveBeginStreamExecuteRequest=} [properties] Properties to set */ - function TransactionMetadata(properties) { - this.participants = []; + function ReserveBeginStreamExecuteRequest(properties) { + this.pre_queries = []; + this.post_begin_queries = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -115715,120 +115577,165 @@ export const query = $root.query = (() => { } /** - * TransactionMetadata dtid. - * @member {string} dtid - * @memberof query.TransactionMetadata + * ReserveBeginStreamExecuteRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.ReserveBeginStreamExecuteRequest * @instance */ - TransactionMetadata.prototype.dtid = ""; + ReserveBeginStreamExecuteRequest.prototype.effective_caller_id = null; /** - * TransactionMetadata state. - * @member {query.TransactionState} state - * @memberof query.TransactionMetadata + * ReserveBeginStreamExecuteRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.ReserveBeginStreamExecuteRequest * @instance */ - TransactionMetadata.prototype.state = 0; + ReserveBeginStreamExecuteRequest.prototype.immediate_caller_id = null; /** - * TransactionMetadata time_created. - * @member {number|Long} time_created - * @memberof query.TransactionMetadata + * ReserveBeginStreamExecuteRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.ReserveBeginStreamExecuteRequest * @instance */ - TransactionMetadata.prototype.time_created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReserveBeginStreamExecuteRequest.prototype.target = null; /** - * TransactionMetadata participants. - * @member {Array.} participants - * @memberof query.TransactionMetadata + * ReserveBeginStreamExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.ReserveBeginStreamExecuteRequest * @instance */ - TransactionMetadata.prototype.participants = $util.emptyArray; + ReserveBeginStreamExecuteRequest.prototype.query = null; /** - * Creates a new TransactionMetadata instance using the specified properties. + * ReserveBeginStreamExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.ReserveBeginStreamExecuteRequest + * @instance + */ + ReserveBeginStreamExecuteRequest.prototype.options = null; + + /** + * ReserveBeginStreamExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.ReserveBeginStreamExecuteRequest + * @instance + */ + ReserveBeginStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; + + /** + * ReserveBeginStreamExecuteRequest post_begin_queries. + * @member {Array.} post_begin_queries + * @memberof query.ReserveBeginStreamExecuteRequest + * @instance + */ + ReserveBeginStreamExecuteRequest.prototype.post_begin_queries = $util.emptyArray; + + /** + * Creates a new ReserveBeginStreamExecuteRequest instance using the specified properties. * @function create - * @memberof query.TransactionMetadata + * @memberof query.ReserveBeginStreamExecuteRequest * @static - * @param {query.ITransactionMetadata=} [properties] Properties to set - * @returns {query.TransactionMetadata} TransactionMetadata instance + * @param {query.IReserveBeginStreamExecuteRequest=} [properties] Properties to set + * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest instance */ - TransactionMetadata.create = function create(properties) { - return new TransactionMetadata(properties); + ReserveBeginStreamExecuteRequest.create = function create(properties) { + return new ReserveBeginStreamExecuteRequest(properties); }; /** - * Encodes the specified TransactionMetadata message. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. + * Encodes the specified ReserveBeginStreamExecuteRequest message. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.TransactionMetadata + * @memberof query.ReserveBeginStreamExecuteRequest * @static - * @param {query.ITransactionMetadata} message TransactionMetadata 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 */ - TransactionMetadata.encode = function encode(message, writer) { + ReserveBeginStreamExecuteRequest.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 (let 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.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.pre_queries != null && message.pre_queries.length) + for (let 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 (let 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 TransactionMetadata message, length delimited. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. + * Encodes the specified ReserveBeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.TransactionMetadata + * @memberof query.ReserveBeginStreamExecuteRequest * @static - * @param {query.ITransactionMetadata} message TransactionMetadata 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 */ - TransactionMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ReserveBeginStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransactionMetadata message from the specified reader or buffer. + * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.TransactionMetadata + * @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.TransactionMetadata} TransactionMetadata + * @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 */ - TransactionMetadata.decode = function decode(reader, length) { + ReserveBeginStreamExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.TransactionMetadata(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginStreamExecuteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dtid = reader.string(); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; } case 2: { - message.state = reader.int32(); + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); break; } case 3: { - message.time_created = reader.int64(); + message.target = $root.query.Target.decode(reader, reader.uint32()); break; } case 4: { - if (!(message.participants && message.participants.length)) - message.participants = []; - message.participants.push($root.query.Target.decode(reader, reader.uint32())); + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + break; + } + case 5: { + message.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: @@ -115840,229 +115747,227 @@ export const query = $root.query = (() => { }; /** - * Decodes a TransactionMetadata 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.TransactionMetadata + * @memberof query.ReserveBeginStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.TransactionMetadata} TransactionMetadata + * @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 */ - TransactionMetadata.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 TransactionMetadata message. + * Verifies a ReserveBeginStreamExecuteRequest message. * @function verify - * @memberof query.TransactionMetadata + * @memberof query.ReserveBeginStreamExecuteRequest * @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) { + ReserveBeginStreamExecuteRequest.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 (let i = 0; i < message.participants.length; ++i) { - let error = $root.query.Target.verify(message.participants[i]); - if (error) - return "participants." + error; - } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + let 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")) { + let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + let error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.query != null && message.hasOwnProperty("query")) { + let error = $root.query.BoundQuery.verify(message.query); + if (error) + return "query." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + let 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 (let 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 (let 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 TransactionMetadata 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.TransactionMetadata + * @memberof query.ReserveBeginStreamExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.TransactionMetadata} TransactionMetadata + * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest */ - TransactionMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.query.TransactionMetadata) + ReserveBeginStreamExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveBeginStreamExecuteRequest) return object; - let message = new $root.query.TransactionMetadata(); - if (object.dtid != null) - message.dtid = String(object.dtid); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "UNKNOWN": - case 0: - message.state = 0; - break; - case "PREPARE": - case 1: - message.state = 1; - break; - case "ROLLBACK": - case 2: - message.state = 2; - break; - case "COMMIT": - case 3: - message.state = 3; - break; + let message = new $root.query.ReserveBeginStreamExecuteRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } - if (object.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 (let 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]); - } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteRequest.query: object expected"); + message.query = $root.query.BoundQuery.fromObject(object.query); + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } + if (object.pre_queries) { + if (!Array.isArray(object.pre_queries)) + throw TypeError(".query.ReserveBeginStreamExecuteRequest.pre_queries: array expected"); + message.pre_queries = []; + for (let 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 (let 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 TransactionMetadata 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.TransactionMetadata + * @memberof query.ReserveBeginStreamExecuteRequest * @static - * @param {query.TransactionMetadata} message TransactionMetadata + * @param {query.ReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransactionMetadata.toObject = function toObject(message, options) { + ReserveBeginStreamExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.participants = []; + if (options.arrays || options.defaults) { + object.pre_queries = []; + object.post_begin_queries = []; + } if (options.defaults) { - object.dtid = ""; - object.state = options.enums === String ? "UNKNOWN" : 0; - if ($util.Long) { - let 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; + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.query = null; + object.options = null; } - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.query.TransactionState[message.state] === undefined ? message.state : $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 (let j = 0; j < message.participants.length; ++j) - object.participants[j] = $root.query.Target.toObject(message.participants[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.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 (let 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 (let j = 0; j < message.post_begin_queries.length; ++j) + object.post_begin_queries[j] = message.post_begin_queries[j]; } return object; }; /** - * Converts this TransactionMetadata to JSON. + * Converts this ReserveBeginStreamExecuteRequest to JSON. * @function toJSON - * @memberof query.TransactionMetadata + * @memberof query.ReserveBeginStreamExecuteRequest * @instance * @returns {Object.} JSON object */ - TransactionMetadata.prototype.toJSON = function toJSON() { + ReserveBeginStreamExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TransactionMetadata + * Gets the default type url for ReserveBeginStreamExecuteRequest * @function getTypeUrl - * @memberof query.TransactionMetadata + * @memberof query.ReserveBeginStreamExecuteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TransactionMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReserveBeginStreamExecuteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.TransactionMetadata"; + return typeUrlPrefix + "/query.ReserveBeginStreamExecuteRequest"; }; - return TransactionMetadata; - })(); - - /** - * SchemaTableType enum. - * @name query.SchemaTableType - * @enum {number} - * @property {number} VIEWS=0 VIEWS value - * @property {number} TABLES=1 TABLES value - * @property {number} ALL=2 ALL value - * @property {number} UDFS=3 UDFS value - */ - query.SchemaTableType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "VIEWS"] = 0; - values[valuesById[1] = "TABLES"] = 1; - values[valuesById[2] = "ALL"] = 2; - values[valuesById[3] = "UDFS"] = 3; - return values; + return ReserveBeginStreamExecuteRequest; })(); - query.GetSchemaRequest = (function() { + query.ReserveBeginStreamExecuteResponse = (function() { /** - * Properties of a GetSchemaRequest. + * Properties of a ReserveBeginStreamExecuteResponse. * @memberof query - * @interface IGetSchemaRequest - * @property {query.ITarget|null} [target] GetSchemaRequest target - * @property {query.SchemaTableType|null} [table_type] GetSchemaRequest table_type - * @property {Array.|null} [table_names] GetSchemaRequest table_names + * @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 GetSchemaRequest. + * Constructs a new ReserveBeginStreamExecuteResponse. * @memberof query - * @classdesc Represents a GetSchemaRequest. - * @implements IGetSchemaRequest + * @classdesc Represents a ReserveBeginStreamExecuteResponse. + * @implements IReserveBeginStreamExecuteResponse * @constructor - * @param {query.IGetSchemaRequest=} [properties] Properties to set + * @param {query.IReserveBeginStreamExecuteResponse=} [properties] Properties to set */ - function GetSchemaRequest(properties) { - this.table_names = []; + function ReserveBeginStreamExecuteResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116070,106 +115975,145 @@ export const query = $root.query = (() => { } /** - * GetSchemaRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.GetSchemaRequest + * ReserveBeginStreamExecuteResponse error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof query.ReserveBeginStreamExecuteResponse * @instance */ - GetSchemaRequest.prototype.target = null; + ReserveBeginStreamExecuteResponse.prototype.error = null; /** - * GetSchemaRequest table_type. - * @member {query.SchemaTableType} table_type - * @memberof query.GetSchemaRequest + * ReserveBeginStreamExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.ReserveBeginStreamExecuteResponse * @instance */ - GetSchemaRequest.prototype.table_type = 0; + ReserveBeginStreamExecuteResponse.prototype.result = null; /** - * GetSchemaRequest table_names. - * @member {Array.} table_names - * @memberof query.GetSchemaRequest + * ReserveBeginStreamExecuteResponse transaction_id. + * @member {number|Long} transaction_id + * @memberof query.ReserveBeginStreamExecuteResponse * @instance */ - GetSchemaRequest.prototype.table_names = $util.emptyArray; + ReserveBeginStreamExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new GetSchemaRequest instance using the specified properties. + * 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.GetSchemaRequest + * @memberof query.ReserveBeginStreamExecuteResponse * @static - * @param {query.IGetSchemaRequest=} [properties] Properties to set - * @returns {query.GetSchemaRequest} GetSchemaRequest instance + * @param {query.IReserveBeginStreamExecuteResponse=} [properties] Properties to set + * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse instance */ - GetSchemaRequest.create = function create(properties) { - return new GetSchemaRequest(properties); + ReserveBeginStreamExecuteResponse.create = function create(properties) { + return new ReserveBeginStreamExecuteResponse(properties); }; /** - * Encodes the specified GetSchemaRequest message. Does not implicitly {@link query.GetSchemaRequest.verify|verify} messages. + * Encodes the specified ReserveBeginStreamExecuteResponse message. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.GetSchemaRequest + * @memberof query.ReserveBeginStreamExecuteResponse * @static - * @param {query.IGetSchemaRequest} message GetSchemaRequest 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 */ - GetSchemaRequest.encode = function encode(message, writer) { + ReserveBeginStreamExecuteResponse.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.table_type != null && Object.hasOwnProperty.call(message, "table_type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.table_type); - if (message.table_names != null && message.table_names.length) - for (let i = 0; i < message.table_names.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.table_names[i]); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.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 GetSchemaRequest message, length delimited. Does not implicitly {@link query.GetSchemaRequest.verify|verify} messages. + * Encodes the specified ReserveBeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.GetSchemaRequest + * @memberof query.ReserveBeginStreamExecuteResponse * @static - * @param {query.IGetSchemaRequest} message GetSchemaRequest 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 */ - GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReserveBeginStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer. + * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.GetSchemaRequest + * @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.GetSchemaRequest} GetSchemaRequest + * @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 */ - GetSchemaRequest.decode = function decode(reader, length) { + ReserveBeginStreamExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.GetSchemaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginStreamExecuteResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.target = $root.query.Target.decode(reader, reader.uint32()); + message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); break; } case 2: { - message.table_type = reader.int32(); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; } case 3: { - if (!(message.table_names && message.table_names.length)) - message.table_names = []; - message.table_names.push(reader.string()); + 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: @@ -116181,188 +116125,210 @@ export const query = $root.query = (() => { }; /** - * Decodes a GetSchemaRequest 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.GetSchemaRequest + * @memberof query.ReserveBeginStreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.GetSchemaRequest} GetSchemaRequest + * @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 */ - GetSchemaRequest.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 GetSchemaRequest message. + * Verifies a ReserveBeginStreamExecuteResponse message. * @function verify - * @memberof query.GetSchemaRequest + * @memberof query.ReserveBeginStreamExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSchemaRequest.verify = function verify(message) { + ReserveBeginStreamExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.target != null && message.hasOwnProperty("target")) { - let error = $root.query.Target.verify(message.target); + if (message.error != null && message.hasOwnProperty("error")) { + let error = $root.vtrpc.RPCError.verify(message.error); if (error) - return "target." + error; + return "error." + error; } - if (message.table_type != null && message.hasOwnProperty("table_type")) - switch (message.table_type) { - default: - return "table_type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.table_names != null && message.hasOwnProperty("table_names")) { - if (!Array.isArray(message.table_names)) - return "table_names: array expected"; - for (let i = 0; i < message.table_names.length; ++i) - if (!$util.isString(message.table_names[i])) - return "table_names: string[] expected"; + if (message.result != null && message.hasOwnProperty("result")) { + let 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")) { + let 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 GetSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReserveBeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.GetSchemaRequest + * @memberof query.ReserveBeginStreamExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.GetSchemaRequest} GetSchemaRequest + * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse */ - GetSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.GetSchemaRequest) + ReserveBeginStreamExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveBeginStreamExecuteResponse) return object; - let message = new $root.query.GetSchemaRequest(); - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.GetSchemaRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); + let 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); } - switch (object.table_type) { - default: - if (typeof object.table_type === "number") { - message.table_type = object.table_type; - break; - } - break; - case "VIEWS": - case 0: - message.table_type = 0; - break; - case "TABLES": - case 1: - message.table_type = 1; - break; - case "ALL": - case 2: - message.table_type = 2; - break; - case "UDFS": - case 3: - message.table_type = 3; - break; + 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.table_names) { - if (!Array.isArray(object.table_names)) - throw TypeError(".query.GetSchemaRequest.table_names: array expected"); - message.table_names = []; - for (let i = 0; i < object.table_names.length; ++i) - message.table_names[i] = String(object.table_names[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.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 GetSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReserveBeginStreamExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.GetSchemaRequest + * @memberof query.ReserveBeginStreamExecuteResponse * @static - * @param {query.GetSchemaRequest} message GetSchemaRequest + * @param {query.ReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaRequest.toObject = function toObject(message, options) { + ReserveBeginStreamExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.table_names = []; if (options.defaults) { - object.target = null; - object.table_type = options.enums === String ? "VIEWS" : 0; - } - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.table_type != null && message.hasOwnProperty("table_type")) - object.table_type = options.enums === String ? $root.query.SchemaTableType[message.table_type] === undefined ? message.table_type : $root.query.SchemaTableType[message.table_type] : message.table_type; - if (message.table_names && message.table_names.length) { - object.table_names = []; - for (let j = 0; j < message.table_names.length; ++j) - object.table_names[j] = message.table_names[j]; + object.error = null; + object.result = null; + if ($util.Long) { + let 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) { + let 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 GetSchemaRequest to JSON. + * Converts this ReserveBeginStreamExecuteResponse to JSON. * @function toJSON - * @memberof query.GetSchemaRequest + * @memberof query.ReserveBeginStreamExecuteResponse * @instance * @returns {Object.} JSON object */ - GetSchemaRequest.prototype.toJSON = function toJSON() { + ReserveBeginStreamExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSchemaRequest + * Gets the default type url for ReserveBeginStreamExecuteResponse * @function getTypeUrl - * @memberof query.GetSchemaRequest + * @memberof query.ReserveBeginStreamExecuteResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReserveBeginStreamExecuteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.GetSchemaRequest"; + return typeUrlPrefix + "/query.ReserveBeginStreamExecuteResponse"; }; - return GetSchemaRequest; + return ReserveBeginStreamExecuteResponse; })(); - query.UDFInfo = (function() { + query.ReleaseRequest = (function() { /** - * Properties of a UDFInfo. + * Properties of a ReleaseRequest. * @memberof query - * @interface IUDFInfo - * @property {string|null} [name] UDFInfo name - * @property {boolean|null} [aggregating] UDFInfo aggregating - * @property {query.Type|null} [return_type] UDFInfo return_type + * @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 UDFInfo. + * Constructs a new ReleaseRequest. * @memberof query - * @classdesc Represents a UDFInfo. - * @implements IUDFInfo + * @classdesc Represents a ReleaseRequest. + * @implements IReleaseRequest * @constructor - * @param {query.IUDFInfo=} [properties] Properties to set + * @param {query.IReleaseRequest=} [properties] Properties to set */ - function UDFInfo(properties) { + function ReleaseRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116370,103 +116336,131 @@ export const query = $root.query = (() => { } /** - * UDFInfo name. - * @member {string} name - * @memberof query.UDFInfo + * ReleaseRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.ReleaseRequest * @instance */ - UDFInfo.prototype.name = ""; + ReleaseRequest.prototype.effective_caller_id = null; /** - * UDFInfo aggregating. - * @member {boolean} aggregating - * @memberof query.UDFInfo + * ReleaseRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.ReleaseRequest * @instance */ - UDFInfo.prototype.aggregating = false; + ReleaseRequest.prototype.immediate_caller_id = null; /** - * UDFInfo return_type. - * @member {query.Type} return_type - * @memberof query.UDFInfo + * ReleaseRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.ReleaseRequest * @instance */ - UDFInfo.prototype.return_type = 0; + ReleaseRequest.prototype.target = null; /** - * Creates a new UDFInfo instance using the specified properties. + * 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.UDFInfo + * @memberof query.ReleaseRequest * @static - * @param {query.IUDFInfo=} [properties] Properties to set - * @returns {query.UDFInfo} UDFInfo instance + * @param {query.IReleaseRequest=} [properties] Properties to set + * @returns {query.ReleaseRequest} ReleaseRequest instance */ - UDFInfo.create = function create(properties) { - return new UDFInfo(properties); + ReleaseRequest.create = function create(properties) { + return new ReleaseRequest(properties); }; /** - * Encodes the specified UDFInfo message. Does not implicitly {@link query.UDFInfo.verify|verify} messages. + * Encodes the specified ReleaseRequest message. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. * @function encode - * @memberof query.UDFInfo + * @memberof query.ReleaseRequest * @static - * @param {query.IUDFInfo} message UDFInfo 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 */ - UDFInfo.encode = function encode(message, writer) { + ReleaseRequest.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.aggregating != null && Object.hasOwnProperty.call(message, "aggregating")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.aggregating); - if (message.return_type != null && Object.hasOwnProperty.call(message, "return_type")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.return_type); + 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 UDFInfo message, length delimited. Does not implicitly {@link query.UDFInfo.verify|verify} messages. + * Encodes the specified ReleaseRequest message, length delimited. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.UDFInfo + * @memberof query.ReleaseRequest * @static - * @param {query.IUDFInfo} message UDFInfo 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 */ - UDFInfo.encodeDelimited = function encodeDelimited(message, writer) { + ReleaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UDFInfo message from the specified reader or buffer. + * Decodes a ReleaseRequest message from the specified reader or buffer. * @function decode - * @memberof query.UDFInfo + * @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.UDFInfo} UDFInfo + * @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 */ - UDFInfo.decode = function decode(reader, length) { + ReleaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.UDFInfo(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReleaseRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; } case 2: { - message.aggregating = reader.bool(); + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); break; } case 3: { - message.return_type = reader.int32(); + 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: @@ -116478,341 +116472,197 @@ export const query = $root.query = (() => { }; /** - * Decodes a UDFInfo message from the specified reader or buffer, length delimited. + * Decodes a ReleaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.UDFInfo + * @memberof query.ReleaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.UDFInfo} UDFInfo + * @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 */ - UDFInfo.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 UDFInfo message. + * Verifies a ReleaseRequest message. * @function verify - * @memberof query.UDFInfo + * @memberof query.ReleaseRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UDFInfo.verify = function verify(message) { + ReleaseRequest.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.aggregating != null && message.hasOwnProperty("aggregating")) - if (typeof message.aggregating !== "boolean") - return "aggregating: boolean expected"; - if (message.return_type != null && message.hasOwnProperty("return_type")) - switch (message.return_type) { - default: - return "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: - case 2083: - case 2084: - case 2085: - break; - } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + let 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")) { + let error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + let 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 UDFInfo 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.UDFInfo + * @memberof query.ReleaseRequest * @static * @param {Object.} object Plain object - * @returns {query.UDFInfo} UDFInfo + * @returns {query.ReleaseRequest} ReleaseRequest */ - UDFInfo.fromObject = function fromObject(object) { - if (object instanceof $root.query.UDFInfo) + ReleaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReleaseRequest) return object; - let message = new $root.query.UDFInfo(); - if (object.name != null) - message.name = String(object.name); - if (object.aggregating != null) - message.aggregating = Boolean(object.aggregating); - switch (object.return_type) { - default: - if (typeof object.return_type === "number") { - message.return_type = object.return_type; - break; - } - break; - case "NULL_TYPE": - case 0: - message.return_type = 0; - break; - case "INT8": - case 257: - message.return_type = 257; - break; - case "UINT8": - case 770: - message.return_type = 770; - break; - case "INT16": - case 259: - message.return_type = 259; - break; - case "UINT16": - case 772: - message.return_type = 772; - break; - case "INT24": - case 261: - message.return_type = 261; - break; - case "UINT24": - case 774: - message.return_type = 774; - break; - case "INT32": - case 263: - message.return_type = 263; - break; - case "UINT32": - case 776: - message.return_type = 776; - break; - case "INT64": - case 265: - message.return_type = 265; - break; - case "UINT64": - case 778: - message.return_type = 778; - break; - case "FLOAT32": - case 1035: - message.return_type = 1035; - break; - case "FLOAT64": - case 1036: - message.return_type = 1036; - break; - case "TIMESTAMP": - case 2061: - message.return_type = 2061; - break; - case "DATE": - case 2062: - message.return_type = 2062; - break; - case "TIME": - case 2063: - message.return_type = 2063; - break; - case "DATETIME": - case 2064: - message.return_type = 2064; - break; - case "YEAR": - case 785: - message.return_type = 785; - break; - case "DECIMAL": - case 18: - message.return_type = 18; - break; - case "TEXT": - case 6163: - message.return_type = 6163; - break; - case "BLOB": - case 10260: - message.return_type = 10260; - break; - case "VARCHAR": - case 6165: - message.return_type = 6165; - break; - case "VARBINARY": - case 10262: - message.return_type = 10262; - break; - case "CHAR": - case 6167: - message.return_type = 6167; - break; - case "BINARY": - case 10264: - message.return_type = 10264; - break; - case "BIT": - case 2073: - message.return_type = 2073; - break; - case "ENUM": - case 2074: - message.return_type = 2074; - break; - case "SET": - case 2075: - message.return_type = 2075; - break; - case "TUPLE": - case 28: - message.return_type = 28; - break; - case "GEOMETRY": - case 2077: - message.return_type = 2077; - break; - case "JSON": - case 2078: - message.return_type = 2078; - break; - case "EXPRESSION": - case 31: - message.return_type = 31; - break; - case "HEXNUM": - case 4128: - message.return_type = 4128; - break; - case "HEXVAL": - case 4129: - message.return_type = 4129; - break; - case "BITNUM": - case 4130: - message.return_type = 4130; - break; - case "VECTOR": - case 2083: - message.return_type = 2083; - break; - case "RAW": - case 2084: - message.return_type = 2084; - break; - case "ROW_TUPLE": - case 2085: - message.return_type = 2085; - break; + let 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 UDFInfo 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.UDFInfo + * @memberof query.ReleaseRequest * @static - * @param {query.UDFInfo} message UDFInfo + * @param {query.ReleaseRequest} message ReleaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UDFInfo.toObject = function toObject(message, options) { + ReleaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.name = ""; - object.aggregating = false; - object.return_type = options.enums === String ? "NULL_TYPE" : 0; + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + if ($util.Long) { + let 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) { + let 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.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.aggregating != null && message.hasOwnProperty("aggregating")) - object.aggregating = message.aggregating; - if (message.return_type != null && message.hasOwnProperty("return_type")) - object.return_type = options.enums === String ? $root.query.Type[message.return_type] === undefined ? message.return_type : $root.query.Type[message.return_type] : message.return_type; + 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 UDFInfo to JSON. + * Converts this ReleaseRequest to JSON. * @function toJSON - * @memberof query.UDFInfo + * @memberof query.ReleaseRequest * @instance * @returns {Object.} JSON object */ - UDFInfo.prototype.toJSON = function toJSON() { + ReleaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UDFInfo + * Gets the default type url for ReleaseRequest * @function getTypeUrl - * @memberof query.UDFInfo + * @memberof query.ReleaseRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UDFInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReleaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.UDFInfo"; + return typeUrlPrefix + "/query.ReleaseRequest"; }; - return UDFInfo; + return ReleaseRequest; })(); - query.GetSchemaResponse = (function() { + query.ReleaseResponse = (function() { /** - * Properties of a GetSchemaResponse. + * Properties of a ReleaseResponse. * @memberof query - * @interface IGetSchemaResponse - * @property {Array.|null} [udfs] GetSchemaResponse udfs - * @property {Object.|null} [table_definition] GetSchemaResponse table_definition + * @interface IReleaseResponse */ /** - * Constructs a new GetSchemaResponse. + * Constructs a new ReleaseResponse. * @memberof query - * @classdesc Represents a GetSchemaResponse. - * @implements IGetSchemaResponse + * @classdesc Represents a ReleaseResponse. + * @implements IReleaseResponse * @constructor - * @param {query.IGetSchemaResponse=} [properties] Properties to set + * @param {query.IReleaseResponse=} [properties] Properties to set */ - function GetSchemaResponse(properties) { - this.udfs = []; - this.table_definition = {}; + function ReleaseResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116820,114 +116670,63 @@ export const query = $root.query = (() => { } /** - * GetSchemaResponse udfs. - * @member {Array.} udfs - * @memberof query.GetSchemaResponse - * @instance - */ - GetSchemaResponse.prototype.udfs = $util.emptyArray; - - /** - * GetSchemaResponse table_definition. - * @member {Object.} table_definition - * @memberof query.GetSchemaResponse - * @instance - */ - GetSchemaResponse.prototype.table_definition = $util.emptyObject; - - /** - * Creates a new GetSchemaResponse instance using the specified properties. + * Creates a new ReleaseResponse instance using the specified properties. * @function create - * @memberof query.GetSchemaResponse + * @memberof query.ReleaseResponse * @static - * @param {query.IGetSchemaResponse=} [properties] Properties to set - * @returns {query.GetSchemaResponse} GetSchemaResponse instance + * @param {query.IReleaseResponse=} [properties] Properties to set + * @returns {query.ReleaseResponse} ReleaseResponse instance */ - GetSchemaResponse.create = function create(properties) { - return new GetSchemaResponse(properties); + ReleaseResponse.create = function create(properties) { + return new ReleaseResponse(properties); }; /** - * Encodes the specified GetSchemaResponse message. Does not implicitly {@link query.GetSchemaResponse.verify|verify} messages. + * Encodes the specified ReleaseResponse message. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. * @function encode - * @memberof query.GetSchemaResponse + * @memberof query.ReleaseResponse * @static - * @param {query.IGetSchemaResponse} message GetSchemaResponse 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 */ - GetSchemaResponse.encode = function encode(message, writer) { + ReleaseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.udfs != null && message.udfs.length) - for (let i = 0; i < message.udfs.length; ++i) - $root.query.UDFInfo.encode(message.udfs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.table_definition != null && Object.hasOwnProperty.call(message, "table_definition")) - for (let keys = Object.keys(message.table_definition), 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.table_definition[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link query.GetSchemaResponse.verify|verify} messages. + * Encodes the specified ReleaseResponse message, length delimited. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.GetSchemaResponse + * @memberof query.ReleaseResponse * @static - * @param {query.IGetSchemaResponse} message GetSchemaResponse 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 */ - GetSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReleaseResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer. + * Decodes a ReleaseResponse message from the specified reader or buffer. * @function decode - * @memberof query.GetSchemaResponse + * @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.GetSchemaResponse} GetSchemaResponse + * @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 */ - GetSchemaResponse.decode = function decode(reader, length) { + ReleaseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.GetSchemaResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReleaseResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.udfs && message.udfs.length)) - message.udfs = []; - message.udfs.push($root.query.UDFInfo.decode(reader, reader.uint32())); - break; - } - case 2: { - if (message.table_definition === $util.emptyObject) - message.table_definition = {}; - 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.table_definition[key] = value; - break; - } default: reader.skipType(tag & 7); break; @@ -116937,196 +116736,108 @@ export const query = $root.query = (() => { }; /** - * Decodes a GetSchemaResponse 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.GetSchemaResponse + * @memberof query.ReleaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.GetSchemaResponse} GetSchemaResponse + * @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 */ - GetSchemaResponse.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 GetSchemaResponse message. + * Verifies a ReleaseResponse message. * @function verify - * @memberof query.GetSchemaResponse + * @memberof query.ReleaseResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSchemaResponse.verify = function verify(message) { + ReleaseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.udfs != null && message.hasOwnProperty("udfs")) { - if (!Array.isArray(message.udfs)) - return "udfs: array expected"; - for (let i = 0; i < message.udfs.length; ++i) { - let error = $root.query.UDFInfo.verify(message.udfs[i]); - if (error) - return "udfs." + error; - } - } - if (message.table_definition != null && message.hasOwnProperty("table_definition")) { - if (!$util.isObject(message.table_definition)) - return "table_definition: object expected"; - let key = Object.keys(message.table_definition); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.table_definition[key[i]])) - return "table_definition: string{k:string} expected"; - } return null; }; /** - * Creates a GetSchemaResponse 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.GetSchemaResponse + * @memberof query.ReleaseResponse * @static * @param {Object.} object Plain object - * @returns {query.GetSchemaResponse} GetSchemaResponse + * @returns {query.ReleaseResponse} ReleaseResponse */ - GetSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.GetSchemaResponse) + ReleaseResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReleaseResponse) return object; - let message = new $root.query.GetSchemaResponse(); - if (object.udfs) { - if (!Array.isArray(object.udfs)) - throw TypeError(".query.GetSchemaResponse.udfs: array expected"); - message.udfs = []; - for (let i = 0; i < object.udfs.length; ++i) { - if (typeof object.udfs[i] !== "object") - throw TypeError(".query.GetSchemaResponse.udfs: object expected"); - message.udfs[i] = $root.query.UDFInfo.fromObject(object.udfs[i]); - } - } - if (object.table_definition) { - if (typeof object.table_definition !== "object") - throw TypeError(".query.GetSchemaResponse.table_definition: object expected"); - message.table_definition = {}; - for (let keys = Object.keys(object.table_definition), i = 0; i < keys.length; ++i) - message.table_definition[keys[i]] = String(object.table_definition[keys[i]]); - } - return message; + return new $root.query.ReleaseResponse(); }; /** - * Creates a plain object from a GetSchemaResponse 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.GetSchemaResponse + * @memberof query.ReleaseResponse * @static - * @param {query.GetSchemaResponse} message GetSchemaResponse + * @param {query.ReleaseResponse} message ReleaseResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.udfs = []; - if (options.objects || options.defaults) - object.table_definition = {}; - if (message.udfs && message.udfs.length) { - object.udfs = []; - for (let j = 0; j < message.udfs.length; ++j) - object.udfs[j] = $root.query.UDFInfo.toObject(message.udfs[j], options); - } - let keys2; - if (message.table_definition && (keys2 = Object.keys(message.table_definition)).length) { - object.table_definition = {}; - for (let j = 0; j < keys2.length; ++j) - object.table_definition[keys2[j]] = message.table_definition[keys2[j]]; - } - return object; + ReleaseResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetSchemaResponse to JSON. + * Converts this ReleaseResponse to JSON. * @function toJSON - * @memberof query.GetSchemaResponse + * @memberof query.ReleaseResponse * @instance * @returns {Object.} JSON object */ - GetSchemaResponse.prototype.toJSON = function toJSON() { + ReleaseResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSchemaResponse + * Gets the default type url for ReleaseResponse * @function getTypeUrl - * @memberof query.GetSchemaResponse + * @memberof query.ReleaseResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReleaseResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/query.GetSchemaResponse"; + return typeUrlPrefix + "/query.ReleaseResponse"; }; - return GetSchemaResponse; + return ReleaseResponse; })(); - return query; -})(); - -export const replicationdata = $root.replicationdata = (() => { - - /** - * Namespace replicationdata. - * @exports replicationdata - * @namespace - */ - const replicationdata = {}; - - replicationdata.Status = (function() { + query.StreamHealthRequest = (function() { /** - * Properties of a Status. - * @memberof replicationdata - * @interface IStatus - * @property {string|null} [position] Status position - * @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 - * @property {boolean|null} [backup_running] Status backup_running + * Properties of a StreamHealthRequest. + * @memberof query + * @interface IStreamHealthRequest */ /** - * Constructs a new Status. - * @memberof replicationdata - * @classdesc Represents a Status. - * @implements IStatus + * Constructs a new StreamHealthRequest. + * @memberof query + * @classdesc Represents a StreamHealthRequest. + * @implements IStreamHealthRequest * @constructor - * @param {replicationdata.IStatus=} [properties] Properties to set + * @param {query.IStreamHealthRequest=} [properties] Properties to set */ - function Status(properties) { + function StreamHealthRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -117134,383 +116845,394 @@ export const replicationdata = $root.replicationdata = (() => { } /** - * Status position. - * @member {string} position - * @memberof replicationdata.Status - * @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 */ - Status.prototype.position = ""; + StreamHealthRequest.create = function create(properties) { + return new StreamHealthRequest(properties); + }; /** - * Status replication_lag_seconds. - * @member {number} replication_lag_seconds - * @memberof replicationdata.Status - * @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 */ - Status.prototype.replication_lag_seconds = 0; + StreamHealthRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * Status source_host. - * @member {string} source_host - * @memberof replicationdata.Status - * @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 */ - Status.prototype.source_host = ""; + StreamHealthRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Status source_port. - * @member {number} source_port - * @memberof replicationdata.Status - * @instance + * Decodes a StreamHealthRequest message from the specified reader or buffer. + * @function decode + * @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.StreamHealthRequest} StreamHealthRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Status.prototype.source_port = 0; + StreamHealthRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamHealthRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Status connect_retry. - * @member {number} connect_retry - * @memberof replicationdata.Status - * @instance + * Decodes a StreamHealthRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof query.StreamHealthRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 */ - Status.prototype.connect_retry = 0; + StreamHealthRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Status relay_log_position. - * @member {string} relay_log_position - * @memberof replicationdata.Status - * @instance + * Verifies a StreamHealthRequest message. + * @function verify + * @memberof query.StreamHealthRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Status.prototype.relay_log_position = ""; + StreamHealthRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; /** - * Status file_position. - * @member {string} file_position - * @memberof replicationdata.Status - * @instance + * Creates a StreamHealthRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof query.StreamHealthRequest + * @static + * @param {Object.} object Plain object + * @returns {query.StreamHealthRequest} StreamHealthRequest */ - Status.prototype.file_position = ""; + StreamHealthRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamHealthRequest) + return object; + return new $root.query.StreamHealthRequest(); + }; /** - * Status relay_log_source_binlog_equivalent_position. - * @member {string} relay_log_source_binlog_equivalent_position - * @memberof replicationdata.Status - * @instance + * Creates a plain object from a StreamHealthRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof query.StreamHealthRequest + * @static + * @param {query.StreamHealthRequest} message StreamHealthRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Status.prototype.relay_log_source_binlog_equivalent_position = ""; + StreamHealthRequest.toObject = function toObject() { + return {}; + }; /** - * Status source_server_id. - * @member {number} source_server_id - * @memberof replicationdata.Status + * Converts this StreamHealthRequest to JSON. + * @function toJSON + * @memberof query.StreamHealthRequest * @instance + * @returns {Object.} JSON object */ - Status.prototype.source_server_id = 0; + StreamHealthRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Status source_uuid. - * @member {string} source_uuid - * @memberof replicationdata.Status - * @instance + * Gets the default type url for StreamHealthRequest + * @function getTypeUrl + * @memberof query.StreamHealthRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - Status.prototype.source_uuid = ""; + StreamHealthRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/query.StreamHealthRequest"; + }; - /** - * Status io_state. - * @member {number} io_state - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.io_state = 0; + return StreamHealthRequest; + })(); + + query.RealtimeStats = (function() { /** - * Status last_io_error. - * @member {string} last_io_error - * @memberof replicationdata.Status - * @instance + * Properties of a RealtimeStats. + * @memberof query + * @interface IRealtimeStats + * @property {string|null} [health_error] RealtimeStats health_error + * @property {number|null} [replication_lag_seconds] RealtimeStats replication_lag_seconds + * @property {number|null} [binlog_players_count] RealtimeStats binlog_players_count + * @property {number|Long|null} [filtered_replication_lag_seconds] RealtimeStats filtered_replication_lag_seconds + * @property {number|null} [cpu_usage] RealtimeStats cpu_usage + * @property {number|null} [qps] RealtimeStats qps + * @property {Array.|null} [table_schema_changed] RealtimeStats table_schema_changed + * @property {Array.|null} [view_schema_changed] RealtimeStats view_schema_changed + * @property {boolean|null} [udfs_changed] RealtimeStats udfs_changed + * @property {boolean|null} [tx_unresolved] RealtimeStats tx_unresolved */ - Status.prototype.last_io_error = ""; /** - * Status sql_state. - * @member {number} sql_state - * @memberof replicationdata.Status - * @instance + * Constructs a new RealtimeStats. + * @memberof query + * @classdesc Represents a RealtimeStats. + * @implements IRealtimeStats + * @constructor + * @param {query.IRealtimeStats=} [properties] Properties to set */ - Status.prototype.sql_state = 0; + function RealtimeStats(properties) { + this.table_schema_changed = []; + this.view_schema_changed = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Status last_sql_error. - * @member {string} last_sql_error - * @memberof replicationdata.Status + * RealtimeStats health_error. + * @member {string} health_error + * @memberof query.RealtimeStats * @instance */ - Status.prototype.last_sql_error = ""; + RealtimeStats.prototype.health_error = ""; /** - * Status relay_log_file_position. - * @member {string} relay_log_file_position - * @memberof replicationdata.Status + * RealtimeStats replication_lag_seconds. + * @member {number} replication_lag_seconds + * @memberof query.RealtimeStats * @instance */ - Status.prototype.relay_log_file_position = ""; + RealtimeStats.prototype.replication_lag_seconds = 0; /** - * Status source_user. - * @member {string} source_user - * @memberof replicationdata.Status + * RealtimeStats binlog_players_count. + * @member {number} binlog_players_count + * @memberof query.RealtimeStats * @instance */ - Status.prototype.source_user = ""; + RealtimeStats.prototype.binlog_players_count = 0; /** - * Status sql_delay. - * @member {number} sql_delay - * @memberof replicationdata.Status + * RealtimeStats filtered_replication_lag_seconds. + * @member {number|Long} filtered_replication_lag_seconds + * @memberof query.RealtimeStats * @instance */ - Status.prototype.sql_delay = 0; + RealtimeStats.prototype.filtered_replication_lag_seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Status auto_position. - * @member {boolean} auto_position - * @memberof replicationdata.Status + * RealtimeStats cpu_usage. + * @member {number} cpu_usage + * @memberof query.RealtimeStats * @instance */ - Status.prototype.auto_position = false; + RealtimeStats.prototype.cpu_usage = 0; /** - * Status using_gtid. - * @member {boolean} using_gtid - * @memberof replicationdata.Status + * RealtimeStats qps. + * @member {number} qps + * @memberof query.RealtimeStats * @instance */ - Status.prototype.using_gtid = false; + RealtimeStats.prototype.qps = 0; /** - * Status has_replication_filters. - * @member {boolean} has_replication_filters - * @memberof replicationdata.Status + * RealtimeStats table_schema_changed. + * @member {Array.} table_schema_changed + * @memberof query.RealtimeStats * @instance */ - Status.prototype.has_replication_filters = false; + RealtimeStats.prototype.table_schema_changed = $util.emptyArray; /** - * Status ssl_allowed. - * @member {boolean} ssl_allowed - * @memberof replicationdata.Status + * RealtimeStats view_schema_changed. + * @member {Array.} view_schema_changed + * @memberof query.RealtimeStats * @instance */ - Status.prototype.ssl_allowed = false; + RealtimeStats.prototype.view_schema_changed = $util.emptyArray; /** - * Status replication_lag_unknown. - * @member {boolean} replication_lag_unknown - * @memberof replicationdata.Status + * RealtimeStats udfs_changed. + * @member {boolean} udfs_changed + * @memberof query.RealtimeStats * @instance */ - Status.prototype.replication_lag_unknown = false; + RealtimeStats.prototype.udfs_changed = false; /** - * Status backup_running. - * @member {boolean} backup_running - * @memberof replicationdata.Status + * RealtimeStats tx_unresolved. + * @member {boolean} tx_unresolved + * @memberof query.RealtimeStats * @instance */ - Status.prototype.backup_running = false; + RealtimeStats.prototype.tx_unresolved = false; /** - * Creates a new Status instance using the specified properties. + * Creates a new RealtimeStats instance using the specified properties. * @function create - * @memberof replicationdata.Status + * @memberof query.RealtimeStats * @static - * @param {replicationdata.IStatus=} [properties] Properties to set - * @returns {replicationdata.Status} Status instance + * @param {query.IRealtimeStats=} [properties] Properties to set + * @returns {query.RealtimeStats} RealtimeStats instance */ - Status.create = function create(properties) { - return new Status(properties); + RealtimeStats.create = function create(properties) { + return new RealtimeStats(properties); }; /** - * Encodes the specified Status message. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * Encodes the specified RealtimeStats message. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. * @function encode - * @memberof replicationdata.Status + * @memberof query.RealtimeStats * @static - * @param {replicationdata.IStatus} message Status 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 */ - Status.encode = function encode(message, writer) { + RealtimeStats.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.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 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.backup_running != null && Object.hasOwnProperty.call(message, "backup_running")) - writer.uint32(/* id 25, wireType 0 =*/200).bool(message.backup_running); + 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 (let i = 0; i < message.table_schema_changed.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.table_schema_changed[i]); + if (message.view_schema_changed != null && message.view_schema_changed.length) + for (let i = 0; i < message.view_schema_changed.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.view_schema_changed[i]); + if (message.udfs_changed != null && Object.hasOwnProperty.call(message, "udfs_changed")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.udfs_changed); + if (message.tx_unresolved != null && Object.hasOwnProperty.call(message, "tx_unresolved")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.tx_unresolved); return writer; }; /** - * Encodes the specified Status message, length delimited. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * Encodes the specified RealtimeStats message, length delimited. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.Status + * @memberof query.RealtimeStats * @static - * @param {replicationdata.IStatus} message Status 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 */ - Status.encodeDelimited = function encodeDelimited(message, writer) { + RealtimeStats.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Status message from the specified reader or buffer. + * Decodes a RealtimeStats message from the specified reader or buffer. * @function decode - * @memberof replicationdata.Status + * @memberof query.RealtimeStats * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.Status} Status + * @returns {query.RealtimeStats} RealtimeStats * @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) { + RealtimeStats.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.Status(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RealtimeStats(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.position = reader.string(); + message.health_error = reader.string(); break; } - case 4: { + 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.source_host = reader.string(); + message.cpu_usage = reader.double(); break; } case 6: { - message.source_port = reader.int32(); + message.qps = reader.double(); break; } case 7: { - message.connect_retry = reader.int32(); + if (!(message.table_schema_changed && message.table_schema_changed.length)) + message.table_schema_changed = []; + message.table_schema_changed.push(reader.string()); break; } case 8: { - message.relay_log_position = reader.string(); + if (!(message.view_schema_changed && message.view_schema_changed.length)) + message.view_schema_changed = []; + message.view_schema_changed.push(reader.string()); break; } case 9: { - message.file_position = reader.string(); + message.udfs_changed = reader.bool(); 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; - } - case 25: { - message.backup_running = reader.bool(); + message.tx_unresolved = reader.bool(); break; } default: @@ -117522,300 +117244,238 @@ export const replicationdata = $root.replicationdata = (() => { }; /** - * Decodes a Status message from the specified reader or buffer, length delimited. + * Decodes a RealtimeStats message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.Status + * @memberof query.RealtimeStats * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.Status} Status + * @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 */ - Status.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 Status message. + * Verifies a RealtimeStats message. * @function verify - * @memberof replicationdata.Status + * @memberof query.RealtimeStats * @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) { + RealtimeStats.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.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.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.backup_running != null && message.hasOwnProperty("backup_running")) - if (typeof message.backup_running !== "boolean") - return "backup_running: boolean 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 (let i = 0; i < message.table_schema_changed.length; ++i) + if (!$util.isString(message.table_schema_changed[i])) + return "table_schema_changed: string[] expected"; + } + if (message.view_schema_changed != null && message.hasOwnProperty("view_schema_changed")) { + if (!Array.isArray(message.view_schema_changed)) + return "view_schema_changed: array expected"; + for (let i = 0; i < message.view_schema_changed.length; ++i) + if (!$util.isString(message.view_schema_changed[i])) + return "view_schema_changed: string[] expected"; + } + if (message.udfs_changed != null && message.hasOwnProperty("udfs_changed")) + if (typeof message.udfs_changed !== "boolean") + return "udfs_changed: boolean expected"; + if (message.tx_unresolved != null && message.hasOwnProperty("tx_unresolved")) + if (typeof message.tx_unresolved !== "boolean") + return "tx_unresolved: boolean expected"; return null; }; /** - * Creates a Status 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 replicationdata.Status + * @memberof query.RealtimeStats * @static * @param {Object.} object Plain object - * @returns {replicationdata.Status} Status + * @returns {query.RealtimeStats} RealtimeStats */ - Status.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.Status) + RealtimeStats.fromObject = function fromObject(object) { + if (object instanceof $root.query.RealtimeStats) return object; - let message = new $root.replicationdata.Status(); - if (object.position != null) - message.position = String(object.position); + let 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.source_host != null) - message.source_host = String(object.source_host); - if (object.source_port != null) - message.source_port = object.source_port | 0; - if (object.connect_retry != null) - message.connect_retry = object.connect_retry | 0; - if (object.relay_log_position != null) - message.relay_log_position = String(object.relay_log_position); - if (object.file_position != null) - message.file_position = String(object.file_position); - if (object.relay_log_source_binlog_equivalent_position != null) - message.relay_log_source_binlog_equivalent_position = String(object.relay_log_source_binlog_equivalent_position); - if (object.source_server_id != null) - message.source_server_id = object.source_server_id >>> 0; - if (object.source_uuid != null) - message.source_uuid = String(object.source_uuid); - if (object.io_state != null) - message.io_state = object.io_state | 0; - if (object.last_io_error != null) - message.last_io_error = String(object.last_io_error); - if (object.sql_state != null) - message.sql_state = object.sql_state | 0; - if (object.last_sql_error != null) - message.last_sql_error = String(object.last_sql_error); - if (object.relay_log_file_position != null) - message.relay_log_file_position = String(object.relay_log_file_position); - if (object.source_user != null) - message.source_user = String(object.source_user); - if (object.sql_delay != null) - message.sql_delay = object.sql_delay >>> 0; - if (object.auto_position != null) - message.auto_position = Boolean(object.auto_position); - if (object.using_gtid != null) - message.using_gtid = Boolean(object.using_gtid); - if (object.has_replication_filters != null) - message.has_replication_filters = Boolean(object.has_replication_filters); - if (object.ssl_allowed != null) - message.ssl_allowed = Boolean(object.ssl_allowed); - if (object.replication_lag_unknown != null) - message.replication_lag_unknown = Boolean(object.replication_lag_unknown); - if (object.backup_running != null) - message.backup_running = Boolean(object.backup_running); + 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 (let i = 0; i < object.table_schema_changed.length; ++i) + message.table_schema_changed[i] = String(object.table_schema_changed[i]); + } + if (object.view_schema_changed) { + if (!Array.isArray(object.view_schema_changed)) + throw TypeError(".query.RealtimeStats.view_schema_changed: array expected"); + message.view_schema_changed = []; + for (let i = 0; i < object.view_schema_changed.length; ++i) + message.view_schema_changed[i] = String(object.view_schema_changed[i]); + } + if (object.udfs_changed != null) + message.udfs_changed = Boolean(object.udfs_changed); + if (object.tx_unresolved != null) + message.tx_unresolved = Boolean(object.tx_unresolved); return message; }; /** - * Creates a plain object from a Status 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 replicationdata.Status + * @memberof query.RealtimeStats * @static - * @param {replicationdata.Status} message Status + * @param {query.RealtimeStats} message RealtimeStats * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Status.toObject = function toObject(message, options) { + RealtimeStats.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.table_schema_changed = []; + object.view_schema_changed = []; + } if (options.defaults) { - object.position = ""; + object.health_error = ""; 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.backup_running = false; + object.binlog_players_count = 0; + if ($util.Long) { + let 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; + object.udfs_changed = false; + object.tx_unresolved = false; } - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; + 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.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.backup_running != null && message.hasOwnProperty("backup_running")) - object.backup_running = message.backup_running; + 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 (let j = 0; j < message.table_schema_changed.length; ++j) + object.table_schema_changed[j] = message.table_schema_changed[j]; + } + if (message.view_schema_changed && message.view_schema_changed.length) { + object.view_schema_changed = []; + for (let j = 0; j < message.view_schema_changed.length; ++j) + object.view_schema_changed[j] = message.view_schema_changed[j]; + } + if (message.udfs_changed != null && message.hasOwnProperty("udfs_changed")) + object.udfs_changed = message.udfs_changed; + if (message.tx_unresolved != null && message.hasOwnProperty("tx_unresolved")) + object.tx_unresolved = message.tx_unresolved; return object; }; /** - * Converts this Status to JSON. + * Converts this RealtimeStats to JSON. * @function toJSON - * @memberof replicationdata.Status + * @memberof query.RealtimeStats * @instance * @returns {Object.} JSON object */ - Status.prototype.toJSON = function toJSON() { + RealtimeStats.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Status + * Gets the default type url for RealtimeStats * @function getTypeUrl - * @memberof replicationdata.Status + * @memberof query.RealtimeStats * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Status.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RealtimeStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/replicationdata.Status"; + return typeUrlPrefix + "/query.RealtimeStats"; }; - return Status; + return RealtimeStats; })(); - replicationdata.Configuration = (function() { + query.AggregateStats = (function() { /** - * Properties of a Configuration. - * @memberof replicationdata - * @interface IConfiguration - * @property {number|null} [heartbeat_interval] Configuration heartbeat_interval - * @property {number|null} [replica_net_timeout] Configuration replica_net_timeout + * Properties of an AggregateStats. + * @memberof query + * @interface IAggregateStats + * @property {number|null} [healthy_tablet_count] AggregateStats healthy_tablet_count + * @property {number|null} [unhealthy_tablet_count] AggregateStats unhealthy_tablet_count + * @property {number|null} [replication_lag_seconds_min] AggregateStats replication_lag_seconds_min + * @property {number|null} [replication_lag_seconds_max] AggregateStats replication_lag_seconds_max */ /** - * Constructs a new Configuration. - * @memberof replicationdata - * @classdesc Represents a Configuration. - * @implements IConfiguration + * Constructs a new AggregateStats. + * @memberof query + * @classdesc Represents an AggregateStats. + * @implements IAggregateStats * @constructor - * @param {replicationdata.IConfiguration=} [properties] Properties to set + * @param {query.IAggregateStats=} [properties] Properties to set */ - function Configuration(properties) { + function AggregateStats(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -117823,89 +117483,117 @@ export const replicationdata = $root.replicationdata = (() => { } /** - * Configuration heartbeat_interval. - * @member {number} heartbeat_interval - * @memberof replicationdata.Configuration + * AggregateStats healthy_tablet_count. + * @member {number} healthy_tablet_count + * @memberof query.AggregateStats * @instance */ - Configuration.prototype.heartbeat_interval = 0; + AggregateStats.prototype.healthy_tablet_count = 0; /** - * Configuration replica_net_timeout. - * @member {number} replica_net_timeout - * @memberof replicationdata.Configuration + * AggregateStats unhealthy_tablet_count. + * @member {number} unhealthy_tablet_count + * @memberof query.AggregateStats * @instance */ - Configuration.prototype.replica_net_timeout = 0; + AggregateStats.prototype.unhealthy_tablet_count = 0; /** - * Creates a new Configuration instance using the specified properties. + * AggregateStats replication_lag_seconds_min. + * @member {number} replication_lag_seconds_min + * @memberof query.AggregateStats + * @instance + */ + AggregateStats.prototype.replication_lag_seconds_min = 0; + + /** + * 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 replicationdata.Configuration + * @memberof query.AggregateStats * @static - * @param {replicationdata.IConfiguration=} [properties] Properties to set - * @returns {replicationdata.Configuration} Configuration instance + * @param {query.IAggregateStats=} [properties] Properties to set + * @returns {query.AggregateStats} AggregateStats instance */ - Configuration.create = function create(properties) { - return new Configuration(properties); + AggregateStats.create = function create(properties) { + return new AggregateStats(properties); }; /** - * Encodes the specified Configuration message. Does not implicitly {@link replicationdata.Configuration.verify|verify} messages. + * Encodes the specified AggregateStats message. Does not implicitly {@link query.AggregateStats.verify|verify} messages. * @function encode - * @memberof replicationdata.Configuration + * @memberof query.AggregateStats * @static - * @param {replicationdata.IConfiguration} message Configuration 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 */ - Configuration.encode = function encode(message, writer) { + AggregateStats.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.heartbeat_interval != null && Object.hasOwnProperty.call(message, "heartbeat_interval")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.heartbeat_interval); - if (message.replica_net_timeout != null && Object.hasOwnProperty.call(message, "replica_net_timeout")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.replica_net_timeout); + 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 Configuration message, length delimited. Does not implicitly {@link replicationdata.Configuration.verify|verify} messages. + * Encodes the specified AggregateStats message, length delimited. Does not implicitly {@link query.AggregateStats.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.Configuration + * @memberof query.AggregateStats * @static - * @param {replicationdata.IConfiguration} message Configuration 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 */ - Configuration.encodeDelimited = function encodeDelimited(message, writer) { + AggregateStats.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Configuration message from the specified reader or buffer. + * Decodes an AggregateStats message from the specified reader or buffer. * @function decode - * @memberof replicationdata.Configuration + * @memberof query.AggregateStats * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.Configuration} Configuration + * @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 */ - Configuration.decode = function decode(reader, length) { + AggregateStats.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.Configuration(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.AggregateStats(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.heartbeat_interval = reader.double(); + message.healthy_tablet_count = reader.int32(); break; } case 2: { - message.replica_net_timeout = reader.int32(); + 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: @@ -117917,132 +117605,151 @@ export const replicationdata = $root.replicationdata = (() => { }; /** - * Decodes a Configuration message from the specified reader or buffer, length delimited. + * Decodes an AggregateStats message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.Configuration + * @memberof query.AggregateStats * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.Configuration} Configuration + * @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 */ - Configuration.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 Configuration message. + * Verifies an AggregateStats message. * @function verify - * @memberof replicationdata.Configuration + * @memberof query.AggregateStats * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Configuration.verify = function verify(message) { + AggregateStats.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.heartbeat_interval != null && message.hasOwnProperty("heartbeat_interval")) - if (typeof message.heartbeat_interval !== "number") - return "heartbeat_interval: number expected"; - if (message.replica_net_timeout != null && message.hasOwnProperty("replica_net_timeout")) - if (!$util.isInteger(message.replica_net_timeout)) - return "replica_net_timeout: integer expected"; + if (message.healthy_tablet_count != null && message.hasOwnProperty("healthy_tablet_count")) + if (!$util.isInteger(message.healthy_tablet_count)) + return "healthy_tablet_count: integer expected"; + if (message.unhealthy_tablet_count != null && message.hasOwnProperty("unhealthy_tablet_count")) + if (!$util.isInteger(message.unhealthy_tablet_count)) + return "unhealthy_tablet_count: integer expected"; + if (message.replication_lag_seconds_min != null && message.hasOwnProperty("replication_lag_seconds_min")) + if (!$util.isInteger(message.replication_lag_seconds_min)) + return "replication_lag_seconds_min: integer expected"; + if (message.replication_lag_seconds_max != null && message.hasOwnProperty("replication_lag_seconds_max")) + if (!$util.isInteger(message.replication_lag_seconds_max)) + return "replication_lag_seconds_max: integer expected"; return null; }; /** - * Creates a Configuration 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 replicationdata.Configuration + * @memberof query.AggregateStats * @static * @param {Object.} object Plain object - * @returns {replicationdata.Configuration} Configuration + * @returns {query.AggregateStats} AggregateStats */ - Configuration.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.Configuration) + AggregateStats.fromObject = function fromObject(object) { + if (object instanceof $root.query.AggregateStats) return object; - let message = new $root.replicationdata.Configuration(); - if (object.heartbeat_interval != null) - message.heartbeat_interval = Number(object.heartbeat_interval); - if (object.replica_net_timeout != null) - message.replica_net_timeout = object.replica_net_timeout | 0; + let 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 Configuration 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 replicationdata.Configuration + * @memberof query.AggregateStats * @static - * @param {replicationdata.Configuration} message Configuration + * @param {query.AggregateStats} message AggregateStats * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Configuration.toObject = function toObject(message, options) { + AggregateStats.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.heartbeat_interval = 0; - object.replica_net_timeout = 0; + object.healthy_tablet_count = 0; + object.unhealthy_tablet_count = 0; + object.replication_lag_seconds_min = 0; + object.replication_lag_seconds_max = 0; } - if (message.heartbeat_interval != null && message.hasOwnProperty("heartbeat_interval")) - object.heartbeat_interval = options.json && !isFinite(message.heartbeat_interval) ? String(message.heartbeat_interval) : message.heartbeat_interval; - if (message.replica_net_timeout != null && message.hasOwnProperty("replica_net_timeout")) - object.replica_net_timeout = message.replica_net_timeout; + 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 Configuration to JSON. + * Converts this AggregateStats to JSON. * @function toJSON - * @memberof replicationdata.Configuration + * @memberof query.AggregateStats * @instance * @returns {Object.} JSON object */ - Configuration.prototype.toJSON = function toJSON() { + AggregateStats.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Configuration + * Gets the default type url for AggregateStats * @function getTypeUrl - * @memberof replicationdata.Configuration + * @memberof query.AggregateStats * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Configuration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregateStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/replicationdata.Configuration"; + return typeUrlPrefix + "/query.AggregateStats"; }; - return Configuration; + return AggregateStats; })(); - replicationdata.StopReplicationStatus = (function() { + query.StreamHealthResponse = (function() { /** - * Properties of a StopReplicationStatus. - * @memberof replicationdata - * @interface IStopReplicationStatus - * @property {replicationdata.IStatus|null} [before] StopReplicationStatus before - * @property {replicationdata.IStatus|null} [after] StopReplicationStatus after + * 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} [primary_term_start_timestamp] StreamHealthResponse primary_term_start_timestamp + * @property {query.IRealtimeStats|null} [realtime_stats] StreamHealthResponse realtime_stats + * @property {topodata.ITabletAlias|null} [tablet_alias] StreamHealthResponse tablet_alias */ /** - * Constructs a new StopReplicationStatus. - * @memberof replicationdata - * @classdesc Represents a StopReplicationStatus. - * @implements IStopReplicationStatus + * Constructs a new StreamHealthResponse. + * @memberof query + * @classdesc Represents a StreamHealthResponse. + * @implements IStreamHealthResponse * @constructor - * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set + * @param {query.IStreamHealthResponse=} [properties] Properties to set */ - function StopReplicationStatus(properties) { + function StreamHealthResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -118050,89 +117757,131 @@ export const replicationdata = $root.replicationdata = (() => { } /** - * StopReplicationStatus before. - * @member {replicationdata.IStatus|null|undefined} before - * @memberof replicationdata.StopReplicationStatus + * StreamHealthResponse target. + * @member {query.ITarget|null|undefined} target + * @memberof query.StreamHealthResponse * @instance */ - StopReplicationStatus.prototype.before = null; + StreamHealthResponse.prototype.target = null; /** - * StopReplicationStatus after. - * @member {replicationdata.IStatus|null|undefined} after - * @memberof replicationdata.StopReplicationStatus + * StreamHealthResponse serving. + * @member {boolean} serving + * @memberof query.StreamHealthResponse * @instance */ - StopReplicationStatus.prototype.after = null; + StreamHealthResponse.prototype.serving = false; /** - * Creates a new StopReplicationStatus instance using the specified properties. + * StreamHealthResponse primary_term_start_timestamp. + * @member {number|Long} primary_term_start_timestamp + * @memberof query.StreamHealthResponse + * @instance + */ + StreamHealthResponse.prototype.primary_term_start_timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * StreamHealthResponse realtime_stats. + * @member {query.IRealtimeStats|null|undefined} realtime_stats + * @memberof query.StreamHealthResponse + * @instance + */ + StreamHealthResponse.prototype.realtime_stats = null; + + /** + * StreamHealthResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof query.StreamHealthResponse + * @instance + */ + StreamHealthResponse.prototype.tablet_alias = null; + + /** + * Creates a new StreamHealthResponse instance using the specified properties. * @function create - * @memberof replicationdata.StopReplicationStatus + * @memberof query.StreamHealthResponse * @static - * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus instance + * @param {query.IStreamHealthResponse=} [properties] Properties to set + * @returns {query.StreamHealthResponse} StreamHealthResponse instance */ - StopReplicationStatus.create = function create(properties) { - return new StopReplicationStatus(properties); + StreamHealthResponse.create = function create(properties) { + return new StreamHealthResponse(properties); }; /** - * Encodes the specified StopReplicationStatus message. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * Encodes the specified StreamHealthResponse message. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. * @function encode - * @memberof replicationdata.StopReplicationStatus + * @memberof query.StreamHealthResponse * @static - * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus 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 */ - StopReplicationStatus.encode = function encode(message, writer) { + StreamHealthResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.before != null && Object.hasOwnProperty.call(message, "before")) - $root.replicationdata.Status.encode(message.before, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.after != null && Object.hasOwnProperty.call(message, "after")) - $root.replicationdata.Status.encode(message.after, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.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.primary_term_start_timestamp != null && Object.hasOwnProperty.call(message, "primary_term_start_timestamp")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.primary_term_start_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 StopReplicationStatus message, length delimited. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * Encodes the specified StreamHealthResponse message, length delimited. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.StopReplicationStatus + * @memberof query.StreamHealthResponse * @static - * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus 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 */ - StopReplicationStatus.encodeDelimited = function encodeDelimited(message, writer) { + StreamHealthResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopReplicationStatus message from the specified reader or buffer. + * Decodes a StreamHealthResponse message from the specified reader or buffer. * @function decode - * @memberof replicationdata.StopReplicationStatus + * @memberof query.StreamHealthResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + * @returns {query.StreamHealthResponse} StreamHealthResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationStatus.decode = function decode(reader, length) { + StreamHealthResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.StopReplicationStatus(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamHealthResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.before = $root.replicationdata.Status.decode(reader, reader.uint32()); + message.target = $root.query.Target.decode(reader, reader.uint32()); break; } case 2: { - message.after = $root.replicationdata.Status.decode(reader, reader.uint32()); + message.serving = reader.bool(); + break; + } + case 3: { + message.primary_term_start_timestamp = reader.int64(); + break; + } + case 4: { + message.realtime_stats = $root.query.RealtimeStats.decode(reader, reader.uint32()); + break; + } + case 5: { + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -118144,157 +117893,206 @@ export const replicationdata = $root.replicationdata = (() => { }; /** - * Decodes a StopReplicationStatus message from the specified reader or buffer, length delimited. + * Decodes a StreamHealthResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.StopReplicationStatus + * @memberof query.StreamHealthResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + * @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 */ - StopReplicationStatus.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 StopReplicationStatus message. + * Verifies a StreamHealthResponse message. * @function verify - * @memberof replicationdata.StopReplicationStatus + * @memberof query.StreamHealthResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopReplicationStatus.verify = function verify(message) { + StreamHealthResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.before != null && message.hasOwnProperty("before")) { - let error = $root.replicationdata.Status.verify(message.before); + if (message.target != null && message.hasOwnProperty("target")) { + let error = $root.query.Target.verify(message.target); if (error) - return "before." + error; + return "target." + error; } - if (message.after != null && message.hasOwnProperty("after")) { - let error = $root.replicationdata.Status.verify(message.after); + if (message.serving != null && message.hasOwnProperty("serving")) + if (typeof message.serving !== "boolean") + return "serving: boolean expected"; + if (message.primary_term_start_timestamp != null && message.hasOwnProperty("primary_term_start_timestamp")) + if (!$util.isInteger(message.primary_term_start_timestamp) && !(message.primary_term_start_timestamp && $util.isInteger(message.primary_term_start_timestamp.low) && $util.isInteger(message.primary_term_start_timestamp.high))) + return "primary_term_start_timestamp: integer|Long expected"; + if (message.realtime_stats != null && message.hasOwnProperty("realtime_stats")) { + let error = $root.query.RealtimeStats.verify(message.realtime_stats); if (error) - return "after." + error; + return "realtime_stats." + error; + } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; } return null; }; /** - * Creates a StopReplicationStatus 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 replicationdata.StopReplicationStatus + * @memberof query.StreamHealthResponse * @static * @param {Object.} object Plain object - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + * @returns {query.StreamHealthResponse} StreamHealthResponse */ - StopReplicationStatus.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.StopReplicationStatus) + StreamHealthResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamHealthResponse) return object; - let 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); + let 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.after != null) { - if (typeof object.after !== "object") - throw TypeError(".replicationdata.StopReplicationStatus.after: object expected"); - message.after = $root.replicationdata.Status.fromObject(object.after); + if (object.serving != null) + message.serving = Boolean(object.serving); + if (object.primary_term_start_timestamp != null) + if ($util.Long) + (message.primary_term_start_timestamp = $util.Long.fromValue(object.primary_term_start_timestamp)).unsigned = false; + else if (typeof object.primary_term_start_timestamp === "string") + message.primary_term_start_timestamp = parseInt(object.primary_term_start_timestamp, 10); + else if (typeof object.primary_term_start_timestamp === "number") + message.primary_term_start_timestamp = object.primary_term_start_timestamp; + else if (typeof object.primary_term_start_timestamp === "object") + message.primary_term_start_timestamp = new $util.LongBits(object.primary_term_start_timestamp.low >>> 0, object.primary_term_start_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 StopReplicationStatus 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 replicationdata.StopReplicationStatus + * @memberof query.StreamHealthResponse * @static - * @param {replicationdata.StopReplicationStatus} message StopReplicationStatus + * @param {query.StreamHealthResponse} message StreamHealthResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopReplicationStatus.toObject = function toObject(message, options) { + StreamHealthResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.before = null; - object.after = null; + object.target = null; + object.serving = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.primary_term_start_timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.primary_term_start_timestamp = options.longs === String ? "0" : 0; + object.realtime_stats = null; + object.tablet_alias = 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); + 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.primary_term_start_timestamp != null && message.hasOwnProperty("primary_term_start_timestamp")) + if (typeof message.primary_term_start_timestamp === "number") + object.primary_term_start_timestamp = options.longs === String ? String(message.primary_term_start_timestamp) : message.primary_term_start_timestamp; + else + object.primary_term_start_timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.primary_term_start_timestamp) : options.longs === Number ? new $util.LongBits(message.primary_term_start_timestamp.low >>> 0, message.primary_term_start_timestamp.high >>> 0).toNumber() : message.primary_term_start_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 StopReplicationStatus to JSON. + * Converts this StreamHealthResponse to JSON. * @function toJSON - * @memberof replicationdata.StopReplicationStatus + * @memberof query.StreamHealthResponse * @instance * @returns {Object.} JSON object */ - StopReplicationStatus.prototype.toJSON = function toJSON() { + StreamHealthResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StopReplicationStatus + * Gets the default type url for StreamHealthResponse * @function getTypeUrl - * @memberof replicationdata.StopReplicationStatus + * @memberof query.StreamHealthResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StopReplicationStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamHealthResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/replicationdata.StopReplicationStatus"; + return typeUrlPrefix + "/query.StreamHealthResponse"; }; - return StopReplicationStatus; + return StreamHealthResponse; })(); /** - * StopReplicationMode enum. - * @name replicationdata.StopReplicationMode + * TransactionState enum. + * @name query.TransactionState * @enum {number} - * @property {number} IOANDSQLTHREAD=0 IOANDSQLTHREAD value - * @property {number} IOTHREADONLY=1 IOTHREADONLY value + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} PREPARE=1 PREPARE value + * @property {number} ROLLBACK=2 ROLLBACK value + * @property {number} COMMIT=3 COMMIT value */ - replicationdata.StopReplicationMode = (function() { + query.TransactionState = (function() { const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IOANDSQLTHREAD"] = 0; - values[valuesById[1] = "IOTHREADONLY"] = 1; + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "PREPARE"] = 1; + values[valuesById[2] = "ROLLBACK"] = 2; + values[valuesById[3] = "COMMIT"] = 3; return values; })(); - replicationdata.PrimaryStatus = (function() { + query.TransactionMetadata = (function() { /** - * Properties of a PrimaryStatus. - * @memberof replicationdata - * @interface IPrimaryStatus - * @property {string|null} [position] PrimaryStatus position - * @property {string|null} [file_position] PrimaryStatus file_position - * @property {string|null} [server_uuid] PrimaryStatus server_uuid + * 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 PrimaryStatus. - * @memberof replicationdata - * @classdesc Represents a PrimaryStatus. - * @implements IPrimaryStatus + * Constructs a new TransactionMetadata. + * @memberof query + * @classdesc Represents a TransactionMetadata. + * @implements ITransactionMetadata * @constructor - * @param {replicationdata.IPrimaryStatus=} [properties] Properties to set + * @param {query.ITransactionMetadata=} [properties] Properties to set */ - function PrimaryStatus(properties) { + function TransactionMetadata(properties) { + this.participants = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -118302,103 +118100,120 @@ export const replicationdata = $root.replicationdata = (() => { } /** - * PrimaryStatus position. - * @member {string} position - * @memberof replicationdata.PrimaryStatus + * TransactionMetadata dtid. + * @member {string} dtid + * @memberof query.TransactionMetadata * @instance */ - PrimaryStatus.prototype.position = ""; + TransactionMetadata.prototype.dtid = ""; /** - * PrimaryStatus file_position. - * @member {string} file_position - * @memberof replicationdata.PrimaryStatus + * TransactionMetadata state. + * @member {query.TransactionState} state + * @memberof query.TransactionMetadata * @instance */ - PrimaryStatus.prototype.file_position = ""; + TransactionMetadata.prototype.state = 0; /** - * PrimaryStatus server_uuid. - * @member {string} server_uuid - * @memberof replicationdata.PrimaryStatus + * TransactionMetadata time_created. + * @member {number|Long} time_created + * @memberof query.TransactionMetadata * @instance */ - PrimaryStatus.prototype.server_uuid = ""; + TransactionMetadata.prototype.time_created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new PrimaryStatus instance using the specified properties. + * 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 replicationdata.PrimaryStatus + * @memberof query.TransactionMetadata * @static - * @param {replicationdata.IPrimaryStatus=} [properties] Properties to set - * @returns {replicationdata.PrimaryStatus} PrimaryStatus instance + * @param {query.ITransactionMetadata=} [properties] Properties to set + * @returns {query.TransactionMetadata} TransactionMetadata instance */ - PrimaryStatus.create = function create(properties) { - return new PrimaryStatus(properties); + TransactionMetadata.create = function create(properties) { + return new TransactionMetadata(properties); }; /** - * Encodes the specified PrimaryStatus message. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. + * Encodes the specified TransactionMetadata message. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. * @function encode - * @memberof replicationdata.PrimaryStatus + * @memberof query.TransactionMetadata * @static - * @param {replicationdata.IPrimaryStatus} message PrimaryStatus 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 */ - PrimaryStatus.encode = function encode(message, writer) { + TransactionMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); - if (message.file_position != null && Object.hasOwnProperty.call(message, "file_position")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.file_position); - if (message.server_uuid != null && Object.hasOwnProperty.call(message, "server_uuid")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.server_uuid); + 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 (let 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 PrimaryStatus message, length delimited. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. + * Encodes the specified TransactionMetadata message, length delimited. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.PrimaryStatus + * @memberof query.TransactionMetadata * @static - * @param {replicationdata.IPrimaryStatus} message PrimaryStatus 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 */ - PrimaryStatus.encodeDelimited = function encodeDelimited(message, writer) { + TransactionMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrimaryStatus message from the specified reader or buffer. + * Decodes a TransactionMetadata message from the specified reader or buffer. * @function decode - * @memberof replicationdata.PrimaryStatus + * @memberof query.TransactionMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.PrimaryStatus} PrimaryStatus + * @returns {query.TransactionMetadata} TransactionMetadata * @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) { + TransactionMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.PrimaryStatus(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.TransactionMetadata(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.position = reader.string(); + message.dtid = reader.string(); break; } case 2: { - message.file_position = reader.string(); + message.state = reader.int32(); break; } case 3: { - message.server_uuid = reader.string(); + 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: @@ -118410,163 +118225,229 @@ export const replicationdata = $root.replicationdata = (() => { }; /** - * Decodes a PrimaryStatus message from the specified reader or buffer, length delimited. + * Decodes a TransactionMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.PrimaryStatus + * @memberof query.TransactionMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.PrimaryStatus} PrimaryStatus + * @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 */ - PrimaryStatus.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 PrimaryStatus message. + * Verifies a TransactionMetadata message. * @function verify - * @memberof replicationdata.PrimaryStatus + * @memberof query.TransactionMetadata * @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) { + TransactionMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; - if (message.file_position != null && message.hasOwnProperty("file_position")) - if (!$util.isString(message.file_position)) - return "file_position: string expected"; - if (message.server_uuid != null && message.hasOwnProperty("server_uuid")) - if (!$util.isString(message.server_uuid)) - return "server_uuid: string expected"; + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.time_created != null && message.hasOwnProperty("time_created")) + if (!$util.isInteger(message.time_created) && !(message.time_created && $util.isInteger(message.time_created.low) && $util.isInteger(message.time_created.high))) + return "time_created: integer|Long expected"; + if (message.participants != null && message.hasOwnProperty("participants")) { + if (!Array.isArray(message.participants)) + return "participants: array expected"; + for (let i = 0; i < message.participants.length; ++i) { + let error = $root.query.Target.verify(message.participants[i]); + if (error) + return "participants." + error; + } + } return null; }; /** - * Creates a PrimaryStatus 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 replicationdata.PrimaryStatus + * @memberof query.TransactionMetadata * @static * @param {Object.} object Plain object - * @returns {replicationdata.PrimaryStatus} PrimaryStatus + * @returns {query.TransactionMetadata} TransactionMetadata */ - PrimaryStatus.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.PrimaryStatus) + TransactionMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.query.TransactionMetadata) return object; - let 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); - if (object.server_uuid != null) - message.server_uuid = String(object.server_uuid); - return message; - }; - - /** - * Creates a plain object from a PrimaryStatus message. Also converts values to other types if specified. - * @function toObject - * @memberof replicationdata.PrimaryStatus + let message = new $root.query.TransactionMetadata(); + if (object.dtid != null) + message.dtid = String(object.dtid); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "UNKNOWN": + case 0: + message.state = 0; + break; + case "PREPARE": + case 1: + message.state = 1; + break; + case "ROLLBACK": + case 2: + message.state = 2; + break; + case "COMMIT": + 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 (let 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 TransactionMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof query.TransactionMetadata * @static - * @param {replicationdata.PrimaryStatus} message PrimaryStatus + * @param {query.TransactionMetadata} message TransactionMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrimaryStatus.toObject = function toObject(message, options) { + TransactionMetadata.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.participants = []; if (options.defaults) { - object.position = ""; - object.file_position = ""; - object.server_uuid = ""; + object.dtid = ""; + object.state = options.enums === String ? "UNKNOWN" : 0; + if ($util.Long) { + let 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] === undefined ? message.state : $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 (let j = 0; j < message.participants.length; ++j) + object.participants[j] = $root.query.Target.toObject(message.participants[j], options); } - 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; - if (message.server_uuid != null && message.hasOwnProperty("server_uuid")) - object.server_uuid = message.server_uuid; return object; }; /** - * Converts this PrimaryStatus to JSON. + * Converts this TransactionMetadata to JSON. * @function toJSON - * @memberof replicationdata.PrimaryStatus + * @memberof query.TransactionMetadata * @instance * @returns {Object.} JSON object */ - PrimaryStatus.prototype.toJSON = function toJSON() { + TransactionMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrimaryStatus + * Gets the default type url for TransactionMetadata * @function getTypeUrl - * @memberof replicationdata.PrimaryStatus + * @memberof query.TransactionMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrimaryStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TransactionMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/replicationdata.PrimaryStatus"; + return typeUrlPrefix + "/query.TransactionMetadata"; }; - return PrimaryStatus; + return TransactionMetadata; })(); - replicationdata.FullStatus = (function() { + /** + * SchemaTableType enum. + * @name query.SchemaTableType + * @enum {number} + * @property {number} VIEWS=0 VIEWS value + * @property {number} TABLES=1 TABLES value + * @property {number} ALL=2 ALL value + * @property {number} UDFS=3 UDFS value + */ + query.SchemaTableType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "VIEWS"] = 0; + values[valuesById[1] = "TABLES"] = 1; + values[valuesById[2] = "ALL"] = 2; + values[valuesById[3] = "UDFS"] = 3; + return values; + })(); + + query.GetSchemaRequest = (function() { /** - * Properties of a FullStatus. - * @memberof replicationdata - * @interface IFullStatus - * @property {number|null} [server_id] FullStatus server_id - * @property {string|null} [server_uuid] FullStatus server_uuid - * @property {replicationdata.IStatus|null} [replication_status] FullStatus replication_status - * @property {replicationdata.IPrimaryStatus|null} [primary_status] FullStatus primary_status - * @property {string|null} [gtid_purged] FullStatus gtid_purged - * @property {string|null} [version] FullStatus version - * @property {string|null} [version_comment] FullStatus version_comment - * @property {boolean|null} [read_only] FullStatus read_only - * @property {string|null} [gtid_mode] FullStatus gtid_mode - * @property {string|null} [binlog_format] FullStatus binlog_format - * @property {string|null} [binlog_row_image] FullStatus binlog_row_image - * @property {boolean|null} [log_bin_enabled] FullStatus log_bin_enabled - * @property {boolean|null} [log_replica_updates] FullStatus log_replica_updates - * @property {boolean|null} [semi_sync_primary_enabled] FullStatus semi_sync_primary_enabled - * @property {boolean|null} [semi_sync_replica_enabled] FullStatus semi_sync_replica_enabled - * @property {boolean|null} [semi_sync_primary_status] FullStatus semi_sync_primary_status - * @property {boolean|null} [semi_sync_replica_status] FullStatus semi_sync_replica_status - * @property {number|null} [semi_sync_primary_clients] FullStatus semi_sync_primary_clients - * @property {number|Long|null} [semi_sync_primary_timeout] FullStatus semi_sync_primary_timeout - * @property {number|null} [semi_sync_wait_for_replica_count] FullStatus semi_sync_wait_for_replica_count - * @property {boolean|null} [super_read_only] FullStatus super_read_only - * @property {replicationdata.IConfiguration|null} [replication_configuration] FullStatus replication_configuration - * @property {boolean|null} [disk_stalled] FullStatus disk_stalled - * @property {boolean|null} [semi_sync_blocked] FullStatus semi_sync_blocked - * @property {topodata.TabletType|null} [tablet_type] FullStatus tablet_type + * Properties of a GetSchemaRequest. + * @memberof query + * @interface IGetSchemaRequest + * @property {query.ITarget|null} [target] GetSchemaRequest target + * @property {query.SchemaTableType|null} [table_type] GetSchemaRequest table_type + * @property {Array.|null} [table_names] GetSchemaRequest table_names */ /** - * Constructs a new FullStatus. - * @memberof replicationdata - * @classdesc Represents a FullStatus. - * @implements IFullStatus + * Constructs a new GetSchemaRequest. + * @memberof query + * @classdesc Represents a GetSchemaRequest. + * @implements IGetSchemaRequest * @constructor - * @param {replicationdata.IFullStatus=} [properties] Properties to set + * @param {query.IGetSchemaRequest=} [properties] Properties to set */ - function FullStatus(properties) { + function GetSchemaRequest(properties) { + this.table_names = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -118574,411 +118455,106 @@ export const replicationdata = $root.replicationdata = (() => { } /** - * FullStatus server_id. - * @member {number} server_id - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.server_id = 0; - - /** - * FullStatus server_uuid. - * @member {string} server_uuid - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.server_uuid = ""; - - /** - * FullStatus replication_status. - * @member {replicationdata.IStatus|null|undefined} replication_status - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.replication_status = null; - - /** - * FullStatus primary_status. - * @member {replicationdata.IPrimaryStatus|null|undefined} primary_status - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.primary_status = null; - - /** - * FullStatus gtid_purged. - * @member {string} gtid_purged - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.gtid_purged = ""; - - /** - * FullStatus version. - * @member {string} version - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.version = ""; - - /** - * FullStatus version_comment. - * @member {string} version_comment - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.version_comment = ""; - - /** - * FullStatus read_only. - * @member {boolean} read_only - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.read_only = false; - - /** - * FullStatus gtid_mode. - * @member {string} gtid_mode - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.gtid_mode = ""; - - /** - * FullStatus binlog_format. - * @member {string} binlog_format - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.binlog_format = ""; - - /** - * FullStatus binlog_row_image. - * @member {string} binlog_row_image - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.binlog_row_image = ""; - - /** - * FullStatus log_bin_enabled. - * @member {boolean} log_bin_enabled - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.log_bin_enabled = false; - - /** - * FullStatus log_replica_updates. - * @member {boolean} log_replica_updates - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.log_replica_updates = false; - - /** - * FullStatus semi_sync_primary_enabled. - * @member {boolean} semi_sync_primary_enabled - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_primary_enabled = false; - - /** - * FullStatus semi_sync_replica_enabled. - * @member {boolean} semi_sync_replica_enabled - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_replica_enabled = false; - - /** - * FullStatus semi_sync_primary_status. - * @member {boolean} semi_sync_primary_status - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_primary_status = false; - - /** - * FullStatus semi_sync_replica_status. - * @member {boolean} semi_sync_replica_status - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_replica_status = false; - - /** - * FullStatus semi_sync_primary_clients. - * @member {number} semi_sync_primary_clients - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_primary_clients = 0; - - /** - * FullStatus semi_sync_primary_timeout. - * @member {number|Long} semi_sync_primary_timeout - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_primary_timeout = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * FullStatus semi_sync_wait_for_replica_count. - * @member {number} semi_sync_wait_for_replica_count - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_wait_for_replica_count = 0; - - /** - * FullStatus super_read_only. - * @member {boolean} super_read_only - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.super_read_only = false; - - /** - * FullStatus replication_configuration. - * @member {replicationdata.IConfiguration|null|undefined} replication_configuration - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.replication_configuration = null; - - /** - * FullStatus disk_stalled. - * @member {boolean} disk_stalled - * @memberof replicationdata.FullStatus + * GetSchemaRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.GetSchemaRequest * @instance */ - FullStatus.prototype.disk_stalled = false; + GetSchemaRequest.prototype.target = null; /** - * FullStatus semi_sync_blocked. - * @member {boolean} semi_sync_blocked - * @memberof replicationdata.FullStatus + * GetSchemaRequest table_type. + * @member {query.SchemaTableType} table_type + * @memberof query.GetSchemaRequest * @instance */ - FullStatus.prototype.semi_sync_blocked = false; + GetSchemaRequest.prototype.table_type = 0; /** - * FullStatus tablet_type. - * @member {topodata.TabletType} tablet_type - * @memberof replicationdata.FullStatus + * GetSchemaRequest table_names. + * @member {Array.} table_names + * @memberof query.GetSchemaRequest * @instance */ - FullStatus.prototype.tablet_type = 0; + GetSchemaRequest.prototype.table_names = $util.emptyArray; /** - * Creates a new FullStatus instance using the specified properties. + * Creates a new GetSchemaRequest instance using the specified properties. * @function create - * @memberof replicationdata.FullStatus + * @memberof query.GetSchemaRequest * @static - * @param {replicationdata.IFullStatus=} [properties] Properties to set - * @returns {replicationdata.FullStatus} FullStatus instance + * @param {query.IGetSchemaRequest=} [properties] Properties to set + * @returns {query.GetSchemaRequest} GetSchemaRequest instance */ - FullStatus.create = function create(properties) { - return new FullStatus(properties); + GetSchemaRequest.create = function create(properties) { + return new GetSchemaRequest(properties); }; /** - * Encodes the specified FullStatus message. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link query.GetSchemaRequest.verify|verify} messages. * @function encode - * @memberof replicationdata.FullStatus + * @memberof query.GetSchemaRequest * @static - * @param {replicationdata.IFullStatus} message FullStatus message or plain object to encode + * @param {query.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FullStatus.encode = function encode(message, writer) { + GetSchemaRequest.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.super_read_only != null && Object.hasOwnProperty.call(message, "super_read_only")) - writer.uint32(/* id 21, wireType 0 =*/168).bool(message.super_read_only); - if (message.replication_configuration != null && Object.hasOwnProperty.call(message, "replication_configuration")) - $root.replicationdata.Configuration.encode(message.replication_configuration, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); - if (message.disk_stalled != null && Object.hasOwnProperty.call(message, "disk_stalled")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.disk_stalled); - if (message.semi_sync_blocked != null && Object.hasOwnProperty.call(message, "semi_sync_blocked")) - writer.uint32(/* id 24, wireType 0 =*/192).bool(message.semi_sync_blocked); - if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) - writer.uint32(/* id 25, wireType 0 =*/200).int32(message.tablet_type); + 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.table_type != null && Object.hasOwnProperty.call(message, "table_type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.table_type); + if (message.table_names != null && message.table_names.length) + for (let i = 0; i < message.table_names.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.table_names[i]); return writer; }; /** - * Encodes the specified FullStatus message, length delimited. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link query.GetSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.FullStatus + * @memberof query.GetSchemaRequest * @static - * @param {replicationdata.IFullStatus} message FullStatus message or plain object to encode + * @param {query.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FullStatus.encodeDelimited = function encodeDelimited(message, writer) { + GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FullStatus message from the specified reader or buffer. + * Decodes a GetSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof replicationdata.FullStatus + * @memberof query.GetSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.FullStatus} FullStatus + * @returns {query.GetSchemaRequest} GetSchemaRequest * @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) { + GetSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.FullStatus(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.GetSchemaRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.server_id = reader.uint32(); + message.target = $root.query.Target.decode(reader, reader.uint32()); break; } case 2: { - message.server_uuid = reader.string(); + message.table_type = reader.int32(); 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; - } - case 21: { - message.super_read_only = reader.bool(); - break; - } - case 22: { - message.replication_configuration = $root.replicationdata.Configuration.decode(reader, reader.uint32()); - break; - } - case 23: { - message.disk_stalled = reader.bool(); - break; - } - case 24: { - message.semi_sync_blocked = reader.bool(); - break; - } - case 25: { - message.tablet_type = reader.int32(); + if (!(message.table_names && message.table_names.length)) + message.table_names = []; + message.table_names.push(reader.string()); break; } default: @@ -118990,421 +118566,188 @@ export const replicationdata = $root.replicationdata = (() => { }; /** - * Decodes a FullStatus message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.FullStatus + * @memberof query.GetSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.FullStatus} FullStatus + * @returns {query.GetSchemaRequest} GetSchemaRequest * @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) { + GetSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FullStatus message. + * Verifies a GetSchemaRequest message. * @function verify - * @memberof replicationdata.FullStatus + * @memberof query.GetSchemaRequest * @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) { + GetSchemaRequest.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")) { - let error = $root.replicationdata.Status.verify(message.replication_status); - if (error) - return "replication_status." + error; - } - if (message.primary_status != null && message.hasOwnProperty("primary_status")) { - let 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.super_read_only != null && message.hasOwnProperty("super_read_only")) - if (typeof message.super_read_only !== "boolean") - return "super_read_only: boolean expected"; - if (message.replication_configuration != null && message.hasOwnProperty("replication_configuration")) { - let error = $root.replicationdata.Configuration.verify(message.replication_configuration); + if (message.target != null && message.hasOwnProperty("target")) { + let error = $root.query.Target.verify(message.target); if (error) - return "replication_configuration." + error; + return "target." + error; } - if (message.disk_stalled != null && message.hasOwnProperty("disk_stalled")) - if (typeof message.disk_stalled !== "boolean") - return "disk_stalled: boolean expected"; - if (message.semi_sync_blocked != null && message.hasOwnProperty("semi_sync_blocked")) - if (typeof message.semi_sync_blocked !== "boolean") - return "semi_sync_blocked: boolean expected"; - if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) - switch (message.tablet_type) { + if (message.table_type != null && message.hasOwnProperty("table_type")) + switch (message.table_type) { default: - return "tablet_type: enum value expected"; + return "table_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.table_names != null && message.hasOwnProperty("table_names")) { + if (!Array.isArray(message.table_names)) + return "table_names: array expected"; + for (let i = 0; i < message.table_names.length; ++i) + if (!$util.isString(message.table_names[i])) + return "table_names: string[] expected"; + } return null; }; /** - * Creates a FullStatus message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof replicationdata.FullStatus + * @memberof query.GetSchemaRequest * @static * @param {Object.} object Plain object - * @returns {replicationdata.FullStatus} FullStatus + * @returns {query.GetSchemaRequest} GetSchemaRequest */ - FullStatus.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.FullStatus) + GetSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.GetSchemaRequest) return object; - let 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; - if (object.super_read_only != null) - message.super_read_only = Boolean(object.super_read_only); - if (object.replication_configuration != null) { - if (typeof object.replication_configuration !== "object") - throw TypeError(".replicationdata.FullStatus.replication_configuration: object expected"); - message.replication_configuration = $root.replicationdata.Configuration.fromObject(object.replication_configuration); + let message = new $root.query.GetSchemaRequest(); + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.GetSchemaRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); } - if (object.disk_stalled != null) - message.disk_stalled = Boolean(object.disk_stalled); - if (object.semi_sync_blocked != null) - message.semi_sync_blocked = Boolean(object.semi_sync_blocked); - switch (object.tablet_type) { + switch (object.table_type) { default: - if (typeof object.tablet_type === "number") { - message.tablet_type = object.tablet_type; + if (typeof object.table_type === "number") { + message.table_type = object.table_type; break; } break; - case "UNKNOWN": + case "VIEWS": case 0: - message.tablet_type = 0; - break; - case "PRIMARY": - case 1: - message.tablet_type = 1; + message.table_type = 0; break; - case "MASTER": + case "TABLES": case 1: - message.tablet_type = 1; + message.table_type = 1; break; - case "REPLICA": + case "ALL": case 2: - message.tablet_type = 2; - break; - case "RDONLY": - case 3: - message.tablet_type = 3; + message.table_type = 2; break; - case "BATCH": + case "UDFS": 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; + message.table_type = 3; break; } + if (object.table_names) { + if (!Array.isArray(object.table_names)) + throw TypeError(".query.GetSchemaRequest.table_names: array expected"); + message.table_names = []; + for (let i = 0; i < object.table_names.length; ++i) + message.table_names[i] = String(object.table_names[i]); + } return message; }; /** - * Creates a plain object from a FullStatus message. Also converts values to other types if specified. + * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof replicationdata.FullStatus + * @memberof query.GetSchemaRequest * @static - * @param {replicationdata.FullStatus} message FullStatus + * @param {query.GetSchemaRequest} message GetSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FullStatus.toObject = function toObject(message, options) { + GetSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.table_names = []; 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) { - let 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.super_read_only = false; - object.replication_configuration = null; - object.disk_stalled = false; - object.semi_sync_blocked = false; - object.tablet_type = options.enums === String ? "UNKNOWN" : 0; + object.target = null; + object.table_type = options.enums === String ? "VIEWS" : 0; + } + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.table_type != null && message.hasOwnProperty("table_type")) + object.table_type = options.enums === String ? $root.query.SchemaTableType[message.table_type] === undefined ? message.table_type : $root.query.SchemaTableType[message.table_type] : message.table_type; + if (message.table_names && message.table_names.length) { + object.table_names = []; + for (let j = 0; j < message.table_names.length; ++j) + object.table_names[j] = message.table_names[j]; } - 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.super_read_only != null && message.hasOwnProperty("super_read_only")) - object.super_read_only = message.super_read_only; - if (message.replication_configuration != null && message.hasOwnProperty("replication_configuration")) - object.replication_configuration = $root.replicationdata.Configuration.toObject(message.replication_configuration, options); - if (message.disk_stalled != null && message.hasOwnProperty("disk_stalled")) - object.disk_stalled = message.disk_stalled; - if (message.semi_sync_blocked != null && message.hasOwnProperty("semi_sync_blocked")) - object.semi_sync_blocked = message.semi_sync_blocked; - if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) - object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] === undefined ? message.tablet_type : $root.topodata.TabletType[message.tablet_type] : message.tablet_type; return object; }; /** - * Converts this FullStatus to JSON. + * Converts this GetSchemaRequest to JSON. * @function toJSON - * @memberof replicationdata.FullStatus + * @memberof query.GetSchemaRequest * @instance * @returns {Object.} JSON object */ - FullStatus.prototype.toJSON = function toJSON() { + GetSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FullStatus + * Gets the default type url for GetSchemaRequest * @function getTypeUrl - * @memberof replicationdata.FullStatus + * @memberof query.GetSchemaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FullStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/replicationdata.FullStatus"; + return typeUrlPrefix + "/query.GetSchemaRequest"; }; - return FullStatus; + return GetSchemaRequest; })(); - return replicationdata; -})(); - -export const vschema = $root.vschema = (() => { - - /** - * Namespace vschema. - * @exports vschema - * @namespace - */ - const vschema = {}; - - vschema.RoutingRules = (function() { + query.UDFInfo = (function() { /** - * Properties of a RoutingRules. - * @memberof vschema - * @interface IRoutingRules - * @property {Array.|null} [rules] RoutingRules rules + * Properties of a UDFInfo. + * @memberof query + * @interface IUDFInfo + * @property {string|null} [name] UDFInfo name + * @property {boolean|null} [aggregating] UDFInfo aggregating + * @property {query.Type|null} [return_type] UDFInfo return_type */ /** - * Constructs a new RoutingRules. - * @memberof vschema - * @classdesc Represents a RoutingRules. - * @implements IRoutingRules + * Constructs a new UDFInfo. + * @memberof query + * @classdesc Represents a UDFInfo. + * @implements IUDFInfo * @constructor - * @param {vschema.IRoutingRules=} [properties] Properties to set + * @param {query.IUDFInfo=} [properties] Properties to set */ - function RoutingRules(properties) { - this.rules = []; + function UDFInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -119412,78 +118755,103 @@ export const vschema = $root.vschema = (() => { } /** - * RoutingRules rules. - * @member {Array.} rules - * @memberof vschema.RoutingRules + * UDFInfo name. + * @member {string} name + * @memberof query.UDFInfo * @instance */ - RoutingRules.prototype.rules = $util.emptyArray; + UDFInfo.prototype.name = ""; /** - * Creates a new RoutingRules instance using the specified properties. + * UDFInfo aggregating. + * @member {boolean} aggregating + * @memberof query.UDFInfo + * @instance + */ + UDFInfo.prototype.aggregating = false; + + /** + * UDFInfo return_type. + * @member {query.Type} return_type + * @memberof query.UDFInfo + * @instance + */ + UDFInfo.prototype.return_type = 0; + + /** + * Creates a new UDFInfo instance using the specified properties. * @function create - * @memberof vschema.RoutingRules + * @memberof query.UDFInfo * @static - * @param {vschema.IRoutingRules=} [properties] Properties to set - * @returns {vschema.RoutingRules} RoutingRules instance + * @param {query.IUDFInfo=} [properties] Properties to set + * @returns {query.UDFInfo} UDFInfo instance */ - RoutingRules.create = function create(properties) { - return new RoutingRules(properties); + UDFInfo.create = function create(properties) { + return new UDFInfo(properties); }; /** - * Encodes the specified RoutingRules message. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. + * Encodes the specified UDFInfo message. Does not implicitly {@link query.UDFInfo.verify|verify} messages. * @function encode - * @memberof vschema.RoutingRules + * @memberof query.UDFInfo * @static - * @param {vschema.IRoutingRules} message RoutingRules message or plain object to encode + * @param {query.IUDFInfo} message UDFInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoutingRules.encode = function encode(message, writer) { + UDFInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (let i = 0; i < message.rules.length; ++i) - $root.vschema.RoutingRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.aggregating != null && Object.hasOwnProperty.call(message, "aggregating")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.aggregating); + if (message.return_type != null && Object.hasOwnProperty.call(message, "return_type")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.return_type); return writer; }; /** - * Encodes the specified RoutingRules message, length delimited. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. + * Encodes the specified UDFInfo message, length delimited. Does not implicitly {@link query.UDFInfo.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.RoutingRules + * @memberof query.UDFInfo * @static - * @param {vschema.IRoutingRules} message RoutingRules message or plain object to encode + * @param {query.IUDFInfo} message UDFInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoutingRules.encodeDelimited = function encodeDelimited(message, writer) { + UDFInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RoutingRules message from the specified reader or buffer. + * Decodes a UDFInfo message from the specified reader or buffer. * @function decode - * @memberof vschema.RoutingRules + * @memberof query.UDFInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.RoutingRules} RoutingRules + * @returns {query.UDFInfo} UDFInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoutingRules.decode = function decode(reader, length) { + UDFInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRules(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.UDFInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.vschema.RoutingRule.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + } + case 2: { + message.aggregating = reader.bool(); + break; + } + case 3: { + message.return_type = reader.int32(); break; } default: @@ -119495,141 +118863,341 @@ export const vschema = $root.vschema = (() => { }; /** - * Decodes a RoutingRules message from the specified reader or buffer, length delimited. + * Decodes a UDFInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.RoutingRules + * @memberof query.UDFInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.RoutingRules} RoutingRules + * @returns {query.UDFInfo} UDFInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoutingRules.decodeDelimited = function decodeDelimited(reader) { + UDFInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RoutingRules message. + * Verifies a UDFInfo message. * @function verify - * @memberof vschema.RoutingRules + * @memberof query.UDFInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoutingRules.verify = function verify(message) { + UDFInfo.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 (let i = 0; i < message.rules.length; ++i) { - let error = $root.vschema.RoutingRule.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.aggregating != null && message.hasOwnProperty("aggregating")) + if (typeof message.aggregating !== "boolean") + return "aggregating: boolean expected"; + if (message.return_type != null && message.hasOwnProperty("return_type")) + switch (message.return_type) { + default: + return "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: + case 2083: + case 2084: + case 2085: + break; } - } return null; }; /** - * Creates a RoutingRules message from a plain object. Also converts values to their respective internal types. + * Creates a UDFInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.RoutingRules + * @memberof query.UDFInfo * @static * @param {Object.} object Plain object - * @returns {vschema.RoutingRules} RoutingRules + * @returns {query.UDFInfo} UDFInfo */ - RoutingRules.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.RoutingRules) + UDFInfo.fromObject = function fromObject(object) { + if (object instanceof $root.query.UDFInfo) return object; - let message = new $root.vschema.RoutingRules(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".vschema.RoutingRules.rules: array expected"); - message.rules = []; - for (let 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]); + let message = new $root.query.UDFInfo(); + if (object.name != null) + message.name = String(object.name); + if (object.aggregating != null) + message.aggregating = Boolean(object.aggregating); + switch (object.return_type) { + default: + if (typeof object.return_type === "number") { + message.return_type = object.return_type; + break; } + break; + case "NULL_TYPE": + case 0: + message.return_type = 0; + break; + case "INT8": + case 257: + message.return_type = 257; + break; + case "UINT8": + case 770: + message.return_type = 770; + break; + case "INT16": + case 259: + message.return_type = 259; + break; + case "UINT16": + case 772: + message.return_type = 772; + break; + case "INT24": + case 261: + message.return_type = 261; + break; + case "UINT24": + case 774: + message.return_type = 774; + break; + case "INT32": + case 263: + message.return_type = 263; + break; + case "UINT32": + case 776: + message.return_type = 776; + break; + case "INT64": + case 265: + message.return_type = 265; + break; + case "UINT64": + case 778: + message.return_type = 778; + break; + case "FLOAT32": + case 1035: + message.return_type = 1035; + break; + case "FLOAT64": + case 1036: + message.return_type = 1036; + break; + case "TIMESTAMP": + case 2061: + message.return_type = 2061; + break; + case "DATE": + case 2062: + message.return_type = 2062; + break; + case "TIME": + case 2063: + message.return_type = 2063; + break; + case "DATETIME": + case 2064: + message.return_type = 2064; + break; + case "YEAR": + case 785: + message.return_type = 785; + break; + case "DECIMAL": + case 18: + message.return_type = 18; + break; + case "TEXT": + case 6163: + message.return_type = 6163; + break; + case "BLOB": + case 10260: + message.return_type = 10260; + break; + case "VARCHAR": + case 6165: + message.return_type = 6165; + break; + case "VARBINARY": + case 10262: + message.return_type = 10262; + break; + case "CHAR": + case 6167: + message.return_type = 6167; + break; + case "BINARY": + case 10264: + message.return_type = 10264; + break; + case "BIT": + case 2073: + message.return_type = 2073; + break; + case "ENUM": + case 2074: + message.return_type = 2074; + break; + case "SET": + case 2075: + message.return_type = 2075; + break; + case "TUPLE": + case 28: + message.return_type = 28; + break; + case "GEOMETRY": + case 2077: + message.return_type = 2077; + break; + case "JSON": + case 2078: + message.return_type = 2078; + break; + case "EXPRESSION": + case 31: + message.return_type = 31; + break; + case "HEXNUM": + case 4128: + message.return_type = 4128; + break; + case "HEXVAL": + case 4129: + message.return_type = 4129; + break; + case "BITNUM": + case 4130: + message.return_type = 4130; + break; + case "VECTOR": + case 2083: + message.return_type = 2083; + break; + case "RAW": + case 2084: + message.return_type = 2084; + break; + case "ROW_TUPLE": + case 2085: + message.return_type = 2085; + break; } return message; }; /** - * Creates a plain object from a RoutingRules message. Also converts values to other types if specified. + * Creates a plain object from a UDFInfo message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.RoutingRules + * @memberof query.UDFInfo * @static - * @param {vschema.RoutingRules} message RoutingRules + * @param {query.UDFInfo} message UDFInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoutingRules.toObject = function toObject(message, options) { + UDFInfo.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (message.rules && message.rules.length) { - object.rules = []; - for (let j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.vschema.RoutingRule.toObject(message.rules[j], options); + if (options.defaults) { + object.name = ""; + object.aggregating = false; + object.return_type = options.enums === String ? "NULL_TYPE" : 0; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.aggregating != null && message.hasOwnProperty("aggregating")) + object.aggregating = message.aggregating; + if (message.return_type != null && message.hasOwnProperty("return_type")) + object.return_type = options.enums === String ? $root.query.Type[message.return_type] === undefined ? message.return_type : $root.query.Type[message.return_type] : message.return_type; return object; }; /** - * Converts this RoutingRules to JSON. + * Converts this UDFInfo to JSON. * @function toJSON - * @memberof vschema.RoutingRules + * @memberof query.UDFInfo * @instance * @returns {Object.} JSON object */ - RoutingRules.prototype.toJSON = function toJSON() { + UDFInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RoutingRules + * Gets the default type url for UDFInfo * @function getTypeUrl - * @memberof vschema.RoutingRules + * @memberof query.UDFInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RoutingRules.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UDFInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.RoutingRules"; + return typeUrlPrefix + "/query.UDFInfo"; }; - return RoutingRules; + return UDFInfo; })(); - vschema.RoutingRule = (function() { + query.GetSchemaResponse = (function() { /** - * Properties of a RoutingRule. - * @memberof vschema - * @interface IRoutingRule - * @property {string|null} [from_table] RoutingRule from_table - * @property {Array.|null} [to_tables] RoutingRule to_tables + * Properties of a GetSchemaResponse. + * @memberof query + * @interface IGetSchemaResponse + * @property {Array.|null} [udfs] GetSchemaResponse udfs + * @property {Object.|null} [table_definition] GetSchemaResponse table_definition */ /** - * Constructs a new RoutingRule. - * @memberof vschema - * @classdesc Represents a RoutingRule. - * @implements IRoutingRule + * Constructs a new GetSchemaResponse. + * @memberof query + * @classdesc Represents a GetSchemaResponse. + * @implements IGetSchemaResponse * @constructor - * @param {vschema.IRoutingRule=} [properties] Properties to set + * @param {query.IGetSchemaResponse=} [properties] Properties to set */ - function RoutingRule(properties) { - this.to_tables = []; + function GetSchemaResponse(properties) { + this.udfs = []; + this.table_definition = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -119637,92 +119205,112 @@ export const vschema = $root.vschema = (() => { } /** - * RoutingRule from_table. - * @member {string} from_table - * @memberof vschema.RoutingRule + * GetSchemaResponse udfs. + * @member {Array.} udfs + * @memberof query.GetSchemaResponse * @instance */ - RoutingRule.prototype.from_table = ""; + GetSchemaResponse.prototype.udfs = $util.emptyArray; /** - * RoutingRule to_tables. - * @member {Array.} to_tables - * @memberof vschema.RoutingRule + * GetSchemaResponse table_definition. + * @member {Object.} table_definition + * @memberof query.GetSchemaResponse * @instance */ - RoutingRule.prototype.to_tables = $util.emptyArray; + GetSchemaResponse.prototype.table_definition = $util.emptyObject; /** - * Creates a new RoutingRule instance using the specified properties. + * Creates a new GetSchemaResponse instance using the specified properties. * @function create - * @memberof vschema.RoutingRule + * @memberof query.GetSchemaResponse * @static - * @param {vschema.IRoutingRule=} [properties] Properties to set - * @returns {vschema.RoutingRule} RoutingRule instance + * @param {query.IGetSchemaResponse=} [properties] Properties to set + * @returns {query.GetSchemaResponse} GetSchemaResponse instance */ - RoutingRule.create = function create(properties) { - return new RoutingRule(properties); + GetSchemaResponse.create = function create(properties) { + return new GetSchemaResponse(properties); }; /** - * Encodes the specified RoutingRule message. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. + * Encodes the specified GetSchemaResponse message. Does not implicitly {@link query.GetSchemaResponse.verify|verify} messages. * @function encode - * @memberof vschema.RoutingRule + * @memberof query.GetSchemaResponse * @static - * @param {vschema.IRoutingRule} message RoutingRule message or plain object to encode + * @param {query.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoutingRule.encode = function encode(message, writer) { + GetSchemaResponse.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 (let i = 0; i < message.to_tables.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_tables[i]); + if (message.udfs != null && message.udfs.length) + for (let i = 0; i < message.udfs.length; ++i) + $root.query.UDFInfo.encode(message.udfs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.table_definition != null && Object.hasOwnProperty.call(message, "table_definition")) + for (let keys = Object.keys(message.table_definition), 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.table_definition[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. + * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link query.GetSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.RoutingRule + * @memberof query.GetSchemaResponse * @static - * @param {vschema.IRoutingRule} message RoutingRule message or plain object to encode + * @param {query.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoutingRule.encodeDelimited = function encodeDelimited(message, writer) { + GetSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RoutingRule message from the specified reader or buffer. + * Decodes a GetSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vschema.RoutingRule + * @memberof query.GetSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.RoutingRule} RoutingRule + * @returns {query.GetSchemaResponse} GetSchemaResponse * @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) { + GetSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRule(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.GetSchemaResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.from_table = reader.string(); + if (!(message.udfs && message.udfs.length)) + message.udfs = []; + message.udfs.push($root.query.UDFInfo.decode(reader, reader.uint32())); break; } case 2: { - if (!(message.to_tables && message.to_tables.length)) - message.to_tables = []; - message.to_tables.push(reader.string()); + if (message.table_definition === $util.emptyObject) + message.table_definition = {}; + 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.table_definition[key] = value; break; } default: @@ -119734,150 +119322,196 @@ export const vschema = $root.vschema = (() => { }; /** - * Decodes a RoutingRule message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.RoutingRule + * @memberof query.GetSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.RoutingRule} RoutingRule + * @returns {query.GetSchemaResponse} GetSchemaResponse * @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) { + GetSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RoutingRule message. + * Verifies a GetSchemaResponse message. * @function verify - * @memberof vschema.RoutingRule + * @memberof query.GetSchemaResponse * @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) { + GetSchemaResponse.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 (let i = 0; i < message.to_tables.length; ++i) - if (!$util.isString(message.to_tables[i])) - return "to_tables: string[] expected"; + if (message.udfs != null && message.hasOwnProperty("udfs")) { + if (!Array.isArray(message.udfs)) + return "udfs: array expected"; + for (let i = 0; i < message.udfs.length; ++i) { + let error = $root.query.UDFInfo.verify(message.udfs[i]); + if (error) + return "udfs." + error; + } + } + if (message.table_definition != null && message.hasOwnProperty("table_definition")) { + if (!$util.isObject(message.table_definition)) + return "table_definition: object expected"; + let key = Object.keys(message.table_definition); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.table_definition[key[i]])) + return "table_definition: string{k:string} expected"; } return null; }; /** - * Creates a RoutingRule message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.RoutingRule + * @memberof query.GetSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vschema.RoutingRule} RoutingRule + * @returns {query.GetSchemaResponse} GetSchemaResponse */ - RoutingRule.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.RoutingRule) + GetSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.GetSchemaResponse) return object; - let 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 (let i = 0; i < object.to_tables.length; ++i) - message.to_tables[i] = String(object.to_tables[i]); + let message = new $root.query.GetSchemaResponse(); + if (object.udfs) { + if (!Array.isArray(object.udfs)) + throw TypeError(".query.GetSchemaResponse.udfs: array expected"); + message.udfs = []; + for (let i = 0; i < object.udfs.length; ++i) { + if (typeof object.udfs[i] !== "object") + throw TypeError(".query.GetSchemaResponse.udfs: object expected"); + message.udfs[i] = $root.query.UDFInfo.fromObject(object.udfs[i]); + } + } + if (object.table_definition) { + if (typeof object.table_definition !== "object") + throw TypeError(".query.GetSchemaResponse.table_definition: object expected"); + message.table_definition = {}; + for (let keys = Object.keys(object.table_definition), i = 0; i < keys.length; ++i) + message.table_definition[keys[i]] = String(object.table_definition[keys[i]]); } return message; }; /** - * Creates a plain object from a RoutingRule message. Also converts values to other types if specified. + * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.RoutingRule + * @memberof query.GetSchemaResponse * @static - * @param {vschema.RoutingRule} message RoutingRule + * @param {query.GetSchemaResponse} message GetSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoutingRule.toObject = function toObject(message, options) { + GetSchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; let 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 (let j = 0; j < message.to_tables.length; ++j) - object.to_tables[j] = message.to_tables[j]; + object.udfs = []; + if (options.objects || options.defaults) + object.table_definition = {}; + if (message.udfs && message.udfs.length) { + object.udfs = []; + for (let j = 0; j < message.udfs.length; ++j) + object.udfs[j] = $root.query.UDFInfo.toObject(message.udfs[j], options); + } + let keys2; + if (message.table_definition && (keys2 = Object.keys(message.table_definition)).length) { + object.table_definition = {}; + for (let j = 0; j < keys2.length; ++j) + object.table_definition[keys2[j]] = message.table_definition[keys2[j]]; } return object; }; /** - * Converts this RoutingRule to JSON. + * Converts this GetSchemaResponse to JSON. * @function toJSON - * @memberof vschema.RoutingRule + * @memberof query.GetSchemaResponse * @instance * @returns {Object.} JSON object */ - RoutingRule.prototype.toJSON = function toJSON() { + GetSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RoutingRule + * Gets the default type url for GetSchemaResponse * @function getTypeUrl - * @memberof vschema.RoutingRule + * @memberof query.GetSchemaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RoutingRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.RoutingRule"; + return typeUrlPrefix + "/query.GetSchemaResponse"; }; - return RoutingRule; + return GetSchemaResponse; })(); - vschema.Keyspace = (function() { + return query; +})(); + +export const replicationdata = $root.replicationdata = (() => { + + /** + * Namespace replicationdata. + * @exports replicationdata + * @namespace + */ + const replicationdata = {}; + + replicationdata.Status = (function() { /** - * Properties of a Keyspace. - * @memberof vschema - * @interface IKeyspace - * @property {boolean|null} [sharded] Keyspace sharded - * @property {Object.|null} [vindexes] Keyspace vindexes - * @property {Object.|null} [tables] Keyspace tables - * @property {boolean|null} [require_explicit_routing] Keyspace require_explicit_routing - * @property {vschema.Keyspace.ForeignKeyMode|null} [foreign_key_mode] Keyspace foreign_key_mode - * @property {vschema.IMultiTenantSpec|null} [multi_tenant_spec] Keyspace multi_tenant_spec + * Properties of a Status. + * @memberof replicationdata + * @interface IStatus + * @property {string|null} [position] Status position + * @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 + * @property {boolean|null} [backup_running] Status backup_running */ /** - * Constructs a new Keyspace. - * @memberof vschema - * @classdesc Represents a Keyspace. - * @implements IKeyspace + * Constructs a new Status. + * @memberof replicationdata + * @classdesc Represents a Status. + * @implements IStatus * @constructor - * @param {vschema.IKeyspace=} [properties] Properties to set + * @param {replicationdata.IStatus=} [properties] Properties to set */ - function Keyspace(properties) { - this.vindexes = {}; - this.tables = {}; + function Status(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -119885,449 +119519,688 @@ export const vschema = $root.vschema = (() => { } /** - * Keyspace sharded. - * @member {boolean} sharded - * @memberof vschema.Keyspace + * Status position. + * @member {string} position + * @memberof replicationdata.Status * @instance */ - Keyspace.prototype.sharded = false; + Status.prototype.position = ""; /** - * Keyspace vindexes. - * @member {Object.} vindexes - * @memberof vschema.Keyspace + * Status replication_lag_seconds. + * @member {number} replication_lag_seconds + * @memberof replicationdata.Status * @instance */ - Keyspace.prototype.vindexes = $util.emptyObject; + Status.prototype.replication_lag_seconds = 0; /** - * Keyspace tables. - * @member {Object.} tables - * @memberof vschema.Keyspace + * Status source_host. + * @member {string} source_host + * @memberof replicationdata.Status * @instance */ - Keyspace.prototype.tables = $util.emptyObject; + Status.prototype.source_host = ""; /** - * Keyspace require_explicit_routing. - * @member {boolean} require_explicit_routing - * @memberof vschema.Keyspace + * Status source_port. + * @member {number} source_port + * @memberof replicationdata.Status * @instance */ - Keyspace.prototype.require_explicit_routing = false; + Status.prototype.source_port = 0; /** - * Keyspace foreign_key_mode. - * @member {vschema.Keyspace.ForeignKeyMode} foreign_key_mode - * @memberof vschema.Keyspace + * Status connect_retry. + * @member {number} connect_retry + * @memberof replicationdata.Status * @instance */ - Keyspace.prototype.foreign_key_mode = 0; + Status.prototype.connect_retry = 0; /** - * Keyspace multi_tenant_spec. - * @member {vschema.IMultiTenantSpec|null|undefined} multi_tenant_spec - * @memberof vschema.Keyspace + * Status relay_log_position. + * @member {string} relay_log_position + * @memberof replicationdata.Status * @instance */ - Keyspace.prototype.multi_tenant_spec = null; + Status.prototype.relay_log_position = ""; /** - * Creates a new Keyspace instance using the specified properties. + * Status file_position. + * @member {string} file_position + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.file_position = ""; + + /** + * Status relay_log_source_binlog_equivalent_position. + * @member {string} relay_log_source_binlog_equivalent_position + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.relay_log_source_binlog_equivalent_position = ""; + + /** + * Status source_server_id. + * @member {number} source_server_id + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.source_server_id = 0; + + /** + * Status source_uuid. + * @member {string} source_uuid + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.source_uuid = ""; + + /** + * Status io_state. + * @member {number} io_state + * @memberof replicationdata.Status + * @instance + */ + 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 = ""; + + /** + * 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; + + /** + * Status backup_running. + * @member {boolean} backup_running + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.backup_running = false; + + /** + * Creates a new Status instance using the specified properties. * @function create - * @memberof vschema.Keyspace + * @memberof replicationdata.Status * @static - * @param {vschema.IKeyspace=} [properties] Properties to set - * @returns {vschema.Keyspace} Keyspace instance + * @param {replicationdata.IStatus=} [properties] Properties to set + * @returns {replicationdata.Status} Status instance */ - Keyspace.create = function create(properties) { - return new Keyspace(properties); + Status.create = function create(properties) { + return new Status(properties); }; /** - * Encodes the specified Keyspace message. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. + * Encodes the specified Status message. Does not implicitly {@link replicationdata.Status.verify|verify} messages. * @function encode - * @memberof vschema.Keyspace + * @memberof replicationdata.Status * @static - * @param {vschema.IKeyspace} message Keyspace 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 */ - Keyspace.encode = function encode(message, writer) { + Status.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 (let 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 (let 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.foreign_key_mode != null && Object.hasOwnProperty.call(message, "foreign_key_mode")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.foreign_key_mode); - if (message.multi_tenant_spec != null && Object.hasOwnProperty.call(message, "multi_tenant_spec")) - $root.vschema.MultiTenantSpec.encode(message.multi_tenant_spec, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); + 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.backup_running != null && Object.hasOwnProperty.call(message, "backup_running")) + writer.uint32(/* id 25, wireType 0 =*/200).bool(message.backup_running); return writer; }; /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. + * Encodes the specified Status message, length delimited. Does not implicitly {@link replicationdata.Status.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Keyspace + * @memberof replicationdata.Status * @static - * @param {vschema.IKeyspace} message Keyspace 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 */ - Keyspace.encodeDelimited = function encodeDelimited(message, writer) { + Status.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Keyspace message from the specified reader or buffer. + * Decodes a Status message from the specified reader or buffer. * @function decode - * @memberof vschema.Keyspace + * @memberof replicationdata.Status * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.Keyspace} Keyspace + * @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 */ - Keyspace.decode = function decode(reader, length) { + Status.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Keyspace(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.Status(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.sharded = reader.bool(); + message.position = reader.string(); break; } - case 2: { - if (message.vindexes === $util.emptyObject) - message.vindexes = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vschema.Vindex.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.vindexes[key] = value; + case 4: { + message.replication_lag_seconds = reader.uint32(); break; } - case 3: { - if (message.tables === $util.emptyObject) - message.tables = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vschema.Table.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.tables[key] = value; + case 5: { + message.source_host = reader.string(); break; } - case 4: { - message.require_explicit_routing = reader.bool(); + case 6: { + message.source_port = reader.int32(); break; } - case 5: { - message.foreign_key_mode = reader.int32(); + case 7: { + message.connect_retry = reader.int32(); break; } - case 6: { - message.multi_tenant_spec = $root.vschema.MultiTenantSpec.decode(reader, reader.uint32()); + 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; + } + case 25: { + message.backup_running = reader.bool(); break; } default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vschema.Keyspace - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - 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 vschema.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.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"; - let key = Object.keys(message.vindexes); - for (let i = 0; i < key.length; ++i) { - let 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"; - let key = Object.keys(message.tables); - for (let i = 0; i < key.length; ++i) { - let error = $root.vschema.Table.verify(message.tables[key[i]]); - if (error) - return "tables." + error; - } - } - if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) - if (typeof message.require_explicit_routing !== "boolean") - return "require_explicit_routing: boolean expected"; - if (message.foreign_key_mode != null && message.hasOwnProperty("foreign_key_mode")) - switch (message.foreign_key_mode) { - default: - return "foreign_key_mode: enum value expected"; - case 0: - case 1: - case 2: - case 3: + reader.skipType(tag & 7); break; } - if (message.multi_tenant_spec != null && message.hasOwnProperty("multi_tenant_spec")) { - let error = $root.vschema.MultiTenantSpec.verify(message.multi_tenant_spec); - if (error) - return "multi_tenant_spec." + error; } + return message; + }; + + /** + * Decodes a Status message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof replicationdata.Status + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {replicationdata.Status} Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Status.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Status message. + * @function verify + * @memberof replicationdata.Status + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Status.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: 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.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.backup_running != null && message.hasOwnProperty("backup_running")) + if (typeof message.backup_running !== "boolean") + return "backup_running: boolean expected"; return null; }; /** - * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * Creates a Status message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.Keyspace + * @memberof replicationdata.Status * @static * @param {Object.} object Plain object - * @returns {vschema.Keyspace} Keyspace + * @returns {replicationdata.Status} Status */ - Keyspace.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Keyspace) + Status.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.Status) return object; - let 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 (let 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 (let keys = Object.keys(object.tables), i = 0; i < keys.length; ++i) { - if (typeof object.tables[keys[i]] !== "object") - throw TypeError(".vschema.Keyspace.tables: object expected"); - message.tables[keys[i]] = $root.vschema.Table.fromObject(object.tables[keys[i]]); - } - } - if (object.require_explicit_routing != null) - message.require_explicit_routing = Boolean(object.require_explicit_routing); - switch (object.foreign_key_mode) { - default: - if (typeof object.foreign_key_mode === "number") { - message.foreign_key_mode = object.foreign_key_mode; - break; - } - break; - case "unspecified": - case 0: - message.foreign_key_mode = 0; - break; - case "disallow": - case 1: - message.foreign_key_mode = 1; - break; - case "unmanaged": - case 2: - message.foreign_key_mode = 2; - break; - case "managed": - case 3: - message.foreign_key_mode = 3; - break; - } - if (object.multi_tenant_spec != null) { - if (typeof object.multi_tenant_spec !== "object") - throw TypeError(".vschema.Keyspace.multi_tenant_spec: object expected"); - message.multi_tenant_spec = $root.vschema.MultiTenantSpec.fromObject(object.multi_tenant_spec); - } + let message = new $root.replicationdata.Status(); + if (object.position != null) + message.position = String(object.position); + if (object.replication_lag_seconds != null) + message.replication_lag_seconds = object.replication_lag_seconds >>> 0; + if (object.source_host != null) + message.source_host = String(object.source_host); + if (object.source_port != null) + message.source_port = object.source_port | 0; + if (object.connect_retry != null) + message.connect_retry = object.connect_retry | 0; + if (object.relay_log_position != null) + message.relay_log_position = String(object.relay_log_position); + if (object.file_position != null) + message.file_position = String(object.file_position); + if (object.relay_log_source_binlog_equivalent_position != null) + message.relay_log_source_binlog_equivalent_position = String(object.relay_log_source_binlog_equivalent_position); + if (object.source_server_id != null) + message.source_server_id = object.source_server_id >>> 0; + if (object.source_uuid != null) + message.source_uuid = String(object.source_uuid); + if (object.io_state != null) + message.io_state = object.io_state | 0; + if (object.last_io_error != null) + message.last_io_error = String(object.last_io_error); + if (object.sql_state != null) + message.sql_state = object.sql_state | 0; + if (object.last_sql_error != null) + message.last_sql_error = String(object.last_sql_error); + if (object.relay_log_file_position != null) + message.relay_log_file_position = String(object.relay_log_file_position); + if (object.source_user != null) + message.source_user = String(object.source_user); + if (object.sql_delay != null) + message.sql_delay = object.sql_delay >>> 0; + if (object.auto_position != null) + message.auto_position = Boolean(object.auto_position); + if (object.using_gtid != null) + message.using_gtid = Boolean(object.using_gtid); + if (object.has_replication_filters != null) + message.has_replication_filters = Boolean(object.has_replication_filters); + if (object.ssl_allowed != null) + message.ssl_allowed = Boolean(object.ssl_allowed); + if (object.replication_lag_unknown != null) + message.replication_lag_unknown = Boolean(object.replication_lag_unknown); + if (object.backup_running != null) + message.backup_running = Boolean(object.backup_running); return message; }; /** - * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * Creates a plain object from a Status message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.Keyspace + * @memberof replicationdata.Status * @static - * @param {vschema.Keyspace} message Keyspace + * @param {replicationdata.Status} message Status * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Keyspace.toObject = function toObject(message, options) { + Status.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) { - object.vindexes = {}; - object.tables = {}; - } if (options.defaults) { - object.sharded = false; - object.require_explicit_routing = false; - object.foreign_key_mode = options.enums === String ? "unspecified" : 0; - object.multi_tenant_spec = null; - } - if (message.sharded != null && message.hasOwnProperty("sharded")) - object.sharded = message.sharded; - let keys2; - if (message.vindexes && (keys2 = Object.keys(message.vindexes)).length) { - object.vindexes = {}; - for (let 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 (let j = 0; j < keys2.length; ++j) - object.tables[keys2[j]] = $root.vschema.Table.toObject(message.tables[keys2[j]], options); + object.position = ""; + 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.backup_running = false; } - if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) - object.require_explicit_routing = message.require_explicit_routing; - if (message.foreign_key_mode != null && message.hasOwnProperty("foreign_key_mode")) - object.foreign_key_mode = options.enums === String ? $root.vschema.Keyspace.ForeignKeyMode[message.foreign_key_mode] === undefined ? message.foreign_key_mode : $root.vschema.Keyspace.ForeignKeyMode[message.foreign_key_mode] : message.foreign_key_mode; - if (message.multi_tenant_spec != null && message.hasOwnProperty("multi_tenant_spec")) - object.multi_tenant_spec = $root.vschema.MultiTenantSpec.toObject(message.multi_tenant_spec, options); + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + 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.backup_running != null && message.hasOwnProperty("backup_running")) + object.backup_running = message.backup_running; return object; }; /** - * Converts this Keyspace to JSON. + * Converts this Status to JSON. * @function toJSON - * @memberof vschema.Keyspace + * @memberof replicationdata.Status * @instance * @returns {Object.} JSON object */ - Keyspace.prototype.toJSON = function toJSON() { + Status.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Keyspace + * Gets the default type url for Status * @function getTypeUrl - * @memberof vschema.Keyspace + * @memberof replicationdata.Status * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Keyspace.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Status.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.Keyspace"; + return typeUrlPrefix + "/replicationdata.Status"; }; - /** - * ForeignKeyMode enum. - * @name vschema.Keyspace.ForeignKeyMode - * @enum {number} - * @property {number} unspecified=0 unspecified value - * @property {number} disallow=1 disallow value - * @property {number} unmanaged=2 unmanaged value - * @property {number} managed=3 managed value - */ - Keyspace.ForeignKeyMode = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "unspecified"] = 0; - values[valuesById[1] = "disallow"] = 1; - values[valuesById[2] = "unmanaged"] = 2; - values[valuesById[3] = "managed"] = 3; - return values; - })(); - - return Keyspace; + return Status; })(); - vschema.MultiTenantSpec = (function() { + replicationdata.Configuration = (function() { /** - * Properties of a MultiTenantSpec. - * @memberof vschema - * @interface IMultiTenantSpec - * @property {string|null} [tenant_id_column_name] MultiTenantSpec tenant_id_column_name - * @property {query.Type|null} [tenant_id_column_type] MultiTenantSpec tenant_id_column_type + * Properties of a Configuration. + * @memberof replicationdata + * @interface IConfiguration + * @property {number|null} [heartbeat_interval] Configuration heartbeat_interval + * @property {number|null} [replica_net_timeout] Configuration replica_net_timeout */ /** - * Constructs a new MultiTenantSpec. - * @memberof vschema - * @classdesc Represents a MultiTenantSpec. - * @implements IMultiTenantSpec + * Constructs a new Configuration. + * @memberof replicationdata + * @classdesc Represents a Configuration. + * @implements IConfiguration * @constructor - * @param {vschema.IMultiTenantSpec=} [properties] Properties to set + * @param {replicationdata.IConfiguration=} [properties] Properties to set */ - function MultiTenantSpec(properties) { + function Configuration(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -120335,89 +120208,89 @@ export const vschema = $root.vschema = (() => { } /** - * MultiTenantSpec tenant_id_column_name. - * @member {string} tenant_id_column_name - * @memberof vschema.MultiTenantSpec + * Configuration heartbeat_interval. + * @member {number} heartbeat_interval + * @memberof replicationdata.Configuration * @instance */ - MultiTenantSpec.prototype.tenant_id_column_name = ""; + Configuration.prototype.heartbeat_interval = 0; /** - * MultiTenantSpec tenant_id_column_type. - * @member {query.Type} tenant_id_column_type - * @memberof vschema.MultiTenantSpec + * Configuration replica_net_timeout. + * @member {number} replica_net_timeout + * @memberof replicationdata.Configuration * @instance */ - MultiTenantSpec.prototype.tenant_id_column_type = 0; + Configuration.prototype.replica_net_timeout = 0; /** - * Creates a new MultiTenantSpec instance using the specified properties. + * Creates a new Configuration instance using the specified properties. * @function create - * @memberof vschema.MultiTenantSpec + * @memberof replicationdata.Configuration * @static - * @param {vschema.IMultiTenantSpec=} [properties] Properties to set - * @returns {vschema.MultiTenantSpec} MultiTenantSpec instance + * @param {replicationdata.IConfiguration=} [properties] Properties to set + * @returns {replicationdata.Configuration} Configuration instance */ - MultiTenantSpec.create = function create(properties) { - return new MultiTenantSpec(properties); + Configuration.create = function create(properties) { + return new Configuration(properties); }; /** - * Encodes the specified MultiTenantSpec message. Does not implicitly {@link vschema.MultiTenantSpec.verify|verify} messages. + * Encodes the specified Configuration message. Does not implicitly {@link replicationdata.Configuration.verify|verify} messages. * @function encode - * @memberof vschema.MultiTenantSpec + * @memberof replicationdata.Configuration * @static - * @param {vschema.IMultiTenantSpec} message MultiTenantSpec message or plain object to encode + * @param {replicationdata.IConfiguration} message Configuration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MultiTenantSpec.encode = function encode(message, writer) { + Configuration.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tenant_id_column_name != null && Object.hasOwnProperty.call(message, "tenant_id_column_name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tenant_id_column_name); - if (message.tenant_id_column_type != null && Object.hasOwnProperty.call(message, "tenant_id_column_type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.tenant_id_column_type); + if (message.heartbeat_interval != null && Object.hasOwnProperty.call(message, "heartbeat_interval")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.heartbeat_interval); + if (message.replica_net_timeout != null && Object.hasOwnProperty.call(message, "replica_net_timeout")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.replica_net_timeout); return writer; }; /** - * Encodes the specified MultiTenantSpec message, length delimited. Does not implicitly {@link vschema.MultiTenantSpec.verify|verify} messages. + * Encodes the specified Configuration message, length delimited. Does not implicitly {@link replicationdata.Configuration.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.MultiTenantSpec + * @memberof replicationdata.Configuration * @static - * @param {vschema.IMultiTenantSpec} message MultiTenantSpec message or plain object to encode + * @param {replicationdata.IConfiguration} message Configuration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MultiTenantSpec.encodeDelimited = function encodeDelimited(message, writer) { + Configuration.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MultiTenantSpec message from the specified reader or buffer. + * Decodes a Configuration message from the specified reader or buffer. * @function decode - * @memberof vschema.MultiTenantSpec + * @memberof replicationdata.Configuration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.MultiTenantSpec} MultiTenantSpec + * @returns {replicationdata.Configuration} Configuration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MultiTenantSpec.decode = function decode(reader, length) { + Configuration.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.MultiTenantSpec(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.Configuration(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tenant_id_column_name = reader.string(); + message.heartbeat_interval = reader.double(); break; } case 2: { - message.tenant_id_column_type = reader.int32(); + message.replica_net_timeout = reader.int32(); break; } default: @@ -120429,333 +120302,132 @@ export const vschema = $root.vschema = (() => { }; /** - * Decodes a MultiTenantSpec message from the specified reader or buffer, length delimited. + * Decodes a Configuration message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.MultiTenantSpec + * @memberof replicationdata.Configuration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.MultiTenantSpec} MultiTenantSpec + * @returns {replicationdata.Configuration} Configuration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MultiTenantSpec.decodeDelimited = function decodeDelimited(reader) { + Configuration.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MultiTenantSpec message. + * Verifies a Configuration message. * @function verify - * @memberof vschema.MultiTenantSpec + * @memberof replicationdata.Configuration * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MultiTenantSpec.verify = function verify(message) { + Configuration.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tenant_id_column_name != null && message.hasOwnProperty("tenant_id_column_name")) - if (!$util.isString(message.tenant_id_column_name)) - return "tenant_id_column_name: string expected"; - if (message.tenant_id_column_type != null && message.hasOwnProperty("tenant_id_column_type")) - switch (message.tenant_id_column_type) { - default: - return "tenant_id_column_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: - case 2083: - case 2084: - case 2085: - break; - } + if (message.heartbeat_interval != null && message.hasOwnProperty("heartbeat_interval")) + if (typeof message.heartbeat_interval !== "number") + return "heartbeat_interval: number expected"; + if (message.replica_net_timeout != null && message.hasOwnProperty("replica_net_timeout")) + if (!$util.isInteger(message.replica_net_timeout)) + return "replica_net_timeout: integer expected"; return null; }; /** - * Creates a MultiTenantSpec message from a plain object. Also converts values to their respective internal types. + * Creates a Configuration message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.MultiTenantSpec + * @memberof replicationdata.Configuration * @static * @param {Object.} object Plain object - * @returns {vschema.MultiTenantSpec} MultiTenantSpec + * @returns {replicationdata.Configuration} Configuration */ - MultiTenantSpec.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.MultiTenantSpec) + Configuration.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.Configuration) return object; - let message = new $root.vschema.MultiTenantSpec(); - if (object.tenant_id_column_name != null) - message.tenant_id_column_name = String(object.tenant_id_column_name); - switch (object.tenant_id_column_type) { - default: - if (typeof object.tenant_id_column_type === "number") { - message.tenant_id_column_type = object.tenant_id_column_type; - break; - } - break; - case "NULL_TYPE": - case 0: - message.tenant_id_column_type = 0; - break; - case "INT8": - case 257: - message.tenant_id_column_type = 257; - break; - case "UINT8": - case 770: - message.tenant_id_column_type = 770; - break; - case "INT16": - case 259: - message.tenant_id_column_type = 259; - break; - case "UINT16": - case 772: - message.tenant_id_column_type = 772; - break; - case "INT24": - case 261: - message.tenant_id_column_type = 261; - break; - case "UINT24": - case 774: - message.tenant_id_column_type = 774; - break; - case "INT32": - case 263: - message.tenant_id_column_type = 263; - break; - case "UINT32": - case 776: - message.tenant_id_column_type = 776; - break; - case "INT64": - case 265: - message.tenant_id_column_type = 265; - break; - case "UINT64": - case 778: - message.tenant_id_column_type = 778; - break; - case "FLOAT32": - case 1035: - message.tenant_id_column_type = 1035; - break; - case "FLOAT64": - case 1036: - message.tenant_id_column_type = 1036; - break; - case "TIMESTAMP": - case 2061: - message.tenant_id_column_type = 2061; - break; - case "DATE": - case 2062: - message.tenant_id_column_type = 2062; - break; - case "TIME": - case 2063: - message.tenant_id_column_type = 2063; - break; - case "DATETIME": - case 2064: - message.tenant_id_column_type = 2064; - break; - case "YEAR": - case 785: - message.tenant_id_column_type = 785; - break; - case "DECIMAL": - case 18: - message.tenant_id_column_type = 18; - break; - case "TEXT": - case 6163: - message.tenant_id_column_type = 6163; - break; - case "BLOB": - case 10260: - message.tenant_id_column_type = 10260; - break; - case "VARCHAR": - case 6165: - message.tenant_id_column_type = 6165; - break; - case "VARBINARY": - case 10262: - message.tenant_id_column_type = 10262; - break; - case "CHAR": - case 6167: - message.tenant_id_column_type = 6167; - break; - case "BINARY": - case 10264: - message.tenant_id_column_type = 10264; - break; - case "BIT": - case 2073: - message.tenant_id_column_type = 2073; - break; - case "ENUM": - case 2074: - message.tenant_id_column_type = 2074; - break; - case "SET": - case 2075: - message.tenant_id_column_type = 2075; - break; - case "TUPLE": - case 28: - message.tenant_id_column_type = 28; - break; - case "GEOMETRY": - case 2077: - message.tenant_id_column_type = 2077; - break; - case "JSON": - case 2078: - message.tenant_id_column_type = 2078; - break; - case "EXPRESSION": - case 31: - message.tenant_id_column_type = 31; - break; - case "HEXNUM": - case 4128: - message.tenant_id_column_type = 4128; - break; - case "HEXVAL": - case 4129: - message.tenant_id_column_type = 4129; - break; - case "BITNUM": - case 4130: - message.tenant_id_column_type = 4130; - break; - case "VECTOR": - case 2083: - message.tenant_id_column_type = 2083; - break; - case "RAW": - case 2084: - message.tenant_id_column_type = 2084; - break; - case "ROW_TUPLE": - case 2085: - message.tenant_id_column_type = 2085; - break; - } + let message = new $root.replicationdata.Configuration(); + if (object.heartbeat_interval != null) + message.heartbeat_interval = Number(object.heartbeat_interval); + if (object.replica_net_timeout != null) + message.replica_net_timeout = object.replica_net_timeout | 0; return message; }; /** - * Creates a plain object from a MultiTenantSpec message. Also converts values to other types if specified. + * Creates a plain object from a Configuration message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.MultiTenantSpec + * @memberof replicationdata.Configuration * @static - * @param {vschema.MultiTenantSpec} message MultiTenantSpec + * @param {replicationdata.Configuration} message Configuration * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MultiTenantSpec.toObject = function toObject(message, options) { + Configuration.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.tenant_id_column_name = ""; - object.tenant_id_column_type = options.enums === String ? "NULL_TYPE" : 0; + object.heartbeat_interval = 0; + object.replica_net_timeout = 0; } - if (message.tenant_id_column_name != null && message.hasOwnProperty("tenant_id_column_name")) - object.tenant_id_column_name = message.tenant_id_column_name; - if (message.tenant_id_column_type != null && message.hasOwnProperty("tenant_id_column_type")) - object.tenant_id_column_type = options.enums === String ? $root.query.Type[message.tenant_id_column_type] === undefined ? message.tenant_id_column_type : $root.query.Type[message.tenant_id_column_type] : message.tenant_id_column_type; + if (message.heartbeat_interval != null && message.hasOwnProperty("heartbeat_interval")) + object.heartbeat_interval = options.json && !isFinite(message.heartbeat_interval) ? String(message.heartbeat_interval) : message.heartbeat_interval; + if (message.replica_net_timeout != null && message.hasOwnProperty("replica_net_timeout")) + object.replica_net_timeout = message.replica_net_timeout; return object; }; /** - * Converts this MultiTenantSpec to JSON. + * Converts this Configuration to JSON. * @function toJSON - * @memberof vschema.MultiTenantSpec + * @memberof replicationdata.Configuration * @instance * @returns {Object.} JSON object */ - MultiTenantSpec.prototype.toJSON = function toJSON() { + Configuration.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MultiTenantSpec + * Gets the default type url for Configuration * @function getTypeUrl - * @memberof vschema.MultiTenantSpec + * @memberof replicationdata.Configuration * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MultiTenantSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Configuration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.MultiTenantSpec"; + return typeUrlPrefix + "/replicationdata.Configuration"; }; - return MultiTenantSpec; + return Configuration; })(); - vschema.Vindex = (function() { + replicationdata.StopReplicationStatus = (function() { /** - * Properties of a Vindex. - * @memberof vschema - * @interface IVindex - * @property {string|null} [type] Vindex type - * @property {Object.|null} [params] Vindex params - * @property {string|null} [owner] Vindex owner + * Properties of a StopReplicationStatus. + * @memberof replicationdata + * @interface IStopReplicationStatus + * @property {replicationdata.IStatus|null} [before] StopReplicationStatus before + * @property {replicationdata.IStatus|null} [after] StopReplicationStatus after */ /** - * Constructs a new Vindex. - * @memberof vschema - * @classdesc Represents a Vindex. - * @implements IVindex + * Constructs a new StopReplicationStatus. + * @memberof replicationdata + * @classdesc Represents a StopReplicationStatus. + * @implements IStopReplicationStatus * @constructor - * @param {vschema.IVindex=} [properties] Properties to set + * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set */ - function Vindex(properties) { - this.params = {}; + function StopReplicationStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -120763,123 +120435,89 @@ export const vschema = $root.vschema = (() => { } /** - * Vindex type. - * @member {string} type - * @memberof vschema.Vindex - * @instance - */ - Vindex.prototype.type = ""; - - /** - * Vindex params. - * @member {Object.} params - * @memberof vschema.Vindex + * StopReplicationStatus before. + * @member {replicationdata.IStatus|null|undefined} before + * @memberof replicationdata.StopReplicationStatus * @instance */ - Vindex.prototype.params = $util.emptyObject; + StopReplicationStatus.prototype.before = null; /** - * Vindex owner. - * @member {string} owner - * @memberof vschema.Vindex + * StopReplicationStatus after. + * @member {replicationdata.IStatus|null|undefined} after + * @memberof replicationdata.StopReplicationStatus * @instance */ - Vindex.prototype.owner = ""; + StopReplicationStatus.prototype.after = null; /** - * Creates a new Vindex instance using the specified properties. + * Creates a new StopReplicationStatus instance using the specified properties. * @function create - * @memberof vschema.Vindex + * @memberof replicationdata.StopReplicationStatus * @static - * @param {vschema.IVindex=} [properties] Properties to set - * @returns {vschema.Vindex} Vindex instance + * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set + * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus instance */ - Vindex.create = function create(properties) { - return new Vindex(properties); + StopReplicationStatus.create = function create(properties) { + return new StopReplicationStatus(properties); }; /** - * Encodes the specified Vindex message. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * Encodes the specified StopReplicationStatus message. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. * @function encode - * @memberof vschema.Vindex + * @memberof replicationdata.StopReplicationStatus * @static - * @param {vschema.IVindex} message Vindex message or plain object to encode + * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vindex.encode = function encode(message, writer) { + StopReplicationStatus.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 (let 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.before != null && Object.hasOwnProperty.call(message, "before")) + $root.replicationdata.Status.encode(message.before, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.after != null && Object.hasOwnProperty.call(message, "after")) + $root.replicationdata.Status.encode(message.after, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Vindex message, length delimited. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * Encodes the specified StopReplicationStatus message, length delimited. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Vindex + * @memberof replicationdata.StopReplicationStatus * @static - * @param {vschema.IVindex} message Vindex message or plain object to encode + * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vindex.encodeDelimited = function encodeDelimited(message, writer) { + StopReplicationStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Vindex message from the specified reader or buffer. + * Decodes a StopReplicationStatus message from the specified reader or buffer. * @function decode - * @memberof vschema.Vindex + * @memberof replicationdata.StopReplicationStatus * @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 {replicationdata.StopReplicationStatus} StopReplicationStatus * @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) { + StopReplicationStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Vindex(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.StopReplicationStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.string(); + message.before = $root.replicationdata.Status.decode(reader, reader.uint32()); break; } case 2: { - if (message.params === $util.emptyObject) - message.params = {}; - 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.params[key] = value; - break; - } - case 3: { - message.owner = reader.string(); + message.after = $root.replicationdata.Status.decode(reader, reader.uint32()); break; } default: @@ -120891,162 +120529,157 @@ export const vschema = $root.vschema = (() => { }; /** - * Decodes a Vindex message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.Vindex + * @memberof replicationdata.StopReplicationStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Vindex} Vindex + * @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 */ - Vindex.decodeDelimited = function decodeDelimited(reader) { + StopReplicationStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Vindex message. + * Verifies a StopReplicationStatus message. * @function verify - * @memberof vschema.Vindex + * @memberof replicationdata.StopReplicationStatus * @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) { + StopReplicationStatus.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"; - let key = Object.keys(message.params); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.params[key[i]])) - return "params: string{k:string} expected"; + if (message.before != null && message.hasOwnProperty("before")) { + let error = $root.replicationdata.Status.verify(message.before); + if (error) + return "before." + error; + } + if (message.after != null && message.hasOwnProperty("after")) { + let error = $root.replicationdata.Status.verify(message.after); + if (error) + return "after." + error; } - 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 StopReplicationStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.Vindex + * @memberof replicationdata.StopReplicationStatus * @static * @param {Object.} object Plain object - * @returns {vschema.Vindex} Vindex + * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus */ - Vindex.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Vindex) + StopReplicationStatus.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.StopReplicationStatus) return object; - let 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 (let keys = Object.keys(object.params), i = 0; i < keys.length; ++i) - message.params[keys[i]] = String(object.params[keys[i]]); + let 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); } - 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 StopReplicationStatus message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.Vindex + * @memberof replicationdata.StopReplicationStatus * @static - * @param {vschema.Vindex} message Vindex + * @param {replicationdata.StopReplicationStatus} message StopReplicationStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Vindex.toObject = function toObject(message, options) { + StopReplicationStatus.toObject = function toObject(message, options) { if (!options) options = {}; let 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; - let keys2; - if (message.params && (keys2 = Object.keys(message.params)).length) { - object.params = {}; - for (let j = 0; j < keys2.length; ++j) - object.params[keys2[j]] = message.params[keys2[j]]; + object.before = null; + object.after = null; } - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - return object; - }; + if (message.before != null && message.hasOwnProperty("before")) + object.before = $root.replicationdata.Status.toObject(message.before, options); + if (message.after != null && message.hasOwnProperty("after")) + object.after = $root.replicationdata.Status.toObject(message.after, options); + return object; + }; /** - * Converts this Vindex to JSON. + * Converts this StopReplicationStatus to JSON. * @function toJSON - * @memberof vschema.Vindex + * @memberof replicationdata.StopReplicationStatus * @instance * @returns {Object.} JSON object */ - Vindex.prototype.toJSON = function toJSON() { + StopReplicationStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Vindex + * Gets the default type url for StopReplicationStatus * @function getTypeUrl - * @memberof vschema.Vindex + * @memberof replicationdata.StopReplicationStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Vindex.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StopReplicationStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.Vindex"; + return typeUrlPrefix + "/replicationdata.StopReplicationStatus"; }; - return Vindex; + return StopReplicationStatus; })(); - vschema.Table = (function() { + /** + * StopReplicationMode enum. + * @name replicationdata.StopReplicationMode + * @enum {number} + * @property {number} IOANDSQLTHREAD=0 IOANDSQLTHREAD value + * @property {number} IOTHREADONLY=1 IOTHREADONLY value + */ + replicationdata.StopReplicationMode = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IOANDSQLTHREAD"] = 0; + values[valuesById[1] = "IOTHREADONLY"] = 1; + return values; + })(); + + replicationdata.PrimaryStatus = (function() { /** - * Properties of a Table. - * @memberof vschema - * @interface ITable - * @property {string|null} [type] Table type - * @property {Array.|null} [column_vindexes] Table column_vindexes - * @property {vschema.IAutoIncrement|null} [auto_increment] Table auto_increment - * @property {Array.|null} [columns] Table columns - * @property {string|null} [pinned] Table pinned - * @property {boolean|null} [column_list_authoritative] Table column_list_authoritative - * @property {string|null} [source] Table source + * Properties of a PrimaryStatus. + * @memberof replicationdata + * @interface IPrimaryStatus + * @property {string|null} [position] PrimaryStatus position + * @property {string|null} [file_position] PrimaryStatus file_position + * @property {string|null} [server_uuid] PrimaryStatus server_uuid */ /** - * Constructs a new Table. - * @memberof vschema - * @classdesc Represents a Table. - * @implements ITable + * Constructs a new PrimaryStatus. + * @memberof replicationdata + * @classdesc Represents a PrimaryStatus. + * @implements IPrimaryStatus * @constructor - * @param {vschema.ITable=} [properties] Properties to set + * @param {replicationdata.IPrimaryStatus=} [properties] Properties to set */ - function Table(properties) { - this.column_vindexes = []; - this.columns = []; + function PrimaryStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -121054,165 +120687,103 @@ export const vschema = $root.vschema = (() => { } /** - * 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 - * @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 + * PrimaryStatus position. + * @member {string} position + * @memberof replicationdata.PrimaryStatus * @instance */ - Table.prototype.pinned = ""; + PrimaryStatus.prototype.position = ""; /** - * Table column_list_authoritative. - * @member {boolean} column_list_authoritative - * @memberof vschema.Table + * PrimaryStatus file_position. + * @member {string} file_position + * @memberof replicationdata.PrimaryStatus * @instance */ - Table.prototype.column_list_authoritative = false; + PrimaryStatus.prototype.file_position = ""; /** - * Table source. - * @member {string} source - * @memberof vschema.Table + * PrimaryStatus server_uuid. + * @member {string} server_uuid + * @memberof replicationdata.PrimaryStatus * @instance */ - Table.prototype.source = ""; + PrimaryStatus.prototype.server_uuid = ""; /** - * Creates a new Table instance using the specified properties. + * Creates a new PrimaryStatus instance using the specified properties. * @function create - * @memberof vschema.Table + * @memberof replicationdata.PrimaryStatus * @static - * @param {vschema.ITable=} [properties] Properties to set - * @returns {vschema.Table} Table instance + * @param {replicationdata.IPrimaryStatus=} [properties] Properties to set + * @returns {replicationdata.PrimaryStatus} PrimaryStatus instance */ - Table.create = function create(properties) { - return new Table(properties); + PrimaryStatus.create = function create(properties) { + return new PrimaryStatus(properties); }; /** - * Encodes the specified Table message. Does not implicitly {@link vschema.Table.verify|verify} messages. + * Encodes the specified PrimaryStatus message. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. * @function encode - * @memberof vschema.Table + * @memberof replicationdata.PrimaryStatus * @static - * @param {vschema.ITable} message Table 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 */ - Table.encode = function encode(message, writer) { + PrimaryStatus.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 (let 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 (let 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.source != null && Object.hasOwnProperty.call(message, "source")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.source); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); + if (message.file_position != null && Object.hasOwnProperty.call(message, "file_position")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.file_position); + if (message.server_uuid != null && Object.hasOwnProperty.call(message, "server_uuid")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.server_uuid); return writer; }; /** - * Encodes the specified Table message, length delimited. Does not implicitly {@link vschema.Table.verify|verify} messages. + * Encodes the specified PrimaryStatus message, length delimited. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Table + * @memberof replicationdata.PrimaryStatus * @static - * @param {vschema.ITable} message Table 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 */ - Table.encodeDelimited = function encodeDelimited(message, writer) { + PrimaryStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Table message from the specified reader or buffer. + * Decodes a PrimaryStatus message from the specified reader or buffer. * @function decode - * @memberof vschema.Table + * @memberof replicationdata.PrimaryStatus * @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 {replicationdata.PrimaryStatus} PrimaryStatus * @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) { + PrimaryStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Table(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.PrimaryStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.string(); + message.position = reader.string(); break; } case 2: { - if (!(message.column_vindexes && message.column_vindexes.length)) - message.column_vindexes = []; - message.column_vindexes.push($root.vschema.ColumnVindex.decode(reader, reader.uint32())); + message.file_position = reader.string(); 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; - } - case 7: { - message.source = reader.string(); + message.server_uuid = reader.string(); break; } default: @@ -121224,215 +120795,163 @@ export const vschema = $root.vschema = (() => { }; /** - * Decodes a Table message from the specified reader or buffer, length delimited. + * Decodes a PrimaryStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.Table + * @memberof replicationdata.PrimaryStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Table} Table + * @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 */ - Table.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 Table message. + * Verifies a PrimaryStatus message. * @function verify - * @memberof vschema.Table + * @memberof replicationdata.PrimaryStatus * @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) { + PrimaryStatus.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 (let i = 0; i < message.column_vindexes.length; ++i) { - let error = $root.vschema.ColumnVindex.verify(message.column_vindexes[i]); - if (error) - return "column_vindexes." + error; - } - } - if (message.auto_increment != null && message.hasOwnProperty("auto_increment")) { - let 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 (let i = 0; i < message.columns.length; ++i) { - let error = $root.vschema.Column.verify(message.columns[i]); - if (error) - return "columns." + error; - } - } - if (message.pinned != null && message.hasOwnProperty("pinned")) - if (!$util.isString(message.pinned)) - return "pinned: string expected"; - if (message.column_list_authoritative != null && message.hasOwnProperty("column_list_authoritative")) - if (typeof message.column_list_authoritative !== "boolean") - return "column_list_authoritative: boolean expected"; - if (message.source != null && message.hasOwnProperty("source")) - if (!$util.isString(message.source)) - return "source: string 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"; + if (message.server_uuid != null && message.hasOwnProperty("server_uuid")) + if (!$util.isString(message.server_uuid)) + return "server_uuid: string expected"; return null; }; /** - * Creates a Table 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 vschema.Table + * @memberof replicationdata.PrimaryStatus * @static * @param {Object.} object Plain object - * @returns {vschema.Table} Table + * @returns {replicationdata.PrimaryStatus} PrimaryStatus */ - Table.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Table) + PrimaryStatus.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.PrimaryStatus) return object; - let 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 (let i = 0; i < object.column_vindexes.length; ++i) { - if (typeof object.column_vindexes[i] !== "object") - throw TypeError(".vschema.Table.column_vindexes: object expected"); - message.column_vindexes[i] = $root.vschema.ColumnVindex.fromObject(object.column_vindexes[i]); - } - } - if (object.auto_increment != null) { - if (typeof object.auto_increment !== "object") - throw TypeError(".vschema.Table.auto_increment: object expected"); - message.auto_increment = $root.vschema.AutoIncrement.fromObject(object.auto_increment); - } - if (object.columns) { - if (!Array.isArray(object.columns)) - throw TypeError(".vschema.Table.columns: array expected"); - message.columns = []; - for (let 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); - if (object.source != null) - message.source = String(object.source); + let 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); + if (object.server_uuid != null) + message.server_uuid = String(object.server_uuid); return message; }; /** - * Creates a plain object from a Table 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 vschema.Table + * @memberof replicationdata.PrimaryStatus * @static - * @param {vschema.Table} message Table + * @param {replicationdata.PrimaryStatus} message PrimaryStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Table.toObject = function toObject(message, options) { + PrimaryStatus.toObject = function toObject(message, options) { if (!options) options = {}; let 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; - object.source = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.column_vindexes && message.column_vindexes.length) { - object.column_vindexes = []; - for (let 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 (let j = 0; j < message.columns.length; ++j) - object.columns[j] = $root.vschema.Column.toObject(message.columns[j], options); + object.position = ""; + object.file_position = ""; + object.server_uuid = ""; } - 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.source != null && message.hasOwnProperty("source")) - object.source = message.source; + 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; + if (message.server_uuid != null && message.hasOwnProperty("server_uuid")) + object.server_uuid = message.server_uuid; return object; }; /** - * Converts this Table to JSON. + * Converts this PrimaryStatus to JSON. * @function toJSON - * @memberof vschema.Table + * @memberof replicationdata.PrimaryStatus * @instance * @returns {Object.} JSON object */ - Table.prototype.toJSON = function toJSON() { + PrimaryStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Table + * Gets the default type url for PrimaryStatus * @function getTypeUrl - * @memberof vschema.Table + * @memberof replicationdata.PrimaryStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Table.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PrimaryStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.Table"; + return typeUrlPrefix + "/replicationdata.PrimaryStatus"; }; - return Table; + return PrimaryStatus; })(); - vschema.ColumnVindex = (function() { + replicationdata.FullStatus = (function() { /** - * Properties of a ColumnVindex. - * @memberof vschema - * @interface IColumnVindex - * @property {string|null} [column] ColumnVindex column - * @property {string|null} [name] ColumnVindex name - * @property {Array.|null} [columns] ColumnVindex columns + * Properties of a 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 + * @property {boolean|null} [super_read_only] FullStatus super_read_only + * @property {replicationdata.IConfiguration|null} [replication_configuration] FullStatus replication_configuration + * @property {boolean|null} [disk_stalled] FullStatus disk_stalled + * @property {boolean|null} [semi_sync_blocked] FullStatus semi_sync_blocked + * @property {topodata.TabletType|null} [tablet_type] FullStatus tablet_type */ /** - * Constructs a new ColumnVindex. - * @memberof vschema - * @classdesc Represents a ColumnVindex. - * @implements IColumnVindex + * Constructs a new FullStatus. + * @memberof replicationdata + * @classdesc Represents a FullStatus. + * @implements IFullStatus * @constructor - * @param {vschema.IColumnVindex=} [properties] Properties to set + * @param {replicationdata.IFullStatus=} [properties] Properties to set */ - function ColumnVindex(properties) { - this.columns = []; + function FullStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -121440,354 +120959,411 @@ export const vschema = $root.vschema = (() => { } /** - * ColumnVindex column. - * @member {string} column - * @memberof vschema.ColumnVindex + * FullStatus server_id. + * @member {number} server_id + * @memberof replicationdata.FullStatus * @instance */ - ColumnVindex.prototype.column = ""; + FullStatus.prototype.server_id = 0; /** - * ColumnVindex name. - * @member {string} name - * @memberof vschema.ColumnVindex + * FullStatus server_uuid. + * @member {string} server_uuid + * @memberof replicationdata.FullStatus * @instance */ - ColumnVindex.prototype.name = ""; + FullStatus.prototype.server_uuid = ""; /** - * ColumnVindex columns. - * @member {Array.} columns - * @memberof vschema.ColumnVindex + * FullStatus replication_status. + * @member {replicationdata.IStatus|null|undefined} replication_status + * @memberof replicationdata.FullStatus * @instance */ - ColumnVindex.prototype.columns = $util.emptyArray; + FullStatus.prototype.replication_status = null; /** - * Creates a new ColumnVindex instance using the specified properties. - * @function create - * @memberof vschema.ColumnVindex - * @static - * @param {vschema.IColumnVindex=} [properties] Properties to set - * @returns {vschema.ColumnVindex} ColumnVindex instance + * FullStatus primary_status. + * @member {replicationdata.IPrimaryStatus|null|undefined} primary_status + * @memberof replicationdata.FullStatus + * @instance */ - ColumnVindex.create = function create(properties) { - return new ColumnVindex(properties); - }; + FullStatus.prototype.primary_status = null; /** - * Encodes the specified ColumnVindex message. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. - * @function encode - * @memberof vschema.ColumnVindex - * @static - * @param {vschema.IColumnVindex} message ColumnVindex message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * FullStatus gtid_purged. + * @member {string} gtid_purged + * @memberof replicationdata.FullStatus + * @instance */ - ColumnVindex.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.column != null && Object.hasOwnProperty.call(message, "column")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.column); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.columns != null && message.columns.length) - for (let i = 0; i < message.columns.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.columns[i]); - return writer; - }; + FullStatus.prototype.gtid_purged = ""; /** - * Encodes the specified ColumnVindex message, length delimited. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. - * @function encodeDelimited - * @memberof vschema.ColumnVindex - * @static - * @param {vschema.IColumnVindex} message ColumnVindex message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * FullStatus version. + * @member {string} version + * @memberof replicationdata.FullStatus + * @instance */ - ColumnVindex.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + FullStatus.prototype.version = ""; /** - * Decodes a ColumnVindex message from the specified reader or buffer. - * @function decode - * @memberof vschema.ColumnVindex - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vschema.ColumnVindex} ColumnVindex - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * FullStatus version_comment. + * @member {string} version_comment + * @memberof replicationdata.FullStatus + * @instance */ - ColumnVindex.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ColumnVindex(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.column = reader.string(); - break; - } - case 2: { - message.name = reader.string(); - break; - } - case 3: { - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + FullStatus.prototype.version_comment = ""; /** - * Decodes a ColumnVindex message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vschema.ColumnVindex - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.ColumnVindex} ColumnVindex - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * FullStatus read_only. + * @member {boolean} read_only + * @memberof replicationdata.FullStatus + * @instance */ - ColumnVindex.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + FullStatus.prototype.read_only = false; /** - * Verifies a ColumnVindex message. - * @function verify - * @memberof vschema.ColumnVindex - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * FullStatus gtid_mode. + * @member {string} gtid_mode + * @memberof replicationdata.FullStatus + * @instance */ - ColumnVindex.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.column != null && message.hasOwnProperty("column")) - if (!$util.isString(message.column)) - return "column: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (let i = 0; i < message.columns.length; ++i) - if (!$util.isString(message.columns[i])) - return "columns: string[] expected"; - } - return null; - }; + FullStatus.prototype.gtid_mode = ""; /** - * Creates a ColumnVindex message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vschema.ColumnVindex - * @static - * @param {Object.} object Plain object - * @returns {vschema.ColumnVindex} ColumnVindex + * FullStatus binlog_format. + * @member {string} binlog_format + * @memberof replicationdata.FullStatus + * @instance */ - ColumnVindex.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.ColumnVindex) - return object; - let 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 (let i = 0; i < object.columns.length; ++i) - message.columns[i] = String(object.columns[i]); - } - return message; - }; + FullStatus.prototype.binlog_format = ""; /** - * Creates a plain object from a ColumnVindex message. Also converts values to other types if specified. - * @function toObject - * @memberof vschema.ColumnVindex - * @static - * @param {vschema.ColumnVindex} message ColumnVindex - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * FullStatus binlog_row_image. + * @member {string} binlog_row_image + * @memberof replicationdata.FullStatus + * @instance */ - ColumnVindex.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.columns = []; - if (options.defaults) { - object.column = ""; - object.name = ""; - } - if (message.column != null && message.hasOwnProperty("column")) - object.column = message.column; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.columns && message.columns.length) { - object.columns = []; - for (let j = 0; j < message.columns.length; ++j) - object.columns[j] = message.columns[j]; - } - return object; - }; + FullStatus.prototype.binlog_row_image = ""; /** - * Converts this ColumnVindex to JSON. - * @function toJSON - * @memberof vschema.ColumnVindex + * FullStatus log_bin_enabled. + * @member {boolean} log_bin_enabled + * @memberof replicationdata.FullStatus * @instance - * @returns {Object.} JSON object */ - ColumnVindex.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + FullStatus.prototype.log_bin_enabled = false; /** - * Gets the default type url for ColumnVindex - * @function getTypeUrl - * @memberof vschema.ColumnVindex - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * FullStatus log_replica_updates. + * @member {boolean} log_replica_updates + * @memberof replicationdata.FullStatus + * @instance */ - ColumnVindex.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vschema.ColumnVindex"; - }; + FullStatus.prototype.log_replica_updates = false; - return ColumnVindex; - })(); + /** + * FullStatus semi_sync_primary_enabled. + * @member {boolean} semi_sync_primary_enabled + * @memberof replicationdata.FullStatus + * @instance + */ + FullStatus.prototype.semi_sync_primary_enabled = false; - vschema.AutoIncrement = (function() { + /** + * FullStatus semi_sync_replica_enabled. + * @member {boolean} semi_sync_replica_enabled + * @memberof replicationdata.FullStatus + * @instance + */ + FullStatus.prototype.semi_sync_replica_enabled = false; /** - * Properties of an AutoIncrement. - * @memberof vschema - * @interface IAutoIncrement - * @property {string|null} [column] AutoIncrement column - * @property {string|null} [sequence] AutoIncrement sequence + * FullStatus semi_sync_primary_status. + * @member {boolean} semi_sync_primary_status + * @memberof replicationdata.FullStatus + * @instance */ + FullStatus.prototype.semi_sync_primary_status = false; /** - * Constructs a new AutoIncrement. - * @memberof vschema - * @classdesc Represents an AutoIncrement. - * @implements IAutoIncrement - * @constructor - * @param {vschema.IAutoIncrement=} [properties] Properties to set + * FullStatus semi_sync_replica_status. + * @member {boolean} semi_sync_replica_status + * @memberof replicationdata.FullStatus + * @instance */ - function AutoIncrement(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + FullStatus.prototype.semi_sync_replica_status = false; /** - * AutoIncrement column. - * @member {string} column - * @memberof vschema.AutoIncrement + * FullStatus semi_sync_primary_clients. + * @member {number} semi_sync_primary_clients + * @memberof replicationdata.FullStatus * @instance */ - AutoIncrement.prototype.column = ""; + FullStatus.prototype.semi_sync_primary_clients = 0; /** - * AutoIncrement sequence. - * @member {string} sequence - * @memberof vschema.AutoIncrement + * FullStatus semi_sync_primary_timeout. + * @member {number|Long} semi_sync_primary_timeout + * @memberof replicationdata.FullStatus * @instance */ - AutoIncrement.prototype.sequence = ""; + FullStatus.prototype.semi_sync_primary_timeout = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new AutoIncrement instance using the specified properties. + * 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; + + /** + * FullStatus super_read_only. + * @member {boolean} super_read_only + * @memberof replicationdata.FullStatus + * @instance + */ + FullStatus.prototype.super_read_only = false; + + /** + * FullStatus replication_configuration. + * @member {replicationdata.IConfiguration|null|undefined} replication_configuration + * @memberof replicationdata.FullStatus + * @instance + */ + FullStatus.prototype.replication_configuration = null; + + /** + * FullStatus disk_stalled. + * @member {boolean} disk_stalled + * @memberof replicationdata.FullStatus + * @instance + */ + FullStatus.prototype.disk_stalled = false; + + /** + * FullStatus semi_sync_blocked. + * @member {boolean} semi_sync_blocked + * @memberof replicationdata.FullStatus + * @instance + */ + FullStatus.prototype.semi_sync_blocked = false; + + /** + * FullStatus tablet_type. + * @member {topodata.TabletType} tablet_type + * @memberof replicationdata.FullStatus + * @instance + */ + FullStatus.prototype.tablet_type = 0; + + /** + * Creates a new FullStatus instance using the specified properties. * @function create - * @memberof vschema.AutoIncrement + * @memberof replicationdata.FullStatus * @static - * @param {vschema.IAutoIncrement=} [properties] Properties to set - * @returns {vschema.AutoIncrement} AutoIncrement instance + * @param {replicationdata.IFullStatus=} [properties] Properties to set + * @returns {replicationdata.FullStatus} FullStatus instance */ - AutoIncrement.create = function create(properties) { - return new AutoIncrement(properties); + FullStatus.create = function create(properties) { + return new FullStatus(properties); }; /** - * Encodes the specified AutoIncrement message. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * Encodes the specified FullStatus message. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. * @function encode - * @memberof vschema.AutoIncrement + * @memberof replicationdata.FullStatus * @static - * @param {vschema.IAutoIncrement} message AutoIncrement 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 */ - AutoIncrement.encode = function encode(message, writer) { + FullStatus.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.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.super_read_only != null && Object.hasOwnProperty.call(message, "super_read_only")) + writer.uint32(/* id 21, wireType 0 =*/168).bool(message.super_read_only); + if (message.replication_configuration != null && Object.hasOwnProperty.call(message, "replication_configuration")) + $root.replicationdata.Configuration.encode(message.replication_configuration, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.disk_stalled != null && Object.hasOwnProperty.call(message, "disk_stalled")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.disk_stalled); + if (message.semi_sync_blocked != null && Object.hasOwnProperty.call(message, "semi_sync_blocked")) + writer.uint32(/* id 24, wireType 0 =*/192).bool(message.semi_sync_blocked); + if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) + writer.uint32(/* id 25, wireType 0 =*/200).int32(message.tablet_type); return writer; }; /** - * Encodes the specified AutoIncrement message, length delimited. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * Encodes the specified FullStatus message, length delimited. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.AutoIncrement + * @memberof replicationdata.FullStatus * @static - * @param {vschema.IAutoIncrement} message AutoIncrement 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 */ - AutoIncrement.encodeDelimited = function encodeDelimited(message, writer) { + FullStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AutoIncrement message from the specified reader or buffer. + * Decodes a FullStatus message from the specified reader or buffer. * @function decode - * @memberof vschema.AutoIncrement + * @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.AutoIncrement} AutoIncrement + * @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 */ - AutoIncrement.decode = function decode(reader, length) { + FullStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.AutoIncrement(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.FullStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.column = reader.string(); + message.server_id = reader.uint32(); break; } case 2: { - message.sequence = 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; + } + case 21: { + message.super_read_only = reader.bool(); + break; + } + case 22: { + message.replication_configuration = $root.replicationdata.Configuration.decode(reader, reader.uint32()); + break; + } + case 23: { + message.disk_stalled = reader.bool(); + break; + } + case 24: { + message.semi_sync_blocked = reader.bool(); + break; + } + case 25: { + message.tablet_type = reader.int32(); break; } default: @@ -121799,140 +121375,421 @@ export const vschema = $root.vschema = (() => { }; /** - * Decodes an AutoIncrement 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.AutoIncrement + * @memberof replicationdata.FullStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.AutoIncrement} AutoIncrement + * @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 */ - AutoIncrement.decodeDelimited = function decodeDelimited(reader) { + FullStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AutoIncrement message. + * Verifies a FullStatus message. * @function verify - * @memberof vschema.AutoIncrement + * @memberof replicationdata.FullStatus * @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) { + FullStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.column != null && message.hasOwnProperty("column")) - if (!$util.isString(message.column)) - return "column: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isString(message.sequence)) - return "sequence: string expected"; - return null; - }; - - /** - * Creates an AutoIncrement message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vschema.AutoIncrement - * @static - * @param {Object.} object Plain object - * @returns {vschema.AutoIncrement} AutoIncrement - */ - AutoIncrement.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.AutoIncrement) - return object; - let 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. + 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")) { + let error = $root.replicationdata.Status.verify(message.replication_status); + if (error) + return "replication_status." + error; + } + if (message.primary_status != null && message.hasOwnProperty("primary_status")) { + let 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.super_read_only != null && message.hasOwnProperty("super_read_only")) + if (typeof message.super_read_only !== "boolean") + return "super_read_only: boolean expected"; + if (message.replication_configuration != null && message.hasOwnProperty("replication_configuration")) { + let error = $root.replicationdata.Configuration.verify(message.replication_configuration); + if (error) + return "replication_configuration." + error; + } + if (message.disk_stalled != null && message.hasOwnProperty("disk_stalled")) + if (typeof message.disk_stalled !== "boolean") + return "disk_stalled: boolean expected"; + if (message.semi_sync_blocked != null && message.hasOwnProperty("semi_sync_blocked")) + if (typeof message.semi_sync_blocked !== "boolean") + return "semi_sync_blocked: boolean 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; + } + return null; + }; + + /** + * Creates a FullStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof replicationdata.FullStatus + * @static + * @param {Object.} object Plain object + * @returns {replicationdata.FullStatus} FullStatus + */ + FullStatus.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.FullStatus) + return object; + let 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; + if (object.super_read_only != null) + message.super_read_only = Boolean(object.super_read_only); + if (object.replication_configuration != null) { + if (typeof object.replication_configuration !== "object") + throw TypeError(".replicationdata.FullStatus.replication_configuration: object expected"); + message.replication_configuration = $root.replicationdata.Configuration.fromObject(object.replication_configuration); + } + if (object.disk_stalled != null) + message.disk_stalled = Boolean(object.disk_stalled); + if (object.semi_sync_blocked != null) + message.semi_sync_blocked = Boolean(object.semi_sync_blocked); + switch (object.tablet_type) { + default: + if (typeof object.tablet_type === "number") { + message.tablet_type = object.tablet_type; + break; + } + break; + 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; + } + return message; + }; + + /** + * Creates a plain object from a FullStatus message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.AutoIncrement + * @memberof replicationdata.FullStatus * @static - * @param {vschema.AutoIncrement} message AutoIncrement + * @param {replicationdata.FullStatus} message FullStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutoIncrement.toObject = function toObject(message, options) { + FullStatus.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.column = ""; - object.sequence = ""; + 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) { + let 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.super_read_only = false; + object.replication_configuration = null; + object.disk_stalled = false; + object.semi_sync_blocked = false; + object.tablet_type = options.enums === String ? "UNKNOWN" : 0; } - if (message.column != null && message.hasOwnProperty("column")) - object.column = message.column; - if (message.sequence != null && message.hasOwnProperty("sequence")) - object.sequence = message.sequence; + 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.super_read_only != null && message.hasOwnProperty("super_read_only")) + object.super_read_only = message.super_read_only; + if (message.replication_configuration != null && message.hasOwnProperty("replication_configuration")) + object.replication_configuration = $root.replicationdata.Configuration.toObject(message.replication_configuration, options); + if (message.disk_stalled != null && message.hasOwnProperty("disk_stalled")) + object.disk_stalled = message.disk_stalled; + if (message.semi_sync_blocked != null && message.hasOwnProperty("semi_sync_blocked")) + object.semi_sync_blocked = message.semi_sync_blocked; + if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) + object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] === undefined ? message.tablet_type : $root.topodata.TabletType[message.tablet_type] : message.tablet_type; return object; }; /** - * Converts this AutoIncrement to JSON. + * Converts this FullStatus to JSON. * @function toJSON - * @memberof vschema.AutoIncrement + * @memberof replicationdata.FullStatus * @instance * @returns {Object.} JSON object */ - AutoIncrement.prototype.toJSON = function toJSON() { + FullStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AutoIncrement + * Gets the default type url for FullStatus * @function getTypeUrl - * @memberof vschema.AutoIncrement + * @memberof replicationdata.FullStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AutoIncrement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FullStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.AutoIncrement"; + return typeUrlPrefix + "/replicationdata.FullStatus"; }; - return AutoIncrement; + return FullStatus; })(); - vschema.Column = (function() { + return replicationdata; +})(); + +export const vschema = $root.vschema = (() => { + + /** + * Namespace vschema. + * @exports vschema + * @namespace + */ + const vschema = {}; + + vschema.RoutingRules = (function() { /** - * Properties of a Column. + * Properties of a RoutingRules. * @memberof vschema - * @interface IColumn - * @property {string|null} [name] Column name - * @property {query.Type|null} [type] Column type - * @property {boolean|null} [invisible] Column invisible - * @property {string|null} ["default"] Column default - * @property {string|null} [collation_name] Column collation_name - * @property {number|null} [size] Column size - * @property {number|null} [scale] Column scale - * @property {boolean|null} [nullable] Column nullable - * @property {Array.|null} [values] Column values + * @interface IRoutingRules + * @property {Array.|null} [rules] RoutingRules rules */ /** - * Constructs a new Column. + * Constructs a new RoutingRules. * @memberof vschema - * @classdesc Represents a Column. - * @implements IColumn + * @classdesc Represents a RoutingRules. + * @implements IRoutingRules * @constructor - * @param {vschema.IColumn=} [properties] Properties to set + * @param {vschema.IRoutingRules=} [properties] Properties to set */ - function Column(properties) { - this.values = []; + function RoutingRules(properties) { + this.rules = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -121940,199 +121797,78 @@ export const vschema = $root.vschema = (() => { } /** - * Column name. - * @member {string} name - * @memberof vschema.Column - * @instance - */ - Column.prototype.name = ""; - - /** - * Column type. - * @member {query.Type} type - * @memberof vschema.Column - * @instance - */ - Column.prototype.type = 0; - - /** - * Column invisible. - * @member {boolean} invisible - * @memberof vschema.Column - * @instance - */ - Column.prototype.invisible = false; - - /** - * Column default. - * @member {string} default - * @memberof vschema.Column - * @instance - */ - Column.prototype["default"] = ""; - - /** - * Column collation_name. - * @member {string} collation_name - * @memberof vschema.Column - * @instance - */ - Column.prototype.collation_name = ""; - - /** - * Column size. - * @member {number} size - * @memberof vschema.Column - * @instance - */ - Column.prototype.size = 0; - - /** - * Column scale. - * @member {number} scale - * @memberof vschema.Column - * @instance - */ - Column.prototype.scale = 0; - - /** - * Column nullable. - * @member {boolean|null|undefined} nullable - * @memberof vschema.Column - * @instance - */ - Column.prototype.nullable = null; - - /** - * Column values. - * @member {Array.} values - * @memberof vschema.Column + * RoutingRules rules. + * @member {Array.} rules + * @memberof vschema.RoutingRules * @instance */ - Column.prototype.values = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(Column.prototype, "_nullable", { - get: $util.oneOfGetter($oneOfFields = ["nullable"]), - set: $util.oneOfSetter($oneOfFields) - }); + RoutingRules.prototype.rules = $util.emptyArray; /** - * Creates a new Column instance using the specified properties. + * Creates a new RoutingRules instance using the specified properties. * @function create - * @memberof vschema.Column + * @memberof vschema.RoutingRules * @static - * @param {vschema.IColumn=} [properties] Properties to set - * @returns {vschema.Column} Column instance + * @param {vschema.IRoutingRules=} [properties] Properties to set + * @returns {vschema.RoutingRules} RoutingRules instance */ - Column.create = function create(properties) { - return new Column(properties); + RoutingRules.create = function create(properties) { + return new RoutingRules(properties); }; /** - * Encodes the specified Column message. Does not implicitly {@link vschema.Column.verify|verify} messages. + * Encodes the specified RoutingRules message. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. * @function encode - * @memberof vschema.Column + * @memberof vschema.RoutingRules * @static - * @param {vschema.IColumn} message Column 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 */ - Column.encode = function encode(message, writer) { + RoutingRules.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - if (message.invisible != null && Object.hasOwnProperty.call(message, "invisible")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.invisible); - if (message["default"] != null && Object.hasOwnProperty.call(message, "default")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message["default"]); - if (message.collation_name != null && Object.hasOwnProperty.call(message, "collation_name")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.collation_name); - if (message.size != null && Object.hasOwnProperty.call(message, "size")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.size); - if (message.scale != null && Object.hasOwnProperty.call(message, "scale")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.scale); - if (message.nullable != null && Object.hasOwnProperty.call(message, "nullable")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.nullable); - if (message.values != null && message.values.length) - for (let i = 0; i < message.values.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.values[i]); + if (message.rules != null && message.rules.length) + for (let 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 Column message, length delimited. Does not implicitly {@link vschema.Column.verify|verify} messages. + * Encodes the specified RoutingRules message, length delimited. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Column + * @memberof vschema.RoutingRules * @static - * @param {vschema.IColumn} message Column 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 */ - Column.encodeDelimited = function encodeDelimited(message, writer) { + RoutingRules.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Column message from the specified reader or buffer. + * Decodes a RoutingRules message from the specified reader or buffer. * @function decode - * @memberof vschema.Column + * @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.Column} Column + * @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 */ - Column.decode = function decode(reader, length) { + RoutingRules.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Column(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRules(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.type = reader.int32(); - break; - } - case 3: { - message.invisible = reader.bool(); - break; - } - case 4: { - message["default"] = reader.string(); - break; - } - case 5: { - message.collation_name = reader.string(); - break; - } - case 6: { - message.size = reader.int32(); - break; - } - case 7: { - message.scale = reader.int32(); - break; - } - case 8: { - message.nullable = reader.bool(); - break; - } - case 9: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.vschema.RoutingRule.decode(reader, reader.uint32())); break; } default: @@ -122144,409 +121880,141 @@ export const vschema = $root.vschema = (() => { }; /** - * Decodes a Column 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.Column + * @memberof vschema.RoutingRules * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Column} Column + * @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 */ - Column.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 Column message. + * Verifies a RoutingRules message. * @function verify - * @memberof vschema.Column + * @memberof vschema.RoutingRules * @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) { + RoutingRules.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - let properties = {}; - 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: - case 2083: - case 2084: - case 2085: - break; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (let i = 0; i < message.rules.length; ++i) { + let error = $root.vschema.RoutingRule.verify(message.rules[i]); + if (error) + return "rules." + error; } - if (message.invisible != null && message.hasOwnProperty("invisible")) - if (typeof message.invisible !== "boolean") - return "invisible: boolean expected"; - if (message["default"] != null && message.hasOwnProperty("default")) - if (!$util.isString(message["default"])) - return "default: string expected"; - if (message.collation_name != null && message.hasOwnProperty("collation_name")) - if (!$util.isString(message.collation_name)) - return "collation_name: string expected"; - if (message.size != null && message.hasOwnProperty("size")) - if (!$util.isInteger(message.size)) - return "size: integer expected"; - if (message.scale != null && message.hasOwnProperty("scale")) - if (!$util.isInteger(message.scale)) - return "scale: integer expected"; - if (message.nullable != null && message.hasOwnProperty("nullable")) { - properties._nullable = 1; - if (typeof message.nullable !== "boolean") - return "nullable: boolean expected"; - } - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (let i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; } return null; }; /** - * Creates a Column 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.Column + * @memberof vschema.RoutingRules * @static * @param {Object.} object Plain object - * @returns {vschema.Column} Column + * @returns {vschema.RoutingRules} RoutingRules */ - Column.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Column) + RoutingRules.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.RoutingRules) return object; - let message = new $root.vschema.Column(); - if (object.name != null) - message.name = String(object.name); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; + let message = new $root.vschema.RoutingRules(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".vschema.RoutingRules.rules: array expected"); + message.rules = []; + for (let 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]); } - break; - 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; - case "VECTOR": - case 2083: - message.type = 2083; - break; - case "RAW": - case 2084: - message.type = 2084; - break; - case "ROW_TUPLE": - case 2085: - message.type = 2085; - break; - } - if (object.invisible != null) - message.invisible = Boolean(object.invisible); - if (object["default"] != null) - message["default"] = String(object["default"]); - if (object.collation_name != null) - message.collation_name = String(object.collation_name); - if (object.size != null) - message.size = object.size | 0; - if (object.scale != null) - message.scale = object.scale | 0; - if (object.nullable != null) - message.nullable = Boolean(object.nullable); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".vschema.Column.values: array expected"); - message.values = []; - for (let i = 0; i < object.values.length; ++i) - message.values[i] = String(object.values[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 RoutingRules message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.Column + * @memberof vschema.RoutingRules * @static - * @param {vschema.Column} message Column + * @param {vschema.RoutingRules} message RoutingRules * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Column.toObject = function toObject(message, options) { + RoutingRules.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.values = []; - if (options.defaults) { - object.name = ""; - object.type = options.enums === String ? "NULL_TYPE" : 0; - object.invisible = false; - object["default"] = ""; - object.collation_name = ""; - object.size = 0; - object.scale = 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] === undefined ? message.type : $root.query.Type[message.type] : message.type; - if (message.invisible != null && message.hasOwnProperty("invisible")) - object.invisible = message.invisible; - if (message["default"] != null && message.hasOwnProperty("default")) - object["default"] = message["default"]; - if (message.collation_name != null && message.hasOwnProperty("collation_name")) - object.collation_name = message.collation_name; - if (message.size != null && message.hasOwnProperty("size")) - object.size = message.size; - if (message.scale != null && message.hasOwnProperty("scale")) - object.scale = message.scale; - if (message.nullable != null && message.hasOwnProperty("nullable")) { - object.nullable = message.nullable; - if (options.oneofs) - object._nullable = "nullable"; - } - if (message.values && message.values.length) { - object.values = []; - for (let j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; + object.rules = []; + if (message.rules && message.rules.length) { + object.rules = []; + for (let j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.vschema.RoutingRule.toObject(message.rules[j], options); } return object; }; /** - * Converts this Column to JSON. + * Converts this RoutingRules to JSON. * @function toJSON - * @memberof vschema.Column + * @memberof vschema.RoutingRules * @instance * @returns {Object.} JSON object */ - Column.prototype.toJSON = function toJSON() { + RoutingRules.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Column + * Gets the default type url for RoutingRules * @function getTypeUrl - * @memberof vschema.Column + * @memberof vschema.RoutingRules * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Column.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RoutingRules.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.Column"; + return typeUrlPrefix + "/vschema.RoutingRules"; }; - return Column; + return RoutingRules; })(); - vschema.SrvVSchema = (function() { + vschema.RoutingRule = (function() { /** - * Properties of a SrvVSchema. + * Properties of a RoutingRule. * @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 - * @property {vschema.IKeyspaceRoutingRules|null} [keyspace_routing_rules] SrvVSchema keyspace_routing_rules - * @property {vschema.IMirrorRules|null} [mirror_rules] SrvVSchema mirror_rules + * @interface IRoutingRule + * @property {string|null} [from_table] RoutingRule from_table + * @property {Array.|null} [to_tables] RoutingRule to_tables */ /** - * Constructs a new SrvVSchema. + * Constructs a new RoutingRule. * @memberof vschema - * @classdesc Represents a SrvVSchema. - * @implements ISrvVSchema + * @classdesc Represents a RoutingRule. + * @implements IRoutingRule * @constructor - * @param {vschema.ISrvVSchema=} [properties] Properties to set + * @param {vschema.IRoutingRule=} [properties] Properties to set */ - function SrvVSchema(properties) { - this.keyspaces = {}; + function RoutingRule(properties) { + this.to_tables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -122554,153 +122022,92 @@ export const vschema = $root.vschema = (() => { } /** - * SrvVSchema keyspaces. - * @member {Object.} keyspaces - * @memberof vschema.SrvVSchema - * @instance - */ - SrvVSchema.prototype.keyspaces = $util.emptyObject; - - /** - * SrvVSchema routing_rules. - * @member {vschema.IRoutingRules|null|undefined} routing_rules - * @memberof vschema.SrvVSchema - * @instance - */ - SrvVSchema.prototype.routing_rules = null; - - /** - * SrvVSchema shard_routing_rules. - * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules - * @memberof vschema.SrvVSchema - * @instance - */ - SrvVSchema.prototype.shard_routing_rules = null; - - /** - * SrvVSchema keyspace_routing_rules. - * @member {vschema.IKeyspaceRoutingRules|null|undefined} keyspace_routing_rules - * @memberof vschema.SrvVSchema + * RoutingRule from_table. + * @member {string} from_table + * @memberof vschema.RoutingRule * @instance */ - SrvVSchema.prototype.keyspace_routing_rules = null; + RoutingRule.prototype.from_table = ""; /** - * SrvVSchema mirror_rules. - * @member {vschema.IMirrorRules|null|undefined} mirror_rules - * @memberof vschema.SrvVSchema + * RoutingRule to_tables. + * @member {Array.} to_tables + * @memberof vschema.RoutingRule * @instance */ - SrvVSchema.prototype.mirror_rules = null; + RoutingRule.prototype.to_tables = $util.emptyArray; /** - * Creates a new SrvVSchema instance using the specified properties. + * Creates a new RoutingRule instance using the specified properties. * @function create - * @memberof vschema.SrvVSchema + * @memberof vschema.RoutingRule * @static - * @param {vschema.ISrvVSchema=} [properties] Properties to set - * @returns {vschema.SrvVSchema} SrvVSchema instance + * @param {vschema.IRoutingRule=} [properties] Properties to set + * @returns {vschema.RoutingRule} RoutingRule instance */ - SrvVSchema.create = function create(properties) { - return new SrvVSchema(properties); + RoutingRule.create = function create(properties) { + return new RoutingRule(properties); }; /** - * Encodes the specified SrvVSchema message. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * Encodes the specified RoutingRule message. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. * @function encode - * @memberof vschema.SrvVSchema + * @memberof vschema.RoutingRule * @static - * @param {vschema.ISrvVSchema} message SrvVSchema 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 */ - SrvVSchema.encode = function encode(message, writer) { + RoutingRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspaces != null && Object.hasOwnProperty.call(message, "keyspaces")) - for (let 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.keyspace_routing_rules != null && Object.hasOwnProperty.call(message, "keyspace_routing_rules")) - $root.vschema.KeyspaceRoutingRules.encode(message.keyspace_routing_rules, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.mirror_rules != null && Object.hasOwnProperty.call(message, "mirror_rules")) - $root.vschema.MirrorRules.encode(message.mirror_rules, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.from_table != null && Object.hasOwnProperty.call(message, "from_table")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_table); + if (message.to_tables != null && message.to_tables.length) + for (let 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 SrvVSchema message, length delimited. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.SrvVSchema + * @memberof vschema.RoutingRule * @static - * @param {vschema.ISrvVSchema} message SrvVSchema 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 */ - SrvVSchema.encodeDelimited = function encodeDelimited(message, writer) { + RoutingRule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SrvVSchema message from the specified reader or buffer. + * Decodes a RoutingRule message from the specified reader or buffer. * @function decode - * @memberof vschema.SrvVSchema + * @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.SrvVSchema} SrvVSchema + * @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 */ - SrvVSchema.decode = function decode(reader, length) { + RoutingRule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.SrvVSchema(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRule(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.keyspaces === $util.emptyObject) - message.keyspaces = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vschema.Keyspace.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.keyspaces[key] = value; + message.from_table = 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()); - break; - } - case 4: { - message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.decode(reader, reader.uint32()); - break; - } - case 5: { - message.mirror_rules = $root.vschema.MirrorRules.decode(reader, reader.uint32()); + if (!(message.to_tables && message.to_tables.length)) + message.to_tables = []; + message.to_tables.push(reader.string()); break; } default: @@ -122712,196 +122119,151 @@ export const vschema = $root.vschema = (() => { }; /** - * Decodes a SrvVSchema 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.SrvVSchema + * @memberof vschema.RoutingRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.SrvVSchema} SrvVSchema + * @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 */ - SrvVSchema.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 SrvVSchema message. + * Verifies a RoutingRule message. * @function verify - * @memberof vschema.SrvVSchema + * @memberof vschema.RoutingRule * @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) { + RoutingRule.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"; - let key = Object.keys(message.keyspaces); - for (let i = 0; i < key.length; ++i) { - let error = $root.vschema.Keyspace.verify(message.keyspaces[key[i]]); - if (error) - return "keyspaces." + error; - } - } - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { - let 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")) { - let error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); - if (error) - return "shard_routing_rules." + error; - } - if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) { - let error = $root.vschema.KeyspaceRoutingRules.verify(message.keyspace_routing_rules); - if (error) - return "keyspace_routing_rules." + error; - } - if (message.mirror_rules != null && message.hasOwnProperty("mirror_rules")) { - let error = $root.vschema.MirrorRules.verify(message.mirror_rules); - if (error) - return "mirror_rules." + error; + if (message.from_table != null && message.hasOwnProperty("from_table")) + if (!$util.isString(message.from_table)) + return "from_table: string expected"; + if (message.to_tables != null && message.hasOwnProperty("to_tables")) { + if (!Array.isArray(message.to_tables)) + return "to_tables: array expected"; + for (let i = 0; i < message.to_tables.length; ++i) + if (!$util.isString(message.to_tables[i])) + return "to_tables: string[] expected"; } return null; }; /** - * Creates a SrvVSchema 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.SrvVSchema + * @memberof vschema.RoutingRule * @static * @param {Object.} object Plain object - * @returns {vschema.SrvVSchema} SrvVSchema + * @returns {vschema.RoutingRule} RoutingRule */ - SrvVSchema.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.SrvVSchema) + RoutingRule.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.RoutingRule) return object; - let message = new $root.vschema.SrvVSchema(); - if (object.keyspaces) { - if (typeof object.keyspaces !== "object") - throw TypeError(".vschema.SrvVSchema.keyspaces: object expected"); - message.keyspaces = {}; - for (let 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); - } - if (object.keyspace_routing_rules != null) { - if (typeof object.keyspace_routing_rules !== "object") - throw TypeError(".vschema.SrvVSchema.keyspace_routing_rules: object expected"); - message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.fromObject(object.keyspace_routing_rules); - } - if (object.mirror_rules != null) { - if (typeof object.mirror_rules !== "object") - throw TypeError(".vschema.SrvVSchema.mirror_rules: object expected"); - message.mirror_rules = $root.vschema.MirrorRules.fromObject(object.mirror_rules); + let 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 (let i = 0; i < object.to_tables.length; ++i) + message.to_tables[i] = String(object.to_tables[i]); } return message; }; /** - * Creates a plain object from a SrvVSchema 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.SrvVSchema + * @memberof vschema.RoutingRule * @static - * @param {vschema.SrvVSchema} message SrvVSchema + * @param {vschema.RoutingRule} message RoutingRule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SrvVSchema.toObject = function toObject(message, options) { + RoutingRule.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.keyspaces = {}; - if (options.defaults) { - object.routing_rules = null; - object.shard_routing_rules = null; - object.keyspace_routing_rules = null; - object.mirror_rules = null; - } - let keys2; - if (message.keyspaces && (keys2 = Object.keys(message.keyspaces)).length) { - object.keyspaces = {}; - for (let j = 0; j < keys2.length; ++j) - object.keyspaces[keys2[j]] = $root.vschema.Keyspace.toObject(message.keyspaces[keys2[j]], options); + 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 (let j = 0; j < message.to_tables.length; ++j) + object.to_tables[j] = message.to_tables[j]; } - 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.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) - object.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.toObject(message.keyspace_routing_rules, options); - if (message.mirror_rules != null && message.hasOwnProperty("mirror_rules")) - object.mirror_rules = $root.vschema.MirrorRules.toObject(message.mirror_rules, options); return object; }; /** - * Converts this SrvVSchema to JSON. + * Converts this RoutingRule to JSON. * @function toJSON - * @memberof vschema.SrvVSchema + * @memberof vschema.RoutingRule * @instance * @returns {Object.} JSON object */ - SrvVSchema.prototype.toJSON = function toJSON() { + RoutingRule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SrvVSchema + * Gets the default type url for RoutingRule * @function getTypeUrl - * @memberof vschema.SrvVSchema + * @memberof vschema.RoutingRule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SrvVSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RoutingRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.SrvVSchema"; + return typeUrlPrefix + "/vschema.RoutingRule"; }; - return SrvVSchema; + return RoutingRule; })(); - vschema.ShardRoutingRules = (function() { + vschema.Keyspace = (function() { /** - * Properties of a ShardRoutingRules. + * Properties of a Keyspace. * @memberof vschema - * @interface IShardRoutingRules - * @property {Array.|null} [rules] ShardRoutingRules rules + * @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 + * @property {vschema.Keyspace.ForeignKeyMode|null} [foreign_key_mode] Keyspace foreign_key_mode + * @property {vschema.IMultiTenantSpec|null} [multi_tenant_spec] Keyspace multi_tenant_spec + * @property {boolean|null} [draft] Keyspace draft */ /** - * Constructs a new ShardRoutingRules. + * Constructs a new Keyspace. * @memberof vschema - * @classdesc Represents a ShardRoutingRules. - * @implements IShardRoutingRules + * @classdesc Represents a Keyspace. + * @implements IKeyspace * @constructor - * @param {vschema.IShardRoutingRules=} [properties] Properties to set + * @param {vschema.IKeyspace=} [properties] Properties to set */ - function ShardRoutingRules(properties) { - this.rules = []; + function Keyspace(properties) { + this.vindexes = {}; + this.tables = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -122909,78 +122271,203 @@ export const vschema = $root.vschema = (() => { } /** - * ShardRoutingRules rules. - * @member {Array.} rules - * @memberof vschema.ShardRoutingRules + * Keyspace sharded. + * @member {boolean} sharded + * @memberof vschema.Keyspace * @instance */ - ShardRoutingRules.prototype.rules = $util.emptyArray; + Keyspace.prototype.sharded = false; /** - * Creates a new ShardRoutingRules instance using the specified properties. + * Keyspace vindexes. + * @member {Object.} vindexes + * @memberof vschema.Keyspace + * @instance + */ + Keyspace.prototype.vindexes = $util.emptyObject; + + /** + * Keyspace tables. + * @member {Object.} tables + * @memberof vschema.Keyspace + * @instance + */ + Keyspace.prototype.tables = $util.emptyObject; + + /** + * Keyspace require_explicit_routing. + * @member {boolean} require_explicit_routing + * @memberof vschema.Keyspace + * @instance + */ + Keyspace.prototype.require_explicit_routing = false; + + /** + * Keyspace foreign_key_mode. + * @member {vschema.Keyspace.ForeignKeyMode} foreign_key_mode + * @memberof vschema.Keyspace + * @instance + */ + Keyspace.prototype.foreign_key_mode = 0; + + /** + * Keyspace multi_tenant_spec. + * @member {vschema.IMultiTenantSpec|null|undefined} multi_tenant_spec + * @memberof vschema.Keyspace + * @instance + */ + Keyspace.prototype.multi_tenant_spec = null; + + /** + * Keyspace draft. + * @member {boolean} draft + * @memberof vschema.Keyspace + * @instance + */ + Keyspace.prototype.draft = false; + + /** + * Creates a new Keyspace instance using the specified properties. * @function create - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Keyspace * @static - * @param {vschema.IShardRoutingRules=} [properties] Properties to set - * @returns {vschema.ShardRoutingRules} ShardRoutingRules instance + * @param {vschema.IKeyspace=} [properties] Properties to set + * @returns {vschema.Keyspace} Keyspace instance */ - ShardRoutingRules.create = function create(properties) { - return new ShardRoutingRules(properties); + Keyspace.create = function create(properties) { + return new Keyspace(properties); }; /** - * Encodes the specified ShardRoutingRules message. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. + * Encodes the specified Keyspace message. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. * @function encode - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Keyspace * @static - * @param {vschema.IShardRoutingRules} message ShardRoutingRules 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 */ - ShardRoutingRules.encode = function encode(message, writer) { + Keyspace.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (let 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.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 (let 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 (let 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.foreign_key_mode != null && Object.hasOwnProperty.call(message, "foreign_key_mode")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.foreign_key_mode); + if (message.multi_tenant_spec != null && Object.hasOwnProperty.call(message, "multi_tenant_spec")) + $root.vschema.MultiTenantSpec.encode(message.multi_tenant_spec, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.draft != null && Object.hasOwnProperty.call(message, "draft")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.draft); return writer; }; /** - * Encodes the specified ShardRoutingRules message, length delimited. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Keyspace * @static - * @param {vschema.IShardRoutingRules} message ShardRoutingRules 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 */ - ShardRoutingRules.encodeDelimited = function encodeDelimited(message, writer) { + Keyspace.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardRoutingRules message from the specified reader or buffer. + * Decodes a Keyspace message from the specified reader or buffer. * @function decode - * @memberof vschema.ShardRoutingRules + * @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.ShardRoutingRules} ShardRoutingRules + * @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 */ - ShardRoutingRules.decode = function decode(reader, length) { + Keyspace.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ShardRoutingRules(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Keyspace(), key, value; while (reader.pos < end) { let 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.sharded = reader.bool(); + break; + } + case 2: { + if (message.vindexes === $util.emptyObject) + message.vindexes = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.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 = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vschema.Table.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tables[key] = value; + break; + } + case 4: { + message.require_explicit_routing = reader.bool(); + break; + } + case 5: { + message.foreign_key_mode = reader.int32(); + break; + } + case 6: { + message.multi_tenant_spec = $root.vschema.MultiTenantSpec.decode(reader, reader.uint32()); + break; + } + case 7: { + message.draft = reader.bool(); break; } default: @@ -122992,141 +122479,263 @@ export const vschema = $root.vschema = (() => { }; /** - * Decodes a ShardRoutingRules 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.ShardRoutingRules + * @memberof vschema.Keyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.ShardRoutingRules} ShardRoutingRules + * @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 */ - ShardRoutingRules.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 ShardRoutingRules message. + * Verifies a Keyspace message. * @function verify - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Keyspace * @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) { + Keyspace.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 (let i = 0; i < message.rules.length; ++i) { - let error = $root.vschema.ShardRoutingRule.verify(message.rules[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"; + let key = Object.keys(message.vindexes); + for (let i = 0; i < key.length; ++i) { + let error = $root.vschema.Vindex.verify(message.vindexes[key[i]]); if (error) - return "rules." + error; + return "vindexes." + error; + } + } + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!$util.isObject(message.tables)) + return "tables: object expected"; + let key = Object.keys(message.tables); + for (let i = 0; i < key.length; ++i) { + let error = $root.vschema.Table.verify(message.tables[key[i]]); + if (error) + return "tables." + error; + } + } + if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) + if (typeof message.require_explicit_routing !== "boolean") + return "require_explicit_routing: boolean expected"; + if (message.foreign_key_mode != null && message.hasOwnProperty("foreign_key_mode")) + switch (message.foreign_key_mode) { + default: + return "foreign_key_mode: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; } + if (message.multi_tenant_spec != null && message.hasOwnProperty("multi_tenant_spec")) { + let error = $root.vschema.MultiTenantSpec.verify(message.multi_tenant_spec); + if (error) + return "multi_tenant_spec." + error; } + if (message.draft != null && message.hasOwnProperty("draft")) + if (typeof message.draft !== "boolean") + return "draft: boolean expected"; return null; }; /** - * Creates a ShardRoutingRules 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.ShardRoutingRules + * @memberof vschema.Keyspace * @static * @param {Object.} object Plain object - * @returns {vschema.ShardRoutingRules} ShardRoutingRules + * @returns {vschema.Keyspace} Keyspace */ - ShardRoutingRules.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.ShardRoutingRules) + Keyspace.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Keyspace) return object; - let message = new $root.vschema.ShardRoutingRules(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".vschema.ShardRoutingRules.rules: array expected"); - message.rules = []; - for (let 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]); + let 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 (let 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 (let keys = Object.keys(object.tables), i = 0; i < keys.length; ++i) { + if (typeof object.tables[keys[i]] !== "object") + throw TypeError(".vschema.Keyspace.tables: object expected"); + message.tables[keys[i]] = $root.vschema.Table.fromObject(object.tables[keys[i]]); + } + } + if (object.require_explicit_routing != null) + message.require_explicit_routing = Boolean(object.require_explicit_routing); + switch (object.foreign_key_mode) { + default: + if (typeof object.foreign_key_mode === "number") { + message.foreign_key_mode = object.foreign_key_mode; + break; } + break; + case "unspecified": + case 0: + message.foreign_key_mode = 0; + break; + case "disallow": + case 1: + message.foreign_key_mode = 1; + break; + case "unmanaged": + case 2: + message.foreign_key_mode = 2; + break; + case "managed": + case 3: + message.foreign_key_mode = 3; + break; + } + if (object.multi_tenant_spec != null) { + if (typeof object.multi_tenant_spec !== "object") + throw TypeError(".vschema.Keyspace.multi_tenant_spec: object expected"); + message.multi_tenant_spec = $root.vschema.MultiTenantSpec.fromObject(object.multi_tenant_spec); } + if (object.draft != null) + message.draft = Boolean(object.draft); return message; }; /** - * Creates a plain object from a ShardRoutingRules 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.ShardRoutingRules + * @memberof vschema.Keyspace * @static - * @param {vschema.ShardRoutingRules} message ShardRoutingRules + * @param {vschema.Keyspace} message Keyspace * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardRoutingRules.toObject = function toObject(message, options) { + Keyspace.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (message.rules && message.rules.length) { - object.rules = []; - for (let j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.vschema.ShardRoutingRule.toObject(message.rules[j], options); + if (options.objects || options.defaults) { + object.vindexes = {}; + object.tables = {}; + } + if (options.defaults) { + object.sharded = false; + object.require_explicit_routing = false; + object.foreign_key_mode = options.enums === String ? "unspecified" : 0; + object.multi_tenant_spec = null; + object.draft = false; + } + if (message.sharded != null && message.hasOwnProperty("sharded")) + object.sharded = message.sharded; + let keys2; + if (message.vindexes && (keys2 = Object.keys(message.vindexes)).length) { + object.vindexes = {}; + for (let 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 (let 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; + if (message.foreign_key_mode != null && message.hasOwnProperty("foreign_key_mode")) + object.foreign_key_mode = options.enums === String ? $root.vschema.Keyspace.ForeignKeyMode[message.foreign_key_mode] === undefined ? message.foreign_key_mode : $root.vschema.Keyspace.ForeignKeyMode[message.foreign_key_mode] : message.foreign_key_mode; + if (message.multi_tenant_spec != null && message.hasOwnProperty("multi_tenant_spec")) + object.multi_tenant_spec = $root.vschema.MultiTenantSpec.toObject(message.multi_tenant_spec, options); + if (message.draft != null && message.hasOwnProperty("draft")) + object.draft = message.draft; return object; }; /** - * Converts this ShardRoutingRules to JSON. + * Converts this Keyspace to JSON. * @function toJSON - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Keyspace * @instance * @returns {Object.} JSON object */ - ShardRoutingRules.prototype.toJSON = function toJSON() { + Keyspace.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardRoutingRules + * Gets the default type url for Keyspace * @function getTypeUrl - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Keyspace * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardRoutingRules.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Keyspace.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.ShardRoutingRules"; + return typeUrlPrefix + "/vschema.Keyspace"; }; - return ShardRoutingRules; + /** + * ForeignKeyMode enum. + * @name vschema.Keyspace.ForeignKeyMode + * @enum {number} + * @property {number} unspecified=0 unspecified value + * @property {number} disallow=1 disallow value + * @property {number} unmanaged=2 unmanaged value + * @property {number} managed=3 managed value + */ + Keyspace.ForeignKeyMode = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "unspecified"] = 0; + values[valuesById[1] = "disallow"] = 1; + values[valuesById[2] = "unmanaged"] = 2; + values[valuesById[3] = "managed"] = 3; + return values; + })(); + + return Keyspace; })(); - vschema.ShardRoutingRule = (function() { + vschema.MultiTenantSpec = (function() { /** - * Properties of a ShardRoutingRule. + * Properties of a MultiTenantSpec. * @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 IMultiTenantSpec + * @property {string|null} [tenant_id_column_name] MultiTenantSpec tenant_id_column_name + * @property {query.Type|null} [tenant_id_column_type] MultiTenantSpec tenant_id_column_type */ /** - * Constructs a new ShardRoutingRule. + * Constructs a new MultiTenantSpec. * @memberof vschema - * @classdesc Represents a ShardRoutingRule. - * @implements IShardRoutingRule + * @classdesc Represents a MultiTenantSpec. + * @implements IMultiTenantSpec * @constructor - * @param {vschema.IShardRoutingRule=} [properties] Properties to set + * @param {vschema.IMultiTenantSpec=} [properties] Properties to set */ - function ShardRoutingRule(properties) { + function MultiTenantSpec(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -123134,103 +122743,89 @@ export const vschema = $root.vschema = (() => { } /** - * ShardRoutingRule from_keyspace. - * @member {string} from_keyspace - * @memberof vschema.ShardRoutingRule - * @instance - */ - ShardRoutingRule.prototype.from_keyspace = ""; - - /** - * ShardRoutingRule to_keyspace. - * @member {string} to_keyspace - * @memberof vschema.ShardRoutingRule + * MultiTenantSpec tenant_id_column_name. + * @member {string} tenant_id_column_name + * @memberof vschema.MultiTenantSpec * @instance */ - ShardRoutingRule.prototype.to_keyspace = ""; + MultiTenantSpec.prototype.tenant_id_column_name = ""; /** - * ShardRoutingRule shard. - * @member {string} shard - * @memberof vschema.ShardRoutingRule + * MultiTenantSpec tenant_id_column_type. + * @member {query.Type} tenant_id_column_type + * @memberof vschema.MultiTenantSpec * @instance */ - ShardRoutingRule.prototype.shard = ""; + MultiTenantSpec.prototype.tenant_id_column_type = 0; /** - * Creates a new ShardRoutingRule instance using the specified properties. + * Creates a new MultiTenantSpec instance using the specified properties. * @function create - * @memberof vschema.ShardRoutingRule + * @memberof vschema.MultiTenantSpec * @static - * @param {vschema.IShardRoutingRule=} [properties] Properties to set - * @returns {vschema.ShardRoutingRule} ShardRoutingRule instance + * @param {vschema.IMultiTenantSpec=} [properties] Properties to set + * @returns {vschema.MultiTenantSpec} MultiTenantSpec instance */ - ShardRoutingRule.create = function create(properties) { - return new ShardRoutingRule(properties); + MultiTenantSpec.create = function create(properties) { + return new MultiTenantSpec(properties); }; /** - * Encodes the specified ShardRoutingRule message. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. + * Encodes the specified MultiTenantSpec message. Does not implicitly {@link vschema.MultiTenantSpec.verify|verify} messages. * @function encode - * @memberof vschema.ShardRoutingRule + * @memberof vschema.MultiTenantSpec * @static - * @param {vschema.IShardRoutingRule} message ShardRoutingRule message or plain object to encode + * @param {vschema.IMultiTenantSpec} message MultiTenantSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardRoutingRule.encode = function encode(message, writer) { + MultiTenantSpec.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.tenant_id_column_name != null && Object.hasOwnProperty.call(message, "tenant_id_column_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tenant_id_column_name); + if (message.tenant_id_column_type != null && Object.hasOwnProperty.call(message, "tenant_id_column_type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.tenant_id_column_type); return writer; }; /** - * Encodes the specified ShardRoutingRule message, length delimited. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. + * Encodes the specified MultiTenantSpec message, length delimited. Does not implicitly {@link vschema.MultiTenantSpec.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.ShardRoutingRule + * @memberof vschema.MultiTenantSpec * @static - * @param {vschema.IShardRoutingRule} message ShardRoutingRule message or plain object to encode + * @param {vschema.IMultiTenantSpec} message MultiTenantSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardRoutingRule.encodeDelimited = function encodeDelimited(message, writer) { + MultiTenantSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardRoutingRule message from the specified reader or buffer. + * Decodes a MultiTenantSpec message from the specified reader or buffer. * @function decode - * @memberof vschema.ShardRoutingRule + * @memberof vschema.MultiTenantSpec * @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.MultiTenantSpec} MultiTenantSpec * @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) { + MultiTenantSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ShardRoutingRule(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.MultiTenantSpec(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.from_keyspace = reader.string(); + message.tenant_id_column_name = reader.string(); break; } case 2: { - message.to_keyspace = reader.string(); - break; - } - case 3: { - message.shard = reader.string(); + message.tenant_id_column_type = reader.int32(); break; } default: @@ -123242,140 +122837,333 @@ export const vschema = $root.vschema = (() => { }; /** - * Decodes a ShardRoutingRule message from the specified reader or buffer, length delimited. + * Decodes a MultiTenantSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.ShardRoutingRule + * @memberof vschema.MultiTenantSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.ShardRoutingRule} ShardRoutingRule + * @returns {vschema.MultiTenantSpec} MultiTenantSpec * @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) { + MultiTenantSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardRoutingRule message. + * Verifies a MultiTenantSpec message. * @function verify - * @memberof vschema.ShardRoutingRule + * @memberof vschema.MultiTenantSpec * @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) { + MultiTenantSpec.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.tenant_id_column_name != null && message.hasOwnProperty("tenant_id_column_name")) + if (!$util.isString(message.tenant_id_column_name)) + return "tenant_id_column_name: string expected"; + if (message.tenant_id_column_type != null && message.hasOwnProperty("tenant_id_column_type")) + switch (message.tenant_id_column_type) { + default: + return "tenant_id_column_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: + case 2083: + case 2084: + case 2085: + break; + } return null; }; /** - * Creates a ShardRoutingRule message from a plain object. Also converts values to their respective internal types. + * Creates a MultiTenantSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.ShardRoutingRule + * @memberof vschema.MultiTenantSpec * @static * @param {Object.} object Plain object - * @returns {vschema.ShardRoutingRule} ShardRoutingRule + * @returns {vschema.MultiTenantSpec} MultiTenantSpec */ - ShardRoutingRule.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.ShardRoutingRule) + MultiTenantSpec.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.MultiTenantSpec) return object; - let 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); + let message = new $root.vschema.MultiTenantSpec(); + if (object.tenant_id_column_name != null) + message.tenant_id_column_name = String(object.tenant_id_column_name); + switch (object.tenant_id_column_type) { + default: + if (typeof object.tenant_id_column_type === "number") { + message.tenant_id_column_type = object.tenant_id_column_type; + break; + } + break; + case "NULL_TYPE": + case 0: + message.tenant_id_column_type = 0; + break; + case "INT8": + case 257: + message.tenant_id_column_type = 257; + break; + case "UINT8": + case 770: + message.tenant_id_column_type = 770; + break; + case "INT16": + case 259: + message.tenant_id_column_type = 259; + break; + case "UINT16": + case 772: + message.tenant_id_column_type = 772; + break; + case "INT24": + case 261: + message.tenant_id_column_type = 261; + break; + case "UINT24": + case 774: + message.tenant_id_column_type = 774; + break; + case "INT32": + case 263: + message.tenant_id_column_type = 263; + break; + case "UINT32": + case 776: + message.tenant_id_column_type = 776; + break; + case "INT64": + case 265: + message.tenant_id_column_type = 265; + break; + case "UINT64": + case 778: + message.tenant_id_column_type = 778; + break; + case "FLOAT32": + case 1035: + message.tenant_id_column_type = 1035; + break; + case "FLOAT64": + case 1036: + message.tenant_id_column_type = 1036; + break; + case "TIMESTAMP": + case 2061: + message.tenant_id_column_type = 2061; + break; + case "DATE": + case 2062: + message.tenant_id_column_type = 2062; + break; + case "TIME": + case 2063: + message.tenant_id_column_type = 2063; + break; + case "DATETIME": + case 2064: + message.tenant_id_column_type = 2064; + break; + case "YEAR": + case 785: + message.tenant_id_column_type = 785; + break; + case "DECIMAL": + case 18: + message.tenant_id_column_type = 18; + break; + case "TEXT": + case 6163: + message.tenant_id_column_type = 6163; + break; + case "BLOB": + case 10260: + message.tenant_id_column_type = 10260; + break; + case "VARCHAR": + case 6165: + message.tenant_id_column_type = 6165; + break; + case "VARBINARY": + case 10262: + message.tenant_id_column_type = 10262; + break; + case "CHAR": + case 6167: + message.tenant_id_column_type = 6167; + break; + case "BINARY": + case 10264: + message.tenant_id_column_type = 10264; + break; + case "BIT": + case 2073: + message.tenant_id_column_type = 2073; + break; + case "ENUM": + case 2074: + message.tenant_id_column_type = 2074; + break; + case "SET": + case 2075: + message.tenant_id_column_type = 2075; + break; + case "TUPLE": + case 28: + message.tenant_id_column_type = 28; + break; + case "GEOMETRY": + case 2077: + message.tenant_id_column_type = 2077; + break; + case "JSON": + case 2078: + message.tenant_id_column_type = 2078; + break; + case "EXPRESSION": + case 31: + message.tenant_id_column_type = 31; + break; + case "HEXNUM": + case 4128: + message.tenant_id_column_type = 4128; + break; + case "HEXVAL": + case 4129: + message.tenant_id_column_type = 4129; + break; + case "BITNUM": + case 4130: + message.tenant_id_column_type = 4130; + break; + case "VECTOR": + case 2083: + message.tenant_id_column_type = 2083; + break; + case "RAW": + case 2084: + message.tenant_id_column_type = 2084; + break; + case "ROW_TUPLE": + case 2085: + message.tenant_id_column_type = 2085; + break; + } return message; }; /** - * Creates a plain object from a ShardRoutingRule message. Also converts values to other types if specified. + * Creates a plain object from a MultiTenantSpec message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.ShardRoutingRule + * @memberof vschema.MultiTenantSpec * @static - * @param {vschema.ShardRoutingRule} message ShardRoutingRule + * @param {vschema.MultiTenantSpec} message MultiTenantSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardRoutingRule.toObject = function toObject(message, options) { + MultiTenantSpec.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.from_keyspace = ""; - object.to_keyspace = ""; - object.shard = ""; + object.tenant_id_column_name = ""; + object.tenant_id_column_type = options.enums === String ? "NULL_TYPE" : 0; } - 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; + if (message.tenant_id_column_name != null && message.hasOwnProperty("tenant_id_column_name")) + object.tenant_id_column_name = message.tenant_id_column_name; + if (message.tenant_id_column_type != null && message.hasOwnProperty("tenant_id_column_type")) + object.tenant_id_column_type = options.enums === String ? $root.query.Type[message.tenant_id_column_type] === undefined ? message.tenant_id_column_type : $root.query.Type[message.tenant_id_column_type] : message.tenant_id_column_type; return object; }; /** - * Converts this ShardRoutingRule to JSON. + * Converts this MultiTenantSpec to JSON. * @function toJSON - * @memberof vschema.ShardRoutingRule + * @memberof vschema.MultiTenantSpec * @instance * @returns {Object.} JSON object */ - ShardRoutingRule.prototype.toJSON = function toJSON() { + MultiTenantSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardRoutingRule + * Gets the default type url for MultiTenantSpec * @function getTypeUrl - * @memberof vschema.ShardRoutingRule + * @memberof vschema.MultiTenantSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardRoutingRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MultiTenantSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.ShardRoutingRule"; + return typeUrlPrefix + "/vschema.MultiTenantSpec"; }; - return ShardRoutingRule; + return MultiTenantSpec; })(); - vschema.KeyspaceRoutingRules = (function() { + vschema.Vindex = (function() { /** - * Properties of a KeyspaceRoutingRules. + * Properties of a Vindex. * @memberof vschema - * @interface IKeyspaceRoutingRules - * @property {Array.|null} [rules] KeyspaceRoutingRules rules + * @interface IVindex + * @property {string|null} [type] Vindex type + * @property {Object.|null} [params] Vindex params + * @property {string|null} [owner] Vindex owner */ /** - * Constructs a new KeyspaceRoutingRules. + * Constructs a new Vindex. * @memberof vschema - * @classdesc Represents a KeyspaceRoutingRules. - * @implements IKeyspaceRoutingRules + * @classdesc Represents a Vindex. + * @implements IVindex * @constructor - * @param {vschema.IKeyspaceRoutingRules=} [properties] Properties to set + * @param {vschema.IVindex=} [properties] Properties to set */ - function KeyspaceRoutingRules(properties) { - this.rules = []; + function Vindex(properties) { + this.params = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -123383,78 +123171,123 @@ export const vschema = $root.vschema = (() => { } /** - * KeyspaceRoutingRules rules. - * @member {Array.} rules - * @memberof vschema.KeyspaceRoutingRules + * Vindex type. + * @member {string} type + * @memberof vschema.Vindex * @instance */ - KeyspaceRoutingRules.prototype.rules = $util.emptyArray; + Vindex.prototype.type = ""; /** - * Creates a new KeyspaceRoutingRules instance using the specified properties. + * Vindex params. + * @member {Object.} params + * @memberof vschema.Vindex + * @instance + */ + Vindex.prototype.params = $util.emptyObject; + + /** + * Vindex owner. + * @member {string} owner + * @memberof vschema.Vindex + * @instance + */ + Vindex.prototype.owner = ""; + + /** + * Creates a new Vindex instance using the specified properties. * @function create - * @memberof vschema.KeyspaceRoutingRules + * @memberof vschema.Vindex * @static - * @param {vschema.IKeyspaceRoutingRules=} [properties] Properties to set - * @returns {vschema.KeyspaceRoutingRules} KeyspaceRoutingRules instance + * @param {vschema.IVindex=} [properties] Properties to set + * @returns {vschema.Vindex} Vindex instance */ - KeyspaceRoutingRules.create = function create(properties) { - return new KeyspaceRoutingRules(properties); + Vindex.create = function create(properties) { + return new Vindex(properties); }; /** - * Encodes the specified KeyspaceRoutingRules message. Does not implicitly {@link vschema.KeyspaceRoutingRules.verify|verify} messages. + * Encodes the specified Vindex message. Does not implicitly {@link vschema.Vindex.verify|verify} messages. * @function encode - * @memberof vschema.KeyspaceRoutingRules + * @memberof vschema.Vindex * @static - * @param {vschema.IKeyspaceRoutingRules} message KeyspaceRoutingRules 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 */ - KeyspaceRoutingRules.encode = function encode(message, writer) { + Vindex.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (let i = 0; i < message.rules.length; ++i) - $root.vschema.KeyspaceRoutingRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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 (let 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 KeyspaceRoutingRules message, length delimited. Does not implicitly {@link vschema.KeyspaceRoutingRules.verify|verify} messages. + * Encodes the specified Vindex message, length delimited. Does not implicitly {@link vschema.Vindex.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.KeyspaceRoutingRules + * @memberof vschema.Vindex * @static - * @param {vschema.IKeyspaceRoutingRules} message KeyspaceRoutingRules 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 */ - KeyspaceRoutingRules.encodeDelimited = function encodeDelimited(message, writer) { + Vindex.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a KeyspaceRoutingRules message from the specified reader or buffer. + * Decodes a Vindex message from the specified reader or buffer. * @function decode - * @memberof vschema.KeyspaceRoutingRules + * @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.KeyspaceRoutingRules} KeyspaceRoutingRules + * @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 */ - KeyspaceRoutingRules.decode = function decode(reader, length) { + Vindex.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.KeyspaceRoutingRules(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Vindex(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.vschema.KeyspaceRoutingRule.decode(reader, reader.uint32())); + message.type = reader.string(); + break; + } + case 2: { + if (message.params === $util.emptyObject) + message.params = {}; + 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.params[key] = value; + break; + } + case 3: { + message.owner = reader.string(); break; } default: @@ -123466,140 +123299,162 @@ export const vschema = $root.vschema = (() => { }; /** - * Decodes a KeyspaceRoutingRules 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.KeyspaceRoutingRules + * @memberof vschema.Vindex * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.KeyspaceRoutingRules} KeyspaceRoutingRules + * @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 */ - KeyspaceRoutingRules.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 KeyspaceRoutingRules message. + * Verifies a Vindex message. * @function verify - * @memberof vschema.KeyspaceRoutingRules + * @memberof vschema.Vindex * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KeyspaceRoutingRules.verify = function verify(message) { + Vindex.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 (let i = 0; i < message.rules.length; ++i) { - let error = $root.vschema.KeyspaceRoutingRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } + 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"; + let key = Object.keys(message.params); + for (let 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 KeyspaceRoutingRules 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.KeyspaceRoutingRules + * @memberof vschema.Vindex * @static * @param {Object.} object Plain object - * @returns {vschema.KeyspaceRoutingRules} KeyspaceRoutingRules + * @returns {vschema.Vindex} Vindex */ - KeyspaceRoutingRules.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.KeyspaceRoutingRules) + Vindex.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Vindex) return object; - let message = new $root.vschema.KeyspaceRoutingRules(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".vschema.KeyspaceRoutingRules.rules: array expected"); - message.rules = []; - for (let i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".vschema.KeyspaceRoutingRules.rules: object expected"); - message.rules[i] = $root.vschema.KeyspaceRoutingRule.fromObject(object.rules[i]); - } + let 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 (let 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 KeyspaceRoutingRules 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.KeyspaceRoutingRules + * @memberof vschema.Vindex * @static - * @param {vschema.KeyspaceRoutingRules} message KeyspaceRoutingRules + * @param {vschema.Vindex} message Vindex * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KeyspaceRoutingRules.toObject = function toObject(message, options) { + Vindex.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (message.rules && message.rules.length) { - object.rules = []; - for (let j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.vschema.KeyspaceRoutingRule.toObject(message.rules[j], options); + 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; + let keys2; + if (message.params && (keys2 = Object.keys(message.params)).length) { + object.params = {}; + for (let 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 KeyspaceRoutingRules to JSON. + * Converts this Vindex to JSON. * @function toJSON - * @memberof vschema.KeyspaceRoutingRules + * @memberof vschema.Vindex * @instance * @returns {Object.} JSON object */ - KeyspaceRoutingRules.prototype.toJSON = function toJSON() { + Vindex.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for KeyspaceRoutingRules + * Gets the default type url for Vindex * @function getTypeUrl - * @memberof vschema.KeyspaceRoutingRules + * @memberof vschema.Vindex * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - KeyspaceRoutingRules.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Vindex.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.KeyspaceRoutingRules"; + return typeUrlPrefix + "/vschema.Vindex"; }; - return KeyspaceRoutingRules; + return Vindex; })(); - vschema.KeyspaceRoutingRule = (function() { + vschema.Table = (function() { /** - * Properties of a KeyspaceRoutingRule. + * Properties of a Table. * @memberof vschema - * @interface IKeyspaceRoutingRule - * @property {string|null} [from_keyspace] KeyspaceRoutingRule from_keyspace - * @property {string|null} [to_keyspace] KeyspaceRoutingRule to_keyspace + * @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 + * @property {string|null} [source] Table source */ /** - * Constructs a new KeyspaceRoutingRule. + * Constructs a new Table. * @memberof vschema - * @classdesc Represents a KeyspaceRoutingRule. - * @implements IKeyspaceRoutingRule + * @classdesc Represents a Table. + * @implements ITable * @constructor - * @param {vschema.IKeyspaceRoutingRule=} [properties] Properties to set + * @param {vschema.ITable=} [properties] Properties to set */ - function KeyspaceRoutingRule(properties) { + function Table(properties) { + this.column_vindexes = []; + this.columns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -123607,89 +123462,165 @@ export const vschema = $root.vschema = (() => { } /** - * KeyspaceRoutingRule from_keyspace. - * @member {string} from_keyspace - * @memberof vschema.KeyspaceRoutingRule + * Table type. + * @member {string} type + * @memberof vschema.Table * @instance */ - KeyspaceRoutingRule.prototype.from_keyspace = ""; + Table.prototype.type = ""; /** - * KeyspaceRoutingRule to_keyspace. - * @member {string} to_keyspace - * @memberof vschema.KeyspaceRoutingRule + * Table column_vindexes. + * @member {Array.} column_vindexes + * @memberof vschema.Table * @instance */ - KeyspaceRoutingRule.prototype.to_keyspace = ""; + Table.prototype.column_vindexes = $util.emptyArray; /** - * Creates a new KeyspaceRoutingRule 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; + + /** + * Table source. + * @member {string} source + * @memberof vschema.Table + * @instance + */ + Table.prototype.source = ""; + + /** + * Creates a new Table instance using the specified properties. * @function create - * @memberof vschema.KeyspaceRoutingRule + * @memberof vschema.Table * @static - * @param {vschema.IKeyspaceRoutingRule=} [properties] Properties to set - * @returns {vschema.KeyspaceRoutingRule} KeyspaceRoutingRule instance + * @param {vschema.ITable=} [properties] Properties to set + * @returns {vschema.Table} Table instance */ - KeyspaceRoutingRule.create = function create(properties) { - return new KeyspaceRoutingRule(properties); + Table.create = function create(properties) { + return new Table(properties); }; /** - * Encodes the specified KeyspaceRoutingRule message. Does not implicitly {@link vschema.KeyspaceRoutingRule.verify|verify} messages. + * Encodes the specified Table message. Does not implicitly {@link vschema.Table.verify|verify} messages. * @function encode - * @memberof vschema.KeyspaceRoutingRule + * @memberof vschema.Table * @static - * @param {vschema.IKeyspaceRoutingRule} message KeyspaceRoutingRule 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 */ - KeyspaceRoutingRule.encode = function encode(message, writer) { + Table.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.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 (let 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 (let 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.source != null && Object.hasOwnProperty.call(message, "source")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.source); return writer; }; /** - * Encodes the specified KeyspaceRoutingRule message, length delimited. Does not implicitly {@link vschema.KeyspaceRoutingRule.verify|verify} messages. + * Encodes the specified Table message, length delimited. Does not implicitly {@link vschema.Table.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.KeyspaceRoutingRule + * @memberof vschema.Table * @static - * @param {vschema.IKeyspaceRoutingRule} message KeyspaceRoutingRule 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 */ - KeyspaceRoutingRule.encodeDelimited = function encodeDelimited(message, writer) { + Table.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a KeyspaceRoutingRule message from the specified reader or buffer. + * Decodes a Table message from the specified reader or buffer. * @function decode - * @memberof vschema.KeyspaceRoutingRule + * @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.KeyspaceRoutingRule} KeyspaceRoutingRule + * @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 */ - KeyspaceRoutingRule.decode = function decode(reader, length) { + Table.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.KeyspaceRoutingRule(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Table(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.from_keyspace = reader.string(); + message.type = reader.string(); break; } case 2: { - message.to_keyspace = 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; + } + case 7: { + message.source = reader.string(); break; } default: @@ -123701,132 +123632,215 @@ export const vschema = $root.vschema = (() => { }; /** - * Decodes a KeyspaceRoutingRule 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.KeyspaceRoutingRule + * @memberof vschema.Table * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.KeyspaceRoutingRule} KeyspaceRoutingRule + * @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 */ - KeyspaceRoutingRule.decodeDelimited = function decodeDelimited(reader) { + Table.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a KeyspaceRoutingRule message. + * Verifies a Table message. * @function verify - * @memberof vschema.KeyspaceRoutingRule + * @memberof vschema.Table * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KeyspaceRoutingRule.verify = function verify(message) { + Table.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.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 (let i = 0; i < message.column_vindexes.length; ++i) { + let error = $root.vschema.ColumnVindex.verify(message.column_vindexes[i]); + if (error) + return "column_vindexes." + error; + } + } + if (message.auto_increment != null && message.hasOwnProperty("auto_increment")) { + let 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 (let i = 0; i < message.columns.length; ++i) { + let error = $root.vschema.Column.verify(message.columns[i]); + if (error) + return "columns." + error; + } + } + if (message.pinned != null && message.hasOwnProperty("pinned")) + if (!$util.isString(message.pinned)) + return "pinned: string expected"; + if (message.column_list_authoritative != null && message.hasOwnProperty("column_list_authoritative")) + if (typeof message.column_list_authoritative !== "boolean") + return "column_list_authoritative: boolean expected"; + if (message.source != null && message.hasOwnProperty("source")) + if (!$util.isString(message.source)) + return "source: string expected"; return null; }; /** - * Creates a KeyspaceRoutingRule 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.KeyspaceRoutingRule + * @memberof vschema.Table * @static * @param {Object.} object Plain object - * @returns {vschema.KeyspaceRoutingRule} KeyspaceRoutingRule + * @returns {vschema.Table} Table */ - KeyspaceRoutingRule.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.KeyspaceRoutingRule) + Table.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Table) return object; - let message = new $root.vschema.KeyspaceRoutingRule(); - if (object.from_keyspace != null) - message.from_keyspace = String(object.from_keyspace); - if (object.to_keyspace != null) - message.to_keyspace = String(object.to_keyspace); + let 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 (let i = 0; i < object.column_vindexes.length; ++i) { + if (typeof object.column_vindexes[i] !== "object") + throw TypeError(".vschema.Table.column_vindexes: object expected"); + message.column_vindexes[i] = $root.vschema.ColumnVindex.fromObject(object.column_vindexes[i]); + } + } + if (object.auto_increment != null) { + if (typeof object.auto_increment !== "object") + throw TypeError(".vschema.Table.auto_increment: object expected"); + message.auto_increment = $root.vschema.AutoIncrement.fromObject(object.auto_increment); + } + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".vschema.Table.columns: array expected"); + message.columns = []; + for (let 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); + if (object.source != null) + message.source = String(object.source); return message; }; /** - * Creates a plain object from a KeyspaceRoutingRule message. Also converts values to other types if specified. + * Creates a plain object from a Table message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.KeyspaceRoutingRule + * @memberof vschema.Table * @static - * @param {vschema.KeyspaceRoutingRule} message KeyspaceRoutingRule + * @param {vschema.Table} message Table * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KeyspaceRoutingRule.toObject = function toObject(message, options) { + Table.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.column_vindexes = []; + object.columns = []; + } if (options.defaults) { - object.from_keyspace = ""; - object.to_keyspace = ""; + object.type = ""; + object.auto_increment = null; + object.pinned = ""; + object.column_list_authoritative = false; + object.source = ""; } - 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.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.column_vindexes && message.column_vindexes.length) { + object.column_vindexes = []; + for (let 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 (let 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; + if (message.source != null && message.hasOwnProperty("source")) + object.source = message.source; return object; }; /** - * Converts this KeyspaceRoutingRule to JSON. + * Converts this Table to JSON. * @function toJSON - * @memberof vschema.KeyspaceRoutingRule + * @memberof vschema.Table * @instance * @returns {Object.} JSON object */ - KeyspaceRoutingRule.prototype.toJSON = function toJSON() { + Table.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for KeyspaceRoutingRule + * Gets the default type url for Table * @function getTypeUrl - * @memberof vschema.KeyspaceRoutingRule + * @memberof vschema.Table * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - KeyspaceRoutingRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Table.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.KeyspaceRoutingRule"; + return typeUrlPrefix + "/vschema.Table"; }; - return KeyspaceRoutingRule; + return Table; })(); - vschema.MirrorRules = (function() { + vschema.ColumnVindex = (function() { /** - * Properties of a MirrorRules. + * Properties of a ColumnVindex. * @memberof vschema - * @interface IMirrorRules - * @property {Array.|null} [rules] MirrorRules rules + * @interface IColumnVindex + * @property {string|null} [column] ColumnVindex column + * @property {string|null} [name] ColumnVindex name + * @property {Array.|null} [columns] ColumnVindex columns */ /** - * Constructs a new MirrorRules. + * Constructs a new ColumnVindex. * @memberof vschema - * @classdesc Represents a MirrorRules. - * @implements IMirrorRules + * @classdesc Represents a ColumnVindex. + * @implements IColumnVindex * @constructor - * @param {vschema.IMirrorRules=} [properties] Properties to set + * @param {vschema.IColumnVindex=} [properties] Properties to set */ - function MirrorRules(properties) { - this.rules = []; + function ColumnVindex(properties) { + this.columns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -123834,78 +123848,106 @@ export const vschema = $root.vschema = (() => { } /** - * MirrorRules rules. - * @member {Array.} rules - * @memberof vschema.MirrorRules + * ColumnVindex column. + * @member {string} column + * @memberof vschema.ColumnVindex * @instance */ - MirrorRules.prototype.rules = $util.emptyArray; + ColumnVindex.prototype.column = ""; /** - * Creates a new MirrorRules instance using the specified properties. + * ColumnVindex name. + * @member {string} name + * @memberof vschema.ColumnVindex + * @instance + */ + ColumnVindex.prototype.name = ""; + + /** + * ColumnVindex columns. + * @member {Array.} columns + * @memberof vschema.ColumnVindex + * @instance + */ + ColumnVindex.prototype.columns = $util.emptyArray; + + /** + * Creates a new ColumnVindex instance using the specified properties. * @function create - * @memberof vschema.MirrorRules + * @memberof vschema.ColumnVindex * @static - * @param {vschema.IMirrorRules=} [properties] Properties to set - * @returns {vschema.MirrorRules} MirrorRules instance + * @param {vschema.IColumnVindex=} [properties] Properties to set + * @returns {vschema.ColumnVindex} ColumnVindex instance */ - MirrorRules.create = function create(properties) { - return new MirrorRules(properties); + ColumnVindex.create = function create(properties) { + return new ColumnVindex(properties); }; /** - * Encodes the specified MirrorRules message. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages. + * Encodes the specified ColumnVindex message. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. * @function encode - * @memberof vschema.MirrorRules + * @memberof vschema.ColumnVindex * @static - * @param {vschema.IMirrorRules} message MirrorRules 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 */ - MirrorRules.encode = function encode(message, writer) { + ColumnVindex.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (let i = 0; i < message.rules.length; ++i) - $root.vschema.MirrorRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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 (let i = 0; i < message.columns.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.columns[i]); return writer; }; /** - * Encodes the specified MirrorRules message, length delimited. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages. + * Encodes the specified ColumnVindex message, length delimited. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.MirrorRules + * @memberof vschema.ColumnVindex * @static - * @param {vschema.IMirrorRules} message MirrorRules 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 */ - MirrorRules.encodeDelimited = function encodeDelimited(message, writer) { + ColumnVindex.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MirrorRules message from the specified reader or buffer. + * Decodes a ColumnVindex message from the specified reader or buffer. * @function decode - * @memberof vschema.MirrorRules + * @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.MirrorRules} MirrorRules + * @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 */ - MirrorRules.decode = function decode(reader, length) { + ColumnVindex.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.MirrorRules(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ColumnVindex(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.vschema.MirrorRule.decode(reader, reader.uint32())); + message.column = reader.string(); + break; + } + case 2: { + message.name = reader.string(); + break; + } + case 3: { + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push(reader.string()); break; } default: @@ -123917,141 +123959,153 @@ export const vschema = $root.vschema = (() => { }; /** - * Decodes a MirrorRules 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.MirrorRules + * @memberof vschema.ColumnVindex * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.MirrorRules} MirrorRules + * @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 */ - MirrorRules.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 MirrorRules message. + * Verifies a ColumnVindex message. * @function verify - * @memberof vschema.MirrorRules + * @memberof vschema.ColumnVindex * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MirrorRules.verify = function verify(message) { + ColumnVindex.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 (let i = 0; i < message.rules.length; ++i) { - let error = $root.vschema.MirrorRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } + 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 (let i = 0; i < message.columns.length; ++i) + if (!$util.isString(message.columns[i])) + return "columns: string[] expected"; } return null; }; /** - * Creates a MirrorRules 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.MirrorRules + * @memberof vschema.ColumnVindex * @static * @param {Object.} object Plain object - * @returns {vschema.MirrorRules} MirrorRules + * @returns {vschema.ColumnVindex} ColumnVindex */ - MirrorRules.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.MirrorRules) + ColumnVindex.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.ColumnVindex) return object; - let message = new $root.vschema.MirrorRules(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".vschema.MirrorRules.rules: array expected"); - message.rules = []; - for (let i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".vschema.MirrorRules.rules: object expected"); - message.rules[i] = $root.vschema.MirrorRule.fromObject(object.rules[i]); - } + let 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 (let i = 0; i < object.columns.length; ++i) + message.columns[i] = String(object.columns[i]); } return message; }; /** - * Creates a plain object from a MirrorRules 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.MirrorRules + * @memberof vschema.ColumnVindex * @static - * @param {vschema.MirrorRules} message MirrorRules + * @param {vschema.ColumnVindex} message ColumnVindex * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MirrorRules.toObject = function toObject(message, options) { + ColumnVindex.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.rules = []; - if (message.rules && message.rules.length) { - object.rules = []; - for (let j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.vschema.MirrorRule.toObject(message.rules[j], options); + object.columns = []; + if (options.defaults) { + object.column = ""; + object.name = ""; + } + if (message.column != null && message.hasOwnProperty("column")) + object.column = message.column; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.columns && message.columns.length) { + object.columns = []; + for (let j = 0; j < message.columns.length; ++j) + object.columns[j] = message.columns[j]; } return object; }; /** - * Converts this MirrorRules to JSON. + * Converts this ColumnVindex to JSON. * @function toJSON - * @memberof vschema.MirrorRules + * @memberof vschema.ColumnVindex * @instance * @returns {Object.} JSON object */ - MirrorRules.prototype.toJSON = function toJSON() { + ColumnVindex.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MirrorRules + * Gets the default type url for ColumnVindex * @function getTypeUrl - * @memberof vschema.MirrorRules + * @memberof vschema.ColumnVindex * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MirrorRules.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ColumnVindex.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.MirrorRules"; + return typeUrlPrefix + "/vschema.ColumnVindex"; }; - return MirrorRules; + return ColumnVindex; })(); - vschema.MirrorRule = (function() { + vschema.AutoIncrement = (function() { /** - * Properties of a MirrorRule. + * Properties of an AutoIncrement. * @memberof vschema - * @interface IMirrorRule - * @property {string|null} [from_table] MirrorRule from_table - * @property {string|null} [to_table] MirrorRule to_table - * @property {number|null} [percent] MirrorRule percent + * @interface IAutoIncrement + * @property {string|null} [column] AutoIncrement column + * @property {string|null} [sequence] AutoIncrement sequence */ /** - * Constructs a new MirrorRule. + * Constructs a new AutoIncrement. * @memberof vschema - * @classdesc Represents a MirrorRule. - * @implements IMirrorRule + * @classdesc Represents an AutoIncrement. + * @implements IAutoIncrement * @constructor - * @param {vschema.IMirrorRule=} [properties] Properties to set + * @param {vschema.IAutoIncrement=} [properties] Properties to set */ - function MirrorRule(properties) { + function AutoIncrement(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -124059,103 +124113,89 @@ export const vschema = $root.vschema = (() => { } /** - * MirrorRule from_table. - * @member {string} from_table - * @memberof vschema.MirrorRule - * @instance - */ - MirrorRule.prototype.from_table = ""; - - /** - * MirrorRule to_table. - * @member {string} to_table - * @memberof vschema.MirrorRule + * AutoIncrement column. + * @member {string} column + * @memberof vschema.AutoIncrement * @instance */ - MirrorRule.prototype.to_table = ""; + AutoIncrement.prototype.column = ""; /** - * MirrorRule percent. - * @member {number} percent - * @memberof vschema.MirrorRule + * AutoIncrement sequence. + * @member {string} sequence + * @memberof vschema.AutoIncrement * @instance */ - MirrorRule.prototype.percent = 0; + AutoIncrement.prototype.sequence = ""; /** - * Creates a new MirrorRule instance using the specified properties. + * Creates a new AutoIncrement instance using the specified properties. * @function create - * @memberof vschema.MirrorRule + * @memberof vschema.AutoIncrement * @static - * @param {vschema.IMirrorRule=} [properties] Properties to set - * @returns {vschema.MirrorRule} MirrorRule instance + * @param {vschema.IAutoIncrement=} [properties] Properties to set + * @returns {vschema.AutoIncrement} AutoIncrement instance */ - MirrorRule.create = function create(properties) { - return new MirrorRule(properties); + AutoIncrement.create = function create(properties) { + return new AutoIncrement(properties); }; /** - * Encodes the specified MirrorRule message. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages. + * Encodes the specified AutoIncrement message. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. * @function encode - * @memberof vschema.MirrorRule + * @memberof vschema.AutoIncrement * @static - * @param {vschema.IMirrorRule} message MirrorRule 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 */ - MirrorRule.encode = function encode(message, writer) { + AutoIncrement.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_table != null && Object.hasOwnProperty.call(message, "to_table")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_table); - if (message.percent != null && Object.hasOwnProperty.call(message, "percent")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.percent); + 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 MirrorRule message, length delimited. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages. + * Encodes the specified AutoIncrement message, length delimited. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.MirrorRule + * @memberof vschema.AutoIncrement * @static - * @param {vschema.IMirrorRule} message MirrorRule 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 */ - MirrorRule.encodeDelimited = function encodeDelimited(message, writer) { + AutoIncrement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MirrorRule message from the specified reader or buffer. + * Decodes an AutoIncrement message from the specified reader or buffer. * @function decode - * @memberof vschema.MirrorRule + * @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.MirrorRule} MirrorRule + * @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 */ - MirrorRule.decode = function decode(reader, length) { + AutoIncrement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.MirrorRule(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.AutoIncrement(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.from_table = reader.string(); + message.column = reader.string(); break; } case 2: { - message.to_table = reader.string(); - break; - } - case 3: { - message.percent = reader.float(); + message.sequence = reader.string(); break; } default: @@ -124167,153 +124207,140 @@ export const vschema = $root.vschema = (() => { }; /** - * Decodes a MirrorRule 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.MirrorRule + * @memberof vschema.AutoIncrement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.MirrorRule} MirrorRule + * @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 */ - MirrorRule.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 MirrorRule message. + * Verifies an AutoIncrement message. * @function verify - * @memberof vschema.MirrorRule + * @memberof vschema.AutoIncrement * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MirrorRule.verify = function verify(message) { + AutoIncrement.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_table != null && message.hasOwnProperty("to_table")) - if (!$util.isString(message.to_table)) - return "to_table: string expected"; - if (message.percent != null && message.hasOwnProperty("percent")) - if (typeof message.percent !== "number") - return "percent: number expected"; + if (message.column != null && message.hasOwnProperty("column")) + if (!$util.isString(message.column)) + return "column: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isString(message.sequence)) + return "sequence: string expected"; return null; }; /** - * Creates a MirrorRule 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.MirrorRule + * @memberof vschema.AutoIncrement * @static * @param {Object.} object Plain object - * @returns {vschema.MirrorRule} MirrorRule + * @returns {vschema.AutoIncrement} AutoIncrement */ - MirrorRule.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.MirrorRule) + AutoIncrement.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.AutoIncrement) return object; - let message = new $root.vschema.MirrorRule(); - if (object.from_table != null) - message.from_table = String(object.from_table); - if (object.to_table != null) - message.to_table = String(object.to_table); - if (object.percent != null) - message.percent = Number(object.percent); + let 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 MirrorRule 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.MirrorRule + * @memberof vschema.AutoIncrement * @static - * @param {vschema.MirrorRule} message MirrorRule + * @param {vschema.AutoIncrement} message AutoIncrement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MirrorRule.toObject = function toObject(message, options) { + AutoIncrement.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.from_table = ""; - object.to_table = ""; - object.percent = 0; + object.column = ""; + object.sequence = ""; } - if (message.from_table != null && message.hasOwnProperty("from_table")) - object.from_table = message.from_table; - if (message.to_table != null && message.hasOwnProperty("to_table")) - object.to_table = message.to_table; - if (message.percent != null && message.hasOwnProperty("percent")) - object.percent = options.json && !isFinite(message.percent) ? String(message.percent) : message.percent; + 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 MirrorRule to JSON. + * Converts this AutoIncrement to JSON. * @function toJSON - * @memberof vschema.MirrorRule + * @memberof vschema.AutoIncrement * @instance * @returns {Object.} JSON object */ - MirrorRule.prototype.toJSON = function toJSON() { + AutoIncrement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MirrorRule + * Gets the default type url for AutoIncrement * @function getTypeUrl - * @memberof vschema.MirrorRule + * @memberof vschema.AutoIncrement * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MirrorRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AutoIncrement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vschema.MirrorRule"; + return typeUrlPrefix + "/vschema.AutoIncrement"; }; - return MirrorRule; + return AutoIncrement; })(); - return vschema; -})(); - -export const vtctldata = $root.vtctldata = (() => { - - /** - * Namespace vtctldata. - * @exports vtctldata - * @namespace - */ - const vtctldata = {}; - - vtctldata.ExecuteVtctlCommandRequest = (function() { + vschema.Column = (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 Column. + * @memberof vschema + * @interface IColumn + * @property {string|null} [name] Column name + * @property {query.Type|null} [type] Column type + * @property {boolean|null} [invisible] Column invisible + * @property {string|null} ["default"] Column default + * @property {string|null} [collation_name] Column collation_name + * @property {number|null} [size] Column size + * @property {number|null} [scale] Column scale + * @property {boolean|null} [nullable] Column nullable + * @property {Array.|null} [values] Column values */ /** - * Constructs a new ExecuteVtctlCommandRequest. - * @memberof vtctldata - * @classdesc Represents an ExecuteVtctlCommandRequest. - * @implements IExecuteVtctlCommandRequest + * Constructs a new Column. + * @memberof vschema + * @classdesc Represents a Column. + * @implements IColumn * @constructor - * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set + * @param {vschema.IColumn=} [properties] Properties to set */ - function ExecuteVtctlCommandRequest(properties) { - this.args = []; + function Column(properties) { + this.values = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -124321,92 +124348,199 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ExecuteVtctlCommandRequest args. - * @member {Array.} args - * @memberof vtctldata.ExecuteVtctlCommandRequest + * Column name. + * @member {string} name + * @memberof vschema.Column * @instance */ - ExecuteVtctlCommandRequest.prototype.args = $util.emptyArray; + Column.prototype.name = ""; /** - * ExecuteVtctlCommandRequest action_timeout. - * @member {number|Long} action_timeout - * @memberof vtctldata.ExecuteVtctlCommandRequest + * Column type. + * @member {query.Type} type + * @memberof vschema.Column * @instance */ - ExecuteVtctlCommandRequest.prototype.action_timeout = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Column.prototype.type = 0; /** - * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. - * @function create - * @memberof vtctldata.ExecuteVtctlCommandRequest - * @static - * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest instance - */ - ExecuteVtctlCommandRequest.create = function create(properties) { - return new ExecuteVtctlCommandRequest(properties); + * Column invisible. + * @member {boolean} invisible + * @memberof vschema.Column + * @instance + */ + Column.prototype.invisible = false; + + /** + * Column default. + * @member {string} default + * @memberof vschema.Column + * @instance + */ + Column.prototype["default"] = ""; + + /** + * Column collation_name. + * @member {string} collation_name + * @memberof vschema.Column + * @instance + */ + Column.prototype.collation_name = ""; + + /** + * Column size. + * @member {number} size + * @memberof vschema.Column + * @instance + */ + Column.prototype.size = 0; + + /** + * Column scale. + * @member {number} scale + * @memberof vschema.Column + * @instance + */ + Column.prototype.scale = 0; + + /** + * Column nullable. + * @member {boolean|null|undefined} nullable + * @memberof vschema.Column + * @instance + */ + Column.prototype.nullable = null; + + /** + * Column values. + * @member {Array.} values + * @memberof vschema.Column + * @instance + */ + Column.prototype.values = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(Column.prototype, "_nullable", { + get: $util.oneOfGetter($oneOfFields = ["nullable"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Column instance using the specified properties. + * @function create + * @memberof vschema.Column + * @static + * @param {vschema.IColumn=} [properties] Properties to set + * @returns {vschema.Column} Column instance + */ + Column.create = function create(properties) { + return new Column(properties); }; /** - * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * Encodes the specified Column message. Does not implicitly {@link vschema.Column.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.Column * @static - * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest 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 */ - ExecuteVtctlCommandRequest.encode = function encode(message, writer) { + Column.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.args != null && message.args.length) - for (let 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.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.invisible != null && Object.hasOwnProperty.call(message, "invisible")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.invisible); + if (message["default"] != null && Object.hasOwnProperty.call(message, "default")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message["default"]); + if (message.collation_name != null && Object.hasOwnProperty.call(message, "collation_name")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.collation_name); + if (message.size != null && Object.hasOwnProperty.call(message, "size")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.size); + if (message.scale != null && Object.hasOwnProperty.call(message, "scale")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.scale); + if (message.nullable != null && Object.hasOwnProperty.call(message, "nullable")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.nullable); + if (message.values != null && message.values.length) + for (let i = 0; i < message.values.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.values[i]); return writer; }; /** - * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * Encodes the specified Column message, length delimited. Does not implicitly {@link vschema.Column.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.Column * @static - * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest 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 */ - ExecuteVtctlCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { + Column.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. + * Decodes a Column message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.Column * @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.Column} Column * @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) { + Column.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Column(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.args && message.args.length)) - message.args = []; - message.args.push(reader.string()); + message.name = reader.string(); break; } case 2: { - message.action_timeout = reader.int64(); + message.type = reader.int32(); + break; + } + case 3: { + message.invisible = reader.bool(); + break; + } + case 4: { + message["default"] = reader.string(); + break; + } + case 5: { + message.collation_name = reader.string(); + break; + } + case 6: { + message.size = reader.int32(); + break; + } + case 7: { + message.scale = reader.int32(); + break; + } + case 8: { + message.nullable = reader.bool(); + break; + } + case 9: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); break; } default: @@ -124418,157 +124552,409 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. + * Decodes a Column message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.Column * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @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 */ - ExecuteVtctlCommandRequest.decodeDelimited = function decodeDelimited(reader) { + Column.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteVtctlCommandRequest message. + * Verifies a Column message. * @function verify - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.Column * @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) { + Column.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 (let i = 0; i < message.args.length; ++i) - if (!$util.isString(message.args[i])) - return "args: string[] expected"; + let properties = {}; + 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: + case 2083: + case 2084: + case 2085: + break; + } + if (message.invisible != null && message.hasOwnProperty("invisible")) + if (typeof message.invisible !== "boolean") + return "invisible: boolean expected"; + if (message["default"] != null && message.hasOwnProperty("default")) + if (!$util.isString(message["default"])) + return "default: string expected"; + if (message.collation_name != null && message.hasOwnProperty("collation_name")) + if (!$util.isString(message.collation_name)) + return "collation_name: string expected"; + if (message.size != null && message.hasOwnProperty("size")) + if (!$util.isInteger(message.size)) + return "size: integer expected"; + if (message.scale != null && message.hasOwnProperty("scale")) + if (!$util.isInteger(message.scale)) + return "scale: integer expected"; + if (message.nullable != null && message.hasOwnProperty("nullable")) { + properties._nullable = 1; + if (typeof message.nullable !== "boolean") + return "nullable: boolean expected"; + } + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (let i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; } - if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) - if (!$util.isInteger(message.action_timeout) && !(message.action_timeout && $util.isInteger(message.action_timeout.low) && $util.isInteger(message.action_timeout.high))) - return "action_timeout: integer|Long expected"; return null; }; /** - * Creates an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Column message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.Column * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @returns {vschema.Column} Column */ - ExecuteVtctlCommandRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteVtctlCommandRequest) + Column.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Column) return object; - let message = new $root.vtctldata.ExecuteVtctlCommandRequest(); - if (object.args) { - if (!Array.isArray(object.args)) - throw TypeError(".vtctldata.ExecuteVtctlCommandRequest.args: array expected"); - message.args = []; - for (let i = 0; i < object.args.length; ++i) - message.args[i] = String(object.args[i]); + let message = new $root.vschema.Column(); + if (object.name != null) + message.name = String(object.name); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + 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; + case "VECTOR": + case 2083: + message.type = 2083; + break; + case "RAW": + case 2084: + message.type = 2084; + break; + case "ROW_TUPLE": + case 2085: + message.type = 2085; + break; + } + if (object.invisible != null) + message.invisible = Boolean(object.invisible); + if (object["default"] != null) + message["default"] = String(object["default"]); + if (object.collation_name != null) + message.collation_name = String(object.collation_name); + if (object.size != null) + message.size = object.size | 0; + if (object.scale != null) + message.scale = object.scale | 0; + if (object.nullable != null) + message.nullable = Boolean(object.nullable); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".vschema.Column.values: array expected"); + message.values = []; + for (let i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[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 Column message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.Column * @static - * @param {vtctldata.ExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest + * @param {vschema.Column} message Column * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteVtctlCommandRequest.toObject = function toObject(message, options) { + Column.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.args = []; - if (options.defaults) - if ($util.Long) { - let 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 (let j = 0; j < message.args.length; ++j) - object.args[j] = message.args[j]; + object.values = []; + if (options.defaults) { + object.name = ""; + object.type = options.enums === String ? "NULL_TYPE" : 0; + object.invisible = false; + object["default"] = ""; + object.collation_name = ""; + object.size = 0; + object.scale = 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] === undefined ? message.type : $root.query.Type[message.type] : message.type; + if (message.invisible != null && message.hasOwnProperty("invisible")) + object.invisible = message.invisible; + if (message["default"] != null && message.hasOwnProperty("default")) + object["default"] = message["default"]; + if (message.collation_name != null && message.hasOwnProperty("collation_name")) + object.collation_name = message.collation_name; + if (message.size != null && message.hasOwnProperty("size")) + object.size = message.size; + if (message.scale != null && message.hasOwnProperty("scale")) + object.scale = message.scale; + if (message.nullable != null && message.hasOwnProperty("nullable")) { + object.nullable = message.nullable; + if (options.oneofs) + object._nullable = "nullable"; + } + if (message.values && message.values.length) { + object.values = []; + for (let j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; } - if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) - if (typeof message.action_timeout === "number") - object.action_timeout = options.longs === String ? String(message.action_timeout) : message.action_timeout; - else - object.action_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.action_timeout) : options.longs === Number ? new $util.LongBits(message.action_timeout.low >>> 0, message.action_timeout.high >>> 0).toNumber() : message.action_timeout; return object; }; /** - * Converts this ExecuteVtctlCommandRequest to JSON. + * Converts this Column to JSON. * @function toJSON - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.Column * @instance * @returns {Object.} JSON object */ - ExecuteVtctlCommandRequest.prototype.toJSON = function toJSON() { + Column.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteVtctlCommandRequest + * Gets the default type url for Column * @function getTypeUrl - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.Column * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteVtctlCommandRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Column.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ExecuteVtctlCommandRequest"; + return typeUrlPrefix + "/vschema.Column"; }; - return ExecuteVtctlCommandRequest; + return Column; })(); - vtctldata.ExecuteVtctlCommandResponse = (function() { + vschema.SrvVSchema = (function() { /** - * Properties of an ExecuteVtctlCommandResponse. - * @memberof vtctldata - * @interface IExecuteVtctlCommandResponse - * @property {logutil.IEvent|null} [event] ExecuteVtctlCommandResponse event + * Properties of a SrvVSchema. + * @memberof vschema + * @interface ISrvVSchema + * @property {Object.|null} [keyspaces] SrvVSchema keyspaces + * @property {vschema.IRoutingRules|null} [routing_rules] SrvVSchema routing_rules + * @property {vschema.IShardRoutingRules|null} [shard_routing_rules] SrvVSchema shard_routing_rules + * @property {vschema.IKeyspaceRoutingRules|null} [keyspace_routing_rules] SrvVSchema keyspace_routing_rules + * @property {vschema.IMirrorRules|null} [mirror_rules] SrvVSchema mirror_rules */ /** - * Constructs a new ExecuteVtctlCommandResponse. - * @memberof vtctldata - * @classdesc Represents an ExecuteVtctlCommandResponse. - * @implements IExecuteVtctlCommandResponse + * Constructs a new SrvVSchema. + * @memberof vschema + * @classdesc Represents a SrvVSchema. + * @implements ISrvVSchema * @constructor - * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set + * @param {vschema.ISrvVSchema=} [properties] Properties to set */ - function ExecuteVtctlCommandResponse(properties) { + function SrvVSchema(properties) { + this.keyspaces = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -124576,75 +124962,153 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ExecuteVtctlCommandResponse event. - * @member {logutil.IEvent|null|undefined} event - * @memberof vtctldata.ExecuteVtctlCommandResponse + * SrvVSchema keyspaces. + * @member {Object.} keyspaces + * @memberof vschema.SrvVSchema * @instance */ - ExecuteVtctlCommandResponse.prototype.event = null; + SrvVSchema.prototype.keyspaces = $util.emptyObject; /** - * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. + * SrvVSchema routing_rules. + * @member {vschema.IRoutingRules|null|undefined} routing_rules + * @memberof vschema.SrvVSchema + * @instance + */ + SrvVSchema.prototype.routing_rules = null; + + /** + * SrvVSchema shard_routing_rules. + * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules + * @memberof vschema.SrvVSchema + * @instance + */ + SrvVSchema.prototype.shard_routing_rules = null; + + /** + * SrvVSchema keyspace_routing_rules. + * @member {vschema.IKeyspaceRoutingRules|null|undefined} keyspace_routing_rules + * @memberof vschema.SrvVSchema + * @instance + */ + SrvVSchema.prototype.keyspace_routing_rules = null; + + /** + * SrvVSchema mirror_rules. + * @member {vschema.IMirrorRules|null|undefined} mirror_rules + * @memberof vschema.SrvVSchema + * @instance + */ + SrvVSchema.prototype.mirror_rules = null; + + /** + * Creates a new SrvVSchema instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.SrvVSchema * @static - * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse instance + * @param {vschema.ISrvVSchema=} [properties] Properties to set + * @returns {vschema.SrvVSchema} SrvVSchema instance */ - ExecuteVtctlCommandResponse.create = function create(properties) { - return new ExecuteVtctlCommandResponse(properties); + SrvVSchema.create = function create(properties) { + return new SrvVSchema(properties); }; /** - * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * Encodes the specified SrvVSchema message. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.SrvVSchema * @static - * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse 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 */ - ExecuteVtctlCommandResponse.encode = function encode(message, writer) { + SrvVSchema.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.keyspaces != null && Object.hasOwnProperty.call(message, "keyspaces")) + for (let 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.keyspace_routing_rules != null && Object.hasOwnProperty.call(message, "keyspace_routing_rules")) + $root.vschema.KeyspaceRoutingRules.encode(message.keyspace_routing_rules, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.mirror_rules != null && Object.hasOwnProperty.call(message, "mirror_rules")) + $root.vschema.MirrorRules.encode(message.mirror_rules, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.SrvVSchema * @static - * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse 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 */ - ExecuteVtctlCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { + SrvVSchema.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. + * Decodes a SrvVSchema message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.SrvVSchema * @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.SrvVSchema} SrvVSchema * @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) { + SrvVSchema.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.SrvVSchema(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.event = $root.logutil.Event.decode(reader, reader.uint32()); + if (message.keyspaces === $util.emptyObject) + message.keyspaces = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vschema.Keyspace.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.keyspaces[key] = value; + break; + } + case 2: { + message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); + break; + } + case 3: { + message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); + break; + } + case 4: { + message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.decode(reader, reader.uint32()); + break; + } + case 5: { + message.mirror_rules = $root.vschema.MirrorRules.decode(reader, reader.uint32()); break; } default: @@ -124656,145 +125120,196 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * Decodes a SrvVSchema message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.SrvVSchema * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @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 */ - ExecuteVtctlCommandResponse.decodeDelimited = function decodeDelimited(reader) { + SrvVSchema.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteVtctlCommandResponse message. + * Verifies a SrvVSchema message. * @function verify - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.SrvVSchema * @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) { + SrvVSchema.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.event != null && message.hasOwnProperty("event")) { - let error = $root.logutil.Event.verify(message.event); + if (message.keyspaces != null && message.hasOwnProperty("keyspaces")) { + if (!$util.isObject(message.keyspaces)) + return "keyspaces: object expected"; + let key = Object.keys(message.keyspaces); + for (let i = 0; i < key.length; ++i) { + let error = $root.vschema.Keyspace.verify(message.keyspaces[key[i]]); + if (error) + return "keyspaces." + error; + } + } + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { + let error = $root.vschema.RoutingRules.verify(message.routing_rules); if (error) - return "event." + error; + return "routing_rules." + error; + } + if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { + let error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); + if (error) + return "shard_routing_rules." + error; + } + if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) { + let error = $root.vschema.KeyspaceRoutingRules.verify(message.keyspace_routing_rules); + if (error) + return "keyspace_routing_rules." + error; + } + if (message.mirror_rules != null && message.hasOwnProperty("mirror_rules")) { + let error = $root.vschema.MirrorRules.verify(message.mirror_rules); + if (error) + return "mirror_rules." + error; } return null; }; /** - * Creates an ExecuteVtctlCommandResponse 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 vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.SrvVSchema * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @returns {vschema.SrvVSchema} SrvVSchema */ - ExecuteVtctlCommandResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteVtctlCommandResponse) + SrvVSchema.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.SrvVSchema) return object; - let 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); + let message = new $root.vschema.SrvVSchema(); + if (object.keyspaces) { + if (typeof object.keyspaces !== "object") + throw TypeError(".vschema.SrvVSchema.keyspaces: object expected"); + message.keyspaces = {}; + for (let 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); + } + if (object.keyspace_routing_rules != null) { + if (typeof object.keyspace_routing_rules !== "object") + throw TypeError(".vschema.SrvVSchema.keyspace_routing_rules: object expected"); + message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.fromObject(object.keyspace_routing_rules); + } + if (object.mirror_rules != null) { + if (typeof object.mirror_rules !== "object") + throw TypeError(".vschema.SrvVSchema.mirror_rules: object expected"); + message.mirror_rules = $root.vschema.MirrorRules.fromObject(object.mirror_rules); } return message; }; /** - * Creates a plain object from an ExecuteVtctlCommandResponse 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 vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.SrvVSchema * @static - * @param {vtctldata.ExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse + * @param {vschema.SrvVSchema} message SrvVSchema * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteVtctlCommandResponse.toObject = function toObject(message, options) { + SrvVSchema.toObject = function toObject(message, options) { if (!options) options = {}; let 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.objects || options.defaults) + object.keyspaces = {}; + if (options.defaults) { + object.routing_rules = null; + object.shard_routing_rules = null; + object.keyspace_routing_rules = null; + object.mirror_rules = null; + } + let keys2; + if (message.keyspaces && (keys2 = Object.keys(message.keyspaces)).length) { + object.keyspaces = {}; + for (let 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); + if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) + object.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.toObject(message.keyspace_routing_rules, options); + if (message.mirror_rules != null && message.hasOwnProperty("mirror_rules")) + object.mirror_rules = $root.vschema.MirrorRules.toObject(message.mirror_rules, options); return object; }; /** - * Converts this ExecuteVtctlCommandResponse to JSON. + * Converts this SrvVSchema to JSON. * @function toJSON - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.SrvVSchema * @instance * @returns {Object.} JSON object */ - ExecuteVtctlCommandResponse.prototype.toJSON = function toJSON() { + SrvVSchema.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteVtctlCommandResponse + * Gets the default type url for SrvVSchema * @function getTypeUrl - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.SrvVSchema * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteVtctlCommandResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SrvVSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ExecuteVtctlCommandResponse"; + return typeUrlPrefix + "/vschema.SrvVSchema"; }; - 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() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CUSTOM"] = 0; - values[valuesById[1] = "MOVETABLES"] = 1; - values[valuesById[2] = "CREATELOOKUPINDEX"] = 2; - return values; + return SrvVSchema; })(); - vtctldata.TableMaterializeSettings = (function() { + vschema.ShardRoutingRules = (function() { /** - * Properties of a TableMaterializeSettings. - * @memberof vtctldata - * @interface ITableMaterializeSettings - * @property {string|null} [target_table] TableMaterializeSettings target_table - * @property {string|null} [source_expression] TableMaterializeSettings source_expression - * @property {string|null} [create_ddl] TableMaterializeSettings create_ddl + * Properties of a ShardRoutingRules. + * @memberof vschema + * @interface IShardRoutingRules + * @property {Array.|null} [rules] ShardRoutingRules rules */ /** - * Constructs a new TableMaterializeSettings. - * @memberof vtctldata - * @classdesc Represents a TableMaterializeSettings. - * @implements ITableMaterializeSettings + * Constructs a new ShardRoutingRules. + * @memberof vschema + * @classdesc Represents a ShardRoutingRules. + * @implements IShardRoutingRules * @constructor - * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set + * @param {vschema.IShardRoutingRules=} [properties] Properties to set */ - function TableMaterializeSettings(properties) { + function ShardRoutingRules(properties) { + this.rules = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -124802,103 +125317,78 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * TableMaterializeSettings target_table. - * @member {string} target_table - * @memberof vtctldata.TableMaterializeSettings - * @instance - */ - TableMaterializeSettings.prototype.target_table = ""; - - /** - * TableMaterializeSettings source_expression. - * @member {string} source_expression - * @memberof vtctldata.TableMaterializeSettings - * @instance - */ - TableMaterializeSettings.prototype.source_expression = ""; - - /** - * TableMaterializeSettings create_ddl. - * @member {string} create_ddl - * @memberof vtctldata.TableMaterializeSettings + * ShardRoutingRules rules. + * @member {Array.} rules + * @memberof vschema.ShardRoutingRules * @instance */ - TableMaterializeSettings.prototype.create_ddl = ""; + ShardRoutingRules.prototype.rules = $util.emptyArray; /** - * Creates a new TableMaterializeSettings instance using the specified properties. + * Creates a new ShardRoutingRules instance using the specified properties. * @function create - * @memberof vtctldata.TableMaterializeSettings + * @memberof vschema.ShardRoutingRules * @static - * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings instance + * @param {vschema.IShardRoutingRules=} [properties] Properties to set + * @returns {vschema.ShardRoutingRules} ShardRoutingRules instance */ - TableMaterializeSettings.create = function create(properties) { - return new TableMaterializeSettings(properties); + ShardRoutingRules.create = function create(properties) { + return new ShardRoutingRules(properties); }; /** - * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * Encodes the specified ShardRoutingRules message. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. * @function encode - * @memberof vtctldata.TableMaterializeSettings + * @memberof vschema.ShardRoutingRules * @static - * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings 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 */ - TableMaterializeSettings.encode = function encode(message, writer) { + ShardRoutingRules.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.rules != null && message.rules.length) + for (let 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 TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * Encodes the specified ShardRoutingRules message, length delimited. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.TableMaterializeSettings + * @memberof vschema.ShardRoutingRules * @static - * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings 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 */ - TableMaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { + ShardRoutingRules.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TableMaterializeSettings message from the specified reader or buffer. + * Decodes a ShardRoutingRules message from the specified reader or buffer. * @function decode - * @memberof vtctldata.TableMaterializeSettings + * @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.TableMaterializeSettings} TableMaterializeSettings + * @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 */ - TableMaterializeSettings.decode = function decode(reader, length) { + ShardRoutingRules.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TableMaterializeSettings(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ShardRoutingRules(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.target_table = reader.string(); - break; - } - case 2: { - message.source_expression = reader.string(); - break; - } - case 3: { - message.create_ddl = reader.string(); + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.vschema.ShardRoutingRule.decode(reader, reader.uint32())); break; } default: @@ -124910,159 +125400,141 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a TableMaterializeSettings 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.TableMaterializeSettings + * @memberof vschema.ShardRoutingRules * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * @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 */ - TableMaterializeSettings.decodeDelimited = function decodeDelimited(reader) { + ShardRoutingRules.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TableMaterializeSettings message. + * Verifies a ShardRoutingRules message. * @function verify - * @memberof vtctldata.TableMaterializeSettings + * @memberof vschema.ShardRoutingRules * @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) { + ShardRoutingRules.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.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (let i = 0; i < message.rules.length; ++i) { + let error = $root.vschema.ShardRoutingRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } return null; }; /** - * Creates a TableMaterializeSettings 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.TableMaterializeSettings + * @memberof vschema.ShardRoutingRules * @static * @param {Object.} object Plain object - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * @returns {vschema.ShardRoutingRules} ShardRoutingRules */ - TableMaterializeSettings.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.TableMaterializeSettings) + ShardRoutingRules.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.ShardRoutingRules) return object; - let 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); + let message = new $root.vschema.ShardRoutingRules(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".vschema.ShardRoutingRules.rules: array expected"); + message.rules = []; + for (let i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".vschema.ShardRoutingRules.rules: object expected"); + message.rules[i] = $root.vschema.ShardRoutingRule.fromObject(object.rules[i]); + } + } return message; }; /** - * Creates a plain object from a TableMaterializeSettings 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.TableMaterializeSettings + * @memberof vschema.ShardRoutingRules * @static - * @param {vtctldata.TableMaterializeSettings} message TableMaterializeSettings + * @param {vschema.ShardRoutingRules} message ShardRoutingRules * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TableMaterializeSettings.toObject = function toObject(message, options) { + ShardRoutingRules.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.target_table = ""; - object.source_expression = ""; - object.create_ddl = ""; + if (options.arrays || options.defaults) + object.rules = []; + if (message.rules && message.rules.length) { + object.rules = []; + for (let j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.vschema.ShardRoutingRule.toObject(message.rules[j], options); } - if (message.target_table != null && message.hasOwnProperty("target_table")) - object.target_table = message.target_table; - if (message.source_expression != null && message.hasOwnProperty("source_expression")) - object.source_expression = message.source_expression; - if (message.create_ddl != null && message.hasOwnProperty("create_ddl")) - object.create_ddl = message.create_ddl; return object; }; /** - * Converts this TableMaterializeSettings to JSON. + * Converts this ShardRoutingRules to JSON. * @function toJSON - * @memberof vtctldata.TableMaterializeSettings + * @memberof vschema.ShardRoutingRules * @instance * @returns {Object.} JSON object */ - TableMaterializeSettings.prototype.toJSON = function toJSON() { + ShardRoutingRules.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TableMaterializeSettings + * Gets the default type url for ShardRoutingRules * @function getTypeUrl - * @memberof vtctldata.TableMaterializeSettings + * @memberof vschema.ShardRoutingRules * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TableMaterializeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShardRoutingRules.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.TableMaterializeSettings"; + return typeUrlPrefix + "/vschema.ShardRoutingRules"; }; - return TableMaterializeSettings; + return ShardRoutingRules; })(); - vtctldata.MaterializeSettings = (function() { + vschema.ShardRoutingRule = (function() { /** - * Properties of a MaterializeSettings. - * @memberof vtctldata - * @interface IMaterializeSettings - * @property {string|null} [workflow] MaterializeSettings workflow - * @property {string|null} [source_keyspace] MaterializeSettings source_keyspace - * @property {string|null} [target_keyspace] MaterializeSettings target_keyspace - * @property {boolean|null} [stop_after_copy] MaterializeSettings stop_after_copy - * @property {Array.|null} [table_settings] MaterializeSettings table_settings - * @property {string|null} [cell] MaterializeSettings cell - * @property {string|null} [tablet_types] MaterializeSettings tablet_types - * @property {string|null} [external_cluster] MaterializeSettings external_cluster - * @property {vtctldata.MaterializationIntent|null} [materialization_intent] MaterializeSettings materialization_intent - * @property {string|null} [source_time_zone] MaterializeSettings source_time_zone - * @property {string|null} [target_time_zone] MaterializeSettings target_time_zone - * @property {Array.|null} [source_shards] MaterializeSettings source_shards - * @property {string|null} [on_ddl] MaterializeSettings on_ddl - * @property {boolean|null} [defer_secondary_keys] MaterializeSettings defer_secondary_keys - * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] MaterializeSettings tablet_selection_preference - * @property {boolean|null} [atomic_copy] MaterializeSettings atomic_copy - * @property {vtctldata.IWorkflowOptions|null} [workflow_options] MaterializeSettings workflow_options - * @property {Array.|null} [reference_tables] MaterializeSettings reference_tables + * 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 MaterializeSettings. - * @memberof vtctldata - * @classdesc Represents a MaterializeSettings. - * @implements IMaterializeSettings + * Constructs a new ShardRoutingRule. + * @memberof vschema + * @classdesc Represents a ShardRoutingRule. + * @implements IShardRoutingRule * @constructor - * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set + * @param {vschema.IShardRoutingRule=} [properties] Properties to set */ - function MaterializeSettings(properties) { - this.table_settings = []; - this.source_shards = []; - this.reference_tables = []; + function ShardRoutingRule(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125070,322 +125542,327 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * MaterializeSettings workflow. - * @member {string} workflow - * @memberof vtctldata.MaterializeSettings + * ShardRoutingRule from_keyspace. + * @member {string} from_keyspace + * @memberof vschema.ShardRoutingRule * @instance */ - MaterializeSettings.prototype.workflow = ""; + ShardRoutingRule.prototype.from_keyspace = ""; /** - * MaterializeSettings source_keyspace. - * @member {string} source_keyspace - * @memberof vtctldata.MaterializeSettings + * ShardRoutingRule to_keyspace. + * @member {string} to_keyspace + * @memberof vschema.ShardRoutingRule * @instance */ - MaterializeSettings.prototype.source_keyspace = ""; + ShardRoutingRule.prototype.to_keyspace = ""; /** - * MaterializeSettings target_keyspace. - * @member {string} target_keyspace - * @memberof vtctldata.MaterializeSettings + * ShardRoutingRule shard. + * @member {string} shard + * @memberof vschema.ShardRoutingRule * @instance */ - MaterializeSettings.prototype.target_keyspace = ""; + ShardRoutingRule.prototype.shard = ""; /** - * MaterializeSettings stop_after_copy. - * @member {boolean} stop_after_copy - * @memberof vtctldata.MaterializeSettings - * @instance + * 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 */ - MaterializeSettings.prototype.stop_after_copy = false; + ShardRoutingRule.create = function create(properties) { + return new ShardRoutingRule(properties); + }; /** - * MaterializeSettings table_settings. - * @member {Array.} table_settings - * @memberof vtctldata.MaterializeSettings - * @instance + * 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 */ - MaterializeSettings.prototype.table_settings = $util.emptyArray; + ShardRoutingRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.from_keyspace != null && Object.hasOwnProperty.call(message, "from_keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_keyspace); + if (message.to_keyspace != null && Object.hasOwnProperty.call(message, "to_keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); + return writer; + }; /** - * MaterializeSettings cell. - * @member {string} cell - * @memberof vtctldata.MaterializeSettings - * @instance + * Encodes the specified ShardRoutingRule message, length delimited. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. + * @function encodeDelimited + * @memberof vschema.ShardRoutingRule + * @static + * @param {vschema.IShardRoutingRule} message ShardRoutingRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MaterializeSettings.prototype.cell = ""; + ShardRoutingRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * MaterializeSettings tablet_types. - * @member {string} tablet_types - * @memberof vtctldata.MaterializeSettings - * @instance + * Decodes a ShardRoutingRule message from the specified reader or buffer. + * @function decode + * @memberof vschema.ShardRoutingRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vschema.ShardRoutingRule} ShardRoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaterializeSettings.prototype.tablet_types = ""; + ShardRoutingRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ShardRoutingRule(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.from_keyspace = reader.string(); + break; + } + case 2: { + message.to_keyspace = reader.string(); + break; + } + case 3: { + message.shard = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * MaterializeSettings external_cluster. - * @member {string} external_cluster - * @memberof vtctldata.MaterializeSettings - * @instance + * Decodes a ShardRoutingRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vschema.ShardRoutingRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vschema.ShardRoutingRule} ShardRoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaterializeSettings.prototype.external_cluster = ""; + ShardRoutingRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * MaterializeSettings materialization_intent. - * @member {vtctldata.MaterializationIntent} materialization_intent - * @memberof vtctldata.MaterializeSettings - * @instance + * Verifies a ShardRoutingRule message. + * @function verify + * @memberof vschema.ShardRoutingRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaterializeSettings.prototype.materialization_intent = 0; + ShardRoutingRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.from_keyspace != null && message.hasOwnProperty("from_keyspace")) + if (!$util.isString(message.from_keyspace)) + return "from_keyspace: string expected"; + if (message.to_keyspace != null && message.hasOwnProperty("to_keyspace")) + if (!$util.isString(message.to_keyspace)) + return "to_keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + return null; + }; /** - * MaterializeSettings source_time_zone. - * @member {string} source_time_zone - * @memberof vtctldata.MaterializeSettings - * @instance + * Creates a ShardRoutingRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vschema.ShardRoutingRule + * @static + * @param {Object.} object Plain object + * @returns {vschema.ShardRoutingRule} ShardRoutingRule */ - MaterializeSettings.prototype.source_time_zone = ""; + ShardRoutingRule.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.ShardRoutingRule) + return object; + let 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; + }; /** - * MaterializeSettings target_time_zone. - * @member {string} target_time_zone - * @memberof vtctldata.MaterializeSettings - * @instance + * Creates a plain object from a ShardRoutingRule message. Also converts values to other types if specified. + * @function toObject + * @memberof vschema.ShardRoutingRule + * @static + * @param {vschema.ShardRoutingRule} message ShardRoutingRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - MaterializeSettings.prototype.target_time_zone = ""; + ShardRoutingRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.from_keyspace = ""; + object.to_keyspace = ""; + object.shard = ""; + } + if (message.from_keyspace != null && message.hasOwnProperty("from_keyspace")) + object.from_keyspace = message.from_keyspace; + if (message.to_keyspace != null && message.hasOwnProperty("to_keyspace")) + object.to_keyspace = message.to_keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + return object; + }; /** - * MaterializeSettings source_shards. - * @member {Array.} source_shards - * @memberof vtctldata.MaterializeSettings + * Converts this ShardRoutingRule to JSON. + * @function toJSON + * @memberof vschema.ShardRoutingRule * @instance + * @returns {Object.} JSON object */ - MaterializeSettings.prototype.source_shards = $util.emptyArray; + ShardRoutingRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * MaterializeSettings on_ddl. - * @member {string} on_ddl - * @memberof vtctldata.MaterializeSettings - * @instance + * Gets the default type url for ShardRoutingRule + * @function getTypeUrl + * @memberof vschema.ShardRoutingRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - MaterializeSettings.prototype.on_ddl = ""; + ShardRoutingRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vschema.ShardRoutingRule"; + }; - /** - * MaterializeSettings defer_secondary_keys. - * @member {boolean} defer_secondary_keys - * @memberof vtctldata.MaterializeSettings - * @instance - */ - MaterializeSettings.prototype.defer_secondary_keys = false; + return ShardRoutingRule; + })(); - /** - * MaterializeSettings tablet_selection_preference. - * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference - * @memberof vtctldata.MaterializeSettings - * @instance - */ - MaterializeSettings.prototype.tablet_selection_preference = 0; + vschema.KeyspaceRoutingRules = (function() { /** - * MaterializeSettings atomic_copy. - * @member {boolean} atomic_copy - * @memberof vtctldata.MaterializeSettings - * @instance + * Properties of a KeyspaceRoutingRules. + * @memberof vschema + * @interface IKeyspaceRoutingRules + * @property {Array.|null} [rules] KeyspaceRoutingRules rules */ - MaterializeSettings.prototype.atomic_copy = false; /** - * MaterializeSettings workflow_options. - * @member {vtctldata.IWorkflowOptions|null|undefined} workflow_options - * @memberof vtctldata.MaterializeSettings - * @instance + * Constructs a new KeyspaceRoutingRules. + * @memberof vschema + * @classdesc Represents a KeyspaceRoutingRules. + * @implements IKeyspaceRoutingRules + * @constructor + * @param {vschema.IKeyspaceRoutingRules=} [properties] Properties to set */ - MaterializeSettings.prototype.workflow_options = null; + function KeyspaceRoutingRules(properties) { + this.rules = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * MaterializeSettings reference_tables. - * @member {Array.} reference_tables - * @memberof vtctldata.MaterializeSettings + * KeyspaceRoutingRules rules. + * @member {Array.} rules + * @memberof vschema.KeyspaceRoutingRules * @instance */ - MaterializeSettings.prototype.reference_tables = $util.emptyArray; + KeyspaceRoutingRules.prototype.rules = $util.emptyArray; /** - * Creates a new MaterializeSettings instance using the specified properties. + * Creates a new KeyspaceRoutingRules instance using the specified properties. * @function create - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.KeyspaceRoutingRules * @static - * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set - * @returns {vtctldata.MaterializeSettings} MaterializeSettings instance + * @param {vschema.IKeyspaceRoutingRules=} [properties] Properties to set + * @returns {vschema.KeyspaceRoutingRules} KeyspaceRoutingRules instance */ - MaterializeSettings.create = function create(properties) { - return new MaterializeSettings(properties); + KeyspaceRoutingRules.create = function create(properties) { + return new KeyspaceRoutingRules(properties); }; /** - * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * Encodes the specified KeyspaceRoutingRules message. Does not implicitly {@link vschema.KeyspaceRoutingRules.verify|verify} messages. * @function encode - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.KeyspaceRoutingRules * @static - * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode + * @param {vschema.IKeyspaceRoutingRules} message KeyspaceRoutingRules message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaterializeSettings.encode = function encode(message, writer) { + KeyspaceRoutingRules.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 (let 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 (let i = 0; i < message.source_shards.length; ++i) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.source_shards[i]); - if (message.on_ddl != null && Object.hasOwnProperty.call(message, "on_ddl")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.on_ddl); - if (message.defer_secondary_keys != null && Object.hasOwnProperty.call(message, "defer_secondary_keys")) - writer.uint32(/* id 14, wireType 0 =*/112).bool(message.defer_secondary_keys); - if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) - writer.uint32(/* id 15, wireType 0 =*/120).int32(message.tablet_selection_preference); - if (message.atomic_copy != null && Object.hasOwnProperty.call(message, "atomic_copy")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.atomic_copy); - if (message.workflow_options != null && Object.hasOwnProperty.call(message, "workflow_options")) - $root.vtctldata.WorkflowOptions.encode(message.workflow_options, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.reference_tables != null && message.reference_tables.length) - for (let i = 0; i < message.reference_tables.length; ++i) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.reference_tables[i]); + if (message.rules != null && message.rules.length) + for (let i = 0; i < message.rules.length; ++i) + $root.vschema.KeyspaceRoutingRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * Encodes the specified KeyspaceRoutingRules message, length delimited. Does not implicitly {@link vschema.KeyspaceRoutingRules.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.KeyspaceRoutingRules * @static - * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode + * @param {vschema.IKeyspaceRoutingRules} message KeyspaceRoutingRules message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { + KeyspaceRoutingRules.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaterializeSettings message from the specified reader or buffer. + * Decodes a KeyspaceRoutingRules message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.KeyspaceRoutingRules * @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 {vschema.KeyspaceRoutingRules} KeyspaceRoutingRules * @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) { + KeyspaceRoutingRules.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MaterializeSettings(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.KeyspaceRoutingRules(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workflow = reader.string(); - break; - } - case 2: { - message.source_keyspace = reader.string(); - break; - } - case 3: { - message.target_keyspace = reader.string(); - break; - } - case 4: { - message.stop_after_copy = reader.bool(); - break; - } - case 5: { - if (!(message.table_settings && message.table_settings.length)) - message.table_settings = []; - message.table_settings.push($root.vtctldata.TableMaterializeSettings.decode(reader, reader.uint32())); - break; - } - case 6: { - message.cell = reader.string(); - break; - } - case 7: { - message.tablet_types = reader.string(); - break; - } - case 8: { - message.external_cluster = reader.string(); - break; - } - case 9: { - message.materialization_intent = reader.int32(); - break; - } - case 10: { - message.source_time_zone = reader.string(); - break; - } - case 11: { - message.target_time_zone = reader.string(); - break; - } - case 12: { - if (!(message.source_shards && message.source_shards.length)) - message.source_shards = []; - message.source_shards.push(reader.string()); - break; - } - case 13: { - message.on_ddl = reader.string(); - break; - } - case 14: { - message.defer_secondary_keys = reader.bool(); - break; - } - case 15: { - message.tablet_selection_preference = reader.int32(); - break; - } - case 16: { - message.atomic_copy = reader.bool(); - break; - } - case 17: { - message.workflow_options = $root.vtctldata.WorkflowOptions.decode(reader, reader.uint32()); - break; - } - case 18: { - if (!(message.reference_tables && message.reference_tables.length)) - message.reference_tables = []; - message.reference_tables.push(reader.string()); + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.vschema.KeyspaceRoutingRule.decode(reader, reader.uint32())); break; } default: @@ -125397,356 +125874,140 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. + * Decodes a KeyspaceRoutingRules message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.KeyspaceRoutingRules * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @returns {vschema.KeyspaceRoutingRules} KeyspaceRoutingRules * @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) { + KeyspaceRoutingRules.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaterializeSettings message. + * Verifies a KeyspaceRoutingRules message. * @function verify - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.KeyspaceRoutingRules * @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) { + KeyspaceRoutingRules.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 (let i = 0; i < message.table_settings.length; ++i) { - let error = $root.vtctldata.TableMaterializeSettings.verify(message.table_settings[i]); + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (let i = 0; i < message.rules.length; ++i) { + let error = $root.vschema.KeyspaceRoutingRule.verify(message.rules[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 (let i = 0; i < message.source_shards.length; ++i) - if (!$util.isString(message.source_shards[i])) - return "source_shards: string[] expected"; - } - if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) - if (!$util.isString(message.on_ddl)) - return "on_ddl: string expected"; - if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) - if (typeof message.defer_secondary_keys !== "boolean") - return "defer_secondary_keys: boolean expected"; - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - switch (message.tablet_selection_preference) { - default: - return "tablet_selection_preference: enum value expected"; - case 0: - case 1: - case 3: - break; + return "rules." + error; } - if (message.atomic_copy != null && message.hasOwnProperty("atomic_copy")) - if (typeof message.atomic_copy !== "boolean") - return "atomic_copy: boolean expected"; - if (message.workflow_options != null && message.hasOwnProperty("workflow_options")) { - let error = $root.vtctldata.WorkflowOptions.verify(message.workflow_options); - if (error) - return "workflow_options." + error; - } - if (message.reference_tables != null && message.hasOwnProperty("reference_tables")) { - if (!Array.isArray(message.reference_tables)) - return "reference_tables: array expected"; - for (let i = 0; i < message.reference_tables.length; ++i) - if (!$util.isString(message.reference_tables[i])) - return "reference_tables: string[] expected"; } return null; }; /** - * Creates a MaterializeSettings message from a plain object. Also converts values to their respective internal types. + * Creates a KeyspaceRoutingRules message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.KeyspaceRoutingRules * @static * @param {Object.} object Plain object - * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @returns {vschema.KeyspaceRoutingRules} KeyspaceRoutingRules */ - MaterializeSettings.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MaterializeSettings) + KeyspaceRoutingRules.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.KeyspaceRoutingRules) return object; - let 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 (let 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) { - default: - if (typeof object.materialization_intent === "number") { - message.materialization_intent = object.materialization_intent; - break; - } - break; - 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 (let i = 0; i < object.source_shards.length; ++i) - message.source_shards[i] = String(object.source_shards[i]); - } - if (object.on_ddl != null) - message.on_ddl = String(object.on_ddl); - if (object.defer_secondary_keys != null) - message.defer_secondary_keys = Boolean(object.defer_secondary_keys); - switch (object.tablet_selection_preference) { - default: - if (typeof object.tablet_selection_preference === "number") { - message.tablet_selection_preference = object.tablet_selection_preference; - break; + let message = new $root.vschema.KeyspaceRoutingRules(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".vschema.KeyspaceRoutingRules.rules: array expected"); + message.rules = []; + for (let i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".vschema.KeyspaceRoutingRules.rules: object expected"); + message.rules[i] = $root.vschema.KeyspaceRoutingRule.fromObject(object.rules[i]); } - break; - case "ANY": - case 0: - message.tablet_selection_preference = 0; - break; - case "INORDER": - case 1: - message.tablet_selection_preference = 1; - break; - case "UNKNOWN": - case 3: - message.tablet_selection_preference = 3; - break; - } - if (object.atomic_copy != null) - message.atomic_copy = Boolean(object.atomic_copy); - if (object.workflow_options != null) { - if (typeof object.workflow_options !== "object") - throw TypeError(".vtctldata.MaterializeSettings.workflow_options: object expected"); - message.workflow_options = $root.vtctldata.WorkflowOptions.fromObject(object.workflow_options); - } - if (object.reference_tables) { - if (!Array.isArray(object.reference_tables)) - throw TypeError(".vtctldata.MaterializeSettings.reference_tables: array expected"); - message.reference_tables = []; - for (let i = 0; i < object.reference_tables.length; ++i) - message.reference_tables[i] = String(object.reference_tables[i]); } return message; }; /** - * Creates a plain object from a MaterializeSettings message. Also converts values to other types if specified. + * Creates a plain object from a KeyspaceRoutingRules message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.KeyspaceRoutingRules * @static - * @param {vtctldata.MaterializeSettings} message MaterializeSettings + * @param {vschema.KeyspaceRoutingRules} message KeyspaceRoutingRules * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaterializeSettings.toObject = function toObject(message, options) { + KeyspaceRoutingRules.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.table_settings = []; - object.source_shards = []; - object.reference_tables = []; - } - 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 = ""; - object.on_ddl = ""; - object.defer_secondary_keys = false; - object.tablet_selection_preference = options.enums === String ? "ANY" : 0; - object.atomic_copy = false; - object.workflow_options = null; - } - 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 (let 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] === undefined ? message.materialization_intent : $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 (let j = 0; j < message.source_shards.length; ++j) - object.source_shards[j] = message.source_shards[j]; - } - if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) - object.on_ddl = message.on_ddl; - if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) - object.defer_secondary_keys = message.defer_secondary_keys; - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; - if (message.atomic_copy != null && message.hasOwnProperty("atomic_copy")) - object.atomic_copy = message.atomic_copy; - if (message.workflow_options != null && message.hasOwnProperty("workflow_options")) - object.workflow_options = $root.vtctldata.WorkflowOptions.toObject(message.workflow_options, options); - if (message.reference_tables && message.reference_tables.length) { - object.reference_tables = []; - for (let j = 0; j < message.reference_tables.length; ++j) - object.reference_tables[j] = message.reference_tables[j]; + if (options.arrays || options.defaults) + object.rules = []; + if (message.rules && message.rules.length) { + object.rules = []; + for (let j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.vschema.KeyspaceRoutingRule.toObject(message.rules[j], options); } return object; }; /** - * Converts this MaterializeSettings to JSON. + * Converts this KeyspaceRoutingRules to JSON. * @function toJSON - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.KeyspaceRoutingRules * @instance * @returns {Object.} JSON object */ - MaterializeSettings.prototype.toJSON = function toJSON() { + KeyspaceRoutingRules.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MaterializeSettings + * Gets the default type url for KeyspaceRoutingRules * @function getTypeUrl - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.KeyspaceRoutingRules * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MaterializeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + KeyspaceRoutingRules.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MaterializeSettings"; + return typeUrlPrefix + "/vschema.KeyspaceRoutingRules"; }; - return MaterializeSettings; + return KeyspaceRoutingRules; })(); - vtctldata.Keyspace = (function() { + vschema.KeyspaceRoutingRule = (function() { /** - * Properties of a Keyspace. - * @memberof vtctldata - * @interface IKeyspace - * @property {string|null} [name] Keyspace name - * @property {topodata.IKeyspace|null} [keyspace] Keyspace keyspace + * Properties of a KeyspaceRoutingRule. + * @memberof vschema + * @interface IKeyspaceRoutingRule + * @property {string|null} [from_keyspace] KeyspaceRoutingRule from_keyspace + * @property {string|null} [to_keyspace] KeyspaceRoutingRule to_keyspace */ /** - * Constructs a new Keyspace. - * @memberof vtctldata - * @classdesc Represents a Keyspace. - * @implements IKeyspace + * Constructs a new KeyspaceRoutingRule. + * @memberof vschema + * @classdesc Represents a KeyspaceRoutingRule. + * @implements IKeyspaceRoutingRule * @constructor - * @param {vtctldata.IKeyspace=} [properties] Properties to set + * @param {vschema.IKeyspaceRoutingRule=} [properties] Properties to set */ - function Keyspace(properties) { + function KeyspaceRoutingRule(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125754,89 +126015,89 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Keyspace name. - * @member {string} name - * @memberof vtctldata.Keyspace + * KeyspaceRoutingRule from_keyspace. + * @member {string} from_keyspace + * @memberof vschema.KeyspaceRoutingRule * @instance */ - Keyspace.prototype.name = ""; + KeyspaceRoutingRule.prototype.from_keyspace = ""; /** - * Keyspace keyspace. - * @member {topodata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.Keyspace + * KeyspaceRoutingRule to_keyspace. + * @member {string} to_keyspace + * @memberof vschema.KeyspaceRoutingRule * @instance */ - Keyspace.prototype.keyspace = null; + KeyspaceRoutingRule.prototype.to_keyspace = ""; /** - * Creates a new Keyspace instance using the specified properties. + * Creates a new KeyspaceRoutingRule instance using the specified properties. * @function create - * @memberof vtctldata.Keyspace + * @memberof vschema.KeyspaceRoutingRule * @static - * @param {vtctldata.IKeyspace=} [properties] Properties to set - * @returns {vtctldata.Keyspace} Keyspace instance + * @param {vschema.IKeyspaceRoutingRule=} [properties] Properties to set + * @returns {vschema.KeyspaceRoutingRule} KeyspaceRoutingRule instance */ - Keyspace.create = function create(properties) { - return new Keyspace(properties); + KeyspaceRoutingRule.create = function create(properties) { + return new KeyspaceRoutingRule(properties); }; /** - * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * Encodes the specified KeyspaceRoutingRule message. Does not implicitly {@link vschema.KeyspaceRoutingRule.verify|verify} messages. * @function encode - * @memberof vtctldata.Keyspace + * @memberof vschema.KeyspaceRoutingRule * @static - * @param {vtctldata.IKeyspace} message Keyspace message or plain object to encode + * @param {vschema.IKeyspaceRoutingRule} message KeyspaceRoutingRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Keyspace.encode = function encode(message, writer) { + KeyspaceRoutingRule.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.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); return writer; }; /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * Encodes the specified KeyspaceRoutingRule message, length delimited. Does not implicitly {@link vschema.KeyspaceRoutingRule.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.Keyspace + * @memberof vschema.KeyspaceRoutingRule * @static - * @param {vtctldata.IKeyspace} message Keyspace message or plain object to encode + * @param {vschema.IKeyspaceRoutingRule} message KeyspaceRoutingRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Keyspace.encodeDelimited = function encodeDelimited(message, writer) { + KeyspaceRoutingRule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Keyspace message from the specified reader or buffer. + * Decodes a KeyspaceRoutingRule message from the specified reader or buffer. * @function decode - * @memberof vtctldata.Keyspace + * @memberof vschema.KeyspaceRoutingRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Keyspace} Keyspace + * @returns {vschema.KeyspaceRoutingRule} KeyspaceRoutingRule * @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) { + KeyspaceRoutingRule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Keyspace(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.KeyspaceRoutingRule(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.from_keyspace = reader.string(); break; } case 2: { - message.keyspace = $root.topodata.Keyspace.decode(reader, reader.uint32()); + message.to_keyspace = reader.string(); break; } default: @@ -125848,205 +126109,132 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * Decodes a KeyspaceRoutingRule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.Keyspace + * @memberof vschema.KeyspaceRoutingRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Keyspace} Keyspace + * @returns {vschema.KeyspaceRoutingRule} KeyspaceRoutingRule * @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) { + KeyspaceRoutingRule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Keyspace message. + * Verifies a KeyspaceRoutingRule message. * @function verify - * @memberof vtctldata.Keyspace + * @memberof vschema.KeyspaceRoutingRule * @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) { + KeyspaceRoutingRule.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")) { - let error = $root.topodata.Keyspace.verify(message.keyspace); - if (error) - return "keyspace." + 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"; return null; }; /** - * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * Creates a KeyspaceRoutingRule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.Keyspace + * @memberof vschema.KeyspaceRoutingRule * @static * @param {Object.} object Plain object - * @returns {vtctldata.Keyspace} Keyspace + * @returns {vschema.KeyspaceRoutingRule} KeyspaceRoutingRule */ - Keyspace.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Keyspace) + KeyspaceRoutingRule.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.KeyspaceRoutingRule) return object; - let 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); - } + let message = new $root.vschema.KeyspaceRoutingRule(); + if (object.from_keyspace != null) + message.from_keyspace = String(object.from_keyspace); + if (object.to_keyspace != null) + message.to_keyspace = String(object.to_keyspace); return message; }; /** - * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * Creates a plain object from a KeyspaceRoutingRule message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.Keyspace + * @memberof vschema.KeyspaceRoutingRule * @static - * @param {vtctldata.Keyspace} message Keyspace + * @param {vschema.KeyspaceRoutingRule} message KeyspaceRoutingRule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Keyspace.toObject = function toObject(message, options) { + KeyspaceRoutingRule.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.name = ""; - object.keyspace = null; + object.from_keyspace = ""; + object.to_keyspace = ""; } - 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); + 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; return object; }; /** - * Converts this Keyspace to JSON. + * Converts this KeyspaceRoutingRule to JSON. * @function toJSON - * @memberof vtctldata.Keyspace + * @memberof vschema.KeyspaceRoutingRule * @instance * @returns {Object.} JSON object */ - Keyspace.prototype.toJSON = function toJSON() { + KeyspaceRoutingRule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Keyspace + * Gets the default type url for KeyspaceRoutingRule * @function getTypeUrl - * @memberof vtctldata.Keyspace + * @memberof vschema.KeyspaceRoutingRule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Keyspace.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + KeyspaceRoutingRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.Keyspace"; + return typeUrlPrefix + "/vschema.KeyspaceRoutingRule"; }; - return Keyspace; + return KeyspaceRoutingRule; })(); - /** - * QueryOrdering enum. - * @name vtctldata.QueryOrdering - * @enum {number} - * @property {number} NONE=0 NONE value - * @property {number} ASCENDING=1 ASCENDING value - * @property {number} DESCENDING=2 DESCENDING value - */ - vtctldata.QueryOrdering = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NONE"] = 0; - values[valuesById[1] = "ASCENDING"] = 1; - values[valuesById[2] = "DESCENDING"] = 2; - return values; - })(); - - vtctldata.SchemaMigration = (function() { + vschema.MirrorRules = (function() { /** - * Properties of a SchemaMigration. - * @memberof vtctldata - * @interface ISchemaMigration - * @property {string|null} [uuid] SchemaMigration uuid - * @property {string|null} [keyspace] SchemaMigration keyspace - * @property {string|null} [shard] SchemaMigration shard - * @property {string|null} [schema] SchemaMigration schema - * @property {string|null} [table] SchemaMigration table - * @property {string|null} [migration_statement] SchemaMigration migration_statement - * @property {vtctldata.SchemaMigration.Strategy|null} [strategy] SchemaMigration strategy - * @property {string|null} [options] SchemaMigration options - * @property {vttime.ITime|null} [added_at] SchemaMigration added_at - * @property {vttime.ITime|null} [requested_at] SchemaMigration requested_at - * @property {vttime.ITime|null} [ready_at] SchemaMigration ready_at - * @property {vttime.ITime|null} [started_at] SchemaMigration started_at - * @property {vttime.ITime|null} [liveness_timestamp] SchemaMigration liveness_timestamp - * @property {vttime.ITime|null} [completed_at] SchemaMigration completed_at - * @property {vttime.ITime|null} [cleaned_up_at] SchemaMigration cleaned_up_at - * @property {vtctldata.SchemaMigration.Status|null} [status] SchemaMigration status - * @property {string|null} [log_path] SchemaMigration log_path - * @property {string|null} [artifacts] SchemaMigration artifacts - * @property {number|Long|null} [retries] SchemaMigration retries - * @property {topodata.ITabletAlias|null} [tablet] SchemaMigration tablet - * @property {boolean|null} [tablet_failure] SchemaMigration tablet_failure - * @property {number|null} [progress] SchemaMigration progress - * @property {string|null} [migration_context] SchemaMigration migration_context - * @property {string|null} [ddl_action] SchemaMigration ddl_action - * @property {string|null} [message] SchemaMigration message - * @property {number|Long|null} [eta_seconds] SchemaMigration eta_seconds - * @property {number|Long|null} [rows_copied] SchemaMigration rows_copied - * @property {number|Long|null} [table_rows] SchemaMigration table_rows - * @property {number|null} [added_unique_keys] SchemaMigration added_unique_keys - * @property {number|null} [removed_unique_keys] SchemaMigration removed_unique_keys - * @property {string|null} [log_file] SchemaMigration log_file - * @property {vttime.IDuration|null} [artifact_retention] SchemaMigration artifact_retention - * @property {boolean|null} [postpone_completion] SchemaMigration postpone_completion - * @property {string|null} [removed_unique_key_names] SchemaMigration removed_unique_key_names - * @property {string|null} [dropped_no_default_column_names] SchemaMigration dropped_no_default_column_names - * @property {string|null} [expanded_column_names] SchemaMigration expanded_column_names - * @property {string|null} [revertible_notes] SchemaMigration revertible_notes - * @property {boolean|null} [allow_concurrent] SchemaMigration allow_concurrent - * @property {string|null} [reverted_uuid] SchemaMigration reverted_uuid - * @property {boolean|null} [is_view] SchemaMigration is_view - * @property {boolean|null} [ready_to_complete] SchemaMigration ready_to_complete - * @property {number|Long|null} [vitess_liveness_indicator] SchemaMigration vitess_liveness_indicator - * @property {number|null} [user_throttle_ratio] SchemaMigration user_throttle_ratio - * @property {string|null} [special_plan] SchemaMigration special_plan - * @property {vttime.ITime|null} [last_throttled_at] SchemaMigration last_throttled_at - * @property {string|null} [component_throttled] SchemaMigration component_throttled - * @property {vttime.ITime|null} [cancelled_at] SchemaMigration cancelled_at - * @property {boolean|null} [postpone_launch] SchemaMigration postpone_launch - * @property {string|null} [stage] SchemaMigration stage - * @property {number|null} [cutover_attempts] SchemaMigration cutover_attempts - * @property {boolean|null} [is_immediate_operation] SchemaMigration is_immediate_operation - * @property {vttime.ITime|null} [reviewed_at] SchemaMigration reviewed_at - * @property {vttime.ITime|null} [ready_to_complete_at] SchemaMigration ready_to_complete_at - * @property {string|null} [removed_foreign_key_names] SchemaMigration removed_foreign_key_names + * Properties of a MirrorRules. + * @memberof vschema + * @interface IMirrorRules + * @property {Array.|null} [rules] MirrorRules rules */ /** - * Constructs a new SchemaMigration. - * @memberof vtctldata - * @classdesc Represents a SchemaMigration. - * @implements ISchemaMigration + * Constructs a new MirrorRules. + * @memberof vschema + * @classdesc Represents a MirrorRules. + * @implements IMirrorRules * @constructor - * @param {vtctldata.ISchemaMigration=} [properties] Properties to set + * @param {vschema.IMirrorRules=} [properties] Properties to set */ - function SchemaMigration(properties) { + function MirrorRules(properties) { + this.rules = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -126054,817 +126242,1558 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SchemaMigration uuid. - * @member {string} uuid - * @memberof vtctldata.SchemaMigration - * @instance - */ - SchemaMigration.prototype.uuid = ""; - - /** - * SchemaMigration keyspace. - * @member {string} keyspace - * @memberof vtctldata.SchemaMigration - * @instance - */ - SchemaMigration.prototype.keyspace = ""; - - /** - * SchemaMigration shard. - * @member {string} shard - * @memberof vtctldata.SchemaMigration + * MirrorRules rules. + * @member {Array.} rules + * @memberof vschema.MirrorRules * @instance */ - SchemaMigration.prototype.shard = ""; + MirrorRules.prototype.rules = $util.emptyArray; /** - * SchemaMigration schema. - * @member {string} schema - * @memberof vtctldata.SchemaMigration - * @instance + * Creates a new MirrorRules instance using the specified properties. + * @function create + * @memberof vschema.MirrorRules + * @static + * @param {vschema.IMirrorRules=} [properties] Properties to set + * @returns {vschema.MirrorRules} MirrorRules instance */ - SchemaMigration.prototype.schema = ""; + MirrorRules.create = function create(properties) { + return new MirrorRules(properties); + }; /** - * SchemaMigration table. - * @member {string} table - * @memberof vtctldata.SchemaMigration - * @instance + * Encodes the specified MirrorRules message. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages. + * @function encode + * @memberof vschema.MirrorRules + * @static + * @param {vschema.IMirrorRules} message MirrorRules message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - SchemaMigration.prototype.table = ""; + MirrorRules.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (let i = 0; i < message.rules.length; ++i) + $root.vschema.MirrorRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * SchemaMigration migration_statement. - * @member {string} migration_statement - * @memberof vtctldata.SchemaMigration - * @instance + * Encodes the specified MirrorRules message, length delimited. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages. + * @function encodeDelimited + * @memberof vschema.MirrorRules + * @static + * @param {vschema.IMirrorRules} message MirrorRules message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - SchemaMigration.prototype.migration_statement = ""; + MirrorRules.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * SchemaMigration strategy. - * @member {vtctldata.SchemaMigration.Strategy} strategy - * @memberof vtctldata.SchemaMigration - * @instance + * Decodes a MirrorRules message from the specified reader or buffer. + * @function decode + * @memberof vschema.MirrorRules + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vschema.MirrorRules} MirrorRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SchemaMigration.prototype.strategy = 0; + MirrorRules.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.MirrorRules(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.vschema.MirrorRule.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * SchemaMigration options. - * @member {string} options - * @memberof vtctldata.SchemaMigration - * @instance + * Decodes a MirrorRules message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vschema.MirrorRules + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vschema.MirrorRules} MirrorRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SchemaMigration.prototype.options = ""; + MirrorRules.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * SchemaMigration added_at. - * @member {vttime.ITime|null|undefined} added_at - * @memberof vtctldata.SchemaMigration - * @instance + * Verifies a MirrorRules message. + * @function verify + * @memberof vschema.MirrorRules + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SchemaMigration.prototype.added_at = null; + MirrorRules.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 (let i = 0; i < message.rules.length; ++i) { + let error = $root.vschema.MirrorRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + return null; + }; /** - * SchemaMigration requested_at. - * @member {vttime.ITime|null|undefined} requested_at - * @memberof vtctldata.SchemaMigration - * @instance + * Creates a MirrorRules message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vschema.MirrorRules + * @static + * @param {Object.} object Plain object + * @returns {vschema.MirrorRules} MirrorRules */ - SchemaMigration.prototype.requested_at = null; + MirrorRules.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.MirrorRules) + return object; + let message = new $root.vschema.MirrorRules(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".vschema.MirrorRules.rules: array expected"); + message.rules = []; + for (let i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".vschema.MirrorRules.rules: object expected"); + message.rules[i] = $root.vschema.MirrorRule.fromObject(object.rules[i]); + } + } + return message; + }; /** - * SchemaMigration ready_at. - * @member {vttime.ITime|null|undefined} ready_at - * @memberof vtctldata.SchemaMigration - * @instance + * Creates a plain object from a MirrorRules message. Also converts values to other types if specified. + * @function toObject + * @memberof vschema.MirrorRules + * @static + * @param {vschema.MirrorRules} message MirrorRules + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - SchemaMigration.prototype.ready_at = null; + MirrorRules.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (message.rules && message.rules.length) { + object.rules = []; + for (let j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.vschema.MirrorRule.toObject(message.rules[j], options); + } + return object; + }; /** - * SchemaMigration started_at. - * @member {vttime.ITime|null|undefined} started_at - * @memberof vtctldata.SchemaMigration + * Converts this MirrorRules to JSON. + * @function toJSON + * @memberof vschema.MirrorRules * @instance + * @returns {Object.} JSON object */ - SchemaMigration.prototype.started_at = null; + MirrorRules.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * SchemaMigration liveness_timestamp. - * @member {vttime.ITime|null|undefined} liveness_timestamp - * @memberof vtctldata.SchemaMigration - * @instance + * Gets the default type url for MirrorRules + * @function getTypeUrl + * @memberof vschema.MirrorRules + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - SchemaMigration.prototype.liveness_timestamp = null; + MirrorRules.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vschema.MirrorRules"; + }; - /** - * SchemaMigration completed_at. - * @member {vttime.ITime|null|undefined} completed_at - * @memberof vtctldata.SchemaMigration - * @instance - */ - SchemaMigration.prototype.completed_at = null; + return MirrorRules; + })(); - /** - * SchemaMigration cleaned_up_at. - * @member {vttime.ITime|null|undefined} cleaned_up_at - * @memberof vtctldata.SchemaMigration - * @instance - */ - SchemaMigration.prototype.cleaned_up_at = null; + vschema.MirrorRule = (function() { /** - * SchemaMigration status. - * @member {vtctldata.SchemaMigration.Status} status - * @memberof vtctldata.SchemaMigration - * @instance + * Properties of a MirrorRule. + * @memberof vschema + * @interface IMirrorRule + * @property {string|null} [from_table] MirrorRule from_table + * @property {string|null} [to_table] MirrorRule to_table + * @property {number|null} [percent] MirrorRule percent */ - SchemaMigration.prototype.status = 0; /** - * SchemaMigration log_path. - * @member {string} log_path - * @memberof vtctldata.SchemaMigration - * @instance + * Constructs a new MirrorRule. + * @memberof vschema + * @classdesc Represents a MirrorRule. + * @implements IMirrorRule + * @constructor + * @param {vschema.IMirrorRule=} [properties] Properties to set */ - SchemaMigration.prototype.log_path = ""; + function MirrorRule(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * SchemaMigration artifacts. - * @member {string} artifacts - * @memberof vtctldata.SchemaMigration + * MirrorRule from_table. + * @member {string} from_table + * @memberof vschema.MirrorRule * @instance */ - SchemaMigration.prototype.artifacts = ""; + MirrorRule.prototype.from_table = ""; /** - * SchemaMigration retries. - * @member {number|Long} retries - * @memberof vtctldata.SchemaMigration + * MirrorRule to_table. + * @member {string} to_table + * @memberof vschema.MirrorRule * @instance */ - SchemaMigration.prototype.retries = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MirrorRule.prototype.to_table = ""; /** - * SchemaMigration tablet. - * @member {topodata.ITabletAlias|null|undefined} tablet - * @memberof vtctldata.SchemaMigration + * MirrorRule percent. + * @member {number} percent + * @memberof vschema.MirrorRule * @instance */ - SchemaMigration.prototype.tablet = null; + MirrorRule.prototype.percent = 0; /** - * SchemaMigration tablet_failure. - * @member {boolean} tablet_failure - * @memberof vtctldata.SchemaMigration - * @instance + * Creates a new MirrorRule instance using the specified properties. + * @function create + * @memberof vschema.MirrorRule + * @static + * @param {vschema.IMirrorRule=} [properties] Properties to set + * @returns {vschema.MirrorRule} MirrorRule instance */ - SchemaMigration.prototype.tablet_failure = false; + MirrorRule.create = function create(properties) { + return new MirrorRule(properties); + }; /** - * SchemaMigration progress. - * @member {number} progress - * @memberof vtctldata.SchemaMigration - * @instance + * Encodes the specified MirrorRule message. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages. + * @function encode + * @memberof vschema.MirrorRule + * @static + * @param {vschema.IMirrorRule} message MirrorRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - SchemaMigration.prototype.progress = 0; + MirrorRule.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_table != null && Object.hasOwnProperty.call(message, "to_table")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_table); + if (message.percent != null && Object.hasOwnProperty.call(message, "percent")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.percent); + return writer; + }; /** - * SchemaMigration migration_context. - * @member {string} migration_context - * @memberof vtctldata.SchemaMigration - * @instance + * Encodes the specified MirrorRule message, length delimited. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages. + * @function encodeDelimited + * @memberof vschema.MirrorRule + * @static + * @param {vschema.IMirrorRule} message MirrorRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - SchemaMigration.prototype.migration_context = ""; + MirrorRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * SchemaMigration ddl_action. - * @member {string} ddl_action - * @memberof vtctldata.SchemaMigration - * @instance + * Decodes a MirrorRule message from the specified reader or buffer. + * @function decode + * @memberof vschema.MirrorRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vschema.MirrorRule} MirrorRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SchemaMigration.prototype.ddl_action = ""; + MirrorRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.MirrorRule(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.from_table = reader.string(); + break; + } + case 2: { + message.to_table = reader.string(); + break; + } + case 3: { + message.percent = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * SchemaMigration message. - * @member {string} message - * @memberof vtctldata.SchemaMigration - * @instance + * Decodes a MirrorRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vschema.MirrorRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vschema.MirrorRule} MirrorRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SchemaMigration.prototype.message = ""; + MirrorRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * SchemaMigration eta_seconds. - * @member {number|Long} eta_seconds - * @memberof vtctldata.SchemaMigration - * @instance + * Verifies a MirrorRule message. + * @function verify + * @memberof vschema.MirrorRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SchemaMigration.prototype.eta_seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + MirrorRule.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_table != null && message.hasOwnProperty("to_table")) + if (!$util.isString(message.to_table)) + return "to_table: string expected"; + if (message.percent != null && message.hasOwnProperty("percent")) + if (typeof message.percent !== "number") + return "percent: number expected"; + return null; + }; /** - * SchemaMigration rows_copied. - * @member {number|Long} rows_copied - * @memberof vtctldata.SchemaMigration - * @instance + * Creates a MirrorRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vschema.MirrorRule + * @static + * @param {Object.} object Plain object + * @returns {vschema.MirrorRule} MirrorRule */ - SchemaMigration.prototype.rows_copied = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MirrorRule.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.MirrorRule) + return object; + let message = new $root.vschema.MirrorRule(); + if (object.from_table != null) + message.from_table = String(object.from_table); + if (object.to_table != null) + message.to_table = String(object.to_table); + if (object.percent != null) + message.percent = Number(object.percent); + return message; + }; /** - * SchemaMigration table_rows. - * @member {number|Long} table_rows - * @memberof vtctldata.SchemaMigration - * @instance + * Creates a plain object from a MirrorRule message. Also converts values to other types if specified. + * @function toObject + * @memberof vschema.MirrorRule + * @static + * @param {vschema.MirrorRule} message MirrorRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - SchemaMigration.prototype.table_rows = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + MirrorRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.from_table = ""; + object.to_table = ""; + object.percent = 0; + } + if (message.from_table != null && message.hasOwnProperty("from_table")) + object.from_table = message.from_table; + if (message.to_table != null && message.hasOwnProperty("to_table")) + object.to_table = message.to_table; + if (message.percent != null && message.hasOwnProperty("percent")) + object.percent = options.json && !isFinite(message.percent) ? String(message.percent) : message.percent; + return object; + }; /** - * SchemaMigration added_unique_keys. - * @member {number} added_unique_keys - * @memberof vtctldata.SchemaMigration + * Converts this MirrorRule to JSON. + * @function toJSON + * @memberof vschema.MirrorRule * @instance + * @returns {Object.} JSON object */ - SchemaMigration.prototype.added_unique_keys = 0; + MirrorRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * SchemaMigration removed_unique_keys. - * @member {number} removed_unique_keys - * @memberof vtctldata.SchemaMigration - * @instance + * Gets the default type url for MirrorRule + * @function getTypeUrl + * @memberof vschema.MirrorRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - SchemaMigration.prototype.removed_unique_keys = 0; + MirrorRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vschema.MirrorRule"; + }; - /** - * SchemaMigration log_file. - * @member {string} log_file - * @memberof vtctldata.SchemaMigration - * @instance - */ - SchemaMigration.prototype.log_file = ""; + return MirrorRule; + })(); - /** - * SchemaMigration artifact_retention. - * @member {vttime.IDuration|null|undefined} artifact_retention - * @memberof vtctldata.SchemaMigration - * @instance - */ - SchemaMigration.prototype.artifact_retention = null; + return vschema; +})(); - /** - * SchemaMigration postpone_completion. - * @member {boolean} postpone_completion - * @memberof vtctldata.SchemaMigration - * @instance - */ - SchemaMigration.prototype.postpone_completion = false; +export const vtctldata = $root.vtctldata = (() => { - /** - * SchemaMigration removed_unique_key_names. - * @member {string} removed_unique_key_names - * @memberof vtctldata.SchemaMigration - * @instance - */ - SchemaMigration.prototype.removed_unique_key_names = ""; + /** + * Namespace vtctldata. + * @exports vtctldata + * @namespace + */ + const vtctldata = {}; - /** - * SchemaMigration dropped_no_default_column_names. - * @member {string} dropped_no_default_column_names - * @memberof vtctldata.SchemaMigration - * @instance - */ - SchemaMigration.prototype.dropped_no_default_column_names = ""; + vtctldata.ExecuteVtctlCommandRequest = (function() { /** - * SchemaMigration expanded_column_names. - * @member {string} expanded_column_names - * @memberof vtctldata.SchemaMigration - * @instance + * Properties of an ExecuteVtctlCommandRequest. + * @memberof vtctldata + * @interface IExecuteVtctlCommandRequest + * @property {Array.|null} [args] ExecuteVtctlCommandRequest args + * @property {number|Long|null} [action_timeout] ExecuteVtctlCommandRequest action_timeout */ - SchemaMigration.prototype.expanded_column_names = ""; /** - * SchemaMigration revertible_notes. - * @member {string} revertible_notes - * @memberof vtctldata.SchemaMigration - * @instance + * Constructs a new ExecuteVtctlCommandRequest. + * @memberof vtctldata + * @classdesc Represents an ExecuteVtctlCommandRequest. + * @implements IExecuteVtctlCommandRequest + * @constructor + * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set */ - SchemaMigration.prototype.revertible_notes = ""; + function ExecuteVtctlCommandRequest(properties) { + this.args = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * SchemaMigration allow_concurrent. - * @member {boolean} allow_concurrent - * @memberof vtctldata.SchemaMigration + * ExecuteVtctlCommandRequest args. + * @member {Array.} args + * @memberof vtctldata.ExecuteVtctlCommandRequest * @instance */ - SchemaMigration.prototype.allow_concurrent = false; + ExecuteVtctlCommandRequest.prototype.args = $util.emptyArray; /** - * SchemaMigration reverted_uuid. - * @member {string} reverted_uuid - * @memberof vtctldata.SchemaMigration + * ExecuteVtctlCommandRequest action_timeout. + * @member {number|Long} action_timeout + * @memberof vtctldata.ExecuteVtctlCommandRequest * @instance */ - SchemaMigration.prototype.reverted_uuid = ""; + ExecuteVtctlCommandRequest.prototype.action_timeout = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * SchemaMigration is_view. - * @member {boolean} is_view - * @memberof vtctldata.SchemaMigration - * @instance + * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. + * @function create + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest instance */ - SchemaMigration.prototype.is_view = false; + ExecuteVtctlCommandRequest.create = function create(properties) { + return new ExecuteVtctlCommandRequest(properties); + }; /** - * SchemaMigration ready_to_complete. - * @member {boolean} ready_to_complete - * @memberof vtctldata.SchemaMigration - * @instance + * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - SchemaMigration.prototype.ready_to_complete = false; + ExecuteVtctlCommandRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.args != null && message.args.length) + for (let 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; + }; /** - * SchemaMigration vitess_liveness_indicator. - * @member {number|Long} vitess_liveness_indicator - * @memberof vtctldata.SchemaMigration - * @instance + * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - SchemaMigration.prototype.vitess_liveness_indicator = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ExecuteVtctlCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * SchemaMigration user_throttle_ratio. - * @member {number} user_throttle_ratio - * @memberof vtctldata.SchemaMigration - * @instance + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SchemaMigration.prototype.user_throttle_ratio = 0; + ExecuteVtctlCommandRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.args && message.args.length)) + message.args = []; + message.args.push(reader.string()); + break; + } + case 2: { + message.action_timeout = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * SchemaMigration special_plan. - * @member {string} special_plan - * @memberof vtctldata.SchemaMigration - * @instance + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SchemaMigration.prototype.special_plan = ""; + ExecuteVtctlCommandRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * SchemaMigration last_throttled_at. - * @member {vttime.ITime|null|undefined} last_throttled_at - * @memberof vtctldata.SchemaMigration - * @instance + * Verifies an ExecuteVtctlCommandRequest message. + * @function verify + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SchemaMigration.prototype.last_throttled_at = null; + ExecuteVtctlCommandRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.args != null && message.hasOwnProperty("args")) { + if (!Array.isArray(message.args)) + return "args: array expected"; + for (let 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; + }; /** - * SchemaMigration component_throttled. - * @member {string} component_throttled - * @memberof vtctldata.SchemaMigration - * @instance + * Creates an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest */ - SchemaMigration.prototype.component_throttled = ""; + ExecuteVtctlCommandRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteVtctlCommandRequest) + return object; + let message = new $root.vtctldata.ExecuteVtctlCommandRequest(); + if (object.args) { + if (!Array.isArray(object.args)) + throw TypeError(".vtctldata.ExecuteVtctlCommandRequest.args: array expected"); + message.args = []; + for (let 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; + }; /** - * SchemaMigration cancelled_at. - * @member {vttime.ITime|null|undefined} cancelled_at - * @memberof vtctldata.SchemaMigration - * @instance + * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {vtctldata.ExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - SchemaMigration.prototype.cancelled_at = null; + ExecuteVtctlCommandRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.args = []; + if (options.defaults) + if ($util.Long) { + let 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 (let j = 0; j < message.args.length; ++j) + object.args[j] = message.args[j]; + } + if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) + if (typeof message.action_timeout === "number") + object.action_timeout = options.longs === String ? String(message.action_timeout) : message.action_timeout; + else + object.action_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.action_timeout) : options.longs === Number ? new $util.LongBits(message.action_timeout.low >>> 0, message.action_timeout.high >>> 0).toNumber() : message.action_timeout; + return object; + }; /** - * SchemaMigration postpone_launch. - * @member {boolean} postpone_launch - * @memberof vtctldata.SchemaMigration + * Converts this ExecuteVtctlCommandRequest to JSON. + * @function toJSON + * @memberof vtctldata.ExecuteVtctlCommandRequest * @instance + * @returns {Object.} JSON object */ - SchemaMigration.prototype.postpone_launch = false; + ExecuteVtctlCommandRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * SchemaMigration stage. - * @member {string} stage - * @memberof vtctldata.SchemaMigration - * @instance + * Gets the default type url for ExecuteVtctlCommandRequest + * @function getTypeUrl + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - SchemaMigration.prototype.stage = ""; + ExecuteVtctlCommandRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ExecuteVtctlCommandRequest"; + }; - /** - * SchemaMigration cutover_attempts. - * @member {number} cutover_attempts - * @memberof vtctldata.SchemaMigration - * @instance - */ - SchemaMigration.prototype.cutover_attempts = 0; + return ExecuteVtctlCommandRequest; + })(); - /** - * SchemaMigration is_immediate_operation. - * @member {boolean} is_immediate_operation - * @memberof vtctldata.SchemaMigration - * @instance - */ - SchemaMigration.prototype.is_immediate_operation = false; + vtctldata.ExecuteVtctlCommandResponse = (function() { /** - * SchemaMigration reviewed_at. - * @member {vttime.ITime|null|undefined} reviewed_at - * @memberof vtctldata.SchemaMigration - * @instance + * Properties of an ExecuteVtctlCommandResponse. + * @memberof vtctldata + * @interface IExecuteVtctlCommandResponse + * @property {logutil.IEvent|null} [event] ExecuteVtctlCommandResponse event */ - SchemaMigration.prototype.reviewed_at = null; /** - * SchemaMigration ready_to_complete_at. - * @member {vttime.ITime|null|undefined} ready_to_complete_at - * @memberof vtctldata.SchemaMigration - * @instance + * Constructs a new ExecuteVtctlCommandResponse. + * @memberof vtctldata + * @classdesc Represents an ExecuteVtctlCommandResponse. + * @implements IExecuteVtctlCommandResponse + * @constructor + * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set */ - SchemaMigration.prototype.ready_to_complete_at = null; + function ExecuteVtctlCommandResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * SchemaMigration removed_foreign_key_names. - * @member {string} removed_foreign_key_names - * @memberof vtctldata.SchemaMigration + * ExecuteVtctlCommandResponse event. + * @member {logutil.IEvent|null|undefined} event + * @memberof vtctldata.ExecuteVtctlCommandResponse * @instance */ - SchemaMigration.prototype.removed_foreign_key_names = ""; + ExecuteVtctlCommandResponse.prototype.event = null; /** - * Creates a new SchemaMigration instance using the specified properties. + * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. * @function create - * @memberof vtctldata.SchemaMigration + * @memberof vtctldata.ExecuteVtctlCommandResponse * @static - * @param {vtctldata.ISchemaMigration=} [properties] Properties to set - * @returns {vtctldata.SchemaMigration} SchemaMigration instance + * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse instance */ - SchemaMigration.create = function create(properties) { - return new SchemaMigration(properties); + ExecuteVtctlCommandResponse.create = function create(properties) { + return new ExecuteVtctlCommandResponse(properties); }; /** - * Encodes the specified SchemaMigration message. Does not implicitly {@link vtctldata.SchemaMigration.verify|verify} messages. + * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.SchemaMigration + * @memberof vtctldata.ExecuteVtctlCommandResponse * @static - * @param {vtctldata.ISchemaMigration} message SchemaMigration message or plain object to encode + * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SchemaMigration.encode = function encode(message, writer) { + ExecuteVtctlCommandResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid); - 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.schema != null && Object.hasOwnProperty.call(message, "schema")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.schema); - if (message.table != null && Object.hasOwnProperty.call(message, "table")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.table); - if (message.migration_statement != null && Object.hasOwnProperty.call(message, "migration_statement")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.migration_statement); - if (message.strategy != null && Object.hasOwnProperty.call(message, "strategy")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.strategy); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.options); - if (message.added_at != null && Object.hasOwnProperty.call(message, "added_at")) - $root.vttime.Time.encode(message.added_at, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.requested_at != null && Object.hasOwnProperty.call(message, "requested_at")) - $root.vttime.Time.encode(message.requested_at, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.ready_at != null && Object.hasOwnProperty.call(message, "ready_at")) - $root.vttime.Time.encode(message.ready_at, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.started_at != null && Object.hasOwnProperty.call(message, "started_at")) - $root.vttime.Time.encode(message.started_at, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.liveness_timestamp != null && Object.hasOwnProperty.call(message, "liveness_timestamp")) - $root.vttime.Time.encode(message.liveness_timestamp, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.completed_at != null && Object.hasOwnProperty.call(message, "completed_at")) - $root.vttime.Time.encode(message.completed_at, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.cleaned_up_at != null && Object.hasOwnProperty.call(message, "cleaned_up_at")) - $root.vttime.Time.encode(message.cleaned_up_at, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 16, wireType 0 =*/128).int32(message.status); - if (message.log_path != null && Object.hasOwnProperty.call(message, "log_path")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.log_path); - if (message.artifacts != null && Object.hasOwnProperty.call(message, "artifacts")) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.artifacts); - if (message.retries != null && Object.hasOwnProperty.call(message, "retries")) - writer.uint32(/* id 19, wireType 0 =*/152).uint64(message.retries); - if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) - $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.tablet_failure != null && Object.hasOwnProperty.call(message, "tablet_failure")) - writer.uint32(/* id 21, wireType 0 =*/168).bool(message.tablet_failure); - if (message.progress != null && Object.hasOwnProperty.call(message, "progress")) - writer.uint32(/* id 22, wireType 5 =*/181).float(message.progress); - if (message.migration_context != null && Object.hasOwnProperty.call(message, "migration_context")) - writer.uint32(/* id 23, wireType 2 =*/186).string(message.migration_context); - if (message.ddl_action != null && Object.hasOwnProperty.call(message, "ddl_action")) - writer.uint32(/* id 24, wireType 2 =*/194).string(message.ddl_action); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 25, wireType 2 =*/202).string(message.message); - if (message.eta_seconds != null && Object.hasOwnProperty.call(message, "eta_seconds")) - writer.uint32(/* id 26, wireType 0 =*/208).int64(message.eta_seconds); - if (message.rows_copied != null && Object.hasOwnProperty.call(message, "rows_copied")) - writer.uint32(/* id 27, wireType 0 =*/216).uint64(message.rows_copied); - if (message.table_rows != null && Object.hasOwnProperty.call(message, "table_rows")) - writer.uint32(/* id 28, wireType 0 =*/224).int64(message.table_rows); - if (message.added_unique_keys != null && Object.hasOwnProperty.call(message, "added_unique_keys")) - writer.uint32(/* id 29, wireType 0 =*/232).uint32(message.added_unique_keys); - if (message.removed_unique_keys != null && Object.hasOwnProperty.call(message, "removed_unique_keys")) - writer.uint32(/* id 30, wireType 0 =*/240).uint32(message.removed_unique_keys); - if (message.log_file != null && Object.hasOwnProperty.call(message, "log_file")) - writer.uint32(/* id 31, wireType 2 =*/250).string(message.log_file); - if (message.artifact_retention != null && Object.hasOwnProperty.call(message, "artifact_retention")) - $root.vttime.Duration.encode(message.artifact_retention, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); - if (message.postpone_completion != null && Object.hasOwnProperty.call(message, "postpone_completion")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.postpone_completion); - if (message.removed_unique_key_names != null && Object.hasOwnProperty.call(message, "removed_unique_key_names")) - writer.uint32(/* id 34, wireType 2 =*/274).string(message.removed_unique_key_names); - if (message.dropped_no_default_column_names != null && Object.hasOwnProperty.call(message, "dropped_no_default_column_names")) - writer.uint32(/* id 35, wireType 2 =*/282).string(message.dropped_no_default_column_names); - if (message.expanded_column_names != null && Object.hasOwnProperty.call(message, "expanded_column_names")) - writer.uint32(/* id 36, wireType 2 =*/290).string(message.expanded_column_names); - if (message.revertible_notes != null && Object.hasOwnProperty.call(message, "revertible_notes")) - writer.uint32(/* id 37, wireType 2 =*/298).string(message.revertible_notes); - if (message.allow_concurrent != null && Object.hasOwnProperty.call(message, "allow_concurrent")) - writer.uint32(/* id 38, wireType 0 =*/304).bool(message.allow_concurrent); - if (message.reverted_uuid != null && Object.hasOwnProperty.call(message, "reverted_uuid")) - writer.uint32(/* id 39, wireType 2 =*/314).string(message.reverted_uuid); - if (message.is_view != null && Object.hasOwnProperty.call(message, "is_view")) - writer.uint32(/* id 40, wireType 0 =*/320).bool(message.is_view); - if (message.ready_to_complete != null && Object.hasOwnProperty.call(message, "ready_to_complete")) - writer.uint32(/* id 41, wireType 0 =*/328).bool(message.ready_to_complete); - if (message.vitess_liveness_indicator != null && Object.hasOwnProperty.call(message, "vitess_liveness_indicator")) - writer.uint32(/* id 42, wireType 0 =*/336).int64(message.vitess_liveness_indicator); - if (message.user_throttle_ratio != null && Object.hasOwnProperty.call(message, "user_throttle_ratio")) - writer.uint32(/* id 43, wireType 5 =*/349).float(message.user_throttle_ratio); - if (message.special_plan != null && Object.hasOwnProperty.call(message, "special_plan")) - writer.uint32(/* id 44, wireType 2 =*/354).string(message.special_plan); - if (message.last_throttled_at != null && Object.hasOwnProperty.call(message, "last_throttled_at")) - $root.vttime.Time.encode(message.last_throttled_at, writer.uint32(/* id 45, wireType 2 =*/362).fork()).ldelim(); - if (message.component_throttled != null && Object.hasOwnProperty.call(message, "component_throttled")) - writer.uint32(/* id 46, wireType 2 =*/370).string(message.component_throttled); - if (message.cancelled_at != null && Object.hasOwnProperty.call(message, "cancelled_at")) - $root.vttime.Time.encode(message.cancelled_at, writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim(); - if (message.postpone_launch != null && Object.hasOwnProperty.call(message, "postpone_launch")) - writer.uint32(/* id 48, wireType 0 =*/384).bool(message.postpone_launch); - if (message.stage != null && Object.hasOwnProperty.call(message, "stage")) - writer.uint32(/* id 49, wireType 2 =*/394).string(message.stage); - if (message.cutover_attempts != null && Object.hasOwnProperty.call(message, "cutover_attempts")) - writer.uint32(/* id 50, wireType 0 =*/400).uint32(message.cutover_attempts); - if (message.is_immediate_operation != null && Object.hasOwnProperty.call(message, "is_immediate_operation")) - writer.uint32(/* id 51, wireType 0 =*/408).bool(message.is_immediate_operation); - if (message.reviewed_at != null && Object.hasOwnProperty.call(message, "reviewed_at")) - $root.vttime.Time.encode(message.reviewed_at, writer.uint32(/* id 52, wireType 2 =*/418).fork()).ldelim(); - if (message.ready_to_complete_at != null && Object.hasOwnProperty.call(message, "ready_to_complete_at")) - $root.vttime.Time.encode(message.ready_to_complete_at, writer.uint32(/* id 53, wireType 2 =*/426).fork()).ldelim(); - if (message.removed_foreign_key_names != null && Object.hasOwnProperty.call(message, "removed_foreign_key_names")) - writer.uint32(/* id 54, wireType 2 =*/434).string(message.removed_foreign_key_names); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + $root.logutil.Event.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SchemaMigration message, length delimited. Does not implicitly {@link vtctldata.SchemaMigration.verify|verify} messages. + * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SchemaMigration + * @memberof vtctldata.ExecuteVtctlCommandResponse * @static - * @param {vtctldata.ISchemaMigration} message SchemaMigration message or plain object to encode + * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SchemaMigration.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteVtctlCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SchemaMigration message from the specified reader or buffer. + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SchemaMigration + * @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.SchemaMigration} SchemaMigration + * @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 */ - SchemaMigration.decode = function decode(reader, length) { + ExecuteVtctlCommandResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SchemaMigration(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.uuid = reader.string(); + message.event = $root.logutil.Event.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteVtctlCommandResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExecuteVtctlCommandResponse message. + * @function verify + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecuteVtctlCommandResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.event != null && message.hasOwnProperty("event")) { + let error = $root.logutil.Event.verify(message.event); + if (error) + return "event." + error; + } + return null; + }; + + /** + * Creates an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + */ + ExecuteVtctlCommandResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteVtctlCommandResponse) + return object; + let message = new $root.vtctldata.ExecuteVtctlCommandResponse(); + if (object.event != null) { + if (typeof object.event !== "object") + throw TypeError(".vtctldata.ExecuteVtctlCommandResponse.event: object expected"); + message.event = $root.logutil.Event.fromObject(object.event); + } + return message; + }; + + /** + * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {vtctldata.ExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExecuteVtctlCommandResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.event = null; + if (message.event != null && message.hasOwnProperty("event")) + object.event = $root.logutil.Event.toObject(message.event, options); + return object; + }; + + /** + * Converts this ExecuteVtctlCommandResponse to JSON. + * @function toJSON + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @instance + * @returns {Object.} JSON object + */ + ExecuteVtctlCommandResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExecuteVtctlCommandResponse + * @function getTypeUrl + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExecuteVtctlCommandResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ExecuteVtctlCommandResponse"; + }; + + 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() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CUSTOM"] = 0; + values[valuesById[1] = "MOVETABLES"] = 1; + values[valuesById[2] = "CREATELOOKUPINDEX"] = 2; + return values; + })(); + + vtctldata.TableMaterializeSettings = (function() { + + /** + * Properties of a TableMaterializeSettings. + * @memberof vtctldata + * @interface ITableMaterializeSettings + * @property {string|null} [target_table] TableMaterializeSettings target_table + * @property {string|null} [source_expression] TableMaterializeSettings source_expression + * @property {string|null} [create_ddl] TableMaterializeSettings create_ddl + */ + + /** + * Constructs a new TableMaterializeSettings. + * @memberof vtctldata + * @classdesc Represents a TableMaterializeSettings. + * @implements ITableMaterializeSettings + * @constructor + * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set + */ + function TableMaterializeSettings(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TableMaterializeSettings target_table. + * @member {string} target_table + * @memberof vtctldata.TableMaterializeSettings + * @instance + */ + TableMaterializeSettings.prototype.target_table = ""; + + /** + * TableMaterializeSettings source_expression. + * @member {string} source_expression + * @memberof vtctldata.TableMaterializeSettings + * @instance + */ + TableMaterializeSettings.prototype.source_expression = ""; + + /** + * TableMaterializeSettings create_ddl. + * @member {string} create_ddl + * @memberof vtctldata.TableMaterializeSettings + * @instance + */ + TableMaterializeSettings.prototype.create_ddl = ""; + + /** + * Creates a new TableMaterializeSettings instance using the specified properties. + * @function create + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings instance + */ + TableMaterializeSettings.create = function create(properties) { + return new TableMaterializeSettings(properties); + }; + + /** + * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * @function encode + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TableMaterializeSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.target_table != null && Object.hasOwnProperty.call(message, "target_table")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.target_table); + if (message.source_expression != null && Object.hasOwnProperty.call(message, "source_expression")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_expression); + if (message.create_ddl != null && Object.hasOwnProperty.call(message, "create_ddl")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.create_ddl); + return writer; + }; + + /** + * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TableMaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TableMaterializeSettings message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TableMaterializeSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TableMaterializeSettings(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.target_table = reader.string(); break; } case 2: { - message.keyspace = reader.string(); + message.source_expression = reader.string(); break; } case 3: { - message.shard = reader.string(); + message.create_ddl = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TableMaterializeSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TableMaterializeSettings message. + * @function verify + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TableMaterializeSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.target_table != null && message.hasOwnProperty("target_table")) + if (!$util.isString(message.target_table)) + return "target_table: string expected"; + if (message.source_expression != null && message.hasOwnProperty("source_expression")) + if (!$util.isString(message.source_expression)) + return "source_expression: string expected"; + if (message.create_ddl != null && message.hasOwnProperty("create_ddl")) + if (!$util.isString(message.create_ddl)) + return "create_ddl: string expected"; + return null; + }; + + /** + * Creates a TableMaterializeSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + */ + TableMaterializeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.TableMaterializeSettings) + return object; + let message = new $root.vtctldata.TableMaterializeSettings(); + if (object.target_table != null) + message.target_table = String(object.target_table); + if (object.source_expression != null) + message.source_expression = String(object.source_expression); + if (object.create_ddl != null) + message.create_ddl = String(object.create_ddl); + return message; + }; + + /** + * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {vtctldata.TableMaterializeSettings} message TableMaterializeSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TableMaterializeSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.target_table = ""; + object.source_expression = ""; + object.create_ddl = ""; + } + if (message.target_table != null && message.hasOwnProperty("target_table")) + object.target_table = message.target_table; + if (message.source_expression != null && message.hasOwnProperty("source_expression")) + object.source_expression = message.source_expression; + if (message.create_ddl != null && message.hasOwnProperty("create_ddl")) + object.create_ddl = message.create_ddl; + return object; + }; + + /** + * Converts this TableMaterializeSettings to JSON. + * @function toJSON + * @memberof vtctldata.TableMaterializeSettings + * @instance + * @returns {Object.} JSON object + */ + TableMaterializeSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TableMaterializeSettings + * @function getTypeUrl + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TableMaterializeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.TableMaterializeSettings"; + }; + + return TableMaterializeSettings; + })(); + + vtctldata.MaterializeSettings = (function() { + + /** + * Properties of a MaterializeSettings. + * @memberof vtctldata + * @interface IMaterializeSettings + * @property {string|null} [workflow] MaterializeSettings workflow + * @property {string|null} [source_keyspace] MaterializeSettings source_keyspace + * @property {string|null} [target_keyspace] MaterializeSettings target_keyspace + * @property {boolean|null} [stop_after_copy] MaterializeSettings stop_after_copy + * @property {Array.|null} [table_settings] MaterializeSettings table_settings + * @property {string|null} [cell] MaterializeSettings cell + * @property {string|null} [tablet_types] MaterializeSettings tablet_types + * @property {string|null} [external_cluster] MaterializeSettings external_cluster + * @property {vtctldata.MaterializationIntent|null} [materialization_intent] MaterializeSettings materialization_intent + * @property {string|null} [source_time_zone] MaterializeSettings source_time_zone + * @property {string|null} [target_time_zone] MaterializeSettings target_time_zone + * @property {Array.|null} [source_shards] MaterializeSettings source_shards + * @property {string|null} [on_ddl] MaterializeSettings on_ddl + * @property {boolean|null} [defer_secondary_keys] MaterializeSettings defer_secondary_keys + * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] MaterializeSettings tablet_selection_preference + * @property {boolean|null} [atomic_copy] MaterializeSettings atomic_copy + * @property {vtctldata.IWorkflowOptions|null} [workflow_options] MaterializeSettings workflow_options + * @property {Array.|null} [reference_tables] MaterializeSettings reference_tables + */ + + /** + * Constructs a new MaterializeSettings. + * @memberof vtctldata + * @classdesc Represents a MaterializeSettings. + * @implements IMaterializeSettings + * @constructor + * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set + */ + function MaterializeSettings(properties) { + this.table_settings = []; + this.source_shards = []; + this.reference_tables = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MaterializeSettings workflow. + * @member {string} workflow + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.workflow = ""; + + /** + * MaterializeSettings source_keyspace. + * @member {string} source_keyspace + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.source_keyspace = ""; + + /** + * MaterializeSettings target_keyspace. + * @member {string} target_keyspace + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.target_keyspace = ""; + + /** + * MaterializeSettings stop_after_copy. + * @member {boolean} stop_after_copy + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.stop_after_copy = false; + + /** + * MaterializeSettings table_settings. + * @member {Array.} table_settings + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.table_settings = $util.emptyArray; + + /** + * MaterializeSettings cell. + * @member {string} cell + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.cell = ""; + + /** + * MaterializeSettings tablet_types. + * @member {string} tablet_types + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.tablet_types = ""; + + /** + * MaterializeSettings external_cluster. + * @member {string} external_cluster + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.external_cluster = ""; + + /** + * MaterializeSettings materialization_intent. + * @member {vtctldata.MaterializationIntent} materialization_intent + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.materialization_intent = 0; + + /** + * MaterializeSettings source_time_zone. + * @member {string} source_time_zone + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.source_time_zone = ""; + + /** + * MaterializeSettings target_time_zone. + * @member {string} target_time_zone + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.target_time_zone = ""; + + /** + * MaterializeSettings source_shards. + * @member {Array.} source_shards + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.source_shards = $util.emptyArray; + + /** + * MaterializeSettings on_ddl. + * @member {string} on_ddl + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.on_ddl = ""; + + /** + * MaterializeSettings defer_secondary_keys. + * @member {boolean} defer_secondary_keys + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.defer_secondary_keys = false; + + /** + * MaterializeSettings tablet_selection_preference. + * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.tablet_selection_preference = 0; + + /** + * MaterializeSettings atomic_copy. + * @member {boolean} atomic_copy + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.atomic_copy = false; + + /** + * MaterializeSettings workflow_options. + * @member {vtctldata.IWorkflowOptions|null|undefined} workflow_options + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.workflow_options = null; + + /** + * MaterializeSettings reference_tables. + * @member {Array.} reference_tables + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.reference_tables = $util.emptyArray; + + /** + * Creates a new MaterializeSettings instance using the specified properties. + * @function create + * @memberof vtctldata.MaterializeSettings + * @static + * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set + * @returns {vtctldata.MaterializeSettings} MaterializeSettings instance + */ + MaterializeSettings.create = function create(properties) { + return new MaterializeSettings(properties); + }; + + /** + * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * @function encode + * @memberof vtctldata.MaterializeSettings + * @static + * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaterializeSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); + if (message.source_keyspace != null && Object.hasOwnProperty.call(message, "source_keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_keyspace); + if (message.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_keyspace); + if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.stop_after_copy); + if (message.table_settings != null && message.table_settings.length) + for (let 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 (let i = 0; i < message.source_shards.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.source_shards[i]); + if (message.on_ddl != null && Object.hasOwnProperty.call(message, "on_ddl")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.on_ddl); + if (message.defer_secondary_keys != null && Object.hasOwnProperty.call(message, "defer_secondary_keys")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.defer_secondary_keys); + if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) + writer.uint32(/* id 15, wireType 0 =*/120).int32(message.tablet_selection_preference); + if (message.atomic_copy != null && Object.hasOwnProperty.call(message, "atomic_copy")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.atomic_copy); + if (message.workflow_options != null && Object.hasOwnProperty.call(message, "workflow_options")) + $root.vtctldata.WorkflowOptions.encode(message.workflow_options, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.reference_tables != null && message.reference_tables.length) + for (let i = 0; i < message.reference_tables.length; ++i) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.reference_tables[i]); + return writer; + }; + + /** + * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.MaterializeSettings + * @static + * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MaterializeSettings message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.MaterializeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaterializeSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MaterializeSettings(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.workflow = reader.string(); + break; + } + case 2: { + message.source_keyspace = reader.string(); + break; + } + case 3: { + message.target_keyspace = reader.string(); break; } case 4: { - message.schema = reader.string(); + message.stop_after_copy = reader.bool(); break; } case 5: { - message.table = reader.string(); + 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.migration_statement = reader.string(); + message.cell = reader.string(); break; } case 7: { - message.strategy = reader.int32(); + message.tablet_types = reader.string(); break; } case 8: { - message.options = reader.string(); + message.external_cluster = reader.string(); break; } case 9: { - message.added_at = $root.vttime.Time.decode(reader, reader.uint32()); + message.materialization_intent = reader.int32(); break; } case 10: { - message.requested_at = $root.vttime.Time.decode(reader, reader.uint32()); + message.source_time_zone = reader.string(); break; } case 11: { - message.ready_at = $root.vttime.Time.decode(reader, reader.uint32()); + message.target_time_zone = reader.string(); break; } case 12: { - message.started_at = $root.vttime.Time.decode(reader, reader.uint32()); + if (!(message.source_shards && message.source_shards.length)) + message.source_shards = []; + message.source_shards.push(reader.string()); break; } case 13: { - message.liveness_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); + message.on_ddl = reader.string(); break; } case 14: { - message.completed_at = $root.vttime.Time.decode(reader, reader.uint32()); + message.defer_secondary_keys = reader.bool(); break; } case 15: { - message.cleaned_up_at = $root.vttime.Time.decode(reader, reader.uint32()); + message.tablet_selection_preference = reader.int32(); break; } case 16: { - message.status = reader.int32(); + message.atomic_copy = reader.bool(); break; } case 17: { - message.log_path = reader.string(); + message.workflow_options = $root.vtctldata.WorkflowOptions.decode(reader, reader.uint32()); break; } case 18: { - message.artifacts = reader.string(); - break; - } - case 19: { - message.retries = reader.uint64(); - break; - } - case 20: { - message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 21: { - message.tablet_failure = reader.bool(); - break; - } - case 22: { - message.progress = reader.float(); - break; - } - case 23: { - message.migration_context = reader.string(); - break; - } - case 24: { - message.ddl_action = reader.string(); - break; - } - case 25: { - message.message = reader.string(); - break; - } - case 26: { - message.eta_seconds = reader.int64(); - break; - } - case 27: { - message.rows_copied = reader.uint64(); - break; - } - case 28: { - message.table_rows = reader.int64(); - break; - } - case 29: { - message.added_unique_keys = reader.uint32(); - break; - } - case 30: { - message.removed_unique_keys = reader.uint32(); - break; - } - case 31: { - message.log_file = reader.string(); - break; - } - case 32: { - message.artifact_retention = $root.vttime.Duration.decode(reader, reader.uint32()); - break; - } - case 33: { - message.postpone_completion = reader.bool(); - break; - } - case 34: { - message.removed_unique_key_names = reader.string(); - break; - } - case 35: { - message.dropped_no_default_column_names = reader.string(); - break; - } - case 36: { - message.expanded_column_names = reader.string(); - break; - } - case 37: { - message.revertible_notes = reader.string(); - break; - } - case 38: { - message.allow_concurrent = reader.bool(); - break; - } - case 39: { - message.reverted_uuid = reader.string(); - break; - } - case 40: { - message.is_view = reader.bool(); - break; - } - case 41: { - message.ready_to_complete = reader.bool(); - break; - } - case 42: { - message.vitess_liveness_indicator = reader.int64(); - break; - } - case 43: { - message.user_throttle_ratio = reader.float(); - break; - } - case 44: { - message.special_plan = reader.string(); - break; - } - case 45: { - message.last_throttled_at = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 46: { - message.component_throttled = reader.string(); - break; - } - case 47: { - message.cancelled_at = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 48: { - message.postpone_launch = reader.bool(); - break; - } - case 49: { - message.stage = reader.string(); - break; - } - case 50: { - message.cutover_attempts = reader.uint32(); - break; - } - case 51: { - message.is_immediate_operation = reader.bool(); - break; - } - case 52: { - message.reviewed_at = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 53: { - message.ready_to_complete_at = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 54: { - message.removed_foreign_key_names = reader.string(); + if (!(message.reference_tables && message.reference_tables.length)) + message.reference_tables = []; + message.reference_tables.push(reader.string()); break; } default: @@ -126876,806 +127805,356 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SchemaMigration 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.SchemaMigration + * @memberof vtctldata.MaterializeSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SchemaMigration} SchemaMigration + * @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 */ - SchemaMigration.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 SchemaMigration message. + * Verifies a MaterializeSettings message. * @function verify - * @memberof vtctldata.SchemaMigration + * @memberof vtctldata.MaterializeSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SchemaMigration.verify = function verify(message) { + MaterializeSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uuid != null && message.hasOwnProperty("uuid")) - if (!$util.isString(message.uuid)) - return "uuid: string expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.schema != null && message.hasOwnProperty("schema")) - if (!$util.isString(message.schema)) - return "schema: string expected"; - if (message.table != null && message.hasOwnProperty("table")) - if (!$util.isString(message.table)) - return "table: string expected"; - if (message.migration_statement != null && message.hasOwnProperty("migration_statement")) - if (!$util.isString(message.migration_statement)) - return "migration_statement: string expected"; - if (message.strategy != null && message.hasOwnProperty("strategy")) - switch (message.strategy) { + 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 (let i = 0; i < message.table_settings.length; ++i) { + let 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 "strategy: enum value expected"; - case 0: + return "materialization_intent: enum value expected"; case 0: - case 3: - case 4: + case 1: + case 2: break; } - if (message.options != null && message.hasOwnProperty("options")) - if (!$util.isString(message.options)) - return "options: string expected"; - if (message.added_at != null && message.hasOwnProperty("added_at")) { - let error = $root.vttime.Time.verify(message.added_at); - if (error) - return "added_at." + error; - } - if (message.requested_at != null && message.hasOwnProperty("requested_at")) { - let error = $root.vttime.Time.verify(message.requested_at); - if (error) - return "requested_at." + error; - } - if (message.ready_at != null && message.hasOwnProperty("ready_at")) { - let error = $root.vttime.Time.verify(message.ready_at); - if (error) - return "ready_at." + error; - } - if (message.started_at != null && message.hasOwnProperty("started_at")) { - let error = $root.vttime.Time.verify(message.started_at); - if (error) - return "started_at." + error; - } - if (message.liveness_timestamp != null && message.hasOwnProperty("liveness_timestamp")) { - let error = $root.vttime.Time.verify(message.liveness_timestamp); - if (error) - return "liveness_timestamp." + error; - } - if (message.completed_at != null && message.hasOwnProperty("completed_at")) { - let error = $root.vttime.Time.verify(message.completed_at); - if (error) - return "completed_at." + error; - } - if (message.cleaned_up_at != null && message.hasOwnProperty("cleaned_up_at")) { - let error = $root.vttime.Time.verify(message.cleaned_up_at); - if (error) - return "cleaned_up_at." + error; + 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 (let i = 0; i < message.source_shards.length; ++i) + if (!$util.isString(message.source_shards[i])) + return "source_shards: string[] expected"; } - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { + if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) + if (!$util.isString(message.on_ddl)) + return "on_ddl: string expected"; + if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) + if (typeof message.defer_secondary_keys !== "boolean") + return "defer_secondary_keys: boolean expected"; + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + switch (message.tablet_selection_preference) { default: - return "status: enum value expected"; + return "tablet_selection_preference: enum value expected"; case 0: case 1: - case 2: case 3: - case 4: - case 5: - case 6: - case 7: break; } - if (message.log_path != null && message.hasOwnProperty("log_path")) - if (!$util.isString(message.log_path)) - return "log_path: string expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) - if (!$util.isString(message.artifacts)) - return "artifacts: string expected"; - if (message.retries != null && message.hasOwnProperty("retries")) - if (!$util.isInteger(message.retries) && !(message.retries && $util.isInteger(message.retries.low) && $util.isInteger(message.retries.high))) - return "retries: integer|Long expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - let error = $root.topodata.TabletAlias.verify(message.tablet); - if (error) - return "tablet." + error; - } - if (message.tablet_failure != null && message.hasOwnProperty("tablet_failure")) - if (typeof message.tablet_failure !== "boolean") - return "tablet_failure: boolean expected"; - if (message.progress != null && message.hasOwnProperty("progress")) - if (typeof message.progress !== "number") - return "progress: number expected"; - if (message.migration_context != null && message.hasOwnProperty("migration_context")) - if (!$util.isString(message.migration_context)) - return "migration_context: string expected"; - if (message.ddl_action != null && message.hasOwnProperty("ddl_action")) - if (!$util.isString(message.ddl_action)) - return "ddl_action: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.eta_seconds != null && message.hasOwnProperty("eta_seconds")) - if (!$util.isInteger(message.eta_seconds) && !(message.eta_seconds && $util.isInteger(message.eta_seconds.low) && $util.isInteger(message.eta_seconds.high))) - return "eta_seconds: integer|Long expected"; - if (message.rows_copied != null && message.hasOwnProperty("rows_copied")) - if (!$util.isInteger(message.rows_copied) && !(message.rows_copied && $util.isInteger(message.rows_copied.low) && $util.isInteger(message.rows_copied.high))) - return "rows_copied: integer|Long expected"; - if (message.table_rows != null && message.hasOwnProperty("table_rows")) - if (!$util.isInteger(message.table_rows) && !(message.table_rows && $util.isInteger(message.table_rows.low) && $util.isInteger(message.table_rows.high))) - return "table_rows: integer|Long expected"; - if (message.added_unique_keys != null && message.hasOwnProperty("added_unique_keys")) - if (!$util.isInteger(message.added_unique_keys)) - return "added_unique_keys: integer expected"; - if (message.removed_unique_keys != null && message.hasOwnProperty("removed_unique_keys")) - if (!$util.isInteger(message.removed_unique_keys)) - return "removed_unique_keys: integer expected"; - if (message.log_file != null && message.hasOwnProperty("log_file")) - if (!$util.isString(message.log_file)) - return "log_file: string expected"; - if (message.artifact_retention != null && message.hasOwnProperty("artifact_retention")) { - let error = $root.vttime.Duration.verify(message.artifact_retention); - if (error) - return "artifact_retention." + error; - } - if (message.postpone_completion != null && message.hasOwnProperty("postpone_completion")) - if (typeof message.postpone_completion !== "boolean") - return "postpone_completion: boolean expected"; - if (message.removed_unique_key_names != null && message.hasOwnProperty("removed_unique_key_names")) - if (!$util.isString(message.removed_unique_key_names)) - return "removed_unique_key_names: string expected"; - if (message.dropped_no_default_column_names != null && message.hasOwnProperty("dropped_no_default_column_names")) - if (!$util.isString(message.dropped_no_default_column_names)) - return "dropped_no_default_column_names: string expected"; - if (message.expanded_column_names != null && message.hasOwnProperty("expanded_column_names")) - if (!$util.isString(message.expanded_column_names)) - return "expanded_column_names: string expected"; - if (message.revertible_notes != null && message.hasOwnProperty("revertible_notes")) - if (!$util.isString(message.revertible_notes)) - return "revertible_notes: string expected"; - if (message.allow_concurrent != null && message.hasOwnProperty("allow_concurrent")) - if (typeof message.allow_concurrent !== "boolean") - return "allow_concurrent: boolean expected"; - if (message.reverted_uuid != null && message.hasOwnProperty("reverted_uuid")) - if (!$util.isString(message.reverted_uuid)) - return "reverted_uuid: string expected"; - if (message.is_view != null && message.hasOwnProperty("is_view")) - if (typeof message.is_view !== "boolean") - return "is_view: boolean expected"; - if (message.ready_to_complete != null && message.hasOwnProperty("ready_to_complete")) - if (typeof message.ready_to_complete !== "boolean") - return "ready_to_complete: boolean expected"; - if (message.vitess_liveness_indicator != null && message.hasOwnProperty("vitess_liveness_indicator")) - if (!$util.isInteger(message.vitess_liveness_indicator) && !(message.vitess_liveness_indicator && $util.isInteger(message.vitess_liveness_indicator.low) && $util.isInteger(message.vitess_liveness_indicator.high))) - return "vitess_liveness_indicator: integer|Long expected"; - if (message.user_throttle_ratio != null && message.hasOwnProperty("user_throttle_ratio")) - if (typeof message.user_throttle_ratio !== "number") - return "user_throttle_ratio: number expected"; - if (message.special_plan != null && message.hasOwnProperty("special_plan")) - if (!$util.isString(message.special_plan)) - return "special_plan: string expected"; - if (message.last_throttled_at != null && message.hasOwnProperty("last_throttled_at")) { - let error = $root.vttime.Time.verify(message.last_throttled_at); - if (error) - return "last_throttled_at." + error; - } - if (message.component_throttled != null && message.hasOwnProperty("component_throttled")) - if (!$util.isString(message.component_throttled)) - return "component_throttled: string expected"; - if (message.cancelled_at != null && message.hasOwnProperty("cancelled_at")) { - let error = $root.vttime.Time.verify(message.cancelled_at); - if (error) - return "cancelled_at." + error; - } - if (message.postpone_launch != null && message.hasOwnProperty("postpone_launch")) - if (typeof message.postpone_launch !== "boolean") - return "postpone_launch: boolean expected"; - if (message.stage != null && message.hasOwnProperty("stage")) - if (!$util.isString(message.stage)) - return "stage: string expected"; - if (message.cutover_attempts != null && message.hasOwnProperty("cutover_attempts")) - if (!$util.isInteger(message.cutover_attempts)) - return "cutover_attempts: integer expected"; - if (message.is_immediate_operation != null && message.hasOwnProperty("is_immediate_operation")) - if (typeof message.is_immediate_operation !== "boolean") - return "is_immediate_operation: boolean expected"; - if (message.reviewed_at != null && message.hasOwnProperty("reviewed_at")) { - let error = $root.vttime.Time.verify(message.reviewed_at); + if (message.atomic_copy != null && message.hasOwnProperty("atomic_copy")) + if (typeof message.atomic_copy !== "boolean") + return "atomic_copy: boolean expected"; + if (message.workflow_options != null && message.hasOwnProperty("workflow_options")) { + let error = $root.vtctldata.WorkflowOptions.verify(message.workflow_options); if (error) - return "reviewed_at." + error; + return "workflow_options." + error; } - if (message.ready_to_complete_at != null && message.hasOwnProperty("ready_to_complete_at")) { - let error = $root.vttime.Time.verify(message.ready_to_complete_at); - if (error) - return "ready_to_complete_at." + error; + if (message.reference_tables != null && message.hasOwnProperty("reference_tables")) { + if (!Array.isArray(message.reference_tables)) + return "reference_tables: array expected"; + for (let i = 0; i < message.reference_tables.length; ++i) + if (!$util.isString(message.reference_tables[i])) + return "reference_tables: string[] expected"; } - if (message.removed_foreign_key_names != null && message.hasOwnProperty("removed_foreign_key_names")) - if (!$util.isString(message.removed_foreign_key_names)) - return "removed_foreign_key_names: string expected"; return null; }; /** - * Creates a SchemaMigration message from a plain object. Also converts values to their respective internal types. + * Creates a MaterializeSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SchemaMigration + * @memberof vtctldata.MaterializeSettings * @static * @param {Object.} object Plain object - * @returns {vtctldata.SchemaMigration} SchemaMigration + * @returns {vtctldata.MaterializeSettings} MaterializeSettings */ - SchemaMigration.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SchemaMigration) + MaterializeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MaterializeSettings) return object; - let message = new $root.vtctldata.SchemaMigration(); - if (object.uuid != null) - message.uuid = String(object.uuid); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.schema != null) - message.schema = String(object.schema); - if (object.table != null) - message.table = String(object.table); - if (object.migration_statement != null) - message.migration_statement = String(object.migration_statement); - switch (object.strategy) { + let 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 (let 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) { default: - if (typeof object.strategy === "number") { - message.strategy = object.strategy; + if (typeof object.materialization_intent === "number") { + message.materialization_intent = object.materialization_intent; break; } break; - case "VITESS": - case 0: - message.strategy = 0; - break; - case "ONLINE": + case "CUSTOM": case 0: - message.strategy = 0; + message.materialization_intent = 0; break; - case "DIRECT": - case 3: - message.strategy = 3; + case "MOVETABLES": + case 1: + message.materialization_intent = 1; break; - case "MYSQL": - case 4: - message.strategy = 4; + case "CREATELOOKUPINDEX": + case 2: + message.materialization_intent = 2; break; } - if (object.options != null) - message.options = String(object.options); - if (object.added_at != null) { - if (typeof object.added_at !== "object") - throw TypeError(".vtctldata.SchemaMigration.added_at: object expected"); - message.added_at = $root.vttime.Time.fromObject(object.added_at); - } - if (object.requested_at != null) { - if (typeof object.requested_at !== "object") - throw TypeError(".vtctldata.SchemaMigration.requested_at: object expected"); - message.requested_at = $root.vttime.Time.fromObject(object.requested_at); - } - if (object.ready_at != null) { - if (typeof object.ready_at !== "object") - throw TypeError(".vtctldata.SchemaMigration.ready_at: object expected"); - message.ready_at = $root.vttime.Time.fromObject(object.ready_at); - } - if (object.started_at != null) { - if (typeof object.started_at !== "object") - throw TypeError(".vtctldata.SchemaMigration.started_at: object expected"); - message.started_at = $root.vttime.Time.fromObject(object.started_at); - } - if (object.liveness_timestamp != null) { - if (typeof object.liveness_timestamp !== "object") - throw TypeError(".vtctldata.SchemaMigration.liveness_timestamp: object expected"); - message.liveness_timestamp = $root.vttime.Time.fromObject(object.liveness_timestamp); - } - if (object.completed_at != null) { - if (typeof object.completed_at !== "object") - throw TypeError(".vtctldata.SchemaMigration.completed_at: object expected"); - message.completed_at = $root.vttime.Time.fromObject(object.completed_at); - } - if (object.cleaned_up_at != null) { - if (typeof object.cleaned_up_at !== "object") - throw TypeError(".vtctldata.SchemaMigration.cleaned_up_at: object expected"); - message.cleaned_up_at = $root.vttime.Time.fromObject(object.cleaned_up_at); + 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 (let i = 0; i < object.source_shards.length; ++i) + message.source_shards[i] = String(object.source_shards[i]); } - switch (object.status) { + if (object.on_ddl != null) + message.on_ddl = String(object.on_ddl); + if (object.defer_secondary_keys != null) + message.defer_secondary_keys = Boolean(object.defer_secondary_keys); + switch (object.tablet_selection_preference) { default: - if (typeof object.status === "number") { - message.status = object.status; + if (typeof object.tablet_selection_preference === "number") { + message.tablet_selection_preference = object.tablet_selection_preference; break; } break; - case "UNKNOWN": + case "ANY": case 0: - message.status = 0; + message.tablet_selection_preference = 0; break; - case "REQUESTED": + case "INORDER": case 1: - message.status = 1; - break; - case "CANCELLED": - case 2: - message.status = 2; + message.tablet_selection_preference = 1; break; - case "QUEUED": + case "UNKNOWN": case 3: - message.status = 3; - break; - case "READY": - case 4: - message.status = 4; - break; - case "RUNNING": - case 5: - message.status = 5; - break; - case "COMPLETE": - case 6: - message.status = 6; - break; - case "FAILED": - case 7: - message.status = 7; + message.tablet_selection_preference = 3; break; } - if (object.log_path != null) - message.log_path = String(object.log_path); - if (object.artifacts != null) - message.artifacts = String(object.artifacts); - if (object.retries != null) - if ($util.Long) - (message.retries = $util.Long.fromValue(object.retries)).unsigned = true; - else if (typeof object.retries === "string") - message.retries = parseInt(object.retries, 10); - else if (typeof object.retries === "number") - message.retries = object.retries; - else if (typeof object.retries === "object") - message.retries = new $util.LongBits(object.retries.low >>> 0, object.retries.high >>> 0).toNumber(true); - if (object.tablet != null) { - if (typeof object.tablet !== "object") - throw TypeError(".vtctldata.SchemaMigration.tablet: object expected"); - message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); - } - if (object.tablet_failure != null) - message.tablet_failure = Boolean(object.tablet_failure); - if (object.progress != null) - message.progress = Number(object.progress); - if (object.migration_context != null) - message.migration_context = String(object.migration_context); - if (object.ddl_action != null) - message.ddl_action = String(object.ddl_action); - if (object.message != null) - message.message = String(object.message); - if (object.eta_seconds != null) - if ($util.Long) - (message.eta_seconds = $util.Long.fromValue(object.eta_seconds)).unsigned = false; - else if (typeof object.eta_seconds === "string") - message.eta_seconds = parseInt(object.eta_seconds, 10); - else if (typeof object.eta_seconds === "number") - message.eta_seconds = object.eta_seconds; - else if (typeof object.eta_seconds === "object") - message.eta_seconds = new $util.LongBits(object.eta_seconds.low >>> 0, object.eta_seconds.high >>> 0).toNumber(); - if (object.rows_copied != null) - if ($util.Long) - (message.rows_copied = $util.Long.fromValue(object.rows_copied)).unsigned = true; - else if (typeof object.rows_copied === "string") - message.rows_copied = parseInt(object.rows_copied, 10); - else if (typeof object.rows_copied === "number") - message.rows_copied = object.rows_copied; - else if (typeof object.rows_copied === "object") - message.rows_copied = new $util.LongBits(object.rows_copied.low >>> 0, object.rows_copied.high >>> 0).toNumber(true); - if (object.table_rows != null) - if ($util.Long) - (message.table_rows = $util.Long.fromValue(object.table_rows)).unsigned = false; - else if (typeof object.table_rows === "string") - message.table_rows = parseInt(object.table_rows, 10); - else if (typeof object.table_rows === "number") - message.table_rows = object.table_rows; - else if (typeof object.table_rows === "object") - message.table_rows = new $util.LongBits(object.table_rows.low >>> 0, object.table_rows.high >>> 0).toNumber(); - if (object.added_unique_keys != null) - message.added_unique_keys = object.added_unique_keys >>> 0; - if (object.removed_unique_keys != null) - message.removed_unique_keys = object.removed_unique_keys >>> 0; - if (object.log_file != null) - message.log_file = String(object.log_file); - if (object.artifact_retention != null) { - if (typeof object.artifact_retention !== "object") - throw TypeError(".vtctldata.SchemaMigration.artifact_retention: object expected"); - message.artifact_retention = $root.vttime.Duration.fromObject(object.artifact_retention); - } - if (object.postpone_completion != null) - message.postpone_completion = Boolean(object.postpone_completion); - if (object.removed_unique_key_names != null) - message.removed_unique_key_names = String(object.removed_unique_key_names); - if (object.dropped_no_default_column_names != null) - message.dropped_no_default_column_names = String(object.dropped_no_default_column_names); - if (object.expanded_column_names != null) - message.expanded_column_names = String(object.expanded_column_names); - if (object.revertible_notes != null) - message.revertible_notes = String(object.revertible_notes); - if (object.allow_concurrent != null) - message.allow_concurrent = Boolean(object.allow_concurrent); - if (object.reverted_uuid != null) - message.reverted_uuid = String(object.reverted_uuid); - if (object.is_view != null) - message.is_view = Boolean(object.is_view); - if (object.ready_to_complete != null) - message.ready_to_complete = Boolean(object.ready_to_complete); - if (object.vitess_liveness_indicator != null) - if ($util.Long) - (message.vitess_liveness_indicator = $util.Long.fromValue(object.vitess_liveness_indicator)).unsigned = false; - else if (typeof object.vitess_liveness_indicator === "string") - message.vitess_liveness_indicator = parseInt(object.vitess_liveness_indicator, 10); - else if (typeof object.vitess_liveness_indicator === "number") - message.vitess_liveness_indicator = object.vitess_liveness_indicator; - else if (typeof object.vitess_liveness_indicator === "object") - message.vitess_liveness_indicator = new $util.LongBits(object.vitess_liveness_indicator.low >>> 0, object.vitess_liveness_indicator.high >>> 0).toNumber(); - if (object.user_throttle_ratio != null) - message.user_throttle_ratio = Number(object.user_throttle_ratio); - if (object.special_plan != null) - message.special_plan = String(object.special_plan); - if (object.last_throttled_at != null) { - if (typeof object.last_throttled_at !== "object") - throw TypeError(".vtctldata.SchemaMigration.last_throttled_at: object expected"); - message.last_throttled_at = $root.vttime.Time.fromObject(object.last_throttled_at); - } - if (object.component_throttled != null) - message.component_throttled = String(object.component_throttled); - if (object.cancelled_at != null) { - if (typeof object.cancelled_at !== "object") - throw TypeError(".vtctldata.SchemaMigration.cancelled_at: object expected"); - message.cancelled_at = $root.vttime.Time.fromObject(object.cancelled_at); - } - if (object.postpone_launch != null) - message.postpone_launch = Boolean(object.postpone_launch); - if (object.stage != null) - message.stage = String(object.stage); - if (object.cutover_attempts != null) - message.cutover_attempts = object.cutover_attempts >>> 0; - if (object.is_immediate_operation != null) - message.is_immediate_operation = Boolean(object.is_immediate_operation); - if (object.reviewed_at != null) { - if (typeof object.reviewed_at !== "object") - throw TypeError(".vtctldata.SchemaMigration.reviewed_at: object expected"); - message.reviewed_at = $root.vttime.Time.fromObject(object.reviewed_at); + if (object.atomic_copy != null) + message.atomic_copy = Boolean(object.atomic_copy); + if (object.workflow_options != null) { + if (typeof object.workflow_options !== "object") + throw TypeError(".vtctldata.MaterializeSettings.workflow_options: object expected"); + message.workflow_options = $root.vtctldata.WorkflowOptions.fromObject(object.workflow_options); } - if (object.ready_to_complete_at != null) { - if (typeof object.ready_to_complete_at !== "object") - throw TypeError(".vtctldata.SchemaMigration.ready_to_complete_at: object expected"); - message.ready_to_complete_at = $root.vttime.Time.fromObject(object.ready_to_complete_at); + if (object.reference_tables) { + if (!Array.isArray(object.reference_tables)) + throw TypeError(".vtctldata.MaterializeSettings.reference_tables: array expected"); + message.reference_tables = []; + for (let i = 0; i < object.reference_tables.length; ++i) + message.reference_tables[i] = String(object.reference_tables[i]); } - if (object.removed_foreign_key_names != null) - message.removed_foreign_key_names = String(object.removed_foreign_key_names); return message; }; /** - * Creates a plain object from a SchemaMigration 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.SchemaMigration + * @memberof vtctldata.MaterializeSettings * @static - * @param {vtctldata.SchemaMigration} message SchemaMigration + * @param {vtctldata.MaterializeSettings} message MaterializeSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SchemaMigration.toObject = function toObject(message, options) { + MaterializeSettings.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.table_settings = []; + object.source_shards = []; + object.reference_tables = []; + } if (options.defaults) { - object.uuid = ""; - object.keyspace = ""; - object.shard = ""; - object.schema = ""; - object.table = ""; - object.migration_statement = ""; - object.strategy = options.enums === String ? "VITESS" : 0; - object.options = ""; - object.added_at = null; - object.requested_at = null; - object.ready_at = null; - object.started_at = null; - object.liveness_timestamp = null; - object.completed_at = null; - object.cleaned_up_at = null; - object.status = options.enums === String ? "UNKNOWN" : 0; - object.log_path = ""; - object.artifacts = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.retries = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.retries = options.longs === String ? "0" : 0; - object.tablet = null; - object.tablet_failure = false; - object.progress = 0; - object.migration_context = ""; - object.ddl_action = ""; - object.message = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.eta_seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.eta_seconds = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.rows_copied = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.rows_copied = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.table_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.table_rows = options.longs === String ? "0" : 0; - object.added_unique_keys = 0; - object.removed_unique_keys = 0; - object.log_file = ""; - object.artifact_retention = null; - object.postpone_completion = false; - object.removed_unique_key_names = ""; - object.dropped_no_default_column_names = ""; - object.expanded_column_names = ""; - object.revertible_notes = ""; - object.allow_concurrent = false; - object.reverted_uuid = ""; - object.is_view = false; - object.ready_to_complete = false; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.vitess_liveness_indicator = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.vitess_liveness_indicator = options.longs === String ? "0" : 0; - object.user_throttle_ratio = 0; - object.special_plan = ""; - object.last_throttled_at = null; - object.component_throttled = ""; - object.cancelled_at = null; - object.postpone_launch = false; - object.stage = ""; - object.cutover_attempts = 0; - object.is_immediate_operation = false; - object.reviewed_at = null; - object.ready_to_complete_at = null; - object.removed_foreign_key_names = ""; + 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 = ""; + object.on_ddl = ""; + object.defer_secondary_keys = false; + object.tablet_selection_preference = options.enums === String ? "ANY" : 0; + object.atomic_copy = false; + object.workflow_options = null; + } + 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 (let 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] === undefined ? message.materialization_intent : $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 (let j = 0; j < message.source_shards.length; ++j) + object.source_shards[j] = message.source_shards[j]; + } + if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) + object.on_ddl = message.on_ddl; + if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) + object.defer_secondary_keys = message.defer_secondary_keys; + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; + if (message.atomic_copy != null && message.hasOwnProperty("atomic_copy")) + object.atomic_copy = message.atomic_copy; + if (message.workflow_options != null && message.hasOwnProperty("workflow_options")) + object.workflow_options = $root.vtctldata.WorkflowOptions.toObject(message.workflow_options, options); + if (message.reference_tables && message.reference_tables.length) { + object.reference_tables = []; + for (let j = 0; j < message.reference_tables.length; ++j) + object.reference_tables[j] = message.reference_tables[j]; } - if (message.uuid != null && message.hasOwnProperty("uuid")) - object.uuid = message.uuid; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.schema != null && message.hasOwnProperty("schema")) - object.schema = message.schema; - if (message.table != null && message.hasOwnProperty("table")) - object.table = message.table; - if (message.migration_statement != null && message.hasOwnProperty("migration_statement")) - object.migration_statement = message.migration_statement; - if (message.strategy != null && message.hasOwnProperty("strategy")) - object.strategy = options.enums === String ? $root.vtctldata.SchemaMigration.Strategy[message.strategy] === undefined ? message.strategy : $root.vtctldata.SchemaMigration.Strategy[message.strategy] : message.strategy; - if (message.options != null && message.hasOwnProperty("options")) - object.options = message.options; - if (message.added_at != null && message.hasOwnProperty("added_at")) - object.added_at = $root.vttime.Time.toObject(message.added_at, options); - if (message.requested_at != null && message.hasOwnProperty("requested_at")) - object.requested_at = $root.vttime.Time.toObject(message.requested_at, options); - if (message.ready_at != null && message.hasOwnProperty("ready_at")) - object.ready_at = $root.vttime.Time.toObject(message.ready_at, options); - if (message.started_at != null && message.hasOwnProperty("started_at")) - object.started_at = $root.vttime.Time.toObject(message.started_at, options); - if (message.liveness_timestamp != null && message.hasOwnProperty("liveness_timestamp")) - object.liveness_timestamp = $root.vttime.Time.toObject(message.liveness_timestamp, options); - if (message.completed_at != null && message.hasOwnProperty("completed_at")) - object.completed_at = $root.vttime.Time.toObject(message.completed_at, options); - if (message.cleaned_up_at != null && message.hasOwnProperty("cleaned_up_at")) - object.cleaned_up_at = $root.vttime.Time.toObject(message.cleaned_up_at, options); - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.vtctldata.SchemaMigration.Status[message.status] === undefined ? message.status : $root.vtctldata.SchemaMigration.Status[message.status] : message.status; - if (message.log_path != null && message.hasOwnProperty("log_path")) - object.log_path = message.log_path; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) - object.artifacts = message.artifacts; - if (message.retries != null && message.hasOwnProperty("retries")) - if (typeof message.retries === "number") - object.retries = options.longs === String ? String(message.retries) : message.retries; - else - object.retries = options.longs === String ? $util.Long.prototype.toString.call(message.retries) : options.longs === Number ? new $util.LongBits(message.retries.low >>> 0, message.retries.high >>> 0).toNumber(true) : message.retries; - if (message.tablet != null && message.hasOwnProperty("tablet")) - object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); - if (message.tablet_failure != null && message.hasOwnProperty("tablet_failure")) - object.tablet_failure = message.tablet_failure; - if (message.progress != null && message.hasOwnProperty("progress")) - object.progress = options.json && !isFinite(message.progress) ? String(message.progress) : message.progress; - if (message.migration_context != null && message.hasOwnProperty("migration_context")) - object.migration_context = message.migration_context; - if (message.ddl_action != null && message.hasOwnProperty("ddl_action")) - object.ddl_action = message.ddl_action; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.eta_seconds != null && message.hasOwnProperty("eta_seconds")) - if (typeof message.eta_seconds === "number") - object.eta_seconds = options.longs === String ? String(message.eta_seconds) : message.eta_seconds; - else - object.eta_seconds = options.longs === String ? $util.Long.prototype.toString.call(message.eta_seconds) : options.longs === Number ? new $util.LongBits(message.eta_seconds.low >>> 0, message.eta_seconds.high >>> 0).toNumber() : message.eta_seconds; - if (message.rows_copied != null && message.hasOwnProperty("rows_copied")) - if (typeof message.rows_copied === "number") - object.rows_copied = options.longs === String ? String(message.rows_copied) : message.rows_copied; - else - object.rows_copied = options.longs === String ? $util.Long.prototype.toString.call(message.rows_copied) : options.longs === Number ? new $util.LongBits(message.rows_copied.low >>> 0, message.rows_copied.high >>> 0).toNumber(true) : message.rows_copied; - if (message.table_rows != null && message.hasOwnProperty("table_rows")) - if (typeof message.table_rows === "number") - object.table_rows = options.longs === String ? String(message.table_rows) : message.table_rows; - else - object.table_rows = options.longs === String ? $util.Long.prototype.toString.call(message.table_rows) : options.longs === Number ? new $util.LongBits(message.table_rows.low >>> 0, message.table_rows.high >>> 0).toNumber() : message.table_rows; - if (message.added_unique_keys != null && message.hasOwnProperty("added_unique_keys")) - object.added_unique_keys = message.added_unique_keys; - if (message.removed_unique_keys != null && message.hasOwnProperty("removed_unique_keys")) - object.removed_unique_keys = message.removed_unique_keys; - if (message.log_file != null && message.hasOwnProperty("log_file")) - object.log_file = message.log_file; - if (message.artifact_retention != null && message.hasOwnProperty("artifact_retention")) - object.artifact_retention = $root.vttime.Duration.toObject(message.artifact_retention, options); - if (message.postpone_completion != null && message.hasOwnProperty("postpone_completion")) - object.postpone_completion = message.postpone_completion; - if (message.removed_unique_key_names != null && message.hasOwnProperty("removed_unique_key_names")) - object.removed_unique_key_names = message.removed_unique_key_names; - if (message.dropped_no_default_column_names != null && message.hasOwnProperty("dropped_no_default_column_names")) - object.dropped_no_default_column_names = message.dropped_no_default_column_names; - if (message.expanded_column_names != null && message.hasOwnProperty("expanded_column_names")) - object.expanded_column_names = message.expanded_column_names; - if (message.revertible_notes != null && message.hasOwnProperty("revertible_notes")) - object.revertible_notes = message.revertible_notes; - if (message.allow_concurrent != null && message.hasOwnProperty("allow_concurrent")) - object.allow_concurrent = message.allow_concurrent; - if (message.reverted_uuid != null && message.hasOwnProperty("reverted_uuid")) - object.reverted_uuid = message.reverted_uuid; - if (message.is_view != null && message.hasOwnProperty("is_view")) - object.is_view = message.is_view; - if (message.ready_to_complete != null && message.hasOwnProperty("ready_to_complete")) - object.ready_to_complete = message.ready_to_complete; - if (message.vitess_liveness_indicator != null && message.hasOwnProperty("vitess_liveness_indicator")) - if (typeof message.vitess_liveness_indicator === "number") - object.vitess_liveness_indicator = options.longs === String ? String(message.vitess_liveness_indicator) : message.vitess_liveness_indicator; - else - object.vitess_liveness_indicator = options.longs === String ? $util.Long.prototype.toString.call(message.vitess_liveness_indicator) : options.longs === Number ? new $util.LongBits(message.vitess_liveness_indicator.low >>> 0, message.vitess_liveness_indicator.high >>> 0).toNumber() : message.vitess_liveness_indicator; - if (message.user_throttle_ratio != null && message.hasOwnProperty("user_throttle_ratio")) - object.user_throttle_ratio = options.json && !isFinite(message.user_throttle_ratio) ? String(message.user_throttle_ratio) : message.user_throttle_ratio; - if (message.special_plan != null && message.hasOwnProperty("special_plan")) - object.special_plan = message.special_plan; - if (message.last_throttled_at != null && message.hasOwnProperty("last_throttled_at")) - object.last_throttled_at = $root.vttime.Time.toObject(message.last_throttled_at, options); - if (message.component_throttled != null && message.hasOwnProperty("component_throttled")) - object.component_throttled = message.component_throttled; - if (message.cancelled_at != null && message.hasOwnProperty("cancelled_at")) - object.cancelled_at = $root.vttime.Time.toObject(message.cancelled_at, options); - if (message.postpone_launch != null && message.hasOwnProperty("postpone_launch")) - object.postpone_launch = message.postpone_launch; - if (message.stage != null && message.hasOwnProperty("stage")) - object.stage = message.stage; - if (message.cutover_attempts != null && message.hasOwnProperty("cutover_attempts")) - object.cutover_attempts = message.cutover_attempts; - if (message.is_immediate_operation != null && message.hasOwnProperty("is_immediate_operation")) - object.is_immediate_operation = message.is_immediate_operation; - if (message.reviewed_at != null && message.hasOwnProperty("reviewed_at")) - object.reviewed_at = $root.vttime.Time.toObject(message.reviewed_at, options); - if (message.ready_to_complete_at != null && message.hasOwnProperty("ready_to_complete_at")) - object.ready_to_complete_at = $root.vttime.Time.toObject(message.ready_to_complete_at, options); - if (message.removed_foreign_key_names != null && message.hasOwnProperty("removed_foreign_key_names")) - object.removed_foreign_key_names = message.removed_foreign_key_names; return object; }; /** - * Converts this SchemaMigration to JSON. + * Converts this MaterializeSettings to JSON. * @function toJSON - * @memberof vtctldata.SchemaMigration + * @memberof vtctldata.MaterializeSettings * @instance * @returns {Object.} JSON object */ - SchemaMigration.prototype.toJSON = function toJSON() { + MaterializeSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SchemaMigration + * Gets the default type url for MaterializeSettings * @function getTypeUrl - * @memberof vtctldata.SchemaMigration + * @memberof vtctldata.MaterializeSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SchemaMigration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MaterializeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SchemaMigration"; + return typeUrlPrefix + "/vtctldata.MaterializeSettings"; }; - /** - * Strategy enum. - * @name vtctldata.SchemaMigration.Strategy - * @enum {number} - * @property {number} VITESS=0 VITESS value - * @property {number} ONLINE=0 ONLINE value - * @property {number} DIRECT=3 DIRECT value - * @property {number} MYSQL=4 MYSQL value - */ - SchemaMigration.Strategy = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "VITESS"] = 0; - values["ONLINE"] = 0; - values[valuesById[3] = "DIRECT"] = 3; - values[valuesById[4] = "MYSQL"] = 4; - return values; - })(); - - /** - * Status enum. - * @name vtctldata.SchemaMigration.Status - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} REQUESTED=1 REQUESTED value - * @property {number} CANCELLED=2 CANCELLED value - * @property {number} QUEUED=3 QUEUED value - * @property {number} READY=4 READY value - * @property {number} RUNNING=5 RUNNING value - * @property {number} COMPLETE=6 COMPLETE value - * @property {number} FAILED=7 FAILED value - */ - SchemaMigration.Status = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "REQUESTED"] = 1; - values[valuesById[2] = "CANCELLED"] = 2; - values[valuesById[3] = "QUEUED"] = 3; - values[valuesById[4] = "READY"] = 4; - values[valuesById[5] = "RUNNING"] = 5; - values[valuesById[6] = "COMPLETE"] = 6; - values[valuesById[7] = "FAILED"] = 7; - return values; - })(); - - return SchemaMigration; + 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 (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -127683,103 +128162,89 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * 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); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Shard(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Keyspace(); while (reader.pos < end) { let 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()); + case 2: { + message.keyspace = $root.topodata.Keyspace.decode(reader, reader.uint32()); break; } default: @@ -127791,166 +128256,205 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a Shard message from the specified reader or buffer, length delimited. + * Decodes a Keyspace message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.Shard + * @memberof vtctldata.Keyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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.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 Shard message. + * Verifies a Keyspace message. * @function verify - * @memberof vtctldata.Shard + * @memberof vtctldata.Keyspace * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Shard.verify = function verify(message) { + Keyspace.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) { - let error = $root.topodata.Shard.verify(message.shard); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + let error = $root.topodata.Keyspace.verify(message.keyspace); if (error) - return "shard." + error; + return "keyspace." + error; } return null; }; /** - * Creates a Shard message from a plain object. Also converts values to their respective internal types. + * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.Shard + * @memberof vtctldata.Keyspace * @static * @param {Object.} object Plain object - * @returns {vtctldata.Shard} Shard + * @returns {vtctldata.Keyspace} Keyspace */ - Shard.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Shard) + Keyspace.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Keyspace) return object; - let message = new $root.vtctldata.Shard(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); + let message = new $root.vtctldata.Keyspace(); if (object.name != null) message.name = String(object.name); - if (object.shard != null) { - if (typeof object.shard !== "object") - throw TypeError(".vtctldata.Shard.shard: object expected"); - message.shard = $root.topodata.Shard.fromObject(object.shard); + 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 Shard message. Also converts values to other types if specified. + * Creates a plain object from a Keyspace message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.Shard + * @memberof vtctldata.Keyspace * @static - * @param {vtctldata.Shard} message Shard + * @param {vtctldata.Keyspace} message Keyspace * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Shard.toObject = function toObject(message, options) { + Keyspace.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.keyspace = ""; object.name = ""; - object.shard = null; + object.keyspace = null; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = $root.topodata.Shard.toObject(message.shard, options); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = $root.topodata.Keyspace.toObject(message.keyspace, options); return object; }; /** - * Converts this Shard to JSON. + * Converts this Keyspace to JSON. * @function toJSON - * @memberof vtctldata.Shard + * @memberof vtctldata.Keyspace * @instance * @returns {Object.} JSON object */ - Shard.prototype.toJSON = function toJSON() { + Keyspace.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Shard + * Gets the default type url for Keyspace * @function getTypeUrl - * @memberof vtctldata.Shard + * @memberof vtctldata.Keyspace * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Shard.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Keyspace.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.Shard"; + return typeUrlPrefix + "/vtctldata.Keyspace"; }; - return Shard; + return Keyspace; })(); /** - * ShardedAutoIncrementHandling enum. - * @name vtctldata.ShardedAutoIncrementHandling + * QueryOrdering enum. + * @name vtctldata.QueryOrdering * @enum {number} - * @property {number} LEAVE=0 LEAVE value - * @property {number} REMOVE=1 REMOVE value - * @property {number} REPLACE=2 REPLACE value + * @property {number} NONE=0 NONE value + * @property {number} ASCENDING=1 ASCENDING value + * @property {number} DESCENDING=2 DESCENDING value */ - vtctldata.ShardedAutoIncrementHandling = (function() { + vtctldata.QueryOrdering = (function() { const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LEAVE"] = 0; - values[valuesById[1] = "REMOVE"] = 1; - values[valuesById[2] = "REPLACE"] = 2; + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "ASCENDING"] = 1; + values[valuesById[2] = "DESCENDING"] = 2; return values; })(); - vtctldata.WorkflowOptions = (function() { + vtctldata.SchemaMigration = (function() { /** - * Properties of a WorkflowOptions. + * Properties of a SchemaMigration. * @memberof vtctldata - * @interface IWorkflowOptions - * @property {string|null} [tenant_id] WorkflowOptions tenant_id - * @property {vtctldata.ShardedAutoIncrementHandling|null} [sharded_auto_increment_handling] WorkflowOptions sharded_auto_increment_handling - * @property {Array.|null} [shards] WorkflowOptions shards - * @property {Object.|null} [config] WorkflowOptions config - * @property {string|null} [global_keyspace] WorkflowOptions global_keyspace + * @interface ISchemaMigration + * @property {string|null} [uuid] SchemaMigration uuid + * @property {string|null} [keyspace] SchemaMigration keyspace + * @property {string|null} [shard] SchemaMigration shard + * @property {string|null} [schema] SchemaMigration schema + * @property {string|null} [table] SchemaMigration table + * @property {string|null} [migration_statement] SchemaMigration migration_statement + * @property {vtctldata.SchemaMigration.Strategy|null} [strategy] SchemaMigration strategy + * @property {string|null} [options] SchemaMigration options + * @property {vttime.ITime|null} [added_at] SchemaMigration added_at + * @property {vttime.ITime|null} [requested_at] SchemaMigration requested_at + * @property {vttime.ITime|null} [ready_at] SchemaMigration ready_at + * @property {vttime.ITime|null} [started_at] SchemaMigration started_at + * @property {vttime.ITime|null} [liveness_timestamp] SchemaMigration liveness_timestamp + * @property {vttime.ITime|null} [completed_at] SchemaMigration completed_at + * @property {vttime.ITime|null} [cleaned_up_at] SchemaMigration cleaned_up_at + * @property {vtctldata.SchemaMigration.Status|null} [status] SchemaMigration status + * @property {string|null} [log_path] SchemaMigration log_path + * @property {string|null} [artifacts] SchemaMigration artifacts + * @property {number|Long|null} [retries] SchemaMigration retries + * @property {topodata.ITabletAlias|null} [tablet] SchemaMigration tablet + * @property {boolean|null} [tablet_failure] SchemaMigration tablet_failure + * @property {number|null} [progress] SchemaMigration progress + * @property {string|null} [migration_context] SchemaMigration migration_context + * @property {string|null} [ddl_action] SchemaMigration ddl_action + * @property {string|null} [message] SchemaMigration message + * @property {number|Long|null} [eta_seconds] SchemaMigration eta_seconds + * @property {number|Long|null} [rows_copied] SchemaMigration rows_copied + * @property {number|Long|null} [table_rows] SchemaMigration table_rows + * @property {number|null} [added_unique_keys] SchemaMigration added_unique_keys + * @property {number|null} [removed_unique_keys] SchemaMigration removed_unique_keys + * @property {string|null} [log_file] SchemaMigration log_file + * @property {vttime.IDuration|null} [artifact_retention] SchemaMigration artifact_retention + * @property {boolean|null} [postpone_completion] SchemaMigration postpone_completion + * @property {string|null} [removed_unique_key_names] SchemaMigration removed_unique_key_names + * @property {string|null} [dropped_no_default_column_names] SchemaMigration dropped_no_default_column_names + * @property {string|null} [expanded_column_names] SchemaMigration expanded_column_names + * @property {string|null} [revertible_notes] SchemaMigration revertible_notes + * @property {boolean|null} [allow_concurrent] SchemaMigration allow_concurrent + * @property {string|null} [reverted_uuid] SchemaMigration reverted_uuid + * @property {boolean|null} [is_view] SchemaMigration is_view + * @property {boolean|null} [ready_to_complete] SchemaMigration ready_to_complete + * @property {number|Long|null} [vitess_liveness_indicator] SchemaMigration vitess_liveness_indicator + * @property {number|null} [user_throttle_ratio] SchemaMigration user_throttle_ratio + * @property {string|null} [special_plan] SchemaMigration special_plan + * @property {vttime.ITime|null} [last_throttled_at] SchemaMigration last_throttled_at + * @property {string|null} [component_throttled] SchemaMigration component_throttled + * @property {vttime.ITime|null} [cancelled_at] SchemaMigration cancelled_at + * @property {boolean|null} [postpone_launch] SchemaMigration postpone_launch + * @property {string|null} [stage] SchemaMigration stage + * @property {number|null} [cutover_attempts] SchemaMigration cutover_attempts + * @property {boolean|null} [is_immediate_operation] SchemaMigration is_immediate_operation + * @property {vttime.ITime|null} [reviewed_at] SchemaMigration reviewed_at + * @property {vttime.ITime|null} [ready_to_complete_at] SchemaMigration ready_to_complete_at + * @property {string|null} [removed_foreign_key_names] SchemaMigration removed_foreign_key_names */ /** - * Constructs a new WorkflowOptions. + * Constructs a new SchemaMigration. * @memberof vtctldata - * @classdesc Represents a WorkflowOptions. - * @implements IWorkflowOptions + * @classdesc Represents a SchemaMigration. + * @implements ISchemaMigration * @constructor - * @param {vtctldata.IWorkflowOptions=} [properties] Properties to set + * @param {vtctldata.ISchemaMigration=} [properties] Properties to set */ - function WorkflowOptions(properties) { - this.shards = []; - this.config = {}; + function SchemaMigration(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -127958,1785 +128462,2859 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * WorkflowOptions tenant_id. - * @member {string} tenant_id - * @memberof vtctldata.WorkflowOptions + * SchemaMigration uuid. + * @member {string} uuid + * @memberof vtctldata.SchemaMigration * @instance */ - WorkflowOptions.prototype.tenant_id = ""; + SchemaMigration.prototype.uuid = ""; /** - * WorkflowOptions sharded_auto_increment_handling. - * @member {vtctldata.ShardedAutoIncrementHandling} sharded_auto_increment_handling - * @memberof vtctldata.WorkflowOptions + * SchemaMigration keyspace. + * @member {string} keyspace + * @memberof vtctldata.SchemaMigration * @instance */ - WorkflowOptions.prototype.sharded_auto_increment_handling = 0; + SchemaMigration.prototype.keyspace = ""; /** - * WorkflowOptions shards. - * @member {Array.} shards - * @memberof vtctldata.WorkflowOptions + * SchemaMigration shard. + * @member {string} shard + * @memberof vtctldata.SchemaMigration * @instance */ - WorkflowOptions.prototype.shards = $util.emptyArray; + SchemaMigration.prototype.shard = ""; /** - * WorkflowOptions config. - * @member {Object.} config - * @memberof vtctldata.WorkflowOptions + * SchemaMigration schema. + * @member {string} schema + * @memberof vtctldata.SchemaMigration * @instance */ - WorkflowOptions.prototype.config = $util.emptyObject; + SchemaMigration.prototype.schema = ""; /** - * WorkflowOptions global_keyspace. - * @member {string} global_keyspace - * @memberof vtctldata.WorkflowOptions + * SchemaMigration table. + * @member {string} table + * @memberof vtctldata.SchemaMigration * @instance */ - WorkflowOptions.prototype.global_keyspace = ""; + SchemaMigration.prototype.table = ""; /** - * Creates a new WorkflowOptions instance using the specified properties. - * @function create - * @memberof vtctldata.WorkflowOptions - * @static - * @param {vtctldata.IWorkflowOptions=} [properties] Properties to set - * @returns {vtctldata.WorkflowOptions} WorkflowOptions instance + * SchemaMigration migration_statement. + * @member {string} migration_statement + * @memberof vtctldata.SchemaMigration + * @instance */ - WorkflowOptions.create = function create(properties) { - return new WorkflowOptions(properties); - }; + SchemaMigration.prototype.migration_statement = ""; /** - * Encodes the specified WorkflowOptions message. Does not implicitly {@link vtctldata.WorkflowOptions.verify|verify} messages. - * @function encode - * @memberof vtctldata.WorkflowOptions - * @static - * @param {vtctldata.IWorkflowOptions} message WorkflowOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * SchemaMigration strategy. + * @member {vtctldata.SchemaMigration.Strategy} strategy + * @memberof vtctldata.SchemaMigration + * @instance */ - WorkflowOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tenant_id != null && Object.hasOwnProperty.call(message, "tenant_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tenant_id); - if (message.sharded_auto_increment_handling != null && Object.hasOwnProperty.call(message, "sharded_auto_increment_handling")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sharded_auto_increment_handling); - if (message.shards != null && message.shards.length) - for (let i = 0; i < message.shards.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.shards[i]); - if (message.config != null && Object.hasOwnProperty.call(message, "config")) - for (let keys = Object.keys(message.config), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config[keys[i]]).ldelim(); - if (message.global_keyspace != null && Object.hasOwnProperty.call(message, "global_keyspace")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.global_keyspace); - return writer; - }; + SchemaMigration.prototype.strategy = 0; /** - * Encodes the specified WorkflowOptions message, length delimited. Does not implicitly {@link vtctldata.WorkflowOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.WorkflowOptions - * @static - * @param {vtctldata.IWorkflowOptions} message WorkflowOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * SchemaMigration options. + * @member {string} options + * @memberof vtctldata.SchemaMigration + * @instance */ - WorkflowOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + SchemaMigration.prototype.options = ""; /** - * Decodes a WorkflowOptions message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.WorkflowOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.WorkflowOptions} WorkflowOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * SchemaMigration added_at. + * @member {vttime.ITime|null|undefined} added_at + * @memberof vtctldata.SchemaMigration + * @instance */ - WorkflowOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.WorkflowOptions(), key, value; - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.tenant_id = reader.string(); - break; - } - case 2: { - message.sharded_auto_increment_handling = reader.int32(); - break; - } - case 3: { - if (!(message.shards && message.shards.length)) - message.shards = []; - message.shards.push(reader.string()); - break; - } - case 4: { - if (message.config === $util.emptyObject) - message.config = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.config[key] = value; - break; - } - case 5: { - message.global_keyspace = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + SchemaMigration.prototype.added_at = null; /** - * Decodes a WorkflowOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.WorkflowOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.WorkflowOptions} WorkflowOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * SchemaMigration requested_at. + * @member {vttime.ITime|null|undefined} requested_at + * @memberof vtctldata.SchemaMigration + * @instance */ - WorkflowOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + SchemaMigration.prototype.requested_at = null; /** - * Verifies a WorkflowOptions message. - * @function verify - * @memberof vtctldata.WorkflowOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * SchemaMigration ready_at. + * @member {vttime.ITime|null|undefined} ready_at + * @memberof vtctldata.SchemaMigration + * @instance */ - WorkflowOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tenant_id != null && message.hasOwnProperty("tenant_id")) - if (!$util.isString(message.tenant_id)) - return "tenant_id: string expected"; - if (message.sharded_auto_increment_handling != null && message.hasOwnProperty("sharded_auto_increment_handling")) - switch (message.sharded_auto_increment_handling) { - default: - return "sharded_auto_increment_handling: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.shards != null && message.hasOwnProperty("shards")) { - if (!Array.isArray(message.shards)) - return "shards: array expected"; - for (let i = 0; i < message.shards.length; ++i) - if (!$util.isString(message.shards[i])) - return "shards: string[] expected"; - } - if (message.config != null && message.hasOwnProperty("config")) { - if (!$util.isObject(message.config)) - return "config: object expected"; - let key = Object.keys(message.config); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.config[key[i]])) - return "config: string{k:string} expected"; - } - if (message.global_keyspace != null && message.hasOwnProperty("global_keyspace")) - if (!$util.isString(message.global_keyspace)) - return "global_keyspace: string expected"; - return null; - }; + SchemaMigration.prototype.ready_at = null; /** - * Creates a WorkflowOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.WorkflowOptions - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.WorkflowOptions} WorkflowOptions + * SchemaMigration started_at. + * @member {vttime.ITime|null|undefined} started_at + * @memberof vtctldata.SchemaMigration + * @instance */ - WorkflowOptions.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.WorkflowOptions) - return object; - let message = new $root.vtctldata.WorkflowOptions(); - if (object.tenant_id != null) - message.tenant_id = String(object.tenant_id); - switch (object.sharded_auto_increment_handling) { - default: - if (typeof object.sharded_auto_increment_handling === "number") { - message.sharded_auto_increment_handling = object.sharded_auto_increment_handling; - break; - } - break; - case "LEAVE": - case 0: - message.sharded_auto_increment_handling = 0; - break; - case "REMOVE": - case 1: - message.sharded_auto_increment_handling = 1; - break; - case "REPLACE": - case 2: - message.sharded_auto_increment_handling = 2; - break; - } - if (object.shards) { - if (!Array.isArray(object.shards)) - throw TypeError(".vtctldata.WorkflowOptions.shards: array expected"); - message.shards = []; - for (let i = 0; i < object.shards.length; ++i) - message.shards[i] = String(object.shards[i]); - } - if (object.config) { - if (typeof object.config !== "object") - throw TypeError(".vtctldata.WorkflowOptions.config: object expected"); - message.config = {}; - for (let keys = Object.keys(object.config), i = 0; i < keys.length; ++i) - message.config[keys[i]] = String(object.config[keys[i]]); - } - if (object.global_keyspace != null) - message.global_keyspace = String(object.global_keyspace); - return message; - }; + SchemaMigration.prototype.started_at = null; /** - * Creates a plain object from a WorkflowOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.WorkflowOptions - * @static - * @param {vtctldata.WorkflowOptions} message WorkflowOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * SchemaMigration liveness_timestamp. + * @member {vttime.ITime|null|undefined} liveness_timestamp + * @memberof vtctldata.SchemaMigration + * @instance */ - WorkflowOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.shards = []; - if (options.objects || options.defaults) - object.config = {}; - if (options.defaults) { - object.tenant_id = ""; - object.sharded_auto_increment_handling = options.enums === String ? "LEAVE" : 0; - object.global_keyspace = ""; - } - if (message.tenant_id != null && message.hasOwnProperty("tenant_id")) - object.tenant_id = message.tenant_id; - if (message.sharded_auto_increment_handling != null && message.hasOwnProperty("sharded_auto_increment_handling")) - object.sharded_auto_increment_handling = options.enums === String ? $root.vtctldata.ShardedAutoIncrementHandling[message.sharded_auto_increment_handling] === undefined ? message.sharded_auto_increment_handling : $root.vtctldata.ShardedAutoIncrementHandling[message.sharded_auto_increment_handling] : message.sharded_auto_increment_handling; - if (message.shards && message.shards.length) { - object.shards = []; - for (let j = 0; j < message.shards.length; ++j) - object.shards[j] = message.shards[j]; - } - let keys2; - if (message.config && (keys2 = Object.keys(message.config)).length) { - object.config = {}; - for (let j = 0; j < keys2.length; ++j) - object.config[keys2[j]] = message.config[keys2[j]]; - } - if (message.global_keyspace != null && message.hasOwnProperty("global_keyspace")) - object.global_keyspace = message.global_keyspace; - return object; - }; + SchemaMigration.prototype.liveness_timestamp = null; /** - * Converts this WorkflowOptions to JSON. - * @function toJSON - * @memberof vtctldata.WorkflowOptions + * SchemaMigration completed_at. + * @member {vttime.ITime|null|undefined} completed_at + * @memberof vtctldata.SchemaMigration * @instance - * @returns {Object.} JSON object */ - WorkflowOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + SchemaMigration.prototype.completed_at = null; /** - * Gets the default type url for WorkflowOptions - * @function getTypeUrl - * @memberof vtctldata.WorkflowOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * SchemaMigration cleaned_up_at. + * @member {vttime.ITime|null|undefined} cleaned_up_at + * @memberof vtctldata.SchemaMigration + * @instance */ - WorkflowOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.WorkflowOptions"; - }; + SchemaMigration.prototype.cleaned_up_at = null; - return WorkflowOptions; - })(); + /** + * SchemaMigration status. + * @member {vtctldata.SchemaMigration.Status} status + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.status = 0; - vtctldata.Workflow = (function() { + /** + * SchemaMigration log_path. + * @member {string} log_path + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.log_path = ""; /** - * Properties of a Workflow. - * @memberof vtctldata - * @interface IWorkflow - * @property {string|null} [name] Workflow name - * @property {vtctldata.Workflow.IReplicationLocation|null} [source] Workflow source - * @property {vtctldata.Workflow.IReplicationLocation|null} [target] Workflow target - * @property {number|Long|null} [max_v_replication_lag] Workflow max_v_replication_lag - * @property {Object.|null} [shard_streams] Workflow shard_streams - * @property {string|null} [workflow_type] Workflow workflow_type - * @property {string|null} [workflow_sub_type] Workflow workflow_sub_type - * @property {number|Long|null} [max_v_replication_transaction_lag] Workflow max_v_replication_transaction_lag - * @property {boolean|null} [defer_secondary_keys] Workflow defer_secondary_keys - * @property {vtctldata.IWorkflowOptions|null} [options] Workflow options + * SchemaMigration artifacts. + * @member {string} artifacts + * @memberof vtctldata.SchemaMigration + * @instance */ + SchemaMigration.prototype.artifacts = ""; /** - * Constructs a new Workflow. - * @memberof vtctldata - * @classdesc Represents a Workflow. - * @implements IWorkflow - * @constructor - * @param {vtctldata.IWorkflow=} [properties] Properties to set + * SchemaMigration retries. + * @member {number|Long} retries + * @memberof vtctldata.SchemaMigration + * @instance */ - function Workflow(properties) { - this.shard_streams = {}; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + SchemaMigration.prototype.retries = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Workflow name. - * @member {string} name - * @memberof vtctldata.Workflow + * SchemaMigration tablet. + * @member {topodata.ITabletAlias|null|undefined} tablet + * @memberof vtctldata.SchemaMigration * @instance */ - Workflow.prototype.name = ""; + SchemaMigration.prototype.tablet = null; /** - * Workflow source. - * @member {vtctldata.Workflow.IReplicationLocation|null|undefined} source - * @memberof vtctldata.Workflow + * SchemaMigration tablet_failure. + * @member {boolean} tablet_failure + * @memberof vtctldata.SchemaMigration * @instance */ - Workflow.prototype.source = null; + SchemaMigration.prototype.tablet_failure = false; /** - * Workflow target. - * @member {vtctldata.Workflow.IReplicationLocation|null|undefined} target - * @memberof vtctldata.Workflow + * SchemaMigration progress. + * @member {number} progress + * @memberof vtctldata.SchemaMigration * @instance */ - Workflow.prototype.target = null; + SchemaMigration.prototype.progress = 0; /** - * Workflow max_v_replication_lag. - * @member {number|Long} max_v_replication_lag - * @memberof vtctldata.Workflow + * SchemaMigration migration_context. + * @member {string} migration_context + * @memberof vtctldata.SchemaMigration * @instance */ - Workflow.prototype.max_v_replication_lag = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SchemaMigration.prototype.migration_context = ""; /** - * Workflow shard_streams. - * @member {Object.} shard_streams - * @memberof vtctldata.Workflow + * SchemaMigration ddl_action. + * @member {string} ddl_action + * @memberof vtctldata.SchemaMigration * @instance */ - Workflow.prototype.shard_streams = $util.emptyObject; + SchemaMigration.prototype.ddl_action = ""; /** - * Workflow workflow_type. - * @member {string} workflow_type - * @memberof vtctldata.Workflow + * SchemaMigration message. + * @member {string} message + * @memberof vtctldata.SchemaMigration * @instance */ - Workflow.prototype.workflow_type = ""; + SchemaMigration.prototype.message = ""; /** - * Workflow workflow_sub_type. - * @member {string} workflow_sub_type - * @memberof vtctldata.Workflow + * SchemaMigration eta_seconds. + * @member {number|Long} eta_seconds + * @memberof vtctldata.SchemaMigration * @instance */ - Workflow.prototype.workflow_sub_type = ""; + SchemaMigration.prototype.eta_seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Workflow max_v_replication_transaction_lag. - * @member {number|Long} max_v_replication_transaction_lag - * @memberof vtctldata.Workflow + * SchemaMigration rows_copied. + * @member {number|Long} rows_copied + * @memberof vtctldata.SchemaMigration * @instance */ - Workflow.prototype.max_v_replication_transaction_lag = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SchemaMigration.prototype.rows_copied = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Workflow defer_secondary_keys. - * @member {boolean} defer_secondary_keys - * @memberof vtctldata.Workflow + * SchemaMigration table_rows. + * @member {number|Long} table_rows + * @memberof vtctldata.SchemaMigration * @instance */ - Workflow.prototype.defer_secondary_keys = false; + SchemaMigration.prototype.table_rows = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Workflow options. - * @member {vtctldata.IWorkflowOptions|null|undefined} options - * @memberof vtctldata.Workflow + * SchemaMigration added_unique_keys. + * @member {number} added_unique_keys + * @memberof vtctldata.SchemaMigration * @instance */ - Workflow.prototype.options = null; + SchemaMigration.prototype.added_unique_keys = 0; /** - * Creates a new Workflow instance using the specified properties. + * SchemaMigration removed_unique_keys. + * @member {number} removed_unique_keys + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.removed_unique_keys = 0; + + /** + * SchemaMigration log_file. + * @member {string} log_file + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.log_file = ""; + + /** + * SchemaMigration artifact_retention. + * @member {vttime.IDuration|null|undefined} artifact_retention + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.artifact_retention = null; + + /** + * SchemaMigration postpone_completion. + * @member {boolean} postpone_completion + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.postpone_completion = false; + + /** + * SchemaMigration removed_unique_key_names. + * @member {string} removed_unique_key_names + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.removed_unique_key_names = ""; + + /** + * SchemaMigration dropped_no_default_column_names. + * @member {string} dropped_no_default_column_names + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.dropped_no_default_column_names = ""; + + /** + * SchemaMigration expanded_column_names. + * @member {string} expanded_column_names + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.expanded_column_names = ""; + + /** + * SchemaMigration revertible_notes. + * @member {string} revertible_notes + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.revertible_notes = ""; + + /** + * SchemaMigration allow_concurrent. + * @member {boolean} allow_concurrent + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.allow_concurrent = false; + + /** + * SchemaMigration reverted_uuid. + * @member {string} reverted_uuid + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.reverted_uuid = ""; + + /** + * SchemaMigration is_view. + * @member {boolean} is_view + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.is_view = false; + + /** + * SchemaMigration ready_to_complete. + * @member {boolean} ready_to_complete + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.ready_to_complete = false; + + /** + * SchemaMigration vitess_liveness_indicator. + * @member {number|Long} vitess_liveness_indicator + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.vitess_liveness_indicator = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SchemaMigration user_throttle_ratio. + * @member {number} user_throttle_ratio + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.user_throttle_ratio = 0; + + /** + * SchemaMigration special_plan. + * @member {string} special_plan + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.special_plan = ""; + + /** + * SchemaMigration last_throttled_at. + * @member {vttime.ITime|null|undefined} last_throttled_at + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.last_throttled_at = null; + + /** + * SchemaMigration component_throttled. + * @member {string} component_throttled + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.component_throttled = ""; + + /** + * SchemaMigration cancelled_at. + * @member {vttime.ITime|null|undefined} cancelled_at + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.cancelled_at = null; + + /** + * SchemaMigration postpone_launch. + * @member {boolean} postpone_launch + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.postpone_launch = false; + + /** + * SchemaMigration stage. + * @member {string} stage + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.stage = ""; + + /** + * SchemaMigration cutover_attempts. + * @member {number} cutover_attempts + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.cutover_attempts = 0; + + /** + * SchemaMigration is_immediate_operation. + * @member {boolean} is_immediate_operation + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.is_immediate_operation = false; + + /** + * SchemaMigration reviewed_at. + * @member {vttime.ITime|null|undefined} reviewed_at + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.reviewed_at = null; + + /** + * SchemaMigration ready_to_complete_at. + * @member {vttime.ITime|null|undefined} ready_to_complete_at + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.ready_to_complete_at = null; + + /** + * SchemaMigration removed_foreign_key_names. + * @member {string} removed_foreign_key_names + * @memberof vtctldata.SchemaMigration + * @instance + */ + SchemaMigration.prototype.removed_foreign_key_names = ""; + + /** + * Creates a new SchemaMigration instance using the specified properties. * @function create - * @memberof vtctldata.Workflow + * @memberof vtctldata.SchemaMigration * @static - * @param {vtctldata.IWorkflow=} [properties] Properties to set - * @returns {vtctldata.Workflow} Workflow instance + * @param {vtctldata.ISchemaMigration=} [properties] Properties to set + * @returns {vtctldata.SchemaMigration} SchemaMigration instance */ - Workflow.create = function create(properties) { - return new Workflow(properties); + SchemaMigration.create = function create(properties) { + return new SchemaMigration(properties); }; /** - * Encodes the specified Workflow message. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * Encodes the specified SchemaMigration message. Does not implicitly {@link vtctldata.SchemaMigration.verify|verify} messages. * @function encode - * @memberof vtctldata.Workflow + * @memberof vtctldata.SchemaMigration * @static - * @param {vtctldata.IWorkflow} message Workflow message or plain object to encode + * @param {vtctldata.ISchemaMigration} message SchemaMigration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Workflow.encode = function encode(message, writer) { + SchemaMigration.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.source != null && Object.hasOwnProperty.call(message, "source")) - $root.vtctldata.Workflow.ReplicationLocation.encode(message.source, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.vtctldata.Workflow.ReplicationLocation.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.max_v_replication_lag != null && Object.hasOwnProperty.call(message, "max_v_replication_lag")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.max_v_replication_lag); - if (message.shard_streams != null && Object.hasOwnProperty.call(message, "shard_streams")) - for (let keys = Object.keys(message.shard_streams), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vtctldata.Workflow.ShardStream.encode(message.shard_streams[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.workflow_type != null && Object.hasOwnProperty.call(message, "workflow_type")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.workflow_type); - if (message.workflow_sub_type != null && Object.hasOwnProperty.call(message, "workflow_sub_type")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.workflow_sub_type); - if (message.max_v_replication_transaction_lag != null && Object.hasOwnProperty.call(message, "max_v_replication_transaction_lag")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.max_v_replication_transaction_lag); - if (message.defer_secondary_keys != null && Object.hasOwnProperty.call(message, "defer_secondary_keys")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.defer_secondary_keys); + if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid); + 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.schema != null && Object.hasOwnProperty.call(message, "schema")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.schema); + if (message.table != null && Object.hasOwnProperty.call(message, "table")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.table); + if (message.migration_statement != null && Object.hasOwnProperty.call(message, "migration_statement")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.migration_statement); + if (message.strategy != null && Object.hasOwnProperty.call(message, "strategy")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.strategy); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.vtctldata.WorkflowOptions.encode(message.options, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + writer.uint32(/* id 8, wireType 2 =*/66).string(message.options); + if (message.added_at != null && Object.hasOwnProperty.call(message, "added_at")) + $root.vttime.Time.encode(message.added_at, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.requested_at != null && Object.hasOwnProperty.call(message, "requested_at")) + $root.vttime.Time.encode(message.requested_at, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.ready_at != null && Object.hasOwnProperty.call(message, "ready_at")) + $root.vttime.Time.encode(message.ready_at, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.started_at != null && Object.hasOwnProperty.call(message, "started_at")) + $root.vttime.Time.encode(message.started_at, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.liveness_timestamp != null && Object.hasOwnProperty.call(message, "liveness_timestamp")) + $root.vttime.Time.encode(message.liveness_timestamp, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.completed_at != null && Object.hasOwnProperty.call(message, "completed_at")) + $root.vttime.Time.encode(message.completed_at, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.cleaned_up_at != null && Object.hasOwnProperty.call(message, "cleaned_up_at")) + $root.vttime.Time.encode(message.cleaned_up_at, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.status); + if (message.log_path != null && Object.hasOwnProperty.call(message, "log_path")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.log_path); + if (message.artifacts != null && Object.hasOwnProperty.call(message, "artifacts")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.artifacts); + if (message.retries != null && Object.hasOwnProperty.call(message, "retries")) + writer.uint32(/* id 19, wireType 0 =*/152).uint64(message.retries); + if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) + $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.tablet_failure != null && Object.hasOwnProperty.call(message, "tablet_failure")) + writer.uint32(/* id 21, wireType 0 =*/168).bool(message.tablet_failure); + if (message.progress != null && Object.hasOwnProperty.call(message, "progress")) + writer.uint32(/* id 22, wireType 5 =*/181).float(message.progress); + if (message.migration_context != null && Object.hasOwnProperty.call(message, "migration_context")) + writer.uint32(/* id 23, wireType 2 =*/186).string(message.migration_context); + if (message.ddl_action != null && Object.hasOwnProperty.call(message, "ddl_action")) + writer.uint32(/* id 24, wireType 2 =*/194).string(message.ddl_action); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 25, wireType 2 =*/202).string(message.message); + if (message.eta_seconds != null && Object.hasOwnProperty.call(message, "eta_seconds")) + writer.uint32(/* id 26, wireType 0 =*/208).int64(message.eta_seconds); + if (message.rows_copied != null && Object.hasOwnProperty.call(message, "rows_copied")) + writer.uint32(/* id 27, wireType 0 =*/216).uint64(message.rows_copied); + if (message.table_rows != null && Object.hasOwnProperty.call(message, "table_rows")) + writer.uint32(/* id 28, wireType 0 =*/224).int64(message.table_rows); + if (message.added_unique_keys != null && Object.hasOwnProperty.call(message, "added_unique_keys")) + writer.uint32(/* id 29, wireType 0 =*/232).uint32(message.added_unique_keys); + if (message.removed_unique_keys != null && Object.hasOwnProperty.call(message, "removed_unique_keys")) + writer.uint32(/* id 30, wireType 0 =*/240).uint32(message.removed_unique_keys); + if (message.log_file != null && Object.hasOwnProperty.call(message, "log_file")) + writer.uint32(/* id 31, wireType 2 =*/250).string(message.log_file); + if (message.artifact_retention != null && Object.hasOwnProperty.call(message, "artifact_retention")) + $root.vttime.Duration.encode(message.artifact_retention, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); + if (message.postpone_completion != null && Object.hasOwnProperty.call(message, "postpone_completion")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.postpone_completion); + if (message.removed_unique_key_names != null && Object.hasOwnProperty.call(message, "removed_unique_key_names")) + writer.uint32(/* id 34, wireType 2 =*/274).string(message.removed_unique_key_names); + if (message.dropped_no_default_column_names != null && Object.hasOwnProperty.call(message, "dropped_no_default_column_names")) + writer.uint32(/* id 35, wireType 2 =*/282).string(message.dropped_no_default_column_names); + if (message.expanded_column_names != null && Object.hasOwnProperty.call(message, "expanded_column_names")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.expanded_column_names); + if (message.revertible_notes != null && Object.hasOwnProperty.call(message, "revertible_notes")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.revertible_notes); + if (message.allow_concurrent != null && Object.hasOwnProperty.call(message, "allow_concurrent")) + writer.uint32(/* id 38, wireType 0 =*/304).bool(message.allow_concurrent); + if (message.reverted_uuid != null && Object.hasOwnProperty.call(message, "reverted_uuid")) + writer.uint32(/* id 39, wireType 2 =*/314).string(message.reverted_uuid); + if (message.is_view != null && Object.hasOwnProperty.call(message, "is_view")) + writer.uint32(/* id 40, wireType 0 =*/320).bool(message.is_view); + if (message.ready_to_complete != null && Object.hasOwnProperty.call(message, "ready_to_complete")) + writer.uint32(/* id 41, wireType 0 =*/328).bool(message.ready_to_complete); + if (message.vitess_liveness_indicator != null && Object.hasOwnProperty.call(message, "vitess_liveness_indicator")) + writer.uint32(/* id 42, wireType 0 =*/336).int64(message.vitess_liveness_indicator); + if (message.user_throttle_ratio != null && Object.hasOwnProperty.call(message, "user_throttle_ratio")) + writer.uint32(/* id 43, wireType 5 =*/349).float(message.user_throttle_ratio); + if (message.special_plan != null && Object.hasOwnProperty.call(message, "special_plan")) + writer.uint32(/* id 44, wireType 2 =*/354).string(message.special_plan); + if (message.last_throttled_at != null && Object.hasOwnProperty.call(message, "last_throttled_at")) + $root.vttime.Time.encode(message.last_throttled_at, writer.uint32(/* id 45, wireType 2 =*/362).fork()).ldelim(); + if (message.component_throttled != null && Object.hasOwnProperty.call(message, "component_throttled")) + writer.uint32(/* id 46, wireType 2 =*/370).string(message.component_throttled); + if (message.cancelled_at != null && Object.hasOwnProperty.call(message, "cancelled_at")) + $root.vttime.Time.encode(message.cancelled_at, writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim(); + if (message.postpone_launch != null && Object.hasOwnProperty.call(message, "postpone_launch")) + writer.uint32(/* id 48, wireType 0 =*/384).bool(message.postpone_launch); + if (message.stage != null && Object.hasOwnProperty.call(message, "stage")) + writer.uint32(/* id 49, wireType 2 =*/394).string(message.stage); + if (message.cutover_attempts != null && Object.hasOwnProperty.call(message, "cutover_attempts")) + writer.uint32(/* id 50, wireType 0 =*/400).uint32(message.cutover_attempts); + if (message.is_immediate_operation != null && Object.hasOwnProperty.call(message, "is_immediate_operation")) + writer.uint32(/* id 51, wireType 0 =*/408).bool(message.is_immediate_operation); + if (message.reviewed_at != null && Object.hasOwnProperty.call(message, "reviewed_at")) + $root.vttime.Time.encode(message.reviewed_at, writer.uint32(/* id 52, wireType 2 =*/418).fork()).ldelim(); + if (message.ready_to_complete_at != null && Object.hasOwnProperty.call(message, "ready_to_complete_at")) + $root.vttime.Time.encode(message.ready_to_complete_at, writer.uint32(/* id 53, wireType 2 =*/426).fork()).ldelim(); + if (message.removed_foreign_key_names != null && Object.hasOwnProperty.call(message, "removed_foreign_key_names")) + writer.uint32(/* id 54, wireType 2 =*/434).string(message.removed_foreign_key_names); return writer; }; /** - * Encodes the specified Workflow message, length delimited. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * Encodes the specified SchemaMigration message, length delimited. Does not implicitly {@link vtctldata.SchemaMigration.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.Workflow + * @memberof vtctldata.SchemaMigration * @static - * @param {vtctldata.IWorkflow} message Workflow message or plain object to encode + * @param {vtctldata.ISchemaMigration} message SchemaMigration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Workflow.encodeDelimited = function encodeDelimited(message, writer) { + SchemaMigration.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Workflow message from the specified reader or buffer. + * Decodes a SchemaMigration message from the specified reader or buffer. * @function decode - * @memberof vtctldata.Workflow + * @memberof vtctldata.SchemaMigration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow} Workflow + * @returns {vtctldata.SchemaMigration} SchemaMigration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Workflow.decode = function decode(reader, length) { + SchemaMigration.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SchemaMigration(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.uuid = reader.string(); break; } case 2: { - message.source = $root.vtctldata.Workflow.ReplicationLocation.decode(reader, reader.uint32()); + message.keyspace = reader.string(); break; } case 3: { - message.target = $root.vtctldata.Workflow.ReplicationLocation.decode(reader, reader.uint32()); + message.shard = reader.string(); break; } case 4: { - message.max_v_replication_lag = reader.int64(); + message.schema = reader.string(); break; } case 5: { - if (message.shard_streams === $util.emptyObject) - message.shard_streams = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vtctldata.Workflow.ShardStream.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.shard_streams[key] = value; + message.table = reader.string(); break; } case 6: { - message.workflow_type = reader.string(); + message.migration_statement = reader.string(); break; } case 7: { - message.workflow_sub_type = reader.string(); + message.strategy = reader.int32(); break; } case 8: { - message.max_v_replication_transaction_lag = reader.int64(); + message.options = reader.string(); break; } case 9: { - message.defer_secondary_keys = reader.bool(); + message.added_at = $root.vttime.Time.decode(reader, reader.uint32()); break; } case 10: { - message.options = $root.vtctldata.WorkflowOptions.decode(reader, reader.uint32()); + message.requested_at = $root.vttime.Time.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Workflow message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.Workflow - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow} Workflow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Workflow.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Workflow message. - * @function verify - * @memberof vtctldata.Workflow - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Workflow.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.source != null && message.hasOwnProperty("source")) { - let error = $root.vtctldata.Workflow.ReplicationLocation.verify(message.source); - if (error) - return "source." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - let error = $root.vtctldata.Workflow.ReplicationLocation.verify(message.target); - if (error) - return "target." + error; - } - if (message.max_v_replication_lag != null && message.hasOwnProperty("max_v_replication_lag")) - if (!$util.isInteger(message.max_v_replication_lag) && !(message.max_v_replication_lag && $util.isInteger(message.max_v_replication_lag.low) && $util.isInteger(message.max_v_replication_lag.high))) - return "max_v_replication_lag: integer|Long expected"; - if (message.shard_streams != null && message.hasOwnProperty("shard_streams")) { - if (!$util.isObject(message.shard_streams)) - return "shard_streams: object expected"; - let key = Object.keys(message.shard_streams); - for (let i = 0; i < key.length; ++i) { - let error = $root.vtctldata.Workflow.ShardStream.verify(message.shard_streams[key[i]]); - if (error) - return "shard_streams." + error; + case 11: { + message.ready_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 12: { + message.started_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 13: { + message.liveness_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 14: { + message.completed_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 15: { + message.cleaned_up_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 16: { + message.status = reader.int32(); + break; + } + case 17: { + message.log_path = reader.string(); + break; + } + case 18: { + message.artifacts = reader.string(); + break; + } + case 19: { + message.retries = reader.uint64(); + break; + } + case 20: { + message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 21: { + message.tablet_failure = reader.bool(); + break; + } + case 22: { + message.progress = reader.float(); + break; + } + case 23: { + message.migration_context = reader.string(); + break; + } + case 24: { + message.ddl_action = reader.string(); + break; + } + case 25: { + message.message = reader.string(); + break; + } + case 26: { + message.eta_seconds = reader.int64(); + break; + } + case 27: { + message.rows_copied = reader.uint64(); + break; + } + case 28: { + message.table_rows = reader.int64(); + break; + } + case 29: { + message.added_unique_keys = reader.uint32(); + break; + } + case 30: { + message.removed_unique_keys = reader.uint32(); + break; + } + case 31: { + message.log_file = reader.string(); + break; + } + case 32: { + message.artifact_retention = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + } + case 33: { + message.postpone_completion = reader.bool(); + break; + } + case 34: { + message.removed_unique_key_names = reader.string(); + break; + } + case 35: { + message.dropped_no_default_column_names = reader.string(); + break; + } + case 36: { + message.expanded_column_names = reader.string(); + break; + } + case 37: { + message.revertible_notes = reader.string(); + break; + } + case 38: { + message.allow_concurrent = reader.bool(); + break; + } + case 39: { + message.reverted_uuid = reader.string(); + break; + } + case 40: { + message.is_view = reader.bool(); + break; + } + case 41: { + message.ready_to_complete = reader.bool(); + break; + } + case 42: { + message.vitess_liveness_indicator = reader.int64(); + break; + } + case 43: { + message.user_throttle_ratio = reader.float(); + break; + } + case 44: { + message.special_plan = reader.string(); + break; + } + case 45: { + message.last_throttled_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 46: { + message.component_throttled = reader.string(); + break; + } + case 47: { + message.cancelled_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 48: { + message.postpone_launch = reader.bool(); + break; + } + case 49: { + message.stage = reader.string(); + break; + } + case 50: { + message.cutover_attempts = reader.uint32(); + break; + } + case 51: { + message.is_immediate_operation = reader.bool(); + break; + } + case 52: { + message.reviewed_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 53: { + message.ready_to_complete_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 54: { + message.removed_foreign_key_names = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; } } - if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) - if (!$util.isString(message.workflow_type)) - return "workflow_type: string expected"; - if (message.workflow_sub_type != null && message.hasOwnProperty("workflow_sub_type")) - if (!$util.isString(message.workflow_sub_type)) - return "workflow_sub_type: string expected"; - if (message.max_v_replication_transaction_lag != null && message.hasOwnProperty("max_v_replication_transaction_lag")) - if (!$util.isInteger(message.max_v_replication_transaction_lag) && !(message.max_v_replication_transaction_lag && $util.isInteger(message.max_v_replication_transaction_lag.low) && $util.isInteger(message.max_v_replication_transaction_lag.high))) - return "max_v_replication_transaction_lag: integer|Long expected"; - if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) - if (typeof message.defer_secondary_keys !== "boolean") - return "defer_secondary_keys: boolean expected"; - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.vtctldata.WorkflowOptions.verify(message.options); + return message; + }; + + /** + * Decodes a SchemaMigration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.SchemaMigration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.SchemaMigration} SchemaMigration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchemaMigration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SchemaMigration message. + * @function verify + * @memberof vtctldata.SchemaMigration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SchemaMigration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uuid != null && message.hasOwnProperty("uuid")) + if (!$util.isString(message.uuid)) + return "uuid: string expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.schema != null && message.hasOwnProperty("schema")) + if (!$util.isString(message.schema)) + return "schema: string expected"; + if (message.table != null && message.hasOwnProperty("table")) + if (!$util.isString(message.table)) + return "table: string expected"; + if (message.migration_statement != null && message.hasOwnProperty("migration_statement")) + if (!$util.isString(message.migration_statement)) + return "migration_statement: string expected"; + if (message.strategy != null && message.hasOwnProperty("strategy")) + switch (message.strategy) { + default: + return "strategy: enum value expected"; + case 0: + case 0: + case 3: + case 4: + break; + } + if (message.options != null && message.hasOwnProperty("options")) + if (!$util.isString(message.options)) + return "options: string expected"; + if (message.added_at != null && message.hasOwnProperty("added_at")) { + let error = $root.vttime.Time.verify(message.added_at); if (error) - return "options." + error; + return "added_at." + error; + } + if (message.requested_at != null && message.hasOwnProperty("requested_at")) { + let error = $root.vttime.Time.verify(message.requested_at); + if (error) + return "requested_at." + error; + } + if (message.ready_at != null && message.hasOwnProperty("ready_at")) { + let error = $root.vttime.Time.verify(message.ready_at); + if (error) + return "ready_at." + error; + } + if (message.started_at != null && message.hasOwnProperty("started_at")) { + let error = $root.vttime.Time.verify(message.started_at); + if (error) + return "started_at." + error; + } + if (message.liveness_timestamp != null && message.hasOwnProperty("liveness_timestamp")) { + let error = $root.vttime.Time.verify(message.liveness_timestamp); + if (error) + return "liveness_timestamp." + error; + } + if (message.completed_at != null && message.hasOwnProperty("completed_at")) { + let error = $root.vttime.Time.verify(message.completed_at); + if (error) + return "completed_at." + error; + } + if (message.cleaned_up_at != null && message.hasOwnProperty("cleaned_up_at")) { + let error = $root.vttime.Time.verify(message.cleaned_up_at); + if (error) + return "cleaned_up_at." + error; + } + if (message.status != null && message.hasOwnProperty("status")) + switch (message.status) { + default: + return "status: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.log_path != null && message.hasOwnProperty("log_path")) + if (!$util.isString(message.log_path)) + return "log_path: string expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) + if (!$util.isString(message.artifacts)) + return "artifacts: string expected"; + if (message.retries != null && message.hasOwnProperty("retries")) + if (!$util.isInteger(message.retries) && !(message.retries && $util.isInteger(message.retries.low) && $util.isInteger(message.retries.high))) + return "retries: integer|Long expected"; + if (message.tablet != null && message.hasOwnProperty("tablet")) { + let error = $root.topodata.TabletAlias.verify(message.tablet); + if (error) + return "tablet." + error; + } + if (message.tablet_failure != null && message.hasOwnProperty("tablet_failure")) + if (typeof message.tablet_failure !== "boolean") + return "tablet_failure: boolean expected"; + if (message.progress != null && message.hasOwnProperty("progress")) + if (typeof message.progress !== "number") + return "progress: number expected"; + if (message.migration_context != null && message.hasOwnProperty("migration_context")) + if (!$util.isString(message.migration_context)) + return "migration_context: string expected"; + if (message.ddl_action != null && message.hasOwnProperty("ddl_action")) + if (!$util.isString(message.ddl_action)) + return "ddl_action: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.eta_seconds != null && message.hasOwnProperty("eta_seconds")) + if (!$util.isInteger(message.eta_seconds) && !(message.eta_seconds && $util.isInteger(message.eta_seconds.low) && $util.isInteger(message.eta_seconds.high))) + return "eta_seconds: integer|Long expected"; + if (message.rows_copied != null && message.hasOwnProperty("rows_copied")) + if (!$util.isInteger(message.rows_copied) && !(message.rows_copied && $util.isInteger(message.rows_copied.low) && $util.isInteger(message.rows_copied.high))) + return "rows_copied: integer|Long expected"; + if (message.table_rows != null && message.hasOwnProperty("table_rows")) + if (!$util.isInteger(message.table_rows) && !(message.table_rows && $util.isInteger(message.table_rows.low) && $util.isInteger(message.table_rows.high))) + return "table_rows: integer|Long expected"; + if (message.added_unique_keys != null && message.hasOwnProperty("added_unique_keys")) + if (!$util.isInteger(message.added_unique_keys)) + return "added_unique_keys: integer expected"; + if (message.removed_unique_keys != null && message.hasOwnProperty("removed_unique_keys")) + if (!$util.isInteger(message.removed_unique_keys)) + return "removed_unique_keys: integer expected"; + if (message.log_file != null && message.hasOwnProperty("log_file")) + if (!$util.isString(message.log_file)) + return "log_file: string expected"; + if (message.artifact_retention != null && message.hasOwnProperty("artifact_retention")) { + let error = $root.vttime.Duration.verify(message.artifact_retention); + if (error) + return "artifact_retention." + error; + } + if (message.postpone_completion != null && message.hasOwnProperty("postpone_completion")) + if (typeof message.postpone_completion !== "boolean") + return "postpone_completion: boolean expected"; + if (message.removed_unique_key_names != null && message.hasOwnProperty("removed_unique_key_names")) + if (!$util.isString(message.removed_unique_key_names)) + return "removed_unique_key_names: string expected"; + if (message.dropped_no_default_column_names != null && message.hasOwnProperty("dropped_no_default_column_names")) + if (!$util.isString(message.dropped_no_default_column_names)) + return "dropped_no_default_column_names: string expected"; + if (message.expanded_column_names != null && message.hasOwnProperty("expanded_column_names")) + if (!$util.isString(message.expanded_column_names)) + return "expanded_column_names: string expected"; + if (message.revertible_notes != null && message.hasOwnProperty("revertible_notes")) + if (!$util.isString(message.revertible_notes)) + return "revertible_notes: string expected"; + if (message.allow_concurrent != null && message.hasOwnProperty("allow_concurrent")) + if (typeof message.allow_concurrent !== "boolean") + return "allow_concurrent: boolean expected"; + if (message.reverted_uuid != null && message.hasOwnProperty("reverted_uuid")) + if (!$util.isString(message.reverted_uuid)) + return "reverted_uuid: string expected"; + if (message.is_view != null && message.hasOwnProperty("is_view")) + if (typeof message.is_view !== "boolean") + return "is_view: boolean expected"; + if (message.ready_to_complete != null && message.hasOwnProperty("ready_to_complete")) + if (typeof message.ready_to_complete !== "boolean") + return "ready_to_complete: boolean expected"; + if (message.vitess_liveness_indicator != null && message.hasOwnProperty("vitess_liveness_indicator")) + if (!$util.isInteger(message.vitess_liveness_indicator) && !(message.vitess_liveness_indicator && $util.isInteger(message.vitess_liveness_indicator.low) && $util.isInteger(message.vitess_liveness_indicator.high))) + return "vitess_liveness_indicator: integer|Long expected"; + if (message.user_throttle_ratio != null && message.hasOwnProperty("user_throttle_ratio")) + if (typeof message.user_throttle_ratio !== "number") + return "user_throttle_ratio: number expected"; + if (message.special_plan != null && message.hasOwnProperty("special_plan")) + if (!$util.isString(message.special_plan)) + return "special_plan: string expected"; + if (message.last_throttled_at != null && message.hasOwnProperty("last_throttled_at")) { + let error = $root.vttime.Time.verify(message.last_throttled_at); + if (error) + return "last_throttled_at." + error; + } + if (message.component_throttled != null && message.hasOwnProperty("component_throttled")) + if (!$util.isString(message.component_throttled)) + return "component_throttled: string expected"; + if (message.cancelled_at != null && message.hasOwnProperty("cancelled_at")) { + let error = $root.vttime.Time.verify(message.cancelled_at); + if (error) + return "cancelled_at." + error; + } + if (message.postpone_launch != null && message.hasOwnProperty("postpone_launch")) + if (typeof message.postpone_launch !== "boolean") + return "postpone_launch: boolean expected"; + if (message.stage != null && message.hasOwnProperty("stage")) + if (!$util.isString(message.stage)) + return "stage: string expected"; + if (message.cutover_attempts != null && message.hasOwnProperty("cutover_attempts")) + if (!$util.isInteger(message.cutover_attempts)) + return "cutover_attempts: integer expected"; + if (message.is_immediate_operation != null && message.hasOwnProperty("is_immediate_operation")) + if (typeof message.is_immediate_operation !== "boolean") + return "is_immediate_operation: boolean expected"; + if (message.reviewed_at != null && message.hasOwnProperty("reviewed_at")) { + let error = $root.vttime.Time.verify(message.reviewed_at); + if (error) + return "reviewed_at." + error; + } + if (message.ready_to_complete_at != null && message.hasOwnProperty("ready_to_complete_at")) { + let error = $root.vttime.Time.verify(message.ready_to_complete_at); + if (error) + return "ready_to_complete_at." + error; } + if (message.removed_foreign_key_names != null && message.hasOwnProperty("removed_foreign_key_names")) + if (!$util.isString(message.removed_foreign_key_names)) + return "removed_foreign_key_names: string expected"; return null; }; /** - * Creates a Workflow message from a plain object. Also converts values to their respective internal types. + * Creates a SchemaMigration message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.Workflow + * @memberof vtctldata.SchemaMigration * @static * @param {Object.} object Plain object - * @returns {vtctldata.Workflow} Workflow + * @returns {vtctldata.SchemaMigration} SchemaMigration */ - Workflow.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow) + SchemaMigration.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SchemaMigration) return object; - let message = new $root.vtctldata.Workflow(); - if (object.name != null) - message.name = String(object.name); - if (object.source != null) { - if (typeof object.source !== "object") - throw TypeError(".vtctldata.Workflow.source: object expected"); - message.source = $root.vtctldata.Workflow.ReplicationLocation.fromObject(object.source); + let message = new $root.vtctldata.SchemaMigration(); + if (object.uuid != null) + message.uuid = String(object.uuid); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.schema != null) + message.schema = String(object.schema); + if (object.table != null) + message.table = String(object.table); + if (object.migration_statement != null) + message.migration_statement = String(object.migration_statement); + switch (object.strategy) { + default: + if (typeof object.strategy === "number") { + message.strategy = object.strategy; + break; + } + break; + case "VITESS": + case 0: + message.strategy = 0; + break; + case "ONLINE": + case 0: + message.strategy = 0; + break; + case "DIRECT": + case 3: + message.strategy = 3; + break; + case "MYSQL": + case 4: + message.strategy = 4; + break; } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".vtctldata.Workflow.target: object expected"); - message.target = $root.vtctldata.Workflow.ReplicationLocation.fromObject(object.target); + if (object.options != null) + message.options = String(object.options); + if (object.added_at != null) { + if (typeof object.added_at !== "object") + throw TypeError(".vtctldata.SchemaMigration.added_at: object expected"); + message.added_at = $root.vttime.Time.fromObject(object.added_at); } - if (object.max_v_replication_lag != null) - if ($util.Long) - (message.max_v_replication_lag = $util.Long.fromValue(object.max_v_replication_lag)).unsigned = false; - else if (typeof object.max_v_replication_lag === "string") - message.max_v_replication_lag = parseInt(object.max_v_replication_lag, 10); - else if (typeof object.max_v_replication_lag === "number") - message.max_v_replication_lag = object.max_v_replication_lag; - else if (typeof object.max_v_replication_lag === "object") - message.max_v_replication_lag = new $util.LongBits(object.max_v_replication_lag.low >>> 0, object.max_v_replication_lag.high >>> 0).toNumber(); - if (object.shard_streams) { - if (typeof object.shard_streams !== "object") - throw TypeError(".vtctldata.Workflow.shard_streams: object expected"); - message.shard_streams = {}; - for (let keys = Object.keys(object.shard_streams), i = 0; i < keys.length; ++i) { - if (typeof object.shard_streams[keys[i]] !== "object") - throw TypeError(".vtctldata.Workflow.shard_streams: object expected"); - message.shard_streams[keys[i]] = $root.vtctldata.Workflow.ShardStream.fromObject(object.shard_streams[keys[i]]); + if (object.requested_at != null) { + if (typeof object.requested_at !== "object") + throw TypeError(".vtctldata.SchemaMigration.requested_at: object expected"); + message.requested_at = $root.vttime.Time.fromObject(object.requested_at); + } + if (object.ready_at != null) { + if (typeof object.ready_at !== "object") + throw TypeError(".vtctldata.SchemaMigration.ready_at: object expected"); + message.ready_at = $root.vttime.Time.fromObject(object.ready_at); + } + if (object.started_at != null) { + if (typeof object.started_at !== "object") + throw TypeError(".vtctldata.SchemaMigration.started_at: object expected"); + message.started_at = $root.vttime.Time.fromObject(object.started_at); + } + if (object.liveness_timestamp != null) { + if (typeof object.liveness_timestamp !== "object") + throw TypeError(".vtctldata.SchemaMigration.liveness_timestamp: object expected"); + message.liveness_timestamp = $root.vttime.Time.fromObject(object.liveness_timestamp); + } + if (object.completed_at != null) { + if (typeof object.completed_at !== "object") + throw TypeError(".vtctldata.SchemaMigration.completed_at: object expected"); + message.completed_at = $root.vttime.Time.fromObject(object.completed_at); + } + if (object.cleaned_up_at != null) { + if (typeof object.cleaned_up_at !== "object") + throw TypeError(".vtctldata.SchemaMigration.cleaned_up_at: object expected"); + message.cleaned_up_at = $root.vttime.Time.fromObject(object.cleaned_up_at); + } + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; } + break; + case "UNKNOWN": + case 0: + message.status = 0; + break; + case "REQUESTED": + case 1: + message.status = 1; + break; + case "CANCELLED": + case 2: + message.status = 2; + break; + case "QUEUED": + case 3: + message.status = 3; + break; + case "READY": + case 4: + message.status = 4; + break; + case "RUNNING": + case 5: + message.status = 5; + break; + case "COMPLETE": + case 6: + message.status = 6; + break; + case "FAILED": + case 7: + message.status = 7; + break; } - if (object.workflow_type != null) - message.workflow_type = String(object.workflow_type); - if (object.workflow_sub_type != null) - message.workflow_sub_type = String(object.workflow_sub_type); - if (object.max_v_replication_transaction_lag != null) + if (object.log_path != null) + message.log_path = String(object.log_path); + if (object.artifacts != null) + message.artifacts = String(object.artifacts); + if (object.retries != null) if ($util.Long) - (message.max_v_replication_transaction_lag = $util.Long.fromValue(object.max_v_replication_transaction_lag)).unsigned = false; - else if (typeof object.max_v_replication_transaction_lag === "string") - message.max_v_replication_transaction_lag = parseInt(object.max_v_replication_transaction_lag, 10); - else if (typeof object.max_v_replication_transaction_lag === "number") - message.max_v_replication_transaction_lag = object.max_v_replication_transaction_lag; - else if (typeof object.max_v_replication_transaction_lag === "object") - message.max_v_replication_transaction_lag = new $util.LongBits(object.max_v_replication_transaction_lag.low >>> 0, object.max_v_replication_transaction_lag.high >>> 0).toNumber(); - if (object.defer_secondary_keys != null) - message.defer_secondary_keys = Boolean(object.defer_secondary_keys); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".vtctldata.Workflow.options: object expected"); - message.options = $root.vtctldata.WorkflowOptions.fromObject(object.options); + (message.retries = $util.Long.fromValue(object.retries)).unsigned = true; + else if (typeof object.retries === "string") + message.retries = parseInt(object.retries, 10); + else if (typeof object.retries === "number") + message.retries = object.retries; + else if (typeof object.retries === "object") + message.retries = new $util.LongBits(object.retries.low >>> 0, object.retries.high >>> 0).toNumber(true); + if (object.tablet != null) { + if (typeof object.tablet !== "object") + throw TypeError(".vtctldata.SchemaMigration.tablet: object expected"); + message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); + } + if (object.tablet_failure != null) + message.tablet_failure = Boolean(object.tablet_failure); + if (object.progress != null) + message.progress = Number(object.progress); + if (object.migration_context != null) + message.migration_context = String(object.migration_context); + if (object.ddl_action != null) + message.ddl_action = String(object.ddl_action); + if (object.message != null) + message.message = String(object.message); + if (object.eta_seconds != null) + if ($util.Long) + (message.eta_seconds = $util.Long.fromValue(object.eta_seconds)).unsigned = false; + else if (typeof object.eta_seconds === "string") + message.eta_seconds = parseInt(object.eta_seconds, 10); + else if (typeof object.eta_seconds === "number") + message.eta_seconds = object.eta_seconds; + else if (typeof object.eta_seconds === "object") + message.eta_seconds = new $util.LongBits(object.eta_seconds.low >>> 0, object.eta_seconds.high >>> 0).toNumber(); + if (object.rows_copied != null) + if ($util.Long) + (message.rows_copied = $util.Long.fromValue(object.rows_copied)).unsigned = true; + else if (typeof object.rows_copied === "string") + message.rows_copied = parseInt(object.rows_copied, 10); + else if (typeof object.rows_copied === "number") + message.rows_copied = object.rows_copied; + else if (typeof object.rows_copied === "object") + message.rows_copied = new $util.LongBits(object.rows_copied.low >>> 0, object.rows_copied.high >>> 0).toNumber(true); + if (object.table_rows != null) + if ($util.Long) + (message.table_rows = $util.Long.fromValue(object.table_rows)).unsigned = false; + else if (typeof object.table_rows === "string") + message.table_rows = parseInt(object.table_rows, 10); + else if (typeof object.table_rows === "number") + message.table_rows = object.table_rows; + else if (typeof object.table_rows === "object") + message.table_rows = new $util.LongBits(object.table_rows.low >>> 0, object.table_rows.high >>> 0).toNumber(); + if (object.added_unique_keys != null) + message.added_unique_keys = object.added_unique_keys >>> 0; + if (object.removed_unique_keys != null) + message.removed_unique_keys = object.removed_unique_keys >>> 0; + if (object.log_file != null) + message.log_file = String(object.log_file); + if (object.artifact_retention != null) { + if (typeof object.artifact_retention !== "object") + throw TypeError(".vtctldata.SchemaMigration.artifact_retention: object expected"); + message.artifact_retention = $root.vttime.Duration.fromObject(object.artifact_retention); + } + if (object.postpone_completion != null) + message.postpone_completion = Boolean(object.postpone_completion); + if (object.removed_unique_key_names != null) + message.removed_unique_key_names = String(object.removed_unique_key_names); + if (object.dropped_no_default_column_names != null) + message.dropped_no_default_column_names = String(object.dropped_no_default_column_names); + if (object.expanded_column_names != null) + message.expanded_column_names = String(object.expanded_column_names); + if (object.revertible_notes != null) + message.revertible_notes = String(object.revertible_notes); + if (object.allow_concurrent != null) + message.allow_concurrent = Boolean(object.allow_concurrent); + if (object.reverted_uuid != null) + message.reverted_uuid = String(object.reverted_uuid); + if (object.is_view != null) + message.is_view = Boolean(object.is_view); + if (object.ready_to_complete != null) + message.ready_to_complete = Boolean(object.ready_to_complete); + if (object.vitess_liveness_indicator != null) + if ($util.Long) + (message.vitess_liveness_indicator = $util.Long.fromValue(object.vitess_liveness_indicator)).unsigned = false; + else if (typeof object.vitess_liveness_indicator === "string") + message.vitess_liveness_indicator = parseInt(object.vitess_liveness_indicator, 10); + else if (typeof object.vitess_liveness_indicator === "number") + message.vitess_liveness_indicator = object.vitess_liveness_indicator; + else if (typeof object.vitess_liveness_indicator === "object") + message.vitess_liveness_indicator = new $util.LongBits(object.vitess_liveness_indicator.low >>> 0, object.vitess_liveness_indicator.high >>> 0).toNumber(); + if (object.user_throttle_ratio != null) + message.user_throttle_ratio = Number(object.user_throttle_ratio); + if (object.special_plan != null) + message.special_plan = String(object.special_plan); + if (object.last_throttled_at != null) { + if (typeof object.last_throttled_at !== "object") + throw TypeError(".vtctldata.SchemaMigration.last_throttled_at: object expected"); + message.last_throttled_at = $root.vttime.Time.fromObject(object.last_throttled_at); + } + if (object.component_throttled != null) + message.component_throttled = String(object.component_throttled); + if (object.cancelled_at != null) { + if (typeof object.cancelled_at !== "object") + throw TypeError(".vtctldata.SchemaMigration.cancelled_at: object expected"); + message.cancelled_at = $root.vttime.Time.fromObject(object.cancelled_at); + } + if (object.postpone_launch != null) + message.postpone_launch = Boolean(object.postpone_launch); + if (object.stage != null) + message.stage = String(object.stage); + if (object.cutover_attempts != null) + message.cutover_attempts = object.cutover_attempts >>> 0; + if (object.is_immediate_operation != null) + message.is_immediate_operation = Boolean(object.is_immediate_operation); + if (object.reviewed_at != null) { + if (typeof object.reviewed_at !== "object") + throw TypeError(".vtctldata.SchemaMigration.reviewed_at: object expected"); + message.reviewed_at = $root.vttime.Time.fromObject(object.reviewed_at); + } + if (object.ready_to_complete_at != null) { + if (typeof object.ready_to_complete_at !== "object") + throw TypeError(".vtctldata.SchemaMigration.ready_to_complete_at: object expected"); + message.ready_to_complete_at = $root.vttime.Time.fromObject(object.ready_to_complete_at); } + if (object.removed_foreign_key_names != null) + message.removed_foreign_key_names = String(object.removed_foreign_key_names); return message; }; /** - * Creates a plain object from a Workflow message. Also converts values to other types if specified. + * Creates a plain object from a SchemaMigration message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.Workflow + * @memberof vtctldata.SchemaMigration * @static - * @param {vtctldata.Workflow} message Workflow + * @param {vtctldata.SchemaMigration} message SchemaMigration * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Workflow.toObject = function toObject(message, options) { + SchemaMigration.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.shard_streams = {}; if (options.defaults) { - object.name = ""; - object.source = null; - object.target = null; + object.uuid = ""; + object.keyspace = ""; + object.shard = ""; + object.schema = ""; + object.table = ""; + object.migration_statement = ""; + object.strategy = options.enums === String ? "VITESS" : 0; + object.options = ""; + object.added_at = null; + object.requested_at = null; + object.ready_at = null; + object.started_at = null; + object.liveness_timestamp = null; + object.completed_at = null; + object.cleaned_up_at = null; + object.status = options.enums === String ? "UNKNOWN" : 0; + object.log_path = ""; + object.artifacts = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.retries = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.retries = options.longs === String ? "0" : 0; + object.tablet = null; + object.tablet_failure = false; + object.progress = 0; + object.migration_context = ""; + object.ddl_action = ""; + object.message = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.max_v_replication_lag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.eta_seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.max_v_replication_lag = options.longs === String ? "0" : 0; - object.workflow_type = ""; - object.workflow_sub_type = ""; + object.eta_seconds = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.rows_copied = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.rows_copied = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.max_v_replication_transaction_lag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.table_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.max_v_replication_transaction_lag = options.longs === String ? "0" : 0; - object.defer_secondary_keys = false; - object.options = null; + object.table_rows = options.longs === String ? "0" : 0; + object.added_unique_keys = 0; + object.removed_unique_keys = 0; + object.log_file = ""; + object.artifact_retention = null; + object.postpone_completion = false; + object.removed_unique_key_names = ""; + object.dropped_no_default_column_names = ""; + object.expanded_column_names = ""; + object.revertible_notes = ""; + object.allow_concurrent = false; + object.reverted_uuid = ""; + object.is_view = false; + object.ready_to_complete = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.vitess_liveness_indicator = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.vitess_liveness_indicator = options.longs === String ? "0" : 0; + object.user_throttle_ratio = 0; + object.special_plan = ""; + object.last_throttled_at = null; + object.component_throttled = ""; + object.cancelled_at = null; + object.postpone_launch = false; + object.stage = ""; + object.cutover_attempts = 0; + object.is_immediate_operation = false; + object.reviewed_at = null; + object.ready_to_complete_at = null; + object.removed_foreign_key_names = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.source != null && message.hasOwnProperty("source")) - object.source = $root.vtctldata.Workflow.ReplicationLocation.toObject(message.source, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.vtctldata.Workflow.ReplicationLocation.toObject(message.target, options); - if (message.max_v_replication_lag != null && message.hasOwnProperty("max_v_replication_lag")) - if (typeof message.max_v_replication_lag === "number") - object.max_v_replication_lag = options.longs === String ? String(message.max_v_replication_lag) : message.max_v_replication_lag; + if (message.uuid != null && message.hasOwnProperty("uuid")) + object.uuid = message.uuid; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.schema != null && message.hasOwnProperty("schema")) + object.schema = message.schema; + if (message.table != null && message.hasOwnProperty("table")) + object.table = message.table; + if (message.migration_statement != null && message.hasOwnProperty("migration_statement")) + object.migration_statement = message.migration_statement; + if (message.strategy != null && message.hasOwnProperty("strategy")) + object.strategy = options.enums === String ? $root.vtctldata.SchemaMigration.Strategy[message.strategy] === undefined ? message.strategy : $root.vtctldata.SchemaMigration.Strategy[message.strategy] : message.strategy; + if (message.options != null && message.hasOwnProperty("options")) + object.options = message.options; + if (message.added_at != null && message.hasOwnProperty("added_at")) + object.added_at = $root.vttime.Time.toObject(message.added_at, options); + if (message.requested_at != null && message.hasOwnProperty("requested_at")) + object.requested_at = $root.vttime.Time.toObject(message.requested_at, options); + if (message.ready_at != null && message.hasOwnProperty("ready_at")) + object.ready_at = $root.vttime.Time.toObject(message.ready_at, options); + if (message.started_at != null && message.hasOwnProperty("started_at")) + object.started_at = $root.vttime.Time.toObject(message.started_at, options); + if (message.liveness_timestamp != null && message.hasOwnProperty("liveness_timestamp")) + object.liveness_timestamp = $root.vttime.Time.toObject(message.liveness_timestamp, options); + if (message.completed_at != null && message.hasOwnProperty("completed_at")) + object.completed_at = $root.vttime.Time.toObject(message.completed_at, options); + if (message.cleaned_up_at != null && message.hasOwnProperty("cleaned_up_at")) + object.cleaned_up_at = $root.vttime.Time.toObject(message.cleaned_up_at, options); + if (message.status != null && message.hasOwnProperty("status")) + object.status = options.enums === String ? $root.vtctldata.SchemaMigration.Status[message.status] === undefined ? message.status : $root.vtctldata.SchemaMigration.Status[message.status] : message.status; + if (message.log_path != null && message.hasOwnProperty("log_path")) + object.log_path = message.log_path; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) + object.artifacts = message.artifacts; + if (message.retries != null && message.hasOwnProperty("retries")) + if (typeof message.retries === "number") + object.retries = options.longs === String ? String(message.retries) : message.retries; else - object.max_v_replication_lag = options.longs === String ? $util.Long.prototype.toString.call(message.max_v_replication_lag) : options.longs === Number ? new $util.LongBits(message.max_v_replication_lag.low >>> 0, message.max_v_replication_lag.high >>> 0).toNumber() : message.max_v_replication_lag; - let keys2; - if (message.shard_streams && (keys2 = Object.keys(message.shard_streams)).length) { - object.shard_streams = {}; - for (let j = 0; j < keys2.length; ++j) - object.shard_streams[keys2[j]] = $root.vtctldata.Workflow.ShardStream.toObject(message.shard_streams[keys2[j]], options); - } - if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) - object.workflow_type = message.workflow_type; - if (message.workflow_sub_type != null && message.hasOwnProperty("workflow_sub_type")) - object.workflow_sub_type = message.workflow_sub_type; - if (message.max_v_replication_transaction_lag != null && message.hasOwnProperty("max_v_replication_transaction_lag")) - if (typeof message.max_v_replication_transaction_lag === "number") - object.max_v_replication_transaction_lag = options.longs === String ? String(message.max_v_replication_transaction_lag) : message.max_v_replication_transaction_lag; + object.retries = options.longs === String ? $util.Long.prototype.toString.call(message.retries) : options.longs === Number ? new $util.LongBits(message.retries.low >>> 0, message.retries.high >>> 0).toNumber(true) : message.retries; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); + if (message.tablet_failure != null && message.hasOwnProperty("tablet_failure")) + object.tablet_failure = message.tablet_failure; + if (message.progress != null && message.hasOwnProperty("progress")) + object.progress = options.json && !isFinite(message.progress) ? String(message.progress) : message.progress; + if (message.migration_context != null && message.hasOwnProperty("migration_context")) + object.migration_context = message.migration_context; + if (message.ddl_action != null && message.hasOwnProperty("ddl_action")) + object.ddl_action = message.ddl_action; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.eta_seconds != null && message.hasOwnProperty("eta_seconds")) + if (typeof message.eta_seconds === "number") + object.eta_seconds = options.longs === String ? String(message.eta_seconds) : message.eta_seconds; else - object.max_v_replication_transaction_lag = options.longs === String ? $util.Long.prototype.toString.call(message.max_v_replication_transaction_lag) : options.longs === Number ? new $util.LongBits(message.max_v_replication_transaction_lag.low >>> 0, message.max_v_replication_transaction_lag.high >>> 0).toNumber() : message.max_v_replication_transaction_lag; - if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) - object.defer_secondary_keys = message.defer_secondary_keys; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.vtctldata.WorkflowOptions.toObject(message.options, options); + object.eta_seconds = options.longs === String ? $util.Long.prototype.toString.call(message.eta_seconds) : options.longs === Number ? new $util.LongBits(message.eta_seconds.low >>> 0, message.eta_seconds.high >>> 0).toNumber() : message.eta_seconds; + if (message.rows_copied != null && message.hasOwnProperty("rows_copied")) + if (typeof message.rows_copied === "number") + object.rows_copied = options.longs === String ? String(message.rows_copied) : message.rows_copied; + else + object.rows_copied = options.longs === String ? $util.Long.prototype.toString.call(message.rows_copied) : options.longs === Number ? new $util.LongBits(message.rows_copied.low >>> 0, message.rows_copied.high >>> 0).toNumber(true) : message.rows_copied; + if (message.table_rows != null && message.hasOwnProperty("table_rows")) + if (typeof message.table_rows === "number") + object.table_rows = options.longs === String ? String(message.table_rows) : message.table_rows; + else + object.table_rows = options.longs === String ? $util.Long.prototype.toString.call(message.table_rows) : options.longs === Number ? new $util.LongBits(message.table_rows.low >>> 0, message.table_rows.high >>> 0).toNumber() : message.table_rows; + if (message.added_unique_keys != null && message.hasOwnProperty("added_unique_keys")) + object.added_unique_keys = message.added_unique_keys; + if (message.removed_unique_keys != null && message.hasOwnProperty("removed_unique_keys")) + object.removed_unique_keys = message.removed_unique_keys; + if (message.log_file != null && message.hasOwnProperty("log_file")) + object.log_file = message.log_file; + if (message.artifact_retention != null && message.hasOwnProperty("artifact_retention")) + object.artifact_retention = $root.vttime.Duration.toObject(message.artifact_retention, options); + if (message.postpone_completion != null && message.hasOwnProperty("postpone_completion")) + object.postpone_completion = message.postpone_completion; + if (message.removed_unique_key_names != null && message.hasOwnProperty("removed_unique_key_names")) + object.removed_unique_key_names = message.removed_unique_key_names; + if (message.dropped_no_default_column_names != null && message.hasOwnProperty("dropped_no_default_column_names")) + object.dropped_no_default_column_names = message.dropped_no_default_column_names; + if (message.expanded_column_names != null && message.hasOwnProperty("expanded_column_names")) + object.expanded_column_names = message.expanded_column_names; + if (message.revertible_notes != null && message.hasOwnProperty("revertible_notes")) + object.revertible_notes = message.revertible_notes; + if (message.allow_concurrent != null && message.hasOwnProperty("allow_concurrent")) + object.allow_concurrent = message.allow_concurrent; + if (message.reverted_uuid != null && message.hasOwnProperty("reverted_uuid")) + object.reverted_uuid = message.reverted_uuid; + if (message.is_view != null && message.hasOwnProperty("is_view")) + object.is_view = message.is_view; + if (message.ready_to_complete != null && message.hasOwnProperty("ready_to_complete")) + object.ready_to_complete = message.ready_to_complete; + if (message.vitess_liveness_indicator != null && message.hasOwnProperty("vitess_liveness_indicator")) + if (typeof message.vitess_liveness_indicator === "number") + object.vitess_liveness_indicator = options.longs === String ? String(message.vitess_liveness_indicator) : message.vitess_liveness_indicator; + else + object.vitess_liveness_indicator = options.longs === String ? $util.Long.prototype.toString.call(message.vitess_liveness_indicator) : options.longs === Number ? new $util.LongBits(message.vitess_liveness_indicator.low >>> 0, message.vitess_liveness_indicator.high >>> 0).toNumber() : message.vitess_liveness_indicator; + if (message.user_throttle_ratio != null && message.hasOwnProperty("user_throttle_ratio")) + object.user_throttle_ratio = options.json && !isFinite(message.user_throttle_ratio) ? String(message.user_throttle_ratio) : message.user_throttle_ratio; + if (message.special_plan != null && message.hasOwnProperty("special_plan")) + object.special_plan = message.special_plan; + if (message.last_throttled_at != null && message.hasOwnProperty("last_throttled_at")) + object.last_throttled_at = $root.vttime.Time.toObject(message.last_throttled_at, options); + if (message.component_throttled != null && message.hasOwnProperty("component_throttled")) + object.component_throttled = message.component_throttled; + if (message.cancelled_at != null && message.hasOwnProperty("cancelled_at")) + object.cancelled_at = $root.vttime.Time.toObject(message.cancelled_at, options); + if (message.postpone_launch != null && message.hasOwnProperty("postpone_launch")) + object.postpone_launch = message.postpone_launch; + if (message.stage != null && message.hasOwnProperty("stage")) + object.stage = message.stage; + if (message.cutover_attempts != null && message.hasOwnProperty("cutover_attempts")) + object.cutover_attempts = message.cutover_attempts; + if (message.is_immediate_operation != null && message.hasOwnProperty("is_immediate_operation")) + object.is_immediate_operation = message.is_immediate_operation; + if (message.reviewed_at != null && message.hasOwnProperty("reviewed_at")) + object.reviewed_at = $root.vttime.Time.toObject(message.reviewed_at, options); + if (message.ready_to_complete_at != null && message.hasOwnProperty("ready_to_complete_at")) + object.ready_to_complete_at = $root.vttime.Time.toObject(message.ready_to_complete_at, options); + if (message.removed_foreign_key_names != null && message.hasOwnProperty("removed_foreign_key_names")) + object.removed_foreign_key_names = message.removed_foreign_key_names; return object; }; /** - * Converts this Workflow to JSON. + * Converts this SchemaMigration to JSON. * @function toJSON - * @memberof vtctldata.Workflow + * @memberof vtctldata.SchemaMigration * @instance * @returns {Object.} JSON object */ - Workflow.prototype.toJSON = function toJSON() { + SchemaMigration.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Workflow + * Gets the default type url for SchemaMigration * @function getTypeUrl - * @memberof vtctldata.Workflow + * @memberof vtctldata.SchemaMigration * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Workflow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SchemaMigration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.Workflow"; + return typeUrlPrefix + "/vtctldata.SchemaMigration"; }; - Workflow.ReplicationLocation = (function() { + /** + * Strategy enum. + * @name vtctldata.SchemaMigration.Strategy + * @enum {number} + * @property {number} VITESS=0 VITESS value + * @property {number} ONLINE=0 ONLINE value + * @property {number} DIRECT=3 DIRECT value + * @property {number} MYSQL=4 MYSQL value + */ + SchemaMigration.Strategy = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "VITESS"] = 0; + values["ONLINE"] = 0; + values[valuesById[3] = "DIRECT"] = 3; + values[valuesById[4] = "MYSQL"] = 4; + return values; + })(); - /** - * Properties of a ReplicationLocation. - * @memberof vtctldata.Workflow - * @interface IReplicationLocation - * @property {string|null} [keyspace] ReplicationLocation keyspace - * @property {Array.|null} [shards] ReplicationLocation shards - */ + /** + * Status enum. + * @name vtctldata.SchemaMigration.Status + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} REQUESTED=1 REQUESTED value + * @property {number} CANCELLED=2 CANCELLED value + * @property {number} QUEUED=3 QUEUED value + * @property {number} READY=4 READY value + * @property {number} RUNNING=5 RUNNING value + * @property {number} COMPLETE=6 COMPLETE value + * @property {number} FAILED=7 FAILED value + */ + SchemaMigration.Status = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "REQUESTED"] = 1; + values[valuesById[2] = "CANCELLED"] = 2; + values[valuesById[3] = "QUEUED"] = 3; + values[valuesById[4] = "READY"] = 4; + values[valuesById[5] = "RUNNING"] = 5; + values[valuesById[6] = "COMPLETE"] = 6; + values[valuesById[7] = "FAILED"] = 7; + return values; + })(); - /** - * Constructs a new ReplicationLocation. - * @memberof vtctldata.Workflow - * @classdesc Represents a ReplicationLocation. - * @implements IReplicationLocation - * @constructor - * @param {vtctldata.Workflow.IReplicationLocation=} [properties] Properties to set - */ - function ReplicationLocation(properties) { - this.shards = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return SchemaMigration; + })(); - /** - * ReplicationLocation keyspace. - * @member {string} keyspace - * @memberof vtctldata.Workflow.ReplicationLocation - * @instance - */ - ReplicationLocation.prototype.keyspace = ""; + vtctldata.Shard = (function() { - /** - * ReplicationLocation shards. - * @member {Array.} shards - * @memberof vtctldata.Workflow.ReplicationLocation - * @instance - */ - ReplicationLocation.prototype.shards = $util.emptyArray; + /** + * 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 + */ - /** - * Creates a new ReplicationLocation instance using the specified properties. - * @function create - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {vtctldata.Workflow.IReplicationLocation=} [properties] Properties to set - * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation instance - */ - ReplicationLocation.create = function create(properties) { - return new ReplicationLocation(properties); - }; + /** + * 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 (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified ReplicationLocation message. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. - * @function encode - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {vtctldata.Workflow.IReplicationLocation} message ReplicationLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReplicationLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shards != null && message.shards.length) - for (let i = 0; i < message.shards.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shards[i]); - return writer; - }; + /** + * Shard keyspace. + * @member {string} keyspace + * @memberof vtctldata.Shard + * @instance + */ + Shard.prototype.keyspace = ""; - /** - * Encodes the specified ReplicationLocation message, length delimited. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {vtctldata.Workflow.IReplicationLocation} message ReplicationLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReplicationLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Shard name. + * @member {string} name + * @memberof vtctldata.Shard + * @instance + */ + Shard.prototype.name = ""; - /** - * Decodes a ReplicationLocation message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReplicationLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.ReplicationLocation(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - if (!(message.shards && message.shards.length)) - message.shards = []; - message.shards.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); + /** + * 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); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Shard(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.keyspace = reader.string(); + break; + } + case 2: { + message.name = reader.string(); + break; + } + case 3: { + message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a ReplicationLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReplicationLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a ReplicationLocation message. - * @function verify - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ReplicationLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shards != null && message.hasOwnProperty("shards")) { - if (!Array.isArray(message.shards)) - return "shards: array expected"; - for (let i = 0; i < message.shards.length; ++i) - if (!$util.isString(message.shards[i])) - return "shards: string[] expected"; - } - return null; - }; + /** + * Decodes a Shard message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Shard + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Shard} Shard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Shard.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ReplicationLocation message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation - */ - ReplicationLocation.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow.ReplicationLocation) - return object; - let message = new $root.vtctldata.Workflow.ReplicationLocation(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shards) { - if (!Array.isArray(object.shards)) - throw TypeError(".vtctldata.Workflow.ReplicationLocation.shards: array expected"); - message.shards = []; - for (let i = 0; i < object.shards.length; ++i) - message.shards[i] = String(object.shards[i]); - } - return message; - }; + /** + * Verifies a Shard message. + * @function verify + * @memberof vtctldata.Shard + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Shard.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) { + let error = $root.topodata.Shard.verify(message.shard); + if (error) + return "shard." + error; + } + return null; + }; - /** - * Creates a plain object from a ReplicationLocation message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {vtctldata.Workflow.ReplicationLocation} message ReplicationLocation - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ReplicationLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.shards = []; - if (options.defaults) - object.keyspace = ""; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shards && message.shards.length) { - object.shards = []; - for (let j = 0; j < message.shards.length; ++j) - object.shards[j] = message.shards[j]; - } + /** + * Creates a Shard message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Shard + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Shard} Shard + */ + Shard.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Shard) return object; - }; + let message = new $root.vtctldata.Shard(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.name != null) + message.name = String(object.name); + if (object.shard != null) { + if (typeof object.shard !== "object") + throw TypeError(".vtctldata.Shard.shard: object expected"); + message.shard = $root.topodata.Shard.fromObject(object.shard); + } + return message; + }; - /** - * Converts this ReplicationLocation to JSON. - * @function toJSON - * @memberof vtctldata.Workflow.ReplicationLocation - * @instance - * @returns {Object.} JSON object - */ - ReplicationLocation.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a Shard message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Shard + * @static + * @param {vtctldata.Shard} message Shard + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Shard.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.keyspace = ""; + object.name = ""; + object.shard = null; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = $root.topodata.Shard.toObject(message.shard, options); + return object; + }; - /** - * Gets the default type url for ReplicationLocation - * @function getTypeUrl - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ReplicationLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.Workflow.ReplicationLocation"; - }; + /** + * Converts this Shard to JSON. + * @function toJSON + * @memberof vtctldata.Shard + * @instance + * @returns {Object.} JSON object + */ + Shard.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ReplicationLocation; - })(); + /** + * Gets the default type url for Shard + * @function getTypeUrl + * @memberof vtctldata.Shard + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Shard.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.Shard"; + }; - Workflow.ShardStream = (function() { + return Shard; + })(); - /** - * Properties of a ShardStream. - * @memberof vtctldata.Workflow - * @interface IShardStream - * @property {Array.|null} [streams] ShardStream streams - * @property {Array.|null} [tablet_controls] ShardStream tablet_controls - * @property {boolean|null} [is_primary_serving] ShardStream is_primary_serving - */ + /** + * ShardedAutoIncrementHandling enum. + * @name vtctldata.ShardedAutoIncrementHandling + * @enum {number} + * @property {number} LEAVE=0 LEAVE value + * @property {number} REMOVE=1 REMOVE value + * @property {number} REPLACE=2 REPLACE value + */ + vtctldata.ShardedAutoIncrementHandling = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LEAVE"] = 0; + values[valuesById[1] = "REMOVE"] = 1; + values[valuesById[2] = "REPLACE"] = 2; + return values; + })(); - /** - * Constructs a new ShardStream. - * @memberof vtctldata.Workflow - * @classdesc Represents a ShardStream. - * @implements IShardStream - * @constructor - * @param {vtctldata.Workflow.IShardStream=} [properties] Properties to set - */ - function ShardStream(properties) { - this.streams = []; - this.tablet_controls = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + vtctldata.WorkflowOptions = (function() { - /** - * ShardStream streams. - * @member {Array.} streams - * @memberof vtctldata.Workflow.ShardStream - * @instance - */ - ShardStream.prototype.streams = $util.emptyArray; + /** + * Properties of a WorkflowOptions. + * @memberof vtctldata + * @interface IWorkflowOptions + * @property {string|null} [tenant_id] WorkflowOptions tenant_id + * @property {vtctldata.ShardedAutoIncrementHandling|null} [sharded_auto_increment_handling] WorkflowOptions sharded_auto_increment_handling + * @property {Array.|null} [shards] WorkflowOptions shards + * @property {Object.|null} [config] WorkflowOptions config + * @property {string|null} [global_keyspace] WorkflowOptions global_keyspace + */ - /** - * ShardStream tablet_controls. - * @member {Array.} tablet_controls - * @memberof vtctldata.Workflow.ShardStream - * @instance - */ - ShardStream.prototype.tablet_controls = $util.emptyArray; + /** + * Constructs a new WorkflowOptions. + * @memberof vtctldata + * @classdesc Represents a WorkflowOptions. + * @implements IWorkflowOptions + * @constructor + * @param {vtctldata.IWorkflowOptions=} [properties] Properties to set + */ + function WorkflowOptions(properties) { + this.shards = []; + this.config = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ShardStream is_primary_serving. - * @member {boolean} is_primary_serving - * @memberof vtctldata.Workflow.ShardStream - * @instance - */ - ShardStream.prototype.is_primary_serving = false; + /** + * WorkflowOptions tenant_id. + * @member {string} tenant_id + * @memberof vtctldata.WorkflowOptions + * @instance + */ + WorkflowOptions.prototype.tenant_id = ""; - /** - * Creates a new ShardStream instance using the specified properties. - * @function create - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {vtctldata.Workflow.IShardStream=} [properties] Properties to set - * @returns {vtctldata.Workflow.ShardStream} ShardStream instance - */ - ShardStream.create = function create(properties) { - return new ShardStream(properties); - }; + /** + * WorkflowOptions sharded_auto_increment_handling. + * @member {vtctldata.ShardedAutoIncrementHandling} sharded_auto_increment_handling + * @memberof vtctldata.WorkflowOptions + * @instance + */ + WorkflowOptions.prototype.sharded_auto_increment_handling = 0; - /** - * Encodes the specified ShardStream message. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. - * @function encode - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {vtctldata.Workflow.IShardStream} message ShardStream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ShardStream.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.streams != null && message.streams.length) - for (let i = 0; i < message.streams.length; ++i) - $root.vtctldata.Workflow.Stream.encode(message.streams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tablet_controls != null && message.tablet_controls.length) - for (let i = 0; i < message.tablet_controls.length; ++i) - $root.topodata.Shard.TabletControl.encode(message.tablet_controls[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.is_primary_serving != null && Object.hasOwnProperty.call(message, "is_primary_serving")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.is_primary_serving); - return writer; - }; + /** + * WorkflowOptions shards. + * @member {Array.} shards + * @memberof vtctldata.WorkflowOptions + * @instance + */ + WorkflowOptions.prototype.shards = $util.emptyArray; - /** - * Encodes the specified ShardStream message, length delimited. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {vtctldata.Workflow.IShardStream} message ShardStream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ShardStream.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * WorkflowOptions config. + * @member {Object.} config + * @memberof vtctldata.WorkflowOptions + * @instance + */ + WorkflowOptions.prototype.config = $util.emptyObject; - /** - * Decodes a ShardStream message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.ShardStream} ShardStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ShardStream.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.ShardStream(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.streams && message.streams.length)) - message.streams = []; - message.streams.push($root.vtctldata.Workflow.Stream.decode(reader, reader.uint32())); - break; - } - case 2: { - if (!(message.tablet_controls && message.tablet_controls.length)) - message.tablet_controls = []; - message.tablet_controls.push($root.topodata.Shard.TabletControl.decode(reader, reader.uint32())); - break; - } - case 3: { - message.is_primary_serving = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * WorkflowOptions global_keyspace. + * @member {string} global_keyspace + * @memberof vtctldata.WorkflowOptions + * @instance + */ + WorkflowOptions.prototype.global_keyspace = ""; - /** - * Decodes a ShardStream message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow.ShardStream} ShardStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ShardStream.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new WorkflowOptions instance using the specified properties. + * @function create + * @memberof vtctldata.WorkflowOptions + * @static + * @param {vtctldata.IWorkflowOptions=} [properties] Properties to set + * @returns {vtctldata.WorkflowOptions} WorkflowOptions instance + */ + WorkflowOptions.create = function create(properties) { + return new WorkflowOptions(properties); + }; - /** - * Verifies a ShardStream message. - * @function verify - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ShardStream.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.streams != null && message.hasOwnProperty("streams")) { - if (!Array.isArray(message.streams)) - return "streams: array expected"; - for (let i = 0; i < message.streams.length; ++i) { - let error = $root.vtctldata.Workflow.Stream.verify(message.streams[i]); - if (error) - return "streams." + error; + /** + * Encodes the specified WorkflowOptions message. Does not implicitly {@link vtctldata.WorkflowOptions.verify|verify} messages. + * @function encode + * @memberof vtctldata.WorkflowOptions + * @static + * @param {vtctldata.IWorkflowOptions} message WorkflowOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tenant_id != null && Object.hasOwnProperty.call(message, "tenant_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tenant_id); + if (message.sharded_auto_increment_handling != null && Object.hasOwnProperty.call(message, "sharded_auto_increment_handling")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sharded_auto_increment_handling); + if (message.shards != null && message.shards.length) + for (let i = 0; i < message.shards.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.shards[i]); + if (message.config != null && Object.hasOwnProperty.call(message, "config")) + for (let keys = Object.keys(message.config), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config[keys[i]]).ldelim(); + if (message.global_keyspace != null && Object.hasOwnProperty.call(message, "global_keyspace")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.global_keyspace); + return writer; + }; + + /** + * Encodes the specified WorkflowOptions message, length delimited. Does not implicitly {@link vtctldata.WorkflowOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.WorkflowOptions + * @static + * @param {vtctldata.IWorkflowOptions} message WorkflowOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WorkflowOptions message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.WorkflowOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.WorkflowOptions} WorkflowOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.WorkflowOptions(), key, value; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.tenant_id = reader.string(); + break; } - } - if (message.tablet_controls != null && message.hasOwnProperty("tablet_controls")) { - if (!Array.isArray(message.tablet_controls)) - return "tablet_controls: array expected"; - for (let i = 0; i < message.tablet_controls.length; ++i) { - let error = $root.topodata.Shard.TabletControl.verify(message.tablet_controls[i]); - if (error) - return "tablet_controls." + error; + case 2: { + message.sharded_auto_increment_handling = reader.int32(); + break; } - } - if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) - if (typeof message.is_primary_serving !== "boolean") - return "is_primary_serving: boolean expected"; - return null; - }; - - /** - * Creates a ShardStream message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Workflow.ShardStream} ShardStream - */ - ShardStream.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow.ShardStream) - return object; - let message = new $root.vtctldata.Workflow.ShardStream(); - if (object.streams) { - if (!Array.isArray(object.streams)) - throw TypeError(".vtctldata.Workflow.ShardStream.streams: array expected"); - message.streams = []; - for (let i = 0; i < object.streams.length; ++i) { - if (typeof object.streams[i] !== "object") - throw TypeError(".vtctldata.Workflow.ShardStream.streams: object expected"); - message.streams[i] = $root.vtctldata.Workflow.Stream.fromObject(object.streams[i]); + case 3: { + if (!(message.shards && message.shards.length)) + message.shards = []; + message.shards.push(reader.string()); + break; } - } - if (object.tablet_controls) { - if (!Array.isArray(object.tablet_controls)) - throw TypeError(".vtctldata.Workflow.ShardStream.tablet_controls: array expected"); - message.tablet_controls = []; - for (let i = 0; i < object.tablet_controls.length; ++i) { - if (typeof object.tablet_controls[i] !== "object") - throw TypeError(".vtctldata.Workflow.ShardStream.tablet_controls: object expected"); - message.tablet_controls[i] = $root.topodata.Shard.TabletControl.fromObject(object.tablet_controls[i]); + case 4: { + if (message.config === $util.emptyObject) + message.config = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.config[key] = value; + break; } + case 5: { + message.global_keyspace = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; } - if (object.is_primary_serving != null) - message.is_primary_serving = Boolean(object.is_primary_serving); - return message; - }; - - /** - * Creates a plain object from a ShardStream message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {vtctldata.Workflow.ShardStream} message ShardStream - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ShardStream.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.streams = []; - object.tablet_controls = []; - } - if (options.defaults) - object.is_primary_serving = false; - if (message.streams && message.streams.length) { - object.streams = []; - for (let j = 0; j < message.streams.length; ++j) - object.streams[j] = $root.vtctldata.Workflow.Stream.toObject(message.streams[j], options); - } - if (message.tablet_controls && message.tablet_controls.length) { - object.tablet_controls = []; - for (let j = 0; j < message.tablet_controls.length; ++j) - object.tablet_controls[j] = $root.topodata.Shard.TabletControl.toObject(message.tablet_controls[j], options); - } - if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) - object.is_primary_serving = message.is_primary_serving; - return object; - }; + } + return message; + }; - /** - * Converts this ShardStream to JSON. - * @function toJSON - * @memberof vtctldata.Workflow.ShardStream - * @instance - * @returns {Object.} JSON object - */ - ShardStream.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a WorkflowOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.WorkflowOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.WorkflowOptions} WorkflowOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for ShardStream - * @function getTypeUrl - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ShardStream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Verifies a WorkflowOptions message. + * @function verify + * @memberof vtctldata.WorkflowOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tenant_id != null && message.hasOwnProperty("tenant_id")) + if (!$util.isString(message.tenant_id)) + return "tenant_id: string expected"; + if (message.sharded_auto_increment_handling != null && message.hasOwnProperty("sharded_auto_increment_handling")) + switch (message.sharded_auto_increment_handling) { + default: + return "sharded_auto_increment_handling: enum value expected"; + case 0: + case 1: + case 2: + break; } - return typeUrlPrefix + "/vtctldata.Workflow.ShardStream"; - }; - - return ShardStream; - })(); - - Workflow.Stream = (function() { - - /** - * Properties of a Stream. - * @memberof vtctldata.Workflow - * @interface IStream - * @property {number|Long|null} [id] Stream id - * @property {string|null} [shard] Stream shard - * @property {topodata.ITabletAlias|null} [tablet] Stream tablet - * @property {binlogdata.IBinlogSource|null} [binlog_source] Stream binlog_source - * @property {string|null} [position] Stream position - * @property {string|null} [stop_position] Stream stop_position - * @property {string|null} [state] Stream state - * @property {string|null} [db_name] Stream db_name - * @property {vttime.ITime|null} [transaction_timestamp] Stream transaction_timestamp - * @property {vttime.ITime|null} [time_updated] Stream time_updated - * @property {string|null} [message] Stream message - * @property {Array.|null} [copy_states] Stream copy_states - * @property {Array.|null} [logs] Stream logs - * @property {string|null} [log_fetch_error] Stream log_fetch_error - * @property {Array.|null} [tags] Stream tags - * @property {number|Long|null} [rows_copied] Stream rows_copied - * @property {vtctldata.Workflow.Stream.IThrottlerStatus|null} [throttler_status] Stream throttler_status - * @property {Array.|null} [tablet_types] Stream tablet_types - * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] Stream tablet_selection_preference - * @property {Array.|null} [cells] Stream cells - */ - - /** - * Constructs a new Stream. - * @memberof vtctldata.Workflow - * @classdesc Represents a Stream. - * @implements IStream - * @constructor - * @param {vtctldata.Workflow.IStream=} [properties] Properties to set - */ - function Stream(properties) { - this.copy_states = []; - this.logs = []; - this.tags = []; - this.tablet_types = []; - this.cells = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!Array.isArray(message.shards)) + return "shards: array expected"; + for (let i = 0; i < message.shards.length; ++i) + if (!$util.isString(message.shards[i])) + return "shards: string[] expected"; + } + if (message.config != null && message.hasOwnProperty("config")) { + if (!$util.isObject(message.config)) + return "config: object expected"; + let key = Object.keys(message.config); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.config[key[i]])) + return "config: string{k:string} expected"; } + if (message.global_keyspace != null && message.hasOwnProperty("global_keyspace")) + if (!$util.isString(message.global_keyspace)) + return "global_keyspace: string expected"; + return null; + }; - /** - * Stream id. - * @member {number|Long} id - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Creates a WorkflowOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.WorkflowOptions + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.WorkflowOptions} WorkflowOptions + */ + WorkflowOptions.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.WorkflowOptions) + return object; + let message = new $root.vtctldata.WorkflowOptions(); + if (object.tenant_id != null) + message.tenant_id = String(object.tenant_id); + switch (object.sharded_auto_increment_handling) { + default: + if (typeof object.sharded_auto_increment_handling === "number") { + message.sharded_auto_increment_handling = object.sharded_auto_increment_handling; + break; + } + break; + case "LEAVE": + case 0: + message.sharded_auto_increment_handling = 0; + break; + case "REMOVE": + case 1: + message.sharded_auto_increment_handling = 1; + break; + case "REPLACE": + case 2: + message.sharded_auto_increment_handling = 2; + break; + } + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".vtctldata.WorkflowOptions.shards: array expected"); + message.shards = []; + for (let i = 0; i < object.shards.length; ++i) + message.shards[i] = String(object.shards[i]); + } + if (object.config) { + if (typeof object.config !== "object") + throw TypeError(".vtctldata.WorkflowOptions.config: object expected"); + message.config = {}; + for (let keys = Object.keys(object.config), i = 0; i < keys.length; ++i) + message.config[keys[i]] = String(object.config[keys[i]]); + } + if (object.global_keyspace != null) + message.global_keyspace = String(object.global_keyspace); + return message; + }; - /** - * Stream shard. - * @member {string} shard - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.shard = ""; + /** + * Creates a plain object from a WorkflowOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.WorkflowOptions + * @static + * @param {vtctldata.WorkflowOptions} message WorkflowOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WorkflowOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.shards = []; + if (options.objects || options.defaults) + object.config = {}; + if (options.defaults) { + object.tenant_id = ""; + object.sharded_auto_increment_handling = options.enums === String ? "LEAVE" : 0; + object.global_keyspace = ""; + } + if (message.tenant_id != null && message.hasOwnProperty("tenant_id")) + object.tenant_id = message.tenant_id; + if (message.sharded_auto_increment_handling != null && message.hasOwnProperty("sharded_auto_increment_handling")) + object.sharded_auto_increment_handling = options.enums === String ? $root.vtctldata.ShardedAutoIncrementHandling[message.sharded_auto_increment_handling] === undefined ? message.sharded_auto_increment_handling : $root.vtctldata.ShardedAutoIncrementHandling[message.sharded_auto_increment_handling] : message.sharded_auto_increment_handling; + if (message.shards && message.shards.length) { + object.shards = []; + for (let j = 0; j < message.shards.length; ++j) + object.shards[j] = message.shards[j]; + } + let keys2; + if (message.config && (keys2 = Object.keys(message.config)).length) { + object.config = {}; + for (let j = 0; j < keys2.length; ++j) + object.config[keys2[j]] = message.config[keys2[j]]; + } + if (message.global_keyspace != null && message.hasOwnProperty("global_keyspace")) + object.global_keyspace = message.global_keyspace; + return object; + }; - /** - * Stream tablet. - * @member {topodata.ITabletAlias|null|undefined} tablet - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.tablet = null; + /** + * Converts this WorkflowOptions to JSON. + * @function toJSON + * @memberof vtctldata.WorkflowOptions + * @instance + * @returns {Object.} JSON object + */ + WorkflowOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Stream binlog_source. - * @member {binlogdata.IBinlogSource|null|undefined} binlog_source - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.binlog_source = null; + /** + * Gets the default type url for WorkflowOptions + * @function getTypeUrl + * @memberof vtctldata.WorkflowOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WorkflowOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.WorkflowOptions"; + }; - /** - * Stream position. - * @member {string} position - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.position = ""; + return WorkflowOptions; + })(); - /** - * Stream stop_position. - * @member {string} stop_position - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.stop_position = ""; + vtctldata.Workflow = (function() { - /** - * Stream state. - * @member {string} state - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.state = ""; + /** + * Properties of a Workflow. + * @memberof vtctldata + * @interface IWorkflow + * @property {string|null} [name] Workflow name + * @property {vtctldata.Workflow.IReplicationLocation|null} [source] Workflow source + * @property {vtctldata.Workflow.IReplicationLocation|null} [target] Workflow target + * @property {number|Long|null} [max_v_replication_lag] Workflow max_v_replication_lag + * @property {Object.|null} [shard_streams] Workflow shard_streams + * @property {string|null} [workflow_type] Workflow workflow_type + * @property {string|null} [workflow_sub_type] Workflow workflow_sub_type + * @property {number|Long|null} [max_v_replication_transaction_lag] Workflow max_v_replication_transaction_lag + * @property {boolean|null} [defer_secondary_keys] Workflow defer_secondary_keys + * @property {vtctldata.IWorkflowOptions|null} [options] Workflow options + */ - /** - * Stream db_name. - * @member {string} db_name - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.db_name = ""; + /** + * Constructs a new Workflow. + * @memberof vtctldata + * @classdesc Represents a Workflow. + * @implements IWorkflow + * @constructor + * @param {vtctldata.IWorkflow=} [properties] Properties to set + */ + function Workflow(properties) { + this.shard_streams = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Stream transaction_timestamp. - * @member {vttime.ITime|null|undefined} transaction_timestamp - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.transaction_timestamp = null; + /** + * Workflow name. + * @member {string} name + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.name = ""; - /** - * Stream time_updated. - * @member {vttime.ITime|null|undefined} time_updated - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.time_updated = null; + /** + * Workflow source. + * @member {vtctldata.Workflow.IReplicationLocation|null|undefined} source + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.source = null; - /** - * Stream message. - * @member {string} message - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.message = ""; + /** + * Workflow target. + * @member {vtctldata.Workflow.IReplicationLocation|null|undefined} target + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.target = null; - /** - * Stream copy_states. - * @member {Array.} copy_states - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.copy_states = $util.emptyArray; + /** + * Workflow max_v_replication_lag. + * @member {number|Long} max_v_replication_lag + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.max_v_replication_lag = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Stream logs. - * @member {Array.} logs - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.logs = $util.emptyArray; + /** + * Workflow shard_streams. + * @member {Object.} shard_streams + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.shard_streams = $util.emptyObject; - /** - * Stream log_fetch_error. - * @member {string} log_fetch_error - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.log_fetch_error = ""; + /** + * Workflow workflow_type. + * @member {string} workflow_type + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.workflow_type = ""; - /** - * Stream tags. - * @member {Array.} tags - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.tags = $util.emptyArray; + /** + * Workflow workflow_sub_type. + * @member {string} workflow_sub_type + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.workflow_sub_type = ""; - /** - * Stream rows_copied. - * @member {number|Long} rows_copied - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.rows_copied = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Workflow max_v_replication_transaction_lag. + * @member {number|Long} max_v_replication_transaction_lag + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.max_v_replication_transaction_lag = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Workflow defer_secondary_keys. + * @member {boolean} defer_secondary_keys + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.defer_secondary_keys = false; + + /** + * Workflow options. + * @member {vtctldata.IWorkflowOptions|null|undefined} options + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.options = null; + + /** + * Creates a new Workflow instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow + * @static + * @param {vtctldata.IWorkflow=} [properties] Properties to set + * @returns {vtctldata.Workflow} Workflow instance + */ + Workflow.create = function create(properties) { + return new Workflow(properties); + }; + + /** + * Encodes the specified Workflow message. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow + * @static + * @param {vtctldata.IWorkflow} message Workflow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Workflow.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + $root.vtctldata.Workflow.ReplicationLocation.encode(message.source, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.vtctldata.Workflow.ReplicationLocation.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.max_v_replication_lag != null && Object.hasOwnProperty.call(message, "max_v_replication_lag")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.max_v_replication_lag); + if (message.shard_streams != null && Object.hasOwnProperty.call(message, "shard_streams")) + for (let keys = Object.keys(message.shard_streams), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtctldata.Workflow.ShardStream.encode(message.shard_streams[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.workflow_type != null && Object.hasOwnProperty.call(message, "workflow_type")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.workflow_type); + if (message.workflow_sub_type != null && Object.hasOwnProperty.call(message, "workflow_sub_type")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.workflow_sub_type); + if (message.max_v_replication_transaction_lag != null && Object.hasOwnProperty.call(message, "max_v_replication_transaction_lag")) + writer.uint32(/* id 8, wireType 0 =*/64).int64(message.max_v_replication_transaction_lag); + if (message.defer_secondary_keys != null && Object.hasOwnProperty.call(message, "defer_secondary_keys")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.defer_secondary_keys); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.vtctldata.WorkflowOptions.encode(message.options, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Workflow message, length delimited. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow + * @static + * @param {vtctldata.IWorkflow} message Workflow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Workflow.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Workflow message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow} Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Workflow.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow(), key, value; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.source = $root.vtctldata.Workflow.ReplicationLocation.decode(reader, reader.uint32()); + break; + } + case 3: { + message.target = $root.vtctldata.Workflow.ReplicationLocation.decode(reader, reader.uint32()); + break; + } + case 4: { + message.max_v_replication_lag = reader.int64(); + break; + } + case 5: { + if (message.shard_streams === $util.emptyObject) + message.shard_streams = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.Workflow.ShardStream.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.shard_streams[key] = value; + break; + } + case 6: { + message.workflow_type = reader.string(); + break; + } + case 7: { + message.workflow_sub_type = reader.string(); + break; + } + case 8: { + message.max_v_replication_transaction_lag = reader.int64(); + break; + } + case 9: { + message.defer_secondary_keys = reader.bool(); + break; + } + case 10: { + message.options = $root.vtctldata.WorkflowOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Workflow message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow} Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Workflow.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Workflow message. + * @function verify + * @memberof vtctldata.Workflow + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Workflow.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.source != null && message.hasOwnProperty("source")) { + let error = $root.vtctldata.Workflow.ReplicationLocation.verify(message.source); + if (error) + return "source." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + let error = $root.vtctldata.Workflow.ReplicationLocation.verify(message.target); + if (error) + return "target." + error; + } + if (message.max_v_replication_lag != null && message.hasOwnProperty("max_v_replication_lag")) + if (!$util.isInteger(message.max_v_replication_lag) && !(message.max_v_replication_lag && $util.isInteger(message.max_v_replication_lag.low) && $util.isInteger(message.max_v_replication_lag.high))) + return "max_v_replication_lag: integer|Long expected"; + if (message.shard_streams != null && message.hasOwnProperty("shard_streams")) { + if (!$util.isObject(message.shard_streams)) + return "shard_streams: object expected"; + let key = Object.keys(message.shard_streams); + for (let i = 0; i < key.length; ++i) { + let error = $root.vtctldata.Workflow.ShardStream.verify(message.shard_streams[key[i]]); + if (error) + return "shard_streams." + error; + } + } + if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) + if (!$util.isString(message.workflow_type)) + return "workflow_type: string expected"; + if (message.workflow_sub_type != null && message.hasOwnProperty("workflow_sub_type")) + if (!$util.isString(message.workflow_sub_type)) + return "workflow_sub_type: string expected"; + if (message.max_v_replication_transaction_lag != null && message.hasOwnProperty("max_v_replication_transaction_lag")) + if (!$util.isInteger(message.max_v_replication_transaction_lag) && !(message.max_v_replication_transaction_lag && $util.isInteger(message.max_v_replication_transaction_lag.low) && $util.isInteger(message.max_v_replication_transaction_lag.high))) + return "max_v_replication_transaction_lag: integer|Long expected"; + if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) + if (typeof message.defer_secondary_keys !== "boolean") + return "defer_secondary_keys: boolean expected"; + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.vtctldata.WorkflowOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates a Workflow message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow} Workflow + */ + Workflow.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow) + return object; + let message = new $root.vtctldata.Workflow(); + if (object.name != null) + message.name = String(object.name); + if (object.source != null) { + if (typeof object.source !== "object") + throw TypeError(".vtctldata.Workflow.source: object expected"); + message.source = $root.vtctldata.Workflow.ReplicationLocation.fromObject(object.source); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".vtctldata.Workflow.target: object expected"); + message.target = $root.vtctldata.Workflow.ReplicationLocation.fromObject(object.target); + } + if (object.max_v_replication_lag != null) + if ($util.Long) + (message.max_v_replication_lag = $util.Long.fromValue(object.max_v_replication_lag)).unsigned = false; + else if (typeof object.max_v_replication_lag === "string") + message.max_v_replication_lag = parseInt(object.max_v_replication_lag, 10); + else if (typeof object.max_v_replication_lag === "number") + message.max_v_replication_lag = object.max_v_replication_lag; + else if (typeof object.max_v_replication_lag === "object") + message.max_v_replication_lag = new $util.LongBits(object.max_v_replication_lag.low >>> 0, object.max_v_replication_lag.high >>> 0).toNumber(); + if (object.shard_streams) { + if (typeof object.shard_streams !== "object") + throw TypeError(".vtctldata.Workflow.shard_streams: object expected"); + message.shard_streams = {}; + for (let keys = Object.keys(object.shard_streams), i = 0; i < keys.length; ++i) { + if (typeof object.shard_streams[keys[i]] !== "object") + throw TypeError(".vtctldata.Workflow.shard_streams: object expected"); + message.shard_streams[keys[i]] = $root.vtctldata.Workflow.ShardStream.fromObject(object.shard_streams[keys[i]]); + } + } + if (object.workflow_type != null) + message.workflow_type = String(object.workflow_type); + if (object.workflow_sub_type != null) + message.workflow_sub_type = String(object.workflow_sub_type); + if (object.max_v_replication_transaction_lag != null) + if ($util.Long) + (message.max_v_replication_transaction_lag = $util.Long.fromValue(object.max_v_replication_transaction_lag)).unsigned = false; + else if (typeof object.max_v_replication_transaction_lag === "string") + message.max_v_replication_transaction_lag = parseInt(object.max_v_replication_transaction_lag, 10); + else if (typeof object.max_v_replication_transaction_lag === "number") + message.max_v_replication_transaction_lag = object.max_v_replication_transaction_lag; + else if (typeof object.max_v_replication_transaction_lag === "object") + message.max_v_replication_transaction_lag = new $util.LongBits(object.max_v_replication_transaction_lag.low >>> 0, object.max_v_replication_transaction_lag.high >>> 0).toNumber(); + if (object.defer_secondary_keys != null) + message.defer_secondary_keys = Boolean(object.defer_secondary_keys); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".vtctldata.Workflow.options: object expected"); + message.options = $root.vtctldata.WorkflowOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from a Workflow message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow + * @static + * @param {vtctldata.Workflow} message Workflow + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Workflow.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) + object.shard_streams = {}; + if (options.defaults) { + object.name = ""; + object.source = null; + object.target = null; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.max_v_replication_lag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_v_replication_lag = options.longs === String ? "0" : 0; + object.workflow_type = ""; + object.workflow_sub_type = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.max_v_replication_transaction_lag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_v_replication_transaction_lag = options.longs === String ? "0" : 0; + object.defer_secondary_keys = false; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.source != null && message.hasOwnProperty("source")) + object.source = $root.vtctldata.Workflow.ReplicationLocation.toObject(message.source, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.vtctldata.Workflow.ReplicationLocation.toObject(message.target, options); + if (message.max_v_replication_lag != null && message.hasOwnProperty("max_v_replication_lag")) + if (typeof message.max_v_replication_lag === "number") + object.max_v_replication_lag = options.longs === String ? String(message.max_v_replication_lag) : message.max_v_replication_lag; + else + object.max_v_replication_lag = options.longs === String ? $util.Long.prototype.toString.call(message.max_v_replication_lag) : options.longs === Number ? new $util.LongBits(message.max_v_replication_lag.low >>> 0, message.max_v_replication_lag.high >>> 0).toNumber() : message.max_v_replication_lag; + let keys2; + if (message.shard_streams && (keys2 = Object.keys(message.shard_streams)).length) { + object.shard_streams = {}; + for (let j = 0; j < keys2.length; ++j) + object.shard_streams[keys2[j]] = $root.vtctldata.Workflow.ShardStream.toObject(message.shard_streams[keys2[j]], options); + } + if (message.workflow_type != null && message.hasOwnProperty("workflow_type")) + object.workflow_type = message.workflow_type; + if (message.workflow_sub_type != null && message.hasOwnProperty("workflow_sub_type")) + object.workflow_sub_type = message.workflow_sub_type; + if (message.max_v_replication_transaction_lag != null && message.hasOwnProperty("max_v_replication_transaction_lag")) + if (typeof message.max_v_replication_transaction_lag === "number") + object.max_v_replication_transaction_lag = options.longs === String ? String(message.max_v_replication_transaction_lag) : message.max_v_replication_transaction_lag; + else + object.max_v_replication_transaction_lag = options.longs === String ? $util.Long.prototype.toString.call(message.max_v_replication_transaction_lag) : options.longs === Number ? new $util.LongBits(message.max_v_replication_transaction_lag.low >>> 0, message.max_v_replication_transaction_lag.high >>> 0).toNumber() : message.max_v_replication_transaction_lag; + if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) + object.defer_secondary_keys = message.defer_secondary_keys; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.vtctldata.WorkflowOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this Workflow to JSON. + * @function toJSON + * @memberof vtctldata.Workflow + * @instance + * @returns {Object.} JSON object + */ + Workflow.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Workflow + * @function getTypeUrl + * @memberof vtctldata.Workflow + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Workflow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.Workflow"; + }; + + Workflow.ReplicationLocation = (function() { /** - * Stream throttler_status. - * @member {vtctldata.Workflow.Stream.IThrottlerStatus|null|undefined} throttler_status - * @memberof vtctldata.Workflow.Stream - * @instance + * Properties of a ReplicationLocation. + * @memberof vtctldata.Workflow + * @interface IReplicationLocation + * @property {string|null} [keyspace] ReplicationLocation keyspace + * @property {Array.|null} [shards] ReplicationLocation shards */ - Stream.prototype.throttler_status = null; /** - * Stream tablet_types. - * @member {Array.} tablet_types - * @memberof vtctldata.Workflow.Stream - * @instance + * Constructs a new ReplicationLocation. + * @memberof vtctldata.Workflow + * @classdesc Represents a ReplicationLocation. + * @implements IReplicationLocation + * @constructor + * @param {vtctldata.Workflow.IReplicationLocation=} [properties] Properties to set */ - Stream.prototype.tablet_types = $util.emptyArray; + function ReplicationLocation(properties) { + this.shards = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Stream tablet_selection_preference. - * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference - * @memberof vtctldata.Workflow.Stream + * ReplicationLocation keyspace. + * @member {string} keyspace + * @memberof vtctldata.Workflow.ReplicationLocation * @instance */ - Stream.prototype.tablet_selection_preference = 0; + ReplicationLocation.prototype.keyspace = ""; /** - * Stream cells. - * @member {Array.} cells - * @memberof vtctldata.Workflow.Stream + * ReplicationLocation shards. + * @member {Array.} shards + * @memberof vtctldata.Workflow.ReplicationLocation * @instance */ - Stream.prototype.cells = $util.emptyArray; + ReplicationLocation.prototype.shards = $util.emptyArray; /** - * Creates a new Stream instance using the specified properties. + * Creates a new ReplicationLocation instance using the specified properties. * @function create - * @memberof vtctldata.Workflow.Stream + * @memberof vtctldata.Workflow.ReplicationLocation * @static - * @param {vtctldata.Workflow.IStream=} [properties] Properties to set - * @returns {vtctldata.Workflow.Stream} Stream instance + * @param {vtctldata.Workflow.IReplicationLocation=} [properties] Properties to set + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation instance */ - Stream.create = function create(properties) { - return new Stream(properties); + ReplicationLocation.create = function create(properties) { + return new ReplicationLocation(properties); }; /** - * Encodes the specified Stream message. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * Encodes the specified ReplicationLocation message. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. * @function encode - * @memberof vtctldata.Workflow.Stream + * @memberof vtctldata.Workflow.ReplicationLocation * @static - * @param {vtctldata.Workflow.IStream} message Stream message or plain object to encode + * @param {vtctldata.Workflow.IReplicationLocation} message ReplicationLocation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Stream.encode = function encode(message, writer) { + ReplicationLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) - $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.binlog_source != null && Object.hasOwnProperty.call(message, "binlog_source")) - $root.binlogdata.BinlogSource.encode(message.binlog_source, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.position); - if (message.stop_position != null && Object.hasOwnProperty.call(message, "stop_position")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.stop_position); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.state); - if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.db_name); - if (message.transaction_timestamp != null && Object.hasOwnProperty.call(message, "transaction_timestamp")) - $root.vttime.Time.encode(message.transaction_timestamp, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.time_updated != null && Object.hasOwnProperty.call(message, "time_updated")) - $root.vttime.Time.encode(message.time_updated, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.message); - if (message.copy_states != null && message.copy_states.length) - for (let i = 0; i < message.copy_states.length; ++i) - $root.vtctldata.Workflow.Stream.CopyState.encode(message.copy_states[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.logs != null && message.logs.length) - for (let i = 0; i < message.logs.length; ++i) - $root.vtctldata.Workflow.Stream.Log.encode(message.logs[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.log_fetch_error != null && Object.hasOwnProperty.call(message, "log_fetch_error")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.log_fetch_error); - if (message.tags != null && message.tags.length) - for (let i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.tags[i]); - if (message.rows_copied != null && Object.hasOwnProperty.call(message, "rows_copied")) - writer.uint32(/* id 16, wireType 0 =*/128).int64(message.rows_copied); - if (message.throttler_status != null && Object.hasOwnProperty.call(message, "throttler_status")) - $root.vtctldata.Workflow.Stream.ThrottlerStatus.encode(message.throttler_status, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.tablet_types != null && message.tablet_types.length) { - writer.uint32(/* id 18, wireType 2 =*/146).fork(); - for (let i = 0; i < message.tablet_types.length; ++i) - writer.int32(message.tablet_types[i]); - writer.ldelim(); - } - if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) - writer.uint32(/* id 19, wireType 0 =*/152).int32(message.tablet_selection_preference); - if (message.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 20, wireType 2 =*/162).string(message.cells[i]); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shards != null && message.shards.length) + for (let i = 0; i < message.shards.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shards[i]); return writer; }; /** - * Encodes the specified Stream message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * Encodes the specified ReplicationLocation message, length delimited. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.Workflow.Stream + * @memberof vtctldata.Workflow.ReplicationLocation * @static - * @param {vtctldata.Workflow.IStream} message Stream message or plain object to encode + * @param {vtctldata.Workflow.IReplicationLocation} message ReplicationLocation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Stream.encodeDelimited = function encodeDelimited(message, writer) { + ReplicationLocation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Stream message from the specified reader or buffer. + * Decodes a ReplicationLocation message from the specified reader or buffer. * @function decode - * @memberof vtctldata.Workflow.Stream + * @memberof vtctldata.Workflow.ReplicationLocation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.Stream} Stream + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Stream.decode = function decode(reader, length) { + ReplicationLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.ReplicationLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.int64(); + message.keyspace = reader.string(); break; } case 2: { - message.shard = reader.string(); - break; - } - case 3: { - message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 4: { - message.binlog_source = $root.binlogdata.BinlogSource.decode(reader, reader.uint32()); - break; - } - case 5: { - message.position = reader.string(); - break; - } - case 6: { - message.stop_position = reader.string(); - break; - } - case 7: { - message.state = reader.string(); - break; - } - case 8: { - message.db_name = reader.string(); - break; - } - case 9: { - message.transaction_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 10: { - message.time_updated = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 11: { - message.message = reader.string(); - break; - } - case 12: { - if (!(message.copy_states && message.copy_states.length)) - message.copy_states = []; - message.copy_states.push($root.vtctldata.Workflow.Stream.CopyState.decode(reader, reader.uint32())); - break; - } - case 13: { - if (!(message.logs && message.logs.length)) - message.logs = []; - message.logs.push($root.vtctldata.Workflow.Stream.Log.decode(reader, reader.uint32())); - break; - } - case 14: { - message.log_fetch_error = reader.string(); - break; - } - case 15: { - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - } - case 16: { - message.rows_copied = reader.int64(); - break; - } - case 17: { - message.throttler_status = $root.vtctldata.Workflow.Stream.ThrottlerStatus.decode(reader, reader.uint32()); - break; - } - case 18: { - if (!(message.tablet_types && message.tablet_types.length)) - message.tablet_types = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.tablet_types.push(reader.int32()); - } else - message.tablet_types.push(reader.int32()); - break; - } - case 19: { - message.tablet_selection_preference = reader.int32(); - break; - } - case 20: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + if (!(message.shards && message.shards.length)) + message.shards = []; + message.shards.push(reader.string()); break; } default: @@ -129748,72 +131326,902 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a Stream message from the specified reader or buffer, length delimited. + * Decodes a ReplicationLocation message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.Workflow.Stream + * @memberof vtctldata.Workflow.ReplicationLocation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow.Stream} Stream + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Stream.decodeDelimited = function decodeDelimited(reader) { + ReplicationLocation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Stream message. + * Verifies a ReplicationLocation message. * @function verify - * @memberof vtctldata.Workflow.Stream + * @memberof vtctldata.Workflow.ReplicationLocation * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Stream.verify = function verify(message) { + ReplicationLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) - return "id: integer|Long expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - let error = $root.topodata.TabletAlias.verify(message.tablet); - if (error) - return "tablet." + error; - } - if (message.binlog_source != null && message.hasOwnProperty("binlog_source")) { - let error = $root.binlogdata.BinlogSource.verify(message.binlog_source); - if (error) - return "binlog_source." + error; - } - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; - if (message.stop_position != null && message.hasOwnProperty("stop_position")) - if (!$util.isString(message.stop_position)) - return "stop_position: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - if (!$util.isString(message.state)) - return "state: string expected"; - if (message.db_name != null && message.hasOwnProperty("db_name")) - if (!$util.isString(message.db_name)) - return "db_name: string expected"; - if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) { - let error = $root.vttime.Time.verify(message.transaction_timestamp); - if (error) - return "transaction_timestamp." + error; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!Array.isArray(message.shards)) + return "shards: array expected"; + for (let i = 0; i < message.shards.length; ++i) + if (!$util.isString(message.shards[i])) + return "shards: string[] expected"; } - if (message.time_updated != null && message.hasOwnProperty("time_updated")) { - let error = $root.vttime.Time.verify(message.time_updated); - if (error) - return "time_updated." + error; + return null; + }; + + /** + * Creates a ReplicationLocation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation + */ + ReplicationLocation.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.ReplicationLocation) + return object; + let message = new $root.vtctldata.Workflow.ReplicationLocation(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".vtctldata.Workflow.ReplicationLocation.shards: array expected"); + message.shards = []; + for (let i = 0; i < object.shards.length; ++i) + message.shards[i] = String(object.shards[i]); } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) + return message; + }; + + /** + * Creates a plain object from a ReplicationLocation message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {vtctldata.Workflow.ReplicationLocation} message ReplicationLocation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReplicationLocation.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.shards = []; + if (options.defaults) + object.keyspace = ""; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shards && message.shards.length) { + object.shards = []; + for (let j = 0; j < message.shards.length; ++j) + object.shards[j] = message.shards[j]; + } + return object; + }; + + /** + * Converts this ReplicationLocation to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.ReplicationLocation + * @instance + * @returns {Object.} JSON object + */ + ReplicationLocation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReplicationLocation + * @function getTypeUrl + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReplicationLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.Workflow.ReplicationLocation"; + }; + + return ReplicationLocation; + })(); + + Workflow.ShardStream = (function() { + + /** + * Properties of a ShardStream. + * @memberof vtctldata.Workflow + * @interface IShardStream + * @property {Array.|null} [streams] ShardStream streams + * @property {Array.|null} [tablet_controls] ShardStream tablet_controls + * @property {boolean|null} [is_primary_serving] ShardStream is_primary_serving + */ + + /** + * Constructs a new ShardStream. + * @memberof vtctldata.Workflow + * @classdesc Represents a ShardStream. + * @implements IShardStream + * @constructor + * @param {vtctldata.Workflow.IShardStream=} [properties] Properties to set + */ + function ShardStream(properties) { + this.streams = []; + this.tablet_controls = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ShardStream streams. + * @member {Array.} streams + * @memberof vtctldata.Workflow.ShardStream + * @instance + */ + ShardStream.prototype.streams = $util.emptyArray; + + /** + * ShardStream tablet_controls. + * @member {Array.} tablet_controls + * @memberof vtctldata.Workflow.ShardStream + * @instance + */ + ShardStream.prototype.tablet_controls = $util.emptyArray; + + /** + * ShardStream is_primary_serving. + * @member {boolean} is_primary_serving + * @memberof vtctldata.Workflow.ShardStream + * @instance + */ + ShardStream.prototype.is_primary_serving = false; + + /** + * Creates a new ShardStream instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.IShardStream=} [properties] Properties to set + * @returns {vtctldata.Workflow.ShardStream} ShardStream instance + */ + ShardStream.create = function create(properties) { + return new ShardStream(properties); + }; + + /** + * Encodes the specified ShardStream message. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.IShardStream} message ShardStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardStream.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.streams != null && message.streams.length) + for (let i = 0; i < message.streams.length; ++i) + $root.vtctldata.Workflow.Stream.encode(message.streams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tablet_controls != null && message.tablet_controls.length) + for (let i = 0; i < message.tablet_controls.length; ++i) + $root.topodata.Shard.TabletControl.encode(message.tablet_controls[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.is_primary_serving != null && Object.hasOwnProperty.call(message, "is_primary_serving")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.is_primary_serving); + return writer; + }; + + /** + * Encodes the specified ShardStream message, length delimited. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.IShardStream} message ShardStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ShardStream message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.ShardStream} ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardStream.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.ShardStream(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.streams && message.streams.length)) + message.streams = []; + message.streams.push($root.vtctldata.Workflow.Stream.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.tablet_controls && message.tablet_controls.length)) + message.tablet_controls = []; + message.tablet_controls.push($root.topodata.Shard.TabletControl.decode(reader, reader.uint32())); + break; + } + case 3: { + message.is_primary_serving = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ShardStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.ShardStream} ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ShardStream message. + * @function verify + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ShardStream.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.streams != null && message.hasOwnProperty("streams")) { + if (!Array.isArray(message.streams)) + return "streams: array expected"; + for (let i = 0; i < message.streams.length; ++i) { + let error = $root.vtctldata.Workflow.Stream.verify(message.streams[i]); + if (error) + return "streams." + error; + } + } + if (message.tablet_controls != null && message.hasOwnProperty("tablet_controls")) { + if (!Array.isArray(message.tablet_controls)) + return "tablet_controls: array expected"; + for (let i = 0; i < message.tablet_controls.length; ++i) { + let error = $root.topodata.Shard.TabletControl.verify(message.tablet_controls[i]); + if (error) + return "tablet_controls." + error; + } + } + if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) + if (typeof message.is_primary_serving !== "boolean") + return "is_primary_serving: boolean expected"; + return null; + }; + + /** + * Creates a ShardStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.ShardStream} ShardStream + */ + ShardStream.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.ShardStream) + return object; + let message = new $root.vtctldata.Workflow.ShardStream(); + if (object.streams) { + if (!Array.isArray(object.streams)) + throw TypeError(".vtctldata.Workflow.ShardStream.streams: array expected"); + message.streams = []; + for (let i = 0; i < object.streams.length; ++i) { + if (typeof object.streams[i] !== "object") + throw TypeError(".vtctldata.Workflow.ShardStream.streams: object expected"); + message.streams[i] = $root.vtctldata.Workflow.Stream.fromObject(object.streams[i]); + } + } + if (object.tablet_controls) { + if (!Array.isArray(object.tablet_controls)) + throw TypeError(".vtctldata.Workflow.ShardStream.tablet_controls: array expected"); + message.tablet_controls = []; + for (let i = 0; i < object.tablet_controls.length; ++i) { + if (typeof object.tablet_controls[i] !== "object") + throw TypeError(".vtctldata.Workflow.ShardStream.tablet_controls: object expected"); + message.tablet_controls[i] = $root.topodata.Shard.TabletControl.fromObject(object.tablet_controls[i]); + } + } + if (object.is_primary_serving != null) + message.is_primary_serving = Boolean(object.is_primary_serving); + return message; + }; + + /** + * Creates a plain object from a ShardStream message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.ShardStream} message ShardStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ShardStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.streams = []; + object.tablet_controls = []; + } + if (options.defaults) + object.is_primary_serving = false; + if (message.streams && message.streams.length) { + object.streams = []; + for (let j = 0; j < message.streams.length; ++j) + object.streams[j] = $root.vtctldata.Workflow.Stream.toObject(message.streams[j], options); + } + if (message.tablet_controls && message.tablet_controls.length) { + object.tablet_controls = []; + for (let j = 0; j < message.tablet_controls.length; ++j) + object.tablet_controls[j] = $root.topodata.Shard.TabletControl.toObject(message.tablet_controls[j], options); + } + if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) + object.is_primary_serving = message.is_primary_serving; + return object; + }; + + /** + * Converts this ShardStream to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.ShardStream + * @instance + * @returns {Object.} JSON object + */ + ShardStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ShardStream + * @function getTypeUrl + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ShardStream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.Workflow.ShardStream"; + }; + + return ShardStream; + })(); + + Workflow.Stream = (function() { + + /** + * Properties of a Stream. + * @memberof vtctldata.Workflow + * @interface IStream + * @property {number|Long|null} [id] Stream id + * @property {string|null} [shard] Stream shard + * @property {topodata.ITabletAlias|null} [tablet] Stream tablet + * @property {binlogdata.IBinlogSource|null} [binlog_source] Stream binlog_source + * @property {string|null} [position] Stream position + * @property {string|null} [stop_position] Stream stop_position + * @property {string|null} [state] Stream state + * @property {string|null} [db_name] Stream db_name + * @property {vttime.ITime|null} [transaction_timestamp] Stream transaction_timestamp + * @property {vttime.ITime|null} [time_updated] Stream time_updated + * @property {string|null} [message] Stream message + * @property {Array.|null} [copy_states] Stream copy_states + * @property {Array.|null} [logs] Stream logs + * @property {string|null} [log_fetch_error] Stream log_fetch_error + * @property {Array.|null} [tags] Stream tags + * @property {number|Long|null} [rows_copied] Stream rows_copied + * @property {vtctldata.Workflow.Stream.IThrottlerStatus|null} [throttler_status] Stream throttler_status + * @property {Array.|null} [tablet_types] Stream tablet_types + * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] Stream tablet_selection_preference + * @property {Array.|null} [cells] Stream cells + */ + + /** + * Constructs a new Stream. + * @memberof vtctldata.Workflow + * @classdesc Represents a Stream. + * @implements IStream + * @constructor + * @param {vtctldata.Workflow.IStream=} [properties] Properties to set + */ + function Stream(properties) { + this.copy_states = []; + this.logs = []; + this.tags = []; + this.tablet_types = []; + this.cells = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Stream id. + * @member {number|Long} id + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Stream shard. + * @member {string} shard + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.shard = ""; + + /** + * Stream tablet. + * @member {topodata.ITabletAlias|null|undefined} tablet + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.tablet = null; + + /** + * Stream binlog_source. + * @member {binlogdata.IBinlogSource|null|undefined} binlog_source + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.binlog_source = null; + + /** + * Stream position. + * @member {string} position + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.position = ""; + + /** + * Stream stop_position. + * @member {string} stop_position + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.stop_position = ""; + + /** + * Stream state. + * @member {string} state + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.state = ""; + + /** + * Stream db_name. + * @member {string} db_name + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.db_name = ""; + + /** + * Stream transaction_timestamp. + * @member {vttime.ITime|null|undefined} transaction_timestamp + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.transaction_timestamp = null; + + /** + * Stream time_updated. + * @member {vttime.ITime|null|undefined} time_updated + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.time_updated = null; + + /** + * Stream message. + * @member {string} message + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.message = ""; + + /** + * Stream copy_states. + * @member {Array.} copy_states + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.copy_states = $util.emptyArray; + + /** + * Stream logs. + * @member {Array.} logs + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.logs = $util.emptyArray; + + /** + * Stream log_fetch_error. + * @member {string} log_fetch_error + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.log_fetch_error = ""; + + /** + * Stream tags. + * @member {Array.} tags + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.tags = $util.emptyArray; + + /** + * Stream rows_copied. + * @member {number|Long} rows_copied + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.rows_copied = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Stream throttler_status. + * @member {vtctldata.Workflow.Stream.IThrottlerStatus|null|undefined} throttler_status + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.throttler_status = null; + + /** + * Stream tablet_types. + * @member {Array.} tablet_types + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.tablet_types = $util.emptyArray; + + /** + * Stream tablet_selection_preference. + * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.tablet_selection_preference = 0; + + /** + * Stream cells. + * @member {Array.} cells + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.cells = $util.emptyArray; + + /** + * Creates a new Stream instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.Stream + * @static + * @param {vtctldata.Workflow.IStream=} [properties] Properties to set + * @returns {vtctldata.Workflow.Stream} Stream instance + */ + Stream.create = function create(properties) { + return new Stream(properties); + }; + + /** + * Encodes the specified Stream message. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.Stream + * @static + * @param {vtctldata.Workflow.IStream} message Stream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Stream.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) + $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.binlog_source != null && Object.hasOwnProperty.call(message, "binlog_source")) + $root.binlogdata.BinlogSource.encode(message.binlog_source, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.position); + if (message.stop_position != null && Object.hasOwnProperty.call(message, "stop_position")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.stop_position); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.state); + if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.db_name); + if (message.transaction_timestamp != null && Object.hasOwnProperty.call(message, "transaction_timestamp")) + $root.vttime.Time.encode(message.transaction_timestamp, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.time_updated != null && Object.hasOwnProperty.call(message, "time_updated")) + $root.vttime.Time.encode(message.time_updated, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.message); + if (message.copy_states != null && message.copy_states.length) + for (let i = 0; i < message.copy_states.length; ++i) + $root.vtctldata.Workflow.Stream.CopyState.encode(message.copy_states[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.logs != null && message.logs.length) + for (let i = 0; i < message.logs.length; ++i) + $root.vtctldata.Workflow.Stream.Log.encode(message.logs[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.log_fetch_error != null && Object.hasOwnProperty.call(message, "log_fetch_error")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.log_fetch_error); + if (message.tags != null && message.tags.length) + for (let i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.tags[i]); + if (message.rows_copied != null && Object.hasOwnProperty.call(message, "rows_copied")) + writer.uint32(/* id 16, wireType 0 =*/128).int64(message.rows_copied); + if (message.throttler_status != null && Object.hasOwnProperty.call(message, "throttler_status")) + $root.vtctldata.Workflow.Stream.ThrottlerStatus.encode(message.throttler_status, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.tablet_types != null && message.tablet_types.length) { + writer.uint32(/* id 18, wireType 2 =*/146).fork(); + for (let i = 0; i < message.tablet_types.length; ++i) + writer.int32(message.tablet_types[i]); + writer.ldelim(); + } + if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) + writer.uint32(/* id 19, wireType 0 =*/152).int32(message.tablet_selection_preference); + if (message.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 20, wireType 2 =*/162).string(message.cells[i]); + return writer; + }; + + /** + * Encodes the specified Stream message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.Stream + * @static + * @param {vtctldata.Workflow.IStream} message Stream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Stream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Stream message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.Stream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.Stream} Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Stream.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.int64(); + break; + } + case 2: { + message.shard = reader.string(); + break; + } + case 3: { + message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 4: { + message.binlog_source = $root.binlogdata.BinlogSource.decode(reader, reader.uint32()); + break; + } + case 5: { + message.position = reader.string(); + break; + } + case 6: { + message.stop_position = reader.string(); + break; + } + case 7: { + message.state = reader.string(); + break; + } + case 8: { + message.db_name = reader.string(); + break; + } + case 9: { + message.transaction_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 10: { + message.time_updated = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 11: { + message.message = reader.string(); + break; + } + case 12: { + if (!(message.copy_states && message.copy_states.length)) + message.copy_states = []; + message.copy_states.push($root.vtctldata.Workflow.Stream.CopyState.decode(reader, reader.uint32())); + break; + } + case 13: { + if (!(message.logs && message.logs.length)) + message.logs = []; + message.logs.push($root.vtctldata.Workflow.Stream.Log.decode(reader, reader.uint32())); + break; + } + case 14: { + message.log_fetch_error = reader.string(); + break; + } + case 15: { + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + } + case 16: { + message.rows_copied = reader.int64(); + break; + } + case 17: { + message.throttler_status = $root.vtctldata.Workflow.Stream.ThrottlerStatus.decode(reader, reader.uint32()); + break; + } + case 18: { + if (!(message.tablet_types && message.tablet_types.length)) + message.tablet_types = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.tablet_types.push(reader.int32()); + } else + message.tablet_types.push(reader.int32()); + break; + } + case 19: { + message.tablet_selection_preference = reader.int32(); + break; + } + case 20: { + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Stream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.Stream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.Stream} Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Stream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Stream message. + * @function verify + * @memberof vtctldata.Workflow.Stream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Stream.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.tablet != null && message.hasOwnProperty("tablet")) { + let error = $root.topodata.TabletAlias.verify(message.tablet); + if (error) + return "tablet." + error; + } + if (message.binlog_source != null && message.hasOwnProperty("binlog_source")) { + let error = $root.binlogdata.BinlogSource.verify(message.binlog_source); + if (error) + return "binlog_source." + error; + } + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; + if (message.stop_position != null && message.hasOwnProperty("stop_position")) + if (!$util.isString(message.stop_position)) + return "stop_position: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + if (!$util.isString(message.state)) + return "state: string expected"; + if (message.db_name != null && message.hasOwnProperty("db_name")) + if (!$util.isString(message.db_name)) + return "db_name: string expected"; + if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) { + let error = $root.vttime.Time.verify(message.transaction_timestamp); + if (error) + return "transaction_timestamp." + error; + } + if (message.time_updated != null && message.hasOwnProperty("time_updated")) { + let error = $root.vttime.Time.verify(message.time_updated); + if (error) + return "time_updated." + error; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) return "message: string expected"; if (message.copy_states != null && message.hasOwnProperty("copy_states")) { if (!Array.isArray(message.copy_states)) @@ -130194,959 +132602,7394 @@ export const vtctldata = $root.vtctldata = (() => { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Gets the default type url for Stream - * @function getTypeUrl - * @memberof vtctldata.Workflow.Stream - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Stream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.Workflow.Stream"; - }; + /** + * Gets the default type url for Stream + * @function getTypeUrl + * @memberof vtctldata.Workflow.Stream + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Stream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.Workflow.Stream"; + }; + + Stream.CopyState = (function() { + + /** + * Properties of a CopyState. + * @memberof vtctldata.Workflow.Stream + * @interface ICopyState + * @property {string|null} [table] CopyState table + * @property {string|null} [last_pk] CopyState last_pk + * @property {number|Long|null} [stream_id] CopyState stream_id + */ + + /** + * Constructs a new CopyState. + * @memberof vtctldata.Workflow.Stream + * @classdesc Represents a CopyState. + * @implements ICopyState + * @constructor + * @param {vtctldata.Workflow.Stream.ICopyState=} [properties] Properties to set + */ + function CopyState(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CopyState table. + * @member {string} table + * @memberof vtctldata.Workflow.Stream.CopyState + * @instance + */ + CopyState.prototype.table = ""; + + /** + * CopyState last_pk. + * @member {string} last_pk + * @memberof vtctldata.Workflow.Stream.CopyState + * @instance + */ + CopyState.prototype.last_pk = ""; + + /** + * CopyState stream_id. + * @member {number|Long} stream_id + * @memberof vtctldata.Workflow.Stream.CopyState + * @instance + */ + CopyState.prototype.stream_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new CopyState instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.ICopyState=} [properties] Properties to set + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState instance + */ + CopyState.create = function create(properties) { + return new CopyState(properties); + }; + + /** + * Encodes the specified CopyState message. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.ICopyState} message CopyState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.table != null && Object.hasOwnProperty.call(message, "table")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.table); + if (message.last_pk != null && Object.hasOwnProperty.call(message, "last_pk")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.last_pk); + if (message.stream_id != null && Object.hasOwnProperty.call(message, "stream_id")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.stream_id); + return writer; + }; + + /** + * Encodes the specified CopyState message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.ICopyState} message CopyState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CopyState message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream.CopyState(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.table = reader.string(); + break; + } + case 2: { + message.last_pk = reader.string(); + break; + } + case 3: { + message.stream_id = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CopyState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CopyState message. + * @function verify + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CopyState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.table != null && message.hasOwnProperty("table")) + if (!$util.isString(message.table)) + return "table: string expected"; + if (message.last_pk != null && message.hasOwnProperty("last_pk")) + if (!$util.isString(message.last_pk)) + return "last_pk: string expected"; + if (message.stream_id != null && message.hasOwnProperty("stream_id")) + if (!$util.isInteger(message.stream_id) && !(message.stream_id && $util.isInteger(message.stream_id.low) && $util.isInteger(message.stream_id.high))) + return "stream_id: integer|Long expected"; + return null; + }; + + /** + * Creates a CopyState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState + */ + CopyState.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.Stream.CopyState) + return object; + let message = new $root.vtctldata.Workflow.Stream.CopyState(); + if (object.table != null) + message.table = String(object.table); + if (object.last_pk != null) + message.last_pk = String(object.last_pk); + if (object.stream_id != null) + if ($util.Long) + (message.stream_id = $util.Long.fromValue(object.stream_id)).unsigned = false; + else if (typeof object.stream_id === "string") + message.stream_id = parseInt(object.stream_id, 10); + else if (typeof object.stream_id === "number") + message.stream_id = object.stream_id; + else if (typeof object.stream_id === "object") + message.stream_id = new $util.LongBits(object.stream_id.low >>> 0, object.stream_id.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a CopyState message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.CopyState} message CopyState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CopyState.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.table = ""; + object.last_pk = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.stream_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.stream_id = options.longs === String ? "0" : 0; + } + if (message.table != null && message.hasOwnProperty("table")) + object.table = message.table; + if (message.last_pk != null && message.hasOwnProperty("last_pk")) + object.last_pk = message.last_pk; + if (message.stream_id != null && message.hasOwnProperty("stream_id")) + if (typeof message.stream_id === "number") + object.stream_id = options.longs === String ? String(message.stream_id) : message.stream_id; + else + object.stream_id = options.longs === String ? $util.Long.prototype.toString.call(message.stream_id) : options.longs === Number ? new $util.LongBits(message.stream_id.low >>> 0, message.stream_id.high >>> 0).toNumber() : message.stream_id; + return object; + }; + + /** + * Converts this CopyState to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.Stream.CopyState + * @instance + * @returns {Object.} JSON object + */ + CopyState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CopyState + * @function getTypeUrl + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CopyState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.Workflow.Stream.CopyState"; + }; + + return CopyState; + })(); + + Stream.Log = (function() { + + /** + * Properties of a Log. + * @memberof vtctldata.Workflow.Stream + * @interface ILog + * @property {number|Long|null} [id] Log id + * @property {number|Long|null} [stream_id] Log stream_id + * @property {string|null} [type] Log type + * @property {string|null} [state] Log state + * @property {vttime.ITime|null} [created_at] Log created_at + * @property {vttime.ITime|null} [updated_at] Log updated_at + * @property {string|null} [message] Log message + * @property {number|Long|null} [count] Log count + */ + + /** + * Constructs a new Log. + * @memberof vtctldata.Workflow.Stream + * @classdesc Represents a Log. + * @implements ILog + * @constructor + * @param {vtctldata.Workflow.Stream.ILog=} [properties] Properties to set + */ + function Log(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Log id. + * @member {number|Long} id + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Log stream_id. + * @member {number|Long} stream_id + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.stream_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Log type. + * @member {string} type + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.type = ""; + + /** + * Log state. + * @member {string} state + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.state = ""; + + /** + * Log created_at. + * @member {vttime.ITime|null|undefined} created_at + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.created_at = null; + + /** + * Log updated_at. + * @member {vttime.ITime|null|undefined} updated_at + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.updated_at = null; + + /** + * Log message. + * @member {string} message + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.message = ""; + + /** + * Log count. + * @member {number|Long} count + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.count = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new Log instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {vtctldata.Workflow.Stream.ILog=} [properties] Properties to set + * @returns {vtctldata.Workflow.Stream.Log} Log instance + */ + Log.create = function create(properties) { + return new Log(properties); + }; + + /** + * Encodes the specified Log message. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {vtctldata.Workflow.Stream.ILog} message Log message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Log.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); + if (message.stream_id != null && Object.hasOwnProperty.call(message, "stream_id")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.stream_id); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.state); + if (message.created_at != null && Object.hasOwnProperty.call(message, "created_at")) + $root.vttime.Time.encode(message.created_at, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.updated_at != null && Object.hasOwnProperty.call(message, "updated_at")) + $root.vttime.Time.encode(message.updated_at, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.message); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 8, wireType 0 =*/64).int64(message.count); + return writer; + }; + + /** + * Encodes the specified Log message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {vtctldata.Workflow.Stream.ILog} message Log message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Log.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Log message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.Stream.Log} Log + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Log.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream.Log(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.int64(); + break; + } + case 2: { + message.stream_id = reader.int64(); + break; + } + case 3: { + message.type = reader.string(); + break; + } + case 4: { + message.state = reader.string(); + break; + } + case 5: { + message.created_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 6: { + message.updated_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 7: { + message.message = reader.string(); + break; + } + case 8: { + message.count = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Log message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.Stream.Log} Log + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Log.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Log message. + * @function verify + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Log.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + if (message.stream_id != null && message.hasOwnProperty("stream_id")) + if (!$util.isInteger(message.stream_id) && !(message.stream_id && $util.isInteger(message.stream_id.low) && $util.isInteger(message.stream_id.high))) + return "stream_id: integer|Long expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + if (!$util.isString(message.state)) + return "state: string expected"; + if (message.created_at != null && message.hasOwnProperty("created_at")) { + let error = $root.vttime.Time.verify(message.created_at); + if (error) + return "created_at." + error; + } + if (message.updated_at != null && message.hasOwnProperty("updated_at")) { + let error = $root.vttime.Time.verify(message.updated_at); + if (error) + return "updated_at." + error; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high))) + return "count: integer|Long expected"; + return null; + }; + + /** + * Creates a Log message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.Stream.Log} Log + */ + Log.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.Stream.Log) + return object; + let message = new $root.vtctldata.Workflow.Stream.Log(); + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = false; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); + if (object.stream_id != null) + if ($util.Long) + (message.stream_id = $util.Long.fromValue(object.stream_id)).unsigned = false; + else if (typeof object.stream_id === "string") + message.stream_id = parseInt(object.stream_id, 10); + else if (typeof object.stream_id === "number") + message.stream_id = object.stream_id; + else if (typeof object.stream_id === "object") + message.stream_id = new $util.LongBits(object.stream_id.low >>> 0, object.stream_id.high >>> 0).toNumber(); + if (object.type != null) + message.type = String(object.type); + if (object.state != null) + message.state = String(object.state); + if (object.created_at != null) { + if (typeof object.created_at !== "object") + throw TypeError(".vtctldata.Workflow.Stream.Log.created_at: object expected"); + message.created_at = $root.vttime.Time.fromObject(object.created_at); + } + if (object.updated_at != null) { + if (typeof object.updated_at !== "object") + throw TypeError(".vtctldata.Workflow.Stream.Log.updated_at: object expected"); + message.updated_at = $root.vttime.Time.fromObject(object.updated_at); + } + if (object.message != null) + message.message = String(object.message); + if (object.count != null) + if ($util.Long) + (message.count = $util.Long.fromValue(object.count)).unsigned = false; + else if (typeof object.count === "string") + message.count = parseInt(object.count, 10); + else if (typeof object.count === "number") + message.count = object.count; + else if (typeof object.count === "object") + message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a Log message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {vtctldata.Workflow.Stream.Log} message Log + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Log.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.id = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.stream_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.stream_id = options.longs === String ? "0" : 0; + object.type = ""; + object.state = ""; + object.created_at = null; + object.updated_at = null; + object.message = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.count = options.longs === String ? "0" : 0; + } + if (message.id != null && message.hasOwnProperty("id")) + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; + if (message.stream_id != null && message.hasOwnProperty("stream_id")) + if (typeof message.stream_id === "number") + object.stream_id = options.longs === String ? String(message.stream_id) : message.stream_id; + else + object.stream_id = options.longs === String ? $util.Long.prototype.toString.call(message.stream_id) : options.longs === Number ? new $util.LongBits(message.stream_id.low >>> 0, message.stream_id.high >>> 0).toNumber() : message.stream_id; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.state != null && message.hasOwnProperty("state")) + object.state = message.state; + if (message.created_at != null && message.hasOwnProperty("created_at")) + object.created_at = $root.vttime.Time.toObject(message.created_at, options); + if (message.updated_at != null && message.hasOwnProperty("updated_at")) + object.updated_at = $root.vttime.Time.toObject(message.updated_at, options); + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.count != null && message.hasOwnProperty("count")) + if (typeof message.count === "number") + object.count = options.longs === String ? String(message.count) : message.count; + else + object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count; + return object; + }; + + /** + * Converts this Log to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.Stream.Log + * @instance + * @returns {Object.} JSON object + */ + Log.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Log + * @function getTypeUrl + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Log.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.Workflow.Stream.Log"; + }; + + return Log; + })(); + + Stream.ThrottlerStatus = (function() { + + /** + * Properties of a ThrottlerStatus. + * @memberof vtctldata.Workflow.Stream + * @interface IThrottlerStatus + * @property {string|null} [component_throttled] ThrottlerStatus component_throttled + * @property {vttime.ITime|null} [time_throttled] ThrottlerStatus time_throttled + */ + + /** + * Constructs a new ThrottlerStatus. + * @memberof vtctldata.Workflow.Stream + * @classdesc Represents a ThrottlerStatus. + * @implements IThrottlerStatus + * @constructor + * @param {vtctldata.Workflow.Stream.IThrottlerStatus=} [properties] Properties to set + */ + function ThrottlerStatus(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ThrottlerStatus component_throttled. + * @member {string} component_throttled + * @memberof vtctldata.Workflow.Stream.ThrottlerStatus + * @instance + */ + ThrottlerStatus.prototype.component_throttled = ""; + + /** + * ThrottlerStatus time_throttled. + * @member {vttime.ITime|null|undefined} time_throttled + * @memberof vtctldata.Workflow.Stream.ThrottlerStatus + * @instance + */ + ThrottlerStatus.prototype.time_throttled = null; + + /** + * Creates a new ThrottlerStatus instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.Stream.ThrottlerStatus + * @static + * @param {vtctldata.Workflow.Stream.IThrottlerStatus=} [properties] Properties to set + * @returns {vtctldata.Workflow.Stream.ThrottlerStatus} ThrottlerStatus instance + */ + ThrottlerStatus.create = function create(properties) { + return new ThrottlerStatus(properties); + }; + + /** + * Encodes the specified ThrottlerStatus message. Does not implicitly {@link vtctldata.Workflow.Stream.ThrottlerStatus.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.Stream.ThrottlerStatus + * @static + * @param {vtctldata.Workflow.Stream.IThrottlerStatus} message ThrottlerStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ThrottlerStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.component_throttled != null && Object.hasOwnProperty.call(message, "component_throttled")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.component_throttled); + if (message.time_throttled != null && Object.hasOwnProperty.call(message, "time_throttled")) + $root.vttime.Time.encode(message.time_throttled, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ThrottlerStatus message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.ThrottlerStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.Stream.ThrottlerStatus + * @static + * @param {vtctldata.Workflow.Stream.IThrottlerStatus} message ThrottlerStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ThrottlerStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ThrottlerStatus message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.Stream.ThrottlerStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.Stream.ThrottlerStatus} ThrottlerStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ThrottlerStatus.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream.ThrottlerStatus(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.component_throttled = reader.string(); + break; + } + case 2: { + message.time_throttled = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ThrottlerStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.Stream.ThrottlerStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.Stream.ThrottlerStatus} ThrottlerStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ThrottlerStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ThrottlerStatus message. + * @function verify + * @memberof vtctldata.Workflow.Stream.ThrottlerStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ThrottlerStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.component_throttled != null && message.hasOwnProperty("component_throttled")) + if (!$util.isString(message.component_throttled)) + return "component_throttled: string expected"; + if (message.time_throttled != null && message.hasOwnProperty("time_throttled")) { + let error = $root.vttime.Time.verify(message.time_throttled); + if (error) + return "time_throttled." + error; + } + return null; + }; + + /** + * Creates a ThrottlerStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.Stream.ThrottlerStatus + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.Stream.ThrottlerStatus} ThrottlerStatus + */ + ThrottlerStatus.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.Stream.ThrottlerStatus) + return object; + let message = new $root.vtctldata.Workflow.Stream.ThrottlerStatus(); + if (object.component_throttled != null) + message.component_throttled = String(object.component_throttled); + if (object.time_throttled != null) { + if (typeof object.time_throttled !== "object") + throw TypeError(".vtctldata.Workflow.Stream.ThrottlerStatus.time_throttled: object expected"); + message.time_throttled = $root.vttime.Time.fromObject(object.time_throttled); + } + return message; + }; + + /** + * Creates a plain object from a ThrottlerStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.Stream.ThrottlerStatus + * @static + * @param {vtctldata.Workflow.Stream.ThrottlerStatus} message ThrottlerStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ThrottlerStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.component_throttled = ""; + object.time_throttled = null; + } + if (message.component_throttled != null && message.hasOwnProperty("component_throttled")) + object.component_throttled = message.component_throttled; + if (message.time_throttled != null && message.hasOwnProperty("time_throttled")) + object.time_throttled = $root.vttime.Time.toObject(message.time_throttled, options); + return object; + }; + + /** + * Converts this ThrottlerStatus to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.Stream.ThrottlerStatus + * @instance + * @returns {Object.} JSON object + */ + ThrottlerStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ThrottlerStatus + * @function getTypeUrl + * @memberof vtctldata.Workflow.Stream.ThrottlerStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ThrottlerStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.Workflow.Stream.ThrottlerStatus"; + }; + + return ThrottlerStatus; + })(); + + 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 (let 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); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoRequest(); + while (reader.pos < end) { + let 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")) { + let 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; + let 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 = {}; + let 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); + }; + + /** + * Gets the default type url for AddCellInfoRequest + * @function getTypeUrl + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AddCellInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.AddCellInfoRequest"; + }; + + 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 (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new 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); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AddCellInfoResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AddCellInfoResponse message. + * @function verify + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddCellInfoResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * 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(); + }; + + /** + * 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); + }; + + /** + * Gets the default type url for AddCellInfoResponse + * @function getTypeUrl + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AddCellInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.AddCellInfoResponse"; + }; + + return AddCellInfoResponse; + })(); + + vtctldata.AddCellsAliasRequest = (function() { + + /** + * Properties of an AddCellsAliasRequest. + * @memberof vtctldata + * @interface IAddCellsAliasRequest + * @property {string|null} [name] AddCellsAliasRequest name + * @property {Array.|null} [cells] AddCellsAliasRequest cells + */ + + /** + * Constructs a new AddCellsAliasRequest. + * @memberof vtctldata + * @classdesc Represents an AddCellsAliasRequest. + * @implements IAddCellsAliasRequest + * @constructor + * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set + */ + function AddCellsAliasRequest(properties) { + this.cells = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AddCellsAliasRequest name. + * @member {string} name + * @memberof vtctldata.AddCellsAliasRequest + * @instance + */ + AddCellsAliasRequest.prototype.name = ""; + + /** + * AddCellsAliasRequest cells. + * @member {Array.} cells + * @memberof vtctldata.AddCellsAliasRequest + * @instance + */ + AddCellsAliasRequest.prototype.cells = $util.emptyArray; + + /** + * Creates a new AddCellsAliasRequest instance using the specified properties. + * @function create + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest instance + */ + AddCellsAliasRequest.create = function create(properties) { + return new AddCellsAliasRequest(properties); + }; + + /** + * Encodes the specified AddCellsAliasRequest message. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellsAliasRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); + return writer; + }; + + /** + * Encodes the specified AddCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellsAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AddCellsAliasRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellsAliasRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AddCellsAliasRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellsAliasRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AddCellsAliasRequest message. + * @function verify + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddCellsAliasRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } + return null; + }; + + /** + * Creates an AddCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + */ + AddCellsAliasRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.AddCellsAliasRequest) + return object; + let 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 (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } + return message; + }; + + /** + * Creates a plain object from an AddCellsAliasRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {vtctldata.AddCellsAliasRequest} message AddCellsAliasRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddCellsAliasRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let 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 (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + return object; + }; + + /** + * Converts this AddCellsAliasRequest to JSON. + * @function toJSON + * @memberof vtctldata.AddCellsAliasRequest + * @instance + * @returns {Object.} JSON object + */ + AddCellsAliasRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AddCellsAliasRequest + * @function getTypeUrl + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AddCellsAliasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.AddCellsAliasRequest"; + }; + + return AddCellsAliasRequest; + })(); + + vtctldata.AddCellsAliasResponse = (function() { + + /** + * Properties of an AddCellsAliasResponse. + * @memberof vtctldata + * @interface IAddCellsAliasResponse + */ + + /** + * Constructs a new AddCellsAliasResponse. + * @memberof vtctldata + * @classdesc Represents an AddCellsAliasResponse. + * @implements IAddCellsAliasResponse + * @constructor + * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set + */ + function AddCellsAliasResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new AddCellsAliasResponse instance using the specified properties. + * @function create + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse instance + */ + AddCellsAliasResponse.create = function create(properties) { + return new AddCellsAliasResponse(properties); + }; + + /** + * Encodes the specified AddCellsAliasResponse message. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellsAliasResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified AddCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellsAliasResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AddCellsAliasResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellsAliasResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AddCellsAliasResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellsAliasResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AddCellsAliasResponse message. + * @function verify + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddCellsAliasResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an AddCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + */ + AddCellsAliasResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.AddCellsAliasResponse) + return object; + return new $root.vtctldata.AddCellsAliasResponse(); + }; + + /** + * Creates a plain object from an AddCellsAliasResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {vtctldata.AddCellsAliasResponse} message AddCellsAliasResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddCellsAliasResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this AddCellsAliasResponse to JSON. + * @function toJSON + * @memberof vtctldata.AddCellsAliasResponse + * @instance + * @returns {Object.} JSON object + */ + AddCellsAliasResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AddCellsAliasResponse + * @function getTypeUrl + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AddCellsAliasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.AddCellsAliasResponse"; + }; + + return AddCellsAliasResponse; + })(); + + vtctldata.ApplyKeyspaceRoutingRulesRequest = (function() { + + /** + * Properties of an ApplyKeyspaceRoutingRulesRequest. + * @memberof vtctldata + * @interface IApplyKeyspaceRoutingRulesRequest + * @property {vschema.IKeyspaceRoutingRules|null} [keyspace_routing_rules] ApplyKeyspaceRoutingRulesRequest keyspace_routing_rules + * @property {boolean|null} [skip_rebuild] ApplyKeyspaceRoutingRulesRequest skip_rebuild + * @property {Array.|null} [rebuild_cells] ApplyKeyspaceRoutingRulesRequest rebuild_cells + */ + + /** + * Constructs a new ApplyKeyspaceRoutingRulesRequest. + * @memberof vtctldata + * @classdesc Represents an ApplyKeyspaceRoutingRulesRequest. + * @implements IApplyKeyspaceRoutingRulesRequest + * @constructor + * @param {vtctldata.IApplyKeyspaceRoutingRulesRequest=} [properties] Properties to set + */ + function ApplyKeyspaceRoutingRulesRequest(properties) { + this.rebuild_cells = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ApplyKeyspaceRoutingRulesRequest keyspace_routing_rules. + * @member {vschema.IKeyspaceRoutingRules|null|undefined} keyspace_routing_rules + * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @instance + */ + ApplyKeyspaceRoutingRulesRequest.prototype.keyspace_routing_rules = null; + + /** + * ApplyKeyspaceRoutingRulesRequest skip_rebuild. + * @member {boolean} skip_rebuild + * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @instance + */ + ApplyKeyspaceRoutingRulesRequest.prototype.skip_rebuild = false; + + /** + * ApplyKeyspaceRoutingRulesRequest rebuild_cells. + * @member {Array.} rebuild_cells + * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @instance + */ + ApplyKeyspaceRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; + + /** + * Creates a new ApplyKeyspaceRoutingRulesRequest instance using the specified properties. + * @function create + * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @static + * @param {vtctldata.IApplyKeyspaceRoutingRulesRequest=} [properties] Properties to set + * @returns {vtctldata.ApplyKeyspaceRoutingRulesRequest} ApplyKeyspaceRoutingRulesRequest instance + */ + ApplyKeyspaceRoutingRulesRequest.create = function create(properties) { + return new ApplyKeyspaceRoutingRulesRequest(properties); + }; + + /** + * Encodes the specified ApplyKeyspaceRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @static + * @param {vtctldata.IApplyKeyspaceRoutingRulesRequest} message ApplyKeyspaceRoutingRulesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyKeyspaceRoutingRulesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyspace_routing_rules != null && Object.hasOwnProperty.call(message, "keyspace_routing_rules")) + $root.vschema.KeyspaceRoutingRules.encode(message.keyspace_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 (let 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 ApplyKeyspaceRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @static + * @param {vtctldata.IApplyKeyspaceRoutingRulesRequest} message ApplyKeyspaceRoutingRulesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyKeyspaceRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ApplyKeyspaceRoutingRulesRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.ApplyKeyspaceRoutingRulesRequest} ApplyKeyspaceRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ApplyKeyspaceRoutingRulesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyKeyspaceRoutingRulesRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.decode(reader, reader.uint32()); + break; + } + case 2: { + message.skip_rebuild = reader.bool(); + break; + } + case 3: { + if (!(message.rebuild_cells && message.rebuild_cells.length)) + message.rebuild_cells = []; + message.rebuild_cells.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ApplyKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ApplyKeyspaceRoutingRulesRequest} ApplyKeyspaceRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ApplyKeyspaceRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ApplyKeyspaceRoutingRulesRequest message. + * @function verify + * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ApplyKeyspaceRoutingRulesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) { + let error = $root.vschema.KeyspaceRoutingRules.verify(message.keyspace_routing_rules); + if (error) + return "keyspace_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 (let i = 0; i < message.rebuild_cells.length; ++i) + if (!$util.isString(message.rebuild_cells[i])) + return "rebuild_cells: string[] expected"; + } + return null; + }; + + /** + * Creates an ApplyKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ApplyKeyspaceRoutingRulesRequest} ApplyKeyspaceRoutingRulesRequest + */ + ApplyKeyspaceRoutingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyKeyspaceRoutingRulesRequest) + return object; + let message = new $root.vtctldata.ApplyKeyspaceRoutingRulesRequest(); + if (object.keyspace_routing_rules != null) { + if (typeof object.keyspace_routing_rules !== "object") + throw TypeError(".vtctldata.ApplyKeyspaceRoutingRulesRequest.keyspace_routing_rules: object expected"); + message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.fromObject(object.keyspace_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.ApplyKeyspaceRoutingRulesRequest.rebuild_cells: array expected"); + message.rebuild_cells = []; + for (let 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 ApplyKeyspaceRoutingRulesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @static + * @param {vtctldata.ApplyKeyspaceRoutingRulesRequest} message ApplyKeyspaceRoutingRulesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ApplyKeyspaceRoutingRulesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.rebuild_cells = []; + if (options.defaults) { + object.keyspace_routing_rules = null; + object.skip_rebuild = false; + } + if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) + object.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.toObject(message.keyspace_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 (let j = 0; j < message.rebuild_cells.length; ++j) + object.rebuild_cells[j] = message.rebuild_cells[j]; + } + return object; + }; + + /** + * Converts this ApplyKeyspaceRoutingRulesRequest to JSON. + * @function toJSON + * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @instance + * @returns {Object.} JSON object + */ + ApplyKeyspaceRoutingRulesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ApplyKeyspaceRoutingRulesRequest + * @function getTypeUrl + * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ApplyKeyspaceRoutingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ApplyKeyspaceRoutingRulesRequest"; + }; + + return ApplyKeyspaceRoutingRulesRequest; + })(); + + vtctldata.ApplyKeyspaceRoutingRulesResponse = (function() { + + /** + * Properties of an ApplyKeyspaceRoutingRulesResponse. + * @memberof vtctldata + * @interface IApplyKeyspaceRoutingRulesResponse + * @property {vschema.IKeyspaceRoutingRules|null} [keyspace_routing_rules] ApplyKeyspaceRoutingRulesResponse keyspace_routing_rules + */ + + /** + * Constructs a new ApplyKeyspaceRoutingRulesResponse. + * @memberof vtctldata + * @classdesc Represents an ApplyKeyspaceRoutingRulesResponse. + * @implements IApplyKeyspaceRoutingRulesResponse + * @constructor + * @param {vtctldata.IApplyKeyspaceRoutingRulesResponse=} [properties] Properties to set + */ + function ApplyKeyspaceRoutingRulesResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ApplyKeyspaceRoutingRulesResponse keyspace_routing_rules. + * @member {vschema.IKeyspaceRoutingRules|null|undefined} keyspace_routing_rules + * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @instance + */ + ApplyKeyspaceRoutingRulesResponse.prototype.keyspace_routing_rules = null; + + /** + * Creates a new ApplyKeyspaceRoutingRulesResponse instance using the specified properties. + * @function create + * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @static + * @param {vtctldata.IApplyKeyspaceRoutingRulesResponse=} [properties] Properties to set + * @returns {vtctldata.ApplyKeyspaceRoutingRulesResponse} ApplyKeyspaceRoutingRulesResponse instance + */ + ApplyKeyspaceRoutingRulesResponse.create = function create(properties) { + return new ApplyKeyspaceRoutingRulesResponse(properties); + }; + + /** + * Encodes the specified ApplyKeyspaceRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @static + * @param {vtctldata.IApplyKeyspaceRoutingRulesResponse} message ApplyKeyspaceRoutingRulesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyKeyspaceRoutingRulesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyspace_routing_rules != null && Object.hasOwnProperty.call(message, "keyspace_routing_rules")) + $root.vschema.KeyspaceRoutingRules.encode(message.keyspace_routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ApplyKeyspaceRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @static + * @param {vtctldata.IApplyKeyspaceRoutingRulesResponse} message ApplyKeyspaceRoutingRulesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyKeyspaceRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ApplyKeyspaceRoutingRulesResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.ApplyKeyspaceRoutingRulesResponse} ApplyKeyspaceRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ApplyKeyspaceRoutingRulesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyKeyspaceRoutingRulesResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ApplyKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ApplyKeyspaceRoutingRulesResponse} ApplyKeyspaceRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ApplyKeyspaceRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ApplyKeyspaceRoutingRulesResponse message. + * @function verify + * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ApplyKeyspaceRoutingRulesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) { + let error = $root.vschema.KeyspaceRoutingRules.verify(message.keyspace_routing_rules); + if (error) + return "keyspace_routing_rules." + error; + } + return null; + }; + + /** + * Creates an ApplyKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ApplyKeyspaceRoutingRulesResponse} ApplyKeyspaceRoutingRulesResponse + */ + ApplyKeyspaceRoutingRulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyKeyspaceRoutingRulesResponse) + return object; + let message = new $root.vtctldata.ApplyKeyspaceRoutingRulesResponse(); + if (object.keyspace_routing_rules != null) { + if (typeof object.keyspace_routing_rules !== "object") + throw TypeError(".vtctldata.ApplyKeyspaceRoutingRulesResponse.keyspace_routing_rules: object expected"); + message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.fromObject(object.keyspace_routing_rules); + } + return message; + }; + + /** + * Creates a plain object from an ApplyKeyspaceRoutingRulesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @static + * @param {vtctldata.ApplyKeyspaceRoutingRulesResponse} message ApplyKeyspaceRoutingRulesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ApplyKeyspaceRoutingRulesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.keyspace_routing_rules = null; + if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) + object.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.toObject(message.keyspace_routing_rules, options); + return object; + }; + + /** + * Converts this ApplyKeyspaceRoutingRulesResponse to JSON. + * @function toJSON + * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @instance + * @returns {Object.} JSON object + */ + ApplyKeyspaceRoutingRulesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ApplyKeyspaceRoutingRulesResponse + * @function getTypeUrl + * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ApplyKeyspaceRoutingRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ApplyKeyspaceRoutingRulesResponse"; + }; + + return ApplyKeyspaceRoutingRulesResponse; + })(); + + vtctldata.ApplyRoutingRulesRequest = (function() { + + /** + * Properties of an ApplyRoutingRulesRequest. + * @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 + */ + + /** + * Constructs a new ApplyRoutingRulesRequest. + * @memberof vtctldata + * @classdesc Represents an ApplyRoutingRulesRequest. + * @implements IApplyRoutingRulesRequest + * @constructor + * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set + */ + function ApplyRoutingRulesRequest(properties) { + this.rebuild_cells = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ApplyRoutingRulesRequest routing_rules. + * @member {vschema.IRoutingRules|null|undefined} routing_rules + * @memberof vtctldata.ApplyRoutingRulesRequest + * @instance + */ + ApplyRoutingRulesRequest.prototype.routing_rules = null; + + /** + * ApplyRoutingRulesRequest skip_rebuild. + * @member {boolean} skip_rebuild + * @memberof vtctldata.ApplyRoutingRulesRequest + * @instance + */ + ApplyRoutingRulesRequest.prototype.skip_rebuild = false; + + /** + * 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.ApplyRoutingRulesRequest + * @static + * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set + * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest instance + */ + ApplyRoutingRulesRequest.create = function create(properties) { + return new ApplyRoutingRulesRequest(properties); + }; + + /** + * Encodes the specified ApplyRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.ApplyRoutingRulesRequest + * @static + * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyRoutingRulesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.routing_rules != null && Object.hasOwnProperty.call(message, "routing_rules")) + $root.vschema.RoutingRules.encode(message.routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); + if (message.rebuild_cells != null && message.rebuild_cells.length) + for (let 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 ApplyRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ApplyRoutingRulesRequest + * @static + * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer. + * @function decode + * @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.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); + break; + } + case 2: { + message.skip_rebuild = reader.bool(); + break; + } + case 3: { + if (!(message.rebuild_cells && message.rebuild_cells.length)) + message.rebuild_cells = []; + message.rebuild_cells.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ApplyRoutingRulesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ApplyRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ApplyRoutingRulesRequest message. + * @function verify + * @memberof vtctldata.ApplyRoutingRulesRequest + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { + let 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 (let i = 0; i < message.rebuild_cells.length; ++i) + if (!$util.isString(message.rebuild_cells[i])) + return "rebuild_cells: string[] expected"; + } + return null; + }; + + /** + * Creates an ApplyRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ApplyRoutingRulesRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest + */ + ApplyRoutingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyRoutingRulesRequest) + return object; + let 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 (let 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 ApplyRoutingRulesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ApplyRoutingRulesRequest + * @static + * @param {vtctldata.ApplyRoutingRulesRequest} message ApplyRoutingRulesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ApplyRoutingRulesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.rebuild_cells = []; + if (options.defaults) { + object.routing_rules = null; + object.skip_rebuild = false; + } + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) + object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + object.skip_rebuild = message.skip_rebuild; + if (message.rebuild_cells && message.rebuild_cells.length) { + object.rebuild_cells = []; + for (let j = 0; j < message.rebuild_cells.length; ++j) + object.rebuild_cells[j] = message.rebuild_cells[j]; + } + return object; + }; + + /** + * Converts this ApplyRoutingRulesRequest to JSON. + * @function toJSON + * @memberof vtctldata.ApplyRoutingRulesRequest + * @instance + * @returns {Object.} JSON object + */ + ApplyRoutingRulesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ApplyRoutingRulesRequest + * @function getTypeUrl + * @memberof vtctldata.ApplyRoutingRulesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ApplyRoutingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ApplyRoutingRulesRequest"; + }; + + return ApplyRoutingRulesRequest; + })(); + + vtctldata.ApplyRoutingRulesResponse = (function() { + + /** + * Properties of an ApplyRoutingRulesResponse. + * @memberof vtctldata + * @interface IApplyRoutingRulesResponse + */ + + /** + * Constructs a new ApplyRoutingRulesResponse. + * @memberof vtctldata + * @classdesc Represents an ApplyRoutingRulesResponse. + * @implements IApplyRoutingRulesResponse + * @constructor + * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set + */ + function ApplyRoutingRulesResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ApplyRoutingRulesResponse instance using the specified properties. + * @function create + * @memberof vtctldata.ApplyRoutingRulesResponse + * @static + * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set + * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse instance + */ + ApplyRoutingRulesResponse.create = function create(properties) { + return new ApplyRoutingRulesResponse(properties); + }; + + /** + * Encodes the specified ApplyRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.ApplyRoutingRulesResponse + * @static + * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyRoutingRulesResponse.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. + * @function encodeDelimited + * @memberof vtctldata.ApplyRoutingRulesResponse + * @static + * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer. + * @function decode + * @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.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ApplyRoutingRulesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ApplyRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ApplyRoutingRulesResponse message. + * @function verify + * @memberof vtctldata.ApplyRoutingRulesResponse + * @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) { + 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. + * @function fromObject + * @memberof vtctldata.ApplyRoutingRulesResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse + */ + ApplyRoutingRulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyRoutingRulesResponse) + return object; + return new $root.vtctldata.ApplyRoutingRulesResponse(); + }; + + /** + * Creates a plain object from an ApplyRoutingRulesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ApplyRoutingRulesResponse + * @static + * @param {vtctldata.ApplyRoutingRulesResponse} message ApplyRoutingRulesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ApplyRoutingRulesResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this ApplyRoutingRulesResponse to JSON. + * @function toJSON + * @memberof vtctldata.ApplyRoutingRulesResponse + * @instance + * @returns {Object.} JSON object + */ + ApplyRoutingRulesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ApplyRoutingRulesResponse + * @function getTypeUrl + * @memberof vtctldata.ApplyRoutingRulesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ApplyRoutingRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ApplyRoutingRulesResponse"; + }; + + return ApplyRoutingRulesResponse; + })(); + + vtctldata.ApplyShardRoutingRulesRequest = (function() { + + /** + * Properties of an ApplyShardRoutingRulesRequest. + * @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 + */ + + /** + * Constructs a new ApplyShardRoutingRulesRequest. + * @memberof vtctldata + * @classdesc Represents an ApplyShardRoutingRulesRequest. + * @implements IApplyShardRoutingRulesRequest + * @constructor + * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set + */ + function ApplyShardRoutingRulesRequest(properties) { + this.rebuild_cells = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ApplyShardRoutingRulesRequest shard_routing_rules. + * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules + * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @instance + */ + ApplyShardRoutingRulesRequest.prototype.shard_routing_rules = null; + + /** + * ApplyShardRoutingRulesRequest skip_rebuild. + * @member {boolean} skip_rebuild + * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @instance + */ + ApplyShardRoutingRulesRequest.prototype.skip_rebuild = false; + + /** + * ApplyShardRoutingRulesRequest rebuild_cells. + * @member {Array.} rebuild_cells + * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @instance + */ + ApplyShardRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; + + /** + * Creates a new ApplyShardRoutingRulesRequest instance using the specified properties. + * @function create + * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @static + * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set + * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest instance + */ + ApplyShardRoutingRulesRequest.create = function create(properties) { + return new ApplyShardRoutingRulesRequest(properties); + }; + + /** + * Encodes the specified ApplyShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @static + * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyShardRoutingRulesRequest.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 (let 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 ApplyShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @static + * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyShardRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer. + * @function decode + * @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.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); + break; + } + case 2: { + message.skip_rebuild = reader.bool(); + break; + } + case 3: { + if (!(message.rebuild_cells && message.rebuild_cells.length)) + message.rebuild_cells = []; + message.rebuild_cells.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ApplyShardRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ApplyShardRoutingRulesRequest message. + * @function verify + * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { + let error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); + if (error) + return "shard_routing_rules." + error; + } + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + if (typeof message.skip_rebuild !== "boolean") + return "skip_rebuild: boolean expected"; + if (message.rebuild_cells != null && message.hasOwnProperty("rebuild_cells")) { + if (!Array.isArray(message.rebuild_cells)) + return "rebuild_cells: array expected"; + for (let i = 0; i < message.rebuild_cells.length; ++i) + if (!$util.isString(message.rebuild_cells[i])) + return "rebuild_cells: string[] expected"; + } + return null; + }; + + /** + * Creates an ApplyShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest + */ + ApplyShardRoutingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyShardRoutingRulesRequest) + return object; + let message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); + if (object.shard_routing_rules != null) { + if (typeof object.shard_routing_rules !== "object") + throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.shard_routing_rules: object expected"); + message.shard_routing_rules = $root.vschema.ShardRoutingRules.fromObject(object.shard_routing_rules); + } + if (object.skip_rebuild != null) + message.skip_rebuild = Boolean(object.skip_rebuild); + if (object.rebuild_cells) { + if (!Array.isArray(object.rebuild_cells)) + throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.rebuild_cells: array expected"); + message.rebuild_cells = []; + for (let 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 ApplyShardRoutingRulesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @static + * @param {vtctldata.ApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ApplyShardRoutingRulesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.rebuild_cells = []; + if (options.defaults) { + object.shard_routing_rules = null; + object.skip_rebuild = false; + } + if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) + object.shard_routing_rules = $root.vschema.ShardRoutingRules.toObject(message.shard_routing_rules, options); + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + object.skip_rebuild = message.skip_rebuild; + if (message.rebuild_cells && message.rebuild_cells.length) { + object.rebuild_cells = []; + for (let j = 0; j < message.rebuild_cells.length; ++j) + object.rebuild_cells[j] = message.rebuild_cells[j]; + } + return object; + }; + + /** + * Converts this ApplyShardRoutingRulesRequest to JSON. + * @function toJSON + * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @instance + * @returns {Object.} JSON object + */ + ApplyShardRoutingRulesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ApplyShardRoutingRulesRequest + * @function getTypeUrl + * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ApplyShardRoutingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ApplyShardRoutingRulesRequest"; + }; + + return ApplyShardRoutingRulesRequest; + })(); + + vtctldata.ApplyShardRoutingRulesResponse = (function() { + + /** + * Properties of an ApplyShardRoutingRulesResponse. + * @memberof vtctldata + * @interface IApplyShardRoutingRulesResponse + */ + + /** + * Constructs a new ApplyShardRoutingRulesResponse. + * @memberof vtctldata + * @classdesc Represents an ApplyShardRoutingRulesResponse. + * @implements IApplyShardRoutingRulesResponse + * @constructor + * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set + */ + function ApplyShardRoutingRulesResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ApplyShardRoutingRulesResponse instance using the specified properties. + * @function create + * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @static + * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set + * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse instance + */ + ApplyShardRoutingRulesResponse.create = function create(properties) { + return new ApplyShardRoutingRulesResponse(properties); + }; + + /** + * Encodes the specified ApplyShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @static + * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyShardRoutingRulesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified ApplyShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @static + * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyShardRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer. + * @function decode + * @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.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ApplyShardRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ApplyShardRoutingRulesResponse message. + * @function verify + * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an ApplyShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse + */ + ApplyShardRoutingRulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyShardRoutingRulesResponse) + return object; + return new $root.vtctldata.ApplyShardRoutingRulesResponse(); + }; + + /** + * Creates a plain object from an ApplyShardRoutingRulesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @static + * @param {vtctldata.ApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ApplyShardRoutingRulesResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this ApplyShardRoutingRulesResponse to JSON. + * @function toJSON + * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @instance + * @returns {Object.} JSON object + */ + ApplyShardRoutingRulesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ApplyShardRoutingRulesResponse + * @function getTypeUrl + * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ApplyShardRoutingRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ApplyShardRoutingRulesResponse"; + }; + + return ApplyShardRoutingRulesResponse; + })(); + + vtctldata.ApplySchemaRequest = (function() { + + /** + * Properties of an ApplySchemaRequest. + * @memberof vtctldata + * @interface IApplySchemaRequest + * @property {string|null} [keyspace] ApplySchemaRequest keyspace + * @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 {vtrpc.ICallerID|null} [caller_id] ApplySchemaRequest caller_id + * @property {number|Long|null} [batch_size] ApplySchemaRequest batch_size + */ + + /** + * Constructs a new ApplySchemaRequest. + * @memberof vtctldata + * @classdesc Represents an ApplySchemaRequest. + * @implements IApplySchemaRequest + * @constructor + * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set + */ + function ApplySchemaRequest(properties) { + this.sql = []; + this.uuid_list = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ApplySchemaRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.keyspace = ""; + + /** + * ApplySchemaRequest sql. + * @member {Array.} sql + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.sql = $util.emptyArray; + + /** + * ApplySchemaRequest ddl_strategy. + * @member {string} ddl_strategy + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.ddl_strategy = ""; + + /** + * ApplySchemaRequest uuid_list. + * @member {Array.} uuid_list + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.uuid_list = $util.emptyArray; + + /** + * ApplySchemaRequest migration_context. + * @member {string} migration_context + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.migration_context = ""; + + /** + * ApplySchemaRequest wait_replicas_timeout. + * @member {vttime.IDuration|null|undefined} wait_replicas_timeout + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.wait_replicas_timeout = null; + + /** + * ApplySchemaRequest caller_id. + * @member {vtrpc.ICallerID|null|undefined} caller_id + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.caller_id = null; + + /** + * ApplySchemaRequest batch_size. + * @member {number|Long} batch_size + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.batch_size = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new ApplySchemaRequest instance using the specified properties. + * @function create + * @memberof vtctldata.ApplySchemaRequest + * @static + * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest instance + */ + ApplySchemaRequest.create = function create(properties) { + return new ApplySchemaRequest(properties); + }; + + /** + * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.ApplySchemaRequest + * @static + * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplySchemaRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.sql != null && message.sql.length) + for (let 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 (let 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.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.batch_size != null && Object.hasOwnProperty.call(message, "batch_size")) + writer.uint32(/* id 10, wireType 0 =*/80).int64(message.batch_size); + return writer; + }; + + /** + * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ApplySchemaRequest + * @static + * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplySchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ApplySchemaRequest message from the specified reader or buffer. + * @function decode + * @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.ApplySchemaRequest} ApplySchemaRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.keyspace = reader.string(); + break; + } + case 3: { + if (!(message.sql && message.sql.length)) + message.sql = []; + message.sql.push(reader.string()); + break; + } + case 4: { + message.ddl_strategy = reader.string(); + break; + } + case 5: { + if (!(message.uuid_list && message.uuid_list.length)) + message.uuid_list = []; + message.uuid_list.push(reader.string()); + break; + } + case 6: { + message.migration_context = reader.string(); + break; + } + case 7: { + message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + } + case 9: { + message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + } + case 10: { + message.batch_size = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ApplySchemaRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ApplySchemaRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ApplySchemaRequest message. + * @function verify + * @memberof vtctldata.ApplySchemaRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ApplySchemaRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.sql != null && message.hasOwnProperty("sql")) { + if (!Array.isArray(message.sql)) + return "sql: array expected"; + for (let 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 (let 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")) { + let error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (error) + return "wait_replicas_timeout." + error; + } + if (message.caller_id != null && message.hasOwnProperty("caller_id")) { + let error = $root.vtrpc.CallerID.verify(message.caller_id); + if (error) + return "caller_id." + error; + } + if (message.batch_size != null && message.hasOwnProperty("batch_size")) + if (!$util.isInteger(message.batch_size) && !(message.batch_size && $util.isInteger(message.batch_size.low) && $util.isInteger(message.batch_size.high))) + return "batch_size: integer|Long expected"; + return null; + }; + + /** + * Creates an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ApplySchemaRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest + */ + ApplySchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplySchemaRequest) + return object; + let message = new $root.vtctldata.ApplySchemaRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.sql) { + if (!Array.isArray(object.sql)) + throw TypeError(".vtctldata.ApplySchemaRequest.sql: array expected"); + message.sql = []; + for (let 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 (let 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.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.batch_size != null) + if ($util.Long) + (message.batch_size = $util.Long.fromValue(object.batch_size)).unsigned = false; + else if (typeof object.batch_size === "string") + message.batch_size = parseInt(object.batch_size, 10); + else if (typeof object.batch_size === "number") + message.batch_size = object.batch_size; + else if (typeof object.batch_size === "object") + message.batch_size = new $util.LongBits(object.batch_size.low >>> 0, object.batch_size.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ApplySchemaRequest + * @static + * @param {vtctldata.ApplySchemaRequest} message ApplySchemaRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ApplySchemaRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.sql = []; + object.uuid_list = []; + } + if (options.defaults) { + object.keyspace = ""; + object.ddl_strategy = ""; + object.migration_context = ""; + object.wait_replicas_timeout = null; + object.caller_id = null; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.batch_size = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.batch_size = options.longs === String ? "0" : 0; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.sql && message.sql.length) { + object.sql = []; + for (let 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 (let 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.caller_id != null && message.hasOwnProperty("caller_id")) + object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); + if (message.batch_size != null && message.hasOwnProperty("batch_size")) + if (typeof message.batch_size === "number") + object.batch_size = options.longs === String ? String(message.batch_size) : message.batch_size; + else + object.batch_size = options.longs === String ? $util.Long.prototype.toString.call(message.batch_size) : options.longs === Number ? new $util.LongBits(message.batch_size.low >>> 0, message.batch_size.high >>> 0).toNumber() : message.batch_size; + return object; + }; + + /** + * Converts this ApplySchemaRequest to JSON. + * @function toJSON + * @memberof vtctldata.ApplySchemaRequest + * @instance + * @returns {Object.} JSON object + */ + ApplySchemaRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ApplySchemaRequest + * @function getTypeUrl + * @memberof vtctldata.ApplySchemaRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ApplySchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ApplySchemaRequest"; + }; + + return ApplySchemaRequest; + })(); + + vtctldata.ApplySchemaResponse = (function() { + + /** + * Properties of an ApplySchemaResponse. + * @memberof vtctldata + * @interface IApplySchemaResponse + * @property {Array.|null} [uuid_list] ApplySchemaResponse uuid_list + * @property {Object.|null} [rows_affected_by_shard] ApplySchemaResponse rows_affected_by_shard + */ + + /** + * Constructs a new ApplySchemaResponse. + * @memberof vtctldata + * @classdesc Represents an ApplySchemaResponse. + * @implements IApplySchemaResponse + * @constructor + * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set + */ + function ApplySchemaResponse(properties) { + this.uuid_list = []; + this.rows_affected_by_shard = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ApplySchemaResponse uuid_list. + * @member {Array.} uuid_list + * @memberof vtctldata.ApplySchemaResponse + * @instance + */ + ApplySchemaResponse.prototype.uuid_list = $util.emptyArray; + + /** + * ApplySchemaResponse rows_affected_by_shard. + * @member {Object.} rows_affected_by_shard + * @memberof vtctldata.ApplySchemaResponse + * @instance + */ + ApplySchemaResponse.prototype.rows_affected_by_shard = $util.emptyObject; + + /** + * Creates a new ApplySchemaResponse instance using the specified properties. + * @function create + * @memberof vtctldata.ApplySchemaResponse + * @static + * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set + * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse instance + */ + ApplySchemaResponse.create = function create(properties) { + return new ApplySchemaResponse(properties); + }; + + /** + * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.ApplySchemaResponse + * @static + * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplySchemaResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uuid_list != null && message.uuid_list.length) + for (let i = 0; i < message.uuid_list.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid_list[i]); + if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) + for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ApplySchemaResponse + * @static + * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplySchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ApplySchemaResponse message from the specified reader or buffer. + * @function decode + * @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.ApplySchemaResponse} ApplySchemaResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaResponse(), key, value; + while (reader.pos < end) { + let 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; + } + case 2: { + if (message.rows_affected_by_shard === $util.emptyObject) + message.rows_affected_by_shard = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.uint64(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.rows_affected_by_shard[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ApplySchemaResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ApplySchemaResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ApplySchemaResponse message. + * @function verify + * @memberof vtctldata.ApplySchemaResponse + * @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) { + 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 (let i = 0; i < message.uuid_list.length; ++i) + if (!$util.isString(message.uuid_list[i])) + return "uuid_list: string[] expected"; + } + if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { + if (!$util.isObject(message.rows_affected_by_shard)) + return "rows_affected_by_shard: object expected"; + let key = Object.keys(message.rows_affected_by_shard); + for (let i = 0; i < key.length; ++i) + if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) + return "rows_affected_by_shard: integer|Long{k:string} expected"; + } + return null; + }; + + /** + * Creates an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ApplySchemaResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse + */ + ApplySchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplySchemaResponse) + return object; + let 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 (let i = 0; i < object.uuid_list.length; ++i) + message.uuid_list[i] = String(object.uuid_list[i]); + } + if (object.rows_affected_by_shard) { + if (typeof object.rows_affected_by_shard !== "object") + throw TypeError(".vtctldata.ApplySchemaResponse.rows_affected_by_shard: object expected"); + message.rows_affected_by_shard = {}; + for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) + if ($util.Long) + (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; + else if (typeof object.rows_affected_by_shard[keys[i]] === "string") + message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); + else if (typeof object.rows_affected_by_shard[keys[i]] === "number") + message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; + else if (typeof object.rows_affected_by_shard[keys[i]] === "object") + message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); + } + return message; + }; + + /** + * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ApplySchemaResponse + * @static + * @param {vtctldata.ApplySchemaResponse} message ApplySchemaResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ApplySchemaResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.uuid_list = []; + if (options.objects || options.defaults) + object.rows_affected_by_shard = {}; + if (message.uuid_list && message.uuid_list.length) { + object.uuid_list = []; + for (let j = 0; j < message.uuid_list.length; ++j) + object.uuid_list[j] = message.uuid_list[j]; + } + let keys2; + if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { + object.rows_affected_by_shard = {}; + for (let j = 0; j < keys2.length; ++j) + if (typeof message.rows_affected_by_shard[keys2[j]] === "number") + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; + else + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; + } + return object; + }; + + /** + * Converts this ApplySchemaResponse to JSON. + * @function toJSON + * @memberof vtctldata.ApplySchemaResponse + * @instance + * @returns {Object.} JSON object + */ + ApplySchemaResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ApplySchemaResponse + * @function getTypeUrl + * @memberof vtctldata.ApplySchemaResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ApplySchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ApplySchemaResponse"; + }; + + return ApplySchemaResponse; + })(); + + vtctldata.ApplyVSchemaRequest = (function() { + + /** + * Properties of an ApplyVSchemaRequest. + * @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 + * @property {boolean|null} [strict] ApplyVSchemaRequest strict + */ + + /** + * Constructs a new ApplyVSchemaRequest. + * @memberof vtctldata + * @classdesc Represents an ApplyVSchemaRequest. + * @implements IApplyVSchemaRequest + * @constructor + * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set + */ + function ApplyVSchemaRequest(properties) { + this.cells = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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 + * @instance + */ + ApplyVSchemaRequest.prototype.cells = $util.emptyArray; + + /** + * ApplyVSchemaRequest v_schema. + * @member {vschema.IKeyspace|null|undefined} v_schema + * @memberof vtctldata.ApplyVSchemaRequest + * @instance + */ + ApplyVSchemaRequest.prototype.v_schema = null; + + /** + * ApplyVSchemaRequest sql. + * @member {string} sql + * @memberof vtctldata.ApplyVSchemaRequest + * @instance + */ + ApplyVSchemaRequest.prototype.sql = ""; + + /** + * ApplyVSchemaRequest strict. + * @member {boolean} strict + * @memberof vtctldata.ApplyVSchemaRequest + * @instance + */ + ApplyVSchemaRequest.prototype.strict = false; + + /** + * Creates a new ApplyVSchemaRequest instance using the specified properties. + * @function create + * @memberof vtctldata.ApplyVSchemaRequest + * @static + * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest instance + */ + ApplyVSchemaRequest.create = function create(properties) { + return new ApplyVSchemaRequest(properties); + }; + + /** + * Encodes the specified ApplyVSchemaRequest message. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.ApplyVSchemaRequest + * @static + * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} 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.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 (let 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.strict != null && Object.hasOwnProperty.call(message, "strict")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.strict); + return writer; + }; + + /** + * Encodes the specified ApplyVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ApplyVSchemaRequest + * @static + * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ApplyVSchemaRequest message from the specified reader or buffer. + * @function decode + * @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.ApplyVSchemaRequest} ApplyVSchemaRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.keyspace = reader.string(); + break; + } + case 2: { + message.skip_rebuild = 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(); + break; + } + case 7: { + message.strict = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ApplyVSchemaRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ApplyVSchemaRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ApplyVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ApplyVSchemaRequest message. + * @function verify + * @memberof vtctldata.ApplyVSchemaRequest + * @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) { + 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 (let 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")) { + let error = $root.vschema.Keyspace.verify(message.v_schema); + if (error) + return "v_schema." + error; + } + if (message.sql != null && message.hasOwnProperty("sql")) + if (!$util.isString(message.sql)) + return "sql: string expected"; + if (message.strict != null && message.hasOwnProperty("strict")) + if (typeof message.strict !== "boolean") + return "strict: boolean expected"; + return null; + }; + + /** + * Creates an ApplyVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ApplyVSchemaRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest + */ + ApplyVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyVSchemaRequest) + return object; + let 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 (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } + if (object.v_schema != null) { + if (typeof object.v_schema !== "object") + throw TypeError(".vtctldata.ApplyVSchemaRequest.v_schema: object expected"); + message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); + } + if (object.sql != null) + message.sql = String(object.sql); + if (object.strict != null) + message.strict = Boolean(object.strict); + return message; + }; + + /** + * Creates a plain object from an ApplyVSchemaRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ApplyVSchemaRequest + * @static + * @param {vtctldata.ApplyVSchemaRequest} message ApplyVSchemaRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ApplyVSchemaRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.cells = []; + if (options.defaults) { + object.keyspace = ""; + object.skip_rebuild = false; + object.dry_run = false; + object.v_schema = null; + object.sql = ""; + object.strict = false; + } + 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 (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + if (message.v_schema != null && message.hasOwnProperty("v_schema")) + object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + if (message.sql != null && message.hasOwnProperty("sql")) + object.sql = message.sql; + if (message.strict != null && message.hasOwnProperty("strict")) + object.strict = message.strict; + return object; + }; + + /** + * Converts this ApplyVSchemaRequest to JSON. + * @function toJSON + * @memberof vtctldata.ApplyVSchemaRequest + * @instance + * @returns {Object.} JSON object + */ + ApplyVSchemaRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ApplyVSchemaRequest + * @function getTypeUrl + * @memberof vtctldata.ApplyVSchemaRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ApplyVSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ApplyVSchemaRequest"; + }; + + return ApplyVSchemaRequest; + })(); + + vtctldata.ApplyVSchemaResponse = (function() { + + /** + * Properties of an ApplyVSchemaResponse. + * @memberof vtctldata + * @interface IApplyVSchemaResponse + * @property {vschema.IKeyspace|null} [v_schema] ApplyVSchemaResponse v_schema + * @property {Object.|null} [unknown_vindex_params] ApplyVSchemaResponse unknown_vindex_params + */ + + /** + * Constructs a new ApplyVSchemaResponse. + * @memberof vtctldata + * @classdesc Represents an ApplyVSchemaResponse. + * @implements IApplyVSchemaResponse + * @constructor + * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set + */ + function ApplyVSchemaResponse(properties) { + this.unknown_vindex_params = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ApplyVSchemaResponse v_schema. + * @member {vschema.IKeyspace|null|undefined} v_schema + * @memberof vtctldata.ApplyVSchemaResponse + * @instance + */ + ApplyVSchemaResponse.prototype.v_schema = null; + + /** + * ApplyVSchemaResponse unknown_vindex_params. + * @member {Object.} unknown_vindex_params + * @memberof vtctldata.ApplyVSchemaResponse + * @instance + */ + ApplyVSchemaResponse.prototype.unknown_vindex_params = $util.emptyObject; + + /** + * Creates a new ApplyVSchemaResponse instance using the specified properties. + * @function create + * @memberof vtctldata.ApplyVSchemaResponse + * @static + * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse instance + */ + ApplyVSchemaResponse.create = function create(properties) { + return new ApplyVSchemaResponse(properties); + }; + + /** + * Encodes the specified ApplyVSchemaResponse message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.ApplyVSchemaResponse + * @static + * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyVSchemaResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) + $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.unknown_vindex_params != null && Object.hasOwnProperty.call(message, "unknown_vindex_params")) + for (let keys = Object.keys(message.unknown_vindex_params), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtctldata.ApplyVSchemaResponse.ParamList.encode(message.unknown_vindex_params[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified ApplyVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ApplyVSchemaResponse + * @static + * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApplyVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ApplyVSchemaResponse message from the specified reader or buffer. + * @function decode + * @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.ApplyVSchemaResponse} ApplyVSchemaResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaResponse(), key, value; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); + break; + } + case 2: { + if (message.unknown_vindex_params === $util.emptyObject) + message.unknown_vindex_params = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.ApplyVSchemaResponse.ParamList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.unknown_vindex_params[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ApplyVSchemaResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ApplyVSchemaResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ApplyVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ApplyVSchemaResponse message. + * @function verify + * @memberof vtctldata.ApplyVSchemaResponse + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) { + let error = $root.vschema.Keyspace.verify(message.v_schema); + if (error) + return "v_schema." + error; + } + if (message.unknown_vindex_params != null && message.hasOwnProperty("unknown_vindex_params")) { + if (!$util.isObject(message.unknown_vindex_params)) + return "unknown_vindex_params: object expected"; + let key = Object.keys(message.unknown_vindex_params); + for (let i = 0; i < key.length; ++i) { + let error = $root.vtctldata.ApplyVSchemaResponse.ParamList.verify(message.unknown_vindex_params[key[i]]); + if (error) + return "unknown_vindex_params." + error; + } + } + return null; + }; + + /** + * Creates an ApplyVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ApplyVSchemaResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse + */ + ApplyVSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyVSchemaResponse) + return object; + let 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); + } + if (object.unknown_vindex_params) { + if (typeof object.unknown_vindex_params !== "object") + throw TypeError(".vtctldata.ApplyVSchemaResponse.unknown_vindex_params: object expected"); + message.unknown_vindex_params = {}; + for (let keys = Object.keys(object.unknown_vindex_params), i = 0; i < keys.length; ++i) { + if (typeof object.unknown_vindex_params[keys[i]] !== "object") + throw TypeError(".vtctldata.ApplyVSchemaResponse.unknown_vindex_params: object expected"); + message.unknown_vindex_params[keys[i]] = $root.vtctldata.ApplyVSchemaResponse.ParamList.fromObject(object.unknown_vindex_params[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from an ApplyVSchemaResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ApplyVSchemaResponse + * @static + * @param {vtctldata.ApplyVSchemaResponse} message ApplyVSchemaResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ApplyVSchemaResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) + object.unknown_vindex_params = {}; + if (options.defaults) + object.v_schema = null; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) + object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + let keys2; + if (message.unknown_vindex_params && (keys2 = Object.keys(message.unknown_vindex_params)).length) { + object.unknown_vindex_params = {}; + for (let j = 0; j < keys2.length; ++j) + object.unknown_vindex_params[keys2[j]] = $root.vtctldata.ApplyVSchemaResponse.ParamList.toObject(message.unknown_vindex_params[keys2[j]], options); + } + return object; + }; + + /** + * Converts this ApplyVSchemaResponse to JSON. + * @function toJSON + * @memberof vtctldata.ApplyVSchemaResponse + * @instance + * @returns {Object.} JSON object + */ + ApplyVSchemaResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ApplyVSchemaResponse + * @function getTypeUrl + * @memberof vtctldata.ApplyVSchemaResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ApplyVSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ApplyVSchemaResponse"; + }; + + ApplyVSchemaResponse.ParamList = (function() { + + /** + * Properties of a ParamList. + * @memberof vtctldata.ApplyVSchemaResponse + * @interface IParamList + * @property {Array.|null} [params] ParamList params + */ + + /** + * Constructs a new ParamList. + * @memberof vtctldata.ApplyVSchemaResponse + * @classdesc Represents a ParamList. + * @implements IParamList + * @constructor + * @param {vtctldata.ApplyVSchemaResponse.IParamList=} [properties] Properties to set + */ + function ParamList(properties) { + this.params = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ParamList params. + * @member {Array.} params + * @memberof vtctldata.ApplyVSchemaResponse.ParamList + * @instance + */ + ParamList.prototype.params = $util.emptyArray; + + /** + * Creates a new ParamList instance using the specified properties. + * @function create + * @memberof vtctldata.ApplyVSchemaResponse.ParamList + * @static + * @param {vtctldata.ApplyVSchemaResponse.IParamList=} [properties] Properties to set + * @returns {vtctldata.ApplyVSchemaResponse.ParamList} ParamList instance + */ + ParamList.create = function create(properties) { + return new ParamList(properties); + }; + + /** + * Encodes the specified ParamList message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.ParamList.verify|verify} messages. + * @function encode + * @memberof vtctldata.ApplyVSchemaResponse.ParamList + * @static + * @param {vtctldata.ApplyVSchemaResponse.IParamList} message ParamList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParamList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.params != null && message.params.length) + for (let i = 0; i < message.params.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.params[i]); + return writer; + }; + + /** + * Encodes the specified ParamList message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.ParamList.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ApplyVSchemaResponse.ParamList + * @static + * @param {vtctldata.ApplyVSchemaResponse.IParamList} message ParamList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParamList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ParamList message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.ApplyVSchemaResponse.ParamList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.ApplyVSchemaResponse.ParamList} ParamList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParamList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaResponse.ParamList(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.params && message.params.length)) + message.params = []; + message.params.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ParamList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ApplyVSchemaResponse.ParamList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ApplyVSchemaResponse.ParamList} ParamList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParamList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ParamList message. + * @function verify + * @memberof vtctldata.ApplyVSchemaResponse.ParamList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParamList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.params != null && message.hasOwnProperty("params")) { + if (!Array.isArray(message.params)) + return "params: array expected"; + for (let i = 0; i < message.params.length; ++i) + if (!$util.isString(message.params[i])) + return "params: string[] expected"; + } + return null; + }; + + /** + * Creates a ParamList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ApplyVSchemaResponse.ParamList + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ApplyVSchemaResponse.ParamList} ParamList + */ + ParamList.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyVSchemaResponse.ParamList) + return object; + let message = new $root.vtctldata.ApplyVSchemaResponse.ParamList(); + if (object.params) { + if (!Array.isArray(object.params)) + throw TypeError(".vtctldata.ApplyVSchemaResponse.ParamList.params: array expected"); + message.params = []; + for (let i = 0; i < object.params.length; ++i) + message.params[i] = String(object.params[i]); + } + return message; + }; + + /** + * Creates a plain object from a ParamList message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ApplyVSchemaResponse.ParamList + * @static + * @param {vtctldata.ApplyVSchemaResponse.ParamList} message ParamList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ParamList.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.params = []; + if (message.params && message.params.length) { + object.params = []; + for (let j = 0; j < message.params.length; ++j) + object.params[j] = message.params[j]; + } + return object; + }; + + /** + * Converts this ParamList to JSON. + * @function toJSON + * @memberof vtctldata.ApplyVSchemaResponse.ParamList + * @instance + * @returns {Object.} JSON object + */ + ParamList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ParamList + * @function getTypeUrl + * @memberof vtctldata.ApplyVSchemaResponse.ParamList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ParamList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ApplyVSchemaResponse.ParamList"; + }; + + return ParamList; + })(); + + return ApplyVSchemaResponse; + })(); + + vtctldata.BackupRequest = (function() { + + /** + * Properties of a BackupRequest. + * @memberof vtctldata + * @interface IBackupRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] BackupRequest tablet_alias + * @property {boolean|null} [allow_primary] BackupRequest allow_primary + * @property {number|null} [concurrency] BackupRequest concurrency + * @property {string|null} [incremental_from_pos] BackupRequest incremental_from_pos + * @property {boolean|null} [upgrade_safe] BackupRequest upgrade_safe + * @property {string|null} [backup_engine] BackupRequest backup_engine + * @property {vttime.IDuration|null} [mysql_shutdown_timeout] BackupRequest mysql_shutdown_timeout + */ + + /** + * Constructs a new BackupRequest. + * @memberof vtctldata + * @classdesc Represents a BackupRequest. + * @implements IBackupRequest + * @constructor + * @param {vtctldata.IBackupRequest=} [properties] Properties to set + */ + function BackupRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BackupRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.BackupRequest + * @instance + */ + BackupRequest.prototype.tablet_alias = null; + + /** + * BackupRequest allow_primary. + * @member {boolean} allow_primary + * @memberof vtctldata.BackupRequest + * @instance + */ + BackupRequest.prototype.allow_primary = false; + + /** + * BackupRequest concurrency. + * @member {number} concurrency + * @memberof vtctldata.BackupRequest + * @instance + */ + BackupRequest.prototype.concurrency = 0; + + /** + * BackupRequest incremental_from_pos. + * @member {string} incremental_from_pos + * @memberof vtctldata.BackupRequest + * @instance + */ + BackupRequest.prototype.incremental_from_pos = ""; + + /** + * BackupRequest upgrade_safe. + * @member {boolean} upgrade_safe + * @memberof vtctldata.BackupRequest + * @instance + */ + BackupRequest.prototype.upgrade_safe = false; + + /** + * BackupRequest backup_engine. + * @member {string|null|undefined} backup_engine + * @memberof vtctldata.BackupRequest + * @instance + */ + BackupRequest.prototype.backup_engine = null; + + /** + * BackupRequest mysql_shutdown_timeout. + * @member {vttime.IDuration|null|undefined} mysql_shutdown_timeout + * @memberof vtctldata.BackupRequest + * @instance + */ + BackupRequest.prototype.mysql_shutdown_timeout = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackupRequest.prototype, "_backup_engine", { + get: $util.oneOfGetter($oneOfFields = ["backup_engine"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BackupRequest instance using the specified properties. + * @function create + * @memberof vtctldata.BackupRequest + * @static + * @param {vtctldata.IBackupRequest=} [properties] Properties to set + * @returns {vtctldata.BackupRequest} BackupRequest instance + */ + BackupRequest.create = function create(properties) { + return new BackupRequest(properties); + }; + + /** + * Encodes the specified BackupRequest message. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.BackupRequest + * @static + * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_primary); + if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.concurrency); + if (message.incremental_from_pos != null && Object.hasOwnProperty.call(message, "incremental_from_pos")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.incremental_from_pos); + if (message.upgrade_safe != null && Object.hasOwnProperty.call(message, "upgrade_safe")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.upgrade_safe); + if (message.backup_engine != null && Object.hasOwnProperty.call(message, "backup_engine")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.backup_engine); + if (message.mysql_shutdown_timeout != null && Object.hasOwnProperty.call(message, "mysql_shutdown_timeout")) + $root.vttime.Duration.encode(message.mysql_shutdown_timeout, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.BackupRequest + * @static + * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackupRequest message from the specified reader or buffer. + * @function decode + * @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.BackupRequest} BackupRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 2: { + message.allow_primary = reader.bool(); + break; + } + case 3: { + message.concurrency = reader.int32(); + break; + } + case 4: { + message.incremental_from_pos = reader.string(); + break; + } + case 5: { + message.upgrade_safe = reader.bool(); + break; + } + case 6: { + message.backup_engine = reader.string(); + break; + } + case 7: { + message.mysql_shutdown_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.BackupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.BackupRequest} BackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackupRequest message. + * @function verify + * @memberof vtctldata.BackupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + if (typeof message.allow_primary !== "boolean") + return "allow_primary: boolean expected"; + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + if (!$util.isInteger(message.concurrency)) + return "concurrency: integer expected"; + if (message.incremental_from_pos != null && message.hasOwnProperty("incremental_from_pos")) + if (!$util.isString(message.incremental_from_pos)) + return "incremental_from_pos: string expected"; + if (message.upgrade_safe != null && message.hasOwnProperty("upgrade_safe")) + if (typeof message.upgrade_safe !== "boolean") + return "upgrade_safe: boolean expected"; + if (message.backup_engine != null && message.hasOwnProperty("backup_engine")) { + properties._backup_engine = 1; + if (!$util.isString(message.backup_engine)) + return "backup_engine: string expected"; + } + if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) { + let error = $root.vttime.Duration.verify(message.mysql_shutdown_timeout); + if (error) + return "mysql_shutdown_timeout." + error; + } + return null; + }; + + /** + * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.BackupRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.BackupRequest} BackupRequest + */ + BackupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.BackupRequest) + return object; + let message = new $root.vtctldata.BackupRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.BackupRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.allow_primary != null) + message.allow_primary = Boolean(object.allow_primary); + if (object.concurrency != null) + message.concurrency = object.concurrency | 0; + if (object.incremental_from_pos != null) + message.incremental_from_pos = String(object.incremental_from_pos); + if (object.upgrade_safe != null) + message.upgrade_safe = Boolean(object.upgrade_safe); + if (object.backup_engine != null) + message.backup_engine = String(object.backup_engine); + if (object.mysql_shutdown_timeout != null) { + if (typeof object.mysql_shutdown_timeout !== "object") + throw TypeError(".vtctldata.BackupRequest.mysql_shutdown_timeout: object expected"); + message.mysql_shutdown_timeout = $root.vttime.Duration.fromObject(object.mysql_shutdown_timeout); + } + return message; + }; + + /** + * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.BackupRequest + * @static + * @param {vtctldata.BackupRequest} message BackupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.tablet_alias = null; + object.allow_primary = false; + object.concurrency = 0; + object.incremental_from_pos = ""; + object.upgrade_safe = false; + object.mysql_shutdown_timeout = null; + } + 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")) + object.concurrency = message.concurrency; + if (message.incremental_from_pos != null && message.hasOwnProperty("incremental_from_pos")) + object.incremental_from_pos = message.incremental_from_pos; + if (message.upgrade_safe != null && message.hasOwnProperty("upgrade_safe")) + object.upgrade_safe = message.upgrade_safe; + if (message.backup_engine != null && message.hasOwnProperty("backup_engine")) { + object.backup_engine = message.backup_engine; + if (options.oneofs) + object._backup_engine = "backup_engine"; + } + if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) + object.mysql_shutdown_timeout = $root.vttime.Duration.toObject(message.mysql_shutdown_timeout, options); + return object; + }; + + /** + * Converts this BackupRequest to JSON. + * @function toJSON + * @memberof vtctldata.BackupRequest + * @instance + * @returns {Object.} JSON object + */ + BackupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackupRequest + * @function getTypeUrl + * @memberof vtctldata.BackupRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.BackupRequest"; + }; + + return BackupRequest; + })(); + + vtctldata.BackupResponse = (function() { + + /** + * Properties of a BackupResponse. + * @memberof vtctldata + * @interface IBackupResponse + * @property {topodata.ITabletAlias|null} [tablet_alias] BackupResponse tablet_alias + * @property {string|null} [keyspace] BackupResponse keyspace + * @property {string|null} [shard] BackupResponse shard + * @property {logutil.IEvent|null} [event] BackupResponse event + */ + + /** + * Constructs a new BackupResponse. + * @memberof vtctldata + * @classdesc Represents a BackupResponse. + * @implements IBackupResponse + * @constructor + * @param {vtctldata.IBackupResponse=} [properties] Properties to set + */ + function BackupResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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 + */ + BackupResponse.prototype.keyspace = ""; + + /** + * BackupResponse shard. + * @member {string} shard + * @memberof vtctldata.BackupResponse + * @instance + */ + BackupResponse.prototype.shard = ""; + + /** + * BackupResponse event. + * @member {logutil.IEvent|null|undefined} event + * @memberof vtctldata.BackupResponse + * @instance + */ + BackupResponse.prototype.event = null; + + /** + * Creates a new BackupResponse instance using the specified properties. + * @function create + * @memberof vtctldata.BackupResponse + * @static + * @param {vtctldata.IBackupResponse=} [properties] Properties to set + * @returns {vtctldata.BackupResponse} BackupResponse instance + */ + BackupResponse.create = function create(properties) { + return new BackupResponse(properties); + }; + + /** + * Encodes the specified BackupResponse message. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.BackupResponse + * @static + * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackupResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.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 BackupResponse message, length delimited. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.BackupResponse + * @static + * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackupResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackupResponse message from the specified reader or buffer. + * @function decode + * @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.BackupResponse} BackupResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 2: { + message.keyspace = reader.string(); + break; + } + case 3: { + message.shard = reader.string(); + break; + } + case 4: { + message.event = $root.logutil.Event.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackupResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.BackupResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + BackupResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackupResponse message. + * @function verify + * @memberof vtctldata.BackupResponse + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + 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")) { + let error = $root.logutil.Event.verify(message.event); + if (error) + return "event." + error; + } + return null; + }; + + /** + * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.BackupResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.BackupResponse} BackupResponse + */ + BackupResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.BackupResponse) + return object; + let 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 a BackupResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.BackupResponse + * @static + * @param {vtctldata.BackupResponse} message BackupResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackupResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.tablet_alias = null; + object.keyspace = ""; + object.shard = ""; + object.event = null; + } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.event != null && message.hasOwnProperty("event")) + object.event = $root.logutil.Event.toObject(message.event, options); + return object; + }; + + /** + * Converts this BackupResponse to JSON. + * @function toJSON + * @memberof vtctldata.BackupResponse + * @instance + * @returns {Object.} JSON object + */ + BackupResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackupResponse + * @function getTypeUrl + * @memberof vtctldata.BackupResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackupResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.BackupResponse"; + }; + + return BackupResponse; + })(); + + vtctldata.BackupShardRequest = (function() { + + /** + * Properties of a BackupShardRequest. + * @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|null} [concurrency] BackupShardRequest concurrency + * @property {boolean|null} [upgrade_safe] BackupShardRequest upgrade_safe + * @property {string|null} [incremental_from_pos] BackupShardRequest incremental_from_pos + * @property {vttime.IDuration|null} [mysql_shutdown_timeout] BackupShardRequest mysql_shutdown_timeout + */ + + /** + * Constructs a new BackupShardRequest. + * @memberof vtctldata + * @classdesc Represents a BackupShardRequest. + * @implements IBackupShardRequest + * @constructor + * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set + */ + function BackupShardRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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 + * @instance + */ + BackupShardRequest.prototype.allow_primary = false; + + /** + * BackupShardRequest concurrency. + * @member {number} concurrency + * @memberof vtctldata.BackupShardRequest + * @instance + */ + BackupShardRequest.prototype.concurrency = 0; + + /** + * BackupShardRequest upgrade_safe. + * @member {boolean} upgrade_safe + * @memberof vtctldata.BackupShardRequest + * @instance + */ + BackupShardRequest.prototype.upgrade_safe = false; + + /** + * BackupShardRequest incremental_from_pos. + * @member {string} incremental_from_pos + * @memberof vtctldata.BackupShardRequest + * @instance + */ + BackupShardRequest.prototype.incremental_from_pos = ""; + + /** + * BackupShardRequest mysql_shutdown_timeout. + * @member {vttime.IDuration|null|undefined} mysql_shutdown_timeout + * @memberof vtctldata.BackupShardRequest + * @instance + */ + BackupShardRequest.prototype.mysql_shutdown_timeout = null; + + /** + * Creates a new BackupShardRequest instance using the specified properties. + * @function create + * @memberof vtctldata.BackupShardRequest + * @static + * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set + * @returns {vtctldata.BackupShardRequest} BackupShardRequest instance + */ + BackupShardRequest.create = function create(properties) { + return new BackupShardRequest(properties); + }; + + /** + * Encodes the specified BackupShardRequest message. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.BackupShardRequest + * @static + * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackupShardRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.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).int32(message.concurrency); + if (message.upgrade_safe != null && Object.hasOwnProperty.call(message, "upgrade_safe")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.upgrade_safe); + if (message.incremental_from_pos != null && Object.hasOwnProperty.call(message, "incremental_from_pos")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.incremental_from_pos); + if (message.mysql_shutdown_timeout != null && Object.hasOwnProperty.call(message, "mysql_shutdown_timeout")) + $root.vttime.Duration.encode(message.mysql_shutdown_timeout, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BackupShardRequest message, length delimited. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.BackupShardRequest + * @static + * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackupShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackupShardRequest message from the specified reader or buffer. + * @function decode + * @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.BackupShardRequest} BackupShardRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupShardRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.keyspace = reader.string(); + break; + } + case 2: { + message.shard = reader.string(); + break; + } + case 3: { + message.allow_primary = reader.bool(); + break; + } + case 4: { + message.concurrency = reader.int32(); + break; + } + case 5: { + message.upgrade_safe = reader.bool(); + break; + } + case 6: { + message.incremental_from_pos = reader.string(); + break; + } + case 7: { + message.mysql_shutdown_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackupShardRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.BackupShardRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + BackupShardRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackupShardRequest message. + * @function verify + * @memberof vtctldata.BackupShardRequest + * @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) { + 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)) + return "concurrency: integer expected"; + if (message.upgrade_safe != null && message.hasOwnProperty("upgrade_safe")) + if (typeof message.upgrade_safe !== "boolean") + return "upgrade_safe: boolean expected"; + if (message.incremental_from_pos != null && message.hasOwnProperty("incremental_from_pos")) + if (!$util.isString(message.incremental_from_pos)) + return "incremental_from_pos: string expected"; + if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) { + let error = $root.vttime.Duration.verify(message.mysql_shutdown_timeout); + if (error) + return "mysql_shutdown_timeout." + error; + } + return null; + }; + + /** + * Creates a BackupShardRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.BackupShardRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.BackupShardRequest} BackupShardRequest + */ + BackupShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.BackupShardRequest) + return object; + let 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) + message.concurrency = object.concurrency | 0; + if (object.upgrade_safe != null) + message.upgrade_safe = Boolean(object.upgrade_safe); + if (object.incremental_from_pos != null) + message.incremental_from_pos = String(object.incremental_from_pos); + if (object.mysql_shutdown_timeout != null) { + if (typeof object.mysql_shutdown_timeout !== "object") + throw TypeError(".vtctldata.BackupShardRequest.mysql_shutdown_timeout: object expected"); + message.mysql_shutdown_timeout = $root.vttime.Duration.fromObject(object.mysql_shutdown_timeout); + } + return message; + }; + + /** + * Creates a plain object from a BackupShardRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.BackupShardRequest + * @static + * @param {vtctldata.BackupShardRequest} message BackupShardRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackupShardRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.allow_primary = false; + object.concurrency = 0; + object.upgrade_safe = false; + object.incremental_from_pos = ""; + object.mysql_shutdown_timeout = null; + } + 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")) + object.concurrency = message.concurrency; + if (message.upgrade_safe != null && message.hasOwnProperty("upgrade_safe")) + object.upgrade_safe = message.upgrade_safe; + if (message.incremental_from_pos != null && message.hasOwnProperty("incremental_from_pos")) + object.incremental_from_pos = message.incremental_from_pos; + if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) + object.mysql_shutdown_timeout = $root.vttime.Duration.toObject(message.mysql_shutdown_timeout, options); + return object; + }; + + /** + * Converts this BackupShardRequest to JSON. + * @function toJSON + * @memberof vtctldata.BackupShardRequest + * @instance + * @returns {Object.} JSON object + */ + BackupShardRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackupShardRequest + * @function getTypeUrl + * @memberof vtctldata.BackupShardRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackupShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.BackupShardRequest"; + }; + + return BackupShardRequest; + })(); + + vtctldata.CancelSchemaMigrationRequest = (function() { + + /** + * Properties of a CancelSchemaMigrationRequest. + * @memberof vtctldata + * @interface ICancelSchemaMigrationRequest + * @property {string|null} [keyspace] CancelSchemaMigrationRequest keyspace + * @property {string|null} [uuid] CancelSchemaMigrationRequest uuid + * @property {vtrpc.ICallerID|null} [caller_id] CancelSchemaMigrationRequest caller_id + */ + + /** + * Constructs a new CancelSchemaMigrationRequest. + * @memberof vtctldata + * @classdesc Represents a CancelSchemaMigrationRequest. + * @implements ICancelSchemaMigrationRequest + * @constructor + * @param {vtctldata.ICancelSchemaMigrationRequest=} [properties] Properties to set + */ + function CancelSchemaMigrationRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CancelSchemaMigrationRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.CancelSchemaMigrationRequest + * @instance + */ + CancelSchemaMigrationRequest.prototype.keyspace = ""; + + /** + * CancelSchemaMigrationRequest uuid. + * @member {string} uuid + * @memberof vtctldata.CancelSchemaMigrationRequest + * @instance + */ + CancelSchemaMigrationRequest.prototype.uuid = ""; + + /** + * CancelSchemaMigrationRequest caller_id. + * @member {vtrpc.ICallerID|null|undefined} caller_id + * @memberof vtctldata.CancelSchemaMigrationRequest + * @instance + */ + CancelSchemaMigrationRequest.prototype.caller_id = null; + + /** + * Creates a new CancelSchemaMigrationRequest instance using the specified properties. + * @function create + * @memberof vtctldata.CancelSchemaMigrationRequest + * @static + * @param {vtctldata.ICancelSchemaMigrationRequest=} [properties] Properties to set + * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest instance + */ + CancelSchemaMigrationRequest.create = function create(properties) { + return new CancelSchemaMigrationRequest(properties); + }; + + /** + * Encodes the specified CancelSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.CancelSchemaMigrationRequest + * @static + * @param {vtctldata.ICancelSchemaMigrationRequest} message CancelSchemaMigrationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelSchemaMigrationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); + if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) + $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CancelSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.CancelSchemaMigrationRequest + * @static + * @param {vtctldata.ICancelSchemaMigrationRequest} message CancelSchemaMigrationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelSchemaMigrationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.CancelSchemaMigrationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelSchemaMigrationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CancelSchemaMigrationRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.keyspace = reader.string(); + break; + } + case 2: { + message.uuid = reader.string(); + break; + } + case 3: { + message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.CancelSchemaMigrationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelSchemaMigrationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CancelSchemaMigrationRequest message. + * @function verify + * @memberof vtctldata.CancelSchemaMigrationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CancelSchemaMigrationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.uuid != null && message.hasOwnProperty("uuid")) + if (!$util.isString(message.uuid)) + return "uuid: string expected"; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) { + let error = $root.vtrpc.CallerID.verify(message.caller_id); + if (error) + return "caller_id." + error; + } + return null; + }; + + /** + * Creates a CancelSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.CancelSchemaMigrationRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest + */ + CancelSchemaMigrationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CancelSchemaMigrationRequest) + return object; + let message = new $root.vtctldata.CancelSchemaMigrationRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.uuid != null) + message.uuid = String(object.uuid); + if (object.caller_id != null) { + if (typeof object.caller_id !== "object") + throw TypeError(".vtctldata.CancelSchemaMigrationRequest.caller_id: object expected"); + message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); + } + return message; + }; + + /** + * Creates a plain object from a CancelSchemaMigrationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.CancelSchemaMigrationRequest + * @static + * @param {vtctldata.CancelSchemaMigrationRequest} message CancelSchemaMigrationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CancelSchemaMigrationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.keyspace = ""; + object.uuid = ""; + object.caller_id = null; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.uuid != null && message.hasOwnProperty("uuid")) + object.uuid = message.uuid; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) + object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); + return object; + }; + + /** + * Converts this CancelSchemaMigrationRequest to JSON. + * @function toJSON + * @memberof vtctldata.CancelSchemaMigrationRequest + * @instance + * @returns {Object.} JSON object + */ + CancelSchemaMigrationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CancelSchemaMigrationRequest + * @function getTypeUrl + * @memberof vtctldata.CancelSchemaMigrationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CancelSchemaMigrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.CancelSchemaMigrationRequest"; + }; + + return CancelSchemaMigrationRequest; + })(); + + vtctldata.CancelSchemaMigrationResponse = (function() { + + /** + * Properties of a CancelSchemaMigrationResponse. + * @memberof vtctldata + * @interface ICancelSchemaMigrationResponse + * @property {Object.|null} [rows_affected_by_shard] CancelSchemaMigrationResponse rows_affected_by_shard + */ + + /** + * Constructs a new CancelSchemaMigrationResponse. + * @memberof vtctldata + * @classdesc Represents a CancelSchemaMigrationResponse. + * @implements ICancelSchemaMigrationResponse + * @constructor + * @param {vtctldata.ICancelSchemaMigrationResponse=} [properties] Properties to set + */ + function CancelSchemaMigrationResponse(properties) { + this.rows_affected_by_shard = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CancelSchemaMigrationResponse rows_affected_by_shard. + * @member {Object.} rows_affected_by_shard + * @memberof vtctldata.CancelSchemaMigrationResponse + * @instance + */ + CancelSchemaMigrationResponse.prototype.rows_affected_by_shard = $util.emptyObject; + + /** + * Creates a new CancelSchemaMigrationResponse instance using the specified properties. + * @function create + * @memberof vtctldata.CancelSchemaMigrationResponse + * @static + * @param {vtctldata.ICancelSchemaMigrationResponse=} [properties] Properties to set + * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse instance + */ + CancelSchemaMigrationResponse.create = function create(properties) { + return new CancelSchemaMigrationResponse(properties); + }; + + /** + * Encodes the specified CancelSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.CancelSchemaMigrationResponse + * @static + * @param {vtctldata.ICancelSchemaMigrationResponse} message CancelSchemaMigrationResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelSchemaMigrationResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) + for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified CancelSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.CancelSchemaMigrationResponse + * @static + * @param {vtctldata.ICancelSchemaMigrationResponse} message CancelSchemaMigrationResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelSchemaMigrationResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.CancelSchemaMigrationResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelSchemaMigrationResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CancelSchemaMigrationResponse(), key, value; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.rows_affected_by_shard === $util.emptyObject) + message.rows_affected_by_shard = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.uint64(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.rows_affected_by_shard[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.CancelSchemaMigrationResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelSchemaMigrationResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CancelSchemaMigrationResponse message. + * @function verify + * @memberof vtctldata.CancelSchemaMigrationResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CancelSchemaMigrationResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { + if (!$util.isObject(message.rows_affected_by_shard)) + return "rows_affected_by_shard: object expected"; + let key = Object.keys(message.rows_affected_by_shard); + for (let i = 0; i < key.length; ++i) + if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) + return "rows_affected_by_shard: integer|Long{k:string} expected"; + } + return null; + }; + + /** + * Creates a CancelSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.CancelSchemaMigrationResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse + */ + CancelSchemaMigrationResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CancelSchemaMigrationResponse) + return object; + let message = new $root.vtctldata.CancelSchemaMigrationResponse(); + if (object.rows_affected_by_shard) { + if (typeof object.rows_affected_by_shard !== "object") + throw TypeError(".vtctldata.CancelSchemaMigrationResponse.rows_affected_by_shard: object expected"); + message.rows_affected_by_shard = {}; + for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) + if ($util.Long) + (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; + else if (typeof object.rows_affected_by_shard[keys[i]] === "string") + message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); + else if (typeof object.rows_affected_by_shard[keys[i]] === "number") + message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; + else if (typeof object.rows_affected_by_shard[keys[i]] === "object") + message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); + } + return message; + }; + + /** + * Creates a plain object from a CancelSchemaMigrationResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.CancelSchemaMigrationResponse + * @static + * @param {vtctldata.CancelSchemaMigrationResponse} message CancelSchemaMigrationResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CancelSchemaMigrationResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) + object.rows_affected_by_shard = {}; + let keys2; + if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { + object.rows_affected_by_shard = {}; + for (let j = 0; j < keys2.length; ++j) + if (typeof message.rows_affected_by_shard[keys2[j]] === "number") + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; + else + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; + } + return object; + }; + + /** + * Converts this CancelSchemaMigrationResponse to JSON. + * @function toJSON + * @memberof vtctldata.CancelSchemaMigrationResponse + * @instance + * @returns {Object.} JSON object + */ + CancelSchemaMigrationResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CancelSchemaMigrationResponse + * @function getTypeUrl + * @memberof vtctldata.CancelSchemaMigrationResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CancelSchemaMigrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.CancelSchemaMigrationResponse"; + }; + + return CancelSchemaMigrationResponse; + })(); - Stream.CopyState = (function() { + vtctldata.ChangeTabletTagsRequest = (function() { - /** - * Properties of a CopyState. - * @memberof vtctldata.Workflow.Stream - * @interface ICopyState - * @property {string|null} [table] CopyState table - * @property {string|null} [last_pk] CopyState last_pk - * @property {number|Long|null} [stream_id] CopyState stream_id - */ + /** + * Properties of a ChangeTabletTagsRequest. + * @memberof vtctldata + * @interface IChangeTabletTagsRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] ChangeTabletTagsRequest tablet_alias + * @property {Object.|null} [tags] ChangeTabletTagsRequest tags + * @property {boolean|null} [replace] ChangeTabletTagsRequest replace + */ - /** - * Constructs a new CopyState. - * @memberof vtctldata.Workflow.Stream - * @classdesc Represents a CopyState. - * @implements ICopyState - * @constructor - * @param {vtctldata.Workflow.Stream.ICopyState=} [properties] Properties to set - */ - function CopyState(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new ChangeTabletTagsRequest. + * @memberof vtctldata + * @classdesc Represents a ChangeTabletTagsRequest. + * @implements IChangeTabletTagsRequest + * @constructor + * @param {vtctldata.IChangeTabletTagsRequest=} [properties] Properties to set + */ + function ChangeTabletTagsRequest(properties) { + this.tags = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CopyState table. - * @member {string} table - * @memberof vtctldata.Workflow.Stream.CopyState - * @instance - */ - CopyState.prototype.table = ""; + /** + * ChangeTabletTagsRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.ChangeTabletTagsRequest + * @instance + */ + ChangeTabletTagsRequest.prototype.tablet_alias = null; - /** - * CopyState last_pk. - * @member {string} last_pk - * @memberof vtctldata.Workflow.Stream.CopyState - * @instance - */ - CopyState.prototype.last_pk = ""; + /** + * ChangeTabletTagsRequest tags. + * @member {Object.} tags + * @memberof vtctldata.ChangeTabletTagsRequest + * @instance + */ + ChangeTabletTagsRequest.prototype.tags = $util.emptyObject; - /** - * CopyState stream_id. - * @member {number|Long} stream_id - * @memberof vtctldata.Workflow.Stream.CopyState - * @instance - */ - CopyState.prototype.stream_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * ChangeTabletTagsRequest replace. + * @member {boolean} replace + * @memberof vtctldata.ChangeTabletTagsRequest + * @instance + */ + ChangeTabletTagsRequest.prototype.replace = false; - /** - * Creates a new CopyState instance using the specified properties. - * @function create - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {vtctldata.Workflow.Stream.ICopyState=} [properties] Properties to set - * @returns {vtctldata.Workflow.Stream.CopyState} CopyState instance - */ - CopyState.create = function create(properties) { - return new CopyState(properties); - }; + /** + * Creates a new ChangeTabletTagsRequest instance using the specified properties. + * @function create + * @memberof vtctldata.ChangeTabletTagsRequest + * @static + * @param {vtctldata.IChangeTabletTagsRequest=} [properties] Properties to set + * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest instance + */ + ChangeTabletTagsRequest.create = function create(properties) { + return new ChangeTabletTagsRequest(properties); + }; - /** - * Encodes the specified CopyState message. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. - * @function encode - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {vtctldata.Workflow.Stream.ICopyState} message CopyState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CopyState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.table != null && Object.hasOwnProperty.call(message, "table")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.table); - if (message.last_pk != null && Object.hasOwnProperty.call(message, "last_pk")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.last_pk); - if (message.stream_id != null && Object.hasOwnProperty.call(message, "stream_id")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.stream_id); - return writer; - }; + /** + * Encodes the specified ChangeTabletTagsRequest message. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.ChangeTabletTagsRequest + * @static + * @param {vtctldata.IChangeTabletTagsRequest} message ChangeTabletTagsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} 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.tags != null && Object.hasOwnProperty.call(message, "tags")) + for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + if (message.replace != null && Object.hasOwnProperty.call(message, "replace")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.replace); + return writer; + }; - /** - * Encodes the specified CopyState message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {vtctldata.Workflow.Stream.ICopyState} message CopyState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CopyState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ChangeTabletTagsRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ChangeTabletTagsRequest + * @static + * @param {vtctldata.IChangeTabletTagsRequest} message ChangeTabletTagsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeTabletTagsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a CopyState message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.Stream.CopyState} CopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CopyState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream.CopyState(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.table = reader.string(); + /** + * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer. + * @function decode + * @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.ChangeTabletTagsRequest} ChangeTabletTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeTabletTagsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsRequest(), key, value; + while (reader.pos < end) { + 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 = {}; + 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: { - message.last_pk = reader.string(); + case 2: + value = reader.string(); break; - } - case 3: { - message.stream_id = reader.int64(); + default: + reader.skipType(tag2 & 7); break; } - default: - reader.skipType(tag & 7); - break; } + message.tags[key] = value; + break; } - return message; - }; - - /** - * Decodes a CopyState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow.Stream.CopyState} CopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CopyState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CopyState message. - * @function verify - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CopyState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.table != null && message.hasOwnProperty("table")) - if (!$util.isString(message.table)) - return "table: string expected"; - if (message.last_pk != null && message.hasOwnProperty("last_pk")) - if (!$util.isString(message.last_pk)) - return "last_pk: string expected"; - if (message.stream_id != null && message.hasOwnProperty("stream_id")) - if (!$util.isInteger(message.stream_id) && !(message.stream_id && $util.isInteger(message.stream_id.low) && $util.isInteger(message.stream_id.high))) - return "stream_id: integer|Long expected"; - return null; - }; - - /** - * Creates a CopyState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Workflow.Stream.CopyState} CopyState - */ - CopyState.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow.Stream.CopyState) - return object; - let message = new $root.vtctldata.Workflow.Stream.CopyState(); - if (object.table != null) - message.table = String(object.table); - if (object.last_pk != null) - message.last_pk = String(object.last_pk); - if (object.stream_id != null) - if ($util.Long) - (message.stream_id = $util.Long.fromValue(object.stream_id)).unsigned = false; - else if (typeof object.stream_id === "string") - message.stream_id = parseInt(object.stream_id, 10); - else if (typeof object.stream_id === "number") - message.stream_id = object.stream_id; - else if (typeof object.stream_id === "object") - message.stream_id = new $util.LongBits(object.stream_id.low >>> 0, object.stream_id.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a CopyState message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {vtctldata.Workflow.Stream.CopyState} message CopyState - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CopyState.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.table = ""; - object.last_pk = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.stream_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.stream_id = options.longs === String ? "0" : 0; - } - if (message.table != null && message.hasOwnProperty("table")) - object.table = message.table; - if (message.last_pk != null && message.hasOwnProperty("last_pk")) - object.last_pk = message.last_pk; - if (message.stream_id != null && message.hasOwnProperty("stream_id")) - if (typeof message.stream_id === "number") - object.stream_id = options.longs === String ? String(message.stream_id) : message.stream_id; - else - object.stream_id = options.longs === String ? $util.Long.prototype.toString.call(message.stream_id) : options.longs === Number ? new $util.LongBits(message.stream_id.low >>> 0, message.stream_id.high >>> 0).toNumber() : message.stream_id; - return object; - }; - - /** - * Converts this CopyState to JSON. - * @function toJSON - * @memberof vtctldata.Workflow.Stream.CopyState - * @instance - * @returns {Object.} JSON object - */ - CopyState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CopyState - * @function getTypeUrl - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CopyState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + case 3: { + message.replace = reader.bool(); + break; } - return typeUrlPrefix + "/vtctldata.Workflow.Stream.CopyState"; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return CopyState; - })(); + /** + * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ChangeTabletTagsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ChangeTabletTagsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - Stream.Log = (function() { + /** + * Verifies a ChangeTabletTagsRequest message. + * @function verify + * @memberof vtctldata.ChangeTabletTagsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeTabletTagsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + let key = Object.keys(message.tags); + for (let i = 0; i < key.length; ++i) + 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; + }; - /** - * Properties of a Log. - * @memberof vtctldata.Workflow.Stream - * @interface ILog - * @property {number|Long|null} [id] Log id - * @property {number|Long|null} [stream_id] Log stream_id - * @property {string|null} [type] Log type - * @property {string|null} [state] Log state - * @property {vttime.ITime|null} [created_at] Log created_at - * @property {vttime.ITime|null} [updated_at] Log updated_at - * @property {string|null} [message] Log message - * @property {number|Long|null} [count] Log count - */ + /** + * Creates a ChangeTabletTagsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ChangeTabletTagsRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest + */ + ChangeTabletTagsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ChangeTabletTagsRequest) + return object; + 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"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.tags) { + if (typeof object.tags !== "object") + throw TypeError(".vtctldata.ChangeTabletTagsRequest.tags: object expected"); + message.tags = {}; + for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + message.tags[keys[i]] = String(object.tags[keys[i]]); + } + if (object.replace != null) + message.replace = Boolean(object.replace); + return message; + }; - /** - * Constructs a new Log. - * @memberof vtctldata.Workflow.Stream - * @classdesc Represents a Log. - * @implements ILog - * @constructor - * @param {vtctldata.Workflow.Stream.ILog=} [properties] Properties to set - */ - function Log(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a plain object from a ChangeTabletTagsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ChangeTabletTagsRequest + * @static + * @param {vtctldata.ChangeTabletTagsRequest} message ChangeTabletTagsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeTabletTagsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) + object.tags = {}; + if (options.defaults) { + object.tablet_alias = null; + object.replace = false; + } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + let keys2; + if (message.tags && (keys2 = Object.keys(message.tags)).length) { + object.tags = {}; + for (let j = 0; j < keys2.length; ++j) + object.tags[keys2[j]] = message.tags[keys2[j]]; + } + if (message.replace != null && message.hasOwnProperty("replace")) + object.replace = message.replace; + return object; + }; - /** - * Log id. - * @member {number|Long} id - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Converts this ChangeTabletTagsRequest to JSON. + * @function toJSON + * @memberof vtctldata.ChangeTabletTagsRequest + * @instance + * @returns {Object.} JSON object + */ + ChangeTabletTagsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Log stream_id. - * @member {number|Long} stream_id - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.stream_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * 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"; + }; - /** - * Log type. - * @member {string} type - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.type = ""; + return ChangeTabletTagsRequest; + })(); - /** - * Log state. - * @member {string} state - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.state = ""; + vtctldata.ChangeTabletTagsResponse = (function() { - /** - * Log created_at. - * @member {vttime.ITime|null|undefined} created_at - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.created_at = null; + /** + * Properties of a ChangeTabletTagsResponse. + * @memberof vtctldata + * @interface IChangeTabletTagsResponse + * @property {Object.|null} [before_tags] ChangeTabletTagsResponse before_tags + * @property {Object.|null} [after_tags] ChangeTabletTagsResponse after_tags + */ - /** - * Log updated_at. - * @member {vttime.ITime|null|undefined} updated_at - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.updated_at = null; + /** + * Constructs a new ChangeTabletTagsResponse. + * @memberof vtctldata + * @classdesc Represents a ChangeTabletTagsResponse. + * @implements IChangeTabletTagsResponse + * @constructor + * @param {vtctldata.IChangeTabletTagsResponse=} [properties] Properties to set + */ + function ChangeTabletTagsResponse(properties) { + this.before_tags = {}; + this.after_tags = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Log message. - * @member {string} message - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.message = ""; + /** + * ChangeTabletTagsResponse before_tags. + * @member {Object.} before_tags + * @memberof vtctldata.ChangeTabletTagsResponse + * @instance + */ + ChangeTabletTagsResponse.prototype.before_tags = $util.emptyObject; - /** - * Log count. - * @member {number|Long} count - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.count = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * ChangeTabletTagsResponse after_tags. + * @member {Object.} after_tags + * @memberof vtctldata.ChangeTabletTagsResponse + * @instance + */ + ChangeTabletTagsResponse.prototype.after_tags = $util.emptyObject; - /** - * Creates a new Log instance using the specified properties. - * @function create - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {vtctldata.Workflow.Stream.ILog=} [properties] Properties to set - * @returns {vtctldata.Workflow.Stream.Log} Log instance - */ - Log.create = function create(properties) { - return new Log(properties); - }; + /** + * Creates a new ChangeTabletTagsResponse instance using the specified properties. + * @function create + * @memberof vtctldata.ChangeTabletTagsResponse + * @static + * @param {vtctldata.IChangeTabletTagsResponse=} [properties] Properties to set + * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse instance + */ + ChangeTabletTagsResponse.create = function create(properties) { + return new ChangeTabletTagsResponse(properties); + }; - /** - * Encodes the specified Log message. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. - * @function encode - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {vtctldata.Workflow.Stream.ILog} message Log message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Log.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); - if (message.stream_id != null && Object.hasOwnProperty.call(message, "stream_id")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.stream_id); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.state); - if (message.created_at != null && Object.hasOwnProperty.call(message, "created_at")) - $root.vttime.Time.encode(message.created_at, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.updated_at != null && Object.hasOwnProperty.call(message, "updated_at")) - $root.vttime.Time.encode(message.updated_at, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.message); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.count); - return writer; - }; + /** + * Encodes the specified ChangeTabletTagsResponse message. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.ChangeTabletTagsResponse + * @static + * @param {vtctldata.IChangeTabletTagsResponse} message ChangeTabletTagsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeTabletTagsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.before_tags != null && Object.hasOwnProperty.call(message, "before_tags")) + for (let keys = Object.keys(message.before_tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.before_tags[keys[i]]).ldelim(); + if (message.after_tags != null && Object.hasOwnProperty.call(message, "after_tags")) + for (let keys = Object.keys(message.after_tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.after_tags[keys[i]]).ldelim(); + return writer; + }; - /** - * Encodes the specified Log message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {vtctldata.Workflow.Stream.ILog} message Log message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Log.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ChangeTabletTagsResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ChangeTabletTagsResponse + * @static + * @param {vtctldata.IChangeTabletTagsResponse} message ChangeTabletTagsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeTabletTagsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Log message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.Stream.Log} Log - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Log.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream.Log(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.id = reader.int64(); - break; - } - case 2: { - message.stream_id = reader.int64(); - break; - } - case 3: { - message.type = reader.string(); + /** + * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer. + * @function decode + * @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.ChangeTabletTagsResponse} ChangeTabletTagsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeTabletTagsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsResponse(), key, value; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.before_tags === $util.emptyObject) + message.before_tags = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); break; - } - case 4: { - message.state = reader.string(); + case 2: + value = reader.string(); break; - } - case 5: { - message.created_at = $root.vttime.Time.decode(reader, reader.uint32()); + default: + reader.skipType(tag2 & 7); break; } - case 6: { - message.updated_at = $root.vttime.Time.decode(reader, reader.uint32()); + } + message.before_tags[key] = value; + break; + } + case 2: { + if (message.after_tags === $util.emptyObject) + message.after_tags = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); break; - } - case 7: { - message.message = reader.string(); + case 2: + value = reader.string(); break; - } - case 8: { - message.count = reader.int64(); + default: + reader.skipType(tag2 & 7); break; } - default: - reader.skipType(tag & 7); - break; } + message.after_tags[key] = value; + break; } - return message; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ChangeTabletTagsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ChangeTabletTagsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeTabletTagsResponse message. + * @function verify + * @memberof vtctldata.ChangeTabletTagsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeTabletTagsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.before_tags != null && message.hasOwnProperty("before_tags")) { + if (!$util.isObject(message.before_tags)) + return "before_tags: object expected"; + let key = Object.keys(message.before_tags); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.before_tags[key[i]])) + return "before_tags: string{k:string} expected"; + } + if (message.after_tags != null && message.hasOwnProperty("after_tags")) { + if (!$util.isObject(message.after_tags)) + return "after_tags: object expected"; + let key = Object.keys(message.after_tags); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.after_tags[key[i]])) + return "after_tags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a ChangeTabletTagsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ChangeTabletTagsResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse + */ + ChangeTabletTagsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ChangeTabletTagsResponse) + return object; + let message = new $root.vtctldata.ChangeTabletTagsResponse(); + if (object.before_tags) { + if (typeof object.before_tags !== "object") + throw TypeError(".vtctldata.ChangeTabletTagsResponse.before_tags: object expected"); + message.before_tags = {}; + for (let keys = Object.keys(object.before_tags), i = 0; i < keys.length; ++i) + message.before_tags[keys[i]] = String(object.before_tags[keys[i]]); + } + if (object.after_tags) { + if (typeof object.after_tags !== "object") + throw TypeError(".vtctldata.ChangeTabletTagsResponse.after_tags: object expected"); + message.after_tags = {}; + for (let keys = Object.keys(object.after_tags), i = 0; i < keys.length; ++i) + message.after_tags[keys[i]] = String(object.after_tags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a ChangeTabletTagsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ChangeTabletTagsResponse + * @static + * @param {vtctldata.ChangeTabletTagsResponse} message ChangeTabletTagsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeTabletTagsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) { + object.before_tags = {}; + object.after_tags = {}; + } + let keys2; + if (message.before_tags && (keys2 = Object.keys(message.before_tags)).length) { + object.before_tags = {}; + for (let j = 0; j < keys2.length; ++j) + object.before_tags[keys2[j]] = message.before_tags[keys2[j]]; + } + if (message.after_tags && (keys2 = Object.keys(message.after_tags)).length) { + object.after_tags = {}; + for (let j = 0; j < keys2.length; ++j) + object.after_tags[keys2[j]] = message.after_tags[keys2[j]]; + } + return object; + }; + + /** + * Converts this ChangeTabletTagsResponse to JSON. + * @function toJSON + * @memberof vtctldata.ChangeTabletTagsResponse + * @instance + * @returns {Object.} JSON object + */ + ChangeTabletTagsResponse.prototype.toJSON = function toJSON() { + 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; + })(); + + vtctldata.ChangeTabletTypeRequest = (function() { + + /** + * Properties of a ChangeTabletTypeRequest. + * @memberof vtctldata + * @interface IChangeTabletTypeRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] ChangeTabletTypeRequest tablet_alias + * @property {topodata.TabletType|null} [db_type] ChangeTabletTypeRequest db_type + * @property {boolean|null} [dry_run] ChangeTabletTypeRequest dry_run + */ + + /** + * Constructs a new ChangeTabletTypeRequest. + * @memberof vtctldata + * @classdesc Represents a ChangeTabletTypeRequest. + * @implements IChangeTabletTypeRequest + * @constructor + * @param {vtctldata.IChangeTabletTypeRequest=} [properties] Properties to set + */ + function ChangeTabletTypeRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes a Log message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow.Stream.Log} Log - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Log.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * ChangeTabletTypeRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.ChangeTabletTypeRequest + * @instance + */ + ChangeTabletTypeRequest.prototype.tablet_alias = null; - /** - * Verifies a Log message. - * @function verify - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Log.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) - return "id: integer|Long expected"; - if (message.stream_id != null && message.hasOwnProperty("stream_id")) - if (!$util.isInteger(message.stream_id) && !(message.stream_id && $util.isInteger(message.stream_id.low) && $util.isInteger(message.stream_id.high))) - return "stream_id: integer|Long expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - if (!$util.isString(message.state)) - return "state: string expected"; - if (message.created_at != null && message.hasOwnProperty("created_at")) { - let error = $root.vttime.Time.verify(message.created_at); - if (error) - return "created_at." + error; - } - if (message.updated_at != null && message.hasOwnProperty("updated_at")) { - let error = $root.vttime.Time.verify(message.updated_at); - if (error) - return "updated_at." + error; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.count != null && message.hasOwnProperty("count")) - if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high))) - return "count: integer|Long expected"; - return null; - }; + /** + * ChangeTabletTypeRequest db_type. + * @member {topodata.TabletType} db_type + * @memberof vtctldata.ChangeTabletTypeRequest + * @instance + */ + ChangeTabletTypeRequest.prototype.db_type = 0; - /** - * Creates a Log message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Workflow.Stream.Log} Log - */ - Log.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow.Stream.Log) - return object; - let message = new $root.vtctldata.Workflow.Stream.Log(); - if (object.id != null) - if ($util.Long) - (message.id = $util.Long.fromValue(object.id)).unsigned = false; - else if (typeof object.id === "string") - message.id = parseInt(object.id, 10); - else if (typeof object.id === "number") - message.id = object.id; - else if (typeof object.id === "object") - message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); - if (object.stream_id != null) - if ($util.Long) - (message.stream_id = $util.Long.fromValue(object.stream_id)).unsigned = false; - else if (typeof object.stream_id === "string") - message.stream_id = parseInt(object.stream_id, 10); - else if (typeof object.stream_id === "number") - message.stream_id = object.stream_id; - else if (typeof object.stream_id === "object") - message.stream_id = new $util.LongBits(object.stream_id.low >>> 0, object.stream_id.high >>> 0).toNumber(); - if (object.type != null) - message.type = String(object.type); - if (object.state != null) - message.state = String(object.state); - if (object.created_at != null) { - if (typeof object.created_at !== "object") - throw TypeError(".vtctldata.Workflow.Stream.Log.created_at: object expected"); - message.created_at = $root.vttime.Time.fromObject(object.created_at); + /** + * ChangeTabletTypeRequest dry_run. + * @member {boolean} dry_run + * @memberof vtctldata.ChangeTabletTypeRequest + * @instance + */ + ChangeTabletTypeRequest.prototype.dry_run = false; + + /** + * Creates a new ChangeTabletTypeRequest instance using the specified properties. + * @function create + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {vtctldata.IChangeTabletTypeRequest=} [properties] Properties to set + * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest instance + */ + ChangeTabletTypeRequest.create = function create(properties) { + return new ChangeTabletTypeRequest(properties); + }; + + /** + * Encodes the specified ChangeTabletTypeRequest message. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {vtctldata.IChangeTabletTypeRequest} message ChangeTabletTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeTabletTypeRequest.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.db_type != null && Object.hasOwnProperty.call(message, "db_type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.db_type); + if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dry_run); + return writer; + }; + + /** + * Encodes the specified ChangeTabletTypeRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {vtctldata.IChangeTabletTypeRequest} message ChangeTabletTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeTabletTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeTabletTypeRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTypeRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; } - if (object.updated_at != null) { - if (typeof object.updated_at !== "object") - throw TypeError(".vtctldata.Workflow.Stream.Log.updated_at: object expected"); - message.updated_at = $root.vttime.Time.fromObject(object.updated_at); + case 2: { + message.db_type = reader.int32(); + break; } - if (object.message != null) - message.message = String(object.message); - if (object.count != null) - if ($util.Long) - (message.count = $util.Long.fromValue(object.count)).unsigned = false; - else if (typeof object.count === "string") - message.count = parseInt(object.count, 10); - else if (typeof object.count === "number") - message.count = object.count; - else if (typeof object.count === "object") - message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a Log message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {vtctldata.Workflow.Stream.Log} message Log - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Log.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.stream_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.stream_id = options.longs === String ? "0" : 0; - object.type = ""; - object.state = ""; - object.created_at = null; - object.updated_at = null; - object.message = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.count = options.longs === String ? "0" : 0; + case 3: { + message.dry_run = reader.bool(); + break; } - if (message.id != null && message.hasOwnProperty("id")) - if (typeof message.id === "number") - object.id = options.longs === String ? String(message.id) : message.id; - else - object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; - if (message.stream_id != null && message.hasOwnProperty("stream_id")) - if (typeof message.stream_id === "number") - object.stream_id = options.longs === String ? String(message.stream_id) : message.stream_id; - else - object.stream_id = options.longs === String ? $util.Long.prototype.toString.call(message.stream_id) : options.longs === Number ? new $util.LongBits(message.stream_id.low >>> 0, message.stream_id.high >>> 0).toNumber() : message.stream_id; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.state != null && message.hasOwnProperty("state")) - object.state = message.state; - if (message.created_at != null && message.hasOwnProperty("created_at")) - object.created_at = $root.vttime.Time.toObject(message.created_at, options); - if (message.updated_at != null && message.hasOwnProperty("updated_at")) - object.updated_at = $root.vttime.Time.toObject(message.updated_at, options); - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.count != null && message.hasOwnProperty("count")) - if (typeof message.count === "number") - object.count = options.longs === String ? String(message.count) : message.count; - else - object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count; - return object; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * 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); - }; + /** + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeTabletTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for Log - * @function getTypeUrl - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Log.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.Workflow.Stream.Log"; - }; + /** + * Verifies a ChangeTabletTypeRequest message. + * @function verify + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeTabletTypeRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.db_type != null && message.hasOwnProperty("db_type")) + switch (message.db_type) { + default: + return "db_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.dry_run != null && message.hasOwnProperty("dry_run")) + if (typeof message.dry_run !== "boolean") + return "dry_run: boolean expected"; + return null; + }; - return Log; - })(); + /** + * Creates a ChangeTabletTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + */ + ChangeTabletTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ChangeTabletTypeRequest) + return object; + let message = new $root.vtctldata.ChangeTabletTypeRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.ChangeTabletTypeRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + switch (object.db_type) { + default: + if (typeof object.db_type === "number") { + message.db_type = object.db_type; + break; + } + break; + case "UNKNOWN": + case 0: + message.db_type = 0; + break; + case "PRIMARY": + case 1: + message.db_type = 1; + break; + case "MASTER": + case 1: + message.db_type = 1; + break; + case "REPLICA": + case 2: + message.db_type = 2; + break; + case "RDONLY": + case 3: + message.db_type = 3; + break; + case "BATCH": + case 3: + message.db_type = 3; + break; + case "SPARE": + case 4: + message.db_type = 4; + break; + case "EXPERIMENTAL": + case 5: + message.db_type = 5; + break; + case "BACKUP": + case 6: + message.db_type = 6; + break; + case "RESTORE": + case 7: + message.db_type = 7; + break; + case "DRAINED": + case 8: + message.db_type = 8; + break; + } + if (object.dry_run != null) + message.dry_run = Boolean(object.dry_run); + return message; + }; - Stream.ThrottlerStatus = (function() { + /** + * Creates a plain object from a ChangeTabletTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {vtctldata.ChangeTabletTypeRequest} message ChangeTabletTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeTabletTypeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.tablet_alias = null; + object.db_type = options.enums === String ? "UNKNOWN" : 0; + object.dry_run = false; + } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.db_type != null && message.hasOwnProperty("db_type")) + object.db_type = options.enums === String ? $root.topodata.TabletType[message.db_type] === undefined ? message.db_type : $root.topodata.TabletType[message.db_type] : message.db_type; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + object.dry_run = message.dry_run; + return object; + }; - /** - * Properties of a ThrottlerStatus. - * @memberof vtctldata.Workflow.Stream - * @interface IThrottlerStatus - * @property {string|null} [component_throttled] ThrottlerStatus component_throttled - * @property {vttime.ITime|null} [time_throttled] ThrottlerStatus time_throttled - */ + /** + * Converts this ChangeTabletTypeRequest to JSON. + * @function toJSON + * @memberof vtctldata.ChangeTabletTypeRequest + * @instance + * @returns {Object.} JSON object + */ + ChangeTabletTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new ThrottlerStatus. - * @memberof vtctldata.Workflow.Stream - * @classdesc Represents a ThrottlerStatus. - * @implements IThrottlerStatus - * @constructor - * @param {vtctldata.Workflow.Stream.IThrottlerStatus=} [properties] Properties to set - */ - function ThrottlerStatus(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Gets the default type url for ChangeTabletTypeRequest + * @function getTypeUrl + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeTabletTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ChangeTabletTypeRequest"; + }; - /** - * ThrottlerStatus component_throttled. - * @member {string} component_throttled - * @memberof vtctldata.Workflow.Stream.ThrottlerStatus - * @instance - */ - ThrottlerStatus.prototype.component_throttled = ""; + return ChangeTabletTypeRequest; + })(); - /** - * ThrottlerStatus time_throttled. - * @member {vttime.ITime|null|undefined} time_throttled - * @memberof vtctldata.Workflow.Stream.ThrottlerStatus - * @instance - */ - ThrottlerStatus.prototype.time_throttled = null; + vtctldata.ChangeTabletTypeResponse = (function() { - /** - * Creates a new ThrottlerStatus instance using the specified properties. - * @function create - * @memberof vtctldata.Workflow.Stream.ThrottlerStatus - * @static - * @param {vtctldata.Workflow.Stream.IThrottlerStatus=} [properties] Properties to set - * @returns {vtctldata.Workflow.Stream.ThrottlerStatus} ThrottlerStatus instance - */ - ThrottlerStatus.create = function create(properties) { - return new ThrottlerStatus(properties); - }; + /** + * Properties of a ChangeTabletTypeResponse. + * @memberof vtctldata + * @interface IChangeTabletTypeResponse + * @property {topodata.ITablet|null} [before_tablet] ChangeTabletTypeResponse before_tablet + * @property {topodata.ITablet|null} [after_tablet] ChangeTabletTypeResponse after_tablet + * @property {boolean|null} [was_dry_run] ChangeTabletTypeResponse was_dry_run + */ - /** - * Encodes the specified ThrottlerStatus message. Does not implicitly {@link vtctldata.Workflow.Stream.ThrottlerStatus.verify|verify} messages. - * @function encode - * @memberof vtctldata.Workflow.Stream.ThrottlerStatus - * @static - * @param {vtctldata.Workflow.Stream.IThrottlerStatus} message ThrottlerStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ThrottlerStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.component_throttled != null && Object.hasOwnProperty.call(message, "component_throttled")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.component_throttled); - if (message.time_throttled != null && Object.hasOwnProperty.call(message, "time_throttled")) - $root.vttime.Time.encode(message.time_throttled, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Constructs a new ChangeTabletTypeResponse. + * @memberof vtctldata + * @classdesc Represents a ChangeTabletTypeResponse. + * @implements IChangeTabletTypeResponse + * @constructor + * @param {vtctldata.IChangeTabletTypeResponse=} [properties] Properties to set + */ + function ChangeTabletTypeResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified ThrottlerStatus message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.ThrottlerStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.Workflow.Stream.ThrottlerStatus - * @static - * @param {vtctldata.Workflow.Stream.IThrottlerStatus} message ThrottlerStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ThrottlerStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ChangeTabletTypeResponse before_tablet. + * @member {topodata.ITablet|null|undefined} before_tablet + * @memberof vtctldata.ChangeTabletTypeResponse + * @instance + */ + ChangeTabletTypeResponse.prototype.before_tablet = null; - /** - * Decodes a ThrottlerStatus message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.Workflow.Stream.ThrottlerStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.Stream.ThrottlerStatus} ThrottlerStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ThrottlerStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream.ThrottlerStatus(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.component_throttled = reader.string(); - break; - } - case 2: { - message.time_throttled = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ChangeTabletTypeResponse after_tablet. + * @member {topodata.ITablet|null|undefined} after_tablet + * @memberof vtctldata.ChangeTabletTypeResponse + * @instance + */ + ChangeTabletTypeResponse.prototype.after_tablet = null; - /** - * Decodes a ThrottlerStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.Workflow.Stream.ThrottlerStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow.Stream.ThrottlerStatus} ThrottlerStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ThrottlerStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * ChangeTabletTypeResponse was_dry_run. + * @member {boolean} was_dry_run + * @memberof vtctldata.ChangeTabletTypeResponse + * @instance + */ + ChangeTabletTypeResponse.prototype.was_dry_run = false; - /** - * Verifies a ThrottlerStatus message. - * @function verify - * @memberof vtctldata.Workflow.Stream.ThrottlerStatus - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ThrottlerStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.component_throttled != null && message.hasOwnProperty("component_throttled")) - if (!$util.isString(message.component_throttled)) - return "component_throttled: string expected"; - if (message.time_throttled != null && message.hasOwnProperty("time_throttled")) { - let error = $root.vttime.Time.verify(message.time_throttled); - if (error) - return "time_throttled." + error; - } - return null; - }; + /** + * Creates a new ChangeTabletTypeResponse instance using the specified properties. + * @function create + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {vtctldata.IChangeTabletTypeResponse=} [properties] Properties to set + * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse instance + */ + ChangeTabletTypeResponse.create = function create(properties) { + return new ChangeTabletTypeResponse(properties); + }; - /** - * Creates a ThrottlerStatus message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Workflow.Stream.ThrottlerStatus - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Workflow.Stream.ThrottlerStatus} ThrottlerStatus - */ - ThrottlerStatus.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow.Stream.ThrottlerStatus) - return object; - let message = new $root.vtctldata.Workflow.Stream.ThrottlerStatus(); - if (object.component_throttled != null) - message.component_throttled = String(object.component_throttled); - if (object.time_throttled != null) { - if (typeof object.time_throttled !== "object") - throw TypeError(".vtctldata.Workflow.Stream.ThrottlerStatus.time_throttled: object expected"); - message.time_throttled = $root.vttime.Time.fromObject(object.time_throttled); - } - return message; - }; + /** + * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {vtctldata.IChangeTabletTypeResponse} message ChangeTabletTypeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeTabletTypeResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.before_tablet != null && Object.hasOwnProperty.call(message, "before_tablet")) + $root.topodata.Tablet.encode(message.before_tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.after_tablet != null && Object.hasOwnProperty.call(message, "after_tablet")) + $root.topodata.Tablet.encode(message.after_tablet, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.was_dry_run != null && Object.hasOwnProperty.call(message, "was_dry_run")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.was_dry_run); + return writer; + }; - /** - * Creates a plain object from a ThrottlerStatus message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.Workflow.Stream.ThrottlerStatus - * @static - * @param {vtctldata.Workflow.Stream.ThrottlerStatus} message ThrottlerStatus - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ThrottlerStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.component_throttled = ""; - object.time_throttled = null; + /** + * Encodes the specified ChangeTabletTypeResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {vtctldata.IChangeTabletTypeResponse} message ChangeTabletTypeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeTabletTypeResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeTabletTypeResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTypeResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.before_tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); + break; } - if (message.component_throttled != null && message.hasOwnProperty("component_throttled")) - object.component_throttled = message.component_throttled; - if (message.time_throttled != null && message.hasOwnProperty("time_throttled")) - object.time_throttled = $root.vttime.Time.toObject(message.time_throttled, options); - return object; - }; + case 2: { + message.after_tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); + break; + } + case 3: { + message.was_dry_run = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this ThrottlerStatus to JSON. - * @function toJSON - * @memberof vtctldata.Workflow.Stream.ThrottlerStatus - * @instance - * @returns {Object.} JSON object - */ - ThrottlerStatus.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeTabletTypeResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for ThrottlerStatus - * @function getTypeUrl - * @memberof vtctldata.Workflow.Stream.ThrottlerStatus - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ThrottlerStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.Workflow.Stream.ThrottlerStatus"; - }; + /** + * Verifies a ChangeTabletTypeResponse message. + * @function verify + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeTabletTypeResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.before_tablet != null && message.hasOwnProperty("before_tablet")) { + let error = $root.topodata.Tablet.verify(message.before_tablet); + if (error) + return "before_tablet." + error; + } + if (message.after_tablet != null && message.hasOwnProperty("after_tablet")) { + let error = $root.topodata.Tablet.verify(message.after_tablet); + if (error) + return "after_tablet." + error; + } + if (message.was_dry_run != null && message.hasOwnProperty("was_dry_run")) + if (typeof message.was_dry_run !== "boolean") + return "was_dry_run: boolean expected"; + return null; + }; - return ThrottlerStatus; - })(); + /** + * Creates a ChangeTabletTypeResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + */ + ChangeTabletTypeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ChangeTabletTypeResponse) + return object; + let message = new $root.vtctldata.ChangeTabletTypeResponse(); + if (object.before_tablet != null) { + if (typeof object.before_tablet !== "object") + throw TypeError(".vtctldata.ChangeTabletTypeResponse.before_tablet: object expected"); + message.before_tablet = $root.topodata.Tablet.fromObject(object.before_tablet); + } + if (object.after_tablet != null) { + if (typeof object.after_tablet !== "object") + throw TypeError(".vtctldata.ChangeTabletTypeResponse.after_tablet: object expected"); + message.after_tablet = $root.topodata.Tablet.fromObject(object.after_tablet); + } + if (object.was_dry_run != null) + message.was_dry_run = Boolean(object.was_dry_run); + return message; + }; - return Stream; - })(); + /** + * Creates a plain object from a ChangeTabletTypeResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {vtctldata.ChangeTabletTypeResponse} message ChangeTabletTypeResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeTabletTypeResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.before_tablet = null; + object.after_tablet = null; + object.was_dry_run = false; + } + if (message.before_tablet != null && message.hasOwnProperty("before_tablet")) + object.before_tablet = $root.topodata.Tablet.toObject(message.before_tablet, options); + if (message.after_tablet != null && message.hasOwnProperty("after_tablet")) + object.after_tablet = $root.topodata.Tablet.toObject(message.after_tablet, options); + if (message.was_dry_run != null && message.hasOwnProperty("was_dry_run")) + object.was_dry_run = message.was_dry_run; + return object; + }; - return Workflow; + /** + * Converts this ChangeTabletTypeResponse to JSON. + * @function toJSON + * @memberof vtctldata.ChangeTabletTypeResponse + * @instance + * @returns {Object.} JSON object + */ + ChangeTabletTypeResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ChangeTabletTypeResponse + * @function getTypeUrl + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeTabletTypeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ChangeTabletTypeResponse"; + }; + + return ChangeTabletTypeResponse; })(); - vtctldata.AddCellInfoRequest = (function() { + vtctldata.CheckThrottlerRequest = (function() { /** - * Properties of an AddCellInfoRequest. + * Properties of a CheckThrottlerRequest. * @memberof vtctldata - * @interface IAddCellInfoRequest - * @property {string|null} [name] AddCellInfoRequest name - * @property {topodata.ICellInfo|null} [cell_info] AddCellInfoRequest cell_info + * @interface ICheckThrottlerRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] CheckThrottlerRequest tablet_alias + * @property {string|null} [app_name] CheckThrottlerRequest app_name + * @property {string|null} [scope] CheckThrottlerRequest scope + * @property {boolean|null} [skip_request_heartbeats] CheckThrottlerRequest skip_request_heartbeats + * @property {boolean|null} [ok_if_not_exists] CheckThrottlerRequest ok_if_not_exists */ /** - * Constructs a new AddCellInfoRequest. + * Constructs a new CheckThrottlerRequest. * @memberof vtctldata - * @classdesc Represents an AddCellInfoRequest. - * @implements IAddCellInfoRequest + * @classdesc Represents a CheckThrottlerRequest. + * @implements ICheckThrottlerRequest * @constructor - * @param {vtctldata.IAddCellInfoRequest=} [properties] Properties to set + * @param {vtctldata.ICheckThrottlerRequest=} [properties] Properties to set */ - function AddCellInfoRequest(properties) { + function CheckThrottlerRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -131154,89 +139997,131 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * AddCellInfoRequest name. - * @member {string} name - * @memberof vtctldata.AddCellInfoRequest + * CheckThrottlerRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.CheckThrottlerRequest * @instance */ - AddCellInfoRequest.prototype.name = ""; + CheckThrottlerRequest.prototype.tablet_alias = null; /** - * AddCellInfoRequest cell_info. - * @member {topodata.ICellInfo|null|undefined} cell_info - * @memberof vtctldata.AddCellInfoRequest + * CheckThrottlerRequest app_name. + * @member {string} app_name + * @memberof vtctldata.CheckThrottlerRequest * @instance */ - AddCellInfoRequest.prototype.cell_info = null; + CheckThrottlerRequest.prototype.app_name = ""; /** - * Creates a new AddCellInfoRequest instance using the specified properties. + * CheckThrottlerRequest scope. + * @member {string} scope + * @memberof vtctldata.CheckThrottlerRequest + * @instance + */ + CheckThrottlerRequest.prototype.scope = ""; + + /** + * CheckThrottlerRequest skip_request_heartbeats. + * @member {boolean} skip_request_heartbeats + * @memberof vtctldata.CheckThrottlerRequest + * @instance + */ + CheckThrottlerRequest.prototype.skip_request_heartbeats = false; + + /** + * CheckThrottlerRequest ok_if_not_exists. + * @member {boolean} ok_if_not_exists + * @memberof vtctldata.CheckThrottlerRequest + * @instance + */ + CheckThrottlerRequest.prototype.ok_if_not_exists = false; + + /** + * Creates a new CheckThrottlerRequest instance using the specified properties. * @function create - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.CheckThrottlerRequest * @static - * @param {vtctldata.IAddCellInfoRequest=} [properties] Properties to set - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest instance + * @param {vtctldata.ICheckThrottlerRequest=} [properties] Properties to set + * @returns {vtctldata.CheckThrottlerRequest} CheckThrottlerRequest instance */ - AddCellInfoRequest.create = function create(properties) { - return new AddCellInfoRequest(properties); + CheckThrottlerRequest.create = function create(properties) { + return new CheckThrottlerRequest(properties); }; /** - * Encodes the specified AddCellInfoRequest message. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. + * Encodes the specified CheckThrottlerRequest message. Does not implicitly {@link vtctldata.CheckThrottlerRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.CheckThrottlerRequest * @static - * @param {vtctldata.IAddCellInfoRequest} message AddCellInfoRequest message or plain object to encode + * @param {vtctldata.ICheckThrottlerRequest} message CheckThrottlerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellInfoRequest.encode = function encode(message, writer) { + CheckThrottlerRequest.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.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.app_name != null && Object.hasOwnProperty.call(message, "app_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.app_name); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.scope); + if (message.skip_request_heartbeats != null && Object.hasOwnProperty.call(message, "skip_request_heartbeats")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.skip_request_heartbeats); + if (message.ok_if_not_exists != null && Object.hasOwnProperty.call(message, "ok_if_not_exists")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.ok_if_not_exists); return writer; }; /** - * Encodes the specified AddCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. + * Encodes the specified CheckThrottlerRequest message, length delimited. Does not implicitly {@link vtctldata.CheckThrottlerRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.CheckThrottlerRequest * @static - * @param {vtctldata.IAddCellInfoRequest} message AddCellInfoRequest message or plain object to encode + * @param {vtctldata.ICheckThrottlerRequest} message CheckThrottlerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + CheckThrottlerRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddCellInfoRequest message from the specified reader or buffer. + * Decodes a CheckThrottlerRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.CheckThrottlerRequest * @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.CheckThrottlerRequest} CheckThrottlerRequest * @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) { + CheckThrottlerRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CheckThrottlerRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } case 2: { - message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); + message.app_name = reader.string(); + break; + } + case 3: { + message.scope = reader.string(); + break; + } + case 4: { + message.skip_request_heartbeats = reader.bool(); + break; + } + case 5: { + message.ok_if_not_exists = reader.bool(); break; } default: @@ -131248,135 +140133,161 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an AddCellInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a CheckThrottlerRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.CheckThrottlerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest + * @returns {vtctldata.CheckThrottlerRequest} CheckThrottlerRequest * @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) { + CheckThrottlerRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddCellInfoRequest message. + * Verifies a CheckThrottlerRequest message. * @function verify - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.CheckThrottlerRequest * @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) { + CheckThrottlerRequest.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")) { - let error = $root.topodata.CellInfo.verify(message.cell_info); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) - return "cell_info." + error; + return "tablet_alias." + error; } + if (message.app_name != null && message.hasOwnProperty("app_name")) + if (!$util.isString(message.app_name)) + return "app_name: string expected"; + if (message.scope != null && message.hasOwnProperty("scope")) + if (!$util.isString(message.scope)) + return "scope: string expected"; + if (message.skip_request_heartbeats != null && message.hasOwnProperty("skip_request_heartbeats")) + if (typeof message.skip_request_heartbeats !== "boolean") + return "skip_request_heartbeats: boolean expected"; + if (message.ok_if_not_exists != null && message.hasOwnProperty("ok_if_not_exists")) + if (typeof message.ok_if_not_exists !== "boolean") + return "ok_if_not_exists: boolean expected"; return null; }; /** - * Creates an AddCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CheckThrottlerRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.CheckThrottlerRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest + * @returns {vtctldata.CheckThrottlerRequest} CheckThrottlerRequest */ - AddCellInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellInfoRequest) + CheckThrottlerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CheckThrottlerRequest) return object; - let 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); + let message = new $root.vtctldata.CheckThrottlerRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.CheckThrottlerRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } + if (object.app_name != null) + message.app_name = String(object.app_name); + if (object.scope != null) + message.scope = String(object.scope); + if (object.skip_request_heartbeats != null) + message.skip_request_heartbeats = Boolean(object.skip_request_heartbeats); + if (object.ok_if_not_exists != null) + message.ok_if_not_exists = Boolean(object.ok_if_not_exists); return message; }; /** - * Creates a plain object from an AddCellInfoRequest message. Also converts values to other types if specified. + * Creates a plain object from a CheckThrottlerRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.CheckThrottlerRequest * @static - * @param {vtctldata.AddCellInfoRequest} message AddCellInfoRequest + * @param {vtctldata.CheckThrottlerRequest} message CheckThrottlerRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddCellInfoRequest.toObject = function toObject(message, options) { + CheckThrottlerRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.name = ""; - object.cell_info = null; + object.tablet_alias = null; + object.app_name = ""; + object.scope = ""; + object.skip_request_heartbeats = false; + object.ok_if_not_exists = false; } - 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.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.app_name != null && message.hasOwnProperty("app_name")) + object.app_name = message.app_name; + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = message.scope; + if (message.skip_request_heartbeats != null && message.hasOwnProperty("skip_request_heartbeats")) + object.skip_request_heartbeats = message.skip_request_heartbeats; + if (message.ok_if_not_exists != null && message.hasOwnProperty("ok_if_not_exists")) + object.ok_if_not_exists = message.ok_if_not_exists; return object; }; /** - * Converts this AddCellInfoRequest to JSON. + * Converts this CheckThrottlerRequest to JSON. * @function toJSON - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.CheckThrottlerRequest * @instance * @returns {Object.} JSON object */ - AddCellInfoRequest.prototype.toJSON = function toJSON() { + CheckThrottlerRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddCellInfoRequest + * Gets the default type url for CheckThrottlerRequest * @function getTypeUrl - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.CheckThrottlerRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddCellInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CheckThrottlerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.AddCellInfoRequest"; + return typeUrlPrefix + "/vtctldata.CheckThrottlerRequest"; }; - return AddCellInfoRequest; + return CheckThrottlerRequest; })(); - vtctldata.AddCellInfoResponse = (function() { + vtctldata.CheckThrottlerResponse = (function() { /** - * Properties of an AddCellInfoResponse. + * Properties of a CheckThrottlerResponse. * @memberof vtctldata - * @interface IAddCellInfoResponse + * @interface ICheckThrottlerResponse + * @property {topodata.ITabletAlias|null} [tablet_alias] CheckThrottlerResponse tablet_alias + * @property {tabletmanagerdata.ICheckThrottlerResponse|null} [Check] CheckThrottlerResponse Check */ /** - * Constructs a new AddCellInfoResponse. + * Constructs a new CheckThrottlerResponse. * @memberof vtctldata - * @classdesc Represents an AddCellInfoResponse. - * @implements IAddCellInfoResponse + * @classdesc Represents a CheckThrottlerResponse. + * @implements ICheckThrottlerResponse * @constructor - * @param {vtctldata.IAddCellInfoResponse=} [properties] Properties to set + * @param {vtctldata.ICheckThrottlerResponse=} [properties] Properties to set */ - function AddCellInfoResponse(properties) { + function CheckThrottlerResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -131384,63 +140295,91 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new AddCellInfoResponse instance using the specified properties. + * CheckThrottlerResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.CheckThrottlerResponse + * @instance + */ + CheckThrottlerResponse.prototype.tablet_alias = null; + + /** + * CheckThrottlerResponse Check. + * @member {tabletmanagerdata.ICheckThrottlerResponse|null|undefined} Check + * @memberof vtctldata.CheckThrottlerResponse + * @instance + */ + CheckThrottlerResponse.prototype.Check = null; + + /** + * Creates a new CheckThrottlerResponse instance using the specified properties. * @function create - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.CheckThrottlerResponse * @static - * @param {vtctldata.IAddCellInfoResponse=} [properties] Properties to set - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse instance + * @param {vtctldata.ICheckThrottlerResponse=} [properties] Properties to set + * @returns {vtctldata.CheckThrottlerResponse} CheckThrottlerResponse instance */ - AddCellInfoResponse.create = function create(properties) { - return new AddCellInfoResponse(properties); + CheckThrottlerResponse.create = function create(properties) { + return new CheckThrottlerResponse(properties); }; /** - * Encodes the specified AddCellInfoResponse message. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. + * Encodes the specified CheckThrottlerResponse message. Does not implicitly {@link vtctldata.CheckThrottlerResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.CheckThrottlerResponse * @static - * @param {vtctldata.IAddCellInfoResponse} message AddCellInfoResponse message or plain object to encode + * @param {vtctldata.ICheckThrottlerResponse} message CheckThrottlerResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellInfoResponse.encode = function encode(message, writer) { + CheckThrottlerResponse.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.Check != null && Object.hasOwnProperty.call(message, "Check")) + $root.tabletmanagerdata.CheckThrottlerResponse.encode(message.Check, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified AddCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. + * Encodes the specified CheckThrottlerResponse message, length delimited. Does not implicitly {@link vtctldata.CheckThrottlerResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.CheckThrottlerResponse * @static - * @param {vtctldata.IAddCellInfoResponse} message AddCellInfoResponse message or plain object to encode + * @param {vtctldata.ICheckThrottlerResponse} message CheckThrottlerResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + CheckThrottlerResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddCellInfoResponse message from the specified reader or buffer. + * Decodes a CheckThrottlerResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.CheckThrottlerResponse * @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.CheckThrottlerResponse} CheckThrottlerResponse * @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) { + CheckThrottlerResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CheckThrottlerResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 2: { + message.Check = $root.tabletmanagerdata.CheckThrottlerResponse.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -131450,111 +140389,143 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an AddCellInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a CheckThrottlerResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.CheckThrottlerResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + * @returns {vtctldata.CheckThrottlerResponse} CheckThrottlerResponse * @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) { + CheckThrottlerResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddCellInfoResponse message. + * Verifies a CheckThrottlerResponse message. * @function verify - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.CheckThrottlerResponse * @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) { + CheckThrottlerResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.Check != null && message.hasOwnProperty("Check")) { + let error = $root.tabletmanagerdata.CheckThrottlerResponse.verify(message.Check); + if (error) + return "Check." + error; + } return null; }; /** - * Creates an AddCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CheckThrottlerResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.CheckThrottlerResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + * @returns {vtctldata.CheckThrottlerResponse} CheckThrottlerResponse */ - AddCellInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellInfoResponse) + CheckThrottlerResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CheckThrottlerResponse) return object; - return new $root.vtctldata.AddCellInfoResponse(); + let message = new $root.vtctldata.CheckThrottlerResponse(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.CheckThrottlerResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.Check != null) { + if (typeof object.Check !== "object") + throw TypeError(".vtctldata.CheckThrottlerResponse.Check: object expected"); + message.Check = $root.tabletmanagerdata.CheckThrottlerResponse.fromObject(object.Check); + } + return message; }; /** - * Creates a plain object from an AddCellInfoResponse message. Also converts values to other types if specified. + * Creates a plain object from a CheckThrottlerResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.CheckThrottlerResponse * @static - * @param {vtctldata.AddCellInfoResponse} message AddCellInfoResponse + * @param {vtctldata.CheckThrottlerResponse} message CheckThrottlerResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddCellInfoResponse.toObject = function toObject() { - return {}; + CheckThrottlerResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.tablet_alias = null; + object.Check = null; + } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.Check != null && message.hasOwnProperty("Check")) + object.Check = $root.tabletmanagerdata.CheckThrottlerResponse.toObject(message.Check, options); + return object; }; /** - * Converts this AddCellInfoResponse to JSON. + * Converts this CheckThrottlerResponse to JSON. * @function toJSON - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.CheckThrottlerResponse * @instance * @returns {Object.} JSON object */ - AddCellInfoResponse.prototype.toJSON = function toJSON() { + CheckThrottlerResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddCellInfoResponse + * Gets the default type url for CheckThrottlerResponse * @function getTypeUrl - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.CheckThrottlerResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddCellInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CheckThrottlerResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.AddCellInfoResponse"; + return typeUrlPrefix + "/vtctldata.CheckThrottlerResponse"; }; - return AddCellInfoResponse; + return CheckThrottlerResponse; })(); - vtctldata.AddCellsAliasRequest = (function() { + vtctldata.CleanupSchemaMigrationRequest = (function() { /** - * Properties of an AddCellsAliasRequest. + * Properties of a CleanupSchemaMigrationRequest. * @memberof vtctldata - * @interface IAddCellsAliasRequest - * @property {string|null} [name] AddCellsAliasRequest name - * @property {Array.|null} [cells] AddCellsAliasRequest cells + * @interface ICleanupSchemaMigrationRequest + * @property {string|null} [keyspace] CleanupSchemaMigrationRequest keyspace + * @property {string|null} [uuid] CleanupSchemaMigrationRequest uuid + * @property {vtrpc.ICallerID|null} [caller_id] CleanupSchemaMigrationRequest caller_id */ /** - * Constructs a new AddCellsAliasRequest. + * Constructs a new CleanupSchemaMigrationRequest. * @memberof vtctldata - * @classdesc Represents an AddCellsAliasRequest. - * @implements IAddCellsAliasRequest + * @classdesc Represents a CleanupSchemaMigrationRequest. + * @implements ICleanupSchemaMigrationRequest * @constructor - * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set + * @param {vtctldata.ICleanupSchemaMigrationRequest=} [properties] Properties to set */ - function AddCellsAliasRequest(properties) { - this.cells = []; + function CleanupSchemaMigrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -131562,92 +140533,103 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * AddCellsAliasRequest name. - * @member {string} name - * @memberof vtctldata.AddCellsAliasRequest + * CleanupSchemaMigrationRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.CleanupSchemaMigrationRequest * @instance */ - AddCellsAliasRequest.prototype.name = ""; + CleanupSchemaMigrationRequest.prototype.keyspace = ""; /** - * AddCellsAliasRequest cells. - * @member {Array.} cells - * @memberof vtctldata.AddCellsAliasRequest + * CleanupSchemaMigrationRequest uuid. + * @member {string} uuid + * @memberof vtctldata.CleanupSchemaMigrationRequest * @instance */ - AddCellsAliasRequest.prototype.cells = $util.emptyArray; + CleanupSchemaMigrationRequest.prototype.uuid = ""; /** - * Creates a new AddCellsAliasRequest instance using the specified properties. + * CleanupSchemaMigrationRequest caller_id. + * @member {vtrpc.ICallerID|null|undefined} caller_id + * @memberof vtctldata.CleanupSchemaMigrationRequest + * @instance + */ + CleanupSchemaMigrationRequest.prototype.caller_id = null; + + /** + * Creates a new CleanupSchemaMigrationRequest instance using the specified properties. * @function create - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.CleanupSchemaMigrationRequest * @static - * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest instance + * @param {vtctldata.ICleanupSchemaMigrationRequest=} [properties] Properties to set + * @returns {vtctldata.CleanupSchemaMigrationRequest} CleanupSchemaMigrationRequest instance */ - AddCellsAliasRequest.create = function create(properties) { - return new AddCellsAliasRequest(properties); + CleanupSchemaMigrationRequest.create = function create(properties) { + return new CleanupSchemaMigrationRequest(properties); }; /** - * Encodes the specified AddCellsAliasRequest message. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * Encodes the specified CleanupSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CleanupSchemaMigrationRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.CleanupSchemaMigrationRequest * @static - * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode + * @param {vtctldata.ICleanupSchemaMigrationRequest} message CleanupSchemaMigrationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasRequest.encode = function encode(message, writer) { + CleanupSchemaMigrationRequest.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 (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); + if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) + $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified AddCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * Encodes the specified CleanupSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CleanupSchemaMigrationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.CleanupSchemaMigrationRequest * @static - * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode + * @param {vtctldata.ICleanupSchemaMigrationRequest} message CleanupSchemaMigrationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { + CleanupSchemaMigrationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddCellsAliasRequest message from the specified reader or buffer. + * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.CleanupSchemaMigrationRequest * @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.CleanupSchemaMigrationRequest} CleanupSchemaMigrationRequest * @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) { + CleanupSchemaMigrationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CleanupSchemaMigrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.keyspace = reader.string(); break; } case 2: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + message.uuid = reader.string(); + break; + } + case 3: { + message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; } default: @@ -131659,142 +140641,145 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an AddCellsAliasRequest message from the specified reader or buffer, length delimited. + * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.CleanupSchemaMigrationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + * @returns {vtctldata.CleanupSchemaMigrationRequest} CleanupSchemaMigrationRequest * @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) { + CleanupSchemaMigrationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddCellsAliasRequest message. + * Verifies a CleanupSchemaMigrationRequest message. * @function verify - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.CleanupSchemaMigrationRequest * @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) { + CleanupSchemaMigrationRequest.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 (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.uuid != null && message.hasOwnProperty("uuid")) + if (!$util.isString(message.uuid)) + return "uuid: string expected"; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) { + let error = $root.vtrpc.CallerID.verify(message.caller_id); + if (error) + return "caller_id." + error; } return null; }; /** - * Creates an AddCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CleanupSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.CleanupSchemaMigrationRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + * @returns {vtctldata.CleanupSchemaMigrationRequest} CleanupSchemaMigrationRequest */ - AddCellsAliasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellsAliasRequest) + CleanupSchemaMigrationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CleanupSchemaMigrationRequest) return object; - let 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 (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); + let message = new $root.vtctldata.CleanupSchemaMigrationRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.uuid != null) + message.uuid = String(object.uuid); + if (object.caller_id != null) { + if (typeof object.caller_id !== "object") + throw TypeError(".vtctldata.CleanupSchemaMigrationRequest.caller_id: object expected"); + message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); } return message; }; /** - * Creates a plain object from an AddCellsAliasRequest message. Also converts values to other types if specified. + * Creates a plain object from a CleanupSchemaMigrationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.CleanupSchemaMigrationRequest * @static - * @param {vtctldata.AddCellsAliasRequest} message AddCellsAliasRequest + * @param {vtctldata.CleanupSchemaMigrationRequest} message CleanupSchemaMigrationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddCellsAliasRequest.toObject = function toObject(message, options) { + CleanupSchemaMigrationRequest.toObject = function toObject(message, options) { if (!options) options = {}; let 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 (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; + if (options.defaults) { + object.keyspace = ""; + object.uuid = ""; + object.caller_id = null; } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.uuid != null && message.hasOwnProperty("uuid")) + object.uuid = message.uuid; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) + object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); return object; }; /** - * Converts this AddCellsAliasRequest to JSON. + * Converts this CleanupSchemaMigrationRequest to JSON. * @function toJSON - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.CleanupSchemaMigrationRequest * @instance * @returns {Object.} JSON object */ - AddCellsAliasRequest.prototype.toJSON = function toJSON() { + CleanupSchemaMigrationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddCellsAliasRequest + * Gets the default type url for CleanupSchemaMigrationRequest * @function getTypeUrl - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.CleanupSchemaMigrationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddCellsAliasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CleanupSchemaMigrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.AddCellsAliasRequest"; + return typeUrlPrefix + "/vtctldata.CleanupSchemaMigrationRequest"; }; - return AddCellsAliasRequest; + return CleanupSchemaMigrationRequest; })(); - vtctldata.AddCellsAliasResponse = (function() { + vtctldata.CleanupSchemaMigrationResponse = (function() { /** - * Properties of an AddCellsAliasResponse. + * Properties of a CleanupSchemaMigrationResponse. * @memberof vtctldata - * @interface IAddCellsAliasResponse + * @interface ICleanupSchemaMigrationResponse + * @property {Object.|null} [rows_affected_by_shard] CleanupSchemaMigrationResponse rows_affected_by_shard */ /** - * Constructs a new AddCellsAliasResponse. + * Constructs a new CleanupSchemaMigrationResponse. * @memberof vtctldata - * @classdesc Represents an AddCellsAliasResponse. - * @implements IAddCellsAliasResponse + * @classdesc Represents a CleanupSchemaMigrationResponse. + * @implements ICleanupSchemaMigrationResponse * @constructor - * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set + * @param {vtctldata.ICleanupSchemaMigrationResponse=} [properties] Properties to set */ - function AddCellsAliasResponse(properties) { + function CleanupSchemaMigrationResponse(properties) { + this.rows_affected_by_shard = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -131802,63 +140787,97 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new AddCellsAliasResponse instance using the specified properties. + * CleanupSchemaMigrationResponse rows_affected_by_shard. + * @member {Object.} rows_affected_by_shard + * @memberof vtctldata.CleanupSchemaMigrationResponse + * @instance + */ + CleanupSchemaMigrationResponse.prototype.rows_affected_by_shard = $util.emptyObject; + + /** + * Creates a new CleanupSchemaMigrationResponse instance using the specified properties. * @function create - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.CleanupSchemaMigrationResponse * @static - * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse instance + * @param {vtctldata.ICleanupSchemaMigrationResponse=} [properties] Properties to set + * @returns {vtctldata.CleanupSchemaMigrationResponse} CleanupSchemaMigrationResponse instance */ - AddCellsAliasResponse.create = function create(properties) { - return new AddCellsAliasResponse(properties); + CleanupSchemaMigrationResponse.create = function create(properties) { + return new CleanupSchemaMigrationResponse(properties); }; /** - * Encodes the specified AddCellsAliasResponse message. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * Encodes the specified CleanupSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CleanupSchemaMigrationResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.CleanupSchemaMigrationResponse * @static - * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode + * @param {vtctldata.ICleanupSchemaMigrationResponse} message CleanupSchemaMigrationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasResponse.encode = function encode(message, writer) { + CleanupSchemaMigrationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) + for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified AddCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * Encodes the specified CleanupSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CleanupSchemaMigrationResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.CleanupSchemaMigrationResponse * @static - * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode + * @param {vtctldata.ICleanupSchemaMigrationResponse} message CleanupSchemaMigrationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasResponse.encodeDelimited = function encodeDelimited(message, writer) { + CleanupSchemaMigrationResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddCellsAliasResponse message from the specified reader or buffer. + * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.CleanupSchemaMigrationResponse * @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.CleanupSchemaMigrationResponse} CleanupSchemaMigrationResponse * @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) { + CleanupSchemaMigrationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CleanupSchemaMigrationResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (message.rows_affected_by_shard === $util.emptyObject) + message.rows_affected_by_shard = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.uint64(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.rows_affected_by_shard[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -131868,112 +140887,148 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an AddCellsAliasResponse message from the specified reader or buffer, length delimited. + * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.CleanupSchemaMigrationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @returns {vtctldata.CleanupSchemaMigrationResponse} CleanupSchemaMigrationResponse * @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) { + CleanupSchemaMigrationResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddCellsAliasResponse message. + * Verifies a CleanupSchemaMigrationResponse message. * @function verify - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.CleanupSchemaMigrationResponse * @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) { + CleanupSchemaMigrationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { + if (!$util.isObject(message.rows_affected_by_shard)) + return "rows_affected_by_shard: object expected"; + let key = Object.keys(message.rows_affected_by_shard); + for (let i = 0; i < key.length; ++i) + if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) + return "rows_affected_by_shard: integer|Long{k:string} expected"; + } return null; }; /** - * Creates an AddCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CleanupSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.CleanupSchemaMigrationResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @returns {vtctldata.CleanupSchemaMigrationResponse} CleanupSchemaMigrationResponse */ - AddCellsAliasResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellsAliasResponse) + CleanupSchemaMigrationResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CleanupSchemaMigrationResponse) return object; - return new $root.vtctldata.AddCellsAliasResponse(); + let message = new $root.vtctldata.CleanupSchemaMigrationResponse(); + if (object.rows_affected_by_shard) { + if (typeof object.rows_affected_by_shard !== "object") + throw TypeError(".vtctldata.CleanupSchemaMigrationResponse.rows_affected_by_shard: object expected"); + message.rows_affected_by_shard = {}; + for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) + if ($util.Long) + (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; + else if (typeof object.rows_affected_by_shard[keys[i]] === "string") + message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); + else if (typeof object.rows_affected_by_shard[keys[i]] === "number") + message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; + else if (typeof object.rows_affected_by_shard[keys[i]] === "object") + message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); + } + return message; }; /** - * Creates a plain object from an AddCellsAliasResponse message. Also converts values to other types if specified. + * Creates a plain object from a CleanupSchemaMigrationResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.CleanupSchemaMigrationResponse * @static - * @param {vtctldata.AddCellsAliasResponse} message AddCellsAliasResponse + * @param {vtctldata.CleanupSchemaMigrationResponse} message CleanupSchemaMigrationResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddCellsAliasResponse.toObject = function toObject() { - return {}; + CleanupSchemaMigrationResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) + object.rows_affected_by_shard = {}; + let keys2; + if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { + object.rows_affected_by_shard = {}; + for (let j = 0; j < keys2.length; ++j) + if (typeof message.rows_affected_by_shard[keys2[j]] === "number") + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; + else + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; + } + return object; }; /** - * Converts this AddCellsAliasResponse to JSON. + * Converts this CleanupSchemaMigrationResponse to JSON. * @function toJSON - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.CleanupSchemaMigrationResponse * @instance * @returns {Object.} JSON object */ - AddCellsAliasResponse.prototype.toJSON = function toJSON() { + CleanupSchemaMigrationResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddCellsAliasResponse + * Gets the default type url for CleanupSchemaMigrationResponse * @function getTypeUrl - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.CleanupSchemaMigrationResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddCellsAliasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CleanupSchemaMigrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.AddCellsAliasResponse"; + return typeUrlPrefix + "/vtctldata.CleanupSchemaMigrationResponse"; }; - return AddCellsAliasResponse; + return CleanupSchemaMigrationResponse; })(); - vtctldata.ApplyKeyspaceRoutingRulesRequest = (function() { + vtctldata.CompleteSchemaMigrationRequest = (function() { /** - * Properties of an ApplyKeyspaceRoutingRulesRequest. + * Properties of a CompleteSchemaMigrationRequest. * @memberof vtctldata - * @interface IApplyKeyspaceRoutingRulesRequest - * @property {vschema.IKeyspaceRoutingRules|null} [keyspace_routing_rules] ApplyKeyspaceRoutingRulesRequest keyspace_routing_rules - * @property {boolean|null} [skip_rebuild] ApplyKeyspaceRoutingRulesRequest skip_rebuild - * @property {Array.|null} [rebuild_cells] ApplyKeyspaceRoutingRulesRequest rebuild_cells + * @interface ICompleteSchemaMigrationRequest + * @property {string|null} [keyspace] CompleteSchemaMigrationRequest keyspace + * @property {string|null} [uuid] CompleteSchemaMigrationRequest uuid + * @property {vtrpc.ICallerID|null} [caller_id] CompleteSchemaMigrationRequest caller_id */ /** - * Constructs a new ApplyKeyspaceRoutingRulesRequest. + * Constructs a new CompleteSchemaMigrationRequest. * @memberof vtctldata - * @classdesc Represents an ApplyKeyspaceRoutingRulesRequest. - * @implements IApplyKeyspaceRoutingRulesRequest + * @classdesc Represents a CompleteSchemaMigrationRequest. + * @implements ICompleteSchemaMigrationRequest * @constructor - * @param {vtctldata.IApplyKeyspaceRoutingRulesRequest=} [properties] Properties to set + * @param {vtctldata.ICompleteSchemaMigrationRequest=} [properties] Properties to set */ - function ApplyKeyspaceRoutingRulesRequest(properties) { - this.rebuild_cells = []; + function CompleteSchemaMigrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -131981,106 +141036,103 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ApplyKeyspaceRoutingRulesRequest keyspace_routing_rules. - * @member {vschema.IKeyspaceRoutingRules|null|undefined} keyspace_routing_rules - * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * CompleteSchemaMigrationRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.CompleteSchemaMigrationRequest * @instance */ - ApplyKeyspaceRoutingRulesRequest.prototype.keyspace_routing_rules = null; + CompleteSchemaMigrationRequest.prototype.keyspace = ""; /** - * ApplyKeyspaceRoutingRulesRequest skip_rebuild. - * @member {boolean} skip_rebuild - * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * CompleteSchemaMigrationRequest uuid. + * @member {string} uuid + * @memberof vtctldata.CompleteSchemaMigrationRequest * @instance */ - ApplyKeyspaceRoutingRulesRequest.prototype.skip_rebuild = false; + CompleteSchemaMigrationRequest.prototype.uuid = ""; /** - * ApplyKeyspaceRoutingRulesRequest rebuild_cells. - * @member {Array.} rebuild_cells - * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * CompleteSchemaMigrationRequest caller_id. + * @member {vtrpc.ICallerID|null|undefined} caller_id + * @memberof vtctldata.CompleteSchemaMigrationRequest * @instance */ - ApplyKeyspaceRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; + CompleteSchemaMigrationRequest.prototype.caller_id = null; /** - * Creates a new ApplyKeyspaceRoutingRulesRequest instance using the specified properties. + * Creates a new CompleteSchemaMigrationRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @memberof vtctldata.CompleteSchemaMigrationRequest * @static - * @param {vtctldata.IApplyKeyspaceRoutingRulesRequest=} [properties] Properties to set - * @returns {vtctldata.ApplyKeyspaceRoutingRulesRequest} ApplyKeyspaceRoutingRulesRequest instance + * @param {vtctldata.ICompleteSchemaMigrationRequest=} [properties] Properties to set + * @returns {vtctldata.CompleteSchemaMigrationRequest} CompleteSchemaMigrationRequest instance */ - ApplyKeyspaceRoutingRulesRequest.create = function create(properties) { - return new ApplyKeyspaceRoutingRulesRequest(properties); + CompleteSchemaMigrationRequest.create = function create(properties) { + return new CompleteSchemaMigrationRequest(properties); }; /** - * Encodes the specified ApplyKeyspaceRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesRequest.verify|verify} messages. + * Encodes the specified CompleteSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CompleteSchemaMigrationRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @memberof vtctldata.CompleteSchemaMigrationRequest * @static - * @param {vtctldata.IApplyKeyspaceRoutingRulesRequest} message ApplyKeyspaceRoutingRulesRequest message or plain object to encode + * @param {vtctldata.ICompleteSchemaMigrationRequest} message CompleteSchemaMigrationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyKeyspaceRoutingRulesRequest.encode = function encode(message, writer) { + CompleteSchemaMigrationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace_routing_rules != null && Object.hasOwnProperty.call(message, "keyspace_routing_rules")) - $root.vschema.KeyspaceRoutingRules.encode(message.keyspace_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 (let 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.uuid != null && Object.hasOwnProperty.call(message, "uuid")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); + if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) + $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ApplyKeyspaceRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesRequest.verify|verify} messages. + * Encodes the specified CompleteSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CompleteSchemaMigrationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @memberof vtctldata.CompleteSchemaMigrationRequest * @static - * @param {vtctldata.IApplyKeyspaceRoutingRulesRequest} message ApplyKeyspaceRoutingRulesRequest message or plain object to encode + * @param {vtctldata.ICompleteSchemaMigrationRequest} message CompleteSchemaMigrationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyKeyspaceRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CompleteSchemaMigrationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyKeyspaceRoutingRulesRequest message from the specified reader or buffer. + * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @memberof vtctldata.CompleteSchemaMigrationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyKeyspaceRoutingRulesRequest} ApplyKeyspaceRoutingRulesRequest + * @returns {vtctldata.CompleteSchemaMigrationRequest} CompleteSchemaMigrationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyKeyspaceRoutingRulesRequest.decode = function decode(reader, length) { + CompleteSchemaMigrationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyKeyspaceRoutingRulesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CompleteSchemaMigrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.decode(reader, reader.uint32()); + message.keyspace = reader.string(); break; } case 2: { - message.skip_rebuild = reader.bool(); + message.uuid = reader.string(); break; } case 3: { - if (!(message.rebuild_cells && message.rebuild_cells.length)) - message.rebuild_cells = []; - message.rebuild_cells.push(reader.string()); + message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; } default: @@ -132092,157 +141144,145 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ApplyKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @memberof vtctldata.CompleteSchemaMigrationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyKeyspaceRoutingRulesRequest} ApplyKeyspaceRoutingRulesRequest + * @returns {vtctldata.CompleteSchemaMigrationRequest} CompleteSchemaMigrationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyKeyspaceRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + CompleteSchemaMigrationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyKeyspaceRoutingRulesRequest message. + * Verifies a CompleteSchemaMigrationRequest message. * @function verify - * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @memberof vtctldata.CompleteSchemaMigrationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyKeyspaceRoutingRulesRequest.verify = function verify(message) { + CompleteSchemaMigrationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) { - let error = $root.vschema.KeyspaceRoutingRules.verify(message.keyspace_routing_rules); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.uuid != null && message.hasOwnProperty("uuid")) + if (!$util.isString(message.uuid)) + return "uuid: string expected"; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) { + let error = $root.vtrpc.CallerID.verify(message.caller_id); if (error) - return "keyspace_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 (let i = 0; i < message.rebuild_cells.length; ++i) - if (!$util.isString(message.rebuild_cells[i])) - return "rebuild_cells: string[] expected"; + return "caller_id." + error; } return null; }; /** - * Creates an ApplyKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CompleteSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @memberof vtctldata.CompleteSchemaMigrationRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyKeyspaceRoutingRulesRequest} ApplyKeyspaceRoutingRulesRequest + * @returns {vtctldata.CompleteSchemaMigrationRequest} CompleteSchemaMigrationRequest */ - ApplyKeyspaceRoutingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyKeyspaceRoutingRulesRequest) + CompleteSchemaMigrationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CompleteSchemaMigrationRequest) return object; - let message = new $root.vtctldata.ApplyKeyspaceRoutingRulesRequest(); - if (object.keyspace_routing_rules != null) { - if (typeof object.keyspace_routing_rules !== "object") - throw TypeError(".vtctldata.ApplyKeyspaceRoutingRulesRequest.keyspace_routing_rules: object expected"); - message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.fromObject(object.keyspace_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.ApplyKeyspaceRoutingRulesRequest.rebuild_cells: array expected"); - message.rebuild_cells = []; - for (let i = 0; i < object.rebuild_cells.length; ++i) - message.rebuild_cells[i] = String(object.rebuild_cells[i]); + let message = new $root.vtctldata.CompleteSchemaMigrationRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.uuid != null) + message.uuid = String(object.uuid); + if (object.caller_id != null) { + if (typeof object.caller_id !== "object") + throw TypeError(".vtctldata.CompleteSchemaMigrationRequest.caller_id: object expected"); + message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); } return message; }; /** - * Creates a plain object from an ApplyKeyspaceRoutingRulesRequest message. Also converts values to other types if specified. + * Creates a plain object from a CompleteSchemaMigrationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @memberof vtctldata.CompleteSchemaMigrationRequest * @static - * @param {vtctldata.ApplyKeyspaceRoutingRulesRequest} message ApplyKeyspaceRoutingRulesRequest + * @param {vtctldata.CompleteSchemaMigrationRequest} message CompleteSchemaMigrationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyKeyspaceRoutingRulesRequest.toObject = function toObject(message, options) { + CompleteSchemaMigrationRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.rebuild_cells = []; if (options.defaults) { - object.keyspace_routing_rules = null; - object.skip_rebuild = false; - } - if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) - object.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.toObject(message.keyspace_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 (let j = 0; j < message.rebuild_cells.length; ++j) - object.rebuild_cells[j] = message.rebuild_cells[j]; + object.keyspace = ""; + object.uuid = ""; + object.caller_id = null; } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.uuid != null && message.hasOwnProperty("uuid")) + object.uuid = message.uuid; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) + object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); return object; }; /** - * Converts this ApplyKeyspaceRoutingRulesRequest to JSON. + * Converts this CompleteSchemaMigrationRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @memberof vtctldata.CompleteSchemaMigrationRequest * @instance * @returns {Object.} JSON object */ - ApplyKeyspaceRoutingRulesRequest.prototype.toJSON = function toJSON() { + CompleteSchemaMigrationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApplyKeyspaceRoutingRulesRequest + * Gets the default type url for CompleteSchemaMigrationRequest * @function getTypeUrl - * @memberof vtctldata.ApplyKeyspaceRoutingRulesRequest + * @memberof vtctldata.CompleteSchemaMigrationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApplyKeyspaceRoutingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CompleteSchemaMigrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ApplyKeyspaceRoutingRulesRequest"; + return typeUrlPrefix + "/vtctldata.CompleteSchemaMigrationRequest"; }; - return ApplyKeyspaceRoutingRulesRequest; + return CompleteSchemaMigrationRequest; })(); - vtctldata.ApplyKeyspaceRoutingRulesResponse = (function() { + vtctldata.CompleteSchemaMigrationResponse = (function() { /** - * Properties of an ApplyKeyspaceRoutingRulesResponse. + * Properties of a CompleteSchemaMigrationResponse. * @memberof vtctldata - * @interface IApplyKeyspaceRoutingRulesResponse - * @property {vschema.IKeyspaceRoutingRules|null} [keyspace_routing_rules] ApplyKeyspaceRoutingRulesResponse keyspace_routing_rules + * @interface ICompleteSchemaMigrationResponse + * @property {Object.|null} [rows_affected_by_shard] CompleteSchemaMigrationResponse rows_affected_by_shard */ /** - * Constructs a new ApplyKeyspaceRoutingRulesResponse. + * Constructs a new CompleteSchemaMigrationResponse. * @memberof vtctldata - * @classdesc Represents an ApplyKeyspaceRoutingRulesResponse. - * @implements IApplyKeyspaceRoutingRulesResponse + * @classdesc Represents a CompleteSchemaMigrationResponse. + * @implements ICompleteSchemaMigrationResponse * @constructor - * @param {vtctldata.IApplyKeyspaceRoutingRulesResponse=} [properties] Properties to set + * @param {vtctldata.ICompleteSchemaMigrationResponse=} [properties] Properties to set */ - function ApplyKeyspaceRoutingRulesResponse(properties) { + function CompleteSchemaMigrationResponse(properties) { + this.rows_affected_by_shard = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -132250,75 +141290,95 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ApplyKeyspaceRoutingRulesResponse keyspace_routing_rules. - * @member {vschema.IKeyspaceRoutingRules|null|undefined} keyspace_routing_rules - * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * CompleteSchemaMigrationResponse rows_affected_by_shard. + * @member {Object.} rows_affected_by_shard + * @memberof vtctldata.CompleteSchemaMigrationResponse * @instance */ - ApplyKeyspaceRoutingRulesResponse.prototype.keyspace_routing_rules = null; + CompleteSchemaMigrationResponse.prototype.rows_affected_by_shard = $util.emptyObject; /** - * Creates a new ApplyKeyspaceRoutingRulesResponse instance using the specified properties. + * Creates a new CompleteSchemaMigrationResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @memberof vtctldata.CompleteSchemaMigrationResponse * @static - * @param {vtctldata.IApplyKeyspaceRoutingRulesResponse=} [properties] Properties to set - * @returns {vtctldata.ApplyKeyspaceRoutingRulesResponse} ApplyKeyspaceRoutingRulesResponse instance + * @param {vtctldata.ICompleteSchemaMigrationResponse=} [properties] Properties to set + * @returns {vtctldata.CompleteSchemaMigrationResponse} CompleteSchemaMigrationResponse instance */ - ApplyKeyspaceRoutingRulesResponse.create = function create(properties) { - return new ApplyKeyspaceRoutingRulesResponse(properties); + CompleteSchemaMigrationResponse.create = function create(properties) { + return new CompleteSchemaMigrationResponse(properties); }; /** - * Encodes the specified ApplyKeyspaceRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesResponse.verify|verify} messages. + * Encodes the specified CompleteSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CompleteSchemaMigrationResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @memberof vtctldata.CompleteSchemaMigrationResponse * @static - * @param {vtctldata.IApplyKeyspaceRoutingRulesResponse} message ApplyKeyspaceRoutingRulesResponse message or plain object to encode + * @param {vtctldata.ICompleteSchemaMigrationResponse} message CompleteSchemaMigrationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyKeyspaceRoutingRulesResponse.encode = function encode(message, writer) { + CompleteSchemaMigrationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace_routing_rules != null && Object.hasOwnProperty.call(message, "keyspace_routing_rules")) - $root.vschema.KeyspaceRoutingRules.encode(message.keyspace_routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) + for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified ApplyKeyspaceRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesResponse.verify|verify} messages. + * Encodes the specified CompleteSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CompleteSchemaMigrationResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @memberof vtctldata.CompleteSchemaMigrationResponse * @static - * @param {vtctldata.IApplyKeyspaceRoutingRulesResponse} message ApplyKeyspaceRoutingRulesResponse message or plain object to encode + * @param {vtctldata.ICompleteSchemaMigrationResponse} message CompleteSchemaMigrationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyKeyspaceRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CompleteSchemaMigrationResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyKeyspaceRoutingRulesResponse message from the specified reader or buffer. + * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @memberof vtctldata.CompleteSchemaMigrationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyKeyspaceRoutingRulesResponse} ApplyKeyspaceRoutingRulesResponse + * @returns {vtctldata.CompleteSchemaMigrationResponse} CompleteSchemaMigrationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyKeyspaceRoutingRulesResponse.decode = function decode(reader, length) { + CompleteSchemaMigrationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyKeyspaceRoutingRulesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CompleteSchemaMigrationResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.decode(reader, reader.uint32()); + if (message.rows_affected_by_shard === $util.emptyObject) + message.rows_affected_by_shard = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.uint64(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.rows_affected_by_shard[key] = value; break; } default: @@ -132330,130 +141390,155 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ApplyKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @memberof vtctldata.CompleteSchemaMigrationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyKeyspaceRoutingRulesResponse} ApplyKeyspaceRoutingRulesResponse + * @returns {vtctldata.CompleteSchemaMigrationResponse} CompleteSchemaMigrationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyKeyspaceRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { + CompleteSchemaMigrationResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyKeyspaceRoutingRulesResponse message. + * Verifies a CompleteSchemaMigrationResponse message. * @function verify - * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @memberof vtctldata.CompleteSchemaMigrationResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyKeyspaceRoutingRulesResponse.verify = function verify(message) { + CompleteSchemaMigrationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) { - let error = $root.vschema.KeyspaceRoutingRules.verify(message.keyspace_routing_rules); - if (error) - return "keyspace_routing_rules." + error; + if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { + if (!$util.isObject(message.rows_affected_by_shard)) + return "rows_affected_by_shard: object expected"; + let key = Object.keys(message.rows_affected_by_shard); + for (let i = 0; i < key.length; ++i) + if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) + return "rows_affected_by_shard: integer|Long{k:string} expected"; } return null; }; /** - * Creates an ApplyKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CompleteSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @memberof vtctldata.CompleteSchemaMigrationResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyKeyspaceRoutingRulesResponse} ApplyKeyspaceRoutingRulesResponse + * @returns {vtctldata.CompleteSchemaMigrationResponse} CompleteSchemaMigrationResponse */ - ApplyKeyspaceRoutingRulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyKeyspaceRoutingRulesResponse) + CompleteSchemaMigrationResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CompleteSchemaMigrationResponse) return object; - let message = new $root.vtctldata.ApplyKeyspaceRoutingRulesResponse(); - if (object.keyspace_routing_rules != null) { - if (typeof object.keyspace_routing_rules !== "object") - throw TypeError(".vtctldata.ApplyKeyspaceRoutingRulesResponse.keyspace_routing_rules: object expected"); - message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.fromObject(object.keyspace_routing_rules); + let message = new $root.vtctldata.CompleteSchemaMigrationResponse(); + if (object.rows_affected_by_shard) { + if (typeof object.rows_affected_by_shard !== "object") + throw TypeError(".vtctldata.CompleteSchemaMigrationResponse.rows_affected_by_shard: object expected"); + message.rows_affected_by_shard = {}; + for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) + if ($util.Long) + (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; + else if (typeof object.rows_affected_by_shard[keys[i]] === "string") + message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); + else if (typeof object.rows_affected_by_shard[keys[i]] === "number") + message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; + else if (typeof object.rows_affected_by_shard[keys[i]] === "object") + message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); } return message; }; /** - * Creates a plain object from an ApplyKeyspaceRoutingRulesResponse message. Also converts values to other types if specified. + * Creates a plain object from a CompleteSchemaMigrationResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @memberof vtctldata.CompleteSchemaMigrationResponse * @static - * @param {vtctldata.ApplyKeyspaceRoutingRulesResponse} message ApplyKeyspaceRoutingRulesResponse + * @param {vtctldata.CompleteSchemaMigrationResponse} message CompleteSchemaMigrationResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyKeyspaceRoutingRulesResponse.toObject = function toObject(message, options) { + CompleteSchemaMigrationResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.keyspace_routing_rules = null; - if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) - object.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.toObject(message.keyspace_routing_rules, options); + if (options.objects || options.defaults) + object.rows_affected_by_shard = {}; + let keys2; + if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { + object.rows_affected_by_shard = {}; + for (let j = 0; j < keys2.length; ++j) + if (typeof message.rows_affected_by_shard[keys2[j]] === "number") + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; + else + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; + } return object; }; /** - * Converts this ApplyKeyspaceRoutingRulesResponse to JSON. + * Converts this CompleteSchemaMigrationResponse to JSON. * @function toJSON - * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @memberof vtctldata.CompleteSchemaMigrationResponse * @instance * @returns {Object.} JSON object */ - ApplyKeyspaceRoutingRulesResponse.prototype.toJSON = function toJSON() { + CompleteSchemaMigrationResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApplyKeyspaceRoutingRulesResponse + * Gets the default type url for CompleteSchemaMigrationResponse * @function getTypeUrl - * @memberof vtctldata.ApplyKeyspaceRoutingRulesResponse + * @memberof vtctldata.CompleteSchemaMigrationResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApplyKeyspaceRoutingRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CompleteSchemaMigrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ApplyKeyspaceRoutingRulesResponse"; + return typeUrlPrefix + "/vtctldata.CompleteSchemaMigrationResponse"; }; - return ApplyKeyspaceRoutingRulesResponse; + return CompleteSchemaMigrationResponse; })(); - vtctldata.ApplyRoutingRulesRequest = (function() { + vtctldata.CopySchemaShardRequest = (function() { /** - * Properties of an ApplyRoutingRulesRequest. + * Properties of a CopySchemaShardRequest. * @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 ICopySchemaShardRequest + * @property {topodata.ITabletAlias|null} [source_tablet_alias] CopySchemaShardRequest source_tablet_alias + * @property {Array.|null} [tables] CopySchemaShardRequest tables + * @property {Array.|null} [exclude_tables] CopySchemaShardRequest exclude_tables + * @property {boolean|null} [include_views] CopySchemaShardRequest include_views + * @property {boolean|null} [skip_verify] CopySchemaShardRequest skip_verify + * @property {vttime.IDuration|null} [wait_replicas_timeout] CopySchemaShardRequest wait_replicas_timeout + * @property {string|null} [destination_keyspace] CopySchemaShardRequest destination_keyspace + * @property {string|null} [destination_shard] CopySchemaShardRequest destination_shard */ /** - * Constructs a new ApplyRoutingRulesRequest. + * Constructs a new CopySchemaShardRequest. * @memberof vtctldata - * @classdesc Represents an ApplyRoutingRulesRequest. - * @implements IApplyRoutingRulesRequest + * @classdesc Represents a CopySchemaShardRequest. + * @implements ICopySchemaShardRequest * @constructor - * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set + * @param {vtctldata.ICopySchemaShardRequest=} [properties] Properties to set */ - function ApplyRoutingRulesRequest(properties) { - this.rebuild_cells = []; + function CopySchemaShardRequest(properties) { + this.tables = []; + this.exclude_tables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -132461,106 +141546,179 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ApplyRoutingRulesRequest routing_rules. - * @member {vschema.IRoutingRules|null|undefined} routing_rules - * @memberof vtctldata.ApplyRoutingRulesRequest + * CopySchemaShardRequest source_tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} source_tablet_alias + * @memberof vtctldata.CopySchemaShardRequest * @instance */ - ApplyRoutingRulesRequest.prototype.routing_rules = null; + CopySchemaShardRequest.prototype.source_tablet_alias = null; /** - * ApplyRoutingRulesRequest skip_rebuild. - * @member {boolean} skip_rebuild - * @memberof vtctldata.ApplyRoutingRulesRequest + * CopySchemaShardRequest tables. + * @member {Array.} tables + * @memberof vtctldata.CopySchemaShardRequest * @instance */ - ApplyRoutingRulesRequest.prototype.skip_rebuild = false; + CopySchemaShardRequest.prototype.tables = $util.emptyArray; /** - * ApplyRoutingRulesRequest rebuild_cells. - * @member {Array.} rebuild_cells - * @memberof vtctldata.ApplyRoutingRulesRequest + * CopySchemaShardRequest exclude_tables. + * @member {Array.} exclude_tables + * @memberof vtctldata.CopySchemaShardRequest * @instance */ - ApplyRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; + CopySchemaShardRequest.prototype.exclude_tables = $util.emptyArray; /** - * Creates a new ApplyRoutingRulesRequest instance using the specified properties. + * CopySchemaShardRequest include_views. + * @member {boolean} include_views + * @memberof vtctldata.CopySchemaShardRequest + * @instance + */ + CopySchemaShardRequest.prototype.include_views = false; + + /** + * CopySchemaShardRequest skip_verify. + * @member {boolean} skip_verify + * @memberof vtctldata.CopySchemaShardRequest + * @instance + */ + CopySchemaShardRequest.prototype.skip_verify = false; + + /** + * CopySchemaShardRequest wait_replicas_timeout. + * @member {vttime.IDuration|null|undefined} wait_replicas_timeout + * @memberof vtctldata.CopySchemaShardRequest + * @instance + */ + CopySchemaShardRequest.prototype.wait_replicas_timeout = null; + + /** + * CopySchemaShardRequest destination_keyspace. + * @member {string} destination_keyspace + * @memberof vtctldata.CopySchemaShardRequest + * @instance + */ + CopySchemaShardRequest.prototype.destination_keyspace = ""; + + /** + * CopySchemaShardRequest destination_shard. + * @member {string} destination_shard + * @memberof vtctldata.CopySchemaShardRequest + * @instance + */ + CopySchemaShardRequest.prototype.destination_shard = ""; + + /** + * Creates a new CopySchemaShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.CopySchemaShardRequest * @static - * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest instance + * @param {vtctldata.ICopySchemaShardRequest=} [properties] Properties to set + * @returns {vtctldata.CopySchemaShardRequest} CopySchemaShardRequest instance */ - ApplyRoutingRulesRequest.create = function create(properties) { - return new ApplyRoutingRulesRequest(properties); + CopySchemaShardRequest.create = function create(properties) { + return new CopySchemaShardRequest(properties); }; /** - * Encodes the specified ApplyRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. + * Encodes the specified CopySchemaShardRequest message. Does not implicitly {@link vtctldata.CopySchemaShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.CopySchemaShardRequest * @static - * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode + * @param {vtctldata.ICopySchemaShardRequest} message CopySchemaShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesRequest.encode = function encode(message, writer) { + CopySchemaShardRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.routing_rules != null && Object.hasOwnProperty.call(message, "routing_rules")) - $root.vschema.RoutingRules.encode(message.routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); - if (message.rebuild_cells != null && message.rebuild_cells.length) - for (let i = 0; i < message.rebuild_cells.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.rebuild_cells[i]); + if (message.source_tablet_alias != null && Object.hasOwnProperty.call(message, "source_tablet_alias")) + $root.topodata.TabletAlias.encode(message.source_tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tables != null && message.tables.length) + for (let i = 0; i < message.tables.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tables[i]); + if (message.exclude_tables != null && message.exclude_tables.length) + for (let i = 0; i < message.exclude_tables.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_tables[i]); + if (message.include_views != null && Object.hasOwnProperty.call(message, "include_views")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_views); + if (message.skip_verify != null && Object.hasOwnProperty.call(message, "skip_verify")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.skip_verify); + if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) + $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.destination_keyspace != null && Object.hasOwnProperty.call(message, "destination_keyspace")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.destination_keyspace); + if (message.destination_shard != null && Object.hasOwnProperty.call(message, "destination_shard")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.destination_shard); return writer; }; /** - * Encodes the specified ApplyRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. + * Encodes the specified CopySchemaShardRequest message, length delimited. Does not implicitly {@link vtctldata.CopySchemaShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.CopySchemaShardRequest * @static - * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode + * @param {vtctldata.ICopySchemaShardRequest} message CopySchemaShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CopySchemaShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer. + * Decodes a CopySchemaShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.CopySchemaShardRequest * @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.CopySchemaShardRequest} CopySchemaShardRequest * @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) { + CopySchemaShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CopySchemaShardRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); + message.source_tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } case 2: { - message.skip_rebuild = reader.bool(); + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); break; } case 3: { - if (!(message.rebuild_cells && message.rebuild_cells.length)) - message.rebuild_cells = []; - message.rebuild_cells.push(reader.string()); + if (!(message.exclude_tables && message.exclude_tables.length)) + message.exclude_tables = []; + message.exclude_tables.push(reader.string()); + break; + } + case 4: { + message.include_views = reader.bool(); + break; + } + case 5: { + message.skip_verify = reader.bool(); + break; + } + case 6: { + message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + } + case 7: { + message.destination_keyspace = reader.string(); + break; + } + case 8: { + message.destination_shard = reader.string(); break; } default: @@ -132572,156 +141730,214 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes a CopySchemaShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.CopySchemaShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest + * @returns {vtctldata.CopySchemaShardRequest} CopySchemaShardRequest * @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) { + CopySchemaShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyRoutingRulesRequest message. + * Verifies a CopySchemaShardRequest message. * @function verify - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.CopySchemaShardRequest * @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) { + CopySchemaShardRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { - let error = $root.vschema.RoutingRules.verify(message.routing_rules); + if (message.source_tablet_alias != null && message.hasOwnProperty("source_tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.source_tablet_alias); if (error) - return "routing_rules." + error; + return "source_tablet_alias." + 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 (let i = 0; i < message.rebuild_cells.length; ++i) - if (!$util.isString(message.rebuild_cells[i])) - return "rebuild_cells: string[] expected"; + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (let i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; } + if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { + if (!Array.isArray(message.exclude_tables)) + return "exclude_tables: array expected"; + for (let i = 0; i < message.exclude_tables.length; ++i) + if (!$util.isString(message.exclude_tables[i])) + return "exclude_tables: string[] expected"; + } + if (message.include_views != null && message.hasOwnProperty("include_views")) + if (typeof message.include_views !== "boolean") + return "include_views: boolean expected"; + if (message.skip_verify != null && message.hasOwnProperty("skip_verify")) + if (typeof message.skip_verify !== "boolean") + return "skip_verify: boolean expected"; + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { + let error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (error) + return "wait_replicas_timeout." + error; + } + if (message.destination_keyspace != null && message.hasOwnProperty("destination_keyspace")) + if (!$util.isString(message.destination_keyspace)) + return "destination_keyspace: string expected"; + if (message.destination_shard != null && message.hasOwnProperty("destination_shard")) + if (!$util.isString(message.destination_shard)) + return "destination_shard: string expected"; return null; }; /** - * Creates an ApplyRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CopySchemaShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.CopySchemaShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest + * @returns {vtctldata.CopySchemaShardRequest} CopySchemaShardRequest */ - ApplyRoutingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyRoutingRulesRequest) + CopySchemaShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CopySchemaShardRequest) return object; - let 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); + let message = new $root.vtctldata.CopySchemaShardRequest(); + if (object.source_tablet_alias != null) { + if (typeof object.source_tablet_alias !== "object") + throw TypeError(".vtctldata.CopySchemaShardRequest.source_tablet_alias: object expected"); + message.source_tablet_alias = $root.topodata.TabletAlias.fromObject(object.source_tablet_alias); } - 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 (let i = 0; i < object.rebuild_cells.length; ++i) - message.rebuild_cells[i] = String(object.rebuild_cells[i]); + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".vtctldata.CopySchemaShardRequest.tables: array expected"); + message.tables = []; + for (let i = 0; i < object.tables.length; ++i) + message.tables[i] = String(object.tables[i]); + } + if (object.exclude_tables) { + if (!Array.isArray(object.exclude_tables)) + throw TypeError(".vtctldata.CopySchemaShardRequest.exclude_tables: array expected"); + message.exclude_tables = []; + for (let i = 0; i < object.exclude_tables.length; ++i) + message.exclude_tables[i] = String(object.exclude_tables[i]); + } + if (object.include_views != null) + message.include_views = Boolean(object.include_views); + if (object.skip_verify != null) + message.skip_verify = Boolean(object.skip_verify); + if (object.wait_replicas_timeout != null) { + if (typeof object.wait_replicas_timeout !== "object") + throw TypeError(".vtctldata.CopySchemaShardRequest.wait_replicas_timeout: object expected"); + message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); } + if (object.destination_keyspace != null) + message.destination_keyspace = String(object.destination_keyspace); + if (object.destination_shard != null) + message.destination_shard = String(object.destination_shard); return message; }; /** - * Creates a plain object from an ApplyRoutingRulesRequest message. Also converts values to other types if specified. + * Creates a plain object from a CopySchemaShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.CopySchemaShardRequest * @static - * @param {vtctldata.ApplyRoutingRulesRequest} message ApplyRoutingRulesRequest + * @param {vtctldata.CopySchemaShardRequest} message CopySchemaShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyRoutingRulesRequest.toObject = function toObject(message, options) { + CopySchemaShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.rebuild_cells = []; + if (options.arrays || options.defaults) { + object.tables = []; + object.exclude_tables = []; + } if (options.defaults) { - object.routing_rules = null; - object.skip_rebuild = false; + object.source_tablet_alias = null; + object.include_views = false; + object.skip_verify = false; + object.wait_replicas_timeout = null; + object.destination_keyspace = ""; + object.destination_shard = ""; } - 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 (let j = 0; j < message.rebuild_cells.length; ++j) - object.rebuild_cells[j] = message.rebuild_cells[j]; + if (message.source_tablet_alias != null && message.hasOwnProperty("source_tablet_alias")) + object.source_tablet_alias = $root.topodata.TabletAlias.toObject(message.source_tablet_alias, options); + if (message.tables && message.tables.length) { + object.tables = []; + for (let j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; + } + if (message.exclude_tables && message.exclude_tables.length) { + object.exclude_tables = []; + for (let j = 0; j < message.exclude_tables.length; ++j) + object.exclude_tables[j] = message.exclude_tables[j]; } + if (message.include_views != null && message.hasOwnProperty("include_views")) + object.include_views = message.include_views; + if (message.skip_verify != null && message.hasOwnProperty("skip_verify")) + object.skip_verify = message.skip_verify; + 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.destination_keyspace != null && message.hasOwnProperty("destination_keyspace")) + object.destination_keyspace = message.destination_keyspace; + if (message.destination_shard != null && message.hasOwnProperty("destination_shard")) + object.destination_shard = message.destination_shard; return object; }; /** - * Converts this ApplyRoutingRulesRequest to JSON. + * Converts this CopySchemaShardRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.CopySchemaShardRequest * @instance * @returns {Object.} JSON object */ - ApplyRoutingRulesRequest.prototype.toJSON = function toJSON() { + CopySchemaShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApplyRoutingRulesRequest + * Gets the default type url for CopySchemaShardRequest * @function getTypeUrl - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.CopySchemaShardRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApplyRoutingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CopySchemaShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ApplyRoutingRulesRequest"; + return typeUrlPrefix + "/vtctldata.CopySchemaShardRequest"; }; - return ApplyRoutingRulesRequest; + return CopySchemaShardRequest; })(); - vtctldata.ApplyRoutingRulesResponse = (function() { + vtctldata.CopySchemaShardResponse = (function() { /** - * Properties of an ApplyRoutingRulesResponse. + * Properties of a CopySchemaShardResponse. * @memberof vtctldata - * @interface IApplyRoutingRulesResponse + * @interface ICopySchemaShardResponse */ /** - * Constructs a new ApplyRoutingRulesResponse. + * Constructs a new CopySchemaShardResponse. * @memberof vtctldata - * @classdesc Represents an ApplyRoutingRulesResponse. - * @implements IApplyRoutingRulesResponse + * @classdesc Represents a CopySchemaShardResponse. + * @implements ICopySchemaShardResponse * @constructor - * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set + * @param {vtctldata.ICopySchemaShardResponse=} [properties] Properties to set */ - function ApplyRoutingRulesResponse(properties) { + function CopySchemaShardResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -132729,60 +141945,60 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new ApplyRoutingRulesResponse instance using the specified properties. + * Creates a new CopySchemaShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.CopySchemaShardResponse * @static - * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse instance + * @param {vtctldata.ICopySchemaShardResponse=} [properties] Properties to set + * @returns {vtctldata.CopySchemaShardResponse} CopySchemaShardResponse instance */ - ApplyRoutingRulesResponse.create = function create(properties) { - return new ApplyRoutingRulesResponse(properties); + CopySchemaShardResponse.create = function create(properties) { + return new CopySchemaShardResponse(properties); }; /** - * Encodes the specified ApplyRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. + * Encodes the specified CopySchemaShardResponse message. Does not implicitly {@link vtctldata.CopySchemaShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.CopySchemaShardResponse * @static - * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode + * @param {vtctldata.ICopySchemaShardResponse} message CopySchemaShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesResponse.encode = function encode(message, writer) { + CopySchemaShardResponse.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 CopySchemaShardResponse message, length delimited. Does not implicitly {@link vtctldata.CopySchemaShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.CopySchemaShardResponse * @static - * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode + * @param {vtctldata.ICopySchemaShardResponse} message CopySchemaShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CopySchemaShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer. + * Decodes a CopySchemaShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.CopySchemaShardResponse * @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.CopySchemaShardResponse} CopySchemaShardResponse * @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) { + CopySchemaShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CopySchemaShardResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -132795,112 +142011,116 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes a CopySchemaShardResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.CopySchemaShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse + * @returns {vtctldata.CopySchemaShardResponse} CopySchemaShardResponse * @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) { + CopySchemaShardResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyRoutingRulesResponse message. + * Verifies a CopySchemaShardResponse message. * @function verify - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.CopySchemaShardResponse * @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) { + CopySchemaShardResponse.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 a CopySchemaShardResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.CopySchemaShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse + * @returns {vtctldata.CopySchemaShardResponse} CopySchemaShardResponse */ - ApplyRoutingRulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyRoutingRulesResponse) + CopySchemaShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CopySchemaShardResponse) return object; - return new $root.vtctldata.ApplyRoutingRulesResponse(); + return new $root.vtctldata.CopySchemaShardResponse(); }; /** - * Creates a plain object from an ApplyRoutingRulesResponse message. Also converts values to other types if specified. + * Creates a plain object from a CopySchemaShardResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.CopySchemaShardResponse * @static - * @param {vtctldata.ApplyRoutingRulesResponse} message ApplyRoutingRulesResponse + * @param {vtctldata.CopySchemaShardResponse} message CopySchemaShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyRoutingRulesResponse.toObject = function toObject() { + CopySchemaShardResponse.toObject = function toObject() { return {}; }; /** - * Converts this ApplyRoutingRulesResponse to JSON. + * Converts this CopySchemaShardResponse to JSON. * @function toJSON - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.CopySchemaShardResponse * @instance * @returns {Object.} JSON object */ - ApplyRoutingRulesResponse.prototype.toJSON = function toJSON() { + CopySchemaShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApplyRoutingRulesResponse + * Gets the default type url for CopySchemaShardResponse * @function getTypeUrl - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.CopySchemaShardResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApplyRoutingRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CopySchemaShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ApplyRoutingRulesResponse"; + return typeUrlPrefix + "/vtctldata.CopySchemaShardResponse"; }; - return ApplyRoutingRulesResponse; + return CopySchemaShardResponse; })(); - vtctldata.ApplyShardRoutingRulesRequest = (function() { + vtctldata.CreateKeyspaceRequest = (function() { /** - * Properties of an ApplyShardRoutingRulesRequest. + * Properties of a CreateKeyspaceRequest. * @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 ICreateKeyspaceRequest + * @property {string|null} [name] CreateKeyspaceRequest name + * @property {boolean|null} [force] CreateKeyspaceRequest force + * @property {boolean|null} [allow_empty_v_schema] CreateKeyspaceRequest allow_empty_v_schema + * @property {topodata.KeyspaceType|null} [type] CreateKeyspaceRequest type + * @property {string|null} [base_keyspace] CreateKeyspaceRequest base_keyspace + * @property {vttime.ITime|null} [snapshot_time] CreateKeyspaceRequest snapshot_time + * @property {string|null} [durability_policy] CreateKeyspaceRequest durability_policy + * @property {string|null} [sidecar_db_name] CreateKeyspaceRequest sidecar_db_name */ /** - * Constructs a new ApplyShardRoutingRulesRequest. + * Constructs a new CreateKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents an ApplyShardRoutingRulesRequest. - * @implements IApplyShardRoutingRulesRequest + * @classdesc Represents a CreateKeyspaceRequest. + * @implements ICreateKeyspaceRequest * @constructor - * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set + * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set */ - function ApplyShardRoutingRulesRequest(properties) { - this.rebuild_cells = []; + function CreateKeyspaceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -132908,331 +142128,175 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ApplyShardRoutingRulesRequest shard_routing_rules. - * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * CreateKeyspaceRequest name. + * @member {string} name + * @memberof vtctldata.CreateKeyspaceRequest * @instance */ - ApplyShardRoutingRulesRequest.prototype.shard_routing_rules = null; + CreateKeyspaceRequest.prototype.name = ""; /** - * ApplyShardRoutingRulesRequest skip_rebuild. - * @member {boolean} skip_rebuild - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * CreateKeyspaceRequest force. + * @member {boolean} force + * @memberof vtctldata.CreateKeyspaceRequest * @instance */ - ApplyShardRoutingRulesRequest.prototype.skip_rebuild = false; + CreateKeyspaceRequest.prototype.force = false; /** - * ApplyShardRoutingRulesRequest rebuild_cells. - * @member {Array.} rebuild_cells - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * CreateKeyspaceRequest allow_empty_v_schema. + * @member {boolean} allow_empty_v_schema + * @memberof vtctldata.CreateKeyspaceRequest * @instance */ - ApplyShardRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; - - /** - * Creates a new ApplyShardRoutingRulesRequest instance using the specified properties. - * @function create - * @memberof vtctldata.ApplyShardRoutingRulesRequest - * @static - * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set - * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest instance - */ - ApplyShardRoutingRulesRequest.create = function create(properties) { - return new ApplyShardRoutingRulesRequest(properties); - }; - - /** - * Encodes the specified ApplyShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. - * @function encode - * @memberof vtctldata.ApplyShardRoutingRulesRequest - * @static - * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApplyShardRoutingRulesRequest.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 (let 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 ApplyShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesRequest - * @static - * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApplyShardRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer. - * @function decode - * @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.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest - * @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) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); - break; - } - case 2: { - message.skip_rebuild = reader.bool(); - break; - } - case 3: { - if (!(message.rebuild_cells && message.rebuild_cells.length)) - message.rebuild_cells = []; - message.rebuild_cells.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - ApplyShardRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApplyShardRoutingRulesRequest message. - * @function verify - * @memberof vtctldata.ApplyShardRoutingRulesRequest - * @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) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { - let error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); - if (error) - return "shard_routing_rules." + error; - } - if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) - if (typeof message.skip_rebuild !== "boolean") - return "skip_rebuild: boolean expected"; - if (message.rebuild_cells != null && message.hasOwnProperty("rebuild_cells")) { - if (!Array.isArray(message.rebuild_cells)) - return "rebuild_cells: array expected"; - for (let i = 0; i < message.rebuild_cells.length; ++i) - if (!$util.isString(message.rebuild_cells[i])) - return "rebuild_cells: string[] expected"; - } - return null; - }; - - /** - * Creates an ApplyShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.ApplyShardRoutingRulesRequest - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest - */ - ApplyShardRoutingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyShardRoutingRulesRequest) - return object; - let message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); - if (object.shard_routing_rules != null) { - if (typeof object.shard_routing_rules !== "object") - throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.shard_routing_rules: object expected"); - message.shard_routing_rules = $root.vschema.ShardRoutingRules.fromObject(object.shard_routing_rules); - } - if (object.skip_rebuild != null) - message.skip_rebuild = Boolean(object.skip_rebuild); - if (object.rebuild_cells) { - if (!Array.isArray(object.rebuild_cells)) - throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.rebuild_cells: array expected"); - message.rebuild_cells = []; - for (let i = 0; i < object.rebuild_cells.length; ++i) - message.rebuild_cells[i] = String(object.rebuild_cells[i]); - } - return message; - }; + CreateKeyspaceRequest.prototype.allow_empty_v_schema = false; /** - * Creates a plain object from an ApplyShardRoutingRulesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.ApplyShardRoutingRulesRequest - * @static - * @param {vtctldata.ApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * CreateKeyspaceRequest type. + * @member {topodata.KeyspaceType} type + * @memberof vtctldata.CreateKeyspaceRequest + * @instance */ - ApplyShardRoutingRulesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.rebuild_cells = []; - if (options.defaults) { - object.shard_routing_rules = null; - object.skip_rebuild = false; - } - if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) - object.shard_routing_rules = $root.vschema.ShardRoutingRules.toObject(message.shard_routing_rules, options); - if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) - object.skip_rebuild = message.skip_rebuild; - if (message.rebuild_cells && message.rebuild_cells.length) { - object.rebuild_cells = []; - for (let j = 0; j < message.rebuild_cells.length; ++j) - object.rebuild_cells[j] = message.rebuild_cells[j]; - } - return object; - }; + CreateKeyspaceRequest.prototype.type = 0; /** - * Converts this ApplyShardRoutingRulesRequest to JSON. - * @function toJSON - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * CreateKeyspaceRequest base_keyspace. + * @member {string} base_keyspace + * @memberof vtctldata.CreateKeyspaceRequest * @instance - * @returns {Object.} JSON object */ - ApplyShardRoutingRulesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + CreateKeyspaceRequest.prototype.base_keyspace = ""; /** - * Gets the default type url for ApplyShardRoutingRulesRequest - * @function getTypeUrl - * @memberof vtctldata.ApplyShardRoutingRulesRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * CreateKeyspaceRequest snapshot_time. + * @member {vttime.ITime|null|undefined} snapshot_time + * @memberof vtctldata.CreateKeyspaceRequest + * @instance */ - ApplyShardRoutingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.ApplyShardRoutingRulesRequest"; - }; - - return ApplyShardRoutingRulesRequest; - })(); - - vtctldata.ApplyShardRoutingRulesResponse = (function() { + CreateKeyspaceRequest.prototype.snapshot_time = null; /** - * Properties of an ApplyShardRoutingRulesResponse. - * @memberof vtctldata - * @interface IApplyShardRoutingRulesResponse + * CreateKeyspaceRequest durability_policy. + * @member {string} durability_policy + * @memberof vtctldata.CreateKeyspaceRequest + * @instance */ + CreateKeyspaceRequest.prototype.durability_policy = ""; /** - * Constructs a new ApplyShardRoutingRulesResponse. - * @memberof vtctldata - * @classdesc Represents an ApplyShardRoutingRulesResponse. - * @implements IApplyShardRoutingRulesResponse - * @constructor - * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set + * CreateKeyspaceRequest sidecar_db_name. + * @member {string} sidecar_db_name + * @memberof vtctldata.CreateKeyspaceRequest + * @instance */ - function ApplyShardRoutingRulesResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + CreateKeyspaceRequest.prototype.sidecar_db_name = ""; /** - * Creates a new ApplyShardRoutingRulesResponse instance using the specified properties. + * Creates a new CreateKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.CreateKeyspaceRequest * @static - * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse instance + * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest instance */ - ApplyShardRoutingRulesResponse.create = function create(properties) { - return new ApplyShardRoutingRulesResponse(properties); + CreateKeyspaceRequest.create = function create(properties) { + return new CreateKeyspaceRequest(properties); }; /** - * Encodes the specified ApplyShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. + * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.CreateKeyspaceRequest * @static - * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode + * @param {vtctldata.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyShardRoutingRulesResponse.encode = function encode(message, writer) { + CreateKeyspaceRequest.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.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.allow_empty_v_schema != null && Object.hasOwnProperty.call(message, "allow_empty_v_schema")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allow_empty_v_schema); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.type); + if (message.base_keyspace != null && Object.hasOwnProperty.call(message, "base_keyspace")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.base_keyspace); + if (message.snapshot_time != null && Object.hasOwnProperty.call(message, "snapshot_time")) + $root.vttime.Time.encode(message.snapshot_time, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.durability_policy != null && Object.hasOwnProperty.call(message, "durability_policy")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.durability_policy); + if (message.sidecar_db_name != null && Object.hasOwnProperty.call(message, "sidecar_db_name")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.sidecar_db_name); return writer; }; /** - * Encodes the specified ApplyShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. + * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.CreateKeyspaceRequest * @static - * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode + * @param {vtctldata.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyShardRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer. + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.CreateKeyspaceRequest * @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.CreateKeyspaceRequest} CreateKeyspaceRequest * @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) { + CreateKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateKeyspaceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.force = reader.bool(); + break; + } + case 3: { + message.allow_empty_v_schema = reader.bool(); + break; + } + case 7: { + message.type = reader.int32(); + break; + } + case 8: { + message.base_keyspace = reader.string(); + break; + } + case 9: { + message.snapshot_time = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 10: { + message.durability_policy = reader.string(); + break; + } + case 11: { + message.sidecar_db_name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -133242,118 +142306,203 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.CreateKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse + * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest * @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) { + CreateKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyShardRoutingRulesResponse message. + * Verifies a CreateKeyspaceRequest message. * @function verify - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.CreateKeyspaceRequest * @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) { + CreateKeyspaceRequest.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.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.allow_empty_v_schema != null && message.hasOwnProperty("allow_empty_v_schema")) + if (typeof message.allow_empty_v_schema !== "boolean") + return "allow_empty_v_schema: boolean expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + break; + } + if (message.base_keyspace != null && message.hasOwnProperty("base_keyspace")) + if (!$util.isString(message.base_keyspace)) + return "base_keyspace: string expected"; + if (message.snapshot_time != null && message.hasOwnProperty("snapshot_time")) { + let error = $root.vttime.Time.verify(message.snapshot_time); + if (error) + return "snapshot_time." + error; + } + if (message.durability_policy != null && message.hasOwnProperty("durability_policy")) + if (!$util.isString(message.durability_policy)) + return "durability_policy: string expected"; + if (message.sidecar_db_name != null && message.hasOwnProperty("sidecar_db_name")) + if (!$util.isString(message.sidecar_db_name)) + return "sidecar_db_name: string expected"; return null; }; /** - * Creates an ApplyShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.CreateKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse + * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest */ - ApplyShardRoutingRulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyShardRoutingRulesResponse) + CreateKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateKeyspaceRequest) return object; - return new $root.vtctldata.ApplyShardRoutingRulesResponse(); + let message = new $root.vtctldata.CreateKeyspaceRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); + if (object.allow_empty_v_schema != null) + message.allow_empty_v_schema = Boolean(object.allow_empty_v_schema); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "NORMAL": + case 0: + message.type = 0; + break; + case "SNAPSHOT": + case 1: + message.type = 1; + break; + } + if (object.base_keyspace != null) + message.base_keyspace = String(object.base_keyspace); + if (object.snapshot_time != null) { + if (typeof object.snapshot_time !== "object") + throw TypeError(".vtctldata.CreateKeyspaceRequest.snapshot_time: object expected"); + message.snapshot_time = $root.vttime.Time.fromObject(object.snapshot_time); + } + if (object.durability_policy != null) + message.durability_policy = String(object.durability_policy); + if (object.sidecar_db_name != null) + message.sidecar_db_name = String(object.sidecar_db_name); + return message; }; /** - * Creates a plain object from an ApplyShardRoutingRulesResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.CreateKeyspaceRequest * @static - * @param {vtctldata.ApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse + * @param {vtctldata.CreateKeyspaceRequest} message CreateKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyShardRoutingRulesResponse.toObject = function toObject() { - return {}; + CreateKeyspaceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.name = ""; + object.force = false; + object.allow_empty_v_schema = false; + object.type = options.enums === String ? "NORMAL" : 0; + object.base_keyspace = ""; + object.snapshot_time = null; + object.durability_policy = ""; + object.sidecar_db_name = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.allow_empty_v_schema != null && message.hasOwnProperty("allow_empty_v_schema")) + object.allow_empty_v_schema = message.allow_empty_v_schema; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.topodata.KeyspaceType[message.type] === undefined ? message.type : $root.topodata.KeyspaceType[message.type] : message.type; + if (message.base_keyspace != null && message.hasOwnProperty("base_keyspace")) + object.base_keyspace = message.base_keyspace; + if (message.snapshot_time != null && message.hasOwnProperty("snapshot_time")) + object.snapshot_time = $root.vttime.Time.toObject(message.snapshot_time, options); + if (message.durability_policy != null && message.hasOwnProperty("durability_policy")) + object.durability_policy = message.durability_policy; + if (message.sidecar_db_name != null && message.hasOwnProperty("sidecar_db_name")) + object.sidecar_db_name = message.sidecar_db_name; + return object; }; /** - * Converts this ApplyShardRoutingRulesResponse to JSON. + * Converts this CreateKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.CreateKeyspaceRequest * @instance * @returns {Object.} JSON object */ - ApplyShardRoutingRulesResponse.prototype.toJSON = function toJSON() { + CreateKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApplyShardRoutingRulesResponse + * Gets the default type url for CreateKeyspaceRequest * @function getTypeUrl - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.CreateKeyspaceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApplyShardRoutingRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ApplyShardRoutingRulesResponse"; + return typeUrlPrefix + "/vtctldata.CreateKeyspaceRequest"; }; - return ApplyShardRoutingRulesResponse; + return CreateKeyspaceRequest; })(); - vtctldata.ApplySchemaRequest = (function() { + vtctldata.CreateKeyspaceResponse = (function() { /** - * Properties of an ApplySchemaRequest. + * Properties of a CreateKeyspaceResponse. * @memberof vtctldata - * @interface IApplySchemaRequest - * @property {string|null} [keyspace] ApplySchemaRequest keyspace - * @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 {vtrpc.ICallerID|null} [caller_id] ApplySchemaRequest caller_id - * @property {number|Long|null} [batch_size] ApplySchemaRequest batch_size + * @interface ICreateKeyspaceResponse + * @property {vtctldata.IKeyspace|null} [keyspace] CreateKeyspaceResponse keyspace */ /** - * Constructs a new ApplySchemaRequest. + * Constructs a new CreateKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents an ApplySchemaRequest. - * @implements IApplySchemaRequest + * @classdesc Represents a CreateKeyspaceResponse. + * @implements ICreateKeyspaceResponse * @constructor - * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set + * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set */ - function ApplySchemaRequest(properties) { - this.sql = []; - this.uuid_list = []; + function CreateKeyspaceResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -133361,179 +142510,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ApplySchemaRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.keyspace = ""; - - /** - * ApplySchemaRequest sql. - * @member {Array.} sql - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.sql = $util.emptyArray; - - /** - * ApplySchemaRequest ddl_strategy. - * @member {string} ddl_strategy - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.ddl_strategy = ""; - - /** - * ApplySchemaRequest uuid_list. - * @member {Array.} uuid_list - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.uuid_list = $util.emptyArray; - - /** - * ApplySchemaRequest migration_context. - * @member {string} migration_context - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.migration_context = ""; - - /** - * ApplySchemaRequest wait_replicas_timeout. - * @member {vttime.IDuration|null|undefined} wait_replicas_timeout - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.wait_replicas_timeout = null; - - /** - * ApplySchemaRequest caller_id. - * @member {vtrpc.ICallerID|null|undefined} caller_id - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.caller_id = null; - - /** - * ApplySchemaRequest batch_size. - * @member {number|Long} batch_size - * @memberof vtctldata.ApplySchemaRequest + * CreateKeyspaceResponse keyspace. + * @member {vtctldata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.CreateKeyspaceResponse * @instance */ - ApplySchemaRequest.prototype.batch_size = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CreateKeyspaceResponse.prototype.keyspace = null; /** - * Creates a new ApplySchemaRequest instance using the specified properties. + * Creates a new CreateKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.CreateKeyspaceResponse * @static - * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest instance + * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse instance */ - ApplySchemaRequest.create = function create(properties) { - return new ApplySchemaRequest(properties); + CreateKeyspaceResponse.create = function create(properties) { + return new CreateKeyspaceResponse(properties); }; /** - * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. + * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.CreateKeyspaceResponse * @static - * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode + * @param {vtctldata.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaRequest.encode = function encode(message, writer) { + CreateKeyspaceResponse.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.sql != null && message.sql.length) - for (let 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 (let 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.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.batch_size != null && Object.hasOwnProperty.call(message, "batch_size")) - writer.uint32(/* id 10, wireType 0 =*/80).int64(message.batch_size); + $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. + * Encodes the specified CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.CreateKeyspaceResponse * @static - * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode + * @param {vtctldata.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer. + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.CreateKeyspaceResponse * @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.CreateKeyspaceResponse} CreateKeyspaceResponse * @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) { + CreateKeyspaceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateKeyspaceResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); - break; - } - case 3: { - if (!(message.sql && message.sql.length)) - message.sql = []; - message.sql.push(reader.string()); - break; - } - case 4: { - message.ddl_strategy = reader.string(); - break; - } - case 5: { - if (!(message.uuid_list && message.uuid_list.length)) - message.uuid_list = []; - message.uuid_list.push(reader.string()); - break; - } - case 6: { - message.migration_context = reader.string(); - break; - } - case 7: { - message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); - break; - } - case 9: { - message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); - break; - } - case 10: { - message.batch_size = reader.int64(); + message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); break; } default: @@ -133545,232 +142590,130 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.CreateKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest + * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse * @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) { + CreateKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplySchemaRequest message. + * Verifies a CreateKeyspaceResponse message. * @function verify - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.CreateKeyspaceResponse * @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) { + CreateKeyspaceResponse.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.sql != null && message.hasOwnProperty("sql")) { - if (!Array.isArray(message.sql)) - return "sql: array expected"; - for (let 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 (let 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")) { - let error = $root.vttime.Duration.verify(message.wait_replicas_timeout); - if (error) - return "wait_replicas_timeout." + error; - } - if (message.caller_id != null && message.hasOwnProperty("caller_id")) { - let error = $root.vtrpc.CallerID.verify(message.caller_id); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + let error = $root.vtctldata.Keyspace.verify(message.keyspace); if (error) - return "caller_id." + error; + return "keyspace." + error; } - if (message.batch_size != null && message.hasOwnProperty("batch_size")) - if (!$util.isInteger(message.batch_size) && !(message.batch_size && $util.isInteger(message.batch_size.low) && $util.isInteger(message.batch_size.high))) - return "batch_size: integer|Long expected"; return null; }; /** - * Creates an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.CreateKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest + * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse */ - ApplySchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplySchemaRequest) + CreateKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateKeyspaceResponse) return object; - let message = new $root.vtctldata.ApplySchemaRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.sql) { - if (!Array.isArray(object.sql)) - throw TypeError(".vtctldata.ApplySchemaRequest.sql: array expected"); - message.sql = []; - for (let 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 (let 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.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); + let message = new $root.vtctldata.CreateKeyspaceResponse(); + if (object.keyspace != null) { + if (typeof object.keyspace !== "object") + throw TypeError(".vtctldata.CreateKeyspaceResponse.keyspace: object expected"); + message.keyspace = $root.vtctldata.Keyspace.fromObject(object.keyspace); } - if (object.batch_size != null) - if ($util.Long) - (message.batch_size = $util.Long.fromValue(object.batch_size)).unsigned = false; - else if (typeof object.batch_size === "string") - message.batch_size = parseInt(object.batch_size, 10); - else if (typeof object.batch_size === "number") - message.batch_size = object.batch_size; - else if (typeof object.batch_size === "object") - message.batch_size = new $util.LongBits(object.batch_size.low >>> 0, object.batch_size.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.CreateKeyspaceResponse * @static - * @param {vtctldata.ApplySchemaRequest} message ApplySchemaRequest + * @param {vtctldata.CreateKeyspaceResponse} message CreateKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplySchemaRequest.toObject = function toObject(message, options) { + CreateKeyspaceResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.sql = []; - object.uuid_list = []; - } - if (options.defaults) { - object.keyspace = ""; - object.ddl_strategy = ""; - object.migration_context = ""; - object.wait_replicas_timeout = null; - object.caller_id = null; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.batch_size = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.batch_size = options.longs === String ? "0" : 0; - } + if (options.defaults) + object.keyspace = null; if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.sql && message.sql.length) { - object.sql = []; - for (let 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 (let 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.caller_id != null && message.hasOwnProperty("caller_id")) - object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); - if (message.batch_size != null && message.hasOwnProperty("batch_size")) - if (typeof message.batch_size === "number") - object.batch_size = options.longs === String ? String(message.batch_size) : message.batch_size; - else - object.batch_size = options.longs === String ? $util.Long.prototype.toString.call(message.batch_size) : options.longs === Number ? new $util.LongBits(message.batch_size.low >>> 0, message.batch_size.high >>> 0).toNumber() : message.batch_size; + object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); return object; }; /** - * Converts this ApplySchemaRequest to JSON. + * Converts this CreateKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.CreateKeyspaceResponse * @instance * @returns {Object.} JSON object */ - ApplySchemaRequest.prototype.toJSON = function toJSON() { + CreateKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApplySchemaRequest + * Gets the default type url for CreateKeyspaceResponse * @function getTypeUrl - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.CreateKeyspaceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApplySchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ApplySchemaRequest"; + return typeUrlPrefix + "/vtctldata.CreateKeyspaceResponse"; }; - return ApplySchemaRequest; + return CreateKeyspaceResponse; })(); - vtctldata.ApplySchemaResponse = (function() { + vtctldata.CreateShardRequest = (function() { /** - * Properties of an ApplySchemaResponse. + * Properties of a CreateShardRequest. * @memberof vtctldata - * @interface IApplySchemaResponse - * @property {Array.|null} [uuid_list] ApplySchemaResponse uuid_list - * @property {Object.|null} [rows_affected_by_shard] ApplySchemaResponse rows_affected_by_shard + * @interface ICreateShardRequest + * @property {string|null} [keyspace] CreateShardRequest keyspace + * @property {string|null} [shard_name] CreateShardRequest shard_name + * @property {boolean|null} [force] CreateShardRequest force + * @property {boolean|null} [include_parent] CreateShardRequest include_parent */ /** - * Constructs a new ApplySchemaResponse. + * Constructs a new CreateShardRequest. * @memberof vtctldata - * @classdesc Represents an ApplySchemaResponse. - * @implements IApplySchemaResponse + * @classdesc Represents a CreateShardRequest. + * @implements ICreateShardRequest * @constructor - * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set + * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set */ - function ApplySchemaResponse(properties) { - this.uuid_list = []; - this.rows_affected_by_shard = {}; + function CreateShardRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -133778,112 +142721,117 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ApplySchemaResponse uuid_list. - * @member {Array.} uuid_list - * @memberof vtctldata.ApplySchemaResponse + * CreateShardRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.CreateShardRequest * @instance */ - ApplySchemaResponse.prototype.uuid_list = $util.emptyArray; + CreateShardRequest.prototype.keyspace = ""; /** - * ApplySchemaResponse rows_affected_by_shard. - * @member {Object.} rows_affected_by_shard - * @memberof vtctldata.ApplySchemaResponse + * CreateShardRequest shard_name. + * @member {string} shard_name + * @memberof vtctldata.CreateShardRequest * @instance */ - ApplySchemaResponse.prototype.rows_affected_by_shard = $util.emptyObject; + CreateShardRequest.prototype.shard_name = ""; /** - * Creates a new ApplySchemaResponse instance using the specified properties. + * CreateShardRequest force. + * @member {boolean} force + * @memberof vtctldata.CreateShardRequest + * @instance + */ + CreateShardRequest.prototype.force = false; + + /** + * CreateShardRequest include_parent. + * @member {boolean} include_parent + * @memberof vtctldata.CreateShardRequest + * @instance + */ + CreateShardRequest.prototype.include_parent = false; + + /** + * Creates a new CreateShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.CreateShardRequest * @static - * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse instance + * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set + * @returns {vtctldata.CreateShardRequest} CreateShardRequest instance */ - ApplySchemaResponse.create = function create(properties) { - return new ApplySchemaResponse(properties); + CreateShardRequest.create = function create(properties) { + return new CreateShardRequest(properties); }; /** - * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. + * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.CreateShardRequest * @static - * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode + * @param {vtctldata.ICreateShardRequest} message CreateShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaResponse.encode = function encode(message, writer) { + CreateShardRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uuid_list != null && message.uuid_list.length) - for (let i = 0; i < message.uuid_list.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid_list[i]); - if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) - for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard_name != null && Object.hasOwnProperty.call(message, "shard_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard_name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (message.include_parent != null && Object.hasOwnProperty.call(message, "include_parent")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_parent); return writer; }; /** - * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. + * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.CreateShardRequest * @static - * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode + * @param {vtctldata.ICreateShardRequest} message CreateShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer. + * Decodes a CreateShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.CreateShardRequest * @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.CreateShardRequest} CreateShardRequest * @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) { + CreateShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateShardRequest(); while (reader.pos < end) { let 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.keyspace = reader.string(); break; } case 2: { - if (message.rows_affected_by_shard === $util.emptyObject) - message.rows_affected_by_shard = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.uint64(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.rows_affected_by_shard[key] = value; + message.shard_name = reader.string(); + break; + } + case 3: { + message.force = reader.bool(); + break; + } + case 4: { + message.include_parent = reader.bool(); break; } default: @@ -133895,174 +142843,149 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.CreateShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse + * @returns {vtctldata.CreateShardRequest} CreateShardRequest * @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) { + CreateShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplySchemaResponse message. + * Verifies a CreateShardRequest message. * @function verify - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.CreateShardRequest * @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) { + CreateShardRequest.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 (let i = 0; i < message.uuid_list.length; ++i) - if (!$util.isString(message.uuid_list[i])) - return "uuid_list: string[] expected"; - } - if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { - if (!$util.isObject(message.rows_affected_by_shard)) - return "rows_affected_by_shard: object expected"; - let key = Object.keys(message.rows_affected_by_shard); - for (let i = 0; i < key.length; ++i) - if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) - return "rows_affected_by_shard: integer|Long{k:string} expected"; - } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard_name != null && message.hasOwnProperty("shard_name")) + if (!$util.isString(message.shard_name)) + return "shard_name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.include_parent != null && message.hasOwnProperty("include_parent")) + if (typeof message.include_parent !== "boolean") + return "include_parent: boolean expected"; return null; }; /** - * Creates an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.CreateShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse + * @returns {vtctldata.CreateShardRequest} CreateShardRequest */ - ApplySchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplySchemaResponse) + CreateShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateShardRequest) return object; - let 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 (let i = 0; i < object.uuid_list.length; ++i) - message.uuid_list[i] = String(object.uuid_list[i]); - } - if (object.rows_affected_by_shard) { - if (typeof object.rows_affected_by_shard !== "object") - throw TypeError(".vtctldata.ApplySchemaResponse.rows_affected_by_shard: object expected"); - message.rows_affected_by_shard = {}; - for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) - if ($util.Long) - (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; - else if (typeof object.rows_affected_by_shard[keys[i]] === "string") - message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); - else if (typeof object.rows_affected_by_shard[keys[i]] === "number") - message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; - else if (typeof object.rows_affected_by_shard[keys[i]] === "object") - message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); - } + let message = new $root.vtctldata.CreateShardRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard_name != null) + message.shard_name = String(object.shard_name); + if (object.force != null) + message.force = Boolean(object.force); + if (object.include_parent != null) + message.include_parent = Boolean(object.include_parent); return message; }; /** - * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.CreateShardRequest * @static - * @param {vtctldata.ApplySchemaResponse} message ApplySchemaResponse + * @param {vtctldata.CreateShardRequest} message CreateShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplySchemaResponse.toObject = function toObject(message, options) { + CreateShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.uuid_list = []; - if (options.objects || options.defaults) - object.rows_affected_by_shard = {}; - if (message.uuid_list && message.uuid_list.length) { - object.uuid_list = []; - for (let j = 0; j < message.uuid_list.length; ++j) - object.uuid_list[j] = message.uuid_list[j]; - } - let keys2; - if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { - object.rows_affected_by_shard = {}; - for (let j = 0; j < keys2.length; ++j) - if (typeof message.rows_affected_by_shard[keys2[j]] === "number") - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; - else - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; + if (options.defaults) { + object.keyspace = ""; + object.shard_name = ""; + object.force = false; + object.include_parent = false; } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard_name != null && message.hasOwnProperty("shard_name")) + object.shard_name = message.shard_name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.include_parent != null && message.hasOwnProperty("include_parent")) + object.include_parent = message.include_parent; return object; }; /** - * Converts this ApplySchemaResponse to JSON. + * Converts this CreateShardRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.CreateShardRequest * @instance * @returns {Object.} JSON object */ - ApplySchemaResponse.prototype.toJSON = function toJSON() { + CreateShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApplySchemaResponse + * Gets the default type url for CreateShardRequest * @function getTypeUrl - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.CreateShardRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApplySchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ApplySchemaResponse"; + return typeUrlPrefix + "/vtctldata.CreateShardRequest"; }; - return ApplySchemaResponse; + return CreateShardRequest; })(); - vtctldata.ApplyVSchemaRequest = (function() { + vtctldata.CreateShardResponse = (function() { /** - * Properties of an ApplyVSchemaRequest. + * Properties of a CreateShardResponse. * @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 - * @property {boolean|null} [strict] ApplyVSchemaRequest strict + * @interface ICreateShardResponse + * @property {vtctldata.IKeyspace|null} [keyspace] CreateShardResponse keyspace + * @property {vtctldata.IShard|null} [shard] CreateShardResponse shard + * @property {boolean|null} [shard_already_exists] CreateShardResponse shard_already_exists */ /** - * Constructs a new ApplyVSchemaRequest. + * Constructs a new CreateShardResponse. * @memberof vtctldata - * @classdesc Represents an ApplyVSchemaRequest. - * @implements IApplyVSchemaRequest + * @classdesc Represents a CreateShardResponse. + * @implements ICreateShardResponse * @constructor - * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set + * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set */ - function ApplyVSchemaRequest(properties) { - this.cells = []; + function CreateShardResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -134070,162 +142993,103 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * 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 - * @instance - */ - ApplyVSchemaRequest.prototype.cells = $util.emptyArray; - - /** - * ApplyVSchemaRequest v_schema. - * @member {vschema.IKeyspace|null|undefined} v_schema - * @memberof vtctldata.ApplyVSchemaRequest + * CreateShardResponse keyspace. + * @member {vtctldata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.CreateShardResponse * @instance */ - ApplyVSchemaRequest.prototype.v_schema = null; + CreateShardResponse.prototype.keyspace = null; /** - * ApplyVSchemaRequest sql. - * @member {string} sql - * @memberof vtctldata.ApplyVSchemaRequest + * CreateShardResponse shard. + * @member {vtctldata.IShard|null|undefined} shard + * @memberof vtctldata.CreateShardResponse * @instance */ - ApplyVSchemaRequest.prototype.sql = ""; + CreateShardResponse.prototype.shard = null; /** - * ApplyVSchemaRequest strict. - * @member {boolean} strict - * @memberof vtctldata.ApplyVSchemaRequest + * CreateShardResponse shard_already_exists. + * @member {boolean} shard_already_exists + * @memberof vtctldata.CreateShardResponse * @instance */ - ApplyVSchemaRequest.prototype.strict = false; + CreateShardResponse.prototype.shard_already_exists = false; /** - * Creates a new ApplyVSchemaRequest instance using the specified properties. + * Creates a new CreateShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.CreateShardResponse * @static - * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest instance + * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set + * @returns {vtctldata.CreateShardResponse} CreateShardResponse instance */ - ApplyVSchemaRequest.create = function create(properties) { - return new ApplyVSchemaRequest(properties); + CreateShardResponse.create = function create(properties) { + return new CreateShardResponse(properties); }; /** - * Encodes the specified ApplyVSchemaRequest message. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. + * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.CreateShardResponse * @static - * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode + * @param {vtctldata.ICreateShardResponse} message CreateShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaRequest.encode = function encode(message, writer) { + CreateShardResponse.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 (let 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.strict != null && Object.hasOwnProperty.call(message, "strict")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.strict); + $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + $root.vtctldata.Shard.encode(message.shard, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.shard_already_exists != null && Object.hasOwnProperty.call(message, "shard_already_exists")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.shard_already_exists); return writer; }; /** - * Encodes the specified ApplyVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. + * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.CreateShardResponse * @static - * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode + * @param {vtctldata.ICreateShardResponse} message CreateShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyVSchemaRequest message from the specified reader or buffer. + * Decodes a CreateShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.CreateShardResponse * @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.CreateShardResponse} CreateShardResponse * @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) { + CreateShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateShardResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); break; } case 2: { - message.skip_rebuild = reader.bool(); + message.shard = $root.vtctldata.Shard.decode(reader, reader.uint32()); 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(); - break; - } - case 7: { - message.strict = reader.bool(); + message.shard_already_exists = reader.bool(); break; } default: @@ -134237,191 +143101,150 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ApplyVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.CreateShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest + * @returns {vtctldata.CreateShardResponse} CreateShardResponse * @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) { + CreateShardResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyVSchemaRequest message. + * Verifies a CreateShardResponse message. * @function verify - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.CreateShardResponse * @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) { + CreateShardResponse.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 (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + let error = $root.vtctldata.Keyspace.verify(message.keyspace); + if (error) + return "keyspace." + error; } - if (message.v_schema != null && message.hasOwnProperty("v_schema")) { - let error = $root.vschema.Keyspace.verify(message.v_schema); + if (message.shard != null && message.hasOwnProperty("shard")) { + let error = $root.vtctldata.Shard.verify(message.shard); if (error) - return "v_schema." + error; + return "shard." + error; } - if (message.sql != null && message.hasOwnProperty("sql")) - if (!$util.isString(message.sql)) - return "sql: string expected"; - if (message.strict != null && message.hasOwnProperty("strict")) - if (typeof message.strict !== "boolean") - return "strict: boolean expected"; + if (message.shard_already_exists != null && message.hasOwnProperty("shard_already_exists")) + if (typeof message.shard_already_exists !== "boolean") + return "shard_already_exists: boolean expected"; return null; }; /** - * Creates an ApplyVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateShardResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.CreateShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest + * @returns {vtctldata.CreateShardResponse} CreateShardResponse */ - ApplyVSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyVSchemaRequest) + CreateShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateShardResponse) return object; - let 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 (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); + let message = new $root.vtctldata.CreateShardResponse(); + if (object.keyspace != null) { + if (typeof object.keyspace !== "object") + throw TypeError(".vtctldata.CreateShardResponse.keyspace: object expected"); + message.keyspace = $root.vtctldata.Keyspace.fromObject(object.keyspace); } - 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.shard != null) { + if (typeof object.shard !== "object") + throw TypeError(".vtctldata.CreateShardResponse.shard: object expected"); + message.shard = $root.vtctldata.Shard.fromObject(object.shard); } - if (object.sql != null) - message.sql = String(object.sql); - if (object.strict != null) - message.strict = Boolean(object.strict); + if (object.shard_already_exists != null) + message.shard_already_exists = Boolean(object.shard_already_exists); return message; }; /** - * Creates a plain object from an ApplyVSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateShardResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.CreateShardResponse * @static - * @param {vtctldata.ApplyVSchemaRequest} message ApplyVSchemaRequest + * @param {vtctldata.CreateShardResponse} message CreateShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyVSchemaRequest.toObject = function toObject(message, options) { + CreateShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.cells = []; if (options.defaults) { - object.keyspace = ""; - object.skip_rebuild = false; - object.dry_run = false; - object.v_schema = null; - object.sql = ""; - object.strict = false; + object.keyspace = null; + object.shard = null; + object.shard_already_exists = false; } 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 (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } - if (message.v_schema != null && message.hasOwnProperty("v_schema")) - object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = message.sql; - if (message.strict != null && message.hasOwnProperty("strict")) - object.strict = message.strict; + object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = $root.vtctldata.Shard.toObject(message.shard, options); + if (message.shard_already_exists != null && message.hasOwnProperty("shard_already_exists")) + object.shard_already_exists = message.shard_already_exists; return object; }; /** - * Converts this ApplyVSchemaRequest to JSON. + * Converts this CreateShardResponse to JSON. * @function toJSON - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.CreateShardResponse * @instance * @returns {Object.} JSON object */ - ApplyVSchemaRequest.prototype.toJSON = function toJSON() { + CreateShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApplyVSchemaRequest + * Gets the default type url for CreateShardResponse * @function getTypeUrl - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.CreateShardResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApplyVSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ApplyVSchemaRequest"; + return typeUrlPrefix + "/vtctldata.CreateShardResponse"; }; - return ApplyVSchemaRequest; + return CreateShardResponse; })(); - vtctldata.ApplyVSchemaResponse = (function() { + vtctldata.DeleteCellInfoRequest = (function() { /** - * Properties of an ApplyVSchemaResponse. + * Properties of a DeleteCellInfoRequest. * @memberof vtctldata - * @interface IApplyVSchemaResponse - * @property {vschema.IKeyspace|null} [v_schema] ApplyVSchemaResponse v_schema - * @property {Object.|null} [unknown_vindex_params] ApplyVSchemaResponse unknown_vindex_params + * @interface IDeleteCellInfoRequest + * @property {string|null} [name] DeleteCellInfoRequest name + * @property {boolean|null} [force] DeleteCellInfoRequest force */ /** - * Constructs a new ApplyVSchemaResponse. + * Constructs a new DeleteCellInfoRequest. * @memberof vtctldata - * @classdesc Represents an ApplyVSchemaResponse. - * @implements IApplyVSchemaResponse + * @classdesc Represents a DeleteCellInfoRequest. + * @implements IDeleteCellInfoRequest * @constructor - * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set + * @param {vtctldata.IDeleteCellInfoRequest=} [properties] Properties to set */ - function ApplyVSchemaResponse(properties) { - this.unknown_vindex_params = {}; + function DeleteCellInfoRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -134429,111 +143252,89 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ApplyVSchemaResponse v_schema. - * @member {vschema.IKeyspace|null|undefined} v_schema - * @memberof vtctldata.ApplyVSchemaResponse + * DeleteCellInfoRequest name. + * @member {string} name + * @memberof vtctldata.DeleteCellInfoRequest * @instance */ - ApplyVSchemaResponse.prototype.v_schema = null; + DeleteCellInfoRequest.prototype.name = ""; /** - * ApplyVSchemaResponse unknown_vindex_params. - * @member {Object.} unknown_vindex_params - * @memberof vtctldata.ApplyVSchemaResponse + * DeleteCellInfoRequest force. + * @member {boolean} force + * @memberof vtctldata.DeleteCellInfoRequest * @instance */ - ApplyVSchemaResponse.prototype.unknown_vindex_params = $util.emptyObject; + DeleteCellInfoRequest.prototype.force = false; /** - * Creates a new ApplyVSchemaResponse instance using the specified properties. + * Creates a new DeleteCellInfoRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.DeleteCellInfoRequest * @static - * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse instance + * @param {vtctldata.IDeleteCellInfoRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteCellInfoRequest} DeleteCellInfoRequest instance */ - ApplyVSchemaResponse.create = function create(properties) { - return new ApplyVSchemaResponse(properties); + DeleteCellInfoRequest.create = function create(properties) { + return new DeleteCellInfoRequest(properties); }; /** - * Encodes the specified ApplyVSchemaResponse message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. + * Encodes the specified DeleteCellInfoRequest message. Does not implicitly {@link vtctldata.DeleteCellInfoRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.DeleteCellInfoRequest * @static - * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode + * @param {vtctldata.IDeleteCellInfoRequest} message DeleteCellInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaResponse.encode = function encode(message, writer) { + DeleteCellInfoRequest.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.unknown_vindex_params != null && Object.hasOwnProperty.call(message, "unknown_vindex_params")) - for (let keys = Object.keys(message.unknown_vindex_params), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vtctldata.ApplyVSchemaResponse.ParamList.encode(message.unknown_vindex_params[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified ApplyVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. + * Encodes the specified DeleteCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteCellInfoRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.DeleteCellInfoRequest * @static - * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode + * @param {vtctldata.IDeleteCellInfoRequest} message DeleteCellInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyVSchemaResponse message from the specified reader or buffer. + * Decodes a DeleteCellInfoRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.DeleteCellInfoRequest * @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.DeleteCellInfoRequest} DeleteCellInfoRequest * @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) { + DeleteCellInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteCellInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - if (message.unknown_vindex_params === $util.emptyObject) - message.unknown_vindex_params = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vtctldata.ApplyVSchemaResponse.ParamList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.unknown_vindex_params[key] = value; + message.force = reader.bool(); break; } default: @@ -134545,380 +143346,130 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ApplyVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteCellInfoRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.DeleteCellInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse + * @returns {vtctldata.DeleteCellInfoRequest} DeleteCellInfoRequest * @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) { + DeleteCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyVSchemaResponse message. + * Verifies a DeleteCellInfoRequest message. * @function verify - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.DeleteCellInfoRequest * @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) { + DeleteCellInfoRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) { - let error = $root.vschema.Keyspace.verify(message.v_schema); - if (error) - return "v_schema." + error; - } - if (message.unknown_vindex_params != null && message.hasOwnProperty("unknown_vindex_params")) { - if (!$util.isObject(message.unknown_vindex_params)) - return "unknown_vindex_params: object expected"; - let key = Object.keys(message.unknown_vindex_params); - for (let i = 0; i < key.length; ++i) { - let error = $root.vtctldata.ApplyVSchemaResponse.ParamList.verify(message.unknown_vindex_params[key[i]]); - if (error) - return "unknown_vindex_params." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates an ApplyVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCellInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.DeleteCellInfoRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse + * @returns {vtctldata.DeleteCellInfoRequest} DeleteCellInfoRequest */ - ApplyVSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyVSchemaResponse) + DeleteCellInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteCellInfoRequest) return object; - let 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); - } - if (object.unknown_vindex_params) { - if (typeof object.unknown_vindex_params !== "object") - throw TypeError(".vtctldata.ApplyVSchemaResponse.unknown_vindex_params: object expected"); - message.unknown_vindex_params = {}; - for (let keys = Object.keys(object.unknown_vindex_params), i = 0; i < keys.length; ++i) { - if (typeof object.unknown_vindex_params[keys[i]] !== "object") - throw TypeError(".vtctldata.ApplyVSchemaResponse.unknown_vindex_params: object expected"); - message.unknown_vindex_params[keys[i]] = $root.vtctldata.ApplyVSchemaResponse.ParamList.fromObject(object.unknown_vindex_params[keys[i]]); - } - } + let message = new $root.vtctldata.DeleteCellInfoRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from an ApplyVSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteCellInfoRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.DeleteCellInfoRequest * @static - * @param {vtctldata.ApplyVSchemaResponse} message ApplyVSchemaResponse + * @param {vtctldata.DeleteCellInfoRequest} message DeleteCellInfoRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyVSchemaResponse.toObject = function toObject(message, options) { + DeleteCellInfoRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.unknown_vindex_params = {}; - if (options.defaults) - object.v_schema = null; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) - object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); - let keys2; - if (message.unknown_vindex_params && (keys2 = Object.keys(message.unknown_vindex_params)).length) { - object.unknown_vindex_params = {}; - for (let j = 0; j < keys2.length; ++j) - object.unknown_vindex_params[keys2[j]] = $root.vtctldata.ApplyVSchemaResponse.ParamList.toObject(message.unknown_vindex_params[keys2[j]], options); + if (options.defaults) { + object.name = ""; + object.force = false; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this ApplyVSchemaResponse to JSON. + * Converts this DeleteCellInfoRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.DeleteCellInfoRequest * @instance * @returns {Object.} JSON object */ - ApplyVSchemaResponse.prototype.toJSON = function toJSON() { + DeleteCellInfoRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ApplyVSchemaResponse + * Gets the default type url for DeleteCellInfoRequest * @function getTypeUrl - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.DeleteCellInfoRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ApplyVSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteCellInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ApplyVSchemaResponse"; + return typeUrlPrefix + "/vtctldata.DeleteCellInfoRequest"; }; - ApplyVSchemaResponse.ParamList = (function() { - - /** - * Properties of a ParamList. - * @memberof vtctldata.ApplyVSchemaResponse - * @interface IParamList - * @property {Array.|null} [params] ParamList params - */ - - /** - * Constructs a new ParamList. - * @memberof vtctldata.ApplyVSchemaResponse - * @classdesc Represents a ParamList. - * @implements IParamList - * @constructor - * @param {vtctldata.ApplyVSchemaResponse.IParamList=} [properties] Properties to set - */ - function ParamList(properties) { - this.params = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ParamList params. - * @member {Array.} params - * @memberof vtctldata.ApplyVSchemaResponse.ParamList - * @instance - */ - ParamList.prototype.params = $util.emptyArray; - - /** - * Creates a new ParamList instance using the specified properties. - * @function create - * @memberof vtctldata.ApplyVSchemaResponse.ParamList - * @static - * @param {vtctldata.ApplyVSchemaResponse.IParamList=} [properties] Properties to set - * @returns {vtctldata.ApplyVSchemaResponse.ParamList} ParamList instance - */ - ParamList.create = function create(properties) { - return new ParamList(properties); - }; - - /** - * Encodes the specified ParamList message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.ParamList.verify|verify} messages. - * @function encode - * @memberof vtctldata.ApplyVSchemaResponse.ParamList - * @static - * @param {vtctldata.ApplyVSchemaResponse.IParamList} message ParamList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParamList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.params != null && message.params.length) - for (let i = 0; i < message.params.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.params[i]); - return writer; - }; - - /** - * Encodes the specified ParamList message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.ParamList.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.ApplyVSchemaResponse.ParamList - * @static - * @param {vtctldata.ApplyVSchemaResponse.IParamList} message ParamList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParamList.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ParamList message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.ApplyVSchemaResponse.ParamList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyVSchemaResponse.ParamList} ParamList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParamList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaResponse.ParamList(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.params && message.params.length)) - message.params = []; - message.params.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ParamList message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.ApplyVSchemaResponse.ParamList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyVSchemaResponse.ParamList} ParamList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParamList.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ParamList message. - * @function verify - * @memberof vtctldata.ApplyVSchemaResponse.ParamList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ParamList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - if (!Array.isArray(message.params)) - return "params: array expected"; - for (let i = 0; i < message.params.length; ++i) - if (!$util.isString(message.params[i])) - return "params: string[] expected"; - } - return null; - }; - - /** - * Creates a ParamList message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.ApplyVSchemaResponse.ParamList - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.ApplyVSchemaResponse.ParamList} ParamList - */ - ParamList.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyVSchemaResponse.ParamList) - return object; - let message = new $root.vtctldata.ApplyVSchemaResponse.ParamList(); - if (object.params) { - if (!Array.isArray(object.params)) - throw TypeError(".vtctldata.ApplyVSchemaResponse.ParamList.params: array expected"); - message.params = []; - for (let i = 0; i < object.params.length; ++i) - message.params[i] = String(object.params[i]); - } - return message; - }; - - /** - * Creates a plain object from a ParamList message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.ApplyVSchemaResponse.ParamList - * @static - * @param {vtctldata.ApplyVSchemaResponse.ParamList} message ParamList - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ParamList.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.params = []; - if (message.params && message.params.length) { - object.params = []; - for (let j = 0; j < message.params.length; ++j) - object.params[j] = message.params[j]; - } - return object; - }; - - /** - * Converts this ParamList to JSON. - * @function toJSON - * @memberof vtctldata.ApplyVSchemaResponse.ParamList - * @instance - * @returns {Object.} JSON object - */ - ParamList.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ParamList - * @function getTypeUrl - * @memberof vtctldata.ApplyVSchemaResponse.ParamList - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ParamList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.ApplyVSchemaResponse.ParamList"; - }; - - return ParamList; - })(); - - return ApplyVSchemaResponse; + return DeleteCellInfoRequest; })(); - vtctldata.BackupRequest = (function() { + vtctldata.DeleteCellInfoResponse = (function() { /** - * Properties of a BackupRequest. + * Properties of a DeleteCellInfoResponse. * @memberof vtctldata - * @interface IBackupRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] BackupRequest tablet_alias - * @property {boolean|null} [allow_primary] BackupRequest allow_primary - * @property {number|null} [concurrency] BackupRequest concurrency - * @property {string|null} [incremental_from_pos] BackupRequest incremental_from_pos - * @property {boolean|null} [upgrade_safe] BackupRequest upgrade_safe - * @property {string|null} [backup_engine] BackupRequest backup_engine - * @property {vttime.IDuration|null} [mysql_shutdown_timeout] BackupRequest mysql_shutdown_timeout + * @interface IDeleteCellInfoResponse */ /** - * Constructs a new BackupRequest. + * Constructs a new DeleteCellInfoResponse. * @memberof vtctldata - * @classdesc Represents a BackupRequest. - * @implements IBackupRequest + * @classdesc Represents a DeleteCellInfoResponse. + * @implements IDeleteCellInfoResponse * @constructor - * @param {vtctldata.IBackupRequest=} [properties] Properties to set + * @param {vtctldata.IDeleteCellInfoResponse=} [properties] Properties to set */ - function BackupRequest(properties) { + function DeleteCellInfoResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -134926,170 +143477,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * BackupRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.BackupRequest - * @instance - */ - BackupRequest.prototype.tablet_alias = null; - - /** - * BackupRequest allow_primary. - * @member {boolean} allow_primary - * @memberof vtctldata.BackupRequest - * @instance - */ - BackupRequest.prototype.allow_primary = false; - - /** - * BackupRequest concurrency. - * @member {number} concurrency - * @memberof vtctldata.BackupRequest - * @instance - */ - BackupRequest.prototype.concurrency = 0; - - /** - * BackupRequest incremental_from_pos. - * @member {string} incremental_from_pos - * @memberof vtctldata.BackupRequest - * @instance - */ - BackupRequest.prototype.incremental_from_pos = ""; - - /** - * BackupRequest upgrade_safe. - * @member {boolean} upgrade_safe - * @memberof vtctldata.BackupRequest - * @instance - */ - BackupRequest.prototype.upgrade_safe = false; - - /** - * BackupRequest backup_engine. - * @member {string|null|undefined} backup_engine - * @memberof vtctldata.BackupRequest - * @instance - */ - BackupRequest.prototype.backup_engine = null; - - /** - * BackupRequest mysql_shutdown_timeout. - * @member {vttime.IDuration|null|undefined} mysql_shutdown_timeout - * @memberof vtctldata.BackupRequest - * @instance - */ - BackupRequest.prototype.mysql_shutdown_timeout = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(BackupRequest.prototype, "_backup_engine", { - get: $util.oneOfGetter($oneOfFields = ["backup_engine"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new BackupRequest instance using the specified properties. + * Creates a new DeleteCellInfoResponse instance using the specified properties. * @function create - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.DeleteCellInfoResponse * @static - * @param {vtctldata.IBackupRequest=} [properties] Properties to set - * @returns {vtctldata.BackupRequest} BackupRequest instance + * @param {vtctldata.IDeleteCellInfoResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteCellInfoResponse} DeleteCellInfoResponse instance */ - BackupRequest.create = function create(properties) { - return new BackupRequest(properties); + DeleteCellInfoResponse.create = function create(properties) { + return new DeleteCellInfoResponse(properties); }; /** - * Encodes the specified BackupRequest message. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. + * Encodes the specified DeleteCellInfoResponse message. Does not implicitly {@link vtctldata.DeleteCellInfoResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.DeleteCellInfoResponse * @static - * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode + * @param {vtctldata.IDeleteCellInfoResponse} message DeleteCellInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupRequest.encode = function encode(message, writer) { + DeleteCellInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_primary); - if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.concurrency); - if (message.incremental_from_pos != null && Object.hasOwnProperty.call(message, "incremental_from_pos")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.incremental_from_pos); - if (message.upgrade_safe != null && Object.hasOwnProperty.call(message, "upgrade_safe")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.upgrade_safe); - if (message.backup_engine != null && Object.hasOwnProperty.call(message, "backup_engine")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.backup_engine); - if (message.mysql_shutdown_timeout != null && Object.hasOwnProperty.call(message, "mysql_shutdown_timeout")) - $root.vttime.Duration.encode(message.mysql_shutdown_timeout, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. + * Encodes the specified DeleteCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteCellInfoResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.DeleteCellInfoResponse * @static - * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode + * @param {vtctldata.IDeleteCellInfoResponse} message DeleteCellInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupRequest message from the specified reader or buffer. + * Decodes a DeleteCellInfoResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.DeleteCellInfoResponse * @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.DeleteCellInfoResponse} DeleteCellInfoResponse * @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) { + DeleteCellInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteCellInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 2: { - message.allow_primary = reader.bool(); - break; - } - case 3: { - message.concurrency = reader.int32(); - break; - } - case 4: { - message.incremental_from_pos = reader.string(); - break; - } - case 5: { - message.upgrade_safe = reader.bool(); - break; - } - case 6: { - message.backup_engine = reader.string(); - break; - } - case 7: { - message.mysql_shutdown_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -135099,189 +143543,109 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a BackupRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteCellInfoResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.DeleteCellInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.BackupRequest} BackupRequest + * @returns {vtctldata.DeleteCellInfoResponse} DeleteCellInfoResponse * @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) { + DeleteCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupRequest message. + * Verifies a DeleteCellInfoResponse message. * @function verify - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.DeleteCellInfoResponse * @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) { + DeleteCellInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - let properties = {}; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - if (typeof message.allow_primary !== "boolean") - return "allow_primary: boolean expected"; - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - if (!$util.isInteger(message.concurrency)) - return "concurrency: integer expected"; - if (message.incremental_from_pos != null && message.hasOwnProperty("incremental_from_pos")) - if (!$util.isString(message.incremental_from_pos)) - return "incremental_from_pos: string expected"; - if (message.upgrade_safe != null && message.hasOwnProperty("upgrade_safe")) - if (typeof message.upgrade_safe !== "boolean") - return "upgrade_safe: boolean expected"; - if (message.backup_engine != null && message.hasOwnProperty("backup_engine")) { - properties._backup_engine = 1; - if (!$util.isString(message.backup_engine)) - return "backup_engine: string expected"; - } - if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) { - let error = $root.vttime.Duration.verify(message.mysql_shutdown_timeout); - if (error) - return "mysql_shutdown_timeout." + error; - } return null; }; /** - * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCellInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.DeleteCellInfoResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.BackupRequest} BackupRequest + * @returns {vtctldata.DeleteCellInfoResponse} DeleteCellInfoResponse */ - BackupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.BackupRequest) + DeleteCellInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteCellInfoResponse) return object; - let message = new $root.vtctldata.BackupRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.BackupRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.allow_primary != null) - message.allow_primary = Boolean(object.allow_primary); - if (object.concurrency != null) - message.concurrency = object.concurrency | 0; - if (object.incremental_from_pos != null) - message.incremental_from_pos = String(object.incremental_from_pos); - if (object.upgrade_safe != null) - message.upgrade_safe = Boolean(object.upgrade_safe); - if (object.backup_engine != null) - message.backup_engine = String(object.backup_engine); - if (object.mysql_shutdown_timeout != null) { - if (typeof object.mysql_shutdown_timeout !== "object") - throw TypeError(".vtctldata.BackupRequest.mysql_shutdown_timeout: object expected"); - message.mysql_shutdown_timeout = $root.vttime.Duration.fromObject(object.mysql_shutdown_timeout); - } - return message; + return new $root.vtctldata.DeleteCellInfoResponse(); }; /** - * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteCellInfoResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.DeleteCellInfoResponse * @static - * @param {vtctldata.BackupRequest} message BackupRequest + * @param {vtctldata.DeleteCellInfoResponse} message DeleteCellInfoResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.tablet_alias = null; - object.allow_primary = false; - object.concurrency = 0; - object.incremental_from_pos = ""; - object.upgrade_safe = false; - object.mysql_shutdown_timeout = null; - } - 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")) - object.concurrency = message.concurrency; - if (message.incremental_from_pos != null && message.hasOwnProperty("incremental_from_pos")) - object.incremental_from_pos = message.incremental_from_pos; - if (message.upgrade_safe != null && message.hasOwnProperty("upgrade_safe")) - object.upgrade_safe = message.upgrade_safe; - if (message.backup_engine != null && message.hasOwnProperty("backup_engine")) { - object.backup_engine = message.backup_engine; - if (options.oneofs) - object._backup_engine = "backup_engine"; - } - if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) - object.mysql_shutdown_timeout = $root.vttime.Duration.toObject(message.mysql_shutdown_timeout, options); - return object; + DeleteCellInfoResponse.toObject = function toObject() { + return {}; }; /** - * Converts this BackupRequest to JSON. + * Converts this DeleteCellInfoResponse to JSON. * @function toJSON - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.DeleteCellInfoResponse * @instance * @returns {Object.} JSON object */ - BackupRequest.prototype.toJSON = function toJSON() { + DeleteCellInfoResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BackupRequest + * Gets the default type url for DeleteCellInfoResponse * @function getTypeUrl - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.DeleteCellInfoResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteCellInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.BackupRequest"; + return typeUrlPrefix + "/vtctldata.DeleteCellInfoResponse"; }; - return BackupRequest; + return DeleteCellInfoResponse; })(); - vtctldata.BackupResponse = (function() { + vtctldata.DeleteCellsAliasRequest = (function() { /** - * Properties of a BackupResponse. + * Properties of a DeleteCellsAliasRequest. * @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 IDeleteCellsAliasRequest + * @property {string|null} [name] DeleteCellsAliasRequest name */ /** - * Constructs a new BackupResponse. + * Constructs a new DeleteCellsAliasRequest. * @memberof vtctldata - * @classdesc Represents a BackupResponse. - * @implements IBackupResponse + * @classdesc Represents a DeleteCellsAliasRequest. + * @implements IDeleteCellsAliasRequest * @constructor - * @param {vtctldata.IBackupResponse=} [properties] Properties to set + * @param {vtctldata.IDeleteCellsAliasRequest=} [properties] Properties to set */ - function BackupResponse(properties) { + function DeleteCellsAliasRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -135289,117 +143653,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * 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 - */ - BackupResponse.prototype.keyspace = ""; - - /** - * BackupResponse shard. - * @member {string} shard - * @memberof vtctldata.BackupResponse - * @instance - */ - BackupResponse.prototype.shard = ""; - - /** - * BackupResponse event. - * @member {logutil.IEvent|null|undefined} event - * @memberof vtctldata.BackupResponse + * DeleteCellsAliasRequest name. + * @member {string} name + * @memberof vtctldata.DeleteCellsAliasRequest * @instance */ - BackupResponse.prototype.event = null; + DeleteCellsAliasRequest.prototype.name = ""; /** - * Creates a new BackupResponse instance using the specified properties. + * Creates a new DeleteCellsAliasRequest instance using the specified properties. * @function create - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.DeleteCellsAliasRequest * @static - * @param {vtctldata.IBackupResponse=} [properties] Properties to set - * @returns {vtctldata.BackupResponse} BackupResponse instance + * @param {vtctldata.IDeleteCellsAliasRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteCellsAliasRequest} DeleteCellsAliasRequest instance */ - BackupResponse.create = function create(properties) { - return new BackupResponse(properties); + DeleteCellsAliasRequest.create = function create(properties) { + return new DeleteCellsAliasRequest(properties); }; /** - * Encodes the specified BackupResponse message. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. + * Encodes the specified DeleteCellsAliasRequest message. Does not implicitly {@link vtctldata.DeleteCellsAliasRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.DeleteCellsAliasRequest * @static - * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode + * @param {vtctldata.IDeleteCellsAliasRequest} message DeleteCellsAliasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupResponse.encode = function encode(message, writer) { + DeleteCellsAliasRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. + * Encodes the specified DeleteCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteCellsAliasRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.DeleteCellsAliasRequest * @static - * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode + * @param {vtctldata.IDeleteCellsAliasRequest} message DeleteCellsAliasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteCellsAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupResponse message from the specified reader or buffer. + * Decodes a DeleteCellsAliasRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.DeleteCellsAliasRequest * @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.DeleteCellsAliasRequest} DeleteCellsAliasRequest * @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) { + DeleteCellsAliasRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteCellsAliasRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 2: { - message.keyspace = reader.string(); - break; - } - case 3: { - message.shard = reader.string(); - break; - } - case 4: { - message.event = $root.logutil.Event.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -135411,325 +143733,185 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a BackupResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteCellsAliasRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.DeleteCellsAliasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.BackupResponse} BackupResponse + * @returns {vtctldata.DeleteCellsAliasRequest} DeleteCellsAliasRequest * @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) { + DeleteCellsAliasRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupResponse message. + * Verifies a DeleteCellsAliasRequest message. * @function verify - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.DeleteCellsAliasRequest * @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) { + DeleteCellsAliasRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - 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")) { - let error = $root.logutil.Event.verify(message.event); - if (error) - return "event." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCellsAliasRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.DeleteCellsAliasRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.BackupResponse} BackupResponse + * @returns {vtctldata.DeleteCellsAliasRequest} DeleteCellsAliasRequest */ - BackupResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.BackupResponse) + DeleteCellsAliasRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteCellsAliasRequest) return object; - let 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); - } + let message = new $root.vtctldata.DeleteCellsAliasRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a BackupResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteCellsAliasRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.DeleteCellsAliasRequest * @static - * @param {vtctldata.BackupResponse} message BackupResponse + * @param {vtctldata.DeleteCellsAliasRequest} message DeleteCellsAliasRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupResponse.toObject = function toObject(message, options) { + DeleteCellsAliasRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.tablet_alias = null; - object.keyspace = ""; - object.shard = ""; - object.event = null; - } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.event != null && message.hasOwnProperty("event")) - object.event = $root.logutil.Event.toObject(message.event, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this BackupResponse to JSON. + * Converts this DeleteCellsAliasRequest to JSON. * @function toJSON - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.DeleteCellsAliasRequest * @instance * @returns {Object.} JSON object */ - BackupResponse.prototype.toJSON = function toJSON() { + DeleteCellsAliasRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BackupResponse + * Gets the default type url for DeleteCellsAliasRequest * @function getTypeUrl - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.DeleteCellsAliasRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BackupResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteCellsAliasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.BackupResponse"; + return typeUrlPrefix + "/vtctldata.DeleteCellsAliasRequest"; }; - return BackupResponse; + return DeleteCellsAliasRequest; })(); - vtctldata.BackupShardRequest = (function() { - - /** - * Properties of a BackupShardRequest. - * @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|null} [concurrency] BackupShardRequest concurrency - * @property {boolean|null} [upgrade_safe] BackupShardRequest upgrade_safe - * @property {string|null} [incremental_from_pos] BackupShardRequest incremental_from_pos - * @property {vttime.IDuration|null} [mysql_shutdown_timeout] BackupShardRequest mysql_shutdown_timeout - */ + vtctldata.DeleteCellsAliasResponse = (function() { /** - * Constructs a new BackupShardRequest. + * Properties of a DeleteCellsAliasResponse. * @memberof vtctldata - * @classdesc Represents a BackupShardRequest. - * @implements IBackupShardRequest - * @constructor - * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set - */ - function BackupShardRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * 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 - * @instance - */ - BackupShardRequest.prototype.allow_primary = false; - - /** - * BackupShardRequest concurrency. - * @member {number} concurrency - * @memberof vtctldata.BackupShardRequest - * @instance - */ - BackupShardRequest.prototype.concurrency = 0; - - /** - * BackupShardRequest upgrade_safe. - * @member {boolean} upgrade_safe - * @memberof vtctldata.BackupShardRequest - * @instance - */ - BackupShardRequest.prototype.upgrade_safe = false; - - /** - * BackupShardRequest incremental_from_pos. - * @member {string} incremental_from_pos - * @memberof vtctldata.BackupShardRequest - * @instance + * @interface IDeleteCellsAliasResponse */ - BackupShardRequest.prototype.incremental_from_pos = ""; /** - * BackupShardRequest mysql_shutdown_timeout. - * @member {vttime.IDuration|null|undefined} mysql_shutdown_timeout - * @memberof vtctldata.BackupShardRequest - * @instance + * Constructs a new DeleteCellsAliasResponse. + * @memberof vtctldata + * @classdesc Represents a DeleteCellsAliasResponse. + * @implements IDeleteCellsAliasResponse + * @constructor + * @param {vtctldata.IDeleteCellsAliasResponse=} [properties] Properties to set */ - BackupShardRequest.prototype.mysql_shutdown_timeout = null; + function DeleteCellsAliasResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Creates a new BackupShardRequest instance using the specified properties. + * Creates a new DeleteCellsAliasResponse instance using the specified properties. * @function create - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.DeleteCellsAliasResponse * @static - * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set - * @returns {vtctldata.BackupShardRequest} BackupShardRequest instance + * @param {vtctldata.IDeleteCellsAliasResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteCellsAliasResponse} DeleteCellsAliasResponse instance */ - BackupShardRequest.create = function create(properties) { - return new BackupShardRequest(properties); + DeleteCellsAliasResponse.create = function create(properties) { + return new DeleteCellsAliasResponse(properties); }; /** - * Encodes the specified BackupShardRequest message. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. + * Encodes the specified DeleteCellsAliasResponse message. Does not implicitly {@link vtctldata.DeleteCellsAliasResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.DeleteCellsAliasResponse * @static - * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode + * @param {vtctldata.IDeleteCellsAliasResponse} message DeleteCellsAliasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupShardRequest.encode = function encode(message, writer) { + DeleteCellsAliasResponse.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).int32(message.concurrency); - if (message.upgrade_safe != null && Object.hasOwnProperty.call(message, "upgrade_safe")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.upgrade_safe); - if (message.incremental_from_pos != null && Object.hasOwnProperty.call(message, "incremental_from_pos")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.incremental_from_pos); - if (message.mysql_shutdown_timeout != null && Object.hasOwnProperty.call(message, "mysql_shutdown_timeout")) - $root.vttime.Duration.encode(message.mysql_shutdown_timeout, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified BackupShardRequest message, length delimited. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. + * Encodes the specified DeleteCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteCellsAliasResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.DeleteCellsAliasResponse * @static - * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode + * @param {vtctldata.IDeleteCellsAliasResponse} message DeleteCellsAliasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteCellsAliasResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupShardRequest message from the specified reader or buffer. + * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.DeleteCellsAliasResponse * @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.DeleteCellsAliasResponse} DeleteCellsAliasResponse * @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) { + DeleteCellsAliasResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupShardRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteCellsAliasResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.shard = reader.string(); - break; - } - case 3: { - message.allow_primary = reader.bool(); - break; - } - case 4: { - message.concurrency = reader.int32(); - break; - } - case 5: { - message.upgrade_safe = reader.bool(); - break; - } - case 6: { - message.incremental_from_pos = reader.string(); - break; - } - case 7: { - message.mysql_shutdown_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -135739,178 +143921,111 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a BackupShardRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.DeleteCellsAliasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.BackupShardRequest} BackupShardRequest + * @returns {vtctldata.DeleteCellsAliasResponse} DeleteCellsAliasResponse * @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) { + DeleteCellsAliasResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupShardRequest message. + * Verifies a DeleteCellsAliasResponse message. * @function verify - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.DeleteCellsAliasResponse * @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) { + DeleteCellsAliasResponse.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)) - return "concurrency: integer expected"; - if (message.upgrade_safe != null && message.hasOwnProperty("upgrade_safe")) - if (typeof message.upgrade_safe !== "boolean") - return "upgrade_safe: boolean expected"; - if (message.incremental_from_pos != null && message.hasOwnProperty("incremental_from_pos")) - if (!$util.isString(message.incremental_from_pos)) - return "incremental_from_pos: string expected"; - if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) { - let error = $root.vttime.Duration.verify(message.mysql_shutdown_timeout); - if (error) - return "mysql_shutdown_timeout." + error; - } return null; }; /** - * Creates a BackupShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCellsAliasResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.DeleteCellsAliasResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.BackupShardRequest} BackupShardRequest + * @returns {vtctldata.DeleteCellsAliasResponse} DeleteCellsAliasResponse */ - BackupShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.BackupShardRequest) + DeleteCellsAliasResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteCellsAliasResponse) return object; - let 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) - message.concurrency = object.concurrency | 0; - if (object.upgrade_safe != null) - message.upgrade_safe = Boolean(object.upgrade_safe); - if (object.incremental_from_pos != null) - message.incremental_from_pos = String(object.incremental_from_pos); - if (object.mysql_shutdown_timeout != null) { - if (typeof object.mysql_shutdown_timeout !== "object") - throw TypeError(".vtctldata.BackupShardRequest.mysql_shutdown_timeout: object expected"); - message.mysql_shutdown_timeout = $root.vttime.Duration.fromObject(object.mysql_shutdown_timeout); - } - return message; + return new $root.vtctldata.DeleteCellsAliasResponse(); }; /** - * Creates a plain object from a BackupShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteCellsAliasResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.DeleteCellsAliasResponse * @static - * @param {vtctldata.BackupShardRequest} message BackupShardRequest + * @param {vtctldata.DeleteCellsAliasResponse} message DeleteCellsAliasResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupShardRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.allow_primary = false; - object.concurrency = 0; - object.upgrade_safe = false; - object.incremental_from_pos = ""; - object.mysql_shutdown_timeout = null; - } - 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")) - object.concurrency = message.concurrency; - if (message.upgrade_safe != null && message.hasOwnProperty("upgrade_safe")) - object.upgrade_safe = message.upgrade_safe; - if (message.incremental_from_pos != null && message.hasOwnProperty("incremental_from_pos")) - object.incremental_from_pos = message.incremental_from_pos; - if (message.mysql_shutdown_timeout != null && message.hasOwnProperty("mysql_shutdown_timeout")) - object.mysql_shutdown_timeout = $root.vttime.Duration.toObject(message.mysql_shutdown_timeout, options); - return object; + DeleteCellsAliasResponse.toObject = function toObject() { + return {}; }; /** - * Converts this BackupShardRequest to JSON. + * Converts this DeleteCellsAliasResponse to JSON. * @function toJSON - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.DeleteCellsAliasResponse * @instance * @returns {Object.} JSON object */ - BackupShardRequest.prototype.toJSON = function toJSON() { + DeleteCellsAliasResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BackupShardRequest + * Gets the default type url for DeleteCellsAliasResponse * @function getTypeUrl - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.DeleteCellsAliasResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BackupShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteCellsAliasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.BackupShardRequest"; + return typeUrlPrefix + "/vtctldata.DeleteCellsAliasResponse"; }; - return BackupShardRequest; + return DeleteCellsAliasResponse; })(); - vtctldata.CancelSchemaMigrationRequest = (function() { + vtctldata.DeleteKeyspaceRequest = (function() { /** - * Properties of a CancelSchemaMigrationRequest. + * Properties of a DeleteKeyspaceRequest. * @memberof vtctldata - * @interface ICancelSchemaMigrationRequest - * @property {string|null} [keyspace] CancelSchemaMigrationRequest keyspace - * @property {string|null} [uuid] CancelSchemaMigrationRequest uuid - * @property {vtrpc.ICallerID|null} [caller_id] CancelSchemaMigrationRequest caller_id + * @interface IDeleteKeyspaceRequest + * @property {string|null} [keyspace] DeleteKeyspaceRequest keyspace + * @property {boolean|null} [recursive] DeleteKeyspaceRequest recursive + * @property {boolean|null} [force] DeleteKeyspaceRequest force */ /** - * Constructs a new CancelSchemaMigrationRequest. + * Constructs a new DeleteKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents a CancelSchemaMigrationRequest. - * @implements ICancelSchemaMigrationRequest + * @classdesc Represents a DeleteKeyspaceRequest. + * @implements IDeleteKeyspaceRequest * @constructor - * @param {vtctldata.ICancelSchemaMigrationRequest=} [properties] Properties to set + * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set */ - function CancelSchemaMigrationRequest(properties) { + function DeleteKeyspaceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -135918,90 +144033,90 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * CancelSchemaMigrationRequest keyspace. + * DeleteKeyspaceRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.CancelSchemaMigrationRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @instance */ - CancelSchemaMigrationRequest.prototype.keyspace = ""; + DeleteKeyspaceRequest.prototype.keyspace = ""; /** - * CancelSchemaMigrationRequest uuid. - * @member {string} uuid - * @memberof vtctldata.CancelSchemaMigrationRequest + * DeleteKeyspaceRequest recursive. + * @member {boolean} recursive + * @memberof vtctldata.DeleteKeyspaceRequest * @instance */ - CancelSchemaMigrationRequest.prototype.uuid = ""; + DeleteKeyspaceRequest.prototype.recursive = false; /** - * CancelSchemaMigrationRequest caller_id. - * @member {vtrpc.ICallerID|null|undefined} caller_id - * @memberof vtctldata.CancelSchemaMigrationRequest + * DeleteKeyspaceRequest force. + * @member {boolean} force + * @memberof vtctldata.DeleteKeyspaceRequest * @instance */ - CancelSchemaMigrationRequest.prototype.caller_id = null; + DeleteKeyspaceRequest.prototype.force = false; /** - * Creates a new CancelSchemaMigrationRequest instance using the specified properties. + * Creates a new DeleteKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.CancelSchemaMigrationRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static - * @param {vtctldata.ICancelSchemaMigrationRequest=} [properties] Properties to set - * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest instance + * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest instance */ - CancelSchemaMigrationRequest.create = function create(properties) { - return new CancelSchemaMigrationRequest(properties); + DeleteKeyspaceRequest.create = function create(properties) { + return new DeleteKeyspaceRequest(properties); }; /** - * Encodes the specified CancelSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. + * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.CancelSchemaMigrationRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static - * @param {vtctldata.ICancelSchemaMigrationRequest} message CancelSchemaMigrationRequest message or plain object to encode + * @param {vtctldata.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelSchemaMigrationRequest.encode = function encode(message, writer) { + DeleteKeyspaceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); - if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) - $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.recursive); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); return writer; }; /** - * Encodes the specified CancelSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. + * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CancelSchemaMigrationRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static - * @param {vtctldata.ICancelSchemaMigrationRequest} message CancelSchemaMigrationRequest message or plain object to encode + * @param {vtctldata.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelSchemaMigrationRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer. + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CancelSchemaMigrationRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest + * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelSchemaMigrationRequest.decode = function decode(reader, length) { + DeleteKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CancelSchemaMigrationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteKeyspaceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -136010,11 +144125,11 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 2: { - message.uuid = reader.string(); + message.recursive = reader.bool(); break; } case 3: { - message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.force = reader.bool(); break; } default: @@ -136026,145 +144141,138 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CancelSchemaMigrationRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest + * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelSchemaMigrationRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelSchemaMigrationRequest message. + * Verifies a DeleteKeyspaceRequest message. * @function verify - * @memberof vtctldata.CancelSchemaMigrationRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelSchemaMigrationRequest.verify = function verify(message) { + DeleteKeyspaceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) if (!$util.isString(message.keyspace)) return "keyspace: string expected"; - if (message.uuid != null && message.hasOwnProperty("uuid")) - if (!$util.isString(message.uuid)) - return "uuid: string expected"; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) { - let error = $root.vtrpc.CallerID.verify(message.caller_id); - if (error) - return "caller_id." + error; - } + if (message.recursive != null && message.hasOwnProperty("recursive")) + if (typeof message.recursive !== "boolean") + return "recursive: boolean expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a CancelSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CancelSchemaMigrationRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest + * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest */ - CancelSchemaMigrationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CancelSchemaMigrationRequest) + DeleteKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteKeyspaceRequest) return object; - let message = new $root.vtctldata.CancelSchemaMigrationRequest(); + let message = new $root.vtctldata.DeleteKeyspaceRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.uuid != null) - message.uuid = String(object.uuid); - if (object.caller_id != null) { - if (typeof object.caller_id !== "object") - throw TypeError(".vtctldata.CancelSchemaMigrationRequest.caller_id: object expected"); - message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); - } + if (object.recursive != null) + message.recursive = Boolean(object.recursive); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a CancelSchemaMigrationRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CancelSchemaMigrationRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static - * @param {vtctldata.CancelSchemaMigrationRequest} message CancelSchemaMigrationRequest + * @param {vtctldata.DeleteKeyspaceRequest} message DeleteKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelSchemaMigrationRequest.toObject = function toObject(message, options) { + DeleteKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.keyspace = ""; - object.uuid = ""; - object.caller_id = null; + object.recursive = false; + object.force = false; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.uuid != null && message.hasOwnProperty("uuid")) - object.uuid = message.uuid; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) - object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); + if (message.recursive != null && message.hasOwnProperty("recursive")) + object.recursive = message.recursive; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this CancelSchemaMigrationRequest to JSON. + * Converts this DeleteKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.CancelSchemaMigrationRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @instance * @returns {Object.} JSON object */ - CancelSchemaMigrationRequest.prototype.toJSON = function toJSON() { + DeleteKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelSchemaMigrationRequest + * Gets the default type url for DeleteKeyspaceRequest * @function getTypeUrl - * @memberof vtctldata.CancelSchemaMigrationRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelSchemaMigrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.CancelSchemaMigrationRequest"; + return typeUrlPrefix + "/vtctldata.DeleteKeyspaceRequest"; }; - return CancelSchemaMigrationRequest; + return DeleteKeyspaceRequest; })(); - vtctldata.CancelSchemaMigrationResponse = (function() { + vtctldata.DeleteKeyspaceResponse = (function() { /** - * Properties of a CancelSchemaMigrationResponse. + * Properties of a DeleteKeyspaceResponse. * @memberof vtctldata - * @interface ICancelSchemaMigrationResponse - * @property {Object.|null} [rows_affected_by_shard] CancelSchemaMigrationResponse rows_affected_by_shard + * @interface IDeleteKeyspaceResponse */ /** - * Constructs a new CancelSchemaMigrationResponse. + * Constructs a new DeleteKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents a CancelSchemaMigrationResponse. - * @implements ICancelSchemaMigrationResponse + * @classdesc Represents a DeleteKeyspaceResponse. + * @implements IDeleteKeyspaceResponse * @constructor - * @param {vtctldata.ICancelSchemaMigrationResponse=} [properties] Properties to set + * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set */ - function CancelSchemaMigrationResponse(properties) { - this.rows_affected_by_shard = {}; + function DeleteKeyspaceResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -136172,97 +144280,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * CancelSchemaMigrationResponse rows_affected_by_shard. - * @member {Object.} rows_affected_by_shard - * @memberof vtctldata.CancelSchemaMigrationResponse - * @instance - */ - CancelSchemaMigrationResponse.prototype.rows_affected_by_shard = $util.emptyObject; - - /** - * Creates a new CancelSchemaMigrationResponse instance using the specified properties. + * Creates a new DeleteKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.CancelSchemaMigrationResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static - * @param {vtctldata.ICancelSchemaMigrationResponse=} [properties] Properties to set - * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse instance + * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse instance */ - CancelSchemaMigrationResponse.create = function create(properties) { - return new CancelSchemaMigrationResponse(properties); + DeleteKeyspaceResponse.create = function create(properties) { + return new DeleteKeyspaceResponse(properties); }; /** - * Encodes the specified CancelSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. + * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.CancelSchemaMigrationResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static - * @param {vtctldata.ICancelSchemaMigrationResponse} message CancelSchemaMigrationResponse message or plain object to encode + * @param {vtctldata.IDeleteKeyspaceResponse} message DeleteKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelSchemaMigrationResponse.encode = function encode(message, writer) { + DeleteKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) - for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified CancelSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. + * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CancelSchemaMigrationResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static - * @param {vtctldata.ICancelSchemaMigrationResponse} message CancelSchemaMigrationResponse message or plain object to encode + * @param {vtctldata.IDeleteKeyspaceResponse} message DeleteKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelSchemaMigrationResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer. + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CancelSchemaMigrationResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse + * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelSchemaMigrationResponse.decode = function decode(reader, length) { + DeleteKeyspaceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CancelSchemaMigrationResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteKeyspaceResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (message.rows_affected_by_shard === $util.emptyObject) - message.rows_affected_by_shard = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.uint64(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.rows_affected_by_shard[key] = value; - break; - } default: reader.skipType(tag & 7); break; @@ -136272,149 +144346,113 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CancelSchemaMigrationResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse + * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelSchemaMigrationResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelSchemaMigrationResponse message. + * Verifies a DeleteKeyspaceResponse message. * @function verify - * @memberof vtctldata.CancelSchemaMigrationResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelSchemaMigrationResponse.verify = function verify(message) { + DeleteKeyspaceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { - if (!$util.isObject(message.rows_affected_by_shard)) - return "rows_affected_by_shard: object expected"; - let key = Object.keys(message.rows_affected_by_shard); - for (let i = 0; i < key.length; ++i) - if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) - return "rows_affected_by_shard: integer|Long{k:string} expected"; - } return null; }; /** - * Creates a CancelSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CancelSchemaMigrationResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse + * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse */ - CancelSchemaMigrationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CancelSchemaMigrationResponse) + DeleteKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteKeyspaceResponse) return object; - let message = new $root.vtctldata.CancelSchemaMigrationResponse(); - if (object.rows_affected_by_shard) { - if (typeof object.rows_affected_by_shard !== "object") - throw TypeError(".vtctldata.CancelSchemaMigrationResponse.rows_affected_by_shard: object expected"); - message.rows_affected_by_shard = {}; - for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) - if ($util.Long) - (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; - else if (typeof object.rows_affected_by_shard[keys[i]] === "string") - message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); - else if (typeof object.rows_affected_by_shard[keys[i]] === "number") - message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; - else if (typeof object.rows_affected_by_shard[keys[i]] === "object") - message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); - } - return message; + return new $root.vtctldata.DeleteKeyspaceResponse(); }; /** - * Creates a plain object from a CancelSchemaMigrationResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteKeyspaceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CancelSchemaMigrationResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static - * @param {vtctldata.CancelSchemaMigrationResponse} message CancelSchemaMigrationResponse + * @param {vtctldata.DeleteKeyspaceResponse} message DeleteKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelSchemaMigrationResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.objects || options.defaults) - object.rows_affected_by_shard = {}; - let keys2; - if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { - object.rows_affected_by_shard = {}; - for (let j = 0; j < keys2.length; ++j) - if (typeof message.rows_affected_by_shard[keys2[j]] === "number") - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; - else - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; - } - return object; + DeleteKeyspaceResponse.toObject = function toObject() { + return {}; }; /** - * Converts this CancelSchemaMigrationResponse to JSON. + * Converts this DeleteKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.CancelSchemaMigrationResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @instance * @returns {Object.} JSON object */ - CancelSchemaMigrationResponse.prototype.toJSON = function toJSON() { + DeleteKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelSchemaMigrationResponse + * Gets the default type url for DeleteKeyspaceResponse * @function getTypeUrl - * @memberof vtctldata.CancelSchemaMigrationResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelSchemaMigrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.CancelSchemaMigrationResponse"; + return typeUrlPrefix + "/vtctldata.DeleteKeyspaceResponse"; }; - return CancelSchemaMigrationResponse; + return DeleteKeyspaceResponse; })(); - vtctldata.ChangeTabletTagsRequest = (function() { + vtctldata.DeleteShardsRequest = (function() { /** - * Properties of a ChangeTabletTagsRequest. + * Properties of a DeleteShardsRequest. * @memberof vtctldata - * @interface IChangeTabletTagsRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] ChangeTabletTagsRequest tablet_alias - * @property {Object.|null} [tags] ChangeTabletTagsRequest tags - * @property {boolean|null} [replace] ChangeTabletTagsRequest replace + * @interface IDeleteShardsRequest + * @property {Array.|null} [shards] DeleteShardsRequest shards + * @property {boolean|null} [recursive] DeleteShardsRequest recursive + * @property {boolean|null} [even_if_serving] DeleteShardsRequest even_if_serving + * @property {boolean|null} [force] DeleteShardsRequest force */ /** - * Constructs a new ChangeTabletTagsRequest. + * Constructs a new DeleteShardsRequest. * @memberof vtctldata - * @classdesc Represents a ChangeTabletTagsRequest. - * @implements IChangeTabletTagsRequest + * @classdesc Represents a DeleteShardsRequest. + * @implements IDeleteShardsRequest * @constructor - * @param {vtctldata.IChangeTabletTagsRequest=} [properties] Properties to set + * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set */ - function ChangeTabletTagsRequest(properties) { - this.tags = {}; + function DeleteShardsRequest(properties) { + this.shards = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -136422,123 +144460,120 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ChangeTabletTagsRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.ChangeTabletTagsRequest + * DeleteShardsRequest shards. + * @member {Array.} shards + * @memberof vtctldata.DeleteShardsRequest * @instance */ - ChangeTabletTagsRequest.prototype.tablet_alias = null; + DeleteShardsRequest.prototype.shards = $util.emptyArray; /** - * ChangeTabletTagsRequest tags. - * @member {Object.} tags - * @memberof vtctldata.ChangeTabletTagsRequest + * DeleteShardsRequest recursive. + * @member {boolean} recursive + * @memberof vtctldata.DeleteShardsRequest * @instance */ - ChangeTabletTagsRequest.prototype.tags = $util.emptyObject; + DeleteShardsRequest.prototype.recursive = false; /** - * ChangeTabletTagsRequest replace. - * @member {boolean} replace - * @memberof vtctldata.ChangeTabletTagsRequest + * DeleteShardsRequest even_if_serving. + * @member {boolean} even_if_serving + * @memberof vtctldata.DeleteShardsRequest * @instance */ - ChangeTabletTagsRequest.prototype.replace = false; + DeleteShardsRequest.prototype.even_if_serving = false; /** - * Creates a new ChangeTabletTagsRequest instance using the specified properties. + * DeleteShardsRequest force. + * @member {boolean} force + * @memberof vtctldata.DeleteShardsRequest + * @instance + */ + DeleteShardsRequest.prototype.force = false; + + /** + * Creates a new DeleteShardsRequest instance using the specified properties. * @function create - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.DeleteShardsRequest * @static - * @param {vtctldata.IChangeTabletTagsRequest=} [properties] Properties to set - * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest instance + * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest instance */ - ChangeTabletTagsRequest.create = function create(properties) { - return new ChangeTabletTagsRequest(properties); + DeleteShardsRequest.create = function create(properties) { + return new DeleteShardsRequest(properties); }; /** - * Encodes the specified ChangeTabletTagsRequest message. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. + * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.DeleteShardsRequest * @static - * @param {vtctldata.IChangeTabletTagsRequest} message ChangeTabletTagsRequest message or plain object to encode + * @param {vtctldata.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTagsRequest.encode = function encode(message, writer) { + DeleteShardsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) - for (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); + if (message.shards != null && message.shards.length) + for (let i = 0; i < message.shards.length; ++i) + $root.vtctldata.Shard.encode(message.shards[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.recursive); + if (message.even_if_serving != null && Object.hasOwnProperty.call(message, "even_if_serving")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.even_if_serving); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.force); return writer; }; /** - * Encodes the specified ChangeTabletTagsRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. + * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.DeleteShardsRequest * @static - * @param {vtctldata.IChangeTabletTagsRequest} message ChangeTabletTagsRequest message or plain object to encode + * @param {vtctldata.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTagsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteShardsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer. + * Decodes a DeleteShardsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.DeleteShardsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest + * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTagsRequest.decode = function decode(reader, length) { + DeleteShardsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsRequest(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteShardsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + if (!(message.shards && message.shards.length)) + message.shards = []; + message.shards.push($root.vtctldata.Shard.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; + message.recursive = reader.bool(); break; } - case 3: { - message.replace = reader.bool(); + case 4: { + message.even_if_serving = reader.bool(); + break; + } + case 5: { + message.force = reader.bool(); break; } default: @@ -136550,162 +144585,164 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.DeleteShardsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest + * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTagsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteShardsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTabletTagsRequest message. + * Verifies a DeleteShardsRequest message. * @function verify - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.DeleteShardsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeTabletTagsRequest.verify = function verify(message) { + DeleteShardsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!$util.isObject(message.tags)) - return "tags: object expected"; - let key = Object.keys(message.tags); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.tags[key[i]])) - return "tags: string{k:string} expected"; + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!Array.isArray(message.shards)) + return "shards: array expected"; + for (let i = 0; i < message.shards.length; ++i) { + let error = $root.vtctldata.Shard.verify(message.shards[i]); + if (error) + return "shards." + error; + } } - if (message.replace != null && message.hasOwnProperty("replace")) - if (typeof message.replace !== "boolean") - return "replace: boolean expected"; + if (message.recursive != null && message.hasOwnProperty("recursive")) + if (typeof message.recursive !== "boolean") + return "recursive: boolean expected"; + if (message.even_if_serving != null && message.hasOwnProperty("even_if_serving")) + if (typeof message.even_if_serving !== "boolean") + return "even_if_serving: boolean expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a ChangeTabletTagsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.DeleteShardsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest + * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest */ - ChangeTabletTagsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ChangeTabletTagsRequest) + DeleteShardsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteShardsRequest) return object; - 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"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.tags) { - if (typeof object.tags !== "object") - throw TypeError(".vtctldata.ChangeTabletTagsRequest.tags: object expected"); - message.tags = {}; - for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) - message.tags[keys[i]] = String(object.tags[keys[i]]); + let message = new $root.vtctldata.DeleteShardsRequest(); + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".vtctldata.DeleteShardsRequest.shards: array expected"); + message.shards = []; + for (let i = 0; i < object.shards.length; ++i) { + if (typeof object.shards[i] !== "object") + throw TypeError(".vtctldata.DeleteShardsRequest.shards: object expected"); + message.shards[i] = $root.vtctldata.Shard.fromObject(object.shards[i]); + } } - if (object.replace != null) - message.replace = Boolean(object.replace); + if (object.recursive != null) + message.recursive = Boolean(object.recursive); + if (object.even_if_serving != null) + message.even_if_serving = Boolean(object.even_if_serving); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a ChangeTabletTagsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.DeleteShardsRequest * @static - * @param {vtctldata.ChangeTabletTagsRequest} message ChangeTabletTagsRequest + * @param {vtctldata.DeleteShardsRequest} message DeleteShardsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTabletTagsRequest.toObject = function toObject(message, options) { + DeleteShardsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.tags = {}; + if (options.arrays || options.defaults) + object.shards = []; if (options.defaults) { - object.tablet_alias = null; - object.replace = false; + object.recursive = false; + object.even_if_serving = false; + object.force = false; } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - let keys2; - if (message.tags && (keys2 = Object.keys(message.tags)).length) { - object.tags = {}; - for (let j = 0; j < keys2.length; ++j) - object.tags[keys2[j]] = message.tags[keys2[j]]; + if (message.shards && message.shards.length) { + object.shards = []; + for (let j = 0; j < message.shards.length; ++j) + object.shards[j] = $root.vtctldata.Shard.toObject(message.shards[j], options); } - if (message.replace != null && message.hasOwnProperty("replace")) - object.replace = message.replace; + if (message.recursive != null && message.hasOwnProperty("recursive")) + object.recursive = message.recursive; + if (message.even_if_serving != null && message.hasOwnProperty("even_if_serving")) + object.even_if_serving = message.even_if_serving; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this ChangeTabletTagsRequest to JSON. + * Converts this DeleteShardsRequest to JSON. * @function toJSON - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.DeleteShardsRequest * @instance * @returns {Object.} JSON object */ - ChangeTabletTagsRequest.prototype.toJSON = function toJSON() { + DeleteShardsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChangeTabletTagsRequest + * Gets the default type url for DeleteShardsRequest * @function getTypeUrl - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.DeleteShardsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChangeTabletTagsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteShardsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ChangeTabletTagsRequest"; + return typeUrlPrefix + "/vtctldata.DeleteShardsRequest"; }; - return ChangeTabletTagsRequest; + return DeleteShardsRequest; })(); - vtctldata.ChangeTabletTagsResponse = (function() { + vtctldata.DeleteShardsResponse = (function() { /** - * Properties of a ChangeTabletTagsResponse. + * Properties of a DeleteShardsResponse. * @memberof vtctldata - * @interface IChangeTabletTagsResponse - * @property {Object.|null} [before_tags] ChangeTabletTagsResponse before_tags - * @property {Object.|null} [after_tags] ChangeTabletTagsResponse after_tags + * @interface IDeleteShardsResponse */ /** - * Constructs a new ChangeTabletTagsResponse. + * Constructs a new DeleteShardsResponse. * @memberof vtctldata - * @classdesc Represents a ChangeTabletTagsResponse. - * @implements IChangeTabletTagsResponse + * @classdesc Represents a DeleteShardsResponse. + * @implements IDeleteShardsResponse * @constructor - * @param {vtctldata.IChangeTabletTagsResponse=} [properties] Properties to set + * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set */ - function ChangeTabletTagsResponse(properties) { - this.before_tags = {}; - this.after_tags = {}; + function DeleteShardsResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -136713,131 +144750,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ChangeTabletTagsResponse before_tags. - * @member {Object.} before_tags - * @memberof vtctldata.ChangeTabletTagsResponse - * @instance - */ - ChangeTabletTagsResponse.prototype.before_tags = $util.emptyObject; - - /** - * ChangeTabletTagsResponse after_tags. - * @member {Object.} after_tags - * @memberof vtctldata.ChangeTabletTagsResponse - * @instance - */ - ChangeTabletTagsResponse.prototype.after_tags = $util.emptyObject; - - /** - * Creates a new ChangeTabletTagsResponse instance using the specified properties. + * Creates a new DeleteShardsResponse instance using the specified properties. * @function create - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.DeleteShardsResponse * @static - * @param {vtctldata.IChangeTabletTagsResponse=} [properties] Properties to set - * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse instance + * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse instance */ - ChangeTabletTagsResponse.create = function create(properties) { - return new ChangeTabletTagsResponse(properties); + DeleteShardsResponse.create = function create(properties) { + return new DeleteShardsResponse(properties); }; /** - * Encodes the specified ChangeTabletTagsResponse message. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. + * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.DeleteShardsResponse * @static - * @param {vtctldata.IChangeTabletTagsResponse} message ChangeTabletTagsResponse message or plain object to encode + * @param {vtctldata.IDeleteShardsResponse} message DeleteShardsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTagsResponse.encode = function encode(message, writer) { + DeleteShardsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.before_tags != null && Object.hasOwnProperty.call(message, "before_tags")) - for (let keys = Object.keys(message.before_tags), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.before_tags[keys[i]]).ldelim(); - if (message.after_tags != null && Object.hasOwnProperty.call(message, "after_tags")) - for (let keys = Object.keys(message.after_tags), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.after_tags[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified ChangeTabletTagsResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. + * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.DeleteShardsResponse * @static - * @param {vtctldata.IChangeTabletTagsResponse} message ChangeTabletTagsResponse message or plain object to encode + * @param {vtctldata.IDeleteShardsResponse} message DeleteShardsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTagsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteShardsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer. + * Decodes a DeleteShardsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.DeleteShardsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse + * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTagsResponse.decode = function decode(reader, length) { + DeleteShardsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteShardsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (message.before_tags === $util.emptyObject) - message.before_tags = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.before_tags[key] = value; - break; - } - case 2: { - if (message.after_tags === $util.emptyObject) - message.after_tags = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.after_tags[key] = value; - break; - } default: reader.skipType(tag & 7); break; @@ -136847,160 +144816,109 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.DeleteShardsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse + * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTagsResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteShardsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTabletTagsResponse message. + * Verifies a DeleteShardsResponse message. * @function verify - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.DeleteShardsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeTabletTagsResponse.verify = function verify(message) { + DeleteShardsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.before_tags != null && message.hasOwnProperty("before_tags")) { - if (!$util.isObject(message.before_tags)) - return "before_tags: object expected"; - let key = Object.keys(message.before_tags); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.before_tags[key[i]])) - return "before_tags: string{k:string} expected"; - } - if (message.after_tags != null && message.hasOwnProperty("after_tags")) { - if (!$util.isObject(message.after_tags)) - return "after_tags: object expected"; - let key = Object.keys(message.after_tags); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.after_tags[key[i]])) - return "after_tags: string{k:string} expected"; - } return null; }; /** - * Creates a ChangeTabletTagsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.DeleteShardsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse + * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse */ - ChangeTabletTagsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ChangeTabletTagsResponse) + DeleteShardsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteShardsResponse) return object; - let message = new $root.vtctldata.ChangeTabletTagsResponse(); - if (object.before_tags) { - if (typeof object.before_tags !== "object") - throw TypeError(".vtctldata.ChangeTabletTagsResponse.before_tags: object expected"); - message.before_tags = {}; - for (let keys = Object.keys(object.before_tags), i = 0; i < keys.length; ++i) - message.before_tags[keys[i]] = String(object.before_tags[keys[i]]); - } - if (object.after_tags) { - if (typeof object.after_tags !== "object") - throw TypeError(".vtctldata.ChangeTabletTagsResponse.after_tags: object expected"); - message.after_tags = {}; - for (let keys = Object.keys(object.after_tags), i = 0; i < keys.length; ++i) - message.after_tags[keys[i]] = String(object.after_tags[keys[i]]); - } - return message; + return new $root.vtctldata.DeleteShardsResponse(); }; /** - * Creates a plain object from a ChangeTabletTagsResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteShardsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.DeleteShardsResponse * @static - * @param {vtctldata.ChangeTabletTagsResponse} message ChangeTabletTagsResponse + * @param {vtctldata.DeleteShardsResponse} message DeleteShardsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTabletTagsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.objects || options.defaults) { - object.before_tags = {}; - object.after_tags = {}; - } - let keys2; - if (message.before_tags && (keys2 = Object.keys(message.before_tags)).length) { - object.before_tags = {}; - for (let j = 0; j < keys2.length; ++j) - object.before_tags[keys2[j]] = message.before_tags[keys2[j]]; - } - if (message.after_tags && (keys2 = Object.keys(message.after_tags)).length) { - object.after_tags = {}; - for (let j = 0; j < keys2.length; ++j) - object.after_tags[keys2[j]] = message.after_tags[keys2[j]]; - } - return object; + DeleteShardsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ChangeTabletTagsResponse to JSON. + * Converts this DeleteShardsResponse to JSON. * @function toJSON - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.DeleteShardsResponse * @instance * @returns {Object.} JSON object */ - ChangeTabletTagsResponse.prototype.toJSON = function toJSON() { + DeleteShardsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChangeTabletTagsResponse + * Gets the default type url for DeleteShardsResponse * @function getTypeUrl - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.DeleteShardsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChangeTabletTagsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteShardsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ChangeTabletTagsResponse"; + return typeUrlPrefix + "/vtctldata.DeleteShardsResponse"; }; - return ChangeTabletTagsResponse; + return DeleteShardsResponse; })(); - vtctldata.ChangeTabletTypeRequest = (function() { + vtctldata.DeleteSrvVSchemaRequest = (function() { /** - * Properties of a ChangeTabletTypeRequest. + * Properties of a DeleteSrvVSchemaRequest. * @memberof vtctldata - * @interface IChangeTabletTypeRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] ChangeTabletTypeRequest tablet_alias - * @property {topodata.TabletType|null} [db_type] ChangeTabletTypeRequest db_type - * @property {boolean|null} [dry_run] ChangeTabletTypeRequest dry_run + * @interface IDeleteSrvVSchemaRequest + * @property {string|null} [cell] DeleteSrvVSchemaRequest cell */ /** - * Constructs a new ChangeTabletTypeRequest. + * Constructs a new DeleteSrvVSchemaRequest. * @memberof vtctldata - * @classdesc Represents a ChangeTabletTypeRequest. - * @implements IChangeTabletTypeRequest + * @classdesc Represents a DeleteSrvVSchemaRequest. + * @implements IDeleteSrvVSchemaRequest * @constructor - * @param {vtctldata.IChangeTabletTypeRequest=} [properties] Properties to set + * @param {vtctldata.IDeleteSrvVSchemaRequest=} [properties] Properties to set */ - function ChangeTabletTypeRequest(properties) { + function DeleteSrvVSchemaRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -137008,103 +144926,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ChangeTabletTypeRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.ChangeTabletTypeRequest - * @instance - */ - ChangeTabletTypeRequest.prototype.tablet_alias = null; - - /** - * ChangeTabletTypeRequest db_type. - * @member {topodata.TabletType} db_type - * @memberof vtctldata.ChangeTabletTypeRequest - * @instance - */ - ChangeTabletTypeRequest.prototype.db_type = 0; - - /** - * ChangeTabletTypeRequest dry_run. - * @member {boolean} dry_run - * @memberof vtctldata.ChangeTabletTypeRequest + * DeleteSrvVSchemaRequest cell. + * @member {string} cell + * @memberof vtctldata.DeleteSrvVSchemaRequest * @instance */ - ChangeTabletTypeRequest.prototype.dry_run = false; + DeleteSrvVSchemaRequest.prototype.cell = ""; /** - * Creates a new ChangeTabletTypeRequest instance using the specified properties. + * Creates a new DeleteSrvVSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteSrvVSchemaRequest * @static - * @param {vtctldata.IChangeTabletTypeRequest=} [properties] Properties to set - * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest instance + * @param {vtctldata.IDeleteSrvVSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteSrvVSchemaRequest} DeleteSrvVSchemaRequest instance */ - ChangeTabletTypeRequest.create = function create(properties) { - return new ChangeTabletTypeRequest(properties); + DeleteSrvVSchemaRequest.create = function create(properties) { + return new DeleteSrvVSchemaRequest(properties); }; /** - * Encodes the specified ChangeTabletTypeRequest message. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * Encodes the specified DeleteSrvVSchemaRequest message. Does not implicitly {@link vtctldata.DeleteSrvVSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteSrvVSchemaRequest * @static - * @param {vtctldata.IChangeTabletTypeRequest} message ChangeTabletTypeRequest message or plain object to encode + * @param {vtctldata.IDeleteSrvVSchemaRequest} message DeleteSrvVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTypeRequest.encode = function encode(message, writer) { + DeleteSrvVSchemaRequest.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.db_type != null && Object.hasOwnProperty.call(message, "db_type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.db_type); - if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dry_run); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); return writer; }; /** - * Encodes the specified ChangeTabletTypeRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * Encodes the specified DeleteSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteSrvVSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteSrvVSchemaRequest * @static - * @param {vtctldata.IChangeTabletTypeRequest} message ChangeTabletTypeRequest message or plain object to encode + * @param {vtctldata.IDeleteSrvVSchemaRequest} message DeleteSrvVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSrvVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. + * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteSrvVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @returns {vtctldata.DeleteSrvVSchemaRequest} DeleteSrvVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTypeRequest.decode = function decode(reader, length) { + DeleteSrvVSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTypeRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteSrvVSchemaRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 2: { - message.db_type = reader.int32(); - break; - } - case 3: { - message.dry_run = reader.bool(); + message.cell = reader.string(); break; } default: @@ -137116,210 +145006,121 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteSrvVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @returns {vtctldata.DeleteSrvVSchemaRequest} DeleteSrvVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTypeRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteSrvVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTabletTypeRequest message. + * Verifies a DeleteSrvVSchemaRequest message. * @function verify - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteSrvVSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeTabletTypeRequest.verify = function verify(message) { + DeleteSrvVSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.db_type != null && message.hasOwnProperty("db_type")) - switch (message.db_type) { - default: - return "db_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.dry_run != null && message.hasOwnProperty("dry_run")) - if (typeof message.dry_run !== "boolean") - return "dry_run: boolean expected"; + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; return null; }; /** - * Creates a ChangeTabletTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteSrvVSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @returns {vtctldata.DeleteSrvVSchemaRequest} DeleteSrvVSchemaRequest */ - ChangeTabletTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ChangeTabletTypeRequest) + DeleteSrvVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteSrvVSchemaRequest) return object; - let message = new $root.vtctldata.ChangeTabletTypeRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.ChangeTabletTypeRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - switch (object.db_type) { - default: - if (typeof object.db_type === "number") { - message.db_type = object.db_type; - break; - } - break; - case "UNKNOWN": - case 0: - message.db_type = 0; - break; - case "PRIMARY": - case 1: - message.db_type = 1; - break; - case "MASTER": - case 1: - message.db_type = 1; - break; - case "REPLICA": - case 2: - message.db_type = 2; - break; - case "RDONLY": - case 3: - message.db_type = 3; - break; - case "BATCH": - case 3: - message.db_type = 3; - break; - case "SPARE": - case 4: - message.db_type = 4; - break; - case "EXPERIMENTAL": - case 5: - message.db_type = 5; - break; - case "BACKUP": - case 6: - message.db_type = 6; - break; - case "RESTORE": - case 7: - message.db_type = 7; - break; - case "DRAINED": - case 8: - message.db_type = 8; - break; - } - if (object.dry_run != null) - message.dry_run = Boolean(object.dry_run); + let message = new $root.vtctldata.DeleteSrvVSchemaRequest(); + if (object.cell != null) + message.cell = String(object.cell); return message; }; /** - * Creates a plain object from a ChangeTabletTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteSrvVSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteSrvVSchemaRequest * @static - * @param {vtctldata.ChangeTabletTypeRequest} message ChangeTabletTypeRequest + * @param {vtctldata.DeleteSrvVSchemaRequest} message DeleteSrvVSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTabletTypeRequest.toObject = function toObject(message, options) { + DeleteSrvVSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.tablet_alias = null; - object.db_type = options.enums === String ? "UNKNOWN" : 0; - object.dry_run = false; - } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.db_type != null && message.hasOwnProperty("db_type")) - object.db_type = options.enums === String ? $root.topodata.TabletType[message.db_type] === undefined ? message.db_type : $root.topodata.TabletType[message.db_type] : message.db_type; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - object.dry_run = message.dry_run; + if (options.defaults) + object.cell = ""; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; return object; }; /** - * Converts this ChangeTabletTypeRequest to JSON. + * Converts this DeleteSrvVSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteSrvVSchemaRequest * @instance * @returns {Object.} JSON object */ - ChangeTabletTypeRequest.prototype.toJSON = function toJSON() { + DeleteSrvVSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChangeTabletTypeRequest + * Gets the default type url for DeleteSrvVSchemaRequest * @function getTypeUrl - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteSrvVSchemaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChangeTabletTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteSrvVSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ChangeTabletTypeRequest"; + return typeUrlPrefix + "/vtctldata.DeleteSrvVSchemaRequest"; }; - return ChangeTabletTypeRequest; + return DeleteSrvVSchemaRequest; })(); - vtctldata.ChangeTabletTypeResponse = (function() { + vtctldata.DeleteSrvVSchemaResponse = (function() { /** - * Properties of a ChangeTabletTypeResponse. + * Properties of a DeleteSrvVSchemaResponse. * @memberof vtctldata - * @interface IChangeTabletTypeResponse - * @property {topodata.ITablet|null} [before_tablet] ChangeTabletTypeResponse before_tablet - * @property {topodata.ITablet|null} [after_tablet] ChangeTabletTypeResponse after_tablet - * @property {boolean|null} [was_dry_run] ChangeTabletTypeResponse was_dry_run + * @interface IDeleteSrvVSchemaResponse */ /** - * Constructs a new ChangeTabletTypeResponse. + * Constructs a new DeleteSrvVSchemaResponse. * @memberof vtctldata - * @classdesc Represents a ChangeTabletTypeResponse. - * @implements IChangeTabletTypeResponse + * @classdesc Represents a DeleteSrvVSchemaResponse. + * @implements IDeleteSrvVSchemaResponse * @constructor - * @param {vtctldata.IChangeTabletTypeResponse=} [properties] Properties to set + * @param {vtctldata.IDeleteSrvVSchemaResponse=} [properties] Properties to set */ - function ChangeTabletTypeResponse(properties) { + function DeleteSrvVSchemaResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -137327,105 +145128,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ChangeTabletTypeResponse before_tablet. - * @member {topodata.ITablet|null|undefined} before_tablet - * @memberof vtctldata.ChangeTabletTypeResponse - * @instance - */ - ChangeTabletTypeResponse.prototype.before_tablet = null; - - /** - * ChangeTabletTypeResponse after_tablet. - * @member {topodata.ITablet|null|undefined} after_tablet - * @memberof vtctldata.ChangeTabletTypeResponse - * @instance - */ - ChangeTabletTypeResponse.prototype.after_tablet = null; - - /** - * ChangeTabletTypeResponse was_dry_run. - * @member {boolean} was_dry_run - * @memberof vtctldata.ChangeTabletTypeResponse - * @instance - */ - ChangeTabletTypeResponse.prototype.was_dry_run = false; - - /** - * Creates a new ChangeTabletTypeResponse instance using the specified properties. + * Creates a new DeleteSrvVSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteSrvVSchemaResponse * @static - * @param {vtctldata.IChangeTabletTypeResponse=} [properties] Properties to set - * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse instance + * @param {vtctldata.IDeleteSrvVSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteSrvVSchemaResponse} DeleteSrvVSchemaResponse instance */ - ChangeTabletTypeResponse.create = function create(properties) { - return new ChangeTabletTypeResponse(properties); + DeleteSrvVSchemaResponse.create = function create(properties) { + return new DeleteSrvVSchemaResponse(properties); }; /** - * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * Encodes the specified DeleteSrvVSchemaResponse message. Does not implicitly {@link vtctldata.DeleteSrvVSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteSrvVSchemaResponse * @static - * @param {vtctldata.IChangeTabletTypeResponse} message ChangeTabletTypeResponse message or plain object to encode + * @param {vtctldata.IDeleteSrvVSchemaResponse} message DeleteSrvVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTypeResponse.encode = function encode(message, writer) { + DeleteSrvVSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.before_tablet != null && Object.hasOwnProperty.call(message, "before_tablet")) - $root.topodata.Tablet.encode(message.before_tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.after_tablet != null && Object.hasOwnProperty.call(message, "after_tablet")) - $root.topodata.Tablet.encode(message.after_tablet, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.was_dry_run != null && Object.hasOwnProperty.call(message, "was_dry_run")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.was_dry_run); return writer; }; /** - * Encodes the specified ChangeTabletTypeResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * Encodes the specified DeleteSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteSrvVSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteSrvVSchemaResponse * @static - * @param {vtctldata.IChangeTabletTypeResponse} message ChangeTabletTypeResponse message or plain object to encode + * @param {vtctldata.IDeleteSrvVSchemaResponse} message DeleteSrvVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTypeResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSrvVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. + * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteSrvVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @returns {vtctldata.DeleteSrvVSchemaResponse} DeleteSrvVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTypeResponse.decode = function decode(reader, length) { + DeleteSrvVSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTypeResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteSrvVSchemaResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.before_tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); - break; - } - case 2: { - message.after_tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); - break; - } - case 3: { - message.was_dry_run = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -137435,153 +145194,111 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteSrvVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @returns {vtctldata.DeleteSrvVSchemaResponse} DeleteSrvVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTypeResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteSrvVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTabletTypeResponse message. + * Verifies a DeleteSrvVSchemaResponse message. * @function verify - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteSrvVSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeTabletTypeResponse.verify = function verify(message) { + DeleteSrvVSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.before_tablet != null && message.hasOwnProperty("before_tablet")) { - let error = $root.topodata.Tablet.verify(message.before_tablet); - if (error) - return "before_tablet." + error; - } - if (message.after_tablet != null && message.hasOwnProperty("after_tablet")) { - let error = $root.topodata.Tablet.verify(message.after_tablet); - if (error) - return "after_tablet." + error; - } - if (message.was_dry_run != null && message.hasOwnProperty("was_dry_run")) - if (typeof message.was_dry_run !== "boolean") - return "was_dry_run: boolean expected"; return null; }; /** - * Creates a ChangeTabletTypeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteSrvVSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @returns {vtctldata.DeleteSrvVSchemaResponse} DeleteSrvVSchemaResponse */ - ChangeTabletTypeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ChangeTabletTypeResponse) + DeleteSrvVSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteSrvVSchemaResponse) return object; - let message = new $root.vtctldata.ChangeTabletTypeResponse(); - if (object.before_tablet != null) { - if (typeof object.before_tablet !== "object") - throw TypeError(".vtctldata.ChangeTabletTypeResponse.before_tablet: object expected"); - message.before_tablet = $root.topodata.Tablet.fromObject(object.before_tablet); - } - if (object.after_tablet != null) { - if (typeof object.after_tablet !== "object") - throw TypeError(".vtctldata.ChangeTabletTypeResponse.after_tablet: object expected"); - message.after_tablet = $root.topodata.Tablet.fromObject(object.after_tablet); - } - if (object.was_dry_run != null) - message.was_dry_run = Boolean(object.was_dry_run); - return message; + return new $root.vtctldata.DeleteSrvVSchemaResponse(); }; /** - * Creates a plain object from a ChangeTabletTypeResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteSrvVSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteSrvVSchemaResponse * @static - * @param {vtctldata.ChangeTabletTypeResponse} message ChangeTabletTypeResponse + * @param {vtctldata.DeleteSrvVSchemaResponse} message DeleteSrvVSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTabletTypeResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.before_tablet = null; - object.after_tablet = null; - object.was_dry_run = false; - } - if (message.before_tablet != null && message.hasOwnProperty("before_tablet")) - object.before_tablet = $root.topodata.Tablet.toObject(message.before_tablet, options); - if (message.after_tablet != null && message.hasOwnProperty("after_tablet")) - object.after_tablet = $root.topodata.Tablet.toObject(message.after_tablet, options); - if (message.was_dry_run != null && message.hasOwnProperty("was_dry_run")) - object.was_dry_run = message.was_dry_run; - return object; + DeleteSrvVSchemaResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ChangeTabletTypeResponse to JSON. + * Converts this DeleteSrvVSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteSrvVSchemaResponse * @instance * @returns {Object.} JSON object */ - ChangeTabletTypeResponse.prototype.toJSON = function toJSON() { + DeleteSrvVSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChangeTabletTypeResponse + * Gets the default type url for DeleteSrvVSchemaResponse * @function getTypeUrl - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteSrvVSchemaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChangeTabletTypeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteSrvVSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ChangeTabletTypeResponse"; + return typeUrlPrefix + "/vtctldata.DeleteSrvVSchemaResponse"; }; - return ChangeTabletTypeResponse; + return DeleteSrvVSchemaResponse; })(); - vtctldata.CheckThrottlerRequest = (function() { + vtctldata.DeleteTabletsRequest = (function() { /** - * Properties of a CheckThrottlerRequest. + * Properties of a DeleteTabletsRequest. * @memberof vtctldata - * @interface ICheckThrottlerRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] CheckThrottlerRequest tablet_alias - * @property {string|null} [app_name] CheckThrottlerRequest app_name - * @property {string|null} [scope] CheckThrottlerRequest scope - * @property {boolean|null} [skip_request_heartbeats] CheckThrottlerRequest skip_request_heartbeats - * @property {boolean|null} [ok_if_not_exists] CheckThrottlerRequest ok_if_not_exists + * @interface IDeleteTabletsRequest + * @property {Array.|null} [tablet_aliases] DeleteTabletsRequest tablet_aliases + * @property {boolean|null} [allow_primary] DeleteTabletsRequest allow_primary */ /** - * Constructs a new CheckThrottlerRequest. + * Constructs a new DeleteTabletsRequest. * @memberof vtctldata - * @classdesc Represents a CheckThrottlerRequest. - * @implements ICheckThrottlerRequest + * @classdesc Represents a DeleteTabletsRequest. + * @implements IDeleteTabletsRequest * @constructor - * @param {vtctldata.ICheckThrottlerRequest=} [properties] Properties to set + * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set */ - function CheckThrottlerRequest(properties) { + function DeleteTabletsRequest(properties) { + this.tablet_aliases = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -137589,131 +145306,92 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * CheckThrottlerRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.CheckThrottlerRequest - * @instance - */ - CheckThrottlerRequest.prototype.tablet_alias = null; - - /** - * CheckThrottlerRequest app_name. - * @member {string} app_name - * @memberof vtctldata.CheckThrottlerRequest - * @instance - */ - CheckThrottlerRequest.prototype.app_name = ""; - - /** - * CheckThrottlerRequest scope. - * @member {string} scope - * @memberof vtctldata.CheckThrottlerRequest - * @instance - */ - CheckThrottlerRequest.prototype.scope = ""; - - /** - * CheckThrottlerRequest skip_request_heartbeats. - * @member {boolean} skip_request_heartbeats - * @memberof vtctldata.CheckThrottlerRequest + * DeleteTabletsRequest tablet_aliases. + * @member {Array.} tablet_aliases + * @memberof vtctldata.DeleteTabletsRequest * @instance */ - CheckThrottlerRequest.prototype.skip_request_heartbeats = false; + DeleteTabletsRequest.prototype.tablet_aliases = $util.emptyArray; /** - * CheckThrottlerRequest ok_if_not_exists. - * @member {boolean} ok_if_not_exists - * @memberof vtctldata.CheckThrottlerRequest + * DeleteTabletsRequest allow_primary. + * @member {boolean} allow_primary + * @memberof vtctldata.DeleteTabletsRequest * @instance */ - CheckThrottlerRequest.prototype.ok_if_not_exists = false; + DeleteTabletsRequest.prototype.allow_primary = false; /** - * Creates a new CheckThrottlerRequest instance using the specified properties. + * Creates a new DeleteTabletsRequest instance using the specified properties. * @function create - * @memberof vtctldata.CheckThrottlerRequest + * @memberof vtctldata.DeleteTabletsRequest * @static - * @param {vtctldata.ICheckThrottlerRequest=} [properties] Properties to set - * @returns {vtctldata.CheckThrottlerRequest} CheckThrottlerRequest instance + * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest instance */ - CheckThrottlerRequest.create = function create(properties) { - return new CheckThrottlerRequest(properties); + DeleteTabletsRequest.create = function create(properties) { + return new DeleteTabletsRequest(properties); }; /** - * Encodes the specified CheckThrottlerRequest message. Does not implicitly {@link vtctldata.CheckThrottlerRequest.verify|verify} messages. + * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.CheckThrottlerRequest + * @memberof vtctldata.DeleteTabletsRequest * @static - * @param {vtctldata.ICheckThrottlerRequest} message CheckThrottlerRequest message or plain object to encode + * @param {vtctldata.IDeleteTabletsRequest} message DeleteTabletsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckThrottlerRequest.encode = function encode(message, writer) { + DeleteTabletsRequest.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.app_name != null && Object.hasOwnProperty.call(message, "app_name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.app_name); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.scope); - if (message.skip_request_heartbeats != null && Object.hasOwnProperty.call(message, "skip_request_heartbeats")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.skip_request_heartbeats); - if (message.ok_if_not_exists != null && Object.hasOwnProperty.call(message, "ok_if_not_exists")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.ok_if_not_exists); + if (message.tablet_aliases != null && message.tablet_aliases.length) + for (let i = 0; i < message.tablet_aliases.length; ++i) + $root.topodata.TabletAlias.encode(message.tablet_aliases[i], 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); return writer; }; /** - * Encodes the specified CheckThrottlerRequest message, length delimited. Does not implicitly {@link vtctldata.CheckThrottlerRequest.verify|verify} messages. + * Encodes the specified DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CheckThrottlerRequest + * @memberof vtctldata.DeleteTabletsRequest * @static - * @param {vtctldata.ICheckThrottlerRequest} message CheckThrottlerRequest message or plain object to encode + * @param {vtctldata.IDeleteTabletsRequest} message DeleteTabletsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckThrottlerRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CheckThrottlerRequest message from the specified reader or buffer. + * Decodes a DeleteTabletsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CheckThrottlerRequest + * @memberof vtctldata.DeleteTabletsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CheckThrottlerRequest} CheckThrottlerRequest + * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckThrottlerRequest.decode = function decode(reader, length) { + DeleteTabletsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CheckThrottlerRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteTabletsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + if (!(message.tablet_aliases && message.tablet_aliases.length)) + message.tablet_aliases = []; + message.tablet_aliases.push($root.topodata.TabletAlias.decode(reader, reader.uint32())); break; } case 2: { - message.app_name = reader.string(); - break; - } - case 3: { - message.scope = reader.string(); - break; - } - case 4: { - message.skip_request_heartbeats = reader.bool(); - break; - } - case 5: { - message.ok_if_not_exists = reader.bool(); + message.allow_primary = reader.bool(); break; } default: @@ -137725,161 +145403,147 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a CheckThrottlerRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CheckThrottlerRequest + * @memberof vtctldata.DeleteTabletsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CheckThrottlerRequest} CheckThrottlerRequest + * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckThrottlerRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteTabletsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CheckThrottlerRequest message. + * Verifies a DeleteTabletsRequest message. * @function verify - * @memberof vtctldata.CheckThrottlerRequest + * @memberof vtctldata.DeleteTabletsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CheckThrottlerRequest.verify = function verify(message) { + DeleteTabletsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; + if (message.tablet_aliases != null && message.hasOwnProperty("tablet_aliases")) { + if (!Array.isArray(message.tablet_aliases)) + return "tablet_aliases: array expected"; + for (let i = 0; i < message.tablet_aliases.length; ++i) { + let error = $root.topodata.TabletAlias.verify(message.tablet_aliases[i]); + if (error) + return "tablet_aliases." + error; + } } - if (message.app_name != null && message.hasOwnProperty("app_name")) - if (!$util.isString(message.app_name)) - return "app_name: string expected"; - if (message.scope != null && message.hasOwnProperty("scope")) - if (!$util.isString(message.scope)) - return "scope: string expected"; - if (message.skip_request_heartbeats != null && message.hasOwnProperty("skip_request_heartbeats")) - if (typeof message.skip_request_heartbeats !== "boolean") - return "skip_request_heartbeats: boolean expected"; - if (message.ok_if_not_exists != null && message.hasOwnProperty("ok_if_not_exists")) - if (typeof message.ok_if_not_exists !== "boolean") - return "ok_if_not_exists: boolean expected"; + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + if (typeof message.allow_primary !== "boolean") + return "allow_primary: boolean expected"; return null; }; /** - * Creates a CheckThrottlerRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTabletsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CheckThrottlerRequest + * @memberof vtctldata.DeleteTabletsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.CheckThrottlerRequest} CheckThrottlerRequest + * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest */ - CheckThrottlerRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CheckThrottlerRequest) + DeleteTabletsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteTabletsRequest) return object; - let message = new $root.vtctldata.CheckThrottlerRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.CheckThrottlerRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + let message = new $root.vtctldata.DeleteTabletsRequest(); + if (object.tablet_aliases) { + if (!Array.isArray(object.tablet_aliases)) + throw TypeError(".vtctldata.DeleteTabletsRequest.tablet_aliases: array expected"); + message.tablet_aliases = []; + for (let i = 0; i < object.tablet_aliases.length; ++i) { + if (typeof object.tablet_aliases[i] !== "object") + throw TypeError(".vtctldata.DeleteTabletsRequest.tablet_aliases: object expected"); + message.tablet_aliases[i] = $root.topodata.TabletAlias.fromObject(object.tablet_aliases[i]); + } } - if (object.app_name != null) - message.app_name = String(object.app_name); - if (object.scope != null) - message.scope = String(object.scope); - if (object.skip_request_heartbeats != null) - message.skip_request_heartbeats = Boolean(object.skip_request_heartbeats); - if (object.ok_if_not_exists != null) - message.ok_if_not_exists = Boolean(object.ok_if_not_exists); + if (object.allow_primary != null) + message.allow_primary = Boolean(object.allow_primary); return message; }; /** - * Creates a plain object from a CheckThrottlerRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CheckThrottlerRequest + * @memberof vtctldata.DeleteTabletsRequest * @static - * @param {vtctldata.CheckThrottlerRequest} message CheckThrottlerRequest + * @param {vtctldata.DeleteTabletsRequest} message DeleteTabletsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CheckThrottlerRequest.toObject = function toObject(message, options) { + DeleteTabletsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.tablet_alias = null; - object.app_name = ""; - object.scope = ""; - object.skip_request_heartbeats = false; - object.ok_if_not_exists = false; + if (options.arrays || options.defaults) + object.tablet_aliases = []; + if (options.defaults) + object.allow_primary = false; + if (message.tablet_aliases && message.tablet_aliases.length) { + object.tablet_aliases = []; + for (let j = 0; j < message.tablet_aliases.length; ++j) + object.tablet_aliases[j] = $root.topodata.TabletAlias.toObject(message.tablet_aliases[j], options); } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.app_name != null && message.hasOwnProperty("app_name")) - object.app_name = message.app_name; - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = message.scope; - if (message.skip_request_heartbeats != null && message.hasOwnProperty("skip_request_heartbeats")) - object.skip_request_heartbeats = message.skip_request_heartbeats; - if (message.ok_if_not_exists != null && message.hasOwnProperty("ok_if_not_exists")) - object.ok_if_not_exists = message.ok_if_not_exists; + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + object.allow_primary = message.allow_primary; return object; }; /** - * Converts this CheckThrottlerRequest to JSON. + * Converts this DeleteTabletsRequest to JSON. * @function toJSON - * @memberof vtctldata.CheckThrottlerRequest + * @memberof vtctldata.DeleteTabletsRequest * @instance * @returns {Object.} JSON object */ - CheckThrottlerRequest.prototype.toJSON = function toJSON() { + DeleteTabletsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CheckThrottlerRequest + * Gets the default type url for DeleteTabletsRequest * @function getTypeUrl - * @memberof vtctldata.CheckThrottlerRequest + * @memberof vtctldata.DeleteTabletsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CheckThrottlerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteTabletsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.CheckThrottlerRequest"; + return typeUrlPrefix + "/vtctldata.DeleteTabletsRequest"; }; - return CheckThrottlerRequest; + return DeleteTabletsRequest; })(); - vtctldata.CheckThrottlerResponse = (function() { + vtctldata.DeleteTabletsResponse = (function() { /** - * Properties of a CheckThrottlerResponse. + * Properties of a DeleteTabletsResponse. * @memberof vtctldata - * @interface ICheckThrottlerResponse - * @property {topodata.ITabletAlias|null} [tablet_alias] CheckThrottlerResponse tablet_alias - * @property {tabletmanagerdata.ICheckThrottlerResponse|null} [Check] CheckThrottlerResponse Check + * @interface IDeleteTabletsResponse */ /** - * Constructs a new CheckThrottlerResponse. + * Constructs a new DeleteTabletsResponse. * @memberof vtctldata - * @classdesc Represents a CheckThrottlerResponse. - * @implements ICheckThrottlerResponse + * @classdesc Represents a DeleteTabletsResponse. + * @implements IDeleteTabletsResponse * @constructor - * @param {vtctldata.ICheckThrottlerResponse=} [properties] Properties to set + * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set */ - function CheckThrottlerResponse(properties) { + function DeleteTabletsResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -137887,91 +145551,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * CheckThrottlerResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.CheckThrottlerResponse - * @instance - */ - CheckThrottlerResponse.prototype.tablet_alias = null; - - /** - * CheckThrottlerResponse Check. - * @member {tabletmanagerdata.ICheckThrottlerResponse|null|undefined} Check - * @memberof vtctldata.CheckThrottlerResponse - * @instance - */ - CheckThrottlerResponse.prototype.Check = null; - - /** - * Creates a new CheckThrottlerResponse instance using the specified properties. + * Creates a new DeleteTabletsResponse instance using the specified properties. * @function create - * @memberof vtctldata.CheckThrottlerResponse + * @memberof vtctldata.DeleteTabletsResponse * @static - * @param {vtctldata.ICheckThrottlerResponse=} [properties] Properties to set - * @returns {vtctldata.CheckThrottlerResponse} CheckThrottlerResponse instance + * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse instance */ - CheckThrottlerResponse.create = function create(properties) { - return new CheckThrottlerResponse(properties); + DeleteTabletsResponse.create = function create(properties) { + return new DeleteTabletsResponse(properties); }; /** - * Encodes the specified CheckThrottlerResponse message. Does not implicitly {@link vtctldata.CheckThrottlerResponse.verify|verify} messages. + * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.CheckThrottlerResponse + * @memberof vtctldata.DeleteTabletsResponse * @static - * @param {vtctldata.ICheckThrottlerResponse} message CheckThrottlerResponse message or plain object to encode + * @param {vtctldata.IDeleteTabletsResponse} message DeleteTabletsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckThrottlerResponse.encode = function encode(message, writer) { + DeleteTabletsResponse.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.Check != null && Object.hasOwnProperty.call(message, "Check")) - $root.tabletmanagerdata.CheckThrottlerResponse.encode(message.Check, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CheckThrottlerResponse message, length delimited. Does not implicitly {@link vtctldata.CheckThrottlerResponse.verify|verify} messages. + * Encodes the specified DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CheckThrottlerResponse + * @memberof vtctldata.DeleteTabletsResponse * @static - * @param {vtctldata.ICheckThrottlerResponse} message CheckThrottlerResponse message or plain object to encode + * @param {vtctldata.IDeleteTabletsResponse} message DeleteTabletsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckThrottlerResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CheckThrottlerResponse message from the specified reader or buffer. + * Decodes a DeleteTabletsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CheckThrottlerResponse + * @memberof vtctldata.DeleteTabletsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CheckThrottlerResponse} CheckThrottlerResponse + * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckThrottlerResponse.decode = function decode(reader, length) { + DeleteTabletsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CheckThrottlerResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteTabletsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 2: { - message.Check = $root.tabletmanagerdata.CheckThrottlerResponse.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -137981,143 +145617,117 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a CheckThrottlerResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CheckThrottlerResponse + * @memberof vtctldata.DeleteTabletsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CheckThrottlerResponse} CheckThrottlerResponse + * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckThrottlerResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteTabletsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CheckThrottlerResponse message. + * Verifies a DeleteTabletsResponse message. * @function verify - * @memberof vtctldata.CheckThrottlerResponse + * @memberof vtctldata.DeleteTabletsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CheckThrottlerResponse.verify = function verify(message) { + DeleteTabletsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.Check != null && message.hasOwnProperty("Check")) { - let error = $root.tabletmanagerdata.CheckThrottlerResponse.verify(message.Check); - if (error) - return "Check." + error; - } return null; }; /** - * Creates a CheckThrottlerResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTabletsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CheckThrottlerResponse + * @memberof vtctldata.DeleteTabletsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.CheckThrottlerResponse} CheckThrottlerResponse + * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse */ - CheckThrottlerResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CheckThrottlerResponse) + DeleteTabletsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteTabletsResponse) return object; - let message = new $root.vtctldata.CheckThrottlerResponse(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.CheckThrottlerResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.Check != null) { - if (typeof object.Check !== "object") - throw TypeError(".vtctldata.CheckThrottlerResponse.Check: object expected"); - message.Check = $root.tabletmanagerdata.CheckThrottlerResponse.fromObject(object.Check); - } - return message; + return new $root.vtctldata.DeleteTabletsResponse(); }; /** - * Creates a plain object from a CheckThrottlerResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTabletsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CheckThrottlerResponse + * @memberof vtctldata.DeleteTabletsResponse * @static - * @param {vtctldata.CheckThrottlerResponse} message CheckThrottlerResponse + * @param {vtctldata.DeleteTabletsResponse} message DeleteTabletsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CheckThrottlerResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.tablet_alias = null; - object.Check = null; - } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.Check != null && message.hasOwnProperty("Check")) - object.Check = $root.tabletmanagerdata.CheckThrottlerResponse.toObject(message.Check, options); - return object; + DeleteTabletsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this CheckThrottlerResponse to JSON. + * Converts this DeleteTabletsResponse to JSON. * @function toJSON - * @memberof vtctldata.CheckThrottlerResponse + * @memberof vtctldata.DeleteTabletsResponse * @instance * @returns {Object.} JSON object */ - CheckThrottlerResponse.prototype.toJSON = function toJSON() { + DeleteTabletsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CheckThrottlerResponse + * Gets the default type url for DeleteTabletsResponse * @function getTypeUrl - * @memberof vtctldata.CheckThrottlerResponse + * @memberof vtctldata.DeleteTabletsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CheckThrottlerResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteTabletsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.CheckThrottlerResponse"; + return typeUrlPrefix + "/vtctldata.DeleteTabletsResponse"; }; - return CheckThrottlerResponse; + return DeleteTabletsResponse; })(); - vtctldata.CleanupSchemaMigrationRequest = (function() { + vtctldata.EmergencyReparentShardRequest = (function() { /** - * Properties of a CleanupSchemaMigrationRequest. + * Properties of an EmergencyReparentShardRequest. * @memberof vtctldata - * @interface ICleanupSchemaMigrationRequest - * @property {string|null} [keyspace] CleanupSchemaMigrationRequest keyspace - * @property {string|null} [uuid] CleanupSchemaMigrationRequest uuid - * @property {vtrpc.ICallerID|null} [caller_id] CleanupSchemaMigrationRequest caller_id + * @interface IEmergencyReparentShardRequest + * @property {string|null} [keyspace] EmergencyReparentShardRequest keyspace + * @property {string|null} [shard] EmergencyReparentShardRequest shard + * @property {topodata.ITabletAlias|null} [new_primary] EmergencyReparentShardRequest new_primary + * @property {Array.|null} [ignore_replicas] EmergencyReparentShardRequest ignore_replicas + * @property {vttime.IDuration|null} [wait_replicas_timeout] EmergencyReparentShardRequest wait_replicas_timeout + * @property {boolean|null} [prevent_cross_cell_promotion] EmergencyReparentShardRequest prevent_cross_cell_promotion + * @property {boolean|null} [wait_for_all_tablets] EmergencyReparentShardRequest wait_for_all_tablets + * @property {topodata.ITabletAlias|null} [expected_primary] EmergencyReparentShardRequest expected_primary */ /** - * Constructs a new CleanupSchemaMigrationRequest. + * Constructs a new EmergencyReparentShardRequest. * @memberof vtctldata - * @classdesc Represents a CleanupSchemaMigrationRequest. - * @implements ICleanupSchemaMigrationRequest + * @classdesc Represents an EmergencyReparentShardRequest. + * @implements IEmergencyReparentShardRequest * @constructor - * @param {vtctldata.ICleanupSchemaMigrationRequest=} [properties] Properties to set + * @param {vtctldata.IEmergencyReparentShardRequest=} [properties] Properties to set */ - function CleanupSchemaMigrationRequest(properties) { + function EmergencyReparentShardRequest(properties) { + this.ignore_replicas = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -138125,90 +145735,141 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * CleanupSchemaMigrationRequest keyspace. + * EmergencyReparentShardRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.CleanupSchemaMigrationRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @instance */ - CleanupSchemaMigrationRequest.prototype.keyspace = ""; + EmergencyReparentShardRequest.prototype.keyspace = ""; /** - * CleanupSchemaMigrationRequest uuid. - * @member {string} uuid - * @memberof vtctldata.CleanupSchemaMigrationRequest + * EmergencyReparentShardRequest shard. + * @member {string} shard + * @memberof vtctldata.EmergencyReparentShardRequest * @instance */ - CleanupSchemaMigrationRequest.prototype.uuid = ""; + EmergencyReparentShardRequest.prototype.shard = ""; /** - * CleanupSchemaMigrationRequest caller_id. - * @member {vtrpc.ICallerID|null|undefined} caller_id - * @memberof vtctldata.CleanupSchemaMigrationRequest + * EmergencyReparentShardRequest new_primary. + * @member {topodata.ITabletAlias|null|undefined} new_primary + * @memberof vtctldata.EmergencyReparentShardRequest * @instance */ - CleanupSchemaMigrationRequest.prototype.caller_id = null; + EmergencyReparentShardRequest.prototype.new_primary = null; + + /** + * EmergencyReparentShardRequest ignore_replicas. + * @member {Array.} ignore_replicas + * @memberof vtctldata.EmergencyReparentShardRequest + * @instance + */ + EmergencyReparentShardRequest.prototype.ignore_replicas = $util.emptyArray; + + /** + * EmergencyReparentShardRequest wait_replicas_timeout. + * @member {vttime.IDuration|null|undefined} wait_replicas_timeout + * @memberof vtctldata.EmergencyReparentShardRequest + * @instance + */ + EmergencyReparentShardRequest.prototype.wait_replicas_timeout = null; + + /** + * EmergencyReparentShardRequest prevent_cross_cell_promotion. + * @member {boolean} prevent_cross_cell_promotion + * @memberof vtctldata.EmergencyReparentShardRequest + * @instance + */ + EmergencyReparentShardRequest.prototype.prevent_cross_cell_promotion = false; + + /** + * EmergencyReparentShardRequest wait_for_all_tablets. + * @member {boolean} wait_for_all_tablets + * @memberof vtctldata.EmergencyReparentShardRequest + * @instance + */ + EmergencyReparentShardRequest.prototype.wait_for_all_tablets = false; + + /** + * EmergencyReparentShardRequest expected_primary. + * @member {topodata.ITabletAlias|null|undefined} expected_primary + * @memberof vtctldata.EmergencyReparentShardRequest + * @instance + */ + EmergencyReparentShardRequest.prototype.expected_primary = null; /** - * Creates a new CleanupSchemaMigrationRequest instance using the specified properties. + * Creates a new EmergencyReparentShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.CleanupSchemaMigrationRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static - * @param {vtctldata.ICleanupSchemaMigrationRequest=} [properties] Properties to set - * @returns {vtctldata.CleanupSchemaMigrationRequest} CleanupSchemaMigrationRequest instance + * @param {vtctldata.IEmergencyReparentShardRequest=} [properties] Properties to set + * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest instance */ - CleanupSchemaMigrationRequest.create = function create(properties) { - return new CleanupSchemaMigrationRequest(properties); + EmergencyReparentShardRequest.create = function create(properties) { + return new EmergencyReparentShardRequest(properties); }; /** - * Encodes the specified CleanupSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CleanupSchemaMigrationRequest.verify|verify} messages. + * Encodes the specified EmergencyReparentShardRequest message. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.CleanupSchemaMigrationRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static - * @param {vtctldata.ICleanupSchemaMigrationRequest} message CleanupSchemaMigrationRequest message or plain object to encode + * @param {vtctldata.IEmergencyReparentShardRequest} message EmergencyReparentShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CleanupSchemaMigrationRequest.encode = function encode(message, writer) { + EmergencyReparentShardRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); - if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) - $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.new_primary != null && Object.hasOwnProperty.call(message, "new_primary")) + $root.topodata.TabletAlias.encode(message.new_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.ignore_replicas != null && message.ignore_replicas.length) + for (let i = 0; i < message.ignore_replicas.length; ++i) + $root.topodata.TabletAlias.encode(message.ignore_replicas[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) + $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.prevent_cross_cell_promotion != null && Object.hasOwnProperty.call(message, "prevent_cross_cell_promotion")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.prevent_cross_cell_promotion); + if (message.wait_for_all_tablets != null && Object.hasOwnProperty.call(message, "wait_for_all_tablets")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.wait_for_all_tablets); + if (message.expected_primary != null && Object.hasOwnProperty.call(message, "expected_primary")) + $root.topodata.TabletAlias.encode(message.expected_primary, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified CleanupSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CleanupSchemaMigrationRequest.verify|verify} messages. + * Encodes the specified EmergencyReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CleanupSchemaMigrationRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static - * @param {vtctldata.ICleanupSchemaMigrationRequest} message CleanupSchemaMigrationRequest message or plain object to encode + * @param {vtctldata.IEmergencyReparentShardRequest} message EmergencyReparentShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CleanupSchemaMigrationRequest.encodeDelimited = function encodeDelimited(message, writer) { + EmergencyReparentShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer. + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CleanupSchemaMigrationRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CleanupSchemaMigrationRequest} CleanupSchemaMigrationRequest + * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CleanupSchemaMigrationRequest.decode = function decode(reader, length) { + EmergencyReparentShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CleanupSchemaMigrationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.EmergencyReparentShardRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -138217,11 +145878,33 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 2: { - message.uuid = reader.string(); + message.shard = reader.string(); break; } case 3: { - message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.new_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.ignore_replicas && message.ignore_replicas.length)) + message.ignore_replicas = []; + message.ignore_replicas.push($root.topodata.TabletAlias.decode(reader, reader.uint32())); + break; + } + case 5: { + message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + } + case 6: { + message.prevent_cross_cell_promotion = reader.bool(); + break; + } + case 7: { + message.wait_for_all_tablets = reader.bool(); + break; + } + case 8: { + message.expected_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -138233,145 +145916,216 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CleanupSchemaMigrationRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CleanupSchemaMigrationRequest} CleanupSchemaMigrationRequest + * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CleanupSchemaMigrationRequest.decodeDelimited = function decodeDelimited(reader) { + EmergencyReparentShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CleanupSchemaMigrationRequest message. + * Verifies an EmergencyReparentShardRequest message. * @function verify - * @memberof vtctldata.CleanupSchemaMigrationRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CleanupSchemaMigrationRequest.verify = function verify(message) { + EmergencyReparentShardRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) if (!$util.isString(message.keyspace)) return "keyspace: string expected"; - if (message.uuid != null && message.hasOwnProperty("uuid")) - if (!$util.isString(message.uuid)) - return "uuid: string expected"; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) { - let error = $root.vtrpc.CallerID.verify(message.caller_id); + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.new_primary != null && message.hasOwnProperty("new_primary")) { + let error = $root.topodata.TabletAlias.verify(message.new_primary); if (error) - return "caller_id." + error; + return "new_primary." + error; + } + if (message.ignore_replicas != null && message.hasOwnProperty("ignore_replicas")) { + if (!Array.isArray(message.ignore_replicas)) + return "ignore_replicas: array expected"; + for (let i = 0; i < message.ignore_replicas.length; ++i) { + let error = $root.topodata.TabletAlias.verify(message.ignore_replicas[i]); + if (error) + return "ignore_replicas." + error; + } + } + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { + let error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (error) + return "wait_replicas_timeout." + error; + } + if (message.prevent_cross_cell_promotion != null && message.hasOwnProperty("prevent_cross_cell_promotion")) + if (typeof message.prevent_cross_cell_promotion !== "boolean") + return "prevent_cross_cell_promotion: boolean expected"; + if (message.wait_for_all_tablets != null && message.hasOwnProperty("wait_for_all_tablets")) + if (typeof message.wait_for_all_tablets !== "boolean") + return "wait_for_all_tablets: boolean expected"; + if (message.expected_primary != null && message.hasOwnProperty("expected_primary")) { + let error = $root.topodata.TabletAlias.verify(message.expected_primary); + if (error) + return "expected_primary." + error; } return null; }; /** - * Creates a CleanupSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EmergencyReparentShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CleanupSchemaMigrationRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.CleanupSchemaMigrationRequest} CleanupSchemaMigrationRequest + * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest */ - CleanupSchemaMigrationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CleanupSchemaMigrationRequest) + EmergencyReparentShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.EmergencyReparentShardRequest) return object; - let message = new $root.vtctldata.CleanupSchemaMigrationRequest(); + let message = new $root.vtctldata.EmergencyReparentShardRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.uuid != null) - message.uuid = String(object.uuid); - if (object.caller_id != null) { - if (typeof object.caller_id !== "object") - throw TypeError(".vtctldata.CleanupSchemaMigrationRequest.caller_id: object expected"); - message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); + if (object.shard != null) + message.shard = String(object.shard); + if (object.new_primary != null) { + if (typeof object.new_primary !== "object") + throw TypeError(".vtctldata.EmergencyReparentShardRequest.new_primary: object expected"); + message.new_primary = $root.topodata.TabletAlias.fromObject(object.new_primary); + } + if (object.ignore_replicas) { + if (!Array.isArray(object.ignore_replicas)) + throw TypeError(".vtctldata.EmergencyReparentShardRequest.ignore_replicas: array expected"); + message.ignore_replicas = []; + for (let i = 0; i < object.ignore_replicas.length; ++i) { + if (typeof object.ignore_replicas[i] !== "object") + throw TypeError(".vtctldata.EmergencyReparentShardRequest.ignore_replicas: object expected"); + message.ignore_replicas[i] = $root.topodata.TabletAlias.fromObject(object.ignore_replicas[i]); + } + } + if (object.wait_replicas_timeout != null) { + if (typeof object.wait_replicas_timeout !== "object") + throw TypeError(".vtctldata.EmergencyReparentShardRequest.wait_replicas_timeout: object expected"); + message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); + } + if (object.prevent_cross_cell_promotion != null) + message.prevent_cross_cell_promotion = Boolean(object.prevent_cross_cell_promotion); + if (object.wait_for_all_tablets != null) + message.wait_for_all_tablets = Boolean(object.wait_for_all_tablets); + if (object.expected_primary != null) { + if (typeof object.expected_primary !== "object") + throw TypeError(".vtctldata.EmergencyReparentShardRequest.expected_primary: object expected"); + message.expected_primary = $root.topodata.TabletAlias.fromObject(object.expected_primary); } return message; }; /** - * Creates a plain object from a CleanupSchemaMigrationRequest message. Also converts values to other types if specified. + * Creates a plain object from an EmergencyReparentShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CleanupSchemaMigrationRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static - * @param {vtctldata.CleanupSchemaMigrationRequest} message CleanupSchemaMigrationRequest + * @param {vtctldata.EmergencyReparentShardRequest} message EmergencyReparentShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CleanupSchemaMigrationRequest.toObject = function toObject(message, options) { + EmergencyReparentShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.ignore_replicas = []; if (options.defaults) { object.keyspace = ""; - object.uuid = ""; - object.caller_id = null; + object.shard = ""; + object.new_primary = null; + object.wait_replicas_timeout = null; + object.prevent_cross_cell_promotion = false; + object.wait_for_all_tablets = false; + object.expected_primary = null; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.uuid != null && message.hasOwnProperty("uuid")) - object.uuid = message.uuid; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) - object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.new_primary != null && message.hasOwnProperty("new_primary")) + object.new_primary = $root.topodata.TabletAlias.toObject(message.new_primary, options); + if (message.ignore_replicas && message.ignore_replicas.length) { + object.ignore_replicas = []; + for (let j = 0; j < message.ignore_replicas.length; ++j) + object.ignore_replicas[j] = $root.topodata.TabletAlias.toObject(message.ignore_replicas[j], options); + } + 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.prevent_cross_cell_promotion != null && message.hasOwnProperty("prevent_cross_cell_promotion")) + object.prevent_cross_cell_promotion = message.prevent_cross_cell_promotion; + if (message.wait_for_all_tablets != null && message.hasOwnProperty("wait_for_all_tablets")) + object.wait_for_all_tablets = message.wait_for_all_tablets; + if (message.expected_primary != null && message.hasOwnProperty("expected_primary")) + object.expected_primary = $root.topodata.TabletAlias.toObject(message.expected_primary, options); return object; }; /** - * Converts this CleanupSchemaMigrationRequest to JSON. + * Converts this EmergencyReparentShardRequest to JSON. * @function toJSON - * @memberof vtctldata.CleanupSchemaMigrationRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @instance * @returns {Object.} JSON object */ - CleanupSchemaMigrationRequest.prototype.toJSON = function toJSON() { + EmergencyReparentShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CleanupSchemaMigrationRequest + * Gets the default type url for EmergencyReparentShardRequest * @function getTypeUrl - * @memberof vtctldata.CleanupSchemaMigrationRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CleanupSchemaMigrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EmergencyReparentShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.CleanupSchemaMigrationRequest"; + return typeUrlPrefix + "/vtctldata.EmergencyReparentShardRequest"; }; - return CleanupSchemaMigrationRequest; + return EmergencyReparentShardRequest; })(); - vtctldata.CleanupSchemaMigrationResponse = (function() { + vtctldata.EmergencyReparentShardResponse = (function() { /** - * Properties of a CleanupSchemaMigrationResponse. + * Properties of an EmergencyReparentShardResponse. * @memberof vtctldata - * @interface ICleanupSchemaMigrationResponse - * @property {Object.|null} [rows_affected_by_shard] CleanupSchemaMigrationResponse rows_affected_by_shard + * @interface IEmergencyReparentShardResponse + * @property {string|null} [keyspace] EmergencyReparentShardResponse keyspace + * @property {string|null} [shard] EmergencyReparentShardResponse shard + * @property {topodata.ITabletAlias|null} [promoted_primary] EmergencyReparentShardResponse promoted_primary + * @property {Array.|null} [events] EmergencyReparentShardResponse events */ /** - * Constructs a new CleanupSchemaMigrationResponse. + * Constructs a new EmergencyReparentShardResponse. * @memberof vtctldata - * @classdesc Represents a CleanupSchemaMigrationResponse. - * @implements ICleanupSchemaMigrationResponse + * @classdesc Represents an EmergencyReparentShardResponse. + * @implements IEmergencyReparentShardResponse * @constructor - * @param {vtctldata.ICleanupSchemaMigrationResponse=} [properties] Properties to set + * @param {vtctldata.IEmergencyReparentShardResponse=} [properties] Properties to set */ - function CleanupSchemaMigrationResponse(properties) { - this.rows_affected_by_shard = {}; + function EmergencyReparentShardResponse(properties) { + this.events = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -138379,95 +146133,120 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * CleanupSchemaMigrationResponse rows_affected_by_shard. - * @member {Object.} rows_affected_by_shard - * @memberof vtctldata.CleanupSchemaMigrationResponse + * EmergencyReparentShardResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.EmergencyReparentShardResponse * @instance */ - CleanupSchemaMigrationResponse.prototype.rows_affected_by_shard = $util.emptyObject; + EmergencyReparentShardResponse.prototype.keyspace = ""; /** - * Creates a new CleanupSchemaMigrationResponse instance using the specified properties. + * EmergencyReparentShardResponse shard. + * @member {string} shard + * @memberof vtctldata.EmergencyReparentShardResponse + * @instance + */ + EmergencyReparentShardResponse.prototype.shard = ""; + + /** + * EmergencyReparentShardResponse promoted_primary. + * @member {topodata.ITabletAlias|null|undefined} promoted_primary + * @memberof vtctldata.EmergencyReparentShardResponse + * @instance + */ + EmergencyReparentShardResponse.prototype.promoted_primary = null; + + /** + * EmergencyReparentShardResponse events. + * @member {Array.} events + * @memberof vtctldata.EmergencyReparentShardResponse + * @instance + */ + EmergencyReparentShardResponse.prototype.events = $util.emptyArray; + + /** + * Creates a new EmergencyReparentShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.CleanupSchemaMigrationResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static - * @param {vtctldata.ICleanupSchemaMigrationResponse=} [properties] Properties to set - * @returns {vtctldata.CleanupSchemaMigrationResponse} CleanupSchemaMigrationResponse instance + * @param {vtctldata.IEmergencyReparentShardResponse=} [properties] Properties to set + * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse instance */ - CleanupSchemaMigrationResponse.create = function create(properties) { - return new CleanupSchemaMigrationResponse(properties); + EmergencyReparentShardResponse.create = function create(properties) { + return new EmergencyReparentShardResponse(properties); }; /** - * Encodes the specified CleanupSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CleanupSchemaMigrationResponse.verify|verify} messages. + * Encodes the specified EmergencyReparentShardResponse message. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.CleanupSchemaMigrationResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static - * @param {vtctldata.ICleanupSchemaMigrationResponse} message CleanupSchemaMigrationResponse message or plain object to encode + * @param {vtctldata.IEmergencyReparentShardResponse} message EmergencyReparentShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CleanupSchemaMigrationResponse.encode = function encode(message, writer) { + EmergencyReparentShardResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) - for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); + 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.promoted_primary != null && Object.hasOwnProperty.call(message, "promoted_primary")) + $root.topodata.TabletAlias.encode(message.promoted_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.events != null && message.events.length) + for (let i = 0; i < message.events.length; ++i) + $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified CleanupSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CleanupSchemaMigrationResponse.verify|verify} messages. + * Encodes the specified EmergencyReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CleanupSchemaMigrationResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static - * @param {vtctldata.ICleanupSchemaMigrationResponse} message CleanupSchemaMigrationResponse message or plain object to encode + * @param {vtctldata.IEmergencyReparentShardResponse} message EmergencyReparentShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CleanupSchemaMigrationResponse.encodeDelimited = function encodeDelimited(message, writer) { + EmergencyReparentShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer. + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CleanupSchemaMigrationResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CleanupSchemaMigrationResponse} CleanupSchemaMigrationResponse + * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CleanupSchemaMigrationResponse.decode = function decode(reader, length) { + EmergencyReparentShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CleanupSchemaMigrationResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.EmergencyReparentShardResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.rows_affected_by_shard === $util.emptyObject) - message.rows_affected_by_shard = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.uint64(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.rows_affected_by_shard[key] = value; + message.keyspace = reader.string(); + break; + } + case 2: { + message.shard = reader.string(); + break; + } + case 3: { + message.promoted_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.logutil.Event.decode(reader, reader.uint32())); break; } default: @@ -138479,148 +146258,173 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CleanupSchemaMigrationResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CleanupSchemaMigrationResponse} CleanupSchemaMigrationResponse + * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CleanupSchemaMigrationResponse.decodeDelimited = function decodeDelimited(reader) { + EmergencyReparentShardResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CleanupSchemaMigrationResponse message. + * Verifies an EmergencyReparentShardResponse message. * @function verify - * @memberof vtctldata.CleanupSchemaMigrationResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CleanupSchemaMigrationResponse.verify = function verify(message) { + EmergencyReparentShardResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { - if (!$util.isObject(message.rows_affected_by_shard)) - return "rows_affected_by_shard: object expected"; - let key = Object.keys(message.rows_affected_by_shard); - for (let i = 0; i < key.length; ++i) - if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) - return "rows_affected_by_shard: integer|Long{k:string} expected"; + 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.promoted_primary != null && message.hasOwnProperty("promoted_primary")) { + let error = $root.topodata.TabletAlias.verify(message.promoted_primary); + if (error) + return "promoted_primary." + error; + } + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (let i = 0; i < message.events.length; ++i) { + let error = $root.logutil.Event.verify(message.events[i]); + if (error) + return "events." + error; + } } return null; }; /** - * Creates a CleanupSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * Creates an EmergencyReparentShardResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CleanupSchemaMigrationResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.CleanupSchemaMigrationResponse} CleanupSchemaMigrationResponse + * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse */ - CleanupSchemaMigrationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CleanupSchemaMigrationResponse) + EmergencyReparentShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.EmergencyReparentShardResponse) return object; - let message = new $root.vtctldata.CleanupSchemaMigrationResponse(); - if (object.rows_affected_by_shard) { - if (typeof object.rows_affected_by_shard !== "object") - throw TypeError(".vtctldata.CleanupSchemaMigrationResponse.rows_affected_by_shard: object expected"); - message.rows_affected_by_shard = {}; - for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) - if ($util.Long) - (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; - else if (typeof object.rows_affected_by_shard[keys[i]] === "string") - message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); - else if (typeof object.rows_affected_by_shard[keys[i]] === "number") - message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; - else if (typeof object.rows_affected_by_shard[keys[i]] === "object") - message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); + let message = new $root.vtctldata.EmergencyReparentShardResponse(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.promoted_primary != null) { + if (typeof object.promoted_primary !== "object") + throw TypeError(".vtctldata.EmergencyReparentShardResponse.promoted_primary: object expected"); + message.promoted_primary = $root.topodata.TabletAlias.fromObject(object.promoted_primary); + } + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".vtctldata.EmergencyReparentShardResponse.events: array expected"); + message.events = []; + for (let i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".vtctldata.EmergencyReparentShardResponse.events: object expected"); + message.events[i] = $root.logutil.Event.fromObject(object.events[i]); + } } return message; }; /** - * Creates a plain object from a CleanupSchemaMigrationResponse message. Also converts values to other types if specified. + * Creates a plain object from an EmergencyReparentShardResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CleanupSchemaMigrationResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static - * @param {vtctldata.CleanupSchemaMigrationResponse} message CleanupSchemaMigrationResponse + * @param {vtctldata.EmergencyReparentShardResponse} message EmergencyReparentShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CleanupSchemaMigrationResponse.toObject = function toObject(message, options) { + EmergencyReparentShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.rows_affected_by_shard = {}; - let keys2; - if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { - object.rows_affected_by_shard = {}; - for (let j = 0; j < keys2.length; ++j) - if (typeof message.rows_affected_by_shard[keys2[j]] === "number") - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; - else - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; + if (options.arrays || options.defaults) + object.events = []; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.promoted_primary = null; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.promoted_primary != null && message.hasOwnProperty("promoted_primary")) + object.promoted_primary = $root.topodata.TabletAlias.toObject(message.promoted_primary, options); + if (message.events && message.events.length) { + object.events = []; + for (let j = 0; j < message.events.length; ++j) + object.events[j] = $root.logutil.Event.toObject(message.events[j], options); } return object; }; /** - * Converts this CleanupSchemaMigrationResponse to JSON. + * Converts this EmergencyReparentShardResponse to JSON. * @function toJSON - * @memberof vtctldata.CleanupSchemaMigrationResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @instance * @returns {Object.} JSON object */ - CleanupSchemaMigrationResponse.prototype.toJSON = function toJSON() { + EmergencyReparentShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CleanupSchemaMigrationResponse + * Gets the default type url for EmergencyReparentShardResponse * @function getTypeUrl - * @memberof vtctldata.CleanupSchemaMigrationResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CleanupSchemaMigrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EmergencyReparentShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.CleanupSchemaMigrationResponse"; + return typeUrlPrefix + "/vtctldata.EmergencyReparentShardResponse"; }; - return CleanupSchemaMigrationResponse; + return EmergencyReparentShardResponse; })(); - vtctldata.CompleteSchemaMigrationRequest = (function() { + vtctldata.ExecuteFetchAsAppRequest = (function() { /** - * Properties of a CompleteSchemaMigrationRequest. + * Properties of an ExecuteFetchAsAppRequest. * @memberof vtctldata - * @interface ICompleteSchemaMigrationRequest - * @property {string|null} [keyspace] CompleteSchemaMigrationRequest keyspace - * @property {string|null} [uuid] CompleteSchemaMigrationRequest uuid - * @property {vtrpc.ICallerID|null} [caller_id] CompleteSchemaMigrationRequest caller_id + * @interface IExecuteFetchAsAppRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] ExecuteFetchAsAppRequest tablet_alias + * @property {string|null} [query] ExecuteFetchAsAppRequest query + * @property {number|Long|null} [max_rows] ExecuteFetchAsAppRequest max_rows + * @property {boolean|null} [use_pool] ExecuteFetchAsAppRequest use_pool */ /** - * Constructs a new CompleteSchemaMigrationRequest. + * Constructs a new ExecuteFetchAsAppRequest. * @memberof vtctldata - * @classdesc Represents a CompleteSchemaMigrationRequest. - * @implements ICompleteSchemaMigrationRequest + * @classdesc Represents an ExecuteFetchAsAppRequest. + * @implements IExecuteFetchAsAppRequest * @constructor - * @param {vtctldata.ICompleteSchemaMigrationRequest=} [properties] Properties to set + * @param {vtctldata.IExecuteFetchAsAppRequest=} [properties] Properties to set */ - function CompleteSchemaMigrationRequest(properties) { + function ExecuteFetchAsAppRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -138628,103 +146432,117 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * CompleteSchemaMigrationRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.CompleteSchemaMigrationRequest + * ExecuteFetchAsAppRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.ExecuteFetchAsAppRequest * @instance */ - CompleteSchemaMigrationRequest.prototype.keyspace = ""; + ExecuteFetchAsAppRequest.prototype.tablet_alias = null; /** - * CompleteSchemaMigrationRequest uuid. - * @member {string} uuid - * @memberof vtctldata.CompleteSchemaMigrationRequest + * ExecuteFetchAsAppRequest query. + * @member {string} query + * @memberof vtctldata.ExecuteFetchAsAppRequest * @instance */ - CompleteSchemaMigrationRequest.prototype.uuid = ""; + ExecuteFetchAsAppRequest.prototype.query = ""; /** - * CompleteSchemaMigrationRequest caller_id. - * @member {vtrpc.ICallerID|null|undefined} caller_id - * @memberof vtctldata.CompleteSchemaMigrationRequest + * ExecuteFetchAsAppRequest max_rows. + * @member {number|Long} max_rows + * @memberof vtctldata.ExecuteFetchAsAppRequest * @instance */ - CompleteSchemaMigrationRequest.prototype.caller_id = null; + ExecuteFetchAsAppRequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new CompleteSchemaMigrationRequest instance using the specified properties. + * ExecuteFetchAsAppRequest use_pool. + * @member {boolean} use_pool + * @memberof vtctldata.ExecuteFetchAsAppRequest + * @instance + */ + ExecuteFetchAsAppRequest.prototype.use_pool = false; + + /** + * Creates a new ExecuteFetchAsAppRequest instance using the specified properties. * @function create - * @memberof vtctldata.CompleteSchemaMigrationRequest + * @memberof vtctldata.ExecuteFetchAsAppRequest * @static - * @param {vtctldata.ICompleteSchemaMigrationRequest=} [properties] Properties to set - * @returns {vtctldata.CompleteSchemaMigrationRequest} CompleteSchemaMigrationRequest instance + * @param {vtctldata.IExecuteFetchAsAppRequest=} [properties] Properties to set + * @returns {vtctldata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest instance */ - CompleteSchemaMigrationRequest.create = function create(properties) { - return new CompleteSchemaMigrationRequest(properties); + ExecuteFetchAsAppRequest.create = function create(properties) { + return new ExecuteFetchAsAppRequest(properties); }; /** - * Encodes the specified CompleteSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CompleteSchemaMigrationRequest.verify|verify} messages. + * Encodes the specified ExecuteFetchAsAppRequest message. Does not implicitly {@link vtctldata.ExecuteFetchAsAppRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.CompleteSchemaMigrationRequest + * @memberof vtctldata.ExecuteFetchAsAppRequest * @static - * @param {vtctldata.ICompleteSchemaMigrationRequest} message CompleteSchemaMigrationRequest message or plain object to encode + * @param {vtctldata.IExecuteFetchAsAppRequest} message ExecuteFetchAsAppRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompleteSchemaMigrationRequest.encode = function encode(message, writer) { + ExecuteFetchAsAppRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); - if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) - $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 3, wireType 2 =*/26).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.query != null && Object.hasOwnProperty.call(message, "query")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.query); + if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.max_rows); + if (message.use_pool != null && Object.hasOwnProperty.call(message, "use_pool")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.use_pool); return writer; }; /** - * Encodes the specified CompleteSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CompleteSchemaMigrationRequest.verify|verify} messages. + * Encodes the specified ExecuteFetchAsAppRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsAppRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CompleteSchemaMigrationRequest + * @memberof vtctldata.ExecuteFetchAsAppRequest * @static - * @param {vtctldata.ICompleteSchemaMigrationRequest} message CompleteSchemaMigrationRequest message or plain object to encode + * @param {vtctldata.IExecuteFetchAsAppRequest} message ExecuteFetchAsAppRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompleteSchemaMigrationRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteFetchAsAppRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer. + * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CompleteSchemaMigrationRequest + * @memberof vtctldata.ExecuteFetchAsAppRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CompleteSchemaMigrationRequest} CompleteSchemaMigrationRequest + * @returns {vtctldata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompleteSchemaMigrationRequest.decode = function decode(reader, length) { + ExecuteFetchAsAppRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CompleteSchemaMigrationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteFetchAsAppRequest(); while (reader.pos < end) { let 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.uuid = reader.string(); + message.query = reader.string(); break; } case 3: { - message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.max_rows = reader.int64(); + break; + } + case 4: { + message.use_pool = reader.bool(); break; } default: @@ -138736,145 +146554,166 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CompleteSchemaMigrationRequest + * @memberof vtctldata.ExecuteFetchAsAppRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CompleteSchemaMigrationRequest} CompleteSchemaMigrationRequest + * @returns {vtctldata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompleteSchemaMigrationRequest.decodeDelimited = function decodeDelimited(reader) { + ExecuteFetchAsAppRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CompleteSchemaMigrationRequest message. + * Verifies an ExecuteFetchAsAppRequest message. * @function verify - * @memberof vtctldata.CompleteSchemaMigrationRequest + * @memberof vtctldata.ExecuteFetchAsAppRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CompleteSchemaMigrationRequest.verify = function verify(message) { + ExecuteFetchAsAppRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.uuid != null && message.hasOwnProperty("uuid")) - if (!$util.isString(message.uuid)) - return "uuid: string expected"; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) { - let error = $root.vtrpc.CallerID.verify(message.caller_id); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) - return "caller_id." + error; + return "tablet_alias." + error; } + if (message.query != null && message.hasOwnProperty("query")) + if (!$util.isString(message.query)) + return "query: string expected"; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) + return "max_rows: integer|Long expected"; + if (message.use_pool != null && message.hasOwnProperty("use_pool")) + if (typeof message.use_pool !== "boolean") + return "use_pool: boolean expected"; return null; }; /** - * Creates a CompleteSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsAppRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CompleteSchemaMigrationRequest + * @memberof vtctldata.ExecuteFetchAsAppRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.CompleteSchemaMigrationRequest} CompleteSchemaMigrationRequest + * @returns {vtctldata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest */ - CompleteSchemaMigrationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CompleteSchemaMigrationRequest) + ExecuteFetchAsAppRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteFetchAsAppRequest) return object; - let message = new $root.vtctldata.CompleteSchemaMigrationRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.uuid != null) - message.uuid = String(object.uuid); - if (object.caller_id != null) { - if (typeof object.caller_id !== "object") - throw TypeError(".vtctldata.CompleteSchemaMigrationRequest.caller_id: object expected"); - message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); + let message = new $root.vtctldata.ExecuteFetchAsAppRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.ExecuteFetchAsAppRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } + if (object.query != null) + message.query = String(object.query); + if (object.max_rows != null) + if ($util.Long) + (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = false; + else if (typeof object.max_rows === "string") + message.max_rows = parseInt(object.max_rows, 10); + else if (typeof object.max_rows === "number") + message.max_rows = object.max_rows; + else if (typeof object.max_rows === "object") + message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(); + if (object.use_pool != null) + message.use_pool = Boolean(object.use_pool); return message; }; /** - * Creates a plain object from a CompleteSchemaMigrationRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteFetchAsAppRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CompleteSchemaMigrationRequest + * @memberof vtctldata.ExecuteFetchAsAppRequest * @static - * @param {vtctldata.CompleteSchemaMigrationRequest} message CompleteSchemaMigrationRequest + * @param {vtctldata.ExecuteFetchAsAppRequest} message ExecuteFetchAsAppRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CompleteSchemaMigrationRequest.toObject = function toObject(message, options) { + ExecuteFetchAsAppRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.keyspace = ""; - object.uuid = ""; - object.caller_id = null; + object.tablet_alias = null; + object.query = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_rows = options.longs === String ? "0" : 0; + object.use_pool = false; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.uuid != null && message.hasOwnProperty("uuid")) - object.uuid = message.uuid; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) - object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.query != null && message.hasOwnProperty("query")) + object.query = message.query; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (typeof message.max_rows === "number") + object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; + else + object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber() : message.max_rows; + if (message.use_pool != null && message.hasOwnProperty("use_pool")) + object.use_pool = message.use_pool; return object; }; /** - * Converts this CompleteSchemaMigrationRequest to JSON. + * Converts this ExecuteFetchAsAppRequest to JSON. * @function toJSON - * @memberof vtctldata.CompleteSchemaMigrationRequest + * @memberof vtctldata.ExecuteFetchAsAppRequest * @instance * @returns {Object.} JSON object */ - CompleteSchemaMigrationRequest.prototype.toJSON = function toJSON() { + ExecuteFetchAsAppRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CompleteSchemaMigrationRequest + * Gets the default type url for ExecuteFetchAsAppRequest * @function getTypeUrl - * @memberof vtctldata.CompleteSchemaMigrationRequest + * @memberof vtctldata.ExecuteFetchAsAppRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CompleteSchemaMigrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteFetchAsAppRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.CompleteSchemaMigrationRequest"; + return typeUrlPrefix + "/vtctldata.ExecuteFetchAsAppRequest"; }; - return CompleteSchemaMigrationRequest; + return ExecuteFetchAsAppRequest; })(); - vtctldata.CompleteSchemaMigrationResponse = (function() { + vtctldata.ExecuteFetchAsAppResponse = (function() { /** - * Properties of a CompleteSchemaMigrationResponse. + * Properties of an ExecuteFetchAsAppResponse. * @memberof vtctldata - * @interface ICompleteSchemaMigrationResponse - * @property {Object.|null} [rows_affected_by_shard] CompleteSchemaMigrationResponse rows_affected_by_shard + * @interface IExecuteFetchAsAppResponse + * @property {query.IQueryResult|null} [result] ExecuteFetchAsAppResponse result */ /** - * Constructs a new CompleteSchemaMigrationResponse. + * Constructs a new ExecuteFetchAsAppResponse. * @memberof vtctldata - * @classdesc Represents a CompleteSchemaMigrationResponse. - * @implements ICompleteSchemaMigrationResponse + * @classdesc Represents an ExecuteFetchAsAppResponse. + * @implements IExecuteFetchAsAppResponse * @constructor - * @param {vtctldata.ICompleteSchemaMigrationResponse=} [properties] Properties to set + * @param {vtctldata.IExecuteFetchAsAppResponse=} [properties] Properties to set */ - function CompleteSchemaMigrationResponse(properties) { - this.rows_affected_by_shard = {}; + function ExecuteFetchAsAppResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -138882,95 +146721,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * CompleteSchemaMigrationResponse rows_affected_by_shard. - * @member {Object.} rows_affected_by_shard - * @memberof vtctldata.CompleteSchemaMigrationResponse + * ExecuteFetchAsAppResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof vtctldata.ExecuteFetchAsAppResponse * @instance */ - CompleteSchemaMigrationResponse.prototype.rows_affected_by_shard = $util.emptyObject; + ExecuteFetchAsAppResponse.prototype.result = null; /** - * Creates a new CompleteSchemaMigrationResponse instance using the specified properties. + * Creates a new ExecuteFetchAsAppResponse instance using the specified properties. * @function create - * @memberof vtctldata.CompleteSchemaMigrationResponse + * @memberof vtctldata.ExecuteFetchAsAppResponse * @static - * @param {vtctldata.ICompleteSchemaMigrationResponse=} [properties] Properties to set - * @returns {vtctldata.CompleteSchemaMigrationResponse} CompleteSchemaMigrationResponse instance + * @param {vtctldata.IExecuteFetchAsAppResponse=} [properties] Properties to set + * @returns {vtctldata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse instance */ - CompleteSchemaMigrationResponse.create = function create(properties) { - return new CompleteSchemaMigrationResponse(properties); + ExecuteFetchAsAppResponse.create = function create(properties) { + return new ExecuteFetchAsAppResponse(properties); }; /** - * Encodes the specified CompleteSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CompleteSchemaMigrationResponse.verify|verify} messages. + * Encodes the specified ExecuteFetchAsAppResponse message. Does not implicitly {@link vtctldata.ExecuteFetchAsAppResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.CompleteSchemaMigrationResponse + * @memberof vtctldata.ExecuteFetchAsAppResponse * @static - * @param {vtctldata.ICompleteSchemaMigrationResponse} message CompleteSchemaMigrationResponse message or plain object to encode + * @param {vtctldata.IExecuteFetchAsAppResponse} message ExecuteFetchAsAppResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompleteSchemaMigrationResponse.encode = function encode(message, writer) { + ExecuteFetchAsAppResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) - for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); + 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 CompleteSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CompleteSchemaMigrationResponse.verify|verify} messages. + * Encodes the specified ExecuteFetchAsAppResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsAppResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CompleteSchemaMigrationResponse + * @memberof vtctldata.ExecuteFetchAsAppResponse * @static - * @param {vtctldata.ICompleteSchemaMigrationResponse} message CompleteSchemaMigrationResponse message or plain object to encode + * @param {vtctldata.IExecuteFetchAsAppResponse} message ExecuteFetchAsAppResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompleteSchemaMigrationResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteFetchAsAppResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer. + * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CompleteSchemaMigrationResponse + * @memberof vtctldata.ExecuteFetchAsAppResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CompleteSchemaMigrationResponse} CompleteSchemaMigrationResponse + * @returns {vtctldata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompleteSchemaMigrationResponse.decode = function decode(reader, length) { + ExecuteFetchAsAppResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CompleteSchemaMigrationResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteFetchAsAppResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.rows_affected_by_shard === $util.emptyObject) - message.rows_affected_by_shard = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.uint64(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.rows_affected_by_shard[key] = value; + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; } default: @@ -138982,155 +146801,131 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CompleteSchemaMigrationResponse + * @memberof vtctldata.ExecuteFetchAsAppResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CompleteSchemaMigrationResponse} CompleteSchemaMigrationResponse + * @returns {vtctldata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompleteSchemaMigrationResponse.decodeDelimited = function decodeDelimited(reader) { + ExecuteFetchAsAppResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CompleteSchemaMigrationResponse message. + * Verifies an ExecuteFetchAsAppResponse message. * @function verify - * @memberof vtctldata.CompleteSchemaMigrationResponse + * @memberof vtctldata.ExecuteFetchAsAppResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CompleteSchemaMigrationResponse.verify = function verify(message) { + ExecuteFetchAsAppResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { - if (!$util.isObject(message.rows_affected_by_shard)) - return "rows_affected_by_shard: object expected"; - let key = Object.keys(message.rows_affected_by_shard); - for (let i = 0; i < key.length; ++i) - if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) - return "rows_affected_by_shard: integer|Long{k:string} expected"; + if (message.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; } return null; }; /** - * Creates a CompleteSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsAppResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CompleteSchemaMigrationResponse + * @memberof vtctldata.ExecuteFetchAsAppResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.CompleteSchemaMigrationResponse} CompleteSchemaMigrationResponse + * @returns {vtctldata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse */ - CompleteSchemaMigrationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CompleteSchemaMigrationResponse) + ExecuteFetchAsAppResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteFetchAsAppResponse) return object; - let message = new $root.vtctldata.CompleteSchemaMigrationResponse(); - if (object.rows_affected_by_shard) { - if (typeof object.rows_affected_by_shard !== "object") - throw TypeError(".vtctldata.CompleteSchemaMigrationResponse.rows_affected_by_shard: object expected"); - message.rows_affected_by_shard = {}; - for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) - if ($util.Long) - (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; - else if (typeof object.rows_affected_by_shard[keys[i]] === "string") - message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); - else if (typeof object.rows_affected_by_shard[keys[i]] === "number") - message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; - else if (typeof object.rows_affected_by_shard[keys[i]] === "object") - message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); + let message = new $root.vtctldata.ExecuteFetchAsAppResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".vtctldata.ExecuteFetchAsAppResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); } return message; }; /** - * Creates a plain object from a CompleteSchemaMigrationResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteFetchAsAppResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CompleteSchemaMigrationResponse + * @memberof vtctldata.ExecuteFetchAsAppResponse * @static - * @param {vtctldata.CompleteSchemaMigrationResponse} message CompleteSchemaMigrationResponse + * @param {vtctldata.ExecuteFetchAsAppResponse} message ExecuteFetchAsAppResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CompleteSchemaMigrationResponse.toObject = function toObject(message, options) { + ExecuteFetchAsAppResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.rows_affected_by_shard = {}; - let keys2; - if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { - object.rows_affected_by_shard = {}; - for (let j = 0; j < keys2.length; ++j) - if (typeof message.rows_affected_by_shard[keys2[j]] === "number") - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; - else - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; - } + 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 CompleteSchemaMigrationResponse to JSON. + * Converts this ExecuteFetchAsAppResponse to JSON. * @function toJSON - * @memberof vtctldata.CompleteSchemaMigrationResponse + * @memberof vtctldata.ExecuteFetchAsAppResponse * @instance * @returns {Object.} JSON object */ - CompleteSchemaMigrationResponse.prototype.toJSON = function toJSON() { + ExecuteFetchAsAppResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CompleteSchemaMigrationResponse + * Gets the default type url for ExecuteFetchAsAppResponse * @function getTypeUrl - * @memberof vtctldata.CompleteSchemaMigrationResponse + * @memberof vtctldata.ExecuteFetchAsAppResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CompleteSchemaMigrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteFetchAsAppResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.CompleteSchemaMigrationResponse"; + return typeUrlPrefix + "/vtctldata.ExecuteFetchAsAppResponse"; }; - return CompleteSchemaMigrationResponse; + return ExecuteFetchAsAppResponse; })(); - vtctldata.CopySchemaShardRequest = (function() { + vtctldata.ExecuteFetchAsDBARequest = (function() { /** - * Properties of a CopySchemaShardRequest. + * Properties of an ExecuteFetchAsDBARequest. * @memberof vtctldata - * @interface ICopySchemaShardRequest - * @property {topodata.ITabletAlias|null} [source_tablet_alias] CopySchemaShardRequest source_tablet_alias - * @property {Array.|null} [tables] CopySchemaShardRequest tables - * @property {Array.|null} [exclude_tables] CopySchemaShardRequest exclude_tables - * @property {boolean|null} [include_views] CopySchemaShardRequest include_views - * @property {boolean|null} [skip_verify] CopySchemaShardRequest skip_verify - * @property {vttime.IDuration|null} [wait_replicas_timeout] CopySchemaShardRequest wait_replicas_timeout - * @property {string|null} [destination_keyspace] CopySchemaShardRequest destination_keyspace - * @property {string|null} [destination_shard] CopySchemaShardRequest destination_shard + * @interface IExecuteFetchAsDBARequest + * @property {topodata.ITabletAlias|null} [tablet_alias] ExecuteFetchAsDBARequest tablet_alias + * @property {string|null} [query] ExecuteFetchAsDBARequest query + * @property {number|Long|null} [max_rows] ExecuteFetchAsDBARequest max_rows + * @property {boolean|null} [disable_binlogs] ExecuteFetchAsDBARequest disable_binlogs + * @property {boolean|null} [reload_schema] ExecuteFetchAsDBARequest reload_schema */ /** - * Constructs a new CopySchemaShardRequest. + * Constructs a new ExecuteFetchAsDBARequest. * @memberof vtctldata - * @classdesc Represents a CopySchemaShardRequest. - * @implements ICopySchemaShardRequest + * @classdesc Represents an ExecuteFetchAsDBARequest. + * @implements IExecuteFetchAsDBARequest * @constructor - * @param {vtctldata.ICopySchemaShardRequest=} [properties] Properties to set + * @param {vtctldata.IExecuteFetchAsDBARequest=} [properties] Properties to set */ - function CopySchemaShardRequest(properties) { - this.tables = []; - this.exclude_tables = []; + function ExecuteFetchAsDBARequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -139138,179 +146933,131 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * CopySchemaShardRequest source_tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} source_tablet_alias - * @memberof vtctldata.CopySchemaShardRequest - * @instance - */ - CopySchemaShardRequest.prototype.source_tablet_alias = null; - - /** - * CopySchemaShardRequest tables. - * @member {Array.} tables - * @memberof vtctldata.CopySchemaShardRequest - * @instance - */ - CopySchemaShardRequest.prototype.tables = $util.emptyArray; - - /** - * CopySchemaShardRequest exclude_tables. - * @member {Array.} exclude_tables - * @memberof vtctldata.CopySchemaShardRequest - * @instance - */ - CopySchemaShardRequest.prototype.exclude_tables = $util.emptyArray; - - /** - * CopySchemaShardRequest include_views. - * @member {boolean} include_views - * @memberof vtctldata.CopySchemaShardRequest + * ExecuteFetchAsDBARequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.ExecuteFetchAsDBARequest * @instance */ - CopySchemaShardRequest.prototype.include_views = false; + ExecuteFetchAsDBARequest.prototype.tablet_alias = null; /** - * CopySchemaShardRequest skip_verify. - * @member {boolean} skip_verify - * @memberof vtctldata.CopySchemaShardRequest + * ExecuteFetchAsDBARequest query. + * @member {string} query + * @memberof vtctldata.ExecuteFetchAsDBARequest * @instance */ - CopySchemaShardRequest.prototype.skip_verify = false; + ExecuteFetchAsDBARequest.prototype.query = ""; /** - * CopySchemaShardRequest wait_replicas_timeout. - * @member {vttime.IDuration|null|undefined} wait_replicas_timeout - * @memberof vtctldata.CopySchemaShardRequest + * ExecuteFetchAsDBARequest max_rows. + * @member {number|Long} max_rows + * @memberof vtctldata.ExecuteFetchAsDBARequest * @instance */ - CopySchemaShardRequest.prototype.wait_replicas_timeout = null; + ExecuteFetchAsDBARequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * CopySchemaShardRequest destination_keyspace. - * @member {string} destination_keyspace - * @memberof vtctldata.CopySchemaShardRequest + * ExecuteFetchAsDBARequest disable_binlogs. + * @member {boolean} disable_binlogs + * @memberof vtctldata.ExecuteFetchAsDBARequest * @instance */ - CopySchemaShardRequest.prototype.destination_keyspace = ""; + ExecuteFetchAsDBARequest.prototype.disable_binlogs = false; /** - * CopySchemaShardRequest destination_shard. - * @member {string} destination_shard - * @memberof vtctldata.CopySchemaShardRequest + * ExecuteFetchAsDBARequest reload_schema. + * @member {boolean} reload_schema + * @memberof vtctldata.ExecuteFetchAsDBARequest * @instance */ - CopySchemaShardRequest.prototype.destination_shard = ""; + ExecuteFetchAsDBARequest.prototype.reload_schema = false; /** - * Creates a new CopySchemaShardRequest instance using the specified properties. + * Creates a new ExecuteFetchAsDBARequest instance using the specified properties. * @function create - * @memberof vtctldata.CopySchemaShardRequest + * @memberof vtctldata.ExecuteFetchAsDBARequest * @static - * @param {vtctldata.ICopySchemaShardRequest=} [properties] Properties to set - * @returns {vtctldata.CopySchemaShardRequest} CopySchemaShardRequest instance + * @param {vtctldata.IExecuteFetchAsDBARequest=} [properties] Properties to set + * @returns {vtctldata.ExecuteFetchAsDBARequest} ExecuteFetchAsDBARequest instance */ - CopySchemaShardRequest.create = function create(properties) { - return new CopySchemaShardRequest(properties); + ExecuteFetchAsDBARequest.create = function create(properties) { + return new ExecuteFetchAsDBARequest(properties); }; /** - * Encodes the specified CopySchemaShardRequest message. Does not implicitly {@link vtctldata.CopySchemaShardRequest.verify|verify} messages. + * Encodes the specified ExecuteFetchAsDBARequest message. Does not implicitly {@link vtctldata.ExecuteFetchAsDBARequest.verify|verify} messages. * @function encode - * @memberof vtctldata.CopySchemaShardRequest + * @memberof vtctldata.ExecuteFetchAsDBARequest * @static - * @param {vtctldata.ICopySchemaShardRequest} message CopySchemaShardRequest message or plain object to encode + * @param {vtctldata.IExecuteFetchAsDBARequest} message ExecuteFetchAsDBARequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CopySchemaShardRequest.encode = function encode(message, writer) { + ExecuteFetchAsDBARequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.source_tablet_alias != null && Object.hasOwnProperty.call(message, "source_tablet_alias")) - $root.topodata.TabletAlias.encode(message.source_tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tables != null && message.tables.length) - for (let i = 0; i < message.tables.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tables[i]); - if (message.exclude_tables != null && message.exclude_tables.length) - for (let i = 0; i < message.exclude_tables.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_tables[i]); - if (message.include_views != null && Object.hasOwnProperty.call(message, "include_views")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_views); - if (message.skip_verify != null && Object.hasOwnProperty.call(message, "skip_verify")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.skip_verify); - if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) - $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.destination_keyspace != null && Object.hasOwnProperty.call(message, "destination_keyspace")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.destination_keyspace); - if (message.destination_shard != null && Object.hasOwnProperty.call(message, "destination_shard")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.destination_shard); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.query); + if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.max_rows); + if (message.disable_binlogs != null && Object.hasOwnProperty.call(message, "disable_binlogs")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.disable_binlogs); + if (message.reload_schema != null && Object.hasOwnProperty.call(message, "reload_schema")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reload_schema); return writer; }; /** - * Encodes the specified CopySchemaShardRequest message, length delimited. Does not implicitly {@link vtctldata.CopySchemaShardRequest.verify|verify} messages. + * Encodes the specified ExecuteFetchAsDBARequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsDBARequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CopySchemaShardRequest + * @memberof vtctldata.ExecuteFetchAsDBARequest * @static - * @param {vtctldata.ICopySchemaShardRequest} message CopySchemaShardRequest message or plain object to encode + * @param {vtctldata.IExecuteFetchAsDBARequest} message ExecuteFetchAsDBARequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CopySchemaShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteFetchAsDBARequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CopySchemaShardRequest message from the specified reader or buffer. + * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CopySchemaShardRequest + * @memberof vtctldata.ExecuteFetchAsDBARequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CopySchemaShardRequest} CopySchemaShardRequest + * @returns {vtctldata.ExecuteFetchAsDBARequest} ExecuteFetchAsDBARequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CopySchemaShardRequest.decode = function decode(reader, length) { + ExecuteFetchAsDBARequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CopySchemaShardRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteFetchAsDBARequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.source_tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } case 2: { - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.push(reader.string()); + message.query = reader.string(); break; } case 3: { - if (!(message.exclude_tables && message.exclude_tables.length)) - message.exclude_tables = []; - message.exclude_tables.push(reader.string()); + message.max_rows = reader.int64(); break; } case 4: { - message.include_views = reader.bool(); + message.disable_binlogs = reader.bool(); break; } case 5: { - message.skip_verify = reader.bool(); - break; - } - case 6: { - message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); - break; - } - case 7: { - message.destination_keyspace = reader.string(); - break; - } - case 8: { - message.destination_shard = reader.string(); + message.reload_schema = reader.bool(); break; } default: @@ -139322,214 +147069,174 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a CopySchemaShardRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CopySchemaShardRequest + * @memberof vtctldata.ExecuteFetchAsDBARequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CopySchemaShardRequest} CopySchemaShardRequest + * @returns {vtctldata.ExecuteFetchAsDBARequest} ExecuteFetchAsDBARequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CopySchemaShardRequest.decodeDelimited = function decodeDelimited(reader) { + ExecuteFetchAsDBARequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CopySchemaShardRequest message. + * Verifies an ExecuteFetchAsDBARequest message. * @function verify - * @memberof vtctldata.CopySchemaShardRequest + * @memberof vtctldata.ExecuteFetchAsDBARequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CopySchemaShardRequest.verify = function verify(message) { + ExecuteFetchAsDBARequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.source_tablet_alias != null && message.hasOwnProperty("source_tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.source_tablet_alias); - if (error) - return "source_tablet_alias." + error; - } - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!Array.isArray(message.tables)) - return "tables: array expected"; - for (let i = 0; i < message.tables.length; ++i) - if (!$util.isString(message.tables[i])) - return "tables: string[] expected"; - } - if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { - if (!Array.isArray(message.exclude_tables)) - return "exclude_tables: array expected"; - for (let i = 0; i < message.exclude_tables.length; ++i) - if (!$util.isString(message.exclude_tables[i])) - return "exclude_tables: string[] expected"; - } - if (message.include_views != null && message.hasOwnProperty("include_views")) - if (typeof message.include_views !== "boolean") - return "include_views: boolean expected"; - if (message.skip_verify != null && message.hasOwnProperty("skip_verify")) - if (typeof message.skip_verify !== "boolean") - return "skip_verify: boolean expected"; - if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { - let error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) - return "wait_replicas_timeout." + error; + return "tablet_alias." + error; } - if (message.destination_keyspace != null && message.hasOwnProperty("destination_keyspace")) - if (!$util.isString(message.destination_keyspace)) - return "destination_keyspace: string expected"; - if (message.destination_shard != null && message.hasOwnProperty("destination_shard")) - if (!$util.isString(message.destination_shard)) - return "destination_shard: string expected"; + if (message.query != null && message.hasOwnProperty("query")) + if (!$util.isString(message.query)) + return "query: string expected"; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) + return "max_rows: integer|Long expected"; + if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) + if (typeof message.disable_binlogs !== "boolean") + return "disable_binlogs: boolean expected"; + if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) + if (typeof message.reload_schema !== "boolean") + return "reload_schema: boolean expected"; return null; }; /** - * Creates a CopySchemaShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CopySchemaShardRequest + * @memberof vtctldata.ExecuteFetchAsDBARequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.CopySchemaShardRequest} CopySchemaShardRequest + * @returns {vtctldata.ExecuteFetchAsDBARequest} ExecuteFetchAsDBARequest */ - CopySchemaShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CopySchemaShardRequest) + ExecuteFetchAsDBARequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteFetchAsDBARequest) return object; - let message = new $root.vtctldata.CopySchemaShardRequest(); - if (object.source_tablet_alias != null) { - if (typeof object.source_tablet_alias !== "object") - throw TypeError(".vtctldata.CopySchemaShardRequest.source_tablet_alias: object expected"); - message.source_tablet_alias = $root.topodata.TabletAlias.fromObject(object.source_tablet_alias); - } - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".vtctldata.CopySchemaShardRequest.tables: array expected"); - message.tables = []; - for (let i = 0; i < object.tables.length; ++i) - message.tables[i] = String(object.tables[i]); - } - if (object.exclude_tables) { - if (!Array.isArray(object.exclude_tables)) - throw TypeError(".vtctldata.CopySchemaShardRequest.exclude_tables: array expected"); - message.exclude_tables = []; - for (let i = 0; i < object.exclude_tables.length; ++i) - message.exclude_tables[i] = String(object.exclude_tables[i]); - } - if (object.include_views != null) - message.include_views = Boolean(object.include_views); - if (object.skip_verify != null) - message.skip_verify = Boolean(object.skip_verify); - if (object.wait_replicas_timeout != null) { - if (typeof object.wait_replicas_timeout !== "object") - throw TypeError(".vtctldata.CopySchemaShardRequest.wait_replicas_timeout: object expected"); - message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); + let message = new $root.vtctldata.ExecuteFetchAsDBARequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.ExecuteFetchAsDBARequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } - if (object.destination_keyspace != null) - message.destination_keyspace = String(object.destination_keyspace); - if (object.destination_shard != null) - message.destination_shard = String(object.destination_shard); + if (object.query != null) + message.query = String(object.query); + if (object.max_rows != null) + if ($util.Long) + (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = false; + else if (typeof object.max_rows === "string") + message.max_rows = parseInt(object.max_rows, 10); + else if (typeof object.max_rows === "number") + message.max_rows = object.max_rows; + else if (typeof object.max_rows === "object") + message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(); + if (object.disable_binlogs != null) + message.disable_binlogs = Boolean(object.disable_binlogs); + if (object.reload_schema != null) + message.reload_schema = Boolean(object.reload_schema); return message; }; /** - * Creates a plain object from a CopySchemaShardRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteFetchAsDBARequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CopySchemaShardRequest + * @memberof vtctldata.ExecuteFetchAsDBARequest * @static - * @param {vtctldata.CopySchemaShardRequest} message CopySchemaShardRequest + * @param {vtctldata.ExecuteFetchAsDBARequest} message ExecuteFetchAsDBARequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CopySchemaShardRequest.toObject = function toObject(message, options) { + ExecuteFetchAsDBARequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.tables = []; - object.exclude_tables = []; - } if (options.defaults) { - object.source_tablet_alias = null; - object.include_views = false; - object.skip_verify = false; - object.wait_replicas_timeout = null; - object.destination_keyspace = ""; - object.destination_shard = ""; - } - if (message.source_tablet_alias != null && message.hasOwnProperty("source_tablet_alias")) - object.source_tablet_alias = $root.topodata.TabletAlias.toObject(message.source_tablet_alias, options); - if (message.tables && message.tables.length) { - object.tables = []; - for (let j = 0; j < message.tables.length; ++j) - object.tables[j] = message.tables[j]; - } - if (message.exclude_tables && message.exclude_tables.length) { - object.exclude_tables = []; - for (let j = 0; j < message.exclude_tables.length; ++j) - object.exclude_tables[j] = message.exclude_tables[j]; + object.tablet_alias = null; + object.query = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_rows = options.longs === String ? "0" : 0; + object.disable_binlogs = false; + object.reload_schema = false; } - if (message.include_views != null && message.hasOwnProperty("include_views")) - object.include_views = message.include_views; - if (message.skip_verify != null && message.hasOwnProperty("skip_verify")) - object.skip_verify = message.skip_verify; - 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.destination_keyspace != null && message.hasOwnProperty("destination_keyspace")) - object.destination_keyspace = message.destination_keyspace; - if (message.destination_shard != null && message.hasOwnProperty("destination_shard")) - object.destination_shard = message.destination_shard; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.query != null && message.hasOwnProperty("query")) + object.query = message.query; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (typeof message.max_rows === "number") + object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; + else + object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber() : message.max_rows; + if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) + object.disable_binlogs = message.disable_binlogs; + if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) + object.reload_schema = message.reload_schema; return object; }; /** - * Converts this CopySchemaShardRequest to JSON. + * Converts this ExecuteFetchAsDBARequest to JSON. * @function toJSON - * @memberof vtctldata.CopySchemaShardRequest + * @memberof vtctldata.ExecuteFetchAsDBARequest * @instance * @returns {Object.} JSON object */ - CopySchemaShardRequest.prototype.toJSON = function toJSON() { + ExecuteFetchAsDBARequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CopySchemaShardRequest + * Gets the default type url for ExecuteFetchAsDBARequest * @function getTypeUrl - * @memberof vtctldata.CopySchemaShardRequest + * @memberof vtctldata.ExecuteFetchAsDBARequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CopySchemaShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteFetchAsDBARequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.CopySchemaShardRequest"; + return typeUrlPrefix + "/vtctldata.ExecuteFetchAsDBARequest"; }; - return CopySchemaShardRequest; + return ExecuteFetchAsDBARequest; })(); - vtctldata.CopySchemaShardResponse = (function() { + vtctldata.ExecuteFetchAsDBAResponse = (function() { /** - * Properties of a CopySchemaShardResponse. + * Properties of an ExecuteFetchAsDBAResponse. * @memberof vtctldata - * @interface ICopySchemaShardResponse + * @interface IExecuteFetchAsDBAResponse + * @property {query.IQueryResult|null} [result] ExecuteFetchAsDBAResponse result */ /** - * Constructs a new CopySchemaShardResponse. + * Constructs a new ExecuteFetchAsDBAResponse. * @memberof vtctldata - * @classdesc Represents a CopySchemaShardResponse. - * @implements ICopySchemaShardResponse + * @classdesc Represents an ExecuteFetchAsDBAResponse. + * @implements IExecuteFetchAsDBAResponse * @constructor - * @param {vtctldata.ICopySchemaShardResponse=} [properties] Properties to set + * @param {vtctldata.IExecuteFetchAsDBAResponse=} [properties] Properties to set */ - function CopySchemaShardResponse(properties) { + function ExecuteFetchAsDBAResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -139537,63 +147244,77 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new CopySchemaShardResponse instance using the specified properties. + * ExecuteFetchAsDBAResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof vtctldata.ExecuteFetchAsDBAResponse + * @instance + */ + ExecuteFetchAsDBAResponse.prototype.result = null; + + /** + * Creates a new ExecuteFetchAsDBAResponse instance using the specified properties. * @function create - * @memberof vtctldata.CopySchemaShardResponse + * @memberof vtctldata.ExecuteFetchAsDBAResponse * @static - * @param {vtctldata.ICopySchemaShardResponse=} [properties] Properties to set - * @returns {vtctldata.CopySchemaShardResponse} CopySchemaShardResponse instance + * @param {vtctldata.IExecuteFetchAsDBAResponse=} [properties] Properties to set + * @returns {vtctldata.ExecuteFetchAsDBAResponse} ExecuteFetchAsDBAResponse instance */ - CopySchemaShardResponse.create = function create(properties) { - return new CopySchemaShardResponse(properties); + ExecuteFetchAsDBAResponse.create = function create(properties) { + return new ExecuteFetchAsDBAResponse(properties); }; /** - * Encodes the specified CopySchemaShardResponse message. Does not implicitly {@link vtctldata.CopySchemaShardResponse.verify|verify} messages. + * Encodes the specified ExecuteFetchAsDBAResponse message. Does not implicitly {@link vtctldata.ExecuteFetchAsDBAResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.CopySchemaShardResponse + * @memberof vtctldata.ExecuteFetchAsDBAResponse * @static - * @param {vtctldata.ICopySchemaShardResponse} message CopySchemaShardResponse message or plain object to encode + * @param {vtctldata.IExecuteFetchAsDBAResponse} message ExecuteFetchAsDBAResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CopySchemaShardResponse.encode = function encode(message, writer) { + ExecuteFetchAsDBAResponse.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 CopySchemaShardResponse message, length delimited. Does not implicitly {@link vtctldata.CopySchemaShardResponse.verify|verify} messages. + * Encodes the specified ExecuteFetchAsDBAResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsDBAResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CopySchemaShardResponse + * @memberof vtctldata.ExecuteFetchAsDBAResponse * @static - * @param {vtctldata.ICopySchemaShardResponse} message CopySchemaShardResponse message or plain object to encode + * @param {vtctldata.IExecuteFetchAsDBAResponse} message ExecuteFetchAsDBAResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CopySchemaShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteFetchAsDBAResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CopySchemaShardResponse message from the specified reader or buffer. + * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CopySchemaShardResponse + * @memberof vtctldata.ExecuteFetchAsDBAResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CopySchemaShardResponse} CopySchemaShardResponse + * @returns {vtctldata.ExecuteFetchAsDBAResponse} ExecuteFetchAsDBAResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CopySchemaShardResponse.decode = function decode(reader, length) { + ExecuteFetchAsDBAResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CopySchemaShardResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteFetchAsDBAResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -139603,116 +147324,128 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a CopySchemaShardResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CopySchemaShardResponse + * @memberof vtctldata.ExecuteFetchAsDBAResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CopySchemaShardResponse} CopySchemaShardResponse + * @returns {vtctldata.ExecuteFetchAsDBAResponse} ExecuteFetchAsDBAResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CopySchemaShardResponse.decodeDelimited = function decodeDelimited(reader) { + ExecuteFetchAsDBAResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CopySchemaShardResponse message. + * Verifies an ExecuteFetchAsDBAResponse message. * @function verify - * @memberof vtctldata.CopySchemaShardResponse + * @memberof vtctldata.ExecuteFetchAsDBAResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CopySchemaShardResponse.verify = function verify(message) { + ExecuteFetchAsDBAResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } return null; }; /** - * Creates a CopySchemaShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CopySchemaShardResponse + * @memberof vtctldata.ExecuteFetchAsDBAResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.CopySchemaShardResponse} CopySchemaShardResponse + * @returns {vtctldata.ExecuteFetchAsDBAResponse} ExecuteFetchAsDBAResponse */ - CopySchemaShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CopySchemaShardResponse) + ExecuteFetchAsDBAResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteFetchAsDBAResponse) return object; - return new $root.vtctldata.CopySchemaShardResponse(); + let message = new $root.vtctldata.ExecuteFetchAsDBAResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".vtctldata.ExecuteFetchAsDBAResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + return message; }; /** - * Creates a plain object from a CopySchemaShardResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteFetchAsDBAResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CopySchemaShardResponse + * @memberof vtctldata.ExecuteFetchAsDBAResponse * @static - * @param {vtctldata.CopySchemaShardResponse} message CopySchemaShardResponse + * @param {vtctldata.ExecuteFetchAsDBAResponse} message ExecuteFetchAsDBAResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CopySchemaShardResponse.toObject = function toObject() { - return {}; + ExecuteFetchAsDBAResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); + return object; }; /** - * Converts this CopySchemaShardResponse to JSON. + * Converts this ExecuteFetchAsDBAResponse to JSON. * @function toJSON - * @memberof vtctldata.CopySchemaShardResponse + * @memberof vtctldata.ExecuteFetchAsDBAResponse * @instance * @returns {Object.} JSON object */ - CopySchemaShardResponse.prototype.toJSON = function toJSON() { + ExecuteFetchAsDBAResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CopySchemaShardResponse + * Gets the default type url for ExecuteFetchAsDBAResponse * @function getTypeUrl - * @memberof vtctldata.CopySchemaShardResponse + * @memberof vtctldata.ExecuteFetchAsDBAResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CopySchemaShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteFetchAsDBAResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.CopySchemaShardResponse"; + return typeUrlPrefix + "/vtctldata.ExecuteFetchAsDBAResponse"; }; - return CopySchemaShardResponse; + return ExecuteFetchAsDBAResponse; })(); - vtctldata.CreateKeyspaceRequest = (function() { + vtctldata.ExecuteHookRequest = (function() { /** - * Properties of a CreateKeyspaceRequest. + * Properties of an ExecuteHookRequest. * @memberof vtctldata - * @interface ICreateKeyspaceRequest - * @property {string|null} [name] CreateKeyspaceRequest name - * @property {boolean|null} [force] CreateKeyspaceRequest force - * @property {boolean|null} [allow_empty_v_schema] CreateKeyspaceRequest allow_empty_v_schema - * @property {topodata.KeyspaceType|null} [type] CreateKeyspaceRequest type - * @property {string|null} [base_keyspace] CreateKeyspaceRequest base_keyspace - * @property {vttime.ITime|null} [snapshot_time] CreateKeyspaceRequest snapshot_time - * @property {string|null} [durability_policy] CreateKeyspaceRequest durability_policy - * @property {string|null} [sidecar_db_name] CreateKeyspaceRequest sidecar_db_name + * @interface IExecuteHookRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] ExecuteHookRequest tablet_alias + * @property {tabletmanagerdata.IExecuteHookRequest|null} [tablet_hook_request] ExecuteHookRequest tablet_hook_request */ /** - * Constructs a new CreateKeyspaceRequest. + * Constructs a new ExecuteHookRequest. * @memberof vtctldata - * @classdesc Represents a CreateKeyspaceRequest. - * @implements ICreateKeyspaceRequest + * @classdesc Represents an ExecuteHookRequest. + * @implements IExecuteHookRequest * @constructor - * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IExecuteHookRequest=} [properties] Properties to set */ - function CreateKeyspaceRequest(properties) { + function ExecuteHookRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -139720,173 +147453,89 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * CreateKeyspaceRequest name. - * @member {string} name - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.name = ""; - - /** - * CreateKeyspaceRequest force. - * @member {boolean} force - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.force = false; - - /** - * CreateKeyspaceRequest allow_empty_v_schema. - * @member {boolean} allow_empty_v_schema - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.allow_empty_v_schema = false; - - /** - * CreateKeyspaceRequest type. - * @member {topodata.KeyspaceType} type - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.type = 0; - - /** - * CreateKeyspaceRequest base_keyspace. - * @member {string} base_keyspace - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.base_keyspace = ""; - - /** - * CreateKeyspaceRequest snapshot_time. - * @member {vttime.ITime|null|undefined} snapshot_time - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.snapshot_time = null; - - /** - * CreateKeyspaceRequest durability_policy. - * @member {string} durability_policy - * @memberof vtctldata.CreateKeyspaceRequest + * ExecuteHookRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.ExecuteHookRequest * @instance */ - CreateKeyspaceRequest.prototype.durability_policy = ""; + ExecuteHookRequest.prototype.tablet_alias = null; /** - * CreateKeyspaceRequest sidecar_db_name. - * @member {string} sidecar_db_name - * @memberof vtctldata.CreateKeyspaceRequest + * ExecuteHookRequest tablet_hook_request. + * @member {tabletmanagerdata.IExecuteHookRequest|null|undefined} tablet_hook_request + * @memberof vtctldata.ExecuteHookRequest * @instance */ - CreateKeyspaceRequest.prototype.sidecar_db_name = ""; + ExecuteHookRequest.prototype.tablet_hook_request = null; /** - * Creates a new CreateKeyspaceRequest instance using the specified properties. + * Creates a new ExecuteHookRequest instance using the specified properties. * @function create - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.ExecuteHookRequest * @static - * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest instance + * @param {vtctldata.IExecuteHookRequest=} [properties] Properties to set + * @returns {vtctldata.ExecuteHookRequest} ExecuteHookRequest instance */ - CreateKeyspaceRequest.create = function create(properties) { - return new CreateKeyspaceRequest(properties); + ExecuteHookRequest.create = function create(properties) { + return new ExecuteHookRequest(properties); }; /** - * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * Encodes the specified ExecuteHookRequest message. Does not implicitly {@link vtctldata.ExecuteHookRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.ExecuteHookRequest * @static - * @param {vtctldata.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode + * @param {vtctldata.IExecuteHookRequest} message ExecuteHookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceRequest.encode = function encode(message, writer) { + ExecuteHookRequest.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.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); - if (message.allow_empty_v_schema != null && Object.hasOwnProperty.call(message, "allow_empty_v_schema")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allow_empty_v_schema); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.type); - if (message.base_keyspace != null && Object.hasOwnProperty.call(message, "base_keyspace")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.base_keyspace); - if (message.snapshot_time != null && Object.hasOwnProperty.call(message, "snapshot_time")) - $root.vttime.Time.encode(message.snapshot_time, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.durability_policy != null && Object.hasOwnProperty.call(message, "durability_policy")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.durability_policy); - if (message.sidecar_db_name != null && Object.hasOwnProperty.call(message, "sidecar_db_name")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.sidecar_db_name); + 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.tablet_hook_request != null && Object.hasOwnProperty.call(message, "tablet_hook_request")) + $root.tabletmanagerdata.ExecuteHookRequest.encode(message.tablet_hook_request, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * Encodes the specified ExecuteHookRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteHookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.ExecuteHookRequest * @static - * @param {vtctldata.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode + * @param {vtctldata.IExecuteHookRequest} message ExecuteHookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteHookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. + * Decodes an ExecuteHookRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.ExecuteHookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest + * @returns {vtctldata.ExecuteHookRequest} ExecuteHookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateKeyspaceRequest.decode = function decode(reader, length) { + ExecuteHookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateKeyspaceRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteHookRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } case 2: { - message.force = reader.bool(); - break; - } - case 3: { - message.allow_empty_v_schema = reader.bool(); - break; - } - case 7: { - message.type = reader.int32(); - break; - } - case 8: { - message.base_keyspace = reader.string(); - break; - } - case 9: { - message.snapshot_time = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 10: { - message.durability_policy = reader.string(); - break; - } - case 11: { - message.sidecar_db_name = reader.string(); + message.tablet_hook_request = $root.tabletmanagerdata.ExecuteHookRequest.decode(reader, reader.uint32()); break; } default: @@ -139898,203 +147547,141 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteHookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.ExecuteHookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest + * @returns {vtctldata.ExecuteHookRequest} ExecuteHookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + ExecuteHookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateKeyspaceRequest message. + * Verifies an ExecuteHookRequest message. * @function verify - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.ExecuteHookRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateKeyspaceRequest.verify = function verify(message) { + ExecuteHookRequest.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.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - if (message.allow_empty_v_schema != null && message.hasOwnProperty("allow_empty_v_schema")) - if (typeof message.allow_empty_v_schema !== "boolean") - return "allow_empty_v_schema: boolean expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - break; - } - if (message.base_keyspace != null && message.hasOwnProperty("base_keyspace")) - if (!$util.isString(message.base_keyspace)) - return "base_keyspace: string expected"; - if (message.snapshot_time != null && message.hasOwnProperty("snapshot_time")) { - let error = $root.vttime.Time.verify(message.snapshot_time); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) - return "snapshot_time." + error; + return "tablet_alias." + error; + } + if (message.tablet_hook_request != null && message.hasOwnProperty("tablet_hook_request")) { + let error = $root.tabletmanagerdata.ExecuteHookRequest.verify(message.tablet_hook_request); + if (error) + return "tablet_hook_request." + error; } - if (message.durability_policy != null && message.hasOwnProperty("durability_policy")) - if (!$util.isString(message.durability_policy)) - return "durability_policy: string expected"; - if (message.sidecar_db_name != null && message.hasOwnProperty("sidecar_db_name")) - if (!$util.isString(message.sidecar_db_name)) - return "sidecar_db_name: string expected"; return null; }; /** - * Creates a CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteHookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.ExecuteHookRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest + * @returns {vtctldata.ExecuteHookRequest} ExecuteHookRequest */ - CreateKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateKeyspaceRequest) + ExecuteHookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteHookRequest) return object; - let message = new $root.vtctldata.CreateKeyspaceRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); - if (object.allow_empty_v_schema != null) - message.allow_empty_v_schema = Boolean(object.allow_empty_v_schema); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "NORMAL": - case 0: - message.type = 0; - break; - case "SNAPSHOT": - case 1: - message.type = 1; - break; + let message = new $root.vtctldata.ExecuteHookRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.ExecuteHookRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } - if (object.base_keyspace != null) - message.base_keyspace = String(object.base_keyspace); - if (object.snapshot_time != null) { - if (typeof object.snapshot_time !== "object") - throw TypeError(".vtctldata.CreateKeyspaceRequest.snapshot_time: object expected"); - message.snapshot_time = $root.vttime.Time.fromObject(object.snapshot_time); + if (object.tablet_hook_request != null) { + if (typeof object.tablet_hook_request !== "object") + throw TypeError(".vtctldata.ExecuteHookRequest.tablet_hook_request: object expected"); + message.tablet_hook_request = $root.tabletmanagerdata.ExecuteHookRequest.fromObject(object.tablet_hook_request); } - if (object.durability_policy != null) - message.durability_policy = String(object.durability_policy); - if (object.sidecar_db_name != null) - message.sidecar_db_name = String(object.sidecar_db_name); return message; }; /** - * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteHookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.ExecuteHookRequest * @static - * @param {vtctldata.CreateKeyspaceRequest} message CreateKeyspaceRequest + * @param {vtctldata.ExecuteHookRequest} message ExecuteHookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateKeyspaceRequest.toObject = function toObject(message, options) { + ExecuteHookRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.name = ""; - object.force = false; - object.allow_empty_v_schema = false; - object.type = options.enums === String ? "NORMAL" : 0; - object.base_keyspace = ""; - object.snapshot_time = null; - object.durability_policy = ""; - object.sidecar_db_name = ""; + object.tablet_alias = null; + object.tablet_hook_request = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - if (message.allow_empty_v_schema != null && message.hasOwnProperty("allow_empty_v_schema")) - object.allow_empty_v_schema = message.allow_empty_v_schema; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.topodata.KeyspaceType[message.type] === undefined ? message.type : $root.topodata.KeyspaceType[message.type] : message.type; - if (message.base_keyspace != null && message.hasOwnProperty("base_keyspace")) - object.base_keyspace = message.base_keyspace; - if (message.snapshot_time != null && message.hasOwnProperty("snapshot_time")) - object.snapshot_time = $root.vttime.Time.toObject(message.snapshot_time, options); - if (message.durability_policy != null && message.hasOwnProperty("durability_policy")) - object.durability_policy = message.durability_policy; - if (message.sidecar_db_name != null && message.hasOwnProperty("sidecar_db_name")) - object.sidecar_db_name = message.sidecar_db_name; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.tablet_hook_request != null && message.hasOwnProperty("tablet_hook_request")) + object.tablet_hook_request = $root.tabletmanagerdata.ExecuteHookRequest.toObject(message.tablet_hook_request, options); return object; }; /** - * Converts this CreateKeyspaceRequest to JSON. + * Converts this ExecuteHookRequest to JSON. * @function toJSON - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.ExecuteHookRequest * @instance * @returns {Object.} JSON object */ - CreateKeyspaceRequest.prototype.toJSON = function toJSON() { + ExecuteHookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateKeyspaceRequest + * Gets the default type url for ExecuteHookRequest * @function getTypeUrl - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.ExecuteHookRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteHookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.CreateKeyspaceRequest"; + return typeUrlPrefix + "/vtctldata.ExecuteHookRequest"; }; - return CreateKeyspaceRequest; + return ExecuteHookRequest; })(); - vtctldata.CreateKeyspaceResponse = (function() { + vtctldata.ExecuteHookResponse = (function() { /** - * Properties of a CreateKeyspaceResponse. + * Properties of an ExecuteHookResponse. * @memberof vtctldata - * @interface ICreateKeyspaceResponse - * @property {vtctldata.IKeyspace|null} [keyspace] CreateKeyspaceResponse keyspace + * @interface IExecuteHookResponse + * @property {tabletmanagerdata.IExecuteHookResponse|null} [hook_result] ExecuteHookResponse hook_result */ /** - * Constructs a new CreateKeyspaceResponse. + * Constructs a new ExecuteHookResponse. * @memberof vtctldata - * @classdesc Represents a CreateKeyspaceResponse. - * @implements ICreateKeyspaceResponse + * @classdesc Represents an ExecuteHookResponse. + * @implements IExecuteHookResponse * @constructor - * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IExecuteHookResponse=} [properties] Properties to set */ - function CreateKeyspaceResponse(properties) { + function ExecuteHookResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -140102,75 +147689,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * CreateKeyspaceResponse keyspace. - * @member {vtctldata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.CreateKeyspaceResponse + * ExecuteHookResponse hook_result. + * @member {tabletmanagerdata.IExecuteHookResponse|null|undefined} hook_result + * @memberof vtctldata.ExecuteHookResponse * @instance */ - CreateKeyspaceResponse.prototype.keyspace = null; + ExecuteHookResponse.prototype.hook_result = null; /** - * Creates a new CreateKeyspaceResponse instance using the specified properties. + * Creates a new ExecuteHookResponse instance using the specified properties. * @function create - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.ExecuteHookResponse * @static - * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse instance + * @param {vtctldata.IExecuteHookResponse=} [properties] Properties to set + * @returns {vtctldata.ExecuteHookResponse} ExecuteHookResponse instance */ - CreateKeyspaceResponse.create = function create(properties) { - return new CreateKeyspaceResponse(properties); + ExecuteHookResponse.create = function create(properties) { + return new ExecuteHookResponse(properties); }; /** - * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * Encodes the specified ExecuteHookResponse message. Does not implicitly {@link vtctldata.ExecuteHookResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.ExecuteHookResponse * @static - * @param {vtctldata.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode + * @param {vtctldata.IExecuteHookResponse} message ExecuteHookResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceResponse.encode = function encode(message, writer) { + ExecuteHookResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.hook_result != null && Object.hasOwnProperty.call(message, "hook_result")) + $root.tabletmanagerdata.ExecuteHookResponse.encode(message.hook_result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * Encodes the specified ExecuteHookResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteHookResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.ExecuteHookResponse * @static - * @param {vtctldata.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode + * @param {vtctldata.IExecuteHookResponse} message ExecuteHookResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteHookResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. + * Decodes an ExecuteHookResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.ExecuteHookResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse + * @returns {vtctldata.ExecuteHookResponse} ExecuteHookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateKeyspaceResponse.decode = function decode(reader, length) { + ExecuteHookResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateKeyspaceResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteHookResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); + message.hook_result = $root.tabletmanagerdata.ExecuteHookResponse.decode(reader, reader.uint32()); break; } default: @@ -140182,130 +147769,131 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteHookResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.ExecuteHookResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse + * @returns {vtctldata.ExecuteHookResponse} ExecuteHookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + ExecuteHookResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateKeyspaceResponse message. + * Verifies an ExecuteHookResponse message. * @function verify - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.ExecuteHookResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateKeyspaceResponse.verify = function verify(message) { + ExecuteHookResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - let error = $root.vtctldata.Keyspace.verify(message.keyspace); + if (message.hook_result != null && message.hasOwnProperty("hook_result")) { + let error = $root.tabletmanagerdata.ExecuteHookResponse.verify(message.hook_result); if (error) - return "keyspace." + error; + return "hook_result." + error; } return null; }; /** - * Creates a CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteHookResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.ExecuteHookResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse + * @returns {vtctldata.ExecuteHookResponse} ExecuteHookResponse */ - CreateKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateKeyspaceResponse) + ExecuteHookResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteHookResponse) return object; - let message = new $root.vtctldata.CreateKeyspaceResponse(); - if (object.keyspace != null) { - if (typeof object.keyspace !== "object") - throw TypeError(".vtctldata.CreateKeyspaceResponse.keyspace: object expected"); - message.keyspace = $root.vtctldata.Keyspace.fromObject(object.keyspace); + let message = new $root.vtctldata.ExecuteHookResponse(); + if (object.hook_result != null) { + if (typeof object.hook_result !== "object") + throw TypeError(".vtctldata.ExecuteHookResponse.hook_result: object expected"); + message.hook_result = $root.tabletmanagerdata.ExecuteHookResponse.fromObject(object.hook_result); } return message; }; /** - * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteHookResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.ExecuteHookResponse * @static - * @param {vtctldata.CreateKeyspaceResponse} message CreateKeyspaceResponse + * @param {vtctldata.ExecuteHookResponse} message ExecuteHookResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateKeyspaceResponse.toObject = function toObject(message, options) { + ExecuteHookResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.keyspace = null; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); + object.hook_result = null; + if (message.hook_result != null && message.hasOwnProperty("hook_result")) + object.hook_result = $root.tabletmanagerdata.ExecuteHookResponse.toObject(message.hook_result, options); return object; }; /** - * Converts this CreateKeyspaceResponse to JSON. + * Converts this ExecuteHookResponse to JSON. * @function toJSON - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.ExecuteHookResponse * @instance * @returns {Object.} JSON object */ - CreateKeyspaceResponse.prototype.toJSON = function toJSON() { + ExecuteHookResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateKeyspaceResponse + * Gets the default type url for ExecuteHookResponse * @function getTypeUrl - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.ExecuteHookResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteHookResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.CreateKeyspaceResponse"; + return typeUrlPrefix + "/vtctldata.ExecuteHookResponse"; }; - return CreateKeyspaceResponse; + return ExecuteHookResponse; })(); - vtctldata.CreateShardRequest = (function() { + vtctldata.ExecuteMultiFetchAsDBARequest = (function() { /** - * Properties of a CreateShardRequest. + * Properties of an ExecuteMultiFetchAsDBARequest. * @memberof vtctldata - * @interface ICreateShardRequest - * @property {string|null} [keyspace] CreateShardRequest keyspace - * @property {string|null} [shard_name] CreateShardRequest shard_name - * @property {boolean|null} [force] CreateShardRequest force - * @property {boolean|null} [include_parent] CreateShardRequest include_parent + * @interface IExecuteMultiFetchAsDBARequest + * @property {topodata.ITabletAlias|null} [tablet_alias] ExecuteMultiFetchAsDBARequest tablet_alias + * @property {string|null} [sql] ExecuteMultiFetchAsDBARequest sql + * @property {number|Long|null} [max_rows] ExecuteMultiFetchAsDBARequest max_rows + * @property {boolean|null} [disable_binlogs] ExecuteMultiFetchAsDBARequest disable_binlogs + * @property {boolean|null} [reload_schema] ExecuteMultiFetchAsDBARequest reload_schema */ /** - * Constructs a new CreateShardRequest. + * Constructs a new ExecuteMultiFetchAsDBARequest. * @memberof vtctldata - * @classdesc Represents a CreateShardRequest. - * @implements ICreateShardRequest + * @classdesc Represents an ExecuteMultiFetchAsDBARequest. + * @implements IExecuteMultiFetchAsDBARequest * @constructor - * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set + * @param {vtctldata.IExecuteMultiFetchAsDBARequest=} [properties] Properties to set */ - function CreateShardRequest(properties) { + function ExecuteMultiFetchAsDBARequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -140313,117 +147901,131 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * CreateShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.CreateShardRequest + * ExecuteMultiFetchAsDBARequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest * @instance */ - CreateShardRequest.prototype.keyspace = ""; + ExecuteMultiFetchAsDBARequest.prototype.tablet_alias = null; /** - * CreateShardRequest shard_name. - * @member {string} shard_name - * @memberof vtctldata.CreateShardRequest + * ExecuteMultiFetchAsDBARequest sql. + * @member {string} sql + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest * @instance */ - CreateShardRequest.prototype.shard_name = ""; + ExecuteMultiFetchAsDBARequest.prototype.sql = ""; /** - * CreateShardRequest force. - * @member {boolean} force - * @memberof vtctldata.CreateShardRequest + * ExecuteMultiFetchAsDBARequest max_rows. + * @member {number|Long} max_rows + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest * @instance */ - CreateShardRequest.prototype.force = false; + ExecuteMultiFetchAsDBARequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * CreateShardRequest include_parent. - * @member {boolean} include_parent - * @memberof vtctldata.CreateShardRequest + * ExecuteMultiFetchAsDBARequest disable_binlogs. + * @member {boolean} disable_binlogs + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest * @instance */ - CreateShardRequest.prototype.include_parent = false; + ExecuteMultiFetchAsDBARequest.prototype.disable_binlogs = false; /** - * Creates a new CreateShardRequest instance using the specified properties. + * ExecuteMultiFetchAsDBARequest reload_schema. + * @member {boolean} reload_schema + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest + * @instance + */ + ExecuteMultiFetchAsDBARequest.prototype.reload_schema = false; + + /** + * Creates a new ExecuteMultiFetchAsDBARequest instance using the specified properties. * @function create - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest * @static - * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set - * @returns {vtctldata.CreateShardRequest} CreateShardRequest instance + * @param {vtctldata.IExecuteMultiFetchAsDBARequest=} [properties] Properties to set + * @returns {vtctldata.ExecuteMultiFetchAsDBARequest} ExecuteMultiFetchAsDBARequest instance */ - CreateShardRequest.create = function create(properties) { - return new CreateShardRequest(properties); + ExecuteMultiFetchAsDBARequest.create = function create(properties) { + return new ExecuteMultiFetchAsDBARequest(properties); }; /** - * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * Encodes the specified ExecuteMultiFetchAsDBARequest message. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBARequest.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest * @static - * @param {vtctldata.ICreateShardRequest} message CreateShardRequest message or plain object to encode + * @param {vtctldata.IExecuteMultiFetchAsDBARequest} message ExecuteMultiFetchAsDBARequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateShardRequest.encode = function encode(message, writer) { + ExecuteMultiFetchAsDBARequest.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_name != null && Object.hasOwnProperty.call(message, "shard_name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard_name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); - if (message.include_parent != null && Object.hasOwnProperty.call(message, "include_parent")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_parent); + 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.sql != null && Object.hasOwnProperty.call(message, "sql")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sql); + if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.max_rows); + if (message.disable_binlogs != null && Object.hasOwnProperty.call(message, "disable_binlogs")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.disable_binlogs); + if (message.reload_schema != null && Object.hasOwnProperty.call(message, "reload_schema")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reload_schema); return writer; }; /** - * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * Encodes the specified ExecuteMultiFetchAsDBARequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBARequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest * @static - * @param {vtctldata.ICreateShardRequest} message CreateShardRequest message or plain object to encode + * @param {vtctldata.IExecuteMultiFetchAsDBARequest} message ExecuteMultiFetchAsDBARequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteMultiFetchAsDBARequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateShardRequest message from the specified reader or buffer. + * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CreateShardRequest} CreateShardRequest + * @returns {vtctldata.ExecuteMultiFetchAsDBARequest} ExecuteMultiFetchAsDBARequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateShardRequest.decode = function decode(reader, length) { + ExecuteMultiFetchAsDBARequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateShardRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteMultiFetchAsDBARequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } case 2: { - message.shard_name = reader.string(); + message.sql = reader.string(); break; } case 3: { - message.force = reader.bool(); + message.max_rows = reader.int64(); break; } case 4: { - message.include_parent = reader.bool(); + message.disable_binlogs = reader.bool(); + break; + } + case 5: { + message.reload_schema = reader.bool(); break; } default: @@ -140435,149 +148037,175 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateShardRequest} CreateShardRequest + * @returns {vtctldata.ExecuteMultiFetchAsDBARequest} ExecuteMultiFetchAsDBARequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateShardRequest.decodeDelimited = function decodeDelimited(reader) { + ExecuteMultiFetchAsDBARequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateShardRequest message. + * Verifies an ExecuteMultiFetchAsDBARequest message. * @function verify - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateShardRequest.verify = function verify(message) { + ExecuteMultiFetchAsDBARequest.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_name != null && message.hasOwnProperty("shard_name")) - if (!$util.isString(message.shard_name)) - return "shard_name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - if (message.include_parent != null && message.hasOwnProperty("include_parent")) - if (typeof message.include_parent !== "boolean") - return "include_parent: boolean expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.sql != null && message.hasOwnProperty("sql")) + if (!$util.isString(message.sql)) + return "sql: string expected"; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) + return "max_rows: integer|Long expected"; + if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) + if (typeof message.disable_binlogs !== "boolean") + return "disable_binlogs: boolean expected"; + if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) + if (typeof message.reload_schema !== "boolean") + return "reload_schema: boolean expected"; return null; }; /** - * Creates a CreateShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteMultiFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateShardRequest} CreateShardRequest + * @returns {vtctldata.ExecuteMultiFetchAsDBARequest} ExecuteMultiFetchAsDBARequest */ - CreateShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateShardRequest) + ExecuteMultiFetchAsDBARequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteMultiFetchAsDBARequest) return object; - let message = new $root.vtctldata.CreateShardRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard_name != null) - message.shard_name = String(object.shard_name); - if (object.force != null) - message.force = Boolean(object.force); - if (object.include_parent != null) - message.include_parent = Boolean(object.include_parent); + let message = new $root.vtctldata.ExecuteMultiFetchAsDBARequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.ExecuteMultiFetchAsDBARequest.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.max_rows != null) + if ($util.Long) + (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = false; + else if (typeof object.max_rows === "string") + message.max_rows = parseInt(object.max_rows, 10); + else if (typeof object.max_rows === "number") + message.max_rows = object.max_rows; + else if (typeof object.max_rows === "object") + message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(); + if (object.disable_binlogs != null) + message.disable_binlogs = Boolean(object.disable_binlogs); + if (object.reload_schema != null) + message.reload_schema = Boolean(object.reload_schema); return message; }; /** - * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteMultiFetchAsDBARequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest * @static - * @param {vtctldata.CreateShardRequest} message CreateShardRequest + * @param {vtctldata.ExecuteMultiFetchAsDBARequest} message ExecuteMultiFetchAsDBARequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateShardRequest.toObject = function toObject(message, options) { + ExecuteMultiFetchAsDBARequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.keyspace = ""; - object.shard_name = ""; - object.force = false; - object.include_parent = false; + object.tablet_alias = null; + object.sql = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_rows = options.longs === String ? "0" : 0; + object.disable_binlogs = false; + object.reload_schema = false; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard_name != null && message.hasOwnProperty("shard_name")) - object.shard_name = message.shard_name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - if (message.include_parent != null && message.hasOwnProperty("include_parent")) - object.include_parent = message.include_parent; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.sql != null && message.hasOwnProperty("sql")) + object.sql = message.sql; + if (message.max_rows != null && message.hasOwnProperty("max_rows")) + if (typeof message.max_rows === "number") + object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; + else + object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber() : message.max_rows; + if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) + object.disable_binlogs = message.disable_binlogs; + if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) + object.reload_schema = message.reload_schema; return object; }; /** - * Converts this CreateShardRequest to JSON. + * Converts this ExecuteMultiFetchAsDBARequest to JSON. * @function toJSON - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest * @instance * @returns {Object.} JSON object */ - CreateShardRequest.prototype.toJSON = function toJSON() { + ExecuteMultiFetchAsDBARequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateShardRequest + * Gets the default type url for ExecuteMultiFetchAsDBARequest * @function getTypeUrl - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.ExecuteMultiFetchAsDBARequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteMultiFetchAsDBARequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.CreateShardRequest"; + return typeUrlPrefix + "/vtctldata.ExecuteMultiFetchAsDBARequest"; }; - return CreateShardRequest; + return ExecuteMultiFetchAsDBARequest; })(); - vtctldata.CreateShardResponse = (function() { + vtctldata.ExecuteMultiFetchAsDBAResponse = (function() { /** - * Properties of a CreateShardResponse. + * Properties of an ExecuteMultiFetchAsDBAResponse. * @memberof vtctldata - * @interface ICreateShardResponse - * @property {vtctldata.IKeyspace|null} [keyspace] CreateShardResponse keyspace - * @property {vtctldata.IShard|null} [shard] CreateShardResponse shard - * @property {boolean|null} [shard_already_exists] CreateShardResponse shard_already_exists + * @interface IExecuteMultiFetchAsDBAResponse + * @property {Array.|null} [results] ExecuteMultiFetchAsDBAResponse results */ /** - * Constructs a new CreateShardResponse. + * Constructs a new ExecuteMultiFetchAsDBAResponse. * @memberof vtctldata - * @classdesc Represents a CreateShardResponse. - * @implements ICreateShardResponse + * @classdesc Represents an ExecuteMultiFetchAsDBAResponse. + * @implements IExecuteMultiFetchAsDBAResponse * @constructor - * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set + * @param {vtctldata.IExecuteMultiFetchAsDBAResponse=} [properties] Properties to set */ - function CreateShardResponse(properties) { + function ExecuteMultiFetchAsDBAResponse(properties) { + this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -140585,103 +148213,78 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * CreateShardResponse keyspace. - * @member {vtctldata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.CreateShardResponse - * @instance - */ - CreateShardResponse.prototype.keyspace = null; - - /** - * CreateShardResponse shard. - * @member {vtctldata.IShard|null|undefined} shard - * @memberof vtctldata.CreateShardResponse - * @instance - */ - CreateShardResponse.prototype.shard = null; - - /** - * CreateShardResponse shard_already_exists. - * @member {boolean} shard_already_exists - * @memberof vtctldata.CreateShardResponse + * ExecuteMultiFetchAsDBAResponse results. + * @member {Array.} results + * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse * @instance */ - CreateShardResponse.prototype.shard_already_exists = false; + ExecuteMultiFetchAsDBAResponse.prototype.results = $util.emptyArray; /** - * Creates a new CreateShardResponse instance using the specified properties. + * Creates a new ExecuteMultiFetchAsDBAResponse instance using the specified properties. * @function create - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse * @static - * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set - * @returns {vtctldata.CreateShardResponse} CreateShardResponse instance + * @param {vtctldata.IExecuteMultiFetchAsDBAResponse=} [properties] Properties to set + * @returns {vtctldata.ExecuteMultiFetchAsDBAResponse} ExecuteMultiFetchAsDBAResponse instance */ - CreateShardResponse.create = function create(properties) { - return new CreateShardResponse(properties); + ExecuteMultiFetchAsDBAResponse.create = function create(properties) { + return new ExecuteMultiFetchAsDBAResponse(properties); }; /** - * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * Encodes the specified ExecuteMultiFetchAsDBAResponse message. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBAResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse * @static - * @param {vtctldata.ICreateShardResponse} message CreateShardResponse message or plain object to encode + * @param {vtctldata.IExecuteMultiFetchAsDBAResponse} message ExecuteMultiFetchAsDBAResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateShardResponse.encode = function encode(message, writer) { + ExecuteMultiFetchAsDBAResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - $root.vtctldata.Shard.encode(message.shard, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shard_already_exists != null && Object.hasOwnProperty.call(message, "shard_already_exists")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.shard_already_exists); + if (message.results != null && message.results.length) + for (let i = 0; i < message.results.length; ++i) + $root.query.QueryResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * Encodes the specified ExecuteMultiFetchAsDBAResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBAResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse * @static - * @param {vtctldata.ICreateShardResponse} message CreateShardResponse message or plain object to encode + * @param {vtctldata.IExecuteMultiFetchAsDBAResponse} message ExecuteMultiFetchAsDBAResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteMultiFetchAsDBAResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateShardResponse message from the specified reader or buffer. + * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CreateShardResponse} CreateShardResponse + * @returns {vtctldata.ExecuteMultiFetchAsDBAResponse} ExecuteMultiFetchAsDBAResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateShardResponse.decode = function decode(reader, length) { + ExecuteMultiFetchAsDBAResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateShardResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteMultiFetchAsDBAResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); - break; - } - case 2: { - message.shard = $root.vtctldata.Shard.decode(reader, reader.uint32()); - break; - } - case 3: { - message.shard_already_exists = reader.bool(); + if (!(message.results && message.results.length)) + message.results = []; + message.results.push($root.query.QueryResult.decode(reader, reader.uint32())); break; } default: @@ -140693,150 +148296,139 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateShardResponse} CreateShardResponse + * @returns {vtctldata.ExecuteMultiFetchAsDBAResponse} ExecuteMultiFetchAsDBAResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateShardResponse.decodeDelimited = function decodeDelimited(reader) { + ExecuteMultiFetchAsDBAResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateShardResponse message. + * Verifies an ExecuteMultiFetchAsDBAResponse message. * @function verify - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateShardResponse.verify = function verify(message) { + ExecuteMultiFetchAsDBAResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - let error = $root.vtctldata.Keyspace.verify(message.keyspace); - if (error) - return "keyspace." + error; - } - if (message.shard != null && message.hasOwnProperty("shard")) { - let error = $root.vtctldata.Shard.verify(message.shard); - if (error) - return "shard." + error; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (let i = 0; i < message.results.length; ++i) { + let error = $root.query.QueryResult.verify(message.results[i]); + if (error) + return "results." + error; + } } - if (message.shard_already_exists != null && message.hasOwnProperty("shard_already_exists")) - if (typeof message.shard_already_exists !== "boolean") - return "shard_already_exists: boolean expected"; return null; }; /** - * Creates a CreateShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteMultiFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateShardResponse} CreateShardResponse + * @returns {vtctldata.ExecuteMultiFetchAsDBAResponse} ExecuteMultiFetchAsDBAResponse */ - CreateShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateShardResponse) + ExecuteMultiFetchAsDBAResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteMultiFetchAsDBAResponse) return object; - let message = new $root.vtctldata.CreateShardResponse(); - if (object.keyspace != null) { - if (typeof object.keyspace !== "object") - throw TypeError(".vtctldata.CreateShardResponse.keyspace: object expected"); - message.keyspace = $root.vtctldata.Keyspace.fromObject(object.keyspace); - } - if (object.shard != null) { - if (typeof object.shard !== "object") - throw TypeError(".vtctldata.CreateShardResponse.shard: object expected"); - message.shard = $root.vtctldata.Shard.fromObject(object.shard); + let message = new $root.vtctldata.ExecuteMultiFetchAsDBAResponse(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".vtctldata.ExecuteMultiFetchAsDBAResponse.results: array expected"); + message.results = []; + for (let i = 0; i < object.results.length; ++i) { + if (typeof object.results[i] !== "object") + throw TypeError(".vtctldata.ExecuteMultiFetchAsDBAResponse.results: object expected"); + message.results[i] = $root.query.QueryResult.fromObject(object.results[i]); + } } - if (object.shard_already_exists != null) - message.shard_already_exists = Boolean(object.shard_already_exists); return message; }; /** - * Creates a plain object from a CreateShardResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteMultiFetchAsDBAResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse * @static - * @param {vtctldata.CreateShardResponse} message CreateShardResponse + * @param {vtctldata.ExecuteMultiFetchAsDBAResponse} message ExecuteMultiFetchAsDBAResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateShardResponse.toObject = function toObject(message, options) { + ExecuteMultiFetchAsDBAResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.keyspace = null; - object.shard = null; - object.shard_already_exists = false; + if (options.arrays || options.defaults) + object.results = []; + if (message.results && message.results.length) { + object.results = []; + for (let j = 0; j < message.results.length; ++j) + object.results[j] = $root.query.QueryResult.toObject(message.results[j], options); } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = $root.vtctldata.Shard.toObject(message.shard, options); - if (message.shard_already_exists != null && message.hasOwnProperty("shard_already_exists")) - object.shard_already_exists = message.shard_already_exists; return object; }; /** - * Converts this CreateShardResponse to JSON. + * Converts this ExecuteMultiFetchAsDBAResponse to JSON. * @function toJSON - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse * @instance * @returns {Object.} JSON object */ - CreateShardResponse.prototype.toJSON = function toJSON() { + ExecuteMultiFetchAsDBAResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateShardResponse + * Gets the default type url for ExecuteMultiFetchAsDBAResponse * @function getTypeUrl - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteMultiFetchAsDBAResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.CreateShardResponse"; + return typeUrlPrefix + "/vtctldata.ExecuteMultiFetchAsDBAResponse"; }; - return CreateShardResponse; + return ExecuteMultiFetchAsDBAResponse; })(); - vtctldata.DeleteCellInfoRequest = (function() { + vtctldata.FindAllShardsInKeyspaceRequest = (function() { /** - * Properties of a DeleteCellInfoRequest. + * Properties of a FindAllShardsInKeyspaceRequest. * @memberof vtctldata - * @interface IDeleteCellInfoRequest - * @property {string|null} [name] DeleteCellInfoRequest name - * @property {boolean|null} [force] DeleteCellInfoRequest force + * @interface IFindAllShardsInKeyspaceRequest + * @property {string|null} [keyspace] FindAllShardsInKeyspaceRequest keyspace */ /** - * Constructs a new DeleteCellInfoRequest. + * Constructs a new FindAllShardsInKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents a DeleteCellInfoRequest. - * @implements IDeleteCellInfoRequest + * @classdesc Represents a FindAllShardsInKeyspaceRequest. + * @implements IFindAllShardsInKeyspaceRequest * @constructor - * @param {vtctldata.IDeleteCellInfoRequest=} [properties] Properties to set + * @param {vtctldata.IFindAllShardsInKeyspaceRequest=} [properties] Properties to set */ - function DeleteCellInfoRequest(properties) { + function FindAllShardsInKeyspaceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -140844,89 +148436,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * DeleteCellInfoRequest name. - * @member {string} name - * @memberof vtctldata.DeleteCellInfoRequest - * @instance - */ - DeleteCellInfoRequest.prototype.name = ""; - - /** - * DeleteCellInfoRequest force. - * @member {boolean} force - * @memberof vtctldata.DeleteCellInfoRequest + * FindAllShardsInKeyspaceRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @instance */ - DeleteCellInfoRequest.prototype.force = false; + FindAllShardsInKeyspaceRequest.prototype.keyspace = ""; /** - * Creates a new DeleteCellInfoRequest instance using the specified properties. + * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.DeleteCellInfoRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static - * @param {vtctldata.IDeleteCellInfoRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteCellInfoRequest} DeleteCellInfoRequest instance + * @param {vtctldata.IFindAllShardsInKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest instance */ - DeleteCellInfoRequest.create = function create(properties) { - return new DeleteCellInfoRequest(properties); + FindAllShardsInKeyspaceRequest.create = function create(properties) { + return new FindAllShardsInKeyspaceRequest(properties); }; /** - * Encodes the specified DeleteCellInfoRequest message. Does not implicitly {@link vtctldata.DeleteCellInfoRequest.verify|verify} messages. + * Encodes the specified FindAllShardsInKeyspaceRequest message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteCellInfoRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static - * @param {vtctldata.IDeleteCellInfoRequest} message DeleteCellInfoRequest message or plain object to encode + * @param {vtctldata.IFindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCellInfoRequest.encode = function encode(message, writer) { + FindAllShardsInKeyspaceRequest.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.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); return writer; }; /** - * Encodes the specified DeleteCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteCellInfoRequest.verify|verify} messages. + * Encodes the specified FindAllShardsInKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteCellInfoRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static - * @param {vtctldata.IDeleteCellInfoRequest} message DeleteCellInfoRequest message or plain object to encode + * @param {vtctldata.IFindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + FindAllShardsInKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteCellInfoRequest message from the specified reader or buffer. + * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteCellInfoRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteCellInfoRequest} DeleteCellInfoRequest + * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCellInfoRequest.decode = function decode(reader, length) { + FindAllShardsInKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteCellInfoRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.FindAllShardsInKeyspaceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.force = reader.bool(); + message.keyspace = reader.string(); break; } default: @@ -140938,130 +148516,123 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a DeleteCellInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteCellInfoRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteCellInfoRequest} DeleteCellInfoRequest + * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { + FindAllShardsInKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteCellInfoRequest message. + * Verifies a FindAllShardsInKeyspaceRequest message. * @function verify - * @memberof vtctldata.DeleteCellInfoRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteCellInfoRequest.verify = function verify(message) { + FindAllShardsInKeyspaceRequest.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.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; return null; }; /** - * Creates a DeleteCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FindAllShardsInKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteCellInfoRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteCellInfoRequest} DeleteCellInfoRequest + * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest */ - DeleteCellInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteCellInfoRequest) + FindAllShardsInKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.FindAllShardsInKeyspaceRequest) return object; - let message = new $root.vtctldata.DeleteCellInfoRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); + let message = new $root.vtctldata.FindAllShardsInKeyspaceRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); return message; }; /** - * Creates a plain object from a DeleteCellInfoRequest message. Also converts values to other types if specified. + * Creates a plain object from a FindAllShardsInKeyspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteCellInfoRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static - * @param {vtctldata.DeleteCellInfoRequest} message DeleteCellInfoRequest + * @param {vtctldata.FindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteCellInfoRequest.toObject = function toObject(message, options) { + FindAllShardsInKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (options.defaults) + object.keyspace = ""; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; return object; }; /** - * Converts this DeleteCellInfoRequest to JSON. + * Converts this FindAllShardsInKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.DeleteCellInfoRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @instance * @returns {Object.} JSON object */ - DeleteCellInfoRequest.prototype.toJSON = function toJSON() { + FindAllShardsInKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteCellInfoRequest + * Gets the default type url for FindAllShardsInKeyspaceRequest * @function getTypeUrl - * @memberof vtctldata.DeleteCellInfoRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteCellInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FindAllShardsInKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.DeleteCellInfoRequest"; + return typeUrlPrefix + "/vtctldata.FindAllShardsInKeyspaceRequest"; }; - return DeleteCellInfoRequest; + return FindAllShardsInKeyspaceRequest; })(); - vtctldata.DeleteCellInfoResponse = (function() { + vtctldata.FindAllShardsInKeyspaceResponse = (function() { /** - * Properties of a DeleteCellInfoResponse. + * Properties of a FindAllShardsInKeyspaceResponse. * @memberof vtctldata - * @interface IDeleteCellInfoResponse + * @interface IFindAllShardsInKeyspaceResponse + * @property {Object.|null} [shards] FindAllShardsInKeyspaceResponse shards */ /** - * Constructs a new DeleteCellInfoResponse. + * Constructs a new FindAllShardsInKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents a DeleteCellInfoResponse. - * @implements IDeleteCellInfoResponse + * @classdesc Represents a FindAllShardsInKeyspaceResponse. + * @implements IFindAllShardsInKeyspaceResponse * @constructor - * @param {vtctldata.IDeleteCellInfoResponse=} [properties] Properties to set + * @param {vtctldata.IFindAllShardsInKeyspaceResponse=} [properties] Properties to set */ - function DeleteCellInfoResponse(properties) { + function FindAllShardsInKeyspaceResponse(properties) { + this.shards = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -141069,63 +148640,99 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new DeleteCellInfoResponse instance using the specified properties. + * FindAllShardsInKeyspaceResponse shards. + * @member {Object.} shards + * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @instance + */ + FindAllShardsInKeyspaceResponse.prototype.shards = $util.emptyObject; + + /** + * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.DeleteCellInfoResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static - * @param {vtctldata.IDeleteCellInfoResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteCellInfoResponse} DeleteCellInfoResponse instance + * @param {vtctldata.IFindAllShardsInKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse instance */ - DeleteCellInfoResponse.create = function create(properties) { - return new DeleteCellInfoResponse(properties); + FindAllShardsInKeyspaceResponse.create = function create(properties) { + return new FindAllShardsInKeyspaceResponse(properties); }; /** - * Encodes the specified DeleteCellInfoResponse message. Does not implicitly {@link vtctldata.DeleteCellInfoResponse.verify|verify} messages. + * Encodes the specified FindAllShardsInKeyspaceResponse message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteCellInfoResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static - * @param {vtctldata.IDeleteCellInfoResponse} message DeleteCellInfoResponse message or plain object to encode + * @param {vtctldata.IFindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCellInfoResponse.encode = function encode(message, writer) { + FindAllShardsInKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.shards != null && Object.hasOwnProperty.call(message, "shards")) + for (let keys = Object.keys(message.shards), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtctldata.Shard.encode(message.shards[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified DeleteCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteCellInfoResponse.verify|verify} messages. + * Encodes the specified FindAllShardsInKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteCellInfoResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static - * @param {vtctldata.IDeleteCellInfoResponse} message DeleteCellInfoResponse message or plain object to encode + * @param {vtctldata.IFindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + FindAllShardsInKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteCellInfoResponse message from the specified reader or buffer. + * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteCellInfoResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteCellInfoResponse} DeleteCellInfoResponse + * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCellInfoResponse.decode = function decode(reader, length) { + FindAllShardsInKeyspaceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteCellInfoResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.FindAllShardsInKeyspaceResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (message.shards === $util.emptyObject) + message.shards = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.Shard.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.shards[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -141135,109 +148742,143 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a DeleteCellInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteCellInfoResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteCellInfoResponse} DeleteCellInfoResponse + * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { + FindAllShardsInKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteCellInfoResponse message. + * Verifies a FindAllShardsInKeyspaceResponse message. * @function verify - * @memberof vtctldata.DeleteCellInfoResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteCellInfoResponse.verify = function verify(message) { + FindAllShardsInKeyspaceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!$util.isObject(message.shards)) + return "shards: object expected"; + let key = Object.keys(message.shards); + for (let i = 0; i < key.length; ++i) { + let error = $root.vtctldata.Shard.verify(message.shards[key[i]]); + if (error) + return "shards." + error; + } + } return null; }; /** - * Creates a DeleteCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FindAllShardsInKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteCellInfoResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteCellInfoResponse} DeleteCellInfoResponse + * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse */ - DeleteCellInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteCellInfoResponse) + FindAllShardsInKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.FindAllShardsInKeyspaceResponse) return object; - return new $root.vtctldata.DeleteCellInfoResponse(); + let message = new $root.vtctldata.FindAllShardsInKeyspaceResponse(); + if (object.shards) { + if (typeof object.shards !== "object") + throw TypeError(".vtctldata.FindAllShardsInKeyspaceResponse.shards: object expected"); + message.shards = {}; + for (let keys = Object.keys(object.shards), i = 0; i < keys.length; ++i) { + if (typeof object.shards[keys[i]] !== "object") + throw TypeError(".vtctldata.FindAllShardsInKeyspaceResponse.shards: object expected"); + message.shards[keys[i]] = $root.vtctldata.Shard.fromObject(object.shards[keys[i]]); + } + } + return message; }; /** - * Creates a plain object from a DeleteCellInfoResponse message. Also converts values to other types if specified. + * Creates a plain object from a FindAllShardsInKeyspaceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteCellInfoResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static - * @param {vtctldata.DeleteCellInfoResponse} message DeleteCellInfoResponse + * @param {vtctldata.FindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteCellInfoResponse.toObject = function toObject() { - return {}; + FindAllShardsInKeyspaceResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) + object.shards = {}; + let keys2; + if (message.shards && (keys2 = Object.keys(message.shards)).length) { + object.shards = {}; + for (let j = 0; j < keys2.length; ++j) + object.shards[keys2[j]] = $root.vtctldata.Shard.toObject(message.shards[keys2[j]], options); + } + return object; }; /** - * Converts this DeleteCellInfoResponse to JSON. + * Converts this FindAllShardsInKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.DeleteCellInfoResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @instance * @returns {Object.} JSON object */ - DeleteCellInfoResponse.prototype.toJSON = function toJSON() { + FindAllShardsInKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteCellInfoResponse + * Gets the default type url for FindAllShardsInKeyspaceResponse * @function getTypeUrl - * @memberof vtctldata.DeleteCellInfoResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteCellInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FindAllShardsInKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.DeleteCellInfoResponse"; + return typeUrlPrefix + "/vtctldata.FindAllShardsInKeyspaceResponse"; }; - return DeleteCellInfoResponse; + return FindAllShardsInKeyspaceResponse; })(); - vtctldata.DeleteCellsAliasRequest = (function() { + vtctldata.ForceCutOverSchemaMigrationRequest = (function() { /** - * Properties of a DeleteCellsAliasRequest. + * Properties of a ForceCutOverSchemaMigrationRequest. * @memberof vtctldata - * @interface IDeleteCellsAliasRequest - * @property {string|null} [name] DeleteCellsAliasRequest name + * @interface IForceCutOverSchemaMigrationRequest + * @property {string|null} [keyspace] ForceCutOverSchemaMigrationRequest keyspace + * @property {string|null} [uuid] ForceCutOverSchemaMigrationRequest uuid + * @property {vtrpc.ICallerID|null} [caller_id] ForceCutOverSchemaMigrationRequest caller_id */ /** - * Constructs a new DeleteCellsAliasRequest. + * Constructs a new ForceCutOverSchemaMigrationRequest. * @memberof vtctldata - * @classdesc Represents a DeleteCellsAliasRequest. - * @implements IDeleteCellsAliasRequest + * @classdesc Represents a ForceCutOverSchemaMigrationRequest. + * @implements IForceCutOverSchemaMigrationRequest * @constructor - * @param {vtctldata.IDeleteCellsAliasRequest=} [properties] Properties to set + * @param {vtctldata.IForceCutOverSchemaMigrationRequest=} [properties] Properties to set */ - function DeleteCellsAliasRequest(properties) { + function ForceCutOverSchemaMigrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -141245,75 +148886,103 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * DeleteCellsAliasRequest name. - * @member {string} name - * @memberof vtctldata.DeleteCellsAliasRequest + * ForceCutOverSchemaMigrationRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.ForceCutOverSchemaMigrationRequest * @instance */ - DeleteCellsAliasRequest.prototype.name = ""; + ForceCutOverSchemaMigrationRequest.prototype.keyspace = ""; /** - * Creates a new DeleteCellsAliasRequest instance using the specified properties. + * ForceCutOverSchemaMigrationRequest uuid. + * @member {string} uuid + * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * @instance + */ + ForceCutOverSchemaMigrationRequest.prototype.uuid = ""; + + /** + * ForceCutOverSchemaMigrationRequest caller_id. + * @member {vtrpc.ICallerID|null|undefined} caller_id + * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * @instance + */ + ForceCutOverSchemaMigrationRequest.prototype.caller_id = null; + + /** + * Creates a new ForceCutOverSchemaMigrationRequest instance using the specified properties. * @function create - * @memberof vtctldata.DeleteCellsAliasRequest + * @memberof vtctldata.ForceCutOverSchemaMigrationRequest * @static - * @param {vtctldata.IDeleteCellsAliasRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteCellsAliasRequest} DeleteCellsAliasRequest instance + * @param {vtctldata.IForceCutOverSchemaMigrationRequest=} [properties] Properties to set + * @returns {vtctldata.ForceCutOverSchemaMigrationRequest} ForceCutOverSchemaMigrationRequest instance */ - DeleteCellsAliasRequest.create = function create(properties) { - return new DeleteCellsAliasRequest(properties); + ForceCutOverSchemaMigrationRequest.create = function create(properties) { + return new ForceCutOverSchemaMigrationRequest(properties); }; /** - * Encodes the specified DeleteCellsAliasRequest message. Does not implicitly {@link vtctldata.DeleteCellsAliasRequest.verify|verify} messages. + * Encodes the specified ForceCutOverSchemaMigrationRequest message. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteCellsAliasRequest + * @memberof vtctldata.ForceCutOverSchemaMigrationRequest * @static - * @param {vtctldata.IDeleteCellsAliasRequest} message DeleteCellsAliasRequest message or plain object to encode + * @param {vtctldata.IForceCutOverSchemaMigrationRequest} message ForceCutOverSchemaMigrationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCellsAliasRequest.encode = function encode(message, writer) { + ForceCutOverSchemaMigrationRequest.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")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); + if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) + $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteCellsAliasRequest.verify|verify} messages. + * Encodes the specified ForceCutOverSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteCellsAliasRequest + * @memberof vtctldata.ForceCutOverSchemaMigrationRequest * @static - * @param {vtctldata.IDeleteCellsAliasRequest} message DeleteCellsAliasRequest message or plain object to encode + * @param {vtctldata.IForceCutOverSchemaMigrationRequest} message ForceCutOverSchemaMigrationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCellsAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { + ForceCutOverSchemaMigrationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteCellsAliasRequest message from the specified reader or buffer. + * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteCellsAliasRequest + * @memberof vtctldata.ForceCutOverSchemaMigrationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteCellsAliasRequest} DeleteCellsAliasRequest + * @returns {vtctldata.ForceCutOverSchemaMigrationRequest} ForceCutOverSchemaMigrationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCellsAliasRequest.decode = function decode(reader, length) { + ForceCutOverSchemaMigrationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteCellsAliasRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ForceCutOverSchemaMigrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.keyspace = reader.string(); + break; + } + case 2: { + message.uuid = reader.string(); + break; + } + case 3: { + message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; } default: @@ -141325,121 +148994,145 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a DeleteCellsAliasRequest message from the specified reader or buffer, length delimited. + * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteCellsAliasRequest + * @memberof vtctldata.ForceCutOverSchemaMigrationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteCellsAliasRequest} DeleteCellsAliasRequest + * @returns {vtctldata.ForceCutOverSchemaMigrationRequest} ForceCutOverSchemaMigrationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCellsAliasRequest.decodeDelimited = function decodeDelimited(reader) { + ForceCutOverSchemaMigrationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteCellsAliasRequest message. + * Verifies a ForceCutOverSchemaMigrationRequest message. * @function verify - * @memberof vtctldata.DeleteCellsAliasRequest + * @memberof vtctldata.ForceCutOverSchemaMigrationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteCellsAliasRequest.verify = function verify(message) { + ForceCutOverSchemaMigrationRequest.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")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.uuid != null && message.hasOwnProperty("uuid")) + if (!$util.isString(message.uuid)) + return "uuid: string expected"; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) { + let error = $root.vtrpc.CallerID.verify(message.caller_id); + if (error) + return "caller_id." + error; + } return null; }; /** - * Creates a DeleteCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ForceCutOverSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteCellsAliasRequest + * @memberof vtctldata.ForceCutOverSchemaMigrationRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteCellsAliasRequest} DeleteCellsAliasRequest + * @returns {vtctldata.ForceCutOverSchemaMigrationRequest} ForceCutOverSchemaMigrationRequest */ - DeleteCellsAliasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteCellsAliasRequest) + ForceCutOverSchemaMigrationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ForceCutOverSchemaMigrationRequest) return object; - let message = new $root.vtctldata.DeleteCellsAliasRequest(); - if (object.name != null) - message.name = String(object.name); + let message = new $root.vtctldata.ForceCutOverSchemaMigrationRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.uuid != null) + message.uuid = String(object.uuid); + if (object.caller_id != null) { + if (typeof object.caller_id !== "object") + throw TypeError(".vtctldata.ForceCutOverSchemaMigrationRequest.caller_id: object expected"); + message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); + } return message; }; /** - * Creates a plain object from a DeleteCellsAliasRequest message. Also converts values to other types if specified. + * Creates a plain object from a ForceCutOverSchemaMigrationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteCellsAliasRequest + * @memberof vtctldata.ForceCutOverSchemaMigrationRequest * @static - * @param {vtctldata.DeleteCellsAliasRequest} message DeleteCellsAliasRequest + * @param {vtctldata.ForceCutOverSchemaMigrationRequest} message ForceCutOverSchemaMigrationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteCellsAliasRequest.toObject = function toObject(message, options) { + ForceCutOverSchemaMigrationRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.keyspace = ""; + object.uuid = ""; + object.caller_id = null; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.uuid != null && message.hasOwnProperty("uuid")) + object.uuid = message.uuid; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) + object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); return object; }; /** - * Converts this DeleteCellsAliasRequest to JSON. + * Converts this ForceCutOverSchemaMigrationRequest to JSON. * @function toJSON - * @memberof vtctldata.DeleteCellsAliasRequest + * @memberof vtctldata.ForceCutOverSchemaMigrationRequest * @instance * @returns {Object.} JSON object */ - DeleteCellsAliasRequest.prototype.toJSON = function toJSON() { + ForceCutOverSchemaMigrationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteCellsAliasRequest + * Gets the default type url for ForceCutOverSchemaMigrationRequest * @function getTypeUrl - * @memberof vtctldata.DeleteCellsAliasRequest + * @memberof vtctldata.ForceCutOverSchemaMigrationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteCellsAliasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ForceCutOverSchemaMigrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.DeleteCellsAliasRequest"; + return typeUrlPrefix + "/vtctldata.ForceCutOverSchemaMigrationRequest"; }; - return DeleteCellsAliasRequest; + return ForceCutOverSchemaMigrationRequest; })(); - vtctldata.DeleteCellsAliasResponse = (function() { + vtctldata.ForceCutOverSchemaMigrationResponse = (function() { /** - * Properties of a DeleteCellsAliasResponse. + * Properties of a ForceCutOverSchemaMigrationResponse. * @memberof vtctldata - * @interface IDeleteCellsAliasResponse + * @interface IForceCutOverSchemaMigrationResponse + * @property {Object.|null} [rows_affected_by_shard] ForceCutOverSchemaMigrationResponse rows_affected_by_shard */ /** - * Constructs a new DeleteCellsAliasResponse. + * Constructs a new ForceCutOverSchemaMigrationResponse. * @memberof vtctldata - * @classdesc Represents a DeleteCellsAliasResponse. - * @implements IDeleteCellsAliasResponse + * @classdesc Represents a ForceCutOverSchemaMigrationResponse. + * @implements IForceCutOverSchemaMigrationResponse * @constructor - * @param {vtctldata.IDeleteCellsAliasResponse=} [properties] Properties to set + * @param {vtctldata.IForceCutOverSchemaMigrationResponse=} [properties] Properties to set */ - function DeleteCellsAliasResponse(properties) { + function ForceCutOverSchemaMigrationResponse(properties) { + this.rows_affected_by_shard = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -141447,63 +149140,97 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new DeleteCellsAliasResponse instance using the specified properties. + * ForceCutOverSchemaMigrationResponse rows_affected_by_shard. + * @member {Object.} rows_affected_by_shard + * @memberof vtctldata.ForceCutOverSchemaMigrationResponse + * @instance + */ + ForceCutOverSchemaMigrationResponse.prototype.rows_affected_by_shard = $util.emptyObject; + + /** + * Creates a new ForceCutOverSchemaMigrationResponse instance using the specified properties. * @function create - * @memberof vtctldata.DeleteCellsAliasResponse + * @memberof vtctldata.ForceCutOverSchemaMigrationResponse * @static - * @param {vtctldata.IDeleteCellsAliasResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteCellsAliasResponse} DeleteCellsAliasResponse instance + * @param {vtctldata.IForceCutOverSchemaMigrationResponse=} [properties] Properties to set + * @returns {vtctldata.ForceCutOverSchemaMigrationResponse} ForceCutOverSchemaMigrationResponse instance */ - DeleteCellsAliasResponse.create = function create(properties) { - return new DeleteCellsAliasResponse(properties); + ForceCutOverSchemaMigrationResponse.create = function create(properties) { + return new ForceCutOverSchemaMigrationResponse(properties); }; /** - * Encodes the specified DeleteCellsAliasResponse message. Does not implicitly {@link vtctldata.DeleteCellsAliasResponse.verify|verify} messages. + * Encodes the specified ForceCutOverSchemaMigrationResponse message. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteCellsAliasResponse + * @memberof vtctldata.ForceCutOverSchemaMigrationResponse * @static - * @param {vtctldata.IDeleteCellsAliasResponse} message DeleteCellsAliasResponse message or plain object to encode + * @param {vtctldata.IForceCutOverSchemaMigrationResponse} message ForceCutOverSchemaMigrationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCellsAliasResponse.encode = function encode(message, writer) { + ForceCutOverSchemaMigrationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) + for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified DeleteCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteCellsAliasResponse.verify|verify} messages. + * Encodes the specified ForceCutOverSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteCellsAliasResponse + * @memberof vtctldata.ForceCutOverSchemaMigrationResponse * @static - * @param {vtctldata.IDeleteCellsAliasResponse} message DeleteCellsAliasResponse message or plain object to encode + * @param {vtctldata.IForceCutOverSchemaMigrationResponse} message ForceCutOverSchemaMigrationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCellsAliasResponse.encodeDelimited = function encodeDelimited(message, writer) { + ForceCutOverSchemaMigrationResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer. + * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteCellsAliasResponse + * @memberof vtctldata.ForceCutOverSchemaMigrationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteCellsAliasResponse} DeleteCellsAliasResponse + * @returns {vtctldata.ForceCutOverSchemaMigrationResponse} ForceCutOverSchemaMigrationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCellsAliasResponse.decode = function decode(reader, length) { + ForceCutOverSchemaMigrationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteCellsAliasResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ForceCutOverSchemaMigrationResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (message.rows_affected_by_shard === $util.emptyObject) + message.rows_affected_by_shard = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.uint64(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.rows_affected_by_shard[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -141513,111 +149240,150 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer, length delimited. + * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteCellsAliasResponse + * @memberof vtctldata.ForceCutOverSchemaMigrationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteCellsAliasResponse} DeleteCellsAliasResponse + * @returns {vtctldata.ForceCutOverSchemaMigrationResponse} ForceCutOverSchemaMigrationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCellsAliasResponse.decodeDelimited = function decodeDelimited(reader) { + ForceCutOverSchemaMigrationResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteCellsAliasResponse message. + * Verifies a ForceCutOverSchemaMigrationResponse message. * @function verify - * @memberof vtctldata.DeleteCellsAliasResponse + * @memberof vtctldata.ForceCutOverSchemaMigrationResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteCellsAliasResponse.verify = function verify(message) { + ForceCutOverSchemaMigrationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { + if (!$util.isObject(message.rows_affected_by_shard)) + return "rows_affected_by_shard: object expected"; + let key = Object.keys(message.rows_affected_by_shard); + for (let i = 0; i < key.length; ++i) + if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) + return "rows_affected_by_shard: integer|Long{k:string} expected"; + } return null; }; /** - * Creates a DeleteCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ForceCutOverSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteCellsAliasResponse + * @memberof vtctldata.ForceCutOverSchemaMigrationResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteCellsAliasResponse} DeleteCellsAliasResponse + * @returns {vtctldata.ForceCutOverSchemaMigrationResponse} ForceCutOverSchemaMigrationResponse */ - DeleteCellsAliasResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteCellsAliasResponse) + ForceCutOverSchemaMigrationResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ForceCutOverSchemaMigrationResponse) return object; - return new $root.vtctldata.DeleteCellsAliasResponse(); + let message = new $root.vtctldata.ForceCutOverSchemaMigrationResponse(); + if (object.rows_affected_by_shard) { + if (typeof object.rows_affected_by_shard !== "object") + throw TypeError(".vtctldata.ForceCutOverSchemaMigrationResponse.rows_affected_by_shard: object expected"); + message.rows_affected_by_shard = {}; + for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) + if ($util.Long) + (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; + else if (typeof object.rows_affected_by_shard[keys[i]] === "string") + message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); + else if (typeof object.rows_affected_by_shard[keys[i]] === "number") + message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; + else if (typeof object.rows_affected_by_shard[keys[i]] === "object") + message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); + } + return message; }; /** - * Creates a plain object from a DeleteCellsAliasResponse message. Also converts values to other types if specified. + * Creates a plain object from a ForceCutOverSchemaMigrationResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteCellsAliasResponse + * @memberof vtctldata.ForceCutOverSchemaMigrationResponse * @static - * @param {vtctldata.DeleteCellsAliasResponse} message DeleteCellsAliasResponse + * @param {vtctldata.ForceCutOverSchemaMigrationResponse} message ForceCutOverSchemaMigrationResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteCellsAliasResponse.toObject = function toObject() { - return {}; + ForceCutOverSchemaMigrationResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) + object.rows_affected_by_shard = {}; + let keys2; + if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { + object.rows_affected_by_shard = {}; + for (let j = 0; j < keys2.length; ++j) + if (typeof message.rows_affected_by_shard[keys2[j]] === "number") + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; + else + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; + } + return object; }; /** - * Converts this DeleteCellsAliasResponse to JSON. + * Converts this ForceCutOverSchemaMigrationResponse to JSON. * @function toJSON - * @memberof vtctldata.DeleteCellsAliasResponse + * @memberof vtctldata.ForceCutOverSchemaMigrationResponse * @instance * @returns {Object.} JSON object */ - DeleteCellsAliasResponse.prototype.toJSON = function toJSON() { + ForceCutOverSchemaMigrationResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteCellsAliasResponse + * Gets the default type url for ForceCutOverSchemaMigrationResponse * @function getTypeUrl - * @memberof vtctldata.DeleteCellsAliasResponse + * @memberof vtctldata.ForceCutOverSchemaMigrationResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteCellsAliasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ForceCutOverSchemaMigrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.DeleteCellsAliasResponse"; + return typeUrlPrefix + "/vtctldata.ForceCutOverSchemaMigrationResponse"; }; - return DeleteCellsAliasResponse; + return ForceCutOverSchemaMigrationResponse; })(); - vtctldata.DeleteKeyspaceRequest = (function() { + vtctldata.GetBackupsRequest = (function() { /** - * Properties of a DeleteKeyspaceRequest. + * Properties of a GetBackupsRequest. * @memberof vtctldata - * @interface IDeleteKeyspaceRequest - * @property {string|null} [keyspace] DeleteKeyspaceRequest keyspace - * @property {boolean|null} [recursive] DeleteKeyspaceRequest recursive - * @property {boolean|null} [force] DeleteKeyspaceRequest force + * @interface IGetBackupsRequest + * @property {string|null} [keyspace] GetBackupsRequest keyspace + * @property {string|null} [shard] GetBackupsRequest shard + * @property {number|null} [limit] GetBackupsRequest limit + * @property {boolean|null} [detailed] GetBackupsRequest detailed + * @property {number|null} [detailed_limit] GetBackupsRequest detailed_limit */ /** - * Constructs a new DeleteKeyspaceRequest. + * Constructs a new GetBackupsRequest. * @memberof vtctldata - * @classdesc Represents a DeleteKeyspaceRequest. - * @implements IDeleteKeyspaceRequest + * @classdesc Represents a GetBackupsRequest. + * @implements IGetBackupsRequest * @constructor - * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set */ - function DeleteKeyspaceRequest(properties) { + function GetBackupsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -141625,90 +149391,110 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * DeleteKeyspaceRequest keyspace. + * GetBackupsRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @instance */ - DeleteKeyspaceRequest.prototype.keyspace = ""; + GetBackupsRequest.prototype.keyspace = ""; /** - * DeleteKeyspaceRequest recursive. - * @member {boolean} recursive - * @memberof vtctldata.DeleteKeyspaceRequest + * GetBackupsRequest shard. + * @member {string} shard + * @memberof vtctldata.GetBackupsRequest * @instance */ - DeleteKeyspaceRequest.prototype.recursive = false; + GetBackupsRequest.prototype.shard = ""; /** - * DeleteKeyspaceRequest force. - * @member {boolean} force - * @memberof vtctldata.DeleteKeyspaceRequest + * GetBackupsRequest limit. + * @member {number} limit + * @memberof vtctldata.GetBackupsRequest * @instance */ - DeleteKeyspaceRequest.prototype.force = false; + GetBackupsRequest.prototype.limit = 0; /** - * Creates a new DeleteKeyspaceRequest instance using the specified properties. + * GetBackupsRequest detailed. + * @member {boolean} detailed + * @memberof vtctldata.GetBackupsRequest + * @instance + */ + GetBackupsRequest.prototype.detailed = false; + + /** + * GetBackupsRequest detailed_limit. + * @member {number} detailed_limit + * @memberof vtctldata.GetBackupsRequest + * @instance + */ + GetBackupsRequest.prototype.detailed_limit = 0; + + /** + * Creates a new GetBackupsRequest instance using the specified properties. * @function create - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static - * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest instance + * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set + * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest instance */ - DeleteKeyspaceRequest.create = function create(properties) { - return new DeleteKeyspaceRequest(properties); + GetBackupsRequest.create = function create(properties) { + return new GetBackupsRequest(properties); }; /** - * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static - * @param {vtctldata.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode + * @param {vtctldata.IGetBackupsRequest} message GetBackupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteKeyspaceRequest.encode = function encode(message, writer) { + GetBackupsRequest.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.recursive != null && Object.hasOwnProperty.call(message, "recursive")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.recursive); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); + if (message.detailed != null && Object.hasOwnProperty.call(message, "detailed")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.detailed); + if (message.detailed_limit != null && Object.hasOwnProperty.call(message, "detailed_limit")) + writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.detailed_limit); return writer; }; /** - * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static - * @param {vtctldata.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode + * @param {vtctldata.IGetBackupsRequest} message GetBackupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetBackupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. + * Decodes a GetBackupsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteKeyspaceRequest.decode = function decode(reader, length) { + GetBackupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteKeyspaceRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetBackupsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -141717,11 +149503,19 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 2: { - message.recursive = reader.bool(); + message.shard = reader.string(); break; } case 3: { - message.force = reader.bool(); + message.limit = reader.uint32(); + break; + } + case 4: { + message.detailed = reader.bool(); + break; + } + case 5: { + message.detailed_limit = reader.uint32(); break; } default: @@ -141733,138 +149527,156 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + GetBackupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteKeyspaceRequest message. + * Verifies a GetBackupsRequest message. * @function verify - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteKeyspaceRequest.verify = function verify(message) { + GetBackupsRequest.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.recursive != null && message.hasOwnProperty("recursive")) - if (typeof message.recursive !== "boolean") - return "recursive: boolean expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.detailed != null && message.hasOwnProperty("detailed")) + if (typeof message.detailed !== "boolean") + return "detailed: boolean expected"; + if (message.detailed_limit != null && message.hasOwnProperty("detailed_limit")) + if (!$util.isInteger(message.detailed_limit)) + return "detailed_limit: integer expected"; return null; }; /** - * Creates a DeleteKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBackupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest */ - DeleteKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteKeyspaceRequest) + GetBackupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetBackupsRequest) return object; - let message = new $root.vtctldata.DeleteKeyspaceRequest(); + let message = new $root.vtctldata.GetBackupsRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.recursive != null) - message.recursive = Boolean(object.recursive); - if (object.force != null) - message.force = Boolean(object.force); + if (object.shard != null) + message.shard = String(object.shard); + if (object.limit != null) + message.limit = object.limit >>> 0; + if (object.detailed != null) + message.detailed = Boolean(object.detailed); + if (object.detailed_limit != null) + message.detailed_limit = object.detailed_limit >>> 0; return message; }; /** - * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetBackupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static - * @param {vtctldata.DeleteKeyspaceRequest} message DeleteKeyspaceRequest + * @param {vtctldata.GetBackupsRequest} message GetBackupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteKeyspaceRequest.toObject = function toObject(message, options) { + GetBackupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.keyspace = ""; - object.recursive = false; - object.force = false; + object.shard = ""; + object.limit = 0; + object.detailed = false; + object.detailed_limit = 0; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.recursive != null && message.hasOwnProperty("recursive")) - object.recursive = message.recursive; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.limit != null && message.hasOwnProperty("limit")) + object.limit = message.limit; + if (message.detailed != null && message.hasOwnProperty("detailed")) + object.detailed = message.detailed; + if (message.detailed_limit != null && message.hasOwnProperty("detailed_limit")) + object.detailed_limit = message.detailed_limit; return object; }; /** - * Converts this DeleteKeyspaceRequest to JSON. + * Converts this GetBackupsRequest to JSON. * @function toJSON - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @instance * @returns {Object.} JSON object */ - DeleteKeyspaceRequest.prototype.toJSON = function toJSON() { + GetBackupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteKeyspaceRequest + * Gets the default type url for GetBackupsRequest * @function getTypeUrl - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetBackupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.DeleteKeyspaceRequest"; + return typeUrlPrefix + "/vtctldata.GetBackupsRequest"; }; - return DeleteKeyspaceRequest; + return GetBackupsRequest; })(); - vtctldata.DeleteKeyspaceResponse = (function() { + vtctldata.GetBackupsResponse = (function() { /** - * Properties of a DeleteKeyspaceResponse. + * Properties of a GetBackupsResponse. * @memberof vtctldata - * @interface IDeleteKeyspaceResponse + * @interface IGetBackupsResponse + * @property {Array.|null} [backups] GetBackupsResponse backups */ /** - * Constructs a new DeleteKeyspaceResponse. + * Constructs a new GetBackupsResponse. * @memberof vtctldata - * @classdesc Represents a DeleteKeyspaceResponse. - * @implements IDeleteKeyspaceResponse + * @classdesc Represents a GetBackupsResponse. + * @implements IGetBackupsResponse * @constructor - * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set */ - function DeleteKeyspaceResponse(properties) { + function GetBackupsResponse(properties) { + this.backups = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -141872,63 +149684,80 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new DeleteKeyspaceResponse instance using the specified properties. + * GetBackupsResponse backups. + * @member {Array.} backups + * @memberof vtctldata.GetBackupsResponse + * @instance + */ + GetBackupsResponse.prototype.backups = $util.emptyArray; + + /** + * Creates a new GetBackupsResponse instance using the specified properties. * @function create - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static - * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse instance + * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set + * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse instance */ - DeleteKeyspaceResponse.create = function create(properties) { - return new DeleteKeyspaceResponse(properties); + GetBackupsResponse.create = function create(properties) { + return new GetBackupsResponse(properties); }; /** - * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static - * @param {vtctldata.IDeleteKeyspaceResponse} message DeleteKeyspaceResponse message or plain object to encode + * @param {vtctldata.IGetBackupsResponse} message GetBackupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteKeyspaceResponse.encode = function encode(message, writer) { + GetBackupsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.backups != null && message.backups.length) + for (let i = 0; i < message.backups.length; ++i) + $root.mysqlctl.BackupInfo.encode(message.backups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * Encodes the specified GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static - * @param {vtctldata.IDeleteKeyspaceResponse} message DeleteKeyspaceResponse message or plain object to encode + * @param {vtctldata.IGetBackupsResponse} message GetBackupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetBackupsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. + * Decodes a GetBackupsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse + * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteKeyspaceResponse.decode = function decode(reader, length) { + GetBackupsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteKeyspaceResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetBackupsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.backups && message.backups.length)) + message.backups = []; + message.backups.push($root.mysqlctl.BackupInfo.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -141938,113 +149767,139 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse + * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + GetBackupsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteKeyspaceResponse message. + * Verifies a GetBackupsResponse message. * @function verify - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteKeyspaceResponse.verify = function verify(message) { + GetBackupsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.backups != null && message.hasOwnProperty("backups")) { + if (!Array.isArray(message.backups)) + return "backups: array expected"; + for (let i = 0; i < message.backups.length; ++i) { + let error = $root.mysqlctl.BackupInfo.verify(message.backups[i]); + if (error) + return "backups." + error; + } + } return null; }; /** - * Creates a DeleteKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetBackupsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse + * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse */ - DeleteKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteKeyspaceResponse) + GetBackupsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetBackupsResponse) return object; - return new $root.vtctldata.DeleteKeyspaceResponse(); + let message = new $root.vtctldata.GetBackupsResponse(); + if (object.backups) { + if (!Array.isArray(object.backups)) + throw TypeError(".vtctldata.GetBackupsResponse.backups: array expected"); + message.backups = []; + for (let i = 0; i < object.backups.length; ++i) { + if (typeof object.backups[i] !== "object") + throw TypeError(".vtctldata.GetBackupsResponse.backups: object expected"); + message.backups[i] = $root.mysqlctl.BackupInfo.fromObject(object.backups[i]); + } + } + return message; }; /** - * Creates a plain object from a DeleteKeyspaceResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetBackupsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static - * @param {vtctldata.DeleteKeyspaceResponse} message DeleteKeyspaceResponse + * @param {vtctldata.GetBackupsResponse} message GetBackupsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteKeyspaceResponse.toObject = function toObject() { - return {}; + GetBackupsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.backups = []; + if (message.backups && message.backups.length) { + object.backups = []; + for (let j = 0; j < message.backups.length; ++j) + object.backups[j] = $root.mysqlctl.BackupInfo.toObject(message.backups[j], options); + } + return object; }; /** - * Converts this DeleteKeyspaceResponse to JSON. + * Converts this GetBackupsResponse to JSON. * @function toJSON - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @instance * @returns {Object.} JSON object */ - DeleteKeyspaceResponse.prototype.toJSON = function toJSON() { + GetBackupsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteKeyspaceResponse + * Gets the default type url for GetBackupsResponse * @function getTypeUrl - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetBackupsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.DeleteKeyspaceResponse"; + return typeUrlPrefix + "/vtctldata.GetBackupsResponse"; }; - return DeleteKeyspaceResponse; + return GetBackupsResponse; })(); - vtctldata.DeleteShardsRequest = (function() { + vtctldata.GetCellInfoRequest = (function() { /** - * Properties of a DeleteShardsRequest. + * Properties of a GetCellInfoRequest. * @memberof vtctldata - * @interface IDeleteShardsRequest - * @property {Array.|null} [shards] DeleteShardsRequest shards - * @property {boolean|null} [recursive] DeleteShardsRequest recursive - * @property {boolean|null} [even_if_serving] DeleteShardsRequest even_if_serving - * @property {boolean|null} [force] DeleteShardsRequest force + * @interface IGetCellInfoRequest + * @property {string|null} [cell] GetCellInfoRequest cell */ /** - * Constructs a new DeleteShardsRequest. + * Constructs a new GetCellInfoRequest. * @memberof vtctldata - * @classdesc Represents a DeleteShardsRequest. - * @implements IDeleteShardsRequest + * @classdesc Represents a GetCellInfoRequest. + * @implements IGetCellInfoRequest * @constructor - * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set + * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set */ - function DeleteShardsRequest(properties) { - this.shards = []; + function GetCellInfoRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -142052,120 +149907,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * DeleteShardsRequest shards. - * @member {Array.} shards - * @memberof vtctldata.DeleteShardsRequest - * @instance - */ - DeleteShardsRequest.prototype.shards = $util.emptyArray; - - /** - * DeleteShardsRequest recursive. - * @member {boolean} recursive - * @memberof vtctldata.DeleteShardsRequest - * @instance - */ - DeleteShardsRequest.prototype.recursive = false; - - /** - * DeleteShardsRequest even_if_serving. - * @member {boolean} even_if_serving - * @memberof vtctldata.DeleteShardsRequest - * @instance - */ - DeleteShardsRequest.prototype.even_if_serving = false; - - /** - * DeleteShardsRequest force. - * @member {boolean} force - * @memberof vtctldata.DeleteShardsRequest + * GetCellInfoRequest cell. + * @member {string} cell + * @memberof vtctldata.GetCellInfoRequest * @instance */ - DeleteShardsRequest.prototype.force = false; + GetCellInfoRequest.prototype.cell = ""; /** - * Creates a new DeleteShardsRequest instance using the specified properties. + * Creates a new GetCellInfoRequest instance using the specified properties. * @function create - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoRequest * @static - * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest instance + * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest instance */ - DeleteShardsRequest.create = function create(properties) { - return new DeleteShardsRequest(properties); + GetCellInfoRequest.create = function create(properties) { + return new GetCellInfoRequest(properties); }; /** - * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoRequest * @static - * @param {vtctldata.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode + * @param {vtctldata.IGetCellInfoRequest} message GetCellInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteShardsRequest.encode = function encode(message, writer) { + GetCellInfoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shards != null && message.shards.length) - for (let i = 0; i < message.shards.length; ++i) - $root.vtctldata.Shard.encode(message.shards[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.recursive); - if (message.even_if_serving != null && Object.hasOwnProperty.call(message, "even_if_serving")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.even_if_serving); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.force); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); return writer; }; /** - * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * Encodes the specified GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoRequest * @static - * @param {vtctldata.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode + * @param {vtctldata.IGetCellInfoRequest} message GetCellInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteShardsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer. + * Decodes a GetCellInfoRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest + * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteShardsRequest.decode = function decode(reader, length) { + GetCellInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteShardsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.shards && message.shards.length)) - message.shards = []; - message.shards.push($root.vtctldata.Shard.decode(reader, reader.uint32())); - break; - } - case 2: { - message.recursive = reader.bool(); - break; - } - case 4: { - message.even_if_serving = reader.bool(); - break; - } - case 5: { - message.force = reader.bool(); + message.cell = reader.string(); break; } default: @@ -142177,164 +149987,122 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest + * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteShardsRequest.decodeDelimited = function decodeDelimited(reader) { + GetCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteShardsRequest message. + * Verifies a GetCellInfoRequest message. * @function verify - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteShardsRequest.verify = function verify(message) { + GetCellInfoRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shards != null && message.hasOwnProperty("shards")) { - if (!Array.isArray(message.shards)) - return "shards: array expected"; - for (let i = 0; i < message.shards.length; ++i) { - let error = $root.vtctldata.Shard.verify(message.shards[i]); - if (error) - return "shards." + error; - } - } - if (message.recursive != null && message.hasOwnProperty("recursive")) - if (typeof message.recursive !== "boolean") - return "recursive: boolean expected"; - if (message.even_if_serving != null && message.hasOwnProperty("even_if_serving")) - if (typeof message.even_if_serving !== "boolean") - return "even_if_serving: boolean expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; return null; }; /** - * Creates a DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest + * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest */ - DeleteShardsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteShardsRequest) + GetCellInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoRequest) return object; - let message = new $root.vtctldata.DeleteShardsRequest(); - if (object.shards) { - if (!Array.isArray(object.shards)) - throw TypeError(".vtctldata.DeleteShardsRequest.shards: array expected"); - message.shards = []; - for (let i = 0; i < object.shards.length; ++i) { - if (typeof object.shards[i] !== "object") - throw TypeError(".vtctldata.DeleteShardsRequest.shards: object expected"); - message.shards[i] = $root.vtctldata.Shard.fromObject(object.shards[i]); - } - } - if (object.recursive != null) - message.recursive = Boolean(object.recursive); - if (object.even_if_serving != null) - message.even_if_serving = Boolean(object.even_if_serving); - if (object.force != null) - message.force = Boolean(object.force); + let message = new $root.vtctldata.GetCellInfoRequest(); + if (object.cell != null) + message.cell = String(object.cell); return message; }; /** - * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetCellInfoRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoRequest * @static - * @param {vtctldata.DeleteShardsRequest} message DeleteShardsRequest + * @param {vtctldata.GetCellInfoRequest} message GetCellInfoRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteShardsRequest.toObject = function toObject(message, options) { + GetCellInfoRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.shards = []; - if (options.defaults) { - object.recursive = false; - object.even_if_serving = false; - object.force = false; - } - if (message.shards && message.shards.length) { - object.shards = []; - for (let j = 0; j < message.shards.length; ++j) - object.shards[j] = $root.vtctldata.Shard.toObject(message.shards[j], options); - } - if (message.recursive != null && message.hasOwnProperty("recursive")) - object.recursive = message.recursive; - if (message.even_if_serving != null && message.hasOwnProperty("even_if_serving")) - object.even_if_serving = message.even_if_serving; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (options.defaults) + object.cell = ""; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; return object; }; /** - * Converts this DeleteShardsRequest to JSON. + * Converts this GetCellInfoRequest to JSON. * @function toJSON - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoRequest * @instance * @returns {Object.} JSON object */ - DeleteShardsRequest.prototype.toJSON = function toJSON() { + GetCellInfoRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteShardsRequest + * Gets the default type url for GetCellInfoRequest * @function getTypeUrl - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteShardsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetCellInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.DeleteShardsRequest"; + return typeUrlPrefix + "/vtctldata.GetCellInfoRequest"; }; - return DeleteShardsRequest; + return GetCellInfoRequest; })(); - vtctldata.DeleteShardsResponse = (function() { + vtctldata.GetCellInfoResponse = (function() { /** - * Properties of a DeleteShardsResponse. + * Properties of a GetCellInfoResponse. * @memberof vtctldata - * @interface IDeleteShardsResponse + * @interface IGetCellInfoResponse + * @property {topodata.ICellInfo|null} [cell_info] GetCellInfoResponse cell_info */ /** - * Constructs a new DeleteShardsResponse. + * Constructs a new GetCellInfoResponse. * @memberof vtctldata - * @classdesc Represents a DeleteShardsResponse. - * @implements IDeleteShardsResponse + * @classdesc Represents a GetCellInfoResponse. + * @implements IGetCellInfoResponse * @constructor - * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set + * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set */ - function DeleteShardsResponse(properties) { + function GetCellInfoResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -142342,63 +150110,77 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new DeleteShardsResponse instance using the specified properties. + * GetCellInfoResponse cell_info. + * @member {topodata.ICellInfo|null|undefined} cell_info + * @memberof vtctldata.GetCellInfoResponse + * @instance + */ + GetCellInfoResponse.prototype.cell_info = null; + + /** + * Creates a new GetCellInfoResponse instance using the specified properties. * @function create - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoResponse * @static - * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse instance + * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse instance */ - DeleteShardsResponse.create = function create(properties) { - return new DeleteShardsResponse(properties); + GetCellInfoResponse.create = function create(properties) { + return new GetCellInfoResponse(properties); }; /** - * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoResponse * @static - * @param {vtctldata.IDeleteShardsResponse} message DeleteShardsResponse message or plain object to encode + * @param {vtctldata.IGetCellInfoResponse} message GetCellInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteShardsResponse.encode = function encode(message, writer) { + GetCellInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.cell_info != null && Object.hasOwnProperty.call(message, "cell_info")) + $root.topodata.CellInfo.encode(message.cell_info, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * Encodes the specified GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoResponse * @static - * @param {vtctldata.IDeleteShardsResponse} message DeleteShardsResponse message or plain object to encode + * @param {vtctldata.IGetCellInfoResponse} message GetCellInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteShardsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer. + * Decodes a GetCellInfoResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse + * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteShardsResponse.decode = function decode(reader, length) { + GetCellInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteShardsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -142408,109 +150190,126 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse + * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteShardsResponse.decodeDelimited = function decodeDelimited(reader) { + GetCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteShardsResponse message. + * Verifies a GetCellInfoResponse message. * @function verify - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteShardsResponse.verify = function verify(message) { + GetCellInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.cell_info != null && message.hasOwnProperty("cell_info")) { + let error = $root.topodata.CellInfo.verify(message.cell_info); + if (error) + return "cell_info." + error; + } return null; }; /** - * Creates a DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse + * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse */ - DeleteShardsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteShardsResponse) + GetCellInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoResponse) return object; - return new $root.vtctldata.DeleteShardsResponse(); + let message = new $root.vtctldata.GetCellInfoResponse(); + if (object.cell_info != null) { + if (typeof object.cell_info !== "object") + throw TypeError(".vtctldata.GetCellInfoResponse.cell_info: object expected"); + message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); + } + return message; }; /** - * Creates a plain object from a DeleteShardsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetCellInfoResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoResponse * @static - * @param {vtctldata.DeleteShardsResponse} message DeleteShardsResponse + * @param {vtctldata.GetCellInfoResponse} message GetCellInfoResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteShardsResponse.toObject = function toObject() { - return {}; + GetCellInfoResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.cell_info = null; + if (message.cell_info != null && message.hasOwnProperty("cell_info")) + object.cell_info = $root.topodata.CellInfo.toObject(message.cell_info, options); + return object; }; /** - * Converts this DeleteShardsResponse to JSON. + * Converts this GetCellInfoResponse to JSON. * @function toJSON - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoResponse * @instance * @returns {Object.} JSON object */ - DeleteShardsResponse.prototype.toJSON = function toJSON() { + GetCellInfoResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteShardsResponse + * Gets the default type url for GetCellInfoResponse * @function getTypeUrl - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteShardsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetCellInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.DeleteShardsResponse"; + return typeUrlPrefix + "/vtctldata.GetCellInfoResponse"; }; - return DeleteShardsResponse; + return GetCellInfoResponse; })(); - vtctldata.DeleteSrvVSchemaRequest = (function() { + vtctldata.GetCellInfoNamesRequest = (function() { /** - * Properties of a DeleteSrvVSchemaRequest. + * Properties of a GetCellInfoNamesRequest. * @memberof vtctldata - * @interface IDeleteSrvVSchemaRequest - * @property {string|null} [cell] DeleteSrvVSchemaRequest cell + * @interface IGetCellInfoNamesRequest */ /** - * Constructs a new DeleteSrvVSchemaRequest. + * Constructs a new GetCellInfoNamesRequest. * @memberof vtctldata - * @classdesc Represents a DeleteSrvVSchemaRequest. - * @implements IDeleteSrvVSchemaRequest + * @classdesc Represents a GetCellInfoNamesRequest. + * @implements IGetCellInfoNamesRequest * @constructor - * @param {vtctldata.IDeleteSrvVSchemaRequest=} [properties] Properties to set + * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set */ - function DeleteSrvVSchemaRequest(properties) { + function GetCellInfoNamesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -142518,77 +150317,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * DeleteSrvVSchemaRequest cell. - * @member {string} cell - * @memberof vtctldata.DeleteSrvVSchemaRequest - * @instance - */ - DeleteSrvVSchemaRequest.prototype.cell = ""; - - /** - * Creates a new DeleteSrvVSchemaRequest instance using the specified properties. + * Creates a new GetCellInfoNamesRequest instance using the specified properties. * @function create - * @memberof vtctldata.DeleteSrvVSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static - * @param {vtctldata.IDeleteSrvVSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteSrvVSchemaRequest} DeleteSrvVSchemaRequest instance + * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest instance */ - DeleteSrvVSchemaRequest.create = function create(properties) { - return new DeleteSrvVSchemaRequest(properties); + GetCellInfoNamesRequest.create = function create(properties) { + return new GetCellInfoNamesRequest(properties); }; /** - * Encodes the specified DeleteSrvVSchemaRequest message. Does not implicitly {@link vtctldata.DeleteSrvVSchemaRequest.verify|verify} messages. + * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteSrvVSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static - * @param {vtctldata.IDeleteSrvVSchemaRequest} message DeleteSrvVSchemaRequest message or plain object to encode + * @param {vtctldata.IGetCellInfoNamesRequest} message GetCellInfoNamesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSrvVSchemaRequest.encode = function encode(message, writer) { + GetCellInfoNamesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); return writer; }; /** - * Encodes the specified DeleteSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteSrvVSchemaRequest.verify|verify} messages. + * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteSrvVSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static - * @param {vtctldata.IDeleteSrvVSchemaRequest} message DeleteSrvVSchemaRequest message or plain object to encode + * @param {vtctldata.IGetCellInfoNamesRequest} message GetCellInfoNamesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSrvVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCellInfoNamesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer. + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteSrvVSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteSrvVSchemaRequest} DeleteSrvVSchemaRequest + * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSrvVSchemaRequest.decode = function decode(reader, length) { + GetCellInfoNamesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteSrvVSchemaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoNamesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.cell = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -142598,121 +150383,110 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteSrvVSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteSrvVSchemaRequest} DeleteSrvVSchemaRequest + * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSrvVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + GetCellInfoNamesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteSrvVSchemaRequest message. + * Verifies a GetCellInfoNamesRequest message. * @function verify - * @memberof vtctldata.DeleteSrvVSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteSrvVSchemaRequest.verify = function verify(message) { + GetCellInfoNamesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; return null; }; /** - * Creates a DeleteSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoNamesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteSrvVSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteSrvVSchemaRequest} DeleteSrvVSchemaRequest + * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest */ - DeleteSrvVSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteSrvVSchemaRequest) + GetCellInfoNamesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoNamesRequest) return object; - let message = new $root.vtctldata.DeleteSrvVSchemaRequest(); - if (object.cell != null) - message.cell = String(object.cell); - return message; + return new $root.vtctldata.GetCellInfoNamesRequest(); }; /** - * Creates a plain object from a DeleteSrvVSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetCellInfoNamesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteSrvVSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static - * @param {vtctldata.DeleteSrvVSchemaRequest} message DeleteSrvVSchemaRequest + * @param {vtctldata.GetCellInfoNamesRequest} message GetCellInfoNamesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteSrvVSchemaRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.cell = ""; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; - return object; + GetCellInfoNamesRequest.toObject = function toObject() { + return {}; }; /** - * Converts this DeleteSrvVSchemaRequest to JSON. + * Converts this GetCellInfoNamesRequest to JSON. * @function toJSON - * @memberof vtctldata.DeleteSrvVSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @instance * @returns {Object.} JSON object */ - DeleteSrvVSchemaRequest.prototype.toJSON = function toJSON() { + GetCellInfoNamesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteSrvVSchemaRequest + * Gets the default type url for GetCellInfoNamesRequest * @function getTypeUrl - * @memberof vtctldata.DeleteSrvVSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteSrvVSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetCellInfoNamesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.DeleteSrvVSchemaRequest"; + return typeUrlPrefix + "/vtctldata.GetCellInfoNamesRequest"; }; - return DeleteSrvVSchemaRequest; + return GetCellInfoNamesRequest; })(); - vtctldata.DeleteSrvVSchemaResponse = (function() { + vtctldata.GetCellInfoNamesResponse = (function() { /** - * Properties of a DeleteSrvVSchemaResponse. + * Properties of a GetCellInfoNamesResponse. * @memberof vtctldata - * @interface IDeleteSrvVSchemaResponse + * @interface IGetCellInfoNamesResponse + * @property {Array.|null} [names] GetCellInfoNamesResponse names */ /** - * Constructs a new DeleteSrvVSchemaResponse. + * Constructs a new GetCellInfoNamesResponse. * @memberof vtctldata - * @classdesc Represents a DeleteSrvVSchemaResponse. - * @implements IDeleteSrvVSchemaResponse + * @classdesc Represents a GetCellInfoNamesResponse. + * @implements IGetCellInfoNamesResponse * @constructor - * @param {vtctldata.IDeleteSrvVSchemaResponse=} [properties] Properties to set + * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set */ - function DeleteSrvVSchemaResponse(properties) { + function GetCellInfoNamesResponse(properties) { + this.names = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -142720,63 +150494,80 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new DeleteSrvVSchemaResponse instance using the specified properties. + * GetCellInfoNamesResponse names. + * @member {Array.} names + * @memberof vtctldata.GetCellInfoNamesResponse + * @instance + */ + GetCellInfoNamesResponse.prototype.names = $util.emptyArray; + + /** + * Creates a new GetCellInfoNamesResponse instance using the specified properties. * @function create - * @memberof vtctldata.DeleteSrvVSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static - * @param {vtctldata.IDeleteSrvVSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteSrvVSchemaResponse} DeleteSrvVSchemaResponse instance + * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse instance */ - DeleteSrvVSchemaResponse.create = function create(properties) { - return new DeleteSrvVSchemaResponse(properties); + GetCellInfoNamesResponse.create = function create(properties) { + return new GetCellInfoNamesResponse(properties); }; /** - * Encodes the specified DeleteSrvVSchemaResponse message. Does not implicitly {@link vtctldata.DeleteSrvVSchemaResponse.verify|verify} messages. + * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteSrvVSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static - * @param {vtctldata.IDeleteSrvVSchemaResponse} message DeleteSrvVSchemaResponse message or plain object to encode + * @param {vtctldata.IGetCellInfoNamesResponse} message GetCellInfoNamesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSrvVSchemaResponse.encode = function encode(message, writer) { + GetCellInfoNamesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.names != null && message.names.length) + for (let i = 0; i < message.names.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); return writer; }; /** - * Encodes the specified DeleteSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteSrvVSchemaResponse.verify|verify} messages. + * Encodes the specified GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteSrvVSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static - * @param {vtctldata.IDeleteSrvVSchemaResponse} message DeleteSrvVSchemaResponse message or plain object to encode + * @param {vtctldata.IGetCellInfoNamesResponse} message GetCellInfoNamesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSrvVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetCellInfoNamesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer. + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteSrvVSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteSrvVSchemaResponse} DeleteSrvVSchemaResponse + * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSrvVSchemaResponse.decode = function decode(reader, length) { + GetCellInfoNamesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteSrvVSchemaResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoNamesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -142786,111 +150577,133 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteSrvVSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteSrvVSchemaResponse} DeleteSrvVSchemaResponse + * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSrvVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + GetCellInfoNamesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteSrvVSchemaResponse message. + * Verifies a GetCellInfoNamesResponse message. * @function verify - * @memberof vtctldata.DeleteSrvVSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteSrvVSchemaResponse.verify = function verify(message) { + GetCellInfoNamesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (let i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; + } return null; }; /** - * Creates a DeleteSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoNamesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteSrvVSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteSrvVSchemaResponse} DeleteSrvVSchemaResponse + * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse */ - DeleteSrvVSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteSrvVSchemaResponse) + GetCellInfoNamesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoNamesResponse) return object; - return new $root.vtctldata.DeleteSrvVSchemaResponse(); + let message = new $root.vtctldata.GetCellInfoNamesResponse(); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".vtctldata.GetCellInfoNamesResponse.names: array expected"); + message.names = []; + for (let i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); + } + return message; }; /** - * Creates a plain object from a DeleteSrvVSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetCellInfoNamesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteSrvVSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static - * @param {vtctldata.DeleteSrvVSchemaResponse} message DeleteSrvVSchemaResponse + * @param {vtctldata.GetCellInfoNamesResponse} message GetCellInfoNamesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteSrvVSchemaResponse.toObject = function toObject() { - return {}; + GetCellInfoNamesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.names = []; + if (message.names && message.names.length) { + object.names = []; + for (let j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } + return object; }; /** - * Converts this DeleteSrvVSchemaResponse to JSON. + * Converts this GetCellInfoNamesResponse to JSON. * @function toJSON - * @memberof vtctldata.DeleteSrvVSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @instance * @returns {Object.} JSON object */ - DeleteSrvVSchemaResponse.prototype.toJSON = function toJSON() { + GetCellInfoNamesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteSrvVSchemaResponse + * Gets the default type url for GetCellInfoNamesResponse * @function getTypeUrl - * @memberof vtctldata.DeleteSrvVSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteSrvVSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetCellInfoNamesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.DeleteSrvVSchemaResponse"; + return typeUrlPrefix + "/vtctldata.GetCellInfoNamesResponse"; }; - return DeleteSrvVSchemaResponse; + return GetCellInfoNamesResponse; })(); - vtctldata.DeleteTabletsRequest = (function() { + vtctldata.GetCellsAliasesRequest = (function() { /** - * Properties of a DeleteTabletsRequest. + * Properties of a GetCellsAliasesRequest. * @memberof vtctldata - * @interface IDeleteTabletsRequest - * @property {Array.|null} [tablet_aliases] DeleteTabletsRequest tablet_aliases - * @property {boolean|null} [allow_primary] DeleteTabletsRequest allow_primary + * @interface IGetCellsAliasesRequest */ /** - * Constructs a new DeleteTabletsRequest. + * Constructs a new GetCellsAliasesRequest. * @memberof vtctldata - * @classdesc Represents a DeleteTabletsRequest. - * @implements IDeleteTabletsRequest + * @classdesc Represents a GetCellsAliasesRequest. + * @implements IGetCellsAliasesRequest * @constructor - * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set + * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set */ - function DeleteTabletsRequest(properties) { - this.tablet_aliases = []; + function GetCellsAliasesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -142898,94 +150711,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * DeleteTabletsRequest tablet_aliases. - * @member {Array.} tablet_aliases - * @memberof vtctldata.DeleteTabletsRequest - * @instance - */ - DeleteTabletsRequest.prototype.tablet_aliases = $util.emptyArray; - - /** - * DeleteTabletsRequest allow_primary. - * @member {boolean} allow_primary - * @memberof vtctldata.DeleteTabletsRequest - * @instance - */ - DeleteTabletsRequest.prototype.allow_primary = false; - - /** - * Creates a new DeleteTabletsRequest instance using the specified properties. + * Creates a new GetCellsAliasesRequest instance using the specified properties. * @function create - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static - * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest instance + * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set + * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest instance */ - DeleteTabletsRequest.create = function create(properties) { - return new DeleteTabletsRequest(properties); + GetCellsAliasesRequest.create = function create(properties) { + return new GetCellsAliasesRequest(properties); }; /** - * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static - * @param {vtctldata.IDeleteTabletsRequest} message DeleteTabletsRequest message or plain object to encode + * @param {vtctldata.IGetCellsAliasesRequest} message GetCellsAliasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletsRequest.encode = function encode(message, writer) { + GetCellsAliasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_aliases != null && message.tablet_aliases.length) - for (let i = 0; i < message.tablet_aliases.length; ++i) - $root.topodata.TabletAlias.encode(message.tablet_aliases[i], 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); return writer; }; /** - * Encodes the specified DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static - * @param {vtctldata.IDeleteTabletsRequest} message DeleteTabletsRequest message or plain object to encode + * @param {vtctldata.IGetCellsAliasesRequest} message GetCellsAliasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCellsAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer. + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest + * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTabletsRequest.decode = function decode(reader, length) { + GetCellsAliasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteTabletsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellsAliasesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.tablet_aliases && message.tablet_aliases.length)) - message.tablet_aliases = []; - message.tablet_aliases.push($root.topodata.TabletAlias.decode(reader, reader.uint32())); - break; - } - case 2: { - message.allow_primary = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -142995,147 +150777,110 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest + * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTabletsRequest.decodeDelimited = function decodeDelimited(reader) { + GetCellsAliasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTabletsRequest message. + * Verifies a GetCellsAliasesRequest message. * @function verify - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteTabletsRequest.verify = function verify(message) { + GetCellsAliasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_aliases != null && message.hasOwnProperty("tablet_aliases")) { - if (!Array.isArray(message.tablet_aliases)) - return "tablet_aliases: array expected"; - for (let i = 0; i < message.tablet_aliases.length; ++i) { - let error = $root.topodata.TabletAlias.verify(message.tablet_aliases[i]); - if (error) - return "tablet_aliases." + error; - } - } - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - if (typeof message.allow_primary !== "boolean") - return "allow_primary: boolean expected"; return null; }; /** - * Creates a DeleteTabletsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellsAliasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest + * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest */ - DeleteTabletsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteTabletsRequest) + GetCellsAliasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellsAliasesRequest) return object; - let message = new $root.vtctldata.DeleteTabletsRequest(); - if (object.tablet_aliases) { - if (!Array.isArray(object.tablet_aliases)) - throw TypeError(".vtctldata.DeleteTabletsRequest.tablet_aliases: array expected"); - message.tablet_aliases = []; - for (let i = 0; i < object.tablet_aliases.length; ++i) { - if (typeof object.tablet_aliases[i] !== "object") - throw TypeError(".vtctldata.DeleteTabletsRequest.tablet_aliases: object expected"); - message.tablet_aliases[i] = $root.topodata.TabletAlias.fromObject(object.tablet_aliases[i]); - } - } - if (object.allow_primary != null) - message.allow_primary = Boolean(object.allow_primary); - return message; + return new $root.vtctldata.GetCellsAliasesRequest(); }; /** - * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetCellsAliasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static - * @param {vtctldata.DeleteTabletsRequest} message DeleteTabletsRequest + * @param {vtctldata.GetCellsAliasesRequest} message GetCellsAliasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTabletsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.tablet_aliases = []; - if (options.defaults) - object.allow_primary = false; - if (message.tablet_aliases && message.tablet_aliases.length) { - object.tablet_aliases = []; - for (let j = 0; j < message.tablet_aliases.length; ++j) - object.tablet_aliases[j] = $root.topodata.TabletAlias.toObject(message.tablet_aliases[j], options); - } - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - object.allow_primary = message.allow_primary; - return object; + GetCellsAliasesRequest.toObject = function toObject() { + return {}; }; /** - * Converts this DeleteTabletsRequest to JSON. + * Converts this GetCellsAliasesRequest to JSON. * @function toJSON - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @instance * @returns {Object.} JSON object */ - DeleteTabletsRequest.prototype.toJSON = function toJSON() { + GetCellsAliasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteTabletsRequest + * Gets the default type url for GetCellsAliasesRequest * @function getTypeUrl - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteTabletsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetCellsAliasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.DeleteTabletsRequest"; + return typeUrlPrefix + "/vtctldata.GetCellsAliasesRequest"; }; - return DeleteTabletsRequest; + return GetCellsAliasesRequest; })(); - vtctldata.DeleteTabletsResponse = (function() { + vtctldata.GetCellsAliasesResponse = (function() { /** - * Properties of a DeleteTabletsResponse. + * Properties of a GetCellsAliasesResponse. * @memberof vtctldata - * @interface IDeleteTabletsResponse + * @interface IGetCellsAliasesResponse + * @property {Object.|null} [aliases] GetCellsAliasesResponse aliases */ /** - * Constructs a new DeleteTabletsResponse. + * Constructs a new GetCellsAliasesResponse. * @memberof vtctldata - * @classdesc Represents a DeleteTabletsResponse. - * @implements IDeleteTabletsResponse + * @classdesc Represents a GetCellsAliasesResponse. + * @implements IGetCellsAliasesResponse * @constructor - * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set + * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set */ - function DeleteTabletsResponse(properties) { + function GetCellsAliasesResponse(properties) { + this.aliases = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -143143,63 +150888,99 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new DeleteTabletsResponse instance using the specified properties. + * GetCellsAliasesResponse aliases. + * @member {Object.} aliases + * @memberof vtctldata.GetCellsAliasesResponse + * @instance + */ + GetCellsAliasesResponse.prototype.aliases = $util.emptyObject; + + /** + * Creates a new GetCellsAliasesResponse instance using the specified properties. * @function create - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static - * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse instance + * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set + * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse instance */ - DeleteTabletsResponse.create = function create(properties) { - return new DeleteTabletsResponse(properties); + GetCellsAliasesResponse.create = function create(properties) { + return new GetCellsAliasesResponse(properties); }; /** - * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static - * @param {vtctldata.IDeleteTabletsResponse} message DeleteTabletsResponse message or plain object to encode + * @param {vtctldata.IGetCellsAliasesResponse} message GetCellsAliasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletsResponse.encode = function encode(message, writer) { + GetCellsAliasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.aliases != null && Object.hasOwnProperty.call(message, "aliases")) + for (let keys = Object.keys(message.aliases), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.topodata.CellsAlias.encode(message.aliases[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * Encodes the specified GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static - * @param {vtctldata.IDeleteTabletsResponse} message DeleteTabletsResponse message or plain object to encode + * @param {vtctldata.IGetCellsAliasesResponse} message GetCellsAliasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetCellsAliasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer. + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse + * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTabletsResponse.decode = function decode(reader, length) { + GetCellsAliasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteTabletsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellsAliasesResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (message.aliases === $util.emptyObject) + message.aliases = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.topodata.CellsAlias.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.aliases[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -143209,117 +150990,141 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse + * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTabletsResponse.decodeDelimited = function decodeDelimited(reader) { + GetCellsAliasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTabletsResponse message. + * Verifies a GetCellsAliasesResponse message. * @function verify - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteTabletsResponse.verify = function verify(message) { + GetCellsAliasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.aliases != null && message.hasOwnProperty("aliases")) { + if (!$util.isObject(message.aliases)) + return "aliases: object expected"; + let key = Object.keys(message.aliases); + for (let i = 0; i < key.length; ++i) { + let error = $root.topodata.CellsAlias.verify(message.aliases[key[i]]); + if (error) + return "aliases." + error; + } + } return null; }; /** - * Creates a DeleteTabletsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellsAliasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse + * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse */ - DeleteTabletsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteTabletsResponse) + GetCellsAliasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellsAliasesResponse) return object; - return new $root.vtctldata.DeleteTabletsResponse(); + let message = new $root.vtctldata.GetCellsAliasesResponse(); + if (object.aliases) { + if (typeof object.aliases !== "object") + throw TypeError(".vtctldata.GetCellsAliasesResponse.aliases: object expected"); + message.aliases = {}; + for (let keys = Object.keys(object.aliases), i = 0; i < keys.length; ++i) { + if (typeof object.aliases[keys[i]] !== "object") + throw TypeError(".vtctldata.GetCellsAliasesResponse.aliases: object expected"); + message.aliases[keys[i]] = $root.topodata.CellsAlias.fromObject(object.aliases[keys[i]]); + } + } + return message; }; /** - * Creates a plain object from a DeleteTabletsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetCellsAliasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static - * @param {vtctldata.DeleteTabletsResponse} message DeleteTabletsResponse + * @param {vtctldata.GetCellsAliasesResponse} message GetCellsAliasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTabletsResponse.toObject = function toObject() { - return {}; + GetCellsAliasesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) + object.aliases = {}; + let keys2; + if (message.aliases && (keys2 = Object.keys(message.aliases)).length) { + object.aliases = {}; + for (let j = 0; j < keys2.length; ++j) + object.aliases[keys2[j]] = $root.topodata.CellsAlias.toObject(message.aliases[keys2[j]], options); + } + return object; }; /** - * Converts this DeleteTabletsResponse to JSON. + * Converts this GetCellsAliasesResponse to JSON. * @function toJSON - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @instance * @returns {Object.} JSON object */ - DeleteTabletsResponse.prototype.toJSON = function toJSON() { + GetCellsAliasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteTabletsResponse + * Gets the default type url for GetCellsAliasesResponse * @function getTypeUrl - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteTabletsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetCellsAliasesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.DeleteTabletsResponse"; + return typeUrlPrefix + "/vtctldata.GetCellsAliasesResponse"; }; - return DeleteTabletsResponse; + return GetCellsAliasesResponse; })(); - vtctldata.EmergencyReparentShardRequest = (function() { + vtctldata.GetFullStatusRequest = (function() { /** - * Properties of an EmergencyReparentShardRequest. + * Properties of a GetFullStatusRequest. * @memberof vtctldata - * @interface IEmergencyReparentShardRequest - * @property {string|null} [keyspace] EmergencyReparentShardRequest keyspace - * @property {string|null} [shard] EmergencyReparentShardRequest shard - * @property {topodata.ITabletAlias|null} [new_primary] EmergencyReparentShardRequest new_primary - * @property {Array.|null} [ignore_replicas] EmergencyReparentShardRequest ignore_replicas - * @property {vttime.IDuration|null} [wait_replicas_timeout] EmergencyReparentShardRequest wait_replicas_timeout - * @property {boolean|null} [prevent_cross_cell_promotion] EmergencyReparentShardRequest prevent_cross_cell_promotion - * @property {boolean|null} [wait_for_all_tablets] EmergencyReparentShardRequest wait_for_all_tablets - * @property {topodata.ITabletAlias|null} [expected_primary] EmergencyReparentShardRequest expected_primary + * @interface IGetFullStatusRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] GetFullStatusRequest tablet_alias */ /** - * Constructs a new EmergencyReparentShardRequest. + * Constructs a new GetFullStatusRequest. * @memberof vtctldata - * @classdesc Represents an EmergencyReparentShardRequest. - * @implements IEmergencyReparentShardRequest + * @classdesc Represents a GetFullStatusRequest. + * @implements IGetFullStatusRequest * @constructor - * @param {vtctldata.IEmergencyReparentShardRequest=} [properties] Properties to set + * @param {vtctldata.IGetFullStatusRequest=} [properties] Properties to set */ - function EmergencyReparentShardRequest(properties) { - this.ignore_replicas = []; + function GetFullStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -143327,176 +151132,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * EmergencyReparentShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.EmergencyReparentShardRequest - * @instance - */ - EmergencyReparentShardRequest.prototype.keyspace = ""; - - /** - * EmergencyReparentShardRequest shard. - * @member {string} shard - * @memberof vtctldata.EmergencyReparentShardRequest - * @instance - */ - EmergencyReparentShardRequest.prototype.shard = ""; - - /** - * EmergencyReparentShardRequest new_primary. - * @member {topodata.ITabletAlias|null|undefined} new_primary - * @memberof vtctldata.EmergencyReparentShardRequest - * @instance - */ - EmergencyReparentShardRequest.prototype.new_primary = null; - - /** - * EmergencyReparentShardRequest ignore_replicas. - * @member {Array.} ignore_replicas - * @memberof vtctldata.EmergencyReparentShardRequest - * @instance - */ - EmergencyReparentShardRequest.prototype.ignore_replicas = $util.emptyArray; - - /** - * EmergencyReparentShardRequest wait_replicas_timeout. - * @member {vttime.IDuration|null|undefined} wait_replicas_timeout - * @memberof vtctldata.EmergencyReparentShardRequest - * @instance - */ - EmergencyReparentShardRequest.prototype.wait_replicas_timeout = null; - - /** - * EmergencyReparentShardRequest prevent_cross_cell_promotion. - * @member {boolean} prevent_cross_cell_promotion - * @memberof vtctldata.EmergencyReparentShardRequest - * @instance - */ - EmergencyReparentShardRequest.prototype.prevent_cross_cell_promotion = false; - - /** - * EmergencyReparentShardRequest wait_for_all_tablets. - * @member {boolean} wait_for_all_tablets - * @memberof vtctldata.EmergencyReparentShardRequest - * @instance - */ - EmergencyReparentShardRequest.prototype.wait_for_all_tablets = false; - - /** - * EmergencyReparentShardRequest expected_primary. - * @member {topodata.ITabletAlias|null|undefined} expected_primary - * @memberof vtctldata.EmergencyReparentShardRequest + * GetFullStatusRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.GetFullStatusRequest * @instance */ - EmergencyReparentShardRequest.prototype.expected_primary = null; + GetFullStatusRequest.prototype.tablet_alias = null; /** - * Creates a new EmergencyReparentShardRequest instance using the specified properties. + * Creates a new GetFullStatusRequest instance using the specified properties. * @function create - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetFullStatusRequest * @static - * @param {vtctldata.IEmergencyReparentShardRequest=} [properties] Properties to set - * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest instance + * @param {vtctldata.IGetFullStatusRequest=} [properties] Properties to set + * @returns {vtctldata.GetFullStatusRequest} GetFullStatusRequest instance */ - EmergencyReparentShardRequest.create = function create(properties) { - return new EmergencyReparentShardRequest(properties); + GetFullStatusRequest.create = function create(properties) { + return new GetFullStatusRequest(properties); }; /** - * Encodes the specified EmergencyReparentShardRequest message. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * Encodes the specified GetFullStatusRequest message. Does not implicitly {@link vtctldata.GetFullStatusRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetFullStatusRequest * @static - * @param {vtctldata.IEmergencyReparentShardRequest} message EmergencyReparentShardRequest message or plain object to encode + * @param {vtctldata.IGetFullStatusRequest} message GetFullStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmergencyReparentShardRequest.encode = function encode(message, writer) { + GetFullStatusRequest.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.new_primary != null && Object.hasOwnProperty.call(message, "new_primary")) - $root.topodata.TabletAlias.encode(message.new_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.ignore_replicas != null && message.ignore_replicas.length) - for (let i = 0; i < message.ignore_replicas.length; ++i) - $root.topodata.TabletAlias.encode(message.ignore_replicas[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) - $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.prevent_cross_cell_promotion != null && Object.hasOwnProperty.call(message, "prevent_cross_cell_promotion")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.prevent_cross_cell_promotion); - if (message.wait_for_all_tablets != null && Object.hasOwnProperty.call(message, "wait_for_all_tablets")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.wait_for_all_tablets); - if (message.expected_primary != null && Object.hasOwnProperty.call(message, "expected_primary")) - $root.topodata.TabletAlias.encode(message.expected_primary, writer.uint32(/* id 8, wireType 2 =*/66).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(); return writer; }; /** - * Encodes the specified EmergencyReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * Encodes the specified GetFullStatusRequest message, length delimited. Does not implicitly {@link vtctldata.GetFullStatusRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetFullStatusRequest * @static - * @param {vtctldata.IEmergencyReparentShardRequest} message EmergencyReparentShardRequest message or plain object to encode + * @param {vtctldata.IGetFullStatusRequest} message GetFullStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmergencyReparentShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetFullStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer. + * Decodes a GetFullStatusRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetFullStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest + * @returns {vtctldata.GetFullStatusRequest} GetFullStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EmergencyReparentShardRequest.decode = function decode(reader, length) { + GetFullStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.EmergencyReparentShardRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetFullStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.shard = reader.string(); - break; - } - case 3: { - message.new_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 4: { - if (!(message.ignore_replicas && message.ignore_replicas.length)) - message.ignore_replicas = []; - message.ignore_replicas.push($root.topodata.TabletAlias.decode(reader, reader.uint32())); - break; - } - case 5: { - message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); - break; - } - case 6: { - message.prevent_cross_cell_promotion = reader.bool(); - break; - } - case 7: { - message.wait_for_all_tablets = reader.bool(); - break; - } - case 8: { - message.expected_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -143508,216 +151212,127 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer, length delimited. + * Decodes a GetFullStatusRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetFullStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest + * @returns {vtctldata.GetFullStatusRequest} GetFullStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EmergencyReparentShardRequest.decodeDelimited = function decodeDelimited(reader) { + GetFullStatusRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EmergencyReparentShardRequest message. + * Verifies a GetFullStatusRequest message. * @function verify - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetFullStatusRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EmergencyReparentShardRequest.verify = function verify(message) { + GetFullStatusRequest.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.new_primary != null && message.hasOwnProperty("new_primary")) { - let error = $root.topodata.TabletAlias.verify(message.new_primary); - if (error) - return "new_primary." + error; - } - if (message.ignore_replicas != null && message.hasOwnProperty("ignore_replicas")) { - if (!Array.isArray(message.ignore_replicas)) - return "ignore_replicas: array expected"; - for (let i = 0; i < message.ignore_replicas.length; ++i) { - let error = $root.topodata.TabletAlias.verify(message.ignore_replicas[i]); - if (error) - return "ignore_replicas." + error; - } - } - if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { - let error = $root.vttime.Duration.verify(message.wait_replicas_timeout); - if (error) - return "wait_replicas_timeout." + error; - } - if (message.prevent_cross_cell_promotion != null && message.hasOwnProperty("prevent_cross_cell_promotion")) - if (typeof message.prevent_cross_cell_promotion !== "boolean") - return "prevent_cross_cell_promotion: boolean expected"; - if (message.wait_for_all_tablets != null && message.hasOwnProperty("wait_for_all_tablets")) - if (typeof message.wait_for_all_tablets !== "boolean") - return "wait_for_all_tablets: boolean expected"; - if (message.expected_primary != null && message.hasOwnProperty("expected_primary")) { - let error = $root.topodata.TabletAlias.verify(message.expected_primary); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) - return "expected_primary." + error; + return "tablet_alias." + error; } return null; }; /** - * Creates an EmergencyReparentShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetFullStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetFullStatusRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest + * @returns {vtctldata.GetFullStatusRequest} GetFullStatusRequest */ - EmergencyReparentShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.EmergencyReparentShardRequest) + GetFullStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetFullStatusRequest) return object; - let message = new $root.vtctldata.EmergencyReparentShardRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.new_primary != null) { - if (typeof object.new_primary !== "object") - throw TypeError(".vtctldata.EmergencyReparentShardRequest.new_primary: object expected"); - message.new_primary = $root.topodata.TabletAlias.fromObject(object.new_primary); - } - if (object.ignore_replicas) { - if (!Array.isArray(object.ignore_replicas)) - throw TypeError(".vtctldata.EmergencyReparentShardRequest.ignore_replicas: array expected"); - message.ignore_replicas = []; - for (let i = 0; i < object.ignore_replicas.length; ++i) { - if (typeof object.ignore_replicas[i] !== "object") - throw TypeError(".vtctldata.EmergencyReparentShardRequest.ignore_replicas: object expected"); - message.ignore_replicas[i] = $root.topodata.TabletAlias.fromObject(object.ignore_replicas[i]); - } - } - if (object.wait_replicas_timeout != null) { - if (typeof object.wait_replicas_timeout !== "object") - throw TypeError(".vtctldata.EmergencyReparentShardRequest.wait_replicas_timeout: object expected"); - message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); - } - if (object.prevent_cross_cell_promotion != null) - message.prevent_cross_cell_promotion = Boolean(object.prevent_cross_cell_promotion); - if (object.wait_for_all_tablets != null) - message.wait_for_all_tablets = Boolean(object.wait_for_all_tablets); - if (object.expected_primary != null) { - if (typeof object.expected_primary !== "object") - throw TypeError(".vtctldata.EmergencyReparentShardRequest.expected_primary: object expected"); - message.expected_primary = $root.topodata.TabletAlias.fromObject(object.expected_primary); + let message = new $root.vtctldata.GetFullStatusRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.GetFullStatusRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } return message; }; /** - * Creates a plain object from an EmergencyReparentShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetFullStatusRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetFullStatusRequest * @static - * @param {vtctldata.EmergencyReparentShardRequest} message EmergencyReparentShardRequest + * @param {vtctldata.GetFullStatusRequest} message GetFullStatusRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EmergencyReparentShardRequest.toObject = function toObject(message, options) { + GetFullStatusRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.ignore_replicas = []; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.new_primary = null; - object.wait_replicas_timeout = null; - object.prevent_cross_cell_promotion = false; - object.wait_for_all_tablets = false; - object.expected_primary = null; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.new_primary != null && message.hasOwnProperty("new_primary")) - object.new_primary = $root.topodata.TabletAlias.toObject(message.new_primary, options); - if (message.ignore_replicas && message.ignore_replicas.length) { - object.ignore_replicas = []; - for (let j = 0; j < message.ignore_replicas.length; ++j) - object.ignore_replicas[j] = $root.topodata.TabletAlias.toObject(message.ignore_replicas[j], options); - } - 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.prevent_cross_cell_promotion != null && message.hasOwnProperty("prevent_cross_cell_promotion")) - object.prevent_cross_cell_promotion = message.prevent_cross_cell_promotion; - if (message.wait_for_all_tablets != null && message.hasOwnProperty("wait_for_all_tablets")) - object.wait_for_all_tablets = message.wait_for_all_tablets; - if (message.expected_primary != null && message.hasOwnProperty("expected_primary")) - object.expected_primary = $root.topodata.TabletAlias.toObject(message.expected_primary, options); + if (options.defaults) + object.tablet_alias = null; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); return object; }; /** - * Converts this EmergencyReparentShardRequest to JSON. + * Converts this GetFullStatusRequest to JSON. * @function toJSON - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetFullStatusRequest * @instance * @returns {Object.} JSON object */ - EmergencyReparentShardRequest.prototype.toJSON = function toJSON() { + GetFullStatusRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EmergencyReparentShardRequest + * Gets the default type url for GetFullStatusRequest * @function getTypeUrl - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetFullStatusRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EmergencyReparentShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetFullStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.EmergencyReparentShardRequest"; + return typeUrlPrefix + "/vtctldata.GetFullStatusRequest"; }; - return EmergencyReparentShardRequest; + return GetFullStatusRequest; })(); - vtctldata.EmergencyReparentShardResponse = (function() { + vtctldata.GetFullStatusResponse = (function() { /** - * Properties of an EmergencyReparentShardResponse. + * Properties of a GetFullStatusResponse. * @memberof vtctldata - * @interface IEmergencyReparentShardResponse - * @property {string|null} [keyspace] EmergencyReparentShardResponse keyspace - * @property {string|null} [shard] EmergencyReparentShardResponse shard - * @property {topodata.ITabletAlias|null} [promoted_primary] EmergencyReparentShardResponse promoted_primary - * @property {Array.|null} [events] EmergencyReparentShardResponse events + * @interface IGetFullStatusResponse + * @property {replicationdata.IFullStatus|null} [status] GetFullStatusResponse status */ /** - * Constructs a new EmergencyReparentShardResponse. + * Constructs a new GetFullStatusResponse. * @memberof vtctldata - * @classdesc Represents an EmergencyReparentShardResponse. - * @implements IEmergencyReparentShardResponse + * @classdesc Represents a GetFullStatusResponse. + * @implements IGetFullStatusResponse * @constructor - * @param {vtctldata.IEmergencyReparentShardResponse=} [properties] Properties to set + * @param {vtctldata.IGetFullStatusResponse=} [properties] Properties to set */ - function EmergencyReparentShardResponse(properties) { - this.events = []; + function GetFullStatusResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -143725,120 +151340,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * EmergencyReparentShardResponse keyspace. - * @member {string} keyspace - * @memberof vtctldata.EmergencyReparentShardResponse - * @instance - */ - EmergencyReparentShardResponse.prototype.keyspace = ""; - - /** - * EmergencyReparentShardResponse shard. - * @member {string} shard - * @memberof vtctldata.EmergencyReparentShardResponse - * @instance - */ - EmergencyReparentShardResponse.prototype.shard = ""; - - /** - * EmergencyReparentShardResponse promoted_primary. - * @member {topodata.ITabletAlias|null|undefined} promoted_primary - * @memberof vtctldata.EmergencyReparentShardResponse - * @instance - */ - EmergencyReparentShardResponse.prototype.promoted_primary = null; - - /** - * EmergencyReparentShardResponse events. - * @member {Array.} events - * @memberof vtctldata.EmergencyReparentShardResponse + * GetFullStatusResponse status. + * @member {replicationdata.IFullStatus|null|undefined} status + * @memberof vtctldata.GetFullStatusResponse * @instance */ - EmergencyReparentShardResponse.prototype.events = $util.emptyArray; + GetFullStatusResponse.prototype.status = null; /** - * Creates a new EmergencyReparentShardResponse instance using the specified properties. + * Creates a new GetFullStatusResponse instance using the specified properties. * @function create - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetFullStatusResponse * @static - * @param {vtctldata.IEmergencyReparentShardResponse=} [properties] Properties to set - * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse instance + * @param {vtctldata.IGetFullStatusResponse=} [properties] Properties to set + * @returns {vtctldata.GetFullStatusResponse} GetFullStatusResponse instance */ - EmergencyReparentShardResponse.create = function create(properties) { - return new EmergencyReparentShardResponse(properties); + GetFullStatusResponse.create = function create(properties) { + return new GetFullStatusResponse(properties); }; /** - * Encodes the specified EmergencyReparentShardResponse message. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * Encodes the specified GetFullStatusResponse message. Does not implicitly {@link vtctldata.GetFullStatusResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetFullStatusResponse * @static - * @param {vtctldata.IEmergencyReparentShardResponse} message EmergencyReparentShardResponse message or plain object to encode + * @param {vtctldata.IGetFullStatusResponse} message GetFullStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmergencyReparentShardResponse.encode = function encode(message, writer) { + GetFullStatusResponse.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.promoted_primary != null && Object.hasOwnProperty.call(message, "promoted_primary")) - $root.topodata.TabletAlias.encode(message.promoted_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.events != null && message.events.length) - for (let i = 0; i < message.events.length; ++i) - $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.replicationdata.FullStatus.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified EmergencyReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * Encodes the specified GetFullStatusResponse message, length delimited. Does not implicitly {@link vtctldata.GetFullStatusResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetFullStatusResponse * @static - * @param {vtctldata.IEmergencyReparentShardResponse} message EmergencyReparentShardResponse message or plain object to encode + * @param {vtctldata.IGetFullStatusResponse} message GetFullStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmergencyReparentShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetFullStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer. + * Decodes a GetFullStatusResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetFullStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse + * @returns {vtctldata.GetFullStatusResponse} GetFullStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EmergencyReparentShardResponse.decode = function decode(reader, length) { + GetFullStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.EmergencyReparentShardResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetFullStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.shard = reader.string(); - break; - } - case 3: { - message.promoted_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 4: { - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.logutil.Event.decode(reader, reader.uint32())); + message.status = $root.replicationdata.FullStatus.decode(reader, reader.uint32()); break; } default: @@ -143850,293 +151420,190 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer, length delimited. + * Decodes a GetFullStatusResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetFullStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse + * @returns {vtctldata.GetFullStatusResponse} GetFullStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EmergencyReparentShardResponse.decodeDelimited = function decodeDelimited(reader) { + GetFullStatusResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EmergencyReparentShardResponse message. + * Verifies a GetFullStatusResponse message. * @function verify - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetFullStatusResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EmergencyReparentShardResponse.verify = function verify(message) { + GetFullStatusResponse.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.promoted_primary != null && message.hasOwnProperty("promoted_primary")) { - let error = $root.topodata.TabletAlias.verify(message.promoted_primary); + if (message.status != null && message.hasOwnProperty("status")) { + let error = $root.replicationdata.FullStatus.verify(message.status); if (error) - return "promoted_primary." + error; - } - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (let i = 0; i < message.events.length; ++i) { - let error = $root.logutil.Event.verify(message.events[i]); - if (error) - return "events." + error; - } + return "status." + error; } return null; }; /** - * Creates an EmergencyReparentShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetFullStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetFullStatusResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse + * @returns {vtctldata.GetFullStatusResponse} GetFullStatusResponse */ - EmergencyReparentShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.EmergencyReparentShardResponse) + GetFullStatusResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetFullStatusResponse) return object; - let message = new $root.vtctldata.EmergencyReparentShardResponse(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.promoted_primary != null) { - if (typeof object.promoted_primary !== "object") - throw TypeError(".vtctldata.EmergencyReparentShardResponse.promoted_primary: object expected"); - message.promoted_primary = $root.topodata.TabletAlias.fromObject(object.promoted_primary); - } - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".vtctldata.EmergencyReparentShardResponse.events: array expected"); - message.events = []; - for (let i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".vtctldata.EmergencyReparentShardResponse.events: object expected"); - message.events[i] = $root.logutil.Event.fromObject(object.events[i]); - } + let message = new $root.vtctldata.GetFullStatusResponse(); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".vtctldata.GetFullStatusResponse.status: object expected"); + message.status = $root.replicationdata.FullStatus.fromObject(object.status); } return message; }; /** - * Creates a plain object from an EmergencyReparentShardResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetFullStatusResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetFullStatusResponse * @static - * @param {vtctldata.EmergencyReparentShardResponse} message EmergencyReparentShardResponse + * @param {vtctldata.GetFullStatusResponse} message GetFullStatusResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EmergencyReparentShardResponse.toObject = function toObject(message, options) { + GetFullStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.promoted_primary = null; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.promoted_primary != null && message.hasOwnProperty("promoted_primary")) - object.promoted_primary = $root.topodata.TabletAlias.toObject(message.promoted_primary, options); - if (message.events && message.events.length) { - object.events = []; - for (let j = 0; j < message.events.length; ++j) - object.events[j] = $root.logutil.Event.toObject(message.events[j], options); - } + if (options.defaults) + object.status = null; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.replicationdata.FullStatus.toObject(message.status, options); return object; }; /** - * Converts this EmergencyReparentShardResponse to JSON. + * Converts this GetFullStatusResponse to JSON. * @function toJSON - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetFullStatusResponse * @instance * @returns {Object.} JSON object */ - EmergencyReparentShardResponse.prototype.toJSON = function toJSON() { + GetFullStatusResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EmergencyReparentShardResponse + * Gets the default type url for GetFullStatusResponse * @function getTypeUrl - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetFullStatusResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EmergencyReparentShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetFullStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.EmergencyReparentShardResponse"; + return typeUrlPrefix + "/vtctldata.GetFullStatusResponse"; }; - return EmergencyReparentShardResponse; - })(); - - vtctldata.ExecuteFetchAsAppRequest = (function() { - - /** - * Properties of an ExecuteFetchAsAppRequest. - * @memberof vtctldata - * @interface IExecuteFetchAsAppRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] ExecuteFetchAsAppRequest tablet_alias - * @property {string|null} [query] ExecuteFetchAsAppRequest query - * @property {number|Long|null} [max_rows] ExecuteFetchAsAppRequest max_rows - * @property {boolean|null} [use_pool] ExecuteFetchAsAppRequest use_pool - */ - - /** - * Constructs a new ExecuteFetchAsAppRequest. - * @memberof vtctldata - * @classdesc Represents an ExecuteFetchAsAppRequest. - * @implements IExecuteFetchAsAppRequest - * @constructor - * @param {vtctldata.IExecuteFetchAsAppRequest=} [properties] Properties to set - */ - function ExecuteFetchAsAppRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecuteFetchAsAppRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.ExecuteFetchAsAppRequest - * @instance - */ - ExecuteFetchAsAppRequest.prototype.tablet_alias = null; + return GetFullStatusResponse; + })(); - /** - * ExecuteFetchAsAppRequest query. - * @member {string} query - * @memberof vtctldata.ExecuteFetchAsAppRequest - * @instance - */ - ExecuteFetchAsAppRequest.prototype.query = ""; + vtctldata.GetKeyspacesRequest = (function() { /** - * ExecuteFetchAsAppRequest max_rows. - * @member {number|Long} max_rows - * @memberof vtctldata.ExecuteFetchAsAppRequest - * @instance + * Properties of a GetKeyspacesRequest. + * @memberof vtctldata + * @interface IGetKeyspacesRequest */ - ExecuteFetchAsAppRequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ExecuteFetchAsAppRequest use_pool. - * @member {boolean} use_pool - * @memberof vtctldata.ExecuteFetchAsAppRequest - * @instance + * Constructs a new GetKeyspacesRequest. + * @memberof vtctldata + * @classdesc Represents a GetKeyspacesRequest. + * @implements IGetKeyspacesRequest + * @constructor + * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set */ - ExecuteFetchAsAppRequest.prototype.use_pool = false; + function GetKeyspacesRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Creates a new ExecuteFetchAsAppRequest instance using the specified properties. + * Creates a new GetKeyspacesRequest instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteFetchAsAppRequest + * @memberof vtctldata.GetKeyspacesRequest * @static - * @param {vtctldata.IExecuteFetchAsAppRequest=} [properties] Properties to set - * @returns {vtctldata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest instance + * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set + * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest instance */ - ExecuteFetchAsAppRequest.create = function create(properties) { - return new ExecuteFetchAsAppRequest(properties); + GetKeyspacesRequest.create = function create(properties) { + return new GetKeyspacesRequest(properties); }; /** - * Encodes the specified ExecuteFetchAsAppRequest message. Does not implicitly {@link vtctldata.ExecuteFetchAsAppRequest.verify|verify} messages. + * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteFetchAsAppRequest + * @memberof vtctldata.GetKeyspacesRequest * @static - * @param {vtctldata.IExecuteFetchAsAppRequest} message ExecuteFetchAsAppRequest message or plain object to encode + * @param {vtctldata.IGetKeyspacesRequest} message GetKeyspacesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsAppRequest.encode = function encode(message, writer) { + GetKeyspacesRequest.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.query != null && Object.hasOwnProperty.call(message, "query")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.query); - if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.max_rows); - if (message.use_pool != null && Object.hasOwnProperty.call(message, "use_pool")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.use_pool); return writer; }; /** - * Encodes the specified ExecuteFetchAsAppRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsAppRequest.verify|verify} messages. + * Encodes the specified GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteFetchAsAppRequest + * @memberof vtctldata.GetKeyspacesRequest * @static - * @param {vtctldata.IExecuteFetchAsAppRequest} message ExecuteFetchAsAppRequest message or plain object to encode + * @param {vtctldata.IGetKeyspacesRequest} message GetKeyspacesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsAppRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetKeyspacesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer. + * Decodes a GetKeyspacesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteFetchAsAppRequest + * @memberof vtctldata.GetKeyspacesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest + * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsAppRequest.decode = function decode(reader, length) { + GetKeyspacesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteFetchAsAppRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspacesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 2: { - message.query = reader.string(); - break; - } - case 3: { - message.max_rows = reader.int64(); - break; - } - case 4: { - message.use_pool = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -144146,166 +151613,110 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspacesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteFetchAsAppRequest + * @memberof vtctldata.GetKeyspacesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest + * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsAppRequest.decodeDelimited = function decodeDelimited(reader) { + GetKeyspacesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteFetchAsAppRequest message. + * Verifies a GetKeyspacesRequest message. * @function verify - * @memberof vtctldata.ExecuteFetchAsAppRequest + * @memberof vtctldata.GetKeyspacesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteFetchAsAppRequest.verify = function verify(message) { + GetKeyspacesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.query != null && message.hasOwnProperty("query")) - if (!$util.isString(message.query)) - return "query: string expected"; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) - return "max_rows: integer|Long expected"; - if (message.use_pool != null && message.hasOwnProperty("use_pool")) - if (typeof message.use_pool !== "boolean") - return "use_pool: boolean expected"; return null; }; /** - * Creates an ExecuteFetchAsAppRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspacesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteFetchAsAppRequest + * @memberof vtctldata.GetKeyspacesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteFetchAsAppRequest} ExecuteFetchAsAppRequest + * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest */ - ExecuteFetchAsAppRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteFetchAsAppRequest) + GetKeyspacesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspacesRequest) return object; - let message = new $root.vtctldata.ExecuteFetchAsAppRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.ExecuteFetchAsAppRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.query != null) - message.query = String(object.query); - if (object.max_rows != null) - if ($util.Long) - (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = false; - else if (typeof object.max_rows === "string") - message.max_rows = parseInt(object.max_rows, 10); - else if (typeof object.max_rows === "number") - message.max_rows = object.max_rows; - else if (typeof object.max_rows === "object") - message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(); - if (object.use_pool != null) - message.use_pool = Boolean(object.use_pool); - return message; + return new $root.vtctldata.GetKeyspacesRequest(); }; /** - * Creates a plain object from an ExecuteFetchAsAppRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetKeyspacesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteFetchAsAppRequest + * @memberof vtctldata.GetKeyspacesRequest * @static - * @param {vtctldata.ExecuteFetchAsAppRequest} message ExecuteFetchAsAppRequest + * @param {vtctldata.GetKeyspacesRequest} message GetKeyspacesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteFetchAsAppRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.tablet_alias = null; - object.query = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_rows = options.longs === String ? "0" : 0; - object.use_pool = false; - } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = message.query; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (typeof message.max_rows === "number") - object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; - else - object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber() : message.max_rows; - if (message.use_pool != null && message.hasOwnProperty("use_pool")) - object.use_pool = message.use_pool; - return object; + GetKeyspacesRequest.toObject = function toObject() { + return {}; }; /** - * Converts this ExecuteFetchAsAppRequest to JSON. + * Converts this GetKeyspacesRequest to JSON. * @function toJSON - * @memberof vtctldata.ExecuteFetchAsAppRequest + * @memberof vtctldata.GetKeyspacesRequest * @instance * @returns {Object.} JSON object */ - ExecuteFetchAsAppRequest.prototype.toJSON = function toJSON() { + GetKeyspacesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteFetchAsAppRequest + * Gets the default type url for GetKeyspacesRequest * @function getTypeUrl - * @memberof vtctldata.ExecuteFetchAsAppRequest + * @memberof vtctldata.GetKeyspacesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteFetchAsAppRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetKeyspacesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ExecuteFetchAsAppRequest"; + return typeUrlPrefix + "/vtctldata.GetKeyspacesRequest"; }; - return ExecuteFetchAsAppRequest; + return GetKeyspacesRequest; })(); - vtctldata.ExecuteFetchAsAppResponse = (function() { + vtctldata.GetKeyspacesResponse = (function() { /** - * Properties of an ExecuteFetchAsAppResponse. + * Properties of a GetKeyspacesResponse. * @memberof vtctldata - * @interface IExecuteFetchAsAppResponse - * @property {query.IQueryResult|null} [result] ExecuteFetchAsAppResponse result + * @interface IGetKeyspacesResponse + * @property {Array.|null} [keyspaces] GetKeyspacesResponse keyspaces */ /** - * Constructs a new ExecuteFetchAsAppResponse. + * Constructs a new GetKeyspacesResponse. * @memberof vtctldata - * @classdesc Represents an ExecuteFetchAsAppResponse. - * @implements IExecuteFetchAsAppResponse + * @classdesc Represents a GetKeyspacesResponse. + * @implements IGetKeyspacesResponse * @constructor - * @param {vtctldata.IExecuteFetchAsAppResponse=} [properties] Properties to set + * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set */ - function ExecuteFetchAsAppResponse(properties) { + function GetKeyspacesResponse(properties) { + this.keyspaces = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -144313,75 +151724,78 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ExecuteFetchAsAppResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof vtctldata.ExecuteFetchAsAppResponse + * GetKeyspacesResponse keyspaces. + * @member {Array.} keyspaces + * @memberof vtctldata.GetKeyspacesResponse * @instance */ - ExecuteFetchAsAppResponse.prototype.result = null; + GetKeyspacesResponse.prototype.keyspaces = $util.emptyArray; /** - * Creates a new ExecuteFetchAsAppResponse instance using the specified properties. + * Creates a new GetKeyspacesResponse instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteFetchAsAppResponse + * @memberof vtctldata.GetKeyspacesResponse * @static - * @param {vtctldata.IExecuteFetchAsAppResponse=} [properties] Properties to set - * @returns {vtctldata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse instance + * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set + * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse instance */ - ExecuteFetchAsAppResponse.create = function create(properties) { - return new ExecuteFetchAsAppResponse(properties); + GetKeyspacesResponse.create = function create(properties) { + return new GetKeyspacesResponse(properties); }; /** - * Encodes the specified ExecuteFetchAsAppResponse message. Does not implicitly {@link vtctldata.ExecuteFetchAsAppResponse.verify|verify} messages. + * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteFetchAsAppResponse + * @memberof vtctldata.GetKeyspacesResponse * @static - * @param {vtctldata.IExecuteFetchAsAppResponse} message ExecuteFetchAsAppResponse message or plain object to encode + * @param {vtctldata.IGetKeyspacesResponse} message GetKeyspacesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsAppResponse.encode = function encode(message, writer) { + GetKeyspacesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspaces != null && message.keyspaces.length) + for (let i = 0; i < message.keyspaces.length; ++i) + $root.vtctldata.Keyspace.encode(message.keyspaces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteFetchAsAppResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsAppResponse.verify|verify} messages. + * Encodes the specified GetKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteFetchAsAppResponse + * @memberof vtctldata.GetKeyspacesResponse * @static - * @param {vtctldata.IExecuteFetchAsAppResponse} message ExecuteFetchAsAppResponse message or plain object to encode + * @param {vtctldata.IGetKeyspacesResponse} message GetKeyspacesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsAppResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetKeyspacesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer. + * Decodes a GetKeyspacesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteFetchAsAppResponse + * @memberof vtctldata.GetKeyspacesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse + * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsAppResponse.decode = function decode(reader, length) { + GetKeyspacesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteFetchAsAppResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspacesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + if (!(message.keyspaces && message.keyspaces.length)) + message.keyspaces = []; + message.keyspaces.push($root.vtctldata.Keyspace.decode(reader, reader.uint32())); break; } default: @@ -144393,131 +151807,139 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspacesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteFetchAsAppResponse + * @memberof vtctldata.GetKeyspacesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse + * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsAppResponse.decodeDelimited = function decodeDelimited(reader) { + GetKeyspacesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteFetchAsAppResponse message. + * Verifies a GetKeyspacesResponse message. * @function verify - * @memberof vtctldata.ExecuteFetchAsAppResponse + * @memberof vtctldata.GetKeyspacesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteFetchAsAppResponse.verify = function verify(message) { + GetKeyspacesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; + if (message.keyspaces != null && message.hasOwnProperty("keyspaces")) { + if (!Array.isArray(message.keyspaces)) + return "keyspaces: array expected"; + for (let i = 0; i < message.keyspaces.length; ++i) { + let error = $root.vtctldata.Keyspace.verify(message.keyspaces[i]); + if (error) + return "keyspaces." + error; + } } return null; }; /** - * Creates an ExecuteFetchAsAppResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspacesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteFetchAsAppResponse + * @memberof vtctldata.GetKeyspacesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteFetchAsAppResponse} ExecuteFetchAsAppResponse + * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse */ - ExecuteFetchAsAppResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteFetchAsAppResponse) + GetKeyspacesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspacesResponse) return object; - let message = new $root.vtctldata.ExecuteFetchAsAppResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".vtctldata.ExecuteFetchAsAppResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); + let message = new $root.vtctldata.GetKeyspacesResponse(); + if (object.keyspaces) { + if (!Array.isArray(object.keyspaces)) + throw TypeError(".vtctldata.GetKeyspacesResponse.keyspaces: array expected"); + message.keyspaces = []; + for (let i = 0; i < object.keyspaces.length; ++i) { + if (typeof object.keyspaces[i] !== "object") + throw TypeError(".vtctldata.GetKeyspacesResponse.keyspaces: object expected"); + message.keyspaces[i] = $root.vtctldata.Keyspace.fromObject(object.keyspaces[i]); + } } return message; }; /** - * Creates a plain object from an ExecuteFetchAsAppResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetKeyspacesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteFetchAsAppResponse + * @memberof vtctldata.GetKeyspacesResponse * @static - * @param {vtctldata.ExecuteFetchAsAppResponse} message ExecuteFetchAsAppResponse + * @param {vtctldata.GetKeyspacesResponse} message GetKeyspacesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteFetchAsAppResponse.toObject = function toObject(message, options) { + GetKeyspacesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); + if (options.arrays || options.defaults) + object.keyspaces = []; + if (message.keyspaces && message.keyspaces.length) { + object.keyspaces = []; + for (let j = 0; j < message.keyspaces.length; ++j) + object.keyspaces[j] = $root.vtctldata.Keyspace.toObject(message.keyspaces[j], options); + } return object; }; /** - * Converts this ExecuteFetchAsAppResponse to JSON. + * Converts this GetKeyspacesResponse to JSON. * @function toJSON - * @memberof vtctldata.ExecuteFetchAsAppResponse + * @memberof vtctldata.GetKeyspacesResponse * @instance * @returns {Object.} JSON object */ - ExecuteFetchAsAppResponse.prototype.toJSON = function toJSON() { + GetKeyspacesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteFetchAsAppResponse + * Gets the default type url for GetKeyspacesResponse * @function getTypeUrl - * @memberof vtctldata.ExecuteFetchAsAppResponse + * @memberof vtctldata.GetKeyspacesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteFetchAsAppResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetKeyspacesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ExecuteFetchAsAppResponse"; + return typeUrlPrefix + "/vtctldata.GetKeyspacesResponse"; }; - return ExecuteFetchAsAppResponse; + return GetKeyspacesResponse; })(); - vtctldata.ExecuteFetchAsDBARequest = (function() { + vtctldata.GetKeyspaceRequest = (function() { /** - * Properties of an ExecuteFetchAsDBARequest. + * Properties of a GetKeyspaceRequest. * @memberof vtctldata - * @interface IExecuteFetchAsDBARequest - * @property {topodata.ITabletAlias|null} [tablet_alias] ExecuteFetchAsDBARequest tablet_alias - * @property {string|null} [query] ExecuteFetchAsDBARequest query - * @property {number|Long|null} [max_rows] ExecuteFetchAsDBARequest max_rows - * @property {boolean|null} [disable_binlogs] ExecuteFetchAsDBARequest disable_binlogs - * @property {boolean|null} [reload_schema] ExecuteFetchAsDBARequest reload_schema + * @interface IGetKeyspaceRequest + * @property {string|null} [keyspace] GetKeyspaceRequest keyspace */ /** - * Constructs a new ExecuteFetchAsDBARequest. + * Constructs a new GetKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents an ExecuteFetchAsDBARequest. - * @implements IExecuteFetchAsDBARequest + * @classdesc Represents a GetKeyspaceRequest. + * @implements IGetKeyspaceRequest * @constructor - * @param {vtctldata.IExecuteFetchAsDBARequest=} [properties] Properties to set + * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set */ - function ExecuteFetchAsDBARequest(properties) { + function GetKeyspaceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -144525,131 +151947,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ExecuteFetchAsDBARequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.ExecuteFetchAsDBARequest - * @instance - */ - ExecuteFetchAsDBARequest.prototype.tablet_alias = null; - - /** - * ExecuteFetchAsDBARequest query. - * @member {string} query - * @memberof vtctldata.ExecuteFetchAsDBARequest - * @instance - */ - ExecuteFetchAsDBARequest.prototype.query = ""; - - /** - * ExecuteFetchAsDBARequest max_rows. - * @member {number|Long} max_rows - * @memberof vtctldata.ExecuteFetchAsDBARequest - * @instance - */ - ExecuteFetchAsDBARequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ExecuteFetchAsDBARequest disable_binlogs. - * @member {boolean} disable_binlogs - * @memberof vtctldata.ExecuteFetchAsDBARequest - * @instance - */ - ExecuteFetchAsDBARequest.prototype.disable_binlogs = false; - - /** - * ExecuteFetchAsDBARequest reload_schema. - * @member {boolean} reload_schema - * @memberof vtctldata.ExecuteFetchAsDBARequest + * GetKeyspaceRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.GetKeyspaceRequest * @instance */ - ExecuteFetchAsDBARequest.prototype.reload_schema = false; + GetKeyspaceRequest.prototype.keyspace = ""; /** - * Creates a new ExecuteFetchAsDBARequest instance using the specified properties. + * Creates a new GetKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRequest * @static - * @param {vtctldata.IExecuteFetchAsDBARequest=} [properties] Properties to set - * @returns {vtctldata.ExecuteFetchAsDBARequest} ExecuteFetchAsDBARequest instance + * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest instance */ - ExecuteFetchAsDBARequest.create = function create(properties) { - return new ExecuteFetchAsDBARequest(properties); + GetKeyspaceRequest.create = function create(properties) { + return new GetKeyspaceRequest(properties); }; /** - * Encodes the specified ExecuteFetchAsDBARequest message. Does not implicitly {@link vtctldata.ExecuteFetchAsDBARequest.verify|verify} messages. + * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRequest * @static - * @param {vtctldata.IExecuteFetchAsDBARequest} message ExecuteFetchAsDBARequest message or plain object to encode + * @param {vtctldata.IGetKeyspaceRequest} message GetKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsDBARequest.encode = function encode(message, writer) { + GetKeyspaceRequest.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.query != null && Object.hasOwnProperty.call(message, "query")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.query); - if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.max_rows); - if (message.disable_binlogs != null && Object.hasOwnProperty.call(message, "disable_binlogs")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.disable_binlogs); - if (message.reload_schema != null && Object.hasOwnProperty.call(message, "reload_schema")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reload_schema); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); return writer; }; /** - * Encodes the specified ExecuteFetchAsDBARequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsDBARequest.verify|verify} messages. + * Encodes the specified GetKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRequest * @static - * @param {vtctldata.IExecuteFetchAsDBARequest} message ExecuteFetchAsDBARequest message or plain object to encode + * @param {vtctldata.IGetKeyspaceRequest} message GetKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsDBARequest.encodeDelimited = function encodeDelimited(message, writer) { + GetKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer. + * Decodes a GetKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteFetchAsDBARequest} ExecuteFetchAsDBARequest + * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsDBARequest.decode = function decode(reader, length) { + GetKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteFetchAsDBARequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 2: { - message.query = reader.string(); - break; - } - case 3: { - message.max_rows = reader.int64(); - break; - } - case 4: { - message.disable_binlogs = reader.bool(); - break; - } - case 5: { - message.reload_schema = reader.bool(); + message.keyspace = reader.string(); break; } default: @@ -144661,174 +152027,122 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteFetchAsDBARequest} ExecuteFetchAsDBARequest + * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsDBARequest.decodeDelimited = function decodeDelimited(reader) { + GetKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteFetchAsDBARequest message. + * Verifies a GetKeyspaceRequest message. * @function verify - * @memberof vtctldata.ExecuteFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteFetchAsDBARequest.verify = function verify(message) { + GetKeyspaceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.query != null && message.hasOwnProperty("query")) - if (!$util.isString(message.query)) - return "query: string expected"; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) - return "max_rows: integer|Long expected"; - if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) - if (typeof message.disable_binlogs !== "boolean") - return "disable_binlogs: boolean expected"; - if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) - if (typeof message.reload_schema !== "boolean") - return "reload_schema: boolean expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; return null; }; /** - * Creates an ExecuteFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteFetchAsDBARequest} ExecuteFetchAsDBARequest + * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest */ - ExecuteFetchAsDBARequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteFetchAsDBARequest) + GetKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspaceRequest) return object; - let message = new $root.vtctldata.ExecuteFetchAsDBARequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.ExecuteFetchAsDBARequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.query != null) - message.query = String(object.query); - if (object.max_rows != null) - if ($util.Long) - (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = false; - else if (typeof object.max_rows === "string") - message.max_rows = parseInt(object.max_rows, 10); - else if (typeof object.max_rows === "number") - message.max_rows = object.max_rows; - else if (typeof object.max_rows === "object") - message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(); - if (object.disable_binlogs != null) - message.disable_binlogs = Boolean(object.disable_binlogs); - if (object.reload_schema != null) - message.reload_schema = Boolean(object.reload_schema); + let message = new $root.vtctldata.GetKeyspaceRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); return message; }; /** - * Creates a plain object from an ExecuteFetchAsDBARequest message. Also converts values to other types if specified. + * Creates a plain object from a GetKeyspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRequest * @static - * @param {vtctldata.ExecuteFetchAsDBARequest} message ExecuteFetchAsDBARequest + * @param {vtctldata.GetKeyspaceRequest} message GetKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteFetchAsDBARequest.toObject = function toObject(message, options) { + GetKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.tablet_alias = null; - object.query = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_rows = options.longs === String ? "0" : 0; - object.disable_binlogs = false; - object.reload_schema = false; - } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = message.query; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (typeof message.max_rows === "number") - object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; - else - object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber() : message.max_rows; - if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) - object.disable_binlogs = message.disable_binlogs; - if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) - object.reload_schema = message.reload_schema; + if (options.defaults) + object.keyspace = ""; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; return object; }; /** - * Converts this ExecuteFetchAsDBARequest to JSON. + * Converts this GetKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.ExecuteFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRequest * @instance * @returns {Object.} JSON object */ - ExecuteFetchAsDBARequest.prototype.toJSON = function toJSON() { + GetKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteFetchAsDBARequest + * Gets the default type url for GetKeyspaceRequest * @function getTypeUrl - * @memberof vtctldata.ExecuteFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteFetchAsDBARequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ExecuteFetchAsDBARequest"; + return typeUrlPrefix + "/vtctldata.GetKeyspaceRequest"; }; - return ExecuteFetchAsDBARequest; + return GetKeyspaceRequest; })(); - vtctldata.ExecuteFetchAsDBAResponse = (function() { + vtctldata.GetKeyspaceResponse = (function() { /** - * Properties of an ExecuteFetchAsDBAResponse. + * Properties of a GetKeyspaceResponse. * @memberof vtctldata - * @interface IExecuteFetchAsDBAResponse - * @property {query.IQueryResult|null} [result] ExecuteFetchAsDBAResponse result + * @interface IGetKeyspaceResponse + * @property {vtctldata.IKeyspace|null} [keyspace] GetKeyspaceResponse keyspace */ /** - * Constructs a new ExecuteFetchAsDBAResponse. + * Constructs a new GetKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents an ExecuteFetchAsDBAResponse. - * @implements IExecuteFetchAsDBAResponse + * @classdesc Represents a GetKeyspaceResponse. + * @implements IGetKeyspaceResponse * @constructor - * @param {vtctldata.IExecuteFetchAsDBAResponse=} [properties] Properties to set + * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set */ - function ExecuteFetchAsDBAResponse(properties) { + function GetKeyspaceResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -144836,75 +152150,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ExecuteFetchAsDBAResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof vtctldata.ExecuteFetchAsDBAResponse + * GetKeyspaceResponse keyspace. + * @member {vtctldata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.GetKeyspaceResponse * @instance */ - ExecuteFetchAsDBAResponse.prototype.result = null; + GetKeyspaceResponse.prototype.keyspace = null; /** - * Creates a new ExecuteFetchAsDBAResponse instance using the specified properties. + * Creates a new GetKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceResponse * @static - * @param {vtctldata.IExecuteFetchAsDBAResponse=} [properties] Properties to set - * @returns {vtctldata.ExecuteFetchAsDBAResponse} ExecuteFetchAsDBAResponse instance + * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse instance */ - ExecuteFetchAsDBAResponse.create = function create(properties) { - return new ExecuteFetchAsDBAResponse(properties); + GetKeyspaceResponse.create = function create(properties) { + return new GetKeyspaceResponse(properties); }; /** - * Encodes the specified ExecuteFetchAsDBAResponse message. Does not implicitly {@link vtctldata.ExecuteFetchAsDBAResponse.verify|verify} messages. + * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceResponse * @static - * @param {vtctldata.IExecuteFetchAsDBAResponse} message ExecuteFetchAsDBAResponse message or plain object to encode + * @param {vtctldata.IGetKeyspaceResponse} message GetKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsDBAResponse.encode = function encode(message, writer) { + GetKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteFetchAsDBAResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsDBAResponse.verify|verify} messages. + * Encodes the specified GetKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceResponse * @static - * @param {vtctldata.IExecuteFetchAsDBAResponse} message ExecuteFetchAsDBAResponse message or plain object to encode + * @param {vtctldata.IGetKeyspaceResponse} message GetKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteFetchAsDBAResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer. + * Decodes a GetKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteFetchAsDBAResponse} ExecuteFetchAsDBAResponse + * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsDBAResponse.decode = function decode(reader, length) { + GetKeyspaceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteFetchAsDBAResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); break; } default: @@ -144916,128 +152230,127 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspaceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteFetchAsDBAResponse} ExecuteFetchAsDBAResponse + * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteFetchAsDBAResponse.decodeDelimited = function decodeDelimited(reader) { + GetKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteFetchAsDBAResponse message. + * Verifies a GetKeyspaceResponse message. * @function verify - * @memberof vtctldata.ExecuteFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteFetchAsDBAResponse.verify = function verify(message) { + GetKeyspaceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + let error = $root.vtctldata.Keyspace.verify(message.keyspace); if (error) - return "result." + error; + return "keyspace." + error; } return null; }; /** - * Creates an ExecuteFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteFetchAsDBAResponse} ExecuteFetchAsDBAResponse + * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse */ - ExecuteFetchAsDBAResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteFetchAsDBAResponse) + GetKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspaceResponse) return object; - let message = new $root.vtctldata.ExecuteFetchAsDBAResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".vtctldata.ExecuteFetchAsDBAResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); + let message = new $root.vtctldata.GetKeyspaceResponse(); + if (object.keyspace != null) { + if (typeof object.keyspace !== "object") + throw TypeError(".vtctldata.GetKeyspaceResponse.keyspace: object expected"); + message.keyspace = $root.vtctldata.Keyspace.fromObject(object.keyspace); } return message; }; /** - * Creates a plain object from an ExecuteFetchAsDBAResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetKeyspaceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceResponse * @static - * @param {vtctldata.ExecuteFetchAsDBAResponse} message ExecuteFetchAsDBAResponse + * @param {vtctldata.GetKeyspaceResponse} message GetKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteFetchAsDBAResponse.toObject = function toObject(message, options) { + GetKeyspaceResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); + object.keyspace = null; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); return object; }; /** - * Converts this ExecuteFetchAsDBAResponse to JSON. + * Converts this GetKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.ExecuteFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceResponse * @instance * @returns {Object.} JSON object */ - ExecuteFetchAsDBAResponse.prototype.toJSON = function toJSON() { + GetKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteFetchAsDBAResponse + * Gets the default type url for GetKeyspaceResponse * @function getTypeUrl - * @memberof vtctldata.ExecuteFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteFetchAsDBAResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ExecuteFetchAsDBAResponse"; + return typeUrlPrefix + "/vtctldata.GetKeyspaceResponse"; }; - return ExecuteFetchAsDBAResponse; + return GetKeyspaceResponse; })(); - vtctldata.ExecuteHookRequest = (function() { + vtctldata.GetPermissionsRequest = (function() { /** - * Properties of an ExecuteHookRequest. + * Properties of a GetPermissionsRequest. * @memberof vtctldata - * @interface IExecuteHookRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] ExecuteHookRequest tablet_alias - * @property {tabletmanagerdata.IExecuteHookRequest|null} [tablet_hook_request] ExecuteHookRequest tablet_hook_request + * @interface IGetPermissionsRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] GetPermissionsRequest tablet_alias */ /** - * Constructs a new ExecuteHookRequest. + * Constructs a new GetPermissionsRequest. * @memberof vtctldata - * @classdesc Represents an ExecuteHookRequest. - * @implements IExecuteHookRequest + * @classdesc Represents a GetPermissionsRequest. + * @implements IGetPermissionsRequest * @constructor - * @param {vtctldata.IExecuteHookRequest=} [properties] Properties to set + * @param {vtctldata.IGetPermissionsRequest=} [properties] Properties to set */ - function ExecuteHookRequest(properties) { + function GetPermissionsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -145045,80 +152358,70 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ExecuteHookRequest tablet_alias. + * GetPermissionsRequest tablet_alias. * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.ExecuteHookRequest - * @instance - */ - ExecuteHookRequest.prototype.tablet_alias = null; - - /** - * ExecuteHookRequest tablet_hook_request. - * @member {tabletmanagerdata.IExecuteHookRequest|null|undefined} tablet_hook_request - * @memberof vtctldata.ExecuteHookRequest + * @memberof vtctldata.GetPermissionsRequest * @instance */ - ExecuteHookRequest.prototype.tablet_hook_request = null; + GetPermissionsRequest.prototype.tablet_alias = null; /** - * Creates a new ExecuteHookRequest instance using the specified properties. + * Creates a new GetPermissionsRequest instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteHookRequest + * @memberof vtctldata.GetPermissionsRequest * @static - * @param {vtctldata.IExecuteHookRequest=} [properties] Properties to set - * @returns {vtctldata.ExecuteHookRequest} ExecuteHookRequest instance + * @param {vtctldata.IGetPermissionsRequest=} [properties] Properties to set + * @returns {vtctldata.GetPermissionsRequest} GetPermissionsRequest instance */ - ExecuteHookRequest.create = function create(properties) { - return new ExecuteHookRequest(properties); + GetPermissionsRequest.create = function create(properties) { + return new GetPermissionsRequest(properties); }; /** - * Encodes the specified ExecuteHookRequest message. Does not implicitly {@link vtctldata.ExecuteHookRequest.verify|verify} messages. + * Encodes the specified GetPermissionsRequest message. Does not implicitly {@link vtctldata.GetPermissionsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteHookRequest + * @memberof vtctldata.GetPermissionsRequest * @static - * @param {vtctldata.IExecuteHookRequest} message ExecuteHookRequest message or plain object to encode + * @param {vtctldata.IGetPermissionsRequest} message GetPermissionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteHookRequest.encode = function encode(message, writer) { + GetPermissionsRequest.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.tablet_hook_request != null && Object.hasOwnProperty.call(message, "tablet_hook_request")) - $root.tabletmanagerdata.ExecuteHookRequest.encode(message.tablet_hook_request, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteHookRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteHookRequest.verify|verify} messages. + * Encodes the specified GetPermissionsRequest message, length delimited. Does not implicitly {@link vtctldata.GetPermissionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteHookRequest + * @memberof vtctldata.GetPermissionsRequest * @static - * @param {vtctldata.IExecuteHookRequest} message ExecuteHookRequest message or plain object to encode + * @param {vtctldata.IGetPermissionsRequest} message GetPermissionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteHookRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetPermissionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteHookRequest message from the specified reader or buffer. + * Decodes a GetPermissionsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteHookRequest + * @memberof vtctldata.GetPermissionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteHookRequest} ExecuteHookRequest + * @returns {vtctldata.GetPermissionsRequest} GetPermissionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteHookRequest.decode = function decode(reader, length) { + GetPermissionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteHookRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetPermissionsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -145126,10 +152429,6 @@ export const vtctldata = $root.vtctldata = (() => { message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } - case 2: { - message.tablet_hook_request = $root.tabletmanagerdata.ExecuteHookRequest.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -145139,30 +152438,30 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ExecuteHookRequest message from the specified reader or buffer, length delimited. + * Decodes a GetPermissionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteHookRequest + * @memberof vtctldata.GetPermissionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteHookRequest} ExecuteHookRequest + * @returns {vtctldata.GetPermissionsRequest} GetPermissionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteHookRequest.decodeDelimited = function decodeDelimited(reader) { + GetPermissionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteHookRequest message. + * Verifies a GetPermissionsRequest message. * @function verify - * @memberof vtctldata.ExecuteHookRequest + * @memberof vtctldata.GetPermissionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteHookRequest.verify = function verify(message) { + GetPermissionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { @@ -145170,110 +152469,96 @@ export const vtctldata = $root.vtctldata = (() => { if (error) return "tablet_alias." + error; } - if (message.tablet_hook_request != null && message.hasOwnProperty("tablet_hook_request")) { - let error = $root.tabletmanagerdata.ExecuteHookRequest.verify(message.tablet_hook_request); - if (error) - return "tablet_hook_request." + error; - } return null; }; /** - * Creates an ExecuteHookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetPermissionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteHookRequest + * @memberof vtctldata.GetPermissionsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteHookRequest} ExecuteHookRequest + * @returns {vtctldata.GetPermissionsRequest} GetPermissionsRequest */ - ExecuteHookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteHookRequest) + GetPermissionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetPermissionsRequest) return object; - let message = new $root.vtctldata.ExecuteHookRequest(); + let message = new $root.vtctldata.GetPermissionsRequest(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.ExecuteHookRequest.tablet_alias: object expected"); + throw TypeError(".vtctldata.GetPermissionsRequest.tablet_alias: object expected"); message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } - if (object.tablet_hook_request != null) { - if (typeof object.tablet_hook_request !== "object") - throw TypeError(".vtctldata.ExecuteHookRequest.tablet_hook_request: object expected"); - message.tablet_hook_request = $root.tabletmanagerdata.ExecuteHookRequest.fromObject(object.tablet_hook_request); - } return message; }; /** - * Creates a plain object from an ExecuteHookRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetPermissionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteHookRequest + * @memberof vtctldata.GetPermissionsRequest * @static - * @param {vtctldata.ExecuteHookRequest} message ExecuteHookRequest + * @param {vtctldata.GetPermissionsRequest} message GetPermissionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteHookRequest.toObject = function toObject(message, options) { + GetPermissionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { + if (options.defaults) object.tablet_alias = null; - object.tablet_hook_request = null; - } if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.tablet_hook_request != null && message.hasOwnProperty("tablet_hook_request")) - object.tablet_hook_request = $root.tabletmanagerdata.ExecuteHookRequest.toObject(message.tablet_hook_request, options); return object; }; /** - * Converts this ExecuteHookRequest to JSON. + * Converts this GetPermissionsRequest to JSON. * @function toJSON - * @memberof vtctldata.ExecuteHookRequest + * @memberof vtctldata.GetPermissionsRequest * @instance * @returns {Object.} JSON object */ - ExecuteHookRequest.prototype.toJSON = function toJSON() { + GetPermissionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteHookRequest + * Gets the default type url for GetPermissionsRequest * @function getTypeUrl - * @memberof vtctldata.ExecuteHookRequest + * @memberof vtctldata.GetPermissionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteHookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPermissionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ExecuteHookRequest"; + return typeUrlPrefix + "/vtctldata.GetPermissionsRequest"; }; - return ExecuteHookRequest; + return GetPermissionsRequest; })(); - vtctldata.ExecuteHookResponse = (function() { + vtctldata.GetPermissionsResponse = (function() { /** - * Properties of an ExecuteHookResponse. + * Properties of a GetPermissionsResponse. * @memberof vtctldata - * @interface IExecuteHookResponse - * @property {tabletmanagerdata.IExecuteHookResponse|null} [hook_result] ExecuteHookResponse hook_result + * @interface IGetPermissionsResponse + * @property {tabletmanagerdata.IPermissions|null} [permissions] GetPermissionsResponse permissions */ /** - * Constructs a new ExecuteHookResponse. + * Constructs a new GetPermissionsResponse. * @memberof vtctldata - * @classdesc Represents an ExecuteHookResponse. - * @implements IExecuteHookResponse + * @classdesc Represents a GetPermissionsResponse. + * @implements IGetPermissionsResponse * @constructor - * @param {vtctldata.IExecuteHookResponse=} [properties] Properties to set + * @param {vtctldata.IGetPermissionsResponse=} [properties] Properties to set */ - function ExecuteHookResponse(properties) { + function GetPermissionsResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -145281,75 +152566,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ExecuteHookResponse hook_result. - * @member {tabletmanagerdata.IExecuteHookResponse|null|undefined} hook_result - * @memberof vtctldata.ExecuteHookResponse + * GetPermissionsResponse permissions. + * @member {tabletmanagerdata.IPermissions|null|undefined} permissions + * @memberof vtctldata.GetPermissionsResponse * @instance */ - ExecuteHookResponse.prototype.hook_result = null; + GetPermissionsResponse.prototype.permissions = null; /** - * Creates a new ExecuteHookResponse instance using the specified properties. + * Creates a new GetPermissionsResponse instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteHookResponse + * @memberof vtctldata.GetPermissionsResponse * @static - * @param {vtctldata.IExecuteHookResponse=} [properties] Properties to set - * @returns {vtctldata.ExecuteHookResponse} ExecuteHookResponse instance + * @param {vtctldata.IGetPermissionsResponse=} [properties] Properties to set + * @returns {vtctldata.GetPermissionsResponse} GetPermissionsResponse instance */ - ExecuteHookResponse.create = function create(properties) { - return new ExecuteHookResponse(properties); + GetPermissionsResponse.create = function create(properties) { + return new GetPermissionsResponse(properties); }; /** - * Encodes the specified ExecuteHookResponse message. Does not implicitly {@link vtctldata.ExecuteHookResponse.verify|verify} messages. + * Encodes the specified GetPermissionsResponse message. Does not implicitly {@link vtctldata.GetPermissionsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteHookResponse + * @memberof vtctldata.GetPermissionsResponse * @static - * @param {vtctldata.IExecuteHookResponse} message ExecuteHookResponse message or plain object to encode + * @param {vtctldata.IGetPermissionsResponse} message GetPermissionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteHookResponse.encode = function encode(message, writer) { + GetPermissionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.hook_result != null && Object.hasOwnProperty.call(message, "hook_result")) - $root.tabletmanagerdata.ExecuteHookResponse.encode(message.hook_result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.permissions != null && Object.hasOwnProperty.call(message, "permissions")) + $root.tabletmanagerdata.Permissions.encode(message.permissions, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteHookResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteHookResponse.verify|verify} messages. + * Encodes the specified GetPermissionsResponse message, length delimited. Does not implicitly {@link vtctldata.GetPermissionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteHookResponse + * @memberof vtctldata.GetPermissionsResponse * @static - * @param {vtctldata.IExecuteHookResponse} message ExecuteHookResponse message or plain object to encode + * @param {vtctldata.IGetPermissionsResponse} message GetPermissionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteHookResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetPermissionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteHookResponse message from the specified reader or buffer. + * Decodes a GetPermissionsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteHookResponse + * @memberof vtctldata.GetPermissionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteHookResponse} ExecuteHookResponse + * @returns {vtctldata.GetPermissionsResponse} GetPermissionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteHookResponse.decode = function decode(reader, length) { + GetPermissionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteHookResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetPermissionsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.hook_result = $root.tabletmanagerdata.ExecuteHookResponse.decode(reader, reader.uint32()); + message.permissions = $root.tabletmanagerdata.Permissions.decode(reader, reader.uint32()); break; } default: @@ -145361,131 +152646,126 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ExecuteHookResponse message from the specified reader or buffer, length delimited. + * Decodes a GetPermissionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteHookResponse + * @memberof vtctldata.GetPermissionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteHookResponse} ExecuteHookResponse + * @returns {vtctldata.GetPermissionsResponse} GetPermissionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteHookResponse.decodeDelimited = function decodeDelimited(reader) { + GetPermissionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteHookResponse message. + * Verifies a GetPermissionsResponse message. * @function verify - * @memberof vtctldata.ExecuteHookResponse + * @memberof vtctldata.GetPermissionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteHookResponse.verify = function verify(message) { + GetPermissionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.hook_result != null && message.hasOwnProperty("hook_result")) { - let error = $root.tabletmanagerdata.ExecuteHookResponse.verify(message.hook_result); + if (message.permissions != null && message.hasOwnProperty("permissions")) { + let error = $root.tabletmanagerdata.Permissions.verify(message.permissions); if (error) - return "hook_result." + error; + return "permissions." + error; } return null; }; /** - * Creates an ExecuteHookResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetPermissionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteHookResponse + * @memberof vtctldata.GetPermissionsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteHookResponse} ExecuteHookResponse + * @returns {vtctldata.GetPermissionsResponse} GetPermissionsResponse */ - ExecuteHookResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteHookResponse) + GetPermissionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetPermissionsResponse) return object; - let message = new $root.vtctldata.ExecuteHookResponse(); - if (object.hook_result != null) { - if (typeof object.hook_result !== "object") - throw TypeError(".vtctldata.ExecuteHookResponse.hook_result: object expected"); - message.hook_result = $root.tabletmanagerdata.ExecuteHookResponse.fromObject(object.hook_result); + let message = new $root.vtctldata.GetPermissionsResponse(); + if (object.permissions != null) { + if (typeof object.permissions !== "object") + throw TypeError(".vtctldata.GetPermissionsResponse.permissions: object expected"); + message.permissions = $root.tabletmanagerdata.Permissions.fromObject(object.permissions); } return message; }; /** - * Creates a plain object from an ExecuteHookResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetPermissionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteHookResponse + * @memberof vtctldata.GetPermissionsResponse * @static - * @param {vtctldata.ExecuteHookResponse} message ExecuteHookResponse + * @param {vtctldata.GetPermissionsResponse} message GetPermissionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteHookResponse.toObject = function toObject(message, options) { + GetPermissionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.hook_result = null; - if (message.hook_result != null && message.hasOwnProperty("hook_result")) - object.hook_result = $root.tabletmanagerdata.ExecuteHookResponse.toObject(message.hook_result, options); + object.permissions = null; + if (message.permissions != null && message.hasOwnProperty("permissions")) + object.permissions = $root.tabletmanagerdata.Permissions.toObject(message.permissions, options); return object; }; /** - * Converts this ExecuteHookResponse to JSON. + * Converts this GetPermissionsResponse to JSON. * @function toJSON - * @memberof vtctldata.ExecuteHookResponse + * @memberof vtctldata.GetPermissionsResponse * @instance * @returns {Object.} JSON object */ - ExecuteHookResponse.prototype.toJSON = function toJSON() { + GetPermissionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteHookResponse + * Gets the default type url for GetPermissionsResponse * @function getTypeUrl - * @memberof vtctldata.ExecuteHookResponse + * @memberof vtctldata.GetPermissionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteHookResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPermissionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ExecuteHookResponse"; + return typeUrlPrefix + "/vtctldata.GetPermissionsResponse"; }; - return ExecuteHookResponse; + return GetPermissionsResponse; })(); - vtctldata.ExecuteMultiFetchAsDBARequest = (function() { + vtctldata.GetKeyspaceRoutingRulesRequest = (function() { /** - * Properties of an ExecuteMultiFetchAsDBARequest. + * Properties of a GetKeyspaceRoutingRulesRequest. * @memberof vtctldata - * @interface IExecuteMultiFetchAsDBARequest - * @property {topodata.ITabletAlias|null} [tablet_alias] ExecuteMultiFetchAsDBARequest tablet_alias - * @property {string|null} [sql] ExecuteMultiFetchAsDBARequest sql - * @property {number|Long|null} [max_rows] ExecuteMultiFetchAsDBARequest max_rows - * @property {boolean|null} [disable_binlogs] ExecuteMultiFetchAsDBARequest disable_binlogs - * @property {boolean|null} [reload_schema] ExecuteMultiFetchAsDBARequest reload_schema + * @interface IGetKeyspaceRoutingRulesRequest */ /** - * Constructs a new ExecuteMultiFetchAsDBARequest. + * Constructs a new GetKeyspaceRoutingRulesRequest. * @memberof vtctldata - * @classdesc Represents an ExecuteMultiFetchAsDBARequest. - * @implements IExecuteMultiFetchAsDBARequest + * @classdesc Represents a GetKeyspaceRoutingRulesRequest. + * @implements IGetKeyspaceRoutingRulesRequest * @constructor - * @param {vtctldata.IExecuteMultiFetchAsDBARequest=} [properties] Properties to set + * @param {vtctldata.IGetKeyspaceRoutingRulesRequest=} [properties] Properties to set */ - function ExecuteMultiFetchAsDBARequest(properties) { + function GetKeyspaceRoutingRulesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -145493,133 +152773,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ExecuteMultiFetchAsDBARequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest - * @instance - */ - ExecuteMultiFetchAsDBARequest.prototype.tablet_alias = null; - - /** - * ExecuteMultiFetchAsDBARequest sql. - * @member {string} sql - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest - * @instance - */ - ExecuteMultiFetchAsDBARequest.prototype.sql = ""; - - /** - * ExecuteMultiFetchAsDBARequest max_rows. - * @member {number|Long} max_rows - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest - * @instance - */ - ExecuteMultiFetchAsDBARequest.prototype.max_rows = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ExecuteMultiFetchAsDBARequest disable_binlogs. - * @member {boolean} disable_binlogs - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest - * @instance - */ - ExecuteMultiFetchAsDBARequest.prototype.disable_binlogs = false; - - /** - * ExecuteMultiFetchAsDBARequest reload_schema. - * @member {boolean} reload_schema - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest - * @instance - */ - ExecuteMultiFetchAsDBARequest.prototype.reload_schema = false; - - /** - * Creates a new ExecuteMultiFetchAsDBARequest instance using the specified properties. + * Creates a new GetKeyspaceRoutingRulesRequest instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRoutingRulesRequest * @static - * @param {vtctldata.IExecuteMultiFetchAsDBARequest=} [properties] Properties to set - * @returns {vtctldata.ExecuteMultiFetchAsDBARequest} ExecuteMultiFetchAsDBARequest instance + * @param {vtctldata.IGetKeyspaceRoutingRulesRequest=} [properties] Properties to set + * @returns {vtctldata.GetKeyspaceRoutingRulesRequest} GetKeyspaceRoutingRulesRequest instance */ - ExecuteMultiFetchAsDBARequest.create = function create(properties) { - return new ExecuteMultiFetchAsDBARequest(properties); + GetKeyspaceRoutingRulesRequest.create = function create(properties) { + return new GetKeyspaceRoutingRulesRequest(properties); }; /** - * Encodes the specified ExecuteMultiFetchAsDBARequest message. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBARequest.verify|verify} messages. + * Encodes the specified GetKeyspaceRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRoutingRulesRequest * @static - * @param {vtctldata.IExecuteMultiFetchAsDBARequest} message ExecuteMultiFetchAsDBARequest message or plain object to encode + * @param {vtctldata.IGetKeyspaceRoutingRulesRequest} message GetKeyspaceRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteMultiFetchAsDBARequest.encode = function encode(message, writer) { + GetKeyspaceRoutingRulesRequest.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.sql != null && Object.hasOwnProperty.call(message, "sql")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sql); - if (message.max_rows != null && Object.hasOwnProperty.call(message, "max_rows")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.max_rows); - if (message.disable_binlogs != null && Object.hasOwnProperty.call(message, "disable_binlogs")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.disable_binlogs); - if (message.reload_schema != null && Object.hasOwnProperty.call(message, "reload_schema")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reload_schema); return writer; }; /** - * Encodes the specified ExecuteMultiFetchAsDBARequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBARequest.verify|verify} messages. + * Encodes the specified GetKeyspaceRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRoutingRulesRequest * @static - * @param {vtctldata.IExecuteMultiFetchAsDBARequest} message ExecuteMultiFetchAsDBARequest message or plain object to encode + * @param {vtctldata.IGetKeyspaceRoutingRulesRequest} message GetKeyspaceRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteMultiFetchAsDBARequest.encodeDelimited = function encodeDelimited(message, writer) { + GetKeyspaceRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer. + * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteMultiFetchAsDBARequest} ExecuteMultiFetchAsDBARequest + * @returns {vtctldata.GetKeyspaceRoutingRulesRequest} GetKeyspaceRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteMultiFetchAsDBARequest.decode = function decode(reader, length) { + GetKeyspaceRoutingRulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteMultiFetchAsDBARequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceRoutingRulesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 2: { - message.sql = reader.string(); - break; - } - case 3: { - message.max_rows = reader.int64(); - break; - } - case 4: { - message.disable_binlogs = reader.bool(); - break; - } - case 5: { - message.reload_schema = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -145629,175 +152839,109 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteMultiFetchAsDBARequest} ExecuteMultiFetchAsDBARequest + * @returns {vtctldata.GetKeyspaceRoutingRulesRequest} GetKeyspaceRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteMultiFetchAsDBARequest.decodeDelimited = function decodeDelimited(reader) { + GetKeyspaceRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteMultiFetchAsDBARequest message. + * Verifies a GetKeyspaceRoutingRulesRequest message. * @function verify - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRoutingRulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteMultiFetchAsDBARequest.verify = function verify(message) { + GetKeyspaceRoutingRulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.sql != null && message.hasOwnProperty("sql")) - if (!$util.isString(message.sql)) - return "sql: string expected"; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (!$util.isInteger(message.max_rows) && !(message.max_rows && $util.isInteger(message.max_rows.low) && $util.isInteger(message.max_rows.high))) - return "max_rows: integer|Long expected"; - if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) - if (typeof message.disable_binlogs !== "boolean") - return "disable_binlogs: boolean expected"; - if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) - if (typeof message.reload_schema !== "boolean") - return "reload_schema: boolean expected"; return null; }; /** - * Creates an ExecuteMultiFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRoutingRulesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteMultiFetchAsDBARequest} ExecuteMultiFetchAsDBARequest + * @returns {vtctldata.GetKeyspaceRoutingRulesRequest} GetKeyspaceRoutingRulesRequest */ - ExecuteMultiFetchAsDBARequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteMultiFetchAsDBARequest) + GetKeyspaceRoutingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspaceRoutingRulesRequest) return object; - let message = new $root.vtctldata.ExecuteMultiFetchAsDBARequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.ExecuteMultiFetchAsDBARequest.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.max_rows != null) - if ($util.Long) - (message.max_rows = $util.Long.fromValue(object.max_rows)).unsigned = false; - else if (typeof object.max_rows === "string") - message.max_rows = parseInt(object.max_rows, 10); - else if (typeof object.max_rows === "number") - message.max_rows = object.max_rows; - else if (typeof object.max_rows === "object") - message.max_rows = new $util.LongBits(object.max_rows.low >>> 0, object.max_rows.high >>> 0).toNumber(); - if (object.disable_binlogs != null) - message.disable_binlogs = Boolean(object.disable_binlogs); - if (object.reload_schema != null) - message.reload_schema = Boolean(object.reload_schema); - return message; + return new $root.vtctldata.GetKeyspaceRoutingRulesRequest(); }; /** - * Creates a plain object from an ExecuteMultiFetchAsDBARequest message. Also converts values to other types if specified. + * Creates a plain object from a GetKeyspaceRoutingRulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRoutingRulesRequest * @static - * @param {vtctldata.ExecuteMultiFetchAsDBARequest} message ExecuteMultiFetchAsDBARequest + * @param {vtctldata.GetKeyspaceRoutingRulesRequest} message GetKeyspaceRoutingRulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteMultiFetchAsDBARequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.tablet_alias = null; - object.sql = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.max_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_rows = options.longs === String ? "0" : 0; - object.disable_binlogs = false; - object.reload_schema = false; - } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = message.sql; - if (message.max_rows != null && message.hasOwnProperty("max_rows")) - if (typeof message.max_rows === "number") - object.max_rows = options.longs === String ? String(message.max_rows) : message.max_rows; - else - object.max_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_rows) : options.longs === Number ? new $util.LongBits(message.max_rows.low >>> 0, message.max_rows.high >>> 0).toNumber() : message.max_rows; - if (message.disable_binlogs != null && message.hasOwnProperty("disable_binlogs")) - object.disable_binlogs = message.disable_binlogs; - if (message.reload_schema != null && message.hasOwnProperty("reload_schema")) - object.reload_schema = message.reload_schema; - return object; + GetKeyspaceRoutingRulesRequest.toObject = function toObject() { + return {}; }; /** - * Converts this ExecuteMultiFetchAsDBARequest to JSON. + * Converts this GetKeyspaceRoutingRulesRequest to JSON. * @function toJSON - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRoutingRulesRequest * @instance * @returns {Object.} JSON object */ - ExecuteMultiFetchAsDBARequest.prototype.toJSON = function toJSON() { + GetKeyspaceRoutingRulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteMultiFetchAsDBARequest + * Gets the default type url for GetKeyspaceRoutingRulesRequest * @function getTypeUrl - * @memberof vtctldata.ExecuteMultiFetchAsDBARequest + * @memberof vtctldata.GetKeyspaceRoutingRulesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteMultiFetchAsDBARequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetKeyspaceRoutingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ExecuteMultiFetchAsDBARequest"; + return typeUrlPrefix + "/vtctldata.GetKeyspaceRoutingRulesRequest"; }; - return ExecuteMultiFetchAsDBARequest; + return GetKeyspaceRoutingRulesRequest; })(); - vtctldata.ExecuteMultiFetchAsDBAResponse = (function() { + vtctldata.GetKeyspaceRoutingRulesResponse = (function() { /** - * Properties of an ExecuteMultiFetchAsDBAResponse. + * Properties of a GetKeyspaceRoutingRulesResponse. * @memberof vtctldata - * @interface IExecuteMultiFetchAsDBAResponse - * @property {Array.|null} [results] ExecuteMultiFetchAsDBAResponse results + * @interface IGetKeyspaceRoutingRulesResponse + * @property {vschema.IKeyspaceRoutingRules|null} [keyspace_routing_rules] GetKeyspaceRoutingRulesResponse keyspace_routing_rules */ /** - * Constructs a new ExecuteMultiFetchAsDBAResponse. + * Constructs a new GetKeyspaceRoutingRulesResponse. * @memberof vtctldata - * @classdesc Represents an ExecuteMultiFetchAsDBAResponse. - * @implements IExecuteMultiFetchAsDBAResponse + * @classdesc Represents a GetKeyspaceRoutingRulesResponse. + * @implements IGetKeyspaceRoutingRulesResponse * @constructor - * @param {vtctldata.IExecuteMultiFetchAsDBAResponse=} [properties] Properties to set + * @param {vtctldata.IGetKeyspaceRoutingRulesResponse=} [properties] Properties to set */ - function ExecuteMultiFetchAsDBAResponse(properties) { - this.results = []; + function GetKeyspaceRoutingRulesResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -145805,78 +152949,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ExecuteMultiFetchAsDBAResponse results. - * @member {Array.} results - * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse + * GetKeyspaceRoutingRulesResponse keyspace_routing_rules. + * @member {vschema.IKeyspaceRoutingRules|null|undefined} keyspace_routing_rules + * @memberof vtctldata.GetKeyspaceRoutingRulesResponse * @instance */ - ExecuteMultiFetchAsDBAResponse.prototype.results = $util.emptyArray; + GetKeyspaceRoutingRulesResponse.prototype.keyspace_routing_rules = null; /** - * Creates a new ExecuteMultiFetchAsDBAResponse instance using the specified properties. + * Creates a new GetKeyspaceRoutingRulesResponse instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceRoutingRulesResponse * @static - * @param {vtctldata.IExecuteMultiFetchAsDBAResponse=} [properties] Properties to set - * @returns {vtctldata.ExecuteMultiFetchAsDBAResponse} ExecuteMultiFetchAsDBAResponse instance + * @param {vtctldata.IGetKeyspaceRoutingRulesResponse=} [properties] Properties to set + * @returns {vtctldata.GetKeyspaceRoutingRulesResponse} GetKeyspaceRoutingRulesResponse instance */ - ExecuteMultiFetchAsDBAResponse.create = function create(properties) { - return new ExecuteMultiFetchAsDBAResponse(properties); + GetKeyspaceRoutingRulesResponse.create = function create(properties) { + return new GetKeyspaceRoutingRulesResponse(properties); }; /** - * Encodes the specified ExecuteMultiFetchAsDBAResponse message. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBAResponse.verify|verify} messages. + * Encodes the specified GetKeyspaceRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceRoutingRulesResponse * @static - * @param {vtctldata.IExecuteMultiFetchAsDBAResponse} message ExecuteMultiFetchAsDBAResponse message or plain object to encode + * @param {vtctldata.IGetKeyspaceRoutingRulesResponse} message GetKeyspaceRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteMultiFetchAsDBAResponse.encode = function encode(message, writer) { + GetKeyspaceRoutingRulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (let i = 0; i < message.results.length; ++i) - $root.query.QueryResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace_routing_rules != null && Object.hasOwnProperty.call(message, "keyspace_routing_rules")) + $root.vschema.KeyspaceRoutingRules.encode(message.keyspace_routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteMultiFetchAsDBAResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBAResponse.verify|verify} messages. + * Encodes the specified GetKeyspaceRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceRoutingRulesResponse * @static - * @param {vtctldata.IExecuteMultiFetchAsDBAResponse} message ExecuteMultiFetchAsDBAResponse message or plain object to encode + * @param {vtctldata.IGetKeyspaceRoutingRulesResponse} message GetKeyspaceRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteMultiFetchAsDBAResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetKeyspaceRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer. + * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteMultiFetchAsDBAResponse} ExecuteMultiFetchAsDBAResponse + * @returns {vtctldata.GetKeyspaceRoutingRulesResponse} GetKeyspaceRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteMultiFetchAsDBAResponse.decode = function decode(reader, length) { + GetKeyspaceRoutingRulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteMultiFetchAsDBAResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceRoutingRulesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.results && message.results.length)) - message.results = []; - message.results.push($root.query.QueryResult.decode(reader, reader.uint32())); + message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.decode(reader, reader.uint32()); break; } default: @@ -145888,139 +153029,126 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteMultiFetchAsDBAResponse} ExecuteMultiFetchAsDBAResponse + * @returns {vtctldata.GetKeyspaceRoutingRulesResponse} GetKeyspaceRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteMultiFetchAsDBAResponse.decodeDelimited = function decodeDelimited(reader) { + GetKeyspaceRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteMultiFetchAsDBAResponse message. + * Verifies a GetKeyspaceRoutingRulesResponse message. * @function verify - * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceRoutingRulesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteMultiFetchAsDBAResponse.verify = function verify(message) { + GetKeyspaceRoutingRulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (let i = 0; i < message.results.length; ++i) { - let error = $root.query.QueryResult.verify(message.results[i]); - if (error) - return "results." + error; - } + if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) { + let error = $root.vschema.KeyspaceRoutingRules.verify(message.keyspace_routing_rules); + if (error) + return "keyspace_routing_rules." + error; } return null; }; /** - * Creates an ExecuteMultiFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceRoutingRulesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteMultiFetchAsDBAResponse} ExecuteMultiFetchAsDBAResponse + * @returns {vtctldata.GetKeyspaceRoutingRulesResponse} GetKeyspaceRoutingRulesResponse */ - ExecuteMultiFetchAsDBAResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteMultiFetchAsDBAResponse) + GetKeyspaceRoutingRulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspaceRoutingRulesResponse) return object; - let message = new $root.vtctldata.ExecuteMultiFetchAsDBAResponse(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".vtctldata.ExecuteMultiFetchAsDBAResponse.results: array expected"); - message.results = []; - for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") - throw TypeError(".vtctldata.ExecuteMultiFetchAsDBAResponse.results: object expected"); - message.results[i] = $root.query.QueryResult.fromObject(object.results[i]); - } + let message = new $root.vtctldata.GetKeyspaceRoutingRulesResponse(); + if (object.keyspace_routing_rules != null) { + if (typeof object.keyspace_routing_rules !== "object") + throw TypeError(".vtctldata.GetKeyspaceRoutingRulesResponse.keyspace_routing_rules: object expected"); + message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.fromObject(object.keyspace_routing_rules); } return message; }; /** - * Creates a plain object from an ExecuteMultiFetchAsDBAResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetKeyspaceRoutingRulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceRoutingRulesResponse * @static - * @param {vtctldata.ExecuteMultiFetchAsDBAResponse} message ExecuteMultiFetchAsDBAResponse + * @param {vtctldata.GetKeyspaceRoutingRulesResponse} message GetKeyspaceRoutingRulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteMultiFetchAsDBAResponse.toObject = function toObject(message, options) { + GetKeyspaceRoutingRulesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.results = []; - if (message.results && message.results.length) { - object.results = []; - for (let j = 0; j < message.results.length; ++j) - object.results[j] = $root.query.QueryResult.toObject(message.results[j], options); - } + if (options.defaults) + object.keyspace_routing_rules = null; + if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) + object.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.toObject(message.keyspace_routing_rules, options); return object; }; /** - * Converts this ExecuteMultiFetchAsDBAResponse to JSON. + * Converts this GetKeyspaceRoutingRulesResponse to JSON. * @function toJSON - * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceRoutingRulesResponse * @instance * @returns {Object.} JSON object */ - ExecuteMultiFetchAsDBAResponse.prototype.toJSON = function toJSON() { + GetKeyspaceRoutingRulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteMultiFetchAsDBAResponse + * Gets the default type url for GetKeyspaceRoutingRulesResponse * @function getTypeUrl - * @memberof vtctldata.ExecuteMultiFetchAsDBAResponse + * @memberof vtctldata.GetKeyspaceRoutingRulesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteMultiFetchAsDBAResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetKeyspaceRoutingRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ExecuteMultiFetchAsDBAResponse"; + return typeUrlPrefix + "/vtctldata.GetKeyspaceRoutingRulesResponse"; }; - return ExecuteMultiFetchAsDBAResponse; + return GetKeyspaceRoutingRulesResponse; })(); - vtctldata.FindAllShardsInKeyspaceRequest = (function() { + vtctldata.GetRoutingRulesRequest = (function() { /** - * Properties of a FindAllShardsInKeyspaceRequest. + * Properties of a GetRoutingRulesRequest. * @memberof vtctldata - * @interface IFindAllShardsInKeyspaceRequest - * @property {string|null} [keyspace] FindAllShardsInKeyspaceRequest keyspace + * @interface IGetRoutingRulesRequest */ /** - * Constructs a new FindAllShardsInKeyspaceRequest. + * Constructs a new GetRoutingRulesRequest. * @memberof vtctldata - * @classdesc Represents a FindAllShardsInKeyspaceRequest. - * @implements IFindAllShardsInKeyspaceRequest + * @classdesc Represents a GetRoutingRulesRequest. + * @implements IGetRoutingRulesRequest * @constructor - * @param {vtctldata.IFindAllShardsInKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IGetRoutingRulesRequest=} [properties] Properties to set */ - function FindAllShardsInKeyspaceRequest(properties) { + function GetRoutingRulesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -146028,77 +153156,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * FindAllShardsInKeyspaceRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.FindAllShardsInKeyspaceRequest - * @instance - */ - FindAllShardsInKeyspaceRequest.prototype.keyspace = ""; - - /** - * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. + * Creates a new GetRoutingRulesRequest instance using the specified properties. * @function create - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.GetRoutingRulesRequest * @static - * @param {vtctldata.IFindAllShardsInKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest instance + * @param {vtctldata.IGetRoutingRulesRequest=} [properties] Properties to set + * @returns {vtctldata.GetRoutingRulesRequest} GetRoutingRulesRequest instance */ - FindAllShardsInKeyspaceRequest.create = function create(properties) { - return new FindAllShardsInKeyspaceRequest(properties); + GetRoutingRulesRequest.create = function create(properties) { + return new GetRoutingRulesRequest(properties); }; /** - * Encodes the specified FindAllShardsInKeyspaceRequest message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. + * Encodes the specified GetRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetRoutingRulesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.GetRoutingRulesRequest * @static - * @param {vtctldata.IFindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest message or plain object to encode + * @param {vtctldata.IGetRoutingRulesRequest} message GetRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FindAllShardsInKeyspaceRequest.encode = function encode(message, writer) { + GetRoutingRulesRequest.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); return writer; }; /** - * Encodes the specified FindAllShardsInKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. + * Encodes the specified GetRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetRoutingRulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.GetRoutingRulesRequest * @static - * @param {vtctldata.IFindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest message or plain object to encode + * @param {vtctldata.IGetRoutingRulesRequest} message GetRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FindAllShardsInKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer. + * Decodes a GetRoutingRulesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.GetRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest + * @returns {vtctldata.GetRoutingRulesRequest} GetRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FindAllShardsInKeyspaceRequest.decode = function decode(reader, length) { + GetRoutingRulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.FindAllShardsInKeyspaceRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetRoutingRulesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -146108,123 +153222,109 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a GetRoutingRulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.GetRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest + * @returns {vtctldata.GetRoutingRulesRequest} GetRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FindAllShardsInKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + GetRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FindAllShardsInKeyspaceRequest message. + * Verifies a GetRoutingRulesRequest message. * @function verify - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.GetRoutingRulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FindAllShardsInKeyspaceRequest.verify = function verify(message) { + GetRoutingRulesRequest.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"; return null; }; /** - * Creates a FindAllShardsInKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.GetRoutingRulesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest + * @returns {vtctldata.GetRoutingRulesRequest} GetRoutingRulesRequest */ - FindAllShardsInKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.FindAllShardsInKeyspaceRequest) + GetRoutingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetRoutingRulesRequest) return object; - let message = new $root.vtctldata.FindAllShardsInKeyspaceRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - return message; + return new $root.vtctldata.GetRoutingRulesRequest(); }; /** - * Creates a plain object from a FindAllShardsInKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetRoutingRulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.GetRoutingRulesRequest * @static - * @param {vtctldata.FindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest + * @param {vtctldata.GetRoutingRulesRequest} message GetRoutingRulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FindAllShardsInKeyspaceRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.keyspace = ""; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - return object; + GetRoutingRulesRequest.toObject = function toObject() { + return {}; }; /** - * Converts this FindAllShardsInKeyspaceRequest to JSON. + * Converts this GetRoutingRulesRequest to JSON. * @function toJSON - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.GetRoutingRulesRequest * @instance * @returns {Object.} JSON object */ - FindAllShardsInKeyspaceRequest.prototype.toJSON = function toJSON() { + GetRoutingRulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FindAllShardsInKeyspaceRequest + * Gets the default type url for GetRoutingRulesRequest * @function getTypeUrl - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.GetRoutingRulesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FindAllShardsInKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetRoutingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.FindAllShardsInKeyspaceRequest"; + return typeUrlPrefix + "/vtctldata.GetRoutingRulesRequest"; }; - return FindAllShardsInKeyspaceRequest; + return GetRoutingRulesRequest; })(); - vtctldata.FindAllShardsInKeyspaceResponse = (function() { + vtctldata.GetRoutingRulesResponse = (function() { /** - * Properties of a FindAllShardsInKeyspaceResponse. + * Properties of a GetRoutingRulesResponse. * @memberof vtctldata - * @interface IFindAllShardsInKeyspaceResponse - * @property {Object.|null} [shards] FindAllShardsInKeyspaceResponse shards + * @interface IGetRoutingRulesResponse + * @property {vschema.IRoutingRules|null} [routing_rules] GetRoutingRulesResponse routing_rules */ /** - * Constructs a new FindAllShardsInKeyspaceResponse. + * Constructs a new GetRoutingRulesResponse. * @memberof vtctldata - * @classdesc Represents a FindAllShardsInKeyspaceResponse. - * @implements IFindAllShardsInKeyspaceResponse + * @classdesc Represents a GetRoutingRulesResponse. + * @implements IGetRoutingRulesResponse * @constructor - * @param {vtctldata.IFindAllShardsInKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IGetRoutingRulesResponse=} [properties] Properties to set */ - function FindAllShardsInKeyspaceResponse(properties) { - this.shards = {}; + function GetRoutingRulesResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -146232,97 +153332,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * FindAllShardsInKeyspaceResponse shards. - * @member {Object.} shards - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * GetRoutingRulesResponse routing_rules. + * @member {vschema.IRoutingRules|null|undefined} routing_rules + * @memberof vtctldata.GetRoutingRulesResponse * @instance */ - FindAllShardsInKeyspaceResponse.prototype.shards = $util.emptyObject; + GetRoutingRulesResponse.prototype.routing_rules = null; /** - * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. + * Creates a new GetRoutingRulesResponse instance using the specified properties. * @function create - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.GetRoutingRulesResponse * @static - * @param {vtctldata.IFindAllShardsInKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse instance + * @param {vtctldata.IGetRoutingRulesResponse=} [properties] Properties to set + * @returns {vtctldata.GetRoutingRulesResponse} GetRoutingRulesResponse instance */ - FindAllShardsInKeyspaceResponse.create = function create(properties) { - return new FindAllShardsInKeyspaceResponse(properties); + GetRoutingRulesResponse.create = function create(properties) { + return new GetRoutingRulesResponse(properties); }; /** - * Encodes the specified FindAllShardsInKeyspaceResponse message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. + * Encodes the specified GetRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetRoutingRulesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.GetRoutingRulesResponse * @static - * @param {vtctldata.IFindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse message or plain object to encode + * @param {vtctldata.IGetRoutingRulesResponse} message GetRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FindAllShardsInKeyspaceResponse.encode = function encode(message, writer) { + GetRoutingRulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shards != null && Object.hasOwnProperty.call(message, "shards")) - for (let keys = Object.keys(message.shards), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vtctldata.Shard.encode(message.shards[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 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FindAllShardsInKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. + * Encodes the specified GetRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetRoutingRulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.GetRoutingRulesResponse * @static - * @param {vtctldata.IFindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse message or plain object to encode + * @param {vtctldata.IGetRoutingRulesResponse} message GetRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FindAllShardsInKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer. + * Decodes a GetRoutingRulesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.GetRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse + * @returns {vtctldata.GetRoutingRulesResponse} GetRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FindAllShardsInKeyspaceResponse.decode = function decode(reader, length) { + GetRoutingRulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.FindAllShardsInKeyspaceResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetRoutingRulesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.shards === $util.emptyObject) - message.shards = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vtctldata.Shard.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.shards[key] = value; + message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); break; } default: @@ -146334,143 +153412,135 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a GetRoutingRulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.GetRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse + * @returns {vtctldata.GetRoutingRulesResponse} GetRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FindAllShardsInKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + GetRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FindAllShardsInKeyspaceResponse message. + * Verifies a GetRoutingRulesResponse message. * @function verify - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.GetRoutingRulesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FindAllShardsInKeyspaceResponse.verify = function verify(message) { + GetRoutingRulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shards != null && message.hasOwnProperty("shards")) { - if (!$util.isObject(message.shards)) - return "shards: object expected"; - let key = Object.keys(message.shards); - for (let i = 0; i < key.length; ++i) { - let error = $root.vtctldata.Shard.verify(message.shards[key[i]]); - if (error) - return "shards." + error; - } + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { + let error = $root.vschema.RoutingRules.verify(message.routing_rules); + if (error) + return "routing_rules." + error; } return null; }; /** - * Creates a FindAllShardsInKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.GetRoutingRulesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse + * @returns {vtctldata.GetRoutingRulesResponse} GetRoutingRulesResponse */ - FindAllShardsInKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.FindAllShardsInKeyspaceResponse) + GetRoutingRulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetRoutingRulesResponse) return object; - let message = new $root.vtctldata.FindAllShardsInKeyspaceResponse(); - if (object.shards) { - if (typeof object.shards !== "object") - throw TypeError(".vtctldata.FindAllShardsInKeyspaceResponse.shards: object expected"); - message.shards = {}; - for (let keys = Object.keys(object.shards), i = 0; i < keys.length; ++i) { - if (typeof object.shards[keys[i]] !== "object") - throw TypeError(".vtctldata.FindAllShardsInKeyspaceResponse.shards: object expected"); - message.shards[keys[i]] = $root.vtctldata.Shard.fromObject(object.shards[keys[i]]); - } + let message = new $root.vtctldata.GetRoutingRulesResponse(); + if (object.routing_rules != null) { + if (typeof object.routing_rules !== "object") + throw TypeError(".vtctldata.GetRoutingRulesResponse.routing_rules: object expected"); + message.routing_rules = $root.vschema.RoutingRules.fromObject(object.routing_rules); } return message; }; /** - * Creates a plain object from a FindAllShardsInKeyspaceResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetRoutingRulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.GetRoutingRulesResponse * @static - * @param {vtctldata.FindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse + * @param {vtctldata.GetRoutingRulesResponse} message GetRoutingRulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FindAllShardsInKeyspaceResponse.toObject = function toObject(message, options) { + GetRoutingRulesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.shards = {}; - let keys2; - if (message.shards && (keys2 = Object.keys(message.shards)).length) { - object.shards = {}; - for (let j = 0; j < keys2.length; ++j) - object.shards[keys2[j]] = $root.vtctldata.Shard.toObject(message.shards[keys2[j]], options); - } + if (options.defaults) + object.routing_rules = null; + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) + object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); return object; }; /** - * Converts this FindAllShardsInKeyspaceResponse to JSON. + * Converts this GetRoutingRulesResponse to JSON. * @function toJSON - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.GetRoutingRulesResponse * @instance * @returns {Object.} JSON object */ - FindAllShardsInKeyspaceResponse.prototype.toJSON = function toJSON() { + GetRoutingRulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FindAllShardsInKeyspaceResponse + * Gets the default type url for GetRoutingRulesResponse * @function getTypeUrl - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.GetRoutingRulesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FindAllShardsInKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetRoutingRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.FindAllShardsInKeyspaceResponse"; + return typeUrlPrefix + "/vtctldata.GetRoutingRulesResponse"; }; - return FindAllShardsInKeyspaceResponse; + return GetRoutingRulesResponse; })(); - vtctldata.ForceCutOverSchemaMigrationRequest = (function() { + vtctldata.GetSchemaRequest = (function() { /** - * Properties of a ForceCutOverSchemaMigrationRequest. + * Properties of a GetSchemaRequest. * @memberof vtctldata - * @interface IForceCutOverSchemaMigrationRequest - * @property {string|null} [keyspace] ForceCutOverSchemaMigrationRequest keyspace - * @property {string|null} [uuid] ForceCutOverSchemaMigrationRequest uuid - * @property {vtrpc.ICallerID|null} [caller_id] ForceCutOverSchemaMigrationRequest caller_id + * @interface IGetSchemaRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] GetSchemaRequest tablet_alias + * @property {Array.|null} [tables] GetSchemaRequest tables + * @property {Array.|null} [exclude_tables] GetSchemaRequest exclude_tables + * @property {boolean|null} [include_views] GetSchemaRequest include_views + * @property {boolean|null} [table_names_only] GetSchemaRequest table_names_only + * @property {boolean|null} [table_sizes_only] GetSchemaRequest table_sizes_only + * @property {boolean|null} [table_schema_only] GetSchemaRequest table_schema_only */ /** - * Constructs a new ForceCutOverSchemaMigrationRequest. + * Constructs a new GetSchemaRequest. * @memberof vtctldata - * @classdesc Represents a ForceCutOverSchemaMigrationRequest. - * @implements IForceCutOverSchemaMigrationRequest + * @classdesc Represents a GetSchemaRequest. + * @implements IGetSchemaRequest * @constructor - * @param {vtctldata.IForceCutOverSchemaMigrationRequest=} [properties] Properties to set + * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set */ - function ForceCutOverSchemaMigrationRequest(properties) { + function GetSchemaRequest(properties) { + this.tables = []; + this.exclude_tables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -146478,103 +153548,165 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ForceCutOverSchemaMigrationRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * GetSchemaRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.GetSchemaRequest * @instance */ - ForceCutOverSchemaMigrationRequest.prototype.keyspace = ""; + GetSchemaRequest.prototype.tablet_alias = null; /** - * ForceCutOverSchemaMigrationRequest uuid. - * @member {string} uuid - * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * GetSchemaRequest tables. + * @member {Array.} tables + * @memberof vtctldata.GetSchemaRequest * @instance */ - ForceCutOverSchemaMigrationRequest.prototype.uuid = ""; + GetSchemaRequest.prototype.tables = $util.emptyArray; /** - * ForceCutOverSchemaMigrationRequest caller_id. - * @member {vtrpc.ICallerID|null|undefined} caller_id - * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * GetSchemaRequest exclude_tables. + * @member {Array.} exclude_tables + * @memberof vtctldata.GetSchemaRequest * @instance */ - ForceCutOverSchemaMigrationRequest.prototype.caller_id = null; + GetSchemaRequest.prototype.exclude_tables = $util.emptyArray; /** - * Creates a new ForceCutOverSchemaMigrationRequest instance using the specified properties. + * GetSchemaRequest include_views. + * @member {boolean} include_views + * @memberof vtctldata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.include_views = false; + + /** + * GetSchemaRequest table_names_only. + * @member {boolean} table_names_only + * @memberof vtctldata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.table_names_only = false; + + /** + * GetSchemaRequest table_sizes_only. + * @member {boolean} table_sizes_only + * @memberof vtctldata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.table_sizes_only = false; + + /** + * GetSchemaRequest table_schema_only. + * @member {boolean} table_schema_only + * @memberof vtctldata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.table_schema_only = false; + + /** + * Creates a new GetSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * @memberof vtctldata.GetSchemaRequest * @static - * @param {vtctldata.IForceCutOverSchemaMigrationRequest=} [properties] Properties to set - * @returns {vtctldata.ForceCutOverSchemaMigrationRequest} ForceCutOverSchemaMigrationRequest instance + * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest instance */ - ForceCutOverSchemaMigrationRequest.create = function create(properties) { - return new ForceCutOverSchemaMigrationRequest(properties); + GetSchemaRequest.create = function create(properties) { + return new GetSchemaRequest(properties); }; /** - * Encodes the specified ForceCutOverSchemaMigrationRequest message. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationRequest.verify|verify} messages. + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * @memberof vtctldata.GetSchemaRequest * @static - * @param {vtctldata.IForceCutOverSchemaMigrationRequest} message ForceCutOverSchemaMigrationRequest message or plain object to encode + * @param {vtctldata.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ForceCutOverSchemaMigrationRequest.encode = function encode(message, writer) { + GetSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); - if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) - $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 3, wireType 2 =*/26).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.tables != null && message.tables.length) + for (let i = 0; i < message.tables.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tables[i]); + if (message.exclude_tables != null && message.exclude_tables.length) + for (let i = 0; i < message.exclude_tables.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_tables[i]); + if (message.include_views != null && Object.hasOwnProperty.call(message, "include_views")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_views); + if (message.table_names_only != null && Object.hasOwnProperty.call(message, "table_names_only")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.table_names_only); + if (message.table_sizes_only != null && Object.hasOwnProperty.call(message, "table_sizes_only")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.table_sizes_only); + if (message.table_schema_only != null && Object.hasOwnProperty.call(message, "table_schema_only")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.table_schema_only); return writer; }; /** - * Encodes the specified ForceCutOverSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationRequest.verify|verify} messages. + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * @memberof vtctldata.GetSchemaRequest * @static - * @param {vtctldata.IForceCutOverSchemaMigrationRequest} message ForceCutOverSchemaMigrationRequest message or plain object to encode + * @param {vtctldata.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ForceCutOverSchemaMigrationRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer. + * Decodes a GetSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * @memberof vtctldata.GetSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ForceCutOverSchemaMigrationRequest} ForceCutOverSchemaMigrationRequest + * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ForceCutOverSchemaMigrationRequest.decode = function decode(reader, length) { + GetSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ForceCutOverSchemaMigrationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaRequest(); while (reader.pos < end) { let 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.uuid = reader.string(); + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); break; } case 3: { - message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + if (!(message.exclude_tables && message.exclude_tables.length)) + message.exclude_tables = []; + message.exclude_tables.push(reader.string()); + break; + } + case 4: { + message.include_views = reader.bool(); + break; + } + case 5: { + message.table_names_only = reader.bool(); + break; + } + case 6: { + message.table_sizes_only = reader.bool(); + break; + } + case 7: { + message.table_schema_only = reader.bool(); break; } default: @@ -146586,145 +153718,202 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * @memberof vtctldata.GetSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ForceCutOverSchemaMigrationRequest} ForceCutOverSchemaMigrationRequest + * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ForceCutOverSchemaMigrationRequest.decodeDelimited = function decodeDelimited(reader) { + GetSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ForceCutOverSchemaMigrationRequest message. + * Verifies a GetSchemaRequest message. * @function verify - * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * @memberof vtctldata.GetSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ForceCutOverSchemaMigrationRequest.verify = function verify(message) { + GetSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.uuid != null && message.hasOwnProperty("uuid")) - if (!$util.isString(message.uuid)) - return "uuid: string expected"; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) { - let error = $root.vtrpc.CallerID.verify(message.caller_id); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) - return "caller_id." + error; + return "tablet_alias." + error; + } + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (let i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; + } + if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { + if (!Array.isArray(message.exclude_tables)) + return "exclude_tables: array expected"; + for (let i = 0; i < message.exclude_tables.length; ++i) + if (!$util.isString(message.exclude_tables[i])) + return "exclude_tables: string[] expected"; } + if (message.include_views != null && message.hasOwnProperty("include_views")) + if (typeof message.include_views !== "boolean") + return "include_views: boolean expected"; + if (message.table_names_only != null && message.hasOwnProperty("table_names_only")) + if (typeof message.table_names_only !== "boolean") + return "table_names_only: boolean expected"; + if (message.table_sizes_only != null && message.hasOwnProperty("table_sizes_only")) + if (typeof message.table_sizes_only !== "boolean") + return "table_sizes_only: boolean expected"; + if (message.table_schema_only != null && message.hasOwnProperty("table_schema_only")) + if (typeof message.table_schema_only !== "boolean") + return "table_schema_only: boolean expected"; return null; }; /** - * Creates a ForceCutOverSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * @memberof vtctldata.GetSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ForceCutOverSchemaMigrationRequest} ForceCutOverSchemaMigrationRequest + * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest */ - ForceCutOverSchemaMigrationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ForceCutOverSchemaMigrationRequest) + GetSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSchemaRequest) return object; - let message = new $root.vtctldata.ForceCutOverSchemaMigrationRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.uuid != null) - message.uuid = String(object.uuid); - if (object.caller_id != null) { - if (typeof object.caller_id !== "object") - throw TypeError(".vtctldata.ForceCutOverSchemaMigrationRequest.caller_id: object expected"); - message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); + let message = new $root.vtctldata.GetSchemaRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.GetSchemaRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".vtctldata.GetSchemaRequest.tables: array expected"); + message.tables = []; + for (let i = 0; i < object.tables.length; ++i) + message.tables[i] = String(object.tables[i]); + } + if (object.exclude_tables) { + if (!Array.isArray(object.exclude_tables)) + throw TypeError(".vtctldata.GetSchemaRequest.exclude_tables: array expected"); + message.exclude_tables = []; + for (let i = 0; i < object.exclude_tables.length; ++i) + message.exclude_tables[i] = String(object.exclude_tables[i]); } + if (object.include_views != null) + message.include_views = Boolean(object.include_views); + if (object.table_names_only != null) + message.table_names_only = Boolean(object.table_names_only); + if (object.table_sizes_only != null) + message.table_sizes_only = Boolean(object.table_sizes_only); + if (object.table_schema_only != null) + message.table_schema_only = Boolean(object.table_schema_only); return message; }; /** - * Creates a plain object from a ForceCutOverSchemaMigrationRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * @memberof vtctldata.GetSchemaRequest * @static - * @param {vtctldata.ForceCutOverSchemaMigrationRequest} message ForceCutOverSchemaMigrationRequest + * @param {vtctldata.GetSchemaRequest} message GetSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ForceCutOverSchemaMigrationRequest.toObject = function toObject(message, options) { + GetSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.tables = []; + object.exclude_tables = []; + } if (options.defaults) { - object.keyspace = ""; - object.uuid = ""; - object.caller_id = null; + object.tablet_alias = null; + object.include_views = false; + object.table_names_only = false; + object.table_sizes_only = false; + object.table_schema_only = false; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.uuid != null && message.hasOwnProperty("uuid")) - object.uuid = message.uuid; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) - object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.tables && message.tables.length) { + object.tables = []; + for (let j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; + } + if (message.exclude_tables && message.exclude_tables.length) { + object.exclude_tables = []; + for (let j = 0; j < message.exclude_tables.length; ++j) + object.exclude_tables[j] = message.exclude_tables[j]; + } + if (message.include_views != null && message.hasOwnProperty("include_views")) + object.include_views = message.include_views; + if (message.table_names_only != null && message.hasOwnProperty("table_names_only")) + object.table_names_only = message.table_names_only; + if (message.table_sizes_only != null && message.hasOwnProperty("table_sizes_only")) + object.table_sizes_only = message.table_sizes_only; + if (message.table_schema_only != null && message.hasOwnProperty("table_schema_only")) + object.table_schema_only = message.table_schema_only; return object; }; /** - * Converts this ForceCutOverSchemaMigrationRequest to JSON. + * Converts this GetSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * @memberof vtctldata.GetSchemaRequest * @instance * @returns {Object.} JSON object */ - ForceCutOverSchemaMigrationRequest.prototype.toJSON = function toJSON() { + GetSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ForceCutOverSchemaMigrationRequest + * Gets the default type url for GetSchemaRequest * @function getTypeUrl - * @memberof vtctldata.ForceCutOverSchemaMigrationRequest + * @memberof vtctldata.GetSchemaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ForceCutOverSchemaMigrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ForceCutOverSchemaMigrationRequest"; + return typeUrlPrefix + "/vtctldata.GetSchemaRequest"; }; - return ForceCutOverSchemaMigrationRequest; + return GetSchemaRequest; })(); - vtctldata.ForceCutOverSchemaMigrationResponse = (function() { + vtctldata.GetSchemaResponse = (function() { /** - * Properties of a ForceCutOverSchemaMigrationResponse. + * Properties of a GetSchemaResponse. * @memberof vtctldata - * @interface IForceCutOverSchemaMigrationResponse - * @property {Object.|null} [rows_affected_by_shard] ForceCutOverSchemaMigrationResponse rows_affected_by_shard + * @interface IGetSchemaResponse + * @property {tabletmanagerdata.ISchemaDefinition|null} [schema] GetSchemaResponse schema */ /** - * Constructs a new ForceCutOverSchemaMigrationResponse. + * Constructs a new GetSchemaResponse. * @memberof vtctldata - * @classdesc Represents a ForceCutOverSchemaMigrationResponse. - * @implements IForceCutOverSchemaMigrationResponse + * @classdesc Represents a GetSchemaResponse. + * @implements IGetSchemaResponse * @constructor - * @param {vtctldata.IForceCutOverSchemaMigrationResponse=} [properties] Properties to set + * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set */ - function ForceCutOverSchemaMigrationResponse(properties) { - this.rows_affected_by_shard = {}; + function GetSchemaResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -146732,95 +153921,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ForceCutOverSchemaMigrationResponse rows_affected_by_shard. - * @member {Object.} rows_affected_by_shard - * @memberof vtctldata.ForceCutOverSchemaMigrationResponse + * GetSchemaResponse schema. + * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} schema + * @memberof vtctldata.GetSchemaResponse * @instance */ - ForceCutOverSchemaMigrationResponse.prototype.rows_affected_by_shard = $util.emptyObject; + GetSchemaResponse.prototype.schema = null; /** - * Creates a new ForceCutOverSchemaMigrationResponse instance using the specified properties. + * Creates a new GetSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.ForceCutOverSchemaMigrationResponse + * @memberof vtctldata.GetSchemaResponse * @static - * @param {vtctldata.IForceCutOverSchemaMigrationResponse=} [properties] Properties to set - * @returns {vtctldata.ForceCutOverSchemaMigrationResponse} ForceCutOverSchemaMigrationResponse instance + * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse instance */ - ForceCutOverSchemaMigrationResponse.create = function create(properties) { - return new ForceCutOverSchemaMigrationResponse(properties); + GetSchemaResponse.create = function create(properties) { + return new GetSchemaResponse(properties); }; /** - * Encodes the specified ForceCutOverSchemaMigrationResponse message. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationResponse.verify|verify} messages. + * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ForceCutOverSchemaMigrationResponse + * @memberof vtctldata.GetSchemaResponse * @static - * @param {vtctldata.IForceCutOverSchemaMigrationResponse} message ForceCutOverSchemaMigrationResponse message or plain object to encode + * @param {vtctldata.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ForceCutOverSchemaMigrationResponse.encode = function encode(message, writer) { + GetSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) - for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); + if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) + $root.tabletmanagerdata.SchemaDefinition.encode(message.schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ForceCutOverSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationResponse.verify|verify} messages. + * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ForceCutOverSchemaMigrationResponse + * @memberof vtctldata.GetSchemaResponse * @static - * @param {vtctldata.IForceCutOverSchemaMigrationResponse} message ForceCutOverSchemaMigrationResponse message or plain object to encode + * @param {vtctldata.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ForceCutOverSchemaMigrationResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer. + * Decodes a GetSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ForceCutOverSchemaMigrationResponse + * @memberof vtctldata.GetSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ForceCutOverSchemaMigrationResponse} ForceCutOverSchemaMigrationResponse + * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ForceCutOverSchemaMigrationResponse.decode = function decode(reader, length) { + GetSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ForceCutOverSchemaMigrationResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.rows_affected_by_shard === $util.emptyObject) - message.rows_affected_by_shard = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.uint64(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.rows_affected_by_shard[key] = value; + message.schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); break; } default: @@ -146832,150 +154001,134 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ForceCutOverSchemaMigrationResponse + * @memberof vtctldata.GetSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ForceCutOverSchemaMigrationResponse} ForceCutOverSchemaMigrationResponse + * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ForceCutOverSchemaMigrationResponse.decodeDelimited = function decodeDelimited(reader) { + GetSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ForceCutOverSchemaMigrationResponse message. + * Verifies a GetSchemaResponse message. * @function verify - * @memberof vtctldata.ForceCutOverSchemaMigrationResponse + * @memberof vtctldata.GetSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ForceCutOverSchemaMigrationResponse.verify = function verify(message) { + GetSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { - if (!$util.isObject(message.rows_affected_by_shard)) - return "rows_affected_by_shard: object expected"; - let key = Object.keys(message.rows_affected_by_shard); - for (let i = 0; i < key.length; ++i) - if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) - return "rows_affected_by_shard: integer|Long{k:string} expected"; + if (message.schema != null && message.hasOwnProperty("schema")) { + let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.schema); + if (error) + return "schema." + error; } return null; }; /** - * Creates a ForceCutOverSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ForceCutOverSchemaMigrationResponse + * @memberof vtctldata.GetSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ForceCutOverSchemaMigrationResponse} ForceCutOverSchemaMigrationResponse + * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse */ - ForceCutOverSchemaMigrationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ForceCutOverSchemaMigrationResponse) + GetSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSchemaResponse) return object; - let message = new $root.vtctldata.ForceCutOverSchemaMigrationResponse(); - if (object.rows_affected_by_shard) { - if (typeof object.rows_affected_by_shard !== "object") - throw TypeError(".vtctldata.ForceCutOverSchemaMigrationResponse.rows_affected_by_shard: object expected"); - message.rows_affected_by_shard = {}; - for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) - if ($util.Long) - (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; - else if (typeof object.rows_affected_by_shard[keys[i]] === "string") - message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); - else if (typeof object.rows_affected_by_shard[keys[i]] === "number") - message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; - else if (typeof object.rows_affected_by_shard[keys[i]] === "object") - message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); + let message = new $root.vtctldata.GetSchemaResponse(); + if (object.schema != null) { + if (typeof object.schema !== "object") + throw TypeError(".vtctldata.GetSchemaResponse.schema: object expected"); + message.schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.schema); } return message; }; /** - * Creates a plain object from a ForceCutOverSchemaMigrationResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ForceCutOverSchemaMigrationResponse + * @memberof vtctldata.GetSchemaResponse * @static - * @param {vtctldata.ForceCutOverSchemaMigrationResponse} message ForceCutOverSchemaMigrationResponse + * @param {vtctldata.GetSchemaResponse} message GetSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ForceCutOverSchemaMigrationResponse.toObject = function toObject(message, options) { + GetSchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.rows_affected_by_shard = {}; - let keys2; - if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { - object.rows_affected_by_shard = {}; - for (let j = 0; j < keys2.length; ++j) - if (typeof message.rows_affected_by_shard[keys2[j]] === "number") - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; - else - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; - } + if (options.defaults) + object.schema = null; + if (message.schema != null && message.hasOwnProperty("schema")) + object.schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.schema, options); return object; }; /** - * Converts this ForceCutOverSchemaMigrationResponse to JSON. + * Converts this GetSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.ForceCutOverSchemaMigrationResponse + * @memberof vtctldata.GetSchemaResponse * @instance * @returns {Object.} JSON object */ - ForceCutOverSchemaMigrationResponse.prototype.toJSON = function toJSON() { + GetSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ForceCutOverSchemaMigrationResponse + * Gets the default type url for GetSchemaResponse * @function getTypeUrl - * @memberof vtctldata.ForceCutOverSchemaMigrationResponse + * @memberof vtctldata.GetSchemaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ForceCutOverSchemaMigrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ForceCutOverSchemaMigrationResponse"; + return typeUrlPrefix + "/vtctldata.GetSchemaResponse"; }; - return ForceCutOverSchemaMigrationResponse; + return GetSchemaResponse; })(); - vtctldata.GetBackupsRequest = (function() { + vtctldata.GetSchemaMigrationsRequest = (function() { /** - * Properties of a GetBackupsRequest. + * Properties of a GetSchemaMigrationsRequest. * @memberof vtctldata - * @interface IGetBackupsRequest - * @property {string|null} [keyspace] GetBackupsRequest keyspace - * @property {string|null} [shard] GetBackupsRequest shard - * @property {number|null} [limit] GetBackupsRequest limit - * @property {boolean|null} [detailed] GetBackupsRequest detailed - * @property {number|null} [detailed_limit] GetBackupsRequest detailed_limit + * @interface IGetSchemaMigrationsRequest + * @property {string|null} [keyspace] GetSchemaMigrationsRequest keyspace + * @property {string|null} [uuid] GetSchemaMigrationsRequest uuid + * @property {string|null} [migration_context] GetSchemaMigrationsRequest migration_context + * @property {vtctldata.SchemaMigration.Status|null} [status] GetSchemaMigrationsRequest status + * @property {vttime.IDuration|null} [recent] GetSchemaMigrationsRequest recent + * @property {vtctldata.QueryOrdering|null} [order] GetSchemaMigrationsRequest order + * @property {number|Long|null} [limit] GetSchemaMigrationsRequest limit + * @property {number|Long|null} [skip] GetSchemaMigrationsRequest skip */ /** - * Constructs a new GetBackupsRequest. + * Constructs a new GetSchemaMigrationsRequest. * @memberof vtctldata - * @classdesc Represents a GetBackupsRequest. - * @implements IGetBackupsRequest + * @classdesc Represents a GetSchemaMigrationsRequest. + * @implements IGetSchemaMigrationsRequest * @constructor - * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set + * @param {vtctldata.IGetSchemaMigrationsRequest=} [properties] Properties to set */ - function GetBackupsRequest(properties) { + function GetSchemaMigrationsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -146983,110 +154136,140 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetBackupsRequest keyspace. + * GetSchemaMigrationsRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetSchemaMigrationsRequest * @instance */ - GetBackupsRequest.prototype.keyspace = ""; + GetSchemaMigrationsRequest.prototype.keyspace = ""; /** - * GetBackupsRequest shard. - * @member {string} shard - * @memberof vtctldata.GetBackupsRequest + * GetSchemaMigrationsRequest uuid. + * @member {string} uuid + * @memberof vtctldata.GetSchemaMigrationsRequest * @instance */ - GetBackupsRequest.prototype.shard = ""; + GetSchemaMigrationsRequest.prototype.uuid = ""; /** - * GetBackupsRequest limit. - * @member {number} limit - * @memberof vtctldata.GetBackupsRequest + * GetSchemaMigrationsRequest migration_context. + * @member {string} migration_context + * @memberof vtctldata.GetSchemaMigrationsRequest * @instance */ - GetBackupsRequest.prototype.limit = 0; + GetSchemaMigrationsRequest.prototype.migration_context = ""; /** - * GetBackupsRequest detailed. - * @member {boolean} detailed - * @memberof vtctldata.GetBackupsRequest + * GetSchemaMigrationsRequest status. + * @member {vtctldata.SchemaMigration.Status} status + * @memberof vtctldata.GetSchemaMigrationsRequest * @instance */ - GetBackupsRequest.prototype.detailed = false; + GetSchemaMigrationsRequest.prototype.status = 0; /** - * GetBackupsRequest detailed_limit. - * @member {number} detailed_limit - * @memberof vtctldata.GetBackupsRequest + * GetSchemaMigrationsRequest recent. + * @member {vttime.IDuration|null|undefined} recent + * @memberof vtctldata.GetSchemaMigrationsRequest * @instance */ - GetBackupsRequest.prototype.detailed_limit = 0; + GetSchemaMigrationsRequest.prototype.recent = null; /** - * Creates a new GetBackupsRequest instance using the specified properties. + * GetSchemaMigrationsRequest order. + * @member {vtctldata.QueryOrdering} order + * @memberof vtctldata.GetSchemaMigrationsRequest + * @instance + */ + GetSchemaMigrationsRequest.prototype.order = 0; + + /** + * GetSchemaMigrationsRequest limit. + * @member {number|Long} limit + * @memberof vtctldata.GetSchemaMigrationsRequest + * @instance + */ + GetSchemaMigrationsRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * GetSchemaMigrationsRequest skip. + * @member {number|Long} skip + * @memberof vtctldata.GetSchemaMigrationsRequest + * @instance + */ + GetSchemaMigrationsRequest.prototype.skip = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Creates a new GetSchemaMigrationsRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetSchemaMigrationsRequest * @static - * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set - * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest instance + * @param {vtctldata.IGetSchemaMigrationsRequest=} [properties] Properties to set + * @returns {vtctldata.GetSchemaMigrationsRequest} GetSchemaMigrationsRequest instance */ - GetBackupsRequest.create = function create(properties) { - return new GetBackupsRequest(properties); + GetSchemaMigrationsRequest.create = function create(properties) { + return new GetSchemaMigrationsRequest(properties); }; /** - * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * Encodes the specified GetSchemaMigrationsRequest message. Does not implicitly {@link vtctldata.GetSchemaMigrationsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetSchemaMigrationsRequest * @static - * @param {vtctldata.IGetBackupsRequest} message GetBackupsRequest message or plain object to encode + * @param {vtctldata.IGetSchemaMigrationsRequest} message GetSchemaMigrationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBackupsRequest.encode = function encode(message, writer) { + GetSchemaMigrationsRequest.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.uuid != null && Object.hasOwnProperty.call(message, "uuid")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); + if (message.migration_context != null && Object.hasOwnProperty.call(message, "migration_context")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.migration_context); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); + if (message.recent != null && Object.hasOwnProperty.call(message, "recent")) + $root.vttime.Duration.encode(message.recent, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.order != null && Object.hasOwnProperty.call(message, "order")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.order); if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); - if (message.detailed != null && Object.hasOwnProperty.call(message, "detailed")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.detailed); - if (message.detailed_limit != null && Object.hasOwnProperty.call(message, "detailed_limit")) - writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.detailed_limit); + writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.limit); + if (message.skip != null && Object.hasOwnProperty.call(message, "skip")) + writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.skip); return writer; }; /** - * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * Encodes the specified GetSchemaMigrationsRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaMigrationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetSchemaMigrationsRequest * @static - * @param {vtctldata.IGetBackupsRequest} message GetBackupsRequest message or plain object to encode + * @param {vtctldata.IGetSchemaMigrationsRequest} message GetSchemaMigrationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBackupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSchemaMigrationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBackupsRequest message from the specified reader or buffer. + * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetSchemaMigrationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest + * @returns {vtctldata.GetSchemaMigrationsRequest} GetSchemaMigrationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBackupsRequest.decode = function decode(reader, length) { + GetSchemaMigrationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetBackupsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaMigrationsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -147095,19 +154278,31 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 2: { - message.shard = reader.string(); + message.uuid = reader.string(); break; } case 3: { - message.limit = reader.uint32(); + message.migration_context = reader.string(); break; } case 4: { - message.detailed = reader.bool(); + message.status = reader.int32(); break; } case 5: { - message.detailed_limit = reader.uint32(); + message.recent = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + } + case 6: { + message.order = reader.int32(); + break; + } + case 7: { + message.limit = reader.uint64(); + break; + } + case 8: { + message.skip = reader.uint64(); break; } default: @@ -147119,156 +154314,286 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetSchemaMigrationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest + * @returns {vtctldata.GetSchemaMigrationsRequest} GetSchemaMigrationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBackupsRequest.decodeDelimited = function decodeDelimited(reader) { + GetSchemaMigrationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetBackupsRequest message. + * Verifies a GetSchemaMigrationsRequest message. * @function verify - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetSchemaMigrationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetBackupsRequest.verify = function verify(message) { + GetSchemaMigrationsRequest.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.uuid != null && message.hasOwnProperty("uuid")) + if (!$util.isString(message.uuid)) + return "uuid: string expected"; + if (message.migration_context != null && message.hasOwnProperty("migration_context")) + if (!$util.isString(message.migration_context)) + return "migration_context: string expected"; + if (message.status != null && message.hasOwnProperty("status")) + switch (message.status) { + default: + return "status: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.recent != null && message.hasOwnProperty("recent")) { + let error = $root.vttime.Duration.verify(message.recent); + if (error) + return "recent." + error; + } + if (message.order != null && message.hasOwnProperty("order")) + switch (message.order) { + default: + return "order: enum value expected"; + case 0: + case 1: + case 2: + break; + } if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.detailed != null && message.hasOwnProperty("detailed")) - if (typeof message.detailed !== "boolean") - return "detailed: boolean expected"; - if (message.detailed_limit != null && message.hasOwnProperty("detailed_limit")) - if (!$util.isInteger(message.detailed_limit)) - return "detailed_limit: integer expected"; + if (!$util.isInteger(message.limit) && !(message.limit && $util.isInteger(message.limit.low) && $util.isInteger(message.limit.high))) + return "limit: integer|Long expected"; + if (message.skip != null && message.hasOwnProperty("skip")) + if (!$util.isInteger(message.skip) && !(message.skip && $util.isInteger(message.skip.low) && $util.isInteger(message.skip.high))) + return "skip: integer|Long expected"; return null; }; /** - * Creates a GetBackupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaMigrationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetSchemaMigrationsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest + * @returns {vtctldata.GetSchemaMigrationsRequest} GetSchemaMigrationsRequest */ - GetBackupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetBackupsRequest) + GetSchemaMigrationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSchemaMigrationsRequest) return object; - let message = new $root.vtctldata.GetBackupsRequest(); + let message = new $root.vtctldata.GetSchemaMigrationsRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); + if (object.uuid != null) + message.uuid = String(object.uuid); + if (object.migration_context != null) + message.migration_context = String(object.migration_context); + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "UNKNOWN": + case 0: + message.status = 0; + break; + case "REQUESTED": + case 1: + message.status = 1; + break; + case "CANCELLED": + case 2: + message.status = 2; + break; + case "QUEUED": + case 3: + message.status = 3; + break; + case "READY": + case 4: + message.status = 4; + break; + case "RUNNING": + case 5: + message.status = 5; + break; + case "COMPLETE": + case 6: + message.status = 6; + break; + case "FAILED": + case 7: + message.status = 7; + break; + } + if (object.recent != null) { + if (typeof object.recent !== "object") + throw TypeError(".vtctldata.GetSchemaMigrationsRequest.recent: object expected"); + message.recent = $root.vttime.Duration.fromObject(object.recent); + } + switch (object.order) { + default: + if (typeof object.order === "number") { + message.order = object.order; + break; + } + break; + case "NONE": + case 0: + message.order = 0; + break; + case "ASCENDING": + case 1: + message.order = 1; + break; + case "DESCENDING": + case 2: + message.order = 2; + break; + } if (object.limit != null) - message.limit = object.limit >>> 0; - if (object.detailed != null) - message.detailed = Boolean(object.detailed); - if (object.detailed_limit != null) - message.detailed_limit = object.detailed_limit >>> 0; + if ($util.Long) + (message.limit = $util.Long.fromValue(object.limit)).unsigned = true; + else if (typeof object.limit === "string") + message.limit = parseInt(object.limit, 10); + else if (typeof object.limit === "number") + message.limit = object.limit; + else if (typeof object.limit === "object") + message.limit = new $util.LongBits(object.limit.low >>> 0, object.limit.high >>> 0).toNumber(true); + if (object.skip != null) + if ($util.Long) + (message.skip = $util.Long.fromValue(object.skip)).unsigned = true; + else if (typeof object.skip === "string") + message.skip = parseInt(object.skip, 10); + else if (typeof object.skip === "number") + message.skip = object.skip; + else if (typeof object.skip === "object") + message.skip = new $util.LongBits(object.skip.low >>> 0, object.skip.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a GetBackupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSchemaMigrationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetSchemaMigrationsRequest * @static - * @param {vtctldata.GetBackupsRequest} message GetBackupsRequest + * @param {vtctldata.GetSchemaMigrationsRequest} message GetSchemaMigrationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBackupsRequest.toObject = function toObject(message, options) { + GetSchemaMigrationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.keyspace = ""; - object.shard = ""; - object.limit = 0; - object.detailed = false; - object.detailed_limit = 0; + object.uuid = ""; + object.migration_context = ""; + object.status = options.enums === String ? "UNKNOWN" : 0; + object.recent = null; + object.order = options.enums === String ? "NONE" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.limit = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.skip = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.skip = options.longs === String ? "0" : 0; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; + if (message.uuid != null && message.hasOwnProperty("uuid")) + object.uuid = message.uuid; + if (message.migration_context != null && message.hasOwnProperty("migration_context")) + object.migration_context = message.migration_context; + if (message.status != null && message.hasOwnProperty("status")) + object.status = options.enums === String ? $root.vtctldata.SchemaMigration.Status[message.status] === undefined ? message.status : $root.vtctldata.SchemaMigration.Status[message.status] : message.status; + if (message.recent != null && message.hasOwnProperty("recent")) + object.recent = $root.vttime.Duration.toObject(message.recent, options); + if (message.order != null && message.hasOwnProperty("order")) + object.order = options.enums === String ? $root.vtctldata.QueryOrdering[message.order] === undefined ? message.order : $root.vtctldata.QueryOrdering[message.order] : message.order; if (message.limit != null && message.hasOwnProperty("limit")) - object.limit = message.limit; - if (message.detailed != null && message.hasOwnProperty("detailed")) - object.detailed = message.detailed; - if (message.detailed_limit != null && message.hasOwnProperty("detailed_limit")) - object.detailed_limit = message.detailed_limit; + if (typeof message.limit === "number") + object.limit = options.longs === String ? String(message.limit) : message.limit; + else + object.limit = options.longs === String ? $util.Long.prototype.toString.call(message.limit) : options.longs === Number ? new $util.LongBits(message.limit.low >>> 0, message.limit.high >>> 0).toNumber(true) : message.limit; + if (message.skip != null && message.hasOwnProperty("skip")) + if (typeof message.skip === "number") + object.skip = options.longs === String ? String(message.skip) : message.skip; + else + object.skip = options.longs === String ? $util.Long.prototype.toString.call(message.skip) : options.longs === Number ? new $util.LongBits(message.skip.low >>> 0, message.skip.high >>> 0).toNumber(true) : message.skip; return object; }; /** - * Converts this GetBackupsRequest to JSON. + * Converts this GetSchemaMigrationsRequest to JSON. * @function toJSON - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetSchemaMigrationsRequest * @instance * @returns {Object.} JSON object */ - GetBackupsRequest.prototype.toJSON = function toJSON() { + GetSchemaMigrationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetBackupsRequest + * Gets the default type url for GetSchemaMigrationsRequest * @function getTypeUrl - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetSchemaMigrationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetBackupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSchemaMigrationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetBackupsRequest"; + return typeUrlPrefix + "/vtctldata.GetSchemaMigrationsRequest"; }; - return GetBackupsRequest; + return GetSchemaMigrationsRequest; })(); - vtctldata.GetBackupsResponse = (function() { + vtctldata.GetSchemaMigrationsResponse = (function() { /** - * Properties of a GetBackupsResponse. + * Properties of a GetSchemaMigrationsResponse. * @memberof vtctldata - * @interface IGetBackupsResponse - * @property {Array.|null} [backups] GetBackupsResponse backups + * @interface IGetSchemaMigrationsResponse + * @property {Array.|null} [migrations] GetSchemaMigrationsResponse migrations */ /** - * Constructs a new GetBackupsResponse. + * Constructs a new GetSchemaMigrationsResponse. * @memberof vtctldata - * @classdesc Represents a GetBackupsResponse. - * @implements IGetBackupsResponse + * @classdesc Represents a GetSchemaMigrationsResponse. + * @implements IGetSchemaMigrationsResponse * @constructor - * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set + * @param {vtctldata.IGetSchemaMigrationsResponse=} [properties] Properties to set */ - function GetBackupsResponse(properties) { - this.backups = []; + function GetSchemaMigrationsResponse(properties) { + this.migrations = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -147276,78 +154601,78 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetBackupsResponse backups. - * @member {Array.} backups - * @memberof vtctldata.GetBackupsResponse + * GetSchemaMigrationsResponse migrations. + * @member {Array.} migrations + * @memberof vtctldata.GetSchemaMigrationsResponse * @instance */ - GetBackupsResponse.prototype.backups = $util.emptyArray; + GetSchemaMigrationsResponse.prototype.migrations = $util.emptyArray; /** - * Creates a new GetBackupsResponse instance using the specified properties. + * Creates a new GetSchemaMigrationsResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetSchemaMigrationsResponse * @static - * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set - * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse instance + * @param {vtctldata.IGetSchemaMigrationsResponse=} [properties] Properties to set + * @returns {vtctldata.GetSchemaMigrationsResponse} GetSchemaMigrationsResponse instance */ - GetBackupsResponse.create = function create(properties) { - return new GetBackupsResponse(properties); + GetSchemaMigrationsResponse.create = function create(properties) { + return new GetSchemaMigrationsResponse(properties); }; /** - * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * Encodes the specified GetSchemaMigrationsResponse message. Does not implicitly {@link vtctldata.GetSchemaMigrationsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetSchemaMigrationsResponse * @static - * @param {vtctldata.IGetBackupsResponse} message GetBackupsResponse message or plain object to encode + * @param {vtctldata.IGetSchemaMigrationsResponse} message GetSchemaMigrationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBackupsResponse.encode = function encode(message, writer) { + GetSchemaMigrationsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.backups != null && message.backups.length) - for (let i = 0; i < message.backups.length; ++i) - $root.mysqlctl.BackupInfo.encode(message.backups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.migrations != null && message.migrations.length) + for (let i = 0; i < message.migrations.length; ++i) + $root.vtctldata.SchemaMigration.encode(message.migrations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * Encodes the specified GetSchemaMigrationsResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaMigrationsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetSchemaMigrationsResponse * @static - * @param {vtctldata.IGetBackupsResponse} message GetBackupsResponse message or plain object to encode + * @param {vtctldata.IGetSchemaMigrationsResponse} message GetSchemaMigrationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBackupsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSchemaMigrationsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBackupsResponse message from the specified reader or buffer. + * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetSchemaMigrationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse + * @returns {vtctldata.GetSchemaMigrationsResponse} GetSchemaMigrationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBackupsResponse.decode = function decode(reader, length) { + GetSchemaMigrationsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetBackupsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaMigrationsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.backups && message.backups.length)) - message.backups = []; - message.backups.push($root.mysqlctl.BackupInfo.decode(reader, reader.uint32())); + if (!(message.migrations && message.migrations.length)) + message.migrations = []; + message.migrations.push($root.vtctldata.SchemaMigration.decode(reader, reader.uint32())); break; } default: @@ -147359,139 +154684,142 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetSchemaMigrationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse + * @returns {vtctldata.GetSchemaMigrationsResponse} GetSchemaMigrationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBackupsResponse.decodeDelimited = function decodeDelimited(reader) { + GetSchemaMigrationsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetBackupsResponse message. + * Verifies a GetSchemaMigrationsResponse message. * @function verify - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetSchemaMigrationsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetBackupsResponse.verify = function verify(message) { + GetSchemaMigrationsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.backups != null && message.hasOwnProperty("backups")) { - if (!Array.isArray(message.backups)) - return "backups: array expected"; - for (let i = 0; i < message.backups.length; ++i) { - let error = $root.mysqlctl.BackupInfo.verify(message.backups[i]); + if (message.migrations != null && message.hasOwnProperty("migrations")) { + if (!Array.isArray(message.migrations)) + return "migrations: array expected"; + for (let i = 0; i < message.migrations.length; ++i) { + let error = $root.vtctldata.SchemaMigration.verify(message.migrations[i]); if (error) - return "backups." + error; + return "migrations." + error; } } return null; }; /** - * Creates a GetBackupsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaMigrationsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetSchemaMigrationsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse + * @returns {vtctldata.GetSchemaMigrationsResponse} GetSchemaMigrationsResponse */ - GetBackupsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetBackupsResponse) + GetSchemaMigrationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSchemaMigrationsResponse) return object; - let message = new $root.vtctldata.GetBackupsResponse(); - if (object.backups) { - if (!Array.isArray(object.backups)) - throw TypeError(".vtctldata.GetBackupsResponse.backups: array expected"); - message.backups = []; - for (let i = 0; i < object.backups.length; ++i) { - if (typeof object.backups[i] !== "object") - throw TypeError(".vtctldata.GetBackupsResponse.backups: object expected"); - message.backups[i] = $root.mysqlctl.BackupInfo.fromObject(object.backups[i]); + let message = new $root.vtctldata.GetSchemaMigrationsResponse(); + if (object.migrations) { + if (!Array.isArray(object.migrations)) + throw TypeError(".vtctldata.GetSchemaMigrationsResponse.migrations: array expected"); + message.migrations = []; + for (let i = 0; i < object.migrations.length; ++i) { + if (typeof object.migrations[i] !== "object") + throw TypeError(".vtctldata.GetSchemaMigrationsResponse.migrations: object expected"); + message.migrations[i] = $root.vtctldata.SchemaMigration.fromObject(object.migrations[i]); } } return message; }; /** - * Creates a plain object from a GetBackupsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetSchemaMigrationsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetSchemaMigrationsResponse * @static - * @param {vtctldata.GetBackupsResponse} message GetBackupsResponse + * @param {vtctldata.GetSchemaMigrationsResponse} message GetSchemaMigrationsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBackupsResponse.toObject = function toObject(message, options) { + GetSchemaMigrationsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.backups = []; - if (message.backups && message.backups.length) { - object.backups = []; - for (let j = 0; j < message.backups.length; ++j) - object.backups[j] = $root.mysqlctl.BackupInfo.toObject(message.backups[j], options); + object.migrations = []; + if (message.migrations && message.migrations.length) { + object.migrations = []; + for (let j = 0; j < message.migrations.length; ++j) + object.migrations[j] = $root.vtctldata.SchemaMigration.toObject(message.migrations[j], options); } return object; }; /** - * Converts this GetBackupsResponse to JSON. + * Converts this GetSchemaMigrationsResponse to JSON. * @function toJSON - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetSchemaMigrationsResponse * @instance * @returns {Object.} JSON object */ - GetBackupsResponse.prototype.toJSON = function toJSON() { + GetSchemaMigrationsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetBackupsResponse + * Gets the default type url for GetSchemaMigrationsResponse * @function getTypeUrl - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetSchemaMigrationsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetBackupsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSchemaMigrationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetBackupsResponse"; + return typeUrlPrefix + "/vtctldata.GetSchemaMigrationsResponse"; }; - return GetBackupsResponse; + return GetSchemaMigrationsResponse; })(); - vtctldata.GetCellInfoRequest = (function() { + vtctldata.GetShardReplicationRequest = (function() { /** - * Properties of a GetCellInfoRequest. + * Properties of a GetShardReplicationRequest. * @memberof vtctldata - * @interface IGetCellInfoRequest - * @property {string|null} [cell] GetCellInfoRequest cell + * @interface IGetShardReplicationRequest + * @property {string|null} [keyspace] GetShardReplicationRequest keyspace + * @property {string|null} [shard] GetShardReplicationRequest shard + * @property {Array.|null} [cells] GetShardReplicationRequest cells */ /** - * Constructs a new GetCellInfoRequest. + * Constructs a new GetShardReplicationRequest. * @memberof vtctldata - * @classdesc Represents a GetCellInfoRequest. - * @implements IGetCellInfoRequest + * @classdesc Represents a GetShardReplicationRequest. + * @implements IGetShardReplicationRequest * @constructor - * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set + * @param {vtctldata.IGetShardReplicationRequest=} [properties] Properties to set */ - function GetCellInfoRequest(properties) { + function GetShardReplicationRequest(properties) { + this.cells = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -147499,75 +154827,106 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetCellInfoRequest cell. - * @member {string} cell - * @memberof vtctldata.GetCellInfoRequest + * GetShardReplicationRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.GetShardReplicationRequest * @instance */ - GetCellInfoRequest.prototype.cell = ""; + GetShardReplicationRequest.prototype.keyspace = ""; /** - * Creates a new GetCellInfoRequest instance using the specified properties. + * GetShardReplicationRequest shard. + * @member {string} shard + * @memberof vtctldata.GetShardReplicationRequest + * @instance + */ + GetShardReplicationRequest.prototype.shard = ""; + + /** + * GetShardReplicationRequest cells. + * @member {Array.} cells + * @memberof vtctldata.GetShardReplicationRequest + * @instance + */ + GetShardReplicationRequest.prototype.cells = $util.emptyArray; + + /** + * Creates a new GetShardReplicationRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetShardReplicationRequest * @static - * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest instance + * @param {vtctldata.IGetShardReplicationRequest=} [properties] Properties to set + * @returns {vtctldata.GetShardReplicationRequest} GetShardReplicationRequest instance */ - GetCellInfoRequest.create = function create(properties) { - return new GetCellInfoRequest(properties); + GetShardReplicationRequest.create = function create(properties) { + return new GetShardReplicationRequest(properties); }; /** - * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * Encodes the specified GetShardReplicationRequest message. Does not implicitly {@link vtctldata.GetShardReplicationRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetShardReplicationRequest * @static - * @param {vtctldata.IGetCellInfoRequest} message GetCellInfoRequest message or plain object to encode + * @param {vtctldata.IGetShardReplicationRequest} message GetShardReplicationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoRequest.encode = function encode(message, writer) { + GetShardReplicationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); + 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.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); return writer; }; /** - * Encodes the specified GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * Encodes the specified GetShardReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardReplicationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetShardReplicationRequest * @static - * @param {vtctldata.IGetCellInfoRequest} message GetCellInfoRequest message or plain object to encode + * @param {vtctldata.IGetShardReplicationRequest} message GetShardReplicationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetShardReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoRequest message from the specified reader or buffer. + * Decodes a GetShardReplicationRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetShardReplicationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest + * @returns {vtctldata.GetShardReplicationRequest} GetShardReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoRequest.decode = function decode(reader, length) { + GetShardReplicationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardReplicationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.cell = reader.string(); + message.keyspace = reader.string(); + break; + } + case 2: { + message.shard = reader.string(); + break; + } + case 3: { + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; } default: @@ -147579,122 +154938,153 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetCellInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a GetShardReplicationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetShardReplicationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest + * @returns {vtctldata.GetShardReplicationRequest} GetShardReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { + GetShardReplicationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCellInfoRequest message. + * Verifies a GetShardReplicationRequest message. * @function verify - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetShardReplicationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCellInfoRequest.verify = function verify(message) { + GetShardReplicationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } return null; }; /** - * Creates a GetCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardReplicationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetShardReplicationRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest + * @returns {vtctldata.GetShardReplicationRequest} GetShardReplicationRequest */ - GetCellInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoRequest) + GetShardReplicationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetShardReplicationRequest) return object; - let message = new $root.vtctldata.GetCellInfoRequest(); - if (object.cell != null) - message.cell = String(object.cell); + let message = new $root.vtctldata.GetShardReplicationRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.GetShardReplicationRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } return message; }; /** - * Creates a plain object from a GetCellInfoRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetShardReplicationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetShardReplicationRequest * @static - * @param {vtctldata.GetCellInfoRequest} message GetCellInfoRequest + * @param {vtctldata.GetShardReplicationRequest} message GetShardReplicationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoRequest.toObject = function toObject(message, options) { + GetShardReplicationRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.cell = ""; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; + if (options.arrays || options.defaults) + object.cells = []; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } return object; }; /** - * Converts this GetCellInfoRequest to JSON. + * Converts this GetShardReplicationRequest to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetShardReplicationRequest * @instance * @returns {Object.} JSON object */ - GetCellInfoRequest.prototype.toJSON = function toJSON() { + GetShardReplicationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetCellInfoRequest + * Gets the default type url for GetShardReplicationRequest * @function getTypeUrl - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetShardReplicationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetCellInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetShardReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetCellInfoRequest"; + return typeUrlPrefix + "/vtctldata.GetShardReplicationRequest"; }; - return GetCellInfoRequest; + return GetShardReplicationRequest; })(); - vtctldata.GetCellInfoResponse = (function() { + vtctldata.GetShardReplicationResponse = (function() { /** - * Properties of a GetCellInfoResponse. + * Properties of a GetShardReplicationResponse. * @memberof vtctldata - * @interface IGetCellInfoResponse - * @property {topodata.ICellInfo|null} [cell_info] GetCellInfoResponse cell_info + * @interface IGetShardReplicationResponse + * @property {Object.|null} [shard_replication_by_cell] GetShardReplicationResponse shard_replication_by_cell */ /** - * Constructs a new GetCellInfoResponse. + * Constructs a new GetShardReplicationResponse. * @memberof vtctldata - * @classdesc Represents a GetCellInfoResponse. - * @implements IGetCellInfoResponse + * @classdesc Represents a GetShardReplicationResponse. + * @implements IGetShardReplicationResponse * @constructor - * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set + * @param {vtctldata.IGetShardReplicationResponse=} [properties] Properties to set */ - function GetCellInfoResponse(properties) { + function GetShardReplicationResponse(properties) { + this.shard_replication_by_cell = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -147702,75 +155092,97 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetCellInfoResponse cell_info. - * @member {topodata.ICellInfo|null|undefined} cell_info - * @memberof vtctldata.GetCellInfoResponse + * GetShardReplicationResponse shard_replication_by_cell. + * @member {Object.} shard_replication_by_cell + * @memberof vtctldata.GetShardReplicationResponse * @instance */ - GetCellInfoResponse.prototype.cell_info = null; + GetShardReplicationResponse.prototype.shard_replication_by_cell = $util.emptyObject; /** - * Creates a new GetCellInfoResponse instance using the specified properties. + * Creates a new GetShardReplicationResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetShardReplicationResponse * @static - * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse instance + * @param {vtctldata.IGetShardReplicationResponse=} [properties] Properties to set + * @returns {vtctldata.GetShardReplicationResponse} GetShardReplicationResponse instance */ - GetCellInfoResponse.create = function create(properties) { - return new GetCellInfoResponse(properties); + GetShardReplicationResponse.create = function create(properties) { + return new GetShardReplicationResponse(properties); }; /** - * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * Encodes the specified GetShardReplicationResponse message. Does not implicitly {@link vtctldata.GetShardReplicationResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetShardReplicationResponse * @static - * @param {vtctldata.IGetCellInfoResponse} message GetCellInfoResponse message or plain object to encode + * @param {vtctldata.IGetShardReplicationResponse} message GetShardReplicationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoResponse.encode = function encode(message, writer) { + GetShardReplicationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cell_info != null && Object.hasOwnProperty.call(message, "cell_info")) - $root.topodata.CellInfo.encode(message.cell_info, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.shard_replication_by_cell != null && Object.hasOwnProperty.call(message, "shard_replication_by_cell")) + for (let keys = Object.keys(message.shard_replication_by_cell), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.topodata.ShardReplication.encode(message.shard_replication_by_cell[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * Encodes the specified GetShardReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardReplicationResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetShardReplicationResponse * @static - * @param {vtctldata.IGetCellInfoResponse} message GetCellInfoResponse message or plain object to encode + * @param {vtctldata.IGetShardReplicationResponse} message GetShardReplicationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetShardReplicationResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoResponse message from the specified reader or buffer. + * Decodes a GetShardReplicationResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetShardReplicationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse + * @returns {vtctldata.GetShardReplicationResponse} GetShardReplicationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoResponse.decode = function decode(reader, length) { + GetShardReplicationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardReplicationResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); + if (message.shard_replication_by_cell === $util.emptyObject) + message.shard_replication_by_cell = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.topodata.ShardReplication.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.shard_replication_by_cell[key] = value; break; } default: @@ -147782,126 +155194,142 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetCellInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a GetShardReplicationResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetShardReplicationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse + * @returns {vtctldata.GetShardReplicationResponse} GetShardReplicationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { + GetShardReplicationResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCellInfoResponse message. + * Verifies a GetShardReplicationResponse message. * @function verify - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetShardReplicationResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCellInfoResponse.verify = function verify(message) { + GetShardReplicationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cell_info != null && message.hasOwnProperty("cell_info")) { - let error = $root.topodata.CellInfo.verify(message.cell_info); - if (error) - return "cell_info." + error; + if (message.shard_replication_by_cell != null && message.hasOwnProperty("shard_replication_by_cell")) { + if (!$util.isObject(message.shard_replication_by_cell)) + return "shard_replication_by_cell: object expected"; + let key = Object.keys(message.shard_replication_by_cell); + for (let i = 0; i < key.length; ++i) { + let error = $root.topodata.ShardReplication.verify(message.shard_replication_by_cell[key[i]]); + if (error) + return "shard_replication_by_cell." + error; + } } return null; }; /** - * Creates a GetCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardReplicationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetShardReplicationResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse + * @returns {vtctldata.GetShardReplicationResponse} GetShardReplicationResponse */ - GetCellInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoResponse) + GetShardReplicationResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetShardReplicationResponse) return object; - let message = new $root.vtctldata.GetCellInfoResponse(); - if (object.cell_info != null) { - if (typeof object.cell_info !== "object") - throw TypeError(".vtctldata.GetCellInfoResponse.cell_info: object expected"); - message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); + let message = new $root.vtctldata.GetShardReplicationResponse(); + if (object.shard_replication_by_cell) { + if (typeof object.shard_replication_by_cell !== "object") + throw TypeError(".vtctldata.GetShardReplicationResponse.shard_replication_by_cell: object expected"); + message.shard_replication_by_cell = {}; + for (let keys = Object.keys(object.shard_replication_by_cell), i = 0; i < keys.length; ++i) { + if (typeof object.shard_replication_by_cell[keys[i]] !== "object") + throw TypeError(".vtctldata.GetShardReplicationResponse.shard_replication_by_cell: object expected"); + message.shard_replication_by_cell[keys[i]] = $root.topodata.ShardReplication.fromObject(object.shard_replication_by_cell[keys[i]]); + } } return message; }; /** - * Creates a plain object from a GetCellInfoResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetShardReplicationResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetShardReplicationResponse * @static - * @param {vtctldata.GetCellInfoResponse} message GetCellInfoResponse + * @param {vtctldata.GetShardReplicationResponse} message GetShardReplicationResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoResponse.toObject = function toObject(message, options) { + GetShardReplicationResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.cell_info = null; - if (message.cell_info != null && message.hasOwnProperty("cell_info")) - object.cell_info = $root.topodata.CellInfo.toObject(message.cell_info, options); + if (options.objects || options.defaults) + object.shard_replication_by_cell = {}; + let keys2; + if (message.shard_replication_by_cell && (keys2 = Object.keys(message.shard_replication_by_cell)).length) { + object.shard_replication_by_cell = {}; + for (let j = 0; j < keys2.length; ++j) + object.shard_replication_by_cell[keys2[j]] = $root.topodata.ShardReplication.toObject(message.shard_replication_by_cell[keys2[j]], options); + } return object; }; /** - * Converts this GetCellInfoResponse to JSON. + * Converts this GetShardReplicationResponse to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetShardReplicationResponse * @instance * @returns {Object.} JSON object */ - GetCellInfoResponse.prototype.toJSON = function toJSON() { + GetShardReplicationResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetCellInfoResponse + * Gets the default type url for GetShardReplicationResponse * @function getTypeUrl - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetShardReplicationResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetCellInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetShardReplicationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetCellInfoResponse"; + return typeUrlPrefix + "/vtctldata.GetShardReplicationResponse"; }; - return GetCellInfoResponse; + return GetShardReplicationResponse; })(); - vtctldata.GetCellInfoNamesRequest = (function() { + vtctldata.GetShardRequest = (function() { /** - * Properties of a GetCellInfoNamesRequest. + * Properties of a GetShardRequest. * @memberof vtctldata - * @interface IGetCellInfoNamesRequest + * @interface IGetShardRequest + * @property {string|null} [keyspace] GetShardRequest keyspace + * @property {string|null} [shard_name] GetShardRequest shard_name */ /** - * Constructs a new GetCellInfoNamesRequest. + * Constructs a new GetShardRequest. * @memberof vtctldata - * @classdesc Represents a GetCellInfoNamesRequest. - * @implements IGetCellInfoNamesRequest + * @classdesc Represents a GetShardRequest. + * @implements IGetShardRequest * @constructor - * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set + * @param {vtctldata.IGetShardRequest=} [properties] Properties to set */ - function GetCellInfoNamesRequest(properties) { + function GetShardRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -147909,63 +155337,91 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new GetCellInfoNamesRequest instance using the specified properties. + * GetShardRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.GetShardRequest + * @instance + */ + GetShardRequest.prototype.keyspace = ""; + + /** + * GetShardRequest shard_name. + * @member {string} shard_name + * @memberof vtctldata.GetShardRequest + * @instance + */ + GetShardRequest.prototype.shard_name = ""; + + /** + * Creates a new GetShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetShardRequest * @static - * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest instance + * @param {vtctldata.IGetShardRequest=} [properties] Properties to set + * @returns {vtctldata.GetShardRequest} GetShardRequest instance */ - GetCellInfoNamesRequest.create = function create(properties) { - return new GetCellInfoNamesRequest(properties); + GetShardRequest.create = function create(properties) { + return new GetShardRequest(properties); }; /** - * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetShardRequest * @static - * @param {vtctldata.IGetCellInfoNamesRequest} message GetCellInfoNamesRequest message or plain object to encode + * @param {vtctldata.IGetShardRequest} message GetShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoNamesRequest.encode = function encode(message, writer) { + GetShardRequest.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_name != null && Object.hasOwnProperty.call(message, "shard_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard_name); return writer; }; /** - * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * Encodes the specified GetShardRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetShardRequest * @static - * @param {vtctldata.IGetCellInfoNamesRequest} message GetCellInfoNamesRequest message or plain object to encode + * @param {vtctldata.IGetShardRequest} message GetShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoNamesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. + * Decodes a GetShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest + * @returns {vtctldata.GetShardRequest} GetShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoNamesRequest.decode = function decode(reader, length) { + GetShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoNamesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.keyspace = reader.string(); + break; + } + case 2: { + message.shard_name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -147975,110 +155431,131 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest + * @returns {vtctldata.GetShardRequest} GetShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoNamesRequest.decodeDelimited = function decodeDelimited(reader) { + GetShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCellInfoNamesRequest message. + * Verifies a GetShardRequest message. * @function verify - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetShardRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCellInfoNamesRequest.verify = function verify(message) { + GetShardRequest.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_name != null && message.hasOwnProperty("shard_name")) + if (!$util.isString(message.shard_name)) + return "shard_name: string expected"; return null; }; /** - * Creates a GetCellInfoNamesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest + * @returns {vtctldata.GetShardRequest} GetShardRequest */ - GetCellInfoNamesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoNamesRequest) + GetShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetShardRequest) return object; - return new $root.vtctldata.GetCellInfoNamesRequest(); + let message = new $root.vtctldata.GetShardRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard_name != null) + message.shard_name = String(object.shard_name); + return message; }; /** - * Creates a plain object from a GetCellInfoNamesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetShardRequest * @static - * @param {vtctldata.GetCellInfoNamesRequest} message GetCellInfoNamesRequest + * @param {vtctldata.GetShardRequest} message GetShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoNamesRequest.toObject = function toObject() { - return {}; + GetShardRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.keyspace = ""; + object.shard_name = ""; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard_name != null && message.hasOwnProperty("shard_name")) + object.shard_name = message.shard_name; + return object; }; /** - * Converts this GetCellInfoNamesRequest to JSON. + * Converts this GetShardRequest to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetShardRequest * @instance * @returns {Object.} JSON object */ - GetCellInfoNamesRequest.prototype.toJSON = function toJSON() { + GetShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetCellInfoNamesRequest + * Gets the default type url for GetShardRequest * @function getTypeUrl - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetShardRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetCellInfoNamesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetCellInfoNamesRequest"; + return typeUrlPrefix + "/vtctldata.GetShardRequest"; }; - return GetCellInfoNamesRequest; + return GetShardRequest; })(); - vtctldata.GetCellInfoNamesResponse = (function() { + vtctldata.GetShardResponse = (function() { /** - * Properties of a GetCellInfoNamesResponse. + * Properties of a GetShardResponse. * @memberof vtctldata - * @interface IGetCellInfoNamesResponse - * @property {Array.|null} [names] GetCellInfoNamesResponse names + * @interface IGetShardResponse + * @property {vtctldata.IShard|null} [shard] GetShardResponse shard */ /** - * Constructs a new GetCellInfoNamesResponse. + * Constructs a new GetShardResponse. * @memberof vtctldata - * @classdesc Represents a GetCellInfoNamesResponse. - * @implements IGetCellInfoNamesResponse + * @classdesc Represents a GetShardResponse. + * @implements IGetShardResponse * @constructor - * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set + * @param {vtctldata.IGetShardResponse=} [properties] Properties to set */ - function GetCellInfoNamesResponse(properties) { - this.names = []; + function GetShardResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -148086,78 +155563,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetCellInfoNamesResponse names. - * @member {Array.} names - * @memberof vtctldata.GetCellInfoNamesResponse + * GetShardResponse shard. + * @member {vtctldata.IShard|null|undefined} shard + * @memberof vtctldata.GetShardResponse * @instance */ - GetCellInfoNamesResponse.prototype.names = $util.emptyArray; + GetShardResponse.prototype.shard = null; /** - * Creates a new GetCellInfoNamesResponse instance using the specified properties. + * Creates a new GetShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse instance + * @param {vtctldata.IGetShardResponse=} [properties] Properties to set + * @returns {vtctldata.GetShardResponse} GetShardResponse instance */ - GetCellInfoNamesResponse.create = function create(properties) { - return new GetCellInfoNamesResponse(properties); + GetShardResponse.create = function create(properties) { + return new GetShardResponse(properties); }; /** - * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.IGetCellInfoNamesResponse} message GetCellInfoNamesResponse message or plain object to encode + * @param {vtctldata.IGetShardResponse} message GetShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoNamesResponse.encode = function encode(message, writer) { + GetShardResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.names != null && message.names.length) - for (let i = 0; i < message.names.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + $root.vtctldata.Shard.encode(message.shard, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * Encodes the specified GetShardResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.IGetCellInfoNamesResponse} message GetCellInfoNamesResponse message or plain object to encode + * @param {vtctldata.IGetShardResponse} message GetShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoNamesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. + * Decodes a GetShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse + * @returns {vtctldata.GetShardResponse} GetShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoNamesResponse.decode = function decode(reader, length) { + GetShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoNamesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); + message.shard = $root.vtctldata.Shard.decode(reader, reader.uint32()); break; } default: @@ -148169,133 +155643,126 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetShardResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse + * @returns {vtctldata.GetShardResponse} GetShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoNamesResponse.decodeDelimited = function decodeDelimited(reader) { + GetShardResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCellInfoNamesResponse message. + * Verifies a GetShardResponse message. * @function verify - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetShardResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCellInfoNamesResponse.verify = function verify(message) { + GetShardResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (let i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; + if (message.shard != null && message.hasOwnProperty("shard")) { + let error = $root.vtctldata.Shard.verify(message.shard); + if (error) + return "shard." + error; } return null; }; /** - * Creates a GetCellInfoNamesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse + * @returns {vtctldata.GetShardResponse} GetShardResponse */ - GetCellInfoNamesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoNamesResponse) + GetShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetShardResponse) return object; - let message = new $root.vtctldata.GetCellInfoNamesResponse(); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".vtctldata.GetCellInfoNamesResponse.names: array expected"); - message.names = []; - for (let i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); + let message = new $root.vtctldata.GetShardResponse(); + if (object.shard != null) { + if (typeof object.shard !== "object") + throw TypeError(".vtctldata.GetShardResponse.shard: object expected"); + message.shard = $root.vtctldata.Shard.fromObject(object.shard); } return message; }; /** - * Creates a plain object from a GetCellInfoNamesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetShardResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.GetCellInfoNamesResponse} message GetCellInfoNamesResponse + * @param {vtctldata.GetShardResponse} message GetShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoNamesResponse.toObject = function toObject(message, options) { + GetShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.names = []; - if (message.names && message.names.length) { - object.names = []; - for (let j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; - } + if (options.defaults) + object.shard = null; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = $root.vtctldata.Shard.toObject(message.shard, options); return object; }; /** - * Converts this GetCellInfoNamesResponse to JSON. + * Converts this GetShardResponse to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetShardResponse * @instance * @returns {Object.} JSON object */ - GetCellInfoNamesResponse.prototype.toJSON = function toJSON() { + GetShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetCellInfoNamesResponse + * Gets the default type url for GetShardResponse * @function getTypeUrl - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetShardResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetCellInfoNamesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetCellInfoNamesResponse"; + return typeUrlPrefix + "/vtctldata.GetShardResponse"; }; - return GetCellInfoNamesResponse; + return GetShardResponse; })(); - vtctldata.GetCellsAliasesRequest = (function() { + vtctldata.GetShardRoutingRulesRequest = (function() { /** - * Properties of a GetCellsAliasesRequest. + * Properties of a GetShardRoutingRulesRequest. * @memberof vtctldata - * @interface IGetCellsAliasesRequest + * @interface IGetShardRoutingRulesRequest */ /** - * Constructs a new GetCellsAliasesRequest. + * Constructs a new GetShardRoutingRulesRequest. * @memberof vtctldata - * @classdesc Represents a GetCellsAliasesRequest. - * @implements IGetCellsAliasesRequest + * @classdesc Represents a GetShardRoutingRulesRequest. + * @implements IGetShardRoutingRulesRequest * @constructor - * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set + * @param {vtctldata.IGetShardRoutingRulesRequest=} [properties] Properties to set */ - function GetCellsAliasesRequest(properties) { + function GetShardRoutingRulesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -148303,60 +155770,60 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new GetCellsAliasesRequest instance using the specified properties. + * Creates a new GetShardRoutingRulesRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetShardRoutingRulesRequest * @static - * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set - * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest instance + * @param {vtctldata.IGetShardRoutingRulesRequest=} [properties] Properties to set + * @returns {vtctldata.GetShardRoutingRulesRequest} GetShardRoutingRulesRequest instance */ - GetCellsAliasesRequest.create = function create(properties) { - return new GetCellsAliasesRequest(properties); + GetShardRoutingRulesRequest.create = function create(properties) { + return new GetShardRoutingRulesRequest(properties); }; /** - * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * Encodes the specified GetShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetShardRoutingRulesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetShardRoutingRulesRequest * @static - * @param {vtctldata.IGetCellsAliasesRequest} message GetCellsAliasesRequest message or plain object to encode + * @param {vtctldata.IGetShardRoutingRulesRequest} message GetShardRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellsAliasesRequest.encode = function encode(message, writer) { + GetShardRoutingRulesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * Encodes the specified GetShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRoutingRulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetShardRoutingRulesRequest * @static - * @param {vtctldata.IGetCellsAliasesRequest} message GetCellsAliasesRequest message or plain object to encode + * @param {vtctldata.IGetShardRoutingRulesRequest} message GetShardRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellsAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetShardRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. + * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetShardRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest + * @returns {vtctldata.GetShardRoutingRulesRequest} GetShardRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellsAliasesRequest.decode = function decode(reader, length) { + GetShardRoutingRulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellsAliasesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardRoutingRulesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -148369,110 +155836,109 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetShardRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest + * @returns {vtctldata.GetShardRoutingRulesRequest} GetShardRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellsAliasesRequest.decodeDelimited = function decodeDelimited(reader) { + GetShardRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCellsAliasesRequest message. + * Verifies a GetShardRoutingRulesRequest message. * @function verify - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetShardRoutingRulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCellsAliasesRequest.verify = function verify(message) { + GetShardRoutingRulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a GetCellsAliasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetShardRoutingRulesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest + * @returns {vtctldata.GetShardRoutingRulesRequest} GetShardRoutingRulesRequest */ - GetCellsAliasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellsAliasesRequest) + GetShardRoutingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetShardRoutingRulesRequest) return object; - return new $root.vtctldata.GetCellsAliasesRequest(); + return new $root.vtctldata.GetShardRoutingRulesRequest(); }; /** - * Creates a plain object from a GetCellsAliasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetShardRoutingRulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetShardRoutingRulesRequest * @static - * @param {vtctldata.GetCellsAliasesRequest} message GetCellsAliasesRequest + * @param {vtctldata.GetShardRoutingRulesRequest} message GetShardRoutingRulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellsAliasesRequest.toObject = function toObject() { + GetShardRoutingRulesRequest.toObject = function toObject() { return {}; }; /** - * Converts this GetCellsAliasesRequest to JSON. + * Converts this GetShardRoutingRulesRequest to JSON. * @function toJSON - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetShardRoutingRulesRequest * @instance * @returns {Object.} JSON object */ - GetCellsAliasesRequest.prototype.toJSON = function toJSON() { + GetShardRoutingRulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetCellsAliasesRequest + * Gets the default type url for GetShardRoutingRulesRequest * @function getTypeUrl - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetShardRoutingRulesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetCellsAliasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetShardRoutingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetCellsAliasesRequest"; + return typeUrlPrefix + "/vtctldata.GetShardRoutingRulesRequest"; }; - return GetCellsAliasesRequest; + return GetShardRoutingRulesRequest; })(); - vtctldata.GetCellsAliasesResponse = (function() { + vtctldata.GetShardRoutingRulesResponse = (function() { /** - * Properties of a GetCellsAliasesResponse. + * Properties of a GetShardRoutingRulesResponse. * @memberof vtctldata - * @interface IGetCellsAliasesResponse - * @property {Object.|null} [aliases] GetCellsAliasesResponse aliases + * @interface IGetShardRoutingRulesResponse + * @property {vschema.IShardRoutingRules|null} [shard_routing_rules] GetShardRoutingRulesResponse shard_routing_rules */ /** - * Constructs a new GetCellsAliasesResponse. + * Constructs a new GetShardRoutingRulesResponse. * @memberof vtctldata - * @classdesc Represents a GetCellsAliasesResponse. - * @implements IGetCellsAliasesResponse + * @classdesc Represents a GetShardRoutingRulesResponse. + * @implements IGetShardRoutingRulesResponse * @constructor - * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set + * @param {vtctldata.IGetShardRoutingRulesResponse=} [properties] Properties to set */ - function GetCellsAliasesResponse(properties) { - this.aliases = {}; + function GetShardRoutingRulesResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -148480,97 +155946,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetCellsAliasesResponse aliases. - * @member {Object.} aliases - * @memberof vtctldata.GetCellsAliasesResponse + * GetShardRoutingRulesResponse shard_routing_rules. + * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules + * @memberof vtctldata.GetShardRoutingRulesResponse * @instance */ - GetCellsAliasesResponse.prototype.aliases = $util.emptyObject; + GetShardRoutingRulesResponse.prototype.shard_routing_rules = null; /** - * Creates a new GetCellsAliasesResponse instance using the specified properties. + * Creates a new GetShardRoutingRulesResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetShardRoutingRulesResponse * @static - * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set - * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse instance + * @param {vtctldata.IGetShardRoutingRulesResponse=} [properties] Properties to set + * @returns {vtctldata.GetShardRoutingRulesResponse} GetShardRoutingRulesResponse instance */ - GetCellsAliasesResponse.create = function create(properties) { - return new GetCellsAliasesResponse(properties); + GetShardRoutingRulesResponse.create = function create(properties) { + return new GetShardRoutingRulesResponse(properties); }; /** - * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * Encodes the specified GetShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetShardRoutingRulesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetShardRoutingRulesResponse * @static - * @param {vtctldata.IGetCellsAliasesResponse} message GetCellsAliasesResponse message or plain object to encode + * @param {vtctldata.IGetShardRoutingRulesResponse} message GetShardRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellsAliasesResponse.encode = function encode(message, writer) { + GetShardRoutingRulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.aliases != null && Object.hasOwnProperty.call(message, "aliases")) - for (let keys = Object.keys(message.aliases), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.topodata.CellsAlias.encode(message.aliases[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().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(); return writer; }; /** - * Encodes the specified GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * Encodes the specified GetShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardRoutingRulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetShardRoutingRulesResponse * @static - * @param {vtctldata.IGetCellsAliasesResponse} message GetCellsAliasesResponse message or plain object to encode + * @param {vtctldata.IGetShardRoutingRulesResponse} message GetShardRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellsAliasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetShardRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. + * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetShardRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse + * @returns {vtctldata.GetShardRoutingRulesResponse} GetShardRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellsAliasesResponse.decode = function decode(reader, length) { + GetShardRoutingRulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellsAliasesResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardRoutingRulesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.aliases === $util.emptyObject) - message.aliases = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.topodata.CellsAlias.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.aliases[key] = value; + message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); break; } default: @@ -148582,141 +156026,128 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetShardRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse + * @returns {vtctldata.GetShardRoutingRulesResponse} GetShardRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellsAliasesResponse.decodeDelimited = function decodeDelimited(reader) { + GetShardRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCellsAliasesResponse message. + * Verifies a GetShardRoutingRulesResponse message. * @function verify - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetShardRoutingRulesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCellsAliasesResponse.verify = function verify(message) { + GetShardRoutingRulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.aliases != null && message.hasOwnProperty("aliases")) { - if (!$util.isObject(message.aliases)) - return "aliases: object expected"; - let key = Object.keys(message.aliases); - for (let i = 0; i < key.length; ++i) { - let error = $root.topodata.CellsAlias.verify(message.aliases[key[i]]); - if (error) - return "aliases." + error; - } + if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { + let error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); + if (error) + return "shard_routing_rules." + error; } return null; }; /** - * Creates a GetCellsAliasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetShardRoutingRulesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse + * @returns {vtctldata.GetShardRoutingRulesResponse} GetShardRoutingRulesResponse */ - GetCellsAliasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellsAliasesResponse) + GetShardRoutingRulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetShardRoutingRulesResponse) return object; - let message = new $root.vtctldata.GetCellsAliasesResponse(); - if (object.aliases) { - if (typeof object.aliases !== "object") - throw TypeError(".vtctldata.GetCellsAliasesResponse.aliases: object expected"); - message.aliases = {}; - for (let keys = Object.keys(object.aliases), i = 0; i < keys.length; ++i) { - if (typeof object.aliases[keys[i]] !== "object") - throw TypeError(".vtctldata.GetCellsAliasesResponse.aliases: object expected"); - message.aliases[keys[i]] = $root.topodata.CellsAlias.fromObject(object.aliases[keys[i]]); - } + let message = new $root.vtctldata.GetShardRoutingRulesResponse(); + if (object.shard_routing_rules != null) { + if (typeof object.shard_routing_rules !== "object") + throw TypeError(".vtctldata.GetShardRoutingRulesResponse.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 GetCellsAliasesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetShardRoutingRulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetShardRoutingRulesResponse * @static - * @param {vtctldata.GetCellsAliasesResponse} message GetCellsAliasesResponse + * @param {vtctldata.GetShardRoutingRulesResponse} message GetShardRoutingRulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellsAliasesResponse.toObject = function toObject(message, options) { + GetShardRoutingRulesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.aliases = {}; - let keys2; - if (message.aliases && (keys2 = Object.keys(message.aliases)).length) { - object.aliases = {}; - for (let j = 0; j < keys2.length; ++j) - object.aliases[keys2[j]] = $root.topodata.CellsAlias.toObject(message.aliases[keys2[j]], options); - } + if (options.defaults) + object.shard_routing_rules = 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); return object; }; /** - * Converts this GetCellsAliasesResponse to JSON. + * Converts this GetShardRoutingRulesResponse to JSON. * @function toJSON - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetShardRoutingRulesResponse * @instance * @returns {Object.} JSON object */ - GetCellsAliasesResponse.prototype.toJSON = function toJSON() { + GetShardRoutingRulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetCellsAliasesResponse + * Gets the default type url for GetShardRoutingRulesResponse * @function getTypeUrl - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetShardRoutingRulesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetCellsAliasesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetShardRoutingRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetCellsAliasesResponse"; + return typeUrlPrefix + "/vtctldata.GetShardRoutingRulesResponse"; }; - return GetCellsAliasesResponse; + return GetShardRoutingRulesResponse; })(); - vtctldata.GetFullStatusRequest = (function() { + vtctldata.GetSrvKeyspaceNamesRequest = (function() { /** - * Properties of a GetFullStatusRequest. + * Properties of a GetSrvKeyspaceNamesRequest. * @memberof vtctldata - * @interface IGetFullStatusRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] GetFullStatusRequest tablet_alias + * @interface IGetSrvKeyspaceNamesRequest + * @property {Array.|null} [cells] GetSrvKeyspaceNamesRequest cells */ /** - * Constructs a new GetFullStatusRequest. + * Constructs a new GetSrvKeyspaceNamesRequest. * @memberof vtctldata - * @classdesc Represents a GetFullStatusRequest. - * @implements IGetFullStatusRequest + * @classdesc Represents a GetSrvKeyspaceNamesRequest. + * @implements IGetSrvKeyspaceNamesRequest * @constructor - * @param {vtctldata.IGetFullStatusRequest=} [properties] Properties to set + * @param {vtctldata.IGetSrvKeyspaceNamesRequest=} [properties] Properties to set */ - function GetFullStatusRequest(properties) { + function GetSrvKeyspaceNamesRequest(properties) { + this.cells = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -148724,75 +156155,78 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetFullStatusRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.GetFullStatusRequest + * GetSrvKeyspaceNamesRequest cells. + * @member {Array.} cells + * @memberof vtctldata.GetSrvKeyspaceNamesRequest * @instance */ - GetFullStatusRequest.prototype.tablet_alias = null; + GetSrvKeyspaceNamesRequest.prototype.cells = $util.emptyArray; /** - * Creates a new GetFullStatusRequest instance using the specified properties. + * Creates a new GetSrvKeyspaceNamesRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetFullStatusRequest + * @memberof vtctldata.GetSrvKeyspaceNamesRequest * @static - * @param {vtctldata.IGetFullStatusRequest=} [properties] Properties to set - * @returns {vtctldata.GetFullStatusRequest} GetFullStatusRequest instance + * @param {vtctldata.IGetSrvKeyspaceNamesRequest=} [properties] Properties to set + * @returns {vtctldata.GetSrvKeyspaceNamesRequest} GetSrvKeyspaceNamesRequest instance */ - GetFullStatusRequest.create = function create(properties) { - return new GetFullStatusRequest(properties); + GetSrvKeyspaceNamesRequest.create = function create(properties) { + return new GetSrvKeyspaceNamesRequest(properties); }; /** - * Encodes the specified GetFullStatusRequest message. Does not implicitly {@link vtctldata.GetFullStatusRequest.verify|verify} messages. + * Encodes the specified GetSrvKeyspaceNamesRequest message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetFullStatusRequest + * @memberof vtctldata.GetSrvKeyspaceNamesRequest * @static - * @param {vtctldata.IGetFullStatusRequest} message GetFullStatusRequest message or plain object to encode + * @param {vtctldata.IGetSrvKeyspaceNamesRequest} message GetSrvKeyspaceNamesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFullStatusRequest.encode = function encode(message, writer) { + GetSrvKeyspaceNamesRequest.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.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cells[i]); return writer; }; /** - * Encodes the specified GetFullStatusRequest message, length delimited. Does not implicitly {@link vtctldata.GetFullStatusRequest.verify|verify} messages. + * Encodes the specified GetSrvKeyspaceNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetFullStatusRequest + * @memberof vtctldata.GetSrvKeyspaceNamesRequest * @static - * @param {vtctldata.IGetFullStatusRequest} message GetFullStatusRequest message or plain object to encode + * @param {vtctldata.IGetSrvKeyspaceNamesRequest} message GetSrvKeyspaceNamesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFullStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSrvKeyspaceNamesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetFullStatusRequest message from the specified reader or buffer. + * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetFullStatusRequest + * @memberof vtctldata.GetSrvKeyspaceNamesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetFullStatusRequest} GetFullStatusRequest + * @returns {vtctldata.GetSrvKeyspaceNamesRequest} GetSrvKeyspaceNamesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFullStatusRequest.decode = function decode(reader, length) { + GetSrvKeyspaceNamesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetFullStatusRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvKeyspaceNamesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; } default: @@ -148804,127 +156238,135 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetFullStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetFullStatusRequest + * @memberof vtctldata.GetSrvKeyspaceNamesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetFullStatusRequest} GetFullStatusRequest + * @returns {vtctldata.GetSrvKeyspaceNamesRequest} GetSrvKeyspaceNamesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFullStatusRequest.decodeDelimited = function decodeDelimited(reader) { + GetSrvKeyspaceNamesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetFullStatusRequest message. + * Verifies a GetSrvKeyspaceNamesRequest message. * @function verify - * @memberof vtctldata.GetFullStatusRequest + * @memberof vtctldata.GetSrvKeyspaceNamesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetFullStatusRequest.verify = function verify(message) { + GetSrvKeyspaceNamesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; } return null; }; /** - * Creates a GetFullStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvKeyspaceNamesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetFullStatusRequest + * @memberof vtctldata.GetSrvKeyspaceNamesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetFullStatusRequest} GetFullStatusRequest + * @returns {vtctldata.GetSrvKeyspaceNamesRequest} GetSrvKeyspaceNamesRequest */ - GetFullStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetFullStatusRequest) + GetSrvKeyspaceNamesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvKeyspaceNamesRequest) return object; - let message = new $root.vtctldata.GetFullStatusRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.GetFullStatusRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + let message = new $root.vtctldata.GetSrvKeyspaceNamesRequest(); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.GetSrvKeyspaceNamesRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); } return message; }; /** - * Creates a plain object from a GetFullStatusRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSrvKeyspaceNamesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetFullStatusRequest + * @memberof vtctldata.GetSrvKeyspaceNamesRequest * @static - * @param {vtctldata.GetFullStatusRequest} message GetFullStatusRequest + * @param {vtctldata.GetSrvKeyspaceNamesRequest} message GetSrvKeyspaceNamesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetFullStatusRequest.toObject = function toObject(message, options) { + GetSrvKeyspaceNamesRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.tablet_alias = null; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (options.arrays || options.defaults) + object.cells = []; + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } return object; }; /** - * Converts this GetFullStatusRequest to JSON. + * Converts this GetSrvKeyspaceNamesRequest to JSON. * @function toJSON - * @memberof vtctldata.GetFullStatusRequest + * @memberof vtctldata.GetSrvKeyspaceNamesRequest * @instance * @returns {Object.} JSON object */ - GetFullStatusRequest.prototype.toJSON = function toJSON() { + GetSrvKeyspaceNamesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetFullStatusRequest + * Gets the default type url for GetSrvKeyspaceNamesRequest * @function getTypeUrl - * @memberof vtctldata.GetFullStatusRequest + * @memberof vtctldata.GetSrvKeyspaceNamesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetFullStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSrvKeyspaceNamesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetFullStatusRequest"; + return typeUrlPrefix + "/vtctldata.GetSrvKeyspaceNamesRequest"; }; - return GetFullStatusRequest; + return GetSrvKeyspaceNamesRequest; })(); - vtctldata.GetFullStatusResponse = (function() { + vtctldata.GetSrvKeyspaceNamesResponse = (function() { /** - * Properties of a GetFullStatusResponse. + * Properties of a GetSrvKeyspaceNamesResponse. * @memberof vtctldata - * @interface IGetFullStatusResponse - * @property {replicationdata.IFullStatus|null} [status] GetFullStatusResponse status + * @interface IGetSrvKeyspaceNamesResponse + * @property {Object.|null} [names] GetSrvKeyspaceNamesResponse names */ /** - * Constructs a new GetFullStatusResponse. + * Constructs a new GetSrvKeyspaceNamesResponse. * @memberof vtctldata - * @classdesc Represents a GetFullStatusResponse. - * @implements IGetFullStatusResponse + * @classdesc Represents a GetSrvKeyspaceNamesResponse. + * @implements IGetSrvKeyspaceNamesResponse * @constructor - * @param {vtctldata.IGetFullStatusResponse=} [properties] Properties to set + * @param {vtctldata.IGetSrvKeyspaceNamesResponse=} [properties] Properties to set */ - function GetFullStatusResponse(properties) { + function GetSrvKeyspaceNamesResponse(properties) { + this.names = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -148932,75 +156374,97 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetFullStatusResponse status. - * @member {replicationdata.IFullStatus|null|undefined} status - * @memberof vtctldata.GetFullStatusResponse + * GetSrvKeyspaceNamesResponse names. + * @member {Object.} names + * @memberof vtctldata.GetSrvKeyspaceNamesResponse * @instance */ - GetFullStatusResponse.prototype.status = null; + GetSrvKeyspaceNamesResponse.prototype.names = $util.emptyObject; /** - * Creates a new GetFullStatusResponse instance using the specified properties. + * Creates a new GetSrvKeyspaceNamesResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetFullStatusResponse + * @memberof vtctldata.GetSrvKeyspaceNamesResponse * @static - * @param {vtctldata.IGetFullStatusResponse=} [properties] Properties to set - * @returns {vtctldata.GetFullStatusResponse} GetFullStatusResponse instance + * @param {vtctldata.IGetSrvKeyspaceNamesResponse=} [properties] Properties to set + * @returns {vtctldata.GetSrvKeyspaceNamesResponse} GetSrvKeyspaceNamesResponse instance */ - GetFullStatusResponse.create = function create(properties) { - return new GetFullStatusResponse(properties); + GetSrvKeyspaceNamesResponse.create = function create(properties) { + return new GetSrvKeyspaceNamesResponse(properties); }; /** - * Encodes the specified GetFullStatusResponse message. Does not implicitly {@link vtctldata.GetFullStatusResponse.verify|verify} messages. + * Encodes the specified GetSrvKeyspaceNamesResponse message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetFullStatusResponse + * @memberof vtctldata.GetSrvKeyspaceNamesResponse * @static - * @param {vtctldata.IGetFullStatusResponse} message GetFullStatusResponse message or plain object to encode + * @param {vtctldata.IGetSrvKeyspaceNamesResponse} message GetSrvKeyspaceNamesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFullStatusResponse.encode = function encode(message, writer) { + GetSrvKeyspaceNamesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.replicationdata.FullStatus.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.names != null && Object.hasOwnProperty.call(message, "names")) + for (let keys = Object.keys(message.names), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList.encode(message.names[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified GetFullStatusResponse message, length delimited. Does not implicitly {@link vtctldata.GetFullStatusResponse.verify|verify} messages. + * Encodes the specified GetSrvKeyspaceNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetFullStatusResponse + * @memberof vtctldata.GetSrvKeyspaceNamesResponse * @static - * @param {vtctldata.IGetFullStatusResponse} message GetFullStatusResponse message or plain object to encode + * @param {vtctldata.IGetSrvKeyspaceNamesResponse} message GetSrvKeyspaceNamesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFullStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSrvKeyspaceNamesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetFullStatusResponse message from the specified reader or buffer. + * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetFullStatusResponse + * @memberof vtctldata.GetSrvKeyspaceNamesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetFullStatusResponse} GetFullStatusResponse + * @returns {vtctldata.GetSrvKeyspaceNamesResponse} GetSrvKeyspaceNamesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFullStatusResponse.decode = function decode(reader, length) { + GetSrvKeyspaceNamesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetFullStatusResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvKeyspaceNamesResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.status = $root.replicationdata.FullStatus.decode(reader, reader.uint32()); + if (message.names === $util.emptyObject) + message.names = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.names[key] = value; break; } default: @@ -149012,126 +156476,362 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetFullStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetFullStatusResponse + * @memberof vtctldata.GetSrvKeyspaceNamesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetFullStatusResponse} GetFullStatusResponse + * @returns {vtctldata.GetSrvKeyspaceNamesResponse} GetSrvKeyspaceNamesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFullStatusResponse.decodeDelimited = function decodeDelimited(reader) { + GetSrvKeyspaceNamesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetFullStatusResponse message. + * Verifies a GetSrvKeyspaceNamesResponse message. * @function verify - * @memberof vtctldata.GetFullStatusResponse + * @memberof vtctldata.GetSrvKeyspaceNamesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetFullStatusResponse.verify = function verify(message) { + GetSrvKeyspaceNamesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - let error = $root.replicationdata.FullStatus.verify(message.status); - if (error) - return "status." + error; + if (message.names != null && message.hasOwnProperty("names")) { + if (!$util.isObject(message.names)) + return "names: object expected"; + let key = Object.keys(message.names); + for (let i = 0; i < key.length; ++i) { + let error = $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList.verify(message.names[key[i]]); + if (error) + return "names." + error; + } } return null; }; /** - * Creates a GetFullStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvKeyspaceNamesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetFullStatusResponse + * @memberof vtctldata.GetSrvKeyspaceNamesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetFullStatusResponse} GetFullStatusResponse + * @returns {vtctldata.GetSrvKeyspaceNamesResponse} GetSrvKeyspaceNamesResponse */ - GetFullStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetFullStatusResponse) + GetSrvKeyspaceNamesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvKeyspaceNamesResponse) return object; - let message = new $root.vtctldata.GetFullStatusResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".vtctldata.GetFullStatusResponse.status: object expected"); - message.status = $root.replicationdata.FullStatus.fromObject(object.status); + let message = new $root.vtctldata.GetSrvKeyspaceNamesResponse(); + if (object.names) { + if (typeof object.names !== "object") + throw TypeError(".vtctldata.GetSrvKeyspaceNamesResponse.names: object expected"); + message.names = {}; + for (let keys = Object.keys(object.names), i = 0; i < keys.length; ++i) { + if (typeof object.names[keys[i]] !== "object") + throw TypeError(".vtctldata.GetSrvKeyspaceNamesResponse.names: object expected"); + message.names[keys[i]] = $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList.fromObject(object.names[keys[i]]); + } } return message; }; /** - * Creates a plain object from a GetFullStatusResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetSrvKeyspaceNamesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetFullStatusResponse + * @memberof vtctldata.GetSrvKeyspaceNamesResponse * @static - * @param {vtctldata.GetFullStatusResponse} message GetFullStatusResponse + * @param {vtctldata.GetSrvKeyspaceNamesResponse} message GetSrvKeyspaceNamesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetFullStatusResponse.toObject = function toObject(message, options) { + GetSrvKeyspaceNamesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.replicationdata.FullStatus.toObject(message.status, options); + if (options.objects || options.defaults) + object.names = {}; + let keys2; + if (message.names && (keys2 = Object.keys(message.names)).length) { + object.names = {}; + for (let j = 0; j < keys2.length; ++j) + object.names[keys2[j]] = $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList.toObject(message.names[keys2[j]], options); + } return object; }; /** - * Converts this GetFullStatusResponse to JSON. + * Converts this GetSrvKeyspaceNamesResponse to JSON. * @function toJSON - * @memberof vtctldata.GetFullStatusResponse + * @memberof vtctldata.GetSrvKeyspaceNamesResponse * @instance * @returns {Object.} JSON object */ - GetFullStatusResponse.prototype.toJSON = function toJSON() { + GetSrvKeyspaceNamesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetFullStatusResponse + * Gets the default type url for GetSrvKeyspaceNamesResponse * @function getTypeUrl - * @memberof vtctldata.GetFullStatusResponse + * @memberof vtctldata.GetSrvKeyspaceNamesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetFullStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSrvKeyspaceNamesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetFullStatusResponse"; + return typeUrlPrefix + "/vtctldata.GetSrvKeyspaceNamesResponse"; }; - return GetFullStatusResponse; + GetSrvKeyspaceNamesResponse.NameList = (function() { + + /** + * Properties of a NameList. + * @memberof vtctldata.GetSrvKeyspaceNamesResponse + * @interface INameList + * @property {Array.|null} [names] NameList names + */ + + /** + * Constructs a new NameList. + * @memberof vtctldata.GetSrvKeyspaceNamesResponse + * @classdesc Represents a NameList. + * @implements INameList + * @constructor + * @param {vtctldata.GetSrvKeyspaceNamesResponse.INameList=} [properties] Properties to set + */ + function NameList(properties) { + this.names = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NameList names. + * @member {Array.} names + * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList + * @instance + */ + NameList.prototype.names = $util.emptyArray; + + /** + * Creates a new NameList instance using the specified properties. + * @function create + * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList + * @static + * @param {vtctldata.GetSrvKeyspaceNamesResponse.INameList=} [properties] Properties to set + * @returns {vtctldata.GetSrvKeyspaceNamesResponse.NameList} NameList instance + */ + NameList.create = function create(properties) { + return new NameList(properties); + }; + + /** + * Encodes the specified NameList message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.NameList.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList + * @static + * @param {vtctldata.GetSrvKeyspaceNamesResponse.INameList} message NameList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NameList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.names != null && message.names.length) + for (let i = 0; i < message.names.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); + return writer; + }; + + /** + * Encodes the specified NameList message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.NameList.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList + * @static + * @param {vtctldata.GetSrvKeyspaceNamesResponse.INameList} message NameList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NameList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NameList message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.GetSrvKeyspaceNamesResponse.NameList} NameList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NameList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NameList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.GetSrvKeyspaceNamesResponse.NameList} NameList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NameList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NameList message. + * @function verify + * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NameList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (let i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; + } + return null; + }; + + /** + * Creates a NameList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetSrvKeyspaceNamesResponse.NameList} NameList + */ + NameList.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList) + return object; + let message = new $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList(); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".vtctldata.GetSrvKeyspaceNamesResponse.NameList.names: array expected"); + message.names = []; + for (let i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); + } + return message; + }; + + /** + * Creates a plain object from a NameList message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList + * @static + * @param {vtctldata.GetSrvKeyspaceNamesResponse.NameList} message NameList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NameList.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.names = []; + if (message.names && message.names.length) { + object.names = []; + for (let j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } + return object; + }; + + /** + * Converts this NameList to JSON. + * @function toJSON + * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList + * @instance + * @returns {Object.} JSON object + */ + NameList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NameList + * @function getTypeUrl + * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NameList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.GetSrvKeyspaceNamesResponse.NameList"; + }; + + return NameList; + })(); + + return GetSrvKeyspaceNamesResponse; })(); - vtctldata.GetKeyspacesRequest = (function() { + vtctldata.GetSrvKeyspacesRequest = (function() { /** - * Properties of a GetKeyspacesRequest. + * Properties of a GetSrvKeyspacesRequest. * @memberof vtctldata - * @interface IGetKeyspacesRequest + * @interface IGetSrvKeyspacesRequest + * @property {string|null} [keyspace] GetSrvKeyspacesRequest keyspace + * @property {Array.|null} [cells] GetSrvKeyspacesRequest cells */ /** - * Constructs a new GetKeyspacesRequest. + * Constructs a new GetSrvKeyspacesRequest. * @memberof vtctldata - * @classdesc Represents a GetKeyspacesRequest. - * @implements IGetKeyspacesRequest + * @classdesc Represents a GetSrvKeyspacesRequest. + * @implements IGetSrvKeyspacesRequest * @constructor - * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set + * @param {vtctldata.IGetSrvKeyspacesRequest=} [properties] Properties to set */ - function GetKeyspacesRequest(properties) { + function GetSrvKeyspacesRequest(properties) { + this.cells = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -149139,63 +156839,94 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new GetKeyspacesRequest instance using the specified properties. + * GetSrvKeyspacesRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.GetSrvKeyspacesRequest + * @instance + */ + GetSrvKeyspacesRequest.prototype.keyspace = ""; + + /** + * GetSrvKeyspacesRequest cells. + * @member {Array.} cells + * @memberof vtctldata.GetSrvKeyspacesRequest + * @instance + */ + GetSrvKeyspacesRequest.prototype.cells = $util.emptyArray; + + /** + * Creates a new GetSrvKeyspacesRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetSrvKeyspacesRequest * @static - * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set - * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest instance + * @param {vtctldata.IGetSrvKeyspacesRequest=} [properties] Properties to set + * @returns {vtctldata.GetSrvKeyspacesRequest} GetSrvKeyspacesRequest instance */ - GetKeyspacesRequest.create = function create(properties) { - return new GetKeyspacesRequest(properties); + GetSrvKeyspacesRequest.create = function create(properties) { + return new GetSrvKeyspacesRequest(properties); }; /** - * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * Encodes the specified GetSrvKeyspacesRequest message. Does not implicitly {@link vtctldata.GetSrvKeyspacesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetSrvKeyspacesRequest * @static - * @param {vtctldata.IGetKeyspacesRequest} message GetKeyspacesRequest message or plain object to encode + * @param {vtctldata.IGetSrvKeyspacesRequest} message GetSrvKeyspacesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspacesRequest.encode = function encode(message, writer) { + GetSrvKeyspacesRequest.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.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); return writer; }; /** - * Encodes the specified GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * Encodes the specified GetSrvKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspacesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetSrvKeyspacesRequest * @static - * @param {vtctldata.IGetKeyspacesRequest} message GetKeyspacesRequest message or plain object to encode + * @param {vtctldata.IGetSrvKeyspacesRequest} message GetSrvKeyspacesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspacesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSrvKeyspacesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspacesRequest message from the specified reader or buffer. + * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetSrvKeyspacesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest + * @returns {vtctldata.GetSrvKeyspacesRequest} GetSrvKeyspacesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspacesRequest.decode = function decode(reader, length) { + GetSrvKeyspacesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspacesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvKeyspacesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.keyspace = reader.string(); + break; + } + case 2: { + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -149205,110 +156936,144 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetKeyspacesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetSrvKeyspacesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest + * @returns {vtctldata.GetSrvKeyspacesRequest} GetSrvKeyspacesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspacesRequest.decodeDelimited = function decodeDelimited(reader) { + GetSrvKeyspacesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetKeyspacesRequest message. + * Verifies a GetSrvKeyspacesRequest message. * @function verify - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetSrvKeyspacesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetKeyspacesRequest.verify = function verify(message) { + GetSrvKeyspacesRequest.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.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } return null; }; /** - * Creates a GetKeyspacesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvKeyspacesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetSrvKeyspacesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest + * @returns {vtctldata.GetSrvKeyspacesRequest} GetSrvKeyspacesRequest */ - GetKeyspacesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspacesRequest) + GetSrvKeyspacesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvKeyspacesRequest) return object; - return new $root.vtctldata.GetKeyspacesRequest(); + let message = new $root.vtctldata.GetSrvKeyspacesRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.GetSrvKeyspacesRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } + return message; }; /** - * Creates a plain object from a GetKeyspacesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSrvKeyspacesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetSrvKeyspacesRequest * @static - * @param {vtctldata.GetKeyspacesRequest} message GetKeyspacesRequest + * @param {vtctldata.GetSrvKeyspacesRequest} message GetSrvKeyspacesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspacesRequest.toObject = function toObject() { - return {}; + GetSrvKeyspacesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.cells = []; + if (options.defaults) + object.keyspace = ""; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + return object; }; /** - * Converts this GetKeyspacesRequest to JSON. + * Converts this GetSrvKeyspacesRequest to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetSrvKeyspacesRequest * @instance * @returns {Object.} JSON object */ - GetKeyspacesRequest.prototype.toJSON = function toJSON() { + GetSrvKeyspacesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetKeyspacesRequest + * Gets the default type url for GetSrvKeyspacesRequest * @function getTypeUrl - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetSrvKeyspacesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetKeyspacesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSrvKeyspacesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetKeyspacesRequest"; + return typeUrlPrefix + "/vtctldata.GetSrvKeyspacesRequest"; }; - return GetKeyspacesRequest; + return GetSrvKeyspacesRequest; })(); - vtctldata.GetKeyspacesResponse = (function() { + vtctldata.GetSrvKeyspacesResponse = (function() { /** - * Properties of a GetKeyspacesResponse. + * Properties of a GetSrvKeyspacesResponse. * @memberof vtctldata - * @interface IGetKeyspacesResponse - * @property {Array.|null} [keyspaces] GetKeyspacesResponse keyspaces + * @interface IGetSrvKeyspacesResponse + * @property {Object.|null} [srv_keyspaces] GetSrvKeyspacesResponse srv_keyspaces */ /** - * Constructs a new GetKeyspacesResponse. + * Constructs a new GetSrvKeyspacesResponse. * @memberof vtctldata - * @classdesc Represents a GetKeyspacesResponse. - * @implements IGetKeyspacesResponse + * @classdesc Represents a GetSrvKeyspacesResponse. + * @implements IGetSrvKeyspacesResponse * @constructor - * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set + * @param {vtctldata.IGetSrvKeyspacesResponse=} [properties] Properties to set */ - function GetKeyspacesResponse(properties) { - this.keyspaces = []; + function GetSrvKeyspacesResponse(properties) { + this.srv_keyspaces = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -149316,78 +157081,97 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetKeyspacesResponse keyspaces. - * @member {Array.} keyspaces - * @memberof vtctldata.GetKeyspacesResponse + * GetSrvKeyspacesResponse srv_keyspaces. + * @member {Object.} srv_keyspaces + * @memberof vtctldata.GetSrvKeyspacesResponse * @instance */ - GetKeyspacesResponse.prototype.keyspaces = $util.emptyArray; + GetSrvKeyspacesResponse.prototype.srv_keyspaces = $util.emptyObject; /** - * Creates a new GetKeyspacesResponse instance using the specified properties. + * Creates a new GetSrvKeyspacesResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetSrvKeyspacesResponse * @static - * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set - * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse instance + * @param {vtctldata.IGetSrvKeyspacesResponse=} [properties] Properties to set + * @returns {vtctldata.GetSrvKeyspacesResponse} GetSrvKeyspacesResponse instance */ - GetKeyspacesResponse.create = function create(properties) { - return new GetKeyspacesResponse(properties); + GetSrvKeyspacesResponse.create = function create(properties) { + return new GetSrvKeyspacesResponse(properties); }; /** - * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * Encodes the specified GetSrvKeyspacesResponse message. Does not implicitly {@link vtctldata.GetSrvKeyspacesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetSrvKeyspacesResponse * @static - * @param {vtctldata.IGetKeyspacesResponse} message GetKeyspacesResponse message or plain object to encode + * @param {vtctldata.IGetSrvKeyspacesResponse} message GetSrvKeyspacesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspacesResponse.encode = function encode(message, writer) { + GetSrvKeyspacesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspaces != null && message.keyspaces.length) - for (let i = 0; i < message.keyspaces.length; ++i) - $root.vtctldata.Keyspace.encode(message.keyspaces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.srv_keyspaces != null && Object.hasOwnProperty.call(message, "srv_keyspaces")) + for (let keys = Object.keys(message.srv_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.topodata.SrvKeyspace.encode(message.srv_keyspaces[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified GetKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * Encodes the specified GetSrvKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspacesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetSrvKeyspacesResponse * @static - * @param {vtctldata.IGetKeyspacesResponse} message GetKeyspacesResponse message or plain object to encode + * @param {vtctldata.IGetSrvKeyspacesResponse} message GetSrvKeyspacesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspacesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSrvKeyspacesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspacesResponse message from the specified reader or buffer. + * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetSrvKeyspacesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse + * @returns {vtctldata.GetSrvKeyspacesResponse} GetSrvKeyspacesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspacesResponse.decode = function decode(reader, length) { + GetSrvKeyspacesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspacesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvKeyspacesResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.keyspaces && message.keyspaces.length)) - message.keyspaces = []; - message.keyspaces.push($root.vtctldata.Keyspace.decode(reader, reader.uint32())); + if (message.srv_keyspaces === $util.emptyObject) + message.srv_keyspaces = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.topodata.SrvKeyspace.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.srv_keyspaces[key] = value; break; } default: @@ -149399,139 +157183,153 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetKeyspacesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetSrvKeyspacesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse + * @returns {vtctldata.GetSrvKeyspacesResponse} GetSrvKeyspacesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspacesResponse.decodeDelimited = function decodeDelimited(reader) { + GetSrvKeyspacesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetKeyspacesResponse message. + * Verifies a GetSrvKeyspacesResponse message. * @function verify - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetSrvKeyspacesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetKeyspacesResponse.verify = function verify(message) { + GetSrvKeyspacesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspaces != null && message.hasOwnProperty("keyspaces")) { - if (!Array.isArray(message.keyspaces)) - return "keyspaces: array expected"; - for (let i = 0; i < message.keyspaces.length; ++i) { - let error = $root.vtctldata.Keyspace.verify(message.keyspaces[i]); + if (message.srv_keyspaces != null && message.hasOwnProperty("srv_keyspaces")) { + if (!$util.isObject(message.srv_keyspaces)) + return "srv_keyspaces: object expected"; + let key = Object.keys(message.srv_keyspaces); + for (let i = 0; i < key.length; ++i) { + let error = $root.topodata.SrvKeyspace.verify(message.srv_keyspaces[key[i]]); if (error) - return "keyspaces." + error; + return "srv_keyspaces." + error; } } return null; }; /** - * Creates a GetKeyspacesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvKeyspacesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetSrvKeyspacesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse + * @returns {vtctldata.GetSrvKeyspacesResponse} GetSrvKeyspacesResponse */ - GetKeyspacesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspacesResponse) + GetSrvKeyspacesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvKeyspacesResponse) return object; - let message = new $root.vtctldata.GetKeyspacesResponse(); - if (object.keyspaces) { - if (!Array.isArray(object.keyspaces)) - throw TypeError(".vtctldata.GetKeyspacesResponse.keyspaces: array expected"); - message.keyspaces = []; - for (let i = 0; i < object.keyspaces.length; ++i) { - if (typeof object.keyspaces[i] !== "object") - throw TypeError(".vtctldata.GetKeyspacesResponse.keyspaces: object expected"); - message.keyspaces[i] = $root.vtctldata.Keyspace.fromObject(object.keyspaces[i]); + let message = new $root.vtctldata.GetSrvKeyspacesResponse(); + if (object.srv_keyspaces) { + if (typeof object.srv_keyspaces !== "object") + throw TypeError(".vtctldata.GetSrvKeyspacesResponse.srv_keyspaces: object expected"); + message.srv_keyspaces = {}; + for (let keys = Object.keys(object.srv_keyspaces), i = 0; i < keys.length; ++i) { + if (typeof object.srv_keyspaces[keys[i]] !== "object") + throw TypeError(".vtctldata.GetSrvKeyspacesResponse.srv_keyspaces: object expected"); + message.srv_keyspaces[keys[i]] = $root.topodata.SrvKeyspace.fromObject(object.srv_keyspaces[keys[i]]); } } return message; }; /** - * Creates a plain object from a GetKeyspacesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetSrvKeyspacesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetSrvKeyspacesResponse * @static - * @param {vtctldata.GetKeyspacesResponse} message GetKeyspacesResponse + * @param {vtctldata.GetSrvKeyspacesResponse} message GetSrvKeyspacesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspacesResponse.toObject = function toObject(message, options) { + GetSrvKeyspacesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.keyspaces = []; - if (message.keyspaces && message.keyspaces.length) { - object.keyspaces = []; - for (let j = 0; j < message.keyspaces.length; ++j) - object.keyspaces[j] = $root.vtctldata.Keyspace.toObject(message.keyspaces[j], options); + if (options.objects || options.defaults) + object.srv_keyspaces = {}; + let keys2; + if (message.srv_keyspaces && (keys2 = Object.keys(message.srv_keyspaces)).length) { + object.srv_keyspaces = {}; + for (let j = 0; j < keys2.length; ++j) + object.srv_keyspaces[keys2[j]] = $root.topodata.SrvKeyspace.toObject(message.srv_keyspaces[keys2[j]], options); } return object; }; /** - * Converts this GetKeyspacesResponse to JSON. + * Converts this GetSrvKeyspacesResponse to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetSrvKeyspacesResponse * @instance * @returns {Object.} JSON object */ - GetKeyspacesResponse.prototype.toJSON = function toJSON() { + GetSrvKeyspacesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetKeyspacesResponse + * Gets the default type url for GetSrvKeyspacesResponse * @function getTypeUrl - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetSrvKeyspacesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetKeyspacesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSrvKeyspacesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetKeyspacesResponse"; + return typeUrlPrefix + "/vtctldata.GetSrvKeyspacesResponse"; }; - return GetKeyspacesResponse; + return GetSrvKeyspacesResponse; })(); - vtctldata.GetKeyspaceRequest = (function() { + vtctldata.UpdateThrottlerConfigRequest = (function() { /** - * Properties of a GetKeyspaceRequest. + * Properties of an UpdateThrottlerConfigRequest. * @memberof vtctldata - * @interface IGetKeyspaceRequest - * @property {string|null} [keyspace] GetKeyspaceRequest keyspace + * @interface IUpdateThrottlerConfigRequest + * @property {string|null} [keyspace] UpdateThrottlerConfigRequest keyspace + * @property {boolean|null} [enable] UpdateThrottlerConfigRequest enable + * @property {boolean|null} [disable] UpdateThrottlerConfigRequest disable + * @property {number|null} [threshold] UpdateThrottlerConfigRequest threshold + * @property {string|null} [custom_query] UpdateThrottlerConfigRequest custom_query + * @property {boolean|null} [custom_query_set] UpdateThrottlerConfigRequest custom_query_set + * @property {boolean|null} [check_as_check_self] UpdateThrottlerConfigRequest check_as_check_self + * @property {boolean|null} [check_as_check_shard] UpdateThrottlerConfigRequest check_as_check_shard + * @property {topodata.IThrottledAppRule|null} [throttled_app] UpdateThrottlerConfigRequest throttled_app + * @property {string|null} [metric_name] UpdateThrottlerConfigRequest metric_name + * @property {string|null} [app_name] UpdateThrottlerConfigRequest app_name + * @property {Array.|null} [app_checked_metrics] UpdateThrottlerConfigRequest app_checked_metrics */ /** - * Constructs a new GetKeyspaceRequest. + * Constructs a new UpdateThrottlerConfigRequest. * @memberof vtctldata - * @classdesc Represents a GetKeyspaceRequest. - * @implements IGetKeyspaceRequest + * @classdesc Represents an UpdateThrottlerConfigRequest. + * @implements IUpdateThrottlerConfigRequest * @constructor - * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IUpdateThrottlerConfigRequest=} [properties] Properties to set */ - function GetKeyspaceRequest(properties) { + function UpdateThrottlerConfigRequest(properties) { + this.app_checked_metrics = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -149539,70 +157337,181 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetKeyspaceRequest keyspace. + * UpdateThrottlerConfigRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.UpdateThrottlerConfigRequest * @instance */ - GetKeyspaceRequest.prototype.keyspace = ""; + UpdateThrottlerConfigRequest.prototype.keyspace = ""; /** - * Creates a new GetKeyspaceRequest instance using the specified properties. + * UpdateThrottlerConfigRequest enable. + * @member {boolean} enable + * @memberof vtctldata.UpdateThrottlerConfigRequest + * @instance + */ + UpdateThrottlerConfigRequest.prototype.enable = false; + + /** + * UpdateThrottlerConfigRequest disable. + * @member {boolean} disable + * @memberof vtctldata.UpdateThrottlerConfigRequest + * @instance + */ + UpdateThrottlerConfigRequest.prototype.disable = false; + + /** + * UpdateThrottlerConfigRequest threshold. + * @member {number} threshold + * @memberof vtctldata.UpdateThrottlerConfigRequest + * @instance + */ + UpdateThrottlerConfigRequest.prototype.threshold = 0; + + /** + * UpdateThrottlerConfigRequest custom_query. + * @member {string} custom_query + * @memberof vtctldata.UpdateThrottlerConfigRequest + * @instance + */ + UpdateThrottlerConfigRequest.prototype.custom_query = ""; + + /** + * UpdateThrottlerConfigRequest custom_query_set. + * @member {boolean} custom_query_set + * @memberof vtctldata.UpdateThrottlerConfigRequest + * @instance + */ + UpdateThrottlerConfigRequest.prototype.custom_query_set = false; + + /** + * UpdateThrottlerConfigRequest check_as_check_self. + * @member {boolean} check_as_check_self + * @memberof vtctldata.UpdateThrottlerConfigRequest + * @instance + */ + UpdateThrottlerConfigRequest.prototype.check_as_check_self = false; + + /** + * UpdateThrottlerConfigRequest check_as_check_shard. + * @member {boolean} check_as_check_shard + * @memberof vtctldata.UpdateThrottlerConfigRequest + * @instance + */ + UpdateThrottlerConfigRequest.prototype.check_as_check_shard = false; + + /** + * UpdateThrottlerConfigRequest throttled_app. + * @member {topodata.IThrottledAppRule|null|undefined} throttled_app + * @memberof vtctldata.UpdateThrottlerConfigRequest + * @instance + */ + UpdateThrottlerConfigRequest.prototype.throttled_app = null; + + /** + * UpdateThrottlerConfigRequest metric_name. + * @member {string} metric_name + * @memberof vtctldata.UpdateThrottlerConfigRequest + * @instance + */ + UpdateThrottlerConfigRequest.prototype.metric_name = ""; + + /** + * UpdateThrottlerConfigRequest app_name. + * @member {string} app_name + * @memberof vtctldata.UpdateThrottlerConfigRequest + * @instance + */ + UpdateThrottlerConfigRequest.prototype.app_name = ""; + + /** + * UpdateThrottlerConfigRequest app_checked_metrics. + * @member {Array.} app_checked_metrics + * @memberof vtctldata.UpdateThrottlerConfigRequest + * @instance + */ + UpdateThrottlerConfigRequest.prototype.app_checked_metrics = $util.emptyArray; + + /** + * Creates a new UpdateThrottlerConfigRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.UpdateThrottlerConfigRequest * @static - * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest instance + * @param {vtctldata.IUpdateThrottlerConfigRequest=} [properties] Properties to set + * @returns {vtctldata.UpdateThrottlerConfigRequest} UpdateThrottlerConfigRequest instance */ - GetKeyspaceRequest.create = function create(properties) { - return new GetKeyspaceRequest(properties); + UpdateThrottlerConfigRequest.create = function create(properties) { + return new UpdateThrottlerConfigRequest(properties); }; /** - * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * Encodes the specified UpdateThrottlerConfigRequest message. Does not implicitly {@link vtctldata.UpdateThrottlerConfigRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.UpdateThrottlerConfigRequest * @static - * @param {vtctldata.IGetKeyspaceRequest} message GetKeyspaceRequest message or plain object to encode + * @param {vtctldata.IUpdateThrottlerConfigRequest} message UpdateThrottlerConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspaceRequest.encode = function encode(message, writer) { + UpdateThrottlerConfigRequest.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.enable != null && Object.hasOwnProperty.call(message, "enable")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enable); + if (message.disable != null && Object.hasOwnProperty.call(message, "disable")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.disable); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.threshold); + if (message.custom_query != null && Object.hasOwnProperty.call(message, "custom_query")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.custom_query); + if (message.custom_query_set != null && Object.hasOwnProperty.call(message, "custom_query_set")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.custom_query_set); + if (message.check_as_check_self != null && Object.hasOwnProperty.call(message, "check_as_check_self")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.check_as_check_self); + if (message.check_as_check_shard != null && Object.hasOwnProperty.call(message, "check_as_check_shard")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.check_as_check_shard); + if (message.throttled_app != null && Object.hasOwnProperty.call(message, "throttled_app")) + $root.topodata.ThrottledAppRule.encode(message.throttled_app, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.metric_name != null && Object.hasOwnProperty.call(message, "metric_name")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.metric_name); + if (message.app_name != null && Object.hasOwnProperty.call(message, "app_name")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.app_name); + if (message.app_checked_metrics != null && message.app_checked_metrics.length) + for (let i = 0; i < message.app_checked_metrics.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.app_checked_metrics[i]); return writer; }; /** - * Encodes the specified GetKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * Encodes the specified UpdateThrottlerConfigRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateThrottlerConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.UpdateThrottlerConfigRequest * @static - * @param {vtctldata.IGetKeyspaceRequest} message GetKeyspaceRequest message or plain object to encode + * @param {vtctldata.IUpdateThrottlerConfigRequest} message UpdateThrottlerConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateThrottlerConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspaceRequest message from the specified reader or buffer. + * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.UpdateThrottlerConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest + * @returns {vtctldata.UpdateThrottlerConfigRequest} UpdateThrottlerConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspaceRequest.decode = function decode(reader, length) { + UpdateThrottlerConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.UpdateThrottlerConfigRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -149610,6 +157519,52 @@ export const vtctldata = $root.vtctldata = (() => { message.keyspace = reader.string(); break; } + case 2: { + message.enable = reader.bool(); + break; + } + case 3: { + message.disable = reader.bool(); + break; + } + case 4: { + message.threshold = reader.double(); + break; + } + case 5: { + message.custom_query = reader.string(); + break; + } + case 6: { + message.custom_query_set = reader.bool(); + break; + } + case 7: { + message.check_as_check_self = reader.bool(); + break; + } + case 8: { + message.check_as_check_shard = reader.bool(); + break; + } + case 9: { + message.throttled_app = $root.topodata.ThrottledAppRule.decode(reader, reader.uint32()); + break; + } + case 10: { + message.metric_name = reader.string(); + break; + } + case 11: { + message.app_name = reader.string(); + break; + } + case 12: { + if (!(message.app_checked_metrics && message.app_checked_metrics.length)) + message.app_checked_metrics = []; + message.app_checked_metrics.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -149619,122 +157574,228 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.UpdateThrottlerConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest + * @returns {vtctldata.UpdateThrottlerConfigRequest} UpdateThrottlerConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateThrottlerConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetKeyspaceRequest message. + * Verifies an UpdateThrottlerConfigRequest message. * @function verify - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.UpdateThrottlerConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetKeyspaceRequest.verify = function verify(message) { + UpdateThrottlerConfigRequest.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.enable != null && message.hasOwnProperty("enable")) + if (typeof message.enable !== "boolean") + return "enable: boolean expected"; + if (message.disable != null && message.hasOwnProperty("disable")) + if (typeof message.disable !== "boolean") + return "disable: boolean expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) + if (typeof message.threshold !== "number") + return "threshold: number expected"; + if (message.custom_query != null && message.hasOwnProperty("custom_query")) + if (!$util.isString(message.custom_query)) + return "custom_query: string expected"; + if (message.custom_query_set != null && message.hasOwnProperty("custom_query_set")) + if (typeof message.custom_query_set !== "boolean") + return "custom_query_set: boolean expected"; + if (message.check_as_check_self != null && message.hasOwnProperty("check_as_check_self")) + if (typeof message.check_as_check_self !== "boolean") + return "check_as_check_self: boolean expected"; + if (message.check_as_check_shard != null && message.hasOwnProperty("check_as_check_shard")) + if (typeof message.check_as_check_shard !== "boolean") + return "check_as_check_shard: boolean expected"; + if (message.throttled_app != null && message.hasOwnProperty("throttled_app")) { + let error = $root.topodata.ThrottledAppRule.verify(message.throttled_app); + if (error) + return "throttled_app." + error; + } + if (message.metric_name != null && message.hasOwnProperty("metric_name")) + if (!$util.isString(message.metric_name)) + return "metric_name: string expected"; + if (message.app_name != null && message.hasOwnProperty("app_name")) + if (!$util.isString(message.app_name)) + return "app_name: string expected"; + if (message.app_checked_metrics != null && message.hasOwnProperty("app_checked_metrics")) { + if (!Array.isArray(message.app_checked_metrics)) + return "app_checked_metrics: array expected"; + for (let i = 0; i < message.app_checked_metrics.length; ++i) + if (!$util.isString(message.app_checked_metrics[i])) + return "app_checked_metrics: string[] expected"; + } return null; }; /** - * Creates a GetKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateThrottlerConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.UpdateThrottlerConfigRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest + * @returns {vtctldata.UpdateThrottlerConfigRequest} UpdateThrottlerConfigRequest */ - GetKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspaceRequest) + UpdateThrottlerConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.UpdateThrottlerConfigRequest) return object; - let message = new $root.vtctldata.GetKeyspaceRequest(); + let message = new $root.vtctldata.UpdateThrottlerConfigRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); + if (object.enable != null) + message.enable = Boolean(object.enable); + if (object.disable != null) + message.disable = Boolean(object.disable); + if (object.threshold != null) + message.threshold = Number(object.threshold); + if (object.custom_query != null) + message.custom_query = String(object.custom_query); + if (object.custom_query_set != null) + message.custom_query_set = Boolean(object.custom_query_set); + if (object.check_as_check_self != null) + message.check_as_check_self = Boolean(object.check_as_check_self); + if (object.check_as_check_shard != null) + message.check_as_check_shard = Boolean(object.check_as_check_shard); + if (object.throttled_app != null) { + if (typeof object.throttled_app !== "object") + throw TypeError(".vtctldata.UpdateThrottlerConfigRequest.throttled_app: object expected"); + message.throttled_app = $root.topodata.ThrottledAppRule.fromObject(object.throttled_app); + } + if (object.metric_name != null) + message.metric_name = String(object.metric_name); + if (object.app_name != null) + message.app_name = String(object.app_name); + if (object.app_checked_metrics) { + if (!Array.isArray(object.app_checked_metrics)) + throw TypeError(".vtctldata.UpdateThrottlerConfigRequest.app_checked_metrics: array expected"); + message.app_checked_metrics = []; + for (let i = 0; i < object.app_checked_metrics.length; ++i) + message.app_checked_metrics[i] = String(object.app_checked_metrics[i]); + } return message; }; /** - * Creates a plain object from a GetKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateThrottlerConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.UpdateThrottlerConfigRequest * @static - * @param {vtctldata.GetKeyspaceRequest} message GetKeyspaceRequest + * @param {vtctldata.UpdateThrottlerConfigRequest} message UpdateThrottlerConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspaceRequest.toObject = function toObject(message, options) { + UpdateThrottlerConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) + if (options.arrays || options.defaults) + object.app_checked_metrics = []; + if (options.defaults) { object.keyspace = ""; + object.enable = false; + object.disable = false; + object.threshold = 0; + object.custom_query = ""; + object.custom_query_set = false; + object.check_as_check_self = false; + object.check_as_check_shard = false; + object.throttled_app = null; + object.metric_name = ""; + object.app_name = ""; + } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; + if (message.enable != null && message.hasOwnProperty("enable")) + object.enable = message.enable; + if (message.disable != null && message.hasOwnProperty("disable")) + object.disable = message.disable; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = options.json && !isFinite(message.threshold) ? String(message.threshold) : message.threshold; + if (message.custom_query != null && message.hasOwnProperty("custom_query")) + object.custom_query = message.custom_query; + if (message.custom_query_set != null && message.hasOwnProperty("custom_query_set")) + object.custom_query_set = message.custom_query_set; + if (message.check_as_check_self != null && message.hasOwnProperty("check_as_check_self")) + object.check_as_check_self = message.check_as_check_self; + if (message.check_as_check_shard != null && message.hasOwnProperty("check_as_check_shard")) + object.check_as_check_shard = message.check_as_check_shard; + if (message.throttled_app != null && message.hasOwnProperty("throttled_app")) + object.throttled_app = $root.topodata.ThrottledAppRule.toObject(message.throttled_app, options); + if (message.metric_name != null && message.hasOwnProperty("metric_name")) + object.metric_name = message.metric_name; + if (message.app_name != null && message.hasOwnProperty("app_name")) + object.app_name = message.app_name; + if (message.app_checked_metrics && message.app_checked_metrics.length) { + object.app_checked_metrics = []; + for (let j = 0; j < message.app_checked_metrics.length; ++j) + object.app_checked_metrics[j] = message.app_checked_metrics[j]; + } return object; }; /** - * Converts this GetKeyspaceRequest to JSON. + * Converts this UpdateThrottlerConfigRequest to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.UpdateThrottlerConfigRequest * @instance * @returns {Object.} JSON object */ - GetKeyspaceRequest.prototype.toJSON = function toJSON() { + UpdateThrottlerConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetKeyspaceRequest + * Gets the default type url for UpdateThrottlerConfigRequest * @function getTypeUrl - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.UpdateThrottlerConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateThrottlerConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetKeyspaceRequest"; + return typeUrlPrefix + "/vtctldata.UpdateThrottlerConfigRequest"; }; - return GetKeyspaceRequest; + return UpdateThrottlerConfigRequest; })(); - vtctldata.GetKeyspaceResponse = (function() { + vtctldata.UpdateThrottlerConfigResponse = (function() { /** - * Properties of a GetKeyspaceResponse. + * Properties of an UpdateThrottlerConfigResponse. * @memberof vtctldata - * @interface IGetKeyspaceResponse - * @property {vtctldata.IKeyspace|null} [keyspace] GetKeyspaceResponse keyspace + * @interface IUpdateThrottlerConfigResponse */ /** - * Constructs a new GetKeyspaceResponse. + * Constructs a new UpdateThrottlerConfigResponse. * @memberof vtctldata - * @classdesc Represents a GetKeyspaceResponse. - * @implements IGetKeyspaceResponse + * @classdesc Represents an UpdateThrottlerConfigResponse. + * @implements IUpdateThrottlerConfigResponse * @constructor - * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IUpdateThrottlerConfigResponse=} [properties] Properties to set */ - function GetKeyspaceResponse(properties) { + function UpdateThrottlerConfigResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -149742,77 +157803,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetKeyspaceResponse keyspace. - * @member {vtctldata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.GetKeyspaceResponse - * @instance - */ - GetKeyspaceResponse.prototype.keyspace = null; - - /** - * Creates a new GetKeyspaceResponse instance using the specified properties. + * Creates a new UpdateThrottlerConfigResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.UpdateThrottlerConfigResponse * @static - * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse instance + * @param {vtctldata.IUpdateThrottlerConfigResponse=} [properties] Properties to set + * @returns {vtctldata.UpdateThrottlerConfigResponse} UpdateThrottlerConfigResponse instance */ - GetKeyspaceResponse.create = function create(properties) { - return new GetKeyspaceResponse(properties); + UpdateThrottlerConfigResponse.create = function create(properties) { + return new UpdateThrottlerConfigResponse(properties); }; /** - * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * Encodes the specified UpdateThrottlerConfigResponse message. Does not implicitly {@link vtctldata.UpdateThrottlerConfigResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.UpdateThrottlerConfigResponse * @static - * @param {vtctldata.IGetKeyspaceResponse} message GetKeyspaceResponse message or plain object to encode + * @param {vtctldata.IUpdateThrottlerConfigResponse} message UpdateThrottlerConfigResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspaceResponse.encode = function encode(message, writer) { + UpdateThrottlerConfigResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * Encodes the specified UpdateThrottlerConfigResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateThrottlerConfigResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.UpdateThrottlerConfigResponse * @static - * @param {vtctldata.IGetKeyspaceResponse} message GetKeyspaceResponse message or plain object to encode + * @param {vtctldata.IUpdateThrottlerConfigResponse} message UpdateThrottlerConfigResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateThrottlerConfigResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspaceResponse message from the specified reader or buffer. + * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.UpdateThrottlerConfigResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse + * @returns {vtctldata.UpdateThrottlerConfigResponse} UpdateThrottlerConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspaceResponse.decode = function decode(reader, length) { + UpdateThrottlerConfigResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.UpdateThrottlerConfigResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -149822,127 +157869,109 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.UpdateThrottlerConfigResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse + * @returns {vtctldata.UpdateThrottlerConfigResponse} UpdateThrottlerConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateThrottlerConfigResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetKeyspaceResponse message. + * Verifies an UpdateThrottlerConfigResponse message. * @function verify - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.UpdateThrottlerConfigResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetKeyspaceResponse.verify = function verify(message) { + UpdateThrottlerConfigResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - let error = $root.vtctldata.Keyspace.verify(message.keyspace); - if (error) - return "keyspace." + error; - } return null; }; /** - * Creates a GetKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateThrottlerConfigResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.UpdateThrottlerConfigResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse + * @returns {vtctldata.UpdateThrottlerConfigResponse} UpdateThrottlerConfigResponse */ - GetKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspaceResponse) + UpdateThrottlerConfigResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.UpdateThrottlerConfigResponse) return object; - let message = new $root.vtctldata.GetKeyspaceResponse(); - if (object.keyspace != null) { - if (typeof object.keyspace !== "object") - throw TypeError(".vtctldata.GetKeyspaceResponse.keyspace: object expected"); - message.keyspace = $root.vtctldata.Keyspace.fromObject(object.keyspace); - } - return message; + return new $root.vtctldata.UpdateThrottlerConfigResponse(); }; /** - * Creates a plain object from a GetKeyspaceResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateThrottlerConfigResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.UpdateThrottlerConfigResponse * @static - * @param {vtctldata.GetKeyspaceResponse} message GetKeyspaceResponse + * @param {vtctldata.UpdateThrottlerConfigResponse} message UpdateThrottlerConfigResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspaceResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.keyspace = null; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); - return object; + UpdateThrottlerConfigResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetKeyspaceResponse to JSON. + * Converts this UpdateThrottlerConfigResponse to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.UpdateThrottlerConfigResponse * @instance * @returns {Object.} JSON object */ - GetKeyspaceResponse.prototype.toJSON = function toJSON() { + UpdateThrottlerConfigResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetKeyspaceResponse + * Gets the default type url for UpdateThrottlerConfigResponse * @function getTypeUrl - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.UpdateThrottlerConfigResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateThrottlerConfigResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetKeyspaceResponse"; + return typeUrlPrefix + "/vtctldata.UpdateThrottlerConfigResponse"; }; - return GetKeyspaceResponse; + return UpdateThrottlerConfigResponse; })(); - vtctldata.GetPermissionsRequest = (function() { + vtctldata.GetSrvVSchemaRequest = (function() { /** - * Properties of a GetPermissionsRequest. + * Properties of a GetSrvVSchemaRequest. * @memberof vtctldata - * @interface IGetPermissionsRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] GetPermissionsRequest tablet_alias + * @interface IGetSrvVSchemaRequest + * @property {string|null} [cell] GetSrvVSchemaRequest cell */ /** - * Constructs a new GetPermissionsRequest. + * Constructs a new GetSrvVSchemaRequest. * @memberof vtctldata - * @classdesc Represents a GetPermissionsRequest. - * @implements IGetPermissionsRequest + * @classdesc Represents a GetSrvVSchemaRequest. + * @implements IGetSrvVSchemaRequest * @constructor - * @param {vtctldata.IGetPermissionsRequest=} [properties] Properties to set + * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set */ - function GetPermissionsRequest(properties) { + function GetSrvVSchemaRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -149950,75 +157979,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetPermissionsRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.GetPermissionsRequest + * GetSrvVSchemaRequest cell. + * @member {string} cell + * @memberof vtctldata.GetSrvVSchemaRequest * @instance */ - GetPermissionsRequest.prototype.tablet_alias = null; + GetSrvVSchemaRequest.prototype.cell = ""; /** - * Creates a new GetPermissionsRequest instance using the specified properties. + * Creates a new GetSrvVSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetPermissionsRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.IGetPermissionsRequest=} [properties] Properties to set - * @returns {vtctldata.GetPermissionsRequest} GetPermissionsRequest instance + * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest instance */ - GetPermissionsRequest.create = function create(properties) { - return new GetPermissionsRequest(properties); + GetSrvVSchemaRequest.create = function create(properties) { + return new GetSrvVSchemaRequest(properties); }; /** - * Encodes the specified GetPermissionsRequest message. Does not implicitly {@link vtctldata.GetPermissionsRequest.verify|verify} messages. + * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetPermissionsRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.IGetPermissionsRequest} message GetPermissionsRequest message or plain object to encode + * @param {vtctldata.IGetSrvVSchemaRequest} message GetSrvVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPermissionsRequest.encode = function encode(message, writer) { + GetSrvVSchemaRequest.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.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); return writer; }; /** - * Encodes the specified GetPermissionsRequest message, length delimited. Does not implicitly {@link vtctldata.GetPermissionsRequest.verify|verify} messages. + * Encodes the specified GetSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetPermissionsRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.IGetPermissionsRequest} message GetPermissionsRequest message or plain object to encode + * @param {vtctldata.IGetSrvVSchemaRequest} message GetSrvVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPermissionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSrvVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPermissionsRequest message from the specified reader or buffer. + * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetPermissionsRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetPermissionsRequest} GetPermissionsRequest + * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPermissionsRequest.decode = function decode(reader, length) { + GetSrvVSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetPermissionsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemaRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.cell = reader.string(); break; } default: @@ -150030,127 +158059,122 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetPermissionsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetPermissionsRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetPermissionsRequest} GetPermissionsRequest + * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPermissionsRequest.decodeDelimited = function decodeDelimited(reader) { + GetSrvVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPermissionsRequest message. + * Verifies a GetSrvVSchemaRequest message. * @function verify - * @memberof vtctldata.GetPermissionsRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPermissionsRequest.verify = function verify(message) { + GetSrvVSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; return null; }; /** - * Creates a GetPermissionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetPermissionsRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetPermissionsRequest} GetPermissionsRequest + * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest */ - GetPermissionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetPermissionsRequest) + GetSrvVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvVSchemaRequest) return object; - let message = new $root.vtctldata.GetPermissionsRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.GetPermissionsRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } + let message = new $root.vtctldata.GetSrvVSchemaRequest(); + if (object.cell != null) + message.cell = String(object.cell); return message; }; /** - * Creates a plain object from a GetPermissionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSrvVSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetPermissionsRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.GetPermissionsRequest} message GetPermissionsRequest + * @param {vtctldata.GetSrvVSchemaRequest} message GetSrvVSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPermissionsRequest.toObject = function toObject(message, options) { + GetSrvVSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.tablet_alias = null; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + object.cell = ""; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; return object; }; /** - * Converts this GetPermissionsRequest to JSON. + * Converts this GetSrvVSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.GetPermissionsRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @instance * @returns {Object.} JSON object */ - GetPermissionsRequest.prototype.toJSON = function toJSON() { + GetSrvVSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPermissionsRequest + * Gets the default type url for GetSrvVSchemaRequest * @function getTypeUrl - * @memberof vtctldata.GetPermissionsRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPermissionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSrvVSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetPermissionsRequest"; + return typeUrlPrefix + "/vtctldata.GetSrvVSchemaRequest"; }; - return GetPermissionsRequest; + return GetSrvVSchemaRequest; })(); - vtctldata.GetPermissionsResponse = (function() { + vtctldata.GetSrvVSchemaResponse = (function() { /** - * Properties of a GetPermissionsResponse. + * Properties of a GetSrvVSchemaResponse. * @memberof vtctldata - * @interface IGetPermissionsResponse - * @property {tabletmanagerdata.IPermissions|null} [permissions] GetPermissionsResponse permissions + * @interface IGetSrvVSchemaResponse + * @property {vschema.ISrvVSchema|null} [srv_v_schema] GetSrvVSchemaResponse srv_v_schema */ /** - * Constructs a new GetPermissionsResponse. + * Constructs a new GetSrvVSchemaResponse. * @memberof vtctldata - * @classdesc Represents a GetPermissionsResponse. - * @implements IGetPermissionsResponse + * @classdesc Represents a GetSrvVSchemaResponse. + * @implements IGetSrvVSchemaResponse * @constructor - * @param {vtctldata.IGetPermissionsResponse=} [properties] Properties to set + * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set */ - function GetPermissionsResponse(properties) { + function GetSrvVSchemaResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -150158,75 +158182,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetPermissionsResponse permissions. - * @member {tabletmanagerdata.IPermissions|null|undefined} permissions - * @memberof vtctldata.GetPermissionsResponse + * GetSrvVSchemaResponse srv_v_schema. + * @member {vschema.ISrvVSchema|null|undefined} srv_v_schema + * @memberof vtctldata.GetSrvVSchemaResponse * @instance */ - GetPermissionsResponse.prototype.permissions = null; + GetSrvVSchemaResponse.prototype.srv_v_schema = null; /** - * Creates a new GetPermissionsResponse instance using the specified properties. + * Creates a new GetSrvVSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetPermissionsResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.IGetPermissionsResponse=} [properties] Properties to set - * @returns {vtctldata.GetPermissionsResponse} GetPermissionsResponse instance + * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse instance */ - GetPermissionsResponse.create = function create(properties) { - return new GetPermissionsResponse(properties); + GetSrvVSchemaResponse.create = function create(properties) { + return new GetSrvVSchemaResponse(properties); }; /** - * Encodes the specified GetPermissionsResponse message. Does not implicitly {@link vtctldata.GetPermissionsResponse.verify|verify} messages. + * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetPermissionsResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.IGetPermissionsResponse} message GetPermissionsResponse message or plain object to encode + * @param {vtctldata.IGetSrvVSchemaResponse} message GetSrvVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPermissionsResponse.encode = function encode(message, writer) { + GetSrvVSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.permissions != null && Object.hasOwnProperty.call(message, "permissions")) - $root.tabletmanagerdata.Permissions.encode(message.permissions, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.srv_v_schema != null && Object.hasOwnProperty.call(message, "srv_v_schema")) + $root.vschema.SrvVSchema.encode(message.srv_v_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetPermissionsResponse message, length delimited. Does not implicitly {@link vtctldata.GetPermissionsResponse.verify|verify} messages. + * Encodes the specified GetSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetPermissionsResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.IGetPermissionsResponse} message GetPermissionsResponse message or plain object to encode + * @param {vtctldata.IGetSrvVSchemaResponse} message GetSrvVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPermissionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSrvVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPermissionsResponse message from the specified reader or buffer. + * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetPermissionsResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetPermissionsResponse} GetPermissionsResponse + * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPermissionsResponse.decode = function decode(reader, length) { + GetSrvVSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetPermissionsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemaResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.permissions = $root.tabletmanagerdata.Permissions.decode(reader, reader.uint32()); + message.srv_v_schema = $root.vschema.SrvVSchema.decode(reader, reader.uint32()); break; } default: @@ -150238,126 +158262,128 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetPermissionsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetPermissionsResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetPermissionsResponse} GetPermissionsResponse + * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPermissionsResponse.decodeDelimited = function decodeDelimited(reader) { + GetSrvVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPermissionsResponse message. + * Verifies a GetSrvVSchemaResponse message. * @function verify - * @memberof vtctldata.GetPermissionsResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPermissionsResponse.verify = function verify(message) { + GetSrvVSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.permissions != null && message.hasOwnProperty("permissions")) { - let error = $root.tabletmanagerdata.Permissions.verify(message.permissions); + if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) { + let error = $root.vschema.SrvVSchema.verify(message.srv_v_schema); if (error) - return "permissions." + error; + return "srv_v_schema." + error; } return null; }; /** - * Creates a GetPermissionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetPermissionsResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetPermissionsResponse} GetPermissionsResponse + * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse */ - GetPermissionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetPermissionsResponse) + GetSrvVSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvVSchemaResponse) return object; - let message = new $root.vtctldata.GetPermissionsResponse(); - if (object.permissions != null) { - if (typeof object.permissions !== "object") - throw TypeError(".vtctldata.GetPermissionsResponse.permissions: object expected"); - message.permissions = $root.tabletmanagerdata.Permissions.fromObject(object.permissions); + let message = new $root.vtctldata.GetSrvVSchemaResponse(); + if (object.srv_v_schema != null) { + if (typeof object.srv_v_schema !== "object") + throw TypeError(".vtctldata.GetSrvVSchemaResponse.srv_v_schema: object expected"); + message.srv_v_schema = $root.vschema.SrvVSchema.fromObject(object.srv_v_schema); } return message; }; /** - * Creates a plain object from a GetPermissionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetSrvVSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetPermissionsResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.GetPermissionsResponse} message GetPermissionsResponse + * @param {vtctldata.GetSrvVSchemaResponse} message GetSrvVSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPermissionsResponse.toObject = function toObject(message, options) { + GetSrvVSchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.permissions = null; - if (message.permissions != null && message.hasOwnProperty("permissions")) - object.permissions = $root.tabletmanagerdata.Permissions.toObject(message.permissions, options); + object.srv_v_schema = null; + if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) + object.srv_v_schema = $root.vschema.SrvVSchema.toObject(message.srv_v_schema, options); return object; }; /** - * Converts this GetPermissionsResponse to JSON. + * Converts this GetSrvVSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.GetPermissionsResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @instance * @returns {Object.} JSON object */ - GetPermissionsResponse.prototype.toJSON = function toJSON() { + GetSrvVSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPermissionsResponse + * Gets the default type url for GetSrvVSchemaResponse * @function getTypeUrl - * @memberof vtctldata.GetPermissionsResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPermissionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSrvVSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetPermissionsResponse"; + return typeUrlPrefix + "/vtctldata.GetSrvVSchemaResponse"; }; - return GetPermissionsResponse; + return GetSrvVSchemaResponse; })(); - vtctldata.GetKeyspaceRoutingRulesRequest = (function() { + vtctldata.GetSrvVSchemasRequest = (function() { /** - * Properties of a GetKeyspaceRoutingRulesRequest. + * Properties of a GetSrvVSchemasRequest. * @memberof vtctldata - * @interface IGetKeyspaceRoutingRulesRequest + * @interface IGetSrvVSchemasRequest + * @property {Array.|null} [cells] GetSrvVSchemasRequest cells */ /** - * Constructs a new GetKeyspaceRoutingRulesRequest. + * Constructs a new GetSrvVSchemasRequest. * @memberof vtctldata - * @classdesc Represents a GetKeyspaceRoutingRulesRequest. - * @implements IGetKeyspaceRoutingRulesRequest + * @classdesc Represents a GetSrvVSchemasRequest. + * @implements IGetSrvVSchemasRequest * @constructor - * @param {vtctldata.IGetKeyspaceRoutingRulesRequest=} [properties] Properties to set + * @param {vtctldata.IGetSrvVSchemasRequest=} [properties] Properties to set */ - function GetKeyspaceRoutingRulesRequest(properties) { + function GetSrvVSchemasRequest(properties) { + this.cells = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -150365,63 +158391,80 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new GetKeyspaceRoutingRulesRequest instance using the specified properties. + * GetSrvVSchemasRequest cells. + * @member {Array.} cells + * @memberof vtctldata.GetSrvVSchemasRequest + * @instance + */ + GetSrvVSchemasRequest.prototype.cells = $util.emptyArray; + + /** + * Creates a new GetSrvVSchemasRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspaceRoutingRulesRequest + * @memberof vtctldata.GetSrvVSchemasRequest * @static - * @param {vtctldata.IGetKeyspaceRoutingRulesRequest=} [properties] Properties to set - * @returns {vtctldata.GetKeyspaceRoutingRulesRequest} GetKeyspaceRoutingRulesRequest instance + * @param {vtctldata.IGetSrvVSchemasRequest=} [properties] Properties to set + * @returns {vtctldata.GetSrvVSchemasRequest} GetSrvVSchemasRequest instance */ - GetKeyspaceRoutingRulesRequest.create = function create(properties) { - return new GetKeyspaceRoutingRulesRequest(properties); + GetSrvVSchemasRequest.create = function create(properties) { + return new GetSrvVSchemasRequest(properties); }; /** - * Encodes the specified GetKeyspaceRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesRequest.verify|verify} messages. + * Encodes the specified GetSrvVSchemasRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemasRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspaceRoutingRulesRequest + * @memberof vtctldata.GetSrvVSchemasRequest * @static - * @param {vtctldata.IGetKeyspaceRoutingRulesRequest} message GetKeyspaceRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IGetSrvVSchemasRequest} message GetSrvVSchemasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspaceRoutingRulesRequest.encode = function encode(message, writer) { + GetSrvVSchemasRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); return writer; }; /** - * Encodes the specified GetKeyspaceRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesRequest.verify|verify} messages. + * Encodes the specified GetSrvVSchemasRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemasRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspaceRoutingRulesRequest + * @memberof vtctldata.GetSrvVSchemasRequest * @static - * @param {vtctldata.IGetKeyspaceRoutingRulesRequest} message GetKeyspaceRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IGetSrvVSchemasRequest} message GetSrvVSchemasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspaceRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSrvVSchemasRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer. + * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspaceRoutingRulesRequest + * @memberof vtctldata.GetSrvVSchemasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetKeyspaceRoutingRulesRequest} GetKeyspaceRoutingRulesRequest + * @returns {vtctldata.GetSrvVSchemasRequest} GetSrvVSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspaceRoutingRulesRequest.decode = function decode(reader, length) { + GetSrvVSchemasRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceRoutingRulesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemasRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 2: { + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -150431,109 +158474,135 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetKeyspaceRoutingRulesRequest + * @memberof vtctldata.GetSrvVSchemasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspaceRoutingRulesRequest} GetKeyspaceRoutingRulesRequest + * @returns {vtctldata.GetSrvVSchemasRequest} GetSrvVSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspaceRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + GetSrvVSchemasRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetKeyspaceRoutingRulesRequest message. + * Verifies a GetSrvVSchemasRequest message. * @function verify - * @memberof vtctldata.GetKeyspaceRoutingRulesRequest + * @memberof vtctldata.GetSrvVSchemasRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetKeyspaceRoutingRulesRequest.verify = function verify(message) { + GetSrvVSchemasRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } return null; }; /** - * Creates a GetKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvVSchemasRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetKeyspaceRoutingRulesRequest + * @memberof vtctldata.GetSrvVSchemasRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspaceRoutingRulesRequest} GetKeyspaceRoutingRulesRequest + * @returns {vtctldata.GetSrvVSchemasRequest} GetSrvVSchemasRequest */ - GetKeyspaceRoutingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspaceRoutingRulesRequest) + GetSrvVSchemasRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvVSchemasRequest) return object; - return new $root.vtctldata.GetKeyspaceRoutingRulesRequest(); + let message = new $root.vtctldata.GetSrvVSchemasRequest(); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.GetSrvVSchemasRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } + return message; }; /** - * Creates a plain object from a GetKeyspaceRoutingRulesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSrvVSchemasRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetKeyspaceRoutingRulesRequest + * @memberof vtctldata.GetSrvVSchemasRequest * @static - * @param {vtctldata.GetKeyspaceRoutingRulesRequest} message GetKeyspaceRoutingRulesRequest + * @param {vtctldata.GetSrvVSchemasRequest} message GetSrvVSchemasRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspaceRoutingRulesRequest.toObject = function toObject() { - return {}; + GetSrvVSchemasRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.cells = []; + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + return object; }; /** - * Converts this GetKeyspaceRoutingRulesRequest to JSON. + * Converts this GetSrvVSchemasRequest to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspaceRoutingRulesRequest + * @memberof vtctldata.GetSrvVSchemasRequest * @instance * @returns {Object.} JSON object */ - GetKeyspaceRoutingRulesRequest.prototype.toJSON = function toJSON() { + GetSrvVSchemasRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetKeyspaceRoutingRulesRequest + * Gets the default type url for GetSrvVSchemasRequest * @function getTypeUrl - * @memberof vtctldata.GetKeyspaceRoutingRulesRequest + * @memberof vtctldata.GetSrvVSchemasRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetKeyspaceRoutingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSrvVSchemasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetKeyspaceRoutingRulesRequest"; + return typeUrlPrefix + "/vtctldata.GetSrvVSchemasRequest"; }; - return GetKeyspaceRoutingRulesRequest; + return GetSrvVSchemasRequest; })(); - vtctldata.GetKeyspaceRoutingRulesResponse = (function() { + vtctldata.GetSrvVSchemasResponse = (function() { /** - * Properties of a GetKeyspaceRoutingRulesResponse. + * Properties of a GetSrvVSchemasResponse. * @memberof vtctldata - * @interface IGetKeyspaceRoutingRulesResponse - * @property {vschema.IKeyspaceRoutingRules|null} [keyspace_routing_rules] GetKeyspaceRoutingRulesResponse keyspace_routing_rules + * @interface IGetSrvVSchemasResponse + * @property {Object.|null} [srv_v_schemas] GetSrvVSchemasResponse srv_v_schemas */ /** - * Constructs a new GetKeyspaceRoutingRulesResponse. + * Constructs a new GetSrvVSchemasResponse. * @memberof vtctldata - * @classdesc Represents a GetKeyspaceRoutingRulesResponse. - * @implements IGetKeyspaceRoutingRulesResponse + * @classdesc Represents a GetSrvVSchemasResponse. + * @implements IGetSrvVSchemasResponse * @constructor - * @param {vtctldata.IGetKeyspaceRoutingRulesResponse=} [properties] Properties to set + * @param {vtctldata.IGetSrvVSchemasResponse=} [properties] Properties to set */ - function GetKeyspaceRoutingRulesResponse(properties) { + function GetSrvVSchemasResponse(properties) { + this.srv_v_schemas = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -150541,75 +158610,97 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetKeyspaceRoutingRulesResponse keyspace_routing_rules. - * @member {vschema.IKeyspaceRoutingRules|null|undefined} keyspace_routing_rules - * @memberof vtctldata.GetKeyspaceRoutingRulesResponse + * GetSrvVSchemasResponse srv_v_schemas. + * @member {Object.} srv_v_schemas + * @memberof vtctldata.GetSrvVSchemasResponse * @instance */ - GetKeyspaceRoutingRulesResponse.prototype.keyspace_routing_rules = null; + GetSrvVSchemasResponse.prototype.srv_v_schemas = $util.emptyObject; /** - * Creates a new GetKeyspaceRoutingRulesResponse instance using the specified properties. + * Creates a new GetSrvVSchemasResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspaceRoutingRulesResponse + * @memberof vtctldata.GetSrvVSchemasResponse * @static - * @param {vtctldata.IGetKeyspaceRoutingRulesResponse=} [properties] Properties to set - * @returns {vtctldata.GetKeyspaceRoutingRulesResponse} GetKeyspaceRoutingRulesResponse instance + * @param {vtctldata.IGetSrvVSchemasResponse=} [properties] Properties to set + * @returns {vtctldata.GetSrvVSchemasResponse} GetSrvVSchemasResponse instance */ - GetKeyspaceRoutingRulesResponse.create = function create(properties) { - return new GetKeyspaceRoutingRulesResponse(properties); + GetSrvVSchemasResponse.create = function create(properties) { + return new GetSrvVSchemasResponse(properties); }; /** - * Encodes the specified GetKeyspaceRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesResponse.verify|verify} messages. + * Encodes the specified GetSrvVSchemasResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemasResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspaceRoutingRulesResponse + * @memberof vtctldata.GetSrvVSchemasResponse * @static - * @param {vtctldata.IGetKeyspaceRoutingRulesResponse} message GetKeyspaceRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IGetSrvVSchemasResponse} message GetSrvVSchemasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspaceRoutingRulesResponse.encode = function encode(message, writer) { + GetSrvVSchemasResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace_routing_rules != null && Object.hasOwnProperty.call(message, "keyspace_routing_rules")) - $root.vschema.KeyspaceRoutingRules.encode(message.keyspace_routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.srv_v_schemas != null && Object.hasOwnProperty.call(message, "srv_v_schemas")) + for (let keys = Object.keys(message.srv_v_schemas), 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.SrvVSchema.encode(message.srv_v_schemas[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified GetKeyspaceRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesResponse.verify|verify} messages. + * Encodes the specified GetSrvVSchemasResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemasResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspaceRoutingRulesResponse + * @memberof vtctldata.GetSrvVSchemasResponse * @static - * @param {vtctldata.IGetKeyspaceRoutingRulesResponse} message GetKeyspaceRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IGetSrvVSchemasResponse} message GetSrvVSchemasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspaceRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSrvVSchemasResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer. + * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspaceRoutingRulesResponse + * @memberof vtctldata.GetSrvVSchemasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetKeyspaceRoutingRulesResponse} GetKeyspaceRoutingRulesResponse + * @returns {vtctldata.GetSrvVSchemasResponse} GetSrvVSchemasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspaceRoutingRulesResponse.decode = function decode(reader, length) { + GetSrvVSchemasResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceRoutingRulesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemasResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.decode(reader, reader.uint32()); + if (message.srv_v_schemas === $util.emptyObject) + message.srv_v_schemas = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vschema.SrvVSchema.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.srv_v_schemas[key] = value; break; } default: @@ -150621,126 +158712,141 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetKeyspaceRoutingRulesResponse + * @memberof vtctldata.GetSrvVSchemasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspaceRoutingRulesResponse} GetKeyspaceRoutingRulesResponse + * @returns {vtctldata.GetSrvVSchemasResponse} GetSrvVSchemasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspaceRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { + GetSrvVSchemasResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetKeyspaceRoutingRulesResponse message. + * Verifies a GetSrvVSchemasResponse message. * @function verify - * @memberof vtctldata.GetKeyspaceRoutingRulesResponse + * @memberof vtctldata.GetSrvVSchemasResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetKeyspaceRoutingRulesResponse.verify = function verify(message) { + GetSrvVSchemasResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) { - let error = $root.vschema.KeyspaceRoutingRules.verify(message.keyspace_routing_rules); - if (error) - return "keyspace_routing_rules." + error; + if (message.srv_v_schemas != null && message.hasOwnProperty("srv_v_schemas")) { + if (!$util.isObject(message.srv_v_schemas)) + return "srv_v_schemas: object expected"; + let key = Object.keys(message.srv_v_schemas); + for (let i = 0; i < key.length; ++i) { + let error = $root.vschema.SrvVSchema.verify(message.srv_v_schemas[key[i]]); + if (error) + return "srv_v_schemas." + error; + } } return null; }; /** - * Creates a GetKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvVSchemasResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetKeyspaceRoutingRulesResponse + * @memberof vtctldata.GetSrvVSchemasResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspaceRoutingRulesResponse} GetKeyspaceRoutingRulesResponse + * @returns {vtctldata.GetSrvVSchemasResponse} GetSrvVSchemasResponse */ - GetKeyspaceRoutingRulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspaceRoutingRulesResponse) + GetSrvVSchemasResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvVSchemasResponse) return object; - let message = new $root.vtctldata.GetKeyspaceRoutingRulesResponse(); - if (object.keyspace_routing_rules != null) { - if (typeof object.keyspace_routing_rules !== "object") - throw TypeError(".vtctldata.GetKeyspaceRoutingRulesResponse.keyspace_routing_rules: object expected"); - message.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.fromObject(object.keyspace_routing_rules); + let message = new $root.vtctldata.GetSrvVSchemasResponse(); + if (object.srv_v_schemas) { + if (typeof object.srv_v_schemas !== "object") + throw TypeError(".vtctldata.GetSrvVSchemasResponse.srv_v_schemas: object expected"); + message.srv_v_schemas = {}; + for (let keys = Object.keys(object.srv_v_schemas), i = 0; i < keys.length; ++i) { + if (typeof object.srv_v_schemas[keys[i]] !== "object") + throw TypeError(".vtctldata.GetSrvVSchemasResponse.srv_v_schemas: object expected"); + message.srv_v_schemas[keys[i]] = $root.vschema.SrvVSchema.fromObject(object.srv_v_schemas[keys[i]]); + } } return message; }; /** - * Creates a plain object from a GetKeyspaceRoutingRulesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetSrvVSchemasResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetKeyspaceRoutingRulesResponse + * @memberof vtctldata.GetSrvVSchemasResponse * @static - * @param {vtctldata.GetKeyspaceRoutingRulesResponse} message GetKeyspaceRoutingRulesResponse + * @param {vtctldata.GetSrvVSchemasResponse} message GetSrvVSchemasResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspaceRoutingRulesResponse.toObject = function toObject(message, options) { + GetSrvVSchemasResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.keyspace_routing_rules = null; - if (message.keyspace_routing_rules != null && message.hasOwnProperty("keyspace_routing_rules")) - object.keyspace_routing_rules = $root.vschema.KeyspaceRoutingRules.toObject(message.keyspace_routing_rules, options); + if (options.objects || options.defaults) + object.srv_v_schemas = {}; + let keys2; + if (message.srv_v_schemas && (keys2 = Object.keys(message.srv_v_schemas)).length) { + object.srv_v_schemas = {}; + for (let j = 0; j < keys2.length; ++j) + object.srv_v_schemas[keys2[j]] = $root.vschema.SrvVSchema.toObject(message.srv_v_schemas[keys2[j]], options); + } return object; }; /** - * Converts this GetKeyspaceRoutingRulesResponse to JSON. + * Converts this GetSrvVSchemasResponse to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspaceRoutingRulesResponse + * @memberof vtctldata.GetSrvVSchemasResponse * @instance * @returns {Object.} JSON object */ - GetKeyspaceRoutingRulesResponse.prototype.toJSON = function toJSON() { + GetSrvVSchemasResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetKeyspaceRoutingRulesResponse + * Gets the default type url for GetSrvVSchemasResponse * @function getTypeUrl - * @memberof vtctldata.GetKeyspaceRoutingRulesResponse + * @memberof vtctldata.GetSrvVSchemasResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetKeyspaceRoutingRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSrvVSchemasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetKeyspaceRoutingRulesResponse"; + return typeUrlPrefix + "/vtctldata.GetSrvVSchemasResponse"; }; - return GetKeyspaceRoutingRulesResponse; + return GetSrvVSchemasResponse; })(); - vtctldata.GetRoutingRulesRequest = (function() { + vtctldata.GetTabletRequest = (function() { /** - * Properties of a GetRoutingRulesRequest. + * Properties of a GetTabletRequest. * @memberof vtctldata - * @interface IGetRoutingRulesRequest + * @interface IGetTabletRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] GetTabletRequest tablet_alias */ /** - * Constructs a new GetRoutingRulesRequest. + * Constructs a new GetTabletRequest. * @memberof vtctldata - * @classdesc Represents a GetRoutingRulesRequest. - * @implements IGetRoutingRulesRequest + * @classdesc Represents a GetTabletRequest. + * @implements IGetTabletRequest * @constructor - * @param {vtctldata.IGetRoutingRulesRequest=} [properties] Properties to set + * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set */ - function GetRoutingRulesRequest(properties) { + function GetTabletRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -150748,63 +158854,77 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new GetRoutingRulesRequest instance using the specified properties. + * GetTabletRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.GetTabletRequest + * @instance + */ + GetTabletRequest.prototype.tablet_alias = null; + + /** + * Creates a new GetTabletRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetRoutingRulesRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.IGetRoutingRulesRequest=} [properties] Properties to set - * @returns {vtctldata.GetRoutingRulesRequest} GetRoutingRulesRequest instance + * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set + * @returns {vtctldata.GetTabletRequest} GetTabletRequest instance */ - GetRoutingRulesRequest.create = function create(properties) { - return new GetRoutingRulesRequest(properties); + GetTabletRequest.create = function create(properties) { + return new GetTabletRequest(properties); }; /** - * Encodes the specified GetRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetRoutingRulesRequest.verify|verify} messages. + * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetRoutingRulesRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.IGetRoutingRulesRequest} message GetRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IGetTabletRequest} message GetTabletRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRoutingRulesRequest.encode = function encode(message, writer) { + GetTabletRequest.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(); return writer; }; /** - * Encodes the specified GetRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetRoutingRulesRequest.verify|verify} messages. + * Encodes the specified GetTabletRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetRoutingRulesRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.IGetRoutingRulesRequest} message GetRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IGetTabletRequest} message GetTabletRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetRoutingRulesRequest message from the specified reader or buffer. + * Decodes a GetTabletRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetRoutingRulesRequest + * @memberof vtctldata.GetTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetRoutingRulesRequest} GetRoutingRulesRequest + * @returns {vtctldata.GetTabletRequest} GetTabletRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRoutingRulesRequest.decode = function decode(reader, length) { + GetTabletRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetRoutingRulesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -150814,109 +158934,127 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTabletRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetRoutingRulesRequest + * @memberof vtctldata.GetTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetRoutingRulesRequest} GetRoutingRulesRequest + * @returns {vtctldata.GetTabletRequest} GetTabletRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + GetTabletRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetRoutingRulesRequest message. + * Verifies a GetTabletRequest message. * @function verify - * @memberof vtctldata.GetRoutingRulesRequest + * @memberof vtctldata.GetTabletRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetRoutingRulesRequest.verify = function verify(message) { + GetTabletRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } return null; }; /** - * Creates a GetRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetRoutingRulesRequest + * @memberof vtctldata.GetTabletRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetRoutingRulesRequest} GetRoutingRulesRequest + * @returns {vtctldata.GetTabletRequest} GetTabletRequest */ - GetRoutingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetRoutingRulesRequest) + GetTabletRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletRequest) return object; - return new $root.vtctldata.GetRoutingRulesRequest(); + let message = new $root.vtctldata.GetTabletRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.GetTabletRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + return message; }; /** - * Creates a plain object from a GetRoutingRulesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTabletRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetRoutingRulesRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.GetRoutingRulesRequest} message GetRoutingRulesRequest + * @param {vtctldata.GetTabletRequest} message GetTabletRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetRoutingRulesRequest.toObject = function toObject() { - return {}; + GetTabletRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.tablet_alias = null; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + return object; }; /** - * Converts this GetRoutingRulesRequest to JSON. + * Converts this GetTabletRequest to JSON. * @function toJSON - * @memberof vtctldata.GetRoutingRulesRequest + * @memberof vtctldata.GetTabletRequest * @instance * @returns {Object.} JSON object */ - GetRoutingRulesRequest.prototype.toJSON = function toJSON() { + GetTabletRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetRoutingRulesRequest + * Gets the default type url for GetTabletRequest * @function getTypeUrl - * @memberof vtctldata.GetRoutingRulesRequest + * @memberof vtctldata.GetTabletRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetRoutingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTabletRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetRoutingRulesRequest"; + return typeUrlPrefix + "/vtctldata.GetTabletRequest"; }; - return GetRoutingRulesRequest; + return GetTabletRequest; })(); - vtctldata.GetRoutingRulesResponse = (function() { + vtctldata.GetTabletResponse = (function() { /** - * Properties of a GetRoutingRulesResponse. + * Properties of a GetTabletResponse. * @memberof vtctldata - * @interface IGetRoutingRulesResponse - * @property {vschema.IRoutingRules|null} [routing_rules] GetRoutingRulesResponse routing_rules + * @interface IGetTabletResponse + * @property {topodata.ITablet|null} [tablet] GetTabletResponse tablet */ /** - * Constructs a new GetRoutingRulesResponse. + * Constructs a new GetTabletResponse. * @memberof vtctldata - * @classdesc Represents a GetRoutingRulesResponse. - * @implements IGetRoutingRulesResponse + * @classdesc Represents a GetTabletResponse. + * @implements IGetTabletResponse * @constructor - * @param {vtctldata.IGetRoutingRulesResponse=} [properties] Properties to set + * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set */ - function GetRoutingRulesResponse(properties) { + function GetTabletResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -150924,75 +159062,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetRoutingRulesResponse routing_rules. - * @member {vschema.IRoutingRules|null|undefined} routing_rules - * @memberof vtctldata.GetRoutingRulesResponse + * GetTabletResponse tablet. + * @member {topodata.ITablet|null|undefined} tablet + * @memberof vtctldata.GetTabletResponse * @instance */ - GetRoutingRulesResponse.prototype.routing_rules = null; + GetTabletResponse.prototype.tablet = null; /** - * Creates a new GetRoutingRulesResponse instance using the specified properties. + * Creates a new GetTabletResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetRoutingRulesResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.IGetRoutingRulesResponse=} [properties] Properties to set - * @returns {vtctldata.GetRoutingRulesResponse} GetRoutingRulesResponse instance + * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set + * @returns {vtctldata.GetTabletResponse} GetTabletResponse instance */ - GetRoutingRulesResponse.create = function create(properties) { - return new GetRoutingRulesResponse(properties); + GetTabletResponse.create = function create(properties) { + return new GetTabletResponse(properties); }; /** - * Encodes the specified GetRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetRoutingRulesResponse.verify|verify} messages. + * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetRoutingRulesResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.IGetRoutingRulesResponse} message GetRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IGetTabletResponse} message GetTabletResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRoutingRulesResponse.encode = function encode(message, writer) { + GetTabletResponse.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.tablet != null && Object.hasOwnProperty.call(message, "tablet")) + $root.topodata.Tablet.encode(message.tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetRoutingRulesResponse.verify|verify} messages. + * Encodes the specified GetTabletResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetRoutingRulesResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.IGetRoutingRulesResponse} message GetRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IGetTabletResponse} message GetTabletResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetRoutingRulesResponse message from the specified reader or buffer. + * Decodes a GetTabletResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetRoutingRulesResponse + * @memberof vtctldata.GetTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetRoutingRulesResponse} GetRoutingRulesResponse + * @returns {vtctldata.GetTabletResponse} GetTabletResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRoutingRulesResponse.decode = function decode(reader, length) { + GetTabletResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetRoutingRulesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); + message.tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); break; } default: @@ -151004,135 +159142,134 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTabletResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetRoutingRulesResponse + * @memberof vtctldata.GetTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetRoutingRulesResponse} GetRoutingRulesResponse + * @returns {vtctldata.GetTabletResponse} GetTabletResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { + GetTabletResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetRoutingRulesResponse message. + * Verifies a GetTabletResponse message. * @function verify - * @memberof vtctldata.GetRoutingRulesResponse + * @memberof vtctldata.GetTabletResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetRoutingRulesResponse.verify = function verify(message) { + GetTabletResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { - let error = $root.vschema.RoutingRules.verify(message.routing_rules); + if (message.tablet != null && message.hasOwnProperty("tablet")) { + let error = $root.topodata.Tablet.verify(message.tablet); if (error) - return "routing_rules." + error; + return "tablet." + error; } return null; }; /** - * Creates a GetRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetRoutingRulesResponse + * @memberof vtctldata.GetTabletResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetRoutingRulesResponse} GetRoutingRulesResponse + * @returns {vtctldata.GetTabletResponse} GetTabletResponse */ - GetRoutingRulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetRoutingRulesResponse) + GetTabletResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletResponse) return object; - let message = new $root.vtctldata.GetRoutingRulesResponse(); - if (object.routing_rules != null) { - if (typeof object.routing_rules !== "object") - throw TypeError(".vtctldata.GetRoutingRulesResponse.routing_rules: object expected"); - message.routing_rules = $root.vschema.RoutingRules.fromObject(object.routing_rules); + let message = new $root.vtctldata.GetTabletResponse(); + if (object.tablet != null) { + if (typeof object.tablet !== "object") + throw TypeError(".vtctldata.GetTabletResponse.tablet: object expected"); + message.tablet = $root.topodata.Tablet.fromObject(object.tablet); } return message; }; /** - * Creates a plain object from a GetRoutingRulesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetTabletResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetRoutingRulesResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.GetRoutingRulesResponse} message GetRoutingRulesResponse + * @param {vtctldata.GetTabletResponse} message GetTabletResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetRoutingRulesResponse.toObject = function toObject(message, options) { + GetTabletResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.routing_rules = null; - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) - object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); + object.tablet = null; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.Tablet.toObject(message.tablet, options); return object; }; /** - * Converts this GetRoutingRulesResponse to JSON. + * Converts this GetTabletResponse to JSON. * @function toJSON - * @memberof vtctldata.GetRoutingRulesResponse + * @memberof vtctldata.GetTabletResponse * @instance * @returns {Object.} JSON object */ - GetRoutingRulesResponse.prototype.toJSON = function toJSON() { + GetTabletResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetRoutingRulesResponse + * Gets the default type url for GetTabletResponse * @function getTypeUrl - * @memberof vtctldata.GetRoutingRulesResponse + * @memberof vtctldata.GetTabletResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetRoutingRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTabletResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetRoutingRulesResponse"; + return typeUrlPrefix + "/vtctldata.GetTabletResponse"; }; - return GetRoutingRulesResponse; + return GetTabletResponse; })(); - vtctldata.GetSchemaRequest = (function() { + vtctldata.GetTabletsRequest = (function() { /** - * Properties of a GetSchemaRequest. + * Properties of a GetTabletsRequest. * @memberof vtctldata - * @interface IGetSchemaRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] GetSchemaRequest tablet_alias - * @property {Array.|null} [tables] GetSchemaRequest tables - * @property {Array.|null} [exclude_tables] GetSchemaRequest exclude_tables - * @property {boolean|null} [include_views] GetSchemaRequest include_views - * @property {boolean|null} [table_names_only] GetSchemaRequest table_names_only - * @property {boolean|null} [table_sizes_only] GetSchemaRequest table_sizes_only - * @property {boolean|null} [table_schema_only] GetSchemaRequest table_schema_only + * @interface IGetTabletsRequest + * @property {string|null} [keyspace] GetTabletsRequest keyspace + * @property {string|null} [shard] GetTabletsRequest shard + * @property {Array.|null} [cells] GetTabletsRequest cells + * @property {boolean|null} [strict] GetTabletsRequest strict + * @property {Array.|null} [tablet_aliases] GetTabletsRequest tablet_aliases + * @property {topodata.TabletType|null} [tablet_type] GetTabletsRequest tablet_type */ /** - * Constructs a new GetSchemaRequest. + * Constructs a new GetTabletsRequest. * @memberof vtctldata - * @classdesc Represents a GetSchemaRequest. - * @implements IGetSchemaRequest + * @classdesc Represents a GetTabletsRequest. + * @implements IGetTabletsRequest * @constructor - * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set + * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set */ - function GetSchemaRequest(properties) { - this.tables = []; - this.exclude_tables = []; + function GetTabletsRequest(properties) { + this.cells = []; + this.tablet_aliases = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -151140,165 +159277,151 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetSchemaRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.GetSchemaRequest - * @instance - */ - GetSchemaRequest.prototype.tablet_alias = null; - - /** - * GetSchemaRequest tables. - * @member {Array.} tables - * @memberof vtctldata.GetSchemaRequest + * GetTabletsRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.GetTabletsRequest * @instance */ - GetSchemaRequest.prototype.tables = $util.emptyArray; + GetTabletsRequest.prototype.keyspace = ""; /** - * GetSchemaRequest exclude_tables. - * @member {Array.} exclude_tables - * @memberof vtctldata.GetSchemaRequest + * GetTabletsRequest shard. + * @member {string} shard + * @memberof vtctldata.GetTabletsRequest * @instance */ - GetSchemaRequest.prototype.exclude_tables = $util.emptyArray; + GetTabletsRequest.prototype.shard = ""; /** - * GetSchemaRequest include_views. - * @member {boolean} include_views - * @memberof vtctldata.GetSchemaRequest + * GetTabletsRequest cells. + * @member {Array.} cells + * @memberof vtctldata.GetTabletsRequest * @instance */ - GetSchemaRequest.prototype.include_views = false; + GetTabletsRequest.prototype.cells = $util.emptyArray; /** - * GetSchemaRequest table_names_only. - * @member {boolean} table_names_only - * @memberof vtctldata.GetSchemaRequest + * GetTabletsRequest strict. + * @member {boolean} strict + * @memberof vtctldata.GetTabletsRequest * @instance */ - GetSchemaRequest.prototype.table_names_only = false; + GetTabletsRequest.prototype.strict = false; /** - * GetSchemaRequest table_sizes_only. - * @member {boolean} table_sizes_only - * @memberof vtctldata.GetSchemaRequest + * GetTabletsRequest tablet_aliases. + * @member {Array.} tablet_aliases + * @memberof vtctldata.GetTabletsRequest * @instance */ - GetSchemaRequest.prototype.table_sizes_only = false; + GetTabletsRequest.prototype.tablet_aliases = $util.emptyArray; /** - * GetSchemaRequest table_schema_only. - * @member {boolean} table_schema_only - * @memberof vtctldata.GetSchemaRequest + * GetTabletsRequest tablet_type. + * @member {topodata.TabletType} tablet_type + * @memberof vtctldata.GetTabletsRequest * @instance */ - GetSchemaRequest.prototype.table_schema_only = false; + GetTabletsRequest.prototype.tablet_type = 0; /** - * Creates a new GetSchemaRequest instance using the specified properties. + * Creates a new GetTabletsRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest instance + * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set + * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest instance */ - GetSchemaRequest.create = function create(properties) { - return new GetSchemaRequest(properties); + GetTabletsRequest.create = function create(properties) { + return new GetTabletsRequest(properties); }; /** - * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode + * @param {vtctldata.IGetTabletsRequest} message GetTabletsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaRequest.encode = function encode(message, writer) { + GetTabletsRequest.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.tables != null && message.tables.length) - for (let i = 0; i < message.tables.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tables[i]); - if (message.exclude_tables != null && message.exclude_tables.length) - for (let i = 0; i < message.exclude_tables.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_tables[i]); - if (message.include_views != null && Object.hasOwnProperty.call(message, "include_views")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_views); - if (message.table_names_only != null && Object.hasOwnProperty.call(message, "table_names_only")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.table_names_only); - if (message.table_sizes_only != null && Object.hasOwnProperty.call(message, "table_sizes_only")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.table_sizes_only); - if (message.table_schema_only != null && Object.hasOwnProperty.call(message, "table_schema_only")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.table_schema_only); + 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.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); + if (message.strict != null && Object.hasOwnProperty.call(message, "strict")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.strict); + if (message.tablet_aliases != null && message.tablet_aliases.length) + for (let i = 0; i < message.tablet_aliases.length; ++i) + $root.topodata.TabletAlias.encode(message.tablet_aliases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.tablet_type); return writer; }; /** - * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * Encodes the specified GetTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode + * @param {vtctldata.IGetTabletsRequest} message GetTabletsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer. + * Decodes a GetTabletsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest + * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaRequest.decode = function decode(reader, length) { + GetTabletsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletsRequest(); while (reader.pos < end) { let 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: { - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.push(reader.string()); + message.shard = reader.string(); break; } case 3: { - if (!(message.exclude_tables && message.exclude_tables.length)) - message.exclude_tables = []; - message.exclude_tables.push(reader.string()); + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; } case 4: { - message.include_views = reader.bool(); + message.strict = reader.bool(); break; } case 5: { - message.table_names_only = reader.bool(); + if (!(message.tablet_aliases && message.tablet_aliases.length)) + message.tablet_aliases = []; + message.tablet_aliases.push($root.topodata.TabletAlias.decode(reader, reader.uint32())); break; } case 6: { - message.table_sizes_only = reader.bool(); - break; - } - case 7: { - message.table_schema_only = reader.bool(); + message.tablet_type = reader.int32(); break; } default: @@ -151310,202 +159433,259 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTabletsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest + * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + GetTabletsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSchemaRequest message. + * Verifies a GetTabletsRequest message. * @function verify - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSchemaRequest.verify = function verify(message) { + GetTabletsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!Array.isArray(message.tables)) - return "tables: array expected"; - for (let i = 0; i < message.tables.length; ++i) - if (!$util.isString(message.tables[i])) - return "tables: string[] expected"; + 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.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; } - if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { - if (!Array.isArray(message.exclude_tables)) - return "exclude_tables: array expected"; - for (let i = 0; i < message.exclude_tables.length; ++i) - if (!$util.isString(message.exclude_tables[i])) - return "exclude_tables: string[] expected"; + if (message.strict != null && message.hasOwnProperty("strict")) + if (typeof message.strict !== "boolean") + return "strict: boolean expected"; + if (message.tablet_aliases != null && message.hasOwnProperty("tablet_aliases")) { + if (!Array.isArray(message.tablet_aliases)) + return "tablet_aliases: array expected"; + for (let i = 0; i < message.tablet_aliases.length; ++i) { + let error = $root.topodata.TabletAlias.verify(message.tablet_aliases[i]); + if (error) + return "tablet_aliases." + error; + } } - if (message.include_views != null && message.hasOwnProperty("include_views")) - if (typeof message.include_views !== "boolean") - return "include_views: boolean expected"; - if (message.table_names_only != null && message.hasOwnProperty("table_names_only")) - if (typeof message.table_names_only !== "boolean") - return "table_names_only: boolean expected"; - if (message.table_sizes_only != null && message.hasOwnProperty("table_sizes_only")) - if (typeof message.table_sizes_only !== "boolean") - return "table_sizes_only: boolean expected"; - if (message.table_schema_only != null && message.hasOwnProperty("table_schema_only")) - if (typeof message.table_schema_only !== "boolean") - return "table_schema_only: boolean 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; + } return null; }; /** - * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest + * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest */ - GetSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSchemaRequest) + GetTabletsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletsRequest) return object; - let message = new $root.vtctldata.GetSchemaRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.GetSchemaRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + let message = new $root.vtctldata.GetTabletsRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.GetTabletsRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); } - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".vtctldata.GetSchemaRequest.tables: array expected"); - message.tables = []; - for (let i = 0; i < object.tables.length; ++i) - message.tables[i] = String(object.tables[i]); + if (object.strict != null) + message.strict = Boolean(object.strict); + if (object.tablet_aliases) { + if (!Array.isArray(object.tablet_aliases)) + throw TypeError(".vtctldata.GetTabletsRequest.tablet_aliases: array expected"); + message.tablet_aliases = []; + for (let i = 0; i < object.tablet_aliases.length; ++i) { + if (typeof object.tablet_aliases[i] !== "object") + throw TypeError(".vtctldata.GetTabletsRequest.tablet_aliases: object expected"); + message.tablet_aliases[i] = $root.topodata.TabletAlias.fromObject(object.tablet_aliases[i]); + } } - if (object.exclude_tables) { - if (!Array.isArray(object.exclude_tables)) - throw TypeError(".vtctldata.GetSchemaRequest.exclude_tables: array expected"); - message.exclude_tables = []; - for (let i = 0; i < object.exclude_tables.length; ++i) - message.exclude_tables[i] = String(object.exclude_tables[i]); + switch (object.tablet_type) { + default: + if (typeof object.tablet_type === "number") { + message.tablet_type = object.tablet_type; + break; + } + break; + 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.include_views != null) - message.include_views = Boolean(object.include_views); - if (object.table_names_only != null) - message.table_names_only = Boolean(object.table_names_only); - if (object.table_sizes_only != null) - message.table_sizes_only = Boolean(object.table_sizes_only); - if (object.table_schema_only != null) - message.table_schema_only = Boolean(object.table_schema_only); return message; }; /** - * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTabletsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.GetSchemaRequest} message GetSchemaRequest + * @param {vtctldata.GetTabletsRequest} message GetTabletsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaRequest.toObject = function toObject(message, options) { + GetTabletsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { - object.tables = []; - object.exclude_tables = []; + object.cells = []; + object.tablet_aliases = []; } if (options.defaults) { - object.tablet_alias = null; - object.include_views = false; - object.table_names_only = false; - object.table_sizes_only = false; - object.table_schema_only = false; + object.keyspace = ""; + object.shard = ""; + object.strict = false; + object.tablet_type = options.enums === String ? "UNKNOWN" : 0; } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.tables && message.tables.length) { - object.tables = []; - for (let j = 0; j < message.tables.length; ++j) - object.tables[j] = message.tables[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.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; } - if (message.exclude_tables && message.exclude_tables.length) { - object.exclude_tables = []; - for (let j = 0; j < message.exclude_tables.length; ++j) - object.exclude_tables[j] = message.exclude_tables[j]; + if (message.strict != null && message.hasOwnProperty("strict")) + object.strict = message.strict; + if (message.tablet_aliases && message.tablet_aliases.length) { + object.tablet_aliases = []; + for (let j = 0; j < message.tablet_aliases.length; ++j) + object.tablet_aliases[j] = $root.topodata.TabletAlias.toObject(message.tablet_aliases[j], options); } - if (message.include_views != null && message.hasOwnProperty("include_views")) - object.include_views = message.include_views; - if (message.table_names_only != null && message.hasOwnProperty("table_names_only")) - object.table_names_only = message.table_names_only; - if (message.table_sizes_only != null && message.hasOwnProperty("table_sizes_only")) - object.table_sizes_only = message.table_sizes_only; - if (message.table_schema_only != null && message.hasOwnProperty("table_schema_only")) - object.table_schema_only = message.table_schema_only; + if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) + object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] === undefined ? message.tablet_type : $root.topodata.TabletType[message.tablet_type] : message.tablet_type; return object; }; /** - * Converts this GetSchemaRequest to JSON. + * Converts this GetTabletsRequest to JSON. * @function toJSON - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletsRequest * @instance * @returns {Object.} JSON object */ - GetSchemaRequest.prototype.toJSON = function toJSON() { + GetTabletsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSchemaRequest + * Gets the default type url for GetTabletsRequest * @function getTypeUrl - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTabletsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetSchemaRequest"; + return typeUrlPrefix + "/vtctldata.GetTabletsRequest"; }; - return GetSchemaRequest; + return GetTabletsRequest; })(); - vtctldata.GetSchemaResponse = (function() { + vtctldata.GetTabletsResponse = (function() { /** - * Properties of a GetSchemaResponse. + * Properties of a GetTabletsResponse. * @memberof vtctldata - * @interface IGetSchemaResponse - * @property {tabletmanagerdata.ISchemaDefinition|null} [schema] GetSchemaResponse schema + * @interface IGetTabletsResponse + * @property {Array.|null} [tablets] GetTabletsResponse tablets */ /** - * Constructs a new GetSchemaResponse. + * Constructs a new GetTabletsResponse. * @memberof vtctldata - * @classdesc Represents a GetSchemaResponse. - * @implements IGetSchemaResponse + * @classdesc Represents a GetTabletsResponse. + * @implements IGetTabletsResponse * @constructor - * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set + * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set */ - function GetSchemaResponse(properties) { + function GetTabletsResponse(properties) { + this.tablets = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -151513,75 +159693,78 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetSchemaResponse schema. - * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} schema - * @memberof vtctldata.GetSchemaResponse + * GetTabletsResponse tablets. + * @member {Array.} tablets + * @memberof vtctldata.GetTabletsResponse * @instance */ - GetSchemaResponse.prototype.schema = null; + GetTabletsResponse.prototype.tablets = $util.emptyArray; /** - * Creates a new GetSchemaResponse instance using the specified properties. + * Creates a new GetTabletsResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse instance + * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set + * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse instance */ - GetSchemaResponse.create = function create(properties) { - return new GetSchemaResponse(properties); + GetTabletsResponse.create = function create(properties) { + return new GetTabletsResponse(properties); }; /** - * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode + * @param {vtctldata.IGetTabletsResponse} message GetTabletsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaResponse.encode = function encode(message, writer) { + GetTabletsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) - $root.tabletmanagerdata.SchemaDefinition.encode(message.schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tablets != null && message.tablets.length) + for (let i = 0; i < message.tablets.length; ++i) + $root.topodata.Tablet.encode(message.tablets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * Encodes the specified GetTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode + * @param {vtctldata.IGetTabletsResponse} message GetTabletsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer. + * Decodes a GetTabletsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse + * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaResponse.decode = function decode(reader, length) { + GetTabletsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); + if (!(message.tablets && message.tablets.length)) + message.tablets = []; + message.tablets.push($root.topodata.Tablet.decode(reader, reader.uint32())); break; } default: @@ -151593,134 +159776,139 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTabletsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse + * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + GetTabletsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSchemaResponse message. + * Verifies a GetTabletsResponse message. * @function verify - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSchemaResponse.verify = function verify(message) { + GetTabletsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.schema != null && message.hasOwnProperty("schema")) { - let error = $root.tabletmanagerdata.SchemaDefinition.verify(message.schema); - if (error) - return "schema." + error; + if (message.tablets != null && message.hasOwnProperty("tablets")) { + if (!Array.isArray(message.tablets)) + return "tablets: array expected"; + for (let i = 0; i < message.tablets.length; ++i) { + let error = $root.topodata.Tablet.verify(message.tablets[i]); + if (error) + return "tablets." + error; + } } return null; }; /** - * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse + * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse */ - GetSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSchemaResponse) + GetTabletsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletsResponse) return object; - let message = new $root.vtctldata.GetSchemaResponse(); - if (object.schema != null) { - if (typeof object.schema !== "object") - throw TypeError(".vtctldata.GetSchemaResponse.schema: object expected"); - message.schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.schema); + let message = new $root.vtctldata.GetTabletsResponse(); + if (object.tablets) { + if (!Array.isArray(object.tablets)) + throw TypeError(".vtctldata.GetTabletsResponse.tablets: array expected"); + message.tablets = []; + for (let i = 0; i < object.tablets.length; ++i) { + if (typeof object.tablets[i] !== "object") + throw TypeError(".vtctldata.GetTabletsResponse.tablets: object expected"); + message.tablets[i] = $root.topodata.Tablet.fromObject(object.tablets[i]); + } } return message; }; /** - * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetTabletsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.GetSchemaResponse} message GetSchemaResponse + * @param {vtctldata.GetTabletsResponse} message GetTabletsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaResponse.toObject = function toObject(message, options) { + GetTabletsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.schema = null; - if (message.schema != null && message.hasOwnProperty("schema")) - object.schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.schema, options); + if (options.arrays || options.defaults) + object.tablets = []; + if (message.tablets && message.tablets.length) { + object.tablets = []; + for (let j = 0; j < message.tablets.length; ++j) + object.tablets[j] = $root.topodata.Tablet.toObject(message.tablets[j], options); + } return object; }; /** - * Converts this GetSchemaResponse to JSON. + * Converts this GetTabletsResponse to JSON. * @function toJSON - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletsResponse * @instance * @returns {Object.} JSON object */ - GetSchemaResponse.prototype.toJSON = function toJSON() { + GetTabletsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSchemaResponse + * Gets the default type url for GetTabletsResponse * @function getTypeUrl - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTabletsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetSchemaResponse"; + return typeUrlPrefix + "/vtctldata.GetTabletsResponse"; }; - return GetSchemaResponse; + return GetTabletsResponse; })(); - vtctldata.GetSchemaMigrationsRequest = (function() { + vtctldata.GetThrottlerStatusRequest = (function() { /** - * Properties of a GetSchemaMigrationsRequest. + * Properties of a GetThrottlerStatusRequest. * @memberof vtctldata - * @interface IGetSchemaMigrationsRequest - * @property {string|null} [keyspace] GetSchemaMigrationsRequest keyspace - * @property {string|null} [uuid] GetSchemaMigrationsRequest uuid - * @property {string|null} [migration_context] GetSchemaMigrationsRequest migration_context - * @property {vtctldata.SchemaMigration.Status|null} [status] GetSchemaMigrationsRequest status - * @property {vttime.IDuration|null} [recent] GetSchemaMigrationsRequest recent - * @property {vtctldata.QueryOrdering|null} [order] GetSchemaMigrationsRequest order - * @property {number|Long|null} [limit] GetSchemaMigrationsRequest limit - * @property {number|Long|null} [skip] GetSchemaMigrationsRequest skip + * @interface IGetThrottlerStatusRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] GetThrottlerStatusRequest tablet_alias */ /** - * Constructs a new GetSchemaMigrationsRequest. + * Constructs a new GetThrottlerStatusRequest. * @memberof vtctldata - * @classdesc Represents a GetSchemaMigrationsRequest. - * @implements IGetSchemaMigrationsRequest + * @classdesc Represents a GetThrottlerStatusRequest. + * @implements IGetThrottlerStatusRequest * @constructor - * @param {vtctldata.IGetSchemaMigrationsRequest=} [properties] Properties to set + * @param {vtctldata.IGetThrottlerStatusRequest=} [properties] Properties to set */ - function GetSchemaMigrationsRequest(properties) { + function GetThrottlerStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -151728,173 +159916,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetSchemaMigrationsRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetSchemaMigrationsRequest - * @instance - */ - GetSchemaMigrationsRequest.prototype.keyspace = ""; - - /** - * GetSchemaMigrationsRequest uuid. - * @member {string} uuid - * @memberof vtctldata.GetSchemaMigrationsRequest - * @instance - */ - GetSchemaMigrationsRequest.prototype.uuid = ""; - - /** - * GetSchemaMigrationsRequest migration_context. - * @member {string} migration_context - * @memberof vtctldata.GetSchemaMigrationsRequest - * @instance - */ - GetSchemaMigrationsRequest.prototype.migration_context = ""; - - /** - * GetSchemaMigrationsRequest status. - * @member {vtctldata.SchemaMigration.Status} status - * @memberof vtctldata.GetSchemaMigrationsRequest - * @instance - */ - GetSchemaMigrationsRequest.prototype.status = 0; - - /** - * GetSchemaMigrationsRequest recent. - * @member {vttime.IDuration|null|undefined} recent - * @memberof vtctldata.GetSchemaMigrationsRequest - * @instance - */ - GetSchemaMigrationsRequest.prototype.recent = null; - - /** - * GetSchemaMigrationsRequest order. - * @member {vtctldata.QueryOrdering} order - * @memberof vtctldata.GetSchemaMigrationsRequest - * @instance - */ - GetSchemaMigrationsRequest.prototype.order = 0; - - /** - * GetSchemaMigrationsRequest limit. - * @member {number|Long} limit - * @memberof vtctldata.GetSchemaMigrationsRequest - * @instance - */ - GetSchemaMigrationsRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * GetSchemaMigrationsRequest skip. - * @member {number|Long} skip - * @memberof vtctldata.GetSchemaMigrationsRequest + * GetThrottlerStatusRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.GetThrottlerStatusRequest * @instance */ - GetSchemaMigrationsRequest.prototype.skip = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + GetThrottlerStatusRequest.prototype.tablet_alias = null; /** - * Creates a new GetSchemaMigrationsRequest instance using the specified properties. + * Creates a new GetThrottlerStatusRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetSchemaMigrationsRequest + * @memberof vtctldata.GetThrottlerStatusRequest * @static - * @param {vtctldata.IGetSchemaMigrationsRequest=} [properties] Properties to set - * @returns {vtctldata.GetSchemaMigrationsRequest} GetSchemaMigrationsRequest instance + * @param {vtctldata.IGetThrottlerStatusRequest=} [properties] Properties to set + * @returns {vtctldata.GetThrottlerStatusRequest} GetThrottlerStatusRequest instance */ - GetSchemaMigrationsRequest.create = function create(properties) { - return new GetSchemaMigrationsRequest(properties); + GetThrottlerStatusRequest.create = function create(properties) { + return new GetThrottlerStatusRequest(properties); }; /** - * Encodes the specified GetSchemaMigrationsRequest message. Does not implicitly {@link vtctldata.GetSchemaMigrationsRequest.verify|verify} messages. + * Encodes the specified GetThrottlerStatusRequest message. Does not implicitly {@link vtctldata.GetThrottlerStatusRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSchemaMigrationsRequest + * @memberof vtctldata.GetThrottlerStatusRequest * @static - * @param {vtctldata.IGetSchemaMigrationsRequest} message GetSchemaMigrationsRequest message or plain object to encode + * @param {vtctldata.IGetThrottlerStatusRequest} message GetThrottlerStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaMigrationsRequest.encode = function encode(message, writer) { + GetThrottlerStatusRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); - if (message.migration_context != null && Object.hasOwnProperty.call(message, "migration_context")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.migration_context); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); - if (message.recent != null && Object.hasOwnProperty.call(message, "recent")) - $root.vttime.Duration.encode(message.recent, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.order != null && Object.hasOwnProperty.call(message, "order")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.order); - if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) - writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.limit); - if (message.skip != null && Object.hasOwnProperty.call(message, "skip")) - writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.skip); + 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(); return writer; }; /** - * Encodes the specified GetSchemaMigrationsRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaMigrationsRequest.verify|verify} messages. + * Encodes the specified GetThrottlerStatusRequest message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSchemaMigrationsRequest + * @memberof vtctldata.GetThrottlerStatusRequest * @static - * @param {vtctldata.IGetSchemaMigrationsRequest} message GetSchemaMigrationsRequest message or plain object to encode + * @param {vtctldata.IGetThrottlerStatusRequest} message GetThrottlerStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaMigrationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetThrottlerStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer. + * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSchemaMigrationsRequest + * @memberof vtctldata.GetThrottlerStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSchemaMigrationsRequest} GetSchemaMigrationsRequest + * @returns {vtctldata.GetThrottlerStatusRequest} GetThrottlerStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaMigrationsRequest.decode = function decode(reader, length) { + GetThrottlerStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaMigrationsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetThrottlerStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.uuid = reader.string(); - break; - } - case 3: { - message.migration_context = reader.string(); - break; - } - case 4: { - message.status = reader.int32(); - break; - } - case 5: { - message.recent = $root.vttime.Duration.decode(reader, reader.uint32()); - break; - } - case 6: { - message.order = reader.int32(); - break; - } - case 7: { - message.limit = reader.uint64(); - break; - } - case 8: { - message.skip = reader.uint64(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -151906,286 +159996,127 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSchemaMigrationsRequest + * @memberof vtctldata.GetThrottlerStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSchemaMigrationsRequest} GetSchemaMigrationsRequest + * @returns {vtctldata.GetThrottlerStatusRequest} GetThrottlerStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaMigrationsRequest.decodeDelimited = function decodeDelimited(reader) { + GetThrottlerStatusRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSchemaMigrationsRequest message. + * Verifies a GetThrottlerStatusRequest message. * @function verify - * @memberof vtctldata.GetSchemaMigrationsRequest + * @memberof vtctldata.GetThrottlerStatusRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSchemaMigrationsRequest.verify = function verify(message) { + GetThrottlerStatusRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.uuid != null && message.hasOwnProperty("uuid")) - if (!$util.isString(message.uuid)) - return "uuid: string expected"; - if (message.migration_context != null && message.hasOwnProperty("migration_context")) - if (!$util.isString(message.migration_context)) - return "migration_context: string expected"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.recent != null && message.hasOwnProperty("recent")) { - let error = $root.vttime.Duration.verify(message.recent); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) - return "recent." + error; + return "tablet_alias." + error; } - if (message.order != null && message.hasOwnProperty("order")) - switch (message.order) { - default: - return "order: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit) && !(message.limit && $util.isInteger(message.limit.low) && $util.isInteger(message.limit.high))) - return "limit: integer|Long expected"; - if (message.skip != null && message.hasOwnProperty("skip")) - if (!$util.isInteger(message.skip) && !(message.skip && $util.isInteger(message.skip.low) && $util.isInteger(message.skip.high))) - return "skip: integer|Long expected"; return null; }; /** - * Creates a GetSchemaMigrationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetThrottlerStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetSchemaMigrationsRequest + * @memberof vtctldata.GetThrottlerStatusRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSchemaMigrationsRequest} GetSchemaMigrationsRequest + * @returns {vtctldata.GetThrottlerStatusRequest} GetThrottlerStatusRequest */ - GetSchemaMigrationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSchemaMigrationsRequest) + GetThrottlerStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetThrottlerStatusRequest) return object; - let message = new $root.vtctldata.GetSchemaMigrationsRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.uuid != null) - message.uuid = String(object.uuid); - if (object.migration_context != null) - message.migration_context = String(object.migration_context); - switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "UNKNOWN": - case 0: - message.status = 0; - break; - case "REQUESTED": - case 1: - message.status = 1; - break; - case "CANCELLED": - case 2: - message.status = 2; - break; - case "QUEUED": - case 3: - message.status = 3; - break; - case "READY": - case 4: - message.status = 4; - break; - case "RUNNING": - case 5: - message.status = 5; - break; - case "COMPLETE": - case 6: - message.status = 6; - break; - case "FAILED": - case 7: - message.status = 7; - break; - } - if (object.recent != null) { - if (typeof object.recent !== "object") - throw TypeError(".vtctldata.GetSchemaMigrationsRequest.recent: object expected"); - message.recent = $root.vttime.Duration.fromObject(object.recent); - } - switch (object.order) { - default: - if (typeof object.order === "number") { - message.order = object.order; - break; - } - break; - case "NONE": - case 0: - message.order = 0; - break; - case "ASCENDING": - case 1: - message.order = 1; - break; - case "DESCENDING": - case 2: - message.order = 2; - break; + let message = new $root.vtctldata.GetThrottlerStatusRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.GetThrottlerStatusRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } - if (object.limit != null) - if ($util.Long) - (message.limit = $util.Long.fromValue(object.limit)).unsigned = true; - else if (typeof object.limit === "string") - message.limit = parseInt(object.limit, 10); - else if (typeof object.limit === "number") - message.limit = object.limit; - else if (typeof object.limit === "object") - message.limit = new $util.LongBits(object.limit.low >>> 0, object.limit.high >>> 0).toNumber(true); - if (object.skip != null) - if ($util.Long) - (message.skip = $util.Long.fromValue(object.skip)).unsigned = true; - else if (typeof object.skip === "string") - message.skip = parseInt(object.skip, 10); - else if (typeof object.skip === "number") - message.skip = object.skip; - else if (typeof object.skip === "object") - message.skip = new $util.LongBits(object.skip.low >>> 0, object.skip.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a GetSchemaMigrationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetThrottlerStatusRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSchemaMigrationsRequest + * @memberof vtctldata.GetThrottlerStatusRequest * @static - * @param {vtctldata.GetSchemaMigrationsRequest} message GetSchemaMigrationsRequest + * @param {vtctldata.GetThrottlerStatusRequest} message GetThrottlerStatusRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaMigrationsRequest.toObject = function toObject(message, options) { + GetThrottlerStatusRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.uuid = ""; - object.migration_context = ""; - object.status = options.enums === String ? "UNKNOWN" : 0; - object.recent = null; - object.order = options.enums === String ? "NONE" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.limit = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.skip = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.skip = options.longs === String ? "0" : 0; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.uuid != null && message.hasOwnProperty("uuid")) - object.uuid = message.uuid; - if (message.migration_context != null && message.hasOwnProperty("migration_context")) - object.migration_context = message.migration_context; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.vtctldata.SchemaMigration.Status[message.status] === undefined ? message.status : $root.vtctldata.SchemaMigration.Status[message.status] : message.status; - if (message.recent != null && message.hasOwnProperty("recent")) - object.recent = $root.vttime.Duration.toObject(message.recent, options); - if (message.order != null && message.hasOwnProperty("order")) - object.order = options.enums === String ? $root.vtctldata.QueryOrdering[message.order] === undefined ? message.order : $root.vtctldata.QueryOrdering[message.order] : message.order; - if (message.limit != null && message.hasOwnProperty("limit")) - if (typeof message.limit === "number") - object.limit = options.longs === String ? String(message.limit) : message.limit; - else - object.limit = options.longs === String ? $util.Long.prototype.toString.call(message.limit) : options.longs === Number ? new $util.LongBits(message.limit.low >>> 0, message.limit.high >>> 0).toNumber(true) : message.limit; - if (message.skip != null && message.hasOwnProperty("skip")) - if (typeof message.skip === "number") - object.skip = options.longs === String ? String(message.skip) : message.skip; - else - object.skip = options.longs === String ? $util.Long.prototype.toString.call(message.skip) : options.longs === Number ? new $util.LongBits(message.skip.low >>> 0, message.skip.high >>> 0).toNumber(true) : message.skip; + if (options.defaults) + object.tablet_alias = null; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); return object; }; /** - * Converts this GetSchemaMigrationsRequest to JSON. + * Converts this GetThrottlerStatusRequest to JSON. * @function toJSON - * @memberof vtctldata.GetSchemaMigrationsRequest + * @memberof vtctldata.GetThrottlerStatusRequest * @instance * @returns {Object.} JSON object */ - GetSchemaMigrationsRequest.prototype.toJSON = function toJSON() { + GetThrottlerStatusRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSchemaMigrationsRequest + * Gets the default type url for GetThrottlerStatusRequest * @function getTypeUrl - * @memberof vtctldata.GetSchemaMigrationsRequest + * @memberof vtctldata.GetThrottlerStatusRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSchemaMigrationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetThrottlerStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetSchemaMigrationsRequest"; + return typeUrlPrefix + "/vtctldata.GetThrottlerStatusRequest"; }; - return GetSchemaMigrationsRequest; + return GetThrottlerStatusRequest; })(); - vtctldata.GetSchemaMigrationsResponse = (function() { + vtctldata.GetThrottlerStatusResponse = (function() { /** - * Properties of a GetSchemaMigrationsResponse. + * Properties of a GetThrottlerStatusResponse. * @memberof vtctldata - * @interface IGetSchemaMigrationsResponse - * @property {Array.|null} [migrations] GetSchemaMigrationsResponse migrations + * @interface IGetThrottlerStatusResponse + * @property {tabletmanagerdata.IGetThrottlerStatusResponse|null} [status] GetThrottlerStatusResponse status */ /** - * Constructs a new GetSchemaMigrationsResponse. + * Constructs a new GetThrottlerStatusResponse. * @memberof vtctldata - * @classdesc Represents a GetSchemaMigrationsResponse. - * @implements IGetSchemaMigrationsResponse + * @classdesc Represents a GetThrottlerStatusResponse. + * @implements IGetThrottlerStatusResponse * @constructor - * @param {vtctldata.IGetSchemaMigrationsResponse=} [properties] Properties to set + * @param {vtctldata.IGetThrottlerStatusResponse=} [properties] Properties to set */ - function GetSchemaMigrationsResponse(properties) { - this.migrations = []; + function GetThrottlerStatusResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -152193,78 +160124,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetSchemaMigrationsResponse migrations. - * @member {Array.} migrations - * @memberof vtctldata.GetSchemaMigrationsResponse + * GetThrottlerStatusResponse status. + * @member {tabletmanagerdata.IGetThrottlerStatusResponse|null|undefined} status + * @memberof vtctldata.GetThrottlerStatusResponse * @instance */ - GetSchemaMigrationsResponse.prototype.migrations = $util.emptyArray; + GetThrottlerStatusResponse.prototype.status = null; /** - * Creates a new GetSchemaMigrationsResponse instance using the specified properties. + * Creates a new GetThrottlerStatusResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetSchemaMigrationsResponse + * @memberof vtctldata.GetThrottlerStatusResponse * @static - * @param {vtctldata.IGetSchemaMigrationsResponse=} [properties] Properties to set - * @returns {vtctldata.GetSchemaMigrationsResponse} GetSchemaMigrationsResponse instance + * @param {vtctldata.IGetThrottlerStatusResponse=} [properties] Properties to set + * @returns {vtctldata.GetThrottlerStatusResponse} GetThrottlerStatusResponse instance */ - GetSchemaMigrationsResponse.create = function create(properties) { - return new GetSchemaMigrationsResponse(properties); + GetThrottlerStatusResponse.create = function create(properties) { + return new GetThrottlerStatusResponse(properties); }; /** - * Encodes the specified GetSchemaMigrationsResponse message. Does not implicitly {@link vtctldata.GetSchemaMigrationsResponse.verify|verify} messages. + * Encodes the specified GetThrottlerStatusResponse message. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSchemaMigrationsResponse + * @memberof vtctldata.GetThrottlerStatusResponse * @static - * @param {vtctldata.IGetSchemaMigrationsResponse} message GetSchemaMigrationsResponse message or plain object to encode + * @param {vtctldata.IGetThrottlerStatusResponse} message GetThrottlerStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaMigrationsResponse.encode = function encode(message, writer) { + GetThrottlerStatusResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.migrations != null && message.migrations.length) - for (let i = 0; i < message.migrations.length; ++i) - $root.vtctldata.SchemaMigration.encode(message.migrations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.tabletmanagerdata.GetThrottlerStatusResponse.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetSchemaMigrationsResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaMigrationsResponse.verify|verify} messages. + * Encodes the specified GetThrottlerStatusResponse message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSchemaMigrationsResponse + * @memberof vtctldata.GetThrottlerStatusResponse * @static - * @param {vtctldata.IGetSchemaMigrationsResponse} message GetSchemaMigrationsResponse message or plain object to encode + * @param {vtctldata.IGetThrottlerStatusResponse} message GetThrottlerStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaMigrationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetThrottlerStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer. + * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSchemaMigrationsResponse + * @memberof vtctldata.GetThrottlerStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSchemaMigrationsResponse} GetSchemaMigrationsResponse + * @returns {vtctldata.GetThrottlerStatusResponse} GetThrottlerStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaMigrationsResponse.decode = function decode(reader, length) { + GetThrottlerStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaMigrationsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetThrottlerStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.migrations && message.migrations.length)) - message.migrations = []; - message.migrations.push($root.vtctldata.SchemaMigration.decode(reader, reader.uint32())); + message.status = $root.tabletmanagerdata.GetThrottlerStatusResponse.decode(reader, reader.uint32()); break; } default: @@ -152276,142 +160204,129 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSchemaMigrationsResponse + * @memberof vtctldata.GetThrottlerStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSchemaMigrationsResponse} GetSchemaMigrationsResponse + * @returns {vtctldata.GetThrottlerStatusResponse} GetThrottlerStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaMigrationsResponse.decodeDelimited = function decodeDelimited(reader) { + GetThrottlerStatusResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSchemaMigrationsResponse message. + * Verifies a GetThrottlerStatusResponse message. * @function verify - * @memberof vtctldata.GetSchemaMigrationsResponse + * @memberof vtctldata.GetThrottlerStatusResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSchemaMigrationsResponse.verify = function verify(message) { + GetThrottlerStatusResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.migrations != null && message.hasOwnProperty("migrations")) { - if (!Array.isArray(message.migrations)) - return "migrations: array expected"; - for (let i = 0; i < message.migrations.length; ++i) { - let error = $root.vtctldata.SchemaMigration.verify(message.migrations[i]); - if (error) - return "migrations." + error; - } + if (message.status != null && message.hasOwnProperty("status")) { + let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.verify(message.status); + if (error) + return "status." + error; } return null; }; /** - * Creates a GetSchemaMigrationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetThrottlerStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetSchemaMigrationsResponse + * @memberof vtctldata.GetThrottlerStatusResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSchemaMigrationsResponse} GetSchemaMigrationsResponse + * @returns {vtctldata.GetThrottlerStatusResponse} GetThrottlerStatusResponse */ - GetSchemaMigrationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSchemaMigrationsResponse) + GetThrottlerStatusResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetThrottlerStatusResponse) return object; - let message = new $root.vtctldata.GetSchemaMigrationsResponse(); - if (object.migrations) { - if (!Array.isArray(object.migrations)) - throw TypeError(".vtctldata.GetSchemaMigrationsResponse.migrations: array expected"); - message.migrations = []; - for (let i = 0; i < object.migrations.length; ++i) { - if (typeof object.migrations[i] !== "object") - throw TypeError(".vtctldata.GetSchemaMigrationsResponse.migrations: object expected"); - message.migrations[i] = $root.vtctldata.SchemaMigration.fromObject(object.migrations[i]); - } + let message = new $root.vtctldata.GetThrottlerStatusResponse(); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".vtctldata.GetThrottlerStatusResponse.status: object expected"); + message.status = $root.tabletmanagerdata.GetThrottlerStatusResponse.fromObject(object.status); } return message; }; /** - * Creates a plain object from a GetSchemaMigrationsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetThrottlerStatusResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSchemaMigrationsResponse + * @memberof vtctldata.GetThrottlerStatusResponse * @static - * @param {vtctldata.GetSchemaMigrationsResponse} message GetSchemaMigrationsResponse + * @param {vtctldata.GetThrottlerStatusResponse} message GetThrottlerStatusResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaMigrationsResponse.toObject = function toObject(message, options) { + GetThrottlerStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.migrations = []; - if (message.migrations && message.migrations.length) { - object.migrations = []; - for (let j = 0; j < message.migrations.length; ++j) - object.migrations[j] = $root.vtctldata.SchemaMigration.toObject(message.migrations[j], options); - } + if (options.defaults) + object.status = null; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.tabletmanagerdata.GetThrottlerStatusResponse.toObject(message.status, options); return object; }; /** - * Converts this GetSchemaMigrationsResponse to JSON. + * Converts this GetThrottlerStatusResponse to JSON. * @function toJSON - * @memberof vtctldata.GetSchemaMigrationsResponse + * @memberof vtctldata.GetThrottlerStatusResponse * @instance * @returns {Object.} JSON object */ - GetSchemaMigrationsResponse.prototype.toJSON = function toJSON() { + GetThrottlerStatusResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSchemaMigrationsResponse + * Gets the default type url for GetThrottlerStatusResponse * @function getTypeUrl - * @memberof vtctldata.GetSchemaMigrationsResponse + * @memberof vtctldata.GetThrottlerStatusResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSchemaMigrationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetThrottlerStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetSchemaMigrationsResponse"; + return typeUrlPrefix + "/vtctldata.GetThrottlerStatusResponse"; }; - return GetSchemaMigrationsResponse; + return GetThrottlerStatusResponse; })(); - vtctldata.GetShardReplicationRequest = (function() { + vtctldata.GetTopologyPathRequest = (function() { /** - * Properties of a GetShardReplicationRequest. + * Properties of a GetTopologyPathRequest. * @memberof vtctldata - * @interface IGetShardReplicationRequest - * @property {string|null} [keyspace] GetShardReplicationRequest keyspace - * @property {string|null} [shard] GetShardReplicationRequest shard - * @property {Array.|null} [cells] GetShardReplicationRequest cells + * @interface IGetTopologyPathRequest + * @property {string|null} [path] GetTopologyPathRequest path + * @property {number|Long|null} [version] GetTopologyPathRequest version + * @property {boolean|null} [as_json] GetTopologyPathRequest as_json */ /** - * Constructs a new GetShardReplicationRequest. + * Constructs a new GetTopologyPathRequest. * @memberof vtctldata - * @classdesc Represents a GetShardReplicationRequest. - * @implements IGetShardReplicationRequest + * @classdesc Represents a GetTopologyPathRequest. + * @implements IGetTopologyPathRequest * @constructor - * @param {vtctldata.IGetShardReplicationRequest=} [properties] Properties to set + * @param {vtctldata.IGetTopologyPathRequest=} [properties] Properties to set */ - function GetShardReplicationRequest(properties) { - this.cells = []; + function GetTopologyPathRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -152419,106 +160334,103 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetShardReplicationRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetShardReplicationRequest + * GetTopologyPathRequest path. + * @member {string} path + * @memberof vtctldata.GetTopologyPathRequest * @instance */ - GetShardReplicationRequest.prototype.keyspace = ""; + GetTopologyPathRequest.prototype.path = ""; /** - * GetShardReplicationRequest shard. - * @member {string} shard - * @memberof vtctldata.GetShardReplicationRequest + * GetTopologyPathRequest version. + * @member {number|Long} version + * @memberof vtctldata.GetTopologyPathRequest * @instance */ - GetShardReplicationRequest.prototype.shard = ""; + GetTopologyPathRequest.prototype.version = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * GetShardReplicationRequest cells. - * @member {Array.} cells - * @memberof vtctldata.GetShardReplicationRequest + * GetTopologyPathRequest as_json. + * @member {boolean} as_json + * @memberof vtctldata.GetTopologyPathRequest * @instance */ - GetShardReplicationRequest.prototype.cells = $util.emptyArray; + GetTopologyPathRequest.prototype.as_json = false; /** - * Creates a new GetShardReplicationRequest instance using the specified properties. + * Creates a new GetTopologyPathRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetShardReplicationRequest + * @memberof vtctldata.GetTopologyPathRequest * @static - * @param {vtctldata.IGetShardReplicationRequest=} [properties] Properties to set - * @returns {vtctldata.GetShardReplicationRequest} GetShardReplicationRequest instance + * @param {vtctldata.IGetTopologyPathRequest=} [properties] Properties to set + * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest instance */ - GetShardReplicationRequest.create = function create(properties) { - return new GetShardReplicationRequest(properties); + GetTopologyPathRequest.create = function create(properties) { + return new GetTopologyPathRequest(properties); }; /** - * Encodes the specified GetShardReplicationRequest message. Does not implicitly {@link vtctldata.GetShardReplicationRequest.verify|verify} messages. + * Encodes the specified GetTopologyPathRequest message. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetShardReplicationRequest + * @memberof vtctldata.GetTopologyPathRequest * @static - * @param {vtctldata.IGetShardReplicationRequest} message GetShardReplicationRequest message or plain object to encode + * @param {vtctldata.IGetTopologyPathRequest} message GetTopologyPathRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardReplicationRequest.encode = function encode(message, writer) { + GetTopologyPathRequest.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.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.version); + if (message.as_json != null && Object.hasOwnProperty.call(message, "as_json")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.as_json); return writer; }; /** - * Encodes the specified GetShardReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardReplicationRequest.verify|verify} messages. + * Encodes the specified GetTopologyPathRequest message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetShardReplicationRequest + * @memberof vtctldata.GetTopologyPathRequest * @static - * @param {vtctldata.IGetShardReplicationRequest} message GetShardReplicationRequest message or plain object to encode + * @param {vtctldata.IGetTopologyPathRequest} message GetTopologyPathRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTopologyPathRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetShardReplicationRequest message from the specified reader or buffer. + * Decodes a GetTopologyPathRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetShardReplicationRequest + * @memberof vtctldata.GetTopologyPathRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetShardReplicationRequest} GetShardReplicationRequest + * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardReplicationRequest.decode = function decode(reader, length) { + GetTopologyPathRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardReplicationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTopologyPathRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + message.path = reader.string(); break; } case 2: { - message.shard = reader.string(); + message.version = reader.int64(); break; } case 3: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + message.as_json = reader.bool(); break; } default: @@ -152530,153 +160442,153 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetShardReplicationRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTopologyPathRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetShardReplicationRequest + * @memberof vtctldata.GetTopologyPathRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetShardReplicationRequest} GetShardReplicationRequest + * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardReplicationRequest.decodeDelimited = function decodeDelimited(reader) { + GetTopologyPathRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetShardReplicationRequest message. + * Verifies a GetTopologyPathRequest message. * @function verify - * @memberof vtctldata.GetShardReplicationRequest + * @memberof vtctldata.GetTopologyPathRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetShardReplicationRequest.verify = function verify(message) { + GetTopologyPathRequest.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.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high))) + return "version: integer|Long expected"; + if (message.as_json != null && message.hasOwnProperty("as_json")) + if (typeof message.as_json !== "boolean") + return "as_json: boolean expected"; return null; }; /** - * Creates a GetShardReplicationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTopologyPathRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetShardReplicationRequest + * @memberof vtctldata.GetTopologyPathRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetShardReplicationRequest} GetShardReplicationRequest + * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest */ - GetShardReplicationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetShardReplicationRequest) + GetTopologyPathRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTopologyPathRequest) return object; - let message = new $root.vtctldata.GetShardReplicationRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.GetShardReplicationRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } + let message = new $root.vtctldata.GetTopologyPathRequest(); + if (object.path != null) + message.path = String(object.path); + if (object.version != null) + if ($util.Long) + (message.version = $util.Long.fromValue(object.version)).unsigned = false; + else if (typeof object.version === "string") + message.version = parseInt(object.version, 10); + else if (typeof object.version === "number") + message.version = object.version; + else if (typeof object.version === "object") + message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(); + if (object.as_json != null) + message.as_json = Boolean(object.as_json); return message; }; /** - * Creates a plain object from a GetShardReplicationRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTopologyPathRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetShardReplicationRequest + * @memberof vtctldata.GetTopologyPathRequest * @static - * @param {vtctldata.GetShardReplicationRequest} message GetShardReplicationRequest + * @param {vtctldata.GetTopologyPathRequest} message GetTopologyPathRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShardReplicationRequest.toObject = function toObject(message, options) { + GetTopologyPathRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.cells = []; if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; + object.path = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.version = options.longs === String ? "0" : 0; + object.as_json = false; } + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.version != null && message.hasOwnProperty("version")) + if (typeof message.version === "number") + object.version = options.longs === String ? String(message.version) : message.version; + else + object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber() : message.version; + if (message.as_json != null && message.hasOwnProperty("as_json")) + object.as_json = message.as_json; return object; }; /** - * Converts this GetShardReplicationRequest to JSON. + * Converts this GetTopologyPathRequest to JSON. * @function toJSON - * @memberof vtctldata.GetShardReplicationRequest + * @memberof vtctldata.GetTopologyPathRequest * @instance * @returns {Object.} JSON object */ - GetShardReplicationRequest.prototype.toJSON = function toJSON() { + GetTopologyPathRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetShardReplicationRequest + * Gets the default type url for GetTopologyPathRequest * @function getTypeUrl - * @memberof vtctldata.GetShardReplicationRequest + * @memberof vtctldata.GetTopologyPathRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetShardReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTopologyPathRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetShardReplicationRequest"; + return typeUrlPrefix + "/vtctldata.GetTopologyPathRequest"; }; - return GetShardReplicationRequest; + return GetTopologyPathRequest; })(); - vtctldata.GetShardReplicationResponse = (function() { + vtctldata.GetTopologyPathResponse = (function() { /** - * Properties of a GetShardReplicationResponse. + * Properties of a GetTopologyPathResponse. * @memberof vtctldata - * @interface IGetShardReplicationResponse - * @property {Object.|null} [shard_replication_by_cell] GetShardReplicationResponse shard_replication_by_cell + * @interface IGetTopologyPathResponse + * @property {vtctldata.ITopologyCell|null} [cell] GetTopologyPathResponse cell */ /** - * Constructs a new GetShardReplicationResponse. + * Constructs a new GetTopologyPathResponse. * @memberof vtctldata - * @classdesc Represents a GetShardReplicationResponse. - * @implements IGetShardReplicationResponse + * @classdesc Represents a GetTopologyPathResponse. + * @implements IGetTopologyPathResponse * @constructor - * @param {vtctldata.IGetShardReplicationResponse=} [properties] Properties to set + * @param {vtctldata.IGetTopologyPathResponse=} [properties] Properties to set */ - function GetShardReplicationResponse(properties) { - this.shard_replication_by_cell = {}; + function GetTopologyPathResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -152684,97 +160596,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetShardReplicationResponse shard_replication_by_cell. - * @member {Object.} shard_replication_by_cell - * @memberof vtctldata.GetShardReplicationResponse + * GetTopologyPathResponse cell. + * @member {vtctldata.ITopologyCell|null|undefined} cell + * @memberof vtctldata.GetTopologyPathResponse * @instance */ - GetShardReplicationResponse.prototype.shard_replication_by_cell = $util.emptyObject; + GetTopologyPathResponse.prototype.cell = null; /** - * Creates a new GetShardReplicationResponse instance using the specified properties. + * Creates a new GetTopologyPathResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetShardReplicationResponse + * @memberof vtctldata.GetTopologyPathResponse * @static - * @param {vtctldata.IGetShardReplicationResponse=} [properties] Properties to set - * @returns {vtctldata.GetShardReplicationResponse} GetShardReplicationResponse instance + * @param {vtctldata.IGetTopologyPathResponse=} [properties] Properties to set + * @returns {vtctldata.GetTopologyPathResponse} GetTopologyPathResponse instance */ - GetShardReplicationResponse.create = function create(properties) { - return new GetShardReplicationResponse(properties); + GetTopologyPathResponse.create = function create(properties) { + return new GetTopologyPathResponse(properties); }; /** - * Encodes the specified GetShardReplicationResponse message. Does not implicitly {@link vtctldata.GetShardReplicationResponse.verify|verify} messages. + * Encodes the specified GetTopologyPathResponse message. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetShardReplicationResponse + * @memberof vtctldata.GetTopologyPathResponse * @static - * @param {vtctldata.IGetShardReplicationResponse} message GetShardReplicationResponse message or plain object to encode + * @param {vtctldata.IGetTopologyPathResponse} message GetTopologyPathResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardReplicationResponse.encode = function encode(message, writer) { + GetTopologyPathResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shard_replication_by_cell != null && Object.hasOwnProperty.call(message, "shard_replication_by_cell")) - for (let keys = Object.keys(message.shard_replication_by_cell), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.topodata.ShardReplication.encode(message.shard_replication_by_cell[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + $root.vtctldata.TopologyCell.encode(message.cell, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetShardReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardReplicationResponse.verify|verify} messages. + * Encodes the specified GetTopologyPathResponse message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetShardReplicationResponse + * @memberof vtctldata.GetTopologyPathResponse * @static - * @param {vtctldata.IGetShardReplicationResponse} message GetShardReplicationResponse message or plain object to encode + * @param {vtctldata.IGetTopologyPathResponse} message GetTopologyPathResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardReplicationResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTopologyPathResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetShardReplicationResponse message from the specified reader or buffer. + * Decodes a GetTopologyPathResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetShardReplicationResponse + * @memberof vtctldata.GetTopologyPathResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetShardReplicationResponse} GetShardReplicationResponse + * @returns {vtctldata.GetTopologyPathResponse} GetTopologyPathResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardReplicationResponse.decode = function decode(reader, length) { + GetTopologyPathResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardReplicationResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTopologyPathResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.shard_replication_by_cell === $util.emptyObject) - message.shard_replication_by_cell = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.topodata.ShardReplication.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.shard_replication_by_cell[key] = value; + message.cell = $root.vtctldata.TopologyCell.decode(reader, reader.uint32()); break; } default: @@ -152786,142 +160676,132 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetShardReplicationResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTopologyPathResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetShardReplicationResponse + * @memberof vtctldata.GetTopologyPathResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetShardReplicationResponse} GetShardReplicationResponse + * @returns {vtctldata.GetTopologyPathResponse} GetTopologyPathResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardReplicationResponse.decodeDelimited = function decodeDelimited(reader) { + GetTopologyPathResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetShardReplicationResponse message. + * Verifies a GetTopologyPathResponse message. * @function verify - * @memberof vtctldata.GetShardReplicationResponse + * @memberof vtctldata.GetTopologyPathResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetShardReplicationResponse.verify = function verify(message) { + GetTopologyPathResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard_replication_by_cell != null && message.hasOwnProperty("shard_replication_by_cell")) { - if (!$util.isObject(message.shard_replication_by_cell)) - return "shard_replication_by_cell: object expected"; - let key = Object.keys(message.shard_replication_by_cell); - for (let i = 0; i < key.length; ++i) { - let error = $root.topodata.ShardReplication.verify(message.shard_replication_by_cell[key[i]]); - if (error) - return "shard_replication_by_cell." + error; - } + if (message.cell != null && message.hasOwnProperty("cell")) { + let error = $root.vtctldata.TopologyCell.verify(message.cell); + if (error) + return "cell." + error; } return null; }; /** - * Creates a GetShardReplicationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTopologyPathResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetShardReplicationResponse + * @memberof vtctldata.GetTopologyPathResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetShardReplicationResponse} GetShardReplicationResponse + * @returns {vtctldata.GetTopologyPathResponse} GetTopologyPathResponse */ - GetShardReplicationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetShardReplicationResponse) + GetTopologyPathResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTopologyPathResponse) return object; - let message = new $root.vtctldata.GetShardReplicationResponse(); - if (object.shard_replication_by_cell) { - if (typeof object.shard_replication_by_cell !== "object") - throw TypeError(".vtctldata.GetShardReplicationResponse.shard_replication_by_cell: object expected"); - message.shard_replication_by_cell = {}; - for (let keys = Object.keys(object.shard_replication_by_cell), i = 0; i < keys.length; ++i) { - if (typeof object.shard_replication_by_cell[keys[i]] !== "object") - throw TypeError(".vtctldata.GetShardReplicationResponse.shard_replication_by_cell: object expected"); - message.shard_replication_by_cell[keys[i]] = $root.topodata.ShardReplication.fromObject(object.shard_replication_by_cell[keys[i]]); - } + let message = new $root.vtctldata.GetTopologyPathResponse(); + if (object.cell != null) { + if (typeof object.cell !== "object") + throw TypeError(".vtctldata.GetTopologyPathResponse.cell: object expected"); + message.cell = $root.vtctldata.TopologyCell.fromObject(object.cell); } return message; }; /** - * Creates a plain object from a GetShardReplicationResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetTopologyPathResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetShardReplicationResponse + * @memberof vtctldata.GetTopologyPathResponse * @static - * @param {vtctldata.GetShardReplicationResponse} message GetShardReplicationResponse + * @param {vtctldata.GetTopologyPathResponse} message GetTopologyPathResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShardReplicationResponse.toObject = function toObject(message, options) { + GetTopologyPathResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.shard_replication_by_cell = {}; - let keys2; - if (message.shard_replication_by_cell && (keys2 = Object.keys(message.shard_replication_by_cell)).length) { - object.shard_replication_by_cell = {}; - for (let j = 0; j < keys2.length; ++j) - object.shard_replication_by_cell[keys2[j]] = $root.topodata.ShardReplication.toObject(message.shard_replication_by_cell[keys2[j]], options); - } + if (options.defaults) + object.cell = null; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = $root.vtctldata.TopologyCell.toObject(message.cell, options); return object; }; /** - * Converts this GetShardReplicationResponse to JSON. + * Converts this GetTopologyPathResponse to JSON. * @function toJSON - * @memberof vtctldata.GetShardReplicationResponse + * @memberof vtctldata.GetTopologyPathResponse * @instance * @returns {Object.} JSON object */ - GetShardReplicationResponse.prototype.toJSON = function toJSON() { + GetTopologyPathResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetShardReplicationResponse + * Gets the default type url for GetTopologyPathResponse * @function getTypeUrl - * @memberof vtctldata.GetShardReplicationResponse + * @memberof vtctldata.GetTopologyPathResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetShardReplicationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTopologyPathResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetShardReplicationResponse"; + return typeUrlPrefix + "/vtctldata.GetTopologyPathResponse"; }; - return GetShardReplicationResponse; + return GetTopologyPathResponse; })(); - vtctldata.GetShardRequest = (function() { + vtctldata.TopologyCell = (function() { /** - * Properties of a GetShardRequest. + * Properties of a TopologyCell. * @memberof vtctldata - * @interface IGetShardRequest - * @property {string|null} [keyspace] GetShardRequest keyspace - * @property {string|null} [shard_name] GetShardRequest shard_name + * @interface ITopologyCell + * @property {string|null} [name] TopologyCell name + * @property {string|null} [path] TopologyCell path + * @property {string|null} [data] TopologyCell data + * @property {Array.|null} [children] TopologyCell children + * @property {number|Long|null} [version] TopologyCell version */ /** - * Constructs a new GetShardRequest. + * Constructs a new TopologyCell. * @memberof vtctldata - * @classdesc Represents a GetShardRequest. - * @implements IGetShardRequest + * @classdesc Represents a TopologyCell. + * @implements ITopologyCell * @constructor - * @param {vtctldata.IGetShardRequest=} [properties] Properties to set + * @param {vtctldata.ITopologyCell=} [properties] Properties to set */ - function GetShardRequest(properties) { + function TopologyCell(properties) { + this.children = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -152929,89 +160809,134 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetShardRequest + * TopologyCell name. + * @member {string} name + * @memberof vtctldata.TopologyCell * @instance */ - GetShardRequest.prototype.keyspace = ""; + TopologyCell.prototype.name = ""; /** - * GetShardRequest shard_name. - * @member {string} shard_name - * @memberof vtctldata.GetShardRequest + * TopologyCell path. + * @member {string} path + * @memberof vtctldata.TopologyCell * @instance */ - GetShardRequest.prototype.shard_name = ""; + TopologyCell.prototype.path = ""; /** - * Creates a new GetShardRequest instance using the specified properties. + * TopologyCell data. + * @member {string} data + * @memberof vtctldata.TopologyCell + * @instance + */ + TopologyCell.prototype.data = ""; + + /** + * TopologyCell children. + * @member {Array.} children + * @memberof vtctldata.TopologyCell + * @instance + */ + TopologyCell.prototype.children = $util.emptyArray; + + /** + * TopologyCell version. + * @member {number|Long} version + * @memberof vtctldata.TopologyCell + * @instance + */ + TopologyCell.prototype.version = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new TopologyCell instance using the specified properties. * @function create - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.TopologyCell * @static - * @param {vtctldata.IGetShardRequest=} [properties] Properties to set - * @returns {vtctldata.GetShardRequest} GetShardRequest instance + * @param {vtctldata.ITopologyCell=} [properties] Properties to set + * @returns {vtctldata.TopologyCell} TopologyCell instance */ - GetShardRequest.create = function create(properties) { - return new GetShardRequest(properties); + TopologyCell.create = function create(properties) { + return new TopologyCell(properties); }; /** - * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * Encodes the specified TopologyCell message. Does not implicitly {@link vtctldata.TopologyCell.verify|verify} messages. * @function encode - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.TopologyCell * @static - * @param {vtctldata.IGetShardRequest} message GetShardRequest message or plain object to encode + * @param {vtctldata.ITopologyCell} message TopologyCell message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardRequest.encode = function encode(message, writer) { + TopologyCell.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_name != null && Object.hasOwnProperty.call(message, "shard_name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard_name); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.data); + if (message.children != null && message.children.length) + for (let i = 0; i < message.children.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.children[i]); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.version); return writer; }; /** - * Encodes the specified GetShardRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * Encodes the specified TopologyCell message, length delimited. Does not implicitly {@link vtctldata.TopologyCell.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.TopologyCell * @static - * @param {vtctldata.IGetShardRequest} message GetShardRequest message or plain object to encode + * @param {vtctldata.ITopologyCell} message TopologyCell message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + TopologyCell.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetShardRequest message from the specified reader or buffer. + * Decodes a TopologyCell message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.TopologyCell * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetShardRequest} GetShardRequest + * @returns {vtctldata.TopologyCell} TopologyCell * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardRequest.decode = function decode(reader, length) { + TopologyCell.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TopologyCell(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + message.name = reader.string(); break; } case 2: { - message.shard_name = reader.string(); + message.path = reader.string(); + break; + } + case 3: { + message.data = reader.string(); + break; + } + case 4: { + if (!(message.children && message.children.length)) + message.children = []; + message.children.push(reader.string()); + break; + } + case 5: { + message.version = reader.int64(); break; } default: @@ -153023,131 +160948,183 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetShardRequest message from the specified reader or buffer, length delimited. + * Decodes a TopologyCell message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.TopologyCell * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetShardRequest} GetShardRequest + * @returns {vtctldata.TopologyCell} TopologyCell * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardRequest.decodeDelimited = function decodeDelimited(reader) { + TopologyCell.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetShardRequest message. + * Verifies a TopologyCell message. * @function verify - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.TopologyCell * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetShardRequest.verify = function verify(message) { + TopologyCell.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_name != null && message.hasOwnProperty("shard_name")) - if (!$util.isString(message.shard_name)) - return "shard_name: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.data != null && message.hasOwnProperty("data")) + if (!$util.isString(message.data)) + return "data: string expected"; + if (message.children != null && message.hasOwnProperty("children")) { + if (!Array.isArray(message.children)) + return "children: array expected"; + for (let i = 0; i < message.children.length; ++i) + if (!$util.isString(message.children[i])) + return "children: string[] expected"; + } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high))) + return "version: integer|Long expected"; return null; }; /** - * Creates a GetShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TopologyCell message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.TopologyCell * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetShardRequest} GetShardRequest + * @returns {vtctldata.TopologyCell} TopologyCell */ - GetShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetShardRequest) + TopologyCell.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.TopologyCell) return object; - let message = new $root.vtctldata.GetShardRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard_name != null) - message.shard_name = String(object.shard_name); + let message = new $root.vtctldata.TopologyCell(); + if (object.name != null) + message.name = String(object.name); + if (object.path != null) + message.path = String(object.path); + if (object.data != null) + message.data = String(object.data); + if (object.children) { + if (!Array.isArray(object.children)) + throw TypeError(".vtctldata.TopologyCell.children: array expected"); + message.children = []; + for (let i = 0; i < object.children.length; ++i) + message.children[i] = String(object.children[i]); + } + if (object.version != null) + if ($util.Long) + (message.version = $util.Long.fromValue(object.version)).unsigned = false; + else if (typeof object.version === "string") + message.version = parseInt(object.version, 10); + else if (typeof object.version === "number") + message.version = object.version; + else if (typeof object.version === "object") + message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a GetShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a TopologyCell message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.TopologyCell * @static - * @param {vtctldata.GetShardRequest} message GetShardRequest + * @param {vtctldata.TopologyCell} message TopologyCell * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShardRequest.toObject = function toObject(message, options) { + TopologyCell.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.children = []; if (options.defaults) { - object.keyspace = ""; - object.shard_name = ""; + object.name = ""; + object.path = ""; + object.data = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.version = options.longs === String ? "0" : 0; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard_name != null && message.hasOwnProperty("shard_name")) - object.shard_name = message.shard_name; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.data != null && message.hasOwnProperty("data")) + object.data = message.data; + if (message.children && message.children.length) { + object.children = []; + for (let j = 0; j < message.children.length; ++j) + object.children[j] = message.children[j]; + } + if (message.version != null && message.hasOwnProperty("version")) + if (typeof message.version === "number") + object.version = options.longs === String ? String(message.version) : message.version; + else + object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber() : message.version; return object; }; /** - * Converts this GetShardRequest to JSON. + * Converts this TopologyCell to JSON. * @function toJSON - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.TopologyCell * @instance * @returns {Object.} JSON object */ - GetShardRequest.prototype.toJSON = function toJSON() { + TopologyCell.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetShardRequest + * Gets the default type url for TopologyCell * @function getTypeUrl - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.TopologyCell * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TopologyCell.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetShardRequest"; + return typeUrlPrefix + "/vtctldata.TopologyCell"; }; - return GetShardRequest; + return TopologyCell; })(); - vtctldata.GetShardResponse = (function() { + vtctldata.GetUnresolvedTransactionsRequest = (function() { /** - * Properties of a GetShardResponse. + * Properties of a GetUnresolvedTransactionsRequest. * @memberof vtctldata - * @interface IGetShardResponse - * @property {vtctldata.IShard|null} [shard] GetShardResponse shard + * @interface IGetUnresolvedTransactionsRequest + * @property {string|null} [keyspace] GetUnresolvedTransactionsRequest keyspace + * @property {number|Long|null} [abandon_age] GetUnresolvedTransactionsRequest abandon_age */ /** - * Constructs a new GetShardResponse. + * Constructs a new GetUnresolvedTransactionsRequest. * @memberof vtctldata - * @classdesc Represents a GetShardResponse. - * @implements IGetShardResponse + * @classdesc Represents a GetUnresolvedTransactionsRequest. + * @implements IGetUnresolvedTransactionsRequest * @constructor - * @param {vtctldata.IGetShardResponse=} [properties] Properties to set + * @param {vtctldata.IGetUnresolvedTransactionsRequest=} [properties] Properties to set */ - function GetShardResponse(properties) { + function GetUnresolvedTransactionsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -153155,75 +161132,89 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetShardResponse shard. - * @member {vtctldata.IShard|null|undefined} shard - * @memberof vtctldata.GetShardResponse + * GetUnresolvedTransactionsRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.GetUnresolvedTransactionsRequest * @instance */ - GetShardResponse.prototype.shard = null; + GetUnresolvedTransactionsRequest.prototype.keyspace = ""; /** - * Creates a new GetShardResponse instance using the specified properties. + * GetUnresolvedTransactionsRequest abandon_age. + * @member {number|Long} abandon_age + * @memberof vtctldata.GetUnresolvedTransactionsRequest + * @instance + */ + GetUnresolvedTransactionsRequest.prototype.abandon_age = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new GetUnresolvedTransactionsRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetUnresolvedTransactionsRequest * @static - * @param {vtctldata.IGetShardResponse=} [properties] Properties to set - * @returns {vtctldata.GetShardResponse} GetShardResponse instance + * @param {vtctldata.IGetUnresolvedTransactionsRequest=} [properties] Properties to set + * @returns {vtctldata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest instance */ - GetShardResponse.create = function create(properties) { - return new GetShardResponse(properties); + GetUnresolvedTransactionsRequest.create = function create(properties) { + return new GetUnresolvedTransactionsRequest(properties); }; /** - * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. + * Encodes the specified GetUnresolvedTransactionsRequest message. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetUnresolvedTransactionsRequest * @static - * @param {vtctldata.IGetShardResponse} message GetShardResponse message or plain object to encode + * @param {vtctldata.IGetUnresolvedTransactionsRequest} message GetUnresolvedTransactionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardResponse.encode = function encode(message, writer) { + GetUnresolvedTransactionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - $root.vtctldata.Shard.encode(message.shard, 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.abandon_age != null && Object.hasOwnProperty.call(message, "abandon_age")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.abandon_age); return writer; }; /** - * Encodes the specified GetShardResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. + * Encodes the specified GetUnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetUnresolvedTransactionsRequest * @static - * @param {vtctldata.IGetShardResponse} message GetShardResponse message or plain object to encode + * @param {vtctldata.IGetUnresolvedTransactionsRequest} message GetUnresolvedTransactionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetUnresolvedTransactionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetShardResponse message from the specified reader or buffer. + * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetUnresolvedTransactionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetShardResponse} GetShardResponse + * @returns {vtctldata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardResponse.decode = function decode(reader, length) { + GetUnresolvedTransactionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetUnresolvedTransactionsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.shard = $root.vtctldata.Shard.decode(reader, reader.uint32()); + message.keyspace = reader.string(); + break; + } + case 2: { + message.abandon_age = reader.int64(); break; } default: @@ -153235,126 +161226,146 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetShardResponse message from the specified reader or buffer, length delimited. + * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetUnresolvedTransactionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetShardResponse} GetShardResponse + * @returns {vtctldata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardResponse.decodeDelimited = function decodeDelimited(reader) { + GetUnresolvedTransactionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetShardResponse message. + * Verifies a GetUnresolvedTransactionsRequest message. * @function verify - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetUnresolvedTransactionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetShardResponse.verify = function verify(message) { + GetUnresolvedTransactionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard != null && message.hasOwnProperty("shard")) { - let error = $root.vtctldata.Shard.verify(message.shard); - if (error) - return "shard." + error; - } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.abandon_age != null && message.hasOwnProperty("abandon_age")) + if (!$util.isInteger(message.abandon_age) && !(message.abandon_age && $util.isInteger(message.abandon_age.low) && $util.isInteger(message.abandon_age.high))) + return "abandon_age: integer|Long expected"; return null; }; /** - * Creates a GetShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetUnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetUnresolvedTransactionsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetShardResponse} GetShardResponse + * @returns {vtctldata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest */ - GetShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetShardResponse) + GetUnresolvedTransactionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetUnresolvedTransactionsRequest) return object; - let message = new $root.vtctldata.GetShardResponse(); - if (object.shard != null) { - if (typeof object.shard !== "object") - throw TypeError(".vtctldata.GetShardResponse.shard: object expected"); - message.shard = $root.vtctldata.Shard.fromObject(object.shard); - } + let message = new $root.vtctldata.GetUnresolvedTransactionsRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.abandon_age != null) + if ($util.Long) + (message.abandon_age = $util.Long.fromValue(object.abandon_age)).unsigned = false; + else if (typeof object.abandon_age === "string") + message.abandon_age = parseInt(object.abandon_age, 10); + else if (typeof object.abandon_age === "number") + message.abandon_age = object.abandon_age; + else if (typeof object.abandon_age === "object") + message.abandon_age = new $util.LongBits(object.abandon_age.low >>> 0, object.abandon_age.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a GetShardResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetUnresolvedTransactionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetUnresolvedTransactionsRequest * @static - * @param {vtctldata.GetShardResponse} message GetShardResponse + * @param {vtctldata.GetUnresolvedTransactionsRequest} message GetUnresolvedTransactionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShardResponse.toObject = function toObject(message, options) { + GetUnresolvedTransactionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.shard = null; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = $root.vtctldata.Shard.toObject(message.shard, options); + if (options.defaults) { + object.keyspace = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.abandon_age = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.abandon_age = options.longs === String ? "0" : 0; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.abandon_age != null && message.hasOwnProperty("abandon_age")) + if (typeof message.abandon_age === "number") + object.abandon_age = options.longs === String ? String(message.abandon_age) : message.abandon_age; + else + object.abandon_age = options.longs === String ? $util.Long.prototype.toString.call(message.abandon_age) : options.longs === Number ? new $util.LongBits(message.abandon_age.low >>> 0, message.abandon_age.high >>> 0).toNumber() : message.abandon_age; return object; }; /** - * Converts this GetShardResponse to JSON. + * Converts this GetUnresolvedTransactionsRequest to JSON. * @function toJSON - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetUnresolvedTransactionsRequest * @instance * @returns {Object.} JSON object */ - GetShardResponse.prototype.toJSON = function toJSON() { + GetUnresolvedTransactionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetShardResponse + * Gets the default type url for GetUnresolvedTransactionsRequest * @function getTypeUrl - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetUnresolvedTransactionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetUnresolvedTransactionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetShardResponse"; + return typeUrlPrefix + "/vtctldata.GetUnresolvedTransactionsRequest"; }; - return GetShardResponse; + return GetUnresolvedTransactionsRequest; })(); - vtctldata.GetShardRoutingRulesRequest = (function() { + vtctldata.GetUnresolvedTransactionsResponse = (function() { /** - * Properties of a GetShardRoutingRulesRequest. + * Properties of a GetUnresolvedTransactionsResponse. * @memberof vtctldata - * @interface IGetShardRoutingRulesRequest + * @interface IGetUnresolvedTransactionsResponse + * @property {Array.|null} [transactions] GetUnresolvedTransactionsResponse transactions */ /** - * Constructs a new GetShardRoutingRulesRequest. + * Constructs a new GetUnresolvedTransactionsResponse. * @memberof vtctldata - * @classdesc Represents a GetShardRoutingRulesRequest. - * @implements IGetShardRoutingRulesRequest + * @classdesc Represents a GetUnresolvedTransactionsResponse. + * @implements IGetUnresolvedTransactionsResponse * @constructor - * @param {vtctldata.IGetShardRoutingRulesRequest=} [properties] Properties to set + * @param {vtctldata.IGetUnresolvedTransactionsResponse=} [properties] Properties to set */ - function GetShardRoutingRulesRequest(properties) { + function GetUnresolvedTransactionsResponse(properties) { + this.transactions = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -153362,63 +161373,80 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new GetShardRoutingRulesRequest instance using the specified properties. + * GetUnresolvedTransactionsResponse transactions. + * @member {Array.} transactions + * @memberof vtctldata.GetUnresolvedTransactionsResponse + * @instance + */ + GetUnresolvedTransactionsResponse.prototype.transactions = $util.emptyArray; + + /** + * Creates a new GetUnresolvedTransactionsResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetShardRoutingRulesRequest + * @memberof vtctldata.GetUnresolvedTransactionsResponse * @static - * @param {vtctldata.IGetShardRoutingRulesRequest=} [properties] Properties to set - * @returns {vtctldata.GetShardRoutingRulesRequest} GetShardRoutingRulesRequest instance + * @param {vtctldata.IGetUnresolvedTransactionsResponse=} [properties] Properties to set + * @returns {vtctldata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse instance */ - GetShardRoutingRulesRequest.create = function create(properties) { - return new GetShardRoutingRulesRequest(properties); + GetUnresolvedTransactionsResponse.create = function create(properties) { + return new GetUnresolvedTransactionsResponse(properties); }; /** - * Encodes the specified GetShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetShardRoutingRulesRequest.verify|verify} messages. + * Encodes the specified GetUnresolvedTransactionsResponse message. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetShardRoutingRulesRequest + * @memberof vtctldata.GetUnresolvedTransactionsResponse * @static - * @param {vtctldata.IGetShardRoutingRulesRequest} message GetShardRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IGetUnresolvedTransactionsResponse} message GetUnresolvedTransactionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardRoutingRulesRequest.encode = function encode(message, writer) { + GetUnresolvedTransactionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.transactions != null && message.transactions.length) + for (let i = 0; i < message.transactions.length; ++i) + $root.query.TransactionMetadata.encode(message.transactions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRoutingRulesRequest.verify|verify} messages. + * Encodes the specified GetUnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetShardRoutingRulesRequest + * @memberof vtctldata.GetUnresolvedTransactionsResponse * @static - * @param {vtctldata.IGetShardRoutingRulesRequest} message GetShardRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IGetUnresolvedTransactionsResponse} message GetUnresolvedTransactionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetUnresolvedTransactionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer. + * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetShardRoutingRulesRequest + * @memberof vtctldata.GetUnresolvedTransactionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetShardRoutingRulesRequest} GetShardRoutingRulesRequest + * @returns {vtctldata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardRoutingRulesRequest.decode = function decode(reader, length) { + GetUnresolvedTransactionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardRoutingRulesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetUnresolvedTransactionsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.transactions && message.transactions.length)) + message.transactions = []; + message.transactions.push($root.query.TransactionMetadata.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -153428,109 +161456,139 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetShardRoutingRulesRequest + * @memberof vtctldata.GetUnresolvedTransactionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetShardRoutingRulesRequest} GetShardRoutingRulesRequest + * @returns {vtctldata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + GetUnresolvedTransactionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetShardRoutingRulesRequest message. + * Verifies a GetUnresolvedTransactionsResponse message. * @function verify - * @memberof vtctldata.GetShardRoutingRulesRequest + * @memberof vtctldata.GetUnresolvedTransactionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetShardRoutingRulesRequest.verify = function verify(message) { + GetUnresolvedTransactionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.transactions != null && message.hasOwnProperty("transactions")) { + if (!Array.isArray(message.transactions)) + return "transactions: array expected"; + for (let i = 0; i < message.transactions.length; ++i) { + let error = $root.query.TransactionMetadata.verify(message.transactions[i]); + if (error) + return "transactions." + error; + } + } return null; }; /** - * Creates a GetShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetUnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetShardRoutingRulesRequest + * @memberof vtctldata.GetUnresolvedTransactionsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetShardRoutingRulesRequest} GetShardRoutingRulesRequest + * @returns {vtctldata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse */ - GetShardRoutingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetShardRoutingRulesRequest) + GetUnresolvedTransactionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetUnresolvedTransactionsResponse) return object; - return new $root.vtctldata.GetShardRoutingRulesRequest(); + let message = new $root.vtctldata.GetUnresolvedTransactionsResponse(); + if (object.transactions) { + if (!Array.isArray(object.transactions)) + throw TypeError(".vtctldata.GetUnresolvedTransactionsResponse.transactions: array expected"); + message.transactions = []; + for (let i = 0; i < object.transactions.length; ++i) { + if (typeof object.transactions[i] !== "object") + throw TypeError(".vtctldata.GetUnresolvedTransactionsResponse.transactions: object expected"); + message.transactions[i] = $root.query.TransactionMetadata.fromObject(object.transactions[i]); + } + } + return message; }; /** - * Creates a plain object from a GetShardRoutingRulesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetUnresolvedTransactionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetShardRoutingRulesRequest + * @memberof vtctldata.GetUnresolvedTransactionsResponse * @static - * @param {vtctldata.GetShardRoutingRulesRequest} message GetShardRoutingRulesRequest + * @param {vtctldata.GetUnresolvedTransactionsResponse} message GetUnresolvedTransactionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShardRoutingRulesRequest.toObject = function toObject() { - return {}; + GetUnresolvedTransactionsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.transactions = []; + if (message.transactions && message.transactions.length) { + object.transactions = []; + for (let j = 0; j < message.transactions.length; ++j) + object.transactions[j] = $root.query.TransactionMetadata.toObject(message.transactions[j], options); + } + return object; }; /** - * Converts this GetShardRoutingRulesRequest to JSON. + * Converts this GetUnresolvedTransactionsResponse to JSON. * @function toJSON - * @memberof vtctldata.GetShardRoutingRulesRequest + * @memberof vtctldata.GetUnresolvedTransactionsResponse * @instance * @returns {Object.} JSON object */ - GetShardRoutingRulesRequest.prototype.toJSON = function toJSON() { + GetUnresolvedTransactionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetShardRoutingRulesRequest + * Gets the default type url for GetUnresolvedTransactionsResponse * @function getTypeUrl - * @memberof vtctldata.GetShardRoutingRulesRequest + * @memberof vtctldata.GetUnresolvedTransactionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetShardRoutingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetUnresolvedTransactionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetShardRoutingRulesRequest"; + return typeUrlPrefix + "/vtctldata.GetUnresolvedTransactionsResponse"; }; - return GetShardRoutingRulesRequest; + return GetUnresolvedTransactionsResponse; })(); - vtctldata.GetShardRoutingRulesResponse = (function() { + vtctldata.GetTransactionInfoRequest = (function() { /** - * Properties of a GetShardRoutingRulesResponse. + * Properties of a GetTransactionInfoRequest. * @memberof vtctldata - * @interface IGetShardRoutingRulesResponse - * @property {vschema.IShardRoutingRules|null} [shard_routing_rules] GetShardRoutingRulesResponse shard_routing_rules + * @interface IGetTransactionInfoRequest + * @property {string|null} [dtid] GetTransactionInfoRequest dtid */ /** - * Constructs a new GetShardRoutingRulesResponse. + * Constructs a new GetTransactionInfoRequest. * @memberof vtctldata - * @classdesc Represents a GetShardRoutingRulesResponse. - * @implements IGetShardRoutingRulesResponse + * @classdesc Represents a GetTransactionInfoRequest. + * @implements IGetTransactionInfoRequest * @constructor - * @param {vtctldata.IGetShardRoutingRulesResponse=} [properties] Properties to set + * @param {vtctldata.IGetTransactionInfoRequest=} [properties] Properties to set */ - function GetShardRoutingRulesResponse(properties) { + function GetTransactionInfoRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -153538,75 +161596,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetShardRoutingRulesResponse shard_routing_rules. - * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules - * @memberof vtctldata.GetShardRoutingRulesResponse + * GetTransactionInfoRequest dtid. + * @member {string} dtid + * @memberof vtctldata.GetTransactionInfoRequest * @instance */ - GetShardRoutingRulesResponse.prototype.shard_routing_rules = null; + GetTransactionInfoRequest.prototype.dtid = ""; /** - * Creates a new GetShardRoutingRulesResponse instance using the specified properties. + * Creates a new GetTransactionInfoRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetShardRoutingRulesResponse + * @memberof vtctldata.GetTransactionInfoRequest * @static - * @param {vtctldata.IGetShardRoutingRulesResponse=} [properties] Properties to set - * @returns {vtctldata.GetShardRoutingRulesResponse} GetShardRoutingRulesResponse instance + * @param {vtctldata.IGetTransactionInfoRequest=} [properties] Properties to set + * @returns {vtctldata.GetTransactionInfoRequest} GetTransactionInfoRequest instance */ - GetShardRoutingRulesResponse.create = function create(properties) { - return new GetShardRoutingRulesResponse(properties); + GetTransactionInfoRequest.create = function create(properties) { + return new GetTransactionInfoRequest(properties); }; /** - * Encodes the specified GetShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetShardRoutingRulesResponse.verify|verify} messages. + * Encodes the specified GetTransactionInfoRequest message. Does not implicitly {@link vtctldata.GetTransactionInfoRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetShardRoutingRulesResponse + * @memberof vtctldata.GetTransactionInfoRequest * @static - * @param {vtctldata.IGetShardRoutingRulesResponse} message GetShardRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IGetTransactionInfoRequest} message GetTransactionInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardRoutingRulesResponse.encode = function encode(message, writer) { + GetTransactionInfoRequest.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.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dtid); return writer; }; /** - * Encodes the specified GetShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardRoutingRulesResponse.verify|verify} messages. + * Encodes the specified GetTransactionInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetTransactionInfoRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetShardRoutingRulesResponse + * @memberof vtctldata.GetTransactionInfoRequest * @static - * @param {vtctldata.IGetShardRoutingRulesResponse} message GetShardRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IGetTransactionInfoRequest} message GetTransactionInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTransactionInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer. + * Decodes a GetTransactionInfoRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetShardRoutingRulesResponse + * @memberof vtctldata.GetTransactionInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetShardRoutingRulesResponse} GetShardRoutingRulesResponse + * @returns {vtctldata.GetTransactionInfoRequest} GetTransactionInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardRoutingRulesResponse.decode = function decode(reader, length) { + GetTransactionInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardRoutingRulesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTransactionInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); + message.dtid = reader.string(); break; } default: @@ -153618,128 +161676,127 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTransactionInfoRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetShardRoutingRulesResponse + * @memberof vtctldata.GetTransactionInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetShardRoutingRulesResponse} GetShardRoutingRulesResponse + * @returns {vtctldata.GetTransactionInfoRequest} GetTransactionInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { + GetTransactionInfoRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetShardRoutingRulesResponse message. + * Verifies a GetTransactionInfoRequest message. * @function verify - * @memberof vtctldata.GetShardRoutingRulesResponse + * @memberof vtctldata.GetTransactionInfoRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetShardRoutingRulesResponse.verify = function verify(message) { + GetTransactionInfoRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { - let error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); - if (error) - return "shard_routing_rules." + error; - } + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a GetShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTransactionInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetShardRoutingRulesResponse + * @memberof vtctldata.GetTransactionInfoRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetShardRoutingRulesResponse} GetShardRoutingRulesResponse + * @returns {vtctldata.GetTransactionInfoRequest} GetTransactionInfoRequest */ - GetShardRoutingRulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetShardRoutingRulesResponse) + GetTransactionInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTransactionInfoRequest) return object; - let message = new $root.vtctldata.GetShardRoutingRulesResponse(); - if (object.shard_routing_rules != null) { - if (typeof object.shard_routing_rules !== "object") - throw TypeError(".vtctldata.GetShardRoutingRulesResponse.shard_routing_rules: object expected"); - message.shard_routing_rules = $root.vschema.ShardRoutingRules.fromObject(object.shard_routing_rules); - } + let message = new $root.vtctldata.GetTransactionInfoRequest(); + if (object.dtid != null) + message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from a GetShardRoutingRulesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetTransactionInfoRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetShardRoutingRulesResponse + * @memberof vtctldata.GetTransactionInfoRequest * @static - * @param {vtctldata.GetShardRoutingRulesResponse} message GetShardRoutingRulesResponse + * @param {vtctldata.GetTransactionInfoRequest} message GetTransactionInfoRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShardRoutingRulesResponse.toObject = function toObject(message, options) { + GetTransactionInfoRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.shard_routing_rules = 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); + object.dtid = ""; + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; return object; }; /** - * Converts this GetShardRoutingRulesResponse to JSON. + * Converts this GetTransactionInfoRequest to JSON. * @function toJSON - * @memberof vtctldata.GetShardRoutingRulesResponse + * @memberof vtctldata.GetTransactionInfoRequest * @instance * @returns {Object.} JSON object */ - GetShardRoutingRulesResponse.prototype.toJSON = function toJSON() { + GetTransactionInfoRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetShardRoutingRulesResponse + * Gets the default type url for GetTransactionInfoRequest * @function getTypeUrl - * @memberof vtctldata.GetShardRoutingRulesResponse + * @memberof vtctldata.GetTransactionInfoRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetShardRoutingRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTransactionInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetShardRoutingRulesResponse"; + return typeUrlPrefix + "/vtctldata.GetTransactionInfoRequest"; }; - return GetShardRoutingRulesResponse; + return GetTransactionInfoRequest; })(); - vtctldata.GetSrvKeyspaceNamesRequest = (function() { + vtctldata.ShardTransactionState = (function() { /** - * Properties of a GetSrvKeyspaceNamesRequest. + * Properties of a ShardTransactionState. * @memberof vtctldata - * @interface IGetSrvKeyspaceNamesRequest - * @property {Array.|null} [cells] GetSrvKeyspaceNamesRequest cells + * @interface IShardTransactionState + * @property {string|null} [shard] ShardTransactionState shard + * @property {string|null} [state] ShardTransactionState state + * @property {string|null} [message] ShardTransactionState message + * @property {number|Long|null} [time_created] ShardTransactionState time_created + * @property {Array.|null} [statements] ShardTransactionState statements */ /** - * Constructs a new GetSrvKeyspaceNamesRequest. + * Constructs a new ShardTransactionState. * @memberof vtctldata - * @classdesc Represents a GetSrvKeyspaceNamesRequest. - * @implements IGetSrvKeyspaceNamesRequest + * @classdesc Represents a ShardTransactionState. + * @implements IShardTransactionState * @constructor - * @param {vtctldata.IGetSrvKeyspaceNamesRequest=} [properties] Properties to set + * @param {vtctldata.IShardTransactionState=} [properties] Properties to set */ - function GetSrvKeyspaceNamesRequest(properties) { - this.cells = []; + function ShardTransactionState(properties) { + this.statements = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -153747,78 +161804,134 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetSrvKeyspaceNamesRequest cells. - * @member {Array.} cells - * @memberof vtctldata.GetSrvKeyspaceNamesRequest + * ShardTransactionState shard. + * @member {string} shard + * @memberof vtctldata.ShardTransactionState * @instance */ - GetSrvKeyspaceNamesRequest.prototype.cells = $util.emptyArray; + ShardTransactionState.prototype.shard = ""; /** - * Creates a new GetSrvKeyspaceNamesRequest instance using the specified properties. + * ShardTransactionState state. + * @member {string} state + * @memberof vtctldata.ShardTransactionState + * @instance + */ + ShardTransactionState.prototype.state = ""; + + /** + * ShardTransactionState message. + * @member {string} message + * @memberof vtctldata.ShardTransactionState + * @instance + */ + ShardTransactionState.prototype.message = ""; + + /** + * ShardTransactionState time_created. + * @member {number|Long} time_created + * @memberof vtctldata.ShardTransactionState + * @instance + */ + ShardTransactionState.prototype.time_created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ShardTransactionState statements. + * @member {Array.} statements + * @memberof vtctldata.ShardTransactionState + * @instance + */ + ShardTransactionState.prototype.statements = $util.emptyArray; + + /** + * Creates a new ShardTransactionState instance using the specified properties. * @function create - * @memberof vtctldata.GetSrvKeyspaceNamesRequest + * @memberof vtctldata.ShardTransactionState * @static - * @param {vtctldata.IGetSrvKeyspaceNamesRequest=} [properties] Properties to set - * @returns {vtctldata.GetSrvKeyspaceNamesRequest} GetSrvKeyspaceNamesRequest instance + * @param {vtctldata.IShardTransactionState=} [properties] Properties to set + * @returns {vtctldata.ShardTransactionState} ShardTransactionState instance */ - GetSrvKeyspaceNamesRequest.create = function create(properties) { - return new GetSrvKeyspaceNamesRequest(properties); + ShardTransactionState.create = function create(properties) { + return new ShardTransactionState(properties); }; /** - * Encodes the specified GetSrvKeyspaceNamesRequest message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesRequest.verify|verify} messages. + * Encodes the specified ShardTransactionState message. Does not implicitly {@link vtctldata.ShardTransactionState.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSrvKeyspaceNamesRequest + * @memberof vtctldata.ShardTransactionState * @static - * @param {vtctldata.IGetSrvKeyspaceNamesRequest} message GetSrvKeyspaceNamesRequest message or plain object to encode + * @param {vtctldata.IShardTransactionState} message ShardTransactionState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvKeyspaceNamesRequest.encode = function encode(message, writer) { + ShardTransactionState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cells[i]); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.shard); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.state); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); + if (message.time_created != null && Object.hasOwnProperty.call(message, "time_created")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.time_created); + if (message.statements != null && message.statements.length) + for (let i = 0; i < message.statements.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.statements[i]); return writer; }; /** - * Encodes the specified GetSrvKeyspaceNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesRequest.verify|verify} messages. + * Encodes the specified ShardTransactionState message, length delimited. Does not implicitly {@link vtctldata.ShardTransactionState.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSrvKeyspaceNamesRequest + * @memberof vtctldata.ShardTransactionState * @static - * @param {vtctldata.IGetSrvKeyspaceNamesRequest} message GetSrvKeyspaceNamesRequest message or plain object to encode + * @param {vtctldata.IShardTransactionState} message ShardTransactionState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvKeyspaceNamesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ShardTransactionState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer. + * Decodes a ShardTransactionState message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSrvKeyspaceNamesRequest + * @memberof vtctldata.ShardTransactionState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSrvKeyspaceNamesRequest} GetSrvKeyspaceNamesRequest + * @returns {vtctldata.ShardTransactionState} ShardTransactionState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvKeyspaceNamesRequest.decode = function decode(reader, length) { + ShardTransactionState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvKeyspaceNamesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardTransactionState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + message.shard = reader.string(); + break; + } + case 2: { + message.state = reader.string(); + break; + } + case 3: { + message.message = reader.string(); + break; + } + case 4: { + message.time_created = reader.int64(); + break; + } + case 5: { + if (!(message.statements && message.statements.length)) + message.statements = []; + message.statements.push(reader.string()); break; } default: @@ -153830,135 +161943,184 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer, length delimited. + * Decodes a ShardTransactionState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSrvKeyspaceNamesRequest + * @memberof vtctldata.ShardTransactionState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSrvKeyspaceNamesRequest} GetSrvKeyspaceNamesRequest + * @returns {vtctldata.ShardTransactionState} ShardTransactionState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvKeyspaceNamesRequest.decodeDelimited = function decodeDelimited(reader) { + ShardTransactionState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSrvKeyspaceNamesRequest message. + * Verifies a ShardTransactionState message. * @function verify - * @memberof vtctldata.GetSrvKeyspaceNamesRequest + * @memberof vtctldata.ShardTransactionState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSrvKeyspaceNamesRequest.verify = function verify(message) { + ShardTransactionState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + if (!$util.isString(message.state)) + return "state: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + 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.statements != null && message.hasOwnProperty("statements")) { + if (!Array.isArray(message.statements)) + return "statements: array expected"; + for (let i = 0; i < message.statements.length; ++i) + if (!$util.isString(message.statements[i])) + return "statements: string[] expected"; } return null; }; /** - * Creates a GetSrvKeyspaceNamesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShardTransactionState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetSrvKeyspaceNamesRequest + * @memberof vtctldata.ShardTransactionState * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvKeyspaceNamesRequest} GetSrvKeyspaceNamesRequest + * @returns {vtctldata.ShardTransactionState} ShardTransactionState */ - GetSrvKeyspaceNamesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvKeyspaceNamesRequest) + ShardTransactionState.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ShardTransactionState) return object; - let message = new $root.vtctldata.GetSrvKeyspaceNamesRequest(); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.GetSrvKeyspaceNamesRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); + let message = new $root.vtctldata.ShardTransactionState(); + if (object.shard != null) + message.shard = String(object.shard); + if (object.state != null) + message.state = String(object.state); + if (object.message != null) + message.message = String(object.message); + 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.statements) { + if (!Array.isArray(object.statements)) + throw TypeError(".vtctldata.ShardTransactionState.statements: array expected"); + message.statements = []; + for (let i = 0; i < object.statements.length; ++i) + message.statements[i] = String(object.statements[i]); } return message; }; /** - * Creates a plain object from a GetSrvKeyspaceNamesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ShardTransactionState message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSrvKeyspaceNamesRequest + * @memberof vtctldata.ShardTransactionState * @static - * @param {vtctldata.GetSrvKeyspaceNamesRequest} message GetSrvKeyspaceNamesRequest + * @param {vtctldata.ShardTransactionState} message ShardTransactionState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSrvKeyspaceNamesRequest.toObject = function toObject(message, options) { + ShardTransactionState.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.cells = []; - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; + object.statements = []; + if (options.defaults) { + object.shard = ""; + object.state = ""; + object.message = ""; + if ($util.Long) { + let 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.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.state != null && message.hasOwnProperty("state")) + object.state = message.state; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + 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.statements && message.statements.length) { + object.statements = []; + for (let j = 0; j < message.statements.length; ++j) + object.statements[j] = message.statements[j]; } return object; }; /** - * Converts this GetSrvKeyspaceNamesRequest to JSON. + * Converts this ShardTransactionState to JSON. * @function toJSON - * @memberof vtctldata.GetSrvKeyspaceNamesRequest + * @memberof vtctldata.ShardTransactionState * @instance * @returns {Object.} JSON object */ - GetSrvKeyspaceNamesRequest.prototype.toJSON = function toJSON() { + ShardTransactionState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSrvKeyspaceNamesRequest + * Gets the default type url for ShardTransactionState * @function getTypeUrl - * @memberof vtctldata.GetSrvKeyspaceNamesRequest + * @memberof vtctldata.ShardTransactionState * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSrvKeyspaceNamesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShardTransactionState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetSrvKeyspaceNamesRequest"; + return typeUrlPrefix + "/vtctldata.ShardTransactionState"; }; - return GetSrvKeyspaceNamesRequest; + return ShardTransactionState; })(); - vtctldata.GetSrvKeyspaceNamesResponse = (function() { + vtctldata.GetTransactionInfoResponse = (function() { /** - * Properties of a GetSrvKeyspaceNamesResponse. + * Properties of a GetTransactionInfoResponse. * @memberof vtctldata - * @interface IGetSrvKeyspaceNamesResponse - * @property {Object.|null} [names] GetSrvKeyspaceNamesResponse names + * @interface IGetTransactionInfoResponse + * @property {query.ITransactionMetadata|null} [metadata] GetTransactionInfoResponse metadata + * @property {Array.|null} [shard_states] GetTransactionInfoResponse shard_states */ /** - * Constructs a new GetSrvKeyspaceNamesResponse. + * Constructs a new GetTransactionInfoResponse. * @memberof vtctldata - * @classdesc Represents a GetSrvKeyspaceNamesResponse. - * @implements IGetSrvKeyspaceNamesResponse + * @classdesc Represents a GetTransactionInfoResponse. + * @implements IGetTransactionInfoResponse * @constructor - * @param {vtctldata.IGetSrvKeyspaceNamesResponse=} [properties] Properties to set + * @param {vtctldata.IGetTransactionInfoResponse=} [properties] Properties to set */ - function GetSrvKeyspaceNamesResponse(properties) { - this.names = {}; + function GetTransactionInfoResponse(properties) { + this.shard_states = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -153966,97 +162128,92 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetSrvKeyspaceNamesResponse names. - * @member {Object.} names - * @memberof vtctldata.GetSrvKeyspaceNamesResponse + * GetTransactionInfoResponse metadata. + * @member {query.ITransactionMetadata|null|undefined} metadata + * @memberof vtctldata.GetTransactionInfoResponse * @instance */ - GetSrvKeyspaceNamesResponse.prototype.names = $util.emptyObject; + GetTransactionInfoResponse.prototype.metadata = null; /** - * Creates a new GetSrvKeyspaceNamesResponse instance using the specified properties. + * GetTransactionInfoResponse shard_states. + * @member {Array.} shard_states + * @memberof vtctldata.GetTransactionInfoResponse + * @instance + */ + GetTransactionInfoResponse.prototype.shard_states = $util.emptyArray; + + /** + * Creates a new GetTransactionInfoResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetSrvKeyspaceNamesResponse + * @memberof vtctldata.GetTransactionInfoResponse * @static - * @param {vtctldata.IGetSrvKeyspaceNamesResponse=} [properties] Properties to set - * @returns {vtctldata.GetSrvKeyspaceNamesResponse} GetSrvKeyspaceNamesResponse instance + * @param {vtctldata.IGetTransactionInfoResponse=} [properties] Properties to set + * @returns {vtctldata.GetTransactionInfoResponse} GetTransactionInfoResponse instance */ - GetSrvKeyspaceNamesResponse.create = function create(properties) { - return new GetSrvKeyspaceNamesResponse(properties); + GetTransactionInfoResponse.create = function create(properties) { + return new GetTransactionInfoResponse(properties); }; /** - * Encodes the specified GetSrvKeyspaceNamesResponse message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.verify|verify} messages. + * Encodes the specified GetTransactionInfoResponse message. Does not implicitly {@link vtctldata.GetTransactionInfoResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSrvKeyspaceNamesResponse + * @memberof vtctldata.GetTransactionInfoResponse * @static - * @param {vtctldata.IGetSrvKeyspaceNamesResponse} message GetSrvKeyspaceNamesResponse message or plain object to encode + * @param {vtctldata.IGetTransactionInfoResponse} message GetTransactionInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvKeyspaceNamesResponse.encode = function encode(message, writer) { + GetTransactionInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.names != null && Object.hasOwnProperty.call(message, "names")) - for (let keys = Object.keys(message.names), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList.encode(message.names[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.query.TransactionMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.shard_states != null && message.shard_states.length) + for (let i = 0; i < message.shard_states.length; ++i) + $root.vtctldata.ShardTransactionState.encode(message.shard_states[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetSrvKeyspaceNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.verify|verify} messages. + * Encodes the specified GetTransactionInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetTransactionInfoResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSrvKeyspaceNamesResponse + * @memberof vtctldata.GetTransactionInfoResponse * @static - * @param {vtctldata.IGetSrvKeyspaceNamesResponse} message GetSrvKeyspaceNamesResponse message or plain object to encode + * @param {vtctldata.IGetTransactionInfoResponse} message GetTransactionInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvKeyspaceNamesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTransactionInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer. + * Decodes a GetTransactionInfoResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSrvKeyspaceNamesResponse + * @memberof vtctldata.GetTransactionInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSrvKeyspaceNamesResponse} GetSrvKeyspaceNamesResponse + * @returns {vtctldata.GetTransactionInfoResponse} GetTransactionInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvKeyspaceNamesResponse.decode = function decode(reader, length) { + GetTransactionInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvKeyspaceNamesResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTransactionInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.names === $util.emptyObject) - message.names = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.names[key] = value; + message.metadata = $root.query.TransactionMetadata.decode(reader, reader.uint32()); + break; + } + case 2: { + if (!(message.shard_states && message.shard_states.length)) + message.shard_states = []; + message.shard_states.push($root.vtctldata.ShardTransactionState.decode(reader, reader.uint32())); break; } default: @@ -154068,362 +162225,155 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTransactionInfoResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSrvKeyspaceNamesResponse + * @memberof vtctldata.GetTransactionInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSrvKeyspaceNamesResponse} GetSrvKeyspaceNamesResponse + * @returns {vtctldata.GetTransactionInfoResponse} GetTransactionInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvKeyspaceNamesResponse.decodeDelimited = function decodeDelimited(reader) { + GetTransactionInfoResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSrvKeyspaceNamesResponse message. + * Verifies a GetTransactionInfoResponse message. * @function verify - * @memberof vtctldata.GetSrvKeyspaceNamesResponse + * @memberof vtctldata.GetTransactionInfoResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSrvKeyspaceNamesResponse.verify = function verify(message) { + GetTransactionInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.names != null && message.hasOwnProperty("names")) { - if (!$util.isObject(message.names)) - return "names: object expected"; - let key = Object.keys(message.names); - for (let i = 0; i < key.length; ++i) { - let error = $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList.verify(message.names[key[i]]); + if (message.metadata != null && message.hasOwnProperty("metadata")) { + let error = $root.query.TransactionMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.shard_states != null && message.hasOwnProperty("shard_states")) { + if (!Array.isArray(message.shard_states)) + return "shard_states: array expected"; + for (let i = 0; i < message.shard_states.length; ++i) { + let error = $root.vtctldata.ShardTransactionState.verify(message.shard_states[i]); if (error) - return "names." + error; + return "shard_states." + error; } } return null; }; /** - * Creates a GetSrvKeyspaceNamesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTransactionInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetSrvKeyspaceNamesResponse + * @memberof vtctldata.GetTransactionInfoResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvKeyspaceNamesResponse} GetSrvKeyspaceNamesResponse + * @returns {vtctldata.GetTransactionInfoResponse} GetTransactionInfoResponse */ - GetSrvKeyspaceNamesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvKeyspaceNamesResponse) + GetTransactionInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTransactionInfoResponse) return object; - let message = new $root.vtctldata.GetSrvKeyspaceNamesResponse(); - if (object.names) { - if (typeof object.names !== "object") - throw TypeError(".vtctldata.GetSrvKeyspaceNamesResponse.names: object expected"); - message.names = {}; - for (let keys = Object.keys(object.names), i = 0; i < keys.length; ++i) { - if (typeof object.names[keys[i]] !== "object") - throw TypeError(".vtctldata.GetSrvKeyspaceNamesResponse.names: object expected"); - message.names[keys[i]] = $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList.fromObject(object.names[keys[i]]); + let message = new $root.vtctldata.GetTransactionInfoResponse(); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".vtctldata.GetTransactionInfoResponse.metadata: object expected"); + message.metadata = $root.query.TransactionMetadata.fromObject(object.metadata); + } + if (object.shard_states) { + if (!Array.isArray(object.shard_states)) + throw TypeError(".vtctldata.GetTransactionInfoResponse.shard_states: array expected"); + message.shard_states = []; + for (let i = 0; i < object.shard_states.length; ++i) { + if (typeof object.shard_states[i] !== "object") + throw TypeError(".vtctldata.GetTransactionInfoResponse.shard_states: object expected"); + message.shard_states[i] = $root.vtctldata.ShardTransactionState.fromObject(object.shard_states[i]); } } return message; }; /** - * Creates a plain object from a GetSrvKeyspaceNamesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetTransactionInfoResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSrvKeyspaceNamesResponse + * @memberof vtctldata.GetTransactionInfoResponse * @static - * @param {vtctldata.GetSrvKeyspaceNamesResponse} message GetSrvKeyspaceNamesResponse + * @param {vtctldata.GetTransactionInfoResponse} message GetTransactionInfoResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSrvKeyspaceNamesResponse.toObject = function toObject(message, options) { + GetTransactionInfoResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.names = {}; - let keys2; - if (message.names && (keys2 = Object.keys(message.names)).length) { - object.names = {}; - for (let j = 0; j < keys2.length; ++j) - object.names[keys2[j]] = $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList.toObject(message.names[keys2[j]], options); + if (options.arrays || options.defaults) + object.shard_states = []; + if (options.defaults) + object.metadata = null; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.query.TransactionMetadata.toObject(message.metadata, options); + if (message.shard_states && message.shard_states.length) { + object.shard_states = []; + for (let j = 0; j < message.shard_states.length; ++j) + object.shard_states[j] = $root.vtctldata.ShardTransactionState.toObject(message.shard_states[j], options); } return object; }; /** - * Converts this GetSrvKeyspaceNamesResponse to JSON. + * Converts this GetTransactionInfoResponse to JSON. * @function toJSON - * @memberof vtctldata.GetSrvKeyspaceNamesResponse + * @memberof vtctldata.GetTransactionInfoResponse * @instance * @returns {Object.} JSON object */ - GetSrvKeyspaceNamesResponse.prototype.toJSON = function toJSON() { + GetTransactionInfoResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSrvKeyspaceNamesResponse + * Gets the default type url for GetTransactionInfoResponse * @function getTypeUrl - * @memberof vtctldata.GetSrvKeyspaceNamesResponse + * @memberof vtctldata.GetTransactionInfoResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSrvKeyspaceNamesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTransactionInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetSrvKeyspaceNamesResponse"; + return typeUrlPrefix + "/vtctldata.GetTransactionInfoResponse"; }; - GetSrvKeyspaceNamesResponse.NameList = (function() { - - /** - * Properties of a NameList. - * @memberof vtctldata.GetSrvKeyspaceNamesResponse - * @interface INameList - * @property {Array.|null} [names] NameList names - */ - - /** - * Constructs a new NameList. - * @memberof vtctldata.GetSrvKeyspaceNamesResponse - * @classdesc Represents a NameList. - * @implements INameList - * @constructor - * @param {vtctldata.GetSrvKeyspaceNamesResponse.INameList=} [properties] Properties to set - */ - function NameList(properties) { - this.names = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NameList names. - * @member {Array.} names - * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList - * @instance - */ - NameList.prototype.names = $util.emptyArray; - - /** - * Creates a new NameList instance using the specified properties. - * @function create - * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList - * @static - * @param {vtctldata.GetSrvKeyspaceNamesResponse.INameList=} [properties] Properties to set - * @returns {vtctldata.GetSrvKeyspaceNamesResponse.NameList} NameList instance - */ - NameList.create = function create(properties) { - return new NameList(properties); - }; - - /** - * Encodes the specified NameList message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.NameList.verify|verify} messages. - * @function encode - * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList - * @static - * @param {vtctldata.GetSrvKeyspaceNamesResponse.INameList} message NameList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NameList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.names != null && message.names.length) - for (let i = 0; i < message.names.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); - return writer; - }; - - /** - * Encodes the specified NameList message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.NameList.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList - * @static - * @param {vtctldata.GetSrvKeyspaceNamesResponse.INameList} message NameList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NameList.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NameList message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSrvKeyspaceNamesResponse.NameList} NameList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NameList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NameList message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSrvKeyspaceNamesResponse.NameList} NameList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NameList.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NameList message. - * @function verify - * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NameList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (let i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; - } - return null; - }; - - /** - * Creates a NameList message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvKeyspaceNamesResponse.NameList} NameList - */ - NameList.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList) - return object; - let message = new $root.vtctldata.GetSrvKeyspaceNamesResponse.NameList(); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".vtctldata.GetSrvKeyspaceNamesResponse.NameList.names: array expected"); - message.names = []; - for (let i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); - } - return message; - }; - - /** - * Creates a plain object from a NameList message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList - * @static - * @param {vtctldata.GetSrvKeyspaceNamesResponse.NameList} message NameList - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NameList.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.names = []; - if (message.names && message.names.length) { - object.names = []; - for (let j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; - } - return object; - }; - - /** - * Converts this NameList to JSON. - * @function toJSON - * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList - * @instance - * @returns {Object.} JSON object - */ - NameList.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for NameList - * @function getTypeUrl - * @memberof vtctldata.GetSrvKeyspaceNamesResponse.NameList - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NameList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.GetSrvKeyspaceNamesResponse.NameList"; - }; - - return NameList; - })(); - - return GetSrvKeyspaceNamesResponse; + return GetTransactionInfoResponse; })(); - vtctldata.GetSrvKeyspacesRequest = (function() { + vtctldata.ConcludeTransactionRequest = (function() { /** - * Properties of a GetSrvKeyspacesRequest. + * Properties of a ConcludeTransactionRequest. * @memberof vtctldata - * @interface IGetSrvKeyspacesRequest - * @property {string|null} [keyspace] GetSrvKeyspacesRequest keyspace - * @property {Array.|null} [cells] GetSrvKeyspacesRequest cells + * @interface IConcludeTransactionRequest + * @property {string|null} [dtid] ConcludeTransactionRequest dtid + * @property {Array.|null} [participants] ConcludeTransactionRequest participants */ /** - * Constructs a new GetSrvKeyspacesRequest. + * Constructs a new ConcludeTransactionRequest. * @memberof vtctldata - * @classdesc Represents a GetSrvKeyspacesRequest. - * @implements IGetSrvKeyspacesRequest + * @classdesc Represents a ConcludeTransactionRequest. + * @implements IConcludeTransactionRequest * @constructor - * @param {vtctldata.IGetSrvKeyspacesRequest=} [properties] Properties to set + * @param {vtctldata.IConcludeTransactionRequest=} [properties] Properties to set */ - function GetSrvKeyspacesRequest(properties) { - this.cells = []; + function ConcludeTransactionRequest(properties) { + this.participants = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -154431,92 +162381,92 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetSrvKeyspacesRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetSrvKeyspacesRequest + * ConcludeTransactionRequest dtid. + * @member {string} dtid + * @memberof vtctldata.ConcludeTransactionRequest * @instance */ - GetSrvKeyspacesRequest.prototype.keyspace = ""; + ConcludeTransactionRequest.prototype.dtid = ""; /** - * GetSrvKeyspacesRequest cells. - * @member {Array.} cells - * @memberof vtctldata.GetSrvKeyspacesRequest + * ConcludeTransactionRequest participants. + * @member {Array.} participants + * @memberof vtctldata.ConcludeTransactionRequest * @instance */ - GetSrvKeyspacesRequest.prototype.cells = $util.emptyArray; + ConcludeTransactionRequest.prototype.participants = $util.emptyArray; /** - * Creates a new GetSrvKeyspacesRequest instance using the specified properties. + * Creates a new ConcludeTransactionRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetSrvKeyspacesRequest + * @memberof vtctldata.ConcludeTransactionRequest * @static - * @param {vtctldata.IGetSrvKeyspacesRequest=} [properties] Properties to set - * @returns {vtctldata.GetSrvKeyspacesRequest} GetSrvKeyspacesRequest instance + * @param {vtctldata.IConcludeTransactionRequest=} [properties] Properties to set + * @returns {vtctldata.ConcludeTransactionRequest} ConcludeTransactionRequest instance */ - GetSrvKeyspacesRequest.create = function create(properties) { - return new GetSrvKeyspacesRequest(properties); + ConcludeTransactionRequest.create = function create(properties) { + return new ConcludeTransactionRequest(properties); }; /** - * Encodes the specified GetSrvKeyspacesRequest message. Does not implicitly {@link vtctldata.GetSrvKeyspacesRequest.verify|verify} messages. + * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link vtctldata.ConcludeTransactionRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSrvKeyspacesRequest + * @memberof vtctldata.ConcludeTransactionRequest * @static - * @param {vtctldata.IGetSrvKeyspacesRequest} message GetSrvKeyspacesRequest message or plain object to encode + * @param {vtctldata.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvKeyspacesRequest.encode = function encode(message, writer) { + ConcludeTransactionRequest.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.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dtid); + if (message.participants != null && message.participants.length) + for (let i = 0; i < message.participants.length; ++i) + $root.query.Target.encode(message.participants[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetSrvKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspacesRequest.verify|verify} messages. + * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link vtctldata.ConcludeTransactionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSrvKeyspacesRequest + * @memberof vtctldata.ConcludeTransactionRequest * @static - * @param {vtctldata.IGetSrvKeyspacesRequest} message GetSrvKeyspacesRequest message or plain object to encode + * @param {vtctldata.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvKeyspacesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ConcludeTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer. + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSrvKeyspacesRequest + * @memberof vtctldata.ConcludeTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSrvKeyspacesRequest} GetSrvKeyspacesRequest + * @returns {vtctldata.ConcludeTransactionRequest} ConcludeTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvKeyspacesRequest.decode = function decode(reader, length) { + ConcludeTransactionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvKeyspacesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ConcludeTransactionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + message.dtid = reader.string(); break; } case 2: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + if (!(message.participants && message.participants.length)) + message.participants = []; + message.participants.push($root.query.Target.decode(reader, reader.uint32())); break; } default: @@ -154528,144 +162478,147 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer, length delimited. + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSrvKeyspacesRequest + * @memberof vtctldata.ConcludeTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSrvKeyspacesRequest} GetSrvKeyspacesRequest + * @returns {vtctldata.ConcludeTransactionRequest} ConcludeTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvKeyspacesRequest.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 GetSrvKeyspacesRequest message. + * Verifies a ConcludeTransactionRequest message. * @function verify - * @memberof vtctldata.GetSrvKeyspacesRequest + * @memberof vtctldata.ConcludeTransactionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSrvKeyspacesRequest.verify = function verify(message) { + ConcludeTransactionRequest.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.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; + if (message.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 (let i = 0; i < message.participants.length; ++i) { + let error = $root.query.Target.verify(message.participants[i]); + if (error) + return "participants." + error; + } } return null; }; /** - * Creates a GetSrvKeyspacesRequest 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 vtctldata.GetSrvKeyspacesRequest + * @memberof vtctldata.ConcludeTransactionRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvKeyspacesRequest} GetSrvKeyspacesRequest + * @returns {vtctldata.ConcludeTransactionRequest} ConcludeTransactionRequest */ - GetSrvKeyspacesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvKeyspacesRequest) + ConcludeTransactionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ConcludeTransactionRequest) return object; - let message = new $root.vtctldata.GetSrvKeyspacesRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.GetSrvKeyspacesRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); + let message = new $root.vtctldata.ConcludeTransactionRequest(); + if (object.dtid != null) + message.dtid = String(object.dtid); + if (object.participants) { + if (!Array.isArray(object.participants)) + throw TypeError(".vtctldata.ConcludeTransactionRequest.participants: array expected"); + message.participants = []; + for (let i = 0; i < object.participants.length; ++i) { + if (typeof object.participants[i] !== "object") + throw TypeError(".vtctldata.ConcludeTransactionRequest.participants: object expected"); + message.participants[i] = $root.query.Target.fromObject(object.participants[i]); + } } return message; }; /** - * Creates a plain object from a GetSrvKeyspacesRequest 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 vtctldata.GetSrvKeyspacesRequest + * @memberof vtctldata.ConcludeTransactionRequest * @static - * @param {vtctldata.GetSrvKeyspacesRequest} message GetSrvKeyspacesRequest + * @param {vtctldata.ConcludeTransactionRequest} message ConcludeTransactionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSrvKeyspacesRequest.toObject = function toObject(message, options) { + ConcludeTransactionRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.cells = []; + object.participants = []; if (options.defaults) - object.keyspace = ""; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; + object.dtid = ""; + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; + if (message.participants && message.participants.length) { + object.participants = []; + for (let j = 0; j < message.participants.length; ++j) + object.participants[j] = $root.query.Target.toObject(message.participants[j], options); } return object; }; /** - * Converts this GetSrvKeyspacesRequest to JSON. + * Converts this ConcludeTransactionRequest to JSON. * @function toJSON - * @memberof vtctldata.GetSrvKeyspacesRequest + * @memberof vtctldata.ConcludeTransactionRequest * @instance * @returns {Object.} JSON object */ - GetSrvKeyspacesRequest.prototype.toJSON = function toJSON() { + ConcludeTransactionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSrvKeyspacesRequest + * Gets the default type url for ConcludeTransactionRequest * @function getTypeUrl - * @memberof vtctldata.GetSrvKeyspacesRequest + * @memberof vtctldata.ConcludeTransactionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSrvKeyspacesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ConcludeTransactionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetSrvKeyspacesRequest"; + return typeUrlPrefix + "/vtctldata.ConcludeTransactionRequest"; }; - return GetSrvKeyspacesRequest; + return ConcludeTransactionRequest; })(); - vtctldata.GetSrvKeyspacesResponse = (function() { + vtctldata.ConcludeTransactionResponse = (function() { /** - * Properties of a GetSrvKeyspacesResponse. + * Properties of a ConcludeTransactionResponse. * @memberof vtctldata - * @interface IGetSrvKeyspacesResponse - * @property {Object.|null} [srv_keyspaces] GetSrvKeyspacesResponse srv_keyspaces + * @interface IConcludeTransactionResponse */ /** - * Constructs a new GetSrvKeyspacesResponse. + * Constructs a new ConcludeTransactionResponse. * @memberof vtctldata - * @classdesc Represents a GetSrvKeyspacesResponse. - * @implements IGetSrvKeyspacesResponse + * @classdesc Represents a ConcludeTransactionResponse. + * @implements IConcludeTransactionResponse * @constructor - * @param {vtctldata.IGetSrvKeyspacesResponse=} [properties] Properties to set + * @param {vtctldata.IConcludeTransactionResponse=} [properties] Properties to set */ - function GetSrvKeyspacesResponse(properties) { - this.srv_keyspaces = {}; + function ConcludeTransactionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -154673,99 +162626,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetSrvKeyspacesResponse srv_keyspaces. - * @member {Object.} srv_keyspaces - * @memberof vtctldata.GetSrvKeyspacesResponse - * @instance - */ - GetSrvKeyspacesResponse.prototype.srv_keyspaces = $util.emptyObject; - - /** - * Creates a new GetSrvKeyspacesResponse instance using the specified properties. + * Creates a new ConcludeTransactionResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetSrvKeyspacesResponse + * @memberof vtctldata.ConcludeTransactionResponse * @static - * @param {vtctldata.IGetSrvKeyspacesResponse=} [properties] Properties to set - * @returns {vtctldata.GetSrvKeyspacesResponse} GetSrvKeyspacesResponse instance + * @param {vtctldata.IConcludeTransactionResponse=} [properties] Properties to set + * @returns {vtctldata.ConcludeTransactionResponse} ConcludeTransactionResponse instance */ - GetSrvKeyspacesResponse.create = function create(properties) { - return new GetSrvKeyspacesResponse(properties); + ConcludeTransactionResponse.create = function create(properties) { + return new ConcludeTransactionResponse(properties); }; /** - * Encodes the specified GetSrvKeyspacesResponse message. Does not implicitly {@link vtctldata.GetSrvKeyspacesResponse.verify|verify} messages. + * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link vtctldata.ConcludeTransactionResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSrvKeyspacesResponse + * @memberof vtctldata.ConcludeTransactionResponse * @static - * @param {vtctldata.IGetSrvKeyspacesResponse} message GetSrvKeyspacesResponse message or plain object to encode + * @param {vtctldata.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvKeyspacesResponse.encode = function encode(message, writer) { + ConcludeTransactionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.srv_keyspaces != null && Object.hasOwnProperty.call(message, "srv_keyspaces")) - for (let keys = Object.keys(message.srv_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.topodata.SrvKeyspace.encode(message.srv_keyspaces[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } return writer; }; /** - * Encodes the specified GetSrvKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspacesResponse.verify|verify} messages. + * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link vtctldata.ConcludeTransactionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSrvKeyspacesResponse + * @memberof vtctldata.ConcludeTransactionResponse * @static - * @param {vtctldata.IGetSrvKeyspacesResponse} message GetSrvKeyspacesResponse message or plain object to encode + * @param {vtctldata.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvKeyspacesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ConcludeTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer. + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSrvKeyspacesResponse + * @memberof vtctldata.ConcludeTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSrvKeyspacesResponse} GetSrvKeyspacesResponse + * @returns {vtctldata.ConcludeTransactionResponse} ConcludeTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvKeyspacesResponse.decode = function decode(reader, length) { + ConcludeTransactionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvKeyspacesResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ConcludeTransactionResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (message.srv_keyspaces === $util.emptyObject) - message.srv_keyspaces = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.topodata.SrvKeyspace.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.srv_keyspaces[key] = value; - break; - } default: reader.skipType(tag & 7); break; @@ -154775,153 +162692,109 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer, length delimited. + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSrvKeyspacesResponse + * @memberof vtctldata.ConcludeTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSrvKeyspacesResponse} GetSrvKeyspacesResponse + * @returns {vtctldata.ConcludeTransactionResponse} ConcludeTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvKeyspacesResponse.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 GetSrvKeyspacesResponse message. + * Verifies a ConcludeTransactionResponse message. * @function verify - * @memberof vtctldata.GetSrvKeyspacesResponse + * @memberof vtctldata.ConcludeTransactionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSrvKeyspacesResponse.verify = function verify(message) { + ConcludeTransactionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.srv_keyspaces != null && message.hasOwnProperty("srv_keyspaces")) { - if (!$util.isObject(message.srv_keyspaces)) - return "srv_keyspaces: object expected"; - let key = Object.keys(message.srv_keyspaces); - for (let i = 0; i < key.length; ++i) { - let error = $root.topodata.SrvKeyspace.verify(message.srv_keyspaces[key[i]]); - if (error) - return "srv_keyspaces." + error; - } - } return null; }; /** - * Creates a GetSrvKeyspacesResponse 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 vtctldata.GetSrvKeyspacesResponse + * @memberof vtctldata.ConcludeTransactionResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvKeyspacesResponse} GetSrvKeyspacesResponse + * @returns {vtctldata.ConcludeTransactionResponse} ConcludeTransactionResponse */ - GetSrvKeyspacesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvKeyspacesResponse) + ConcludeTransactionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ConcludeTransactionResponse) return object; - let message = new $root.vtctldata.GetSrvKeyspacesResponse(); - if (object.srv_keyspaces) { - if (typeof object.srv_keyspaces !== "object") - throw TypeError(".vtctldata.GetSrvKeyspacesResponse.srv_keyspaces: object expected"); - message.srv_keyspaces = {}; - for (let keys = Object.keys(object.srv_keyspaces), i = 0; i < keys.length; ++i) { - if (typeof object.srv_keyspaces[keys[i]] !== "object") - throw TypeError(".vtctldata.GetSrvKeyspacesResponse.srv_keyspaces: object expected"); - message.srv_keyspaces[keys[i]] = $root.topodata.SrvKeyspace.fromObject(object.srv_keyspaces[keys[i]]); - } - } - return message; + return new $root.vtctldata.ConcludeTransactionResponse(); }; /** - * Creates a plain object from a GetSrvKeyspacesResponse 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 vtctldata.GetSrvKeyspacesResponse + * @memberof vtctldata.ConcludeTransactionResponse * @static - * @param {vtctldata.GetSrvKeyspacesResponse} message GetSrvKeyspacesResponse + * @param {vtctldata.ConcludeTransactionResponse} message ConcludeTransactionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSrvKeyspacesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.objects || options.defaults) - object.srv_keyspaces = {}; - let keys2; - if (message.srv_keyspaces && (keys2 = Object.keys(message.srv_keyspaces)).length) { - object.srv_keyspaces = {}; - for (let j = 0; j < keys2.length; ++j) - object.srv_keyspaces[keys2[j]] = $root.topodata.SrvKeyspace.toObject(message.srv_keyspaces[keys2[j]], options); - } - return object; + ConcludeTransactionResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetSrvKeyspacesResponse to JSON. + * Converts this ConcludeTransactionResponse to JSON. * @function toJSON - * @memberof vtctldata.GetSrvKeyspacesResponse + * @memberof vtctldata.ConcludeTransactionResponse * @instance * @returns {Object.} JSON object */ - GetSrvKeyspacesResponse.prototype.toJSON = function toJSON() { + ConcludeTransactionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSrvKeyspacesResponse + * Gets the default type url for ConcludeTransactionResponse * @function getTypeUrl - * @memberof vtctldata.GetSrvKeyspacesResponse + * @memberof vtctldata.ConcludeTransactionResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSrvKeyspacesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ConcludeTransactionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetSrvKeyspacesResponse"; + return typeUrlPrefix + "/vtctldata.ConcludeTransactionResponse"; }; - return GetSrvKeyspacesResponse; + return ConcludeTransactionResponse; })(); - vtctldata.UpdateThrottlerConfigRequest = (function() { + vtctldata.GetVSchemaRequest = (function() { /** - * Properties of an UpdateThrottlerConfigRequest. + * Properties of a GetVSchemaRequest. * @memberof vtctldata - * @interface IUpdateThrottlerConfigRequest - * @property {string|null} [keyspace] UpdateThrottlerConfigRequest keyspace - * @property {boolean|null} [enable] UpdateThrottlerConfigRequest enable - * @property {boolean|null} [disable] UpdateThrottlerConfigRequest disable - * @property {number|null} [threshold] UpdateThrottlerConfigRequest threshold - * @property {string|null} [custom_query] UpdateThrottlerConfigRequest custom_query - * @property {boolean|null} [custom_query_set] UpdateThrottlerConfigRequest custom_query_set - * @property {boolean|null} [check_as_check_self] UpdateThrottlerConfigRequest check_as_check_self - * @property {boolean|null} [check_as_check_shard] UpdateThrottlerConfigRequest check_as_check_shard - * @property {topodata.IThrottledAppRule|null} [throttled_app] UpdateThrottlerConfigRequest throttled_app - * @property {string|null} [metric_name] UpdateThrottlerConfigRequest metric_name - * @property {string|null} [app_name] UpdateThrottlerConfigRequest app_name - * @property {Array.|null} [app_checked_metrics] UpdateThrottlerConfigRequest app_checked_metrics + * @interface IGetVSchemaRequest + * @property {string|null} [keyspace] GetVSchemaRequest keyspace */ /** - * Constructs a new UpdateThrottlerConfigRequest. + * Constructs a new GetVSchemaRequest. * @memberof vtctldata - * @classdesc Represents an UpdateThrottlerConfigRequest. - * @implements IUpdateThrottlerConfigRequest + * @classdesc Represents a GetVSchemaRequest. + * @implements IGetVSchemaRequest * @constructor - * @param {vtctldata.IUpdateThrottlerConfigRequest=} [properties] Properties to set + * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set */ - function UpdateThrottlerConfigRequest(properties) { - this.app_checked_metrics = []; + function GetVSchemaRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -154929,232 +162802,278 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * UpdateThrottlerConfigRequest keyspace. + * GetVSchemaRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.UpdateThrottlerConfigRequest + * @memberof vtctldata.GetVSchemaRequest * @instance */ - UpdateThrottlerConfigRequest.prototype.keyspace = ""; + GetVSchemaRequest.prototype.keyspace = ""; /** - * UpdateThrottlerConfigRequest enable. - * @member {boolean} enable - * @memberof vtctldata.UpdateThrottlerConfigRequest - * @instance + * Creates a new GetVSchemaRequest instance using the specified properties. + * @function create + * @memberof vtctldata.GetVSchemaRequest + * @static + * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest instance */ - UpdateThrottlerConfigRequest.prototype.enable = false; + GetVSchemaRequest.create = function create(properties) { + return new GetVSchemaRequest(properties); + }; /** - * UpdateThrottlerConfigRequest disable. - * @member {boolean} disable - * @memberof vtctldata.UpdateThrottlerConfigRequest - * @instance + * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetVSchemaRequest + * @static + * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - UpdateThrottlerConfigRequest.prototype.disable = false; + GetVSchemaRequest.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); + return writer; + }; /** - * UpdateThrottlerConfigRequest threshold. - * @member {number} threshold - * @memberof vtctldata.UpdateThrottlerConfigRequest - * @instance + * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetVSchemaRequest + * @static + * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - UpdateThrottlerConfigRequest.prototype.threshold = 0; + GetVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * UpdateThrottlerConfigRequest custom_query. - * @member {string} custom_query - * @memberof vtctldata.UpdateThrottlerConfigRequest - * @instance + * Decodes a GetVSchemaRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.GetVSchemaRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateThrottlerConfigRequest.prototype.custom_query = ""; + GetVSchemaRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVSchemaRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.keyspace = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * UpdateThrottlerConfigRequest custom_query_set. - * @member {boolean} custom_query_set - * @memberof vtctldata.UpdateThrottlerConfigRequest - * @instance + * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetVSchemaRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateThrottlerConfigRequest.prototype.custom_query_set = false; + GetVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * UpdateThrottlerConfigRequest check_as_check_self. - * @member {boolean} check_as_check_self - * @memberof vtctldata.UpdateThrottlerConfigRequest - * @instance + * Verifies a GetVSchemaRequest message. + * @function verify + * @memberof vtctldata.GetVSchemaRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateThrottlerConfigRequest.prototype.check_as_check_self = false; + GetVSchemaRequest.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"; + return null; + }; /** - * UpdateThrottlerConfigRequest check_as_check_shard. - * @member {boolean} check_as_check_shard - * @memberof vtctldata.UpdateThrottlerConfigRequest - * @instance + * Creates a GetVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetVSchemaRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest */ - UpdateThrottlerConfigRequest.prototype.check_as_check_shard = false; + GetVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetVSchemaRequest) + return object; + let message = new $root.vtctldata.GetVSchemaRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + return message; + }; /** - * UpdateThrottlerConfigRequest throttled_app. - * @member {topodata.IThrottledAppRule|null|undefined} throttled_app - * @memberof vtctldata.UpdateThrottlerConfigRequest - * @instance + * Creates a plain object from a GetVSchemaRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetVSchemaRequest + * @static + * @param {vtctldata.GetVSchemaRequest} message GetVSchemaRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - UpdateThrottlerConfigRequest.prototype.throttled_app = null; + GetVSchemaRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.keyspace = ""; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + return object; + }; /** - * UpdateThrottlerConfigRequest metric_name. - * @member {string} metric_name - * @memberof vtctldata.UpdateThrottlerConfigRequest + * Converts this GetVSchemaRequest to JSON. + * @function toJSON + * @memberof vtctldata.GetVSchemaRequest * @instance + * @returns {Object.} JSON object */ - UpdateThrottlerConfigRequest.prototype.metric_name = ""; + GetVSchemaRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * UpdateThrottlerConfigRequest app_name. - * @member {string} app_name - * @memberof vtctldata.UpdateThrottlerConfigRequest - * @instance + * Gets the default type url for GetVSchemaRequest + * @function getTypeUrl + * @memberof vtctldata.GetVSchemaRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - UpdateThrottlerConfigRequest.prototype.app_name = ""; + GetVSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.GetVSchemaRequest"; + }; + + return GetVSchemaRequest; + })(); + + vtctldata.GetVersionRequest = (function() { /** - * UpdateThrottlerConfigRequest app_checked_metrics. - * @member {Array.} app_checked_metrics - * @memberof vtctldata.UpdateThrottlerConfigRequest + * Properties of a GetVersionRequest. + * @memberof vtctldata + * @interface IGetVersionRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] GetVersionRequest tablet_alias + */ + + /** + * Constructs a new GetVersionRequest. + * @memberof vtctldata + * @classdesc Represents a GetVersionRequest. + * @implements IGetVersionRequest + * @constructor + * @param {vtctldata.IGetVersionRequest=} [properties] Properties to set + */ + function GetVersionRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetVersionRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.GetVersionRequest * @instance */ - UpdateThrottlerConfigRequest.prototype.app_checked_metrics = $util.emptyArray; + GetVersionRequest.prototype.tablet_alias = null; /** - * Creates a new UpdateThrottlerConfigRequest instance using the specified properties. + * Creates a new GetVersionRequest instance using the specified properties. * @function create - * @memberof vtctldata.UpdateThrottlerConfigRequest + * @memberof vtctldata.GetVersionRequest * @static - * @param {vtctldata.IUpdateThrottlerConfigRequest=} [properties] Properties to set - * @returns {vtctldata.UpdateThrottlerConfigRequest} UpdateThrottlerConfigRequest instance + * @param {vtctldata.IGetVersionRequest=} [properties] Properties to set + * @returns {vtctldata.GetVersionRequest} GetVersionRequest instance */ - UpdateThrottlerConfigRequest.create = function create(properties) { - return new UpdateThrottlerConfigRequest(properties); + GetVersionRequest.create = function create(properties) { + return new GetVersionRequest(properties); }; /** - * Encodes the specified UpdateThrottlerConfigRequest message. Does not implicitly {@link vtctldata.UpdateThrottlerConfigRequest.verify|verify} messages. + * Encodes the specified GetVersionRequest message. Does not implicitly {@link vtctldata.GetVersionRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.UpdateThrottlerConfigRequest + * @memberof vtctldata.GetVersionRequest * @static - * @param {vtctldata.IUpdateThrottlerConfigRequest} message UpdateThrottlerConfigRequest message or plain object to encode + * @param {vtctldata.IGetVersionRequest} message GetVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateThrottlerConfigRequest.encode = function encode(message, writer) { + GetVersionRequest.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.enable != null && Object.hasOwnProperty.call(message, "enable")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enable); - if (message.disable != null && Object.hasOwnProperty.call(message, "disable")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.disable); - if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.threshold); - if (message.custom_query != null && Object.hasOwnProperty.call(message, "custom_query")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.custom_query); - if (message.custom_query_set != null && Object.hasOwnProperty.call(message, "custom_query_set")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.custom_query_set); - if (message.check_as_check_self != null && Object.hasOwnProperty.call(message, "check_as_check_self")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.check_as_check_self); - if (message.check_as_check_shard != null && Object.hasOwnProperty.call(message, "check_as_check_shard")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.check_as_check_shard); - if (message.throttled_app != null && Object.hasOwnProperty.call(message, "throttled_app")) - $root.topodata.ThrottledAppRule.encode(message.throttled_app, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.metric_name != null && Object.hasOwnProperty.call(message, "metric_name")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.metric_name); - if (message.app_name != null && Object.hasOwnProperty.call(message, "app_name")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.app_name); - if (message.app_checked_metrics != null && message.app_checked_metrics.length) - for (let i = 0; i < message.app_checked_metrics.length; ++i) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.app_checked_metrics[i]); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateThrottlerConfigRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateThrottlerConfigRequest.verify|verify} messages. + * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link vtctldata.GetVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.UpdateThrottlerConfigRequest + * @memberof vtctldata.GetVersionRequest * @static - * @param {vtctldata.IUpdateThrottlerConfigRequest} message UpdateThrottlerConfigRequest message or plain object to encode + * @param {vtctldata.IGetVersionRequest} message GetVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateThrottlerConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer. + * Decodes a GetVersionRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.UpdateThrottlerConfigRequest + * @memberof vtctldata.GetVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.UpdateThrottlerConfigRequest} UpdateThrottlerConfigRequest + * @returns {vtctldata.GetVersionRequest} GetVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateThrottlerConfigRequest.decode = function decode(reader, length) { + GetVersionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.UpdateThrottlerConfigRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVersionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.enable = reader.bool(); - break; - } - case 3: { - message.disable = reader.bool(); - break; - } - case 4: { - message.threshold = reader.double(); - break; - } - case 5: { - message.custom_query = reader.string(); - break; - } - case 6: { - message.custom_query_set = reader.bool(); - break; - } - case 7: { - message.check_as_check_self = reader.bool(); - break; - } - case 8: { - message.check_as_check_shard = reader.bool(); - break; - } - case 9: { - message.throttled_app = $root.topodata.ThrottledAppRule.decode(reader, reader.uint32()); - break; - } - case 10: { - message.metric_name = reader.string(); - break; - } - case 11: { - message.app_name = reader.string(); - break; - } - case 12: { - if (!(message.app_checked_metrics && message.app_checked_metrics.length)) - message.app_checked_metrics = []; - message.app_checked_metrics.push(reader.string()); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -155166,228 +163085,127 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.UpdateThrottlerConfigRequest + * @memberof vtctldata.GetVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.UpdateThrottlerConfigRequest} UpdateThrottlerConfigRequest + * @returns {vtctldata.GetVersionRequest} GetVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateThrottlerConfigRequest.decodeDelimited = function decodeDelimited(reader) { + GetVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateThrottlerConfigRequest message. + * Verifies a GetVersionRequest message. * @function verify - * @memberof vtctldata.UpdateThrottlerConfigRequest + * @memberof vtctldata.GetVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateThrottlerConfigRequest.verify = function verify(message) { + GetVersionRequest.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.enable != null && message.hasOwnProperty("enable")) - if (typeof message.enable !== "boolean") - return "enable: boolean expected"; - if (message.disable != null && message.hasOwnProperty("disable")) - if (typeof message.disable !== "boolean") - return "disable: boolean expected"; - if (message.threshold != null && message.hasOwnProperty("threshold")) - if (typeof message.threshold !== "number") - return "threshold: number expected"; - if (message.custom_query != null && message.hasOwnProperty("custom_query")) - if (!$util.isString(message.custom_query)) - return "custom_query: string expected"; - if (message.custom_query_set != null && message.hasOwnProperty("custom_query_set")) - if (typeof message.custom_query_set !== "boolean") - return "custom_query_set: boolean expected"; - if (message.check_as_check_self != null && message.hasOwnProperty("check_as_check_self")) - if (typeof message.check_as_check_self !== "boolean") - return "check_as_check_self: boolean expected"; - if (message.check_as_check_shard != null && message.hasOwnProperty("check_as_check_shard")) - if (typeof message.check_as_check_shard !== "boolean") - return "check_as_check_shard: boolean expected"; - if (message.throttled_app != null && message.hasOwnProperty("throttled_app")) { - let error = $root.topodata.ThrottledAppRule.verify(message.throttled_app); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) - return "throttled_app." + error; - } - if (message.metric_name != null && message.hasOwnProperty("metric_name")) - if (!$util.isString(message.metric_name)) - return "metric_name: string expected"; - if (message.app_name != null && message.hasOwnProperty("app_name")) - if (!$util.isString(message.app_name)) - return "app_name: string expected"; - if (message.app_checked_metrics != null && message.hasOwnProperty("app_checked_metrics")) { - if (!Array.isArray(message.app_checked_metrics)) - return "app_checked_metrics: array expected"; - for (let i = 0; i < message.app_checked_metrics.length; ++i) - if (!$util.isString(message.app_checked_metrics[i])) - return "app_checked_metrics: string[] expected"; + return "tablet_alias." + error; } return null; }; /** - * Creates an UpdateThrottlerConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.UpdateThrottlerConfigRequest + * @memberof vtctldata.GetVersionRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.UpdateThrottlerConfigRequest} UpdateThrottlerConfigRequest + * @returns {vtctldata.GetVersionRequest} GetVersionRequest */ - UpdateThrottlerConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.UpdateThrottlerConfigRequest) + GetVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetVersionRequest) return object; - let message = new $root.vtctldata.UpdateThrottlerConfigRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.enable != null) - message.enable = Boolean(object.enable); - if (object.disable != null) - message.disable = Boolean(object.disable); - if (object.threshold != null) - message.threshold = Number(object.threshold); - if (object.custom_query != null) - message.custom_query = String(object.custom_query); - if (object.custom_query_set != null) - message.custom_query_set = Boolean(object.custom_query_set); - if (object.check_as_check_self != null) - message.check_as_check_self = Boolean(object.check_as_check_self); - if (object.check_as_check_shard != null) - message.check_as_check_shard = Boolean(object.check_as_check_shard); - if (object.throttled_app != null) { - if (typeof object.throttled_app !== "object") - throw TypeError(".vtctldata.UpdateThrottlerConfigRequest.throttled_app: object expected"); - message.throttled_app = $root.topodata.ThrottledAppRule.fromObject(object.throttled_app); - } - if (object.metric_name != null) - message.metric_name = String(object.metric_name); - if (object.app_name != null) - message.app_name = String(object.app_name); - if (object.app_checked_metrics) { - if (!Array.isArray(object.app_checked_metrics)) - throw TypeError(".vtctldata.UpdateThrottlerConfigRequest.app_checked_metrics: array expected"); - message.app_checked_metrics = []; - for (let i = 0; i < object.app_checked_metrics.length; ++i) - message.app_checked_metrics[i] = String(object.app_checked_metrics[i]); + let message = new $root.vtctldata.GetVersionRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.GetVersionRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } return message; }; /** - * Creates a plain object from an UpdateThrottlerConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.UpdateThrottlerConfigRequest + * @memberof vtctldata.GetVersionRequest * @static - * @param {vtctldata.UpdateThrottlerConfigRequest} message UpdateThrottlerConfigRequest + * @param {vtctldata.GetVersionRequest} message GetVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateThrottlerConfigRequest.toObject = function toObject(message, options) { + GetVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.app_checked_metrics = []; - if (options.defaults) { - object.keyspace = ""; - object.enable = false; - object.disable = false; - object.threshold = 0; - object.custom_query = ""; - object.custom_query_set = false; - object.check_as_check_self = false; - object.check_as_check_shard = false; - object.throttled_app = null; - object.metric_name = ""; - object.app_name = ""; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.enable != null && message.hasOwnProperty("enable")) - object.enable = message.enable; - if (message.disable != null && message.hasOwnProperty("disable")) - object.disable = message.disable; - if (message.threshold != null && message.hasOwnProperty("threshold")) - object.threshold = options.json && !isFinite(message.threshold) ? String(message.threshold) : message.threshold; - if (message.custom_query != null && message.hasOwnProperty("custom_query")) - object.custom_query = message.custom_query; - if (message.custom_query_set != null && message.hasOwnProperty("custom_query_set")) - object.custom_query_set = message.custom_query_set; - if (message.check_as_check_self != null && message.hasOwnProperty("check_as_check_self")) - object.check_as_check_self = message.check_as_check_self; - if (message.check_as_check_shard != null && message.hasOwnProperty("check_as_check_shard")) - object.check_as_check_shard = message.check_as_check_shard; - if (message.throttled_app != null && message.hasOwnProperty("throttled_app")) - object.throttled_app = $root.topodata.ThrottledAppRule.toObject(message.throttled_app, options); - if (message.metric_name != null && message.hasOwnProperty("metric_name")) - object.metric_name = message.metric_name; - if (message.app_name != null && message.hasOwnProperty("app_name")) - object.app_name = message.app_name; - if (message.app_checked_metrics && message.app_checked_metrics.length) { - object.app_checked_metrics = []; - for (let j = 0; j < message.app_checked_metrics.length; ++j) - object.app_checked_metrics[j] = message.app_checked_metrics[j]; - } + if (options.defaults) + object.tablet_alias = null; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); return object; }; /** - * Converts this UpdateThrottlerConfigRequest to JSON. + * Converts this GetVersionRequest to JSON. * @function toJSON - * @memberof vtctldata.UpdateThrottlerConfigRequest + * @memberof vtctldata.GetVersionRequest * @instance * @returns {Object.} JSON object */ - UpdateThrottlerConfigRequest.prototype.toJSON = function toJSON() { + GetVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateThrottlerConfigRequest + * Gets the default type url for GetVersionRequest * @function getTypeUrl - * @memberof vtctldata.UpdateThrottlerConfigRequest + * @memberof vtctldata.GetVersionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateThrottlerConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.UpdateThrottlerConfigRequest"; + return typeUrlPrefix + "/vtctldata.GetVersionRequest"; }; - return UpdateThrottlerConfigRequest; + return GetVersionRequest; })(); - vtctldata.UpdateThrottlerConfigResponse = (function() { + vtctldata.GetVersionResponse = (function() { /** - * Properties of an UpdateThrottlerConfigResponse. + * Properties of a GetVersionResponse. * @memberof vtctldata - * @interface IUpdateThrottlerConfigResponse + * @interface IGetVersionResponse + * @property {string|null} [version] GetVersionResponse version */ /** - * Constructs a new UpdateThrottlerConfigResponse. + * Constructs a new GetVersionResponse. * @memberof vtctldata - * @classdesc Represents an UpdateThrottlerConfigResponse. - * @implements IUpdateThrottlerConfigResponse + * @classdesc Represents a GetVersionResponse. + * @implements IGetVersionResponse * @constructor - * @param {vtctldata.IUpdateThrottlerConfigResponse=} [properties] Properties to set + * @param {vtctldata.IGetVersionResponse=} [properties] Properties to set */ - function UpdateThrottlerConfigResponse(properties) { + function GetVersionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -155395,63 +163213,77 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new UpdateThrottlerConfigResponse instance using the specified properties. + * GetVersionResponse version. + * @member {string} version + * @memberof vtctldata.GetVersionResponse + * @instance + */ + GetVersionResponse.prototype.version = ""; + + /** + * Creates a new GetVersionResponse instance using the specified properties. * @function create - * @memberof vtctldata.UpdateThrottlerConfigResponse + * @memberof vtctldata.GetVersionResponse * @static - * @param {vtctldata.IUpdateThrottlerConfigResponse=} [properties] Properties to set - * @returns {vtctldata.UpdateThrottlerConfigResponse} UpdateThrottlerConfigResponse instance + * @param {vtctldata.IGetVersionResponse=} [properties] Properties to set + * @returns {vtctldata.GetVersionResponse} GetVersionResponse instance */ - UpdateThrottlerConfigResponse.create = function create(properties) { - return new UpdateThrottlerConfigResponse(properties); + GetVersionResponse.create = function create(properties) { + return new GetVersionResponse(properties); }; /** - * Encodes the specified UpdateThrottlerConfigResponse message. Does not implicitly {@link vtctldata.UpdateThrottlerConfigResponse.verify|verify} messages. + * Encodes the specified GetVersionResponse message. Does not implicitly {@link vtctldata.GetVersionResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.UpdateThrottlerConfigResponse + * @memberof vtctldata.GetVersionResponse * @static - * @param {vtctldata.IUpdateThrottlerConfigResponse} message UpdateThrottlerConfigResponse message or plain object to encode + * @param {vtctldata.IGetVersionResponse} message GetVersionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateThrottlerConfigResponse.encode = function encode(message, writer) { + GetVersionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); return writer; }; /** - * Encodes the specified UpdateThrottlerConfigResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateThrottlerConfigResponse.verify|verify} messages. + * Encodes the specified GetVersionResponse message, length delimited. Does not implicitly {@link vtctldata.GetVersionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.UpdateThrottlerConfigResponse + * @memberof vtctldata.GetVersionResponse * @static - * @param {vtctldata.IUpdateThrottlerConfigResponse} message UpdateThrottlerConfigResponse message or plain object to encode + * @param {vtctldata.IGetVersionResponse} message GetVersionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateThrottlerConfigResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetVersionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer. + * Decodes a GetVersionResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.UpdateThrottlerConfigResponse + * @memberof vtctldata.GetVersionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.UpdateThrottlerConfigResponse} UpdateThrottlerConfigResponse + * @returns {vtctldata.GetVersionResponse} GetVersionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateThrottlerConfigResponse.decode = function decode(reader, length) { + GetVersionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.UpdateThrottlerConfigResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVersionResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.version = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -155461,109 +163293,122 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer, length delimited. + * Decodes a GetVersionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.UpdateThrottlerConfigResponse + * @memberof vtctldata.GetVersionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.UpdateThrottlerConfigResponse} UpdateThrottlerConfigResponse + * @returns {vtctldata.GetVersionResponse} GetVersionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateThrottlerConfigResponse.decodeDelimited = function decodeDelimited(reader) { + GetVersionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateThrottlerConfigResponse message. + * Verifies a GetVersionResponse message. * @function verify - * @memberof vtctldata.UpdateThrottlerConfigResponse + * @memberof vtctldata.GetVersionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateThrottlerConfigResponse.verify = function verify(message) { + GetVersionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; return null; }; /** - * Creates an UpdateThrottlerConfigResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetVersionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.UpdateThrottlerConfigResponse + * @memberof vtctldata.GetVersionResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.UpdateThrottlerConfigResponse} UpdateThrottlerConfigResponse + * @returns {vtctldata.GetVersionResponse} GetVersionResponse */ - UpdateThrottlerConfigResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.UpdateThrottlerConfigResponse) + GetVersionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetVersionResponse) return object; - return new $root.vtctldata.UpdateThrottlerConfigResponse(); + let message = new $root.vtctldata.GetVersionResponse(); + if (object.version != null) + message.version = String(object.version); + return message; }; /** - * Creates a plain object from an UpdateThrottlerConfigResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetVersionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.UpdateThrottlerConfigResponse + * @memberof vtctldata.GetVersionResponse * @static - * @param {vtctldata.UpdateThrottlerConfigResponse} message UpdateThrottlerConfigResponse + * @param {vtctldata.GetVersionResponse} message GetVersionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateThrottlerConfigResponse.toObject = function toObject() { - return {}; + GetVersionResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.version = ""; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; }; /** - * Converts this UpdateThrottlerConfigResponse to JSON. + * Converts this GetVersionResponse to JSON. * @function toJSON - * @memberof vtctldata.UpdateThrottlerConfigResponse + * @memberof vtctldata.GetVersionResponse * @instance * @returns {Object.} JSON object */ - UpdateThrottlerConfigResponse.prototype.toJSON = function toJSON() { + GetVersionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateThrottlerConfigResponse + * Gets the default type url for GetVersionResponse * @function getTypeUrl - * @memberof vtctldata.UpdateThrottlerConfigResponse + * @memberof vtctldata.GetVersionResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateThrottlerConfigResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetVersionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.UpdateThrottlerConfigResponse"; + return typeUrlPrefix + "/vtctldata.GetVersionResponse"; }; - return UpdateThrottlerConfigResponse; + return GetVersionResponse; })(); - vtctldata.GetSrvVSchemaRequest = (function() { + vtctldata.GetVSchemaResponse = (function() { /** - * Properties of a GetSrvVSchemaRequest. + * Properties of a GetVSchemaResponse. * @memberof vtctldata - * @interface IGetSrvVSchemaRequest - * @property {string|null} [cell] GetSrvVSchemaRequest cell + * @interface IGetVSchemaResponse + * @property {vschema.IKeyspace|null} [v_schema] GetVSchemaResponse v_schema */ /** - * Constructs a new GetSrvVSchemaRequest. + * Constructs a new GetVSchemaResponse. * @memberof vtctldata - * @classdesc Represents a GetSrvVSchemaRequest. - * @implements IGetSrvVSchemaRequest + * @classdesc Represents a GetVSchemaResponse. + * @implements IGetVSchemaResponse * @constructor - * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set + * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set */ - function GetSrvVSchemaRequest(properties) { + function GetVSchemaResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -155571,75 +163416,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetSrvVSchemaRequest cell. - * @member {string} cell - * @memberof vtctldata.GetSrvVSchemaRequest + * GetVSchemaResponse v_schema. + * @member {vschema.IKeyspace|null|undefined} v_schema + * @memberof vtctldata.GetVSchemaResponse * @instance */ - GetSrvVSchemaRequest.prototype.cell = ""; + GetVSchemaResponse.prototype.v_schema = null; /** - * Creates a new GetSrvVSchemaRequest instance using the specified properties. + * Creates a new GetVSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest instance + * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse instance */ - GetSrvVSchemaRequest.create = function create(properties) { - return new GetSrvVSchemaRequest(properties); + GetVSchemaResponse.create = function create(properties) { + return new GetVSchemaResponse(properties); }; /** - * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. + * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.IGetSrvVSchemaRequest} message GetSrvVSchemaRequest message or plain object to encode + * @param {vtctldata.IGetVSchemaResponse} message GetVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvVSchemaRequest.encode = function encode(message, writer) { + GetVSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); + 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 GetSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. + * Encodes the specified GetVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.IGetSrvVSchemaRequest} message GetSrvVSchemaRequest message or plain object to encode + * @param {vtctldata.IGetVSchemaResponse} message GetVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. + * Decodes a GetVSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest + * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvVSchemaRequest.decode = function decode(reader, length) { + GetVSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVSchemaResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.cell = reader.string(); + message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); break; } default: @@ -155651,122 +163496,133 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest + * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + GetVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSrvVSchemaRequest message. + * Verifies a GetVSchemaResponse message. * @function verify - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSrvVSchemaRequest.verify = function verify(message) { + GetVSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) { + let error = $root.vschema.Keyspace.verify(message.v_schema); + if (error) + return "v_schema." + error; + } return null; }; /** - * Creates a GetSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest + * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse */ - GetSrvVSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvVSchemaRequest) + GetVSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetVSchemaResponse) return object; - let message = new $root.vtctldata.GetSrvVSchemaRequest(); - if (object.cell != null) - message.cell = String(object.cell); + let message = new $root.vtctldata.GetVSchemaResponse(); + if (object.v_schema != null) { + if (typeof object.v_schema !== "object") + throw TypeError(".vtctldata.GetVSchemaResponse.v_schema: object expected"); + message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); + } return message; }; /** - * Creates a plain object from a GetSrvVSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetVSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.GetSrvVSchemaRequest} message GetSrvVSchemaRequest + * @param {vtctldata.GetVSchemaResponse} message GetVSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSrvVSchemaRequest.toObject = function toObject(message, options) { + GetVSchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.cell = ""; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; + 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 GetSrvVSchemaRequest to JSON. + * Converts this GetVSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaResponse * @instance * @returns {Object.} JSON object */ - GetSrvVSchemaRequest.prototype.toJSON = function toJSON() { + GetVSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSrvVSchemaRequest + * Gets the default type url for GetVSchemaResponse * @function getTypeUrl - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSrvVSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetVSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetSrvVSchemaRequest"; + return typeUrlPrefix + "/vtctldata.GetVSchemaResponse"; }; - return GetSrvVSchemaRequest; + return GetVSchemaResponse; })(); - vtctldata.GetSrvVSchemaResponse = (function() { + vtctldata.GetWorkflowsRequest = (function() { /** - * Properties of a GetSrvVSchemaResponse. + * Properties of a GetWorkflowsRequest. * @memberof vtctldata - * @interface IGetSrvVSchemaResponse - * @property {vschema.ISrvVSchema|null} [srv_v_schema] GetSrvVSchemaResponse srv_v_schema + * @interface IGetWorkflowsRequest + * @property {string|null} [keyspace] GetWorkflowsRequest keyspace + * @property {boolean|null} [active_only] GetWorkflowsRequest active_only + * @property {boolean|null} [name_only] GetWorkflowsRequest name_only + * @property {string|null} [workflow] GetWorkflowsRequest workflow + * @property {boolean|null} [include_logs] GetWorkflowsRequest include_logs + * @property {Array.|null} [shards] GetWorkflowsRequest shards */ /** - * Constructs a new GetSrvVSchemaResponse. + * Constructs a new GetWorkflowsRequest. * @memberof vtctldata - * @classdesc Represents a GetSrvVSchemaResponse. - * @implements IGetSrvVSchemaResponse + * @classdesc Represents a GetWorkflowsRequest. + * @implements IGetWorkflowsRequest * @constructor - * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set + * @param {vtctldata.IGetWorkflowsRequest=} [properties] Properties to set */ - function GetSrvVSchemaResponse(properties) { + function GetWorkflowsRequest(properties) { + this.shards = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -155774,75 +163630,148 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetSrvVSchemaResponse srv_v_schema. - * @member {vschema.ISrvVSchema|null|undefined} srv_v_schema - * @memberof vtctldata.GetSrvVSchemaResponse + * GetWorkflowsRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.GetWorkflowsRequest * @instance */ - GetSrvVSchemaResponse.prototype.srv_v_schema = null; + GetWorkflowsRequest.prototype.keyspace = ""; /** - * Creates a new GetSrvVSchemaResponse instance using the specified properties. + * GetWorkflowsRequest active_only. + * @member {boolean} active_only + * @memberof vtctldata.GetWorkflowsRequest + * @instance + */ + GetWorkflowsRequest.prototype.active_only = false; + + /** + * GetWorkflowsRequest name_only. + * @member {boolean} name_only + * @memberof vtctldata.GetWorkflowsRequest + * @instance + */ + GetWorkflowsRequest.prototype.name_only = false; + + /** + * GetWorkflowsRequest workflow. + * @member {string} workflow + * @memberof vtctldata.GetWorkflowsRequest + * @instance + */ + GetWorkflowsRequest.prototype.workflow = ""; + + /** + * GetWorkflowsRequest include_logs. + * @member {boolean} include_logs + * @memberof vtctldata.GetWorkflowsRequest + * @instance + */ + GetWorkflowsRequest.prototype.include_logs = false; + + /** + * GetWorkflowsRequest shards. + * @member {Array.} shards + * @memberof vtctldata.GetWorkflowsRequest + * @instance + */ + GetWorkflowsRequest.prototype.shards = $util.emptyArray; + + /** + * Creates a new GetWorkflowsRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetWorkflowsRequest * @static - * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse instance + * @param {vtctldata.IGetWorkflowsRequest=} [properties] Properties to set + * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest instance */ - GetSrvVSchemaResponse.create = function create(properties) { - return new GetSrvVSchemaResponse(properties); + GetWorkflowsRequest.create = function create(properties) { + return new GetWorkflowsRequest(properties); }; /** - * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. + * Encodes the specified GetWorkflowsRequest message. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetWorkflowsRequest * @static - * @param {vtctldata.IGetSrvVSchemaResponse} message GetSrvVSchemaResponse message or plain object to encode + * @param {vtctldata.IGetWorkflowsRequest} message GetWorkflowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvVSchemaResponse.encode = function encode(message, writer) { + GetWorkflowsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.srv_v_schema != null && Object.hasOwnProperty.call(message, "srv_v_schema")) - $root.vschema.SrvVSchema.encode(message.srv_v_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.active_only != null && Object.hasOwnProperty.call(message, "active_only")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.active_only); + if (message.name_only != null && Object.hasOwnProperty.call(message, "name_only")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.name_only); + if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.workflow); + if (message.include_logs != null && Object.hasOwnProperty.call(message, "include_logs")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.include_logs); + if (message.shards != null && message.shards.length) + for (let i = 0; i < message.shards.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.shards[i]); return writer; }; /** - * Encodes the specified GetSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. + * Encodes the specified GetWorkflowsRequest message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetWorkflowsRequest * @static - * @param {vtctldata.IGetSrvVSchemaResponse} message GetSrvVSchemaResponse message or plain object to encode + * @param {vtctldata.IGetWorkflowsRequest} message GetWorkflowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetWorkflowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. + * Decodes a GetWorkflowsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetWorkflowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse + * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvVSchemaResponse.decode = function decode(reader, length) { + GetWorkflowsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemaResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetWorkflowsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.srv_v_schema = $root.vschema.SrvVSchema.decode(reader, reader.uint32()); + message.keyspace = reader.string(); + break; + } + case 2: { + message.active_only = reader.bool(); + break; + } + case 3: { + message.name_only = reader.bool(); + break; + } + case 4: { + message.workflow = reader.string(); + break; + } + case 5: { + message.include_logs = reader.bool(); + break; + } + case 6: { + if (!(message.shards && message.shards.length)) + message.shards = []; + message.shards.push(reader.string()); break; } default: @@ -155854,128 +163783,177 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a GetWorkflowsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetWorkflowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse + * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + GetWorkflowsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSrvVSchemaResponse message. + * Verifies a GetWorkflowsRequest message. * @function verify - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetWorkflowsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSrvVSchemaResponse.verify = function verify(message) { + GetWorkflowsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) { - let error = $root.vschema.SrvVSchema.verify(message.srv_v_schema); - if (error) - return "srv_v_schema." + error; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.active_only != null && message.hasOwnProperty("active_only")) + if (typeof message.active_only !== "boolean") + return "active_only: boolean expected"; + if (message.name_only != null && message.hasOwnProperty("name_only")) + if (typeof message.name_only !== "boolean") + return "name_only: boolean expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.include_logs != null && message.hasOwnProperty("include_logs")) + if (typeof message.include_logs !== "boolean") + return "include_logs: boolean expected"; + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!Array.isArray(message.shards)) + return "shards: array expected"; + for (let i = 0; i < message.shards.length; ++i) + if (!$util.isString(message.shards[i])) + return "shards: string[] expected"; } return null; }; /** - * Creates a GetSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetWorkflowsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetWorkflowsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse + * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest */ - GetSrvVSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvVSchemaResponse) + GetWorkflowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetWorkflowsRequest) return object; - let message = new $root.vtctldata.GetSrvVSchemaResponse(); - if (object.srv_v_schema != null) { - if (typeof object.srv_v_schema !== "object") - throw TypeError(".vtctldata.GetSrvVSchemaResponse.srv_v_schema: object expected"); - message.srv_v_schema = $root.vschema.SrvVSchema.fromObject(object.srv_v_schema); + let message = new $root.vtctldata.GetWorkflowsRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.active_only != null) + message.active_only = Boolean(object.active_only); + if (object.name_only != null) + message.name_only = Boolean(object.name_only); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.include_logs != null) + message.include_logs = Boolean(object.include_logs); + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".vtctldata.GetWorkflowsRequest.shards: array expected"); + message.shards = []; + for (let i = 0; i < object.shards.length; ++i) + message.shards[i] = String(object.shards[i]); } return message; }; /** - * Creates a plain object from a GetSrvVSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetWorkflowsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetWorkflowsRequest * @static - * @param {vtctldata.GetSrvVSchemaResponse} message GetSrvVSchemaResponse + * @param {vtctldata.GetWorkflowsRequest} message GetWorkflowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSrvVSchemaResponse.toObject = function toObject(message, options) { + GetWorkflowsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.srv_v_schema = null; - if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) - object.srv_v_schema = $root.vschema.SrvVSchema.toObject(message.srv_v_schema, options); + if (options.arrays || options.defaults) + object.shards = []; + if (options.defaults) { + object.keyspace = ""; + object.active_only = false; + object.name_only = false; + object.workflow = ""; + object.include_logs = false; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.active_only != null && message.hasOwnProperty("active_only")) + object.active_only = message.active_only; + if (message.name_only != null && message.hasOwnProperty("name_only")) + object.name_only = message.name_only; + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.include_logs != null && message.hasOwnProperty("include_logs")) + object.include_logs = message.include_logs; + if (message.shards && message.shards.length) { + object.shards = []; + for (let j = 0; j < message.shards.length; ++j) + object.shards[j] = message.shards[j]; + } return object; }; /** - * Converts this GetSrvVSchemaResponse to JSON. + * Converts this GetWorkflowsRequest to JSON. * @function toJSON - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetWorkflowsRequest * @instance * @returns {Object.} JSON object */ - GetSrvVSchemaResponse.prototype.toJSON = function toJSON() { + GetWorkflowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSrvVSchemaResponse + * Gets the default type url for GetWorkflowsRequest * @function getTypeUrl - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetWorkflowsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSrvVSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetWorkflowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetSrvVSchemaResponse"; + return typeUrlPrefix + "/vtctldata.GetWorkflowsRequest"; }; - return GetSrvVSchemaResponse; + return GetWorkflowsRequest; })(); - vtctldata.GetSrvVSchemasRequest = (function() { + vtctldata.GetWorkflowsResponse = (function() { /** - * Properties of a GetSrvVSchemasRequest. + * Properties of a GetWorkflowsResponse. * @memberof vtctldata - * @interface IGetSrvVSchemasRequest - * @property {Array.|null} [cells] GetSrvVSchemasRequest cells + * @interface IGetWorkflowsResponse + * @property {Array.|null} [workflows] GetWorkflowsResponse workflows */ /** - * Constructs a new GetSrvVSchemasRequest. + * Constructs a new GetWorkflowsResponse. * @memberof vtctldata - * @classdesc Represents a GetSrvVSchemasRequest. - * @implements IGetSrvVSchemasRequest + * @classdesc Represents a GetWorkflowsResponse. + * @implements IGetWorkflowsResponse * @constructor - * @param {vtctldata.IGetSrvVSchemasRequest=} [properties] Properties to set + * @param {vtctldata.IGetWorkflowsResponse=} [properties] Properties to set */ - function GetSrvVSchemasRequest(properties) { - this.cells = []; + function GetWorkflowsResponse(properties) { + this.workflows = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -155983,78 +163961,78 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetSrvVSchemasRequest cells. - * @member {Array.} cells - * @memberof vtctldata.GetSrvVSchemasRequest + * GetWorkflowsResponse workflows. + * @member {Array.} workflows + * @memberof vtctldata.GetWorkflowsResponse * @instance */ - GetSrvVSchemasRequest.prototype.cells = $util.emptyArray; + GetWorkflowsResponse.prototype.workflows = $util.emptyArray; /** - * Creates a new GetSrvVSchemasRequest instance using the specified properties. + * Creates a new GetWorkflowsResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetSrvVSchemasRequest + * @memberof vtctldata.GetWorkflowsResponse * @static - * @param {vtctldata.IGetSrvVSchemasRequest=} [properties] Properties to set - * @returns {vtctldata.GetSrvVSchemasRequest} GetSrvVSchemasRequest instance + * @param {vtctldata.IGetWorkflowsResponse=} [properties] Properties to set + * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse instance */ - GetSrvVSchemasRequest.create = function create(properties) { - return new GetSrvVSchemasRequest(properties); + GetWorkflowsResponse.create = function create(properties) { + return new GetWorkflowsResponse(properties); }; /** - * Encodes the specified GetSrvVSchemasRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemasRequest.verify|verify} messages. + * Encodes the specified GetWorkflowsResponse message. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSrvVSchemasRequest + * @memberof vtctldata.GetWorkflowsResponse * @static - * @param {vtctldata.IGetSrvVSchemasRequest} message GetSrvVSchemasRequest message or plain object to encode + * @param {vtctldata.IGetWorkflowsResponse} message GetWorkflowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvVSchemasRequest.encode = function encode(message, writer) { + GetWorkflowsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); + if (message.workflows != null && message.workflows.length) + for (let i = 0; i < message.workflows.length; ++i) + $root.vtctldata.Workflow.encode(message.workflows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetSrvVSchemasRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemasRequest.verify|verify} messages. + * Encodes the specified GetWorkflowsResponse message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSrvVSchemasRequest + * @memberof vtctldata.GetWorkflowsResponse * @static - * @param {vtctldata.IGetSrvVSchemasRequest} message GetSrvVSchemasRequest message or plain object to encode + * @param {vtctldata.IGetWorkflowsResponse} message GetWorkflowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvVSchemasRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetWorkflowsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer. + * Decodes a GetWorkflowsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSrvVSchemasRequest + * @memberof vtctldata.GetWorkflowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSrvVSchemasRequest} GetSrvVSchemasRequest + * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvVSchemasRequest.decode = function decode(reader, length) { + GetWorkflowsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemasRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetWorkflowsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + case 1: { + if (!(message.workflows && message.workflows.length)) + message.workflows = []; + message.workflows.push($root.vtctldata.Workflow.decode(reader, reader.uint32())); break; } default: @@ -156066,135 +164044,143 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer, length delimited. + * Decodes a GetWorkflowsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSrvVSchemasRequest + * @memberof vtctldata.GetWorkflowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSrvVSchemasRequest} GetSrvVSchemasRequest + * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvVSchemasRequest.decodeDelimited = function decodeDelimited(reader) { + GetWorkflowsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSrvVSchemasRequest message. + * Verifies a GetWorkflowsResponse message. * @function verify - * @memberof vtctldata.GetSrvVSchemasRequest + * @memberof vtctldata.GetWorkflowsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSrvVSchemasRequest.verify = function verify(message) { + GetWorkflowsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; + if (message.workflows != null && message.hasOwnProperty("workflows")) { + if (!Array.isArray(message.workflows)) + return "workflows: array expected"; + for (let i = 0; i < message.workflows.length; ++i) { + let error = $root.vtctldata.Workflow.verify(message.workflows[i]); + if (error) + return "workflows." + error; + } } return null; }; /** - * Creates a GetSrvVSchemasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetWorkflowsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetSrvVSchemasRequest + * @memberof vtctldata.GetWorkflowsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvVSchemasRequest} GetSrvVSchemasRequest + * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse */ - GetSrvVSchemasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvVSchemasRequest) + GetWorkflowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetWorkflowsResponse) return object; - let message = new $root.vtctldata.GetSrvVSchemasRequest(); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.GetSrvVSchemasRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); + let message = new $root.vtctldata.GetWorkflowsResponse(); + if (object.workflows) { + if (!Array.isArray(object.workflows)) + throw TypeError(".vtctldata.GetWorkflowsResponse.workflows: array expected"); + message.workflows = []; + for (let i = 0; i < object.workflows.length; ++i) { + if (typeof object.workflows[i] !== "object") + throw TypeError(".vtctldata.GetWorkflowsResponse.workflows: object expected"); + message.workflows[i] = $root.vtctldata.Workflow.fromObject(object.workflows[i]); + } } return message; }; /** - * Creates a plain object from a GetSrvVSchemasRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetWorkflowsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSrvVSchemasRequest + * @memberof vtctldata.GetWorkflowsResponse * @static - * @param {vtctldata.GetSrvVSchemasRequest} message GetSrvVSchemasRequest + * @param {vtctldata.GetWorkflowsResponse} message GetWorkflowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSrvVSchemasRequest.toObject = function toObject(message, options) { + GetWorkflowsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.cells = []; - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; + object.workflows = []; + if (message.workflows && message.workflows.length) { + object.workflows = []; + for (let j = 0; j < message.workflows.length; ++j) + object.workflows[j] = $root.vtctldata.Workflow.toObject(message.workflows[j], options); } return object; }; /** - * Converts this GetSrvVSchemasRequest to JSON. + * Converts this GetWorkflowsResponse to JSON. * @function toJSON - * @memberof vtctldata.GetSrvVSchemasRequest + * @memberof vtctldata.GetWorkflowsResponse * @instance * @returns {Object.} JSON object */ - GetSrvVSchemasRequest.prototype.toJSON = function toJSON() { + GetWorkflowsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSrvVSchemasRequest + * Gets the default type url for GetWorkflowsResponse * @function getTypeUrl - * @memberof vtctldata.GetSrvVSchemasRequest + * @memberof vtctldata.GetWorkflowsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSrvVSchemasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetWorkflowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetSrvVSchemasRequest"; + return typeUrlPrefix + "/vtctldata.GetWorkflowsResponse"; }; - return GetSrvVSchemasRequest; + return GetWorkflowsResponse; })(); - vtctldata.GetSrvVSchemasResponse = (function() { + vtctldata.InitShardPrimaryRequest = (function() { /** - * Properties of a GetSrvVSchemasResponse. + * Properties of an InitShardPrimaryRequest. * @memberof vtctldata - * @interface IGetSrvVSchemasResponse - * @property {Object.|null} [srv_v_schemas] GetSrvVSchemasResponse srv_v_schemas + * @interface IInitShardPrimaryRequest + * @property {string|null} [keyspace] InitShardPrimaryRequest keyspace + * @property {string|null} [shard] InitShardPrimaryRequest shard + * @property {topodata.ITabletAlias|null} [primary_elect_tablet_alias] InitShardPrimaryRequest primary_elect_tablet_alias + * @property {boolean|null} [force] InitShardPrimaryRequest force + * @property {vttime.IDuration|null} [wait_replicas_timeout] InitShardPrimaryRequest wait_replicas_timeout */ /** - * Constructs a new GetSrvVSchemasResponse. + * Constructs a new InitShardPrimaryRequest. * @memberof vtctldata - * @classdesc Represents a GetSrvVSchemasResponse. - * @implements IGetSrvVSchemasResponse + * @classdesc Represents an InitShardPrimaryRequest. + * @implements IInitShardPrimaryRequest * @constructor - * @param {vtctldata.IGetSrvVSchemasResponse=} [properties] Properties to set + * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set */ - function GetSrvVSchemasResponse(properties) { - this.srv_v_schemas = {}; + function InitShardPrimaryRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -156202,97 +164188,131 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetSrvVSchemasResponse srv_v_schemas. - * @member {Object.} srv_v_schemas - * @memberof vtctldata.GetSrvVSchemasResponse + * InitShardPrimaryRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.InitShardPrimaryRequest * @instance */ - GetSrvVSchemasResponse.prototype.srv_v_schemas = $util.emptyObject; + InitShardPrimaryRequest.prototype.keyspace = ""; /** - * Creates a new GetSrvVSchemasResponse instance using the specified properties. + * InitShardPrimaryRequest shard. + * @member {string} shard + * @memberof vtctldata.InitShardPrimaryRequest + * @instance + */ + InitShardPrimaryRequest.prototype.shard = ""; + + /** + * InitShardPrimaryRequest primary_elect_tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} primary_elect_tablet_alias + * @memberof vtctldata.InitShardPrimaryRequest + * @instance + */ + InitShardPrimaryRequest.prototype.primary_elect_tablet_alias = null; + + /** + * InitShardPrimaryRequest force. + * @member {boolean} force + * @memberof vtctldata.InitShardPrimaryRequest + * @instance + */ + InitShardPrimaryRequest.prototype.force = false; + + /** + * InitShardPrimaryRequest wait_replicas_timeout. + * @member {vttime.IDuration|null|undefined} wait_replicas_timeout + * @memberof vtctldata.InitShardPrimaryRequest + * @instance + */ + InitShardPrimaryRequest.prototype.wait_replicas_timeout = null; + + /** + * Creates a new InitShardPrimaryRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetSrvVSchemasResponse + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.IGetSrvVSchemasResponse=} [properties] Properties to set - * @returns {vtctldata.GetSrvVSchemasResponse} GetSrvVSchemasResponse instance + * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set + * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest instance */ - GetSrvVSchemasResponse.create = function create(properties) { - return new GetSrvVSchemasResponse(properties); + InitShardPrimaryRequest.create = function create(properties) { + return new InitShardPrimaryRequest(properties); }; /** - * Encodes the specified GetSrvVSchemasResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemasResponse.verify|verify} messages. + * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSrvVSchemasResponse + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.IGetSrvVSchemasResponse} message GetSrvVSchemasResponse message or plain object to encode + * @param {vtctldata.IInitShardPrimaryRequest} message InitShardPrimaryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvVSchemasResponse.encode = function encode(message, writer) { + InitShardPrimaryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.srv_v_schemas != null && Object.hasOwnProperty.call(message, "srv_v_schemas")) - for (let keys = Object.keys(message.srv_v_schemas), 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.SrvVSchema.encode(message.srv_v_schemas[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().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.primary_elect_tablet_alias != null && Object.hasOwnProperty.call(message, "primary_elect_tablet_alias")) + $root.topodata.TabletAlias.encode(message.primary_elect_tablet_alias, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.force); + if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) + $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetSrvVSchemasResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemasResponse.verify|verify} messages. + * Encodes the specified InitShardPrimaryRequest message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSrvVSchemasResponse + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.IGetSrvVSchemasResponse} message GetSrvVSchemasResponse message or plain object to encode + * @param {vtctldata.IInitShardPrimaryRequest} message InitShardPrimaryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvVSchemasResponse.encodeDelimited = function encodeDelimited(message, writer) { + InitShardPrimaryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer. + * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSrvVSchemasResponse + * @memberof vtctldata.InitShardPrimaryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSrvVSchemasResponse} GetSrvVSchemasResponse + * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvVSchemasResponse.decode = function decode(reader, length) { + InitShardPrimaryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemasResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.InitShardPrimaryRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.srv_v_schemas === $util.emptyObject) - message.srv_v_schemas = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vschema.SrvVSchema.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.srv_v_schemas[key] = value; + message.keyspace = reader.string(); + break; + } + case 2: { + message.shard = reader.string(); + break; + } + case 3: { + message.primary_elect_tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 4: { + message.force = reader.bool(); + break; + } + case 5: { + message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); break; } default: @@ -156304,141 +164324,166 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer, length delimited. + * Decodes an InitShardPrimaryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSrvVSchemasResponse + * @memberof vtctldata.InitShardPrimaryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSrvVSchemasResponse} GetSrvVSchemasResponse + * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvVSchemasResponse.decodeDelimited = function decodeDelimited(reader) { + InitShardPrimaryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSrvVSchemasResponse message. + * Verifies an InitShardPrimaryRequest message. * @function verify - * @memberof vtctldata.GetSrvVSchemasResponse + * @memberof vtctldata.InitShardPrimaryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSrvVSchemasResponse.verify = function verify(message) { + InitShardPrimaryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.srv_v_schemas != null && message.hasOwnProperty("srv_v_schemas")) { - if (!$util.isObject(message.srv_v_schemas)) - return "srv_v_schemas: object expected"; - let key = Object.keys(message.srv_v_schemas); - for (let i = 0; i < key.length; ++i) { - let error = $root.vschema.SrvVSchema.verify(message.srv_v_schemas[key[i]]); - if (error) - return "srv_v_schemas." + 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.primary_elect_tablet_alias != null && message.hasOwnProperty("primary_elect_tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.primary_elect_tablet_alias); + if (error) + return "primary_elect_tablet_alias." + error; + } + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { + let error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (error) + return "wait_replicas_timeout." + error; } return null; }; /** - * Creates a GetSrvVSchemasResponse message from a plain object. Also converts values to their respective internal types. + * Creates an InitShardPrimaryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetSrvVSchemasResponse + * @memberof vtctldata.InitShardPrimaryRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvVSchemasResponse} GetSrvVSchemasResponse + * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest */ - GetSrvVSchemasResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvVSchemasResponse) + InitShardPrimaryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.InitShardPrimaryRequest) return object; - let message = new $root.vtctldata.GetSrvVSchemasResponse(); - if (object.srv_v_schemas) { - if (typeof object.srv_v_schemas !== "object") - throw TypeError(".vtctldata.GetSrvVSchemasResponse.srv_v_schemas: object expected"); - message.srv_v_schemas = {}; - for (let keys = Object.keys(object.srv_v_schemas), i = 0; i < keys.length; ++i) { - if (typeof object.srv_v_schemas[keys[i]] !== "object") - throw TypeError(".vtctldata.GetSrvVSchemasResponse.srv_v_schemas: object expected"); - message.srv_v_schemas[keys[i]] = $root.vschema.SrvVSchema.fromObject(object.srv_v_schemas[keys[i]]); - } + let message = new $root.vtctldata.InitShardPrimaryRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.primary_elect_tablet_alias != null) { + if (typeof object.primary_elect_tablet_alias !== "object") + throw TypeError(".vtctldata.InitShardPrimaryRequest.primary_elect_tablet_alias: object expected"); + message.primary_elect_tablet_alias = $root.topodata.TabletAlias.fromObject(object.primary_elect_tablet_alias); + } + if (object.force != null) + message.force = Boolean(object.force); + if (object.wait_replicas_timeout != null) { + if (typeof object.wait_replicas_timeout !== "object") + throw TypeError(".vtctldata.InitShardPrimaryRequest.wait_replicas_timeout: object expected"); + message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); } return message; }; /** - * Creates a plain object from a GetSrvVSchemasResponse message. Also converts values to other types if specified. + * Creates a plain object from an InitShardPrimaryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSrvVSchemasResponse + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.GetSrvVSchemasResponse} message GetSrvVSchemasResponse + * @param {vtctldata.InitShardPrimaryRequest} message InitShardPrimaryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSrvVSchemasResponse.toObject = function toObject(message, options) { + InitShardPrimaryRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.srv_v_schemas = {}; - let keys2; - if (message.srv_v_schemas && (keys2 = Object.keys(message.srv_v_schemas)).length) { - object.srv_v_schemas = {}; - for (let j = 0; j < keys2.length; ++j) - object.srv_v_schemas[keys2[j]] = $root.vschema.SrvVSchema.toObject(message.srv_v_schemas[keys2[j]], options); + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.primary_elect_tablet_alias = null; + object.force = false; + object.wait_replicas_timeout = null; } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.primary_elect_tablet_alias != null && message.hasOwnProperty("primary_elect_tablet_alias")) + object.primary_elect_tablet_alias = $root.topodata.TabletAlias.toObject(message.primary_elect_tablet_alias, options); + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) + object.wait_replicas_timeout = $root.vttime.Duration.toObject(message.wait_replicas_timeout, options); return object; }; /** - * Converts this GetSrvVSchemasResponse to JSON. + * Converts this InitShardPrimaryRequest to JSON. * @function toJSON - * @memberof vtctldata.GetSrvVSchemasResponse + * @memberof vtctldata.InitShardPrimaryRequest * @instance * @returns {Object.} JSON object */ - GetSrvVSchemasResponse.prototype.toJSON = function toJSON() { + InitShardPrimaryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSrvVSchemasResponse + * Gets the default type url for InitShardPrimaryRequest * @function getTypeUrl - * @memberof vtctldata.GetSrvVSchemasResponse + * @memberof vtctldata.InitShardPrimaryRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSrvVSchemasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InitShardPrimaryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetSrvVSchemasResponse"; + return typeUrlPrefix + "/vtctldata.InitShardPrimaryRequest"; }; - return GetSrvVSchemasResponse; + return InitShardPrimaryRequest; })(); - vtctldata.GetTabletRequest = (function() { + vtctldata.InitShardPrimaryResponse = (function() { /** - * Properties of a GetTabletRequest. + * Properties of an InitShardPrimaryResponse. * @memberof vtctldata - * @interface IGetTabletRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] GetTabletRequest tablet_alias + * @interface IInitShardPrimaryResponse + * @property {Array.|null} [events] InitShardPrimaryResponse events */ /** - * Constructs a new GetTabletRequest. + * Constructs a new InitShardPrimaryResponse. * @memberof vtctldata - * @classdesc Represents a GetTabletRequest. - * @implements IGetTabletRequest + * @classdesc Represents an InitShardPrimaryResponse. + * @implements IInitShardPrimaryResponse * @constructor - * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set + * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set */ - function GetTabletRequest(properties) { + function InitShardPrimaryResponse(properties) { + this.events = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -156446,75 +164491,78 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetTabletRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.GetTabletRequest + * InitShardPrimaryResponse events. + * @member {Array.} events + * @memberof vtctldata.InitShardPrimaryResponse * @instance */ - GetTabletRequest.prototype.tablet_alias = null; + InitShardPrimaryResponse.prototype.events = $util.emptyArray; /** - * Creates a new GetTabletRequest instance using the specified properties. + * Creates a new InitShardPrimaryResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set - * @returns {vtctldata.GetTabletRequest} GetTabletRequest instance + * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set + * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse instance */ - GetTabletRequest.create = function create(properties) { - return new GetTabletRequest(properties); + InitShardPrimaryResponse.create = function create(properties) { + return new InitShardPrimaryResponse(properties); }; /** - * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. + * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.IGetTabletRequest} message GetTabletRequest message or plain object to encode + * @param {vtctldata.IInitShardPrimaryResponse} message InitShardPrimaryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletRequest.encode = function encode(message, writer) { + InitShardPrimaryResponse.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.events != null && message.events.length) + for (let i = 0; i < message.events.length; ++i) + $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTabletRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. + * Encodes the specified InitShardPrimaryResponse message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.IGetTabletRequest} message GetTabletRequest message or plain object to encode + * @param {vtctldata.IInitShardPrimaryResponse} message InitShardPrimaryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { + InitShardPrimaryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletRequest message from the specified reader or buffer. + * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetTabletRequest} GetTabletRequest + * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletRequest.decode = function decode(reader, length) { + InitShardPrimaryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.InitShardPrimaryResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.logutil.Event.decode(reader, reader.uint32())); break; } default: @@ -156526,127 +164574,141 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetTabletRequest message from the specified reader or buffer, length delimited. + * Decodes an InitShardPrimaryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletRequest} GetTabletRequest + * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletRequest.decodeDelimited = function decodeDelimited(reader) { + InitShardPrimaryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTabletRequest message. + * Verifies an InitShardPrimaryResponse message. * @function verify - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTabletRequest.verify = function verify(message) { + InitShardPrimaryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (let i = 0; i < message.events.length; ++i) { + let error = $root.logutil.Event.verify(message.events[i]); + if (error) + return "events." + error; + } } return null; }; /** - * Creates a GetTabletRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InitShardPrimaryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletRequest} GetTabletRequest + * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse */ - GetTabletRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletRequest) + InitShardPrimaryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.InitShardPrimaryResponse) return object; - let message = new $root.vtctldata.GetTabletRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.GetTabletRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + let message = new $root.vtctldata.InitShardPrimaryResponse(); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".vtctldata.InitShardPrimaryResponse.events: array expected"); + message.events = []; + for (let i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".vtctldata.InitShardPrimaryResponse.events: object expected"); + message.events[i] = $root.logutil.Event.fromObject(object.events[i]); + } } return message; }; /** - * Creates a plain object from a GetTabletRequest message. Also converts values to other types if specified. + * Creates a plain object from an InitShardPrimaryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.GetTabletRequest} message GetTabletRequest + * @param {vtctldata.InitShardPrimaryResponse} message InitShardPrimaryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletRequest.toObject = function toObject(message, options) { + InitShardPrimaryResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.tablet_alias = null; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (options.arrays || options.defaults) + object.events = []; + if (message.events && message.events.length) { + object.events = []; + for (let j = 0; j < message.events.length; ++j) + object.events[j] = $root.logutil.Event.toObject(message.events[j], options); + } return object; }; /** - * Converts this GetTabletRequest to JSON. + * Converts this InitShardPrimaryResponse to JSON. * @function toJSON - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryResponse * @instance * @returns {Object.} JSON object */ - GetTabletRequest.prototype.toJSON = function toJSON() { + InitShardPrimaryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetTabletRequest + * Gets the default type url for InitShardPrimaryResponse * @function getTypeUrl - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetTabletRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InitShardPrimaryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetTabletRequest"; + return typeUrlPrefix + "/vtctldata.InitShardPrimaryResponse"; }; - return GetTabletRequest; + return InitShardPrimaryResponse; })(); - vtctldata.GetTabletResponse = (function() { + vtctldata.LaunchSchemaMigrationRequest = (function() { /** - * Properties of a GetTabletResponse. + * Properties of a LaunchSchemaMigrationRequest. * @memberof vtctldata - * @interface IGetTabletResponse - * @property {topodata.ITablet|null} [tablet] GetTabletResponse tablet + * @interface ILaunchSchemaMigrationRequest + * @property {string|null} [keyspace] LaunchSchemaMigrationRequest keyspace + * @property {string|null} [uuid] LaunchSchemaMigrationRequest uuid + * @property {vtrpc.ICallerID|null} [caller_id] LaunchSchemaMigrationRequest caller_id */ /** - * Constructs a new GetTabletResponse. + * Constructs a new LaunchSchemaMigrationRequest. * @memberof vtctldata - * @classdesc Represents a GetTabletResponse. - * @implements IGetTabletResponse + * @classdesc Represents a LaunchSchemaMigrationRequest. + * @implements ILaunchSchemaMigrationRequest * @constructor - * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set + * @param {vtctldata.ILaunchSchemaMigrationRequest=} [properties] Properties to set */ - function GetTabletResponse(properties) { + function LaunchSchemaMigrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -156654,75 +164716,103 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetTabletResponse tablet. - * @member {topodata.ITablet|null|undefined} tablet - * @memberof vtctldata.GetTabletResponse + * LaunchSchemaMigrationRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.LaunchSchemaMigrationRequest * @instance */ - GetTabletResponse.prototype.tablet = null; + LaunchSchemaMigrationRequest.prototype.keyspace = ""; /** - * Creates a new GetTabletResponse instance using the specified properties. + * LaunchSchemaMigrationRequest uuid. + * @member {string} uuid + * @memberof vtctldata.LaunchSchemaMigrationRequest + * @instance + */ + LaunchSchemaMigrationRequest.prototype.uuid = ""; + + /** + * LaunchSchemaMigrationRequest caller_id. + * @member {vtrpc.ICallerID|null|undefined} caller_id + * @memberof vtctldata.LaunchSchemaMigrationRequest + * @instance + */ + LaunchSchemaMigrationRequest.prototype.caller_id = null; + + /** + * Creates a new LaunchSchemaMigrationRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.LaunchSchemaMigrationRequest * @static - * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set - * @returns {vtctldata.GetTabletResponse} GetTabletResponse instance + * @param {vtctldata.ILaunchSchemaMigrationRequest=} [properties] Properties to set + * @returns {vtctldata.LaunchSchemaMigrationRequest} LaunchSchemaMigrationRequest instance */ - GetTabletResponse.create = function create(properties) { - return new GetTabletResponse(properties); + LaunchSchemaMigrationRequest.create = function create(properties) { + return new LaunchSchemaMigrationRequest(properties); }; /** - * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. + * Encodes the specified LaunchSchemaMigrationRequest message. Does not implicitly {@link vtctldata.LaunchSchemaMigrationRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.LaunchSchemaMigrationRequest * @static - * @param {vtctldata.IGetTabletResponse} message GetTabletResponse message or plain object to encode + * @param {vtctldata.ILaunchSchemaMigrationRequest} message LaunchSchemaMigrationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletResponse.encode = function encode(message, writer) { + LaunchSchemaMigrationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) - $root.topodata.Tablet.encode(message.tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); + if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) + $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTabletResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. + * Encodes the specified LaunchSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.LaunchSchemaMigrationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.LaunchSchemaMigrationRequest * @static - * @param {vtctldata.IGetTabletResponse} message GetTabletResponse message or plain object to encode + * @param {vtctldata.ILaunchSchemaMigrationRequest} message LaunchSchemaMigrationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { + LaunchSchemaMigrationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletResponse message from the specified reader or buffer. + * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.LaunchSchemaMigrationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetTabletResponse} GetTabletResponse + * @returns {vtctldata.LaunchSchemaMigrationRequest} LaunchSchemaMigrationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletResponse.decode = function decode(reader, length) { + LaunchSchemaMigrationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LaunchSchemaMigrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); + message.keyspace = reader.string(); + break; + } + case 2: { + message.uuid = reader.string(); + break; + } + case 3: { + message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; } default: @@ -156734,134 +164824,145 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetTabletResponse message from the specified reader or buffer, length delimited. + * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.LaunchSchemaMigrationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletResponse} GetTabletResponse + * @returns {vtctldata.LaunchSchemaMigrationRequest} LaunchSchemaMigrationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletResponse.decodeDelimited = function decodeDelimited(reader) { + LaunchSchemaMigrationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTabletResponse message. + * Verifies a LaunchSchemaMigrationRequest message. * @function verify - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.LaunchSchemaMigrationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTabletResponse.verify = function verify(message) { + LaunchSchemaMigrationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - let error = $root.topodata.Tablet.verify(message.tablet); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.uuid != null && message.hasOwnProperty("uuid")) + if (!$util.isString(message.uuid)) + return "uuid: string expected"; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) { + let error = $root.vtrpc.CallerID.verify(message.caller_id); if (error) - return "tablet." + error; + return "caller_id." + error; } return null; }; /** - * Creates a GetTabletResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LaunchSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.LaunchSchemaMigrationRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletResponse} GetTabletResponse + * @returns {vtctldata.LaunchSchemaMigrationRequest} LaunchSchemaMigrationRequest */ - GetTabletResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletResponse) + LaunchSchemaMigrationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.LaunchSchemaMigrationRequest) return object; - let message = new $root.vtctldata.GetTabletResponse(); - if (object.tablet != null) { - if (typeof object.tablet !== "object") - throw TypeError(".vtctldata.GetTabletResponse.tablet: object expected"); - message.tablet = $root.topodata.Tablet.fromObject(object.tablet); + let message = new $root.vtctldata.LaunchSchemaMigrationRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.uuid != null) + message.uuid = String(object.uuid); + if (object.caller_id != null) { + if (typeof object.caller_id !== "object") + throw TypeError(".vtctldata.LaunchSchemaMigrationRequest.caller_id: object expected"); + message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); } return message; }; /** - * Creates a plain object from a GetTabletResponse message. Also converts values to other types if specified. + * Creates a plain object from a LaunchSchemaMigrationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.LaunchSchemaMigrationRequest * @static - * @param {vtctldata.GetTabletResponse} message GetTabletResponse + * @param {vtctldata.LaunchSchemaMigrationRequest} message LaunchSchemaMigrationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletResponse.toObject = function toObject(message, options) { + LaunchSchemaMigrationRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.tablet = null; - if (message.tablet != null && message.hasOwnProperty("tablet")) - object.tablet = $root.topodata.Tablet.toObject(message.tablet, options); + if (options.defaults) { + object.keyspace = ""; + object.uuid = ""; + object.caller_id = null; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.uuid != null && message.hasOwnProperty("uuid")) + object.uuid = message.uuid; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) + object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); return object; }; /** - * Converts this GetTabletResponse to JSON. + * Converts this LaunchSchemaMigrationRequest to JSON. * @function toJSON - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.LaunchSchemaMigrationRequest * @instance * @returns {Object.} JSON object */ - GetTabletResponse.prototype.toJSON = function toJSON() { + LaunchSchemaMigrationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetTabletResponse + * Gets the default type url for LaunchSchemaMigrationRequest * @function getTypeUrl - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.LaunchSchemaMigrationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetTabletResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LaunchSchemaMigrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetTabletResponse"; + return typeUrlPrefix + "/vtctldata.LaunchSchemaMigrationRequest"; }; - return GetTabletResponse; + return LaunchSchemaMigrationRequest; })(); - vtctldata.GetTabletsRequest = (function() { + vtctldata.LaunchSchemaMigrationResponse = (function() { /** - * Properties of a GetTabletsRequest. + * Properties of a LaunchSchemaMigrationResponse. * @memberof vtctldata - * @interface IGetTabletsRequest - * @property {string|null} [keyspace] GetTabletsRequest keyspace - * @property {string|null} [shard] GetTabletsRequest shard - * @property {Array.|null} [cells] GetTabletsRequest cells - * @property {boolean|null} [strict] GetTabletsRequest strict - * @property {Array.|null} [tablet_aliases] GetTabletsRequest tablet_aliases - * @property {topodata.TabletType|null} [tablet_type] GetTabletsRequest tablet_type + * @interface ILaunchSchemaMigrationResponse + * @property {Object.|null} [rows_affected_by_shard] LaunchSchemaMigrationResponse rows_affected_by_shard */ /** - * Constructs a new GetTabletsRequest. + * Constructs a new LaunchSchemaMigrationResponse. * @memberof vtctldata - * @classdesc Represents a GetTabletsRequest. - * @implements IGetTabletsRequest + * @classdesc Represents a LaunchSchemaMigrationResponse. + * @implements ILaunchSchemaMigrationResponse * @constructor - * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set + * @param {vtctldata.ILaunchSchemaMigrationResponse=} [properties] Properties to set */ - function GetTabletsRequest(properties) { - this.cells = []; - this.tablet_aliases = []; + function LaunchSchemaMigrationResponse(properties) { + this.rows_affected_by_shard = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -156869,151 +164970,95 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetTabletsRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetTabletsRequest - * @instance - */ - GetTabletsRequest.prototype.keyspace = ""; - - /** - * GetTabletsRequest shard. - * @member {string} shard - * @memberof vtctldata.GetTabletsRequest - * @instance - */ - GetTabletsRequest.prototype.shard = ""; - - /** - * GetTabletsRequest cells. - * @member {Array.} cells - * @memberof vtctldata.GetTabletsRequest - * @instance - */ - GetTabletsRequest.prototype.cells = $util.emptyArray; - - /** - * GetTabletsRequest strict. - * @member {boolean} strict - * @memberof vtctldata.GetTabletsRequest - * @instance - */ - GetTabletsRequest.prototype.strict = false; - - /** - * GetTabletsRequest tablet_aliases. - * @member {Array.} tablet_aliases - * @memberof vtctldata.GetTabletsRequest - * @instance - */ - GetTabletsRequest.prototype.tablet_aliases = $util.emptyArray; - - /** - * GetTabletsRequest tablet_type. - * @member {topodata.TabletType} tablet_type - * @memberof vtctldata.GetTabletsRequest + * LaunchSchemaMigrationResponse rows_affected_by_shard. + * @member {Object.} rows_affected_by_shard + * @memberof vtctldata.LaunchSchemaMigrationResponse * @instance */ - GetTabletsRequest.prototype.tablet_type = 0; + LaunchSchemaMigrationResponse.prototype.rows_affected_by_shard = $util.emptyObject; /** - * Creates a new GetTabletsRequest instance using the specified properties. + * Creates a new LaunchSchemaMigrationResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.LaunchSchemaMigrationResponse * @static - * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set - * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest instance + * @param {vtctldata.ILaunchSchemaMigrationResponse=} [properties] Properties to set + * @returns {vtctldata.LaunchSchemaMigrationResponse} LaunchSchemaMigrationResponse instance */ - GetTabletsRequest.create = function create(properties) { - return new GetTabletsRequest(properties); + LaunchSchemaMigrationResponse.create = function create(properties) { + return new LaunchSchemaMigrationResponse(properties); }; /** - * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. + * Encodes the specified LaunchSchemaMigrationResponse message. Does not implicitly {@link vtctldata.LaunchSchemaMigrationResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.LaunchSchemaMigrationResponse * @static - * @param {vtctldata.IGetTabletsRequest} message GetTabletsRequest message or plain object to encode + * @param {vtctldata.ILaunchSchemaMigrationResponse} message LaunchSchemaMigrationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletsRequest.encode = function encode(message, writer) { + LaunchSchemaMigrationResponse.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.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); - if (message.strict != null && Object.hasOwnProperty.call(message, "strict")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.strict); - if (message.tablet_aliases != null && message.tablet_aliases.length) - for (let i = 0; i < message.tablet_aliases.length; ++i) - $root.topodata.TabletAlias.encode(message.tablet_aliases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.tablet_type); + if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) + for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified GetTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. + * Encodes the specified LaunchSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.LaunchSchemaMigrationResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.LaunchSchemaMigrationResponse * @static - * @param {vtctldata.IGetTabletsRequest} message GetTabletsRequest message or plain object to encode + * @param {vtctldata.ILaunchSchemaMigrationResponse} message LaunchSchemaMigrationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { + LaunchSchemaMigrationResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletsRequest message from the specified reader or buffer. + * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.LaunchSchemaMigrationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest + * @returns {vtctldata.LaunchSchemaMigrationResponse} LaunchSchemaMigrationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletsRequest.decode = function decode(reader, length) { + LaunchSchemaMigrationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LaunchSchemaMigrationResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.shard = reader.string(); - break; - } - case 3: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); - break; - } - case 4: { - message.strict = reader.bool(); - break; - } - case 5: { - if (!(message.tablet_aliases && message.tablet_aliases.length)) - message.tablet_aliases = []; - message.tablet_aliases.push($root.topodata.TabletAlias.decode(reader, reader.uint32())); - break; - } - case 6: { - message.tablet_type = reader.int32(); + if (message.rows_affected_by_shard === $util.emptyObject) + message.rows_affected_by_shard = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.uint64(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.rows_affected_by_shard[key] = value; break; } default: @@ -157025,259 +165070,148 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetTabletsRequest message from the specified reader or buffer, length delimited. + * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.LaunchSchemaMigrationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest + * @returns {vtctldata.LaunchSchemaMigrationResponse} LaunchSchemaMigrationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletsRequest.decodeDelimited = function decodeDelimited(reader) { + LaunchSchemaMigrationResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTabletsRequest message. + * Verifies a LaunchSchemaMigrationResponse message. * @function verify - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.LaunchSchemaMigrationResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTabletsRequest.verify = function verify(message) { + LaunchSchemaMigrationResponse.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.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } - if (message.strict != null && message.hasOwnProperty("strict")) - if (typeof message.strict !== "boolean") - return "strict: boolean expected"; - if (message.tablet_aliases != null && message.hasOwnProperty("tablet_aliases")) { - if (!Array.isArray(message.tablet_aliases)) - return "tablet_aliases: array expected"; - for (let i = 0; i < message.tablet_aliases.length; ++i) { - let error = $root.topodata.TabletAlias.verify(message.tablet_aliases[i]); - if (error) - return "tablet_aliases." + error; - } + if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { + if (!$util.isObject(message.rows_affected_by_shard)) + return "rows_affected_by_shard: object expected"; + let key = Object.keys(message.rows_affected_by_shard); + for (let i = 0; i < key.length; ++i) + if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) + return "rows_affected_by_shard: integer|Long{k:string} expected"; } - if (message.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; - } return null; }; /** - * Creates a GetTabletsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LaunchSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.LaunchSchemaMigrationResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest + * @returns {vtctldata.LaunchSchemaMigrationResponse} LaunchSchemaMigrationResponse */ - GetTabletsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletsRequest) + LaunchSchemaMigrationResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.LaunchSchemaMigrationResponse) return object; - let message = new $root.vtctldata.GetTabletsRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.GetTabletsRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } - if (object.strict != null) - message.strict = Boolean(object.strict); - if (object.tablet_aliases) { - if (!Array.isArray(object.tablet_aliases)) - throw TypeError(".vtctldata.GetTabletsRequest.tablet_aliases: array expected"); - message.tablet_aliases = []; - for (let i = 0; i < object.tablet_aliases.length; ++i) { - if (typeof object.tablet_aliases[i] !== "object") - throw TypeError(".vtctldata.GetTabletsRequest.tablet_aliases: object expected"); - message.tablet_aliases[i] = $root.topodata.TabletAlias.fromObject(object.tablet_aliases[i]); - } - } - switch (object.tablet_type) { - default: - if (typeof object.tablet_type === "number") { - message.tablet_type = object.tablet_type; - break; - } - break; - 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.vtctldata.LaunchSchemaMigrationResponse(); + if (object.rows_affected_by_shard) { + if (typeof object.rows_affected_by_shard !== "object") + throw TypeError(".vtctldata.LaunchSchemaMigrationResponse.rows_affected_by_shard: object expected"); + message.rows_affected_by_shard = {}; + for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) + if ($util.Long) + (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; + else if (typeof object.rows_affected_by_shard[keys[i]] === "string") + message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); + else if (typeof object.rows_affected_by_shard[keys[i]] === "number") + message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; + else if (typeof object.rows_affected_by_shard[keys[i]] === "object") + message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); } return message; }; /** - * Creates a plain object from a GetTabletsRequest message. Also converts values to other types if specified. + * Creates a plain object from a LaunchSchemaMigrationResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.LaunchSchemaMigrationResponse * @static - * @param {vtctldata.GetTabletsRequest} message GetTabletsRequest + * @param {vtctldata.LaunchSchemaMigrationResponse} message LaunchSchemaMigrationResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletsRequest.toObject = function toObject(message, options) { + LaunchSchemaMigrationResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.cells = []; - object.tablet_aliases = []; - } - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.strict = false; - object.tablet_type = options.enums === String ? "UNKNOWN" : 0; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } - if (message.strict != null && message.hasOwnProperty("strict")) - object.strict = message.strict; - if (message.tablet_aliases && message.tablet_aliases.length) { - object.tablet_aliases = []; - for (let j = 0; j < message.tablet_aliases.length; ++j) - object.tablet_aliases[j] = $root.topodata.TabletAlias.toObject(message.tablet_aliases[j], options); + if (options.objects || options.defaults) + object.rows_affected_by_shard = {}; + let keys2; + if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { + object.rows_affected_by_shard = {}; + for (let j = 0; j < keys2.length; ++j) + if (typeof message.rows_affected_by_shard[keys2[j]] === "number") + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; + else + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; } - if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) - object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] === undefined ? message.tablet_type : $root.topodata.TabletType[message.tablet_type] : message.tablet_type; return object; }; /** - * Converts this GetTabletsRequest to JSON. + * Converts this LaunchSchemaMigrationResponse to JSON. * @function toJSON - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.LaunchSchemaMigrationResponse * @instance * @returns {Object.} JSON object */ - GetTabletsRequest.prototype.toJSON = function toJSON() { + LaunchSchemaMigrationResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetTabletsRequest + * Gets the default type url for LaunchSchemaMigrationResponse * @function getTypeUrl - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.LaunchSchemaMigrationResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetTabletsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LaunchSchemaMigrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetTabletsRequest"; + return typeUrlPrefix + "/vtctldata.LaunchSchemaMigrationResponse"; }; - return GetTabletsRequest; + return LaunchSchemaMigrationResponse; })(); - vtctldata.GetTabletsResponse = (function() { + vtctldata.LookupVindexCompleteRequest = (function() { /** - * Properties of a GetTabletsResponse. + * Properties of a LookupVindexCompleteRequest. * @memberof vtctldata - * @interface IGetTabletsResponse - * @property {Array.|null} [tablets] GetTabletsResponse tablets + * @interface ILookupVindexCompleteRequest + * @property {string|null} [keyspace] LookupVindexCompleteRequest keyspace + * @property {string|null} [name] LookupVindexCompleteRequest name + * @property {string|null} [table_keyspace] LookupVindexCompleteRequest table_keyspace */ /** - * Constructs a new GetTabletsResponse. + * Constructs a new LookupVindexCompleteRequest. * @memberof vtctldata - * @classdesc Represents a GetTabletsResponse. - * @implements IGetTabletsResponse + * @classdesc Represents a LookupVindexCompleteRequest. + * @implements ILookupVindexCompleteRequest * @constructor - * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set + * @param {vtctldata.ILookupVindexCompleteRequest=} [properties] Properties to set */ - function GetTabletsResponse(properties) { - this.tablets = []; + function LookupVindexCompleteRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -157285,78 +165219,103 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetTabletsResponse tablets. - * @member {Array.} tablets - * @memberof vtctldata.GetTabletsResponse + * LookupVindexCompleteRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.LookupVindexCompleteRequest * @instance */ - GetTabletsResponse.prototype.tablets = $util.emptyArray; + LookupVindexCompleteRequest.prototype.keyspace = ""; /** - * Creates a new GetTabletsResponse instance using the specified properties. + * LookupVindexCompleteRequest name. + * @member {string} name + * @memberof vtctldata.LookupVindexCompleteRequest + * @instance + */ + LookupVindexCompleteRequest.prototype.name = ""; + + /** + * LookupVindexCompleteRequest table_keyspace. + * @member {string} table_keyspace + * @memberof vtctldata.LookupVindexCompleteRequest + * @instance + */ + LookupVindexCompleteRequest.prototype.table_keyspace = ""; + + /** + * Creates a new LookupVindexCompleteRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.LookupVindexCompleteRequest * @static - * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set - * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse instance + * @param {vtctldata.ILookupVindexCompleteRequest=} [properties] Properties to set + * @returns {vtctldata.LookupVindexCompleteRequest} LookupVindexCompleteRequest instance */ - GetTabletsResponse.create = function create(properties) { - return new GetTabletsResponse(properties); + LookupVindexCompleteRequest.create = function create(properties) { + return new LookupVindexCompleteRequest(properties); }; /** - * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. + * Encodes the specified LookupVindexCompleteRequest message. Does not implicitly {@link vtctldata.LookupVindexCompleteRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.LookupVindexCompleteRequest * @static - * @param {vtctldata.IGetTabletsResponse} message GetTabletsResponse message or plain object to encode + * @param {vtctldata.ILookupVindexCompleteRequest} message LookupVindexCompleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletsResponse.encode = function encode(message, writer) { + LookupVindexCompleteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablets != null && message.tablets.length) - for (let i = 0; i < message.tablets.length; ++i) - $root.topodata.Tablet.encode(message.tablets[i], 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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.table_keyspace != null && Object.hasOwnProperty.call(message, "table_keyspace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.table_keyspace); return writer; }; /** - * Encodes the specified GetTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. + * Encodes the specified LookupVindexCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCompleteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.LookupVindexCompleteRequest * @static - * @param {vtctldata.IGetTabletsResponse} message GetTabletsResponse message or plain object to encode + * @param {vtctldata.ILookupVindexCompleteRequest} message LookupVindexCompleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { + LookupVindexCompleteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletsResponse message from the specified reader or buffer. + * Decodes a LookupVindexCompleteRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.LookupVindexCompleteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse + * @returns {vtctldata.LookupVindexCompleteRequest} LookupVindexCompleteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletsResponse.decode = function decode(reader, length) { + LookupVindexCompleteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexCompleteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.tablets && message.tablets.length)) - message.tablets = []; - message.tablets.push($root.topodata.Tablet.decode(reader, reader.uint32())); + message.keyspace = reader.string(); + break; + } + case 2: { + message.name = reader.string(); + break; + } + case 3: { + message.table_keyspace = reader.string(); break; } default: @@ -157368,139 +165327,138 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetTabletsResponse message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexCompleteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.LookupVindexCompleteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse + * @returns {vtctldata.LookupVindexCompleteRequest} LookupVindexCompleteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletsResponse.decodeDelimited = function decodeDelimited(reader) { + LookupVindexCompleteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTabletsResponse message. + * Verifies a LookupVindexCompleteRequest message. * @function verify - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.LookupVindexCompleteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTabletsResponse.verify = function verify(message) { + LookupVindexCompleteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablets != null && message.hasOwnProperty("tablets")) { - if (!Array.isArray(message.tablets)) - return "tablets: array expected"; - for (let i = 0; i < message.tablets.length; ++i) { - let error = $root.topodata.Tablet.verify(message.tablets[i]); - if (error) - return "tablets." + error; - } - } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace")) + if (!$util.isString(message.table_keyspace)) + return "table_keyspace: string expected"; return null; }; /** - * Creates a GetTabletsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LookupVindexCompleteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.LookupVindexCompleteRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse + * @returns {vtctldata.LookupVindexCompleteRequest} LookupVindexCompleteRequest */ - GetTabletsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletsResponse) + LookupVindexCompleteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.LookupVindexCompleteRequest) return object; - let message = new $root.vtctldata.GetTabletsResponse(); - if (object.tablets) { - if (!Array.isArray(object.tablets)) - throw TypeError(".vtctldata.GetTabletsResponse.tablets: array expected"); - message.tablets = []; - for (let i = 0; i < object.tablets.length; ++i) { - if (typeof object.tablets[i] !== "object") - throw TypeError(".vtctldata.GetTabletsResponse.tablets: object expected"); - message.tablets[i] = $root.topodata.Tablet.fromObject(object.tablets[i]); - } - } + let message = new $root.vtctldata.LookupVindexCompleteRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.name != null) + message.name = String(object.name); + if (object.table_keyspace != null) + message.table_keyspace = String(object.table_keyspace); return message; }; /** - * Creates a plain object from a GetTabletsResponse message. Also converts values to other types if specified. + * Creates a plain object from a LookupVindexCompleteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.LookupVindexCompleteRequest * @static - * @param {vtctldata.GetTabletsResponse} message GetTabletsResponse + * @param {vtctldata.LookupVindexCompleteRequest} message LookupVindexCompleteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletsResponse.toObject = function toObject(message, options) { + LookupVindexCompleteRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.tablets = []; - if (message.tablets && message.tablets.length) { - object.tablets = []; - for (let j = 0; j < message.tablets.length; ++j) - object.tablets[j] = $root.topodata.Tablet.toObject(message.tablets[j], options); + if (options.defaults) { + object.keyspace = ""; + object.name = ""; + object.table_keyspace = ""; } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace")) + object.table_keyspace = message.table_keyspace; return object; }; /** - * Converts this GetTabletsResponse to JSON. + * Converts this LookupVindexCompleteRequest to JSON. * @function toJSON - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.LookupVindexCompleteRequest * @instance * @returns {Object.} JSON object */ - GetTabletsResponse.prototype.toJSON = function toJSON() { + LookupVindexCompleteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetTabletsResponse + * Gets the default type url for LookupVindexCompleteRequest * @function getTypeUrl - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.LookupVindexCompleteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetTabletsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LookupVindexCompleteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetTabletsResponse"; + return typeUrlPrefix + "/vtctldata.LookupVindexCompleteRequest"; }; - return GetTabletsResponse; + return LookupVindexCompleteRequest; })(); - vtctldata.GetThrottlerStatusRequest = (function() { + vtctldata.LookupVindexCompleteResponse = (function() { /** - * Properties of a GetThrottlerStatusRequest. + * Properties of a LookupVindexCompleteResponse. * @memberof vtctldata - * @interface IGetThrottlerStatusRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] GetThrottlerStatusRequest tablet_alias + * @interface ILookupVindexCompleteResponse */ /** - * Constructs a new GetThrottlerStatusRequest. + * Constructs a new LookupVindexCompleteResponse. * @memberof vtctldata - * @classdesc Represents a GetThrottlerStatusRequest. - * @implements IGetThrottlerStatusRequest + * @classdesc Represents a LookupVindexCompleteResponse. + * @implements ILookupVindexCompleteResponse * @constructor - * @param {vtctldata.IGetThrottlerStatusRequest=} [properties] Properties to set + * @param {vtctldata.ILookupVindexCompleteResponse=} [properties] Properties to set */ - function GetThrottlerStatusRequest(properties) { + function LookupVindexCompleteResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -157508,77 +165466,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetThrottlerStatusRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.GetThrottlerStatusRequest - * @instance - */ - GetThrottlerStatusRequest.prototype.tablet_alias = null; - - /** - * Creates a new GetThrottlerStatusRequest instance using the specified properties. + * Creates a new LookupVindexCompleteResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetThrottlerStatusRequest + * @memberof vtctldata.LookupVindexCompleteResponse * @static - * @param {vtctldata.IGetThrottlerStatusRequest=} [properties] Properties to set - * @returns {vtctldata.GetThrottlerStatusRequest} GetThrottlerStatusRequest instance + * @param {vtctldata.ILookupVindexCompleteResponse=} [properties] Properties to set + * @returns {vtctldata.LookupVindexCompleteResponse} LookupVindexCompleteResponse instance */ - GetThrottlerStatusRequest.create = function create(properties) { - return new GetThrottlerStatusRequest(properties); + LookupVindexCompleteResponse.create = function create(properties) { + return new LookupVindexCompleteResponse(properties); }; /** - * Encodes the specified GetThrottlerStatusRequest message. Does not implicitly {@link vtctldata.GetThrottlerStatusRequest.verify|verify} messages. + * Encodes the specified LookupVindexCompleteResponse message. Does not implicitly {@link vtctldata.LookupVindexCompleteResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetThrottlerStatusRequest + * @memberof vtctldata.LookupVindexCompleteResponse * @static - * @param {vtctldata.IGetThrottlerStatusRequest} message GetThrottlerStatusRequest message or plain object to encode + * @param {vtctldata.ILookupVindexCompleteResponse} message LookupVindexCompleteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetThrottlerStatusRequest.encode = function encode(message, writer) { + LookupVindexCompleteResponse.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(); return writer; }; /** - * Encodes the specified GetThrottlerStatusRequest message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusRequest.verify|verify} messages. + * Encodes the specified LookupVindexCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCompleteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetThrottlerStatusRequest + * @memberof vtctldata.LookupVindexCompleteResponse * @static - * @param {vtctldata.IGetThrottlerStatusRequest} message GetThrottlerStatusRequest message or plain object to encode + * @param {vtctldata.ILookupVindexCompleteResponse} message LookupVindexCompleteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetThrottlerStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { + LookupVindexCompleteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer. + * Decodes a LookupVindexCompleteResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetThrottlerStatusRequest + * @memberof vtctldata.LookupVindexCompleteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetThrottlerStatusRequest} GetThrottlerStatusRequest + * @returns {vtctldata.LookupVindexCompleteResponse} LookupVindexCompleteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetThrottlerStatusRequest.decode = function decode(reader, length) { + LookupVindexCompleteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetThrottlerStatusRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexCompleteResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -157588,127 +165532,117 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexCompleteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetThrottlerStatusRequest + * @memberof vtctldata.LookupVindexCompleteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetThrottlerStatusRequest} GetThrottlerStatusRequest + * @returns {vtctldata.LookupVindexCompleteResponse} LookupVindexCompleteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetThrottlerStatusRequest.decodeDelimited = function decodeDelimited(reader) { + LookupVindexCompleteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetThrottlerStatusRequest message. + * Verifies a LookupVindexCompleteResponse message. * @function verify - * @memberof vtctldata.GetThrottlerStatusRequest + * @memberof vtctldata.LookupVindexCompleteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetThrottlerStatusRequest.verify = function verify(message) { + LookupVindexCompleteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } return null; }; /** - * Creates a GetThrottlerStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LookupVindexCompleteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetThrottlerStatusRequest + * @memberof vtctldata.LookupVindexCompleteResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetThrottlerStatusRequest} GetThrottlerStatusRequest + * @returns {vtctldata.LookupVindexCompleteResponse} LookupVindexCompleteResponse */ - GetThrottlerStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetThrottlerStatusRequest) + LookupVindexCompleteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.LookupVindexCompleteResponse) return object; - let message = new $root.vtctldata.GetThrottlerStatusRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.GetThrottlerStatusRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - return message; + return new $root.vtctldata.LookupVindexCompleteResponse(); }; /** - * Creates a plain object from a GetThrottlerStatusRequest message. Also converts values to other types if specified. + * Creates a plain object from a LookupVindexCompleteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetThrottlerStatusRequest + * @memberof vtctldata.LookupVindexCompleteResponse * @static - * @param {vtctldata.GetThrottlerStatusRequest} message GetThrottlerStatusRequest + * @param {vtctldata.LookupVindexCompleteResponse} message LookupVindexCompleteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetThrottlerStatusRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.tablet_alias = null; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - return object; + LookupVindexCompleteResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetThrottlerStatusRequest to JSON. + * Converts this LookupVindexCompleteResponse to JSON. * @function toJSON - * @memberof vtctldata.GetThrottlerStatusRequest + * @memberof vtctldata.LookupVindexCompleteResponse * @instance * @returns {Object.} JSON object */ - GetThrottlerStatusRequest.prototype.toJSON = function toJSON() { + LookupVindexCompleteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetThrottlerStatusRequest + * Gets the default type url for LookupVindexCompleteResponse * @function getTypeUrl - * @memberof vtctldata.GetThrottlerStatusRequest + * @memberof vtctldata.LookupVindexCompleteResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetThrottlerStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LookupVindexCompleteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetThrottlerStatusRequest"; + return typeUrlPrefix + "/vtctldata.LookupVindexCompleteResponse"; }; - return GetThrottlerStatusRequest; + return LookupVindexCompleteResponse; })(); - vtctldata.GetThrottlerStatusResponse = (function() { + vtctldata.LookupVindexCreateRequest = (function() { /** - * Properties of a GetThrottlerStatusResponse. + * Properties of a LookupVindexCreateRequest. * @memberof vtctldata - * @interface IGetThrottlerStatusResponse - * @property {tabletmanagerdata.IGetThrottlerStatusResponse|null} [status] GetThrottlerStatusResponse status + * @interface ILookupVindexCreateRequest + * @property {string|null} [keyspace] LookupVindexCreateRequest keyspace + * @property {string|null} [workflow] LookupVindexCreateRequest workflow + * @property {Array.|null} [cells] LookupVindexCreateRequest cells + * @property {vschema.IKeyspace|null} [vindex] LookupVindexCreateRequest vindex + * @property {boolean|null} [continue_after_copy_with_owner] LookupVindexCreateRequest continue_after_copy_with_owner + * @property {Array.|null} [tablet_types] LookupVindexCreateRequest tablet_types + * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] LookupVindexCreateRequest tablet_selection_preference */ /** - * Constructs a new GetThrottlerStatusResponse. + * Constructs a new LookupVindexCreateRequest. * @memberof vtctldata - * @classdesc Represents a GetThrottlerStatusResponse. - * @implements IGetThrottlerStatusResponse + * @classdesc Represents a LookupVindexCreateRequest. + * @implements ILookupVindexCreateRequest * @constructor - * @param {vtctldata.IGetThrottlerStatusResponse=} [properties] Properties to set + * @param {vtctldata.ILookupVindexCreateRequest=} [properties] Properties to set */ - function GetThrottlerStatusResponse(properties) { + function LookupVindexCreateRequest(properties) { + this.cells = []; + this.tablet_types = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -157716,75 +165650,173 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetThrottlerStatusResponse status. - * @member {tabletmanagerdata.IGetThrottlerStatusResponse|null|undefined} status - * @memberof vtctldata.GetThrottlerStatusResponse + * LookupVindexCreateRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.LookupVindexCreateRequest * @instance */ - GetThrottlerStatusResponse.prototype.status = null; + LookupVindexCreateRequest.prototype.keyspace = ""; /** - * Creates a new GetThrottlerStatusResponse instance using the specified properties. + * LookupVindexCreateRequest workflow. + * @member {string} workflow + * @memberof vtctldata.LookupVindexCreateRequest + * @instance + */ + LookupVindexCreateRequest.prototype.workflow = ""; + + /** + * LookupVindexCreateRequest cells. + * @member {Array.} cells + * @memberof vtctldata.LookupVindexCreateRequest + * @instance + */ + LookupVindexCreateRequest.prototype.cells = $util.emptyArray; + + /** + * LookupVindexCreateRequest vindex. + * @member {vschema.IKeyspace|null|undefined} vindex + * @memberof vtctldata.LookupVindexCreateRequest + * @instance + */ + LookupVindexCreateRequest.prototype.vindex = null; + + /** + * LookupVindexCreateRequest continue_after_copy_with_owner. + * @member {boolean} continue_after_copy_with_owner + * @memberof vtctldata.LookupVindexCreateRequest + * @instance + */ + LookupVindexCreateRequest.prototype.continue_after_copy_with_owner = false; + + /** + * LookupVindexCreateRequest tablet_types. + * @member {Array.} tablet_types + * @memberof vtctldata.LookupVindexCreateRequest + * @instance + */ + LookupVindexCreateRequest.prototype.tablet_types = $util.emptyArray; + + /** + * LookupVindexCreateRequest tablet_selection_preference. + * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference + * @memberof vtctldata.LookupVindexCreateRequest + * @instance + */ + LookupVindexCreateRequest.prototype.tablet_selection_preference = 0; + + /** + * Creates a new LookupVindexCreateRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetThrottlerStatusResponse + * @memberof vtctldata.LookupVindexCreateRequest * @static - * @param {vtctldata.IGetThrottlerStatusResponse=} [properties] Properties to set - * @returns {vtctldata.GetThrottlerStatusResponse} GetThrottlerStatusResponse instance + * @param {vtctldata.ILookupVindexCreateRequest=} [properties] Properties to set + * @returns {vtctldata.LookupVindexCreateRequest} LookupVindexCreateRequest instance */ - GetThrottlerStatusResponse.create = function create(properties) { - return new GetThrottlerStatusResponse(properties); + LookupVindexCreateRequest.create = function create(properties) { + return new LookupVindexCreateRequest(properties); }; /** - * Encodes the specified GetThrottlerStatusResponse message. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.verify|verify} messages. + * Encodes the specified LookupVindexCreateRequest message. Does not implicitly {@link vtctldata.LookupVindexCreateRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetThrottlerStatusResponse + * @memberof vtctldata.LookupVindexCreateRequest * @static - * @param {vtctldata.IGetThrottlerStatusResponse} message GetThrottlerStatusResponse message or plain object to encode + * @param {vtctldata.ILookupVindexCreateRequest} message LookupVindexCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetThrottlerStatusResponse.encode = function encode(message, writer) { + LookupVindexCreateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.tabletmanagerdata.GetThrottlerStatusResponse.encode(message.status, 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.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.workflow); + if (message.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); + if (message.vindex != null && Object.hasOwnProperty.call(message, "vindex")) + $root.vschema.Keyspace.encode(message.vindex, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.continue_after_copy_with_owner != null && Object.hasOwnProperty.call(message, "continue_after_copy_with_owner")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.continue_after_copy_with_owner); + if (message.tablet_types != null && message.tablet_types.length) { + writer.uint32(/* id 6, wireType 2 =*/50).fork(); + for (let i = 0; i < message.tablet_types.length; ++i) + writer.int32(message.tablet_types[i]); + writer.ldelim(); + } + if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.tablet_selection_preference); return writer; }; /** - * Encodes the specified GetThrottlerStatusResponse message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.verify|verify} messages. + * Encodes the specified LookupVindexCreateRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCreateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetThrottlerStatusResponse + * @memberof vtctldata.LookupVindexCreateRequest * @static - * @param {vtctldata.IGetThrottlerStatusResponse} message GetThrottlerStatusResponse message or plain object to encode + * @param {vtctldata.ILookupVindexCreateRequest} message LookupVindexCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetThrottlerStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { + LookupVindexCreateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer. + * Decodes a LookupVindexCreateRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetThrottlerStatusResponse + * @memberof vtctldata.LookupVindexCreateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetThrottlerStatusResponse} GetThrottlerStatusResponse + * @returns {vtctldata.LookupVindexCreateRequest} LookupVindexCreateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetThrottlerStatusResponse.decode = function decode(reader, length) { + LookupVindexCreateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetThrottlerStatusResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexCreateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.status = $root.tabletmanagerdata.GetThrottlerStatusResponse.decode(reader, reader.uint32()); + message.keyspace = reader.string(); + break; + } + case 2: { + message.workflow = reader.string(); + break; + } + case 3: { + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); + break; + } + case 4: { + message.vindex = $root.vschema.Keyspace.decode(reader, reader.uint32()); + break; + } + case 5: { + message.continue_after_copy_with_owner = reader.bool(); + break; + } + case 6: { + if (!(message.tablet_types && message.tablet_types.length)) + message.tablet_types = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.tablet_types.push(reader.int32()); + } else + message.tablet_types.push(reader.int32()); + break; + } + case 7: { + message.tablet_selection_preference = reader.int32(); break; } default: @@ -157796,129 +165828,289 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexCreateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetThrottlerStatusResponse + * @memberof vtctldata.LookupVindexCreateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetThrottlerStatusResponse} GetThrottlerStatusResponse + * @returns {vtctldata.LookupVindexCreateRequest} LookupVindexCreateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetThrottlerStatusResponse.decodeDelimited = function decodeDelimited(reader) { + LookupVindexCreateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetThrottlerStatusResponse message. + * Verifies a LookupVindexCreateRequest message. * @function verify - * @memberof vtctldata.GetThrottlerStatusResponse + * @memberof vtctldata.LookupVindexCreateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetThrottlerStatusResponse.verify = function verify(message) { + LookupVindexCreateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.verify(message.status); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } + if (message.vindex != null && message.hasOwnProperty("vindex")) { + let error = $root.vschema.Keyspace.verify(message.vindex); if (error) - return "status." + error; + return "vindex." + error; + } + if (message.continue_after_copy_with_owner != null && message.hasOwnProperty("continue_after_copy_with_owner")) + if (typeof message.continue_after_copy_with_owner !== "boolean") + return "continue_after_copy_with_owner: boolean expected"; + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { + if (!Array.isArray(message.tablet_types)) + return "tablet_types: array expected"; + for (let i = 0; i < message.tablet_types.length; ++i) + switch (message.tablet_types[i]) { + default: + return "tablet_types: enum value[] expected"; + case 0: + case 1: + case 1: + case 2: + case 3: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + switch (message.tablet_selection_preference) { + default: + return "tablet_selection_preference: enum value expected"; + case 0: + case 1: + case 3: + break; + } return null; }; /** - * Creates a GetThrottlerStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LookupVindexCreateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetThrottlerStatusResponse + * @memberof vtctldata.LookupVindexCreateRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetThrottlerStatusResponse} GetThrottlerStatusResponse + * @returns {vtctldata.LookupVindexCreateRequest} LookupVindexCreateRequest */ - GetThrottlerStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetThrottlerStatusResponse) + LookupVindexCreateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.LookupVindexCreateRequest) return object; - let message = new $root.vtctldata.GetThrottlerStatusResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".vtctldata.GetThrottlerStatusResponse.status: object expected"); - message.status = $root.tabletmanagerdata.GetThrottlerStatusResponse.fromObject(object.status); + let message = new $root.vtctldata.LookupVindexCreateRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.LookupVindexCreateRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } + if (object.vindex != null) { + if (typeof object.vindex !== "object") + throw TypeError(".vtctldata.LookupVindexCreateRequest.vindex: object expected"); + message.vindex = $root.vschema.Keyspace.fromObject(object.vindex); + } + if (object.continue_after_copy_with_owner != null) + message.continue_after_copy_with_owner = Boolean(object.continue_after_copy_with_owner); + if (object.tablet_types) { + if (!Array.isArray(object.tablet_types)) + throw TypeError(".vtctldata.LookupVindexCreateRequest.tablet_types: array expected"); + message.tablet_types = []; + for (let i = 0; i < object.tablet_types.length; ++i) + switch (object.tablet_types[i]) { + default: + if (typeof object.tablet_types[i] === "number") { + message.tablet_types[i] = object.tablet_types[i]; + break; + } + case "UNKNOWN": + case 0: + message.tablet_types[i] = 0; + break; + case "PRIMARY": + case 1: + message.tablet_types[i] = 1; + break; + case "MASTER": + case 1: + message.tablet_types[i] = 1; + break; + case "REPLICA": + case 2: + message.tablet_types[i] = 2; + break; + case "RDONLY": + case 3: + message.tablet_types[i] = 3; + break; + case "BATCH": + case 3: + message.tablet_types[i] = 3; + break; + case "SPARE": + case 4: + message.tablet_types[i] = 4; + break; + case "EXPERIMENTAL": + case 5: + message.tablet_types[i] = 5; + break; + case "BACKUP": + case 6: + message.tablet_types[i] = 6; + break; + case "RESTORE": + case 7: + message.tablet_types[i] = 7; + break; + case "DRAINED": + case 8: + message.tablet_types[i] = 8; + break; + } + } + switch (object.tablet_selection_preference) { + default: + if (typeof object.tablet_selection_preference === "number") { + message.tablet_selection_preference = object.tablet_selection_preference; + break; + } + break; + case "ANY": + case 0: + message.tablet_selection_preference = 0; + break; + case "INORDER": + case 1: + message.tablet_selection_preference = 1; + break; + case "UNKNOWN": + case 3: + message.tablet_selection_preference = 3; + break; } return message; }; /** - * Creates a plain object from a GetThrottlerStatusResponse message. Also converts values to other types if specified. + * Creates a plain object from a LookupVindexCreateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetThrottlerStatusResponse + * @memberof vtctldata.LookupVindexCreateRequest * @static - * @param {vtctldata.GetThrottlerStatusResponse} message GetThrottlerStatusResponse + * @param {vtctldata.LookupVindexCreateRequest} message LookupVindexCreateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetThrottlerStatusResponse.toObject = function toObject(message, options) { + LookupVindexCreateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.tabletmanagerdata.GetThrottlerStatusResponse.toObject(message.status, options); + if (options.arrays || options.defaults) { + object.cells = []; + object.tablet_types = []; + } + if (options.defaults) { + object.keyspace = ""; + object.workflow = ""; + object.vindex = null; + object.continue_after_copy_with_owner = false; + object.tablet_selection_preference = options.enums === String ? "ANY" : 0; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + if (message.vindex != null && message.hasOwnProperty("vindex")) + object.vindex = $root.vschema.Keyspace.toObject(message.vindex, options); + if (message.continue_after_copy_with_owner != null && message.hasOwnProperty("continue_after_copy_with_owner")) + object.continue_after_copy_with_owner = message.continue_after_copy_with_owner; + if (message.tablet_types && message.tablet_types.length) { + object.tablet_types = []; + for (let j = 0; j < message.tablet_types.length; ++j) + object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; + } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; return object; }; /** - * Converts this GetThrottlerStatusResponse to JSON. + * Converts this LookupVindexCreateRequest to JSON. * @function toJSON - * @memberof vtctldata.GetThrottlerStatusResponse + * @memberof vtctldata.LookupVindexCreateRequest * @instance * @returns {Object.} JSON object */ - GetThrottlerStatusResponse.prototype.toJSON = function toJSON() { + LookupVindexCreateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetThrottlerStatusResponse + * Gets the default type url for LookupVindexCreateRequest * @function getTypeUrl - * @memberof vtctldata.GetThrottlerStatusResponse + * @memberof vtctldata.LookupVindexCreateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetThrottlerStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LookupVindexCreateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetThrottlerStatusResponse"; + return typeUrlPrefix + "/vtctldata.LookupVindexCreateRequest"; }; - return GetThrottlerStatusResponse; + return LookupVindexCreateRequest; })(); - vtctldata.GetTopologyPathRequest = (function() { + vtctldata.LookupVindexCreateResponse = (function() { /** - * Properties of a GetTopologyPathRequest. + * Properties of a LookupVindexCreateResponse. * @memberof vtctldata - * @interface IGetTopologyPathRequest - * @property {string|null} [path] GetTopologyPathRequest path - * @property {number|Long|null} [version] GetTopologyPathRequest version - * @property {boolean|null} [as_json] GetTopologyPathRequest as_json + * @interface ILookupVindexCreateResponse */ /** - * Constructs a new GetTopologyPathRequest. + * Constructs a new LookupVindexCreateResponse. * @memberof vtctldata - * @classdesc Represents a GetTopologyPathRequest. - * @implements IGetTopologyPathRequest + * @classdesc Represents a LookupVindexCreateResponse. + * @implements ILookupVindexCreateResponse * @constructor - * @param {vtctldata.IGetTopologyPathRequest=} [properties] Properties to set + * @param {vtctldata.ILookupVindexCreateResponse=} [properties] Properties to set */ - function GetTopologyPathRequest(properties) { + function LookupVindexCreateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -157926,105 +166118,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetTopologyPathRequest path. - * @member {string} path - * @memberof vtctldata.GetTopologyPathRequest - * @instance - */ - GetTopologyPathRequest.prototype.path = ""; - - /** - * GetTopologyPathRequest version. - * @member {number|Long} version - * @memberof vtctldata.GetTopologyPathRequest - * @instance - */ - GetTopologyPathRequest.prototype.version = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * GetTopologyPathRequest as_json. - * @member {boolean} as_json - * @memberof vtctldata.GetTopologyPathRequest - * @instance - */ - GetTopologyPathRequest.prototype.as_json = false; - - /** - * Creates a new GetTopologyPathRequest instance using the specified properties. + * Creates a new LookupVindexCreateResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetTopologyPathRequest + * @memberof vtctldata.LookupVindexCreateResponse * @static - * @param {vtctldata.IGetTopologyPathRequest=} [properties] Properties to set - * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest instance + * @param {vtctldata.ILookupVindexCreateResponse=} [properties] Properties to set + * @returns {vtctldata.LookupVindexCreateResponse} LookupVindexCreateResponse instance */ - GetTopologyPathRequest.create = function create(properties) { - return new GetTopologyPathRequest(properties); + LookupVindexCreateResponse.create = function create(properties) { + return new LookupVindexCreateResponse(properties); }; /** - * Encodes the specified GetTopologyPathRequest message. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages. + * Encodes the specified LookupVindexCreateResponse message. Does not implicitly {@link vtctldata.LookupVindexCreateResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTopologyPathRequest + * @memberof vtctldata.LookupVindexCreateResponse * @static - * @param {vtctldata.IGetTopologyPathRequest} message GetTopologyPathRequest message or plain object to encode + * @param {vtctldata.ILookupVindexCreateResponse} message LookupVindexCreateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTopologyPathRequest.encode = function encode(message, writer) { + LookupVindexCreateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.version); - if (message.as_json != null && Object.hasOwnProperty.call(message, "as_json")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.as_json); return writer; }; /** - * Encodes the specified GetTopologyPathRequest message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages. + * Encodes the specified LookupVindexCreateResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCreateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTopologyPathRequest + * @memberof vtctldata.LookupVindexCreateResponse * @static - * @param {vtctldata.IGetTopologyPathRequest} message GetTopologyPathRequest message or plain object to encode + * @param {vtctldata.ILookupVindexCreateResponse} message LookupVindexCreateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTopologyPathRequest.encodeDelimited = function encodeDelimited(message, writer) { + LookupVindexCreateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTopologyPathRequest message from the specified reader or buffer. + * Decodes a LookupVindexCreateResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTopologyPathRequest + * @memberof vtctldata.LookupVindexCreateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest + * @returns {vtctldata.LookupVindexCreateResponse} LookupVindexCreateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTopologyPathRequest.decode = function decode(reader, length) { + LookupVindexCreateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTopologyPathRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexCreateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.path = reader.string(); - break; - } - case 2: { - message.version = reader.int64(); - break; - } - case 3: { - message.as_json = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -158034,153 +166184,112 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetTopologyPathRequest message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexCreateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTopologyPathRequest + * @memberof vtctldata.LookupVindexCreateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest + * @returns {vtctldata.LookupVindexCreateResponse} LookupVindexCreateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTopologyPathRequest.decodeDelimited = function decodeDelimited(reader) { + LookupVindexCreateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTopologyPathRequest message. + * Verifies a LookupVindexCreateResponse message. * @function verify - * @memberof vtctldata.GetTopologyPathRequest + * @memberof vtctldata.LookupVindexCreateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTopologyPathRequest.verify = function verify(message) { + LookupVindexCreateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high))) - return "version: integer|Long expected"; - if (message.as_json != null && message.hasOwnProperty("as_json")) - if (typeof message.as_json !== "boolean") - return "as_json: boolean expected"; return null; }; /** - * Creates a GetTopologyPathRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LookupVindexCreateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetTopologyPathRequest + * @memberof vtctldata.LookupVindexCreateResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTopologyPathRequest} GetTopologyPathRequest + * @returns {vtctldata.LookupVindexCreateResponse} LookupVindexCreateResponse */ - GetTopologyPathRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTopologyPathRequest) + LookupVindexCreateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.LookupVindexCreateResponse) return object; - let message = new $root.vtctldata.GetTopologyPathRequest(); - if (object.path != null) - message.path = String(object.path); - if (object.version != null) - if ($util.Long) - (message.version = $util.Long.fromValue(object.version)).unsigned = false; - else if (typeof object.version === "string") - message.version = parseInt(object.version, 10); - else if (typeof object.version === "number") - message.version = object.version; - else if (typeof object.version === "object") - message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(); - if (object.as_json != null) - message.as_json = Boolean(object.as_json); - return message; + return new $root.vtctldata.LookupVindexCreateResponse(); }; /** - * Creates a plain object from a GetTopologyPathRequest message. Also converts values to other types if specified. + * Creates a plain object from a LookupVindexCreateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetTopologyPathRequest + * @memberof vtctldata.LookupVindexCreateResponse * @static - * @param {vtctldata.GetTopologyPathRequest} message GetTopologyPathRequest + * @param {vtctldata.LookupVindexCreateResponse} message LookupVindexCreateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTopologyPathRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.path = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.version = options.longs === String ? "0" : 0; - object.as_json = false; - } - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - if (message.version != null && message.hasOwnProperty("version")) - if (typeof message.version === "number") - object.version = options.longs === String ? String(message.version) : message.version; - else - object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber() : message.version; - if (message.as_json != null && message.hasOwnProperty("as_json")) - object.as_json = message.as_json; - return object; + LookupVindexCreateResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetTopologyPathRequest to JSON. + * Converts this LookupVindexCreateResponse to JSON. * @function toJSON - * @memberof vtctldata.GetTopologyPathRequest + * @memberof vtctldata.LookupVindexCreateResponse * @instance * @returns {Object.} JSON object */ - GetTopologyPathRequest.prototype.toJSON = function toJSON() { + LookupVindexCreateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetTopologyPathRequest + * Gets the default type url for LookupVindexCreateResponse * @function getTypeUrl - * @memberof vtctldata.GetTopologyPathRequest + * @memberof vtctldata.LookupVindexCreateResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetTopologyPathRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LookupVindexCreateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetTopologyPathRequest"; + return typeUrlPrefix + "/vtctldata.LookupVindexCreateResponse"; }; - return GetTopologyPathRequest; + return LookupVindexCreateResponse; })(); - vtctldata.GetTopologyPathResponse = (function() { + vtctldata.LookupVindexExternalizeRequest = (function() { /** - * Properties of a GetTopologyPathResponse. + * Properties of a LookupVindexExternalizeRequest. * @memberof vtctldata - * @interface IGetTopologyPathResponse - * @property {vtctldata.ITopologyCell|null} [cell] GetTopologyPathResponse cell + * @interface ILookupVindexExternalizeRequest + * @property {string|null} [keyspace] LookupVindexExternalizeRequest keyspace + * @property {string|null} [name] LookupVindexExternalizeRequest name + * @property {string|null} [table_keyspace] LookupVindexExternalizeRequest table_keyspace + * @property {boolean|null} [delete_workflow] LookupVindexExternalizeRequest delete_workflow */ /** - * Constructs a new GetTopologyPathResponse. + * Constructs a new LookupVindexExternalizeRequest. * @memberof vtctldata - * @classdesc Represents a GetTopologyPathResponse. - * @implements IGetTopologyPathResponse + * @classdesc Represents a LookupVindexExternalizeRequest. + * @implements ILookupVindexExternalizeRequest * @constructor - * @param {vtctldata.IGetTopologyPathResponse=} [properties] Properties to set + * @param {vtctldata.ILookupVindexExternalizeRequest=} [properties] Properties to set */ - function GetTopologyPathResponse(properties) { + function LookupVindexExternalizeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -158188,75 +166297,117 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetTopologyPathResponse cell. - * @member {vtctldata.ITopologyCell|null|undefined} cell - * @memberof vtctldata.GetTopologyPathResponse + * LookupVindexExternalizeRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.LookupVindexExternalizeRequest * @instance */ - GetTopologyPathResponse.prototype.cell = null; + LookupVindexExternalizeRequest.prototype.keyspace = ""; /** - * Creates a new GetTopologyPathResponse instance using the specified properties. + * LookupVindexExternalizeRequest name. + * @member {string} name + * @memberof vtctldata.LookupVindexExternalizeRequest + * @instance + */ + LookupVindexExternalizeRequest.prototype.name = ""; + + /** + * LookupVindexExternalizeRequest table_keyspace. + * @member {string} table_keyspace + * @memberof vtctldata.LookupVindexExternalizeRequest + * @instance + */ + LookupVindexExternalizeRequest.prototype.table_keyspace = ""; + + /** + * LookupVindexExternalizeRequest delete_workflow. + * @member {boolean} delete_workflow + * @memberof vtctldata.LookupVindexExternalizeRequest + * @instance + */ + LookupVindexExternalizeRequest.prototype.delete_workflow = false; + + /** + * Creates a new LookupVindexExternalizeRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetTopologyPathResponse + * @memberof vtctldata.LookupVindexExternalizeRequest * @static - * @param {vtctldata.IGetTopologyPathResponse=} [properties] Properties to set - * @returns {vtctldata.GetTopologyPathResponse} GetTopologyPathResponse instance + * @param {vtctldata.ILookupVindexExternalizeRequest=} [properties] Properties to set + * @returns {vtctldata.LookupVindexExternalizeRequest} LookupVindexExternalizeRequest instance */ - GetTopologyPathResponse.create = function create(properties) { - return new GetTopologyPathResponse(properties); + LookupVindexExternalizeRequest.create = function create(properties) { + return new LookupVindexExternalizeRequest(properties); }; /** - * Encodes the specified GetTopologyPathResponse message. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages. + * Encodes the specified LookupVindexExternalizeRequest message. Does not implicitly {@link vtctldata.LookupVindexExternalizeRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTopologyPathResponse + * @memberof vtctldata.LookupVindexExternalizeRequest * @static - * @param {vtctldata.IGetTopologyPathResponse} message GetTopologyPathResponse message or plain object to encode + * @param {vtctldata.ILookupVindexExternalizeRequest} message LookupVindexExternalizeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTopologyPathResponse.encode = function encode(message, writer) { + LookupVindexExternalizeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - $root.vtctldata.TopologyCell.encode(message.cell, 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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.table_keyspace != null && Object.hasOwnProperty.call(message, "table_keyspace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.table_keyspace); + if (message.delete_workflow != null && Object.hasOwnProperty.call(message, "delete_workflow")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.delete_workflow); return writer; }; /** - * Encodes the specified GetTopologyPathResponse message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages. + * Encodes the specified LookupVindexExternalizeRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexExternalizeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTopologyPathResponse + * @memberof vtctldata.LookupVindexExternalizeRequest * @static - * @param {vtctldata.IGetTopologyPathResponse} message GetTopologyPathResponse message or plain object to encode + * @param {vtctldata.ILookupVindexExternalizeRequest} message LookupVindexExternalizeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTopologyPathResponse.encodeDelimited = function encodeDelimited(message, writer) { + LookupVindexExternalizeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTopologyPathResponse message from the specified reader or buffer. + * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTopologyPathResponse + * @memberof vtctldata.LookupVindexExternalizeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetTopologyPathResponse} GetTopologyPathResponse + * @returns {vtctldata.LookupVindexExternalizeRequest} LookupVindexExternalizeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTopologyPathResponse.decode = function decode(reader, length) { + LookupVindexExternalizeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTopologyPathResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexExternalizeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.cell = $root.vtctldata.TopologyCell.decode(reader, reader.uint32()); + message.keyspace = reader.string(); + break; + } + case 2: { + message.name = reader.string(); + break; + } + case 3: { + message.table_keyspace = reader.string(); + break; + } + case 4: { + message.delete_workflow = reader.bool(); break; } default: @@ -158268,132 +166419,148 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetTopologyPathResponse message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTopologyPathResponse + * @memberof vtctldata.LookupVindexExternalizeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTopologyPathResponse} GetTopologyPathResponse + * @returns {vtctldata.LookupVindexExternalizeRequest} LookupVindexExternalizeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTopologyPathResponse.decodeDelimited = function decodeDelimited(reader) { + LookupVindexExternalizeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTopologyPathResponse message. + * Verifies a LookupVindexExternalizeRequest message. * @function verify - * @memberof vtctldata.GetTopologyPathResponse + * @memberof vtctldata.LookupVindexExternalizeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTopologyPathResponse.verify = function verify(message) { + LookupVindexExternalizeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cell != null && message.hasOwnProperty("cell")) { - let error = $root.vtctldata.TopologyCell.verify(message.cell); - if (error) - return "cell." + error; - } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace")) + if (!$util.isString(message.table_keyspace)) + return "table_keyspace: string expected"; + if (message.delete_workflow != null && message.hasOwnProperty("delete_workflow")) + if (typeof message.delete_workflow !== "boolean") + return "delete_workflow: boolean expected"; return null; }; /** - * Creates a GetTopologyPathResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LookupVindexExternalizeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetTopologyPathResponse + * @memberof vtctldata.LookupVindexExternalizeRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTopologyPathResponse} GetTopologyPathResponse + * @returns {vtctldata.LookupVindexExternalizeRequest} LookupVindexExternalizeRequest */ - GetTopologyPathResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTopologyPathResponse) + LookupVindexExternalizeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.LookupVindexExternalizeRequest) return object; - let message = new $root.vtctldata.GetTopologyPathResponse(); - if (object.cell != null) { - if (typeof object.cell !== "object") - throw TypeError(".vtctldata.GetTopologyPathResponse.cell: object expected"); - message.cell = $root.vtctldata.TopologyCell.fromObject(object.cell); - } + let message = new $root.vtctldata.LookupVindexExternalizeRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.name != null) + message.name = String(object.name); + if (object.table_keyspace != null) + message.table_keyspace = String(object.table_keyspace); + if (object.delete_workflow != null) + message.delete_workflow = Boolean(object.delete_workflow); return message; }; /** - * Creates a plain object from a GetTopologyPathResponse message. Also converts values to other types if specified. + * Creates a plain object from a LookupVindexExternalizeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetTopologyPathResponse + * @memberof vtctldata.LookupVindexExternalizeRequest * @static - * @param {vtctldata.GetTopologyPathResponse} message GetTopologyPathResponse + * @param {vtctldata.LookupVindexExternalizeRequest} message LookupVindexExternalizeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTopologyPathResponse.toObject = function toObject(message, options) { + LookupVindexExternalizeRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.cell = null; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = $root.vtctldata.TopologyCell.toObject(message.cell, options); + if (options.defaults) { + object.keyspace = ""; + object.name = ""; + object.table_keyspace = ""; + object.delete_workflow = false; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace")) + object.table_keyspace = message.table_keyspace; + if (message.delete_workflow != null && message.hasOwnProperty("delete_workflow")) + object.delete_workflow = message.delete_workflow; return object; }; /** - * Converts this GetTopologyPathResponse to JSON. + * Converts this LookupVindexExternalizeRequest to JSON. * @function toJSON - * @memberof vtctldata.GetTopologyPathResponse + * @memberof vtctldata.LookupVindexExternalizeRequest * @instance * @returns {Object.} JSON object */ - GetTopologyPathResponse.prototype.toJSON = function toJSON() { + LookupVindexExternalizeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetTopologyPathResponse + * Gets the default type url for LookupVindexExternalizeRequest * @function getTypeUrl - * @memberof vtctldata.GetTopologyPathResponse + * @memberof vtctldata.LookupVindexExternalizeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetTopologyPathResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LookupVindexExternalizeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetTopologyPathResponse"; + return typeUrlPrefix + "/vtctldata.LookupVindexExternalizeRequest"; }; - return GetTopologyPathResponse; + return LookupVindexExternalizeRequest; })(); - vtctldata.TopologyCell = (function() { + vtctldata.LookupVindexExternalizeResponse = (function() { /** - * Properties of a TopologyCell. + * Properties of a LookupVindexExternalizeResponse. * @memberof vtctldata - * @interface ITopologyCell - * @property {string|null} [name] TopologyCell name - * @property {string|null} [path] TopologyCell path - * @property {string|null} [data] TopologyCell data - * @property {Array.|null} [children] TopologyCell children - * @property {number|Long|null} [version] TopologyCell version + * @interface ILookupVindexExternalizeResponse + * @property {boolean|null} [workflow_stopped] LookupVindexExternalizeResponse workflow_stopped + * @property {boolean|null} [workflow_deleted] LookupVindexExternalizeResponse workflow_deleted */ /** - * Constructs a new TopologyCell. + * Constructs a new LookupVindexExternalizeResponse. * @memberof vtctldata - * @classdesc Represents a TopologyCell. - * @implements ITopologyCell + * @classdesc Represents a LookupVindexExternalizeResponse. + * @implements ILookupVindexExternalizeResponse * @constructor - * @param {vtctldata.ITopologyCell=} [properties] Properties to set + * @param {vtctldata.ILookupVindexExternalizeResponse=} [properties] Properties to set */ - function TopologyCell(properties) { - this.children = []; + function LookupVindexExternalizeResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -158401,134 +166568,89 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * TopologyCell name. - * @member {string} name - * @memberof vtctldata.TopologyCell - * @instance - */ - TopologyCell.prototype.name = ""; - - /** - * TopologyCell path. - * @member {string} path - * @memberof vtctldata.TopologyCell - * @instance - */ - TopologyCell.prototype.path = ""; - - /** - * TopologyCell data. - * @member {string} data - * @memberof vtctldata.TopologyCell - * @instance - */ - TopologyCell.prototype.data = ""; - - /** - * TopologyCell children. - * @member {Array.} children - * @memberof vtctldata.TopologyCell + * LookupVindexExternalizeResponse workflow_stopped. + * @member {boolean} workflow_stopped + * @memberof vtctldata.LookupVindexExternalizeResponse * @instance */ - TopologyCell.prototype.children = $util.emptyArray; + LookupVindexExternalizeResponse.prototype.workflow_stopped = false; /** - * TopologyCell version. - * @member {number|Long} version - * @memberof vtctldata.TopologyCell + * LookupVindexExternalizeResponse workflow_deleted. + * @member {boolean} workflow_deleted + * @memberof vtctldata.LookupVindexExternalizeResponse * @instance */ - TopologyCell.prototype.version = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LookupVindexExternalizeResponse.prototype.workflow_deleted = false; /** - * Creates a new TopologyCell instance using the specified properties. + * Creates a new LookupVindexExternalizeResponse instance using the specified properties. * @function create - * @memberof vtctldata.TopologyCell + * @memberof vtctldata.LookupVindexExternalizeResponse * @static - * @param {vtctldata.ITopologyCell=} [properties] Properties to set - * @returns {vtctldata.TopologyCell} TopologyCell instance + * @param {vtctldata.ILookupVindexExternalizeResponse=} [properties] Properties to set + * @returns {vtctldata.LookupVindexExternalizeResponse} LookupVindexExternalizeResponse instance */ - TopologyCell.create = function create(properties) { - return new TopologyCell(properties); + LookupVindexExternalizeResponse.create = function create(properties) { + return new LookupVindexExternalizeResponse(properties); }; /** - * Encodes the specified TopologyCell message. Does not implicitly {@link vtctldata.TopologyCell.verify|verify} messages. + * Encodes the specified LookupVindexExternalizeResponse message. Does not implicitly {@link vtctldata.LookupVindexExternalizeResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.TopologyCell + * @memberof vtctldata.LookupVindexExternalizeResponse * @static - * @param {vtctldata.ITopologyCell} message TopologyCell message or plain object to encode + * @param {vtctldata.ILookupVindexExternalizeResponse} message LookupVindexExternalizeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TopologyCell.encode = function encode(message, writer) { + LookupVindexExternalizeResponse.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.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.data); - if (message.children != null && message.children.length) - for (let i = 0; i < message.children.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.children[i]); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.version); + if (message.workflow_stopped != null && Object.hasOwnProperty.call(message, "workflow_stopped")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.workflow_stopped); + if (message.workflow_deleted != null && Object.hasOwnProperty.call(message, "workflow_deleted")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.workflow_deleted); return writer; }; /** - * Encodes the specified TopologyCell message, length delimited. Does not implicitly {@link vtctldata.TopologyCell.verify|verify} messages. + * Encodes the specified LookupVindexExternalizeResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexExternalizeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.TopologyCell + * @memberof vtctldata.LookupVindexExternalizeResponse * @static - * @param {vtctldata.ITopologyCell} message TopologyCell message or plain object to encode + * @param {vtctldata.ILookupVindexExternalizeResponse} message LookupVindexExternalizeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TopologyCell.encodeDelimited = function encodeDelimited(message, writer) { + LookupVindexExternalizeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TopologyCell message from the specified reader or buffer. + * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.TopologyCell + * @memberof vtctldata.LookupVindexExternalizeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.TopologyCell} TopologyCell + * @returns {vtctldata.LookupVindexExternalizeResponse} LookupVindexExternalizeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TopologyCell.decode = function decode(reader, length) { + LookupVindexExternalizeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TopologyCell(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexExternalizeResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.workflow_stopped = reader.bool(); break; } case 2: { - message.path = reader.string(); - break; - } - case 3: { - message.data = reader.string(); - break; - } - case 4: { - if (!(message.children && message.children.length)) - message.children = []; - message.children.push(reader.string()); - break; - } - case 5: { - message.version = reader.int64(); + message.workflow_deleted = reader.bool(); break; } default: @@ -158540,183 +166662,133 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a TopologyCell message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.TopologyCell + * @memberof vtctldata.LookupVindexExternalizeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.TopologyCell} TopologyCell + * @returns {vtctldata.LookupVindexExternalizeResponse} LookupVindexExternalizeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TopologyCell.decodeDelimited = function decodeDelimited(reader) { + LookupVindexExternalizeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TopologyCell message. + * Verifies a LookupVindexExternalizeResponse message. * @function verify - * @memberof vtctldata.TopologyCell + * @memberof vtctldata.LookupVindexExternalizeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TopologyCell.verify = function verify(message) { + LookupVindexExternalizeResponse.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.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!$util.isString(message.data)) - return "data: string expected"; - if (message.children != null && message.hasOwnProperty("children")) { - if (!Array.isArray(message.children)) - return "children: array expected"; - for (let i = 0; i < message.children.length; ++i) - if (!$util.isString(message.children[i])) - return "children: string[] expected"; - } - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high))) - return "version: integer|Long expected"; + if (message.workflow_stopped != null && message.hasOwnProperty("workflow_stopped")) + if (typeof message.workflow_stopped !== "boolean") + return "workflow_stopped: boolean expected"; + if (message.workflow_deleted != null && message.hasOwnProperty("workflow_deleted")) + if (typeof message.workflow_deleted !== "boolean") + return "workflow_deleted: boolean expected"; return null; }; /** - * Creates a TopologyCell message from a plain object. Also converts values to their respective internal types. + * Creates a LookupVindexExternalizeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.TopologyCell + * @memberof vtctldata.LookupVindexExternalizeResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.TopologyCell} TopologyCell + * @returns {vtctldata.LookupVindexExternalizeResponse} LookupVindexExternalizeResponse */ - TopologyCell.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.TopologyCell) + LookupVindexExternalizeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.LookupVindexExternalizeResponse) return object; - let message = new $root.vtctldata.TopologyCell(); - if (object.name != null) - message.name = String(object.name); - if (object.path != null) - message.path = String(object.path); - if (object.data != null) - message.data = String(object.data); - if (object.children) { - if (!Array.isArray(object.children)) - throw TypeError(".vtctldata.TopologyCell.children: array expected"); - message.children = []; - for (let i = 0; i < object.children.length; ++i) - message.children[i] = String(object.children[i]); - } - if (object.version != null) - if ($util.Long) - (message.version = $util.Long.fromValue(object.version)).unsigned = false; - else if (typeof object.version === "string") - message.version = parseInt(object.version, 10); - else if (typeof object.version === "number") - message.version = object.version; - else if (typeof object.version === "object") - message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(); + let message = new $root.vtctldata.LookupVindexExternalizeResponse(); + if (object.workflow_stopped != null) + message.workflow_stopped = Boolean(object.workflow_stopped); + if (object.workflow_deleted != null) + message.workflow_deleted = Boolean(object.workflow_deleted); return message; }; /** - * Creates a plain object from a TopologyCell message. Also converts values to other types if specified. + * Creates a plain object from a LookupVindexExternalizeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.TopologyCell + * @memberof vtctldata.LookupVindexExternalizeResponse * @static - * @param {vtctldata.TopologyCell} message TopologyCell + * @param {vtctldata.LookupVindexExternalizeResponse} message LookupVindexExternalizeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TopologyCell.toObject = function toObject(message, options) { + LookupVindexExternalizeResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.children = []; if (options.defaults) { - object.name = ""; - object.path = ""; - object.data = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.version = options.longs === String ? "0" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - if (message.data != null && message.hasOwnProperty("data")) - object.data = message.data; - if (message.children && message.children.length) { - object.children = []; - for (let j = 0; j < message.children.length; ++j) - object.children[j] = message.children[j]; + object.workflow_stopped = false; + object.workflow_deleted = false; } - if (message.version != null && message.hasOwnProperty("version")) - if (typeof message.version === "number") - object.version = options.longs === String ? String(message.version) : message.version; - else - object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber() : message.version; + if (message.workflow_stopped != null && message.hasOwnProperty("workflow_stopped")) + object.workflow_stopped = message.workflow_stopped; + if (message.workflow_deleted != null && message.hasOwnProperty("workflow_deleted")) + object.workflow_deleted = message.workflow_deleted; return object; }; /** - * Converts this TopologyCell to JSON. + * Converts this LookupVindexExternalizeResponse to JSON. * @function toJSON - * @memberof vtctldata.TopologyCell + * @memberof vtctldata.LookupVindexExternalizeResponse * @instance * @returns {Object.} JSON object */ - TopologyCell.prototype.toJSON = function toJSON() { + LookupVindexExternalizeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TopologyCell + * Gets the default type url for LookupVindexExternalizeResponse * @function getTypeUrl - * @memberof vtctldata.TopologyCell + * @memberof vtctldata.LookupVindexExternalizeResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TopologyCell.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LookupVindexExternalizeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.TopologyCell"; + return typeUrlPrefix + "/vtctldata.LookupVindexExternalizeResponse"; }; - return TopologyCell; + return LookupVindexExternalizeResponse; })(); - vtctldata.GetUnresolvedTransactionsRequest = (function() { + vtctldata.LookupVindexInternalizeRequest = (function() { /** - * Properties of a GetUnresolvedTransactionsRequest. + * Properties of a LookupVindexInternalizeRequest. * @memberof vtctldata - * @interface IGetUnresolvedTransactionsRequest - * @property {string|null} [keyspace] GetUnresolvedTransactionsRequest keyspace - * @property {number|Long|null} [abandon_age] GetUnresolvedTransactionsRequest abandon_age + * @interface ILookupVindexInternalizeRequest + * @property {string|null} [keyspace] LookupVindexInternalizeRequest keyspace + * @property {string|null} [name] LookupVindexInternalizeRequest name + * @property {string|null} [table_keyspace] LookupVindexInternalizeRequest table_keyspace */ /** - * Constructs a new GetUnresolvedTransactionsRequest. + * Constructs a new LookupVindexInternalizeRequest. * @memberof vtctldata - * @classdesc Represents a GetUnresolvedTransactionsRequest. - * @implements IGetUnresolvedTransactionsRequest + * @classdesc Represents a LookupVindexInternalizeRequest. + * @implements ILookupVindexInternalizeRequest * @constructor - * @param {vtctldata.IGetUnresolvedTransactionsRequest=} [properties] Properties to set + * @param {vtctldata.ILookupVindexInternalizeRequest=} [properties] Properties to set */ - function GetUnresolvedTransactionsRequest(properties) { + function LookupVindexInternalizeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -158724,80 +166796,90 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetUnresolvedTransactionsRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetUnresolvedTransactionsRequest + * LookupVindexInternalizeRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.LookupVindexInternalizeRequest + * @instance + */ + LookupVindexInternalizeRequest.prototype.keyspace = ""; + + /** + * LookupVindexInternalizeRequest name. + * @member {string} name + * @memberof vtctldata.LookupVindexInternalizeRequest * @instance */ - GetUnresolvedTransactionsRequest.prototype.keyspace = ""; + LookupVindexInternalizeRequest.prototype.name = ""; /** - * GetUnresolvedTransactionsRequest abandon_age. - * @member {number|Long} abandon_age - * @memberof vtctldata.GetUnresolvedTransactionsRequest + * LookupVindexInternalizeRequest table_keyspace. + * @member {string} table_keyspace + * @memberof vtctldata.LookupVindexInternalizeRequest * @instance */ - GetUnresolvedTransactionsRequest.prototype.abandon_age = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LookupVindexInternalizeRequest.prototype.table_keyspace = ""; /** - * Creates a new GetUnresolvedTransactionsRequest instance using the specified properties. + * Creates a new LookupVindexInternalizeRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetUnresolvedTransactionsRequest + * @memberof vtctldata.LookupVindexInternalizeRequest * @static - * @param {vtctldata.IGetUnresolvedTransactionsRequest=} [properties] Properties to set - * @returns {vtctldata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest instance + * @param {vtctldata.ILookupVindexInternalizeRequest=} [properties] Properties to set + * @returns {vtctldata.LookupVindexInternalizeRequest} LookupVindexInternalizeRequest instance */ - GetUnresolvedTransactionsRequest.create = function create(properties) { - return new GetUnresolvedTransactionsRequest(properties); + LookupVindexInternalizeRequest.create = function create(properties) { + return new LookupVindexInternalizeRequest(properties); }; /** - * Encodes the specified GetUnresolvedTransactionsRequest message. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsRequest.verify|verify} messages. + * Encodes the specified LookupVindexInternalizeRequest message. Does not implicitly {@link vtctldata.LookupVindexInternalizeRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetUnresolvedTransactionsRequest + * @memberof vtctldata.LookupVindexInternalizeRequest * @static - * @param {vtctldata.IGetUnresolvedTransactionsRequest} message GetUnresolvedTransactionsRequest message or plain object to encode + * @param {vtctldata.ILookupVindexInternalizeRequest} message LookupVindexInternalizeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetUnresolvedTransactionsRequest.encode = function encode(message, writer) { + LookupVindexInternalizeRequest.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.abandon_age != null && Object.hasOwnProperty.call(message, "abandon_age")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.abandon_age); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.table_keyspace != null && Object.hasOwnProperty.call(message, "table_keyspace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.table_keyspace); return writer; }; /** - * Encodes the specified GetUnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsRequest.verify|verify} messages. + * Encodes the specified LookupVindexInternalizeRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexInternalizeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetUnresolvedTransactionsRequest + * @memberof vtctldata.LookupVindexInternalizeRequest * @static - * @param {vtctldata.IGetUnresolvedTransactionsRequest} message GetUnresolvedTransactionsRequest message or plain object to encode + * @param {vtctldata.ILookupVindexInternalizeRequest} message LookupVindexInternalizeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetUnresolvedTransactionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + LookupVindexInternalizeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer. + * Decodes a LookupVindexInternalizeRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetUnresolvedTransactionsRequest + * @memberof vtctldata.LookupVindexInternalizeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest + * @returns {vtctldata.LookupVindexInternalizeRequest} LookupVindexInternalizeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetUnresolvedTransactionsRequest.decode = function decode(reader, length) { + LookupVindexInternalizeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetUnresolvedTransactionsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexInternalizeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -158806,7 +166888,11 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 2: { - message.abandon_age = reader.int64(); + message.name = reader.string(); + break; + } + case 3: { + message.table_keyspace = reader.string(); break; } default: @@ -158818,146 +166904,138 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexInternalizeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetUnresolvedTransactionsRequest + * @memberof vtctldata.LookupVindexInternalizeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest + * @returns {vtctldata.LookupVindexInternalizeRequest} LookupVindexInternalizeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetUnresolvedTransactionsRequest.decodeDelimited = function decodeDelimited(reader) { + LookupVindexInternalizeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetUnresolvedTransactionsRequest message. + * Verifies a LookupVindexInternalizeRequest message. * @function verify - * @memberof vtctldata.GetUnresolvedTransactionsRequest + * @memberof vtctldata.LookupVindexInternalizeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetUnresolvedTransactionsRequest.verify = function verify(message) { + LookupVindexInternalizeRequest.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.abandon_age != null && message.hasOwnProperty("abandon_age")) - if (!$util.isInteger(message.abandon_age) && !(message.abandon_age && $util.isInteger(message.abandon_age.low) && $util.isInteger(message.abandon_age.high))) - return "abandon_age: integer|Long expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace")) + if (!$util.isString(message.table_keyspace)) + return "table_keyspace: string expected"; return null; }; /** - * Creates a GetUnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LookupVindexInternalizeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetUnresolvedTransactionsRequest + * @memberof vtctldata.LookupVindexInternalizeRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetUnresolvedTransactionsRequest} GetUnresolvedTransactionsRequest + * @returns {vtctldata.LookupVindexInternalizeRequest} LookupVindexInternalizeRequest */ - GetUnresolvedTransactionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetUnresolvedTransactionsRequest) + LookupVindexInternalizeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.LookupVindexInternalizeRequest) return object; - let message = new $root.vtctldata.GetUnresolvedTransactionsRequest(); + let message = new $root.vtctldata.LookupVindexInternalizeRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.abandon_age != null) - if ($util.Long) - (message.abandon_age = $util.Long.fromValue(object.abandon_age)).unsigned = false; - else if (typeof object.abandon_age === "string") - message.abandon_age = parseInt(object.abandon_age, 10); - else if (typeof object.abandon_age === "number") - message.abandon_age = object.abandon_age; - else if (typeof object.abandon_age === "object") - message.abandon_age = new $util.LongBits(object.abandon_age.low >>> 0, object.abandon_age.high >>> 0).toNumber(); + if (object.name != null) + message.name = String(object.name); + if (object.table_keyspace != null) + message.table_keyspace = String(object.table_keyspace); return message; }; /** - * Creates a plain object from a GetUnresolvedTransactionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a LookupVindexInternalizeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetUnresolvedTransactionsRequest + * @memberof vtctldata.LookupVindexInternalizeRequest * @static - * @param {vtctldata.GetUnresolvedTransactionsRequest} message GetUnresolvedTransactionsRequest + * @param {vtctldata.LookupVindexInternalizeRequest} message LookupVindexInternalizeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetUnresolvedTransactionsRequest.toObject = function toObject(message, options) { + LookupVindexInternalizeRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.keyspace = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.abandon_age = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.abandon_age = options.longs === String ? "0" : 0; + object.name = ""; + object.table_keyspace = ""; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.abandon_age != null && message.hasOwnProperty("abandon_age")) - if (typeof message.abandon_age === "number") - object.abandon_age = options.longs === String ? String(message.abandon_age) : message.abandon_age; - else - object.abandon_age = options.longs === String ? $util.Long.prototype.toString.call(message.abandon_age) : options.longs === Number ? new $util.LongBits(message.abandon_age.low >>> 0, message.abandon_age.high >>> 0).toNumber() : message.abandon_age; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace")) + object.table_keyspace = message.table_keyspace; return object; }; /** - * Converts this GetUnresolvedTransactionsRequest to JSON. + * Converts this LookupVindexInternalizeRequest to JSON. * @function toJSON - * @memberof vtctldata.GetUnresolvedTransactionsRequest + * @memberof vtctldata.LookupVindexInternalizeRequest * @instance * @returns {Object.} JSON object */ - GetUnresolvedTransactionsRequest.prototype.toJSON = function toJSON() { + LookupVindexInternalizeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetUnresolvedTransactionsRequest + * Gets the default type url for LookupVindexInternalizeRequest * @function getTypeUrl - * @memberof vtctldata.GetUnresolvedTransactionsRequest + * @memberof vtctldata.LookupVindexInternalizeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetUnresolvedTransactionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LookupVindexInternalizeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetUnresolvedTransactionsRequest"; + return typeUrlPrefix + "/vtctldata.LookupVindexInternalizeRequest"; }; - return GetUnresolvedTransactionsRequest; + return LookupVindexInternalizeRequest; })(); - vtctldata.GetUnresolvedTransactionsResponse = (function() { + vtctldata.LookupVindexInternalizeResponse = (function() { /** - * Properties of a GetUnresolvedTransactionsResponse. + * Properties of a LookupVindexInternalizeResponse. * @memberof vtctldata - * @interface IGetUnresolvedTransactionsResponse - * @property {Array.|null} [transactions] GetUnresolvedTransactionsResponse transactions + * @interface ILookupVindexInternalizeResponse */ /** - * Constructs a new GetUnresolvedTransactionsResponse. + * Constructs a new LookupVindexInternalizeResponse. * @memberof vtctldata - * @classdesc Represents a GetUnresolvedTransactionsResponse. - * @implements IGetUnresolvedTransactionsResponse + * @classdesc Represents a LookupVindexInternalizeResponse. + * @implements ILookupVindexInternalizeResponse * @constructor - * @param {vtctldata.IGetUnresolvedTransactionsResponse=} [properties] Properties to set + * @param {vtctldata.ILookupVindexInternalizeResponse=} [properties] Properties to set */ - function GetUnresolvedTransactionsResponse(properties) { - this.transactions = []; + function LookupVindexInternalizeResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -158965,80 +167043,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetUnresolvedTransactionsResponse transactions. - * @member {Array.} transactions - * @memberof vtctldata.GetUnresolvedTransactionsResponse - * @instance - */ - GetUnresolvedTransactionsResponse.prototype.transactions = $util.emptyArray; - - /** - * Creates a new GetUnresolvedTransactionsResponse instance using the specified properties. + * Creates a new LookupVindexInternalizeResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetUnresolvedTransactionsResponse + * @memberof vtctldata.LookupVindexInternalizeResponse * @static - * @param {vtctldata.IGetUnresolvedTransactionsResponse=} [properties] Properties to set - * @returns {vtctldata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse instance + * @param {vtctldata.ILookupVindexInternalizeResponse=} [properties] Properties to set + * @returns {vtctldata.LookupVindexInternalizeResponse} LookupVindexInternalizeResponse instance */ - GetUnresolvedTransactionsResponse.create = function create(properties) { - return new GetUnresolvedTransactionsResponse(properties); + LookupVindexInternalizeResponse.create = function create(properties) { + return new LookupVindexInternalizeResponse(properties); }; /** - * Encodes the specified GetUnresolvedTransactionsResponse message. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsResponse.verify|verify} messages. + * Encodes the specified LookupVindexInternalizeResponse message. Does not implicitly {@link vtctldata.LookupVindexInternalizeResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetUnresolvedTransactionsResponse + * @memberof vtctldata.LookupVindexInternalizeResponse * @static - * @param {vtctldata.IGetUnresolvedTransactionsResponse} message GetUnresolvedTransactionsResponse message or plain object to encode + * @param {vtctldata.ILookupVindexInternalizeResponse} message LookupVindexInternalizeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetUnresolvedTransactionsResponse.encode = function encode(message, writer) { + LookupVindexInternalizeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transactions != null && message.transactions.length) - for (let i = 0; i < message.transactions.length; ++i) - $root.query.TransactionMetadata.encode(message.transactions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetUnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsResponse.verify|verify} messages. + * Encodes the specified LookupVindexInternalizeResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexInternalizeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetUnresolvedTransactionsResponse + * @memberof vtctldata.LookupVindexInternalizeResponse * @static - * @param {vtctldata.IGetUnresolvedTransactionsResponse} message GetUnresolvedTransactionsResponse message or plain object to encode + * @param {vtctldata.ILookupVindexInternalizeResponse} message LookupVindexInternalizeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetUnresolvedTransactionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + LookupVindexInternalizeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer. + * Decodes a LookupVindexInternalizeResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetUnresolvedTransactionsResponse + * @memberof vtctldata.LookupVindexInternalizeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse + * @returns {vtctldata.LookupVindexInternalizeResponse} LookupVindexInternalizeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetUnresolvedTransactionsResponse.decode = function decode(reader, length) { + LookupVindexInternalizeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetUnresolvedTransactionsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexInternalizeResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.transactions && message.transactions.length)) - message.transactions = []; - message.transactions.push($root.query.TransactionMetadata.decode(reader, reader.uint32())); - break; - } default: reader.skipType(tag & 7); break; @@ -159048,139 +167109,109 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. + * Decodes a LookupVindexInternalizeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetUnresolvedTransactionsResponse + * @memberof vtctldata.LookupVindexInternalizeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse + * @returns {vtctldata.LookupVindexInternalizeResponse} LookupVindexInternalizeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetUnresolvedTransactionsResponse.decodeDelimited = function decodeDelimited(reader) { + LookupVindexInternalizeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetUnresolvedTransactionsResponse message. + * Verifies a LookupVindexInternalizeResponse message. * @function verify - * @memberof vtctldata.GetUnresolvedTransactionsResponse + * @memberof vtctldata.LookupVindexInternalizeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetUnresolvedTransactionsResponse.verify = function verify(message) { + LookupVindexInternalizeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.transactions != null && message.hasOwnProperty("transactions")) { - if (!Array.isArray(message.transactions)) - return "transactions: array expected"; - for (let i = 0; i < message.transactions.length; ++i) { - let error = $root.query.TransactionMetadata.verify(message.transactions[i]); - if (error) - return "transactions." + error; - } - } return null; }; /** - * Creates a GetUnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LookupVindexInternalizeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetUnresolvedTransactionsResponse + * @memberof vtctldata.LookupVindexInternalizeResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetUnresolvedTransactionsResponse} GetUnresolvedTransactionsResponse + * @returns {vtctldata.LookupVindexInternalizeResponse} LookupVindexInternalizeResponse */ - GetUnresolvedTransactionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetUnresolvedTransactionsResponse) + LookupVindexInternalizeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.LookupVindexInternalizeResponse) return object; - let message = new $root.vtctldata.GetUnresolvedTransactionsResponse(); - if (object.transactions) { - if (!Array.isArray(object.transactions)) - throw TypeError(".vtctldata.GetUnresolvedTransactionsResponse.transactions: array expected"); - message.transactions = []; - for (let i = 0; i < object.transactions.length; ++i) { - if (typeof object.transactions[i] !== "object") - throw TypeError(".vtctldata.GetUnresolvedTransactionsResponse.transactions: object expected"); - message.transactions[i] = $root.query.TransactionMetadata.fromObject(object.transactions[i]); - } - } - return message; + return new $root.vtctldata.LookupVindexInternalizeResponse(); }; /** - * Creates a plain object from a GetUnresolvedTransactionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a LookupVindexInternalizeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetUnresolvedTransactionsResponse + * @memberof vtctldata.LookupVindexInternalizeResponse * @static - * @param {vtctldata.GetUnresolvedTransactionsResponse} message GetUnresolvedTransactionsResponse + * @param {vtctldata.LookupVindexInternalizeResponse} message LookupVindexInternalizeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetUnresolvedTransactionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.transactions = []; - if (message.transactions && message.transactions.length) { - object.transactions = []; - for (let j = 0; j < message.transactions.length; ++j) - object.transactions[j] = $root.query.TransactionMetadata.toObject(message.transactions[j], options); - } - return object; + LookupVindexInternalizeResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetUnresolvedTransactionsResponse to JSON. + * Converts this LookupVindexInternalizeResponse to JSON. * @function toJSON - * @memberof vtctldata.GetUnresolvedTransactionsResponse + * @memberof vtctldata.LookupVindexInternalizeResponse * @instance * @returns {Object.} JSON object */ - GetUnresolvedTransactionsResponse.prototype.toJSON = function toJSON() { + LookupVindexInternalizeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetUnresolvedTransactionsResponse + * Gets the default type url for LookupVindexInternalizeResponse * @function getTypeUrl - * @memberof vtctldata.GetUnresolvedTransactionsResponse + * @memberof vtctldata.LookupVindexInternalizeResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetUnresolvedTransactionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LookupVindexInternalizeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetUnresolvedTransactionsResponse"; + return typeUrlPrefix + "/vtctldata.LookupVindexInternalizeResponse"; }; - return GetUnresolvedTransactionsResponse; + return LookupVindexInternalizeResponse; })(); - vtctldata.GetTransactionInfoRequest = (function() { + vtctldata.MaterializeCreateRequest = (function() { /** - * Properties of a GetTransactionInfoRequest. + * Properties of a MaterializeCreateRequest. * @memberof vtctldata - * @interface IGetTransactionInfoRequest - * @property {string|null} [dtid] GetTransactionInfoRequest dtid + * @interface IMaterializeCreateRequest + * @property {vtctldata.IMaterializeSettings|null} [settings] MaterializeCreateRequest settings */ /** - * Constructs a new GetTransactionInfoRequest. + * Constructs a new MaterializeCreateRequest. * @memberof vtctldata - * @classdesc Represents a GetTransactionInfoRequest. - * @implements IGetTransactionInfoRequest + * @classdesc Represents a MaterializeCreateRequest. + * @implements IMaterializeCreateRequest * @constructor - * @param {vtctldata.IGetTransactionInfoRequest=} [properties] Properties to set + * @param {vtctldata.IMaterializeCreateRequest=} [properties] Properties to set */ - function GetTransactionInfoRequest(properties) { + function MaterializeCreateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -159188,75 +167219,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetTransactionInfoRequest dtid. - * @member {string} dtid - * @memberof vtctldata.GetTransactionInfoRequest + * MaterializeCreateRequest settings. + * @member {vtctldata.IMaterializeSettings|null|undefined} settings + * @memberof vtctldata.MaterializeCreateRequest * @instance */ - GetTransactionInfoRequest.prototype.dtid = ""; + MaterializeCreateRequest.prototype.settings = null; /** - * Creates a new GetTransactionInfoRequest instance using the specified properties. + * Creates a new MaterializeCreateRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetTransactionInfoRequest + * @memberof vtctldata.MaterializeCreateRequest * @static - * @param {vtctldata.IGetTransactionInfoRequest=} [properties] Properties to set - * @returns {vtctldata.GetTransactionInfoRequest} GetTransactionInfoRequest instance + * @param {vtctldata.IMaterializeCreateRequest=} [properties] Properties to set + * @returns {vtctldata.MaterializeCreateRequest} MaterializeCreateRequest instance */ - GetTransactionInfoRequest.create = function create(properties) { - return new GetTransactionInfoRequest(properties); + MaterializeCreateRequest.create = function create(properties) { + return new MaterializeCreateRequest(properties); }; /** - * Encodes the specified GetTransactionInfoRequest message. Does not implicitly {@link vtctldata.GetTransactionInfoRequest.verify|verify} messages. + * Encodes the specified MaterializeCreateRequest message. Does not implicitly {@link vtctldata.MaterializeCreateRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTransactionInfoRequest + * @memberof vtctldata.MaterializeCreateRequest * @static - * @param {vtctldata.IGetTransactionInfoRequest} message GetTransactionInfoRequest message or plain object to encode + * @param {vtctldata.IMaterializeCreateRequest} message MaterializeCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTransactionInfoRequest.encode = function encode(message, writer) { + MaterializeCreateRequest.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.settings != null && Object.hasOwnProperty.call(message, "settings")) + $root.vtctldata.MaterializeSettings.encode(message.settings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTransactionInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetTransactionInfoRequest.verify|verify} messages. + * Encodes the specified MaterializeCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MaterializeCreateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTransactionInfoRequest + * @memberof vtctldata.MaterializeCreateRequest * @static - * @param {vtctldata.IGetTransactionInfoRequest} message GetTransactionInfoRequest message or plain object to encode + * @param {vtctldata.IMaterializeCreateRequest} message MaterializeCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTransactionInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + MaterializeCreateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTransactionInfoRequest message from the specified reader or buffer. + * Decodes a MaterializeCreateRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTransactionInfoRequest + * @memberof vtctldata.MaterializeCreateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetTransactionInfoRequest} GetTransactionInfoRequest + * @returns {vtctldata.MaterializeCreateRequest} MaterializeCreateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTransactionInfoRequest.decode = function decode(reader, length) { + MaterializeCreateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTransactionInfoRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MaterializeCreateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dtid = reader.string(); + message.settings = $root.vtctldata.MaterializeSettings.decode(reader, reader.uint32()); break; } default: @@ -159268,127 +167299,126 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetTransactionInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a MaterializeCreateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTransactionInfoRequest + * @memberof vtctldata.MaterializeCreateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTransactionInfoRequest} GetTransactionInfoRequest + * @returns {vtctldata.MaterializeCreateRequest} MaterializeCreateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTransactionInfoRequest.decodeDelimited = function decodeDelimited(reader) { + MaterializeCreateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTransactionInfoRequest message. + * Verifies a MaterializeCreateRequest message. * @function verify - * @memberof vtctldata.GetTransactionInfoRequest + * @memberof vtctldata.MaterializeCreateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTransactionInfoRequest.verify = function verify(message) { + MaterializeCreateRequest.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.settings != null && message.hasOwnProperty("settings")) { + let error = $root.vtctldata.MaterializeSettings.verify(message.settings); + if (error) + return "settings." + error; + } return null; }; /** - * Creates a GetTransactionInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MaterializeCreateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetTransactionInfoRequest + * @memberof vtctldata.MaterializeCreateRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTransactionInfoRequest} GetTransactionInfoRequest + * @returns {vtctldata.MaterializeCreateRequest} MaterializeCreateRequest */ - GetTransactionInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTransactionInfoRequest) + MaterializeCreateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MaterializeCreateRequest) return object; - let message = new $root.vtctldata.GetTransactionInfoRequest(); - if (object.dtid != null) - message.dtid = String(object.dtid); + let message = new $root.vtctldata.MaterializeCreateRequest(); + if (object.settings != null) { + if (typeof object.settings !== "object") + throw TypeError(".vtctldata.MaterializeCreateRequest.settings: object expected"); + message.settings = $root.vtctldata.MaterializeSettings.fromObject(object.settings); + } return message; }; /** - * Creates a plain object from a GetTransactionInfoRequest message. Also converts values to other types if specified. + * Creates a plain object from a MaterializeCreateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetTransactionInfoRequest + * @memberof vtctldata.MaterializeCreateRequest * @static - * @param {vtctldata.GetTransactionInfoRequest} message GetTransactionInfoRequest + * @param {vtctldata.MaterializeCreateRequest} message MaterializeCreateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTransactionInfoRequest.toObject = function toObject(message, options) { + MaterializeCreateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.dtid = ""; - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; + object.settings = null; + if (message.settings != null && message.hasOwnProperty("settings")) + object.settings = $root.vtctldata.MaterializeSettings.toObject(message.settings, options); return object; }; /** - * Converts this GetTransactionInfoRequest to JSON. + * Converts this MaterializeCreateRequest to JSON. * @function toJSON - * @memberof vtctldata.GetTransactionInfoRequest + * @memberof vtctldata.MaterializeCreateRequest * @instance * @returns {Object.} JSON object */ - GetTransactionInfoRequest.prototype.toJSON = function toJSON() { + MaterializeCreateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetTransactionInfoRequest + * Gets the default type url for MaterializeCreateRequest * @function getTypeUrl - * @memberof vtctldata.GetTransactionInfoRequest + * @memberof vtctldata.MaterializeCreateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetTransactionInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MaterializeCreateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetTransactionInfoRequest"; + return typeUrlPrefix + "/vtctldata.MaterializeCreateRequest"; }; - return GetTransactionInfoRequest; + return MaterializeCreateRequest; })(); - vtctldata.ShardTransactionState = (function() { + vtctldata.MaterializeCreateResponse = (function() { /** - * Properties of a ShardTransactionState. + * Properties of a MaterializeCreateResponse. * @memberof vtctldata - * @interface IShardTransactionState - * @property {string|null} [shard] ShardTransactionState shard - * @property {string|null} [state] ShardTransactionState state - * @property {string|null} [message] ShardTransactionState message - * @property {number|Long|null} [time_created] ShardTransactionState time_created - * @property {Array.|null} [statements] ShardTransactionState statements + * @interface IMaterializeCreateResponse */ /** - * Constructs a new ShardTransactionState. + * Constructs a new MaterializeCreateResponse. * @memberof vtctldata - * @classdesc Represents a ShardTransactionState. - * @implements IShardTransactionState + * @classdesc Represents a MaterializeCreateResponse. + * @implements IMaterializeCreateResponse * @constructor - * @param {vtctldata.IShardTransactionState=} [properties] Properties to set + * @param {vtctldata.IMaterializeCreateResponse=} [properties] Properties to set */ - function ShardTransactionState(properties) { - this.statements = []; + function MaterializeCreateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -159396,136 +167426,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ShardTransactionState shard. - * @member {string} shard - * @memberof vtctldata.ShardTransactionState - * @instance - */ - ShardTransactionState.prototype.shard = ""; - - /** - * ShardTransactionState state. - * @member {string} state - * @memberof vtctldata.ShardTransactionState - * @instance - */ - ShardTransactionState.prototype.state = ""; - - /** - * ShardTransactionState message. - * @member {string} message - * @memberof vtctldata.ShardTransactionState - * @instance - */ - ShardTransactionState.prototype.message = ""; - - /** - * ShardTransactionState time_created. - * @member {number|Long} time_created - * @memberof vtctldata.ShardTransactionState - * @instance - */ - ShardTransactionState.prototype.time_created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ShardTransactionState statements. - * @member {Array.} statements - * @memberof vtctldata.ShardTransactionState - * @instance - */ - ShardTransactionState.prototype.statements = $util.emptyArray; - - /** - * Creates a new ShardTransactionState instance using the specified properties. + * Creates a new MaterializeCreateResponse instance using the specified properties. * @function create - * @memberof vtctldata.ShardTransactionState + * @memberof vtctldata.MaterializeCreateResponse * @static - * @param {vtctldata.IShardTransactionState=} [properties] Properties to set - * @returns {vtctldata.ShardTransactionState} ShardTransactionState instance + * @param {vtctldata.IMaterializeCreateResponse=} [properties] Properties to set + * @returns {vtctldata.MaterializeCreateResponse} MaterializeCreateResponse instance */ - ShardTransactionState.create = function create(properties) { - return new ShardTransactionState(properties); + MaterializeCreateResponse.create = function create(properties) { + return new MaterializeCreateResponse(properties); }; /** - * Encodes the specified ShardTransactionState message. Does not implicitly {@link vtctldata.ShardTransactionState.verify|verify} messages. + * Encodes the specified MaterializeCreateResponse message. Does not implicitly {@link vtctldata.MaterializeCreateResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ShardTransactionState + * @memberof vtctldata.MaterializeCreateResponse * @static - * @param {vtctldata.IShardTransactionState} message ShardTransactionState message or plain object to encode + * @param {vtctldata.IMaterializeCreateResponse} message MaterializeCreateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardTransactionState.encode = function encode(message, writer) { + MaterializeCreateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.shard); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.state); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); - if (message.time_created != null && Object.hasOwnProperty.call(message, "time_created")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.time_created); - if (message.statements != null && message.statements.length) - for (let i = 0; i < message.statements.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.statements[i]); return writer; }; /** - * Encodes the specified ShardTransactionState message, length delimited. Does not implicitly {@link vtctldata.ShardTransactionState.verify|verify} messages. + * Encodes the specified MaterializeCreateResponse message, length delimited. Does not implicitly {@link vtctldata.MaterializeCreateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ShardTransactionState + * @memberof vtctldata.MaterializeCreateResponse * @static - * @param {vtctldata.IShardTransactionState} message ShardTransactionState message or plain object to encode + * @param {vtctldata.IMaterializeCreateResponse} message MaterializeCreateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardTransactionState.encodeDelimited = function encodeDelimited(message, writer) { + MaterializeCreateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardTransactionState message from the specified reader or buffer. + * Decodes a MaterializeCreateResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ShardTransactionState + * @memberof vtctldata.MaterializeCreateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ShardTransactionState} ShardTransactionState + * @returns {vtctldata.MaterializeCreateResponse} MaterializeCreateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardTransactionState.decode = function decode(reader, length) { + MaterializeCreateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardTransactionState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MaterializeCreateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.shard = reader.string(); - break; - } - case 2: { - message.state = reader.string(); - break; - } - case 3: { - message.message = reader.string(); - break; - } - case 4: { - message.time_created = reader.int64(); - break; - } - case 5: { - if (!(message.statements && message.statements.length)) - message.statements = []; - message.statements.push(reader.string()); - break; - } default: reader.skipType(tag & 7); break; @@ -159535,184 +167492,129 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ShardTransactionState message from the specified reader or buffer, length delimited. + * Decodes a MaterializeCreateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ShardTransactionState + * @memberof vtctldata.MaterializeCreateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ShardTransactionState} ShardTransactionState + * @returns {vtctldata.MaterializeCreateResponse} MaterializeCreateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardTransactionState.decodeDelimited = function decodeDelimited(reader) { + MaterializeCreateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardTransactionState message. + * Verifies a MaterializeCreateResponse message. * @function verify - * @memberof vtctldata.ShardTransactionState + * @memberof vtctldata.MaterializeCreateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardTransactionState.verify = function verify(message) { + MaterializeCreateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - if (!$util.isString(message.state)) - return "state: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - 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.statements != null && message.hasOwnProperty("statements")) { - if (!Array.isArray(message.statements)) - return "statements: array expected"; - for (let i = 0; i < message.statements.length; ++i) - if (!$util.isString(message.statements[i])) - return "statements: string[] expected"; - } return null; }; /** - * Creates a ShardTransactionState message from a plain object. Also converts values to their respective internal types. + * Creates a MaterializeCreateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ShardTransactionState + * @memberof vtctldata.MaterializeCreateResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ShardTransactionState} ShardTransactionState + * @returns {vtctldata.MaterializeCreateResponse} MaterializeCreateResponse */ - ShardTransactionState.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ShardTransactionState) + MaterializeCreateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MaterializeCreateResponse) return object; - let message = new $root.vtctldata.ShardTransactionState(); - if (object.shard != null) - message.shard = String(object.shard); - if (object.state != null) - message.state = String(object.state); - if (object.message != null) - message.message = String(object.message); - 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.statements) { - if (!Array.isArray(object.statements)) - throw TypeError(".vtctldata.ShardTransactionState.statements: array expected"); - message.statements = []; - for (let i = 0; i < object.statements.length; ++i) - message.statements[i] = String(object.statements[i]); - } - return message; + return new $root.vtctldata.MaterializeCreateResponse(); }; /** - * Creates a plain object from a ShardTransactionState message. Also converts values to other types if specified. + * Creates a plain object from a MaterializeCreateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ShardTransactionState + * @memberof vtctldata.MaterializeCreateResponse * @static - * @param {vtctldata.ShardTransactionState} message ShardTransactionState + * @param {vtctldata.MaterializeCreateResponse} message MaterializeCreateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardTransactionState.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.statements = []; - if (options.defaults) { - object.shard = ""; - object.state = ""; - object.message = ""; - if ($util.Long) { - let 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.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.state != null && message.hasOwnProperty("state")) - object.state = message.state; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - 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.statements && message.statements.length) { - object.statements = []; - for (let j = 0; j < message.statements.length; ++j) - object.statements[j] = message.statements[j]; - } - return object; + MaterializeCreateResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ShardTransactionState to JSON. + * Converts this MaterializeCreateResponse to JSON. * @function toJSON - * @memberof vtctldata.ShardTransactionState + * @memberof vtctldata.MaterializeCreateResponse * @instance * @returns {Object.} JSON object */ - ShardTransactionState.prototype.toJSON = function toJSON() { + MaterializeCreateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardTransactionState + * Gets the default type url for MaterializeCreateResponse * @function getTypeUrl - * @memberof vtctldata.ShardTransactionState + * @memberof vtctldata.MaterializeCreateResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardTransactionState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MaterializeCreateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ShardTransactionState"; + return typeUrlPrefix + "/vtctldata.MaterializeCreateResponse"; }; - return ShardTransactionState; + return MaterializeCreateResponse; })(); - vtctldata.GetTransactionInfoResponse = (function() { + vtctldata.MigrateCreateRequest = (function() { /** - * Properties of a GetTransactionInfoResponse. + * Properties of a MigrateCreateRequest. * @memberof vtctldata - * @interface IGetTransactionInfoResponse - * @property {query.ITransactionMetadata|null} [metadata] GetTransactionInfoResponse metadata - * @property {Array.|null} [shard_states] GetTransactionInfoResponse shard_states + * @interface IMigrateCreateRequest + * @property {string|null} [workflow] MigrateCreateRequest workflow + * @property {string|null} [source_keyspace] MigrateCreateRequest source_keyspace + * @property {string|null} [target_keyspace] MigrateCreateRequest target_keyspace + * @property {string|null} [mount_name] MigrateCreateRequest mount_name + * @property {Array.|null} [cells] MigrateCreateRequest cells + * @property {Array.|null} [tablet_types] MigrateCreateRequest tablet_types + * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] MigrateCreateRequest tablet_selection_preference + * @property {boolean|null} [all_tables] MigrateCreateRequest all_tables + * @property {Array.|null} [include_tables] MigrateCreateRequest include_tables + * @property {Array.|null} [exclude_tables] MigrateCreateRequest exclude_tables + * @property {string|null} [source_time_zone] MigrateCreateRequest source_time_zone + * @property {string|null} [on_ddl] MigrateCreateRequest on_ddl + * @property {boolean|null} [stop_after_copy] MigrateCreateRequest stop_after_copy + * @property {boolean|null} [drop_foreign_keys] MigrateCreateRequest drop_foreign_keys + * @property {boolean|null} [defer_secondary_keys] MigrateCreateRequest defer_secondary_keys + * @property {boolean|null} [auto_start] MigrateCreateRequest auto_start + * @property {boolean|null} [no_routing_rules] MigrateCreateRequest no_routing_rules */ /** - * Constructs a new GetTransactionInfoResponse. + * Constructs a new MigrateCreateRequest. * @memberof vtctldata - * @classdesc Represents a GetTransactionInfoResponse. - * @implements IGetTransactionInfoResponse + * @classdesc Represents a MigrateCreateRequest. + * @implements IMigrateCreateRequest * @constructor - * @param {vtctldata.IGetTransactionInfoResponse=} [properties] Properties to set + * @param {vtctldata.IMigrateCreateRequest=} [properties] Properties to set */ - function GetTransactionInfoResponse(properties) { - this.shard_states = []; + function MigrateCreateRequest(properties) { + this.cells = []; + this.tablet_types = []; + this.include_tables = []; + this.exclude_tables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -159720,345 +167622,319 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetTransactionInfoResponse metadata. - * @member {query.ITransactionMetadata|null|undefined} metadata - * @memberof vtctldata.GetTransactionInfoResponse + * MigrateCreateRequest workflow. + * @member {string} workflow + * @memberof vtctldata.MigrateCreateRequest * @instance */ - GetTransactionInfoResponse.prototype.metadata = null; + MigrateCreateRequest.prototype.workflow = ""; /** - * GetTransactionInfoResponse shard_states. - * @member {Array.} shard_states - * @memberof vtctldata.GetTransactionInfoResponse + * MigrateCreateRequest source_keyspace. + * @member {string} source_keyspace + * @memberof vtctldata.MigrateCreateRequest * @instance */ - GetTransactionInfoResponse.prototype.shard_states = $util.emptyArray; + MigrateCreateRequest.prototype.source_keyspace = ""; /** - * Creates a new GetTransactionInfoResponse instance using the specified properties. - * @function create - * @memberof vtctldata.GetTransactionInfoResponse - * @static - * @param {vtctldata.IGetTransactionInfoResponse=} [properties] Properties to set - * @returns {vtctldata.GetTransactionInfoResponse} GetTransactionInfoResponse instance + * MigrateCreateRequest target_keyspace. + * @member {string} target_keyspace + * @memberof vtctldata.MigrateCreateRequest + * @instance */ - GetTransactionInfoResponse.create = function create(properties) { - return new GetTransactionInfoResponse(properties); - }; + MigrateCreateRequest.prototype.target_keyspace = ""; /** - * Encodes the specified GetTransactionInfoResponse message. Does not implicitly {@link vtctldata.GetTransactionInfoResponse.verify|verify} messages. - * @function encode - * @memberof vtctldata.GetTransactionInfoResponse - * @static - * @param {vtctldata.IGetTransactionInfoResponse} message GetTransactionInfoResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * MigrateCreateRequest mount_name. + * @member {string} mount_name + * @memberof vtctldata.MigrateCreateRequest + * @instance */ - GetTransactionInfoResponse.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(); - if (message.shard_states != null && message.shard_states.length) - for (let i = 0; i < message.shard_states.length; ++i) - $root.vtctldata.ShardTransactionState.encode(message.shard_states[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + MigrateCreateRequest.prototype.mount_name = ""; /** - * Encodes the specified GetTransactionInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetTransactionInfoResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.GetTransactionInfoResponse - * @static - * @param {vtctldata.IGetTransactionInfoResponse} message GetTransactionInfoResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * MigrateCreateRequest cells. + * @member {Array.} cells + * @memberof vtctldata.MigrateCreateRequest + * @instance */ - GetTransactionInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + MigrateCreateRequest.prototype.cells = $util.emptyArray; /** - * Decodes a GetTransactionInfoResponse message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.GetTransactionInfoResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetTransactionInfoResponse} GetTransactionInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * MigrateCreateRequest tablet_types. + * @member {Array.} tablet_types + * @memberof vtctldata.MigrateCreateRequest + * @instance */ - GetTransactionInfoResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTransactionInfoResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.metadata = $root.query.TransactionMetadata.decode(reader, reader.uint32()); - break; - } - case 2: { - if (!(message.shard_states && message.shard_states.length)) - message.shard_states = []; - message.shard_states.push($root.vtctldata.ShardTransactionState.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + MigrateCreateRequest.prototype.tablet_types = $util.emptyArray; /** - * Decodes a GetTransactionInfoResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.GetTransactionInfoResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTransactionInfoResponse} GetTransactionInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * MigrateCreateRequest tablet_selection_preference. + * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference + * @memberof vtctldata.MigrateCreateRequest + * @instance */ - GetTransactionInfoResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + MigrateCreateRequest.prototype.tablet_selection_preference = 0; /** - * Verifies a GetTransactionInfoResponse message. - * @function verify - * @memberof vtctldata.GetTransactionInfoResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * MigrateCreateRequest all_tables. + * @member {boolean} all_tables + * @memberof vtctldata.MigrateCreateRequest + * @instance */ - GetTransactionInfoResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - let error = $root.query.TransactionMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.shard_states != null && message.hasOwnProperty("shard_states")) { - if (!Array.isArray(message.shard_states)) - return "shard_states: array expected"; - for (let i = 0; i < message.shard_states.length; ++i) { - let error = $root.vtctldata.ShardTransactionState.verify(message.shard_states[i]); - if (error) - return "shard_states." + error; - } - } - return null; - }; + MigrateCreateRequest.prototype.all_tables = false; /** - * Creates a GetTransactionInfoResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.GetTransactionInfoResponse - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.GetTransactionInfoResponse} GetTransactionInfoResponse + * MigrateCreateRequest include_tables. + * @member {Array.} include_tables + * @memberof vtctldata.MigrateCreateRequest + * @instance */ - GetTransactionInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTransactionInfoResponse) - return object; - let message = new $root.vtctldata.GetTransactionInfoResponse(); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".vtctldata.GetTransactionInfoResponse.metadata: object expected"); - message.metadata = $root.query.TransactionMetadata.fromObject(object.metadata); - } - if (object.shard_states) { - if (!Array.isArray(object.shard_states)) - throw TypeError(".vtctldata.GetTransactionInfoResponse.shard_states: array expected"); - message.shard_states = []; - for (let i = 0; i < object.shard_states.length; ++i) { - if (typeof object.shard_states[i] !== "object") - throw TypeError(".vtctldata.GetTransactionInfoResponse.shard_states: object expected"); - message.shard_states[i] = $root.vtctldata.ShardTransactionState.fromObject(object.shard_states[i]); - } - } - return message; - }; + MigrateCreateRequest.prototype.include_tables = $util.emptyArray; /** - * Creates a plain object from a GetTransactionInfoResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.GetTransactionInfoResponse - * @static - * @param {vtctldata.GetTransactionInfoResponse} message GetTransactionInfoResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * MigrateCreateRequest exclude_tables. + * @member {Array.} exclude_tables + * @memberof vtctldata.MigrateCreateRequest + * @instance */ - GetTransactionInfoResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.shard_states = []; - if (options.defaults) - object.metadata = null; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.query.TransactionMetadata.toObject(message.metadata, options); - if (message.shard_states && message.shard_states.length) { - object.shard_states = []; - for (let j = 0; j < message.shard_states.length; ++j) - object.shard_states[j] = $root.vtctldata.ShardTransactionState.toObject(message.shard_states[j], options); - } - return object; - }; + MigrateCreateRequest.prototype.exclude_tables = $util.emptyArray; /** - * Converts this GetTransactionInfoResponse to JSON. - * @function toJSON - * @memberof vtctldata.GetTransactionInfoResponse + * MigrateCreateRequest source_time_zone. + * @member {string} source_time_zone + * @memberof vtctldata.MigrateCreateRequest * @instance - * @returns {Object.} JSON object */ - GetTransactionInfoResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + MigrateCreateRequest.prototype.source_time_zone = ""; /** - * Gets the default type url for GetTransactionInfoResponse - * @function getTypeUrl - * @memberof vtctldata.GetTransactionInfoResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * MigrateCreateRequest on_ddl. + * @member {string} on_ddl + * @memberof vtctldata.MigrateCreateRequest + * @instance */ - GetTransactionInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.GetTransactionInfoResponse"; - }; - - return GetTransactionInfoResponse; - })(); + MigrateCreateRequest.prototype.on_ddl = ""; - vtctldata.ConcludeTransactionRequest = (function() { + /** + * MigrateCreateRequest stop_after_copy. + * @member {boolean} stop_after_copy + * @memberof vtctldata.MigrateCreateRequest + * @instance + */ + MigrateCreateRequest.prototype.stop_after_copy = false; /** - * Properties of a ConcludeTransactionRequest. - * @memberof vtctldata - * @interface IConcludeTransactionRequest - * @property {string|null} [dtid] ConcludeTransactionRequest dtid - * @property {Array.|null} [participants] ConcludeTransactionRequest participants + * MigrateCreateRequest drop_foreign_keys. + * @member {boolean} drop_foreign_keys + * @memberof vtctldata.MigrateCreateRequest + * @instance */ + MigrateCreateRequest.prototype.drop_foreign_keys = false; /** - * Constructs a new ConcludeTransactionRequest. - * @memberof vtctldata - * @classdesc Represents a ConcludeTransactionRequest. - * @implements IConcludeTransactionRequest - * @constructor - * @param {vtctldata.IConcludeTransactionRequest=} [properties] Properties to set + * MigrateCreateRequest defer_secondary_keys. + * @member {boolean} defer_secondary_keys + * @memberof vtctldata.MigrateCreateRequest + * @instance */ - function ConcludeTransactionRequest(properties) { - this.participants = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + MigrateCreateRequest.prototype.defer_secondary_keys = false; /** - * ConcludeTransactionRequest dtid. - * @member {string} dtid - * @memberof vtctldata.ConcludeTransactionRequest + * MigrateCreateRequest auto_start. + * @member {boolean} auto_start + * @memberof vtctldata.MigrateCreateRequest * @instance */ - ConcludeTransactionRequest.prototype.dtid = ""; + MigrateCreateRequest.prototype.auto_start = false; /** - * ConcludeTransactionRequest participants. - * @member {Array.} participants - * @memberof vtctldata.ConcludeTransactionRequest + * MigrateCreateRequest no_routing_rules. + * @member {boolean} no_routing_rules + * @memberof vtctldata.MigrateCreateRequest * @instance */ - ConcludeTransactionRequest.prototype.participants = $util.emptyArray; + MigrateCreateRequest.prototype.no_routing_rules = false; /** - * Creates a new ConcludeTransactionRequest instance using the specified properties. + * Creates a new MigrateCreateRequest instance using the specified properties. * @function create - * @memberof vtctldata.ConcludeTransactionRequest + * @memberof vtctldata.MigrateCreateRequest * @static - * @param {vtctldata.IConcludeTransactionRequest=} [properties] Properties to set - * @returns {vtctldata.ConcludeTransactionRequest} ConcludeTransactionRequest instance + * @param {vtctldata.IMigrateCreateRequest=} [properties] Properties to set + * @returns {vtctldata.MigrateCreateRequest} MigrateCreateRequest instance */ - ConcludeTransactionRequest.create = function create(properties) { - return new ConcludeTransactionRequest(properties); + MigrateCreateRequest.create = function create(properties) { + return new MigrateCreateRequest(properties); }; /** - * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link vtctldata.ConcludeTransactionRequest.verify|verify} messages. + * Encodes the specified MigrateCreateRequest message. Does not implicitly {@link vtctldata.MigrateCreateRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ConcludeTransactionRequest + * @memberof vtctldata.MigrateCreateRequest * @static - * @param {vtctldata.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode + * @param {vtctldata.IMigrateCreateRequest} message MigrateCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConcludeTransactionRequest.encode = function encode(message, writer) { + MigrateCreateRequest.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.participants != null && message.participants.length) - for (let i = 0; i < message.participants.length; ++i) - $root.query.Target.encode(message.participants[i], 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.mount_name != null && Object.hasOwnProperty.call(message, "mount_name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.mount_name); + if (message.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.cells[i]); + if (message.tablet_types != null && message.tablet_types.length) { + writer.uint32(/* id 6, wireType 2 =*/50).fork(); + for (let i = 0; i < message.tablet_types.length; ++i) + writer.int32(message.tablet_types[i]); + writer.ldelim(); + } + if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.tablet_selection_preference); + if (message.all_tables != null && Object.hasOwnProperty.call(message, "all_tables")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.all_tables); + if (message.include_tables != null && message.include_tables.length) + for (let i = 0; i < message.include_tables.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.include_tables[i]); + if (message.exclude_tables != null && message.exclude_tables.length) + for (let i = 0; i < message.exclude_tables.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.exclude_tables[i]); + if (message.source_time_zone != null && Object.hasOwnProperty.call(message, "source_time_zone")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.source_time_zone); + if (message.on_ddl != null && Object.hasOwnProperty.call(message, "on_ddl")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.on_ddl); + if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.stop_after_copy); + if (message.drop_foreign_keys != null && Object.hasOwnProperty.call(message, "drop_foreign_keys")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.drop_foreign_keys); + if (message.defer_secondary_keys != null && Object.hasOwnProperty.call(message, "defer_secondary_keys")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.defer_secondary_keys); + if (message.auto_start != null && Object.hasOwnProperty.call(message, "auto_start")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.auto_start); + if (message.no_routing_rules != null && Object.hasOwnProperty.call(message, "no_routing_rules")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.no_routing_rules); return writer; }; /** - * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link vtctldata.ConcludeTransactionRequest.verify|verify} messages. + * Encodes the specified MigrateCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MigrateCreateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ConcludeTransactionRequest + * @memberof vtctldata.MigrateCreateRequest * @static - * @param {vtctldata.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode + * @param {vtctldata.IMigrateCreateRequest} message MigrateCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConcludeTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { + MigrateCreateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. + * Decodes a MigrateCreateRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ConcludeTransactionRequest + * @memberof vtctldata.MigrateCreateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ConcludeTransactionRequest} ConcludeTransactionRequest + * @returns {vtctldata.MigrateCreateRequest} MigrateCreateRequest * @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) { + MigrateCreateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ConcludeTransactionRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MigrateCreateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dtid = reader.string(); + message.workflow = reader.string(); break; } case 2: { - if (!(message.participants && message.participants.length)) - message.participants = []; - message.participants.push($root.query.Target.decode(reader, reader.uint32())); + message.source_keyspace = reader.string(); + break; + } + case 3: { + message.target_keyspace = reader.string(); + break; + } + case 4: { + message.mount_name = reader.string(); + break; + } + case 5: { + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); + break; + } + case 6: { + if (!(message.tablet_types && message.tablet_types.length)) + message.tablet_types = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.tablet_types.push(reader.int32()); + } else + message.tablet_types.push(reader.int32()); + break; + } + case 7: { + message.tablet_selection_preference = reader.int32(); + break; + } + case 8: { + message.all_tables = reader.bool(); + break; + } + case 9: { + if (!(message.include_tables && message.include_tables.length)) + message.include_tables = []; + message.include_tables.push(reader.string()); + break; + } + case 10: { + if (!(message.exclude_tables && message.exclude_tables.length)) + message.exclude_tables = []; + message.exclude_tables.push(reader.string()); + break; + } + case 11: { + message.source_time_zone = reader.string(); + break; + } + case 12: { + message.on_ddl = reader.string(); + break; + } + case 13: { + message.stop_after_copy = reader.bool(); + break; + } + case 14: { + message.drop_foreign_keys = reader.bool(); + break; + } + case 15: { + message.defer_secondary_keys = reader.bool(); + break; + } + case 16: { + message.auto_start = reader.bool(); + break; + } + case 17: { + message.no_routing_rules = reader.bool(); break; } default: @@ -160070,147 +167946,394 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateCreateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ConcludeTransactionRequest + * @memberof vtctldata.MigrateCreateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ConcludeTransactionRequest} ConcludeTransactionRequest + * @returns {vtctldata.MigrateCreateRequest} MigrateCreateRequest * @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) { + MigrateCreateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConcludeTransactionRequest message. + * Verifies a MigrateCreateRequest message. * @function verify - * @memberof vtctldata.ConcludeTransactionRequest + * @memberof vtctldata.MigrateCreateRequest * @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) { + MigrateCreateRequest.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.participants != null && message.hasOwnProperty("participants")) { - if (!Array.isArray(message.participants)) - return "participants: array expected"; - for (let i = 0; i < message.participants.length; ++i) { - let error = $root.query.Target.verify(message.participants[i]); - if (error) - return "participants." + error; + 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.mount_name != null && message.hasOwnProperty("mount_name")) + if (!$util.isString(message.mount_name)) + return "mount_name: string expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { + if (!Array.isArray(message.tablet_types)) + return "tablet_types: array expected"; + for (let i = 0; i < message.tablet_types.length; ++i) + switch (message.tablet_types[i]) { + default: + return "tablet_types: enum value[] expected"; + case 0: + case 1: + case 1: + case 2: + case 3: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + switch (message.tablet_selection_preference) { + default: + return "tablet_selection_preference: enum value expected"; + case 0: + case 1: + case 3: + break; } + if (message.all_tables != null && message.hasOwnProperty("all_tables")) + if (typeof message.all_tables !== "boolean") + return "all_tables: boolean expected"; + if (message.include_tables != null && message.hasOwnProperty("include_tables")) { + if (!Array.isArray(message.include_tables)) + return "include_tables: array expected"; + for (let i = 0; i < message.include_tables.length; ++i) + if (!$util.isString(message.include_tables[i])) + return "include_tables: string[] expected"; + } + if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { + if (!Array.isArray(message.exclude_tables)) + return "exclude_tables: array expected"; + for (let i = 0; i < message.exclude_tables.length; ++i) + if (!$util.isString(message.exclude_tables[i])) + return "exclude_tables: string[] expected"; } + 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.on_ddl != null && message.hasOwnProperty("on_ddl")) + if (!$util.isString(message.on_ddl)) + return "on_ddl: 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.drop_foreign_keys != null && message.hasOwnProperty("drop_foreign_keys")) + if (typeof message.drop_foreign_keys !== "boolean") + return "drop_foreign_keys: boolean expected"; + if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) + if (typeof message.defer_secondary_keys !== "boolean") + return "defer_secondary_keys: boolean expected"; + if (message.auto_start != null && message.hasOwnProperty("auto_start")) + if (typeof message.auto_start !== "boolean") + return "auto_start: boolean expected"; + if (message.no_routing_rules != null && message.hasOwnProperty("no_routing_rules")) + if (typeof message.no_routing_rules !== "boolean") + return "no_routing_rules: boolean expected"; return null; }; /** - * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateCreateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ConcludeTransactionRequest + * @memberof vtctldata.MigrateCreateRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ConcludeTransactionRequest} ConcludeTransactionRequest + * @returns {vtctldata.MigrateCreateRequest} MigrateCreateRequest */ - ConcludeTransactionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ConcludeTransactionRequest) + MigrateCreateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MigrateCreateRequest) return object; - let message = new $root.vtctldata.ConcludeTransactionRequest(); - if (object.dtid != null) - message.dtid = String(object.dtid); - if (object.participants) { - if (!Array.isArray(object.participants)) - throw TypeError(".vtctldata.ConcludeTransactionRequest.participants: array expected"); - message.participants = []; - for (let i = 0; i < object.participants.length; ++i) { - if (typeof object.participants[i] !== "object") - throw TypeError(".vtctldata.ConcludeTransactionRequest.participants: object expected"); - message.participants[i] = $root.query.Target.fromObject(object.participants[i]); + let message = new $root.vtctldata.MigrateCreateRequest(); + 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.mount_name != null) + message.mount_name = String(object.mount_name); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.MigrateCreateRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } + if (object.tablet_types) { + if (!Array.isArray(object.tablet_types)) + throw TypeError(".vtctldata.MigrateCreateRequest.tablet_types: array expected"); + message.tablet_types = []; + for (let i = 0; i < object.tablet_types.length; ++i) + switch (object.tablet_types[i]) { + default: + if (typeof object.tablet_types[i] === "number") { + message.tablet_types[i] = object.tablet_types[i]; + break; + } + case "UNKNOWN": + case 0: + message.tablet_types[i] = 0; + break; + case "PRIMARY": + case 1: + message.tablet_types[i] = 1; + break; + case "MASTER": + case 1: + message.tablet_types[i] = 1; + break; + case "REPLICA": + case 2: + message.tablet_types[i] = 2; + break; + case "RDONLY": + case 3: + message.tablet_types[i] = 3; + break; + case "BATCH": + case 3: + message.tablet_types[i] = 3; + break; + case "SPARE": + case 4: + message.tablet_types[i] = 4; + break; + case "EXPERIMENTAL": + case 5: + message.tablet_types[i] = 5; + break; + case "BACKUP": + case 6: + message.tablet_types[i] = 6; + break; + case "RESTORE": + case 7: + message.tablet_types[i] = 7; + break; + case "DRAINED": + case 8: + message.tablet_types[i] = 8; + break; + } + } + switch (object.tablet_selection_preference) { + default: + if (typeof object.tablet_selection_preference === "number") { + message.tablet_selection_preference = object.tablet_selection_preference; + break; } + break; + case "ANY": + case 0: + message.tablet_selection_preference = 0; + break; + case "INORDER": + case 1: + message.tablet_selection_preference = 1; + break; + case "UNKNOWN": + case 3: + message.tablet_selection_preference = 3; + break; + } + if (object.all_tables != null) + message.all_tables = Boolean(object.all_tables); + if (object.include_tables) { + if (!Array.isArray(object.include_tables)) + throw TypeError(".vtctldata.MigrateCreateRequest.include_tables: array expected"); + message.include_tables = []; + for (let i = 0; i < object.include_tables.length; ++i) + message.include_tables[i] = String(object.include_tables[i]); + } + if (object.exclude_tables) { + if (!Array.isArray(object.exclude_tables)) + throw TypeError(".vtctldata.MigrateCreateRequest.exclude_tables: array expected"); + message.exclude_tables = []; + for (let i = 0; i < object.exclude_tables.length; ++i) + message.exclude_tables[i] = String(object.exclude_tables[i]); } + if (object.source_time_zone != null) + message.source_time_zone = String(object.source_time_zone); + if (object.on_ddl != null) + message.on_ddl = String(object.on_ddl); + if (object.stop_after_copy != null) + message.stop_after_copy = Boolean(object.stop_after_copy); + if (object.drop_foreign_keys != null) + message.drop_foreign_keys = Boolean(object.drop_foreign_keys); + if (object.defer_secondary_keys != null) + message.defer_secondary_keys = Boolean(object.defer_secondary_keys); + if (object.auto_start != null) + message.auto_start = Boolean(object.auto_start); + if (object.no_routing_rules != null) + message.no_routing_rules = Boolean(object.no_routing_rules); return message; }; /** - * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. + * Creates a plain object from a MigrateCreateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ConcludeTransactionRequest + * @memberof vtctldata.MigrateCreateRequest * @static - * @param {vtctldata.ConcludeTransactionRequest} message ConcludeTransactionRequest + * @param {vtctldata.MigrateCreateRequest} message MigrateCreateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConcludeTransactionRequest.toObject = function toObject(message, options) { + MigrateCreateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.participants = []; - if (options.defaults) - object.dtid = ""; - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; - if (message.participants && message.participants.length) { - object.participants = []; - for (let j = 0; j < message.participants.length; ++j) - object.participants[j] = $root.query.Target.toObject(message.participants[j], options); + if (options.arrays || options.defaults) { + object.cells = []; + object.tablet_types = []; + object.include_tables = []; + object.exclude_tables = []; + } + if (options.defaults) { + object.workflow = ""; + object.source_keyspace = ""; + object.target_keyspace = ""; + object.mount_name = ""; + object.tablet_selection_preference = options.enums === String ? "ANY" : 0; + object.all_tables = false; + object.source_time_zone = ""; + object.on_ddl = ""; + object.stop_after_copy = false; + object.drop_foreign_keys = false; + object.defer_secondary_keys = false; + object.auto_start = false; + object.no_routing_rules = false; + } + 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.mount_name != null && message.hasOwnProperty("mount_name")) + object.mount_name = message.mount_name; + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + if (message.tablet_types && message.tablet_types.length) { + object.tablet_types = []; + for (let j = 0; j < message.tablet_types.length; ++j) + object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; + } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; + if (message.all_tables != null && message.hasOwnProperty("all_tables")) + object.all_tables = message.all_tables; + if (message.include_tables && message.include_tables.length) { + object.include_tables = []; + for (let j = 0; j < message.include_tables.length; ++j) + object.include_tables[j] = message.include_tables[j]; + } + if (message.exclude_tables && message.exclude_tables.length) { + object.exclude_tables = []; + for (let j = 0; j < message.exclude_tables.length; ++j) + object.exclude_tables[j] = message.exclude_tables[j]; } + if (message.source_time_zone != null && message.hasOwnProperty("source_time_zone")) + object.source_time_zone = message.source_time_zone; + if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) + object.on_ddl = message.on_ddl; + if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) + object.stop_after_copy = message.stop_after_copy; + if (message.drop_foreign_keys != null && message.hasOwnProperty("drop_foreign_keys")) + object.drop_foreign_keys = message.drop_foreign_keys; + if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) + object.defer_secondary_keys = message.defer_secondary_keys; + if (message.auto_start != null && message.hasOwnProperty("auto_start")) + object.auto_start = message.auto_start; + if (message.no_routing_rules != null && message.hasOwnProperty("no_routing_rules")) + object.no_routing_rules = message.no_routing_rules; return object; }; /** - * Converts this ConcludeTransactionRequest to JSON. + * Converts this MigrateCreateRequest to JSON. * @function toJSON - * @memberof vtctldata.ConcludeTransactionRequest + * @memberof vtctldata.MigrateCreateRequest * @instance * @returns {Object.} JSON object */ - ConcludeTransactionRequest.prototype.toJSON = function toJSON() { + MigrateCreateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ConcludeTransactionRequest + * Gets the default type url for MigrateCreateRequest * @function getTypeUrl - * @memberof vtctldata.ConcludeTransactionRequest + * @memberof vtctldata.MigrateCreateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ConcludeTransactionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MigrateCreateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ConcludeTransactionRequest"; + return typeUrlPrefix + "/vtctldata.MigrateCreateRequest"; }; - return ConcludeTransactionRequest; + return MigrateCreateRequest; })(); - vtctldata.ConcludeTransactionResponse = (function() { + vtctldata.MigrateCompleteRequest = (function() { /** - * Properties of a ConcludeTransactionResponse. + * Properties of a MigrateCompleteRequest. * @memberof vtctldata - * @interface IConcludeTransactionResponse + * @interface IMigrateCompleteRequest + * @property {string|null} [workflow] MigrateCompleteRequest workflow + * @property {string|null} [target_keyspace] MigrateCompleteRequest target_keyspace + * @property {boolean|null} [keep_data] MigrateCompleteRequest keep_data + * @property {boolean|null} [keep_routing_rules] MigrateCompleteRequest keep_routing_rules + * @property {boolean|null} [rename_tables] MigrateCompleteRequest rename_tables + * @property {boolean|null} [dry_run] MigrateCompleteRequest dry_run */ /** - * Constructs a new ConcludeTransactionResponse. + * Constructs a new MigrateCompleteRequest. * @memberof vtctldata - * @classdesc Represents a ConcludeTransactionResponse. - * @implements IConcludeTransactionResponse + * @classdesc Represents a MigrateCompleteRequest. + * @implements IMigrateCompleteRequest * @constructor - * @param {vtctldata.IConcludeTransactionResponse=} [properties] Properties to set + * @param {vtctldata.IMigrateCompleteRequest=} [properties] Properties to set */ - function ConcludeTransactionResponse(properties) { + function MigrateCompleteRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -160218,251 +168341,145 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new ConcludeTransactionResponse instance using the specified properties. - * @function create - * @memberof vtctldata.ConcludeTransactionResponse - * @static - * @param {vtctldata.IConcludeTransactionResponse=} [properties] Properties to set - * @returns {vtctldata.ConcludeTransactionResponse} ConcludeTransactionResponse instance - */ - ConcludeTransactionResponse.create = function create(properties) { - return new ConcludeTransactionResponse(properties); - }; - - /** - * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link vtctldata.ConcludeTransactionResponse.verify|verify} messages. - * @function encode - * @memberof vtctldata.ConcludeTransactionResponse - * @static - * @param {vtctldata.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConcludeTransactionResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link vtctldata.ConcludeTransactionResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.ConcludeTransactionResponse - * @static - * @param {vtctldata.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConcludeTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.ConcludeTransactionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ConcludeTransactionResponse} ConcludeTransactionResponse - * @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) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ConcludeTransactionResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.ConcludeTransactionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ConcludeTransactionResponse} ConcludeTransactionResponse - * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ConcludeTransactionResponse message. - * @function verify - * @memberof vtctldata.ConcludeTransactionResponse - * @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) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.ConcludeTransactionResponse - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.ConcludeTransactionResponse} ConcludeTransactionResponse - */ - ConcludeTransactionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ConcludeTransactionResponse) - return object; - return new $root.vtctldata.ConcludeTransactionResponse(); - }; - - /** - * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.ConcludeTransactionResponse - * @static - * @param {vtctldata.ConcludeTransactionResponse} message ConcludeTransactionResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * MigrateCompleteRequest workflow. + * @member {string} workflow + * @memberof vtctldata.MigrateCompleteRequest + * @instance */ - ConcludeTransactionResponse.toObject = function toObject() { - return {}; - }; + MigrateCompleteRequest.prototype.workflow = ""; /** - * Converts this ConcludeTransactionResponse to JSON. - * @function toJSON - * @memberof vtctldata.ConcludeTransactionResponse + * MigrateCompleteRequest target_keyspace. + * @member {string} target_keyspace + * @memberof vtctldata.MigrateCompleteRequest * @instance - * @returns {Object.} JSON object */ - ConcludeTransactionResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + MigrateCompleteRequest.prototype.target_keyspace = ""; /** - * Gets the default type url for ConcludeTransactionResponse - * @function getTypeUrl - * @memberof vtctldata.ConcludeTransactionResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * MigrateCompleteRequest keep_data. + * @member {boolean} keep_data + * @memberof vtctldata.MigrateCompleteRequest + * @instance */ - ConcludeTransactionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.ConcludeTransactionResponse"; - }; - - return ConcludeTransactionResponse; - })(); - - vtctldata.GetVSchemaRequest = (function() { + MigrateCompleteRequest.prototype.keep_data = false; /** - * Properties of a GetVSchemaRequest. - * @memberof vtctldata - * @interface IGetVSchemaRequest - * @property {string|null} [keyspace] GetVSchemaRequest keyspace + * MigrateCompleteRequest keep_routing_rules. + * @member {boolean} keep_routing_rules + * @memberof vtctldata.MigrateCompleteRequest + * @instance */ + MigrateCompleteRequest.prototype.keep_routing_rules = false; /** - * Constructs a new GetVSchemaRequest. - * @memberof vtctldata - * @classdesc Represents a GetVSchemaRequest. - * @implements IGetVSchemaRequest - * @constructor - * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set + * MigrateCompleteRequest rename_tables. + * @member {boolean} rename_tables + * @memberof vtctldata.MigrateCompleteRequest + * @instance */ - function GetVSchemaRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + MigrateCompleteRequest.prototype.rename_tables = false; /** - * GetVSchemaRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetVSchemaRequest + * MigrateCompleteRequest dry_run. + * @member {boolean} dry_run + * @memberof vtctldata.MigrateCompleteRequest * @instance */ - GetVSchemaRequest.prototype.keyspace = ""; + MigrateCompleteRequest.prototype.dry_run = false; /** - * Creates a new GetVSchemaRequest instance using the specified properties. + * Creates a new MigrateCompleteRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.MigrateCompleteRequest * @static - * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest instance + * @param {vtctldata.IMigrateCompleteRequest=} [properties] Properties to set + * @returns {vtctldata.MigrateCompleteRequest} MigrateCompleteRequest instance */ - GetVSchemaRequest.create = function create(properties) { - return new GetVSchemaRequest(properties); + MigrateCompleteRequest.create = function create(properties) { + return new MigrateCompleteRequest(properties); }; /** - * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * Encodes the specified MigrateCompleteRequest message. Does not implicitly {@link vtctldata.MigrateCompleteRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.MigrateCompleteRequest * @static - * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest message or plain object to encode + * @param {vtctldata.IMigrateCompleteRequest} message MigrateCompleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVSchemaRequest.encode = function encode(message, writer) { + MigrateCompleteRequest.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.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); + if (message.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_keyspace); + if (message.keep_data != null && Object.hasOwnProperty.call(message, "keep_data")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.keep_data); + if (message.keep_routing_rules != null && Object.hasOwnProperty.call(message, "keep_routing_rules")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.keep_routing_rules); + if (message.rename_tables != null && Object.hasOwnProperty.call(message, "rename_tables")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.rename_tables); + if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.dry_run); return writer; }; /** - * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * Encodes the specified MigrateCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.MigrateCompleteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.MigrateCompleteRequest * @static - * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest message or plain object to encode + * @param {vtctldata.IMigrateCompleteRequest} message MigrateCompleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + MigrateCompleteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer. + * Decodes a MigrateCompleteRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.MigrateCompleteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest + * @returns {vtctldata.MigrateCompleteRequest} MigrateCompleteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVSchemaRequest.decode = function decode(reader, length) { + MigrateCompleteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVSchemaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MigrateCompleteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + message.workflow = reader.string(); + break; + } + case 3: { + message.target_keyspace = reader.string(); + break; + } + case 4: { + message.keep_data = reader.bool(); + break; + } + case 5: { + message.keep_routing_rules = reader.bool(); + break; + } + case 6: { + message.rename_tables = reader.bool(); + break; + } + case 7: { + message.dry_run = reader.bool(); break; } default: @@ -160474,122 +168491,165 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateCompleteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.MigrateCompleteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest + * @returns {vtctldata.MigrateCompleteRequest} MigrateCompleteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + MigrateCompleteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetVSchemaRequest message. + * Verifies a MigrateCompleteRequest message. * @function verify - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.MigrateCompleteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetVSchemaRequest.verify = function verify(message) { + MigrateCompleteRequest.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.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + if (!$util.isString(message.target_keyspace)) + return "target_keyspace: string expected"; + if (message.keep_data != null && message.hasOwnProperty("keep_data")) + if (typeof message.keep_data !== "boolean") + return "keep_data: boolean expected"; + if (message.keep_routing_rules != null && message.hasOwnProperty("keep_routing_rules")) + if (typeof message.keep_routing_rules !== "boolean") + return "keep_routing_rules: boolean expected"; + if (message.rename_tables != null && message.hasOwnProperty("rename_tables")) + if (typeof message.rename_tables !== "boolean") + return "rename_tables: boolean expected"; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + if (typeof message.dry_run !== "boolean") + return "dry_run: boolean expected"; return null; }; /** - * Creates a GetVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateCompleteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.MigrateCompleteRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest + * @returns {vtctldata.MigrateCompleteRequest} MigrateCompleteRequest */ - GetVSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetVSchemaRequest) + MigrateCompleteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MigrateCompleteRequest) return object; - let message = new $root.vtctldata.GetVSchemaRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); + let message = new $root.vtctldata.MigrateCompleteRequest(); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.target_keyspace != null) + message.target_keyspace = String(object.target_keyspace); + if (object.keep_data != null) + message.keep_data = Boolean(object.keep_data); + if (object.keep_routing_rules != null) + message.keep_routing_rules = Boolean(object.keep_routing_rules); + if (object.rename_tables != null) + message.rename_tables = Boolean(object.rename_tables); + if (object.dry_run != null) + message.dry_run = Boolean(object.dry_run); return message; }; /** - * Creates a plain object from a GetVSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a MigrateCompleteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.MigrateCompleteRequest * @static - * @param {vtctldata.GetVSchemaRequest} message GetVSchemaRequest + * @param {vtctldata.MigrateCompleteRequest} message MigrateCompleteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVSchemaRequest.toObject = function toObject(message, options) { + MigrateCompleteRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.keyspace = ""; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; + if (options.defaults) { + object.workflow = ""; + object.target_keyspace = ""; + object.keep_data = false; + object.keep_routing_rules = false; + object.rename_tables = false; + object.dry_run = false; + } + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + object.target_keyspace = message.target_keyspace; + if (message.keep_data != null && message.hasOwnProperty("keep_data")) + object.keep_data = message.keep_data; + if (message.keep_routing_rules != null && message.hasOwnProperty("keep_routing_rules")) + object.keep_routing_rules = message.keep_routing_rules; + if (message.rename_tables != null && message.hasOwnProperty("rename_tables")) + object.rename_tables = message.rename_tables; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + object.dry_run = message.dry_run; return object; }; /** - * Converts this GetVSchemaRequest to JSON. + * Converts this MigrateCompleteRequest to JSON. * @function toJSON - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.MigrateCompleteRequest * @instance * @returns {Object.} JSON object */ - GetVSchemaRequest.prototype.toJSON = function toJSON() { + MigrateCompleteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetVSchemaRequest + * Gets the default type url for MigrateCompleteRequest * @function getTypeUrl - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.MigrateCompleteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetVSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MigrateCompleteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetVSchemaRequest"; + return typeUrlPrefix + "/vtctldata.MigrateCompleteRequest"; }; - return GetVSchemaRequest; + return MigrateCompleteRequest; })(); - vtctldata.GetVersionRequest = (function() { + vtctldata.MigrateCompleteResponse = (function() { /** - * Properties of a GetVersionRequest. + * Properties of a MigrateCompleteResponse. * @memberof vtctldata - * @interface IGetVersionRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] GetVersionRequest tablet_alias + * @interface IMigrateCompleteResponse + * @property {string|null} [summary] MigrateCompleteResponse summary + * @property {Array.|null} [dry_run_results] MigrateCompleteResponse dry_run_results */ /** - * Constructs a new GetVersionRequest. + * Constructs a new MigrateCompleteResponse. * @memberof vtctldata - * @classdesc Represents a GetVersionRequest. - * @implements IGetVersionRequest + * @classdesc Represents a MigrateCompleteResponse. + * @implements IMigrateCompleteResponse * @constructor - * @param {vtctldata.IGetVersionRequest=} [properties] Properties to set + * @param {vtctldata.IMigrateCompleteResponse=} [properties] Properties to set */ - function GetVersionRequest(properties) { + function MigrateCompleteResponse(properties) { + this.dry_run_results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -160597,75 +168657,92 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetVersionRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.GetVersionRequest + * MigrateCompleteResponse summary. + * @member {string} summary + * @memberof vtctldata.MigrateCompleteResponse * @instance */ - GetVersionRequest.prototype.tablet_alias = null; + MigrateCompleteResponse.prototype.summary = ""; /** - * Creates a new GetVersionRequest instance using the specified properties. + * MigrateCompleteResponse dry_run_results. + * @member {Array.} dry_run_results + * @memberof vtctldata.MigrateCompleteResponse + * @instance + */ + MigrateCompleteResponse.prototype.dry_run_results = $util.emptyArray; + + /** + * Creates a new MigrateCompleteResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetVersionRequest + * @memberof vtctldata.MigrateCompleteResponse * @static - * @param {vtctldata.IGetVersionRequest=} [properties] Properties to set - * @returns {vtctldata.GetVersionRequest} GetVersionRequest instance + * @param {vtctldata.IMigrateCompleteResponse=} [properties] Properties to set + * @returns {vtctldata.MigrateCompleteResponse} MigrateCompleteResponse instance */ - GetVersionRequest.create = function create(properties) { - return new GetVersionRequest(properties); + MigrateCompleteResponse.create = function create(properties) { + return new MigrateCompleteResponse(properties); }; /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link vtctldata.GetVersionRequest.verify|verify} messages. + * Encodes the specified MigrateCompleteResponse message. Does not implicitly {@link vtctldata.MigrateCompleteResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetVersionRequest + * @memberof vtctldata.MigrateCompleteResponse * @static - * @param {vtctldata.IGetVersionRequest} message GetVersionRequest message or plain object to encode + * @param {vtctldata.IMigrateCompleteResponse} message MigrateCompleteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVersionRequest.encode = function encode(message, writer) { + MigrateCompleteResponse.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.summary != null && Object.hasOwnProperty.call(message, "summary")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.summary); + if (message.dry_run_results != null && message.dry_run_results.length) + for (let i = 0; i < message.dry_run_results.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.dry_run_results[i]); return writer; }; /** - * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link vtctldata.GetVersionRequest.verify|verify} messages. + * Encodes the specified MigrateCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.MigrateCompleteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetVersionRequest + * @memberof vtctldata.MigrateCompleteResponse * @static - * @param {vtctldata.IGetVersionRequest} message GetVersionRequest message or plain object to encode + * @param {vtctldata.IMigrateCompleteResponse} message MigrateCompleteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + MigrateCompleteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVersionRequest message from the specified reader or buffer. + * Decodes a MigrateCompleteResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetVersionRequest + * @memberof vtctldata.MigrateCompleteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetVersionRequest} GetVersionRequest + * @returns {vtctldata.MigrateCompleteResponse} MigrateCompleteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVersionRequest.decode = function decode(reader, length) { + MigrateCompleteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVersionRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MigrateCompleteResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.summary = reader.string(); + break; + } + case 2: { + if (!(message.dry_run_results && message.dry_run_results.length)) + message.dry_run_results = []; + message.dry_run_results.push(reader.string()); break; } default: @@ -160677,127 +168754,146 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateCompleteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetVersionRequest + * @memberof vtctldata.MigrateCompleteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetVersionRequest} GetVersionRequest + * @returns {vtctldata.MigrateCompleteResponse} MigrateCompleteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVersionRequest.decodeDelimited = function decodeDelimited(reader) { + MigrateCompleteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetVersionRequest message. + * Verifies a MigrateCompleteResponse message. * @function verify - * @memberof vtctldata.GetVersionRequest + * @memberof vtctldata.MigrateCompleteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetVersionRequest.verify = function verify(message) { + MigrateCompleteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; + if (message.summary != null && message.hasOwnProperty("summary")) + if (!$util.isString(message.summary)) + return "summary: string expected"; + if (message.dry_run_results != null && message.hasOwnProperty("dry_run_results")) { + if (!Array.isArray(message.dry_run_results)) + return "dry_run_results: array expected"; + for (let i = 0; i < message.dry_run_results.length; ++i) + if (!$util.isString(message.dry_run_results[i])) + return "dry_run_results: string[] expected"; } return null; }; /** - * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateCompleteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetVersionRequest + * @memberof vtctldata.MigrateCompleteResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetVersionRequest} GetVersionRequest + * @returns {vtctldata.MigrateCompleteResponse} MigrateCompleteResponse */ - GetVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetVersionRequest) + MigrateCompleteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MigrateCompleteResponse) return object; - let message = new $root.vtctldata.GetVersionRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.GetVersionRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + let message = new $root.vtctldata.MigrateCompleteResponse(); + if (object.summary != null) + message.summary = String(object.summary); + if (object.dry_run_results) { + if (!Array.isArray(object.dry_run_results)) + throw TypeError(".vtctldata.MigrateCompleteResponse.dry_run_results: array expected"); + message.dry_run_results = []; + for (let i = 0; i < object.dry_run_results.length; ++i) + message.dry_run_results[i] = String(object.dry_run_results[i]); } return message; }; /** - * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. + * Creates a plain object from a MigrateCompleteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetVersionRequest + * @memberof vtctldata.MigrateCompleteResponse * @static - * @param {vtctldata.GetVersionRequest} message GetVersionRequest + * @param {vtctldata.MigrateCompleteResponse} message MigrateCompleteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVersionRequest.toObject = function toObject(message, options) { + MigrateCompleteResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.dry_run_results = []; if (options.defaults) - object.tablet_alias = null; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + object.summary = ""; + if (message.summary != null && message.hasOwnProperty("summary")) + object.summary = message.summary; + if (message.dry_run_results && message.dry_run_results.length) { + object.dry_run_results = []; + for (let j = 0; j < message.dry_run_results.length; ++j) + object.dry_run_results[j] = message.dry_run_results[j]; + } return object; }; /** - * Converts this GetVersionRequest to JSON. + * Converts this MigrateCompleteResponse to JSON. * @function toJSON - * @memberof vtctldata.GetVersionRequest + * @memberof vtctldata.MigrateCompleteResponse * @instance * @returns {Object.} JSON object */ - GetVersionRequest.prototype.toJSON = function toJSON() { + MigrateCompleteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetVersionRequest + * Gets the default type url for MigrateCompleteResponse * @function getTypeUrl - * @memberof vtctldata.GetVersionRequest + * @memberof vtctldata.MigrateCompleteResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MigrateCompleteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetVersionRequest"; + return typeUrlPrefix + "/vtctldata.MigrateCompleteResponse"; }; - return GetVersionRequest; + return MigrateCompleteResponse; })(); - vtctldata.GetVersionResponse = (function() { + vtctldata.MountRegisterRequest = (function() { /** - * Properties of a GetVersionResponse. + * Properties of a MountRegisterRequest. * @memberof vtctldata - * @interface IGetVersionResponse - * @property {string|null} [version] GetVersionResponse version + * @interface IMountRegisterRequest + * @property {string|null} [topo_type] MountRegisterRequest topo_type + * @property {string|null} [topo_server] MountRegisterRequest topo_server + * @property {string|null} [topo_root] MountRegisterRequest topo_root + * @property {string|null} [name] MountRegisterRequest name */ /** - * Constructs a new GetVersionResponse. + * Constructs a new MountRegisterRequest. * @memberof vtctldata - * @classdesc Represents a GetVersionResponse. - * @implements IGetVersionResponse + * @classdesc Represents a MountRegisterRequest. + * @implements IMountRegisterRequest * @constructor - * @param {vtctldata.IGetVersionResponse=} [properties] Properties to set + * @param {vtctldata.IMountRegisterRequest=} [properties] Properties to set */ - function GetVersionResponse(properties) { + function MountRegisterRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -160805,75 +168901,117 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetVersionResponse version. - * @member {string} version - * @memberof vtctldata.GetVersionResponse + * MountRegisterRequest topo_type. + * @member {string} topo_type + * @memberof vtctldata.MountRegisterRequest * @instance */ - GetVersionResponse.prototype.version = ""; + MountRegisterRequest.prototype.topo_type = ""; /** - * Creates a new GetVersionResponse instance using the specified properties. + * MountRegisterRequest topo_server. + * @member {string} topo_server + * @memberof vtctldata.MountRegisterRequest + * @instance + */ + MountRegisterRequest.prototype.topo_server = ""; + + /** + * MountRegisterRequest topo_root. + * @member {string} topo_root + * @memberof vtctldata.MountRegisterRequest + * @instance + */ + MountRegisterRequest.prototype.topo_root = ""; + + /** + * MountRegisterRequest name. + * @member {string} name + * @memberof vtctldata.MountRegisterRequest + * @instance + */ + MountRegisterRequest.prototype.name = ""; + + /** + * Creates a new MountRegisterRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetVersionResponse + * @memberof vtctldata.MountRegisterRequest * @static - * @param {vtctldata.IGetVersionResponse=} [properties] Properties to set - * @returns {vtctldata.GetVersionResponse} GetVersionResponse instance + * @param {vtctldata.IMountRegisterRequest=} [properties] Properties to set + * @returns {vtctldata.MountRegisterRequest} MountRegisterRequest instance */ - GetVersionResponse.create = function create(properties) { - return new GetVersionResponse(properties); + MountRegisterRequest.create = function create(properties) { + return new MountRegisterRequest(properties); }; /** - * Encodes the specified GetVersionResponse message. Does not implicitly {@link vtctldata.GetVersionResponse.verify|verify} messages. + * Encodes the specified MountRegisterRequest message. Does not implicitly {@link vtctldata.MountRegisterRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetVersionResponse + * @memberof vtctldata.MountRegisterRequest * @static - * @param {vtctldata.IGetVersionResponse} message GetVersionResponse message or plain object to encode + * @param {vtctldata.IMountRegisterRequest} message MountRegisterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVersionResponse.encode = function encode(message, writer) { + MountRegisterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.topo_type != null && Object.hasOwnProperty.call(message, "topo_type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topo_type); + if (message.topo_server != null && Object.hasOwnProperty.call(message, "topo_server")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.topo_server); + if (message.topo_root != null && Object.hasOwnProperty.call(message, "topo_root")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.topo_root); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; /** - * Encodes the specified GetVersionResponse message, length delimited. Does not implicitly {@link vtctldata.GetVersionResponse.verify|verify} messages. + * Encodes the specified MountRegisterRequest message, length delimited. Does not implicitly {@link vtctldata.MountRegisterRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetVersionResponse + * @memberof vtctldata.MountRegisterRequest * @static - * @param {vtctldata.IGetVersionResponse} message GetVersionResponse message or plain object to encode + * @param {vtctldata.IMountRegisterRequest} message MountRegisterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVersionResponse.encodeDelimited = function encodeDelimited(message, writer) { + MountRegisterRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVersionResponse message from the specified reader or buffer. + * Decodes a MountRegisterRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetVersionResponse + * @memberof vtctldata.MountRegisterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetVersionResponse} GetVersionResponse + * @returns {vtctldata.MountRegisterRequest} MountRegisterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVersionResponse.decode = function decode(reader, length) { + MountRegisterRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVersionResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountRegisterRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.version = reader.string(); + message.topo_type = reader.string(); + break; + } + case 2: { + message.topo_server = reader.string(); + break; + } + case 3: { + message.topo_root = reader.string(); + break; + } + case 4: { + message.name = reader.string(); break; } default: @@ -160885,122 +169023,146 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetVersionResponse message from the specified reader or buffer, length delimited. + * Decodes a MountRegisterRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetVersionResponse + * @memberof vtctldata.MountRegisterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetVersionResponse} GetVersionResponse + * @returns {vtctldata.MountRegisterRequest} MountRegisterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVersionResponse.decodeDelimited = function decodeDelimited(reader) { + MountRegisterRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetVersionResponse message. + * Verifies a MountRegisterRequest message. * @function verify - * @memberof vtctldata.GetVersionResponse + * @memberof vtctldata.MountRegisterRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetVersionResponse.verify = function verify(message) { + MountRegisterRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + if (message.topo_type != null && message.hasOwnProperty("topo_type")) + if (!$util.isString(message.topo_type)) + return "topo_type: string expected"; + if (message.topo_server != null && message.hasOwnProperty("topo_server")) + if (!$util.isString(message.topo_server)) + return "topo_server: string expected"; + if (message.topo_root != null && message.hasOwnProperty("topo_root")) + if (!$util.isString(message.topo_root)) + return "topo_root: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a GetVersionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MountRegisterRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetVersionResponse + * @memberof vtctldata.MountRegisterRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetVersionResponse} GetVersionResponse + * @returns {vtctldata.MountRegisterRequest} MountRegisterRequest */ - GetVersionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetVersionResponse) + MountRegisterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MountRegisterRequest) return object; - let message = new $root.vtctldata.GetVersionResponse(); - if (object.version != null) - message.version = String(object.version); + let message = new $root.vtctldata.MountRegisterRequest(); + if (object.topo_type != null) + message.topo_type = String(object.topo_type); + if (object.topo_server != null) + message.topo_server = String(object.topo_server); + if (object.topo_root != null) + message.topo_root = String(object.topo_root); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetVersionResponse message. Also converts values to other types if specified. + * Creates a plain object from a MountRegisterRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetVersionResponse + * @memberof vtctldata.MountRegisterRequest * @static - * @param {vtctldata.GetVersionResponse} message GetVersionResponse + * @param {vtctldata.MountRegisterRequest} message MountRegisterRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVersionResponse.toObject = function toObject(message, options) { + MountRegisterRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.version = ""; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (options.defaults) { + object.topo_type = ""; + object.topo_server = ""; + object.topo_root = ""; + object.name = ""; + } + if (message.topo_type != null && message.hasOwnProperty("topo_type")) + object.topo_type = message.topo_type; + if (message.topo_server != null && message.hasOwnProperty("topo_server")) + object.topo_server = message.topo_server; + if (message.topo_root != null && message.hasOwnProperty("topo_root")) + object.topo_root = message.topo_root; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this GetVersionResponse to JSON. + * Converts this MountRegisterRequest to JSON. * @function toJSON - * @memberof vtctldata.GetVersionResponse + * @memberof vtctldata.MountRegisterRequest * @instance * @returns {Object.} JSON object */ - GetVersionResponse.prototype.toJSON = function toJSON() { + MountRegisterRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetVersionResponse + * Gets the default type url for MountRegisterRequest * @function getTypeUrl - * @memberof vtctldata.GetVersionResponse + * @memberof vtctldata.MountRegisterRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetVersionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MountRegisterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetVersionResponse"; + return typeUrlPrefix + "/vtctldata.MountRegisterRequest"; }; - return GetVersionResponse; + return MountRegisterRequest; })(); - vtctldata.GetVSchemaResponse = (function() { + vtctldata.MountRegisterResponse = (function() { /** - * Properties of a GetVSchemaResponse. + * Properties of a MountRegisterResponse. * @memberof vtctldata - * @interface IGetVSchemaResponse - * @property {vschema.IKeyspace|null} [v_schema] GetVSchemaResponse v_schema + * @interface IMountRegisterResponse */ /** - * Constructs a new GetVSchemaResponse. + * Constructs a new MountRegisterResponse. * @memberof vtctldata - * @classdesc Represents a GetVSchemaResponse. - * @implements IGetVSchemaResponse + * @classdesc Represents a MountRegisterResponse. + * @implements IMountRegisterResponse * @constructor - * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set + * @param {vtctldata.IMountRegisterResponse=} [properties] Properties to set */ - function GetVSchemaResponse(properties) { + function MountRegisterResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -161008,77 +169170,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetVSchemaResponse v_schema. - * @member {vschema.IKeyspace|null|undefined} v_schema - * @memberof vtctldata.GetVSchemaResponse - * @instance - */ - GetVSchemaResponse.prototype.v_schema = null; - - /** - * Creates a new GetVSchemaResponse instance using the specified properties. + * Creates a new MountRegisterResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.MountRegisterResponse * @static - * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse instance + * @param {vtctldata.IMountRegisterResponse=} [properties] Properties to set + * @returns {vtctldata.MountRegisterResponse} MountRegisterResponse instance */ - GetVSchemaResponse.create = function create(properties) { - return new GetVSchemaResponse(properties); + MountRegisterResponse.create = function create(properties) { + return new MountRegisterResponse(properties); }; /** - * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. + * Encodes the specified MountRegisterResponse message. Does not implicitly {@link vtctldata.MountRegisterResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.MountRegisterResponse * @static - * @param {vtctldata.IGetVSchemaResponse} message GetVSchemaResponse message or plain object to encode + * @param {vtctldata.IMountRegisterResponse} message MountRegisterResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVSchemaResponse.encode = function encode(message, writer) { + MountRegisterResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) - $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. + * Encodes the specified MountRegisterResponse message, length delimited. Does not implicitly {@link vtctldata.MountRegisterResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.MountRegisterResponse * @static - * @param {vtctldata.IGetVSchemaResponse} message GetVSchemaResponse message or plain object to encode + * @param {vtctldata.IMountRegisterResponse} message MountRegisterResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + MountRegisterResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer. + * Decodes a MountRegisterResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.MountRegisterResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse + * @returns {vtctldata.MountRegisterResponse} MountRegisterResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVSchemaResponse.decode = function decode(reader, length) { + MountRegisterResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVSchemaResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountRegisterResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -161088,133 +169236,109 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a MountRegisterResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.MountRegisterResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse + * @returns {vtctldata.MountRegisterResponse} MountRegisterResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + MountRegisterResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetVSchemaResponse message. + * Verifies a MountRegisterResponse message. * @function verify - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.MountRegisterResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetVSchemaResponse.verify = function verify(message) { + MountRegisterResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) { - let error = $root.vschema.Keyspace.verify(message.v_schema); - if (error) - return "v_schema." + error; - } return null; }; /** - * Creates a GetVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MountRegisterResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.MountRegisterResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse + * @returns {vtctldata.MountRegisterResponse} MountRegisterResponse */ - GetVSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetVSchemaResponse) + MountRegisterResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MountRegisterResponse) return object; - let message = new $root.vtctldata.GetVSchemaResponse(); - if (object.v_schema != null) { - if (typeof object.v_schema !== "object") - throw TypeError(".vtctldata.GetVSchemaResponse.v_schema: object expected"); - message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); - } - return message; + return new $root.vtctldata.MountRegisterResponse(); }; /** - * Creates a plain object from a GetVSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a MountRegisterResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.MountRegisterResponse * @static - * @param {vtctldata.GetVSchemaResponse} message GetVSchemaResponse + * @param {vtctldata.MountRegisterResponse} message MountRegisterResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVSchemaResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.v_schema = null; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) - object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); - return object; + MountRegisterResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetVSchemaResponse to JSON. + * Converts this MountRegisterResponse to JSON. * @function toJSON - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.MountRegisterResponse * @instance * @returns {Object.} JSON object */ - GetVSchemaResponse.prototype.toJSON = function toJSON() { + MountRegisterResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetVSchemaResponse + * Gets the default type url for MountRegisterResponse * @function getTypeUrl - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.MountRegisterResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetVSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MountRegisterResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetVSchemaResponse"; + return typeUrlPrefix + "/vtctldata.MountRegisterResponse"; }; - return GetVSchemaResponse; + return MountRegisterResponse; })(); - vtctldata.GetWorkflowsRequest = (function() { + vtctldata.MountUnregisterRequest = (function() { /** - * Properties of a GetWorkflowsRequest. + * Properties of a MountUnregisterRequest. * @memberof vtctldata - * @interface IGetWorkflowsRequest - * @property {string|null} [keyspace] GetWorkflowsRequest keyspace - * @property {boolean|null} [active_only] GetWorkflowsRequest active_only - * @property {boolean|null} [name_only] GetWorkflowsRequest name_only - * @property {string|null} [workflow] GetWorkflowsRequest workflow - * @property {boolean|null} [include_logs] GetWorkflowsRequest include_logs - * @property {Array.|null} [shards] GetWorkflowsRequest shards + * @interface IMountUnregisterRequest + * @property {string|null} [name] MountUnregisterRequest name */ /** - * Constructs a new GetWorkflowsRequest. + * Constructs a new MountUnregisterRequest. * @memberof vtctldata - * @classdesc Represents a GetWorkflowsRequest. - * @implements IGetWorkflowsRequest + * @classdesc Represents a MountUnregisterRequest. + * @implements IMountUnregisterRequest * @constructor - * @param {vtctldata.IGetWorkflowsRequest=} [properties] Properties to set + * @param {vtctldata.IMountUnregisterRequest=} [properties] Properties to set */ - function GetWorkflowsRequest(properties) { - this.shards = []; + function MountUnregisterRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -161222,148 +169346,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetWorkflowsRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetWorkflowsRequest - * @instance - */ - GetWorkflowsRequest.prototype.keyspace = ""; - - /** - * GetWorkflowsRequest active_only. - * @member {boolean} active_only - * @memberof vtctldata.GetWorkflowsRequest - * @instance - */ - GetWorkflowsRequest.prototype.active_only = false; - - /** - * GetWorkflowsRequest name_only. - * @member {boolean} name_only - * @memberof vtctldata.GetWorkflowsRequest - * @instance - */ - GetWorkflowsRequest.prototype.name_only = false; - - /** - * GetWorkflowsRequest workflow. - * @member {string} workflow - * @memberof vtctldata.GetWorkflowsRequest - * @instance - */ - GetWorkflowsRequest.prototype.workflow = ""; - - /** - * GetWorkflowsRequest include_logs. - * @member {boolean} include_logs - * @memberof vtctldata.GetWorkflowsRequest - * @instance - */ - GetWorkflowsRequest.prototype.include_logs = false; - - /** - * GetWorkflowsRequest shards. - * @member {Array.} shards - * @memberof vtctldata.GetWorkflowsRequest + * MountUnregisterRequest name. + * @member {string} name + * @memberof vtctldata.MountUnregisterRequest * @instance */ - GetWorkflowsRequest.prototype.shards = $util.emptyArray; + MountUnregisterRequest.prototype.name = ""; /** - * Creates a new GetWorkflowsRequest instance using the specified properties. + * Creates a new MountUnregisterRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.MountUnregisterRequest * @static - * @param {vtctldata.IGetWorkflowsRequest=} [properties] Properties to set - * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest instance + * @param {vtctldata.IMountUnregisterRequest=} [properties] Properties to set + * @returns {vtctldata.MountUnregisterRequest} MountUnregisterRequest instance */ - GetWorkflowsRequest.create = function create(properties) { - return new GetWorkflowsRequest(properties); + MountUnregisterRequest.create = function create(properties) { + return new MountUnregisterRequest(properties); }; /** - * Encodes the specified GetWorkflowsRequest message. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. + * Encodes the specified MountUnregisterRequest message. Does not implicitly {@link vtctldata.MountUnregisterRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.MountUnregisterRequest * @static - * @param {vtctldata.IGetWorkflowsRequest} message GetWorkflowsRequest message or plain object to encode + * @param {vtctldata.IMountUnregisterRequest} message MountUnregisterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetWorkflowsRequest.encode = function encode(message, writer) { + MountUnregisterRequest.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.active_only != null && Object.hasOwnProperty.call(message, "active_only")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.active_only); - if (message.name_only != null && Object.hasOwnProperty.call(message, "name_only")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.name_only); - if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.workflow); - if (message.include_logs != null && Object.hasOwnProperty.call(message, "include_logs")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.include_logs); - if (message.shards != null && message.shards.length) - for (let i = 0; i < message.shards.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.shards[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; /** - * Encodes the specified GetWorkflowsRequest message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. + * Encodes the specified MountUnregisterRequest message, length delimited. Does not implicitly {@link vtctldata.MountUnregisterRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.MountUnregisterRequest * @static - * @param {vtctldata.IGetWorkflowsRequest} message GetWorkflowsRequest message or plain object to encode + * @param {vtctldata.IMountUnregisterRequest} message MountUnregisterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetWorkflowsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MountUnregisterRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetWorkflowsRequest message from the specified reader or buffer. + * Decodes a MountUnregisterRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.MountUnregisterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest + * @returns {vtctldata.MountUnregisterRequest} MountUnregisterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetWorkflowsRequest.decode = function decode(reader, length) { + MountUnregisterRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetWorkflowsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountUnregisterRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.active_only = reader.bool(); - break; - } - case 3: { - message.name_only = reader.bool(); - break; - } case 4: { - message.workflow = reader.string(); - break; - } - case 5: { - message.include_logs = reader.bool(); - break; - } - case 6: { - if (!(message.shards && message.shards.length)) - message.shards = []; - message.shards.push(reader.string()); + message.name = reader.string(); break; } default: @@ -161375,177 +169426,121 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetWorkflowsRequest message from the specified reader or buffer, length delimited. + * Decodes a MountUnregisterRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.MountUnregisterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest + * @returns {vtctldata.MountUnregisterRequest} MountUnregisterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetWorkflowsRequest.decodeDelimited = function decodeDelimited(reader) { + MountUnregisterRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetWorkflowsRequest message. + * Verifies a MountUnregisterRequest message. * @function verify - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.MountUnregisterRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetWorkflowsRequest.verify = function verify(message) { + MountUnregisterRequest.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.active_only != null && message.hasOwnProperty("active_only")) - if (typeof message.active_only !== "boolean") - return "active_only: boolean expected"; - if (message.name_only != null && message.hasOwnProperty("name_only")) - if (typeof message.name_only !== "boolean") - return "name_only: boolean expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.include_logs != null && message.hasOwnProperty("include_logs")) - if (typeof message.include_logs !== "boolean") - return "include_logs: boolean expected"; - if (message.shards != null && message.hasOwnProperty("shards")) { - if (!Array.isArray(message.shards)) - return "shards: array expected"; - for (let i = 0; i < message.shards.length; ++i) - if (!$util.isString(message.shards[i])) - return "shards: string[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a GetWorkflowsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MountUnregisterRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.MountUnregisterRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest + * @returns {vtctldata.MountUnregisterRequest} MountUnregisterRequest */ - GetWorkflowsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetWorkflowsRequest) + MountUnregisterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MountUnregisterRequest) return object; - let message = new $root.vtctldata.GetWorkflowsRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.active_only != null) - message.active_only = Boolean(object.active_only); - if (object.name_only != null) - message.name_only = Boolean(object.name_only); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.include_logs != null) - message.include_logs = Boolean(object.include_logs); - if (object.shards) { - if (!Array.isArray(object.shards)) - throw TypeError(".vtctldata.GetWorkflowsRequest.shards: array expected"); - message.shards = []; - for (let i = 0; i < object.shards.length; ++i) - message.shards[i] = String(object.shards[i]); - } + let message = new $root.vtctldata.MountUnregisterRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetWorkflowsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MountUnregisterRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.MountUnregisterRequest * @static - * @param {vtctldata.GetWorkflowsRequest} message GetWorkflowsRequest + * @param {vtctldata.MountUnregisterRequest} message MountUnregisterRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetWorkflowsRequest.toObject = function toObject(message, options) { + MountUnregisterRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.shards = []; - if (options.defaults) { - object.keyspace = ""; - object.active_only = false; - object.name_only = false; - object.workflow = ""; - object.include_logs = false; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.active_only != null && message.hasOwnProperty("active_only")) - object.active_only = message.active_only; - if (message.name_only != null && message.hasOwnProperty("name_only")) - object.name_only = message.name_only; - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.include_logs != null && message.hasOwnProperty("include_logs")) - object.include_logs = message.include_logs; - if (message.shards && message.shards.length) { - object.shards = []; - for (let j = 0; j < message.shards.length; ++j) - object.shards[j] = message.shards[j]; - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this GetWorkflowsRequest to JSON. + * Converts this MountUnregisterRequest to JSON. * @function toJSON - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.MountUnregisterRequest * @instance * @returns {Object.} JSON object */ - GetWorkflowsRequest.prototype.toJSON = function toJSON() { + MountUnregisterRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetWorkflowsRequest + * Gets the default type url for MountUnregisterRequest * @function getTypeUrl - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.MountUnregisterRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetWorkflowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MountUnregisterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetWorkflowsRequest"; + return typeUrlPrefix + "/vtctldata.MountUnregisterRequest"; }; - return GetWorkflowsRequest; + return MountUnregisterRequest; })(); - vtctldata.GetWorkflowsResponse = (function() { + vtctldata.MountUnregisterResponse = (function() { /** - * Properties of a GetWorkflowsResponse. + * Properties of a MountUnregisterResponse. * @memberof vtctldata - * @interface IGetWorkflowsResponse - * @property {Array.|null} [workflows] GetWorkflowsResponse workflows + * @interface IMountUnregisterResponse */ /** - * Constructs a new GetWorkflowsResponse. + * Constructs a new MountUnregisterResponse. * @memberof vtctldata - * @classdesc Represents a GetWorkflowsResponse. - * @implements IGetWorkflowsResponse + * @classdesc Represents a MountUnregisterResponse. + * @implements IMountUnregisterResponse * @constructor - * @param {vtctldata.IGetWorkflowsResponse=} [properties] Properties to set + * @param {vtctldata.IMountUnregisterResponse=} [properties] Properties to set */ - function GetWorkflowsResponse(properties) { - this.workflows = []; + function MountUnregisterResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -161553,80 +169548,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * GetWorkflowsResponse workflows. - * @member {Array.} workflows - * @memberof vtctldata.GetWorkflowsResponse - * @instance - */ - GetWorkflowsResponse.prototype.workflows = $util.emptyArray; - - /** - * Creates a new GetWorkflowsResponse instance using the specified properties. + * Creates a new MountUnregisterResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.MountUnregisterResponse * @static - * @param {vtctldata.IGetWorkflowsResponse=} [properties] Properties to set - * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse instance + * @param {vtctldata.IMountUnregisterResponse=} [properties] Properties to set + * @returns {vtctldata.MountUnregisterResponse} MountUnregisterResponse instance */ - GetWorkflowsResponse.create = function create(properties) { - return new GetWorkflowsResponse(properties); + MountUnregisterResponse.create = function create(properties) { + return new MountUnregisterResponse(properties); }; /** - * Encodes the specified GetWorkflowsResponse message. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. + * Encodes the specified MountUnregisterResponse message. Does not implicitly {@link vtctldata.MountUnregisterResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.MountUnregisterResponse * @static - * @param {vtctldata.IGetWorkflowsResponse} message GetWorkflowsResponse message or plain object to encode + * @param {vtctldata.IMountUnregisterResponse} message MountUnregisterResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetWorkflowsResponse.encode = function encode(message, writer) { + MountUnregisterResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workflows != null && message.workflows.length) - for (let i = 0; i < message.workflows.length; ++i) - $root.vtctldata.Workflow.encode(message.workflows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetWorkflowsResponse message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. + * Encodes the specified MountUnregisterResponse message, length delimited. Does not implicitly {@link vtctldata.MountUnregisterResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.MountUnregisterResponse * @static - * @param {vtctldata.IGetWorkflowsResponse} message GetWorkflowsResponse message or plain object to encode + * @param {vtctldata.IMountUnregisterResponse} message MountUnregisterResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetWorkflowsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MountUnregisterResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetWorkflowsResponse message from the specified reader or buffer. + * Decodes a MountUnregisterResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.MountUnregisterResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse + * @returns {vtctldata.MountUnregisterResponse} MountUnregisterResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetWorkflowsResponse.decode = function decode(reader, length) { + MountUnregisterResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetWorkflowsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountUnregisterResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.workflows && message.workflows.length)) - message.workflows = []; - message.workflows.push($root.vtctldata.Workflow.decode(reader, reader.uint32())); - break; - } default: reader.skipType(tag & 7); break; @@ -161636,143 +169614,109 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a GetWorkflowsResponse message from the specified reader or buffer, length delimited. + * Decodes a MountUnregisterResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.MountUnregisterResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse + * @returns {vtctldata.MountUnregisterResponse} MountUnregisterResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetWorkflowsResponse.decodeDelimited = function decodeDelimited(reader) { + MountUnregisterResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetWorkflowsResponse message. + * Verifies a MountUnregisterResponse message. * @function verify - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.MountUnregisterResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetWorkflowsResponse.verify = function verify(message) { + MountUnregisterResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workflows != null && message.hasOwnProperty("workflows")) { - if (!Array.isArray(message.workflows)) - return "workflows: array expected"; - for (let i = 0; i < message.workflows.length; ++i) { - let error = $root.vtctldata.Workflow.verify(message.workflows[i]); - if (error) - return "workflows." + error; - } - } return null; }; /** - * Creates a GetWorkflowsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MountUnregisterResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.MountUnregisterResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse + * @returns {vtctldata.MountUnregisterResponse} MountUnregisterResponse */ - GetWorkflowsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetWorkflowsResponse) + MountUnregisterResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MountUnregisterResponse) return object; - let message = new $root.vtctldata.GetWorkflowsResponse(); - if (object.workflows) { - if (!Array.isArray(object.workflows)) - throw TypeError(".vtctldata.GetWorkflowsResponse.workflows: array expected"); - message.workflows = []; - for (let i = 0; i < object.workflows.length; ++i) { - if (typeof object.workflows[i] !== "object") - throw TypeError(".vtctldata.GetWorkflowsResponse.workflows: object expected"); - message.workflows[i] = $root.vtctldata.Workflow.fromObject(object.workflows[i]); - } - } - return message; + return new $root.vtctldata.MountUnregisterResponse(); }; /** - * Creates a plain object from a GetWorkflowsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MountUnregisterResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.MountUnregisterResponse * @static - * @param {vtctldata.GetWorkflowsResponse} message GetWorkflowsResponse + * @param {vtctldata.MountUnregisterResponse} message MountUnregisterResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetWorkflowsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.workflows = []; - if (message.workflows && message.workflows.length) { - object.workflows = []; - for (let j = 0; j < message.workflows.length; ++j) - object.workflows[j] = $root.vtctldata.Workflow.toObject(message.workflows[j], options); - } - return object; + MountUnregisterResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetWorkflowsResponse to JSON. + * Converts this MountUnregisterResponse to JSON. * @function toJSON - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.MountUnregisterResponse * @instance * @returns {Object.} JSON object */ - GetWorkflowsResponse.prototype.toJSON = function toJSON() { + MountUnregisterResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetWorkflowsResponse + * Gets the default type url for MountUnregisterResponse * @function getTypeUrl - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.MountUnregisterResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetWorkflowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MountUnregisterResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.GetWorkflowsResponse"; + return typeUrlPrefix + "/vtctldata.MountUnregisterResponse"; }; - return GetWorkflowsResponse; + return MountUnregisterResponse; })(); - vtctldata.InitShardPrimaryRequest = (function() { + vtctldata.MountShowRequest = (function() { /** - * Properties of an InitShardPrimaryRequest. + * Properties of a MountShowRequest. * @memberof vtctldata - * @interface IInitShardPrimaryRequest - * @property {string|null} [keyspace] InitShardPrimaryRequest keyspace - * @property {string|null} [shard] InitShardPrimaryRequest shard - * @property {topodata.ITabletAlias|null} [primary_elect_tablet_alias] InitShardPrimaryRequest primary_elect_tablet_alias - * @property {boolean|null} [force] InitShardPrimaryRequest force - * @property {vttime.IDuration|null} [wait_replicas_timeout] InitShardPrimaryRequest wait_replicas_timeout + * @interface IMountShowRequest + * @property {string|null} [name] MountShowRequest name */ /** - * Constructs a new InitShardPrimaryRequest. + * Constructs a new MountShowRequest. * @memberof vtctldata - * @classdesc Represents an InitShardPrimaryRequest. - * @implements IInitShardPrimaryRequest + * @classdesc Represents a MountShowRequest. + * @implements IMountShowRequest * @constructor - * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set + * @param {vtctldata.IMountShowRequest=} [properties] Properties to set */ - function InitShardPrimaryRequest(properties) { + function MountShowRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -161780,131 +169724,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * InitShardPrimaryRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.InitShardPrimaryRequest - * @instance - */ - InitShardPrimaryRequest.prototype.keyspace = ""; - - /** - * InitShardPrimaryRequest shard. - * @member {string} shard - * @memberof vtctldata.InitShardPrimaryRequest - * @instance - */ - InitShardPrimaryRequest.prototype.shard = ""; - - /** - * InitShardPrimaryRequest primary_elect_tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} primary_elect_tablet_alias - * @memberof vtctldata.InitShardPrimaryRequest - * @instance - */ - InitShardPrimaryRequest.prototype.primary_elect_tablet_alias = null; - - /** - * InitShardPrimaryRequest force. - * @member {boolean} force - * @memberof vtctldata.InitShardPrimaryRequest - * @instance - */ - InitShardPrimaryRequest.prototype.force = false; - - /** - * InitShardPrimaryRequest wait_replicas_timeout. - * @member {vttime.IDuration|null|undefined} wait_replicas_timeout - * @memberof vtctldata.InitShardPrimaryRequest + * MountShowRequest name. + * @member {string} name + * @memberof vtctldata.MountShowRequest * @instance */ - InitShardPrimaryRequest.prototype.wait_replicas_timeout = null; + MountShowRequest.prototype.name = ""; /** - * Creates a new InitShardPrimaryRequest instance using the specified properties. + * Creates a new MountShowRequest instance using the specified properties. * @function create - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.MountShowRequest * @static - * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set - * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest instance + * @param {vtctldata.IMountShowRequest=} [properties] Properties to set + * @returns {vtctldata.MountShowRequest} MountShowRequest instance */ - InitShardPrimaryRequest.create = function create(properties) { - return new InitShardPrimaryRequest(properties); + MountShowRequest.create = function create(properties) { + return new MountShowRequest(properties); }; /** - * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. + * Encodes the specified MountShowRequest message. Does not implicitly {@link vtctldata.MountShowRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.MountShowRequest * @static - * @param {vtctldata.IInitShardPrimaryRequest} message InitShardPrimaryRequest message or plain object to encode + * @param {vtctldata.IMountShowRequest} message MountShowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitShardPrimaryRequest.encode = function encode(message, writer) { + MountShowRequest.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.primary_elect_tablet_alias != null && Object.hasOwnProperty.call(message, "primary_elect_tablet_alias")) - $root.topodata.TabletAlias.encode(message.primary_elect_tablet_alias, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.force); - if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) - $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; /** - * Encodes the specified InitShardPrimaryRequest message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. + * Encodes the specified MountShowRequest message, length delimited. Does not implicitly {@link vtctldata.MountShowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.MountShowRequest * @static - * @param {vtctldata.IInitShardPrimaryRequest} message InitShardPrimaryRequest message or plain object to encode + * @param {vtctldata.IMountShowRequest} message MountShowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitShardPrimaryRequest.encodeDelimited = function encodeDelimited(message, writer) { + MountShowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. + * Decodes a MountShowRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.MountShowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest + * @returns {vtctldata.MountShowRequest} MountShowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitShardPrimaryRequest.decode = function decode(reader, length) { + MountShowRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.InitShardPrimaryRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountShowRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.shard = reader.string(); - break; - } - case 3: { - message.primary_elect_tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } case 4: { - message.force = reader.bool(); - break; - } - case 5: { - message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -161916,166 +169804,125 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer, length delimited. + * Decodes a MountShowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.MountShowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest + * @returns {vtctldata.MountShowRequest} MountShowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitShardPrimaryRequest.decodeDelimited = function decodeDelimited(reader) { + MountShowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InitShardPrimaryRequest message. + * Verifies a MountShowRequest message. * @function verify - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.MountShowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InitShardPrimaryRequest.verify = function verify(message) { + MountShowRequest.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.primary_elect_tablet_alias != null && message.hasOwnProperty("primary_elect_tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.primary_elect_tablet_alias); - if (error) - return "primary_elect_tablet_alias." + error; - } - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { - let error = $root.vttime.Duration.verify(message.wait_replicas_timeout); - if (error) - return "wait_replicas_timeout." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an InitShardPrimaryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MountShowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.MountShowRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest + * @returns {vtctldata.MountShowRequest} MountShowRequest */ - InitShardPrimaryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.InitShardPrimaryRequest) + MountShowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MountShowRequest) return object; - let message = new $root.vtctldata.InitShardPrimaryRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.primary_elect_tablet_alias != null) { - if (typeof object.primary_elect_tablet_alias !== "object") - throw TypeError(".vtctldata.InitShardPrimaryRequest.primary_elect_tablet_alias: object expected"); - message.primary_elect_tablet_alias = $root.topodata.TabletAlias.fromObject(object.primary_elect_tablet_alias); - } - if (object.force != null) - message.force = Boolean(object.force); - if (object.wait_replicas_timeout != null) { - if (typeof object.wait_replicas_timeout !== "object") - throw TypeError(".vtctldata.InitShardPrimaryRequest.wait_replicas_timeout: object expected"); - message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); - } + let message = new $root.vtctldata.MountShowRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an InitShardPrimaryRequest message. Also converts values to other types if specified. + * Creates a plain object from a MountShowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.MountShowRequest * @static - * @param {vtctldata.InitShardPrimaryRequest} message InitShardPrimaryRequest + * @param {vtctldata.MountShowRequest} message MountShowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InitShardPrimaryRequest.toObject = function toObject(message, options) { + MountShowRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.primary_elect_tablet_alias = null; - object.force = false; - object.wait_replicas_timeout = null; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.primary_elect_tablet_alias != null && message.hasOwnProperty("primary_elect_tablet_alias")) - object.primary_elect_tablet_alias = $root.topodata.TabletAlias.toObject(message.primary_elect_tablet_alias, options); - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - 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 (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this InitShardPrimaryRequest to JSON. + * Converts this MountShowRequest to JSON. * @function toJSON - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.MountShowRequest * @instance * @returns {Object.} JSON object */ - InitShardPrimaryRequest.prototype.toJSON = function toJSON() { + MountShowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InitShardPrimaryRequest + * Gets the default type url for MountShowRequest * @function getTypeUrl - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.MountShowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InitShardPrimaryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MountShowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.InitShardPrimaryRequest"; + return typeUrlPrefix + "/vtctldata.MountShowRequest"; }; - return InitShardPrimaryRequest; + return MountShowRequest; })(); - vtctldata.InitShardPrimaryResponse = (function() { + vtctldata.MountShowResponse = (function() { /** - * Properties of an InitShardPrimaryResponse. + * Properties of a MountShowResponse. * @memberof vtctldata - * @interface IInitShardPrimaryResponse - * @property {Array.|null} [events] InitShardPrimaryResponse events + * @interface IMountShowResponse + * @property {string|null} [topo_type] MountShowResponse topo_type + * @property {string|null} [topo_server] MountShowResponse topo_server + * @property {string|null} [topo_root] MountShowResponse topo_root + * @property {string|null} [name] MountShowResponse name */ /** - * Constructs a new InitShardPrimaryResponse. + * Constructs a new MountShowResponse. * @memberof vtctldata - * @classdesc Represents an InitShardPrimaryResponse. - * @implements IInitShardPrimaryResponse + * @classdesc Represents a MountShowResponse. + * @implements IMountShowResponse * @constructor - * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set + * @param {vtctldata.IMountShowResponse=} [properties] Properties to set */ - function InitShardPrimaryResponse(properties) { - this.events = []; + function MountShowResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -162083,78 +169930,117 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * InitShardPrimaryResponse events. - * @member {Array.} events - * @memberof vtctldata.InitShardPrimaryResponse + * MountShowResponse topo_type. + * @member {string} topo_type + * @memberof vtctldata.MountShowResponse * @instance */ - InitShardPrimaryResponse.prototype.events = $util.emptyArray; + MountShowResponse.prototype.topo_type = ""; /** - * Creates a new InitShardPrimaryResponse instance using the specified properties. + * MountShowResponse topo_server. + * @member {string} topo_server + * @memberof vtctldata.MountShowResponse + * @instance + */ + MountShowResponse.prototype.topo_server = ""; + + /** + * MountShowResponse topo_root. + * @member {string} topo_root + * @memberof vtctldata.MountShowResponse + * @instance + */ + MountShowResponse.prototype.topo_root = ""; + + /** + * MountShowResponse name. + * @member {string} name + * @memberof vtctldata.MountShowResponse + * @instance + */ + MountShowResponse.prototype.name = ""; + + /** + * Creates a new MountShowResponse instance using the specified properties. * @function create - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.MountShowResponse * @static - * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set - * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse instance + * @param {vtctldata.IMountShowResponse=} [properties] Properties to set + * @returns {vtctldata.MountShowResponse} MountShowResponse instance */ - InitShardPrimaryResponse.create = function create(properties) { - return new InitShardPrimaryResponse(properties); + MountShowResponse.create = function create(properties) { + return new MountShowResponse(properties); }; /** - * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. + * Encodes the specified MountShowResponse message. Does not implicitly {@link vtctldata.MountShowResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.MountShowResponse * @static - * @param {vtctldata.IInitShardPrimaryResponse} message InitShardPrimaryResponse message or plain object to encode + * @param {vtctldata.IMountShowResponse} message MountShowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitShardPrimaryResponse.encode = function encode(message, writer) { + MountShowResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.events != null && message.events.length) - for (let i = 0; i < message.events.length; ++i) - $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.topo_type != null && Object.hasOwnProperty.call(message, "topo_type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topo_type); + if (message.topo_server != null && Object.hasOwnProperty.call(message, "topo_server")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.topo_server); + if (message.topo_root != null && Object.hasOwnProperty.call(message, "topo_root")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.topo_root); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; /** - * Encodes the specified InitShardPrimaryResponse message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. + * Encodes the specified MountShowResponse message, length delimited. Does not implicitly {@link vtctldata.MountShowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.MountShowResponse * @static - * @param {vtctldata.IInitShardPrimaryResponse} message InitShardPrimaryResponse message or plain object to encode + * @param {vtctldata.IMountShowResponse} message MountShowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitShardPrimaryResponse.encodeDelimited = function encodeDelimited(message, writer) { + MountShowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. + * Decodes a MountShowResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.MountShowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse + * @returns {vtctldata.MountShowResponse} MountShowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitShardPrimaryResponse.decode = function decode(reader, length) { + MountShowResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.InitShardPrimaryResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountShowResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.logutil.Event.decode(reader, reader.uint32())); + message.topo_type = reader.string(); + break; + } + case 2: { + message.topo_server = reader.string(); + break; + } + case 3: { + message.topo_root = reader.string(); + break; + } + case 4: { + message.name = reader.string(); break; } default: @@ -162166,141 +170052,146 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer, length delimited. + * Decodes a MountShowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.MountShowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse + * @returns {vtctldata.MountShowResponse} MountShowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitShardPrimaryResponse.decodeDelimited = function decodeDelimited(reader) { + MountShowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InitShardPrimaryResponse message. + * Verifies a MountShowResponse message. * @function verify - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.MountShowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InitShardPrimaryResponse.verify = function verify(message) { + MountShowResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (let i = 0; i < message.events.length; ++i) { - let error = $root.logutil.Event.verify(message.events[i]); - if (error) - return "events." + error; - } - } + if (message.topo_type != null && message.hasOwnProperty("topo_type")) + if (!$util.isString(message.topo_type)) + return "topo_type: string expected"; + if (message.topo_server != null && message.hasOwnProperty("topo_server")) + if (!$util.isString(message.topo_server)) + return "topo_server: string expected"; + if (message.topo_root != null && message.hasOwnProperty("topo_root")) + if (!$util.isString(message.topo_root)) + return "topo_root: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an InitShardPrimaryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MountShowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.MountShowResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse + * @returns {vtctldata.MountShowResponse} MountShowResponse */ - InitShardPrimaryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.InitShardPrimaryResponse) + MountShowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MountShowResponse) return object; - let message = new $root.vtctldata.InitShardPrimaryResponse(); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".vtctldata.InitShardPrimaryResponse.events: array expected"); - message.events = []; - for (let i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".vtctldata.InitShardPrimaryResponse.events: object expected"); - message.events[i] = $root.logutil.Event.fromObject(object.events[i]); - } - } + let message = new $root.vtctldata.MountShowResponse(); + if (object.topo_type != null) + message.topo_type = String(object.topo_type); + if (object.topo_server != null) + message.topo_server = String(object.topo_server); + if (object.topo_root != null) + message.topo_root = String(object.topo_root); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an InitShardPrimaryResponse message. Also converts values to other types if specified. + * Creates a plain object from a MountShowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.MountShowResponse * @static - * @param {vtctldata.InitShardPrimaryResponse} message InitShardPrimaryResponse + * @param {vtctldata.MountShowResponse} message MountShowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InitShardPrimaryResponse.toObject = function toObject(message, options) { + MountShowResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (message.events && message.events.length) { - object.events = []; - for (let j = 0; j < message.events.length; ++j) - object.events[j] = $root.logutil.Event.toObject(message.events[j], options); + if (options.defaults) { + object.topo_type = ""; + object.topo_server = ""; + object.topo_root = ""; + object.name = ""; } + if (message.topo_type != null && message.hasOwnProperty("topo_type")) + object.topo_type = message.topo_type; + if (message.topo_server != null && message.hasOwnProperty("topo_server")) + object.topo_server = message.topo_server; + if (message.topo_root != null && message.hasOwnProperty("topo_root")) + object.topo_root = message.topo_root; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this InitShardPrimaryResponse to JSON. + * Converts this MountShowResponse to JSON. * @function toJSON - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.MountShowResponse * @instance * @returns {Object.} JSON object */ - InitShardPrimaryResponse.prototype.toJSON = function toJSON() { + MountShowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InitShardPrimaryResponse + * Gets the default type url for MountShowResponse * @function getTypeUrl - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.MountShowResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InitShardPrimaryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MountShowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.InitShardPrimaryResponse"; + return typeUrlPrefix + "/vtctldata.MountShowResponse"; }; - return InitShardPrimaryResponse; + return MountShowResponse; })(); - vtctldata.LaunchSchemaMigrationRequest = (function() { + vtctldata.MountListRequest = (function() { /** - * Properties of a LaunchSchemaMigrationRequest. + * Properties of a MountListRequest. * @memberof vtctldata - * @interface ILaunchSchemaMigrationRequest - * @property {string|null} [keyspace] LaunchSchemaMigrationRequest keyspace - * @property {string|null} [uuid] LaunchSchemaMigrationRequest uuid - * @property {vtrpc.ICallerID|null} [caller_id] LaunchSchemaMigrationRequest caller_id + * @interface IMountListRequest */ /** - * Constructs a new LaunchSchemaMigrationRequest. + * Constructs a new MountListRequest. * @memberof vtctldata - * @classdesc Represents a LaunchSchemaMigrationRequest. - * @implements ILaunchSchemaMigrationRequest + * @classdesc Represents a MountListRequest. + * @implements IMountListRequest * @constructor - * @param {vtctldata.ILaunchSchemaMigrationRequest=} [properties] Properties to set + * @param {vtctldata.IMountListRequest=} [properties] Properties to set */ - function LaunchSchemaMigrationRequest(properties) { + function MountListRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -162308,105 +170199,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * LaunchSchemaMigrationRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.LaunchSchemaMigrationRequest - * @instance - */ - LaunchSchemaMigrationRequest.prototype.keyspace = ""; - - /** - * LaunchSchemaMigrationRequest uuid. - * @member {string} uuid - * @memberof vtctldata.LaunchSchemaMigrationRequest - * @instance - */ - LaunchSchemaMigrationRequest.prototype.uuid = ""; - - /** - * LaunchSchemaMigrationRequest caller_id. - * @member {vtrpc.ICallerID|null|undefined} caller_id - * @memberof vtctldata.LaunchSchemaMigrationRequest - * @instance - */ - LaunchSchemaMigrationRequest.prototype.caller_id = null; - - /** - * Creates a new LaunchSchemaMigrationRequest instance using the specified properties. + * Creates a new MountListRequest instance using the specified properties. * @function create - * @memberof vtctldata.LaunchSchemaMigrationRequest + * @memberof vtctldata.MountListRequest * @static - * @param {vtctldata.ILaunchSchemaMigrationRequest=} [properties] Properties to set - * @returns {vtctldata.LaunchSchemaMigrationRequest} LaunchSchemaMigrationRequest instance + * @param {vtctldata.IMountListRequest=} [properties] Properties to set + * @returns {vtctldata.MountListRequest} MountListRequest instance */ - LaunchSchemaMigrationRequest.create = function create(properties) { - return new LaunchSchemaMigrationRequest(properties); + MountListRequest.create = function create(properties) { + return new MountListRequest(properties); }; /** - * Encodes the specified LaunchSchemaMigrationRequest message. Does not implicitly {@link vtctldata.LaunchSchemaMigrationRequest.verify|verify} messages. + * Encodes the specified MountListRequest message. Does not implicitly {@link vtctldata.MountListRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.LaunchSchemaMigrationRequest + * @memberof vtctldata.MountListRequest * @static - * @param {vtctldata.ILaunchSchemaMigrationRequest} message LaunchSchemaMigrationRequest message or plain object to encode + * @param {vtctldata.IMountListRequest} message MountListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LaunchSchemaMigrationRequest.encode = function encode(message, writer) { + MountListRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); - if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) - $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified LaunchSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.LaunchSchemaMigrationRequest.verify|verify} messages. + * Encodes the specified MountListRequest message, length delimited. Does not implicitly {@link vtctldata.MountListRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.LaunchSchemaMigrationRequest + * @memberof vtctldata.MountListRequest * @static - * @param {vtctldata.ILaunchSchemaMigrationRequest} message LaunchSchemaMigrationRequest message or plain object to encode + * @param {vtctldata.IMountListRequest} message MountListRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LaunchSchemaMigrationRequest.encodeDelimited = function encodeDelimited(message, writer) { + MountListRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer. + * Decodes a MountListRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.LaunchSchemaMigrationRequest + * @memberof vtctldata.MountListRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.LaunchSchemaMigrationRequest} LaunchSchemaMigrationRequest + * @returns {vtctldata.MountListRequest} MountListRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LaunchSchemaMigrationRequest.decode = function decode(reader, length) { + MountListRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LaunchSchemaMigrationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountListRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.uuid = reader.string(); - break; - } - case 3: { - message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -162416,145 +170265,110 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * Decodes a MountListRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.LaunchSchemaMigrationRequest + * @memberof vtctldata.MountListRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.LaunchSchemaMigrationRequest} LaunchSchemaMigrationRequest + * @returns {vtctldata.MountListRequest} MountListRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LaunchSchemaMigrationRequest.decodeDelimited = function decodeDelimited(reader) { + MountListRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LaunchSchemaMigrationRequest message. + * Verifies a MountListRequest message. * @function verify - * @memberof vtctldata.LaunchSchemaMigrationRequest + * @memberof vtctldata.MountListRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LaunchSchemaMigrationRequest.verify = function verify(message) { + MountListRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.uuid != null && message.hasOwnProperty("uuid")) - if (!$util.isString(message.uuid)) - return "uuid: string expected"; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) { - let error = $root.vtrpc.CallerID.verify(message.caller_id); - if (error) - return "caller_id." + error; - } return null; }; /** - * Creates a LaunchSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MountListRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.LaunchSchemaMigrationRequest + * @memberof vtctldata.MountListRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.LaunchSchemaMigrationRequest} LaunchSchemaMigrationRequest + * @returns {vtctldata.MountListRequest} MountListRequest */ - LaunchSchemaMigrationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.LaunchSchemaMigrationRequest) + MountListRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MountListRequest) return object; - let message = new $root.vtctldata.LaunchSchemaMigrationRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.uuid != null) - message.uuid = String(object.uuid); - if (object.caller_id != null) { - if (typeof object.caller_id !== "object") - throw TypeError(".vtctldata.LaunchSchemaMigrationRequest.caller_id: object expected"); - message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); - } - return message; + return new $root.vtctldata.MountListRequest(); }; /** - * Creates a plain object from a LaunchSchemaMigrationRequest message. Also converts values to other types if specified. + * Creates a plain object from a MountListRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.LaunchSchemaMigrationRequest + * @memberof vtctldata.MountListRequest * @static - * @param {vtctldata.LaunchSchemaMigrationRequest} message LaunchSchemaMigrationRequest + * @param {vtctldata.MountListRequest} message MountListRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LaunchSchemaMigrationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.uuid = ""; - object.caller_id = null; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.uuid != null && message.hasOwnProperty("uuid")) - object.uuid = message.uuid; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) - object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); - return object; + MountListRequest.toObject = function toObject() { + return {}; }; /** - * Converts this LaunchSchemaMigrationRequest to JSON. + * Converts this MountListRequest to JSON. * @function toJSON - * @memberof vtctldata.LaunchSchemaMigrationRequest + * @memberof vtctldata.MountListRequest * @instance * @returns {Object.} JSON object */ - LaunchSchemaMigrationRequest.prototype.toJSON = function toJSON() { + MountListRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LaunchSchemaMigrationRequest + * Gets the default type url for MountListRequest * @function getTypeUrl - * @memberof vtctldata.LaunchSchemaMigrationRequest + * @memberof vtctldata.MountListRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LaunchSchemaMigrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MountListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.LaunchSchemaMigrationRequest"; + return typeUrlPrefix + "/vtctldata.MountListRequest"; }; - return LaunchSchemaMigrationRequest; + return MountListRequest; })(); - vtctldata.LaunchSchemaMigrationResponse = (function() { + vtctldata.MountListResponse = (function() { /** - * Properties of a LaunchSchemaMigrationResponse. + * Properties of a MountListResponse. * @memberof vtctldata - * @interface ILaunchSchemaMigrationResponse - * @property {Object.|null} [rows_affected_by_shard] LaunchSchemaMigrationResponse rows_affected_by_shard + * @interface IMountListResponse + * @property {Array.|null} [names] MountListResponse names */ /** - * Constructs a new LaunchSchemaMigrationResponse. + * Constructs a new MountListResponse. * @memberof vtctldata - * @classdesc Represents a LaunchSchemaMigrationResponse. - * @implements ILaunchSchemaMigrationResponse + * @classdesc Represents a MountListResponse. + * @implements IMountListResponse * @constructor - * @param {vtctldata.ILaunchSchemaMigrationResponse=} [properties] Properties to set + * @param {vtctldata.IMountListResponse=} [properties] Properties to set */ - function LaunchSchemaMigrationResponse(properties) { - this.rows_affected_by_shard = {}; + function MountListResponse(properties) { + this.names = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -162562,95 +170376,78 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * LaunchSchemaMigrationResponse rows_affected_by_shard. - * @member {Object.} rows_affected_by_shard - * @memberof vtctldata.LaunchSchemaMigrationResponse + * MountListResponse names. + * @member {Array.} names + * @memberof vtctldata.MountListResponse * @instance */ - LaunchSchemaMigrationResponse.prototype.rows_affected_by_shard = $util.emptyObject; + MountListResponse.prototype.names = $util.emptyArray; /** - * Creates a new LaunchSchemaMigrationResponse instance using the specified properties. + * Creates a new MountListResponse instance using the specified properties. * @function create - * @memberof vtctldata.LaunchSchemaMigrationResponse + * @memberof vtctldata.MountListResponse * @static - * @param {vtctldata.ILaunchSchemaMigrationResponse=} [properties] Properties to set - * @returns {vtctldata.LaunchSchemaMigrationResponse} LaunchSchemaMigrationResponse instance + * @param {vtctldata.IMountListResponse=} [properties] Properties to set + * @returns {vtctldata.MountListResponse} MountListResponse instance */ - LaunchSchemaMigrationResponse.create = function create(properties) { - return new LaunchSchemaMigrationResponse(properties); + MountListResponse.create = function create(properties) { + return new MountListResponse(properties); }; /** - * Encodes the specified LaunchSchemaMigrationResponse message. Does not implicitly {@link vtctldata.LaunchSchemaMigrationResponse.verify|verify} messages. + * Encodes the specified MountListResponse message. Does not implicitly {@link vtctldata.MountListResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.LaunchSchemaMigrationResponse + * @memberof vtctldata.MountListResponse * @static - * @param {vtctldata.ILaunchSchemaMigrationResponse} message LaunchSchemaMigrationResponse message or plain object to encode + * @param {vtctldata.IMountListResponse} message MountListResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LaunchSchemaMigrationResponse.encode = function encode(message, writer) { + MountListResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) - for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); + if (message.names != null && message.names.length) + for (let i = 0; i < message.names.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); return writer; }; /** - * Encodes the specified LaunchSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.LaunchSchemaMigrationResponse.verify|verify} messages. + * Encodes the specified MountListResponse message, length delimited. Does not implicitly {@link vtctldata.MountListResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.LaunchSchemaMigrationResponse + * @memberof vtctldata.MountListResponse * @static - * @param {vtctldata.ILaunchSchemaMigrationResponse} message LaunchSchemaMigrationResponse message or plain object to encode + * @param {vtctldata.IMountListResponse} message MountListResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LaunchSchemaMigrationResponse.encodeDelimited = function encodeDelimited(message, writer) { + MountListResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer. + * Decodes a MountListResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.LaunchSchemaMigrationResponse + * @memberof vtctldata.MountListResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.LaunchSchemaMigrationResponse} LaunchSchemaMigrationResponse + * @returns {vtctldata.MountListResponse} MountListResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LaunchSchemaMigrationResponse.decode = function decode(reader, length) { + MountListResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LaunchSchemaMigrationResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountListResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.rows_affected_by_shard === $util.emptyObject) - message.rows_affected_by_shard = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.uint64(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.rows_affected_by_shard[key] = value; + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; } default: @@ -162662,148 +170459,158 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * Decodes a MountListResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.LaunchSchemaMigrationResponse + * @memberof vtctldata.MountListResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.LaunchSchemaMigrationResponse} LaunchSchemaMigrationResponse + * @returns {vtctldata.MountListResponse} MountListResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LaunchSchemaMigrationResponse.decodeDelimited = function decodeDelimited(reader) { + MountListResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LaunchSchemaMigrationResponse message. + * Verifies a MountListResponse message. * @function verify - * @memberof vtctldata.LaunchSchemaMigrationResponse + * @memberof vtctldata.MountListResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LaunchSchemaMigrationResponse.verify = function verify(message) { + MountListResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { - if (!$util.isObject(message.rows_affected_by_shard)) - return "rows_affected_by_shard: object expected"; - let key = Object.keys(message.rows_affected_by_shard); - for (let i = 0; i < key.length; ++i) - if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) - return "rows_affected_by_shard: integer|Long{k:string} expected"; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (let i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; } return null; }; /** - * Creates a LaunchSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MountListResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.LaunchSchemaMigrationResponse + * @memberof vtctldata.MountListResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.LaunchSchemaMigrationResponse} LaunchSchemaMigrationResponse + * @returns {vtctldata.MountListResponse} MountListResponse */ - LaunchSchemaMigrationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.LaunchSchemaMigrationResponse) + MountListResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MountListResponse) return object; - let message = new $root.vtctldata.LaunchSchemaMigrationResponse(); - if (object.rows_affected_by_shard) { - if (typeof object.rows_affected_by_shard !== "object") - throw TypeError(".vtctldata.LaunchSchemaMigrationResponse.rows_affected_by_shard: object expected"); - message.rows_affected_by_shard = {}; - for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) - if ($util.Long) - (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; - else if (typeof object.rows_affected_by_shard[keys[i]] === "string") - message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); - else if (typeof object.rows_affected_by_shard[keys[i]] === "number") - message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; - else if (typeof object.rows_affected_by_shard[keys[i]] === "object") - message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); + let message = new $root.vtctldata.MountListResponse(); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".vtctldata.MountListResponse.names: array expected"); + message.names = []; + for (let i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); } return message; }; /** - * Creates a plain object from a LaunchSchemaMigrationResponse message. Also converts values to other types if specified. + * Creates a plain object from a MountListResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.LaunchSchemaMigrationResponse + * @memberof vtctldata.MountListResponse * @static - * @param {vtctldata.LaunchSchemaMigrationResponse} message LaunchSchemaMigrationResponse + * @param {vtctldata.MountListResponse} message MountListResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LaunchSchemaMigrationResponse.toObject = function toObject(message, options) { + MountListResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.rows_affected_by_shard = {}; - let keys2; - if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { - object.rows_affected_by_shard = {}; - for (let j = 0; j < keys2.length; ++j) - if (typeof message.rows_affected_by_shard[keys2[j]] === "number") - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; - else - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; + if (options.arrays || options.defaults) + object.names = []; + if (message.names && message.names.length) { + object.names = []; + for (let j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; } return object; }; /** - * Converts this LaunchSchemaMigrationResponse to JSON. + * Converts this MountListResponse to JSON. * @function toJSON - * @memberof vtctldata.LaunchSchemaMigrationResponse + * @memberof vtctldata.MountListResponse * @instance * @returns {Object.} JSON object */ - LaunchSchemaMigrationResponse.prototype.toJSON = function toJSON() { + MountListResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LaunchSchemaMigrationResponse + * Gets the default type url for MountListResponse * @function getTypeUrl - * @memberof vtctldata.LaunchSchemaMigrationResponse + * @memberof vtctldata.MountListResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LaunchSchemaMigrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MountListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.LaunchSchemaMigrationResponse"; + return typeUrlPrefix + "/vtctldata.MountListResponse"; }; - return LaunchSchemaMigrationResponse; + return MountListResponse; })(); - vtctldata.LookupVindexCompleteRequest = (function() { + vtctldata.MoveTablesCreateRequest = (function() { /** - * Properties of a LookupVindexCompleteRequest. + * Properties of a MoveTablesCreateRequest. * @memberof vtctldata - * @interface ILookupVindexCompleteRequest - * @property {string|null} [keyspace] LookupVindexCompleteRequest keyspace - * @property {string|null} [name] LookupVindexCompleteRequest name - * @property {string|null} [table_keyspace] LookupVindexCompleteRequest table_keyspace + * @interface IMoveTablesCreateRequest + * @property {string|null} [workflow] MoveTablesCreateRequest workflow + * @property {string|null} [source_keyspace] MoveTablesCreateRequest source_keyspace + * @property {string|null} [target_keyspace] MoveTablesCreateRequest target_keyspace + * @property {Array.|null} [cells] MoveTablesCreateRequest cells + * @property {Array.|null} [tablet_types] MoveTablesCreateRequest tablet_types + * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] MoveTablesCreateRequest tablet_selection_preference + * @property {Array.|null} [source_shards] MoveTablesCreateRequest source_shards + * @property {boolean|null} [all_tables] MoveTablesCreateRequest all_tables + * @property {Array.|null} [include_tables] MoveTablesCreateRequest include_tables + * @property {Array.|null} [exclude_tables] MoveTablesCreateRequest exclude_tables + * @property {string|null} [external_cluster_name] MoveTablesCreateRequest external_cluster_name + * @property {string|null} [source_time_zone] MoveTablesCreateRequest source_time_zone + * @property {string|null} [on_ddl] MoveTablesCreateRequest on_ddl + * @property {boolean|null} [stop_after_copy] MoveTablesCreateRequest stop_after_copy + * @property {boolean|null} [drop_foreign_keys] MoveTablesCreateRequest drop_foreign_keys + * @property {boolean|null} [defer_secondary_keys] MoveTablesCreateRequest defer_secondary_keys + * @property {boolean|null} [auto_start] MoveTablesCreateRequest auto_start + * @property {boolean|null} [no_routing_rules] MoveTablesCreateRequest no_routing_rules + * @property {boolean|null} [atomic_copy] MoveTablesCreateRequest atomic_copy + * @property {vtctldata.IWorkflowOptions|null} [workflow_options] MoveTablesCreateRequest workflow_options */ /** - * Constructs a new LookupVindexCompleteRequest. + * Constructs a new MoveTablesCreateRequest. * @memberof vtctldata - * @classdesc Represents a LookupVindexCompleteRequest. - * @implements ILookupVindexCompleteRequest + * @classdesc Represents a MoveTablesCreateRequest. + * @implements IMoveTablesCreateRequest * @constructor - * @param {vtctldata.ILookupVindexCompleteRequest=} [properties] Properties to set + * @param {vtctldata.IMoveTablesCreateRequest=} [properties] Properties to set */ - function LookupVindexCompleteRequest(properties) { + function MoveTablesCreateRequest(properties) { + this.cells = []; + this.tablet_types = []; + this.source_shards = []; + this.include_tables = []; + this.exclude_tables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -162811,103 +170618,364 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * LookupVindexCompleteRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.LookupVindexCompleteRequest + * MoveTablesCreateRequest workflow. + * @member {string} workflow + * @memberof vtctldata.MoveTablesCreateRequest * @instance */ - LookupVindexCompleteRequest.prototype.keyspace = ""; + MoveTablesCreateRequest.prototype.workflow = ""; /** - * LookupVindexCompleteRequest name. - * @member {string} name - * @memberof vtctldata.LookupVindexCompleteRequest + * MoveTablesCreateRequest source_keyspace. + * @member {string} source_keyspace + * @memberof vtctldata.MoveTablesCreateRequest * @instance */ - LookupVindexCompleteRequest.prototype.name = ""; + MoveTablesCreateRequest.prototype.source_keyspace = ""; /** - * LookupVindexCompleteRequest table_keyspace. - * @member {string} table_keyspace - * @memberof vtctldata.LookupVindexCompleteRequest + * MoveTablesCreateRequest target_keyspace. + * @member {string} target_keyspace + * @memberof vtctldata.MoveTablesCreateRequest * @instance */ - LookupVindexCompleteRequest.prototype.table_keyspace = ""; + MoveTablesCreateRequest.prototype.target_keyspace = ""; /** - * Creates a new LookupVindexCompleteRequest instance using the specified properties. + * MoveTablesCreateRequest cells. + * @member {Array.} cells + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.cells = $util.emptyArray; + + /** + * MoveTablesCreateRequest tablet_types. + * @member {Array.} tablet_types + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.tablet_types = $util.emptyArray; + + /** + * MoveTablesCreateRequest tablet_selection_preference. + * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.tablet_selection_preference = 0; + + /** + * MoveTablesCreateRequest source_shards. + * @member {Array.} source_shards + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.source_shards = $util.emptyArray; + + /** + * MoveTablesCreateRequest all_tables. + * @member {boolean} all_tables + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.all_tables = false; + + /** + * MoveTablesCreateRequest include_tables. + * @member {Array.} include_tables + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.include_tables = $util.emptyArray; + + /** + * MoveTablesCreateRequest exclude_tables. + * @member {Array.} exclude_tables + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.exclude_tables = $util.emptyArray; + + /** + * MoveTablesCreateRequest external_cluster_name. + * @member {string} external_cluster_name + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.external_cluster_name = ""; + + /** + * MoveTablesCreateRequest source_time_zone. + * @member {string} source_time_zone + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.source_time_zone = ""; + + /** + * MoveTablesCreateRequest on_ddl. + * @member {string} on_ddl + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.on_ddl = ""; + + /** + * MoveTablesCreateRequest stop_after_copy. + * @member {boolean} stop_after_copy + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.stop_after_copy = false; + + /** + * MoveTablesCreateRequest drop_foreign_keys. + * @member {boolean} drop_foreign_keys + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.drop_foreign_keys = false; + + /** + * MoveTablesCreateRequest defer_secondary_keys. + * @member {boolean} defer_secondary_keys + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.defer_secondary_keys = false; + + /** + * MoveTablesCreateRequest auto_start. + * @member {boolean} auto_start + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.auto_start = false; + + /** + * MoveTablesCreateRequest no_routing_rules. + * @member {boolean} no_routing_rules + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.no_routing_rules = false; + + /** + * MoveTablesCreateRequest atomic_copy. + * @member {boolean} atomic_copy + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.atomic_copy = false; + + /** + * MoveTablesCreateRequest workflow_options. + * @member {vtctldata.IWorkflowOptions|null|undefined} workflow_options + * @memberof vtctldata.MoveTablesCreateRequest + * @instance + */ + MoveTablesCreateRequest.prototype.workflow_options = null; + + /** + * Creates a new MoveTablesCreateRequest instance using the specified properties. * @function create - * @memberof vtctldata.LookupVindexCompleteRequest + * @memberof vtctldata.MoveTablesCreateRequest * @static - * @param {vtctldata.ILookupVindexCompleteRequest=} [properties] Properties to set - * @returns {vtctldata.LookupVindexCompleteRequest} LookupVindexCompleteRequest instance + * @param {vtctldata.IMoveTablesCreateRequest=} [properties] Properties to set + * @returns {vtctldata.MoveTablesCreateRequest} MoveTablesCreateRequest instance */ - LookupVindexCompleteRequest.create = function create(properties) { - return new LookupVindexCompleteRequest(properties); + MoveTablesCreateRequest.create = function create(properties) { + return new MoveTablesCreateRequest(properties); }; /** - * Encodes the specified LookupVindexCompleteRequest message. Does not implicitly {@link vtctldata.LookupVindexCompleteRequest.verify|verify} messages. + * Encodes the specified MoveTablesCreateRequest message. Does not implicitly {@link vtctldata.MoveTablesCreateRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.LookupVindexCompleteRequest + * @memberof vtctldata.MoveTablesCreateRequest * @static - * @param {vtctldata.ILookupVindexCompleteRequest} message LookupVindexCompleteRequest message or plain object to encode + * @param {vtctldata.IMoveTablesCreateRequest} message MoveTablesCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexCompleteRequest.encode = function encode(message, writer) { + MoveTablesCreateRequest.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.table_keyspace != null && Object.hasOwnProperty.call(message, "table_keyspace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.table_keyspace); + 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.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.cells[i]); + if (message.tablet_types != null && message.tablet_types.length) { + writer.uint32(/* id 5, wireType 2 =*/42).fork(); + for (let i = 0; i < message.tablet_types.length; ++i) + writer.int32(message.tablet_types[i]); + writer.ldelim(); + } + if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.tablet_selection_preference); + if (message.source_shards != null && message.source_shards.length) + for (let i = 0; i < message.source_shards.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.source_shards[i]); + if (message.all_tables != null && Object.hasOwnProperty.call(message, "all_tables")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.all_tables); + if (message.include_tables != null && message.include_tables.length) + for (let i = 0; i < message.include_tables.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.include_tables[i]); + if (message.exclude_tables != null && message.exclude_tables.length) + for (let i = 0; i < message.exclude_tables.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.exclude_tables[i]); + if (message.external_cluster_name != null && Object.hasOwnProperty.call(message, "external_cluster_name")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.external_cluster_name); + if (message.source_time_zone != null && Object.hasOwnProperty.call(message, "source_time_zone")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.source_time_zone); + if (message.on_ddl != null && Object.hasOwnProperty.call(message, "on_ddl")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.on_ddl); + if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.stop_after_copy); + if (message.drop_foreign_keys != null && Object.hasOwnProperty.call(message, "drop_foreign_keys")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.drop_foreign_keys); + if (message.defer_secondary_keys != null && Object.hasOwnProperty.call(message, "defer_secondary_keys")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.defer_secondary_keys); + if (message.auto_start != null && Object.hasOwnProperty.call(message, "auto_start")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.auto_start); + if (message.no_routing_rules != null && Object.hasOwnProperty.call(message, "no_routing_rules")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.no_routing_rules); + if (message.atomic_copy != null && Object.hasOwnProperty.call(message, "atomic_copy")) + writer.uint32(/* id 19, wireType 0 =*/152).bool(message.atomic_copy); + if (message.workflow_options != null && Object.hasOwnProperty.call(message, "workflow_options")) + $root.vtctldata.WorkflowOptions.encode(message.workflow_options, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); return writer; }; /** - * Encodes the specified LookupVindexCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCompleteRequest.verify|verify} messages. + * Encodes the specified MoveTablesCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.LookupVindexCompleteRequest + * @memberof vtctldata.MoveTablesCreateRequest * @static - * @param {vtctldata.ILookupVindexCompleteRequest} message LookupVindexCompleteRequest message or plain object to encode + * @param {vtctldata.IMoveTablesCreateRequest} message MoveTablesCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexCompleteRequest.encodeDelimited = function encodeDelimited(message, writer) { + MoveTablesCreateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupVindexCompleteRequest message from the specified reader or buffer. + * Decodes a MoveTablesCreateRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.LookupVindexCompleteRequest + * @memberof vtctldata.MoveTablesCreateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.LookupVindexCompleteRequest} LookupVindexCompleteRequest + * @returns {vtctldata.MoveTablesCreateRequest} MoveTablesCreateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexCompleteRequest.decode = function decode(reader, length) { + MoveTablesCreateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexCompleteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MoveTablesCreateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + message.workflow = reader.string(); + break; + } + case 2: { + message.source_keyspace = reader.string(); + break; + } + case 3: { + message.target_keyspace = reader.string(); + break; + } + case 4: { + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); + break; + } + case 5: { + if (!(message.tablet_types && message.tablet_types.length)) + message.tablet_types = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.tablet_types.push(reader.int32()); + } else + message.tablet_types.push(reader.int32()); + break; + } + case 6: { + message.tablet_selection_preference = reader.int32(); + break; + } + case 7: { + if (!(message.source_shards && message.source_shards.length)) + message.source_shards = []; + message.source_shards.push(reader.string()); + break; + } + case 8: { + message.all_tables = reader.bool(); + break; + } + case 9: { + if (!(message.include_tables && message.include_tables.length)) + message.include_tables = []; + message.include_tables.push(reader.string()); break; } - case 2: { - message.name = reader.string(); + case 10: { + if (!(message.exclude_tables && message.exclude_tables.length)) + message.exclude_tables = []; + message.exclude_tables.push(reader.string()); break; } - case 3: { - message.table_keyspace = reader.string(); + case 11: { + message.external_cluster_name = reader.string(); + break; + } + case 12: { + message.source_time_zone = reader.string(); + break; + } + case 13: { + message.on_ddl = reader.string(); + break; + } + case 14: { + message.stop_after_copy = reader.bool(); + break; + } + case 15: { + message.drop_foreign_keys = reader.bool(); + break; + } + case 16: { + message.defer_secondary_keys = reader.bool(); + break; + } + case 17: { + message.auto_start = reader.bool(); + break; + } + case 18: { + message.no_routing_rules = reader.bool(); + break; + } + case 19: { + message.atomic_copy = reader.bool(); + break; + } + case 20: { + message.workflow_options = $root.vtctldata.WorkflowOptions.decode(reader, reader.uint32()); break; } default: @@ -162919,138 +170987,432 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a LookupVindexCompleteRequest message from the specified reader or buffer, length delimited. + * Decodes a MoveTablesCreateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.LookupVindexCompleteRequest + * @memberof vtctldata.MoveTablesCreateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.LookupVindexCompleteRequest} LookupVindexCompleteRequest + * @returns {vtctldata.MoveTablesCreateRequest} MoveTablesCreateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexCompleteRequest.decodeDelimited = function decodeDelimited(reader) { + MoveTablesCreateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupVindexCompleteRequest message. + * Verifies a MoveTablesCreateRequest message. * @function verify - * @memberof vtctldata.LookupVindexCompleteRequest + * @memberof vtctldata.MoveTablesCreateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupVindexCompleteRequest.verify = function verify(message) { + MoveTablesCreateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace")) - if (!$util.isString(message.table_keyspace)) - return "table_keyspace: string 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.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { + if (!Array.isArray(message.tablet_types)) + return "tablet_types: array expected"; + for (let i = 0; i < message.tablet_types.length; ++i) + switch (message.tablet_types[i]) { + default: + return "tablet_types: enum value[] expected"; + case 0: + case 1: + case 1: + case 2: + case 3: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + switch (message.tablet_selection_preference) { + default: + return "tablet_selection_preference: enum value expected"; + case 0: + case 1: + case 3: + break; + } + if (message.source_shards != null && message.hasOwnProperty("source_shards")) { + if (!Array.isArray(message.source_shards)) + return "source_shards: array expected"; + for (let i = 0; i < message.source_shards.length; ++i) + if (!$util.isString(message.source_shards[i])) + return "source_shards: string[] expected"; + } + if (message.all_tables != null && message.hasOwnProperty("all_tables")) + if (typeof message.all_tables !== "boolean") + return "all_tables: boolean expected"; + if (message.include_tables != null && message.hasOwnProperty("include_tables")) { + if (!Array.isArray(message.include_tables)) + return "include_tables: array expected"; + for (let i = 0; i < message.include_tables.length; ++i) + if (!$util.isString(message.include_tables[i])) + return "include_tables: string[] expected"; + } + if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { + if (!Array.isArray(message.exclude_tables)) + return "exclude_tables: array expected"; + for (let i = 0; i < message.exclude_tables.length; ++i) + if (!$util.isString(message.exclude_tables[i])) + return "exclude_tables: string[] expected"; + } + if (message.external_cluster_name != null && message.hasOwnProperty("external_cluster_name")) + if (!$util.isString(message.external_cluster_name)) + return "external_cluster_name: string expected"; + 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.on_ddl != null && message.hasOwnProperty("on_ddl")) + if (!$util.isString(message.on_ddl)) + return "on_ddl: 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.drop_foreign_keys != null && message.hasOwnProperty("drop_foreign_keys")) + if (typeof message.drop_foreign_keys !== "boolean") + return "drop_foreign_keys: boolean expected"; + if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) + if (typeof message.defer_secondary_keys !== "boolean") + return "defer_secondary_keys: boolean expected"; + if (message.auto_start != null && message.hasOwnProperty("auto_start")) + if (typeof message.auto_start !== "boolean") + return "auto_start: boolean expected"; + if (message.no_routing_rules != null && message.hasOwnProperty("no_routing_rules")) + if (typeof message.no_routing_rules !== "boolean") + return "no_routing_rules: boolean expected"; + if (message.atomic_copy != null && message.hasOwnProperty("atomic_copy")) + if (typeof message.atomic_copy !== "boolean") + return "atomic_copy: boolean expected"; + if (message.workflow_options != null && message.hasOwnProperty("workflow_options")) { + let error = $root.vtctldata.WorkflowOptions.verify(message.workflow_options); + if (error) + return "workflow_options." + error; + } return null; }; /** - * Creates a LookupVindexCompleteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MoveTablesCreateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.LookupVindexCompleteRequest + * @memberof vtctldata.MoveTablesCreateRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.LookupVindexCompleteRequest} LookupVindexCompleteRequest + * @returns {vtctldata.MoveTablesCreateRequest} MoveTablesCreateRequest */ - LookupVindexCompleteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.LookupVindexCompleteRequest) + MoveTablesCreateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MoveTablesCreateRequest) return object; - let message = new $root.vtctldata.LookupVindexCompleteRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.name != null) - message.name = String(object.name); - if (object.table_keyspace != null) - message.table_keyspace = String(object.table_keyspace); + let message = new $root.vtctldata.MoveTablesCreateRequest(); + 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.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.MoveTablesCreateRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } + if (object.tablet_types) { + if (!Array.isArray(object.tablet_types)) + throw TypeError(".vtctldata.MoveTablesCreateRequest.tablet_types: array expected"); + message.tablet_types = []; + for (let i = 0; i < object.tablet_types.length; ++i) + switch (object.tablet_types[i]) { + default: + if (typeof object.tablet_types[i] === "number") { + message.tablet_types[i] = object.tablet_types[i]; + break; + } + case "UNKNOWN": + case 0: + message.tablet_types[i] = 0; + break; + case "PRIMARY": + case 1: + message.tablet_types[i] = 1; + break; + case "MASTER": + case 1: + message.tablet_types[i] = 1; + break; + case "REPLICA": + case 2: + message.tablet_types[i] = 2; + break; + case "RDONLY": + case 3: + message.tablet_types[i] = 3; + break; + case "BATCH": + case 3: + message.tablet_types[i] = 3; + break; + case "SPARE": + case 4: + message.tablet_types[i] = 4; + break; + case "EXPERIMENTAL": + case 5: + message.tablet_types[i] = 5; + break; + case "BACKUP": + case 6: + message.tablet_types[i] = 6; + break; + case "RESTORE": + case 7: + message.tablet_types[i] = 7; + break; + case "DRAINED": + case 8: + message.tablet_types[i] = 8; + break; + } + } + switch (object.tablet_selection_preference) { + default: + if (typeof object.tablet_selection_preference === "number") { + message.tablet_selection_preference = object.tablet_selection_preference; + break; + } + break; + case "ANY": + case 0: + message.tablet_selection_preference = 0; + break; + case "INORDER": + case 1: + message.tablet_selection_preference = 1; + break; + case "UNKNOWN": + case 3: + message.tablet_selection_preference = 3; + break; + } + if (object.source_shards) { + if (!Array.isArray(object.source_shards)) + throw TypeError(".vtctldata.MoveTablesCreateRequest.source_shards: array expected"); + message.source_shards = []; + for (let i = 0; i < object.source_shards.length; ++i) + message.source_shards[i] = String(object.source_shards[i]); + } + if (object.all_tables != null) + message.all_tables = Boolean(object.all_tables); + if (object.include_tables) { + if (!Array.isArray(object.include_tables)) + throw TypeError(".vtctldata.MoveTablesCreateRequest.include_tables: array expected"); + message.include_tables = []; + for (let i = 0; i < object.include_tables.length; ++i) + message.include_tables[i] = String(object.include_tables[i]); + } + if (object.exclude_tables) { + if (!Array.isArray(object.exclude_tables)) + throw TypeError(".vtctldata.MoveTablesCreateRequest.exclude_tables: array expected"); + message.exclude_tables = []; + for (let i = 0; i < object.exclude_tables.length; ++i) + message.exclude_tables[i] = String(object.exclude_tables[i]); + } + if (object.external_cluster_name != null) + message.external_cluster_name = String(object.external_cluster_name); + if (object.source_time_zone != null) + message.source_time_zone = String(object.source_time_zone); + if (object.on_ddl != null) + message.on_ddl = String(object.on_ddl); + if (object.stop_after_copy != null) + message.stop_after_copy = Boolean(object.stop_after_copy); + if (object.drop_foreign_keys != null) + message.drop_foreign_keys = Boolean(object.drop_foreign_keys); + if (object.defer_secondary_keys != null) + message.defer_secondary_keys = Boolean(object.defer_secondary_keys); + if (object.auto_start != null) + message.auto_start = Boolean(object.auto_start); + if (object.no_routing_rules != null) + message.no_routing_rules = Boolean(object.no_routing_rules); + if (object.atomic_copy != null) + message.atomic_copy = Boolean(object.atomic_copy); + if (object.workflow_options != null) { + if (typeof object.workflow_options !== "object") + throw TypeError(".vtctldata.MoveTablesCreateRequest.workflow_options: object expected"); + message.workflow_options = $root.vtctldata.WorkflowOptions.fromObject(object.workflow_options); + } return message; }; /** - * Creates a plain object from a LookupVindexCompleteRequest message. Also converts values to other types if specified. + * Creates a plain object from a MoveTablesCreateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.LookupVindexCompleteRequest + * @memberof vtctldata.MoveTablesCreateRequest * @static - * @param {vtctldata.LookupVindexCompleteRequest} message LookupVindexCompleteRequest + * @param {vtctldata.MoveTablesCreateRequest} message MoveTablesCreateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupVindexCompleteRequest.toObject = function toObject(message, options) { + MoveTablesCreateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.cells = []; + object.tablet_types = []; + object.source_shards = []; + object.include_tables = []; + object.exclude_tables = []; + } if (options.defaults) { - object.keyspace = ""; - object.name = ""; - object.table_keyspace = ""; + object.workflow = ""; + object.source_keyspace = ""; + object.target_keyspace = ""; + object.tablet_selection_preference = options.enums === String ? "ANY" : 0; + object.all_tables = false; + object.external_cluster_name = ""; + object.source_time_zone = ""; + object.on_ddl = ""; + object.stop_after_copy = false; + object.drop_foreign_keys = false; + object.defer_secondary_keys = false; + object.auto_start = false; + object.no_routing_rules = false; + object.atomic_copy = false; + object.workflow_options = null; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace")) - object.table_keyspace = message.table_keyspace; + 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.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + if (message.tablet_types && message.tablet_types.length) { + object.tablet_types = []; + for (let j = 0; j < message.tablet_types.length; ++j) + object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; + } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; + if (message.source_shards && message.source_shards.length) { + object.source_shards = []; + for (let j = 0; j < message.source_shards.length; ++j) + object.source_shards[j] = message.source_shards[j]; + } + if (message.all_tables != null && message.hasOwnProperty("all_tables")) + object.all_tables = message.all_tables; + if (message.include_tables && message.include_tables.length) { + object.include_tables = []; + for (let j = 0; j < message.include_tables.length; ++j) + object.include_tables[j] = message.include_tables[j]; + } + if (message.exclude_tables && message.exclude_tables.length) { + object.exclude_tables = []; + for (let j = 0; j < message.exclude_tables.length; ++j) + object.exclude_tables[j] = message.exclude_tables[j]; + } + if (message.external_cluster_name != null && message.hasOwnProperty("external_cluster_name")) + object.external_cluster_name = message.external_cluster_name; + if (message.source_time_zone != null && message.hasOwnProperty("source_time_zone")) + object.source_time_zone = message.source_time_zone; + if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) + object.on_ddl = message.on_ddl; + if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) + object.stop_after_copy = message.stop_after_copy; + if (message.drop_foreign_keys != null && message.hasOwnProperty("drop_foreign_keys")) + object.drop_foreign_keys = message.drop_foreign_keys; + if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) + object.defer_secondary_keys = message.defer_secondary_keys; + if (message.auto_start != null && message.hasOwnProperty("auto_start")) + object.auto_start = message.auto_start; + if (message.no_routing_rules != null && message.hasOwnProperty("no_routing_rules")) + object.no_routing_rules = message.no_routing_rules; + if (message.atomic_copy != null && message.hasOwnProperty("atomic_copy")) + object.atomic_copy = message.atomic_copy; + if (message.workflow_options != null && message.hasOwnProperty("workflow_options")) + object.workflow_options = $root.vtctldata.WorkflowOptions.toObject(message.workflow_options, options); return object; }; /** - * Converts this LookupVindexCompleteRequest to JSON. + * Converts this MoveTablesCreateRequest to JSON. * @function toJSON - * @memberof vtctldata.LookupVindexCompleteRequest + * @memberof vtctldata.MoveTablesCreateRequest * @instance * @returns {Object.} JSON object */ - LookupVindexCompleteRequest.prototype.toJSON = function toJSON() { + MoveTablesCreateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LookupVindexCompleteRequest + * Gets the default type url for MoveTablesCreateRequest * @function getTypeUrl - * @memberof vtctldata.LookupVindexCompleteRequest + * @memberof vtctldata.MoveTablesCreateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LookupVindexCompleteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MoveTablesCreateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.LookupVindexCompleteRequest"; + return typeUrlPrefix + "/vtctldata.MoveTablesCreateRequest"; }; - return LookupVindexCompleteRequest; + return MoveTablesCreateRequest; })(); - vtctldata.LookupVindexCompleteResponse = (function() { + vtctldata.MoveTablesCreateResponse = (function() { /** - * Properties of a LookupVindexCompleteResponse. + * Properties of a MoveTablesCreateResponse. * @memberof vtctldata - * @interface ILookupVindexCompleteResponse + * @interface IMoveTablesCreateResponse + * @property {string|null} [summary] MoveTablesCreateResponse summary + * @property {Array.|null} [details] MoveTablesCreateResponse details */ /** - * Constructs a new LookupVindexCompleteResponse. + * Constructs a new MoveTablesCreateResponse. * @memberof vtctldata - * @classdesc Represents a LookupVindexCompleteResponse. - * @implements ILookupVindexCompleteResponse + * @classdesc Represents a MoveTablesCreateResponse. + * @implements IMoveTablesCreateResponse * @constructor - * @param {vtctldata.ILookupVindexCompleteResponse=} [properties] Properties to set + * @param {vtctldata.IMoveTablesCreateResponse=} [properties] Properties to set */ - function LookupVindexCompleteResponse(properties) { + function MoveTablesCreateResponse(properties) { + this.details = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -163058,63 +171420,94 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new LookupVindexCompleteResponse instance using the specified properties. + * MoveTablesCreateResponse summary. + * @member {string} summary + * @memberof vtctldata.MoveTablesCreateResponse + * @instance + */ + MoveTablesCreateResponse.prototype.summary = ""; + + /** + * MoveTablesCreateResponse details. + * @member {Array.} details + * @memberof vtctldata.MoveTablesCreateResponse + * @instance + */ + MoveTablesCreateResponse.prototype.details = $util.emptyArray; + + /** + * Creates a new MoveTablesCreateResponse instance using the specified properties. * @function create - * @memberof vtctldata.LookupVindexCompleteResponse + * @memberof vtctldata.MoveTablesCreateResponse * @static - * @param {vtctldata.ILookupVindexCompleteResponse=} [properties] Properties to set - * @returns {vtctldata.LookupVindexCompleteResponse} LookupVindexCompleteResponse instance + * @param {vtctldata.IMoveTablesCreateResponse=} [properties] Properties to set + * @returns {vtctldata.MoveTablesCreateResponse} MoveTablesCreateResponse instance */ - LookupVindexCompleteResponse.create = function create(properties) { - return new LookupVindexCompleteResponse(properties); + MoveTablesCreateResponse.create = function create(properties) { + return new MoveTablesCreateResponse(properties); }; /** - * Encodes the specified LookupVindexCompleteResponse message. Does not implicitly {@link vtctldata.LookupVindexCompleteResponse.verify|verify} messages. + * Encodes the specified MoveTablesCreateResponse message. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.LookupVindexCompleteResponse + * @memberof vtctldata.MoveTablesCreateResponse * @static - * @param {vtctldata.ILookupVindexCompleteResponse} message LookupVindexCompleteResponse message or plain object to encode + * @param {vtctldata.IMoveTablesCreateResponse} message MoveTablesCreateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexCompleteResponse.encode = function encode(message, writer) { + MoveTablesCreateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.summary != null && Object.hasOwnProperty.call(message, "summary")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.summary); + if (message.details != null && message.details.length) + for (let i = 0; i < message.details.length; ++i) + $root.vtctldata.MoveTablesCreateResponse.TabletInfo.encode(message.details[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified LookupVindexCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCompleteResponse.verify|verify} messages. + * Encodes the specified MoveTablesCreateResponse message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.LookupVindexCompleteResponse + * @memberof vtctldata.MoveTablesCreateResponse * @static - * @param {vtctldata.ILookupVindexCompleteResponse} message LookupVindexCompleteResponse message or plain object to encode + * @param {vtctldata.IMoveTablesCreateResponse} message MoveTablesCreateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexCompleteResponse.encodeDelimited = function encodeDelimited(message, writer) { + MoveTablesCreateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupVindexCompleteResponse message from the specified reader or buffer. + * Decodes a MoveTablesCreateResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.LookupVindexCompleteResponse + * @memberof vtctldata.MoveTablesCreateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.LookupVindexCompleteResponse} LookupVindexCompleteResponse + * @returns {vtctldata.MoveTablesCreateResponse} MoveTablesCreateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexCompleteResponse.decode = function decode(reader, length) { + MoveTablesCreateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexCompleteResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MoveTablesCreateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.summary = reader.string(); + break; + } + case 2: { + if (!(message.details && message.details.length)) + message.details = []; + message.details.push($root.vtctldata.MoveTablesCreateResponse.TabletInfo.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -163124,117 +171517,388 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a LookupVindexCompleteResponse message from the specified reader or buffer, length delimited. + * Decodes a MoveTablesCreateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.LookupVindexCompleteResponse + * @memberof vtctldata.MoveTablesCreateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.LookupVindexCompleteResponse} LookupVindexCompleteResponse + * @returns {vtctldata.MoveTablesCreateResponse} MoveTablesCreateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexCompleteResponse.decodeDelimited = function decodeDelimited(reader) { + MoveTablesCreateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupVindexCompleteResponse message. + * Verifies a MoveTablesCreateResponse message. * @function verify - * @memberof vtctldata.LookupVindexCompleteResponse + * @memberof vtctldata.MoveTablesCreateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupVindexCompleteResponse.verify = function verify(message) { + MoveTablesCreateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.summary != null && message.hasOwnProperty("summary")) + if (!$util.isString(message.summary)) + return "summary: string expected"; + if (message.details != null && message.hasOwnProperty("details")) { + if (!Array.isArray(message.details)) + return "details: array expected"; + for (let i = 0; i < message.details.length; ++i) { + let error = $root.vtctldata.MoveTablesCreateResponse.TabletInfo.verify(message.details[i]); + if (error) + return "details." + error; + } + } return null; }; /** - * Creates a LookupVindexCompleteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MoveTablesCreateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.LookupVindexCompleteResponse + * @memberof vtctldata.MoveTablesCreateResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.LookupVindexCompleteResponse} LookupVindexCompleteResponse + * @returns {vtctldata.MoveTablesCreateResponse} MoveTablesCreateResponse */ - LookupVindexCompleteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.LookupVindexCompleteResponse) + MoveTablesCreateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MoveTablesCreateResponse) return object; - return new $root.vtctldata.LookupVindexCompleteResponse(); + let message = new $root.vtctldata.MoveTablesCreateResponse(); + if (object.summary != null) + message.summary = String(object.summary); + if (object.details) { + if (!Array.isArray(object.details)) + throw TypeError(".vtctldata.MoveTablesCreateResponse.details: array expected"); + message.details = []; + for (let i = 0; i < object.details.length; ++i) { + if (typeof object.details[i] !== "object") + throw TypeError(".vtctldata.MoveTablesCreateResponse.details: object expected"); + message.details[i] = $root.vtctldata.MoveTablesCreateResponse.TabletInfo.fromObject(object.details[i]); + } + } + return message; }; /** - * Creates a plain object from a LookupVindexCompleteResponse message. Also converts values to other types if specified. + * Creates a plain object from a MoveTablesCreateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.LookupVindexCompleteResponse + * @memberof vtctldata.MoveTablesCreateResponse * @static - * @param {vtctldata.LookupVindexCompleteResponse} message LookupVindexCompleteResponse + * @param {vtctldata.MoveTablesCreateResponse} message MoveTablesCreateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupVindexCompleteResponse.toObject = function toObject() { - return {}; + MoveTablesCreateResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.details = []; + if (options.defaults) + object.summary = ""; + if (message.summary != null && message.hasOwnProperty("summary")) + object.summary = message.summary; + if (message.details && message.details.length) { + object.details = []; + for (let j = 0; j < message.details.length; ++j) + object.details[j] = $root.vtctldata.MoveTablesCreateResponse.TabletInfo.toObject(message.details[j], options); + } + return object; }; /** - * Converts this LookupVindexCompleteResponse to JSON. + * Converts this MoveTablesCreateResponse to JSON. * @function toJSON - * @memberof vtctldata.LookupVindexCompleteResponse + * @memberof vtctldata.MoveTablesCreateResponse * @instance * @returns {Object.} JSON object */ - LookupVindexCompleteResponse.prototype.toJSON = function toJSON() { + MoveTablesCreateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LookupVindexCompleteResponse + * Gets the default type url for MoveTablesCreateResponse * @function getTypeUrl - * @memberof vtctldata.LookupVindexCompleteResponse + * @memberof vtctldata.MoveTablesCreateResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LookupVindexCompleteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MoveTablesCreateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.LookupVindexCompleteResponse"; + return typeUrlPrefix + "/vtctldata.MoveTablesCreateResponse"; }; - return LookupVindexCompleteResponse; + MoveTablesCreateResponse.TabletInfo = (function() { + + /** + * Properties of a TabletInfo. + * @memberof vtctldata.MoveTablesCreateResponse + * @interface ITabletInfo + * @property {topodata.ITabletAlias|null} [tablet] TabletInfo tablet + * @property {boolean|null} [created] TabletInfo created + */ + + /** + * Constructs a new TabletInfo. + * @memberof vtctldata.MoveTablesCreateResponse + * @classdesc Represents a TabletInfo. + * @implements ITabletInfo + * @constructor + * @param {vtctldata.MoveTablesCreateResponse.ITabletInfo=} [properties] Properties to set + */ + function TabletInfo(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TabletInfo tablet. + * @member {topodata.ITabletAlias|null|undefined} tablet + * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo + * @instance + */ + TabletInfo.prototype.tablet = null; + + /** + * TabletInfo created. + * @member {boolean} created + * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo + * @instance + */ + TabletInfo.prototype.created = false; + + /** + * Creates a new TabletInfo instance using the specified properties. + * @function create + * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo + * @static + * @param {vtctldata.MoveTablesCreateResponse.ITabletInfo=} [properties] Properties to set + * @returns {vtctldata.MoveTablesCreateResponse.TabletInfo} TabletInfo instance + */ + TabletInfo.create = function create(properties) { + return new TabletInfo(properties); + }; + + /** + * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.TabletInfo.verify|verify} messages. + * @function encode + * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo + * @static + * @param {vtctldata.MoveTablesCreateResponse.ITabletInfo} message TabletInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TabletInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) + $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.created != null && Object.hasOwnProperty.call(message, "created")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.created); + return writer; + }; + + /** + * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.TabletInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo + * @static + * @param {vtctldata.MoveTablesCreateResponse.ITabletInfo} message TabletInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TabletInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TabletInfo message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.MoveTablesCreateResponse.TabletInfo} TabletInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TabletInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MoveTablesCreateResponse.TabletInfo(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 2: { + message.created = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TabletInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.MoveTablesCreateResponse.TabletInfo} TabletInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TabletInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TabletInfo message. + * @function verify + * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TabletInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tablet != null && message.hasOwnProperty("tablet")) { + let error = $root.topodata.TabletAlias.verify(message.tablet); + if (error) + return "tablet." + error; + } + if (message.created != null && message.hasOwnProperty("created")) + if (typeof message.created !== "boolean") + return "created: boolean expected"; + return null; + }; + + /** + * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.MoveTablesCreateResponse.TabletInfo} TabletInfo + */ + TabletInfo.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MoveTablesCreateResponse.TabletInfo) + return object; + let message = new $root.vtctldata.MoveTablesCreateResponse.TabletInfo(); + if (object.tablet != null) { + if (typeof object.tablet !== "object") + throw TypeError(".vtctldata.MoveTablesCreateResponse.TabletInfo.tablet: object expected"); + message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); + } + if (object.created != null) + message.created = Boolean(object.created); + return message; + }; + + /** + * Creates a plain object from a TabletInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo + * @static + * @param {vtctldata.MoveTablesCreateResponse.TabletInfo} message TabletInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TabletInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.tablet = null; + object.created = false; + } + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); + if (message.created != null && message.hasOwnProperty("created")) + object.created = message.created; + return object; + }; + + /** + * Converts this TabletInfo to JSON. + * @function toJSON + * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo + * @instance + * @returns {Object.} JSON object + */ + TabletInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TabletInfo + * @function getTypeUrl + * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TabletInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.MoveTablesCreateResponse.TabletInfo"; + }; + + return TabletInfo; + })(); + + return MoveTablesCreateResponse; })(); - vtctldata.LookupVindexCreateRequest = (function() { + vtctldata.MoveTablesCompleteRequest = (function() { /** - * Properties of a LookupVindexCreateRequest. + * Properties of a MoveTablesCompleteRequest. * @memberof vtctldata - * @interface ILookupVindexCreateRequest - * @property {string|null} [keyspace] LookupVindexCreateRequest keyspace - * @property {string|null} [workflow] LookupVindexCreateRequest workflow - * @property {Array.|null} [cells] LookupVindexCreateRequest cells - * @property {vschema.IKeyspace|null} [vindex] LookupVindexCreateRequest vindex - * @property {boolean|null} [continue_after_copy_with_owner] LookupVindexCreateRequest continue_after_copy_with_owner - * @property {Array.|null} [tablet_types] LookupVindexCreateRequest tablet_types - * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] LookupVindexCreateRequest tablet_selection_preference + * @interface IMoveTablesCompleteRequest + * @property {string|null} [workflow] MoveTablesCompleteRequest workflow + * @property {string|null} [target_keyspace] MoveTablesCompleteRequest target_keyspace + * @property {boolean|null} [keep_data] MoveTablesCompleteRequest keep_data + * @property {boolean|null} [keep_routing_rules] MoveTablesCompleteRequest keep_routing_rules + * @property {boolean|null} [rename_tables] MoveTablesCompleteRequest rename_tables + * @property {boolean|null} [dry_run] MoveTablesCompleteRequest dry_run + * @property {Array.|null} [shards] MoveTablesCompleteRequest shards + * @property {boolean|null} [ignore_source_keyspace] MoveTablesCompleteRequest ignore_source_keyspace */ /** - * Constructs a new LookupVindexCreateRequest. + * Constructs a new MoveTablesCompleteRequest. * @memberof vtctldata - * @classdesc Represents a LookupVindexCreateRequest. - * @implements ILookupVindexCreateRequest + * @classdesc Represents a MoveTablesCompleteRequest. + * @implements IMoveTablesCompleteRequest * @constructor - * @param {vtctldata.ILookupVindexCreateRequest=} [properties] Properties to set + * @param {vtctldata.IMoveTablesCompleteRequest=} [properties] Properties to set */ - function LookupVindexCreateRequest(properties) { - this.cells = []; - this.tablet_types = []; + function MoveTablesCompleteRequest(properties) { + this.shards = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -163242,173 +171906,176 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * LookupVindexCreateRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.LookupVindexCreateRequest + * MoveTablesCompleteRequest workflow. + * @member {string} workflow + * @memberof vtctldata.MoveTablesCompleteRequest * @instance */ - LookupVindexCreateRequest.prototype.keyspace = ""; + MoveTablesCompleteRequest.prototype.workflow = ""; /** - * LookupVindexCreateRequest workflow. - * @member {string} workflow - * @memberof vtctldata.LookupVindexCreateRequest + * MoveTablesCompleteRequest target_keyspace. + * @member {string} target_keyspace + * @memberof vtctldata.MoveTablesCompleteRequest * @instance */ - LookupVindexCreateRequest.prototype.workflow = ""; + MoveTablesCompleteRequest.prototype.target_keyspace = ""; /** - * LookupVindexCreateRequest cells. - * @member {Array.} cells - * @memberof vtctldata.LookupVindexCreateRequest + * MoveTablesCompleteRequest keep_data. + * @member {boolean} keep_data + * @memberof vtctldata.MoveTablesCompleteRequest * @instance */ - LookupVindexCreateRequest.prototype.cells = $util.emptyArray; + MoveTablesCompleteRequest.prototype.keep_data = false; /** - * LookupVindexCreateRequest vindex. - * @member {vschema.IKeyspace|null|undefined} vindex - * @memberof vtctldata.LookupVindexCreateRequest + * MoveTablesCompleteRequest keep_routing_rules. + * @member {boolean} keep_routing_rules + * @memberof vtctldata.MoveTablesCompleteRequest * @instance */ - LookupVindexCreateRequest.prototype.vindex = null; + MoveTablesCompleteRequest.prototype.keep_routing_rules = false; /** - * LookupVindexCreateRequest continue_after_copy_with_owner. - * @member {boolean} continue_after_copy_with_owner - * @memberof vtctldata.LookupVindexCreateRequest + * MoveTablesCompleteRequest rename_tables. + * @member {boolean} rename_tables + * @memberof vtctldata.MoveTablesCompleteRequest * @instance */ - LookupVindexCreateRequest.prototype.continue_after_copy_with_owner = false; + MoveTablesCompleteRequest.prototype.rename_tables = false; /** - * LookupVindexCreateRequest tablet_types. - * @member {Array.} tablet_types - * @memberof vtctldata.LookupVindexCreateRequest + * MoveTablesCompleteRequest dry_run. + * @member {boolean} dry_run + * @memberof vtctldata.MoveTablesCompleteRequest * @instance */ - LookupVindexCreateRequest.prototype.tablet_types = $util.emptyArray; + MoveTablesCompleteRequest.prototype.dry_run = false; /** - * LookupVindexCreateRequest tablet_selection_preference. - * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference - * @memberof vtctldata.LookupVindexCreateRequest + * MoveTablesCompleteRequest shards. + * @member {Array.} shards + * @memberof vtctldata.MoveTablesCompleteRequest * @instance */ - LookupVindexCreateRequest.prototype.tablet_selection_preference = 0; + MoveTablesCompleteRequest.prototype.shards = $util.emptyArray; /** - * Creates a new LookupVindexCreateRequest instance using the specified properties. + * MoveTablesCompleteRequest ignore_source_keyspace. + * @member {boolean} ignore_source_keyspace + * @memberof vtctldata.MoveTablesCompleteRequest + * @instance + */ + MoveTablesCompleteRequest.prototype.ignore_source_keyspace = false; + + /** + * Creates a new MoveTablesCompleteRequest instance using the specified properties. * @function create - * @memberof vtctldata.LookupVindexCreateRequest + * @memberof vtctldata.MoveTablesCompleteRequest * @static - * @param {vtctldata.ILookupVindexCreateRequest=} [properties] Properties to set - * @returns {vtctldata.LookupVindexCreateRequest} LookupVindexCreateRequest instance + * @param {vtctldata.IMoveTablesCompleteRequest=} [properties] Properties to set + * @returns {vtctldata.MoveTablesCompleteRequest} MoveTablesCompleteRequest instance */ - LookupVindexCreateRequest.create = function create(properties) { - return new LookupVindexCreateRequest(properties); + MoveTablesCompleteRequest.create = function create(properties) { + return new MoveTablesCompleteRequest(properties); }; /** - * Encodes the specified LookupVindexCreateRequest message. Does not implicitly {@link vtctldata.LookupVindexCreateRequest.verify|verify} messages. + * Encodes the specified MoveTablesCompleteRequest message. Does not implicitly {@link vtctldata.MoveTablesCompleteRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.LookupVindexCreateRequest + * @memberof vtctldata.MoveTablesCompleteRequest * @static - * @param {vtctldata.ILookupVindexCreateRequest} message LookupVindexCreateRequest message or plain object to encode + * @param {vtctldata.IMoveTablesCompleteRequest} message MoveTablesCompleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexCreateRequest.encode = function encode(message, writer) { + MoveTablesCompleteRequest.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.workflow != null && Object.hasOwnProperty.call(message, "workflow")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.workflow); - if (message.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); - if (message.vindex != null && Object.hasOwnProperty.call(message, "vindex")) - $root.vschema.Keyspace.encode(message.vindex, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.continue_after_copy_with_owner != null && Object.hasOwnProperty.call(message, "continue_after_copy_with_owner")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.continue_after_copy_with_owner); - if (message.tablet_types != null && message.tablet_types.length) { - writer.uint32(/* id 6, wireType 2 =*/50).fork(); - for (let i = 0; i < message.tablet_types.length; ++i) - writer.int32(message.tablet_types[i]); - writer.ldelim(); - } - if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.tablet_selection_preference); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); + if (message.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_keyspace); + if (message.keep_data != null && Object.hasOwnProperty.call(message, "keep_data")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.keep_data); + if (message.keep_routing_rules != null && Object.hasOwnProperty.call(message, "keep_routing_rules")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.keep_routing_rules); + if (message.rename_tables != null && Object.hasOwnProperty.call(message, "rename_tables")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.rename_tables); + if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.dry_run); + if (message.shards != null && message.shards.length) + for (let i = 0; i < message.shards.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.shards[i]); + if (message.ignore_source_keyspace != null && Object.hasOwnProperty.call(message, "ignore_source_keyspace")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.ignore_source_keyspace); return writer; }; /** - * Encodes the specified LookupVindexCreateRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCreateRequest.verify|verify} messages. + * Encodes the specified MoveTablesCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCompleteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.LookupVindexCreateRequest + * @memberof vtctldata.MoveTablesCompleteRequest * @static - * @param {vtctldata.ILookupVindexCreateRequest} message LookupVindexCreateRequest message or plain object to encode + * @param {vtctldata.IMoveTablesCompleteRequest} message MoveTablesCompleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexCreateRequest.encodeDelimited = function encodeDelimited(message, writer) { + MoveTablesCompleteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupVindexCreateRequest message from the specified reader or buffer. + * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.LookupVindexCreateRequest + * @memberof vtctldata.MoveTablesCompleteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.LookupVindexCreateRequest} LookupVindexCreateRequest + * @returns {vtctldata.MoveTablesCompleteRequest} MoveTablesCompleteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexCreateRequest.decode = function decode(reader, length) { + MoveTablesCompleteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexCreateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MoveTablesCompleteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { + case 1: { message.workflow = reader.string(); break; } case 3: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + message.target_keyspace = reader.string(); break; } case 4: { - message.vindex = $root.vschema.Keyspace.decode(reader, reader.uint32()); + message.keep_data = reader.bool(); break; } case 5: { - message.continue_after_copy_with_owner = reader.bool(); + message.keep_routing_rules = reader.bool(); break; } case 6: { - if (!(message.tablet_types && message.tablet_types.length)) - message.tablet_types = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.tablet_types.push(reader.int32()); - } else - message.tablet_types.push(reader.int32()); + message.rename_tables = reader.bool(); break; } case 7: { - message.tablet_selection_preference = reader.int32(); + message.dry_run = reader.bool(); + break; + } + case 8: { + if (!(message.shards && message.shards.length)) + message.shards = []; + message.shards.push(reader.string()); + break; + } + case 9: { + message.ignore_source_keyspace = reader.bool(); break; } default: @@ -163420,289 +172087,194 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a LookupVindexCreateRequest message from the specified reader or buffer, length delimited. + * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.LookupVindexCreateRequest + * @memberof vtctldata.MoveTablesCompleteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.LookupVindexCreateRequest} LookupVindexCreateRequest + * @returns {vtctldata.MoveTablesCompleteRequest} MoveTablesCompleteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexCreateRequest.decodeDelimited = function decodeDelimited(reader) { + MoveTablesCompleteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupVindexCreateRequest message. + * Verifies a MoveTablesCompleteRequest message. * @function verify - * @memberof vtctldata.LookupVindexCreateRequest + * @memberof vtctldata.MoveTablesCompleteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupVindexCreateRequest.verify = function verify(message) { + MoveTablesCompleteRequest.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.workflow != null && message.hasOwnProperty("workflow")) if (!$util.isString(message.workflow)) return "workflow: string expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } - if (message.vindex != null && message.hasOwnProperty("vindex")) { - let error = $root.vschema.Keyspace.verify(message.vindex); - if (error) - return "vindex." + error; - } - if (message.continue_after_copy_with_owner != null && message.hasOwnProperty("continue_after_copy_with_owner")) - if (typeof message.continue_after_copy_with_owner !== "boolean") - return "continue_after_copy_with_owner: boolean expected"; - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { - if (!Array.isArray(message.tablet_types)) - return "tablet_types: array expected"; - for (let i = 0; i < message.tablet_types.length; ++i) - switch (message.tablet_types[i]) { - default: - return "tablet_types: enum value[] expected"; - case 0: - case 1: - case 1: - case 2: - case 3: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + if (!$util.isString(message.target_keyspace)) + return "target_keyspace: string expected"; + if (message.keep_data != null && message.hasOwnProperty("keep_data")) + if (typeof message.keep_data !== "boolean") + return "keep_data: boolean expected"; + if (message.keep_routing_rules != null && message.hasOwnProperty("keep_routing_rules")) + if (typeof message.keep_routing_rules !== "boolean") + return "keep_routing_rules: boolean expected"; + if (message.rename_tables != null && message.hasOwnProperty("rename_tables")) + if (typeof message.rename_tables !== "boolean") + return "rename_tables: boolean expected"; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + if (typeof message.dry_run !== "boolean") + return "dry_run: boolean expected"; + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!Array.isArray(message.shards)) + return "shards: array expected"; + for (let i = 0; i < message.shards.length; ++i) + if (!$util.isString(message.shards[i])) + return "shards: string[] expected"; } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - switch (message.tablet_selection_preference) { - default: - return "tablet_selection_preference: enum value expected"; - case 0: - case 1: - case 3: - break; - } + if (message.ignore_source_keyspace != null && message.hasOwnProperty("ignore_source_keyspace")) + if (typeof message.ignore_source_keyspace !== "boolean") + return "ignore_source_keyspace: boolean expected"; return null; }; /** - * Creates a LookupVindexCreateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MoveTablesCompleteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.LookupVindexCreateRequest + * @memberof vtctldata.MoveTablesCompleteRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.LookupVindexCreateRequest} LookupVindexCreateRequest + * @returns {vtctldata.MoveTablesCompleteRequest} MoveTablesCompleteRequest */ - LookupVindexCreateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.LookupVindexCreateRequest) + MoveTablesCompleteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MoveTablesCompleteRequest) return object; - let message = new $root.vtctldata.LookupVindexCreateRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); + let message = new $root.vtctldata.MoveTablesCompleteRequest(); if (object.workflow != null) message.workflow = String(object.workflow); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.LookupVindexCreateRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } - if (object.vindex != null) { - if (typeof object.vindex !== "object") - throw TypeError(".vtctldata.LookupVindexCreateRequest.vindex: object expected"); - message.vindex = $root.vschema.Keyspace.fromObject(object.vindex); - } - if (object.continue_after_copy_with_owner != null) - message.continue_after_copy_with_owner = Boolean(object.continue_after_copy_with_owner); - if (object.tablet_types) { - if (!Array.isArray(object.tablet_types)) - throw TypeError(".vtctldata.LookupVindexCreateRequest.tablet_types: array expected"); - message.tablet_types = []; - for (let i = 0; i < object.tablet_types.length; ++i) - switch (object.tablet_types[i]) { - default: - if (typeof object.tablet_types[i] === "number") { - message.tablet_types[i] = object.tablet_types[i]; - break; - } - case "UNKNOWN": - case 0: - message.tablet_types[i] = 0; - break; - case "PRIMARY": - case 1: - message.tablet_types[i] = 1; - break; - case "MASTER": - case 1: - message.tablet_types[i] = 1; - break; - case "REPLICA": - case 2: - message.tablet_types[i] = 2; - break; - case "RDONLY": - case 3: - message.tablet_types[i] = 3; - break; - case "BATCH": - case 3: - message.tablet_types[i] = 3; - break; - case "SPARE": - case 4: - message.tablet_types[i] = 4; - break; - case "EXPERIMENTAL": - case 5: - message.tablet_types[i] = 5; - break; - case "BACKUP": - case 6: - message.tablet_types[i] = 6; - break; - case "RESTORE": - case 7: - message.tablet_types[i] = 7; - break; - case "DRAINED": - case 8: - message.tablet_types[i] = 8; - break; - } - } - switch (object.tablet_selection_preference) { - default: - if (typeof object.tablet_selection_preference === "number") { - message.tablet_selection_preference = object.tablet_selection_preference; - break; - } - break; - case "ANY": - case 0: - message.tablet_selection_preference = 0; - break; - case "INORDER": - case 1: - message.tablet_selection_preference = 1; - break; - case "UNKNOWN": - case 3: - message.tablet_selection_preference = 3; - break; + if (object.target_keyspace != null) + message.target_keyspace = String(object.target_keyspace); + if (object.keep_data != null) + message.keep_data = Boolean(object.keep_data); + if (object.keep_routing_rules != null) + message.keep_routing_rules = Boolean(object.keep_routing_rules); + if (object.rename_tables != null) + message.rename_tables = Boolean(object.rename_tables); + if (object.dry_run != null) + message.dry_run = Boolean(object.dry_run); + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".vtctldata.MoveTablesCompleteRequest.shards: array expected"); + message.shards = []; + for (let i = 0; i < object.shards.length; ++i) + message.shards[i] = String(object.shards[i]); } + if (object.ignore_source_keyspace != null) + message.ignore_source_keyspace = Boolean(object.ignore_source_keyspace); return message; }; /** - * Creates a plain object from a LookupVindexCreateRequest message. Also converts values to other types if specified. + * Creates a plain object from a MoveTablesCompleteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.LookupVindexCreateRequest + * @memberof vtctldata.MoveTablesCompleteRequest * @static - * @param {vtctldata.LookupVindexCreateRequest} message LookupVindexCreateRequest + * @param {vtctldata.MoveTablesCompleteRequest} message MoveTablesCompleteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupVindexCreateRequest.toObject = function toObject(message, options) { + MoveTablesCompleteRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.cells = []; - object.tablet_types = []; - } + if (options.arrays || options.defaults) + object.shards = []; if (options.defaults) { - object.keyspace = ""; object.workflow = ""; - object.vindex = null; - object.continue_after_copy_with_owner = false; - object.tablet_selection_preference = options.enums === String ? "ANY" : 0; + object.target_keyspace = ""; + object.keep_data = false; + object.keep_routing_rules = false; + object.rename_tables = false; + object.dry_run = false; + object.ignore_source_keyspace = false; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; if (message.workflow != null && message.hasOwnProperty("workflow")) object.workflow = message.workflow; - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } - if (message.vindex != null && message.hasOwnProperty("vindex")) - object.vindex = $root.vschema.Keyspace.toObject(message.vindex, options); - if (message.continue_after_copy_with_owner != null && message.hasOwnProperty("continue_after_copy_with_owner")) - object.continue_after_copy_with_owner = message.continue_after_copy_with_owner; - if (message.tablet_types && message.tablet_types.length) { - object.tablet_types = []; - for (let j = 0; j < message.tablet_types.length; ++j) - object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + object.target_keyspace = message.target_keyspace; + if (message.keep_data != null && message.hasOwnProperty("keep_data")) + object.keep_data = message.keep_data; + if (message.keep_routing_rules != null && message.hasOwnProperty("keep_routing_rules")) + object.keep_routing_rules = message.keep_routing_rules; + if (message.rename_tables != null && message.hasOwnProperty("rename_tables")) + object.rename_tables = message.rename_tables; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + object.dry_run = message.dry_run; + if (message.shards && message.shards.length) { + object.shards = []; + for (let j = 0; j < message.shards.length; ++j) + object.shards[j] = message.shards[j]; } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; + if (message.ignore_source_keyspace != null && message.hasOwnProperty("ignore_source_keyspace")) + object.ignore_source_keyspace = message.ignore_source_keyspace; return object; }; /** - * Converts this LookupVindexCreateRequest to JSON. + * Converts this MoveTablesCompleteRequest to JSON. * @function toJSON - * @memberof vtctldata.LookupVindexCreateRequest + * @memberof vtctldata.MoveTablesCompleteRequest * @instance * @returns {Object.} JSON object */ - LookupVindexCreateRequest.prototype.toJSON = function toJSON() { + MoveTablesCompleteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LookupVindexCreateRequest + * Gets the default type url for MoveTablesCompleteRequest * @function getTypeUrl - * @memberof vtctldata.LookupVindexCreateRequest + * @memberof vtctldata.MoveTablesCompleteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LookupVindexCreateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MoveTablesCompleteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.LookupVindexCreateRequest"; + return typeUrlPrefix + "/vtctldata.MoveTablesCompleteRequest"; }; - return LookupVindexCreateRequest; + return MoveTablesCompleteRequest; })(); - vtctldata.LookupVindexCreateResponse = (function() { + vtctldata.MoveTablesCompleteResponse = (function() { /** - * Properties of a LookupVindexCreateResponse. + * Properties of a MoveTablesCompleteResponse. * @memberof vtctldata - * @interface ILookupVindexCreateResponse + * @interface IMoveTablesCompleteResponse + * @property {string|null} [summary] MoveTablesCompleteResponse summary + * @property {Array.|null} [dry_run_results] MoveTablesCompleteResponse dry_run_results */ /** - * Constructs a new LookupVindexCreateResponse. + * Constructs a new MoveTablesCompleteResponse. * @memberof vtctldata - * @classdesc Represents a LookupVindexCreateResponse. - * @implements ILookupVindexCreateResponse + * @classdesc Represents a MoveTablesCompleteResponse. + * @implements IMoveTablesCompleteResponse * @constructor - * @param {vtctldata.ILookupVindexCreateResponse=} [properties] Properties to set + * @param {vtctldata.IMoveTablesCompleteResponse=} [properties] Properties to set */ - function LookupVindexCreateResponse(properties) { + function MoveTablesCompleteResponse(properties) { + this.dry_run_results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -163710,63 +172282,94 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new LookupVindexCreateResponse instance using the specified properties. + * MoveTablesCompleteResponse summary. + * @member {string} summary + * @memberof vtctldata.MoveTablesCompleteResponse + * @instance + */ + MoveTablesCompleteResponse.prototype.summary = ""; + + /** + * MoveTablesCompleteResponse dry_run_results. + * @member {Array.} dry_run_results + * @memberof vtctldata.MoveTablesCompleteResponse + * @instance + */ + MoveTablesCompleteResponse.prototype.dry_run_results = $util.emptyArray; + + /** + * Creates a new MoveTablesCompleteResponse instance using the specified properties. * @function create - * @memberof vtctldata.LookupVindexCreateResponse + * @memberof vtctldata.MoveTablesCompleteResponse * @static - * @param {vtctldata.ILookupVindexCreateResponse=} [properties] Properties to set - * @returns {vtctldata.LookupVindexCreateResponse} LookupVindexCreateResponse instance + * @param {vtctldata.IMoveTablesCompleteResponse=} [properties] Properties to set + * @returns {vtctldata.MoveTablesCompleteResponse} MoveTablesCompleteResponse instance */ - LookupVindexCreateResponse.create = function create(properties) { - return new LookupVindexCreateResponse(properties); + MoveTablesCompleteResponse.create = function create(properties) { + return new MoveTablesCompleteResponse(properties); }; /** - * Encodes the specified LookupVindexCreateResponse message. Does not implicitly {@link vtctldata.LookupVindexCreateResponse.verify|verify} messages. + * Encodes the specified MoveTablesCompleteResponse message. Does not implicitly {@link vtctldata.MoveTablesCompleteResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.LookupVindexCreateResponse + * @memberof vtctldata.MoveTablesCompleteResponse * @static - * @param {vtctldata.ILookupVindexCreateResponse} message LookupVindexCreateResponse message or plain object to encode + * @param {vtctldata.IMoveTablesCompleteResponse} message MoveTablesCompleteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexCreateResponse.encode = function encode(message, writer) { + MoveTablesCompleteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.summary != null && Object.hasOwnProperty.call(message, "summary")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.summary); + if (message.dry_run_results != null && message.dry_run_results.length) + for (let i = 0; i < message.dry_run_results.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.dry_run_results[i]); return writer; }; /** - * Encodes the specified LookupVindexCreateResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCreateResponse.verify|verify} messages. + * Encodes the specified MoveTablesCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCompleteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.LookupVindexCreateResponse + * @memberof vtctldata.MoveTablesCompleteResponse * @static - * @param {vtctldata.ILookupVindexCreateResponse} message LookupVindexCreateResponse message or plain object to encode + * @param {vtctldata.IMoveTablesCompleteResponse} message MoveTablesCompleteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexCreateResponse.encodeDelimited = function encodeDelimited(message, writer) { + MoveTablesCompleteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupVindexCreateResponse message from the specified reader or buffer. + * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.LookupVindexCreateResponse + * @memberof vtctldata.MoveTablesCompleteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.LookupVindexCreateResponse} LookupVindexCreateResponse + * @returns {vtctldata.MoveTablesCompleteResponse} MoveTablesCompleteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexCreateResponse.decode = function decode(reader, length) { + MoveTablesCompleteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexCreateResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MoveTablesCompleteResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.summary = reader.string(); + break; + } + case 2: { + if (!(message.dry_run_results && message.dry_run_results.length)) + message.dry_run_results = []; + message.dry_run_results.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -163776,112 +172379,143 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a LookupVindexCreateResponse message from the specified reader or buffer, length delimited. + * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.LookupVindexCreateResponse + * @memberof vtctldata.MoveTablesCompleteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.LookupVindexCreateResponse} LookupVindexCreateResponse + * @returns {vtctldata.MoveTablesCompleteResponse} MoveTablesCompleteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexCreateResponse.decodeDelimited = function decodeDelimited(reader) { + MoveTablesCompleteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupVindexCreateResponse message. + * Verifies a MoveTablesCompleteResponse message. * @function verify - * @memberof vtctldata.LookupVindexCreateResponse + * @memberof vtctldata.MoveTablesCompleteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupVindexCreateResponse.verify = function verify(message) { + MoveTablesCompleteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.summary != null && message.hasOwnProperty("summary")) + if (!$util.isString(message.summary)) + return "summary: string expected"; + if (message.dry_run_results != null && message.hasOwnProperty("dry_run_results")) { + if (!Array.isArray(message.dry_run_results)) + return "dry_run_results: array expected"; + for (let i = 0; i < message.dry_run_results.length; ++i) + if (!$util.isString(message.dry_run_results[i])) + return "dry_run_results: string[] expected"; + } return null; }; /** - * Creates a LookupVindexCreateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MoveTablesCompleteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.LookupVindexCreateResponse + * @memberof vtctldata.MoveTablesCompleteResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.LookupVindexCreateResponse} LookupVindexCreateResponse + * @returns {vtctldata.MoveTablesCompleteResponse} MoveTablesCompleteResponse */ - LookupVindexCreateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.LookupVindexCreateResponse) + MoveTablesCompleteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MoveTablesCompleteResponse) return object; - return new $root.vtctldata.LookupVindexCreateResponse(); + let message = new $root.vtctldata.MoveTablesCompleteResponse(); + if (object.summary != null) + message.summary = String(object.summary); + if (object.dry_run_results) { + if (!Array.isArray(object.dry_run_results)) + throw TypeError(".vtctldata.MoveTablesCompleteResponse.dry_run_results: array expected"); + message.dry_run_results = []; + for (let i = 0; i < object.dry_run_results.length; ++i) + message.dry_run_results[i] = String(object.dry_run_results[i]); + } + return message; }; /** - * Creates a plain object from a LookupVindexCreateResponse message. Also converts values to other types if specified. + * Creates a plain object from a MoveTablesCompleteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.LookupVindexCreateResponse + * @memberof vtctldata.MoveTablesCompleteResponse * @static - * @param {vtctldata.LookupVindexCreateResponse} message LookupVindexCreateResponse + * @param {vtctldata.MoveTablesCompleteResponse} message MoveTablesCompleteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupVindexCreateResponse.toObject = function toObject() { - return {}; + MoveTablesCompleteResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.dry_run_results = []; + if (options.defaults) + object.summary = ""; + if (message.summary != null && message.hasOwnProperty("summary")) + object.summary = message.summary; + if (message.dry_run_results && message.dry_run_results.length) { + object.dry_run_results = []; + for (let j = 0; j < message.dry_run_results.length; ++j) + object.dry_run_results[j] = message.dry_run_results[j]; + } + return object; }; /** - * Converts this LookupVindexCreateResponse to JSON. + * Converts this MoveTablesCompleteResponse to JSON. * @function toJSON - * @memberof vtctldata.LookupVindexCreateResponse + * @memberof vtctldata.MoveTablesCompleteResponse * @instance * @returns {Object.} JSON object */ - LookupVindexCreateResponse.prototype.toJSON = function toJSON() { + MoveTablesCompleteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LookupVindexCreateResponse + * Gets the default type url for MoveTablesCompleteResponse * @function getTypeUrl - * @memberof vtctldata.LookupVindexCreateResponse + * @memberof vtctldata.MoveTablesCompleteResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LookupVindexCreateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MoveTablesCompleteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.LookupVindexCreateResponse"; + return typeUrlPrefix + "/vtctldata.MoveTablesCompleteResponse"; }; - return LookupVindexCreateResponse; + return MoveTablesCompleteResponse; })(); - vtctldata.LookupVindexExternalizeRequest = (function() { + vtctldata.PingTabletRequest = (function() { /** - * Properties of a LookupVindexExternalizeRequest. + * Properties of a PingTabletRequest. * @memberof vtctldata - * @interface ILookupVindexExternalizeRequest - * @property {string|null} [keyspace] LookupVindexExternalizeRequest keyspace - * @property {string|null} [name] LookupVindexExternalizeRequest name - * @property {string|null} [table_keyspace] LookupVindexExternalizeRequest table_keyspace - * @property {boolean|null} [delete_workflow] LookupVindexExternalizeRequest delete_workflow + * @interface IPingTabletRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] PingTabletRequest tablet_alias */ /** - * Constructs a new LookupVindexExternalizeRequest. + * Constructs a new PingTabletRequest. * @memberof vtctldata - * @classdesc Represents a LookupVindexExternalizeRequest. - * @implements ILookupVindexExternalizeRequest + * @classdesc Represents a PingTabletRequest. + * @implements IPingTabletRequest * @constructor - * @param {vtctldata.ILookupVindexExternalizeRequest=} [properties] Properties to set + * @param {vtctldata.IPingTabletRequest=} [properties] Properties to set */ - function LookupVindexExternalizeRequest(properties) { + function PingTabletRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -163889,117 +172523,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * LookupVindexExternalizeRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.LookupVindexExternalizeRequest - * @instance - */ - LookupVindexExternalizeRequest.prototype.keyspace = ""; - - /** - * LookupVindexExternalizeRequest name. - * @member {string} name - * @memberof vtctldata.LookupVindexExternalizeRequest - * @instance - */ - LookupVindexExternalizeRequest.prototype.name = ""; - - /** - * LookupVindexExternalizeRequest table_keyspace. - * @member {string} table_keyspace - * @memberof vtctldata.LookupVindexExternalizeRequest - * @instance - */ - LookupVindexExternalizeRequest.prototype.table_keyspace = ""; - - /** - * LookupVindexExternalizeRequest delete_workflow. - * @member {boolean} delete_workflow - * @memberof vtctldata.LookupVindexExternalizeRequest + * PingTabletRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.PingTabletRequest * @instance */ - LookupVindexExternalizeRequest.prototype.delete_workflow = false; + PingTabletRequest.prototype.tablet_alias = null; /** - * Creates a new LookupVindexExternalizeRequest instance using the specified properties. + * Creates a new PingTabletRequest instance using the specified properties. * @function create - * @memberof vtctldata.LookupVindexExternalizeRequest + * @memberof vtctldata.PingTabletRequest * @static - * @param {vtctldata.ILookupVindexExternalizeRequest=} [properties] Properties to set - * @returns {vtctldata.LookupVindexExternalizeRequest} LookupVindexExternalizeRequest instance + * @param {vtctldata.IPingTabletRequest=} [properties] Properties to set + * @returns {vtctldata.PingTabletRequest} PingTabletRequest instance */ - LookupVindexExternalizeRequest.create = function create(properties) { - return new LookupVindexExternalizeRequest(properties); + PingTabletRequest.create = function create(properties) { + return new PingTabletRequest(properties); }; /** - * Encodes the specified LookupVindexExternalizeRequest message. Does not implicitly {@link vtctldata.LookupVindexExternalizeRequest.verify|verify} messages. + * Encodes the specified PingTabletRequest message. Does not implicitly {@link vtctldata.PingTabletRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.LookupVindexExternalizeRequest + * @memberof vtctldata.PingTabletRequest * @static - * @param {vtctldata.ILookupVindexExternalizeRequest} message LookupVindexExternalizeRequest message or plain object to encode + * @param {vtctldata.IPingTabletRequest} message PingTabletRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexExternalizeRequest.encode = function encode(message, writer) { + PingTabletRequest.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.table_keyspace != null && Object.hasOwnProperty.call(message, "table_keyspace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.table_keyspace); - if (message.delete_workflow != null && Object.hasOwnProperty.call(message, "delete_workflow")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.delete_workflow); + 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(); return writer; }; /** - * Encodes the specified LookupVindexExternalizeRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexExternalizeRequest.verify|verify} messages. + * Encodes the specified PingTabletRequest message, length delimited. Does not implicitly {@link vtctldata.PingTabletRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.LookupVindexExternalizeRequest + * @memberof vtctldata.PingTabletRequest * @static - * @param {vtctldata.ILookupVindexExternalizeRequest} message LookupVindexExternalizeRequest message or plain object to encode + * @param {vtctldata.IPingTabletRequest} message PingTabletRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexExternalizeRequest.encodeDelimited = function encodeDelimited(message, writer) { + PingTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer. + * Decodes a PingTabletRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.LookupVindexExternalizeRequest + * @memberof vtctldata.PingTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.LookupVindexExternalizeRequest} LookupVindexExternalizeRequest + * @returns {vtctldata.PingTabletRequest} PingTabletRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexExternalizeRequest.decode = function decode(reader, length) { + PingTabletRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexExternalizeRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PingTabletRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.name = reader.string(); - break; - } - case 3: { - message.table_keyspace = reader.string(); - break; - } - case 4: { - message.delete_workflow = reader.bool(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -164011,148 +172603,126 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer, length delimited. + * Decodes a PingTabletRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.LookupVindexExternalizeRequest + * @memberof vtctldata.PingTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.LookupVindexExternalizeRequest} LookupVindexExternalizeRequest + * @returns {vtctldata.PingTabletRequest} PingTabletRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexExternalizeRequest.decodeDelimited = function decodeDelimited(reader) { + PingTabletRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupVindexExternalizeRequest message. + * Verifies a PingTabletRequest message. * @function verify - * @memberof vtctldata.LookupVindexExternalizeRequest + * @memberof vtctldata.PingTabletRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupVindexExternalizeRequest.verify = function verify(message) { + PingTabletRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace")) - if (!$util.isString(message.table_keyspace)) - return "table_keyspace: string expected"; - if (message.delete_workflow != null && message.hasOwnProperty("delete_workflow")) - if (typeof message.delete_workflow !== "boolean") - return "delete_workflow: boolean expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } return null; }; /** - * Creates a LookupVindexExternalizeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PingTabletRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.LookupVindexExternalizeRequest + * @memberof vtctldata.PingTabletRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.LookupVindexExternalizeRequest} LookupVindexExternalizeRequest + * @returns {vtctldata.PingTabletRequest} PingTabletRequest */ - LookupVindexExternalizeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.LookupVindexExternalizeRequest) + PingTabletRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.PingTabletRequest) return object; - let message = new $root.vtctldata.LookupVindexExternalizeRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.name != null) - message.name = String(object.name); - if (object.table_keyspace != null) - message.table_keyspace = String(object.table_keyspace); - if (object.delete_workflow != null) - message.delete_workflow = Boolean(object.delete_workflow); + let message = new $root.vtctldata.PingTabletRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.PingTabletRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } return message; }; /** - * Creates a plain object from a LookupVindexExternalizeRequest message. Also converts values to other types if specified. + * Creates a plain object from a PingTabletRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.LookupVindexExternalizeRequest + * @memberof vtctldata.PingTabletRequest * @static - * @param {vtctldata.LookupVindexExternalizeRequest} message LookupVindexExternalizeRequest + * @param {vtctldata.PingTabletRequest} message PingTabletRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupVindexExternalizeRequest.toObject = function toObject(message, options) { + PingTabletRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.name = ""; - object.table_keyspace = ""; - object.delete_workflow = false; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace")) - object.table_keyspace = message.table_keyspace; - if (message.delete_workflow != null && message.hasOwnProperty("delete_workflow")) - object.delete_workflow = message.delete_workflow; + if (options.defaults) + object.tablet_alias = null; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); return object; }; /** - * Converts this LookupVindexExternalizeRequest to JSON. + * Converts this PingTabletRequest to JSON. * @function toJSON - * @memberof vtctldata.LookupVindexExternalizeRequest + * @memberof vtctldata.PingTabletRequest * @instance * @returns {Object.} JSON object */ - LookupVindexExternalizeRequest.prototype.toJSON = function toJSON() { + PingTabletRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LookupVindexExternalizeRequest + * Gets the default type url for PingTabletRequest * @function getTypeUrl - * @memberof vtctldata.LookupVindexExternalizeRequest + * @memberof vtctldata.PingTabletRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LookupVindexExternalizeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PingTabletRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.LookupVindexExternalizeRequest"; + return typeUrlPrefix + "/vtctldata.PingTabletRequest"; }; - return LookupVindexExternalizeRequest; + return PingTabletRequest; })(); - vtctldata.LookupVindexExternalizeResponse = (function() { + vtctldata.PingTabletResponse = (function() { /** - * Properties of a LookupVindexExternalizeResponse. + * Properties of a PingTabletResponse. * @memberof vtctldata - * @interface ILookupVindexExternalizeResponse - * @property {boolean|null} [workflow_stopped] LookupVindexExternalizeResponse workflow_stopped - * @property {boolean|null} [workflow_deleted] LookupVindexExternalizeResponse workflow_deleted + * @interface IPingTabletResponse */ /** - * Constructs a new LookupVindexExternalizeResponse. + * Constructs a new PingTabletResponse. * @memberof vtctldata - * @classdesc Represents a LookupVindexExternalizeResponse. - * @implements ILookupVindexExternalizeResponse + * @classdesc Represents a PingTabletResponse. + * @implements IPingTabletResponse * @constructor - * @param {vtctldata.ILookupVindexExternalizeResponse=} [properties] Properties to set + * @param {vtctldata.IPingTabletResponse=} [properties] Properties to set */ - function LookupVindexExternalizeResponse(properties) { + function PingTabletResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -164160,91 +172730,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * LookupVindexExternalizeResponse workflow_stopped. - * @member {boolean} workflow_stopped - * @memberof vtctldata.LookupVindexExternalizeResponse - * @instance - */ - LookupVindexExternalizeResponse.prototype.workflow_stopped = false; - - /** - * LookupVindexExternalizeResponse workflow_deleted. - * @member {boolean} workflow_deleted - * @memberof vtctldata.LookupVindexExternalizeResponse - * @instance - */ - LookupVindexExternalizeResponse.prototype.workflow_deleted = false; - - /** - * Creates a new LookupVindexExternalizeResponse instance using the specified properties. + * Creates a new PingTabletResponse instance using the specified properties. * @function create - * @memberof vtctldata.LookupVindexExternalizeResponse + * @memberof vtctldata.PingTabletResponse * @static - * @param {vtctldata.ILookupVindexExternalizeResponse=} [properties] Properties to set - * @returns {vtctldata.LookupVindexExternalizeResponse} LookupVindexExternalizeResponse instance + * @param {vtctldata.IPingTabletResponse=} [properties] Properties to set + * @returns {vtctldata.PingTabletResponse} PingTabletResponse instance */ - LookupVindexExternalizeResponse.create = function create(properties) { - return new LookupVindexExternalizeResponse(properties); + PingTabletResponse.create = function create(properties) { + return new PingTabletResponse(properties); }; /** - * Encodes the specified LookupVindexExternalizeResponse message. Does not implicitly {@link vtctldata.LookupVindexExternalizeResponse.verify|verify} messages. + * Encodes the specified PingTabletResponse message. Does not implicitly {@link vtctldata.PingTabletResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.LookupVindexExternalizeResponse + * @memberof vtctldata.PingTabletResponse * @static - * @param {vtctldata.ILookupVindexExternalizeResponse} message LookupVindexExternalizeResponse message or plain object to encode + * @param {vtctldata.IPingTabletResponse} message PingTabletResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexExternalizeResponse.encode = function encode(message, writer) { + PingTabletResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workflow_stopped != null && Object.hasOwnProperty.call(message, "workflow_stopped")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.workflow_stopped); - if (message.workflow_deleted != null && Object.hasOwnProperty.call(message, "workflow_deleted")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.workflow_deleted); return writer; }; /** - * Encodes the specified LookupVindexExternalizeResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexExternalizeResponse.verify|verify} messages. + * Encodes the specified PingTabletResponse message, length delimited. Does not implicitly {@link vtctldata.PingTabletResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.LookupVindexExternalizeResponse + * @memberof vtctldata.PingTabletResponse * @static - * @param {vtctldata.ILookupVindexExternalizeResponse} message LookupVindexExternalizeResponse message or plain object to encode + * @param {vtctldata.IPingTabletResponse} message PingTabletResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexExternalizeResponse.encodeDelimited = function encodeDelimited(message, writer) { + PingTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer. + * Decodes a PingTabletResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.LookupVindexExternalizeResponse + * @memberof vtctldata.PingTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.LookupVindexExternalizeResponse} LookupVindexExternalizeResponse + * @returns {vtctldata.PingTabletResponse} PingTabletResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexExternalizeResponse.decode = function decode(reader, length) { + PingTabletResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexExternalizeResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PingTabletResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.workflow_stopped = reader.bool(); - break; - } - case 2: { - message.workflow_deleted = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -164254,133 +172796,116 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer, length delimited. + * Decodes a PingTabletResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.LookupVindexExternalizeResponse + * @memberof vtctldata.PingTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.LookupVindexExternalizeResponse} LookupVindexExternalizeResponse + * @returns {vtctldata.PingTabletResponse} PingTabletResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexExternalizeResponse.decodeDelimited = function decodeDelimited(reader) { + PingTabletResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupVindexExternalizeResponse message. + * Verifies a PingTabletResponse message. * @function verify - * @memberof vtctldata.LookupVindexExternalizeResponse + * @memberof vtctldata.PingTabletResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupVindexExternalizeResponse.verify = function verify(message) { + PingTabletResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workflow_stopped != null && message.hasOwnProperty("workflow_stopped")) - if (typeof message.workflow_stopped !== "boolean") - return "workflow_stopped: boolean expected"; - if (message.workflow_deleted != null && message.hasOwnProperty("workflow_deleted")) - if (typeof message.workflow_deleted !== "boolean") - return "workflow_deleted: boolean expected"; return null; }; /** - * Creates a LookupVindexExternalizeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PingTabletResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.LookupVindexExternalizeResponse + * @memberof vtctldata.PingTabletResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.LookupVindexExternalizeResponse} LookupVindexExternalizeResponse + * @returns {vtctldata.PingTabletResponse} PingTabletResponse */ - LookupVindexExternalizeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.LookupVindexExternalizeResponse) + PingTabletResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.PingTabletResponse) return object; - let message = new $root.vtctldata.LookupVindexExternalizeResponse(); - if (object.workflow_stopped != null) - message.workflow_stopped = Boolean(object.workflow_stopped); - if (object.workflow_deleted != null) - message.workflow_deleted = Boolean(object.workflow_deleted); - return message; + return new $root.vtctldata.PingTabletResponse(); }; /** - * Creates a plain object from a LookupVindexExternalizeResponse message. Also converts values to other types if specified. + * Creates a plain object from a PingTabletResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.LookupVindexExternalizeResponse + * @memberof vtctldata.PingTabletResponse * @static - * @param {vtctldata.LookupVindexExternalizeResponse} message LookupVindexExternalizeResponse + * @param {vtctldata.PingTabletResponse} message PingTabletResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupVindexExternalizeResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.workflow_stopped = false; - object.workflow_deleted = false; - } - if (message.workflow_stopped != null && message.hasOwnProperty("workflow_stopped")) - object.workflow_stopped = message.workflow_stopped; - if (message.workflow_deleted != null && message.hasOwnProperty("workflow_deleted")) - object.workflow_deleted = message.workflow_deleted; - return object; + PingTabletResponse.toObject = function toObject() { + return {}; }; /** - * Converts this LookupVindexExternalizeResponse to JSON. + * Converts this PingTabletResponse to JSON. * @function toJSON - * @memberof vtctldata.LookupVindexExternalizeResponse + * @memberof vtctldata.PingTabletResponse * @instance * @returns {Object.} JSON object */ - LookupVindexExternalizeResponse.prototype.toJSON = function toJSON() { + PingTabletResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LookupVindexExternalizeResponse + * Gets the default type url for PingTabletResponse * @function getTypeUrl - * @memberof vtctldata.LookupVindexExternalizeResponse + * @memberof vtctldata.PingTabletResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LookupVindexExternalizeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PingTabletResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.LookupVindexExternalizeResponse"; + return typeUrlPrefix + "/vtctldata.PingTabletResponse"; }; - return LookupVindexExternalizeResponse; + return PingTabletResponse; })(); - vtctldata.LookupVindexInternalizeRequest = (function() { + vtctldata.PlannedReparentShardRequest = (function() { /** - * Properties of a LookupVindexInternalizeRequest. + * Properties of a PlannedReparentShardRequest. * @memberof vtctldata - * @interface ILookupVindexInternalizeRequest - * @property {string|null} [keyspace] LookupVindexInternalizeRequest keyspace - * @property {string|null} [name] LookupVindexInternalizeRequest name - * @property {string|null} [table_keyspace] LookupVindexInternalizeRequest table_keyspace + * @interface IPlannedReparentShardRequest + * @property {string|null} [keyspace] PlannedReparentShardRequest keyspace + * @property {string|null} [shard] PlannedReparentShardRequest shard + * @property {topodata.ITabletAlias|null} [new_primary] PlannedReparentShardRequest new_primary + * @property {topodata.ITabletAlias|null} [avoid_primary] PlannedReparentShardRequest avoid_primary + * @property {vttime.IDuration|null} [wait_replicas_timeout] PlannedReparentShardRequest wait_replicas_timeout + * @property {vttime.IDuration|null} [tolerable_replication_lag] PlannedReparentShardRequest tolerable_replication_lag + * @property {boolean|null} [allow_cross_cell_promotion] PlannedReparentShardRequest allow_cross_cell_promotion + * @property {topodata.ITabletAlias|null} [expected_primary] PlannedReparentShardRequest expected_primary */ /** - * Constructs a new LookupVindexInternalizeRequest. + * Constructs a new PlannedReparentShardRequest. * @memberof vtctldata - * @classdesc Represents a LookupVindexInternalizeRequest. - * @implements ILookupVindexInternalizeRequest + * @classdesc Represents a PlannedReparentShardRequest. + * @implements IPlannedReparentShardRequest * @constructor - * @param {vtctldata.ILookupVindexInternalizeRequest=} [properties] Properties to set + * @param {vtctldata.IPlannedReparentShardRequest=} [properties] Properties to set */ - function LookupVindexInternalizeRequest(properties) { + function PlannedReparentShardRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -164388,90 +172913,140 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * LookupVindexInternalizeRequest keyspace. + * PlannedReparentShardRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.LookupVindexInternalizeRequest + * @memberof vtctldata.PlannedReparentShardRequest * @instance */ - LookupVindexInternalizeRequest.prototype.keyspace = ""; + PlannedReparentShardRequest.prototype.keyspace = ""; /** - * LookupVindexInternalizeRequest name. - * @member {string} name - * @memberof vtctldata.LookupVindexInternalizeRequest + * PlannedReparentShardRequest shard. + * @member {string} shard + * @memberof vtctldata.PlannedReparentShardRequest * @instance */ - LookupVindexInternalizeRequest.prototype.name = ""; + PlannedReparentShardRequest.prototype.shard = ""; /** - * LookupVindexInternalizeRequest table_keyspace. - * @member {string} table_keyspace - * @memberof vtctldata.LookupVindexInternalizeRequest + * PlannedReparentShardRequest new_primary. + * @member {topodata.ITabletAlias|null|undefined} new_primary + * @memberof vtctldata.PlannedReparentShardRequest * @instance */ - LookupVindexInternalizeRequest.prototype.table_keyspace = ""; + PlannedReparentShardRequest.prototype.new_primary = null; /** - * Creates a new LookupVindexInternalizeRequest instance using the specified properties. + * PlannedReparentShardRequest avoid_primary. + * @member {topodata.ITabletAlias|null|undefined} avoid_primary + * @memberof vtctldata.PlannedReparentShardRequest + * @instance + */ + PlannedReparentShardRequest.prototype.avoid_primary = null; + + /** + * PlannedReparentShardRequest wait_replicas_timeout. + * @member {vttime.IDuration|null|undefined} wait_replicas_timeout + * @memberof vtctldata.PlannedReparentShardRequest + * @instance + */ + PlannedReparentShardRequest.prototype.wait_replicas_timeout = null; + + /** + * PlannedReparentShardRequest tolerable_replication_lag. + * @member {vttime.IDuration|null|undefined} tolerable_replication_lag + * @memberof vtctldata.PlannedReparentShardRequest + * @instance + */ + PlannedReparentShardRequest.prototype.tolerable_replication_lag = null; + + /** + * PlannedReparentShardRequest allow_cross_cell_promotion. + * @member {boolean} allow_cross_cell_promotion + * @memberof vtctldata.PlannedReparentShardRequest + * @instance + */ + PlannedReparentShardRequest.prototype.allow_cross_cell_promotion = false; + + /** + * PlannedReparentShardRequest expected_primary. + * @member {topodata.ITabletAlias|null|undefined} expected_primary + * @memberof vtctldata.PlannedReparentShardRequest + * @instance + */ + PlannedReparentShardRequest.prototype.expected_primary = null; + + /** + * Creates a new PlannedReparentShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.LookupVindexInternalizeRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {vtctldata.ILookupVindexInternalizeRequest=} [properties] Properties to set - * @returns {vtctldata.LookupVindexInternalizeRequest} LookupVindexInternalizeRequest instance + * @param {vtctldata.IPlannedReparentShardRequest=} [properties] Properties to set + * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest instance */ - LookupVindexInternalizeRequest.create = function create(properties) { - return new LookupVindexInternalizeRequest(properties); + PlannedReparentShardRequest.create = function create(properties) { + return new PlannedReparentShardRequest(properties); }; /** - * Encodes the specified LookupVindexInternalizeRequest message. Does not implicitly {@link vtctldata.LookupVindexInternalizeRequest.verify|verify} messages. + * Encodes the specified PlannedReparentShardRequest message. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.LookupVindexInternalizeRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {vtctldata.ILookupVindexInternalizeRequest} message LookupVindexInternalizeRequest message or plain object to encode + * @param {vtctldata.IPlannedReparentShardRequest} message PlannedReparentShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexInternalizeRequest.encode = function encode(message, writer) { + PlannedReparentShardRequest.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.table_keyspace != null && Object.hasOwnProperty.call(message, "table_keyspace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.table_keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.new_primary != null && Object.hasOwnProperty.call(message, "new_primary")) + $root.topodata.TabletAlias.encode(message.new_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.avoid_primary != null && Object.hasOwnProperty.call(message, "avoid_primary")) + $root.topodata.TabletAlias.encode(message.avoid_primary, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) + $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.tolerable_replication_lag != null && Object.hasOwnProperty.call(message, "tolerable_replication_lag")) + $root.vttime.Duration.encode(message.tolerable_replication_lag, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.allow_cross_cell_promotion != null && Object.hasOwnProperty.call(message, "allow_cross_cell_promotion")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.allow_cross_cell_promotion); + if (message.expected_primary != null && Object.hasOwnProperty.call(message, "expected_primary")) + $root.topodata.TabletAlias.encode(message.expected_primary, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified LookupVindexInternalizeRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexInternalizeRequest.verify|verify} messages. + * Encodes the specified PlannedReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.LookupVindexInternalizeRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {vtctldata.ILookupVindexInternalizeRequest} message LookupVindexInternalizeRequest message or plain object to encode + * @param {vtctldata.IPlannedReparentShardRequest} message PlannedReparentShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexInternalizeRequest.encodeDelimited = function encodeDelimited(message, writer) { + PlannedReparentShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupVindexInternalizeRequest message from the specified reader or buffer. + * Decodes a PlannedReparentShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.LookupVindexInternalizeRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.LookupVindexInternalizeRequest} LookupVindexInternalizeRequest + * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexInternalizeRequest.decode = function decode(reader, length) { + PlannedReparentShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexInternalizeRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PlannedReparentShardRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -164480,11 +173055,31 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 2: { - message.name = reader.string(); + message.shard = reader.string(); break; } case 3: { - message.table_keyspace = reader.string(); + message.new_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 4: { + message.avoid_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 5: { + message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + } + case 6: { + message.tolerable_replication_lag = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + } + case 7: { + message.allow_cross_cell_promotion = reader.bool(); + break; + } + case 8: { + message.expected_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -164496,138 +173091,208 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a LookupVindexInternalizeRequest message from the specified reader or buffer, length delimited. + * Decodes a PlannedReparentShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.LookupVindexInternalizeRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.LookupVindexInternalizeRequest} LookupVindexInternalizeRequest + * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexInternalizeRequest.decodeDelimited = function decodeDelimited(reader) { + PlannedReparentShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupVindexInternalizeRequest message. + * Verifies a PlannedReparentShardRequest message. * @function verify - * @memberof vtctldata.LookupVindexInternalizeRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupVindexInternalizeRequest.verify = function verify(message) { + PlannedReparentShardRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) if (!$util.isString(message.keyspace)) return "keyspace: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace")) - if (!$util.isString(message.table_keyspace)) - return "table_keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.new_primary != null && message.hasOwnProperty("new_primary")) { + let error = $root.topodata.TabletAlias.verify(message.new_primary); + if (error) + return "new_primary." + error; + } + if (message.avoid_primary != null && message.hasOwnProperty("avoid_primary")) { + let error = $root.topodata.TabletAlias.verify(message.avoid_primary); + if (error) + return "avoid_primary." + error; + } + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { + let error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (error) + return "wait_replicas_timeout." + error; + } + if (message.tolerable_replication_lag != null && message.hasOwnProperty("tolerable_replication_lag")) { + let error = $root.vttime.Duration.verify(message.tolerable_replication_lag); + if (error) + return "tolerable_replication_lag." + error; + } + if (message.allow_cross_cell_promotion != null && message.hasOwnProperty("allow_cross_cell_promotion")) + if (typeof message.allow_cross_cell_promotion !== "boolean") + return "allow_cross_cell_promotion: boolean expected"; + if (message.expected_primary != null && message.hasOwnProperty("expected_primary")) { + let error = $root.topodata.TabletAlias.verify(message.expected_primary); + if (error) + return "expected_primary." + error; + } return null; }; /** - * Creates a LookupVindexInternalizeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PlannedReparentShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.LookupVindexInternalizeRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.LookupVindexInternalizeRequest} LookupVindexInternalizeRequest + * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest */ - LookupVindexInternalizeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.LookupVindexInternalizeRequest) + PlannedReparentShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.PlannedReparentShardRequest) return object; - let message = new $root.vtctldata.LookupVindexInternalizeRequest(); + let message = new $root.vtctldata.PlannedReparentShardRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.name != null) - message.name = String(object.name); - if (object.table_keyspace != null) - message.table_keyspace = String(object.table_keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.new_primary != null) { + if (typeof object.new_primary !== "object") + throw TypeError(".vtctldata.PlannedReparentShardRequest.new_primary: object expected"); + message.new_primary = $root.topodata.TabletAlias.fromObject(object.new_primary); + } + if (object.avoid_primary != null) { + if (typeof object.avoid_primary !== "object") + throw TypeError(".vtctldata.PlannedReparentShardRequest.avoid_primary: object expected"); + message.avoid_primary = $root.topodata.TabletAlias.fromObject(object.avoid_primary); + } + if (object.wait_replicas_timeout != null) { + if (typeof object.wait_replicas_timeout !== "object") + throw TypeError(".vtctldata.PlannedReparentShardRequest.wait_replicas_timeout: object expected"); + message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); + } + if (object.tolerable_replication_lag != null) { + if (typeof object.tolerable_replication_lag !== "object") + throw TypeError(".vtctldata.PlannedReparentShardRequest.tolerable_replication_lag: object expected"); + message.tolerable_replication_lag = $root.vttime.Duration.fromObject(object.tolerable_replication_lag); + } + if (object.allow_cross_cell_promotion != null) + message.allow_cross_cell_promotion = Boolean(object.allow_cross_cell_promotion); + if (object.expected_primary != null) { + if (typeof object.expected_primary !== "object") + throw TypeError(".vtctldata.PlannedReparentShardRequest.expected_primary: object expected"); + message.expected_primary = $root.topodata.TabletAlias.fromObject(object.expected_primary); + } return message; }; /** - * Creates a plain object from a LookupVindexInternalizeRequest message. Also converts values to other types if specified. + * Creates a plain object from a PlannedReparentShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.LookupVindexInternalizeRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {vtctldata.LookupVindexInternalizeRequest} message LookupVindexInternalizeRequest + * @param {vtctldata.PlannedReparentShardRequest} message PlannedReparentShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupVindexInternalizeRequest.toObject = function toObject(message, options) { + PlannedReparentShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.keyspace = ""; - object.name = ""; - object.table_keyspace = ""; + object.shard = ""; + object.new_primary = null; + object.avoid_primary = null; + object.wait_replicas_timeout = null; + object.tolerable_replication_lag = null; + object.allow_cross_cell_promotion = false; + object.expected_primary = null; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.table_keyspace != null && message.hasOwnProperty("table_keyspace")) - object.table_keyspace = message.table_keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.new_primary != null && message.hasOwnProperty("new_primary")) + object.new_primary = $root.topodata.TabletAlias.toObject(message.new_primary, options); + if (message.avoid_primary != null && message.hasOwnProperty("avoid_primary")) + object.avoid_primary = $root.topodata.TabletAlias.toObject(message.avoid_primary, options); + 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.tolerable_replication_lag != null && message.hasOwnProperty("tolerable_replication_lag")) + object.tolerable_replication_lag = $root.vttime.Duration.toObject(message.tolerable_replication_lag, options); + if (message.allow_cross_cell_promotion != null && message.hasOwnProperty("allow_cross_cell_promotion")) + object.allow_cross_cell_promotion = message.allow_cross_cell_promotion; + if (message.expected_primary != null && message.hasOwnProperty("expected_primary")) + object.expected_primary = $root.topodata.TabletAlias.toObject(message.expected_primary, options); return object; }; /** - * Converts this LookupVindexInternalizeRequest to JSON. + * Converts this PlannedReparentShardRequest to JSON. * @function toJSON - * @memberof vtctldata.LookupVindexInternalizeRequest + * @memberof vtctldata.PlannedReparentShardRequest * @instance * @returns {Object.} JSON object */ - LookupVindexInternalizeRequest.prototype.toJSON = function toJSON() { + PlannedReparentShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LookupVindexInternalizeRequest + * Gets the default type url for PlannedReparentShardRequest * @function getTypeUrl - * @memberof vtctldata.LookupVindexInternalizeRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LookupVindexInternalizeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PlannedReparentShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.LookupVindexInternalizeRequest"; + return typeUrlPrefix + "/vtctldata.PlannedReparentShardRequest"; }; - return LookupVindexInternalizeRequest; + return PlannedReparentShardRequest; })(); - vtctldata.LookupVindexInternalizeResponse = (function() { + vtctldata.PlannedReparentShardResponse = (function() { /** - * Properties of a LookupVindexInternalizeResponse. + * Properties of a PlannedReparentShardResponse. * @memberof vtctldata - * @interface ILookupVindexInternalizeResponse + * @interface IPlannedReparentShardResponse + * @property {string|null} [keyspace] PlannedReparentShardResponse keyspace + * @property {string|null} [shard] PlannedReparentShardResponse shard + * @property {topodata.ITabletAlias|null} [promoted_primary] PlannedReparentShardResponse promoted_primary + * @property {Array.|null} [events] PlannedReparentShardResponse events */ /** - * Constructs a new LookupVindexInternalizeResponse. + * Constructs a new PlannedReparentShardResponse. * @memberof vtctldata - * @classdesc Represents a LookupVindexInternalizeResponse. - * @implements ILookupVindexInternalizeResponse + * @classdesc Represents a PlannedReparentShardResponse. + * @implements IPlannedReparentShardResponse * @constructor - * @param {vtctldata.ILookupVindexInternalizeResponse=} [properties] Properties to set + * @param {vtctldata.IPlannedReparentShardResponse=} [properties] Properties to set */ - function LookupVindexInternalizeResponse(properties) { + function PlannedReparentShardResponse(properties) { + this.events = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -164635,63 +173300,122 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new LookupVindexInternalizeResponse instance using the specified properties. + * PlannedReparentShardResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.PlannedReparentShardResponse + * @instance + */ + PlannedReparentShardResponse.prototype.keyspace = ""; + + /** + * PlannedReparentShardResponse shard. + * @member {string} shard + * @memberof vtctldata.PlannedReparentShardResponse + * @instance + */ + PlannedReparentShardResponse.prototype.shard = ""; + + /** + * PlannedReparentShardResponse promoted_primary. + * @member {topodata.ITabletAlias|null|undefined} promoted_primary + * @memberof vtctldata.PlannedReparentShardResponse + * @instance + */ + PlannedReparentShardResponse.prototype.promoted_primary = null; + + /** + * PlannedReparentShardResponse events. + * @member {Array.} events + * @memberof vtctldata.PlannedReparentShardResponse + * @instance + */ + PlannedReparentShardResponse.prototype.events = $util.emptyArray; + + /** + * Creates a new PlannedReparentShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.LookupVindexInternalizeResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {vtctldata.ILookupVindexInternalizeResponse=} [properties] Properties to set - * @returns {vtctldata.LookupVindexInternalizeResponse} LookupVindexInternalizeResponse instance + * @param {vtctldata.IPlannedReparentShardResponse=} [properties] Properties to set + * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse instance */ - LookupVindexInternalizeResponse.create = function create(properties) { - return new LookupVindexInternalizeResponse(properties); + PlannedReparentShardResponse.create = function create(properties) { + return new PlannedReparentShardResponse(properties); }; /** - * Encodes the specified LookupVindexInternalizeResponse message. Does not implicitly {@link vtctldata.LookupVindexInternalizeResponse.verify|verify} messages. + * Encodes the specified PlannedReparentShardResponse message. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.LookupVindexInternalizeResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {vtctldata.ILookupVindexInternalizeResponse} message LookupVindexInternalizeResponse message or plain object to encode + * @param {vtctldata.IPlannedReparentShardResponse} message PlannedReparentShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexInternalizeResponse.encode = function encode(message, writer) { + PlannedReparentShardResponse.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.promoted_primary != null && Object.hasOwnProperty.call(message, "promoted_primary")) + $root.topodata.TabletAlias.encode(message.promoted_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.events != null && message.events.length) + for (let i = 0; i < message.events.length; ++i) + $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified LookupVindexInternalizeResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexInternalizeResponse.verify|verify} messages. + * Encodes the specified PlannedReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.LookupVindexInternalizeResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {vtctldata.ILookupVindexInternalizeResponse} message LookupVindexInternalizeResponse message or plain object to encode + * @param {vtctldata.IPlannedReparentShardResponse} message PlannedReparentShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupVindexInternalizeResponse.encodeDelimited = function encodeDelimited(message, writer) { + PlannedReparentShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupVindexInternalizeResponse message from the specified reader or buffer. + * Decodes a PlannedReparentShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.LookupVindexInternalizeResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.LookupVindexInternalizeResponse} LookupVindexInternalizeResponse + * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexInternalizeResponse.decode = function decode(reader, length) { + PlannedReparentShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.LookupVindexInternalizeResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PlannedReparentShardResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.keyspace = reader.string(); + break; + } + case 2: { + message.shard = reader.string(); + break; + } + case 3: { + message.promoted_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.logutil.Event.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -164701,109 +173425,173 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a LookupVindexInternalizeResponse message from the specified reader or buffer, length delimited. + * Decodes a PlannedReparentShardResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.LookupVindexInternalizeResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.LookupVindexInternalizeResponse} LookupVindexInternalizeResponse + * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupVindexInternalizeResponse.decodeDelimited = function decodeDelimited(reader) { + PlannedReparentShardResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupVindexInternalizeResponse message. + * Verifies a PlannedReparentShardResponse message. * @function verify - * @memberof vtctldata.LookupVindexInternalizeResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupVindexInternalizeResponse.verify = function verify(message) { + PlannedReparentShardResponse.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.promoted_primary != null && message.hasOwnProperty("promoted_primary")) { + let error = $root.topodata.TabletAlias.verify(message.promoted_primary); + if (error) + return "promoted_primary." + error; + } + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (let i = 0; i < message.events.length; ++i) { + let error = $root.logutil.Event.verify(message.events[i]); + if (error) + return "events." + error; + } + } return null; }; /** - * Creates a LookupVindexInternalizeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PlannedReparentShardResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.LookupVindexInternalizeResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.LookupVindexInternalizeResponse} LookupVindexInternalizeResponse + * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse */ - LookupVindexInternalizeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.LookupVindexInternalizeResponse) + PlannedReparentShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.PlannedReparentShardResponse) return object; - return new $root.vtctldata.LookupVindexInternalizeResponse(); + let message = new $root.vtctldata.PlannedReparentShardResponse(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.promoted_primary != null) { + if (typeof object.promoted_primary !== "object") + throw TypeError(".vtctldata.PlannedReparentShardResponse.promoted_primary: object expected"); + message.promoted_primary = $root.topodata.TabletAlias.fromObject(object.promoted_primary); + } + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".vtctldata.PlannedReparentShardResponse.events: array expected"); + message.events = []; + for (let i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".vtctldata.PlannedReparentShardResponse.events: object expected"); + message.events[i] = $root.logutil.Event.fromObject(object.events[i]); + } + } + return message; }; /** - * Creates a plain object from a LookupVindexInternalizeResponse message. Also converts values to other types if specified. + * Creates a plain object from a PlannedReparentShardResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.LookupVindexInternalizeResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {vtctldata.LookupVindexInternalizeResponse} message LookupVindexInternalizeResponse + * @param {vtctldata.PlannedReparentShardResponse} message PlannedReparentShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupVindexInternalizeResponse.toObject = function toObject() { - return {}; + PlannedReparentShardResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.events = []; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.promoted_primary = null; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.promoted_primary != null && message.hasOwnProperty("promoted_primary")) + object.promoted_primary = $root.topodata.TabletAlias.toObject(message.promoted_primary, options); + if (message.events && message.events.length) { + object.events = []; + for (let j = 0; j < message.events.length; ++j) + object.events[j] = $root.logutil.Event.toObject(message.events[j], options); + } + return object; }; /** - * Converts this LookupVindexInternalizeResponse to JSON. + * Converts this PlannedReparentShardResponse to JSON. * @function toJSON - * @memberof vtctldata.LookupVindexInternalizeResponse + * @memberof vtctldata.PlannedReparentShardResponse * @instance * @returns {Object.} JSON object */ - LookupVindexInternalizeResponse.prototype.toJSON = function toJSON() { + PlannedReparentShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LookupVindexInternalizeResponse + * Gets the default type url for PlannedReparentShardResponse * @function getTypeUrl - * @memberof vtctldata.LookupVindexInternalizeResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LookupVindexInternalizeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PlannedReparentShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.LookupVindexInternalizeResponse"; + return typeUrlPrefix + "/vtctldata.PlannedReparentShardResponse"; }; - return LookupVindexInternalizeResponse; + return PlannedReparentShardResponse; })(); - vtctldata.MaterializeCreateRequest = (function() { + vtctldata.RebuildKeyspaceGraphRequest = (function() { /** - * Properties of a MaterializeCreateRequest. + * Properties of a RebuildKeyspaceGraphRequest. * @memberof vtctldata - * @interface IMaterializeCreateRequest - * @property {vtctldata.IMaterializeSettings|null} [settings] MaterializeCreateRequest settings + * @interface IRebuildKeyspaceGraphRequest + * @property {string|null} [keyspace] RebuildKeyspaceGraphRequest keyspace + * @property {Array.|null} [cells] RebuildKeyspaceGraphRequest cells + * @property {boolean|null} [allow_partial] RebuildKeyspaceGraphRequest allow_partial */ /** - * Constructs a new MaterializeCreateRequest. + * Constructs a new RebuildKeyspaceGraphRequest. * @memberof vtctldata - * @classdesc Represents a MaterializeCreateRequest. - * @implements IMaterializeCreateRequest + * @classdesc Represents a RebuildKeyspaceGraphRequest. + * @implements IRebuildKeyspaceGraphRequest * @constructor - * @param {vtctldata.IMaterializeCreateRequest=} [properties] Properties to set + * @param {vtctldata.IRebuildKeyspaceGraphRequest=} [properties] Properties to set */ - function MaterializeCreateRequest(properties) { + function RebuildKeyspaceGraphRequest(properties) { + this.cells = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -164811,75 +173599,106 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * MaterializeCreateRequest settings. - * @member {vtctldata.IMaterializeSettings|null|undefined} settings - * @memberof vtctldata.MaterializeCreateRequest + * RebuildKeyspaceGraphRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.RebuildKeyspaceGraphRequest * @instance */ - MaterializeCreateRequest.prototype.settings = null; + RebuildKeyspaceGraphRequest.prototype.keyspace = ""; /** - * Creates a new MaterializeCreateRequest instance using the specified properties. + * RebuildKeyspaceGraphRequest cells. + * @member {Array.} cells + * @memberof vtctldata.RebuildKeyspaceGraphRequest + * @instance + */ + RebuildKeyspaceGraphRequest.prototype.cells = $util.emptyArray; + + /** + * RebuildKeyspaceGraphRequest allow_partial. + * @member {boolean} allow_partial + * @memberof vtctldata.RebuildKeyspaceGraphRequest + * @instance + */ + RebuildKeyspaceGraphRequest.prototype.allow_partial = false; + + /** + * Creates a new RebuildKeyspaceGraphRequest instance using the specified properties. * @function create - * @memberof vtctldata.MaterializeCreateRequest + * @memberof vtctldata.RebuildKeyspaceGraphRequest * @static - * @param {vtctldata.IMaterializeCreateRequest=} [properties] Properties to set - * @returns {vtctldata.MaterializeCreateRequest} MaterializeCreateRequest instance + * @param {vtctldata.IRebuildKeyspaceGraphRequest=} [properties] Properties to set + * @returns {vtctldata.RebuildKeyspaceGraphRequest} RebuildKeyspaceGraphRequest instance */ - MaterializeCreateRequest.create = function create(properties) { - return new MaterializeCreateRequest(properties); + RebuildKeyspaceGraphRequest.create = function create(properties) { + return new RebuildKeyspaceGraphRequest(properties); }; /** - * Encodes the specified MaterializeCreateRequest message. Does not implicitly {@link vtctldata.MaterializeCreateRequest.verify|verify} messages. + * Encodes the specified RebuildKeyspaceGraphRequest message. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.MaterializeCreateRequest + * @memberof vtctldata.RebuildKeyspaceGraphRequest * @static - * @param {vtctldata.IMaterializeCreateRequest} message MaterializeCreateRequest message or plain object to encode + * @param {vtctldata.IRebuildKeyspaceGraphRequest} message RebuildKeyspaceGraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaterializeCreateRequest.encode = function encode(message, writer) { + RebuildKeyspaceGraphRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.settings != null && Object.hasOwnProperty.call(message, "settings")) - $root.vtctldata.MaterializeSettings.encode(message.settings, 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.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); + if (message.allow_partial != null && Object.hasOwnProperty.call(message, "allow_partial")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allow_partial); return writer; }; /** - * Encodes the specified MaterializeCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MaterializeCreateRequest.verify|verify} messages. + * Encodes the specified RebuildKeyspaceGraphRequest message, length delimited. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MaterializeCreateRequest + * @memberof vtctldata.RebuildKeyspaceGraphRequest * @static - * @param {vtctldata.IMaterializeCreateRequest} message MaterializeCreateRequest message or plain object to encode + * @param {vtctldata.IRebuildKeyspaceGraphRequest} message RebuildKeyspaceGraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaterializeCreateRequest.encodeDelimited = function encodeDelimited(message, writer) { + RebuildKeyspaceGraphRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaterializeCreateRequest message from the specified reader or buffer. + * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MaterializeCreateRequest + * @memberof vtctldata.RebuildKeyspaceGraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MaterializeCreateRequest} MaterializeCreateRequest + * @returns {vtctldata.RebuildKeyspaceGraphRequest} RebuildKeyspaceGraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaterializeCreateRequest.decode = function decode(reader, length) { + RebuildKeyspaceGraphRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MaterializeCreateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RebuildKeyspaceGraphRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.settings = $root.vtctldata.MaterializeSettings.decode(reader, reader.uint32()); + message.keyspace = reader.string(); + break; + } + case 2: { + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); + break; + } + case 3: { + message.allow_partial = reader.bool(); break; } default: @@ -164891,126 +173710,151 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MaterializeCreateRequest message from the specified reader or buffer, length delimited. + * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MaterializeCreateRequest + * @memberof vtctldata.RebuildKeyspaceGraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MaterializeCreateRequest} MaterializeCreateRequest + * @returns {vtctldata.RebuildKeyspaceGraphRequest} RebuildKeyspaceGraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaterializeCreateRequest.decodeDelimited = function decodeDelimited(reader) { + RebuildKeyspaceGraphRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaterializeCreateRequest message. + * Verifies a RebuildKeyspaceGraphRequest message. * @function verify - * @memberof vtctldata.MaterializeCreateRequest + * @memberof vtctldata.RebuildKeyspaceGraphRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaterializeCreateRequest.verify = function verify(message) { + RebuildKeyspaceGraphRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.settings != null && message.hasOwnProperty("settings")) { - let error = $root.vtctldata.MaterializeSettings.verify(message.settings); - if (error) - return "settings." + error; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; } + if (message.allow_partial != null && message.hasOwnProperty("allow_partial")) + if (typeof message.allow_partial !== "boolean") + return "allow_partial: boolean expected"; return null; }; /** - * Creates a MaterializeCreateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RebuildKeyspaceGraphRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MaterializeCreateRequest + * @memberof vtctldata.RebuildKeyspaceGraphRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.MaterializeCreateRequest} MaterializeCreateRequest + * @returns {vtctldata.RebuildKeyspaceGraphRequest} RebuildKeyspaceGraphRequest */ - MaterializeCreateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MaterializeCreateRequest) + RebuildKeyspaceGraphRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RebuildKeyspaceGraphRequest) return object; - let message = new $root.vtctldata.MaterializeCreateRequest(); - if (object.settings != null) { - if (typeof object.settings !== "object") - throw TypeError(".vtctldata.MaterializeCreateRequest.settings: object expected"); - message.settings = $root.vtctldata.MaterializeSettings.fromObject(object.settings); + let message = new $root.vtctldata.RebuildKeyspaceGraphRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.RebuildKeyspaceGraphRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); } + if (object.allow_partial != null) + message.allow_partial = Boolean(object.allow_partial); return message; }; /** - * Creates a plain object from a MaterializeCreateRequest message. Also converts values to other types if specified. + * Creates a plain object from a RebuildKeyspaceGraphRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MaterializeCreateRequest + * @memberof vtctldata.RebuildKeyspaceGraphRequest * @static - * @param {vtctldata.MaterializeCreateRequest} message MaterializeCreateRequest + * @param {vtctldata.RebuildKeyspaceGraphRequest} message RebuildKeyspaceGraphRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaterializeCreateRequest.toObject = function toObject(message, options) { + RebuildKeyspaceGraphRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.settings = null; - if (message.settings != null && message.hasOwnProperty("settings")) - object.settings = $root.vtctldata.MaterializeSettings.toObject(message.settings, options); + if (options.arrays || options.defaults) + object.cells = []; + if (options.defaults) { + object.keyspace = ""; + object.allow_partial = false; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + if (message.allow_partial != null && message.hasOwnProperty("allow_partial")) + object.allow_partial = message.allow_partial; return object; }; /** - * Converts this MaterializeCreateRequest to JSON. + * Converts this RebuildKeyspaceGraphRequest to JSON. * @function toJSON - * @memberof vtctldata.MaterializeCreateRequest + * @memberof vtctldata.RebuildKeyspaceGraphRequest * @instance * @returns {Object.} JSON object */ - MaterializeCreateRequest.prototype.toJSON = function toJSON() { + RebuildKeyspaceGraphRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MaterializeCreateRequest + * Gets the default type url for RebuildKeyspaceGraphRequest * @function getTypeUrl - * @memberof vtctldata.MaterializeCreateRequest + * @memberof vtctldata.RebuildKeyspaceGraphRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MaterializeCreateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RebuildKeyspaceGraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MaterializeCreateRequest"; + return typeUrlPrefix + "/vtctldata.RebuildKeyspaceGraphRequest"; }; - return MaterializeCreateRequest; + return RebuildKeyspaceGraphRequest; })(); - vtctldata.MaterializeCreateResponse = (function() { + vtctldata.RebuildKeyspaceGraphResponse = (function() { /** - * Properties of a MaterializeCreateResponse. + * Properties of a RebuildKeyspaceGraphResponse. * @memberof vtctldata - * @interface IMaterializeCreateResponse + * @interface IRebuildKeyspaceGraphResponse */ /** - * Constructs a new MaterializeCreateResponse. + * Constructs a new RebuildKeyspaceGraphResponse. * @memberof vtctldata - * @classdesc Represents a MaterializeCreateResponse. - * @implements IMaterializeCreateResponse + * @classdesc Represents a RebuildKeyspaceGraphResponse. + * @implements IRebuildKeyspaceGraphResponse * @constructor - * @param {vtctldata.IMaterializeCreateResponse=} [properties] Properties to set + * @param {vtctldata.IRebuildKeyspaceGraphResponse=} [properties] Properties to set */ - function MaterializeCreateResponse(properties) { + function RebuildKeyspaceGraphResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -165018,60 +173862,60 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new MaterializeCreateResponse instance using the specified properties. + * Creates a new RebuildKeyspaceGraphResponse instance using the specified properties. * @function create - * @memberof vtctldata.MaterializeCreateResponse + * @memberof vtctldata.RebuildKeyspaceGraphResponse * @static - * @param {vtctldata.IMaterializeCreateResponse=} [properties] Properties to set - * @returns {vtctldata.MaterializeCreateResponse} MaterializeCreateResponse instance + * @param {vtctldata.IRebuildKeyspaceGraphResponse=} [properties] Properties to set + * @returns {vtctldata.RebuildKeyspaceGraphResponse} RebuildKeyspaceGraphResponse instance */ - MaterializeCreateResponse.create = function create(properties) { - return new MaterializeCreateResponse(properties); + RebuildKeyspaceGraphResponse.create = function create(properties) { + return new RebuildKeyspaceGraphResponse(properties); }; /** - * Encodes the specified MaterializeCreateResponse message. Does not implicitly {@link vtctldata.MaterializeCreateResponse.verify|verify} messages. + * Encodes the specified RebuildKeyspaceGraphResponse message. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.MaterializeCreateResponse + * @memberof vtctldata.RebuildKeyspaceGraphResponse * @static - * @param {vtctldata.IMaterializeCreateResponse} message MaterializeCreateResponse message or plain object to encode + * @param {vtctldata.IRebuildKeyspaceGraphResponse} message RebuildKeyspaceGraphResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaterializeCreateResponse.encode = function encode(message, writer) { + RebuildKeyspaceGraphResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified MaterializeCreateResponse message, length delimited. Does not implicitly {@link vtctldata.MaterializeCreateResponse.verify|verify} messages. + * Encodes the specified RebuildKeyspaceGraphResponse message, length delimited. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MaterializeCreateResponse + * @memberof vtctldata.RebuildKeyspaceGraphResponse * @static - * @param {vtctldata.IMaterializeCreateResponse} message MaterializeCreateResponse message or plain object to encode + * @param {vtctldata.IRebuildKeyspaceGraphResponse} message RebuildKeyspaceGraphResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaterializeCreateResponse.encodeDelimited = function encodeDelimited(message, writer) { + RebuildKeyspaceGraphResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaterializeCreateResponse message from the specified reader or buffer. + * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MaterializeCreateResponse + * @memberof vtctldata.RebuildKeyspaceGraphResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MaterializeCreateResponse} MaterializeCreateResponse + * @returns {vtctldata.RebuildKeyspaceGraphResponse} RebuildKeyspaceGraphResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaterializeCreateResponse.decode = function decode(reader, length) { + RebuildKeyspaceGraphResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MaterializeCreateResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RebuildKeyspaceGraphResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -165084,129 +173928,110 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MaterializeCreateResponse message from the specified reader or buffer, length delimited. + * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MaterializeCreateResponse + * @memberof vtctldata.RebuildKeyspaceGraphResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MaterializeCreateResponse} MaterializeCreateResponse + * @returns {vtctldata.RebuildKeyspaceGraphResponse} RebuildKeyspaceGraphResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaterializeCreateResponse.decodeDelimited = function decodeDelimited(reader) { + RebuildKeyspaceGraphResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaterializeCreateResponse message. + * Verifies a RebuildKeyspaceGraphResponse message. * @function verify - * @memberof vtctldata.MaterializeCreateResponse + * @memberof vtctldata.RebuildKeyspaceGraphResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaterializeCreateResponse.verify = function verify(message) { + RebuildKeyspaceGraphResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a MaterializeCreateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RebuildKeyspaceGraphResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MaterializeCreateResponse + * @memberof vtctldata.RebuildKeyspaceGraphResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.MaterializeCreateResponse} MaterializeCreateResponse + * @returns {vtctldata.RebuildKeyspaceGraphResponse} RebuildKeyspaceGraphResponse */ - MaterializeCreateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MaterializeCreateResponse) + RebuildKeyspaceGraphResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RebuildKeyspaceGraphResponse) return object; - return new $root.vtctldata.MaterializeCreateResponse(); + return new $root.vtctldata.RebuildKeyspaceGraphResponse(); }; /** - * Creates a plain object from a MaterializeCreateResponse message. Also converts values to other types if specified. + * Creates a plain object from a RebuildKeyspaceGraphResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MaterializeCreateResponse + * @memberof vtctldata.RebuildKeyspaceGraphResponse * @static - * @param {vtctldata.MaterializeCreateResponse} message MaterializeCreateResponse + * @param {vtctldata.RebuildKeyspaceGraphResponse} message RebuildKeyspaceGraphResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaterializeCreateResponse.toObject = function toObject() { + RebuildKeyspaceGraphResponse.toObject = function toObject() { return {}; }; /** - * Converts this MaterializeCreateResponse to JSON. + * Converts this RebuildKeyspaceGraphResponse to JSON. * @function toJSON - * @memberof vtctldata.MaterializeCreateResponse + * @memberof vtctldata.RebuildKeyspaceGraphResponse * @instance * @returns {Object.} JSON object */ - MaterializeCreateResponse.prototype.toJSON = function toJSON() { + RebuildKeyspaceGraphResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MaterializeCreateResponse + * Gets the default type url for RebuildKeyspaceGraphResponse * @function getTypeUrl - * @memberof vtctldata.MaterializeCreateResponse + * @memberof vtctldata.RebuildKeyspaceGraphResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MaterializeCreateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RebuildKeyspaceGraphResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MaterializeCreateResponse"; + return typeUrlPrefix + "/vtctldata.RebuildKeyspaceGraphResponse"; }; - return MaterializeCreateResponse; + return RebuildKeyspaceGraphResponse; })(); - vtctldata.MigrateCreateRequest = (function() { + vtctldata.RebuildVSchemaGraphRequest = (function() { /** - * Properties of a MigrateCreateRequest. + * Properties of a RebuildVSchemaGraphRequest. * @memberof vtctldata - * @interface IMigrateCreateRequest - * @property {string|null} [workflow] MigrateCreateRequest workflow - * @property {string|null} [source_keyspace] MigrateCreateRequest source_keyspace - * @property {string|null} [target_keyspace] MigrateCreateRequest target_keyspace - * @property {string|null} [mount_name] MigrateCreateRequest mount_name - * @property {Array.|null} [cells] MigrateCreateRequest cells - * @property {Array.|null} [tablet_types] MigrateCreateRequest tablet_types - * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] MigrateCreateRequest tablet_selection_preference - * @property {boolean|null} [all_tables] MigrateCreateRequest all_tables - * @property {Array.|null} [include_tables] MigrateCreateRequest include_tables - * @property {Array.|null} [exclude_tables] MigrateCreateRequest exclude_tables - * @property {string|null} [source_time_zone] MigrateCreateRequest source_time_zone - * @property {string|null} [on_ddl] MigrateCreateRequest on_ddl - * @property {boolean|null} [stop_after_copy] MigrateCreateRequest stop_after_copy - * @property {boolean|null} [drop_foreign_keys] MigrateCreateRequest drop_foreign_keys - * @property {boolean|null} [defer_secondary_keys] MigrateCreateRequest defer_secondary_keys - * @property {boolean|null} [auto_start] MigrateCreateRequest auto_start - * @property {boolean|null} [no_routing_rules] MigrateCreateRequest no_routing_rules + * @interface IRebuildVSchemaGraphRequest + * @property {Array.|null} [cells] RebuildVSchemaGraphRequest cells */ /** - * Constructs a new MigrateCreateRequest. + * Constructs a new RebuildVSchemaGraphRequest. * @memberof vtctldata - * @classdesc Represents a MigrateCreateRequest. - * @implements IMigrateCreateRequest + * @classdesc Represents a RebuildVSchemaGraphRequest. + * @implements IRebuildVSchemaGraphRequest * @constructor - * @param {vtctldata.IMigrateCreateRequest=} [properties] Properties to set + * @param {vtctldata.IRebuildVSchemaGraphRequest=} [properties] Properties to set */ - function MigrateCreateRequest(properties) { + function RebuildVSchemaGraphRequest(properties) { this.cells = []; - this.tablet_types = []; - this.include_tables = []; - this.exclude_tables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -165214,319 +174039,78 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * MigrateCreateRequest workflow. - * @member {string} workflow - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.workflow = ""; - - /** - * MigrateCreateRequest source_keyspace. - * @member {string} source_keyspace - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.source_keyspace = ""; - - /** - * MigrateCreateRequest target_keyspace. - * @member {string} target_keyspace - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.target_keyspace = ""; - - /** - * MigrateCreateRequest mount_name. - * @member {string} mount_name - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.mount_name = ""; - - /** - * MigrateCreateRequest cells. + * RebuildVSchemaGraphRequest cells. * @member {Array.} cells - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.cells = $util.emptyArray; - - /** - * MigrateCreateRequest tablet_types. - * @member {Array.} tablet_types - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.tablet_types = $util.emptyArray; - - /** - * MigrateCreateRequest tablet_selection_preference. - * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.tablet_selection_preference = 0; - - /** - * MigrateCreateRequest all_tables. - * @member {boolean} all_tables - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.all_tables = false; - - /** - * MigrateCreateRequest include_tables. - * @member {Array.} include_tables - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.include_tables = $util.emptyArray; - - /** - * MigrateCreateRequest exclude_tables. - * @member {Array.} exclude_tables - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.exclude_tables = $util.emptyArray; - - /** - * MigrateCreateRequest source_time_zone. - * @member {string} source_time_zone - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.source_time_zone = ""; - - /** - * MigrateCreateRequest on_ddl. - * @member {string} on_ddl - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.on_ddl = ""; - - /** - * MigrateCreateRequest stop_after_copy. - * @member {boolean} stop_after_copy - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.stop_after_copy = false; - - /** - * MigrateCreateRequest drop_foreign_keys. - * @member {boolean} drop_foreign_keys - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.drop_foreign_keys = false; - - /** - * MigrateCreateRequest defer_secondary_keys. - * @member {boolean} defer_secondary_keys - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.defer_secondary_keys = false; - - /** - * MigrateCreateRequest auto_start. - * @member {boolean} auto_start - * @memberof vtctldata.MigrateCreateRequest - * @instance - */ - MigrateCreateRequest.prototype.auto_start = false; - - /** - * MigrateCreateRequest no_routing_rules. - * @member {boolean} no_routing_rules - * @memberof vtctldata.MigrateCreateRequest + * @memberof vtctldata.RebuildVSchemaGraphRequest * @instance */ - MigrateCreateRequest.prototype.no_routing_rules = false; + RebuildVSchemaGraphRequest.prototype.cells = $util.emptyArray; /** - * Creates a new MigrateCreateRequest instance using the specified properties. + * Creates a new RebuildVSchemaGraphRequest instance using the specified properties. * @function create - * @memberof vtctldata.MigrateCreateRequest + * @memberof vtctldata.RebuildVSchemaGraphRequest * @static - * @param {vtctldata.IMigrateCreateRequest=} [properties] Properties to set - * @returns {vtctldata.MigrateCreateRequest} MigrateCreateRequest instance + * @param {vtctldata.IRebuildVSchemaGraphRequest=} [properties] Properties to set + * @returns {vtctldata.RebuildVSchemaGraphRequest} RebuildVSchemaGraphRequest instance */ - MigrateCreateRequest.create = function create(properties) { - return new MigrateCreateRequest(properties); + RebuildVSchemaGraphRequest.create = function create(properties) { + return new RebuildVSchemaGraphRequest(properties); }; /** - * Encodes the specified MigrateCreateRequest message. Does not implicitly {@link vtctldata.MigrateCreateRequest.verify|verify} messages. + * Encodes the specified RebuildVSchemaGraphRequest message. Does not implicitly {@link vtctldata.RebuildVSchemaGraphRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.MigrateCreateRequest + * @memberof vtctldata.RebuildVSchemaGraphRequest * @static - * @param {vtctldata.IMigrateCreateRequest} message MigrateCreateRequest message or plain object to encode + * @param {vtctldata.IRebuildVSchemaGraphRequest} message RebuildVSchemaGraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateCreateRequest.encode = function encode(message, writer) { + RebuildVSchemaGraphRequest.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.mount_name != null && Object.hasOwnProperty.call(message, "mount_name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.mount_name); if (message.cells != null && message.cells.length) for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.cells[i]); - if (message.tablet_types != null && message.tablet_types.length) { - writer.uint32(/* id 6, wireType 2 =*/50).fork(); - for (let i = 0; i < message.tablet_types.length; ++i) - writer.int32(message.tablet_types[i]); - writer.ldelim(); - } - if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.tablet_selection_preference); - if (message.all_tables != null && Object.hasOwnProperty.call(message, "all_tables")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.all_tables); - if (message.include_tables != null && message.include_tables.length) - for (let i = 0; i < message.include_tables.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.include_tables[i]); - if (message.exclude_tables != null && message.exclude_tables.length) - for (let i = 0; i < message.exclude_tables.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.exclude_tables[i]); - if (message.source_time_zone != null && Object.hasOwnProperty.call(message, "source_time_zone")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.source_time_zone); - if (message.on_ddl != null && Object.hasOwnProperty.call(message, "on_ddl")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.on_ddl); - if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.stop_after_copy); - if (message.drop_foreign_keys != null && Object.hasOwnProperty.call(message, "drop_foreign_keys")) - writer.uint32(/* id 14, wireType 0 =*/112).bool(message.drop_foreign_keys); - if (message.defer_secondary_keys != null && Object.hasOwnProperty.call(message, "defer_secondary_keys")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.defer_secondary_keys); - if (message.auto_start != null && Object.hasOwnProperty.call(message, "auto_start")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.auto_start); - if (message.no_routing_rules != null && Object.hasOwnProperty.call(message, "no_routing_rules")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.no_routing_rules); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cells[i]); return writer; }; /** - * Encodes the specified MigrateCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MigrateCreateRequest.verify|verify} messages. + * Encodes the specified RebuildVSchemaGraphRequest message, length delimited. Does not implicitly {@link vtctldata.RebuildVSchemaGraphRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MigrateCreateRequest + * @memberof vtctldata.RebuildVSchemaGraphRequest * @static - * @param {vtctldata.IMigrateCreateRequest} message MigrateCreateRequest message or plain object to encode + * @param {vtctldata.IRebuildVSchemaGraphRequest} message RebuildVSchemaGraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer - */ - MigrateCreateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MigrateCreateRequest message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.MigrateCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MigrateCreateRequest} MigrateCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateCreateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MigrateCreateRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.workflow = reader.string(); - break; - } - case 2: { - message.source_keyspace = reader.string(); - break; - } - case 3: { - message.target_keyspace = reader.string(); - break; - } - case 4: { - message.mount_name = reader.string(); - break; - } - case 5: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); - break; - } - case 6: { - if (!(message.tablet_types && message.tablet_types.length)) - message.tablet_types = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.tablet_types.push(reader.int32()); - } else - message.tablet_types.push(reader.int32()); - break; - } - case 7: { - message.tablet_selection_preference = reader.int32(); - break; - } - case 8: { - message.all_tables = reader.bool(); - break; - } - case 9: { - if (!(message.include_tables && message.include_tables.length)) - message.include_tables = []; - message.include_tables.push(reader.string()); - break; - } - case 10: { - if (!(message.exclude_tables && message.exclude_tables.length)) - message.exclude_tables = []; - message.exclude_tables.push(reader.string()); - break; - } - case 11: { - message.source_time_zone = reader.string(); - break; - } - case 12: { - message.on_ddl = reader.string(); - break; - } - case 13: { - message.stop_after_copy = reader.bool(); - break; - } - case 14: { - message.drop_foreign_keys = reader.bool(); - break; - } - case 15: { - message.defer_secondary_keys = reader.bool(); - break; - } - case 16: { - message.auto_start = reader.bool(); - break; - } - case 17: { - message.no_routing_rules = reader.bool(); + */ + RebuildVSchemaGraphRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.RebuildVSchemaGraphRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.RebuildVSchemaGraphRequest} RebuildVSchemaGraphRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RebuildVSchemaGraphRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RebuildVSchemaGraphRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; } default: @@ -165538,44 +174122,32 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MigrateCreateRequest message from the specified reader or buffer, length delimited. + * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MigrateCreateRequest + * @memberof vtctldata.RebuildVSchemaGraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MigrateCreateRequest} MigrateCreateRequest + * @returns {vtctldata.RebuildVSchemaGraphRequest} RebuildVSchemaGraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateCreateRequest.decodeDelimited = function decodeDelimited(reader) { + RebuildVSchemaGraphRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateCreateRequest message. + * Verifies a RebuildVSchemaGraphRequest message. * @function verify - * @memberof vtctldata.MigrateCreateRequest + * @memberof vtctldata.RebuildVSchemaGraphRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateCreateRequest.verify = function verify(message) { + RebuildVSchemaGraphRequest.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.mount_name != null && message.hasOwnProperty("mount_name")) - if (!$util.isString(message.mount_name)) - return "mount_name: string expected"; if (message.cells != null && message.hasOwnProperty("cells")) { if (!Array.isArray(message.cells)) return "cells: array expected"; @@ -165583,349 +174155,100 @@ export const vtctldata = $root.vtctldata = (() => { if (!$util.isString(message.cells[i])) return "cells: string[] expected"; } - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { - if (!Array.isArray(message.tablet_types)) - return "tablet_types: array expected"; - for (let i = 0; i < message.tablet_types.length; ++i) - switch (message.tablet_types[i]) { - default: - return "tablet_types: enum value[] expected"; - case 0: - case 1: - case 1: - case 2: - case 3: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - switch (message.tablet_selection_preference) { - default: - return "tablet_selection_preference: enum value expected"; - case 0: - case 1: - case 3: - break; - } - if (message.all_tables != null && message.hasOwnProperty("all_tables")) - if (typeof message.all_tables !== "boolean") - return "all_tables: boolean expected"; - if (message.include_tables != null && message.hasOwnProperty("include_tables")) { - if (!Array.isArray(message.include_tables)) - return "include_tables: array expected"; - for (let i = 0; i < message.include_tables.length; ++i) - if (!$util.isString(message.include_tables[i])) - return "include_tables: string[] expected"; - } - if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { - if (!Array.isArray(message.exclude_tables)) - return "exclude_tables: array expected"; - for (let i = 0; i < message.exclude_tables.length; ++i) - if (!$util.isString(message.exclude_tables[i])) - return "exclude_tables: string[] expected"; - } - 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.on_ddl != null && message.hasOwnProperty("on_ddl")) - if (!$util.isString(message.on_ddl)) - return "on_ddl: 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.drop_foreign_keys != null && message.hasOwnProperty("drop_foreign_keys")) - if (typeof message.drop_foreign_keys !== "boolean") - return "drop_foreign_keys: boolean expected"; - if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) - if (typeof message.defer_secondary_keys !== "boolean") - return "defer_secondary_keys: boolean expected"; - if (message.auto_start != null && message.hasOwnProperty("auto_start")) - if (typeof message.auto_start !== "boolean") - return "auto_start: boolean expected"; - if (message.no_routing_rules != null && message.hasOwnProperty("no_routing_rules")) - if (typeof message.no_routing_rules !== "boolean") - return "no_routing_rules: boolean expected"; return null; }; /** - * Creates a MigrateCreateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RebuildVSchemaGraphRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MigrateCreateRequest + * @memberof vtctldata.RebuildVSchemaGraphRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.MigrateCreateRequest} MigrateCreateRequest + * @returns {vtctldata.RebuildVSchemaGraphRequest} RebuildVSchemaGraphRequest */ - MigrateCreateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MigrateCreateRequest) + RebuildVSchemaGraphRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RebuildVSchemaGraphRequest) return object; - let message = new $root.vtctldata.MigrateCreateRequest(); - 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.mount_name != null) - message.mount_name = String(object.mount_name); + let message = new $root.vtctldata.RebuildVSchemaGraphRequest(); if (object.cells) { if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.MigrateCreateRequest.cells: array expected"); + throw TypeError(".vtctldata.RebuildVSchemaGraphRequest.cells: array expected"); message.cells = []; for (let i = 0; i < object.cells.length; ++i) message.cells[i] = String(object.cells[i]); } - if (object.tablet_types) { - if (!Array.isArray(object.tablet_types)) - throw TypeError(".vtctldata.MigrateCreateRequest.tablet_types: array expected"); - message.tablet_types = []; - for (let i = 0; i < object.tablet_types.length; ++i) - switch (object.tablet_types[i]) { - default: - if (typeof object.tablet_types[i] === "number") { - message.tablet_types[i] = object.tablet_types[i]; - break; - } - case "UNKNOWN": - case 0: - message.tablet_types[i] = 0; - break; - case "PRIMARY": - case 1: - message.tablet_types[i] = 1; - break; - case "MASTER": - case 1: - message.tablet_types[i] = 1; - break; - case "REPLICA": - case 2: - message.tablet_types[i] = 2; - break; - case "RDONLY": - case 3: - message.tablet_types[i] = 3; - break; - case "BATCH": - case 3: - message.tablet_types[i] = 3; - break; - case "SPARE": - case 4: - message.tablet_types[i] = 4; - break; - case "EXPERIMENTAL": - case 5: - message.tablet_types[i] = 5; - break; - case "BACKUP": - case 6: - message.tablet_types[i] = 6; - break; - case "RESTORE": - case 7: - message.tablet_types[i] = 7; - break; - case "DRAINED": - case 8: - message.tablet_types[i] = 8; - break; - } - } - switch (object.tablet_selection_preference) { - default: - if (typeof object.tablet_selection_preference === "number") { - message.tablet_selection_preference = object.tablet_selection_preference; - break; - } - break; - case "ANY": - case 0: - message.tablet_selection_preference = 0; - break; - case "INORDER": - case 1: - message.tablet_selection_preference = 1; - break; - case "UNKNOWN": - case 3: - message.tablet_selection_preference = 3; - break; - } - if (object.all_tables != null) - message.all_tables = Boolean(object.all_tables); - if (object.include_tables) { - if (!Array.isArray(object.include_tables)) - throw TypeError(".vtctldata.MigrateCreateRequest.include_tables: array expected"); - message.include_tables = []; - for (let i = 0; i < object.include_tables.length; ++i) - message.include_tables[i] = String(object.include_tables[i]); - } - if (object.exclude_tables) { - if (!Array.isArray(object.exclude_tables)) - throw TypeError(".vtctldata.MigrateCreateRequest.exclude_tables: array expected"); - message.exclude_tables = []; - for (let i = 0; i < object.exclude_tables.length; ++i) - message.exclude_tables[i] = String(object.exclude_tables[i]); - } - if (object.source_time_zone != null) - message.source_time_zone = String(object.source_time_zone); - if (object.on_ddl != null) - message.on_ddl = String(object.on_ddl); - if (object.stop_after_copy != null) - message.stop_after_copy = Boolean(object.stop_after_copy); - if (object.drop_foreign_keys != null) - message.drop_foreign_keys = Boolean(object.drop_foreign_keys); - if (object.defer_secondary_keys != null) - message.defer_secondary_keys = Boolean(object.defer_secondary_keys); - if (object.auto_start != null) - message.auto_start = Boolean(object.auto_start); - if (object.no_routing_rules != null) - message.no_routing_rules = Boolean(object.no_routing_rules); return message; }; /** - * Creates a plain object from a MigrateCreateRequest message. Also converts values to other types if specified. + * Creates a plain object from a RebuildVSchemaGraphRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MigrateCreateRequest + * @memberof vtctldata.RebuildVSchemaGraphRequest * @static - * @param {vtctldata.MigrateCreateRequest} message MigrateCreateRequest + * @param {vtctldata.RebuildVSchemaGraphRequest} message RebuildVSchemaGraphRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateCreateRequest.toObject = function toObject(message, options) { + RebuildVSchemaGraphRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { + if (options.arrays || options.defaults) object.cells = []; - object.tablet_types = []; - object.include_tables = []; - object.exclude_tables = []; - } - if (options.defaults) { - object.workflow = ""; - object.source_keyspace = ""; - object.target_keyspace = ""; - object.mount_name = ""; - object.tablet_selection_preference = options.enums === String ? "ANY" : 0; - object.all_tables = false; - object.source_time_zone = ""; - object.on_ddl = ""; - object.stop_after_copy = false; - object.drop_foreign_keys = false; - object.defer_secondary_keys = false; - object.auto_start = false; - object.no_routing_rules = false; - } - 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.mount_name != null && message.hasOwnProperty("mount_name")) - object.mount_name = message.mount_name; if (message.cells && message.cells.length) { object.cells = []; for (let j = 0; j < message.cells.length; ++j) object.cells[j] = message.cells[j]; } - if (message.tablet_types && message.tablet_types.length) { - object.tablet_types = []; - for (let j = 0; j < message.tablet_types.length; ++j) - object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; - } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; - if (message.all_tables != null && message.hasOwnProperty("all_tables")) - object.all_tables = message.all_tables; - if (message.include_tables && message.include_tables.length) { - object.include_tables = []; - for (let j = 0; j < message.include_tables.length; ++j) - object.include_tables[j] = message.include_tables[j]; - } - if (message.exclude_tables && message.exclude_tables.length) { - object.exclude_tables = []; - for (let j = 0; j < message.exclude_tables.length; ++j) - object.exclude_tables[j] = message.exclude_tables[j]; - } - if (message.source_time_zone != null && message.hasOwnProperty("source_time_zone")) - object.source_time_zone = message.source_time_zone; - if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) - object.on_ddl = message.on_ddl; - if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) - object.stop_after_copy = message.stop_after_copy; - if (message.drop_foreign_keys != null && message.hasOwnProperty("drop_foreign_keys")) - object.drop_foreign_keys = message.drop_foreign_keys; - if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) - object.defer_secondary_keys = message.defer_secondary_keys; - if (message.auto_start != null && message.hasOwnProperty("auto_start")) - object.auto_start = message.auto_start; - if (message.no_routing_rules != null && message.hasOwnProperty("no_routing_rules")) - object.no_routing_rules = message.no_routing_rules; return object; }; /** - * Converts this MigrateCreateRequest to JSON. + * Converts this RebuildVSchemaGraphRequest to JSON. * @function toJSON - * @memberof vtctldata.MigrateCreateRequest + * @memberof vtctldata.RebuildVSchemaGraphRequest * @instance * @returns {Object.} JSON object */ - MigrateCreateRequest.prototype.toJSON = function toJSON() { + RebuildVSchemaGraphRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateCreateRequest + * Gets the default type url for RebuildVSchemaGraphRequest * @function getTypeUrl - * @memberof vtctldata.MigrateCreateRequest + * @memberof vtctldata.RebuildVSchemaGraphRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateCreateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RebuildVSchemaGraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MigrateCreateRequest"; + return typeUrlPrefix + "/vtctldata.RebuildVSchemaGraphRequest"; }; - return MigrateCreateRequest; + return RebuildVSchemaGraphRequest; })(); - vtctldata.MigrateCompleteRequest = (function() { + vtctldata.RebuildVSchemaGraphResponse = (function() { /** - * Properties of a MigrateCompleteRequest. + * Properties of a RebuildVSchemaGraphResponse. * @memberof vtctldata - * @interface IMigrateCompleteRequest - * @property {string|null} [workflow] MigrateCompleteRequest workflow - * @property {string|null} [target_keyspace] MigrateCompleteRequest target_keyspace - * @property {boolean|null} [keep_data] MigrateCompleteRequest keep_data - * @property {boolean|null} [keep_routing_rules] MigrateCompleteRequest keep_routing_rules - * @property {boolean|null} [rename_tables] MigrateCompleteRequest rename_tables - * @property {boolean|null} [dry_run] MigrateCompleteRequest dry_run + * @interface IRebuildVSchemaGraphResponse */ /** - * Constructs a new MigrateCompleteRequest. + * Constructs a new RebuildVSchemaGraphResponse. * @memberof vtctldata - * @classdesc Represents a MigrateCompleteRequest. - * @implements IMigrateCompleteRequest + * @classdesc Represents a RebuildVSchemaGraphResponse. + * @implements IRebuildVSchemaGraphResponse * @constructor - * @param {vtctldata.IMigrateCompleteRequest=} [properties] Properties to set + * @param {vtctldata.IRebuildVSchemaGraphResponse=} [properties] Properties to set */ - function MigrateCompleteRequest(properties) { + function RebuildVSchemaGraphResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -165933,145 +174256,251 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * MigrateCompleteRequest workflow. - * @member {string} workflow - * @memberof vtctldata.MigrateCompleteRequest - * @instance + * Creates a new RebuildVSchemaGraphResponse instance using the specified properties. + * @function create + * @memberof vtctldata.RebuildVSchemaGraphResponse + * @static + * @param {vtctldata.IRebuildVSchemaGraphResponse=} [properties] Properties to set + * @returns {vtctldata.RebuildVSchemaGraphResponse} RebuildVSchemaGraphResponse instance */ - MigrateCompleteRequest.prototype.workflow = ""; + RebuildVSchemaGraphResponse.create = function create(properties) { + return new RebuildVSchemaGraphResponse(properties); + }; /** - * MigrateCompleteRequest target_keyspace. - * @member {string} target_keyspace - * @memberof vtctldata.MigrateCompleteRequest - * @instance + * Encodes the specified RebuildVSchemaGraphResponse message. Does not implicitly {@link vtctldata.RebuildVSchemaGraphResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.RebuildVSchemaGraphResponse + * @static + * @param {vtctldata.IRebuildVSchemaGraphResponse} message RebuildVSchemaGraphResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MigrateCompleteRequest.prototype.target_keyspace = ""; + RebuildVSchemaGraphResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * MigrateCompleteRequest keep_data. - * @member {boolean} keep_data - * @memberof vtctldata.MigrateCompleteRequest - * @instance + * Encodes the specified RebuildVSchemaGraphResponse message, length delimited. Does not implicitly {@link vtctldata.RebuildVSchemaGraphResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.RebuildVSchemaGraphResponse + * @static + * @param {vtctldata.IRebuildVSchemaGraphResponse} message RebuildVSchemaGraphResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MigrateCompleteRequest.prototype.keep_data = false; + RebuildVSchemaGraphResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * MigrateCompleteRequest keep_routing_rules. - * @member {boolean} keep_routing_rules - * @memberof vtctldata.MigrateCompleteRequest - * @instance + * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.RebuildVSchemaGraphResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.RebuildVSchemaGraphResponse} RebuildVSchemaGraphResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateCompleteRequest.prototype.keep_routing_rules = false; + RebuildVSchemaGraphResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RebuildVSchemaGraphResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * MigrateCompleteRequest rename_tables. - * @member {boolean} rename_tables - * @memberof vtctldata.MigrateCompleteRequest + * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.RebuildVSchemaGraphResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.RebuildVSchemaGraphResponse} RebuildVSchemaGraphResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RebuildVSchemaGraphResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RebuildVSchemaGraphResponse message. + * @function verify + * @memberof vtctldata.RebuildVSchemaGraphResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RebuildVSchemaGraphResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a RebuildVSchemaGraphResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.RebuildVSchemaGraphResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.RebuildVSchemaGraphResponse} RebuildVSchemaGraphResponse + */ + RebuildVSchemaGraphResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RebuildVSchemaGraphResponse) + return object; + return new $root.vtctldata.RebuildVSchemaGraphResponse(); + }; + + /** + * Creates a plain object from a RebuildVSchemaGraphResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.RebuildVSchemaGraphResponse + * @static + * @param {vtctldata.RebuildVSchemaGraphResponse} message RebuildVSchemaGraphResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RebuildVSchemaGraphResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this RebuildVSchemaGraphResponse to JSON. + * @function toJSON + * @memberof vtctldata.RebuildVSchemaGraphResponse * @instance + * @returns {Object.} JSON object */ - MigrateCompleteRequest.prototype.rename_tables = false; + RebuildVSchemaGraphResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * MigrateCompleteRequest dry_run. - * @member {boolean} dry_run - * @memberof vtctldata.MigrateCompleteRequest + * Gets the default type url for RebuildVSchemaGraphResponse + * @function getTypeUrl + * @memberof vtctldata.RebuildVSchemaGraphResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RebuildVSchemaGraphResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.RebuildVSchemaGraphResponse"; + }; + + return RebuildVSchemaGraphResponse; + })(); + + vtctldata.RefreshStateRequest = (function() { + + /** + * Properties of a RefreshStateRequest. + * @memberof vtctldata + * @interface IRefreshStateRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] RefreshStateRequest tablet_alias + */ + + /** + * Constructs a new RefreshStateRequest. + * @memberof vtctldata + * @classdesc Represents a RefreshStateRequest. + * @implements IRefreshStateRequest + * @constructor + * @param {vtctldata.IRefreshStateRequest=} [properties] Properties to set + */ + function RefreshStateRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RefreshStateRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.RefreshStateRequest * @instance */ - MigrateCompleteRequest.prototype.dry_run = false; + RefreshStateRequest.prototype.tablet_alias = null; /** - * Creates a new MigrateCompleteRequest instance using the specified properties. + * Creates a new RefreshStateRequest instance using the specified properties. * @function create - * @memberof vtctldata.MigrateCompleteRequest + * @memberof vtctldata.RefreshStateRequest * @static - * @param {vtctldata.IMigrateCompleteRequest=} [properties] Properties to set - * @returns {vtctldata.MigrateCompleteRequest} MigrateCompleteRequest instance + * @param {vtctldata.IRefreshStateRequest=} [properties] Properties to set + * @returns {vtctldata.RefreshStateRequest} RefreshStateRequest instance */ - MigrateCompleteRequest.create = function create(properties) { - return new MigrateCompleteRequest(properties); + RefreshStateRequest.create = function create(properties) { + return new RefreshStateRequest(properties); }; /** - * Encodes the specified MigrateCompleteRequest message. Does not implicitly {@link vtctldata.MigrateCompleteRequest.verify|verify} messages. + * Encodes the specified RefreshStateRequest message. Does not implicitly {@link vtctldata.RefreshStateRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.MigrateCompleteRequest + * @memberof vtctldata.RefreshStateRequest * @static - * @param {vtctldata.IMigrateCompleteRequest} message MigrateCompleteRequest message or plain object to encode + * @param {vtctldata.IRefreshStateRequest} message RefreshStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateCompleteRequest.encode = function encode(message, writer) { + RefreshStateRequest.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.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_keyspace); - if (message.keep_data != null && Object.hasOwnProperty.call(message, "keep_data")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.keep_data); - if (message.keep_routing_rules != null && Object.hasOwnProperty.call(message, "keep_routing_rules")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.keep_routing_rules); - if (message.rename_tables != null && Object.hasOwnProperty.call(message, "rename_tables")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.rename_tables); - if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.dry_run); + 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(); return writer; }; /** - * Encodes the specified MigrateCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.MigrateCompleteRequest.verify|verify} messages. + * Encodes the specified RefreshStateRequest message, length delimited. Does not implicitly {@link vtctldata.RefreshStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MigrateCompleteRequest + * @memberof vtctldata.RefreshStateRequest * @static - * @param {vtctldata.IMigrateCompleteRequest} message MigrateCompleteRequest message or plain object to encode + * @param {vtctldata.IRefreshStateRequest} message RefreshStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateCompleteRequest.encodeDelimited = function encodeDelimited(message, writer) { + RefreshStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateCompleteRequest message from the specified reader or buffer. + * Decodes a RefreshStateRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MigrateCompleteRequest + * @memberof vtctldata.RefreshStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MigrateCompleteRequest} MigrateCompleteRequest + * @returns {vtctldata.RefreshStateRequest} RefreshStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateCompleteRequest.decode = function decode(reader, length) { + RefreshStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MigrateCompleteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RefreshStateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workflow = reader.string(); - break; - } - case 3: { - message.target_keyspace = reader.string(); - break; - } - case 4: { - message.keep_data = reader.bool(); - break; - } - case 5: { - message.keep_routing_rules = reader.bool(); - break; - } - case 6: { - message.rename_tables = reader.bool(); - break; - } - case 7: { - message.dry_run = reader.bool(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -166083,165 +174512,126 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MigrateCompleteRequest message from the specified reader or buffer, length delimited. + * Decodes a RefreshStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MigrateCompleteRequest + * @memberof vtctldata.RefreshStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MigrateCompleteRequest} MigrateCompleteRequest + * @returns {vtctldata.RefreshStateRequest} RefreshStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateCompleteRequest.decodeDelimited = function decodeDelimited(reader) { + RefreshStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateCompleteRequest message. + * Verifies a RefreshStateRequest message. * @function verify - * @memberof vtctldata.MigrateCompleteRequest + * @memberof vtctldata.RefreshStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateCompleteRequest.verify = function verify(message) { + RefreshStateRequest.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.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - if (!$util.isString(message.target_keyspace)) - return "target_keyspace: string expected"; - if (message.keep_data != null && message.hasOwnProperty("keep_data")) - if (typeof message.keep_data !== "boolean") - return "keep_data: boolean expected"; - if (message.keep_routing_rules != null && message.hasOwnProperty("keep_routing_rules")) - if (typeof message.keep_routing_rules !== "boolean") - return "keep_routing_rules: boolean expected"; - if (message.rename_tables != null && message.hasOwnProperty("rename_tables")) - if (typeof message.rename_tables !== "boolean") - return "rename_tables: boolean expected"; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - if (typeof message.dry_run !== "boolean") - return "dry_run: boolean expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } return null; }; /** - * Creates a MigrateCompleteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MigrateCompleteRequest + * @memberof vtctldata.RefreshStateRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.MigrateCompleteRequest} MigrateCompleteRequest + * @returns {vtctldata.RefreshStateRequest} RefreshStateRequest */ - MigrateCompleteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MigrateCompleteRequest) + RefreshStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RefreshStateRequest) return object; - let message = new $root.vtctldata.MigrateCompleteRequest(); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.target_keyspace != null) - message.target_keyspace = String(object.target_keyspace); - if (object.keep_data != null) - message.keep_data = Boolean(object.keep_data); - if (object.keep_routing_rules != null) - message.keep_routing_rules = Boolean(object.keep_routing_rules); - if (object.rename_tables != null) - message.rename_tables = Boolean(object.rename_tables); - if (object.dry_run != null) - message.dry_run = Boolean(object.dry_run); + let message = new $root.vtctldata.RefreshStateRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.RefreshStateRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } return message; }; /** - * Creates a plain object from a MigrateCompleteRequest message. Also converts values to other types if specified. + * Creates a plain object from a RefreshStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MigrateCompleteRequest + * @memberof vtctldata.RefreshStateRequest * @static - * @param {vtctldata.MigrateCompleteRequest} message MigrateCompleteRequest + * @param {vtctldata.RefreshStateRequest} message RefreshStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateCompleteRequest.toObject = function toObject(message, options) { + RefreshStateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.workflow = ""; - object.target_keyspace = ""; - object.keep_data = false; - object.keep_routing_rules = false; - object.rename_tables = false; - object.dry_run = false; - } - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - object.target_keyspace = message.target_keyspace; - if (message.keep_data != null && message.hasOwnProperty("keep_data")) - object.keep_data = message.keep_data; - if (message.keep_routing_rules != null && message.hasOwnProperty("keep_routing_rules")) - object.keep_routing_rules = message.keep_routing_rules; - if (message.rename_tables != null && message.hasOwnProperty("rename_tables")) - object.rename_tables = message.rename_tables; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - object.dry_run = message.dry_run; + if (options.defaults) + object.tablet_alias = null; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); return object; }; /** - * Converts this MigrateCompleteRequest to JSON. + * Converts this RefreshStateRequest to JSON. * @function toJSON - * @memberof vtctldata.MigrateCompleteRequest + * @memberof vtctldata.RefreshStateRequest * @instance * @returns {Object.} JSON object */ - MigrateCompleteRequest.prototype.toJSON = function toJSON() { + RefreshStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateCompleteRequest + * Gets the default type url for RefreshStateRequest * @function getTypeUrl - * @memberof vtctldata.MigrateCompleteRequest + * @memberof vtctldata.RefreshStateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateCompleteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RefreshStateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MigrateCompleteRequest"; + return typeUrlPrefix + "/vtctldata.RefreshStateRequest"; }; - return MigrateCompleteRequest; + return RefreshStateRequest; })(); - vtctldata.MigrateCompleteResponse = (function() { + vtctldata.RefreshStateResponse = (function() { /** - * Properties of a MigrateCompleteResponse. + * Properties of a RefreshStateResponse. * @memberof vtctldata - * @interface IMigrateCompleteResponse - * @property {string|null} [summary] MigrateCompleteResponse summary - * @property {Array.|null} [dry_run_results] MigrateCompleteResponse dry_run_results + * @interface IRefreshStateResponse */ /** - * Constructs a new MigrateCompleteResponse. + * Constructs a new RefreshStateResponse. * @memberof vtctldata - * @classdesc Represents a MigrateCompleteResponse. - * @implements IMigrateCompleteResponse + * @classdesc Represents a RefreshStateResponse. + * @implements IRefreshStateResponse * @constructor - * @param {vtctldata.IMigrateCompleteResponse=} [properties] Properties to set + * @param {vtctldata.IRefreshStateResponse=} [properties] Properties to set */ - function MigrateCompleteResponse(properties) { - this.dry_run_results = []; + function RefreshStateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -166249,94 +174639,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * MigrateCompleteResponse summary. - * @member {string} summary - * @memberof vtctldata.MigrateCompleteResponse - * @instance - */ - MigrateCompleteResponse.prototype.summary = ""; - - /** - * MigrateCompleteResponse dry_run_results. - * @member {Array.} dry_run_results - * @memberof vtctldata.MigrateCompleteResponse - * @instance - */ - MigrateCompleteResponse.prototype.dry_run_results = $util.emptyArray; - - /** - * Creates a new MigrateCompleteResponse instance using the specified properties. + * Creates a new RefreshStateResponse instance using the specified properties. * @function create - * @memberof vtctldata.MigrateCompleteResponse + * @memberof vtctldata.RefreshStateResponse * @static - * @param {vtctldata.IMigrateCompleteResponse=} [properties] Properties to set - * @returns {vtctldata.MigrateCompleteResponse} MigrateCompleteResponse instance + * @param {vtctldata.IRefreshStateResponse=} [properties] Properties to set + * @returns {vtctldata.RefreshStateResponse} RefreshStateResponse instance */ - MigrateCompleteResponse.create = function create(properties) { - return new MigrateCompleteResponse(properties); + RefreshStateResponse.create = function create(properties) { + return new RefreshStateResponse(properties); }; /** - * Encodes the specified MigrateCompleteResponse message. Does not implicitly {@link vtctldata.MigrateCompleteResponse.verify|verify} messages. + * Encodes the specified RefreshStateResponse message. Does not implicitly {@link vtctldata.RefreshStateResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.MigrateCompleteResponse + * @memberof vtctldata.RefreshStateResponse * @static - * @param {vtctldata.IMigrateCompleteResponse} message MigrateCompleteResponse message or plain object to encode + * @param {vtctldata.IRefreshStateResponse} message RefreshStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateCompleteResponse.encode = function encode(message, writer) { + RefreshStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.summary != null && Object.hasOwnProperty.call(message, "summary")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.summary); - if (message.dry_run_results != null && message.dry_run_results.length) - for (let i = 0; i < message.dry_run_results.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.dry_run_results[i]); return writer; }; /** - * Encodes the specified MigrateCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.MigrateCompleteResponse.verify|verify} messages. + * Encodes the specified RefreshStateResponse message, length delimited. Does not implicitly {@link vtctldata.RefreshStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MigrateCompleteResponse + * @memberof vtctldata.RefreshStateResponse * @static - * @param {vtctldata.IMigrateCompleteResponse} message MigrateCompleteResponse message or plain object to encode + * @param {vtctldata.IRefreshStateResponse} message RefreshStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateCompleteResponse.encodeDelimited = function encodeDelimited(message, writer) { + RefreshStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateCompleteResponse message from the specified reader or buffer. + * Decodes a RefreshStateResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MigrateCompleteResponse + * @memberof vtctldata.RefreshStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MigrateCompleteResponse} MigrateCompleteResponse + * @returns {vtctldata.RefreshStateResponse} RefreshStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateCompleteResponse.decode = function decode(reader, length) { + RefreshStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MigrateCompleteResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RefreshStateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.summary = reader.string(); - break; - } - case 2: { - if (!(message.dry_run_results && message.dry_run_results.length)) - message.dry_run_results = []; - message.dry_run_results.push(reader.string()); - break; - } default: reader.skipType(tag & 7); break; @@ -166346,146 +174705,112 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MigrateCompleteResponse message from the specified reader or buffer, length delimited. + * Decodes a RefreshStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MigrateCompleteResponse + * @memberof vtctldata.RefreshStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MigrateCompleteResponse} MigrateCompleteResponse + * @returns {vtctldata.RefreshStateResponse} RefreshStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateCompleteResponse.decodeDelimited = function decodeDelimited(reader) { + RefreshStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateCompleteResponse message. + * Verifies a RefreshStateResponse message. * @function verify - * @memberof vtctldata.MigrateCompleteResponse + * @memberof vtctldata.RefreshStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateCompleteResponse.verify = function verify(message) { + RefreshStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.summary != null && message.hasOwnProperty("summary")) - if (!$util.isString(message.summary)) - return "summary: string expected"; - if (message.dry_run_results != null && message.hasOwnProperty("dry_run_results")) { - if (!Array.isArray(message.dry_run_results)) - return "dry_run_results: array expected"; - for (let i = 0; i < message.dry_run_results.length; ++i) - if (!$util.isString(message.dry_run_results[i])) - return "dry_run_results: string[] expected"; - } return null; }; /** - * Creates a MigrateCompleteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MigrateCompleteResponse + * @memberof vtctldata.RefreshStateResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.MigrateCompleteResponse} MigrateCompleteResponse + * @returns {vtctldata.RefreshStateResponse} RefreshStateResponse */ - MigrateCompleteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MigrateCompleteResponse) + RefreshStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RefreshStateResponse) return object; - let message = new $root.vtctldata.MigrateCompleteResponse(); - if (object.summary != null) - message.summary = String(object.summary); - if (object.dry_run_results) { - if (!Array.isArray(object.dry_run_results)) - throw TypeError(".vtctldata.MigrateCompleteResponse.dry_run_results: array expected"); - message.dry_run_results = []; - for (let i = 0; i < object.dry_run_results.length; ++i) - message.dry_run_results[i] = String(object.dry_run_results[i]); - } - return message; + return new $root.vtctldata.RefreshStateResponse(); }; /** - * Creates a plain object from a MigrateCompleteResponse message. Also converts values to other types if specified. + * Creates a plain object from a RefreshStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MigrateCompleteResponse + * @memberof vtctldata.RefreshStateResponse * @static - * @param {vtctldata.MigrateCompleteResponse} message MigrateCompleteResponse + * @param {vtctldata.RefreshStateResponse} message RefreshStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateCompleteResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.dry_run_results = []; - if (options.defaults) - object.summary = ""; - if (message.summary != null && message.hasOwnProperty("summary")) - object.summary = message.summary; - if (message.dry_run_results && message.dry_run_results.length) { - object.dry_run_results = []; - for (let j = 0; j < message.dry_run_results.length; ++j) - object.dry_run_results[j] = message.dry_run_results[j]; - } - return object; + RefreshStateResponse.toObject = function toObject() { + return {}; }; /** - * Converts this MigrateCompleteResponse to JSON. + * Converts this RefreshStateResponse to JSON. * @function toJSON - * @memberof vtctldata.MigrateCompleteResponse + * @memberof vtctldata.RefreshStateResponse * @instance * @returns {Object.} JSON object */ - MigrateCompleteResponse.prototype.toJSON = function toJSON() { + RefreshStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateCompleteResponse + * Gets the default type url for RefreshStateResponse * @function getTypeUrl - * @memberof vtctldata.MigrateCompleteResponse + * @memberof vtctldata.RefreshStateResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateCompleteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RefreshStateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MigrateCompleteResponse"; + return typeUrlPrefix + "/vtctldata.RefreshStateResponse"; }; - return MigrateCompleteResponse; + return RefreshStateResponse; })(); - vtctldata.MountRegisterRequest = (function() { + vtctldata.RefreshStateByShardRequest = (function() { /** - * Properties of a MountRegisterRequest. + * Properties of a RefreshStateByShardRequest. * @memberof vtctldata - * @interface IMountRegisterRequest - * @property {string|null} [topo_type] MountRegisterRequest topo_type - * @property {string|null} [topo_server] MountRegisterRequest topo_server - * @property {string|null} [topo_root] MountRegisterRequest topo_root - * @property {string|null} [name] MountRegisterRequest name + * @interface IRefreshStateByShardRequest + * @property {string|null} [keyspace] RefreshStateByShardRequest keyspace + * @property {string|null} [shard] RefreshStateByShardRequest shard + * @property {Array.|null} [cells] RefreshStateByShardRequest cells */ /** - * Constructs a new MountRegisterRequest. + * Constructs a new RefreshStateByShardRequest. * @memberof vtctldata - * @classdesc Represents a MountRegisterRequest. - * @implements IMountRegisterRequest + * @classdesc Represents a RefreshStateByShardRequest. + * @implements IRefreshStateByShardRequest * @constructor - * @param {vtctldata.IMountRegisterRequest=} [properties] Properties to set + * @param {vtctldata.IRefreshStateByShardRequest=} [properties] Properties to set */ - function MountRegisterRequest(properties) { + function RefreshStateByShardRequest(properties) { + this.cells = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -166493,117 +174818,106 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * MountRegisterRequest topo_type. - * @member {string} topo_type - * @memberof vtctldata.MountRegisterRequest - * @instance - */ - MountRegisterRequest.prototype.topo_type = ""; - - /** - * MountRegisterRequest topo_server. - * @member {string} topo_server - * @memberof vtctldata.MountRegisterRequest + * RefreshStateByShardRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.RefreshStateByShardRequest * @instance */ - MountRegisterRequest.prototype.topo_server = ""; + RefreshStateByShardRequest.prototype.keyspace = ""; /** - * MountRegisterRequest topo_root. - * @member {string} topo_root - * @memberof vtctldata.MountRegisterRequest + * RefreshStateByShardRequest shard. + * @member {string} shard + * @memberof vtctldata.RefreshStateByShardRequest * @instance */ - MountRegisterRequest.prototype.topo_root = ""; + RefreshStateByShardRequest.prototype.shard = ""; /** - * MountRegisterRequest name. - * @member {string} name - * @memberof vtctldata.MountRegisterRequest + * RefreshStateByShardRequest cells. + * @member {Array.} cells + * @memberof vtctldata.RefreshStateByShardRequest * @instance */ - MountRegisterRequest.prototype.name = ""; + RefreshStateByShardRequest.prototype.cells = $util.emptyArray; /** - * Creates a new MountRegisterRequest instance using the specified properties. + * Creates a new RefreshStateByShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.MountRegisterRequest + * @memberof vtctldata.RefreshStateByShardRequest * @static - * @param {vtctldata.IMountRegisterRequest=} [properties] Properties to set - * @returns {vtctldata.MountRegisterRequest} MountRegisterRequest instance + * @param {vtctldata.IRefreshStateByShardRequest=} [properties] Properties to set + * @returns {vtctldata.RefreshStateByShardRequest} RefreshStateByShardRequest instance */ - MountRegisterRequest.create = function create(properties) { - return new MountRegisterRequest(properties); + RefreshStateByShardRequest.create = function create(properties) { + return new RefreshStateByShardRequest(properties); }; /** - * Encodes the specified MountRegisterRequest message. Does not implicitly {@link vtctldata.MountRegisterRequest.verify|verify} messages. + * Encodes the specified RefreshStateByShardRequest message. Does not implicitly {@link vtctldata.RefreshStateByShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.MountRegisterRequest + * @memberof vtctldata.RefreshStateByShardRequest * @static - * @param {vtctldata.IMountRegisterRequest} message MountRegisterRequest message or plain object to encode + * @param {vtctldata.IRefreshStateByShardRequest} message RefreshStateByShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountRegisterRequest.encode = function encode(message, writer) { + RefreshStateByShardRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.topo_type != null && Object.hasOwnProperty.call(message, "topo_type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topo_type); - if (message.topo_server != null && Object.hasOwnProperty.call(message, "topo_server")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.topo_server); - if (message.topo_root != null && Object.hasOwnProperty.call(message, "topo_root")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.topo_root); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + 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.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); return writer; }; /** - * Encodes the specified MountRegisterRequest message, length delimited. Does not implicitly {@link vtctldata.MountRegisterRequest.verify|verify} messages. + * Encodes the specified RefreshStateByShardRequest message, length delimited. Does not implicitly {@link vtctldata.RefreshStateByShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MountRegisterRequest + * @memberof vtctldata.RefreshStateByShardRequest * @static - * @param {vtctldata.IMountRegisterRequest} message MountRegisterRequest message or plain object to encode + * @param {vtctldata.IRefreshStateByShardRequest} message RefreshStateByShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountRegisterRequest.encodeDelimited = function encodeDelimited(message, writer) { + RefreshStateByShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MountRegisterRequest message from the specified reader or buffer. + * Decodes a RefreshStateByShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MountRegisterRequest + * @memberof vtctldata.RefreshStateByShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MountRegisterRequest} MountRegisterRequest + * @returns {vtctldata.RefreshStateByShardRequest} RefreshStateByShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountRegisterRequest.decode = function decode(reader, length) { + RefreshStateByShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountRegisterRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RefreshStateByShardRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.topo_type = reader.string(); + message.keyspace = reader.string(); break; } case 2: { - message.topo_server = reader.string(); + message.shard = reader.string(); break; } case 3: { - message.topo_root = reader.string(); - break; - } - case 4: { - message.name = reader.string(); + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; } default: @@ -166615,146 +174929,153 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MountRegisterRequest message from the specified reader or buffer, length delimited. + * Decodes a RefreshStateByShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MountRegisterRequest + * @memberof vtctldata.RefreshStateByShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MountRegisterRequest} MountRegisterRequest + * @returns {vtctldata.RefreshStateByShardRequest} RefreshStateByShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountRegisterRequest.decodeDelimited = function decodeDelimited(reader) { + RefreshStateByShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MountRegisterRequest message. + * Verifies a RefreshStateByShardRequest message. * @function verify - * @memberof vtctldata.MountRegisterRequest + * @memberof vtctldata.RefreshStateByShardRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MountRegisterRequest.verify = function verify(message) { + RefreshStateByShardRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.topo_type != null && message.hasOwnProperty("topo_type")) - if (!$util.isString(message.topo_type)) - return "topo_type: string expected"; - if (message.topo_server != null && message.hasOwnProperty("topo_server")) - if (!$util.isString(message.topo_server)) - return "topo_server: string expected"; - if (message.topo_root != null && message.hasOwnProperty("topo_root")) - if (!$util.isString(message.topo_root)) - return "topo_root: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } return null; }; /** - * Creates a MountRegisterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshStateByShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MountRegisterRequest + * @memberof vtctldata.RefreshStateByShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.MountRegisterRequest} MountRegisterRequest + * @returns {vtctldata.RefreshStateByShardRequest} RefreshStateByShardRequest */ - MountRegisterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MountRegisterRequest) + RefreshStateByShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RefreshStateByShardRequest) return object; - let message = new $root.vtctldata.MountRegisterRequest(); - if (object.topo_type != null) - message.topo_type = String(object.topo_type); - if (object.topo_server != null) - message.topo_server = String(object.topo_server); - if (object.topo_root != null) - message.topo_root = String(object.topo_root); - if (object.name != null) - message.name = String(object.name); + let message = new $root.vtctldata.RefreshStateByShardRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.RefreshStateByShardRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } return message; }; /** - * Creates a plain object from a MountRegisterRequest message. Also converts values to other types if specified. + * Creates a plain object from a RefreshStateByShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MountRegisterRequest + * @memberof vtctldata.RefreshStateByShardRequest * @static - * @param {vtctldata.MountRegisterRequest} message MountRegisterRequest + * @param {vtctldata.RefreshStateByShardRequest} message RefreshStateByShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MountRegisterRequest.toObject = function toObject(message, options) { + RefreshStateByShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.cells = []; if (options.defaults) { - object.topo_type = ""; - object.topo_server = ""; - object.topo_root = ""; - object.name = ""; + object.keyspace = ""; + object.shard = ""; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; } - if (message.topo_type != null && message.hasOwnProperty("topo_type")) - object.topo_type = message.topo_type; - if (message.topo_server != null && message.hasOwnProperty("topo_server")) - object.topo_server = message.topo_server; - if (message.topo_root != null && message.hasOwnProperty("topo_root")) - object.topo_root = message.topo_root; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; return object; }; /** - * Converts this MountRegisterRequest to JSON. + * Converts this RefreshStateByShardRequest to JSON. * @function toJSON - * @memberof vtctldata.MountRegisterRequest + * @memberof vtctldata.RefreshStateByShardRequest * @instance * @returns {Object.} JSON object */ - MountRegisterRequest.prototype.toJSON = function toJSON() { + RefreshStateByShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MountRegisterRequest + * Gets the default type url for RefreshStateByShardRequest * @function getTypeUrl - * @memberof vtctldata.MountRegisterRequest + * @memberof vtctldata.RefreshStateByShardRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MountRegisterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RefreshStateByShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MountRegisterRequest"; + return typeUrlPrefix + "/vtctldata.RefreshStateByShardRequest"; }; - return MountRegisterRequest; + return RefreshStateByShardRequest; })(); - vtctldata.MountRegisterResponse = (function() { + vtctldata.RefreshStateByShardResponse = (function() { /** - * Properties of a MountRegisterResponse. + * Properties of a RefreshStateByShardResponse. * @memberof vtctldata - * @interface IMountRegisterResponse + * @interface IRefreshStateByShardResponse + * @property {boolean|null} [is_partial_refresh] RefreshStateByShardResponse is_partial_refresh + * @property {string|null} [partial_refresh_details] RefreshStateByShardResponse partial_refresh_details */ /** - * Constructs a new MountRegisterResponse. + * Constructs a new RefreshStateByShardResponse. * @memberof vtctldata - * @classdesc Represents a MountRegisterResponse. - * @implements IMountRegisterResponse + * @classdesc Represents a RefreshStateByShardResponse. + * @implements IRefreshStateByShardResponse * @constructor - * @param {vtctldata.IMountRegisterResponse=} [properties] Properties to set + * @param {vtctldata.IRefreshStateByShardResponse=} [properties] Properties to set */ - function MountRegisterResponse(properties) { + function RefreshStateByShardResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -166762,63 +175083,91 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new MountRegisterResponse instance using the specified properties. + * RefreshStateByShardResponse is_partial_refresh. + * @member {boolean} is_partial_refresh + * @memberof vtctldata.RefreshStateByShardResponse + * @instance + */ + RefreshStateByShardResponse.prototype.is_partial_refresh = false; + + /** + * RefreshStateByShardResponse partial_refresh_details. + * @member {string} partial_refresh_details + * @memberof vtctldata.RefreshStateByShardResponse + * @instance + */ + RefreshStateByShardResponse.prototype.partial_refresh_details = ""; + + /** + * Creates a new RefreshStateByShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.MountRegisterResponse + * @memberof vtctldata.RefreshStateByShardResponse * @static - * @param {vtctldata.IMountRegisterResponse=} [properties] Properties to set - * @returns {vtctldata.MountRegisterResponse} MountRegisterResponse instance + * @param {vtctldata.IRefreshStateByShardResponse=} [properties] Properties to set + * @returns {vtctldata.RefreshStateByShardResponse} RefreshStateByShardResponse instance */ - MountRegisterResponse.create = function create(properties) { - return new MountRegisterResponse(properties); + RefreshStateByShardResponse.create = function create(properties) { + return new RefreshStateByShardResponse(properties); }; /** - * Encodes the specified MountRegisterResponse message. Does not implicitly {@link vtctldata.MountRegisterResponse.verify|verify} messages. + * Encodes the specified RefreshStateByShardResponse message. Does not implicitly {@link vtctldata.RefreshStateByShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.MountRegisterResponse + * @memberof vtctldata.RefreshStateByShardResponse * @static - * @param {vtctldata.IMountRegisterResponse} message MountRegisterResponse message or plain object to encode + * @param {vtctldata.IRefreshStateByShardResponse} message RefreshStateByShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountRegisterResponse.encode = function encode(message, writer) { + RefreshStateByShardResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.is_partial_refresh != null && Object.hasOwnProperty.call(message, "is_partial_refresh")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.is_partial_refresh); + if (message.partial_refresh_details != null && Object.hasOwnProperty.call(message, "partial_refresh_details")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.partial_refresh_details); return writer; }; /** - * Encodes the specified MountRegisterResponse message, length delimited. Does not implicitly {@link vtctldata.MountRegisterResponse.verify|verify} messages. + * Encodes the specified RefreshStateByShardResponse message, length delimited. Does not implicitly {@link vtctldata.RefreshStateByShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MountRegisterResponse + * @memberof vtctldata.RefreshStateByShardResponse * @static - * @param {vtctldata.IMountRegisterResponse} message MountRegisterResponse message or plain object to encode + * @param {vtctldata.IRefreshStateByShardResponse} message RefreshStateByShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountRegisterResponse.encodeDelimited = function encodeDelimited(message, writer) { + RefreshStateByShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MountRegisterResponse message from the specified reader or buffer. + * Decodes a RefreshStateByShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MountRegisterResponse + * @memberof vtctldata.RefreshStateByShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MountRegisterResponse} MountRegisterResponse + * @returns {vtctldata.RefreshStateByShardResponse} RefreshStateByShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountRegisterResponse.decode = function decode(reader, length) { + RefreshStateByShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountRegisterResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RefreshStateByShardResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.is_partial_refresh = reader.bool(); + break; + } + case 2: { + message.partial_refresh_details = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -166828,109 +175177,131 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MountRegisterResponse message from the specified reader or buffer, length delimited. + * Decodes a RefreshStateByShardResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MountRegisterResponse + * @memberof vtctldata.RefreshStateByShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MountRegisterResponse} MountRegisterResponse + * @returns {vtctldata.RefreshStateByShardResponse} RefreshStateByShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountRegisterResponse.decodeDelimited = function decodeDelimited(reader) { + RefreshStateByShardResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MountRegisterResponse message. + * Verifies a RefreshStateByShardResponse message. * @function verify - * @memberof vtctldata.MountRegisterResponse + * @memberof vtctldata.RefreshStateByShardResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MountRegisterResponse.verify = function verify(message) { + RefreshStateByShardResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.is_partial_refresh != null && message.hasOwnProperty("is_partial_refresh")) + if (typeof message.is_partial_refresh !== "boolean") + return "is_partial_refresh: boolean expected"; + if (message.partial_refresh_details != null && message.hasOwnProperty("partial_refresh_details")) + if (!$util.isString(message.partial_refresh_details)) + return "partial_refresh_details: string expected"; return null; }; /** - * Creates a MountRegisterResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RefreshStateByShardResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MountRegisterResponse + * @memberof vtctldata.RefreshStateByShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.MountRegisterResponse} MountRegisterResponse + * @returns {vtctldata.RefreshStateByShardResponse} RefreshStateByShardResponse */ - MountRegisterResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MountRegisterResponse) + RefreshStateByShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RefreshStateByShardResponse) return object; - return new $root.vtctldata.MountRegisterResponse(); + let message = new $root.vtctldata.RefreshStateByShardResponse(); + if (object.is_partial_refresh != null) + message.is_partial_refresh = Boolean(object.is_partial_refresh); + if (object.partial_refresh_details != null) + message.partial_refresh_details = String(object.partial_refresh_details); + return message; }; /** - * Creates a plain object from a MountRegisterResponse message. Also converts values to other types if specified. + * Creates a plain object from a RefreshStateByShardResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MountRegisterResponse + * @memberof vtctldata.RefreshStateByShardResponse * @static - * @param {vtctldata.MountRegisterResponse} message MountRegisterResponse + * @param {vtctldata.RefreshStateByShardResponse} message RefreshStateByShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MountRegisterResponse.toObject = function toObject() { - return {}; + RefreshStateByShardResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.is_partial_refresh = false; + object.partial_refresh_details = ""; + } + if (message.is_partial_refresh != null && message.hasOwnProperty("is_partial_refresh")) + object.is_partial_refresh = message.is_partial_refresh; + if (message.partial_refresh_details != null && message.hasOwnProperty("partial_refresh_details")) + object.partial_refresh_details = message.partial_refresh_details; + return object; }; /** - * Converts this MountRegisterResponse to JSON. + * Converts this RefreshStateByShardResponse to JSON. * @function toJSON - * @memberof vtctldata.MountRegisterResponse + * @memberof vtctldata.RefreshStateByShardResponse * @instance * @returns {Object.} JSON object */ - MountRegisterResponse.prototype.toJSON = function toJSON() { + RefreshStateByShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MountRegisterResponse + * Gets the default type url for RefreshStateByShardResponse * @function getTypeUrl - * @memberof vtctldata.MountRegisterResponse + * @memberof vtctldata.RefreshStateByShardResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MountRegisterResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RefreshStateByShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MountRegisterResponse"; + return typeUrlPrefix + "/vtctldata.RefreshStateByShardResponse"; }; - return MountRegisterResponse; + return RefreshStateByShardResponse; })(); - vtctldata.MountUnregisterRequest = (function() { + vtctldata.ReloadSchemaRequest = (function() { /** - * Properties of a MountUnregisterRequest. + * Properties of a ReloadSchemaRequest. * @memberof vtctldata - * @interface IMountUnregisterRequest - * @property {string|null} [name] MountUnregisterRequest name + * @interface IReloadSchemaRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] ReloadSchemaRequest tablet_alias */ /** - * Constructs a new MountUnregisterRequest. + * Constructs a new ReloadSchemaRequest. * @memberof vtctldata - * @classdesc Represents a MountUnregisterRequest. - * @implements IMountUnregisterRequest + * @classdesc Represents a ReloadSchemaRequest. + * @implements IReloadSchemaRequest * @constructor - * @param {vtctldata.IMountUnregisterRequest=} [properties] Properties to set + * @param {vtctldata.IReloadSchemaRequest=} [properties] Properties to set */ - function MountUnregisterRequest(properties) { + function ReloadSchemaRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -166938,75 +175309,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * MountUnregisterRequest name. - * @member {string} name - * @memberof vtctldata.MountUnregisterRequest + * ReloadSchemaRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.ReloadSchemaRequest * @instance */ - MountUnregisterRequest.prototype.name = ""; + ReloadSchemaRequest.prototype.tablet_alias = null; /** - * Creates a new MountUnregisterRequest instance using the specified properties. + * Creates a new ReloadSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.MountUnregisterRequest + * @memberof vtctldata.ReloadSchemaRequest * @static - * @param {vtctldata.IMountUnregisterRequest=} [properties] Properties to set - * @returns {vtctldata.MountUnregisterRequest} MountUnregisterRequest instance + * @param {vtctldata.IReloadSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.ReloadSchemaRequest} ReloadSchemaRequest instance */ - MountUnregisterRequest.create = function create(properties) { - return new MountUnregisterRequest(properties); + ReloadSchemaRequest.create = function create(properties) { + return new ReloadSchemaRequest(properties); }; /** - * Encodes the specified MountUnregisterRequest message. Does not implicitly {@link vtctldata.MountUnregisterRequest.verify|verify} messages. + * Encodes the specified ReloadSchemaRequest message. Does not implicitly {@link vtctldata.ReloadSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.MountUnregisterRequest + * @memberof vtctldata.ReloadSchemaRequest * @static - * @param {vtctldata.IMountUnregisterRequest} message MountUnregisterRequest message or plain object to encode + * @param {vtctldata.IReloadSchemaRequest} message ReloadSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountUnregisterRequest.encode = function encode(message, writer) { + ReloadSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + 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(); return writer; }; /** - * Encodes the specified MountUnregisterRequest message, length delimited. Does not implicitly {@link vtctldata.MountUnregisterRequest.verify|verify} messages. + * Encodes the specified ReloadSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MountUnregisterRequest + * @memberof vtctldata.ReloadSchemaRequest * @static - * @param {vtctldata.IMountUnregisterRequest} message MountUnregisterRequest message or plain object to encode + * @param {vtctldata.IReloadSchemaRequest} message ReloadSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountUnregisterRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReloadSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MountUnregisterRequest message from the specified reader or buffer. + * Decodes a ReloadSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MountUnregisterRequest + * @memberof vtctldata.ReloadSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MountUnregisterRequest} MountUnregisterRequest + * @returns {vtctldata.ReloadSchemaRequest} ReloadSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountUnregisterRequest.decode = function decode(reader, length) { + ReloadSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountUnregisterRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReloadSchemaRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 4: { - message.name = reader.string(); + case 1: { + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -167018,121 +175389,126 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MountUnregisterRequest message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MountUnregisterRequest + * @memberof vtctldata.ReloadSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MountUnregisterRequest} MountUnregisterRequest + * @returns {vtctldata.ReloadSchemaRequest} ReloadSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountUnregisterRequest.decodeDelimited = function decodeDelimited(reader) { + ReloadSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MountUnregisterRequest message. + * Verifies a ReloadSchemaRequest message. * @function verify - * @memberof vtctldata.MountUnregisterRequest + * @memberof vtctldata.ReloadSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MountUnregisterRequest.verify = function verify(message) { + ReloadSchemaRequest.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.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } return null; }; /** - * Creates a MountUnregisterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MountUnregisterRequest + * @memberof vtctldata.ReloadSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.MountUnregisterRequest} MountUnregisterRequest + * @returns {vtctldata.ReloadSchemaRequest} ReloadSchemaRequest */ - MountUnregisterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MountUnregisterRequest) + ReloadSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReloadSchemaRequest) return object; - let message = new $root.vtctldata.MountUnregisterRequest(); - if (object.name != null) - message.name = String(object.name); + let message = new $root.vtctldata.ReloadSchemaRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.ReloadSchemaRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } return message; }; /** - * Creates a plain object from a MountUnregisterRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReloadSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MountUnregisterRequest + * @memberof vtctldata.ReloadSchemaRequest * @static - * @param {vtctldata.MountUnregisterRequest} message MountUnregisterRequest + * @param {vtctldata.ReloadSchemaRequest} message ReloadSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MountUnregisterRequest.toObject = function toObject(message, options) { + ReloadSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.tablet_alias = null; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); return object; }; /** - * Converts this MountUnregisterRequest to JSON. + * Converts this ReloadSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.MountUnregisterRequest + * @memberof vtctldata.ReloadSchemaRequest * @instance * @returns {Object.} JSON object */ - MountUnregisterRequest.prototype.toJSON = function toJSON() { + ReloadSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MountUnregisterRequest + * Gets the default type url for ReloadSchemaRequest * @function getTypeUrl - * @memberof vtctldata.MountUnregisterRequest + * @memberof vtctldata.ReloadSchemaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MountUnregisterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReloadSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MountUnregisterRequest"; + return typeUrlPrefix + "/vtctldata.ReloadSchemaRequest"; }; - return MountUnregisterRequest; + return ReloadSchemaRequest; })(); - vtctldata.MountUnregisterResponse = (function() { + vtctldata.ReloadSchemaResponse = (function() { /** - * Properties of a MountUnregisterResponse. + * Properties of a ReloadSchemaResponse. * @memberof vtctldata - * @interface IMountUnregisterResponse + * @interface IReloadSchemaResponse */ /** - * Constructs a new MountUnregisterResponse. + * Constructs a new ReloadSchemaResponse. * @memberof vtctldata - * @classdesc Represents a MountUnregisterResponse. - * @implements IMountUnregisterResponse + * @classdesc Represents a ReloadSchemaResponse. + * @implements IReloadSchemaResponse * @constructor - * @param {vtctldata.IMountUnregisterResponse=} [properties] Properties to set + * @param {vtctldata.IReloadSchemaResponse=} [properties] Properties to set */ - function MountUnregisterResponse(properties) { + function ReloadSchemaResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -167140,60 +175516,60 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new MountUnregisterResponse instance using the specified properties. + * Creates a new ReloadSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.MountUnregisterResponse + * @memberof vtctldata.ReloadSchemaResponse * @static - * @param {vtctldata.IMountUnregisterResponse=} [properties] Properties to set - * @returns {vtctldata.MountUnregisterResponse} MountUnregisterResponse instance + * @param {vtctldata.IReloadSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.ReloadSchemaResponse} ReloadSchemaResponse instance */ - MountUnregisterResponse.create = function create(properties) { - return new MountUnregisterResponse(properties); + ReloadSchemaResponse.create = function create(properties) { + return new ReloadSchemaResponse(properties); }; /** - * Encodes the specified MountUnregisterResponse message. Does not implicitly {@link vtctldata.MountUnregisterResponse.verify|verify} messages. + * Encodes the specified ReloadSchemaResponse message. Does not implicitly {@link vtctldata.ReloadSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.MountUnregisterResponse + * @memberof vtctldata.ReloadSchemaResponse * @static - * @param {vtctldata.IMountUnregisterResponse} message MountUnregisterResponse message or plain object to encode + * @param {vtctldata.IReloadSchemaResponse} message ReloadSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountUnregisterResponse.encode = function encode(message, writer) { + ReloadSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified MountUnregisterResponse message, length delimited. Does not implicitly {@link vtctldata.MountUnregisterResponse.verify|verify} messages. + * Encodes the specified ReloadSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MountUnregisterResponse + * @memberof vtctldata.ReloadSchemaResponse * @static - * @param {vtctldata.IMountUnregisterResponse} message MountUnregisterResponse message or plain object to encode + * @param {vtctldata.IReloadSchemaResponse} message ReloadSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountUnregisterResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReloadSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MountUnregisterResponse message from the specified reader or buffer. + * Decodes a ReloadSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MountUnregisterResponse + * @memberof vtctldata.ReloadSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MountUnregisterResponse} MountUnregisterResponse + * @returns {vtctldata.ReloadSchemaResponse} ReloadSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountUnregisterResponse.decode = function decode(reader, length) { + ReloadSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountUnregisterResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReloadSchemaResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -167206,109 +175582,112 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MountUnregisterResponse message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MountUnregisterResponse + * @memberof vtctldata.ReloadSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MountUnregisterResponse} MountUnregisterResponse + * @returns {vtctldata.ReloadSchemaResponse} ReloadSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountUnregisterResponse.decodeDelimited = function decodeDelimited(reader) { + ReloadSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MountUnregisterResponse message. + * Verifies a ReloadSchemaResponse message. * @function verify - * @memberof vtctldata.MountUnregisterResponse + * @memberof vtctldata.ReloadSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MountUnregisterResponse.verify = function verify(message) { + ReloadSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a MountUnregisterResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MountUnregisterResponse + * @memberof vtctldata.ReloadSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.MountUnregisterResponse} MountUnregisterResponse + * @returns {vtctldata.ReloadSchemaResponse} ReloadSchemaResponse */ - MountUnregisterResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MountUnregisterResponse) + ReloadSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReloadSchemaResponse) return object; - return new $root.vtctldata.MountUnregisterResponse(); + return new $root.vtctldata.ReloadSchemaResponse(); }; /** - * Creates a plain object from a MountUnregisterResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReloadSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MountUnregisterResponse + * @memberof vtctldata.ReloadSchemaResponse * @static - * @param {vtctldata.MountUnregisterResponse} message MountUnregisterResponse + * @param {vtctldata.ReloadSchemaResponse} message ReloadSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MountUnregisterResponse.toObject = function toObject() { + ReloadSchemaResponse.toObject = function toObject() { return {}; }; /** - * Converts this MountUnregisterResponse to JSON. + * Converts this ReloadSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.MountUnregisterResponse + * @memberof vtctldata.ReloadSchemaResponse * @instance * @returns {Object.} JSON object */ - MountUnregisterResponse.prototype.toJSON = function toJSON() { + ReloadSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MountUnregisterResponse + * Gets the default type url for ReloadSchemaResponse * @function getTypeUrl - * @memberof vtctldata.MountUnregisterResponse + * @memberof vtctldata.ReloadSchemaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MountUnregisterResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReloadSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MountUnregisterResponse"; + return typeUrlPrefix + "/vtctldata.ReloadSchemaResponse"; }; - return MountUnregisterResponse; + return ReloadSchemaResponse; })(); - vtctldata.MountShowRequest = (function() { + vtctldata.ReloadSchemaKeyspaceRequest = (function() { /** - * Properties of a MountShowRequest. + * Properties of a ReloadSchemaKeyspaceRequest. * @memberof vtctldata - * @interface IMountShowRequest - * @property {string|null} [name] MountShowRequest name + * @interface IReloadSchemaKeyspaceRequest + * @property {string|null} [keyspace] ReloadSchemaKeyspaceRequest keyspace + * @property {string|null} [wait_position] ReloadSchemaKeyspaceRequest wait_position + * @property {boolean|null} [include_primary] ReloadSchemaKeyspaceRequest include_primary + * @property {number|null} [concurrency] ReloadSchemaKeyspaceRequest concurrency */ /** - * Constructs a new MountShowRequest. + * Constructs a new ReloadSchemaKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents a MountShowRequest. - * @implements IMountShowRequest + * @classdesc Represents a ReloadSchemaKeyspaceRequest. + * @implements IReloadSchemaKeyspaceRequest * @constructor - * @param {vtctldata.IMountShowRequest=} [properties] Properties to set + * @param {vtctldata.IReloadSchemaKeyspaceRequest=} [properties] Properties to set */ - function MountShowRequest(properties) { + function ReloadSchemaKeyspaceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -167316,75 +175695,117 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * MountShowRequest name. - * @member {string} name - * @memberof vtctldata.MountShowRequest + * ReloadSchemaKeyspaceRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.ReloadSchemaKeyspaceRequest * @instance */ - MountShowRequest.prototype.name = ""; + ReloadSchemaKeyspaceRequest.prototype.keyspace = ""; /** - * Creates a new MountShowRequest instance using the specified properties. + * ReloadSchemaKeyspaceRequest wait_position. + * @member {string} wait_position + * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * @instance + */ + ReloadSchemaKeyspaceRequest.prototype.wait_position = ""; + + /** + * ReloadSchemaKeyspaceRequest include_primary. + * @member {boolean} include_primary + * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * @instance + */ + ReloadSchemaKeyspaceRequest.prototype.include_primary = false; + + /** + * ReloadSchemaKeyspaceRequest concurrency. + * @member {number} concurrency + * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * @instance + */ + ReloadSchemaKeyspaceRequest.prototype.concurrency = 0; + + /** + * Creates a new ReloadSchemaKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.MountShowRequest + * @memberof vtctldata.ReloadSchemaKeyspaceRequest * @static - * @param {vtctldata.IMountShowRequest=} [properties] Properties to set - * @returns {vtctldata.MountShowRequest} MountShowRequest instance + * @param {vtctldata.IReloadSchemaKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.ReloadSchemaKeyspaceRequest} ReloadSchemaKeyspaceRequest instance */ - MountShowRequest.create = function create(properties) { - return new MountShowRequest(properties); + ReloadSchemaKeyspaceRequest.create = function create(properties) { + return new ReloadSchemaKeyspaceRequest(properties); }; /** - * Encodes the specified MountShowRequest message. Does not implicitly {@link vtctldata.MountShowRequest.verify|verify} messages. + * Encodes the specified ReloadSchemaKeyspaceRequest message. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.MountShowRequest + * @memberof vtctldata.ReloadSchemaKeyspaceRequest * @static - * @param {vtctldata.IMountShowRequest} message MountShowRequest message or plain object to encode + * @param {vtctldata.IReloadSchemaKeyspaceRequest} message ReloadSchemaKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountShowRequest.encode = function encode(message, writer) { + ReloadSchemaKeyspaceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.wait_position != null && Object.hasOwnProperty.call(message, "wait_position")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.wait_position); + if (message.include_primary != null && Object.hasOwnProperty.call(message, "include_primary")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.include_primary); + if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.concurrency); return writer; }; /** - * Encodes the specified MountShowRequest message, length delimited. Does not implicitly {@link vtctldata.MountShowRequest.verify|verify} messages. + * Encodes the specified ReloadSchemaKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MountShowRequest + * @memberof vtctldata.ReloadSchemaKeyspaceRequest * @static - * @param {vtctldata.IMountShowRequest} message MountShowRequest message or plain object to encode + * @param {vtctldata.IReloadSchemaKeyspaceRequest} message ReloadSchemaKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountShowRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReloadSchemaKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MountShowRequest message from the specified reader or buffer. + * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MountShowRequest + * @memberof vtctldata.ReloadSchemaKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MountShowRequest} MountShowRequest + * @returns {vtctldata.ReloadSchemaKeyspaceRequest} ReloadSchemaKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountShowRequest.decode = function decode(reader, length) { + ReloadSchemaKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountShowRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReloadSchemaKeyspaceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.keyspace = reader.string(); + break; + } + case 2: { + message.wait_position = reader.string(); + break; + } + case 3: { + message.include_primary = reader.bool(); + break; + } case 4: { - message.name = reader.string(); + message.concurrency = reader.int32(); break; } default: @@ -167396,125 +175817,148 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MountShowRequest message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MountShowRequest + * @memberof vtctldata.ReloadSchemaKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MountShowRequest} MountShowRequest + * @returns {vtctldata.ReloadSchemaKeyspaceRequest} ReloadSchemaKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountShowRequest.decodeDelimited = function decodeDelimited(reader) { + ReloadSchemaKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MountShowRequest message. + * Verifies a ReloadSchemaKeyspaceRequest message. * @function verify - * @memberof vtctldata.MountShowRequest + * @memberof vtctldata.ReloadSchemaKeyspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MountShowRequest.verify = function verify(message) { + ReloadSchemaKeyspaceRequest.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")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.wait_position != null && message.hasOwnProperty("wait_position")) + if (!$util.isString(message.wait_position)) + return "wait_position: string expected"; + if (message.include_primary != null && message.hasOwnProperty("include_primary")) + if (typeof message.include_primary !== "boolean") + return "include_primary: boolean expected"; + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + if (!$util.isInteger(message.concurrency)) + return "concurrency: integer expected"; return null; }; /** - * Creates a MountShowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MountShowRequest + * @memberof vtctldata.ReloadSchemaKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.MountShowRequest} MountShowRequest + * @returns {vtctldata.ReloadSchemaKeyspaceRequest} ReloadSchemaKeyspaceRequest */ - MountShowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MountShowRequest) + ReloadSchemaKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReloadSchemaKeyspaceRequest) return object; - let message = new $root.vtctldata.MountShowRequest(); - if (object.name != null) - message.name = String(object.name); + let message = new $root.vtctldata.ReloadSchemaKeyspaceRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.wait_position != null) + message.wait_position = String(object.wait_position); + if (object.include_primary != null) + message.include_primary = Boolean(object.include_primary); + if (object.concurrency != null) + message.concurrency = object.concurrency | 0; return message; }; /** - * Creates a plain object from a MountShowRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReloadSchemaKeyspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MountShowRequest + * @memberof vtctldata.ReloadSchemaKeyspaceRequest * @static - * @param {vtctldata.MountShowRequest} message MountShowRequest + * @param {vtctldata.ReloadSchemaKeyspaceRequest} message ReloadSchemaKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MountShowRequest.toObject = function toObject(message, options) { + ReloadSchemaKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.keyspace = ""; + object.wait_position = ""; + object.include_primary = false; + object.concurrency = 0; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.wait_position != null && message.hasOwnProperty("wait_position")) + object.wait_position = message.wait_position; + if (message.include_primary != null && message.hasOwnProperty("include_primary")) + object.include_primary = message.include_primary; + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + object.concurrency = message.concurrency; return object; }; /** - * Converts this MountShowRequest to JSON. + * Converts this ReloadSchemaKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.MountShowRequest + * @memberof vtctldata.ReloadSchemaKeyspaceRequest * @instance * @returns {Object.} JSON object */ - MountShowRequest.prototype.toJSON = function toJSON() { + ReloadSchemaKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MountShowRequest + * Gets the default type url for ReloadSchemaKeyspaceRequest * @function getTypeUrl - * @memberof vtctldata.MountShowRequest + * @memberof vtctldata.ReloadSchemaKeyspaceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MountShowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReloadSchemaKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MountShowRequest"; + return typeUrlPrefix + "/vtctldata.ReloadSchemaKeyspaceRequest"; }; - return MountShowRequest; + return ReloadSchemaKeyspaceRequest; })(); - vtctldata.MountShowResponse = (function() { + vtctldata.ReloadSchemaKeyspaceResponse = (function() { /** - * Properties of a MountShowResponse. + * Properties of a ReloadSchemaKeyspaceResponse. * @memberof vtctldata - * @interface IMountShowResponse - * @property {string|null} [topo_type] MountShowResponse topo_type - * @property {string|null} [topo_server] MountShowResponse topo_server - * @property {string|null} [topo_root] MountShowResponse topo_root - * @property {string|null} [name] MountShowResponse name + * @interface IReloadSchemaKeyspaceResponse + * @property {Array.|null} [events] ReloadSchemaKeyspaceResponse events */ /** - * Constructs a new MountShowResponse. + * Constructs a new ReloadSchemaKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents a MountShowResponse. - * @implements IMountShowResponse + * @classdesc Represents a ReloadSchemaKeyspaceResponse. + * @implements IReloadSchemaKeyspaceResponse * @constructor - * @param {vtctldata.IMountShowResponse=} [properties] Properties to set + * @param {vtctldata.IReloadSchemaKeyspaceResponse=} [properties] Properties to set */ - function MountShowResponse(properties) { + function ReloadSchemaKeyspaceResponse(properties) { + this.events = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -167522,117 +175966,78 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * MountShowResponse topo_type. - * @member {string} topo_type - * @memberof vtctldata.MountShowResponse - * @instance - */ - MountShowResponse.prototype.topo_type = ""; - - /** - * MountShowResponse topo_server. - * @member {string} topo_server - * @memberof vtctldata.MountShowResponse - * @instance - */ - MountShowResponse.prototype.topo_server = ""; - - /** - * MountShowResponse topo_root. - * @member {string} topo_root - * @memberof vtctldata.MountShowResponse - * @instance - */ - MountShowResponse.prototype.topo_root = ""; - - /** - * MountShowResponse name. - * @member {string} name - * @memberof vtctldata.MountShowResponse + * ReloadSchemaKeyspaceResponse events. + * @member {Array.} events + * @memberof vtctldata.ReloadSchemaKeyspaceResponse * @instance */ - MountShowResponse.prototype.name = ""; + ReloadSchemaKeyspaceResponse.prototype.events = $util.emptyArray; /** - * Creates a new MountShowResponse instance using the specified properties. + * Creates a new ReloadSchemaKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.MountShowResponse + * @memberof vtctldata.ReloadSchemaKeyspaceResponse * @static - * @param {vtctldata.IMountShowResponse=} [properties] Properties to set - * @returns {vtctldata.MountShowResponse} MountShowResponse instance + * @param {vtctldata.IReloadSchemaKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.ReloadSchemaKeyspaceResponse} ReloadSchemaKeyspaceResponse instance */ - MountShowResponse.create = function create(properties) { - return new MountShowResponse(properties); + ReloadSchemaKeyspaceResponse.create = function create(properties) { + return new ReloadSchemaKeyspaceResponse(properties); }; /** - * Encodes the specified MountShowResponse message. Does not implicitly {@link vtctldata.MountShowResponse.verify|verify} messages. + * Encodes the specified ReloadSchemaKeyspaceResponse message. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.MountShowResponse + * @memberof vtctldata.ReloadSchemaKeyspaceResponse * @static - * @param {vtctldata.IMountShowResponse} message MountShowResponse message or plain object to encode + * @param {vtctldata.IReloadSchemaKeyspaceResponse} message ReloadSchemaKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountShowResponse.encode = function encode(message, writer) { + ReloadSchemaKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.topo_type != null && Object.hasOwnProperty.call(message, "topo_type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topo_type); - if (message.topo_server != null && Object.hasOwnProperty.call(message, "topo_server")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.topo_server); - if (message.topo_root != null && Object.hasOwnProperty.call(message, "topo_root")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.topo_root); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.events != null && message.events.length) + for (let i = 0; i < message.events.length; ++i) + $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MountShowResponse message, length delimited. Does not implicitly {@link vtctldata.MountShowResponse.verify|verify} messages. + * Encodes the specified ReloadSchemaKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MountShowResponse + * @memberof vtctldata.ReloadSchemaKeyspaceResponse * @static - * @param {vtctldata.IMountShowResponse} message MountShowResponse message or plain object to encode + * @param {vtctldata.IReloadSchemaKeyspaceResponse} message ReloadSchemaKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountShowResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReloadSchemaKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MountShowResponse message from the specified reader or buffer. + * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MountShowResponse + * @memberof vtctldata.ReloadSchemaKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MountShowResponse} MountShowResponse + * @returns {vtctldata.ReloadSchemaKeyspaceResponse} ReloadSchemaKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountShowResponse.decode = function decode(reader, length) { + ReloadSchemaKeyspaceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountShowResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReloadSchemaKeyspaceResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.topo_type = reader.string(); - break; - } - case 2: { - message.topo_server = reader.string(); - break; - } - case 3: { - message.topo_root = reader.string(); - break; - } - case 4: { - message.name = reader.string(); + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.logutil.Event.decode(reader, reader.uint32())); break; } default: @@ -167644,210 +176049,277 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MountShowResponse message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MountShowResponse + * @memberof vtctldata.ReloadSchemaKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MountShowResponse} MountShowResponse + * @returns {vtctldata.ReloadSchemaKeyspaceResponse} ReloadSchemaKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountShowResponse.decodeDelimited = function decodeDelimited(reader) { + ReloadSchemaKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MountShowResponse message. + * Verifies a ReloadSchemaKeyspaceResponse message. * @function verify - * @memberof vtctldata.MountShowResponse + * @memberof vtctldata.ReloadSchemaKeyspaceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MountShowResponse.verify = function verify(message) { + ReloadSchemaKeyspaceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.topo_type != null && message.hasOwnProperty("topo_type")) - if (!$util.isString(message.topo_type)) - return "topo_type: string expected"; - if (message.topo_server != null && message.hasOwnProperty("topo_server")) - if (!$util.isString(message.topo_server)) - return "topo_server: string expected"; - if (message.topo_root != null && message.hasOwnProperty("topo_root")) - if (!$util.isString(message.topo_root)) - return "topo_root: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (let i = 0; i < message.events.length; ++i) { + let error = $root.logutil.Event.verify(message.events[i]); + if (error) + return "events." + error; + } + } return null; }; /** - * Creates a MountShowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MountShowResponse + * @memberof vtctldata.ReloadSchemaKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.MountShowResponse} MountShowResponse + * @returns {vtctldata.ReloadSchemaKeyspaceResponse} ReloadSchemaKeyspaceResponse */ - MountShowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MountShowResponse) + ReloadSchemaKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReloadSchemaKeyspaceResponse) return object; - let message = new $root.vtctldata.MountShowResponse(); - if (object.topo_type != null) - message.topo_type = String(object.topo_type); - if (object.topo_server != null) - message.topo_server = String(object.topo_server); - if (object.topo_root != null) - message.topo_root = String(object.topo_root); - if (object.name != null) - message.name = String(object.name); + let message = new $root.vtctldata.ReloadSchemaKeyspaceResponse(); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".vtctldata.ReloadSchemaKeyspaceResponse.events: array expected"); + message.events = []; + for (let i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".vtctldata.ReloadSchemaKeyspaceResponse.events: object expected"); + message.events[i] = $root.logutil.Event.fromObject(object.events[i]); + } + } return message; }; /** - * Creates a plain object from a MountShowResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReloadSchemaKeyspaceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MountShowResponse + * @memberof vtctldata.ReloadSchemaKeyspaceResponse * @static - * @param {vtctldata.MountShowResponse} message MountShowResponse + * @param {vtctldata.ReloadSchemaKeyspaceResponse} message ReloadSchemaKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MountShowResponse.toObject = function toObject(message, options) { + ReloadSchemaKeyspaceResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.topo_type = ""; - object.topo_server = ""; - object.topo_root = ""; - object.name = ""; + if (options.arrays || options.defaults) + object.events = []; + if (message.events && message.events.length) { + object.events = []; + for (let j = 0; j < message.events.length; ++j) + object.events[j] = $root.logutil.Event.toObject(message.events[j], options); } - if (message.topo_type != null && message.hasOwnProperty("topo_type")) - object.topo_type = message.topo_type; - if (message.topo_server != null && message.hasOwnProperty("topo_server")) - object.topo_server = message.topo_server; - if (message.topo_root != null && message.hasOwnProperty("topo_root")) - object.topo_root = message.topo_root; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; return object; }; /** - * Converts this MountShowResponse to JSON. + * Converts this ReloadSchemaKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.MountShowResponse + * @memberof vtctldata.ReloadSchemaKeyspaceResponse * @instance * @returns {Object.} JSON object */ - MountShowResponse.prototype.toJSON = function toJSON() { + ReloadSchemaKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MountShowResponse + * Gets the default type url for ReloadSchemaKeyspaceResponse * @function getTypeUrl - * @memberof vtctldata.MountShowResponse + * @memberof vtctldata.ReloadSchemaKeyspaceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MountShowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReloadSchemaKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MountShowResponse"; + return typeUrlPrefix + "/vtctldata.ReloadSchemaKeyspaceResponse"; }; - return MountShowResponse; + return ReloadSchemaKeyspaceResponse; })(); - vtctldata.MountListRequest = (function() { + vtctldata.ReloadSchemaShardRequest = (function() { /** - * Properties of a MountListRequest. + * Properties of a ReloadSchemaShardRequest. * @memberof vtctldata - * @interface IMountListRequest + * @interface IReloadSchemaShardRequest + * @property {string|null} [keyspace] ReloadSchemaShardRequest keyspace + * @property {string|null} [shard] ReloadSchemaShardRequest shard + * @property {string|null} [wait_position] ReloadSchemaShardRequest wait_position + * @property {boolean|null} [include_primary] ReloadSchemaShardRequest include_primary + * @property {number|null} [concurrency] ReloadSchemaShardRequest concurrency */ /** - * Constructs a new MountListRequest. + * Constructs a new ReloadSchemaShardRequest. * @memberof vtctldata - * @classdesc Represents a MountListRequest. - * @implements IMountListRequest + * @classdesc Represents a ReloadSchemaShardRequest. + * @implements IReloadSchemaShardRequest * @constructor - * @param {vtctldata.IMountListRequest=} [properties] Properties to set + * @param {vtctldata.IReloadSchemaShardRequest=} [properties] Properties to set + */ + function ReloadSchemaShardRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReloadSchemaShardRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.ReloadSchemaShardRequest + * @instance + */ + ReloadSchemaShardRequest.prototype.keyspace = ""; + + /** + * ReloadSchemaShardRequest shard. + * @member {string} shard + * @memberof vtctldata.ReloadSchemaShardRequest + * @instance + */ + ReloadSchemaShardRequest.prototype.shard = ""; + + /** + * ReloadSchemaShardRequest wait_position. + * @member {string} wait_position + * @memberof vtctldata.ReloadSchemaShardRequest + * @instance + */ + ReloadSchemaShardRequest.prototype.wait_position = ""; + + /** + * ReloadSchemaShardRequest include_primary. + * @member {boolean} include_primary + * @memberof vtctldata.ReloadSchemaShardRequest + * @instance */ - function MountListRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ReloadSchemaShardRequest.prototype.include_primary = false; /** - * Creates a new MountListRequest instance using the specified properties. + * ReloadSchemaShardRequest concurrency. + * @member {number} concurrency + * @memberof vtctldata.ReloadSchemaShardRequest + * @instance + */ + ReloadSchemaShardRequest.prototype.concurrency = 0; + + /** + * Creates a new ReloadSchemaShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.MountListRequest + * @memberof vtctldata.ReloadSchemaShardRequest * @static - * @param {vtctldata.IMountListRequest=} [properties] Properties to set - * @returns {vtctldata.MountListRequest} MountListRequest instance + * @param {vtctldata.IReloadSchemaShardRequest=} [properties] Properties to set + * @returns {vtctldata.ReloadSchemaShardRequest} ReloadSchemaShardRequest instance */ - MountListRequest.create = function create(properties) { - return new MountListRequest(properties); + ReloadSchemaShardRequest.create = function create(properties) { + return new ReloadSchemaShardRequest(properties); }; /** - * Encodes the specified MountListRequest message. Does not implicitly {@link vtctldata.MountListRequest.verify|verify} messages. + * Encodes the specified ReloadSchemaShardRequest message. Does not implicitly {@link vtctldata.ReloadSchemaShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.MountListRequest + * @memberof vtctldata.ReloadSchemaShardRequest * @static - * @param {vtctldata.IMountListRequest} message MountListRequest message or plain object to encode + * @param {vtctldata.IReloadSchemaShardRequest} message ReloadSchemaShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountListRequest.encode = function encode(message, writer) { + ReloadSchemaShardRequest.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.wait_position != null && Object.hasOwnProperty.call(message, "wait_position")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.wait_position); + if (message.include_primary != null && Object.hasOwnProperty.call(message, "include_primary")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_primary); + if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.concurrency); return writer; }; /** - * Encodes the specified MountListRequest message, length delimited. Does not implicitly {@link vtctldata.MountListRequest.verify|verify} messages. + * Encodes the specified ReloadSchemaShardRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MountListRequest + * @memberof vtctldata.ReloadSchemaShardRequest * @static - * @param {vtctldata.IMountListRequest} message MountListRequest message or plain object to encode + * @param {vtctldata.IReloadSchemaShardRequest} message ReloadSchemaShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountListRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReloadSchemaShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MountListRequest message from the specified reader or buffer. + * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MountListRequest + * @memberof vtctldata.ReloadSchemaShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MountListRequest} MountListRequest + * @returns {vtctldata.ReloadSchemaShardRequest} ReloadSchemaShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountListRequest.decode = function decode(reader, length) { + ReloadSchemaShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountListRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReloadSchemaShardRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.keyspace = reader.string(); + break; + } + case 2: { + message.shard = reader.string(); + break; + } + case 3: { + message.wait_position = reader.string(); + break; + } + case 4: { + message.include_primary = reader.bool(); + break; + } + case 5: { + message.concurrency = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -167857,110 +176329,156 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MountListRequest message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MountListRequest + * @memberof vtctldata.ReloadSchemaShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MountListRequest} MountListRequest + * @returns {vtctldata.ReloadSchemaShardRequest} ReloadSchemaShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountListRequest.decodeDelimited = function decodeDelimited(reader) { + ReloadSchemaShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MountListRequest message. + * Verifies a ReloadSchemaShardRequest message. * @function verify - * @memberof vtctldata.MountListRequest + * @memberof vtctldata.ReloadSchemaShardRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MountListRequest.verify = function verify(message) { + ReloadSchemaShardRequest.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.wait_position != null && message.hasOwnProperty("wait_position")) + if (!$util.isString(message.wait_position)) + return "wait_position: string expected"; + if (message.include_primary != null && message.hasOwnProperty("include_primary")) + if (typeof message.include_primary !== "boolean") + return "include_primary: boolean expected"; + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + if (!$util.isInteger(message.concurrency)) + return "concurrency: integer expected"; return null; }; /** - * Creates a MountListRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MountListRequest + * @memberof vtctldata.ReloadSchemaShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.MountListRequest} MountListRequest + * @returns {vtctldata.ReloadSchemaShardRequest} ReloadSchemaShardRequest */ - MountListRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MountListRequest) + ReloadSchemaShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReloadSchemaShardRequest) return object; - return new $root.vtctldata.MountListRequest(); + let message = new $root.vtctldata.ReloadSchemaShardRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.wait_position != null) + message.wait_position = String(object.wait_position); + if (object.include_primary != null) + message.include_primary = Boolean(object.include_primary); + if (object.concurrency != null) + message.concurrency = object.concurrency | 0; + return message; }; /** - * Creates a plain object from a MountListRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReloadSchemaShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MountListRequest + * @memberof vtctldata.ReloadSchemaShardRequest * @static - * @param {vtctldata.MountListRequest} message MountListRequest + * @param {vtctldata.ReloadSchemaShardRequest} message ReloadSchemaShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MountListRequest.toObject = function toObject() { - return {}; + ReloadSchemaShardRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.wait_position = ""; + object.include_primary = false; + object.concurrency = 0; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.wait_position != null && message.hasOwnProperty("wait_position")) + object.wait_position = message.wait_position; + if (message.include_primary != null && message.hasOwnProperty("include_primary")) + object.include_primary = message.include_primary; + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + object.concurrency = message.concurrency; + return object; }; /** - * Converts this MountListRequest to JSON. + * Converts this ReloadSchemaShardRequest to JSON. * @function toJSON - * @memberof vtctldata.MountListRequest + * @memberof vtctldata.ReloadSchemaShardRequest * @instance * @returns {Object.} JSON object */ - MountListRequest.prototype.toJSON = function toJSON() { + ReloadSchemaShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MountListRequest + * Gets the default type url for ReloadSchemaShardRequest * @function getTypeUrl - * @memberof vtctldata.MountListRequest + * @memberof vtctldata.ReloadSchemaShardRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MountListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReloadSchemaShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MountListRequest"; + return typeUrlPrefix + "/vtctldata.ReloadSchemaShardRequest"; }; - return MountListRequest; + return ReloadSchemaShardRequest; })(); - vtctldata.MountListResponse = (function() { + vtctldata.ReloadSchemaShardResponse = (function() { /** - * Properties of a MountListResponse. + * Properties of a ReloadSchemaShardResponse. * @memberof vtctldata - * @interface IMountListResponse - * @property {Array.|null} [names] MountListResponse names + * @interface IReloadSchemaShardResponse + * @property {Array.|null} [events] ReloadSchemaShardResponse events */ /** - * Constructs a new MountListResponse. + * Constructs a new ReloadSchemaShardResponse. * @memberof vtctldata - * @classdesc Represents a MountListResponse. - * @implements IMountListResponse + * @classdesc Represents a ReloadSchemaShardResponse. + * @implements IReloadSchemaShardResponse * @constructor - * @param {vtctldata.IMountListResponse=} [properties] Properties to set + * @param {vtctldata.IReloadSchemaShardResponse=} [properties] Properties to set */ - function MountListResponse(properties) { - this.names = []; + function ReloadSchemaShardResponse(properties) { + this.events = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -167968,78 +176486,78 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * MountListResponse names. - * @member {Array.} names - * @memberof vtctldata.MountListResponse + * ReloadSchemaShardResponse events. + * @member {Array.} events + * @memberof vtctldata.ReloadSchemaShardResponse * @instance */ - MountListResponse.prototype.names = $util.emptyArray; + ReloadSchemaShardResponse.prototype.events = $util.emptyArray; /** - * Creates a new MountListResponse instance using the specified properties. + * Creates a new ReloadSchemaShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.MountListResponse + * @memberof vtctldata.ReloadSchemaShardResponse * @static - * @param {vtctldata.IMountListResponse=} [properties] Properties to set - * @returns {vtctldata.MountListResponse} MountListResponse instance + * @param {vtctldata.IReloadSchemaShardResponse=} [properties] Properties to set + * @returns {vtctldata.ReloadSchemaShardResponse} ReloadSchemaShardResponse instance */ - MountListResponse.create = function create(properties) { - return new MountListResponse(properties); + ReloadSchemaShardResponse.create = function create(properties) { + return new ReloadSchemaShardResponse(properties); }; /** - * Encodes the specified MountListResponse message. Does not implicitly {@link vtctldata.MountListResponse.verify|verify} messages. + * Encodes the specified ReloadSchemaShardResponse message. Does not implicitly {@link vtctldata.ReloadSchemaShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.MountListResponse + * @memberof vtctldata.ReloadSchemaShardResponse * @static - * @param {vtctldata.IMountListResponse} message MountListResponse message or plain object to encode + * @param {vtctldata.IReloadSchemaShardResponse} message ReloadSchemaShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountListResponse.encode = function encode(message, writer) { + ReloadSchemaShardResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.names != null && message.names.length) - for (let i = 0; i < message.names.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); + if (message.events != null && message.events.length) + for (let i = 0; i < message.events.length; ++i) + $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MountListResponse message, length delimited. Does not implicitly {@link vtctldata.MountListResponse.verify|verify} messages. + * Encodes the specified ReloadSchemaShardResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MountListResponse + * @memberof vtctldata.ReloadSchemaShardResponse * @static - * @param {vtctldata.IMountListResponse} message MountListResponse message or plain object to encode + * @param {vtctldata.IReloadSchemaShardResponse} message ReloadSchemaShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountListResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReloadSchemaShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MountListResponse message from the specified reader or buffer. + * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MountListResponse + * @memberof vtctldata.ReloadSchemaShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MountListResponse} MountListResponse + * @returns {vtctldata.ReloadSchemaShardResponse} ReloadSchemaShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountListResponse.decode = function decode(reader, length) { + ReloadSchemaShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MountListResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReloadSchemaShardResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); + case 2: { + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.logutil.Event.decode(reader, reader.uint32())); break; } default: @@ -168051,158 +176569,141 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MountListResponse message from the specified reader or buffer, length delimited. + * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MountListResponse + * @memberof vtctldata.ReloadSchemaShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MountListResponse} MountListResponse + * @returns {vtctldata.ReloadSchemaShardResponse} ReloadSchemaShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountListResponse.decodeDelimited = function decodeDelimited(reader) { + ReloadSchemaShardResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MountListResponse message. + * Verifies a ReloadSchemaShardResponse message. * @function verify - * @memberof vtctldata.MountListResponse + * @memberof vtctldata.ReloadSchemaShardResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MountListResponse.verify = function verify(message) { + ReloadSchemaShardResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (let i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (let i = 0; i < message.events.length; ++i) { + let error = $root.logutil.Event.verify(message.events[i]); + if (error) + return "events." + error; + } } return null; }; /** - * Creates a MountListResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReloadSchemaShardResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MountListResponse + * @memberof vtctldata.ReloadSchemaShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.MountListResponse} MountListResponse + * @returns {vtctldata.ReloadSchemaShardResponse} ReloadSchemaShardResponse */ - MountListResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MountListResponse) + ReloadSchemaShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReloadSchemaShardResponse) return object; - let message = new $root.vtctldata.MountListResponse(); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".vtctldata.MountListResponse.names: array expected"); - message.names = []; - for (let i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); + let message = new $root.vtctldata.ReloadSchemaShardResponse(); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".vtctldata.ReloadSchemaShardResponse.events: array expected"); + message.events = []; + for (let i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".vtctldata.ReloadSchemaShardResponse.events: object expected"); + message.events[i] = $root.logutil.Event.fromObject(object.events[i]); + } } return message; }; /** - * Creates a plain object from a MountListResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReloadSchemaShardResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MountListResponse + * @memberof vtctldata.ReloadSchemaShardResponse * @static - * @param {vtctldata.MountListResponse} message MountListResponse + * @param {vtctldata.ReloadSchemaShardResponse} message ReloadSchemaShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MountListResponse.toObject = function toObject(message, options) { + ReloadSchemaShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.names = []; - if (message.names && message.names.length) { - object.names = []; - for (let j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; + object.events = []; + if (message.events && message.events.length) { + object.events = []; + for (let j = 0; j < message.events.length; ++j) + object.events[j] = $root.logutil.Event.toObject(message.events[j], options); } return object; }; /** - * Converts this MountListResponse to JSON. + * Converts this ReloadSchemaShardResponse to JSON. * @function toJSON - * @memberof vtctldata.MountListResponse + * @memberof vtctldata.ReloadSchemaShardResponse * @instance * @returns {Object.} JSON object */ - MountListResponse.prototype.toJSON = function toJSON() { + ReloadSchemaShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MountListResponse + * Gets the default type url for ReloadSchemaShardResponse * @function getTypeUrl - * @memberof vtctldata.MountListResponse + * @memberof vtctldata.ReloadSchemaShardResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MountListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReloadSchemaShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MountListResponse"; + return typeUrlPrefix + "/vtctldata.ReloadSchemaShardResponse"; }; - return MountListResponse; + return ReloadSchemaShardResponse; })(); - vtctldata.MoveTablesCreateRequest = (function() { + vtctldata.RemoveBackupRequest = (function() { /** - * Properties of a MoveTablesCreateRequest. + * Properties of a RemoveBackupRequest. * @memberof vtctldata - * @interface IMoveTablesCreateRequest - * @property {string|null} [workflow] MoveTablesCreateRequest workflow - * @property {string|null} [source_keyspace] MoveTablesCreateRequest source_keyspace - * @property {string|null} [target_keyspace] MoveTablesCreateRequest target_keyspace - * @property {Array.|null} [cells] MoveTablesCreateRequest cells - * @property {Array.|null} [tablet_types] MoveTablesCreateRequest tablet_types - * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] MoveTablesCreateRequest tablet_selection_preference - * @property {Array.|null} [source_shards] MoveTablesCreateRequest source_shards - * @property {boolean|null} [all_tables] MoveTablesCreateRequest all_tables - * @property {Array.|null} [include_tables] MoveTablesCreateRequest include_tables - * @property {Array.|null} [exclude_tables] MoveTablesCreateRequest exclude_tables - * @property {string|null} [external_cluster_name] MoveTablesCreateRequest external_cluster_name - * @property {string|null} [source_time_zone] MoveTablesCreateRequest source_time_zone - * @property {string|null} [on_ddl] MoveTablesCreateRequest on_ddl - * @property {boolean|null} [stop_after_copy] MoveTablesCreateRequest stop_after_copy - * @property {boolean|null} [drop_foreign_keys] MoveTablesCreateRequest drop_foreign_keys - * @property {boolean|null} [defer_secondary_keys] MoveTablesCreateRequest defer_secondary_keys - * @property {boolean|null} [auto_start] MoveTablesCreateRequest auto_start - * @property {boolean|null} [no_routing_rules] MoveTablesCreateRequest no_routing_rules - * @property {boolean|null} [atomic_copy] MoveTablesCreateRequest atomic_copy - * @property {vtctldata.IWorkflowOptions|null} [workflow_options] MoveTablesCreateRequest workflow_options + * @interface IRemoveBackupRequest + * @property {string|null} [keyspace] RemoveBackupRequest keyspace + * @property {string|null} [shard] RemoveBackupRequest shard + * @property {string|null} [name] RemoveBackupRequest name */ /** - * Constructs a new MoveTablesCreateRequest. + * Constructs a new RemoveBackupRequest. * @memberof vtctldata - * @classdesc Represents a MoveTablesCreateRequest. - * @implements IMoveTablesCreateRequest + * @classdesc Represents a RemoveBackupRequest. + * @implements IRemoveBackupRequest * @constructor - * @param {vtctldata.IMoveTablesCreateRequest=} [properties] Properties to set + * @param {vtctldata.IRemoveBackupRequest=} [properties] Properties to set */ - function MoveTablesCreateRequest(properties) { - this.cells = []; - this.tablet_types = []; - this.source_shards = []; - this.include_tables = []; - this.exclude_tables = []; + function RemoveBackupRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -168210,801 +176711,246 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * MoveTablesCreateRequest workflow. - * @member {string} workflow - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.workflow = ""; - - /** - * MoveTablesCreateRequest source_keyspace. - * @member {string} source_keyspace - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.source_keyspace = ""; - - /** - * MoveTablesCreateRequest target_keyspace. - * @member {string} target_keyspace - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.target_keyspace = ""; - - /** - * MoveTablesCreateRequest cells. - * @member {Array.} cells - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.cells = $util.emptyArray; - - /** - * MoveTablesCreateRequest tablet_types. - * @member {Array.} tablet_types - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.tablet_types = $util.emptyArray; - - /** - * MoveTablesCreateRequest tablet_selection_preference. - * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.tablet_selection_preference = 0; - - /** - * MoveTablesCreateRequest source_shards. - * @member {Array.} source_shards - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.source_shards = $util.emptyArray; - - /** - * MoveTablesCreateRequest all_tables. - * @member {boolean} all_tables - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.all_tables = false; - - /** - * MoveTablesCreateRequest include_tables. - * @member {Array.} include_tables - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.include_tables = $util.emptyArray; - - /** - * MoveTablesCreateRequest exclude_tables. - * @member {Array.} exclude_tables - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.exclude_tables = $util.emptyArray; - - /** - * MoveTablesCreateRequest external_cluster_name. - * @member {string} external_cluster_name - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.external_cluster_name = ""; - - /** - * MoveTablesCreateRequest source_time_zone. - * @member {string} source_time_zone - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.source_time_zone = ""; - - /** - * MoveTablesCreateRequest on_ddl. - * @member {string} on_ddl - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.on_ddl = ""; - - /** - * MoveTablesCreateRequest stop_after_copy. - * @member {boolean} stop_after_copy - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.stop_after_copy = false; - - /** - * MoveTablesCreateRequest drop_foreign_keys. - * @member {boolean} drop_foreign_keys - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.drop_foreign_keys = false; - - /** - * MoveTablesCreateRequest defer_secondary_keys. - * @member {boolean} defer_secondary_keys - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.defer_secondary_keys = false; - - /** - * MoveTablesCreateRequest auto_start. - * @member {boolean} auto_start - * @memberof vtctldata.MoveTablesCreateRequest - * @instance - */ - MoveTablesCreateRequest.prototype.auto_start = false; - - /** - * MoveTablesCreateRequest no_routing_rules. - * @member {boolean} no_routing_rules - * @memberof vtctldata.MoveTablesCreateRequest + * RemoveBackupRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.RemoveBackupRequest * @instance */ - MoveTablesCreateRequest.prototype.no_routing_rules = false; + RemoveBackupRequest.prototype.keyspace = ""; /** - * MoveTablesCreateRequest atomic_copy. - * @member {boolean} atomic_copy - * @memberof vtctldata.MoveTablesCreateRequest + * RemoveBackupRequest shard. + * @member {string} shard + * @memberof vtctldata.RemoveBackupRequest * @instance */ - MoveTablesCreateRequest.prototype.atomic_copy = false; + RemoveBackupRequest.prototype.shard = ""; /** - * MoveTablesCreateRequest workflow_options. - * @member {vtctldata.IWorkflowOptions|null|undefined} workflow_options - * @memberof vtctldata.MoveTablesCreateRequest + * RemoveBackupRequest name. + * @member {string} name + * @memberof vtctldata.RemoveBackupRequest * @instance */ - MoveTablesCreateRequest.prototype.workflow_options = null; + RemoveBackupRequest.prototype.name = ""; /** - * Creates a new MoveTablesCreateRequest instance using the specified properties. + * Creates a new RemoveBackupRequest instance using the specified properties. * @function create - * @memberof vtctldata.MoveTablesCreateRequest + * @memberof vtctldata.RemoveBackupRequest * @static - * @param {vtctldata.IMoveTablesCreateRequest=} [properties] Properties to set - * @returns {vtctldata.MoveTablesCreateRequest} MoveTablesCreateRequest instance + * @param {vtctldata.IRemoveBackupRequest=} [properties] Properties to set + * @returns {vtctldata.RemoveBackupRequest} RemoveBackupRequest instance */ - MoveTablesCreateRequest.create = function create(properties) { - return new MoveTablesCreateRequest(properties); + RemoveBackupRequest.create = function create(properties) { + return new RemoveBackupRequest(properties); }; /** - * Encodes the specified MoveTablesCreateRequest message. Does not implicitly {@link vtctldata.MoveTablesCreateRequest.verify|verify} messages. + * Encodes the specified RemoveBackupRequest message. Does not implicitly {@link vtctldata.RemoveBackupRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.MoveTablesCreateRequest + * @memberof vtctldata.RemoveBackupRequest * @static - * @param {vtctldata.IMoveTablesCreateRequest} message MoveTablesCreateRequest message or plain object to encode + * @param {vtctldata.IRemoveBackupRequest} message RemoveBackupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MoveTablesCreateRequest.encode = function encode(message, writer) { + RemoveBackupRequest.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.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.cells[i]); - if (message.tablet_types != null && message.tablet_types.length) { - writer.uint32(/* id 5, wireType 2 =*/42).fork(); - for (let i = 0; i < message.tablet_types.length; ++i) - writer.int32(message.tablet_types[i]); - writer.ldelim(); - } - if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.tablet_selection_preference); - if (message.source_shards != null && message.source_shards.length) - for (let i = 0; i < message.source_shards.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.source_shards[i]); - if (message.all_tables != null && Object.hasOwnProperty.call(message, "all_tables")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.all_tables); - if (message.include_tables != null && message.include_tables.length) - for (let i = 0; i < message.include_tables.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.include_tables[i]); - if (message.exclude_tables != null && message.exclude_tables.length) - for (let i = 0; i < message.exclude_tables.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.exclude_tables[i]); - if (message.external_cluster_name != null && Object.hasOwnProperty.call(message, "external_cluster_name")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.external_cluster_name); - if (message.source_time_zone != null && Object.hasOwnProperty.call(message, "source_time_zone")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.source_time_zone); - if (message.on_ddl != null && Object.hasOwnProperty.call(message, "on_ddl")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.on_ddl); - if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) - writer.uint32(/* id 14, wireType 0 =*/112).bool(message.stop_after_copy); - if (message.drop_foreign_keys != null && Object.hasOwnProperty.call(message, "drop_foreign_keys")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.drop_foreign_keys); - if (message.defer_secondary_keys != null && Object.hasOwnProperty.call(message, "defer_secondary_keys")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.defer_secondary_keys); - if (message.auto_start != null && Object.hasOwnProperty.call(message, "auto_start")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.auto_start); - if (message.no_routing_rules != null && Object.hasOwnProperty.call(message, "no_routing_rules")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.no_routing_rules); - if (message.atomic_copy != null && Object.hasOwnProperty.call(message, "atomic_copy")) - writer.uint32(/* id 19, wireType 0 =*/152).bool(message.atomic_copy); - if (message.workflow_options != null && Object.hasOwnProperty.call(message, "workflow_options")) - $root.vtctldata.WorkflowOptions.encode(message.workflow_options, writer.uint32(/* id 20, wireType 2 =*/162).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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); return writer; }; /** - * Encodes the specified MoveTablesCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateRequest.verify|verify} messages. + * Encodes the specified RemoveBackupRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveBackupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MoveTablesCreateRequest + * @memberof vtctldata.RemoveBackupRequest * @static - * @param {vtctldata.IMoveTablesCreateRequest} message MoveTablesCreateRequest message or plain object to encode + * @param {vtctldata.IRemoveBackupRequest} message RemoveBackupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MoveTablesCreateRequest.encodeDelimited = function encodeDelimited(message, writer) { + RemoveBackupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MoveTablesCreateRequest message from the specified reader or buffer. + * Decodes a RemoveBackupRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MoveTablesCreateRequest + * @memberof vtctldata.RemoveBackupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MoveTablesCreateRequest} MoveTablesCreateRequest + * @returns {vtctldata.RemoveBackupRequest} RemoveBackupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MoveTablesCreateRequest.decode = function decode(reader, length) { + RemoveBackupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MoveTablesCreateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveBackupRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workflow = reader.string(); + message.keyspace = reader.string(); break; } case 2: { - message.source_keyspace = reader.string(); + message.shard = reader.string(); break; } case 3: { - message.target_keyspace = reader.string(); - break; - } - case 4: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); - break; - } - case 5: { - if (!(message.tablet_types && message.tablet_types.length)) - message.tablet_types = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.tablet_types.push(reader.int32()); - } else - message.tablet_types.push(reader.int32()); - break; - } - case 6: { - message.tablet_selection_preference = reader.int32(); - break; - } - case 7: { - if (!(message.source_shards && message.source_shards.length)) - message.source_shards = []; - message.source_shards.push(reader.string()); - break; - } - case 8: { - message.all_tables = reader.bool(); - break; - } - case 9: { - if (!(message.include_tables && message.include_tables.length)) - message.include_tables = []; - message.include_tables.push(reader.string()); - break; - } - case 10: { - if (!(message.exclude_tables && message.exclude_tables.length)) - message.exclude_tables = []; - message.exclude_tables.push(reader.string()); - break; - } - case 11: { - message.external_cluster_name = reader.string(); - break; - } - case 12: { - message.source_time_zone = reader.string(); - break; - } - case 13: { - message.on_ddl = reader.string(); - break; - } - case 14: { - message.stop_after_copy = reader.bool(); - break; - } - case 15: { - message.drop_foreign_keys = reader.bool(); - break; - } - case 16: { - message.defer_secondary_keys = reader.bool(); - break; - } - case 17: { - message.auto_start = reader.bool(); - break; - } - case 18: { - message.no_routing_rules = reader.bool(); - break; - } - case 19: { - message.atomic_copy = reader.bool(); - break; - } - case 20: { - message.workflow_options = $root.vtctldata.WorkflowOptions.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MoveTablesCreateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.MoveTablesCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MoveTablesCreateRequest} MoveTablesCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MoveTablesCreateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MoveTablesCreateRequest message. - * @function verify - * @memberof vtctldata.MoveTablesCreateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MoveTablesCreateRequest.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.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { - if (!Array.isArray(message.tablet_types)) - return "tablet_types: array expected"; - for (let i = 0; i < message.tablet_types.length; ++i) - switch (message.tablet_types[i]) { - default: - return "tablet_types: enum value[] expected"; - case 0: - case 1: - case 1: - case 2: - case 3: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - switch (message.tablet_selection_preference) { - default: - return "tablet_selection_preference: enum value expected"; - case 0: - case 1: - case 3: - break; - } - if (message.source_shards != null && message.hasOwnProperty("source_shards")) { - if (!Array.isArray(message.source_shards)) - return "source_shards: array expected"; - for (let i = 0; i < message.source_shards.length; ++i) - if (!$util.isString(message.source_shards[i])) - return "source_shards: string[] expected"; - } - if (message.all_tables != null && message.hasOwnProperty("all_tables")) - if (typeof message.all_tables !== "boolean") - return "all_tables: boolean expected"; - if (message.include_tables != null && message.hasOwnProperty("include_tables")) { - if (!Array.isArray(message.include_tables)) - return "include_tables: array expected"; - for (let i = 0; i < message.include_tables.length; ++i) - if (!$util.isString(message.include_tables[i])) - return "include_tables: string[] expected"; - } - if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { - if (!Array.isArray(message.exclude_tables)) - return "exclude_tables: array expected"; - for (let i = 0; i < message.exclude_tables.length; ++i) - if (!$util.isString(message.exclude_tables[i])) - return "exclude_tables: string[] expected"; - } - if (message.external_cluster_name != null && message.hasOwnProperty("external_cluster_name")) - if (!$util.isString(message.external_cluster_name)) - return "external_cluster_name: string expected"; - 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.on_ddl != null && message.hasOwnProperty("on_ddl")) - if (!$util.isString(message.on_ddl)) - return "on_ddl: 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.drop_foreign_keys != null && message.hasOwnProperty("drop_foreign_keys")) - if (typeof message.drop_foreign_keys !== "boolean") - return "drop_foreign_keys: boolean expected"; - if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) - if (typeof message.defer_secondary_keys !== "boolean") - return "defer_secondary_keys: boolean expected"; - if (message.auto_start != null && message.hasOwnProperty("auto_start")) - if (typeof message.auto_start !== "boolean") - return "auto_start: boolean expected"; - if (message.no_routing_rules != null && message.hasOwnProperty("no_routing_rules")) - if (typeof message.no_routing_rules !== "boolean") - return "no_routing_rules: boolean expected"; - if (message.atomic_copy != null && message.hasOwnProperty("atomic_copy")) - if (typeof message.atomic_copy !== "boolean") - return "atomic_copy: boolean expected"; - if (message.workflow_options != null && message.hasOwnProperty("workflow_options")) { - let error = $root.vtctldata.WorkflowOptions.verify(message.workflow_options); - if (error) - return "workflow_options." + error; - } - return null; - }; - - /** - * Creates a MoveTablesCreateRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.MoveTablesCreateRequest - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.MoveTablesCreateRequest} MoveTablesCreateRequest - */ - MoveTablesCreateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MoveTablesCreateRequest) - return object; - let message = new $root.vtctldata.MoveTablesCreateRequest(); - 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.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.MoveTablesCreateRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } - if (object.tablet_types) { - if (!Array.isArray(object.tablet_types)) - throw TypeError(".vtctldata.MoveTablesCreateRequest.tablet_types: array expected"); - message.tablet_types = []; - for (let i = 0; i < object.tablet_types.length; ++i) - switch (object.tablet_types[i]) { - default: - if (typeof object.tablet_types[i] === "number") { - message.tablet_types[i] = object.tablet_types[i]; - break; - } - case "UNKNOWN": - case 0: - message.tablet_types[i] = 0; - break; - case "PRIMARY": - case 1: - message.tablet_types[i] = 1; - break; - case "MASTER": - case 1: - message.tablet_types[i] = 1; - break; - case "REPLICA": - case 2: - message.tablet_types[i] = 2; - break; - case "RDONLY": - case 3: - message.tablet_types[i] = 3; - break; - case "BATCH": - case 3: - message.tablet_types[i] = 3; - break; - case "SPARE": - case 4: - message.tablet_types[i] = 4; - break; - case "EXPERIMENTAL": - case 5: - message.tablet_types[i] = 5; - break; - case "BACKUP": - case 6: - message.tablet_types[i] = 6; - break; - case "RESTORE": - case 7: - message.tablet_types[i] = 7; - break; - case "DRAINED": - case 8: - message.tablet_types[i] = 8; - break; - } - } - switch (object.tablet_selection_preference) { - default: - if (typeof object.tablet_selection_preference === "number") { - message.tablet_selection_preference = object.tablet_selection_preference; - break; - } - break; - case "ANY": - case 0: - message.tablet_selection_preference = 0; - break; - case "INORDER": - case 1: - message.tablet_selection_preference = 1; - break; - case "UNKNOWN": - case 3: - message.tablet_selection_preference = 3; - break; - } - if (object.source_shards) { - if (!Array.isArray(object.source_shards)) - throw TypeError(".vtctldata.MoveTablesCreateRequest.source_shards: array expected"); - message.source_shards = []; - for (let i = 0; i < object.source_shards.length; ++i) - message.source_shards[i] = String(object.source_shards[i]); - } - if (object.all_tables != null) - message.all_tables = Boolean(object.all_tables); - if (object.include_tables) { - if (!Array.isArray(object.include_tables)) - throw TypeError(".vtctldata.MoveTablesCreateRequest.include_tables: array expected"); - message.include_tables = []; - for (let i = 0; i < object.include_tables.length; ++i) - message.include_tables[i] = String(object.include_tables[i]); - } - if (object.exclude_tables) { - if (!Array.isArray(object.exclude_tables)) - throw TypeError(".vtctldata.MoveTablesCreateRequest.exclude_tables: array expected"); - message.exclude_tables = []; - for (let i = 0; i < object.exclude_tables.length; ++i) - message.exclude_tables[i] = String(object.exclude_tables[i]); - } - if (object.external_cluster_name != null) - message.external_cluster_name = String(object.external_cluster_name); - if (object.source_time_zone != null) - message.source_time_zone = String(object.source_time_zone); - if (object.on_ddl != null) - message.on_ddl = String(object.on_ddl); - if (object.stop_after_copy != null) - message.stop_after_copy = Boolean(object.stop_after_copy); - if (object.drop_foreign_keys != null) - message.drop_foreign_keys = Boolean(object.drop_foreign_keys); - if (object.defer_secondary_keys != null) - message.defer_secondary_keys = Boolean(object.defer_secondary_keys); - if (object.auto_start != null) - message.auto_start = Boolean(object.auto_start); - if (object.no_routing_rules != null) - message.no_routing_rules = Boolean(object.no_routing_rules); - if (object.atomic_copy != null) - message.atomic_copy = Boolean(object.atomic_copy); - if (object.workflow_options != null) { - if (typeof object.workflow_options !== "object") - throw TypeError(".vtctldata.MoveTablesCreateRequest.workflow_options: object expected"); - message.workflow_options = $root.vtctldata.WorkflowOptions.fromObject(object.workflow_options); + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } return message; }; /** - * Creates a plain object from a MoveTablesCreateRequest message. Also converts values to other types if specified. + * Decodes a RemoveBackupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.RemoveBackupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.RemoveBackupRequest} RemoveBackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveBackupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RemoveBackupRequest message. + * @function verify + * @memberof vtctldata.RemoveBackupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RemoveBackupRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a RemoveBackupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.RemoveBackupRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.RemoveBackupRequest} RemoveBackupRequest + */ + RemoveBackupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveBackupRequest) + return object; + let message = new $root.vtctldata.RemoveBackupRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a RemoveBackupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MoveTablesCreateRequest + * @memberof vtctldata.RemoveBackupRequest * @static - * @param {vtctldata.MoveTablesCreateRequest} message MoveTablesCreateRequest + * @param {vtctldata.RemoveBackupRequest} message RemoveBackupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MoveTablesCreateRequest.toObject = function toObject(message, options) { + RemoveBackupRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.cells = []; - object.tablet_types = []; - object.source_shards = []; - object.include_tables = []; - object.exclude_tables = []; - } if (options.defaults) { - object.workflow = ""; - object.source_keyspace = ""; - object.target_keyspace = ""; - object.tablet_selection_preference = options.enums === String ? "ANY" : 0; - object.all_tables = false; - object.external_cluster_name = ""; - object.source_time_zone = ""; - object.on_ddl = ""; - object.stop_after_copy = false; - object.drop_foreign_keys = false; - object.defer_secondary_keys = false; - object.auto_start = false; - object.no_routing_rules = false; - object.atomic_copy = false; - object.workflow_options = null; - } - 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.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } - if (message.tablet_types && message.tablet_types.length) { - object.tablet_types = []; - for (let j = 0; j < message.tablet_types.length; ++j) - object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; - } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; - if (message.source_shards && message.source_shards.length) { - object.source_shards = []; - for (let j = 0; j < message.source_shards.length; ++j) - object.source_shards[j] = message.source_shards[j]; - } - if (message.all_tables != null && message.hasOwnProperty("all_tables")) - object.all_tables = message.all_tables; - if (message.include_tables && message.include_tables.length) { - object.include_tables = []; - for (let j = 0; j < message.include_tables.length; ++j) - object.include_tables[j] = message.include_tables[j]; - } - if (message.exclude_tables && message.exclude_tables.length) { - object.exclude_tables = []; - for (let j = 0; j < message.exclude_tables.length; ++j) - object.exclude_tables[j] = message.exclude_tables[j]; + object.keyspace = ""; + object.shard = ""; + object.name = ""; } - if (message.external_cluster_name != null && message.hasOwnProperty("external_cluster_name")) - object.external_cluster_name = message.external_cluster_name; - if (message.source_time_zone != null && message.hasOwnProperty("source_time_zone")) - object.source_time_zone = message.source_time_zone; - if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) - object.on_ddl = message.on_ddl; - if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) - object.stop_after_copy = message.stop_after_copy; - if (message.drop_foreign_keys != null && message.hasOwnProperty("drop_foreign_keys")) - object.drop_foreign_keys = message.drop_foreign_keys; - if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) - object.defer_secondary_keys = message.defer_secondary_keys; - if (message.auto_start != null && message.hasOwnProperty("auto_start")) - object.auto_start = message.auto_start; - if (message.no_routing_rules != null && message.hasOwnProperty("no_routing_rules")) - object.no_routing_rules = message.no_routing_rules; - if (message.atomic_copy != null && message.hasOwnProperty("atomic_copy")) - object.atomic_copy = message.atomic_copy; - if (message.workflow_options != null && message.hasOwnProperty("workflow_options")) - object.workflow_options = $root.vtctldata.WorkflowOptions.toObject(message.workflow_options, 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this MoveTablesCreateRequest to JSON. + * Converts this RemoveBackupRequest to JSON. * @function toJSON - * @memberof vtctldata.MoveTablesCreateRequest + * @memberof vtctldata.RemoveBackupRequest * @instance * @returns {Object.} JSON object */ - MoveTablesCreateRequest.prototype.toJSON = function toJSON() { + RemoveBackupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MoveTablesCreateRequest + * Gets the default type url for RemoveBackupRequest * @function getTypeUrl - * @memberof vtctldata.MoveTablesCreateRequest + * @memberof vtctldata.RemoveBackupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MoveTablesCreateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveBackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MoveTablesCreateRequest"; + return typeUrlPrefix + "/vtctldata.RemoveBackupRequest"; }; - return MoveTablesCreateRequest; + return RemoveBackupRequest; })(); - vtctldata.MoveTablesCreateResponse = (function() { + vtctldata.RemoveBackupResponse = (function() { /** - * Properties of a MoveTablesCreateResponse. + * Properties of a RemoveBackupResponse. * @memberof vtctldata - * @interface IMoveTablesCreateResponse - * @property {string|null} [summary] MoveTablesCreateResponse summary - * @property {Array.|null} [details] MoveTablesCreateResponse details + * @interface IRemoveBackupResponse */ /** - * Constructs a new MoveTablesCreateResponse. + * Constructs a new RemoveBackupResponse. * @memberof vtctldata - * @classdesc Represents a MoveTablesCreateResponse. - * @implements IMoveTablesCreateResponse + * @classdesc Represents a RemoveBackupResponse. + * @implements IRemoveBackupResponse * @constructor - * @param {vtctldata.IMoveTablesCreateResponse=} [properties] Properties to set + * @param {vtctldata.IRemoveBackupResponse=} [properties] Properties to set */ - function MoveTablesCreateResponse(properties) { - this.details = []; + function RemoveBackupResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -169012,94 +176958,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * MoveTablesCreateResponse summary. - * @member {string} summary - * @memberof vtctldata.MoveTablesCreateResponse - * @instance - */ - MoveTablesCreateResponse.prototype.summary = ""; - - /** - * MoveTablesCreateResponse details. - * @member {Array.} details - * @memberof vtctldata.MoveTablesCreateResponse - * @instance - */ - MoveTablesCreateResponse.prototype.details = $util.emptyArray; - - /** - * Creates a new MoveTablesCreateResponse instance using the specified properties. + * Creates a new RemoveBackupResponse instance using the specified properties. * @function create - * @memberof vtctldata.MoveTablesCreateResponse + * @memberof vtctldata.RemoveBackupResponse * @static - * @param {vtctldata.IMoveTablesCreateResponse=} [properties] Properties to set - * @returns {vtctldata.MoveTablesCreateResponse} MoveTablesCreateResponse instance + * @param {vtctldata.IRemoveBackupResponse=} [properties] Properties to set + * @returns {vtctldata.RemoveBackupResponse} RemoveBackupResponse instance */ - MoveTablesCreateResponse.create = function create(properties) { - return new MoveTablesCreateResponse(properties); + RemoveBackupResponse.create = function create(properties) { + return new RemoveBackupResponse(properties); }; /** - * Encodes the specified MoveTablesCreateResponse message. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.verify|verify} messages. + * Encodes the specified RemoveBackupResponse message. Does not implicitly {@link vtctldata.RemoveBackupResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.MoveTablesCreateResponse + * @memberof vtctldata.RemoveBackupResponse * @static - * @param {vtctldata.IMoveTablesCreateResponse} message MoveTablesCreateResponse message or plain object to encode + * @param {vtctldata.IRemoveBackupResponse} message RemoveBackupResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MoveTablesCreateResponse.encode = function encode(message, writer) { + RemoveBackupResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.summary != null && Object.hasOwnProperty.call(message, "summary")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.summary); - if (message.details != null && message.details.length) - for (let i = 0; i < message.details.length; ++i) - $root.vtctldata.MoveTablesCreateResponse.TabletInfo.encode(message.details[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MoveTablesCreateResponse message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.verify|verify} messages. + * Encodes the specified RemoveBackupResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveBackupResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MoveTablesCreateResponse + * @memberof vtctldata.RemoveBackupResponse * @static - * @param {vtctldata.IMoveTablesCreateResponse} message MoveTablesCreateResponse message or plain object to encode + * @param {vtctldata.IRemoveBackupResponse} message RemoveBackupResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MoveTablesCreateResponse.encodeDelimited = function encodeDelimited(message, writer) { + RemoveBackupResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MoveTablesCreateResponse message from the specified reader or buffer. + * Decodes a RemoveBackupResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MoveTablesCreateResponse + * @memberof vtctldata.RemoveBackupResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MoveTablesCreateResponse} MoveTablesCreateResponse + * @returns {vtctldata.RemoveBackupResponse} RemoveBackupResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MoveTablesCreateResponse.decode = function decode(reader, length) { + RemoveBackupResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MoveTablesCreateResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveBackupResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.summary = reader.string(); - break; - } - case 2: { - if (!(message.details && message.details.length)) - message.details = []; - message.details.push($root.vtctldata.MoveTablesCreateResponse.TabletInfo.decode(reader, reader.uint32())); - break; - } default: reader.skipType(tag & 7); break; @@ -169109,388 +177024,112 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MoveTablesCreateResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveBackupResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MoveTablesCreateResponse + * @memberof vtctldata.RemoveBackupResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MoveTablesCreateResponse} MoveTablesCreateResponse + * @returns {vtctldata.RemoveBackupResponse} RemoveBackupResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MoveTablesCreateResponse.decodeDelimited = function decodeDelimited(reader) { + RemoveBackupResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MoveTablesCreateResponse message. + * Verifies a RemoveBackupResponse message. * @function verify - * @memberof vtctldata.MoveTablesCreateResponse + * @memberof vtctldata.RemoveBackupResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MoveTablesCreateResponse.verify = function verify(message) { + RemoveBackupResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.summary != null && message.hasOwnProperty("summary")) - if (!$util.isString(message.summary)) - return "summary: string expected"; - if (message.details != null && message.hasOwnProperty("details")) { - if (!Array.isArray(message.details)) - return "details: array expected"; - for (let i = 0; i < message.details.length; ++i) { - let error = $root.vtctldata.MoveTablesCreateResponse.TabletInfo.verify(message.details[i]); - if (error) - return "details." + error; - } - } return null; }; /** - * Creates a MoveTablesCreateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveBackupResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MoveTablesCreateResponse + * @memberof vtctldata.RemoveBackupResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.MoveTablesCreateResponse} MoveTablesCreateResponse + * @returns {vtctldata.RemoveBackupResponse} RemoveBackupResponse */ - MoveTablesCreateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MoveTablesCreateResponse) + RemoveBackupResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveBackupResponse) return object; - let message = new $root.vtctldata.MoveTablesCreateResponse(); - if (object.summary != null) - message.summary = String(object.summary); - if (object.details) { - if (!Array.isArray(object.details)) - throw TypeError(".vtctldata.MoveTablesCreateResponse.details: array expected"); - message.details = []; - for (let i = 0; i < object.details.length; ++i) { - if (typeof object.details[i] !== "object") - throw TypeError(".vtctldata.MoveTablesCreateResponse.details: object expected"); - message.details[i] = $root.vtctldata.MoveTablesCreateResponse.TabletInfo.fromObject(object.details[i]); - } - } - return message; + return new $root.vtctldata.RemoveBackupResponse(); }; /** - * Creates a plain object from a MoveTablesCreateResponse message. Also converts values to other types if specified. + * Creates a plain object from a RemoveBackupResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MoveTablesCreateResponse + * @memberof vtctldata.RemoveBackupResponse * @static - * @param {vtctldata.MoveTablesCreateResponse} message MoveTablesCreateResponse + * @param {vtctldata.RemoveBackupResponse} message RemoveBackupResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MoveTablesCreateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.details = []; - if (options.defaults) - object.summary = ""; - if (message.summary != null && message.hasOwnProperty("summary")) - object.summary = message.summary; - if (message.details && message.details.length) { - object.details = []; - for (let j = 0; j < message.details.length; ++j) - object.details[j] = $root.vtctldata.MoveTablesCreateResponse.TabletInfo.toObject(message.details[j], options); - } - return object; + RemoveBackupResponse.toObject = function toObject() { + return {}; }; /** - * Converts this MoveTablesCreateResponse to JSON. + * Converts this RemoveBackupResponse to JSON. * @function toJSON - * @memberof vtctldata.MoveTablesCreateResponse + * @memberof vtctldata.RemoveBackupResponse * @instance * @returns {Object.} JSON object */ - MoveTablesCreateResponse.prototype.toJSON = function toJSON() { + RemoveBackupResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MoveTablesCreateResponse + * Gets the default type url for RemoveBackupResponse * @function getTypeUrl - * @memberof vtctldata.MoveTablesCreateResponse + * @memberof vtctldata.RemoveBackupResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MoveTablesCreateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveBackupResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MoveTablesCreateResponse"; + return typeUrlPrefix + "/vtctldata.RemoveBackupResponse"; }; - MoveTablesCreateResponse.TabletInfo = (function() { - - /** - * Properties of a TabletInfo. - * @memberof vtctldata.MoveTablesCreateResponse - * @interface ITabletInfo - * @property {topodata.ITabletAlias|null} [tablet] TabletInfo tablet - * @property {boolean|null} [created] TabletInfo created - */ - - /** - * Constructs a new TabletInfo. - * @memberof vtctldata.MoveTablesCreateResponse - * @classdesc Represents a TabletInfo. - * @implements ITabletInfo - * @constructor - * @param {vtctldata.MoveTablesCreateResponse.ITabletInfo=} [properties] Properties to set - */ - function TabletInfo(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TabletInfo tablet. - * @member {topodata.ITabletAlias|null|undefined} tablet - * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo - * @instance - */ - TabletInfo.prototype.tablet = null; - - /** - * TabletInfo created. - * @member {boolean} created - * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo - * @instance - */ - TabletInfo.prototype.created = false; - - /** - * Creates a new TabletInfo instance using the specified properties. - * @function create - * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo - * @static - * @param {vtctldata.MoveTablesCreateResponse.ITabletInfo=} [properties] Properties to set - * @returns {vtctldata.MoveTablesCreateResponse.TabletInfo} TabletInfo instance - */ - TabletInfo.create = function create(properties) { - return new TabletInfo(properties); - }; - - /** - * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.TabletInfo.verify|verify} messages. - * @function encode - * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo - * @static - * @param {vtctldata.MoveTablesCreateResponse.ITabletInfo} message TabletInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TabletInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) - $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.created != null && Object.hasOwnProperty.call(message, "created")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.created); - return writer; - }; - - /** - * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.TabletInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo - * @static - * @param {vtctldata.MoveTablesCreateResponse.ITabletInfo} message TabletInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TabletInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TabletInfo message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MoveTablesCreateResponse.TabletInfo} TabletInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TabletInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MoveTablesCreateResponse.TabletInfo(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 2: { - message.created = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a TabletInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MoveTablesCreateResponse.TabletInfo} TabletInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TabletInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TabletInfo message. - * @function verify - * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TabletInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - let error = $root.topodata.TabletAlias.verify(message.tablet); - if (error) - return "tablet." + error; - } - if (message.created != null && message.hasOwnProperty("created")) - if (typeof message.created !== "boolean") - return "created: boolean expected"; - return null; - }; - - /** - * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.MoveTablesCreateResponse.TabletInfo} TabletInfo - */ - TabletInfo.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MoveTablesCreateResponse.TabletInfo) - return object; - let message = new $root.vtctldata.MoveTablesCreateResponse.TabletInfo(); - if (object.tablet != null) { - if (typeof object.tablet !== "object") - throw TypeError(".vtctldata.MoveTablesCreateResponse.TabletInfo.tablet: object expected"); - message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); - } - if (object.created != null) - message.created = Boolean(object.created); - return message; - }; - - /** - * Creates a plain object from a TabletInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo - * @static - * @param {vtctldata.MoveTablesCreateResponse.TabletInfo} message TabletInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TabletInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.tablet = null; - object.created = false; - } - if (message.tablet != null && message.hasOwnProperty("tablet")) - object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); - if (message.created != null && message.hasOwnProperty("created")) - object.created = message.created; - return object; - }; - - /** - * Converts this TabletInfo to JSON. - * @function toJSON - * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo - * @instance - * @returns {Object.} JSON object - */ - TabletInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for TabletInfo - * @function getTypeUrl - * @memberof vtctldata.MoveTablesCreateResponse.TabletInfo - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TabletInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.MoveTablesCreateResponse.TabletInfo"; - }; - - return TabletInfo; - })(); - - return MoveTablesCreateResponse; + return RemoveBackupResponse; })(); - vtctldata.MoveTablesCompleteRequest = (function() { + vtctldata.RemoveKeyspaceCellRequest = (function() { /** - * Properties of a MoveTablesCompleteRequest. + * Properties of a RemoveKeyspaceCellRequest. * @memberof vtctldata - * @interface IMoveTablesCompleteRequest - * @property {string|null} [workflow] MoveTablesCompleteRequest workflow - * @property {string|null} [target_keyspace] MoveTablesCompleteRequest target_keyspace - * @property {boolean|null} [keep_data] MoveTablesCompleteRequest keep_data - * @property {boolean|null} [keep_routing_rules] MoveTablesCompleteRequest keep_routing_rules - * @property {boolean|null} [rename_tables] MoveTablesCompleteRequest rename_tables - * @property {boolean|null} [dry_run] MoveTablesCompleteRequest dry_run - * @property {Array.|null} [shards] MoveTablesCompleteRequest shards - * @property {boolean|null} [ignore_source_keyspace] MoveTablesCompleteRequest ignore_source_keyspace + * @interface IRemoveKeyspaceCellRequest + * @property {string|null} [keyspace] RemoveKeyspaceCellRequest keyspace + * @property {string|null} [cell] RemoveKeyspaceCellRequest cell + * @property {boolean|null} [force] RemoveKeyspaceCellRequest force + * @property {boolean|null} [recursive] RemoveKeyspaceCellRequest recursive */ /** - * Constructs a new MoveTablesCompleteRequest. + * Constructs a new RemoveKeyspaceCellRequest. * @memberof vtctldata - * @classdesc Represents a MoveTablesCompleteRequest. - * @implements IMoveTablesCompleteRequest + * @classdesc Represents a RemoveKeyspaceCellRequest. + * @implements IRemoveKeyspaceCellRequest * @constructor - * @param {vtctldata.IMoveTablesCompleteRequest=} [properties] Properties to set + * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set */ - function MoveTablesCompleteRequest(properties) { - this.shards = []; + function RemoveKeyspaceCellRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -169498,178 +177137,332 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * MoveTablesCompleteRequest workflow. - * @member {string} workflow - * @memberof vtctldata.MoveTablesCompleteRequest + * RemoveKeyspaceCellRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.RemoveKeyspaceCellRequest * @instance */ - MoveTablesCompleteRequest.prototype.workflow = ""; + RemoveKeyspaceCellRequest.prototype.keyspace = ""; /** - * MoveTablesCompleteRequest target_keyspace. - * @member {string} target_keyspace - * @memberof vtctldata.MoveTablesCompleteRequest + * RemoveKeyspaceCellRequest cell. + * @member {string} cell + * @memberof vtctldata.RemoveKeyspaceCellRequest * @instance */ - MoveTablesCompleteRequest.prototype.target_keyspace = ""; + RemoveKeyspaceCellRequest.prototype.cell = ""; /** - * MoveTablesCompleteRequest keep_data. - * @member {boolean} keep_data - * @memberof vtctldata.MoveTablesCompleteRequest + * RemoveKeyspaceCellRequest force. + * @member {boolean} force + * @memberof vtctldata.RemoveKeyspaceCellRequest * @instance */ - MoveTablesCompleteRequest.prototype.keep_data = false; + RemoveKeyspaceCellRequest.prototype.force = false; /** - * MoveTablesCompleteRequest keep_routing_rules. - * @member {boolean} keep_routing_rules - * @memberof vtctldata.MoveTablesCompleteRequest + * RemoveKeyspaceCellRequest recursive. + * @member {boolean} recursive + * @memberof vtctldata.RemoveKeyspaceCellRequest * @instance */ - MoveTablesCompleteRequest.prototype.keep_routing_rules = false; + RemoveKeyspaceCellRequest.prototype.recursive = false; /** - * MoveTablesCompleteRequest rename_tables. - * @member {boolean} rename_tables - * @memberof vtctldata.MoveTablesCompleteRequest - * @instance + * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. + * @function create + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @static + * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set + * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest instance */ - MoveTablesCompleteRequest.prototype.rename_tables = false; + RemoveKeyspaceCellRequest.create = function create(properties) { + return new RemoveKeyspaceCellRequest(properties); + }; /** - * MoveTablesCompleteRequest dry_run. - * @member {boolean} dry_run - * @memberof vtctldata.MoveTablesCompleteRequest - * @instance + * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @static + * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MoveTablesCompleteRequest.prototype.dry_run = false; + RemoveKeyspaceCellRequest.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.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cell); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.recursive); + return writer; + }; /** - * MoveTablesCompleteRequest shards. - * @member {Array.} shards - * @memberof vtctldata.MoveTablesCompleteRequest - * @instance + * Encodes the specified RemoveKeyspaceCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @static + * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MoveTablesCompleteRequest.prototype.shards = $util.emptyArray; + RemoveKeyspaceCellRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * MoveTablesCompleteRequest ignore_source_keyspace. - * @member {boolean} ignore_source_keyspace - * @memberof vtctldata.MoveTablesCompleteRequest + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveKeyspaceCellRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveKeyspaceCellRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.keyspace = reader.string(); + break; + } + case 2: { + message.cell = reader.string(); + break; + } + case 3: { + message.force = reader.bool(); + break; + } + case 4: { + message.recursive = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RemoveKeyspaceCellRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RemoveKeyspaceCellRequest message. + * @function verify + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RemoveKeyspaceCellRequest.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.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.recursive != null && message.hasOwnProperty("recursive")) + if (typeof message.recursive !== "boolean") + return "recursive: boolean expected"; + return null; + }; + + /** + * Creates a RemoveKeyspaceCellRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest + */ + RemoveKeyspaceCellRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveKeyspaceCellRequest) + return object; + let message = new $root.vtctldata.RemoveKeyspaceCellRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.cell != null) + message.cell = String(object.cell); + if (object.force != null) + message.force = Boolean(object.force); + if (object.recursive != null) + message.recursive = Boolean(object.recursive); + return message; + }; + + /** + * Creates a plain object from a RemoveKeyspaceCellRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @static + * @param {vtctldata.RemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RemoveKeyspaceCellRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.keyspace = ""; + object.cell = ""; + object.force = false; + object.recursive = false; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.recursive != null && message.hasOwnProperty("recursive")) + object.recursive = message.recursive; + return object; + }; + + /** + * Converts this RemoveKeyspaceCellRequest to JSON. + * @function toJSON + * @memberof vtctldata.RemoveKeyspaceCellRequest * @instance + * @returns {Object.} JSON object */ - MoveTablesCompleteRequest.prototype.ignore_source_keyspace = false; + RemoveKeyspaceCellRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Creates a new MoveTablesCompleteRequest instance using the specified properties. + * Gets the default type url for RemoveKeyspaceCellRequest + * @function getTypeUrl + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RemoveKeyspaceCellRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.RemoveKeyspaceCellRequest"; + }; + + return RemoveKeyspaceCellRequest; + })(); + + vtctldata.RemoveKeyspaceCellResponse = (function() { + + /** + * Properties of a RemoveKeyspaceCellResponse. + * @memberof vtctldata + * @interface IRemoveKeyspaceCellResponse + */ + + /** + * Constructs a new RemoveKeyspaceCellResponse. + * @memberof vtctldata + * @classdesc Represents a RemoveKeyspaceCellResponse. + * @implements IRemoveKeyspaceCellResponse + * @constructor + * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set + */ + function RemoveKeyspaceCellResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. * @function create - * @memberof vtctldata.MoveTablesCompleteRequest + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static - * @param {vtctldata.IMoveTablesCompleteRequest=} [properties] Properties to set - * @returns {vtctldata.MoveTablesCompleteRequest} MoveTablesCompleteRequest instance + * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set + * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse instance */ - MoveTablesCompleteRequest.create = function create(properties) { - return new MoveTablesCompleteRequest(properties); + RemoveKeyspaceCellResponse.create = function create(properties) { + return new RemoveKeyspaceCellResponse(properties); }; /** - * Encodes the specified MoveTablesCompleteRequest message. Does not implicitly {@link vtctldata.MoveTablesCompleteRequest.verify|verify} messages. + * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.MoveTablesCompleteRequest + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static - * @param {vtctldata.IMoveTablesCompleteRequest} message MoveTablesCompleteRequest message or plain object to encode + * @param {vtctldata.IRemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MoveTablesCompleteRequest.encode = function encode(message, writer) { + RemoveKeyspaceCellResponse.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.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_keyspace); - if (message.keep_data != null && Object.hasOwnProperty.call(message, "keep_data")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.keep_data); - if (message.keep_routing_rules != null && Object.hasOwnProperty.call(message, "keep_routing_rules")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.keep_routing_rules); - if (message.rename_tables != null && Object.hasOwnProperty.call(message, "rename_tables")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.rename_tables); - if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.dry_run); - if (message.shards != null && message.shards.length) - for (let i = 0; i < message.shards.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.shards[i]); - if (message.ignore_source_keyspace != null && Object.hasOwnProperty.call(message, "ignore_source_keyspace")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.ignore_source_keyspace); return writer; }; /** - * Encodes the specified MoveTablesCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCompleteRequest.verify|verify} messages. + * Encodes the specified RemoveKeyspaceCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MoveTablesCompleteRequest + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static - * @param {vtctldata.IMoveTablesCompleteRequest} message MoveTablesCompleteRequest message or plain object to encode + * @param {vtctldata.IRemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MoveTablesCompleteRequest.encodeDelimited = function encodeDelimited(message, writer) { + RemoveKeyspaceCellResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer. + * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MoveTablesCompleteRequest + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MoveTablesCompleteRequest} MoveTablesCompleteRequest + * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MoveTablesCompleteRequest.decode = function decode(reader, length) { + RemoveKeyspaceCellResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MoveTablesCompleteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveKeyspaceCellResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.workflow = reader.string(); - break; - } - case 3: { - message.target_keyspace = reader.string(); - break; - } - case 4: { - message.keep_data = reader.bool(); - break; - } - case 5: { - message.keep_routing_rules = reader.bool(); - break; - } - case 6: { - message.rename_tables = reader.bool(); - break; - } - case 7: { - message.dry_run = reader.bool(); - break; - } - case 8: { - if (!(message.shards && message.shards.length)) - message.shards = []; - message.shards.push(reader.string()); - break; - } - case 9: { - message.ignore_source_keyspace = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -169679,194 +177472,113 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MoveTablesCompleteRequest + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MoveTablesCompleteRequest} MoveTablesCompleteRequest + * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MoveTablesCompleteRequest.decodeDelimited = function decodeDelimited(reader) { + RemoveKeyspaceCellResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MoveTablesCompleteRequest message. + * Verifies a RemoveKeyspaceCellResponse message. * @function verify - * @memberof vtctldata.MoveTablesCompleteRequest + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MoveTablesCompleteRequest.verify = function verify(message) { + RemoveKeyspaceCellResponse.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.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - if (!$util.isString(message.target_keyspace)) - return "target_keyspace: string expected"; - if (message.keep_data != null && message.hasOwnProperty("keep_data")) - if (typeof message.keep_data !== "boolean") - return "keep_data: boolean expected"; - if (message.keep_routing_rules != null && message.hasOwnProperty("keep_routing_rules")) - if (typeof message.keep_routing_rules !== "boolean") - return "keep_routing_rules: boolean expected"; - if (message.rename_tables != null && message.hasOwnProperty("rename_tables")) - if (typeof message.rename_tables !== "boolean") - return "rename_tables: boolean expected"; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - if (typeof message.dry_run !== "boolean") - return "dry_run: boolean expected"; - if (message.shards != null && message.hasOwnProperty("shards")) { - if (!Array.isArray(message.shards)) - return "shards: array expected"; - for (let i = 0; i < message.shards.length; ++i) - if (!$util.isString(message.shards[i])) - return "shards: string[] expected"; - } - if (message.ignore_source_keyspace != null && message.hasOwnProperty("ignore_source_keyspace")) - if (typeof message.ignore_source_keyspace !== "boolean") - return "ignore_source_keyspace: boolean expected"; return null; }; /** - * Creates a MoveTablesCompleteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveKeyspaceCellResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MoveTablesCompleteRequest + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.MoveTablesCompleteRequest} MoveTablesCompleteRequest + * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse */ - MoveTablesCompleteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MoveTablesCompleteRequest) + RemoveKeyspaceCellResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveKeyspaceCellResponse) return object; - let message = new $root.vtctldata.MoveTablesCompleteRequest(); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.target_keyspace != null) - message.target_keyspace = String(object.target_keyspace); - if (object.keep_data != null) - message.keep_data = Boolean(object.keep_data); - if (object.keep_routing_rules != null) - message.keep_routing_rules = Boolean(object.keep_routing_rules); - if (object.rename_tables != null) - message.rename_tables = Boolean(object.rename_tables); - if (object.dry_run != null) - message.dry_run = Boolean(object.dry_run); - if (object.shards) { - if (!Array.isArray(object.shards)) - throw TypeError(".vtctldata.MoveTablesCompleteRequest.shards: array expected"); - message.shards = []; - for (let i = 0; i < object.shards.length; ++i) - message.shards[i] = String(object.shards[i]); - } - if (object.ignore_source_keyspace != null) - message.ignore_source_keyspace = Boolean(object.ignore_source_keyspace); - return message; + return new $root.vtctldata.RemoveKeyspaceCellResponse(); }; /** - * Creates a plain object from a MoveTablesCompleteRequest message. Also converts values to other types if specified. + * Creates a plain object from a RemoveKeyspaceCellResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MoveTablesCompleteRequest + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static - * @param {vtctldata.MoveTablesCompleteRequest} message MoveTablesCompleteRequest + * @param {vtctldata.RemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MoveTablesCompleteRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.shards = []; - if (options.defaults) { - object.workflow = ""; - object.target_keyspace = ""; - object.keep_data = false; - object.keep_routing_rules = false; - object.rename_tables = false; - object.dry_run = false; - object.ignore_source_keyspace = false; - } - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - object.target_keyspace = message.target_keyspace; - if (message.keep_data != null && message.hasOwnProperty("keep_data")) - object.keep_data = message.keep_data; - if (message.keep_routing_rules != null && message.hasOwnProperty("keep_routing_rules")) - object.keep_routing_rules = message.keep_routing_rules; - if (message.rename_tables != null && message.hasOwnProperty("rename_tables")) - object.rename_tables = message.rename_tables; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - object.dry_run = message.dry_run; - if (message.shards && message.shards.length) { - object.shards = []; - for (let j = 0; j < message.shards.length; ++j) - object.shards[j] = message.shards[j]; - } - if (message.ignore_source_keyspace != null && message.hasOwnProperty("ignore_source_keyspace")) - object.ignore_source_keyspace = message.ignore_source_keyspace; - return object; + RemoveKeyspaceCellResponse.toObject = function toObject() { + return {}; }; /** - * Converts this MoveTablesCompleteRequest to JSON. + * Converts this RemoveKeyspaceCellResponse to JSON. * @function toJSON - * @memberof vtctldata.MoveTablesCompleteRequest + * @memberof vtctldata.RemoveKeyspaceCellResponse * @instance * @returns {Object.} JSON object */ - MoveTablesCompleteRequest.prototype.toJSON = function toJSON() { + RemoveKeyspaceCellResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MoveTablesCompleteRequest + * Gets the default type url for RemoveKeyspaceCellResponse * @function getTypeUrl - * @memberof vtctldata.MoveTablesCompleteRequest + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MoveTablesCompleteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveKeyspaceCellResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MoveTablesCompleteRequest"; + return typeUrlPrefix + "/vtctldata.RemoveKeyspaceCellResponse"; }; - return MoveTablesCompleteRequest; + return RemoveKeyspaceCellResponse; })(); - vtctldata.MoveTablesCompleteResponse = (function() { + vtctldata.RemoveShardCellRequest = (function() { /** - * Properties of a MoveTablesCompleteResponse. + * Properties of a RemoveShardCellRequest. * @memberof vtctldata - * @interface IMoveTablesCompleteResponse - * @property {string|null} [summary] MoveTablesCompleteResponse summary - * @property {Array.|null} [dry_run_results] MoveTablesCompleteResponse dry_run_results + * @interface IRemoveShardCellRequest + * @property {string|null} [keyspace] RemoveShardCellRequest keyspace + * @property {string|null} [shard_name] RemoveShardCellRequest shard_name + * @property {string|null} [cell] RemoveShardCellRequest cell + * @property {boolean|null} [force] RemoveShardCellRequest force + * @property {boolean|null} [recursive] RemoveShardCellRequest recursive */ /** - * Constructs a new MoveTablesCompleteResponse. + * Constructs a new RemoveShardCellRequest. * @memberof vtctldata - * @classdesc Represents a MoveTablesCompleteResponse. - * @implements IMoveTablesCompleteResponse + * @classdesc Represents a RemoveShardCellRequest. + * @implements IRemoveShardCellRequest * @constructor - * @param {vtctldata.IMoveTablesCompleteResponse=} [properties] Properties to set + * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set */ - function MoveTablesCompleteResponse(properties) { - this.dry_run_results = []; + function RemoveShardCellRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -169874,92 +177586,131 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * MoveTablesCompleteResponse summary. - * @member {string} summary - * @memberof vtctldata.MoveTablesCompleteResponse + * RemoveShardCellRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.RemoveShardCellRequest * @instance */ - MoveTablesCompleteResponse.prototype.summary = ""; + RemoveShardCellRequest.prototype.keyspace = ""; /** - * MoveTablesCompleteResponse dry_run_results. - * @member {Array.} dry_run_results - * @memberof vtctldata.MoveTablesCompleteResponse + * RemoveShardCellRequest shard_name. + * @member {string} shard_name + * @memberof vtctldata.RemoveShardCellRequest * @instance */ - MoveTablesCompleteResponse.prototype.dry_run_results = $util.emptyArray; + RemoveShardCellRequest.prototype.shard_name = ""; /** - * Creates a new MoveTablesCompleteResponse instance using the specified properties. + * RemoveShardCellRequest cell. + * @member {string} cell + * @memberof vtctldata.RemoveShardCellRequest + * @instance + */ + RemoveShardCellRequest.prototype.cell = ""; + + /** + * RemoveShardCellRequest force. + * @member {boolean} force + * @memberof vtctldata.RemoveShardCellRequest + * @instance + */ + RemoveShardCellRequest.prototype.force = false; + + /** + * RemoveShardCellRequest recursive. + * @member {boolean} recursive + * @memberof vtctldata.RemoveShardCellRequest + * @instance + */ + RemoveShardCellRequest.prototype.recursive = false; + + /** + * Creates a new RemoveShardCellRequest instance using the specified properties. * @function create - * @memberof vtctldata.MoveTablesCompleteResponse + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {vtctldata.IMoveTablesCompleteResponse=} [properties] Properties to set - * @returns {vtctldata.MoveTablesCompleteResponse} MoveTablesCompleteResponse instance + * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set + * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest instance */ - MoveTablesCompleteResponse.create = function create(properties) { - return new MoveTablesCompleteResponse(properties); + RemoveShardCellRequest.create = function create(properties) { + return new RemoveShardCellRequest(properties); }; /** - * Encodes the specified MoveTablesCompleteResponse message. Does not implicitly {@link vtctldata.MoveTablesCompleteResponse.verify|verify} messages. + * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.MoveTablesCompleteResponse + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {vtctldata.IMoveTablesCompleteResponse} message MoveTablesCompleteResponse message or plain object to encode + * @param {vtctldata.IRemoveShardCellRequest} message RemoveShardCellRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MoveTablesCompleteResponse.encode = function encode(message, writer) { + RemoveShardCellRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.summary != null && Object.hasOwnProperty.call(message, "summary")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.summary); - if (message.dry_run_results != null && message.dry_run_results.length) - for (let i = 0; i < message.dry_run_results.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.dry_run_results[i]); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard_name != null && Object.hasOwnProperty.call(message, "shard_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard_name); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cell); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.force); + if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.recursive); return writer; }; /** - * Encodes the specified MoveTablesCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCompleteResponse.verify|verify} messages. + * Encodes the specified RemoveShardCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MoveTablesCompleteResponse + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {vtctldata.IMoveTablesCompleteResponse} message MoveTablesCompleteResponse message or plain object to encode + * @param {vtctldata.IRemoveShardCellRequest} message RemoveShardCellRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MoveTablesCompleteResponse.encodeDelimited = function encodeDelimited(message, writer) { + RemoveShardCellRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer. + * Decodes a RemoveShardCellRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MoveTablesCompleteResponse + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MoveTablesCompleteResponse} MoveTablesCompleteResponse + * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MoveTablesCompleteResponse.decode = function decode(reader, length) { + RemoveShardCellRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MoveTablesCompleteResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveShardCellRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.summary = reader.string(); + message.keyspace = reader.string(); break; } case 2: { - if (!(message.dry_run_results && message.dry_run_results.length)) - message.dry_run_results = []; - message.dry_run_results.push(reader.string()); + message.shard_name = reader.string(); + break; + } + case 3: { + message.cell = reader.string(); + break; + } + case 4: { + message.force = reader.bool(); + break; + } + case 5: { + message.recursive = reader.bool(); break; } default: @@ -169971,143 +177722,154 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MoveTablesCompleteResponse + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MoveTablesCompleteResponse} MoveTablesCompleteResponse + * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MoveTablesCompleteResponse.decodeDelimited = function decodeDelimited(reader) { + RemoveShardCellRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MoveTablesCompleteResponse message. + * Verifies a RemoveShardCellRequest message. * @function verify - * @memberof vtctldata.MoveTablesCompleteResponse + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MoveTablesCompleteResponse.verify = function verify(message) { + RemoveShardCellRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.summary != null && message.hasOwnProperty("summary")) - if (!$util.isString(message.summary)) - return "summary: string expected"; - if (message.dry_run_results != null && message.hasOwnProperty("dry_run_results")) { - if (!Array.isArray(message.dry_run_results)) - return "dry_run_results: array expected"; - for (let i = 0; i < message.dry_run_results.length; ++i) - if (!$util.isString(message.dry_run_results[i])) - return "dry_run_results: string[] expected"; - } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard_name != null && message.hasOwnProperty("shard_name")) + if (!$util.isString(message.shard_name)) + return "shard_name: string expected"; + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.recursive != null && message.hasOwnProperty("recursive")) + if (typeof message.recursive !== "boolean") + return "recursive: boolean expected"; return null; }; /** - * Creates a MoveTablesCompleteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveShardCellRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MoveTablesCompleteResponse + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.MoveTablesCompleteResponse} MoveTablesCompleteResponse + * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest */ - MoveTablesCompleteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MoveTablesCompleteResponse) + RemoveShardCellRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveShardCellRequest) return object; - let message = new $root.vtctldata.MoveTablesCompleteResponse(); - if (object.summary != null) - message.summary = String(object.summary); - if (object.dry_run_results) { - if (!Array.isArray(object.dry_run_results)) - throw TypeError(".vtctldata.MoveTablesCompleteResponse.dry_run_results: array expected"); - message.dry_run_results = []; - for (let i = 0; i < object.dry_run_results.length; ++i) - message.dry_run_results[i] = String(object.dry_run_results[i]); - } + let message = new $root.vtctldata.RemoveShardCellRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard_name != null) + message.shard_name = String(object.shard_name); + if (object.cell != null) + message.cell = String(object.cell); + if (object.force != null) + message.force = Boolean(object.force); + if (object.recursive != null) + message.recursive = Boolean(object.recursive); return message; }; /** - * Creates a plain object from a MoveTablesCompleteResponse message. Also converts values to other types if specified. + * Creates a plain object from a RemoveShardCellRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MoveTablesCompleteResponse + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {vtctldata.MoveTablesCompleteResponse} message MoveTablesCompleteResponse + * @param {vtctldata.RemoveShardCellRequest} message RemoveShardCellRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MoveTablesCompleteResponse.toObject = function toObject(message, options) { + RemoveShardCellRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.dry_run_results = []; - if (options.defaults) - object.summary = ""; - if (message.summary != null && message.hasOwnProperty("summary")) - object.summary = message.summary; - if (message.dry_run_results && message.dry_run_results.length) { - object.dry_run_results = []; - for (let j = 0; j < message.dry_run_results.length; ++j) - object.dry_run_results[j] = message.dry_run_results[j]; + if (options.defaults) { + object.keyspace = ""; + object.shard_name = ""; + object.cell = ""; + object.force = false; + object.recursive = false; } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard_name != null && message.hasOwnProperty("shard_name")) + object.shard_name = message.shard_name; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.recursive != null && message.hasOwnProperty("recursive")) + object.recursive = message.recursive; return object; }; /** - * Converts this MoveTablesCompleteResponse to JSON. + * Converts this RemoveShardCellRequest to JSON. * @function toJSON - * @memberof vtctldata.MoveTablesCompleteResponse + * @memberof vtctldata.RemoveShardCellRequest * @instance * @returns {Object.} JSON object */ - MoveTablesCompleteResponse.prototype.toJSON = function toJSON() { + RemoveShardCellRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MoveTablesCompleteResponse + * Gets the default type url for RemoveShardCellRequest * @function getTypeUrl - * @memberof vtctldata.MoveTablesCompleteResponse + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MoveTablesCompleteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveShardCellRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.MoveTablesCompleteResponse"; + return typeUrlPrefix + "/vtctldata.RemoveShardCellRequest"; }; - return MoveTablesCompleteResponse; + return RemoveShardCellRequest; })(); - vtctldata.PingTabletRequest = (function() { + vtctldata.RemoveShardCellResponse = (function() { /** - * Properties of a PingTabletRequest. + * Properties of a RemoveShardCellResponse. * @memberof vtctldata - * @interface IPingTabletRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] PingTabletRequest tablet_alias + * @interface IRemoveShardCellResponse */ /** - * Constructs a new PingTabletRequest. + * Constructs a new RemoveShardCellResponse. * @memberof vtctldata - * @classdesc Represents a PingTabletRequest. - * @implements IPingTabletRequest + * @classdesc Represents a RemoveShardCellResponse. + * @implements IRemoveShardCellResponse * @constructor - * @param {vtctldata.IPingTabletRequest=} [properties] Properties to set + * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set */ - function PingTabletRequest(properties) { + function RemoveShardCellResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -170115,77 +177877,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * PingTabletRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.PingTabletRequest - * @instance - */ - PingTabletRequest.prototype.tablet_alias = null; - - /** - * Creates a new PingTabletRequest instance using the specified properties. + * Creates a new RemoveShardCellResponse instance using the specified properties. * @function create - * @memberof vtctldata.PingTabletRequest + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {vtctldata.IPingTabletRequest=} [properties] Properties to set - * @returns {vtctldata.PingTabletRequest} PingTabletRequest instance + * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set + * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse instance */ - PingTabletRequest.create = function create(properties) { - return new PingTabletRequest(properties); + RemoveShardCellResponse.create = function create(properties) { + return new RemoveShardCellResponse(properties); }; /** - * Encodes the specified PingTabletRequest message. Does not implicitly {@link vtctldata.PingTabletRequest.verify|verify} messages. + * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.PingTabletRequest + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {vtctldata.IPingTabletRequest} message PingTabletRequest message or plain object to encode + * @param {vtctldata.IRemoveShardCellResponse} message RemoveShardCellResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PingTabletRequest.encode = function encode(message, writer) { + RemoveShardCellResponse.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(); return writer; }; /** - * Encodes the specified PingTabletRequest message, length delimited. Does not implicitly {@link vtctldata.PingTabletRequest.verify|verify} messages. + * Encodes the specified RemoveShardCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.PingTabletRequest + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {vtctldata.IPingTabletRequest} message PingTabletRequest message or plain object to encode + * @param {vtctldata.IRemoveShardCellResponse} message RemoveShardCellResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PingTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { + RemoveShardCellResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PingTabletRequest message from the specified reader or buffer. + * Decodes a RemoveShardCellResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.PingTabletRequest + * @memberof vtctldata.RemoveShardCellResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.PingTabletRequest} PingTabletRequest + * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PingTabletRequest.decode = function decode(reader, length) { + RemoveShardCellResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PingTabletRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveShardCellResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -170195,126 +177943,109 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a PingTabletRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.PingTabletRequest + * @memberof vtctldata.RemoveShardCellResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.PingTabletRequest} PingTabletRequest + * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PingTabletRequest.decodeDelimited = function decodeDelimited(reader) { + RemoveShardCellResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PingTabletRequest message. + * Verifies a RemoveShardCellResponse message. * @function verify - * @memberof vtctldata.PingTabletRequest + * @memberof vtctldata.RemoveShardCellResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PingTabletRequest.verify = function verify(message) { + RemoveShardCellResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } return null; }; /** - * Creates a PingTabletRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveShardCellResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.PingTabletRequest + * @memberof vtctldata.RemoveShardCellResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.PingTabletRequest} PingTabletRequest + * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse */ - PingTabletRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.PingTabletRequest) + RemoveShardCellResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveShardCellResponse) return object; - let message = new $root.vtctldata.PingTabletRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.PingTabletRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - return message; + return new $root.vtctldata.RemoveShardCellResponse(); }; /** - * Creates a plain object from a PingTabletRequest message. Also converts values to other types if specified. + * Creates a plain object from a RemoveShardCellResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.PingTabletRequest + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {vtctldata.PingTabletRequest} message PingTabletRequest + * @param {vtctldata.RemoveShardCellResponse} message RemoveShardCellResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PingTabletRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.tablet_alias = null; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - return object; + RemoveShardCellResponse.toObject = function toObject() { + return {}; }; /** - * Converts this PingTabletRequest to JSON. + * Converts this RemoveShardCellResponse to JSON. * @function toJSON - * @memberof vtctldata.PingTabletRequest + * @memberof vtctldata.RemoveShardCellResponse * @instance * @returns {Object.} JSON object */ - PingTabletRequest.prototype.toJSON = function toJSON() { + RemoveShardCellResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PingTabletRequest + * Gets the default type url for RemoveShardCellResponse * @function getTypeUrl - * @memberof vtctldata.PingTabletRequest + * @memberof vtctldata.RemoveShardCellResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PingTabletRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveShardCellResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.PingTabletRequest"; + return typeUrlPrefix + "/vtctldata.RemoveShardCellResponse"; }; - return PingTabletRequest; + return RemoveShardCellResponse; })(); - vtctldata.PingTabletResponse = (function() { + vtctldata.ReparentTabletRequest = (function() { /** - * Properties of a PingTabletResponse. + * Properties of a ReparentTabletRequest. * @memberof vtctldata - * @interface IPingTabletResponse + * @interface IReparentTabletRequest + * @property {topodata.ITabletAlias|null} [tablet] ReparentTabletRequest tablet */ /** - * Constructs a new PingTabletResponse. + * Constructs a new ReparentTabletRequest. * @memberof vtctldata - * @classdesc Represents a PingTabletResponse. - * @implements IPingTabletResponse + * @classdesc Represents a ReparentTabletRequest. + * @implements IReparentTabletRequest * @constructor - * @param {vtctldata.IPingTabletResponse=} [properties] Properties to set + * @param {vtctldata.IReparentTabletRequest=} [properties] Properties to set */ - function PingTabletResponse(properties) { + function ReparentTabletRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -170322,63 +178053,77 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new PingTabletResponse instance using the specified properties. + * ReparentTabletRequest tablet. + * @member {topodata.ITabletAlias|null|undefined} tablet + * @memberof vtctldata.ReparentTabletRequest + * @instance + */ + ReparentTabletRequest.prototype.tablet = null; + + /** + * Creates a new ReparentTabletRequest instance using the specified properties. * @function create - * @memberof vtctldata.PingTabletResponse + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {vtctldata.IPingTabletResponse=} [properties] Properties to set - * @returns {vtctldata.PingTabletResponse} PingTabletResponse instance + * @param {vtctldata.IReparentTabletRequest=} [properties] Properties to set + * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest instance */ - PingTabletResponse.create = function create(properties) { - return new PingTabletResponse(properties); + ReparentTabletRequest.create = function create(properties) { + return new ReparentTabletRequest(properties); }; /** - * Encodes the specified PingTabletResponse message. Does not implicitly {@link vtctldata.PingTabletResponse.verify|verify} messages. + * Encodes the specified ReparentTabletRequest message. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.PingTabletResponse + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {vtctldata.IPingTabletResponse} message PingTabletResponse message or plain object to encode + * @param {vtctldata.IReparentTabletRequest} message ReparentTabletRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PingTabletResponse.encode = function encode(message, writer) { + ReparentTabletRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) + $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified PingTabletResponse message, length delimited. Does not implicitly {@link vtctldata.PingTabletResponse.verify|verify} messages. + * Encodes the specified ReparentTabletRequest message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.PingTabletResponse + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {vtctldata.IPingTabletResponse} message PingTabletResponse message or plain object to encode + * @param {vtctldata.IReparentTabletRequest} message ReparentTabletRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PingTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReparentTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PingTabletResponse message from the specified reader or buffer. + * Decodes a ReparentTabletRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.PingTabletResponse + * @memberof vtctldata.ReparentTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.PingTabletResponse} PingTabletResponse + * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PingTabletResponse.decode = function decode(reader, length) { + ReparentTabletRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PingTabletResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReparentTabletRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -170388,116 +178133,129 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a PingTabletResponse message from the specified reader or buffer, length delimited. + * Decodes a ReparentTabletRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.PingTabletResponse + * @memberof vtctldata.ReparentTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.PingTabletResponse} PingTabletResponse + * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PingTabletResponse.decodeDelimited = function decodeDelimited(reader) { + ReparentTabletRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PingTabletResponse message. + * Verifies a ReparentTabletRequest message. * @function verify - * @memberof vtctldata.PingTabletResponse + * @memberof vtctldata.ReparentTabletRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PingTabletResponse.verify = function verify(message) { + ReparentTabletRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.tablet != null && message.hasOwnProperty("tablet")) { + let error = $root.topodata.TabletAlias.verify(message.tablet); + if (error) + return "tablet." + error; + } return null; }; /** - * Creates a PingTabletResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReparentTabletRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.PingTabletResponse + * @memberof vtctldata.ReparentTabletRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.PingTabletResponse} PingTabletResponse + * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest */ - PingTabletResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.PingTabletResponse) + ReparentTabletRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReparentTabletRequest) return object; - return new $root.vtctldata.PingTabletResponse(); + let message = new $root.vtctldata.ReparentTabletRequest(); + if (object.tablet != null) { + if (typeof object.tablet !== "object") + throw TypeError(".vtctldata.ReparentTabletRequest.tablet: object expected"); + message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); + } + return message; }; /** - * Creates a plain object from a PingTabletResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReparentTabletRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.PingTabletResponse + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {vtctldata.PingTabletResponse} message PingTabletResponse + * @param {vtctldata.ReparentTabletRequest} message ReparentTabletRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PingTabletResponse.toObject = function toObject() { - return {}; + ReparentTabletRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.tablet = null; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); + return object; }; /** - * Converts this PingTabletResponse to JSON. + * Converts this ReparentTabletRequest to JSON. * @function toJSON - * @memberof vtctldata.PingTabletResponse + * @memberof vtctldata.ReparentTabletRequest * @instance * @returns {Object.} JSON object */ - PingTabletResponse.prototype.toJSON = function toJSON() { + ReparentTabletRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PingTabletResponse + * Gets the default type url for ReparentTabletRequest * @function getTypeUrl - * @memberof vtctldata.PingTabletResponse + * @memberof vtctldata.ReparentTabletRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PingTabletResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReparentTabletRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.PingTabletResponse"; + return typeUrlPrefix + "/vtctldata.ReparentTabletRequest"; }; - return PingTabletResponse; + return ReparentTabletRequest; })(); - vtctldata.PlannedReparentShardRequest = (function() { + vtctldata.ReparentTabletResponse = (function() { /** - * Properties of a PlannedReparentShardRequest. + * Properties of a ReparentTabletResponse. * @memberof vtctldata - * @interface IPlannedReparentShardRequest - * @property {string|null} [keyspace] PlannedReparentShardRequest keyspace - * @property {string|null} [shard] PlannedReparentShardRequest shard - * @property {topodata.ITabletAlias|null} [new_primary] PlannedReparentShardRequest new_primary - * @property {topodata.ITabletAlias|null} [avoid_primary] PlannedReparentShardRequest avoid_primary - * @property {vttime.IDuration|null} [wait_replicas_timeout] PlannedReparentShardRequest wait_replicas_timeout - * @property {vttime.IDuration|null} [tolerable_replication_lag] PlannedReparentShardRequest tolerable_replication_lag - * @property {boolean|null} [allow_cross_cell_promotion] PlannedReparentShardRequest allow_cross_cell_promotion - * @property {topodata.ITabletAlias|null} [expected_primary] PlannedReparentShardRequest expected_primary + * @interface IReparentTabletResponse + * @property {string|null} [keyspace] ReparentTabletResponse keyspace + * @property {string|null} [shard] ReparentTabletResponse shard + * @property {topodata.ITabletAlias|null} [primary] ReparentTabletResponse primary */ /** - * Constructs a new PlannedReparentShardRequest. + * Constructs a new ReparentTabletResponse. * @memberof vtctldata - * @classdesc Represents a PlannedReparentShardRequest. - * @implements IPlannedReparentShardRequest + * @classdesc Represents a ReparentTabletResponse. + * @implements IReparentTabletResponse * @constructor - * @param {vtctldata.IPlannedReparentShardRequest=} [properties] Properties to set + * @param {vtctldata.IReparentTabletResponse=} [properties] Properties to set */ - function PlannedReparentShardRequest(properties) { + function ReparentTabletResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -170505,140 +178263,90 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * PlannedReparentShardRequest keyspace. + * ReparentTabletResponse keyspace. * @member {string} keyspace - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.ReparentTabletResponse * @instance */ - PlannedReparentShardRequest.prototype.keyspace = ""; + ReparentTabletResponse.prototype.keyspace = ""; /** - * PlannedReparentShardRequest shard. + * ReparentTabletResponse shard. * @member {string} shard - * @memberof vtctldata.PlannedReparentShardRequest - * @instance - */ - PlannedReparentShardRequest.prototype.shard = ""; - - /** - * PlannedReparentShardRequest new_primary. - * @member {topodata.ITabletAlias|null|undefined} new_primary - * @memberof vtctldata.PlannedReparentShardRequest - * @instance - */ - PlannedReparentShardRequest.prototype.new_primary = null; - - /** - * PlannedReparentShardRequest avoid_primary. - * @member {topodata.ITabletAlias|null|undefined} avoid_primary - * @memberof vtctldata.PlannedReparentShardRequest - * @instance - */ - PlannedReparentShardRequest.prototype.avoid_primary = null; - - /** - * PlannedReparentShardRequest wait_replicas_timeout. - * @member {vttime.IDuration|null|undefined} wait_replicas_timeout - * @memberof vtctldata.PlannedReparentShardRequest - * @instance - */ - PlannedReparentShardRequest.prototype.wait_replicas_timeout = null; - - /** - * PlannedReparentShardRequest tolerable_replication_lag. - * @member {vttime.IDuration|null|undefined} tolerable_replication_lag - * @memberof vtctldata.PlannedReparentShardRequest - * @instance - */ - PlannedReparentShardRequest.prototype.tolerable_replication_lag = null; - - /** - * PlannedReparentShardRequest allow_cross_cell_promotion. - * @member {boolean} allow_cross_cell_promotion - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.ReparentTabletResponse * @instance */ - PlannedReparentShardRequest.prototype.allow_cross_cell_promotion = false; + ReparentTabletResponse.prototype.shard = ""; /** - * PlannedReparentShardRequest expected_primary. - * @member {topodata.ITabletAlias|null|undefined} expected_primary - * @memberof vtctldata.PlannedReparentShardRequest + * ReparentTabletResponse primary. + * @member {topodata.ITabletAlias|null|undefined} primary + * @memberof vtctldata.ReparentTabletResponse * @instance */ - PlannedReparentShardRequest.prototype.expected_primary = null; + ReparentTabletResponse.prototype.primary = null; /** - * Creates a new PlannedReparentShardRequest instance using the specified properties. + * Creates a new ReparentTabletResponse instance using the specified properties. * @function create - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {vtctldata.IPlannedReparentShardRequest=} [properties] Properties to set - * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest instance + * @param {vtctldata.IReparentTabletResponse=} [properties] Properties to set + * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse instance */ - PlannedReparentShardRequest.create = function create(properties) { - return new PlannedReparentShardRequest(properties); + ReparentTabletResponse.create = function create(properties) { + return new ReparentTabletResponse(properties); }; /** - * Encodes the specified PlannedReparentShardRequest message. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. + * Encodes the specified ReparentTabletResponse message. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {vtctldata.IPlannedReparentShardRequest} message PlannedReparentShardRequest message or plain object to encode + * @param {vtctldata.IReparentTabletResponse} message ReparentTabletResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PlannedReparentShardRequest.encode = function encode(message, writer) { + ReparentTabletResponse.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.new_primary != null && Object.hasOwnProperty.call(message, "new_primary")) - $root.topodata.TabletAlias.encode(message.new_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.avoid_primary != null && Object.hasOwnProperty.call(message, "avoid_primary")) - $root.topodata.TabletAlias.encode(message.avoid_primary, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) - $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.tolerable_replication_lag != null && Object.hasOwnProperty.call(message, "tolerable_replication_lag")) - $root.vttime.Duration.encode(message.tolerable_replication_lag, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.allow_cross_cell_promotion != null && Object.hasOwnProperty.call(message, "allow_cross_cell_promotion")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.allow_cross_cell_promotion); - if (message.expected_primary != null && Object.hasOwnProperty.call(message, "expected_primary")) - $root.topodata.TabletAlias.encode(message.expected_primary, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.primary != null && Object.hasOwnProperty.call(message, "primary")) + $root.topodata.TabletAlias.encode(message.primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified PlannedReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. + * Encodes the specified ReparentTabletResponse message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {vtctldata.IPlannedReparentShardRequest} message PlannedReparentShardRequest message or plain object to encode + * @param {vtctldata.IReparentTabletResponse} message ReparentTabletResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PlannedReparentShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReparentTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PlannedReparentShardRequest message from the specified reader or buffer. + * Decodes a ReparentTabletResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.ReparentTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest + * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PlannedReparentShardRequest.decode = function decode(reader, length) { + ReparentTabletResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PlannedReparentShardRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReparentTabletResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -170651,27 +178359,7 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 3: { - message.new_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 4: { - message.avoid_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 5: { - message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); - break; - } - case 6: { - message.tolerable_replication_lag = $root.vttime.Duration.decode(reader, reader.uint32()); - break; - } - case 7: { - message.allow_cross_cell_promotion = reader.bool(); - break; - } - case 8: { - message.expected_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -170683,30 +178371,30 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a PlannedReparentShardRequest message from the specified reader or buffer, length delimited. + * Decodes a ReparentTabletResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.ReparentTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest + * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PlannedReparentShardRequest.decodeDelimited = function decodeDelimited(reader) { + ReparentTabletResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PlannedReparentShardRequest message. + * Verifies a ReparentTabletResponse message. * @function verify - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.ReparentTabletResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PlannedReparentShardRequest.verify = function verify(message) { + ReparentTabletResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) @@ -170715,176 +178403,128 @@ export const vtctldata = $root.vtctldata = (() => { if (message.shard != null && message.hasOwnProperty("shard")) if (!$util.isString(message.shard)) return "shard: string expected"; - if (message.new_primary != null && message.hasOwnProperty("new_primary")) { - let error = $root.topodata.TabletAlias.verify(message.new_primary); - if (error) - return "new_primary." + error; - } - if (message.avoid_primary != null && message.hasOwnProperty("avoid_primary")) { - let error = $root.topodata.TabletAlias.verify(message.avoid_primary); - if (error) - return "avoid_primary." + error; - } - if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { - let error = $root.vttime.Duration.verify(message.wait_replicas_timeout); - if (error) - return "wait_replicas_timeout." + error; - } - if (message.tolerable_replication_lag != null && message.hasOwnProperty("tolerable_replication_lag")) { - let error = $root.vttime.Duration.verify(message.tolerable_replication_lag); - if (error) - return "tolerable_replication_lag." + error; - } - if (message.allow_cross_cell_promotion != null && message.hasOwnProperty("allow_cross_cell_promotion")) - if (typeof message.allow_cross_cell_promotion !== "boolean") - return "allow_cross_cell_promotion: boolean expected"; - if (message.expected_primary != null && message.hasOwnProperty("expected_primary")) { - let error = $root.topodata.TabletAlias.verify(message.expected_primary); + if (message.primary != null && message.hasOwnProperty("primary")) { + let error = $root.topodata.TabletAlias.verify(message.primary); if (error) - return "expected_primary." + error; + return "primary." + error; } return null; }; /** - * Creates a PlannedReparentShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReparentTabletResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.ReparentTabletResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest + * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse */ - PlannedReparentShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.PlannedReparentShardRequest) + ReparentTabletResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReparentTabletResponse) return object; - let message = new $root.vtctldata.PlannedReparentShardRequest(); + let message = new $root.vtctldata.ReparentTabletResponse(); if (object.keyspace != null) message.keyspace = String(object.keyspace); if (object.shard != null) message.shard = String(object.shard); - if (object.new_primary != null) { - if (typeof object.new_primary !== "object") - throw TypeError(".vtctldata.PlannedReparentShardRequest.new_primary: object expected"); - message.new_primary = $root.topodata.TabletAlias.fromObject(object.new_primary); - } - if (object.avoid_primary != null) { - if (typeof object.avoid_primary !== "object") - throw TypeError(".vtctldata.PlannedReparentShardRequest.avoid_primary: object expected"); - message.avoid_primary = $root.topodata.TabletAlias.fromObject(object.avoid_primary); - } - if (object.wait_replicas_timeout != null) { - if (typeof object.wait_replicas_timeout !== "object") - throw TypeError(".vtctldata.PlannedReparentShardRequest.wait_replicas_timeout: object expected"); - message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); - } - if (object.tolerable_replication_lag != null) { - if (typeof object.tolerable_replication_lag !== "object") - throw TypeError(".vtctldata.PlannedReparentShardRequest.tolerable_replication_lag: object expected"); - message.tolerable_replication_lag = $root.vttime.Duration.fromObject(object.tolerable_replication_lag); - } - if (object.allow_cross_cell_promotion != null) - message.allow_cross_cell_promotion = Boolean(object.allow_cross_cell_promotion); - if (object.expected_primary != null) { - if (typeof object.expected_primary !== "object") - throw TypeError(".vtctldata.PlannedReparentShardRequest.expected_primary: object expected"); - message.expected_primary = $root.topodata.TabletAlias.fromObject(object.expected_primary); + if (object.primary != null) { + if (typeof object.primary !== "object") + throw TypeError(".vtctldata.ReparentTabletResponse.primary: object expected"); + message.primary = $root.topodata.TabletAlias.fromObject(object.primary); } return message; }; /** - * Creates a plain object from a PlannedReparentShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReparentTabletResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {vtctldata.PlannedReparentShardRequest} message PlannedReparentShardRequest + * @param {vtctldata.ReparentTabletResponse} message ReparentTabletResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PlannedReparentShardRequest.toObject = function toObject(message, options) { + ReparentTabletResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.keyspace = ""; object.shard = ""; - object.new_primary = null; - object.avoid_primary = null; - object.wait_replicas_timeout = null; - object.tolerable_replication_lag = null; - object.allow_cross_cell_promotion = false; - object.expected_primary = null; + object.primary = null; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; if (message.shard != null && message.hasOwnProperty("shard")) object.shard = message.shard; - if (message.new_primary != null && message.hasOwnProperty("new_primary")) - object.new_primary = $root.topodata.TabletAlias.toObject(message.new_primary, options); - if (message.avoid_primary != null && message.hasOwnProperty("avoid_primary")) - object.avoid_primary = $root.topodata.TabletAlias.toObject(message.avoid_primary, options); - 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.tolerable_replication_lag != null && message.hasOwnProperty("tolerable_replication_lag")) - object.tolerable_replication_lag = $root.vttime.Duration.toObject(message.tolerable_replication_lag, options); - if (message.allow_cross_cell_promotion != null && message.hasOwnProperty("allow_cross_cell_promotion")) - object.allow_cross_cell_promotion = message.allow_cross_cell_promotion; - if (message.expected_primary != null && message.hasOwnProperty("expected_primary")) - object.expected_primary = $root.topodata.TabletAlias.toObject(message.expected_primary, options); + if (message.primary != null && message.hasOwnProperty("primary")) + object.primary = $root.topodata.TabletAlias.toObject(message.primary, options); return object; }; /** - * Converts this PlannedReparentShardRequest to JSON. + * Converts this ReparentTabletResponse to JSON. * @function toJSON - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.ReparentTabletResponse * @instance * @returns {Object.} JSON object */ - PlannedReparentShardRequest.prototype.toJSON = function toJSON() { + ReparentTabletResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PlannedReparentShardRequest + * Gets the default type url for ReparentTabletResponse * @function getTypeUrl - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.ReparentTabletResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PlannedReparentShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReparentTabletResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.PlannedReparentShardRequest"; + return typeUrlPrefix + "/vtctldata.ReparentTabletResponse"; }; - return PlannedReparentShardRequest; + return ReparentTabletResponse; })(); - vtctldata.PlannedReparentShardResponse = (function() { + vtctldata.ReshardCreateRequest = (function() { /** - * Properties of a PlannedReparentShardResponse. + * Properties of a ReshardCreateRequest. * @memberof vtctldata - * @interface IPlannedReparentShardResponse - * @property {string|null} [keyspace] PlannedReparentShardResponse keyspace - * @property {string|null} [shard] PlannedReparentShardResponse shard - * @property {topodata.ITabletAlias|null} [promoted_primary] PlannedReparentShardResponse promoted_primary - * @property {Array.|null} [events] PlannedReparentShardResponse events + * @interface IReshardCreateRequest + * @property {string|null} [workflow] ReshardCreateRequest workflow + * @property {string|null} [keyspace] ReshardCreateRequest keyspace + * @property {Array.|null} [source_shards] ReshardCreateRequest source_shards + * @property {Array.|null} [target_shards] ReshardCreateRequest target_shards + * @property {Array.|null} [cells] ReshardCreateRequest cells + * @property {Array.|null} [tablet_types] ReshardCreateRequest tablet_types + * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] ReshardCreateRequest tablet_selection_preference + * @property {boolean|null} [skip_schema_copy] ReshardCreateRequest skip_schema_copy + * @property {string|null} [on_ddl] ReshardCreateRequest on_ddl + * @property {boolean|null} [stop_after_copy] ReshardCreateRequest stop_after_copy + * @property {boolean|null} [defer_secondary_keys] ReshardCreateRequest defer_secondary_keys + * @property {boolean|null} [auto_start] ReshardCreateRequest auto_start + * @property {vtctldata.IWorkflowOptions|null} [workflow_options] ReshardCreateRequest workflow_options */ /** - * Constructs a new PlannedReparentShardResponse. + * Constructs a new ReshardCreateRequest. * @memberof vtctldata - * @classdesc Represents a PlannedReparentShardResponse. - * @implements IPlannedReparentShardResponse + * @classdesc Represents a ReshardCreateRequest. + * @implements IReshardCreateRequest * @constructor - * @param {vtctldata.IPlannedReparentShardResponse=} [properties] Properties to set + * @param {vtctldata.IReshardCreateRequest=} [properties] Properties to set */ - function PlannedReparentShardResponse(properties) { - this.events = []; + function ReshardCreateRequest(properties) { + this.source_shards = []; + this.target_shards = []; + this.cells = []; + this.tablet_types = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -170892,120 +178532,263 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * PlannedReparentShardResponse keyspace. + * ReshardCreateRequest workflow. + * @member {string} workflow + * @memberof vtctldata.ReshardCreateRequest + * @instance + */ + ReshardCreateRequest.prototype.workflow = ""; + + /** + * ReshardCreateRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.ReshardCreateRequest + * @instance + */ + ReshardCreateRequest.prototype.keyspace = ""; + + /** + * ReshardCreateRequest source_shards. + * @member {Array.} source_shards + * @memberof vtctldata.ReshardCreateRequest + * @instance + */ + ReshardCreateRequest.prototype.source_shards = $util.emptyArray; + + /** + * ReshardCreateRequest target_shards. + * @member {Array.} target_shards + * @memberof vtctldata.ReshardCreateRequest + * @instance + */ + ReshardCreateRequest.prototype.target_shards = $util.emptyArray; + + /** + * ReshardCreateRequest cells. + * @member {Array.} cells + * @memberof vtctldata.ReshardCreateRequest + * @instance + */ + ReshardCreateRequest.prototype.cells = $util.emptyArray; + + /** + * ReshardCreateRequest tablet_types. + * @member {Array.} tablet_types + * @memberof vtctldata.ReshardCreateRequest + * @instance + */ + ReshardCreateRequest.prototype.tablet_types = $util.emptyArray; + + /** + * ReshardCreateRequest tablet_selection_preference. + * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference + * @memberof vtctldata.ReshardCreateRequest + * @instance + */ + ReshardCreateRequest.prototype.tablet_selection_preference = 0; + + /** + * ReshardCreateRequest skip_schema_copy. + * @member {boolean} skip_schema_copy + * @memberof vtctldata.ReshardCreateRequest + * @instance + */ + ReshardCreateRequest.prototype.skip_schema_copy = false; + + /** + * ReshardCreateRequest on_ddl. + * @member {string} on_ddl + * @memberof vtctldata.ReshardCreateRequest + * @instance + */ + ReshardCreateRequest.prototype.on_ddl = ""; + + /** + * ReshardCreateRequest stop_after_copy. + * @member {boolean} stop_after_copy + * @memberof vtctldata.ReshardCreateRequest * @instance */ - PlannedReparentShardResponse.prototype.keyspace = ""; + ReshardCreateRequest.prototype.stop_after_copy = false; /** - * PlannedReparentShardResponse shard. - * @member {string} shard - * @memberof vtctldata.PlannedReparentShardResponse + * ReshardCreateRequest defer_secondary_keys. + * @member {boolean} defer_secondary_keys + * @memberof vtctldata.ReshardCreateRequest * @instance */ - PlannedReparentShardResponse.prototype.shard = ""; + ReshardCreateRequest.prototype.defer_secondary_keys = false; /** - * PlannedReparentShardResponse promoted_primary. - * @member {topodata.ITabletAlias|null|undefined} promoted_primary - * @memberof vtctldata.PlannedReparentShardResponse + * ReshardCreateRequest auto_start. + * @member {boolean} auto_start + * @memberof vtctldata.ReshardCreateRequest * @instance */ - PlannedReparentShardResponse.prototype.promoted_primary = null; + ReshardCreateRequest.prototype.auto_start = false; /** - * PlannedReparentShardResponse events. - * @member {Array.} events - * @memberof vtctldata.PlannedReparentShardResponse + * ReshardCreateRequest workflow_options. + * @member {vtctldata.IWorkflowOptions|null|undefined} workflow_options + * @memberof vtctldata.ReshardCreateRequest * @instance */ - PlannedReparentShardResponse.prototype.events = $util.emptyArray; + ReshardCreateRequest.prototype.workflow_options = null; /** - * Creates a new PlannedReparentShardResponse instance using the specified properties. + * Creates a new ReshardCreateRequest instance using the specified properties. * @function create - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.ReshardCreateRequest * @static - * @param {vtctldata.IPlannedReparentShardResponse=} [properties] Properties to set - * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse instance + * @param {vtctldata.IReshardCreateRequest=} [properties] Properties to set + * @returns {vtctldata.ReshardCreateRequest} ReshardCreateRequest instance */ - PlannedReparentShardResponse.create = function create(properties) { - return new PlannedReparentShardResponse(properties); + ReshardCreateRequest.create = function create(properties) { + return new ReshardCreateRequest(properties); }; /** - * Encodes the specified PlannedReparentShardResponse message. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. + * Encodes the specified ReshardCreateRequest message. Does not implicitly {@link vtctldata.ReshardCreateRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.ReshardCreateRequest * @static - * @param {vtctldata.IPlannedReparentShardResponse} message PlannedReparentShardResponse message or plain object to encode + * @param {vtctldata.IReshardCreateRequest} message ReshardCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PlannedReparentShardResponse.encode = function encode(message, writer) { + ReshardCreateRequest.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.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.promoted_primary != null && Object.hasOwnProperty.call(message, "promoted_primary")) - $root.topodata.TabletAlias.encode(message.promoted_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.events != null && message.events.length) - for (let i = 0; i < message.events.length; ++i) - $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); + if (message.source_shards != null && message.source_shards.length) + for (let i = 0; i < message.source_shards.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.source_shards[i]); + if (message.target_shards != null && message.target_shards.length) + for (let i = 0; i < message.target_shards.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.target_shards[i]); + if (message.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.cells[i]); + if (message.tablet_types != null && message.tablet_types.length) { + writer.uint32(/* id 6, wireType 2 =*/50).fork(); + for (let i = 0; i < message.tablet_types.length; ++i) + writer.int32(message.tablet_types[i]); + writer.ldelim(); + } + if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.tablet_selection_preference); + if (message.skip_schema_copy != null && Object.hasOwnProperty.call(message, "skip_schema_copy")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.skip_schema_copy); + if (message.on_ddl != null && Object.hasOwnProperty.call(message, "on_ddl")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.on_ddl); + if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.stop_after_copy); + if (message.defer_secondary_keys != null && Object.hasOwnProperty.call(message, "defer_secondary_keys")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.defer_secondary_keys); + if (message.auto_start != null && Object.hasOwnProperty.call(message, "auto_start")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.auto_start); + if (message.workflow_options != null && Object.hasOwnProperty.call(message, "workflow_options")) + $root.vtctldata.WorkflowOptions.encode(message.workflow_options, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; /** - * Encodes the specified PlannedReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. + * Encodes the specified ReshardCreateRequest message, length delimited. Does not implicitly {@link vtctldata.ReshardCreateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.ReshardCreateRequest * @static - * @param {vtctldata.IPlannedReparentShardResponse} message PlannedReparentShardResponse message or plain object to encode + * @param {vtctldata.IReshardCreateRequest} message ReshardCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PlannedReparentShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReshardCreateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PlannedReparentShardResponse message from the specified reader or buffer. + * Decodes a ReshardCreateRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.ReshardCreateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse + * @returns {vtctldata.ReshardCreateRequest} ReshardCreateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PlannedReparentShardResponse.decode = function decode(reader, length) { + ReshardCreateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PlannedReparentShardResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReshardCreateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + message.workflow = reader.string(); break; } case 2: { - message.shard = reader.string(); + message.keyspace = reader.string(); break; } case 3: { - message.promoted_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + if (!(message.source_shards && message.source_shards.length)) + message.source_shards = []; + message.source_shards.push(reader.string()); break; } case 4: { - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.logutil.Event.decode(reader, reader.uint32())); + if (!(message.target_shards && message.target_shards.length)) + message.target_shards = []; + message.target_shards.push(reader.string()); + break; + } + case 5: { + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); + break; + } + case 6: { + if (!(message.tablet_types && message.tablet_types.length)) + message.tablet_types = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.tablet_types.push(reader.int32()); + } else + message.tablet_types.push(reader.int32()); + break; + } + case 7: { + message.tablet_selection_preference = reader.int32(); + break; + } + case 8: { + message.skip_schema_copy = reader.bool(); + break; + } + case 9: { + message.on_ddl = reader.string(); + break; + } + case 10: { + message.stop_after_copy = reader.bool(); + break; + } + case 11: { + message.defer_secondary_keys = reader.bool(); + break; + } + case 12: { + message.auto_start = reader.bool(); + break; + } + case 13: { + message.workflow_options = $root.vtctldata.WorkflowOptions.decode(reader, reader.uint32()); break; } default: @@ -171017,173 +178800,368 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a PlannedReparentShardResponse message from the specified reader or buffer, length delimited. + * Decodes a ReshardCreateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.ReshardCreateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse + * @returns {vtctldata.ReshardCreateRequest} ReshardCreateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PlannedReparentShardResponse.decodeDelimited = function decodeDelimited(reader) { + ReshardCreateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PlannedReparentShardResponse message. + * Verifies a ReshardCreateRequest message. * @function verify - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.ReshardCreateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PlannedReparentShardResponse.verify = function verify(message) { + ReshardCreateRequest.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.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.promoted_primary != null && message.hasOwnProperty("promoted_primary")) { - let error = $root.topodata.TabletAlias.verify(message.promoted_primary); - if (error) - return "promoted_primary." + error; + if (message.source_shards != null && message.hasOwnProperty("source_shards")) { + if (!Array.isArray(message.source_shards)) + return "source_shards: array expected"; + for (let i = 0; i < message.source_shards.length; ++i) + if (!$util.isString(message.source_shards[i])) + return "source_shards: string[] expected"; } - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (let i = 0; i < message.events.length; ++i) { - let error = $root.logutil.Event.verify(message.events[i]); - if (error) - return "events." + error; + if (message.target_shards != null && message.hasOwnProperty("target_shards")) { + if (!Array.isArray(message.target_shards)) + return "target_shards: array expected"; + for (let i = 0; i < message.target_shards.length; ++i) + if (!$util.isString(message.target_shards[i])) + return "target_shards: string[] expected"; + } + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { + if (!Array.isArray(message.tablet_types)) + return "tablet_types: array expected"; + for (let i = 0; i < message.tablet_types.length; ++i) + switch (message.tablet_types[i]) { + default: + return "tablet_types: enum value[] expected"; + case 0: + case 1: + case 1: + case 2: + case 3: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + switch (message.tablet_selection_preference) { + default: + return "tablet_selection_preference: enum value expected"; + case 0: + case 1: + case 3: + break; } + if (message.skip_schema_copy != null && message.hasOwnProperty("skip_schema_copy")) + if (typeof message.skip_schema_copy !== "boolean") + return "skip_schema_copy: boolean expected"; + if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) + if (!$util.isString(message.on_ddl)) + return "on_ddl: 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.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) + if (typeof message.defer_secondary_keys !== "boolean") + return "defer_secondary_keys: boolean expected"; + if (message.auto_start != null && message.hasOwnProperty("auto_start")) + if (typeof message.auto_start !== "boolean") + return "auto_start: boolean expected"; + if (message.workflow_options != null && message.hasOwnProperty("workflow_options")) { + let error = $root.vtctldata.WorkflowOptions.verify(message.workflow_options); + if (error) + return "workflow_options." + error; } return null; }; /** - * Creates a PlannedReparentShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReshardCreateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.ReshardCreateRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse + * @returns {vtctldata.ReshardCreateRequest} ReshardCreateRequest */ - PlannedReparentShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.PlannedReparentShardResponse) + ReshardCreateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReshardCreateRequest) return object; - let message = new $root.vtctldata.PlannedReparentShardResponse(); + let message = new $root.vtctldata.ReshardCreateRequest(); + if (object.workflow != null) + message.workflow = String(object.workflow); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.promoted_primary != null) { - if (typeof object.promoted_primary !== "object") - throw TypeError(".vtctldata.PlannedReparentShardResponse.promoted_primary: object expected"); - message.promoted_primary = $root.topodata.TabletAlias.fromObject(object.promoted_primary); + if (object.source_shards) { + if (!Array.isArray(object.source_shards)) + throw TypeError(".vtctldata.ReshardCreateRequest.source_shards: array expected"); + message.source_shards = []; + for (let i = 0; i < object.source_shards.length; ++i) + message.source_shards[i] = String(object.source_shards[i]); } - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".vtctldata.PlannedReparentShardResponse.events: array expected"); - message.events = []; - for (let i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".vtctldata.PlannedReparentShardResponse.events: object expected"); - message.events[i] = $root.logutil.Event.fromObject(object.events[i]); + if (object.target_shards) { + if (!Array.isArray(object.target_shards)) + throw TypeError(".vtctldata.ReshardCreateRequest.target_shards: array expected"); + message.target_shards = []; + for (let i = 0; i < object.target_shards.length; ++i) + message.target_shards[i] = String(object.target_shards[i]); + } + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.ReshardCreateRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } + if (object.tablet_types) { + if (!Array.isArray(object.tablet_types)) + throw TypeError(".vtctldata.ReshardCreateRequest.tablet_types: array expected"); + message.tablet_types = []; + for (let i = 0; i < object.tablet_types.length; ++i) + switch (object.tablet_types[i]) { + default: + if (typeof object.tablet_types[i] === "number") { + message.tablet_types[i] = object.tablet_types[i]; + break; + } + case "UNKNOWN": + case 0: + message.tablet_types[i] = 0; + break; + case "PRIMARY": + case 1: + message.tablet_types[i] = 1; + break; + case "MASTER": + case 1: + message.tablet_types[i] = 1; + break; + case "REPLICA": + case 2: + message.tablet_types[i] = 2; + break; + case "RDONLY": + case 3: + message.tablet_types[i] = 3; + break; + case "BATCH": + case 3: + message.tablet_types[i] = 3; + break; + case "SPARE": + case 4: + message.tablet_types[i] = 4; + break; + case "EXPERIMENTAL": + case 5: + message.tablet_types[i] = 5; + break; + case "BACKUP": + case 6: + message.tablet_types[i] = 6; + break; + case "RESTORE": + case 7: + message.tablet_types[i] = 7; + break; + case "DRAINED": + case 8: + message.tablet_types[i] = 8; + break; + } + } + switch (object.tablet_selection_preference) { + default: + if (typeof object.tablet_selection_preference === "number") { + message.tablet_selection_preference = object.tablet_selection_preference; + break; } + break; + case "ANY": + case 0: + message.tablet_selection_preference = 0; + break; + case "INORDER": + case 1: + message.tablet_selection_preference = 1; + break; + case "UNKNOWN": + case 3: + message.tablet_selection_preference = 3; + break; + } + if (object.skip_schema_copy != null) + message.skip_schema_copy = Boolean(object.skip_schema_copy); + if (object.on_ddl != null) + message.on_ddl = String(object.on_ddl); + if (object.stop_after_copy != null) + message.stop_after_copy = Boolean(object.stop_after_copy); + if (object.defer_secondary_keys != null) + message.defer_secondary_keys = Boolean(object.defer_secondary_keys); + if (object.auto_start != null) + message.auto_start = Boolean(object.auto_start); + if (object.workflow_options != null) { + if (typeof object.workflow_options !== "object") + throw TypeError(".vtctldata.ReshardCreateRequest.workflow_options: object expected"); + message.workflow_options = $root.vtctldata.WorkflowOptions.fromObject(object.workflow_options); } return message; }; /** - * Creates a plain object from a PlannedReparentShardResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReshardCreateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.ReshardCreateRequest * @static - * @param {vtctldata.PlannedReparentShardResponse} message PlannedReparentShardResponse + * @param {vtctldata.ReshardCreateRequest} message ReshardCreateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PlannedReparentShardResponse.toObject = function toObject(message, options) { + ReshardCreateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.events = []; + if (options.arrays || options.defaults) { + object.source_shards = []; + object.target_shards = []; + object.cells = []; + object.tablet_types = []; + } if (options.defaults) { + object.workflow = ""; object.keyspace = ""; - object.shard = ""; - object.promoted_primary = null; + object.tablet_selection_preference = options.enums === String ? "ANY" : 0; + object.skip_schema_copy = false; + object.on_ddl = ""; + object.stop_after_copy = false; + object.defer_secondary_keys = false; + object.auto_start = false; + object.workflow_options = null; } + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.promoted_primary != null && message.hasOwnProperty("promoted_primary")) - object.promoted_primary = $root.topodata.TabletAlias.toObject(message.promoted_primary, options); - if (message.events && message.events.length) { - object.events = []; - for (let j = 0; j < message.events.length; ++j) - object.events[j] = $root.logutil.Event.toObject(message.events[j], options); + if (message.source_shards && message.source_shards.length) { + object.source_shards = []; + for (let j = 0; j < message.source_shards.length; ++j) + object.source_shards[j] = message.source_shards[j]; + } + if (message.target_shards && message.target_shards.length) { + object.target_shards = []; + for (let j = 0; j < message.target_shards.length; ++j) + object.target_shards[j] = message.target_shards[j]; + } + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + if (message.tablet_types && message.tablet_types.length) { + object.tablet_types = []; + for (let j = 0; j < message.tablet_types.length; ++j) + object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; + if (message.skip_schema_copy != null && message.hasOwnProperty("skip_schema_copy")) + object.skip_schema_copy = message.skip_schema_copy; + if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) + object.on_ddl = message.on_ddl; + if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) + object.stop_after_copy = message.stop_after_copy; + if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) + object.defer_secondary_keys = message.defer_secondary_keys; + if (message.auto_start != null && message.hasOwnProperty("auto_start")) + object.auto_start = message.auto_start; + if (message.workflow_options != null && message.hasOwnProperty("workflow_options")) + object.workflow_options = $root.vtctldata.WorkflowOptions.toObject(message.workflow_options, options); return object; }; /** - * Converts this PlannedReparentShardResponse to JSON. + * Converts this ReshardCreateRequest to JSON. * @function toJSON - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.ReshardCreateRequest * @instance * @returns {Object.} JSON object */ - PlannedReparentShardResponse.prototype.toJSON = function toJSON() { + ReshardCreateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PlannedReparentShardResponse + * Gets the default type url for ReshardCreateRequest * @function getTypeUrl - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.ReshardCreateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PlannedReparentShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReshardCreateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.PlannedReparentShardResponse"; + return typeUrlPrefix + "/vtctldata.ReshardCreateRequest"; }; - return PlannedReparentShardResponse; + return ReshardCreateRequest; })(); - vtctldata.RebuildKeyspaceGraphRequest = (function() { + vtctldata.RestoreFromBackupRequest = (function() { /** - * Properties of a RebuildKeyspaceGraphRequest. + * Properties of a RestoreFromBackupRequest. * @memberof vtctldata - * @interface IRebuildKeyspaceGraphRequest - * @property {string|null} [keyspace] RebuildKeyspaceGraphRequest keyspace - * @property {Array.|null} [cells] RebuildKeyspaceGraphRequest cells - * @property {boolean|null} [allow_partial] RebuildKeyspaceGraphRequest allow_partial + * @interface IRestoreFromBackupRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] RestoreFromBackupRequest tablet_alias + * @property {vttime.ITime|null} [backup_time] RestoreFromBackupRequest backup_time + * @property {string|null} [restore_to_pos] RestoreFromBackupRequest restore_to_pos + * @property {boolean|null} [dry_run] RestoreFromBackupRequest dry_run + * @property {vttime.ITime|null} [restore_to_timestamp] RestoreFromBackupRequest restore_to_timestamp + * @property {Array.|null} [allowed_backup_engines] RestoreFromBackupRequest allowed_backup_engines */ /** - * Constructs a new RebuildKeyspaceGraphRequest. + * Constructs a new RestoreFromBackupRequest. * @memberof vtctldata - * @classdesc Represents a RebuildKeyspaceGraphRequest. - * @implements IRebuildKeyspaceGraphRequest + * @classdesc Represents a RestoreFromBackupRequest. + * @implements IRestoreFromBackupRequest * @constructor - * @param {vtctldata.IRebuildKeyspaceGraphRequest=} [properties] Properties to set + * @param {vtctldata.IRestoreFromBackupRequest=} [properties] Properties to set */ - function RebuildKeyspaceGraphRequest(properties) { - this.cells = []; + function RestoreFromBackupRequest(properties) { + this.allowed_backup_engines = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -171191,106 +179169,148 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * RebuildKeyspaceGraphRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.RebuildKeyspaceGraphRequest + * RestoreFromBackupRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.RestoreFromBackupRequest * @instance */ - RebuildKeyspaceGraphRequest.prototype.keyspace = ""; + RestoreFromBackupRequest.prototype.tablet_alias = null; /** - * RebuildKeyspaceGraphRequest cells. - * @member {Array.} cells - * @memberof vtctldata.RebuildKeyspaceGraphRequest + * RestoreFromBackupRequest backup_time. + * @member {vttime.ITime|null|undefined} backup_time + * @memberof vtctldata.RestoreFromBackupRequest * @instance */ - RebuildKeyspaceGraphRequest.prototype.cells = $util.emptyArray; + RestoreFromBackupRequest.prototype.backup_time = null; /** - * RebuildKeyspaceGraphRequest allow_partial. - * @member {boolean} allow_partial - * @memberof vtctldata.RebuildKeyspaceGraphRequest + * RestoreFromBackupRequest restore_to_pos. + * @member {string} restore_to_pos + * @memberof vtctldata.RestoreFromBackupRequest * @instance */ - RebuildKeyspaceGraphRequest.prototype.allow_partial = false; + RestoreFromBackupRequest.prototype.restore_to_pos = ""; /** - * Creates a new RebuildKeyspaceGraphRequest instance using the specified properties. + * RestoreFromBackupRequest dry_run. + * @member {boolean} dry_run + * @memberof vtctldata.RestoreFromBackupRequest + * @instance + */ + RestoreFromBackupRequest.prototype.dry_run = false; + + /** + * RestoreFromBackupRequest restore_to_timestamp. + * @member {vttime.ITime|null|undefined} restore_to_timestamp + * @memberof vtctldata.RestoreFromBackupRequest + * @instance + */ + RestoreFromBackupRequest.prototype.restore_to_timestamp = null; + + /** + * RestoreFromBackupRequest allowed_backup_engines. + * @member {Array.} allowed_backup_engines + * @memberof vtctldata.RestoreFromBackupRequest + * @instance + */ + RestoreFromBackupRequest.prototype.allowed_backup_engines = $util.emptyArray; + + /** + * Creates a new RestoreFromBackupRequest instance using the specified properties. * @function create - * @memberof vtctldata.RebuildKeyspaceGraphRequest + * @memberof vtctldata.RestoreFromBackupRequest * @static - * @param {vtctldata.IRebuildKeyspaceGraphRequest=} [properties] Properties to set - * @returns {vtctldata.RebuildKeyspaceGraphRequest} RebuildKeyspaceGraphRequest instance + * @param {vtctldata.IRestoreFromBackupRequest=} [properties] Properties to set + * @returns {vtctldata.RestoreFromBackupRequest} RestoreFromBackupRequest instance */ - RebuildKeyspaceGraphRequest.create = function create(properties) { - return new RebuildKeyspaceGraphRequest(properties); + RestoreFromBackupRequest.create = function create(properties) { + return new RestoreFromBackupRequest(properties); }; /** - * Encodes the specified RebuildKeyspaceGraphRequest message. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphRequest.verify|verify} messages. + * Encodes the specified RestoreFromBackupRequest message. Does not implicitly {@link vtctldata.RestoreFromBackupRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RebuildKeyspaceGraphRequest + * @memberof vtctldata.RestoreFromBackupRequest * @static - * @param {vtctldata.IRebuildKeyspaceGraphRequest} message RebuildKeyspaceGraphRequest message or plain object to encode + * @param {vtctldata.IRestoreFromBackupRequest} message RestoreFromBackupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RebuildKeyspaceGraphRequest.encode = function encode(message, writer) { + RestoreFromBackupRequest.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.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); - if (message.allow_partial != null && Object.hasOwnProperty.call(message, "allow_partial")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allow_partial); + 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.backup_time != null && Object.hasOwnProperty.call(message, "backup_time")) + $root.vttime.Time.encode(message.backup_time, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.restore_to_pos != null && Object.hasOwnProperty.call(message, "restore_to_pos")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.restore_to_pos); + if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.dry_run); + if (message.restore_to_timestamp != null && Object.hasOwnProperty.call(message, "restore_to_timestamp")) + $root.vttime.Time.encode(message.restore_to_timestamp, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.allowed_backup_engines != null && message.allowed_backup_engines.length) + for (let i = 0; i < message.allowed_backup_engines.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.allowed_backup_engines[i]); return writer; }; /** - * Encodes the specified RebuildKeyspaceGraphRequest message, length delimited. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphRequest.verify|verify} messages. + * Encodes the specified RestoreFromBackupRequest message, length delimited. Does not implicitly {@link vtctldata.RestoreFromBackupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RebuildKeyspaceGraphRequest + * @memberof vtctldata.RestoreFromBackupRequest * @static - * @param {vtctldata.IRebuildKeyspaceGraphRequest} message RebuildKeyspaceGraphRequest message or plain object to encode + * @param {vtctldata.IRestoreFromBackupRequest} message RestoreFromBackupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RebuildKeyspaceGraphRequest.encodeDelimited = function encodeDelimited(message, writer) { + RestoreFromBackupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer. + * Decodes a RestoreFromBackupRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RebuildKeyspaceGraphRequest + * @memberof vtctldata.RestoreFromBackupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RebuildKeyspaceGraphRequest} RebuildKeyspaceGraphRequest + * @returns {vtctldata.RestoreFromBackupRequest} RestoreFromBackupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RebuildKeyspaceGraphRequest.decode = function decode(reader, length) { + RestoreFromBackupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RebuildKeyspaceGraphRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RestoreFromBackupRequest(); while (reader.pos < end) { let 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: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + message.backup_time = $root.vttime.Time.decode(reader, reader.uint32()); break; } case 3: { - message.allow_partial = reader.bool(); + message.restore_to_pos = reader.string(); + break; + } + case 4: { + message.dry_run = reader.bool(); + break; + } + case 5: { + message.restore_to_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 6: { + if (!(message.allowed_backup_engines && message.allowed_backup_engines.length)) + message.allowed_backup_engines = []; + message.allowed_backup_engines.push(reader.string()); break; } default: @@ -171302,151 +179322,194 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer, length delimited. + * Decodes a RestoreFromBackupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RebuildKeyspaceGraphRequest + * @memberof vtctldata.RestoreFromBackupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RebuildKeyspaceGraphRequest} RebuildKeyspaceGraphRequest + * @returns {vtctldata.RestoreFromBackupRequest} RestoreFromBackupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RebuildKeyspaceGraphRequest.decodeDelimited = function decodeDelimited(reader) { + RestoreFromBackupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RebuildKeyspaceGraphRequest message. + * Verifies a RestoreFromBackupRequest message. * @function verify - * @memberof vtctldata.RebuildKeyspaceGraphRequest + * @memberof vtctldata.RestoreFromBackupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RebuildKeyspaceGraphRequest.verify = function verify(message) { + RestoreFromBackupRequest.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.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.backup_time != null && message.hasOwnProperty("backup_time")) { + let error = $root.vttime.Time.verify(message.backup_time); + if (error) + return "backup_time." + error; + } + if (message.restore_to_pos != null && message.hasOwnProperty("restore_to_pos")) + if (!$util.isString(message.restore_to_pos)) + return "restore_to_pos: string expected"; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + if (typeof message.dry_run !== "boolean") + return "dry_run: boolean expected"; + if (message.restore_to_timestamp != null && message.hasOwnProperty("restore_to_timestamp")) { + let error = $root.vttime.Time.verify(message.restore_to_timestamp); + if (error) + return "restore_to_timestamp." + error; + } + if (message.allowed_backup_engines != null && message.hasOwnProperty("allowed_backup_engines")) { + if (!Array.isArray(message.allowed_backup_engines)) + return "allowed_backup_engines: array expected"; + for (let i = 0; i < message.allowed_backup_engines.length; ++i) + if (!$util.isString(message.allowed_backup_engines[i])) + return "allowed_backup_engines: string[] expected"; } - if (message.allow_partial != null && message.hasOwnProperty("allow_partial")) - if (typeof message.allow_partial !== "boolean") - return "allow_partial: boolean expected"; return null; }; /** - * Creates a RebuildKeyspaceGraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RestoreFromBackupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RebuildKeyspaceGraphRequest + * @memberof vtctldata.RestoreFromBackupRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RebuildKeyspaceGraphRequest} RebuildKeyspaceGraphRequest + * @returns {vtctldata.RestoreFromBackupRequest} RestoreFromBackupRequest */ - RebuildKeyspaceGraphRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RebuildKeyspaceGraphRequest) + RestoreFromBackupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RestoreFromBackupRequest) return object; - let message = new $root.vtctldata.RebuildKeyspaceGraphRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.RebuildKeyspaceGraphRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); + let message = new $root.vtctldata.RestoreFromBackupRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.RestoreFromBackupRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.backup_time != null) { + if (typeof object.backup_time !== "object") + throw TypeError(".vtctldata.RestoreFromBackupRequest.backup_time: object expected"); + message.backup_time = $root.vttime.Time.fromObject(object.backup_time); + } + if (object.restore_to_pos != null) + message.restore_to_pos = String(object.restore_to_pos); + if (object.dry_run != null) + message.dry_run = Boolean(object.dry_run); + if (object.restore_to_timestamp != null) { + if (typeof object.restore_to_timestamp !== "object") + throw TypeError(".vtctldata.RestoreFromBackupRequest.restore_to_timestamp: object expected"); + message.restore_to_timestamp = $root.vttime.Time.fromObject(object.restore_to_timestamp); + } + if (object.allowed_backup_engines) { + if (!Array.isArray(object.allowed_backup_engines)) + throw TypeError(".vtctldata.RestoreFromBackupRequest.allowed_backup_engines: array expected"); + message.allowed_backup_engines = []; + for (let i = 0; i < object.allowed_backup_engines.length; ++i) + message.allowed_backup_engines[i] = String(object.allowed_backup_engines[i]); } - if (object.allow_partial != null) - message.allow_partial = Boolean(object.allow_partial); return message; }; /** - * Creates a plain object from a RebuildKeyspaceGraphRequest message. Also converts values to other types if specified. + * Creates a plain object from a RestoreFromBackupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RebuildKeyspaceGraphRequest + * @memberof vtctldata.RestoreFromBackupRequest * @static - * @param {vtctldata.RebuildKeyspaceGraphRequest} message RebuildKeyspaceGraphRequest + * @param {vtctldata.RestoreFromBackupRequest} message RestoreFromBackupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RebuildKeyspaceGraphRequest.toObject = function toObject(message, options) { + RestoreFromBackupRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.cells = []; + object.allowed_backup_engines = []; if (options.defaults) { - object.keyspace = ""; - object.allow_partial = false; + object.tablet_alias = null; + object.backup_time = null; + object.restore_to_pos = ""; + object.dry_run = false; + object.restore_to_timestamp = null; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.backup_time != null && message.hasOwnProperty("backup_time")) + object.backup_time = $root.vttime.Time.toObject(message.backup_time, options); + if (message.restore_to_pos != null && message.hasOwnProperty("restore_to_pos")) + object.restore_to_pos = message.restore_to_pos; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + object.dry_run = message.dry_run; + if (message.restore_to_timestamp != null && message.hasOwnProperty("restore_to_timestamp")) + object.restore_to_timestamp = $root.vttime.Time.toObject(message.restore_to_timestamp, options); + if (message.allowed_backup_engines && message.allowed_backup_engines.length) { + object.allowed_backup_engines = []; + for (let j = 0; j < message.allowed_backup_engines.length; ++j) + object.allowed_backup_engines[j] = message.allowed_backup_engines[j]; } - if (message.allow_partial != null && message.hasOwnProperty("allow_partial")) - object.allow_partial = message.allow_partial; return object; }; /** - * Converts this RebuildKeyspaceGraphRequest to JSON. + * Converts this RestoreFromBackupRequest to JSON. * @function toJSON - * @memberof vtctldata.RebuildKeyspaceGraphRequest + * @memberof vtctldata.RestoreFromBackupRequest * @instance * @returns {Object.} JSON object */ - RebuildKeyspaceGraphRequest.prototype.toJSON = function toJSON() { + RestoreFromBackupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RebuildKeyspaceGraphRequest + * Gets the default type url for RestoreFromBackupRequest * @function getTypeUrl - * @memberof vtctldata.RebuildKeyspaceGraphRequest + * @memberof vtctldata.RestoreFromBackupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RebuildKeyspaceGraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RestoreFromBackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RebuildKeyspaceGraphRequest"; + return typeUrlPrefix + "/vtctldata.RestoreFromBackupRequest"; }; - return RebuildKeyspaceGraphRequest; + return RestoreFromBackupRequest; })(); - vtctldata.RebuildKeyspaceGraphResponse = (function() { + vtctldata.RestoreFromBackupResponse = (function() { /** - * Properties of a RebuildKeyspaceGraphResponse. + * Properties of a RestoreFromBackupResponse. * @memberof vtctldata - * @interface IRebuildKeyspaceGraphResponse + * @interface IRestoreFromBackupResponse + * @property {topodata.ITabletAlias|null} [tablet_alias] RestoreFromBackupResponse tablet_alias + * @property {string|null} [keyspace] RestoreFromBackupResponse keyspace + * @property {string|null} [shard] RestoreFromBackupResponse shard + * @property {logutil.IEvent|null} [event] RestoreFromBackupResponse event */ /** - * Constructs a new RebuildKeyspaceGraphResponse. + * Constructs a new RestoreFromBackupResponse. * @memberof vtctldata - * @classdesc Represents a RebuildKeyspaceGraphResponse. - * @implements IRebuildKeyspaceGraphResponse + * @classdesc Represents a RestoreFromBackupResponse. + * @implements IRestoreFromBackupResponse * @constructor - * @param {vtctldata.IRebuildKeyspaceGraphResponse=} [properties] Properties to set + * @param {vtctldata.IRestoreFromBackupResponse=} [properties] Properties to set */ - function RebuildKeyspaceGraphResponse(properties) { + function RestoreFromBackupResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -171454,63 +179517,119 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new RebuildKeyspaceGraphResponse instance using the specified properties. + * RestoreFromBackupResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.RestoreFromBackupResponse + * @instance + */ + RestoreFromBackupResponse.prototype.tablet_alias = null; + + /** + * RestoreFromBackupResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.RestoreFromBackupResponse + * @instance + */ + RestoreFromBackupResponse.prototype.keyspace = ""; + + /** + * RestoreFromBackupResponse shard. + * @member {string} shard + * @memberof vtctldata.RestoreFromBackupResponse + * @instance + */ + RestoreFromBackupResponse.prototype.shard = ""; + + /** + * RestoreFromBackupResponse event. + * @member {logutil.IEvent|null|undefined} event + * @memberof vtctldata.RestoreFromBackupResponse + * @instance + */ + RestoreFromBackupResponse.prototype.event = null; + + /** + * Creates a new RestoreFromBackupResponse instance using the specified properties. * @function create - * @memberof vtctldata.RebuildKeyspaceGraphResponse + * @memberof vtctldata.RestoreFromBackupResponse * @static - * @param {vtctldata.IRebuildKeyspaceGraphResponse=} [properties] Properties to set - * @returns {vtctldata.RebuildKeyspaceGraphResponse} RebuildKeyspaceGraphResponse instance + * @param {vtctldata.IRestoreFromBackupResponse=} [properties] Properties to set + * @returns {vtctldata.RestoreFromBackupResponse} RestoreFromBackupResponse instance */ - RebuildKeyspaceGraphResponse.create = function create(properties) { - return new RebuildKeyspaceGraphResponse(properties); + RestoreFromBackupResponse.create = function create(properties) { + return new RestoreFromBackupResponse(properties); }; /** - * Encodes the specified RebuildKeyspaceGraphResponse message. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphResponse.verify|verify} messages. + * Encodes the specified RestoreFromBackupResponse message. Does not implicitly {@link vtctldata.RestoreFromBackupResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.RebuildKeyspaceGraphResponse + * @memberof vtctldata.RestoreFromBackupResponse * @static - * @param {vtctldata.IRebuildKeyspaceGraphResponse} message RebuildKeyspaceGraphResponse message or plain object to encode + * @param {vtctldata.IRestoreFromBackupResponse} message RestoreFromBackupResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RebuildKeyspaceGraphResponse.encode = function encode(message, writer) { + RestoreFromBackupResponse.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(); return writer; }; /** - * Encodes the specified RebuildKeyspaceGraphResponse message, length delimited. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphResponse.verify|verify} messages. + * Encodes the specified RestoreFromBackupResponse message, length delimited. Does not implicitly {@link vtctldata.RestoreFromBackupResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RebuildKeyspaceGraphResponse + * @memberof vtctldata.RestoreFromBackupResponse * @static - * @param {vtctldata.IRebuildKeyspaceGraphResponse} message RebuildKeyspaceGraphResponse message or plain object to encode + * @param {vtctldata.IRestoreFromBackupResponse} message RestoreFromBackupResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RebuildKeyspaceGraphResponse.encodeDelimited = function encodeDelimited(message, writer) { + RestoreFromBackupResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer. + * Decodes a RestoreFromBackupResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RebuildKeyspaceGraphResponse + * @memberof vtctldata.RestoreFromBackupResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RebuildKeyspaceGraphResponse} RebuildKeyspaceGraphResponse + * @returns {vtctldata.RestoreFromBackupResponse} RestoreFromBackupResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RebuildKeyspaceGraphResponse.decode = function decode(reader, length) { + RestoreFromBackupResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RebuildKeyspaceGraphResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RestoreFromBackupResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 2: { + message.keyspace = reader.string(); + break; + } + case 3: { + message.shard = reader.string(); + break; + } + case 4: { + message.event = $root.logutil.Event.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -171520,110 +179639,159 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer, length delimited. + * Decodes a RestoreFromBackupResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RebuildKeyspaceGraphResponse + * @memberof vtctldata.RestoreFromBackupResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RebuildKeyspaceGraphResponse} RebuildKeyspaceGraphResponse + * @returns {vtctldata.RestoreFromBackupResponse} RestoreFromBackupResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RebuildKeyspaceGraphResponse.decodeDelimited = function decodeDelimited(reader) { + RestoreFromBackupResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RebuildKeyspaceGraphResponse message. + * Verifies a RestoreFromBackupResponse message. * @function verify - * @memberof vtctldata.RebuildKeyspaceGraphResponse + * @memberof vtctldata.RestoreFromBackupResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RebuildKeyspaceGraphResponse.verify = function verify(message) { + RestoreFromBackupResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + 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")) { + let error = $root.logutil.Event.verify(message.event); + if (error) + return "event." + error; + } return null; }; /** - * Creates a RebuildKeyspaceGraphResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RestoreFromBackupResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RebuildKeyspaceGraphResponse + * @memberof vtctldata.RestoreFromBackupResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.RebuildKeyspaceGraphResponse} RebuildKeyspaceGraphResponse + * @returns {vtctldata.RestoreFromBackupResponse} RestoreFromBackupResponse */ - RebuildKeyspaceGraphResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RebuildKeyspaceGraphResponse) + RestoreFromBackupResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RestoreFromBackupResponse) return object; - return new $root.vtctldata.RebuildKeyspaceGraphResponse(); + let message = new $root.vtctldata.RestoreFromBackupResponse(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.RestoreFromBackupResponse.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.RestoreFromBackupResponse.event: object expected"); + message.event = $root.logutil.Event.fromObject(object.event); + } + return message; }; /** - * Creates a plain object from a RebuildKeyspaceGraphResponse message. Also converts values to other types if specified. + * Creates a plain object from a RestoreFromBackupResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RebuildKeyspaceGraphResponse + * @memberof vtctldata.RestoreFromBackupResponse * @static - * @param {vtctldata.RebuildKeyspaceGraphResponse} message RebuildKeyspaceGraphResponse + * @param {vtctldata.RestoreFromBackupResponse} message RestoreFromBackupResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RebuildKeyspaceGraphResponse.toObject = function toObject() { - return {}; + RestoreFromBackupResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.tablet_alias = null; + object.keyspace = ""; + object.shard = ""; + object.event = null; + } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.event != null && message.hasOwnProperty("event")) + object.event = $root.logutil.Event.toObject(message.event, options); + return object; }; /** - * Converts this RebuildKeyspaceGraphResponse to JSON. + * Converts this RestoreFromBackupResponse to JSON. * @function toJSON - * @memberof vtctldata.RebuildKeyspaceGraphResponse + * @memberof vtctldata.RestoreFromBackupResponse * @instance * @returns {Object.} JSON object */ - RebuildKeyspaceGraphResponse.prototype.toJSON = function toJSON() { + RestoreFromBackupResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RebuildKeyspaceGraphResponse + * Gets the default type url for RestoreFromBackupResponse * @function getTypeUrl - * @memberof vtctldata.RebuildKeyspaceGraphResponse + * @memberof vtctldata.RestoreFromBackupResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RebuildKeyspaceGraphResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RestoreFromBackupResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RebuildKeyspaceGraphResponse"; + return typeUrlPrefix + "/vtctldata.RestoreFromBackupResponse"; }; - return RebuildKeyspaceGraphResponse; + return RestoreFromBackupResponse; })(); - vtctldata.RebuildVSchemaGraphRequest = (function() { + vtctldata.RetrySchemaMigrationRequest = (function() { /** - * Properties of a RebuildVSchemaGraphRequest. + * Properties of a RetrySchemaMigrationRequest. * @memberof vtctldata - * @interface IRebuildVSchemaGraphRequest - * @property {Array.|null} [cells] RebuildVSchemaGraphRequest cells + * @interface IRetrySchemaMigrationRequest + * @property {string|null} [keyspace] RetrySchemaMigrationRequest keyspace + * @property {string|null} [uuid] RetrySchemaMigrationRequest uuid + * @property {vtrpc.ICallerID|null} [caller_id] RetrySchemaMigrationRequest caller_id */ /** - * Constructs a new RebuildVSchemaGraphRequest. + * Constructs a new RetrySchemaMigrationRequest. * @memberof vtctldata - * @classdesc Represents a RebuildVSchemaGraphRequest. - * @implements IRebuildVSchemaGraphRequest + * @classdesc Represents a RetrySchemaMigrationRequest. + * @implements IRetrySchemaMigrationRequest * @constructor - * @param {vtctldata.IRebuildVSchemaGraphRequest=} [properties] Properties to set + * @param {vtctldata.IRetrySchemaMigrationRequest=} [properties] Properties to set */ - function RebuildVSchemaGraphRequest(properties) { - this.cells = []; + function RetrySchemaMigrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -171631,78 +179799,103 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * RebuildVSchemaGraphRequest cells. - * @member {Array.} cells - * @memberof vtctldata.RebuildVSchemaGraphRequest + * RetrySchemaMigrationRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.RetrySchemaMigrationRequest * @instance */ - RebuildVSchemaGraphRequest.prototype.cells = $util.emptyArray; + RetrySchemaMigrationRequest.prototype.keyspace = ""; /** - * Creates a new RebuildVSchemaGraphRequest instance using the specified properties. + * RetrySchemaMigrationRequest uuid. + * @member {string} uuid + * @memberof vtctldata.RetrySchemaMigrationRequest + * @instance + */ + RetrySchemaMigrationRequest.prototype.uuid = ""; + + /** + * RetrySchemaMigrationRequest caller_id. + * @member {vtrpc.ICallerID|null|undefined} caller_id + * @memberof vtctldata.RetrySchemaMigrationRequest + * @instance + */ + RetrySchemaMigrationRequest.prototype.caller_id = null; + + /** + * Creates a new RetrySchemaMigrationRequest instance using the specified properties. * @function create - * @memberof vtctldata.RebuildVSchemaGraphRequest + * @memberof vtctldata.RetrySchemaMigrationRequest * @static - * @param {vtctldata.IRebuildVSchemaGraphRequest=} [properties] Properties to set - * @returns {vtctldata.RebuildVSchemaGraphRequest} RebuildVSchemaGraphRequest instance + * @param {vtctldata.IRetrySchemaMigrationRequest=} [properties] Properties to set + * @returns {vtctldata.RetrySchemaMigrationRequest} RetrySchemaMigrationRequest instance */ - RebuildVSchemaGraphRequest.create = function create(properties) { - return new RebuildVSchemaGraphRequest(properties); + RetrySchemaMigrationRequest.create = function create(properties) { + return new RetrySchemaMigrationRequest(properties); }; /** - * Encodes the specified RebuildVSchemaGraphRequest message. Does not implicitly {@link vtctldata.RebuildVSchemaGraphRequest.verify|verify} messages. + * Encodes the specified RetrySchemaMigrationRequest message. Does not implicitly {@link vtctldata.RetrySchemaMigrationRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RebuildVSchemaGraphRequest + * @memberof vtctldata.RetrySchemaMigrationRequest * @static - * @param {vtctldata.IRebuildVSchemaGraphRequest} message RebuildVSchemaGraphRequest message or plain object to encode + * @param {vtctldata.IRetrySchemaMigrationRequest} message RetrySchemaMigrationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RebuildVSchemaGraphRequest.encode = function encode(message, writer) { + RetrySchemaMigrationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cells[i]); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); + if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) + $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified RebuildVSchemaGraphRequest message, length delimited. Does not implicitly {@link vtctldata.RebuildVSchemaGraphRequest.verify|verify} messages. + * Encodes the specified RetrySchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.RetrySchemaMigrationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RebuildVSchemaGraphRequest + * @memberof vtctldata.RetrySchemaMigrationRequest * @static - * @param {vtctldata.IRebuildVSchemaGraphRequest} message RebuildVSchemaGraphRequest message or plain object to encode + * @param {vtctldata.IRetrySchemaMigrationRequest} message RetrySchemaMigrationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RebuildVSchemaGraphRequest.encodeDelimited = function encodeDelimited(message, writer) { + RetrySchemaMigrationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer. + * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RebuildVSchemaGraphRequest + * @memberof vtctldata.RetrySchemaMigrationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RebuildVSchemaGraphRequest} RebuildVSchemaGraphRequest + * @returns {vtctldata.RetrySchemaMigrationRequest} RetrySchemaMigrationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RebuildVSchemaGraphRequest.decode = function decode(reader, length) { + RetrySchemaMigrationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RebuildVSchemaGraphRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RetrySchemaMigrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + message.keyspace = reader.string(); + break; + } + case 2: { + message.uuid = reader.string(); + break; + } + case 3: { + message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; } default: @@ -171714,133 +179907,145 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer, length delimited. + * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RebuildVSchemaGraphRequest + * @memberof vtctldata.RetrySchemaMigrationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RebuildVSchemaGraphRequest} RebuildVSchemaGraphRequest + * @returns {vtctldata.RetrySchemaMigrationRequest} RetrySchemaMigrationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RebuildVSchemaGraphRequest.decodeDelimited = function decodeDelimited(reader) { + RetrySchemaMigrationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RebuildVSchemaGraphRequest message. + * Verifies a RetrySchemaMigrationRequest message. * @function verify - * @memberof vtctldata.RebuildVSchemaGraphRequest + * @memberof vtctldata.RetrySchemaMigrationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RebuildVSchemaGraphRequest.verify = function verify(message) { + RetrySchemaMigrationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.uuid != null && message.hasOwnProperty("uuid")) + if (!$util.isString(message.uuid)) + return "uuid: string expected"; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) { + let error = $root.vtrpc.CallerID.verify(message.caller_id); + if (error) + return "caller_id." + error; } return null; }; /** - * Creates a RebuildVSchemaGraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RetrySchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RebuildVSchemaGraphRequest + * @memberof vtctldata.RetrySchemaMigrationRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RebuildVSchemaGraphRequest} RebuildVSchemaGraphRequest + * @returns {vtctldata.RetrySchemaMigrationRequest} RetrySchemaMigrationRequest */ - RebuildVSchemaGraphRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RebuildVSchemaGraphRequest) + RetrySchemaMigrationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RetrySchemaMigrationRequest) return object; - let message = new $root.vtctldata.RebuildVSchemaGraphRequest(); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.RebuildVSchemaGraphRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); + let message = new $root.vtctldata.RetrySchemaMigrationRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.uuid != null) + message.uuid = String(object.uuid); + if (object.caller_id != null) { + if (typeof object.caller_id !== "object") + throw TypeError(".vtctldata.RetrySchemaMigrationRequest.caller_id: object expected"); + message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); } return message; }; /** - * Creates a plain object from a RebuildVSchemaGraphRequest message. Also converts values to other types if specified. + * Creates a plain object from a RetrySchemaMigrationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RebuildVSchemaGraphRequest + * @memberof vtctldata.RetrySchemaMigrationRequest * @static - * @param {vtctldata.RebuildVSchemaGraphRequest} message RebuildVSchemaGraphRequest + * @param {vtctldata.RetrySchemaMigrationRequest} message RetrySchemaMigrationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RebuildVSchemaGraphRequest.toObject = function toObject(message, options) { + RetrySchemaMigrationRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.cells = []; - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; + if (options.defaults) { + object.keyspace = ""; + object.uuid = ""; + object.caller_id = null; } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.uuid != null && message.hasOwnProperty("uuid")) + object.uuid = message.uuid; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) + object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); return object; }; /** - * Converts this RebuildVSchemaGraphRequest to JSON. + * Converts this RetrySchemaMigrationRequest to JSON. * @function toJSON - * @memberof vtctldata.RebuildVSchemaGraphRequest + * @memberof vtctldata.RetrySchemaMigrationRequest * @instance * @returns {Object.} JSON object */ - RebuildVSchemaGraphRequest.prototype.toJSON = function toJSON() { + RetrySchemaMigrationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RebuildVSchemaGraphRequest + * Gets the default type url for RetrySchemaMigrationRequest * @function getTypeUrl - * @memberof vtctldata.RebuildVSchemaGraphRequest + * @memberof vtctldata.RetrySchemaMigrationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RebuildVSchemaGraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RetrySchemaMigrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RebuildVSchemaGraphRequest"; + return typeUrlPrefix + "/vtctldata.RetrySchemaMigrationRequest"; }; - return RebuildVSchemaGraphRequest; + return RetrySchemaMigrationRequest; })(); - vtctldata.RebuildVSchemaGraphResponse = (function() { + vtctldata.RetrySchemaMigrationResponse = (function() { /** - * Properties of a RebuildVSchemaGraphResponse. + * Properties of a RetrySchemaMigrationResponse. * @memberof vtctldata - * @interface IRebuildVSchemaGraphResponse + * @interface IRetrySchemaMigrationResponse + * @property {Object.|null} [rows_affected_by_shard] RetrySchemaMigrationResponse rows_affected_by_shard */ /** - * Constructs a new RebuildVSchemaGraphResponse. + * Constructs a new RetrySchemaMigrationResponse. * @memberof vtctldata - * @classdesc Represents a RebuildVSchemaGraphResponse. - * @implements IRebuildVSchemaGraphResponse + * @classdesc Represents a RetrySchemaMigrationResponse. + * @implements IRetrySchemaMigrationResponse * @constructor - * @param {vtctldata.IRebuildVSchemaGraphResponse=} [properties] Properties to set + * @param {vtctldata.IRetrySchemaMigrationResponse=} [properties] Properties to set */ - function RebuildVSchemaGraphResponse(properties) { + function RetrySchemaMigrationResponse(properties) { + this.rows_affected_by_shard = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -171848,63 +180053,97 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new RebuildVSchemaGraphResponse instance using the specified properties. + * RetrySchemaMigrationResponse rows_affected_by_shard. + * @member {Object.} rows_affected_by_shard + * @memberof vtctldata.RetrySchemaMigrationResponse + * @instance + */ + RetrySchemaMigrationResponse.prototype.rows_affected_by_shard = $util.emptyObject; + + /** + * Creates a new RetrySchemaMigrationResponse instance using the specified properties. * @function create - * @memberof vtctldata.RebuildVSchemaGraphResponse + * @memberof vtctldata.RetrySchemaMigrationResponse * @static - * @param {vtctldata.IRebuildVSchemaGraphResponse=} [properties] Properties to set - * @returns {vtctldata.RebuildVSchemaGraphResponse} RebuildVSchemaGraphResponse instance + * @param {vtctldata.IRetrySchemaMigrationResponse=} [properties] Properties to set + * @returns {vtctldata.RetrySchemaMigrationResponse} RetrySchemaMigrationResponse instance */ - RebuildVSchemaGraphResponse.create = function create(properties) { - return new RebuildVSchemaGraphResponse(properties); + RetrySchemaMigrationResponse.create = function create(properties) { + return new RetrySchemaMigrationResponse(properties); }; /** - * Encodes the specified RebuildVSchemaGraphResponse message. Does not implicitly {@link vtctldata.RebuildVSchemaGraphResponse.verify|verify} messages. + * Encodes the specified RetrySchemaMigrationResponse message. Does not implicitly {@link vtctldata.RetrySchemaMigrationResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.RebuildVSchemaGraphResponse + * @memberof vtctldata.RetrySchemaMigrationResponse * @static - * @param {vtctldata.IRebuildVSchemaGraphResponse} message RebuildVSchemaGraphResponse message or plain object to encode + * @param {vtctldata.IRetrySchemaMigrationResponse} message RetrySchemaMigrationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RebuildVSchemaGraphResponse.encode = function encode(message, writer) { + RetrySchemaMigrationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) + for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified RebuildVSchemaGraphResponse message, length delimited. Does not implicitly {@link vtctldata.RebuildVSchemaGraphResponse.verify|verify} messages. + * Encodes the specified RetrySchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.RetrySchemaMigrationResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RebuildVSchemaGraphResponse + * @memberof vtctldata.RetrySchemaMigrationResponse * @static - * @param {vtctldata.IRebuildVSchemaGraphResponse} message RebuildVSchemaGraphResponse message or plain object to encode + * @param {vtctldata.IRetrySchemaMigrationResponse} message RetrySchemaMigrationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RebuildVSchemaGraphResponse.encodeDelimited = function encodeDelimited(message, writer) { + RetrySchemaMigrationResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer. + * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RebuildVSchemaGraphResponse + * @memberof vtctldata.RetrySchemaMigrationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RebuildVSchemaGraphResponse} RebuildVSchemaGraphResponse + * @returns {vtctldata.RetrySchemaMigrationResponse} RetrySchemaMigrationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RebuildVSchemaGraphResponse.decode = function decode(reader, length) { + RetrySchemaMigrationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RebuildVSchemaGraphResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RetrySchemaMigrationResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (message.rows_affected_by_shard === $util.emptyObject) + message.rows_affected_by_shard = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.uint64(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.rows_affected_by_shard[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -171914,109 +180153,146 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer, length delimited. + * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RebuildVSchemaGraphResponse + * @memberof vtctldata.RetrySchemaMigrationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RebuildVSchemaGraphResponse} RebuildVSchemaGraphResponse + * @returns {vtctldata.RetrySchemaMigrationResponse} RetrySchemaMigrationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RebuildVSchemaGraphResponse.decodeDelimited = function decodeDelimited(reader) { + RetrySchemaMigrationResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RebuildVSchemaGraphResponse message. + * Verifies a RetrySchemaMigrationResponse message. * @function verify - * @memberof vtctldata.RebuildVSchemaGraphResponse + * @memberof vtctldata.RetrySchemaMigrationResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RebuildVSchemaGraphResponse.verify = function verify(message) { + RetrySchemaMigrationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { + if (!$util.isObject(message.rows_affected_by_shard)) + return "rows_affected_by_shard: object expected"; + let key = Object.keys(message.rows_affected_by_shard); + for (let i = 0; i < key.length; ++i) + if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) + return "rows_affected_by_shard: integer|Long{k:string} expected"; + } return null; }; /** - * Creates a RebuildVSchemaGraphResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RetrySchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RebuildVSchemaGraphResponse + * @memberof vtctldata.RetrySchemaMigrationResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.RebuildVSchemaGraphResponse} RebuildVSchemaGraphResponse + * @returns {vtctldata.RetrySchemaMigrationResponse} RetrySchemaMigrationResponse */ - RebuildVSchemaGraphResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RebuildVSchemaGraphResponse) + RetrySchemaMigrationResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RetrySchemaMigrationResponse) return object; - return new $root.vtctldata.RebuildVSchemaGraphResponse(); + let message = new $root.vtctldata.RetrySchemaMigrationResponse(); + if (object.rows_affected_by_shard) { + if (typeof object.rows_affected_by_shard !== "object") + throw TypeError(".vtctldata.RetrySchemaMigrationResponse.rows_affected_by_shard: object expected"); + message.rows_affected_by_shard = {}; + for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) + if ($util.Long) + (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; + else if (typeof object.rows_affected_by_shard[keys[i]] === "string") + message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); + else if (typeof object.rows_affected_by_shard[keys[i]] === "number") + message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; + else if (typeof object.rows_affected_by_shard[keys[i]] === "object") + message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); + } + return message; }; /** - * Creates a plain object from a RebuildVSchemaGraphResponse message. Also converts values to other types if specified. + * Creates a plain object from a RetrySchemaMigrationResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RebuildVSchemaGraphResponse + * @memberof vtctldata.RetrySchemaMigrationResponse * @static - * @param {vtctldata.RebuildVSchemaGraphResponse} message RebuildVSchemaGraphResponse + * @param {vtctldata.RetrySchemaMigrationResponse} message RetrySchemaMigrationResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RebuildVSchemaGraphResponse.toObject = function toObject() { - return {}; + RetrySchemaMigrationResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) + object.rows_affected_by_shard = {}; + let keys2; + if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { + object.rows_affected_by_shard = {}; + for (let j = 0; j < keys2.length; ++j) + if (typeof message.rows_affected_by_shard[keys2[j]] === "number") + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; + else + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; + } + return object; }; /** - * Converts this RebuildVSchemaGraphResponse to JSON. + * Converts this RetrySchemaMigrationResponse to JSON. * @function toJSON - * @memberof vtctldata.RebuildVSchemaGraphResponse + * @memberof vtctldata.RetrySchemaMigrationResponse * @instance * @returns {Object.} JSON object */ - RebuildVSchemaGraphResponse.prototype.toJSON = function toJSON() { + RetrySchemaMigrationResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RebuildVSchemaGraphResponse + * Gets the default type url for RetrySchemaMigrationResponse * @function getTypeUrl - * @memberof vtctldata.RebuildVSchemaGraphResponse + * @memberof vtctldata.RetrySchemaMigrationResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RebuildVSchemaGraphResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RetrySchemaMigrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RebuildVSchemaGraphResponse"; + return typeUrlPrefix + "/vtctldata.RetrySchemaMigrationResponse"; }; - return RebuildVSchemaGraphResponse; + return RetrySchemaMigrationResponse; })(); - vtctldata.RefreshStateRequest = (function() { + vtctldata.RunHealthCheckRequest = (function() { /** - * Properties of a RefreshStateRequest. + * Properties of a RunHealthCheckRequest. * @memberof vtctldata - * @interface IRefreshStateRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] RefreshStateRequest tablet_alias + * @interface IRunHealthCheckRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] RunHealthCheckRequest tablet_alias */ /** - * Constructs a new RefreshStateRequest. + * Constructs a new RunHealthCheckRequest. * @memberof vtctldata - * @classdesc Represents a RefreshStateRequest. - * @implements IRefreshStateRequest + * @classdesc Represents a RunHealthCheckRequest. + * @implements IRunHealthCheckRequest * @constructor - * @param {vtctldata.IRefreshStateRequest=} [properties] Properties to set + * @param {vtctldata.IRunHealthCheckRequest=} [properties] Properties to set */ - function RefreshStateRequest(properties) { + function RunHealthCheckRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172024,35 +180300,35 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * RefreshStateRequest tablet_alias. + * RunHealthCheckRequest tablet_alias. * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.RefreshStateRequest + * @memberof vtctldata.RunHealthCheckRequest * @instance */ - RefreshStateRequest.prototype.tablet_alias = null; + RunHealthCheckRequest.prototype.tablet_alias = null; /** - * Creates a new RefreshStateRequest instance using the specified properties. + * Creates a new RunHealthCheckRequest instance using the specified properties. * @function create - * @memberof vtctldata.RefreshStateRequest + * @memberof vtctldata.RunHealthCheckRequest * @static - * @param {vtctldata.IRefreshStateRequest=} [properties] Properties to set - * @returns {vtctldata.RefreshStateRequest} RefreshStateRequest instance + * @param {vtctldata.IRunHealthCheckRequest=} [properties] Properties to set + * @returns {vtctldata.RunHealthCheckRequest} RunHealthCheckRequest instance */ - RefreshStateRequest.create = function create(properties) { - return new RefreshStateRequest(properties); + RunHealthCheckRequest.create = function create(properties) { + return new RunHealthCheckRequest(properties); }; /** - * Encodes the specified RefreshStateRequest message. Does not implicitly {@link vtctldata.RefreshStateRequest.verify|verify} messages. + * Encodes the specified RunHealthCheckRequest message. Does not implicitly {@link vtctldata.RunHealthCheckRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RefreshStateRequest + * @memberof vtctldata.RunHealthCheckRequest * @static - * @param {vtctldata.IRefreshStateRequest} message RefreshStateRequest message or plain object to encode + * @param {vtctldata.IRunHealthCheckRequest} message RunHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshStateRequest.encode = function encode(message, writer) { + RunHealthCheckRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) @@ -172061,33 +180337,33 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Encodes the specified RefreshStateRequest message, length delimited. Does not implicitly {@link vtctldata.RefreshStateRequest.verify|verify} messages. + * Encodes the specified RunHealthCheckRequest message, length delimited. Does not implicitly {@link vtctldata.RunHealthCheckRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RefreshStateRequest + * @memberof vtctldata.RunHealthCheckRequest * @static - * @param {vtctldata.IRefreshStateRequest} message RefreshStateRequest message or plain object to encode + * @param {vtctldata.IRunHealthCheckRequest} message RunHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RefreshStateRequest message from the specified reader or buffer. + * Decodes a RunHealthCheckRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RefreshStateRequest + * @memberof vtctldata.RunHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RefreshStateRequest} RefreshStateRequest + * @returns {vtctldata.RunHealthCheckRequest} RunHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshStateRequest.decode = function decode(reader, length) { + RunHealthCheckRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RefreshStateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RunHealthCheckRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -172104,30 +180380,30 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RefreshStateRequest message from the specified reader or buffer, length delimited. + * Decodes a RunHealthCheckRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RefreshStateRequest + * @memberof vtctldata.RunHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RefreshStateRequest} RefreshStateRequest + * @returns {vtctldata.RunHealthCheckRequest} RunHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshStateRequest.decodeDelimited = function decodeDelimited(reader) { + RunHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RefreshStateRequest message. + * Verifies a RunHealthCheckRequest message. * @function verify - * @memberof vtctldata.RefreshStateRequest + * @memberof vtctldata.RunHealthCheckRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RefreshStateRequest.verify = function verify(message) { + RunHealthCheckRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { @@ -172139,35 +180415,35 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Creates a RefreshStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunHealthCheckRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RefreshStateRequest + * @memberof vtctldata.RunHealthCheckRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RefreshStateRequest} RefreshStateRequest + * @returns {vtctldata.RunHealthCheckRequest} RunHealthCheckRequest */ - RefreshStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RefreshStateRequest) + RunHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RunHealthCheckRequest) return object; - let message = new $root.vtctldata.RefreshStateRequest(); + let message = new $root.vtctldata.RunHealthCheckRequest(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.RefreshStateRequest.tablet_alias: object expected"); + throw TypeError(".vtctldata.RunHealthCheckRequest.tablet_alias: object expected"); message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } return message; }; /** - * Creates a plain object from a RefreshStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunHealthCheckRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RefreshStateRequest + * @memberof vtctldata.RunHealthCheckRequest * @static - * @param {vtctldata.RefreshStateRequest} message RefreshStateRequest + * @param {vtctldata.RunHealthCheckRequest} message RunHealthCheckRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RefreshStateRequest.toObject = function toObject(message, options) { + RunHealthCheckRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -172179,51 +180455,51 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Converts this RefreshStateRequest to JSON. + * Converts this RunHealthCheckRequest to JSON. * @function toJSON - * @memberof vtctldata.RefreshStateRequest + * @memberof vtctldata.RunHealthCheckRequest * @instance * @returns {Object.} JSON object */ - RefreshStateRequest.prototype.toJSON = function toJSON() { + RunHealthCheckRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RefreshStateRequest + * Gets the default type url for RunHealthCheckRequest * @function getTypeUrl - * @memberof vtctldata.RefreshStateRequest + * @memberof vtctldata.RunHealthCheckRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RefreshStateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RunHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RefreshStateRequest"; + return typeUrlPrefix + "/vtctldata.RunHealthCheckRequest"; }; - return RefreshStateRequest; + return RunHealthCheckRequest; })(); - vtctldata.RefreshStateResponse = (function() { + vtctldata.RunHealthCheckResponse = (function() { /** - * Properties of a RefreshStateResponse. + * Properties of a RunHealthCheckResponse. * @memberof vtctldata - * @interface IRefreshStateResponse + * @interface IRunHealthCheckResponse */ /** - * Constructs a new RefreshStateResponse. + * Constructs a new RunHealthCheckResponse. * @memberof vtctldata - * @classdesc Represents a RefreshStateResponse. - * @implements IRefreshStateResponse + * @classdesc Represents a RunHealthCheckResponse. + * @implements IRunHealthCheckResponse * @constructor - * @param {vtctldata.IRefreshStateResponse=} [properties] Properties to set + * @param {vtctldata.IRunHealthCheckResponse=} [properties] Properties to set */ - function RefreshStateResponse(properties) { + function RunHealthCheckResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172231,60 +180507,60 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new RefreshStateResponse instance using the specified properties. + * Creates a new RunHealthCheckResponse instance using the specified properties. * @function create - * @memberof vtctldata.RefreshStateResponse + * @memberof vtctldata.RunHealthCheckResponse * @static - * @param {vtctldata.IRefreshStateResponse=} [properties] Properties to set - * @returns {vtctldata.RefreshStateResponse} RefreshStateResponse instance + * @param {vtctldata.IRunHealthCheckResponse=} [properties] Properties to set + * @returns {vtctldata.RunHealthCheckResponse} RunHealthCheckResponse instance */ - RefreshStateResponse.create = function create(properties) { - return new RefreshStateResponse(properties); + RunHealthCheckResponse.create = function create(properties) { + return new RunHealthCheckResponse(properties); }; /** - * Encodes the specified RefreshStateResponse message. Does not implicitly {@link vtctldata.RefreshStateResponse.verify|verify} messages. + * Encodes the specified RunHealthCheckResponse message. Does not implicitly {@link vtctldata.RunHealthCheckResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.RefreshStateResponse + * @memberof vtctldata.RunHealthCheckResponse * @static - * @param {vtctldata.IRefreshStateResponse} message RefreshStateResponse message or plain object to encode + * @param {vtctldata.IRunHealthCheckResponse} message RunHealthCheckResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshStateResponse.encode = function encode(message, writer) { + RunHealthCheckResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified RefreshStateResponse message, length delimited. Does not implicitly {@link vtctldata.RefreshStateResponse.verify|verify} messages. + * Encodes the specified RunHealthCheckResponse message, length delimited. Does not implicitly {@link vtctldata.RunHealthCheckResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RefreshStateResponse + * @memberof vtctldata.RunHealthCheckResponse * @static - * @param {vtctldata.IRefreshStateResponse} message RefreshStateResponse message or plain object to encode + * @param {vtctldata.IRunHealthCheckResponse} message RunHealthCheckResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + RunHealthCheckResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RefreshStateResponse message from the specified reader or buffer. + * Decodes a RunHealthCheckResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RefreshStateResponse + * @memberof vtctldata.RunHealthCheckResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RefreshStateResponse} RefreshStateResponse + * @returns {vtctldata.RunHealthCheckResponse} RunHealthCheckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshStateResponse.decode = function decode(reader, length) { + RunHealthCheckResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RefreshStateResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RunHealthCheckResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -172297,112 +180573,110 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RefreshStateResponse message from the specified reader or buffer, length delimited. + * Decodes a RunHealthCheckResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RefreshStateResponse + * @memberof vtctldata.RunHealthCheckResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RefreshStateResponse} RefreshStateResponse + * @returns {vtctldata.RunHealthCheckResponse} RunHealthCheckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshStateResponse.decodeDelimited = function decodeDelimited(reader) { + RunHealthCheckResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RefreshStateResponse message. + * Verifies a RunHealthCheckResponse message. * @function verify - * @memberof vtctldata.RefreshStateResponse + * @memberof vtctldata.RunHealthCheckResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RefreshStateResponse.verify = function verify(message) { + RunHealthCheckResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a RefreshStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RunHealthCheckResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RefreshStateResponse + * @memberof vtctldata.RunHealthCheckResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.RefreshStateResponse} RefreshStateResponse + * @returns {vtctldata.RunHealthCheckResponse} RunHealthCheckResponse */ - RefreshStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RefreshStateResponse) + RunHealthCheckResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RunHealthCheckResponse) return object; - return new $root.vtctldata.RefreshStateResponse(); + return new $root.vtctldata.RunHealthCheckResponse(); }; /** - * Creates a plain object from a RefreshStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a RunHealthCheckResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RefreshStateResponse + * @memberof vtctldata.RunHealthCheckResponse * @static - * @param {vtctldata.RefreshStateResponse} message RefreshStateResponse + * @param {vtctldata.RunHealthCheckResponse} message RunHealthCheckResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RefreshStateResponse.toObject = function toObject() { + RunHealthCheckResponse.toObject = function toObject() { return {}; }; /** - * Converts this RefreshStateResponse to JSON. + * Converts this RunHealthCheckResponse to JSON. * @function toJSON - * @memberof vtctldata.RefreshStateResponse + * @memberof vtctldata.RunHealthCheckResponse * @instance * @returns {Object.} JSON object */ - RefreshStateResponse.prototype.toJSON = function toJSON() { + RunHealthCheckResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RefreshStateResponse + * Gets the default type url for RunHealthCheckResponse * @function getTypeUrl - * @memberof vtctldata.RefreshStateResponse + * @memberof vtctldata.RunHealthCheckResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RefreshStateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RunHealthCheckResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RefreshStateResponse"; + return typeUrlPrefix + "/vtctldata.RunHealthCheckResponse"; }; - return RefreshStateResponse; + return RunHealthCheckResponse; })(); - vtctldata.RefreshStateByShardRequest = (function() { + vtctldata.SetKeyspaceDurabilityPolicyRequest = (function() { /** - * Properties of a RefreshStateByShardRequest. + * Properties of a SetKeyspaceDurabilityPolicyRequest. * @memberof vtctldata - * @interface IRefreshStateByShardRequest - * @property {string|null} [keyspace] RefreshStateByShardRequest keyspace - * @property {string|null} [shard] RefreshStateByShardRequest shard - * @property {Array.|null} [cells] RefreshStateByShardRequest cells + * @interface ISetKeyspaceDurabilityPolicyRequest + * @property {string|null} [keyspace] SetKeyspaceDurabilityPolicyRequest keyspace + * @property {string|null} [durability_policy] SetKeyspaceDurabilityPolicyRequest durability_policy */ /** - * Constructs a new RefreshStateByShardRequest. + * Constructs a new SetKeyspaceDurabilityPolicyRequest. * @memberof vtctldata - * @classdesc Represents a RefreshStateByShardRequest. - * @implements IRefreshStateByShardRequest + * @classdesc Represents a SetKeyspaceDurabilityPolicyRequest. + * @implements ISetKeyspaceDurabilityPolicyRequest * @constructor - * @param {vtctldata.IRefreshStateByShardRequest=} [properties] Properties to set + * @param {vtctldata.ISetKeyspaceDurabilityPolicyRequest=} [properties] Properties to set */ - function RefreshStateByShardRequest(properties) { - this.cells = []; + function SetKeyspaceDurabilityPolicyRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172410,91 +180684,80 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * RefreshStateByShardRequest keyspace. + * SetKeyspaceDurabilityPolicyRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.RefreshStateByShardRequest - * @instance - */ - RefreshStateByShardRequest.prototype.keyspace = ""; - - /** - * RefreshStateByShardRequest shard. - * @member {string} shard - * @memberof vtctldata.RefreshStateByShardRequest + * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest * @instance */ - RefreshStateByShardRequest.prototype.shard = ""; + SetKeyspaceDurabilityPolicyRequest.prototype.keyspace = ""; /** - * RefreshStateByShardRequest cells. - * @member {Array.} cells - * @memberof vtctldata.RefreshStateByShardRequest + * SetKeyspaceDurabilityPolicyRequest durability_policy. + * @member {string} durability_policy + * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest * @instance */ - RefreshStateByShardRequest.prototype.cells = $util.emptyArray; + SetKeyspaceDurabilityPolicyRequest.prototype.durability_policy = ""; /** - * Creates a new RefreshStateByShardRequest instance using the specified properties. + * Creates a new SetKeyspaceDurabilityPolicyRequest instance using the specified properties. * @function create - * @memberof vtctldata.RefreshStateByShardRequest + * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest * @static - * @param {vtctldata.IRefreshStateByShardRequest=} [properties] Properties to set - * @returns {vtctldata.RefreshStateByShardRequest} RefreshStateByShardRequest instance + * @param {vtctldata.ISetKeyspaceDurabilityPolicyRequest=} [properties] Properties to set + * @returns {vtctldata.SetKeyspaceDurabilityPolicyRequest} SetKeyspaceDurabilityPolicyRequest instance */ - RefreshStateByShardRequest.create = function create(properties) { - return new RefreshStateByShardRequest(properties); + SetKeyspaceDurabilityPolicyRequest.create = function create(properties) { + return new SetKeyspaceDurabilityPolicyRequest(properties); }; /** - * Encodes the specified RefreshStateByShardRequest message. Does not implicitly {@link vtctldata.RefreshStateByShardRequest.verify|verify} messages. + * Encodes the specified SetKeyspaceDurabilityPolicyRequest message. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RefreshStateByShardRequest + * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest * @static - * @param {vtctldata.IRefreshStateByShardRequest} message RefreshStateByShardRequest message or plain object to encode + * @param {vtctldata.ISetKeyspaceDurabilityPolicyRequest} message SetKeyspaceDurabilityPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshStateByShardRequest.encode = function encode(message, writer) { + SetKeyspaceDurabilityPolicyRequest.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.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); + if (message.durability_policy != null && Object.hasOwnProperty.call(message, "durability_policy")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.durability_policy); return writer; }; /** - * Encodes the specified RefreshStateByShardRequest message, length delimited. Does not implicitly {@link vtctldata.RefreshStateByShardRequest.verify|verify} messages. + * Encodes the specified SetKeyspaceDurabilityPolicyRequest message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RefreshStateByShardRequest + * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest * @static - * @param {vtctldata.IRefreshStateByShardRequest} message RefreshStateByShardRequest message or plain object to encode + * @param {vtctldata.ISetKeyspaceDurabilityPolicyRequest} message SetKeyspaceDurabilityPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshStateByShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetKeyspaceDurabilityPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RefreshStateByShardRequest message from the specified reader or buffer. + * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RefreshStateByShardRequest + * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RefreshStateByShardRequest} RefreshStateByShardRequest + * @returns {vtctldata.SetKeyspaceDurabilityPolicyRequest} SetKeyspaceDurabilityPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshStateByShardRequest.decode = function decode(reader, length) { + SetKeyspaceDurabilityPolicyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RefreshStateByShardRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetKeyspaceDurabilityPolicyRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -172503,13 +180766,7 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 2: { - message.shard = reader.string(); - break; - } - case 3: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + message.durability_policy = reader.string(); break; } default: @@ -172521,153 +180778,131 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RefreshStateByShardRequest message from the specified reader or buffer, length delimited. + * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RefreshStateByShardRequest + * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RefreshStateByShardRequest} RefreshStateByShardRequest + * @returns {vtctldata.SetKeyspaceDurabilityPolicyRequest} SetKeyspaceDurabilityPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshStateByShardRequest.decodeDelimited = function decodeDelimited(reader) { + SetKeyspaceDurabilityPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RefreshStateByShardRequest message. + * Verifies a SetKeyspaceDurabilityPolicyRequest message. * @function verify - * @memberof vtctldata.RefreshStateByShardRequest + * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RefreshStateByShardRequest.verify = function verify(message) { + SetKeyspaceDurabilityPolicyRequest.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.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } + if (message.durability_policy != null && message.hasOwnProperty("durability_policy")) + if (!$util.isString(message.durability_policy)) + return "durability_policy: string expected"; return null; }; /** - * Creates a RefreshStateByShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetKeyspaceDurabilityPolicyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RefreshStateByShardRequest + * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RefreshStateByShardRequest} RefreshStateByShardRequest + * @returns {vtctldata.SetKeyspaceDurabilityPolicyRequest} SetKeyspaceDurabilityPolicyRequest */ - RefreshStateByShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RefreshStateByShardRequest) + SetKeyspaceDurabilityPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SetKeyspaceDurabilityPolicyRequest) return object; - let message = new $root.vtctldata.RefreshStateByShardRequest(); + let message = new $root.vtctldata.SetKeyspaceDurabilityPolicyRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.RefreshStateByShardRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } + if (object.durability_policy != null) + message.durability_policy = String(object.durability_policy); return message; }; /** - * Creates a plain object from a RefreshStateByShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetKeyspaceDurabilityPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RefreshStateByShardRequest + * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest * @static - * @param {vtctldata.RefreshStateByShardRequest} message RefreshStateByShardRequest + * @param {vtctldata.SetKeyspaceDurabilityPolicyRequest} message SetKeyspaceDurabilityPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RefreshStateByShardRequest.toObject = function toObject(message, options) { + SetKeyspaceDurabilityPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.cells = []; if (options.defaults) { object.keyspace = ""; - object.shard = ""; + object.durability_policy = ""; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } + if (message.durability_policy != null && message.hasOwnProperty("durability_policy")) + object.durability_policy = message.durability_policy; return object; }; /** - * Converts this RefreshStateByShardRequest to JSON. + * Converts this SetKeyspaceDurabilityPolicyRequest to JSON. * @function toJSON - * @memberof vtctldata.RefreshStateByShardRequest + * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest * @instance * @returns {Object.} JSON object */ - RefreshStateByShardRequest.prototype.toJSON = function toJSON() { + SetKeyspaceDurabilityPolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RefreshStateByShardRequest + * Gets the default type url for SetKeyspaceDurabilityPolicyRequest * @function getTypeUrl - * @memberof vtctldata.RefreshStateByShardRequest + * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RefreshStateByShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetKeyspaceDurabilityPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RefreshStateByShardRequest"; + return typeUrlPrefix + "/vtctldata.SetKeyspaceDurabilityPolicyRequest"; }; - return RefreshStateByShardRequest; + return SetKeyspaceDurabilityPolicyRequest; })(); - vtctldata.RefreshStateByShardResponse = (function() { + vtctldata.SetKeyspaceDurabilityPolicyResponse = (function() { /** - * Properties of a RefreshStateByShardResponse. + * Properties of a SetKeyspaceDurabilityPolicyResponse. * @memberof vtctldata - * @interface IRefreshStateByShardResponse - * @property {boolean|null} [is_partial_refresh] RefreshStateByShardResponse is_partial_refresh - * @property {string|null} [partial_refresh_details] RefreshStateByShardResponse partial_refresh_details + * @interface ISetKeyspaceDurabilityPolicyResponse + * @property {topodata.IKeyspace|null} [keyspace] SetKeyspaceDurabilityPolicyResponse keyspace */ /** - * Constructs a new RefreshStateByShardResponse. + * Constructs a new SetKeyspaceDurabilityPolicyResponse. * @memberof vtctldata - * @classdesc Represents a RefreshStateByShardResponse. - * @implements IRefreshStateByShardResponse + * @classdesc Represents a SetKeyspaceDurabilityPolicyResponse. + * @implements ISetKeyspaceDurabilityPolicyResponse * @constructor - * @param {vtctldata.IRefreshStateByShardResponse=} [properties] Properties to set + * @param {vtctldata.ISetKeyspaceDurabilityPolicyResponse=} [properties] Properties to set */ - function RefreshStateByShardResponse(properties) { + function SetKeyspaceDurabilityPolicyResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172675,89 +180910,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * RefreshStateByShardResponse is_partial_refresh. - * @member {boolean} is_partial_refresh - * @memberof vtctldata.RefreshStateByShardResponse - * @instance - */ - RefreshStateByShardResponse.prototype.is_partial_refresh = false; - - /** - * RefreshStateByShardResponse partial_refresh_details. - * @member {string} partial_refresh_details - * @memberof vtctldata.RefreshStateByShardResponse + * SetKeyspaceDurabilityPolicyResponse keyspace. + * @member {topodata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse * @instance */ - RefreshStateByShardResponse.prototype.partial_refresh_details = ""; + SetKeyspaceDurabilityPolicyResponse.prototype.keyspace = null; /** - * Creates a new RefreshStateByShardResponse instance using the specified properties. + * Creates a new SetKeyspaceDurabilityPolicyResponse instance using the specified properties. * @function create - * @memberof vtctldata.RefreshStateByShardResponse + * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse * @static - * @param {vtctldata.IRefreshStateByShardResponse=} [properties] Properties to set - * @returns {vtctldata.RefreshStateByShardResponse} RefreshStateByShardResponse instance + * @param {vtctldata.ISetKeyspaceDurabilityPolicyResponse=} [properties] Properties to set + * @returns {vtctldata.SetKeyspaceDurabilityPolicyResponse} SetKeyspaceDurabilityPolicyResponse instance */ - RefreshStateByShardResponse.create = function create(properties) { - return new RefreshStateByShardResponse(properties); + SetKeyspaceDurabilityPolicyResponse.create = function create(properties) { + return new SetKeyspaceDurabilityPolicyResponse(properties); }; /** - * Encodes the specified RefreshStateByShardResponse message. Does not implicitly {@link vtctldata.RefreshStateByShardResponse.verify|verify} messages. + * Encodes the specified SetKeyspaceDurabilityPolicyResponse message. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.RefreshStateByShardResponse + * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse * @static - * @param {vtctldata.IRefreshStateByShardResponse} message RefreshStateByShardResponse message or plain object to encode + * @param {vtctldata.ISetKeyspaceDurabilityPolicyResponse} message SetKeyspaceDurabilityPolicyResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshStateByShardResponse.encode = function encode(message, writer) { + SetKeyspaceDurabilityPolicyResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.is_partial_refresh != null && Object.hasOwnProperty.call(message, "is_partial_refresh")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.is_partial_refresh); - if (message.partial_refresh_details != null && Object.hasOwnProperty.call(message, "partial_refresh_details")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.partial_refresh_details); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + $root.topodata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RefreshStateByShardResponse message, length delimited. Does not implicitly {@link vtctldata.RefreshStateByShardResponse.verify|verify} messages. + * Encodes the specified SetKeyspaceDurabilityPolicyResponse message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RefreshStateByShardResponse + * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse * @static - * @param {vtctldata.IRefreshStateByShardResponse} message RefreshStateByShardResponse message or plain object to encode + * @param {vtctldata.ISetKeyspaceDurabilityPolicyResponse} message SetKeyspaceDurabilityPolicyResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RefreshStateByShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + SetKeyspaceDurabilityPolicyResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RefreshStateByShardResponse message from the specified reader or buffer. + * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RefreshStateByShardResponse + * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RefreshStateByShardResponse} RefreshStateByShardResponse + * @returns {vtctldata.SetKeyspaceDurabilityPolicyResponse} SetKeyspaceDurabilityPolicyResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshStateByShardResponse.decode = function decode(reader, length) { + SetKeyspaceDurabilityPolicyResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RefreshStateByShardResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetKeyspaceDurabilityPolicyResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.is_partial_refresh = reader.bool(); - break; - } - case 2: { - message.partial_refresh_details = reader.string(); + message.keyspace = $root.topodata.Keyspace.decode(reader, reader.uint32()); break; } default: @@ -172769,131 +180990,128 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RefreshStateByShardResponse message from the specified reader or buffer, length delimited. + * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RefreshStateByShardResponse + * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RefreshStateByShardResponse} RefreshStateByShardResponse + * @returns {vtctldata.SetKeyspaceDurabilityPolicyResponse} SetKeyspaceDurabilityPolicyResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RefreshStateByShardResponse.decodeDelimited = function decodeDelimited(reader) { + SetKeyspaceDurabilityPolicyResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RefreshStateByShardResponse message. + * Verifies a SetKeyspaceDurabilityPolicyResponse message. * @function verify - * @memberof vtctldata.RefreshStateByShardResponse + * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RefreshStateByShardResponse.verify = function verify(message) { + SetKeyspaceDurabilityPolicyResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.is_partial_refresh != null && message.hasOwnProperty("is_partial_refresh")) - if (typeof message.is_partial_refresh !== "boolean") - return "is_partial_refresh: boolean expected"; - if (message.partial_refresh_details != null && message.hasOwnProperty("partial_refresh_details")) - if (!$util.isString(message.partial_refresh_details)) - return "partial_refresh_details: string expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + let error = $root.topodata.Keyspace.verify(message.keyspace); + if (error) + return "keyspace." + error; + } return null; }; /** - * Creates a RefreshStateByShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetKeyspaceDurabilityPolicyResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RefreshStateByShardResponse + * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.RefreshStateByShardResponse} RefreshStateByShardResponse + * @returns {vtctldata.SetKeyspaceDurabilityPolicyResponse} SetKeyspaceDurabilityPolicyResponse */ - RefreshStateByShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RefreshStateByShardResponse) + SetKeyspaceDurabilityPolicyResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SetKeyspaceDurabilityPolicyResponse) return object; - let message = new $root.vtctldata.RefreshStateByShardResponse(); - if (object.is_partial_refresh != null) - message.is_partial_refresh = Boolean(object.is_partial_refresh); - if (object.partial_refresh_details != null) - message.partial_refresh_details = String(object.partial_refresh_details); + let message = new $root.vtctldata.SetKeyspaceDurabilityPolicyResponse(); + if (object.keyspace != null) { + if (typeof object.keyspace !== "object") + throw TypeError(".vtctldata.SetKeyspaceDurabilityPolicyResponse.keyspace: object expected"); + message.keyspace = $root.topodata.Keyspace.fromObject(object.keyspace); + } return message; }; /** - * Creates a plain object from a RefreshStateByShardResponse message. Also converts values to other types if specified. + * Creates a plain object from a SetKeyspaceDurabilityPolicyResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RefreshStateByShardResponse + * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse * @static - * @param {vtctldata.RefreshStateByShardResponse} message RefreshStateByShardResponse + * @param {vtctldata.SetKeyspaceDurabilityPolicyResponse} message SetKeyspaceDurabilityPolicyResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RefreshStateByShardResponse.toObject = function toObject(message, options) { + SetKeyspaceDurabilityPolicyResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.is_partial_refresh = false; - object.partial_refresh_details = ""; - } - if (message.is_partial_refresh != null && message.hasOwnProperty("is_partial_refresh")) - object.is_partial_refresh = message.is_partial_refresh; - if (message.partial_refresh_details != null && message.hasOwnProperty("partial_refresh_details")) - object.partial_refresh_details = message.partial_refresh_details; + if (options.defaults) + object.keyspace = null; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = $root.topodata.Keyspace.toObject(message.keyspace, options); return object; }; /** - * Converts this RefreshStateByShardResponse to JSON. + * Converts this SetKeyspaceDurabilityPolicyResponse to JSON. * @function toJSON - * @memberof vtctldata.RefreshStateByShardResponse + * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse * @instance * @returns {Object.} JSON object */ - RefreshStateByShardResponse.prototype.toJSON = function toJSON() { + SetKeyspaceDurabilityPolicyResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RefreshStateByShardResponse + * Gets the default type url for SetKeyspaceDurabilityPolicyResponse * @function getTypeUrl - * @memberof vtctldata.RefreshStateByShardResponse + * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RefreshStateByShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetKeyspaceDurabilityPolicyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RefreshStateByShardResponse"; + return typeUrlPrefix + "/vtctldata.SetKeyspaceDurabilityPolicyResponse"; }; - return RefreshStateByShardResponse; + return SetKeyspaceDurabilityPolicyResponse; })(); - vtctldata.ReloadSchemaRequest = (function() { + vtctldata.SetKeyspaceShardingInfoRequest = (function() { /** - * Properties of a ReloadSchemaRequest. + * Properties of a SetKeyspaceShardingInfoRequest. * @memberof vtctldata - * @interface IReloadSchemaRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] ReloadSchemaRequest tablet_alias + * @interface ISetKeyspaceShardingInfoRequest + * @property {string|null} [keyspace] SetKeyspaceShardingInfoRequest keyspace + * @property {boolean|null} [force] SetKeyspaceShardingInfoRequest force */ /** - * Constructs a new ReloadSchemaRequest. + * Constructs a new SetKeyspaceShardingInfoRequest. * @memberof vtctldata - * @classdesc Represents a ReloadSchemaRequest. - * @implements IReloadSchemaRequest + * @classdesc Represents a SetKeyspaceShardingInfoRequest. + * @implements ISetKeyspaceShardingInfoRequest * @constructor - * @param {vtctldata.IReloadSchemaRequest=} [properties] Properties to set + * @param {vtctldata.ISetKeyspaceShardingInfoRequest=} [properties] Properties to set */ - function ReloadSchemaRequest(properties) { + function SetKeyspaceShardingInfoRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172901,75 +181119,89 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ReloadSchemaRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.ReloadSchemaRequest + * SetKeyspaceShardingInfoRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.SetKeyspaceShardingInfoRequest * @instance */ - ReloadSchemaRequest.prototype.tablet_alias = null; + SetKeyspaceShardingInfoRequest.prototype.keyspace = ""; /** - * Creates a new ReloadSchemaRequest instance using the specified properties. + * SetKeyspaceShardingInfoRequest force. + * @member {boolean} force + * @memberof vtctldata.SetKeyspaceShardingInfoRequest + * @instance + */ + SetKeyspaceShardingInfoRequest.prototype.force = false; + + /** + * Creates a new SetKeyspaceShardingInfoRequest instance using the specified properties. * @function create - * @memberof vtctldata.ReloadSchemaRequest + * @memberof vtctldata.SetKeyspaceShardingInfoRequest * @static - * @param {vtctldata.IReloadSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.ReloadSchemaRequest} ReloadSchemaRequest instance + * @param {vtctldata.ISetKeyspaceShardingInfoRequest=} [properties] Properties to set + * @returns {vtctldata.SetKeyspaceShardingInfoRequest} SetKeyspaceShardingInfoRequest instance */ - ReloadSchemaRequest.create = function create(properties) { - return new ReloadSchemaRequest(properties); + SetKeyspaceShardingInfoRequest.create = function create(properties) { + return new SetKeyspaceShardingInfoRequest(properties); }; /** - * Encodes the specified ReloadSchemaRequest message. Does not implicitly {@link vtctldata.ReloadSchemaRequest.verify|verify} messages. + * Encodes the specified SetKeyspaceShardingInfoRequest message. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ReloadSchemaRequest + * @memberof vtctldata.SetKeyspaceShardingInfoRequest * @static - * @param {vtctldata.IReloadSchemaRequest} message ReloadSchemaRequest message or plain object to encode + * @param {vtctldata.ISetKeyspaceShardingInfoRequest} message SetKeyspaceShardingInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaRequest.encode = function encode(message, writer) { + SetKeyspaceShardingInfoRequest.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.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.force); return writer; }; /** - * Encodes the specified ReloadSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaRequest.verify|verify} messages. + * Encodes the specified SetKeyspaceShardingInfoRequest message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ReloadSchemaRequest + * @memberof vtctldata.SetKeyspaceShardingInfoRequest * @static - * @param {vtctldata.IReloadSchemaRequest} message ReloadSchemaRequest message or plain object to encode + * @param {vtctldata.ISetKeyspaceShardingInfoRequest} message SetKeyspaceShardingInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetKeyspaceShardingInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReloadSchemaRequest message from the specified reader or buffer. + * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ReloadSchemaRequest + * @memberof vtctldata.SetKeyspaceShardingInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ReloadSchemaRequest} ReloadSchemaRequest + * @returns {vtctldata.SetKeyspaceShardingInfoRequest} SetKeyspaceShardingInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaRequest.decode = function decode(reader, length) { + SetKeyspaceShardingInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReloadSchemaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetKeyspaceShardingInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.keyspace = reader.string(); + break; + } + case 4: { + message.force = reader.bool(); break; } default: @@ -172981,126 +181213,131 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ReloadSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ReloadSchemaRequest + * @memberof vtctldata.SetKeyspaceShardingInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ReloadSchemaRequest} ReloadSchemaRequest + * @returns {vtctldata.SetKeyspaceShardingInfoRequest} SetKeyspaceShardingInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + SetKeyspaceShardingInfoRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReloadSchemaRequest message. + * Verifies a SetKeyspaceShardingInfoRequest message. * @function verify - * @memberof vtctldata.ReloadSchemaRequest + * @memberof vtctldata.SetKeyspaceShardingInfoRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReloadSchemaRequest.verify = function verify(message) { + SetKeyspaceShardingInfoRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a ReloadSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetKeyspaceShardingInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ReloadSchemaRequest + * @memberof vtctldata.SetKeyspaceShardingInfoRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ReloadSchemaRequest} ReloadSchemaRequest + * @returns {vtctldata.SetKeyspaceShardingInfoRequest} SetKeyspaceShardingInfoRequest */ - ReloadSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ReloadSchemaRequest) + SetKeyspaceShardingInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SetKeyspaceShardingInfoRequest) return object; - let message = new $root.vtctldata.ReloadSchemaRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.ReloadSchemaRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } + let message = new $root.vtctldata.SetKeyspaceShardingInfoRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a ReloadSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetKeyspaceShardingInfoRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ReloadSchemaRequest + * @memberof vtctldata.SetKeyspaceShardingInfoRequest * @static - * @param {vtctldata.ReloadSchemaRequest} message ReloadSchemaRequest + * @param {vtctldata.SetKeyspaceShardingInfoRequest} message SetKeyspaceShardingInfoRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReloadSchemaRequest.toObject = function toObject(message, options) { + SetKeyspaceShardingInfoRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.tablet_alias = null; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (options.defaults) { + object.keyspace = ""; + object.force = false; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this ReloadSchemaRequest to JSON. + * Converts this SetKeyspaceShardingInfoRequest to JSON. * @function toJSON - * @memberof vtctldata.ReloadSchemaRequest + * @memberof vtctldata.SetKeyspaceShardingInfoRequest * @instance * @returns {Object.} JSON object */ - ReloadSchemaRequest.prototype.toJSON = function toJSON() { + SetKeyspaceShardingInfoRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReloadSchemaRequest + * Gets the default type url for SetKeyspaceShardingInfoRequest * @function getTypeUrl - * @memberof vtctldata.ReloadSchemaRequest + * @memberof vtctldata.SetKeyspaceShardingInfoRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReloadSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetKeyspaceShardingInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ReloadSchemaRequest"; + return typeUrlPrefix + "/vtctldata.SetKeyspaceShardingInfoRequest"; }; - return ReloadSchemaRequest; + return SetKeyspaceShardingInfoRequest; })(); - vtctldata.ReloadSchemaResponse = (function() { + vtctldata.SetKeyspaceShardingInfoResponse = (function() { /** - * Properties of a ReloadSchemaResponse. + * Properties of a SetKeyspaceShardingInfoResponse. * @memberof vtctldata - * @interface IReloadSchemaResponse + * @interface ISetKeyspaceShardingInfoResponse + * @property {topodata.IKeyspace|null} [keyspace] SetKeyspaceShardingInfoResponse keyspace */ /** - * Constructs a new ReloadSchemaResponse. + * Constructs a new SetKeyspaceShardingInfoResponse. * @memberof vtctldata - * @classdesc Represents a ReloadSchemaResponse. - * @implements IReloadSchemaResponse + * @classdesc Represents a SetKeyspaceShardingInfoResponse. + * @implements ISetKeyspaceShardingInfoResponse * @constructor - * @param {vtctldata.IReloadSchemaResponse=} [properties] Properties to set + * @param {vtctldata.ISetKeyspaceShardingInfoResponse=} [properties] Properties to set */ - function ReloadSchemaResponse(properties) { + function SetKeyspaceShardingInfoResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -173108,63 +181345,77 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new ReloadSchemaResponse instance using the specified properties. + * SetKeyspaceShardingInfoResponse keyspace. + * @member {topodata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.SetKeyspaceShardingInfoResponse + * @instance + */ + SetKeyspaceShardingInfoResponse.prototype.keyspace = null; + + /** + * Creates a new SetKeyspaceShardingInfoResponse instance using the specified properties. * @function create - * @memberof vtctldata.ReloadSchemaResponse + * @memberof vtctldata.SetKeyspaceShardingInfoResponse * @static - * @param {vtctldata.IReloadSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.ReloadSchemaResponse} ReloadSchemaResponse instance + * @param {vtctldata.ISetKeyspaceShardingInfoResponse=} [properties] Properties to set + * @returns {vtctldata.SetKeyspaceShardingInfoResponse} SetKeyspaceShardingInfoResponse instance */ - ReloadSchemaResponse.create = function create(properties) { - return new ReloadSchemaResponse(properties); + SetKeyspaceShardingInfoResponse.create = function create(properties) { + return new SetKeyspaceShardingInfoResponse(properties); }; /** - * Encodes the specified ReloadSchemaResponse message. Does not implicitly {@link vtctldata.ReloadSchemaResponse.verify|verify} messages. + * Encodes the specified SetKeyspaceShardingInfoResponse message. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ReloadSchemaResponse + * @memberof vtctldata.SetKeyspaceShardingInfoResponse * @static - * @param {vtctldata.IReloadSchemaResponse} message ReloadSchemaResponse message or plain object to encode + * @param {vtctldata.ISetKeyspaceShardingInfoResponse} message SetKeyspaceShardingInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaResponse.encode = function encode(message, writer) { + SetKeyspaceShardingInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + $root.topodata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReloadSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaResponse.verify|verify} messages. + * Encodes the specified SetKeyspaceShardingInfoResponse message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ReloadSchemaResponse + * @memberof vtctldata.SetKeyspaceShardingInfoResponse * @static - * @param {vtctldata.IReloadSchemaResponse} message ReloadSchemaResponse message or plain object to encode + * @param {vtctldata.ISetKeyspaceShardingInfoResponse} message SetKeyspaceShardingInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + SetKeyspaceShardingInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReloadSchemaResponse message from the specified reader or buffer. + * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ReloadSchemaResponse + * @memberof vtctldata.SetKeyspaceShardingInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ReloadSchemaResponse} ReloadSchemaResponse + * @returns {vtctldata.SetKeyspaceShardingInfoResponse} SetKeyspaceShardingInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaResponse.decode = function decode(reader, length) { + SetKeyspaceShardingInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReloadSchemaResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetKeyspaceShardingInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.keyspace = $root.topodata.Keyspace.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -173174,112 +181425,129 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ReloadSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ReloadSchemaResponse + * @memberof vtctldata.SetKeyspaceShardingInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ReloadSchemaResponse} ReloadSchemaResponse + * @returns {vtctldata.SetKeyspaceShardingInfoResponse} SetKeyspaceShardingInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + SetKeyspaceShardingInfoResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReloadSchemaResponse message. + * Verifies a SetKeyspaceShardingInfoResponse message. * @function verify - * @memberof vtctldata.ReloadSchemaResponse + * @memberof vtctldata.SetKeyspaceShardingInfoResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReloadSchemaResponse.verify = function verify(message) { + SetKeyspaceShardingInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + let error = $root.topodata.Keyspace.verify(message.keyspace); + if (error) + return "keyspace." + error; + } return null; }; /** - * Creates a ReloadSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetKeyspaceShardingInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ReloadSchemaResponse + * @memberof vtctldata.SetKeyspaceShardingInfoResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ReloadSchemaResponse} ReloadSchemaResponse + * @returns {vtctldata.SetKeyspaceShardingInfoResponse} SetKeyspaceShardingInfoResponse */ - ReloadSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ReloadSchemaResponse) + SetKeyspaceShardingInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SetKeyspaceShardingInfoResponse) return object; - return new $root.vtctldata.ReloadSchemaResponse(); + let message = new $root.vtctldata.SetKeyspaceShardingInfoResponse(); + if (object.keyspace != null) { + if (typeof object.keyspace !== "object") + throw TypeError(".vtctldata.SetKeyspaceShardingInfoResponse.keyspace: object expected"); + message.keyspace = $root.topodata.Keyspace.fromObject(object.keyspace); + } + return message; }; /** - * Creates a plain object from a ReloadSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a SetKeyspaceShardingInfoResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ReloadSchemaResponse + * @memberof vtctldata.SetKeyspaceShardingInfoResponse * @static - * @param {vtctldata.ReloadSchemaResponse} message ReloadSchemaResponse + * @param {vtctldata.SetKeyspaceShardingInfoResponse} message SetKeyspaceShardingInfoResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReloadSchemaResponse.toObject = function toObject() { - return {}; + SetKeyspaceShardingInfoResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.keyspace = null; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = $root.topodata.Keyspace.toObject(message.keyspace, options); + return object; }; /** - * Converts this ReloadSchemaResponse to JSON. + * Converts this SetKeyspaceShardingInfoResponse to JSON. * @function toJSON - * @memberof vtctldata.ReloadSchemaResponse + * @memberof vtctldata.SetKeyspaceShardingInfoResponse * @instance * @returns {Object.} JSON object */ - ReloadSchemaResponse.prototype.toJSON = function toJSON() { + SetKeyspaceShardingInfoResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReloadSchemaResponse + * Gets the default type url for SetKeyspaceShardingInfoResponse * @function getTypeUrl - * @memberof vtctldata.ReloadSchemaResponse + * @memberof vtctldata.SetKeyspaceShardingInfoResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReloadSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetKeyspaceShardingInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ReloadSchemaResponse"; + return typeUrlPrefix + "/vtctldata.SetKeyspaceShardingInfoResponse"; }; - return ReloadSchemaResponse; + return SetKeyspaceShardingInfoResponse; })(); - vtctldata.ReloadSchemaKeyspaceRequest = (function() { + vtctldata.SetShardIsPrimaryServingRequest = (function() { /** - * Properties of a ReloadSchemaKeyspaceRequest. + * Properties of a SetShardIsPrimaryServingRequest. * @memberof vtctldata - * @interface IReloadSchemaKeyspaceRequest - * @property {string|null} [keyspace] ReloadSchemaKeyspaceRequest keyspace - * @property {string|null} [wait_position] ReloadSchemaKeyspaceRequest wait_position - * @property {boolean|null} [include_primary] ReloadSchemaKeyspaceRequest include_primary - * @property {number|null} [concurrency] ReloadSchemaKeyspaceRequest concurrency + * @interface ISetShardIsPrimaryServingRequest + * @property {string|null} [keyspace] SetShardIsPrimaryServingRequest keyspace + * @property {string|null} [shard] SetShardIsPrimaryServingRequest shard + * @property {boolean|null} [is_serving] SetShardIsPrimaryServingRequest is_serving */ /** - * Constructs a new ReloadSchemaKeyspaceRequest. + * Constructs a new SetShardIsPrimaryServingRequest. * @memberof vtctldata - * @classdesc Represents a ReloadSchemaKeyspaceRequest. - * @implements IReloadSchemaKeyspaceRequest + * @classdesc Represents a SetShardIsPrimaryServingRequest. + * @implements ISetShardIsPrimaryServingRequest * @constructor - * @param {vtctldata.IReloadSchemaKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.ISetShardIsPrimaryServingRequest=} [properties] Properties to set */ - function ReloadSchemaKeyspaceRequest(properties) { + function SetShardIsPrimaryServingRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -173287,100 +181555,90 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ReloadSchemaKeyspaceRequest keyspace. + * SetShardIsPrimaryServingRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.ReloadSchemaKeyspaceRequest - * @instance - */ - ReloadSchemaKeyspaceRequest.prototype.keyspace = ""; - - /** - * ReloadSchemaKeyspaceRequest wait_position. - * @member {string} wait_position - * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * @memberof vtctldata.SetShardIsPrimaryServingRequest * @instance */ - ReloadSchemaKeyspaceRequest.prototype.wait_position = ""; + SetShardIsPrimaryServingRequest.prototype.keyspace = ""; /** - * ReloadSchemaKeyspaceRequest include_primary. - * @member {boolean} include_primary - * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * SetShardIsPrimaryServingRequest shard. + * @member {string} shard + * @memberof vtctldata.SetShardIsPrimaryServingRequest * @instance */ - ReloadSchemaKeyspaceRequest.prototype.include_primary = false; + SetShardIsPrimaryServingRequest.prototype.shard = ""; /** - * ReloadSchemaKeyspaceRequest concurrency. - * @member {number} concurrency - * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * SetShardIsPrimaryServingRequest is_serving. + * @member {boolean} is_serving + * @memberof vtctldata.SetShardIsPrimaryServingRequest * @instance */ - ReloadSchemaKeyspaceRequest.prototype.concurrency = 0; + SetShardIsPrimaryServingRequest.prototype.is_serving = false; /** - * Creates a new ReloadSchemaKeyspaceRequest instance using the specified properties. + * Creates a new SetShardIsPrimaryServingRequest instance using the specified properties. * @function create - * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * @memberof vtctldata.SetShardIsPrimaryServingRequest * @static - * @param {vtctldata.IReloadSchemaKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.ReloadSchemaKeyspaceRequest} ReloadSchemaKeyspaceRequest instance + * @param {vtctldata.ISetShardIsPrimaryServingRequest=} [properties] Properties to set + * @returns {vtctldata.SetShardIsPrimaryServingRequest} SetShardIsPrimaryServingRequest instance */ - ReloadSchemaKeyspaceRequest.create = function create(properties) { - return new ReloadSchemaKeyspaceRequest(properties); + SetShardIsPrimaryServingRequest.create = function create(properties) { + return new SetShardIsPrimaryServingRequest(properties); }; /** - * Encodes the specified ReloadSchemaKeyspaceRequest message. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceRequest.verify|verify} messages. + * Encodes the specified SetShardIsPrimaryServingRequest message. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * @memberof vtctldata.SetShardIsPrimaryServingRequest * @static - * @param {vtctldata.IReloadSchemaKeyspaceRequest} message ReloadSchemaKeyspaceRequest message or plain object to encode + * @param {vtctldata.ISetShardIsPrimaryServingRequest} message SetShardIsPrimaryServingRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaKeyspaceRequest.encode = function encode(message, writer) { + SetShardIsPrimaryServingRequest.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.wait_position != null && Object.hasOwnProperty.call(message, "wait_position")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.wait_position); - if (message.include_primary != null && Object.hasOwnProperty.call(message, "include_primary")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.include_primary); - if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.concurrency); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.is_serving != null && Object.hasOwnProperty.call(message, "is_serving")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.is_serving); return writer; }; /** - * Encodes the specified ReloadSchemaKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceRequest.verify|verify} messages. + * Encodes the specified SetShardIsPrimaryServingRequest message, length delimited. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * @memberof vtctldata.SetShardIsPrimaryServingRequest * @static - * @param {vtctldata.IReloadSchemaKeyspaceRequest} message ReloadSchemaKeyspaceRequest message or plain object to encode + * @param {vtctldata.ISetShardIsPrimaryServingRequest} message SetShardIsPrimaryServingRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetShardIsPrimaryServingRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer. + * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * @memberof vtctldata.SetShardIsPrimaryServingRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ReloadSchemaKeyspaceRequest} ReloadSchemaKeyspaceRequest + * @returns {vtctldata.SetShardIsPrimaryServingRequest} SetShardIsPrimaryServingRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaKeyspaceRequest.decode = function decode(reader, length) { + SetShardIsPrimaryServingRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReloadSchemaKeyspaceRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetShardIsPrimaryServingRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -173389,15 +181647,11 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 2: { - message.wait_position = reader.string(); + message.shard = reader.string(); break; } case 3: { - message.include_primary = reader.bool(); - break; - } - case 4: { - message.concurrency = reader.int32(); + message.is_serving = reader.bool(); break; } default: @@ -173409,148 +181663,139 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * @memberof vtctldata.SetShardIsPrimaryServingRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ReloadSchemaKeyspaceRequest} ReloadSchemaKeyspaceRequest + * @returns {vtctldata.SetShardIsPrimaryServingRequest} SetShardIsPrimaryServingRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + SetShardIsPrimaryServingRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReloadSchemaKeyspaceRequest message. + * Verifies a SetShardIsPrimaryServingRequest message. * @function verify - * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * @memberof vtctldata.SetShardIsPrimaryServingRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReloadSchemaKeyspaceRequest.verify = function verify(message) { + SetShardIsPrimaryServingRequest.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.wait_position != null && message.hasOwnProperty("wait_position")) - if (!$util.isString(message.wait_position)) - return "wait_position: string expected"; - if (message.include_primary != null && message.hasOwnProperty("include_primary")) - if (typeof message.include_primary !== "boolean") - return "include_primary: boolean expected"; - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - if (!$util.isInteger(message.concurrency)) - return "concurrency: integer expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.is_serving != null && message.hasOwnProperty("is_serving")) + if (typeof message.is_serving !== "boolean") + return "is_serving: boolean expected"; return null; }; /** - * Creates a ReloadSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetShardIsPrimaryServingRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * @memberof vtctldata.SetShardIsPrimaryServingRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ReloadSchemaKeyspaceRequest} ReloadSchemaKeyspaceRequest + * @returns {vtctldata.SetShardIsPrimaryServingRequest} SetShardIsPrimaryServingRequest */ - ReloadSchemaKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ReloadSchemaKeyspaceRequest) + SetShardIsPrimaryServingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SetShardIsPrimaryServingRequest) return object; - let message = new $root.vtctldata.ReloadSchemaKeyspaceRequest(); + let message = new $root.vtctldata.SetShardIsPrimaryServingRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.wait_position != null) - message.wait_position = String(object.wait_position); - if (object.include_primary != null) - message.include_primary = Boolean(object.include_primary); - if (object.concurrency != null) - message.concurrency = object.concurrency | 0; + if (object.shard != null) + message.shard = String(object.shard); + if (object.is_serving != null) + message.is_serving = Boolean(object.is_serving); return message; }; /** - * Creates a plain object from a ReloadSchemaKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetShardIsPrimaryServingRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * @memberof vtctldata.SetShardIsPrimaryServingRequest * @static - * @param {vtctldata.ReloadSchemaKeyspaceRequest} message ReloadSchemaKeyspaceRequest + * @param {vtctldata.SetShardIsPrimaryServingRequest} message SetShardIsPrimaryServingRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReloadSchemaKeyspaceRequest.toObject = function toObject(message, options) { + SetShardIsPrimaryServingRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.keyspace = ""; - object.wait_position = ""; - object.include_primary = false; - object.concurrency = 0; + object.shard = ""; + object.is_serving = false; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.wait_position != null && message.hasOwnProperty("wait_position")) - object.wait_position = message.wait_position; - if (message.include_primary != null && message.hasOwnProperty("include_primary")) - object.include_primary = message.include_primary; - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - object.concurrency = message.concurrency; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.is_serving != null && message.hasOwnProperty("is_serving")) + object.is_serving = message.is_serving; return object; }; /** - * Converts this ReloadSchemaKeyspaceRequest to JSON. + * Converts this SetShardIsPrimaryServingRequest to JSON. * @function toJSON - * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * @memberof vtctldata.SetShardIsPrimaryServingRequest * @instance * @returns {Object.} JSON object */ - ReloadSchemaKeyspaceRequest.prototype.toJSON = function toJSON() { + SetShardIsPrimaryServingRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReloadSchemaKeyspaceRequest + * Gets the default type url for SetShardIsPrimaryServingRequest * @function getTypeUrl - * @memberof vtctldata.ReloadSchemaKeyspaceRequest + * @memberof vtctldata.SetShardIsPrimaryServingRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReloadSchemaKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetShardIsPrimaryServingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ReloadSchemaKeyspaceRequest"; + return typeUrlPrefix + "/vtctldata.SetShardIsPrimaryServingRequest"; }; - return ReloadSchemaKeyspaceRequest; + return SetShardIsPrimaryServingRequest; })(); - vtctldata.ReloadSchemaKeyspaceResponse = (function() { + vtctldata.SetShardIsPrimaryServingResponse = (function() { /** - * Properties of a ReloadSchemaKeyspaceResponse. + * Properties of a SetShardIsPrimaryServingResponse. * @memberof vtctldata - * @interface IReloadSchemaKeyspaceResponse - * @property {Array.|null} [events] ReloadSchemaKeyspaceResponse events + * @interface ISetShardIsPrimaryServingResponse + * @property {topodata.IShard|null} [shard] SetShardIsPrimaryServingResponse shard */ /** - * Constructs a new ReloadSchemaKeyspaceResponse. + * Constructs a new SetShardIsPrimaryServingResponse. * @memberof vtctldata - * @classdesc Represents a ReloadSchemaKeyspaceResponse. - * @implements IReloadSchemaKeyspaceResponse + * @classdesc Represents a SetShardIsPrimaryServingResponse. + * @implements ISetShardIsPrimaryServingResponse * @constructor - * @param {vtctldata.IReloadSchemaKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.ISetShardIsPrimaryServingResponse=} [properties] Properties to set */ - function ReloadSchemaKeyspaceResponse(properties) { - this.events = []; + function SetShardIsPrimaryServingResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -173558,78 +181803,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ReloadSchemaKeyspaceResponse events. - * @member {Array.} events - * @memberof vtctldata.ReloadSchemaKeyspaceResponse + * SetShardIsPrimaryServingResponse shard. + * @member {topodata.IShard|null|undefined} shard + * @memberof vtctldata.SetShardIsPrimaryServingResponse * @instance */ - ReloadSchemaKeyspaceResponse.prototype.events = $util.emptyArray; + SetShardIsPrimaryServingResponse.prototype.shard = null; /** - * Creates a new ReloadSchemaKeyspaceResponse instance using the specified properties. + * Creates a new SetShardIsPrimaryServingResponse instance using the specified properties. * @function create - * @memberof vtctldata.ReloadSchemaKeyspaceResponse + * @memberof vtctldata.SetShardIsPrimaryServingResponse * @static - * @param {vtctldata.IReloadSchemaKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.ReloadSchemaKeyspaceResponse} ReloadSchemaKeyspaceResponse instance + * @param {vtctldata.ISetShardIsPrimaryServingResponse=} [properties] Properties to set + * @returns {vtctldata.SetShardIsPrimaryServingResponse} SetShardIsPrimaryServingResponse instance */ - ReloadSchemaKeyspaceResponse.create = function create(properties) { - return new ReloadSchemaKeyspaceResponse(properties); + SetShardIsPrimaryServingResponse.create = function create(properties) { + return new SetShardIsPrimaryServingResponse(properties); }; /** - * Encodes the specified ReloadSchemaKeyspaceResponse message. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceResponse.verify|verify} messages. + * Encodes the specified SetShardIsPrimaryServingResponse message. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ReloadSchemaKeyspaceResponse + * @memberof vtctldata.SetShardIsPrimaryServingResponse * @static - * @param {vtctldata.IReloadSchemaKeyspaceResponse} message ReloadSchemaKeyspaceResponse message or plain object to encode + * @param {vtctldata.ISetShardIsPrimaryServingResponse} message SetShardIsPrimaryServingResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaKeyspaceResponse.encode = function encode(message, writer) { + SetShardIsPrimaryServingResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.events != null && message.events.length) - for (let i = 0; i < message.events.length; ++i) - $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + $root.topodata.Shard.encode(message.shard, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReloadSchemaKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceResponse.verify|verify} messages. + * Encodes the specified SetShardIsPrimaryServingResponse message, length delimited. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ReloadSchemaKeyspaceResponse + * @memberof vtctldata.SetShardIsPrimaryServingResponse * @static - * @param {vtctldata.IReloadSchemaKeyspaceResponse} message ReloadSchemaKeyspaceResponse message or plain object to encode + * @param {vtctldata.ISetShardIsPrimaryServingResponse} message SetShardIsPrimaryServingResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + SetShardIsPrimaryServingResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer. + * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ReloadSchemaKeyspaceResponse + * @memberof vtctldata.SetShardIsPrimaryServingResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ReloadSchemaKeyspaceResponse} ReloadSchemaKeyspaceResponse + * @returns {vtctldata.SetShardIsPrimaryServingResponse} SetShardIsPrimaryServingResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaKeyspaceResponse.decode = function decode(reader, length) { + SetShardIsPrimaryServingResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReloadSchemaKeyspaceResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetShardIsPrimaryServingResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.logutil.Event.decode(reader, reader.uint32())); + message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); break; } default: @@ -173641,143 +181883,135 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ReloadSchemaKeyspaceResponse + * @memberof vtctldata.SetShardIsPrimaryServingResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ReloadSchemaKeyspaceResponse} ReloadSchemaKeyspaceResponse + * @returns {vtctldata.SetShardIsPrimaryServingResponse} SetShardIsPrimaryServingResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + SetShardIsPrimaryServingResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReloadSchemaKeyspaceResponse message. + * Verifies a SetShardIsPrimaryServingResponse message. * @function verify - * @memberof vtctldata.ReloadSchemaKeyspaceResponse + * @memberof vtctldata.SetShardIsPrimaryServingResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReloadSchemaKeyspaceResponse.verify = function verify(message) { + SetShardIsPrimaryServingResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (let i = 0; i < message.events.length; ++i) { - let error = $root.logutil.Event.verify(message.events[i]); - if (error) - return "events." + error; - } + if (message.shard != null && message.hasOwnProperty("shard")) { + let error = $root.topodata.Shard.verify(message.shard); + if (error) + return "shard." + error; } return null; }; /** - * Creates a ReloadSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetShardIsPrimaryServingResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ReloadSchemaKeyspaceResponse + * @memberof vtctldata.SetShardIsPrimaryServingResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ReloadSchemaKeyspaceResponse} ReloadSchemaKeyspaceResponse + * @returns {vtctldata.SetShardIsPrimaryServingResponse} SetShardIsPrimaryServingResponse */ - ReloadSchemaKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ReloadSchemaKeyspaceResponse) + SetShardIsPrimaryServingResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SetShardIsPrimaryServingResponse) return object; - let message = new $root.vtctldata.ReloadSchemaKeyspaceResponse(); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".vtctldata.ReloadSchemaKeyspaceResponse.events: array expected"); - message.events = []; - for (let i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".vtctldata.ReloadSchemaKeyspaceResponse.events: object expected"); - message.events[i] = $root.logutil.Event.fromObject(object.events[i]); - } + let message = new $root.vtctldata.SetShardIsPrimaryServingResponse(); + if (object.shard != null) { + if (typeof object.shard !== "object") + throw TypeError(".vtctldata.SetShardIsPrimaryServingResponse.shard: object expected"); + message.shard = $root.topodata.Shard.fromObject(object.shard); } return message; }; /** - * Creates a plain object from a ReloadSchemaKeyspaceResponse message. Also converts values to other types if specified. + * Creates a plain object from a SetShardIsPrimaryServingResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ReloadSchemaKeyspaceResponse + * @memberof vtctldata.SetShardIsPrimaryServingResponse * @static - * @param {vtctldata.ReloadSchemaKeyspaceResponse} message ReloadSchemaKeyspaceResponse + * @param {vtctldata.SetShardIsPrimaryServingResponse} message SetShardIsPrimaryServingResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReloadSchemaKeyspaceResponse.toObject = function toObject(message, options) { + SetShardIsPrimaryServingResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (message.events && message.events.length) { - object.events = []; - for (let j = 0; j < message.events.length; ++j) - object.events[j] = $root.logutil.Event.toObject(message.events[j], options); - } + if (options.defaults) + object.shard = null; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = $root.topodata.Shard.toObject(message.shard, options); return object; }; /** - * Converts this ReloadSchemaKeyspaceResponse to JSON. + * Converts this SetShardIsPrimaryServingResponse to JSON. * @function toJSON - * @memberof vtctldata.ReloadSchemaKeyspaceResponse + * @memberof vtctldata.SetShardIsPrimaryServingResponse * @instance * @returns {Object.} JSON object */ - ReloadSchemaKeyspaceResponse.prototype.toJSON = function toJSON() { + SetShardIsPrimaryServingResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReloadSchemaKeyspaceResponse + * Gets the default type url for SetShardIsPrimaryServingResponse * @function getTypeUrl - * @memberof vtctldata.ReloadSchemaKeyspaceResponse + * @memberof vtctldata.SetShardIsPrimaryServingResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReloadSchemaKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetShardIsPrimaryServingResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ReloadSchemaKeyspaceResponse"; + return typeUrlPrefix + "/vtctldata.SetShardIsPrimaryServingResponse"; }; - return ReloadSchemaKeyspaceResponse; + return SetShardIsPrimaryServingResponse; })(); - vtctldata.ReloadSchemaShardRequest = (function() { + vtctldata.SetShardTabletControlRequest = (function() { /** - * Properties of a ReloadSchemaShardRequest. + * Properties of a SetShardTabletControlRequest. * @memberof vtctldata - * @interface IReloadSchemaShardRequest - * @property {string|null} [keyspace] ReloadSchemaShardRequest keyspace - * @property {string|null} [shard] ReloadSchemaShardRequest shard - * @property {string|null} [wait_position] ReloadSchemaShardRequest wait_position - * @property {boolean|null} [include_primary] ReloadSchemaShardRequest include_primary - * @property {number|null} [concurrency] ReloadSchemaShardRequest concurrency + * @interface ISetShardTabletControlRequest + * @property {string|null} [keyspace] SetShardTabletControlRequest keyspace + * @property {string|null} [shard] SetShardTabletControlRequest shard + * @property {topodata.TabletType|null} [tablet_type] SetShardTabletControlRequest tablet_type + * @property {Array.|null} [cells] SetShardTabletControlRequest cells + * @property {Array.|null} [denied_tables] SetShardTabletControlRequest denied_tables + * @property {boolean|null} [disable_query_service] SetShardTabletControlRequest disable_query_service + * @property {boolean|null} [remove] SetShardTabletControlRequest remove */ /** - * Constructs a new ReloadSchemaShardRequest. + * Constructs a new SetShardTabletControlRequest. * @memberof vtctldata - * @classdesc Represents a ReloadSchemaShardRequest. - * @implements IReloadSchemaShardRequest + * @classdesc Represents a SetShardTabletControlRequest. + * @implements ISetShardTabletControlRequest * @constructor - * @param {vtctldata.IReloadSchemaShardRequest=} [properties] Properties to set + * @param {vtctldata.ISetShardTabletControlRequest=} [properties] Properties to set */ - function ReloadSchemaShardRequest(properties) { + function SetShardTabletControlRequest(properties) { + this.cells = []; + this.denied_tables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -173785,110 +182019,132 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ReloadSchemaShardRequest keyspace. + * SetShardTabletControlRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.ReloadSchemaShardRequest + * @memberof vtctldata.SetShardTabletControlRequest * @instance */ - ReloadSchemaShardRequest.prototype.keyspace = ""; + SetShardTabletControlRequest.prototype.keyspace = ""; /** - * ReloadSchemaShardRequest shard. + * SetShardTabletControlRequest shard. * @member {string} shard - * @memberof vtctldata.ReloadSchemaShardRequest + * @memberof vtctldata.SetShardTabletControlRequest * @instance */ - ReloadSchemaShardRequest.prototype.shard = ""; + SetShardTabletControlRequest.prototype.shard = ""; /** - * ReloadSchemaShardRequest wait_position. - * @member {string} wait_position - * @memberof vtctldata.ReloadSchemaShardRequest + * SetShardTabletControlRequest tablet_type. + * @member {topodata.TabletType} tablet_type + * @memberof vtctldata.SetShardTabletControlRequest * @instance */ - ReloadSchemaShardRequest.prototype.wait_position = ""; + SetShardTabletControlRequest.prototype.tablet_type = 0; /** - * ReloadSchemaShardRequest include_primary. - * @member {boolean} include_primary - * @memberof vtctldata.ReloadSchemaShardRequest + * SetShardTabletControlRequest cells. + * @member {Array.} cells + * @memberof vtctldata.SetShardTabletControlRequest * @instance */ - ReloadSchemaShardRequest.prototype.include_primary = false; + SetShardTabletControlRequest.prototype.cells = $util.emptyArray; /** - * ReloadSchemaShardRequest concurrency. - * @member {number} concurrency - * @memberof vtctldata.ReloadSchemaShardRequest + * SetShardTabletControlRequest denied_tables. + * @member {Array.} denied_tables + * @memberof vtctldata.SetShardTabletControlRequest * @instance */ - ReloadSchemaShardRequest.prototype.concurrency = 0; + SetShardTabletControlRequest.prototype.denied_tables = $util.emptyArray; /** - * Creates a new ReloadSchemaShardRequest instance using the specified properties. + * SetShardTabletControlRequest disable_query_service. + * @member {boolean} disable_query_service + * @memberof vtctldata.SetShardTabletControlRequest + * @instance + */ + SetShardTabletControlRequest.prototype.disable_query_service = false; + + /** + * SetShardTabletControlRequest remove. + * @member {boolean} remove + * @memberof vtctldata.SetShardTabletControlRequest + * @instance + */ + SetShardTabletControlRequest.prototype.remove = false; + + /** + * Creates a new SetShardTabletControlRequest instance using the specified properties. * @function create - * @memberof vtctldata.ReloadSchemaShardRequest + * @memberof vtctldata.SetShardTabletControlRequest * @static - * @param {vtctldata.IReloadSchemaShardRequest=} [properties] Properties to set - * @returns {vtctldata.ReloadSchemaShardRequest} ReloadSchemaShardRequest instance + * @param {vtctldata.ISetShardTabletControlRequest=} [properties] Properties to set + * @returns {vtctldata.SetShardTabletControlRequest} SetShardTabletControlRequest instance */ - ReloadSchemaShardRequest.create = function create(properties) { - return new ReloadSchemaShardRequest(properties); + SetShardTabletControlRequest.create = function create(properties) { + return new SetShardTabletControlRequest(properties); }; /** - * Encodes the specified ReloadSchemaShardRequest message. Does not implicitly {@link vtctldata.ReloadSchemaShardRequest.verify|verify} messages. + * Encodes the specified SetShardTabletControlRequest message. Does not implicitly {@link vtctldata.SetShardTabletControlRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ReloadSchemaShardRequest + * @memberof vtctldata.SetShardTabletControlRequest * @static - * @param {vtctldata.IReloadSchemaShardRequest} message ReloadSchemaShardRequest message or plain object to encode + * @param {vtctldata.ISetShardTabletControlRequest} message SetShardTabletControlRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaShardRequest.encode = function encode(message, writer) { + SetShardTabletControlRequest.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.wait_position != null && Object.hasOwnProperty.call(message, "wait_position")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.wait_position); - if (message.include_primary != null && Object.hasOwnProperty.call(message, "include_primary")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_primary); - if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.concurrency); + if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.tablet_type); + if (message.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.cells[i]); + if (message.denied_tables != null && message.denied_tables.length) + for (let i = 0; i < message.denied_tables.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.denied_tables[i]); + if (message.disable_query_service != null && Object.hasOwnProperty.call(message, "disable_query_service")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disable_query_service); + if (message.remove != null && Object.hasOwnProperty.call(message, "remove")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.remove); return writer; }; /** - * Encodes the specified ReloadSchemaShardRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaShardRequest.verify|verify} messages. + * Encodes the specified SetShardTabletControlRequest message, length delimited. Does not implicitly {@link vtctldata.SetShardTabletControlRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ReloadSchemaShardRequest + * @memberof vtctldata.SetShardTabletControlRequest * @static - * @param {vtctldata.IReloadSchemaShardRequest} message ReloadSchemaShardRequest message or plain object to encode + * @param {vtctldata.ISetShardTabletControlRequest} message SetShardTabletControlRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetShardTabletControlRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer. + * Decodes a SetShardTabletControlRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ReloadSchemaShardRequest + * @memberof vtctldata.SetShardTabletControlRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ReloadSchemaShardRequest} ReloadSchemaShardRequest + * @returns {vtctldata.SetShardTabletControlRequest} SetShardTabletControlRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaShardRequest.decode = function decode(reader, length) { + SetShardTabletControlRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReloadSchemaShardRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetShardTabletControlRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -173901,15 +182157,27 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 3: { - message.wait_position = reader.string(); + message.tablet_type = reader.int32(); break; } case 4: { - message.include_primary = reader.bool(); + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; } case 5: { - message.concurrency = reader.int32(); + if (!(message.denied_tables && message.denied_tables.length)) + message.denied_tables = []; + message.denied_tables.push(reader.string()); + break; + } + case 6: { + message.disable_query_service = reader.bool(); + break; + } + case 7: { + message.remove = reader.bool(); break; } default: @@ -173921,30 +182189,30 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer, length delimited. + * Decodes a SetShardTabletControlRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ReloadSchemaShardRequest + * @memberof vtctldata.SetShardTabletControlRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ReloadSchemaShardRequest} ReloadSchemaShardRequest + * @returns {vtctldata.SetShardTabletControlRequest} SetShardTabletControlRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaShardRequest.decodeDelimited = function decodeDelimited(reader) { + SetShardTabletControlRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReloadSchemaShardRequest message. + * Verifies a SetShardTabletControlRequest message. * @function verify - * @memberof vtctldata.ReloadSchemaShardRequest + * @memberof vtctldata.SetShardTabletControlRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReloadSchemaShardRequest.verify = function verify(message) { + SetShardTabletControlRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) @@ -173953,124 +182221,229 @@ export const vtctldata = $root.vtctldata = (() => { if (message.shard != null && message.hasOwnProperty("shard")) if (!$util.isString(message.shard)) return "shard: string expected"; - if (message.wait_position != null && message.hasOwnProperty("wait_position")) - if (!$util.isString(message.wait_position)) - return "wait_position: string expected"; - if (message.include_primary != null && message.hasOwnProperty("include_primary")) - if (typeof message.include_primary !== "boolean") - return "include_primary: boolean expected"; - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - if (!$util.isInteger(message.concurrency)) - return "concurrency: integer 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.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } + if (message.denied_tables != null && message.hasOwnProperty("denied_tables")) { + if (!Array.isArray(message.denied_tables)) + return "denied_tables: array expected"; + for (let i = 0; i < message.denied_tables.length; ++i) + if (!$util.isString(message.denied_tables[i])) + return "denied_tables: string[] expected"; + } + if (message.disable_query_service != null && message.hasOwnProperty("disable_query_service")) + if (typeof message.disable_query_service !== "boolean") + return "disable_query_service: boolean expected"; + if (message.remove != null && message.hasOwnProperty("remove")) + if (typeof message.remove !== "boolean") + return "remove: boolean expected"; return null; }; /** - * Creates a ReloadSchemaShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetShardTabletControlRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ReloadSchemaShardRequest + * @memberof vtctldata.SetShardTabletControlRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ReloadSchemaShardRequest} ReloadSchemaShardRequest + * @returns {vtctldata.SetShardTabletControlRequest} SetShardTabletControlRequest */ - ReloadSchemaShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ReloadSchemaShardRequest) + SetShardTabletControlRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SetShardTabletControlRequest) return object; - let message = new $root.vtctldata.ReloadSchemaShardRequest(); + let message = new $root.vtctldata.SetShardTabletControlRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); if (object.shard != null) message.shard = String(object.shard); - if (object.wait_position != null) - message.wait_position = String(object.wait_position); - if (object.include_primary != null) - message.include_primary = Boolean(object.include_primary); - if (object.concurrency != null) - message.concurrency = object.concurrency | 0; + switch (object.tablet_type) { + default: + if (typeof object.tablet_type === "number") { + message.tablet_type = object.tablet_type; + break; + } + break; + 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.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.SetShardTabletControlRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } + if (object.denied_tables) { + if (!Array.isArray(object.denied_tables)) + throw TypeError(".vtctldata.SetShardTabletControlRequest.denied_tables: array expected"); + message.denied_tables = []; + for (let i = 0; i < object.denied_tables.length; ++i) + message.denied_tables[i] = String(object.denied_tables[i]); + } + if (object.disable_query_service != null) + message.disable_query_service = Boolean(object.disable_query_service); + if (object.remove != null) + message.remove = Boolean(object.remove); return message; }; /** - * Creates a plain object from a ReloadSchemaShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetShardTabletControlRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ReloadSchemaShardRequest + * @memberof vtctldata.SetShardTabletControlRequest * @static - * @param {vtctldata.ReloadSchemaShardRequest} message ReloadSchemaShardRequest + * @param {vtctldata.SetShardTabletControlRequest} message SetShardTabletControlRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReloadSchemaShardRequest.toObject = function toObject(message, options) { + SetShardTabletControlRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.cells = []; + object.denied_tables = []; + } if (options.defaults) { object.keyspace = ""; object.shard = ""; - object.wait_position = ""; - object.include_primary = false; - object.concurrency = 0; + object.tablet_type = options.enums === String ? "UNKNOWN" : 0; + object.disable_query_service = false; + object.remove = false; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; if (message.shard != null && message.hasOwnProperty("shard")) object.shard = message.shard; - if (message.wait_position != null && message.hasOwnProperty("wait_position")) - object.wait_position = message.wait_position; - if (message.include_primary != null && message.hasOwnProperty("include_primary")) - object.include_primary = message.include_primary; - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - object.concurrency = message.concurrency; + if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) + object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] === undefined ? message.tablet_type : $root.topodata.TabletType[message.tablet_type] : message.tablet_type; + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + if (message.denied_tables && message.denied_tables.length) { + object.denied_tables = []; + for (let j = 0; j < message.denied_tables.length; ++j) + object.denied_tables[j] = message.denied_tables[j]; + } + if (message.disable_query_service != null && message.hasOwnProperty("disable_query_service")) + object.disable_query_service = message.disable_query_service; + if (message.remove != null && message.hasOwnProperty("remove")) + object.remove = message.remove; return object; }; /** - * Converts this ReloadSchemaShardRequest to JSON. + * Converts this SetShardTabletControlRequest to JSON. * @function toJSON - * @memberof vtctldata.ReloadSchemaShardRequest + * @memberof vtctldata.SetShardTabletControlRequest * @instance * @returns {Object.} JSON object */ - ReloadSchemaShardRequest.prototype.toJSON = function toJSON() { + SetShardTabletControlRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReloadSchemaShardRequest + * Gets the default type url for SetShardTabletControlRequest * @function getTypeUrl - * @memberof vtctldata.ReloadSchemaShardRequest + * @memberof vtctldata.SetShardTabletControlRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReloadSchemaShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetShardTabletControlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ReloadSchemaShardRequest"; + return typeUrlPrefix + "/vtctldata.SetShardTabletControlRequest"; }; - return ReloadSchemaShardRequest; + return SetShardTabletControlRequest; })(); - vtctldata.ReloadSchemaShardResponse = (function() { + vtctldata.SetShardTabletControlResponse = (function() { /** - * Properties of a ReloadSchemaShardResponse. + * Properties of a SetShardTabletControlResponse. * @memberof vtctldata - * @interface IReloadSchemaShardResponse - * @property {Array.|null} [events] ReloadSchemaShardResponse events + * @interface ISetShardTabletControlResponse + * @property {topodata.IShard|null} [shard] SetShardTabletControlResponse shard */ /** - * Constructs a new ReloadSchemaShardResponse. + * Constructs a new SetShardTabletControlResponse. * @memberof vtctldata - * @classdesc Represents a ReloadSchemaShardResponse. - * @implements IReloadSchemaShardResponse + * @classdesc Represents a SetShardTabletControlResponse. + * @implements ISetShardTabletControlResponse * @constructor - * @param {vtctldata.IReloadSchemaShardResponse=} [properties] Properties to set + * @param {vtctldata.ISetShardTabletControlResponse=} [properties] Properties to set */ - function ReloadSchemaShardResponse(properties) { - this.events = []; + function SetShardTabletControlResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174078,78 +182451,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ReloadSchemaShardResponse events. - * @member {Array.} events - * @memberof vtctldata.ReloadSchemaShardResponse + * SetShardTabletControlResponse shard. + * @member {topodata.IShard|null|undefined} shard + * @memberof vtctldata.SetShardTabletControlResponse * @instance */ - ReloadSchemaShardResponse.prototype.events = $util.emptyArray; + SetShardTabletControlResponse.prototype.shard = null; /** - * Creates a new ReloadSchemaShardResponse instance using the specified properties. + * Creates a new SetShardTabletControlResponse instance using the specified properties. * @function create - * @memberof vtctldata.ReloadSchemaShardResponse + * @memberof vtctldata.SetShardTabletControlResponse * @static - * @param {vtctldata.IReloadSchemaShardResponse=} [properties] Properties to set - * @returns {vtctldata.ReloadSchemaShardResponse} ReloadSchemaShardResponse instance + * @param {vtctldata.ISetShardTabletControlResponse=} [properties] Properties to set + * @returns {vtctldata.SetShardTabletControlResponse} SetShardTabletControlResponse instance */ - ReloadSchemaShardResponse.create = function create(properties) { - return new ReloadSchemaShardResponse(properties); + SetShardTabletControlResponse.create = function create(properties) { + return new SetShardTabletControlResponse(properties); }; /** - * Encodes the specified ReloadSchemaShardResponse message. Does not implicitly {@link vtctldata.ReloadSchemaShardResponse.verify|verify} messages. + * Encodes the specified SetShardTabletControlResponse message. Does not implicitly {@link vtctldata.SetShardTabletControlResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ReloadSchemaShardResponse + * @memberof vtctldata.SetShardTabletControlResponse * @static - * @param {vtctldata.IReloadSchemaShardResponse} message ReloadSchemaShardResponse message or plain object to encode + * @param {vtctldata.ISetShardTabletControlResponse} message SetShardTabletControlResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaShardResponse.encode = function encode(message, writer) { + SetShardTabletControlResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.events != null && message.events.length) - for (let i = 0; i < message.events.length; ++i) - $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + $root.topodata.Shard.encode(message.shard, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReloadSchemaShardResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaShardResponse.verify|verify} messages. + * Encodes the specified SetShardTabletControlResponse message, length delimited. Does not implicitly {@link vtctldata.SetShardTabletControlResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ReloadSchemaShardResponse + * @memberof vtctldata.SetShardTabletControlResponse * @static - * @param {vtctldata.IReloadSchemaShardResponse} message ReloadSchemaShardResponse message or plain object to encode + * @param {vtctldata.ISetShardTabletControlResponse} message SetShardTabletControlResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReloadSchemaShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + SetShardTabletControlResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer. + * Decodes a SetShardTabletControlResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ReloadSchemaShardResponse + * @memberof vtctldata.SetShardTabletControlResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ReloadSchemaShardResponse} ReloadSchemaShardResponse + * @returns {vtctldata.SetShardTabletControlResponse} SetShardTabletControlResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaShardResponse.decode = function decode(reader, length) { + SetShardTabletControlResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReloadSchemaShardResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetShardTabletControlResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.logutil.Event.decode(reader, reader.uint32())); + case 1: { + message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); break; } default: @@ -174161,141 +182531,128 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer, length delimited. + * Decodes a SetShardTabletControlResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ReloadSchemaShardResponse + * @memberof vtctldata.SetShardTabletControlResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ReloadSchemaShardResponse} ReloadSchemaShardResponse + * @returns {vtctldata.SetShardTabletControlResponse} SetShardTabletControlResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReloadSchemaShardResponse.decodeDelimited = function decodeDelimited(reader) { + SetShardTabletControlResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReloadSchemaShardResponse message. + * Verifies a SetShardTabletControlResponse message. * @function verify - * @memberof vtctldata.ReloadSchemaShardResponse + * @memberof vtctldata.SetShardTabletControlResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReloadSchemaShardResponse.verify = function verify(message) { + SetShardTabletControlResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (let i = 0; i < message.events.length; ++i) { - let error = $root.logutil.Event.verify(message.events[i]); - if (error) - return "events." + error; - } + if (message.shard != null && message.hasOwnProperty("shard")) { + let error = $root.topodata.Shard.verify(message.shard); + if (error) + return "shard." + error; } return null; }; /** - * Creates a ReloadSchemaShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetShardTabletControlResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ReloadSchemaShardResponse + * @memberof vtctldata.SetShardTabletControlResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ReloadSchemaShardResponse} ReloadSchemaShardResponse + * @returns {vtctldata.SetShardTabletControlResponse} SetShardTabletControlResponse */ - ReloadSchemaShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ReloadSchemaShardResponse) + SetShardTabletControlResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SetShardTabletControlResponse) return object; - let message = new $root.vtctldata.ReloadSchemaShardResponse(); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".vtctldata.ReloadSchemaShardResponse.events: array expected"); - message.events = []; - for (let i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".vtctldata.ReloadSchemaShardResponse.events: object expected"); - message.events[i] = $root.logutil.Event.fromObject(object.events[i]); - } + let message = new $root.vtctldata.SetShardTabletControlResponse(); + if (object.shard != null) { + if (typeof object.shard !== "object") + throw TypeError(".vtctldata.SetShardTabletControlResponse.shard: object expected"); + message.shard = $root.topodata.Shard.fromObject(object.shard); } return message; }; /** - * Creates a plain object from a ReloadSchemaShardResponse message. Also converts values to other types if specified. + * Creates a plain object from a SetShardTabletControlResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ReloadSchemaShardResponse + * @memberof vtctldata.SetShardTabletControlResponse * @static - * @param {vtctldata.ReloadSchemaShardResponse} message ReloadSchemaShardResponse + * @param {vtctldata.SetShardTabletControlResponse} message SetShardTabletControlResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReloadSchemaShardResponse.toObject = function toObject(message, options) { + SetShardTabletControlResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (message.events && message.events.length) { - object.events = []; - for (let j = 0; j < message.events.length; ++j) - object.events[j] = $root.logutil.Event.toObject(message.events[j], options); - } + if (options.defaults) + object.shard = null; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = $root.topodata.Shard.toObject(message.shard, options); return object; }; /** - * Converts this ReloadSchemaShardResponse to JSON. + * Converts this SetShardTabletControlResponse to JSON. * @function toJSON - * @memberof vtctldata.ReloadSchemaShardResponse + * @memberof vtctldata.SetShardTabletControlResponse * @instance * @returns {Object.} JSON object */ - ReloadSchemaShardResponse.prototype.toJSON = function toJSON() { + SetShardTabletControlResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReloadSchemaShardResponse + * Gets the default type url for SetShardTabletControlResponse * @function getTypeUrl - * @memberof vtctldata.ReloadSchemaShardResponse + * @memberof vtctldata.SetShardTabletControlResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReloadSchemaShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetShardTabletControlResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ReloadSchemaShardResponse"; + return typeUrlPrefix + "/vtctldata.SetShardTabletControlResponse"; }; - return ReloadSchemaShardResponse; + return SetShardTabletControlResponse; })(); - vtctldata.RemoveBackupRequest = (function() { + vtctldata.SetWritableRequest = (function() { /** - * Properties of a RemoveBackupRequest. + * Properties of a SetWritableRequest. * @memberof vtctldata - * @interface IRemoveBackupRequest - * @property {string|null} [keyspace] RemoveBackupRequest keyspace - * @property {string|null} [shard] RemoveBackupRequest shard - * @property {string|null} [name] RemoveBackupRequest name + * @interface ISetWritableRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] SetWritableRequest tablet_alias + * @property {boolean|null} [writable] SetWritableRequest writable */ /** - * Constructs a new RemoveBackupRequest. + * Constructs a new SetWritableRequest. * @memberof vtctldata - * @classdesc Represents a RemoveBackupRequest. - * @implements IRemoveBackupRequest + * @classdesc Represents a SetWritableRequest. + * @implements ISetWritableRequest * @constructor - * @param {vtctldata.IRemoveBackupRequest=} [properties] Properties to set + * @param {vtctldata.ISetWritableRequest=} [properties] Properties to set */ - function RemoveBackupRequest(properties) { + function SetWritableRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174303,103 +182660,89 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * RemoveBackupRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.RemoveBackupRequest - * @instance - */ - RemoveBackupRequest.prototype.keyspace = ""; - - /** - * RemoveBackupRequest shard. - * @member {string} shard - * @memberof vtctldata.RemoveBackupRequest + * SetWritableRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.SetWritableRequest * @instance */ - RemoveBackupRequest.prototype.shard = ""; + SetWritableRequest.prototype.tablet_alias = null; /** - * RemoveBackupRequest name. - * @member {string} name - * @memberof vtctldata.RemoveBackupRequest + * SetWritableRequest writable. + * @member {boolean} writable + * @memberof vtctldata.SetWritableRequest * @instance */ - RemoveBackupRequest.prototype.name = ""; + SetWritableRequest.prototype.writable = false; /** - * Creates a new RemoveBackupRequest instance using the specified properties. + * Creates a new SetWritableRequest instance using the specified properties. * @function create - * @memberof vtctldata.RemoveBackupRequest + * @memberof vtctldata.SetWritableRequest * @static - * @param {vtctldata.IRemoveBackupRequest=} [properties] Properties to set - * @returns {vtctldata.RemoveBackupRequest} RemoveBackupRequest instance + * @param {vtctldata.ISetWritableRequest=} [properties] Properties to set + * @returns {vtctldata.SetWritableRequest} SetWritableRequest instance */ - RemoveBackupRequest.create = function create(properties) { - return new RemoveBackupRequest(properties); + SetWritableRequest.create = function create(properties) { + return new SetWritableRequest(properties); }; /** - * Encodes the specified RemoveBackupRequest message. Does not implicitly {@link vtctldata.RemoveBackupRequest.verify|verify} messages. + * Encodes the specified SetWritableRequest message. Does not implicitly {@link vtctldata.SetWritableRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveBackupRequest + * @memberof vtctldata.SetWritableRequest * @static - * @param {vtctldata.IRemoveBackupRequest} message RemoveBackupRequest message or plain object to encode + * @param {vtctldata.ISetWritableRequest} message SetWritableRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveBackupRequest.encode = function encode(message, writer) { + SetWritableRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + 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.writable != null && Object.hasOwnProperty.call(message, "writable")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.writable); return writer; }; /** - * Encodes the specified RemoveBackupRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveBackupRequest.verify|verify} messages. + * Encodes the specified SetWritableRequest message, length delimited. Does not implicitly {@link vtctldata.SetWritableRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveBackupRequest + * @memberof vtctldata.SetWritableRequest * @static - * @param {vtctldata.IRemoveBackupRequest} message RemoveBackupRequest message or plain object to encode + * @param {vtctldata.ISetWritableRequest} message SetWritableRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveBackupRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetWritableRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveBackupRequest message from the specified reader or buffer. + * Decodes a SetWritableRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveBackupRequest + * @memberof vtctldata.SetWritableRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RemoveBackupRequest} RemoveBackupRequest + * @returns {vtctldata.SetWritableRequest} SetWritableRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveBackupRequest.decode = function decode(reader, length) { + SetWritableRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveBackupRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetWritableRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } case 2: { - message.shard = reader.string(); - break; - } - case 3: { - message.name = reader.string(); + message.writable = reader.bool(); break; } default: @@ -174411,138 +182754,135 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RemoveBackupRequest message from the specified reader or buffer, length delimited. + * Decodes a SetWritableRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RemoveBackupRequest + * @memberof vtctldata.SetWritableRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveBackupRequest} RemoveBackupRequest + * @returns {vtctldata.SetWritableRequest} SetWritableRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveBackupRequest.decodeDelimited = function decodeDelimited(reader) { + SetWritableRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveBackupRequest message. + * Verifies a SetWritableRequest message. * @function verify - * @memberof vtctldata.RemoveBackupRequest + * @memberof vtctldata.SetWritableRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveBackupRequest.verify = function verify(message) { + SetWritableRequest.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.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.writable != null && message.hasOwnProperty("writable")) + if (typeof message.writable !== "boolean") + return "writable: boolean expected"; return null; }; /** - * Creates a RemoveBackupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetWritableRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RemoveBackupRequest + * @memberof vtctldata.SetWritableRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveBackupRequest} RemoveBackupRequest + * @returns {vtctldata.SetWritableRequest} SetWritableRequest */ - RemoveBackupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveBackupRequest) + SetWritableRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SetWritableRequest) return object; - let message = new $root.vtctldata.RemoveBackupRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.name != null) - message.name = String(object.name); + let message = new $root.vtctldata.SetWritableRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.SetWritableRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.writable != null) + message.writable = Boolean(object.writable); return message; }; /** - * Creates a plain object from a RemoveBackupRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetWritableRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RemoveBackupRequest + * @memberof vtctldata.SetWritableRequest * @static - * @param {vtctldata.RemoveBackupRequest} message RemoveBackupRequest + * @param {vtctldata.SetWritableRequest} message SetWritableRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveBackupRequest.toObject = function toObject(message, options) { + SetWritableRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.name = ""; + object.tablet_alias = null; + object.writable = false; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.writable != null && message.hasOwnProperty("writable")) + object.writable = message.writable; return object; }; /** - * Converts this RemoveBackupRequest to JSON. + * Converts this SetWritableRequest to JSON. * @function toJSON - * @memberof vtctldata.RemoveBackupRequest + * @memberof vtctldata.SetWritableRequest * @instance * @returns {Object.} JSON object */ - RemoveBackupRequest.prototype.toJSON = function toJSON() { + SetWritableRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveBackupRequest + * Gets the default type url for SetWritableRequest * @function getTypeUrl - * @memberof vtctldata.RemoveBackupRequest + * @memberof vtctldata.SetWritableRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveBackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetWritableRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RemoveBackupRequest"; + return typeUrlPrefix + "/vtctldata.SetWritableRequest"; }; - return RemoveBackupRequest; + return SetWritableRequest; })(); - vtctldata.RemoveBackupResponse = (function() { + vtctldata.SetWritableResponse = (function() { /** - * Properties of a RemoveBackupResponse. + * Properties of a SetWritableResponse. * @memberof vtctldata - * @interface IRemoveBackupResponse + * @interface ISetWritableResponse */ /** - * Constructs a new RemoveBackupResponse. + * Constructs a new SetWritableResponse. * @memberof vtctldata - * @classdesc Represents a RemoveBackupResponse. - * @implements IRemoveBackupResponse + * @classdesc Represents a SetWritableResponse. + * @implements ISetWritableResponse * @constructor - * @param {vtctldata.IRemoveBackupResponse=} [properties] Properties to set + * @param {vtctldata.ISetWritableResponse=} [properties] Properties to set */ - function RemoveBackupResponse(properties) { + function SetWritableResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174550,60 +182890,60 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new RemoveBackupResponse instance using the specified properties. + * Creates a new SetWritableResponse instance using the specified properties. * @function create - * @memberof vtctldata.RemoveBackupResponse + * @memberof vtctldata.SetWritableResponse * @static - * @param {vtctldata.IRemoveBackupResponse=} [properties] Properties to set - * @returns {vtctldata.RemoveBackupResponse} RemoveBackupResponse instance + * @param {vtctldata.ISetWritableResponse=} [properties] Properties to set + * @returns {vtctldata.SetWritableResponse} SetWritableResponse instance */ - RemoveBackupResponse.create = function create(properties) { - return new RemoveBackupResponse(properties); + SetWritableResponse.create = function create(properties) { + return new SetWritableResponse(properties); }; /** - * Encodes the specified RemoveBackupResponse message. Does not implicitly {@link vtctldata.RemoveBackupResponse.verify|verify} messages. + * Encodes the specified SetWritableResponse message. Does not implicitly {@link vtctldata.SetWritableResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveBackupResponse + * @memberof vtctldata.SetWritableResponse * @static - * @param {vtctldata.IRemoveBackupResponse} message RemoveBackupResponse message or plain object to encode + * @param {vtctldata.ISetWritableResponse} message SetWritableResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveBackupResponse.encode = function encode(message, writer) { + SetWritableResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified RemoveBackupResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveBackupResponse.verify|verify} messages. + * Encodes the specified SetWritableResponse message, length delimited. Does not implicitly {@link vtctldata.SetWritableResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveBackupResponse + * @memberof vtctldata.SetWritableResponse * @static - * @param {vtctldata.IRemoveBackupResponse} message RemoveBackupResponse message or plain object to encode + * @param {vtctldata.ISetWritableResponse} message SetWritableResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveBackupResponse.encodeDelimited = function encodeDelimited(message, writer) { + SetWritableResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveBackupResponse message from the specified reader or buffer. + * Decodes a SetWritableResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveBackupResponse + * @memberof vtctldata.SetWritableResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RemoveBackupResponse} RemoveBackupResponse + * @returns {vtctldata.SetWritableResponse} SetWritableResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveBackupResponse.decode = function decode(reader, length) { + SetWritableResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveBackupResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetWritableResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -174616,112 +182956,111 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RemoveBackupResponse message from the specified reader or buffer, length delimited. + * Decodes a SetWritableResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RemoveBackupResponse + * @memberof vtctldata.SetWritableResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveBackupResponse} RemoveBackupResponse + * @returns {vtctldata.SetWritableResponse} SetWritableResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveBackupResponse.decodeDelimited = function decodeDelimited(reader) { + SetWritableResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveBackupResponse message. + * Verifies a SetWritableResponse message. * @function verify - * @memberof vtctldata.RemoveBackupResponse + * @memberof vtctldata.SetWritableResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveBackupResponse.verify = function verify(message) { + SetWritableResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a RemoveBackupResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetWritableResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RemoveBackupResponse + * @memberof vtctldata.SetWritableResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveBackupResponse} RemoveBackupResponse + * @returns {vtctldata.SetWritableResponse} SetWritableResponse */ - RemoveBackupResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveBackupResponse) + SetWritableResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SetWritableResponse) return object; - return new $root.vtctldata.RemoveBackupResponse(); + return new $root.vtctldata.SetWritableResponse(); }; /** - * Creates a plain object from a RemoveBackupResponse message. Also converts values to other types if specified. + * Creates a plain object from a SetWritableResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RemoveBackupResponse + * @memberof vtctldata.SetWritableResponse * @static - * @param {vtctldata.RemoveBackupResponse} message RemoveBackupResponse + * @param {vtctldata.SetWritableResponse} message SetWritableResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveBackupResponse.toObject = function toObject() { + SetWritableResponse.toObject = function toObject() { return {}; }; /** - * Converts this RemoveBackupResponse to JSON. + * Converts this SetWritableResponse to JSON. * @function toJSON - * @memberof vtctldata.RemoveBackupResponse + * @memberof vtctldata.SetWritableResponse * @instance * @returns {Object.} JSON object */ - RemoveBackupResponse.prototype.toJSON = function toJSON() { + SetWritableResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveBackupResponse + * Gets the default type url for SetWritableResponse * @function getTypeUrl - * @memberof vtctldata.RemoveBackupResponse + * @memberof vtctldata.SetWritableResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveBackupResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetWritableResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RemoveBackupResponse"; + return typeUrlPrefix + "/vtctldata.SetWritableResponse"; }; - return RemoveBackupResponse; + return SetWritableResponse; })(); - vtctldata.RemoveKeyspaceCellRequest = (function() { + vtctldata.ShardReplicationAddRequest = (function() { /** - * Properties of a RemoveKeyspaceCellRequest. + * Properties of a ShardReplicationAddRequest. * @memberof vtctldata - * @interface IRemoveKeyspaceCellRequest - * @property {string|null} [keyspace] RemoveKeyspaceCellRequest keyspace - * @property {string|null} [cell] RemoveKeyspaceCellRequest cell - * @property {boolean|null} [force] RemoveKeyspaceCellRequest force - * @property {boolean|null} [recursive] RemoveKeyspaceCellRequest recursive + * @interface IShardReplicationAddRequest + * @property {string|null} [keyspace] ShardReplicationAddRequest keyspace + * @property {string|null} [shard] ShardReplicationAddRequest shard + * @property {topodata.ITabletAlias|null} [tablet_alias] ShardReplicationAddRequest tablet_alias */ /** - * Constructs a new RemoveKeyspaceCellRequest. + * Constructs a new ShardReplicationAddRequest. * @memberof vtctldata - * @classdesc Represents a RemoveKeyspaceCellRequest. - * @implements IRemoveKeyspaceCellRequest + * @classdesc Represents a ShardReplicationAddRequest. + * @implements IShardReplicationAddRequest * @constructor - * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set + * @param {vtctldata.IShardReplicationAddRequest=} [properties] Properties to set */ - function RemoveKeyspaceCellRequest(properties) { + function ShardReplicationAddRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174729,100 +183068,90 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * RemoveKeyspaceCellRequest keyspace. + * ShardReplicationAddRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.RemoveKeyspaceCellRequest - * @instance - */ - RemoveKeyspaceCellRequest.prototype.keyspace = ""; - - /** - * RemoveKeyspaceCellRequest cell. - * @member {string} cell - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ShardReplicationAddRequest * @instance */ - RemoveKeyspaceCellRequest.prototype.cell = ""; + ShardReplicationAddRequest.prototype.keyspace = ""; /** - * RemoveKeyspaceCellRequest force. - * @member {boolean} force - * @memberof vtctldata.RemoveKeyspaceCellRequest + * ShardReplicationAddRequest shard. + * @member {string} shard + * @memberof vtctldata.ShardReplicationAddRequest * @instance */ - RemoveKeyspaceCellRequest.prototype.force = false; + ShardReplicationAddRequest.prototype.shard = ""; /** - * RemoveKeyspaceCellRequest recursive. - * @member {boolean} recursive - * @memberof vtctldata.RemoveKeyspaceCellRequest + * ShardReplicationAddRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.ShardReplicationAddRequest * @instance */ - RemoveKeyspaceCellRequest.prototype.recursive = false; + ShardReplicationAddRequest.prototype.tablet_alias = null; /** - * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. + * Creates a new ShardReplicationAddRequest instance using the specified properties. * @function create - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ShardReplicationAddRequest * @static - * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set - * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest instance + * @param {vtctldata.IShardReplicationAddRequest=} [properties] Properties to set + * @returns {vtctldata.ShardReplicationAddRequest} ShardReplicationAddRequest instance */ - RemoveKeyspaceCellRequest.create = function create(properties) { - return new RemoveKeyspaceCellRequest(properties); + ShardReplicationAddRequest.create = function create(properties) { + return new ShardReplicationAddRequest(properties); }; /** - * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * Encodes the specified ShardReplicationAddRequest message. Does not implicitly {@link vtctldata.ShardReplicationAddRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ShardReplicationAddRequest * @static - * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest message or plain object to encode + * @param {vtctldata.IShardReplicationAddRequest} message ShardReplicationAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveKeyspaceCellRequest.encode = function encode(message, writer) { + ShardReplicationAddRequest.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.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cell); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); - if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.recursive); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified RemoveKeyspaceCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * Encodes the specified ShardReplicationAddRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationAddRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ShardReplicationAddRequest * @static - * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest message or plain object to encode + * @param {vtctldata.IShardReplicationAddRequest} message ShardReplicationAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveKeyspaceCellRequest.encodeDelimited = function encodeDelimited(message, writer) { + ShardReplicationAddRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. + * Decodes a ShardReplicationAddRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ShardReplicationAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest + * @returns {vtctldata.ShardReplicationAddRequest} ShardReplicationAddRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveKeyspaceCellRequest.decode = function decode(reader, length) { + ShardReplicationAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveKeyspaceCellRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -174831,15 +183160,11 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 2: { - message.cell = reader.string(); + message.shard = reader.string(); break; } case 3: { - message.force = reader.bool(); - break; - } - case 4: { - message.recursive = reader.bool(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -174851,146 +183176,143 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationAddRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ShardReplicationAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest + * @returns {vtctldata.ShardReplicationAddRequest} ShardReplicationAddRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveKeyspaceCellRequest.decodeDelimited = function decodeDelimited(reader) { + ShardReplicationAddRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveKeyspaceCellRequest message. + * Verifies a ShardReplicationAddRequest message. * @function verify - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ShardReplicationAddRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveKeyspaceCellRequest.verify = function verify(message) { + ShardReplicationAddRequest.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.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - if (message.recursive != null && message.hasOwnProperty("recursive")) - if (typeof message.recursive !== "boolean") - return "recursive: boolean expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } return null; }; /** - * Creates a RemoveKeyspaceCellRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ShardReplicationAddRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest + * @returns {vtctldata.ShardReplicationAddRequest} ShardReplicationAddRequest */ - RemoveKeyspaceCellRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveKeyspaceCellRequest) + ShardReplicationAddRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ShardReplicationAddRequest) return object; - let message = new $root.vtctldata.RemoveKeyspaceCellRequest(); + let message = new $root.vtctldata.ShardReplicationAddRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.cell != null) - message.cell = String(object.cell); - if (object.force != null) - message.force = Boolean(object.force); - if (object.recursive != null) - message.recursive = Boolean(object.recursive); + if (object.shard != null) + message.shard = String(object.shard); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.ShardReplicationAddRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } return message; }; /** - * Creates a plain object from a RemoveKeyspaceCellRequest message. Also converts values to other types if specified. + * Creates a plain object from a ShardReplicationAddRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ShardReplicationAddRequest * @static - * @param {vtctldata.RemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest + * @param {vtctldata.ShardReplicationAddRequest} message ShardReplicationAddRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveKeyspaceCellRequest.toObject = function toObject(message, options) { + ShardReplicationAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.keyspace = ""; - object.cell = ""; - object.force = false; - object.recursive = false; + object.shard = ""; + object.tablet_alias = null; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - if (message.recursive != null && message.hasOwnProperty("recursive")) - object.recursive = message.recursive; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); return object; }; /** - * Converts this RemoveKeyspaceCellRequest to JSON. + * Converts this ShardReplicationAddRequest to JSON. * @function toJSON - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ShardReplicationAddRequest * @instance * @returns {Object.} JSON object */ - RemoveKeyspaceCellRequest.prototype.toJSON = function toJSON() { + ShardReplicationAddRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveKeyspaceCellRequest + * Gets the default type url for ShardReplicationAddRequest * @function getTypeUrl - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ShardReplicationAddRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveKeyspaceCellRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShardReplicationAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RemoveKeyspaceCellRequest"; + return typeUrlPrefix + "/vtctldata.ShardReplicationAddRequest"; }; - return RemoveKeyspaceCellRequest; + return ShardReplicationAddRequest; })(); - vtctldata.RemoveKeyspaceCellResponse = (function() { + vtctldata.ShardReplicationAddResponse = (function() { /** - * Properties of a RemoveKeyspaceCellResponse. + * Properties of a ShardReplicationAddResponse. * @memberof vtctldata - * @interface IRemoveKeyspaceCellResponse + * @interface IShardReplicationAddResponse */ /** - * Constructs a new RemoveKeyspaceCellResponse. + * Constructs a new ShardReplicationAddResponse. * @memberof vtctldata - * @classdesc Represents a RemoveKeyspaceCellResponse. - * @implements IRemoveKeyspaceCellResponse + * @classdesc Represents a ShardReplicationAddResponse. + * @implements IShardReplicationAddResponse * @constructor - * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set + * @param {vtctldata.IShardReplicationAddResponse=} [properties] Properties to set */ - function RemoveKeyspaceCellResponse(properties) { + function ShardReplicationAddResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174998,60 +183320,60 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. + * Creates a new ShardReplicationAddResponse instance using the specified properties. * @function create - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ShardReplicationAddResponse * @static - * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set - * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse instance + * @param {vtctldata.IShardReplicationAddResponse=} [properties] Properties to set + * @returns {vtctldata.ShardReplicationAddResponse} ShardReplicationAddResponse instance */ - RemoveKeyspaceCellResponse.create = function create(properties) { - return new RemoveKeyspaceCellResponse(properties); + ShardReplicationAddResponse.create = function create(properties) { + return new ShardReplicationAddResponse(properties); }; /** - * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * Encodes the specified ShardReplicationAddResponse message. Does not implicitly {@link vtctldata.ShardReplicationAddResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ShardReplicationAddResponse * @static - * @param {vtctldata.IRemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse message or plain object to encode + * @param {vtctldata.IShardReplicationAddResponse} message ShardReplicationAddResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveKeyspaceCellResponse.encode = function encode(message, writer) { + ShardReplicationAddResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified RemoveKeyspaceCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * Encodes the specified ShardReplicationAddResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationAddResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ShardReplicationAddResponse * @static - * @param {vtctldata.IRemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse message or plain object to encode + * @param {vtctldata.IShardReplicationAddResponse} message ShardReplicationAddResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveKeyspaceCellResponse.encodeDelimited = function encodeDelimited(message, writer) { + ShardReplicationAddResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. + * Decodes a ShardReplicationAddResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ShardReplicationAddResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse + * @returns {vtctldata.ShardReplicationAddResponse} ShardReplicationAddResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveKeyspaceCellResponse.decode = function decode(reader, length) { + ShardReplicationAddResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveKeyspaceCellResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -175064,113 +183386,111 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationAddResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ShardReplicationAddResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse + * @returns {vtctldata.ShardReplicationAddResponse} ShardReplicationAddResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveKeyspaceCellResponse.decodeDelimited = function decodeDelimited(reader) { + ShardReplicationAddResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveKeyspaceCellResponse message. + * Verifies a ShardReplicationAddResponse message. * @function verify - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ShardReplicationAddResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveKeyspaceCellResponse.verify = function verify(message) { + ShardReplicationAddResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a RemoveKeyspaceCellResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationAddResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ShardReplicationAddResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse + * @returns {vtctldata.ShardReplicationAddResponse} ShardReplicationAddResponse */ - RemoveKeyspaceCellResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveKeyspaceCellResponse) + ShardReplicationAddResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ShardReplicationAddResponse) return object; - return new $root.vtctldata.RemoveKeyspaceCellResponse(); + return new $root.vtctldata.ShardReplicationAddResponse(); }; /** - * Creates a plain object from a RemoveKeyspaceCellResponse message. Also converts values to other types if specified. + * Creates a plain object from a ShardReplicationAddResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ShardReplicationAddResponse * @static - * @param {vtctldata.RemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse + * @param {vtctldata.ShardReplicationAddResponse} message ShardReplicationAddResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveKeyspaceCellResponse.toObject = function toObject() { + ShardReplicationAddResponse.toObject = function toObject() { return {}; }; /** - * Converts this RemoveKeyspaceCellResponse to JSON. + * Converts this ShardReplicationAddResponse to JSON. * @function toJSON - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ShardReplicationAddResponse * @instance * @returns {Object.} JSON object */ - RemoveKeyspaceCellResponse.prototype.toJSON = function toJSON() { + ShardReplicationAddResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveKeyspaceCellResponse + * Gets the default type url for ShardReplicationAddResponse * @function getTypeUrl - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ShardReplicationAddResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveKeyspaceCellResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShardReplicationAddResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RemoveKeyspaceCellResponse"; + return typeUrlPrefix + "/vtctldata.ShardReplicationAddResponse"; }; - return RemoveKeyspaceCellResponse; + return ShardReplicationAddResponse; })(); - vtctldata.RemoveShardCellRequest = (function() { + vtctldata.ShardReplicationFixRequest = (function() { /** - * Properties of a RemoveShardCellRequest. + * Properties of a ShardReplicationFixRequest. * @memberof vtctldata - * @interface IRemoveShardCellRequest - * @property {string|null} [keyspace] RemoveShardCellRequest keyspace - * @property {string|null} [shard_name] RemoveShardCellRequest shard_name - * @property {string|null} [cell] RemoveShardCellRequest cell - * @property {boolean|null} [force] RemoveShardCellRequest force - * @property {boolean|null} [recursive] RemoveShardCellRequest recursive + * @interface IShardReplicationFixRequest + * @property {string|null} [keyspace] ShardReplicationFixRequest keyspace + * @property {string|null} [shard] ShardReplicationFixRequest shard + * @property {string|null} [cell] ShardReplicationFixRequest cell */ /** - * Constructs a new RemoveShardCellRequest. + * Constructs a new ShardReplicationFixRequest. * @memberof vtctldata - * @classdesc Represents a RemoveShardCellRequest. - * @implements IRemoveShardCellRequest + * @classdesc Represents a ShardReplicationFixRequest. + * @implements IShardReplicationFixRequest * @constructor - * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set + * @param {vtctldata.IShardReplicationFixRequest=} [properties] Properties to set */ - function RemoveShardCellRequest(properties) { + function ShardReplicationFixRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -175178,354 +183498,105 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * RemoveShardCellRequest keyspace. + * ShardReplicationFixRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.ShardReplicationFixRequest * @instance */ - RemoveShardCellRequest.prototype.keyspace = ""; + ShardReplicationFixRequest.prototype.keyspace = ""; /** - * RemoveShardCellRequest shard_name. - * @member {string} shard_name - * @memberof vtctldata.RemoveShardCellRequest + * ShardReplicationFixRequest shard. + * @member {string} shard + * @memberof vtctldata.ShardReplicationFixRequest * @instance */ - RemoveShardCellRequest.prototype.shard_name = ""; + ShardReplicationFixRequest.prototype.shard = ""; /** - * RemoveShardCellRequest cell. + * ShardReplicationFixRequest cell. * @member {string} cell - * @memberof vtctldata.RemoveShardCellRequest - * @instance - */ - RemoveShardCellRequest.prototype.cell = ""; - - /** - * RemoveShardCellRequest force. - * @member {boolean} force - * @memberof vtctldata.RemoveShardCellRequest - * @instance - */ - RemoveShardCellRequest.prototype.force = false; - - /** - * RemoveShardCellRequest recursive. - * @member {boolean} recursive - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.ShardReplicationFixRequest * @instance */ - RemoveShardCellRequest.prototype.recursive = false; + ShardReplicationFixRequest.prototype.cell = ""; /** - * Creates a new RemoveShardCellRequest instance using the specified properties. + * Creates a new ShardReplicationFixRequest instance using the specified properties. * @function create - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.ShardReplicationFixRequest * @static - * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest instance + * @param {vtctldata.IShardReplicationFixRequest=} [properties] Properties to set + * @returns {vtctldata.ShardReplicationFixRequest} ShardReplicationFixRequest instance */ - RemoveShardCellRequest.create = function create(properties) { - return new RemoveShardCellRequest(properties); + ShardReplicationFixRequest.create = function create(properties) { + return new ShardReplicationFixRequest(properties); }; /** - * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. + * Encodes the specified ShardReplicationFixRequest message. Does not implicitly {@link vtctldata.ShardReplicationFixRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.ShardReplicationFixRequest * @static - * @param {vtctldata.IRemoveShardCellRequest} message RemoveShardCellRequest message or plain object to encode + * @param {vtctldata.IShardReplicationFixRequest} message ShardReplicationFixRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveShardCellRequest.encode = function encode(message, writer) { + ShardReplicationFixRequest.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_name != null && Object.hasOwnProperty.call(message, "shard_name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard_name); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.cell); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.force); - if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.recursive); - return writer; - }; - - /** - * Encodes the specified RemoveShardCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.RemoveShardCellRequest - * @static - * @param {vtctldata.IRemoveShardCellRequest} message RemoveShardCellRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RemoveShardCellRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.RemoveShardCellRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RemoveShardCellRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveShardCellRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.shard_name = reader.string(); - break; - } - case 3: { - message.cell = reader.string(); - break; - } - case 4: { - message.force = reader.bool(); - break; - } - case 5: { - message.recursive = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.RemoveShardCellRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RemoveShardCellRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RemoveShardCellRequest message. - * @function verify - * @memberof vtctldata.RemoveShardCellRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RemoveShardCellRequest.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_name != null && message.hasOwnProperty("shard_name")) - if (!$util.isString(message.shard_name)) - return "shard_name: string expected"; - if (message.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - if (message.recursive != null && message.hasOwnProperty("recursive")) - if (typeof message.recursive !== "boolean") - return "recursive: boolean expected"; - return null; - }; - - /** - * Creates a RemoveShardCellRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.RemoveShardCellRequest - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest - */ - RemoveShardCellRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveShardCellRequest) - return object; - let message = new $root.vtctldata.RemoveShardCellRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard_name != null) - message.shard_name = String(object.shard_name); - if (object.cell != null) - message.cell = String(object.cell); - if (object.force != null) - message.force = Boolean(object.force); - if (object.recursive != null) - message.recursive = Boolean(object.recursive); - return message; - }; - - /** - * Creates a plain object from a RemoveShardCellRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.RemoveShardCellRequest - * @static - * @param {vtctldata.RemoveShardCellRequest} message RemoveShardCellRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RemoveShardCellRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard_name = ""; - object.cell = ""; - object.force = false; - object.recursive = false; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard_name != null && message.hasOwnProperty("shard_name")) - object.shard_name = message.shard_name; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - if (message.recursive != null && message.hasOwnProperty("recursive")) - object.recursive = message.recursive; - return object; - }; - - /** - * Converts this RemoveShardCellRequest to JSON. - * @function toJSON - * @memberof vtctldata.RemoveShardCellRequest - * @instance - * @returns {Object.} JSON object - */ - RemoveShardCellRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RemoveShardCellRequest - * @function getTypeUrl - * @memberof vtctldata.RemoveShardCellRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RemoveShardCellRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.RemoveShardCellRequest"; - }; - - return RemoveShardCellRequest; - })(); - - vtctldata.RemoveShardCellResponse = (function() { - - /** - * Properties of a RemoveShardCellResponse. - * @memberof vtctldata - * @interface IRemoveShardCellResponse - */ - - /** - * Constructs a new RemoveShardCellResponse. - * @memberof vtctldata - * @classdesc Represents a RemoveShardCellResponse. - * @implements IRemoveShardCellResponse - * @constructor - * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set - */ - function RemoveShardCellResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new RemoveShardCellResponse instance using the specified properties. - * @function create - * @memberof vtctldata.RemoveShardCellResponse - * @static - * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set - * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse instance - */ - RemoveShardCellResponse.create = function create(properties) { - return new RemoveShardCellResponse(properties); - }; - - /** - * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. - * @function encode - * @memberof vtctldata.RemoveShardCellResponse - * @static - * @param {vtctldata.IRemoveShardCellResponse} message RemoveShardCellResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RemoveShardCellResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); return writer; }; /** - * Encodes the specified RemoveShardCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. + * Encodes the specified ShardReplicationFixRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationFixRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.ShardReplicationFixRequest * @static - * @param {vtctldata.IRemoveShardCellResponse} message RemoveShardCellResponse message or plain object to encode + * @param {vtctldata.IShardReplicationFixRequest} message ShardReplicationFixRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveShardCellResponse.encodeDelimited = function encodeDelimited(message, writer) { + ShardReplicationFixRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer. + * Decodes a ShardReplicationFixRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.ShardReplicationFixRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse + * @returns {vtctldata.ShardReplicationFixRequest} ShardReplicationFixRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveShardCellResponse.decode = function decode(reader, length) { + ShardReplicationFixRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveShardCellResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationFixRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.keyspace = reader.string(); + break; + } + case 2: { + message.shard = reader.string(); + break; + } + case 3: { + message.cell = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -175535,109 +183606,139 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationFixRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.ShardReplicationFixRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse + * @returns {vtctldata.ShardReplicationFixRequest} ShardReplicationFixRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveShardCellResponse.decodeDelimited = function decodeDelimited(reader) { + ShardReplicationFixRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveShardCellResponse message. + * Verifies a ShardReplicationFixRequest message. * @function verify - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.ShardReplicationFixRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveShardCellResponse.verify = function verify(message) { + ShardReplicationFixRequest.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.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; return null; }; /** - * Creates a RemoveShardCellResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationFixRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.ShardReplicationFixRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse + * @returns {vtctldata.ShardReplicationFixRequest} ShardReplicationFixRequest */ - RemoveShardCellResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveShardCellResponse) + ShardReplicationFixRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ShardReplicationFixRequest) return object; - return new $root.vtctldata.RemoveShardCellResponse(); + let message = new $root.vtctldata.ShardReplicationFixRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.cell != null) + message.cell = String(object.cell); + return message; }; /** - * Creates a plain object from a RemoveShardCellResponse message. Also converts values to other types if specified. + * Creates a plain object from a ShardReplicationFixRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.ShardReplicationFixRequest * @static - * @param {vtctldata.RemoveShardCellResponse} message RemoveShardCellResponse + * @param {vtctldata.ShardReplicationFixRequest} message ShardReplicationFixRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveShardCellResponse.toObject = function toObject() { - return {}; + ShardReplicationFixRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.cell = ""; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; + return object; }; /** - * Converts this RemoveShardCellResponse to JSON. + * Converts this ShardReplicationFixRequest to JSON. * @function toJSON - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.ShardReplicationFixRequest * @instance * @returns {Object.} JSON object */ - RemoveShardCellResponse.prototype.toJSON = function toJSON() { + ShardReplicationFixRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveShardCellResponse + * Gets the default type url for ShardReplicationFixRequest * @function getTypeUrl - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.ShardReplicationFixRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveShardCellResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShardReplicationFixRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RemoveShardCellResponse"; + return typeUrlPrefix + "/vtctldata.ShardReplicationFixRequest"; }; - return RemoveShardCellResponse; + return ShardReplicationFixRequest; })(); - vtctldata.ReparentTabletRequest = (function() { + vtctldata.ShardReplicationFixResponse = (function() { /** - * Properties of a ReparentTabletRequest. + * Properties of a ShardReplicationFixResponse. * @memberof vtctldata - * @interface IReparentTabletRequest - * @property {topodata.ITabletAlias|null} [tablet] ReparentTabletRequest tablet + * @interface IShardReplicationFixResponse + * @property {topodata.IShardReplicationError|null} [error] ShardReplicationFixResponse error */ /** - * Constructs a new ReparentTabletRequest. + * Constructs a new ShardReplicationFixResponse. * @memberof vtctldata - * @classdesc Represents a ReparentTabletRequest. - * @implements IReparentTabletRequest + * @classdesc Represents a ShardReplicationFixResponse. + * @implements IShardReplicationFixResponse * @constructor - * @param {vtctldata.IReparentTabletRequest=} [properties] Properties to set + * @param {vtctldata.IShardReplicationFixResponse=} [properties] Properties to set */ - function ReparentTabletRequest(properties) { + function ShardReplicationFixResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -175645,75 +183746,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ReparentTabletRequest tablet. - * @member {topodata.ITabletAlias|null|undefined} tablet - * @memberof vtctldata.ReparentTabletRequest + * ShardReplicationFixResponse error. + * @member {topodata.IShardReplicationError|null|undefined} error + * @memberof vtctldata.ShardReplicationFixResponse * @instance */ - ReparentTabletRequest.prototype.tablet = null; + ShardReplicationFixResponse.prototype.error = null; /** - * Creates a new ReparentTabletRequest instance using the specified properties. + * Creates a new ShardReplicationFixResponse instance using the specified properties. * @function create - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.ShardReplicationFixResponse * @static - * @param {vtctldata.IReparentTabletRequest=} [properties] Properties to set - * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest instance + * @param {vtctldata.IShardReplicationFixResponse=} [properties] Properties to set + * @returns {vtctldata.ShardReplicationFixResponse} ShardReplicationFixResponse instance */ - ReparentTabletRequest.create = function create(properties) { - return new ReparentTabletRequest(properties); + ShardReplicationFixResponse.create = function create(properties) { + return new ShardReplicationFixResponse(properties); }; /** - * Encodes the specified ReparentTabletRequest message. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. + * Encodes the specified ShardReplicationFixResponse message. Does not implicitly {@link vtctldata.ShardReplicationFixResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.ShardReplicationFixResponse * @static - * @param {vtctldata.IReparentTabletRequest} message ReparentTabletRequest message or plain object to encode + * @param {vtctldata.IShardReplicationFixResponse} message ShardReplicationFixResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReparentTabletRequest.encode = function encode(message, writer) { + ShardReplicationFixResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) - $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.topodata.ShardReplicationError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReparentTabletRequest message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. + * Encodes the specified ShardReplicationFixResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationFixResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.ShardReplicationFixResponse * @static - * @param {vtctldata.IReparentTabletRequest} message ReparentTabletRequest message or plain object to encode + * @param {vtctldata.IShardReplicationFixResponse} message ShardReplicationFixResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReparentTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { + ShardReplicationFixResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReparentTabletRequest message from the specified reader or buffer. + * Decodes a ShardReplicationFixResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.ShardReplicationFixResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest + * @returns {vtctldata.ShardReplicationFixResponse} ShardReplicationFixResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReparentTabletRequest.decode = function decode(reader, length) { + ShardReplicationFixResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReparentTabletRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationFixResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.error = $root.topodata.ShardReplicationError.decode(reader, reader.uint32()); break; } default: @@ -175725,129 +183826,128 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ReparentTabletRequest message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationFixResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.ShardReplicationFixResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest + * @returns {vtctldata.ShardReplicationFixResponse} ShardReplicationFixResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReparentTabletRequest.decodeDelimited = function decodeDelimited(reader) { + ShardReplicationFixResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReparentTabletRequest message. + * Verifies a ShardReplicationFixResponse message. * @function verify - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.ShardReplicationFixResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReparentTabletRequest.verify = function verify(message) { + ShardReplicationFixResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - let error = $root.topodata.TabletAlias.verify(message.tablet); + if (message.error != null && message.hasOwnProperty("error")) { + let error = $root.topodata.ShardReplicationError.verify(message.error); if (error) - return "tablet." + error; + return "error." + error; } return null; }; /** - * Creates a ReparentTabletRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationFixResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.ShardReplicationFixResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest + * @returns {vtctldata.ShardReplicationFixResponse} ShardReplicationFixResponse */ - ReparentTabletRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ReparentTabletRequest) + ShardReplicationFixResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ShardReplicationFixResponse) return object; - let message = new $root.vtctldata.ReparentTabletRequest(); - if (object.tablet != null) { - if (typeof object.tablet !== "object") - throw TypeError(".vtctldata.ReparentTabletRequest.tablet: object expected"); - message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); + let message = new $root.vtctldata.ShardReplicationFixResponse(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".vtctldata.ShardReplicationFixResponse.error: object expected"); + message.error = $root.topodata.ShardReplicationError.fromObject(object.error); } return message; }; /** - * Creates a plain object from a ReparentTabletRequest message. Also converts values to other types if specified. + * Creates a plain object from a ShardReplicationFixResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.ShardReplicationFixResponse * @static - * @param {vtctldata.ReparentTabletRequest} message ReparentTabletRequest + * @param {vtctldata.ShardReplicationFixResponse} message ShardReplicationFixResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReparentTabletRequest.toObject = function toObject(message, options) { + ShardReplicationFixResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.tablet = null; - if (message.tablet != null && message.hasOwnProperty("tablet")) - object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); + object.error = null; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.topodata.ShardReplicationError.toObject(message.error, options); return object; }; /** - * Converts this ReparentTabletRequest to JSON. + * Converts this ShardReplicationFixResponse to JSON. * @function toJSON - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.ShardReplicationFixResponse * @instance * @returns {Object.} JSON object */ - ReparentTabletRequest.prototype.toJSON = function toJSON() { + ShardReplicationFixResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReparentTabletRequest + * Gets the default type url for ShardReplicationFixResponse * @function getTypeUrl - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.ShardReplicationFixResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReparentTabletRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShardReplicationFixResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ReparentTabletRequest"; + return typeUrlPrefix + "/vtctldata.ShardReplicationFixResponse"; }; - return ReparentTabletRequest; + return ShardReplicationFixResponse; })(); - vtctldata.ReparentTabletResponse = (function() { + vtctldata.ShardReplicationPositionsRequest = (function() { /** - * Properties of a ReparentTabletResponse. + * Properties of a ShardReplicationPositionsRequest. * @memberof vtctldata - * @interface IReparentTabletResponse - * @property {string|null} [keyspace] ReparentTabletResponse keyspace - * @property {string|null} [shard] ReparentTabletResponse shard - * @property {topodata.ITabletAlias|null} [primary] ReparentTabletResponse primary + * @interface IShardReplicationPositionsRequest + * @property {string|null} [keyspace] ShardReplicationPositionsRequest keyspace + * @property {string|null} [shard] ShardReplicationPositionsRequest shard */ /** - * Constructs a new ReparentTabletResponse. + * Constructs a new ShardReplicationPositionsRequest. * @memberof vtctldata - * @classdesc Represents a ReparentTabletResponse. - * @implements IReparentTabletResponse + * @classdesc Represents a ShardReplicationPositionsRequest. + * @implements IShardReplicationPositionsRequest * @constructor - * @param {vtctldata.IReparentTabletResponse=} [properties] Properties to set + * @param {vtctldata.IShardReplicationPositionsRequest=} [properties] Properties to set */ - function ReparentTabletResponse(properties) { + function ShardReplicationPositionsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -175855,90 +183955,80 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ReparentTabletResponse keyspace. + * ShardReplicationPositionsRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.ShardReplicationPositionsRequest * @instance */ - ReparentTabletResponse.prototype.keyspace = ""; + ShardReplicationPositionsRequest.prototype.keyspace = ""; /** - * ReparentTabletResponse shard. + * ShardReplicationPositionsRequest shard. * @member {string} shard - * @memberof vtctldata.ReparentTabletResponse - * @instance - */ - ReparentTabletResponse.prototype.shard = ""; - - /** - * ReparentTabletResponse primary. - * @member {topodata.ITabletAlias|null|undefined} primary - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.ShardReplicationPositionsRequest * @instance */ - ReparentTabletResponse.prototype.primary = null; + ShardReplicationPositionsRequest.prototype.shard = ""; /** - * Creates a new ReparentTabletResponse instance using the specified properties. + * Creates a new ShardReplicationPositionsRequest instance using the specified properties. * @function create - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.ShardReplicationPositionsRequest * @static - * @param {vtctldata.IReparentTabletResponse=} [properties] Properties to set - * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse instance + * @param {vtctldata.IShardReplicationPositionsRequest=} [properties] Properties to set + * @returns {vtctldata.ShardReplicationPositionsRequest} ShardReplicationPositionsRequest instance */ - ReparentTabletResponse.create = function create(properties) { - return new ReparentTabletResponse(properties); + ShardReplicationPositionsRequest.create = function create(properties) { + return new ShardReplicationPositionsRequest(properties); }; /** - * Encodes the specified ReparentTabletResponse message. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. + * Encodes the specified ShardReplicationPositionsRequest message. Does not implicitly {@link vtctldata.ShardReplicationPositionsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.ShardReplicationPositionsRequest * @static - * @param {vtctldata.IReparentTabletResponse} message ReparentTabletResponse message or plain object to encode + * @param {vtctldata.IShardReplicationPositionsRequest} message ShardReplicationPositionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReparentTabletResponse.encode = function encode(message, writer) { + ShardReplicationPositionsRequest.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.primary != null && Object.hasOwnProperty.call(message, "primary")) - $root.topodata.TabletAlias.encode(message.primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReparentTabletResponse message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. + * Encodes the specified ShardReplicationPositionsRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationPositionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.ShardReplicationPositionsRequest * @static - * @param {vtctldata.IReparentTabletResponse} message ReparentTabletResponse message or plain object to encode + * @param {vtctldata.IShardReplicationPositionsRequest} message ShardReplicationPositionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReparentTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { + ShardReplicationPositionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReparentTabletResponse message from the specified reader or buffer. + * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.ShardReplicationPositionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse + * @returns {vtctldata.ShardReplicationPositionsRequest} ShardReplicationPositionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReparentTabletResponse.decode = function decode(reader, length) { + ShardReplicationPositionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReparentTabletResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationPositionsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -175950,10 +184040,6 @@ export const vtctldata = $root.vtctldata = (() => { message.shard = reader.string(); break; } - case 3: { - message.primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -175963,30 +184049,30 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ReparentTabletResponse message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.ShardReplicationPositionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse + * @returns {vtctldata.ShardReplicationPositionsRequest} ShardReplicationPositionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReparentTabletResponse.decodeDelimited = function decodeDelimited(reader) { + ShardReplicationPositionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReparentTabletResponse message. + * Verifies a ShardReplicationPositionsRequest message. * @function verify - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.ShardReplicationPositionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReparentTabletResponse.verify = function verify(message) { + ShardReplicationPositionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) @@ -175995,128 +184081,102 @@ export const vtctldata = $root.vtctldata = (() => { if (message.shard != null && message.hasOwnProperty("shard")) if (!$util.isString(message.shard)) return "shard: string expected"; - if (message.primary != null && message.hasOwnProperty("primary")) { - let error = $root.topodata.TabletAlias.verify(message.primary); - if (error) - return "primary." + error; - } return null; }; /** - * Creates a ReparentTabletResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationPositionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.ShardReplicationPositionsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse + * @returns {vtctldata.ShardReplicationPositionsRequest} ShardReplicationPositionsRequest */ - ReparentTabletResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ReparentTabletResponse) + ShardReplicationPositionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ShardReplicationPositionsRequest) return object; - let message = new $root.vtctldata.ReparentTabletResponse(); + let message = new $root.vtctldata.ShardReplicationPositionsRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); if (object.shard != null) message.shard = String(object.shard); - if (object.primary != null) { - if (typeof object.primary !== "object") - throw TypeError(".vtctldata.ReparentTabletResponse.primary: object expected"); - message.primary = $root.topodata.TabletAlias.fromObject(object.primary); - } return message; }; /** - * Creates a plain object from a ReparentTabletResponse message. Also converts values to other types if specified. + * Creates a plain object from a ShardReplicationPositionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.ShardReplicationPositionsRequest * @static - * @param {vtctldata.ReparentTabletResponse} message ReparentTabletResponse + * @param {vtctldata.ShardReplicationPositionsRequest} message ShardReplicationPositionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReparentTabletResponse.toObject = function toObject(message, options) { + ShardReplicationPositionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.keyspace = ""; object.shard = ""; - object.primary = null; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; if (message.shard != null && message.hasOwnProperty("shard")) object.shard = message.shard; - if (message.primary != null && message.hasOwnProperty("primary")) - object.primary = $root.topodata.TabletAlias.toObject(message.primary, options); return object; }; /** - * Converts this ReparentTabletResponse to JSON. + * Converts this ShardReplicationPositionsRequest to JSON. * @function toJSON - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.ShardReplicationPositionsRequest * @instance * @returns {Object.} JSON object */ - ReparentTabletResponse.prototype.toJSON = function toJSON() { + ShardReplicationPositionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReparentTabletResponse + * Gets the default type url for ShardReplicationPositionsRequest * @function getTypeUrl - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.ShardReplicationPositionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReparentTabletResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShardReplicationPositionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ReparentTabletResponse"; + return typeUrlPrefix + "/vtctldata.ShardReplicationPositionsRequest"; }; - return ReparentTabletResponse; + return ShardReplicationPositionsRequest; })(); - vtctldata.ReshardCreateRequest = (function() { + vtctldata.ShardReplicationPositionsResponse = (function() { /** - * Properties of a ReshardCreateRequest. + * Properties of a ShardReplicationPositionsResponse. * @memberof vtctldata - * @interface IReshardCreateRequest - * @property {string|null} [workflow] ReshardCreateRequest workflow - * @property {string|null} [keyspace] ReshardCreateRequest keyspace - * @property {Array.|null} [source_shards] ReshardCreateRequest source_shards - * @property {Array.|null} [target_shards] ReshardCreateRequest target_shards - * @property {Array.|null} [cells] ReshardCreateRequest cells - * @property {Array.|null} [tablet_types] ReshardCreateRequest tablet_types - * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] ReshardCreateRequest tablet_selection_preference - * @property {boolean|null} [skip_schema_copy] ReshardCreateRequest skip_schema_copy - * @property {string|null} [on_ddl] ReshardCreateRequest on_ddl - * @property {boolean|null} [stop_after_copy] ReshardCreateRequest stop_after_copy - * @property {boolean|null} [defer_secondary_keys] ReshardCreateRequest defer_secondary_keys - * @property {boolean|null} [auto_start] ReshardCreateRequest auto_start - * @property {vtctldata.IWorkflowOptions|null} [workflow_options] ReshardCreateRequest workflow_options + * @interface IShardReplicationPositionsResponse + * @property {Object.|null} [replication_statuses] ShardReplicationPositionsResponse replication_statuses + * @property {Object.|null} [tablet_map] ShardReplicationPositionsResponse tablet_map */ /** - * Constructs a new ReshardCreateRequest. + * Constructs a new ShardReplicationPositionsResponse. * @memberof vtctldata - * @classdesc Represents a ReshardCreateRequest. - * @implements IReshardCreateRequest + * @classdesc Represents a ShardReplicationPositionsResponse. + * @implements IShardReplicationPositionsResponse * @constructor - * @param {vtctldata.IReshardCreateRequest=} [properties] Properties to set + * @param {vtctldata.IShardReplicationPositionsResponse=} [properties] Properties to set */ - function ReshardCreateRequest(properties) { - this.source_shards = []; - this.target_shards = []; - this.cells = []; - this.tablet_types = []; + function ShardReplicationPositionsResponse(properties) { + this.replication_statuses = {}; + this.tablet_map = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -176124,263 +184184,133 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ReshardCreateRequest workflow. - * @member {string} workflow - * @memberof vtctldata.ReshardCreateRequest - * @instance - */ - ReshardCreateRequest.prototype.workflow = ""; - - /** - * ReshardCreateRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.ReshardCreateRequest - * @instance - */ - ReshardCreateRequest.prototype.keyspace = ""; - - /** - * ReshardCreateRequest source_shards. - * @member {Array.} source_shards - * @memberof vtctldata.ReshardCreateRequest - * @instance - */ - ReshardCreateRequest.prototype.source_shards = $util.emptyArray; - - /** - * ReshardCreateRequest target_shards. - * @member {Array.} target_shards - * @memberof vtctldata.ReshardCreateRequest - * @instance - */ - ReshardCreateRequest.prototype.target_shards = $util.emptyArray; - - /** - * ReshardCreateRequest cells. - * @member {Array.} cells - * @memberof vtctldata.ReshardCreateRequest - * @instance - */ - ReshardCreateRequest.prototype.cells = $util.emptyArray; - - /** - * ReshardCreateRequest tablet_types. - * @member {Array.} tablet_types - * @memberof vtctldata.ReshardCreateRequest - * @instance - */ - ReshardCreateRequest.prototype.tablet_types = $util.emptyArray; - - /** - * ReshardCreateRequest tablet_selection_preference. - * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference - * @memberof vtctldata.ReshardCreateRequest - * @instance - */ - ReshardCreateRequest.prototype.tablet_selection_preference = 0; - - /** - * ReshardCreateRequest skip_schema_copy. - * @member {boolean} skip_schema_copy - * @memberof vtctldata.ReshardCreateRequest - * @instance - */ - ReshardCreateRequest.prototype.skip_schema_copy = false; - - /** - * ReshardCreateRequest on_ddl. - * @member {string} on_ddl - * @memberof vtctldata.ReshardCreateRequest - * @instance - */ - ReshardCreateRequest.prototype.on_ddl = ""; - - /** - * ReshardCreateRequest stop_after_copy. - * @member {boolean} stop_after_copy - * @memberof vtctldata.ReshardCreateRequest - * @instance - */ - ReshardCreateRequest.prototype.stop_after_copy = false; - - /** - * ReshardCreateRequest defer_secondary_keys. - * @member {boolean} defer_secondary_keys - * @memberof vtctldata.ReshardCreateRequest - * @instance - */ - ReshardCreateRequest.prototype.defer_secondary_keys = false; - - /** - * ReshardCreateRequest auto_start. - * @member {boolean} auto_start - * @memberof vtctldata.ReshardCreateRequest + * ShardReplicationPositionsResponse replication_statuses. + * @member {Object.} replication_statuses + * @memberof vtctldata.ShardReplicationPositionsResponse * @instance */ - ReshardCreateRequest.prototype.auto_start = false; + ShardReplicationPositionsResponse.prototype.replication_statuses = $util.emptyObject; /** - * ReshardCreateRequest workflow_options. - * @member {vtctldata.IWorkflowOptions|null|undefined} workflow_options - * @memberof vtctldata.ReshardCreateRequest + * ShardReplicationPositionsResponse tablet_map. + * @member {Object.} tablet_map + * @memberof vtctldata.ShardReplicationPositionsResponse * @instance */ - ReshardCreateRequest.prototype.workflow_options = null; + ShardReplicationPositionsResponse.prototype.tablet_map = $util.emptyObject; /** - * Creates a new ReshardCreateRequest instance using the specified properties. + * Creates a new ShardReplicationPositionsResponse instance using the specified properties. * @function create - * @memberof vtctldata.ReshardCreateRequest + * @memberof vtctldata.ShardReplicationPositionsResponse * @static - * @param {vtctldata.IReshardCreateRequest=} [properties] Properties to set - * @returns {vtctldata.ReshardCreateRequest} ReshardCreateRequest instance + * @param {vtctldata.IShardReplicationPositionsResponse=} [properties] Properties to set + * @returns {vtctldata.ShardReplicationPositionsResponse} ShardReplicationPositionsResponse instance */ - ReshardCreateRequest.create = function create(properties) { - return new ReshardCreateRequest(properties); + ShardReplicationPositionsResponse.create = function create(properties) { + return new ShardReplicationPositionsResponse(properties); }; /** - * Encodes the specified ReshardCreateRequest message. Does not implicitly {@link vtctldata.ReshardCreateRequest.verify|verify} messages. + * Encodes the specified ShardReplicationPositionsResponse message. Does not implicitly {@link vtctldata.ShardReplicationPositionsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ReshardCreateRequest + * @memberof vtctldata.ShardReplicationPositionsResponse * @static - * @param {vtctldata.IReshardCreateRequest} message ReshardCreateRequest message or plain object to encode + * @param {vtctldata.IShardReplicationPositionsResponse} message ShardReplicationPositionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReshardCreateRequest.encode = function encode(message, writer) { + ShardReplicationPositionsResponse.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.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); - if (message.source_shards != null && message.source_shards.length) - for (let i = 0; i < message.source_shards.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.source_shards[i]); - if (message.target_shards != null && message.target_shards.length) - for (let i = 0; i < message.target_shards.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.target_shards[i]); - if (message.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.cells[i]); - if (message.tablet_types != null && message.tablet_types.length) { - writer.uint32(/* id 6, wireType 2 =*/50).fork(); - for (let i = 0; i < message.tablet_types.length; ++i) - writer.int32(message.tablet_types[i]); - writer.ldelim(); - } - if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.tablet_selection_preference); - if (message.skip_schema_copy != null && Object.hasOwnProperty.call(message, "skip_schema_copy")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.skip_schema_copy); - if (message.on_ddl != null && Object.hasOwnProperty.call(message, "on_ddl")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.on_ddl); - if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.stop_after_copy); - if (message.defer_secondary_keys != null && Object.hasOwnProperty.call(message, "defer_secondary_keys")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.defer_secondary_keys); - if (message.auto_start != null && Object.hasOwnProperty.call(message, "auto_start")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.auto_start); - if (message.workflow_options != null && Object.hasOwnProperty.call(message, "workflow_options")) - $root.vtctldata.WorkflowOptions.encode(message.workflow_options, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.replication_statuses != null && Object.hasOwnProperty.call(message, "replication_statuses")) + for (let keys = Object.keys(message.replication_statuses), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.replicationdata.Status.encode(message.replication_statuses[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.tablet_map != null && Object.hasOwnProperty.call(message, "tablet_map")) + for (let keys = Object.keys(message.tablet_map), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.topodata.Tablet.encode(message.tablet_map[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified ReshardCreateRequest message, length delimited. Does not implicitly {@link vtctldata.ReshardCreateRequest.verify|verify} messages. + * Encodes the specified ShardReplicationPositionsResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationPositionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ReshardCreateRequest + * @memberof vtctldata.ShardReplicationPositionsResponse * @static - * @param {vtctldata.IReshardCreateRequest} message ReshardCreateRequest message or plain object to encode + * @param {vtctldata.IShardReplicationPositionsResponse} message ShardReplicationPositionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReshardCreateRequest.encodeDelimited = function encodeDelimited(message, writer) { + ShardReplicationPositionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReshardCreateRequest message from the specified reader or buffer. + * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ReshardCreateRequest + * @memberof vtctldata.ShardReplicationPositionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ReshardCreateRequest} ReshardCreateRequest + * @returns {vtctldata.ShardReplicationPositionsResponse} ShardReplicationPositionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReshardCreateRequest.decode = function decode(reader, length) { + ShardReplicationPositionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReshardCreateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationPositionsResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workflow = reader.string(); + if (message.replication_statuses === $util.emptyObject) + message.replication_statuses = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.replicationdata.Status.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.replication_statuses[key] = value; break; } case 2: { - message.keyspace = reader.string(); - break; - } - case 3: { - if (!(message.source_shards && message.source_shards.length)) - message.source_shards = []; - message.source_shards.push(reader.string()); - break; - } - case 4: { - if (!(message.target_shards && message.target_shards.length)) - message.target_shards = []; - message.target_shards.push(reader.string()); - break; - } - case 5: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); - break; - } - case 6: { - if (!(message.tablet_types && message.tablet_types.length)) - message.tablet_types = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.tablet_types.push(reader.int32()); - } else - message.tablet_types.push(reader.int32()); - break; - } - case 7: { - message.tablet_selection_preference = reader.int32(); - break; - } - case 8: { - message.skip_schema_copy = reader.bool(); - break; - } - case 9: { - message.on_ddl = reader.string(); - break; - } - case 10: { - message.stop_after_copy = reader.bool(); - break; - } - case 11: { - message.defer_secondary_keys = reader.bool(); - break; - } - case 12: { - message.auto_start = reader.bool(); - break; - } - case 13: { - message.workflow_options = $root.vtctldata.WorkflowOptions.decode(reader, reader.uint32()); + if (message.tablet_map === $util.emptyObject) + message.tablet_map = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.topodata.Tablet.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tablet_map[key] = value; break; } default: @@ -176392,368 +184322,170 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ReshardCreateRequest message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ReshardCreateRequest + * @memberof vtctldata.ShardReplicationPositionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ReshardCreateRequest} ReshardCreateRequest + * @returns {vtctldata.ShardReplicationPositionsResponse} ShardReplicationPositionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReshardCreateRequest.decodeDelimited = function decodeDelimited(reader) { + ShardReplicationPositionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReshardCreateRequest message. + * Verifies a ShardReplicationPositionsResponse message. * @function verify - * @memberof vtctldata.ReshardCreateRequest + * @memberof vtctldata.ShardReplicationPositionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReshardCreateRequest.verify = function verify(message) { + ShardReplicationPositionsResponse.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.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.source_shards != null && message.hasOwnProperty("source_shards")) { - if (!Array.isArray(message.source_shards)) - return "source_shards: array expected"; - for (let i = 0; i < message.source_shards.length; ++i) - if (!$util.isString(message.source_shards[i])) - return "source_shards: string[] expected"; - } - if (message.target_shards != null && message.hasOwnProperty("target_shards")) { - if (!Array.isArray(message.target_shards)) - return "target_shards: array expected"; - for (let i = 0; i < message.target_shards.length; ++i) - if (!$util.isString(message.target_shards[i])) - return "target_shards: string[] expected"; - } - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { - if (!Array.isArray(message.tablet_types)) - return "tablet_types: array expected"; - for (let i = 0; i < message.tablet_types.length; ++i) - switch (message.tablet_types[i]) { - default: - return "tablet_types: enum value[] expected"; - case 0: - case 1: - case 1: - case 2: - case 3: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } + if (message.replication_statuses != null && message.hasOwnProperty("replication_statuses")) { + if (!$util.isObject(message.replication_statuses)) + return "replication_statuses: object expected"; + let key = Object.keys(message.replication_statuses); + for (let i = 0; i < key.length; ++i) { + let error = $root.replicationdata.Status.verify(message.replication_statuses[key[i]]); + if (error) + return "replication_statuses." + error; + } } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - switch (message.tablet_selection_preference) { - default: - return "tablet_selection_preference: enum value expected"; - case 0: - case 1: - case 3: - break; + if (message.tablet_map != null && message.hasOwnProperty("tablet_map")) { + if (!$util.isObject(message.tablet_map)) + return "tablet_map: object expected"; + let key = Object.keys(message.tablet_map); + for (let i = 0; i < key.length; ++i) { + let error = $root.topodata.Tablet.verify(message.tablet_map[key[i]]); + if (error) + return "tablet_map." + error; } - if (message.skip_schema_copy != null && message.hasOwnProperty("skip_schema_copy")) - if (typeof message.skip_schema_copy !== "boolean") - return "skip_schema_copy: boolean expected"; - if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) - if (!$util.isString(message.on_ddl)) - return "on_ddl: 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.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) - if (typeof message.defer_secondary_keys !== "boolean") - return "defer_secondary_keys: boolean expected"; - if (message.auto_start != null && message.hasOwnProperty("auto_start")) - if (typeof message.auto_start !== "boolean") - return "auto_start: boolean expected"; - if (message.workflow_options != null && message.hasOwnProperty("workflow_options")) { - let error = $root.vtctldata.WorkflowOptions.verify(message.workflow_options); - if (error) - return "workflow_options." + error; } return null; }; /** - * Creates a ReshardCreateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationPositionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ReshardCreateRequest + * @memberof vtctldata.ShardReplicationPositionsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ReshardCreateRequest} ReshardCreateRequest + * @returns {vtctldata.ShardReplicationPositionsResponse} ShardReplicationPositionsResponse */ - ReshardCreateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ReshardCreateRequest) + ShardReplicationPositionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ShardReplicationPositionsResponse) return object; - let message = new $root.vtctldata.ReshardCreateRequest(); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.source_shards) { - if (!Array.isArray(object.source_shards)) - throw TypeError(".vtctldata.ReshardCreateRequest.source_shards: array expected"); - message.source_shards = []; - for (let i = 0; i < object.source_shards.length; ++i) - message.source_shards[i] = String(object.source_shards[i]); - } - if (object.target_shards) { - if (!Array.isArray(object.target_shards)) - throw TypeError(".vtctldata.ReshardCreateRequest.target_shards: array expected"); - message.target_shards = []; - for (let i = 0; i < object.target_shards.length; ++i) - message.target_shards[i] = String(object.target_shards[i]); - } - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.ReshardCreateRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } - if (object.tablet_types) { - if (!Array.isArray(object.tablet_types)) - throw TypeError(".vtctldata.ReshardCreateRequest.tablet_types: array expected"); - message.tablet_types = []; - for (let i = 0; i < object.tablet_types.length; ++i) - switch (object.tablet_types[i]) { - default: - if (typeof object.tablet_types[i] === "number") { - message.tablet_types[i] = object.tablet_types[i]; - break; - } - case "UNKNOWN": - case 0: - message.tablet_types[i] = 0; - break; - case "PRIMARY": - case 1: - message.tablet_types[i] = 1; - break; - case "MASTER": - case 1: - message.tablet_types[i] = 1; - break; - case "REPLICA": - case 2: - message.tablet_types[i] = 2; - break; - case "RDONLY": - case 3: - message.tablet_types[i] = 3; - break; - case "BATCH": - case 3: - message.tablet_types[i] = 3; - break; - case "SPARE": - case 4: - message.tablet_types[i] = 4; - break; - case "EXPERIMENTAL": - case 5: - message.tablet_types[i] = 5; - break; - case "BACKUP": - case 6: - message.tablet_types[i] = 6; - break; - case "RESTORE": - case 7: - message.tablet_types[i] = 7; - break; - case "DRAINED": - case 8: - message.tablet_types[i] = 8; - break; - } - } - switch (object.tablet_selection_preference) { - default: - if (typeof object.tablet_selection_preference === "number") { - message.tablet_selection_preference = object.tablet_selection_preference; - break; + let message = new $root.vtctldata.ShardReplicationPositionsResponse(); + if (object.replication_statuses) { + if (typeof object.replication_statuses !== "object") + throw TypeError(".vtctldata.ShardReplicationPositionsResponse.replication_statuses: object expected"); + message.replication_statuses = {}; + for (let keys = Object.keys(object.replication_statuses), i = 0; i < keys.length; ++i) { + if (typeof object.replication_statuses[keys[i]] !== "object") + throw TypeError(".vtctldata.ShardReplicationPositionsResponse.replication_statuses: object expected"); + message.replication_statuses[keys[i]] = $root.replicationdata.Status.fromObject(object.replication_statuses[keys[i]]); } - break; - case "ANY": - case 0: - message.tablet_selection_preference = 0; - break; - case "INORDER": - case 1: - message.tablet_selection_preference = 1; - break; - case "UNKNOWN": - case 3: - message.tablet_selection_preference = 3; - break; } - if (object.skip_schema_copy != null) - message.skip_schema_copy = Boolean(object.skip_schema_copy); - if (object.on_ddl != null) - message.on_ddl = String(object.on_ddl); - if (object.stop_after_copy != null) - message.stop_after_copy = Boolean(object.stop_after_copy); - if (object.defer_secondary_keys != null) - message.defer_secondary_keys = Boolean(object.defer_secondary_keys); - if (object.auto_start != null) - message.auto_start = Boolean(object.auto_start); - if (object.workflow_options != null) { - if (typeof object.workflow_options !== "object") - throw TypeError(".vtctldata.ReshardCreateRequest.workflow_options: object expected"); - message.workflow_options = $root.vtctldata.WorkflowOptions.fromObject(object.workflow_options); + if (object.tablet_map) { + if (typeof object.tablet_map !== "object") + throw TypeError(".vtctldata.ShardReplicationPositionsResponse.tablet_map: object expected"); + message.tablet_map = {}; + for (let keys = Object.keys(object.tablet_map), i = 0; i < keys.length; ++i) { + if (typeof object.tablet_map[keys[i]] !== "object") + throw TypeError(".vtctldata.ShardReplicationPositionsResponse.tablet_map: object expected"); + message.tablet_map[keys[i]] = $root.topodata.Tablet.fromObject(object.tablet_map[keys[i]]); + } } return message; }; /** - * Creates a plain object from a ReshardCreateRequest message. Also converts values to other types if specified. + * Creates a plain object from a ShardReplicationPositionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ReshardCreateRequest + * @memberof vtctldata.ShardReplicationPositionsResponse * @static - * @param {vtctldata.ReshardCreateRequest} message ReshardCreateRequest + * @param {vtctldata.ShardReplicationPositionsResponse} message ShardReplicationPositionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReshardCreateRequest.toObject = function toObject(message, options) { + ShardReplicationPositionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.source_shards = []; - object.target_shards = []; - object.cells = []; - object.tablet_types = []; - } - if (options.defaults) { - object.workflow = ""; - object.keyspace = ""; - object.tablet_selection_preference = options.enums === String ? "ANY" : 0; - object.skip_schema_copy = false; - object.on_ddl = ""; - object.stop_after_copy = false; - object.defer_secondary_keys = false; - object.auto_start = false; - object.workflow_options = null; - } - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.source_shards && message.source_shards.length) { - object.source_shards = []; - for (let j = 0; j < message.source_shards.length; ++j) - object.source_shards[j] = message.source_shards[j]; - } - if (message.target_shards && message.target_shards.length) { - object.target_shards = []; - for (let j = 0; j < message.target_shards.length; ++j) - object.target_shards[j] = message.target_shards[j]; - } - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } - if (message.tablet_types && message.tablet_types.length) { - object.tablet_types = []; - for (let j = 0; j < message.tablet_types.length; ++j) - object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; + if (options.objects || options.defaults) { + object.replication_statuses = {}; + object.tablet_map = {}; + } + let keys2; + if (message.replication_statuses && (keys2 = Object.keys(message.replication_statuses)).length) { + object.replication_statuses = {}; + for (let j = 0; j < keys2.length; ++j) + object.replication_statuses[keys2[j]] = $root.replicationdata.Status.toObject(message.replication_statuses[keys2[j]], options); + } + if (message.tablet_map && (keys2 = Object.keys(message.tablet_map)).length) { + object.tablet_map = {}; + for (let j = 0; j < keys2.length; ++j) + object.tablet_map[keys2[j]] = $root.topodata.Tablet.toObject(message.tablet_map[keys2[j]], options); } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; - if (message.skip_schema_copy != null && message.hasOwnProperty("skip_schema_copy")) - object.skip_schema_copy = message.skip_schema_copy; - if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) - object.on_ddl = message.on_ddl; - if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) - object.stop_after_copy = message.stop_after_copy; - if (message.defer_secondary_keys != null && message.hasOwnProperty("defer_secondary_keys")) - object.defer_secondary_keys = message.defer_secondary_keys; - if (message.auto_start != null && message.hasOwnProperty("auto_start")) - object.auto_start = message.auto_start; - if (message.workflow_options != null && message.hasOwnProperty("workflow_options")) - object.workflow_options = $root.vtctldata.WorkflowOptions.toObject(message.workflow_options, options); return object; }; /** - * Converts this ReshardCreateRequest to JSON. + * Converts this ShardReplicationPositionsResponse to JSON. * @function toJSON - * @memberof vtctldata.ReshardCreateRequest + * @memberof vtctldata.ShardReplicationPositionsResponse * @instance * @returns {Object.} JSON object */ - ReshardCreateRequest.prototype.toJSON = function toJSON() { + ShardReplicationPositionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReshardCreateRequest + * Gets the default type url for ShardReplicationPositionsResponse * @function getTypeUrl - * @memberof vtctldata.ReshardCreateRequest + * @memberof vtctldata.ShardReplicationPositionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReshardCreateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShardReplicationPositionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ReshardCreateRequest"; + return typeUrlPrefix + "/vtctldata.ShardReplicationPositionsResponse"; }; - return ReshardCreateRequest; + return ShardReplicationPositionsResponse; })(); - vtctldata.RestoreFromBackupRequest = (function() { + vtctldata.ShardReplicationRemoveRequest = (function() { /** - * Properties of a RestoreFromBackupRequest. + * Properties of a ShardReplicationRemoveRequest. * @memberof vtctldata - * @interface IRestoreFromBackupRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] RestoreFromBackupRequest tablet_alias - * @property {vttime.ITime|null} [backup_time] RestoreFromBackupRequest backup_time - * @property {string|null} [restore_to_pos] RestoreFromBackupRequest restore_to_pos - * @property {boolean|null} [dry_run] RestoreFromBackupRequest dry_run - * @property {vttime.ITime|null} [restore_to_timestamp] RestoreFromBackupRequest restore_to_timestamp - * @property {Array.|null} [allowed_backup_engines] RestoreFromBackupRequest allowed_backup_engines + * @interface IShardReplicationRemoveRequest + * @property {string|null} [keyspace] ShardReplicationRemoveRequest keyspace + * @property {string|null} [shard] ShardReplicationRemoveRequest shard + * @property {topodata.ITabletAlias|null} [tablet_alias] ShardReplicationRemoveRequest tablet_alias */ /** - * Constructs a new RestoreFromBackupRequest. + * Constructs a new ShardReplicationRemoveRequest. * @memberof vtctldata - * @classdesc Represents a RestoreFromBackupRequest. - * @implements IRestoreFromBackupRequest + * @classdesc Represents a ShardReplicationRemoveRequest. + * @implements IShardReplicationRemoveRequest * @constructor - * @param {vtctldata.IRestoreFromBackupRequest=} [properties] Properties to set + * @param {vtctldata.IShardReplicationRemoveRequest=} [properties] Properties to set */ - function RestoreFromBackupRequest(properties) { - this.allowed_backup_engines = []; + function ShardReplicationRemoveRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -176761,148 +184493,103 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * RestoreFromBackupRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.RestoreFromBackupRequest - * @instance - */ - RestoreFromBackupRequest.prototype.tablet_alias = null; - - /** - * RestoreFromBackupRequest backup_time. - * @member {vttime.ITime|null|undefined} backup_time - * @memberof vtctldata.RestoreFromBackupRequest - * @instance - */ - RestoreFromBackupRequest.prototype.backup_time = null; - - /** - * RestoreFromBackupRequest restore_to_pos. - * @member {string} restore_to_pos - * @memberof vtctldata.RestoreFromBackupRequest - * @instance - */ - RestoreFromBackupRequest.prototype.restore_to_pos = ""; - - /** - * RestoreFromBackupRequest dry_run. - * @member {boolean} dry_run - * @memberof vtctldata.RestoreFromBackupRequest + * ShardReplicationRemoveRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.ShardReplicationRemoveRequest * @instance */ - RestoreFromBackupRequest.prototype.dry_run = false; + ShardReplicationRemoveRequest.prototype.keyspace = ""; /** - * RestoreFromBackupRequest restore_to_timestamp. - * @member {vttime.ITime|null|undefined} restore_to_timestamp - * @memberof vtctldata.RestoreFromBackupRequest + * ShardReplicationRemoveRequest shard. + * @member {string} shard + * @memberof vtctldata.ShardReplicationRemoveRequest * @instance */ - RestoreFromBackupRequest.prototype.restore_to_timestamp = null; + ShardReplicationRemoveRequest.prototype.shard = ""; /** - * RestoreFromBackupRequest allowed_backup_engines. - * @member {Array.} allowed_backup_engines - * @memberof vtctldata.RestoreFromBackupRequest + * ShardReplicationRemoveRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.ShardReplicationRemoveRequest * @instance */ - RestoreFromBackupRequest.prototype.allowed_backup_engines = $util.emptyArray; + ShardReplicationRemoveRequest.prototype.tablet_alias = null; /** - * Creates a new RestoreFromBackupRequest instance using the specified properties. + * Creates a new ShardReplicationRemoveRequest instance using the specified properties. * @function create - * @memberof vtctldata.RestoreFromBackupRequest + * @memberof vtctldata.ShardReplicationRemoveRequest * @static - * @param {vtctldata.IRestoreFromBackupRequest=} [properties] Properties to set - * @returns {vtctldata.RestoreFromBackupRequest} RestoreFromBackupRequest instance + * @param {vtctldata.IShardReplicationRemoveRequest=} [properties] Properties to set + * @returns {vtctldata.ShardReplicationRemoveRequest} ShardReplicationRemoveRequest instance */ - RestoreFromBackupRequest.create = function create(properties) { - return new RestoreFromBackupRequest(properties); + ShardReplicationRemoveRequest.create = function create(properties) { + return new ShardReplicationRemoveRequest(properties); }; /** - * Encodes the specified RestoreFromBackupRequest message. Does not implicitly {@link vtctldata.RestoreFromBackupRequest.verify|verify} messages. + * Encodes the specified ShardReplicationRemoveRequest message. Does not implicitly {@link vtctldata.ShardReplicationRemoveRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RestoreFromBackupRequest + * @memberof vtctldata.ShardReplicationRemoveRequest * @static - * @param {vtctldata.IRestoreFromBackupRequest} message RestoreFromBackupRequest message or plain object to encode + * @param {vtctldata.IShardReplicationRemoveRequest} message ShardReplicationRemoveRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreFromBackupRequest.encode = function encode(message, writer) { + ShardReplicationRemoveRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.backup_time != null && Object.hasOwnProperty.call(message, "backup_time")) - $root.vttime.Time.encode(message.backup_time, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.restore_to_pos != null && Object.hasOwnProperty.call(message, "restore_to_pos")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.restore_to_pos); - if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.dry_run); - if (message.restore_to_timestamp != null && Object.hasOwnProperty.call(message, "restore_to_timestamp")) - $root.vttime.Time.encode(message.restore_to_timestamp, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.allowed_backup_engines != null && message.allowed_backup_engines.length) - for (let i = 0; i < message.allowed_backup_engines.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.allowed_backup_engines[i]); + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified RestoreFromBackupRequest message, length delimited. Does not implicitly {@link vtctldata.RestoreFromBackupRequest.verify|verify} messages. + * Encodes the specified ShardReplicationRemoveRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationRemoveRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RestoreFromBackupRequest + * @memberof vtctldata.ShardReplicationRemoveRequest * @static - * @param {vtctldata.IRestoreFromBackupRequest} message RestoreFromBackupRequest message or plain object to encode + * @param {vtctldata.IShardReplicationRemoveRequest} message ShardReplicationRemoveRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreFromBackupRequest.encodeDelimited = function encodeDelimited(message, writer) { + ShardReplicationRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RestoreFromBackupRequest message from the specified reader or buffer. + * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RestoreFromBackupRequest + * @memberof vtctldata.ShardReplicationRemoveRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RestoreFromBackupRequest} RestoreFromBackupRequest + * @returns {vtctldata.ShardReplicationRemoveRequest} ShardReplicationRemoveRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreFromBackupRequest.decode = function decode(reader, length) { + ShardReplicationRemoveRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RestoreFromBackupRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationRemoveRequest(); while (reader.pos < end) { let 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.backup_time = $root.vttime.Time.decode(reader, reader.uint32()); + message.shard = reader.string(); break; } case 3: { - message.restore_to_pos = reader.string(); - break; - } - case 4: { - message.dry_run = reader.bool(); - break; - } - case 5: { - message.restore_to_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 6: { - if (!(message.allowed_backup_engines && message.allowed_backup_engines.length)) - message.allowed_backup_engines = []; - message.allowed_backup_engines.push(reader.string()); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -176914,194 +184601,143 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RestoreFromBackupRequest message from the specified reader or buffer, length delimited. + * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RestoreFromBackupRequest + * @memberof vtctldata.ShardReplicationRemoveRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RestoreFromBackupRequest} RestoreFromBackupRequest + * @returns {vtctldata.ShardReplicationRemoveRequest} ShardReplicationRemoveRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreFromBackupRequest.decodeDelimited = function decodeDelimited(reader) { + ShardReplicationRemoveRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RestoreFromBackupRequest message. + * Verifies a ShardReplicationRemoveRequest message. * @function verify - * @memberof vtctldata.RestoreFromBackupRequest + * @memberof vtctldata.ShardReplicationRemoveRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RestoreFromBackupRequest.verify = function verify(message) { + ShardReplicationRemoveRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { let error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) return "tablet_alias." + error; } - if (message.backup_time != null && message.hasOwnProperty("backup_time")) { - let error = $root.vttime.Time.verify(message.backup_time); - if (error) - return "backup_time." + error; - } - if (message.restore_to_pos != null && message.hasOwnProperty("restore_to_pos")) - if (!$util.isString(message.restore_to_pos)) - return "restore_to_pos: string expected"; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - if (typeof message.dry_run !== "boolean") - return "dry_run: boolean expected"; - if (message.restore_to_timestamp != null && message.hasOwnProperty("restore_to_timestamp")) { - let error = $root.vttime.Time.verify(message.restore_to_timestamp); - if (error) - return "restore_to_timestamp." + error; - } - if (message.allowed_backup_engines != null && message.hasOwnProperty("allowed_backup_engines")) { - if (!Array.isArray(message.allowed_backup_engines)) - return "allowed_backup_engines: array expected"; - for (let i = 0; i < message.allowed_backup_engines.length; ++i) - if (!$util.isString(message.allowed_backup_engines[i])) - return "allowed_backup_engines: string[] expected"; - } return null; }; /** - * Creates a RestoreFromBackupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShardReplicationRemoveRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RestoreFromBackupRequest + * @memberof vtctldata.ShardReplicationRemoveRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RestoreFromBackupRequest} RestoreFromBackupRequest + * @returns {vtctldata.ShardReplicationRemoveRequest} ShardReplicationRemoveRequest */ - RestoreFromBackupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RestoreFromBackupRequest) + ShardReplicationRemoveRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ShardReplicationRemoveRequest) return object; - let message = new $root.vtctldata.RestoreFromBackupRequest(); + let message = new $root.vtctldata.ShardReplicationRemoveRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.RestoreFromBackupRequest.tablet_alias: object expected"); + throw TypeError(".vtctldata.ShardReplicationRemoveRequest.tablet_alias: object expected"); message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } - if (object.backup_time != null) { - if (typeof object.backup_time !== "object") - throw TypeError(".vtctldata.RestoreFromBackupRequest.backup_time: object expected"); - message.backup_time = $root.vttime.Time.fromObject(object.backup_time); - } - if (object.restore_to_pos != null) - message.restore_to_pos = String(object.restore_to_pos); - if (object.dry_run != null) - message.dry_run = Boolean(object.dry_run); - if (object.restore_to_timestamp != null) { - if (typeof object.restore_to_timestamp !== "object") - throw TypeError(".vtctldata.RestoreFromBackupRequest.restore_to_timestamp: object expected"); - message.restore_to_timestamp = $root.vttime.Time.fromObject(object.restore_to_timestamp); - } - if (object.allowed_backup_engines) { - if (!Array.isArray(object.allowed_backup_engines)) - throw TypeError(".vtctldata.RestoreFromBackupRequest.allowed_backup_engines: array expected"); - message.allowed_backup_engines = []; - for (let i = 0; i < object.allowed_backup_engines.length; ++i) - message.allowed_backup_engines[i] = String(object.allowed_backup_engines[i]); - } return message; }; /** - * Creates a plain object from a RestoreFromBackupRequest message. Also converts values to other types if specified. + * Creates a plain object from a ShardReplicationRemoveRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RestoreFromBackupRequest + * @memberof vtctldata.ShardReplicationRemoveRequest * @static - * @param {vtctldata.RestoreFromBackupRequest} message RestoreFromBackupRequest + * @param {vtctldata.ShardReplicationRemoveRequest} message ShardReplicationRemoveRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RestoreFromBackupRequest.toObject = function toObject(message, options) { + ShardReplicationRemoveRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.allowed_backup_engines = []; if (options.defaults) { + object.keyspace = ""; + object.shard = ""; object.tablet_alias = null; - object.backup_time = null; - object.restore_to_pos = ""; - object.dry_run = false; - object.restore_to_timestamp = null; } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.backup_time != null && message.hasOwnProperty("backup_time")) - object.backup_time = $root.vttime.Time.toObject(message.backup_time, options); - if (message.restore_to_pos != null && message.hasOwnProperty("restore_to_pos")) - object.restore_to_pos = message.restore_to_pos; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - object.dry_run = message.dry_run; - if (message.restore_to_timestamp != null && message.hasOwnProperty("restore_to_timestamp")) - object.restore_to_timestamp = $root.vttime.Time.toObject(message.restore_to_timestamp, options); - if (message.allowed_backup_engines && message.allowed_backup_engines.length) { - object.allowed_backup_engines = []; - for (let j = 0; j < message.allowed_backup_engines.length; ++j) - object.allowed_backup_engines[j] = message.allowed_backup_engines[j]; - } return object; }; /** - * Converts this RestoreFromBackupRequest to JSON. + * Converts this ShardReplicationRemoveRequest to JSON. * @function toJSON - * @memberof vtctldata.RestoreFromBackupRequest + * @memberof vtctldata.ShardReplicationRemoveRequest * @instance * @returns {Object.} JSON object */ - RestoreFromBackupRequest.prototype.toJSON = function toJSON() { + ShardReplicationRemoveRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RestoreFromBackupRequest + * Gets the default type url for ShardReplicationRemoveRequest * @function getTypeUrl - * @memberof vtctldata.RestoreFromBackupRequest + * @memberof vtctldata.ShardReplicationRemoveRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RestoreFromBackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShardReplicationRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RestoreFromBackupRequest"; + return typeUrlPrefix + "/vtctldata.ShardReplicationRemoveRequest"; }; - return RestoreFromBackupRequest; + return ShardReplicationRemoveRequest; })(); - vtctldata.RestoreFromBackupResponse = (function() { + vtctldata.ShardReplicationRemoveResponse = (function() { /** - * Properties of a RestoreFromBackupResponse. + * Properties of a ShardReplicationRemoveResponse. * @memberof vtctldata - * @interface IRestoreFromBackupResponse - * @property {topodata.ITabletAlias|null} [tablet_alias] RestoreFromBackupResponse tablet_alias - * @property {string|null} [keyspace] RestoreFromBackupResponse keyspace - * @property {string|null} [shard] RestoreFromBackupResponse shard - * @property {logutil.IEvent|null} [event] RestoreFromBackupResponse event + * @interface IShardReplicationRemoveResponse */ /** - * Constructs a new RestoreFromBackupResponse. + * Constructs a new ShardReplicationRemoveResponse. * @memberof vtctldata - * @classdesc Represents a RestoreFromBackupResponse. - * @implements IRestoreFromBackupResponse + * @classdesc Represents a ShardReplicationRemoveResponse. + * @implements IShardReplicationRemoveResponse * @constructor - * @param {vtctldata.IRestoreFromBackupResponse=} [properties] Properties to set + * @param {vtctldata.IShardReplicationRemoveResponse=} [properties] Properties to set */ - function RestoreFromBackupResponse(properties) { + function ShardReplicationRemoveResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177109,100 +184745,257 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * RestoreFromBackupResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.RestoreFromBackupResponse - * @instance + * Creates a new ShardReplicationRemoveResponse instance using the specified properties. + * @function create + * @memberof vtctldata.ShardReplicationRemoveResponse + * @static + * @param {vtctldata.IShardReplicationRemoveResponse=} [properties] Properties to set + * @returns {vtctldata.ShardReplicationRemoveResponse} ShardReplicationRemoveResponse instance */ - RestoreFromBackupResponse.prototype.tablet_alias = null; + ShardReplicationRemoveResponse.create = function create(properties) { + return new ShardReplicationRemoveResponse(properties); + }; /** - * RestoreFromBackupResponse keyspace. - * @member {string} keyspace - * @memberof vtctldata.RestoreFromBackupResponse + * Encodes the specified ShardReplicationRemoveResponse message. Does not implicitly {@link vtctldata.ShardReplicationRemoveResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.ShardReplicationRemoveResponse + * @static + * @param {vtctldata.IShardReplicationRemoveResponse} message ShardReplicationRemoveResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardReplicationRemoveResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified ShardReplicationRemoveResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationRemoveResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ShardReplicationRemoveResponse + * @static + * @param {vtctldata.IShardReplicationRemoveResponse} message ShardReplicationRemoveResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardReplicationRemoveResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.ShardReplicationRemoveResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.ShardReplicationRemoveResponse} ShardReplicationRemoveResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardReplicationRemoveResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationRemoveResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ShardReplicationRemoveResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ShardReplicationRemoveResponse} ShardReplicationRemoveResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardReplicationRemoveResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ShardReplicationRemoveResponse message. + * @function verify + * @memberof vtctldata.ShardReplicationRemoveResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ShardReplicationRemoveResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a ShardReplicationRemoveResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ShardReplicationRemoveResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ShardReplicationRemoveResponse} ShardReplicationRemoveResponse + */ + ShardReplicationRemoveResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ShardReplicationRemoveResponse) + return object; + return new $root.vtctldata.ShardReplicationRemoveResponse(); + }; + + /** + * Creates a plain object from a ShardReplicationRemoveResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ShardReplicationRemoveResponse + * @static + * @param {vtctldata.ShardReplicationRemoveResponse} message ShardReplicationRemoveResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ShardReplicationRemoveResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this ShardReplicationRemoveResponse to JSON. + * @function toJSON + * @memberof vtctldata.ShardReplicationRemoveResponse * @instance + * @returns {Object.} JSON object */ - RestoreFromBackupResponse.prototype.keyspace = ""; + ShardReplicationRemoveResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * RestoreFromBackupResponse shard. - * @member {string} shard - * @memberof vtctldata.RestoreFromBackupResponse + * Gets the default type url for ShardReplicationRemoveResponse + * @function getTypeUrl + * @memberof vtctldata.ShardReplicationRemoveResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ShardReplicationRemoveResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ShardReplicationRemoveResponse"; + }; + + return ShardReplicationRemoveResponse; + })(); + + vtctldata.SleepTabletRequest = (function() { + + /** + * Properties of a SleepTabletRequest. + * @memberof vtctldata + * @interface ISleepTabletRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] SleepTabletRequest tablet_alias + * @property {vttime.IDuration|null} [duration] SleepTabletRequest duration + */ + + /** + * Constructs a new SleepTabletRequest. + * @memberof vtctldata + * @classdesc Represents a SleepTabletRequest. + * @implements ISleepTabletRequest + * @constructor + * @param {vtctldata.ISleepTabletRequest=} [properties] Properties to set + */ + function SleepTabletRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SleepTabletRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.SleepTabletRequest * @instance */ - RestoreFromBackupResponse.prototype.shard = ""; + SleepTabletRequest.prototype.tablet_alias = null; /** - * RestoreFromBackupResponse event. - * @member {logutil.IEvent|null|undefined} event - * @memberof vtctldata.RestoreFromBackupResponse + * SleepTabletRequest duration. + * @member {vttime.IDuration|null|undefined} duration + * @memberof vtctldata.SleepTabletRequest * @instance */ - RestoreFromBackupResponse.prototype.event = null; + SleepTabletRequest.prototype.duration = null; /** - * Creates a new RestoreFromBackupResponse instance using the specified properties. + * Creates a new SleepTabletRequest instance using the specified properties. * @function create - * @memberof vtctldata.RestoreFromBackupResponse + * @memberof vtctldata.SleepTabletRequest * @static - * @param {vtctldata.IRestoreFromBackupResponse=} [properties] Properties to set - * @returns {vtctldata.RestoreFromBackupResponse} RestoreFromBackupResponse instance + * @param {vtctldata.ISleepTabletRequest=} [properties] Properties to set + * @returns {vtctldata.SleepTabletRequest} SleepTabletRequest instance */ - RestoreFromBackupResponse.create = function create(properties) { - return new RestoreFromBackupResponse(properties); + SleepTabletRequest.create = function create(properties) { + return new SleepTabletRequest(properties); }; /** - * Encodes the specified RestoreFromBackupResponse message. Does not implicitly {@link vtctldata.RestoreFromBackupResponse.verify|verify} messages. + * Encodes the specified SleepTabletRequest message. Does not implicitly {@link vtctldata.SleepTabletRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RestoreFromBackupResponse + * @memberof vtctldata.SleepTabletRequest * @static - * @param {vtctldata.IRestoreFromBackupResponse} message RestoreFromBackupResponse message or plain object to encode + * @param {vtctldata.ISleepTabletRequest} message SleepTabletRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreFromBackupResponse.encode = function encode(message, writer) { + SleepTabletRequest.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.duration != null && Object.hasOwnProperty.call(message, "duration")) + $root.vttime.Duration.encode(message.duration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified RestoreFromBackupResponse message, length delimited. Does not implicitly {@link vtctldata.RestoreFromBackupResponse.verify|verify} messages. + * Encodes the specified SleepTabletRequest message, length delimited. Does not implicitly {@link vtctldata.SleepTabletRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RestoreFromBackupResponse + * @memberof vtctldata.SleepTabletRequest * @static - * @param {vtctldata.IRestoreFromBackupResponse} message RestoreFromBackupResponse message or plain object to encode + * @param {vtctldata.ISleepTabletRequest} message SleepTabletRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreFromBackupResponse.encodeDelimited = function encodeDelimited(message, writer) { + SleepTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RestoreFromBackupResponse message from the specified reader or buffer. + * Decodes a SleepTabletRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RestoreFromBackupResponse + * @memberof vtctldata.SleepTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RestoreFromBackupResponse} RestoreFromBackupResponse + * @returns {vtctldata.SleepTabletRequest} SleepTabletRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreFromBackupResponse.decode = function decode(reader, length) { + SleepTabletRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RestoreFromBackupResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SleepTabletRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -177211,15 +185004,7 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 2: { - message.keyspace = reader.string(); - break; - } - case 3: { - message.shard = reader.string(); - break; - } - case 4: { - message.event = $root.logutil.Event.decode(reader, reader.uint32()); + message.duration = $root.vttime.Duration.decode(reader, reader.uint32()); break; } default: @@ -177231,30 +185016,30 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RestoreFromBackupResponse message from the specified reader or buffer, length delimited. + * Decodes a SleepTabletRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RestoreFromBackupResponse + * @memberof vtctldata.SleepTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RestoreFromBackupResponse} RestoreFromBackupResponse + * @returns {vtctldata.SleepTabletRequest} SleepTabletRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreFromBackupResponse.decodeDelimited = function decodeDelimited(reader) { + SleepTabletRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RestoreFromBackupResponse message. + * Verifies a SleepTabletRequest message. * @function verify - * @memberof vtctldata.RestoreFromBackupResponse + * @memberof vtctldata.SleepTabletRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RestoreFromBackupResponse.verify = function verify(message) { + SleepTabletRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { @@ -177262,128 +185047,109 @@ export const vtctldata = $root.vtctldata = (() => { 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")) { - let error = $root.logutil.Event.verify(message.event); + if (message.duration != null && message.hasOwnProperty("duration")) { + let error = $root.vttime.Duration.verify(message.duration); if (error) - return "event." + error; + return "duration." + error; } return null; }; /** - * Creates a RestoreFromBackupResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SleepTabletRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RestoreFromBackupResponse + * @memberof vtctldata.SleepTabletRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RestoreFromBackupResponse} RestoreFromBackupResponse + * @returns {vtctldata.SleepTabletRequest} SleepTabletRequest */ - RestoreFromBackupResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RestoreFromBackupResponse) + SleepTabletRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SleepTabletRequest) return object; - let message = new $root.vtctldata.RestoreFromBackupResponse(); + let message = new $root.vtctldata.SleepTabletRequest(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.RestoreFromBackupResponse.tablet_alias: object expected"); + throw TypeError(".vtctldata.SleepTabletRequest.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.RestoreFromBackupResponse.event: object expected"); - message.event = $root.logutil.Event.fromObject(object.event); + if (object.duration != null) { + if (typeof object.duration !== "object") + throw TypeError(".vtctldata.SleepTabletRequest.duration: object expected"); + message.duration = $root.vttime.Duration.fromObject(object.duration); } return message; }; /** - * Creates a plain object from a RestoreFromBackupResponse message. Also converts values to other types if specified. + * Creates a plain object from a SleepTabletRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RestoreFromBackupResponse + * @memberof vtctldata.SleepTabletRequest * @static - * @param {vtctldata.RestoreFromBackupResponse} message RestoreFromBackupResponse + * @param {vtctldata.SleepTabletRequest} message SleepTabletRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RestoreFromBackupResponse.toObject = function toObject(message, options) { + SleepTabletRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.tablet_alias = null; - object.keyspace = ""; - object.shard = ""; - object.event = null; + object.duration = null; } if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.event != null && message.hasOwnProperty("event")) - object.event = $root.logutil.Event.toObject(message.event, options); + if (message.duration != null && message.hasOwnProperty("duration")) + object.duration = $root.vttime.Duration.toObject(message.duration, options); return object; }; /** - * Converts this RestoreFromBackupResponse to JSON. + * Converts this SleepTabletRequest to JSON. * @function toJSON - * @memberof vtctldata.RestoreFromBackupResponse + * @memberof vtctldata.SleepTabletRequest * @instance * @returns {Object.} JSON object */ - RestoreFromBackupResponse.prototype.toJSON = function toJSON() { + SleepTabletRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RestoreFromBackupResponse + * Gets the default type url for SleepTabletRequest * @function getTypeUrl - * @memberof vtctldata.RestoreFromBackupResponse + * @memberof vtctldata.SleepTabletRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RestoreFromBackupResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SleepTabletRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RestoreFromBackupResponse"; + return typeUrlPrefix + "/vtctldata.SleepTabletRequest"; }; - return RestoreFromBackupResponse; + return SleepTabletRequest; })(); - vtctldata.RetrySchemaMigrationRequest = (function() { + vtctldata.SleepTabletResponse = (function() { /** - * Properties of a RetrySchemaMigrationRequest. + * Properties of a SleepTabletResponse. * @memberof vtctldata - * @interface IRetrySchemaMigrationRequest - * @property {string|null} [keyspace] RetrySchemaMigrationRequest keyspace - * @property {string|null} [uuid] RetrySchemaMigrationRequest uuid - * @property {vtrpc.ICallerID|null} [caller_id] RetrySchemaMigrationRequest caller_id + * @interface ISleepTabletResponse */ /** - * Constructs a new RetrySchemaMigrationRequest. + * Constructs a new SleepTabletResponse. * @memberof vtctldata - * @classdesc Represents a RetrySchemaMigrationRequest. - * @implements IRetrySchemaMigrationRequest + * @classdesc Represents a SleepTabletResponse. + * @implements ISleepTabletResponse * @constructor - * @param {vtctldata.IRetrySchemaMigrationRequest=} [properties] Properties to set + * @param {vtctldata.ISleepTabletResponse=} [properties] Properties to set */ - function RetrySchemaMigrationRequest(properties) { + function SleepTabletResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177391,90 +185157,314 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * RetrySchemaMigrationRequest keyspace. + * Creates a new SleepTabletResponse instance using the specified properties. + * @function create + * @memberof vtctldata.SleepTabletResponse + * @static + * @param {vtctldata.ISleepTabletResponse=} [properties] Properties to set + * @returns {vtctldata.SleepTabletResponse} SleepTabletResponse instance + */ + SleepTabletResponse.create = function create(properties) { + return new SleepTabletResponse(properties); + }; + + /** + * Encodes the specified SleepTabletResponse message. Does not implicitly {@link vtctldata.SleepTabletResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.SleepTabletResponse + * @static + * @param {vtctldata.ISleepTabletResponse} message SleepTabletResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SleepTabletResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified SleepTabletResponse message, length delimited. Does not implicitly {@link vtctldata.SleepTabletResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.SleepTabletResponse + * @static + * @param {vtctldata.ISleepTabletResponse} message SleepTabletResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SleepTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SleepTabletResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.SleepTabletResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.SleepTabletResponse} SleepTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SleepTabletResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SleepTabletResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SleepTabletResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.SleepTabletResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.SleepTabletResponse} SleepTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SleepTabletResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SleepTabletResponse message. + * @function verify + * @memberof vtctldata.SleepTabletResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SleepTabletResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a SleepTabletResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.SleepTabletResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.SleepTabletResponse} SleepTabletResponse + */ + SleepTabletResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SleepTabletResponse) + return object; + return new $root.vtctldata.SleepTabletResponse(); + }; + + /** + * Creates a plain object from a SleepTabletResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.SleepTabletResponse + * @static + * @param {vtctldata.SleepTabletResponse} message SleepTabletResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SleepTabletResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this SleepTabletResponse to JSON. + * @function toJSON + * @memberof vtctldata.SleepTabletResponse + * @instance + * @returns {Object.} JSON object + */ + SleepTabletResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SleepTabletResponse + * @function getTypeUrl + * @memberof vtctldata.SleepTabletResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SleepTabletResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.SleepTabletResponse"; + }; + + return SleepTabletResponse; + })(); + + vtctldata.SourceShardAddRequest = (function() { + + /** + * Properties of a SourceShardAddRequest. + * @memberof vtctldata + * @interface ISourceShardAddRequest + * @property {string|null} [keyspace] SourceShardAddRequest keyspace + * @property {string|null} [shard] SourceShardAddRequest shard + * @property {number|null} [uid] SourceShardAddRequest uid + * @property {string|null} [source_keyspace] SourceShardAddRequest source_keyspace + * @property {string|null} [source_shard] SourceShardAddRequest source_shard + * @property {topodata.IKeyRange|null} [key_range] SourceShardAddRequest key_range + * @property {Array.|null} [tables] SourceShardAddRequest tables + */ + + /** + * Constructs a new SourceShardAddRequest. + * @memberof vtctldata + * @classdesc Represents a SourceShardAddRequest. + * @implements ISourceShardAddRequest + * @constructor + * @param {vtctldata.ISourceShardAddRequest=} [properties] Properties to set + */ + function SourceShardAddRequest(properties) { + this.tables = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SourceShardAddRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.RetrySchemaMigrationRequest + * @memberof vtctldata.SourceShardAddRequest * @instance */ - RetrySchemaMigrationRequest.prototype.keyspace = ""; + SourceShardAddRequest.prototype.keyspace = ""; /** - * RetrySchemaMigrationRequest uuid. - * @member {string} uuid - * @memberof vtctldata.RetrySchemaMigrationRequest + * SourceShardAddRequest shard. + * @member {string} shard + * @memberof vtctldata.SourceShardAddRequest * @instance */ - RetrySchemaMigrationRequest.prototype.uuid = ""; + SourceShardAddRequest.prototype.shard = ""; /** - * RetrySchemaMigrationRequest caller_id. - * @member {vtrpc.ICallerID|null|undefined} caller_id - * @memberof vtctldata.RetrySchemaMigrationRequest + * SourceShardAddRequest uid. + * @member {number} uid + * @memberof vtctldata.SourceShardAddRequest * @instance */ - RetrySchemaMigrationRequest.prototype.caller_id = null; + SourceShardAddRequest.prototype.uid = 0; /** - * Creates a new RetrySchemaMigrationRequest instance using the specified properties. + * SourceShardAddRequest source_keyspace. + * @member {string} source_keyspace + * @memberof vtctldata.SourceShardAddRequest + * @instance + */ + SourceShardAddRequest.prototype.source_keyspace = ""; + + /** + * SourceShardAddRequest source_shard. + * @member {string} source_shard + * @memberof vtctldata.SourceShardAddRequest + * @instance + */ + SourceShardAddRequest.prototype.source_shard = ""; + + /** + * SourceShardAddRequest key_range. + * @member {topodata.IKeyRange|null|undefined} key_range + * @memberof vtctldata.SourceShardAddRequest + * @instance + */ + SourceShardAddRequest.prototype.key_range = null; + + /** + * SourceShardAddRequest tables. + * @member {Array.} tables + * @memberof vtctldata.SourceShardAddRequest + * @instance + */ + SourceShardAddRequest.prototype.tables = $util.emptyArray; + + /** + * Creates a new SourceShardAddRequest instance using the specified properties. * @function create - * @memberof vtctldata.RetrySchemaMigrationRequest + * @memberof vtctldata.SourceShardAddRequest * @static - * @param {vtctldata.IRetrySchemaMigrationRequest=} [properties] Properties to set - * @returns {vtctldata.RetrySchemaMigrationRequest} RetrySchemaMigrationRequest instance + * @param {vtctldata.ISourceShardAddRequest=} [properties] Properties to set + * @returns {vtctldata.SourceShardAddRequest} SourceShardAddRequest instance */ - RetrySchemaMigrationRequest.create = function create(properties) { - return new RetrySchemaMigrationRequest(properties); + SourceShardAddRequest.create = function create(properties) { + return new SourceShardAddRequest(properties); }; /** - * Encodes the specified RetrySchemaMigrationRequest message. Does not implicitly {@link vtctldata.RetrySchemaMigrationRequest.verify|verify} messages. + * Encodes the specified SourceShardAddRequest message. Does not implicitly {@link vtctldata.SourceShardAddRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RetrySchemaMigrationRequest + * @memberof vtctldata.SourceShardAddRequest * @static - * @param {vtctldata.IRetrySchemaMigrationRequest} message RetrySchemaMigrationRequest message or plain object to encode + * @param {vtctldata.ISourceShardAddRequest} message SourceShardAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RetrySchemaMigrationRequest.encode = function encode(message, writer) { + SourceShardAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); - if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) - $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.uid); + if (message.source_keyspace != null && Object.hasOwnProperty.call(message, "source_keyspace")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.source_keyspace); + if (message.source_shard != null && Object.hasOwnProperty.call(message, "source_shard")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.source_shard); + if (message.key_range != null && Object.hasOwnProperty.call(message, "key_range")) + $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.tables != null && message.tables.length) + for (let i = 0; i < message.tables.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.tables[i]); return writer; }; /** - * Encodes the specified RetrySchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.RetrySchemaMigrationRequest.verify|verify} messages. + * Encodes the specified SourceShardAddRequest message, length delimited. Does not implicitly {@link vtctldata.SourceShardAddRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RetrySchemaMigrationRequest + * @memberof vtctldata.SourceShardAddRequest * @static - * @param {vtctldata.IRetrySchemaMigrationRequest} message RetrySchemaMigrationRequest message or plain object to encode + * @param {vtctldata.ISourceShardAddRequest} message SourceShardAddRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RetrySchemaMigrationRequest.encodeDelimited = function encodeDelimited(message, writer) { + SourceShardAddRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer. + * Decodes a SourceShardAddRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RetrySchemaMigrationRequest + * @memberof vtctldata.SourceShardAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RetrySchemaMigrationRequest} RetrySchemaMigrationRequest + * @returns {vtctldata.SourceShardAddRequest} SourceShardAddRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RetrySchemaMigrationRequest.decode = function decode(reader, length) { + SourceShardAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RetrySchemaMigrationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SourceShardAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -177483,11 +185473,29 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 2: { - message.uuid = reader.string(); + message.shard = reader.string(); break; } case 3: { - message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.uid = reader.int32(); + break; + } + case 4: { + message.source_keyspace = reader.string(); + break; + } + case 5: { + message.source_shard = reader.string(); + break; + } + case 6: { + message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); + break; + } + case 7: { + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); break; } default: @@ -177499,145 +185507,189 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer, length delimited. + * Decodes a SourceShardAddRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RetrySchemaMigrationRequest + * @memberof vtctldata.SourceShardAddRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RetrySchemaMigrationRequest} RetrySchemaMigrationRequest + * @returns {vtctldata.SourceShardAddRequest} SourceShardAddRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RetrySchemaMigrationRequest.decodeDelimited = function decodeDelimited(reader) { + SourceShardAddRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RetrySchemaMigrationRequest message. + * Verifies a SourceShardAddRequest message. * @function verify - * @memberof vtctldata.RetrySchemaMigrationRequest + * @memberof vtctldata.SourceShardAddRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RetrySchemaMigrationRequest.verify = function verify(message) { + SourceShardAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) if (!$util.isString(message.keyspace)) return "keyspace: string expected"; - if (message.uuid != null && message.hasOwnProperty("uuid")) - if (!$util.isString(message.uuid)) - return "uuid: string expected"; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) { - let error = $root.vtrpc.CallerID.verify(message.caller_id); + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isInteger(message.uid)) + return "uid: integer expected"; + if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) + if (!$util.isString(message.source_keyspace)) + return "source_keyspace: string expected"; + if (message.source_shard != null && message.hasOwnProperty("source_shard")) + if (!$util.isString(message.source_shard)) + return "source_shard: string expected"; + if (message.key_range != null && message.hasOwnProperty("key_range")) { + let error = $root.topodata.KeyRange.verify(message.key_range); if (error) - return "caller_id." + error; + return "key_range." + error; + } + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (let i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; } return null; }; /** - * Creates a RetrySchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SourceShardAddRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RetrySchemaMigrationRequest + * @memberof vtctldata.SourceShardAddRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RetrySchemaMigrationRequest} RetrySchemaMigrationRequest + * @returns {vtctldata.SourceShardAddRequest} SourceShardAddRequest */ - RetrySchemaMigrationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RetrySchemaMigrationRequest) + SourceShardAddRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SourceShardAddRequest) return object; - let message = new $root.vtctldata.RetrySchemaMigrationRequest(); + let message = new $root.vtctldata.SourceShardAddRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.uuid != null) - message.uuid = String(object.uuid); - if (object.caller_id != null) { - if (typeof object.caller_id !== "object") - throw TypeError(".vtctldata.RetrySchemaMigrationRequest.caller_id: object expected"); - message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); + if (object.shard != null) + message.shard = String(object.shard); + if (object.uid != null) + message.uid = object.uid | 0; + if (object.source_keyspace != null) + message.source_keyspace = String(object.source_keyspace); + if (object.source_shard != null) + message.source_shard = String(object.source_shard); + if (object.key_range != null) { + if (typeof object.key_range !== "object") + throw TypeError(".vtctldata.SourceShardAddRequest.key_range: object expected"); + message.key_range = $root.topodata.KeyRange.fromObject(object.key_range); + } + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".vtctldata.SourceShardAddRequest.tables: array expected"); + message.tables = []; + for (let i = 0; i < object.tables.length; ++i) + message.tables[i] = String(object.tables[i]); } return message; }; /** - * Creates a plain object from a RetrySchemaMigrationRequest message. Also converts values to other types if specified. + * Creates a plain object from a SourceShardAddRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RetrySchemaMigrationRequest + * @memberof vtctldata.SourceShardAddRequest * @static - * @param {vtctldata.RetrySchemaMigrationRequest} message RetrySchemaMigrationRequest + * @param {vtctldata.SourceShardAddRequest} message SourceShardAddRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RetrySchemaMigrationRequest.toObject = function toObject(message, options) { + SourceShardAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.tables = []; if (options.defaults) { object.keyspace = ""; - object.uuid = ""; - object.caller_id = null; + object.shard = ""; + object.uid = 0; + object.source_keyspace = ""; + object.source_shard = ""; + object.key_range = null; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.uuid != null && message.hasOwnProperty("uuid")) - object.uuid = message.uuid; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) - object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) + object.source_keyspace = message.source_keyspace; + if (message.source_shard != null && message.hasOwnProperty("source_shard")) + object.source_shard = message.source_shard; + if (message.key_range != null && message.hasOwnProperty("key_range")) + object.key_range = $root.topodata.KeyRange.toObject(message.key_range, options); + if (message.tables && message.tables.length) { + object.tables = []; + for (let j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; + } return object; }; /** - * Converts this RetrySchemaMigrationRequest to JSON. + * Converts this SourceShardAddRequest to JSON. * @function toJSON - * @memberof vtctldata.RetrySchemaMigrationRequest + * @memberof vtctldata.SourceShardAddRequest * @instance * @returns {Object.} JSON object */ - RetrySchemaMigrationRequest.prototype.toJSON = function toJSON() { + SourceShardAddRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RetrySchemaMigrationRequest + * Gets the default type url for SourceShardAddRequest * @function getTypeUrl - * @memberof vtctldata.RetrySchemaMigrationRequest + * @memberof vtctldata.SourceShardAddRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RetrySchemaMigrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SourceShardAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RetrySchemaMigrationRequest"; + return typeUrlPrefix + "/vtctldata.SourceShardAddRequest"; }; - return RetrySchemaMigrationRequest; + return SourceShardAddRequest; })(); - vtctldata.RetrySchemaMigrationResponse = (function() { + vtctldata.SourceShardAddResponse = (function() { /** - * Properties of a RetrySchemaMigrationResponse. + * Properties of a SourceShardAddResponse. * @memberof vtctldata - * @interface IRetrySchemaMigrationResponse - * @property {Object.|null} [rows_affected_by_shard] RetrySchemaMigrationResponse rows_affected_by_shard + * @interface ISourceShardAddResponse + * @property {topodata.IShard|null} [shard] SourceShardAddResponse shard */ /** - * Constructs a new RetrySchemaMigrationResponse. + * Constructs a new SourceShardAddResponse. * @memberof vtctldata - * @classdesc Represents a RetrySchemaMigrationResponse. - * @implements IRetrySchemaMigrationResponse + * @classdesc Represents a SourceShardAddResponse. + * @implements ISourceShardAddResponse * @constructor - * @param {vtctldata.IRetrySchemaMigrationResponse=} [properties] Properties to set + * @param {vtctldata.ISourceShardAddResponse=} [properties] Properties to set */ - function RetrySchemaMigrationResponse(properties) { - this.rows_affected_by_shard = {}; + function SourceShardAddResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177645,95 +185697,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * RetrySchemaMigrationResponse rows_affected_by_shard. - * @member {Object.} rows_affected_by_shard - * @memberof vtctldata.RetrySchemaMigrationResponse + * SourceShardAddResponse shard. + * @member {topodata.IShard|null|undefined} shard + * @memberof vtctldata.SourceShardAddResponse * @instance */ - RetrySchemaMigrationResponse.prototype.rows_affected_by_shard = $util.emptyObject; + SourceShardAddResponse.prototype.shard = null; /** - * Creates a new RetrySchemaMigrationResponse instance using the specified properties. + * Creates a new SourceShardAddResponse instance using the specified properties. * @function create - * @memberof vtctldata.RetrySchemaMigrationResponse + * @memberof vtctldata.SourceShardAddResponse * @static - * @param {vtctldata.IRetrySchemaMigrationResponse=} [properties] Properties to set - * @returns {vtctldata.RetrySchemaMigrationResponse} RetrySchemaMigrationResponse instance + * @param {vtctldata.ISourceShardAddResponse=} [properties] Properties to set + * @returns {vtctldata.SourceShardAddResponse} SourceShardAddResponse instance */ - RetrySchemaMigrationResponse.create = function create(properties) { - return new RetrySchemaMigrationResponse(properties); + SourceShardAddResponse.create = function create(properties) { + return new SourceShardAddResponse(properties); }; /** - * Encodes the specified RetrySchemaMigrationResponse message. Does not implicitly {@link vtctldata.RetrySchemaMigrationResponse.verify|verify} messages. + * Encodes the specified SourceShardAddResponse message. Does not implicitly {@link vtctldata.SourceShardAddResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.RetrySchemaMigrationResponse + * @memberof vtctldata.SourceShardAddResponse * @static - * @param {vtctldata.IRetrySchemaMigrationResponse} message RetrySchemaMigrationResponse message or plain object to encode + * @param {vtctldata.ISourceShardAddResponse} message SourceShardAddResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RetrySchemaMigrationResponse.encode = function encode(message, writer) { + SourceShardAddResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) - for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + $root.topodata.Shard.encode(message.shard, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RetrySchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.RetrySchemaMigrationResponse.verify|verify} messages. + * Encodes the specified SourceShardAddResponse message, length delimited. Does not implicitly {@link vtctldata.SourceShardAddResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RetrySchemaMigrationResponse + * @memberof vtctldata.SourceShardAddResponse * @static - * @param {vtctldata.IRetrySchemaMigrationResponse} message RetrySchemaMigrationResponse message or plain object to encode + * @param {vtctldata.ISourceShardAddResponse} message SourceShardAddResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RetrySchemaMigrationResponse.encodeDelimited = function encodeDelimited(message, writer) { + SourceShardAddResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer. + * Decodes a SourceShardAddResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RetrySchemaMigrationResponse + * @memberof vtctldata.SourceShardAddResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RetrySchemaMigrationResponse} RetrySchemaMigrationResponse + * @returns {vtctldata.SourceShardAddResponse} SourceShardAddResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RetrySchemaMigrationResponse.decode = function decode(reader, length) { + SourceShardAddResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RetrySchemaMigrationResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SourceShardAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.rows_affected_by_shard === $util.emptyObject) - message.rows_affected_by_shard = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.uint64(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.rows_affected_by_shard[key] = value; + message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); break; } default: @@ -177745,146 +185777,129 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer, length delimited. + * Decodes a SourceShardAddResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RetrySchemaMigrationResponse + * @memberof vtctldata.SourceShardAddResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RetrySchemaMigrationResponse} RetrySchemaMigrationResponse + * @returns {vtctldata.SourceShardAddResponse} SourceShardAddResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RetrySchemaMigrationResponse.decodeDelimited = function decodeDelimited(reader) { + SourceShardAddResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RetrySchemaMigrationResponse message. + * Verifies a SourceShardAddResponse message. * @function verify - * @memberof vtctldata.RetrySchemaMigrationResponse + * @memberof vtctldata.SourceShardAddResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RetrySchemaMigrationResponse.verify = function verify(message) { + SourceShardAddResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { - if (!$util.isObject(message.rows_affected_by_shard)) - return "rows_affected_by_shard: object expected"; - let key = Object.keys(message.rows_affected_by_shard); - for (let i = 0; i < key.length; ++i) - if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) - return "rows_affected_by_shard: integer|Long{k:string} expected"; + if (message.shard != null && message.hasOwnProperty("shard")) { + let error = $root.topodata.Shard.verify(message.shard); + if (error) + return "shard." + error; } return null; }; /** - * Creates a RetrySchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SourceShardAddResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RetrySchemaMigrationResponse + * @memberof vtctldata.SourceShardAddResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.RetrySchemaMigrationResponse} RetrySchemaMigrationResponse + * @returns {vtctldata.SourceShardAddResponse} SourceShardAddResponse */ - RetrySchemaMigrationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RetrySchemaMigrationResponse) + SourceShardAddResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SourceShardAddResponse) return object; - let message = new $root.vtctldata.RetrySchemaMigrationResponse(); - if (object.rows_affected_by_shard) { - if (typeof object.rows_affected_by_shard !== "object") - throw TypeError(".vtctldata.RetrySchemaMigrationResponse.rows_affected_by_shard: object expected"); - message.rows_affected_by_shard = {}; - for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) - if ($util.Long) - (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; - else if (typeof object.rows_affected_by_shard[keys[i]] === "string") - message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); - else if (typeof object.rows_affected_by_shard[keys[i]] === "number") - message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; - else if (typeof object.rows_affected_by_shard[keys[i]] === "object") - message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); + let message = new $root.vtctldata.SourceShardAddResponse(); + if (object.shard != null) { + if (typeof object.shard !== "object") + throw TypeError(".vtctldata.SourceShardAddResponse.shard: object expected"); + message.shard = $root.topodata.Shard.fromObject(object.shard); } return message; }; /** - * Creates a plain object from a RetrySchemaMigrationResponse message. Also converts values to other types if specified. + * Creates a plain object from a SourceShardAddResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RetrySchemaMigrationResponse + * @memberof vtctldata.SourceShardAddResponse * @static - * @param {vtctldata.RetrySchemaMigrationResponse} message RetrySchemaMigrationResponse + * @param {vtctldata.SourceShardAddResponse} message SourceShardAddResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RetrySchemaMigrationResponse.toObject = function toObject(message, options) { + SourceShardAddResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.rows_affected_by_shard = {}; - let keys2; - if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { - object.rows_affected_by_shard = {}; - for (let j = 0; j < keys2.length; ++j) - if (typeof message.rows_affected_by_shard[keys2[j]] === "number") - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; - else - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; - } + if (options.defaults) + object.shard = null; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = $root.topodata.Shard.toObject(message.shard, options); return object; }; /** - * Converts this RetrySchemaMigrationResponse to JSON. + * Converts this SourceShardAddResponse to JSON. * @function toJSON - * @memberof vtctldata.RetrySchemaMigrationResponse + * @memberof vtctldata.SourceShardAddResponse * @instance * @returns {Object.} JSON object */ - RetrySchemaMigrationResponse.prototype.toJSON = function toJSON() { + SourceShardAddResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RetrySchemaMigrationResponse + * Gets the default type url for SourceShardAddResponse * @function getTypeUrl - * @memberof vtctldata.RetrySchemaMigrationResponse + * @memberof vtctldata.SourceShardAddResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RetrySchemaMigrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SourceShardAddResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RetrySchemaMigrationResponse"; + return typeUrlPrefix + "/vtctldata.SourceShardAddResponse"; }; - return RetrySchemaMigrationResponse; + return SourceShardAddResponse; })(); - vtctldata.RunHealthCheckRequest = (function() { + vtctldata.SourceShardDeleteRequest = (function() { /** - * Properties of a RunHealthCheckRequest. + * Properties of a SourceShardDeleteRequest. * @memberof vtctldata - * @interface IRunHealthCheckRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] RunHealthCheckRequest tablet_alias + * @interface ISourceShardDeleteRequest + * @property {string|null} [keyspace] SourceShardDeleteRequest keyspace + * @property {string|null} [shard] SourceShardDeleteRequest shard + * @property {number|null} [uid] SourceShardDeleteRequest uid */ /** - * Constructs a new RunHealthCheckRequest. + * Constructs a new SourceShardDeleteRequest. * @memberof vtctldata - * @classdesc Represents a RunHealthCheckRequest. - * @implements IRunHealthCheckRequest + * @classdesc Represents a SourceShardDeleteRequest. + * @implements ISourceShardDeleteRequest * @constructor - * @param {vtctldata.IRunHealthCheckRequest=} [properties] Properties to set + * @param {vtctldata.ISourceShardDeleteRequest=} [properties] Properties to set */ - function RunHealthCheckRequest(properties) { + function SourceShardDeleteRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177892,75 +185907,103 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * RunHealthCheckRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.RunHealthCheckRequest + * SourceShardDeleteRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.SourceShardDeleteRequest * @instance */ - RunHealthCheckRequest.prototype.tablet_alias = null; + SourceShardDeleteRequest.prototype.keyspace = ""; /** - * Creates a new RunHealthCheckRequest instance using the specified properties. + * SourceShardDeleteRequest shard. + * @member {string} shard + * @memberof vtctldata.SourceShardDeleteRequest + * @instance + */ + SourceShardDeleteRequest.prototype.shard = ""; + + /** + * SourceShardDeleteRequest uid. + * @member {number} uid + * @memberof vtctldata.SourceShardDeleteRequest + * @instance + */ + SourceShardDeleteRequest.prototype.uid = 0; + + /** + * Creates a new SourceShardDeleteRequest instance using the specified properties. * @function create - * @memberof vtctldata.RunHealthCheckRequest + * @memberof vtctldata.SourceShardDeleteRequest * @static - * @param {vtctldata.IRunHealthCheckRequest=} [properties] Properties to set - * @returns {vtctldata.RunHealthCheckRequest} RunHealthCheckRequest instance + * @param {vtctldata.ISourceShardDeleteRequest=} [properties] Properties to set + * @returns {vtctldata.SourceShardDeleteRequest} SourceShardDeleteRequest instance */ - RunHealthCheckRequest.create = function create(properties) { - return new RunHealthCheckRequest(properties); + SourceShardDeleteRequest.create = function create(properties) { + return new SourceShardDeleteRequest(properties); }; /** - * Encodes the specified RunHealthCheckRequest message. Does not implicitly {@link vtctldata.RunHealthCheckRequest.verify|verify} messages. + * Encodes the specified SourceShardDeleteRequest message. Does not implicitly {@link vtctldata.SourceShardDeleteRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RunHealthCheckRequest + * @memberof vtctldata.SourceShardDeleteRequest * @static - * @param {vtctldata.IRunHealthCheckRequest} message RunHealthCheckRequest message or plain object to encode + * @param {vtctldata.ISourceShardDeleteRequest} message SourceShardDeleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunHealthCheckRequest.encode = function encode(message, writer) { + SourceShardDeleteRequest.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.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.uid); return writer; }; /** - * Encodes the specified RunHealthCheckRequest message, length delimited. Does not implicitly {@link vtctldata.RunHealthCheckRequest.verify|verify} messages. + * Encodes the specified SourceShardDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.SourceShardDeleteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RunHealthCheckRequest + * @memberof vtctldata.SourceShardDeleteRequest * @static - * @param {vtctldata.IRunHealthCheckRequest} message RunHealthCheckRequest message or plain object to encode + * @param {vtctldata.ISourceShardDeleteRequest} message SourceShardDeleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + SourceShardDeleteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunHealthCheckRequest message from the specified reader or buffer. + * Decodes a SourceShardDeleteRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RunHealthCheckRequest + * @memberof vtctldata.SourceShardDeleteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RunHealthCheckRequest} RunHealthCheckRequest + * @returns {vtctldata.SourceShardDeleteRequest} SourceShardDeleteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunHealthCheckRequest.decode = function decode(reader, length) { + SourceShardDeleteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RunHealthCheckRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SourceShardDeleteRequest(); while (reader.pos < end) { let 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.shard = reader.string(); + break; + } + case 3: { + message.uid = reader.int32(); break; } default: @@ -177972,126 +186015,139 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RunHealthCheckRequest message from the specified reader or buffer, length delimited. + * Decodes a SourceShardDeleteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RunHealthCheckRequest + * @memberof vtctldata.SourceShardDeleteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RunHealthCheckRequest} RunHealthCheckRequest + * @returns {vtctldata.SourceShardDeleteRequest} SourceShardDeleteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + SourceShardDeleteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunHealthCheckRequest message. + * Verifies a SourceShardDeleteRequest message. * @function verify - * @memberof vtctldata.RunHealthCheckRequest + * @memberof vtctldata.SourceShardDeleteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunHealthCheckRequest.verify = function verify(message) { + SourceShardDeleteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - 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.uid != null && message.hasOwnProperty("uid")) + if (!$util.isInteger(message.uid)) + return "uid: integer expected"; return null; }; /** - * Creates a RunHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SourceShardDeleteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RunHealthCheckRequest + * @memberof vtctldata.SourceShardDeleteRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RunHealthCheckRequest} RunHealthCheckRequest + * @returns {vtctldata.SourceShardDeleteRequest} SourceShardDeleteRequest */ - RunHealthCheckRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RunHealthCheckRequest) + SourceShardDeleteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SourceShardDeleteRequest) return object; - let message = new $root.vtctldata.RunHealthCheckRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.RunHealthCheckRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } + let message = new $root.vtctldata.SourceShardDeleteRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.uid != null) + message.uid = object.uid | 0; return message; }; /** - * Creates a plain object from a RunHealthCheckRequest message. Also converts values to other types if specified. + * Creates a plain object from a SourceShardDeleteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RunHealthCheckRequest + * @memberof vtctldata.SourceShardDeleteRequest * @static - * @param {vtctldata.RunHealthCheckRequest} message RunHealthCheckRequest + * @param {vtctldata.SourceShardDeleteRequest} message SourceShardDeleteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunHealthCheckRequest.toObject = function toObject(message, options) { + SourceShardDeleteRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.tablet_alias = null; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.uid = 0; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; return object; }; /** - * Converts this RunHealthCheckRequest to JSON. + * Converts this SourceShardDeleteRequest to JSON. * @function toJSON - * @memberof vtctldata.RunHealthCheckRequest + * @memberof vtctldata.SourceShardDeleteRequest * @instance * @returns {Object.} JSON object */ - RunHealthCheckRequest.prototype.toJSON = function toJSON() { + SourceShardDeleteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RunHealthCheckRequest + * Gets the default type url for SourceShardDeleteRequest * @function getTypeUrl - * @memberof vtctldata.RunHealthCheckRequest + * @memberof vtctldata.SourceShardDeleteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RunHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SourceShardDeleteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RunHealthCheckRequest"; + return typeUrlPrefix + "/vtctldata.SourceShardDeleteRequest"; }; - return RunHealthCheckRequest; + return SourceShardDeleteRequest; })(); - vtctldata.RunHealthCheckResponse = (function() { + vtctldata.SourceShardDeleteResponse = (function() { /** - * Properties of a RunHealthCheckResponse. + * Properties of a SourceShardDeleteResponse. * @memberof vtctldata - * @interface IRunHealthCheckResponse + * @interface ISourceShardDeleteResponse + * @property {topodata.IShard|null} [shard] SourceShardDeleteResponse shard */ /** - * Constructs a new RunHealthCheckResponse. + * Constructs a new SourceShardDeleteResponse. * @memberof vtctldata - * @classdesc Represents a RunHealthCheckResponse. - * @implements IRunHealthCheckResponse + * @classdesc Represents a SourceShardDeleteResponse. + * @implements ISourceShardDeleteResponse * @constructor - * @param {vtctldata.IRunHealthCheckResponse=} [properties] Properties to set + * @param {vtctldata.ISourceShardDeleteResponse=} [properties] Properties to set */ - function RunHealthCheckResponse(properties) { + function SourceShardDeleteResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178099,63 +186155,77 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new RunHealthCheckResponse instance using the specified properties. + * SourceShardDeleteResponse shard. + * @member {topodata.IShard|null|undefined} shard + * @memberof vtctldata.SourceShardDeleteResponse + * @instance + */ + SourceShardDeleteResponse.prototype.shard = null; + + /** + * Creates a new SourceShardDeleteResponse instance using the specified properties. * @function create - * @memberof vtctldata.RunHealthCheckResponse + * @memberof vtctldata.SourceShardDeleteResponse * @static - * @param {vtctldata.IRunHealthCheckResponse=} [properties] Properties to set - * @returns {vtctldata.RunHealthCheckResponse} RunHealthCheckResponse instance + * @param {vtctldata.ISourceShardDeleteResponse=} [properties] Properties to set + * @returns {vtctldata.SourceShardDeleteResponse} SourceShardDeleteResponse instance */ - RunHealthCheckResponse.create = function create(properties) { - return new RunHealthCheckResponse(properties); + SourceShardDeleteResponse.create = function create(properties) { + return new SourceShardDeleteResponse(properties); }; /** - * Encodes the specified RunHealthCheckResponse message. Does not implicitly {@link vtctldata.RunHealthCheckResponse.verify|verify} messages. + * Encodes the specified SourceShardDeleteResponse message. Does not implicitly {@link vtctldata.SourceShardDeleteResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.RunHealthCheckResponse + * @memberof vtctldata.SourceShardDeleteResponse * @static - * @param {vtctldata.IRunHealthCheckResponse} message RunHealthCheckResponse message or plain object to encode + * @param {vtctldata.ISourceShardDeleteResponse} message SourceShardDeleteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunHealthCheckResponse.encode = function encode(message, writer) { + SourceShardDeleteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + $root.topodata.Shard.encode(message.shard, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RunHealthCheckResponse message, length delimited. Does not implicitly {@link vtctldata.RunHealthCheckResponse.verify|verify} messages. + * Encodes the specified SourceShardDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.SourceShardDeleteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RunHealthCheckResponse + * @memberof vtctldata.SourceShardDeleteResponse * @static - * @param {vtctldata.IRunHealthCheckResponse} message RunHealthCheckResponse message or plain object to encode + * @param {vtctldata.ISourceShardDeleteResponse} message SourceShardDeleteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunHealthCheckResponse.encodeDelimited = function encodeDelimited(message, writer) { + SourceShardDeleteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunHealthCheckResponse message from the specified reader or buffer. + * Decodes a SourceShardDeleteResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RunHealthCheckResponse + * @memberof vtctldata.SourceShardDeleteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RunHealthCheckResponse} RunHealthCheckResponse + * @returns {vtctldata.SourceShardDeleteResponse} SourceShardDeleteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunHealthCheckResponse.decode = function decode(reader, length) { + SourceShardDeleteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RunHealthCheckResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SourceShardDeleteResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -178165,110 +186235,127 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a RunHealthCheckResponse message from the specified reader or buffer, length delimited. + * Decodes a SourceShardDeleteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RunHealthCheckResponse + * @memberof vtctldata.SourceShardDeleteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RunHealthCheckResponse} RunHealthCheckResponse + * @returns {vtctldata.SourceShardDeleteResponse} SourceShardDeleteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunHealthCheckResponse.decodeDelimited = function decodeDelimited(reader) { + SourceShardDeleteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunHealthCheckResponse message. + * Verifies a SourceShardDeleteResponse message. * @function verify - * @memberof vtctldata.RunHealthCheckResponse + * @memberof vtctldata.SourceShardDeleteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunHealthCheckResponse.verify = function verify(message) { + SourceShardDeleteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.shard != null && message.hasOwnProperty("shard")) { + let error = $root.topodata.Shard.verify(message.shard); + if (error) + return "shard." + error; + } return null; }; /** - * Creates a RunHealthCheckResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SourceShardDeleteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RunHealthCheckResponse + * @memberof vtctldata.SourceShardDeleteResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.RunHealthCheckResponse} RunHealthCheckResponse + * @returns {vtctldata.SourceShardDeleteResponse} SourceShardDeleteResponse */ - RunHealthCheckResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RunHealthCheckResponse) + SourceShardDeleteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.SourceShardDeleteResponse) return object; - return new $root.vtctldata.RunHealthCheckResponse(); + let message = new $root.vtctldata.SourceShardDeleteResponse(); + if (object.shard != null) { + if (typeof object.shard !== "object") + throw TypeError(".vtctldata.SourceShardDeleteResponse.shard: object expected"); + message.shard = $root.topodata.Shard.fromObject(object.shard); + } + return message; }; /** - * Creates a plain object from a RunHealthCheckResponse message. Also converts values to other types if specified. + * Creates a plain object from a SourceShardDeleteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RunHealthCheckResponse + * @memberof vtctldata.SourceShardDeleteResponse * @static - * @param {vtctldata.RunHealthCheckResponse} message RunHealthCheckResponse + * @param {vtctldata.SourceShardDeleteResponse} message SourceShardDeleteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunHealthCheckResponse.toObject = function toObject() { - return {}; + SourceShardDeleteResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.shard = null; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = $root.topodata.Shard.toObject(message.shard, options); + return object; }; /** - * Converts this RunHealthCheckResponse to JSON. + * Converts this SourceShardDeleteResponse to JSON. * @function toJSON - * @memberof vtctldata.RunHealthCheckResponse + * @memberof vtctldata.SourceShardDeleteResponse * @instance * @returns {Object.} JSON object */ - RunHealthCheckResponse.prototype.toJSON = function toJSON() { + SourceShardDeleteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RunHealthCheckResponse + * Gets the default type url for SourceShardDeleteResponse * @function getTypeUrl - * @memberof vtctldata.RunHealthCheckResponse + * @memberof vtctldata.SourceShardDeleteResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RunHealthCheckResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SourceShardDeleteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.RunHealthCheckResponse"; + return typeUrlPrefix + "/vtctldata.SourceShardDeleteResponse"; }; - return RunHealthCheckResponse; + return SourceShardDeleteResponse; })(); - vtctldata.SetKeyspaceDurabilityPolicyRequest = (function() { + vtctldata.StartReplicationRequest = (function() { /** - * Properties of a SetKeyspaceDurabilityPolicyRequest. + * Properties of a StartReplicationRequest. * @memberof vtctldata - * @interface ISetKeyspaceDurabilityPolicyRequest - * @property {string|null} [keyspace] SetKeyspaceDurabilityPolicyRequest keyspace - * @property {string|null} [durability_policy] SetKeyspaceDurabilityPolicyRequest durability_policy + * @interface IStartReplicationRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] StartReplicationRequest tablet_alias */ /** - * Constructs a new SetKeyspaceDurabilityPolicyRequest. + * Constructs a new StartReplicationRequest. * @memberof vtctldata - * @classdesc Represents a SetKeyspaceDurabilityPolicyRequest. - * @implements ISetKeyspaceDurabilityPolicyRequest + * @classdesc Represents a StartReplicationRequest. + * @implements IStartReplicationRequest * @constructor - * @param {vtctldata.ISetKeyspaceDurabilityPolicyRequest=} [properties] Properties to set + * @param {vtctldata.IStartReplicationRequest=} [properties] Properties to set */ - function SetKeyspaceDurabilityPolicyRequest(properties) { + function StartReplicationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178276,89 +186363,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SetKeyspaceDurabilityPolicyRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest - * @instance - */ - SetKeyspaceDurabilityPolicyRequest.prototype.keyspace = ""; - - /** - * SetKeyspaceDurabilityPolicyRequest durability_policy. - * @member {string} durability_policy - * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest + * StartReplicationRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.StartReplicationRequest * @instance */ - SetKeyspaceDurabilityPolicyRequest.prototype.durability_policy = ""; + StartReplicationRequest.prototype.tablet_alias = null; /** - * Creates a new SetKeyspaceDurabilityPolicyRequest instance using the specified properties. + * Creates a new StartReplicationRequest instance using the specified properties. * @function create - * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest + * @memberof vtctldata.StartReplicationRequest * @static - * @param {vtctldata.ISetKeyspaceDurabilityPolicyRequest=} [properties] Properties to set - * @returns {vtctldata.SetKeyspaceDurabilityPolicyRequest} SetKeyspaceDurabilityPolicyRequest instance + * @param {vtctldata.IStartReplicationRequest=} [properties] Properties to set + * @returns {vtctldata.StartReplicationRequest} StartReplicationRequest instance */ - SetKeyspaceDurabilityPolicyRequest.create = function create(properties) { - return new SetKeyspaceDurabilityPolicyRequest(properties); + StartReplicationRequest.create = function create(properties) { + return new StartReplicationRequest(properties); }; /** - * Encodes the specified SetKeyspaceDurabilityPolicyRequest message. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyRequest.verify|verify} messages. + * Encodes the specified StartReplicationRequest message. Does not implicitly {@link vtctldata.StartReplicationRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest + * @memberof vtctldata.StartReplicationRequest * @static - * @param {vtctldata.ISetKeyspaceDurabilityPolicyRequest} message SetKeyspaceDurabilityPolicyRequest message or plain object to encode + * @param {vtctldata.IStartReplicationRequest} message StartReplicationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetKeyspaceDurabilityPolicyRequest.encode = function encode(message, writer) { + StartReplicationRequest.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.durability_policy != null && Object.hasOwnProperty.call(message, "durability_policy")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.durability_policy); + 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(); return writer; }; /** - * Encodes the specified SetKeyspaceDurabilityPolicyRequest message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyRequest.verify|verify} messages. + * Encodes the specified StartReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.StartReplicationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest + * @memberof vtctldata.StartReplicationRequest * @static - * @param {vtctldata.ISetKeyspaceDurabilityPolicyRequest} message SetKeyspaceDurabilityPolicyRequest message or plain object to encode + * @param {vtctldata.IStartReplicationRequest} message StartReplicationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetKeyspaceDurabilityPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + StartReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer. + * Decodes a StartReplicationRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest + * @memberof vtctldata.StartReplicationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SetKeyspaceDurabilityPolicyRequest} SetKeyspaceDurabilityPolicyRequest + * @returns {vtctldata.StartReplicationRequest} StartReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetKeyspaceDurabilityPolicyRequest.decode = function decode(reader, length) { + StartReplicationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetKeyspaceDurabilityPolicyRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.StartReplicationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.durability_policy = reader.string(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -178370,131 +186443,126 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a StartReplicationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest + * @memberof vtctldata.StartReplicationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SetKeyspaceDurabilityPolicyRequest} SetKeyspaceDurabilityPolicyRequest + * @returns {vtctldata.StartReplicationRequest} StartReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetKeyspaceDurabilityPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + StartReplicationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetKeyspaceDurabilityPolicyRequest message. + * Verifies a StartReplicationRequest message. * @function verify - * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest + * @memberof vtctldata.StartReplicationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetKeyspaceDurabilityPolicyRequest.verify = function verify(message) { + StartReplicationRequest.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.durability_policy != null && message.hasOwnProperty("durability_policy")) - if (!$util.isString(message.durability_policy)) - return "durability_policy: string expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } return null; }; /** - * Creates a SetKeyspaceDurabilityPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartReplicationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest + * @memberof vtctldata.StartReplicationRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.SetKeyspaceDurabilityPolicyRequest} SetKeyspaceDurabilityPolicyRequest + * @returns {vtctldata.StartReplicationRequest} StartReplicationRequest */ - SetKeyspaceDurabilityPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SetKeyspaceDurabilityPolicyRequest) + StartReplicationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.StartReplicationRequest) return object; - let message = new $root.vtctldata.SetKeyspaceDurabilityPolicyRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.durability_policy != null) - message.durability_policy = String(object.durability_policy); + let message = new $root.vtctldata.StartReplicationRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.StartReplicationRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } return message; }; /** - * Creates a plain object from a SetKeyspaceDurabilityPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a StartReplicationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest + * @memberof vtctldata.StartReplicationRequest * @static - * @param {vtctldata.SetKeyspaceDurabilityPolicyRequest} message SetKeyspaceDurabilityPolicyRequest + * @param {vtctldata.StartReplicationRequest} message StartReplicationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetKeyspaceDurabilityPolicyRequest.toObject = function toObject(message, options) { + StartReplicationRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.durability_policy = ""; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.durability_policy != null && message.hasOwnProperty("durability_policy")) - object.durability_policy = message.durability_policy; + if (options.defaults) + object.tablet_alias = null; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); return object; }; /** - * Converts this SetKeyspaceDurabilityPolicyRequest to JSON. + * Converts this StartReplicationRequest to JSON. * @function toJSON - * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest + * @memberof vtctldata.StartReplicationRequest * @instance * @returns {Object.} JSON object */ - SetKeyspaceDurabilityPolicyRequest.prototype.toJSON = function toJSON() { + StartReplicationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetKeyspaceDurabilityPolicyRequest + * Gets the default type url for StartReplicationRequest * @function getTypeUrl - * @memberof vtctldata.SetKeyspaceDurabilityPolicyRequest + * @memberof vtctldata.StartReplicationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetKeyspaceDurabilityPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StartReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SetKeyspaceDurabilityPolicyRequest"; + return typeUrlPrefix + "/vtctldata.StartReplicationRequest"; }; - return SetKeyspaceDurabilityPolicyRequest; + return StartReplicationRequest; })(); - vtctldata.SetKeyspaceDurabilityPolicyResponse = (function() { + vtctldata.StartReplicationResponse = (function() { /** - * Properties of a SetKeyspaceDurabilityPolicyResponse. + * Properties of a StartReplicationResponse. * @memberof vtctldata - * @interface ISetKeyspaceDurabilityPolicyResponse - * @property {topodata.IKeyspace|null} [keyspace] SetKeyspaceDurabilityPolicyResponse keyspace + * @interface IStartReplicationResponse */ /** - * Constructs a new SetKeyspaceDurabilityPolicyResponse. + * Constructs a new StartReplicationResponse. * @memberof vtctldata - * @classdesc Represents a SetKeyspaceDurabilityPolicyResponse. - * @implements ISetKeyspaceDurabilityPolicyResponse + * @classdesc Represents a StartReplicationResponse. + * @implements IStartReplicationResponse * @constructor - * @param {vtctldata.ISetKeyspaceDurabilityPolicyResponse=} [properties] Properties to set + * @param {vtctldata.IStartReplicationResponse=} [properties] Properties to set */ - function SetKeyspaceDurabilityPolicyResponse(properties) { + function StartReplicationResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178502,77 +186570,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SetKeyspaceDurabilityPolicyResponse keyspace. - * @member {topodata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse - * @instance - */ - SetKeyspaceDurabilityPolicyResponse.prototype.keyspace = null; - - /** - * Creates a new SetKeyspaceDurabilityPolicyResponse instance using the specified properties. + * Creates a new StartReplicationResponse instance using the specified properties. * @function create - * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse + * @memberof vtctldata.StartReplicationResponse * @static - * @param {vtctldata.ISetKeyspaceDurabilityPolicyResponse=} [properties] Properties to set - * @returns {vtctldata.SetKeyspaceDurabilityPolicyResponse} SetKeyspaceDurabilityPolicyResponse instance + * @param {vtctldata.IStartReplicationResponse=} [properties] Properties to set + * @returns {vtctldata.StartReplicationResponse} StartReplicationResponse instance */ - SetKeyspaceDurabilityPolicyResponse.create = function create(properties) { - return new SetKeyspaceDurabilityPolicyResponse(properties); + StartReplicationResponse.create = function create(properties) { + return new StartReplicationResponse(properties); }; /** - * Encodes the specified SetKeyspaceDurabilityPolicyResponse message. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyResponse.verify|verify} messages. + * Encodes the specified StartReplicationResponse message. Does not implicitly {@link vtctldata.StartReplicationResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse + * @memberof vtctldata.StartReplicationResponse * @static - * @param {vtctldata.ISetKeyspaceDurabilityPolicyResponse} message SetKeyspaceDurabilityPolicyResponse message or plain object to encode + * @param {vtctldata.IStartReplicationResponse} message StartReplicationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetKeyspaceDurabilityPolicyResponse.encode = function encode(message, writer) { + StartReplicationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - $root.topodata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SetKeyspaceDurabilityPolicyResponse message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyResponse.verify|verify} messages. + * Encodes the specified StartReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.StartReplicationResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse + * @memberof vtctldata.StartReplicationResponse * @static - * @param {vtctldata.ISetKeyspaceDurabilityPolicyResponse} message SetKeyspaceDurabilityPolicyResponse message or plain object to encode + * @param {vtctldata.IStartReplicationResponse} message StartReplicationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetKeyspaceDurabilityPolicyResponse.encodeDelimited = function encodeDelimited(message, writer) { + StartReplicationResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer. + * Decodes a StartReplicationResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse + * @memberof vtctldata.StartReplicationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SetKeyspaceDurabilityPolicyResponse} SetKeyspaceDurabilityPolicyResponse + * @returns {vtctldata.StartReplicationResponse} StartReplicationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetKeyspaceDurabilityPolicyResponse.decode = function decode(reader, length) { + StartReplicationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetKeyspaceDurabilityPolicyResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.StartReplicationResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = $root.topodata.Keyspace.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -178582,128 +186636,109 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer, length delimited. + * Decodes a StartReplicationResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse + * @memberof vtctldata.StartReplicationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SetKeyspaceDurabilityPolicyResponse} SetKeyspaceDurabilityPolicyResponse + * @returns {vtctldata.StartReplicationResponse} StartReplicationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetKeyspaceDurabilityPolicyResponse.decodeDelimited = function decodeDelimited(reader) { + StartReplicationResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetKeyspaceDurabilityPolicyResponse message. + * Verifies a StartReplicationResponse message. * @function verify - * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse + * @memberof vtctldata.StartReplicationResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetKeyspaceDurabilityPolicyResponse.verify = function verify(message) { + StartReplicationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - let error = $root.topodata.Keyspace.verify(message.keyspace); - if (error) - return "keyspace." + error; - } return null; }; /** - * Creates a SetKeyspaceDurabilityPolicyResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StartReplicationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse + * @memberof vtctldata.StartReplicationResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.SetKeyspaceDurabilityPolicyResponse} SetKeyspaceDurabilityPolicyResponse + * @returns {vtctldata.StartReplicationResponse} StartReplicationResponse */ - SetKeyspaceDurabilityPolicyResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SetKeyspaceDurabilityPolicyResponse) + StartReplicationResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.StartReplicationResponse) return object; - let message = new $root.vtctldata.SetKeyspaceDurabilityPolicyResponse(); - if (object.keyspace != null) { - if (typeof object.keyspace !== "object") - throw TypeError(".vtctldata.SetKeyspaceDurabilityPolicyResponse.keyspace: object expected"); - message.keyspace = $root.topodata.Keyspace.fromObject(object.keyspace); - } - return message; + return new $root.vtctldata.StartReplicationResponse(); }; /** - * Creates a plain object from a SetKeyspaceDurabilityPolicyResponse message. Also converts values to other types if specified. + * Creates a plain object from a StartReplicationResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse + * @memberof vtctldata.StartReplicationResponse * @static - * @param {vtctldata.SetKeyspaceDurabilityPolicyResponse} message SetKeyspaceDurabilityPolicyResponse + * @param {vtctldata.StartReplicationResponse} message StartReplicationResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetKeyspaceDurabilityPolicyResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.keyspace = null; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.topodata.Keyspace.toObject(message.keyspace, options); - return object; + StartReplicationResponse.toObject = function toObject() { + return {}; }; /** - * Converts this SetKeyspaceDurabilityPolicyResponse to JSON. + * Converts this StartReplicationResponse to JSON. * @function toJSON - * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse + * @memberof vtctldata.StartReplicationResponse * @instance * @returns {Object.} JSON object */ - SetKeyspaceDurabilityPolicyResponse.prototype.toJSON = function toJSON() { + StartReplicationResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetKeyspaceDurabilityPolicyResponse + * Gets the default type url for StartReplicationResponse * @function getTypeUrl - * @memberof vtctldata.SetKeyspaceDurabilityPolicyResponse + * @memberof vtctldata.StartReplicationResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetKeyspaceDurabilityPolicyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StartReplicationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SetKeyspaceDurabilityPolicyResponse"; + return typeUrlPrefix + "/vtctldata.StartReplicationResponse"; }; - return SetKeyspaceDurabilityPolicyResponse; + return StartReplicationResponse; })(); - vtctldata.SetKeyspaceShardingInfoRequest = (function() { + vtctldata.StopReplicationRequest = (function() { /** - * Properties of a SetKeyspaceShardingInfoRequest. + * Properties of a StopReplicationRequest. * @memberof vtctldata - * @interface ISetKeyspaceShardingInfoRequest - * @property {string|null} [keyspace] SetKeyspaceShardingInfoRequest keyspace - * @property {boolean|null} [force] SetKeyspaceShardingInfoRequest force + * @interface IStopReplicationRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] StopReplicationRequest tablet_alias */ /** - * Constructs a new SetKeyspaceShardingInfoRequest. + * Constructs a new StopReplicationRequest. * @memberof vtctldata - * @classdesc Represents a SetKeyspaceShardingInfoRequest. - * @implements ISetKeyspaceShardingInfoRequest + * @classdesc Represents a StopReplicationRequest. + * @implements IStopReplicationRequest * @constructor - * @param {vtctldata.ISetKeyspaceShardingInfoRequest=} [properties] Properties to set + * @param {vtctldata.IStopReplicationRequest=} [properties] Properties to set */ - function SetKeyspaceShardingInfoRequest(properties) { + function StopReplicationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178711,89 +186746,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SetKeyspaceShardingInfoRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.SetKeyspaceShardingInfoRequest - * @instance - */ - SetKeyspaceShardingInfoRequest.prototype.keyspace = ""; - - /** - * SetKeyspaceShardingInfoRequest force. - * @member {boolean} force - * @memberof vtctldata.SetKeyspaceShardingInfoRequest + * StopReplicationRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.StopReplicationRequest * @instance */ - SetKeyspaceShardingInfoRequest.prototype.force = false; + StopReplicationRequest.prototype.tablet_alias = null; /** - * Creates a new SetKeyspaceShardingInfoRequest instance using the specified properties. + * Creates a new StopReplicationRequest instance using the specified properties. * @function create - * @memberof vtctldata.SetKeyspaceShardingInfoRequest + * @memberof vtctldata.StopReplicationRequest * @static - * @param {vtctldata.ISetKeyspaceShardingInfoRequest=} [properties] Properties to set - * @returns {vtctldata.SetKeyspaceShardingInfoRequest} SetKeyspaceShardingInfoRequest instance + * @param {vtctldata.IStopReplicationRequest=} [properties] Properties to set + * @returns {vtctldata.StopReplicationRequest} StopReplicationRequest instance */ - SetKeyspaceShardingInfoRequest.create = function create(properties) { - return new SetKeyspaceShardingInfoRequest(properties); + StopReplicationRequest.create = function create(properties) { + return new StopReplicationRequest(properties); }; /** - * Encodes the specified SetKeyspaceShardingInfoRequest message. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoRequest.verify|verify} messages. + * Encodes the specified StopReplicationRequest message. Does not implicitly {@link vtctldata.StopReplicationRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.SetKeyspaceShardingInfoRequest + * @memberof vtctldata.StopReplicationRequest * @static - * @param {vtctldata.ISetKeyspaceShardingInfoRequest} message SetKeyspaceShardingInfoRequest message or plain object to encode + * @param {vtctldata.IStopReplicationRequest} message StopReplicationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetKeyspaceShardingInfoRequest.encode = function encode(message, writer) { + StopReplicationRequest.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.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.force); + 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(); return writer; }; /** - * Encodes the specified SetKeyspaceShardingInfoRequest message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoRequest.verify|verify} messages. + * Encodes the specified StopReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.StopReplicationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SetKeyspaceShardingInfoRequest + * @memberof vtctldata.StopReplicationRequest * @static - * @param {vtctldata.ISetKeyspaceShardingInfoRequest} message SetKeyspaceShardingInfoRequest message or plain object to encode + * @param {vtctldata.IStopReplicationRequest} message StopReplicationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetKeyspaceShardingInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + StopReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer. + * Decodes a StopReplicationRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SetKeyspaceShardingInfoRequest + * @memberof vtctldata.StopReplicationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SetKeyspaceShardingInfoRequest} SetKeyspaceShardingInfoRequest + * @returns {vtctldata.StopReplicationRequest} StopReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetKeyspaceShardingInfoRequest.decode = function decode(reader, length) { + StopReplicationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetKeyspaceShardingInfoRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.StopReplicationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); - break; - } - case 4: { - message.force = reader.bool(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -178805,131 +186826,126 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SetKeyspaceShardingInfoRequest + * @memberof vtctldata.StopReplicationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SetKeyspaceShardingInfoRequest} SetKeyspaceShardingInfoRequest + * @returns {vtctldata.StopReplicationRequest} StopReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetKeyspaceShardingInfoRequest.decodeDelimited = function decodeDelimited(reader) { + StopReplicationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetKeyspaceShardingInfoRequest message. + * Verifies a StopReplicationRequest message. * @function verify - * @memberof vtctldata.SetKeyspaceShardingInfoRequest + * @memberof vtctldata.StopReplicationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetKeyspaceShardingInfoRequest.verify = function verify(message) { + StopReplicationRequest.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.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } return null; }; /** - * Creates a SetKeyspaceShardingInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SetKeyspaceShardingInfoRequest + * @memberof vtctldata.StopReplicationRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.SetKeyspaceShardingInfoRequest} SetKeyspaceShardingInfoRequest + * @returns {vtctldata.StopReplicationRequest} StopReplicationRequest */ - SetKeyspaceShardingInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SetKeyspaceShardingInfoRequest) + StopReplicationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.StopReplicationRequest) return object; - let message = new $root.vtctldata.SetKeyspaceShardingInfoRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.force != null) - message.force = Boolean(object.force); + let message = new $root.vtctldata.StopReplicationRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.StopReplicationRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } return message; }; /** - * Creates a plain object from a SetKeyspaceShardingInfoRequest message. Also converts values to other types if specified. + * Creates a plain object from a StopReplicationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SetKeyspaceShardingInfoRequest + * @memberof vtctldata.StopReplicationRequest * @static - * @param {vtctldata.SetKeyspaceShardingInfoRequest} message SetKeyspaceShardingInfoRequest + * @param {vtctldata.StopReplicationRequest} message StopReplicationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetKeyspaceShardingInfoRequest.toObject = function toObject(message, options) { + StopReplicationRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.force = false; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (options.defaults) + object.tablet_alias = null; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); return object; }; /** - * Converts this SetKeyspaceShardingInfoRequest to JSON. + * Converts this StopReplicationRequest to JSON. * @function toJSON - * @memberof vtctldata.SetKeyspaceShardingInfoRequest + * @memberof vtctldata.StopReplicationRequest * @instance * @returns {Object.} JSON object */ - SetKeyspaceShardingInfoRequest.prototype.toJSON = function toJSON() { + StopReplicationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetKeyspaceShardingInfoRequest + * Gets the default type url for StopReplicationRequest * @function getTypeUrl - * @memberof vtctldata.SetKeyspaceShardingInfoRequest + * @memberof vtctldata.StopReplicationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetKeyspaceShardingInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StopReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SetKeyspaceShardingInfoRequest"; + return typeUrlPrefix + "/vtctldata.StopReplicationRequest"; }; - return SetKeyspaceShardingInfoRequest; + return StopReplicationRequest; })(); - vtctldata.SetKeyspaceShardingInfoResponse = (function() { + vtctldata.StopReplicationResponse = (function() { /** - * Properties of a SetKeyspaceShardingInfoResponse. + * Properties of a StopReplicationResponse. * @memberof vtctldata - * @interface ISetKeyspaceShardingInfoResponse - * @property {topodata.IKeyspace|null} [keyspace] SetKeyspaceShardingInfoResponse keyspace + * @interface IStopReplicationResponse */ /** - * Constructs a new SetKeyspaceShardingInfoResponse. + * Constructs a new StopReplicationResponse. * @memberof vtctldata - * @classdesc Represents a SetKeyspaceShardingInfoResponse. - * @implements ISetKeyspaceShardingInfoResponse + * @classdesc Represents a StopReplicationResponse. + * @implements IStopReplicationResponse * @constructor - * @param {vtctldata.ISetKeyspaceShardingInfoResponse=} [properties] Properties to set + * @param {vtctldata.IStopReplicationResponse=} [properties] Properties to set */ - function SetKeyspaceShardingInfoResponse(properties) { + function StopReplicationResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178937,77 +186953,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SetKeyspaceShardingInfoResponse keyspace. - * @member {topodata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.SetKeyspaceShardingInfoResponse - * @instance - */ - SetKeyspaceShardingInfoResponse.prototype.keyspace = null; - - /** - * Creates a new SetKeyspaceShardingInfoResponse instance using the specified properties. + * Creates a new StopReplicationResponse instance using the specified properties. * @function create - * @memberof vtctldata.SetKeyspaceShardingInfoResponse + * @memberof vtctldata.StopReplicationResponse * @static - * @param {vtctldata.ISetKeyspaceShardingInfoResponse=} [properties] Properties to set - * @returns {vtctldata.SetKeyspaceShardingInfoResponse} SetKeyspaceShardingInfoResponse instance + * @param {vtctldata.IStopReplicationResponse=} [properties] Properties to set + * @returns {vtctldata.StopReplicationResponse} StopReplicationResponse instance */ - SetKeyspaceShardingInfoResponse.create = function create(properties) { - return new SetKeyspaceShardingInfoResponse(properties); + StopReplicationResponse.create = function create(properties) { + return new StopReplicationResponse(properties); }; /** - * Encodes the specified SetKeyspaceShardingInfoResponse message. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoResponse.verify|verify} messages. + * Encodes the specified StopReplicationResponse message. Does not implicitly {@link vtctldata.StopReplicationResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.SetKeyspaceShardingInfoResponse + * @memberof vtctldata.StopReplicationResponse * @static - * @param {vtctldata.ISetKeyspaceShardingInfoResponse} message SetKeyspaceShardingInfoResponse message or plain object to encode + * @param {vtctldata.IStopReplicationResponse} message StopReplicationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetKeyspaceShardingInfoResponse.encode = function encode(message, writer) { + StopReplicationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - $root.topodata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SetKeyspaceShardingInfoResponse message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoResponse.verify|verify} messages. + * Encodes the specified StopReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.StopReplicationResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SetKeyspaceShardingInfoResponse + * @memberof vtctldata.StopReplicationResponse * @static - * @param {vtctldata.ISetKeyspaceShardingInfoResponse} message SetKeyspaceShardingInfoResponse message or plain object to encode + * @param {vtctldata.IStopReplicationResponse} message StopReplicationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetKeyspaceShardingInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + StopReplicationResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer. + * Decodes a StopReplicationResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SetKeyspaceShardingInfoResponse + * @memberof vtctldata.StopReplicationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SetKeyspaceShardingInfoResponse} SetKeyspaceShardingInfoResponse + * @returns {vtctldata.StopReplicationResponse} StopReplicationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetKeyspaceShardingInfoResponse.decode = function decode(reader, length) { + StopReplicationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetKeyspaceShardingInfoResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.StopReplicationResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = $root.topodata.Keyspace.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -179017,129 +187019,109 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SetKeyspaceShardingInfoResponse + * @memberof vtctldata.StopReplicationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SetKeyspaceShardingInfoResponse} SetKeyspaceShardingInfoResponse + * @returns {vtctldata.StopReplicationResponse} StopReplicationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetKeyspaceShardingInfoResponse.decodeDelimited = function decodeDelimited(reader) { + StopReplicationResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetKeyspaceShardingInfoResponse message. + * Verifies a StopReplicationResponse message. * @function verify - * @memberof vtctldata.SetKeyspaceShardingInfoResponse + * @memberof vtctldata.StopReplicationResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetKeyspaceShardingInfoResponse.verify = function verify(message) { + StopReplicationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - let error = $root.topodata.Keyspace.verify(message.keyspace); - if (error) - return "keyspace." + error; - } return null; }; /** - * Creates a SetKeyspaceShardingInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SetKeyspaceShardingInfoResponse + * @memberof vtctldata.StopReplicationResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.SetKeyspaceShardingInfoResponse} SetKeyspaceShardingInfoResponse + * @returns {vtctldata.StopReplicationResponse} StopReplicationResponse */ - SetKeyspaceShardingInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SetKeyspaceShardingInfoResponse) + StopReplicationResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.StopReplicationResponse) return object; - let message = new $root.vtctldata.SetKeyspaceShardingInfoResponse(); - if (object.keyspace != null) { - if (typeof object.keyspace !== "object") - throw TypeError(".vtctldata.SetKeyspaceShardingInfoResponse.keyspace: object expected"); - message.keyspace = $root.topodata.Keyspace.fromObject(object.keyspace); - } - return message; + return new $root.vtctldata.StopReplicationResponse(); }; /** - * Creates a plain object from a SetKeyspaceShardingInfoResponse message. Also converts values to other types if specified. + * Creates a plain object from a StopReplicationResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SetKeyspaceShardingInfoResponse + * @memberof vtctldata.StopReplicationResponse * @static - * @param {vtctldata.SetKeyspaceShardingInfoResponse} message SetKeyspaceShardingInfoResponse + * @param {vtctldata.StopReplicationResponse} message StopReplicationResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetKeyspaceShardingInfoResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.keyspace = null; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.topodata.Keyspace.toObject(message.keyspace, options); - return object; + StopReplicationResponse.toObject = function toObject() { + return {}; }; /** - * Converts this SetKeyspaceShardingInfoResponse to JSON. + * Converts this StopReplicationResponse to JSON. * @function toJSON - * @memberof vtctldata.SetKeyspaceShardingInfoResponse + * @memberof vtctldata.StopReplicationResponse * @instance * @returns {Object.} JSON object */ - SetKeyspaceShardingInfoResponse.prototype.toJSON = function toJSON() { + StopReplicationResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetKeyspaceShardingInfoResponse + * Gets the default type url for StopReplicationResponse * @function getTypeUrl - * @memberof vtctldata.SetKeyspaceShardingInfoResponse + * @memberof vtctldata.StopReplicationResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetKeyspaceShardingInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StopReplicationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SetKeyspaceShardingInfoResponse"; + return typeUrlPrefix + "/vtctldata.StopReplicationResponse"; }; - return SetKeyspaceShardingInfoResponse; + return StopReplicationResponse; })(); - vtctldata.SetShardIsPrimaryServingRequest = (function() { + vtctldata.TabletExternallyReparentedRequest = (function() { /** - * Properties of a SetShardIsPrimaryServingRequest. + * Properties of a TabletExternallyReparentedRequest. * @memberof vtctldata - * @interface ISetShardIsPrimaryServingRequest - * @property {string|null} [keyspace] SetShardIsPrimaryServingRequest keyspace - * @property {string|null} [shard] SetShardIsPrimaryServingRequest shard - * @property {boolean|null} [is_serving] SetShardIsPrimaryServingRequest is_serving + * @interface ITabletExternallyReparentedRequest + * @property {topodata.ITabletAlias|null} [tablet] TabletExternallyReparentedRequest tablet */ /** - * Constructs a new SetShardIsPrimaryServingRequest. + * Constructs a new TabletExternallyReparentedRequest. * @memberof vtctldata - * @classdesc Represents a SetShardIsPrimaryServingRequest. - * @implements ISetShardIsPrimaryServingRequest + * @classdesc Represents a TabletExternallyReparentedRequest. + * @implements ITabletExternallyReparentedRequest * @constructor - * @param {vtctldata.ISetShardIsPrimaryServingRequest=} [properties] Properties to set + * @param {vtctldata.ITabletExternallyReparentedRequest=} [properties] Properties to set */ - function SetShardIsPrimaryServingRequest(properties) { + function TabletExternallyReparentedRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -179147,103 +187129,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SetShardIsPrimaryServingRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.SetShardIsPrimaryServingRequest - * @instance - */ - SetShardIsPrimaryServingRequest.prototype.keyspace = ""; - - /** - * SetShardIsPrimaryServingRequest shard. - * @member {string} shard - * @memberof vtctldata.SetShardIsPrimaryServingRequest - * @instance - */ - SetShardIsPrimaryServingRequest.prototype.shard = ""; - - /** - * SetShardIsPrimaryServingRequest is_serving. - * @member {boolean} is_serving - * @memberof vtctldata.SetShardIsPrimaryServingRequest + * TabletExternallyReparentedRequest tablet. + * @member {topodata.ITabletAlias|null|undefined} tablet + * @memberof vtctldata.TabletExternallyReparentedRequest * @instance */ - SetShardIsPrimaryServingRequest.prototype.is_serving = false; + TabletExternallyReparentedRequest.prototype.tablet = null; /** - * Creates a new SetShardIsPrimaryServingRequest instance using the specified properties. + * Creates a new TabletExternallyReparentedRequest instance using the specified properties. * @function create - * @memberof vtctldata.SetShardIsPrimaryServingRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {vtctldata.ISetShardIsPrimaryServingRequest=} [properties] Properties to set - * @returns {vtctldata.SetShardIsPrimaryServingRequest} SetShardIsPrimaryServingRequest instance + * @param {vtctldata.ITabletExternallyReparentedRequest=} [properties] Properties to set + * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest instance */ - SetShardIsPrimaryServingRequest.create = function create(properties) { - return new SetShardIsPrimaryServingRequest(properties); + TabletExternallyReparentedRequest.create = function create(properties) { + return new TabletExternallyReparentedRequest(properties); }; /** - * Encodes the specified SetShardIsPrimaryServingRequest message. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingRequest.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedRequest message. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.SetShardIsPrimaryServingRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {vtctldata.ISetShardIsPrimaryServingRequest} message SetShardIsPrimaryServingRequest message or plain object to encode + * @param {vtctldata.ITabletExternallyReparentedRequest} message TabletExternallyReparentedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetShardIsPrimaryServingRequest.encode = function encode(message, writer) { + TabletExternallyReparentedRequest.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.is_serving != null && Object.hasOwnProperty.call(message, "is_serving")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.is_serving); + if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) + $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SetShardIsPrimaryServingRequest message, length delimited. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingRequest.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedRequest message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SetShardIsPrimaryServingRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {vtctldata.ISetShardIsPrimaryServingRequest} message SetShardIsPrimaryServingRequest message or plain object to encode + * @param {vtctldata.ITabletExternallyReparentedRequest} message TabletExternallyReparentedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetShardIsPrimaryServingRequest.encodeDelimited = function encodeDelimited(message, writer) { + TabletExternallyReparentedRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer. + * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SetShardIsPrimaryServingRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SetShardIsPrimaryServingRequest} SetShardIsPrimaryServingRequest + * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetShardIsPrimaryServingRequest.decode = function decode(reader, length) { + TabletExternallyReparentedRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetShardIsPrimaryServingRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TabletExternallyReparentedRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.shard = reader.string(); - break; - } - case 3: { - message.is_serving = reader.bool(); + message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -179255,139 +187209,130 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer, length delimited. + * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SetShardIsPrimaryServingRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SetShardIsPrimaryServingRequest} SetShardIsPrimaryServingRequest + * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetShardIsPrimaryServingRequest.decodeDelimited = function decodeDelimited(reader) { + TabletExternallyReparentedRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetShardIsPrimaryServingRequest message. + * Verifies a TabletExternallyReparentedRequest message. * @function verify - * @memberof vtctldata.SetShardIsPrimaryServingRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetShardIsPrimaryServingRequest.verify = function verify(message) { + TabletExternallyReparentedRequest.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.is_serving != null && message.hasOwnProperty("is_serving")) - if (typeof message.is_serving !== "boolean") - return "is_serving: boolean expected"; + if (message.tablet != null && message.hasOwnProperty("tablet")) { + let error = $root.topodata.TabletAlias.verify(message.tablet); + if (error) + return "tablet." + error; + } return null; }; /** - * Creates a SetShardIsPrimaryServingRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TabletExternallyReparentedRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SetShardIsPrimaryServingRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.SetShardIsPrimaryServingRequest} SetShardIsPrimaryServingRequest + * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest */ - SetShardIsPrimaryServingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SetShardIsPrimaryServingRequest) + TabletExternallyReparentedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.TabletExternallyReparentedRequest) return object; - let message = new $root.vtctldata.SetShardIsPrimaryServingRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.is_serving != null) - message.is_serving = Boolean(object.is_serving); + let message = new $root.vtctldata.TabletExternallyReparentedRequest(); + if (object.tablet != null) { + if (typeof object.tablet !== "object") + throw TypeError(".vtctldata.TabletExternallyReparentedRequest.tablet: object expected"); + message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); + } return message; }; /** - * Creates a plain object from a SetShardIsPrimaryServingRequest message. Also converts values to other types if specified. + * Creates a plain object from a TabletExternallyReparentedRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SetShardIsPrimaryServingRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {vtctldata.SetShardIsPrimaryServingRequest} message SetShardIsPrimaryServingRequest + * @param {vtctldata.TabletExternallyReparentedRequest} message TabletExternallyReparentedRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetShardIsPrimaryServingRequest.toObject = function toObject(message, options) { + TabletExternallyReparentedRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.is_serving = false; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.is_serving != null && message.hasOwnProperty("is_serving")) - object.is_serving = message.is_serving; + if (options.defaults) + object.tablet = null; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); return object; }; /** - * Converts this SetShardIsPrimaryServingRequest to JSON. + * Converts this TabletExternallyReparentedRequest to JSON. * @function toJSON - * @memberof vtctldata.SetShardIsPrimaryServingRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @instance * @returns {Object.} JSON object */ - SetShardIsPrimaryServingRequest.prototype.toJSON = function toJSON() { + TabletExternallyReparentedRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetShardIsPrimaryServingRequest + * Gets the default type url for TabletExternallyReparentedRequest * @function getTypeUrl - * @memberof vtctldata.SetShardIsPrimaryServingRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetShardIsPrimaryServingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TabletExternallyReparentedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SetShardIsPrimaryServingRequest"; + return typeUrlPrefix + "/vtctldata.TabletExternallyReparentedRequest"; }; - return SetShardIsPrimaryServingRequest; + return TabletExternallyReparentedRequest; })(); - vtctldata.SetShardIsPrimaryServingResponse = (function() { + vtctldata.TabletExternallyReparentedResponse = (function() { /** - * Properties of a SetShardIsPrimaryServingResponse. + * Properties of a TabletExternallyReparentedResponse. * @memberof vtctldata - * @interface ISetShardIsPrimaryServingResponse - * @property {topodata.IShard|null} [shard] SetShardIsPrimaryServingResponse shard + * @interface ITabletExternallyReparentedResponse + * @property {string|null} [keyspace] TabletExternallyReparentedResponse keyspace + * @property {string|null} [shard] TabletExternallyReparentedResponse shard + * @property {topodata.ITabletAlias|null} [new_primary] TabletExternallyReparentedResponse new_primary + * @property {topodata.ITabletAlias|null} [old_primary] TabletExternallyReparentedResponse old_primary */ /** - * Constructs a new SetShardIsPrimaryServingResponse. + * Constructs a new TabletExternallyReparentedResponse. * @memberof vtctldata - * @classdesc Represents a SetShardIsPrimaryServingResponse. - * @implements ISetShardIsPrimaryServingResponse + * @classdesc Represents a TabletExternallyReparentedResponse. + * @implements ITabletExternallyReparentedResponse * @constructor - * @param {vtctldata.ISetShardIsPrimaryServingResponse=} [properties] Properties to set + * @param {vtctldata.ITabletExternallyReparentedResponse=} [properties] Properties to set */ - function SetShardIsPrimaryServingResponse(properties) { + function TabletExternallyReparentedResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -179395,75 +187340,117 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SetShardIsPrimaryServingResponse shard. - * @member {topodata.IShard|null|undefined} shard - * @memberof vtctldata.SetShardIsPrimaryServingResponse + * TabletExternallyReparentedResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.TabletExternallyReparentedResponse * @instance */ - SetShardIsPrimaryServingResponse.prototype.shard = null; + TabletExternallyReparentedResponse.prototype.keyspace = ""; /** - * Creates a new SetShardIsPrimaryServingResponse instance using the specified properties. + * TabletExternallyReparentedResponse shard. + * @member {string} shard + * @memberof vtctldata.TabletExternallyReparentedResponse + * @instance + */ + TabletExternallyReparentedResponse.prototype.shard = ""; + + /** + * TabletExternallyReparentedResponse new_primary. + * @member {topodata.ITabletAlias|null|undefined} new_primary + * @memberof vtctldata.TabletExternallyReparentedResponse + * @instance + */ + TabletExternallyReparentedResponse.prototype.new_primary = null; + + /** + * TabletExternallyReparentedResponse old_primary. + * @member {topodata.ITabletAlias|null|undefined} old_primary + * @memberof vtctldata.TabletExternallyReparentedResponse + * @instance + */ + TabletExternallyReparentedResponse.prototype.old_primary = null; + + /** + * Creates a new TabletExternallyReparentedResponse instance using the specified properties. * @function create - * @memberof vtctldata.SetShardIsPrimaryServingResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {vtctldata.ISetShardIsPrimaryServingResponse=} [properties] Properties to set - * @returns {vtctldata.SetShardIsPrimaryServingResponse} SetShardIsPrimaryServingResponse instance + * @param {vtctldata.ITabletExternallyReparentedResponse=} [properties] Properties to set + * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse instance */ - SetShardIsPrimaryServingResponse.create = function create(properties) { - return new SetShardIsPrimaryServingResponse(properties); + TabletExternallyReparentedResponse.create = function create(properties) { + return new TabletExternallyReparentedResponse(properties); }; /** - * Encodes the specified SetShardIsPrimaryServingResponse message. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingResponse.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedResponse message. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.SetShardIsPrimaryServingResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {vtctldata.ISetShardIsPrimaryServingResponse} message SetShardIsPrimaryServingResponse message or plain object to encode + * @param {vtctldata.ITabletExternallyReparentedResponse} message TabletExternallyReparentedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetShardIsPrimaryServingResponse.encode = function encode(message, writer) { + TabletExternallyReparentedResponse.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")) - $root.topodata.Shard.encode(message.shard, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.new_primary != null && Object.hasOwnProperty.call(message, "new_primary")) + $root.topodata.TabletAlias.encode(message.new_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.old_primary != null && Object.hasOwnProperty.call(message, "old_primary")) + $root.topodata.TabletAlias.encode(message.old_primary, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified SetShardIsPrimaryServingResponse message, length delimited. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingResponse.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedResponse message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SetShardIsPrimaryServingResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {vtctldata.ISetShardIsPrimaryServingResponse} message SetShardIsPrimaryServingResponse message or plain object to encode + * @param {vtctldata.ITabletExternallyReparentedResponse} message TabletExternallyReparentedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetShardIsPrimaryServingResponse.encodeDelimited = function encodeDelimited(message, writer) { + TabletExternallyReparentedResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer. + * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SetShardIsPrimaryServingResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SetShardIsPrimaryServingResponse} SetShardIsPrimaryServingResponse + * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetShardIsPrimaryServingResponse.decode = function decode(reader, length) { + TabletExternallyReparentedResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetShardIsPrimaryServingResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TabletExternallyReparentedResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); + message.keyspace = reader.string(); + break; + } + case 2: { + message.shard = reader.string(); + break; + } + case 3: { + message.new_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 4: { + message.old_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; } default: @@ -179475,135 +187462,158 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer, length delimited. + * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SetShardIsPrimaryServingResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SetShardIsPrimaryServingResponse} SetShardIsPrimaryServingResponse + * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetShardIsPrimaryServingResponse.decodeDelimited = function decodeDelimited(reader) { + TabletExternallyReparentedResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetShardIsPrimaryServingResponse message. + * Verifies a TabletExternallyReparentedResponse message. * @function verify - * @memberof vtctldata.SetShardIsPrimaryServingResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetShardIsPrimaryServingResponse.verify = function verify(message) { + TabletExternallyReparentedResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard != null && message.hasOwnProperty("shard")) { - let error = $root.topodata.Shard.verify(message.shard); + 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.new_primary != null && message.hasOwnProperty("new_primary")) { + let error = $root.topodata.TabletAlias.verify(message.new_primary); if (error) - return "shard." + error; + return "new_primary." + error; + } + if (message.old_primary != null && message.hasOwnProperty("old_primary")) { + let error = $root.topodata.TabletAlias.verify(message.old_primary); + if (error) + return "old_primary." + error; } return null; }; /** - * Creates a SetShardIsPrimaryServingResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TabletExternallyReparentedResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SetShardIsPrimaryServingResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.SetShardIsPrimaryServingResponse} SetShardIsPrimaryServingResponse + * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse */ - SetShardIsPrimaryServingResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SetShardIsPrimaryServingResponse) + TabletExternallyReparentedResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.TabletExternallyReparentedResponse) return object; - let message = new $root.vtctldata.SetShardIsPrimaryServingResponse(); - if (object.shard != null) { - if (typeof object.shard !== "object") - throw TypeError(".vtctldata.SetShardIsPrimaryServingResponse.shard: object expected"); - message.shard = $root.topodata.Shard.fromObject(object.shard); + let message = new $root.vtctldata.TabletExternallyReparentedResponse(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.new_primary != null) { + if (typeof object.new_primary !== "object") + throw TypeError(".vtctldata.TabletExternallyReparentedResponse.new_primary: object expected"); + message.new_primary = $root.topodata.TabletAlias.fromObject(object.new_primary); + } + if (object.old_primary != null) { + if (typeof object.old_primary !== "object") + throw TypeError(".vtctldata.TabletExternallyReparentedResponse.old_primary: object expected"); + message.old_primary = $root.topodata.TabletAlias.fromObject(object.old_primary); } return message; }; /** - * Creates a plain object from a SetShardIsPrimaryServingResponse message. Also converts values to other types if specified. + * Creates a plain object from a TabletExternallyReparentedResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SetShardIsPrimaryServingResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {vtctldata.SetShardIsPrimaryServingResponse} message SetShardIsPrimaryServingResponse + * @param {vtctldata.TabletExternallyReparentedResponse} message TabletExternallyReparentedResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetShardIsPrimaryServingResponse.toObject = function toObject(message, options) { + TabletExternallyReparentedResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.shard = null; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.new_primary = null; + object.old_primary = null; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = $root.topodata.Shard.toObject(message.shard, options); + object.shard = message.shard; + if (message.new_primary != null && message.hasOwnProperty("new_primary")) + object.new_primary = $root.topodata.TabletAlias.toObject(message.new_primary, options); + if (message.old_primary != null && message.hasOwnProperty("old_primary")) + object.old_primary = $root.topodata.TabletAlias.toObject(message.old_primary, options); return object; }; /** - * Converts this SetShardIsPrimaryServingResponse to JSON. + * Converts this TabletExternallyReparentedResponse to JSON. * @function toJSON - * @memberof vtctldata.SetShardIsPrimaryServingResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @instance * @returns {Object.} JSON object */ - SetShardIsPrimaryServingResponse.prototype.toJSON = function toJSON() { + TabletExternallyReparentedResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetShardIsPrimaryServingResponse + * Gets the default type url for TabletExternallyReparentedResponse * @function getTypeUrl - * @memberof vtctldata.SetShardIsPrimaryServingResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetShardIsPrimaryServingResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TabletExternallyReparentedResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SetShardIsPrimaryServingResponse"; + return typeUrlPrefix + "/vtctldata.TabletExternallyReparentedResponse"; }; - return SetShardIsPrimaryServingResponse; + return TabletExternallyReparentedResponse; })(); - vtctldata.SetShardTabletControlRequest = (function() { + vtctldata.UpdateCellInfoRequest = (function() { /** - * Properties of a SetShardTabletControlRequest. + * Properties of an UpdateCellInfoRequest. * @memberof vtctldata - * @interface ISetShardTabletControlRequest - * @property {string|null} [keyspace] SetShardTabletControlRequest keyspace - * @property {string|null} [shard] SetShardTabletControlRequest shard - * @property {topodata.TabletType|null} [tablet_type] SetShardTabletControlRequest tablet_type - * @property {Array.|null} [cells] SetShardTabletControlRequest cells - * @property {Array.|null} [denied_tables] SetShardTabletControlRequest denied_tables - * @property {boolean|null} [disable_query_service] SetShardTabletControlRequest disable_query_service - * @property {boolean|null} [remove] SetShardTabletControlRequest remove + * @interface IUpdateCellInfoRequest + * @property {string|null} [name] UpdateCellInfoRequest name + * @property {topodata.ICellInfo|null} [cell_info] UpdateCellInfoRequest cell_info */ /** - * Constructs a new SetShardTabletControlRequest. + * Constructs a new UpdateCellInfoRequest. * @memberof vtctldata - * @classdesc Represents a SetShardTabletControlRequest. - * @implements ISetShardTabletControlRequest + * @classdesc Represents an UpdateCellInfoRequest. + * @implements IUpdateCellInfoRequest * @constructor - * @param {vtctldata.ISetShardTabletControlRequest=} [properties] Properties to set + * @param {vtctldata.IUpdateCellInfoRequest=} [properties] Properties to set */ - function SetShardTabletControlRequest(properties) { - this.cells = []; - this.denied_tables = []; + function UpdateCellInfoRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -179611,165 +187621,89 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SetShardTabletControlRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.SetShardTabletControlRequest - * @instance - */ - SetShardTabletControlRequest.prototype.keyspace = ""; - - /** - * SetShardTabletControlRequest shard. - * @member {string} shard - * @memberof vtctldata.SetShardTabletControlRequest - * @instance - */ - SetShardTabletControlRequest.prototype.shard = ""; - - /** - * SetShardTabletControlRequest tablet_type. - * @member {topodata.TabletType} tablet_type - * @memberof vtctldata.SetShardTabletControlRequest - * @instance - */ - SetShardTabletControlRequest.prototype.tablet_type = 0; - - /** - * SetShardTabletControlRequest cells. - * @member {Array.} cells - * @memberof vtctldata.SetShardTabletControlRequest - * @instance - */ - SetShardTabletControlRequest.prototype.cells = $util.emptyArray; - - /** - * SetShardTabletControlRequest denied_tables. - * @member {Array.} denied_tables - * @memberof vtctldata.SetShardTabletControlRequest - * @instance - */ - SetShardTabletControlRequest.prototype.denied_tables = $util.emptyArray; - - /** - * SetShardTabletControlRequest disable_query_service. - * @member {boolean} disable_query_service - * @memberof vtctldata.SetShardTabletControlRequest + * UpdateCellInfoRequest name. + * @member {string} name + * @memberof vtctldata.UpdateCellInfoRequest * @instance */ - SetShardTabletControlRequest.prototype.disable_query_service = false; + UpdateCellInfoRequest.prototype.name = ""; /** - * SetShardTabletControlRequest remove. - * @member {boolean} remove - * @memberof vtctldata.SetShardTabletControlRequest + * UpdateCellInfoRequest cell_info. + * @member {topodata.ICellInfo|null|undefined} cell_info + * @memberof vtctldata.UpdateCellInfoRequest * @instance */ - SetShardTabletControlRequest.prototype.remove = false; + UpdateCellInfoRequest.prototype.cell_info = null; /** - * Creates a new SetShardTabletControlRequest instance using the specified properties. + * Creates a new UpdateCellInfoRequest instance using the specified properties. * @function create - * @memberof vtctldata.SetShardTabletControlRequest + * @memberof vtctldata.UpdateCellInfoRequest * @static - * @param {vtctldata.ISetShardTabletControlRequest=} [properties] Properties to set - * @returns {vtctldata.SetShardTabletControlRequest} SetShardTabletControlRequest instance + * @param {vtctldata.IUpdateCellInfoRequest=} [properties] Properties to set + * @returns {vtctldata.UpdateCellInfoRequest} UpdateCellInfoRequest instance */ - SetShardTabletControlRequest.create = function create(properties) { - return new SetShardTabletControlRequest(properties); + UpdateCellInfoRequest.create = function create(properties) { + return new UpdateCellInfoRequest(properties); }; /** - * Encodes the specified SetShardTabletControlRequest message. Does not implicitly {@link vtctldata.SetShardTabletControlRequest.verify|verify} messages. + * Encodes the specified UpdateCellInfoRequest message. Does not implicitly {@link vtctldata.UpdateCellInfoRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.SetShardTabletControlRequest + * @memberof vtctldata.UpdateCellInfoRequest * @static - * @param {vtctldata.ISetShardTabletControlRequest} message SetShardTabletControlRequest message or plain object to encode + * @param {vtctldata.IUpdateCellInfoRequest} message UpdateCellInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetShardTabletControlRequest.encode = function encode(message, writer) { + UpdateCellInfoRequest.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.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.cells[i]); - if (message.denied_tables != null && message.denied_tables.length) - for (let i = 0; i < message.denied_tables.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.denied_tables[i]); - if (message.disable_query_service != null && Object.hasOwnProperty.call(message, "disable_query_service")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disable_query_service); - if (message.remove != null && Object.hasOwnProperty.call(message, "remove")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.remove); + 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 SetShardTabletControlRequest message, length delimited. Does not implicitly {@link vtctldata.SetShardTabletControlRequest.verify|verify} messages. + * Encodes the specified UpdateCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateCellInfoRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SetShardTabletControlRequest + * @memberof vtctldata.UpdateCellInfoRequest * @static - * @param {vtctldata.ISetShardTabletControlRequest} message SetShardTabletControlRequest message or plain object to encode + * @param {vtctldata.IUpdateCellInfoRequest} message UpdateCellInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetShardTabletControlRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetShardTabletControlRequest message from the specified reader or buffer. + * Decodes an UpdateCellInfoRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SetShardTabletControlRequest + * @memberof vtctldata.UpdateCellInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SetShardTabletControlRequest} SetShardTabletControlRequest + * @returns {vtctldata.UpdateCellInfoRequest} UpdateCellInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetShardTabletControlRequest.decode = function decode(reader, length) { + UpdateCellInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetShardTabletControlRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.UpdateCellInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + message.name = reader.string(); break; } case 2: { - message.shard = reader.string(); - break; - } - case 3: { - message.tablet_type = reader.int32(); - break; - } - case 4: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); - break; - } - case 5: { - if (!(message.denied_tables && message.denied_tables.length)) - message.denied_tables = []; - message.denied_tables.push(reader.string()); - break; - } - case 6: { - message.disable_query_service = reader.bool(); - break; - } - case 7: { - message.remove = reader.bool(); + message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); break; } default: @@ -179781,261 +187715,137 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SetShardTabletControlRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateCellInfoRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SetShardTabletControlRequest + * @memberof vtctldata.UpdateCellInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SetShardTabletControlRequest} SetShardTabletControlRequest + * @returns {vtctldata.UpdateCellInfoRequest} UpdateCellInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetShardTabletControlRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetShardTabletControlRequest message. + * Verifies an UpdateCellInfoRequest message. * @function verify - * @memberof vtctldata.SetShardTabletControlRequest + * @memberof vtctldata.UpdateCellInfoRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetShardTabletControlRequest.verify = function verify(message) { + UpdateCellInfoRequest.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.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } - if (message.denied_tables != null && message.hasOwnProperty("denied_tables")) { - if (!Array.isArray(message.denied_tables)) - return "denied_tables: array expected"; - for (let i = 0; i < message.denied_tables.length; ++i) - if (!$util.isString(message.denied_tables[i])) - return "denied_tables: string[] 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")) { + let error = $root.topodata.CellInfo.verify(message.cell_info); + if (error) + return "cell_info." + error; } - if (message.disable_query_service != null && message.hasOwnProperty("disable_query_service")) - if (typeof message.disable_query_service !== "boolean") - return "disable_query_service: boolean expected"; - if (message.remove != null && message.hasOwnProperty("remove")) - if (typeof message.remove !== "boolean") - return "remove: boolean expected"; return null; }; /** - * Creates a SetShardTabletControlRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCellInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SetShardTabletControlRequest + * @memberof vtctldata.UpdateCellInfoRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.SetShardTabletControlRequest} SetShardTabletControlRequest + * @returns {vtctldata.UpdateCellInfoRequest} UpdateCellInfoRequest */ - SetShardTabletControlRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SetShardTabletControlRequest) + UpdateCellInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.UpdateCellInfoRequest) return object; - let message = new $root.vtctldata.SetShardTabletControlRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - switch (object.tablet_type) { - default: - if (typeof object.tablet_type === "number") { - message.tablet_type = object.tablet_type; - break; - } - break; - 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.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.SetShardTabletControlRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } - if (object.denied_tables) { - if (!Array.isArray(object.denied_tables)) - throw TypeError(".vtctldata.SetShardTabletControlRequest.denied_tables: array expected"); - message.denied_tables = []; - for (let i = 0; i < object.denied_tables.length; ++i) - message.denied_tables[i] = String(object.denied_tables[i]); + let message = new $root.vtctldata.UpdateCellInfoRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.cell_info != null) { + if (typeof object.cell_info !== "object") + throw TypeError(".vtctldata.UpdateCellInfoRequest.cell_info: object expected"); + message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); } - if (object.disable_query_service != null) - message.disable_query_service = Boolean(object.disable_query_service); - if (object.remove != null) - message.remove = Boolean(object.remove); return message; }; /** - * Creates a plain object from a SetShardTabletControlRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateCellInfoRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SetShardTabletControlRequest + * @memberof vtctldata.UpdateCellInfoRequest * @static - * @param {vtctldata.SetShardTabletControlRequest} message SetShardTabletControlRequest + * @param {vtctldata.UpdateCellInfoRequest} message UpdateCellInfoRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetShardTabletControlRequest.toObject = function toObject(message, options) { + UpdateCellInfoRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.cells = []; - object.denied_tables = []; - } if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.tablet_type = options.enums === String ? "UNKNOWN" : 0; - object.disable_query_service = false; - object.remove = false; - } - 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] === undefined ? message.tablet_type : $root.topodata.TabletType[message.tablet_type] : message.tablet_type; - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } - if (message.denied_tables && message.denied_tables.length) { - object.denied_tables = []; - for (let j = 0; j < message.denied_tables.length; ++j) - object.denied_tables[j] = message.denied_tables[j]; + object.name = ""; + object.cell_info = null; } - if (message.disable_query_service != null && message.hasOwnProperty("disable_query_service")) - object.disable_query_service = message.disable_query_service; - if (message.remove != null && message.hasOwnProperty("remove")) - object.remove = message.remove; + 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 SetShardTabletControlRequest to JSON. + * Converts this UpdateCellInfoRequest to JSON. * @function toJSON - * @memberof vtctldata.SetShardTabletControlRequest + * @memberof vtctldata.UpdateCellInfoRequest * @instance * @returns {Object.} JSON object */ - SetShardTabletControlRequest.prototype.toJSON = function toJSON() { + UpdateCellInfoRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetShardTabletControlRequest + * Gets the default type url for UpdateCellInfoRequest * @function getTypeUrl - * @memberof vtctldata.SetShardTabletControlRequest + * @memberof vtctldata.UpdateCellInfoRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetShardTabletControlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateCellInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SetShardTabletControlRequest"; + return typeUrlPrefix + "/vtctldata.UpdateCellInfoRequest"; }; - return SetShardTabletControlRequest; + return UpdateCellInfoRequest; })(); - vtctldata.SetShardTabletControlResponse = (function() { + vtctldata.UpdateCellInfoResponse = (function() { /** - * Properties of a SetShardTabletControlResponse. + * Properties of an UpdateCellInfoResponse. * @memberof vtctldata - * @interface ISetShardTabletControlResponse - * @property {topodata.IShard|null} [shard] SetShardTabletControlResponse shard + * @interface IUpdateCellInfoResponse + * @property {string|null} [name] UpdateCellInfoResponse name + * @property {topodata.ICellInfo|null} [cell_info] UpdateCellInfoResponse cell_info */ /** - * Constructs a new SetShardTabletControlResponse. + * Constructs a new UpdateCellInfoResponse. * @memberof vtctldata - * @classdesc Represents a SetShardTabletControlResponse. - * @implements ISetShardTabletControlResponse + * @classdesc Represents an UpdateCellInfoResponse. + * @implements IUpdateCellInfoResponse * @constructor - * @param {vtctldata.ISetShardTabletControlResponse=} [properties] Properties to set + * @param {vtctldata.IUpdateCellInfoResponse=} [properties] Properties to set */ - function SetShardTabletControlResponse(properties) { + function UpdateCellInfoResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -180043,75 +187853,89 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SetShardTabletControlResponse shard. - * @member {topodata.IShard|null|undefined} shard - * @memberof vtctldata.SetShardTabletControlResponse + * UpdateCellInfoResponse name. + * @member {string} name + * @memberof vtctldata.UpdateCellInfoResponse + * @instance + */ + UpdateCellInfoResponse.prototype.name = ""; + + /** + * UpdateCellInfoResponse cell_info. + * @member {topodata.ICellInfo|null|undefined} cell_info + * @memberof vtctldata.UpdateCellInfoResponse * @instance */ - SetShardTabletControlResponse.prototype.shard = null; + UpdateCellInfoResponse.prototype.cell_info = null; /** - * Creates a new SetShardTabletControlResponse instance using the specified properties. + * Creates a new UpdateCellInfoResponse instance using the specified properties. * @function create - * @memberof vtctldata.SetShardTabletControlResponse + * @memberof vtctldata.UpdateCellInfoResponse * @static - * @param {vtctldata.ISetShardTabletControlResponse=} [properties] Properties to set - * @returns {vtctldata.SetShardTabletControlResponse} SetShardTabletControlResponse instance + * @param {vtctldata.IUpdateCellInfoResponse=} [properties] Properties to set + * @returns {vtctldata.UpdateCellInfoResponse} UpdateCellInfoResponse instance */ - SetShardTabletControlResponse.create = function create(properties) { - return new SetShardTabletControlResponse(properties); + UpdateCellInfoResponse.create = function create(properties) { + return new UpdateCellInfoResponse(properties); }; /** - * Encodes the specified SetShardTabletControlResponse message. Does not implicitly {@link vtctldata.SetShardTabletControlResponse.verify|verify} messages. + * Encodes the specified UpdateCellInfoResponse message. Does not implicitly {@link vtctldata.UpdateCellInfoResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.SetShardTabletControlResponse + * @memberof vtctldata.UpdateCellInfoResponse * @static - * @param {vtctldata.ISetShardTabletControlResponse} message SetShardTabletControlResponse message or plain object to encode + * @param {vtctldata.IUpdateCellInfoResponse} message UpdateCellInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetShardTabletControlResponse.encode = function encode(message, writer) { + UpdateCellInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - $root.topodata.Shard.encode(message.shard, 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.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 SetShardTabletControlResponse message, length delimited. Does not implicitly {@link vtctldata.SetShardTabletControlResponse.verify|verify} messages. + * Encodes the specified UpdateCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateCellInfoResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SetShardTabletControlResponse + * @memberof vtctldata.UpdateCellInfoResponse * @static - * @param {vtctldata.ISetShardTabletControlResponse} message SetShardTabletControlResponse message or plain object to encode + * @param {vtctldata.IUpdateCellInfoResponse} message UpdateCellInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetShardTabletControlResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetShardTabletControlResponse message from the specified reader or buffer. + * Decodes an UpdateCellInfoResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SetShardTabletControlResponse + * @memberof vtctldata.UpdateCellInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SetShardTabletControlResponse} SetShardTabletControlResponse + * @returns {vtctldata.UpdateCellInfoResponse} UpdateCellInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetShardTabletControlResponse.decode = function decode(reader, length) { + UpdateCellInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetShardTabletControlResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.UpdateCellInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); + message.name = reader.string(); + break; + } + case 2: { + message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); break; } default: @@ -180123,128 +187947,137 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SetShardTabletControlResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateCellInfoResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SetShardTabletControlResponse + * @memberof vtctldata.UpdateCellInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SetShardTabletControlResponse} SetShardTabletControlResponse + * @returns {vtctldata.UpdateCellInfoResponse} UpdateCellInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetShardTabletControlResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetShardTabletControlResponse message. + * Verifies an UpdateCellInfoResponse message. * @function verify - * @memberof vtctldata.SetShardTabletControlResponse + * @memberof vtctldata.UpdateCellInfoResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetShardTabletControlResponse.verify = function verify(message) { + UpdateCellInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard != null && message.hasOwnProperty("shard")) { - let error = $root.topodata.Shard.verify(message.shard); + 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")) { + let error = $root.topodata.CellInfo.verify(message.cell_info); if (error) - return "shard." + error; + return "cell_info." + error; } return null; }; /** - * Creates a SetShardTabletControlResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCellInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SetShardTabletControlResponse + * @memberof vtctldata.UpdateCellInfoResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.SetShardTabletControlResponse} SetShardTabletControlResponse + * @returns {vtctldata.UpdateCellInfoResponse} UpdateCellInfoResponse */ - SetShardTabletControlResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SetShardTabletControlResponse) + UpdateCellInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.UpdateCellInfoResponse) return object; - let message = new $root.vtctldata.SetShardTabletControlResponse(); - if (object.shard != null) { - if (typeof object.shard !== "object") - throw TypeError(".vtctldata.SetShardTabletControlResponse.shard: object expected"); - message.shard = $root.topodata.Shard.fromObject(object.shard); + let message = new $root.vtctldata.UpdateCellInfoResponse(); + if (object.name != null) + message.name = String(object.name); + if (object.cell_info != null) { + if (typeof object.cell_info !== "object") + throw TypeError(".vtctldata.UpdateCellInfoResponse.cell_info: object expected"); + message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); } return message; }; /** - * Creates a plain object from a SetShardTabletControlResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateCellInfoResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SetShardTabletControlResponse + * @memberof vtctldata.UpdateCellInfoResponse * @static - * @param {vtctldata.SetShardTabletControlResponse} message SetShardTabletControlResponse + * @param {vtctldata.UpdateCellInfoResponse} message UpdateCellInfoResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetShardTabletControlResponse.toObject = function toObject(message, options) { + UpdateCellInfoResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.shard = null; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = $root.topodata.Shard.toObject(message.shard, options); + 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 SetShardTabletControlResponse to JSON. + * Converts this UpdateCellInfoResponse to JSON. * @function toJSON - * @memberof vtctldata.SetShardTabletControlResponse + * @memberof vtctldata.UpdateCellInfoResponse * @instance * @returns {Object.} JSON object */ - SetShardTabletControlResponse.prototype.toJSON = function toJSON() { + UpdateCellInfoResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetShardTabletControlResponse + * Gets the default type url for UpdateCellInfoResponse * @function getTypeUrl - * @memberof vtctldata.SetShardTabletControlResponse + * @memberof vtctldata.UpdateCellInfoResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetShardTabletControlResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateCellInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SetShardTabletControlResponse"; + return typeUrlPrefix + "/vtctldata.UpdateCellInfoResponse"; }; - return SetShardTabletControlResponse; + return UpdateCellInfoResponse; })(); - vtctldata.SetWritableRequest = (function() { + vtctldata.UpdateCellsAliasRequest = (function() { /** - * Properties of a SetWritableRequest. + * Properties of an UpdateCellsAliasRequest. * @memberof vtctldata - * @interface ISetWritableRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] SetWritableRequest tablet_alias - * @property {boolean|null} [writable] SetWritableRequest writable + * @interface IUpdateCellsAliasRequest + * @property {string|null} [name] UpdateCellsAliasRequest name + * @property {topodata.ICellsAlias|null} [cells_alias] UpdateCellsAliasRequest cells_alias */ /** - * Constructs a new SetWritableRequest. + * Constructs a new UpdateCellsAliasRequest. * @memberof vtctldata - * @classdesc Represents a SetWritableRequest. - * @implements ISetWritableRequest + * @classdesc Represents an UpdateCellsAliasRequest. + * @implements IUpdateCellsAliasRequest * @constructor - * @param {vtctldata.ISetWritableRequest=} [properties] Properties to set + * @param {vtctldata.IUpdateCellsAliasRequest=} [properties] Properties to set */ - function SetWritableRequest(properties) { + function UpdateCellsAliasRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -180252,89 +188085,89 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SetWritableRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.SetWritableRequest + * UpdateCellsAliasRequest name. + * @member {string} name + * @memberof vtctldata.UpdateCellsAliasRequest * @instance */ - SetWritableRequest.prototype.tablet_alias = null; + UpdateCellsAliasRequest.prototype.name = ""; /** - * SetWritableRequest writable. - * @member {boolean} writable - * @memberof vtctldata.SetWritableRequest + * UpdateCellsAliasRequest cells_alias. + * @member {topodata.ICellsAlias|null|undefined} cells_alias + * @memberof vtctldata.UpdateCellsAliasRequest * @instance */ - SetWritableRequest.prototype.writable = false; + UpdateCellsAliasRequest.prototype.cells_alias = null; /** - * Creates a new SetWritableRequest instance using the specified properties. + * Creates a new UpdateCellsAliasRequest instance using the specified properties. * @function create - * @memberof vtctldata.SetWritableRequest + * @memberof vtctldata.UpdateCellsAliasRequest * @static - * @param {vtctldata.ISetWritableRequest=} [properties] Properties to set - * @returns {vtctldata.SetWritableRequest} SetWritableRequest instance + * @param {vtctldata.IUpdateCellsAliasRequest=} [properties] Properties to set + * @returns {vtctldata.UpdateCellsAliasRequest} UpdateCellsAliasRequest instance */ - SetWritableRequest.create = function create(properties) { - return new SetWritableRequest(properties); + UpdateCellsAliasRequest.create = function create(properties) { + return new UpdateCellsAliasRequest(properties); }; /** - * Encodes the specified SetWritableRequest message. Does not implicitly {@link vtctldata.SetWritableRequest.verify|verify} messages. + * Encodes the specified UpdateCellsAliasRequest message. Does not implicitly {@link vtctldata.UpdateCellsAliasRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.SetWritableRequest + * @memberof vtctldata.UpdateCellsAliasRequest * @static - * @param {vtctldata.ISetWritableRequest} message SetWritableRequest message or plain object to encode + * @param {vtctldata.IUpdateCellsAliasRequest} message UpdateCellsAliasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetWritableRequest.encode = function encode(message, writer) { + UpdateCellsAliasRequest.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.writable != null && Object.hasOwnProperty.call(message, "writable")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.writable); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.cells_alias != null && Object.hasOwnProperty.call(message, "cells_alias")) + $root.topodata.CellsAlias.encode(message.cells_alias, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SetWritableRequest message, length delimited. Does not implicitly {@link vtctldata.SetWritableRequest.verify|verify} messages. + * Encodes the specified UpdateCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateCellsAliasRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SetWritableRequest + * @memberof vtctldata.UpdateCellsAliasRequest * @static - * @param {vtctldata.ISetWritableRequest} message SetWritableRequest message or plain object to encode + * @param {vtctldata.IUpdateCellsAliasRequest} message UpdateCellsAliasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetWritableRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateCellsAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetWritableRequest message from the specified reader or buffer. + * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SetWritableRequest + * @memberof vtctldata.UpdateCellsAliasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SetWritableRequest} SetWritableRequest + * @returns {vtctldata.UpdateCellsAliasRequest} UpdateCellsAliasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetWritableRequest.decode = function decode(reader, length) { + UpdateCellsAliasRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetWritableRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.UpdateCellsAliasRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - message.writable = reader.bool(); + message.cells_alias = $root.topodata.CellsAlias.decode(reader, reader.uint32()); break; } default: @@ -180346,135 +188179,137 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SetWritableRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SetWritableRequest + * @memberof vtctldata.UpdateCellsAliasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SetWritableRequest} SetWritableRequest + * @returns {vtctldata.UpdateCellsAliasRequest} UpdateCellsAliasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetWritableRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateCellsAliasRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetWritableRequest message. + * Verifies an UpdateCellsAliasRequest message. * @function verify - * @memberof vtctldata.SetWritableRequest + * @memberof vtctldata.UpdateCellsAliasRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetWritableRequest.verify = function verify(message) { + UpdateCellsAliasRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.cells_alias != null && message.hasOwnProperty("cells_alias")) { + let error = $root.topodata.CellsAlias.verify(message.cells_alias); if (error) - return "tablet_alias." + error; + return "cells_alias." + error; } - if (message.writable != null && message.hasOwnProperty("writable")) - if (typeof message.writable !== "boolean") - return "writable: boolean expected"; return null; }; /** - * Creates a SetWritableRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCellsAliasRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SetWritableRequest + * @memberof vtctldata.UpdateCellsAliasRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.SetWritableRequest} SetWritableRequest + * @returns {vtctldata.UpdateCellsAliasRequest} UpdateCellsAliasRequest */ - SetWritableRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SetWritableRequest) + UpdateCellsAliasRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.UpdateCellsAliasRequest) return object; - let message = new $root.vtctldata.SetWritableRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.SetWritableRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + let message = new $root.vtctldata.UpdateCellsAliasRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.cells_alias != null) { + if (typeof object.cells_alias !== "object") + throw TypeError(".vtctldata.UpdateCellsAliasRequest.cells_alias: object expected"); + message.cells_alias = $root.topodata.CellsAlias.fromObject(object.cells_alias); } - if (object.writable != null) - message.writable = Boolean(object.writable); return message; }; /** - * Creates a plain object from a SetWritableRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateCellsAliasRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SetWritableRequest + * @memberof vtctldata.UpdateCellsAliasRequest * @static - * @param {vtctldata.SetWritableRequest} message SetWritableRequest + * @param {vtctldata.UpdateCellsAliasRequest} message UpdateCellsAliasRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetWritableRequest.toObject = function toObject(message, options) { + UpdateCellsAliasRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.tablet_alias = null; - object.writable = false; + object.name = ""; + object.cells_alias = null; } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.writable != null && message.hasOwnProperty("writable")) - object.writable = message.writable; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.cells_alias != null && message.hasOwnProperty("cells_alias")) + object.cells_alias = $root.topodata.CellsAlias.toObject(message.cells_alias, options); return object; }; /** - * Converts this SetWritableRequest to JSON. + * Converts this UpdateCellsAliasRequest to JSON. * @function toJSON - * @memberof vtctldata.SetWritableRequest + * @memberof vtctldata.UpdateCellsAliasRequest * @instance * @returns {Object.} JSON object */ - SetWritableRequest.prototype.toJSON = function toJSON() { + UpdateCellsAliasRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetWritableRequest + * Gets the default type url for UpdateCellsAliasRequest * @function getTypeUrl - * @memberof vtctldata.SetWritableRequest + * @memberof vtctldata.UpdateCellsAliasRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetWritableRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateCellsAliasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SetWritableRequest"; + return typeUrlPrefix + "/vtctldata.UpdateCellsAliasRequest"; }; - return SetWritableRequest; + return UpdateCellsAliasRequest; })(); - vtctldata.SetWritableResponse = (function() { + vtctldata.UpdateCellsAliasResponse = (function() { /** - * Properties of a SetWritableResponse. + * Properties of an UpdateCellsAliasResponse. * @memberof vtctldata - * @interface ISetWritableResponse + * @interface IUpdateCellsAliasResponse + * @property {string|null} [name] UpdateCellsAliasResponse name + * @property {topodata.ICellsAlias|null} [cells_alias] UpdateCellsAliasResponse cells_alias */ /** - * Constructs a new SetWritableResponse. + * Constructs a new UpdateCellsAliasResponse. * @memberof vtctldata - * @classdesc Represents a SetWritableResponse. - * @implements ISetWritableResponse + * @classdesc Represents an UpdateCellsAliasResponse. + * @implements IUpdateCellsAliasResponse * @constructor - * @param {vtctldata.ISetWritableResponse=} [properties] Properties to set + * @param {vtctldata.IUpdateCellsAliasResponse=} [properties] Properties to set */ - function SetWritableResponse(properties) { + function UpdateCellsAliasResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -180482,63 +188317,91 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new SetWritableResponse instance using the specified properties. + * UpdateCellsAliasResponse name. + * @member {string} name + * @memberof vtctldata.UpdateCellsAliasResponse + * @instance + */ + UpdateCellsAliasResponse.prototype.name = ""; + + /** + * UpdateCellsAliasResponse cells_alias. + * @member {topodata.ICellsAlias|null|undefined} cells_alias + * @memberof vtctldata.UpdateCellsAliasResponse + * @instance + */ + UpdateCellsAliasResponse.prototype.cells_alias = null; + + /** + * Creates a new UpdateCellsAliasResponse instance using the specified properties. * @function create - * @memberof vtctldata.SetWritableResponse + * @memberof vtctldata.UpdateCellsAliasResponse * @static - * @param {vtctldata.ISetWritableResponse=} [properties] Properties to set - * @returns {vtctldata.SetWritableResponse} SetWritableResponse instance + * @param {vtctldata.IUpdateCellsAliasResponse=} [properties] Properties to set + * @returns {vtctldata.UpdateCellsAliasResponse} UpdateCellsAliasResponse instance */ - SetWritableResponse.create = function create(properties) { - return new SetWritableResponse(properties); + UpdateCellsAliasResponse.create = function create(properties) { + return new UpdateCellsAliasResponse(properties); }; /** - * Encodes the specified SetWritableResponse message. Does not implicitly {@link vtctldata.SetWritableResponse.verify|verify} messages. + * Encodes the specified UpdateCellsAliasResponse message. Does not implicitly {@link vtctldata.UpdateCellsAliasResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.SetWritableResponse + * @memberof vtctldata.UpdateCellsAliasResponse * @static - * @param {vtctldata.ISetWritableResponse} message SetWritableResponse message or plain object to encode + * @param {vtctldata.IUpdateCellsAliasResponse} message UpdateCellsAliasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetWritableResponse.encode = function encode(message, writer) { + UpdateCellsAliasResponse.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_alias != null && Object.hasOwnProperty.call(message, "cells_alias")) + $root.topodata.CellsAlias.encode(message.cells_alias, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SetWritableResponse message, length delimited. Does not implicitly {@link vtctldata.SetWritableResponse.verify|verify} messages. + * Encodes the specified UpdateCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateCellsAliasResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SetWritableResponse + * @memberof vtctldata.UpdateCellsAliasResponse * @static - * @param {vtctldata.ISetWritableResponse} message SetWritableResponse message or plain object to encode + * @param {vtctldata.IUpdateCellsAliasResponse} message UpdateCellsAliasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetWritableResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateCellsAliasResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetWritableResponse message from the specified reader or buffer. + * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SetWritableResponse + * @memberof vtctldata.UpdateCellsAliasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SetWritableResponse} SetWritableResponse + * @returns {vtctldata.UpdateCellsAliasResponse} UpdateCellsAliasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetWritableResponse.decode = function decode(reader, length) { + UpdateCellsAliasResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SetWritableResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.UpdateCellsAliasResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.cells_alias = $root.topodata.CellsAlias.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -180548,111 +188411,136 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SetWritableResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SetWritableResponse + * @memberof vtctldata.UpdateCellsAliasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SetWritableResponse} SetWritableResponse + * @returns {vtctldata.UpdateCellsAliasResponse} UpdateCellsAliasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetWritableResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateCellsAliasResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetWritableResponse message. + * Verifies an UpdateCellsAliasResponse message. * @function verify - * @memberof vtctldata.SetWritableResponse + * @memberof vtctldata.UpdateCellsAliasResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetWritableResponse.verify = function verify(message) { + UpdateCellsAliasResponse.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_alias != null && message.hasOwnProperty("cells_alias")) { + let error = $root.topodata.CellsAlias.verify(message.cells_alias); + if (error) + return "cells_alias." + error; + } return null; }; /** - * Creates a SetWritableResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCellsAliasResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SetWritableResponse + * @memberof vtctldata.UpdateCellsAliasResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.SetWritableResponse} SetWritableResponse + * @returns {vtctldata.UpdateCellsAliasResponse} UpdateCellsAliasResponse */ - SetWritableResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SetWritableResponse) + UpdateCellsAliasResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.UpdateCellsAliasResponse) return object; - return new $root.vtctldata.SetWritableResponse(); + let message = new $root.vtctldata.UpdateCellsAliasResponse(); + if (object.name != null) + message.name = String(object.name); + if (object.cells_alias != null) { + if (typeof object.cells_alias !== "object") + throw TypeError(".vtctldata.UpdateCellsAliasResponse.cells_alias: object expected"); + message.cells_alias = $root.topodata.CellsAlias.fromObject(object.cells_alias); + } + return message; }; /** - * Creates a plain object from a SetWritableResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateCellsAliasResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SetWritableResponse + * @memberof vtctldata.UpdateCellsAliasResponse * @static - * @param {vtctldata.SetWritableResponse} message SetWritableResponse + * @param {vtctldata.UpdateCellsAliasResponse} message UpdateCellsAliasResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetWritableResponse.toObject = function toObject() { - return {}; + UpdateCellsAliasResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.name = ""; + object.cells_alias = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.cells_alias != null && message.hasOwnProperty("cells_alias")) + object.cells_alias = $root.topodata.CellsAlias.toObject(message.cells_alias, options); + return object; }; /** - * Converts this SetWritableResponse to JSON. + * Converts this UpdateCellsAliasResponse to JSON. * @function toJSON - * @memberof vtctldata.SetWritableResponse + * @memberof vtctldata.UpdateCellsAliasResponse * @instance * @returns {Object.} JSON object */ - SetWritableResponse.prototype.toJSON = function toJSON() { + UpdateCellsAliasResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetWritableResponse + * Gets the default type url for UpdateCellsAliasResponse * @function getTypeUrl - * @memberof vtctldata.SetWritableResponse + * @memberof vtctldata.UpdateCellsAliasResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetWritableResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateCellsAliasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SetWritableResponse"; + return typeUrlPrefix + "/vtctldata.UpdateCellsAliasResponse"; }; - return SetWritableResponse; + return UpdateCellsAliasResponse; })(); - vtctldata.ShardReplicationAddRequest = (function() { + vtctldata.ValidateRequest = (function() { /** - * Properties of a ShardReplicationAddRequest. + * Properties of a ValidateRequest. * @memberof vtctldata - * @interface IShardReplicationAddRequest - * @property {string|null} [keyspace] ShardReplicationAddRequest keyspace - * @property {string|null} [shard] ShardReplicationAddRequest shard - * @property {topodata.ITabletAlias|null} [tablet_alias] ShardReplicationAddRequest tablet_alias + * @interface IValidateRequest + * @property {boolean|null} [ping_tablets] ValidateRequest ping_tablets */ /** - * Constructs a new ShardReplicationAddRequest. + * Constructs a new ValidateRequest. * @memberof vtctldata - * @classdesc Represents a ShardReplicationAddRequest. - * @implements IShardReplicationAddRequest + * @classdesc Represents a ValidateRequest. + * @implements IValidateRequest * @constructor - * @param {vtctldata.IShardReplicationAddRequest=} [properties] Properties to set + * @param {vtctldata.IValidateRequest=} [properties] Properties to set */ - function ShardReplicationAddRequest(properties) { + function ValidateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -180660,103 +188548,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ShardReplicationAddRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.ShardReplicationAddRequest - * @instance - */ - ShardReplicationAddRequest.prototype.keyspace = ""; - - /** - * ShardReplicationAddRequest shard. - * @member {string} shard - * @memberof vtctldata.ShardReplicationAddRequest - * @instance - */ - ShardReplicationAddRequest.prototype.shard = ""; - - /** - * ShardReplicationAddRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.ShardReplicationAddRequest + * ValidateRequest ping_tablets. + * @member {boolean} ping_tablets + * @memberof vtctldata.ValidateRequest * @instance */ - ShardReplicationAddRequest.prototype.tablet_alias = null; + ValidateRequest.prototype.ping_tablets = false; /** - * Creates a new ShardReplicationAddRequest instance using the specified properties. + * Creates a new ValidateRequest instance using the specified properties. * @function create - * @memberof vtctldata.ShardReplicationAddRequest + * @memberof vtctldata.ValidateRequest * @static - * @param {vtctldata.IShardReplicationAddRequest=} [properties] Properties to set - * @returns {vtctldata.ShardReplicationAddRequest} ShardReplicationAddRequest instance + * @param {vtctldata.IValidateRequest=} [properties] Properties to set + * @returns {vtctldata.ValidateRequest} ValidateRequest instance */ - ShardReplicationAddRequest.create = function create(properties) { - return new ShardReplicationAddRequest(properties); + ValidateRequest.create = function create(properties) { + return new ValidateRequest(properties); }; /** - * Encodes the specified ShardReplicationAddRequest message. Does not implicitly {@link vtctldata.ShardReplicationAddRequest.verify|verify} messages. + * Encodes the specified ValidateRequest message. Does not implicitly {@link vtctldata.ValidateRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ShardReplicationAddRequest + * @memberof vtctldata.ValidateRequest * @static - * @param {vtctldata.IShardReplicationAddRequest} message ShardReplicationAddRequest message or plain object to encode + * @param {vtctldata.IValidateRequest} message ValidateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationAddRequest.encode = function encode(message, writer) { + ValidateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.ping_tablets != null && Object.hasOwnProperty.call(message, "ping_tablets")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.ping_tablets); return writer; }; /** - * Encodes the specified ShardReplicationAddRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationAddRequest.verify|verify} messages. + * Encodes the specified ValidateRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ShardReplicationAddRequest + * @memberof vtctldata.ValidateRequest * @static - * @param {vtctldata.IShardReplicationAddRequest} message ShardReplicationAddRequest message or plain object to encode + * @param {vtctldata.IValidateRequest} message ValidateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationAddRequest.encodeDelimited = function encodeDelimited(message, writer) { + ValidateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardReplicationAddRequest message from the specified reader or buffer. + * Decodes a ValidateRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ShardReplicationAddRequest + * @memberof vtctldata.ValidateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ShardReplicationAddRequest} ShardReplicationAddRequest + * @returns {vtctldata.ValidateRequest} ValidateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationAddRequest.decode = function decode(reader, length) { + ValidateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationAddRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateRequest(); while (reader.pos < end) { 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_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.ping_tablets = reader.bool(); break; } default: @@ -180768,143 +188628,125 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ShardReplicationAddRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ShardReplicationAddRequest + * @memberof vtctldata.ValidateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ShardReplicationAddRequest} ShardReplicationAddRequest + * @returns {vtctldata.ValidateRequest} ValidateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationAddRequest.decodeDelimited = function decodeDelimited(reader) { + ValidateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardReplicationAddRequest message. + * Verifies a ValidateRequest message. * @function verify - * @memberof vtctldata.ShardReplicationAddRequest + * @memberof vtctldata.ValidateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardReplicationAddRequest.verify = function verify(message) { + ValidateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } + if (message.ping_tablets != null && message.hasOwnProperty("ping_tablets")) + if (typeof message.ping_tablets !== "boolean") + return "ping_tablets: boolean expected"; return null; }; /** - * Creates a ShardReplicationAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ShardReplicationAddRequest + * @memberof vtctldata.ValidateRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ShardReplicationAddRequest} ShardReplicationAddRequest + * @returns {vtctldata.ValidateRequest} ValidateRequest */ - ShardReplicationAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ShardReplicationAddRequest) + ValidateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidateRequest) return object; - let message = new $root.vtctldata.ShardReplicationAddRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.ShardReplicationAddRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } + let message = new $root.vtctldata.ValidateRequest(); + if (object.ping_tablets != null) + message.ping_tablets = Boolean(object.ping_tablets); return message; }; /** - * Creates a plain object from a ShardReplicationAddRequest message. Also converts values to other types if specified. + * Creates a plain object from a ValidateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ShardReplicationAddRequest + * @memberof vtctldata.ValidateRequest * @static - * @param {vtctldata.ShardReplicationAddRequest} message ShardReplicationAddRequest + * @param {vtctldata.ValidateRequest} message ValidateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardReplicationAddRequest.toObject = function toObject(message, options) { + ValidateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.tablet_alias = null; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (options.defaults) + object.ping_tablets = false; + if (message.ping_tablets != null && message.hasOwnProperty("ping_tablets")) + object.ping_tablets = message.ping_tablets; return object; }; /** - * Converts this ShardReplicationAddRequest to JSON. + * Converts this ValidateRequest to JSON. * @function toJSON - * @memberof vtctldata.ShardReplicationAddRequest + * @memberof vtctldata.ValidateRequest * @instance * @returns {Object.} JSON object */ - ShardReplicationAddRequest.prototype.toJSON = function toJSON() { + ValidateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardReplicationAddRequest + * Gets the default type url for ValidateRequest * @function getTypeUrl - * @memberof vtctldata.ShardReplicationAddRequest + * @memberof vtctldata.ValidateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardReplicationAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ShardReplicationAddRequest"; + return typeUrlPrefix + "/vtctldata.ValidateRequest"; }; - return ShardReplicationAddRequest; + return ValidateRequest; })(); - vtctldata.ShardReplicationAddResponse = (function() { + vtctldata.ValidateResponse = (function() { /** - * Properties of a ShardReplicationAddResponse. + * Properties of a ValidateResponse. * @memberof vtctldata - * @interface IShardReplicationAddResponse + * @interface IValidateResponse + * @property {Array.|null} [results] ValidateResponse results + * @property {Object.|null} [results_by_keyspace] ValidateResponse results_by_keyspace */ /** - * Constructs a new ShardReplicationAddResponse. + * Constructs a new ValidateResponse. * @memberof vtctldata - * @classdesc Represents a ShardReplicationAddResponse. - * @implements IShardReplicationAddResponse + * @classdesc Represents a ValidateResponse. + * @implements IValidateResponse * @constructor - * @param {vtctldata.IShardReplicationAddResponse=} [properties] Properties to set + * @param {vtctldata.IValidateResponse=} [properties] Properties to set */ - function ShardReplicationAddResponse(properties) { + function ValidateResponse(properties) { + this.results = []; + this.results_by_keyspace = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -180912,63 +188754,116 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new ShardReplicationAddResponse instance using the specified properties. + * ValidateResponse results. + * @member {Array.} results + * @memberof vtctldata.ValidateResponse + * @instance + */ + ValidateResponse.prototype.results = $util.emptyArray; + + /** + * ValidateResponse results_by_keyspace. + * @member {Object.} results_by_keyspace + * @memberof vtctldata.ValidateResponse + * @instance + */ + ValidateResponse.prototype.results_by_keyspace = $util.emptyObject; + + /** + * Creates a new ValidateResponse instance using the specified properties. * @function create - * @memberof vtctldata.ShardReplicationAddResponse + * @memberof vtctldata.ValidateResponse * @static - * @param {vtctldata.IShardReplicationAddResponse=} [properties] Properties to set - * @returns {vtctldata.ShardReplicationAddResponse} ShardReplicationAddResponse instance + * @param {vtctldata.IValidateResponse=} [properties] Properties to set + * @returns {vtctldata.ValidateResponse} ValidateResponse instance */ - ShardReplicationAddResponse.create = function create(properties) { - return new ShardReplicationAddResponse(properties); + ValidateResponse.create = function create(properties) { + return new ValidateResponse(properties); }; /** - * Encodes the specified ShardReplicationAddResponse message. Does not implicitly {@link vtctldata.ShardReplicationAddResponse.verify|verify} messages. + * Encodes the specified ValidateResponse message. Does not implicitly {@link vtctldata.ValidateResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ShardReplicationAddResponse + * @memberof vtctldata.ValidateResponse * @static - * @param {vtctldata.IShardReplicationAddResponse} message ShardReplicationAddResponse message or plain object to encode + * @param {vtctldata.IValidateResponse} message ValidateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationAddResponse.encode = function encode(message, writer) { + ValidateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.results != null && message.results.length) + for (let i = 0; i < message.results.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); + if (message.results_by_keyspace != null && Object.hasOwnProperty.call(message, "results_by_keyspace")) + for (let keys = Object.keys(message.results_by_keyspace), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtctldata.ValidateKeyspaceResponse.encode(message.results_by_keyspace[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified ShardReplicationAddResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationAddResponse.verify|verify} messages. + * Encodes the specified ValidateResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ShardReplicationAddResponse + * @memberof vtctldata.ValidateResponse * @static - * @param {vtctldata.IShardReplicationAddResponse} message ShardReplicationAddResponse message or plain object to encode + * @param {vtctldata.IValidateResponse} message ValidateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationAddResponse.encodeDelimited = function encodeDelimited(message, writer) { + ValidateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardReplicationAddResponse message from the specified reader or buffer. + * Decodes a ValidateResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ShardReplicationAddResponse + * @memberof vtctldata.ValidateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ShardReplicationAddResponse} ShardReplicationAddResponse + * @returns {vtctldata.ValidateResponse} ValidateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationAddResponse.decode = function decode(reader, length) { + ValidateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationAddResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.results && message.results.length)) + message.results = []; + message.results.push(reader.string()); + break; + } + case 2: { + if (message.results_by_keyspace === $util.emptyObject) + message.results_by_keyspace = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.ValidateKeyspaceResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.results_by_keyspace[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -180978,111 +188873,163 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ShardReplicationAddResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ShardReplicationAddResponse + * @memberof vtctldata.ValidateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ShardReplicationAddResponse} ShardReplicationAddResponse + * @returns {vtctldata.ValidateResponse} ValidateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationAddResponse.decodeDelimited = function decodeDelimited(reader) { + ValidateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardReplicationAddResponse message. + * Verifies a ValidateResponse message. * @function verify - * @memberof vtctldata.ShardReplicationAddResponse + * @memberof vtctldata.ValidateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardReplicationAddResponse.verify = function verify(message) { + ValidateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (let i = 0; i < message.results.length; ++i) + if (!$util.isString(message.results[i])) + return "results: string[] expected"; + } + if (message.results_by_keyspace != null && message.hasOwnProperty("results_by_keyspace")) { + if (!$util.isObject(message.results_by_keyspace)) + return "results_by_keyspace: object expected"; + let key = Object.keys(message.results_by_keyspace); + for (let i = 0; i < key.length; ++i) { + let error = $root.vtctldata.ValidateKeyspaceResponse.verify(message.results_by_keyspace[key[i]]); + if (error) + return "results_by_keyspace." + error; + } + } return null; }; /** - * Creates a ShardReplicationAddResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ShardReplicationAddResponse + * @memberof vtctldata.ValidateResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ShardReplicationAddResponse} ShardReplicationAddResponse + * @returns {vtctldata.ValidateResponse} ValidateResponse */ - ShardReplicationAddResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ShardReplicationAddResponse) + ValidateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidateResponse) return object; - return new $root.vtctldata.ShardReplicationAddResponse(); + let message = new $root.vtctldata.ValidateResponse(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".vtctldata.ValidateResponse.results: array expected"); + message.results = []; + for (let i = 0; i < object.results.length; ++i) + message.results[i] = String(object.results[i]); + } + if (object.results_by_keyspace) { + if (typeof object.results_by_keyspace !== "object") + throw TypeError(".vtctldata.ValidateResponse.results_by_keyspace: object expected"); + message.results_by_keyspace = {}; + for (let keys = Object.keys(object.results_by_keyspace), i = 0; i < keys.length; ++i) { + if (typeof object.results_by_keyspace[keys[i]] !== "object") + throw TypeError(".vtctldata.ValidateResponse.results_by_keyspace: object expected"); + message.results_by_keyspace[keys[i]] = $root.vtctldata.ValidateKeyspaceResponse.fromObject(object.results_by_keyspace[keys[i]]); + } + } + return message; }; /** - * Creates a plain object from a ShardReplicationAddResponse message. Also converts values to other types if specified. + * Creates a plain object from a ValidateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ShardReplicationAddResponse + * @memberof vtctldata.ValidateResponse * @static - * @param {vtctldata.ShardReplicationAddResponse} message ShardReplicationAddResponse + * @param {vtctldata.ValidateResponse} message ValidateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardReplicationAddResponse.toObject = function toObject() { - return {}; + ValidateResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.results = []; + if (options.objects || options.defaults) + object.results_by_keyspace = {}; + if (message.results && message.results.length) { + object.results = []; + for (let j = 0; j < message.results.length; ++j) + object.results[j] = message.results[j]; + } + let keys2; + if (message.results_by_keyspace && (keys2 = Object.keys(message.results_by_keyspace)).length) { + object.results_by_keyspace = {}; + for (let j = 0; j < keys2.length; ++j) + object.results_by_keyspace[keys2[j]] = $root.vtctldata.ValidateKeyspaceResponse.toObject(message.results_by_keyspace[keys2[j]], options); + } + return object; }; /** - * Converts this ShardReplicationAddResponse to JSON. + * Converts this ValidateResponse to JSON. * @function toJSON - * @memberof vtctldata.ShardReplicationAddResponse + * @memberof vtctldata.ValidateResponse * @instance * @returns {Object.} JSON object */ - ShardReplicationAddResponse.prototype.toJSON = function toJSON() { + ValidateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardReplicationAddResponse + * Gets the default type url for ValidateResponse * @function getTypeUrl - * @memberof vtctldata.ShardReplicationAddResponse + * @memberof vtctldata.ValidateResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardReplicationAddResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ShardReplicationAddResponse"; + return typeUrlPrefix + "/vtctldata.ValidateResponse"; }; - return ShardReplicationAddResponse; + return ValidateResponse; })(); - vtctldata.ShardReplicationFixRequest = (function() { + vtctldata.ValidateKeyspaceRequest = (function() { /** - * Properties of a ShardReplicationFixRequest. + * Properties of a ValidateKeyspaceRequest. * @memberof vtctldata - * @interface IShardReplicationFixRequest - * @property {string|null} [keyspace] ShardReplicationFixRequest keyspace - * @property {string|null} [shard] ShardReplicationFixRequest shard - * @property {string|null} [cell] ShardReplicationFixRequest cell + * @interface IValidateKeyspaceRequest + * @property {string|null} [keyspace] ValidateKeyspaceRequest keyspace + * @property {boolean|null} [ping_tablets] ValidateKeyspaceRequest ping_tablets */ /** - * Constructs a new ShardReplicationFixRequest. + * Constructs a new ValidateKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents a ShardReplicationFixRequest. - * @implements IShardReplicationFixRequest + * @classdesc Represents a ValidateKeyspaceRequest. + * @implements IValidateKeyspaceRequest * @constructor - * @param {vtctldata.IShardReplicationFixRequest=} [properties] Properties to set + * @param {vtctldata.IValidateKeyspaceRequest=} [properties] Properties to set */ - function ShardReplicationFixRequest(properties) { + function ValidateKeyspaceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -181090,90 +189037,80 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ShardReplicationFixRequest keyspace. + * ValidateKeyspaceRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.ShardReplicationFixRequest - * @instance - */ - ShardReplicationFixRequest.prototype.keyspace = ""; - - /** - * ShardReplicationFixRequest shard. - * @member {string} shard - * @memberof vtctldata.ShardReplicationFixRequest + * @memberof vtctldata.ValidateKeyspaceRequest * @instance */ - ShardReplicationFixRequest.prototype.shard = ""; + ValidateKeyspaceRequest.prototype.keyspace = ""; /** - * ShardReplicationFixRequest cell. - * @member {string} cell - * @memberof vtctldata.ShardReplicationFixRequest + * ValidateKeyspaceRequest ping_tablets. + * @member {boolean} ping_tablets + * @memberof vtctldata.ValidateKeyspaceRequest * @instance */ - ShardReplicationFixRequest.prototype.cell = ""; + ValidateKeyspaceRequest.prototype.ping_tablets = false; /** - * Creates a new ShardReplicationFixRequest instance using the specified properties. + * Creates a new ValidateKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.ShardReplicationFixRequest + * @memberof vtctldata.ValidateKeyspaceRequest * @static - * @param {vtctldata.IShardReplicationFixRequest=} [properties] Properties to set - * @returns {vtctldata.ShardReplicationFixRequest} ShardReplicationFixRequest instance + * @param {vtctldata.IValidateKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.ValidateKeyspaceRequest} ValidateKeyspaceRequest instance */ - ShardReplicationFixRequest.create = function create(properties) { - return new ShardReplicationFixRequest(properties); + ValidateKeyspaceRequest.create = function create(properties) { + return new ValidateKeyspaceRequest(properties); }; /** - * Encodes the specified ShardReplicationFixRequest message. Does not implicitly {@link vtctldata.ShardReplicationFixRequest.verify|verify} messages. + * Encodes the specified ValidateKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ShardReplicationFixRequest + * @memberof vtctldata.ValidateKeyspaceRequest * @static - * @param {vtctldata.IShardReplicationFixRequest} message ShardReplicationFixRequest message or plain object to encode + * @param {vtctldata.IValidateKeyspaceRequest} message ValidateKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationFixRequest.encode = function encode(message, writer) { + ValidateKeyspaceRequest.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.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.cell); + if (message.ping_tablets != null && Object.hasOwnProperty.call(message, "ping_tablets")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.ping_tablets); return writer; }; /** - * Encodes the specified ShardReplicationFixRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationFixRequest.verify|verify} messages. + * Encodes the specified ValidateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ShardReplicationFixRequest + * @memberof vtctldata.ValidateKeyspaceRequest * @static - * @param {vtctldata.IShardReplicationFixRequest} message ShardReplicationFixRequest message or plain object to encode + * @param {vtctldata.IValidateKeyspaceRequest} message ValidateKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationFixRequest.encodeDelimited = function encodeDelimited(message, writer) { + ValidateKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardReplicationFixRequest message from the specified reader or buffer. + * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ShardReplicationFixRequest + * @memberof vtctldata.ValidateKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ShardReplicationFixRequest} ShardReplicationFixRequest + * @returns {vtctldata.ValidateKeyspaceRequest} ValidateKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationFixRequest.decode = function decode(reader, length) { + ValidateKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationFixRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateKeyspaceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -181182,11 +189119,7 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 2: { - message.shard = reader.string(); - break; - } - case 3: { - message.cell = reader.string(); + message.ping_tablets = reader.bool(); break; } default: @@ -181198,139 +189131,134 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ShardReplicationFixRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ShardReplicationFixRequest + * @memberof vtctldata.ValidateKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ShardReplicationFixRequest} ShardReplicationFixRequest + * @returns {vtctldata.ValidateKeyspaceRequest} ValidateKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationFixRequest.decodeDelimited = function decodeDelimited(reader) { + ValidateKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardReplicationFixRequest message. + * Verifies a ValidateKeyspaceRequest message. * @function verify - * @memberof vtctldata.ShardReplicationFixRequest + * @memberof vtctldata.ValidateKeyspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardReplicationFixRequest.verify = function verify(message) { + ValidateKeyspaceRequest.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.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; + if (message.ping_tablets != null && message.hasOwnProperty("ping_tablets")) + if (typeof message.ping_tablets !== "boolean") + return "ping_tablets: boolean expected"; return null; }; /** - * Creates a ShardReplicationFixRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ShardReplicationFixRequest + * @memberof vtctldata.ValidateKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ShardReplicationFixRequest} ShardReplicationFixRequest + * @returns {vtctldata.ValidateKeyspaceRequest} ValidateKeyspaceRequest */ - ShardReplicationFixRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ShardReplicationFixRequest) + ValidateKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidateKeyspaceRequest) return object; - let message = new $root.vtctldata.ShardReplicationFixRequest(); + let message = new $root.vtctldata.ValidateKeyspaceRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.cell != null) - message.cell = String(object.cell); + if (object.ping_tablets != null) + message.ping_tablets = Boolean(object.ping_tablets); return message; }; /** - * Creates a plain object from a ShardReplicationFixRequest message. Also converts values to other types if specified. + * Creates a plain object from a ValidateKeyspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ShardReplicationFixRequest + * @memberof vtctldata.ValidateKeyspaceRequest * @static - * @param {vtctldata.ShardReplicationFixRequest} message ShardReplicationFixRequest + * @param {vtctldata.ValidateKeyspaceRequest} message ValidateKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardReplicationFixRequest.toObject = function toObject(message, options) { + ValidateKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.keyspace = ""; - object.shard = ""; - object.cell = ""; + object.ping_tablets = false; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; + if (message.ping_tablets != null && message.hasOwnProperty("ping_tablets")) + object.ping_tablets = message.ping_tablets; return object; }; /** - * Converts this ShardReplicationFixRequest to JSON. + * Converts this ValidateKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.ShardReplicationFixRequest + * @memberof vtctldata.ValidateKeyspaceRequest * @instance * @returns {Object.} JSON object */ - ShardReplicationFixRequest.prototype.toJSON = function toJSON() { + ValidateKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardReplicationFixRequest + * Gets the default type url for ValidateKeyspaceRequest * @function getTypeUrl - * @memberof vtctldata.ShardReplicationFixRequest + * @memberof vtctldata.ValidateKeyspaceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardReplicationFixRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ShardReplicationFixRequest"; + return typeUrlPrefix + "/vtctldata.ValidateKeyspaceRequest"; }; - return ShardReplicationFixRequest; + return ValidateKeyspaceRequest; })(); - vtctldata.ShardReplicationFixResponse = (function() { + vtctldata.ValidateKeyspaceResponse = (function() { /** - * Properties of a ShardReplicationFixResponse. + * Properties of a ValidateKeyspaceResponse. * @memberof vtctldata - * @interface IShardReplicationFixResponse - * @property {topodata.IShardReplicationError|null} [error] ShardReplicationFixResponse error + * @interface IValidateKeyspaceResponse + * @property {Array.|null} [results] ValidateKeyspaceResponse results + * @property {Object.|null} [results_by_shard] ValidateKeyspaceResponse results_by_shard */ /** - * Constructs a new ShardReplicationFixResponse. + * Constructs a new ValidateKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents a ShardReplicationFixResponse. - * @implements IShardReplicationFixResponse + * @classdesc Represents a ValidateKeyspaceResponse. + * @implements IValidateKeyspaceResponse * @constructor - * @param {vtctldata.IShardReplicationFixResponse=} [properties] Properties to set + * @param {vtctldata.IValidateKeyspaceResponse=} [properties] Properties to set */ - function ShardReplicationFixResponse(properties) { + function ValidateKeyspaceResponse(properties) { + this.results = []; + this.results_by_shard = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -181338,75 +189266,114 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ShardReplicationFixResponse error. - * @member {topodata.IShardReplicationError|null|undefined} error - * @memberof vtctldata.ShardReplicationFixResponse + * ValidateKeyspaceResponse results. + * @member {Array.} results + * @memberof vtctldata.ValidateKeyspaceResponse * @instance */ - ShardReplicationFixResponse.prototype.error = null; + ValidateKeyspaceResponse.prototype.results = $util.emptyArray; /** - * Creates a new ShardReplicationFixResponse instance using the specified properties. + * ValidateKeyspaceResponse results_by_shard. + * @member {Object.} results_by_shard + * @memberof vtctldata.ValidateKeyspaceResponse + * @instance + */ + ValidateKeyspaceResponse.prototype.results_by_shard = $util.emptyObject; + + /** + * Creates a new ValidateKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.ShardReplicationFixResponse + * @memberof vtctldata.ValidateKeyspaceResponse * @static - * @param {vtctldata.IShardReplicationFixResponse=} [properties] Properties to set - * @returns {vtctldata.ShardReplicationFixResponse} ShardReplicationFixResponse instance + * @param {vtctldata.IValidateKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.ValidateKeyspaceResponse} ValidateKeyspaceResponse instance */ - ShardReplicationFixResponse.create = function create(properties) { - return new ShardReplicationFixResponse(properties); + ValidateKeyspaceResponse.create = function create(properties) { + return new ValidateKeyspaceResponse(properties); }; /** - * Encodes the specified ShardReplicationFixResponse message. Does not implicitly {@link vtctldata.ShardReplicationFixResponse.verify|verify} messages. + * Encodes the specified ValidateKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ShardReplicationFixResponse + * @memberof vtctldata.ValidateKeyspaceResponse * @static - * @param {vtctldata.IShardReplicationFixResponse} message ShardReplicationFixResponse message or plain object to encode + * @param {vtctldata.IValidateKeyspaceResponse} message ValidateKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationFixResponse.encode = function encode(message, writer) { + ValidateKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.topodata.ShardReplicationError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.results != null && message.results.length) + for (let i = 0; i < message.results.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); + if (message.results_by_shard != null && Object.hasOwnProperty.call(message, "results_by_shard")) + for (let keys = Object.keys(message.results_by_shard), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtctldata.ValidateShardResponse.encode(message.results_by_shard[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified ShardReplicationFixResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationFixResponse.verify|verify} messages. + * Encodes the specified ValidateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ShardReplicationFixResponse + * @memberof vtctldata.ValidateKeyspaceResponse * @static - * @param {vtctldata.IShardReplicationFixResponse} message ShardReplicationFixResponse message or plain object to encode + * @param {vtctldata.IValidateKeyspaceResponse} message ValidateKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationFixResponse.encodeDelimited = function encodeDelimited(message, writer) { + ValidateKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardReplicationFixResponse message from the specified reader or buffer. + * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ShardReplicationFixResponse + * @memberof vtctldata.ValidateKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ShardReplicationFixResponse} ShardReplicationFixResponse + * @returns {vtctldata.ValidateKeyspaceResponse} ValidateKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationFixResponse.decode = function decode(reader, length) { + ValidateKeyspaceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationFixResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateKeyspaceResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.error = $root.topodata.ShardReplicationError.decode(reader, reader.uint32()); + if (!(message.results && message.results.length)) + message.results = []; + message.results.push(reader.string()); + break; + } + case 2: { + if (message.results_by_shard === $util.emptyObject) + message.results_by_shard = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.ValidateShardResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.results_by_shard[key] = value; break; } default: @@ -181418,128 +189385,164 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ShardReplicationFixResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ShardReplicationFixResponse + * @memberof vtctldata.ValidateKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ShardReplicationFixResponse} ShardReplicationFixResponse + * @returns {vtctldata.ValidateKeyspaceResponse} ValidateKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationFixResponse.decodeDelimited = function decodeDelimited(reader) { + ValidateKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardReplicationFixResponse message. + * Verifies a ValidateKeyspaceResponse message. * @function verify - * @memberof vtctldata.ShardReplicationFixResponse + * @memberof vtctldata.ValidateKeyspaceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardReplicationFixResponse.verify = function verify(message) { + ValidateKeyspaceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - let error = $root.topodata.ShardReplicationError.verify(message.error); - if (error) - return "error." + error; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (let i = 0; i < message.results.length; ++i) + if (!$util.isString(message.results[i])) + return "results: string[] expected"; + } + if (message.results_by_shard != null && message.hasOwnProperty("results_by_shard")) { + if (!$util.isObject(message.results_by_shard)) + return "results_by_shard: object expected"; + let key = Object.keys(message.results_by_shard); + for (let i = 0; i < key.length; ++i) { + let error = $root.vtctldata.ValidateShardResponse.verify(message.results_by_shard[key[i]]); + if (error) + return "results_by_shard." + error; + } } return null; }; /** - * Creates a ShardReplicationFixResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ShardReplicationFixResponse + * @memberof vtctldata.ValidateKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ShardReplicationFixResponse} ShardReplicationFixResponse + * @returns {vtctldata.ValidateKeyspaceResponse} ValidateKeyspaceResponse */ - ShardReplicationFixResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ShardReplicationFixResponse) + ValidateKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidateKeyspaceResponse) return object; - let message = new $root.vtctldata.ShardReplicationFixResponse(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".vtctldata.ShardReplicationFixResponse.error: object expected"); - message.error = $root.topodata.ShardReplicationError.fromObject(object.error); + let message = new $root.vtctldata.ValidateKeyspaceResponse(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".vtctldata.ValidateKeyspaceResponse.results: array expected"); + message.results = []; + for (let i = 0; i < object.results.length; ++i) + message.results[i] = String(object.results[i]); + } + if (object.results_by_shard) { + if (typeof object.results_by_shard !== "object") + throw TypeError(".vtctldata.ValidateKeyspaceResponse.results_by_shard: object expected"); + message.results_by_shard = {}; + for (let keys = Object.keys(object.results_by_shard), i = 0; i < keys.length; ++i) { + if (typeof object.results_by_shard[keys[i]] !== "object") + throw TypeError(".vtctldata.ValidateKeyspaceResponse.results_by_shard: object expected"); + message.results_by_shard[keys[i]] = $root.vtctldata.ValidateShardResponse.fromObject(object.results_by_shard[keys[i]]); + } } return message; }; /** - * Creates a plain object from a ShardReplicationFixResponse message. Also converts values to other types if specified. + * Creates a plain object from a ValidateKeyspaceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ShardReplicationFixResponse + * @memberof vtctldata.ValidateKeyspaceResponse * @static - * @param {vtctldata.ShardReplicationFixResponse} message ShardReplicationFixResponse + * @param {vtctldata.ValidateKeyspaceResponse} message ValidateKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardReplicationFixResponse.toObject = function toObject(message, options) { + ValidateKeyspaceResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.error = null; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.topodata.ShardReplicationError.toObject(message.error, options); + if (options.arrays || options.defaults) + object.results = []; + if (options.objects || options.defaults) + object.results_by_shard = {}; + if (message.results && message.results.length) { + object.results = []; + for (let j = 0; j < message.results.length; ++j) + object.results[j] = message.results[j]; + } + let keys2; + if (message.results_by_shard && (keys2 = Object.keys(message.results_by_shard)).length) { + object.results_by_shard = {}; + for (let j = 0; j < keys2.length; ++j) + object.results_by_shard[keys2[j]] = $root.vtctldata.ValidateShardResponse.toObject(message.results_by_shard[keys2[j]], options); + } return object; }; /** - * Converts this ShardReplicationFixResponse to JSON. + * Converts this ValidateKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.ShardReplicationFixResponse + * @memberof vtctldata.ValidateKeyspaceResponse * @instance * @returns {Object.} JSON object */ - ShardReplicationFixResponse.prototype.toJSON = function toJSON() { + ValidateKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardReplicationFixResponse + * Gets the default type url for ValidateKeyspaceResponse * @function getTypeUrl - * @memberof vtctldata.ShardReplicationFixResponse + * @memberof vtctldata.ValidateKeyspaceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardReplicationFixResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ShardReplicationFixResponse"; + return typeUrlPrefix + "/vtctldata.ValidateKeyspaceResponse"; }; - return ShardReplicationFixResponse; + return ValidateKeyspaceResponse; })(); - vtctldata.ShardReplicationPositionsRequest = (function() { + vtctldata.ValidatePermissionsKeyspaceRequest = (function() { /** - * Properties of a ShardReplicationPositionsRequest. + * Properties of a ValidatePermissionsKeyspaceRequest. * @memberof vtctldata - * @interface IShardReplicationPositionsRequest - * @property {string|null} [keyspace] ShardReplicationPositionsRequest keyspace - * @property {string|null} [shard] ShardReplicationPositionsRequest shard + * @interface IValidatePermissionsKeyspaceRequest + * @property {string|null} [keyspace] ValidatePermissionsKeyspaceRequest keyspace + * @property {Array.|null} [shards] ValidatePermissionsKeyspaceRequest shards */ /** - * Constructs a new ShardReplicationPositionsRequest. + * Constructs a new ValidatePermissionsKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents a ShardReplicationPositionsRequest. - * @implements IShardReplicationPositionsRequest + * @classdesc Represents a ValidatePermissionsKeyspaceRequest. + * @implements IValidatePermissionsKeyspaceRequest * @constructor - * @param {vtctldata.IShardReplicationPositionsRequest=} [properties] Properties to set + * @param {vtctldata.IValidatePermissionsKeyspaceRequest=} [properties] Properties to set */ - function ShardReplicationPositionsRequest(properties) { + function ValidatePermissionsKeyspaceRequest(properties) { + this.shards = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -181547,80 +189550,81 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ShardReplicationPositionsRequest keyspace. + * ValidatePermissionsKeyspaceRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.ShardReplicationPositionsRequest + * @memberof vtctldata.ValidatePermissionsKeyspaceRequest * @instance */ - ShardReplicationPositionsRequest.prototype.keyspace = ""; + ValidatePermissionsKeyspaceRequest.prototype.keyspace = ""; /** - * ShardReplicationPositionsRequest shard. - * @member {string} shard - * @memberof vtctldata.ShardReplicationPositionsRequest + * ValidatePermissionsKeyspaceRequest shards. + * @member {Array.} shards + * @memberof vtctldata.ValidatePermissionsKeyspaceRequest * @instance */ - ShardReplicationPositionsRequest.prototype.shard = ""; + ValidatePermissionsKeyspaceRequest.prototype.shards = $util.emptyArray; /** - * Creates a new ShardReplicationPositionsRequest instance using the specified properties. + * Creates a new ValidatePermissionsKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.ShardReplicationPositionsRequest + * @memberof vtctldata.ValidatePermissionsKeyspaceRequest * @static - * @param {vtctldata.IShardReplicationPositionsRequest=} [properties] Properties to set - * @returns {vtctldata.ShardReplicationPositionsRequest} ShardReplicationPositionsRequest instance + * @param {vtctldata.IValidatePermissionsKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.ValidatePermissionsKeyspaceRequest} ValidatePermissionsKeyspaceRequest instance */ - ShardReplicationPositionsRequest.create = function create(properties) { - return new ShardReplicationPositionsRequest(properties); + ValidatePermissionsKeyspaceRequest.create = function create(properties) { + return new ValidatePermissionsKeyspaceRequest(properties); }; /** - * Encodes the specified ShardReplicationPositionsRequest message. Does not implicitly {@link vtctldata.ShardReplicationPositionsRequest.verify|verify} messages. + * Encodes the specified ValidatePermissionsKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ShardReplicationPositionsRequest + * @memberof vtctldata.ValidatePermissionsKeyspaceRequest * @static - * @param {vtctldata.IShardReplicationPositionsRequest} message ShardReplicationPositionsRequest message or plain object to encode + * @param {vtctldata.IValidatePermissionsKeyspaceRequest} message ValidatePermissionsKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationPositionsRequest.encode = function encode(message, writer) { + ValidatePermissionsKeyspaceRequest.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.shards != null && message.shards.length) + for (let i = 0; i < message.shards.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shards[i]); return writer; }; /** - * Encodes the specified ShardReplicationPositionsRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationPositionsRequest.verify|verify} messages. + * Encodes the specified ValidatePermissionsKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ShardReplicationPositionsRequest + * @memberof vtctldata.ValidatePermissionsKeyspaceRequest * @static - * @param {vtctldata.IShardReplicationPositionsRequest} message ShardReplicationPositionsRequest message or plain object to encode + * @param {vtctldata.IValidatePermissionsKeyspaceRequest} message ValidatePermissionsKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationPositionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ValidatePermissionsKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer. + * Decodes a ValidatePermissionsKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ShardReplicationPositionsRequest + * @memberof vtctldata.ValidatePermissionsKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ShardReplicationPositionsRequest} ShardReplicationPositionsRequest + * @returns {vtctldata.ValidatePermissionsKeyspaceRequest} ValidatePermissionsKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationPositionsRequest.decode = function decode(reader, length) { + ValidatePermissionsKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationPositionsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidatePermissionsKeyspaceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -181629,7 +189633,9 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 2: { - message.shard = reader.string(); + if (!(message.shards && message.shards.length)) + message.shards = []; + message.shards.push(reader.string()); break; } default: @@ -181641,134 +189647,142 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidatePermissionsKeyspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ShardReplicationPositionsRequest + * @memberof vtctldata.ValidatePermissionsKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ShardReplicationPositionsRequest} ShardReplicationPositionsRequest + * @returns {vtctldata.ValidatePermissionsKeyspaceRequest} ValidatePermissionsKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationPositionsRequest.decodeDelimited = function decodeDelimited(reader) { + ValidatePermissionsKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardReplicationPositionsRequest message. + * Verifies a ValidatePermissionsKeyspaceRequest message. * @function verify - * @memberof vtctldata.ShardReplicationPositionsRequest + * @memberof vtctldata.ValidatePermissionsKeyspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardReplicationPositionsRequest.verify = function verify(message) { + ValidatePermissionsKeyspaceRequest.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.shards != null && message.hasOwnProperty("shards")) { + if (!Array.isArray(message.shards)) + return "shards: array expected"; + for (let i = 0; i < message.shards.length; ++i) + if (!$util.isString(message.shards[i])) + return "shards: string[] expected"; + } return null; }; /** - * Creates a ShardReplicationPositionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidatePermissionsKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ShardReplicationPositionsRequest + * @memberof vtctldata.ValidatePermissionsKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ShardReplicationPositionsRequest} ShardReplicationPositionsRequest + * @returns {vtctldata.ValidatePermissionsKeyspaceRequest} ValidatePermissionsKeyspaceRequest */ - ShardReplicationPositionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ShardReplicationPositionsRequest) + ValidatePermissionsKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidatePermissionsKeyspaceRequest) return object; - let message = new $root.vtctldata.ShardReplicationPositionsRequest(); + let message = new $root.vtctldata.ValidatePermissionsKeyspaceRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".vtctldata.ValidatePermissionsKeyspaceRequest.shards: array expected"); + message.shards = []; + for (let i = 0; i < object.shards.length; ++i) + message.shards[i] = String(object.shards[i]); + } return message; }; /** - * Creates a plain object from a ShardReplicationPositionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ValidatePermissionsKeyspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ShardReplicationPositionsRequest + * @memberof vtctldata.ValidatePermissionsKeyspaceRequest * @static - * @param {vtctldata.ShardReplicationPositionsRequest} message ShardReplicationPositionsRequest + * @param {vtctldata.ValidatePermissionsKeyspaceRequest} message ValidatePermissionsKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardReplicationPositionsRequest.toObject = function toObject(message, options) { + ValidatePermissionsKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { + if (options.arrays || options.defaults) + object.shards = []; + if (options.defaults) object.keyspace = ""; - object.shard = ""; - } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; + if (message.shards && message.shards.length) { + object.shards = []; + for (let j = 0; j < message.shards.length; ++j) + object.shards[j] = message.shards[j]; + } return object; }; /** - * Converts this ShardReplicationPositionsRequest to JSON. + * Converts this ValidatePermissionsKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.ShardReplicationPositionsRequest + * @memberof vtctldata.ValidatePermissionsKeyspaceRequest * @instance * @returns {Object.} JSON object */ - ShardReplicationPositionsRequest.prototype.toJSON = function toJSON() { + ValidatePermissionsKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardReplicationPositionsRequest + * Gets the default type url for ValidatePermissionsKeyspaceRequest * @function getTypeUrl - * @memberof vtctldata.ShardReplicationPositionsRequest + * @memberof vtctldata.ValidatePermissionsKeyspaceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardReplicationPositionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidatePermissionsKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ShardReplicationPositionsRequest"; + return typeUrlPrefix + "/vtctldata.ValidatePermissionsKeyspaceRequest"; }; - return ShardReplicationPositionsRequest; + return ValidatePermissionsKeyspaceRequest; })(); - vtctldata.ShardReplicationPositionsResponse = (function() { + vtctldata.ValidatePermissionsKeyspaceResponse = (function() { /** - * Properties of a ShardReplicationPositionsResponse. + * Properties of a ValidatePermissionsKeyspaceResponse. * @memberof vtctldata - * @interface IShardReplicationPositionsResponse - * @property {Object.|null} [replication_statuses] ShardReplicationPositionsResponse replication_statuses - * @property {Object.|null} [tablet_map] ShardReplicationPositionsResponse tablet_map + * @interface IValidatePermissionsKeyspaceResponse */ /** - * Constructs a new ShardReplicationPositionsResponse. + * Constructs a new ValidatePermissionsKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents a ShardReplicationPositionsResponse. - * @implements IShardReplicationPositionsResponse + * @classdesc Represents a ValidatePermissionsKeyspaceResponse. + * @implements IValidatePermissionsKeyspaceResponse * @constructor - * @param {vtctldata.IShardReplicationPositionsResponse=} [properties] Properties to set + * @param {vtctldata.IValidatePermissionsKeyspaceResponse=} [properties] Properties to set */ - function ShardReplicationPositionsResponse(properties) { - this.replication_statuses = {}; - this.tablet_map = {}; + function ValidatePermissionsKeyspaceResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -181776,135 +189790,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ShardReplicationPositionsResponse replication_statuses. - * @member {Object.} replication_statuses - * @memberof vtctldata.ShardReplicationPositionsResponse - * @instance - */ - ShardReplicationPositionsResponse.prototype.replication_statuses = $util.emptyObject; - - /** - * ShardReplicationPositionsResponse tablet_map. - * @member {Object.} tablet_map - * @memberof vtctldata.ShardReplicationPositionsResponse - * @instance - */ - ShardReplicationPositionsResponse.prototype.tablet_map = $util.emptyObject; - - /** - * Creates a new ShardReplicationPositionsResponse instance using the specified properties. + * Creates a new ValidatePermissionsKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.ShardReplicationPositionsResponse + * @memberof vtctldata.ValidatePermissionsKeyspaceResponse * @static - * @param {vtctldata.IShardReplicationPositionsResponse=} [properties] Properties to set - * @returns {vtctldata.ShardReplicationPositionsResponse} ShardReplicationPositionsResponse instance + * @param {vtctldata.IValidatePermissionsKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.ValidatePermissionsKeyspaceResponse} ValidatePermissionsKeyspaceResponse instance */ - ShardReplicationPositionsResponse.create = function create(properties) { - return new ShardReplicationPositionsResponse(properties); + ValidatePermissionsKeyspaceResponse.create = function create(properties) { + return new ValidatePermissionsKeyspaceResponse(properties); }; /** - * Encodes the specified ShardReplicationPositionsResponse message. Does not implicitly {@link vtctldata.ShardReplicationPositionsResponse.verify|verify} messages. + * Encodes the specified ValidatePermissionsKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ShardReplicationPositionsResponse + * @memberof vtctldata.ValidatePermissionsKeyspaceResponse * @static - * @param {vtctldata.IShardReplicationPositionsResponse} message ShardReplicationPositionsResponse message or plain object to encode + * @param {vtctldata.IValidatePermissionsKeyspaceResponse} message ValidatePermissionsKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationPositionsResponse.encode = function encode(message, writer) { + ValidatePermissionsKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.replication_statuses != null && Object.hasOwnProperty.call(message, "replication_statuses")) - for (let keys = Object.keys(message.replication_statuses), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.replicationdata.Status.encode(message.replication_statuses[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.tablet_map != null && Object.hasOwnProperty.call(message, "tablet_map")) - for (let keys = Object.keys(message.tablet_map), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.topodata.Tablet.encode(message.tablet_map[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } return writer; }; /** - * Encodes the specified ShardReplicationPositionsResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationPositionsResponse.verify|verify} messages. + * Encodes the specified ValidatePermissionsKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ShardReplicationPositionsResponse + * @memberof vtctldata.ValidatePermissionsKeyspaceResponse * @static - * @param {vtctldata.IShardReplicationPositionsResponse} message ShardReplicationPositionsResponse message or plain object to encode + * @param {vtctldata.IValidatePermissionsKeyspaceResponse} message ValidatePermissionsKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationPositionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ValidatePermissionsKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer. + * Decodes a ValidatePermissionsKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ShardReplicationPositionsResponse + * @memberof vtctldata.ValidatePermissionsKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ShardReplicationPositionsResponse} ShardReplicationPositionsResponse + * @returns {vtctldata.ValidatePermissionsKeyspaceResponse} ValidatePermissionsKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationPositionsResponse.decode = function decode(reader, length) { + ValidatePermissionsKeyspaceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationPositionsResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidatePermissionsKeyspaceResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (message.replication_statuses === $util.emptyObject) - message.replication_statuses = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.replicationdata.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.replication_statuses[key] = value; - break; - } - case 2: { - if (message.tablet_map === $util.emptyObject) - message.tablet_map = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.topodata.Tablet.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.tablet_map[key] = value; - break; - } default: reader.skipType(tag & 7); break; @@ -181914,170 +189856,116 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidatePermissionsKeyspaceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ShardReplicationPositionsResponse + * @memberof vtctldata.ValidatePermissionsKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ShardReplicationPositionsResponse} ShardReplicationPositionsResponse + * @returns {vtctldata.ValidatePermissionsKeyspaceResponse} ValidatePermissionsKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationPositionsResponse.decodeDelimited = function decodeDelimited(reader) { + ValidatePermissionsKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardReplicationPositionsResponse message. + * Verifies a ValidatePermissionsKeyspaceResponse message. * @function verify - * @memberof vtctldata.ShardReplicationPositionsResponse + * @memberof vtctldata.ValidatePermissionsKeyspaceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardReplicationPositionsResponse.verify = function verify(message) { + ValidatePermissionsKeyspaceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.replication_statuses != null && message.hasOwnProperty("replication_statuses")) { - if (!$util.isObject(message.replication_statuses)) - return "replication_statuses: object expected"; - let key = Object.keys(message.replication_statuses); - for (let i = 0; i < key.length; ++i) { - let error = $root.replicationdata.Status.verify(message.replication_statuses[key[i]]); - if (error) - return "replication_statuses." + error; - } - } - if (message.tablet_map != null && message.hasOwnProperty("tablet_map")) { - if (!$util.isObject(message.tablet_map)) - return "tablet_map: object expected"; - let key = Object.keys(message.tablet_map); - for (let i = 0; i < key.length; ++i) { - let error = $root.topodata.Tablet.verify(message.tablet_map[key[i]]); - if (error) - return "tablet_map." + error; - } - } return null; }; /** - * Creates a ShardReplicationPositionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidatePermissionsKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ShardReplicationPositionsResponse + * @memberof vtctldata.ValidatePermissionsKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ShardReplicationPositionsResponse} ShardReplicationPositionsResponse + * @returns {vtctldata.ValidatePermissionsKeyspaceResponse} ValidatePermissionsKeyspaceResponse */ - ShardReplicationPositionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ShardReplicationPositionsResponse) + ValidatePermissionsKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidatePermissionsKeyspaceResponse) return object; - let message = new $root.vtctldata.ShardReplicationPositionsResponse(); - if (object.replication_statuses) { - if (typeof object.replication_statuses !== "object") - throw TypeError(".vtctldata.ShardReplicationPositionsResponse.replication_statuses: object expected"); - message.replication_statuses = {}; - for (let keys = Object.keys(object.replication_statuses), i = 0; i < keys.length; ++i) { - if (typeof object.replication_statuses[keys[i]] !== "object") - throw TypeError(".vtctldata.ShardReplicationPositionsResponse.replication_statuses: object expected"); - message.replication_statuses[keys[i]] = $root.replicationdata.Status.fromObject(object.replication_statuses[keys[i]]); - } - } - if (object.tablet_map) { - if (typeof object.tablet_map !== "object") - throw TypeError(".vtctldata.ShardReplicationPositionsResponse.tablet_map: object expected"); - message.tablet_map = {}; - for (let keys = Object.keys(object.tablet_map), i = 0; i < keys.length; ++i) { - if (typeof object.tablet_map[keys[i]] !== "object") - throw TypeError(".vtctldata.ShardReplicationPositionsResponse.tablet_map: object expected"); - message.tablet_map[keys[i]] = $root.topodata.Tablet.fromObject(object.tablet_map[keys[i]]); - } - } - return message; + return new $root.vtctldata.ValidatePermissionsKeyspaceResponse(); }; /** - * Creates a plain object from a ShardReplicationPositionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ValidatePermissionsKeyspaceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ShardReplicationPositionsResponse + * @memberof vtctldata.ValidatePermissionsKeyspaceResponse * @static - * @param {vtctldata.ShardReplicationPositionsResponse} message ShardReplicationPositionsResponse + * @param {vtctldata.ValidatePermissionsKeyspaceResponse} message ValidatePermissionsKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardReplicationPositionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.objects || options.defaults) { - object.replication_statuses = {}; - object.tablet_map = {}; - } - let keys2; - if (message.replication_statuses && (keys2 = Object.keys(message.replication_statuses)).length) { - object.replication_statuses = {}; - for (let j = 0; j < keys2.length; ++j) - object.replication_statuses[keys2[j]] = $root.replicationdata.Status.toObject(message.replication_statuses[keys2[j]], options); - } - if (message.tablet_map && (keys2 = Object.keys(message.tablet_map)).length) { - object.tablet_map = {}; - for (let j = 0; j < keys2.length; ++j) - object.tablet_map[keys2[j]] = $root.topodata.Tablet.toObject(message.tablet_map[keys2[j]], options); - } - return object; + ValidatePermissionsKeyspaceResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ShardReplicationPositionsResponse to JSON. + * Converts this ValidatePermissionsKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.ShardReplicationPositionsResponse + * @memberof vtctldata.ValidatePermissionsKeyspaceResponse * @instance * @returns {Object.} JSON object */ - ShardReplicationPositionsResponse.prototype.toJSON = function toJSON() { + ValidatePermissionsKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardReplicationPositionsResponse + * Gets the default type url for ValidatePermissionsKeyspaceResponse * @function getTypeUrl - * @memberof vtctldata.ShardReplicationPositionsResponse + * @memberof vtctldata.ValidatePermissionsKeyspaceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardReplicationPositionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidatePermissionsKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ShardReplicationPositionsResponse"; + return typeUrlPrefix + "/vtctldata.ValidatePermissionsKeyspaceResponse"; }; - return ShardReplicationPositionsResponse; + return ValidatePermissionsKeyspaceResponse; })(); - vtctldata.ShardReplicationRemoveRequest = (function() { + vtctldata.ValidateSchemaKeyspaceRequest = (function() { /** - * Properties of a ShardReplicationRemoveRequest. + * Properties of a ValidateSchemaKeyspaceRequest. * @memberof vtctldata - * @interface IShardReplicationRemoveRequest - * @property {string|null} [keyspace] ShardReplicationRemoveRequest keyspace - * @property {string|null} [shard] ShardReplicationRemoveRequest shard - * @property {topodata.ITabletAlias|null} [tablet_alias] ShardReplicationRemoveRequest tablet_alias + * @interface IValidateSchemaKeyspaceRequest + * @property {string|null} [keyspace] ValidateSchemaKeyspaceRequest keyspace + * @property {Array.|null} [exclude_tables] ValidateSchemaKeyspaceRequest exclude_tables + * @property {boolean|null} [include_views] ValidateSchemaKeyspaceRequest include_views + * @property {boolean|null} [skip_no_primary] ValidateSchemaKeyspaceRequest skip_no_primary + * @property {boolean|null} [include_vschema] ValidateSchemaKeyspaceRequest include_vschema + * @property {Array.|null} [shards] ValidateSchemaKeyspaceRequest shards */ /** - * Constructs a new ShardReplicationRemoveRequest. + * Constructs a new ValidateSchemaKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents a ShardReplicationRemoveRequest. - * @implements IShardReplicationRemoveRequest + * @classdesc Represents a ValidateSchemaKeyspaceRequest. + * @implements IValidateSchemaKeyspaceRequest * @constructor - * @param {vtctldata.IShardReplicationRemoveRequest=} [properties] Properties to set + * @param {vtctldata.IValidateSchemaKeyspaceRequest=} [properties] Properties to set */ - function ShardReplicationRemoveRequest(properties) { + function ValidateSchemaKeyspaceRequest(properties) { + this.exclude_tables = []; + this.shards = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -182085,90 +189973,122 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ShardReplicationRemoveRequest keyspace. + * ValidateSchemaKeyspaceRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.ShardReplicationRemoveRequest + * @memberof vtctldata.ValidateSchemaKeyspaceRequest * @instance */ - ShardReplicationRemoveRequest.prototype.keyspace = ""; + ValidateSchemaKeyspaceRequest.prototype.keyspace = ""; /** - * ShardReplicationRemoveRequest shard. - * @member {string} shard - * @memberof vtctldata.ShardReplicationRemoveRequest + * ValidateSchemaKeyspaceRequest exclude_tables. + * @member {Array.} exclude_tables + * @memberof vtctldata.ValidateSchemaKeyspaceRequest * @instance */ - ShardReplicationRemoveRequest.prototype.shard = ""; + ValidateSchemaKeyspaceRequest.prototype.exclude_tables = $util.emptyArray; /** - * ShardReplicationRemoveRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.ShardReplicationRemoveRequest + * ValidateSchemaKeyspaceRequest include_views. + * @member {boolean} include_views + * @memberof vtctldata.ValidateSchemaKeyspaceRequest * @instance */ - ShardReplicationRemoveRequest.prototype.tablet_alias = null; + ValidateSchemaKeyspaceRequest.prototype.include_views = false; /** - * Creates a new ShardReplicationRemoveRequest instance using the specified properties. + * ValidateSchemaKeyspaceRequest skip_no_primary. + * @member {boolean} skip_no_primary + * @memberof vtctldata.ValidateSchemaKeyspaceRequest + * @instance + */ + ValidateSchemaKeyspaceRequest.prototype.skip_no_primary = false; + + /** + * ValidateSchemaKeyspaceRequest include_vschema. + * @member {boolean} include_vschema + * @memberof vtctldata.ValidateSchemaKeyspaceRequest + * @instance + */ + ValidateSchemaKeyspaceRequest.prototype.include_vschema = false; + + /** + * ValidateSchemaKeyspaceRequest shards. + * @member {Array.} shards + * @memberof vtctldata.ValidateSchemaKeyspaceRequest + * @instance + */ + ValidateSchemaKeyspaceRequest.prototype.shards = $util.emptyArray; + + /** + * Creates a new ValidateSchemaKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.ShardReplicationRemoveRequest + * @memberof vtctldata.ValidateSchemaKeyspaceRequest * @static - * @param {vtctldata.IShardReplicationRemoveRequest=} [properties] Properties to set - * @returns {vtctldata.ShardReplicationRemoveRequest} ShardReplicationRemoveRequest instance + * @param {vtctldata.IValidateSchemaKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.ValidateSchemaKeyspaceRequest} ValidateSchemaKeyspaceRequest instance */ - ShardReplicationRemoveRequest.create = function create(properties) { - return new ShardReplicationRemoveRequest(properties); + ValidateSchemaKeyspaceRequest.create = function create(properties) { + return new ValidateSchemaKeyspaceRequest(properties); }; /** - * Encodes the specified ShardReplicationRemoveRequest message. Does not implicitly {@link vtctldata.ShardReplicationRemoveRequest.verify|verify} messages. + * Encodes the specified ValidateSchemaKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ShardReplicationRemoveRequest + * @memberof vtctldata.ValidateSchemaKeyspaceRequest * @static - * @param {vtctldata.IShardReplicationRemoveRequest} message ShardReplicationRemoveRequest message or plain object to encode + * @param {vtctldata.IValidateSchemaKeyspaceRequest} message ValidateSchemaKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationRemoveRequest.encode = function encode(message, writer) { + ValidateSchemaKeyspaceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.exclude_tables != null && message.exclude_tables.length) + for (let i = 0; i < message.exclude_tables.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.exclude_tables[i]); + if (message.include_views != null && Object.hasOwnProperty.call(message, "include_views")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.include_views); + if (message.skip_no_primary != null && Object.hasOwnProperty.call(message, "skip_no_primary")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.skip_no_primary); + if (message.include_vschema != null && Object.hasOwnProperty.call(message, "include_vschema")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.include_vschema); + if (message.shards != null && message.shards.length) + for (let i = 0; i < message.shards.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.shards[i]); return writer; }; /** - * Encodes the specified ShardReplicationRemoveRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationRemoveRequest.verify|verify} messages. + * Encodes the specified ValidateSchemaKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ShardReplicationRemoveRequest + * @memberof vtctldata.ValidateSchemaKeyspaceRequest * @static - * @param {vtctldata.IShardReplicationRemoveRequest} message ShardReplicationRemoveRequest message or plain object to encode + * @param {vtctldata.IValidateSchemaKeyspaceRequest} message ValidateSchemaKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) { + ValidateSchemaKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer. + * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ShardReplicationRemoveRequest + * @memberof vtctldata.ValidateSchemaKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ShardReplicationRemoveRequest} ShardReplicationRemoveRequest + * @returns {vtctldata.ValidateSchemaKeyspaceRequest} ValidateSchemaKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationRemoveRequest.decode = function decode(reader, length) { + ValidateSchemaKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationRemoveRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateSchemaKeyspaceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -182177,11 +190097,27 @@ export const vtctldata = $root.vtctldata = (() => { break; } case 2: { - message.shard = reader.string(); + if (!(message.exclude_tables && message.exclude_tables.length)) + message.exclude_tables = []; + message.exclude_tables.push(reader.string()); break; } case 3: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.include_views = reader.bool(); + break; + } + case 4: { + message.skip_no_primary = reader.bool(); + break; + } + case 5: { + message.include_vschema = reader.bool(); + break; + } + case 6: { + if (!(message.shards && message.shards.length)) + message.shards = []; + message.shards.push(reader.string()); break; } default: @@ -182193,143 +190129,192 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ShardReplicationRemoveRequest + * @memberof vtctldata.ValidateSchemaKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ShardReplicationRemoveRequest} ShardReplicationRemoveRequest + * @returns {vtctldata.ValidateSchemaKeyspaceRequest} ValidateSchemaKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationRemoveRequest.decodeDelimited = function decodeDelimited(reader) { + ValidateSchemaKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardReplicationRemoveRequest message. + * Verifies a ValidateSchemaKeyspaceRequest message. * @function verify - * @memberof vtctldata.ShardReplicationRemoveRequest + * @memberof vtctldata.ValidateSchemaKeyspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardReplicationRemoveRequest.verify = function verify(message) { + ValidateSchemaKeyspaceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) if (!$util.isString(message.keyspace)) return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; + if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { + if (!Array.isArray(message.exclude_tables)) + return "exclude_tables: array expected"; + for (let i = 0; i < message.exclude_tables.length; ++i) + if (!$util.isString(message.exclude_tables[i])) + return "exclude_tables: string[] expected"; + } + if (message.include_views != null && message.hasOwnProperty("include_views")) + if (typeof message.include_views !== "boolean") + return "include_views: boolean expected"; + if (message.skip_no_primary != null && message.hasOwnProperty("skip_no_primary")) + if (typeof message.skip_no_primary !== "boolean") + return "skip_no_primary: boolean expected"; + if (message.include_vschema != null && message.hasOwnProperty("include_vschema")) + if (typeof message.include_vschema !== "boolean") + return "include_vschema: boolean expected"; + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!Array.isArray(message.shards)) + return "shards: array expected"; + for (let i = 0; i < message.shards.length; ++i) + if (!$util.isString(message.shards[i])) + return "shards: string[] expected"; } return null; }; /** - * Creates a ShardReplicationRemoveRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ShardReplicationRemoveRequest + * @memberof vtctldata.ValidateSchemaKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ShardReplicationRemoveRequest} ShardReplicationRemoveRequest + * @returns {vtctldata.ValidateSchemaKeyspaceRequest} ValidateSchemaKeyspaceRequest */ - ShardReplicationRemoveRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ShardReplicationRemoveRequest) + ValidateSchemaKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidateSchemaKeyspaceRequest) return object; - let message = new $root.vtctldata.ShardReplicationRemoveRequest(); + let message = new $root.vtctldata.ValidateSchemaKeyspaceRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.ShardReplicationRemoveRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + if (object.exclude_tables) { + if (!Array.isArray(object.exclude_tables)) + throw TypeError(".vtctldata.ValidateSchemaKeyspaceRequest.exclude_tables: array expected"); + message.exclude_tables = []; + for (let i = 0; i < object.exclude_tables.length; ++i) + message.exclude_tables[i] = String(object.exclude_tables[i]); + } + if (object.include_views != null) + message.include_views = Boolean(object.include_views); + if (object.skip_no_primary != null) + message.skip_no_primary = Boolean(object.skip_no_primary); + if (object.include_vschema != null) + message.include_vschema = Boolean(object.include_vschema); + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".vtctldata.ValidateSchemaKeyspaceRequest.shards: array expected"); + message.shards = []; + for (let i = 0; i < object.shards.length; ++i) + message.shards[i] = String(object.shards[i]); } return message; }; /** - * Creates a plain object from a ShardReplicationRemoveRequest message. Also converts values to other types if specified. + * Creates a plain object from a ValidateSchemaKeyspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ShardReplicationRemoveRequest + * @memberof vtctldata.ValidateSchemaKeyspaceRequest * @static - * @param {vtctldata.ShardReplicationRemoveRequest} message ShardReplicationRemoveRequest + * @param {vtctldata.ValidateSchemaKeyspaceRequest} message ValidateSchemaKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardReplicationRemoveRequest.toObject = function toObject(message, options) { + ValidateSchemaKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.exclude_tables = []; + object.shards = []; + } if (options.defaults) { object.keyspace = ""; - object.shard = ""; - object.tablet_alias = null; + object.include_views = false; + object.skip_no_primary = false; + object.include_vschema = false; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.exclude_tables && message.exclude_tables.length) { + object.exclude_tables = []; + for (let j = 0; j < message.exclude_tables.length; ++j) + object.exclude_tables[j] = message.exclude_tables[j]; + } + if (message.include_views != null && message.hasOwnProperty("include_views")) + object.include_views = message.include_views; + if (message.skip_no_primary != null && message.hasOwnProperty("skip_no_primary")) + object.skip_no_primary = message.skip_no_primary; + if (message.include_vschema != null && message.hasOwnProperty("include_vschema")) + object.include_vschema = message.include_vschema; + if (message.shards && message.shards.length) { + object.shards = []; + for (let j = 0; j < message.shards.length; ++j) + object.shards[j] = message.shards[j]; + } return object; }; /** - * Converts this ShardReplicationRemoveRequest to JSON. + * Converts this ValidateSchemaKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.ShardReplicationRemoveRequest + * @memberof vtctldata.ValidateSchemaKeyspaceRequest * @instance * @returns {Object.} JSON object */ - ShardReplicationRemoveRequest.prototype.toJSON = function toJSON() { + ValidateSchemaKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardReplicationRemoveRequest + * Gets the default type url for ValidateSchemaKeyspaceRequest * @function getTypeUrl - * @memberof vtctldata.ShardReplicationRemoveRequest + * @memberof vtctldata.ValidateSchemaKeyspaceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardReplicationRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateSchemaKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ShardReplicationRemoveRequest"; + return typeUrlPrefix + "/vtctldata.ValidateSchemaKeyspaceRequest"; }; - return ShardReplicationRemoveRequest; + return ValidateSchemaKeyspaceRequest; })(); - vtctldata.ShardReplicationRemoveResponse = (function() { + vtctldata.ValidateSchemaKeyspaceResponse = (function() { /** - * Properties of a ShardReplicationRemoveResponse. + * Properties of a ValidateSchemaKeyspaceResponse. * @memberof vtctldata - * @interface IShardReplicationRemoveResponse + * @interface IValidateSchemaKeyspaceResponse + * @property {Array.|null} [results] ValidateSchemaKeyspaceResponse results + * @property {Object.|null} [results_by_shard] ValidateSchemaKeyspaceResponse results_by_shard */ /** - * Constructs a new ShardReplicationRemoveResponse. + * Constructs a new ValidateSchemaKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents a ShardReplicationRemoveResponse. - * @implements IShardReplicationRemoveResponse + * @classdesc Represents a ValidateSchemaKeyspaceResponse. + * @implements IValidateSchemaKeyspaceResponse * @constructor - * @param {vtctldata.IShardReplicationRemoveResponse=} [properties] Properties to set + * @param {vtctldata.IValidateSchemaKeyspaceResponse=} [properties] Properties to set */ - function ShardReplicationRemoveResponse(properties) { + function ValidateSchemaKeyspaceResponse(properties) { + this.results = []; + this.results_by_shard = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -182337,63 +190322,116 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new ShardReplicationRemoveResponse instance using the specified properties. + * ValidateSchemaKeyspaceResponse results. + * @member {Array.} results + * @memberof vtctldata.ValidateSchemaKeyspaceResponse + * @instance + */ + ValidateSchemaKeyspaceResponse.prototype.results = $util.emptyArray; + + /** + * ValidateSchemaKeyspaceResponse results_by_shard. + * @member {Object.} results_by_shard + * @memberof vtctldata.ValidateSchemaKeyspaceResponse + * @instance + */ + ValidateSchemaKeyspaceResponse.prototype.results_by_shard = $util.emptyObject; + + /** + * Creates a new ValidateSchemaKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.ShardReplicationRemoveResponse + * @memberof vtctldata.ValidateSchemaKeyspaceResponse * @static - * @param {vtctldata.IShardReplicationRemoveResponse=} [properties] Properties to set - * @returns {vtctldata.ShardReplicationRemoveResponse} ShardReplicationRemoveResponse instance + * @param {vtctldata.IValidateSchemaKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.ValidateSchemaKeyspaceResponse} ValidateSchemaKeyspaceResponse instance */ - ShardReplicationRemoveResponse.create = function create(properties) { - return new ShardReplicationRemoveResponse(properties); + ValidateSchemaKeyspaceResponse.create = function create(properties) { + return new ValidateSchemaKeyspaceResponse(properties); }; /** - * Encodes the specified ShardReplicationRemoveResponse message. Does not implicitly {@link vtctldata.ShardReplicationRemoveResponse.verify|verify} messages. + * Encodes the specified ValidateSchemaKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ShardReplicationRemoveResponse + * @memberof vtctldata.ValidateSchemaKeyspaceResponse * @static - * @param {vtctldata.IShardReplicationRemoveResponse} message ShardReplicationRemoveResponse message or plain object to encode + * @param {vtctldata.IValidateSchemaKeyspaceResponse} message ValidateSchemaKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationRemoveResponse.encode = function encode(message, writer) { + ValidateSchemaKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.results != null && message.results.length) + for (let i = 0; i < message.results.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); + if (message.results_by_shard != null && Object.hasOwnProperty.call(message, "results_by_shard")) + for (let keys = Object.keys(message.results_by_shard), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtctldata.ValidateShardResponse.encode(message.results_by_shard[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified ShardReplicationRemoveResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationRemoveResponse.verify|verify} messages. + * Encodes the specified ValidateSchemaKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ShardReplicationRemoveResponse + * @memberof vtctldata.ValidateSchemaKeyspaceResponse * @static - * @param {vtctldata.IShardReplicationRemoveResponse} message ShardReplicationRemoveResponse message or plain object to encode + * @param {vtctldata.IValidateSchemaKeyspaceResponse} message ValidateSchemaKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardReplicationRemoveResponse.encodeDelimited = function encodeDelimited(message, writer) { + ValidateSchemaKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer. + * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ShardReplicationRemoveResponse + * @memberof vtctldata.ValidateSchemaKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ShardReplicationRemoveResponse} ShardReplicationRemoveResponse + * @returns {vtctldata.ValidateSchemaKeyspaceResponse} ValidateSchemaKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationRemoveResponse.decode = function decode(reader, length) { + ValidateSchemaKeyspaceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ShardReplicationRemoveResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateSchemaKeyspaceResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.results && message.results.length)) + message.results = []; + message.results.push(reader.string()); + break; + } + case 2: { + if (message.results_by_shard === $util.emptyObject) + message.results_by_shard = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.ValidateShardResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.results_by_shard[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -182403,110 +190441,164 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ShardReplicationRemoveResponse + * @memberof vtctldata.ValidateSchemaKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ShardReplicationRemoveResponse} ShardReplicationRemoveResponse + * @returns {vtctldata.ValidateSchemaKeyspaceResponse} ValidateSchemaKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardReplicationRemoveResponse.decodeDelimited = function decodeDelimited(reader) { + ValidateSchemaKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardReplicationRemoveResponse message. + * Verifies a ValidateSchemaKeyspaceResponse message. * @function verify - * @memberof vtctldata.ShardReplicationRemoveResponse + * @memberof vtctldata.ValidateSchemaKeyspaceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardReplicationRemoveResponse.verify = function verify(message) { + ValidateSchemaKeyspaceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (let i = 0; i < message.results.length; ++i) + if (!$util.isString(message.results[i])) + return "results: string[] expected"; + } + if (message.results_by_shard != null && message.hasOwnProperty("results_by_shard")) { + if (!$util.isObject(message.results_by_shard)) + return "results_by_shard: object expected"; + let key = Object.keys(message.results_by_shard); + for (let i = 0; i < key.length; ++i) { + let error = $root.vtctldata.ValidateShardResponse.verify(message.results_by_shard[key[i]]); + if (error) + return "results_by_shard." + error; + } + } return null; }; /** - * Creates a ShardReplicationRemoveResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ShardReplicationRemoveResponse + * @memberof vtctldata.ValidateSchemaKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ShardReplicationRemoveResponse} ShardReplicationRemoveResponse + * @returns {vtctldata.ValidateSchemaKeyspaceResponse} ValidateSchemaKeyspaceResponse */ - ShardReplicationRemoveResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ShardReplicationRemoveResponse) + ValidateSchemaKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidateSchemaKeyspaceResponse) return object; - return new $root.vtctldata.ShardReplicationRemoveResponse(); + let message = new $root.vtctldata.ValidateSchemaKeyspaceResponse(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".vtctldata.ValidateSchemaKeyspaceResponse.results: array expected"); + message.results = []; + for (let i = 0; i < object.results.length; ++i) + message.results[i] = String(object.results[i]); + } + if (object.results_by_shard) { + if (typeof object.results_by_shard !== "object") + throw TypeError(".vtctldata.ValidateSchemaKeyspaceResponse.results_by_shard: object expected"); + message.results_by_shard = {}; + for (let keys = Object.keys(object.results_by_shard), i = 0; i < keys.length; ++i) { + if (typeof object.results_by_shard[keys[i]] !== "object") + throw TypeError(".vtctldata.ValidateSchemaKeyspaceResponse.results_by_shard: object expected"); + message.results_by_shard[keys[i]] = $root.vtctldata.ValidateShardResponse.fromObject(object.results_by_shard[keys[i]]); + } + } + return message; }; /** - * Creates a plain object from a ShardReplicationRemoveResponse message. Also converts values to other types if specified. + * Creates a plain object from a ValidateSchemaKeyspaceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ShardReplicationRemoveResponse + * @memberof vtctldata.ValidateSchemaKeyspaceResponse * @static - * @param {vtctldata.ShardReplicationRemoveResponse} message ShardReplicationRemoveResponse + * @param {vtctldata.ValidateSchemaKeyspaceResponse} message ValidateSchemaKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardReplicationRemoveResponse.toObject = function toObject() { - return {}; + ValidateSchemaKeyspaceResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.results = []; + if (options.objects || options.defaults) + object.results_by_shard = {}; + if (message.results && message.results.length) { + object.results = []; + for (let j = 0; j < message.results.length; ++j) + object.results[j] = message.results[j]; + } + let keys2; + if (message.results_by_shard && (keys2 = Object.keys(message.results_by_shard)).length) { + object.results_by_shard = {}; + for (let j = 0; j < keys2.length; ++j) + object.results_by_shard[keys2[j]] = $root.vtctldata.ValidateShardResponse.toObject(message.results_by_shard[keys2[j]], options); + } + return object; }; /** - * Converts this ShardReplicationRemoveResponse to JSON. + * Converts this ValidateSchemaKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.ShardReplicationRemoveResponse + * @memberof vtctldata.ValidateSchemaKeyspaceResponse * @instance * @returns {Object.} JSON object */ - ShardReplicationRemoveResponse.prototype.toJSON = function toJSON() { + ValidateSchemaKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShardReplicationRemoveResponse + * Gets the default type url for ValidateSchemaKeyspaceResponse * @function getTypeUrl - * @memberof vtctldata.ShardReplicationRemoveResponse + * @memberof vtctldata.ValidateSchemaKeyspaceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShardReplicationRemoveResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateSchemaKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ShardReplicationRemoveResponse"; + return typeUrlPrefix + "/vtctldata.ValidateSchemaKeyspaceResponse"; }; - return ShardReplicationRemoveResponse; + return ValidateSchemaKeyspaceResponse; })(); - vtctldata.SleepTabletRequest = (function() { + vtctldata.ValidateShardRequest = (function() { /** - * Properties of a SleepTabletRequest. + * Properties of a ValidateShardRequest. * @memberof vtctldata - * @interface ISleepTabletRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] SleepTabletRequest tablet_alias - * @property {vttime.IDuration|null} [duration] SleepTabletRequest duration + * @interface IValidateShardRequest + * @property {string|null} [keyspace] ValidateShardRequest keyspace + * @property {string|null} [shard] ValidateShardRequest shard + * @property {boolean|null} [ping_tablets] ValidateShardRequest ping_tablets */ /** - * Constructs a new SleepTabletRequest. + * Constructs a new ValidateShardRequest. * @memberof vtctldata - * @classdesc Represents a SleepTabletRequest. - * @implements ISleepTabletRequest + * @classdesc Represents a ValidateShardRequest. + * @implements IValidateShardRequest * @constructor - * @param {vtctldata.ISleepTabletRequest=} [properties] Properties to set + * @param {vtctldata.IValidateShardRequest=} [properties] Properties to set */ - function SleepTabletRequest(properties) { + function ValidateShardRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -182514,89 +190606,103 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SleepTabletRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.SleepTabletRequest + * ValidateShardRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.ValidateShardRequest * @instance */ - SleepTabletRequest.prototype.tablet_alias = null; + ValidateShardRequest.prototype.keyspace = ""; /** - * SleepTabletRequest duration. - * @member {vttime.IDuration|null|undefined} duration - * @memberof vtctldata.SleepTabletRequest + * ValidateShardRequest shard. + * @member {string} shard + * @memberof vtctldata.ValidateShardRequest * @instance */ - SleepTabletRequest.prototype.duration = null; + ValidateShardRequest.prototype.shard = ""; /** - * Creates a new SleepTabletRequest instance using the specified properties. + * ValidateShardRequest ping_tablets. + * @member {boolean} ping_tablets + * @memberof vtctldata.ValidateShardRequest + * @instance + */ + ValidateShardRequest.prototype.ping_tablets = false; + + /** + * Creates a new ValidateShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.SleepTabletRequest + * @memberof vtctldata.ValidateShardRequest * @static - * @param {vtctldata.ISleepTabletRequest=} [properties] Properties to set - * @returns {vtctldata.SleepTabletRequest} SleepTabletRequest instance + * @param {vtctldata.IValidateShardRequest=} [properties] Properties to set + * @returns {vtctldata.ValidateShardRequest} ValidateShardRequest instance */ - SleepTabletRequest.create = function create(properties) { - return new SleepTabletRequest(properties); + ValidateShardRequest.create = function create(properties) { + return new ValidateShardRequest(properties); }; /** - * Encodes the specified SleepTabletRequest message. Does not implicitly {@link vtctldata.SleepTabletRequest.verify|verify} messages. + * Encodes the specified ValidateShardRequest message. Does not implicitly {@link vtctldata.ValidateShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.SleepTabletRequest + * @memberof vtctldata.ValidateShardRequest * @static - * @param {vtctldata.ISleepTabletRequest} message SleepTabletRequest message or plain object to encode + * @param {vtctldata.IValidateShardRequest} message ValidateShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SleepTabletRequest.encode = function encode(message, writer) { + ValidateShardRequest.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.duration != null && Object.hasOwnProperty.call(message, "duration")) - $root.vttime.Duration.encode(message.duration, writer.uint32(/* id 2, wireType 2 =*/18).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.ping_tablets != null && Object.hasOwnProperty.call(message, "ping_tablets")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.ping_tablets); return writer; }; /** - * Encodes the specified SleepTabletRequest message, length delimited. Does not implicitly {@link vtctldata.SleepTabletRequest.verify|verify} messages. + * Encodes the specified ValidateShardRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SleepTabletRequest + * @memberof vtctldata.ValidateShardRequest * @static - * @param {vtctldata.ISleepTabletRequest} message SleepTabletRequest message or plain object to encode + * @param {vtctldata.IValidateShardRequest} message ValidateShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SleepTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { + ValidateShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SleepTabletRequest message from the specified reader or buffer. + * Decodes a ValidateShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SleepTabletRequest + * @memberof vtctldata.ValidateShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SleepTabletRequest} SleepTabletRequest + * @returns {vtctldata.ValidateShardRequest} ValidateShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SleepTabletRequest.decode = function decode(reader, length) { + ValidateShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SleepTabletRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateShardRequest(); while (reader.pos < end) { let 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.duration = $root.vttime.Duration.decode(reader, reader.uint32()); + message.shard = reader.string(); + break; + } + case 3: { + message.ping_tablets = reader.bool(); break; } default: @@ -182608,140 +190714,140 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SleepTabletRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SleepTabletRequest + * @memberof vtctldata.ValidateShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SleepTabletRequest} SleepTabletRequest + * @returns {vtctldata.ValidateShardRequest} ValidateShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SleepTabletRequest.decodeDelimited = function decodeDelimited(reader) { + ValidateShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SleepTabletRequest message. + * Verifies a ValidateShardRequest message. * @function verify - * @memberof vtctldata.SleepTabletRequest + * @memberof vtctldata.ValidateShardRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SleepTabletRequest.verify = function verify(message) { + ValidateShardRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.duration != null && message.hasOwnProperty("duration")) { - let error = $root.vttime.Duration.verify(message.duration); - if (error) - return "duration." + 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.ping_tablets != null && message.hasOwnProperty("ping_tablets")) + if (typeof message.ping_tablets !== "boolean") + return "ping_tablets: boolean expected"; return null; }; /** - * Creates a SleepTabletRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SleepTabletRequest + * @memberof vtctldata.ValidateShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.SleepTabletRequest} SleepTabletRequest + * @returns {vtctldata.ValidateShardRequest} ValidateShardRequest */ - SleepTabletRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SleepTabletRequest) + ValidateShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidateShardRequest) return object; - let message = new $root.vtctldata.SleepTabletRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.SleepTabletRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.duration != null) { - if (typeof object.duration !== "object") - throw TypeError(".vtctldata.SleepTabletRequest.duration: object expected"); - message.duration = $root.vttime.Duration.fromObject(object.duration); - } + let message = new $root.vtctldata.ValidateShardRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.ping_tablets != null) + message.ping_tablets = Boolean(object.ping_tablets); return message; }; /** - * Creates a plain object from a SleepTabletRequest message. Also converts values to other types if specified. + * Creates a plain object from a ValidateShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SleepTabletRequest + * @memberof vtctldata.ValidateShardRequest * @static - * @param {vtctldata.SleepTabletRequest} message SleepTabletRequest + * @param {vtctldata.ValidateShardRequest} message ValidateShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SleepTabletRequest.toObject = function toObject(message, options) { + ValidateShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.tablet_alias = null; - object.duration = null; + object.keyspace = ""; + object.shard = ""; + object.ping_tablets = false; } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.duration != null && message.hasOwnProperty("duration")) - object.duration = $root.vttime.Duration.toObject(message.duration, 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.ping_tablets != null && message.hasOwnProperty("ping_tablets")) + object.ping_tablets = message.ping_tablets; return object; }; /** - * Converts this SleepTabletRequest to JSON. + * Converts this ValidateShardRequest to JSON. * @function toJSON - * @memberof vtctldata.SleepTabletRequest + * @memberof vtctldata.ValidateShardRequest * @instance * @returns {Object.} JSON object */ - SleepTabletRequest.prototype.toJSON = function toJSON() { + ValidateShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SleepTabletRequest + * Gets the default type url for ValidateShardRequest * @function getTypeUrl - * @memberof vtctldata.SleepTabletRequest + * @memberof vtctldata.ValidateShardRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SleepTabletRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SleepTabletRequest"; + return typeUrlPrefix + "/vtctldata.ValidateShardRequest"; }; - return SleepTabletRequest; + return ValidateShardRequest; })(); - vtctldata.SleepTabletResponse = (function() { + vtctldata.ValidateShardResponse = (function() { /** - * Properties of a SleepTabletResponse. + * Properties of a ValidateShardResponse. * @memberof vtctldata - * @interface ISleepTabletResponse + * @interface IValidateShardResponse + * @property {Array.|null} [results] ValidateShardResponse results */ /** - * Constructs a new SleepTabletResponse. + * Constructs a new ValidateShardResponse. * @memberof vtctldata - * @classdesc Represents a SleepTabletResponse. - * @implements ISleepTabletResponse + * @classdesc Represents a ValidateShardResponse. + * @implements IValidateShardResponse * @constructor - * @param {vtctldata.ISleepTabletResponse=} [properties] Properties to set + * @param {vtctldata.IValidateShardResponse=} [properties] Properties to set */ - function SleepTabletResponse(properties) { + function ValidateShardResponse(properties) { + this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -182749,63 +190855,80 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new SleepTabletResponse instance using the specified properties. + * ValidateShardResponse results. + * @member {Array.} results + * @memberof vtctldata.ValidateShardResponse + * @instance + */ + ValidateShardResponse.prototype.results = $util.emptyArray; + + /** + * Creates a new ValidateShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.SleepTabletResponse + * @memberof vtctldata.ValidateShardResponse * @static - * @param {vtctldata.ISleepTabletResponse=} [properties] Properties to set - * @returns {vtctldata.SleepTabletResponse} SleepTabletResponse instance + * @param {vtctldata.IValidateShardResponse=} [properties] Properties to set + * @returns {vtctldata.ValidateShardResponse} ValidateShardResponse instance */ - SleepTabletResponse.create = function create(properties) { - return new SleepTabletResponse(properties); + ValidateShardResponse.create = function create(properties) { + return new ValidateShardResponse(properties); }; /** - * Encodes the specified SleepTabletResponse message. Does not implicitly {@link vtctldata.SleepTabletResponse.verify|verify} messages. + * Encodes the specified ValidateShardResponse message. Does not implicitly {@link vtctldata.ValidateShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.SleepTabletResponse + * @memberof vtctldata.ValidateShardResponse * @static - * @param {vtctldata.ISleepTabletResponse} message SleepTabletResponse message or plain object to encode + * @param {vtctldata.IValidateShardResponse} message ValidateShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SleepTabletResponse.encode = function encode(message, writer) { + ValidateShardResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.results != null && message.results.length) + for (let i = 0; i < message.results.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); return writer; }; /** - * Encodes the specified SleepTabletResponse message, length delimited. Does not implicitly {@link vtctldata.SleepTabletResponse.verify|verify} messages. + * Encodes the specified ValidateShardResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SleepTabletResponse + * @memberof vtctldata.ValidateShardResponse * @static - * @param {vtctldata.ISleepTabletResponse} message SleepTabletResponse message or plain object to encode + * @param {vtctldata.IValidateShardResponse} message ValidateShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SleepTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { + ValidateShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SleepTabletResponse message from the specified reader or buffer. + * Decodes a ValidateShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SleepTabletResponse + * @memberof vtctldata.ValidateShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SleepTabletResponse} SleepTabletResponse + * @returns {vtctldata.ValidateShardResponse} ValidateShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SleepTabletResponse.decode = function decode(reader, length) { + ValidateShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SleepTabletResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateShardResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.results && message.results.length)) + message.results = []; + message.results.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -182815,116 +190938,134 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SleepTabletResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidateShardResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SleepTabletResponse + * @memberof vtctldata.ValidateShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SleepTabletResponse} SleepTabletResponse + * @returns {vtctldata.ValidateShardResponse} ValidateShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SleepTabletResponse.decodeDelimited = function decodeDelimited(reader) { + ValidateShardResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SleepTabletResponse message. + * Verifies a ValidateShardResponse message. * @function verify - * @memberof vtctldata.SleepTabletResponse + * @memberof vtctldata.ValidateShardResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SleepTabletResponse.verify = function verify(message) { + ValidateShardResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (let i = 0; i < message.results.length; ++i) + if (!$util.isString(message.results[i])) + return "results: string[] expected"; + } return null; }; /** - * Creates a SleepTabletResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateShardResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SleepTabletResponse + * @memberof vtctldata.ValidateShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.SleepTabletResponse} SleepTabletResponse + * @returns {vtctldata.ValidateShardResponse} ValidateShardResponse */ - SleepTabletResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SleepTabletResponse) + ValidateShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidateShardResponse) return object; - return new $root.vtctldata.SleepTabletResponse(); + let message = new $root.vtctldata.ValidateShardResponse(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".vtctldata.ValidateShardResponse.results: array expected"); + message.results = []; + for (let i = 0; i < object.results.length; ++i) + message.results[i] = String(object.results[i]); + } + return message; }; /** - * Creates a plain object from a SleepTabletResponse message. Also converts values to other types if specified. + * Creates a plain object from a ValidateShardResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SleepTabletResponse + * @memberof vtctldata.ValidateShardResponse * @static - * @param {vtctldata.SleepTabletResponse} message SleepTabletResponse + * @param {vtctldata.ValidateShardResponse} message ValidateShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SleepTabletResponse.toObject = function toObject() { - return {}; + ValidateShardResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.results = []; + if (message.results && message.results.length) { + object.results = []; + for (let j = 0; j < message.results.length; ++j) + object.results[j] = message.results[j]; + } + return object; }; /** - * Converts this SleepTabletResponse to JSON. + * Converts this ValidateShardResponse to JSON. * @function toJSON - * @memberof vtctldata.SleepTabletResponse + * @memberof vtctldata.ValidateShardResponse * @instance * @returns {Object.} JSON object */ - SleepTabletResponse.prototype.toJSON = function toJSON() { + ValidateShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SleepTabletResponse + * Gets the default type url for ValidateShardResponse * @function getTypeUrl - * @memberof vtctldata.SleepTabletResponse + * @memberof vtctldata.ValidateShardResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SleepTabletResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SleepTabletResponse"; + return typeUrlPrefix + "/vtctldata.ValidateShardResponse"; }; - return SleepTabletResponse; + return ValidateShardResponse; })(); - vtctldata.SourceShardAddRequest = (function() { + vtctldata.ValidateVersionKeyspaceRequest = (function() { /** - * Properties of a SourceShardAddRequest. + * Properties of a ValidateVersionKeyspaceRequest. * @memberof vtctldata - * @interface ISourceShardAddRequest - * @property {string|null} [keyspace] SourceShardAddRequest keyspace - * @property {string|null} [shard] SourceShardAddRequest shard - * @property {number|null} [uid] SourceShardAddRequest uid - * @property {string|null} [source_keyspace] SourceShardAddRequest source_keyspace - * @property {string|null} [source_shard] SourceShardAddRequest source_shard - * @property {topodata.IKeyRange|null} [key_range] SourceShardAddRequest key_range - * @property {Array.|null} [tables] SourceShardAddRequest tables + * @interface IValidateVersionKeyspaceRequest + * @property {string|null} [keyspace] ValidateVersionKeyspaceRequest keyspace */ /** - * Constructs a new SourceShardAddRequest. + * Constructs a new ValidateVersionKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents a SourceShardAddRequest. - * @implements ISourceShardAddRequest + * @classdesc Represents a ValidateVersionKeyspaceRequest. + * @implements IValidateVersionKeyspaceRequest * @constructor - * @param {vtctldata.ISourceShardAddRequest=} [properties] Properties to set + * @param {vtctldata.IValidateVersionKeyspaceRequest=} [properties] Properties to set */ - function SourceShardAddRequest(properties) { - this.tables = []; + function ValidateVersionKeyspaceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -182932,131 +191073,70 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SourceShardAddRequest keyspace. + * ValidateVersionKeyspaceRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.SourceShardAddRequest - * @instance - */ - SourceShardAddRequest.prototype.keyspace = ""; - - /** - * SourceShardAddRequest shard. - * @member {string} shard - * @memberof vtctldata.SourceShardAddRequest - * @instance - */ - SourceShardAddRequest.prototype.shard = ""; - - /** - * SourceShardAddRequest uid. - * @member {number} uid - * @memberof vtctldata.SourceShardAddRequest - * @instance - */ - SourceShardAddRequest.prototype.uid = 0; - - /** - * SourceShardAddRequest source_keyspace. - * @member {string} source_keyspace - * @memberof vtctldata.SourceShardAddRequest - * @instance - */ - SourceShardAddRequest.prototype.source_keyspace = ""; - - /** - * SourceShardAddRequest source_shard. - * @member {string} source_shard - * @memberof vtctldata.SourceShardAddRequest - * @instance - */ - SourceShardAddRequest.prototype.source_shard = ""; - - /** - * SourceShardAddRequest key_range. - * @member {topodata.IKeyRange|null|undefined} key_range - * @memberof vtctldata.SourceShardAddRequest - * @instance - */ - SourceShardAddRequest.prototype.key_range = null; - - /** - * SourceShardAddRequest tables. - * @member {Array.} tables - * @memberof vtctldata.SourceShardAddRequest + * @memberof vtctldata.ValidateVersionKeyspaceRequest * @instance */ - SourceShardAddRequest.prototype.tables = $util.emptyArray; + ValidateVersionKeyspaceRequest.prototype.keyspace = ""; /** - * Creates a new SourceShardAddRequest instance using the specified properties. + * Creates a new ValidateVersionKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.SourceShardAddRequest + * @memberof vtctldata.ValidateVersionKeyspaceRequest * @static - * @param {vtctldata.ISourceShardAddRequest=} [properties] Properties to set - * @returns {vtctldata.SourceShardAddRequest} SourceShardAddRequest instance + * @param {vtctldata.IValidateVersionKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.ValidateVersionKeyspaceRequest} ValidateVersionKeyspaceRequest instance */ - SourceShardAddRequest.create = function create(properties) { - return new SourceShardAddRequest(properties); + ValidateVersionKeyspaceRequest.create = function create(properties) { + return new ValidateVersionKeyspaceRequest(properties); }; /** - * Encodes the specified SourceShardAddRequest message. Does not implicitly {@link vtctldata.SourceShardAddRequest.verify|verify} messages. + * Encodes the specified ValidateVersionKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.SourceShardAddRequest + * @memberof vtctldata.ValidateVersionKeyspaceRequest * @static - * @param {vtctldata.ISourceShardAddRequest} message SourceShardAddRequest message or plain object to encode + * @param {vtctldata.IValidateVersionKeyspaceRequest} message ValidateVersionKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceShardAddRequest.encode = function encode(message, writer) { + ValidateVersionKeyspaceRequest.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.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.uid); - if (message.source_keyspace != null && Object.hasOwnProperty.call(message, "source_keyspace")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.source_keyspace); - if (message.source_shard != null && Object.hasOwnProperty.call(message, "source_shard")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.source_shard); - if (message.key_range != null && Object.hasOwnProperty.call(message, "key_range")) - $root.topodata.KeyRange.encode(message.key_range, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.tables != null && message.tables.length) - for (let i = 0; i < message.tables.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.tables[i]); return writer; }; /** - * Encodes the specified SourceShardAddRequest message, length delimited. Does not implicitly {@link vtctldata.SourceShardAddRequest.verify|verify} messages. + * Encodes the specified ValidateVersionKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SourceShardAddRequest + * @memberof vtctldata.ValidateVersionKeyspaceRequest * @static - * @param {vtctldata.ISourceShardAddRequest} message SourceShardAddRequest message or plain object to encode + * @param {vtctldata.IValidateVersionKeyspaceRequest} message ValidateVersionKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceShardAddRequest.encodeDelimited = function encodeDelimited(message, writer) { + ValidateVersionKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SourceShardAddRequest message from the specified reader or buffer. + * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SourceShardAddRequest + * @memberof vtctldata.ValidateVersionKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SourceShardAddRequest} SourceShardAddRequest + * @returns {vtctldata.ValidateVersionKeyspaceRequest} ValidateVersionKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceShardAddRequest.decode = function decode(reader, length) { + ValidateVersionKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SourceShardAddRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateVersionKeyspaceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -183064,32 +191144,6 @@ export const vtctldata = $root.vtctldata = (() => { message.keyspace = reader.string(); break; } - case 2: { - message.shard = reader.string(); - break; - } - case 3: { - message.uid = reader.int32(); - break; - } - case 4: { - message.source_keyspace = reader.string(); - break; - } - case 5: { - message.source_shard = reader.string(); - break; - } - case 6: { - message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); - break; - } - case 7: { - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.push(reader.string()); - break; - } default: reader.skipType(tag & 7); break; @@ -183099,189 +191153,125 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SourceShardAddRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SourceShardAddRequest + * @memberof vtctldata.ValidateVersionKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SourceShardAddRequest} SourceShardAddRequest + * @returns {vtctldata.ValidateVersionKeyspaceRequest} ValidateVersionKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceShardAddRequest.decodeDelimited = function decodeDelimited(reader) { + ValidateVersionKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SourceShardAddRequest message. + * Verifies a ValidateVersionKeyspaceRequest message. * @function verify - * @memberof vtctldata.SourceShardAddRequest + * @memberof vtctldata.ValidateVersionKeyspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SourceShardAddRequest.verify = function verify(message) { + ValidateVersionKeyspaceRequest.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.uid != null && message.hasOwnProperty("uid")) - if (!$util.isInteger(message.uid)) - return "uid: integer expected"; - if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) - if (!$util.isString(message.source_keyspace)) - return "source_keyspace: string expected"; - if (message.source_shard != null && message.hasOwnProperty("source_shard")) - if (!$util.isString(message.source_shard)) - return "source_shard: string expected"; - if (message.key_range != null && message.hasOwnProperty("key_range")) { - let error = $root.topodata.KeyRange.verify(message.key_range); - if (error) - return "key_range." + error; - } - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!Array.isArray(message.tables)) - return "tables: array expected"; - for (let i = 0; i < message.tables.length; ++i) - if (!$util.isString(message.tables[i])) - return "tables: string[] expected"; - } return null; }; /** - * Creates a SourceShardAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVersionKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SourceShardAddRequest + * @memberof vtctldata.ValidateVersionKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.SourceShardAddRequest} SourceShardAddRequest + * @returns {vtctldata.ValidateVersionKeyspaceRequest} ValidateVersionKeyspaceRequest */ - SourceShardAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SourceShardAddRequest) + ValidateVersionKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidateVersionKeyspaceRequest) return object; - let message = new $root.vtctldata.SourceShardAddRequest(); + let message = new $root.vtctldata.ValidateVersionKeyspaceRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.uid != null) - message.uid = object.uid | 0; - if (object.source_keyspace != null) - message.source_keyspace = String(object.source_keyspace); - if (object.source_shard != null) - message.source_shard = String(object.source_shard); - if (object.key_range != null) { - if (typeof object.key_range !== "object") - throw TypeError(".vtctldata.SourceShardAddRequest.key_range: object expected"); - message.key_range = $root.topodata.KeyRange.fromObject(object.key_range); - } - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".vtctldata.SourceShardAddRequest.tables: array expected"); - message.tables = []; - for (let i = 0; i < object.tables.length; ++i) - message.tables[i] = String(object.tables[i]); - } return message; }; /** - * Creates a plain object from a SourceShardAddRequest message. Also converts values to other types if specified. + * Creates a plain object from a ValidateVersionKeyspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SourceShardAddRequest + * @memberof vtctldata.ValidateVersionKeyspaceRequest * @static - * @param {vtctldata.SourceShardAddRequest} message SourceShardAddRequest + * @param {vtctldata.ValidateVersionKeyspaceRequest} message ValidateVersionKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SourceShardAddRequest.toObject = function toObject(message, options) { + ValidateVersionKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.tables = []; - if (options.defaults) { + if (options.defaults) object.keyspace = ""; - object.shard = ""; - object.uid = 0; - object.source_keyspace = ""; - object.source_shard = ""; - object.key_range = null; - } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; - if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) - object.source_keyspace = message.source_keyspace; - if (message.source_shard != null && message.hasOwnProperty("source_shard")) - object.source_shard = message.source_shard; - if (message.key_range != null && message.hasOwnProperty("key_range")) - object.key_range = $root.topodata.KeyRange.toObject(message.key_range, options); - if (message.tables && message.tables.length) { - object.tables = []; - for (let j = 0; j < message.tables.length; ++j) - object.tables[j] = message.tables[j]; - } return object; }; /** - * Converts this SourceShardAddRequest to JSON. + * Converts this ValidateVersionKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.SourceShardAddRequest + * @memberof vtctldata.ValidateVersionKeyspaceRequest * @instance * @returns {Object.} JSON object */ - SourceShardAddRequest.prototype.toJSON = function toJSON() { + ValidateVersionKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SourceShardAddRequest + * Gets the default type url for ValidateVersionKeyspaceRequest * @function getTypeUrl - * @memberof vtctldata.SourceShardAddRequest + * @memberof vtctldata.ValidateVersionKeyspaceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SourceShardAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateVersionKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SourceShardAddRequest"; + return typeUrlPrefix + "/vtctldata.ValidateVersionKeyspaceRequest"; }; - return SourceShardAddRequest; + return ValidateVersionKeyspaceRequest; })(); - vtctldata.SourceShardAddResponse = (function() { + vtctldata.ValidateVersionKeyspaceResponse = (function() { /** - * Properties of a SourceShardAddResponse. + * Properties of a ValidateVersionKeyspaceResponse. * @memberof vtctldata - * @interface ISourceShardAddResponse - * @property {topodata.IShard|null} [shard] SourceShardAddResponse shard + * @interface IValidateVersionKeyspaceResponse + * @property {Array.|null} [results] ValidateVersionKeyspaceResponse results + * @property {Object.|null} [results_by_shard] ValidateVersionKeyspaceResponse results_by_shard */ /** - * Constructs a new SourceShardAddResponse. + * Constructs a new ValidateVersionKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents a SourceShardAddResponse. - * @implements ISourceShardAddResponse + * @classdesc Represents a ValidateVersionKeyspaceResponse. + * @implements IValidateVersionKeyspaceResponse * @constructor - * @param {vtctldata.ISourceShardAddResponse=} [properties] Properties to set + * @param {vtctldata.IValidateVersionKeyspaceResponse=} [properties] Properties to set */ - function SourceShardAddResponse(properties) { + function ValidateVersionKeyspaceResponse(properties) { + this.results = []; + this.results_by_shard = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -183289,75 +191279,114 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SourceShardAddResponse shard. - * @member {topodata.IShard|null|undefined} shard - * @memberof vtctldata.SourceShardAddResponse + * ValidateVersionKeyspaceResponse results. + * @member {Array.} results + * @memberof vtctldata.ValidateVersionKeyspaceResponse * @instance */ - SourceShardAddResponse.prototype.shard = null; + ValidateVersionKeyspaceResponse.prototype.results = $util.emptyArray; /** - * Creates a new SourceShardAddResponse instance using the specified properties. + * ValidateVersionKeyspaceResponse results_by_shard. + * @member {Object.} results_by_shard + * @memberof vtctldata.ValidateVersionKeyspaceResponse + * @instance + */ + ValidateVersionKeyspaceResponse.prototype.results_by_shard = $util.emptyObject; + + /** + * Creates a new ValidateVersionKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.SourceShardAddResponse + * @memberof vtctldata.ValidateVersionKeyspaceResponse * @static - * @param {vtctldata.ISourceShardAddResponse=} [properties] Properties to set - * @returns {vtctldata.SourceShardAddResponse} SourceShardAddResponse instance + * @param {vtctldata.IValidateVersionKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.ValidateVersionKeyspaceResponse} ValidateVersionKeyspaceResponse instance */ - SourceShardAddResponse.create = function create(properties) { - return new SourceShardAddResponse(properties); + ValidateVersionKeyspaceResponse.create = function create(properties) { + return new ValidateVersionKeyspaceResponse(properties); }; /** - * Encodes the specified SourceShardAddResponse message. Does not implicitly {@link vtctldata.SourceShardAddResponse.verify|verify} messages. + * Encodes the specified ValidateVersionKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.SourceShardAddResponse + * @memberof vtctldata.ValidateVersionKeyspaceResponse * @static - * @param {vtctldata.ISourceShardAddResponse} message SourceShardAddResponse message or plain object to encode + * @param {vtctldata.IValidateVersionKeyspaceResponse} message ValidateVersionKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceShardAddResponse.encode = function encode(message, writer) { + ValidateVersionKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - $root.topodata.Shard.encode(message.shard, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.results != null && message.results.length) + for (let i = 0; i < message.results.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); + if (message.results_by_shard != null && Object.hasOwnProperty.call(message, "results_by_shard")) + for (let keys = Object.keys(message.results_by_shard), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtctldata.ValidateShardResponse.encode(message.results_by_shard[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified SourceShardAddResponse message, length delimited. Does not implicitly {@link vtctldata.SourceShardAddResponse.verify|verify} messages. + * Encodes the specified ValidateVersionKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SourceShardAddResponse + * @memberof vtctldata.ValidateVersionKeyspaceResponse * @static - * @param {vtctldata.ISourceShardAddResponse} message SourceShardAddResponse message or plain object to encode + * @param {vtctldata.IValidateVersionKeyspaceResponse} message ValidateVersionKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceShardAddResponse.encodeDelimited = function encodeDelimited(message, writer) { + ValidateVersionKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SourceShardAddResponse message from the specified reader or buffer. + * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SourceShardAddResponse + * @memberof vtctldata.ValidateVersionKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SourceShardAddResponse} SourceShardAddResponse + * @returns {vtctldata.ValidateVersionKeyspaceResponse} ValidateVersionKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceShardAddResponse.decode = function decode(reader, length) { + ValidateVersionKeyspaceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SourceShardAddResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateVersionKeyspaceResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); + if (!(message.results && message.results.length)) + message.results = []; + message.results.push(reader.string()); + break; + } + case 2: { + if (message.results_by_shard === $util.emptyObject) + message.results_by_shard = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.ValidateShardResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.results_by_shard[key] = value; break; } default: @@ -183369,129 +191398,163 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SourceShardAddResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SourceShardAddResponse + * @memberof vtctldata.ValidateVersionKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SourceShardAddResponse} SourceShardAddResponse + * @returns {vtctldata.ValidateVersionKeyspaceResponse} ValidateVersionKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceShardAddResponse.decodeDelimited = function decodeDelimited(reader) { + ValidateVersionKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SourceShardAddResponse message. + * Verifies a ValidateVersionKeyspaceResponse message. * @function verify - * @memberof vtctldata.SourceShardAddResponse + * @memberof vtctldata.ValidateVersionKeyspaceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SourceShardAddResponse.verify = function verify(message) { + ValidateVersionKeyspaceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard != null && message.hasOwnProperty("shard")) { - let error = $root.topodata.Shard.verify(message.shard); - if (error) - return "shard." + error; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (let i = 0; i < message.results.length; ++i) + if (!$util.isString(message.results[i])) + return "results: string[] expected"; + } + if (message.results_by_shard != null && message.hasOwnProperty("results_by_shard")) { + if (!$util.isObject(message.results_by_shard)) + return "results_by_shard: object expected"; + let key = Object.keys(message.results_by_shard); + for (let i = 0; i < key.length; ++i) { + let error = $root.vtctldata.ValidateShardResponse.verify(message.results_by_shard[key[i]]); + if (error) + return "results_by_shard." + error; + } } return null; }; /** - * Creates a SourceShardAddResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVersionKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SourceShardAddResponse + * @memberof vtctldata.ValidateVersionKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.SourceShardAddResponse} SourceShardAddResponse + * @returns {vtctldata.ValidateVersionKeyspaceResponse} ValidateVersionKeyspaceResponse */ - SourceShardAddResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SourceShardAddResponse) + ValidateVersionKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidateVersionKeyspaceResponse) return object; - let message = new $root.vtctldata.SourceShardAddResponse(); - if (object.shard != null) { - if (typeof object.shard !== "object") - throw TypeError(".vtctldata.SourceShardAddResponse.shard: object expected"); - message.shard = $root.topodata.Shard.fromObject(object.shard); + let message = new $root.vtctldata.ValidateVersionKeyspaceResponse(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".vtctldata.ValidateVersionKeyspaceResponse.results: array expected"); + message.results = []; + for (let i = 0; i < object.results.length; ++i) + message.results[i] = String(object.results[i]); + } + if (object.results_by_shard) { + if (typeof object.results_by_shard !== "object") + throw TypeError(".vtctldata.ValidateVersionKeyspaceResponse.results_by_shard: object expected"); + message.results_by_shard = {}; + for (let keys = Object.keys(object.results_by_shard), i = 0; i < keys.length; ++i) { + if (typeof object.results_by_shard[keys[i]] !== "object") + throw TypeError(".vtctldata.ValidateVersionKeyspaceResponse.results_by_shard: object expected"); + message.results_by_shard[keys[i]] = $root.vtctldata.ValidateShardResponse.fromObject(object.results_by_shard[keys[i]]); + } } return message; }; /** - * Creates a plain object from a SourceShardAddResponse message. Also converts values to other types if specified. + * Creates a plain object from a ValidateVersionKeyspaceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SourceShardAddResponse + * @memberof vtctldata.ValidateVersionKeyspaceResponse * @static - * @param {vtctldata.SourceShardAddResponse} message SourceShardAddResponse + * @param {vtctldata.ValidateVersionKeyspaceResponse} message ValidateVersionKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SourceShardAddResponse.toObject = function toObject(message, options) { + ValidateVersionKeyspaceResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.shard = null; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = $root.topodata.Shard.toObject(message.shard, options); + if (options.arrays || options.defaults) + object.results = []; + if (options.objects || options.defaults) + object.results_by_shard = {}; + if (message.results && message.results.length) { + object.results = []; + for (let j = 0; j < message.results.length; ++j) + object.results[j] = message.results[j]; + } + let keys2; + if (message.results_by_shard && (keys2 = Object.keys(message.results_by_shard)).length) { + object.results_by_shard = {}; + for (let j = 0; j < keys2.length; ++j) + object.results_by_shard[keys2[j]] = $root.vtctldata.ValidateShardResponse.toObject(message.results_by_shard[keys2[j]], options); + } return object; }; /** - * Converts this SourceShardAddResponse to JSON. + * Converts this ValidateVersionKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.SourceShardAddResponse + * @memberof vtctldata.ValidateVersionKeyspaceResponse * @instance * @returns {Object.} JSON object */ - SourceShardAddResponse.prototype.toJSON = function toJSON() { + ValidateVersionKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SourceShardAddResponse + * Gets the default type url for ValidateVersionKeyspaceResponse * @function getTypeUrl - * @memberof vtctldata.SourceShardAddResponse + * @memberof vtctldata.ValidateVersionKeyspaceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SourceShardAddResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateVersionKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SourceShardAddResponse"; + return typeUrlPrefix + "/vtctldata.ValidateVersionKeyspaceResponse"; }; - return SourceShardAddResponse; + return ValidateVersionKeyspaceResponse; })(); - vtctldata.SourceShardDeleteRequest = (function() { + vtctldata.ValidateVersionShardRequest = (function() { /** - * Properties of a SourceShardDeleteRequest. + * Properties of a ValidateVersionShardRequest. * @memberof vtctldata - * @interface ISourceShardDeleteRequest - * @property {string|null} [keyspace] SourceShardDeleteRequest keyspace - * @property {string|null} [shard] SourceShardDeleteRequest shard - * @property {number|null} [uid] SourceShardDeleteRequest uid + * @interface IValidateVersionShardRequest + * @property {string|null} [keyspace] ValidateVersionShardRequest keyspace + * @property {string|null} [shard] ValidateVersionShardRequest shard */ /** - * Constructs a new SourceShardDeleteRequest. + * Constructs a new ValidateVersionShardRequest. * @memberof vtctldata - * @classdesc Represents a SourceShardDeleteRequest. - * @implements ISourceShardDeleteRequest + * @classdesc Represents a ValidateVersionShardRequest. + * @implements IValidateVersionShardRequest * @constructor - * @param {vtctldata.ISourceShardDeleteRequest=} [properties] Properties to set + * @param {vtctldata.IValidateVersionShardRequest=} [properties] Properties to set */ - function SourceShardDeleteRequest(properties) { + function ValidateVersionShardRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -183499,90 +191562,80 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SourceShardDeleteRequest keyspace. + * ValidateVersionShardRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.SourceShardDeleteRequest + * @memberof vtctldata.ValidateVersionShardRequest * @instance */ - SourceShardDeleteRequest.prototype.keyspace = ""; + ValidateVersionShardRequest.prototype.keyspace = ""; /** - * SourceShardDeleteRequest shard. + * ValidateVersionShardRequest shard. * @member {string} shard - * @memberof vtctldata.SourceShardDeleteRequest - * @instance - */ - SourceShardDeleteRequest.prototype.shard = ""; - - /** - * SourceShardDeleteRequest uid. - * @member {number} uid - * @memberof vtctldata.SourceShardDeleteRequest + * @memberof vtctldata.ValidateVersionShardRequest * @instance */ - SourceShardDeleteRequest.prototype.uid = 0; + ValidateVersionShardRequest.prototype.shard = ""; /** - * Creates a new SourceShardDeleteRequest instance using the specified properties. + * Creates a new ValidateVersionShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.SourceShardDeleteRequest + * @memberof vtctldata.ValidateVersionShardRequest * @static - * @param {vtctldata.ISourceShardDeleteRequest=} [properties] Properties to set - * @returns {vtctldata.SourceShardDeleteRequest} SourceShardDeleteRequest instance + * @param {vtctldata.IValidateVersionShardRequest=} [properties] Properties to set + * @returns {vtctldata.ValidateVersionShardRequest} ValidateVersionShardRequest instance */ - SourceShardDeleteRequest.create = function create(properties) { - return new SourceShardDeleteRequest(properties); + ValidateVersionShardRequest.create = function create(properties) { + return new ValidateVersionShardRequest(properties); }; /** - * Encodes the specified SourceShardDeleteRequest message. Does not implicitly {@link vtctldata.SourceShardDeleteRequest.verify|verify} messages. + * Encodes the specified ValidateVersionShardRequest message. Does not implicitly {@link vtctldata.ValidateVersionShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.SourceShardDeleteRequest + * @memberof vtctldata.ValidateVersionShardRequest * @static - * @param {vtctldata.ISourceShardDeleteRequest} message SourceShardDeleteRequest message or plain object to encode + * @param {vtctldata.IValidateVersionShardRequest} message ValidateVersionShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceShardDeleteRequest.encode = function encode(message, writer) { + ValidateVersionShardRequest.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.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.uid); return writer; }; /** - * Encodes the specified SourceShardDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.SourceShardDeleteRequest.verify|verify} messages. + * Encodes the specified ValidateVersionShardRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SourceShardDeleteRequest + * @memberof vtctldata.ValidateVersionShardRequest * @static - * @param {vtctldata.ISourceShardDeleteRequest} message SourceShardDeleteRequest message or plain object to encode + * @param {vtctldata.IValidateVersionShardRequest} message ValidateVersionShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceShardDeleteRequest.encodeDelimited = function encodeDelimited(message, writer) { + ValidateVersionShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SourceShardDeleteRequest message from the specified reader or buffer. + * Decodes a ValidateVersionShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SourceShardDeleteRequest + * @memberof vtctldata.ValidateVersionShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SourceShardDeleteRequest} SourceShardDeleteRequest + * @returns {vtctldata.ValidateVersionShardRequest} ValidateVersionShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceShardDeleteRequest.decode = function decode(reader, length) { + ValidateVersionShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SourceShardDeleteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateVersionShardRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -183594,10 +191647,6 @@ export const vtctldata = $root.vtctldata = (() => { message.shard = reader.string(); break; } - case 3: { - message.uid = reader.int32(); - break; - } default: reader.skipType(tag & 7); break; @@ -183607,30 +191656,30 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SourceShardDeleteRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateVersionShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SourceShardDeleteRequest + * @memberof vtctldata.ValidateVersionShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SourceShardDeleteRequest} SourceShardDeleteRequest + * @returns {vtctldata.ValidateVersionShardRequest} ValidateVersionShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceShardDeleteRequest.decodeDelimited = function decodeDelimited(reader) { + ValidateVersionShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SourceShardDeleteRequest message. + * Verifies a ValidateVersionShardRequest message. * @function verify - * @memberof vtctldata.SourceShardDeleteRequest + * @memberof vtctldata.ValidateVersionShardRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SourceShardDeleteRequest.verify = function verify(message) { + ValidateVersionShardRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) @@ -183639,107 +191688,100 @@ export const vtctldata = $root.vtctldata = (() => { if (message.shard != null && message.hasOwnProperty("shard")) if (!$util.isString(message.shard)) return "shard: string expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isInteger(message.uid)) - return "uid: integer expected"; return null; }; /** - * Creates a SourceShardDeleteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVersionShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SourceShardDeleteRequest + * @memberof vtctldata.ValidateVersionShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.SourceShardDeleteRequest} SourceShardDeleteRequest + * @returns {vtctldata.ValidateVersionShardRequest} ValidateVersionShardRequest */ - SourceShardDeleteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SourceShardDeleteRequest) + ValidateVersionShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidateVersionShardRequest) return object; - let message = new $root.vtctldata.SourceShardDeleteRequest(); + let message = new $root.vtctldata.ValidateVersionShardRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); if (object.shard != null) message.shard = String(object.shard); - if (object.uid != null) - message.uid = object.uid | 0; return message; }; /** - * Creates a plain object from a SourceShardDeleteRequest message. Also converts values to other types if specified. + * Creates a plain object from a ValidateVersionShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SourceShardDeleteRequest + * @memberof vtctldata.ValidateVersionShardRequest * @static - * @param {vtctldata.SourceShardDeleteRequest} message SourceShardDeleteRequest + * @param {vtctldata.ValidateVersionShardRequest} message ValidateVersionShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SourceShardDeleteRequest.toObject = function toObject(message, options) { + ValidateVersionShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.keyspace = ""; object.shard = ""; - object.uid = 0; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; if (message.shard != null && message.hasOwnProperty("shard")) object.shard = message.shard; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; return object; }; /** - * Converts this SourceShardDeleteRequest to JSON. + * Converts this ValidateVersionShardRequest to JSON. * @function toJSON - * @memberof vtctldata.SourceShardDeleteRequest + * @memberof vtctldata.ValidateVersionShardRequest * @instance * @returns {Object.} JSON object */ - SourceShardDeleteRequest.prototype.toJSON = function toJSON() { + ValidateVersionShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SourceShardDeleteRequest + * Gets the default type url for ValidateVersionShardRequest * @function getTypeUrl - * @memberof vtctldata.SourceShardDeleteRequest + * @memberof vtctldata.ValidateVersionShardRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SourceShardDeleteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateVersionShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SourceShardDeleteRequest"; + return typeUrlPrefix + "/vtctldata.ValidateVersionShardRequest"; }; - return SourceShardDeleteRequest; + return ValidateVersionShardRequest; })(); - vtctldata.SourceShardDeleteResponse = (function() { + vtctldata.ValidateVersionShardResponse = (function() { /** - * Properties of a SourceShardDeleteResponse. + * Properties of a ValidateVersionShardResponse. * @memberof vtctldata - * @interface ISourceShardDeleteResponse - * @property {topodata.IShard|null} [shard] SourceShardDeleteResponse shard + * @interface IValidateVersionShardResponse + * @property {Array.|null} [results] ValidateVersionShardResponse results */ /** - * Constructs a new SourceShardDeleteResponse. + * Constructs a new ValidateVersionShardResponse. * @memberof vtctldata - * @classdesc Represents a SourceShardDeleteResponse. - * @implements ISourceShardDeleteResponse + * @classdesc Represents a ValidateVersionShardResponse. + * @implements IValidateVersionShardResponse * @constructor - * @param {vtctldata.ISourceShardDeleteResponse=} [properties] Properties to set + * @param {vtctldata.IValidateVersionShardResponse=} [properties] Properties to set */ - function SourceShardDeleteResponse(properties) { + function ValidateVersionShardResponse(properties) { + this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -183747,75 +191789,78 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * SourceShardDeleteResponse shard. - * @member {topodata.IShard|null|undefined} shard - * @memberof vtctldata.SourceShardDeleteResponse + * ValidateVersionShardResponse results. + * @member {Array.} results + * @memberof vtctldata.ValidateVersionShardResponse * @instance */ - SourceShardDeleteResponse.prototype.shard = null; + ValidateVersionShardResponse.prototype.results = $util.emptyArray; /** - * Creates a new SourceShardDeleteResponse instance using the specified properties. + * Creates a new ValidateVersionShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.SourceShardDeleteResponse + * @memberof vtctldata.ValidateVersionShardResponse * @static - * @param {vtctldata.ISourceShardDeleteResponse=} [properties] Properties to set - * @returns {vtctldata.SourceShardDeleteResponse} SourceShardDeleteResponse instance + * @param {vtctldata.IValidateVersionShardResponse=} [properties] Properties to set + * @returns {vtctldata.ValidateVersionShardResponse} ValidateVersionShardResponse instance */ - SourceShardDeleteResponse.create = function create(properties) { - return new SourceShardDeleteResponse(properties); + ValidateVersionShardResponse.create = function create(properties) { + return new ValidateVersionShardResponse(properties); }; /** - * Encodes the specified SourceShardDeleteResponse message. Does not implicitly {@link vtctldata.SourceShardDeleteResponse.verify|verify} messages. + * Encodes the specified ValidateVersionShardResponse message. Does not implicitly {@link vtctldata.ValidateVersionShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.SourceShardDeleteResponse + * @memberof vtctldata.ValidateVersionShardResponse * @static - * @param {vtctldata.ISourceShardDeleteResponse} message SourceShardDeleteResponse message or plain object to encode + * @param {vtctldata.IValidateVersionShardResponse} message ValidateVersionShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceShardDeleteResponse.encode = function encode(message, writer) { + ValidateVersionShardResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - $root.topodata.Shard.encode(message.shard, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.results != null && message.results.length) + for (let i = 0; i < message.results.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); return writer; }; /** - * Encodes the specified SourceShardDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.SourceShardDeleteResponse.verify|verify} messages. + * Encodes the specified ValidateVersionShardResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.SourceShardDeleteResponse + * @memberof vtctldata.ValidateVersionShardResponse * @static - * @param {vtctldata.ISourceShardDeleteResponse} message SourceShardDeleteResponse message or plain object to encode + * @param {vtctldata.IValidateVersionShardResponse} message ValidateVersionShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceShardDeleteResponse.encodeDelimited = function encodeDelimited(message, writer) { + ValidateVersionShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SourceShardDeleteResponse message from the specified reader or buffer. + * Decodes a ValidateVersionShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.SourceShardDeleteResponse + * @memberof vtctldata.ValidateVersionShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.SourceShardDeleteResponse} SourceShardDeleteResponse + * @returns {vtctldata.ValidateVersionShardResponse} ValidateVersionShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceShardDeleteResponse.decode = function decode(reader, length) { + ValidateVersionShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.SourceShardDeleteResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateVersionShardResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); + if (!(message.results && message.results.length)) + message.results = []; + message.results.push(reader.string()); break; } default: @@ -183827,127 +191872,139 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a SourceShardDeleteResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidateVersionShardResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.SourceShardDeleteResponse + * @memberof vtctldata.ValidateVersionShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.SourceShardDeleteResponse} SourceShardDeleteResponse + * @returns {vtctldata.ValidateVersionShardResponse} ValidateVersionShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceShardDeleteResponse.decodeDelimited = function decodeDelimited(reader) { + ValidateVersionShardResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SourceShardDeleteResponse message. + * Verifies a ValidateVersionShardResponse message. * @function verify - * @memberof vtctldata.SourceShardDeleteResponse + * @memberof vtctldata.ValidateVersionShardResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SourceShardDeleteResponse.verify = function verify(message) { + ValidateVersionShardResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard != null && message.hasOwnProperty("shard")) { - let error = $root.topodata.Shard.verify(message.shard); - if (error) - return "shard." + error; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (let i = 0; i < message.results.length; ++i) + if (!$util.isString(message.results[i])) + return "results: string[] expected"; } return null; }; /** - * Creates a SourceShardDeleteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVersionShardResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.SourceShardDeleteResponse + * @memberof vtctldata.ValidateVersionShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.SourceShardDeleteResponse} SourceShardDeleteResponse + * @returns {vtctldata.ValidateVersionShardResponse} ValidateVersionShardResponse */ - SourceShardDeleteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.SourceShardDeleteResponse) + ValidateVersionShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidateVersionShardResponse) return object; - let message = new $root.vtctldata.SourceShardDeleteResponse(); - if (object.shard != null) { - if (typeof object.shard !== "object") - throw TypeError(".vtctldata.SourceShardDeleteResponse.shard: object expected"); - message.shard = $root.topodata.Shard.fromObject(object.shard); + let message = new $root.vtctldata.ValidateVersionShardResponse(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".vtctldata.ValidateVersionShardResponse.results: array expected"); + message.results = []; + for (let i = 0; i < object.results.length; ++i) + message.results[i] = String(object.results[i]); } return message; }; /** - * Creates a plain object from a SourceShardDeleteResponse message. Also converts values to other types if specified. + * Creates a plain object from a ValidateVersionShardResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.SourceShardDeleteResponse + * @memberof vtctldata.ValidateVersionShardResponse * @static - * @param {vtctldata.SourceShardDeleteResponse} message SourceShardDeleteResponse + * @param {vtctldata.ValidateVersionShardResponse} message ValidateVersionShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SourceShardDeleteResponse.toObject = function toObject(message, options) { + ValidateVersionShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.shard = null; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = $root.topodata.Shard.toObject(message.shard, options); + if (options.arrays || options.defaults) + object.results = []; + if (message.results && message.results.length) { + object.results = []; + for (let j = 0; j < message.results.length; ++j) + object.results[j] = message.results[j]; + } return object; }; /** - * Converts this SourceShardDeleteResponse to JSON. + * Converts this ValidateVersionShardResponse to JSON. * @function toJSON - * @memberof vtctldata.SourceShardDeleteResponse + * @memberof vtctldata.ValidateVersionShardResponse * @instance * @returns {Object.} JSON object */ - SourceShardDeleteResponse.prototype.toJSON = function toJSON() { + ValidateVersionShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SourceShardDeleteResponse + * Gets the default type url for ValidateVersionShardResponse * @function getTypeUrl - * @memberof vtctldata.SourceShardDeleteResponse + * @memberof vtctldata.ValidateVersionShardResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SourceShardDeleteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateVersionShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.SourceShardDeleteResponse"; + return typeUrlPrefix + "/vtctldata.ValidateVersionShardResponse"; }; - return SourceShardDeleteResponse; + return ValidateVersionShardResponse; })(); - vtctldata.StartReplicationRequest = (function() { + vtctldata.ValidateVSchemaRequest = (function() { /** - * Properties of a StartReplicationRequest. + * Properties of a ValidateVSchemaRequest. * @memberof vtctldata - * @interface IStartReplicationRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] StartReplicationRequest tablet_alias + * @interface IValidateVSchemaRequest + * @property {string|null} [keyspace] ValidateVSchemaRequest keyspace + * @property {Array.|null} [shards] ValidateVSchemaRequest shards + * @property {Array.|null} [exclude_tables] ValidateVSchemaRequest exclude_tables + * @property {boolean|null} [include_views] ValidateVSchemaRequest include_views */ /** - * Constructs a new StartReplicationRequest. + * Constructs a new ValidateVSchemaRequest. * @memberof vtctldata - * @classdesc Represents a StartReplicationRequest. - * @implements IStartReplicationRequest + * @classdesc Represents a ValidateVSchemaRequest. + * @implements IValidateVSchemaRequest * @constructor - * @param {vtctldata.IStartReplicationRequest=} [properties] Properties to set + * @param {vtctldata.IValidateVSchemaRequest=} [properties] Properties to set */ - function StartReplicationRequest(properties) { + function ValidateVSchemaRequest(properties) { + this.shards = []; + this.exclude_tables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -183955,75 +192012,123 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * StartReplicationRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.StartReplicationRequest + * ValidateVSchemaRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.ValidateVSchemaRequest * @instance */ - StartReplicationRequest.prototype.tablet_alias = null; + ValidateVSchemaRequest.prototype.keyspace = ""; /** - * Creates a new StartReplicationRequest instance using the specified properties. + * ValidateVSchemaRequest shards. + * @member {Array.} shards + * @memberof vtctldata.ValidateVSchemaRequest + * @instance + */ + ValidateVSchemaRequest.prototype.shards = $util.emptyArray; + + /** + * ValidateVSchemaRequest exclude_tables. + * @member {Array.} exclude_tables + * @memberof vtctldata.ValidateVSchemaRequest + * @instance + */ + ValidateVSchemaRequest.prototype.exclude_tables = $util.emptyArray; + + /** + * ValidateVSchemaRequest include_views. + * @member {boolean} include_views + * @memberof vtctldata.ValidateVSchemaRequest + * @instance + */ + ValidateVSchemaRequest.prototype.include_views = false; + + /** + * Creates a new ValidateVSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.StartReplicationRequest + * @memberof vtctldata.ValidateVSchemaRequest * @static - * @param {vtctldata.IStartReplicationRequest=} [properties] Properties to set - * @returns {vtctldata.StartReplicationRequest} StartReplicationRequest instance + * @param {vtctldata.IValidateVSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.ValidateVSchemaRequest} ValidateVSchemaRequest instance */ - StartReplicationRequest.create = function create(properties) { - return new StartReplicationRequest(properties); + ValidateVSchemaRequest.create = function create(properties) { + return new ValidateVSchemaRequest(properties); }; /** - * Encodes the specified StartReplicationRequest message. Does not implicitly {@link vtctldata.StartReplicationRequest.verify|verify} messages. + * Encodes the specified ValidateVSchemaRequest message. Does not implicitly {@link vtctldata.ValidateVSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.StartReplicationRequest + * @memberof vtctldata.ValidateVSchemaRequest * @static - * @param {vtctldata.IStartReplicationRequest} message StartReplicationRequest message or plain object to encode + * @param {vtctldata.IValidateVSchemaRequest} message ValidateVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartReplicationRequest.encode = function encode(message, writer) { + ValidateVSchemaRequest.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.shards != null && message.shards.length) + for (let i = 0; i < message.shards.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shards[i]); + if (message.exclude_tables != null && message.exclude_tables.length) + for (let i = 0; i < message.exclude_tables.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_tables[i]); + if (message.include_views != null && Object.hasOwnProperty.call(message, "include_views")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_views); return writer; }; /** - * Encodes the specified StartReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.StartReplicationRequest.verify|verify} messages. + * Encodes the specified ValidateVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.StartReplicationRequest + * @memberof vtctldata.ValidateVSchemaRequest * @static - * @param {vtctldata.IStartReplicationRequest} message StartReplicationRequest message or plain object to encode + * @param {vtctldata.IValidateVSchemaRequest} message ValidateVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) { + ValidateVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartReplicationRequest message from the specified reader or buffer. + * Decodes a ValidateVSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.StartReplicationRequest + * @memberof vtctldata.ValidateVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.StartReplicationRequest} StartReplicationRequest + * @returns {vtctldata.ValidateVSchemaRequest} ValidateVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartReplicationRequest.decode = function decode(reader, length) { + ValidateVSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.StartReplicationRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateVSchemaRequest(); while (reader.pos < end) { let 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: { + if (!(message.shards && message.shards.length)) + message.shards = []; + message.shards.push(reader.string()); + break; + } + case 3: { + if (!(message.exclude_tables && message.exclude_tables.length)) + message.exclude_tables = []; + message.exclude_tables.push(reader.string()); + break; + } + case 4: { + message.include_views = reader.bool(); break; } default: @@ -184035,126 +192140,176 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a StartReplicationRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateVSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.StartReplicationRequest + * @memberof vtctldata.ValidateVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.StartReplicationRequest} StartReplicationRequest + * @returns {vtctldata.ValidateVSchemaRequest} ValidateVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartReplicationRequest.decodeDelimited = function decodeDelimited(reader) { + ValidateVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartReplicationRequest message. + * Verifies a ValidateVSchemaRequest message. * @function verify - * @memberof vtctldata.StartReplicationRequest + * @memberof vtctldata.ValidateVSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartReplicationRequest.verify = function verify(message) { + ValidateVSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!Array.isArray(message.shards)) + return "shards: array expected"; + for (let i = 0; i < message.shards.length; ++i) + if (!$util.isString(message.shards[i])) + return "shards: string[] expected"; + } + if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { + if (!Array.isArray(message.exclude_tables)) + return "exclude_tables: array expected"; + for (let i = 0; i < message.exclude_tables.length; ++i) + if (!$util.isString(message.exclude_tables[i])) + return "exclude_tables: string[] expected"; } + if (message.include_views != null && message.hasOwnProperty("include_views")) + if (typeof message.include_views !== "boolean") + return "include_views: boolean expected"; return null; }; /** - * Creates a StartReplicationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.StartReplicationRequest + * @memberof vtctldata.ValidateVSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.StartReplicationRequest} StartReplicationRequest + * @returns {vtctldata.ValidateVSchemaRequest} ValidateVSchemaRequest */ - StartReplicationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.StartReplicationRequest) + ValidateVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidateVSchemaRequest) return object; - let message = new $root.vtctldata.StartReplicationRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.StartReplicationRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + let message = new $root.vtctldata.ValidateVSchemaRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".vtctldata.ValidateVSchemaRequest.shards: array expected"); + message.shards = []; + for (let i = 0; i < object.shards.length; ++i) + message.shards[i] = String(object.shards[i]); + } + if (object.exclude_tables) { + if (!Array.isArray(object.exclude_tables)) + throw TypeError(".vtctldata.ValidateVSchemaRequest.exclude_tables: array expected"); + message.exclude_tables = []; + for (let i = 0; i < object.exclude_tables.length; ++i) + message.exclude_tables[i] = String(object.exclude_tables[i]); } + if (object.include_views != null) + message.include_views = Boolean(object.include_views); return message; }; /** - * Creates a plain object from a StartReplicationRequest message. Also converts values to other types if specified. + * Creates a plain object from a ValidateVSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.StartReplicationRequest + * @memberof vtctldata.ValidateVSchemaRequest * @static - * @param {vtctldata.StartReplicationRequest} message StartReplicationRequest + * @param {vtctldata.ValidateVSchemaRequest} message ValidateVSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartReplicationRequest.toObject = function toObject(message, options) { + ValidateVSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.tablet_alias = null; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (options.arrays || options.defaults) { + object.shards = []; + object.exclude_tables = []; + } + if (options.defaults) { + object.keyspace = ""; + object.include_views = false; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shards && message.shards.length) { + object.shards = []; + for (let j = 0; j < message.shards.length; ++j) + object.shards[j] = message.shards[j]; + } + if (message.exclude_tables && message.exclude_tables.length) { + object.exclude_tables = []; + for (let j = 0; j < message.exclude_tables.length; ++j) + object.exclude_tables[j] = message.exclude_tables[j]; + } + if (message.include_views != null && message.hasOwnProperty("include_views")) + object.include_views = message.include_views; return object; }; /** - * Converts this StartReplicationRequest to JSON. + * Converts this ValidateVSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.StartReplicationRequest + * @memberof vtctldata.ValidateVSchemaRequest * @instance * @returns {Object.} JSON object */ - StartReplicationRequest.prototype.toJSON = function toJSON() { + ValidateVSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StartReplicationRequest + * Gets the default type url for ValidateVSchemaRequest * @function getTypeUrl - * @memberof vtctldata.StartReplicationRequest + * @memberof vtctldata.ValidateVSchemaRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StartReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateVSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.StartReplicationRequest"; + return typeUrlPrefix + "/vtctldata.ValidateVSchemaRequest"; }; - return StartReplicationRequest; + return ValidateVSchemaRequest; })(); - vtctldata.StartReplicationResponse = (function() { + vtctldata.ValidateVSchemaResponse = (function() { /** - * Properties of a StartReplicationResponse. + * Properties of a ValidateVSchemaResponse. * @memberof vtctldata - * @interface IStartReplicationResponse + * @interface IValidateVSchemaResponse + * @property {Array.|null} [results] ValidateVSchemaResponse results + * @property {Object.|null} [results_by_shard] ValidateVSchemaResponse results_by_shard */ /** - * Constructs a new StartReplicationResponse. + * Constructs a new ValidateVSchemaResponse. * @memberof vtctldata - * @classdesc Represents a StartReplicationResponse. - * @implements IStartReplicationResponse + * @classdesc Represents a ValidateVSchemaResponse. + * @implements IValidateVSchemaResponse * @constructor - * @param {vtctldata.IStartReplicationResponse=} [properties] Properties to set + * @param {vtctldata.IValidateVSchemaResponse=} [properties] Properties to set */ - function StartReplicationResponse(properties) { + function ValidateVSchemaResponse(properties) { + this.results = []; + this.results_by_shard = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -184162,63 +192317,116 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new StartReplicationResponse instance using the specified properties. + * ValidateVSchemaResponse results. + * @member {Array.} results + * @memberof vtctldata.ValidateVSchemaResponse + * @instance + */ + ValidateVSchemaResponse.prototype.results = $util.emptyArray; + + /** + * ValidateVSchemaResponse results_by_shard. + * @member {Object.} results_by_shard + * @memberof vtctldata.ValidateVSchemaResponse + * @instance + */ + ValidateVSchemaResponse.prototype.results_by_shard = $util.emptyObject; + + /** + * Creates a new ValidateVSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.StartReplicationResponse + * @memberof vtctldata.ValidateVSchemaResponse * @static - * @param {vtctldata.IStartReplicationResponse=} [properties] Properties to set - * @returns {vtctldata.StartReplicationResponse} StartReplicationResponse instance + * @param {vtctldata.IValidateVSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.ValidateVSchemaResponse} ValidateVSchemaResponse instance */ - StartReplicationResponse.create = function create(properties) { - return new StartReplicationResponse(properties); + ValidateVSchemaResponse.create = function create(properties) { + return new ValidateVSchemaResponse(properties); }; /** - * Encodes the specified StartReplicationResponse message. Does not implicitly {@link vtctldata.StartReplicationResponse.verify|verify} messages. + * Encodes the specified ValidateVSchemaResponse message. Does not implicitly {@link vtctldata.ValidateVSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.StartReplicationResponse + * @memberof vtctldata.ValidateVSchemaResponse * @static - * @param {vtctldata.IStartReplicationResponse} message StartReplicationResponse message or plain object to encode + * @param {vtctldata.IValidateVSchemaResponse} message ValidateVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartReplicationResponse.encode = function encode(message, writer) { + ValidateVSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.results != null && message.results.length) + for (let i = 0; i < message.results.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); + if (message.results_by_shard != null && Object.hasOwnProperty.call(message, "results_by_shard")) + for (let keys = Object.keys(message.results_by_shard), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtctldata.ValidateShardResponse.encode(message.results_by_shard[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified StartReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.StartReplicationResponse.verify|verify} messages. + * Encodes the specified ValidateVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.StartReplicationResponse + * @memberof vtctldata.ValidateVSchemaResponse * @static - * @param {vtctldata.IStartReplicationResponse} message StartReplicationResponse message or plain object to encode + * @param {vtctldata.IValidateVSchemaResponse} message ValidateVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartReplicationResponse.encodeDelimited = function encodeDelimited(message, writer) { + ValidateVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartReplicationResponse message from the specified reader or buffer. + * Decodes a ValidateVSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.StartReplicationResponse + * @memberof vtctldata.ValidateVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.StartReplicationResponse} StartReplicationResponse + * @returns {vtctldata.ValidateVSchemaResponse} ValidateVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartReplicationResponse.decode = function decode(reader, length) { + ValidateVSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.StartReplicationResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateVSchemaResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.results && message.results.length)) + message.results = []; + message.results.push(reader.string()); + break; + } + case 2: { + if (message.results_by_shard === $util.emptyObject) + message.results_by_shard = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.ValidateShardResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.results_by_shard[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -184228,109 +192436,187 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a StartReplicationResponse message from the specified reader or buffer, length delimited. + * Decodes a ValidateVSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.StartReplicationResponse + * @memberof vtctldata.ValidateVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.StartReplicationResponse} StartReplicationResponse + * @returns {vtctldata.ValidateVSchemaResponse} ValidateVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartReplicationResponse.decodeDelimited = function decodeDelimited(reader) { + ValidateVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartReplicationResponse message. + * Verifies a ValidateVSchemaResponse message. * @function verify - * @memberof vtctldata.StartReplicationResponse + * @memberof vtctldata.ValidateVSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartReplicationResponse.verify = function verify(message) { + ValidateVSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (let i = 0; i < message.results.length; ++i) + if (!$util.isString(message.results[i])) + return "results: string[] expected"; + } + if (message.results_by_shard != null && message.hasOwnProperty("results_by_shard")) { + if (!$util.isObject(message.results_by_shard)) + return "results_by_shard: object expected"; + let key = Object.keys(message.results_by_shard); + for (let i = 0; i < key.length; ++i) { + let error = $root.vtctldata.ValidateShardResponse.verify(message.results_by_shard[key[i]]); + if (error) + return "results_by_shard." + error; + } + } return null; }; /** - * Creates a StartReplicationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.StartReplicationResponse + * @memberof vtctldata.ValidateVSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.StartReplicationResponse} StartReplicationResponse + * @returns {vtctldata.ValidateVSchemaResponse} ValidateVSchemaResponse */ - StartReplicationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.StartReplicationResponse) + ValidateVSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ValidateVSchemaResponse) return object; - return new $root.vtctldata.StartReplicationResponse(); + let message = new $root.vtctldata.ValidateVSchemaResponse(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".vtctldata.ValidateVSchemaResponse.results: array expected"); + message.results = []; + for (let i = 0; i < object.results.length; ++i) + message.results[i] = String(object.results[i]); + } + if (object.results_by_shard) { + if (typeof object.results_by_shard !== "object") + throw TypeError(".vtctldata.ValidateVSchemaResponse.results_by_shard: object expected"); + message.results_by_shard = {}; + for (let keys = Object.keys(object.results_by_shard), i = 0; i < keys.length; ++i) { + if (typeof object.results_by_shard[keys[i]] !== "object") + throw TypeError(".vtctldata.ValidateVSchemaResponse.results_by_shard: object expected"); + message.results_by_shard[keys[i]] = $root.vtctldata.ValidateShardResponse.fromObject(object.results_by_shard[keys[i]]); + } + } + return message; }; /** - * Creates a plain object from a StartReplicationResponse message. Also converts values to other types if specified. + * Creates a plain object from a ValidateVSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.StartReplicationResponse + * @memberof vtctldata.ValidateVSchemaResponse * @static - * @param {vtctldata.StartReplicationResponse} message StartReplicationResponse + * @param {vtctldata.ValidateVSchemaResponse} message ValidateVSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartReplicationResponse.toObject = function toObject() { - return {}; + ValidateVSchemaResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.results = []; + if (options.objects || options.defaults) + object.results_by_shard = {}; + if (message.results && message.results.length) { + object.results = []; + for (let j = 0; j < message.results.length; ++j) + object.results[j] = message.results[j]; + } + let keys2; + if (message.results_by_shard && (keys2 = Object.keys(message.results_by_shard)).length) { + object.results_by_shard = {}; + for (let j = 0; j < keys2.length; ++j) + object.results_by_shard[keys2[j]] = $root.vtctldata.ValidateShardResponse.toObject(message.results_by_shard[keys2[j]], options); + } + return object; }; /** - * Converts this StartReplicationResponse to JSON. + * Converts this ValidateVSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.StartReplicationResponse + * @memberof vtctldata.ValidateVSchemaResponse * @instance * @returns {Object.} JSON object */ - StartReplicationResponse.prototype.toJSON = function toJSON() { + ValidateVSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StartReplicationResponse + * Gets the default type url for ValidateVSchemaResponse * @function getTypeUrl - * @memberof vtctldata.StartReplicationResponse + * @memberof vtctldata.ValidateVSchemaResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StartReplicationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateVSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.StartReplicationResponse"; + return typeUrlPrefix + "/vtctldata.ValidateVSchemaResponse"; }; - return StartReplicationResponse; + return ValidateVSchemaResponse; })(); - vtctldata.StopReplicationRequest = (function() { + vtctldata.VDiffCreateRequest = (function() { /** - * Properties of a StopReplicationRequest. + * Properties of a VDiffCreateRequest. * @memberof vtctldata - * @interface IStopReplicationRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] StopReplicationRequest tablet_alias + * @interface IVDiffCreateRequest + * @property {string|null} [workflow] VDiffCreateRequest workflow + * @property {string|null} [target_keyspace] VDiffCreateRequest target_keyspace + * @property {string|null} [uuid] VDiffCreateRequest uuid + * @property {Array.|null} [source_cells] VDiffCreateRequest source_cells + * @property {Array.|null} [target_cells] VDiffCreateRequest target_cells + * @property {Array.|null} [tablet_types] VDiffCreateRequest tablet_types + * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] VDiffCreateRequest tablet_selection_preference + * @property {Array.|null} [tables] VDiffCreateRequest tables + * @property {number|Long|null} [limit] VDiffCreateRequest limit + * @property {vttime.IDuration|null} [filtered_replication_wait_time] VDiffCreateRequest filtered_replication_wait_time + * @property {boolean|null} [debug_query] VDiffCreateRequest debug_query + * @property {boolean|null} [only_p_ks] VDiffCreateRequest only_p_ks + * @property {boolean|null} [update_table_stats] VDiffCreateRequest update_table_stats + * @property {number|Long|null} [max_extra_rows_to_compare] VDiffCreateRequest max_extra_rows_to_compare + * @property {boolean|null} [wait] VDiffCreateRequest wait + * @property {vttime.IDuration|null} [wait_update_interval] VDiffCreateRequest wait_update_interval + * @property {boolean|null} [auto_retry] VDiffCreateRequest auto_retry + * @property {boolean|null} [verbose] VDiffCreateRequest verbose + * @property {number|Long|null} [max_report_sample_rows] VDiffCreateRequest max_report_sample_rows + * @property {vttime.IDuration|null} [max_diff_duration] VDiffCreateRequest max_diff_duration + * @property {number|Long|null} [row_diff_column_truncate_at] VDiffCreateRequest row_diff_column_truncate_at + * @property {boolean|null} [auto_start] VDiffCreateRequest auto_start */ /** - * Constructs a new StopReplicationRequest. + * Constructs a new VDiffCreateRequest. * @memberof vtctldata - * @classdesc Represents a StopReplicationRequest. - * @implements IStopReplicationRequest + * @classdesc Represents a VDiffCreateRequest. + * @implements IVDiffCreateRequest * @constructor - * @param {vtctldata.IStopReplicationRequest=} [properties] Properties to set + * @param {vtctldata.IVDiffCreateRequest=} [properties] Properties to set */ - function StopReplicationRequest(properties) { + function VDiffCreateRequest(properties) { + this.source_cells = []; + this.target_cells = []; + this.tablet_types = []; + this.tables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -184338,270 +192624,400 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * StopReplicationRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.StopReplicationRequest + * VDiffCreateRequest workflow. + * @member {string} workflow + * @memberof vtctldata.VDiffCreateRequest * @instance */ - StopReplicationRequest.prototype.tablet_alias = null; + VDiffCreateRequest.prototype.workflow = ""; /** - * Creates a new StopReplicationRequest instance using the specified properties. - * @function create - * @memberof vtctldata.StopReplicationRequest - * @static - * @param {vtctldata.IStopReplicationRequest=} [properties] Properties to set - * @returns {vtctldata.StopReplicationRequest} StopReplicationRequest instance + * VDiffCreateRequest target_keyspace. + * @member {string} target_keyspace + * @memberof vtctldata.VDiffCreateRequest + * @instance */ - StopReplicationRequest.create = function create(properties) { - return new StopReplicationRequest(properties); - }; + VDiffCreateRequest.prototype.target_keyspace = ""; /** - * Encodes the specified StopReplicationRequest message. Does not implicitly {@link vtctldata.StopReplicationRequest.verify|verify} messages. - * @function encode - * @memberof vtctldata.StopReplicationRequest - * @static - * @param {vtctldata.IStopReplicationRequest} message StopReplicationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * VDiffCreateRequest uuid. + * @member {string} uuid + * @memberof vtctldata.VDiffCreateRequest + * @instance */ - StopReplicationRequest.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(); - return writer; - }; + VDiffCreateRequest.prototype.uuid = ""; /** - * Encodes the specified StopReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.StopReplicationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.StopReplicationRequest - * @static - * @param {vtctldata.IStopReplicationRequest} message StopReplicationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * VDiffCreateRequest source_cells. + * @member {Array.} source_cells + * @memberof vtctldata.VDiffCreateRequest + * @instance */ - StopReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + VDiffCreateRequest.prototype.source_cells = $util.emptyArray; /** - * Decodes a StopReplicationRequest message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.StopReplicationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.StopReplicationRequest} StopReplicationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * VDiffCreateRequest target_cells. + * @member {Array.} target_cells + * @memberof vtctldata.VDiffCreateRequest + * @instance */ - StopReplicationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.StopReplicationRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + VDiffCreateRequest.prototype.target_cells = $util.emptyArray; /** - * Decodes a StopReplicationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.StopReplicationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.StopReplicationRequest} StopReplicationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * VDiffCreateRequest tablet_types. + * @member {Array.} tablet_types + * @memberof vtctldata.VDiffCreateRequest + * @instance */ - StopReplicationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + VDiffCreateRequest.prototype.tablet_types = $util.emptyArray; /** - * Verifies a StopReplicationRequest message. - * @function verify - * @memberof vtctldata.StopReplicationRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * VDiffCreateRequest tablet_selection_preference. + * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference + * @memberof vtctldata.VDiffCreateRequest + * @instance */ - StopReplicationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - return null; - }; + VDiffCreateRequest.prototype.tablet_selection_preference = 0; /** - * Creates a StopReplicationRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.StopReplicationRequest - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.StopReplicationRequest} StopReplicationRequest + * VDiffCreateRequest tables. + * @member {Array.} tables + * @memberof vtctldata.VDiffCreateRequest + * @instance */ - StopReplicationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.StopReplicationRequest) - return object; - let message = new $root.vtctldata.StopReplicationRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.StopReplicationRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - return message; - }; + VDiffCreateRequest.prototype.tables = $util.emptyArray; /** - * Creates a plain object from a StopReplicationRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.StopReplicationRequest - * @static - * @param {vtctldata.StopReplicationRequest} message StopReplicationRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * VDiffCreateRequest limit. + * @member {number|Long} limit + * @memberof vtctldata.VDiffCreateRequest + * @instance */ - StopReplicationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.tablet_alias = null; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - return object; - }; + VDiffCreateRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Converts this StopReplicationRequest to JSON. - * @function toJSON - * @memberof vtctldata.StopReplicationRequest + * VDiffCreateRequest filtered_replication_wait_time. + * @member {vttime.IDuration|null|undefined} filtered_replication_wait_time + * @memberof vtctldata.VDiffCreateRequest * @instance - * @returns {Object.} JSON object */ - StopReplicationRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + VDiffCreateRequest.prototype.filtered_replication_wait_time = null; /** - * Gets the default type url for StopReplicationRequest - * @function getTypeUrl - * @memberof vtctldata.StopReplicationRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * VDiffCreateRequest debug_query. + * @member {boolean} debug_query + * @memberof vtctldata.VDiffCreateRequest + * @instance */ - StopReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.StopReplicationRequest"; - }; + VDiffCreateRequest.prototype.debug_query = false; - return StopReplicationRequest; - })(); + /** + * VDiffCreateRequest only_p_ks. + * @member {boolean} only_p_ks + * @memberof vtctldata.VDiffCreateRequest + * @instance + */ + VDiffCreateRequest.prototype.only_p_ks = false; - vtctldata.StopReplicationResponse = (function() { + /** + * VDiffCreateRequest update_table_stats. + * @member {boolean} update_table_stats + * @memberof vtctldata.VDiffCreateRequest + * @instance + */ + VDiffCreateRequest.prototype.update_table_stats = false; /** - * Properties of a StopReplicationResponse. - * @memberof vtctldata - * @interface IStopReplicationResponse + * VDiffCreateRequest max_extra_rows_to_compare. + * @member {number|Long} max_extra_rows_to_compare + * @memberof vtctldata.VDiffCreateRequest + * @instance + */ + VDiffCreateRequest.prototype.max_extra_rows_to_compare = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * VDiffCreateRequest wait. + * @member {boolean} wait + * @memberof vtctldata.VDiffCreateRequest + * @instance + */ + VDiffCreateRequest.prototype.wait = false; + + /** + * VDiffCreateRequest wait_update_interval. + * @member {vttime.IDuration|null|undefined} wait_update_interval + * @memberof vtctldata.VDiffCreateRequest + * @instance + */ + VDiffCreateRequest.prototype.wait_update_interval = null; + + /** + * VDiffCreateRequest auto_retry. + * @member {boolean} auto_retry + * @memberof vtctldata.VDiffCreateRequest + * @instance + */ + VDiffCreateRequest.prototype.auto_retry = false; + + /** + * VDiffCreateRequest verbose. + * @member {boolean} verbose + * @memberof vtctldata.VDiffCreateRequest + * @instance + */ + VDiffCreateRequest.prototype.verbose = false; + + /** + * VDiffCreateRequest max_report_sample_rows. + * @member {number|Long} max_report_sample_rows + * @memberof vtctldata.VDiffCreateRequest + * @instance + */ + VDiffCreateRequest.prototype.max_report_sample_rows = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * VDiffCreateRequest max_diff_duration. + * @member {vttime.IDuration|null|undefined} max_diff_duration + * @memberof vtctldata.VDiffCreateRequest + * @instance + */ + VDiffCreateRequest.prototype.max_diff_duration = null; + + /** + * VDiffCreateRequest row_diff_column_truncate_at. + * @member {number|Long} row_diff_column_truncate_at + * @memberof vtctldata.VDiffCreateRequest + * @instance + */ + VDiffCreateRequest.prototype.row_diff_column_truncate_at = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * VDiffCreateRequest auto_start. + * @member {boolean|null|undefined} auto_start + * @memberof vtctldata.VDiffCreateRequest + * @instance */ + VDiffCreateRequest.prototype.auto_start = null; - /** - * Constructs a new StopReplicationResponse. - * @memberof vtctldata - * @classdesc Represents a StopReplicationResponse. - * @implements IStopReplicationResponse - * @constructor - * @param {vtctldata.IStopReplicationResponse=} [properties] Properties to set - */ - function StopReplicationResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VDiffCreateRequest.prototype, "_auto_start", { + get: $util.oneOfGetter($oneOfFields = ["auto_start"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new StopReplicationResponse instance using the specified properties. + * Creates a new VDiffCreateRequest instance using the specified properties. * @function create - * @memberof vtctldata.StopReplicationResponse + * @memberof vtctldata.VDiffCreateRequest * @static - * @param {vtctldata.IStopReplicationResponse=} [properties] Properties to set - * @returns {vtctldata.StopReplicationResponse} StopReplicationResponse instance + * @param {vtctldata.IVDiffCreateRequest=} [properties] Properties to set + * @returns {vtctldata.VDiffCreateRequest} VDiffCreateRequest instance */ - StopReplicationResponse.create = function create(properties) { - return new StopReplicationResponse(properties); + VDiffCreateRequest.create = function create(properties) { + return new VDiffCreateRequest(properties); }; /** - * Encodes the specified StopReplicationResponse message. Does not implicitly {@link vtctldata.StopReplicationResponse.verify|verify} messages. + * Encodes the specified VDiffCreateRequest message. Does not implicitly {@link vtctldata.VDiffCreateRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.StopReplicationResponse + * @memberof vtctldata.VDiffCreateRequest * @static - * @param {vtctldata.IStopReplicationResponse} message StopReplicationResponse message or plain object to encode + * @param {vtctldata.IVDiffCreateRequest} message VDiffCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationResponse.encode = function encode(message, writer) { + VDiffCreateRequest.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.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.target_keyspace); + if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid); + if (message.source_cells != null && message.source_cells.length) + for (let i = 0; i < message.source_cells.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.source_cells[i]); + if (message.target_cells != null && message.target_cells.length) + for (let i = 0; i < message.target_cells.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.target_cells[i]); + if (message.tablet_types != null && message.tablet_types.length) { + writer.uint32(/* id 6, wireType 2 =*/50).fork(); + for (let i = 0; i < message.tablet_types.length; ++i) + writer.int32(message.tablet_types[i]); + writer.ldelim(); + } + if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.tablet_selection_preference); + if (message.tables != null && message.tables.length) + for (let i = 0; i < message.tables.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.tables[i]); + if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) + writer.uint32(/* id 9, wireType 0 =*/72).int64(message.limit); + if (message.filtered_replication_wait_time != null && Object.hasOwnProperty.call(message, "filtered_replication_wait_time")) + $root.vttime.Duration.encode(message.filtered_replication_wait_time, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.debug_query != null && Object.hasOwnProperty.call(message, "debug_query")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.debug_query); + if (message.only_p_ks != null && Object.hasOwnProperty.call(message, "only_p_ks")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.only_p_ks); + if (message.update_table_stats != null && Object.hasOwnProperty.call(message, "update_table_stats")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.update_table_stats); + if (message.max_extra_rows_to_compare != null && Object.hasOwnProperty.call(message, "max_extra_rows_to_compare")) + writer.uint32(/* id 14, wireType 0 =*/112).int64(message.max_extra_rows_to_compare); + if (message.wait != null && Object.hasOwnProperty.call(message, "wait")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.wait); + if (message.wait_update_interval != null && Object.hasOwnProperty.call(message, "wait_update_interval")) + $root.vttime.Duration.encode(message.wait_update_interval, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.auto_retry != null && Object.hasOwnProperty.call(message, "auto_retry")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.auto_retry); + if (message.verbose != null && Object.hasOwnProperty.call(message, "verbose")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.verbose); + if (message.max_report_sample_rows != null && Object.hasOwnProperty.call(message, "max_report_sample_rows")) + writer.uint32(/* id 19, wireType 0 =*/152).int64(message.max_report_sample_rows); + if (message.max_diff_duration != null && Object.hasOwnProperty.call(message, "max_diff_duration")) + $root.vttime.Duration.encode(message.max_diff_duration, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.row_diff_column_truncate_at != null && Object.hasOwnProperty.call(message, "row_diff_column_truncate_at")) + writer.uint32(/* id 21, wireType 0 =*/168).int64(message.row_diff_column_truncate_at); + if (message.auto_start != null && Object.hasOwnProperty.call(message, "auto_start")) + writer.uint32(/* id 22, wireType 0 =*/176).bool(message.auto_start); return writer; }; /** - * Encodes the specified StopReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.StopReplicationResponse.verify|verify} messages. + * Encodes the specified VDiffCreateRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffCreateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.StopReplicationResponse + * @memberof vtctldata.VDiffCreateRequest * @static - * @param {vtctldata.IStopReplicationResponse} message StopReplicationResponse message or plain object to encode + * @param {vtctldata.IVDiffCreateRequest} message VDiffCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationResponse.encodeDelimited = function encodeDelimited(message, writer) { + VDiffCreateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopReplicationResponse message from the specified reader or buffer. + * Decodes a VDiffCreateRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.StopReplicationResponse + * @memberof vtctldata.VDiffCreateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.StopReplicationResponse} StopReplicationResponse + * @returns {vtctldata.VDiffCreateRequest} VDiffCreateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationResponse.decode = function decode(reader, length) { + VDiffCreateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.StopReplicationResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffCreateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.workflow = reader.string(); + break; + } + case 2: { + message.target_keyspace = reader.string(); + break; + } + case 3: { + message.uuid = reader.string(); + break; + } + case 4: { + if (!(message.source_cells && message.source_cells.length)) + message.source_cells = []; + message.source_cells.push(reader.string()); + break; + } + case 5: { + if (!(message.target_cells && message.target_cells.length)) + message.target_cells = []; + message.target_cells.push(reader.string()); + break; + } + case 6: { + if (!(message.tablet_types && message.tablet_types.length)) + message.tablet_types = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.tablet_types.push(reader.int32()); + } else + message.tablet_types.push(reader.int32()); + break; + } + case 7: { + message.tablet_selection_preference = reader.int32(); + break; + } + case 8: { + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); + break; + } + case 9: { + message.limit = reader.int64(); + break; + } + case 10: { + message.filtered_replication_wait_time = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + } + case 11: { + message.debug_query = reader.bool(); + break; + } + case 12: { + message.only_p_ks = reader.bool(); + break; + } + case 13: { + message.update_table_stats = reader.bool(); + break; + } + case 14: { + message.max_extra_rows_to_compare = reader.int64(); + break; + } + case 15: { + message.wait = reader.bool(); + break; + } + case 16: { + message.wait_update_interval = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + } + case 17: { + message.auto_retry = reader.bool(); + break; + } + case 18: { + message.verbose = reader.bool(); + break; + } + case 19: { + message.max_report_sample_rows = reader.int64(); + break; + } + case 20: { + message.max_diff_duration = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + } + case 21: { + message.row_diff_column_truncate_at = reader.int64(); + break; + } + case 22: { + message.auto_start = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -184611,109 +193027,505 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a StopReplicationResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffCreateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.StopReplicationResponse + * @memberof vtctldata.VDiffCreateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.StopReplicationResponse} StopReplicationResponse + * @returns {vtctldata.VDiffCreateRequest} VDiffCreateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationResponse.decodeDelimited = function decodeDelimited(reader) { + VDiffCreateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopReplicationResponse message. + * Verifies a VDiffCreateRequest message. * @function verify - * @memberof vtctldata.StopReplicationResponse + * @memberof vtctldata.VDiffCreateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopReplicationResponse.verify = function verify(message) { + VDiffCreateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + let properties = {}; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + if (!$util.isString(message.target_keyspace)) + return "target_keyspace: string expected"; + if (message.uuid != null && message.hasOwnProperty("uuid")) + if (!$util.isString(message.uuid)) + return "uuid: string expected"; + if (message.source_cells != null && message.hasOwnProperty("source_cells")) { + if (!Array.isArray(message.source_cells)) + return "source_cells: array expected"; + for (let i = 0; i < message.source_cells.length; ++i) + if (!$util.isString(message.source_cells[i])) + return "source_cells: string[] expected"; + } + if (message.target_cells != null && message.hasOwnProperty("target_cells")) { + if (!Array.isArray(message.target_cells)) + return "target_cells: array expected"; + for (let i = 0; i < message.target_cells.length; ++i) + if (!$util.isString(message.target_cells[i])) + return "target_cells: string[] expected"; + } + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { + if (!Array.isArray(message.tablet_types)) + return "tablet_types: array expected"; + for (let i = 0; i < message.tablet_types.length; ++i) + switch (message.tablet_types[i]) { + default: + return "tablet_types: enum value[] expected"; + case 0: + case 1: + case 1: + case 2: + case 3: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + switch (message.tablet_selection_preference) { + default: + return "tablet_selection_preference: enum value expected"; + case 0: + case 1: + case 3: + break; + } + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (let i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit) && !(message.limit && $util.isInteger(message.limit.low) && $util.isInteger(message.limit.high))) + return "limit: integer|Long expected"; + if (message.filtered_replication_wait_time != null && message.hasOwnProperty("filtered_replication_wait_time")) { + let error = $root.vttime.Duration.verify(message.filtered_replication_wait_time); + if (error) + return "filtered_replication_wait_time." + error; + } + if (message.debug_query != null && message.hasOwnProperty("debug_query")) + if (typeof message.debug_query !== "boolean") + return "debug_query: boolean expected"; + if (message.only_p_ks != null && message.hasOwnProperty("only_p_ks")) + if (typeof message.only_p_ks !== "boolean") + return "only_p_ks: boolean expected"; + if (message.update_table_stats != null && message.hasOwnProperty("update_table_stats")) + if (typeof message.update_table_stats !== "boolean") + return "update_table_stats: boolean expected"; + if (message.max_extra_rows_to_compare != null && message.hasOwnProperty("max_extra_rows_to_compare")) + if (!$util.isInteger(message.max_extra_rows_to_compare) && !(message.max_extra_rows_to_compare && $util.isInteger(message.max_extra_rows_to_compare.low) && $util.isInteger(message.max_extra_rows_to_compare.high))) + return "max_extra_rows_to_compare: integer|Long expected"; + if (message.wait != null && message.hasOwnProperty("wait")) + if (typeof message.wait !== "boolean") + return "wait: boolean expected"; + if (message.wait_update_interval != null && message.hasOwnProperty("wait_update_interval")) { + let error = $root.vttime.Duration.verify(message.wait_update_interval); + if (error) + return "wait_update_interval." + error; + } + if (message.auto_retry != null && message.hasOwnProperty("auto_retry")) + if (typeof message.auto_retry !== "boolean") + return "auto_retry: boolean expected"; + if (message.verbose != null && message.hasOwnProperty("verbose")) + if (typeof message.verbose !== "boolean") + return "verbose: boolean expected"; + if (message.max_report_sample_rows != null && message.hasOwnProperty("max_report_sample_rows")) + if (!$util.isInteger(message.max_report_sample_rows) && !(message.max_report_sample_rows && $util.isInteger(message.max_report_sample_rows.low) && $util.isInteger(message.max_report_sample_rows.high))) + return "max_report_sample_rows: integer|Long expected"; + if (message.max_diff_duration != null && message.hasOwnProperty("max_diff_duration")) { + let error = $root.vttime.Duration.verify(message.max_diff_duration); + if (error) + return "max_diff_duration." + error; + } + if (message.row_diff_column_truncate_at != null && message.hasOwnProperty("row_diff_column_truncate_at")) + if (!$util.isInteger(message.row_diff_column_truncate_at) && !(message.row_diff_column_truncate_at && $util.isInteger(message.row_diff_column_truncate_at.low) && $util.isInteger(message.row_diff_column_truncate_at.high))) + return "row_diff_column_truncate_at: integer|Long expected"; + if (message.auto_start != null && message.hasOwnProperty("auto_start")) { + properties._auto_start = 1; + if (typeof message.auto_start !== "boolean") + return "auto_start: boolean expected"; + } return null; }; /** - * Creates a StopReplicationResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffCreateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.StopReplicationResponse + * @memberof vtctldata.VDiffCreateRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.StopReplicationResponse} StopReplicationResponse + * @returns {vtctldata.VDiffCreateRequest} VDiffCreateRequest */ - StopReplicationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.StopReplicationResponse) + VDiffCreateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VDiffCreateRequest) return object; - return new $root.vtctldata.StopReplicationResponse(); + let message = new $root.vtctldata.VDiffCreateRequest(); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.target_keyspace != null) + message.target_keyspace = String(object.target_keyspace); + if (object.uuid != null) + message.uuid = String(object.uuid); + if (object.source_cells) { + if (!Array.isArray(object.source_cells)) + throw TypeError(".vtctldata.VDiffCreateRequest.source_cells: array expected"); + message.source_cells = []; + for (let i = 0; i < object.source_cells.length; ++i) + message.source_cells[i] = String(object.source_cells[i]); + } + if (object.target_cells) { + if (!Array.isArray(object.target_cells)) + throw TypeError(".vtctldata.VDiffCreateRequest.target_cells: array expected"); + message.target_cells = []; + for (let i = 0; i < object.target_cells.length; ++i) + message.target_cells[i] = String(object.target_cells[i]); + } + if (object.tablet_types) { + if (!Array.isArray(object.tablet_types)) + throw TypeError(".vtctldata.VDiffCreateRequest.tablet_types: array expected"); + message.tablet_types = []; + for (let i = 0; i < object.tablet_types.length; ++i) + switch (object.tablet_types[i]) { + default: + if (typeof object.tablet_types[i] === "number") { + message.tablet_types[i] = object.tablet_types[i]; + break; + } + case "UNKNOWN": + case 0: + message.tablet_types[i] = 0; + break; + case "PRIMARY": + case 1: + message.tablet_types[i] = 1; + break; + case "MASTER": + case 1: + message.tablet_types[i] = 1; + break; + case "REPLICA": + case 2: + message.tablet_types[i] = 2; + break; + case "RDONLY": + case 3: + message.tablet_types[i] = 3; + break; + case "BATCH": + case 3: + message.tablet_types[i] = 3; + break; + case "SPARE": + case 4: + message.tablet_types[i] = 4; + break; + case "EXPERIMENTAL": + case 5: + message.tablet_types[i] = 5; + break; + case "BACKUP": + case 6: + message.tablet_types[i] = 6; + break; + case "RESTORE": + case 7: + message.tablet_types[i] = 7; + break; + case "DRAINED": + case 8: + message.tablet_types[i] = 8; + break; + } + } + switch (object.tablet_selection_preference) { + default: + if (typeof object.tablet_selection_preference === "number") { + message.tablet_selection_preference = object.tablet_selection_preference; + break; + } + break; + case "ANY": + case 0: + message.tablet_selection_preference = 0; + break; + case "INORDER": + case 1: + message.tablet_selection_preference = 1; + break; + case "UNKNOWN": + case 3: + message.tablet_selection_preference = 3; + break; + } + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".vtctldata.VDiffCreateRequest.tables: array expected"); + message.tables = []; + for (let i = 0; i < object.tables.length; ++i) + message.tables[i] = String(object.tables[i]); + } + if (object.limit != null) + if ($util.Long) + (message.limit = $util.Long.fromValue(object.limit)).unsigned = false; + else if (typeof object.limit === "string") + message.limit = parseInt(object.limit, 10); + else if (typeof object.limit === "number") + message.limit = object.limit; + else if (typeof object.limit === "object") + message.limit = new $util.LongBits(object.limit.low >>> 0, object.limit.high >>> 0).toNumber(); + if (object.filtered_replication_wait_time != null) { + if (typeof object.filtered_replication_wait_time !== "object") + throw TypeError(".vtctldata.VDiffCreateRequest.filtered_replication_wait_time: object expected"); + message.filtered_replication_wait_time = $root.vttime.Duration.fromObject(object.filtered_replication_wait_time); + } + if (object.debug_query != null) + message.debug_query = Boolean(object.debug_query); + if (object.only_p_ks != null) + message.only_p_ks = Boolean(object.only_p_ks); + if (object.update_table_stats != null) + message.update_table_stats = Boolean(object.update_table_stats); + if (object.max_extra_rows_to_compare != null) + if ($util.Long) + (message.max_extra_rows_to_compare = $util.Long.fromValue(object.max_extra_rows_to_compare)).unsigned = false; + else if (typeof object.max_extra_rows_to_compare === "string") + message.max_extra_rows_to_compare = parseInt(object.max_extra_rows_to_compare, 10); + else if (typeof object.max_extra_rows_to_compare === "number") + message.max_extra_rows_to_compare = object.max_extra_rows_to_compare; + else if (typeof object.max_extra_rows_to_compare === "object") + message.max_extra_rows_to_compare = new $util.LongBits(object.max_extra_rows_to_compare.low >>> 0, object.max_extra_rows_to_compare.high >>> 0).toNumber(); + if (object.wait != null) + message.wait = Boolean(object.wait); + if (object.wait_update_interval != null) { + if (typeof object.wait_update_interval !== "object") + throw TypeError(".vtctldata.VDiffCreateRequest.wait_update_interval: object expected"); + message.wait_update_interval = $root.vttime.Duration.fromObject(object.wait_update_interval); + } + if (object.auto_retry != null) + message.auto_retry = Boolean(object.auto_retry); + if (object.verbose != null) + message.verbose = Boolean(object.verbose); + if (object.max_report_sample_rows != null) + if ($util.Long) + (message.max_report_sample_rows = $util.Long.fromValue(object.max_report_sample_rows)).unsigned = false; + else if (typeof object.max_report_sample_rows === "string") + message.max_report_sample_rows = parseInt(object.max_report_sample_rows, 10); + else if (typeof object.max_report_sample_rows === "number") + message.max_report_sample_rows = object.max_report_sample_rows; + else if (typeof object.max_report_sample_rows === "object") + message.max_report_sample_rows = new $util.LongBits(object.max_report_sample_rows.low >>> 0, object.max_report_sample_rows.high >>> 0).toNumber(); + if (object.max_diff_duration != null) { + if (typeof object.max_diff_duration !== "object") + throw TypeError(".vtctldata.VDiffCreateRequest.max_diff_duration: object expected"); + message.max_diff_duration = $root.vttime.Duration.fromObject(object.max_diff_duration); + } + if (object.row_diff_column_truncate_at != null) + if ($util.Long) + (message.row_diff_column_truncate_at = $util.Long.fromValue(object.row_diff_column_truncate_at)).unsigned = false; + else if (typeof object.row_diff_column_truncate_at === "string") + message.row_diff_column_truncate_at = parseInt(object.row_diff_column_truncate_at, 10); + else if (typeof object.row_diff_column_truncate_at === "number") + message.row_diff_column_truncate_at = object.row_diff_column_truncate_at; + else if (typeof object.row_diff_column_truncate_at === "object") + message.row_diff_column_truncate_at = new $util.LongBits(object.row_diff_column_truncate_at.low >>> 0, object.row_diff_column_truncate_at.high >>> 0).toNumber(); + if (object.auto_start != null) + message.auto_start = Boolean(object.auto_start); + return message; }; /** - * Creates a plain object from a StopReplicationResponse message. Also converts values to other types if specified. + * Creates a plain object from a VDiffCreateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.StopReplicationResponse + * @memberof vtctldata.VDiffCreateRequest * @static - * @param {vtctldata.StopReplicationResponse} message StopReplicationResponse + * @param {vtctldata.VDiffCreateRequest} message VDiffCreateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopReplicationResponse.toObject = function toObject() { - return {}; + VDiffCreateRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.source_cells = []; + object.target_cells = []; + object.tablet_types = []; + object.tables = []; + } + if (options.defaults) { + object.workflow = ""; + object.target_keyspace = ""; + object.uuid = ""; + object.tablet_selection_preference = options.enums === String ? "ANY" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.limit = options.longs === String ? "0" : 0; + object.filtered_replication_wait_time = null; + object.debug_query = false; + object.only_p_ks = false; + object.update_table_stats = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.max_extra_rows_to_compare = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_extra_rows_to_compare = options.longs === String ? "0" : 0; + object.wait = false; + object.wait_update_interval = null; + object.auto_retry = false; + object.verbose = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.max_report_sample_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_report_sample_rows = options.longs === String ? "0" : 0; + object.max_diff_duration = null; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.row_diff_column_truncate_at = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.row_diff_column_truncate_at = options.longs === String ? "0" : 0; + } + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + object.target_keyspace = message.target_keyspace; + if (message.uuid != null && message.hasOwnProperty("uuid")) + object.uuid = message.uuid; + if (message.source_cells && message.source_cells.length) { + object.source_cells = []; + for (let j = 0; j < message.source_cells.length; ++j) + object.source_cells[j] = message.source_cells[j]; + } + if (message.target_cells && message.target_cells.length) { + object.target_cells = []; + for (let j = 0; j < message.target_cells.length; ++j) + object.target_cells[j] = message.target_cells[j]; + } + if (message.tablet_types && message.tablet_types.length) { + object.tablet_types = []; + for (let j = 0; j < message.tablet_types.length; ++j) + object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; + } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) + object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; + if (message.tables && message.tables.length) { + object.tables = []; + for (let j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (typeof message.limit === "number") + object.limit = options.longs === String ? String(message.limit) : message.limit; + else + object.limit = options.longs === String ? $util.Long.prototype.toString.call(message.limit) : options.longs === Number ? new $util.LongBits(message.limit.low >>> 0, message.limit.high >>> 0).toNumber() : message.limit; + if (message.filtered_replication_wait_time != null && message.hasOwnProperty("filtered_replication_wait_time")) + object.filtered_replication_wait_time = $root.vttime.Duration.toObject(message.filtered_replication_wait_time, options); + if (message.debug_query != null && message.hasOwnProperty("debug_query")) + object.debug_query = message.debug_query; + if (message.only_p_ks != null && message.hasOwnProperty("only_p_ks")) + object.only_p_ks = message.only_p_ks; + if (message.update_table_stats != null && message.hasOwnProperty("update_table_stats")) + object.update_table_stats = message.update_table_stats; + if (message.max_extra_rows_to_compare != null && message.hasOwnProperty("max_extra_rows_to_compare")) + if (typeof message.max_extra_rows_to_compare === "number") + object.max_extra_rows_to_compare = options.longs === String ? String(message.max_extra_rows_to_compare) : message.max_extra_rows_to_compare; + else + object.max_extra_rows_to_compare = options.longs === String ? $util.Long.prototype.toString.call(message.max_extra_rows_to_compare) : options.longs === Number ? new $util.LongBits(message.max_extra_rows_to_compare.low >>> 0, message.max_extra_rows_to_compare.high >>> 0).toNumber() : message.max_extra_rows_to_compare; + if (message.wait != null && message.hasOwnProperty("wait")) + object.wait = message.wait; + if (message.wait_update_interval != null && message.hasOwnProperty("wait_update_interval")) + object.wait_update_interval = $root.vttime.Duration.toObject(message.wait_update_interval, options); + if (message.auto_retry != null && message.hasOwnProperty("auto_retry")) + object.auto_retry = message.auto_retry; + if (message.verbose != null && message.hasOwnProperty("verbose")) + object.verbose = message.verbose; + if (message.max_report_sample_rows != null && message.hasOwnProperty("max_report_sample_rows")) + if (typeof message.max_report_sample_rows === "number") + object.max_report_sample_rows = options.longs === String ? String(message.max_report_sample_rows) : message.max_report_sample_rows; + else + object.max_report_sample_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_report_sample_rows) : options.longs === Number ? new $util.LongBits(message.max_report_sample_rows.low >>> 0, message.max_report_sample_rows.high >>> 0).toNumber() : message.max_report_sample_rows; + if (message.max_diff_duration != null && message.hasOwnProperty("max_diff_duration")) + object.max_diff_duration = $root.vttime.Duration.toObject(message.max_diff_duration, options); + if (message.row_diff_column_truncate_at != null && message.hasOwnProperty("row_diff_column_truncate_at")) + if (typeof message.row_diff_column_truncate_at === "number") + object.row_diff_column_truncate_at = options.longs === String ? String(message.row_diff_column_truncate_at) : message.row_diff_column_truncate_at; + else + object.row_diff_column_truncate_at = options.longs === String ? $util.Long.prototype.toString.call(message.row_diff_column_truncate_at) : options.longs === Number ? new $util.LongBits(message.row_diff_column_truncate_at.low >>> 0, message.row_diff_column_truncate_at.high >>> 0).toNumber() : message.row_diff_column_truncate_at; + if (message.auto_start != null && message.hasOwnProperty("auto_start")) { + object.auto_start = message.auto_start; + if (options.oneofs) + object._auto_start = "auto_start"; + } + return object; }; /** - * Converts this StopReplicationResponse to JSON. + * Converts this VDiffCreateRequest to JSON. * @function toJSON - * @memberof vtctldata.StopReplicationResponse + * @memberof vtctldata.VDiffCreateRequest * @instance * @returns {Object.} JSON object */ - StopReplicationResponse.prototype.toJSON = function toJSON() { + VDiffCreateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StopReplicationResponse + * Gets the default type url for VDiffCreateRequest * @function getTypeUrl - * @memberof vtctldata.StopReplicationResponse + * @memberof vtctldata.VDiffCreateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StopReplicationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffCreateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.StopReplicationResponse"; + return typeUrlPrefix + "/vtctldata.VDiffCreateRequest"; }; - return StopReplicationResponse; + return VDiffCreateRequest; })(); - vtctldata.TabletExternallyReparentedRequest = (function() { + vtctldata.VDiffCreateResponse = (function() { /** - * Properties of a TabletExternallyReparentedRequest. + * Properties of a VDiffCreateResponse. * @memberof vtctldata - * @interface ITabletExternallyReparentedRequest - * @property {topodata.ITabletAlias|null} [tablet] TabletExternallyReparentedRequest tablet + * @interface IVDiffCreateResponse + * @property {string|null} [UUID] VDiffCreateResponse UUID */ /** - * Constructs a new TabletExternallyReparentedRequest. + * Constructs a new VDiffCreateResponse. * @memberof vtctldata - * @classdesc Represents a TabletExternallyReparentedRequest. - * @implements ITabletExternallyReparentedRequest + * @classdesc Represents a VDiffCreateResponse. + * @implements IVDiffCreateResponse * @constructor - * @param {vtctldata.ITabletExternallyReparentedRequest=} [properties] Properties to set + * @param {vtctldata.IVDiffCreateResponse=} [properties] Properties to set */ - function TabletExternallyReparentedRequest(properties) { + function VDiffCreateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -184721,75 +193533,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * TabletExternallyReparentedRequest tablet. - * @member {topodata.ITabletAlias|null|undefined} tablet - * @memberof vtctldata.TabletExternallyReparentedRequest + * VDiffCreateResponse UUID. + * @member {string} UUID + * @memberof vtctldata.VDiffCreateResponse * @instance */ - TabletExternallyReparentedRequest.prototype.tablet = null; + VDiffCreateResponse.prototype.UUID = ""; /** - * Creates a new TabletExternallyReparentedRequest instance using the specified properties. + * Creates a new VDiffCreateResponse instance using the specified properties. * @function create - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof vtctldata.VDiffCreateResponse * @static - * @param {vtctldata.ITabletExternallyReparentedRequest=} [properties] Properties to set - * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest instance + * @param {vtctldata.IVDiffCreateResponse=} [properties] Properties to set + * @returns {vtctldata.VDiffCreateResponse} VDiffCreateResponse instance */ - TabletExternallyReparentedRequest.create = function create(properties) { - return new TabletExternallyReparentedRequest(properties); + VDiffCreateResponse.create = function create(properties) { + return new VDiffCreateResponse(properties); }; /** - * Encodes the specified TabletExternallyReparentedRequest message. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. + * Encodes the specified VDiffCreateResponse message. Does not implicitly {@link vtctldata.VDiffCreateResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof vtctldata.VDiffCreateResponse * @static - * @param {vtctldata.ITabletExternallyReparentedRequest} message TabletExternallyReparentedRequest message or plain object to encode + * @param {vtctldata.IVDiffCreateResponse} message VDiffCreateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TabletExternallyReparentedRequest.encode = function encode(message, writer) { + VDiffCreateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) - $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.UUID != null && Object.hasOwnProperty.call(message, "UUID")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.UUID); return writer; }; /** - * Encodes the specified TabletExternallyReparentedRequest message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. + * Encodes the specified VDiffCreateResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffCreateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof vtctldata.VDiffCreateResponse * @static - * @param {vtctldata.ITabletExternallyReparentedRequest} message TabletExternallyReparentedRequest message or plain object to encode + * @param {vtctldata.IVDiffCreateResponse} message VDiffCreateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TabletExternallyReparentedRequest.encodeDelimited = function encodeDelimited(message, writer) { + VDiffCreateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer. + * Decodes a VDiffCreateResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof vtctldata.VDiffCreateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest + * @returns {vtctldata.VDiffCreateResponse} VDiffCreateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TabletExternallyReparentedRequest.decode = function decode(reader, length) { + VDiffCreateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TabletExternallyReparentedRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffCreateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.UUID = reader.string(); break; } default: @@ -184801,130 +193613,124 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffCreateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof vtctldata.VDiffCreateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest + * @returns {vtctldata.VDiffCreateResponse} VDiffCreateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TabletExternallyReparentedRequest.decodeDelimited = function decodeDelimited(reader) { + VDiffCreateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TabletExternallyReparentedRequest message. + * Verifies a VDiffCreateResponse message. * @function verify - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof vtctldata.VDiffCreateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TabletExternallyReparentedRequest.verify = function verify(message) { + VDiffCreateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - let error = $root.topodata.TabletAlias.verify(message.tablet); - if (error) - return "tablet." + error; - } + if (message.UUID != null && message.hasOwnProperty("UUID")) + if (!$util.isString(message.UUID)) + return "UUID: string expected"; return null; }; /** - * Creates a TabletExternallyReparentedRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffCreateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof vtctldata.VDiffCreateResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest + * @returns {vtctldata.VDiffCreateResponse} VDiffCreateResponse */ - TabletExternallyReparentedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.TabletExternallyReparentedRequest) + VDiffCreateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VDiffCreateResponse) return object; - let message = new $root.vtctldata.TabletExternallyReparentedRequest(); - if (object.tablet != null) { - if (typeof object.tablet !== "object") - throw TypeError(".vtctldata.TabletExternallyReparentedRequest.tablet: object expected"); - message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); - } + let message = new $root.vtctldata.VDiffCreateResponse(); + if (object.UUID != null) + message.UUID = String(object.UUID); return message; }; /** - * Creates a plain object from a TabletExternallyReparentedRequest message. Also converts values to other types if specified. + * Creates a plain object from a VDiffCreateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof vtctldata.VDiffCreateResponse * @static - * @param {vtctldata.TabletExternallyReparentedRequest} message TabletExternallyReparentedRequest + * @param {vtctldata.VDiffCreateResponse} message VDiffCreateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TabletExternallyReparentedRequest.toObject = function toObject(message, options) { + VDiffCreateResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.tablet = null; - if (message.tablet != null && message.hasOwnProperty("tablet")) - object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); + object.UUID = ""; + if (message.UUID != null && message.hasOwnProperty("UUID")) + object.UUID = message.UUID; return object; }; /** - * Converts this TabletExternallyReparentedRequest to JSON. + * Converts this VDiffCreateResponse to JSON. * @function toJSON - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof vtctldata.VDiffCreateResponse * @instance * @returns {Object.} JSON object */ - TabletExternallyReparentedRequest.prototype.toJSON = function toJSON() { + VDiffCreateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TabletExternallyReparentedRequest + * Gets the default type url for VDiffCreateResponse * @function getTypeUrl - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof vtctldata.VDiffCreateResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TabletExternallyReparentedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffCreateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.TabletExternallyReparentedRequest"; + return typeUrlPrefix + "/vtctldata.VDiffCreateResponse"; }; - return TabletExternallyReparentedRequest; + return VDiffCreateResponse; })(); - vtctldata.TabletExternallyReparentedResponse = (function() { + vtctldata.VDiffDeleteRequest = (function() { /** - * Properties of a TabletExternallyReparentedResponse. + * Properties of a VDiffDeleteRequest. * @memberof vtctldata - * @interface ITabletExternallyReparentedResponse - * @property {string|null} [keyspace] TabletExternallyReparentedResponse keyspace - * @property {string|null} [shard] TabletExternallyReparentedResponse shard - * @property {topodata.ITabletAlias|null} [new_primary] TabletExternallyReparentedResponse new_primary - * @property {topodata.ITabletAlias|null} [old_primary] TabletExternallyReparentedResponse old_primary + * @interface IVDiffDeleteRequest + * @property {string|null} [workflow] VDiffDeleteRequest workflow + * @property {string|null} [target_keyspace] VDiffDeleteRequest target_keyspace + * @property {string|null} [arg] VDiffDeleteRequest arg */ /** - * Constructs a new TabletExternallyReparentedResponse. + * Constructs a new VDiffDeleteRequest. * @memberof vtctldata - * @classdesc Represents a TabletExternallyReparentedResponse. - * @implements ITabletExternallyReparentedResponse + * @classdesc Represents a VDiffDeleteRequest. + * @implements IVDiffDeleteRequest * @constructor - * @param {vtctldata.ITabletExternallyReparentedResponse=} [properties] Properties to set + * @param {vtctldata.IVDiffDeleteRequest=} [properties] Properties to set */ - function TabletExternallyReparentedResponse(properties) { + function VDiffDeleteRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -184932,117 +193738,103 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * TabletExternallyReparentedResponse keyspace. - * @member {string} keyspace - * @memberof vtctldata.TabletExternallyReparentedResponse - * @instance - */ - TabletExternallyReparentedResponse.prototype.keyspace = ""; - - /** - * TabletExternallyReparentedResponse shard. - * @member {string} shard - * @memberof vtctldata.TabletExternallyReparentedResponse + * VDiffDeleteRequest workflow. + * @member {string} workflow + * @memberof vtctldata.VDiffDeleteRequest * @instance */ - TabletExternallyReparentedResponse.prototype.shard = ""; + VDiffDeleteRequest.prototype.workflow = ""; /** - * TabletExternallyReparentedResponse new_primary. - * @member {topodata.ITabletAlias|null|undefined} new_primary - * @memberof vtctldata.TabletExternallyReparentedResponse + * VDiffDeleteRequest target_keyspace. + * @member {string} target_keyspace + * @memberof vtctldata.VDiffDeleteRequest * @instance */ - TabletExternallyReparentedResponse.prototype.new_primary = null; + VDiffDeleteRequest.prototype.target_keyspace = ""; /** - * TabletExternallyReparentedResponse old_primary. - * @member {topodata.ITabletAlias|null|undefined} old_primary - * @memberof vtctldata.TabletExternallyReparentedResponse + * VDiffDeleteRequest arg. + * @member {string} arg + * @memberof vtctldata.VDiffDeleteRequest * @instance */ - TabletExternallyReparentedResponse.prototype.old_primary = null; + VDiffDeleteRequest.prototype.arg = ""; /** - * Creates a new TabletExternallyReparentedResponse instance using the specified properties. + * Creates a new VDiffDeleteRequest instance using the specified properties. * @function create - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.VDiffDeleteRequest * @static - * @param {vtctldata.ITabletExternallyReparentedResponse=} [properties] Properties to set - * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse instance + * @param {vtctldata.IVDiffDeleteRequest=} [properties] Properties to set + * @returns {vtctldata.VDiffDeleteRequest} VDiffDeleteRequest instance */ - TabletExternallyReparentedResponse.create = function create(properties) { - return new TabletExternallyReparentedResponse(properties); + VDiffDeleteRequest.create = function create(properties) { + return new VDiffDeleteRequest(properties); }; /** - * Encodes the specified TabletExternallyReparentedResponse message. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. + * Encodes the specified VDiffDeleteRequest message. Does not implicitly {@link vtctldata.VDiffDeleteRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.VDiffDeleteRequest * @static - * @param {vtctldata.ITabletExternallyReparentedResponse} message TabletExternallyReparentedResponse message or plain object to encode + * @param {vtctldata.IVDiffDeleteRequest} message VDiffDeleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TabletExternallyReparentedResponse.encode = function encode(message, writer) { + VDiffDeleteRequest.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.new_primary != null && Object.hasOwnProperty.call(message, "new_primary")) - $root.topodata.TabletAlias.encode(message.new_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.old_primary != null && Object.hasOwnProperty.call(message, "old_primary")) - $root.topodata.TabletAlias.encode(message.old_primary, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); + if (message.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.target_keyspace); + if (message.arg != null && Object.hasOwnProperty.call(message, "arg")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.arg); return writer; }; /** - * Encodes the specified TabletExternallyReparentedResponse message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. + * Encodes the specified VDiffDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffDeleteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.VDiffDeleteRequest * @static - * @param {vtctldata.ITabletExternallyReparentedResponse} message TabletExternallyReparentedResponse message or plain object to encode + * @param {vtctldata.IVDiffDeleteRequest} message VDiffDeleteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TabletExternallyReparentedResponse.encodeDelimited = function encodeDelimited(message, writer) { + VDiffDeleteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer. + * Decodes a VDiffDeleteRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.VDiffDeleteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse + * @returns {vtctldata.VDiffDeleteRequest} VDiffDeleteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TabletExternallyReparentedResponse.decode = function decode(reader, length) { + VDiffDeleteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TabletExternallyReparentedResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffDeleteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); + message.workflow = reader.string(); break; } case 2: { - message.shard = reader.string(); + message.target_keyspace = reader.string(); break; } case 3: { - message.new_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 4: { - message.old_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.arg = reader.string(); break; } default: @@ -185054,158 +193846,138 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffDeleteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.VDiffDeleteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse + * @returns {vtctldata.VDiffDeleteRequest} VDiffDeleteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TabletExternallyReparentedResponse.decodeDelimited = function decodeDelimited(reader) { + VDiffDeleteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TabletExternallyReparentedResponse message. + * Verifies a VDiffDeleteRequest message. * @function verify - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.VDiffDeleteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TabletExternallyReparentedResponse.verify = function verify(message) { + VDiffDeleteRequest.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.new_primary != null && message.hasOwnProperty("new_primary")) { - let error = $root.topodata.TabletAlias.verify(message.new_primary); - if (error) - return "new_primary." + error; - } - if (message.old_primary != null && message.hasOwnProperty("old_primary")) { - let error = $root.topodata.TabletAlias.verify(message.old_primary); - if (error) - return "old_primary." + error; - } + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + if (!$util.isString(message.target_keyspace)) + return "target_keyspace: string expected"; + if (message.arg != null && message.hasOwnProperty("arg")) + if (!$util.isString(message.arg)) + return "arg: string expected"; return null; }; /** - * Creates a TabletExternallyReparentedResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffDeleteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.VDiffDeleteRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse + * @returns {vtctldata.VDiffDeleteRequest} VDiffDeleteRequest */ - TabletExternallyReparentedResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.TabletExternallyReparentedResponse) + VDiffDeleteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VDiffDeleteRequest) return object; - let message = new $root.vtctldata.TabletExternallyReparentedResponse(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.new_primary != null) { - if (typeof object.new_primary !== "object") - throw TypeError(".vtctldata.TabletExternallyReparentedResponse.new_primary: object expected"); - message.new_primary = $root.topodata.TabletAlias.fromObject(object.new_primary); - } - if (object.old_primary != null) { - if (typeof object.old_primary !== "object") - throw TypeError(".vtctldata.TabletExternallyReparentedResponse.old_primary: object expected"); - message.old_primary = $root.topodata.TabletAlias.fromObject(object.old_primary); - } + let message = new $root.vtctldata.VDiffDeleteRequest(); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.target_keyspace != null) + message.target_keyspace = String(object.target_keyspace); + if (object.arg != null) + message.arg = String(object.arg); return message; }; /** - * Creates a plain object from a TabletExternallyReparentedResponse message. Also converts values to other types if specified. + * Creates a plain object from a VDiffDeleteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.VDiffDeleteRequest * @static - * @param {vtctldata.TabletExternallyReparentedResponse} message TabletExternallyReparentedResponse + * @param {vtctldata.VDiffDeleteRequest} message VDiffDeleteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TabletExternallyReparentedResponse.toObject = function toObject(message, options) { + VDiffDeleteRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.new_primary = null; - object.old_primary = null; + object.workflow = ""; + object.target_keyspace = ""; + object.arg = ""; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.new_primary != null && message.hasOwnProperty("new_primary")) - object.new_primary = $root.topodata.TabletAlias.toObject(message.new_primary, options); - if (message.old_primary != null && message.hasOwnProperty("old_primary")) - object.old_primary = $root.topodata.TabletAlias.toObject(message.old_primary, options); + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + object.target_keyspace = message.target_keyspace; + if (message.arg != null && message.hasOwnProperty("arg")) + object.arg = message.arg; return object; }; /** - * Converts this TabletExternallyReparentedResponse to JSON. + * Converts this VDiffDeleteRequest to JSON. * @function toJSON - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.VDiffDeleteRequest * @instance * @returns {Object.} JSON object */ - TabletExternallyReparentedResponse.prototype.toJSON = function toJSON() { + VDiffDeleteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TabletExternallyReparentedResponse + * Gets the default type url for VDiffDeleteRequest * @function getTypeUrl - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.VDiffDeleteRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TabletExternallyReparentedResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffDeleteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.TabletExternallyReparentedResponse"; + return typeUrlPrefix + "/vtctldata.VDiffDeleteRequest"; }; - return TabletExternallyReparentedResponse; + return VDiffDeleteRequest; })(); - vtctldata.UpdateCellInfoRequest = (function() { + vtctldata.VDiffDeleteResponse = (function() { /** - * Properties of an UpdateCellInfoRequest. + * Properties of a VDiffDeleteResponse. * @memberof vtctldata - * @interface IUpdateCellInfoRequest - * @property {string|null} [name] UpdateCellInfoRequest name - * @property {topodata.ICellInfo|null} [cell_info] UpdateCellInfoRequest cell_info + * @interface IVDiffDeleteResponse */ /** - * Constructs a new UpdateCellInfoRequest. + * Constructs a new VDiffDeleteResponse. * @memberof vtctldata - * @classdesc Represents an UpdateCellInfoRequest. - * @implements IUpdateCellInfoRequest + * @classdesc Represents a VDiffDeleteResponse. + * @implements IVDiffDeleteResponse * @constructor - * @param {vtctldata.IUpdateCellInfoRequest=} [properties] Properties to set + * @param {vtctldata.IVDiffDeleteResponse=} [properties] Properties to set */ - function UpdateCellInfoRequest(properties) { + function VDiffDeleteResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -185213,91 +193985,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * UpdateCellInfoRequest name. - * @member {string} name - * @memberof vtctldata.UpdateCellInfoRequest - * @instance - */ - UpdateCellInfoRequest.prototype.name = ""; - - /** - * UpdateCellInfoRequest cell_info. - * @member {topodata.ICellInfo|null|undefined} cell_info - * @memberof vtctldata.UpdateCellInfoRequest - * @instance - */ - UpdateCellInfoRequest.prototype.cell_info = null; - - /** - * Creates a new UpdateCellInfoRequest instance using the specified properties. + * Creates a new VDiffDeleteResponse instance using the specified properties. * @function create - * @memberof vtctldata.UpdateCellInfoRequest + * @memberof vtctldata.VDiffDeleteResponse * @static - * @param {vtctldata.IUpdateCellInfoRequest=} [properties] Properties to set - * @returns {vtctldata.UpdateCellInfoRequest} UpdateCellInfoRequest instance + * @param {vtctldata.IVDiffDeleteResponse=} [properties] Properties to set + * @returns {vtctldata.VDiffDeleteResponse} VDiffDeleteResponse instance */ - UpdateCellInfoRequest.create = function create(properties) { - return new UpdateCellInfoRequest(properties); + VDiffDeleteResponse.create = function create(properties) { + return new VDiffDeleteResponse(properties); }; /** - * Encodes the specified UpdateCellInfoRequest message. Does not implicitly {@link vtctldata.UpdateCellInfoRequest.verify|verify} messages. + * Encodes the specified VDiffDeleteResponse message. Does not implicitly {@link vtctldata.VDiffDeleteResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.UpdateCellInfoRequest + * @memberof vtctldata.VDiffDeleteResponse * @static - * @param {vtctldata.IUpdateCellInfoRequest} message UpdateCellInfoRequest message or plain object to encode + * @param {vtctldata.IVDiffDeleteResponse} message VDiffDeleteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCellInfoRequest.encode = function encode(message, writer) { + VDiffDeleteResponse.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 UpdateCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateCellInfoRequest.verify|verify} messages. + * Encodes the specified VDiffDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffDeleteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.UpdateCellInfoRequest + * @memberof vtctldata.VDiffDeleteResponse * @static - * @param {vtctldata.IUpdateCellInfoRequest} message UpdateCellInfoRequest message or plain object to encode + * @param {vtctldata.IVDiffDeleteResponse} message VDiffDeleteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + VDiffDeleteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateCellInfoRequest message from the specified reader or buffer. + * Decodes a VDiffDeleteResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.UpdateCellInfoRequest + * @memberof vtctldata.VDiffDeleteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.UpdateCellInfoRequest} UpdateCellInfoRequest + * @returns {vtctldata.VDiffDeleteResponse} VDiffDeleteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCellInfoRequest.decode = function decode(reader, length) { + VDiffDeleteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.UpdateCellInfoRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffDeleteResponse(); while (reader.pos < end) { let 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; @@ -185307,137 +194051,113 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an UpdateCellInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffDeleteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.UpdateCellInfoRequest + * @memberof vtctldata.VDiffDeleteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.UpdateCellInfoRequest} UpdateCellInfoRequest + * @returns {vtctldata.VDiffDeleteResponse} VDiffDeleteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { + VDiffDeleteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateCellInfoRequest message. + * Verifies a VDiffDeleteResponse message. * @function verify - * @memberof vtctldata.UpdateCellInfoRequest + * @memberof vtctldata.VDiffDeleteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateCellInfoRequest.verify = function verify(message) { + VDiffDeleteResponse.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")) { - let error = $root.topodata.CellInfo.verify(message.cell_info); - if (error) - return "cell_info." + error; - } return null; }; /** - * Creates an UpdateCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffDeleteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.UpdateCellInfoRequest + * @memberof vtctldata.VDiffDeleteResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.UpdateCellInfoRequest} UpdateCellInfoRequest + * @returns {vtctldata.VDiffDeleteResponse} VDiffDeleteResponse */ - UpdateCellInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.UpdateCellInfoRequest) + VDiffDeleteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VDiffDeleteResponse) return object; - let message = new $root.vtctldata.UpdateCellInfoRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.cell_info != null) { - if (typeof object.cell_info !== "object") - throw TypeError(".vtctldata.UpdateCellInfoRequest.cell_info: object expected"); - message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); - } - return message; + return new $root.vtctldata.VDiffDeleteResponse(); }; /** - * Creates a plain object from an UpdateCellInfoRequest message. Also converts values to other types if specified. + * Creates a plain object from a VDiffDeleteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.UpdateCellInfoRequest + * @memberof vtctldata.VDiffDeleteResponse * @static - * @param {vtctldata.UpdateCellInfoRequest} message UpdateCellInfoRequest + * @param {vtctldata.VDiffDeleteResponse} message VDiffDeleteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateCellInfoRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let 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; + VDiffDeleteResponse.toObject = function toObject() { + return {}; }; /** - * Converts this UpdateCellInfoRequest to JSON. + * Converts this VDiffDeleteResponse to JSON. * @function toJSON - * @memberof vtctldata.UpdateCellInfoRequest + * @memberof vtctldata.VDiffDeleteResponse * @instance * @returns {Object.} JSON object */ - UpdateCellInfoRequest.prototype.toJSON = function toJSON() { + VDiffDeleteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateCellInfoRequest + * Gets the default type url for VDiffDeleteResponse * @function getTypeUrl - * @memberof vtctldata.UpdateCellInfoRequest + * @memberof vtctldata.VDiffDeleteResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateCellInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffDeleteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.UpdateCellInfoRequest"; + return typeUrlPrefix + "/vtctldata.VDiffDeleteResponse"; }; - return UpdateCellInfoRequest; + return VDiffDeleteResponse; })(); - vtctldata.UpdateCellInfoResponse = (function() { + vtctldata.VDiffResumeRequest = (function() { /** - * Properties of an UpdateCellInfoResponse. + * Properties of a VDiffResumeRequest. * @memberof vtctldata - * @interface IUpdateCellInfoResponse - * @property {string|null} [name] UpdateCellInfoResponse name - * @property {topodata.ICellInfo|null} [cell_info] UpdateCellInfoResponse cell_info + * @interface IVDiffResumeRequest + * @property {string|null} [workflow] VDiffResumeRequest workflow + * @property {string|null} [target_keyspace] VDiffResumeRequest target_keyspace + * @property {string|null} [uuid] VDiffResumeRequest uuid + * @property {Array.|null} [target_shards] VDiffResumeRequest target_shards */ /** - * Constructs a new UpdateCellInfoResponse. + * Constructs a new VDiffResumeRequest. * @memberof vtctldata - * @classdesc Represents an UpdateCellInfoResponse. - * @implements IUpdateCellInfoResponse + * @classdesc Represents a VDiffResumeRequest. + * @implements IVDiffResumeRequest * @constructor - * @param {vtctldata.IUpdateCellInfoResponse=} [properties] Properties to set + * @param {vtctldata.IVDiffResumeRequest=} [properties] Properties to set */ - function UpdateCellInfoResponse(properties) { + function VDiffResumeRequest(properties) { + this.target_shards = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -185445,89 +194165,120 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * UpdateCellInfoResponse name. - * @member {string} name - * @memberof vtctldata.UpdateCellInfoResponse + * VDiffResumeRequest workflow. + * @member {string} workflow + * @memberof vtctldata.VDiffResumeRequest * @instance */ - UpdateCellInfoResponse.prototype.name = ""; + VDiffResumeRequest.prototype.workflow = ""; /** - * UpdateCellInfoResponse cell_info. - * @member {topodata.ICellInfo|null|undefined} cell_info - * @memberof vtctldata.UpdateCellInfoResponse + * VDiffResumeRequest target_keyspace. + * @member {string} target_keyspace + * @memberof vtctldata.VDiffResumeRequest * @instance */ - UpdateCellInfoResponse.prototype.cell_info = null; + VDiffResumeRequest.prototype.target_keyspace = ""; /** - * Creates a new UpdateCellInfoResponse instance using the specified properties. + * VDiffResumeRequest uuid. + * @member {string} uuid + * @memberof vtctldata.VDiffResumeRequest + * @instance + */ + VDiffResumeRequest.prototype.uuid = ""; + + /** + * VDiffResumeRequest target_shards. + * @member {Array.} target_shards + * @memberof vtctldata.VDiffResumeRequest + * @instance + */ + VDiffResumeRequest.prototype.target_shards = $util.emptyArray; + + /** + * Creates a new VDiffResumeRequest instance using the specified properties. * @function create - * @memberof vtctldata.UpdateCellInfoResponse + * @memberof vtctldata.VDiffResumeRequest * @static - * @param {vtctldata.IUpdateCellInfoResponse=} [properties] Properties to set - * @returns {vtctldata.UpdateCellInfoResponse} UpdateCellInfoResponse instance + * @param {vtctldata.IVDiffResumeRequest=} [properties] Properties to set + * @returns {vtctldata.VDiffResumeRequest} VDiffResumeRequest instance */ - UpdateCellInfoResponse.create = function create(properties) { - return new UpdateCellInfoResponse(properties); + VDiffResumeRequest.create = function create(properties) { + return new VDiffResumeRequest(properties); }; /** - * Encodes the specified UpdateCellInfoResponse message. Does not implicitly {@link vtctldata.UpdateCellInfoResponse.verify|verify} messages. + * Encodes the specified VDiffResumeRequest message. Does not implicitly {@link vtctldata.VDiffResumeRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.UpdateCellInfoResponse + * @memberof vtctldata.VDiffResumeRequest * @static - * @param {vtctldata.IUpdateCellInfoResponse} message UpdateCellInfoResponse message or plain object to encode + * @param {vtctldata.IVDiffResumeRequest} message VDiffResumeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCellInfoResponse.encode = function encode(message, writer) { + VDiffResumeRequest.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.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); + if (message.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.target_keyspace); + if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid); + if (message.target_shards != null && message.target_shards.length) + for (let i = 0; i < message.target_shards.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.target_shards[i]); return writer; }; /** - * Encodes the specified UpdateCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateCellInfoResponse.verify|verify} messages. + * Encodes the specified VDiffResumeRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffResumeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.UpdateCellInfoResponse + * @memberof vtctldata.VDiffResumeRequest * @static - * @param {vtctldata.IUpdateCellInfoResponse} message UpdateCellInfoResponse message or plain object to encode + * @param {vtctldata.IVDiffResumeRequest} message VDiffResumeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + VDiffResumeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateCellInfoResponse message from the specified reader or buffer. + * Decodes a VDiffResumeRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.UpdateCellInfoResponse + * @memberof vtctldata.VDiffResumeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.UpdateCellInfoResponse} UpdateCellInfoResponse + * @returns {vtctldata.VDiffResumeRequest} VDiffResumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCellInfoResponse.decode = function decode(reader, length) { + VDiffResumeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.UpdateCellInfoResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffResumeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.workflow = reader.string(); break; } case 2: { - message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); + message.target_keyspace = reader.string(); + break; + } + case 3: { + message.uuid = reader.string(); + break; + } + case 4: { + if (!(message.target_shards && message.target_shards.length)) + message.target_shards = []; + message.target_shards.push(reader.string()); break; } default: @@ -185539,137 +194290,159 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an UpdateCellInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffResumeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.UpdateCellInfoResponse + * @memberof vtctldata.VDiffResumeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.UpdateCellInfoResponse} UpdateCellInfoResponse + * @returns {vtctldata.VDiffResumeRequest} VDiffResumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { + VDiffResumeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateCellInfoResponse message. + * Verifies a VDiffResumeRequest message. * @function verify - * @memberof vtctldata.UpdateCellInfoResponse + * @memberof vtctldata.VDiffResumeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateCellInfoResponse.verify = function verify(message) { + VDiffResumeRequest.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")) { - let error = $root.topodata.CellInfo.verify(message.cell_info); - if (error) - return "cell_info." + error; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + if (!$util.isString(message.target_keyspace)) + return "target_keyspace: string expected"; + if (message.uuid != null && message.hasOwnProperty("uuid")) + if (!$util.isString(message.uuid)) + return "uuid: string expected"; + if (message.target_shards != null && message.hasOwnProperty("target_shards")) { + if (!Array.isArray(message.target_shards)) + return "target_shards: array expected"; + for (let i = 0; i < message.target_shards.length; ++i) + if (!$util.isString(message.target_shards[i])) + return "target_shards: string[] expected"; } return null; }; /** - * Creates an UpdateCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffResumeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.UpdateCellInfoResponse + * @memberof vtctldata.VDiffResumeRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.UpdateCellInfoResponse} UpdateCellInfoResponse + * @returns {vtctldata.VDiffResumeRequest} VDiffResumeRequest */ - UpdateCellInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.UpdateCellInfoResponse) + VDiffResumeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VDiffResumeRequest) return object; - let message = new $root.vtctldata.UpdateCellInfoResponse(); - if (object.name != null) - message.name = String(object.name); - if (object.cell_info != null) { - if (typeof object.cell_info !== "object") - throw TypeError(".vtctldata.UpdateCellInfoResponse.cell_info: object expected"); - message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); + let message = new $root.vtctldata.VDiffResumeRequest(); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.target_keyspace != null) + message.target_keyspace = String(object.target_keyspace); + if (object.uuid != null) + message.uuid = String(object.uuid); + if (object.target_shards) { + if (!Array.isArray(object.target_shards)) + throw TypeError(".vtctldata.VDiffResumeRequest.target_shards: array expected"); + message.target_shards = []; + for (let i = 0; i < object.target_shards.length; ++i) + message.target_shards[i] = String(object.target_shards[i]); } return message; }; /** - * Creates a plain object from an UpdateCellInfoResponse message. Also converts values to other types if specified. + * Creates a plain object from a VDiffResumeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.UpdateCellInfoResponse + * @memberof vtctldata.VDiffResumeRequest * @static - * @param {vtctldata.UpdateCellInfoResponse} message UpdateCellInfoResponse + * @param {vtctldata.VDiffResumeRequest} message VDiffResumeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateCellInfoResponse.toObject = function toObject(message, options) { + VDiffResumeRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.target_shards = []; if (options.defaults) { - object.name = ""; - object.cell_info = null; + object.workflow = ""; + object.target_keyspace = ""; + object.uuid = ""; + } + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + object.target_keyspace = message.target_keyspace; + if (message.uuid != null && message.hasOwnProperty("uuid")) + object.uuid = message.uuid; + if (message.target_shards && message.target_shards.length) { + object.target_shards = []; + for (let j = 0; j < message.target_shards.length; ++j) + object.target_shards[j] = message.target_shards[j]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.cell_info != null && message.hasOwnProperty("cell_info")) - object.cell_info = $root.topodata.CellInfo.toObject(message.cell_info, options); return object; }; /** - * Converts this UpdateCellInfoResponse to JSON. + * Converts this VDiffResumeRequest to JSON. * @function toJSON - * @memberof vtctldata.UpdateCellInfoResponse + * @memberof vtctldata.VDiffResumeRequest * @instance * @returns {Object.} JSON object */ - UpdateCellInfoResponse.prototype.toJSON = function toJSON() { + VDiffResumeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateCellInfoResponse + * Gets the default type url for VDiffResumeRequest * @function getTypeUrl - * @memberof vtctldata.UpdateCellInfoResponse + * @memberof vtctldata.VDiffResumeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateCellInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffResumeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.UpdateCellInfoResponse"; + return typeUrlPrefix + "/vtctldata.VDiffResumeRequest"; }; - return UpdateCellInfoResponse; + return VDiffResumeRequest; })(); - vtctldata.UpdateCellsAliasRequest = (function() { + vtctldata.VDiffResumeResponse = (function() { /** - * Properties of an UpdateCellsAliasRequest. + * Properties of a VDiffResumeResponse. * @memberof vtctldata - * @interface IUpdateCellsAliasRequest - * @property {string|null} [name] UpdateCellsAliasRequest name - * @property {topodata.ICellsAlias|null} [cells_alias] UpdateCellsAliasRequest cells_alias + * @interface IVDiffResumeResponse */ /** - * Constructs a new UpdateCellsAliasRequest. + * Constructs a new VDiffResumeResponse. * @memberof vtctldata - * @classdesc Represents an UpdateCellsAliasRequest. - * @implements IUpdateCellsAliasRequest + * @classdesc Represents a VDiffResumeResponse. + * @implements IVDiffResumeResponse * @constructor - * @param {vtctldata.IUpdateCellsAliasRequest=} [properties] Properties to set + * @param {vtctldata.IVDiffResumeResponse=} [properties] Properties to set */ - function UpdateCellsAliasRequest(properties) { + function VDiffResumeResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -185677,91 +194450,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * UpdateCellsAliasRequest name. - * @member {string} name - * @memberof vtctldata.UpdateCellsAliasRequest - * @instance - */ - UpdateCellsAliasRequest.prototype.name = ""; - - /** - * UpdateCellsAliasRequest cells_alias. - * @member {topodata.ICellsAlias|null|undefined} cells_alias - * @memberof vtctldata.UpdateCellsAliasRequest - * @instance - */ - UpdateCellsAliasRequest.prototype.cells_alias = null; - - /** - * Creates a new UpdateCellsAliasRequest instance using the specified properties. + * Creates a new VDiffResumeResponse instance using the specified properties. * @function create - * @memberof vtctldata.UpdateCellsAliasRequest + * @memberof vtctldata.VDiffResumeResponse * @static - * @param {vtctldata.IUpdateCellsAliasRequest=} [properties] Properties to set - * @returns {vtctldata.UpdateCellsAliasRequest} UpdateCellsAliasRequest instance + * @param {vtctldata.IVDiffResumeResponse=} [properties] Properties to set + * @returns {vtctldata.VDiffResumeResponse} VDiffResumeResponse instance */ - UpdateCellsAliasRequest.create = function create(properties) { - return new UpdateCellsAliasRequest(properties); + VDiffResumeResponse.create = function create(properties) { + return new VDiffResumeResponse(properties); }; /** - * Encodes the specified UpdateCellsAliasRequest message. Does not implicitly {@link vtctldata.UpdateCellsAliasRequest.verify|verify} messages. + * Encodes the specified VDiffResumeResponse message. Does not implicitly {@link vtctldata.VDiffResumeResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.UpdateCellsAliasRequest + * @memberof vtctldata.VDiffResumeResponse * @static - * @param {vtctldata.IUpdateCellsAliasRequest} message UpdateCellsAliasRequest message or plain object to encode + * @param {vtctldata.IVDiffResumeResponse} message VDiffResumeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCellsAliasRequest.encode = function encode(message, writer) { + VDiffResumeResponse.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_alias != null && Object.hasOwnProperty.call(message, "cells_alias")) - $root.topodata.CellsAlias.encode(message.cells_alias, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateCellsAliasRequest.verify|verify} messages. + * Encodes the specified VDiffResumeResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffResumeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.UpdateCellsAliasRequest + * @memberof vtctldata.VDiffResumeResponse * @static - * @param {vtctldata.IUpdateCellsAliasRequest} message UpdateCellsAliasRequest message or plain object to encode + * @param {vtctldata.IVDiffResumeResponse} message VDiffResumeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCellsAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { + VDiffResumeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer. + * Decodes a VDiffResumeResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.UpdateCellsAliasRequest + * @memberof vtctldata.VDiffResumeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.UpdateCellsAliasRequest} UpdateCellsAliasRequest + * @returns {vtctldata.VDiffResumeResponse} VDiffResumeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCellsAliasRequest.decode = function decode(reader, length) { + VDiffResumeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.UpdateCellsAliasRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffResumeResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.cells_alias = $root.topodata.CellsAlias.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -185771,137 +194516,111 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffResumeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.UpdateCellsAliasRequest + * @memberof vtctldata.VDiffResumeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.UpdateCellsAliasRequest} UpdateCellsAliasRequest + * @returns {vtctldata.VDiffResumeResponse} VDiffResumeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCellsAliasRequest.decodeDelimited = function decodeDelimited(reader) { + VDiffResumeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateCellsAliasRequest message. + * Verifies a VDiffResumeResponse message. * @function verify - * @memberof vtctldata.UpdateCellsAliasRequest + * @memberof vtctldata.VDiffResumeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateCellsAliasRequest.verify = function verify(message) { + VDiffResumeResponse.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_alias != null && message.hasOwnProperty("cells_alias")) { - let error = $root.topodata.CellsAlias.verify(message.cells_alias); - if (error) - return "cells_alias." + error; - } return null; }; /** - * Creates an UpdateCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffResumeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.UpdateCellsAliasRequest + * @memberof vtctldata.VDiffResumeResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.UpdateCellsAliasRequest} UpdateCellsAliasRequest + * @returns {vtctldata.VDiffResumeResponse} VDiffResumeResponse */ - UpdateCellsAliasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.UpdateCellsAliasRequest) + VDiffResumeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VDiffResumeResponse) return object; - let message = new $root.vtctldata.UpdateCellsAliasRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.cells_alias != null) { - if (typeof object.cells_alias !== "object") - throw TypeError(".vtctldata.UpdateCellsAliasRequest.cells_alias: object expected"); - message.cells_alias = $root.topodata.CellsAlias.fromObject(object.cells_alias); - } - return message; + return new $root.vtctldata.VDiffResumeResponse(); }; /** - * Creates a plain object from an UpdateCellsAliasRequest message. Also converts values to other types if specified. + * Creates a plain object from a VDiffResumeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.UpdateCellsAliasRequest + * @memberof vtctldata.VDiffResumeResponse * @static - * @param {vtctldata.UpdateCellsAliasRequest} message UpdateCellsAliasRequest + * @param {vtctldata.VDiffResumeResponse} message VDiffResumeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateCellsAliasRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.name = ""; - object.cells_alias = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.cells_alias != null && message.hasOwnProperty("cells_alias")) - object.cells_alias = $root.topodata.CellsAlias.toObject(message.cells_alias, options); - return object; + VDiffResumeResponse.toObject = function toObject() { + return {}; }; /** - * Converts this UpdateCellsAliasRequest to JSON. + * Converts this VDiffResumeResponse to JSON. * @function toJSON - * @memberof vtctldata.UpdateCellsAliasRequest + * @memberof vtctldata.VDiffResumeResponse * @instance * @returns {Object.} JSON object */ - UpdateCellsAliasRequest.prototype.toJSON = function toJSON() { + VDiffResumeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateCellsAliasRequest + * Gets the default type url for VDiffResumeResponse * @function getTypeUrl - * @memberof vtctldata.UpdateCellsAliasRequest + * @memberof vtctldata.VDiffResumeResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateCellsAliasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffResumeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.UpdateCellsAliasRequest"; + return typeUrlPrefix + "/vtctldata.VDiffResumeResponse"; }; - return UpdateCellsAliasRequest; + return VDiffResumeResponse; })(); - vtctldata.UpdateCellsAliasResponse = (function() { + vtctldata.VDiffShowRequest = (function() { /** - * Properties of an UpdateCellsAliasResponse. + * Properties of a VDiffShowRequest. * @memberof vtctldata - * @interface IUpdateCellsAliasResponse - * @property {string|null} [name] UpdateCellsAliasResponse name - * @property {topodata.ICellsAlias|null} [cells_alias] UpdateCellsAliasResponse cells_alias + * @interface IVDiffShowRequest + * @property {string|null} [workflow] VDiffShowRequest workflow + * @property {string|null} [target_keyspace] VDiffShowRequest target_keyspace + * @property {string|null} [arg] VDiffShowRequest arg */ /** - * Constructs a new UpdateCellsAliasResponse. + * Constructs a new VDiffShowRequest. * @memberof vtctldata - * @classdesc Represents an UpdateCellsAliasResponse. - * @implements IUpdateCellsAliasResponse + * @classdesc Represents a VDiffShowRequest. + * @implements IVDiffShowRequest * @constructor - * @param {vtctldata.IUpdateCellsAliasResponse=} [properties] Properties to set + * @param {vtctldata.IVDiffShowRequest=} [properties] Properties to set */ - function UpdateCellsAliasResponse(properties) { + function VDiffShowRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -185909,89 +194628,103 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * UpdateCellsAliasResponse name. - * @member {string} name - * @memberof vtctldata.UpdateCellsAliasResponse + * VDiffShowRequest workflow. + * @member {string} workflow + * @memberof vtctldata.VDiffShowRequest * @instance */ - UpdateCellsAliasResponse.prototype.name = ""; + VDiffShowRequest.prototype.workflow = ""; /** - * UpdateCellsAliasResponse cells_alias. - * @member {topodata.ICellsAlias|null|undefined} cells_alias - * @memberof vtctldata.UpdateCellsAliasResponse + * VDiffShowRequest target_keyspace. + * @member {string} target_keyspace + * @memberof vtctldata.VDiffShowRequest * @instance */ - UpdateCellsAliasResponse.prototype.cells_alias = null; + VDiffShowRequest.prototype.target_keyspace = ""; /** - * Creates a new UpdateCellsAliasResponse instance using the specified properties. + * VDiffShowRequest arg. + * @member {string} arg + * @memberof vtctldata.VDiffShowRequest + * @instance + */ + VDiffShowRequest.prototype.arg = ""; + + /** + * Creates a new VDiffShowRequest instance using the specified properties. * @function create - * @memberof vtctldata.UpdateCellsAliasResponse + * @memberof vtctldata.VDiffShowRequest * @static - * @param {vtctldata.IUpdateCellsAliasResponse=} [properties] Properties to set - * @returns {vtctldata.UpdateCellsAliasResponse} UpdateCellsAliasResponse instance + * @param {vtctldata.IVDiffShowRequest=} [properties] Properties to set + * @returns {vtctldata.VDiffShowRequest} VDiffShowRequest instance */ - UpdateCellsAliasResponse.create = function create(properties) { - return new UpdateCellsAliasResponse(properties); + VDiffShowRequest.create = function create(properties) { + return new VDiffShowRequest(properties); }; /** - * Encodes the specified UpdateCellsAliasResponse message. Does not implicitly {@link vtctldata.UpdateCellsAliasResponse.verify|verify} messages. + * Encodes the specified VDiffShowRequest message. Does not implicitly {@link vtctldata.VDiffShowRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.UpdateCellsAliasResponse + * @memberof vtctldata.VDiffShowRequest * @static - * @param {vtctldata.IUpdateCellsAliasResponse} message UpdateCellsAliasResponse message or plain object to encode + * @param {vtctldata.IVDiffShowRequest} message VDiffShowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCellsAliasResponse.encode = function encode(message, writer) { + VDiffShowRequest.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_alias != null && Object.hasOwnProperty.call(message, "cells_alias")) - $root.topodata.CellsAlias.encode(message.cells_alias, 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.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.target_keyspace); + if (message.arg != null && Object.hasOwnProperty.call(message, "arg")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.arg); return writer; }; /** - * Encodes the specified UpdateCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateCellsAliasResponse.verify|verify} messages. + * Encodes the specified VDiffShowRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffShowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.UpdateCellsAliasResponse + * @memberof vtctldata.VDiffShowRequest * @static - * @param {vtctldata.IUpdateCellsAliasResponse} message UpdateCellsAliasResponse message or plain object to encode + * @param {vtctldata.IVDiffShowRequest} message VDiffShowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCellsAliasResponse.encodeDelimited = function encodeDelimited(message, writer) { + VDiffShowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer. + * Decodes a VDiffShowRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.UpdateCellsAliasResponse + * @memberof vtctldata.VDiffShowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.UpdateCellsAliasResponse} UpdateCellsAliasResponse + * @returns {vtctldata.VDiffShowRequest} VDiffShowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCellsAliasResponse.decode = function decode(reader, length) { + VDiffShowRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.UpdateCellsAliasResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffShowRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.workflow = reader.string(); break; } case 2: { - message.cells_alias = $root.topodata.CellsAlias.decode(reader, reader.uint32()); + message.target_keyspace = reader.string(); + break; + } + case 3: { + message.arg = reader.string(); break; } default: @@ -186003,136 +194736,140 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffShowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.UpdateCellsAliasResponse + * @memberof vtctldata.VDiffShowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.UpdateCellsAliasResponse} UpdateCellsAliasResponse + * @returns {vtctldata.VDiffShowRequest} VDiffShowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCellsAliasResponse.decodeDelimited = function decodeDelimited(reader) { + VDiffShowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateCellsAliasResponse message. + * Verifies a VDiffShowRequest message. * @function verify - * @memberof vtctldata.UpdateCellsAliasResponse + * @memberof vtctldata.VDiffShowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateCellsAliasResponse.verify = function verify(message) { + VDiffShowRequest.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_alias != null && message.hasOwnProperty("cells_alias")) { - let error = $root.topodata.CellsAlias.verify(message.cells_alias); - if (error) - return "cells_alias." + error; - } + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + if (!$util.isString(message.target_keyspace)) + return "target_keyspace: string expected"; + if (message.arg != null && message.hasOwnProperty("arg")) + if (!$util.isString(message.arg)) + return "arg: string expected"; return null; }; /** - * Creates an UpdateCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffShowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.UpdateCellsAliasResponse + * @memberof vtctldata.VDiffShowRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.UpdateCellsAliasResponse} UpdateCellsAliasResponse + * @returns {vtctldata.VDiffShowRequest} VDiffShowRequest */ - UpdateCellsAliasResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.UpdateCellsAliasResponse) + VDiffShowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VDiffShowRequest) return object; - let message = new $root.vtctldata.UpdateCellsAliasResponse(); - if (object.name != null) - message.name = String(object.name); - if (object.cells_alias != null) { - if (typeof object.cells_alias !== "object") - throw TypeError(".vtctldata.UpdateCellsAliasResponse.cells_alias: object expected"); - message.cells_alias = $root.topodata.CellsAlias.fromObject(object.cells_alias); - } + let message = new $root.vtctldata.VDiffShowRequest(); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.target_keyspace != null) + message.target_keyspace = String(object.target_keyspace); + if (object.arg != null) + message.arg = String(object.arg); return message; }; /** - * Creates a plain object from an UpdateCellsAliasResponse message. Also converts values to other types if specified. + * Creates a plain object from a VDiffShowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.UpdateCellsAliasResponse + * @memberof vtctldata.VDiffShowRequest * @static - * @param {vtctldata.UpdateCellsAliasResponse} message UpdateCellsAliasResponse + * @param {vtctldata.VDiffShowRequest} message VDiffShowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateCellsAliasResponse.toObject = function toObject(message, options) { + VDiffShowRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.name = ""; - object.cells_alias = null; + object.workflow = ""; + object.target_keyspace = ""; + object.arg = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.cells_alias != null && message.hasOwnProperty("cells_alias")) - object.cells_alias = $root.topodata.CellsAlias.toObject(message.cells_alias, options); + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + object.target_keyspace = message.target_keyspace; + if (message.arg != null && message.hasOwnProperty("arg")) + object.arg = message.arg; return object; }; /** - * Converts this UpdateCellsAliasResponse to JSON. + * Converts this VDiffShowRequest to JSON. * @function toJSON - * @memberof vtctldata.UpdateCellsAliasResponse + * @memberof vtctldata.VDiffShowRequest * @instance * @returns {Object.} JSON object */ - UpdateCellsAliasResponse.prototype.toJSON = function toJSON() { + VDiffShowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateCellsAliasResponse + * Gets the default type url for VDiffShowRequest * @function getTypeUrl - * @memberof vtctldata.UpdateCellsAliasResponse + * @memberof vtctldata.VDiffShowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateCellsAliasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffShowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.UpdateCellsAliasResponse"; + return typeUrlPrefix + "/vtctldata.VDiffShowRequest"; }; - return UpdateCellsAliasResponse; + return VDiffShowRequest; })(); - vtctldata.ValidateRequest = (function() { + vtctldata.VDiffShowResponse = (function() { /** - * Properties of a ValidateRequest. + * Properties of a VDiffShowResponse. * @memberof vtctldata - * @interface IValidateRequest - * @property {boolean|null} [ping_tablets] ValidateRequest ping_tablets + * @interface IVDiffShowResponse + * @property {Object.|null} [tablet_responses] VDiffShowResponse tablet_responses */ /** - * Constructs a new ValidateRequest. + * Constructs a new VDiffShowResponse. * @memberof vtctldata - * @classdesc Represents a ValidateRequest. - * @implements IValidateRequest + * @classdesc Represents a VDiffShowResponse. + * @implements IVDiffShowResponse * @constructor - * @param {vtctldata.IValidateRequest=} [properties] Properties to set + * @param {vtctldata.IVDiffShowResponse=} [properties] Properties to set */ - function ValidateRequest(properties) { + function VDiffShowResponse(properties) { + this.tablet_responses = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -186140,75 +194877,97 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidateRequest ping_tablets. - * @member {boolean} ping_tablets - * @memberof vtctldata.ValidateRequest + * VDiffShowResponse tablet_responses. + * @member {Object.} tablet_responses + * @memberof vtctldata.VDiffShowResponse * @instance */ - ValidateRequest.prototype.ping_tablets = false; + VDiffShowResponse.prototype.tablet_responses = $util.emptyObject; /** - * Creates a new ValidateRequest instance using the specified properties. + * Creates a new VDiffShowResponse instance using the specified properties. * @function create - * @memberof vtctldata.ValidateRequest + * @memberof vtctldata.VDiffShowResponse * @static - * @param {vtctldata.IValidateRequest=} [properties] Properties to set - * @returns {vtctldata.ValidateRequest} ValidateRequest instance + * @param {vtctldata.IVDiffShowResponse=} [properties] Properties to set + * @returns {vtctldata.VDiffShowResponse} VDiffShowResponse instance */ - ValidateRequest.create = function create(properties) { - return new ValidateRequest(properties); + VDiffShowResponse.create = function create(properties) { + return new VDiffShowResponse(properties); }; /** - * Encodes the specified ValidateRequest message. Does not implicitly {@link vtctldata.ValidateRequest.verify|verify} messages. + * Encodes the specified VDiffShowResponse message. Does not implicitly {@link vtctldata.VDiffShowResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidateRequest + * @memberof vtctldata.VDiffShowResponse * @static - * @param {vtctldata.IValidateRequest} message ValidateRequest message or plain object to encode + * @param {vtctldata.IVDiffShowResponse} message VDiffShowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateRequest.encode = function encode(message, writer) { + VDiffShowResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.ping_tablets != null && Object.hasOwnProperty.call(message, "ping_tablets")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.ping_tablets); + if (message.tablet_responses != null && Object.hasOwnProperty.call(message, "tablet_responses")) + for (let keys = Object.keys(message.tablet_responses), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.tabletmanagerdata.VDiffResponse.encode(message.tablet_responses[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified ValidateRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateRequest.verify|verify} messages. + * Encodes the specified VDiffShowResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffShowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidateRequest + * @memberof vtctldata.VDiffShowResponse * @static - * @param {vtctldata.IValidateRequest} message ValidateRequest message or plain object to encode + * @param {vtctldata.IVDiffShowResponse} message VDiffShowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateRequest.encodeDelimited = function encodeDelimited(message, writer) { + VDiffShowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateRequest message from the specified reader or buffer. + * Decodes a VDiffShowResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidateRequest + * @memberof vtctldata.VDiffShowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidateRequest} ValidateRequest + * @returns {vtctldata.VDiffShowResponse} VDiffShowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateRequest.decode = function decode(reader, length) { + VDiffShowResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffShowResponse(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.ping_tablets = reader.bool(); + if (message.tablet_responses === $util.emptyObject) + message.tablet_responses = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.tabletmanagerdata.VDiffResponse.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tablet_responses[key] = value; break; } default: @@ -186220,125 +194979,145 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidateRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffShowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidateRequest + * @memberof vtctldata.VDiffShowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidateRequest} ValidateRequest + * @returns {vtctldata.VDiffShowResponse} VDiffShowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateRequest.decodeDelimited = function decodeDelimited(reader) { + VDiffShowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateRequest message. + * Verifies a VDiffShowResponse message. * @function verify - * @memberof vtctldata.ValidateRequest + * @memberof vtctldata.VDiffShowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateRequest.verify = function verify(message) { + VDiffShowResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.ping_tablets != null && message.hasOwnProperty("ping_tablets")) - if (typeof message.ping_tablets !== "boolean") - return "ping_tablets: boolean expected"; + if (message.tablet_responses != null && message.hasOwnProperty("tablet_responses")) { + if (!$util.isObject(message.tablet_responses)) + return "tablet_responses: object expected"; + let key = Object.keys(message.tablet_responses); + for (let i = 0; i < key.length; ++i) { + let error = $root.tabletmanagerdata.VDiffResponse.verify(message.tablet_responses[key[i]]); + if (error) + return "tablet_responses." + error; + } + } return null; }; /** - * Creates a ValidateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffShowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidateRequest + * @memberof vtctldata.VDiffShowResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidateRequest} ValidateRequest + * @returns {vtctldata.VDiffShowResponse} VDiffShowResponse */ - ValidateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidateRequest) + VDiffShowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VDiffShowResponse) return object; - let message = new $root.vtctldata.ValidateRequest(); - if (object.ping_tablets != null) - message.ping_tablets = Boolean(object.ping_tablets); + let message = new $root.vtctldata.VDiffShowResponse(); + if (object.tablet_responses) { + if (typeof object.tablet_responses !== "object") + throw TypeError(".vtctldata.VDiffShowResponse.tablet_responses: object expected"); + message.tablet_responses = {}; + for (let keys = Object.keys(object.tablet_responses), i = 0; i < keys.length; ++i) { + if (typeof object.tablet_responses[keys[i]] !== "object") + throw TypeError(".vtctldata.VDiffShowResponse.tablet_responses: object expected"); + message.tablet_responses[keys[i]] = $root.tabletmanagerdata.VDiffResponse.fromObject(object.tablet_responses[keys[i]]); + } + } return message; }; /** - * Creates a plain object from a ValidateRequest message. Also converts values to other types if specified. + * Creates a plain object from a VDiffShowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidateRequest + * @memberof vtctldata.VDiffShowResponse * @static - * @param {vtctldata.ValidateRequest} message ValidateRequest + * @param {vtctldata.VDiffShowResponse} message VDiffShowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateRequest.toObject = function toObject(message, options) { + VDiffShowResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.ping_tablets = false; - if (message.ping_tablets != null && message.hasOwnProperty("ping_tablets")) - object.ping_tablets = message.ping_tablets; + if (options.objects || options.defaults) + object.tablet_responses = {}; + let keys2; + if (message.tablet_responses && (keys2 = Object.keys(message.tablet_responses)).length) { + object.tablet_responses = {}; + for (let j = 0; j < keys2.length; ++j) + object.tablet_responses[keys2[j]] = $root.tabletmanagerdata.VDiffResponse.toObject(message.tablet_responses[keys2[j]], options); + } return object; }; /** - * Converts this ValidateRequest to JSON. + * Converts this VDiffShowResponse to JSON. * @function toJSON - * @memberof vtctldata.ValidateRequest + * @memberof vtctldata.VDiffShowResponse * @instance * @returns {Object.} JSON object */ - ValidateRequest.prototype.toJSON = function toJSON() { + VDiffShowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateRequest + * Gets the default type url for VDiffShowResponse * @function getTypeUrl - * @memberof vtctldata.ValidateRequest + * @memberof vtctldata.VDiffShowResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffShowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidateRequest"; + return typeUrlPrefix + "/vtctldata.VDiffShowResponse"; }; - return ValidateRequest; + return VDiffShowResponse; })(); - vtctldata.ValidateResponse = (function() { + vtctldata.VDiffStopRequest = (function() { /** - * Properties of a ValidateResponse. + * Properties of a VDiffStopRequest. * @memberof vtctldata - * @interface IValidateResponse - * @property {Array.|null} [results] ValidateResponse results - * @property {Object.|null} [results_by_keyspace] ValidateResponse results_by_keyspace + * @interface IVDiffStopRequest + * @property {string|null} [workflow] VDiffStopRequest workflow + * @property {string|null} [target_keyspace] VDiffStopRequest target_keyspace + * @property {string|null} [uuid] VDiffStopRequest uuid + * @property {Array.|null} [target_shards] VDiffStopRequest target_shards */ /** - * Constructs a new ValidateResponse. + * Constructs a new VDiffStopRequest. * @memberof vtctldata - * @classdesc Represents a ValidateResponse. - * @implements IValidateResponse + * @classdesc Represents a VDiffStopRequest. + * @implements IVDiffStopRequest * @constructor - * @param {vtctldata.IValidateResponse=} [properties] Properties to set + * @param {vtctldata.IVDiffStopRequest=} [properties] Properties to set */ - function ValidateResponse(properties) { - this.results = []; - this.results_by_keyspace = {}; + function VDiffStopRequest(properties) { + this.target_shards = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -186346,114 +195125,120 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidateResponse results. - * @member {Array.} results - * @memberof vtctldata.ValidateResponse + * VDiffStopRequest workflow. + * @member {string} workflow + * @memberof vtctldata.VDiffStopRequest * @instance */ - ValidateResponse.prototype.results = $util.emptyArray; + VDiffStopRequest.prototype.workflow = ""; /** - * ValidateResponse results_by_keyspace. - * @member {Object.} results_by_keyspace - * @memberof vtctldata.ValidateResponse + * VDiffStopRequest target_keyspace. + * @member {string} target_keyspace + * @memberof vtctldata.VDiffStopRequest * @instance */ - ValidateResponse.prototype.results_by_keyspace = $util.emptyObject; + VDiffStopRequest.prototype.target_keyspace = ""; /** - * Creates a new ValidateResponse instance using the specified properties. + * VDiffStopRequest uuid. + * @member {string} uuid + * @memberof vtctldata.VDiffStopRequest + * @instance + */ + VDiffStopRequest.prototype.uuid = ""; + + /** + * VDiffStopRequest target_shards. + * @member {Array.} target_shards + * @memberof vtctldata.VDiffStopRequest + * @instance + */ + VDiffStopRequest.prototype.target_shards = $util.emptyArray; + + /** + * Creates a new VDiffStopRequest instance using the specified properties. * @function create - * @memberof vtctldata.ValidateResponse + * @memberof vtctldata.VDiffStopRequest * @static - * @param {vtctldata.IValidateResponse=} [properties] Properties to set - * @returns {vtctldata.ValidateResponse} ValidateResponse instance + * @param {vtctldata.IVDiffStopRequest=} [properties] Properties to set + * @returns {vtctldata.VDiffStopRequest} VDiffStopRequest instance */ - ValidateResponse.create = function create(properties) { - return new ValidateResponse(properties); + VDiffStopRequest.create = function create(properties) { + return new VDiffStopRequest(properties); }; /** - * Encodes the specified ValidateResponse message. Does not implicitly {@link vtctldata.ValidateResponse.verify|verify} messages. + * Encodes the specified VDiffStopRequest message. Does not implicitly {@link vtctldata.VDiffStopRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidateResponse + * @memberof vtctldata.VDiffStopRequest * @static - * @param {vtctldata.IValidateResponse} message ValidateResponse message or plain object to encode + * @param {vtctldata.IVDiffStopRequest} message VDiffStopRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateResponse.encode = function encode(message, writer) { + VDiffStopRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (let i = 0; i < message.results.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); - if (message.results_by_keyspace != null && Object.hasOwnProperty.call(message, "results_by_keyspace")) - for (let keys = Object.keys(message.results_by_keyspace), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vtctldata.ValidateKeyspaceResponse.encode(message.results_by_keyspace[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); + if (message.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.target_keyspace); + if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid); + if (message.target_shards != null && message.target_shards.length) + for (let i = 0; i < message.target_shards.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.target_shards[i]); return writer; }; /** - * Encodes the specified ValidateResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateResponse.verify|verify} messages. + * Encodes the specified VDiffStopRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffStopRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidateResponse + * @memberof vtctldata.VDiffStopRequest * @static - * @param {vtctldata.IValidateResponse} message ValidateResponse message or plain object to encode + * @param {vtctldata.IVDiffStopRequest} message VDiffStopRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateResponse.encodeDelimited = function encodeDelimited(message, writer) { + VDiffStopRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateResponse message from the specified reader or buffer. + * Decodes a VDiffStopRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidateResponse + * @memberof vtctldata.VDiffStopRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidateResponse} ValidateResponse + * @returns {vtctldata.VDiffStopRequest} VDiffStopRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateResponse.decode = function decode(reader, length) { + VDiffStopRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffStopRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.results && message.results.length)) - message.results = []; - message.results.push(reader.string()); + message.workflow = reader.string(); break; } case 2: { - if (message.results_by_keyspace === $util.emptyObject) - message.results_by_keyspace = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vtctldata.ValidateKeyspaceResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.results_by_keyspace[key] = value; + message.target_keyspace = reader.string(); + break; + } + case 3: { + message.uuid = reader.string(); + break; + } + case 4: { + if (!(message.target_shards && message.target_shards.length)) + message.target_shards = []; + message.target_shards.push(reader.string()); break; } default: @@ -186465,163 +195250,159 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidateResponse message from the specified reader or buffer, length delimited. + * Decodes a VDiffStopRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidateResponse + * @memberof vtctldata.VDiffStopRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidateResponse} ValidateResponse + * @returns {vtctldata.VDiffStopRequest} VDiffStopRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateResponse.decodeDelimited = function decodeDelimited(reader) { + VDiffStopRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateResponse message. + * Verifies a VDiffStopRequest message. * @function verify - * @memberof vtctldata.ValidateResponse + * @memberof vtctldata.VDiffStopRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateResponse.verify = function verify(message) { + VDiffStopRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (let i = 0; i < message.results.length; ++i) - if (!$util.isString(message.results[i])) - return "results: string[] expected"; - } - if (message.results_by_keyspace != null && message.hasOwnProperty("results_by_keyspace")) { - if (!$util.isObject(message.results_by_keyspace)) - return "results_by_keyspace: object expected"; - let key = Object.keys(message.results_by_keyspace); - for (let i = 0; i < key.length; ++i) { - let error = $root.vtctldata.ValidateKeyspaceResponse.verify(message.results_by_keyspace[key[i]]); - if (error) - return "results_by_keyspace." + error; - } + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + if (!$util.isString(message.target_keyspace)) + return "target_keyspace: string expected"; + if (message.uuid != null && message.hasOwnProperty("uuid")) + if (!$util.isString(message.uuid)) + return "uuid: string expected"; + if (message.target_shards != null && message.hasOwnProperty("target_shards")) { + if (!Array.isArray(message.target_shards)) + return "target_shards: array expected"; + for (let i = 0; i < message.target_shards.length; ++i) + if (!$util.isString(message.target_shards[i])) + return "target_shards: string[] expected"; } return null; }; /** - * Creates a ValidateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffStopRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidateResponse + * @memberof vtctldata.VDiffStopRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidateResponse} ValidateResponse + * @returns {vtctldata.VDiffStopRequest} VDiffStopRequest */ - ValidateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidateResponse) + VDiffStopRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VDiffStopRequest) return object; - let message = new $root.vtctldata.ValidateResponse(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".vtctldata.ValidateResponse.results: array expected"); - message.results = []; - for (let i = 0; i < object.results.length; ++i) - message.results[i] = String(object.results[i]); - } - if (object.results_by_keyspace) { - if (typeof object.results_by_keyspace !== "object") - throw TypeError(".vtctldata.ValidateResponse.results_by_keyspace: object expected"); - message.results_by_keyspace = {}; - for (let keys = Object.keys(object.results_by_keyspace), i = 0; i < keys.length; ++i) { - if (typeof object.results_by_keyspace[keys[i]] !== "object") - throw TypeError(".vtctldata.ValidateResponse.results_by_keyspace: object expected"); - message.results_by_keyspace[keys[i]] = $root.vtctldata.ValidateKeyspaceResponse.fromObject(object.results_by_keyspace[keys[i]]); - } + let message = new $root.vtctldata.VDiffStopRequest(); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.target_keyspace != null) + message.target_keyspace = String(object.target_keyspace); + if (object.uuid != null) + message.uuid = String(object.uuid); + if (object.target_shards) { + if (!Array.isArray(object.target_shards)) + throw TypeError(".vtctldata.VDiffStopRequest.target_shards: array expected"); + message.target_shards = []; + for (let i = 0; i < object.target_shards.length; ++i) + message.target_shards[i] = String(object.target_shards[i]); } return message; }; /** - * Creates a plain object from a ValidateResponse message. Also converts values to other types if specified. + * Creates a plain object from a VDiffStopRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidateResponse + * @memberof vtctldata.VDiffStopRequest * @static - * @param {vtctldata.ValidateResponse} message ValidateResponse + * @param {vtctldata.VDiffStopRequest} message VDiffStopRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateResponse.toObject = function toObject(message, options) { + VDiffStopRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.results = []; - if (options.objects || options.defaults) - object.results_by_keyspace = {}; - if (message.results && message.results.length) { - object.results = []; - for (let j = 0; j < message.results.length; ++j) - object.results[j] = message.results[j]; + object.target_shards = []; + if (options.defaults) { + object.workflow = ""; + object.target_keyspace = ""; + object.uuid = ""; } - let keys2; - if (message.results_by_keyspace && (keys2 = Object.keys(message.results_by_keyspace)).length) { - object.results_by_keyspace = {}; - for (let j = 0; j < keys2.length; ++j) - object.results_by_keyspace[keys2[j]] = $root.vtctldata.ValidateKeyspaceResponse.toObject(message.results_by_keyspace[keys2[j]], options); + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + object.target_keyspace = message.target_keyspace; + if (message.uuid != null && message.hasOwnProperty("uuid")) + object.uuid = message.uuid; + if (message.target_shards && message.target_shards.length) { + object.target_shards = []; + for (let j = 0; j < message.target_shards.length; ++j) + object.target_shards[j] = message.target_shards[j]; } return object; }; /** - * Converts this ValidateResponse to JSON. + * Converts this VDiffStopRequest to JSON. * @function toJSON - * @memberof vtctldata.ValidateResponse + * @memberof vtctldata.VDiffStopRequest * @instance * @returns {Object.} JSON object */ - ValidateResponse.prototype.toJSON = function toJSON() { + VDiffStopRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateResponse + * Gets the default type url for VDiffStopRequest * @function getTypeUrl - * @memberof vtctldata.ValidateResponse + * @memberof vtctldata.VDiffStopRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffStopRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidateResponse"; + return typeUrlPrefix + "/vtctldata.VDiffStopRequest"; }; - return ValidateResponse; + return VDiffStopRequest; })(); - vtctldata.ValidateKeyspaceRequest = (function() { + vtctldata.VDiffStopResponse = (function() { /** - * Properties of a ValidateKeyspaceRequest. + * Properties of a VDiffStopResponse. * @memberof vtctldata - * @interface IValidateKeyspaceRequest - * @property {string|null} [keyspace] ValidateKeyspaceRequest keyspace - * @property {boolean|null} [ping_tablets] ValidateKeyspaceRequest ping_tablets + * @interface IVDiffStopResponse */ /** - * Constructs a new ValidateKeyspaceRequest. + * Constructs a new VDiffStopResponse. * @memberof vtctldata - * @classdesc Represents a ValidateKeyspaceRequest. - * @implements IValidateKeyspaceRequest + * @classdesc Represents a VDiffStopResponse. + * @implements IVDiffStopResponse * @constructor - * @param {vtctldata.IValidateKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IVDiffStopResponse=} [properties] Properties to set */ - function ValidateKeyspaceRequest(properties) { + function VDiffStopResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -186629,91 +195410,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidateKeyspaceRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.ValidateKeyspaceRequest - * @instance - */ - ValidateKeyspaceRequest.prototype.keyspace = ""; - - /** - * ValidateKeyspaceRequest ping_tablets. - * @member {boolean} ping_tablets - * @memberof vtctldata.ValidateKeyspaceRequest - * @instance - */ - ValidateKeyspaceRequest.prototype.ping_tablets = false; - - /** - * Creates a new ValidateKeyspaceRequest instance using the specified properties. + * Creates a new VDiffStopResponse instance using the specified properties. * @function create - * @memberof vtctldata.ValidateKeyspaceRequest + * @memberof vtctldata.VDiffStopResponse * @static - * @param {vtctldata.IValidateKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.ValidateKeyspaceRequest} ValidateKeyspaceRequest instance + * @param {vtctldata.IVDiffStopResponse=} [properties] Properties to set + * @returns {vtctldata.VDiffStopResponse} VDiffStopResponse instance */ - ValidateKeyspaceRequest.create = function create(properties) { - return new ValidateKeyspaceRequest(properties); + VDiffStopResponse.create = function create(properties) { + return new VDiffStopResponse(properties); }; /** - * Encodes the specified ValidateKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateKeyspaceRequest.verify|verify} messages. + * Encodes the specified VDiffStopResponse message. Does not implicitly {@link vtctldata.VDiffStopResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidateKeyspaceRequest + * @memberof vtctldata.VDiffStopResponse * @static - * @param {vtctldata.IValidateKeyspaceRequest} message ValidateKeyspaceRequest message or plain object to encode + * @param {vtctldata.IVDiffStopResponse} message VDiffStopResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateKeyspaceRequest.encode = function encode(message, writer) { + VDiffStopResponse.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.ping_tablets != null && Object.hasOwnProperty.call(message, "ping_tablets")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.ping_tablets); return writer; }; /** - * Encodes the specified ValidateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateKeyspaceRequest.verify|verify} messages. + * Encodes the specified VDiffStopResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffStopResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidateKeyspaceRequest + * @memberof vtctldata.VDiffStopResponse * @static - * @param {vtctldata.IValidateKeyspaceRequest} message ValidateKeyspaceRequest message or plain object to encode + * @param {vtctldata.IVDiffStopResponse} message VDiffStopResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + VDiffStopResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer. + * Decodes a VDiffStopResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidateKeyspaceRequest + * @memberof vtctldata.VDiffStopResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidateKeyspaceRequest} ValidateKeyspaceRequest + * @returns {vtctldata.VDiffStopResponse} VDiffStopResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateKeyspaceRequest.decode = function decode(reader, length) { + VDiffStopResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateKeyspaceRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffStopResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.ping_tablets = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -186723,134 +195476,112 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a VDiffStopResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidateKeyspaceRequest + * @memberof vtctldata.VDiffStopResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidateKeyspaceRequest} ValidateKeyspaceRequest + * @returns {vtctldata.VDiffStopResponse} VDiffStopResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + VDiffStopResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateKeyspaceRequest message. + * Verifies a VDiffStopResponse message. * @function verify - * @memberof vtctldata.ValidateKeyspaceRequest + * @memberof vtctldata.VDiffStopResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateKeyspaceRequest.verify = function verify(message) { + VDiffStopResponse.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.ping_tablets != null && message.hasOwnProperty("ping_tablets")) - if (typeof message.ping_tablets !== "boolean") - return "ping_tablets: boolean expected"; return null; }; /** - * Creates a ValidateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VDiffStopResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidateKeyspaceRequest + * @memberof vtctldata.VDiffStopResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidateKeyspaceRequest} ValidateKeyspaceRequest + * @returns {vtctldata.VDiffStopResponse} VDiffStopResponse */ - ValidateKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidateKeyspaceRequest) + VDiffStopResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VDiffStopResponse) return object; - let message = new $root.vtctldata.ValidateKeyspaceRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.ping_tablets != null) - message.ping_tablets = Boolean(object.ping_tablets); - return message; + return new $root.vtctldata.VDiffStopResponse(); }; /** - * Creates a plain object from a ValidateKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a VDiffStopResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidateKeyspaceRequest + * @memberof vtctldata.VDiffStopResponse * @static - * @param {vtctldata.ValidateKeyspaceRequest} message ValidateKeyspaceRequest + * @param {vtctldata.VDiffStopResponse} message VDiffStopResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateKeyspaceRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.ping_tablets = false; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.ping_tablets != null && message.hasOwnProperty("ping_tablets")) - object.ping_tablets = message.ping_tablets; - return object; + VDiffStopResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ValidateKeyspaceRequest to JSON. + * Converts this VDiffStopResponse to JSON. * @function toJSON - * @memberof vtctldata.ValidateKeyspaceRequest + * @memberof vtctldata.VDiffStopResponse * @instance * @returns {Object.} JSON object */ - ValidateKeyspaceRequest.prototype.toJSON = function toJSON() { + VDiffStopResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateKeyspaceRequest + * Gets the default type url for VDiffStopResponse * @function getTypeUrl - * @memberof vtctldata.ValidateKeyspaceRequest + * @memberof vtctldata.VDiffStopResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VDiffStopResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidateKeyspaceRequest"; + return typeUrlPrefix + "/vtctldata.VDiffStopResponse"; }; - return ValidateKeyspaceRequest; + return VDiffStopResponse; })(); - vtctldata.ValidateKeyspaceResponse = (function() { + vtctldata.VSchemaCreateRequest = (function() { /** - * Properties of a ValidateKeyspaceResponse. + * Properties of a VSchemaCreateRequest. * @memberof vtctldata - * @interface IValidateKeyspaceResponse - * @property {Array.|null} [results] ValidateKeyspaceResponse results - * @property {Object.|null} [results_by_shard] ValidateKeyspaceResponse results_by_shard + * @interface IVSchemaCreateRequest + * @property {string|null} [v_schema_name] VSchemaCreateRequest v_schema_name + * @property {boolean|null} [sharded] VSchemaCreateRequest sharded + * @property {boolean|null} [draft] VSchemaCreateRequest draft + * @property {string|null} [v_schema_json] VSchemaCreateRequest v_schema_json */ /** - * Constructs a new ValidateKeyspaceResponse. + * Constructs a new VSchemaCreateRequest. * @memberof vtctldata - * @classdesc Represents a ValidateKeyspaceResponse. - * @implements IValidateKeyspaceResponse + * @classdesc Represents a VSchemaCreateRequest. + * @implements IVSchemaCreateRequest * @constructor - * @param {vtctldata.IValidateKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IVSchemaCreateRequest=} [properties] Properties to set */ - function ValidateKeyspaceResponse(properties) { - this.results = []; - this.results_by_shard = {}; + function VSchemaCreateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -186858,114 +195589,117 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidateKeyspaceResponse results. - * @member {Array.} results - * @memberof vtctldata.ValidateKeyspaceResponse + * VSchemaCreateRequest v_schema_name. + * @member {string} v_schema_name + * @memberof vtctldata.VSchemaCreateRequest * @instance */ - ValidateKeyspaceResponse.prototype.results = $util.emptyArray; + VSchemaCreateRequest.prototype.v_schema_name = ""; /** - * ValidateKeyspaceResponse results_by_shard. - * @member {Object.} results_by_shard - * @memberof vtctldata.ValidateKeyspaceResponse + * VSchemaCreateRequest sharded. + * @member {boolean} sharded + * @memberof vtctldata.VSchemaCreateRequest * @instance */ - ValidateKeyspaceResponse.prototype.results_by_shard = $util.emptyObject; + VSchemaCreateRequest.prototype.sharded = false; /** - * Creates a new ValidateKeyspaceResponse instance using the specified properties. + * VSchemaCreateRequest draft. + * @member {boolean} draft + * @memberof vtctldata.VSchemaCreateRequest + * @instance + */ + VSchemaCreateRequest.prototype.draft = false; + + /** + * VSchemaCreateRequest v_schema_json. + * @member {string} v_schema_json + * @memberof vtctldata.VSchemaCreateRequest + * @instance + */ + VSchemaCreateRequest.prototype.v_schema_json = ""; + + /** + * Creates a new VSchemaCreateRequest instance using the specified properties. * @function create - * @memberof vtctldata.ValidateKeyspaceResponse + * @memberof vtctldata.VSchemaCreateRequest * @static - * @param {vtctldata.IValidateKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.ValidateKeyspaceResponse} ValidateKeyspaceResponse instance + * @param {vtctldata.IVSchemaCreateRequest=} [properties] Properties to set + * @returns {vtctldata.VSchemaCreateRequest} VSchemaCreateRequest instance */ - ValidateKeyspaceResponse.create = function create(properties) { - return new ValidateKeyspaceResponse(properties); + VSchemaCreateRequest.create = function create(properties) { + return new VSchemaCreateRequest(properties); }; /** - * Encodes the specified ValidateKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateKeyspaceResponse.verify|verify} messages. + * Encodes the specified VSchemaCreateRequest message. Does not implicitly {@link vtctldata.VSchemaCreateRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidateKeyspaceResponse + * @memberof vtctldata.VSchemaCreateRequest * @static - * @param {vtctldata.IValidateKeyspaceResponse} message ValidateKeyspaceResponse message or plain object to encode + * @param {vtctldata.IVSchemaCreateRequest} message VSchemaCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateKeyspaceResponse.encode = function encode(message, writer) { + VSchemaCreateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (let i = 0; i < message.results.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); - if (message.results_by_shard != null && Object.hasOwnProperty.call(message, "results_by_shard")) - for (let keys = Object.keys(message.results_by_shard), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vtctldata.ValidateShardResponse.encode(message.results_by_shard[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.v_schema_name != null && Object.hasOwnProperty.call(message, "v_schema_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.v_schema_name); + if (message.sharded != null && Object.hasOwnProperty.call(message, "sharded")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.sharded); + if (message.draft != null && Object.hasOwnProperty.call(message, "draft")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.draft); + if (message.v_schema_json != null && Object.hasOwnProperty.call(message, "v_schema_json")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.v_schema_json); return writer; }; /** - * Encodes the specified ValidateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateKeyspaceResponse.verify|verify} messages. + * Encodes the specified VSchemaCreateRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaCreateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidateKeyspaceResponse + * @memberof vtctldata.VSchemaCreateRequest * @static - * @param {vtctldata.IValidateKeyspaceResponse} message ValidateKeyspaceResponse message or plain object to encode + * @param {vtctldata.IVSchemaCreateRequest} message VSchemaCreateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaCreateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer. + * Decodes a VSchemaCreateRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidateKeyspaceResponse + * @memberof vtctldata.VSchemaCreateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidateKeyspaceResponse} ValidateKeyspaceResponse + * @returns {vtctldata.VSchemaCreateRequest} VSchemaCreateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateKeyspaceResponse.decode = function decode(reader, length) { + VSchemaCreateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateKeyspaceResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaCreateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.results && message.results.length)) - message.results = []; - message.results.push(reader.string()); + message.v_schema_name = reader.string(); break; } case 2: { - if (message.results_by_shard === $util.emptyObject) - message.results_by_shard = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vtctldata.ValidateShardResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.results_by_shard[key] = value; + message.sharded = reader.bool(); + break; + } + case 3: { + message.draft = reader.bool(); + break; + } + case 4: { + message.v_schema_json = reader.string(); break; } default: @@ -186977,164 +195711,146 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaCreateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidateKeyspaceResponse + * @memberof vtctldata.VSchemaCreateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidateKeyspaceResponse} ValidateKeyspaceResponse + * @returns {vtctldata.VSchemaCreateRequest} VSchemaCreateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaCreateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateKeyspaceResponse message. + * Verifies a VSchemaCreateRequest message. * @function verify - * @memberof vtctldata.ValidateKeyspaceResponse + * @memberof vtctldata.VSchemaCreateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateKeyspaceResponse.verify = function verify(message) { + VSchemaCreateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (let i = 0; i < message.results.length; ++i) - if (!$util.isString(message.results[i])) - return "results: string[] expected"; - } - if (message.results_by_shard != null && message.hasOwnProperty("results_by_shard")) { - if (!$util.isObject(message.results_by_shard)) - return "results_by_shard: object expected"; - let key = Object.keys(message.results_by_shard); - for (let i = 0; i < key.length; ++i) { - let error = $root.vtctldata.ValidateShardResponse.verify(message.results_by_shard[key[i]]); - if (error) - return "results_by_shard." + error; - } - } + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + if (!$util.isString(message.v_schema_name)) + return "v_schema_name: string expected"; + if (message.sharded != null && message.hasOwnProperty("sharded")) + if (typeof message.sharded !== "boolean") + return "sharded: boolean expected"; + if (message.draft != null && message.hasOwnProperty("draft")) + if (typeof message.draft !== "boolean") + return "draft: boolean expected"; + if (message.v_schema_json != null && message.hasOwnProperty("v_schema_json")) + if (!$util.isString(message.v_schema_json)) + return "v_schema_json: string expected"; return null; }; /** - * Creates a ValidateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaCreateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidateKeyspaceResponse + * @memberof vtctldata.VSchemaCreateRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidateKeyspaceResponse} ValidateKeyspaceResponse + * @returns {vtctldata.VSchemaCreateRequest} VSchemaCreateRequest */ - ValidateKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidateKeyspaceResponse) + VSchemaCreateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaCreateRequest) return object; - let message = new $root.vtctldata.ValidateKeyspaceResponse(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".vtctldata.ValidateKeyspaceResponse.results: array expected"); - message.results = []; - for (let i = 0; i < object.results.length; ++i) - message.results[i] = String(object.results[i]); - } - if (object.results_by_shard) { - if (typeof object.results_by_shard !== "object") - throw TypeError(".vtctldata.ValidateKeyspaceResponse.results_by_shard: object expected"); - message.results_by_shard = {}; - for (let keys = Object.keys(object.results_by_shard), i = 0; i < keys.length; ++i) { - if (typeof object.results_by_shard[keys[i]] !== "object") - throw TypeError(".vtctldata.ValidateKeyspaceResponse.results_by_shard: object expected"); - message.results_by_shard[keys[i]] = $root.vtctldata.ValidateShardResponse.fromObject(object.results_by_shard[keys[i]]); - } - } + let message = new $root.vtctldata.VSchemaCreateRequest(); + if (object.v_schema_name != null) + message.v_schema_name = String(object.v_schema_name); + if (object.sharded != null) + message.sharded = Boolean(object.sharded); + if (object.draft != null) + message.draft = Boolean(object.draft); + if (object.v_schema_json != null) + message.v_schema_json = String(object.v_schema_json); return message; }; /** - * Creates a plain object from a ValidateKeyspaceResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaCreateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidateKeyspaceResponse + * @memberof vtctldata.VSchemaCreateRequest * @static - * @param {vtctldata.ValidateKeyspaceResponse} message ValidateKeyspaceResponse + * @param {vtctldata.VSchemaCreateRequest} message VSchemaCreateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateKeyspaceResponse.toObject = function toObject(message, options) { + VSchemaCreateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.results = []; - if (options.objects || options.defaults) - object.results_by_shard = {}; - if (message.results && message.results.length) { - object.results = []; - for (let j = 0; j < message.results.length; ++j) - object.results[j] = message.results[j]; - } - let keys2; - if (message.results_by_shard && (keys2 = Object.keys(message.results_by_shard)).length) { - object.results_by_shard = {}; - for (let j = 0; j < keys2.length; ++j) - object.results_by_shard[keys2[j]] = $root.vtctldata.ValidateShardResponse.toObject(message.results_by_shard[keys2[j]], options); + if (options.defaults) { + object.v_schema_name = ""; + object.sharded = false; + object.draft = false; + object.v_schema_json = ""; } + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + object.v_schema_name = message.v_schema_name; + if (message.sharded != null && message.hasOwnProperty("sharded")) + object.sharded = message.sharded; + if (message.draft != null && message.hasOwnProperty("draft")) + object.draft = message.draft; + if (message.v_schema_json != null && message.hasOwnProperty("v_schema_json")) + object.v_schema_json = message.v_schema_json; return object; }; /** - * Converts this ValidateKeyspaceResponse to JSON. + * Converts this VSchemaCreateRequest to JSON. * @function toJSON - * @memberof vtctldata.ValidateKeyspaceResponse + * @memberof vtctldata.VSchemaCreateRequest * @instance * @returns {Object.} JSON object */ - ValidateKeyspaceResponse.prototype.toJSON = function toJSON() { + VSchemaCreateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateKeyspaceResponse + * Gets the default type url for VSchemaCreateRequest * @function getTypeUrl - * @memberof vtctldata.ValidateKeyspaceResponse + * @memberof vtctldata.VSchemaCreateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaCreateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidateKeyspaceResponse"; + return typeUrlPrefix + "/vtctldata.VSchemaCreateRequest"; }; - return ValidateKeyspaceResponse; + return VSchemaCreateRequest; })(); - vtctldata.ValidatePermissionsKeyspaceRequest = (function() { + vtctldata.VSchemaCreateResponse = (function() { /** - * Properties of a ValidatePermissionsKeyspaceRequest. + * Properties of a VSchemaCreateResponse. * @memberof vtctldata - * @interface IValidatePermissionsKeyspaceRequest - * @property {string|null} [keyspace] ValidatePermissionsKeyspaceRequest keyspace - * @property {Array.|null} [shards] ValidatePermissionsKeyspaceRequest shards + * @interface IVSchemaCreateResponse */ /** - * Constructs a new ValidatePermissionsKeyspaceRequest. + * Constructs a new VSchemaCreateResponse. * @memberof vtctldata - * @classdesc Represents a ValidatePermissionsKeyspaceRequest. - * @implements IValidatePermissionsKeyspaceRequest + * @classdesc Represents a VSchemaCreateResponse. + * @implements IVSchemaCreateResponse * @constructor - * @param {vtctldata.IValidatePermissionsKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IVSchemaCreateResponse=} [properties] Properties to set */ - function ValidatePermissionsKeyspaceRequest(properties) { - this.shards = []; + function VSchemaCreateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187142,94 +195858,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidatePermissionsKeyspaceRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.ValidatePermissionsKeyspaceRequest - * @instance - */ - ValidatePermissionsKeyspaceRequest.prototype.keyspace = ""; - - /** - * ValidatePermissionsKeyspaceRequest shards. - * @member {Array.} shards - * @memberof vtctldata.ValidatePermissionsKeyspaceRequest - * @instance - */ - ValidatePermissionsKeyspaceRequest.prototype.shards = $util.emptyArray; - - /** - * Creates a new ValidatePermissionsKeyspaceRequest instance using the specified properties. + * Creates a new VSchemaCreateResponse instance using the specified properties. * @function create - * @memberof vtctldata.ValidatePermissionsKeyspaceRequest + * @memberof vtctldata.VSchemaCreateResponse * @static - * @param {vtctldata.IValidatePermissionsKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.ValidatePermissionsKeyspaceRequest} ValidatePermissionsKeyspaceRequest instance + * @param {vtctldata.IVSchemaCreateResponse=} [properties] Properties to set + * @returns {vtctldata.VSchemaCreateResponse} VSchemaCreateResponse instance */ - ValidatePermissionsKeyspaceRequest.create = function create(properties) { - return new ValidatePermissionsKeyspaceRequest(properties); + VSchemaCreateResponse.create = function create(properties) { + return new VSchemaCreateResponse(properties); }; /** - * Encodes the specified ValidatePermissionsKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceRequest.verify|verify} messages. + * Encodes the specified VSchemaCreateResponse message. Does not implicitly {@link vtctldata.VSchemaCreateResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidatePermissionsKeyspaceRequest + * @memberof vtctldata.VSchemaCreateResponse * @static - * @param {vtctldata.IValidatePermissionsKeyspaceRequest} message ValidatePermissionsKeyspaceRequest message or plain object to encode + * @param {vtctldata.IVSchemaCreateResponse} message VSchemaCreateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidatePermissionsKeyspaceRequest.encode = function encode(message, writer) { + VSchemaCreateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shards != null && message.shards.length) - for (let i = 0; i < message.shards.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shards[i]); return writer; }; /** - * Encodes the specified ValidatePermissionsKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceRequest.verify|verify} messages. + * Encodes the specified VSchemaCreateResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaCreateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidatePermissionsKeyspaceRequest + * @memberof vtctldata.VSchemaCreateResponse * @static - * @param {vtctldata.IValidatePermissionsKeyspaceRequest} message ValidatePermissionsKeyspaceRequest message or plain object to encode + * @param {vtctldata.IVSchemaCreateResponse} message VSchemaCreateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidatePermissionsKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaCreateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidatePermissionsKeyspaceRequest message from the specified reader or buffer. + * Decodes a VSchemaCreateResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidatePermissionsKeyspaceRequest + * @memberof vtctldata.VSchemaCreateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidatePermissionsKeyspaceRequest} ValidatePermissionsKeyspaceRequest + * @returns {vtctldata.VSchemaCreateResponse} VSchemaCreateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidatePermissionsKeyspaceRequest.decode = function decode(reader, length) { + VSchemaCreateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidatePermissionsKeyspaceRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaCreateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - if (!(message.shards && message.shards.length)) - message.shards = []; - message.shards.push(reader.string()); - break; - } default: reader.skipType(tag & 7); break; @@ -187239,142 +195924,110 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidatePermissionsKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaCreateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidatePermissionsKeyspaceRequest + * @memberof vtctldata.VSchemaCreateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidatePermissionsKeyspaceRequest} ValidatePermissionsKeyspaceRequest + * @returns {vtctldata.VSchemaCreateResponse} VSchemaCreateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidatePermissionsKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + VSchemaCreateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidatePermissionsKeyspaceRequest message. + * Verifies a VSchemaCreateResponse message. * @function verify - * @memberof vtctldata.ValidatePermissionsKeyspaceRequest + * @memberof vtctldata.VSchemaCreateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidatePermissionsKeyspaceRequest.verify = function verify(message) { + VSchemaCreateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shards != null && message.hasOwnProperty("shards")) { - if (!Array.isArray(message.shards)) - return "shards: array expected"; - for (let i = 0; i < message.shards.length; ++i) - if (!$util.isString(message.shards[i])) - return "shards: string[] expected"; - } return null; }; /** - * Creates a ValidatePermissionsKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaCreateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidatePermissionsKeyspaceRequest + * @memberof vtctldata.VSchemaCreateResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidatePermissionsKeyspaceRequest} ValidatePermissionsKeyspaceRequest + * @returns {vtctldata.VSchemaCreateResponse} VSchemaCreateResponse */ - ValidatePermissionsKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidatePermissionsKeyspaceRequest) + VSchemaCreateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaCreateResponse) return object; - let message = new $root.vtctldata.ValidatePermissionsKeyspaceRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shards) { - if (!Array.isArray(object.shards)) - throw TypeError(".vtctldata.ValidatePermissionsKeyspaceRequest.shards: array expected"); - message.shards = []; - for (let i = 0; i < object.shards.length; ++i) - message.shards[i] = String(object.shards[i]); - } - return message; + return new $root.vtctldata.VSchemaCreateResponse(); }; /** - * Creates a plain object from a ValidatePermissionsKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaCreateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidatePermissionsKeyspaceRequest + * @memberof vtctldata.VSchemaCreateResponse * @static - * @param {vtctldata.ValidatePermissionsKeyspaceRequest} message ValidatePermissionsKeyspaceRequest + * @param {vtctldata.VSchemaCreateResponse} message VSchemaCreateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidatePermissionsKeyspaceRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.shards = []; - if (options.defaults) - object.keyspace = ""; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shards && message.shards.length) { - object.shards = []; - for (let j = 0; j < message.shards.length; ++j) - object.shards[j] = message.shards[j]; - } - return object; + VSchemaCreateResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ValidatePermissionsKeyspaceRequest to JSON. + * Converts this VSchemaCreateResponse to JSON. * @function toJSON - * @memberof vtctldata.ValidatePermissionsKeyspaceRequest + * @memberof vtctldata.VSchemaCreateResponse * @instance * @returns {Object.} JSON object */ - ValidatePermissionsKeyspaceRequest.prototype.toJSON = function toJSON() { + VSchemaCreateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidatePermissionsKeyspaceRequest + * Gets the default type url for VSchemaCreateResponse * @function getTypeUrl - * @memberof vtctldata.ValidatePermissionsKeyspaceRequest + * @memberof vtctldata.VSchemaCreateResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidatePermissionsKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaCreateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidatePermissionsKeyspaceRequest"; + return typeUrlPrefix + "/vtctldata.VSchemaCreateResponse"; }; - return ValidatePermissionsKeyspaceRequest; + return VSchemaCreateResponse; })(); - vtctldata.ValidatePermissionsKeyspaceResponse = (function() { + vtctldata.VSchemaGetRequest = (function() { /** - * Properties of a ValidatePermissionsKeyspaceResponse. + * Properties of a VSchemaGetRequest. * @memberof vtctldata - * @interface IValidatePermissionsKeyspaceResponse + * @interface IVSchemaGetRequest + * @property {string|null} [v_schema_name] VSchemaGetRequest v_schema_name + * @property {boolean|null} [include_drafts] VSchemaGetRequest include_drafts */ /** - * Constructs a new ValidatePermissionsKeyspaceResponse. + * Constructs a new VSchemaGetRequest. * @memberof vtctldata - * @classdesc Represents a ValidatePermissionsKeyspaceResponse. - * @implements IValidatePermissionsKeyspaceResponse + * @classdesc Represents a VSchemaGetRequest. + * @implements IVSchemaGetRequest * @constructor - * @param {vtctldata.IValidatePermissionsKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IVSchemaGetRequest=} [properties] Properties to set */ - function ValidatePermissionsKeyspaceResponse(properties) { + function VSchemaGetRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187382,63 +196035,91 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new ValidatePermissionsKeyspaceResponse instance using the specified properties. + * VSchemaGetRequest v_schema_name. + * @member {string} v_schema_name + * @memberof vtctldata.VSchemaGetRequest + * @instance + */ + VSchemaGetRequest.prototype.v_schema_name = ""; + + /** + * VSchemaGetRequest include_drafts. + * @member {boolean} include_drafts + * @memberof vtctldata.VSchemaGetRequest + * @instance + */ + VSchemaGetRequest.prototype.include_drafts = false; + + /** + * Creates a new VSchemaGetRequest instance using the specified properties. * @function create - * @memberof vtctldata.ValidatePermissionsKeyspaceResponse + * @memberof vtctldata.VSchemaGetRequest * @static - * @param {vtctldata.IValidatePermissionsKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.ValidatePermissionsKeyspaceResponse} ValidatePermissionsKeyspaceResponse instance + * @param {vtctldata.IVSchemaGetRequest=} [properties] Properties to set + * @returns {vtctldata.VSchemaGetRequest} VSchemaGetRequest instance */ - ValidatePermissionsKeyspaceResponse.create = function create(properties) { - return new ValidatePermissionsKeyspaceResponse(properties); + VSchemaGetRequest.create = function create(properties) { + return new VSchemaGetRequest(properties); }; /** - * Encodes the specified ValidatePermissionsKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceResponse.verify|verify} messages. + * Encodes the specified VSchemaGetRequest message. Does not implicitly {@link vtctldata.VSchemaGetRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidatePermissionsKeyspaceResponse + * @memberof vtctldata.VSchemaGetRequest * @static - * @param {vtctldata.IValidatePermissionsKeyspaceResponse} message ValidatePermissionsKeyspaceResponse message or plain object to encode + * @param {vtctldata.IVSchemaGetRequest} message VSchemaGetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidatePermissionsKeyspaceResponse.encode = function encode(message, writer) { + VSchemaGetRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.v_schema_name != null && Object.hasOwnProperty.call(message, "v_schema_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.v_schema_name); + if (message.include_drafts != null && Object.hasOwnProperty.call(message, "include_drafts")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.include_drafts); return writer; }; /** - * Encodes the specified ValidatePermissionsKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidatePermissionsKeyspaceResponse.verify|verify} messages. + * Encodes the specified VSchemaGetRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaGetRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidatePermissionsKeyspaceResponse + * @memberof vtctldata.VSchemaGetRequest * @static - * @param {vtctldata.IValidatePermissionsKeyspaceResponse} message ValidatePermissionsKeyspaceResponse message or plain object to encode + * @param {vtctldata.IVSchemaGetRequest} message VSchemaGetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidatePermissionsKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaGetRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidatePermissionsKeyspaceResponse message from the specified reader or buffer. + * Decodes a VSchemaGetRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidatePermissionsKeyspaceResponse + * @memberof vtctldata.VSchemaGetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidatePermissionsKeyspaceResponse} ValidatePermissionsKeyspaceResponse + * @returns {vtctldata.VSchemaGetRequest} VSchemaGetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidatePermissionsKeyspaceResponse.decode = function decode(reader, length) { + VSchemaGetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidatePermissionsKeyspaceResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaGetRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.v_schema_name = reader.string(); + break; + } + case 2: { + message.include_drafts = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -187448,116 +196129,131 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidatePermissionsKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaGetRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidatePermissionsKeyspaceResponse + * @memberof vtctldata.VSchemaGetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidatePermissionsKeyspaceResponse} ValidatePermissionsKeyspaceResponse + * @returns {vtctldata.VSchemaGetRequest} VSchemaGetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidatePermissionsKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaGetRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidatePermissionsKeyspaceResponse message. + * Verifies a VSchemaGetRequest message. * @function verify - * @memberof vtctldata.ValidatePermissionsKeyspaceResponse + * @memberof vtctldata.VSchemaGetRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidatePermissionsKeyspaceResponse.verify = function verify(message) { + VSchemaGetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + if (!$util.isString(message.v_schema_name)) + return "v_schema_name: string expected"; + if (message.include_drafts != null && message.hasOwnProperty("include_drafts")) + if (typeof message.include_drafts !== "boolean") + return "include_drafts: boolean expected"; return null; }; /** - * Creates a ValidatePermissionsKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaGetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidatePermissionsKeyspaceResponse + * @memberof vtctldata.VSchemaGetRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidatePermissionsKeyspaceResponse} ValidatePermissionsKeyspaceResponse + * @returns {vtctldata.VSchemaGetRequest} VSchemaGetRequest */ - ValidatePermissionsKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidatePermissionsKeyspaceResponse) + VSchemaGetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaGetRequest) return object; - return new $root.vtctldata.ValidatePermissionsKeyspaceResponse(); + let message = new $root.vtctldata.VSchemaGetRequest(); + if (object.v_schema_name != null) + message.v_schema_name = String(object.v_schema_name); + if (object.include_drafts != null) + message.include_drafts = Boolean(object.include_drafts); + return message; }; /** - * Creates a plain object from a ValidatePermissionsKeyspaceResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaGetRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidatePermissionsKeyspaceResponse + * @memberof vtctldata.VSchemaGetRequest * @static - * @param {vtctldata.ValidatePermissionsKeyspaceResponse} message ValidatePermissionsKeyspaceResponse + * @param {vtctldata.VSchemaGetRequest} message VSchemaGetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidatePermissionsKeyspaceResponse.toObject = function toObject() { - return {}; + VSchemaGetRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.v_schema_name = ""; + object.include_drafts = false; + } + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + object.v_schema_name = message.v_schema_name; + if (message.include_drafts != null && message.hasOwnProperty("include_drafts")) + object.include_drafts = message.include_drafts; + return object; }; /** - * Converts this ValidatePermissionsKeyspaceResponse to JSON. + * Converts this VSchemaGetRequest to JSON. * @function toJSON - * @memberof vtctldata.ValidatePermissionsKeyspaceResponse + * @memberof vtctldata.VSchemaGetRequest * @instance * @returns {Object.} JSON object */ - ValidatePermissionsKeyspaceResponse.prototype.toJSON = function toJSON() { + VSchemaGetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidatePermissionsKeyspaceResponse + * Gets the default type url for VSchemaGetRequest * @function getTypeUrl - * @memberof vtctldata.ValidatePermissionsKeyspaceResponse + * @memberof vtctldata.VSchemaGetRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidatePermissionsKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaGetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidatePermissionsKeyspaceResponse"; + return typeUrlPrefix + "/vtctldata.VSchemaGetRequest"; }; - return ValidatePermissionsKeyspaceResponse; + return VSchemaGetRequest; })(); - vtctldata.ValidateSchemaKeyspaceRequest = (function() { + vtctldata.VSchemaGetResponse = (function() { /** - * Properties of a ValidateSchemaKeyspaceRequest. + * Properties of a VSchemaGetResponse. * @memberof vtctldata - * @interface IValidateSchemaKeyspaceRequest - * @property {string|null} [keyspace] ValidateSchemaKeyspaceRequest keyspace - * @property {Array.|null} [exclude_tables] ValidateSchemaKeyspaceRequest exclude_tables - * @property {boolean|null} [include_views] ValidateSchemaKeyspaceRequest include_views - * @property {boolean|null} [skip_no_primary] ValidateSchemaKeyspaceRequest skip_no_primary - * @property {boolean|null} [include_vschema] ValidateSchemaKeyspaceRequest include_vschema - * @property {Array.|null} [shards] ValidateSchemaKeyspaceRequest shards + * @interface IVSchemaGetResponse + * @property {vschema.IKeyspace|null} [v_schema] VSchemaGetResponse v_schema */ /** - * Constructs a new ValidateSchemaKeyspaceRequest. + * Constructs a new VSchemaGetResponse. * @memberof vtctldata - * @classdesc Represents a ValidateSchemaKeyspaceRequest. - * @implements IValidateSchemaKeyspaceRequest + * @classdesc Represents a VSchemaGetResponse. + * @implements IVSchemaGetResponse * @constructor - * @param {vtctldata.IValidateSchemaKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IVSchemaGetResponse=} [properties] Properties to set */ - function ValidateSchemaKeyspaceRequest(properties) { - this.exclude_tables = []; - this.shards = []; + function VSchemaGetResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187565,151 +196261,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidateSchemaKeyspaceRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.ValidateSchemaKeyspaceRequest - * @instance - */ - ValidateSchemaKeyspaceRequest.prototype.keyspace = ""; - - /** - * ValidateSchemaKeyspaceRequest exclude_tables. - * @member {Array.} exclude_tables - * @memberof vtctldata.ValidateSchemaKeyspaceRequest - * @instance - */ - ValidateSchemaKeyspaceRequest.prototype.exclude_tables = $util.emptyArray; - - /** - * ValidateSchemaKeyspaceRequest include_views. - * @member {boolean} include_views - * @memberof vtctldata.ValidateSchemaKeyspaceRequest - * @instance - */ - ValidateSchemaKeyspaceRequest.prototype.include_views = false; - - /** - * ValidateSchemaKeyspaceRequest skip_no_primary. - * @member {boolean} skip_no_primary - * @memberof vtctldata.ValidateSchemaKeyspaceRequest - * @instance - */ - ValidateSchemaKeyspaceRequest.prototype.skip_no_primary = false; - - /** - * ValidateSchemaKeyspaceRequest include_vschema. - * @member {boolean} include_vschema - * @memberof vtctldata.ValidateSchemaKeyspaceRequest - * @instance - */ - ValidateSchemaKeyspaceRequest.prototype.include_vschema = false; - - /** - * ValidateSchemaKeyspaceRequest shards. - * @member {Array.} shards - * @memberof vtctldata.ValidateSchemaKeyspaceRequest + * VSchemaGetResponse v_schema. + * @member {vschema.IKeyspace|null|undefined} v_schema + * @memberof vtctldata.VSchemaGetResponse * @instance */ - ValidateSchemaKeyspaceRequest.prototype.shards = $util.emptyArray; + VSchemaGetResponse.prototype.v_schema = null; /** - * Creates a new ValidateSchemaKeyspaceRequest instance using the specified properties. + * Creates a new VSchemaGetResponse instance using the specified properties. * @function create - * @memberof vtctldata.ValidateSchemaKeyspaceRequest + * @memberof vtctldata.VSchemaGetResponse * @static - * @param {vtctldata.IValidateSchemaKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.ValidateSchemaKeyspaceRequest} ValidateSchemaKeyspaceRequest instance + * @param {vtctldata.IVSchemaGetResponse=} [properties] Properties to set + * @returns {vtctldata.VSchemaGetResponse} VSchemaGetResponse instance */ - ValidateSchemaKeyspaceRequest.create = function create(properties) { - return new ValidateSchemaKeyspaceRequest(properties); + VSchemaGetResponse.create = function create(properties) { + return new VSchemaGetResponse(properties); }; /** - * Encodes the specified ValidateSchemaKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceRequest.verify|verify} messages. + * Encodes the specified VSchemaGetResponse message. Does not implicitly {@link vtctldata.VSchemaGetResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidateSchemaKeyspaceRequest + * @memberof vtctldata.VSchemaGetResponse * @static - * @param {vtctldata.IValidateSchemaKeyspaceRequest} message ValidateSchemaKeyspaceRequest message or plain object to encode + * @param {vtctldata.IVSchemaGetResponse} message VSchemaGetResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateSchemaKeyspaceRequest.encode = function encode(message, writer) { + VSchemaGetResponse.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.exclude_tables != null && message.exclude_tables.length) - for (let i = 0; i < message.exclude_tables.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.exclude_tables[i]); - if (message.include_views != null && Object.hasOwnProperty.call(message, "include_views")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.include_views); - if (message.skip_no_primary != null && Object.hasOwnProperty.call(message, "skip_no_primary")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.skip_no_primary); - if (message.include_vschema != null && Object.hasOwnProperty.call(message, "include_vschema")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.include_vschema); - if (message.shards != null && message.shards.length) - for (let i = 0; i < message.shards.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.shards[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 ValidateSchemaKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceRequest.verify|verify} messages. + * Encodes the specified VSchemaGetResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaGetResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidateSchemaKeyspaceRequest + * @memberof vtctldata.VSchemaGetResponse * @static - * @param {vtctldata.IValidateSchemaKeyspaceRequest} message ValidateSchemaKeyspaceRequest message or plain object to encode + * @param {vtctldata.IVSchemaGetResponse} message VSchemaGetResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateSchemaKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaGetResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer. + * Decodes a VSchemaGetResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidateSchemaKeyspaceRequest + * @memberof vtctldata.VSchemaGetResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidateSchemaKeyspaceRequest} ValidateSchemaKeyspaceRequest + * @returns {vtctldata.VSchemaGetResponse} VSchemaGetResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateSchemaKeyspaceRequest.decode = function decode(reader, length) { + VSchemaGetResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateSchemaKeyspaceRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaGetResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - if (!(message.exclude_tables && message.exclude_tables.length)) - message.exclude_tables = []; - message.exclude_tables.push(reader.string()); - break; - } - case 3: { - message.include_views = reader.bool(); - break; - } - case 4: { - message.skip_no_primary = reader.bool(); - break; - } - case 5: { - message.include_vschema = reader.bool(); - break; - } - case 6: { - if (!(message.shards && message.shards.length)) - message.shards = []; - message.shards.push(reader.string()); + message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); break; } default: @@ -187721,192 +196341,133 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaGetResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidateSchemaKeyspaceRequest + * @memberof vtctldata.VSchemaGetResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidateSchemaKeyspaceRequest} ValidateSchemaKeyspaceRequest + * @returns {vtctldata.VSchemaGetResponse} VSchemaGetResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateSchemaKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + VSchemaGetResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateSchemaKeyspaceRequest message. + * Verifies a VSchemaGetResponse message. * @function verify - * @memberof vtctldata.ValidateSchemaKeyspaceRequest + * @memberof vtctldata.VSchemaGetResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateSchemaKeyspaceRequest.verify = function verify(message) { + VSchemaGetResponse.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.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { - if (!Array.isArray(message.exclude_tables)) - return "exclude_tables: array expected"; - for (let i = 0; i < message.exclude_tables.length; ++i) - if (!$util.isString(message.exclude_tables[i])) - return "exclude_tables: string[] expected"; - } - if (message.include_views != null && message.hasOwnProperty("include_views")) - if (typeof message.include_views !== "boolean") - return "include_views: boolean expected"; - if (message.skip_no_primary != null && message.hasOwnProperty("skip_no_primary")) - if (typeof message.skip_no_primary !== "boolean") - return "skip_no_primary: boolean expected"; - if (message.include_vschema != null && message.hasOwnProperty("include_vschema")) - if (typeof message.include_vschema !== "boolean") - return "include_vschema: boolean expected"; - if (message.shards != null && message.hasOwnProperty("shards")) { - if (!Array.isArray(message.shards)) - return "shards: array expected"; - for (let i = 0; i < message.shards.length; ++i) - if (!$util.isString(message.shards[i])) - return "shards: string[] expected"; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) { + let error = $root.vschema.Keyspace.verify(message.v_schema); + if (error) + return "v_schema." + error; } return null; }; /** - * Creates a ValidateSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaGetResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidateSchemaKeyspaceRequest + * @memberof vtctldata.VSchemaGetResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidateSchemaKeyspaceRequest} ValidateSchemaKeyspaceRequest + * @returns {vtctldata.VSchemaGetResponse} VSchemaGetResponse */ - ValidateSchemaKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidateSchemaKeyspaceRequest) + VSchemaGetResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaGetResponse) return object; - let message = new $root.vtctldata.ValidateSchemaKeyspaceRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.exclude_tables) { - if (!Array.isArray(object.exclude_tables)) - throw TypeError(".vtctldata.ValidateSchemaKeyspaceRequest.exclude_tables: array expected"); - message.exclude_tables = []; - for (let i = 0; i < object.exclude_tables.length; ++i) - message.exclude_tables[i] = String(object.exclude_tables[i]); - } - if (object.include_views != null) - message.include_views = Boolean(object.include_views); - if (object.skip_no_primary != null) - message.skip_no_primary = Boolean(object.skip_no_primary); - if (object.include_vschema != null) - message.include_vschema = Boolean(object.include_vschema); - if (object.shards) { - if (!Array.isArray(object.shards)) - throw TypeError(".vtctldata.ValidateSchemaKeyspaceRequest.shards: array expected"); - message.shards = []; - for (let i = 0; i < object.shards.length; ++i) - message.shards[i] = String(object.shards[i]); + let message = new $root.vtctldata.VSchemaGetResponse(); + if (object.v_schema != null) { + if (typeof object.v_schema !== "object") + throw TypeError(".vtctldata.VSchemaGetResponse.v_schema: object expected"); + message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); } return message; }; /** - * Creates a plain object from a ValidateSchemaKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaGetResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidateSchemaKeyspaceRequest + * @memberof vtctldata.VSchemaGetResponse * @static - * @param {vtctldata.ValidateSchemaKeyspaceRequest} message ValidateSchemaKeyspaceRequest + * @param {vtctldata.VSchemaGetResponse} message VSchemaGetResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateSchemaKeyspaceRequest.toObject = function toObject(message, options) { + VSchemaGetResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.exclude_tables = []; - object.shards = []; - } - if (options.defaults) { - object.keyspace = ""; - object.include_views = false; - object.skip_no_primary = false; - object.include_vschema = false; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.exclude_tables && message.exclude_tables.length) { - object.exclude_tables = []; - for (let j = 0; j < message.exclude_tables.length; ++j) - object.exclude_tables[j] = message.exclude_tables[j]; - } - if (message.include_views != null && message.hasOwnProperty("include_views")) - object.include_views = message.include_views; - if (message.skip_no_primary != null && message.hasOwnProperty("skip_no_primary")) - object.skip_no_primary = message.skip_no_primary; - if (message.include_vschema != null && message.hasOwnProperty("include_vschema")) - object.include_vschema = message.include_vschema; - if (message.shards && message.shards.length) { - object.shards = []; - for (let j = 0; j < message.shards.length; ++j) - object.shards[j] = message.shards[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 ValidateSchemaKeyspaceRequest to JSON. + * Converts this VSchemaGetResponse to JSON. * @function toJSON - * @memberof vtctldata.ValidateSchemaKeyspaceRequest + * @memberof vtctldata.VSchemaGetResponse * @instance * @returns {Object.} JSON object */ - ValidateSchemaKeyspaceRequest.prototype.toJSON = function toJSON() { + VSchemaGetResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateSchemaKeyspaceRequest + * Gets the default type url for VSchemaGetResponse * @function getTypeUrl - * @memberof vtctldata.ValidateSchemaKeyspaceRequest + * @memberof vtctldata.VSchemaGetResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateSchemaKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaGetResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidateSchemaKeyspaceRequest"; + return typeUrlPrefix + "/vtctldata.VSchemaGetResponse"; }; - return ValidateSchemaKeyspaceRequest; + return VSchemaGetResponse; })(); - vtctldata.ValidateSchemaKeyspaceResponse = (function() { + vtctldata.VSchemaUpdateRequest = (function() { /** - * Properties of a ValidateSchemaKeyspaceResponse. + * Properties of a VSchemaUpdateRequest. * @memberof vtctldata - * @interface IValidateSchemaKeyspaceResponse - * @property {Array.|null} [results] ValidateSchemaKeyspaceResponse results - * @property {Object.|null} [results_by_shard] ValidateSchemaKeyspaceResponse results_by_shard + * @interface IVSchemaUpdateRequest + * @property {string|null} [v_schema_name] VSchemaUpdateRequest v_schema_name + * @property {boolean|null} [sharded] VSchemaUpdateRequest sharded + * @property {string|null} [foreign_key_mode] VSchemaUpdateRequest foreign_key_mode + * @property {boolean|null} [draft] VSchemaUpdateRequest draft + * @property {boolean|null} [multi_tenant] VSchemaUpdateRequest multi_tenant + * @property {string|null} [tenant_id_column_name] VSchemaUpdateRequest tenant_id_column_name + * @property {string|null} [tenant_id_column_type] VSchemaUpdateRequest tenant_id_column_type */ /** - * Constructs a new ValidateSchemaKeyspaceResponse. + * Constructs a new VSchemaUpdateRequest. * @memberof vtctldata - * @classdesc Represents a ValidateSchemaKeyspaceResponse. - * @implements IValidateSchemaKeyspaceResponse + * @classdesc Represents a VSchemaUpdateRequest. + * @implements IVSchemaUpdateRequest * @constructor - * @param {vtctldata.IValidateSchemaKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IVSchemaUpdateRequest=} [properties] Properties to set */ - function ValidateSchemaKeyspaceResponse(properties) { - this.results = []; - this.results_by_shard = {}; + function VSchemaUpdateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187914,114 +196475,198 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidateSchemaKeyspaceResponse results. - * @member {Array.} results - * @memberof vtctldata.ValidateSchemaKeyspaceResponse + * VSchemaUpdateRequest v_schema_name. + * @member {string} v_schema_name + * @memberof vtctldata.VSchemaUpdateRequest * @instance */ - ValidateSchemaKeyspaceResponse.prototype.results = $util.emptyArray; + VSchemaUpdateRequest.prototype.v_schema_name = ""; /** - * ValidateSchemaKeyspaceResponse results_by_shard. - * @member {Object.} results_by_shard - * @memberof vtctldata.ValidateSchemaKeyspaceResponse + * VSchemaUpdateRequest sharded. + * @member {boolean|null|undefined} sharded + * @memberof vtctldata.VSchemaUpdateRequest * @instance */ - ValidateSchemaKeyspaceResponse.prototype.results_by_shard = $util.emptyObject; + VSchemaUpdateRequest.prototype.sharded = null; + + /** + * VSchemaUpdateRequest foreign_key_mode. + * @member {string|null|undefined} foreign_key_mode + * @memberof vtctldata.VSchemaUpdateRequest + * @instance + */ + VSchemaUpdateRequest.prototype.foreign_key_mode = null; + + /** + * VSchemaUpdateRequest draft. + * @member {boolean|null|undefined} draft + * @memberof vtctldata.VSchemaUpdateRequest + * @instance + */ + VSchemaUpdateRequest.prototype.draft = null; + + /** + * VSchemaUpdateRequest multi_tenant. + * @member {boolean|null|undefined} multi_tenant + * @memberof vtctldata.VSchemaUpdateRequest + * @instance + */ + VSchemaUpdateRequest.prototype.multi_tenant = null; + + /** + * VSchemaUpdateRequest tenant_id_column_name. + * @member {string|null|undefined} tenant_id_column_name + * @memberof vtctldata.VSchemaUpdateRequest + * @instance + */ + VSchemaUpdateRequest.prototype.tenant_id_column_name = null; + + /** + * VSchemaUpdateRequest tenant_id_column_type. + * @member {string|null|undefined} tenant_id_column_type + * @memberof vtctldata.VSchemaUpdateRequest + * @instance + */ + VSchemaUpdateRequest.prototype.tenant_id_column_type = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VSchemaUpdateRequest.prototype, "_sharded", { + get: $util.oneOfGetter($oneOfFields = ["sharded"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VSchemaUpdateRequest.prototype, "_foreign_key_mode", { + get: $util.oneOfGetter($oneOfFields = ["foreign_key_mode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VSchemaUpdateRequest.prototype, "_draft", { + get: $util.oneOfGetter($oneOfFields = ["draft"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VSchemaUpdateRequest.prototype, "_multi_tenant", { + get: $util.oneOfGetter($oneOfFields = ["multi_tenant"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VSchemaUpdateRequest.prototype, "_tenant_id_column_name", { + get: $util.oneOfGetter($oneOfFields = ["tenant_id_column_name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VSchemaUpdateRequest.prototype, "_tenant_id_column_type", { + get: $util.oneOfGetter($oneOfFields = ["tenant_id_column_type"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ValidateSchemaKeyspaceResponse instance using the specified properties. + * Creates a new VSchemaUpdateRequest instance using the specified properties. * @function create - * @memberof vtctldata.ValidateSchemaKeyspaceResponse + * @memberof vtctldata.VSchemaUpdateRequest * @static - * @param {vtctldata.IValidateSchemaKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.ValidateSchemaKeyspaceResponse} ValidateSchemaKeyspaceResponse instance + * @param {vtctldata.IVSchemaUpdateRequest=} [properties] Properties to set + * @returns {vtctldata.VSchemaUpdateRequest} VSchemaUpdateRequest instance */ - ValidateSchemaKeyspaceResponse.create = function create(properties) { - return new ValidateSchemaKeyspaceResponse(properties); + VSchemaUpdateRequest.create = function create(properties) { + return new VSchemaUpdateRequest(properties); }; /** - * Encodes the specified ValidateSchemaKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceResponse.verify|verify} messages. + * Encodes the specified VSchemaUpdateRequest message. Does not implicitly {@link vtctldata.VSchemaUpdateRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidateSchemaKeyspaceResponse + * @memberof vtctldata.VSchemaUpdateRequest * @static - * @param {vtctldata.IValidateSchemaKeyspaceResponse} message ValidateSchemaKeyspaceResponse message or plain object to encode + * @param {vtctldata.IVSchemaUpdateRequest} message VSchemaUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateSchemaKeyspaceResponse.encode = function encode(message, writer) { + VSchemaUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (let i = 0; i < message.results.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); - if (message.results_by_shard != null && Object.hasOwnProperty.call(message, "results_by_shard")) - for (let keys = Object.keys(message.results_by_shard), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vtctldata.ValidateShardResponse.encode(message.results_by_shard[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.v_schema_name != null && Object.hasOwnProperty.call(message, "v_schema_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.v_schema_name); + if (message.sharded != null && Object.hasOwnProperty.call(message, "sharded")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.sharded); + if (message.foreign_key_mode != null && Object.hasOwnProperty.call(message, "foreign_key_mode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.foreign_key_mode); + if (message.draft != null && Object.hasOwnProperty.call(message, "draft")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.draft); + if (message.multi_tenant != null && Object.hasOwnProperty.call(message, "multi_tenant")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.multi_tenant); + if (message.tenant_id_column_name != null && Object.hasOwnProperty.call(message, "tenant_id_column_name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.tenant_id_column_name); + if (message.tenant_id_column_type != null && Object.hasOwnProperty.call(message, "tenant_id_column_type")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.tenant_id_column_type); return writer; }; /** - * Encodes the specified ValidateSchemaKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceResponse.verify|verify} messages. + * Encodes the specified VSchemaUpdateRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaUpdateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidateSchemaKeyspaceResponse + * @memberof vtctldata.VSchemaUpdateRequest * @static - * @param {vtctldata.IValidateSchemaKeyspaceResponse} message ValidateSchemaKeyspaceResponse message or plain object to encode + * @param {vtctldata.IVSchemaUpdateRequest} message VSchemaUpdateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateSchemaKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer. + * Decodes a VSchemaUpdateRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidateSchemaKeyspaceResponse + * @memberof vtctldata.VSchemaUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidateSchemaKeyspaceResponse} ValidateSchemaKeyspaceResponse + * @returns {vtctldata.VSchemaUpdateRequest} VSchemaUpdateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateSchemaKeyspaceResponse.decode = function decode(reader, length) { + VSchemaUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateSchemaKeyspaceResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.results && message.results.length)) - message.results = []; - message.results.push(reader.string()); + message.v_schema_name = reader.string(); break; } case 2: { - if (message.results_by_shard === $util.emptyObject) - message.results_by_shard = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vtctldata.ValidateShardResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.results_by_shard[key] = value; + message.sharded = reader.bool(); + break; + } + case 3: { + message.foreign_key_mode = reader.string(); + break; + } + case 4: { + message.draft = reader.bool(); + break; + } + case 5: { + message.multi_tenant = reader.bool(); + break; + } + case 6: { + message.tenant_id_column_name = reader.string(); + break; + } + case 7: { + message.tenant_id_column_type = reader.string(); break; } default: @@ -188033,164 +196678,194 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaUpdateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidateSchemaKeyspaceResponse + * @memberof vtctldata.VSchemaUpdateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidateSchemaKeyspaceResponse} ValidateSchemaKeyspaceResponse + * @returns {vtctldata.VSchemaUpdateRequest} VSchemaUpdateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateSchemaKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaUpdateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateSchemaKeyspaceResponse message. + * Verifies a VSchemaUpdateRequest message. * @function verify - * @memberof vtctldata.ValidateSchemaKeyspaceResponse + * @memberof vtctldata.VSchemaUpdateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateSchemaKeyspaceResponse.verify = function verify(message) { + VSchemaUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (let i = 0; i < message.results.length; ++i) - if (!$util.isString(message.results[i])) - return "results: string[] expected"; + let properties = {}; + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + if (!$util.isString(message.v_schema_name)) + return "v_schema_name: string expected"; + if (message.sharded != null && message.hasOwnProperty("sharded")) { + properties._sharded = 1; + if (typeof message.sharded !== "boolean") + return "sharded: boolean expected"; } - if (message.results_by_shard != null && message.hasOwnProperty("results_by_shard")) { - if (!$util.isObject(message.results_by_shard)) - return "results_by_shard: object expected"; - let key = Object.keys(message.results_by_shard); - for (let i = 0; i < key.length; ++i) { - let error = $root.vtctldata.ValidateShardResponse.verify(message.results_by_shard[key[i]]); - if (error) - return "results_by_shard." + error; - } + if (message.foreign_key_mode != null && message.hasOwnProperty("foreign_key_mode")) { + properties._foreign_key_mode = 1; + if (!$util.isString(message.foreign_key_mode)) + return "foreign_key_mode: string expected"; + } + if (message.draft != null && message.hasOwnProperty("draft")) { + properties._draft = 1; + if (typeof message.draft !== "boolean") + return "draft: boolean expected"; + } + if (message.multi_tenant != null && message.hasOwnProperty("multi_tenant")) { + properties._multi_tenant = 1; + if (typeof message.multi_tenant !== "boolean") + return "multi_tenant: boolean expected"; + } + if (message.tenant_id_column_name != null && message.hasOwnProperty("tenant_id_column_name")) { + properties._tenant_id_column_name = 1; + if (!$util.isString(message.tenant_id_column_name)) + return "tenant_id_column_name: string expected"; + } + if (message.tenant_id_column_type != null && message.hasOwnProperty("tenant_id_column_type")) { + properties._tenant_id_column_type = 1; + if (!$util.isString(message.tenant_id_column_type)) + return "tenant_id_column_type: string expected"; } return null; }; /** - * Creates a ValidateSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaUpdateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidateSchemaKeyspaceResponse + * @memberof vtctldata.VSchemaUpdateRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidateSchemaKeyspaceResponse} ValidateSchemaKeyspaceResponse + * @returns {vtctldata.VSchemaUpdateRequest} VSchemaUpdateRequest */ - ValidateSchemaKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidateSchemaKeyspaceResponse) + VSchemaUpdateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaUpdateRequest) return object; - let message = new $root.vtctldata.ValidateSchemaKeyspaceResponse(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".vtctldata.ValidateSchemaKeyspaceResponse.results: array expected"); - message.results = []; - for (let i = 0; i < object.results.length; ++i) - message.results[i] = String(object.results[i]); - } - if (object.results_by_shard) { - if (typeof object.results_by_shard !== "object") - throw TypeError(".vtctldata.ValidateSchemaKeyspaceResponse.results_by_shard: object expected"); - message.results_by_shard = {}; - for (let keys = Object.keys(object.results_by_shard), i = 0; i < keys.length; ++i) { - if (typeof object.results_by_shard[keys[i]] !== "object") - throw TypeError(".vtctldata.ValidateSchemaKeyspaceResponse.results_by_shard: object expected"); - message.results_by_shard[keys[i]] = $root.vtctldata.ValidateShardResponse.fromObject(object.results_by_shard[keys[i]]); - } - } + let message = new $root.vtctldata.VSchemaUpdateRequest(); + if (object.v_schema_name != null) + message.v_schema_name = String(object.v_schema_name); + if (object.sharded != null) + message.sharded = Boolean(object.sharded); + if (object.foreign_key_mode != null) + message.foreign_key_mode = String(object.foreign_key_mode); + if (object.draft != null) + message.draft = Boolean(object.draft); + if (object.multi_tenant != null) + message.multi_tenant = Boolean(object.multi_tenant); + if (object.tenant_id_column_name != null) + message.tenant_id_column_name = String(object.tenant_id_column_name); + if (object.tenant_id_column_type != null) + message.tenant_id_column_type = String(object.tenant_id_column_type); return message; }; /** - * Creates a plain object from a ValidateSchemaKeyspaceResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaUpdateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidateSchemaKeyspaceResponse + * @memberof vtctldata.VSchemaUpdateRequest * @static - * @param {vtctldata.ValidateSchemaKeyspaceResponse} message ValidateSchemaKeyspaceResponse + * @param {vtctldata.VSchemaUpdateRequest} message VSchemaUpdateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateSchemaKeyspaceResponse.toObject = function toObject(message, options) { + VSchemaUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.results = []; - if (options.objects || options.defaults) - object.results_by_shard = {}; - if (message.results && message.results.length) { - object.results = []; - for (let j = 0; j < message.results.length; ++j) - object.results[j] = message.results[j]; + if (options.defaults) + object.v_schema_name = ""; + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + object.v_schema_name = message.v_schema_name; + if (message.sharded != null && message.hasOwnProperty("sharded")) { + object.sharded = message.sharded; + if (options.oneofs) + object._sharded = "sharded"; } - let keys2; - if (message.results_by_shard && (keys2 = Object.keys(message.results_by_shard)).length) { - object.results_by_shard = {}; - for (let j = 0; j < keys2.length; ++j) - object.results_by_shard[keys2[j]] = $root.vtctldata.ValidateShardResponse.toObject(message.results_by_shard[keys2[j]], options); + if (message.foreign_key_mode != null && message.hasOwnProperty("foreign_key_mode")) { + object.foreign_key_mode = message.foreign_key_mode; + if (options.oneofs) + object._foreign_key_mode = "foreign_key_mode"; + } + if (message.draft != null && message.hasOwnProperty("draft")) { + object.draft = message.draft; + if (options.oneofs) + object._draft = "draft"; + } + if (message.multi_tenant != null && message.hasOwnProperty("multi_tenant")) { + object.multi_tenant = message.multi_tenant; + if (options.oneofs) + object._multi_tenant = "multi_tenant"; + } + if (message.tenant_id_column_name != null && message.hasOwnProperty("tenant_id_column_name")) { + object.tenant_id_column_name = message.tenant_id_column_name; + if (options.oneofs) + object._tenant_id_column_name = "tenant_id_column_name"; + } + if (message.tenant_id_column_type != null && message.hasOwnProperty("tenant_id_column_type")) { + object.tenant_id_column_type = message.tenant_id_column_type; + if (options.oneofs) + object._tenant_id_column_type = "tenant_id_column_type"; } return object; }; /** - * Converts this ValidateSchemaKeyspaceResponse to JSON. + * Converts this VSchemaUpdateRequest to JSON. * @function toJSON - * @memberof vtctldata.ValidateSchemaKeyspaceResponse + * @memberof vtctldata.VSchemaUpdateRequest * @instance * @returns {Object.} JSON object */ - ValidateSchemaKeyspaceResponse.prototype.toJSON = function toJSON() { + VSchemaUpdateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateSchemaKeyspaceResponse + * Gets the default type url for VSchemaUpdateRequest * @function getTypeUrl - * @memberof vtctldata.ValidateSchemaKeyspaceResponse + * @memberof vtctldata.VSchemaUpdateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateSchemaKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidateSchemaKeyspaceResponse"; + return typeUrlPrefix + "/vtctldata.VSchemaUpdateRequest"; }; - return ValidateSchemaKeyspaceResponse; + return VSchemaUpdateRequest; })(); - vtctldata.ValidateShardRequest = (function() { + vtctldata.VSchemaUpdateResponse = (function() { /** - * Properties of a ValidateShardRequest. + * Properties of a VSchemaUpdateResponse. * @memberof vtctldata - * @interface IValidateShardRequest - * @property {string|null} [keyspace] ValidateShardRequest keyspace - * @property {string|null} [shard] ValidateShardRequest shard - * @property {boolean|null} [ping_tablets] ValidateShardRequest ping_tablets + * @interface IVSchemaUpdateResponse */ /** - * Constructs a new ValidateShardRequest. + * Constructs a new VSchemaUpdateResponse. * @memberof vtctldata - * @classdesc Represents a ValidateShardRequest. - * @implements IValidateShardRequest + * @classdesc Represents a VSchemaUpdateResponse. + * @implements IVSchemaUpdateResponse * @constructor - * @param {vtctldata.IValidateShardRequest=} [properties] Properties to set + * @param {vtctldata.IVSchemaUpdateResponse=} [properties] Properties to set */ - function ValidateShardRequest(properties) { + function VSchemaUpdateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -188198,105 +196873,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidateShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.ValidateShardRequest - * @instance - */ - ValidateShardRequest.prototype.keyspace = ""; - - /** - * ValidateShardRequest shard. - * @member {string} shard - * @memberof vtctldata.ValidateShardRequest - * @instance - */ - ValidateShardRequest.prototype.shard = ""; - - /** - * ValidateShardRequest ping_tablets. - * @member {boolean} ping_tablets - * @memberof vtctldata.ValidateShardRequest - * @instance - */ - ValidateShardRequest.prototype.ping_tablets = false; - - /** - * Creates a new ValidateShardRequest instance using the specified properties. + * Creates a new VSchemaUpdateResponse instance using the specified properties. * @function create - * @memberof vtctldata.ValidateShardRequest + * @memberof vtctldata.VSchemaUpdateResponse * @static - * @param {vtctldata.IValidateShardRequest=} [properties] Properties to set - * @returns {vtctldata.ValidateShardRequest} ValidateShardRequest instance + * @param {vtctldata.IVSchemaUpdateResponse=} [properties] Properties to set + * @returns {vtctldata.VSchemaUpdateResponse} VSchemaUpdateResponse instance */ - ValidateShardRequest.create = function create(properties) { - return new ValidateShardRequest(properties); + VSchemaUpdateResponse.create = function create(properties) { + return new VSchemaUpdateResponse(properties); }; /** - * Encodes the specified ValidateShardRequest message. Does not implicitly {@link vtctldata.ValidateShardRequest.verify|verify} messages. + * Encodes the specified VSchemaUpdateResponse message. Does not implicitly {@link vtctldata.VSchemaUpdateResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidateShardRequest + * @memberof vtctldata.VSchemaUpdateResponse * @static - * @param {vtctldata.IValidateShardRequest} message ValidateShardRequest message or plain object to encode + * @param {vtctldata.IVSchemaUpdateResponse} message VSchemaUpdateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateShardRequest.encode = function encode(message, writer) { + VSchemaUpdateResponse.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.ping_tablets != null && Object.hasOwnProperty.call(message, "ping_tablets")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.ping_tablets); return writer; }; /** - * Encodes the specified ValidateShardRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateShardRequest.verify|verify} messages. + * Encodes the specified VSchemaUpdateResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaUpdateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidateShardRequest + * @memberof vtctldata.VSchemaUpdateResponse * @static - * @param {vtctldata.IValidateShardRequest} message ValidateShardRequest message or plain object to encode + * @param {vtctldata.IVSchemaUpdateResponse} message VSchemaUpdateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateShardRequest message from the specified reader or buffer. + * Decodes a VSchemaUpdateResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidateShardRequest + * @memberof vtctldata.VSchemaUpdateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidateShardRequest} ValidateShardRequest + * @returns {vtctldata.VSchemaUpdateResponse} VSchemaUpdateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateShardRequest.decode = function decode(reader, length) { + VSchemaUpdateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateShardRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaUpdateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.shard = reader.string(); - break; - } - case 3: { - message.ping_tablets = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -188306,140 +196939,109 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidateShardRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaUpdateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidateShardRequest + * @memberof vtctldata.VSchemaUpdateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidateShardRequest} ValidateShardRequest + * @returns {vtctldata.VSchemaUpdateResponse} VSchemaUpdateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateShardRequest.decodeDelimited = function decodeDelimited(reader) { + VSchemaUpdateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateShardRequest message. + * Verifies a VSchemaUpdateResponse message. * @function verify - * @memberof vtctldata.ValidateShardRequest + * @memberof vtctldata.VSchemaUpdateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateShardRequest.verify = function verify(message) { + VSchemaUpdateResponse.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.ping_tablets != null && message.hasOwnProperty("ping_tablets")) - if (typeof message.ping_tablets !== "boolean") - return "ping_tablets: boolean expected"; return null; }; /** - * Creates a ValidateShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaUpdateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidateShardRequest + * @memberof vtctldata.VSchemaUpdateResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidateShardRequest} ValidateShardRequest + * @returns {vtctldata.VSchemaUpdateResponse} VSchemaUpdateResponse */ - ValidateShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidateShardRequest) + VSchemaUpdateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaUpdateResponse) return object; - let message = new $root.vtctldata.ValidateShardRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.ping_tablets != null) - message.ping_tablets = Boolean(object.ping_tablets); - return message; + return new $root.vtctldata.VSchemaUpdateResponse(); }; /** - * Creates a plain object from a ValidateShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaUpdateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidateShardRequest + * @memberof vtctldata.VSchemaUpdateResponse * @static - * @param {vtctldata.ValidateShardRequest} message ValidateShardRequest + * @param {vtctldata.VSchemaUpdateResponse} message VSchemaUpdateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateShardRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.ping_tablets = false; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.ping_tablets != null && message.hasOwnProperty("ping_tablets")) - object.ping_tablets = message.ping_tablets; - return object; + VSchemaUpdateResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ValidateShardRequest to JSON. + * Converts this VSchemaUpdateResponse to JSON. * @function toJSON - * @memberof vtctldata.ValidateShardRequest + * @memberof vtctldata.VSchemaUpdateResponse * @instance * @returns {Object.} JSON object */ - ValidateShardRequest.prototype.toJSON = function toJSON() { + VSchemaUpdateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateShardRequest + * Gets the default type url for VSchemaUpdateResponse * @function getTypeUrl - * @memberof vtctldata.ValidateShardRequest + * @memberof vtctldata.VSchemaUpdateResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaUpdateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidateShardRequest"; + return typeUrlPrefix + "/vtctldata.VSchemaUpdateResponse"; }; - return ValidateShardRequest; + return VSchemaUpdateResponse; })(); - vtctldata.ValidateShardResponse = (function() { + vtctldata.VSchemaPublishRequest = (function() { /** - * Properties of a ValidateShardResponse. + * Properties of a VSchemaPublishRequest. * @memberof vtctldata - * @interface IValidateShardResponse - * @property {Array.|null} [results] ValidateShardResponse results + * @interface IVSchemaPublishRequest + * @property {string|null} [v_schema_name] VSchemaPublishRequest v_schema_name */ /** - * Constructs a new ValidateShardResponse. + * Constructs a new VSchemaPublishRequest. * @memberof vtctldata - * @classdesc Represents a ValidateShardResponse. - * @implements IValidateShardResponse + * @classdesc Represents a VSchemaPublishRequest. + * @implements IVSchemaPublishRequest * @constructor - * @param {vtctldata.IValidateShardResponse=} [properties] Properties to set + * @param {vtctldata.IVSchemaPublishRequest=} [properties] Properties to set */ - function ValidateShardResponse(properties) { - this.results = []; + function VSchemaPublishRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -188447,78 +197049,75 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidateShardResponse results. - * @member {Array.} results - * @memberof vtctldata.ValidateShardResponse + * VSchemaPublishRequest v_schema_name. + * @member {string} v_schema_name + * @memberof vtctldata.VSchemaPublishRequest * @instance */ - ValidateShardResponse.prototype.results = $util.emptyArray; + VSchemaPublishRequest.prototype.v_schema_name = ""; /** - * Creates a new ValidateShardResponse instance using the specified properties. + * Creates a new VSchemaPublishRequest instance using the specified properties. * @function create - * @memberof vtctldata.ValidateShardResponse + * @memberof vtctldata.VSchemaPublishRequest * @static - * @param {vtctldata.IValidateShardResponse=} [properties] Properties to set - * @returns {vtctldata.ValidateShardResponse} ValidateShardResponse instance + * @param {vtctldata.IVSchemaPublishRequest=} [properties] Properties to set + * @returns {vtctldata.VSchemaPublishRequest} VSchemaPublishRequest instance */ - ValidateShardResponse.create = function create(properties) { - return new ValidateShardResponse(properties); + VSchemaPublishRequest.create = function create(properties) { + return new VSchemaPublishRequest(properties); }; /** - * Encodes the specified ValidateShardResponse message. Does not implicitly {@link vtctldata.ValidateShardResponse.verify|verify} messages. + * Encodes the specified VSchemaPublishRequest message. Does not implicitly {@link vtctldata.VSchemaPublishRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidateShardResponse + * @memberof vtctldata.VSchemaPublishRequest * @static - * @param {vtctldata.IValidateShardResponse} message ValidateShardResponse message or plain object to encode + * @param {vtctldata.IVSchemaPublishRequest} message VSchemaPublishRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateShardResponse.encode = function encode(message, writer) { + VSchemaPublishRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (let i = 0; i < message.results.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); + if (message.v_schema_name != null && Object.hasOwnProperty.call(message, "v_schema_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.v_schema_name); return writer; }; /** - * Encodes the specified ValidateShardResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateShardResponse.verify|verify} messages. + * Encodes the specified VSchemaPublishRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaPublishRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidateShardResponse + * @memberof vtctldata.VSchemaPublishRequest * @static - * @param {vtctldata.IValidateShardResponse} message ValidateShardResponse message or plain object to encode + * @param {vtctldata.IVSchemaPublishRequest} message VSchemaPublishRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaPublishRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateShardResponse message from the specified reader or buffer. + * Decodes a VSchemaPublishRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidateShardResponse + * @memberof vtctldata.VSchemaPublishRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidateShardResponse} ValidateShardResponse + * @returns {vtctldata.VSchemaPublishRequest} VSchemaPublishRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateShardResponse.decode = function decode(reader, length) { + VSchemaPublishRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateShardResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaPublishRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.results && message.results.length)) - message.results = []; - message.results.push(reader.string()); + message.v_schema_name = reader.string(); break; } default: @@ -188530,134 +197129,121 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidateShardResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaPublishRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidateShardResponse + * @memberof vtctldata.VSchemaPublishRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidateShardResponse} ValidateShardResponse + * @returns {vtctldata.VSchemaPublishRequest} VSchemaPublishRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateShardResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaPublishRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateShardResponse message. + * Verifies a VSchemaPublishRequest message. * @function verify - * @memberof vtctldata.ValidateShardResponse + * @memberof vtctldata.VSchemaPublishRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateShardResponse.verify = function verify(message) { + VSchemaPublishRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (let i = 0; i < message.results.length; ++i) - if (!$util.isString(message.results[i])) - return "results: string[] expected"; - } + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + if (!$util.isString(message.v_schema_name)) + return "v_schema_name: string expected"; return null; }; /** - * Creates a ValidateShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaPublishRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidateShardResponse + * @memberof vtctldata.VSchemaPublishRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidateShardResponse} ValidateShardResponse + * @returns {vtctldata.VSchemaPublishRequest} VSchemaPublishRequest */ - ValidateShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidateShardResponse) + VSchemaPublishRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaPublishRequest) return object; - let message = new $root.vtctldata.ValidateShardResponse(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".vtctldata.ValidateShardResponse.results: array expected"); - message.results = []; - for (let i = 0; i < object.results.length; ++i) - message.results[i] = String(object.results[i]); - } + let message = new $root.vtctldata.VSchemaPublishRequest(); + if (object.v_schema_name != null) + message.v_schema_name = String(object.v_schema_name); return message; }; /** - * Creates a plain object from a ValidateShardResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaPublishRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidateShardResponse + * @memberof vtctldata.VSchemaPublishRequest * @static - * @param {vtctldata.ValidateShardResponse} message ValidateShardResponse + * @param {vtctldata.VSchemaPublishRequest} message VSchemaPublishRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateShardResponse.toObject = function toObject(message, options) { + VSchemaPublishRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.results = []; - if (message.results && message.results.length) { - object.results = []; - for (let j = 0; j < message.results.length; ++j) - object.results[j] = message.results[j]; - } + if (options.defaults) + object.v_schema_name = ""; + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + object.v_schema_name = message.v_schema_name; return object; }; /** - * Converts this ValidateShardResponse to JSON. + * Converts this VSchemaPublishRequest to JSON. * @function toJSON - * @memberof vtctldata.ValidateShardResponse + * @memberof vtctldata.VSchemaPublishRequest * @instance * @returns {Object.} JSON object */ - ValidateShardResponse.prototype.toJSON = function toJSON() { + VSchemaPublishRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateShardResponse + * Gets the default type url for VSchemaPublishRequest * @function getTypeUrl - * @memberof vtctldata.ValidateShardResponse + * @memberof vtctldata.VSchemaPublishRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaPublishRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidateShardResponse"; + return typeUrlPrefix + "/vtctldata.VSchemaPublishRequest"; }; - return ValidateShardResponse; + return VSchemaPublishRequest; })(); - vtctldata.ValidateVersionKeyspaceRequest = (function() { + vtctldata.VSchemaPublishResponse = (function() { /** - * Properties of a ValidateVersionKeyspaceRequest. + * Properties of a VSchemaPublishResponse. * @memberof vtctldata - * @interface IValidateVersionKeyspaceRequest - * @property {string|null} [keyspace] ValidateVersionKeyspaceRequest keyspace + * @interface IVSchemaPublishResponse */ /** - * Constructs a new ValidateVersionKeyspaceRequest. + * Constructs a new VSchemaPublishResponse. * @memberof vtctldata - * @classdesc Represents a ValidateVersionKeyspaceRequest. - * @implements IValidateVersionKeyspaceRequest + * @classdesc Represents a VSchemaPublishResponse. + * @implements IVSchemaPublishResponse * @constructor - * @param {vtctldata.IValidateVersionKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IVSchemaPublishResponse=} [properties] Properties to set */ - function ValidateVersionKeyspaceRequest(properties) { + function VSchemaPublishResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -188665,77 +197251,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidateVersionKeyspaceRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.ValidateVersionKeyspaceRequest - * @instance - */ - ValidateVersionKeyspaceRequest.prototype.keyspace = ""; - - /** - * Creates a new ValidateVersionKeyspaceRequest instance using the specified properties. + * Creates a new VSchemaPublishResponse instance using the specified properties. * @function create - * @memberof vtctldata.ValidateVersionKeyspaceRequest + * @memberof vtctldata.VSchemaPublishResponse * @static - * @param {vtctldata.IValidateVersionKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.ValidateVersionKeyspaceRequest} ValidateVersionKeyspaceRequest instance + * @param {vtctldata.IVSchemaPublishResponse=} [properties] Properties to set + * @returns {vtctldata.VSchemaPublishResponse} VSchemaPublishResponse instance */ - ValidateVersionKeyspaceRequest.create = function create(properties) { - return new ValidateVersionKeyspaceRequest(properties); + VSchemaPublishResponse.create = function create(properties) { + return new VSchemaPublishResponse(properties); }; /** - * Encodes the specified ValidateVersionKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceRequest.verify|verify} messages. + * Encodes the specified VSchemaPublishResponse message. Does not implicitly {@link vtctldata.VSchemaPublishResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidateVersionKeyspaceRequest + * @memberof vtctldata.VSchemaPublishResponse * @static - * @param {vtctldata.IValidateVersionKeyspaceRequest} message ValidateVersionKeyspaceRequest message or plain object to encode + * @param {vtctldata.IVSchemaPublishResponse} message VSchemaPublishResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVersionKeyspaceRequest.encode = function encode(message, writer) { + VSchemaPublishResponse.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); return writer; }; /** - * Encodes the specified ValidateVersionKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceRequest.verify|verify} messages. + * Encodes the specified VSchemaPublishResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaPublishResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidateVersionKeyspaceRequest + * @memberof vtctldata.VSchemaPublishResponse * @static - * @param {vtctldata.IValidateVersionKeyspaceRequest} message ValidateVersionKeyspaceRequest message or plain object to encode + * @param {vtctldata.IVSchemaPublishResponse} message VSchemaPublishResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVersionKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaPublishResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer. + * Decodes a VSchemaPublishResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidateVersionKeyspaceRequest + * @memberof vtctldata.VSchemaPublishResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidateVersionKeyspaceRequest} ValidateVersionKeyspaceRequest + * @returns {vtctldata.VSchemaPublishResponse} VSchemaPublishResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVersionKeyspaceRequest.decode = function decode(reader, length) { + VSchemaPublishResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateVersionKeyspaceRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaPublishResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -188745,125 +197317,113 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaPublishResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidateVersionKeyspaceRequest + * @memberof vtctldata.VSchemaPublishResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidateVersionKeyspaceRequest} ValidateVersionKeyspaceRequest + * @returns {vtctldata.VSchemaPublishResponse} VSchemaPublishResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVersionKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + VSchemaPublishResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateVersionKeyspaceRequest message. + * Verifies a VSchemaPublishResponse message. * @function verify - * @memberof vtctldata.ValidateVersionKeyspaceRequest + * @memberof vtctldata.VSchemaPublishResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateVersionKeyspaceRequest.verify = function verify(message) { + VSchemaPublishResponse.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"; return null; }; /** - * Creates a ValidateVersionKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaPublishResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidateVersionKeyspaceRequest + * @memberof vtctldata.VSchemaPublishResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidateVersionKeyspaceRequest} ValidateVersionKeyspaceRequest + * @returns {vtctldata.VSchemaPublishResponse} VSchemaPublishResponse */ - ValidateVersionKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidateVersionKeyspaceRequest) + VSchemaPublishResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaPublishResponse) return object; - let message = new $root.vtctldata.ValidateVersionKeyspaceRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - return message; + return new $root.vtctldata.VSchemaPublishResponse(); }; /** - * Creates a plain object from a ValidateVersionKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaPublishResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidateVersionKeyspaceRequest + * @memberof vtctldata.VSchemaPublishResponse * @static - * @param {vtctldata.ValidateVersionKeyspaceRequest} message ValidateVersionKeyspaceRequest + * @param {vtctldata.VSchemaPublishResponse} message VSchemaPublishResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateVersionKeyspaceRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.keyspace = ""; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - return object; + VSchemaPublishResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ValidateVersionKeyspaceRequest to JSON. + * Converts this VSchemaPublishResponse to JSON. * @function toJSON - * @memberof vtctldata.ValidateVersionKeyspaceRequest + * @memberof vtctldata.VSchemaPublishResponse * @instance * @returns {Object.} JSON object */ - ValidateVersionKeyspaceRequest.prototype.toJSON = function toJSON() { + VSchemaPublishResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateVersionKeyspaceRequest + * Gets the default type url for VSchemaPublishResponse * @function getTypeUrl - * @memberof vtctldata.ValidateVersionKeyspaceRequest + * @memberof vtctldata.VSchemaPublishResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateVersionKeyspaceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaPublishResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidateVersionKeyspaceRequest"; + return typeUrlPrefix + "/vtctldata.VSchemaPublishResponse"; }; - return ValidateVersionKeyspaceRequest; + return VSchemaPublishResponse; })(); - vtctldata.ValidateVersionKeyspaceResponse = (function() { + vtctldata.VSchemaAddVindexRequest = (function() { /** - * Properties of a ValidateVersionKeyspaceResponse. + * Properties of a VSchemaAddVindexRequest. * @memberof vtctldata - * @interface IValidateVersionKeyspaceResponse - * @property {Array.|null} [results] ValidateVersionKeyspaceResponse results - * @property {Object.|null} [results_by_shard] ValidateVersionKeyspaceResponse results_by_shard + * @interface IVSchemaAddVindexRequest + * @property {string|null} [v_schema_name] VSchemaAddVindexRequest v_schema_name + * @property {string|null} [vindex_name] VSchemaAddVindexRequest vindex_name + * @property {string|null} [vindex_type] VSchemaAddVindexRequest vindex_type + * @property {Object.|null} [params] VSchemaAddVindexRequest params */ /** - * Constructs a new ValidateVersionKeyspaceResponse. + * Constructs a new VSchemaAddVindexRequest. * @memberof vtctldata - * @classdesc Represents a ValidateVersionKeyspaceResponse. - * @implements IValidateVersionKeyspaceResponse + * @classdesc Represents a VSchemaAddVindexRequest. + * @implements IVSchemaAddVindexRequest * @constructor - * @param {vtctldata.IValidateVersionKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IVSchemaAddVindexRequest=} [properties] Properties to set */ - function ValidateVersionKeyspaceResponse(properties) { - this.results = []; - this.results_by_shard = {}; + function VSchemaAddVindexRequest(properties) { + this.params = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -188871,99 +197431,122 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidateVersionKeyspaceResponse results. - * @member {Array.} results - * @memberof vtctldata.ValidateVersionKeyspaceResponse + * VSchemaAddVindexRequest v_schema_name. + * @member {string} v_schema_name + * @memberof vtctldata.VSchemaAddVindexRequest * @instance */ - ValidateVersionKeyspaceResponse.prototype.results = $util.emptyArray; + VSchemaAddVindexRequest.prototype.v_schema_name = ""; /** - * ValidateVersionKeyspaceResponse results_by_shard. - * @member {Object.} results_by_shard - * @memberof vtctldata.ValidateVersionKeyspaceResponse + * VSchemaAddVindexRequest vindex_name. + * @member {string} vindex_name + * @memberof vtctldata.VSchemaAddVindexRequest * @instance */ - ValidateVersionKeyspaceResponse.prototype.results_by_shard = $util.emptyObject; + VSchemaAddVindexRequest.prototype.vindex_name = ""; /** - * Creates a new ValidateVersionKeyspaceResponse instance using the specified properties. + * VSchemaAddVindexRequest vindex_type. + * @member {string} vindex_type + * @memberof vtctldata.VSchemaAddVindexRequest + * @instance + */ + VSchemaAddVindexRequest.prototype.vindex_type = ""; + + /** + * VSchemaAddVindexRequest params. + * @member {Object.} params + * @memberof vtctldata.VSchemaAddVindexRequest + * @instance + */ + VSchemaAddVindexRequest.prototype.params = $util.emptyObject; + + /** + * Creates a new VSchemaAddVindexRequest instance using the specified properties. * @function create - * @memberof vtctldata.ValidateVersionKeyspaceResponse + * @memberof vtctldata.VSchemaAddVindexRequest * @static - * @param {vtctldata.IValidateVersionKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.ValidateVersionKeyspaceResponse} ValidateVersionKeyspaceResponse instance + * @param {vtctldata.IVSchemaAddVindexRequest=} [properties] Properties to set + * @returns {vtctldata.VSchemaAddVindexRequest} VSchemaAddVindexRequest instance */ - ValidateVersionKeyspaceResponse.create = function create(properties) { - return new ValidateVersionKeyspaceResponse(properties); + VSchemaAddVindexRequest.create = function create(properties) { + return new VSchemaAddVindexRequest(properties); }; /** - * Encodes the specified ValidateVersionKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceResponse.verify|verify} messages. + * Encodes the specified VSchemaAddVindexRequest message. Does not implicitly {@link vtctldata.VSchemaAddVindexRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidateVersionKeyspaceResponse + * @memberof vtctldata.VSchemaAddVindexRequest * @static - * @param {vtctldata.IValidateVersionKeyspaceResponse} message ValidateVersionKeyspaceResponse message or plain object to encode + * @param {vtctldata.IVSchemaAddVindexRequest} message VSchemaAddVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVersionKeyspaceResponse.encode = function encode(message, writer) { + VSchemaAddVindexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (let i = 0; i < message.results.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); - if (message.results_by_shard != null && Object.hasOwnProperty.call(message, "results_by_shard")) - for (let keys = Object.keys(message.results_by_shard), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vtctldata.ValidateShardResponse.encode(message.results_by_shard[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.v_schema_name != null && Object.hasOwnProperty.call(message, "v_schema_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.v_schema_name); + if (message.vindex_name != null && Object.hasOwnProperty.call(message, "vindex_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.vindex_name); + if (message.vindex_type != null && Object.hasOwnProperty.call(message, "vindex_type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.vindex_type); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + for (let keys = Object.keys(message.params), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.params[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified ValidateVersionKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceResponse.verify|verify} messages. + * Encodes the specified VSchemaAddVindexRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaAddVindexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidateVersionKeyspaceResponse + * @memberof vtctldata.VSchemaAddVindexRequest * @static - * @param {vtctldata.IValidateVersionKeyspaceResponse} message ValidateVersionKeyspaceResponse message or plain object to encode + * @param {vtctldata.IVSchemaAddVindexRequest} message VSchemaAddVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVersionKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaAddVindexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer. + * Decodes a VSchemaAddVindexRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidateVersionKeyspaceResponse + * @memberof vtctldata.VSchemaAddVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidateVersionKeyspaceResponse} ValidateVersionKeyspaceResponse + * @returns {vtctldata.VSchemaAddVindexRequest} VSchemaAddVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVersionKeyspaceResponse.decode = function decode(reader, length) { + VSchemaAddVindexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateVersionKeyspaceResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaAddVindexRequest(), key, value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.results && message.results.length)) - message.results = []; - message.results.push(reader.string()); + message.v_schema_name = reader.string(); break; } case 2: { - if (message.results_by_shard === $util.emptyObject) - message.results_by_shard = {}; + message.vindex_name = reader.string(); + break; + } + case 3: { + message.vindex_type = reader.string(); + break; + } + case 4: { + if (message.params === $util.emptyObject) + message.params = {}; let end2 = reader.uint32() + reader.pos; key = ""; - value = null; + value = ""; while (reader.pos < end2) { let tag2 = reader.uint32(); switch (tag2 >>> 3) { @@ -188971,14 +197554,14 @@ export const vtctldata = $root.vtctldata = (() => { key = reader.string(); break; case 2: - value = $root.vtctldata.ValidateShardResponse.decode(reader, reader.uint32()); + value = reader.string(); break; default: reader.skipType(tag2 & 7); break; } } - message.results_by_shard[key] = value; + message.params[key] = value; break; } default: @@ -188990,163 +197573,161 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddVindexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidateVersionKeyspaceResponse + * @memberof vtctldata.VSchemaAddVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidateVersionKeyspaceResponse} ValidateVersionKeyspaceResponse + * @returns {vtctldata.VSchemaAddVindexRequest} VSchemaAddVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVersionKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaAddVindexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateVersionKeyspaceResponse message. + * Verifies a VSchemaAddVindexRequest message. * @function verify - * @memberof vtctldata.ValidateVersionKeyspaceResponse + * @memberof vtctldata.VSchemaAddVindexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateVersionKeyspaceResponse.verify = function verify(message) { + VSchemaAddVindexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (let i = 0; i < message.results.length; ++i) - if (!$util.isString(message.results[i])) - return "results: string[] expected"; - } - if (message.results_by_shard != null && message.hasOwnProperty("results_by_shard")) { - if (!$util.isObject(message.results_by_shard)) - return "results_by_shard: object expected"; - let key = Object.keys(message.results_by_shard); - for (let i = 0; i < key.length; ++i) { - let error = $root.vtctldata.ValidateShardResponse.verify(message.results_by_shard[key[i]]); - if (error) - return "results_by_shard." + error; - } + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + if (!$util.isString(message.v_schema_name)) + return "v_schema_name: string expected"; + if (message.vindex_name != null && message.hasOwnProperty("vindex_name")) + if (!$util.isString(message.vindex_name)) + return "vindex_name: string expected"; + if (message.vindex_type != null && message.hasOwnProperty("vindex_type")) + if (!$util.isString(message.vindex_type)) + return "vindex_type: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + if (!$util.isObject(message.params)) + return "params: object expected"; + let key = Object.keys(message.params); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.params[key[i]])) + return "params: string{k:string} expected"; } return null; }; /** - * Creates a ValidateVersionKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaAddVindexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidateVersionKeyspaceResponse + * @memberof vtctldata.VSchemaAddVindexRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidateVersionKeyspaceResponse} ValidateVersionKeyspaceResponse + * @returns {vtctldata.VSchemaAddVindexRequest} VSchemaAddVindexRequest */ - ValidateVersionKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidateVersionKeyspaceResponse) + VSchemaAddVindexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaAddVindexRequest) return object; - let message = new $root.vtctldata.ValidateVersionKeyspaceResponse(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".vtctldata.ValidateVersionKeyspaceResponse.results: array expected"); - message.results = []; - for (let i = 0; i < object.results.length; ++i) - message.results[i] = String(object.results[i]); - } - if (object.results_by_shard) { - if (typeof object.results_by_shard !== "object") - throw TypeError(".vtctldata.ValidateVersionKeyspaceResponse.results_by_shard: object expected"); - message.results_by_shard = {}; - for (let keys = Object.keys(object.results_by_shard), i = 0; i < keys.length; ++i) { - if (typeof object.results_by_shard[keys[i]] !== "object") - throw TypeError(".vtctldata.ValidateVersionKeyspaceResponse.results_by_shard: object expected"); - message.results_by_shard[keys[i]] = $root.vtctldata.ValidateShardResponse.fromObject(object.results_by_shard[keys[i]]); - } + let message = new $root.vtctldata.VSchemaAddVindexRequest(); + if (object.v_schema_name != null) + message.v_schema_name = String(object.v_schema_name); + if (object.vindex_name != null) + message.vindex_name = String(object.vindex_name); + if (object.vindex_type != null) + message.vindex_type = String(object.vindex_type); + if (object.params) { + if (typeof object.params !== "object") + throw TypeError(".vtctldata.VSchemaAddVindexRequest.params: object expected"); + message.params = {}; + for (let keys = Object.keys(object.params), i = 0; i < keys.length; ++i) + message.params[keys[i]] = String(object.params[keys[i]]); } return message; }; /** - * Creates a plain object from a ValidateVersionKeyspaceResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaAddVindexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidateVersionKeyspaceResponse + * @memberof vtctldata.VSchemaAddVindexRequest * @static - * @param {vtctldata.ValidateVersionKeyspaceResponse} message ValidateVersionKeyspaceResponse + * @param {vtctldata.VSchemaAddVindexRequest} message VSchemaAddVindexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateVersionKeyspaceResponse.toObject = function toObject(message, options) { + VSchemaAddVindexRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.results = []; if (options.objects || options.defaults) - object.results_by_shard = {}; - if (message.results && message.results.length) { - object.results = []; - for (let j = 0; j < message.results.length; ++j) - object.results[j] = message.results[j]; - } + object.params = {}; + if (options.defaults) { + object.v_schema_name = ""; + object.vindex_name = ""; + object.vindex_type = ""; + } + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + object.v_schema_name = message.v_schema_name; + if (message.vindex_name != null && message.hasOwnProperty("vindex_name")) + object.vindex_name = message.vindex_name; + if (message.vindex_type != null && message.hasOwnProperty("vindex_type")) + object.vindex_type = message.vindex_type; let keys2; - if (message.results_by_shard && (keys2 = Object.keys(message.results_by_shard)).length) { - object.results_by_shard = {}; + if (message.params && (keys2 = Object.keys(message.params)).length) { + object.params = {}; for (let j = 0; j < keys2.length; ++j) - object.results_by_shard[keys2[j]] = $root.vtctldata.ValidateShardResponse.toObject(message.results_by_shard[keys2[j]], options); + object.params[keys2[j]] = message.params[keys2[j]]; } return object; }; /** - * Converts this ValidateVersionKeyspaceResponse to JSON. + * Converts this VSchemaAddVindexRequest to JSON. * @function toJSON - * @memberof vtctldata.ValidateVersionKeyspaceResponse + * @memberof vtctldata.VSchemaAddVindexRequest * @instance * @returns {Object.} JSON object */ - ValidateVersionKeyspaceResponse.prototype.toJSON = function toJSON() { + VSchemaAddVindexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateVersionKeyspaceResponse + * Gets the default type url for VSchemaAddVindexRequest * @function getTypeUrl - * @memberof vtctldata.ValidateVersionKeyspaceResponse + * @memberof vtctldata.VSchemaAddVindexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateVersionKeyspaceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaAddVindexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidateVersionKeyspaceResponse"; + return typeUrlPrefix + "/vtctldata.VSchemaAddVindexRequest"; }; - return ValidateVersionKeyspaceResponse; + return VSchemaAddVindexRequest; })(); - vtctldata.ValidateVersionShardRequest = (function() { + vtctldata.VSchemaAddVindexResponse = (function() { /** - * Properties of a ValidateVersionShardRequest. + * Properties of a VSchemaAddVindexResponse. * @memberof vtctldata - * @interface IValidateVersionShardRequest - * @property {string|null} [keyspace] ValidateVersionShardRequest keyspace - * @property {string|null} [shard] ValidateVersionShardRequest shard + * @interface IVSchemaAddVindexResponse */ /** - * Constructs a new ValidateVersionShardRequest. + * Constructs a new VSchemaAddVindexResponse. * @memberof vtctldata - * @classdesc Represents a ValidateVersionShardRequest. - * @implements IValidateVersionShardRequest + * @classdesc Represents a VSchemaAddVindexResponse. + * @implements IVSchemaAddVindexResponse * @constructor - * @param {vtctldata.IValidateVersionShardRequest=} [properties] Properties to set + * @param {vtctldata.IVSchemaAddVindexResponse=} [properties] Properties to set */ - function ValidateVersionShardRequest(properties) { + function VSchemaAddVindexResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -189154,91 +197735,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidateVersionShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.ValidateVersionShardRequest - * @instance - */ - ValidateVersionShardRequest.prototype.keyspace = ""; - - /** - * ValidateVersionShardRequest shard. - * @member {string} shard - * @memberof vtctldata.ValidateVersionShardRequest - * @instance - */ - ValidateVersionShardRequest.prototype.shard = ""; - - /** - * Creates a new ValidateVersionShardRequest instance using the specified properties. + * Creates a new VSchemaAddVindexResponse instance using the specified properties. * @function create - * @memberof vtctldata.ValidateVersionShardRequest + * @memberof vtctldata.VSchemaAddVindexResponse * @static - * @param {vtctldata.IValidateVersionShardRequest=} [properties] Properties to set - * @returns {vtctldata.ValidateVersionShardRequest} ValidateVersionShardRequest instance + * @param {vtctldata.IVSchemaAddVindexResponse=} [properties] Properties to set + * @returns {vtctldata.VSchemaAddVindexResponse} VSchemaAddVindexResponse instance */ - ValidateVersionShardRequest.create = function create(properties) { - return new ValidateVersionShardRequest(properties); + VSchemaAddVindexResponse.create = function create(properties) { + return new VSchemaAddVindexResponse(properties); }; /** - * Encodes the specified ValidateVersionShardRequest message. Does not implicitly {@link vtctldata.ValidateVersionShardRequest.verify|verify} messages. + * Encodes the specified VSchemaAddVindexResponse message. Does not implicitly {@link vtctldata.VSchemaAddVindexResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidateVersionShardRequest + * @memberof vtctldata.VSchemaAddVindexResponse * @static - * @param {vtctldata.IValidateVersionShardRequest} message ValidateVersionShardRequest message or plain object to encode + * @param {vtctldata.IVSchemaAddVindexResponse} message VSchemaAddVindexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVersionShardRequest.encode = function encode(message, writer) { + VSchemaAddVindexResponse.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); return writer; }; /** - * Encodes the specified ValidateVersionShardRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionShardRequest.verify|verify} messages. + * Encodes the specified VSchemaAddVindexResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaAddVindexResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidateVersionShardRequest + * @memberof vtctldata.VSchemaAddVindexResponse * @static - * @param {vtctldata.IValidateVersionShardRequest} message ValidateVersionShardRequest message or plain object to encode + * @param {vtctldata.IVSchemaAddVindexResponse} message VSchemaAddVindexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVersionShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaAddVindexResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateVersionShardRequest message from the specified reader or buffer. + * Decodes a VSchemaAddVindexResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidateVersionShardRequest + * @memberof vtctldata.VSchemaAddVindexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidateVersionShardRequest} ValidateVersionShardRequest + * @returns {vtctldata.VSchemaAddVindexResponse} VSchemaAddVindexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVersionShardRequest.decode = function decode(reader, length) { + VSchemaAddVindexResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateVersionShardRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaAddVindexResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.shard = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -189248,132 +197801,110 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidateVersionShardRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddVindexResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidateVersionShardRequest + * @memberof vtctldata.VSchemaAddVindexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidateVersionShardRequest} ValidateVersionShardRequest + * @returns {vtctldata.VSchemaAddVindexResponse} VSchemaAddVindexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVersionShardRequest.decodeDelimited = function decodeDelimited(reader) { + VSchemaAddVindexResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateVersionShardRequest message. + * Verifies a VSchemaAddVindexResponse message. * @function verify - * @memberof vtctldata.ValidateVersionShardRequest + * @memberof vtctldata.VSchemaAddVindexResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateVersionShardRequest.verify = function verify(message) { + VSchemaAddVindexResponse.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"; return null; }; /** - * Creates a ValidateVersionShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaAddVindexResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidateVersionShardRequest + * @memberof vtctldata.VSchemaAddVindexResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidateVersionShardRequest} ValidateVersionShardRequest + * @returns {vtctldata.VSchemaAddVindexResponse} VSchemaAddVindexResponse */ - ValidateVersionShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidateVersionShardRequest) + VSchemaAddVindexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaAddVindexResponse) return object; - let message = new $root.vtctldata.ValidateVersionShardRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - return message; + return new $root.vtctldata.VSchemaAddVindexResponse(); }; /** - * Creates a plain object from a ValidateVersionShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaAddVindexResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidateVersionShardRequest + * @memberof vtctldata.VSchemaAddVindexResponse * @static - * @param {vtctldata.ValidateVersionShardRequest} message ValidateVersionShardRequest + * @param {vtctldata.VSchemaAddVindexResponse} message VSchemaAddVindexResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateVersionShardRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - return object; + VSchemaAddVindexResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ValidateVersionShardRequest to JSON. + * Converts this VSchemaAddVindexResponse to JSON. * @function toJSON - * @memberof vtctldata.ValidateVersionShardRequest + * @memberof vtctldata.VSchemaAddVindexResponse * @instance * @returns {Object.} JSON object */ - ValidateVersionShardRequest.prototype.toJSON = function toJSON() { + VSchemaAddVindexResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateVersionShardRequest + * Gets the default type url for VSchemaAddVindexResponse * @function getTypeUrl - * @memberof vtctldata.ValidateVersionShardRequest + * @memberof vtctldata.VSchemaAddVindexResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateVersionShardRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaAddVindexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidateVersionShardRequest"; + return typeUrlPrefix + "/vtctldata.VSchemaAddVindexResponse"; }; - return ValidateVersionShardRequest; + return VSchemaAddVindexResponse; })(); - vtctldata.ValidateVersionShardResponse = (function() { + vtctldata.VSchemaRemoveVindexRequest = (function() { /** - * Properties of a ValidateVersionShardResponse. + * Properties of a VSchemaRemoveVindexRequest. * @memberof vtctldata - * @interface IValidateVersionShardResponse - * @property {Array.|null} [results] ValidateVersionShardResponse results + * @interface IVSchemaRemoveVindexRequest + * @property {string|null} [v_schema_name] VSchemaRemoveVindexRequest v_schema_name + * @property {string|null} [vindex_name] VSchemaRemoveVindexRequest vindex_name */ /** - * Constructs a new ValidateVersionShardResponse. + * Constructs a new VSchemaRemoveVindexRequest. * @memberof vtctldata - * @classdesc Represents a ValidateVersionShardResponse. - * @implements IValidateVersionShardResponse + * @classdesc Represents a VSchemaRemoveVindexRequest. + * @implements IVSchemaRemoveVindexRequest * @constructor - * @param {vtctldata.IValidateVersionShardResponse=} [properties] Properties to set + * @param {vtctldata.IVSchemaRemoveVindexRequest=} [properties] Properties to set */ - function ValidateVersionShardResponse(properties) { - this.results = []; + function VSchemaRemoveVindexRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -189381,78 +197912,89 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidateVersionShardResponse results. - * @member {Array.} results - * @memberof vtctldata.ValidateVersionShardResponse + * VSchemaRemoveVindexRequest v_schema_name. + * @member {string} v_schema_name + * @memberof vtctldata.VSchemaRemoveVindexRequest * @instance */ - ValidateVersionShardResponse.prototype.results = $util.emptyArray; + VSchemaRemoveVindexRequest.prototype.v_schema_name = ""; /** - * Creates a new ValidateVersionShardResponse instance using the specified properties. + * VSchemaRemoveVindexRequest vindex_name. + * @member {string} vindex_name + * @memberof vtctldata.VSchemaRemoveVindexRequest + * @instance + */ + VSchemaRemoveVindexRequest.prototype.vindex_name = ""; + + /** + * Creates a new VSchemaRemoveVindexRequest instance using the specified properties. * @function create - * @memberof vtctldata.ValidateVersionShardResponse + * @memberof vtctldata.VSchemaRemoveVindexRequest * @static - * @param {vtctldata.IValidateVersionShardResponse=} [properties] Properties to set - * @returns {vtctldata.ValidateVersionShardResponse} ValidateVersionShardResponse instance + * @param {vtctldata.IVSchemaRemoveVindexRequest=} [properties] Properties to set + * @returns {vtctldata.VSchemaRemoveVindexRequest} VSchemaRemoveVindexRequest instance */ - ValidateVersionShardResponse.create = function create(properties) { - return new ValidateVersionShardResponse(properties); + VSchemaRemoveVindexRequest.create = function create(properties) { + return new VSchemaRemoveVindexRequest(properties); }; /** - * Encodes the specified ValidateVersionShardResponse message. Does not implicitly {@link vtctldata.ValidateVersionShardResponse.verify|verify} messages. + * Encodes the specified VSchemaRemoveVindexRequest message. Does not implicitly {@link vtctldata.VSchemaRemoveVindexRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidateVersionShardResponse + * @memberof vtctldata.VSchemaRemoveVindexRequest * @static - * @param {vtctldata.IValidateVersionShardResponse} message ValidateVersionShardResponse message or plain object to encode + * @param {vtctldata.IVSchemaRemoveVindexRequest} message VSchemaRemoveVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVersionShardResponse.encode = function encode(message, writer) { + VSchemaRemoveVindexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (let i = 0; i < message.results.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); + if (message.v_schema_name != null && Object.hasOwnProperty.call(message, "v_schema_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.v_schema_name); + if (message.vindex_name != null && Object.hasOwnProperty.call(message, "vindex_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.vindex_name); return writer; }; /** - * Encodes the specified ValidateVersionShardResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionShardResponse.verify|verify} messages. + * Encodes the specified VSchemaRemoveVindexRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaRemoveVindexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidateVersionShardResponse + * @memberof vtctldata.VSchemaRemoveVindexRequest * @static - * @param {vtctldata.IValidateVersionShardResponse} message ValidateVersionShardResponse message or plain object to encode + * @param {vtctldata.IVSchemaRemoveVindexRequest} message VSchemaRemoveVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVersionShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaRemoveVindexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateVersionShardResponse message from the specified reader or buffer. + * Decodes a VSchemaRemoveVindexRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidateVersionShardResponse + * @memberof vtctldata.VSchemaRemoveVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidateVersionShardResponse} ValidateVersionShardResponse + * @returns {vtctldata.VSchemaRemoveVindexRequest} VSchemaRemoveVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVersionShardResponse.decode = function decode(reader, length) { + VSchemaRemoveVindexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateVersionShardResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaRemoveVindexRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.results && message.results.length)) - message.results = []; - message.results.push(reader.string()); + message.v_schema_name = reader.string(); + break; + } + case 2: { + message.vindex_name = reader.string(); break; } default: @@ -189464,139 +198006,130 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidateVersionShardResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaRemoveVindexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidateVersionShardResponse + * @memberof vtctldata.VSchemaRemoveVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidateVersionShardResponse} ValidateVersionShardResponse + * @returns {vtctldata.VSchemaRemoveVindexRequest} VSchemaRemoveVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVersionShardResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaRemoveVindexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateVersionShardResponse message. + * Verifies a VSchemaRemoveVindexRequest message. * @function verify - * @memberof vtctldata.ValidateVersionShardResponse + * @memberof vtctldata.VSchemaRemoveVindexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateVersionShardResponse.verify = function verify(message) { + VSchemaRemoveVindexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (let i = 0; i < message.results.length; ++i) - if (!$util.isString(message.results[i])) - return "results: string[] expected"; - } + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + if (!$util.isString(message.v_schema_name)) + return "v_schema_name: string expected"; + if (message.vindex_name != null && message.hasOwnProperty("vindex_name")) + if (!$util.isString(message.vindex_name)) + return "vindex_name: string expected"; return null; }; /** - * Creates a ValidateVersionShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaRemoveVindexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidateVersionShardResponse + * @memberof vtctldata.VSchemaRemoveVindexRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidateVersionShardResponse} ValidateVersionShardResponse + * @returns {vtctldata.VSchemaRemoveVindexRequest} VSchemaRemoveVindexRequest */ - ValidateVersionShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidateVersionShardResponse) + VSchemaRemoveVindexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaRemoveVindexRequest) return object; - let message = new $root.vtctldata.ValidateVersionShardResponse(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".vtctldata.ValidateVersionShardResponse.results: array expected"); - message.results = []; - for (let i = 0; i < object.results.length; ++i) - message.results[i] = String(object.results[i]); - } + let message = new $root.vtctldata.VSchemaRemoveVindexRequest(); + if (object.v_schema_name != null) + message.v_schema_name = String(object.v_schema_name); + if (object.vindex_name != null) + message.vindex_name = String(object.vindex_name); return message; }; /** - * Creates a plain object from a ValidateVersionShardResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaRemoveVindexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidateVersionShardResponse + * @memberof vtctldata.VSchemaRemoveVindexRequest * @static - * @param {vtctldata.ValidateVersionShardResponse} message ValidateVersionShardResponse + * @param {vtctldata.VSchemaRemoveVindexRequest} message VSchemaRemoveVindexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateVersionShardResponse.toObject = function toObject(message, options) { + VSchemaRemoveVindexRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.results = []; - if (message.results && message.results.length) { - object.results = []; - for (let j = 0; j < message.results.length; ++j) - object.results[j] = message.results[j]; + if (options.defaults) { + object.v_schema_name = ""; + object.vindex_name = ""; } + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + object.v_schema_name = message.v_schema_name; + if (message.vindex_name != null && message.hasOwnProperty("vindex_name")) + object.vindex_name = message.vindex_name; return object; }; /** - * Converts this ValidateVersionShardResponse to JSON. + * Converts this VSchemaRemoveVindexRequest to JSON. * @function toJSON - * @memberof vtctldata.ValidateVersionShardResponse + * @memberof vtctldata.VSchemaRemoveVindexRequest * @instance * @returns {Object.} JSON object */ - ValidateVersionShardResponse.prototype.toJSON = function toJSON() { + VSchemaRemoveVindexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateVersionShardResponse + * Gets the default type url for VSchemaRemoveVindexRequest * @function getTypeUrl - * @memberof vtctldata.ValidateVersionShardResponse + * @memberof vtctldata.VSchemaRemoveVindexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateVersionShardResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaRemoveVindexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidateVersionShardResponse"; + return typeUrlPrefix + "/vtctldata.VSchemaRemoveVindexRequest"; }; - return ValidateVersionShardResponse; + return VSchemaRemoveVindexRequest; })(); - vtctldata.ValidateVSchemaRequest = (function() { + vtctldata.VSchemaRemoveVindexResponse = (function() { /** - * Properties of a ValidateVSchemaRequest. + * Properties of a VSchemaRemoveVindexResponse. * @memberof vtctldata - * @interface IValidateVSchemaRequest - * @property {string|null} [keyspace] ValidateVSchemaRequest keyspace - * @property {Array.|null} [shards] ValidateVSchemaRequest shards - * @property {Array.|null} [exclude_tables] ValidateVSchemaRequest exclude_tables - * @property {boolean|null} [include_views] ValidateVSchemaRequest include_views + * @interface IVSchemaRemoveVindexResponse */ /** - * Constructs a new ValidateVSchemaRequest. + * Constructs a new VSchemaRemoveVindexResponse. * @memberof vtctldata - * @classdesc Represents a ValidateVSchemaRequest. - * @implements IValidateVSchemaRequest + * @classdesc Represents a VSchemaRemoveVindexResponse. + * @implements IVSchemaRemoveVindexResponse * @constructor - * @param {vtctldata.IValidateVSchemaRequest=} [properties] Properties to set + * @param {vtctldata.IVSchemaRemoveVindexResponse=} [properties] Properties to set */ - function ValidateVSchemaRequest(properties) { - this.shards = []; - this.exclude_tables = []; + function VSchemaRemoveVindexResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -189604,125 +198137,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidateVSchemaRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.ValidateVSchemaRequest - * @instance - */ - ValidateVSchemaRequest.prototype.keyspace = ""; - - /** - * ValidateVSchemaRequest shards. - * @member {Array.} shards - * @memberof vtctldata.ValidateVSchemaRequest - * @instance - */ - ValidateVSchemaRequest.prototype.shards = $util.emptyArray; - - /** - * ValidateVSchemaRequest exclude_tables. - * @member {Array.} exclude_tables - * @memberof vtctldata.ValidateVSchemaRequest - * @instance - */ - ValidateVSchemaRequest.prototype.exclude_tables = $util.emptyArray; - - /** - * ValidateVSchemaRequest include_views. - * @member {boolean} include_views - * @memberof vtctldata.ValidateVSchemaRequest - * @instance - */ - ValidateVSchemaRequest.prototype.include_views = false; - - /** - * Creates a new ValidateVSchemaRequest instance using the specified properties. + * Creates a new VSchemaRemoveVindexResponse instance using the specified properties. * @function create - * @memberof vtctldata.ValidateVSchemaRequest + * @memberof vtctldata.VSchemaRemoveVindexResponse * @static - * @param {vtctldata.IValidateVSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.ValidateVSchemaRequest} ValidateVSchemaRequest instance + * @param {vtctldata.IVSchemaRemoveVindexResponse=} [properties] Properties to set + * @returns {vtctldata.VSchemaRemoveVindexResponse} VSchemaRemoveVindexResponse instance */ - ValidateVSchemaRequest.create = function create(properties) { - return new ValidateVSchemaRequest(properties); + VSchemaRemoveVindexResponse.create = function create(properties) { + return new VSchemaRemoveVindexResponse(properties); }; /** - * Encodes the specified ValidateVSchemaRequest message. Does not implicitly {@link vtctldata.ValidateVSchemaRequest.verify|verify} messages. + * Encodes the specified VSchemaRemoveVindexResponse message. Does not implicitly {@link vtctldata.VSchemaRemoveVindexResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidateVSchemaRequest + * @memberof vtctldata.VSchemaRemoveVindexResponse * @static - * @param {vtctldata.IValidateVSchemaRequest} message ValidateVSchemaRequest message or plain object to encode + * @param {vtctldata.IVSchemaRemoveVindexResponse} message VSchemaRemoveVindexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVSchemaRequest.encode = function encode(message, writer) { + VSchemaRemoveVindexResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shards != null && message.shards.length) - for (let i = 0; i < message.shards.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shards[i]); - if (message.exclude_tables != null && message.exclude_tables.length) - for (let i = 0; i < message.exclude_tables.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_tables[i]); - if (message.include_views != null && Object.hasOwnProperty.call(message, "include_views")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_views); return writer; }; /** - * Encodes the specified ValidateVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVSchemaRequest.verify|verify} messages. + * Encodes the specified VSchemaRemoveVindexResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaRemoveVindexResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidateVSchemaRequest + * @memberof vtctldata.VSchemaRemoveVindexResponse * @static - * @param {vtctldata.IValidateVSchemaRequest} message ValidateVSchemaRequest message or plain object to encode + * @param {vtctldata.IVSchemaRemoveVindexResponse} message VSchemaRemoveVindexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaRemoveVindexResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateVSchemaRequest message from the specified reader or buffer. + * Decodes a VSchemaRemoveVindexResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidateVSchemaRequest + * @memberof vtctldata.VSchemaRemoveVindexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidateVSchemaRequest} ValidateVSchemaRequest + * @returns {vtctldata.VSchemaRemoveVindexResponse} VSchemaRemoveVindexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVSchemaRequest.decode = function decode(reader, length) { + VSchemaRemoveVindexResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateVSchemaRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaRemoveVindexResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - if (!(message.shards && message.shards.length)) - message.shards = []; - message.shards.push(reader.string()); - break; - } - case 3: { - if (!(message.exclude_tables && message.exclude_tables.length)) - message.exclude_tables = []; - message.exclude_tables.push(reader.string()); - break; - } - case 4: { - message.include_views = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -189732,176 +198203,116 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidateVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaRemoveVindexResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidateVSchemaRequest + * @memberof vtctldata.VSchemaRemoveVindexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidateVSchemaRequest} ValidateVSchemaRequest + * @returns {vtctldata.VSchemaRemoveVindexResponse} VSchemaRemoveVindexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + VSchemaRemoveVindexResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateVSchemaRequest message. + * Verifies a VSchemaRemoveVindexResponse message. * @function verify - * @memberof vtctldata.ValidateVSchemaRequest + * @memberof vtctldata.VSchemaRemoveVindexResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateVSchemaRequest.verify = function verify(message) { + VSchemaRemoveVindexResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shards != null && message.hasOwnProperty("shards")) { - if (!Array.isArray(message.shards)) - return "shards: array expected"; - for (let i = 0; i < message.shards.length; ++i) - if (!$util.isString(message.shards[i])) - return "shards: string[] expected"; - } - if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { - if (!Array.isArray(message.exclude_tables)) - return "exclude_tables: array expected"; - for (let i = 0; i < message.exclude_tables.length; ++i) - if (!$util.isString(message.exclude_tables[i])) - return "exclude_tables: string[] expected"; - } - if (message.include_views != null && message.hasOwnProperty("include_views")) - if (typeof message.include_views !== "boolean") - return "include_views: boolean expected"; return null; }; /** - * Creates a ValidateVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaRemoveVindexResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidateVSchemaRequest + * @memberof vtctldata.VSchemaRemoveVindexResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidateVSchemaRequest} ValidateVSchemaRequest + * @returns {vtctldata.VSchemaRemoveVindexResponse} VSchemaRemoveVindexResponse */ - ValidateVSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidateVSchemaRequest) + VSchemaRemoveVindexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaRemoveVindexResponse) return object; - let message = new $root.vtctldata.ValidateVSchemaRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shards) { - if (!Array.isArray(object.shards)) - throw TypeError(".vtctldata.ValidateVSchemaRequest.shards: array expected"); - message.shards = []; - for (let i = 0; i < object.shards.length; ++i) - message.shards[i] = String(object.shards[i]); - } - if (object.exclude_tables) { - if (!Array.isArray(object.exclude_tables)) - throw TypeError(".vtctldata.ValidateVSchemaRequest.exclude_tables: array expected"); - message.exclude_tables = []; - for (let i = 0; i < object.exclude_tables.length; ++i) - message.exclude_tables[i] = String(object.exclude_tables[i]); - } - if (object.include_views != null) - message.include_views = Boolean(object.include_views); - return message; + return new $root.vtctldata.VSchemaRemoveVindexResponse(); }; /** - * Creates a plain object from a ValidateVSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaRemoveVindexResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidateVSchemaRequest + * @memberof vtctldata.VSchemaRemoveVindexResponse * @static - * @param {vtctldata.ValidateVSchemaRequest} message ValidateVSchemaRequest + * @param {vtctldata.VSchemaRemoveVindexResponse} message VSchemaRemoveVindexResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateVSchemaRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.shards = []; - object.exclude_tables = []; - } - if (options.defaults) { - object.keyspace = ""; - object.include_views = false; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shards && message.shards.length) { - object.shards = []; - for (let j = 0; j < message.shards.length; ++j) - object.shards[j] = message.shards[j]; - } - if (message.exclude_tables && message.exclude_tables.length) { - object.exclude_tables = []; - for (let j = 0; j < message.exclude_tables.length; ++j) - object.exclude_tables[j] = message.exclude_tables[j]; - } - if (message.include_views != null && message.hasOwnProperty("include_views")) - object.include_views = message.include_views; - return object; + VSchemaRemoveVindexResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ValidateVSchemaRequest to JSON. + * Converts this VSchemaRemoveVindexResponse to JSON. * @function toJSON - * @memberof vtctldata.ValidateVSchemaRequest + * @memberof vtctldata.VSchemaRemoveVindexResponse * @instance * @returns {Object.} JSON object */ - ValidateVSchemaRequest.prototype.toJSON = function toJSON() { + VSchemaRemoveVindexResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateVSchemaRequest + * Gets the default type url for VSchemaRemoveVindexResponse * @function getTypeUrl - * @memberof vtctldata.ValidateVSchemaRequest + * @memberof vtctldata.VSchemaRemoveVindexResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateVSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaRemoveVindexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidateVSchemaRequest"; + return typeUrlPrefix + "/vtctldata.VSchemaRemoveVindexResponse"; }; - return ValidateVSchemaRequest; + return VSchemaRemoveVindexResponse; })(); - vtctldata.ValidateVSchemaResponse = (function() { + vtctldata.VSchemaAddLookupVindexRequest = (function() { /** - * Properties of a ValidateVSchemaResponse. + * Properties of a VSchemaAddLookupVindexRequest. * @memberof vtctldata - * @interface IValidateVSchemaResponse - * @property {Array.|null} [results] ValidateVSchemaResponse results - * @property {Object.|null} [results_by_shard] ValidateVSchemaResponse results_by_shard + * @interface IVSchemaAddLookupVindexRequest + * @property {string|null} [v_schema_name] VSchemaAddLookupVindexRequest v_schema_name + * @property {string|null} [vindex_name] VSchemaAddLookupVindexRequest vindex_name + * @property {string|null} [lookup_vindex_type] VSchemaAddLookupVindexRequest lookup_vindex_type + * @property {string|null} [table_name] VSchemaAddLookupVindexRequest table_name + * @property {Array.|null} [from_columns] VSchemaAddLookupVindexRequest from_columns + * @property {string|null} [owner] VSchemaAddLookupVindexRequest owner + * @property {boolean|null} [ignore_nulls] VSchemaAddLookupVindexRequest ignore_nulls */ /** - * Constructs a new ValidateVSchemaResponse. + * Constructs a new VSchemaAddLookupVindexRequest. * @memberof vtctldata - * @classdesc Represents a ValidateVSchemaResponse. - * @implements IValidateVSchemaResponse + * @classdesc Represents a VSchemaAddLookupVindexRequest. + * @implements IVSchemaAddLookupVindexRequest * @constructor - * @param {vtctldata.IValidateVSchemaResponse=} [properties] Properties to set + * @param {vtctldata.IVSchemaAddLookupVindexRequest=} [properties] Properties to set */ - function ValidateVSchemaResponse(properties) { - this.results = []; - this.results_by_shard = {}; + function VSchemaAddLookupVindexRequest(properties) { + this.from_columns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -189909,114 +198320,162 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * ValidateVSchemaResponse results. - * @member {Array.} results - * @memberof vtctldata.ValidateVSchemaResponse + * VSchemaAddLookupVindexRequest v_schema_name. + * @member {string} v_schema_name + * @memberof vtctldata.VSchemaAddLookupVindexRequest * @instance */ - ValidateVSchemaResponse.prototype.results = $util.emptyArray; + VSchemaAddLookupVindexRequest.prototype.v_schema_name = ""; /** - * ValidateVSchemaResponse results_by_shard. - * @member {Object.} results_by_shard - * @memberof vtctldata.ValidateVSchemaResponse + * VSchemaAddLookupVindexRequest vindex_name. + * @member {string} vindex_name + * @memberof vtctldata.VSchemaAddLookupVindexRequest * @instance */ - ValidateVSchemaResponse.prototype.results_by_shard = $util.emptyObject; + VSchemaAddLookupVindexRequest.prototype.vindex_name = ""; /** - * Creates a new ValidateVSchemaResponse instance using the specified properties. + * VSchemaAddLookupVindexRequest lookup_vindex_type. + * @member {string} lookup_vindex_type + * @memberof vtctldata.VSchemaAddLookupVindexRequest + * @instance + */ + VSchemaAddLookupVindexRequest.prototype.lookup_vindex_type = ""; + + /** + * VSchemaAddLookupVindexRequest table_name. + * @member {string} table_name + * @memberof vtctldata.VSchemaAddLookupVindexRequest + * @instance + */ + VSchemaAddLookupVindexRequest.prototype.table_name = ""; + + /** + * VSchemaAddLookupVindexRequest from_columns. + * @member {Array.} from_columns + * @memberof vtctldata.VSchemaAddLookupVindexRequest + * @instance + */ + VSchemaAddLookupVindexRequest.prototype.from_columns = $util.emptyArray; + + /** + * VSchemaAddLookupVindexRequest owner. + * @member {string} owner + * @memberof vtctldata.VSchemaAddLookupVindexRequest + * @instance + */ + VSchemaAddLookupVindexRequest.prototype.owner = ""; + + /** + * VSchemaAddLookupVindexRequest ignore_nulls. + * @member {boolean} ignore_nulls + * @memberof vtctldata.VSchemaAddLookupVindexRequest + * @instance + */ + VSchemaAddLookupVindexRequest.prototype.ignore_nulls = false; + + /** + * Creates a new VSchemaAddLookupVindexRequest instance using the specified properties. * @function create - * @memberof vtctldata.ValidateVSchemaResponse + * @memberof vtctldata.VSchemaAddLookupVindexRequest * @static - * @param {vtctldata.IValidateVSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.ValidateVSchemaResponse} ValidateVSchemaResponse instance + * @param {vtctldata.IVSchemaAddLookupVindexRequest=} [properties] Properties to set + * @returns {vtctldata.VSchemaAddLookupVindexRequest} VSchemaAddLookupVindexRequest instance */ - ValidateVSchemaResponse.create = function create(properties) { - return new ValidateVSchemaResponse(properties); + VSchemaAddLookupVindexRequest.create = function create(properties) { + return new VSchemaAddLookupVindexRequest(properties); }; /** - * Encodes the specified ValidateVSchemaResponse message. Does not implicitly {@link vtctldata.ValidateVSchemaResponse.verify|verify} messages. + * Encodes the specified VSchemaAddLookupVindexRequest message. Does not implicitly {@link vtctldata.VSchemaAddLookupVindexRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ValidateVSchemaResponse + * @memberof vtctldata.VSchemaAddLookupVindexRequest * @static - * @param {vtctldata.IValidateVSchemaResponse} message ValidateVSchemaResponse message or plain object to encode + * @param {vtctldata.IVSchemaAddLookupVindexRequest} message VSchemaAddLookupVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVSchemaResponse.encode = function encode(message, writer) { + VSchemaAddLookupVindexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (let i = 0; i < message.results.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); - if (message.results_by_shard != null && Object.hasOwnProperty.call(message, "results_by_shard")) - for (let keys = Object.keys(message.results_by_shard), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vtctldata.ValidateShardResponse.encode(message.results_by_shard[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.v_schema_name != null && Object.hasOwnProperty.call(message, "v_schema_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.v_schema_name); + if (message.vindex_name != null && Object.hasOwnProperty.call(message, "vindex_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.vindex_name); + if (message.lookup_vindex_type != null && Object.hasOwnProperty.call(message, "lookup_vindex_type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.lookup_vindex_type); + if (message.table_name != null && Object.hasOwnProperty.call(message, "table_name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.table_name); + if (message.from_columns != null && message.from_columns.length) + for (let i = 0; i < message.from_columns.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.from_columns[i]); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.owner); + if (message.ignore_nulls != null && Object.hasOwnProperty.call(message, "ignore_nulls")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.ignore_nulls); return writer; }; /** - * Encodes the specified ValidateVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVSchemaResponse.verify|verify} messages. + * Encodes the specified VSchemaAddLookupVindexRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaAddLookupVindexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ValidateVSchemaResponse + * @memberof vtctldata.VSchemaAddLookupVindexRequest * @static - * @param {vtctldata.IValidateVSchemaResponse} message ValidateVSchemaResponse message or plain object to encode + * @param {vtctldata.IVSchemaAddLookupVindexRequest} message VSchemaAddLookupVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaAddLookupVindexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateVSchemaResponse message from the specified reader or buffer. + * Decodes a VSchemaAddLookupVindexRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ValidateVSchemaResponse + * @memberof vtctldata.VSchemaAddLookupVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ValidateVSchemaResponse} ValidateVSchemaResponse + * @returns {vtctldata.VSchemaAddLookupVindexRequest} VSchemaAddLookupVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVSchemaResponse.decode = function decode(reader, length) { + VSchemaAddLookupVindexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ValidateVSchemaResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaAddLookupVindexRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.results && message.results.length)) - message.results = []; - message.results.push(reader.string()); + message.v_schema_name = reader.string(); break; } case 2: { - if (message.results_by_shard === $util.emptyObject) - message.results_by_shard = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vtctldata.ValidateShardResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.results_by_shard[key] = value; + message.vindex_name = reader.string(); + break; + } + case 3: { + message.lookup_vindex_type = reader.string(); + break; + } + case 4: { + message.table_name = reader.string(); + break; + } + case 5: { + if (!(message.from_columns && message.from_columns.length)) + message.from_columns = []; + message.from_columns.push(reader.string()); + break; + } + case 6: { + message.owner = reader.string(); + break; + } + case 7: { + message.ignore_nulls = reader.bool(); break; } default: @@ -190028,187 +198487,183 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a ValidateVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddLookupVindexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ValidateVSchemaResponse + * @memberof vtctldata.VSchemaAddLookupVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ValidateVSchemaResponse} ValidateVSchemaResponse + * @returns {vtctldata.VSchemaAddLookupVindexRequest} VSchemaAddLookupVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaAddLookupVindexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateVSchemaResponse message. + * Verifies a VSchemaAddLookupVindexRequest message. * @function verify - * @memberof vtctldata.ValidateVSchemaResponse + * @memberof vtctldata.VSchemaAddLookupVindexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateVSchemaResponse.verify = function verify(message) { + VSchemaAddLookupVindexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (let i = 0; i < message.results.length; ++i) - if (!$util.isString(message.results[i])) - return "results: string[] expected"; - } - if (message.results_by_shard != null && message.hasOwnProperty("results_by_shard")) { - if (!$util.isObject(message.results_by_shard)) - return "results_by_shard: object expected"; - let key = Object.keys(message.results_by_shard); - for (let i = 0; i < key.length; ++i) { - let error = $root.vtctldata.ValidateShardResponse.verify(message.results_by_shard[key[i]]); - if (error) - return "results_by_shard." + error; - } + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + if (!$util.isString(message.v_schema_name)) + return "v_schema_name: string expected"; + if (message.vindex_name != null && message.hasOwnProperty("vindex_name")) + if (!$util.isString(message.vindex_name)) + return "vindex_name: string expected"; + if (message.lookup_vindex_type != null && message.hasOwnProperty("lookup_vindex_type")) + if (!$util.isString(message.lookup_vindex_type)) + return "lookup_vindex_type: string expected"; + if (message.table_name != null && message.hasOwnProperty("table_name")) + if (!$util.isString(message.table_name)) + return "table_name: string expected"; + if (message.from_columns != null && message.hasOwnProperty("from_columns")) { + if (!Array.isArray(message.from_columns)) + return "from_columns: array expected"; + for (let i = 0; i < message.from_columns.length; ++i) + if (!$util.isString(message.from_columns[i])) + return "from_columns: string[] expected"; } + if (message.owner != null && message.hasOwnProperty("owner")) + if (!$util.isString(message.owner)) + return "owner: string expected"; + if (message.ignore_nulls != null && message.hasOwnProperty("ignore_nulls")) + if (typeof message.ignore_nulls !== "boolean") + return "ignore_nulls: boolean expected"; return null; }; /** - * Creates a ValidateVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaAddLookupVindexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ValidateVSchemaResponse + * @memberof vtctldata.VSchemaAddLookupVindexRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ValidateVSchemaResponse} ValidateVSchemaResponse + * @returns {vtctldata.VSchemaAddLookupVindexRequest} VSchemaAddLookupVindexRequest */ - ValidateVSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ValidateVSchemaResponse) + VSchemaAddLookupVindexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaAddLookupVindexRequest) return object; - let message = new $root.vtctldata.ValidateVSchemaResponse(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".vtctldata.ValidateVSchemaResponse.results: array expected"); - message.results = []; - for (let i = 0; i < object.results.length; ++i) - message.results[i] = String(object.results[i]); - } - if (object.results_by_shard) { - if (typeof object.results_by_shard !== "object") - throw TypeError(".vtctldata.ValidateVSchemaResponse.results_by_shard: object expected"); - message.results_by_shard = {}; - for (let keys = Object.keys(object.results_by_shard), i = 0; i < keys.length; ++i) { - if (typeof object.results_by_shard[keys[i]] !== "object") - throw TypeError(".vtctldata.ValidateVSchemaResponse.results_by_shard: object expected"); - message.results_by_shard[keys[i]] = $root.vtctldata.ValidateShardResponse.fromObject(object.results_by_shard[keys[i]]); - } + let message = new $root.vtctldata.VSchemaAddLookupVindexRequest(); + if (object.v_schema_name != null) + message.v_schema_name = String(object.v_schema_name); + if (object.vindex_name != null) + message.vindex_name = String(object.vindex_name); + if (object.lookup_vindex_type != null) + message.lookup_vindex_type = String(object.lookup_vindex_type); + if (object.table_name != null) + message.table_name = String(object.table_name); + if (object.from_columns) { + if (!Array.isArray(object.from_columns)) + throw TypeError(".vtctldata.VSchemaAddLookupVindexRequest.from_columns: array expected"); + message.from_columns = []; + for (let i = 0; i < object.from_columns.length; ++i) + message.from_columns[i] = String(object.from_columns[i]); } + if (object.owner != null) + message.owner = String(object.owner); + if (object.ignore_nulls != null) + message.ignore_nulls = Boolean(object.ignore_nulls); return message; }; /** - * Creates a plain object from a ValidateVSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaAddLookupVindexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ValidateVSchemaResponse + * @memberof vtctldata.VSchemaAddLookupVindexRequest * @static - * @param {vtctldata.ValidateVSchemaResponse} message ValidateVSchemaResponse + * @param {vtctldata.VSchemaAddLookupVindexRequest} message VSchemaAddLookupVindexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateVSchemaResponse.toObject = function toObject(message, options) { + VSchemaAddLookupVindexRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.results = []; - if (options.objects || options.defaults) - object.results_by_shard = {}; - if (message.results && message.results.length) { - object.results = []; - for (let j = 0; j < message.results.length; ++j) - object.results[j] = message.results[j]; - } - let keys2; - if (message.results_by_shard && (keys2 = Object.keys(message.results_by_shard)).length) { - object.results_by_shard = {}; - for (let j = 0; j < keys2.length; ++j) - object.results_by_shard[keys2[j]] = $root.vtctldata.ValidateShardResponse.toObject(message.results_by_shard[keys2[j]], options); + object.from_columns = []; + if (options.defaults) { + object.v_schema_name = ""; + object.vindex_name = ""; + object.lookup_vindex_type = ""; + object.table_name = ""; + object.owner = ""; + object.ignore_nulls = false; + } + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + object.v_schema_name = message.v_schema_name; + if (message.vindex_name != null && message.hasOwnProperty("vindex_name")) + object.vindex_name = message.vindex_name; + if (message.lookup_vindex_type != null && message.hasOwnProperty("lookup_vindex_type")) + object.lookup_vindex_type = message.lookup_vindex_type; + if (message.table_name != null && message.hasOwnProperty("table_name")) + object.table_name = message.table_name; + if (message.from_columns && message.from_columns.length) { + object.from_columns = []; + for (let j = 0; j < message.from_columns.length; ++j) + object.from_columns[j] = message.from_columns[j]; } + if (message.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + if (message.ignore_nulls != null && message.hasOwnProperty("ignore_nulls")) + object.ignore_nulls = message.ignore_nulls; return object; }; /** - * Converts this ValidateVSchemaResponse to JSON. + * Converts this VSchemaAddLookupVindexRequest to JSON. * @function toJSON - * @memberof vtctldata.ValidateVSchemaResponse + * @memberof vtctldata.VSchemaAddLookupVindexRequest * @instance * @returns {Object.} JSON object */ - ValidateVSchemaResponse.prototype.toJSON = function toJSON() { + VSchemaAddLookupVindexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateVSchemaResponse + * Gets the default type url for VSchemaAddLookupVindexRequest * @function getTypeUrl - * @memberof vtctldata.ValidateVSchemaResponse + * @memberof vtctldata.VSchemaAddLookupVindexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateVSchemaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaAddLookupVindexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.ValidateVSchemaResponse"; + return typeUrlPrefix + "/vtctldata.VSchemaAddLookupVindexRequest"; }; - return ValidateVSchemaResponse; + return VSchemaAddLookupVindexRequest; })(); - vtctldata.VDiffCreateRequest = (function() { + vtctldata.VSchemaAddLookupVindexResponse = (function() { /** - * Properties of a VDiffCreateRequest. + * Properties of a VSchemaAddLookupVindexResponse. * @memberof vtctldata - * @interface IVDiffCreateRequest - * @property {string|null} [workflow] VDiffCreateRequest workflow - * @property {string|null} [target_keyspace] VDiffCreateRequest target_keyspace - * @property {string|null} [uuid] VDiffCreateRequest uuid - * @property {Array.|null} [source_cells] VDiffCreateRequest source_cells - * @property {Array.|null} [target_cells] VDiffCreateRequest target_cells - * @property {Array.|null} [tablet_types] VDiffCreateRequest tablet_types - * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] VDiffCreateRequest tablet_selection_preference - * @property {Array.|null} [tables] VDiffCreateRequest tables - * @property {number|Long|null} [limit] VDiffCreateRequest limit - * @property {vttime.IDuration|null} [filtered_replication_wait_time] VDiffCreateRequest filtered_replication_wait_time - * @property {boolean|null} [debug_query] VDiffCreateRequest debug_query - * @property {boolean|null} [only_p_ks] VDiffCreateRequest only_p_ks - * @property {boolean|null} [update_table_stats] VDiffCreateRequest update_table_stats - * @property {number|Long|null} [max_extra_rows_to_compare] VDiffCreateRequest max_extra_rows_to_compare - * @property {boolean|null} [wait] VDiffCreateRequest wait - * @property {vttime.IDuration|null} [wait_update_interval] VDiffCreateRequest wait_update_interval - * @property {boolean|null} [auto_retry] VDiffCreateRequest auto_retry - * @property {boolean|null} [verbose] VDiffCreateRequest verbose - * @property {number|Long|null} [max_report_sample_rows] VDiffCreateRequest max_report_sample_rows - * @property {vttime.IDuration|null} [max_diff_duration] VDiffCreateRequest max_diff_duration - * @property {number|Long|null} [row_diff_column_truncate_at] VDiffCreateRequest row_diff_column_truncate_at - * @property {boolean|null} [auto_start] VDiffCreateRequest auto_start + * @interface IVSchemaAddLookupVindexResponse */ /** - * Constructs a new VDiffCreateRequest. + * Constructs a new VSchemaAddLookupVindexResponse. * @memberof vtctldata - * @classdesc Represents a VDiffCreateRequest. - * @implements IVDiffCreateRequest + * @classdesc Represents a VSchemaAddLookupVindexResponse. + * @implements IVSchemaAddLookupVindexResponse * @constructor - * @param {vtctldata.IVDiffCreateRequest=} [properties] Properties to set + * @param {vtctldata.IVSchemaAddLookupVindexResponse=} [properties] Properties to set */ - function VDiffCreateRequest(properties) { - this.source_cells = []; - this.target_cells = []; - this.tablet_types = []; - this.tables = []; + function VSchemaAddLookupVindexResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -190216,398 +198671,319 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * VDiffCreateRequest workflow. - * @member {string} workflow - * @memberof vtctldata.VDiffCreateRequest - * @instance - */ - VDiffCreateRequest.prototype.workflow = ""; - - /** - * VDiffCreateRequest target_keyspace. - * @member {string} target_keyspace - * @memberof vtctldata.VDiffCreateRequest - * @instance - */ - VDiffCreateRequest.prototype.target_keyspace = ""; - - /** - * VDiffCreateRequest uuid. - * @member {string} uuid - * @memberof vtctldata.VDiffCreateRequest - * @instance - */ - VDiffCreateRequest.prototype.uuid = ""; - - /** - * VDiffCreateRequest source_cells. - * @member {Array.} source_cells - * @memberof vtctldata.VDiffCreateRequest - * @instance + * Creates a new VSchemaAddLookupVindexResponse instance using the specified properties. + * @function create + * @memberof vtctldata.VSchemaAddLookupVindexResponse + * @static + * @param {vtctldata.IVSchemaAddLookupVindexResponse=} [properties] Properties to set + * @returns {vtctldata.VSchemaAddLookupVindexResponse} VSchemaAddLookupVindexResponse instance */ - VDiffCreateRequest.prototype.source_cells = $util.emptyArray; + VSchemaAddLookupVindexResponse.create = function create(properties) { + return new VSchemaAddLookupVindexResponse(properties); + }; /** - * VDiffCreateRequest target_cells. - * @member {Array.} target_cells - * @memberof vtctldata.VDiffCreateRequest - * @instance + * Encodes the specified VSchemaAddLookupVindexResponse message. Does not implicitly {@link vtctldata.VSchemaAddLookupVindexResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.VSchemaAddLookupVindexResponse + * @static + * @param {vtctldata.IVSchemaAddLookupVindexResponse} message VSchemaAddLookupVindexResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - VDiffCreateRequest.prototype.target_cells = $util.emptyArray; + VSchemaAddLookupVindexResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * VDiffCreateRequest tablet_types. - * @member {Array.} tablet_types - * @memberof vtctldata.VDiffCreateRequest - * @instance + * Encodes the specified VSchemaAddLookupVindexResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaAddLookupVindexResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.VSchemaAddLookupVindexResponse + * @static + * @param {vtctldata.IVSchemaAddLookupVindexResponse} message VSchemaAddLookupVindexResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - VDiffCreateRequest.prototype.tablet_types = $util.emptyArray; + VSchemaAddLookupVindexResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * VDiffCreateRequest tablet_selection_preference. - * @member {tabletmanagerdata.TabletSelectionPreference} tablet_selection_preference - * @memberof vtctldata.VDiffCreateRequest - * @instance + * Decodes a VSchemaAddLookupVindexResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.VSchemaAddLookupVindexResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.VSchemaAddLookupVindexResponse} VSchemaAddLookupVindexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffCreateRequest.prototype.tablet_selection_preference = 0; + VSchemaAddLookupVindexResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaAddLookupVindexResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * VDiffCreateRequest tables. - * @member {Array.} tables - * @memberof vtctldata.VDiffCreateRequest - * @instance + * Decodes a VSchemaAddLookupVindexResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.VSchemaAddLookupVindexResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.VSchemaAddLookupVindexResponse} VSchemaAddLookupVindexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffCreateRequest.prototype.tables = $util.emptyArray; + VSchemaAddLookupVindexResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * VDiffCreateRequest limit. - * @member {number|Long} limit - * @memberof vtctldata.VDiffCreateRequest - * @instance + * Verifies a VSchemaAddLookupVindexResponse message. + * @function verify + * @memberof vtctldata.VSchemaAddLookupVindexResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffCreateRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + VSchemaAddLookupVindexResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; /** - * VDiffCreateRequest filtered_replication_wait_time. - * @member {vttime.IDuration|null|undefined} filtered_replication_wait_time - * @memberof vtctldata.VDiffCreateRequest - * @instance + * Creates a VSchemaAddLookupVindexResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.VSchemaAddLookupVindexResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.VSchemaAddLookupVindexResponse} VSchemaAddLookupVindexResponse */ - VDiffCreateRequest.prototype.filtered_replication_wait_time = null; + VSchemaAddLookupVindexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaAddLookupVindexResponse) + return object; + return new $root.vtctldata.VSchemaAddLookupVindexResponse(); + }; /** - * VDiffCreateRequest debug_query. - * @member {boolean} debug_query - * @memberof vtctldata.VDiffCreateRequest - * @instance + * Creates a plain object from a VSchemaAddLookupVindexResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.VSchemaAddLookupVindexResponse + * @static + * @param {vtctldata.VSchemaAddLookupVindexResponse} message VSchemaAddLookupVindexResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - VDiffCreateRequest.prototype.debug_query = false; + VSchemaAddLookupVindexResponse.toObject = function toObject() { + return {}; + }; /** - * VDiffCreateRequest only_p_ks. - * @member {boolean} only_p_ks - * @memberof vtctldata.VDiffCreateRequest + * Converts this VSchemaAddLookupVindexResponse to JSON. + * @function toJSON + * @memberof vtctldata.VSchemaAddLookupVindexResponse * @instance + * @returns {Object.} JSON object */ - VDiffCreateRequest.prototype.only_p_ks = false; + VSchemaAddLookupVindexResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * VDiffCreateRequest update_table_stats. - * @member {boolean} update_table_stats - * @memberof vtctldata.VDiffCreateRequest - * @instance + * Gets the default type url for VSchemaAddLookupVindexResponse + * @function getTypeUrl + * @memberof vtctldata.VSchemaAddLookupVindexResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - VDiffCreateRequest.prototype.update_table_stats = false; + VSchemaAddLookupVindexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.VSchemaAddLookupVindexResponse"; + }; - /** - * VDiffCreateRequest max_extra_rows_to_compare. - * @member {number|Long} max_extra_rows_to_compare - * @memberof vtctldata.VDiffCreateRequest - * @instance - */ - VDiffCreateRequest.prototype.max_extra_rows_to_compare = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + return VSchemaAddLookupVindexResponse; + })(); - /** - * VDiffCreateRequest wait. - * @member {boolean} wait - * @memberof vtctldata.VDiffCreateRequest - * @instance - */ - VDiffCreateRequest.prototype.wait = false; + vtctldata.VSchemaAddTablesRequest = (function() { /** - * VDiffCreateRequest wait_update_interval. - * @member {vttime.IDuration|null|undefined} wait_update_interval - * @memberof vtctldata.VDiffCreateRequest - * @instance + * Properties of a VSchemaAddTablesRequest. + * @memberof vtctldata + * @interface IVSchemaAddTablesRequest + * @property {string|null} [v_schema_name] VSchemaAddTablesRequest v_schema_name + * @property {Array.|null} [tables] VSchemaAddTablesRequest tables + * @property {string|null} [primary_vindex_name] VSchemaAddTablesRequest primary_vindex_name + * @property {Array.|null} [columns] VSchemaAddTablesRequest columns + * @property {boolean|null} [add_all] VSchemaAddTablesRequest add_all */ - VDiffCreateRequest.prototype.wait_update_interval = null; /** - * VDiffCreateRequest auto_retry. - * @member {boolean} auto_retry - * @memberof vtctldata.VDiffCreateRequest - * @instance + * Constructs a new VSchemaAddTablesRequest. + * @memberof vtctldata + * @classdesc Represents a VSchemaAddTablesRequest. + * @implements IVSchemaAddTablesRequest + * @constructor + * @param {vtctldata.IVSchemaAddTablesRequest=} [properties] Properties to set */ - VDiffCreateRequest.prototype.auto_retry = false; + function VSchemaAddTablesRequest(properties) { + this.tables = []; + this.columns = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * VDiffCreateRequest verbose. - * @member {boolean} verbose - * @memberof vtctldata.VDiffCreateRequest + * VSchemaAddTablesRequest v_schema_name. + * @member {string} v_schema_name + * @memberof vtctldata.VSchemaAddTablesRequest * @instance */ - VDiffCreateRequest.prototype.verbose = false; + VSchemaAddTablesRequest.prototype.v_schema_name = ""; /** - * VDiffCreateRequest max_report_sample_rows. - * @member {number|Long} max_report_sample_rows - * @memberof vtctldata.VDiffCreateRequest + * VSchemaAddTablesRequest tables. + * @member {Array.} tables + * @memberof vtctldata.VSchemaAddTablesRequest * @instance */ - VDiffCreateRequest.prototype.max_report_sample_rows = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + VSchemaAddTablesRequest.prototype.tables = $util.emptyArray; /** - * VDiffCreateRequest max_diff_duration. - * @member {vttime.IDuration|null|undefined} max_diff_duration - * @memberof vtctldata.VDiffCreateRequest + * VSchemaAddTablesRequest primary_vindex_name. + * @member {string} primary_vindex_name + * @memberof vtctldata.VSchemaAddTablesRequest * @instance */ - VDiffCreateRequest.prototype.max_diff_duration = null; + VSchemaAddTablesRequest.prototype.primary_vindex_name = ""; /** - * VDiffCreateRequest row_diff_column_truncate_at. - * @member {number|Long} row_diff_column_truncate_at - * @memberof vtctldata.VDiffCreateRequest + * VSchemaAddTablesRequest columns. + * @member {Array.} columns + * @memberof vtctldata.VSchemaAddTablesRequest * @instance */ - VDiffCreateRequest.prototype.row_diff_column_truncate_at = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + VSchemaAddTablesRequest.prototype.columns = $util.emptyArray; /** - * VDiffCreateRequest auto_start. - * @member {boolean|null|undefined} auto_start - * @memberof vtctldata.VDiffCreateRequest + * VSchemaAddTablesRequest add_all. + * @member {boolean} add_all + * @memberof vtctldata.VSchemaAddTablesRequest * @instance */ - VDiffCreateRequest.prototype.auto_start = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(VDiffCreateRequest.prototype, "_auto_start", { - get: $util.oneOfGetter($oneOfFields = ["auto_start"]), - set: $util.oneOfSetter($oneOfFields) - }); + VSchemaAddTablesRequest.prototype.add_all = false; /** - * Creates a new VDiffCreateRequest instance using the specified properties. + * Creates a new VSchemaAddTablesRequest instance using the specified properties. * @function create - * @memberof vtctldata.VDiffCreateRequest + * @memberof vtctldata.VSchemaAddTablesRequest * @static - * @param {vtctldata.IVDiffCreateRequest=} [properties] Properties to set - * @returns {vtctldata.VDiffCreateRequest} VDiffCreateRequest instance + * @param {vtctldata.IVSchemaAddTablesRequest=} [properties] Properties to set + * @returns {vtctldata.VSchemaAddTablesRequest} VSchemaAddTablesRequest instance */ - VDiffCreateRequest.create = function create(properties) { - return new VDiffCreateRequest(properties); + VSchemaAddTablesRequest.create = function create(properties) { + return new VSchemaAddTablesRequest(properties); }; /** - * Encodes the specified VDiffCreateRequest message. Does not implicitly {@link vtctldata.VDiffCreateRequest.verify|verify} messages. + * Encodes the specified VSchemaAddTablesRequest message. Does not implicitly {@link vtctldata.VSchemaAddTablesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.VDiffCreateRequest + * @memberof vtctldata.VSchemaAddTablesRequest * @static - * @param {vtctldata.IVDiffCreateRequest} message VDiffCreateRequest message or plain object to encode + * @param {vtctldata.IVSchemaAddTablesRequest} message VSchemaAddTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffCreateRequest.encode = function encode(message, writer) { + VSchemaAddTablesRequest.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.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.target_keyspace); - if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid); - if (message.source_cells != null && message.source_cells.length) - for (let i = 0; i < message.source_cells.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.source_cells[i]); - if (message.target_cells != null && message.target_cells.length) - for (let i = 0; i < message.target_cells.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.target_cells[i]); - if (message.tablet_types != null && message.tablet_types.length) { - writer.uint32(/* id 6, wireType 2 =*/50).fork(); - for (let i = 0; i < message.tablet_types.length; ++i) - writer.int32(message.tablet_types[i]); - writer.ldelim(); - } - if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.tablet_selection_preference); + if (message.v_schema_name != null && Object.hasOwnProperty.call(message, "v_schema_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.v_schema_name); if (message.tables != null && message.tables.length) for (let i = 0; i < message.tables.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.tables[i]); - if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) - writer.uint32(/* id 9, wireType 0 =*/72).int64(message.limit); - if (message.filtered_replication_wait_time != null && Object.hasOwnProperty.call(message, "filtered_replication_wait_time")) - $root.vttime.Duration.encode(message.filtered_replication_wait_time, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.debug_query != null && Object.hasOwnProperty.call(message, "debug_query")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.debug_query); - if (message.only_p_ks != null && Object.hasOwnProperty.call(message, "only_p_ks")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.only_p_ks); - if (message.update_table_stats != null && Object.hasOwnProperty.call(message, "update_table_stats")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.update_table_stats); - if (message.max_extra_rows_to_compare != null && Object.hasOwnProperty.call(message, "max_extra_rows_to_compare")) - writer.uint32(/* id 14, wireType 0 =*/112).int64(message.max_extra_rows_to_compare); - if (message.wait != null && Object.hasOwnProperty.call(message, "wait")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.wait); - if (message.wait_update_interval != null && Object.hasOwnProperty.call(message, "wait_update_interval")) - $root.vttime.Duration.encode(message.wait_update_interval, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.auto_retry != null && Object.hasOwnProperty.call(message, "auto_retry")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.auto_retry); - if (message.verbose != null && Object.hasOwnProperty.call(message, "verbose")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.verbose); - if (message.max_report_sample_rows != null && Object.hasOwnProperty.call(message, "max_report_sample_rows")) - writer.uint32(/* id 19, wireType 0 =*/152).int64(message.max_report_sample_rows); - if (message.max_diff_duration != null && Object.hasOwnProperty.call(message, "max_diff_duration")) - $root.vttime.Duration.encode(message.max_diff_duration, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.row_diff_column_truncate_at != null && Object.hasOwnProperty.call(message, "row_diff_column_truncate_at")) - writer.uint32(/* id 21, wireType 0 =*/168).int64(message.row_diff_column_truncate_at); - if (message.auto_start != null && Object.hasOwnProperty.call(message, "auto_start")) - writer.uint32(/* id 22, wireType 0 =*/176).bool(message.auto_start); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tables[i]); + if (message.primary_vindex_name != null && Object.hasOwnProperty.call(message, "primary_vindex_name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.primary_vindex_name); + if (message.columns != null && message.columns.length) + for (let i = 0; i < message.columns.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.columns[i]); + if (message.add_all != null && Object.hasOwnProperty.call(message, "add_all")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.add_all); return writer; }; /** - * Encodes the specified VDiffCreateRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffCreateRequest.verify|verify} messages. + * Encodes the specified VSchemaAddTablesRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaAddTablesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.VDiffCreateRequest + * @memberof vtctldata.VSchemaAddTablesRequest * @static - * @param {vtctldata.IVDiffCreateRequest} message VDiffCreateRequest message or plain object to encode + * @param {vtctldata.IVSchemaAddTablesRequest} message VSchemaAddTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffCreateRequest.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaAddTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffCreateRequest message from the specified reader or buffer. + * Decodes a VSchemaAddTablesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.VDiffCreateRequest + * @memberof vtctldata.VSchemaAddTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.VDiffCreateRequest} VDiffCreateRequest + * @returns {vtctldata.VSchemaAddTablesRequest} VSchemaAddTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffCreateRequest.decode = function decode(reader, length) { + VSchemaAddTablesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffCreateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaAddTablesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workflow = reader.string(); + message.v_schema_name = reader.string(); break; } case 2: { - message.target_keyspace = reader.string(); - break; - } - case 3: { - message.uuid = reader.string(); - break; - } - case 4: { - if (!(message.source_cells && message.source_cells.length)) - message.source_cells = []; - message.source_cells.push(reader.string()); - break; - } - case 5: { - if (!(message.target_cells && message.target_cells.length)) - message.target_cells = []; - message.target_cells.push(reader.string()); - break; - } - case 6: { - if (!(message.tablet_types && message.tablet_types.length)) - message.tablet_types = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.tablet_types.push(reader.int32()); - } else - message.tablet_types.push(reader.int32()); - break; - } - case 7: { - message.tablet_selection_preference = reader.int32(); - break; - } - case 8: { if (!(message.tables && message.tables.length)) message.tables = []; message.tables.push(reader.string()); break; } - case 9: { - message.limit = reader.int64(); - break; - } - case 10: { - message.filtered_replication_wait_time = $root.vttime.Duration.decode(reader, reader.uint32()); - break; - } - case 11: { - message.debug_query = reader.bool(); - break; - } - case 12: { - message.only_p_ks = reader.bool(); - break; - } - case 13: { - message.update_table_stats = reader.bool(); - break; - } - case 14: { - message.max_extra_rows_to_compare = reader.int64(); - break; - } - case 15: { - message.wait = reader.bool(); - break; - } - case 16: { - message.wait_update_interval = $root.vttime.Duration.decode(reader, reader.uint32()); - break; - } - case 17: { - message.auto_retry = reader.bool(); - break; - } - case 18: { - message.verbose = reader.bool(); - break; - } - case 19: { - message.max_report_sample_rows = reader.int64(); - break; - } - case 20: { - message.max_diff_duration = $root.vttime.Duration.decode(reader, reader.uint32()); + case 3: { + message.primary_vindex_name = reader.string(); break; } - case 21: { - message.row_diff_column_truncate_at = reader.int64(); + case 4: { + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push(reader.string()); break; } - case 22: { - message.auto_start = reader.bool(); + case 5: { + message.add_all = reader.bool(); break; } default: @@ -190619,86 +198995,35 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a VDiffCreateRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddTablesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.VDiffCreateRequest + * @memberof vtctldata.VSchemaAddTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.VDiffCreateRequest} VDiffCreateRequest + * @returns {vtctldata.VSchemaAddTablesRequest} VSchemaAddTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffCreateRequest.decodeDelimited = function decodeDelimited(reader) { + VSchemaAddTablesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffCreateRequest message. + * Verifies a VSchemaAddTablesRequest message. * @function verify - * @memberof vtctldata.VDiffCreateRequest + * @memberof vtctldata.VSchemaAddTablesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffCreateRequest.verify = function verify(message) { + VSchemaAddTablesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - let properties = {}; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - if (!$util.isString(message.target_keyspace)) - return "target_keyspace: string expected"; - if (message.uuid != null && message.hasOwnProperty("uuid")) - if (!$util.isString(message.uuid)) - return "uuid: string expected"; - if (message.source_cells != null && message.hasOwnProperty("source_cells")) { - if (!Array.isArray(message.source_cells)) - return "source_cells: array expected"; - for (let i = 0; i < message.source_cells.length; ++i) - if (!$util.isString(message.source_cells[i])) - return "source_cells: string[] expected"; - } - if (message.target_cells != null && message.hasOwnProperty("target_cells")) { - if (!Array.isArray(message.target_cells)) - return "target_cells: array expected"; - for (let i = 0; i < message.target_cells.length; ++i) - if (!$util.isString(message.target_cells[i])) - return "target_cells: string[] expected"; - } - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { - if (!Array.isArray(message.tablet_types)) - return "tablet_types: array expected"; - for (let i = 0; i < message.tablet_types.length; ++i) - switch (message.tablet_types[i]) { - default: - return "tablet_types: enum value[] expected"; - case 0: - case 1: - case 1: - case 2: - case 3: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - switch (message.tablet_selection_preference) { - default: - return "tablet_selection_preference: enum value expected"; - case 0: - case 1: - case 3: - break; - } + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + if (!$util.isString(message.v_schema_name)) + return "v_schema_name: string expected"; if (message.tables != null && message.hasOwnProperty("tables")) { if (!Array.isArray(message.tables)) return "tables: array expected"; @@ -190706,418 +199031,144 @@ export const vtctldata = $root.vtctldata = (() => { if (!$util.isString(message.tables[i])) return "tables: string[] expected"; } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit) && !(message.limit && $util.isInteger(message.limit.low) && $util.isInteger(message.limit.high))) - return "limit: integer|Long expected"; - if (message.filtered_replication_wait_time != null && message.hasOwnProperty("filtered_replication_wait_time")) { - let error = $root.vttime.Duration.verify(message.filtered_replication_wait_time); - if (error) - return "filtered_replication_wait_time." + error; - } - if (message.debug_query != null && message.hasOwnProperty("debug_query")) - if (typeof message.debug_query !== "boolean") - return "debug_query: boolean expected"; - if (message.only_p_ks != null && message.hasOwnProperty("only_p_ks")) - if (typeof message.only_p_ks !== "boolean") - return "only_p_ks: boolean expected"; - if (message.update_table_stats != null && message.hasOwnProperty("update_table_stats")) - if (typeof message.update_table_stats !== "boolean") - return "update_table_stats: boolean expected"; - if (message.max_extra_rows_to_compare != null && message.hasOwnProperty("max_extra_rows_to_compare")) - if (!$util.isInteger(message.max_extra_rows_to_compare) && !(message.max_extra_rows_to_compare && $util.isInteger(message.max_extra_rows_to_compare.low) && $util.isInteger(message.max_extra_rows_to_compare.high))) - return "max_extra_rows_to_compare: integer|Long expected"; - if (message.wait != null && message.hasOwnProperty("wait")) - if (typeof message.wait !== "boolean") - return "wait: boolean expected"; - if (message.wait_update_interval != null && message.hasOwnProperty("wait_update_interval")) { - let error = $root.vttime.Duration.verify(message.wait_update_interval); - if (error) - return "wait_update_interval." + error; - } - if (message.auto_retry != null && message.hasOwnProperty("auto_retry")) - if (typeof message.auto_retry !== "boolean") - return "auto_retry: boolean expected"; - if (message.verbose != null && message.hasOwnProperty("verbose")) - if (typeof message.verbose !== "boolean") - return "verbose: boolean expected"; - if (message.max_report_sample_rows != null && message.hasOwnProperty("max_report_sample_rows")) - if (!$util.isInteger(message.max_report_sample_rows) && !(message.max_report_sample_rows && $util.isInteger(message.max_report_sample_rows.low) && $util.isInteger(message.max_report_sample_rows.high))) - return "max_report_sample_rows: integer|Long expected"; - if (message.max_diff_duration != null && message.hasOwnProperty("max_diff_duration")) { - let error = $root.vttime.Duration.verify(message.max_diff_duration); - if (error) - return "max_diff_duration." + error; - } - if (message.row_diff_column_truncate_at != null && message.hasOwnProperty("row_diff_column_truncate_at")) - if (!$util.isInteger(message.row_diff_column_truncate_at) && !(message.row_diff_column_truncate_at && $util.isInteger(message.row_diff_column_truncate_at.low) && $util.isInteger(message.row_diff_column_truncate_at.high))) - return "row_diff_column_truncate_at: integer|Long expected"; - if (message.auto_start != null && message.hasOwnProperty("auto_start")) { - properties._auto_start = 1; - if (typeof message.auto_start !== "boolean") - return "auto_start: boolean expected"; + if (message.primary_vindex_name != null && message.hasOwnProperty("primary_vindex_name")) + if (!$util.isString(message.primary_vindex_name)) + return "primary_vindex_name: string expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (let i = 0; i < message.columns.length; ++i) + if (!$util.isString(message.columns[i])) + return "columns: string[] expected"; } + if (message.add_all != null && message.hasOwnProperty("add_all")) + if (typeof message.add_all !== "boolean") + return "add_all: boolean expected"; return null; }; - /** - * Creates a VDiffCreateRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.VDiffCreateRequest - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.VDiffCreateRequest} VDiffCreateRequest - */ - VDiffCreateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.VDiffCreateRequest) - return object; - let message = new $root.vtctldata.VDiffCreateRequest(); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.target_keyspace != null) - message.target_keyspace = String(object.target_keyspace); - if (object.uuid != null) - message.uuid = String(object.uuid); - if (object.source_cells) { - if (!Array.isArray(object.source_cells)) - throw TypeError(".vtctldata.VDiffCreateRequest.source_cells: array expected"); - message.source_cells = []; - for (let i = 0; i < object.source_cells.length; ++i) - message.source_cells[i] = String(object.source_cells[i]); - } - if (object.target_cells) { - if (!Array.isArray(object.target_cells)) - throw TypeError(".vtctldata.VDiffCreateRequest.target_cells: array expected"); - message.target_cells = []; - for (let i = 0; i < object.target_cells.length; ++i) - message.target_cells[i] = String(object.target_cells[i]); - } - if (object.tablet_types) { - if (!Array.isArray(object.tablet_types)) - throw TypeError(".vtctldata.VDiffCreateRequest.tablet_types: array expected"); - message.tablet_types = []; - for (let i = 0; i < object.tablet_types.length; ++i) - switch (object.tablet_types[i]) { - default: - if (typeof object.tablet_types[i] === "number") { - message.tablet_types[i] = object.tablet_types[i]; - break; - } - case "UNKNOWN": - case 0: - message.tablet_types[i] = 0; - break; - case "PRIMARY": - case 1: - message.tablet_types[i] = 1; - break; - case "MASTER": - case 1: - message.tablet_types[i] = 1; - break; - case "REPLICA": - case 2: - message.tablet_types[i] = 2; - break; - case "RDONLY": - case 3: - message.tablet_types[i] = 3; - break; - case "BATCH": - case 3: - message.tablet_types[i] = 3; - break; - case "SPARE": - case 4: - message.tablet_types[i] = 4; - break; - case "EXPERIMENTAL": - case 5: - message.tablet_types[i] = 5; - break; - case "BACKUP": - case 6: - message.tablet_types[i] = 6; - break; - case "RESTORE": - case 7: - message.tablet_types[i] = 7; - break; - case "DRAINED": - case 8: - message.tablet_types[i] = 8; - break; - } - } - switch (object.tablet_selection_preference) { - default: - if (typeof object.tablet_selection_preference === "number") { - message.tablet_selection_preference = object.tablet_selection_preference; - break; - } - break; - case "ANY": - case 0: - message.tablet_selection_preference = 0; - break; - case "INORDER": - case 1: - message.tablet_selection_preference = 1; - break; - case "UNKNOWN": - case 3: - message.tablet_selection_preference = 3; - break; - } - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".vtctldata.VDiffCreateRequest.tables: array expected"); - message.tables = []; - for (let i = 0; i < object.tables.length; ++i) - message.tables[i] = String(object.tables[i]); - } - if (object.limit != null) - if ($util.Long) - (message.limit = $util.Long.fromValue(object.limit)).unsigned = false; - else if (typeof object.limit === "string") - message.limit = parseInt(object.limit, 10); - else if (typeof object.limit === "number") - message.limit = object.limit; - else if (typeof object.limit === "object") - message.limit = new $util.LongBits(object.limit.low >>> 0, object.limit.high >>> 0).toNumber(); - if (object.filtered_replication_wait_time != null) { - if (typeof object.filtered_replication_wait_time !== "object") - throw TypeError(".vtctldata.VDiffCreateRequest.filtered_replication_wait_time: object expected"); - message.filtered_replication_wait_time = $root.vttime.Duration.fromObject(object.filtered_replication_wait_time); - } - if (object.debug_query != null) - message.debug_query = Boolean(object.debug_query); - if (object.only_p_ks != null) - message.only_p_ks = Boolean(object.only_p_ks); - if (object.update_table_stats != null) - message.update_table_stats = Boolean(object.update_table_stats); - if (object.max_extra_rows_to_compare != null) - if ($util.Long) - (message.max_extra_rows_to_compare = $util.Long.fromValue(object.max_extra_rows_to_compare)).unsigned = false; - else if (typeof object.max_extra_rows_to_compare === "string") - message.max_extra_rows_to_compare = parseInt(object.max_extra_rows_to_compare, 10); - else if (typeof object.max_extra_rows_to_compare === "number") - message.max_extra_rows_to_compare = object.max_extra_rows_to_compare; - else if (typeof object.max_extra_rows_to_compare === "object") - message.max_extra_rows_to_compare = new $util.LongBits(object.max_extra_rows_to_compare.low >>> 0, object.max_extra_rows_to_compare.high >>> 0).toNumber(); - if (object.wait != null) - message.wait = Boolean(object.wait); - if (object.wait_update_interval != null) { - if (typeof object.wait_update_interval !== "object") - throw TypeError(".vtctldata.VDiffCreateRequest.wait_update_interval: object expected"); - message.wait_update_interval = $root.vttime.Duration.fromObject(object.wait_update_interval); - } - if (object.auto_retry != null) - message.auto_retry = Boolean(object.auto_retry); - if (object.verbose != null) - message.verbose = Boolean(object.verbose); - if (object.max_report_sample_rows != null) - if ($util.Long) - (message.max_report_sample_rows = $util.Long.fromValue(object.max_report_sample_rows)).unsigned = false; - else if (typeof object.max_report_sample_rows === "string") - message.max_report_sample_rows = parseInt(object.max_report_sample_rows, 10); - else if (typeof object.max_report_sample_rows === "number") - message.max_report_sample_rows = object.max_report_sample_rows; - else if (typeof object.max_report_sample_rows === "object") - message.max_report_sample_rows = new $util.LongBits(object.max_report_sample_rows.low >>> 0, object.max_report_sample_rows.high >>> 0).toNumber(); - if (object.max_diff_duration != null) { - if (typeof object.max_diff_duration !== "object") - throw TypeError(".vtctldata.VDiffCreateRequest.max_diff_duration: object expected"); - message.max_diff_duration = $root.vttime.Duration.fromObject(object.max_diff_duration); - } - if (object.row_diff_column_truncate_at != null) - if ($util.Long) - (message.row_diff_column_truncate_at = $util.Long.fromValue(object.row_diff_column_truncate_at)).unsigned = false; - else if (typeof object.row_diff_column_truncate_at === "string") - message.row_diff_column_truncate_at = parseInt(object.row_diff_column_truncate_at, 10); - else if (typeof object.row_diff_column_truncate_at === "number") - message.row_diff_column_truncate_at = object.row_diff_column_truncate_at; - else if (typeof object.row_diff_column_truncate_at === "object") - message.row_diff_column_truncate_at = new $util.LongBits(object.row_diff_column_truncate_at.low >>> 0, object.row_diff_column_truncate_at.high >>> 0).toNumber(); - if (object.auto_start != null) - message.auto_start = Boolean(object.auto_start); - return message; - }; - - /** - * Creates a plain object from a VDiffCreateRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.VDiffCreateRequest - * @static - * @param {vtctldata.VDiffCreateRequest} message VDiffCreateRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VDiffCreateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.source_cells = []; - object.target_cells = []; - object.tablet_types = []; - object.tables = []; - } - if (options.defaults) { - object.workflow = ""; - object.target_keyspace = ""; - object.uuid = ""; - object.tablet_selection_preference = options.enums === String ? "ANY" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.limit = options.longs === String ? "0" : 0; - object.filtered_replication_wait_time = null; - object.debug_query = false; - object.only_p_ks = false; - object.update_table_stats = false; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.max_extra_rows_to_compare = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_extra_rows_to_compare = options.longs === String ? "0" : 0; - object.wait = false; - object.wait_update_interval = null; - object.auto_retry = false; - object.verbose = false; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.max_report_sample_rows = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_report_sample_rows = options.longs === String ? "0" : 0; - object.max_diff_duration = null; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.row_diff_column_truncate_at = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.row_diff_column_truncate_at = options.longs === String ? "0" : 0; - } - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - object.target_keyspace = message.target_keyspace; - if (message.uuid != null && message.hasOwnProperty("uuid")) - object.uuid = message.uuid; - if (message.source_cells && message.source_cells.length) { - object.source_cells = []; - for (let j = 0; j < message.source_cells.length; ++j) - object.source_cells[j] = message.source_cells[j]; - } - if (message.target_cells && message.target_cells.length) { - object.target_cells = []; - for (let j = 0; j < message.target_cells.length; ++j) - object.target_cells[j] = message.target_cells[j]; - } - if (message.tablet_types && message.tablet_types.length) { - object.tablet_types = []; - for (let j = 0; j < message.tablet_types.length; ++j) - object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; - } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) - object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; - if (message.tables && message.tables.length) { - object.tables = []; - for (let j = 0; j < message.tables.length; ++j) - object.tables[j] = message.tables[j]; - } - if (message.limit != null && message.hasOwnProperty("limit")) - if (typeof message.limit === "number") - object.limit = options.longs === String ? String(message.limit) : message.limit; - else - object.limit = options.longs === String ? $util.Long.prototype.toString.call(message.limit) : options.longs === Number ? new $util.LongBits(message.limit.low >>> 0, message.limit.high >>> 0).toNumber() : message.limit; - if (message.filtered_replication_wait_time != null && message.hasOwnProperty("filtered_replication_wait_time")) - object.filtered_replication_wait_time = $root.vttime.Duration.toObject(message.filtered_replication_wait_time, options); - if (message.debug_query != null && message.hasOwnProperty("debug_query")) - object.debug_query = message.debug_query; - if (message.only_p_ks != null && message.hasOwnProperty("only_p_ks")) - object.only_p_ks = message.only_p_ks; - if (message.update_table_stats != null && message.hasOwnProperty("update_table_stats")) - object.update_table_stats = message.update_table_stats; - if (message.max_extra_rows_to_compare != null && message.hasOwnProperty("max_extra_rows_to_compare")) - if (typeof message.max_extra_rows_to_compare === "number") - object.max_extra_rows_to_compare = options.longs === String ? String(message.max_extra_rows_to_compare) : message.max_extra_rows_to_compare; - else - object.max_extra_rows_to_compare = options.longs === String ? $util.Long.prototype.toString.call(message.max_extra_rows_to_compare) : options.longs === Number ? new $util.LongBits(message.max_extra_rows_to_compare.low >>> 0, message.max_extra_rows_to_compare.high >>> 0).toNumber() : message.max_extra_rows_to_compare; - if (message.wait != null && message.hasOwnProperty("wait")) - object.wait = message.wait; - if (message.wait_update_interval != null && message.hasOwnProperty("wait_update_interval")) - object.wait_update_interval = $root.vttime.Duration.toObject(message.wait_update_interval, options); - if (message.auto_retry != null && message.hasOwnProperty("auto_retry")) - object.auto_retry = message.auto_retry; - if (message.verbose != null && message.hasOwnProperty("verbose")) - object.verbose = message.verbose; - if (message.max_report_sample_rows != null && message.hasOwnProperty("max_report_sample_rows")) - if (typeof message.max_report_sample_rows === "number") - object.max_report_sample_rows = options.longs === String ? String(message.max_report_sample_rows) : message.max_report_sample_rows; - else - object.max_report_sample_rows = options.longs === String ? $util.Long.prototype.toString.call(message.max_report_sample_rows) : options.longs === Number ? new $util.LongBits(message.max_report_sample_rows.low >>> 0, message.max_report_sample_rows.high >>> 0).toNumber() : message.max_report_sample_rows; - if (message.max_diff_duration != null && message.hasOwnProperty("max_diff_duration")) - object.max_diff_duration = $root.vttime.Duration.toObject(message.max_diff_duration, options); - if (message.row_diff_column_truncate_at != null && message.hasOwnProperty("row_diff_column_truncate_at")) - if (typeof message.row_diff_column_truncate_at === "number") - object.row_diff_column_truncate_at = options.longs === String ? String(message.row_diff_column_truncate_at) : message.row_diff_column_truncate_at; - else - object.row_diff_column_truncate_at = options.longs === String ? $util.Long.prototype.toString.call(message.row_diff_column_truncate_at) : options.longs === Number ? new $util.LongBits(message.row_diff_column_truncate_at.low >>> 0, message.row_diff_column_truncate_at.high >>> 0).toNumber() : message.row_diff_column_truncate_at; - if (message.auto_start != null && message.hasOwnProperty("auto_start")) { - object.auto_start = message.auto_start; - if (options.oneofs) - object._auto_start = "auto_start"; + /** + * Creates a VSchemaAddTablesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.VSchemaAddTablesRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.VSchemaAddTablesRequest} VSchemaAddTablesRequest + */ + VSchemaAddTablesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaAddTablesRequest) + return object; + let message = new $root.vtctldata.VSchemaAddTablesRequest(); + if (object.v_schema_name != null) + message.v_schema_name = String(object.v_schema_name); + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".vtctldata.VSchemaAddTablesRequest.tables: array expected"); + message.tables = []; + for (let i = 0; i < object.tables.length; ++i) + message.tables[i] = String(object.tables[i]); + } + if (object.primary_vindex_name != null) + message.primary_vindex_name = String(object.primary_vindex_name); + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".vtctldata.VSchemaAddTablesRequest.columns: array expected"); + message.columns = []; + for (let i = 0; i < object.columns.length; ++i) + message.columns[i] = String(object.columns[i]); + } + if (object.add_all != null) + message.add_all = Boolean(object.add_all); + return message; + }; + + /** + * Creates a plain object from a VSchemaAddTablesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.VSchemaAddTablesRequest + * @static + * @param {vtctldata.VSchemaAddTablesRequest} message VSchemaAddTablesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VSchemaAddTablesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.tables = []; + object.columns = []; + } + if (options.defaults) { + object.v_schema_name = ""; + object.primary_vindex_name = ""; + object.add_all = false; + } + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + object.v_schema_name = message.v_schema_name; + if (message.tables && message.tables.length) { + object.tables = []; + for (let j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; } + if (message.primary_vindex_name != null && message.hasOwnProperty("primary_vindex_name")) + object.primary_vindex_name = message.primary_vindex_name; + if (message.columns && message.columns.length) { + object.columns = []; + for (let j = 0; j < message.columns.length; ++j) + object.columns[j] = message.columns[j]; + } + if (message.add_all != null && message.hasOwnProperty("add_all")) + object.add_all = message.add_all; return object; }; /** - * Converts this VDiffCreateRequest to JSON. + * Converts this VSchemaAddTablesRequest to JSON. * @function toJSON - * @memberof vtctldata.VDiffCreateRequest + * @memberof vtctldata.VSchemaAddTablesRequest * @instance * @returns {Object.} JSON object */ - VDiffCreateRequest.prototype.toJSON = function toJSON() { + VSchemaAddTablesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffCreateRequest + * Gets the default type url for VSchemaAddTablesRequest * @function getTypeUrl - * @memberof vtctldata.VDiffCreateRequest + * @memberof vtctldata.VSchemaAddTablesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffCreateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaAddTablesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.VDiffCreateRequest"; + return typeUrlPrefix + "/vtctldata.VSchemaAddTablesRequest"; }; - return VDiffCreateRequest; + return VSchemaAddTablesRequest; })(); - vtctldata.VDiffCreateResponse = (function() { + vtctldata.VSchemaAddTablesResponse = (function() { /** - * Properties of a VDiffCreateResponse. + * Properties of a VSchemaAddTablesResponse. * @memberof vtctldata - * @interface IVDiffCreateResponse - * @property {string|null} [UUID] VDiffCreateResponse UUID + * @interface IVSchemaAddTablesResponse */ /** - * Constructs a new VDiffCreateResponse. + * Constructs a new VSchemaAddTablesResponse. * @memberof vtctldata - * @classdesc Represents a VDiffCreateResponse. - * @implements IVDiffCreateResponse + * @classdesc Represents a VSchemaAddTablesResponse. + * @implements IVSchemaAddTablesResponse * @constructor - * @param {vtctldata.IVDiffCreateResponse=} [properties] Properties to set + * @param {vtctldata.IVSchemaAddTablesResponse=} [properties] Properties to set */ - function VDiffCreateResponse(properties) { + function VSchemaAddTablesResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -191125,77 +199176,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * VDiffCreateResponse UUID. - * @member {string} UUID - * @memberof vtctldata.VDiffCreateResponse - * @instance - */ - VDiffCreateResponse.prototype.UUID = ""; - - /** - * Creates a new VDiffCreateResponse instance using the specified properties. + * Creates a new VSchemaAddTablesResponse instance using the specified properties. * @function create - * @memberof vtctldata.VDiffCreateResponse + * @memberof vtctldata.VSchemaAddTablesResponse * @static - * @param {vtctldata.IVDiffCreateResponse=} [properties] Properties to set - * @returns {vtctldata.VDiffCreateResponse} VDiffCreateResponse instance + * @param {vtctldata.IVSchemaAddTablesResponse=} [properties] Properties to set + * @returns {vtctldata.VSchemaAddTablesResponse} VSchemaAddTablesResponse instance */ - VDiffCreateResponse.create = function create(properties) { - return new VDiffCreateResponse(properties); + VSchemaAddTablesResponse.create = function create(properties) { + return new VSchemaAddTablesResponse(properties); }; /** - * Encodes the specified VDiffCreateResponse message. Does not implicitly {@link vtctldata.VDiffCreateResponse.verify|verify} messages. + * Encodes the specified VSchemaAddTablesResponse message. Does not implicitly {@link vtctldata.VSchemaAddTablesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.VDiffCreateResponse + * @memberof vtctldata.VSchemaAddTablesResponse * @static - * @param {vtctldata.IVDiffCreateResponse} message VDiffCreateResponse message or plain object to encode + * @param {vtctldata.IVSchemaAddTablesResponse} message VSchemaAddTablesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffCreateResponse.encode = function encode(message, writer) { + VSchemaAddTablesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.UUID != null && Object.hasOwnProperty.call(message, "UUID")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.UUID); return writer; }; /** - * Encodes the specified VDiffCreateResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffCreateResponse.verify|verify} messages. + * Encodes the specified VSchemaAddTablesResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaAddTablesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.VDiffCreateResponse + * @memberof vtctldata.VSchemaAddTablesResponse * @static - * @param {vtctldata.IVDiffCreateResponse} message VDiffCreateResponse message or plain object to encode + * @param {vtctldata.IVSchemaAddTablesResponse} message VSchemaAddTablesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffCreateResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaAddTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffCreateResponse message from the specified reader or buffer. + * Decodes a VSchemaAddTablesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.VDiffCreateResponse + * @memberof vtctldata.VSchemaAddTablesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.VDiffCreateResponse} VDiffCreateResponse + * @returns {vtctldata.VSchemaAddTablesResponse} VSchemaAddTablesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffCreateResponse.decode = function decode(reader, length) { + VSchemaAddTablesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffCreateResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaAddTablesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.UUID = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -191205,124 +199242,111 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a VDiffCreateResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaAddTablesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.VDiffCreateResponse + * @memberof vtctldata.VSchemaAddTablesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.VDiffCreateResponse} VDiffCreateResponse + * @returns {vtctldata.VSchemaAddTablesResponse} VSchemaAddTablesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffCreateResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaAddTablesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffCreateResponse message. + * Verifies a VSchemaAddTablesResponse message. * @function verify - * @memberof vtctldata.VDiffCreateResponse + * @memberof vtctldata.VSchemaAddTablesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffCreateResponse.verify = function verify(message) { + VSchemaAddTablesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.UUID != null && message.hasOwnProperty("UUID")) - if (!$util.isString(message.UUID)) - return "UUID: string expected"; return null; }; /** - * Creates a VDiffCreateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaAddTablesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.VDiffCreateResponse + * @memberof vtctldata.VSchemaAddTablesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.VDiffCreateResponse} VDiffCreateResponse + * @returns {vtctldata.VSchemaAddTablesResponse} VSchemaAddTablesResponse */ - VDiffCreateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.VDiffCreateResponse) + VSchemaAddTablesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaAddTablesResponse) return object; - let message = new $root.vtctldata.VDiffCreateResponse(); - if (object.UUID != null) - message.UUID = String(object.UUID); - return message; + return new $root.vtctldata.VSchemaAddTablesResponse(); }; /** - * Creates a plain object from a VDiffCreateResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaAddTablesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.VDiffCreateResponse + * @memberof vtctldata.VSchemaAddTablesResponse * @static - * @param {vtctldata.VDiffCreateResponse} message VDiffCreateResponse + * @param {vtctldata.VSchemaAddTablesResponse} message VSchemaAddTablesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffCreateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.UUID = ""; - if (message.UUID != null && message.hasOwnProperty("UUID")) - object.UUID = message.UUID; - return object; + VSchemaAddTablesResponse.toObject = function toObject() { + return {}; }; /** - * Converts this VDiffCreateResponse to JSON. + * Converts this VSchemaAddTablesResponse to JSON. * @function toJSON - * @memberof vtctldata.VDiffCreateResponse + * @memberof vtctldata.VSchemaAddTablesResponse * @instance * @returns {Object.} JSON object */ - VDiffCreateResponse.prototype.toJSON = function toJSON() { + VSchemaAddTablesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffCreateResponse + * Gets the default type url for VSchemaAddTablesResponse * @function getTypeUrl - * @memberof vtctldata.VDiffCreateResponse + * @memberof vtctldata.VSchemaAddTablesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffCreateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaAddTablesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.VDiffCreateResponse"; + return typeUrlPrefix + "/vtctldata.VSchemaAddTablesResponse"; }; - return VDiffCreateResponse; + return VSchemaAddTablesResponse; })(); - vtctldata.VDiffDeleteRequest = (function() { + vtctldata.VSchemaRemoveTablesRequest = (function() { /** - * Properties of a VDiffDeleteRequest. + * Properties of a VSchemaRemoveTablesRequest. * @memberof vtctldata - * @interface IVDiffDeleteRequest - * @property {string|null} [workflow] VDiffDeleteRequest workflow - * @property {string|null} [target_keyspace] VDiffDeleteRequest target_keyspace - * @property {string|null} [arg] VDiffDeleteRequest arg + * @interface IVSchemaRemoveTablesRequest + * @property {string|null} [v_schema_name] VSchemaRemoveTablesRequest v_schema_name + * @property {Array.|null} [tables] VSchemaRemoveTablesRequest tables */ /** - * Constructs a new VDiffDeleteRequest. + * Constructs a new VSchemaRemoveTablesRequest. * @memberof vtctldata - * @classdesc Represents a VDiffDeleteRequest. - * @implements IVDiffDeleteRequest + * @classdesc Represents a VSchemaRemoveTablesRequest. + * @implements IVSchemaRemoveTablesRequest * @constructor - * @param {vtctldata.IVDiffDeleteRequest=} [properties] Properties to set + * @param {vtctldata.IVSchemaRemoveTablesRequest=} [properties] Properties to set */ - function VDiffDeleteRequest(properties) { + function VSchemaRemoveTablesRequest(properties) { + this.tables = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -191330,103 +199354,92 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * VDiffDeleteRequest workflow. - * @member {string} workflow - * @memberof vtctldata.VDiffDeleteRequest - * @instance - */ - VDiffDeleteRequest.prototype.workflow = ""; - - /** - * VDiffDeleteRequest target_keyspace. - * @member {string} target_keyspace - * @memberof vtctldata.VDiffDeleteRequest + * VSchemaRemoveTablesRequest v_schema_name. + * @member {string} v_schema_name + * @memberof vtctldata.VSchemaRemoveTablesRequest * @instance */ - VDiffDeleteRequest.prototype.target_keyspace = ""; + VSchemaRemoveTablesRequest.prototype.v_schema_name = ""; /** - * VDiffDeleteRequest arg. - * @member {string} arg - * @memberof vtctldata.VDiffDeleteRequest + * VSchemaRemoveTablesRequest tables. + * @member {Array.} tables + * @memberof vtctldata.VSchemaRemoveTablesRequest * @instance */ - VDiffDeleteRequest.prototype.arg = ""; + VSchemaRemoveTablesRequest.prototype.tables = $util.emptyArray; /** - * Creates a new VDiffDeleteRequest instance using the specified properties. + * Creates a new VSchemaRemoveTablesRequest instance using the specified properties. * @function create - * @memberof vtctldata.VDiffDeleteRequest + * @memberof vtctldata.VSchemaRemoveTablesRequest * @static - * @param {vtctldata.IVDiffDeleteRequest=} [properties] Properties to set - * @returns {vtctldata.VDiffDeleteRequest} VDiffDeleteRequest instance + * @param {vtctldata.IVSchemaRemoveTablesRequest=} [properties] Properties to set + * @returns {vtctldata.VSchemaRemoveTablesRequest} VSchemaRemoveTablesRequest instance */ - VDiffDeleteRequest.create = function create(properties) { - return new VDiffDeleteRequest(properties); + VSchemaRemoveTablesRequest.create = function create(properties) { + return new VSchemaRemoveTablesRequest(properties); }; /** - * Encodes the specified VDiffDeleteRequest message. Does not implicitly {@link vtctldata.VDiffDeleteRequest.verify|verify} messages. + * Encodes the specified VSchemaRemoveTablesRequest message. Does not implicitly {@link vtctldata.VSchemaRemoveTablesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.VDiffDeleteRequest + * @memberof vtctldata.VSchemaRemoveTablesRequest * @static - * @param {vtctldata.IVDiffDeleteRequest} message VDiffDeleteRequest message or plain object to encode + * @param {vtctldata.IVSchemaRemoveTablesRequest} message VSchemaRemoveTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffDeleteRequest.encode = function encode(message, writer) { + VSchemaRemoveTablesRequest.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.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.target_keyspace); - if (message.arg != null && Object.hasOwnProperty.call(message, "arg")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.arg); + if (message.v_schema_name != null && Object.hasOwnProperty.call(message, "v_schema_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.v_schema_name); + if (message.tables != null && message.tables.length) + for (let i = 0; i < message.tables.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tables[i]); return writer; }; /** - * Encodes the specified VDiffDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffDeleteRequest.verify|verify} messages. + * Encodes the specified VSchemaRemoveTablesRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaRemoveTablesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.VDiffDeleteRequest + * @memberof vtctldata.VSchemaRemoveTablesRequest * @static - * @param {vtctldata.IVDiffDeleteRequest} message VDiffDeleteRequest message or plain object to encode + * @param {vtctldata.IVSchemaRemoveTablesRequest} message VSchemaRemoveTablesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffDeleteRequest.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaRemoveTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffDeleteRequest message from the specified reader or buffer. + * Decodes a VSchemaRemoveTablesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.VDiffDeleteRequest + * @memberof vtctldata.VSchemaRemoveTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.VDiffDeleteRequest} VDiffDeleteRequest + * @returns {vtctldata.VSchemaRemoveTablesRequest} VSchemaRemoveTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffDeleteRequest.decode = function decode(reader, length) { + VSchemaRemoveTablesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffDeleteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaRemoveTablesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workflow = reader.string(); + message.v_schema_name = reader.string(); break; } case 2: { - message.target_keyspace = reader.string(); - break; - } - case 3: { - message.arg = reader.string(); + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); break; } default: @@ -191438,138 +199451,142 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a VDiffDeleteRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaRemoveTablesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.VDiffDeleteRequest + * @memberof vtctldata.VSchemaRemoveTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.VDiffDeleteRequest} VDiffDeleteRequest + * @returns {vtctldata.VSchemaRemoveTablesRequest} VSchemaRemoveTablesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffDeleteRequest.decodeDelimited = function decodeDelimited(reader) { + VSchemaRemoveTablesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffDeleteRequest message. + * Verifies a VSchemaRemoveTablesRequest message. * @function verify - * @memberof vtctldata.VDiffDeleteRequest + * @memberof vtctldata.VSchemaRemoveTablesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffDeleteRequest.verify = function verify(message) { + VSchemaRemoveTablesRequest.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.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - if (!$util.isString(message.target_keyspace)) - return "target_keyspace: string expected"; - if (message.arg != null && message.hasOwnProperty("arg")) - if (!$util.isString(message.arg)) - return "arg: string expected"; + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + if (!$util.isString(message.v_schema_name)) + return "v_schema_name: string expected"; + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (let i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; + } return null; }; /** - * Creates a VDiffDeleteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaRemoveTablesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.VDiffDeleteRequest + * @memberof vtctldata.VSchemaRemoveTablesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.VDiffDeleteRequest} VDiffDeleteRequest + * @returns {vtctldata.VSchemaRemoveTablesRequest} VSchemaRemoveTablesRequest */ - VDiffDeleteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.VDiffDeleteRequest) + VSchemaRemoveTablesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaRemoveTablesRequest) return object; - let message = new $root.vtctldata.VDiffDeleteRequest(); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.target_keyspace != null) - message.target_keyspace = String(object.target_keyspace); - if (object.arg != null) - message.arg = String(object.arg); + let message = new $root.vtctldata.VSchemaRemoveTablesRequest(); + if (object.v_schema_name != null) + message.v_schema_name = String(object.v_schema_name); + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".vtctldata.VSchemaRemoveTablesRequest.tables: array expected"); + message.tables = []; + for (let i = 0; i < object.tables.length; ++i) + message.tables[i] = String(object.tables[i]); + } return message; }; /** - * Creates a plain object from a VDiffDeleteRequest message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaRemoveTablesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.VDiffDeleteRequest + * @memberof vtctldata.VSchemaRemoveTablesRequest * @static - * @param {vtctldata.VDiffDeleteRequest} message VDiffDeleteRequest + * @param {vtctldata.VSchemaRemoveTablesRequest} message VSchemaRemoveTablesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffDeleteRequest.toObject = function toObject(message, options) { + VSchemaRemoveTablesRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.workflow = ""; - object.target_keyspace = ""; - object.arg = ""; + if (options.arrays || options.defaults) + object.tables = []; + if (options.defaults) + object.v_schema_name = ""; + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + object.v_schema_name = message.v_schema_name; + if (message.tables && message.tables.length) { + object.tables = []; + for (let j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; } - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - object.target_keyspace = message.target_keyspace; - if (message.arg != null && message.hasOwnProperty("arg")) - object.arg = message.arg; return object; }; /** - * Converts this VDiffDeleteRequest to JSON. + * Converts this VSchemaRemoveTablesRequest to JSON. * @function toJSON - * @memberof vtctldata.VDiffDeleteRequest + * @memberof vtctldata.VSchemaRemoveTablesRequest * @instance * @returns {Object.} JSON object */ - VDiffDeleteRequest.prototype.toJSON = function toJSON() { + VSchemaRemoveTablesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffDeleteRequest + * Gets the default type url for VSchemaRemoveTablesRequest * @function getTypeUrl - * @memberof vtctldata.VDiffDeleteRequest + * @memberof vtctldata.VSchemaRemoveTablesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffDeleteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaRemoveTablesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.VDiffDeleteRequest"; + return typeUrlPrefix + "/vtctldata.VSchemaRemoveTablesRequest"; }; - return VDiffDeleteRequest; + return VSchemaRemoveTablesRequest; })(); - vtctldata.VDiffDeleteResponse = (function() { + vtctldata.VSchemaRemoveTablesResponse = (function() { /** - * Properties of a VDiffDeleteResponse. + * Properties of a VSchemaRemoveTablesResponse. * @memberof vtctldata - * @interface IVDiffDeleteResponse + * @interface IVSchemaRemoveTablesResponse */ /** - * Constructs a new VDiffDeleteResponse. + * Constructs a new VSchemaRemoveTablesResponse. * @memberof vtctldata - * @classdesc Represents a VDiffDeleteResponse. - * @implements IVDiffDeleteResponse + * @classdesc Represents a VSchemaRemoveTablesResponse. + * @implements IVSchemaRemoveTablesResponse * @constructor - * @param {vtctldata.IVDiffDeleteResponse=} [properties] Properties to set + * @param {vtctldata.IVSchemaRemoveTablesResponse=} [properties] Properties to set */ - function VDiffDeleteResponse(properties) { + function VSchemaRemoveTablesResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -191577,60 +199594,60 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new VDiffDeleteResponse instance using the specified properties. + * Creates a new VSchemaRemoveTablesResponse instance using the specified properties. * @function create - * @memberof vtctldata.VDiffDeleteResponse + * @memberof vtctldata.VSchemaRemoveTablesResponse * @static - * @param {vtctldata.IVDiffDeleteResponse=} [properties] Properties to set - * @returns {vtctldata.VDiffDeleteResponse} VDiffDeleteResponse instance + * @param {vtctldata.IVSchemaRemoveTablesResponse=} [properties] Properties to set + * @returns {vtctldata.VSchemaRemoveTablesResponse} VSchemaRemoveTablesResponse instance */ - VDiffDeleteResponse.create = function create(properties) { - return new VDiffDeleteResponse(properties); + VSchemaRemoveTablesResponse.create = function create(properties) { + return new VSchemaRemoveTablesResponse(properties); }; /** - * Encodes the specified VDiffDeleteResponse message. Does not implicitly {@link vtctldata.VDiffDeleteResponse.verify|verify} messages. + * Encodes the specified VSchemaRemoveTablesResponse message. Does not implicitly {@link vtctldata.VSchemaRemoveTablesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.VDiffDeleteResponse + * @memberof vtctldata.VSchemaRemoveTablesResponse * @static - * @param {vtctldata.IVDiffDeleteResponse} message VDiffDeleteResponse message or plain object to encode + * @param {vtctldata.IVSchemaRemoveTablesResponse} message VSchemaRemoveTablesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffDeleteResponse.encode = function encode(message, writer) { + VSchemaRemoveTablesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified VDiffDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffDeleteResponse.verify|verify} messages. + * Encodes the specified VSchemaRemoveTablesResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaRemoveTablesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.VDiffDeleteResponse + * @memberof vtctldata.VSchemaRemoveTablesResponse * @static - * @param {vtctldata.IVDiffDeleteResponse} message VDiffDeleteResponse message or plain object to encode + * @param {vtctldata.IVSchemaRemoveTablesResponse} message VSchemaRemoveTablesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffDeleteResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaRemoveTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffDeleteResponse message from the specified reader or buffer. + * Decodes a VSchemaRemoveTablesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.VDiffDeleteResponse + * @memberof vtctldata.VSchemaRemoveTablesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.VDiffDeleteResponse} VDiffDeleteResponse + * @returns {vtctldata.VSchemaRemoveTablesResponse} VSchemaRemoveTablesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffDeleteResponse.decode = function decode(reader, length) { + VSchemaRemoveTablesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffDeleteResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaRemoveTablesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -191643,113 +199660,114 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a VDiffDeleteResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaRemoveTablesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.VDiffDeleteResponse + * @memberof vtctldata.VSchemaRemoveTablesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.VDiffDeleteResponse} VDiffDeleteResponse + * @returns {vtctldata.VSchemaRemoveTablesResponse} VSchemaRemoveTablesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffDeleteResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaRemoveTablesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffDeleteResponse message. + * Verifies a VSchemaRemoveTablesResponse message. * @function verify - * @memberof vtctldata.VDiffDeleteResponse + * @memberof vtctldata.VSchemaRemoveTablesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffDeleteResponse.verify = function verify(message) { + VSchemaRemoveTablesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a VDiffDeleteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaRemoveTablesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.VDiffDeleteResponse + * @memberof vtctldata.VSchemaRemoveTablesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.VDiffDeleteResponse} VDiffDeleteResponse + * @returns {vtctldata.VSchemaRemoveTablesResponse} VSchemaRemoveTablesResponse */ - VDiffDeleteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.VDiffDeleteResponse) + VSchemaRemoveTablesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaRemoveTablesResponse) return object; - return new $root.vtctldata.VDiffDeleteResponse(); + return new $root.vtctldata.VSchemaRemoveTablesResponse(); }; /** - * Creates a plain object from a VDiffDeleteResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaRemoveTablesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.VDiffDeleteResponse + * @memberof vtctldata.VSchemaRemoveTablesResponse * @static - * @param {vtctldata.VDiffDeleteResponse} message VDiffDeleteResponse + * @param {vtctldata.VSchemaRemoveTablesResponse} message VSchemaRemoveTablesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffDeleteResponse.toObject = function toObject() { + VSchemaRemoveTablesResponse.toObject = function toObject() { return {}; }; /** - * Converts this VDiffDeleteResponse to JSON. + * Converts this VSchemaRemoveTablesResponse to JSON. * @function toJSON - * @memberof vtctldata.VDiffDeleteResponse + * @memberof vtctldata.VSchemaRemoveTablesResponse * @instance * @returns {Object.} JSON object */ - VDiffDeleteResponse.prototype.toJSON = function toJSON() { + VSchemaRemoveTablesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffDeleteResponse + * Gets the default type url for VSchemaRemoveTablesResponse * @function getTypeUrl - * @memberof vtctldata.VDiffDeleteResponse + * @memberof vtctldata.VSchemaRemoveTablesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffDeleteResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaRemoveTablesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.VDiffDeleteResponse"; + return typeUrlPrefix + "/vtctldata.VSchemaRemoveTablesResponse"; }; - return VDiffDeleteResponse; + return VSchemaRemoveTablesResponse; })(); - vtctldata.VDiffResumeRequest = (function() { + vtctldata.VSchemaSetPrimaryVindexRequest = (function() { /** - * Properties of a VDiffResumeRequest. + * Properties of a VSchemaSetPrimaryVindexRequest. * @memberof vtctldata - * @interface IVDiffResumeRequest - * @property {string|null} [workflow] VDiffResumeRequest workflow - * @property {string|null} [target_keyspace] VDiffResumeRequest target_keyspace - * @property {string|null} [uuid] VDiffResumeRequest uuid - * @property {Array.|null} [target_shards] VDiffResumeRequest target_shards + * @interface IVSchemaSetPrimaryVindexRequest + * @property {string|null} [v_schema_name] VSchemaSetPrimaryVindexRequest v_schema_name + * @property {Array.|null} [tables] VSchemaSetPrimaryVindexRequest tables + * @property {string|null} [vindex_name] VSchemaSetPrimaryVindexRequest vindex_name + * @property {Array.|null} [columns] VSchemaSetPrimaryVindexRequest columns */ /** - * Constructs a new VDiffResumeRequest. + * Constructs a new VSchemaSetPrimaryVindexRequest. * @memberof vtctldata - * @classdesc Represents a VDiffResumeRequest. - * @implements IVDiffResumeRequest + * @classdesc Represents a VSchemaSetPrimaryVindexRequest. + * @implements IVSchemaSetPrimaryVindexRequest * @constructor - * @param {vtctldata.IVDiffResumeRequest=} [properties] Properties to set + * @param {vtctldata.IVSchemaSetPrimaryVindexRequest=} [properties] Properties to set */ - function VDiffResumeRequest(properties) { - this.target_shards = []; + function VSchemaSetPrimaryVindexRequest(properties) { + this.tables = []; + this.columns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -191757,120 +199775,123 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * VDiffResumeRequest workflow. - * @member {string} workflow - * @memberof vtctldata.VDiffResumeRequest + * VSchemaSetPrimaryVindexRequest v_schema_name. + * @member {string} v_schema_name + * @memberof vtctldata.VSchemaSetPrimaryVindexRequest * @instance */ - VDiffResumeRequest.prototype.workflow = ""; + VSchemaSetPrimaryVindexRequest.prototype.v_schema_name = ""; /** - * VDiffResumeRequest target_keyspace. - * @member {string} target_keyspace - * @memberof vtctldata.VDiffResumeRequest + * VSchemaSetPrimaryVindexRequest tables. + * @member {Array.} tables + * @memberof vtctldata.VSchemaSetPrimaryVindexRequest * @instance */ - VDiffResumeRequest.prototype.target_keyspace = ""; + VSchemaSetPrimaryVindexRequest.prototype.tables = $util.emptyArray; /** - * VDiffResumeRequest uuid. - * @member {string} uuid - * @memberof vtctldata.VDiffResumeRequest + * VSchemaSetPrimaryVindexRequest vindex_name. + * @member {string} vindex_name + * @memberof vtctldata.VSchemaSetPrimaryVindexRequest * @instance */ - VDiffResumeRequest.prototype.uuid = ""; + VSchemaSetPrimaryVindexRequest.prototype.vindex_name = ""; /** - * VDiffResumeRequest target_shards. - * @member {Array.} target_shards - * @memberof vtctldata.VDiffResumeRequest + * VSchemaSetPrimaryVindexRequest columns. + * @member {Array.} columns + * @memberof vtctldata.VSchemaSetPrimaryVindexRequest * @instance */ - VDiffResumeRequest.prototype.target_shards = $util.emptyArray; + VSchemaSetPrimaryVindexRequest.prototype.columns = $util.emptyArray; /** - * Creates a new VDiffResumeRequest instance using the specified properties. + * Creates a new VSchemaSetPrimaryVindexRequest instance using the specified properties. * @function create - * @memberof vtctldata.VDiffResumeRequest + * @memberof vtctldata.VSchemaSetPrimaryVindexRequest * @static - * @param {vtctldata.IVDiffResumeRequest=} [properties] Properties to set - * @returns {vtctldata.VDiffResumeRequest} VDiffResumeRequest instance + * @param {vtctldata.IVSchemaSetPrimaryVindexRequest=} [properties] Properties to set + * @returns {vtctldata.VSchemaSetPrimaryVindexRequest} VSchemaSetPrimaryVindexRequest instance */ - VDiffResumeRequest.create = function create(properties) { - return new VDiffResumeRequest(properties); + VSchemaSetPrimaryVindexRequest.create = function create(properties) { + return new VSchemaSetPrimaryVindexRequest(properties); }; /** - * Encodes the specified VDiffResumeRequest message. Does not implicitly {@link vtctldata.VDiffResumeRequest.verify|verify} messages. + * Encodes the specified VSchemaSetPrimaryVindexRequest message. Does not implicitly {@link vtctldata.VSchemaSetPrimaryVindexRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.VDiffResumeRequest + * @memberof vtctldata.VSchemaSetPrimaryVindexRequest * @static - * @param {vtctldata.IVDiffResumeRequest} message VDiffResumeRequest message or plain object to encode + * @param {vtctldata.IVSchemaSetPrimaryVindexRequest} message VSchemaSetPrimaryVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffResumeRequest.encode = function encode(message, writer) { + VSchemaSetPrimaryVindexRequest.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.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.target_keyspace); - if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid); - if (message.target_shards != null && message.target_shards.length) - for (let i = 0; i < message.target_shards.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.target_shards[i]); + if (message.v_schema_name != null && Object.hasOwnProperty.call(message, "v_schema_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.v_schema_name); + if (message.tables != null && message.tables.length) + for (let i = 0; i < message.tables.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tables[i]); + if (message.vindex_name != null && Object.hasOwnProperty.call(message, "vindex_name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.vindex_name); + if (message.columns != null && message.columns.length) + for (let i = 0; i < message.columns.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.columns[i]); return writer; }; /** - * Encodes the specified VDiffResumeRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffResumeRequest.verify|verify} messages. + * Encodes the specified VSchemaSetPrimaryVindexRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaSetPrimaryVindexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.VDiffResumeRequest + * @memberof vtctldata.VSchemaSetPrimaryVindexRequest * @static - * @param {vtctldata.IVDiffResumeRequest} message VDiffResumeRequest message or plain object to encode + * @param {vtctldata.IVSchemaSetPrimaryVindexRequest} message VSchemaSetPrimaryVindexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffResumeRequest.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaSetPrimaryVindexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffResumeRequest message from the specified reader or buffer. + * Decodes a VSchemaSetPrimaryVindexRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.VDiffResumeRequest + * @memberof vtctldata.VSchemaSetPrimaryVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.VDiffResumeRequest} VDiffResumeRequest + * @returns {vtctldata.VSchemaSetPrimaryVindexRequest} VSchemaSetPrimaryVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffResumeRequest.decode = function decode(reader, length) { + VSchemaSetPrimaryVindexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffResumeRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaSetPrimaryVindexRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workflow = reader.string(); + message.v_schema_name = reader.string(); break; } case 2: { - message.target_keyspace = reader.string(); + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); break; } case 3: { - message.uuid = reader.string(); + message.vindex_name = reader.string(); break; } case 4: { - if (!(message.target_shards && message.target_shards.length)) - message.target_shards = []; - message.target_shards.push(reader.string()); + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push(reader.string()); break; } default: @@ -191882,159 +199903,172 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a VDiffResumeRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetPrimaryVindexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.VDiffResumeRequest + * @memberof vtctldata.VSchemaSetPrimaryVindexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.VDiffResumeRequest} VDiffResumeRequest + * @returns {vtctldata.VSchemaSetPrimaryVindexRequest} VSchemaSetPrimaryVindexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffResumeRequest.decodeDelimited = function decodeDelimited(reader) { + VSchemaSetPrimaryVindexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffResumeRequest message. + * Verifies a VSchemaSetPrimaryVindexRequest message. * @function verify - * @memberof vtctldata.VDiffResumeRequest + * @memberof vtctldata.VSchemaSetPrimaryVindexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffResumeRequest.verify = function verify(message) { + VSchemaSetPrimaryVindexRequest.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.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - if (!$util.isString(message.target_keyspace)) - return "target_keyspace: string expected"; - if (message.uuid != null && message.hasOwnProperty("uuid")) - if (!$util.isString(message.uuid)) - return "uuid: string expected"; - if (message.target_shards != null && message.hasOwnProperty("target_shards")) { - if (!Array.isArray(message.target_shards)) - return "target_shards: array expected"; - for (let i = 0; i < message.target_shards.length; ++i) - if (!$util.isString(message.target_shards[i])) - return "target_shards: string[] expected"; + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + if (!$util.isString(message.v_schema_name)) + return "v_schema_name: string expected"; + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (let i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; + } + if (message.vindex_name != null && message.hasOwnProperty("vindex_name")) + if (!$util.isString(message.vindex_name)) + return "vindex_name: string expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (let i = 0; i < message.columns.length; ++i) + if (!$util.isString(message.columns[i])) + return "columns: string[] expected"; } return null; }; /** - * Creates a VDiffResumeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaSetPrimaryVindexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.VDiffResumeRequest + * @memberof vtctldata.VSchemaSetPrimaryVindexRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.VDiffResumeRequest} VDiffResumeRequest + * @returns {vtctldata.VSchemaSetPrimaryVindexRequest} VSchemaSetPrimaryVindexRequest */ - VDiffResumeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.VDiffResumeRequest) + VSchemaSetPrimaryVindexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaSetPrimaryVindexRequest) return object; - let message = new $root.vtctldata.VDiffResumeRequest(); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.target_keyspace != null) - message.target_keyspace = String(object.target_keyspace); - if (object.uuid != null) - message.uuid = String(object.uuid); - if (object.target_shards) { - if (!Array.isArray(object.target_shards)) - throw TypeError(".vtctldata.VDiffResumeRequest.target_shards: array expected"); - message.target_shards = []; - for (let i = 0; i < object.target_shards.length; ++i) - message.target_shards[i] = String(object.target_shards[i]); + let message = new $root.vtctldata.VSchemaSetPrimaryVindexRequest(); + if (object.v_schema_name != null) + message.v_schema_name = String(object.v_schema_name); + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".vtctldata.VSchemaSetPrimaryVindexRequest.tables: array expected"); + message.tables = []; + for (let i = 0; i < object.tables.length; ++i) + message.tables[i] = String(object.tables[i]); + } + if (object.vindex_name != null) + message.vindex_name = String(object.vindex_name); + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".vtctldata.VSchemaSetPrimaryVindexRequest.columns: array expected"); + message.columns = []; + for (let i = 0; i < object.columns.length; ++i) + message.columns[i] = String(object.columns[i]); } return message; }; /** - * Creates a plain object from a VDiffResumeRequest message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaSetPrimaryVindexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.VDiffResumeRequest + * @memberof vtctldata.VSchemaSetPrimaryVindexRequest * @static - * @param {vtctldata.VDiffResumeRequest} message VDiffResumeRequest + * @param {vtctldata.VSchemaSetPrimaryVindexRequest} message VSchemaSetPrimaryVindexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffResumeRequest.toObject = function toObject(message, options) { + VSchemaSetPrimaryVindexRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.target_shards = []; + if (options.arrays || options.defaults) { + object.tables = []; + object.columns = []; + } if (options.defaults) { - object.workflow = ""; - object.target_keyspace = ""; - object.uuid = ""; + object.v_schema_name = ""; + object.vindex_name = ""; } - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - object.target_keyspace = message.target_keyspace; - if (message.uuid != null && message.hasOwnProperty("uuid")) - object.uuid = message.uuid; - if (message.target_shards && message.target_shards.length) { - object.target_shards = []; - for (let j = 0; j < message.target_shards.length; ++j) - object.target_shards[j] = message.target_shards[j]; + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + object.v_schema_name = message.v_schema_name; + if (message.tables && message.tables.length) { + object.tables = []; + for (let j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; + } + if (message.vindex_name != null && message.hasOwnProperty("vindex_name")) + object.vindex_name = message.vindex_name; + if (message.columns && message.columns.length) { + object.columns = []; + for (let j = 0; j < message.columns.length; ++j) + object.columns[j] = message.columns[j]; } return object; }; /** - * Converts this VDiffResumeRequest to JSON. + * Converts this VSchemaSetPrimaryVindexRequest to JSON. * @function toJSON - * @memberof vtctldata.VDiffResumeRequest + * @memberof vtctldata.VSchemaSetPrimaryVindexRequest * @instance * @returns {Object.} JSON object */ - VDiffResumeRequest.prototype.toJSON = function toJSON() { + VSchemaSetPrimaryVindexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffResumeRequest + * Gets the default type url for VSchemaSetPrimaryVindexRequest * @function getTypeUrl - * @memberof vtctldata.VDiffResumeRequest + * @memberof vtctldata.VSchemaSetPrimaryVindexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffResumeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaSetPrimaryVindexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.VDiffResumeRequest"; + return typeUrlPrefix + "/vtctldata.VSchemaSetPrimaryVindexRequest"; }; - return VDiffResumeRequest; + return VSchemaSetPrimaryVindexRequest; })(); - vtctldata.VDiffResumeResponse = (function() { + vtctldata.VSchemaSetPrimaryVindexResponse = (function() { /** - * Properties of a VDiffResumeResponse. + * Properties of a VSchemaSetPrimaryVindexResponse. * @memberof vtctldata - * @interface IVDiffResumeResponse + * @interface IVSchemaSetPrimaryVindexResponse */ /** - * Constructs a new VDiffResumeResponse. + * Constructs a new VSchemaSetPrimaryVindexResponse. * @memberof vtctldata - * @classdesc Represents a VDiffResumeResponse. - * @implements IVDiffResumeResponse + * @classdesc Represents a VSchemaSetPrimaryVindexResponse. + * @implements IVSchemaSetPrimaryVindexResponse * @constructor - * @param {vtctldata.IVDiffResumeResponse=} [properties] Properties to set + * @param {vtctldata.IVSchemaSetPrimaryVindexResponse=} [properties] Properties to set */ - function VDiffResumeResponse(properties) { + function VSchemaSetPrimaryVindexResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -192042,60 +200076,60 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new VDiffResumeResponse instance using the specified properties. + * Creates a new VSchemaSetPrimaryVindexResponse instance using the specified properties. * @function create - * @memberof vtctldata.VDiffResumeResponse + * @memberof vtctldata.VSchemaSetPrimaryVindexResponse * @static - * @param {vtctldata.IVDiffResumeResponse=} [properties] Properties to set - * @returns {vtctldata.VDiffResumeResponse} VDiffResumeResponse instance + * @param {vtctldata.IVSchemaSetPrimaryVindexResponse=} [properties] Properties to set + * @returns {vtctldata.VSchemaSetPrimaryVindexResponse} VSchemaSetPrimaryVindexResponse instance */ - VDiffResumeResponse.create = function create(properties) { - return new VDiffResumeResponse(properties); + VSchemaSetPrimaryVindexResponse.create = function create(properties) { + return new VSchemaSetPrimaryVindexResponse(properties); }; /** - * Encodes the specified VDiffResumeResponse message. Does not implicitly {@link vtctldata.VDiffResumeResponse.verify|verify} messages. + * Encodes the specified VSchemaSetPrimaryVindexResponse message. Does not implicitly {@link vtctldata.VSchemaSetPrimaryVindexResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.VDiffResumeResponse + * @memberof vtctldata.VSchemaSetPrimaryVindexResponse * @static - * @param {vtctldata.IVDiffResumeResponse} message VDiffResumeResponse message or plain object to encode + * @param {vtctldata.IVSchemaSetPrimaryVindexResponse} message VSchemaSetPrimaryVindexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffResumeResponse.encode = function encode(message, writer) { + VSchemaSetPrimaryVindexResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified VDiffResumeResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffResumeResponse.verify|verify} messages. + * Encodes the specified VSchemaSetPrimaryVindexResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaSetPrimaryVindexResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.VDiffResumeResponse + * @memberof vtctldata.VSchemaSetPrimaryVindexResponse * @static - * @param {vtctldata.IVDiffResumeResponse} message VDiffResumeResponse message or plain object to encode + * @param {vtctldata.IVSchemaSetPrimaryVindexResponse} message VSchemaSetPrimaryVindexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffResumeResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaSetPrimaryVindexResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffResumeResponse message from the specified reader or buffer. + * Decodes a VSchemaSetPrimaryVindexResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.VDiffResumeResponse + * @memberof vtctldata.VSchemaSetPrimaryVindexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.VDiffResumeResponse} VDiffResumeResponse + * @returns {vtctldata.VSchemaSetPrimaryVindexResponse} VSchemaSetPrimaryVindexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffResumeResponse.decode = function decode(reader, length) { + VSchemaSetPrimaryVindexResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffResumeResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaSetPrimaryVindexResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -192108,111 +200142,112 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a VDiffResumeResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetPrimaryVindexResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.VDiffResumeResponse + * @memberof vtctldata.VSchemaSetPrimaryVindexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.VDiffResumeResponse} VDiffResumeResponse + * @returns {vtctldata.VSchemaSetPrimaryVindexResponse} VSchemaSetPrimaryVindexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffResumeResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaSetPrimaryVindexResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffResumeResponse message. + * Verifies a VSchemaSetPrimaryVindexResponse message. * @function verify - * @memberof vtctldata.VDiffResumeResponse + * @memberof vtctldata.VSchemaSetPrimaryVindexResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffResumeResponse.verify = function verify(message) { + VSchemaSetPrimaryVindexResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a VDiffResumeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaSetPrimaryVindexResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.VDiffResumeResponse + * @memberof vtctldata.VSchemaSetPrimaryVindexResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.VDiffResumeResponse} VDiffResumeResponse + * @returns {vtctldata.VSchemaSetPrimaryVindexResponse} VSchemaSetPrimaryVindexResponse */ - VDiffResumeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.VDiffResumeResponse) + VSchemaSetPrimaryVindexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaSetPrimaryVindexResponse) return object; - return new $root.vtctldata.VDiffResumeResponse(); + return new $root.vtctldata.VSchemaSetPrimaryVindexResponse(); }; /** - * Creates a plain object from a VDiffResumeResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaSetPrimaryVindexResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.VDiffResumeResponse + * @memberof vtctldata.VSchemaSetPrimaryVindexResponse * @static - * @param {vtctldata.VDiffResumeResponse} message VDiffResumeResponse + * @param {vtctldata.VSchemaSetPrimaryVindexResponse} message VSchemaSetPrimaryVindexResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffResumeResponse.toObject = function toObject() { + VSchemaSetPrimaryVindexResponse.toObject = function toObject() { return {}; }; /** - * Converts this VDiffResumeResponse to JSON. + * Converts this VSchemaSetPrimaryVindexResponse to JSON. * @function toJSON - * @memberof vtctldata.VDiffResumeResponse + * @memberof vtctldata.VSchemaSetPrimaryVindexResponse * @instance * @returns {Object.} JSON object */ - VDiffResumeResponse.prototype.toJSON = function toJSON() { + VSchemaSetPrimaryVindexResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffResumeResponse + * Gets the default type url for VSchemaSetPrimaryVindexResponse * @function getTypeUrl - * @memberof vtctldata.VDiffResumeResponse + * @memberof vtctldata.VSchemaSetPrimaryVindexResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffResumeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaSetPrimaryVindexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.VDiffResumeResponse"; + return typeUrlPrefix + "/vtctldata.VSchemaSetPrimaryVindexResponse"; }; - return VDiffResumeResponse; + return VSchemaSetPrimaryVindexResponse; })(); - vtctldata.VDiffShowRequest = (function() { + vtctldata.VSchemaSetSequenceRequest = (function() { /** - * Properties of a VDiffShowRequest. + * Properties of a VSchemaSetSequenceRequest. * @memberof vtctldata - * @interface IVDiffShowRequest - * @property {string|null} [workflow] VDiffShowRequest workflow - * @property {string|null} [target_keyspace] VDiffShowRequest target_keyspace - * @property {string|null} [arg] VDiffShowRequest arg + * @interface IVSchemaSetSequenceRequest + * @property {string|null} [v_schema_name] VSchemaSetSequenceRequest v_schema_name + * @property {string|null} [table_name] VSchemaSetSequenceRequest table_name + * @property {string|null} [column] VSchemaSetSequenceRequest column + * @property {string|null} [sequence_source] VSchemaSetSequenceRequest sequence_source */ /** - * Constructs a new VDiffShowRequest. + * Constructs a new VSchemaSetSequenceRequest. * @memberof vtctldata - * @classdesc Represents a VDiffShowRequest. - * @implements IVDiffShowRequest + * @classdesc Represents a VSchemaSetSequenceRequest. + * @implements IVSchemaSetSequenceRequest * @constructor - * @param {vtctldata.IVDiffShowRequest=} [properties] Properties to set + * @param {vtctldata.IVSchemaSetSequenceRequest=} [properties] Properties to set */ - function VDiffShowRequest(properties) { + function VSchemaSetSequenceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -192220,103 +200255,117 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * VDiffShowRequest workflow. - * @member {string} workflow - * @memberof vtctldata.VDiffShowRequest + * VSchemaSetSequenceRequest v_schema_name. + * @member {string} v_schema_name + * @memberof vtctldata.VSchemaSetSequenceRequest * @instance */ - VDiffShowRequest.prototype.workflow = ""; + VSchemaSetSequenceRequest.prototype.v_schema_name = ""; /** - * VDiffShowRequest target_keyspace. - * @member {string} target_keyspace - * @memberof vtctldata.VDiffShowRequest + * VSchemaSetSequenceRequest table_name. + * @member {string} table_name + * @memberof vtctldata.VSchemaSetSequenceRequest * @instance */ - VDiffShowRequest.prototype.target_keyspace = ""; + VSchemaSetSequenceRequest.prototype.table_name = ""; /** - * VDiffShowRequest arg. - * @member {string} arg - * @memberof vtctldata.VDiffShowRequest + * VSchemaSetSequenceRequest column. + * @member {string} column + * @memberof vtctldata.VSchemaSetSequenceRequest * @instance */ - VDiffShowRequest.prototype.arg = ""; + VSchemaSetSequenceRequest.prototype.column = ""; /** - * Creates a new VDiffShowRequest instance using the specified properties. + * VSchemaSetSequenceRequest sequence_source. + * @member {string} sequence_source + * @memberof vtctldata.VSchemaSetSequenceRequest + * @instance + */ + VSchemaSetSequenceRequest.prototype.sequence_source = ""; + + /** + * Creates a new VSchemaSetSequenceRequest instance using the specified properties. * @function create - * @memberof vtctldata.VDiffShowRequest + * @memberof vtctldata.VSchemaSetSequenceRequest * @static - * @param {vtctldata.IVDiffShowRequest=} [properties] Properties to set - * @returns {vtctldata.VDiffShowRequest} VDiffShowRequest instance + * @param {vtctldata.IVSchemaSetSequenceRequest=} [properties] Properties to set + * @returns {vtctldata.VSchemaSetSequenceRequest} VSchemaSetSequenceRequest instance */ - VDiffShowRequest.create = function create(properties) { - return new VDiffShowRequest(properties); + VSchemaSetSequenceRequest.create = function create(properties) { + return new VSchemaSetSequenceRequest(properties); }; /** - * Encodes the specified VDiffShowRequest message. Does not implicitly {@link vtctldata.VDiffShowRequest.verify|verify} messages. + * Encodes the specified VSchemaSetSequenceRequest message. Does not implicitly {@link vtctldata.VSchemaSetSequenceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.VDiffShowRequest + * @memberof vtctldata.VSchemaSetSequenceRequest * @static - * @param {vtctldata.IVDiffShowRequest} message VDiffShowRequest message or plain object to encode + * @param {vtctldata.IVSchemaSetSequenceRequest} message VSchemaSetSequenceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffShowRequest.encode = function encode(message, writer) { + VSchemaSetSequenceRequest.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.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.target_keyspace); - if (message.arg != null && Object.hasOwnProperty.call(message, "arg")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.arg); + if (message.v_schema_name != null && Object.hasOwnProperty.call(message, "v_schema_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.v_schema_name); + if (message.table_name != null && Object.hasOwnProperty.call(message, "table_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.table_name); + if (message.column != null && Object.hasOwnProperty.call(message, "column")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.column); + if (message.sequence_source != null && Object.hasOwnProperty.call(message, "sequence_source")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.sequence_source); return writer; }; /** - * Encodes the specified VDiffShowRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffShowRequest.verify|verify} messages. + * Encodes the specified VSchemaSetSequenceRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaSetSequenceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.VDiffShowRequest + * @memberof vtctldata.VSchemaSetSequenceRequest * @static - * @param {vtctldata.IVDiffShowRequest} message VDiffShowRequest message or plain object to encode + * @param {vtctldata.IVSchemaSetSequenceRequest} message VSchemaSetSequenceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffShowRequest.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaSetSequenceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffShowRequest message from the specified reader or buffer. + * Decodes a VSchemaSetSequenceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.VDiffShowRequest + * @memberof vtctldata.VSchemaSetSequenceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.VDiffShowRequest} VDiffShowRequest + * @returns {vtctldata.VSchemaSetSequenceRequest} VSchemaSetSequenceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffShowRequest.decode = function decode(reader, length) { + VSchemaSetSequenceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffShowRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaSetSequenceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workflow = reader.string(); + message.v_schema_name = reader.string(); break; } case 2: { - message.target_keyspace = reader.string(); + message.table_name = reader.string(); break; } case 3: { - message.arg = reader.string(); + message.column = reader.string(); + break; + } + case 4: { + message.sequence_source = reader.string(); break; } default: @@ -192328,140 +200377,146 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a VDiffShowRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetSequenceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.VDiffShowRequest + * @memberof vtctldata.VSchemaSetSequenceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.VDiffShowRequest} VDiffShowRequest + * @returns {vtctldata.VSchemaSetSequenceRequest} VSchemaSetSequenceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffShowRequest.decodeDelimited = function decodeDelimited(reader) { + VSchemaSetSequenceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffShowRequest message. + * Verifies a VSchemaSetSequenceRequest message. * @function verify - * @memberof vtctldata.VDiffShowRequest + * @memberof vtctldata.VSchemaSetSequenceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffShowRequest.verify = function verify(message) { + VSchemaSetSequenceRequest.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.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - if (!$util.isString(message.target_keyspace)) - return "target_keyspace: string expected"; - if (message.arg != null && message.hasOwnProperty("arg")) - if (!$util.isString(message.arg)) - return "arg: string expected"; + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + if (!$util.isString(message.v_schema_name)) + return "v_schema_name: string expected"; + if (message.table_name != null && message.hasOwnProperty("table_name")) + if (!$util.isString(message.table_name)) + return "table_name: string expected"; + if (message.column != null && message.hasOwnProperty("column")) + if (!$util.isString(message.column)) + return "column: string expected"; + if (message.sequence_source != null && message.hasOwnProperty("sequence_source")) + if (!$util.isString(message.sequence_source)) + return "sequence_source: string expected"; return null; }; /** - * Creates a VDiffShowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaSetSequenceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.VDiffShowRequest + * @memberof vtctldata.VSchemaSetSequenceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.VDiffShowRequest} VDiffShowRequest + * @returns {vtctldata.VSchemaSetSequenceRequest} VSchemaSetSequenceRequest */ - VDiffShowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.VDiffShowRequest) + VSchemaSetSequenceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaSetSequenceRequest) return object; - let message = new $root.vtctldata.VDiffShowRequest(); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.target_keyspace != null) - message.target_keyspace = String(object.target_keyspace); - if (object.arg != null) - message.arg = String(object.arg); + let message = new $root.vtctldata.VSchemaSetSequenceRequest(); + if (object.v_schema_name != null) + message.v_schema_name = String(object.v_schema_name); + if (object.table_name != null) + message.table_name = String(object.table_name); + if (object.column != null) + message.column = String(object.column); + if (object.sequence_source != null) + message.sequence_source = String(object.sequence_source); return message; }; /** - * Creates a plain object from a VDiffShowRequest message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaSetSequenceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.VDiffShowRequest + * @memberof vtctldata.VSchemaSetSequenceRequest * @static - * @param {vtctldata.VDiffShowRequest} message VDiffShowRequest + * @param {vtctldata.VSchemaSetSequenceRequest} message VSchemaSetSequenceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffShowRequest.toObject = function toObject(message, options) { + VSchemaSetSequenceRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.workflow = ""; - object.target_keyspace = ""; - object.arg = ""; + object.v_schema_name = ""; + object.table_name = ""; + object.column = ""; + object.sequence_source = ""; } - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - object.target_keyspace = message.target_keyspace; - if (message.arg != null && message.hasOwnProperty("arg")) - object.arg = message.arg; + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + object.v_schema_name = message.v_schema_name; + if (message.table_name != null && message.hasOwnProperty("table_name")) + object.table_name = message.table_name; + if (message.column != null && message.hasOwnProperty("column")) + object.column = message.column; + if (message.sequence_source != null && message.hasOwnProperty("sequence_source")) + object.sequence_source = message.sequence_source; return object; }; /** - * Converts this VDiffShowRequest to JSON. + * Converts this VSchemaSetSequenceRequest to JSON. * @function toJSON - * @memberof vtctldata.VDiffShowRequest + * @memberof vtctldata.VSchemaSetSequenceRequest * @instance * @returns {Object.} JSON object */ - VDiffShowRequest.prototype.toJSON = function toJSON() { + VSchemaSetSequenceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffShowRequest + * Gets the default type url for VSchemaSetSequenceRequest * @function getTypeUrl - * @memberof vtctldata.VDiffShowRequest + * @memberof vtctldata.VSchemaSetSequenceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffShowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaSetSequenceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.VDiffShowRequest"; + return typeUrlPrefix + "/vtctldata.VSchemaSetSequenceRequest"; }; - return VDiffShowRequest; + return VSchemaSetSequenceRequest; })(); - vtctldata.VDiffShowResponse = (function() { + vtctldata.VSchemaSetSequenceResponse = (function() { /** - * Properties of a VDiffShowResponse. + * Properties of a VSchemaSetSequenceResponse. * @memberof vtctldata - * @interface IVDiffShowResponse - * @property {Object.|null} [tablet_responses] VDiffShowResponse tablet_responses + * @interface IVSchemaSetSequenceResponse */ /** - * Constructs a new VDiffShowResponse. + * Constructs a new VSchemaSetSequenceResponse. * @memberof vtctldata - * @classdesc Represents a VDiffShowResponse. - * @implements IVDiffShowResponse + * @classdesc Represents a VSchemaSetSequenceResponse. + * @implements IVSchemaSetSequenceResponse * @constructor - * @param {vtctldata.IVDiffShowResponse=} [properties] Properties to set + * @param {vtctldata.IVSchemaSetSequenceResponse=} [properties] Properties to set */ - function VDiffShowResponse(properties) { - this.tablet_responses = {}; + function VSchemaSetSequenceResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -192469,99 +200524,63 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * VDiffShowResponse tablet_responses. - * @member {Object.} tablet_responses - * @memberof vtctldata.VDiffShowResponse - * @instance - */ - VDiffShowResponse.prototype.tablet_responses = $util.emptyObject; - - /** - * Creates a new VDiffShowResponse instance using the specified properties. + * Creates a new VSchemaSetSequenceResponse instance using the specified properties. * @function create - * @memberof vtctldata.VDiffShowResponse + * @memberof vtctldata.VSchemaSetSequenceResponse * @static - * @param {vtctldata.IVDiffShowResponse=} [properties] Properties to set - * @returns {vtctldata.VDiffShowResponse} VDiffShowResponse instance + * @param {vtctldata.IVSchemaSetSequenceResponse=} [properties] Properties to set + * @returns {vtctldata.VSchemaSetSequenceResponse} VSchemaSetSequenceResponse instance */ - VDiffShowResponse.create = function create(properties) { - return new VDiffShowResponse(properties); + VSchemaSetSequenceResponse.create = function create(properties) { + return new VSchemaSetSequenceResponse(properties); }; /** - * Encodes the specified VDiffShowResponse message. Does not implicitly {@link vtctldata.VDiffShowResponse.verify|verify} messages. + * Encodes the specified VSchemaSetSequenceResponse message. Does not implicitly {@link vtctldata.VSchemaSetSequenceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.VDiffShowResponse + * @memberof vtctldata.VSchemaSetSequenceResponse * @static - * @param {vtctldata.IVDiffShowResponse} message VDiffShowResponse message or plain object to encode + * @param {vtctldata.IVSchemaSetSequenceResponse} message VSchemaSetSequenceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffShowResponse.encode = function encode(message, writer) { + VSchemaSetSequenceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_responses != null && Object.hasOwnProperty.call(message, "tablet_responses")) - for (let keys = Object.keys(message.tablet_responses), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.tabletmanagerdata.VDiffResponse.encode(message.tablet_responses[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } return writer; }; /** - * Encodes the specified VDiffShowResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffShowResponse.verify|verify} messages. + * Encodes the specified VSchemaSetSequenceResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaSetSequenceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.VDiffShowResponse + * @memberof vtctldata.VSchemaSetSequenceResponse * @static - * @param {vtctldata.IVDiffShowResponse} message VDiffShowResponse message or plain object to encode + * @param {vtctldata.IVSchemaSetSequenceResponse} message VSchemaSetSequenceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffShowResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaSetSequenceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffShowResponse message from the specified reader or buffer. + * Decodes a VSchemaSetSequenceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.VDiffShowResponse + * @memberof vtctldata.VSchemaSetSequenceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.VDiffShowResponse} VDiffShowResponse + * @returns {vtctldata.VSchemaSetSequenceResponse} VSchemaSetSequenceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffShowResponse.decode = function decode(reader, length) { + VSchemaSetSequenceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffShowResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaSetSequenceResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (message.tablet_responses === $util.emptyObject) - message.tablet_responses = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.tabletmanagerdata.VDiffResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.tablet_responses[key] = value; - break; - } default: reader.skipType(tag & 7); break; @@ -192571,145 +200590,111 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a VDiffShowResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetSequenceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.VDiffShowResponse + * @memberof vtctldata.VSchemaSetSequenceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.VDiffShowResponse} VDiffShowResponse + * @returns {vtctldata.VSchemaSetSequenceResponse} VSchemaSetSequenceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffShowResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaSetSequenceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffShowResponse message. + * Verifies a VSchemaSetSequenceResponse message. * @function verify - * @memberof vtctldata.VDiffShowResponse + * @memberof vtctldata.VSchemaSetSequenceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffShowResponse.verify = function verify(message) { + VSchemaSetSequenceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_responses != null && message.hasOwnProperty("tablet_responses")) { - if (!$util.isObject(message.tablet_responses)) - return "tablet_responses: object expected"; - let key = Object.keys(message.tablet_responses); - for (let i = 0; i < key.length; ++i) { - let error = $root.tabletmanagerdata.VDiffResponse.verify(message.tablet_responses[key[i]]); - if (error) - return "tablet_responses." + error; - } - } return null; }; /** - * Creates a VDiffShowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaSetSequenceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.VDiffShowResponse + * @memberof vtctldata.VSchemaSetSequenceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.VDiffShowResponse} VDiffShowResponse + * @returns {vtctldata.VSchemaSetSequenceResponse} VSchemaSetSequenceResponse */ - VDiffShowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.VDiffShowResponse) + VSchemaSetSequenceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaSetSequenceResponse) return object; - let message = new $root.vtctldata.VDiffShowResponse(); - if (object.tablet_responses) { - if (typeof object.tablet_responses !== "object") - throw TypeError(".vtctldata.VDiffShowResponse.tablet_responses: object expected"); - message.tablet_responses = {}; - for (let keys = Object.keys(object.tablet_responses), i = 0; i < keys.length; ++i) { - if (typeof object.tablet_responses[keys[i]] !== "object") - throw TypeError(".vtctldata.VDiffShowResponse.tablet_responses: object expected"); - message.tablet_responses[keys[i]] = $root.tabletmanagerdata.VDiffResponse.fromObject(object.tablet_responses[keys[i]]); - } - } - return message; + return new $root.vtctldata.VSchemaSetSequenceResponse(); }; /** - * Creates a plain object from a VDiffShowResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaSetSequenceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.VDiffShowResponse + * @memberof vtctldata.VSchemaSetSequenceResponse * @static - * @param {vtctldata.VDiffShowResponse} message VDiffShowResponse + * @param {vtctldata.VSchemaSetSequenceResponse} message VSchemaSetSequenceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffShowResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.objects || options.defaults) - object.tablet_responses = {}; - let keys2; - if (message.tablet_responses && (keys2 = Object.keys(message.tablet_responses)).length) { - object.tablet_responses = {}; - for (let j = 0; j < keys2.length; ++j) - object.tablet_responses[keys2[j]] = $root.tabletmanagerdata.VDiffResponse.toObject(message.tablet_responses[keys2[j]], options); - } - return object; + VSchemaSetSequenceResponse.toObject = function toObject() { + return {}; }; /** - * Converts this VDiffShowResponse to JSON. + * Converts this VSchemaSetSequenceResponse to JSON. * @function toJSON - * @memberof vtctldata.VDiffShowResponse + * @memberof vtctldata.VSchemaSetSequenceResponse * @instance * @returns {Object.} JSON object */ - VDiffShowResponse.prototype.toJSON = function toJSON() { + VSchemaSetSequenceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffShowResponse + * Gets the default type url for VSchemaSetSequenceResponse * @function getTypeUrl - * @memberof vtctldata.VDiffShowResponse + * @memberof vtctldata.VSchemaSetSequenceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffShowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaSetSequenceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.VDiffShowResponse"; + return typeUrlPrefix + "/vtctldata.VSchemaSetSequenceResponse"; }; - return VDiffShowResponse; + return VSchemaSetSequenceResponse; })(); - vtctldata.VDiffStopRequest = (function() { + vtctldata.VSchemaSetReferenceRequest = (function() { /** - * Properties of a VDiffStopRequest. + * Properties of a VSchemaSetReferenceRequest. * @memberof vtctldata - * @interface IVDiffStopRequest - * @property {string|null} [workflow] VDiffStopRequest workflow - * @property {string|null} [target_keyspace] VDiffStopRequest target_keyspace - * @property {string|null} [uuid] VDiffStopRequest uuid - * @property {Array.|null} [target_shards] VDiffStopRequest target_shards + * @interface IVSchemaSetReferenceRequest + * @property {string|null} [v_schema_name] VSchemaSetReferenceRequest v_schema_name + * @property {string|null} [table_name] VSchemaSetReferenceRequest table_name + * @property {string|null} [source] VSchemaSetReferenceRequest source */ /** - * Constructs a new VDiffStopRequest. + * Constructs a new VSchemaSetReferenceRequest. * @memberof vtctldata - * @classdesc Represents a VDiffStopRequest. - * @implements IVDiffStopRequest + * @classdesc Represents a VSchemaSetReferenceRequest. + * @implements IVSchemaSetReferenceRequest * @constructor - * @param {vtctldata.IVDiffStopRequest=} [properties] Properties to set + * @param {vtctldata.IVSchemaSetReferenceRequest=} [properties] Properties to set */ - function VDiffStopRequest(properties) { - this.target_shards = []; + function VSchemaSetReferenceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -192717,120 +200702,103 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * VDiffStopRequest workflow. - * @member {string} workflow - * @memberof vtctldata.VDiffStopRequest - * @instance - */ - VDiffStopRequest.prototype.workflow = ""; - - /** - * VDiffStopRequest target_keyspace. - * @member {string} target_keyspace - * @memberof vtctldata.VDiffStopRequest + * VSchemaSetReferenceRequest v_schema_name. + * @member {string} v_schema_name + * @memberof vtctldata.VSchemaSetReferenceRequest * @instance */ - VDiffStopRequest.prototype.target_keyspace = ""; + VSchemaSetReferenceRequest.prototype.v_schema_name = ""; /** - * VDiffStopRequest uuid. - * @member {string} uuid - * @memberof vtctldata.VDiffStopRequest + * VSchemaSetReferenceRequest table_name. + * @member {string} table_name + * @memberof vtctldata.VSchemaSetReferenceRequest * @instance */ - VDiffStopRequest.prototype.uuid = ""; + VSchemaSetReferenceRequest.prototype.table_name = ""; /** - * VDiffStopRequest target_shards. - * @member {Array.} target_shards - * @memberof vtctldata.VDiffStopRequest + * VSchemaSetReferenceRequest source. + * @member {string} source + * @memberof vtctldata.VSchemaSetReferenceRequest * @instance */ - VDiffStopRequest.prototype.target_shards = $util.emptyArray; + VSchemaSetReferenceRequest.prototype.source = ""; /** - * Creates a new VDiffStopRequest instance using the specified properties. + * Creates a new VSchemaSetReferenceRequest instance using the specified properties. * @function create - * @memberof vtctldata.VDiffStopRequest + * @memberof vtctldata.VSchemaSetReferenceRequest * @static - * @param {vtctldata.IVDiffStopRequest=} [properties] Properties to set - * @returns {vtctldata.VDiffStopRequest} VDiffStopRequest instance + * @param {vtctldata.IVSchemaSetReferenceRequest=} [properties] Properties to set + * @returns {vtctldata.VSchemaSetReferenceRequest} VSchemaSetReferenceRequest instance */ - VDiffStopRequest.create = function create(properties) { - return new VDiffStopRequest(properties); + VSchemaSetReferenceRequest.create = function create(properties) { + return new VSchemaSetReferenceRequest(properties); }; /** - * Encodes the specified VDiffStopRequest message. Does not implicitly {@link vtctldata.VDiffStopRequest.verify|verify} messages. + * Encodes the specified VSchemaSetReferenceRequest message. Does not implicitly {@link vtctldata.VSchemaSetReferenceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.VDiffStopRequest + * @memberof vtctldata.VSchemaSetReferenceRequest * @static - * @param {vtctldata.IVDiffStopRequest} message VDiffStopRequest message or plain object to encode + * @param {vtctldata.IVSchemaSetReferenceRequest} message VSchemaSetReferenceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffStopRequest.encode = function encode(message, writer) { + VSchemaSetReferenceRequest.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.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.target_keyspace); - if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid); - if (message.target_shards != null && message.target_shards.length) - for (let i = 0; i < message.target_shards.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.target_shards[i]); + if (message.v_schema_name != null && Object.hasOwnProperty.call(message, "v_schema_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.v_schema_name); + if (message.table_name != null && Object.hasOwnProperty.call(message, "table_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.table_name); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.source); return writer; }; /** - * Encodes the specified VDiffStopRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffStopRequest.verify|verify} messages. + * Encodes the specified VSchemaSetReferenceRequest message, length delimited. Does not implicitly {@link vtctldata.VSchemaSetReferenceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.VDiffStopRequest + * @memberof vtctldata.VSchemaSetReferenceRequest * @static - * @param {vtctldata.IVDiffStopRequest} message VDiffStopRequest message or plain object to encode + * @param {vtctldata.IVSchemaSetReferenceRequest} message VSchemaSetReferenceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffStopRequest.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaSetReferenceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffStopRequest message from the specified reader or buffer. + * Decodes a VSchemaSetReferenceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.VDiffStopRequest + * @memberof vtctldata.VSchemaSetReferenceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.VDiffStopRequest} VDiffStopRequest + * @returns {vtctldata.VSchemaSetReferenceRequest} VSchemaSetReferenceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffStopRequest.decode = function decode(reader, length) { + VSchemaSetReferenceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffStopRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaSetReferenceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.workflow = reader.string(); + message.v_schema_name = reader.string(); break; } case 2: { - message.target_keyspace = reader.string(); + message.table_name = reader.string(); break; } case 3: { - message.uuid = reader.string(); - break; - } - case 4: { - if (!(message.target_shards && message.target_shards.length)) - message.target_shards = []; - message.target_shards.push(reader.string()); + message.source = reader.string(); break; } default: @@ -192842,159 +200810,138 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a VDiffStopRequest message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetReferenceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.VDiffStopRequest + * @memberof vtctldata.VSchemaSetReferenceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.VDiffStopRequest} VDiffStopRequest + * @returns {vtctldata.VSchemaSetReferenceRequest} VSchemaSetReferenceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffStopRequest.decodeDelimited = function decodeDelimited(reader) { + VSchemaSetReferenceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffStopRequest message. + * Verifies a VSchemaSetReferenceRequest message. * @function verify - * @memberof vtctldata.VDiffStopRequest + * @memberof vtctldata.VSchemaSetReferenceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffStopRequest.verify = function verify(message) { + VSchemaSetReferenceRequest.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.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - if (!$util.isString(message.target_keyspace)) - return "target_keyspace: string expected"; - if (message.uuid != null && message.hasOwnProperty("uuid")) - if (!$util.isString(message.uuid)) - return "uuid: string expected"; - if (message.target_shards != null && message.hasOwnProperty("target_shards")) { - if (!Array.isArray(message.target_shards)) - return "target_shards: array expected"; - for (let i = 0; i < message.target_shards.length; ++i) - if (!$util.isString(message.target_shards[i])) - return "target_shards: string[] expected"; - } + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + if (!$util.isString(message.v_schema_name)) + return "v_schema_name: string expected"; + if (message.table_name != null && message.hasOwnProperty("table_name")) + if (!$util.isString(message.table_name)) + return "table_name: string expected"; + if (message.source != null && message.hasOwnProperty("source")) + if (!$util.isString(message.source)) + return "source: string expected"; return null; }; /** - * Creates a VDiffStopRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaSetReferenceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.VDiffStopRequest + * @memberof vtctldata.VSchemaSetReferenceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.VDiffStopRequest} VDiffStopRequest + * @returns {vtctldata.VSchemaSetReferenceRequest} VSchemaSetReferenceRequest */ - VDiffStopRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.VDiffStopRequest) + VSchemaSetReferenceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaSetReferenceRequest) return object; - let message = new $root.vtctldata.VDiffStopRequest(); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.target_keyspace != null) - message.target_keyspace = String(object.target_keyspace); - if (object.uuid != null) - message.uuid = String(object.uuid); - if (object.target_shards) { - if (!Array.isArray(object.target_shards)) - throw TypeError(".vtctldata.VDiffStopRequest.target_shards: array expected"); - message.target_shards = []; - for (let i = 0; i < object.target_shards.length; ++i) - message.target_shards[i] = String(object.target_shards[i]); - } + let message = new $root.vtctldata.VSchemaSetReferenceRequest(); + if (object.v_schema_name != null) + message.v_schema_name = String(object.v_schema_name); + if (object.table_name != null) + message.table_name = String(object.table_name); + if (object.source != null) + message.source = String(object.source); return message; }; /** - * Creates a plain object from a VDiffStopRequest message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaSetReferenceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.VDiffStopRequest + * @memberof vtctldata.VSchemaSetReferenceRequest * @static - * @param {vtctldata.VDiffStopRequest} message VDiffStopRequest + * @param {vtctldata.VSchemaSetReferenceRequest} message VSchemaSetReferenceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffStopRequest.toObject = function toObject(message, options) { + VSchemaSetReferenceRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.target_shards = []; if (options.defaults) { - object.workflow = ""; - object.target_keyspace = ""; - object.uuid = ""; - } - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - object.target_keyspace = message.target_keyspace; - if (message.uuid != null && message.hasOwnProperty("uuid")) - object.uuid = message.uuid; - if (message.target_shards && message.target_shards.length) { - object.target_shards = []; - for (let j = 0; j < message.target_shards.length; ++j) - object.target_shards[j] = message.target_shards[j]; + object.v_schema_name = ""; + object.table_name = ""; + object.source = ""; } + if (message.v_schema_name != null && message.hasOwnProperty("v_schema_name")) + object.v_schema_name = message.v_schema_name; + if (message.table_name != null && message.hasOwnProperty("table_name")) + object.table_name = message.table_name; + if (message.source != null && message.hasOwnProperty("source")) + object.source = message.source; return object; }; /** - * Converts this VDiffStopRequest to JSON. + * Converts this VSchemaSetReferenceRequest to JSON. * @function toJSON - * @memberof vtctldata.VDiffStopRequest + * @memberof vtctldata.VSchemaSetReferenceRequest * @instance * @returns {Object.} JSON object */ - VDiffStopRequest.prototype.toJSON = function toJSON() { + VSchemaSetReferenceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffStopRequest + * Gets the default type url for VSchemaSetReferenceRequest * @function getTypeUrl - * @memberof vtctldata.VDiffStopRequest + * @memberof vtctldata.VSchemaSetReferenceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffStopRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaSetReferenceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.VDiffStopRequest"; + return typeUrlPrefix + "/vtctldata.VSchemaSetReferenceRequest"; }; - return VDiffStopRequest; + return VSchemaSetReferenceRequest; })(); - vtctldata.VDiffStopResponse = (function() { + vtctldata.VSchemaSetReferenceResponse = (function() { /** - * Properties of a VDiffStopResponse. + * Properties of a VSchemaSetReferenceResponse. * @memberof vtctldata - * @interface IVDiffStopResponse + * @interface IVSchemaSetReferenceResponse */ /** - * Constructs a new VDiffStopResponse. + * Constructs a new VSchemaSetReferenceResponse. * @memberof vtctldata - * @classdesc Represents a VDiffStopResponse. - * @implements IVDiffStopResponse + * @classdesc Represents a VSchemaSetReferenceResponse. + * @implements IVSchemaSetReferenceResponse * @constructor - * @param {vtctldata.IVDiffStopResponse=} [properties] Properties to set + * @param {vtctldata.IVSchemaSetReferenceResponse=} [properties] Properties to set */ - function VDiffStopResponse(properties) { + function VSchemaSetReferenceResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -193002,60 +200949,60 @@ export const vtctldata = $root.vtctldata = (() => { } /** - * Creates a new VDiffStopResponse instance using the specified properties. + * Creates a new VSchemaSetReferenceResponse instance using the specified properties. * @function create - * @memberof vtctldata.VDiffStopResponse + * @memberof vtctldata.VSchemaSetReferenceResponse * @static - * @param {vtctldata.IVDiffStopResponse=} [properties] Properties to set - * @returns {vtctldata.VDiffStopResponse} VDiffStopResponse instance + * @param {vtctldata.IVSchemaSetReferenceResponse=} [properties] Properties to set + * @returns {vtctldata.VSchemaSetReferenceResponse} VSchemaSetReferenceResponse instance */ - VDiffStopResponse.create = function create(properties) { - return new VDiffStopResponse(properties); + VSchemaSetReferenceResponse.create = function create(properties) { + return new VSchemaSetReferenceResponse(properties); }; /** - * Encodes the specified VDiffStopResponse message. Does not implicitly {@link vtctldata.VDiffStopResponse.verify|verify} messages. + * Encodes the specified VSchemaSetReferenceResponse message. Does not implicitly {@link vtctldata.VSchemaSetReferenceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.VDiffStopResponse + * @memberof vtctldata.VSchemaSetReferenceResponse * @static - * @param {vtctldata.IVDiffStopResponse} message VDiffStopResponse message or plain object to encode + * @param {vtctldata.IVSchemaSetReferenceResponse} message VSchemaSetReferenceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffStopResponse.encode = function encode(message, writer) { + VSchemaSetReferenceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified VDiffStopResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffStopResponse.verify|verify} messages. + * Encodes the specified VSchemaSetReferenceResponse message, length delimited. Does not implicitly {@link vtctldata.VSchemaSetReferenceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.VDiffStopResponse + * @memberof vtctldata.VSchemaSetReferenceResponse * @static - * @param {vtctldata.IVDiffStopResponse} message VDiffStopResponse message or plain object to encode + * @param {vtctldata.IVSchemaSetReferenceResponse} message VSchemaSetReferenceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VDiffStopResponse.encodeDelimited = function encodeDelimited(message, writer) { + VSchemaSetReferenceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VDiffStopResponse message from the specified reader or buffer. + * Decodes a VSchemaSetReferenceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.VDiffStopResponse + * @memberof vtctldata.VSchemaSetReferenceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.VDiffStopResponse} VDiffStopResponse + * @returns {vtctldata.VSchemaSetReferenceResponse} VSchemaSetReferenceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffStopResponse.decode = function decode(reader, length) { + VSchemaSetReferenceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VDiffStopResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.VSchemaSetReferenceResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -193068,89 +201015,89 @@ export const vtctldata = $root.vtctldata = (() => { }; /** - * Decodes a VDiffStopResponse message from the specified reader or buffer, length delimited. + * Decodes a VSchemaSetReferenceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.VDiffStopResponse + * @memberof vtctldata.VSchemaSetReferenceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.VDiffStopResponse} VDiffStopResponse + * @returns {vtctldata.VSchemaSetReferenceResponse} VSchemaSetReferenceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VDiffStopResponse.decodeDelimited = function decodeDelimited(reader) { + VSchemaSetReferenceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VDiffStopResponse message. + * Verifies a VSchemaSetReferenceResponse message. * @function verify - * @memberof vtctldata.VDiffStopResponse + * @memberof vtctldata.VSchemaSetReferenceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VDiffStopResponse.verify = function verify(message) { + VSchemaSetReferenceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a VDiffStopResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VSchemaSetReferenceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.VDiffStopResponse + * @memberof vtctldata.VSchemaSetReferenceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.VDiffStopResponse} VDiffStopResponse + * @returns {vtctldata.VSchemaSetReferenceResponse} VSchemaSetReferenceResponse */ - VDiffStopResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.VDiffStopResponse) + VSchemaSetReferenceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.VSchemaSetReferenceResponse) return object; - return new $root.vtctldata.VDiffStopResponse(); + return new $root.vtctldata.VSchemaSetReferenceResponse(); }; /** - * Creates a plain object from a VDiffStopResponse message. Also converts values to other types if specified. + * Creates a plain object from a VSchemaSetReferenceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.VDiffStopResponse + * @memberof vtctldata.VSchemaSetReferenceResponse * @static - * @param {vtctldata.VDiffStopResponse} message VDiffStopResponse + * @param {vtctldata.VSchemaSetReferenceResponse} message VSchemaSetReferenceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VDiffStopResponse.toObject = function toObject() { + VSchemaSetReferenceResponse.toObject = function toObject() { return {}; }; /** - * Converts this VDiffStopResponse to JSON. + * Converts this VSchemaSetReferenceResponse to JSON. * @function toJSON - * @memberof vtctldata.VDiffStopResponse + * @memberof vtctldata.VSchemaSetReferenceResponse * @instance * @returns {Object.} JSON object */ - VDiffStopResponse.prototype.toJSON = function toJSON() { + VSchemaSetReferenceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VDiffStopResponse + * Gets the default type url for VSchemaSetReferenceResponse * @function getTypeUrl - * @memberof vtctldata.VDiffStopResponse + * @memberof vtctldata.VSchemaSetReferenceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VDiffStopResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VSchemaSetReferenceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/vtctldata.VDiffStopResponse"; + return typeUrlPrefix + "/vtctldata.VSchemaSetReferenceResponse"; }; - return VDiffStopResponse; + return VSchemaSetReferenceResponse; })(); vtctldata.WorkflowDeleteRequest = (function() {